@lateralus-ai/shipping-ui 2.0.0-dev.10 → 2.0.0-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var p8 = Object.defineProperty;
2
2
  var g8 = (e, r, t) => r in e ? p8(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var De = (e, r, t) => g8(e, typeof r != "symbol" ? r + "" : r, t);
4
- import { b as rd, d as td, c as nd, e as ad, a as cd, g as od, o as Ad, p as id, r as sd, t as ld, w as dd } from "./theme-entry-BUK3MJUJ.mjs";
4
+ import { b as ru, d as tu, c as nu, e as au, a as cu, g as ou, o as Au, p as iu, r as su, t as lu, w as uu } from "./theme-entry-BUK3MJUJ.mjs";
5
5
  import * as l from "react";
6
- import ln, { forwardRef as X1, useLayoutEffect as C8, useState as m1, isValidElement as x8, useId as a2, useRef as c2, useEffect as ge, createContext as m8, useContext as dn, useCallback as y1 } from "react";
6
+ import ln, { forwardRef as X1, useLayoutEffect as C8, useState as m1, isValidElement as x8, useId as a2, useRef as c2, useEffect as ge, createContext as m8, useContext as un, useCallback as y1 } from "react";
7
7
  import * as Xr from "react-dom";
8
8
  import j8 from "react-dom";
9
9
  import C5 from "docxtemplater";
@@ -131,11 +131,11 @@ function y8() {
131
131
  if (j5) return Xe;
132
132
  j5 = 1;
133
133
  var e = ln, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
134
- function A(i, s, u) {
135
- var d, p = {}, g = null, C = null;
136
- u !== void 0 && (g = "" + u), s.key !== void 0 && (g = "" + s.key), s.ref !== void 0 && (C = s.ref);
137
- for (d in s) n.call(s, d) && !o.hasOwnProperty(d) && (p[d] = s[d]);
138
- if (i && i.defaultProps) for (d in s = i.defaultProps, s) p[d] === void 0 && (p[d] = s[d]);
134
+ function A(i, s, d) {
135
+ var u, p = {}, g = null, C = null;
136
+ d !== void 0 && (g = "" + d), s.key !== void 0 && (g = "" + s.key), s.ref !== void 0 && (C = s.ref);
137
+ for (u in s) n.call(s, u) && !o.hasOwnProperty(u) && (p[u] = s[u]);
138
+ if (i && i.defaultProps) for (u in s = i.defaultProps, s) p[u] === void 0 && (p[u] = s[u]);
139
139
  return { $$typeof: r, type: i, key: g, ref: C, props: p, _owner: c.current };
140
140
  }
141
141
  return Xe.Fragment = t, Xe.jsx = A, Xe.jsxs = A, Xe;
@@ -153,45 +153,45 @@ var Be = {};
153
153
  var f5;
154
154
  function H8() {
155
155
  return f5 || (f5 = 1, process.env.NODE_ENV !== "production" && function() {
156
- var e = ln, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), A = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), x = Symbol.iterator, m = "@@iterator";
156
+ var e = ln, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), A = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), x = Symbol.iterator, m = "@@iterator";
157
157
  function f(j) {
158
158
  if (j === null || typeof j != "object")
159
159
  return null;
160
- var P = x && j[x] || j[m];
161
- return typeof P == "function" ? P : null;
160
+ var M = x && j[x] || j[m];
161
+ return typeof M == "function" ? M : null;
162
162
  }
163
163
  var O = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
164
164
  function y(j) {
165
165
  {
166
- for (var P = arguments.length, S = new Array(P > 1 ? P - 1 : 0), D = 1; D < P; D++)
166
+ for (var M = arguments.length, S = new Array(M > 1 ? M - 1 : 0), D = 1; D < M; D++)
167
167
  S[D - 1] = arguments[D];
168
168
  z("error", j, S);
169
169
  }
170
170
  }
171
- function z(j, P, S) {
171
+ function z(j, M, S) {
172
172
  {
173
173
  var D = O.ReactDebugCurrentFrame, a1 = D.getStackAddendum();
174
- a1 !== "" && (P += "%s", S = S.concat([a1]));
174
+ a1 !== "" && (M += "%s", S = S.concat([a1]));
175
175
  var o1 = S.map(function(r1) {
176
176
  return String(r1);
177
177
  });
178
- o1.unshift("Warning: " + P), Function.prototype.apply.call(console[j], console, o1);
178
+ o1.unshift("Warning: " + M), Function.prototype.apply.call(console[j], console, o1);
179
179
  }
180
180
  }
181
- var H = !1, k = !1, M = !1, v = !1, h = !1, W;
182
- W = Symbol.for("react.module.reference");
183
- function w(j) {
184
- return !!(typeof j == "string" || typeof j == "function" || j === n || j === o || h || j === c || j === u || j === d || v || j === C || H || k || M || typeof j == "object" && j !== null && (j.$$typeof === g || j.$$typeof === p || j.$$typeof === A || j.$$typeof === i || j.$$typeof === s || // This needs to include all possible module reference object
181
+ var H = !1, k = !1, P = !1, v = !1, h = !1, U;
182
+ U = Symbol.for("react.module.reference");
183
+ function W(j) {
184
+ return !!(typeof j == "string" || typeof j == "function" || j === n || j === o || h || j === c || j === d || j === u || v || j === C || H || k || P || typeof j == "object" && j !== null && (j.$$typeof === g || j.$$typeof === p || j.$$typeof === A || j.$$typeof === i || j.$$typeof === s || // This needs to include all possible module reference object
185
185
  // types supported by any Flight configuration anywhere since
186
186
  // we don't know which Flight build this will end up being used
187
187
  // with.
188
- j.$$typeof === W || j.getModuleId !== void 0));
188
+ j.$$typeof === U || j.getModuleId !== void 0));
189
189
  }
190
- function U(j, P, S) {
190
+ function w(j, M, S) {
191
191
  var D = j.displayName;
192
192
  if (D)
193
193
  return D;
194
- var a1 = P.displayName || P.name || "";
194
+ var a1 = M.displayName || M.name || "";
195
195
  return a1 !== "" ? S + "(" + a1 + ")" : S;
196
196
  }
197
197
  function Z(j) {
@@ -213,21 +213,21 @@ function H8() {
213
213
  return "Profiler";
214
214
  case c:
215
215
  return "StrictMode";
216
- case u:
217
- return "Suspense";
218
216
  case d:
217
+ return "Suspense";
218
+ case u:
219
219
  return "SuspenseList";
220
220
  }
221
221
  if (typeof j == "object")
222
222
  switch (j.$$typeof) {
223
223
  case i:
224
- var P = j;
225
- return Z(P) + ".Consumer";
224
+ var M = j;
225
+ return Z(M) + ".Consumer";
226
226
  case A:
227
227
  var S = j;
228
228
  return Z(S._context) + ".Provider";
229
229
  case s:
230
- return U(j, j.render, "ForwardRef");
230
+ return w(j, j.render, "ForwardRef");
231
231
  case p:
232
232
  var D = j.displayName || null;
233
233
  return D !== null ? D : R(j.type) || "Memo";
@@ -305,7 +305,7 @@ function H8() {
305
305
  }
306
306
  }
307
307
  var c1 = O.ReactCurrentDispatcher, E;
308
- function Y(j, P, S) {
308
+ function Y(j, M, S) {
309
309
  {
310
310
  if (E === void 0)
311
311
  try {
@@ -323,7 +323,7 @@ function H8() {
323
323
  var P1 = typeof WeakMap == "function" ? WeakMap : Map;
324
324
  A1 = new P1();
325
325
  }
326
- function z1(j, P) {
326
+ function z1(j, M) {
327
327
  if (!j || e1)
328
328
  return "";
329
329
  {
@@ -338,7 +338,7 @@ function H8() {
338
338
  var o1;
339
339
  o1 = c1.current, c1.current = null, L();
340
340
  try {
341
- if (P) {
341
+ if (M) {
342
342
  var r1 = function() {
343
343
  throw Error();
344
344
  };
@@ -391,17 +391,17 @@ function H8() {
391
391
  } finally {
392
392
  e1 = !1, c1.current = o1, l1(), Error.prepareStackTrace = a1;
393
393
  }
394
- var ke = j ? j.displayName || j.name : "", de = ke ? Y(ke) : "";
395
- return typeof j == "function" && A1.set(j, de), de;
394
+ var ke = j ? j.displayName || j.name : "", ue = ke ? Y(ke) : "";
395
+ return typeof j == "function" && A1.set(j, ue), ue;
396
396
  }
397
- function g1(j, P, S) {
397
+ function g1(j, M, S) {
398
398
  return z1(j, !1);
399
399
  }
400
400
  function J(j) {
401
- var P = j.prototype;
402
- return !!(P && P.isReactComponent);
401
+ var M = j.prototype;
402
+ return !!(M && M.isReactComponent);
403
403
  }
404
- function d1(j, P, S) {
404
+ function u1(j, M, S) {
405
405
  if (j == null)
406
406
  return "";
407
407
  if (typeof j == "function")
@@ -409,9 +409,9 @@ function H8() {
409
409
  if (typeof j == "string")
410
410
  return Y(j);
411
411
  switch (j) {
412
- case u:
413
- return Y("Suspense");
414
412
  case d:
413
+ return Y("Suspense");
414
+ case u:
415
415
  return Y("SuspenseList");
416
416
  }
417
417
  if (typeof j == "object")
@@ -419,11 +419,11 @@ function H8() {
419
419
  case s:
420
420
  return g1(j.render);
421
421
  case p:
422
- return d1(j.type, P, S);
422
+ return u1(j.type, M, S);
423
423
  case g: {
424
424
  var D = j, a1 = D._payload, o1 = D._init;
425
425
  try {
426
- return d1(o1(a1), P, S);
426
+ return u1(o1(a1), M, S);
427
427
  } catch {
428
428
  }
429
429
  }
@@ -431,14 +431,14 @@ function H8() {
431
431
  return "";
432
432
  }
433
433
  var Q = Object.prototype.hasOwnProperty, f1 = {}, V1 = O.ReactDebugCurrentFrame;
434
- function u1(j) {
434
+ function d1(j) {
435
435
  if (j) {
436
- var P = j._owner, S = d1(j.type, j._source, P ? P.type : null);
436
+ var M = j._owner, S = u1(j.type, j._source, M ? M.type : null);
437
437
  V1.setExtraStackFrame(S);
438
438
  } else
439
439
  V1.setExtraStackFrame(null);
440
440
  }
441
- function q1(j, P, S, D, a1) {
441
+ function q1(j, M, S, D, a1) {
442
442
  {
443
443
  var o1 = Function.call.bind(Q);
444
444
  for (var r1 in j)
@@ -449,11 +449,11 @@ function H8() {
449
449
  var k1 = Error((D || "React class") + ": " + S + " type `" + r1 + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof j[r1] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
450
450
  throw k1.name = "Invariant Violation", k1;
451
451
  }
452
- $ = j[r1](P, r1, D, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
452
+ $ = j[r1](M, r1, D, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
453
453
  } catch (p1) {
454
454
  $ = p1;
455
455
  }
456
- $ && !($ instanceof Error) && (u1(a1), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", S, r1, typeof $), u1(null)), $ instanceof Error && !($.message in f1) && (f1[$.message] = !0, u1(a1), y("Failed %s type: %s", S, $.message), u1(null));
456
+ $ && !($ instanceof Error) && (d1(a1), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", S, r1, typeof $), d1(null)), $ instanceof Error && !($.message in f1) && (f1[$.message] = !0, d1(a1), y("Failed %s type: %s", S, $.message), d1(null));
457
457
  }
458
458
  }
459
459
  }
@@ -463,7 +463,7 @@ function H8() {
463
463
  }
464
464
  function Te(j) {
465
465
  {
466
- var P = typeof Symbol == "function" && Symbol.toStringTag, S = P && j[Symbol.toStringTag] || j.constructor.name || "Object";
466
+ var M = typeof Symbol == "function" && Symbol.toStringTag, S = M && j[Symbol.toStringTag] || j.constructor.name || "Object";
467
467
  return S;
468
468
  }
469
469
  }
@@ -489,27 +489,27 @@ function H8() {
489
489
  }, Vr, Or;
490
490
  function mt(j) {
491
491
  if (Q.call(j, "ref")) {
492
- var P = Object.getOwnPropertyDescriptor(j, "ref").get;
493
- if (P && P.isReactWarning)
492
+ var M = Object.getOwnPropertyDescriptor(j, "ref").get;
493
+ if (M && M.isReactWarning)
494
494
  return !1;
495
495
  }
496
496
  return j.ref !== void 0;
497
497
  }
498
498
  function jt(j) {
499
499
  if (Q.call(j, "key")) {
500
- var P = Object.getOwnPropertyDescriptor(j, "key").get;
501
- if (P && P.isReactWarning)
500
+ var M = Object.getOwnPropertyDescriptor(j, "key").get;
501
+ if (M && M.isReactWarning)
502
502
  return !1;
503
503
  }
504
504
  return j.key !== void 0;
505
505
  }
506
- function O1(j, P) {
506
+ function O1(j, M) {
507
507
  typeof j.ref == "string" && fr.current;
508
508
  }
509
- function M1(j, P) {
509
+ function M1(j, M) {
510
510
  {
511
511
  var S = function() {
512
- Vr || (Vr = !0, y("%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://reactjs.org/link/special-props)", P));
512
+ Vr || (Vr = !0, y("%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://reactjs.org/link/special-props)", M));
513
513
  };
514
514
  S.isReactWarning = !0, Object.defineProperty(j, "key", {
515
515
  get: S,
@@ -517,10 +517,10 @@ function H8() {
517
517
  });
518
518
  }
519
519
  }
520
- function le(j, P) {
520
+ function le(j, M) {
521
521
  {
522
522
  var S = function() {
523
- Or || (Or = !0, y("%s: `ref` 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://reactjs.org/link/special-props)", P));
523
+ Or || (Or = !0, y("%s: `ref` 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://reactjs.org/link/special-props)", M));
524
524
  };
525
525
  S.isReactWarning = !0, Object.defineProperty(j, "ref", {
526
526
  get: S,
@@ -528,13 +528,13 @@ function H8() {
528
528
  });
529
529
  }
530
530
  }
531
- var R1 = function(j, P, S, D, a1, o1, r1) {
531
+ var R1 = function(j, M, S, D, a1, o1, r1) {
532
532
  var $ = {
533
533
  // This tag allows us to uniquely identify this as a React Element
534
534
  $$typeof: r,
535
535
  // Built-in properties that belong on the element
536
536
  type: j,
537
- key: P,
537
+ key: M,
538
538
  ref: S,
539
539
  props: r1,
540
540
  // Record the component responsible for creating this element.
@@ -557,12 +557,12 @@ function H8() {
557
557
  value: a1
558
558
  }), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
559
559
  };
560
- function ft(j, P, S, D, a1) {
560
+ function ft(j, M, S, D, a1) {
561
561
  {
562
562
  var o1, r1 = {}, $ = null, k1 = null;
563
- S !== void 0 && (Ge(S), $ = "" + S), jt(P) && (Ge(P.key), $ = "" + P.key), mt(P) && (k1 = P.ref, O1(P, a1));
564
- for (o1 in P)
565
- Q.call(P, o1) && !xt.hasOwnProperty(o1) && (r1[o1] = P[o1]);
563
+ S !== void 0 && (Ge(S), $ = "" + S), jt(M) && (Ge(M.key), $ = "" + M.key), mt(M) && (k1 = M.ref, O1(M, a1));
564
+ for (o1 in M)
565
+ Q.call(M, o1) && !xt.hasOwnProperty(o1) && (r1[o1] = M[o1]);
566
566
  if (j && j.defaultProps) {
567
567
  var p1 = j.defaultProps;
568
568
  for (o1 in p1)
@@ -578,7 +578,7 @@ function H8() {
578
578
  var Vt = O.ReactCurrentOwner, i5 = O.ReactDebugCurrentFrame;
579
579
  function ze(j) {
580
580
  if (j) {
581
- var P = j._owner, S = d1(j.type, j._source, P ? P.type : null);
581
+ var M = j._owner, S = u1(j.type, j._source, M ? M.type : null);
582
582
  i5.setExtraStackFrame(S);
583
583
  } else
584
584
  i5.setExtraStackFrame(null);
@@ -606,22 +606,22 @@ Check the render method of \`` + j + "`.";
606
606
  var l5 = {};
607
607
  function a8(j) {
608
608
  {
609
- var P = s5();
610
- if (!P) {
609
+ var M = s5();
610
+ if (!M) {
611
611
  var S = typeof j == "string" ? j : j.displayName || j.name;
612
- S && (P = `
612
+ S && (M = `
613
613
 
614
614
  Check the top-level render call using <` + S + ">.");
615
615
  }
616
- return P;
616
+ return M;
617
617
  }
618
618
  }
619
- function d5(j, P) {
619
+ function u5(j, M) {
620
620
  {
621
621
  if (!j._store || j._store.validated || j.key != null)
622
622
  return;
623
623
  j._store.validated = !0;
624
- var S = a8(P);
624
+ var S = a8(M);
625
625
  if (l5[S])
626
626
  return;
627
627
  l5[S] = !0;
@@ -629,14 +629,14 @@ Check the top-level render call using <` + S + ">.");
629
629
  j && j._owner && j._owner !== Vt.current && (D = " It was passed a child from " + R(j._owner.type) + "."), ze(j), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, D), ze(null);
630
630
  }
631
631
  }
632
- function u5(j, P) {
632
+ function d5(j, M) {
633
633
  {
634
634
  if (typeof j != "object")
635
635
  return;
636
636
  if (We(j))
637
637
  for (var S = 0; S < j.length; S++) {
638
638
  var D = j[S];
639
- yt(D) && d5(D, P);
639
+ yt(D) && u5(D, M);
640
640
  }
641
641
  else if (yt(j))
642
642
  j._store && (j._store.validated = !0);
@@ -644,39 +644,39 @@ Check the top-level render call using <` + S + ">.");
644
644
  var a1 = f(j);
645
645
  if (typeof a1 == "function" && a1 !== j.entries)
646
646
  for (var o1 = a1.call(j), r1; !(r1 = o1.next()).done; )
647
- yt(r1.value) && d5(r1.value, P);
647
+ yt(r1.value) && u5(r1.value, M);
648
648
  }
649
649
  }
650
650
  }
651
651
  function c8(j) {
652
652
  {
653
- var P = j.type;
654
- if (P == null || typeof P == "string")
653
+ var M = j.type;
654
+ if (M == null || typeof M == "string")
655
655
  return;
656
656
  var S;
657
- if (typeof P == "function")
658
- S = P.propTypes;
659
- else if (typeof P == "object" && (P.$$typeof === s || // Note: Memo only checks outer props here.
657
+ if (typeof M == "function")
658
+ S = M.propTypes;
659
+ else if (typeof M == "object" && (M.$$typeof === s || // Note: Memo only checks outer props here.
660
660
  // Inner props are checked in the reconciler.
661
- P.$$typeof === p))
662
- S = P.propTypes;
661
+ M.$$typeof === p))
662
+ S = M.propTypes;
663
663
  else
664
664
  return;
665
665
  if (S) {
666
- var D = R(P);
666
+ var D = R(M);
667
667
  q1(S, j.props, "prop", D, j);
668
- } else if (P.PropTypes !== void 0 && !Ot) {
668
+ } else if (M.PropTypes !== void 0 && !Ot) {
669
669
  Ot = !0;
670
- var a1 = R(P);
670
+ var a1 = R(M);
671
671
  y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", a1 || "Unknown");
672
672
  }
673
- typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
673
+ typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
674
674
  }
675
675
  }
676
676
  function o8(j) {
677
677
  {
678
- for (var P = Object.keys(j.props), S = 0; S < P.length; S++) {
679
- var D = P[S];
678
+ for (var M = Object.keys(j.props), S = 0; S < M.length; S++) {
679
+ var D = M[S];
680
680
  if (D !== "children" && D !== "key") {
681
681
  ze(j), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", D), ze(null);
682
682
  break;
@@ -686,9 +686,9 @@ Check the top-level render call using <` + S + ">.");
686
686
  }
687
687
  }
688
688
  var p5 = {};
689
- function g5(j, P, S, D, a1, o1) {
689
+ function g5(j, M, S, D, a1, o1) {
690
690
  {
691
- var r1 = w(j);
691
+ var r1 = W(j);
692
692
  if (!r1) {
693
693
  var $ = "";
694
694
  (j === void 0 || typeof j == "object" && j !== null && Object.keys(j).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -697,44 +697,44 @@ Check the top-level render call using <` + S + ">.");
697
697
  var p1;
698
698
  j === null ? p1 = "null" : We(j) ? p1 = "array" : j !== void 0 && j.$$typeof === r ? (p1 = "<" + (R(j.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : p1 = typeof j, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p1, $);
699
699
  }
700
- var C1 = ft(j, P, S, a1, o1);
700
+ var C1 = ft(j, M, S, a1, o1);
701
701
  if (C1 == null)
702
702
  return C1;
703
703
  if (r1) {
704
- var U1 = P.children;
704
+ var U1 = M.children;
705
705
  if (U1 !== void 0)
706
706
  if (D)
707
707
  if (We(U1)) {
708
708
  for (var ke = 0; ke < U1.length; ke++)
709
- u5(U1[ke], j);
709
+ d5(U1[ke], j);
710
710
  Object.freeze && Object.freeze(U1);
711
711
  } else
712
712
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
713
713
  else
714
- u5(U1, j);
714
+ d5(U1, j);
715
715
  }
716
- if (Q.call(P, "key")) {
717
- var de = R(j), v1 = Object.keys(P).filter(function(u8) {
718
- return u8 !== "key";
716
+ if (Q.call(M, "key")) {
717
+ var ue = R(j), v1 = Object.keys(M).filter(function(d8) {
718
+ return d8 !== "key";
719
719
  }), Ht = v1.length > 0 ? "{key: someKey, " + v1.join(": ..., ") + ": ...}" : "{key: someKey}";
720
- if (!p5[de + Ht]) {
721
- var d8 = v1.length > 0 ? "{" + v1.join(": ..., ") + ": ...}" : "{}";
720
+ if (!p5[ue + Ht]) {
721
+ var u8 = v1.length > 0 ? "{" + v1.join(": ..., ") + ": ...}" : "{}";
722
722
  y(`A props object containing a "key" prop is being spread into JSX:
723
723
  let props = %s;
724
724
  <%s {...props} />
725
725
  React keys must be passed directly to JSX without using spread:
726
726
  let props = %s;
727
- <%s key={someKey} {...props} />`, Ht, de, d8, de), p5[de + Ht] = !0;
727
+ <%s key={someKey} {...props} />`, Ht, ue, u8, ue), p5[ue + Ht] = !0;
728
728
  }
729
729
  }
730
730
  return j === n ? o8(C1) : c8(C1), C1;
731
731
  }
732
732
  }
733
- function A8(j, P, S) {
734
- return g5(j, P, S, !0);
733
+ function A8(j, M, S) {
734
+ return g5(j, M, S, !0);
735
735
  }
736
- function i8(j, P, S) {
737
- return g5(j, P, S, !1);
736
+ function i8(j, M, S) {
737
+ return g5(j, M, S, !1);
738
738
  }
739
739
  var s8 = i8, l8 = A8;
740
740
  Be.Fragment = n, Be.jsx = s8, Be.jsxs = l8;
@@ -744,14 +744,14 @@ process.env.NODE_ENV === "production" ? Tt.exports = y8() : Tt.exports = H8();
744
744
  var a = Tt.exports;
745
745
  function z8() {
746
746
  for (var e = 0, r, t, n = ""; e < arguments.length; )
747
- (r = arguments[e++]) && (t = un(r)) && (n && (n += " "), n += t);
747
+ (r = arguments[e++]) && (t = dn(r)) && (n && (n += " "), n += t);
748
748
  return n;
749
749
  }
750
- function un(e) {
750
+ function dn(e) {
751
751
  if (typeof e == "string")
752
752
  return e;
753
753
  for (var r, t = "", n = 0; n < e.length; n++)
754
- e[n] && (r = un(e[n])) && (t && (t += " "), t += r);
754
+ e[n] && (r = dn(e[n])) && (t && (t += " "), t += r);
755
755
  return t;
756
756
  }
757
757
  var o2 = "-";
@@ -842,8 +842,8 @@ function M8(e, r) {
842
842
  return r ? e.map(function(t) {
843
843
  var n = t[0], c = t[1], o = c.map(function(A) {
844
844
  return typeof A == "string" ? r + A : typeof A == "object" ? Object.fromEntries(Object.entries(A).map(function(i) {
845
- var s = i[0], u = i[1];
846
- return [r + s, u];
845
+ var s = i[0], d = i[1];
846
+ return [r + s, d];
847
847
  })) : A;
848
848
  });
849
849
  return [n, o];
@@ -882,10 +882,10 @@ function K8(e) {
882
882
  var s = n[i];
883
883
  c === 0 && s === r[0] && (r.length === 1 || n.slice(i, i + r.length) === r) && (o.push(n.slice(A, i)), A = i + r.length), s === "[" ? c++ : s === "]" && c--;
884
884
  }
885
- var u = o.length === 0 ? n : n.substring(A), d = u.startsWith(gn), p = d ? u.substring(1) : u;
885
+ var d = o.length === 0 ? n : n.substring(A), u = d.startsWith(gn), p = u ? d.substring(1) : d;
886
886
  return {
887
887
  modifiers: o,
888
- hasImportantModifier: d,
888
+ hasImportantModifier: u,
889
889
  baseClassName: p
890
890
  };
891
891
  };
@@ -910,13 +910,13 @@ var q8 = /\s+/;
910
910
  function U8(e, r) {
911
911
  var t = r.splitModifiers, n = r.getClassGroupId, c = r.getConflictingClassGroupIds, o = /* @__PURE__ */ new Set();
912
912
  return e.trim().split(q8).map(function(A) {
913
- var i = t(A), s = i.modifiers, u = i.hasImportantModifier, d = i.baseClassName, p = n(d);
913
+ var i = t(A), s = i.modifiers, d = i.hasImportantModifier, u = i.baseClassName, p = n(u);
914
914
  if (!p)
915
915
  return {
916
916
  isTailwindClass: !1,
917
917
  originalClassName: A
918
918
  };
919
- var g = N8(s).join(":"), C = u ? g + gn : g;
919
+ var g = N8(s).join(":"), C = d ? g + gn : g;
920
920
  return {
921
921
  isTailwindClass: !0,
922
922
  modifierId: C,
@@ -926,9 +926,9 @@ function U8(e, r) {
926
926
  }).reverse().filter(function(A) {
927
927
  if (!A.isTailwindClass)
928
928
  return !0;
929
- var i = A.modifierId, s = A.classGroupId, u = i + s;
930
- return o.has(u) ? !1 : (o.add(u), c(s).forEach(function(d) {
931
- return o.add(i + d);
929
+ var i = A.modifierId, s = A.classGroupId, d = i + s;
930
+ return o.has(d) ? !1 : (o.add(d), c(s).forEach(function(u) {
931
+ return o.add(i + u);
932
932
  }), !0);
933
933
  }).reverse().map(function(A) {
934
934
  return A.originalClassName;
@@ -938,18 +938,18 @@ function h8() {
938
938
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
939
939
  r[t] = arguments[t];
940
940
  var n, c, o, A = i;
941
- function i(u) {
942
- var d = r[0], p = r.slice(1), g = p.reduce(function(C, x) {
941
+ function i(d) {
942
+ var u = r[0], p = r.slice(1), g = p.reduce(function(C, x) {
943
943
  return x(C);
944
- }, d());
945
- return n = S8(g), c = n.cache.get, o = n.cache.set, A = s, s(u);
944
+ }, u());
945
+ return n = S8(g), c = n.cache.get, o = n.cache.set, A = s, s(d);
946
946
  }
947
- function s(u) {
948
- var d = c(u);
949
- if (d)
950
- return d;
951
- var p = U8(u, n);
952
- return o(u, p), p;
947
+ function s(d) {
948
+ var u = c(d);
949
+ if (u)
950
+ return u;
951
+ var p = U8(d, n);
952
+ return o(d, p), p;
953
953
  }
954
954
  return function() {
955
955
  return A(z8.apply(null, arguments));
@@ -1018,13 +1018,13 @@ function L8(e) {
1018
1018
  return F8.test(e);
1019
1019
  }
1020
1020
  function J8() {
1021
- var e = i1("colors"), r = i1("spacing"), t = i1("blur"), n = i1("brightness"), c = i1("borderColor"), o = i1("borderRadius"), A = i1("borderSpacing"), i = i1("borderWidth"), s = i1("contrast"), u = i1("grayscale"), d = i1("hueRotate"), p = i1("invert"), g = i1("gap"), C = i1("gradientColorStops"), x = i1("inset"), m = i1("margin"), f = i1("opacity"), O = i1("padding"), y = i1("saturate"), z = i1("scale"), H = i1("sepia"), k = i1("skew"), M = i1("space"), v = i1("translate"), h = function() {
1021
+ var e = i1("colors"), r = i1("spacing"), t = i1("blur"), n = i1("brightness"), c = i1("borderColor"), o = i1("borderRadius"), A = i1("borderSpacing"), i = i1("borderWidth"), s = i1("contrast"), d = i1("grayscale"), u = i1("hueRotate"), p = i1("invert"), g = i1("gap"), C = i1("gradientColorStops"), x = i1("inset"), m = i1("margin"), f = i1("opacity"), O = i1("padding"), y = i1("saturate"), z = i1("scale"), H = i1("sepia"), k = i1("skew"), P = i1("space"), v = i1("translate"), h = function() {
1022
1022
  return ["auto", "contain", "none"];
1023
- }, W = function() {
1023
+ }, U = function() {
1024
1024
  return ["auto", "hidden", "clip", "visible", "scroll"];
1025
- }, w = function() {
1025
+ }, W = function() {
1026
1026
  return ["auto", r];
1027
- }, U = function() {
1027
+ }, w = function() {
1028
1028
  return ["", F1];
1029
1029
  }, Z = function() {
1030
1030
  return ["auto", $e, x1];
@@ -1055,15 +1055,15 @@ function J8() {
1055
1055
  borderColor: [e],
1056
1056
  borderRadius: ["none", "", "full", ce, pe],
1057
1057
  borderSpacing: [r],
1058
- borderWidth: U(),
1058
+ borderWidth: w(),
1059
1059
  contrast: b(),
1060
1060
  grayscale: _(),
1061
1061
  hueRotate: N(),
1062
1062
  invert: _(),
1063
1063
  gap: [r],
1064
1064
  gradientColorStops: [e],
1065
- inset: w(),
1066
- margin: w(),
1065
+ inset: W(),
1066
+ margin: W(),
1067
1067
  opacity: b(),
1068
1068
  padding: [r],
1069
1069
  saturate: b(),
@@ -1172,21 +1172,21 @@ function J8() {
1172
1172
  * @see https://tailwindcss.com/docs/overflow
1173
1173
  */
1174
1174
  overflow: [{
1175
- overflow: W()
1175
+ overflow: U()
1176
1176
  }],
1177
1177
  /**
1178
1178
  * Overflow X
1179
1179
  * @see https://tailwindcss.com/docs/overflow
1180
1180
  */
1181
1181
  "overflow-x": [{
1182
- "overflow-x": W()
1182
+ "overflow-x": U()
1183
1183
  }],
1184
1184
  /**
1185
1185
  * Overflow Y
1186
1186
  * @see https://tailwindcss.com/docs/overflow
1187
1187
  */
1188
1188
  "overflow-y": [{
1189
- "overflow-y": W()
1189
+ "overflow-y": U()
1190
1190
  }],
1191
1191
  /**
1192
1192
  * Overscroll Behavior
@@ -1594,7 +1594,7 @@ function J8() {
1594
1594
  * @see https://tailwindcss.com/docs/space
1595
1595
  */
1596
1596
  "space-x": [{
1597
- "space-x": [M]
1597
+ "space-x": [P]
1598
1598
  }],
1599
1599
  /**
1600
1600
  * Space Between X Reverse
@@ -1606,7 +1606,7 @@ function J8() {
1606
1606
  * @see https://tailwindcss.com/docs/space
1607
1607
  */
1608
1608
  "space-y": [{
1609
- "space-y": [M]
1609
+ "space-y": [P]
1610
1610
  }],
1611
1611
  /**
1612
1612
  * Space Between Y Reverse
@@ -2206,7 +2206,7 @@ function J8() {
2206
2206
  * @see https://tailwindcss.com/docs/ring-width
2207
2207
  */
2208
2208
  "ring-w": [{
2209
- ring: U()
2209
+ ring: w()
2210
2210
  }],
2211
2211
  /**
2212
2212
  * Ring Width Inset
@@ -2319,14 +2319,14 @@ function J8() {
2319
2319
  * @see https://tailwindcss.com/docs/grayscale
2320
2320
  */
2321
2321
  grayscale: [{
2322
- grayscale: [u]
2322
+ grayscale: [d]
2323
2323
  }],
2324
2324
  /**
2325
2325
  * Hue Rotate
2326
2326
  * @see https://tailwindcss.com/docs/hue-rotate
2327
2327
  */
2328
2328
  "hue-rotate": [{
2329
- "hue-rotate": [d]
2329
+ "hue-rotate": [u]
2330
2330
  }],
2331
2331
  /**
2332
2332
  * Invert
@@ -2383,14 +2383,14 @@ function J8() {
2383
2383
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2384
2384
  */
2385
2385
  "backdrop-grayscale": [{
2386
- "backdrop-grayscale": [u]
2386
+ "backdrop-grayscale": [d]
2387
2387
  }],
2388
2388
  /**
2389
2389
  * Backdrop Hue Rotate
2390
2390
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2391
2391
  */
2392
2392
  "backdrop-hue-rotate": [{
2393
- "backdrop-hue-rotate": [d]
2393
+ "backdrop-hue-rotate": [u]
2394
2394
  }],
2395
2395
  /**
2396
2396
  * Backdrop Invert
@@ -2885,21 +2885,21 @@ const A2 = {
2885
2885
  );
2886
2886
  }, q = ({ name: e, outline: r, filled: t, variants: n }) => {
2887
2887
  const c = X1(
2888
- ({ size: o = "large", filled: A = !1, variant: i, className: s, ...u }, d) => {
2888
+ ({ size: o = "large", filled: A = !1, variant: i, className: s, ...d }, u) => {
2889
2889
  const p = A2[o], g = i ? n == null ? void 0 : n[i] : void 0, C = g ? A && g.filled ? g.filled : g.outline : A && t ? t : r, x = C == null ? void 0 : C[o];
2890
2890
  if (!x) return null;
2891
2891
  const m = _8(x);
2892
2892
  return /* @__PURE__ */ a.jsx(
2893
2893
  "svg",
2894
2894
  {
2895
- ref: d,
2895
+ ref: u,
2896
2896
  width: p,
2897
2897
  height: p,
2898
2898
  viewBox: `0 0 ${p} ${p}`,
2899
2899
  fill: "none",
2900
2900
  className: V("shrink-0", s),
2901
- "aria-hidden": u["aria-label"] ? void 0 : !0,
2902
- ...u,
2901
+ "aria-hidden": d["aria-label"] ? void 0 : !0,
2902
+ ...d,
2903
2903
  children: m.map($8)
2904
2904
  }
2905
2905
  );
@@ -3632,7 +3632,7 @@ const K = {
3632
3632
  xs: { d: "M6 0C9.31371 0 12 2.68629 12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0ZM8.35547 3.64648C8.16025 3.45142 7.84366 3.45142 7.64844 3.64648L6.00098 5.29395L4.35352 3.64648C4.15824 3.45137 3.8417 3.45127 3.64648 3.64648C3.45127 3.8417 3.45137 4.15824 3.64648 4.35352L5.29395 6.00098L3.64648 7.64844C3.45143 7.84367 3.45142 8.16025 3.64648 8.35547C3.84171 8.55041 4.15833 8.55048 4.35352 8.35547L6.00098 6.70801L7.64844 8.35547C7.84373 8.55031 8.16035 8.55059 8.35547 8.35547C8.55059 8.16035 8.55031 7.84373 8.35547 7.64844L6.70801 6.00098L8.35547 4.35352C8.55049 4.15833 8.55042 3.84172 8.35547 3.64648Z" }
3633
3633
  }
3634
3634
  }
3635
- }, fn = q(K.attachment), t9 = q(K.microphone), Vn = q(K.add), lr = q(K.plus), er = q(K.done), Br = q(K.minus), On = q(K.send), Zr = q(K.search), n9 = q(K.star), a9 = q(K.heart), Yr = q(K.clear), i2 = q(K.analytics), c9 = q(K.trash), Lr = q(K.chat), yn = q(K.chatPro), Jr = q(K.filters), Hn = q(K.pen), Qr = q(K.tick), s2 = q(K.document), o9 = q(K.sparkles), l2 = q(K.expand), A9 = q(K.speaker), i9 = q(K.copy), s9 = q(K.date), l9 = q(K.refresh), Er = q(K.activity), d9 = q(K.menu), zn = q(K.invite), d2 = q(K.report), Ft = q(K.sidebar), u9 = q(K.download), p9 = q(K.upload), g9 = q(K.preview), C9 = q(K.fixes), u2 = q(K.issues), p2 = q(K.more), g2 = q(K.bulb), Ke = q(K.ship), x9 = q(K.person), m9 = q(K.archive), j9 = q(K.logOut), kn = q(K.settings), C2 = q(K.tasks), dr = q(K.workflow), x2 = q(K.form), f9 = q(K.approval), ur = q(K.forms), _r = q(K.book), V9 = q(K.mention), O9 = q(K.actions), $r = q(K.critical), bn = q(K.information), y9 = q(K.caution), In = q(K.folder), H9 = q(K.folderStarred), Pn = q(K.quality), z9 = q(K.location), k9 = q(K.users), b9 = q(K.undo), Mn = q(K.spinner), I9 = q(K.clock), P9 = q(K.gap), m2 = q(K.defectReport), M9 = q(K.task), j2 = q(K.file), v9 = q(K.reportActions), vn = q(K.checkbox), rr = q(K.status), K9 = {
3635
+ }, fn = q(K.attachment), t9 = q(K.microphone), Vn = q(K.add), lr = q(K.plus), er = q(K.done), Br = q(K.minus), On = q(K.send), Zr = q(K.search), n9 = q(K.star), a9 = q(K.heart), Yr = q(K.clear), i2 = q(K.analytics), c9 = q(K.trash), Lr = q(K.chat), yn = q(K.chatPro), Jr = q(K.filters), Hn = q(K.pen), Qr = q(K.tick), s2 = q(K.document), o9 = q(K.sparkles), l2 = q(K.expand), A9 = q(K.speaker), i9 = q(K.copy), s9 = q(K.date), l9 = q(K.refresh), Er = q(K.activity), u9 = q(K.menu), zn = q(K.invite), u2 = q(K.report), Ft = q(K.sidebar), d9 = q(K.download), p9 = q(K.upload), g9 = q(K.preview), C9 = q(K.fixes), d2 = q(K.issues), p2 = q(K.more), g2 = q(K.bulb), Ke = q(K.ship), x9 = q(K.person), m9 = q(K.archive), j9 = q(K.logOut), kn = q(K.settings), C2 = q(K.tasks), ur = q(K.workflow), x2 = q(K.form), f9 = q(K.approval), dr = q(K.forms), _r = q(K.book), V9 = q(K.mention), O9 = q(K.actions), $r = q(K.critical), bn = q(K.information), y9 = q(K.caution), In = q(K.folder), H9 = q(K.folderStarred), Pn = q(K.quality), z9 = q(K.location), k9 = q(K.users), b9 = q(K.undo), Mn = q(K.spinner), I9 = q(K.clock), P9 = q(K.gap), m2 = q(K.defectReport), M9 = q(K.task), j2 = q(K.file), v9 = q(K.reportActions), vn = q(K.checkbox), rr = q(K.status), K9 = {
3636
3636
  heart: a9,
3637
3637
  clear: Yr,
3638
3638
  chevron: H1,
@@ -3661,15 +3661,15 @@ const K = {
3661
3661
  date: s9,
3662
3662
  refresh: l9,
3663
3663
  activity: Er,
3664
- menu: d9,
3664
+ menu: u9,
3665
3665
  invite: zn,
3666
- report: d2,
3666
+ report: u2,
3667
3667
  sidebar: Ft,
3668
- download: u9,
3668
+ download: d9,
3669
3669
  upload: p9,
3670
3670
  preview: g9,
3671
3671
  fixes: C9,
3672
- issues: u2,
3672
+ issues: d2,
3673
3673
  more: p2,
3674
3674
  bulb: g2,
3675
3675
  ship: Ke,
@@ -3678,10 +3678,10 @@ const K = {
3678
3678
  logOut: j9,
3679
3679
  settings: kn,
3680
3680
  tasks: C2,
3681
- workflow: dr,
3681
+ workflow: ur,
3682
3682
  form: x2,
3683
3683
  approval: f9,
3684
- forms: ur,
3684
+ forms: dr,
3685
3685
  book: _r,
3686
3686
  mention: V9,
3687
3687
  actions: O9,
@@ -3763,13 +3763,13 @@ function fe(e, r = []) {
3763
3763
  i.displayName = o + "Context";
3764
3764
  const s = t.length;
3765
3765
  t = [...t, A];
3766
- const u = (p) => {
3766
+ const d = (p) => {
3767
3767
  var O;
3768
3768
  const { scope: g, children: C, ...x } = p, m = ((O = g == null ? void 0 : g[e]) == null ? void 0 : O[s]) || i, f = l.useMemo(() => x, Object.values(x));
3769
3769
  return /* @__PURE__ */ a.jsx(m.Provider, { value: f, children: C });
3770
3770
  };
3771
- u.displayName = o + "Provider";
3772
- function d(p, g, C = {}) {
3771
+ d.displayName = o + "Provider";
3772
+ function u(p, g, C = {}) {
3773
3773
  var O;
3774
3774
  const { optional: x = !1 } = C, m = ((O = g == null ? void 0 : g[e]) == null ? void 0 : O[s]) || i, f = l.useContext(m);
3775
3775
  if (f) return f;
@@ -3777,7 +3777,7 @@ function fe(e, r = []) {
3777
3777
  if (!x)
3778
3778
  throw new Error(`\`${p}\` must be used within \`${o}\``);
3779
3779
  }
3780
- return [u, d];
3780
+ return [d, u];
3781
3781
  }
3782
3782
  const c = () => {
3783
3783
  const o = t.map((A) => l.createContext(A));
@@ -3800,8 +3800,8 @@ function q9(...e) {
3800
3800
  scopeName: c.scopeName
3801
3801
  }));
3802
3802
  return function(o) {
3803
- const A = n.reduce((i, { useScope: s, scopeName: u }) => {
3804
- const p = s(o)[`__scope${u}`];
3803
+ const A = n.reduce((i, { useScope: s, scopeName: d }) => {
3804
+ const p = s(o)[`__scope${d}`];
3805
3805
  return { ...i, ...p };
3806
3806
  }, {});
3807
3807
  return l.useMemo(() => ({ [`__scope${r.scopeName}`]: A }), [A]);
@@ -3823,26 +3823,26 @@ function et({
3823
3823
  onChange: t
3824
3824
  }), i = e !== void 0, s = i ? e : c;
3825
3825
  {
3826
- const d = l.useRef(e !== void 0);
3826
+ const u = l.useRef(e !== void 0);
3827
3827
  l.useEffect(() => {
3828
- const p = d.current;
3828
+ const p = u.current;
3829
3829
  p !== i && console.warn(
3830
3830
  `${n} is changing from ${p ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
3831
- ), d.current = i;
3831
+ ), u.current = i;
3832
3832
  }, [i, n]);
3833
3833
  }
3834
- const u = l.useCallback(
3835
- (d) => {
3834
+ const d = l.useCallback(
3835
+ (u) => {
3836
3836
  var p;
3837
3837
  if (i) {
3838
- const g = w9(d) ? d(e) : d;
3838
+ const g = w9(u) ? u(e) : u;
3839
3839
  g !== e && ((p = A.current) == null || p.call(A, g));
3840
3840
  } else
3841
- o(d);
3841
+ o(u);
3842
3842
  },
3843
3843
  [i, e, o, A]
3844
3844
  );
3845
- return [s, u];
3845
+ return [s, d];
3846
3846
  }
3847
3847
  function h9({
3848
3848
  defaultProp: e,
@@ -3880,7 +3880,7 @@ function tr(e) {
3880
3880
  // itself as the slot target — throw a descriptive error below instead.
3881
3881
  !i && l.Children.count(c) === 1 && l.isValidElement(c) && (A = c)
3882
3882
  );
3883
- const u = A ? F9(A) : void 0, d = j1(n, u);
3883
+ const d = A ? F9(A) : void 0, u = j1(n, d);
3884
3884
  if (!A) {
3885
3885
  if (c || c === 0)
3886
3886
  throw new Error(
@@ -3889,7 +3889,7 @@ function tr(e) {
3889
3889
  return c;
3890
3890
  }
3891
3891
  const p = R9(o, A.props ?? {});
3892
- return A.type !== l.Fragment && (p.ref = n ? d : u), l.cloneElement(A, p);
3892
+ return A.type !== l.Fragment && (p.ref = n ? u : d), l.cloneElement(A, p);
3893
3893
  });
3894
3894
  return r.displayName = `${e}.Slot`, r;
3895
3895
  }
@@ -3963,20 +3963,20 @@ function Sn(e) {
3963
3963
  return /* @__PURE__ */ a.jsx(c, { scope: f, itemMap: z, collectionRef: y, children: O });
3964
3964
  };
3965
3965
  A.displayName = r;
3966
- const i = e + "CollectionSlot", s = /* @__PURE__ */ tr(i), u = l.forwardRef(
3966
+ const i = e + "CollectionSlot", s = /* @__PURE__ */ tr(i), d = l.forwardRef(
3967
3967
  (m, f) => {
3968
3968
  const { scope: O, children: y } = m, z = o(i, O), H = j1(f, z.collectionRef);
3969
3969
  return /* @__PURE__ */ a.jsx(s, { ref: H, children: y });
3970
3970
  }
3971
3971
  );
3972
- u.displayName = i;
3973
- const d = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ tr(d), C = l.forwardRef(
3972
+ d.displayName = i;
3973
+ const u = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ tr(u), C = l.forwardRef(
3974
3974
  (m, f) => {
3975
- const { scope: O, children: y, ...z } = m, H = l.useRef(null), k = j1(f, H), M = o(d, O);
3976
- return l.useEffect(() => (M.itemMap.set(H, { ref: H, ...z }), () => void M.itemMap.delete(H))), /* @__PURE__ */ a.jsx(g, { [p]: "", ref: k, children: y });
3975
+ const { scope: O, children: y, ...z } = m, H = l.useRef(null), k = j1(f, H), P = o(u, O);
3976
+ return l.useEffect(() => (P.itemMap.set(H, { ref: H, ...z }), () => void P.itemMap.delete(H))), /* @__PURE__ */ a.jsx(g, { [p]: "", ref: k, children: y });
3977
3977
  }
3978
3978
  );
3979
- C.displayName = d;
3979
+ C.displayName = u;
3980
3980
  function x(m) {
3981
3981
  const f = o(e + "CollectionConsumer", m);
3982
3982
  return l.useCallback(() => {
@@ -3984,12 +3984,12 @@ function Sn(e) {
3984
3984
  if (!y) return [];
3985
3985
  const z = Array.from(y.querySelectorAll(`[${p}]`));
3986
3986
  return Array.from(f.itemMap.values()).sort(
3987
- (M, v) => z.indexOf(M.ref.current) - z.indexOf(v.ref.current)
3987
+ (P, v) => z.indexOf(P.ref.current) - z.indexOf(v.ref.current)
3988
3988
  );
3989
3989
  }, [f.collectionRef, f.itemMap]);
3990
3990
  }
3991
3991
  return [
3992
- { Provider: A, Slot: u, ItemSlot: C },
3992
+ { Provider: A, Slot: d, ItemSlot: C },
3993
3993
  x,
3994
3994
  n
3995
3995
  ];
@@ -4028,55 +4028,55 @@ var J9 = "DismissableLayer", Gt = "dismissableLayer.update", Q9 = "dismissableLa
4028
4028
  onFocusOutside: A,
4029
4029
  onInteractOutside: i,
4030
4030
  onDismiss: s,
4031
- ...u
4032
- } = e, d = l.useContext(V2), [p, g] = l.useState(null), C = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = l.useState({}), m = j1(r, g), f = Array.from(d.layers), [O] = [
4033
- ...d.layersWithOutsidePointerEventsDisabled
4034
- ].slice(-1), y = O ? f.indexOf(O) : -1, z = p ? f.indexOf(p) : -1, H = d.layersWithOutsidePointerEventsDisabled.size > 0, k = z >= y, M = l.useRef(!1), v = tc(
4035
- (U) => {
4036
- o == null || o(U), i == null || i(U), U.defaultPrevented || s == null || s();
4031
+ ...d
4032
+ } = e, u = l.useContext(V2), [p, g] = l.useState(null), C = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, x] = l.useState({}), m = j1(r, g), f = Array.from(u.layers), [O] = [
4033
+ ...u.layersWithOutsidePointerEventsDisabled
4034
+ ].slice(-1), y = O ? f.indexOf(O) : -1, z = p ? f.indexOf(p) : -1, H = u.layersWithOutsidePointerEventsDisabled.size > 0, k = z >= y, P = l.useRef(!1), v = tc(
4035
+ (w) => {
4036
+ o == null || o(w), i == null || i(w), w.defaultPrevented || s == null || s();
4037
4037
  },
4038
4038
  {
4039
4039
  ownerDocument: C,
4040
4040
  deferPointerDownOutside: n,
4041
- isDeferredPointerDownOutsideRef: M,
4042
- dismissableSurfaces: d.dismissableSurfaces,
4041
+ isDeferredPointerDownOutsideRef: P,
4042
+ dismissableSurfaces: u.dismissableSurfaces,
4043
4043
  shouldHandlePointerDownOutside: l.useCallback(
4044
- (U) => {
4045
- if (!(U instanceof Node))
4044
+ (w) => {
4045
+ if (!(w instanceof Node))
4046
4046
  return !1;
4047
- const Z = [...d.branches].some(
4048
- (R) => R.contains(U)
4047
+ const Z = [...u.branches].some(
4048
+ (R) => R.contains(w)
4049
4049
  );
4050
4050
  return k && !Z;
4051
4051
  },
4052
- [d.branches, k]
4052
+ [u.branches, k]
4053
4053
  )
4054
4054
  }
4055
- ), h = nc((U) => {
4056
- if (n && M.current)
4055
+ ), h = nc((w) => {
4056
+ if (n && P.current)
4057
4057
  return;
4058
- const Z = U.target;
4059
- [...d.branches].some((F) => F.contains(Z)) || (A == null || A(U), i == null || i(U), U.defaultPrevented || s == null || s());
4060
- }, C), W = p ? z === f.length - 1 : !1, w = ee((U) => {
4061
- U.key === "Escape" && (c == null || c(U), !U.defaultPrevented && s && (U.preventDefault(), s()));
4058
+ const Z = w.target;
4059
+ [...u.branches].some((F) => F.contains(Z)) || (A == null || A(w), i == null || i(w), w.defaultPrevented || s == null || s());
4060
+ }, C), U = p ? z === f.length - 1 : !1, W = ee((w) => {
4061
+ w.key === "Escape" && (c == null || c(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
4062
4062
  });
4063
4063
  return l.useEffect(() => {
4064
- if (W)
4065
- return C.addEventListener("keydown", w, { capture: !0 }), () => C.removeEventListener("keydown", w, { capture: !0 });
4066
- }, [C, W, w]), l.useEffect(() => {
4064
+ if (U)
4065
+ return C.addEventListener("keydown", W, { capture: !0 }), () => C.removeEventListener("keydown", W, { capture: !0 });
4066
+ }, [C, U, W]), l.useEffect(() => {
4067
4067
  if (p)
4068
- return t && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (k5 = C.body.style.pointerEvents, C.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(p)), d.layers.add(p), b5(), () => {
4069
- t && (d.layersWithOutsidePointerEventsDisabled.delete(p), d.layersWithOutsidePointerEventsDisabled.size === 0 && (C.body.style.pointerEvents = k5));
4068
+ return t && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (k5 = C.body.style.pointerEvents, C.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(p)), u.layers.add(p), b5(), () => {
4069
+ t && (u.layersWithOutsidePointerEventsDisabled.delete(p), u.layersWithOutsidePointerEventsDisabled.size === 0 && (C.body.style.pointerEvents = k5));
4070
4070
  };
4071
- }, [p, C, t, d]), l.useEffect(() => () => {
4072
- p && (d.layers.delete(p), d.layersWithOutsidePointerEventsDisabled.delete(p), b5());
4073
- }, [p, d]), l.useEffect(() => {
4074
- const U = () => x({});
4075
- return document.addEventListener(Gt, U), () => document.removeEventListener(Gt, U);
4071
+ }, [p, C, t, u]), l.useEffect(() => () => {
4072
+ p && (u.layers.delete(p), u.layersWithOutsidePointerEventsDisabled.delete(p), b5());
4073
+ }, [p, u]), l.useEffect(() => {
4074
+ const w = () => x({});
4075
+ return document.addEventListener(Gt, w), () => document.removeEventListener(Gt, w);
4076
4076
  }, []), /* @__PURE__ */ a.jsx(
4077
4077
  s1.div,
4078
4078
  {
4079
- ...u,
4079
+ ...d,
4080
4080
  ref: m,
4081
4081
  style: {
4082
4082
  pointerEvents: H ? k ? "auto" : "none" : void 0,
@@ -4121,32 +4121,32 @@ function tc(e, r) {
4121
4121
  isDeferredPointerDownOutsideRef: c,
4122
4122
  dismissableSurfaces: o,
4123
4123
  shouldHandlePointerDownOutside: A = rc
4124
- } = r, i = ee(e), s = l.useRef(!1), u = l.useRef(!1), d = l.useRef(/* @__PURE__ */ new Map()), p = l.useRef(() => {
4124
+ } = r, i = ee(e), s = l.useRef(!1), d = l.useRef(!1), u = l.useRef(/* @__PURE__ */ new Map()), p = l.useRef(() => {
4125
4125
  });
4126
4126
  return l.useEffect(() => {
4127
4127
  function g() {
4128
- u.current = !1, c.current = !1, d.current.clear();
4128
+ d.current = !1, c.current = !1, u.current.clear();
4129
4129
  }
4130
4130
  function C() {
4131
- return Array.from(d.current.values()).some(Boolean);
4131
+ return Array.from(u.current.values()).some(Boolean);
4132
4132
  }
4133
4133
  function x(z) {
4134
- if (!u.current)
4134
+ if (!d.current)
4135
4135
  return;
4136
4136
  const H = z.target;
4137
- H instanceof Node && [...o].some((M) => M.contains(H)) || d.current.set(z.type, !0), z.type === "click" && window.setTimeout(() => {
4138
- u.current && p.current();
4137
+ H instanceof Node && [...o].some((P) => P.contains(H)) || u.current.set(z.type, !0), z.type === "click" && window.setTimeout(() => {
4138
+ d.current && p.current();
4139
4139
  }, 0);
4140
4140
  }
4141
4141
  function m(z) {
4142
- u.current && d.current.set(z.type, !1);
4142
+ d.current && u.current.set(z.type, !1);
4143
4143
  }
4144
4144
  const f = (z) => {
4145
4145
  if (z.target && !s.current) {
4146
4146
  let H = function() {
4147
4147
  t.removeEventListener("click", p.current);
4148
- const M = C();
4149
- g(), M || qn(
4148
+ const P = C();
4149
+ g(), P || qn(
4150
4150
  Q9,
4151
4151
  i,
4152
4152
  k,
@@ -4158,7 +4158,7 @@ function tc(e, r) {
4158
4158
  return;
4159
4159
  }
4160
4160
  const k = { originalEvent: z };
4161
- u.current = !0, c.current = n && z.button === 0, d.current.clear(), !n || z.button !== 0 ? H() : (t.removeEventListener("click", p.current), p.current = H, t.addEventListener("click", p.current, { once: !0 }));
4161
+ d.current = !0, c.current = n && z.button === 0, u.current.clear(), !n || z.button !== 0 ? H() : (t.removeEventListener("click", p.current), p.current = H, t.addEventListener("click", p.current, { once: !0 }));
4162
4162
  } else
4163
4163
  t.removeEventListener("click", p.current), g();
4164
4164
  s.current = !1;
@@ -4235,7 +4235,7 @@ var kt = "focusScope.autoFocusOnMount", bt = "focusScope.autoFocusOnUnmount", P5
4235
4235
  onMountAutoFocus: c,
4236
4236
  onUnmountAutoFocus: o,
4237
4237
  ...A
4238
- } = e, [i, s] = l.useState(null), u = ee(c), d = ee(o), p = l.useRef(null), g = j1(r, s), C = l.useRef({
4238
+ } = e, [i, s] = l.useState(null), d = ee(c), u = ee(o), p = l.useRef(null), g = j1(r, s), C = l.useRef({
4239
4239
  paused: !1,
4240
4240
  pause() {
4241
4241
  this.paused = !0;
@@ -4271,16 +4271,16 @@ var kt = "focusScope.autoFocusOnMount", bt = "focusScope.autoFocusOnUnmount", P5
4271
4271
  const m = document.activeElement;
4272
4272
  if (!i.contains(m)) {
4273
4273
  const O = new CustomEvent(kt, P5);
4274
- i.addEventListener(kt, u), i.dispatchEvent(O), O.defaultPrevented || (cc(lc(hn(i)), { select: !0 }), document.activeElement === m && oe(i));
4274
+ i.addEventListener(kt, d), i.dispatchEvent(O), O.defaultPrevented || (cc(lc(hn(i)), { select: !0 }), document.activeElement === m && oe(i));
4275
4275
  }
4276
4276
  return () => {
4277
- i.removeEventListener(kt, u), setTimeout(() => {
4277
+ i.removeEventListener(kt, d), setTimeout(() => {
4278
4278
  const O = new CustomEvent(bt, P5);
4279
- i.addEventListener(bt, d), i.dispatchEvent(O), O.defaultPrevented || oe(m ?? document.body, { select: !0 }), i.removeEventListener(bt, d), v5.remove(C);
4279
+ i.addEventListener(bt, u), i.dispatchEvent(O), O.defaultPrevented || oe(m ?? document.body, { select: !0 }), i.removeEventListener(bt, u), v5.remove(C);
4280
4280
  }, 0);
4281
4281
  };
4282
4282
  }
4283
- }, [i, u, d, C]);
4283
+ }, [i, d, u, C]);
4284
4284
  const x = l.useCallback(
4285
4285
  (m) => {
4286
4286
  if (!t && !n || C.paused) return;
@@ -4359,12 +4359,12 @@ function K5(e, r) {
4359
4359
  function lc(e) {
4360
4360
  return e.filter((r) => r.tagName !== "A");
4361
4361
  }
4362
- var dc = l[" useId ".trim().toString()] || (() => {
4363
- }), uc = 0;
4362
+ var uc = l[" useId ".trim().toString()] || (() => {
4363
+ }), dc = 0;
4364
4364
  function Ce(e) {
4365
- const [r, t] = l.useState(dc());
4365
+ const [r, t] = l.useState(uc());
4366
4366
  return Q1(() => {
4367
- t((n) => n ?? String(uc++));
4367
+ t((n) => n ?? String(dc++));
4368
4368
  }, [e]), e || (r ? `radix-${r}` : "");
4369
4369
  }
4370
4370
  const pc = ["top", "right", "bottom", "left"], Ae = Math.min, N1 = Math.max, hr = Math.round, zr = Math.floor, E1 = (e) => ({
@@ -4476,18 +4476,18 @@ function q5(e, r, t) {
4476
4476
  reference: n,
4477
4477
  floating: c
4478
4478
  } = e;
4479
- const o = J1(r), A = k2(r), i = z2(A), s = te(r), u = o === "y", d = n.x + n.width / 2 - c.width / 2, p = n.y + n.height / 2 - c.height / 2, g = n[i] / 2 - c[i] / 2;
4479
+ const o = J1(r), A = k2(r), i = z2(A), s = te(r), d = o === "y", u = n.x + n.width / 2 - c.width / 2, p = n.y + n.height / 2 - c.height / 2, g = n[i] / 2 - c[i] / 2;
4480
4480
  let C;
4481
4481
  switch (s) {
4482
4482
  case "top":
4483
4483
  C = {
4484
- x: d,
4484
+ x: u,
4485
4485
  y: n.y - c.height
4486
4486
  };
4487
4487
  break;
4488
4488
  case "bottom":
4489
4489
  C = {
4490
- x: d,
4490
+ x: u,
4491
4491
  y: n.y + n.height
4492
4492
  };
4493
4493
  break;
@@ -4511,10 +4511,10 @@ function q5(e, r, t) {
4511
4511
  }
4512
4512
  switch (he(r)) {
4513
4513
  case "start":
4514
- C[A] -= g * (t && u ? -1 : 1);
4514
+ C[A] -= g * (t && d ? -1 : 1);
4515
4515
  break;
4516
4516
  case "end":
4517
- C[A] += g * (t && u ? -1 : 1);
4517
+ C[A] += g * (t && d ? -1 : 1);
4518
4518
  break;
4519
4519
  }
4520
4520
  return C;
@@ -4530,15 +4530,15 @@ async function yc(e, r) {
4530
4530
  elements: i,
4531
4531
  strategy: s
4532
4532
  } = e, {
4533
- boundary: u = "clippingAncestors",
4534
- rootBoundary: d = "viewport",
4533
+ boundary: d = "clippingAncestors",
4534
+ rootBoundary: u = "viewport",
4535
4535
  elementContext: p = "floating",
4536
4536
  altBoundary: g = !1,
4537
4537
  padding: C = 0
4538
4538
  } = re(r, e), x = wn(C), f = i[g ? p === "floating" ? "reference" : "floating" : p], O = Wr(await o.getClippingRect({
4539
4539
  element: (t = await (o.isElement == null ? void 0 : o.isElement(f))) == null || t ? f : f.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
4540
- boundary: u,
4541
- rootBoundary: d,
4540
+ boundary: d,
4541
+ rootBoundary: u,
4542
4542
  strategy: s
4543
4543
  })), y = p === "floating" ? {
4544
4544
  x: n,
@@ -4574,14 +4574,14 @@ const Hc = 50, zc = async (e, r, t) => {
4574
4574
  ...A,
4575
4575
  detectOverflow: yc
4576
4576
  }, s = await (A.isRTL == null ? void 0 : A.isRTL(r));
4577
- let u = await A.getElementRects({
4577
+ let d = await A.getElementRects({
4578
4578
  reference: e,
4579
4579
  floating: r,
4580
4580
  strategy: c
4581
4581
  }), {
4582
- x: d,
4582
+ x: u,
4583
4583
  y: p
4584
- } = q5(u, n, s), g = n, C = 0;
4584
+ } = q5(d, n, s), g = n, C = 0;
4585
4585
  const x = {};
4586
4586
  for (let m = 0; m < o.length; m++) {
4587
4587
  const f = o[m];
@@ -4594,35 +4594,35 @@ const Hc = 50, zc = async (e, r, t) => {
4594
4594
  x: z,
4595
4595
  y: H,
4596
4596
  data: k,
4597
- reset: M
4597
+ reset: P
4598
4598
  } = await y({
4599
- x: d,
4599
+ x: u,
4600
4600
  y: p,
4601
4601
  initialPlacement: n,
4602
4602
  placement: g,
4603
4603
  strategy: c,
4604
4604
  middlewareData: x,
4605
- rects: u,
4605
+ rects: d,
4606
4606
  platform: i,
4607
4607
  elements: {
4608
4608
  reference: e,
4609
4609
  floating: r
4610
4610
  }
4611
4611
  });
4612
- d = z ?? d, p = H ?? p, x[O] = {
4612
+ u = z ?? u, p = H ?? p, x[O] = {
4613
4613
  ...x[O],
4614
4614
  ...k
4615
- }, M && C < Hc && (C++, typeof M == "object" && (M.placement && (g = M.placement), M.rects && (u = M.rects === !0 ? await A.getElementRects({
4615
+ }, P && C < Hc && (C++, typeof P == "object" && (P.placement && (g = P.placement), P.rects && (d = P.rects === !0 ? await A.getElementRects({
4616
4616
  reference: e,
4617
4617
  floating: r,
4618
4618
  strategy: c
4619
- }) : M.rects), {
4620
- x: d,
4619
+ }) : P.rects), {
4620
+ x: u,
4621
4621
  y: p
4622
- } = q5(u, g, s)), m = -1);
4622
+ } = q5(d, g, s)), m = -1);
4623
4623
  }
4624
4624
  return {
4625
- x: d,
4625
+ x: u,
4626
4626
  y: p,
4627
4627
  placement: g,
4628
4628
  strategy: c,
@@ -4641,18 +4641,18 @@ const Hc = 50, zc = async (e, r, t) => {
4641
4641
  elements: i,
4642
4642
  middlewareData: s
4643
4643
  } = r, {
4644
- element: u,
4645
- padding: d = 0
4644
+ element: d,
4645
+ padding: u = 0
4646
4646
  } = re(e, r) || {};
4647
- if (u == null)
4647
+ if (d == null)
4648
4648
  return {};
4649
- const p = wn(d), g = {
4649
+ const p = wn(u), g = {
4650
4650
  x: t,
4651
4651
  y: n
4652
- }, C = k2(c), x = z2(C), m = await A.getDimensions(u), f = C === "y", O = f ? "top" : "left", y = f ? "bottom" : "right", z = f ? "clientHeight" : "clientWidth", H = o.reference[x] + o.reference[C] - g[C] - o.floating[x], k = g[C] - o.reference[C], M = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(u));
4653
- let v = M ? M[z] : 0;
4654
- (!v || !await (A.isElement == null ? void 0 : A.isElement(M))) && (v = i.floating[z] || o.floating[x]);
4655
- const h = H / 2 - k / 2, W = v / 2 - m[x] / 2 - 1, w = Ae(p[O], W), U = Ae(p[y], W), Z = w, R = v - m[x] - U, F = v / 2 - m[x] / 2 + h, t1 = Dt(Z, F, R), X = !s.arrow && he(c) != null && F !== t1 && o.reference[x] / 2 - (F < Z ? w : U) - m[x] / 2 < 0, _ = X ? F < Z ? F - Z : F - R : 0;
4652
+ }, C = k2(c), x = z2(C), m = await A.getDimensions(d), f = C === "y", O = f ? "top" : "left", y = f ? "bottom" : "right", z = f ? "clientHeight" : "clientWidth", H = o.reference[x] + o.reference[C] - g[C] - o.floating[x], k = g[C] - o.reference[C], P = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(d));
4653
+ let v = P ? P[z] : 0;
4654
+ (!v || !await (A.isElement == null ? void 0 : A.isElement(P))) && (v = i.floating[z] || o.floating[x]);
4655
+ const h = H / 2 - k / 2, U = v / 2 - m[x] / 2 - 1, W = Ae(p[O], U), w = Ae(p[y], U), Z = W, R = v - m[x] - w, F = v / 2 - m[x] / 2 + h, t1 = Dt(Z, F, R), X = !s.arrow && he(c) != null && F !== t1 && o.reference[x] / 2 - (F < Z ? W : w) - m[x] / 2 < 0, _ = X ? F < Z ? F - Z : F - R : 0;
4656
4656
  return {
4657
4657
  [C]: g[C] + _,
4658
4658
  data: {
@@ -4677,9 +4677,9 @@ const Hc = 50, zc = async (e, r, t) => {
4677
4677
  rects: A,
4678
4678
  initialPlacement: i,
4679
4679
  platform: s,
4680
- elements: u
4680
+ elements: d
4681
4681
  } = r, {
4682
- mainAxis: d = !0,
4682
+ mainAxis: u = !0,
4683
4683
  crossAxis: p = !0,
4684
4684
  fallbackPlacements: g,
4685
4685
  fallbackStrategy: C = "bestFit",
@@ -4689,39 +4689,39 @@ const Hc = 50, zc = async (e, r, t) => {
4689
4689
  } = re(e, r);
4690
4690
  if ((t = o.arrow) != null && t.alignmentOffset)
4691
4691
  return {};
4692
- const O = te(c), y = J1(i), z = te(i) === i, H = await (s.isRTL == null ? void 0 : s.isRTL(u.floating)), k = g || (z || !m ? [wr(i)] : xc(i)), M = x !== "none";
4693
- !g && M && k.push(...Vc(i, m, x, H));
4694
- const v = [i, ...k], h = await s.detectOverflow(r, f), W = [];
4695
- let w = ((n = o.flip) == null ? void 0 : n.overflows) || [];
4696
- if (d && W.push(h[O]), p) {
4692
+ const O = te(c), y = J1(i), z = te(i) === i, H = await (s.isRTL == null ? void 0 : s.isRTL(d.floating)), k = g || (z || !m ? [wr(i)] : xc(i)), P = x !== "none";
4693
+ !g && P && k.push(...Vc(i, m, x, H));
4694
+ const v = [i, ...k], h = await s.detectOverflow(r, f), U = [];
4695
+ let W = ((n = o.flip) == null ? void 0 : n.overflows) || [];
4696
+ if (u && U.push(h[O]), p) {
4697
4697
  const F = Cc(c, A, H);
4698
- W.push(h[F[0]], h[F[1]]);
4698
+ U.push(h[F[0]], h[F[1]]);
4699
4699
  }
4700
- if (w = [...w, {
4700
+ if (W = [...W, {
4701
4701
  placement: c,
4702
- overflows: W
4703
- }], !W.every((F) => F <= 0)) {
4704
- var U, Z;
4705
- const F = (((U = o.flip) == null ? void 0 : U.index) || 0) + 1, t1 = v[F];
4702
+ overflows: U
4703
+ }], !U.every((F) => F <= 0)) {
4704
+ var w, Z;
4705
+ const F = (((w = o.flip) == null ? void 0 : w.index) || 0) + 1, t1 = v[F];
4706
4706
  if (t1 && (!(p === "alignment" ? y !== J1(t1) : !1) || // We leave the current main axis only if every placement on that axis
4707
4707
  // overflows the main axis.
4708
- w.every((I) => J1(I.placement) === y ? I.overflows[0] > 0 : !0)))
4708
+ W.every((I) => J1(I.placement) === y ? I.overflows[0] > 0 : !0)))
4709
4709
  return {
4710
4710
  data: {
4711
4711
  index: F,
4712
- overflows: w
4712
+ overflows: W
4713
4713
  },
4714
4714
  reset: {
4715
4715
  placement: t1
4716
4716
  }
4717
4717
  };
4718
- let X = (Z = w.filter((_) => _.overflows[0] <= 0).sort((_, I) => _.overflows[1] - I.overflows[1])[0]) == null ? void 0 : Z.placement;
4718
+ let X = (Z = W.filter((_) => _.overflows[0] <= 0).sort((_, I) => _.overflows[1] - I.overflows[1])[0]) == null ? void 0 : Z.placement;
4719
4719
  if (!X)
4720
4720
  switch (C) {
4721
4721
  case "bestFit": {
4722
4722
  var R;
4723
- const _ = (R = w.filter((I) => {
4724
- if (M) {
4723
+ const _ = (R = W.filter((I) => {
4724
+ if (P) {
4725
4725
  const b = J1(I.placement);
4726
4726
  return b === y || // Create a bias to the `y` side axis due to horizontal
4727
4727
  // reading directions favoring greater width.
@@ -4806,7 +4806,7 @@ async function Pc(e, r) {
4806
4806
  placement: t,
4807
4807
  platform: n,
4808
4808
  elements: c
4809
- } = e, o = await (n.isRTL == null ? void 0 : n.isRTL(c.floating)), A = te(t), i = he(t), s = J1(t) === "y", u = Wn.has(A) ? -1 : 1, d = o && s ? -1 : 1, p = re(r, e);
4809
+ } = e, o = await (n.isRTL == null ? void 0 : n.isRTL(c.floating)), A = te(t), i = he(t), s = J1(t) === "y", d = Wn.has(A) ? -1 : 1, u = o && s ? -1 : 1, p = re(r, e);
4810
4810
  let {
4811
4811
  mainAxis: g,
4812
4812
  crossAxis: C,
@@ -4821,11 +4821,11 @@ async function Pc(e, r) {
4821
4821
  alignmentAxis: p.alignmentAxis
4822
4822
  };
4823
4823
  return i && typeof x == "number" && (C = i === "end" ? x * -1 : x), s ? {
4824
- x: C * d,
4825
- y: g * u
4824
+ x: C * u,
4825
+ y: g * d
4826
4826
  } : {
4827
- x: g * u,
4828
- y: C * d
4827
+ x: g * d,
4828
+ y: C * u
4829
4829
  };
4830
4830
  }
4831
4831
  const Mc = function(e) {
@@ -4875,12 +4875,12 @@ const Mc = function(e) {
4875
4875
  };
4876
4876
  }
4877
4877
  },
4878
- ...u
4879
- } = re(e, r), d = {
4878
+ ...d
4879
+ } = re(e, r), u = {
4880
4880
  x: t,
4881
4881
  y: n
4882
- }, p = await o.detectOverflow(r, u), g = J1(te(c)), C = H2(g);
4883
- let x = d[C], m = d[g];
4882
+ }, p = await o.detectOverflow(r, d), g = J1(te(c)), C = H2(g);
4883
+ let x = u[C], m = u[g];
4884
4884
  if (A) {
4885
4885
  const O = C === "y" ? "top" : "left", y = C === "y" ? "bottom" : "right", z = x + p[O], H = x - p[y];
4886
4886
  x = Dt(z, x, H);
@@ -4920,12 +4920,12 @@ const Mc = function(e) {
4920
4920
  } = r, {
4921
4921
  offset: i = 0,
4922
4922
  mainAxis: s = !0,
4923
- crossAxis: u = !0
4924
- } = re(e, r), d = {
4923
+ crossAxis: d = !0
4924
+ } = re(e, r), u = {
4925
4925
  x: t,
4926
4926
  y: n
4927
4927
  }, p = J1(c), g = H2(p);
4928
- let C = d[g], x = d[p];
4928
+ let C = u[g], x = u[p];
4929
4929
  const m = re(i, r), f = typeof m == "number" ? {
4930
4930
  mainAxis: m,
4931
4931
  crossAxis: 0
@@ -4938,10 +4938,10 @@ const Mc = function(e) {
4938
4938
  const z = g === "y" ? "height" : "width", H = o.reference[g] - o.floating[z] + f.mainAxis, k = o.reference[g] + o.reference[z] - f.mainAxis;
4939
4939
  C < H ? C = H : C > k && (C = k);
4940
4940
  }
4941
- if (u) {
4941
+ if (d) {
4942
4942
  var O, y;
4943
- const z = g === "y" ? "width" : "height", H = Wn.has(te(c)), k = o.reference[p] - o.floating[z] + (H && ((O = A.offset) == null ? void 0 : O[p]) || 0) + (H ? 0 : f.crossAxis), M = o.reference[p] + o.reference[z] + (H ? 0 : ((y = A.offset) == null ? void 0 : y[p]) || 0) - (H ? f.crossAxis : 0);
4944
- x < k ? x = k : x > M && (x = M);
4943
+ const z = g === "y" ? "width" : "height", H = Wn.has(te(c)), k = o.reference[p] - o.floating[z] + (H && ((O = A.offset) == null ? void 0 : O[p]) || 0) + (H ? 0 : f.crossAxis), P = o.reference[p] + o.reference[z] + (H ? 0 : ((y = A.offset) == null ? void 0 : y[p]) || 0) - (H ? f.crossAxis : 0);
4944
+ x < k ? x = k : x > P && (x = P);
4945
4945
  }
4946
4946
  return {
4947
4947
  [g]: C,
@@ -4963,26 +4963,26 @@ const Mc = function(e) {
4963
4963
  } = r, {
4964
4964
  apply: s = () => {
4965
4965
  },
4966
- ...u
4967
- } = re(e, r), d = await A.detectOverflow(r, u), p = te(c), g = he(c), C = J1(c) === "y", {
4966
+ ...d
4967
+ } = re(e, r), u = await A.detectOverflow(r, d), p = te(c), g = he(c), C = J1(c) === "y", {
4968
4968
  width: x,
4969
4969
  height: m
4970
4970
  } = o.floating;
4971
4971
  let f, O;
4972
4972
  p === "top" || p === "bottom" ? (f = p, O = g === (await (A.isRTL == null ? void 0 : A.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (O = p, f = g === "end" ? "top" : "bottom");
4973
- const y = m - d.top - d.bottom, z = x - d.left - d.right, H = Ae(m - d[f], y), k = Ae(x - d[O], z), M = !r.middlewareData.shift;
4973
+ const y = m - u.top - u.bottom, z = x - u.left - u.right, H = Ae(m - u[f], y), k = Ae(x - u[O], z), P = !r.middlewareData.shift;
4974
4974
  let v = H, h = k;
4975
- if ((t = r.middlewareData.shift) != null && t.enabled.x && (h = z), (n = r.middlewareData.shift) != null && n.enabled.y && (v = y), M && !g) {
4976
- const w = N1(d.left, 0), U = N1(d.right, 0), Z = N1(d.top, 0), R = N1(d.bottom, 0);
4977
- C ? h = x - 2 * (w !== 0 || U !== 0 ? w + U : N1(d.left, d.right)) : v = m - 2 * (Z !== 0 || R !== 0 ? Z + R : N1(d.top, d.bottom));
4975
+ if ((t = r.middlewareData.shift) != null && t.enabled.x && (h = z), (n = r.middlewareData.shift) != null && n.enabled.y && (v = y), P && !g) {
4976
+ const W = N1(u.left, 0), w = N1(u.right, 0), Z = N1(u.top, 0), R = N1(u.bottom, 0);
4977
+ C ? h = x - 2 * (W !== 0 || w !== 0 ? W + w : N1(u.left, u.right)) : v = m - 2 * (Z !== 0 || R !== 0 ? Z + R : N1(u.top, u.bottom));
4978
4978
  }
4979
4979
  await s({
4980
4980
  ...r,
4981
4981
  availableWidth: h,
4982
4982
  availableHeight: v
4983
4983
  });
4984
- const W = await A.getDimensions(i.floating);
4985
- return x !== W.width || m !== W.height ? {
4984
+ const U = await A.getDimensions(i.floating);
4985
+ return x !== U.width || m !== U.height ? {
4986
4986
  reset: {
4987
4987
  rects: !0
4988
4988
  }
@@ -5040,11 +5040,11 @@ function tt(e) {
5040
5040
  return !1;
5041
5041
  }
5042
5042
  }
5043
- const qc = /transform|translate|scale|rotate|perspective|filter/, Uc = /paint|layout|strict|content/, ue = (e) => !!e && e !== "none";
5043
+ const qc = /transform|translate|scale|rotate|perspective|filter/, Uc = /paint|layout|strict|content/, de = (e) => !!e && e !== "none";
5044
5044
  let It;
5045
5045
  function b2(e) {
5046
5046
  const r = G1(e) ? D1(e) : e;
5047
- return ue(r.transform) || ue(r.translate) || ue(r.scale) || ue(r.rotate) || ue(r.perspective) || !I2() && (ue(r.backdropFilter) || ue(r.filter)) || qc.test(r.willChange || "") || Uc.test(r.contain || "");
5047
+ return de(r.transform) || de(r.translate) || de(r.scale) || de(r.rotate) || de(r.perspective) || !I2() && (de(r.backdropFilter) || de(r.filter)) || qc.test(r.willChange || "") || Uc.test(r.contain || "");
5048
5048
  }
5049
5049
  function hc(e) {
5050
5050
  let r = ie(e);
@@ -5149,20 +5149,20 @@ function xe(e, r, t, n) {
5149
5149
  let A = E1(1);
5150
5150
  r && (n ? G1(n) && (A = Me(n)) : A = Me(e));
5151
5151
  const i = Wc(o, t, n) ? Gn(o) : E1(0);
5152
- let s = (c.left + i.x) / A.x, u = (c.top + i.y) / A.y, d = c.width / A.x, p = c.height / A.y;
5152
+ let s = (c.left + i.x) / A.x, d = (c.top + i.y) / A.y, u = c.width / A.x, p = c.height / A.y;
5153
5153
  if (o) {
5154
5154
  const g = S1(o), C = n && G1(n) ? S1(n) : n;
5155
5155
  let x = g, m = Bt(x);
5156
5156
  for (; m && n && C !== x; ) {
5157
5157
  const f = Me(m), O = m.getBoundingClientRect(), y = D1(m), z = O.left + (m.clientLeft + parseFloat(y.paddingLeft)) * f.x, H = O.top + (m.clientTop + parseFloat(y.paddingTop)) * f.y;
5158
- s *= f.x, u *= f.y, d *= f.x, p *= f.y, s += z, u += H, x = S1(m), m = Bt(x);
5158
+ s *= f.x, d *= f.y, u *= f.x, p *= f.y, s += z, d += H, x = S1(m), m = Bt(x);
5159
5159
  }
5160
5160
  }
5161
5161
  return Wr({
5162
- width: d,
5162
+ width: u,
5163
5163
  height: p,
5164
5164
  x: s,
5165
- y: u
5165
+ y: d
5166
5166
  });
5167
5167
  }
5168
5168
  function at(e, r) {
@@ -5189,18 +5189,18 @@ function Tc(e) {
5189
5189
  let s = {
5190
5190
  scrollLeft: 0,
5191
5191
  scrollTop: 0
5192
- }, u = E1(1);
5193
- const d = E1(0), p = ne(n);
5192
+ }, d = E1(1);
5193
+ const u = E1(0), p = ne(n);
5194
5194
  if ((p || !p && !o) && ((we(n) !== "body" || pr(A)) && (s = nt(n)), p)) {
5195
5195
  const C = xe(n);
5196
- u = Me(n), d.x = C.x + n.clientLeft, d.y = C.y + n.clientTop;
5196
+ d = Me(n), u.x = C.x + n.clientLeft, u.y = C.y + n.clientTop;
5197
5197
  }
5198
5198
  const g = A && !p && !o ? Dn(A, s) : E1(0);
5199
5199
  return {
5200
- width: t.width * u.x,
5201
- height: t.height * u.y,
5202
- x: t.x * u.x - s.scrollLeft * u.x + d.x + g.x,
5203
- y: t.y * u.y - s.scrollTop * u.y + d.y + g.y
5200
+ width: t.width * d.x,
5201
+ height: t.height * d.y,
5202
+ x: t.x * d.x - s.scrollLeft * d.x + u.x + g.x,
5203
+ y: t.y * d.y - s.scrollTop * d.y + u.y + g.y
5204
5204
  };
5205
5205
  }
5206
5206
  function Rc(e) {
@@ -5223,14 +5223,14 @@ function Gc(e, r) {
5223
5223
  let o = n.clientWidth, A = n.clientHeight, i = 0, s = 0;
5224
5224
  if (c) {
5225
5225
  o = c.width, A = c.height;
5226
- const d = I2();
5227
- (!d || d && r === "fixed") && (i = c.offsetLeft, s = c.offsetTop);
5226
+ const u = I2();
5227
+ (!u || u && r === "fixed") && (i = c.offsetLeft, s = c.offsetTop);
5228
5228
  }
5229
- const u = at(n);
5230
- if (u <= 0) {
5231
- const d = n.ownerDocument, p = d.body, g = getComputedStyle(p), C = d.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, x = Math.abs(n.clientWidth - p.clientWidth - C);
5229
+ const d = at(n);
5230
+ if (d <= 0) {
5231
+ const u = n.ownerDocument, p = u.body, g = getComputedStyle(p), C = u.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, x = Math.abs(n.clientWidth - p.clientWidth - C);
5232
5232
  x <= W5 && (o -= x);
5233
- } else u <= W5 && (o += u);
5233
+ } else d <= W5 && (o += d);
5234
5234
  return {
5235
5235
  width: o,
5236
5236
  height: A,
@@ -5239,12 +5239,12 @@ function Gc(e, r) {
5239
5239
  };
5240
5240
  }
5241
5241
  function Dc(e, r) {
5242
- const t = xe(e, !0, r === "fixed"), n = t.top + e.clientTop, c = t.left + e.clientLeft, o = ne(e) ? Me(e) : E1(1), A = e.clientWidth * o.x, i = e.clientHeight * o.y, s = c * o.x, u = n * o.y;
5242
+ const t = xe(e, !0, r === "fixed"), n = t.top + e.clientTop, c = t.left + e.clientLeft, o = ne(e) ? Me(e) : E1(1), A = e.clientWidth * o.x, i = e.clientHeight * o.y, s = c * o.x, d = n * o.y;
5243
5243
  return {
5244
5244
  width: A,
5245
5245
  height: i,
5246
5246
  x: s,
5247
- y: u
5247
+ y: d
5248
5248
  };
5249
5249
  }
5250
5250
  function T5(e, r, t) {
@@ -5279,7 +5279,7 @@ function Xc(e, r) {
5279
5279
  let A = o ? ie(e) : e;
5280
5280
  for (; G1(A) && !Ne(A); ) {
5281
5281
  const i = D1(A), s = b2(A);
5282
- !s && i.position === "fixed" && (c = null), (o ? !s && !c : !s && i.position === "static" && !!c && (c.position === "absolute" || c.position === "fixed") || pr(A) && !s && Xn(e, A)) ? n = n.filter((d) => d !== A) : c = i, A = ie(A);
5282
+ !s && i.position === "fixed" && (c = null), (o ? !s && !c : !s && i.position === "static" && !!c && (c.position === "absolute" || c.position === "fixed") || pr(A) && !s && Xn(e, A)) ? n = n.filter((u) => u !== A) : c = i, A = ie(A);
5283
5283
  }
5284
5284
  return r.set(e, n), n;
5285
5285
  }
@@ -5291,14 +5291,14 @@ function Bc(e) {
5291
5291
  strategy: c
5292
5292
  } = e;
5293
5293
  const A = [...t === "clippingAncestors" ? tt(r) ? [] : Xc(r, this._c) : [].concat(t), n], i = T5(r, A[0], c);
5294
- let s = i.top, u = i.right, d = i.bottom, p = i.left;
5294
+ let s = i.top, d = i.right, u = i.bottom, p = i.left;
5295
5295
  for (let g = 1; g < A.length; g++) {
5296
5296
  const C = T5(r, A[g], c);
5297
- s = N1(C.top, s), u = Ae(C.right, u), d = Ae(C.bottom, d), p = N1(C.left, p);
5297
+ s = N1(C.top, s), d = Ae(C.right, d), u = Ae(C.bottom, u), p = N1(C.left, p);
5298
5298
  }
5299
5299
  return {
5300
- width: u - p,
5301
- height: d - s,
5300
+ width: d - p,
5301
+ height: u - s,
5302
5302
  x: p,
5303
5303
  y: s
5304
5304
  };
@@ -5320,16 +5320,16 @@ function Yc(e, r, t) {
5320
5320
  scrollTop: 0
5321
5321
  };
5322
5322
  const s = E1(0);
5323
- function u() {
5323
+ function d() {
5324
5324
  s.x = at(c);
5325
5325
  }
5326
5326
  if (n || !n && !o)
5327
5327
  if ((we(r) !== "body" || pr(c)) && (i = nt(r)), n) {
5328
5328
  const C = xe(r, !0, o, r);
5329
5329
  s.x = C.x + r.clientLeft, s.y = C.y + r.clientTop;
5330
- } else c && u();
5331
- o && !n && c && u();
5332
- const d = c && !n && !o ? Dn(c, i) : E1(0), p = A.left + i.scrollLeft - s.x - d.x, g = A.top + i.scrollTop - s.y - d.y;
5330
+ } else c && d();
5331
+ o && !n && c && d();
5332
+ const u = c && !n && !o ? Dn(c, i) : E1(0), p = A.left + i.scrollLeft - s.x - u.x, g = A.top + i.scrollTop - s.y - u.y;
5333
5333
  return {
5334
5334
  x: p,
5335
5335
  y: g,
@@ -5405,21 +5405,21 @@ function Ec(e, r) {
5405
5405
  }
5406
5406
  function A(i, s) {
5407
5407
  i === void 0 && (i = !1), s === void 0 && (s = 1), o();
5408
- const u = e.getBoundingClientRect(), {
5409
- left: d,
5408
+ const d = e.getBoundingClientRect(), {
5409
+ left: u,
5410
5410
  top: p,
5411
5411
  width: g,
5412
5412
  height: C
5413
- } = u;
5413
+ } = d;
5414
5414
  if (i || r(), !g || !C)
5415
5415
  return;
5416
- const x = zr(p), m = zr(c.clientWidth - (d + g)), f = zr(c.clientHeight - (p + C)), O = zr(d), z = {
5416
+ const x = zr(p), m = zr(c.clientWidth - (u + g)), f = zr(c.clientHeight - (p + C)), O = zr(u), z = {
5417
5417
  rootMargin: -x + "px " + -m + "px " + -f + "px " + -O + "px",
5418
5418
  threshold: N1(0, Ae(1, s)) || 1
5419
5419
  };
5420
5420
  let H = !0;
5421
- function k(M) {
5422
- const v = M[0].intersectionRatio;
5421
+ function k(P) {
5422
+ const v = P[0].intersectionRatio;
5423
5423
  if (v !== s) {
5424
5424
  if (!H)
5425
5425
  return A();
@@ -5427,7 +5427,7 @@ function Ec(e, r) {
5427
5427
  A(!1, 1e-7);
5428
5428
  }, 1e3);
5429
5429
  }
5430
- v === 1 && !Zn(u, e.getBoundingClientRect()) && A(), H = !1;
5430
+ v === 1 && !Zn(d, e.getBoundingClientRect()) && A(), H = !1;
5431
5431
  }
5432
5432
  try {
5433
5433
  t = new IntersectionObserver(k, {
@@ -5450,21 +5450,21 @@ function Yn(e, r, t, n) {
5450
5450
  elementResize: A = typeof ResizeObserver == "function",
5451
5451
  layoutShift: i = typeof IntersectionObserver == "function",
5452
5452
  animationFrame: s = !1
5453
- } = n, u = P2(e), d = c || o ? [...u ? nr(u) : [], ...r ? nr(r) : []] : [];
5454
- d.forEach((O) => {
5453
+ } = n, d = P2(e), u = c || o ? [...d ? nr(d) : [], ...r ? nr(r) : []] : [];
5454
+ u.forEach((O) => {
5455
5455
  c && O.addEventListener("scroll", t, {
5456
5456
  passive: !0
5457
5457
  }), o && O.addEventListener("resize", t);
5458
5458
  });
5459
- const p = u && i ? Ec(u, t) : null;
5459
+ const p = d && i ? Ec(d, t) : null;
5460
5460
  let g = -1, C = null;
5461
5461
  A && (C = new ResizeObserver((O) => {
5462
5462
  let [y] = O;
5463
- y && y.target === u && C && r && (C.unobserve(r), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
5463
+ y && y.target === d && C && r && (C.unobserve(r), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
5464
5464
  var z;
5465
5465
  (z = C) == null || z.observe(r);
5466
5466
  })), t();
5467
- }), u && !s && C.observe(u), r && C.observe(r));
5467
+ }), d && !s && C.observe(d), r && C.observe(r));
5468
5468
  let x, m = s ? xe(e) : null;
5469
5469
  s && f();
5470
5470
  function f() {
@@ -5473,7 +5473,7 @@ function Yn(e, r, t, n) {
5473
5473
  }
5474
5474
  return t(), () => {
5475
5475
  var O;
5476
- d.forEach((y) => {
5476
+ u.forEach((y) => {
5477
5477
  c && y.removeEventListener("scroll", t), o && y.removeEventListener("resize", t);
5478
5478
  }), p == null || p(), (O = C) == null || O.disconnect(), C = null, s && cancelAnimationFrame(x);
5479
5479
  };
@@ -5549,8 +5549,8 @@ function Jn(e) {
5549
5549
  } = {},
5550
5550
  transform: i = !0,
5551
5551
  whileElementsMounted: s,
5552
- open: u
5553
- } = e, [d, p] = l.useState({
5552
+ open: d
5553
+ } = e, [u, p] = l.useState({
5554
5554
  x: 0,
5555
5555
  y: 0,
5556
5556
  strategy: t,
@@ -5560,18 +5560,18 @@ function Jn(e) {
5560
5560
  }), [g, C] = l.useState(n);
5561
5561
  Tr(g, n) || C(n);
5562
5562
  const [x, m] = l.useState(null), [f, O] = l.useState(null), y = l.useCallback((I) => {
5563
- I !== M.current && (M.current = I, m(I));
5563
+ I !== P.current && (P.current = I, m(I));
5564
5564
  }, []), z = l.useCallback((I) => {
5565
5565
  I !== v.current && (v.current = I, O(I));
5566
- }, []), H = o || x, k = A || f, M = l.useRef(null), v = l.useRef(null), h = l.useRef(d), W = s != null, w = Mt(s), U = Mt(c), Z = Mt(u), R = l.useCallback(() => {
5567
- if (!M.current || !v.current)
5566
+ }, []), H = o || x, k = A || f, P = l.useRef(null), v = l.useRef(null), h = l.useRef(u), U = s != null, W = Mt(s), w = Mt(c), Z = Mt(d), R = l.useCallback(() => {
5567
+ if (!P.current || !v.current)
5568
5568
  return;
5569
5569
  const I = {
5570
5570
  placement: r,
5571
5571
  strategy: t,
5572
5572
  middleware: g
5573
5573
  };
5574
- U.current && (I.platform = U.current), a7(M.current, v.current, I).then((b) => {
5574
+ w.current && (I.platform = w.current), a7(P.current, v.current, I).then((b) => {
5575
5575
  const N = {
5576
5576
  ...b,
5577
5577
  // The floating element's position may be recomputed while it's closed
@@ -5584,25 +5584,25 @@ function Jn(e) {
5584
5584
  p(N);
5585
5585
  }));
5586
5586
  });
5587
- }, [g, r, t, U, Z]);
5587
+ }, [g, r, t, w, Z]);
5588
5588
  vr(() => {
5589
- u === !1 && h.current.isPositioned && (h.current.isPositioned = !1, p((I) => ({
5589
+ d === !1 && h.current.isPositioned && (h.current.isPositioned = !1, p((I) => ({
5590
5590
  ...I,
5591
5591
  isPositioned: !1
5592
5592
  })));
5593
- }, [u]);
5593
+ }, [d]);
5594
5594
  const F = l.useRef(!1);
5595
5595
  vr(() => (F.current = !0, () => {
5596
5596
  F.current = !1;
5597
5597
  }), []), vr(() => {
5598
- if (H && (M.current = H), k && (v.current = k), H && k) {
5599
- if (w.current)
5600
- return w.current(H, k, R);
5598
+ if (H && (P.current = H), k && (v.current = k), H && k) {
5599
+ if (W.current)
5600
+ return W.current(H, k, R);
5601
5601
  R();
5602
5602
  }
5603
- }, [H, k, R, w, W]);
5603
+ }, [H, k, R, W, U]);
5604
5604
  const t1 = l.useMemo(() => ({
5605
- reference: M,
5605
+ reference: P,
5606
5606
  floating: v,
5607
5607
  setReference: y,
5608
5608
  setFloating: z
@@ -5617,7 +5617,7 @@ function Jn(e) {
5617
5617
  };
5618
5618
  if (!X.floating)
5619
5619
  return I;
5620
- const b = G5(X.floating, d.x), N = G5(X.floating, d.y);
5620
+ const b = G5(X.floating, u.x), N = G5(X.floating, u.y);
5621
5621
  return i ? {
5622
5622
  ...I,
5623
5623
  transform: "translate(" + b + "px, " + N + "px)",
@@ -5629,14 +5629,14 @@ function Jn(e) {
5629
5629
  left: b,
5630
5630
  top: N
5631
5631
  };
5632
- }, [t, i, X.floating, d.x, d.y]);
5632
+ }, [t, i, X.floating, u.x, u.y]);
5633
5633
  return l.useMemo(() => ({
5634
- ...d,
5634
+ ...u,
5635
5635
  update: R,
5636
5636
  refs: t1,
5637
5637
  elements: X,
5638
5638
  floatingStyles: _
5639
- }), [d, R, t1, X, _]);
5639
+ }), [u, R, t1, X, _]);
5640
5640
  }
5641
5641
  const A7 = (e) => {
5642
5642
  function r(t) {
@@ -5733,8 +5733,8 @@ function l7(e) {
5733
5733
  const o = c[0];
5734
5734
  let A, i;
5735
5735
  if ("borderBoxSize" in o) {
5736
- const s = o.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
5737
- A = u.inlineSize, i = u.blockSize;
5736
+ const s = o.borderBoxSize, d = Array.isArray(s) ? s[0] : s;
5737
+ A = d.inlineSize, i = d.blockSize;
5738
5738
  } else
5739
5739
  A = e.offsetWidth, i = e.offsetHeight;
5740
5740
  t({ width: A, height: i });
@@ -5744,10 +5744,10 @@ function l7(e) {
5744
5744
  t(void 0);
5745
5745
  }, [e]), r;
5746
5746
  }
5747
- var M2 = "Popper", [a4, c4] = fe(M2), [d7, o4] = a4(M2), A4 = (e) => {
5747
+ var M2 = "Popper", [a4, c4] = fe(M2), [u7, o4] = a4(M2), A4 = (e) => {
5748
5748
  const { __scopePopper: r, children: t } = e, [n, c] = l.useState(null), [o, A] = l.useState(void 0);
5749
5749
  return /* @__PURE__ */ a.jsx(
5750
- d7,
5750
+ u7,
5751
5751
  {
5752
5752
  scope: r,
5753
5753
  anchor: n,
@@ -5766,12 +5766,12 @@ var i4 = "PopperAnchor", s4 = l.forwardRef(
5766
5766
  A.current = x, x && i(x);
5767
5767
  },
5768
5768
  [i]
5769
- ), u = j1(r, s), d = l.useRef(null);
5769
+ ), d = j1(r, s), u = l.useRef(null);
5770
5770
  l.useEffect(() => {
5771
5771
  if (!n)
5772
5772
  return;
5773
- const x = d.current;
5774
- d.current = n.current, x !== d.current && i(d.current);
5773
+ const x = u.current;
5774
+ u.current = n.current, x !== u.current && i(u.current);
5775
5775
  });
5776
5776
  const p = o.placementState && K2(o.placementState), g = p == null ? void 0 : p[0], C = p == null ? void 0 : p[1];
5777
5777
  return n ? null : /* @__PURE__ */ a.jsx(
@@ -5780,13 +5780,13 @@ var i4 = "PopperAnchor", s4 = l.forwardRef(
5780
5780
  "data-radix-popper-side": g,
5781
5781
  "data-radix-popper-align": C,
5782
5782
  ...c,
5783
- ref: u
5783
+ ref: d
5784
5784
  }
5785
5785
  );
5786
5786
  }
5787
5787
  );
5788
5788
  s4.displayName = i4;
5789
- var v2 = "PopperContent", [u7, p7] = a4(v2), l4 = l.forwardRef(
5789
+ var v2 = "PopperContent", [d7, p7] = a4(v2), l4 = l.forwardRef(
5790
5790
  (e, r) => {
5791
5791
  var Y, e1, A1, P1, z1, g1;
5792
5792
  const {
@@ -5797,22 +5797,22 @@ var v2 = "PopperContent", [u7, p7] = a4(v2), l4 = l.forwardRef(
5797
5797
  alignOffset: A = 0,
5798
5798
  arrowPadding: i = 0,
5799
5799
  avoidCollisions: s = !0,
5800
- collisionBoundary: u = [],
5801
- collisionPadding: d = 0,
5800
+ collisionBoundary: d = [],
5801
+ collisionPadding: u = 0,
5802
5802
  sticky: p = "partial",
5803
5803
  hideWhenDetached: g = !1,
5804
5804
  updatePositionStrategy: C = "optimized",
5805
5805
  onPlaced: x,
5806
5806
  ...m
5807
- } = e, f = o4(v2, t), [O, y] = l.useState(null), z = j1(r, y), [H, k] = l.useState(null), M = l7(H), v = (M == null ? void 0 : M.width) ?? 0, h = (M == null ? void 0 : M.height) ?? 0, W = n + (o !== "center" ? "-" + o : ""), w = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, U = Array.isArray(u) ? u : [u], Z = U.length > 0, R = {
5808
- padding: w,
5809
- boundary: U.filter(C7),
5807
+ } = e, f = o4(v2, t), [O, y] = l.useState(null), z = j1(r, y), [H, k] = l.useState(null), P = l7(H), v = (P == null ? void 0 : P.width) ?? 0, h = (P == null ? void 0 : P.height) ?? 0, U = n + (o !== "center" ? "-" + o : ""), W = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, w = Array.isArray(d) ? d : [d], Z = w.length > 0, R = {
5808
+ padding: W,
5809
+ boundary: w.filter(C7),
5810
5810
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
5811
5811
  altBoundary: Z
5812
5812
  }, { refs: F, floatingStyles: t1, placement: X, isPositioned: _, middlewareData: I } = Jn({
5813
5813
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
5814
5814
  strategy: "fixed",
5815
- placement: W,
5815
+ placement: U,
5816
5816
  whileElementsMounted: (...J) => Yn(...J, {
5817
5817
  animationFrame: C === "always"
5818
5818
  }),
@@ -5830,9 +5830,9 @@ var v2 = "PopperContent", [u7, p7] = a4(v2), l4 = l.forwardRef(
5830
5830
  s && $n({ ...R }),
5831
5831
  e4({
5832
5832
  ...R,
5833
- apply: ({ elements: J, rects: d1, availableWidth: Q, availableHeight: f1 }) => {
5834
- const { width: V1, height: u1 } = d1.reference, q1 = J.floating.style;
5835
- q1.setProperty("--radix-popper-available-width", `${Q}px`), q1.setProperty("--radix-popper-available-height", `${f1}px`), q1.setProperty("--radix-popper-anchor-width", `${V1}px`), q1.setProperty("--radix-popper-anchor-height", `${u1}px`);
5833
+ apply: ({ elements: J, rects: u1, availableWidth: Q, availableHeight: f1 }) => {
5834
+ const { width: V1, height: d1 } = u1.reference, q1 = J.floating.style;
5835
+ q1.setProperty("--radix-popper-available-width", `${Q}px`), q1.setProperty("--radix-popper-available-height", `${f1}px`), q1.setProperty("--radix-popper-anchor-width", `${V1}px`), q1.setProperty("--radix-popper-anchor-height", `${d1}px`);
5836
5836
  }
5837
5837
  }),
5838
5838
  H && t4({ element: H, padding: i }),
@@ -5886,7 +5886,7 @@ var v2 = "PopperContent", [u7, p7] = a4(v2), l4 = l.forwardRef(
5886
5886
  },
5887
5887
  dir: e.dir,
5888
5888
  children: /* @__PURE__ */ a.jsx(
5889
- u7,
5889
+ d7,
5890
5890
  {
5891
5891
  scope: t,
5892
5892
  placedSide: N,
@@ -5917,13 +5917,13 @@ var v2 = "PopperContent", [u7, p7] = a4(v2), l4 = l.forwardRef(
5917
5917
  }
5918
5918
  );
5919
5919
  l4.displayName = v2;
5920
- var d4 = "PopperArrow", g7 = {
5920
+ var u4 = "PopperArrow", g7 = {
5921
5921
  top: "bottom",
5922
5922
  right: "left",
5923
5923
  bottom: "top",
5924
5924
  left: "right"
5925
- }, u4 = l.forwardRef(function(r, t) {
5926
- const { __scopePopper: n, ...c } = r, o = p7(d4, n), A = g7[o.placedSide];
5925
+ }, d4 = l.forwardRef(function(r, t) {
5926
+ const { __scopePopper: n, ...c } = r, o = p7(u4, n), A = g7[o.placedSide];
5927
5927
  return (
5928
5928
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
5929
5929
  // doesn't report size as we'd expect on SVG elements.
@@ -5967,7 +5967,7 @@ var d4 = "PopperArrow", g7 = {
5967
5967
  )
5968
5968
  );
5969
5969
  });
5970
- u4.displayName = d4;
5970
+ d4.displayName = u4;
5971
5971
  function C7(e) {
5972
5972
  return e !== null;
5973
5973
  }
@@ -5976,16 +5976,16 @@ var x7 = (e) => ({
5976
5976
  options: e,
5977
5977
  fn(r) {
5978
5978
  var f, O, y;
5979
- const { placement: t, rects: n, middlewareData: c } = r, A = ((f = c.arrow) == null ? void 0 : f.centerOffset) !== 0, i = A ? 0 : e.arrowWidth, s = A ? 0 : e.arrowHeight, [u, d] = K2(t), p = { start: "0%", center: "50%", end: "100%" }[d], g = (((O = c.arrow) == null ? void 0 : O.x) ?? 0) + i / 2, C = (((y = c.arrow) == null ? void 0 : y.y) ?? 0) + s / 2;
5979
+ const { placement: t, rects: n, middlewareData: c } = r, A = ((f = c.arrow) == null ? void 0 : f.centerOffset) !== 0, i = A ? 0 : e.arrowWidth, s = A ? 0 : e.arrowHeight, [d, u] = K2(t), p = { start: "0%", center: "50%", end: "100%" }[u], g = (((O = c.arrow) == null ? void 0 : O.x) ?? 0) + i / 2, C = (((y = c.arrow) == null ? void 0 : y.y) ?? 0) + s / 2;
5980
5980
  let x = "", m = "";
5981
- return u === "bottom" ? (x = A ? p : `${g}px`, m = `${-s}px`) : u === "top" ? (x = A ? p : `${g}px`, m = `${n.floating.height + s}px`) : u === "right" ? (x = `${-s}px`, m = A ? p : `${C}px`) : u === "left" && (x = `${n.floating.width + s}px`, m = A ? p : `${C}px`), { data: { x, y: m } };
5981
+ return d === "bottom" ? (x = A ? p : `${g}px`, m = `${-s}px`) : d === "top" ? (x = A ? p : `${g}px`, m = `${n.floating.height + s}px`) : d === "right" ? (x = `${-s}px`, m = A ? p : `${C}px`) : d === "left" && (x = `${n.floating.width + s}px`, m = A ? p : `${C}px`), { data: { x, y: m } };
5982
5982
  }
5983
5983
  });
5984
5984
  function K2(e) {
5985
5985
  const [r, t = "center"] = e.split("-");
5986
5986
  return [r, t];
5987
5987
  }
5988
- var m7 = A4, j7 = s4, f7 = l4, V7 = u4, O7 = "Portal", N2 = l.forwardRef((e, r) => {
5988
+ var m7 = A4, j7 = s4, f7 = l4, V7 = d4, O7 = "Portal", N2 = l.forwardRef((e, r) => {
5989
5989
  var i;
5990
5990
  const { container: t, ...n } = e, [c, o] = l.useState(!1);
5991
5991
  Q1(() => o(!0), []);
@@ -6002,7 +6002,7 @@ var ae = (e) => {
6002
6002
  };
6003
6003
  ae.displayName = "Presence";
6004
6004
  function H7(e) {
6005
- const [r, t] = l.useState(), n = l.useRef(null), c = l.useRef(e), o = l.useRef("none"), A = l.useRef(void 0), i = e ? "mounted" : "unmounted", [s, u] = y7(i, {
6005
+ const [r, t] = l.useState(), n = l.useRef(null), c = l.useRef(e), o = l.useRef("none"), A = l.useRef(void 0), i = e ? "mounted" : "unmounted", [s, d] = y7(i, {
6006
6006
  mounted: {
6007
6007
  UNMOUNT: "unmounted",
6008
6008
  ANIMATION_OUT: "unmountSuspended"
@@ -6018,19 +6018,19 @@ function H7(e) {
6018
6018
  return l.useEffect(() => {
6019
6019
  s === "mounted" ? (o.current = A.current ?? Le(n.current), A.current = void 0) : o.current = "none";
6020
6020
  }, [s]), Q1(() => {
6021
- const d = n.current, p = c.current;
6021
+ const u = n.current, p = c.current;
6022
6022
  if (p !== e) {
6023
- const C = o.current, x = Le(d);
6024
- e ? (A.current = x, u("MOUNT")) : x === "none" || (d == null ? void 0 : d.display) === "none" ? u("UNMOUNT") : u(p && C !== x ? "ANIMATION_OUT" : "UNMOUNT"), c.current = e;
6023
+ const C = o.current, x = Le(u);
6024
+ e ? (A.current = x, d("MOUNT")) : x === "none" || (u == null ? void 0 : u.display) === "none" ? d("UNMOUNT") : d(p && C !== x ? "ANIMATION_OUT" : "UNMOUNT"), c.current = e;
6025
6025
  }
6026
- }, [e, u]), Q1(() => {
6026
+ }, [e, d]), Q1(() => {
6027
6027
  if (r) {
6028
- let d;
6028
+ let u;
6029
6029
  const p = r.ownerDocument.defaultView ?? window, g = (x) => {
6030
6030
  const f = Le(n.current).includes(CSS.escape(x.animationName));
6031
- if (x.target === r && f && (u("ANIMATION_END"), !c.current)) {
6031
+ if (x.target === r && f && (d("ANIMATION_END"), !c.current)) {
6032
6032
  const O = r.style.animationFillMode;
6033
- r.style.animationFillMode = "forwards", d = p.setTimeout(() => {
6033
+ r.style.animationFillMode = "forwards", u = p.setTimeout(() => {
6034
6034
  r.style.animationFillMode === "forwards" && (r.style.animationFillMode = O);
6035
6035
  });
6036
6036
  }
@@ -6038,19 +6038,19 @@ function H7(e) {
6038
6038
  x.target === r && (o.current = Le(n.current));
6039
6039
  };
6040
6040
  return r.addEventListener("animationstart", C), r.addEventListener("animationcancel", g), r.addEventListener("animationend", g), () => {
6041
- p.clearTimeout(d), r.removeEventListener("animationstart", C), r.removeEventListener("animationcancel", g), r.removeEventListener("animationend", g);
6041
+ p.clearTimeout(u), r.removeEventListener("animationstart", C), r.removeEventListener("animationcancel", g), r.removeEventListener("animationend", g);
6042
6042
  };
6043
6043
  } else
6044
- u("ANIMATION_END");
6045
- }, [r, u]), {
6044
+ d("ANIMATION_END");
6045
+ }, [r, d]), {
6046
6046
  isPresent: ["mounted", "unmountSuspended"].includes(s),
6047
- ref: l.useCallback((d) => {
6048
- if (d) {
6049
- const p = getComputedStyle(d);
6047
+ ref: l.useCallback((u) => {
6048
+ if (u) {
6049
+ const p = getComputedStyle(u);
6050
6050
  n.current = p, A.current = Le(p);
6051
6051
  } else
6052
6052
  n.current = null;
6053
- t(d);
6053
+ t(u);
6054
6054
  }, [])
6055
6055
  };
6056
6056
  }
@@ -6120,15 +6120,15 @@ var U7 = l.forwardRef((e, r) => {
6120
6120
  currentTabStopId: A,
6121
6121
  defaultCurrentTabStopId: i,
6122
6122
  onCurrentTabStopIdChange: s,
6123
- onEntryFocus: u,
6124
- preventScrollOnEntryFocus: d = !1,
6123
+ onEntryFocus: d,
6124
+ preventScrollOnEntryFocus: u = !1,
6125
6125
  ...p
6126
6126
  } = e, g = l.useRef(null), C = j1(r, g), x = f2(o), [m, f] = et({
6127
6127
  prop: A,
6128
6128
  defaultProp: i ?? null,
6129
6129
  onChange: s,
6130
6130
  caller: gr
6131
- }), [O, y] = l.useState(!1), z = ee(u), H = g4(t), k = l.useRef(!1), [M, v] = l.useState(0);
6131
+ }), [O, y] = l.useState(!1), z = ee(d), H = g4(t), k = l.useRef(!1), [P, v] = l.useState(0);
6132
6132
  return l.useEffect(() => {
6133
6133
  const h = g.current;
6134
6134
  if (h)
@@ -6157,7 +6157,7 @@ var U7 = l.forwardRef((e, r) => {
6157
6157
  children: /* @__PURE__ */ a.jsx(
6158
6158
  s1.div,
6159
6159
  {
6160
- tabIndex: O || M === 0 ? -1 : 0,
6160
+ tabIndex: O || P === 0 ? -1 : 0,
6161
6161
  "data-orientation": n,
6162
6162
  ...p,
6163
6163
  ref: C,
@@ -6166,14 +6166,14 @@ var U7 = l.forwardRef((e, r) => {
6166
6166
  k.current = !0;
6167
6167
  }),
6168
6168
  onFocus: B(e.onFocus, (h) => {
6169
- const W = !k.current;
6170
- if (h.target === h.currentTarget && W && !O) {
6171
- const w = new CustomEvent(Kt, v7);
6172
- if (h.currentTarget.dispatchEvent(w), !w.defaultPrevented) {
6173
- const U = H().filter((X) => X.focusable), Z = U.find((X) => X.active), R = U.find((X) => X.id === m), t1 = [Z, R, ...U].filter(
6169
+ const U = !k.current;
6170
+ if (h.target === h.currentTarget && U && !O) {
6171
+ const W = new CustomEvent(Kt, v7);
6172
+ if (h.currentTarget.dispatchEvent(W), !W.defaultPrevented) {
6173
+ const w = H().filter((X) => X.focusable), Z = w.find((X) => X.active), R = w.find((X) => X.id === m), t1 = [Z, R, ...w].filter(
6174
6174
  Boolean
6175
6175
  ).map((X) => X.ref.current);
6176
- j4(t1, d);
6176
+ j4(t1, u);
6177
6177
  }
6178
6178
  }
6179
6179
  k.current = !1;
@@ -6192,7 +6192,7 @@ var U7 = l.forwardRef((e, r) => {
6192
6192
  tabStopId: o,
6193
6193
  children: A,
6194
6194
  ...i
6195
- } = e, s = Ce(), u = o || s, d = q7(x4, t), p = d.currentTabStopId === u, g = g4(t), { onFocusableItemAdd: C, onFocusableItemRemove: x, currentTabStopId: m } = d, f = M7();
6195
+ } = e, s = Ce(), d = o || s, u = q7(x4, t), p = u.currentTabStopId === d, g = g4(t), { onFocusableItemAdd: C, onFocusableItemRemove: x, currentTabStopId: m } = u, f = M7();
6196
6196
  return Q1(() => {
6197
6197
  if (!(!f || !n))
6198
6198
  return C(), () => x();
@@ -6203,27 +6203,27 @@ var U7 = l.forwardRef((e, r) => {
6203
6203
  Zt.ItemSlot,
6204
6204
  {
6205
6205
  scope: t,
6206
- id: u,
6206
+ id: d,
6207
6207
  focusable: n,
6208
6208
  active: c,
6209
6209
  children: /* @__PURE__ */ a.jsx(
6210
6210
  s1.span,
6211
6211
  {
6212
6212
  tabIndex: p ? 0 : -1,
6213
- "data-orientation": d.orientation,
6213
+ "data-orientation": u.orientation,
6214
6214
  ...i,
6215
6215
  ref: r,
6216
6216
  onMouseDown: B(e.onMouseDown, (O) => {
6217
- n ? d.onItemFocus(u) : O.preventDefault();
6217
+ n ? u.onItemFocus(d) : O.preventDefault();
6218
6218
  }),
6219
- onFocus: B(e.onFocus, () => d.onItemFocus(u)),
6219
+ onFocus: B(e.onFocus, () => u.onItemFocus(d)),
6220
6220
  onKeyDown: B(e.onKeyDown, (O) => {
6221
6221
  if (O.key === "Tab" && O.shiftKey) {
6222
- d.onItemShiftTab();
6222
+ u.onItemShiftTab();
6223
6223
  return;
6224
6224
  }
6225
6225
  if (O.target !== O.currentTarget) return;
6226
- const y = W7(O, d.orientation, d.dir);
6226
+ const y = W7(O, u.orientation, u.dir);
6227
6227
  if (y !== void 0) {
6228
6228
  if (O.metaKey || O.ctrlKey || O.altKey || O.shiftKey) return;
6229
6229
  O.preventDefault();
@@ -6232,7 +6232,7 @@ var U7 = l.forwardRef((e, r) => {
6232
6232
  else if (y === "prev" || y === "next") {
6233
6233
  y === "prev" && H.reverse();
6234
6234
  const k = H.indexOf(O.currentTarget);
6235
- H = d.loop ? T7(H, k + 1) : H.slice(k + 1);
6235
+ H = u.loop ? T7(H, k + 1) : H.slice(k + 1);
6236
6236
  }
6237
6237
  setTimeout(() => j4(H));
6238
6238
  }
@@ -6290,14 +6290,14 @@ var f4 = C4, V4 = m4, R7 = function(e) {
6290
6290
  }, G7 = function(e, r, t, n) {
6291
6291
  var c = F7(r, Array.isArray(e) ? e : [e]);
6292
6292
  br[t] || (br[t] = /* @__PURE__ */ new WeakMap());
6293
- var o = br[t], A = [], i = /* @__PURE__ */ new Set(), s = new Set(c), u = function(p) {
6294
- !p || i.has(p) || (i.add(p), u(p.parentNode));
6293
+ var o = br[t], A = [], i = /* @__PURE__ */ new Set(), s = new Set(c), d = function(p) {
6294
+ !p || i.has(p) || (i.add(p), d(p.parentNode));
6295
6295
  };
6296
- c.forEach(u);
6297
- var d = function(p) {
6296
+ c.forEach(d);
6297
+ var u = function(p) {
6298
6298
  !p || s.has(p) || Array.prototype.forEach.call(p.children, function(g) {
6299
6299
  if (i.has(g))
6300
- d(g);
6300
+ u(g);
6301
6301
  else
6302
6302
  try {
6303
6303
  var C = g.getAttribute(n), x = C !== null && C !== "false", m = (be.get(g) || 0) + 1, f = (o.get(g) || 0) + 1;
@@ -6307,7 +6307,7 @@ var f4 = C4, V4 = m4, R7 = function(e) {
6307
6307
  }
6308
6308
  });
6309
6309
  };
6310
- return d(r), i.clear(), Nt++, function() {
6310
+ return u(r), i.clear(), Nt++, function() {
6311
6311
  A.forEach(function(p) {
6312
6312
  var g = be.get(p) - 1, C = o.get(p) - 1;
6313
6313
  be.set(p, g), o.set(p, C), g || (kr.has(p) || p.removeAttribute(n), kr.delete(p)), C || p.removeAttribute(t);
@@ -6427,17 +6427,17 @@ function Q7(e, r) {
6427
6427
  t = [], i.forEach(o), A = t;
6428
6428
  }
6429
6429
  var s = function() {
6430
- var d = A;
6431
- A = [], d.forEach(o);
6432
- }, u = function() {
6430
+ var u = A;
6431
+ A = [], u.forEach(o);
6432
+ }, d = function() {
6433
6433
  return Promise.resolve().then(s);
6434
6434
  };
6435
- u(), t = {
6436
- push: function(d) {
6437
- A.push(d), u();
6435
+ d(), t = {
6436
+ push: function(u) {
6437
+ A.push(u), d();
6438
6438
  },
6439
- filter: function(d) {
6440
- return A = A.filter(d), t;
6439
+ filter: function(u) {
6440
+ return A = A.filter(u), t;
6441
6441
  }
6442
6442
  };
6443
6443
  }
@@ -6468,12 +6468,12 @@ var k4 = E7(), qt = function() {
6468
6468
  onScrollCapture: qt,
6469
6469
  onWheelCapture: qt,
6470
6470
  onTouchMoveCapture: qt
6471
- }), c = n[0], o = n[1], A = e.forwardProps, i = e.children, s = e.className, u = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, C = e.noRelative, x = e.noIsolation, m = e.inert, f = e.allowPinchZoom, O = e.as, y = O === void 0 ? "div" : O, z = e.gapMode, H = H4(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = g, M = L7([t, r]), v = L1(L1({}, H), c);
6471
+ }), c = n[0], o = n[1], A = e.forwardProps, i = e.children, s = e.className, d = e.removeScrollBar, u = e.enabled, p = e.shards, g = e.sideCar, C = e.noRelative, x = e.noIsolation, m = e.inert, f = e.allowPinchZoom, O = e.as, y = O === void 0 ? "div" : O, z = e.gapMode, H = H4(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = g, P = L7([t, r]), v = L1(L1({}, H), c);
6472
6472
  return l.createElement(
6473
6473
  l.Fragment,
6474
6474
  null,
6475
- d && l.createElement(k, { sideCar: k4, removeScrollBar: u, shards: p, noRelative: C, noIsolation: x, inert: m, setCallbacks: o, allowPinchZoom: !!f, lockRef: t, gapMode: z }),
6476
- A ? l.cloneElement(l.Children.only(i), L1(L1({}, v), { ref: M })) : l.createElement(y, L1({}, v, { className: s, ref: M }), i)
6475
+ u && l.createElement(k, { sideCar: k4, removeScrollBar: d, shards: p, noRelative: C, noIsolation: x, inert: m, setCallbacks: o, allowPinchZoom: !!f, lockRef: t, gapMode: z }),
6476
+ A ? l.cloneElement(l.Children.only(i), L1(L1({}, v), { ref: P })) : l.createElement(y, L1({}, v, { className: s, ref: P }), i)
6477
6477
  );
6478
6478
  });
6479
6479
  ot.defaultProps = {
@@ -6671,7 +6671,7 @@ var Ie = Yt ? { passive: !1 } : !1, po = function(e) {
6671
6671
  }, jo = function(e, r) {
6672
6672
  return e === "h" && r === "rtl" ? -1 : 1;
6673
6673
  }, fo = function(e, r, t, n, c) {
6674
- var o = jo(e, window.getComputedStyle(r).direction), A = o * n, i = t.target, s = r.contains(i), u = !1, d = A > 0, p = 0, g = 0;
6674
+ var o = jo(e, window.getComputedStyle(r).direction), A = o * n, i = t.target, s = r.contains(i), d = !1, u = A > 0, p = 0, g = 0;
6675
6675
  do {
6676
6676
  if (!i)
6677
6677
  break;
@@ -6684,7 +6684,7 @@ var Ie = Yt ? { passive: !1 } : !1, po = function(e) {
6684
6684
  !s && i !== document.body || // self content
6685
6685
  s && (r.contains(i) || r === i)
6686
6686
  );
6687
- return (d && Math.abs(p) < 1 || !d && Math.abs(g) < 1) && (u = !0), u;
6687
+ return (u && Math.abs(p) < 1 || !u && Math.abs(g) < 1) && (d = !0), d;
6688
6688
  }, Pr = function(e) {
6689
6689
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
6690
6690
  }, Y5 = function(e) {
@@ -6719,16 +6719,16 @@ function Ho(e) {
6719
6719
  var i = l.useCallback(function(m, f) {
6720
6720
  if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
6721
6721
  return !A.current.allowPinchZoom;
6722
- var O = Pr(m), y = t.current, z = "deltaX" in m ? m.deltaX : y[0] - O[0], H = "deltaY" in m ? m.deltaY : y[1] - O[1], k, M = m.target, v = Math.abs(z) > Math.abs(H) ? "h" : "v";
6723
- if ("touches" in m && v === "h" && M.type === "range")
6722
+ var O = Pr(m), y = t.current, z = "deltaX" in m ? m.deltaX : y[0] - O[0], H = "deltaY" in m ? m.deltaY : y[1] - O[1], k, P = m.target, v = Math.abs(z) > Math.abs(H) ? "h" : "v";
6723
+ if ("touches" in m && v === "h" && P.type === "range")
6724
6724
  return !1;
6725
- var h = window.getSelection(), W = h && h.anchorNode, w = W ? W === M || W.contains(M) : !1;
6726
- if (w)
6725
+ var h = window.getSelection(), U = h && h.anchorNode, W = U ? U === P || U.contains(P) : !1;
6726
+ if (W)
6727
6727
  return !1;
6728
- var U = Z5(v, M);
6729
- if (!U)
6728
+ var w = Z5(v, P);
6729
+ if (!w)
6730
6730
  return !0;
6731
- if (U ? k = v : (k = v === "v" ? "h" : "v", U = Z5(v, M)), !U)
6731
+ if (w ? k = v : (k = v === "v" ? "h" : "v", w = Z5(v, P)), !w)
6732
6732
  return !1;
6733
6733
  if (!n.current && "changedTouches" in m && (z || H) && (n.current = k), !k)
6734
6734
  return !0;
@@ -6751,29 +6751,29 @@ function Ho(e) {
6751
6751
  H && f.cancelable && f.preventDefault();
6752
6752
  }
6753
6753
  }
6754
- }, []), u = l.useCallback(function(m, f, O, y) {
6754
+ }, []), d = l.useCallback(function(m, f, O, y) {
6755
6755
  var z = { name: m, delta: f, target: O, should: y, shadowParent: zo(O) };
6756
6756
  r.current.push(z), setTimeout(function() {
6757
6757
  r.current = r.current.filter(function(H) {
6758
6758
  return H !== z;
6759
6759
  });
6760
6760
  }, 1);
6761
- }, []), d = l.useCallback(function(m) {
6761
+ }, []), u = l.useCallback(function(m) {
6762
6762
  t.current = Pr(m), n.current = void 0;
6763
6763
  }, []), p = l.useCallback(function(m) {
6764
- u(m.type, Y5(m), m.target, i(m, e.lockRef.current));
6764
+ d(m.type, Y5(m), m.target, i(m, e.lockRef.current));
6765
6765
  }, []), g = l.useCallback(function(m) {
6766
- u(m.type, Pr(m), m.target, i(m, e.lockRef.current));
6766
+ d(m.type, Pr(m), m.target, i(m, e.lockRef.current));
6767
6767
  }, []);
6768
6768
  l.useEffect(function() {
6769
6769
  return Pe.push(o), e.setCallbacks({
6770
6770
  onScrollCapture: p,
6771
6771
  onWheelCapture: p,
6772
6772
  onTouchMoveCapture: g
6773
- }), document.addEventListener("wheel", s, Ie), document.addEventListener("touchmove", s, Ie), document.addEventListener("touchstart", d, Ie), function() {
6773
+ }), document.addEventListener("wheel", s, Ie), document.addEventListener("touchmove", s, Ie), document.addEventListener("touchstart", u, Ie), function() {
6774
6774
  Pe = Pe.filter(function(m) {
6775
6775
  return m !== o;
6776
- }), document.removeEventListener("wheel", s, Ie), document.removeEventListener("touchmove", s, Ie), document.removeEventListener("touchstart", d, Ie);
6776
+ }), document.removeEventListener("wheel", s, Ie), document.removeEventListener("touchmove", s, Ie), document.removeEventListener("touchstart", u, Ie);
6777
6777
  };
6778
6778
  }, []);
6779
6779
  var C = e.removeScrollBar, x = e.inert;
@@ -6805,11 +6805,11 @@ var Lt = ["Enter", " "], bo = ["ArrowDown", "PageUp", "Home"], v4 = ["ArrowUp",
6805
6805
  c4,
6806
6806
  ct
6807
6807
  ]), At = c4(), N4 = ct(), [No, Oe] = Ve(Cr), [So, xr] = Ve(Cr), S4 = (e) => {
6808
- const { __scopeMenu: r, open: t = !1, children: n, dir: c, onOpenChange: o, modal: A = !0 } = e, i = At(r), [s, u] = l.useState(null), d = l.useRef(!1), p = ee(o), g = f2(c);
6808
+ const { __scopeMenu: r, open: t = !1, children: n, dir: c, onOpenChange: o, modal: A = !0 } = e, i = At(r), [s, d] = l.useState(null), u = l.useRef(!1), p = ee(o), g = f2(c);
6809
6809
  return l.useEffect(() => {
6810
6810
  const C = () => {
6811
- d.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
6812
- }, x = () => d.current = !1;
6811
+ u.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
6812
+ }, x = () => u.current = !1;
6813
6813
  return document.addEventListener("keydown", C, { capture: !0 }), () => {
6814
6814
  document.removeEventListener("keydown", C, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
6815
6815
  };
@@ -6825,13 +6825,13 @@ var Lt = ["Enter", " "], bo = ["ArrowDown", "PageUp", "Home"], v4 = ["ArrowUp",
6825
6825
  open: t,
6826
6826
  onOpenChange: p,
6827
6827
  content: s,
6828
- onContentChange: u,
6828
+ onContentChange: d,
6829
6829
  children: /* @__PURE__ */ a.jsx(
6830
6830
  So,
6831
6831
  {
6832
6832
  scope: r,
6833
6833
  onClose: l.useCallback(() => p(!1), [p]),
6834
- isUsingKeyboardRef: d,
6834
+ isUsingKeyboardRef: u,
6835
6835
  dir: g,
6836
6836
  modal: A,
6837
6837
  children: n
@@ -6906,21 +6906,21 @@ var w1 = "MenuContent", [ho, h2] = Ve(w1), h4 = l.forwardRef(
6906
6906
  onCloseAutoFocus: A,
6907
6907
  disableOutsidePointerEvents: i,
6908
6908
  onEntryFocus: s,
6909
- onEscapeKeyDown: u,
6910
- onPointerDownOutside: d,
6909
+ onEscapeKeyDown: d,
6910
+ onPointerDownOutside: u,
6911
6911
  onFocusOutside: p,
6912
6912
  onInteractOutside: g,
6913
6913
  onDismiss: C,
6914
6914
  disableOutsideScroll: x,
6915
6915
  ...m
6916
- } = e, f = Oe(w1, t), O = xr(w1, t), y = At(t), z = N4(t), H = vo(t), [k, M] = l.useState(null), v = l.useRef(null), h = j1(r, v, f.onContentChange), W = l.useRef(0), w = l.useRef(""), U = l.useRef(0), Z = l.useRef(null), R = l.useRef("right"), F = l.useRef(0), t1 = x ? S2 : l.Fragment, X = x ? { as: To, allowPinchZoom: !0 } : void 0, _ = (b) => {
6916
+ } = e, f = Oe(w1, t), O = xr(w1, t), y = At(t), z = N4(t), H = vo(t), [k, P] = l.useState(null), v = l.useRef(null), h = j1(r, v, f.onContentChange), U = l.useRef(0), W = l.useRef(""), w = l.useRef(0), Z = l.useRef(null), R = l.useRef("right"), F = l.useRef(0), t1 = x ? S2 : l.Fragment, X = x ? { as: To, allowPinchZoom: !0 } : void 0, _ = (b) => {
6917
6917
  var E, Y;
6918
- const N = w.current + b, T = H().filter((e1) => !e1.disabled), G = document.activeElement, n1 = (E = T.find((e1) => e1.ref.current === G)) == null ? void 0 : E.textValue, L = T.map((e1) => e1.textValue), l1 = Eo(L, N, n1), c1 = (Y = T.find((e1) => e1.textValue === l1)) == null ? void 0 : Y.ref.current;
6918
+ const N = W.current + b, T = H().filter((e1) => !e1.disabled), G = document.activeElement, n1 = (E = T.find((e1) => e1.ref.current === G)) == null ? void 0 : E.textValue, L = T.map((e1) => e1.textValue), l1 = Eo(L, N, n1), c1 = (Y = T.find((e1) => e1.textValue === l1)) == null ? void 0 : Y.ref.current;
6919
6919
  (function e1(A1) {
6920
- w.current = A1, window.clearTimeout(W.current), A1 !== "" && (W.current = window.setTimeout(() => e1(""), 1e3));
6920
+ W.current = A1, window.clearTimeout(U.current), A1 !== "" && (U.current = window.setTimeout(() => e1(""), 1e3));
6921
6921
  })(N), c1 && setTimeout(() => c1.focus());
6922
6922
  };
6923
- l.useEffect(() => () => window.clearTimeout(W.current), []), Un();
6923
+ l.useEffect(() => () => window.clearTimeout(U.current), []), Un();
6924
6924
  const I = l.useCallback((b) => {
6925
6925
  var T, G;
6926
6926
  return R.current === ((T = Z.current) == null ? void 0 : T.side) && $o(b, (G = Z.current) == null ? void 0 : G.area);
@@ -6929,7 +6929,7 @@ var w1 = "MenuContent", [ho, h2] = Ve(w1), h4 = l.forwardRef(
6929
6929
  ho,
6930
6930
  {
6931
6931
  scope: t,
6932
- searchRef: w,
6932
+ searchRef: W,
6933
6933
  onItemEnter: l.useCallback(
6934
6934
  (b) => {
6935
6935
  I(b) && b.preventDefault();
@@ -6939,7 +6939,7 @@ var w1 = "MenuContent", [ho, h2] = Ve(w1), h4 = l.forwardRef(
6939
6939
  onItemLeave: l.useCallback(
6940
6940
  (b) => {
6941
6941
  var N;
6942
- I(b) || ((N = v.current) == null || N.focus(), M(null));
6942
+ I(b) || ((N = v.current) == null || N.focus(), P(null));
6943
6943
  },
6944
6944
  [I]
6945
6945
  ),
@@ -6949,7 +6949,7 @@ var w1 = "MenuContent", [ho, h2] = Ve(w1), h4 = l.forwardRef(
6949
6949
  },
6950
6950
  [I]
6951
6951
  ),
6952
- pointerGraceTimerRef: U,
6952
+ pointerGraceTimerRef: w,
6953
6953
  onPointerGraceIntentChange: l.useCallback((b) => {
6954
6954
  Z.current = b;
6955
6955
  }, []),
@@ -6968,8 +6968,8 @@ var w1 = "MenuContent", [ho, h2] = Ve(w1), h4 = l.forwardRef(
6968
6968
  {
6969
6969
  asChild: !0,
6970
6970
  disableOutsidePointerEvents: i,
6971
- onEscapeKeyDown: u,
6972
- onPointerDownOutside: d,
6971
+ onEscapeKeyDown: d,
6972
+ onPointerDownOutside: u,
6973
6973
  onFocusOutside: p,
6974
6974
  onInteractOutside: g,
6975
6975
  onDismiss: C,
@@ -6982,7 +6982,7 @@ var w1 = "MenuContent", [ho, h2] = Ve(w1), h4 = l.forwardRef(
6982
6982
  orientation: "vertical",
6983
6983
  loop: n,
6984
6984
  currentTabStopId: k,
6985
- onCurrentTabStopIdChange: M,
6985
+ onCurrentTabStopIdChange: P,
6986
6986
  onEntryFocus: B(s, (b) => {
6987
6987
  O.isUsingKeyboardRef.current || b.preventDefault();
6988
6988
  }),
@@ -7009,7 +7009,7 @@ var w1 = "MenuContent", [ho, h2] = Ve(w1), h4 = l.forwardRef(
7009
7009
  v4.includes(b.key) && c1.reverse(), Jo(c1);
7010
7010
  }),
7011
7011
  onBlur: B(e.onBlur, (b) => {
7012
- b.currentTarget.contains(b.target) || (window.clearTimeout(W.current), w.current = "");
7012
+ b.currentTarget.contains(b.target) || (window.clearTimeout(U.current), W.current = "");
7013
7013
  }),
7014
7014
  onPointerMove: B(
7015
7015
  e.onPointerMove,
@@ -7050,11 +7050,11 @@ var Fo = "MenuLabel", w4 = l.forwardRef(
7050
7050
  w4.displayName = Fo;
7051
7051
  var Rr = "MenuItem", J5 = "menu.itemSelect", it = l.forwardRef(
7052
7052
  (e, r) => {
7053
- const { disabled: t = !1, onSelect: n, ...c } = e, o = l.useRef(null), A = xr(Rr, e.__scopeMenu), i = h2(Rr, e.__scopeMenu), s = j1(r, o), u = l.useRef(!1), d = () => {
7053
+ const { disabled: t = !1, onSelect: n, ...c } = e, o = l.useRef(null), A = xr(Rr, e.__scopeMenu), i = h2(Rr, e.__scopeMenu), s = j1(r, o), d = l.useRef(!1), u = () => {
7054
7054
  const p = o.current;
7055
7055
  if (!t && p) {
7056
7056
  const g = new CustomEvent(J5, { bubbles: !0, cancelable: !0 });
7057
- p.addEventListener(J5, (C) => n == null ? void 0 : n(C), { once: !0 }), Nn(p, g), g.defaultPrevented ? u.current = !1 : A.onClose();
7057
+ p.addEventListener(J5, (C) => n == null ? void 0 : n(C), { once: !0 }), Nn(p, g), g.defaultPrevented ? d.current = !1 : A.onClose();
7058
7058
  }
7059
7059
  };
7060
7060
  return /* @__PURE__ */ a.jsx(
@@ -7063,14 +7063,14 @@ var Rr = "MenuItem", J5 = "menu.itemSelect", it = l.forwardRef(
7063
7063
  ...c,
7064
7064
  ref: s,
7065
7065
  disabled: t,
7066
- onClick: B(e.onClick, d),
7066
+ onClick: B(e.onClick, u),
7067
7067
  onPointerDown: (p) => {
7068
7068
  var g;
7069
- (g = e.onPointerDown) == null || g.call(e, p), u.current = !0;
7069
+ (g = e.onPointerDown) == null || g.call(e, p), d.current = !0;
7070
7070
  },
7071
7071
  onPointerUp: B(e.onPointerUp, (p) => {
7072
7072
  var g;
7073
- u.current || (g = p.currentTarget) == null || g.click();
7073
+ d.current || (g = p.currentTarget) == null || g.click();
7074
7074
  }),
7075
7075
  onKeyDown: B(e.onKeyDown, (p) => {
7076
7076
  t || p.target !== p.currentTarget || i.searchRef.current !== "" && p.key === " " || Lt.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
@@ -7082,7 +7082,7 @@ var Rr = "MenuItem", J5 = "menu.itemSelect", it = l.forwardRef(
7082
7082
  it.displayName = Rr;
7083
7083
  var W4 = l.forwardRef(
7084
7084
  (e, r) => {
7085
- const { __scopeMenu: t, disabled: n = !1, textValue: c, ...o } = e, A = h2(Rr, t), i = N4(t), s = l.useRef(null), u = j1(r, s), [d, p] = l.useState(!1), [g, C] = l.useState("");
7085
+ const { __scopeMenu: t, disabled: n = !1, textValue: c, ...o } = e, A = h2(Rr, t), i = N4(t), s = l.useRef(null), d = j1(r, s), [u, p] = l.useState(!1), [g, C] = l.useState("");
7086
7086
  return l.useEffect(() => {
7087
7087
  const x = s.current;
7088
7088
  x && C((x.textContent ?? "").trim());
@@ -7096,11 +7096,11 @@ var W4 = l.forwardRef(
7096
7096
  s1.div,
7097
7097
  {
7098
7098
  role: "menuitem",
7099
- "data-highlighted": d ? "" : void 0,
7099
+ "data-highlighted": u ? "" : void 0,
7100
7100
  "aria-disabled": n || void 0,
7101
7101
  "data-disabled": n ? "" : void 0,
7102
7102
  ...o,
7103
- ref: u,
7103
+ ref: d,
7104
7104
  onPointerMove: B(
7105
7105
  e.onPointerMove,
7106
7106
  cr((x) => {
@@ -7221,17 +7221,17 @@ var Yo = "MenuArrow", Y4 = l.forwardRef(
7221
7221
  Y4.displayName = Yo;
7222
7222
  var Lo = "MenuSub", [Vl, L4] = Ve(Lo), _e = "MenuSubTrigger", J4 = l.forwardRef(
7223
7223
  (e, r) => {
7224
- const t = Oe(_e, e.__scopeMenu), n = xr(_e, e.__scopeMenu), c = L4(_e, e.__scopeMenu), o = h2(_e, e.__scopeMenu), A = l.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: s } = o, u = { __scopeMenu: e.__scopeMenu }, d = l.useCallback(() => {
7224
+ const t = Oe(_e, e.__scopeMenu), n = xr(_e, e.__scopeMenu), c = L4(_e, e.__scopeMenu), o = h2(_e, e.__scopeMenu), A = l.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: s } = o, d = { __scopeMenu: e.__scopeMenu }, u = l.useCallback(() => {
7225
7225
  A.current && window.clearTimeout(A.current), A.current = null;
7226
7226
  }, []);
7227
- l.useEffect(() => d, [d]), l.useEffect(() => {
7227
+ l.useEffect(() => u, [u]), l.useEffect(() => {
7228
7228
  const g = i.current;
7229
7229
  return () => {
7230
7230
  window.clearTimeout(g), s(null);
7231
7231
  };
7232
7232
  }, [i, s]);
7233
7233
  const p = j1(r, c.onTriggerChange);
7234
- return /* @__PURE__ */ a.jsx(q2, { asChild: !0, ...u, children: /* @__PURE__ */ a.jsx(
7234
+ return /* @__PURE__ */ a.jsx(q2, { asChild: !0, ...d, children: /* @__PURE__ */ a.jsx(
7235
7235
  W4,
7236
7236
  {
7237
7237
  id: c.triggerId,
@@ -7249,7 +7249,7 @@ var Lo = "MenuSub", [Vl, L4] = Ve(Lo), _e = "MenuSubTrigger", J4 = l.forwardRef(
7249
7249
  e.onPointerMove,
7250
7250
  cr((g) => {
7251
7251
  o.onItemEnter(g), !g.defaultPrevented && !e.disabled && !t.open && !A.current && (o.onPointerGraceIntentChange(null), A.current = window.setTimeout(() => {
7252
- t.onOpenChange(!0), d();
7252
+ t.onOpenChange(!0), u();
7253
7253
  }, 100));
7254
7254
  })
7255
7255
  ),
@@ -7257,7 +7257,7 @@ var Lo = "MenuSub", [Vl, L4] = Ve(Lo), _e = "MenuSubTrigger", J4 = l.forwardRef(
7257
7257
  e.onPointerLeave,
7258
7258
  cr((g) => {
7259
7259
  var x, m;
7260
- d();
7260
+ u();
7261
7261
  const C = (x = t.content) == null ? void 0 : x.getBoundingClientRect();
7262
7262
  if (C) {
7263
7263
  const f = (m = t.content) == null ? void 0 : m.dataset.side, O = f === "right", y = O ? -5 : 5, z = C[O ? "left" : "right"], H = C[O ? "right" : "left"];
@@ -7293,14 +7293,14 @@ var Lo = "MenuSub", [Vl, L4] = Ve(Lo), _e = "MenuSubTrigger", J4 = l.forwardRef(
7293
7293
  J4.displayName = _e;
7294
7294
  var Q4 = "MenuSubContent", E4 = l.forwardRef(
7295
7295
  (e, r) => {
7296
- const t = q4(w1, e.__scopeMenu), { forceMount: n = t.forceMount, align: c = "start", ...o } = e, A = Oe(w1, e.__scopeMenu), i = xr(w1, e.__scopeMenu), s = L4(Q4, e.__scopeMenu), u = l.useRef(null), d = j1(r, u);
7296
+ const t = q4(w1, e.__scopeMenu), { forceMount: n = t.forceMount, align: c = "start", ...o } = e, A = Oe(w1, e.__scopeMenu), i = xr(w1, e.__scopeMenu), s = L4(Q4, e.__scopeMenu), d = l.useRef(null), u = j1(r, d);
7297
7297
  return /* @__PURE__ */ a.jsx(ar.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(ae, { present: n || A.open, children: /* @__PURE__ */ a.jsx(ar.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
7298
7298
  w2,
7299
7299
  {
7300
7300
  id: s.contentId,
7301
7301
  "aria-labelledby": s.triggerId,
7302
7302
  ...o,
7303
- ref: d,
7303
+ ref: u,
7304
7304
  align: c,
7305
7305
  side: i.dir === "rtl" ? "left" : "right",
7306
7306
  disableOutsidePointerEvents: !1,
@@ -7308,7 +7308,7 @@ var Q4 = "MenuSubContent", E4 = l.forwardRef(
7308
7308
  trapFocus: !1,
7309
7309
  onOpenAutoFocus: (p) => {
7310
7310
  var g;
7311
- i.isUsingKeyboardRef.current && ((g = u.current) == null || g.focus()), p.preventDefault();
7311
+ i.isUsingKeyboardRef.current && ((g = d.current) == null || g.focus()), p.preventDefault();
7312
7312
  },
7313
7313
  onCloseAutoFocus: (p) => p.preventDefault(),
7314
7314
  onFocusOutside: B(e.onFocusOutside, (p) => {
@@ -7345,11 +7345,11 @@ function Qo(e, r) {
7345
7345
  return e.map((t, n) => e[(r + n) % e.length]);
7346
7346
  }
7347
7347
  function Eo(e, r, t) {
7348
- const c = r.length > 1 && Array.from(r).every((u) => u === r[0]) ? r[0] : r, o = t ? e.indexOf(t) : -1;
7348
+ const c = r.length > 1 && Array.from(r).every((d) => d === r[0]) ? r[0] : r, o = t ? e.indexOf(t) : -1;
7349
7349
  let A = Qo(e, Math.max(o, 0));
7350
- c.length === 1 && (A = A.filter((u) => u !== t));
7350
+ c.length === 1 && (A = A.filter((d) => d !== t));
7351
7351
  const s = A.find(
7352
- (u) => u.toLowerCase().startsWith(c.toLowerCase())
7352
+ (d) => d.toLowerCase().startsWith(c.toLowerCase())
7353
7353
  );
7354
7354
  return s !== t ? s : void 0;
7355
7355
  }
@@ -7357,8 +7357,8 @@ function _o(e, r) {
7357
7357
  const { x: t, y: n } = e;
7358
7358
  let c = !1;
7359
7359
  for (let o = 0, A = r.length - 1; o < r.length; A = o++) {
7360
- const i = r[o], s = r[A], u = i.x, d = i.y, p = s.x, g = s.y;
7361
- d > n != g > n && t < (p - u) * (n - d) / (g - d) + u && (c = !c);
7360
+ const i = r[o], s = r[A], d = i.x, u = i.y, p = s.x, g = s.y;
7361
+ u > n != g > n && t < (p - d) * (n - u) / (g - u) + d && (c = !c);
7362
7362
  }
7363
7363
  return c;
7364
7364
  }
@@ -7370,7 +7370,7 @@ function $o(e, r) {
7370
7370
  function cr(e) {
7371
7371
  return (r) => r.pointerType === "mouse" ? e(r) : void 0;
7372
7372
  }
7373
- var e6 = S4, r6 = q2, t6 = U4, n6 = h4, a6 = W2, c6 = w4, o6 = it, A6 = T4, i6 = F4, s6 = D4, l6 = B4, d6 = Z4, u6 = Y4, p6 = J4, g6 = E4, st = "DropdownMenu", [C6] = fe(
7373
+ var e6 = S4, r6 = q2, t6 = U4, n6 = h4, a6 = W2, c6 = w4, o6 = it, A6 = T4, i6 = F4, s6 = D4, l6 = B4, u6 = Z4, d6 = Y4, p6 = J4, g6 = E4, st = "DropdownMenu", [C6] = fe(
7374
7374
  st,
7375
7375
  [K4]
7376
7376
  ), I1 = K4(), [x6, $4] = C6(st), ea = (e) => {
@@ -7382,7 +7382,7 @@ var e6 = S4, r6 = q2, t6 = U4, n6 = h4, a6 = W2, c6 = w4, o6 = it, A6 = T4, i6 =
7382
7382
  defaultOpen: o,
7383
7383
  onOpenChange: A,
7384
7384
  modal: i = !0
7385
- } = e, s = I1(r), u = l.useRef(null), [d, p] = et({
7385
+ } = e, s = I1(r), d = l.useRef(null), [u, p] = et({
7386
7386
  prop: c,
7387
7387
  defaultProp: o ?? !1,
7388
7388
  onChange: A,
@@ -7393,13 +7393,13 @@ var e6 = S4, r6 = q2, t6 = U4, n6 = h4, a6 = W2, c6 = w4, o6 = it, A6 = T4, i6 =
7393
7393
  {
7394
7394
  scope: r,
7395
7395
  triggerId: Ce(),
7396
- triggerRef: u,
7396
+ triggerRef: d,
7397
7397
  contentId: Ce(),
7398
- open: d,
7398
+ open: u,
7399
7399
  onOpenChange: p,
7400
7400
  onOpenToggle: l.useCallback(() => p((g) => !g), [p]),
7401
7401
  modal: i,
7402
- children: /* @__PURE__ */ a.jsx(e6, { ...s, open: d, onOpenChange: p, dir: n, modal: i, children: t })
7402
+ children: /* @__PURE__ */ a.jsx(e6, { ...s, open: u, onOpenChange: p, dir: n, modal: i, children: t })
7403
7403
  }
7404
7404
  );
7405
7405
  };
@@ -7452,8 +7452,8 @@ var aa = "DropdownMenuContent", ca = l.forwardRef(
7452
7452
  A.current || (s = c.triggerRef.current) == null || s.focus(), A.current = !1, i.preventDefault();
7453
7453
  }),
7454
7454
  onInteractOutside: B(e.onInteractOutside, (i) => {
7455
- const s = i.detail.originalEvent, u = s.button === 0 && s.ctrlKey === !0, d = s.button === 2 || u;
7456
- (!c.modal || d) && (A.current = !0);
7455
+ const s = i.detail.originalEvent, d = s.button === 0 && s.ctrlKey === !0, u = s.button === 2 || d;
7456
+ (!c.modal || u) && (A.current = !0);
7457
7457
  }),
7458
7458
  style: {
7459
7459
  ...e.style,
@@ -7511,13 +7511,13 @@ var M6 = "DropdownMenuItemIndicator", v6 = l.forwardRef((e, r) => {
7511
7511
  v6.displayName = M6;
7512
7512
  var K6 = "DropdownMenuSeparator", Aa = l.forwardRef((e, r) => {
7513
7513
  const { __scopeDropdownMenu: t, ...n } = e, c = I1(t);
7514
- return /* @__PURE__ */ a.jsx(d6, { ...c, ...n, ref: r });
7514
+ return /* @__PURE__ */ a.jsx(u6, { ...c, ...n, ref: r });
7515
7515
  });
7516
7516
  Aa.displayName = K6;
7517
7517
  var N6 = "DropdownMenuArrow", S6 = l.forwardRef(
7518
7518
  (e, r) => {
7519
7519
  const { __scopeDropdownMenu: t, ...n } = e, c = I1(t);
7520
- return /* @__PURE__ */ a.jsx(u6, { ...c, ...n, ref: r });
7520
+ return /* @__PURE__ */ a.jsx(d6, { ...c, ...n, ref: r });
7521
7521
  }
7522
7522
  );
7523
7523
  S6.displayName = N6;
@@ -7637,64 +7637,73 @@ const F2 = ({
7637
7637
  onDropdownOpenChange: A,
7638
7638
  forcedState: i,
7639
7639
  children: s,
7640
- className: u,
7641
- type: d = "button",
7640
+ className: d,
7641
+ type: u = "button",
7642
7642
  onClick: p,
7643
7643
  ...g
7644
7644
  }) => {
7645
- const C = t ?? n, x = !!(c != null && c.length), m = !(c != null && c.some((v) => !v.disabled)), f = E5(r, i), O = E5(m, i), y = _5(
7645
+ const x = Q5(t ?? n), m = x != null, f = !!(c != null && c.length), O = !(c != null && c.some((U) => !U.disabled)), y = E5(r, i), z = E5(O, i), H = _5(
7646
7646
  e,
7647
- f,
7647
+ y,
7648
7648
  i
7649
- ), z = _5(
7649
+ ), k = _5(
7650
7650
  e,
7651
- O,
7651
+ z,
7652
7652
  i
7653
- ), H = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7654
- Q5(C),
7655
- /* @__PURE__ */ a.jsx("span", { className: "px-2", children: s })
7656
- ] });
7657
- if (!x)
7653
+ ), P = /* @__PURE__ */ a.jsxs(
7654
+ "span",
7655
+ {
7656
+ className: V(
7657
+ "flex min-h-6 items-center justify-center",
7658
+ m && "gap-2"
7659
+ ),
7660
+ children: [
7661
+ x,
7662
+ /* @__PURE__ */ a.jsx("span", { children: s })
7663
+ ]
7664
+ }
7665
+ );
7666
+ if (!f)
7658
7667
  return /* @__PURE__ */ a.jsx(
7659
7668
  "button",
7660
7669
  {
7661
- type: d,
7670
+ type: u,
7662
7671
  disabled: r,
7663
7672
  onClick: p,
7664
7673
  className: V(
7665
7674
  "inline-flex min-h-10 items-center justify-center rounded-control p-2 text-caption-1 tracking-[0.32px] transition-colors",
7666
7675
  wt(r),
7667
- y,
7668
- u
7676
+ H,
7677
+ d
7669
7678
  ),
7670
7679
  ...g,
7671
- children: /* @__PURE__ */ a.jsx("span", { className: "flex min-h-6 items-center [&>*:first-child]:-mr-1 [&>*:last-child]:-mr-1", children: H })
7680
+ children: P
7672
7681
  }
7673
7682
  );
7674
- const k = /* @__PURE__ */ a.jsx(
7683
+ const v = /* @__PURE__ */ a.jsx(
7675
7684
  "button",
7676
7685
  {
7677
- type: d,
7686
+ type: u,
7678
7687
  disabled: r,
7679
7688
  onClick: p,
7680
7689
  className: V(
7681
7690
  "inline-flex min-h-10 items-center justify-center rounded-none rounded-l-control p-2 text-caption-1 tracking-[0.32px] transition-colors",
7682
7691
  wt(r),
7683
- $5(e, "main", y)
7692
+ $5(e, "main", H)
7684
7693
  ),
7685
7694
  ...g,
7686
- children: /* @__PURE__ */ a.jsx("span", { className: "flex min-h-6 items-center [&>*:first-child]:-mr-1 [&>*:last-child]:-mr-1", children: H })
7695
+ children: P
7687
7696
  }
7688
- ), M = /* @__PURE__ */ a.jsx(
7697
+ ), h = /* @__PURE__ */ a.jsx(
7689
7698
  "button",
7690
7699
  {
7691
7700
  type: "button",
7692
- disabled: m,
7701
+ disabled: O,
7693
7702
  "aria-label": "Open menu",
7694
7703
  className: V(
7695
7704
  "inline-flex min-h-10 shrink-0 items-center justify-center rounded-none rounded-r-control px-1 transition-colors",
7696
- wt(m),
7697
- $5(e, "dropdown", z)
7705
+ wt(O),
7706
+ $5(e, "dropdown", k)
7698
7707
  ),
7699
7708
  children: /* @__PURE__ */ a.jsx(H1, { direction: "down", size: "small" })
7700
7709
  }
@@ -7704,32 +7713,32 @@ const F2 = ({
7704
7713
  {
7705
7714
  className: V(
7706
7715
  "inline-flex min-h-10 items-stretch overflow-hidden rounded-control",
7707
- u
7716
+ d
7708
7717
  ),
7709
7718
  children: [
7710
- k,
7719
+ v,
7711
7720
  /* @__PURE__ */ a.jsx(
7712
7721
  F2,
7713
7722
  {
7714
7723
  open: o,
7715
7724
  onOpenChange: A,
7716
7725
  align: "end",
7717
- trigger: M,
7726
+ trigger: h,
7718
7727
  contentClassName: "min-w-[11rem]",
7719
- children: c == null ? void 0 : c.map((v) => /* @__PURE__ */ a.jsxs(
7728
+ children: c == null ? void 0 : c.map((U) => /* @__PURE__ */ a.jsxs(
7720
7729
  G2,
7721
7730
  {
7722
- disabled: v.disabled,
7723
- onSelect: v.onSelect,
7731
+ disabled: U.disabled,
7732
+ onSelect: U.onSelect,
7724
7733
  className: V(
7725
- v.destructive && "text-red-600 hover:bg-red-50 focus:bg-red-50 focus:text-red-600"
7734
+ U.destructive && "text-red-600 hover:bg-red-50 focus:bg-red-50 focus:text-red-600"
7726
7735
  ),
7727
7736
  children: [
7728
- v.icon ? Q5(v.icon) : null,
7729
- v.label
7737
+ U.icon ? Q5(U.icon) : null,
7738
+ U.label
7730
7739
  ]
7731
7740
  },
7732
- v.label
7741
+ U.label
7733
7742
  ))
7734
7743
  }
7735
7744
  )
@@ -7915,25 +7924,25 @@ function la(...e) {
7915
7924
  function ye(...e) {
7916
7925
  return l.useCallback(la(...e), e);
7917
7926
  }
7918
- function da(e, r = []) {
7927
+ function ua(e, r = []) {
7919
7928
  let t = [];
7920
7929
  function n(o, A) {
7921
7930
  const i = l.createContext(A), s = t.length;
7922
7931
  t = [...t, A];
7923
- const u = (p) => {
7932
+ const d = (p) => {
7924
7933
  var O;
7925
7934
  const { scope: g, children: C, ...x } = p, m = ((O = g == null ? void 0 : g[e]) == null ? void 0 : O[s]) || i, f = l.useMemo(() => x, Object.values(x));
7926
7935
  return /* @__PURE__ */ a.jsx(m.Provider, { value: f, children: C });
7927
7936
  };
7928
- u.displayName = o + "Provider";
7929
- function d(p, g) {
7937
+ d.displayName = o + "Provider";
7938
+ function u(p, g) {
7930
7939
  var m;
7931
7940
  const C = ((m = g == null ? void 0 : g[e]) == null ? void 0 : m[s]) || i, x = l.useContext(C);
7932
7941
  if (x) return x;
7933
7942
  if (A !== void 0) return A;
7934
7943
  throw new Error(`\`${p}\` must be used within \`${o}\``);
7935
7944
  }
7936
- return [u, d];
7945
+ return [d, u];
7937
7946
  }
7938
7947
  const c = () => {
7939
7948
  const o = t.map((A) => l.createContext(A));
@@ -7956,8 +7965,8 @@ function A3(...e) {
7956
7965
  scopeName: c.scopeName
7957
7966
  }));
7958
7967
  return function(o) {
7959
- const A = n.reduce((i, { useScope: s, scopeName: u }) => {
7960
- const p = s(o)[`__scope${u}`];
7968
+ const A = n.reduce((i, { useScope: s, scopeName: d }) => {
7969
+ const p = s(o)[`__scope${d}`];
7961
7970
  return { ...i, ...p };
7962
7971
  }, {});
7963
7972
  return l.useMemo(() => ({ [`__scope${r.scopeName}`]: A }), [A]);
@@ -7968,10 +7977,10 @@ function A3(...e) {
7968
7977
  // @__NO_SIDE_EFFECTS__
7969
7978
  function i3(e) {
7970
7979
  const r = /* @__PURE__ */ s3(e), t = l.forwardRef((n, c) => {
7971
- const { children: o, ...A } = n, i = l.Children.toArray(o), s = i.find(d3);
7980
+ const { children: o, ...A } = n, i = l.Children.toArray(o), s = i.find(u3);
7972
7981
  if (s) {
7973
- const u = s.props.children, d = i.map((p) => p === s ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : p);
7974
- return /* @__PURE__ */ a.jsx(r, { ...A, ref: c, children: l.isValidElement(u) ? l.cloneElement(u, void 0, d) : null });
7982
+ const d = s.props.children, u = i.map((p) => p === s ? l.Children.count(d) > 1 ? l.Children.only(null) : l.isValidElement(d) ? d.props.children : null : p);
7983
+ return /* @__PURE__ */ a.jsx(r, { ...A, ref: c, children: l.isValidElement(d) ? l.cloneElement(d, void 0, u) : null });
7975
7984
  }
7976
7985
  return /* @__PURE__ */ a.jsx(r, { ...A, ref: c, children: o });
7977
7986
  });
@@ -7982,23 +7991,23 @@ function s3(e) {
7982
7991
  const r = l.forwardRef((t, n) => {
7983
7992
  const { children: c, ...o } = t;
7984
7993
  if (l.isValidElement(c)) {
7985
- const A = p3(c), i = u3(o, c.props);
7994
+ const A = p3(c), i = d3(o, c.props);
7986
7995
  return c.type !== l.Fragment && (i.ref = n ? la(n, A) : A), l.cloneElement(c, i);
7987
7996
  }
7988
7997
  return l.Children.count(c) > 1 ? l.Children.only(null) : null;
7989
7998
  });
7990
7999
  return r.displayName = `${e}.SlotClone`, r;
7991
8000
  }
7992
- var ua = Symbol("radix.slottable");
8001
+ var da = Symbol("radix.slottable");
7993
8002
  // @__NO_SIDE_EFFECTS__
7994
8003
  function l3(e) {
7995
8004
  const r = ({ children: t }) => /* @__PURE__ */ a.jsx(a.Fragment, { children: t });
7996
- return r.displayName = `${e}.Slottable`, r.__radixId = ua, r;
8005
+ return r.displayName = `${e}.Slottable`, r.__radixId = da, r;
7997
8006
  }
7998
- function d3(e) {
7999
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ua;
8007
+ function u3(e) {
8008
+ return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === da;
8000
8009
  }
8001
- function u3(e, r) {
8010
+ function d3(e, r) {
8002
8011
  const t = { ...r };
8003
8012
  for (const n in r) {
8004
8013
  const c = e[n], o = r[n];
@@ -8083,23 +8092,23 @@ var j3 = "DismissableLayer", Jt = "dismissableLayer.update", f3 = "dismissableLa
8083
8092
  onInteractOutside: A,
8084
8093
  onDismiss: i,
8085
8094
  ...s
8086
- } = e, u = l.useContext(pa), [d, p] = l.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, C] = l.useState({}), x = ye(r, (v) => p(v)), m = Array.from(u.layers), [f] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), O = m.indexOf(f), y = d ? m.indexOf(d) : -1, z = u.layersWithOutsidePointerEventsDisabled.size > 0, H = y >= O, k = H3((v) => {
8087
- const h = v.target, W = [...u.branches].some((w) => w.contains(h));
8088
- !H || W || (c == null || c(v), A == null || A(v), v.defaultPrevented || i == null || i());
8089
- }, g), M = z3((v) => {
8095
+ } = e, d = l.useContext(pa), [u, p] = l.useState(null), g = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, C] = l.useState({}), x = ye(r, (v) => p(v)), m = Array.from(d.layers), [f] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), O = m.indexOf(f), y = u ? m.indexOf(u) : -1, z = d.layersWithOutsidePointerEventsDisabled.size > 0, H = y >= O, k = H3((v) => {
8096
+ const h = v.target, U = [...d.branches].some((W) => W.contains(h));
8097
+ !H || U || (c == null || c(v), A == null || A(v), v.defaultPrevented || i == null || i());
8098
+ }, g), P = z3((v) => {
8090
8099
  const h = v.target;
8091
- [...u.branches].some((w) => w.contains(h)) || (o == null || o(v), A == null || A(v), v.defaultPrevented || i == null || i());
8100
+ [...d.branches].some((W) => W.contains(h)) || (o == null || o(v), A == null || A(v), v.defaultPrevented || i == null || i());
8092
8101
  }, g);
8093
8102
  return m3((v) => {
8094
- y === u.layers.size - 1 && (n == null || n(v), !v.defaultPrevented && i && (v.preventDefault(), i()));
8103
+ y === d.layers.size - 1 && (n == null || n(v), !v.defaultPrevented && i && (v.preventDefault(), i()));
8095
8104
  }, g), l.useEffect(() => {
8096
- if (d)
8097
- return t && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (rn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), tn(), () => {
8098
- t && u.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = rn);
8105
+ if (u)
8106
+ return t && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (rn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), tn(), () => {
8107
+ t && d.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = rn);
8099
8108
  };
8100
- }, [d, g, t, u]), l.useEffect(() => () => {
8101
- d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), tn());
8102
- }, [d, u]), l.useEffect(() => {
8109
+ }, [u, g, t, d]), l.useEffect(() => () => {
8110
+ u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), tn());
8111
+ }, [u, d]), l.useEffect(() => {
8103
8112
  const v = () => C({});
8104
8113
  return document.addEventListener(Jt, v), () => document.removeEventListener(Jt, v);
8105
8114
  }, []), /* @__PURE__ */ a.jsx(
@@ -8111,8 +8120,8 @@ var j3 = "DismissableLayer", Jt = "dismissableLayer.update", f3 = "dismissableLa
8111
8120
  pointerEvents: z ? H ? "auto" : "none" : void 0,
8112
8121
  ...e.style
8113
8122
  },
8114
- onFocusCapture: $1(e.onFocusCapture, M.onFocusCapture),
8115
- onBlurCapture: $1(e.onBlurCapture, M.onBlurCapture),
8123
+ onFocusCapture: $1(e.onFocusCapture, P.onFocusCapture),
8124
+ onBlurCapture: $1(e.onBlurCapture, P.onBlurCapture),
8116
8125
  onPointerDownCapture: $1(
8117
8126
  e.onPointerDownCapture,
8118
8127
  k.onPointerDownCapture
@@ -8143,11 +8152,11 @@ function H3(e, r = globalThis == null ? void 0 : globalThis.document) {
8143
8152
  Ca(
8144
8153
  f3,
8145
8154
  t,
8146
- u,
8155
+ d,
8147
8156
  { discrete: !0 }
8148
8157
  );
8149
8158
  };
8150
- const u = { originalEvent: i };
8159
+ const d = { originalEvent: i };
8151
8160
  i.pointerType === "touch" ? (r.removeEventListener("click", c.current), c.current = s, r.addEventListener("click", c.current, { once: !0 })) : s();
8152
8161
  } else
8153
8162
  r.removeEventListener("click", c.current);
@@ -8222,8 +8231,8 @@ function v3(e) {
8222
8231
  const o = c[0];
8223
8232
  let A, i;
8224
8233
  if ("borderBoxSize" in o) {
8225
- const s = o.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
8226
- A = u.inlineSize, i = u.blockSize;
8234
+ const s = o.borderBoxSize, d = Array.isArray(s) ? s[0] : s;
8235
+ A = d.inlineSize, i = d.blockSize;
8227
8236
  } else
8228
8237
  A = e.offsetWidth, i = e.offsetHeight;
8229
8238
  t({ width: A, height: i });
@@ -8233,7 +8242,7 @@ function v3(e) {
8233
8242
  t(void 0);
8234
8243
  }, [e]), r;
8235
8244
  }
8236
- var B2 = "Popper", [ma, ja] = da(B2), [K3, fa] = ma(B2), Va = (e) => {
8245
+ var B2 = "Popper", [ma, ja] = ua(B2), [K3, fa] = ma(B2), Va = (e) => {
8237
8246
  const { __scopePopper: r, children: t } = e, [n, c] = l.useState(null);
8238
8247
  return /* @__PURE__ */ a.jsx(K3, { scope: r, anchor: n, onAnchorChange: c, children: t });
8239
8248
  };
@@ -8242,8 +8251,8 @@ var Oa = "PopperAnchor", ya = l.forwardRef(
8242
8251
  (e, r) => {
8243
8252
  const { __scopePopper: t, virtualRef: n, ...c } = e, o = fa(Oa, t), A = l.useRef(null), i = ye(r, A), s = l.useRef(null);
8244
8253
  return l.useEffect(() => {
8245
- const u = s.current;
8246
- s.current = (n == null ? void 0 : n.current) || A.current, u !== s.current && o.onAnchorChange(s.current);
8254
+ const d = s.current;
8255
+ s.current = (n == null ? void 0 : n.current) || A.current, d !== s.current && o.onAnchorChange(s.current);
8247
8256
  }), n ? null : /* @__PURE__ */ a.jsx(He.div, { ...c, ref: i });
8248
8257
  }
8249
8258
  );
@@ -8259,22 +8268,22 @@ var Z2 = "PopperContent", [N3, S3] = ma(Z2), Ha = l.forwardRef(
8259
8268
  alignOffset: A = 0,
8260
8269
  arrowPadding: i = 0,
8261
8270
  avoidCollisions: s = !0,
8262
- collisionBoundary: u = [],
8263
- collisionPadding: d = 0,
8271
+ collisionBoundary: d = [],
8272
+ collisionPadding: u = 0,
8264
8273
  sticky: p = "partial",
8265
8274
  hideWhenDetached: g = !1,
8266
8275
  updatePositionStrategy: C = "optimized",
8267
8276
  onPlaced: x,
8268
8277
  ...m
8269
- } = e, f = fa(Z2, t), [O, y] = l.useState(null), z = ye(r, (g1) => y(g1)), [H, k] = l.useState(null), M = v3(H), v = (M == null ? void 0 : M.width) ?? 0, h = (M == null ? void 0 : M.height) ?? 0, W = n + (o !== "center" ? "-" + o : ""), w = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, U = Array.isArray(u) ? u : [u], Z = U.length > 0, R = {
8270
- padding: w,
8271
- boundary: U.filter(U3),
8278
+ } = e, f = fa(Z2, t), [O, y] = l.useState(null), z = ye(r, (g1) => y(g1)), [H, k] = l.useState(null), P = v3(H), v = (P == null ? void 0 : P.width) ?? 0, h = (P == null ? void 0 : P.height) ?? 0, U = n + (o !== "center" ? "-" + o : ""), W = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, w = Array.isArray(d) ? d : [d], Z = w.length > 0, R = {
8279
+ padding: W,
8280
+ boundary: w.filter(U3),
8272
8281
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
8273
8282
  altBoundary: Z
8274
8283
  }, { refs: F, floatingStyles: t1, placement: X, isPositioned: _, middlewareData: I } = Jn({
8275
8284
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
8276
8285
  strategy: "fixed",
8277
- placement: W,
8286
+ placement: U,
8278
8287
  whileElementsMounted: (...g1) => Yn(...g1, {
8279
8288
  animationFrame: C === "always"
8280
8289
  }),
@@ -8292,9 +8301,9 @@ var Z2 = "PopperContent", [N3, S3] = ma(Z2), Ha = l.forwardRef(
8292
8301
  s && $n({ ...R }),
8293
8302
  e4({
8294
8303
  ...R,
8295
- apply: ({ elements: g1, rects: J, availableWidth: d1, availableHeight: Q }) => {
8296
- const { width: f1, height: V1 } = J.reference, u1 = g1.floating.style;
8297
- u1.setProperty("--radix-popper-available-width", `${d1}px`), u1.setProperty("--radix-popper-available-height", `${Q}px`), u1.setProperty("--radix-popper-anchor-width", `${f1}px`), u1.setProperty("--radix-popper-anchor-height", `${V1}px`);
8304
+ apply: ({ elements: g1, rects: J, availableWidth: u1, availableHeight: Q }) => {
8305
+ const { width: f1, height: V1 } = J.reference, d1 = g1.floating.style;
8306
+ d1.setProperty("--radix-popper-available-width", `${u1}px`), d1.setProperty("--radix-popper-available-height", `${Q}px`), d1.setProperty("--radix-popper-anchor-width", `${f1}px`), d1.setProperty("--radix-popper-anchor-height", `${V1}px`);
8298
8307
  }
8299
8308
  }),
8300
8309
  H && t4({ element: H, padding: i }),
@@ -8422,9 +8431,9 @@ var h3 = (e) => ({
8422
8431
  options: e,
8423
8432
  fn(r) {
8424
8433
  var f, O, y;
8425
- const { placement: t, rects: n, middlewareData: c } = r, A = ((f = c.arrow) == null ? void 0 : f.centerOffset) !== 0, i = A ? 0 : e.arrowWidth, s = A ? 0 : e.arrowHeight, [u, d] = ba(t), p = { start: "0%", center: "50%", end: "100%" }[d], g = (((O = c.arrow) == null ? void 0 : O.x) ?? 0) + i / 2, C = (((y = c.arrow) == null ? void 0 : y.y) ?? 0) + s / 2;
8434
+ const { placement: t, rects: n, middlewareData: c } = r, A = ((f = c.arrow) == null ? void 0 : f.centerOffset) !== 0, i = A ? 0 : e.arrowWidth, s = A ? 0 : e.arrowHeight, [d, u] = ba(t), p = { start: "0%", center: "50%", end: "100%" }[u], g = (((O = c.arrow) == null ? void 0 : O.x) ?? 0) + i / 2, C = (((y = c.arrow) == null ? void 0 : y.y) ?? 0) + s / 2;
8426
8435
  let x = "", m = "";
8427
- return u === "bottom" ? (x = A ? p : `${g}px`, m = `${-s}px`) : u === "top" ? (x = A ? p : `${g}px`, m = `${n.floating.height + s}px`) : u === "right" ? (x = `${-s}px`, m = A ? p : `${C}px`) : u === "left" && (x = `${n.floating.width + s}px`, m = A ? p : `${C}px`), { data: { x, y: m } };
8436
+ return d === "bottom" ? (x = A ? p : `${g}px`, m = `${-s}px`) : d === "top" ? (x = A ? p : `${g}px`, m = `${n.floating.height + s}px`) : d === "right" ? (x = `${-s}px`, m = A ? p : `${C}px`) : d === "left" && (x = `${n.floating.width + s}px`, m = A ? p : `${C}px`), { data: { x, y: m } };
8428
8437
  }
8429
8438
  });
8430
8439
  function ba(e) {
@@ -8462,22 +8471,22 @@ function D3(e) {
8462
8471
  }
8463
8472
  });
8464
8473
  return l.useEffect(() => {
8465
- const u = Mr(n.current);
8466
- o.current = i === "mounted" ? u : "none";
8474
+ const d = Mr(n.current);
8475
+ o.current = i === "mounted" ? d : "none";
8467
8476
  }, [i]), se(() => {
8468
- const u = n.current, d = c.current;
8469
- if (d !== e) {
8470
- const g = o.current, C = Mr(u);
8471
- e ? s("MOUNT") : C === "none" || (u == null ? void 0 : u.display) === "none" ? s("UNMOUNT") : s(d && g !== C ? "ANIMATION_OUT" : "UNMOUNT"), c.current = e;
8477
+ const d = n.current, u = c.current;
8478
+ if (u !== e) {
8479
+ const g = o.current, C = Mr(d);
8480
+ e ? s("MOUNT") : C === "none" || (d == null ? void 0 : d.display) === "none" ? s("UNMOUNT") : s(u && g !== C ? "ANIMATION_OUT" : "UNMOUNT"), c.current = e;
8472
8481
  }
8473
8482
  }, [e, s]), se(() => {
8474
8483
  if (r) {
8475
- let u;
8476
- const d = r.ownerDocument.defaultView ?? window, p = (C) => {
8484
+ let d;
8485
+ const u = r.ownerDocument.defaultView ?? window, p = (C) => {
8477
8486
  const m = Mr(n.current).includes(CSS.escape(C.animationName));
8478
8487
  if (C.target === r && m && (s("ANIMATION_END"), !c.current)) {
8479
8488
  const f = r.style.animationFillMode;
8480
- r.style.animationFillMode = "forwards", u = d.setTimeout(() => {
8489
+ r.style.animationFillMode = "forwards", d = u.setTimeout(() => {
8481
8490
  r.style.animationFillMode === "forwards" && (r.style.animationFillMode = f);
8482
8491
  });
8483
8492
  }
@@ -8485,14 +8494,14 @@ function D3(e) {
8485
8494
  C.target === r && (o.current = Mr(n.current));
8486
8495
  };
8487
8496
  return r.addEventListener("animationstart", g), r.addEventListener("animationcancel", p), r.addEventListener("animationend", p), () => {
8488
- d.clearTimeout(u), r.removeEventListener("animationstart", g), r.removeEventListener("animationcancel", p), r.removeEventListener("animationend", p);
8497
+ u.clearTimeout(d), r.removeEventListener("animationstart", g), r.removeEventListener("animationcancel", p), r.removeEventListener("animationend", p);
8489
8498
  };
8490
8499
  } else
8491
8500
  s("ANIMATION_END");
8492
8501
  }, [r, s]), {
8493
8502
  isPresent: ["mounted", "unmountSuspended"].includes(i),
8494
- ref: l.useCallback((u) => {
8495
- n.current = u ? getComputedStyle(u) : null, t(u);
8503
+ ref: l.useCallback((d) => {
8504
+ n.current = d ? getComputedStyle(d) : null, t(d);
8496
8505
  }, [])
8497
8506
  };
8498
8507
  }
@@ -8517,26 +8526,26 @@ function Z3({
8517
8526
  onChange: t
8518
8527
  }), i = e !== void 0, s = i ? e : c;
8519
8528
  {
8520
- const d = l.useRef(e !== void 0);
8529
+ const u = l.useRef(e !== void 0);
8521
8530
  l.useEffect(() => {
8522
- const p = d.current;
8531
+ const p = u.current;
8523
8532
  p !== i && console.warn(
8524
8533
  `${n} is changing from ${p ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
8525
- ), d.current = i;
8534
+ ), u.current = i;
8526
8535
  }, [i, n]);
8527
8536
  }
8528
- const u = l.useCallback(
8529
- (d) => {
8537
+ const d = l.useCallback(
8538
+ (u) => {
8530
8539
  var p;
8531
8540
  if (i) {
8532
- const g = L3(d) ? d(e) : d;
8541
+ const g = L3(u) ? u(e) : u;
8533
8542
  g !== e && ((p = A.current) == null || p.call(A, g));
8534
8543
  } else
8535
- o(d);
8544
+ o(u);
8536
8545
  },
8537
8546
  [i, e, o, A]
8538
8547
  );
8539
- return [s, u];
8548
+ return [s, d];
8540
8549
  }
8541
8550
  function Y3({
8542
8551
  defaultProp: e,
@@ -8579,8 +8588,8 @@ function Q3(e) {
8579
8588
  const r = /* @__PURE__ */ E3(e), t = l.forwardRef((n, c) => {
8580
8589
  const { children: o, ...A } = n, i = l.Children.toArray(o), s = i.find($3);
8581
8590
  if (s) {
8582
- const u = s.props.children, d = i.map((p) => p === s ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : p);
8583
- return /* @__PURE__ */ a.jsx(r, { ...A, ref: c, children: l.isValidElement(u) ? l.cloneElement(u, void 0, d) : null });
8591
+ const d = s.props.children, u = i.map((p) => p === s ? l.Children.count(d) > 1 ? l.Children.only(null) : l.isValidElement(d) ? d.props.children : null : p);
8592
+ return /* @__PURE__ */ a.jsx(r, { ...A, ref: c, children: l.isValidElement(d) ? l.cloneElement(d, void 0, u) : null });
8584
8593
  }
8585
8594
  return /* @__PURE__ */ a.jsx(r, { ...A, ref: c, children: o });
8586
8595
  });
@@ -8665,9 +8674,9 @@ var tA = [
8665
8674
  )
8666
8675
  );
8667
8676
  Pa.displayName = cA;
8668
- var oA = Pa, [lt] = da("Tooltip", [
8677
+ var oA = Pa, [lt] = ua("Tooltip", [
8669
8678
  ja
8670
- ]), dt = ja(), Ma = "TooltipProvider", AA = 700, Qt = "tooltip.open", [iA, L2] = lt(Ma), va = (e) => {
8679
+ ]), ut = ja(), Ma = "TooltipProvider", AA = 700, Qt = "tooltip.open", [iA, L2] = lt(Ma), va = (e) => {
8671
8680
  const {
8672
8681
  __scopeTooltip: r,
8673
8682
  delayDuration: t = AA,
@@ -8676,8 +8685,8 @@ var oA = Pa, [lt] = da("Tooltip", [
8676
8685
  children: o
8677
8686
  } = e, A = l.useRef(!0), i = l.useRef(!1), s = l.useRef(0);
8678
8687
  return l.useEffect(() => {
8679
- const u = s.current;
8680
- return () => window.clearTimeout(u);
8688
+ const d = s.current;
8689
+ return () => window.clearTimeout(d);
8681
8690
  }, []), /* @__PURE__ */ a.jsx(
8682
8691
  iA,
8683
8692
  {
@@ -8694,8 +8703,8 @@ var oA = Pa, [lt] = da("Tooltip", [
8694
8703
  );
8695
8704
  }, [n]),
8696
8705
  isPointerInTransitRef: i,
8697
- onPointerInTransitChange: l.useCallback((u) => {
8698
- i.current = u;
8706
+ onPointerInTransitChange: l.useCallback((d) => {
8707
+ i.current = d;
8699
8708
  }, []),
8700
8709
  disableHoverableContent: c,
8701
8710
  children: o
@@ -8712,7 +8721,7 @@ var Ar = "Tooltip", [sA, mr] = lt(Ar), Ka = (e) => {
8712
8721
  onOpenChange: o,
8713
8722
  disableHoverableContent: A,
8714
8723
  delayDuration: i
8715
- } = e, s = L2(Ar, e.__scopeTooltip), u = dt(r), [d, p] = l.useState(null), g = I3(), C = l.useRef(0), x = A ?? s.disableHoverableContent, m = i ?? s.delayDuration, f = l.useRef(!1), [O, y] = Z3({
8724
+ } = e, s = L2(Ar, e.__scopeTooltip), d = ut(r), [u, p] = l.useState(null), g = I3(), C = l.useRef(0), x = A ?? s.disableHoverableContent, m = i ?? s.delayDuration, f = l.useRef(!1), [O, y] = Z3({
8716
8725
  prop: n,
8717
8726
  defaultProp: c ?? !1,
8718
8727
  onChange: (v) => {
@@ -8723,25 +8732,25 @@ var Ar = "Tooltip", [sA, mr] = lt(Ar), Ka = (e) => {
8723
8732
  window.clearTimeout(C.current), C.current = 0, f.current = !1, y(!0);
8724
8733
  }, [y]), k = l.useCallback(() => {
8725
8734
  window.clearTimeout(C.current), C.current = 0, y(!1);
8726
- }, [y]), M = l.useCallback(() => {
8735
+ }, [y]), P = l.useCallback(() => {
8727
8736
  window.clearTimeout(C.current), C.current = window.setTimeout(() => {
8728
8737
  f.current = !0, y(!0), C.current = 0;
8729
8738
  }, m);
8730
8739
  }, [m, y]);
8731
8740
  return l.useEffect(() => () => {
8732
8741
  C.current && (window.clearTimeout(C.current), C.current = 0);
8733
- }, []), /* @__PURE__ */ a.jsx(w3, { ...u, children: /* @__PURE__ */ a.jsx(
8742
+ }, []), /* @__PURE__ */ a.jsx(w3, { ...d, children: /* @__PURE__ */ a.jsx(
8734
8743
  sA,
8735
8744
  {
8736
8745
  scope: r,
8737
8746
  contentId: g,
8738
8747
  open: O,
8739
8748
  stateAttribute: z,
8740
- trigger: d,
8749
+ trigger: u,
8741
8750
  onTriggerChange: p,
8742
8751
  onTriggerEnter: l.useCallback(() => {
8743
- s.isOpenDelayedRef.current ? M() : H();
8744
- }, [s.isOpenDelayedRef, M, H]),
8752
+ s.isOpenDelayedRef.current ? P() : H();
8753
+ }, [s.isOpenDelayedRef, P, H]),
8745
8754
  onTriggerLeave: l.useCallback(() => {
8746
8755
  x ? k() : (window.clearTimeout(C.current), C.current = 0);
8747
8756
  }, [k, x]),
@@ -8755,7 +8764,7 @@ var Ar = "Tooltip", [sA, mr] = lt(Ar), Ka = (e) => {
8755
8764
  Ka.displayName = Ar;
8756
8765
  var Et = "TooltipTrigger", Na = l.forwardRef(
8757
8766
  (e, r) => {
8758
- const { __scopeTooltip: t, ...n } = e, c = mr(Et, t), o = L2(Et, t), A = dt(t), i = l.useRef(null), s = ye(r, i, c.onTriggerChange), u = l.useRef(!1), d = l.useRef(!1), p = l.useCallback(() => u.current = !1, []);
8767
+ const { __scopeTooltip: t, ...n } = e, c = mr(Et, t), o = L2(Et, t), A = ut(t), i = l.useRef(null), s = ye(r, i, c.onTriggerChange), d = l.useRef(!1), u = l.useRef(!1), p = l.useCallback(() => d.current = !1, []);
8759
8768
  return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ a.jsx(W3, { asChild: !0, ...A, children: /* @__PURE__ */ a.jsx(
8760
8769
  He.button,
8761
8770
  {
@@ -8764,16 +8773,16 @@ var Et = "TooltipTrigger", Na = l.forwardRef(
8764
8773
  ...n,
8765
8774
  ref: s,
8766
8775
  onPointerMove: $1(e.onPointerMove, (g) => {
8767
- g.pointerType !== "touch" && !d.current && !o.isPointerInTransitRef.current && (c.onTriggerEnter(), d.current = !0);
8776
+ g.pointerType !== "touch" && !u.current && !o.isPointerInTransitRef.current && (c.onTriggerEnter(), u.current = !0);
8768
8777
  }),
8769
8778
  onPointerLeave: $1(e.onPointerLeave, () => {
8770
- c.onTriggerLeave(), d.current = !1;
8779
+ c.onTriggerLeave(), u.current = !1;
8771
8780
  }),
8772
8781
  onPointerDown: $1(e.onPointerDown, () => {
8773
- c.open && c.onClose(), u.current = !0, document.addEventListener("pointerup", p, { once: !0 });
8782
+ c.open && c.onClose(), d.current = !0, document.addEventListener("pointerup", p, { once: !0 });
8774
8783
  }),
8775
8784
  onFocus: $1(e.onFocus, () => {
8776
- u.current || c.onOpen();
8785
+ d.current || c.onOpen();
8777
8786
  }),
8778
8787
  onBlur: $1(e.onBlur, c.onClose),
8779
8788
  onClick: $1(e.onClick, c.onClose)
@@ -8782,7 +8791,7 @@ var Et = "TooltipTrigger", Na = l.forwardRef(
8782
8791
  }
8783
8792
  );
8784
8793
  Na.displayName = Et;
8785
- var J2 = "TooltipPortal", [lA, dA] = lt(J2, {
8794
+ var J2 = "TooltipPortal", [lA, uA] = lt(J2, {
8786
8795
  forceMount: void 0
8787
8796
  }), Sa = (e) => {
8788
8797
  const { __scopeTooltip: r, forceMount: t, children: n, container: c } = e, o = mr(J2, r);
@@ -8791,11 +8800,11 @@ var J2 = "TooltipPortal", [lA, dA] = lt(J2, {
8791
8800
  Sa.displayName = J2;
8792
8801
  var Se = "TooltipContent", qa = l.forwardRef(
8793
8802
  (e, r) => {
8794
- const t = dA(Se, e.__scopeTooltip), { forceMount: n = t.forceMount, side: c = "top", ...o } = e, A = mr(Se, e.__scopeTooltip);
8795
- return /* @__PURE__ */ a.jsx(Y2, { present: n || A.open, children: A.disableHoverableContent ? /* @__PURE__ */ a.jsx(Ua, { side: c, ...o, ref: r }) : /* @__PURE__ */ a.jsx(uA, { side: c, ...o, ref: r }) });
8803
+ const t = uA(Se, e.__scopeTooltip), { forceMount: n = t.forceMount, side: c = "top", ...o } = e, A = mr(Se, e.__scopeTooltip);
8804
+ return /* @__PURE__ */ a.jsx(Y2, { present: n || A.open, children: A.disableHoverableContent ? /* @__PURE__ */ a.jsx(Ua, { side: c, ...o, ref: r }) : /* @__PURE__ */ a.jsx(dA, { side: c, ...o, ref: r }) });
8796
8805
  }
8797
- ), uA = l.forwardRef((e, r) => {
8798
- const t = mr(Se, e.__scopeTooltip), n = L2(Se, e.__scopeTooltip), c = l.useRef(null), o = ye(r, c), [A, i] = l.useState(null), { trigger: s, onClose: u } = t, d = c.current, { onPointerInTransitChange: p } = n, g = l.useCallback(() => {
8806
+ ), dA = l.forwardRef((e, r) => {
8807
+ const t = mr(Se, e.__scopeTooltip), n = L2(Se, e.__scopeTooltip), c = l.useRef(null), o = ye(r, c), [A, i] = l.useState(null), { trigger: s, onClose: d } = t, u = c.current, { onPointerInTransitChange: p } = n, g = l.useCallback(() => {
8799
8808
  i(null), p(!1);
8800
8809
  }, [p]), C = l.useCallback(
8801
8810
  (x, m) => {
@@ -8805,21 +8814,21 @@ var Se = "TooltipContent", qa = l.forwardRef(
8805
8814
  [p]
8806
8815
  );
8807
8816
  return l.useEffect(() => () => g(), [g]), l.useEffect(() => {
8808
- if (s && d) {
8809
- const x = (f) => C(f, d), m = (f) => C(f, s);
8810
- return s.addEventListener("pointerleave", x), d.addEventListener("pointerleave", m), () => {
8811
- s.removeEventListener("pointerleave", x), d.removeEventListener("pointerleave", m);
8817
+ if (s && u) {
8818
+ const x = (f) => C(f, u), m = (f) => C(f, s);
8819
+ return s.addEventListener("pointerleave", x), u.addEventListener("pointerleave", m), () => {
8820
+ s.removeEventListener("pointerleave", x), u.removeEventListener("pointerleave", m);
8812
8821
  };
8813
8822
  }
8814
- }, [s, d, C, g]), l.useEffect(() => {
8823
+ }, [s, u, C, g]), l.useEffect(() => {
8815
8824
  if (A) {
8816
8825
  const x = (m) => {
8817
- const f = m.target, O = { x: m.clientX, y: m.clientY }, y = (s == null ? void 0 : s.contains(f)) || (d == null ? void 0 : d.contains(f)), z = !VA(O, A);
8818
- y ? g() : z && (g(), u());
8826
+ const f = m.target, O = { x: m.clientX, y: m.clientY }, y = (s == null ? void 0 : s.contains(f)) || (u == null ? void 0 : u.contains(f)), z = !VA(O, A);
8827
+ y ? g() : z && (g(), d());
8819
8828
  };
8820
8829
  return document.addEventListener("pointermove", x), () => document.removeEventListener("pointermove", x);
8821
8830
  }
8822
- }, [s, d, A, u, g]), /* @__PURE__ */ a.jsx(Ua, { ...e, ref: o });
8831
+ }, [s, u, A, d, g]), /* @__PURE__ */ a.jsx(Ua, { ...e, ref: o });
8823
8832
  }), [pA, gA] = lt(Ar, { isInside: !1 }), CA = /* @__PURE__ */ l3("TooltipContent"), Ua = l.forwardRef(
8824
8833
  (e, r) => {
8825
8834
  const {
@@ -8829,16 +8838,16 @@ var Se = "TooltipContent", qa = l.forwardRef(
8829
8838
  onEscapeKeyDown: o,
8830
8839
  onPointerDownOutside: A,
8831
8840
  ...i
8832
- } = e, s = mr(Se, t), u = dt(t), { onClose: d } = s;
8833
- return l.useEffect(() => (document.addEventListener(Qt, d), () => document.removeEventListener(Qt, d)), [d]), l.useEffect(() => {
8841
+ } = e, s = mr(Se, t), d = ut(t), { onClose: u } = s;
8842
+ return l.useEffect(() => (document.addEventListener(Qt, u), () => document.removeEventListener(Qt, u)), [u]), l.useEffect(() => {
8834
8843
  if (s.trigger) {
8835
8844
  const p = (g) => {
8836
8845
  const C = g.target;
8837
- C != null && C.contains(s.trigger) && d();
8846
+ C != null && C.contains(s.trigger) && u();
8838
8847
  };
8839
8848
  return window.addEventListener("scroll", p, { capture: !0 }), () => window.removeEventListener("scroll", p, { capture: !0 });
8840
8849
  }
8841
- }, [s.trigger, d]), /* @__PURE__ */ a.jsx(
8850
+ }, [s.trigger, u]), /* @__PURE__ */ a.jsx(
8842
8851
  ga,
8843
8852
  {
8844
8853
  asChild: !0,
@@ -8846,12 +8855,12 @@ var Se = "TooltipContent", qa = l.forwardRef(
8846
8855
  onEscapeKeyDown: o,
8847
8856
  onPointerDownOutside: A,
8848
8857
  onFocusOutside: (p) => p.preventDefault(),
8849
- onDismiss: d,
8858
+ onDismiss: u,
8850
8859
  children: /* @__PURE__ */ a.jsxs(
8851
8860
  T3,
8852
8861
  {
8853
8862
  "data-state": s.stateAttribute,
8854
- ...u,
8863
+ ...d,
8855
8864
  ...i,
8856
8865
  ref: r,
8857
8866
  style: {
@@ -8875,7 +8884,7 @@ var Se = "TooltipContent", qa = l.forwardRef(
8875
8884
  qa.displayName = Se;
8876
8885
  var ha = "TooltipArrow", xA = l.forwardRef(
8877
8886
  (e, r) => {
8878
- const { __scopeTooltip: t, ...n } = e, c = dt(t);
8887
+ const { __scopeTooltip: t, ...n } = e, c = ut(t);
8879
8888
  return gA(
8880
8889
  ha,
8881
8890
  t
@@ -8941,8 +8950,8 @@ function VA(e, r) {
8941
8950
  const { x: t, y: n } = e;
8942
8951
  let c = !1;
8943
8952
  for (let o = 0, A = r.length - 1; o < r.length; A = o++) {
8944
- const i = r[o], s = r[A], u = i.x, d = i.y, p = s.x, g = s.y;
8945
- d > n != g > n && t < (p - u) * (n - d) / (g - d) + u && (c = !c);
8953
+ const i = r[o], s = r[A], d = i.x, u = i.y, p = s.x, g = s.y;
8954
+ u > n != g > n && t < (p - d) * (n - u) / (g - u) + d && (c = !c);
8946
8955
  }
8947
8956
  return c;
8948
8957
  }
@@ -8976,7 +8985,7 @@ function yA(e) {
8976
8985
  return t.pop(), r.length === 1 && t.length === 1 && r[0].x === t[0].x && r[0].y === t[0].y ? r : r.concat(t);
8977
8986
  }
8978
8987
  var HA = va, zA = Ka, kA = Na, bA = Sa, IA = qa;
8979
- const yl = HA, ut = ({
8988
+ const yl = HA, dt = ({
8980
8989
  children: e,
8981
8990
  content: r,
8982
8991
  hint: t = !1,
@@ -9253,9 +9262,9 @@ const yl = HA, ut = ({
9253
9262
  disabled: A,
9254
9263
  className: i,
9255
9264
  id: s,
9256
- ...u
9265
+ ...d
9257
9266
  }) => {
9258
- const d = a2(), p = s ?? d, g = A ?? c === "disabled", C = g ? "disabled" : c, x = !!n;
9267
+ const u = a2(), p = s ?? u, g = A ?? c === "disabled", C = g ? "disabled" : c, x = !!n;
9259
9268
  return /* @__PURE__ */ a.jsxs("div", { className: V("flex w-full flex-col gap-1", i), children: [
9260
9269
  e && /* @__PURE__ */ a.jsx("label", { htmlFor: p, className: "text-caption-2-em text-display-on-light-secondary", children: e }),
9261
9270
  /* @__PURE__ */ a.jsx(
@@ -9277,7 +9286,7 @@ const yl = HA, ut = ({
9277
9286
  x && "border-red-500 ring-1 ring-red-500",
9278
9287
  !x && vA[C]
9279
9288
  ),
9280
- ...u
9289
+ ...d
9281
9290
  }
9282
9291
  ),
9283
9292
  n && /* @__PURE__ */ a.jsx("span", { className: "text-footnote text-red-500", children: n })
@@ -9296,9 +9305,9 @@ const yl = HA, ut = ({
9296
9305
  className: A,
9297
9306
  id: i,
9298
9307
  rows: s = 4,
9299
- ...u
9308
+ ...d
9300
9309
  }) => {
9301
- const d = a2(), p = i ?? d;
9310
+ const u = a2(), p = i ?? u;
9302
9311
  return /* @__PURE__ */ a.jsxs("div", { className: V("flex w-full flex-col gap-1", A), children: [
9303
9312
  e && /* @__PURE__ */ a.jsx("label", { htmlFor: p, className: "text-caption-2-em text-display-on-light-secondary", children: e }),
9304
9313
  /* @__PURE__ */ a.jsx(
@@ -9319,7 +9328,7 @@ const yl = HA, ut = ({
9319
9328
  o && "cursor-not-allowed border-divider-primary bg-grey-50 text-display-on-light-quaternary",
9320
9329
  !o && KA[n]
9321
9330
  ),
9322
- ...u
9331
+ ...d
9323
9332
  }
9324
9333
  )
9325
9334
  ] });
@@ -9333,8 +9342,8 @@ const yl = HA, ut = ({
9333
9342
  disabled: n = !1,
9334
9343
  className: c
9335
9344
  }) => {
9336
- const o = r === "on", { on: A, off: i } = NA[e], s = (u) => {
9337
- n || t == null || t(u);
9345
+ const o = r === "on", { on: A, off: i } = NA[e], s = (d) => {
9346
+ n || t == null || t(d);
9338
9347
  };
9339
9348
  return /* @__PURE__ */ a.jsxs(
9340
9349
  "div",
@@ -9432,15 +9441,15 @@ const yl = HA, ut = ({
9432
9441
  id: A,
9433
9442
  ...i
9434
9443
  }) => {
9435
- const s = a2(), u = A ?? s, d = c2(null);
9444
+ const s = a2(), d = A ?? s, u = c2(null);
9436
9445
  ge(() => {
9437
- d.current && (d.current.indeterminate = r);
9446
+ u.current && (u.current.indeterminate = r);
9438
9447
  }, [r]);
9439
9448
  const p = e || r;
9440
9449
  return /* @__PURE__ */ a.jsxs(
9441
9450
  "label",
9442
9451
  {
9443
- htmlFor: u,
9452
+ htmlFor: d,
9444
9453
  "data-checked": e,
9445
9454
  "data-indeterminate": r,
9446
9455
  "data-disabled": t,
@@ -9454,8 +9463,8 @@ const yl = HA, ut = ({
9454
9463
  /* @__PURE__ */ a.jsx(
9455
9464
  "input",
9456
9465
  {
9457
- ref: d,
9458
- id: u,
9466
+ ref: u,
9467
+ id: d,
9459
9468
  type: "checkbox",
9460
9469
  checked: e,
9461
9470
  disabled: t,
@@ -9525,8 +9534,8 @@ var gt = "Tabs", [qA] = fe(gt, [
9525
9534
  orientation: A = "horizontal",
9526
9535
  dir: i,
9527
9536
  activationMode: s = "automatic",
9528
- ...u
9529
- } = e, d = f2(i), [p, g] = et({
9537
+ ...d
9538
+ } = e, u = f2(i), [p, g] = et({
9530
9539
  prop: n,
9531
9540
  onChange: c,
9532
9541
  defaultProp: o ?? "",
@@ -9540,14 +9549,14 @@ var gt = "Tabs", [qA] = fe(gt, [
9540
9549
  value: p,
9541
9550
  onValueChange: g,
9542
9551
  orientation: A,
9543
- dir: d,
9552
+ dir: u,
9544
9553
  activationMode: s,
9545
9554
  children: /* @__PURE__ */ a.jsx(
9546
9555
  s1.div,
9547
9556
  {
9548
- dir: d,
9557
+ dir: u,
9549
9558
  "data-orientation": A,
9550
- ...u,
9559
+ ...d,
9551
9560
  ref: r
9552
9561
  }
9553
9562
  )
@@ -9583,22 +9592,22 @@ var Ra = "TabsList", Fa = l.forwardRef(
9583
9592
  Fa.displayName = Ra;
9584
9593
  var Ga = "TabsTrigger", Da = l.forwardRef(
9585
9594
  (e, r) => {
9586
- const { __scopeTabs: t, value: n, disabled: c = !1, ...o } = e, A = Q2(Ga, t), i = Wa(t), s = Za(A.baseId, n), u = Ya(A.baseId, n), d = n === A.value;
9595
+ const { __scopeTabs: t, value: n, disabled: c = !1, ...o } = e, A = Q2(Ga, t), i = Wa(t), s = Za(A.baseId, n), d = Ya(A.baseId, n), u = n === A.value;
9587
9596
  return /* @__PURE__ */ a.jsx(
9588
9597
  V4,
9589
9598
  {
9590
9599
  asChild: !0,
9591
9600
  ...i,
9592
9601
  focusable: !c,
9593
- active: d,
9602
+ active: u,
9594
9603
  children: /* @__PURE__ */ a.jsx(
9595
9604
  s1.button,
9596
9605
  {
9597
9606
  type: "button",
9598
9607
  role: "tab",
9599
- "aria-selected": d,
9600
- "aria-controls": u,
9601
- "data-state": d ? "active" : "inactive",
9608
+ "aria-selected": u,
9609
+ "aria-controls": d,
9610
+ "data-state": u ? "active" : "inactive",
9602
9611
  "data-disabled": c ? "" : void 0,
9603
9612
  disabled: c,
9604
9613
  id: s,
@@ -9612,7 +9621,7 @@ var Ga = "TabsTrigger", Da = l.forwardRef(
9612
9621
  }),
9613
9622
  onFocus: B(e.onFocus, () => {
9614
9623
  const p = A.activationMode !== "manual";
9615
- !d && !c && p && A.onValueChange(n);
9624
+ !u && !c && p && A.onValueChange(n);
9616
9625
  })
9617
9626
  }
9618
9627
  )
@@ -9623,19 +9632,19 @@ var Ga = "TabsTrigger", Da = l.forwardRef(
9623
9632
  Da.displayName = Ga;
9624
9633
  var Xa = "TabsContent", Ba = l.forwardRef(
9625
9634
  (e, r) => {
9626
- const { __scopeTabs: t, value: n, forceMount: c, children: o, ...A } = e, i = Q2(Xa, t), s = Za(i.baseId, n), u = Ya(i.baseId, n), d = n === i.value, p = l.useRef(d);
9635
+ const { __scopeTabs: t, value: n, forceMount: c, children: o, ...A } = e, i = Q2(Xa, t), s = Za(i.baseId, n), d = Ya(i.baseId, n), u = n === i.value, p = l.useRef(u);
9627
9636
  return l.useEffect(() => {
9628
9637
  const g = requestAnimationFrame(() => p.current = !1);
9629
9638
  return () => cancelAnimationFrame(g);
9630
- }, []), /* @__PURE__ */ a.jsx(ae, { present: c || d, children: ({ present: g }) => /* @__PURE__ */ a.jsx(
9639
+ }, []), /* @__PURE__ */ a.jsx(ae, { present: c || u, children: ({ present: g }) => /* @__PURE__ */ a.jsx(
9631
9640
  s1.div,
9632
9641
  {
9633
- "data-state": d ? "active" : "inactive",
9642
+ "data-state": u ? "active" : "inactive",
9634
9643
  "data-orientation": i.orientation,
9635
9644
  role: "tabpanel",
9636
9645
  "aria-labelledby": s,
9637
9646
  hidden: !g,
9638
- id: u,
9647
+ id: d,
9639
9648
  tabIndex: 0,
9640
9649
  ...A,
9641
9650
  ref: r,
@@ -9675,7 +9684,7 @@ const E2 = m8({
9675
9684
  children: n
9676
9685
  }
9677
9686
  ) }), Ea = X1(({ className: e, ...r }, t) => {
9678
- const { type: n } = dn(E2);
9687
+ const { type: n } = un(E2);
9679
9688
  return /* @__PURE__ */ a.jsx(
9680
9689
  La,
9681
9690
  {
@@ -9692,7 +9701,7 @@ const E2 = m8({
9692
9701
  });
9693
9702
  Ea.displayName = La.displayName;
9694
9703
  const _a = X1(({ className: e, children: r, ...t }, n) => {
9695
- const { type: c, appearance: o } = dn(E2);
9704
+ const { type: c, appearance: o } = un(E2);
9696
9705
  return /* @__PURE__ */ a.jsx(
9697
9706
  Ja,
9698
9707
  {
@@ -9770,7 +9779,7 @@ const Dl = ({
9770
9779
  ), WA = {
9771
9780
  chat: /* @__PURE__ */ a.jsx(Lr, { className: "size-4" }),
9772
9781
  issue: /* @__PURE__ */ a.jsx(rr, { className: "size-4" }),
9773
- report: /* @__PURE__ */ a.jsx(d2, { className: "size-4" })
9782
+ report: /* @__PURE__ */ a.jsx(u2, { className: "size-4" })
9774
9783
  }, TA = ({
9775
9784
  variant: e,
9776
9785
  type: r,
@@ -9781,8 +9790,8 @@ const Dl = ({
9781
9790
  trailing: A,
9782
9791
  icon: i,
9783
9792
  onClick: s,
9784
- className: u,
9785
- meta: d
9793
+ className: d,
9794
+ meta: u
9786
9795
  }) => {
9787
9796
  const p = e ?? r ?? "chat", g = typeof s == "function", C = (x) => {
9788
9797
  s && (x.key === "Enter" || x.key === " ") && (x.preventDefault(), s());
@@ -9801,10 +9810,10 @@ const Dl = ({
9801
9810
  "hover:bg-[rgba(38,36,32,0.04)]",
9802
9811
  t === "active" && "bg-[rgba(38,36,32,0.04)]",
9803
9812
  g && "cursor-pointer",
9804
- u
9813
+ d
9805
9814
  ),
9806
9815
  children: [
9807
- /* @__PURE__ */ a.jsx("span", { className: "shrink-0 text-display-on-light-secondary", children: i ?? WA[p] ?? /* @__PURE__ */ a.jsx(u2, { className: "size-4" }) }),
9816
+ /* @__PURE__ */ a.jsx("span", { className: "shrink-0 text-display-on-light-secondary", children: i ?? WA[p] ?? /* @__PURE__ */ a.jsx(d2, { className: "size-4" }) }),
9808
9817
  /* @__PURE__ */ a.jsxs("span", { className: "flex min-w-0 flex-1 flex-col", children: [
9809
9818
  /* @__PURE__ */ a.jsxs("span", { className: "flex min-h-6 w-full items-center gap-4", children: [
9810
9819
  /* @__PURE__ */ a.jsx("span", { className: "min-w-0 flex-1 truncate text-caption-1-em text-display-on-light-primary", children: n }),
@@ -9816,7 +9825,7 @@ const Dl = ({
9816
9825
  children: o > 99 ? "99+" : o
9817
9826
  }
9818
9827
  ),
9819
- d != null && typeof o != "number" && /* @__PURE__ */ a.jsx("span", { className: "shrink-0 text-footnote text-display-on-light-quaternary", children: d })
9828
+ u != null && typeof o != "number" && /* @__PURE__ */ a.jsx("span", { className: "shrink-0 text-footnote text-display-on-light-quaternary", children: u })
9820
9829
  ] }),
9821
9830
  c != null && c !== !1 || A ? /* @__PURE__ */ a.jsxs("span", { className: "flex min-h-6 w-full items-center gap-4", children: [
9822
9831
  c != null && c !== !1 ? /* @__PURE__ */ a.jsx("span", { className: "min-w-0 flex-1 truncate text-caption-2 text-display-on-light-secondary", children: c }) : /* @__PURE__ */ a.jsx("span", { className: "min-w-0 flex-1" }),
@@ -9874,7 +9883,7 @@ var Ct = "Dialog", [e0] = fe(Ct), [RA, B1] = e0(Ct), r0 = (e) => {
9874
9883
  defaultOpen: c,
9875
9884
  onOpenChange: o,
9876
9885
  modal: A = !0
9877
- } = e, i = l.useRef(null), s = l.useRef(null), [u, d] = et({
9886
+ } = e, i = l.useRef(null), s = l.useRef(null), [d, u] = et({
9878
9887
  prop: n,
9879
9888
  defaultProp: c ?? !1,
9880
9889
  onChange: o,
@@ -9889,9 +9898,9 @@ var Ct = "Dialog", [e0] = fe(Ct), [RA, B1] = e0(Ct), r0 = (e) => {
9889
9898
  contentId: Ce(),
9890
9899
  titleId: Ce(),
9891
9900
  descriptionId: Ce(),
9892
- open: u,
9893
- onOpenChange: d,
9894
- onOpenToggle: l.useCallback(() => d((p) => !p), [d]),
9901
+ open: d,
9902
+ onOpenChange: u,
9903
+ onOpenToggle: l.useCallback(() => u((p) => !p), [u]),
9895
9904
  modal: A,
9896
9905
  children: t
9897
9906
  }
@@ -9998,10 +10007,10 @@ var XA = l.forwardRef(
9998
10007
  (A = e.onCloseAutoFocus) == null || A.call(e, o), o.defaultPrevented || (n.current || (i = t.triggerRef.current) == null || i.focus(), o.preventDefault()), n.current = !1, c.current = !1;
9999
10008
  },
10000
10009
  onInteractOutside: (o) => {
10001
- var s, u;
10010
+ var s, d;
10002
10011
  (s = e.onInteractOutside) == null || s.call(e, o), o.defaultPrevented || (n.current = !0, o.detail.originalEvent.type === "pointerdown" && (c.current = !0));
10003
10012
  const A = o.target;
10004
- ((u = t.triggerRef.current) == null ? void 0 : u.contains(A)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && c.current && o.preventDefault();
10013
+ ((d = t.triggerRef.current) == null ? void 0 : d.contains(A)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && c.current && o.preventDefault();
10005
10014
  }
10006
10015
  }
10007
10016
  );
@@ -10066,7 +10075,7 @@ l0.displayName = s0;
10066
10075
  function n5(e) {
10067
10076
  return e ? "open" : "closed";
10068
10077
  }
10069
- const ZA = r0, Bl = n0, Zl = l0, YA = c0, d0 = X1(({ className: e, ...r }, t) => /* @__PURE__ */ a.jsx(
10078
+ const ZA = r0, Bl = n0, Zl = l0, YA = c0, u0 = X1(({ className: e, ...r }, t) => /* @__PURE__ */ a.jsx(
10070
10079
  $2,
10071
10080
  {
10072
10081
  ref: t,
@@ -10079,8 +10088,8 @@ const ZA = r0, Bl = n0, Zl = l0, YA = c0, d0 = X1(({ className: e, ...r }, t) =>
10079
10088
  ...r
10080
10089
  }
10081
10090
  ));
10082
- d0.displayName = $2.displayName;
10083
- const u0 = X1(
10091
+ u0.displayName = $2.displayName;
10092
+ const d0 = X1(
10084
10093
  ({
10085
10094
  className: e,
10086
10095
  children: r,
@@ -10088,7 +10097,7 @@ const u0 = X1(
10088
10097
  overlayClassName: n,
10089
10098
  ...c
10090
10099
  }, o) => /* @__PURE__ */ a.jsxs(YA, { children: [
10091
- t && /* @__PURE__ */ a.jsx(d0, { className: n }),
10100
+ t && /* @__PURE__ */ a.jsx(u0, { className: n }),
10092
10101
  /* @__PURE__ */ a.jsx(
10093
10102
  e5,
10094
10103
  {
@@ -10107,7 +10116,7 @@ const u0 = X1(
10107
10116
  )
10108
10117
  ] })
10109
10118
  );
10110
- u0.displayName = e5.displayName;
10119
+ d0.displayName = e5.displayName;
10111
10120
  const p0 = X1(({ className: e, ...r }, t) => /* @__PURE__ */ a.jsx(
10112
10121
  r5,
10113
10122
  {
@@ -10147,8 +10156,8 @@ const Yl = ({
10147
10156
  zoomToValue: (s) => o(Math.max(r, Math.min(s, t)))
10148
10157
  }, handleWheel: (s) => {
10149
10158
  s.preventDefault();
10150
- const u = s.deltaY > 0 ? -n : n;
10151
- o((d) => Math.max(r, Math.min(d + u, t)));
10159
+ const d = s.deltaY > 0 ? -n : n;
10160
+ o((u) => Math.max(r, Math.min(u + d, t)));
10152
10161
  } }];
10153
10162
  }, m0 = () => {
10154
10163
  const [e, r] = m1(0);
@@ -10159,16 +10168,16 @@ const Yl = ({
10159
10168
  }, j0 = () => {
10160
10169
  const [e, r] = m1({ x: 0, y: 0 }), [t, n] = m1(!1), [c, o] = m1({ x: 0, y: 0 });
10161
10170
  return [{ pan: e, isDragging: t }, {
10162
- handleMouseDown: (d) => {
10171
+ handleMouseDown: (u) => {
10163
10172
  n(!0), o({
10164
- x: d.clientX - e.x,
10165
- y: d.clientY - e.y
10173
+ x: u.clientX - e.x,
10174
+ y: u.clientY - e.y
10166
10175
  });
10167
10176
  },
10168
- handleMouseMove: (d) => {
10177
+ handleMouseMove: (u) => {
10169
10178
  t && r({
10170
- x: d.clientX - c.x,
10171
- y: d.clientY - c.y
10179
+ x: u.clientX - c.x,
10180
+ y: u.clientY - c.y
10172
10181
  });
10173
10182
  },
10174
10183
  handleMouseUp: () => {
@@ -10206,11 +10215,11 @@ const Yl = ({
10206
10215
  documentUrl: i,
10207
10216
  title: s = "PDF Viewer"
10208
10217
  }) => {
10209
- const [u, d] = x0(), [p, g] = m0(), [{ pan: C, isDragging: x }, m] = j0(), [{ currentPage: f }, O] = f0(o, n), [y, z] = m1("");
10218
+ const [d, u] = x0(), [p, g] = m0(), [{ pan: C, isDragging: x }, m] = j0(), [{ currentPage: f }, O] = f0(o, n), [y, z] = m1("");
10210
10219
  ge(() => {
10211
10220
  (async () => {
10212
- const M = await A(f);
10213
- z(M);
10221
+ const P = await A(f);
10222
+ z(P);
10214
10223
  })();
10215
10224
  }, [f, A]);
10216
10225
  const H = () => {
@@ -10244,7 +10253,7 @@ const Yl = ({
10244
10253
  src: y,
10245
10254
  alt: `Page ${f}`,
10246
10255
  style: {
10247
- transform: `translate(${C.x}px, ${C.y}px) rotate(${p}deg) scale(${u / 100})`
10256
+ transform: `translate(${C.x}px, ${C.y}px) rotate(${p}deg) scale(${d / 100})`
10248
10257
  },
10249
10258
  className: "max-w-full",
10250
10259
  draggable: !1
@@ -10271,8 +10280,8 @@ const Yl = ({
10271
10280
  className: "h-8 w-14 rounded-control border border-divider-primary bg-white text-center text-caption-2",
10272
10281
  value: f,
10273
10282
  onChange: (k) => {
10274
- const M = parseInt(k.target.value, 10);
10275
- isNaN(M) || O.goToPage(M);
10283
+ const P = parseInt(k.target.value, 10);
10284
+ isNaN(P) || O.goToPage(P);
10276
10285
  },
10277
10286
  type: "number",
10278
10287
  min: 1,
@@ -10296,12 +10305,12 @@ const Yl = ({
10296
10305
  )
10297
10306
  ] }),
10298
10307
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-1", children: [
10299
- /* @__PURE__ */ a.jsx("button", { type: "button", className: Je, onClick: d.zoomOut, "aria-label": "Zoom out", children: /* @__PURE__ */ a.jsx(Br, { size: "small" }) }),
10308
+ /* @__PURE__ */ a.jsx("button", { type: "button", className: Je, onClick: u.zoomOut, "aria-label": "Zoom out", children: /* @__PURE__ */ a.jsx(Br, { size: "small" }) }),
10300
10309
  /* @__PURE__ */ a.jsxs("span", { className: "w-14 text-center text-caption-2", children: [
10301
- u,
10310
+ d,
10302
10311
  "%"
10303
10312
  ] }),
10304
- /* @__PURE__ */ a.jsx("button", { type: "button", className: Je, onClick: d.zoomIn, "aria-label": "Zoom in", children: /* @__PURE__ */ a.jsx(lr, { size: "small" }) }),
10313
+ /* @__PURE__ */ a.jsx("button", { type: "button", className: Je, onClick: u.zoomIn, "aria-label": "Zoom in", children: /* @__PURE__ */ a.jsx(lr, { size: "small" }) }),
10305
10314
  /* @__PURE__ */ a.jsx(
10306
10315
  "button",
10307
10316
  {
@@ -10325,12 +10334,12 @@ const Qe = "flex h-8 w-8 items-center justify-center rounded-control border bord
10325
10334
  className: n,
10326
10335
  onOpen: c
10327
10336
  }) => {
10328
- const [o, A] = x0(), [i, s] = m0(), [{ currentPage: u, totalPages: d }, p] = f0(), [{ pan: g, isDragging: C }, x] = j0(), [m, f] = m1(1), O = c2(null);
10337
+ const [o, A] = x0(), [i, s] = m0(), [{ currentPage: d, totalPages: u }, p] = f0(), [{ pan: g, isDragging: C }, x] = j0(), [m, f] = m1(1), O = c2(null);
10329
10338
  ge(() => {
10330
10339
  const H = () => {
10331
10340
  if (!O.current) return;
10332
- const M = O.current.offsetWidth / 612;
10333
- f(M * (o / 100));
10341
+ const P = O.current.offsetWidth / 612;
10342
+ f(P * (o / 100));
10334
10343
  };
10335
10344
  return H(), window.addEventListener("resize", H), () => window.removeEventListener("resize", H);
10336
10345
  }, [o]);
@@ -10374,7 +10383,7 @@ const Qe = "flex h-8 w-8 items-center justify-center rounded-control border bord
10374
10383
  onLoadSuccess: ({ numPages: H }) => p.setTotalPages(H),
10375
10384
  scale: m,
10376
10385
  rotate: i,
10377
- children: /* @__PURE__ */ a.jsx(O8, { pageNumber: u, renderTextLayer: !0, renderAnnotationLayer: !0 })
10386
+ children: /* @__PURE__ */ a.jsx(O8, { pageNumber: d, renderTextLayer: !0, renderAnnotationLayer: !0 })
10378
10387
  }
10379
10388
  )
10380
10389
  }
@@ -10389,7 +10398,7 @@ const Qe = "flex h-8 w-8 items-center justify-center rounded-control border bord
10389
10398
  type: "button",
10390
10399
  className: Qe,
10391
10400
  onClick: p.prevPage,
10392
- disabled: u === 1,
10401
+ disabled: d === 1,
10393
10402
  "aria-label": "Previous page",
10394
10403
  children: /* @__PURE__ */ a.jsx(H1, { direction: "left", size: "small" })
10395
10404
  }
@@ -10398,19 +10407,19 @@ const Qe = "flex h-8 w-8 items-center justify-center rounded-control border bord
10398
10407
  "input",
10399
10408
  {
10400
10409
  className: "h-8 w-14 rounded-control border border-divider-primary bg-white px-1 py-1 text-center text-caption-2 text-display-on-light-primary",
10401
- value: u,
10410
+ value: d,
10402
10411
  onChange: (H) => {
10403
10412
  const k = parseInt(H.target.value, 10);
10404
10413
  isNaN(k) || p.goToPage(k);
10405
10414
  },
10406
10415
  type: "number",
10407
10416
  min: "1",
10408
- max: d
10417
+ max: u
10409
10418
  }
10410
10419
  ),
10411
10420
  /* @__PURE__ */ a.jsxs("span", { className: "px-2 text-caption-2 text-display-on-light-secondary", children: [
10412
10421
  "of ",
10413
- d
10422
+ u
10414
10423
  ] }),
10415
10424
  /* @__PURE__ */ a.jsx(
10416
10425
  "button",
@@ -10418,7 +10427,7 @@ const Qe = "flex h-8 w-8 items-center justify-center rounded-control border bord
10418
10427
  type: "button",
10419
10428
  className: Qe,
10420
10429
  onClick: p.nextPage,
10421
- disabled: u === d,
10430
+ disabled: d === u,
10422
10431
  "aria-label": "Next page",
10423
10432
  children: /* @__PURE__ */ a.jsx(H1, { direction: "right", size: "small" })
10424
10433
  }
@@ -10481,8 +10490,8 @@ class EA {
10481
10490
  return !!(t && t.contentType && t.contentType === "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml") ? (() => {
10482
10491
  try {
10483
10492
  const c = r.map((A) => {
10484
- const i = typeof A == "string", s = A && typeof A == "object" && A.value, u = () => i && A, d = () => !i && s && A.value, p = () => !i && !s && String(A);
10485
- return u() || d() || p();
10493
+ const i = typeof A == "string", s = A && typeof A == "object" && A.value, d = () => i && A, u = () => !i && s && A.value, p = () => !i && !s && String(A);
10494
+ return d() || u() || p();
10486
10495
  }).join("");
10487
10496
  return [this.processCheckboxPatterns(c)];
10488
10497
  } catch {
@@ -10504,23 +10513,23 @@ class EA {
10504
10513
  for (; (c = t.exec(r)) !== null; )
10505
10514
  n.push(c[1]);
10506
10515
  return n.length > 0 ? (() => {
10507
- const A = () => (n.forEach((d) => {
10508
- const g = this.getCheckboxState(d) ? "1" : "0", C = new RegExp(
10509
- `(<w:fldChar w:fldCharType="begin">.*?<w:name w:val="${d}".*?<w:default w:val=")([01])(".*?</w:fldChar>)`,
10516
+ const A = () => (n.forEach((u) => {
10517
+ const g = this.getCheckboxState(u) ? "1" : "0", C = new RegExp(
10518
+ `(<w:fldChar w:fldCharType="begin">.*?<w:name w:val="${u}".*?<w:default w:val=")([01])(".*?</w:fldChar>)`,
10510
10519
  "gs"
10511
10520
  );
10512
10521
  r = r.replace(C, `$1${g}$3`);
10513
10522
  }), r), i = () => (t.lastIndex = 0, r.replace(
10514
10523
  t,
10515
- (d, p) => {
10524
+ (u, p) => {
10516
10525
  try {
10517
10526
  return `<w:r><w:t>${`|||${this.getCheckboxState(p) ? "☑" : "☐"}|||checkbox:${p}|||`}</w:t></w:r><w:bookmarkStart w:name="${p}" w:id="0"/>`;
10518
10527
  } catch {
10519
- return d;
10528
+ return u;
10520
10529
  }
10521
10530
  }
10522
- )), s = () => this.finalGeneration && A(), u = () => !this.finalGeneration && i();
10523
- return s() || u();
10531
+ )), s = () => this.finalGeneration && A(), d = () => !this.finalGeneration && i();
10532
+ return s() || d();
10524
10533
  })() : r;
10525
10534
  } catch {
10526
10535
  return r;
@@ -10536,13 +10545,13 @@ class EA {
10536
10545
  const o = Object.entries(
10537
10546
  this.schema.properties || {}
10538
10547
  ).find(([A, i]) => {
10539
- const u = i.docx_mapping, d = u && u.type === "checkbox", p = u && u.type === "radio" && u.mapping, g = d && u.name === r, C = d && u.true_name === r, x = d && u.false_name === r, m = p && u.mapping.find(
10548
+ const d = i.docx_mapping, u = d && d.type === "checkbox", p = d && d.type === "radio" && d.mapping, g = u && d.name === r, C = u && d.true_name === r, x = u && d.false_name === r, m = p && d.mapping.find(
10540
10549
  (f) => f.name === r
10541
10550
  );
10542
10551
  return g || C || x || !!m;
10543
10552
  });
10544
10553
  return o ? (() => {
10545
- const [A, i] = o, u = i.docx_mapping, d = u && u.type === "checkbox" && u.name === r, p = u && u.type === "checkbox" && u.true_name === r, g = u && u.type === "checkbox" && u.false_name === r, C = u && u.type === "radio" && u.mapping && u.mapping.find((O) => O.name === r), x = () => (d || p) && this.checkboxData[A] === !0, m = () => g && this.checkboxData[A] === !1, f = () => C && this.checkboxData[A] === C.value;
10554
+ const [A, i] = o, d = i.docx_mapping, u = d && d.type === "checkbox" && d.name === r, p = d && d.type === "checkbox" && d.true_name === r, g = d && d.type === "checkbox" && d.false_name === r, C = d && d.type === "radio" && d.mapping && d.mapping.find((O) => O.name === r), x = () => (u || p) && this.checkboxData[A] === !0, m = () => g && this.checkboxData[A] === !1, f = () => C && this.checkboxData[A] === C.value;
10546
10555
  return x() || m() || f() || !1;
10547
10556
  })() : this.checkboxData[r] || !1;
10548
10557
  })();
@@ -10565,7 +10574,7 @@ const Ql = ({
10565
10574
  onSaveRef: c,
10566
10575
  readonly: o = !1
10567
10576
  }) => {
10568
- const [A, i] = m1([]), [s, u] = m1(!0), [d, p] = m1(null), [g, C] = m1(0), x = c2(null), m = y1((I) => {
10577
+ const [A, i] = m1([]), [s, d] = m1(!0), [u, p] = m1(null), [g, C] = m1(0), x = c2(null), m = y1((I) => {
10569
10578
  const b = /\{([^}]+)\}/g, N = [];
10570
10579
  let T;
10571
10580
  for (; (T = b.exec(I)) !== null; )
@@ -10615,7 +10624,7 @@ const Ql = ({
10615
10624
  ge(() => {
10616
10625
  c && (c.current = k);
10617
10626
  }, [k, c]);
10618
- const M = y1(
10627
+ const P = y1(
10619
10628
  async (I) => {
10620
10629
  try {
10621
10630
  const N = await (await fetch(e)).arrayBuffer(), T = new x5(N), G = {};
@@ -10656,7 +10665,7 @@ const Ql = ({
10656
10665
  const G = document.createElement("span");
10657
10666
  G.className = "inline-field-container", G.setAttribute("data-field-path", I);
10658
10667
  const n1 = o, L = b || b1[I] || "", l1 = () => {
10659
- const d1 = N.type === "boolean" ? (() => {
10668
+ const u1 = N.type === "boolean" ? (() => {
10660
10669
  const Q = document.createElement("span");
10661
10670
  return Q.textContent = L === "true" || b1[I] === !0 ? "☑" : "☐", Q.className = "inline-checkbox-readonly", Q;
10662
10671
  })() : (() => {
@@ -10667,17 +10676,17 @@ const Ql = ({
10667
10676
  ), V1 = document.createElement("span");
10668
10677
  return V1.textContent = f1, V1.className = "inline-field-readonly", V1.style.whiteSpace = "pre-wrap", V1;
10669
10678
  })();
10670
- return G.appendChild(d1), G;
10679
+ return G.appendChild(u1), G;
10671
10680
  }, c1 = () => {
10672
10681
  const J = document.createElement("input");
10673
- return J.type = "checkbox", J.checked = b === "true" || b1[I] === !0, J.className = "inline-checkbox rounded border-gray-300 text-green-600 focus:ring-green-500", J.setAttribute("data-field-path", I), J.addEventListener("change", (d1) => {
10674
- f(I, d1.target.checked);
10682
+ return J.type = "checkbox", J.checked = b === "true" || b1[I] === !0, J.className = "inline-checkbox rounded border-gray-300 text-green-600 focus:ring-green-500", J.setAttribute("data-field-path", I), J.addEventListener("change", (u1) => {
10683
+ f(I, u1.target.checked);
10675
10684
  }), G.appendChild(J), G;
10676
10685
  }, E = () => {
10677
10686
  const J = document.createElement("select");
10678
10687
  J.className = "inline-select border border-gray-300 rounded px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-500", J.setAttribute("data-field-path", I);
10679
- const d1 = document.createElement("option");
10680
- return d1.value = "", d1.textContent = "Select...", J.appendChild(d1), N.enum.forEach((Q) => {
10688
+ const u1 = document.createElement("option");
10689
+ return u1.value = "", u1.textContent = "Select...", J.appendChild(u1), N.enum.forEach((Q) => {
10681
10690
  const f1 = document.createElement("option");
10682
10691
  f1.value = String(Q), f1.textContent = String(Q), f1.selected = b === Q || b1[I] === Q, J.appendChild(f1);
10683
10692
  }), J.addEventListener("change", (Q) => {
@@ -10685,15 +10694,15 @@ const Ql = ({
10685
10694
  }), G.appendChild(J), G;
10686
10695
  }, Y = () => {
10687
10696
  const J = document.createElement("input");
10688
- return J.type = N.format === "date" ? "date" : "datetime-local", J.value = String(b || b1[I] || ""), J.className = "inline-date-input text-sm focus:outline-none", J.setAttribute("data-field-path", I), J.style.width = "100%", J.style.maxWidth = "200px", J.placeholder = String(N.description || I), J.addEventListener("input", (d1) => {
10689
- f(I, d1.target.value);
10697
+ return J.type = N.format === "date" ? "date" : "datetime-local", J.value = String(b || b1[I] || ""), J.className = "inline-date-input text-sm focus:outline-none", J.setAttribute("data-field-path", I), J.style.width = "100%", J.style.maxWidth = "200px", J.placeholder = String(N.description || I), J.addEventListener("input", (u1) => {
10698
+ f(I, u1.target.value);
10690
10699
  }), G.appendChild(J), G;
10691
10700
  }, e1 = () => {
10692
- const J = "__NEWLINE__", d1 = String(
10701
+ const J = "__NEWLINE__", u1 = String(
10693
10702
  b || b1[I] || ""
10694
10703
  ).replace(new RegExp(J, "g"), `
10695
10704
  `), Q = document.createElement("textarea");
10696
- Q.value = d1, Q.className = "inline-textarea text-sm focus:outline-none resize-none", Q.setAttribute("data-field-path", I), Q.style.width = "100%", Q.style.minHeight = "17px", Q.style.overflow = "hidden", Q.placeholder = String(N.description || I), Q.rows = 1;
10705
+ Q.value = u1, Q.className = "inline-textarea text-sm focus:outline-none resize-none", Q.setAttribute("data-field-path", I), Q.style.width = "100%", Q.style.minHeight = "17px", Q.style.overflow = "hidden", Q.placeholder = String(N.description || I), Q.rows = 1;
10697
10706
  const f1 = () => {
10698
10707
  Q.style.height = "auto";
10699
10708
  const V1 = Q.value.includes(`
@@ -10733,10 +10742,10 @@ const Ql = ({
10733
10742
  document.createTextNode(c1.slice(e1, J))
10734
10743
  );
10735
10744
  const V1 = g1.startsWith("checkbox:") ? (() => {
10736
- const u1 = g1.replace("checkbox:", ""), q1 = Object.entries(r.properties || {}).find(([O1, M1]) => {
10745
+ const d1 = g1.replace("checkbox:", ""), q1 = Object.entries(r.properties || {}).find(([O1, M1]) => {
10737
10746
  const R1 = M1.docx_mapping;
10738
- return (R1 == null ? void 0 : R1.type) === "checkbox" && R1.true_name && R1.false_name && (R1.true_name === u1 || R1.false_name === u1);
10739
- }), [jr, We] = q1 || [], Te = We, Re = Te == null ? void 0 : Te.docx_mapping, Fe = !!q1, Ge = (Re == null ? void 0 : Re.true_name) === u1, fr = () => {
10747
+ return (R1 == null ? void 0 : R1.type) === "checkbox" && R1.true_name && R1.false_name && (R1.true_name === d1 || R1.false_name === d1);
10748
+ }), [jr, We] = q1 || [], Te = We, Re = Te == null ? void 0 : Te.docx_mapping, Fe = !!q1, Ge = (Re == null ? void 0 : Re.true_name) === d1, fr = () => {
10740
10749
  const O1 = document.createElement("span");
10741
10750
  return O1.textContent = z1, O1.className = "inline-checkbox-readonly", O1;
10742
10751
  }, xt = () => {
@@ -10745,14 +10754,14 @@ const Ql = ({
10745
10754
  const M1 = document.createElement("input");
10746
10755
  M1.type = "radio", M1.name = `radio-group-${jr}`, M1.value = Ge ? "true" : "false";
10747
10756
  const le = b[jr];
10748
- return M1.checked = Ge ? le === !0 || le === "true" : le === !1 || le === "false", M1.className = "text-green-600 focus:ring-green-500 border-gray-300", M1.setAttribute("data-field-path", u1), M1.addEventListener("change", (R1) => {
10749
- R1.target.checked && O(u1, !0);
10757
+ return M1.checked = Ge ? le === !0 || le === "true" : le === !1 || le === "false", M1.className = "text-green-600 focus:ring-green-500 border-gray-300", M1.setAttribute("data-field-path", d1), M1.addEventListener("change", (R1) => {
10758
+ R1.target.checked && O(d1, !0);
10750
10759
  }), O1.appendChild(M1), O1;
10751
10760
  }, Vr = () => {
10752
10761
  const O1 = document.createElement("input");
10753
- return O1.type = "checkbox", O1.checked = z1 === "☑", O1.className = "inline-checkbox rounded border-gray-300 text-green-600 focus:ring-green-500", O1.setAttribute("data-field-path", u1), O1.addEventListener("change", (M1) => {
10762
+ return O1.type = "checkbox", O1.checked = z1 === "☑", O1.className = "inline-checkbox rounded border-gray-300 text-green-600 focus:ring-green-500", O1.setAttribute("data-field-path", d1), O1.addEventListener("change", (M1) => {
10754
10763
  O(
10755
- u1,
10764
+ d1,
10756
10765
  M1.target.checked
10757
10766
  );
10758
10767
  }), O1;
@@ -10760,8 +10769,8 @@ const Ql = ({
10760
10769
  return Or() || mt() || jt();
10761
10770
  })() : (() => {
10762
10771
  var q1;
10763
- const u1 = ((q1 = r.properties) == null ? void 0 : q1[g1]) || {};
10764
- return v(g1, z1, u1, b);
10772
+ const d1 = ((q1 = r.properties) == null ? void 0 : q1[g1]) || {};
10773
+ return v(g1, z1, d1, b);
10765
10774
  })();
10766
10775
  return A1.appendChild(V1), e1 = J + P1.length, P1;
10767
10776
  }
@@ -10772,11 +10781,11 @@ const Ql = ({
10772
10781
  });
10773
10782
  },
10774
10783
  [r, v, O, o]
10775
- ), W = y1(
10784
+ ), U = y1(
10776
10785
  async (I) => {
10777
10786
  !!x.current && await (async () => {
10778
10787
  try {
10779
- const N = await M(I);
10788
+ const N = await P(I);
10780
10789
  for (; x.current.firstChild; )
10781
10790
  x.current.removeChild(x.current.firstChild);
10782
10791
  await f8.renderAsync(N, x.current, void 0, {
@@ -10811,10 +10820,10 @@ const Ql = ({
10811
10820
  }
10812
10821
  })();
10813
10822
  },
10814
- [M, h, H]
10815
- ), w = y1(async () => {
10823
+ [P, h, H]
10824
+ ), W = y1(async () => {
10816
10825
  try {
10817
- u(!0);
10826
+ d(!0);
10818
10827
  const b = await (await fetch(e)).arrayBuffer(), N = new x5(b), G = new C5(N).getFullText(), n1 = m(G);
10819
10828
  i(n1);
10820
10829
  const L = {};
@@ -10830,20 +10839,20 @@ const Ql = ({
10830
10839
  `Failed to load document: ${I instanceof Error ? I.message : "Unknown error"}`
10831
10840
  );
10832
10841
  } finally {
10833
- u(!1);
10842
+ d(!1);
10834
10843
  }
10835
10844
  }, [e, r, m, n]);
10836
10845
  ge(() => {
10837
- w();
10838
- }, [w]), ge(() => {
10839
- !s && Object.keys(b1).length > 0 && !!x.current && W(b1);
10840
- }, [s, W]), ge(() => {
10841
- g > 0 && !!x.current && W(b1);
10842
- }, [g, W]);
10843
- const U = () => /* @__PURE__ */ a.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ a.jsx("div", { className: "text-body", children: "Loading document..." }) }), Z = () => /* @__PURE__ */ a.jsxs("div", { className: "bg-red-50 border border-red-200 rounded-md p-4", children: [
10846
+ W();
10847
+ }, [W]), ge(() => {
10848
+ !s && Object.keys(b1).length > 0 && !!x.current && U(b1);
10849
+ }, [s, U]), ge(() => {
10850
+ g > 0 && !!x.current && U(b1);
10851
+ }, [g, U]);
10852
+ const w = () => /* @__PURE__ */ a.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ a.jsx("div", { className: "text-body", children: "Loading document..." }) }), Z = () => /* @__PURE__ */ a.jsxs("div", { className: "bg-red-50 border border-red-200 rounded-md p-4", children: [
10844
10853
  /* @__PURE__ */ a.jsx("div", { className: "text-red-800 text-body-em", children: "Error" }),
10845
- /* @__PURE__ */ a.jsx("div", { className: "text-red-700 text-body mt-1", children: d })
10846
- ] }), R = s, F = !s && !!d, t1 = () => R && /* @__PURE__ */ a.jsx(U, {}), X = () => F && /* @__PURE__ */ a.jsx(Z, {}), _ = () => !R && !F && /* @__PURE__ */ a.jsxs("div", { children: [
10854
+ /* @__PURE__ */ a.jsx("div", { className: "text-red-700 text-body mt-1", children: u })
10855
+ ] }), R = s, F = !s && !!u, t1 = () => R && /* @__PURE__ */ a.jsx(w, {}), X = () => F && /* @__PURE__ */ a.jsx(Z, {}), _ = () => !R && !F && /* @__PURE__ */ a.jsxs("div", { children: [
10847
10856
  /* @__PURE__ */ a.jsx("style", { children: `
10848
10857
  .inline-field-container {
10849
10858
  display: block;
@@ -11060,7 +11069,7 @@ const Ql = ({
11060
11069
  } },
11061
11070
  { id: "example-2", label: "Example two", onSelect: () => {
11062
11071
  } }
11063
- ], ir = "bg-[rgba(38,36,32,0.04)]", V0 = "bg-[rgba(38,36,32,0.08)]", Ee = "gap-2", _t = "gap-1", O0 = "box-border flex h-9 w-full items-center rounded-control p-2", ai = "box-border flex h-10 w-full items-center rounded-control p-2", $t = "relative box-border flex w-full flex-col items-center justify-center rounded-control p-2", ci = "pointer-events-none absolute left-0 top-0 size-6", oi = "absolute right-0 top-0 size-1.5 rounded-full bg-[#802c20]", y0 = "flex w-full min-w-0 items-center gap-2 pl-1", e2 = "shrink-0 [&>svg]:size-4", H0 = "min-w-0 flex-1 truncate text-caption-2 tracking-[0.01em]", Dr = "bg-transparent text-action-quaternary-on-idle hover:bg-[rgba(38,36,32,0.04)] hover:text-action-quaternary-on-hover disabled:bg-transparent disabled:opacity-50", Ai = "sidebar-scroll flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto", me = "transition-colors hover:bg-[rgba(38,36,32,0.04)] hover:text-display-on-light-primary", ii = "group/newchat transition-colors hover:bg-action-primary-hover hover:text-action-primary-on-hover", si = "group-hover/newchat:text-action-primary-on-hover", z0 = "text-display-on-light-secondary", li = V(ir, "text-display-on-light-primary"), k0 = V(V0, "text-display-on-light-primary"), di = "text-display-on-light-secondary", ui = V(ir, "text-display-on-light-primary"), pi = V(V0, "text-display-on-light-primary"), gi = "box-border flex h-9 w-full items-center gap-1 rounded-control px-2 py-1.5", Ci = "px-2 py-1.5", xi = "min-h-9", mi = "rounded-control", ji = (e) => V(
11072
+ ], ir = "bg-[rgba(38,36,32,0.04)]", V0 = "bg-[rgba(38,36,32,0.08)]", Ee = "gap-2", _t = "gap-1", O0 = "box-border flex h-9 w-full items-center rounded-control p-2", ai = "box-border flex h-10 w-full items-center rounded-control p-2", $t = "relative box-border flex w-full flex-col items-center justify-center rounded-control p-2", ci = "pointer-events-none absolute left-0 top-0 size-6", oi = "absolute right-0 top-0 size-1.5 rounded-full bg-[#802c20]", y0 = "flex w-full min-w-0 items-center gap-2 pl-1", e2 = "shrink-0 [&>svg]:size-4", H0 = "min-w-0 flex-1 truncate text-caption-2 tracking-[0.01em]", Dr = "bg-transparent text-action-quaternary-on-idle hover:bg-[rgba(38,36,32,0.04)] hover:text-action-quaternary-on-hover disabled:bg-transparent disabled:opacity-50", Ai = "sidebar-scroll flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto", me = "transition-colors hover:bg-[rgba(38,36,32,0.04)] hover:text-display-on-light-primary", ii = "group/newchat transition-colors hover:bg-action-primary-hover hover:text-action-primary-on-hover", si = "group-hover/newchat:text-action-primary-on-hover", z0 = "text-display-on-light-secondary", li = V(ir, "text-display-on-light-primary"), k0 = V(V0, "text-display-on-light-primary"), ui = "text-display-on-light-secondary", di = V(ir, "text-display-on-light-primary"), pi = V(V0, "text-display-on-light-primary"), gi = "box-border flex h-9 w-full items-center gap-1 rounded-control px-2 py-1.5", Ci = "px-2 py-1.5", xi = "min-h-9", mi = "rounded-control", ji = (e) => V(
11064
11073
  "group/row relative flex w-full items-center gap-1",
11065
11074
  Ci,
11066
11075
  xi,
@@ -11161,7 +11170,7 @@ const Ql = ({
11161
11170
  onToggleCollapsed: i,
11162
11171
  className: s
11163
11172
  }) => {
11164
- const u = /* @__PURE__ */ a.jsx(
11173
+ const d = /* @__PURE__ */ a.jsx(
11165
11174
  yi,
11166
11175
  {
11167
11176
  name: e,
@@ -11173,23 +11182,23 @@ const Ql = ({
11173
11182
  className: s
11174
11183
  }
11175
11184
  );
11176
- return o ? u : t && !c && n !== "hover" ? /* @__PURE__ */ a.jsx(ut, { content: e, side: "right", className: "w-full", children: u }) : t ? u : /* @__PURE__ */ a.jsx(F2, { side: "top", align: "start", trigger: u, children: A.map((d) => /* @__PURE__ */ a.jsxs(
11185
+ return o ? d : t && !c && n !== "hover" ? /* @__PURE__ */ a.jsx(dt, { content: e, side: "right", className: "w-full", children: d }) : t ? d : /* @__PURE__ */ a.jsx(F2, { side: "top", align: "start", trigger: d, children: A.map((u) => /* @__PURE__ */ a.jsxs(
11177
11186
  G2,
11178
11187
  {
11179
- className: V(d.destructive && "text-red-500 hover:bg-red-50 hover:text-red-700"),
11188
+ className: V(u.destructive && "text-red-500 hover:bg-red-50 hover:text-red-700"),
11180
11189
  onSelect: (p) => {
11181
- p.preventDefault(), d.onSelect();
11190
+ p.preventDefault(), u.onSelect();
11182
11191
  },
11183
11192
  children: [
11184
- d.icon && /* @__PURE__ */ a.jsx("span", { className: "shrink-0 [&>svg]:size-4", children: d.icon }),
11185
- d.label
11193
+ u.icon && /* @__PURE__ */ a.jsx("span", { className: "shrink-0 [&>svg]:size-4", children: u.icon }),
11194
+ u.label
11186
11195
  ]
11187
11196
  },
11188
- d.id
11197
+ u.id
11189
11198
  )) });
11190
11199
  }, Hi = {
11191
- idle: di,
11192
- hover: ui,
11200
+ idle: ui,
11201
+ hover: di,
11193
11202
  selected: pi
11194
11203
  }, sr = ({
11195
11204
  href: e,
@@ -11202,7 +11211,7 @@ const Ql = ({
11202
11211
  className: i,
11203
11212
  onNavigate: s
11204
11213
  }) => {
11205
- const [u, d] = m1(!1), p = !!(o != null && o.length), g = A || u;
11214
+ const [d, u] = m1(!1), p = !!(o != null && o.length), g = A || d;
11206
11215
  return /* @__PURE__ */ a.jsxs(
11207
11216
  "div",
11208
11217
  {
@@ -11238,8 +11247,8 @@ const Ql = ({
11238
11247
  p && /* @__PURE__ */ a.jsx(
11239
11248
  F2,
11240
11249
  {
11241
- open: u,
11242
- onOpenChange: d,
11250
+ open: d,
11251
+ onOpenChange: u,
11243
11252
  align: "end",
11244
11253
  trigger: /* @__PURE__ */ a.jsx(
11245
11254
  K1,
@@ -11248,12 +11257,12 @@ const Ql = ({
11248
11257
  size: "small",
11249
11258
  "aria-label": `Actions for ${r}`,
11250
11259
  "aria-haspopup": "menu",
11251
- "aria-expanded": u,
11260
+ "aria-expanded": d,
11252
11261
  className: V(
11253
11262
  "size-6 min-h-6 shrink-0 p-1",
11254
11263
  Dr,
11255
- !A && !u && "hidden group-hover/row:inline-flex",
11256
- (A || u) && "inline-flex"
11264
+ !A && !d && "hidden group-hover/row:inline-flex",
11265
+ (A || d) && "inline-flex"
11257
11266
  ),
11258
11267
  children: /* @__PURE__ */ a.jsx(p2, { size: "small" })
11259
11268
  }
@@ -11289,8 +11298,8 @@ const Ql = ({
11289
11298
  badge: A,
11290
11299
  trailing: i,
11291
11300
  tooltip: s,
11292
- presentation: u = !1,
11293
- unread: d = !1,
11301
+ presentation: d = !1,
11302
+ unread: u = !1,
11294
11303
  className: p,
11295
11304
  onNavigate: g
11296
11305
  }) => {
@@ -11315,7 +11324,7 @@ const Ql = ({
11315
11324
  onClick: g,
11316
11325
  children: /* @__PURE__ */ a.jsxs("span", { className: "relative inline-flex shrink-0 items-center", children: [
11317
11326
  t && /* @__PURE__ */ a.jsx("span", { className: e2, children: t }),
11318
- d && /* @__PURE__ */ a.jsx("span", { "aria-hidden": !0, className: ci, children: /* @__PURE__ */ a.jsx("span", { className: oi }) })
11327
+ u && /* @__PURE__ */ a.jsx("span", { "aria-hidden": !0, className: ci, children: /* @__PURE__ */ a.jsx("span", { className: oi }) })
11319
11328
  ] })
11320
11329
  }
11321
11330
  )
@@ -11350,7 +11359,7 @@ const Ql = ({
11350
11359
  ] })
11351
11360
  }
11352
11361
  );
11353
- return u || !c || !s ? C : /* @__PURE__ */ a.jsx(ut, { content: s ?? r, side: "right", className: "w-full", children: C });
11362
+ return d || !c || !s ? C : /* @__PURE__ */ a.jsx(dt, { content: s ?? r, side: "right", className: "w-full", children: C });
11354
11363
  }, ki = h1, bi = (e) => e === "status" ? /* @__PURE__ */ a.jsx(rr, { size: "small" }) : e === "statusClosed" ? /* @__PURE__ */ a.jsx(rr, { size: "small", variant: "closed" }) : e === "chatPro" ? /* @__PURE__ */ a.jsx(yn, { size: "small" }) : /* @__PURE__ */ a.jsx(Lr, { size: "small" }), a5 = ({
11355
11364
  href: e,
11356
11365
  chief: r,
@@ -11420,8 +11429,8 @@ const Ql = ({
11420
11429
  "aria-expanded": n,
11421
11430
  "aria-label": n ? `Collapse ${r}` : `Expand ${r}`,
11422
11431
  className: V("size-6 shrink-0 p-1", Dr),
11423
- onClick: (u) => {
11424
- u.preventDefault(), u.stopPropagation(), c(!n);
11432
+ onClick: (d) => {
11433
+ d.preventDefault(), d.stopPropagation(), c(!n);
11425
11434
  },
11426
11435
  children: /* @__PURE__ */ a.jsx(
11427
11436
  H1,
@@ -11444,22 +11453,22 @@ const Ql = ({
11444
11453
  "grid transition-[grid-template-rows,opacity] duration-200 ease-in-out",
11445
11454
  n ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"
11446
11455
  ),
11447
- children: /* @__PURE__ */ a.jsx("div", { className: V("flex min-h-0 flex-col overflow-hidden", _t), children: o.map((u) => /* @__PURE__ */ a.jsx(
11456
+ children: /* @__PURE__ */ a.jsx("div", { className: V("flex min-h-0 flex-col overflow-hidden", _t), children: o.map((d) => /* @__PURE__ */ a.jsx(
11448
11457
  sr,
11449
11458
  {
11450
- href: u.href ?? `#${u.id}`,
11451
- label: u.name,
11459
+ href: d.href ?? `#${d.id}`,
11460
+ label: d.name,
11452
11461
  icon: /* @__PURE__ */ a.jsx(Ke, { size: "small", className: "text-display-on-light-primary" }),
11453
- badge: u.count ? /* @__PURE__ */ a.jsx(
11462
+ badge: d.count ? /* @__PURE__ */ a.jsx(
11454
11463
  pt,
11455
11464
  {
11456
- value: u.count,
11465
+ value: d.count,
11457
11466
  className: "min-h-5 min-w-5 bg-red-600 px-0.5 py-0.5 text-[13px] font-medium leading-4 tracking-[0.02em] text-white"
11458
11467
  }
11459
11468
  ) : void 0,
11460
11469
  menuItems: s
11461
11470
  },
11462
- u.id
11471
+ d.id
11463
11472
  )) })
11464
11473
  }
11465
11474
  )
@@ -11525,7 +11534,7 @@ const Ql = ({
11525
11534
  ] })
11526
11535
  }
11527
11536
  );
11528
- return n || !r ? i : /* @__PURE__ */ a.jsx(ut, { content: "New chat", side: "right", className: "w-full", children: i });
11537
+ return n || !r ? i : /* @__PURE__ */ a.jsx(dt, { content: "New chat", side: "right", className: "w-full", children: i });
11529
11538
  }, Ki = ({
11530
11539
  label: e,
11531
11540
  icon: r,
@@ -11561,7 +11570,7 @@ const Ql = ({
11561
11570
  )
11562
11571
  }
11563
11572
  );
11564
- return !c || !o ? i : /* @__PURE__ */ a.jsx(ut, { content: o ?? e, side: "right", className: "w-full", children: i });
11573
+ return !c || !o ? i : /* @__PURE__ */ a.jsx(dt, { content: o ?? e, side: "right", className: "w-full", children: i });
11565
11574
  }, Ni = [
11566
11575
  "search",
11567
11576
  "workflows",
@@ -11689,9 +11698,9 @@ const Ql = ({
11689
11698
  }
11690
11699
  ), Sr = (e) => `#${e.replace(/([A-Z])/g, "-$1").toLowerCase()}`, Y1 = {
11691
11700
  search: /* @__PURE__ */ a.jsx(Zr, { size: "small", className: "text-display-on-light-primary" }),
11692
- workflows: /* @__PURE__ */ a.jsx(dr, { size: "small", className: "text-display-on-light-primary" }),
11701
+ workflows: /* @__PURE__ */ a.jsx(ur, { size: "small", className: "text-display-on-light-primary" }),
11693
11702
  analytics: /* @__PURE__ */ a.jsx(i2, { size: "small", className: "text-display-on-light-primary" }),
11694
- forms: /* @__PURE__ */ a.jsx(ur, { size: "small", className: "text-display-on-light-primary" }),
11703
+ forms: /* @__PURE__ */ a.jsx(dr, { size: "small", className: "text-display-on-light-primary" }),
11695
11704
  ships: /* @__PURE__ */ a.jsx(Ke, { size: "small", className: "text-display-on-light-primary" }),
11696
11705
  defectReports: /* @__PURE__ */ a.jsx(m2, { size: "small", className: "text-display-on-light-primary" }),
11697
11706
  tasks: /* @__PURE__ */ a.jsx(C2, { size: "small", className: "text-display-on-light-primary" }),
@@ -11699,9 +11708,9 @@ const Ql = ({
11699
11708
  activity: /* @__PURE__ */ a.jsx(Er, { size: "small", className: "text-display-on-light-tertiary" })
11700
11709
  }, wi = {
11701
11710
  search: /* @__PURE__ */ a.jsx(Zr, { size: "small" }),
11702
- workflows: /* @__PURE__ */ a.jsx(dr, { size: "small" }),
11711
+ workflows: /* @__PURE__ */ a.jsx(ur, { size: "small" }),
11703
11712
  analytics: /* @__PURE__ */ a.jsx(i2, { size: "small" }),
11704
- forms: /* @__PURE__ */ a.jsx(ur, { size: "small" }),
11713
+ forms: /* @__PURE__ */ a.jsx(dr, { size: "small" }),
11705
11714
  ships: /* @__PURE__ */ a.jsx(Ke, { size: "small" }),
11706
11715
  defectReports: /* @__PURE__ */ a.jsx(m2, { size: "small" }),
11707
11716
  tasks: /* @__PURE__ */ a.jsx(C2, { size: "small" }),
@@ -11797,7 +11806,7 @@ const Ql = ({
11797
11806
  presentation: o = !1,
11798
11807
  className: A
11799
11808
  }) => {
11800
- const [i, s] = m1(!1), [u, d] = m1(n), [p, g] = m1(t), [C, x] = m1(e), m = hi(C), f = o ? n : u, O = o ? t : p, y = o ? e : C, z = o ? void 0 : [...ni], H = {
11809
+ const [i, s] = m1(!1), [d, u] = m1(n), [p, g] = m1(t), [C, x] = m1(e), m = hi(C), f = o ? n : d, O = o ? t : p, y = o ? e : C, z = o ? void 0 : [...ni], H = {
11801
11810
  chief: y,
11802
11811
  activity: r,
11803
11812
  shipsExpanded: O,
@@ -11805,27 +11814,27 @@ const Ql = ({
11805
11814
  presentation: o,
11806
11815
  showSearch: c,
11807
11816
  entryMenuItems: z
11808
- }, k = (W) => {
11809
- W.preventDefault();
11810
- }, M = (W) => {
11811
- o || !f || W.target.closest('button, a, [role="button"], [role="menuitem"]') !== null || d(!1);
11812
- }, v = () => (o ? m.collapsedItems : m.collapsedItems.filter(({ id: w }) => w === "activity" ? r : w === "ships" ? !0 : c || w !== "search")).map(({ id: w, unread: U }) => /* @__PURE__ */ a.jsx(
11817
+ }, k = (U) => {
11818
+ U.preventDefault();
11819
+ }, P = (U) => {
11820
+ o || !f || U.target.closest('button, a, [role="button"], [role="menuitem"]') !== null || u(!1);
11821
+ }, v = () => (o ? m.collapsedItems : m.collapsedItems.filter(({ id: W }) => W === "activity" ? r : W === "ships" ? !0 : c || W !== "search")).map(({ id: W, unread: w }) => /* @__PURE__ */ a.jsx(
11813
11822
  h1,
11814
11823
  {
11815
- href: Sr(w),
11816
- label: r2[w],
11817
- icon: wi[w],
11824
+ href: Sr(W),
11825
+ label: r2[W],
11826
+ icon: wi[W],
11818
11827
  collapsed: !0,
11819
- unread: U,
11828
+ unread: w,
11820
11829
  presentation: o,
11821
- tooltip: o ? void 0 : r2[w],
11830
+ tooltip: o ? void 0 : r2[W],
11822
11831
  onNavigate: k
11823
11832
  },
11824
- w
11833
+ W
11825
11834
  )), h = () => o ? m.expandedItems.map(
11826
- (W) => sn(W, H, k)
11835
+ (U) => sn(U, H, k)
11827
11836
  ) : e === "compliance" ? m.expandedItems.map(
11828
- (W) => sn(W, H, k)
11837
+ (U) => sn(U, H, k)
11829
11838
  ) : Wi(H, k);
11830
11839
  return /* @__PURE__ */ a.jsx(
11831
11840
  "aside",
@@ -11880,7 +11889,7 @@ const Ql = ({
11880
11889
  "flex min-h-0 flex-1 flex-col",
11881
11890
  !o && "cursor-col-resize"
11882
11891
  ),
11883
- onClick: M,
11892
+ onClick: P,
11884
11893
  children: [
11885
11894
  /* @__PURE__ */ a.jsx("div", { className: V("flex w-full flex-col", Ee), children: v() }),
11886
11895
  /* @__PURE__ */ a.jsx("div", { className: "min-h-0 flex-1", "aria-hidden": !0 })
@@ -11896,7 +11905,7 @@ const Ql = ({
11896
11905
  collapsed: f,
11897
11906
  sidebarHovered: i,
11898
11907
  presentation: o,
11899
- onToggleCollapsed: o ? void 0 : () => d((W) => !W)
11908
+ onToggleCollapsed: o ? void 0 : () => u((U) => !U)
11900
11909
  }
11901
11910
  ) })
11902
11911
  ] })
@@ -12226,12 +12235,12 @@ const Ql = ({
12226
12235
  ]
12227
12236
  }
12228
12237
  ), $i = {
12229
- issue: { icon: /* @__PURE__ */ a.jsx(u2, { className: "size-5" }), defaultTitle: "Issue details" },
12238
+ issue: { icon: /* @__PURE__ */ a.jsx(d2, { className: "size-5" }), defaultTitle: "Issue details" },
12230
12239
  thinking: { icon: /* @__PURE__ */ a.jsx(wa, {}), defaultTitle: "Chief is thinking" },
12231
12240
  generic: { icon: /* @__PURE__ */ a.jsx(bn, { className: "size-5" }), defaultTitle: "Information" },
12232
12241
  settings: { icon: /* @__PURE__ */ a.jsx(kn, { className: "size-5" }), defaultTitle: "Settings" },
12233
- audit: { icon: /* @__PURE__ */ a.jsx(d2, { className: "size-5" }), defaultTitle: "Audit trail" },
12234
- forms: { icon: /* @__PURE__ */ a.jsx(ur, { className: "size-5" }), defaultTitle: "Forms" }
12242
+ audit: { icon: /* @__PURE__ */ a.jsx(u2, { className: "size-5" }), defaultTitle: "Audit trail" },
12243
+ forms: { icon: /* @__PURE__ */ a.jsx(dr, { className: "size-5" }), defaultTitle: "Forms" }
12235
12244
  }, es = ({
12236
12245
  variant: e = "generic",
12237
12246
  title: r,
@@ -12385,7 +12394,7 @@ const Ql = ({
12385
12394
  children: o,
12386
12395
  ...A
12387
12396
  }) => /* @__PURE__ */ a.jsx(ZA, { ...A, children: /* @__PURE__ */ a.jsxs(
12388
- u0,
12397
+ d0,
12389
12398
  {
12390
12399
  showOverlay: n,
12391
12400
  overlayClassName: c,
@@ -12513,11 +12522,11 @@ const Ql = ({
12513
12522
  resultItems: i,
12514
12523
  className: s
12515
12524
  }) => {
12516
- const u = (d) => {
12517
- t == null || t(d.target.value);
12525
+ const d = (u) => {
12526
+ t == null || t(u.target.value);
12518
12527
  };
12519
12528
  return /* @__PURE__ */ a.jsxs("div", { className: V("flex min-h-0 flex-1 flex-col", s), "data-state": e, children: [
12520
- /* @__PURE__ */ a.jsx(Z0, { value: r, onChange: u }),
12529
+ /* @__PURE__ */ a.jsx(Z0, { value: r, onChange: d }),
12521
12530
  /* @__PURE__ */ a.jsx(Y0, {}),
12522
12531
  /* @__PURE__ */ a.jsxs(L0, { className: e === "loading" ? "p-0" : void 0, children: [
12523
12532
  e === "idle" && /* @__PURE__ */ a.jsx(Q0, { items: A }),
@@ -12527,7 +12536,7 @@ const Ql = ({
12527
12536
  {
12528
12537
  tabs: o,
12529
12538
  value: n,
12530
- onValueChange: (d) => c == null ? void 0 : c(d),
12539
+ onValueChange: (u) => c == null ? void 0 : c(u),
12531
12540
  children: /* @__PURE__ */ a.jsx(o5, { items: i })
12532
12541
  }
12533
12542
  )
@@ -12589,7 +12598,7 @@ const Ql = ({
12589
12598
  }, Symbol.toStringTag, { value: "Module" })), ls = {
12590
12599
  idle: "bg-transparent",
12591
12600
  hover: "bg-background-secondary"
12592
- }, ds = ({
12601
+ }, us = ({
12593
12602
  name: e = "Ship name",
12594
12603
  chatCount: r = 17,
12595
12604
  issueCount: t = 12,
@@ -12651,7 +12660,7 @@ const Ql = ({
12651
12660
  t === "off" && c && /* @__PURE__ */ a.jsx("div", { className: "mt-3 pl-6", children: c })
12652
12661
  ] })
12653
12662
  }
12654
- ), us = {
12663
+ ), ds = {
12655
12664
  off: "bg-transparent",
12656
12665
  on: "bg-background-secondary"
12657
12666
  }, qr = ({
@@ -12667,7 +12676,7 @@ const Ql = ({
12667
12676
  {
12668
12677
  className: V(
12669
12678
  "flex w-full items-center gap-2 rounded-control px-2 py-1 transition-colors",
12670
- us[t],
12679
+ ds[t],
12671
12680
  t === "off" && "hover:bg-background-secondary",
12672
12681
  c
12673
12682
  ),
@@ -12889,7 +12898,7 @@ const Ql = ({
12889
12898
  c
12890
12899
  ),
12891
12900
  children: [
12892
- /* @__PURE__ */ a.jsx("span", { className: "flex size-[46px] shrink-0 items-center justify-center rounded-control bg-background-secondary text-display-on-light-primary", children: n ?? /* @__PURE__ */ a.jsx(dr, { size: "large" }) }),
12901
+ /* @__PURE__ */ a.jsx("span", { className: "flex size-[46px] shrink-0 items-center justify-center rounded-control bg-background-secondary text-display-on-light-primary", children: n ?? /* @__PURE__ */ a.jsx(ur, { size: "large" }) }),
12893
12902
  /* @__PURE__ */ a.jsxs("div", { className: "min-w-0 flex-1", children: [
12894
12903
  /* @__PURE__ */ a.jsx("p", { className: "text-body-em text-display-on-light-primary", children: e }),
12895
12904
  /* @__PURE__ */ a.jsx("p", { className: "text-caption-2 text-display-on-light-secondary", children: r })
@@ -12954,7 +12963,7 @@ const Ql = ({
12954
12963
  o
12955
12964
  ),
12956
12965
  children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-start gap-4", children: [
12957
- /* @__PURE__ */ a.jsx("span", { className: "flex size-[46px] shrink-0 items-center justify-center rounded-control bg-background-secondary", children: /* @__PURE__ */ a.jsx(dr, { size: "large" }) }),
12966
+ /* @__PURE__ */ a.jsx("span", { className: "flex size-[46px] shrink-0 items-center justify-center rounded-control bg-background-secondary", children: /* @__PURE__ */ a.jsx(ur, { size: "large" }) }),
12958
12967
  /* @__PURE__ */ a.jsxs("div", { className: "min-w-0 flex-1", children: [
12959
12968
  /* @__PURE__ */ a.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
12960
12969
  /* @__PURE__ */ a.jsx("h3", { className: "text-body-em text-display-on-light-primary", children: A }),
@@ -13358,7 +13367,7 @@ const Ql = ({
13358
13367
  ),
13359
13368
  children: [
13360
13369
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-4 p-4", children: [
13361
- /* @__PURE__ */ a.jsx("span", { className: "flex size-[46px] shrink-0 items-center justify-center rounded-control bg-background-secondary", children: o ?? /* @__PURE__ */ a.jsx(ur, { size: "large" }) }),
13370
+ /* @__PURE__ */ a.jsx("span", { className: "flex size-[46px] shrink-0 items-center justify-center rounded-control bg-background-secondary", children: o ?? /* @__PURE__ */ a.jsx(dr, { size: "large" }) }),
13362
13371
  /* @__PURE__ */ a.jsxs("div", { className: "min-w-0 flex-1", children: [
13363
13372
  /* @__PURE__ */ a.jsx("p", { className: "text-body-em text-display-on-light-primary", children: e }),
13364
13373
  /* @__PURE__ */ a.jsx("p", { className: "text-caption-2 text-display-on-light-secondary", children: r })
@@ -13655,7 +13664,7 @@ const Ql = ({
13655
13664
  RiskMeter: _s,
13656
13665
  SectionHeader: _0,
13657
13666
  SettingRow: xs,
13658
- ShipRow: ds,
13667
+ ShipRow: us,
13659
13668
  StatusPopover: Ws,
13660
13669
  Task: Is,
13661
13670
  TaskHeader: Ns,
@@ -13703,7 +13712,7 @@ export {
13703
13712
  s2 as DocumentIcon,
13704
13713
  _l as Domain,
13705
13714
  er as DoneIcon,
13706
- u9 as DownloadIcon,
13715
+ d9 as DownloadIcon,
13707
13716
  F2 as DropdownMenu,
13708
13717
  G2 as DropdownMenuItem,
13709
13718
  Ol as DropdownMenuSeparator,
@@ -13716,7 +13725,7 @@ export {
13716
13725
  In as FolderIcon,
13717
13726
  H9 as FolderStarredIcon,
13718
13727
  x2 as FormIcon,
13719
- ur as FormsIcon,
13728
+ dr as FormsIcon,
13720
13729
  P9 as GapIcon,
13721
13730
  sa as GroupedAvatars,
13722
13731
  Dl as Header,
@@ -13732,22 +13741,22 @@ export {
13732
13741
  Ul as InternalAuditIllustration,
13733
13742
  zn as InviteIcon,
13734
13743
  Pl as InviteIllustration,
13735
- u2 as IssuesIcon,
13744
+ d2 as IssuesIcon,
13736
13745
  z9 as LocationIcon,
13737
13746
  j9 as LogOutIcon,
13738
13747
  D2 as Logo,
13739
13748
  V9 as MentionIcon,
13740
- d9 as MenuIcon,
13749
+ u9 as MenuIcon,
13741
13750
  Wt as MenuItem,
13742
13751
  t9 as MicrophoneIcon,
13743
13752
  Br as MinusIcon,
13744
13753
  ZA as Modal,
13745
13754
  LA as ModalBody,
13746
13755
  Zl as ModalClose,
13747
- u0 as ModalContent,
13756
+ d0 as ModalContent,
13748
13757
  g0 as ModalDescription,
13749
13758
  Yl as ModalHeaderSlot,
13750
- d0 as ModalOverlay,
13759
+ u0 as ModalOverlay,
13751
13760
  C0 as ModalPanel,
13752
13761
  YA as ModalPortal,
13753
13762
  p0 as ModalTitle,
@@ -13765,7 +13774,7 @@ export {
13765
13774
  hl as QuestionsDoneIllustration,
13766
13775
  l9 as RefreshIcon,
13767
13776
  v9 as ReportActionsIcon,
13768
- d2 as ReportIcon,
13777
+ u2 as ReportIcon,
13769
13778
  Wl as ReportInput,
13770
13779
  ql as RightShipInspectionIllustration,
13771
13780
  Zr as SearchIcon,
@@ -13788,7 +13797,7 @@ export {
13788
13797
  C2 as TasksIcon,
13789
13798
  wa as ThinkingDot,
13790
13799
  Qr as TickIcon,
13791
- ut as Tooltip,
13800
+ dt as Tooltip,
13792
13801
  yl as TooltipProvider,
13793
13802
  c9 as TrashIcon,
13794
13803
  b9 as UndoIcon,
@@ -13796,27 +13805,27 @@ export {
13796
13805
  bl as UploadIllustration,
13797
13806
  k9 as UsersIcon,
13798
13807
  Kl as WorkflowCreatedIllustration,
13799
- dr as WorkflowIcon,
13808
+ ur as WorkflowIcon,
13800
13809
  kl as WorkflowsIllustration,
13801
- rd as blue,
13802
- td as borderRadius,
13803
- nd as colorScales,
13810
+ ru as blue,
13811
+ tu as borderRadius,
13812
+ nu as colorScales,
13804
13813
  q as createIcon,
13805
13814
  T1 as createIllustration,
13806
- ad as elevation,
13815
+ au as elevation,
13807
13816
  gl as fontFamilies,
13808
13817
  Cl as fontSizes,
13809
13818
  jl as getFilledSizes,
13810
13819
  ml as getOutlineSizes,
13811
- cd as green,
13812
- od as grey,
13820
+ cu as green,
13821
+ ou as grey,
13813
13822
  fl as hasIconSize,
13814
13823
  K9 as iconRegistry,
13815
13824
  K as iconsData,
13816
- Ad as orange,
13817
- id as purple,
13818
- sd as red,
13825
+ Au as orange,
13826
+ iu as purple,
13827
+ su as red,
13819
13828
  pl as semanticTokens,
13820
- ld as tailwindTheme,
13821
- dd as white
13829
+ lu as tailwindTheme,
13830
+ uu as white
13822
13831
  };