xtreme-ui 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import ar, { forwardRef as U, useRef as Ar, useMemo as Wr } from "react";
2
- const he = typeof window < "u", Y = he ? window : void 0, Se = (r, n) => he ? getComputedStyle((n == null ? void 0 : n.current) || document.documentElement).getPropertyValue(r) : "", ia = (r, n) => parseInt(Se(r, n).replace(/px/g, "")), oa = (r, n) => {
3
- const i = parseInt(Se(r, n).replace(/vh/g, ""));
2
+ const he = typeof window < "u", Y = he ? window : void 0, Te = (r, n) => he ? getComputedStyle((n == null ? void 0 : n.current) || document.documentElement).getPropertyValue(r) : "", aa = (r, n) => parseInt(Te(r, n).replace(/px/g, "")), ia = (r, n) => {
3
+ const i = parseInt(Te(r, n).replace(/vh/g, ""));
4
4
  return [((Y == null ? void 0 : Y.innerHeight) ?? 0) * i / 100, i];
5
- }, sa = (r, n) => {
6
- const i = parseInt(Se(r, n).replace(/vw/g, ""));
5
+ }, oa = (r, n) => {
6
+ const i = parseInt(Te(r, n).replace(/vw/g, ""));
7
7
  return [((Y == null ? void 0 : Y.innerWidth) ?? 0) * i / 100, i];
8
- }, la = (r, n, i) => he ? ((i == null ? void 0 : i.current) || document.documentElement).style.setProperty(r, n) : "", ua = (r) => new Promise((n) => {
8
+ }, sa = (r, n, i) => he ? ((i == null ? void 0 : i.current) || document.documentElement).style.setProperty(r, n) : "", ca = (r) => new Promise((n) => {
9
9
  let i = document.querySelector(r);
10
10
  if (i)
11
11
  return n(i);
@@ -13,14 +13,14 @@ const he = typeof window < "u", Y = he ? window : void 0, Se = (r, n) => he ? ge
13
13
  i = document.querySelector(r), i && (n(i), o.disconnect());
14
14
  });
15
15
  o.observe(document.body, { childList: !0, subtree: !0 });
16
- }), ca = (r, n) => {
16
+ }), la = (r, n) => {
17
17
  var i;
18
18
  (i = n == null ? void 0 : n.forEach) == null || i.call(n, (o) => {
19
- let l;
19
+ let c;
20
20
  new MutationObserver((_) => {
21
- var u;
22
- document.querySelector(o) && (l = document.querySelector(o)), (u = _ == null ? void 0 : _.forEach) == null || u.call(_, (m) => {
23
- m.type === "childList" && (Array.from(m.addedNodes).indexOf(l) > -1 && r(l, "added", m), Array.from(m.removedNodes).indexOf(l) > -1 && r(l, "removed", m));
21
+ var l;
22
+ document.querySelector(o) && (c = document.querySelector(o)), (l = _ == null ? void 0 : _.forEach) == null || l.call(_, (m) => {
23
+ m.type === "childList" && (Array.from(m.addedNodes).indexOf(c) > -1 && r(c, "added", m), Array.from(m.removedNodes).indexOf(c) > -1 && r(c, "removed", m));
24
24
  });
25
25
  }).observe(document.body, { childList: !0, subtree: !0 });
26
26
  });
@@ -48,16 +48,16 @@ function Yr() {
48
48
  if (Ge)
49
49
  return K;
50
50
  Ge = 1;
51
- var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
52
- function _(d, u, m) {
53
- var y, b = {}, j = null, w = null;
54
- m !== void 0 && (j = "" + m), u.key !== void 0 && (j = "" + u.key), u.ref !== void 0 && (w = u.ref);
55
- for (y in u)
56
- o.call(u, y) && !g.hasOwnProperty(y) && (b[y] = u[y]);
51
+ var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
52
+ function _(d, l, m) {
53
+ var y, b = {}, x = null, w = null;
54
+ m !== void 0 && (x = "" + m), l.key !== void 0 && (x = "" + l.key), l.ref !== void 0 && (w = l.ref);
55
+ for (y in l)
56
+ o.call(l, y) && !g.hasOwnProperty(y) && (b[y] = l[y]);
57
57
  if (d && d.defaultProps)
58
- for (y in u = d.defaultProps, u)
59
- b[y] === void 0 && (b[y] = u[y]);
60
- return { $$typeof: n, type: d, key: j, ref: w, props: b, _owner: l.current };
58
+ for (y in l = d.defaultProps, l)
59
+ b[y] === void 0 && (b[y] = l[y]);
60
+ return { $$typeof: n, type: d, key: x, ref: w, props: b, _owner: c.current };
61
61
  }
62
62
  return K.Fragment = i, K.jsx = _, K.jsxs = _, K;
63
63
  }
@@ -74,15 +74,15 @@ var Z = {};
74
74
  var Je;
75
75
  function Ur() {
76
76
  return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
77
- var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), W = Symbol.iterator, q = "@@iterator";
77
+ var r = ar, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), W = Symbol.iterator, q = "@@iterator";
78
78
  function z(e) {
79
79
  if (e === null || typeof e != "object")
80
80
  return null;
81
81
  var t = W && e[W] || e[q];
82
82
  return typeof t == "function" ? t : null;
83
83
  }
84
- var E = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
85
- function S(e) {
84
+ var j = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
85
+ function T(e) {
86
86
  {
87
87
  for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
88
88
  a[s - 1] = arguments[s];
@@ -91,7 +91,7 @@ function Ur() {
91
91
  }
92
92
  function oe(e, t, a) {
93
93
  {
94
- var s = E.ReactDebugCurrentFrame, p = s.getStackAddendum();
94
+ var s = j.ReactDebugCurrentFrame, p = s.getStackAddendum();
95
95
  p !== "" && (t += "%s", a = a.concat([p]));
96
96
  var v = a.map(function(f) {
97
97
  return String(f);
@@ -99,10 +99,10 @@ function Ur() {
99
99
  v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
100
100
  }
101
101
  }
102
- var se = !1, G = !1, T = !1, P = !1, L = !1, J;
102
+ var se = !1, G = !1, S = !1, P = !1, F = !1, J;
103
103
  J = Symbol.for("react.module.reference");
104
104
  function fr(e) {
105
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === g || L || e === l || e === m || e === y || P || e === w || se || G || T || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === b || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === u || // This needs to include all possible module reference object
105
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === g || F || e === c || e === m || e === y || P || e === w || se || G || S || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === b || e.$$typeof === _ || e.$$typeof === d || e.$$typeof === l || // This needs to include all possible module reference object
106
106
  // types supported by any Flight configuration anywhere since
107
107
  // we don't know which Flight build this will end up being used
108
108
  // with.
@@ -115,13 +115,13 @@ function Ur() {
115
115
  var p = t.displayName || t.name || "";
116
116
  return p !== "" ? a + "(" + p + ")" : a;
117
117
  }
118
- function xe(e) {
118
+ function Ee(e) {
119
119
  return e.displayName || "Context";
120
120
  }
121
121
  function N(e) {
122
122
  if (e == null)
123
123
  return null;
124
- if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
124
+ if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
125
125
  return e.displayName || e.name || null;
126
126
  if (typeof e == "string")
127
127
  return e;
@@ -132,7 +132,7 @@ function Ur() {
132
132
  return "Portal";
133
133
  case g:
134
134
  return "Profiler";
135
- case l:
135
+ case c:
136
136
  return "StrictMode";
137
137
  case m:
138
138
  return "Suspense";
@@ -143,16 +143,16 @@ function Ur() {
143
143
  switch (e.$$typeof) {
144
144
  case d:
145
145
  var t = e;
146
- return xe(t) + ".Consumer";
146
+ return Ee(t) + ".Consumer";
147
147
  case _:
148
148
  var a = e;
149
- return xe(a._context) + ".Provider";
150
- case u:
149
+ return Ee(a._context) + ".Provider";
150
+ case l:
151
151
  return dr(e, e.render, "ForwardRef");
152
152
  case b:
153
153
  var s = e.displayName || null;
154
154
  return s !== null ? s : N(e.type) || "Memo";
155
- case j: {
155
+ case x: {
156
156
  var p = e, v = p._payload, f = p._init;
157
157
  try {
158
158
  return N(f(v));
@@ -163,14 +163,14 @@ function Ur() {
163
163
  }
164
164
  return null;
165
165
  }
166
- var I = Object.assign, X = 0, je, Ee, Oe, we, Ce, Pe, ke;
166
+ var L = Object.assign, X = 0, xe, je, Oe, we, Ce, Pe, ke;
167
167
  function Ne() {
168
168
  }
169
169
  Ne.__reactDisabledLog = !0;
170
170
  function pr() {
171
171
  {
172
172
  if (X === 0) {
173
- je = console.log, Ee = console.info, Oe = console.warn, we = console.error, Ce = console.group, Pe = console.groupCollapsed, ke = console.groupEnd;
173
+ xe = console.log, je = console.info, Oe = console.warn, we = console.error, Ce = console.group, Pe = console.groupCollapsed, ke = console.groupEnd;
174
174
  var e = {
175
175
  configurable: !0,
176
176
  enumerable: !0,
@@ -199,53 +199,53 @@ function Ur() {
199
199
  writable: !0
200
200
  };
201
201
  Object.defineProperties(console, {
202
- log: I({}, e, {
203
- value: je
202
+ log: L({}, e, {
203
+ value: xe
204
204
  }),
205
- info: I({}, e, {
206
- value: Ee
205
+ info: L({}, e, {
206
+ value: je
207
207
  }),
208
- warn: I({}, e, {
208
+ warn: L({}, e, {
209
209
  value: Oe
210
210
  }),
211
- error: I({}, e, {
211
+ error: L({}, e, {
212
212
  value: we
213
213
  }),
214
- group: I({}, e, {
214
+ group: L({}, e, {
215
215
  value: Ce
216
216
  }),
217
- groupCollapsed: I({}, e, {
217
+ groupCollapsed: L({}, e, {
218
218
  value: Pe
219
219
  }),
220
- groupEnd: I({}, e, {
220
+ groupEnd: L({}, e, {
221
221
  value: ke
222
222
  })
223
223
  });
224
224
  }
225
- X < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
225
+ X < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
226
226
  }
227
227
  }
228
- var le = E.ReactCurrentDispatcher, ue;
228
+ var ce = j.ReactCurrentDispatcher, le;
229
229
  function ee(e, t, a) {
230
230
  {
231
- if (ue === void 0)
231
+ if (le === void 0)
232
232
  try {
233
233
  throw Error();
234
234
  } catch (p) {
235
235
  var s = p.stack.trim().match(/\n( *(at )?)/);
236
- ue = s && s[1] || "";
236
+ le = s && s[1] || "";
237
237
  }
238
238
  return `
239
- ` + ue + e;
239
+ ` + le + e;
240
240
  }
241
241
  }
242
- var ce = !1, re;
242
+ var ue = !1, re;
243
243
  {
244
244
  var vr = typeof WeakMap == "function" ? WeakMap : Map;
245
245
  re = new vr();
246
246
  }
247
247
  function $e(e, t) {
248
- if (!e || ce)
248
+ if (!e || ue)
249
249
  return "";
250
250
  {
251
251
  var a = re.get(e);
@@ -253,11 +253,11 @@ function Ur() {
253
253
  return a;
254
254
  }
255
255
  var s;
256
- ce = !0;
256
+ ue = !0;
257
257
  var p = Error.prepareStackTrace;
258
258
  Error.prepareStackTrace = void 0;
259
259
  var v;
260
- v = le.current, le.current = null, pr();
260
+ v = ce.current, ce.current = null, pr();
261
261
  try {
262
262
  if (t) {
263
263
  var f = function() {
@@ -292,25 +292,25 @@ function Ur() {
292
292
  }
293
293
  } catch ($) {
294
294
  if ($ && s && typeof $.stack == "string") {
295
- for (var c = $.stack.split(`
295
+ for (var u = $.stack.split(`
296
296
  `), O = s.stack.split(`
297
- `), R = c.length - 1, x = O.length - 1; R >= 1 && x >= 0 && c[R] !== O[x]; )
298
- x--;
299
- for (; R >= 1 && x >= 0; R--, x--)
300
- if (c[R] !== O[x]) {
301
- if (R !== 1 || x !== 1)
297
+ `), R = u.length - 1, E = O.length - 1; R >= 1 && E >= 0 && u[R] !== O[E]; )
298
+ E--;
299
+ for (; R >= 1 && E >= 0; R--, E--)
300
+ if (u[R] !== O[E]) {
301
+ if (R !== 1 || E !== 1)
302
302
  do
303
- if (R--, x--, x < 0 || c[R] !== O[x]) {
303
+ if (R--, E--, E < 0 || u[R] !== O[E]) {
304
304
  var C = `
305
- ` + c[R].replace(" at new ", " at ");
305
+ ` + u[R].replace(" at new ", " at ");
306
306
  return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, C), C;
307
307
  }
308
- while (R >= 1 && x >= 0);
308
+ while (R >= 1 && E >= 0);
309
309
  break;
310
310
  }
311
311
  }
312
312
  } finally {
313
- ce = !1, le.current = v, _r(), Error.prepareStackTrace = p;
313
+ ue = !1, ce.current = v, _r(), Error.prepareStackTrace = p;
314
314
  }
315
315
  var V = e ? e.displayName || e.name : "", Be = V ? ee(V) : "";
316
316
  return typeof e == "function" && re.set(e, Be), Be;
@@ -337,11 +337,11 @@ function Ur() {
337
337
  }
338
338
  if (typeof e == "object")
339
339
  switch (e.$$typeof) {
340
- case u:
340
+ case l:
341
341
  return gr(e.render);
342
342
  case b:
343
343
  return te(e.type, t, a);
344
- case j: {
344
+ case x: {
345
345
  var s = e, p = s._payload, v = s._init;
346
346
  try {
347
347
  return te(v(p), t, a);
@@ -351,30 +351,30 @@ function Ur() {
351
351
  }
352
352
  return "";
353
353
  }
354
- var ne = Object.prototype.hasOwnProperty, De = {}, Fe = E.ReactDebugCurrentFrame;
354
+ var ne = Object.prototype.hasOwnProperty, De = {}, Ie = j.ReactDebugCurrentFrame;
355
355
  function ae(e) {
356
356
  if (e) {
357
357
  var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
358
- Fe.setExtraStackFrame(a);
358
+ Ie.setExtraStackFrame(a);
359
359
  } else
360
- Fe.setExtraStackFrame(null);
360
+ Ie.setExtraStackFrame(null);
361
361
  }
362
362
  function yr(e, t, a, s, p) {
363
363
  {
364
364
  var v = Function.call.bind(ne);
365
365
  for (var f in e)
366
366
  if (v(e, f)) {
367
- var c = void 0;
367
+ var u = void 0;
368
368
  try {
369
369
  if (typeof e[f] != "function") {
370
370
  var O = Error((s || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
371
371
  throw O.name = "Invariant Violation", O;
372
372
  }
373
- c = e[f](t, f, s, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
373
+ u = e[f](t, f, s, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
374
374
  } catch (R) {
375
- c = R;
375
+ u = R;
376
376
  }
377
- c && !(c instanceof Error) && (ae(p), S("%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).", s || "React class", a, f, typeof c), ae(null)), c instanceof Error && !(c.message in De) && (De[c.message] = !0, ae(p), S("Failed %s type: %s", a, c.message), ae(null));
377
+ u && !(u instanceof Error) && (ae(p), T("%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).", s || "React class", a, f, typeof u), ae(null)), u instanceof Error && !(u.message in De) && (De[u.message] = !0, ae(p), T("Failed %s type: %s", a, u.message), ae(null));
378
378
  }
379
379
  }
380
380
  }
@@ -388,21 +388,21 @@ function Ur() {
388
388
  return a;
389
389
  }
390
390
  }
391
- function Sr(e) {
391
+ function Tr(e) {
392
392
  try {
393
- return Le(e), !1;
393
+ return Fe(e), !1;
394
394
  } catch {
395
395
  return !0;
396
396
  }
397
397
  }
398
- function Le(e) {
398
+ function Fe(e) {
399
399
  return "" + e;
400
400
  }
401
- function Ie(e) {
402
- if (Sr(e))
403
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), Le(e);
401
+ function Le(e) {
402
+ if (Tr(e))
403
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), Fe(e);
404
404
  }
405
- var H = E.ReactCurrentOwner, Tr = {
405
+ var H = j.ReactCurrentOwner, Sr = {
406
406
  key: !0,
407
407
  ref: !0,
408
408
  __self: !0,
@@ -417,7 +417,7 @@ function Ur() {
417
417
  }
418
418
  return e.ref !== void 0;
419
419
  }
420
- function xr(e) {
420
+ function Er(e) {
421
421
  if (ne.call(e, "key")) {
422
422
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
423
423
  if (t && t.isReactWarning)
@@ -425,16 +425,16 @@ function Ur() {
425
425
  }
426
426
  return e.key !== void 0;
427
427
  }
428
- function jr(e, t) {
428
+ function xr(e, t) {
429
429
  if (typeof e.ref == "string" && H.current && t && H.current.stateNode !== t) {
430
430
  var a = N(H.current.type);
431
- de[a] || (S('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', N(H.current.type), e.ref), de[a] = !0);
431
+ de[a] || (T('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', N(H.current.type), e.ref), de[a] = !0);
432
432
  }
433
433
  }
434
- function Er(e, t) {
434
+ function jr(e, t) {
435
435
  {
436
436
  var a = function() {
437
- Ae || (Ae = !0, S("%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)", t));
437
+ Ae || (Ae = !0, T("%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)", t));
438
438
  };
439
439
  a.isReactWarning = !0, Object.defineProperty(e, "key", {
440
440
  get: a,
@@ -445,7 +445,7 @@ function Ur() {
445
445
  function Or(e, t) {
446
446
  {
447
447
  var a = function() {
448
- We || (We = !0, S("%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)", t));
448
+ We || (We = !0, T("%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)", t));
449
449
  };
450
450
  a.isReactWarning = !0, Object.defineProperty(e, "ref", {
451
451
  get: a,
@@ -454,7 +454,7 @@ function Ur() {
454
454
  }
455
455
  }
456
456
  var wr = function(e, t, a, s, p, v, f) {
457
- var c = {
457
+ var u = {
458
458
  // This tag allows us to uniquely identify this as a React Element
459
459
  $$typeof: n,
460
460
  // Built-in properties that belong on the element
@@ -465,42 +465,42 @@ function Ur() {
465
465
  // Record the component responsible for creating this element.
466
466
  _owner: v
467
467
  };
468
- return c._store = {}, Object.defineProperty(c._store, "validated", {
468
+ return u._store = {}, Object.defineProperty(u._store, "validated", {
469
469
  configurable: !1,
470
470
  enumerable: !1,
471
471
  writable: !0,
472
472
  value: !1
473
- }), Object.defineProperty(c, "_self", {
473
+ }), Object.defineProperty(u, "_self", {
474
474
  configurable: !1,
475
475
  enumerable: !1,
476
476
  writable: !1,
477
477
  value: s
478
- }), Object.defineProperty(c, "_source", {
478
+ }), Object.defineProperty(u, "_source", {
479
479
  configurable: !1,
480
480
  enumerable: !1,
481
481
  writable: !1,
482
482
  value: p
483
- }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
483
+ }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
484
484
  };
485
485
  function Cr(e, t, a, s, p) {
486
486
  {
487
- var v, f = {}, c = null, O = null;
488
- a !== void 0 && (Ie(a), c = "" + a), xr(t) && (Ie(t.key), c = "" + t.key), Rr(t) && (O = t.ref, jr(t, p));
487
+ var v, f = {}, u = null, O = null;
488
+ a !== void 0 && (Le(a), u = "" + a), Er(t) && (Le(t.key), u = "" + t.key), Rr(t) && (O = t.ref, xr(t, p));
489
489
  for (v in t)
490
- ne.call(t, v) && !Tr.hasOwnProperty(v) && (f[v] = t[v]);
490
+ ne.call(t, v) && !Sr.hasOwnProperty(v) && (f[v] = t[v]);
491
491
  if (e && e.defaultProps) {
492
492
  var R = e.defaultProps;
493
493
  for (v in R)
494
494
  f[v] === void 0 && (f[v] = R[v]);
495
495
  }
496
- if (c || O) {
497
- var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
498
- c && Er(f, x), O && Or(f, x);
496
+ if (u || O) {
497
+ var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
498
+ u && jr(f, E), O && Or(f, E);
499
499
  }
500
- return wr(e, c, O, p, s, H.current, f);
500
+ return wr(e, u, O, p, s, H.current, f);
501
501
  }
502
502
  }
503
- var pe = E.ReactCurrentOwner, qe = E.ReactDebugCurrentFrame;
503
+ var pe = j.ReactCurrentOwner, qe = j.ReactDebugCurrentFrame;
504
504
  function M(e) {
505
505
  if (e) {
506
506
  var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
@@ -559,7 +559,7 @@ Check the top-level render call using <` + a + ">.");
559
559
  return;
560
560
  Me[a] = !0;
561
561
  var s = "";
562
- e && e._owner && e._owner !== pe.current && (s = " It was passed a child from " + N(e._owner.type) + "."), M(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, s), M(null);
562
+ e && e._owner && e._owner !== pe.current && (s = " It was passed a child from " + N(e._owner.type) + "."), M(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, s), M(null);
563
563
  }
564
564
  }
565
565
  function Ye(e, t) {
@@ -589,7 +589,7 @@ Check the top-level render call using <` + a + ">.");
589
589
  var a;
590
590
  if (typeof t == "function")
591
591
  a = t.propTypes;
592
- else if (typeof t == "object" && (t.$$typeof === u || // Note: Memo only checks outer props here.
592
+ else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
593
593
  // Inner props are checked in the reconciler.
594
594
  t.$$typeof === b))
595
595
  a = t.propTypes;
@@ -601,9 +601,9 @@ Check the top-level render call using <` + a + ">.");
601
601
  } else if (t.PropTypes !== void 0 && !_e) {
602
602
  _e = !0;
603
603
  var p = N(t);
604
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
604
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
605
605
  }
606
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
606
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
607
607
  }
608
608
  }
609
609
  function $r(e) {
@@ -611,27 +611,27 @@ Check the top-level render call using <` + a + ">.");
611
611
  for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
612
612
  var s = t[a];
613
613
  if (s !== "children" && s !== "key") {
614
- M(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), M(null);
614
+ M(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), M(null);
615
615
  break;
616
616
  }
617
617
  }
618
- e.ref !== null && (M(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
618
+ e.ref !== null && (M(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
619
619
  }
620
620
  }
621
621
  function Ue(e, t, a, s, p, v) {
622
622
  {
623
623
  var f = fr(e);
624
624
  if (!f) {
625
- var c = "";
626
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).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.");
625
+ var u = "";
626
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
627
627
  var O = Pr(p);
628
- O ? c += O : c += ze();
628
+ O ? u += O : u += ze();
629
629
  var R;
630
- e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + (N(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, c);
630
+ e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === n ? (R = "<" + (N(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, u);
631
631
  }
632
- var x = Cr(e, t, a, p, v);
633
- if (x == null)
634
- return x;
632
+ var E = Cr(e, t, a, p, v);
633
+ if (E == null)
634
+ return E;
635
635
  if (f) {
636
636
  var C = t.children;
637
637
  if (C !== void 0)
@@ -641,21 +641,21 @@ Check the top-level render call using <` + a + ">.");
641
641
  Ye(C[V], e);
642
642
  Object.freeze && Object.freeze(C);
643
643
  } else
644
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
644
+ T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
645
645
  else
646
646
  Ye(C, e);
647
647
  }
648
- return e === o ? $r(x) : Nr(x), x;
648
+ return e === o ? $r(E) : Nr(E), E;
649
649
  }
650
650
  }
651
651
  function Dr(e, t, a) {
652
652
  return Ue(e, t, a, !0);
653
653
  }
654
- function Fr(e, t, a) {
654
+ function Ir(e, t, a) {
655
655
  return Ue(e, t, a, !1);
656
656
  }
657
- var Lr = Fr, Ir = Dr;
658
- Z.Fragment = o, Z.jsx = Lr, Z.jsxs = Ir;
657
+ var Fr = Ir, Lr = Dr;
658
+ Z.Fragment = o, Z.jsx = Fr, Z.jsxs = Lr;
659
659
  }()), Z;
660
660
  }
661
661
  process.env.NODE_ENV === "production" ? ye.exports = Yr() : ye.exports = Ur();
@@ -682,7 +682,7 @@ function Br(r) {
682
682
  var n = typeof r;
683
683
  return r != null && (n == "object" || n == "function");
684
684
  }
685
- var Te = Br, Gr = typeof ie == "object" && ie && ie.Object === Object && ie, Jr = Gr, Xr = Jr, Hr = typeof self == "object" && self && self.Object === Object && self, Kr = Xr || Hr || Function("return this")(), or = Kr, Zr = or, Qr = function() {
685
+ var Se = Br, Gr = typeof ie == "object" && ie && ie.Object === Object && ie, Jr = Gr, Xr = Jr, Hr = typeof self == "object" && self && self.Object === Object && self, Kr = Xr || Hr || Function("return this")(), or = Kr, Zr = or, Qr = function() {
686
686
  return Zr.Date.now();
687
687
  }, et = Qr, rt = /\s/;
688
688
  function tt(r) {
@@ -694,35 +694,35 @@ var nt = tt, at = nt, it = /^\s+/;
694
694
  function ot(r) {
695
695
  return r && r.slice(0, at(r) + 1).replace(it, "");
696
696
  }
697
- var st = ot, lt = or, ut = lt.Symbol, sr = ut, Xe = sr, lr = Object.prototype, ct = lr.hasOwnProperty, ft = lr.toString, Q = Xe ? Xe.toStringTag : void 0;
697
+ var st = ot, ct = or, lt = ct.Symbol, sr = lt, Xe = sr, cr = Object.prototype, ut = cr.hasOwnProperty, ft = cr.toString, Q = Xe ? Xe.toStringTag : void 0;
698
698
  function dt(r) {
699
- var n = ct.call(r, Q), i = r[Q];
699
+ var n = ut.call(r, Q), i = r[Q];
700
700
  try {
701
701
  r[Q] = void 0;
702
702
  var o = !0;
703
703
  } catch {
704
704
  }
705
- var l = ft.call(r);
706
- return o && (n ? r[Q] = i : delete r[Q]), l;
705
+ var c = ft.call(r);
706
+ return o && (n ? r[Q] = i : delete r[Q]), c;
707
707
  }
708
708
  var pt = dt, _t = Object.prototype, vt = _t.toString;
709
709
  function gt(r) {
710
710
  return vt.call(r);
711
711
  }
712
- var mt = gt, He = sr, yt = pt, bt = mt, ht = "[object Null]", St = "[object Undefined]", Ke = He ? He.toStringTag : void 0;
713
- function Tt(r) {
714
- return r == null ? r === void 0 ? St : ht : Ke && Ke in Object(r) ? yt(r) : bt(r);
712
+ var mt = gt, He = sr, yt = pt, bt = mt, ht = "[object Null]", Tt = "[object Undefined]", Ke = He ? He.toStringTag : void 0;
713
+ function St(r) {
714
+ return r == null ? r === void 0 ? Tt : ht : Ke && Ke in Object(r) ? yt(r) : bt(r);
715
715
  }
716
- var Rt = Tt;
717
- function xt(r) {
716
+ var Rt = St;
717
+ function Et(r) {
718
718
  return r != null && typeof r == "object";
719
719
  }
720
- var jt = xt, Et = Rt, Ot = jt, wt = "[object Symbol]";
720
+ var xt = Et, jt = Rt, Ot = xt, wt = "[object Symbol]";
721
721
  function Ct(r) {
722
- return typeof r == "symbol" || Ot(r) && Et(r) == wt;
722
+ return typeof r == "symbol" || Ot(r) && jt(r) == wt;
723
723
  }
724
- var Pt = Ct, kt = st, Ze = Te, Nt = Pt, Qe = 0 / 0, $t = /^[-+]0x[0-9a-f]+$/i, Dt = /^0b[01]+$/i, Ft = /^0o[0-7]+$/i, Lt = parseInt;
725
- function It(r) {
724
+ var Pt = Ct, kt = st, Ze = Se, Nt = Pt, Qe = 0 / 0, $t = /^[-+]0x[0-9a-f]+$/i, Dt = /^0b[01]+$/i, It = /^0o[0-7]+$/i, Ft = parseInt;
725
+ function Lt(r) {
726
726
  if (typeof r == "number")
727
727
  return r;
728
728
  if (Nt(r))
@@ -735,65 +735,65 @@ function It(r) {
735
735
  return r === 0 ? r : +r;
736
736
  r = kt(r);
737
737
  var i = Dt.test(r);
738
- return i || Ft.test(r) ? Lt(r.slice(2), i ? 2 : 8) : $t.test(r) ? Qe : +r;
738
+ return i || It.test(r) ? Ft(r.slice(2), i ? 2 : 8) : $t.test(r) ? Qe : +r;
739
739
  }
740
- var At = It, Wt = Te, ge = et, er = At, qt = "Expected a function", zt = Math.max, Mt = Math.min;
740
+ var At = Lt, Wt = Se, ge = et, er = At, qt = "Expected a function", zt = Math.max, Mt = Math.min;
741
741
  function Vt(r, n, i) {
742
- var o, l, g, _, d, u, m = 0, y = !1, b = !1, j = !0;
742
+ var o, c, g, _, d, l, m = 0, y = !1, b = !1, x = !0;
743
743
  if (typeof r != "function")
744
744
  throw new TypeError(qt);
745
- n = er(n) || 0, Wt(i) && (y = !!i.leading, b = "maxWait" in i, g = b ? zt(er(i.maxWait) || 0, n) : g, j = "trailing" in i ? !!i.trailing : j);
746
- function w(T) {
747
- var P = o, L = l;
748
- return o = l = void 0, m = T, _ = r.apply(L, P), _;
745
+ n = er(n) || 0, Wt(i) && (y = !!i.leading, b = "maxWait" in i, g = b ? zt(er(i.maxWait) || 0, n) : g, x = "trailing" in i ? !!i.trailing : x);
746
+ function w(S) {
747
+ var P = o, F = c;
748
+ return o = c = void 0, m = S, _ = r.apply(F, P), _;
749
749
  }
750
- function W(T) {
751
- return m = T, d = setTimeout(E, n), y ? w(T) : _;
750
+ function W(S) {
751
+ return m = S, d = setTimeout(j, n), y ? w(S) : _;
752
752
  }
753
- function q(T) {
754
- var P = T - u, L = T - m, J = n - P;
755
- return b ? Mt(J, g - L) : J;
753
+ function q(S) {
754
+ var P = S - l, F = S - m, J = n - P;
755
+ return b ? Mt(J, g - F) : J;
756
756
  }
757
- function z(T) {
758
- var P = T - u, L = T - m;
759
- return u === void 0 || P >= n || P < 0 || b && L >= g;
757
+ function z(S) {
758
+ var P = S - l, F = S - m;
759
+ return l === void 0 || P >= n || P < 0 || b && F >= g;
760
760
  }
761
- function E() {
762
- var T = ge();
763
- if (z(T))
764
- return S(T);
765
- d = setTimeout(E, q(T));
761
+ function j() {
762
+ var S = ge();
763
+ if (z(S))
764
+ return T(S);
765
+ d = setTimeout(j, q(S));
766
766
  }
767
- function S(T) {
768
- return d = void 0, j && o ? w(T) : (o = l = void 0, _);
767
+ function T(S) {
768
+ return d = void 0, x && o ? w(S) : (o = c = void 0, _);
769
769
  }
770
770
  function oe() {
771
- d !== void 0 && clearTimeout(d), m = 0, o = u = l = d = void 0;
771
+ d !== void 0 && clearTimeout(d), m = 0, o = l = c = d = void 0;
772
772
  }
773
773
  function se() {
774
- return d === void 0 ? _ : S(ge());
774
+ return d === void 0 ? _ : T(ge());
775
775
  }
776
776
  function G() {
777
- var T = ge(), P = z(T);
778
- if (o = arguments, l = this, u = T, P) {
777
+ var S = ge(), P = z(S);
778
+ if (o = arguments, c = this, l = S, P) {
779
779
  if (d === void 0)
780
- return W(u);
780
+ return W(l);
781
781
  if (b)
782
- return clearTimeout(d), d = setTimeout(E, n), w(u);
782
+ return clearTimeout(d), d = setTimeout(j, n), w(l);
783
783
  }
784
- return d === void 0 && (d = setTimeout(E, n)), _;
784
+ return d === void 0 && (d = setTimeout(j, n)), _;
785
785
  }
786
786
  return G.cancel = oe, G.flush = se, G;
787
787
  }
788
- var Yt = Vt, Ut = Yt, Bt = Te, Gt = "Expected a function";
788
+ var Yt = Vt, Ut = Yt, Bt = Se, Gt = "Expected a function";
789
789
  function Jt(r, n, i) {
790
- var o = !0, l = !0;
790
+ var o = !0, c = !0;
791
791
  if (typeof r != "function")
792
792
  throw new TypeError(Gt);
793
- return Bt(i) && (o = "leading" in i ? !!i.leading : o, l = "trailing" in i ? !!i.trailing : l), Ut(r, n, {
793
+ return Bt(i) && (o = "leading" in i ? !!i.leading : o, c = "trailing" in i ? !!i.trailing : c), Ut(r, n, {
794
794
  leading: o,
795
795
  maxWait: n,
796
- trailing: l
796
+ trailing: c
797
797
  });
798
798
  }
799
799
  var Xt = Jt;
@@ -809,131 +809,131 @@ const Ht = /* @__PURE__ */ Vr(Xt), Kt = "_icon_awnbf_2", Zt = "_thin_awnbf_25",
809
809
  sharpLight: on,
810
810
  brand: sn
811
811
  };
812
- var ln = /* @__PURE__ */ ((r) => (r.thin = "thin", r.light = "light", r.regular = "regular", r.solid = "solid", r.duotone = "duotone", r.sharpSolid = "sharpSolid", r.sharpRegular = "sharpRegular", r.sharpLight = "sharpLight", r.brand = "brand", r))(ln || {}), ur = /* @__PURE__ */ ((r) => (r[r.mini = 12] = "mini", r[r.default = 18] = "default", r[r.large = 24] = "large", r))(ur || {});
812
+ var lr = /* @__PURE__ */ ((r) => (r[r.mini = 12] = "mini", r[r.default = 18] = "default", r[r.large = 24] = "large", r))(lr || {});
813
813
  const Re = U((r, n) => {
814
- const { className: i, code: o, type: l = "light", size: g } = r, _ = g ? `${typeof g == "number" ? g : ur[g]}px` : void 0, d = B(
814
+ const { className: i, code: o, type: c = "light", size: g } = r, _ = g ? `${typeof g == "number" ? g : lr[g]}px` : void 0, d = B(
815
815
  rr.icon,
816
- l && rr[l],
816
+ c && rr[c],
817
817
  i
818
818
  );
819
819
  return /* @__PURE__ */ h.jsx("span", { className: d, ref: n, style: { "--iconSize": _ }, "data-content": Mr(o) });
820
820
  });
821
821
  Re.displayName = "Icon";
822
- const un = "_progressBar_luf46_1", cn = "_progress_luf46_1", fn = "_intermediate_luf46_31", dn = "_barberPole_luf46_1", me = {
823
- progressBar: un,
824
- progress: cn,
825
- intermediate: fn,
826
- barberPole: dn
827
- }, cr = U((r, n) => {
828
- const { className: i, progress: o = 100, intermediate: l = !1 } = r, g = l ? 150 : Math.min(Math.max(o, 0), 100), _ = B(
822
+ const cn = "_progressBar_luf46_1", ln = "_progress_luf46_1", un = "_intermediate_luf46_31", fn = "_barberPole_luf46_1", me = {
823
+ progressBar: cn,
824
+ progress: ln,
825
+ intermediate: un,
826
+ barberPole: fn
827
+ }, ur = U((r, n) => {
828
+ const { className: i, progress: o = 100, intermediate: c = !1 } = r, g = c ? 150 : Math.min(Math.max(o, 0), 100), _ = B(
829
829
  me.progressBar,
830
- l && me.intermediate,
830
+ c && me.intermediate,
831
831
  i
832
832
  );
833
833
  return /* @__PURE__ */ h.jsx("div", { className: _, ref: n, children: /* @__PURE__ */ h.jsx("span", { className: me.progress, style: { width: `${g}%` } }) });
834
834
  });
835
- cr.displayName = "ProgressBar";
836
- const pn = "_button_6uqr8_1", _n = "_label_6uqr8_17", vn = "_icon_6uqr8_23", gn = "_underline_6uqr8_26", mn = "_primaryType_6uqr8_49", yn = "_primaryDangerType_6uqr8_49", bn = "_secondaryType_6uqr8_54", hn = "_secondaryDangerType_6uqr8_54", Sn = "_linkType_6uqr8_59", Tn = "_linkDangerType_6uqr8_59", Rn = "_miniSize_6uqr8_88", xn = "_iconOnly_6uqr8_99", jn = "_defaultSize_6uqr8_106", En = "_largeSize_6uqr8_124", On = "_clicked_6uqr8_157", wn = "_ripple_6uqr8_1", Cn = "_loading_6uqr8_166", Pn = "_barberPole_6uqr8_1", kn = "_spin_6uqr8_1", k = {
837
- button: pn,
838
- label: _n,
839
- icon: vn,
840
- underline: gn,
841
- primaryType: mn,
842
- primaryDangerType: yn,
843
- secondaryType: bn,
844
- secondaryDangerType: hn,
845
- linkType: Sn,
835
+ ur.displayName = "ProgressBar";
836
+ const dn = "_button_6uqr8_1", pn = "_label_6uqr8_17", _n = "_icon_6uqr8_23", vn = "_underline_6uqr8_26", gn = "_primaryType_6uqr8_49", mn = "_primaryDangerType_6uqr8_49", yn = "_secondaryType_6uqr8_54", bn = "_secondaryDangerType_6uqr8_54", hn = "_linkType_6uqr8_59", Tn = "_linkDangerType_6uqr8_59", Sn = "_miniSize_6uqr8_88", Rn = "_iconOnly_6uqr8_99", En = "_defaultSize_6uqr8_106", xn = "_largeSize_6uqr8_124", jn = "_clicked_6uqr8_157", On = "_ripple_6uqr8_1", wn = "_loading_6uqr8_166", Cn = "_barberPole_6uqr8_1", Pn = "_spin_6uqr8_1", k = {
837
+ button: dn,
838
+ label: pn,
839
+ icon: _n,
840
+ underline: vn,
841
+ primaryType: gn,
842
+ primaryDangerType: mn,
843
+ secondaryType: yn,
844
+ secondaryDangerType: bn,
845
+ linkType: hn,
846
846
  linkDangerType: Tn,
847
- miniSize: Rn,
848
- iconOnly: xn,
849
- defaultSize: jn,
850
- largeSize: En,
851
- clicked: On,
852
- ripple: wn,
853
- loading: Cn,
854
- barberPole: Pn,
855
- spin: kn
847
+ miniSize: Sn,
848
+ iconOnly: Rn,
849
+ defaultSize: En,
850
+ largeSize: xn,
851
+ clicked: jn,
852
+ ripple: On,
853
+ loading: wn,
854
+ barberPole: Cn,
855
+ spin: Pn
856
856
  };
857
857
  var be = /* @__PURE__ */ ((r) => (r.primary = "primary", r.primaryDanger = "primaryDanger", r.secondary = "secondary", r.secondaryDanger = "secondaryDanger", r.link = "link", r.linkDanger = "linkDanger", r))(be || {});
858
858
  const tr = 100;
859
859
  let nr;
860
- const Nn = U((r, n) => {
860
+ const kn = U((r, n) => {
861
861
  const {
862
862
  className: i,
863
863
  label: o,
864
- type: l = "primary",
864
+ type: c = "primary",
865
865
  size: g = "default",
866
866
  disabled: _ = !1,
867
867
  loading: d = !1,
868
- icon: u,
868
+ icon: l,
869
869
  iconType: m,
870
870
  iconPosition: y = "left",
871
871
  onClick: b
872
- } = r, j = Ar(null), w = Ht(() => {
873
- var E;
874
- clearTimeout(nr), (E = j.current) == null || E.classList.add(k.clicked), nr = window.setTimeout(() => {
875
- var S;
876
- (S = j.current) == null || S.classList.remove(k.clicked);
872
+ } = r, x = Ar(null), w = Ht(() => {
873
+ var j;
874
+ clearTimeout(nr), (j = x.current) == null || j.classList.add(k.clicked), nr = window.setTimeout(() => {
875
+ var T;
876
+ (T = x.current) == null || T.classList.remove(k.clicked);
877
877
  }, 600 + tr);
878
- }, tr), W = (E) => {
879
- b == null || b(E), l.includes(be.link) || w();
880
- }, q = () => u ? /* @__PURE__ */ h.jsx(Re, { className: k.icon, code: u, type: m, size: g }) : null, z = B(
878
+ }, tr), W = (j) => {
879
+ b == null || b(j), c.includes(be.link) || w();
880
+ }, q = () => l ? /* @__PURE__ */ h.jsx(Re, { className: k.icon, code: l, type: m, size: g }) : null, z = B(
881
881
  k.button,
882
- k[`${l}Type`],
882
+ k[`${c}Type`],
883
883
  k[`${g}Size`],
884
884
  !o && k.iconOnly,
885
885
  d && k.loading,
886
886
  i
887
887
  );
888
- return !o && !u ? null : /* @__PURE__ */ h.jsxs("button", { className: z, ref: qr([j, n]), onClick: W, disabled: _, children: [
889
- l.includes(be.link) && /* @__PURE__ */ h.jsx(cr, { className: k.underline, intermediate: d }),
888
+ return !o && !l ? null : /* @__PURE__ */ h.jsxs("button", { className: z, ref: qr([x, n]), onClick: W, disabled: _, children: [
889
+ c.includes(be.link) && /* @__PURE__ */ h.jsx(ur, { className: k.underline, intermediate: d }),
890
890
  y === "left" && /* @__PURE__ */ h.jsx(q, {}),
891
891
  o && /* @__PURE__ */ h.jsx("span", { className: k.label, children: o }),
892
892
  y === "right" && /* @__PURE__ */ h.jsx(q, {})
893
893
  ] });
894
894
  });
895
- Nn.displayName = "Button";
896
- const $n = "_textfield_7y99a_1", Dn = "_icon_7y99a_27", Fn = "_input_7y99a_36", Ln = "_placeholder_7y99a_49", In = "_withIcon_7y99a_73", An = "_textarea_7y99a_83", Wn = "_hasValue_7y99a_92", D = {
897
- textfield: $n,
898
- icon: Dn,
899
- input: Fn,
900
- placeholder: Ln,
901
- withIcon: In,
902
- textarea: An,
903
- hasValue: Wn
904
- }, qn = U((r, n) => {
895
+ kn.displayName = "Button";
896
+ const Nn = "_textfield_7y99a_1", $n = "_icon_7y99a_27", Dn = "_input_7y99a_36", In = "_placeholder_7y99a_49", Fn = "_withIcon_7y99a_73", Ln = "_textarea_7y99a_83", An = "_hasValue_7y99a_92", D = {
897
+ textfield: Nn,
898
+ icon: $n,
899
+ input: Dn,
900
+ placeholder: In,
901
+ withIcon: Fn,
902
+ textarea: Ln,
903
+ hasValue: An
904
+ }, Wn = U((r, n) => {
905
905
  const {
906
906
  className: i,
907
907
  type: o = "text",
908
- textarea: l,
908
+ textarea: c,
909
909
  placeholder: g,
910
910
  autoComplete: _ = "off",
911
911
  autoFocus: d,
912
- icon: u,
912
+ icon: l,
913
913
  iconType: m = "regular",
914
914
  value: y,
915
915
  onChange: b
916
- } = r, j = Wr(() => {
917
- if (l === !0)
916
+ } = r, x = Wr(() => {
917
+ if (c === !0)
918
918
  return null;
919
- if (u)
920
- return u;
919
+ if (l)
920
+ return l;
921
921
  if (o === "number")
922
922
  return "23";
923
923
  if (o === "search")
924
924
  return "f002";
925
925
  if (o === "password")
926
926
  return "f30d";
927
- }, [l, u, o]), w = B(
927
+ }, [c, l, o]), w = B(
928
928
  D.textfield,
929
- j && D.withIcon,
930
- l && D.textarea,
929
+ x && D.withIcon,
930
+ c && D.textarea,
931
931
  y && D.hasValue,
932
932
  i
933
933
  );
934
934
  return /* @__PURE__ */ h.jsxs("div", { className: w, ref: n, children: [
935
- !!j && !l && /* @__PURE__ */ h.jsx(Re, { className: D.icon, code: j, type: m }),
936
- l ? /* @__PURE__ */ h.jsx(
935
+ !!x && !c && /* @__PURE__ */ h.jsx(Re, { className: D.icon, code: x, type: m }),
936
+ c ? /* @__PURE__ */ h.jsx(
937
937
  "textarea",
938
938
  {
939
939
  className: D.input,
@@ -956,55 +956,55 @@ const $n = "_textfield_7y99a_1", Dn = "_icon_7y99a_27", Fn = "_input_7y99a_36",
956
956
  /* @__PURE__ */ h.jsx("span", { className: D.placeholder, children: g })
957
957
  ] });
958
958
  });
959
- qn.displayName = "Textfield";
960
- const zn = "_sider_9guyz_1", Mn = "_leftSiderContainer_9guyz_13", Vn = "_rightSiderContainer_9guyz_20", Yn = "_content_9guyz_27", Un = "_miniLeftSider_9guyz_37", Bn = "_miniRightSider_9guyz_44", Gn = "_leftOpen_9guyz_51", Jn = "_rightOpen_9guyz_57", F = {
961
- sider: zn,
962
- leftSiderContainer: Mn,
963
- rightSiderContainer: Vn,
964
- content: Yn,
965
- miniLeftSider: Un,
966
- miniRightSider: Bn,
967
- leftOpen: Gn,
968
- rightOpen: Jn
969
- }, Xn = U((r, n) => {
959
+ Wn.displayName = "Textfield";
960
+ const qn = "_sider_9guyz_1", zn = "_leftSiderContainer_9guyz_13", Mn = "_rightSiderContainer_9guyz_20", Vn = "_content_9guyz_27", Yn = "_miniLeftSider_9guyz_37", Un = "_miniRightSider_9guyz_44", Bn = "_leftOpen_9guyz_51", Gn = "_rightOpen_9guyz_57", I = {
961
+ sider: qn,
962
+ leftSiderContainer: zn,
963
+ rightSiderContainer: Mn,
964
+ content: Vn,
965
+ miniLeftSider: Yn,
966
+ miniRightSider: Un,
967
+ leftOpen: Bn,
968
+ rightOpen: Gn
969
+ }, Jn = U((r, n) => {
970
970
  const {
971
971
  className: i,
972
972
  children: o,
973
- leftSider: l,
973
+ leftSider: c,
974
974
  showMiniLeftSider: g = !0,
975
975
  rightSider: _,
976
976
  showMiniRightSider: d = !1,
977
- open: u = "closed"
977
+ open: l = "closed"
978
978
  // setOpen,
979
979
  } = r, m = B(
980
- F.sider,
981
- u === "left" && F.leftOpen,
982
- g && F.miniLeftSider,
983
- u === "right" && F.rightOpen,
984
- d && F.miniRightSider,
980
+ I.sider,
981
+ l === "left" && I.leftOpen,
982
+ g && I.miniLeftSider,
983
+ l === "right" && I.rightOpen,
984
+ d && I.miniRightSider,
985
985
  i
986
986
  );
987
987
  return /* @__PURE__ */ h.jsxs("section", { className: m, ref: n, role: "sider", children: [
988
- /* @__PURE__ */ h.jsx("div", { className: F.leftSiderContainer, children: l }),
989
- /* @__PURE__ */ h.jsx("div", { className: F.rightSiderContainer, children: _ }),
990
- /* @__PURE__ */ h.jsx("div", { className: F.content, children: o })
988
+ /* @__PURE__ */ h.jsx("div", { className: I.leftSiderContainer, children: c }),
989
+ /* @__PURE__ */ h.jsx("div", { className: I.rightSiderContainer, children: _ }),
990
+ /* @__PURE__ */ h.jsx("div", { className: I.content, children: o })
991
991
  ] });
992
992
  });
993
- Xn.displayName = "Sider";
994
- const Hn = "_navigation_zrgjp_1", Kn = "_brand_zrgjp_9", Zn = "_routeList_zrgjp_18", Qn = "_route_zrgjp_18", ea = "_icon_zrgjp_59", ra = "_label_zrgjp_65", ta = "_active_zrgjp_77", A = {
995
- navigation: Hn,
996
- brand: Kn,
997
- routeList: Zn,
998
- route: Qn,
999
- icon: ea,
1000
- label: ra,
1001
- active: ta
1002
- }, na = U((r, n) => {
1003
- const { className: i, Routes: o } = r, l = B(
993
+ Jn.displayName = "Sider";
994
+ const Xn = "_navigation_zrgjp_1", Hn = "_brand_zrgjp_9", Kn = "_routeList_zrgjp_18", Zn = "_route_zrgjp_18", Qn = "_icon_zrgjp_59", ea = "_label_zrgjp_65", ra = "_active_zrgjp_77", A = {
995
+ navigation: Xn,
996
+ brand: Hn,
997
+ routeList: Kn,
998
+ route: Zn,
999
+ icon: Qn,
1000
+ label: ea,
1001
+ active: ra
1002
+ }, ta = U((r, n) => {
1003
+ const { className: i, Routes: o } = r, c = B(
1004
1004
  A.navigation,
1005
1005
  i
1006
1006
  );
1007
- return /* @__PURE__ */ h.jsxs("section", { className: l, ref: n, role: "navigation", children: [
1007
+ return /* @__PURE__ */ h.jsxs("section", { className: c, ref: n, role: "navigation", children: [
1008
1008
  /* @__PURE__ */ h.jsx("div", { className: A.brand, children: "🎲 XtremeUI" }),
1009
1009
  /* @__PURE__ */ h.jsx("div", { className: A.routeList, children: !!o && /* @__PURE__ */ h.jsx(
1010
1010
  o,
@@ -1017,27 +1017,24 @@ const Hn = "_navigation_zrgjp_1", Kn = "_brand_zrgjp_9", Zn = "_routeList_zrgjp_
1017
1017
  ) })
1018
1018
  ] });
1019
1019
  });
1020
- na.displayName = "Navigation";
1020
+ ta.displayName = "Navigation";
1021
1021
  export {
1022
- Nn as Button,
1023
- be as EButtonTypes,
1024
- ur as EIconSize,
1025
- ln as EIconType,
1022
+ kn as Button,
1026
1023
  Re as Icon,
1027
- na as Navigation,
1028
- cr as ProgressBar,
1029
- Xn as Sider,
1030
- qn as Textfield,
1024
+ ta as Navigation,
1025
+ ur as ProgressBar,
1026
+ Jn as Sider,
1027
+ Wn as Textfield,
1031
1028
  Y as dom,
1032
- ca as elementObserver,
1033
- Se as getCssProperty,
1034
- ia as getCssPropertyPx,
1035
- oa as getCssPropertyVh,
1036
- sa as getCssPropertyVw,
1029
+ la as elementObserver,
1030
+ Te as getCssProperty,
1031
+ aa as getCssPropertyPx,
1032
+ ia as getCssPropertyVh,
1033
+ oa as getCssPropertyVw,
1037
1034
  he as isClient,
1038
1035
  qr as mergeRefs,
1039
1036
  zr as safeStringFromCodePoint,
1040
- la as setCssProperty,
1037
+ sa as setCssProperty,
1041
1038
  Mr as unicodeToString,
1042
- ua as waitForElement
1039
+ ca as waitForElement
1043
1040
  };
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(v,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(v=typeof globalThis<"u"?globalThis:v||self,x(v.XtremeUI={},v.require$$0))})(this,function(v,x){"use strict";const sn="",re=typeof window<"u",A=re?window:void 0,te=(r,n)=>re?getComputedStyle((n==null?void 0:n.current)||document.documentElement).getPropertyValue(r):"",br=(r,n)=>parseInt(te(r,n).replace(/px/g,"")),hr=(r,n)=>{const i=parseInt(te(r,n).replace(/vh/g,""));return[((A==null?void 0:A.innerHeight)??0)*i/100,i]},Sr=(r,n)=>{const i=parseInt(te(r,n).replace(/vw/g,""));return[((A==null?void 0:A.innerWidth)??0)*i/100,i]},Tr=(r,n,i)=>re?((i==null?void 0:i.current)||document.documentElement).style.setProperty(r,n):"",Rr=r=>new Promise(n=>{let i=document.querySelector(r);if(i)return n(i);const o=new MutationObserver(()=>{i=document.querySelector(r),i&&(n(i),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})}),Er=(r,n)=>{var i;(i=n==null?void 0:n.forEach)==null||i.call(n,o=>{let l;new MutationObserver(p=>{var c;document.querySelector(o)&&(l=document.querySelector(o)),(c=p==null?void 0:p.forEach)==null||c.call(p,y=>{y.type==="childList"&&(Array.from(y.addedNodes).indexOf(l)>-1&&r(l,"added",y),Array.from(y.removedNodes).indexOf(l)>-1&&r(l,"removed",y))})}).observe(document.body,{childList:!0,subtree:!0})})},we=r=>n=>{r.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})},Ce=r=>isNaN(r)||r<0||r>1114111||Math.floor(r)!==r?"":String.fromCodePoint(r),xe=r=>Ce(parseInt(`0x${r}`,16));var ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fe={exports:{}},J={};/**
1
+ (function(m,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(m=typeof globalThis<"u"?globalThis:m||self,x(m.XtremeUI={},m.require$$0))})(this,function(m,x){"use strict";const on="",re=typeof window<"u",A=re?window:void 0,te=(r,n)=>re?getComputedStyle((n==null?void 0:n.current)||document.documentElement).getPropertyValue(r):"",yr=(r,n)=>parseInt(te(r,n).replace(/px/g,"")),br=(r,n)=>{const i=parseInt(te(r,n).replace(/vh/g,""));return[((A==null?void 0:A.innerHeight)??0)*i/100,i]},hr=(r,n)=>{const i=parseInt(te(r,n).replace(/vw/g,""));return[((A==null?void 0:A.innerWidth)??0)*i/100,i]},Tr=(r,n,i)=>re?((i==null?void 0:i.current)||document.documentElement).style.setProperty(r,n):"",Sr=r=>new Promise(n=>{let i=document.querySelector(r);if(i)return n(i);const o=new MutationObserver(()=>{i=document.querySelector(r),i&&(n(i),o.disconnect())});o.observe(document.body,{childList:!0,subtree:!0})}),Rr=(r,n)=>{var i;(i=n==null?void 0:n.forEach)==null||i.call(n,o=>{let l;new MutationObserver(g=>{var c;document.querySelector(o)&&(l=document.querySelector(o)),(c=g==null?void 0:g.forEach)==null||c.call(g,y=>{y.type==="childList"&&(Array.from(y.addedNodes).indexOf(l)>-1&&r(l,"added",y),Array.from(y.removedNodes).indexOf(l)>-1&&r(l,"removed",y))})}).observe(document.body,{childList:!0,subtree:!0})})},Oe=r=>n=>{r.forEach(i=>{typeof i=="function"?i(n):i!=null&&(i.current=n)})},we=r=>isNaN(r)||r<0||r>1114111||Math.floor(r)!==r?"":String.fromCodePoint(r),Ce=r=>we(parseInt(`0x${r}`,16));var ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Er(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ue={exports:{}},J={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Pe;function Or(){if(Pe)return J;Pe=1;var r=x,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function p(d,c,y){var b,h={},O=null,P=null;y!==void 0&&(O=""+y),c.key!==void 0&&(O=""+c.key),c.ref!==void 0&&(P=c.ref);for(b in c)o.call(c,b)&&!m.hasOwnProperty(b)&&(h[b]=c[b]);if(d&&d.defaultProps)for(b in c=d.defaultProps,c)h[b]===void 0&&(h[b]=c[b]);return{$$typeof:n,type:d,key:O,ref:P,props:h,_owner:l.current}}return J.Fragment=i,J.jsx=p,J.jsxs=p,J}var X={};/**
9
+ */var xe;function jr(){if(xe)return J;xe=1;var r=x,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_={key:!0,ref:!0,__self:!0,__source:!0};function g(d,c,y){var b,h={},O=null,P=null;y!==void 0&&(O=""+y),c.key!==void 0&&(O=""+c.key),c.ref!==void 0&&(P=c.ref);for(b in c)o.call(c,b)&&!_.hasOwnProperty(b)&&(h[b]=c[b]);if(d&&d.defaultProps)for(b in c=d.defaultProps,c)h[b]===void 0&&(h[b]=c[b]);return{$$typeof:n,type:d,key:O,ref:P,props:h,_owner:l.current}}return J.Fragment=i,J.jsx=g,J.jsxs=g,J}var X={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,14 @@
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 ke;function wr(){return ke||(ke=1,process.env.NODE_ENV!=="production"&&function(){var r=x,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),q=Symbol.iterator,Y="@@iterator";function B(e){if(e===null||typeof e!="object")return null;var t=q&&e[q]||e[Y];return typeof t=="function"?t:null}var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),s=1;s<t;s++)a[s-1]=arguments[s];me("error",e,a)}}function me(e,t,a){{var s=w.ReactDebugCurrentFrame,g=s.getStackAddendum();g!==""&&(t+="%s",a=a.concat([g]));var _=a.map(function(f){return String(f)});_.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,_)}}var ye=!1,K=!1,R=!1,D=!1,W=!1,Z;Z=Symbol.for("react.module.reference");function Dt(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===m||W||e===l||e===y||e===b||D||e===P||ye||K||R||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===h||e.$$typeof===p||e.$$typeof===d||e.$$typeof===c||e.$$typeof===Z||e.getModuleId!==void 0))}function $t(e,t,a){var s=e.displayName;if(s)return s;var g=t.displayName||t.name||"";return g!==""?a+"("+g+")":a}function He(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case i:return"Portal";case m:return"Profiler";case l:return"StrictMode";case y:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var t=e;return He(t)+".Consumer";case p:var a=e;return He(a._context)+".Provider";case c:return $t(e,e.render,"ForwardRef");case h:var s=e.displayName||null;return s!==null?s:$(e.type)||"Memo";case O:{var g=e,_=g._payload,f=g._init;try{return $(f(_))}catch{return null}}}return null}var M=Object.assign,Q=0,Ke,Ze,Qe,er,rr,tr,nr;function ar(){}ar.__reactDisabledLog=!0;function It(){{if(Q===0){Ke=console.log,Ze=console.info,Qe=console.warn,er=console.error,rr=console.group,tr=console.groupCollapsed,nr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ar,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function Lt(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:Ke}),info:M({},e,{value:Ze}),warn:M({},e,{value:Qe}),error:M({},e,{value:er}),group:M({},e,{value:rr}),groupCollapsed:M({},e,{value:tr}),groupEnd:M({},e,{value:nr})})}Q<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=w.ReactCurrentDispatcher,he;function oe(e,t,a){{if(he===void 0)try{throw Error()}catch(g){var s=g.stack.trim().match(/\n( *(at )?)/);he=s&&s[1]||""}return`
18
- `+he+e}}var Se=!1,se;{var Ft=typeof WeakMap=="function"?WeakMap:Map;se=new Ft}function ir(e,t){if(!e||Se)return"";{var a=se.get(e);if(a!==void 0)return a}var s;Se=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=be.current,be.current=null,It();try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(I){s=I}Reflect.construct(e,[],f)}else{try{f.call()}catch(I){s=I}e.call(f.prototype)}}else{try{throw Error()}catch(I){s=I}e()}}catch(I){if(I&&s&&typeof I.stack=="string"){for(var u=I.stack.split(`
17
+ */var Pe;function Or(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){var r=x,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),q=Symbol.iterator,Y="@@iterator";function U(e){if(e===null||typeof e!="object")return null;var t=q&&e[q]||e[Y];return typeof t=="function"?t:null}var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),s=1;s<t;s++)a[s-1]=arguments[s];_e("error",e,a)}}function _e(e,t,a){{var s=w.ReactDebugCurrentFrame,p=s.getStackAddendum();p!==""&&(t+="%s",a=a.concat([p]));var v=a.map(function(f){return String(f)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var me=!1,K=!1,R=!1,D=!1,z=!1,Z;Z=Symbol.for("react.module.reference");function Nt(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===_||z||e===l||e===y||e===b||D||e===P||me||K||R||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===h||e.$$typeof===g||e.$$typeof===d||e.$$typeof===c||e.$$typeof===Z||e.getModuleId!==void 0))}function Dt(e,t,a){var s=e.displayName;if(s)return s;var p=t.displayName||t.name||"";return p!==""?a+"("+p+")":a}function Xe(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case i:return"Portal";case _:return"Profiler";case l:return"StrictMode";case y:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var t=e;return Xe(t)+".Consumer";case g:var a=e;return Xe(a._context)+".Provider";case c:return Dt(e,e.render,"ForwardRef");case h:var s=e.displayName||null;return s!==null?s:$(e.type)||"Memo";case O:{var p=e,v=p._payload,f=p._init;try{return $(f(v))}catch{return null}}}return null}var M=Object.assign,Q=0,He,Ke,Ze,Qe,er,rr,tr;function nr(){}nr.__reactDisabledLog=!0;function $t(){{if(Q===0){He=console.log,Ke=console.info,Ze=console.warn,Qe=console.error,er=console.group,rr=console.groupCollapsed,tr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:nr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function It(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:He}),info:M({},e,{value:Ke}),warn:M({},e,{value:Ze}),error:M({},e,{value:Qe}),group:M({},e,{value:er}),groupCollapsed:M({},e,{value:rr}),groupEnd:M({},e,{value:tr})})}Q<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=w.ReactCurrentDispatcher,be;function ie(e,t,a){{if(be===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);be=s&&s[1]||""}return`
18
+ `+be+e}}var he=!1,oe;{var Ft=typeof WeakMap=="function"?WeakMap:Map;oe=new Ft}function ar(e,t){if(!e||he)return"";{var a=oe.get(e);if(a!==void 0)return a}var s;he=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=ye.current,ye.current=null,$t();try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(I){s=I}Reflect.construct(e,[],f)}else{try{f.call()}catch(I){s=I}e.call(f.prototype)}}else{try{throw Error()}catch(I){s=I}e()}}catch(I){if(I&&s&&typeof I.stack=="string"){for(var u=I.stack.split(`
19
19
  `),C=s.stack.split(`
20
20
  `),E=u.length-1,j=C.length-1;E>=1&&j>=0&&u[E]!==C[j];)j--;for(;E>=1&&j>=0;E--,j--)if(u[E]!==C[j]){if(E!==1||j!==1)do if(E--,j--,j<0||u[E]!==C[j]){var k=`
21
- `+u[E].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&se.set(e,k),k}while(E>=1&&j>=0);break}}}finally{Se=!1,be.current=_,Lt(),Error.prepareStackTrace=g}var G=e?e.displayName||e.name:"",yr=G?oe(G):"";return typeof e=="function"&&se.set(e,yr),yr}function At(e,t,a){return ir(e,!1)}function zt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function le(e,t,a){if(e==null)return"";if(typeof e=="function")return ir(e,zt(e));if(typeof e=="string")return oe(e);switch(e){case y:return oe("Suspense");case b:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return At(e.render);case h:return le(e.type,t,a);case O:{var s=e,g=s._payload,_=s._init;try{return le(_(g),t,a)}catch{}}}return""}var ce=Object.prototype.hasOwnProperty,or={},sr=w.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,a=le(e.type,e._source,t?t.type:null);sr.setExtraStackFrame(a)}else sr.setExtraStackFrame(null)}function Wt(e,t,a,s,g){{var _=Function.call.bind(ce);for(var f in e)if(_(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var C=Error((s||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}u=e[f](t,f,s,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){u=E}u&&!(u instanceof Error)&&(ue(g),T("%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).",s||"React class",a,f,typeof u),ue(null)),u instanceof Error&&!(u.message in or)&&(or[u.message]=!0,ue(g),T("Failed %s type: %s",a,u.message),ue(null))}}}var Mt=Array.isArray;function Te(e){return Mt(e)}function Vt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function qt(e){try{return lr(e),!1}catch{return!0}}function lr(e){return""+e}function cr(e){if(qt(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vt(e)),lr(e)}var ee=w.ReactCurrentOwner,Yt={key:!0,ref:!0,__self:!0,__source:!0},ur,fr,Re;Re={};function Bt(e){if(ce.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Ut(e){if(ce.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Gt(e,t){if(typeof e.ref=="string"&&ee.current&&t&&ee.current.stateNode!==t){var a=$(ee.current.type);Re[a]||(T('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',$(ee.current.type),e.ref),Re[a]=!0)}}function Jt(e,t){{var a=function(){ur||(ur=!0,T("%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)",t))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Xt(e,t){{var a=function(){fr||(fr=!0,T("%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)",t))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Ht=function(e,t,a,s,g,_,f){var u={$$typeof:n,type:e,key:t,ref:a,props:f,_owner:_};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Kt(e,t,a,s,g){{var _,f={},u=null,C=null;a!==void 0&&(cr(a),u=""+a),Ut(t)&&(cr(t.key),u=""+t.key),Bt(t)&&(C=t.ref,Gt(t,g));for(_ in t)ce.call(t,_)&&!Yt.hasOwnProperty(_)&&(f[_]=t[_]);if(e&&e.defaultProps){var E=e.defaultProps;for(_ in E)f[_]===void 0&&(f[_]=E[_])}if(u||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Jt(f,j),C&&Xt(f,j)}return Ht(e,u,C,g,s,ee.current,f)}}var Ee=w.ReactCurrentOwner,dr=w.ReactDebugCurrentFrame;function U(e){if(e){var t=e._owner,a=le(e.type,e._source,t?t.type:null);dr.setExtraStackFrame(a)}else dr.setExtraStackFrame(null)}var je;je=!1;function Oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function gr(){{if(Ee.current){var e=$(Ee.current.type);if(e)return`
21
+ `+u[E].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),typeof e=="function"&&oe.set(e,k),k}while(E>=1&&j>=0);break}}}finally{he=!1,ye.current=v,It(),Error.prepareStackTrace=p}var G=e?e.displayName||e.name:"",mr=G?ie(G):"";return typeof e=="function"&&oe.set(e,mr),mr}function Lt(e,t,a){return ar(e,!1)}function At(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function se(e,t,a){if(e==null)return"";if(typeof e=="function")return ar(e,At(e));if(typeof e=="string")return ie(e);switch(e){case y:return ie("Suspense");case b:return ie("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Lt(e.render);case h:return se(e.type,t,a);case O:{var s=e,p=s._payload,v=s._init;try{return se(v(p),t,a)}catch{}}}return""}var le=Object.prototype.hasOwnProperty,ir={},or=w.ReactDebugCurrentFrame;function ce(e){if(e){var t=e._owner,a=se(e.type,e._source,t?t.type:null);or.setExtraStackFrame(a)}else or.setExtraStackFrame(null)}function Wt(e,t,a,s,p){{var v=Function.call.bind(le);for(var f in e)if(v(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var C=Error((s||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}u=e[f](t,f,s,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){u=E}u&&!(u instanceof Error)&&(ce(p),S("%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).",s||"React class",a,f,typeof u),ce(null)),u instanceof Error&&!(u.message in ir)&&(ir[u.message]=!0,ce(p),S("Failed %s type: %s",a,u.message),ce(null))}}}var zt=Array.isArray;function Te(e){return zt(e)}function Mt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Vt(e){try{return sr(e),!1}catch{return!0}}function sr(e){return""+e}function lr(e){if(Vt(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(e)),sr(e)}var ee=w.ReactCurrentOwner,qt={key:!0,ref:!0,__self:!0,__source:!0},cr,ur,Se;Se={};function Yt(e){if(le.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Ut(e){if(le.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Bt(e,t){if(typeof e.ref=="string"&&ee.current&&t&&ee.current.stateNode!==t){var a=$(ee.current.type);Se[a]||(S('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',$(ee.current.type),e.ref),Se[a]=!0)}}function Gt(e,t){{var a=function(){cr||(cr=!0,S("%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)",t))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Jt(e,t){{var a=function(){ur||(ur=!0,S("%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)",t))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Xt=function(e,t,a,s,p,v,f){var u={$$typeof:n,type:e,key:t,ref:a,props:f,_owner:v};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ht(e,t,a,s,p){{var v,f={},u=null,C=null;a!==void 0&&(lr(a),u=""+a),Ut(t)&&(lr(t.key),u=""+t.key),Yt(t)&&(C=t.ref,Bt(t,p));for(v in t)le.call(t,v)&&!qt.hasOwnProperty(v)&&(f[v]=t[v]);if(e&&e.defaultProps){var E=e.defaultProps;for(v in E)f[v]===void 0&&(f[v]=E[v])}if(u||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Gt(f,j),C&&Jt(f,j)}return Xt(e,u,C,p,s,ee.current,f)}}var Re=w.ReactCurrentOwner,fr=w.ReactDebugCurrentFrame;function B(e){if(e){var t=e._owner,a=se(e.type,e._source,t?t.type:null);fr.setExtraStackFrame(a)}else fr.setExtraStackFrame(null)}var Ee;Ee=!1;function je(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function dr(){{if(Re.current){var e=$(Re.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function Zt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function Kt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
24
24
 
25
- Check your code at `+t+":"+a+"."}return""}}var pr={};function Qt(e){{var t=gr();if(!t){var a=typeof e=="string"?e:e.displayName||e.name;a&&(t=`
25
+ Check your code at `+t+":"+a+"."}return""}}var pr={};function Zt(e){{var t=dr();if(!t){var a=typeof e=="string"?e:e.displayName||e.name;a&&(t=`
26
26
 
27
- Check the top-level render call using <`+a+">.")}return t}}function vr(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Qt(t);if(pr[a])return;pr[a]=!0;var s="";e&&e._owner&&e._owner!==Ee.current&&(s=" It was passed a child from "+$(e._owner.type)+"."),U(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,s),U(null)}}function _r(e,t){{if(typeof e!="object")return;if(Te(e))for(var a=0;a<e.length;a++){var s=e[a];Oe(s)&&vr(s,t)}else if(Oe(e))e._store&&(e._store.validated=!0);else if(e){var g=B(e);if(typeof g=="function"&&g!==e.entries)for(var _=g.call(e),f;!(f=_.next()).done;)Oe(f.value)&&vr(f.value,t)}}}function en(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===h))a=t.propTypes;else return;if(a){var s=$(t);Wt(a,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var g=$(t);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rn(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var s=t[a];if(s!=="children"&&s!=="key"){U(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),U(null);break}}e.ref!==null&&(U(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}function mr(e,t,a,s,g,_){{var f=Dt(e);if(!f){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 C=Zt(g);C?u+=C:u+=gr();var E;e===null?E="null":Te(e)?E="array":e!==void 0&&e.$$typeof===n?(E="<"+($(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):E=typeof e,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,u)}var j=Kt(e,t,a,g,_);if(j==null)return j;if(f){var k=t.children;if(k!==void 0)if(s)if(Te(k)){for(var G=0;G<k.length;G++)_r(k[G],e);Object.freeze&&Object.freeze(k)}else T("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 _r(k,e)}return e===o?rn(j):en(j),j}}function tn(e,t,a){return mr(e,t,a,!0)}function nn(e,t,a){return mr(e,t,a,!1)}var an=nn,on=tn;X.Fragment=o,X.jsx=an,X.jsxs=on}()),X}process.env.NODE_ENV==="production"?fe.exports=Or():fe.exports=wr();var S=fe.exports;function Ne(r){var n,i,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(i=Ne(r[n]))&&(o&&(o+=" "),o+=i);else for(n in r)r[n]&&(o&&(o+=" "),o+=n);return o}function V(){for(var r,n,i=0,o="";i<arguments.length;)(r=arguments[i++])&&(n=Ne(r))&&(o&&(o+=" "),o+=n);return o}function Cr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var de=Cr,xr=typeof ne=="object"&&ne&&ne.Object===Object&&ne,Pr=xr,kr=Pr,Nr=typeof self=="object"&&self&&self.Object===Object&&self,Dr=kr||Nr||Function("return this")(),De=Dr,$r=De,Ir=function(){return $r.Date.now()},Lr=Ir,Fr=/\s/;function Ar(r){for(var n=r.length;n--&&Fr.test(r.charAt(n)););return n}var zr=Ar,Wr=zr,Mr=/^\s+/;function Vr(r){return r&&r.slice(0,Wr(r)+1).replace(Mr,"")}var qr=Vr,Yr=De,Br=Yr.Symbol,$e=Br,Ie=$e,Le=Object.prototype,Ur=Le.hasOwnProperty,Gr=Le.toString,H=Ie?Ie.toStringTag:void 0;function Jr(r){var n=Ur.call(r,H),i=r[H];try{r[H]=void 0;var o=!0}catch{}var l=Gr.call(r);return o&&(n?r[H]=i:delete r[H]),l}var Xr=Jr,Hr=Object.prototype,Kr=Hr.toString;function Zr(r){return Kr.call(r)}var Qr=Zr,Fe=$e,et=Xr,rt=Qr,tt="[object Null]",nt="[object Undefined]",Ae=Fe?Fe.toStringTag:void 0;function at(r){return r==null?r===void 0?nt:tt:Ae&&Ae in Object(r)?et(r):rt(r)}var it=at;function ot(r){return r!=null&&typeof r=="object"}var st=ot,lt=it,ct=st,ut="[object Symbol]";function ft(r){return typeof r=="symbol"||ct(r)&&lt(r)==ut}var dt=ft,gt=qr,ze=de,pt=dt,We=0/0,vt=/^[-+]0x[0-9a-f]+$/i,_t=/^0b[01]+$/i,mt=/^0o[0-7]+$/i,yt=parseInt;function bt(r){if(typeof r=="number")return r;if(pt(r))return We;if(ze(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=ze(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=gt(r);var i=_t.test(r);return i||mt.test(r)?yt(r.slice(2),i?2:8):vt.test(r)?We:+r}var ht=bt,St=de,ge=Lr,Me=ht,Tt="Expected a function",Rt=Math.max,Et=Math.min;function jt(r,n,i){var o,l,m,p,d,c,y=0,b=!1,h=!1,O=!0;if(typeof r!="function")throw new TypeError(Tt);n=Me(n)||0,St(i)&&(b=!!i.leading,h="maxWait"in i,m=h?Rt(Me(i.maxWait)||0,n):m,O="trailing"in i?!!i.trailing:O);function P(R){var D=o,W=l;return o=l=void 0,y=R,p=r.apply(W,D),p}function q(R){return y=R,d=setTimeout(w,n),b?P(R):p}function Y(R){var D=R-c,W=R-y,Z=n-D;return h?Et(Z,m-W):Z}function B(R){var D=R-c,W=R-y;return c===void 0||D>=n||D<0||h&&W>=m}function w(){var R=ge();if(B(R))return T(R);d=setTimeout(w,Y(R))}function T(R){return d=void 0,O&&o?P(R):(o=l=void 0,p)}function me(){d!==void 0&&clearTimeout(d),y=0,o=c=l=d=void 0}function ye(){return d===void 0?p:T(ge())}function K(){var R=ge(),D=B(R);if(o=arguments,l=this,c=R,D){if(d===void 0)return q(c);if(h)return clearTimeout(d),d=setTimeout(w,n),P(c)}return d===void 0&&(d=setTimeout(w,n)),p}return K.cancel=me,K.flush=ye,K}var Ot=jt,wt=Ot,Ct=de,xt="Expected a function";function Pt(r,n,i){var o=!0,l=!0;if(typeof r!="function")throw new TypeError(xt);return Ct(i)&&(o="leading"in i?!!i.leading:o,l="trailing"in i?!!i.trailing:l),wt(r,n,{leading:o,maxWait:n,trailing:l})}var kt=Pt;const Nt=jr(kt),Ve={icon:"_icon_awnbf_2",thin:"_thin_awnbf_25",light:"_light_awnbf_29",regular:"_regular_awnbf_33",solid:"_solid_awnbf_37",duotone:"_duotone_awnbf_41",sharpSolid:"_sharpSolid_awnbf_52",sharpRegular:"_sharpRegular_awnbf_56",sharpLight:"_sharpLight_awnbf_60",brand:"_brand_awnbf_64"};var qe=(r=>(r.thin="thin",r.light="light",r.regular="regular",r.solid="solid",r.duotone="duotone",r.sharpSolid="sharpSolid",r.sharpRegular="sharpRegular",r.sharpLight="sharpLight",r.brand="brand",r))(qe||{}),pe=(r=>(r[r.mini=12]="mini",r[r.default=18]="default",r[r.large=24]="large",r))(pe||{});const ae=x.forwardRef((r,n)=>{const{className:i,code:o,type:l="light",size:m}=r,p=m?`${typeof m=="number"?m:pe[m]}px`:void 0,d=V(Ve.icon,l&&Ve[l],i);return S.jsx("span",{className:d,ref:n,style:{"--iconSize":p},"data-content":xe(o)})});ae.displayName="Icon";const ve={progressBar:"_progressBar_luf46_1",progress:"_progress_luf46_1",intermediate:"_intermediate_luf46_31",barberPole:"_barberPole_luf46_1"},_e=x.forwardRef((r,n)=>{const{className:i,progress:o=100,intermediate:l=!1}=r,m=l?150:Math.min(Math.max(o,0),100),p=V(ve.progressBar,l&&ve.intermediate,i);return S.jsx("div",{className:p,ref:n,children:S.jsx("span",{className:ve.progress,style:{width:`${m}%`}})})});_e.displayName="ProgressBar";const N={button:"_button_6uqr8_1",label:"_label_6uqr8_17",icon:"_icon_6uqr8_23",underline:"_underline_6uqr8_26",primaryType:"_primaryType_6uqr8_49",primaryDangerType:"_primaryDangerType_6uqr8_49",secondaryType:"_secondaryType_6uqr8_54",secondaryDangerType:"_secondaryDangerType_6uqr8_54",linkType:"_linkType_6uqr8_59",linkDangerType:"_linkDangerType_6uqr8_59",miniSize:"_miniSize_6uqr8_88",iconOnly:"_iconOnly_6uqr8_99",defaultSize:"_defaultSize_6uqr8_106",largeSize:"_largeSize_6uqr8_124",clicked:"_clicked_6uqr8_157",ripple:"_ripple_6uqr8_1",loading:"_loading_6uqr8_166",barberPole:"_barberPole_6uqr8_1",spin:"_spin_6uqr8_1"};var ie=(r=>(r.primary="primary",r.primaryDanger="primaryDanger",r.secondary="secondary",r.secondaryDanger="secondaryDanger",r.link="link",r.linkDanger="linkDanger",r))(ie||{});const Ye=100;let Be;const Ue=x.forwardRef((r,n)=>{const{className:i,label:o,type:l="primary",size:m="default",disabled:p=!1,loading:d=!1,icon:c,iconType:y,iconPosition:b="left",onClick:h}=r,O=x.useRef(null),P=Nt(()=>{var w;clearTimeout(Be),(w=O.current)==null||w.classList.add(N.clicked),Be=window.setTimeout(()=>{var T;(T=O.current)==null||T.classList.remove(N.clicked)},600+Ye)},Ye),q=w=>{h==null||h(w),l.includes(ie.link)||P()},Y=()=>c?S.jsx(ae,{className:N.icon,code:c,type:y,size:m}):null,B=V(N.button,N[`${l}Type`],N[`${m}Size`],!o&&N.iconOnly,d&&N.loading,i);return!o&&!c?null:S.jsxs("button",{className:B,ref:we([O,n]),onClick:q,disabled:p,children:[l.includes(ie.link)&&S.jsx(_e,{className:N.underline,intermediate:d}),b==="left"&&S.jsx(Y,{}),o&&S.jsx("span",{className:N.label,children:o}),b==="right"&&S.jsx(Y,{})]})});Ue.displayName="Button";const L={textfield:"_textfield_7y99a_1",icon:"_icon_7y99a_27",input:"_input_7y99a_36",placeholder:"_placeholder_7y99a_49",withIcon:"_withIcon_7y99a_73",textarea:"_textarea_7y99a_83",hasValue:"_hasValue_7y99a_92"},Ge=x.forwardRef((r,n)=>{const{className:i,type:o="text",textarea:l,placeholder:m,autoComplete:p="off",autoFocus:d,icon:c,iconType:y="regular",value:b,onChange:h}=r,O=x.useMemo(()=>{if(l===!0)return null;if(c)return c;if(o==="number")return"23";if(o==="search")return"f002";if(o==="password")return"f30d"},[l,c,o]),P=V(L.textfield,O&&L.withIcon,l&&L.textarea,b&&L.hasValue,i);return S.jsxs("div",{className:P,ref:n,children:[!!O&&!l&&S.jsx(ae,{className:L.icon,code:O,type:y}),l?S.jsx("textarea",{className:L.input,autoFocus:d,autoComplete:p,value:b,onChange:h}):S.jsx("input",{className:L.input,type:o,autoFocus:d,autoComplete:p,value:b,onChange:h}),S.jsx("span",{className:L.placeholder,children:m})]})});Ge.displayName="Textfield";const F={sider:"_sider_9guyz_1",leftSiderContainer:"_leftSiderContainer_9guyz_13",rightSiderContainer:"_rightSiderContainer_9guyz_20",content:"_content_9guyz_27",miniLeftSider:"_miniLeftSider_9guyz_37",miniRightSider:"_miniRightSider_9guyz_44",leftOpen:"_leftOpen_9guyz_51",rightOpen:"_rightOpen_9guyz_57"},Je=x.forwardRef((r,n)=>{const{className:i,children:o,leftSider:l,showMiniLeftSider:m=!0,rightSider:p,showMiniRightSider:d=!1,open:c="closed"}=r,y=V(F.sider,c==="left"&&F.leftOpen,m&&F.miniLeftSider,c==="right"&&F.rightOpen,d&&F.miniRightSider,i);return S.jsxs("section",{className:y,ref:n,role:"sider",children:[S.jsx("div",{className:F.leftSiderContainer,children:l}),S.jsx("div",{className:F.rightSiderContainer,children:p}),S.jsx("div",{className:F.content,children:o})]})});Je.displayName="Sider";const z={navigation:"_navigation_zrgjp_1",brand:"_brand_zrgjp_9",routeList:"_routeList_zrgjp_18",route:"_route_zrgjp_18",icon:"_icon_zrgjp_59",label:"_label_zrgjp_65",active:"_active_zrgjp_77"},Xe=x.forwardRef((r,n)=>{const{className:i,Routes:o}=r,l=V(z.navigation,i);return S.jsxs("section",{className:l,ref:n,role:"navigation",children:[S.jsx("div",{className:z.brand,children:"🎲 XtremeUI"}),S.jsx("div",{className:z.routeList,children:!!o&&S.jsx(o,{className:z.route,activeClassName:z.active,iconClassName:z.icon,labelClassName:z.label})})]})});Xe.displayName="Navigation",v.Button=Ue,v.EButtonTypes=ie,v.EIconSize=pe,v.EIconType=qe,v.Icon=ae,v.Navigation=Xe,v.ProgressBar=_e,v.Sider=Je,v.Textfield=Ge,v.dom=A,v.elementObserver=Er,v.getCssProperty=te,v.getCssPropertyPx=br,v.getCssPropertyVh=hr,v.getCssPropertyVw=Sr,v.isClient=re,v.mergeRefs=we,v.safeStringFromCodePoint=Ce,v.setCssProperty=Tr,v.unicodeToString=xe,v.waitForElement=Rr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+a+">.")}return t}}function gr(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Zt(t);if(pr[a])return;pr[a]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+$(e._owner.type)+"."),B(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,s),B(null)}}function vr(e,t){{if(typeof e!="object")return;if(Te(e))for(var a=0;a<e.length;a++){var s=e[a];je(s)&&gr(s,t)}else if(je(e))e._store&&(e._store.validated=!0);else if(e){var p=U(e);if(typeof p=="function"&&p!==e.entries)for(var v=p.call(e),f;!(f=v.next()).done;)je(f.value)&&gr(f.value,t)}}}function Qt(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===h))a=t.propTypes;else return;if(a){var s=$(t);Wt(a,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!Ee){Ee=!0;var p=$(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function en(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var s=t[a];if(s!=="children"&&s!=="key"){B(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),B(null);break}}e.ref!==null&&(B(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),B(null))}}function _r(e,t,a,s,p,v){{var f=Nt(e);if(!f){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 C=Kt(p);C?u+=C:u+=dr();var E;e===null?E="null":Te(e)?E="array":e!==void 0&&e.$$typeof===n?(E="<"+($(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):E=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,u)}var j=Ht(e,t,a,p,v);if(j==null)return j;if(f){var k=t.children;if(k!==void 0)if(s)if(Te(k)){for(var G=0;G<k.length;G++)vr(k[G],e);Object.freeze&&Object.freeze(k)}else S("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 vr(k,e)}return e===o?en(j):Qt(j),j}}function rn(e,t,a){return _r(e,t,a,!0)}function tn(e,t,a){return _r(e,t,a,!1)}var nn=tn,an=rn;X.Fragment=o,X.jsx=nn,X.jsxs=an}()),X}process.env.NODE_ENV==="production"?ue.exports=jr():ue.exports=Or();var T=ue.exports;function ke(r){var n,i,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(i=ke(r[n]))&&(o&&(o+=" "),o+=i);else for(n in r)r[n]&&(o&&(o+=" "),o+=n);return o}function V(){for(var r,n,i=0,o="";i<arguments.length;)(r=arguments[i++])&&(n=ke(r))&&(o&&(o+=" "),o+=n);return o}function wr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var fe=wr,Cr=typeof ne=="object"&&ne&&ne.Object===Object&&ne,xr=Cr,Pr=xr,kr=typeof self=="object"&&self&&self.Object===Object&&self,Nr=Pr||kr||Function("return this")(),Ne=Nr,Dr=Ne,$r=function(){return Dr.Date.now()},Ir=$r,Fr=/\s/;function Lr(r){for(var n=r.length;n--&&Fr.test(r.charAt(n)););return n}var Ar=Lr,Wr=Ar,zr=/^\s+/;function Mr(r){return r&&r.slice(0,Wr(r)+1).replace(zr,"")}var Vr=Mr,qr=Ne,Yr=qr.Symbol,De=Yr,$e=De,Ie=Object.prototype,Ur=Ie.hasOwnProperty,Br=Ie.toString,H=$e?$e.toStringTag:void 0;function Gr(r){var n=Ur.call(r,H),i=r[H];try{r[H]=void 0;var o=!0}catch{}var l=Br.call(r);return o&&(n?r[H]=i:delete r[H]),l}var Jr=Gr,Xr=Object.prototype,Hr=Xr.toString;function Kr(r){return Hr.call(r)}var Zr=Kr,Fe=De,Qr=Jr,et=Zr,rt="[object Null]",tt="[object Undefined]",Le=Fe?Fe.toStringTag:void 0;function nt(r){return r==null?r===void 0?tt:rt:Le&&Le in Object(r)?Qr(r):et(r)}var at=nt;function it(r){return r!=null&&typeof r=="object"}var ot=it,st=at,lt=ot,ct="[object Symbol]";function ut(r){return typeof r=="symbol"||lt(r)&&st(r)==ct}var ft=ut,dt=Vr,Ae=fe,pt=ft,We=0/0,gt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,_t=/^0o[0-7]+$/i,mt=parseInt;function yt(r){if(typeof r=="number")return r;if(pt(r))return We;if(Ae(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=Ae(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=dt(r);var i=vt.test(r);return i||_t.test(r)?mt(r.slice(2),i?2:8):gt.test(r)?We:+r}var bt=yt,ht=fe,de=Ir,ze=bt,Tt="Expected a function",St=Math.max,Rt=Math.min;function Et(r,n,i){var o,l,_,g,d,c,y=0,b=!1,h=!1,O=!0;if(typeof r!="function")throw new TypeError(Tt);n=ze(n)||0,ht(i)&&(b=!!i.leading,h="maxWait"in i,_=h?St(ze(i.maxWait)||0,n):_,O="trailing"in i?!!i.trailing:O);function P(R){var D=o,z=l;return o=l=void 0,y=R,g=r.apply(z,D),g}function q(R){return y=R,d=setTimeout(w,n),b?P(R):g}function Y(R){var D=R-c,z=R-y,Z=n-D;return h?Rt(Z,_-z):Z}function U(R){var D=R-c,z=R-y;return c===void 0||D>=n||D<0||h&&z>=_}function w(){var R=de();if(U(R))return S(R);d=setTimeout(w,Y(R))}function S(R){return d=void 0,O&&o?P(R):(o=l=void 0,g)}function _e(){d!==void 0&&clearTimeout(d),y=0,o=c=l=d=void 0}function me(){return d===void 0?g:S(de())}function K(){var R=de(),D=U(R);if(o=arguments,l=this,c=R,D){if(d===void 0)return q(c);if(h)return clearTimeout(d),d=setTimeout(w,n),P(c)}return d===void 0&&(d=setTimeout(w,n)),g}return K.cancel=_e,K.flush=me,K}var jt=Et,Ot=jt,wt=fe,Ct="Expected a function";function xt(r,n,i){var o=!0,l=!0;if(typeof r!="function")throw new TypeError(Ct);return wt(i)&&(o="leading"in i?!!i.leading:o,l="trailing"in i?!!i.trailing:l),Ot(r,n,{leading:o,maxWait:n,trailing:l})}var Pt=xt;const kt=Er(Pt),Me={icon:"_icon_awnbf_2",thin:"_thin_awnbf_25",light:"_light_awnbf_29",regular:"_regular_awnbf_33",solid:"_solid_awnbf_37",duotone:"_duotone_awnbf_41",sharpSolid:"_sharpSolid_awnbf_52",sharpRegular:"_sharpRegular_awnbf_56",sharpLight:"_sharpLight_awnbf_60",brand:"_brand_awnbf_64"};var Ve=(r=>(r[r.mini=12]="mini",r[r.default=18]="default",r[r.large=24]="large",r))(Ve||{});const ae=x.forwardRef((r,n)=>{const{className:i,code:o,type:l="light",size:_}=r,g=_?`${typeof _=="number"?_:Ve[_]}px`:void 0,d=V(Me.icon,l&&Me[l],i);return T.jsx("span",{className:d,ref:n,style:{"--iconSize":g},"data-content":Ce(o)})});ae.displayName="Icon";const pe={progressBar:"_progressBar_luf46_1",progress:"_progress_luf46_1",intermediate:"_intermediate_luf46_31",barberPole:"_barberPole_luf46_1"},ge=x.forwardRef((r,n)=>{const{className:i,progress:o=100,intermediate:l=!1}=r,_=l?150:Math.min(Math.max(o,0),100),g=V(pe.progressBar,l&&pe.intermediate,i);return T.jsx("div",{className:g,ref:n,children:T.jsx("span",{className:pe.progress,style:{width:`${_}%`}})})});ge.displayName="ProgressBar";const N={button:"_button_6uqr8_1",label:"_label_6uqr8_17",icon:"_icon_6uqr8_23",underline:"_underline_6uqr8_26",primaryType:"_primaryType_6uqr8_49",primaryDangerType:"_primaryDangerType_6uqr8_49",secondaryType:"_secondaryType_6uqr8_54",secondaryDangerType:"_secondaryDangerType_6uqr8_54",linkType:"_linkType_6uqr8_59",linkDangerType:"_linkDangerType_6uqr8_59",miniSize:"_miniSize_6uqr8_88",iconOnly:"_iconOnly_6uqr8_99",defaultSize:"_defaultSize_6uqr8_106",largeSize:"_largeSize_6uqr8_124",clicked:"_clicked_6uqr8_157",ripple:"_ripple_6uqr8_1",loading:"_loading_6uqr8_166",barberPole:"_barberPole_6uqr8_1",spin:"_spin_6uqr8_1"};var ve=(r=>(r.primary="primary",r.primaryDanger="primaryDanger",r.secondary="secondary",r.secondaryDanger="secondaryDanger",r.link="link",r.linkDanger="linkDanger",r))(ve||{});const qe=100;let Ye;const Ue=x.forwardRef((r,n)=>{const{className:i,label:o,type:l="primary",size:_="default",disabled:g=!1,loading:d=!1,icon:c,iconType:y,iconPosition:b="left",onClick:h}=r,O=x.useRef(null),P=kt(()=>{var w;clearTimeout(Ye),(w=O.current)==null||w.classList.add(N.clicked),Ye=window.setTimeout(()=>{var S;(S=O.current)==null||S.classList.remove(N.clicked)},600+qe)},qe),q=w=>{h==null||h(w),l.includes(ve.link)||P()},Y=()=>c?T.jsx(ae,{className:N.icon,code:c,type:y,size:_}):null,U=V(N.button,N[`${l}Type`],N[`${_}Size`],!o&&N.iconOnly,d&&N.loading,i);return!o&&!c?null:T.jsxs("button",{className:U,ref:Oe([O,n]),onClick:q,disabled:g,children:[l.includes(ve.link)&&T.jsx(ge,{className:N.underline,intermediate:d}),b==="left"&&T.jsx(Y,{}),o&&T.jsx("span",{className:N.label,children:o}),b==="right"&&T.jsx(Y,{})]})});Ue.displayName="Button";const F={textfield:"_textfield_7y99a_1",icon:"_icon_7y99a_27",input:"_input_7y99a_36",placeholder:"_placeholder_7y99a_49",withIcon:"_withIcon_7y99a_73",textarea:"_textarea_7y99a_83",hasValue:"_hasValue_7y99a_92"},Be=x.forwardRef((r,n)=>{const{className:i,type:o="text",textarea:l,placeholder:_,autoComplete:g="off",autoFocus:d,icon:c,iconType:y="regular",value:b,onChange:h}=r,O=x.useMemo(()=>{if(l===!0)return null;if(c)return c;if(o==="number")return"23";if(o==="search")return"f002";if(o==="password")return"f30d"},[l,c,o]),P=V(F.textfield,O&&F.withIcon,l&&F.textarea,b&&F.hasValue,i);return T.jsxs("div",{className:P,ref:n,children:[!!O&&!l&&T.jsx(ae,{className:F.icon,code:O,type:y}),l?T.jsx("textarea",{className:F.input,autoFocus:d,autoComplete:g,value:b,onChange:h}):T.jsx("input",{className:F.input,type:o,autoFocus:d,autoComplete:g,value:b,onChange:h}),T.jsx("span",{className:F.placeholder,children:_})]})});Be.displayName="Textfield";const L={sider:"_sider_9guyz_1",leftSiderContainer:"_leftSiderContainer_9guyz_13",rightSiderContainer:"_rightSiderContainer_9guyz_20",content:"_content_9guyz_27",miniLeftSider:"_miniLeftSider_9guyz_37",miniRightSider:"_miniRightSider_9guyz_44",leftOpen:"_leftOpen_9guyz_51",rightOpen:"_rightOpen_9guyz_57"},Ge=x.forwardRef((r,n)=>{const{className:i,children:o,leftSider:l,showMiniLeftSider:_=!0,rightSider:g,showMiniRightSider:d=!1,open:c="closed"}=r,y=V(L.sider,c==="left"&&L.leftOpen,_&&L.miniLeftSider,c==="right"&&L.rightOpen,d&&L.miniRightSider,i);return T.jsxs("section",{className:y,ref:n,role:"sider",children:[T.jsx("div",{className:L.leftSiderContainer,children:l}),T.jsx("div",{className:L.rightSiderContainer,children:g}),T.jsx("div",{className:L.content,children:o})]})});Ge.displayName="Sider";const W={navigation:"_navigation_zrgjp_1",brand:"_brand_zrgjp_9",routeList:"_routeList_zrgjp_18",route:"_route_zrgjp_18",icon:"_icon_zrgjp_59",label:"_label_zrgjp_65",active:"_active_zrgjp_77"},Je=x.forwardRef((r,n)=>{const{className:i,Routes:o}=r,l=V(W.navigation,i);return T.jsxs("section",{className:l,ref:n,role:"navigation",children:[T.jsx("div",{className:W.brand,children:"🎲 XtremeUI"}),T.jsx("div",{className:W.routeList,children:!!o&&T.jsx(o,{className:W.route,activeClassName:W.active,iconClassName:W.icon,labelClassName:W.label})})]})});Je.displayName="Navigation",m.Button=Ue,m.Icon=ae,m.Navigation=Je,m.ProgressBar=ge,m.Sider=Ge,m.Textfield=Be,m.dom=A,m.elementObserver=Rr,m.getCssProperty=te,m.getCssPropertyPx=yr,m.getCssPropertyVh=br,m.getCssPropertyVw=hr,m.isClient=re,m.mergeRefs=Oe,m.safeStringFromCodePoint=we,m.setCssProperty=Tr,m.unicodeToString=Ce,m.waitForElement=Sr,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtreme-ui",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "description": "Collection of reusable components that can be used in web projects",
6
6
  "main": "dist/index.umd.js",