@choc-ui/chakra-autocomplete 5.6.0 → 5.6.2

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/README.md CHANGED
@@ -1173,6 +1173,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
1173
1173
  <tr>
1174
1174
  <td align="center"><a href="https://github.com/chrisregner"><img src="https://avatars.githubusercontent.com/u/26005158?v=4" width="100px;" alt=""/><br /><sub><b>Christopher Regner</b></sub></a><br /><a href="https://github.com/anubra266/choc-autocomplete/commits?author=chrisregner" title="Code">📖🐛</a></td>
1175
1175
  <td align="center"><a href="https://github.com/EinarSnorrason"><img src="https://avatars.githubusercontent.com/u/31321506?v=4" width="100px;" alt=""/><br /><sub><b>EinarSnorrason</b></sub></a><br /><a href="https://github.com/anubra266/choc-autocomplete/commits?author=EinarSnorrason" title="Code">💻🐛🔧</a></td>
1176
+ <td align="center"><a href="https://github.com/gbermudez1992"><img src="https://avatars.githubusercontent.com/u/84212735?v=4" width="100px;" alt=""/><br /><sub><b>gbermudez1992</b></sub></a><br /><a href="https://github.com/anubra266/choc-autocomplete/commits?author=gbermudez1992" title="Code">💻🐛🔧</a></td>
1176
1177
  </tr>
1177
1178
  </table>
1178
1179
 
package/dist/index.es.js CHANGED
@@ -62,10 +62,10 @@ function $o() {
62
62
  {
63
63
  for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), x = 1; x < p; x++)
64
64
  m[x - 1] = arguments[x];
65
- se("error", n, m);
65
+ le("error", n, m);
66
66
  }
67
67
  }
68
- function se(n, p, m) {
68
+ function le(n, p, m) {
69
69
  {
70
70
  var x = W.ReactDebugCurrentFrame, $ = x.getStackAddendum();
71
71
  $ !== "" && (p += "%s", m = m.concat([$]));
@@ -77,7 +77,7 @@ function $o() {
77
77
  }
78
78
  var De = !1, cr = !1, ur = !1, Qe = !1, Te = !1, Be;
79
79
  Be = Symbol.for("react.module.reference");
80
- function de(n) {
80
+ function fe(n) {
81
81
  return !!(typeof n == "string" || typeof n == "function" || n === a || n === u || Te || n === l || n === h || n === v || Qe || n === T || De || cr || ur || typeof n == "object" && n !== null && (n.$$typeof === _ || n.$$typeof === S || n.$$typeof === d || n.$$typeof === f || n.$$typeof === g || // This needs to include all possible module reference object
82
82
  // types supported by any Flight configuration anywhere since
83
83
  // we don't know which Flight build this will end up being used
@@ -94,7 +94,7 @@ function $o() {
94
94
  function Re(n) {
95
95
  return n.displayName || "Context";
96
96
  }
97
- function le(n) {
97
+ function ce(n) {
98
98
  if (n == null)
99
99
  return null;
100
100
  if (typeof n.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
@@ -127,11 +127,11 @@ function $o() {
127
127
  return we(n, n.render, "ForwardRef");
128
128
  case S:
129
129
  var x = n.displayName || null;
130
- return x !== null ? x : le(n.type) || "Memo";
130
+ return x !== null ? x : ce(n.type) || "Memo";
131
131
  case _: {
132
132
  var $ = n, D = $._payload, E = $._init;
133
133
  try {
134
- return le(E(D));
134
+ return ce(E(D));
135
135
  } catch {
136
136
  return null;
137
137
  }
@@ -201,18 +201,18 @@ function $o() {
201
201
  ee < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
202
202
  }
203
203
  }
204
- var V = W.ReactCurrentDispatcher, ce;
204
+ var V = W.ReactCurrentDispatcher, ue;
205
205
  function he(n, p, m) {
206
206
  {
207
- if (ce === void 0)
207
+ if (ue === void 0)
208
208
  try {
209
209
  throw Error();
210
210
  } catch ($) {
211
211
  var x = $.stack.trim().match(/\n( *(at )?)/);
212
- ce = x && x[1] || "";
212
+ ue = x && x[1] || "";
213
213
  }
214
214
  return `
215
- ` + ce + n;
215
+ ` + ue + n;
216
216
  }
217
217
  }
218
218
  var ve = !1, oe;
@@ -246,37 +246,37 @@ function $o() {
246
246
  }), typeof Reflect == "object" && Reflect.construct) {
247
247
  try {
248
248
  Reflect.construct(E, []);
249
- } catch (ue) {
250
- x = ue;
249
+ } catch (de) {
250
+ x = de;
251
251
  }
252
252
  Reflect.construct(n, [], E);
253
253
  } else {
254
254
  try {
255
255
  E.call();
256
- } catch (ue) {
257
- x = ue;
256
+ } catch (de) {
257
+ x = de;
258
258
  }
259
259
  n.call(E.prototype);
260
260
  }
261
261
  } else {
262
262
  try {
263
263
  throw Error();
264
- } catch (ue) {
265
- x = ue;
264
+ } catch (de) {
265
+ x = de;
266
266
  }
267
267
  n();
268
268
  }
269
- } catch (ue) {
270
- if (ue && x && typeof ue.stack == "string") {
271
- for (var C = ue.stack.split(`
272
- `), ae = x.stack.split(`
273
- `), K = C.length - 1, U = ae.length - 1; K >= 1 && U >= 0 && C[K] !== ae[U]; )
269
+ } catch (de) {
270
+ if (de && x && typeof de.stack == "string") {
271
+ for (var C = de.stack.split(`
272
+ `), ie = x.stack.split(`
273
+ `), K = C.length - 1, U = ie.length - 1; K >= 1 && U >= 0 && C[K] !== ie[U]; )
274
274
  U--;
275
275
  for (; K >= 1 && U >= 0; K--, U--)
276
- if (C[K] !== ae[U]) {
276
+ if (C[K] !== ie[U]) {
277
277
  if (K !== 1 || U !== 1)
278
278
  do
279
- if (K--, U--, U < 0 || C[K] !== ae[U]) {
279
+ if (K--, U--, U < 0 || C[K] !== ie[U]) {
280
280
  var me = `
281
281
  ` + C[K].replace(" at new ", " at ");
282
282
  return n.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", n.displayName)), typeof n == "function" && oe.set(n, me), me;
@@ -298,7 +298,7 @@ function $o() {
298
298
  var p = n.prototype;
299
299
  return !!(p && p.isReactComponent);
300
300
  }
301
- function fe(n, p, m) {
301
+ function ae(n, p, m) {
302
302
  if (n == null)
303
303
  return "";
304
304
  if (typeof n == "function")
@@ -316,11 +316,11 @@ function $o() {
316
316
  case g:
317
317
  return pr(n.render);
318
318
  case S:
319
- return fe(n.type, p, m);
319
+ return ae(n.type, p, m);
320
320
  case _: {
321
321
  var x = n, $ = x._payload, D = x._init;
322
322
  try {
323
- return fe(D($), p, m);
323
+ return ae(D($), p, m);
324
324
  } catch {
325
325
  }
326
326
  }
@@ -330,7 +330,7 @@ function $o() {
330
330
  var Ee = Object.prototype.hasOwnProperty, hr = {}, er = W.ReactDebugCurrentFrame;
331
331
  function Ve(n) {
332
332
  if (n) {
333
- var p = n._owner, m = fe(n.type, n._source, p ? p.type : null);
333
+ var p = n._owner, m = ae(n.type, n._source, p ? p.type : null);
334
334
  er.setExtraStackFrame(m);
335
335
  } else
336
336
  er.setExtraStackFrame(null);
@@ -343,8 +343,8 @@ function $o() {
343
343
  var C = void 0;
344
344
  try {
345
345
  if (typeof n[E] != "function") {
346
- var ae = Error((x || "React class") + ": " + m + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
347
- throw ae.name = "Invariant Violation", ae;
346
+ var ie = Error((x || "React class") + ": " + m + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
347
+ throw ie.name = "Invariant Violation", ie;
348
348
  }
349
349
  C = n[E](p, E, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
350
350
  } catch (K) {
@@ -403,8 +403,8 @@ function $o() {
403
403
  }
404
404
  function be(n, p) {
405
405
  if (typeof n.ref == "string" && b.current && p && b.current.stateNode !== p) {
406
- var m = le(b.current.type);
407
- te[m] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', le(b.current.type), n.ref), te[m] = !0);
406
+ var m = ce(b.current.type);
407
+ te[m] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ce(b.current.type), n.ref), te[m] = !0);
408
408
  }
409
409
  }
410
410
  function I(n, p) {
@@ -460,8 +460,8 @@ function $o() {
460
460
  };
461
461
  function Se(n, p, m, x, $) {
462
462
  {
463
- var D, E = {}, C = null, ae = null;
464
- m !== void 0 && (mr(m), C = "" + m), He(p) && (mr(p.key), C = "" + p.key), ne(p) && (ae = p.ref, be(p, $));
463
+ var D, E = {}, C = null, ie = null;
464
+ m !== void 0 && (mr(m), C = "" + m), He(p) && (mr(p.key), C = "" + p.key), ne(p) && (ie = p.ref, be(p, $));
465
465
  for (D in p)
466
466
  Ee.call(p, D) && !w.hasOwnProperty(D) && (E[D] = p[D]);
467
467
  if (n && n.defaultProps) {
@@ -469,17 +469,17 @@ function $o() {
469
469
  for (D in K)
470
470
  E[D] === void 0 && (E[D] = K[D]);
471
471
  }
472
- if (C || ae) {
472
+ if (C || ie) {
473
473
  var U = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
474
- C && I(E, U), ae && Q(E, U);
474
+ C && I(E, U), ie && Q(E, U);
475
475
  }
476
- return H(n, C, ae, $, x, b.current, E);
476
+ return H(n, C, ie, $, x, b.current, E);
477
477
  }
478
478
  }
479
479
  var We = W.ReactCurrentOwner, Ue = W.ReactDebugCurrentFrame;
480
480
  function N(n) {
481
481
  if (n) {
482
- var p = n._owner, m = fe(n.type, n._source, p ? p.type : null);
482
+ var p = n._owner, m = ae(n.type, n._source, p ? p.type : null);
483
483
  Ue.setExtraStackFrame(m);
484
484
  } else
485
485
  Ue.setExtraStackFrame(null);
@@ -492,7 +492,7 @@ function $o() {
492
492
  function nr() {
493
493
  {
494
494
  if (We.current) {
495
- var n = le(We.current.type);
495
+ var n = ce(We.current.type);
496
496
  if (n)
497
497
  return `
498
498
 
@@ -527,7 +527,7 @@ Check the top-level render call using <` + m + ">.");
527
527
  return;
528
528
  Fe[m] = !0;
529
529
  var x = "";
530
- n && n._owner && n._owner !== We.current && (x = " It was passed a child from " + le(n._owner.type) + "."), N(n), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), N(null);
530
+ n && n._owner && n._owner !== We.current && (x = " It was passed a child from " + ce(n._owner.type) + "."), N(n), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), N(null);
531
531
  }
532
532
  }
533
533
  function _e(n, p) {
@@ -564,11 +564,11 @@ Check the top-level render call using <` + m + ">.");
564
564
  else
565
565
  return;
566
566
  if (m) {
567
- var x = le(p);
567
+ var x = ce(p);
568
568
  rr(m, n.props, "prop", x, n);
569
569
  } else if (p.PropTypes !== void 0 && !Xe) {
570
570
  Xe = !0;
571
- var $ = le(p);
571
+ var $ = ce(p);
572
572
  R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
573
573
  }
574
574
  typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -589,14 +589,14 @@ Check the top-level render call using <` + m + ">.");
589
589
  var Wr = {};
590
590
  function Fr(n, p, m, x, $, D) {
591
591
  {
592
- var E = de(n);
592
+ var E = fe(n);
593
593
  if (!E) {
594
594
  var C = "";
595
595
  (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
596
- var ae = Tr();
597
- ae ? C += ae : C += nr();
596
+ var ie = Tr();
597
+ ie ? C += ie : C += nr();
598
598
  var K;
599
- n === null ? K = "null" : Ye(n) ? K = "array" : n !== void 0 && n.$$typeof === r ? (K = "<" + (le(n.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : K = typeof n, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, C);
599
+ n === null ? K = "null" : Ye(n) ? K = "array" : n !== void 0 && n.$$typeof === r ? (K = "<" + (ce(n.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : K = typeof n, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, C);
600
600
  }
601
601
  var U = Se(n, p, m, $, D);
602
602
  if (U == null)
@@ -615,11 +615,11 @@ Check the top-level render call using <` + m + ">.");
615
615
  _e(me, n);
616
616
  }
617
617
  if (Ee.call(p, "key")) {
618
- var Oe = le(n), ue = Object.keys(p).filter(function(ot) {
618
+ var Oe = ce(n), de = Object.keys(p).filter(function(ot) {
619
619
  return ot !== "key";
620
- }), ar = ue.length > 0 ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}";
620
+ }), ar = de.length > 0 ? "{key: someKey, " + de.join(": ..., ") + ": ...}" : "{key: someKey}";
621
621
  if (!Wr[Oe + ar]) {
622
- var Lr = ue.length > 0 ? "{" + ue.join(": ..., ") + ": ...}" : "{}";
622
+ var Lr = de.length > 0 ? "{" + de.join(": ..., ") + ": ...}" : "{}";
623
623
  R(`A props object containing a "key" prop is being spread into JSX:
624
624
  let props = %s;
625
625
  <%s {...props} />
@@ -778,7 +778,7 @@ function Ho(e) {
778
778
  defaultIsOpen: B,
779
779
  disableFilter: W,
780
780
  isLoading: R = !1,
781
- placement: se = "bottom",
781
+ placement: le = "bottom",
782
782
  restoreOnBlurIfEmpty: De = !f,
783
783
  shouldRenderSuggestions: cr = () => !0,
784
784
  submitKeys: ur = [],
@@ -787,11 +787,11 @@ function Ho(e) {
787
787
  values: Be = Te ? typeof Te == "string" ? [Te] : [...Te] : void 0
788
788
  } = e;
789
789
  f = f || (S ? !0 : e.freeSolo);
790
- const { isOpen: de, onClose: we, onOpen: Re } = co({ defaultIsOpen: B }), le = Pr(() => Z(e.children, {
791
- isOpen: de,
790
+ const { isOpen: fe, onClose: we, onOpen: Re } = co({ defaultIsOpen: B }), ce = Pr(() => Z(e.children, {
791
+ isOpen: fe,
792
792
  onClose: we,
793
793
  onOpen: Re
794
- }), [e.children, de]), J = Pr(() => Lo(le), [le]), ee = Rr(null), dr = Rr(null), $e = Rr(null), Ce = Rr(null), [fr, ze] = pt(!1);
794
+ }), [e.children, fe]), J = Pr(() => Lo(ce), [ce]), ee = Rr(null), dr = Rr(null), $e = Rr(null), Ce = Rr(null), [fr, ze] = pt(!1);
795
795
  let Ne = "";
796
796
  S ? Ne = "" : Vr(P) ? Vr(Be) || (Ne = Be[0]) : Ne = P[0];
797
797
  const [ge, O] = pt(Ne ?? ""), Ze = Pr(() => W ? J : J.filter(
@@ -803,7 +803,7 @@ function Ho(e) {
803
803
  ) || fr
804
804
  ).filter(
805
805
  (b, w) => v ? b.fixed || w < v : !0
806
- ), [ge, J, fr, v, W]), _r = a ? [{ value: ge, noFilter: !0, creatable: !0 }] : [], V = Pr(() => [...Ze, ..._r], [Ze, _r]), [ce, he] = uo({
806
+ ), [ge, J, fr, v, W]), _r = a ? [{ value: ge, noFilter: !0, creatable: !0 }] : [], V = Pr(() => [...Ze, ..._r], [Ze, _r]), [ue, he] = uo({
807
807
  defaultValue: P.map((b) => b == null ? void 0 : b.toString()),
808
808
  value: Be,
809
809
  onChange: (b) => {
@@ -818,7 +818,7 @@ function Ho(e) {
818
818
  }
819
819
  }), [ve, oe] = pt(
820
820
  r ? (mr = J[0]) == null ? void 0 : mr.value : null
821
- ), xr = e.maxSelections || ce.length + 1, Ge = V.findIndex((b) => b.value === ve), pr = Ro(
821
+ ), xr = e.maxSelections || ue.length + 1, Ge = V.findIndex((b) => b.value === ve), pr = Ro(
822
822
  Ge,
823
823
  V,
824
824
  !!e.rollNavigation
@@ -826,7 +826,7 @@ function Ho(e) {
826
826
  Ge,
827
827
  V,
828
828
  !!e.rollNavigation
829
- ), fe = Eo(V), Ee = gt(V), hr = !V.some(
829
+ ), ae = Eo(V), Ee = gt(V), hr = !V.some(
830
830
  (b) => b.value === ve
831
831
  );
832
832
  Je(() => {
@@ -835,13 +835,13 @@ function Ho(e) {
835
835
  r ? (b = J[0]) == null ? void 0 : b.value : null
836
836
  );
837
837
  }, [hr]), fo(() => {
838
- r && oe(fe == null ? void 0 : fe.value);
839
- }, [ge, fe]), Je(() => {
838
+ r && oe(ae == null ? void 0 : ae.value);
839
+ }, [ge, ae == null ? void 0 : ae.value]), Je(() => {
840
840
  var b;
841
- !de && r && oe((b = J[0]) == null ? void 0 : b.value);
842
- }, [de]), Je(() => {
843
- de && h && ze(!0);
844
- }, [de, h, ze]), Je(() => {
841
+ !fe && r && oe((b = J[0]) == null ? void 0 : b.value);
842
+ }, [fe]), Je(() => {
843
+ fe && h && ze(!0);
844
+ }, [fe, h, ze]), Je(() => {
845
845
  const b = J.find((w) => w.value === ve);
846
846
  Z(e.onOptionFocus, {
847
847
  item: b,
@@ -852,7 +852,7 @@ function Ho(e) {
852
852
  const er = (b) => {
853
853
  var re, te;
854
854
  const w = V.find((ne) => ne.value === b), z = (w == null ? void 0 : w.label) || (w == null ? void 0 : w.value);
855
- O(() => S ? "" : z ?? ""), !ce.includes(b) && ce.length < xr && he((ne) => S ? [...ne, b] : [b]), S && ((re = ee.current) == null || re.focus()), e.focusInputOnSelect && ((te = ee.current) == null || te.focus()), Z(e.onSelectOption, {
855
+ O(() => S ? "" : z ?? ""), !ue.includes(b) && ue.length < xr && he((ne) => S ? [...ne, b] : [b]), S && ((re = ee.current) == null || re.focus()), e.focusInputOnSelect && ((te = ee.current) == null || te.focus()), Z(e.onSelectOption, {
856
856
  item: w,
857
857
  selectMethod: Ce.current,
858
858
  isNewInput: w == null ? void 0 : w.creatable
@@ -871,7 +871,7 @@ function Ho(e) {
871
871
  }, rr = (b) => {
872
872
  var w;
873
873
  he([]), b && ((w = ee.current) == null || w.focus());
874
- }, tr = S ? ce.map((b) => {
874
+ }, tr = S ? ue.map((b) => {
875
875
  var w;
876
876
  return {
877
877
  label: ((w = J.find((z) => z.value === (b == null ? void 0 : b.toString()))) == null ? void 0 : w.label) || b,
@@ -880,9 +880,9 @@ function Ho(e) {
880
880
  }) : [];
881
881
  return Je(() => {
882
882
  Z(M, { tags: tr });
883
- }, [ce]), {
883
+ }, [ue]), {
884
884
  autoCompleteProps: e,
885
- children: le,
885
+ children: ce,
886
886
  filteredList: V,
887
887
  filteredResults: Ze,
888
888
  focusedValue: ve,
@@ -895,7 +895,7 @@ function Ho(e) {
895
895
  const w = Vo(b.children, V);
896
896
  return {
897
897
  divider: {
898
- hasFirstChild: No(b.children, fe),
898
+ hasFirstChild: No(b.children, ae),
899
899
  hasLastChild: Go(
900
900
  b.children,
901
901
  gt(V.filter((z) => Vr(z == null ? void 0 : z.noFilter)))
@@ -929,8 +929,8 @@ function Ho(e) {
929
929
  const Q = I.relatedTarget === ($e == null ? void 0 : $e.current) || ((Se = $e.current) == null ? void 0 : Se.contains(I.relatedTarget)), H = (We = dr.current) == null ? void 0 : We.contains(
930
930
  I.relatedTarget
931
931
  );
932
- if (!Q && !H && (o && we(), !ce.includes(I.target.value) && De)) {
933
- const Ue = gt(ce), N = J.find(
932
+ if (!Q && !H && (o && we(), !ue.includes(I.target.value) && De)) {
933
+ const Ue = gt(ue), N = J.find(
934
934
  (pe) => pe.value === Ue
935
935
  ), Xe = (N == null ? void 0 : N.label) || (N == null ? void 0 : N.value) || "";
936
936
  O(Xe);
@@ -947,23 +947,23 @@ function Ho(e) {
947
947
  Z(ne, I), Ce.current = "keyboard";
948
948
  const { key: Q } = I, H = V[Ge];
949
949
  if (["Enter", ...ur].includes(Q)) {
950
- H && !(H != null && H.disabled) && de ? er(H == null ? void 0 : H.value) : (Se = ee.current) == null || Se.focus(), I.preventDefault();
950
+ H && !(H != null && H.disabled) && fe ? er(H == null ? void 0 : H.value) : (Se = ee.current) == null || Se.focus(), I.preventDefault();
951
951
  return;
952
952
  }
953
953
  if (Q === "ArrowDown") {
954
- de ? oe(pr == null ? void 0 : pr.value) : Re(), I.preventDefault();
954
+ fe ? oe(pr == null ? void 0 : pr.value) : Re(), I.preventDefault();
955
955
  return;
956
956
  }
957
957
  if (Q === "ArrowUp") {
958
- de ? oe(gr == null ? void 0 : gr.value) : Re(), I.preventDefault();
958
+ fe ? oe(gr == null ? void 0 : gr.value) : Re(), I.preventDefault();
959
959
  return;
960
960
  }
961
961
  if (Q === "Tab") {
962
- de && H && !(H != null && H.disabled) ? er(H == null ? void 0 : H.value) : we();
962
+ fe && H && !(H != null && H.disabled) ? er(H == null ? void 0 : H.value) : we();
963
963
  return;
964
964
  }
965
965
  if (Q === "Home") {
966
- oe(fe == null ? void 0 : fe.value), I.preventDefault();
966
+ oe(ae == null ? void 0 : ae.value), I.preventDefault();
967
967
  return;
968
968
  }
969
969
  if (Q === "End") {
@@ -1001,7 +1001,7 @@ function Ho(e) {
1001
1001
  __html: Fo(nr, ge)
1002
1002
  }
1003
1003
  },
1004
- "aria-selected": ce.includes(N),
1004
+ "aria-selected": ue.includes(N),
1005
1005
  "aria-disabled": ne,
1006
1006
  _disabled: { opacity: 0.4, cursor: "not-allowed", userSelect: "none" },
1007
1007
  onClick: (Fe) => {
@@ -1034,19 +1034,19 @@ function Ho(e) {
1034
1034
  inputRef: ee,
1035
1035
  interactionRef: Ce,
1036
1036
  isLoading: R,
1037
- isOpen: de,
1037
+ isOpen: fe,
1038
1038
  itemList: J,
1039
1039
  listRef: $e,
1040
1040
  onClose: we,
1041
1041
  onOpen: Re,
1042
- placement: se,
1042
+ placement: le,
1043
1043
  query: ge,
1044
1044
  removeItem: Ve,
1045
1045
  resetItems: rr,
1046
1046
  setQuery: O,
1047
1047
  tags: tr,
1048
1048
  value: Te,
1049
- values: ce
1049
+ values: ue
1050
1050
  };
1051
1051
  }
1052
1052
  const Uo = Sr(
@@ -1208,14 +1208,14 @@ const Qo = {
1208
1208
  }, [T]);
1209
1209
  const P = yo("Input", e);
1210
1210
  let { wrapper: M, input: B } = l(_, P);
1211
- const { ref: W, ...R } = M, se = Tt(r, a), De = Z(h, { tags: u });
1211
+ const { ref: W, ...R } = M, le = Tt(r, a), De = Z(h, { tags: u });
1212
1212
  S && (B = {
1213
1213
  ...B,
1214
1214
  placeholder: Array.isArray(De) && De.length ? void 0 : B.placeholder
1215
1215
  });
1216
- const cr = /* @__PURE__ */ k.jsx(Xt, { isInvalid: v, ...B, ref: se }), ur = /* @__PURE__ */ k.jsxs(So, { ...R, ref: W, children: [
1216
+ const cr = /* @__PURE__ */ k.jsx(Xt, { isInvalid: v, ...B, ref: le }), ur = /* @__PURE__ */ k.jsxs(So, { "aria-invalid": v, ...R, ref: W, children: [
1217
1217
  De,
1218
- /* @__PURE__ */ k.jsx(_o, { as: Xt, ...B, ref: se })
1218
+ /* @__PURE__ */ k.jsx(_o, { as: Xt, ...B, ref: le })
1219
1219
  ] });
1220
1220
  return /* @__PURE__ */ k.jsx(xo, { children: o.multiple ? ur : cr });
1221
1221
  }
@@ -1255,9 +1255,9 @@ function br(e, ...r) {
1255
1255
  var ta = (e) => typeof e == "function", Ur = { exports: {} };
1256
1256
  Ur.exports;
1257
1257
  (function(e, r) {
1258
- var o = 200, a = "__lodash_hash_undefined__", l = 800, u = 16, d = 9007199254740991, f = "[object Arguments]", g = "[object Array]", h = "[object AsyncFunction]", v = "[object Boolean]", S = "[object Date]", _ = "[object Error]", T = "[object Function]", P = "[object GeneratorFunction]", M = "[object Map]", B = "[object Number]", W = "[object Null]", R = "[object Object]", se = "[object Proxy]", De = "[object RegExp]", cr = "[object Set]", ur = "[object String]", Qe = "[object Undefined]", Te = "[object WeakMap]", Be = "[object ArrayBuffer]", de = "[object DataView]", we = "[object Float32Array]", Re = "[object Float64Array]", le = "[object Int8Array]", J = "[object Int16Array]", ee = "[object Int32Array]", dr = "[object Uint8Array]", $e = "[object Uint8ClampedArray]", Ce = "[object Uint16Array]", fr = "[object Uint32Array]", ze = /[\\^$.*+?()[\]{}|]/g, Ne = /^\[object .+?Constructor\]$/, ge = /^(?:0|[1-9]\d*)$/, O = {};
1259
- O[we] = O[Re] = O[le] = O[J] = O[ee] = O[dr] = O[$e] = O[Ce] = O[fr] = !0, O[f] = O[g] = O[Be] = O[v] = O[de] = O[S] = O[_] = O[T] = O[M] = O[B] = O[R] = O[De] = O[cr] = O[ur] = O[Te] = !1;
1260
- var Ze = typeof zr == "object" && zr && zr.Object === Object && zr, _r = typeof self == "object" && self && self.Object === Object && self, V = Ze || _r || Function("return this")(), ce = r && !r.nodeType && r, he = ce && !0 && e && !e.nodeType && e, ve = he && he.exports === ce, oe = ve && Ze.process, xr = function() {
1258
+ var o = 200, a = "__lodash_hash_undefined__", l = 800, u = 16, d = 9007199254740991, f = "[object Arguments]", g = "[object Array]", h = "[object AsyncFunction]", v = "[object Boolean]", S = "[object Date]", _ = "[object Error]", T = "[object Function]", P = "[object GeneratorFunction]", M = "[object Map]", B = "[object Number]", W = "[object Null]", R = "[object Object]", le = "[object Proxy]", De = "[object RegExp]", cr = "[object Set]", ur = "[object String]", Qe = "[object Undefined]", Te = "[object WeakMap]", Be = "[object ArrayBuffer]", fe = "[object DataView]", we = "[object Float32Array]", Re = "[object Float64Array]", ce = "[object Int8Array]", J = "[object Int16Array]", ee = "[object Int32Array]", dr = "[object Uint8Array]", $e = "[object Uint8ClampedArray]", Ce = "[object Uint16Array]", fr = "[object Uint32Array]", ze = /[\\^$.*+?()[\]{}|]/g, Ne = /^\[object .+?Constructor\]$/, ge = /^(?:0|[1-9]\d*)$/, O = {};
1259
+ O[we] = O[Re] = O[ce] = O[J] = O[ee] = O[dr] = O[$e] = O[Ce] = O[fr] = !0, O[f] = O[g] = O[Be] = O[v] = O[fe] = O[S] = O[_] = O[T] = O[M] = O[B] = O[R] = O[De] = O[cr] = O[ur] = O[Te] = !1;
1260
+ var Ze = typeof zr == "object" && zr && zr.Object === Object && zr, _r = typeof self == "object" && self && self.Object === Object && self, V = Ze || _r || Function("return this")(), ue = r && !r.nodeType && r, he = ue && !0 && e && !e.nodeType && e, ve = he && he.exports === ue, oe = ve && Ze.process, xr = function() {
1261
1261
  try {
1262
1262
  var t = he && he.require && he.require("util").types;
1263
1263
  return t || oe && oe.binding && oe.binding("util");
@@ -1282,7 +1282,7 @@ Ur.exports;
1282
1282
  y[c] = s(c);
1283
1283
  return y;
1284
1284
  }
1285
- function fe(t) {
1285
+ function ae(t) {
1286
1286
  return function(s) {
1287
1287
  return t(s);
1288
1288
  };
@@ -1427,7 +1427,7 @@ Ur.exports;
1427
1427
  function C(t) {
1428
1428
  return this.__data__.has(t);
1429
1429
  }
1430
- function ae(t, s) {
1430
+ function ie(t, s) {
1431
1431
  var c = this.__data__;
1432
1432
  if (c instanceof _e) {
1433
1433
  var y = c.__data__;
@@ -1437,7 +1437,7 @@ Ur.exports;
1437
1437
  }
1438
1438
  return c.set(t, s), this.size = c.size, this;
1439
1439
  }
1440
- x.prototype.clear = $, x.prototype.delete = D, x.prototype.get = E, x.prototype.has = C, x.prototype.set = ae;
1440
+ x.prototype.clear = $, x.prototype.delete = D, x.prototype.get = E, x.prototype.has = C, x.prototype.set = ie;
1441
1441
  function K(t, s) {
1442
1442
  var c = lt(t), y = !c && st(t), A = !c && !y && Ft(t), G = !c && !y && !A && Mt(t), X = c || y || A || G, F = X ? gr(t.length, String) : [], q = F.length;
1443
1443
  for (var Ae in t)
@@ -1469,7 +1469,7 @@ Ur.exports;
1469
1469
  writable: !0
1470
1470
  }) : t[s] = c;
1471
1471
  }
1472
- var ue = Dn();
1472
+ var de = Dn();
1473
1473
  function ar(t) {
1474
1474
  return t == null ? t === void 0 ? Qe : W : I && I in Object(t) ? zn(t) : Un(t);
1475
1475
  }
@@ -1494,7 +1494,7 @@ Ur.exports;
1494
1494
  return c;
1495
1495
  }
1496
1496
  function Bt(t, s, c, y, A) {
1497
- t !== s && ue(s, function(G, X) {
1497
+ t !== s && de(s, function(G, X) {
1498
1498
  if (A || (A = new x()), vr(G))
1499
1499
  On(t, s, X, c, Bt, y, A);
1500
1500
  else {
@@ -1684,7 +1684,7 @@ Ur.exports;
1684
1684
  if (!vr(t))
1685
1685
  return !1;
1686
1686
  var s = ar(t);
1687
- return s == T || s == P || s == h || s == se;
1687
+ return s == T || s == P || s == h || s == le;
1688
1688
  }
1689
1689
  function Lt(t) {
1690
1690
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= d;
@@ -1705,7 +1705,7 @@ Ur.exports;
1705
1705
  var c = Ie.call(s, "constructor") && s.constructor;
1706
1706
  return typeof c == "function" && c instanceof c && Ye.call(c) == mr;
1707
1707
  }
1708
- var Mt = Ge ? fe(Ge) : In;
1708
+ var Mt = Ge ? ae(Ge) : In;
1709
1709
  function eo(t) {
1710
1710
  return Ln(t, Dt(t));
1711
1711
  }
@@ -2569,7 +2569,7 @@ function Fa(e, r) {
2569
2569
  const o = ["@media screen"];
2570
2570
  return e && o.push("and", `(min-width: ${en(e)})`), r && o.push("and", `(max-width: ${en(r)})`), o.join(" ");
2571
2571
  }
2572
- var ie = {
2572
+ var se = {
2573
2573
  hover: (e, r) => `${e}:hover ${r}, ${e}[data-hover] ${r}`,
2574
2574
  focus: (e, r) => `${e}:focus ${r}, ${e}[data-focus] ${r}`,
2575
2575
  focusVisible: (e, r) => `${e}:focus-visible ${r}`,
@@ -2751,71 +2751,71 @@ var ie = {
2751
2751
  /**
2752
2752
  * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is hovered
2753
2753
  */
2754
- _groupHover: ir(ie.hover),
2754
+ _groupHover: ir(se.hover),
2755
2755
  /**
2756
2756
  * Styles to apply when a sibling element with `.peer` or `data-peer` is hovered
2757
2757
  */
2758
- _peerHover: qe(ie.hover),
2758
+ _peerHover: qe(se.hover),
2759
2759
  /**
2760
2760
  * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is focused
2761
2761
  */
2762
- _groupFocus: ir(ie.focus),
2762
+ _groupFocus: ir(se.focus),
2763
2763
  /**
2764
2764
  * Styles to apply when a sibling element with `.peer` or `data-peer` is focused
2765
2765
  */
2766
- _peerFocus: qe(ie.focus),
2766
+ _peerFocus: qe(se.focus),
2767
2767
  /**
2768
2768
  * Styles to apply when a parent element with `.group`, `data-group` or `role=group` has visible focus
2769
2769
  */
2770
- _groupFocusVisible: ir(ie.focusVisible),
2770
+ _groupFocusVisible: ir(se.focusVisible),
2771
2771
  /**
2772
2772
  * Styles to apply when a sibling element with `.peer`or `data-peer` has visible focus
2773
2773
  */
2774
- _peerFocusVisible: qe(ie.focusVisible),
2774
+ _peerFocusVisible: qe(se.focusVisible),
2775
2775
  /**
2776
2776
  * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is active
2777
2777
  */
2778
- _groupActive: ir(ie.active),
2778
+ _groupActive: ir(se.active),
2779
2779
  /**
2780
2780
  * Styles to apply when a sibling element with `.peer` or `data-peer` is active
2781
2781
  */
2782
- _peerActive: qe(ie.active),
2782
+ _peerActive: qe(se.active),
2783
2783
  /**
2784
2784
  * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is disabled
2785
2785
  */
2786
- _groupDisabled: ir(ie.disabled),
2786
+ _groupDisabled: ir(se.disabled),
2787
2787
  /**
2788
2788
  * Styles to apply when a sibling element with `.peer` or `data-peer` is disabled
2789
2789
  */
2790
- _peerDisabled: qe(ie.disabled),
2790
+ _peerDisabled: qe(se.disabled),
2791
2791
  /**
2792
2792
  * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is invalid
2793
2793
  */
2794
- _groupInvalid: ir(ie.invalid),
2794
+ _groupInvalid: ir(se.invalid),
2795
2795
  /**
2796
2796
  * Styles to apply when a sibling element with `.peer` or `data-peer` is invalid
2797
2797
  */
2798
- _peerInvalid: qe(ie.invalid),
2798
+ _peerInvalid: qe(se.invalid),
2799
2799
  /**
2800
2800
  * Styles to apply when a parent element with `.group`, `data-group` or `role=group` is checked
2801
2801
  */
2802
- _groupChecked: ir(ie.checked),
2802
+ _groupChecked: ir(se.checked),
2803
2803
  /**
2804
2804
  * Styles to apply when a sibling element with `.peer` or `data-peer` is checked
2805
2805
  */
2806
- _peerChecked: qe(ie.checked),
2806
+ _peerChecked: qe(se.checked),
2807
2807
  /**
2808
2808
  * Styles to apply when a parent element with `.group`, `data-group` or `role=group` has focus within
2809
2809
  */
2810
- _groupFocusWithin: ir(ie.focusWithin),
2810
+ _groupFocusWithin: ir(se.focusWithin),
2811
2811
  /**
2812
2812
  * Styles to apply when a sibling element with `.peer` or `data-peer` has focus within
2813
2813
  */
2814
- _peerFocusWithin: qe(ie.focusWithin),
2814
+ _peerFocusWithin: qe(se.focusWithin),
2815
2815
  /**
2816
2816
  * Styles to apply when a sibling element with `.peer` or `data-peer` has placeholder shown
2817
2817
  */
2818
- _peerPlaceholderShown: qe(ie.placeholderShown),
2818
+ _peerPlaceholderShown: qe(se.placeholderShown),
2819
2819
  /**
2820
2820
  * Styles for CSS Selector `&::placeholder`.
2821
2821
  */
@@ -2973,12 +2973,12 @@ function Xa(e) {
2973
2973
  W = B != null && B.processResult ? l(W, !0) : W;
2974
2974
  const R = br(B == null ? void 0 : B.property, a);
2975
2975
  if (!d && (B != null && B.static)) {
2976
- const se = br(B.static, a);
2977
- _ = sr({}, _, se);
2976
+ const le = br(B.static, a);
2977
+ _ = sr({}, _, le);
2978
2978
  }
2979
2979
  if (R && Array.isArray(R)) {
2980
- for (const se of R)
2981
- _[se] = W;
2980
+ for (const le of R)
2981
+ _[le] = W;
2982
2982
  continue;
2983
2983
  }
2984
2984
  if (R) {
@@ -3028,9 +3028,9 @@ function Qa(e) {
3028
3028
  const M = r.details[P], B = r.details[Ja(v, P)], W = Fa(M.minW, B == null ? void 0 : B._minW), R = br((f = a[l]) == null ? void 0 : f[v[P]], d);
3029
3029
  if (R) {
3030
3030
  if (T) {
3031
- (g = a.parts) == null || g.forEach((se) => {
3031
+ (g = a.parts) == null || g.forEach((le) => {
3032
3032
  sr(h, {
3033
- [se]: _ ? R[se] : { [W]: R[se] }
3033
+ [le]: _ ? R[le] : { [W]: R[le] }
3034
3034
  });
3035
3035
  });
3036
3036
  continue;
package/dist/index.js CHANGED
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var $t;function eo(){return $t||($t=1,process.env.NODE_ENV!=="production"&&function(){var e=w,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),F=Symbol.iterator,N="@@iterator";function $(n){if(n===null||typeof n!="object")return null;var p=F&&n[F]||n[N];return typeof p=="function"?p:null}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(n){{for(var p=arguments.length,m=new Array(p>1?p-1:0),x=1;x<p;x++)m[x-1]=arguments[x];ce("error",n,m)}}function ce(n,p,m){{var x=M.ReactDebugCurrentFrame,W=x.getStackAddendum();W!==""&&(p+="%s",m=m.concat([W]));var G=m.map(function(O){return String(O)});G.unshift("Warning: "+p),Function.prototype.apply.call(console[n],console,G)}}var Ne=!1,cr=!1,ur=!1,Ze=!1,Ce=!1,$e;$e=Symbol.for("react.module.reference");function pe(n){return!!(typeof n=="string"||typeof n=="function"||n===a||n===u||Ce||n===l||n===h||n===v||Ze||n===T||Ne||cr||ur||typeof n=="object"&&n!==null&&(n.$$typeof===_||n.$$typeof===S||n.$$typeof===d||n.$$typeof===f||n.$$typeof===g||n.$$typeof===$e||n.getModuleId!==void 0))}function we(n,p,m){var x=n.displayName;if(x)return x;var W=p.displayName||p.name||"";return W!==""?m+"("+W+")":m}function Ee(n){return n.displayName||"Context"}function ue(n){if(n==null)return null;if(typeof n.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case a:return"Fragment";case o:return"Portal";case u:return"Profiler";case l:return"StrictMode";case h:return"Suspense";case v:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case f:var p=n;return Ee(p)+".Consumer";case d:var m=n;return Ee(m._context)+".Provider";case g:return we(n,n.render,"ForwardRef");case S:var x=n.displayName||null;return x!==null?x:ue(n.type)||"Memo";case _:{var W=n,G=W._payload,O=W._init;try{return ue(O(G))}catch{return null}}}return null}var ee=Object.assign,te=0,dr,We,Ie,fr,Ge,Ve,me;function P(){}P.__reactDisabledLog=!0;function er(){{if(te===0){dr=console.log,We=console.info,Ie=console.warn,fr=console.error,Ge=console.group,Ve=console.groupCollapsed,me=console.groupEnd;var n={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}te++}}function Sr(){{if(te--,te===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},n,{value:dr}),info:ee({},n,{value:We}),warn:ee({},n,{value:Ie}),error:ee({},n,{value:fr}),group:ee({},n,{value:Ge}),groupCollapsed:ee({},n,{value:Ve}),groupEnd:ee({},n,{value:me})})}te<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=M.ReactCurrentDispatcher,de;function ve(n,p,m){{if(de===void 0)try{throw Error()}catch(W){var x=W.stack.trim().match(/\n( *(at )?)/);de=x&&x[1]||""}return`
18
- `+de+n}}var ye=!1,ie;{var _r=typeof WeakMap=="function"?WeakMap:Map;ie=new _r}function Ye(n,p){if(!n||ye)return"";{var m=ie.get(n);if(m!==void 0)return m}var x;ye=!0;var W=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var G;G=H.current,H.current=null,er();try{if(p){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(fe){x=fe}Reflect.construct(n,[],O)}else{try{O.call()}catch(fe){x=fe}n.call(O.prototype)}}else{try{throw Error()}catch(fe){x=fe}n()}}catch(fe){if(fe&&x&&typeof fe.stack=="string"){for(var I=fe.stack.split(`
19
- `),se=x.stack.split(`
20
- `),Z=I.length-1,K=se.length-1;Z>=1&&K>=0&&I[Z]!==se[K];)K--;for(;Z>=1&&K>=0;Z--,K--)if(I[Z]!==se[K]){if(Z!==1||K!==1)do if(Z--,K--,K<0||I[Z]!==se[K]){var be=`
21
- `+I[Z].replace(" at new "," at ");return n.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",n.displayName)),typeof n=="function"&&ie.set(n,be),be}while(Z>=1&&K>=0);break}}}finally{ye=!1,H.current=G,Sr(),Error.prepareStackTrace=W}var Ae=n?n.displayName||n.name:"",Pe=Ae?ve(Ae):"";return typeof n=="function"&&ie.set(n,Pe),Pe}function pr(n,p,m){return Ye(n,!1)}function gr(n){var p=n.prototype;return!!(p&&p.isReactComponent)}function ge(n,p,m){if(n==null)return"";if(typeof n=="function")return Ye(n,gr(n));if(typeof n=="string")return ve(n);switch(n){case h:return ve("Suspense");case v:return ve("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case g:return pr(n.render);case S:return ge(n.type,p,m);case _:{var x=n,W=x._payload,G=x._init;try{return ge(G(W),p,m)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,hr={},rr=M.ReactDebugCurrentFrame;function Ue(n){if(n){var p=n._owner,m=ge(n.type,n._source,p?p.type:null);rr.setExtraStackFrame(m)}else rr.setExtraStackFrame(null)}function tr(n,p,m,x,W){{var G=Function.call.bind(Oe);for(var O in n)if(G(n,O)){var I=void 0;try{if(typeof n[O]!="function"){var se=Error((x||"React class")+": "+m+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw se.name="Invariant Violation",se}I=n[O](p,O,x,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){I=Z}I&&!(I instanceof Error)&&(Ue(W),E("%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).",x||"React class",m,O,typeof I),Ue(null)),I instanceof Error&&!(I.message in hr)&&(hr[I.message]=!0,Ue(W),E("Failed %s type: %s",m,I.message),Ue(null))}}}var nr=Array.isArray;function He(n){return nr(n)}function je(n){{var p=typeof Symbol=="function"&&Symbol.toStringTag,m=p&&n[Symbol.toStringTag]||n.constructor.name||"Object";return m}}function Rr(n){try{return xr(n),!1}catch{return!0}}function xr(n){return""+n}function mr(n){if(Rr(n))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",je(n)),xr(n)}var b=M.ReactCurrentOwner,C={key:!0,ref:!0,__self:!0,__source:!0},V,ne,oe;oe={};function ae(n){if(Oe.call(n,"ref")){var p=Object.getOwnPropertyDescriptor(n,"ref").get;if(p&&p.isReactWarning)return!1}return n.ref!==void 0}function Xe(n){if(Oe.call(n,"key")){var p=Object.getOwnPropertyDescriptor(n,"key").get;if(p&&p.isReactWarning)return!1}return n.key!==void 0}function Se(n,p){if(typeof n.ref=="string"&&b.current&&p&&b.current.stateNode!==p){var m=ue(b.current.type);oe[m]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ue(b.current.type),n.ref),oe[m]=!0)}}function j(n,p){{var m=function(){V||(V=!0,E("%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))};m.isReactWarning=!0,Object.defineProperty(n,"key",{get:m,configurable:!0})}}function re(n,p){{var m=function(){ne||(ne=!0,E("%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))};m.isReactWarning=!0,Object.defineProperty(n,"ref",{get:m,configurable:!0})}}var q=function(n,p,m,x,W,G,O){var I={$$typeof:r,type:n,key:p,ref:m,props:O,_owner:G};return I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(I,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(I,"_source",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I};function xe(n,p,m,x,W){{var G,O={},I=null,se=null;m!==void 0&&(mr(m),I=""+m),Xe(p)&&(mr(p.key),I=""+p.key),ae(p)&&(se=p.ref,Se(p,W));for(G in p)Oe.call(p,G)&&!C.hasOwnProperty(G)&&(O[G]=p[G]);if(n&&n.defaultProps){var Z=n.defaultProps;for(G in Z)O[G]===void 0&&(O[G]=Z[G])}if(I||se){var K=typeof n=="function"?n.displayName||n.name||"Unknown":n;I&&j(O,K),se&&re(O,K)}return q(n,I,se,W,x,b.current,O)}}var Le=M.ReactCurrentOwner,qe=M.ReactDebugCurrentFrame;function Y(n){if(n){var p=n._owner,m=ge(n.type,n._source,p?p.type:null);qe.setExtraStackFrame(m)}else qe.setExtraStackFrame(null)}var Ke;Ke=!1;function he(n){return typeof n=="object"&&n!==null&&n.$$typeof===r}function or(){{if(Le.current){var n=ue(Le.current.type);if(n)return`
17
+ */var $t;function eo(){return $t||($t=1,process.env.NODE_ENV!=="production"&&function(){var e=w,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),F=Symbol.iterator,N="@@iterator";function $(n){if(n===null||typeof n!="object")return null;var p=F&&n[F]||n[N];return typeof p=="function"?p:null}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(n){{for(var p=arguments.length,m=new Array(p>1?p-1:0),x=1;x<p;x++)m[x-1]=arguments[x];ue("error",n,m)}}function ue(n,p,m){{var x=M.ReactDebugCurrentFrame,W=x.getStackAddendum();W!==""&&(p+="%s",m=m.concat([W]));var G=m.map(function(O){return String(O)});G.unshift("Warning: "+p),Function.prototype.apply.call(console[n],console,G)}}var Ne=!1,cr=!1,ur=!1,Ze=!1,Ce=!1,$e;$e=Symbol.for("react.module.reference");function ge(n){return!!(typeof n=="string"||typeof n=="function"||n===a||n===u||Ce||n===l||n===h||n===v||Ze||n===T||Ne||cr||ur||typeof n=="object"&&n!==null&&(n.$$typeof===_||n.$$typeof===S||n.$$typeof===d||n.$$typeof===f||n.$$typeof===g||n.$$typeof===$e||n.getModuleId!==void 0))}function we(n,p,m){var x=n.displayName;if(x)return x;var W=p.displayName||p.name||"";return W!==""?m+"("+W+")":m}function Ee(n){return n.displayName||"Context"}function de(n){if(n==null)return null;if(typeof n.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case a:return"Fragment";case o:return"Portal";case u:return"Profiler";case l:return"StrictMode";case h:return"Suspense";case v:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case f:var p=n;return Ee(p)+".Consumer";case d:var m=n;return Ee(m._context)+".Provider";case g:return we(n,n.render,"ForwardRef");case S:var x=n.displayName||null;return x!==null?x:de(n.type)||"Memo";case _:{var W=n,G=W._payload,O=W._init;try{return de(O(G))}catch{return null}}}return null}var ee=Object.assign,te=0,dr,We,Ie,fr,Ge,Ve,me;function P(){}P.__reactDisabledLog=!0;function er(){{if(te===0){dr=console.log,We=console.info,Ie=console.warn,fr=console.error,Ge=console.group,Ve=console.groupCollapsed,me=console.groupEnd;var n={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}te++}}function Sr(){{if(te--,te===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},n,{value:dr}),info:ee({},n,{value:We}),warn:ee({},n,{value:Ie}),error:ee({},n,{value:fr}),group:ee({},n,{value:Ge}),groupCollapsed:ee({},n,{value:Ve}),groupEnd:ee({},n,{value:me})})}te<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=M.ReactCurrentDispatcher,fe;function ve(n,p,m){{if(fe===void 0)try{throw Error()}catch(W){var x=W.stack.trim().match(/\n( *(at )?)/);fe=x&&x[1]||""}return`
18
+ `+fe+n}}var ye=!1,ie;{var _r=typeof WeakMap=="function"?WeakMap:Map;ie=new _r}function Ye(n,p){if(!n||ye)return"";{var m=ie.get(n);if(m!==void 0)return m}var x;ye=!0;var W=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var G;G=H.current,H.current=null,er();try{if(p){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(pe){x=pe}Reflect.construct(n,[],O)}else{try{O.call()}catch(pe){x=pe}n.call(O.prototype)}}else{try{throw Error()}catch(pe){x=pe}n()}}catch(pe){if(pe&&x&&typeof pe.stack=="string"){for(var I=pe.stack.split(`
19
+ `),le=x.stack.split(`
20
+ `),Z=I.length-1,K=le.length-1;Z>=1&&K>=0&&I[Z]!==le[K];)K--;for(;Z>=1&&K>=0;Z--,K--)if(I[Z]!==le[K]){if(Z!==1||K!==1)do if(Z--,K--,K<0||I[Z]!==le[K]){var be=`
21
+ `+I[Z].replace(" at new "," at ");return n.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",n.displayName)),typeof n=="function"&&ie.set(n,be),be}while(Z>=1&&K>=0);break}}}finally{ye=!1,H.current=G,Sr(),Error.prepareStackTrace=W}var Ae=n?n.displayName||n.name:"",Pe=Ae?ve(Ae):"";return typeof n=="function"&&ie.set(n,Pe),Pe}function pr(n,p,m){return Ye(n,!1)}function gr(n){var p=n.prototype;return!!(p&&p.isReactComponent)}function se(n,p,m){if(n==null)return"";if(typeof n=="function")return Ye(n,gr(n));if(typeof n=="string")return ve(n);switch(n){case h:return ve("Suspense");case v:return ve("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case g:return pr(n.render);case S:return se(n.type,p,m);case _:{var x=n,W=x._payload,G=x._init;try{return se(G(W),p,m)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,hr={},rr=M.ReactDebugCurrentFrame;function Ue(n){if(n){var p=n._owner,m=se(n.type,n._source,p?p.type:null);rr.setExtraStackFrame(m)}else rr.setExtraStackFrame(null)}function tr(n,p,m,x,W){{var G=Function.call.bind(Oe);for(var O in n)if(G(n,O)){var I=void 0;try{if(typeof n[O]!="function"){var le=Error((x||"React class")+": "+m+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw le.name="Invariant Violation",le}I=n[O](p,O,x,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){I=Z}I&&!(I instanceof Error)&&(Ue(W),E("%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).",x||"React class",m,O,typeof I),Ue(null)),I instanceof Error&&!(I.message in hr)&&(hr[I.message]=!0,Ue(W),E("Failed %s type: %s",m,I.message),Ue(null))}}}var nr=Array.isArray;function He(n){return nr(n)}function je(n){{var p=typeof Symbol=="function"&&Symbol.toStringTag,m=p&&n[Symbol.toStringTag]||n.constructor.name||"Object";return m}}function Rr(n){try{return xr(n),!1}catch{return!0}}function xr(n){return""+n}function mr(n){if(Rr(n))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",je(n)),xr(n)}var b=M.ReactCurrentOwner,C={key:!0,ref:!0,__self:!0,__source:!0},V,ne,oe;oe={};function ae(n){if(Oe.call(n,"ref")){var p=Object.getOwnPropertyDescriptor(n,"ref").get;if(p&&p.isReactWarning)return!1}return n.ref!==void 0}function Xe(n){if(Oe.call(n,"key")){var p=Object.getOwnPropertyDescriptor(n,"key").get;if(p&&p.isReactWarning)return!1}return n.key!==void 0}function Se(n,p){if(typeof n.ref=="string"&&b.current&&p&&b.current.stateNode!==p){var m=de(b.current.type);oe[m]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',de(b.current.type),n.ref),oe[m]=!0)}}function j(n,p){{var m=function(){V||(V=!0,E("%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))};m.isReactWarning=!0,Object.defineProperty(n,"key",{get:m,configurable:!0})}}function re(n,p){{var m=function(){ne||(ne=!0,E("%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))};m.isReactWarning=!0,Object.defineProperty(n,"ref",{get:m,configurable:!0})}}var q=function(n,p,m,x,W,G,O){var I={$$typeof:r,type:n,key:p,ref:m,props:O,_owner:G};return I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(I,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(I,"_source",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I};function xe(n,p,m,x,W){{var G,O={},I=null,le=null;m!==void 0&&(mr(m),I=""+m),Xe(p)&&(mr(p.key),I=""+p.key),ae(p)&&(le=p.ref,Se(p,W));for(G in p)Oe.call(p,G)&&!C.hasOwnProperty(G)&&(O[G]=p[G]);if(n&&n.defaultProps){var Z=n.defaultProps;for(G in Z)O[G]===void 0&&(O[G]=Z[G])}if(I||le){var K=typeof n=="function"?n.displayName||n.name||"Unknown":n;I&&j(O,K),le&&re(O,K)}return q(n,I,le,W,x,b.current,O)}}var Le=M.ReactCurrentOwner,qe=M.ReactDebugCurrentFrame;function Y(n){if(n){var p=n._owner,m=se(n.type,n._source,p?p.type:null);qe.setExtraStackFrame(m)}else qe.setExtraStackFrame(null)}var Ke;Ke=!1;function he(n){return typeof n=="object"&&n!==null&&n.$$typeof===r}function or(){{if(Le.current){var n=de(Le.current.type);if(n)return`
22
22
 
23
23
  Check the render method of \``+n+"`."}return""}}function kr(n){return""}var Me={};function Tr(n){{var p=or();if(!p){var m=typeof n=="string"?n:n.displayName||n.name;m&&(p=`
24
24
 
25
- Check the top-level render call using <`+m+">.")}return p}}function Ar(n,p){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var m=Tr(p);if(Me[m])return;Me[m]=!0;var x="";n&&n._owner&&n._owner!==Le.current&&(x=" It was passed a child from "+ue(n._owner.type)+"."),Y(n),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',m,x),Y(null)}}function ke(n,p){{if(typeof n!="object")return;if(He(n))for(var m=0;m<n.length;m++){var x=n[m];he(x)&&Ar(x,p)}else if(he(n))n._store&&(n._store.validated=!0);else if(n){var W=$(n);if(typeof W=="function"&&W!==n.entries)for(var G=W.call(n),O;!(O=G.next()).done;)he(O.value)&&Ar(O.value,p)}}}function Xr(n){{var p=n.type;if(p==null||typeof p=="string")return;var m;if(typeof p=="function")m=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===g||p.$$typeof===S))m=p.propTypes;else return;if(m){var x=ue(p);tr(m,n.props,"prop",x,n)}else if(p.PropTypes!==void 0&&!Ke){Ke=!0;var W=ue(p);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",W||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qr(n){{for(var p=Object.keys(n.props),m=0;m<p.length;m++){var x=p[m];if(x!=="children"&&x!=="key"){Y(n),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Y(null);break}}n.ref!==null&&(Y(n),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Pr={};function Br(n,p,m,x,W,G){{var O=pe(n);if(!O){var I="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(I+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var se=kr();se?I+=se:I+=or();var Z;n===null?Z="null":He(n)?Z="array":n!==void 0&&n.$$typeof===r?(Z="<"+(ue(n.type)||"Unknown")+" />",I=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof n,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,I)}var K=xe(n,p,m,W,G);if(K==null)return K;if(O){var be=p.children;if(be!==void 0)if(x)if(He(be)){for(var Ae=0;Ae<be.length;Ae++)ke(be[Ae],n);Object.freeze&&Object.freeze(be)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ke(be,n)}if(Oe.call(p,"key")){var Pe=ue(n),fe=Object.keys(p).filter(function(Zr){return Zr!=="key"}),ir=fe.length>0?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}";if(!Pr[Pe+ir]){var Fr=fe.length>0?"{"+fe.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+m+">.")}return p}}function Ar(n,p){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var m=Tr(p);if(Me[m])return;Me[m]=!0;var x="";n&&n._owner&&n._owner!==Le.current&&(x=" It was passed a child from "+de(n._owner.type)+"."),Y(n),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',m,x),Y(null)}}function ke(n,p){{if(typeof n!="object")return;if(He(n))for(var m=0;m<n.length;m++){var x=n[m];he(x)&&Ar(x,p)}else if(he(n))n._store&&(n._store.validated=!0);else if(n){var W=$(n);if(typeof W=="function"&&W!==n.entries)for(var G=W.call(n),O;!(O=G.next()).done;)he(O.value)&&Ar(O.value,p)}}}function Xr(n){{var p=n.type;if(p==null||typeof p=="string")return;var m;if(typeof p=="function")m=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===g||p.$$typeof===S))m=p.propTypes;else return;if(m){var x=de(p);tr(m,n.props,"prop",x,n)}else if(p.PropTypes!==void 0&&!Ke){Ke=!0;var W=de(p);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",W||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qr(n){{for(var p=Object.keys(n.props),m=0;m<p.length;m++){var x=p[m];if(x!=="children"&&x!=="key"){Y(n),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Y(null);break}}n.ref!==null&&(Y(n),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Pr={};function Br(n,p,m,x,W,G){{var O=ge(n);if(!O){var I="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(I+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var le=kr();le?I+=le:I+=or();var Z;n===null?Z="null":He(n)?Z="array":n!==void 0&&n.$$typeof===r?(Z="<"+(de(n.type)||"Unknown")+" />",I=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof n,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,I)}var K=xe(n,p,m,W,G);if(K==null)return K;if(O){var be=p.children;if(be!==void 0)if(x)if(He(be)){for(var Ae=0;Ae<be.length;Ae++)ke(be[Ae],n);Object.freeze&&Object.freeze(be)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ke(be,n)}if(Oe.call(p,"key")){var Pe=de(n),pe=Object.keys(p).filter(function(Zr){return Zr!=="key"}),ir=pe.length>0?"{key: someKey, "+pe.join(": ..., ")+": ...}":"{key: someKey}";if(!Pr[Pe+ir]){var Fr=pe.length>0?"{"+pe.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ir,Pe,Fr,Pe),Pr[Pe+ir]=!0}}return n===a?qr(K):Xr(K),K}}function Kr(n,p,m){return Br(n,p,m,!0)}function ar(n,p,m){return Br(n,p,m,!1)}var Jr=ar,Qr=Kr;Ir.Fragment=a,Ir.jsx=Jr,Ir.jsxs=Qr}()),Ir}process.env.NODE_ENV==="production"?ut.exports=Zn():ut.exports=eo();var k=ut.exports;const[Jt,Qe]=Kn.createContext({name:"AutoCompleteContext",errorMessage:"useAutoCompleteContext: `context` is undefined. Seems you forgot to wrap all autoomplete components within `<AutoComplete />`"});var Yr=function(e,r){for(var o,a=qt.Children.toArray(e),l=0,u=a;l<u.length;l++){var d=u[l];if(r(d))return d;if(!((o=d.props)===null||o===void 0)&&o.children){var f=Yr(d.props.children,r);if(f)return f}}},Mr=function(e,r){for(var o=0,a=r.length,l=e.length;o<a;o++,l++)e[l]=r[o];return e},Qt=function(e,r){for(var o,a=qt.Children.toArray(e),l=[],u=0,d=a;u<d.length;u++){var f=d[u];r(f)&&(l=Mr(Mr([],l),[f])),!((o=f.props)===null||o===void 0)&&o.children&&(l=Mr(Mr([],l),Qt(f.props.children,r)))}return l};function Wt(e,r,o=2){function a(S,_){S=" ".repeat(_-1)+S.toLowerCase()+" ".repeat(_-1);let T=new Array(S.length-_+1);for(let F=0;F<T.length;F++)T[F]=S.slice(F,F+_);return T}if(!(e!=null&&e.length)||!(r!=null&&r.length))return 0;let l=e.length<r.length?e:r,u=e.length<r.length?r:e,d=a(l,o),f=a(u,o),g=new Set(d),h=f.length,v=0;for(let S of f)g.delete(S)&&v++;return v/h}const mt=e=>{var r;return(r=typeof e=="string"||typeof e=="number"?e:e[Object.keys(e)[0]])==null?void 0:r.toString()},ro=(e,r)=>typeof e!="string"||R.isEmpty(r)?e:e.toString().replace(new RegExp(ao(r),"gi"),a=>`<mark>${a}</mark>`),to=e=>Qt(e,o=>{var a;return((a=o==null?void 0:o.type)==null?void 0:a.displayName)==="AutoCompleteItem"}).map(o=>{const a=R.pick(o.props,["value","label","fixed","disabled"]),{getValue:l=mt}=o.props,u=l(a.value);return{...R.isDefined(a.label)?a:{...a,label:u},value:u,originalValue:a.value}}),no=()=>({bg:"whiteAlpha.100",_light:{bg:"gray.200"}}),oo=(e,r,o)=>(r==null?void 0:r.toLowerCase().indexOf(e==null?void 0:e.toLowerCase()))>=0||(o==null?void 0:o.toLowerCase().indexOf(e==null?void 0:e.toLowerCase()))>=0||Wt(e,r)>=.5||Wt(e,o)>=.5;function ao(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const io=(e,r)=>Yr(e,a=>{var l;return((l=a==null?void 0:a.type)==null?void 0:l.displayName)==="AutoCompleteItem"&&a.props.value===(r==null?void 0:r.value)}),so=(e,r)=>Yr(e,a=>{var l;return((l=a==null?void 0:a.type)==null?void 0:l.displayName)==="AutoCompleteItem"&&a.props.value===(r==null?void 0:r.value)}),lo=(e,r)=>R.isDefined(Yr(e,o=>{var l,u;const a=R.runIfFn(((l=o.props)==null?void 0:l.getValue)||mt,((u=o.props)==null?void 0:u.value)||{});return r.some(d=>d.value===a)})),co=(e,r)=>{const o={},a={},{field:l}=e;return l&&Object.keys(l).forEach(u=>{if(u.startsWith("--input")===!1)o[u]=l[u];else{let d=l[u];const g=u.replace("--input-","").replace(/-([a-z])/g,function(h){return h[1].toUpperCase()});d.indexOf(".")!==-1&&(d=d.substring(d.indexOf(".")+1)),a[g]=d}}),{...r&&{...o,...a,_focusWithin:e.field._focus,pos:"relative",minH:9,py:1.5,spacing:3},cursor:"text",h:"fit-content"}};function Zt(e){var mr;let{prefocusFirstItem:r=!0,closeOnBlur:o=!0,creatable:a,emphasize:l,emptyState:u=!0,defaultEmptyStateProps:d={},freeSolo:f,isReadOnly:g,listAllValuesOnFocus:h,maxSuggestions:v,multiple:S,closeOnSelect:_=!S,defaultValue:T,defaultValues:F=T?[T]:[],onReady:N,defaultIsOpen:$,disableFilter:M,isLoading:E=!1,placement:ce="bottom",restoreOnBlurIfEmpty:Ne=!f,shouldRenderSuggestions:cr=()=>!0,submitKeys:ur=[],suggestWhenEmpty:Ze,value:Ce,values:$e=Ce?typeof Ce=="string"?[Ce]:[...Ce]:void 0}=e;f=f||(S?!0:e.freeSolo);const{isOpen:pe,onClose:we,onOpen:Ee}=L.useDisclosure({defaultIsOpen:$}),ue=w.useMemo(()=>R.runIfFn(e.children,{isOpen:pe,onClose:we,onOpen:Ee}),[e.children,pe]),ee=w.useMemo(()=>to(ue),[ue]),te=w.useRef(null),dr=w.useRef(null),We=w.useRef(null),Ie=w.useRef(null),[fr,Ge]=w.useState(!1);let Ve="";S?Ve="":R.isUndefined(F)?R.isUndefined($e)||(Ve=$e[0]):Ve=F[0];const[me,P]=w.useState(Ve??""),er=w.useMemo(()=>M?ee:ee.filter(b=>b.fixed||R.runIfFn(e.filter||oo,me,b.value,b.label)||fr).filter((b,C)=>v?b.fixed||C<v:!0),[me,ee,fr,v,M]),Sr=a?[{value:me,noFilter:!0,creatable:!0}]:[],H=w.useMemo(()=>[...er,...Sr],[er,Sr]),[de,ve]=L.useControllableState({defaultValue:F.map(b=>b==null?void 0:b.toString()),value:$e,onChange:b=>{const C=H.find(ne=>ne.value===b[0]),V=b.map(ne=>H.find(oe=>oe.value===ne));R.runIfFn(e.onChange,S?b:b[0],S?V:C)}}),[ye,ie]=w.useState(r?(mr=ee[0])==null?void 0:mr.value:null),_r=e.maxSelections||de.length+1,Ye=H.findIndex(b=>b.value===ye),pr=R.getNextItem(Ye,H,!!e.rollNavigation),gr=R.getPrevItem(Ye,H,!!e.rollNavigation),ge=R.getFirstItem(H),Oe=R.getLastItem(H),hr=!H.some(b=>b.value===ye);w.useEffect(()=>{var b;hr&&ie(r?(b=ee[0])==null?void 0:b.value:null)},[hr]),L.useUpdateEffect(()=>{r&&ie(ge==null?void 0:ge.value)},[me,ge]),w.useEffect(()=>{var b;!pe&&r&&ie((b=ee[0])==null?void 0:b.value)},[pe]),w.useEffect(()=>{pe&&h&&Ge(!0)},[pe,h,Ge]),w.useEffect(()=>{const b=ee.find(C=>C.value===ye);R.runIfFn(e.onOptionFocus,{item:b,focusMethod:Ie.current,isNewInput:b==null?void 0:b.creatable})},[ye,e.onOptionFocus]);const rr=b=>{var ne,oe;const C=H.find(ae=>ae.value===b),V=(C==null?void 0:C.label)||(C==null?void 0:C.value);P(()=>S?"":V??""),!de.includes(b)&&de.length<_r&&ve(ae=>S?[...ae,b]:[b]),S&&((ne=te.current)==null||ne.focus()),e.focusInputOnSelect&&((oe=te.current)==null||oe.focus()),R.runIfFn(e.onSelectOption,{item:C,selectMethod:Ie.current,isNewInput:C==null?void 0:C.creatable}),C!=null&&C.creatable&&R.runIfFn(e.onCreateOption,{item:R.omit(C,["noFilter"]),selectMethod:Ie.current}),_&&we()},Ue=(b,C)=>{var oe;ve(ae=>{const Xe=ee.find(Se=>Se.value===b);return R.runIfFn(e.onTagRemoved,b,Xe,ae),ae.filter(Se=>Se!==b)});const V=ee.find(ae=>ae.value===b),ne=(V==null?void 0:V.label)||(V==null?void 0:V.value);me===ne&&P(""),C&&((oe=te.current)==null||oe.focus())},tr=b=>{var C;ve([]),b&&((C=te.current)==null||C.focus())},nr=S?de.map(b=>{var C;return{label:((C=ee.find(V=>V.value===(b==null?void 0:b.toString())))==null?void 0:C.label)||b,onRemove:()=>Ue(b)}}):[];return w.useEffect(()=>{R.runIfFn(N,{tags:nr})},[de]),{autoCompleteProps:e,children:ue,filteredList:H,filteredResults:er,focusedValue:ye,defaultEmptyStateProps:d,getEmptyStateProps:b=>{if(H.every(V=>V.noFilter)&&u&&!a)return typeof u=="boolean"?b:R.runIfFn(u,{query:me})},getGroupProps:b=>{const C=lo(b.children,H);return{divider:{hasFirstChild:io(b.children,ge),hasLastChild:so(b.children,R.getLastItem(H.filter(V=>R.isUndefined(V==null?void 0:V.noFilter))))},group:{display:C?"initial":"none"}}},getInputProps:(b,C)=>{const{onBlur:V,onChange:ne,onFocus:oe,onKeyDown:ae,variant:Xe,...Se}=b;return{wrapper:{ref:dr,onClick:()=>{var j;(j=te==null?void 0:te.current)==null||j.focus()},...co(C,S),...Se},input:{isReadOnly:g,onFocus:j=>{R.runIfFn(oe,j),e.openOnFocus&&!g&&Ee(),e.selectOnFocus&&j.target.select(),h&&Ge(!0)},onBlur:j=>{var xe,Le;R.runIfFn(V,j);const re=j.relatedTarget===(We==null?void 0:We.current)||((xe=We.current)==null?void 0:xe.contains(j.relatedTarget)),q=(Le=dr.current)==null?void 0:Le.contains(j.relatedTarget);if(!re&&!q&&(o&&we(),!de.includes(j.target.value)&&Ne)){const qe=R.getLastItem(de),Y=ee.find(he=>he.value===qe),Ke=(Y==null?void 0:Y.label)||(Y==null?void 0:Y.value)||"";P(Ke)}},onChange:j=>{const re=j.target.value;R.runIfFn(ne,j),P(re);const q=R.isEmpty(re);R.runIfFn(cr,re)&&(!q||Ze)?Ee():we(),Ge(!1)},onKeyDown:j=>{var xe;R.runIfFn(ae,j),Ie.current="keyboard";const{key:re}=j,q=H[Ye];if(["Enter",...ur].includes(re)){q&&!(q!=null&&q.disabled)&&pe?rr(q==null?void 0:q.value):(xe=te.current)==null||xe.focus(),j.preventDefault();return}if(re==="ArrowDown"){pe?ie(pr==null?void 0:pr.value):Ee(),j.preventDefault();return}if(re==="ArrowUp"){pe?ie(gr==null?void 0:gr.value):Ee(),j.preventDefault();return}if(re==="Tab"){pe&&q&&!(q!=null&&q.disabled)?rr(q==null?void 0:q.value):we();return}if(re==="Home"){ie(ge==null?void 0:ge.value),j.preventDefault();return}if(re==="End"){ie(Oe==null?void 0:Oe.value),j.preventDefault();return}re==="Escape"&&(we(),j.preventDefault())},value:me,variant:S?"unstyled":Xe,...Se}}},getItemProps:(b,C)=>{var kr;const{_fixed:V,_focus:ne,children:oe,disabled:ae,label:Xe,value:Se,fixed:j,getValue:re=mt,onClick:q,onMouseOver:xe,sx:Le,...qe}=b,Y=C?Se:(kr=re(Se))==null?void 0:kr.toString(),Ke=Y===ye,he=H.findIndex(Me=>Me.value===Y)>=0,or=oe||Xe||Y;return{item:{...typeof or!="string"||!l?{children:or}:{dangerouslySetInnerHTML:{__html:ro(or,me)}},"aria-selected":de.includes(Y),"aria-disabled":ae,_disabled:{opacity:.4,cursor:"not-allowed",userSelect:"none"},onClick:Me=>{var Tr;R.runIfFn(q,Me),ae?(Tr=te.current)==null||Tr.focus():rr(Y)},onMouseOver:Me=>{R.runIfFn(xe,Me),ie(Y),Ie.current="mouse"},sx:{...Le,mark:{color:"inherit",bg:"transparent",...R.isObject(l)?l:{fontWeight:l?"extrabold":"inherit"}}},...Ke&&(ne||no()),...j&&V,...qe},root:{isValidSuggestion:he,value:Y}}},inputRef:te,interactionRef:Ie,isLoading:E,isOpen:pe,itemList:ee,listRef:We,onClose:we,onOpen:Ee,placement:ce,query:me,removeItem:Ue,resetItems:tr,setQuery:P,tags:nr,value:Ce,values:de}}const en=L.forwardRef((e,r)=>{const o=Zt(e),{children:a,isOpen:l,onClose:u,onOpen:d,placement:f,resetItems:g,removeItem:h}=o;w.useImperativeHandle(r,()=>({resetItems:g,removeItem:h}));const{matchWidth:v=!0}=o.autoCompleteProps;return k.jsx(Jt,{value:o,children:k.jsx(L.Popover,{isLazy:!0,isOpen:l,onClose:u,onOpen:d,autoFocus:!1,placement:f,closeOnBlur:!0,matchWidth:v,children:k.jsx(L.chakra.div,{w:"full",ref:r,children:a})})})});en.displayName="AutoComplete";const rn=L.forwardRef((e,r)=>{const{focusedValue:o,getItemProps:a,interactionRef:l}=Qe(),u=w.useRef(),d=L.useMergeRefs(r,u),f=a(e),{isValidSuggestion:g,value:h}=f.root,v=o===h;w.useEffect(()=>{var N;v&&l.current==="keyboard"&&((N=u==null?void 0:u.current)==null||N.scrollIntoView({behavior:"smooth",block:"nearest"}))},[v,l]),w.useEffect(()=>{typeof h!="string"&&console.warn("wow"),typeof h!="string"&&R.isUndefined(e.getValue)&&console.error("You must define the `getValue` prop, when an Item's value is not a string")},[]);const{children:S,dangerouslySetInnerHTML:_,...T}=f.item,F=R.omit(T,["groupId"]);return g?k.jsx(L.Flex,{ref:d,...vt,...F,children:S||k.jsx("span",{dangerouslySetInnerHTML:_})}):null});rn.displayName="AutoCompleteItem";const vt={mx:"2",px:"2",py:"2",rounded:"md",cursor:"pointer"};function tn(e){const{alwaysDisplay:r,children:o,...a}=e,{autoCompleteProps:l,getItemProps:u,query:d,filteredResults:f}=Qe(),{children:g,...h}=u({...e,value:d,children:R.runIfFn(o,{value:d})},!0).item,v=f.some(T=>T.value===d),S=R.isEmpty(d)?r:!0;return l.creatable&&S&&!v?k.jsx(L.Flex,{...vt,...h,...a,children:g||`Add ${d}`}):null}tn.displayName="AutoCompleteCreatable";const nn=L.forwardRef((e,r)=>{const{children:o,showDivider:a,...l}=e,u=R.omit(l,["groupSibling"]),{getGroupProps:d}=Qe(),{group:f}=d(e),g=fo(e);return k.jsxs(L.Box,{ref:r,...f,...u,children:[k.jsx(L.Divider,{...g.top}),o,k.jsx(L.Divider,{...g.bottom})]})}),on=L.forwardRef((e,r)=>k.jsx(L.Flex,{...uo,...e,ref:r}));nn.displayName="AutoCompleteGroup";on.displayName="AutoCompleteGroupTitle";const uo={ml:5,my:1,fontSize:"xs",letterSpacing:"wider",fontWeight:"extrabold",textTransform:"uppercase"},fo=e=>{const{getGroupProps:r}=Qe(),o=e.groupSibling,{divider:{hasFirstChild:a,hasLastChild:l}}=r(e),u={my:2,borderColor:e.dividerColor},d={...u,mb:4,display:!e.showDivider||a?"none":""},f={...u,display:!e.showDivider||l||o?"none":""};return{top:d,bottom:f}},Lt=L.forwardRef((e,r)=>{const{isLoading:o}=Qe(),{loadingIcon:a,...l}=e;return k.jsxs(L.InputGroup,{children:[k.jsx(L.Input,{...l,ref:r}),o&&k.jsx(L.InputRightElement,{children:a||k.jsx(L.Spinner,{})})]})}),bt=L.forwardRef((e,r)=>{const{autoCompleteProps:o,inputRef:a,getInputProps:l,tags:u,setQuery:d,value:f,itemList:g}=Qe(),{children:h,isInvalid:v,hidePlaceholder:S,..._}=e,{value:T}=_;w.useEffect(()=>{if(f!==void 0&&(typeof f=="string"||f instanceof String)){const Ze=g.find($e=>$e.value===f),Ce=Ze===void 0?f:Ze.label;d(Ce)}},[f]),w.useEffect(()=>{T!==void 0&&(typeof T=="string"||T instanceof String)&&d(T)},[T]);const F=L.useMultiStyleConfig("Input",e);let{wrapper:N,input:$}=l(_,F);const{ref:M,...E}=N,ce=L.useMergeRefs(r,a),Ne=R.runIfFn(h,{tags:u});S&&($={...$,placeholder:Array.isArray(Ne)&&Ne.length?void 0:$.placeholder});const cr=k.jsx(Lt,{isInvalid:v,...$,ref:ce}),ur=k.jsxs(L.Wrap,{...E,ref:M,children:[Ne,k.jsx(L.WrapItem,{as:Lt,...$,ref:ce})]});return k.jsx(L.PopoverAnchor,{children:o.multiple?ur:cr})});bt.displayName="Input";bt.id="Input";function po(){const e=w.useContext(Jn.ThemeContext);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var an=w.createContext({});an.displayName="ColorModeContext";function sn(){const e=w.useContext(an);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function go(){const e=sn(),r=po();return{...e,theme:r}}var yt=(...e)=>e.filter(Boolean).join(" ");function yr(e){const r=typeof e;return e!=null&&(r==="object"||r==="function")&&!Array.isArray(e)}function br(e,...r){return ho(e)?e(...r):e}var ho=e=>typeof e=="function",Gr={exports:{}};Gr.exports;(function(e,r){var o=200,a="__lodash_hash_undefined__",l=800,u=16,d=9007199254740991,f="[object Arguments]",g="[object Array]",h="[object AsyncFunction]",v="[object Boolean]",S="[object Date]",_="[object Error]",T="[object Function]",F="[object GeneratorFunction]",N="[object Map]",$="[object Number]",M="[object Null]",E="[object Object]",ce="[object Proxy]",Ne="[object RegExp]",cr="[object Set]",ur="[object String]",Ze="[object Undefined]",Ce="[object WeakMap]",$e="[object ArrayBuffer]",pe="[object DataView]",we="[object Float32Array]",Ee="[object Float64Array]",ue="[object Int8Array]",ee="[object Int16Array]",te="[object Int32Array]",dr="[object Uint8Array]",We="[object Uint8ClampedArray]",Ie="[object Uint16Array]",fr="[object Uint32Array]",Ge=/[\\^$.*+?()[\]{}|]/g,Ve=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,P={};P[we]=P[Ee]=P[ue]=P[ee]=P[te]=P[dr]=P[We]=P[Ie]=P[fr]=!0,P[f]=P[g]=P[$e]=P[v]=P[pe]=P[S]=P[_]=P[T]=P[N]=P[$]=P[E]=P[Ne]=P[cr]=P[ur]=P[Ce]=!1;var er=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,Sr=typeof self=="object"&&self&&self.Object===Object&&self,H=er||Sr||Function("return this")(),de=r&&!r.nodeType&&r,ve=de&&!0&&e&&!e.nodeType&&e,ye=ve&&ve.exports===de,ie=ye&&er.process,_r=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||ie&&ie.binding&&ie.binding("util")}catch{}}(),Ye=_r&&_r.isTypedArray;function pr(t,s,c){switch(c.length){case 0:return t.call(s);case 1:return t.call(s,c[0]);case 2:return t.call(s,c[0],c[1]);case 3:return t.call(s,c[0],c[1],c[2])}return t.apply(s,c)}function gr(t,s){for(var c=-1,y=Array(t);++c<t;)y[c]=s(c);return y}function ge(t){return function(s){return t(s)}}function Oe(t,s){return t==null?void 0:t[s]}function hr(t,s){return function(c){return t(s(c))}}var rr=Array.prototype,Ue=Function.prototype,tr=Object.prototype,nr=H["__core-js_shared__"],He=Ue.toString,je=tr.hasOwnProperty,Rr=function(){var t=/[^.]+$/.exec(nr&&nr.keys&&nr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),xr=tr.toString,mr=He.call(Object),b=RegExp("^"+He.call(je).replace(Ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=ye?H.Buffer:void 0,V=H.Symbol,ne=H.Uint8Array;C&&C.allocUnsafe;var oe=hr(Object.getPrototypeOf,Object),ae=Object.create,Xe=tr.propertyIsEnumerable,Se=rr.splice,j=V?V.toStringTag:void 0,re=function(){try{var t=et(Object,"defineProperty");return t({},"",{}),t}catch{}}(),q=C?C.isBuffer:void 0,xe=Math.max,Le=Date.now,qe=et(H,"Map"),Y=et(Object,"create"),Ke=function(){function t(){}return function(s){if(!vr(s))return{};if(ae)return ae(s);t.prototype=s;var c=new t;return t.prototype=void 0,c}}();function he(t){var s=-1,c=t==null?0:t.length;for(this.clear();++s<c;){var y=t[s];this.set(y[0],y[1])}}function or(){this.__data__=Y?Y(null):{},this.size=0}function kr(t){var s=this.has(t)&&delete this.__data__[t];return this.size-=s?1:0,s}function Me(t){var s=this.__data__;if(Y){var c=s[t];return c===a?void 0:c}return je.call(s,t)?s[t]:void 0}function Tr(t){var s=this.__data__;return Y?s[t]!==void 0:je.call(s,t)}function Ar(t,s){var c=this.__data__;return this.size+=this.has(t)?0:1,c[t]=Y&&s===void 0?a:s,this}he.prototype.clear=or,he.prototype.delete=kr,he.prototype.get=Me,he.prototype.has=Tr,he.prototype.set=Ar;function ke(t){var s=-1,c=t==null?0:t.length;for(this.clear();++s<c;){var y=t[s];this.set(y[0],y[1])}}function Xr(){this.__data__=[],this.size=0}function qr(t){var s=this.__data__,c=Ae(s,t);if(c<0)return!1;var y=s.length-1;return c==y?s.pop():Se.call(s,c,1),--this.size,!0}function Pr(t){var s=this.__data__,c=Ae(s,t);return c<0?void 0:s[c][1]}function Br(t){return Ae(this.__data__,t)>-1}function Kr(t,s){var c=this.__data__,y=Ae(c,t);return y<0?(++this.size,c.push([t,s])):c[y][1]=s,this}ke.prototype.clear=Xr,ke.prototype.delete=qr,ke.prototype.get=Pr,ke.prototype.has=Br,ke.prototype.set=Kr;function ar(t){var s=-1,c=t==null?0:t.length;for(this.clear();++s<c;){var y=t[s];this.set(y[0],y[1])}}function Jr(){this.size=0,this.__data__={hash:new he,map:new(qe||ke),string:new he}}function Qr(t){var s=$r(this,t).delete(t);return this.size-=s?1:0,s}function n(t){return $r(this,t).get(t)}function p(t){return $r(this,t).has(t)}function m(t,s){var c=$r(this,t),y=c.size;return c.set(t,s),this.size+=c.size==y?0:1,this}ar.prototype.clear=Jr,ar.prototype.delete=Qr,ar.prototype.get=n,ar.prototype.has=p,ar.prototype.set=m;function x(t){var s=this.__data__=new ke(t);this.size=s.size}function W(){this.__data__=new ke,this.size=0}function G(t){var s=this.__data__,c=s.delete(t);return this.size=s.size,c}function O(t){return this.__data__.get(t)}function I(t){return this.__data__.has(t)}function se(t,s){var c=this.__data__;if(c instanceof ke){var y=c.__data__;if(!qe||y.length<o-1)return y.push([t,s]),this.size=++c.size,this;c=this.__data__=new ar(y)}return c.set(t,s),this.size=c.size,this}x.prototype.clear=W,x.prototype.delete=G,x.prototype.get=O,x.prototype.has=I,x.prototype.set=se;function Z(t,s){var c=nt(t),y=!c&&tt(t),B=!c&&!y&&Et(t),U=!c&&!y&&!B&&Ot(t),J=c||y||B||U,D=J?gr(t.length,String):[],Q=D.length;for(var Be in t)J&&(Be=="length"||B&&(Be=="offset"||Be=="parent")||U&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||Ct(Be,Q))||D.push(Be);return D}function K(t,s,c){(c!==void 0&&!Wr(t[s],c)||c===void 0&&!(s in t))&&Pe(t,s,c)}function be(t,s,c){var y=t[s];(!(je.call(t,s)&&Wr(y,c))||c===void 0&&!(s in t))&&Pe(t,s,c)}function Ae(t,s){for(var c=t.length;c--;)if(Wr(t[c][0],s))return c;return-1}function Pe(t,s,c){s=="__proto__"&&re?re(t,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):t[s]=c}var fe=An();function ir(t){return t==null?t===void 0?Ze:M:j&&j in Object(t)?Pn(t):Mn(t)}function Fr(t){return Cr(t)&&ir(t)==f}function Zr(t){if(!vr(t)||Wn(t))return!1;var s=at(t)?b:Ve;return s.test(Gn(t))}function _n(t){return Cr(t)&&It(t.length)&&!!P[ir(t)]}function xn(t){if(!vr(t))return Ln(t);var s=wt(t),c=[];for(var y in t)y=="constructor"&&(s||!je.call(t,y))||c.push(y);return c}function Rt(t,s,c,y,B){t!==s&&fe(s,function(U,J){if(B||(B=new x),vr(U))kn(t,s,J,c,Rt,y,B);else{var D=y?y(rt(t,J),U,J+"",t,s,B):void 0;D===void 0&&(D=U),K(t,J,D)}},jt)}function kn(t,s,c,y,B,U,J){var D=rt(t,c),Q=rt(s,c),Be=J.get(Q);if(Be){K(t,c,Be);return}var _e=U?U(D,Q,c+"",t,s,J):void 0,wr=_e===void 0;if(wr){var it=nt(Q),st=!it&&Et(Q),Pt=!it&&!st&&Ot(Q);_e=Q,it||st||Pt?nt(D)?_e=D:Vn(D)?_e=In(D):st?(wr=!1,_e=Cn(Q)):Pt?(wr=!1,_e=En(Q)):_e=[]:Yn(Q)||tt(Q)?(_e=D,tt(D)?_e=Un(D):(!vr(D)||at(D))&&(_e=Bn(Q))):wr=!1}wr&&(J.set(Q,_e),B(_e,Q,y,U,J),J.delete(Q)),K(t,c,_e)}function Tn(t,s){return zn(Dn(t,s,At),t+"")}var Rn=re?function(t,s){return re(t,"toString",{configurable:!0,enumerable:!1,value:Xn(s),writable:!0})}:At;function Cn(t,s){return t.slice()}function wn(t){var s=new t.constructor(t.byteLength);return new ne(s).set(new ne(t)),s}function En(t,s){var c=wn(t.buffer);return new t.constructor(c,t.byteOffset,t.length)}function In(t,s){var c=-1,y=t.length;for(s||(s=Array(y));++c<y;)s[c]=t[c];return s}function On(t,s,c,y){var B=!c;c||(c={});for(var U=-1,J=s.length;++U<J;){var D=s[U],Q=void 0;Q===void 0&&(Q=t[D]),B?Pe(c,D,Q):be(c,D,Q)}return c}function jn(t){return Tn(function(s,c){var y=-1,B=c.length,U=B>1?c[B-1]:void 0,J=B>2?c[2]:void 0;for(U=t.length>3&&typeof U=="function"?(B--,U):void 0,J&&Fn(c[0],c[1],J)&&(U=B<3?void 0:U,B=1),s=Object(s);++y<B;){var D=c[y];D&&t(s,D,y,U)}return s})}function An(t){return function(s,c,y){for(var B=-1,U=Object(s),J=y(s),D=J.length;D--;){var Q=J[++B];if(c(U[Q],Q,U)===!1)break}return s}}function $r(t,s){var c=t.__data__;return $n(s)?c[typeof s=="string"?"string":"hash"]:c.map}function et(t,s){var c=Oe(t,s);return Zr(c)?c:void 0}function Pn(t){var s=je.call(t,j),c=t[j];try{t[j]=void 0;var y=!0}catch{}var B=xr.call(t);return y&&(s?t[j]=c:delete t[j]),B}function Bn(t){return typeof t.constructor=="function"&&!wt(t)?Ke(oe(t)):{}}function Ct(t,s){var c=typeof t;return s=s??d,!!s&&(c=="number"||c!="symbol"&&me.test(t))&&t>-1&&t%1==0&&t<s}function Fn(t,s,c){if(!vr(c))return!1;var y=typeof s;return(y=="number"?ot(c)&&Ct(s,c.length):y=="string"&&s in c)?Wr(c[s],t):!1}function $n(t){var s=typeof t;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?t!=="__proto__":t===null}function Wn(t){return!!Rr&&Rr in t}function wt(t){var s=t&&t.constructor,c=typeof s=="function"&&s.prototype||tr;return t===c}function Ln(t){var s=[];if(t!=null)for(var c in Object(t))s.push(c);return s}function Mn(t){return xr.call(t)}function Dn(t,s,c){return s=xe(s===void 0?t.length-1:s,0),function(){for(var y=arguments,B=-1,U=xe(y.length-s,0),J=Array(U);++B<U;)J[B]=y[s+B];B=-1;for(var D=Array(s+1);++B<s;)D[B]=y[B];return D[s]=c(J),pr(t,this,D)}}function rt(t,s){if(!(s==="constructor"&&typeof t[s]=="function")&&s!="__proto__")return t[s]}var zn=Nn(Rn);function Nn(t){var s=0,c=0;return function(){var y=Le(),B=u-(y-c);if(c=y,B>0){if(++s>=l)return arguments[0]}else s=0;return t.apply(void 0,arguments)}}function Gn(t){if(t!=null){try{return He.call(t)}catch{}try{return t+""}catch{}}return""}function Wr(t,s){return t===s||t!==t&&s!==s}var tt=Fr(function(){return arguments}())?Fr:function(t){return Cr(t)&&je.call(t,"callee")&&!Xe.call(t,"callee")},nt=Array.isArray;function ot(t){return t!=null&&It(t.length)&&!at(t)}function Vn(t){return Cr(t)&&ot(t)}var Et=q||qn;function at(t){if(!vr(t))return!1;var s=ir(t);return s==T||s==F||s==h||s==ce}function It(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=d}function vr(t){var s=typeof t;return t!=null&&(s=="object"||s=="function")}function Cr(t){return t!=null&&typeof t=="object"}function Yn(t){if(!Cr(t)||ir(t)!=E)return!1;var s=oe(t);if(s===null)return!0;var c=je.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&He.call(c)==mr}var Ot=Ye?ge(Ye):_n;function Un(t){return On(t,jt(t))}function jt(t){return ot(t)?Z(t):xn(t)}var Hn=jn(function(t,s,c,y){Rt(t,s,c,y)});function Xn(t){return function(){return t}}function At(t){return t}function qn(){return!1}e.exports=Hn})(Gr,Gr.exports);var mo=Gr.exports;const lr=Kt(mo);var vo=e=>/!(important)?$/.test(e),Mt=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,bo=(e,r)=>o=>{const a=String(r),l=vo(a),u=Mt(a),d=e?`${e}.${u}`:u;let f=yr(o.__cssMap)&&d in o.__cssMap?o.__cssMap[d].varRef:r;return f=Mt(f),l?`${f} !important`:f};function St(e){const{scale:r,transform:o,compose:a}=e;return(u,d)=>{var f;const g=bo(r,u)(d);let h=(f=o==null?void 0:o(g,d))!=null?f:g;return a&&(h=a(h,d)),h}}var Dr=(...e)=>r=>e.reduce((o,a)=>a(o),r);function Te(e,r){return o=>{const a={property:o,scale:e};return a.transform=St({scale:e,transform:r}),a}}var yo=({rtl:e,ltr:r})=>o=>o.direction==="rtl"?e:r;function So(e){const{property:r,scale:o,transform:a}=e;return{scale:o,property:yo(r),transform:o?St({scale:o,compose:a}):a}}var ln=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function _o(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...ln].join(" ")}function xo(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...ln].join(" ")}var ko={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},To={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Ro(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var Co={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},dt={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},wo=new Set(Object.values(dt)),ft=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Eo=e=>e.trim();function Io(e,r){if(e==null||ft.has(e))return e;if(!(pt(e)||ft.has(e)))return`url('${e}')`;const l=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),u=l==null?void 0:l[1],d=l==null?void 0:l[2];if(!u||!d)return e;const f=u.includes("-gradient")?u:`${u}-gradient`,[g,...h]=d.split(",").map(Eo).filter(Boolean);if((h==null?void 0:h.length)===0)return e;const v=g in dt?dt[g]:g;h.unshift(v);const S=h.map(_=>{if(wo.has(_))return _;const T=_.indexOf(" "),[F,N]=T!==-1?[_.substr(0,T),_.substr(T+1)]:[_],$=pt(N)?N:N&&N.split(" "),M=`colors.${F}`,E=M in r.__cssMap?r.__cssMap[M].varRef:F;return $?[E,...Array.isArray($)?$:[$]].join(" "):E});return`${f}(${S.join(", ")})`}var pt=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Oo=(e,r)=>Io(e,r??{});function jo(e){return/^var\(--.+\)$/.test(e)}var Ao=e=>{const r=parseFloat(e.toString()),o=e.toString().replace(String(r),"");return{unitless:!o,value:r,unit:o}},De=e=>r=>`${e}(${r})`,A={filter(e){return e!=="auto"?e:ko},backdropFilter(e){return e!=="auto"?e:To},ring(e){return Ro(A.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?_o():e==="auto-gpu"?xo():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:r}=Ao(e);return r||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,r){const o={left:"right",right:"left"};return r.direction==="rtl"?o[e]:e},degree(e){if(jo(e)||e==null)return e;const r=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||r?`${e}deg`:e},gradient:Oo,blur:De("blur"),opacity:De("opacity"),brightness:De("brightness"),contrast:De("contrast"),dropShadow:De("drop-shadow"),grayscale:De("grayscale"),hueRotate:e=>De("hue-rotate")(A.degree(e)),invert:De("invert"),saturate:De("saturate"),sepia:De("sepia"),bgImage(e){return e==null||pt(e)||ft.has(e)?e:`url(${e})`},outline(e){const r=String(e)==="0"||String(e)==="none";return e!==null&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var r;const{space:o,divide:a}=(r=Co[e])!=null?r:{},l={flexDirection:e};return o&&(l[o]=1),a&&(l[a]=1),l}},i={borderWidths:Te("borderWidths"),borderStyles:Te("borderStyles"),colors:Te("colors"),borders:Te("borders"),gradients:Te("gradients",A.gradient),radii:Te("radii",A.px),space:Te("space",Dr(A.vh,A.px)),spaceT:Te("space",Dr(A.vh,A.px)),degreeT(e){return{property:e,transform:A.degree}},prop(e,r,o){return{property:e,scale:r,...r&&{transform:St({scale:r,transform:o})}}},propT(e,r){return{property:e,transform:r}},sizes:Te("sizes",Dr(A.vh,A.px)),sizesT:Te("sizes",Dr(A.vh,A.fraction)),shadows:Te("shadows"),logical:So,blur:Te("blur",A.blur)},zr={background:i.colors("background"),backgroundColor:i.colors("backgroundColor"),backgroundImage:i.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:A.bgClip},bgSize:i.prop("backgroundSize"),bgPosition:i.prop("backgroundPosition"),bg:i.colors("background"),bgColor:i.colors("backgroundColor"),bgPos:i.prop("backgroundPosition"),bgRepeat:i.prop("backgroundRepeat"),bgAttachment:i.prop("backgroundAttachment"),bgGradient:i.gradients("backgroundImage"),bgClip:{transform:A.bgClip}};Object.assign(zr,{bgImage:zr.backgroundImage,bgImg:zr.backgroundImage});var z={border:i.borders("border"),borderWidth:i.borderWidths("borderWidth"),borderStyle:i.borderStyles("borderStyle"),borderColor:i.colors("borderColor"),borderRadius:i.radii("borderRadius"),borderTop:i.borders("borderTop"),borderBlockStart:i.borders("borderBlockStart"),borderTopLeftRadius:i.radii("borderTopLeftRadius"),borderStartStartRadius:i.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:i.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:i.radii("borderTopRightRadius"),borderStartEndRadius:i.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:i.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:i.borders("borderRight"),borderInlineEnd:i.borders("borderInlineEnd"),borderBottom:i.borders("borderBottom"),borderBlockEnd:i.borders("borderBlockEnd"),borderBottomLeftRadius:i.radii("borderBottomLeftRadius"),borderBottomRightRadius:i.radii("borderBottomRightRadius"),borderLeft:i.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:i.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:i.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:i.borders(["borderLeft","borderRight"]),borderInline:i.borders("borderInline"),borderY:i.borders(["borderTop","borderBottom"]),borderBlock:i.borders("borderBlock"),borderTopWidth:i.borderWidths("borderTopWidth"),borderBlockStartWidth:i.borderWidths("borderBlockStartWidth"),borderTopColor:i.colors("borderTopColor"),borderBlockStartColor:i.colors("borderBlockStartColor"),borderTopStyle:i.borderStyles("borderTopStyle"),borderBlockStartStyle:i.borderStyles("borderBlockStartStyle"),borderBottomWidth:i.borderWidths("borderBottomWidth"),borderBlockEndWidth:i.borderWidths("borderBlockEndWidth"),borderBottomColor:i.colors("borderBottomColor"),borderBlockEndColor:i.colors("borderBlockEndColor"),borderBottomStyle:i.borderStyles("borderBottomStyle"),borderBlockEndStyle:i.borderStyles("borderBlockEndStyle"),borderLeftWidth:i.borderWidths("borderLeftWidth"),borderInlineStartWidth:i.borderWidths("borderInlineStartWidth"),borderLeftColor:i.colors("borderLeftColor"),borderInlineStartColor:i.colors("borderInlineStartColor"),borderLeftStyle:i.borderStyles("borderLeftStyle"),borderInlineStartStyle:i.borderStyles("borderInlineStartStyle"),borderRightWidth:i.borderWidths("borderRightWidth"),borderInlineEndWidth:i.borderWidths("borderInlineEndWidth"),borderRightColor:i.colors("borderRightColor"),borderInlineEndColor:i.colors("borderInlineEndColor"),borderRightStyle:i.borderStyles("borderRightStyle"),borderInlineEndStyle:i.borderStyles("borderInlineEndStyle"),borderTopRadius:i.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:i.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:i.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:i.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(z,{rounded:z.borderRadius,roundedTop:z.borderTopRadius,roundedTopLeft:z.borderTopLeftRadius,roundedTopRight:z.borderTopRightRadius,roundedTopStart:z.borderStartStartRadius,roundedTopEnd:z.borderStartEndRadius,roundedBottom:z.borderBottomRadius,roundedBottomLeft:z.borderBottomLeftRadius,roundedBottomRight:z.borderBottomRightRadius,roundedBottomStart:z.borderEndStartRadius,roundedBottomEnd:z.borderEndEndRadius,roundedLeft:z.borderLeftRadius,roundedRight:z.borderRightRadius,roundedStart:z.borderInlineStartRadius,roundedEnd:z.borderInlineEndRadius,borderStart:z.borderInlineStart,borderEnd:z.borderInlineEnd,borderTopStartRadius:z.borderStartStartRadius,borderTopEndRadius:z.borderStartEndRadius,borderBottomStartRadius:z.borderEndStartRadius,borderBottomEndRadius:z.borderEndEndRadius,borderStartRadius:z.borderInlineStartRadius,borderEndRadius:z.borderInlineEndRadius,borderStartWidth:z.borderInlineStartWidth,borderEndWidth:z.borderInlineEndWidth,borderStartColor:z.borderInlineStartColor,borderEndColor:z.borderInlineEndColor,borderStartStyle:z.borderInlineStartStyle,borderEndStyle:z.borderInlineEndStyle});var Po={color:i.colors("color"),textColor:i.colors("color"),fill:i.colors("fill"),stroke:i.colors("stroke")},gt={boxShadow:i.shadows("boxShadow"),mixBlendMode:!0,blendMode:i.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:i.prop("backgroundBlendMode"),opacity:!0};Object.assign(gt,{shadow:gt.boxShadow});var Bo={filter:{transform:A.filter},blur:i.blur("--chakra-blur"),brightness:i.propT("--chakra-brightness",A.brightness),contrast:i.propT("--chakra-contrast",A.contrast),hueRotate:i.propT("--chakra-hue-rotate",A.hueRotate),invert:i.propT("--chakra-invert",A.invert),saturate:i.propT("--chakra-saturate",A.saturate),dropShadow:i.propT("--chakra-drop-shadow",A.dropShadow),backdropFilter:{transform:A.backdropFilter},backdropBlur:i.blur("--chakra-backdrop-blur"),backdropBrightness:i.propT("--chakra-backdrop-brightness",A.brightness),backdropContrast:i.propT("--chakra-backdrop-contrast",A.contrast),backdropHueRotate:i.propT("--chakra-backdrop-hue-rotate",A.hueRotate),backdropInvert:i.propT("--chakra-backdrop-invert",A.invert),backdropSaturate:i.propT("--chakra-backdrop-saturate",A.saturate)},Vr={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:A.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:i.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:i.space("gap"),rowGap:i.space("rowGap"),columnGap:i.space("columnGap")};Object.assign(Vr,{flexDir:Vr.flexDirection});var cn={gridGap:i.space("gridGap"),gridColumnGap:i.space("gridColumnGap"),gridRowGap:i.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Fo={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:A.outline},outlineOffset:!0,outlineColor:i.colors("outlineColor")},Re={width:i.sizesT("width"),inlineSize:i.sizesT("inlineSize"),height:i.sizes("height"),blockSize:i.sizes("blockSize"),boxSize:i.sizes(["width","height"]),minWidth:i.sizes("minWidth"),minInlineSize:i.sizes("minInlineSize"),minHeight:i.sizes("minHeight"),minBlockSize:i.sizes("minBlockSize"),maxWidth:i.sizes("maxWidth"),maxInlineSize:i.sizes("maxInlineSize"),maxHeight:i.sizes("maxHeight"),maxBlockSize:i.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,r)=>{var o,a,l;return{[`@media screen and (min-width: ${(l=(a=(o=r.__breakpoints)==null?void 0:o.get(e))==null?void 0:a.minW)!=null?l:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,r)=>{var o,a,l;return{[`@media screen and (max-width: ${(l=(a=(o=r.__breakpoints)==null?void 0:o.get(e))==null?void 0:a._minW)!=null?l:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:i.propT("float",A.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Re,{w:Re.width,h:Re.height,minW:Re.minWidth,maxW:Re.maxWidth,minH:Re.minHeight,maxH:Re.maxHeight,overscroll:Re.overscrollBehavior,overscrollX:Re.overscrollBehaviorX,overscrollY:Re.overscrollBehaviorY});var $o={listStyleType:!0,listStylePosition:!0,listStylePos:i.prop("listStylePosition"),listStyleImage:!0,listStyleImg:i.prop("listStyleImage")};function Wo(e,r,o,a){const l=typeof r=="string"?r.split("."):[r];for(a=0;a<l.length&&e;a+=1)e=e[l[a]];return e===void 0?o:e}var Lo=e=>{const r=new WeakMap;return(a,l,u,d)=>{if(typeof a>"u")return e(a,l,u);r.has(a)||r.set(a,new Map);const f=r.get(a);if(f.has(l))return f.get(l);const g=e(a,l,u,d);return f.set(l,g),g}},Mo=Lo(Wo),Do={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},zo={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},lt=(e,r,o)=>{const a={},l=Mo(e,r,{});for(const u in l)u in o&&o[u]!=null||(a[u]=l[u]);return a},No={srOnly:{transform(e){return e===!0?Do:e==="focusable"?zo:{}}},layerStyle:{processResult:!0,transform:(e,r,o)=>lt(r,`layerStyles.${e}`,o)},textStyle:{processResult:!0,transform:(e,r,o)=>lt(r,`textStyles.${e}`,o)},apply:{processResult:!0,transform:(e,r,o)=>lt(r,e,o)}},jr={position:!0,pos:i.prop("position"),zIndex:i.prop("zIndex","zIndices"),inset:i.spaceT("inset"),insetX:i.spaceT(["left","right"]),insetInline:i.spaceT("insetInline"),insetY:i.spaceT(["top","bottom"]),insetBlock:i.spaceT("insetBlock"),top:i.spaceT("top"),insetBlockStart:i.spaceT("insetBlockStart"),bottom:i.spaceT("bottom"),insetBlockEnd:i.spaceT("insetBlockEnd"),left:i.spaceT("left"),insetInlineStart:i.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:i.spaceT("right"),insetInlineEnd:i.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(jr,{insetStart:jr.insetInlineStart,insetEnd:jr.insetInlineEnd});var Go={ring:{transform:A.ring},ringColor:i.colors("--chakra-ring-color"),ringOffset:i.prop("--chakra-ring-offset-width"),ringOffsetColor:i.colors("--chakra-ring-offset-color"),ringInset:i.prop("--chakra-ring-inset")},X={margin:i.spaceT("margin"),marginTop:i.spaceT("marginTop"),marginBlockStart:i.spaceT("marginBlockStart"),marginRight:i.spaceT("marginRight"),marginInlineEnd:i.spaceT("marginInlineEnd"),marginBottom:i.spaceT("marginBottom"),marginBlockEnd:i.spaceT("marginBlockEnd"),marginLeft:i.spaceT("marginLeft"),marginInlineStart:i.spaceT("marginInlineStart"),marginX:i.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:i.spaceT("marginInline"),marginY:i.spaceT(["marginTop","marginBottom"]),marginBlock:i.spaceT("marginBlock"),padding:i.space("padding"),paddingTop:i.space("paddingTop"),paddingBlockStart:i.space("paddingBlockStart"),paddingRight:i.space("paddingRight"),paddingBottom:i.space("paddingBottom"),paddingBlockEnd:i.space("paddingBlockEnd"),paddingLeft:i.space("paddingLeft"),paddingInlineStart:i.space("paddingInlineStart"),paddingInlineEnd:i.space("paddingInlineEnd"),paddingX:i.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:i.space("paddingInline"),paddingY:i.space(["paddingTop","paddingBottom"]),paddingBlock:i.space("paddingBlock")};Object.assign(X,{m:X.margin,mt:X.marginTop,mr:X.marginRight,me:X.marginInlineEnd,marginEnd:X.marginInlineEnd,mb:X.marginBottom,ml:X.marginLeft,ms:X.marginInlineStart,marginStart:X.marginInlineStart,mx:X.marginX,my:X.marginY,p:X.padding,pt:X.paddingTop,py:X.paddingY,px:X.paddingX,pb:X.paddingBottom,pl:X.paddingLeft,ps:X.paddingInlineStart,paddingStart:X.paddingInlineStart,pr:X.paddingRight,pe:X.paddingInlineEnd,paddingEnd:X.paddingInlineEnd});var Vo={textDecorationColor:i.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:i.shadows("textShadow")},Yo={clipPath:!0,transform:i.propT("transform",A.transform),transformOrigin:!0,translateX:i.spaceT("--chakra-translate-x"),translateY:i.spaceT("--chakra-translate-y"),skewX:i.degreeT("--chakra-skew-x"),skewY:i.degreeT("--chakra-skew-y"),scaleX:i.prop("--chakra-scale-x"),scaleY:i.prop("--chakra-scale-y"),scale:i.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:i.degreeT("--chakra-rotate")},Uo={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:i.prop("transitionDuration","transition.duration"),transitionProperty:i.prop("transitionProperty","transition.property"),transitionTimingFunction:i.prop("transitionTimingFunction","transition.easing")},Ho={fontFamily:i.prop("fontFamily","fonts"),fontSize:i.prop("fontSize","fontSizes",A.px),fontWeight:i.prop("fontWeight","fontWeights"),lineHeight:i.prop("lineHeight","lineHeights"),letterSpacing:i.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Xo={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:i.spaceT("scrollMargin"),scrollMarginTop:i.spaceT("scrollMarginTop"),scrollMarginBottom:i.spaceT("scrollMarginBottom"),scrollMarginLeft:i.spaceT("scrollMarginLeft"),scrollMarginRight:i.spaceT("scrollMarginRight"),scrollMarginX:i.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:i.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:i.spaceT("scrollPadding"),scrollPaddingTop:i.spaceT("scrollPaddingTop"),scrollPaddingBottom:i.spaceT("scrollPaddingBottom"),scrollPaddingLeft:i.spaceT("scrollPaddingLeft"),scrollPaddingRight:i.spaceT("scrollPaddingRight"),scrollPaddingX:i.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:i.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function un(e){return yr(e)&&e.reference?e.reference:String(e)}var Ur=(e,...r)=>r.map(un).join(` ${e} `).replace(/calc/g,""),Dt=(...e)=>`calc(${Ur("+",...e)})`,zt=(...e)=>`calc(${Ur("-",...e)})`,ht=(...e)=>`calc(${Ur("*",...e)})`,Nt=(...e)=>`calc(${Ur("/",...e)})`,Gt=e=>{const r=un(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:ht(r,-1)},Or=Object.assign(e=>({add:(...r)=>Or(Dt(e,...r)),subtract:(...r)=>Or(zt(e,...r)),multiply:(...r)=>Or(ht(e,...r)),divide:(...r)=>Or(Nt(e,...r)),negate:()=>Or(Gt(e)),toString:()=>e.toString()}),{add:Dt,subtract:zt,multiply:ht,divide:Nt,negate:Gt});function qo(e){const r=parseFloat(e.toString()),o=e.toString().replace(String(r),"");return{unitless:!o,value:r,unit:o}}function Vt(e){if(e==null)return e;const{unitless:r}=qo(e);return r||typeof e=="number"?`${e}px`:e}function Ko(e,r){const o=["@media screen"];return e&&o.push("and",`(min-width: ${Vt(e)})`),r&&o.push("and",`(max-width: ${Vt(r)})`),o.join(" ")}var le={hover:(e,r)=>`${e}:hover ${r}, ${e}[data-hover] ${r}`,focus:(e,r)=>`${e}:focus ${r}, ${e}[data-focus] ${r}`,focusVisible:(e,r)=>`${e}:focus-visible ${r}`,focusWithin:(e,r)=>`${e}:focus-within ${r}`,active:(e,r)=>`${e}:active ${r}, ${e}[data-active] ${r}`,disabled:(e,r)=>`${e}:disabled ${r}, ${e}[data-disabled] ${r}`,invalid:(e,r)=>`${e}:invalid ${r}, ${e}[data-invalid] ${r}`,checked:(e,r)=>`${e}:checked ${r}, ${e}[data-checked] ${r}`,indeterminate:(e,r)=>`${e}:indeterminate ${r}, ${e}[aria-checked=mixed] ${r}, ${e}[data-indeterminate] ${r}`,readOnly:(e,r)=>`${e}:read-only ${r}, ${e}[readonly] ${r}, ${e}[data-read-only] ${r}`,expanded:(e,r)=>`${e}:read-only ${r}, ${e}[aria-expanded=true] ${r}, ${e}[data-expanded] ${r}`,placeholderShown:(e,r)=>`${e}:placeholder-shown ${r}`},sr=e=>dn(r=>e(r,"&"),"[role=group]","[data-group]",".group"),Je=e=>dn(r=>e(r,"~ &"),"[data-peer]",".peer"),dn=(e,...r)=>r.map(e).join(", "),_t={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:sr(le.hover),_peerHover:Je(le.hover),_groupFocus:sr(le.focus),_peerFocus:Je(le.focus),_groupFocusVisible:sr(le.focusVisible),_peerFocusVisible:Je(le.focusVisible),_groupActive:sr(le.active),_peerActive:Je(le.active),_groupDisabled:sr(le.disabled),_peerDisabled:Je(le.disabled),_groupInvalid:sr(le.invalid),_peerInvalid:Je(le.invalid),_groupChecked:sr(le.checked),_peerChecked:Je(le.checked),_groupFocusWithin:sr(le.focusWithin),_peerFocusWithin:Je(le.focusWithin),_peerPlaceholderShown:Je(le.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Jo=Object.keys(_t);function Qo(e,r=[]){const o=Object.assign({},e);for(const a of r)a in o&&delete o[a];return o}var xt=lr({},zr,z,Po,Vr,Re,Bo,Go,Fo,cn,No,jr,gt,X,Xo,Ho,Vo,Yo,$o,Uo);Object.assign({},X,Re,Vr,cn,jr);var Zo=[...Object.keys(xt),...Jo],ea={...xt,..._t},ra=e=>e in ea,ta=e=>r=>{if(!r.__breakpoints)return e;const{isResponsive:o,toArrayValue:a,media:l}=r.__breakpoints,u={};for(const d in e){let f=br(e[d],r);if(f==null)continue;if(f=yr(f)&&o(f)?a(f):f,!Array.isArray(f)){u[d]=f;continue}const g=f.slice(0,l.length).length;for(let h=0;h<g;h+=1){const v=l==null?void 0:l[h];if(!v){u[d]=f[h];continue}u[v]=u[v]||{},f[h]!=null&&(u[v][d]=f[h])}}return u};function na(e){const r=[];let o="",a=!1;for(let l=0;l<e.length;l++){const u=e[l];u==="("?(a=!0,o+=u):u===")"?(a=!1,o+=u):u===","&&!a?(r.push(o),o=""):o+=u}return o=o.trim(),o&&r.push(o),r}function oa(e){return/^var\(--.+\)$/.test(e)}var aa=(e,r)=>e.startsWith("--")&&typeof r=="string"&&!oa(r),ia=(e,r)=>{var o,a;if(r==null)return r;const l=g=>{var h,v;return(v=(h=e.__cssMap)==null?void 0:h[g])==null?void 0:v.varRef},u=g=>{var h;return(h=l(g))!=null?h:g},[d,f]=na(r);return r=(a=(o=l(d))!=null?o:u(f))!=null?a:u(r),r};function sa(e){const{configs:r={},pseudos:o={},theme:a}=e,l=(u,d=!1)=>{var f,g,h;const v=br(u,a),S=ta(v)(a);let _={};for(let T in S){const F=S[T];let N=br(F,a);T in o&&(T=o[T]),aa(T,N)&&(N=ia(a,N));let $=r[T];if($===!0&&($={property:T}),yr(N)){_[T]=(f=_[T])!=null?f:{},_[T]=lr({},_[T],l(N,!0));continue}let M=(h=(g=$==null?void 0:$.transform)==null?void 0:g.call($,N,a,v))!=null?h:N;M=$!=null&&$.processResult?l(M,!0):M;const E=br($==null?void 0:$.property,a);if(!d&&($!=null&&$.static)){const ce=br($.static,a);_=lr({},_,ce)}if(E&&Array.isArray(E)){for(const ce of E)_[ce]=M;continue}if(E){E==="&"&&yr(M)?_=lr({},_,M):_[E]=M;continue}if(yr(M)){_=lr({},_,M);continue}_[T]=M}return _};return l}var la=e=>r=>sa({theme:r,pseudos:_t,configs:xt})(e);function ca(e,r){if(Array.isArray(e))return e;if(yr(e))return r(e);if(e!=null)return[e]}function ua(e,r){for(let o=r+1;o<e.length;o++)if(e[o]!=null)return o;return-1}function da(e){const r=e.__breakpoints;return function(a,l,u,d){var f,g;if(!r)return;const h={},v=ca(u,r.toArrayValue);if(!v)return h;const S=v.length,_=S===1,T=!!a.parts;for(let F=0;F<S;F++){const N=r.details[F],$=r.details[ua(v,F)],M=Ko(N.minW,$==null?void 0:$._minW),E=br((f=a[l])==null?void 0:f[v[F]],d);if(E){if(T){(g=a.parts)==null||g.forEach(ce=>{lr(h,{[ce]:_?E[ce]:{[M]:E[ce]}})});continue}if(!T){_?lr(h,E):h[M]=E;continue}h[M]=E}}return h}}function fa(e){return r=>{var o;const{variant:a,size:l,theme:u}=r,d=da(u);return lr({},br((o=e.baseStyle)!=null?o:{},r),d(e,"sizes",l,r),d(e,"variants",a,r))}}function pa(e){return Qo(e,["styleConfig","size","variant","colorScheme"])}var ga=typeof Element<"u",ha=typeof Map=="function",ma=typeof Set=="function",va=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Nr(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,a,l;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(a=o;a--!==0;)if(!Nr(e[a],r[a]))return!1;return!0}var u;if(ha&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(u=e.entries();!(a=u.next()).done;)if(!r.has(a.value[0]))return!1;for(u=e.entries();!(a=u.next()).done;)if(!Nr(a.value[1],r.get(a.value[0])))return!1;return!0}if(ma&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(u=e.entries();!(a=u.next()).done;)if(!r.has(a.value[0]))return!1;return!0}if(va&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(o=e.length,o!=r.length)return!1;for(a=o;a--!==0;)if(e[a]!==r[a])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();if(l=Object.keys(e),o=l.length,o!==Object.keys(r).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[a]))return!1;if(ga&&e instanceof Element)return!1;for(a=o;a--!==0;)if(!((l[a]==="_owner"||l[a]==="__v"||l[a]==="__o")&&e.$$typeof)&&!Nr(e[l[a]],r[l[a]]))return!1;return!0}return e!==e&&r!==r}var ba=function(r,o){try{return Nr(r,o)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const ya=Kt(ba);function fn(e,r={}){var o;const{styleConfig:a,...l}=r,{theme:u,colorMode:d}=go(),f=e?R.memoizedGet(u,`components.${e}`):void 0,g=a||f,h=R.mergeWith({theme:u,colorMode:d},(o=g==null?void 0:g.defaultProps)!=null?o:{},R.filterUndefined(R.omit(l,["children"]))),v=w.useRef({});if(g){const _=fa(g)(h);ya(v.current,_)||(v.current=_)}return v.current}function Sa(e,r={}){return fn(e,r)}function _a(e,r={}){return fn(e,r)}var xa=new Set([...Zo,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),ka=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Ta(e){return ka.has(e)||!xa.has(e)}function Ra(e,...r){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const o={...e};for(const a of r)if(a!=null)for(const l in a)Object.prototype.hasOwnProperty.call(a,l)&&(l in o&&delete o[l],o[l]=a[l]);return o}var Yt,Ca=(Yt=Bt.default)!=null?Yt:Bt,wa=({baseStyle:e})=>r=>{const{theme:o,css:a,__css:l,sx:u,...d}=r,f=R.objectFilter(d,(S,_)=>ra(_)),g=R.runIfFn(e,r),h=Ra({},l,g,R.filterUndefined(f),u),v=la(h)(r.theme);return a?[v,a]:v};function ct(e,r){const{baseStyle:o,...a}=r??{};a.shouldForwardProp||(a.shouldForwardProp=Ta);const l=wa({baseStyle:o}),u=Ca(e,a)(l);return w.forwardRef(function(g,h){const{colorMode:v,forced:S}=sn();return w.createElement(u,{ref:h,"data-theme":S?v:void 0,...g})})}function Ea(){const e=new Map;return new Proxy(ct,{apply(r,o,a){return ct(...a)},get(r,o){return e.has(o)||e.set(o,ct(o)),e.get(o)}})}var ze=Ea();function Fe(e){return w.forwardRef(e)}var Ut={path:k.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),k.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),k.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Hr=Fe((e,r)=>{const{as:o,viewBox:a,color:l="currentColor",focusable:u=!1,children:d,className:f,__css:g,...h}=e,v=yt("chakra-icon",f),S=Sa("Icon",e),_={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l,...g,...S},T={ref:r,focusable:u,className:v,__css:_},F=a??Ut.viewBox;if(o&&typeof o!="string")return k.jsx(ze.svg,{as:o,...T,...h});const N=d??Ut.path;return k.jsx(ze.svg,{verticalAlign:"middle",viewBox:F,...T,...h,children:N})});Hr.displayName="Icon";function Ia(e,r){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${r}`}function Oa(e={}){const{name:r,strict:o=!0,hookName:a="useContext",providerName:l="Provider",errorMessage:u,defaultValue:d}=e,f=w.createContext(d);f.displayName=r;function g(){var h;const v=w.useContext(f);if(!v&&o){const S=new Error(u??Ia(a,l));throw S.name="ContextError",(h=Error.captureStackTrace)==null||h.call(Error,S,g),S}return v}return[f.Provider,g,f]}var ja=Fe(function(r,o){const{spacing:a="0.5rem",spacingX:l,spacingY:u,children:d,justify:f,direction:g,align:h,className:v,shouldWrapChildren:S,..._}=r,T=w.useMemo(()=>S?w.Children.map(d,(F,N)=>k.jsx(kt,{children:F},N)):d,[d,S]);return k.jsx(ze.div,{ref:o,className:yt("chakra-wrap",v),..._,children:k.jsx(ze.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:f,alignItems:h,flexDirection:g,listStyleType:"none",gap:a,columnGap:l,rowGap:u,padding:"0"},children:T})})});ja.displayName="Wrap";var kt=Fe(function(r,o){const{className:a,...l}=r;return k.jsx(ze.li,{ref:o,__css:{display:"flex",alignItems:"flex-start"},className:yt("chakra-wrap__listitem",a),...l})});kt.displayName="WrapItem";var Tt=ze("div");Tt.displayName="Box";var pn=Fe(function(r,o){const{size:a,centerContent:l=!0,...u}=r,d=l?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return k.jsx(Tt,{ref:o,boxSize:a,__css:{...d,flexShrink:0,flexGrow:0},...u})});pn.displayName="Square";var Aa=Fe(function(r,o){const{size:a,...l}=r;return k.jsx(pn,{size:a,ref:o,borderRadius:"9999px",...l})});Aa.displayName="Circle";var gn=Fe(function(r,o){const{direction:a,align:l,justify:u,wrap:d,basis:f,grow:g,shrink:h,...v}=r,S={display:"flex",flexDirection:a,alignItems:l,justifyContent:u,flexWrap:d,flexBasis:f,flexGrow:g,flexShrink:h};return k.jsx(ze.div,{ref:o,__css:S,...v})});gn.displayName="Flex";const Pa=e=>{const{getEmptyStateProps:r,defaultEmptyStateProps:o}=Qe(),a=r(k.jsx(gn,{...Ba,...o,children:"No options found!"}));return k.jsx(Tt,{...e,children:a})},Ba={fontSize:"sm",align:"center",justify:"center",fontWeight:"bold",fontStyle:"italic"},Ht=["AutoCompleteGroup","AutoCompleteItem","AutoCompleteCreatable"],Fa=e=>{const r=w.Children.map(e,(l,u)=>{var d;if(((d=l==null?void 0:l.type)==null?void 0:d.displayName)==="AutoCompleteGroup"){const f=w.Children.toArray(e)[u+1];return w.cloneElement(l,{groupSibling:f?f.type.displayName==="AutoCompleteGroup":!1})}return l}),o=w.Children.toArray(r).filter(l=>{var u;return!Ht.includes((u=l==null?void 0:l.type)==null?void 0:u.displayName)});return[w.Children.toArray(r).filter(l=>{var u;return Ht.includes((u=l==null?void 0:l.type)==null?void 0:u.displayName)}),o]},hn=L.forwardRef((e,r)=>{const{children:o,loadingState:a,...l}=e,{listRef:u,isLoading:d}=Qe(),f=L.useMergeRefs(r,u),[g,h]=Fa(o);return k.jsxs(L.PopoverContent,{ref:f,w:"inherit",...$a,...l,children:[d&&k.jsx(L.Center,{children:a||k.jsx(L.Spinner,{size:"md"})}),!d&&k.jsxs(k.Fragment,{children:[g,k.jsx(Pa,{}),h]})]})});hn.displayName="AutoCompleteList";const $a={py:"4",opacity:"0",bg:"#232934",rounded:"md",maxH:"350px",border:"none",shadow:"base",zIndex:"popover",overflowY:"auto",_light:{bg:"#ffffff"},_focus:{boxShadow:"none"}};var[Wa,mn]=Oa({name:"TagStylesContext",errorMessage:`useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tag />" `}),vn=Fe((e,r)=>{const o=_a("Tag",e),a=pa(e),l={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...o.container};return k.jsx(Wa,{value:o,children:k.jsx(ze.span,{ref:r,...a,__css:l})})});vn.displayName="Tag";var bn=Fe((e,r)=>{const o=mn();return k.jsx(ze.span,{ref:r,noOfLines:1,...e,__css:o.label})});bn.displayName="TagLabel";var La=Fe((e,r)=>k.jsx(Hr,{ref:r,verticalAlign:"top",marginEnd:"0.5rem",...e}));La.displayName="TagLeftIcon";var Ma=Fe((e,r)=>k.jsx(Hr,{ref:r,verticalAlign:"top",marginStart:"0.5rem",...e}));Ma.displayName="TagRightIcon";var yn=e=>k.jsx(Hr,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:k.jsx("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});yn.displayName="TagCloseIcon";var Sn=Fe((e,r)=>{const{isDisabled:o,children:a,...l}=e,d={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...mn().closeButton};return k.jsx(ze.button,{ref:r,"aria-label":"close",...l,type:"button",disabled:o,__css:d,children:a||k.jsx(yn,{})})});Sn.displayName="TagCloseButton";const Da=w.memo(e=>{const{label:r,onRemove:o,disabled:a,...l}=e;return k.jsx(kt,{children:k.jsxs(vn,{borderRadius:"md",fontWeight:"normal",...a&&Xt,...l,children:[k.jsx(bn,{children:r}),k.jsx(Sn,{onClick:()=>!a&&R.runIfFn(o),cursor:"pointer",...a&&Xt})]})})}),Xt={cursor:"text",userSelect:"none",opacity:.4,_focus:{boxShadow:"none"}};exports.AutoComplete=en;exports.AutoCompleteCreatable=tn;exports.AutoCompleteGroup=nn;exports.AutoCompleteGroupTitle=on;exports.AutoCompleteInput=bt;exports.AutoCompleteItem=rn;exports.AutoCompleteList=hn;exports.AutoCompleteProvider=Jt;exports.AutoCompleteTag=Da;exports.baseItemStyles=vt;exports.useAutoComplete=Zt;exports.useAutoCompleteContext=Qe;
30
+ <%s key={someKey} {...props} />`,ir,Pe,Fr,Pe),Pr[Pe+ir]=!0}}return n===a?qr(K):Xr(K),K}}function Kr(n,p,m){return Br(n,p,m,!0)}function ar(n,p,m){return Br(n,p,m,!1)}var Jr=ar,Qr=Kr;Ir.Fragment=a,Ir.jsx=Jr,Ir.jsxs=Qr}()),Ir}process.env.NODE_ENV==="production"?ut.exports=Zn():ut.exports=eo();var k=ut.exports;const[Jt,Qe]=Kn.createContext({name:"AutoCompleteContext",errorMessage:"useAutoCompleteContext: `context` is undefined. Seems you forgot to wrap all autoomplete components within `<AutoComplete />`"});var Yr=function(e,r){for(var o,a=qt.Children.toArray(e),l=0,u=a;l<u.length;l++){var d=u[l];if(r(d))return d;if(!((o=d.props)===null||o===void 0)&&o.children){var f=Yr(d.props.children,r);if(f)return f}}},Mr=function(e,r){for(var o=0,a=r.length,l=e.length;o<a;o++,l++)e[l]=r[o];return e},Qt=function(e,r){for(var o,a=qt.Children.toArray(e),l=[],u=0,d=a;u<d.length;u++){var f=d[u];r(f)&&(l=Mr(Mr([],l),[f])),!((o=f.props)===null||o===void 0)&&o.children&&(l=Mr(Mr([],l),Qt(f.props.children,r)))}return l};function Wt(e,r,o=2){function a(S,_){S=" ".repeat(_-1)+S.toLowerCase()+" ".repeat(_-1);let T=new Array(S.length-_+1);for(let F=0;F<T.length;F++)T[F]=S.slice(F,F+_);return T}if(!(e!=null&&e.length)||!(r!=null&&r.length))return 0;let l=e.length<r.length?e:r,u=e.length<r.length?r:e,d=a(l,o),f=a(u,o),g=new Set(d),h=f.length,v=0;for(let S of f)g.delete(S)&&v++;return v/h}const mt=e=>{var r;return(r=typeof e=="string"||typeof e=="number"?e:e[Object.keys(e)[0]])==null?void 0:r.toString()},ro=(e,r)=>typeof e!="string"||R.isEmpty(r)?e:e.toString().replace(new RegExp(ao(r),"gi"),a=>`<mark>${a}</mark>`),to=e=>Qt(e,o=>{var a;return((a=o==null?void 0:o.type)==null?void 0:a.displayName)==="AutoCompleteItem"}).map(o=>{const a=R.pick(o.props,["value","label","fixed","disabled"]),{getValue:l=mt}=o.props,u=l(a.value);return{...R.isDefined(a.label)?a:{...a,label:u},value:u,originalValue:a.value}}),no=()=>({bg:"whiteAlpha.100",_light:{bg:"gray.200"}}),oo=(e,r,o)=>(r==null?void 0:r.toLowerCase().indexOf(e==null?void 0:e.toLowerCase()))>=0||(o==null?void 0:o.toLowerCase().indexOf(e==null?void 0:e.toLowerCase()))>=0||Wt(e,r)>=.5||Wt(e,o)>=.5;function ao(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const io=(e,r)=>Yr(e,a=>{var l;return((l=a==null?void 0:a.type)==null?void 0:l.displayName)==="AutoCompleteItem"&&a.props.value===(r==null?void 0:r.value)}),so=(e,r)=>Yr(e,a=>{var l;return((l=a==null?void 0:a.type)==null?void 0:l.displayName)==="AutoCompleteItem"&&a.props.value===(r==null?void 0:r.value)}),lo=(e,r)=>R.isDefined(Yr(e,o=>{var l,u;const a=R.runIfFn(((l=o.props)==null?void 0:l.getValue)||mt,((u=o.props)==null?void 0:u.value)||{});return r.some(d=>d.value===a)})),co=(e,r)=>{const o={},a={},{field:l}=e;return l&&Object.keys(l).forEach(u=>{if(u.startsWith("--input")===!1)o[u]=l[u];else{let d=l[u];const g=u.replace("--input-","").replace(/-([a-z])/g,function(h){return h[1].toUpperCase()});d.indexOf(".")!==-1&&(d=d.substring(d.indexOf(".")+1)),a[g]=d}}),{...r&&{...o,...a,_focusWithin:e.field._focus,pos:"relative",minH:9,py:1.5,spacing:3},cursor:"text",h:"fit-content"}};function Zt(e){var mr;let{prefocusFirstItem:r=!0,closeOnBlur:o=!0,creatable:a,emphasize:l,emptyState:u=!0,defaultEmptyStateProps:d={},freeSolo:f,isReadOnly:g,listAllValuesOnFocus:h,maxSuggestions:v,multiple:S,closeOnSelect:_=!S,defaultValue:T,defaultValues:F=T?[T]:[],onReady:N,defaultIsOpen:$,disableFilter:M,isLoading:E=!1,placement:ue="bottom",restoreOnBlurIfEmpty:Ne=!f,shouldRenderSuggestions:cr=()=>!0,submitKeys:ur=[],suggestWhenEmpty:Ze,value:Ce,values:$e=Ce?typeof Ce=="string"?[Ce]:[...Ce]:void 0}=e;f=f||(S?!0:e.freeSolo);const{isOpen:ge,onClose:we,onOpen:Ee}=L.useDisclosure({defaultIsOpen:$}),de=w.useMemo(()=>R.runIfFn(e.children,{isOpen:ge,onClose:we,onOpen:Ee}),[e.children,ge]),ee=w.useMemo(()=>to(de),[de]),te=w.useRef(null),dr=w.useRef(null),We=w.useRef(null),Ie=w.useRef(null),[fr,Ge]=w.useState(!1);let Ve="";S?Ve="":R.isUndefined(F)?R.isUndefined($e)||(Ve=$e[0]):Ve=F[0];const[me,P]=w.useState(Ve??""),er=w.useMemo(()=>M?ee:ee.filter(b=>b.fixed||R.runIfFn(e.filter||oo,me,b.value,b.label)||fr).filter((b,C)=>v?b.fixed||C<v:!0),[me,ee,fr,v,M]),Sr=a?[{value:me,noFilter:!0,creatable:!0}]:[],H=w.useMemo(()=>[...er,...Sr],[er,Sr]),[fe,ve]=L.useControllableState({defaultValue:F.map(b=>b==null?void 0:b.toString()),value:$e,onChange:b=>{const C=H.find(ne=>ne.value===b[0]),V=b.map(ne=>H.find(oe=>oe.value===ne));R.runIfFn(e.onChange,S?b:b[0],S?V:C)}}),[ye,ie]=w.useState(r?(mr=ee[0])==null?void 0:mr.value:null),_r=e.maxSelections||fe.length+1,Ye=H.findIndex(b=>b.value===ye),pr=R.getNextItem(Ye,H,!!e.rollNavigation),gr=R.getPrevItem(Ye,H,!!e.rollNavigation),se=R.getFirstItem(H),Oe=R.getLastItem(H),hr=!H.some(b=>b.value===ye);w.useEffect(()=>{var b;hr&&ie(r?(b=ee[0])==null?void 0:b.value:null)},[hr]),L.useUpdateEffect(()=>{r&&ie(se==null?void 0:se.value)},[me,se==null?void 0:se.value]),w.useEffect(()=>{var b;!ge&&r&&ie((b=ee[0])==null?void 0:b.value)},[ge]),w.useEffect(()=>{ge&&h&&Ge(!0)},[ge,h,Ge]),w.useEffect(()=>{const b=ee.find(C=>C.value===ye);R.runIfFn(e.onOptionFocus,{item:b,focusMethod:Ie.current,isNewInput:b==null?void 0:b.creatable})},[ye,e.onOptionFocus]);const rr=b=>{var ne,oe;const C=H.find(ae=>ae.value===b),V=(C==null?void 0:C.label)||(C==null?void 0:C.value);P(()=>S?"":V??""),!fe.includes(b)&&fe.length<_r&&ve(ae=>S?[...ae,b]:[b]),S&&((ne=te.current)==null||ne.focus()),e.focusInputOnSelect&&((oe=te.current)==null||oe.focus()),R.runIfFn(e.onSelectOption,{item:C,selectMethod:Ie.current,isNewInput:C==null?void 0:C.creatable}),C!=null&&C.creatable&&R.runIfFn(e.onCreateOption,{item:R.omit(C,["noFilter"]),selectMethod:Ie.current}),_&&we()},Ue=(b,C)=>{var oe;ve(ae=>{const Xe=ee.find(Se=>Se.value===b);return R.runIfFn(e.onTagRemoved,b,Xe,ae),ae.filter(Se=>Se!==b)});const V=ee.find(ae=>ae.value===b),ne=(V==null?void 0:V.label)||(V==null?void 0:V.value);me===ne&&P(""),C&&((oe=te.current)==null||oe.focus())},tr=b=>{var C;ve([]),b&&((C=te.current)==null||C.focus())},nr=S?fe.map(b=>{var C;return{label:((C=ee.find(V=>V.value===(b==null?void 0:b.toString())))==null?void 0:C.label)||b,onRemove:()=>Ue(b)}}):[];return w.useEffect(()=>{R.runIfFn(N,{tags:nr})},[fe]),{autoCompleteProps:e,children:de,filteredList:H,filteredResults:er,focusedValue:ye,defaultEmptyStateProps:d,getEmptyStateProps:b=>{if(H.every(V=>V.noFilter)&&u&&!a)return typeof u=="boolean"?b:R.runIfFn(u,{query:me})},getGroupProps:b=>{const C=lo(b.children,H);return{divider:{hasFirstChild:io(b.children,se),hasLastChild:so(b.children,R.getLastItem(H.filter(V=>R.isUndefined(V==null?void 0:V.noFilter))))},group:{display:C?"initial":"none"}}},getInputProps:(b,C)=>{const{onBlur:V,onChange:ne,onFocus:oe,onKeyDown:ae,variant:Xe,...Se}=b;return{wrapper:{ref:dr,onClick:()=>{var j;(j=te==null?void 0:te.current)==null||j.focus()},...co(C,S),...Se},input:{isReadOnly:g,onFocus:j=>{R.runIfFn(oe,j),e.openOnFocus&&!g&&Ee(),e.selectOnFocus&&j.target.select(),h&&Ge(!0)},onBlur:j=>{var xe,Le;R.runIfFn(V,j);const re=j.relatedTarget===(We==null?void 0:We.current)||((xe=We.current)==null?void 0:xe.contains(j.relatedTarget)),q=(Le=dr.current)==null?void 0:Le.contains(j.relatedTarget);if(!re&&!q&&(o&&we(),!fe.includes(j.target.value)&&Ne)){const qe=R.getLastItem(fe),Y=ee.find(he=>he.value===qe),Ke=(Y==null?void 0:Y.label)||(Y==null?void 0:Y.value)||"";P(Ke)}},onChange:j=>{const re=j.target.value;R.runIfFn(ne,j),P(re);const q=R.isEmpty(re);R.runIfFn(cr,re)&&(!q||Ze)?Ee():we(),Ge(!1)},onKeyDown:j=>{var xe;R.runIfFn(ae,j),Ie.current="keyboard";const{key:re}=j,q=H[Ye];if(["Enter",...ur].includes(re)){q&&!(q!=null&&q.disabled)&&ge?rr(q==null?void 0:q.value):(xe=te.current)==null||xe.focus(),j.preventDefault();return}if(re==="ArrowDown"){ge?ie(pr==null?void 0:pr.value):Ee(),j.preventDefault();return}if(re==="ArrowUp"){ge?ie(gr==null?void 0:gr.value):Ee(),j.preventDefault();return}if(re==="Tab"){ge&&q&&!(q!=null&&q.disabled)?rr(q==null?void 0:q.value):we();return}if(re==="Home"){ie(se==null?void 0:se.value),j.preventDefault();return}if(re==="End"){ie(Oe==null?void 0:Oe.value),j.preventDefault();return}re==="Escape"&&(we(),j.preventDefault())},value:me,variant:S?"unstyled":Xe,...Se}}},getItemProps:(b,C)=>{var kr;const{_fixed:V,_focus:ne,children:oe,disabled:ae,label:Xe,value:Se,fixed:j,getValue:re=mt,onClick:q,onMouseOver:xe,sx:Le,...qe}=b,Y=C?Se:(kr=re(Se))==null?void 0:kr.toString(),Ke=Y===ye,he=H.findIndex(Me=>Me.value===Y)>=0,or=oe||Xe||Y;return{item:{...typeof or!="string"||!l?{children:or}:{dangerouslySetInnerHTML:{__html:ro(or,me)}},"aria-selected":fe.includes(Y),"aria-disabled":ae,_disabled:{opacity:.4,cursor:"not-allowed",userSelect:"none"},onClick:Me=>{var Tr;R.runIfFn(q,Me),ae?(Tr=te.current)==null||Tr.focus():rr(Y)},onMouseOver:Me=>{R.runIfFn(xe,Me),ie(Y),Ie.current="mouse"},sx:{...Le,mark:{color:"inherit",bg:"transparent",...R.isObject(l)?l:{fontWeight:l?"extrabold":"inherit"}}},...Ke&&(ne||no()),...j&&V,...qe},root:{isValidSuggestion:he,value:Y}}},inputRef:te,interactionRef:Ie,isLoading:E,isOpen:ge,itemList:ee,listRef:We,onClose:we,onOpen:Ee,placement:ue,query:me,removeItem:Ue,resetItems:tr,setQuery:P,tags:nr,value:Ce,values:fe}}const en=L.forwardRef((e,r)=>{const o=Zt(e),{children:a,isOpen:l,onClose:u,onOpen:d,placement:f,resetItems:g,removeItem:h}=o;w.useImperativeHandle(r,()=>({resetItems:g,removeItem:h}));const{matchWidth:v=!0}=o.autoCompleteProps;return k.jsx(Jt,{value:o,children:k.jsx(L.Popover,{isLazy:!0,isOpen:l,onClose:u,onOpen:d,autoFocus:!1,placement:f,closeOnBlur:!0,matchWidth:v,children:k.jsx(L.chakra.div,{w:"full",ref:r,children:a})})})});en.displayName="AutoComplete";const rn=L.forwardRef((e,r)=>{const{focusedValue:o,getItemProps:a,interactionRef:l}=Qe(),u=w.useRef(),d=L.useMergeRefs(r,u),f=a(e),{isValidSuggestion:g,value:h}=f.root,v=o===h;w.useEffect(()=>{var N;v&&l.current==="keyboard"&&((N=u==null?void 0:u.current)==null||N.scrollIntoView({behavior:"smooth",block:"nearest"}))},[v,l]),w.useEffect(()=>{typeof h!="string"&&console.warn("wow"),typeof h!="string"&&R.isUndefined(e.getValue)&&console.error("You must define the `getValue` prop, when an Item's value is not a string")},[]);const{children:S,dangerouslySetInnerHTML:_,...T}=f.item,F=R.omit(T,["groupId"]);return g?k.jsx(L.Flex,{ref:d,...vt,...F,children:S||k.jsx("span",{dangerouslySetInnerHTML:_})}):null});rn.displayName="AutoCompleteItem";const vt={mx:"2",px:"2",py:"2",rounded:"md",cursor:"pointer"};function tn(e){const{alwaysDisplay:r,children:o,...a}=e,{autoCompleteProps:l,getItemProps:u,query:d,filteredResults:f}=Qe(),{children:g,...h}=u({...e,value:d,children:R.runIfFn(o,{value:d})},!0).item,v=f.some(T=>T.value===d),S=R.isEmpty(d)?r:!0;return l.creatable&&S&&!v?k.jsx(L.Flex,{...vt,...h,...a,children:g||`Add ${d}`}):null}tn.displayName="AutoCompleteCreatable";const nn=L.forwardRef((e,r)=>{const{children:o,showDivider:a,...l}=e,u=R.omit(l,["groupSibling"]),{getGroupProps:d}=Qe(),{group:f}=d(e),g=fo(e);return k.jsxs(L.Box,{ref:r,...f,...u,children:[k.jsx(L.Divider,{...g.top}),o,k.jsx(L.Divider,{...g.bottom})]})}),on=L.forwardRef((e,r)=>k.jsx(L.Flex,{...uo,...e,ref:r}));nn.displayName="AutoCompleteGroup";on.displayName="AutoCompleteGroupTitle";const uo={ml:5,my:1,fontSize:"xs",letterSpacing:"wider",fontWeight:"extrabold",textTransform:"uppercase"},fo=e=>{const{getGroupProps:r}=Qe(),o=e.groupSibling,{divider:{hasFirstChild:a,hasLastChild:l}}=r(e),u={my:2,borderColor:e.dividerColor},d={...u,mb:4,display:!e.showDivider||a?"none":""},f={...u,display:!e.showDivider||l||o?"none":""};return{top:d,bottom:f}},Lt=L.forwardRef((e,r)=>{const{isLoading:o}=Qe(),{loadingIcon:a,...l}=e;return k.jsxs(L.InputGroup,{children:[k.jsx(L.Input,{...l,ref:r}),o&&k.jsx(L.InputRightElement,{children:a||k.jsx(L.Spinner,{})})]})}),bt=L.forwardRef((e,r)=>{const{autoCompleteProps:o,inputRef:a,getInputProps:l,tags:u,setQuery:d,value:f,itemList:g}=Qe(),{children:h,isInvalid:v,hidePlaceholder:S,..._}=e,{value:T}=_;w.useEffect(()=>{if(f!==void 0&&(typeof f=="string"||f instanceof String)){const Ze=g.find($e=>$e.value===f),Ce=Ze===void 0?f:Ze.label;d(Ce)}},[f]),w.useEffect(()=>{T!==void 0&&(typeof T=="string"||T instanceof String)&&d(T)},[T]);const F=L.useMultiStyleConfig("Input",e);let{wrapper:N,input:$}=l(_,F);const{ref:M,...E}=N,ue=L.useMergeRefs(r,a),Ne=R.runIfFn(h,{tags:u});S&&($={...$,placeholder:Array.isArray(Ne)&&Ne.length?void 0:$.placeholder});const cr=k.jsx(Lt,{isInvalid:v,...$,ref:ue}),ur=k.jsxs(L.Wrap,{"aria-invalid":v,...E,ref:M,children:[Ne,k.jsx(L.WrapItem,{as:Lt,...$,ref:ue})]});return k.jsx(L.PopoverAnchor,{children:o.multiple?ur:cr})});bt.displayName="Input";bt.id="Input";function po(){const e=w.useContext(Jn.ThemeContext);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var an=w.createContext({});an.displayName="ColorModeContext";function sn(){const e=w.useContext(an);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function go(){const e=sn(),r=po();return{...e,theme:r}}var yt=(...e)=>e.filter(Boolean).join(" ");function yr(e){const r=typeof e;return e!=null&&(r==="object"||r==="function")&&!Array.isArray(e)}function br(e,...r){return ho(e)?e(...r):e}var ho=e=>typeof e=="function",Gr={exports:{}};Gr.exports;(function(e,r){var o=200,a="__lodash_hash_undefined__",l=800,u=16,d=9007199254740991,f="[object Arguments]",g="[object Array]",h="[object AsyncFunction]",v="[object Boolean]",S="[object Date]",_="[object Error]",T="[object Function]",F="[object GeneratorFunction]",N="[object Map]",$="[object Number]",M="[object Null]",E="[object Object]",ue="[object Proxy]",Ne="[object RegExp]",cr="[object Set]",ur="[object String]",Ze="[object Undefined]",Ce="[object WeakMap]",$e="[object ArrayBuffer]",ge="[object DataView]",we="[object Float32Array]",Ee="[object Float64Array]",de="[object Int8Array]",ee="[object Int16Array]",te="[object Int32Array]",dr="[object Uint8Array]",We="[object Uint8ClampedArray]",Ie="[object Uint16Array]",fr="[object Uint32Array]",Ge=/[\\^$.*+?()[\]{}|]/g,Ve=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,P={};P[we]=P[Ee]=P[de]=P[ee]=P[te]=P[dr]=P[We]=P[Ie]=P[fr]=!0,P[f]=P[g]=P[$e]=P[v]=P[ge]=P[S]=P[_]=P[T]=P[N]=P[$]=P[E]=P[Ne]=P[cr]=P[ur]=P[Ce]=!1;var er=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,Sr=typeof self=="object"&&self&&self.Object===Object&&self,H=er||Sr||Function("return this")(),fe=r&&!r.nodeType&&r,ve=fe&&!0&&e&&!e.nodeType&&e,ye=ve&&ve.exports===fe,ie=ye&&er.process,_r=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||ie&&ie.binding&&ie.binding("util")}catch{}}(),Ye=_r&&_r.isTypedArray;function pr(t,s,c){switch(c.length){case 0:return t.call(s);case 1:return t.call(s,c[0]);case 2:return t.call(s,c[0],c[1]);case 3:return t.call(s,c[0],c[1],c[2])}return t.apply(s,c)}function gr(t,s){for(var c=-1,y=Array(t);++c<t;)y[c]=s(c);return y}function se(t){return function(s){return t(s)}}function Oe(t,s){return t==null?void 0:t[s]}function hr(t,s){return function(c){return t(s(c))}}var rr=Array.prototype,Ue=Function.prototype,tr=Object.prototype,nr=H["__core-js_shared__"],He=Ue.toString,je=tr.hasOwnProperty,Rr=function(){var t=/[^.]+$/.exec(nr&&nr.keys&&nr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),xr=tr.toString,mr=He.call(Object),b=RegExp("^"+He.call(je).replace(Ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=ye?H.Buffer:void 0,V=H.Symbol,ne=H.Uint8Array;C&&C.allocUnsafe;var oe=hr(Object.getPrototypeOf,Object),ae=Object.create,Xe=tr.propertyIsEnumerable,Se=rr.splice,j=V?V.toStringTag:void 0,re=function(){try{var t=et(Object,"defineProperty");return t({},"",{}),t}catch{}}(),q=C?C.isBuffer:void 0,xe=Math.max,Le=Date.now,qe=et(H,"Map"),Y=et(Object,"create"),Ke=function(){function t(){}return function(s){if(!vr(s))return{};if(ae)return ae(s);t.prototype=s;var c=new t;return t.prototype=void 0,c}}();function he(t){var s=-1,c=t==null?0:t.length;for(this.clear();++s<c;){var y=t[s];this.set(y[0],y[1])}}function or(){this.__data__=Y?Y(null):{},this.size=0}function kr(t){var s=this.has(t)&&delete this.__data__[t];return this.size-=s?1:0,s}function Me(t){var s=this.__data__;if(Y){var c=s[t];return c===a?void 0:c}return je.call(s,t)?s[t]:void 0}function Tr(t){var s=this.__data__;return Y?s[t]!==void 0:je.call(s,t)}function Ar(t,s){var c=this.__data__;return this.size+=this.has(t)?0:1,c[t]=Y&&s===void 0?a:s,this}he.prototype.clear=or,he.prototype.delete=kr,he.prototype.get=Me,he.prototype.has=Tr,he.prototype.set=Ar;function ke(t){var s=-1,c=t==null?0:t.length;for(this.clear();++s<c;){var y=t[s];this.set(y[0],y[1])}}function Xr(){this.__data__=[],this.size=0}function qr(t){var s=this.__data__,c=Ae(s,t);if(c<0)return!1;var y=s.length-1;return c==y?s.pop():Se.call(s,c,1),--this.size,!0}function Pr(t){var s=this.__data__,c=Ae(s,t);return c<0?void 0:s[c][1]}function Br(t){return Ae(this.__data__,t)>-1}function Kr(t,s){var c=this.__data__,y=Ae(c,t);return y<0?(++this.size,c.push([t,s])):c[y][1]=s,this}ke.prototype.clear=Xr,ke.prototype.delete=qr,ke.prototype.get=Pr,ke.prototype.has=Br,ke.prototype.set=Kr;function ar(t){var s=-1,c=t==null?0:t.length;for(this.clear();++s<c;){var y=t[s];this.set(y[0],y[1])}}function Jr(){this.size=0,this.__data__={hash:new he,map:new(qe||ke),string:new he}}function Qr(t){var s=$r(this,t).delete(t);return this.size-=s?1:0,s}function n(t){return $r(this,t).get(t)}function p(t){return $r(this,t).has(t)}function m(t,s){var c=$r(this,t),y=c.size;return c.set(t,s),this.size+=c.size==y?0:1,this}ar.prototype.clear=Jr,ar.prototype.delete=Qr,ar.prototype.get=n,ar.prototype.has=p,ar.prototype.set=m;function x(t){var s=this.__data__=new ke(t);this.size=s.size}function W(){this.__data__=new ke,this.size=0}function G(t){var s=this.__data__,c=s.delete(t);return this.size=s.size,c}function O(t){return this.__data__.get(t)}function I(t){return this.__data__.has(t)}function le(t,s){var c=this.__data__;if(c instanceof ke){var y=c.__data__;if(!qe||y.length<o-1)return y.push([t,s]),this.size=++c.size,this;c=this.__data__=new ar(y)}return c.set(t,s),this.size=c.size,this}x.prototype.clear=W,x.prototype.delete=G,x.prototype.get=O,x.prototype.has=I,x.prototype.set=le;function Z(t,s){var c=nt(t),y=!c&&tt(t),B=!c&&!y&&Et(t),U=!c&&!y&&!B&&Ot(t),J=c||y||B||U,D=J?gr(t.length,String):[],Q=D.length;for(var Be in t)J&&(Be=="length"||B&&(Be=="offset"||Be=="parent")||U&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||Ct(Be,Q))||D.push(Be);return D}function K(t,s,c){(c!==void 0&&!Wr(t[s],c)||c===void 0&&!(s in t))&&Pe(t,s,c)}function be(t,s,c){var y=t[s];(!(je.call(t,s)&&Wr(y,c))||c===void 0&&!(s in t))&&Pe(t,s,c)}function Ae(t,s){for(var c=t.length;c--;)if(Wr(t[c][0],s))return c;return-1}function Pe(t,s,c){s=="__proto__"&&re?re(t,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):t[s]=c}var pe=An();function ir(t){return t==null?t===void 0?Ze:M:j&&j in Object(t)?Pn(t):Mn(t)}function Fr(t){return Cr(t)&&ir(t)==f}function Zr(t){if(!vr(t)||Wn(t))return!1;var s=at(t)?b:Ve;return s.test(Gn(t))}function _n(t){return Cr(t)&&It(t.length)&&!!P[ir(t)]}function xn(t){if(!vr(t))return Ln(t);var s=wt(t),c=[];for(var y in t)y=="constructor"&&(s||!je.call(t,y))||c.push(y);return c}function Rt(t,s,c,y,B){t!==s&&pe(s,function(U,J){if(B||(B=new x),vr(U))kn(t,s,J,c,Rt,y,B);else{var D=y?y(rt(t,J),U,J+"",t,s,B):void 0;D===void 0&&(D=U),K(t,J,D)}},jt)}function kn(t,s,c,y,B,U,J){var D=rt(t,c),Q=rt(s,c),Be=J.get(Q);if(Be){K(t,c,Be);return}var _e=U?U(D,Q,c+"",t,s,J):void 0,wr=_e===void 0;if(wr){var it=nt(Q),st=!it&&Et(Q),Pt=!it&&!st&&Ot(Q);_e=Q,it||st||Pt?nt(D)?_e=D:Vn(D)?_e=In(D):st?(wr=!1,_e=Cn(Q)):Pt?(wr=!1,_e=En(Q)):_e=[]:Yn(Q)||tt(Q)?(_e=D,tt(D)?_e=Un(D):(!vr(D)||at(D))&&(_e=Bn(Q))):wr=!1}wr&&(J.set(Q,_e),B(_e,Q,y,U,J),J.delete(Q)),K(t,c,_e)}function Tn(t,s){return zn(Dn(t,s,At),t+"")}var Rn=re?function(t,s){return re(t,"toString",{configurable:!0,enumerable:!1,value:Xn(s),writable:!0})}:At;function Cn(t,s){return t.slice()}function wn(t){var s=new t.constructor(t.byteLength);return new ne(s).set(new ne(t)),s}function En(t,s){var c=wn(t.buffer);return new t.constructor(c,t.byteOffset,t.length)}function In(t,s){var c=-1,y=t.length;for(s||(s=Array(y));++c<y;)s[c]=t[c];return s}function On(t,s,c,y){var B=!c;c||(c={});for(var U=-1,J=s.length;++U<J;){var D=s[U],Q=void 0;Q===void 0&&(Q=t[D]),B?Pe(c,D,Q):be(c,D,Q)}return c}function jn(t){return Tn(function(s,c){var y=-1,B=c.length,U=B>1?c[B-1]:void 0,J=B>2?c[2]:void 0;for(U=t.length>3&&typeof U=="function"?(B--,U):void 0,J&&Fn(c[0],c[1],J)&&(U=B<3?void 0:U,B=1),s=Object(s);++y<B;){var D=c[y];D&&t(s,D,y,U)}return s})}function An(t){return function(s,c,y){for(var B=-1,U=Object(s),J=y(s),D=J.length;D--;){var Q=J[++B];if(c(U[Q],Q,U)===!1)break}return s}}function $r(t,s){var c=t.__data__;return $n(s)?c[typeof s=="string"?"string":"hash"]:c.map}function et(t,s){var c=Oe(t,s);return Zr(c)?c:void 0}function Pn(t){var s=je.call(t,j),c=t[j];try{t[j]=void 0;var y=!0}catch{}var B=xr.call(t);return y&&(s?t[j]=c:delete t[j]),B}function Bn(t){return typeof t.constructor=="function"&&!wt(t)?Ke(oe(t)):{}}function Ct(t,s){var c=typeof t;return s=s??d,!!s&&(c=="number"||c!="symbol"&&me.test(t))&&t>-1&&t%1==0&&t<s}function Fn(t,s,c){if(!vr(c))return!1;var y=typeof s;return(y=="number"?ot(c)&&Ct(s,c.length):y=="string"&&s in c)?Wr(c[s],t):!1}function $n(t){var s=typeof t;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?t!=="__proto__":t===null}function Wn(t){return!!Rr&&Rr in t}function wt(t){var s=t&&t.constructor,c=typeof s=="function"&&s.prototype||tr;return t===c}function Ln(t){var s=[];if(t!=null)for(var c in Object(t))s.push(c);return s}function Mn(t){return xr.call(t)}function Dn(t,s,c){return s=xe(s===void 0?t.length-1:s,0),function(){for(var y=arguments,B=-1,U=xe(y.length-s,0),J=Array(U);++B<U;)J[B]=y[s+B];B=-1;for(var D=Array(s+1);++B<s;)D[B]=y[B];return D[s]=c(J),pr(t,this,D)}}function rt(t,s){if(!(s==="constructor"&&typeof t[s]=="function")&&s!="__proto__")return t[s]}var zn=Nn(Rn);function Nn(t){var s=0,c=0;return function(){var y=Le(),B=u-(y-c);if(c=y,B>0){if(++s>=l)return arguments[0]}else s=0;return t.apply(void 0,arguments)}}function Gn(t){if(t!=null){try{return He.call(t)}catch{}try{return t+""}catch{}}return""}function Wr(t,s){return t===s||t!==t&&s!==s}var tt=Fr(function(){return arguments}())?Fr:function(t){return Cr(t)&&je.call(t,"callee")&&!Xe.call(t,"callee")},nt=Array.isArray;function ot(t){return t!=null&&It(t.length)&&!at(t)}function Vn(t){return Cr(t)&&ot(t)}var Et=q||qn;function at(t){if(!vr(t))return!1;var s=ir(t);return s==T||s==F||s==h||s==ue}function It(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=d}function vr(t){var s=typeof t;return t!=null&&(s=="object"||s=="function")}function Cr(t){return t!=null&&typeof t=="object"}function Yn(t){if(!Cr(t)||ir(t)!=E)return!1;var s=oe(t);if(s===null)return!0;var c=je.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&He.call(c)==mr}var Ot=Ye?se(Ye):_n;function Un(t){return On(t,jt(t))}function jt(t){return ot(t)?Z(t):xn(t)}var Hn=jn(function(t,s,c,y){Rt(t,s,c,y)});function Xn(t){return function(){return t}}function At(t){return t}function qn(){return!1}e.exports=Hn})(Gr,Gr.exports);var mo=Gr.exports;const lr=Kt(mo);var vo=e=>/!(important)?$/.test(e),Mt=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,bo=(e,r)=>o=>{const a=String(r),l=vo(a),u=Mt(a),d=e?`${e}.${u}`:u;let f=yr(o.__cssMap)&&d in o.__cssMap?o.__cssMap[d].varRef:r;return f=Mt(f),l?`${f} !important`:f};function St(e){const{scale:r,transform:o,compose:a}=e;return(u,d)=>{var f;const g=bo(r,u)(d);let h=(f=o==null?void 0:o(g,d))!=null?f:g;return a&&(h=a(h,d)),h}}var Dr=(...e)=>r=>e.reduce((o,a)=>a(o),r);function Te(e,r){return o=>{const a={property:o,scale:e};return a.transform=St({scale:e,transform:r}),a}}var yo=({rtl:e,ltr:r})=>o=>o.direction==="rtl"?e:r;function So(e){const{property:r,scale:o,transform:a}=e;return{scale:o,property:yo(r),transform:o?St({scale:o,compose:a}):a}}var ln=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function _o(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...ln].join(" ")}function xo(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...ln].join(" ")}var ko={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},To={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Ro(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var Co={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},dt={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},wo=new Set(Object.values(dt)),ft=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Eo=e=>e.trim();function Io(e,r){if(e==null||ft.has(e))return e;if(!(pt(e)||ft.has(e)))return`url('${e}')`;const l=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),u=l==null?void 0:l[1],d=l==null?void 0:l[2];if(!u||!d)return e;const f=u.includes("-gradient")?u:`${u}-gradient`,[g,...h]=d.split(",").map(Eo).filter(Boolean);if((h==null?void 0:h.length)===0)return e;const v=g in dt?dt[g]:g;h.unshift(v);const S=h.map(_=>{if(wo.has(_))return _;const T=_.indexOf(" "),[F,N]=T!==-1?[_.substr(0,T),_.substr(T+1)]:[_],$=pt(N)?N:N&&N.split(" "),M=`colors.${F}`,E=M in r.__cssMap?r.__cssMap[M].varRef:F;return $?[E,...Array.isArray($)?$:[$]].join(" "):E});return`${f}(${S.join(", ")})`}var pt=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Oo=(e,r)=>Io(e,r??{});function jo(e){return/^var\(--.+\)$/.test(e)}var Ao=e=>{const r=parseFloat(e.toString()),o=e.toString().replace(String(r),"");return{unitless:!o,value:r,unit:o}},De=e=>r=>`${e}(${r})`,A={filter(e){return e!=="auto"?e:ko},backdropFilter(e){return e!=="auto"?e:To},ring(e){return Ro(A.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?_o():e==="auto-gpu"?xo():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:r}=Ao(e);return r||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,r){const o={left:"right",right:"left"};return r.direction==="rtl"?o[e]:e},degree(e){if(jo(e)||e==null)return e;const r=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||r?`${e}deg`:e},gradient:Oo,blur:De("blur"),opacity:De("opacity"),brightness:De("brightness"),contrast:De("contrast"),dropShadow:De("drop-shadow"),grayscale:De("grayscale"),hueRotate:e=>De("hue-rotate")(A.degree(e)),invert:De("invert"),saturate:De("saturate"),sepia:De("sepia"),bgImage(e){return e==null||pt(e)||ft.has(e)?e:`url(${e})`},outline(e){const r=String(e)==="0"||String(e)==="none";return e!==null&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var r;const{space:o,divide:a}=(r=Co[e])!=null?r:{},l={flexDirection:e};return o&&(l[o]=1),a&&(l[a]=1),l}},i={borderWidths:Te("borderWidths"),borderStyles:Te("borderStyles"),colors:Te("colors"),borders:Te("borders"),gradients:Te("gradients",A.gradient),radii:Te("radii",A.px),space:Te("space",Dr(A.vh,A.px)),spaceT:Te("space",Dr(A.vh,A.px)),degreeT(e){return{property:e,transform:A.degree}},prop(e,r,o){return{property:e,scale:r,...r&&{transform:St({scale:r,transform:o})}}},propT(e,r){return{property:e,transform:r}},sizes:Te("sizes",Dr(A.vh,A.px)),sizesT:Te("sizes",Dr(A.vh,A.fraction)),shadows:Te("shadows"),logical:So,blur:Te("blur",A.blur)},zr={background:i.colors("background"),backgroundColor:i.colors("backgroundColor"),backgroundImage:i.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:A.bgClip},bgSize:i.prop("backgroundSize"),bgPosition:i.prop("backgroundPosition"),bg:i.colors("background"),bgColor:i.colors("backgroundColor"),bgPos:i.prop("backgroundPosition"),bgRepeat:i.prop("backgroundRepeat"),bgAttachment:i.prop("backgroundAttachment"),bgGradient:i.gradients("backgroundImage"),bgClip:{transform:A.bgClip}};Object.assign(zr,{bgImage:zr.backgroundImage,bgImg:zr.backgroundImage});var z={border:i.borders("border"),borderWidth:i.borderWidths("borderWidth"),borderStyle:i.borderStyles("borderStyle"),borderColor:i.colors("borderColor"),borderRadius:i.radii("borderRadius"),borderTop:i.borders("borderTop"),borderBlockStart:i.borders("borderBlockStart"),borderTopLeftRadius:i.radii("borderTopLeftRadius"),borderStartStartRadius:i.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:i.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:i.radii("borderTopRightRadius"),borderStartEndRadius:i.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:i.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:i.borders("borderRight"),borderInlineEnd:i.borders("borderInlineEnd"),borderBottom:i.borders("borderBottom"),borderBlockEnd:i.borders("borderBlockEnd"),borderBottomLeftRadius:i.radii("borderBottomLeftRadius"),borderBottomRightRadius:i.radii("borderBottomRightRadius"),borderLeft:i.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:i.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:i.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:i.borders(["borderLeft","borderRight"]),borderInline:i.borders("borderInline"),borderY:i.borders(["borderTop","borderBottom"]),borderBlock:i.borders("borderBlock"),borderTopWidth:i.borderWidths("borderTopWidth"),borderBlockStartWidth:i.borderWidths("borderBlockStartWidth"),borderTopColor:i.colors("borderTopColor"),borderBlockStartColor:i.colors("borderBlockStartColor"),borderTopStyle:i.borderStyles("borderTopStyle"),borderBlockStartStyle:i.borderStyles("borderBlockStartStyle"),borderBottomWidth:i.borderWidths("borderBottomWidth"),borderBlockEndWidth:i.borderWidths("borderBlockEndWidth"),borderBottomColor:i.colors("borderBottomColor"),borderBlockEndColor:i.colors("borderBlockEndColor"),borderBottomStyle:i.borderStyles("borderBottomStyle"),borderBlockEndStyle:i.borderStyles("borderBlockEndStyle"),borderLeftWidth:i.borderWidths("borderLeftWidth"),borderInlineStartWidth:i.borderWidths("borderInlineStartWidth"),borderLeftColor:i.colors("borderLeftColor"),borderInlineStartColor:i.colors("borderInlineStartColor"),borderLeftStyle:i.borderStyles("borderLeftStyle"),borderInlineStartStyle:i.borderStyles("borderInlineStartStyle"),borderRightWidth:i.borderWidths("borderRightWidth"),borderInlineEndWidth:i.borderWidths("borderInlineEndWidth"),borderRightColor:i.colors("borderRightColor"),borderInlineEndColor:i.colors("borderInlineEndColor"),borderRightStyle:i.borderStyles("borderRightStyle"),borderInlineEndStyle:i.borderStyles("borderInlineEndStyle"),borderTopRadius:i.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:i.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:i.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:i.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(z,{rounded:z.borderRadius,roundedTop:z.borderTopRadius,roundedTopLeft:z.borderTopLeftRadius,roundedTopRight:z.borderTopRightRadius,roundedTopStart:z.borderStartStartRadius,roundedTopEnd:z.borderStartEndRadius,roundedBottom:z.borderBottomRadius,roundedBottomLeft:z.borderBottomLeftRadius,roundedBottomRight:z.borderBottomRightRadius,roundedBottomStart:z.borderEndStartRadius,roundedBottomEnd:z.borderEndEndRadius,roundedLeft:z.borderLeftRadius,roundedRight:z.borderRightRadius,roundedStart:z.borderInlineStartRadius,roundedEnd:z.borderInlineEndRadius,borderStart:z.borderInlineStart,borderEnd:z.borderInlineEnd,borderTopStartRadius:z.borderStartStartRadius,borderTopEndRadius:z.borderStartEndRadius,borderBottomStartRadius:z.borderEndStartRadius,borderBottomEndRadius:z.borderEndEndRadius,borderStartRadius:z.borderInlineStartRadius,borderEndRadius:z.borderInlineEndRadius,borderStartWidth:z.borderInlineStartWidth,borderEndWidth:z.borderInlineEndWidth,borderStartColor:z.borderInlineStartColor,borderEndColor:z.borderInlineEndColor,borderStartStyle:z.borderInlineStartStyle,borderEndStyle:z.borderInlineEndStyle});var Po={color:i.colors("color"),textColor:i.colors("color"),fill:i.colors("fill"),stroke:i.colors("stroke")},gt={boxShadow:i.shadows("boxShadow"),mixBlendMode:!0,blendMode:i.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:i.prop("backgroundBlendMode"),opacity:!0};Object.assign(gt,{shadow:gt.boxShadow});var Bo={filter:{transform:A.filter},blur:i.blur("--chakra-blur"),brightness:i.propT("--chakra-brightness",A.brightness),contrast:i.propT("--chakra-contrast",A.contrast),hueRotate:i.propT("--chakra-hue-rotate",A.hueRotate),invert:i.propT("--chakra-invert",A.invert),saturate:i.propT("--chakra-saturate",A.saturate),dropShadow:i.propT("--chakra-drop-shadow",A.dropShadow),backdropFilter:{transform:A.backdropFilter},backdropBlur:i.blur("--chakra-backdrop-blur"),backdropBrightness:i.propT("--chakra-backdrop-brightness",A.brightness),backdropContrast:i.propT("--chakra-backdrop-contrast",A.contrast),backdropHueRotate:i.propT("--chakra-backdrop-hue-rotate",A.hueRotate),backdropInvert:i.propT("--chakra-backdrop-invert",A.invert),backdropSaturate:i.propT("--chakra-backdrop-saturate",A.saturate)},Vr={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:A.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:i.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:i.space("gap"),rowGap:i.space("rowGap"),columnGap:i.space("columnGap")};Object.assign(Vr,{flexDir:Vr.flexDirection});var cn={gridGap:i.space("gridGap"),gridColumnGap:i.space("gridColumnGap"),gridRowGap:i.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Fo={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:A.outline},outlineOffset:!0,outlineColor:i.colors("outlineColor")},Re={width:i.sizesT("width"),inlineSize:i.sizesT("inlineSize"),height:i.sizes("height"),blockSize:i.sizes("blockSize"),boxSize:i.sizes(["width","height"]),minWidth:i.sizes("minWidth"),minInlineSize:i.sizes("minInlineSize"),minHeight:i.sizes("minHeight"),minBlockSize:i.sizes("minBlockSize"),maxWidth:i.sizes("maxWidth"),maxInlineSize:i.sizes("maxInlineSize"),maxHeight:i.sizes("maxHeight"),maxBlockSize:i.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,r)=>{var o,a,l;return{[`@media screen and (min-width: ${(l=(a=(o=r.__breakpoints)==null?void 0:o.get(e))==null?void 0:a.minW)!=null?l:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,r)=>{var o,a,l;return{[`@media screen and (max-width: ${(l=(a=(o=r.__breakpoints)==null?void 0:o.get(e))==null?void 0:a._minW)!=null?l:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:i.propT("float",A.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Re,{w:Re.width,h:Re.height,minW:Re.minWidth,maxW:Re.maxWidth,minH:Re.minHeight,maxH:Re.maxHeight,overscroll:Re.overscrollBehavior,overscrollX:Re.overscrollBehaviorX,overscrollY:Re.overscrollBehaviorY});var $o={listStyleType:!0,listStylePosition:!0,listStylePos:i.prop("listStylePosition"),listStyleImage:!0,listStyleImg:i.prop("listStyleImage")};function Wo(e,r,o,a){const l=typeof r=="string"?r.split("."):[r];for(a=0;a<l.length&&e;a+=1)e=e[l[a]];return e===void 0?o:e}var Lo=e=>{const r=new WeakMap;return(a,l,u,d)=>{if(typeof a>"u")return e(a,l,u);r.has(a)||r.set(a,new Map);const f=r.get(a);if(f.has(l))return f.get(l);const g=e(a,l,u,d);return f.set(l,g),g}},Mo=Lo(Wo),Do={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},zo={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},lt=(e,r,o)=>{const a={},l=Mo(e,r,{});for(const u in l)u in o&&o[u]!=null||(a[u]=l[u]);return a},No={srOnly:{transform(e){return e===!0?Do:e==="focusable"?zo:{}}},layerStyle:{processResult:!0,transform:(e,r,o)=>lt(r,`layerStyles.${e}`,o)},textStyle:{processResult:!0,transform:(e,r,o)=>lt(r,`textStyles.${e}`,o)},apply:{processResult:!0,transform:(e,r,o)=>lt(r,e,o)}},jr={position:!0,pos:i.prop("position"),zIndex:i.prop("zIndex","zIndices"),inset:i.spaceT("inset"),insetX:i.spaceT(["left","right"]),insetInline:i.spaceT("insetInline"),insetY:i.spaceT(["top","bottom"]),insetBlock:i.spaceT("insetBlock"),top:i.spaceT("top"),insetBlockStart:i.spaceT("insetBlockStart"),bottom:i.spaceT("bottom"),insetBlockEnd:i.spaceT("insetBlockEnd"),left:i.spaceT("left"),insetInlineStart:i.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:i.spaceT("right"),insetInlineEnd:i.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(jr,{insetStart:jr.insetInlineStart,insetEnd:jr.insetInlineEnd});var Go={ring:{transform:A.ring},ringColor:i.colors("--chakra-ring-color"),ringOffset:i.prop("--chakra-ring-offset-width"),ringOffsetColor:i.colors("--chakra-ring-offset-color"),ringInset:i.prop("--chakra-ring-inset")},X={margin:i.spaceT("margin"),marginTop:i.spaceT("marginTop"),marginBlockStart:i.spaceT("marginBlockStart"),marginRight:i.spaceT("marginRight"),marginInlineEnd:i.spaceT("marginInlineEnd"),marginBottom:i.spaceT("marginBottom"),marginBlockEnd:i.spaceT("marginBlockEnd"),marginLeft:i.spaceT("marginLeft"),marginInlineStart:i.spaceT("marginInlineStart"),marginX:i.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:i.spaceT("marginInline"),marginY:i.spaceT(["marginTop","marginBottom"]),marginBlock:i.spaceT("marginBlock"),padding:i.space("padding"),paddingTop:i.space("paddingTop"),paddingBlockStart:i.space("paddingBlockStart"),paddingRight:i.space("paddingRight"),paddingBottom:i.space("paddingBottom"),paddingBlockEnd:i.space("paddingBlockEnd"),paddingLeft:i.space("paddingLeft"),paddingInlineStart:i.space("paddingInlineStart"),paddingInlineEnd:i.space("paddingInlineEnd"),paddingX:i.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:i.space("paddingInline"),paddingY:i.space(["paddingTop","paddingBottom"]),paddingBlock:i.space("paddingBlock")};Object.assign(X,{m:X.margin,mt:X.marginTop,mr:X.marginRight,me:X.marginInlineEnd,marginEnd:X.marginInlineEnd,mb:X.marginBottom,ml:X.marginLeft,ms:X.marginInlineStart,marginStart:X.marginInlineStart,mx:X.marginX,my:X.marginY,p:X.padding,pt:X.paddingTop,py:X.paddingY,px:X.paddingX,pb:X.paddingBottom,pl:X.paddingLeft,ps:X.paddingInlineStart,paddingStart:X.paddingInlineStart,pr:X.paddingRight,pe:X.paddingInlineEnd,paddingEnd:X.paddingInlineEnd});var Vo={textDecorationColor:i.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:i.shadows("textShadow")},Yo={clipPath:!0,transform:i.propT("transform",A.transform),transformOrigin:!0,translateX:i.spaceT("--chakra-translate-x"),translateY:i.spaceT("--chakra-translate-y"),skewX:i.degreeT("--chakra-skew-x"),skewY:i.degreeT("--chakra-skew-y"),scaleX:i.prop("--chakra-scale-x"),scaleY:i.prop("--chakra-scale-y"),scale:i.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:i.degreeT("--chakra-rotate")},Uo={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:i.prop("transitionDuration","transition.duration"),transitionProperty:i.prop("transitionProperty","transition.property"),transitionTimingFunction:i.prop("transitionTimingFunction","transition.easing")},Ho={fontFamily:i.prop("fontFamily","fonts"),fontSize:i.prop("fontSize","fontSizes",A.px),fontWeight:i.prop("fontWeight","fontWeights"),lineHeight:i.prop("lineHeight","lineHeights"),letterSpacing:i.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Xo={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:i.spaceT("scrollMargin"),scrollMarginTop:i.spaceT("scrollMarginTop"),scrollMarginBottom:i.spaceT("scrollMarginBottom"),scrollMarginLeft:i.spaceT("scrollMarginLeft"),scrollMarginRight:i.spaceT("scrollMarginRight"),scrollMarginX:i.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:i.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:i.spaceT("scrollPadding"),scrollPaddingTop:i.spaceT("scrollPaddingTop"),scrollPaddingBottom:i.spaceT("scrollPaddingBottom"),scrollPaddingLeft:i.spaceT("scrollPaddingLeft"),scrollPaddingRight:i.spaceT("scrollPaddingRight"),scrollPaddingX:i.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:i.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function un(e){return yr(e)&&e.reference?e.reference:String(e)}var Ur=(e,...r)=>r.map(un).join(` ${e} `).replace(/calc/g,""),Dt=(...e)=>`calc(${Ur("+",...e)})`,zt=(...e)=>`calc(${Ur("-",...e)})`,ht=(...e)=>`calc(${Ur("*",...e)})`,Nt=(...e)=>`calc(${Ur("/",...e)})`,Gt=e=>{const r=un(e);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:ht(r,-1)},Or=Object.assign(e=>({add:(...r)=>Or(Dt(e,...r)),subtract:(...r)=>Or(zt(e,...r)),multiply:(...r)=>Or(ht(e,...r)),divide:(...r)=>Or(Nt(e,...r)),negate:()=>Or(Gt(e)),toString:()=>e.toString()}),{add:Dt,subtract:zt,multiply:ht,divide:Nt,negate:Gt});function qo(e){const r=parseFloat(e.toString()),o=e.toString().replace(String(r),"");return{unitless:!o,value:r,unit:o}}function Vt(e){if(e==null)return e;const{unitless:r}=qo(e);return r||typeof e=="number"?`${e}px`:e}function Ko(e,r){const o=["@media screen"];return e&&o.push("and",`(min-width: ${Vt(e)})`),r&&o.push("and",`(max-width: ${Vt(r)})`),o.join(" ")}var ce={hover:(e,r)=>`${e}:hover ${r}, ${e}[data-hover] ${r}`,focus:(e,r)=>`${e}:focus ${r}, ${e}[data-focus] ${r}`,focusVisible:(e,r)=>`${e}:focus-visible ${r}`,focusWithin:(e,r)=>`${e}:focus-within ${r}`,active:(e,r)=>`${e}:active ${r}, ${e}[data-active] ${r}`,disabled:(e,r)=>`${e}:disabled ${r}, ${e}[data-disabled] ${r}`,invalid:(e,r)=>`${e}:invalid ${r}, ${e}[data-invalid] ${r}`,checked:(e,r)=>`${e}:checked ${r}, ${e}[data-checked] ${r}`,indeterminate:(e,r)=>`${e}:indeterminate ${r}, ${e}[aria-checked=mixed] ${r}, ${e}[data-indeterminate] ${r}`,readOnly:(e,r)=>`${e}:read-only ${r}, ${e}[readonly] ${r}, ${e}[data-read-only] ${r}`,expanded:(e,r)=>`${e}:read-only ${r}, ${e}[aria-expanded=true] ${r}, ${e}[data-expanded] ${r}`,placeholderShown:(e,r)=>`${e}:placeholder-shown ${r}`},sr=e=>dn(r=>e(r,"&"),"[role=group]","[data-group]",".group"),Je=e=>dn(r=>e(r,"~ &"),"[data-peer]",".peer"),dn=(e,...r)=>r.map(e).join(", "),_t={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:sr(ce.hover),_peerHover:Je(ce.hover),_groupFocus:sr(ce.focus),_peerFocus:Je(ce.focus),_groupFocusVisible:sr(ce.focusVisible),_peerFocusVisible:Je(ce.focusVisible),_groupActive:sr(ce.active),_peerActive:Je(ce.active),_groupDisabled:sr(ce.disabled),_peerDisabled:Je(ce.disabled),_groupInvalid:sr(ce.invalid),_peerInvalid:Je(ce.invalid),_groupChecked:sr(ce.checked),_peerChecked:Je(ce.checked),_groupFocusWithin:sr(ce.focusWithin),_peerFocusWithin:Je(ce.focusWithin),_peerPlaceholderShown:Je(ce.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Jo=Object.keys(_t);function Qo(e,r=[]){const o=Object.assign({},e);for(const a of r)a in o&&delete o[a];return o}var xt=lr({},zr,z,Po,Vr,Re,Bo,Go,Fo,cn,No,jr,gt,X,Xo,Ho,Vo,Yo,$o,Uo);Object.assign({},X,Re,Vr,cn,jr);var Zo=[...Object.keys(xt),...Jo],ea={...xt,..._t},ra=e=>e in ea,ta=e=>r=>{if(!r.__breakpoints)return e;const{isResponsive:o,toArrayValue:a,media:l}=r.__breakpoints,u={};for(const d in e){let f=br(e[d],r);if(f==null)continue;if(f=yr(f)&&o(f)?a(f):f,!Array.isArray(f)){u[d]=f;continue}const g=f.slice(0,l.length).length;for(let h=0;h<g;h+=1){const v=l==null?void 0:l[h];if(!v){u[d]=f[h];continue}u[v]=u[v]||{},f[h]!=null&&(u[v][d]=f[h])}}return u};function na(e){const r=[];let o="",a=!1;for(let l=0;l<e.length;l++){const u=e[l];u==="("?(a=!0,o+=u):u===")"?(a=!1,o+=u):u===","&&!a?(r.push(o),o=""):o+=u}return o=o.trim(),o&&r.push(o),r}function oa(e){return/^var\(--.+\)$/.test(e)}var aa=(e,r)=>e.startsWith("--")&&typeof r=="string"&&!oa(r),ia=(e,r)=>{var o,a;if(r==null)return r;const l=g=>{var h,v;return(v=(h=e.__cssMap)==null?void 0:h[g])==null?void 0:v.varRef},u=g=>{var h;return(h=l(g))!=null?h:g},[d,f]=na(r);return r=(a=(o=l(d))!=null?o:u(f))!=null?a:u(r),r};function sa(e){const{configs:r={},pseudos:o={},theme:a}=e,l=(u,d=!1)=>{var f,g,h;const v=br(u,a),S=ta(v)(a);let _={};for(let T in S){const F=S[T];let N=br(F,a);T in o&&(T=o[T]),aa(T,N)&&(N=ia(a,N));let $=r[T];if($===!0&&($={property:T}),yr(N)){_[T]=(f=_[T])!=null?f:{},_[T]=lr({},_[T],l(N,!0));continue}let M=(h=(g=$==null?void 0:$.transform)==null?void 0:g.call($,N,a,v))!=null?h:N;M=$!=null&&$.processResult?l(M,!0):M;const E=br($==null?void 0:$.property,a);if(!d&&($!=null&&$.static)){const ue=br($.static,a);_=lr({},_,ue)}if(E&&Array.isArray(E)){for(const ue of E)_[ue]=M;continue}if(E){E==="&"&&yr(M)?_=lr({},_,M):_[E]=M;continue}if(yr(M)){_=lr({},_,M);continue}_[T]=M}return _};return l}var la=e=>r=>sa({theme:r,pseudos:_t,configs:xt})(e);function ca(e,r){if(Array.isArray(e))return e;if(yr(e))return r(e);if(e!=null)return[e]}function ua(e,r){for(let o=r+1;o<e.length;o++)if(e[o]!=null)return o;return-1}function da(e){const r=e.__breakpoints;return function(a,l,u,d){var f,g;if(!r)return;const h={},v=ca(u,r.toArrayValue);if(!v)return h;const S=v.length,_=S===1,T=!!a.parts;for(let F=0;F<S;F++){const N=r.details[F],$=r.details[ua(v,F)],M=Ko(N.minW,$==null?void 0:$._minW),E=br((f=a[l])==null?void 0:f[v[F]],d);if(E){if(T){(g=a.parts)==null||g.forEach(ue=>{lr(h,{[ue]:_?E[ue]:{[M]:E[ue]}})});continue}if(!T){_?lr(h,E):h[M]=E;continue}h[M]=E}}return h}}function fa(e){return r=>{var o;const{variant:a,size:l,theme:u}=r,d=da(u);return lr({},br((o=e.baseStyle)!=null?o:{},r),d(e,"sizes",l,r),d(e,"variants",a,r))}}function pa(e){return Qo(e,["styleConfig","size","variant","colorScheme"])}var ga=typeof Element<"u",ha=typeof Map=="function",ma=typeof Set=="function",va=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Nr(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,a,l;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(a=o;a--!==0;)if(!Nr(e[a],r[a]))return!1;return!0}var u;if(ha&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(u=e.entries();!(a=u.next()).done;)if(!r.has(a.value[0]))return!1;for(u=e.entries();!(a=u.next()).done;)if(!Nr(a.value[1],r.get(a.value[0])))return!1;return!0}if(ma&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(u=e.entries();!(a=u.next()).done;)if(!r.has(a.value[0]))return!1;return!0}if(va&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(o=e.length,o!=r.length)return!1;for(a=o;a--!==0;)if(e[a]!==r[a])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();if(l=Object.keys(e),o=l.length,o!==Object.keys(r).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[a]))return!1;if(ga&&e instanceof Element)return!1;for(a=o;a--!==0;)if(!((l[a]==="_owner"||l[a]==="__v"||l[a]==="__o")&&e.$$typeof)&&!Nr(e[l[a]],r[l[a]]))return!1;return!0}return e!==e&&r!==r}var ba=function(r,o){try{return Nr(r,o)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const ya=Kt(ba);function fn(e,r={}){var o;const{styleConfig:a,...l}=r,{theme:u,colorMode:d}=go(),f=e?R.memoizedGet(u,`components.${e}`):void 0,g=a||f,h=R.mergeWith({theme:u,colorMode:d},(o=g==null?void 0:g.defaultProps)!=null?o:{},R.filterUndefined(R.omit(l,["children"]))),v=w.useRef({});if(g){const _=fa(g)(h);ya(v.current,_)||(v.current=_)}return v.current}function Sa(e,r={}){return fn(e,r)}function _a(e,r={}){return fn(e,r)}var xa=new Set([...Zo,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),ka=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Ta(e){return ka.has(e)||!xa.has(e)}function Ra(e,...r){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const o={...e};for(const a of r)if(a!=null)for(const l in a)Object.prototype.hasOwnProperty.call(a,l)&&(l in o&&delete o[l],o[l]=a[l]);return o}var Yt,Ca=(Yt=Bt.default)!=null?Yt:Bt,wa=({baseStyle:e})=>r=>{const{theme:o,css:a,__css:l,sx:u,...d}=r,f=R.objectFilter(d,(S,_)=>ra(_)),g=R.runIfFn(e,r),h=Ra({},l,g,R.filterUndefined(f),u),v=la(h)(r.theme);return a?[v,a]:v};function ct(e,r){const{baseStyle:o,...a}=r??{};a.shouldForwardProp||(a.shouldForwardProp=Ta);const l=wa({baseStyle:o}),u=Ca(e,a)(l);return w.forwardRef(function(g,h){const{colorMode:v,forced:S}=sn();return w.createElement(u,{ref:h,"data-theme":S?v:void 0,...g})})}function Ea(){const e=new Map;return new Proxy(ct,{apply(r,o,a){return ct(...a)},get(r,o){return e.has(o)||e.set(o,ct(o)),e.get(o)}})}var ze=Ea();function Fe(e){return w.forwardRef(e)}var Ut={path:k.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),k.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),k.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Hr=Fe((e,r)=>{const{as:o,viewBox:a,color:l="currentColor",focusable:u=!1,children:d,className:f,__css:g,...h}=e,v=yt("chakra-icon",f),S=Sa("Icon",e),_={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l,...g,...S},T={ref:r,focusable:u,className:v,__css:_},F=a??Ut.viewBox;if(o&&typeof o!="string")return k.jsx(ze.svg,{as:o,...T,...h});const N=d??Ut.path;return k.jsx(ze.svg,{verticalAlign:"middle",viewBox:F,...T,...h,children:N})});Hr.displayName="Icon";function Ia(e,r){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${r}`}function Oa(e={}){const{name:r,strict:o=!0,hookName:a="useContext",providerName:l="Provider",errorMessage:u,defaultValue:d}=e,f=w.createContext(d);f.displayName=r;function g(){var h;const v=w.useContext(f);if(!v&&o){const S=new Error(u??Ia(a,l));throw S.name="ContextError",(h=Error.captureStackTrace)==null||h.call(Error,S,g),S}return v}return[f.Provider,g,f]}var ja=Fe(function(r,o){const{spacing:a="0.5rem",spacingX:l,spacingY:u,children:d,justify:f,direction:g,align:h,className:v,shouldWrapChildren:S,..._}=r,T=w.useMemo(()=>S?w.Children.map(d,(F,N)=>k.jsx(kt,{children:F},N)):d,[d,S]);return k.jsx(ze.div,{ref:o,className:yt("chakra-wrap",v),..._,children:k.jsx(ze.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:f,alignItems:h,flexDirection:g,listStyleType:"none",gap:a,columnGap:l,rowGap:u,padding:"0"},children:T})})});ja.displayName="Wrap";var kt=Fe(function(r,o){const{className:a,...l}=r;return k.jsx(ze.li,{ref:o,__css:{display:"flex",alignItems:"flex-start"},className:yt("chakra-wrap__listitem",a),...l})});kt.displayName="WrapItem";var Tt=ze("div");Tt.displayName="Box";var pn=Fe(function(r,o){const{size:a,centerContent:l=!0,...u}=r,d=l?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return k.jsx(Tt,{ref:o,boxSize:a,__css:{...d,flexShrink:0,flexGrow:0},...u})});pn.displayName="Square";var Aa=Fe(function(r,o){const{size:a,...l}=r;return k.jsx(pn,{size:a,ref:o,borderRadius:"9999px",...l})});Aa.displayName="Circle";var gn=Fe(function(r,o){const{direction:a,align:l,justify:u,wrap:d,basis:f,grow:g,shrink:h,...v}=r,S={display:"flex",flexDirection:a,alignItems:l,justifyContent:u,flexWrap:d,flexBasis:f,flexGrow:g,flexShrink:h};return k.jsx(ze.div,{ref:o,__css:S,...v})});gn.displayName="Flex";const Pa=e=>{const{getEmptyStateProps:r,defaultEmptyStateProps:o}=Qe(),a=r(k.jsx(gn,{...Ba,...o,children:"No options found!"}));return k.jsx(Tt,{...e,children:a})},Ba={fontSize:"sm",align:"center",justify:"center",fontWeight:"bold",fontStyle:"italic"},Ht=["AutoCompleteGroup","AutoCompleteItem","AutoCompleteCreatable"],Fa=e=>{const r=w.Children.map(e,(l,u)=>{var d;if(((d=l==null?void 0:l.type)==null?void 0:d.displayName)==="AutoCompleteGroup"){const f=w.Children.toArray(e)[u+1];return w.cloneElement(l,{groupSibling:f?f.type.displayName==="AutoCompleteGroup":!1})}return l}),o=w.Children.toArray(r).filter(l=>{var u;return!Ht.includes((u=l==null?void 0:l.type)==null?void 0:u.displayName)});return[w.Children.toArray(r).filter(l=>{var u;return Ht.includes((u=l==null?void 0:l.type)==null?void 0:u.displayName)}),o]},hn=L.forwardRef((e,r)=>{const{children:o,loadingState:a,...l}=e,{listRef:u,isLoading:d}=Qe(),f=L.useMergeRefs(r,u),[g,h]=Fa(o);return k.jsxs(L.PopoverContent,{ref:f,w:"inherit",...$a,...l,children:[d&&k.jsx(L.Center,{children:a||k.jsx(L.Spinner,{size:"md"})}),!d&&k.jsxs(k.Fragment,{children:[g,k.jsx(Pa,{}),h]})]})});hn.displayName="AutoCompleteList";const $a={py:"4",opacity:"0",bg:"#232934",rounded:"md",maxH:"350px",border:"none",shadow:"base",zIndex:"popover",overflowY:"auto",_light:{bg:"#ffffff"},_focus:{boxShadow:"none"}};var[Wa,mn]=Oa({name:"TagStylesContext",errorMessage:`useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tag />" `}),vn=Fe((e,r)=>{const o=_a("Tag",e),a=pa(e),l={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...o.container};return k.jsx(Wa,{value:o,children:k.jsx(ze.span,{ref:r,...a,__css:l})})});vn.displayName="Tag";var bn=Fe((e,r)=>{const o=mn();return k.jsx(ze.span,{ref:r,noOfLines:1,...e,__css:o.label})});bn.displayName="TagLabel";var La=Fe((e,r)=>k.jsx(Hr,{ref:r,verticalAlign:"top",marginEnd:"0.5rem",...e}));La.displayName="TagLeftIcon";var Ma=Fe((e,r)=>k.jsx(Hr,{ref:r,verticalAlign:"top",marginStart:"0.5rem",...e}));Ma.displayName="TagRightIcon";var yn=e=>k.jsx(Hr,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:k.jsx("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});yn.displayName="TagCloseIcon";var Sn=Fe((e,r)=>{const{isDisabled:o,children:a,...l}=e,d={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...mn().closeButton};return k.jsx(ze.button,{ref:r,"aria-label":"close",...l,type:"button",disabled:o,__css:d,children:a||k.jsx(yn,{})})});Sn.displayName="TagCloseButton";const Da=w.memo(e=>{const{label:r,onRemove:o,disabled:a,...l}=e;return k.jsx(kt,{children:k.jsxs(vn,{borderRadius:"md",fontWeight:"normal",...a&&Xt,...l,children:[k.jsx(bn,{children:r}),k.jsx(Sn,{onClick:()=>!a&&R.runIfFn(o),cursor:"pointer",...a&&Xt})]})})}),Xt={cursor:"text",userSelect:"none",opacity:.4,_focus:{boxShadow:"none"}};exports.AutoComplete=en;exports.AutoCompleteCreatable=tn;exports.AutoCompleteGroup=nn;exports.AutoCompleteGroupTitle=on;exports.AutoCompleteInput=bt;exports.AutoCompleteItem=rn;exports.AutoCompleteList=hn;exports.AutoCompleteProvider=Jt;exports.AutoCompleteTag=Da;exports.baseItemStyles=vt;exports.useAutoComplete=Zt;exports.useAutoCompleteContext=Qe;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.6.0",
2
+ "version": "5.6.2",
3
3
  "license": "MIT",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",