thecore-auth 0.0.207 → 0.0.209

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.
@@ -1,12 +1,12 @@
1
- import * as V from "react";
2
- import Ft, { createContext as Nt, useState as N, useContext as ut, useEffect as q, useMemo as Et, useRef as U, useLayoutEffect as Rn, useId as _c, useCallback as ct, Fragment as ga, createElement as Fc, useInsertionEffect as ya, forwardRef as $c, Component as zc, memo as va } from "react";
1
+ import * as L from "react";
2
+ import Ft, { createContext as Nt, useState as I, useContext as ut, useEffect as q, useMemo as Et, useRef as U, useLayoutEffect as Rn, useId as _c, useCallback as ct, Fragment as ga, createElement as Fc, useInsertionEffect as ya, forwardRef as $c, Component as zc, memo as va } from "react";
3
3
  import Sr from "jwt-decode";
4
4
  import { useNavigate as zs, useLocation as zn, matchPath as us, Outlet as _e, Navigate as ba, Routes as Uc, Route as Re, useMatch as Hc } from "react-router-dom";
5
- import { BrowserRouter as z0, Link as U0, NavLink as H0, Outlet as W0, Route as G0, Routes as q0, useLocation as Y0, useMatch as K0, useNavigate as X0, useParams as Z0 } from "react-router-dom";
5
+ import { BrowserRouter as U0, Link as H0, NavLink as W0, Outlet as G0, Route as q0, Routes as Y0, useLocation as K0, useMatch as X0, useNavigate as Z0, useParams as J0 } from "react-router-dom";
6
6
  import Wc from "axios";
7
- import { default as Q0 } from "axios";
7
+ import { default as t1 } from "axios";
8
8
  import Gc from "react-dom";
9
- import { default as e1 } from "react-dom";
9
+ import { default as n1 } from "react-dom";
10
10
  var Qn = { exports: {} }, xn = {};
11
11
  /**
12
12
  * @license React
@@ -60,7 +60,7 @@ function Yc() {
60
60
  switch (m) {
61
61
  case j:
62
62
  return "Fragment";
63
- case w:
63
+ case x:
64
64
  return "Portal";
65
65
  case M:
66
66
  return "Profiler";
@@ -80,14 +80,14 @@ function Yc() {
80
80
  case O:
81
81
  return (m._context.displayName || "Context") + ".Consumer";
82
82
  case tt:
83
- var L = m.render;
84
- return m = m.displayName, m || (m = L.displayName || L.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m;
83
+ var V = m.render;
84
+ return m = m.displayName, m || (m = V.displayName || V.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m;
85
85
  case J:
86
- return L = m.displayName || null, L !== null ? L : t(m.type) || "Memo";
86
+ return V = m.displayName || null, V !== null ? V : t(m.type) || "Memo";
87
87
  case z:
88
- L = m._payload, m = m._init;
88
+ V = m._payload, m = m._init;
89
89
  try {
90
- return t(m(L));
90
+ return t(m(V));
91
91
  } catch {
92
92
  }
93
93
  }
@@ -99,15 +99,15 @@ function Yc() {
99
99
  function n(m) {
100
100
  try {
101
101
  e(m);
102
- var L = !1;
102
+ var V = !1;
103
103
  } catch {
104
- L = !0;
104
+ V = !0;
105
105
  }
106
- if (L) {
107
- L = console;
108
- var R = L.error, W = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
106
+ if (V) {
107
+ V = console;
108
+ var R = V.error, W = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
109
109
  return R.call(
110
- L,
110
+ V,
111
111
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
112
112
  W
113
113
  ), e(m);
@@ -158,14 +158,14 @@ function Yc() {
158
158
  try {
159
159
  throw Error();
160
160
  } catch (R) {
161
- var L = R.stack.trim().match(/\n( *(at )?)/);
162
- ne = L && L[1] || "", ie = -1 < R.stack.indexOf(`
161
+ var V = R.stack.trim().match(/\n( *(at )?)/);
162
+ ne = V && V[1] || "", ie = -1 < R.stack.indexOf(`
163
163
  at`) ? " (<anonymous>)" : -1 < R.stack.indexOf("@") ? "@unknown:0:0" : "";
164
164
  }
165
165
  return `
166
166
  ` + ne + m + ie;
167
167
  }
168
- function a(m, L) {
168
+ function a(m, V) {
169
169
  if (!m || ye) return "";
170
170
  var R = We.get(m);
171
171
  if (R !== void 0) return R;
@@ -176,7 +176,7 @@ function Yc() {
176
176
  var ft = {
177
177
  DetermineComponentFrameRoot: function() {
178
178
  try {
179
- if (L) {
179
+ if (V) {
180
180
  var Ot = function() {
181
181
  throw Error();
182
182
  };
@@ -225,9 +225,9 @@ function Yc() {
225
225
  "name",
226
226
  { value: "DetermineComponentFrameRoot" }
227
227
  );
228
- var F = ft.DetermineComponentFrameRoot(), Lt = F[0], Wt = F[1];
229
- if (Lt && Wt) {
230
- var vt = Lt.split(`
228
+ var F = ft.DetermineComponentFrameRoot(), Vt = F[0], Wt = F[1];
229
+ if (Vt && Wt) {
230
+ var vt = Vt.split(`
231
231
  `), Gt = Wt.split(`
232
232
  `);
233
233
  for (F = X = 0; X < vt.length && !vt[X].includes(
@@ -265,10 +265,10 @@ function Yc() {
265
265
  function l(m) {
266
266
  if (m == null) return "";
267
267
  if (typeof m == "function") {
268
- var L = m.prototype;
268
+ var V = m.prototype;
269
269
  return a(
270
270
  m,
271
- !(!L || !L.isReactComponent)
271
+ !(!V || !V.isReactComponent)
272
272
  );
273
273
  }
274
274
  if (typeof m == "string") return r(m);
@@ -285,9 +285,9 @@ function Yc() {
285
285
  case J:
286
286
  return l(m.type);
287
287
  case z:
288
- L = m._payload, m = m._init;
288
+ V = m._payload, m = m._init;
289
289
  try {
290
- return l(m(L));
290
+ return l(m(V));
291
291
  } catch {
292
292
  }
293
293
  }
@@ -299,16 +299,16 @@ function Yc() {
299
299
  }
300
300
  function u(m) {
301
301
  if (nt.call(m, "key")) {
302
- var L = Object.getOwnPropertyDescriptor(m, "key").get;
303
- if (L && L.isReactWarning) return !1;
302
+ var V = Object.getOwnPropertyDescriptor(m, "key").get;
303
+ if (V && V.isReactWarning) return !1;
304
304
  }
305
305
  return m.key !== void 0;
306
306
  }
307
- function d(m, L) {
307
+ function f(m, V) {
308
308
  function R() {
309
309
  se || (se = !0, console.error(
310
310
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
311
- L
311
+ V
312
312
  ));
313
313
  }
314
314
  R.isReactWarning = !0, Object.defineProperty(m, "key", {
@@ -316,22 +316,22 @@ function Yc() {
316
316
  configurable: !0
317
317
  });
318
318
  }
319
- function f() {
319
+ function d() {
320
320
  var m = t(this.type);
321
321
  return ve[m] || (ve[m] = !0, console.error(
322
322
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
323
323
  )), m = this.props.ref, m !== void 0 ? m : null;
324
324
  }
325
- function p(m, L, R, W, ft, X) {
325
+ function p(m, V, R, W, ft, X) {
326
326
  return R = X.ref, m = {
327
327
  $$typeof: k,
328
328
  type: m,
329
- key: L,
329
+ key: V,
330
330
  props: X,
331
331
  _owner: ft
332
332
  }, (R !== void 0 ? R : null) !== null ? Object.defineProperty(m, "ref", {
333
333
  enumerable: !1,
334
- get: f
334
+ get: d
335
335
  }) : Object.defineProperty(m, "ref", { enumerable: !1, value: null }), m._store = {}, Object.defineProperty(m._store, "validated", {
336
336
  configurable: !1,
337
337
  enumerable: !1,
@@ -344,32 +344,32 @@ function Yc() {
344
344
  value: null
345
345
  }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
346
346
  }
347
- function g(m, L, R, W, ft, X) {
347
+ function g(m, V, R, W, ft, X) {
348
348
  if (typeof m == "string" || typeof m == "function" || m === j || m === M || m === D || m === wt || m === At || m === rt || typeof m == "object" && m !== null && (m.$$typeof === z || m.$$typeof === J || m.$$typeof === B || m.$$typeof === O || m.$$typeof === tt || m.$$typeof === He || m.getModuleId !== void 0)) {
349
- var F = L.children;
349
+ var F = V.children;
350
350
  if (F !== void 0)
351
351
  if (W)
352
352
  if (Qt(F)) {
353
353
  for (W = 0; W < F.length; W++)
354
- x(F[W], m);
354
+ w(F[W], m);
355
355
  Object.freeze && Object.freeze(F);
356
356
  } else
357
357
  console.error(
358
358
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
359
359
  );
360
- else x(F, m);
360
+ else w(F, m);
361
361
  } else
362
362
  F = "", (m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), m === null ? W = "null" : Qt(m) ? W = "array" : m !== void 0 && m.$$typeof === k ? (W = "<" + (t(m.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : W = typeof m, console.error(
363
363
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
364
364
  W,
365
365
  F
366
366
  );
367
- if (nt.call(L, "key")) {
367
+ if (nt.call(V, "key")) {
368
368
  F = t(m);
369
- var Lt = Object.keys(L).filter(function(vt) {
369
+ var Vt = Object.keys(V).filter(function(vt) {
370
370
  return vt !== "key";
371
371
  });
372
- W = 0 < Lt.length ? "{key: someKey, " + Lt.join(": ..., ") + ": ...}" : "{key: someKey}", be[F + W] || (Lt = 0 < Lt.length ? "{" + Lt.join(": ..., ") + ": ...}" : "{}", console.error(
372
+ W = 0 < Vt.length ? "{key: someKey, " + Vt.join(": ..., ") + ": ...}" : "{key: someKey}", be[F + W] || (Vt = 0 < Vt.length ? "{" + Vt.join(": ..., ") + ": ...}" : "{}", console.error(
373
373
  `A props object containing a "key" prop is being spread into JSX:
374
374
  let props = %s;
375
375
  <%s {...props} />
@@ -378,40 +378,40 @@ React keys must be passed directly to JSX without using spread:
378
378
  <%s key={someKey} {...props} />`,
379
379
  W,
380
380
  F,
381
- Lt,
381
+ Vt,
382
382
  F
383
383
  ), be[F + W] = !0);
384
384
  }
385
- if (F = null, R !== void 0 && (n(R), F = "" + R), u(L) && (n(L.key), F = "" + L.key), "key" in L) {
385
+ if (F = null, R !== void 0 && (n(R), F = "" + R), u(V) && (n(V.key), F = "" + V.key), "key" in V) {
386
386
  R = {};
387
- for (var Wt in L)
388
- Wt !== "key" && (R[Wt] = L[Wt]);
389
- } else R = L;
390
- return F && d(
387
+ for (var Wt in V)
388
+ Wt !== "key" && (R[Wt] = V[Wt]);
389
+ } else R = V;
390
+ return F && f(
391
391
  R,
392
392
  typeof m == "function" ? m.displayName || m.name || "Unknown" : m
393
393
  ), p(m, F, X, ft, c(), R);
394
394
  }
395
- function x(m, L) {
395
+ function w(m, V) {
396
396
  if (typeof m == "object" && m && m.$$typeof !== Kn) {
397
397
  if (Qt(m))
398
398
  for (var R = 0; R < m.length; R++) {
399
399
  var W = m[R];
400
- b(W) && y(W, L);
400
+ y(W) && v(W, V);
401
401
  }
402
- else if (b(m))
402
+ else if (y(m))
403
403
  m._store && (m._store.validated = 1);
404
404
  else if (m === null || typeof m != "object" ? R = null : (R = H && m[H] || m["@@iterator"], R = typeof R == "function" ? R : null), typeof R == "function" && R !== m.entries && (R = R.call(m), R !== m))
405
405
  for (; !(m = R.next()).done; )
406
- b(m.value) && y(m.value, L);
406
+ y(m.value) && v(m.value, V);
407
407
  }
408
408
  }
409
- function b(m) {
409
+ function y(m) {
410
410
  return typeof m == "object" && m !== null && m.$$typeof === k;
411
411
  }
412
- function y(m, L) {
413
- if (m._store && !m._store.validated && m.key == null && (m._store.validated = 1, L = v(L), !Ht[L])) {
414
- Ht[L] = !0;
412
+ function v(m, V) {
413
+ if (m._store && !m._store.validated && m.key == null && (m._store.validated = 1, V = b(V), !Ht[V])) {
414
+ Ht[V] = !0;
415
415
  var R = "";
416
416
  m && m._owner != null && m._owner !== c() && (R = null, typeof m._owner.tag == "number" ? R = t(m._owner.type) : typeof m._owner.name == "string" && (R = m._owner.name), R = " It was passed a child from " + R + ".");
417
417
  var W = ot.getCurrentStack;
@@ -420,26 +420,26 @@ React keys must be passed directly to JSX without using spread:
420
420
  return W && (ft += W() || ""), ft;
421
421
  }, console.error(
422
422
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
423
- L,
423
+ V,
424
424
  R
425
425
  ), ot.getCurrentStack = W;
426
426
  }
427
427
  }
428
- function v(m) {
429
- var L = "", R = c();
430
- return R && (R = t(R.type)) && (L = `
428
+ function b(m) {
429
+ var V = "", R = c();
430
+ return R && (R = t(R.type)) && (V = `
431
431
 
432
- Check the render method of \`` + R + "`."), L || (m = t(m)) && (L = `
432
+ Check the render method of \`` + R + "`."), V || (m = t(m)) && (V = `
433
433
 
434
- Check the top-level render call using <` + m + ">."), L;
434
+ Check the top-level render call using <` + m + ">."), V;
435
435
  }
436
- var T = Ft, k = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), B = Symbol.for("react.context"), tt = Symbol.for("react.forward_ref"), wt = Symbol.for("react.suspense"), At = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), rt = Symbol.for("react.offscreen"), H = Symbol.iterator, Y = Symbol.for("react.client.reference"), ot = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, nt = Object.prototype.hasOwnProperty, yt = Object.assign, He = Symbol.for("react.client.reference"), Qt = Array.isArray, te = 0, at, et, G, lt, K, Mt, ee;
436
+ var T = Ft, k = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), O = Symbol.for("react.consumer"), B = Symbol.for("react.context"), tt = Symbol.for("react.forward_ref"), wt = Symbol.for("react.suspense"), At = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), rt = Symbol.for("react.offscreen"), H = Symbol.iterator, Y = Symbol.for("react.client.reference"), ot = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, nt = Object.prototype.hasOwnProperty, yt = Object.assign, He = Symbol.for("react.client.reference"), Qt = Array.isArray, te = 0, at, et, G, lt, K, Mt, ee;
437
437
  i.__reactDisabledLog = !0;
438
438
  var ne, ie, ye = !1, We = new (typeof WeakMap == "function" ? WeakMap : Map)(), Kn = Symbol.for("react.client.reference"), se, ve = {}, be = {}, Ht = {};
439
- Tn.Fragment = j, Tn.jsx = function(m, L, R, W, ft) {
440
- return g(m, L, R, !1, W, ft);
441
- }, Tn.jsxs = function(m, L, R, W, ft) {
442
- return g(m, L, R, !0, W, ft);
439
+ Tn.Fragment = j, Tn.jsx = function(m, V, R, W, ft) {
440
+ return g(m, V, R, !1, W, ft);
441
+ }, Tn.jsxs = function(m, V, R, W, ft) {
442
+ return g(m, V, R, !0, W, ft);
443
443
  };
444
444
  }()), Tn;
445
445
  }
@@ -449,8 +449,8 @@ function Kc() {
449
449
  }
450
450
  var h = Kc();
451
451
  const wa = Nt(), v0 = ({ children: t, defaultComponent: e }) => {
452
- const [n, i] = N(!1), [s, o] = N({}), [r, a] = N(e), c = { isLoading: n, setIsLoading: i, loadingProps: s, setLoadingProps: o, loadingComponent: r, setLoadingComponent: a, showLoadingFor: (u = 2e3, d = {}) => {
453
- o(d), i(!0), setTimeout(() => {
452
+ const [n, i] = I(!1), [s, o] = I({}), [r, a] = I(e), c = { isLoading: n, setIsLoading: i, loadingProps: s, setLoadingProps: o, loadingComponent: r, setLoadingComponent: a, showLoadingFor: (u = 2e3, f = {}) => {
453
+ o(f), i(!0), setTimeout(() => {
454
454
  i(!1);
455
455
  }, u);
456
456
  } };
@@ -459,20 +459,20 @@ const wa = Nt(), v0 = ({ children: t, defaultComponent: e }) => {
459
459
  const t = ut(wa);
460
460
  if (t === void 0) throw new Error("Non puoi settare il loading");
461
461
  return t;
462
- }, Xc = "0.0.207", Zc = ({ errorMessage: t, errorShow: e }) => /* @__PURE__ */ h.jsx("section", { className: e ? "" : "hidden", children: /* @__PURE__ */ h.jsxs("div", { className: "container mx-auto", children: [
462
+ }, Xc = "0.0.209", Zc = ({ errorMessage: t, errorShow: e }) => /* @__PURE__ */ h.jsx("section", { className: e ? "" : "hidden", children: /* @__PURE__ */ h.jsxs("div", { className: "container mx-auto", children: [
463
463
  /* @__PURE__ */ h.jsx("h1", { className: "text-center text-8xl my-12", children: "Errore" }),
464
464
  /* @__PURE__ */ h.jsx("pre", { className: "text-xl", children: t })
465
465
  ] }) });
466
466
  function Jc() {
467
- const [t, e] = N(document.visibilityState), [n, i] = N(document.hasFocus()), [s, o] = N(!1), [r, a] = N(!1), l = () => {
467
+ const [t, e] = I(document.visibilityState), [n, i] = I(document.hasFocus()), [s, o] = I(!1), [r, a] = I(!1), l = () => {
468
468
  e(document.visibilityState);
469
- }, c = () => i(!0), u = () => i(!1), d = (g) => {
469
+ }, c = () => i(!0), u = () => i(!1), f = (g) => {
470
470
  o(g.persisted), a(!1);
471
- }, f = () => {
471
+ }, d = () => {
472
472
  a(!0);
473
473
  };
474
- q(() => (document.addEventListener("visibilitychange", l), window.addEventListener("focus", c), window.addEventListener("blur", u), window.addEventListener("pageshow", d), window.addEventListener("pagehide", f), () => {
475
- document.removeEventListener("visibilitychange", l), window.removeEventListener("focus", c), window.removeEventListener("blur", u), window.removeEventListener("pageshow", d), window.removeEventListener("pagehide", f);
474
+ q(() => (document.addEventListener("visibilitychange", l), window.addEventListener("focus", c), window.addEventListener("blur", u), window.addEventListener("pageshow", f), window.addEventListener("pagehide", d), () => {
475
+ document.removeEventListener("visibilitychange", l), window.removeEventListener("focus", c), window.removeEventListener("blur", u), window.removeEventListener("pageshow", f), window.removeEventListener("pagehide", d);
476
476
  }), []);
477
477
  const p = Et(() => t === "visible" && n, [t, n]);
478
478
  return {
@@ -486,7 +486,7 @@ function Jc() {
486
486
  };
487
487
  }
488
488
  const xa = Nt(), b0 = ({ children: t }) => {
489
- const e = Jc(), [n, i] = N({}), [s, o] = N(!1), r = U(!1), a = `Creare un file config.json in public per il corretto funzionamento
489
+ const e = Jc(), [n, i] = I({}), [s, o] = I(!1), r = U(!1), a = `Creare un file config.json in public per il corretto funzionamento
490
490
  Esempio di config.json:
491
491
 
492
492
  {
@@ -513,76 +513,76 @@ Esempio di config.json:
513
513
  "backendToken": "",
514
514
  "isDebug": "",
515
515
  "showHeaderButton": ""
516
- }`, l = (b, y) => {
517
- if (!b) return null;
518
- let v = sessionStorage.getItem("sessionKey");
519
- return v || (v = `${y ? y + "-" : ""}${crypto.randomUUID()}`, sessionStorage.setItem("sessionKey", v)), v;
516
+ }`, l = (y, v) => {
517
+ if (!y) return null;
518
+ let b = sessionStorage.getItem("sessionKey");
519
+ return b || (b = `${v ? v + "-" : ""}${crypto.randomUUID()}`, sessionStorage.setItem("sessionKey", b)), b;
520
520
  }, c = () => {
521
- const b = /* @__PURE__ */ new Date(), y = String(b.getDate()).padStart(2, "0"), v = String(b.getMonth() + 1).padStart(2, "0"), T = b.getFullYear(), k = String(b.getHours()).padStart(2, "0"), w = String(b.getMinutes()).padStart(2, "0"), j = String(b.getSeconds()).padStart(2, "0");
522
- return `${y}/${v}/${T} ${k}:${w}:${j}`;
523
- }, u = (b, y) => new Promise((v, T) => {
524
- const k = indexedDB.open(b, 1);
525
- k.onupgradeneeded = (w) => {
526
- const j = w.target.result;
527
- j.objectStoreNames.contains(y) || j.createObjectStore(y, { keyPath: "id" });
528
- }, k.onsuccess = (w) => v(w.target.result), k.onerror = (w) => T(w.target.error);
529
- }), d = async (b, y, v) => {
530
- const T = await u(b, y);
531
- return new Promise((k, w) => {
521
+ const y = /* @__PURE__ */ new Date(), v = String(y.getDate()).padStart(2, "0"), b = String(y.getMonth() + 1).padStart(2, "0"), T = y.getFullYear(), k = String(y.getHours()).padStart(2, "0"), x = String(y.getMinutes()).padStart(2, "0"), j = String(y.getSeconds()).padStart(2, "0");
522
+ return `${v}/${b}/${T} ${k}:${x}:${j}`;
523
+ }, u = (y, v) => new Promise((b, T) => {
524
+ const k = indexedDB.open(y, 1);
525
+ k.onupgradeneeded = (x) => {
526
+ const j = x.target.result;
527
+ j.objectStoreNames.contains(v) || j.createObjectStore(v, { keyPath: "id" });
528
+ }, k.onsuccess = (x) => b(x.target.result), k.onerror = (x) => T(x.target.error);
529
+ }), f = async (y, v, b) => {
530
+ const T = await u(y, v);
531
+ return new Promise((k, x) => {
532
532
  if (!T) {
533
- w("Errore: DB non disponibile");
533
+ x("Errore: DB non disponibile");
534
534
  return;
535
535
  }
536
- const j = T == null ? void 0 : T.transaction(y, "readonly"), D = j == null ? void 0 : j.objectStore(y), M = D == null ? void 0 : D.get(v);
537
- M.onsuccess = () => k(M.result), M.onerror = (O) => w(O.target.error);
536
+ const j = T == null ? void 0 : T.transaction(v, "readonly"), D = j == null ? void 0 : j.objectStore(v), M = D == null ? void 0 : D.get(b);
537
+ M.onsuccess = () => k(M.result), M.onerror = (O) => x(O.target.error);
538
538
  });
539
- }, f = async (b, y, v) => {
540
- const T = await u(b, y);
541
- return new Promise((k, w) => {
539
+ }, d = async (y, v, b) => {
540
+ const T = await u(y, v);
541
+ return new Promise((k, x) => {
542
542
  if (!T) {
543
- w("Errore: DB non disponibile");
543
+ x("Errore: DB non disponibile");
544
544
  return;
545
545
  }
546
- const j = T == null ? void 0 : T.transaction(y, "readwrite"), D = j == null ? void 0 : j.objectStore(y), M = D == null ? void 0 : D.put(v);
547
- M.onsuccess = () => k(M.result), M.onerror = (O) => w(O.target.error);
546
+ const j = T == null ? void 0 : T.transaction(v, "readwrite"), D = j == null ? void 0 : j.objectStore(v), M = D == null ? void 0 : D.put(b);
547
+ M.onsuccess = () => k(M.result), M.onerror = (O) => x(O.target.error);
548
548
  });
549
- }, p = async (b, y) => {
550
- let v = Date.now(), T;
549
+ }, p = async (y, v) => {
550
+ let b = Date.now(), T;
551
551
  do
552
- T = await d(b, y, v), T && v++;
552
+ T = await f(y, v, b), T && b++;
553
553
  while (T);
554
- return v;
555
- }, g = async (b, y, v) => {
556
- v.id || (v.id = await p(b, y)), await f(b, y, v);
557
- }, x = async () => {
554
+ return b;
555
+ }, g = async (y, v, b) => {
556
+ b.id || (b.id = await p(y, v)), await d(y, v, b);
557
+ }, w = async () => {
558
558
  try {
559
- const y = await (await fetch("/config.json")).json();
560
- let v;
561
- y.isDevelopment ? v = Xc : v = (await (await fetch("/package.json")).json()).version;
562
- const T = l(y.hasSessionKey, y.appKey), k = {
563
- ...y,
564
- version: v,
559
+ const v = await (await fetch("/config.json")).json();
560
+ let b;
561
+ v.isDevelopment ? b = Xc : b = (await (await fetch("/package.json")).json()).version;
562
+ const T = l(v.hasSessionKey, v.appKey), k = {
563
+ ...v,
564
+ version: b,
565
565
  openIndexedDB: u,
566
- getDataIndexedDB: d,
567
- setDataIndexedDB: f,
566
+ getDataIndexedDB: f,
567
+ setDataIndexedDB: d,
568
568
  generateUniqueId: p,
569
569
  setDataWithAutoId: g,
570
570
  setCurrentDate: c,
571
571
  activity: e
572
572
  };
573
- y.hasSessionKey && (k.sessionKey = T), i(k);
574
- } catch (b) {
575
- console.error(b), o(!0);
573
+ v.hasSessionKey && (k.sessionKey = T), i(k);
574
+ } catch (y) {
575
+ console.error(y), o(!0);
576
576
  }
577
577
  };
578
578
  return q(() => {
579
- r.current || (r.current = !0, x());
579
+ r.current || (r.current = !0, w());
580
580
  }, []), Object.keys(n).length === 0 ? /* @__PURE__ */ h.jsx(Zc, { errorShow: s, errorMessage: a }) : /* @__PURE__ */ h.jsx(xa.Provider, { value: n, children: t });
581
581
  }, Jt = () => {
582
582
  const t = ut(xa);
583
583
  if (t === void 0) throw new Error("Non puoi leggere i config");
584
584
  return t;
585
- }, Qc = (t) => /* @__PURE__ */ V.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 500, height: 500, viewBox: "0 0 375 375", ...t }, /* @__PURE__ */ V.createElement("defs", null, /* @__PURE__ */ V.createElement("clipPath", { id: "6ca7e2bf04" }, /* @__PURE__ */ V.createElement("path", { d: "M265.137 0 375 109.863v155.274L265.137 375H109.863L0 265.137V109.863L109.863 0Zm0 0" })), /* @__PURE__ */ V.createElement("clipPath", { id: "2c77c820c6" }, /* @__PURE__ */ V.createElement("path", { d: "M12.879 12.879H362.12V362.12H12.88Zm0 0" })), /* @__PURE__ */ V.createElement("clipPath", { id: "3d94df7d66" }, /* @__PURE__ */ V.createElement("path", { d: "M259.805 12.879 362.12 115.195v144.61L259.805 362.12h-144.61L12.88 259.805v-144.61L115.195 12.88Zm0 0" })), /* @__PURE__ */ V.createElement("clipPath", { id: "8793709a64" }, /* @__PURE__ */ V.createElement("path", { d: "M12.879 12.879h349.23v349.23H12.88Zm0 0" })), /* @__PURE__ */ V.createElement("clipPath", { id: "fdb3fe29d8" }, /* @__PURE__ */ V.createElement("path", { d: "M259.797 12.879 362.109 115.19v144.606L259.797 362.109H115.19L12.88 259.797V115.19L115.19 12.88Zm0 0" }))), /* @__PURE__ */ V.createElement("g", { clipPath: "url(#6ca7e2bf04)" }, /* @__PURE__ */ V.createElement("path", { fill: "#b91c1c", d: "M-37.5-37.5h450v450h-450z" })), /* @__PURE__ */ V.createElement("g", { clipPath: "url(#2c77c820c6)" }, /* @__PURE__ */ V.createElement("g", { clipPath: "url(#3d94df7d66)" }, /* @__PURE__ */ V.createElement("path", { fill: "#b91c1c", d: "M12.879 12.879H362.12V362.12H12.88Zm0 0" }))), /* @__PURE__ */ V.createElement("g", { clipPath: "url(#8793709a64)" }, /* @__PURE__ */ V.createElement("g", { clipPath: "url(#fdb3fe29d8)" }, /* @__PURE__ */ V.createElement("path", { fill: "none", stroke: "#fff", strokeWidth: 25.5, d: "M259.797 12.879 362.109 115.19v144.606L259.797 362.109H115.19L12.88 259.797V115.19L115.19 12.88Zm0 0" }))), /* @__PURE__ */ V.createElement("path", { fill: "#fff", d: "m114.477 267.442 53.421-79.859-53.203-79.75h34.235l38.625 61.563 38.625-61.563h34.234l-53.203 79.75 53.422 79.86h-34.219l-39.094-60.657-38.625 60.656Zm0 0" })), tu = (t) => /* @__PURE__ */ V.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 500, height: 500, viewBox: "0 0 375 375", ...t }, /* @__PURE__ */ V.createElement("defs", null, /* @__PURE__ */ V.createElement("clipPath", { id: "30562604dd" }, /* @__PURE__ */ V.createElement("path", { d: "M187.5 0C83.945 0 0 83.945 0 187.5S83.945 375 187.5 375 375 291.055 375 187.5 291.055 0 187.5 0m0 0" })), /* @__PURE__ */ V.createElement("clipPath", { id: "971fcd5f72" }, /* @__PURE__ */ V.createElement("path", { d: "M18.57 18.57h337.86v337.86H18.57Zm0 0" })), /* @__PURE__ */ V.createElement("clipPath", { id: "e891a7f57e" }, /* @__PURE__ */ V.createElement("path", { d: "M187.5 18.57c-93.297 0-168.93 75.633-168.93 168.93S94.203 356.43 187.5 356.43s168.93-75.633 168.93-168.93S280.797 18.57 187.5 18.57m0 0" })), /* @__PURE__ */ V.createElement("clipPath", { id: "19a9ddc130" }, /* @__PURE__ */ V.createElement("path", { d: "M18.57 18.57h337.5v337.5H18.57Zm0 0" })), /* @__PURE__ */ V.createElement("clipPath", { id: "5e650d5bd0" }, /* @__PURE__ */ V.createElement("path", { d: "M187.496 18.57C94.2 18.57 18.57 94.2 18.57 187.496c0 93.297 75.63 168.926 168.926 168.926 93.297 0 168.926-75.629 168.926-168.926S280.793 18.57 187.496 18.57m0 0" }))), /* @__PURE__ */ V.createElement("g", { clipPath: "url(#30562604dd)" }, /* @__PURE__ */ V.createElement("path", { fill: "#1d4ed8", d: "M-37.5-37.5h450v450h-450z" })), /* @__PURE__ */ V.createElement("g", { clipPath: "url(#971fcd5f72)" }, /* @__PURE__ */ V.createElement("g", { clipPath: "url(#e891a7f57e)" }, /* @__PURE__ */ V.createElement("path", { fill: "#1d4ed8", d: "M18.57 18.57h337.86v337.86H18.57Zm0 0" }))), /* @__PURE__ */ V.createElement("g", { clipPath: "url(#19a9ddc130)" }, /* @__PURE__ */ V.createElement("g", { clipPath: "url(#5e650d5bd0)" }, /* @__PURE__ */ V.createElement("path", { fill: "none", stroke: "#fff", strokeWidth: 25.5, d: "M187.496 18.57C94.2 18.57 18.57 94.2 18.57 187.496c0 93.297 75.63 168.926 168.926 168.926 93.297 0 168.926-75.629 168.926-168.926S280.793 18.57 187.496 18.57Zm0 0" }))), /* @__PURE__ */ V.createElement("path", { fill: "#fff", d: "M196.122 107.056q-7.938 0-13.797-5.86c-3.906-3.913-5.86-8.515-5.86-13.796q0-7.936 5.86-13.797 5.858-5.86 13.797-5.86 7.922 0 13.781 5.86c3.914 3.906 5.875 8.508 5.875 13.797 0 5.281-1.96 9.883-5.875 13.797q-5.86 5.86-13.781 5.86m-14.828 198.61c-5.98 0-9.891-2.415-11.735-7.235-1.836-4.832-2.75-11.27-2.75-19.312q-.002-19.313 3.266-37.922a2076 2076 0 0 1 6.562-35.516q3.282-16.906 3.282-31.39 0-3.797-.36-8.266-.346-4.482-1.718-6.906-5.52 3.456-14.313 11.39-8.784 7.922-13.953 17.578-2.424-2.42-2.422-6.562-.001-5.859 4.656-12.75 4.654-6.891 12.407-13.266 7.763-6.389 16.734-10.53 8.964-4.14 17.578-4.142 7.934 0 10.172 3.797 2.25 3.797 2.25 9.657 0 8.626-2.25 22.25a1236 1236 0 0 1-5.172 29.125 745 745 0 0 0-5.172 31.03q-2.236 15.519-2.234 28.282c0 4.367.226 8.445.687 12.234q.687 5.689 1.719 9.485 8.624-3.797 16.375-11.203 7.764-7.406 11.563-13.97 2.062 3.113 2.062 6.563 0 5.52-4.828 12.063-4.83 6.55-12.078 12.422-7.236 5.859-15.344 9.469c-5.398 2.414-10.39 3.625-14.984 3.625m0 0" })), eu = (t) => /* @__PURE__ */ V.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 500, height: 500, viewBox: "0 0 375 375", ...t }, /* @__PURE__ */ V.createElement("defs", null, /* @__PURE__ */ V.createElement("clipPath", { id: "59a10ac27a" }, /* @__PURE__ */ V.createElement("path", { d: "M17.18 32.695H360V337.5H17.18Zm0 0" })), /* @__PURE__ */ V.createElement("clipPath", { id: "664b27481e" }, /* @__PURE__ */ V.createElement("path", { d: "m207.043 43.574 149.352 261.367a21.77 21.77 0 0 1-.07 21.72A21.76 21.76 0 0 1 337.5 337.5H39.375a21.75 21.75 0 0 1-18.82-10.84 21.76 21.76 0 0 1-.075-21.719L169.832 43.574a21.43 21.43 0 0 1 37.211 0m0 0" }))), /* @__PURE__ */ V.createElement("g", { clipPath: "url(#59a10ac27a)" }, /* @__PURE__ */ V.createElement("g", { clipPath: "url(#664b27481e)" }, /* @__PURE__ */ V.createElement("path", { fill: "#d97706", d: "M1.875 11.016h373.672V337.5H1.875Zm0 0" }))), /* @__PURE__ */ V.createElement("path", { fill: "#fff", d: "M205.301 232.437v-113.25q0-3.686-2.11-5.797t-5.796-2.11h-17.906q-3.69 0-5.797 2.11-2.11 2.11-2.11 5.797v109.562c0 2.461.703 4.39 2.11 5.797q2.107 2.11 5.797 2.11h17.906q3.686 0 5.797-2.11zm0 59v-21.328q0-3.687-2.11-5.797t-5.796-2.11h-17.906q-3.69 0-5.797 2.11-2.11 2.11-2.11 5.797v17.64c0 2.461.703 4.39 2.11 5.797q2.107 2.11 5.797 2.11h17.906q3.686 0 5.797-2.11zm0 0" }));
585
+ }, Qc = (t) => /* @__PURE__ */ L.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 500, height: 500, viewBox: "0 0 375 375", ...t }, /* @__PURE__ */ L.createElement("defs", null, /* @__PURE__ */ L.createElement("clipPath", { id: "6ca7e2bf04" }, /* @__PURE__ */ L.createElement("path", { d: "M265.137 0 375 109.863v155.274L265.137 375H109.863L0 265.137V109.863L109.863 0Zm0 0" })), /* @__PURE__ */ L.createElement("clipPath", { id: "2c77c820c6" }, /* @__PURE__ */ L.createElement("path", { d: "M12.879 12.879H362.12V362.12H12.88Zm0 0" })), /* @__PURE__ */ L.createElement("clipPath", { id: "3d94df7d66" }, /* @__PURE__ */ L.createElement("path", { d: "M259.805 12.879 362.12 115.195v144.61L259.805 362.12h-144.61L12.88 259.805v-144.61L115.195 12.88Zm0 0" })), /* @__PURE__ */ L.createElement("clipPath", { id: "8793709a64" }, /* @__PURE__ */ L.createElement("path", { d: "M12.879 12.879h349.23v349.23H12.88Zm0 0" })), /* @__PURE__ */ L.createElement("clipPath", { id: "fdb3fe29d8" }, /* @__PURE__ */ L.createElement("path", { d: "M259.797 12.879 362.109 115.19v144.606L259.797 362.109H115.19L12.88 259.797V115.19L115.19 12.88Zm0 0" }))), /* @__PURE__ */ L.createElement("g", { clipPath: "url(#6ca7e2bf04)" }, /* @__PURE__ */ L.createElement("path", { fill: "#b91c1c", d: "M-37.5-37.5h450v450h-450z" })), /* @__PURE__ */ L.createElement("g", { clipPath: "url(#2c77c820c6)" }, /* @__PURE__ */ L.createElement("g", { clipPath: "url(#3d94df7d66)" }, /* @__PURE__ */ L.createElement("path", { fill: "#b91c1c", d: "M12.879 12.879H362.12V362.12H12.88Zm0 0" }))), /* @__PURE__ */ L.createElement("g", { clipPath: "url(#8793709a64)" }, /* @__PURE__ */ L.createElement("g", { clipPath: "url(#fdb3fe29d8)" }, /* @__PURE__ */ L.createElement("path", { fill: "none", stroke: "#fff", strokeWidth: 25.5, d: "M259.797 12.879 362.109 115.19v144.606L259.797 362.109H115.19L12.88 259.797V115.19L115.19 12.88Zm0 0" }))), /* @__PURE__ */ L.createElement("path", { fill: "#fff", d: "m114.477 267.442 53.421-79.859-53.203-79.75h34.235l38.625 61.563 38.625-61.563h34.234l-53.203 79.75 53.422 79.86h-34.219l-39.094-60.657-38.625 60.656Zm0 0" })), tu = (t) => /* @__PURE__ */ L.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 500, height: 500, viewBox: "0 0 375 375", ...t }, /* @__PURE__ */ L.createElement("defs", null, /* @__PURE__ */ L.createElement("clipPath", { id: "30562604dd" }, /* @__PURE__ */ L.createElement("path", { d: "M187.5 0C83.945 0 0 83.945 0 187.5S83.945 375 187.5 375 375 291.055 375 187.5 291.055 0 187.5 0m0 0" })), /* @__PURE__ */ L.createElement("clipPath", { id: "971fcd5f72" }, /* @__PURE__ */ L.createElement("path", { d: "M18.57 18.57h337.86v337.86H18.57Zm0 0" })), /* @__PURE__ */ L.createElement("clipPath", { id: "e891a7f57e" }, /* @__PURE__ */ L.createElement("path", { d: "M187.5 18.57c-93.297 0-168.93 75.633-168.93 168.93S94.203 356.43 187.5 356.43s168.93-75.633 168.93-168.93S280.797 18.57 187.5 18.57m0 0" })), /* @__PURE__ */ L.createElement("clipPath", { id: "19a9ddc130" }, /* @__PURE__ */ L.createElement("path", { d: "M18.57 18.57h337.5v337.5H18.57Zm0 0" })), /* @__PURE__ */ L.createElement("clipPath", { id: "5e650d5bd0" }, /* @__PURE__ */ L.createElement("path", { d: "M187.496 18.57C94.2 18.57 18.57 94.2 18.57 187.496c0 93.297 75.63 168.926 168.926 168.926 93.297 0 168.926-75.629 168.926-168.926S280.793 18.57 187.496 18.57m0 0" }))), /* @__PURE__ */ L.createElement("g", { clipPath: "url(#30562604dd)" }, /* @__PURE__ */ L.createElement("path", { fill: "#1d4ed8", d: "M-37.5-37.5h450v450h-450z" })), /* @__PURE__ */ L.createElement("g", { clipPath: "url(#971fcd5f72)" }, /* @__PURE__ */ L.createElement("g", { clipPath: "url(#e891a7f57e)" }, /* @__PURE__ */ L.createElement("path", { fill: "#1d4ed8", d: "M18.57 18.57h337.86v337.86H18.57Zm0 0" }))), /* @__PURE__ */ L.createElement("g", { clipPath: "url(#19a9ddc130)" }, /* @__PURE__ */ L.createElement("g", { clipPath: "url(#5e650d5bd0)" }, /* @__PURE__ */ L.createElement("path", { fill: "none", stroke: "#fff", strokeWidth: 25.5, d: "M187.496 18.57C94.2 18.57 18.57 94.2 18.57 187.496c0 93.297 75.63 168.926 168.926 168.926 93.297 0 168.926-75.629 168.926-168.926S280.793 18.57 187.496 18.57Zm0 0" }))), /* @__PURE__ */ L.createElement("path", { fill: "#fff", d: "M196.122 107.056q-7.938 0-13.797-5.86c-3.906-3.913-5.86-8.515-5.86-13.796q0-7.936 5.86-13.797 5.858-5.86 13.797-5.86 7.922 0 13.781 5.86c3.914 3.906 5.875 8.508 5.875 13.797 0 5.281-1.96 9.883-5.875 13.797q-5.86 5.86-13.781 5.86m-14.828 198.61c-5.98 0-9.891-2.415-11.735-7.235-1.836-4.832-2.75-11.27-2.75-19.312q-.002-19.313 3.266-37.922a2076 2076 0 0 1 6.562-35.516q3.282-16.906 3.282-31.39 0-3.797-.36-8.266-.346-4.482-1.718-6.906-5.52 3.456-14.313 11.39-8.784 7.922-13.953 17.578-2.424-2.42-2.422-6.562-.001-5.859 4.656-12.75 4.654-6.891 12.407-13.266 7.763-6.389 16.734-10.53 8.964-4.14 17.578-4.142 7.934 0 10.172 3.797 2.25 3.797 2.25 9.657 0 8.626-2.25 22.25a1236 1236 0 0 1-5.172 29.125 745 745 0 0 0-5.172 31.03q-2.236 15.519-2.234 28.282c0 4.367.226 8.445.687 12.234q.687 5.689 1.719 9.485 8.624-3.797 16.375-11.203 7.764-7.406 11.563-13.97 2.062 3.113 2.062 6.563 0 5.52-4.828 12.063-4.83 6.55-12.078 12.422-7.236 5.859-15.344 9.469c-5.398 2.414-10.39 3.625-14.984 3.625m0 0" })), eu = (t) => /* @__PURE__ */ L.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 500, height: 500, viewBox: "0 0 375 375", ...t }, /* @__PURE__ */ L.createElement("defs", null, /* @__PURE__ */ L.createElement("clipPath", { id: "59a10ac27a" }, /* @__PURE__ */ L.createElement("path", { d: "M17.18 32.695H360V337.5H17.18Zm0 0" })), /* @__PURE__ */ L.createElement("clipPath", { id: "664b27481e" }, /* @__PURE__ */ L.createElement("path", { d: "m207.043 43.574 149.352 261.367a21.77 21.77 0 0 1-.07 21.72A21.76 21.76 0 0 1 337.5 337.5H39.375a21.75 21.75 0 0 1-18.82-10.84 21.76 21.76 0 0 1-.075-21.719L169.832 43.574a21.43 21.43 0 0 1 37.211 0m0 0" }))), /* @__PURE__ */ L.createElement("g", { clipPath: "url(#59a10ac27a)" }, /* @__PURE__ */ L.createElement("g", { clipPath: "url(#664b27481e)" }, /* @__PURE__ */ L.createElement("path", { fill: "#d97706", d: "M1.875 11.016h373.672V337.5H1.875Zm0 0" }))), /* @__PURE__ */ L.createElement("path", { fill: "#fff", d: "M205.301 232.437v-113.25q0-3.686-2.11-5.797t-5.796-2.11h-17.906q-3.69 0-5.797 2.11-2.11 2.11-2.11 5.797v109.562c0 2.461.703 4.39 2.11 5.797q2.107 2.11 5.797 2.11h17.906q3.686 0 5.797-2.11zm0 59v-21.328q0-3.687-2.11-5.797t-5.796-2.11h-17.906q-3.69 0-5.797 2.11-2.11 2.11-2.11 5.797v17.64c0 2.461.703 4.39 2.11 5.797q2.107 2.11 5.797 2.11h17.906q3.686 0 5.797-2.11zm0 0" }));
586
586
  var Ta = {
587
587
  color: void 0,
588
588
  size: void 0,
@@ -699,7 +699,7 @@ var uu = "2.0.9", du = 500, jr = "user-agent", cn = "", Mr = "?", dt = {
699
699
  OBJECT: "object",
700
700
  STRING: "string",
701
701
  UNDEFINED: "undefined"
702
- }, Vt = "browser", he = "cpu", ce = "device", Xt = "engine", It = "os", un = "result", P = "name", S = "type", C = "vendor", A = "version", Ct = "architecture", In = "major", E = "model", ui = "console", $ = "mobile", Z = "tablet", pt = "smarttv", ae = "wearable", ti = "xr", Mn = "embedded", fu = "fetcher", Ye = "inapp", Us = "brands", Ne = "formFactors", Hs = "fullVersionList", dn = "platform", Ws = "platformVersion", Mi = "bitness", je = "sec-ch-ua", hu = je + "-full-version-list", pu = je + "-arch", mu = je + "-" + Mi, gu = je + "-form-factors", yu = je + "-" + $, vu = je + "-" + E, Ea = je + "-" + dn, bu = Ea + "-version", Pa = [Us, Hs, $, E, dn, Ws, Ct, Ne, Mi], ei = "Amazon", Ke = "Apple", Dr = "ASUS", Rr = "BlackBerry", Ve = "Google", Vr = "Huawei", Bi = "Lenovo", Lr = "Honor", ni = "LG", _i = "Microsoft", Fi = "Motorola", Or = "Nvidia", Ir = "OnePlus", $i = "OPPO", Sn = "Samsung", Nr = "Sharp", En = "Sony", zi = "Xiaomi", Ui = "Zebra", Br = "Chrome", _r = "Chromium", xe = "Chromecast", di = "Edge", Pn = "Firefox", Xe = "Opera", Hi = "Facebook", Fr = "Sogou", Ze = "Mobile ", Je = " Browser", ds = "Windows", wu = typeof window !== dt.UNDEFINED, Rt = wu && window.navigator ? window.navigator : void 0, Be = Rt && Rt.userAgentData ? Rt.userAgentData : void 0, xu = function(t, e) {
702
+ }, Lt = "browser", he = "cpu", ce = "device", Xt = "engine", It = "os", un = "result", P = "name", S = "type", C = "vendor", A = "version", Ct = "architecture", In = "major", E = "model", ui = "console", $ = "mobile", Z = "tablet", pt = "smarttv", ae = "wearable", ti = "xr", Mn = "embedded", fu = "fetcher", Ye = "inapp", Us = "brands", Ne = "formFactors", Hs = "fullVersionList", dn = "platform", Ws = "platformVersion", Mi = "bitness", je = "sec-ch-ua", hu = je + "-full-version-list", pu = je + "-arch", mu = je + "-" + Mi, gu = je + "-form-factors", yu = je + "-" + $, vu = je + "-" + E, Ea = je + "-" + dn, bu = Ea + "-version", Pa = [Us, Hs, $, E, dn, Ws, Ct, Ne, Mi], ei = "Amazon", Ke = "Apple", Dr = "ASUS", Rr = "BlackBerry", Le = "Google", Lr = "Huawei", Bi = "Lenovo", Vr = "Honor", ni = "LG", _i = "Microsoft", Fi = "Motorola", Or = "Nvidia", Ir = "OnePlus", $i = "OPPO", Sn = "Samsung", Nr = "Sharp", En = "Sony", zi = "Xiaomi", Ui = "Zebra", Br = "Chrome", _r = "Chromium", xe = "Chromecast", di = "Edge", Pn = "Firefox", Xe = "Opera", Hi = "Facebook", Fr = "Sogou", Ze = "Mobile ", Je = " Browser", ds = "Windows", wu = typeof window !== dt.UNDEFINED, Rt = wu && window.navigator ? window.navigator : void 0, Be = Rt && Rt.userAgentData ? Rt.userAgentData : void 0, xu = function(t, e) {
703
703
  var n = {}, i = e;
704
704
  if (!wi(e)) {
705
705
  i = {};
@@ -1269,21 +1269,21 @@ var uu = "2.0.9", du = 500, jr = "user-agent", cn = "", Mr = "?", dt = {
1269
1269
  // Honor
1270
1270
  /\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i
1271
1271
  ],
1272
- [E, [C, Lr], [S, Z]],
1272
+ [E, [C, Vr], [S, Z]],
1273
1273
  [
1274
1274
  /honor([-\w ]+)[;\)]/i
1275
1275
  ],
1276
- [E, [C, Lr], [S, $]],
1276
+ [E, [C, Vr], [S, $]],
1277
1277
  [
1278
1278
  // Huawei
1279
1279
  /\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i
1280
1280
  ],
1281
- [E, [C, Vr], [S, Z]],
1281
+ [E, [C, Lr], [S, Z]],
1282
1282
  [
1283
1283
  /(?:huawei) ?([-\w ]+)[;\)]/i,
1284
1284
  /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i
1285
1285
  ],
1286
- [E, [C, Vr], [S, $]],
1286
+ [E, [C, Lr], [S, $]],
1287
1287
  [
1288
1288
  // Xiaomi
1289
1289
  /oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,
@@ -1383,12 +1383,12 @@ var uu = "2.0.9", du = 500, jr = "user-agent", cn = "", Mr = "?", dt = {
1383
1383
  /(pixel (c|tablet))\b/i
1384
1384
  // Google Pixel C/Tablet
1385
1385
  ],
1386
- [E, [C, Ve], [S, Z]],
1386
+ [E, [C, Le], [S, Z]],
1387
1387
  [
1388
1388
  // Google Pixel
1389
1389
  /droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i
1390
1390
  ],
1391
- [E, [C, Ve], [S, $]],
1391
+ [E, [C, Le], [S, $]],
1392
1392
  [
1393
1393
  /(google) (pixelbook( go)?)/i
1394
1394
  ],
@@ -1623,22 +1623,22 @@ var uu = "2.0.9", du = 500, jr = "user-agent", cn = "", Mr = "?", dt = {
1623
1623
  /crkey.*devicetype\/chromecast/i
1624
1624
  // Google Chromecast Third Generation
1625
1625
  ],
1626
- [[E, xe + " Third Generation"], [C, Ve], [S, pt]],
1626
+ [[E, xe + " Third Generation"], [C, Le], [S, pt]],
1627
1627
  [
1628
1628
  /crkey.*devicetype\/([^/]*)/i
1629
1629
  // Google Chromecast with specific device type
1630
1630
  ],
1631
- [[E, /^/, "Chromecast "], [C, Ve], [S, pt]],
1631
+ [[E, /^/, "Chromecast "], [C, Le], [S, pt]],
1632
1632
  [
1633
1633
  /fuchsia.*crkey/i
1634
1634
  // Google Chromecast Nest Hub
1635
1635
  ],
1636
- [[E, xe + " Nest Hub"], [C, Ve], [S, pt]],
1636
+ [[E, xe + " Nest Hub"], [C, Le], [S, pt]],
1637
1637
  [
1638
1638
  /crkey/i
1639
1639
  // Google Chromecast, Linux-based or unknown
1640
1640
  ],
1641
- [[E, xe], [C, Ve], [S, pt]],
1641
+ [[E, xe], [C, Le], [S, pt]],
1642
1642
  [
1643
1643
  /(portaltv)/i
1644
1644
  // Facebook Portal TV
@@ -1763,7 +1763,7 @@ var uu = "2.0.9", du = 500, jr = "user-agent", cn = "", Mr = "?", dt = {
1763
1763
  /droid.+; (glass) \d/i
1764
1764
  // Google Glass
1765
1765
  ],
1766
- [E, [C, Ve], [S, ti]],
1766
+ [E, [C, Le], [S, ti]],
1767
1767
  [
1768
1768
  /(pico) ([\w ]+) os\d/i
1769
1769
  // Pico
@@ -2052,20 +2052,20 @@ var uu = "2.0.9", du = 500, jr = "user-agent", cn = "", Mr = "?", dt = {
2052
2052
  }, ii = function() {
2053
2053
  var t = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
2054
2054
  return fe.call(t.init, [
2055
- [Vt, [P, A, In, S]],
2055
+ [Lt, [P, A, In, S]],
2056
2056
  [he, [Ct]],
2057
2057
  [ce, [S, E, C]],
2058
2058
  [Xt, [P, A]],
2059
2059
  [It, [P, A]]
2060
2060
  ]), fe.call(t.isIgnore, [
2061
- [Vt, [A, In]],
2061
+ [Lt, [A, In]],
2062
2062
  [Xt, [A]],
2063
2063
  [It, [A]]
2064
2064
  ]), fe.call(t.isIgnoreRgx, [
2065
- [Vt, / ?browser$/i],
2065
+ [Lt, / ?browser$/i],
2066
2066
  [It, / ?os$/i]
2067
2067
  ]), fe.call(t.toString, [
2068
- [Vt, [P, A]],
2068
+ [Lt, [P, A]],
2069
2069
  [he, [Ct]],
2070
2070
  [ce, [C, E]],
2071
2071
  [Xt, [P, A]],
@@ -2101,8 +2101,8 @@ var uu = "2.0.9", du = 500, jr = "user-agent", cn = "", Mr = "?", dt = {
2101
2101
  return a || dt.UNDEFINED;
2102
2102
  }), r.prototype.then = function(a) {
2103
2103
  var l = this, c = function() {
2104
- for (var d in l)
2105
- l.hasOwnProperty(d) && (this[d] = l[d]);
2104
+ for (var f in l)
2105
+ l.hasOwnProperty(f) && (this[f] = l[f]);
2106
2106
  };
2107
2107
  c.prototype = {
2108
2108
  is: r.prototype.is,
@@ -2152,7 +2152,7 @@ Ae.prototype.setCH = function(t) {
2152
2152
  Ae.prototype.detectFeature = function() {
2153
2153
  if (Rt && Rt.userAgent == this.ua)
2154
2154
  switch (this.itemType) {
2155
- case Vt:
2155
+ case Lt:
2156
2156
  Rt.brave && typeof Rt.brave.isBrave == dt.FUNCTION && this.set(P, "Brave");
2157
2157
  break;
2158
2158
  case ce:
@@ -2165,13 +2165,13 @@ Ae.prototype.detectFeature = function() {
2165
2165
  var t = this.data, e = function(n) {
2166
2166
  return t[n].getItem().detectFeature().get();
2167
2167
  };
2168
- this.set(Vt, e(Vt)).set(he, e(he)).set(ce, e(ce)).set(Xt, e(Xt)).set(It, e(It));
2168
+ this.set(Lt, e(Lt)).set(he, e(he)).set(ce, e(ce)).set(Xt, e(Xt)).set(It, e(It));
2169
2169
  }
2170
2170
  return this;
2171
2171
  };
2172
2172
  Ae.prototype.parseUA = function() {
2173
2173
  switch (this.itemType != un && ps.call(this.data, this.ua, this.rgxMap), this.itemType) {
2174
- case Vt:
2174
+ case Lt:
2175
2175
  this.set(In, hs(this.get(A)));
2176
2176
  break;
2177
2177
  case It:
@@ -2186,13 +2186,13 @@ Ae.prototype.parseUA = function() {
2186
2186
  Ae.prototype.parseCH = function() {
2187
2187
  var t = this.uaCH, e = this.rgxMap;
2188
2188
  switch (this.itemType) {
2189
- case Vt:
2189
+ case Lt:
2190
2190
  case Xt:
2191
2191
  var n = t[Hs] || t[Us], i;
2192
2192
  if (n)
2193
2193
  for (var s = 0; s < n.length; s++) {
2194
2194
  var o = n[s].brand || n[s], r = n[s].version;
2195
- this.itemType == Vt && !/not.a.brand/i.test(o) && (!i || /Chrom/.test(i) && o != _r || i == di && /WebView2/.test(o)) && (o = Kt(o, Tu), i = this.get(P), i && !/Chrom/.test(i) && /Chrom/.test(o) || this.set(P, o).set(A, r).set(In, hs(r)), i = o), this.itemType == Xt && o == _r && this.set(A, r);
2195
+ this.itemType == Lt && !/not.a.brand/i.test(o) && (!i || /Chrom/.test(i) && o != _r || i == di && /WebView2/.test(o)) && (o = Kt(o, Tu), i = this.get(P), i && !/Chrom/.test(i) && /Chrom/.test(o) || this.set(P, o).set(A, r).set(In, hs(r)), i = o), this.itemType == Xt && o == _r && this.set(A, r);
2196
2196
  }
2197
2197
  break;
2198
2198
  case he:
@@ -2215,18 +2215,18 @@ Ae.prototype.parseCH = function() {
2215
2215
  }
2216
2216
  break;
2217
2217
  case It:
2218
- var d = t[dn];
2219
- if (d) {
2220
- var f = t[Ws];
2221
- d == ds && (f = parseInt(hs(f), 10) >= 13 ? "11" : "10"), this.set(P, d).set(A, f);
2218
+ var f = t[dn];
2219
+ if (f) {
2220
+ var d = t[Ws];
2221
+ f == ds && (d = parseInt(hs(d), 10) >= 13 ? "11" : "10"), this.set(P, f).set(A, d);
2222
2222
  }
2223
2223
  this.get(P) == ds && t[E] == "Xbox" && this.set(P, "Xbox").set(A, void 0);
2224
2224
  break;
2225
2225
  case un:
2226
- var p = this.data, g = function(x) {
2227
- return p[x].getItem().setCH(t).parseCH().get();
2226
+ var p = this.data, g = function(w) {
2227
+ return p[w].getItem().setCH(t).parseCH().get();
2228
2228
  };
2229
- this.set(Vt, g(Vt)).set(he, g(he)).set(ce, g(ce)).set(Xt, g(Xt)).set(It, g(It));
2229
+ this.set(Lt, g(Lt)).set(he, g(he)).set(ce, g(ce)).set(Xt, g(Xt)).set(It, g(It));
2230
2230
  }
2231
2231
  return this;
2232
2232
  };
@@ -2234,8 +2234,8 @@ function pe(t, e, n) {
2234
2234
  if (typeof t === dt.OBJECT ? (wi(t, !0) ? (typeof e === dt.OBJECT && (n = e), e = t) : (n = t, e = void 0), t = void 0) : typeof t === dt.STRING && !wi(e, !0) && (n = e, e = void 0), n)
2235
2235
  if (typeof n.append === dt.FUNCTION) {
2236
2236
  var i = {};
2237
- n.forEach(function(u, d) {
2238
- i[String(d).toLowerCase()] = u;
2237
+ n.forEach(function(u, f) {
2238
+ i[String(f).toLowerCase()] = u;
2239
2239
  }), n = i;
2240
2240
  } else {
2241
2241
  var s = {};
@@ -2256,13 +2256,13 @@ function pe(t, e, n) {
2256
2256
  )
2257
2257
  ), a = new Aa(n, !0), l = e ? xu(Ur, e) : Ur, c = function(u) {
2258
2258
  return u == un ? function() {
2259
- return new Ae(u, r, l, a).set("ua", r).set(Vt, this.getBrowser()).set(he, this.getCPU()).set(ce, this.getDevice()).set(Xt, this.getEngine()).set(It, this.getOS()).get();
2259
+ return new Ae(u, r, l, a).set("ua", r).set(Lt, this.getBrowser()).set(he, this.getCPU()).set(ce, this.getDevice()).set(Xt, this.getEngine()).set(It, this.getOS()).get();
2260
2260
  } : function() {
2261
2261
  return new Ae(u, r, l[u], a).parseUA().get();
2262
2262
  };
2263
2263
  };
2264
2264
  return fe.call(this, [
2265
- ["getBrowser", c(Vt)],
2265
+ ["getBrowser", c(Lt)],
2266
2266
  ["getCPU", c(he)],
2267
2267
  ["getDevice", c(ce)],
2268
2268
  ["getEngine", c(Xt)],
@@ -2382,18 +2382,18 @@ class Ys {
2382
2382
  }
2383
2383
  }
2384
2384
  const Ut = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, $t = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
2385
- function Va(t, e) {
2385
+ function La(t, e) {
2386
2386
  return e ? t * (1e3 / e) : 0;
2387
2387
  }
2388
2388
  const Hr = /* @__PURE__ */ new Set();
2389
2389
  function Ks(t, e, n) {
2390
2390
  t || Hr.has(e) || (console.warn(ms(e, n)), Hr.add(e));
2391
2391
  }
2392
- const La = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Mu = 1e-7, Du = 12;
2392
+ const Va = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Mu = 1e-7, Du = 12;
2393
2393
  function Ru(t, e, n, i, s) {
2394
2394
  let o, r, a = 0;
2395
2395
  do
2396
- r = e + (n - e) / 2, o = La(r, i, s) - t, o > 0 ? n = r : e = r;
2396
+ r = e + (n - e) / 2, o = Va(r, i, s) - t, o > 0 ? n = r : e = r;
2397
2397
  while (Math.abs(o) > Mu && ++a < Du);
2398
2398
  return r;
2399
2399
  }
@@ -2401,13 +2401,13 @@ function Wn(t, e, n, i) {
2401
2401
  if (t === e && n === i)
2402
2402
  return zt;
2403
2403
  const s = (o) => Ru(o, 0, 1, t, n);
2404
- return (o) => o === 0 || o === 1 ? o : La(s(o), e, i);
2404
+ return (o) => o === 0 || o === 1 ? o : Va(s(o), e, i);
2405
2405
  }
2406
- const Oa = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ia = (t) => (e) => 1 - t(1 - e), Na = /* @__PURE__ */ Wn(0.33, 1.53, 0.69, 0.99), Xs = /* @__PURE__ */ Ia(Na), Ba = /* @__PURE__ */ Oa(Xs), _a = (t) => (t *= 2) < 1 ? 0.5 * Xs(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Zs = (t) => 1 - Math.sin(Math.acos(t)), Fa = Ia(Zs), $a = Oa(Zs), Vu = /* @__PURE__ */ Wn(0.42, 0, 1, 1), Lu = /* @__PURE__ */ Wn(0, 0, 0.58, 1), za = /* @__PURE__ */ Wn(0.42, 0, 0.58, 1), Ou = (t) => Array.isArray(t) && typeof t[0] != "number", Ua = (t) => Array.isArray(t) && typeof t[0] == "number", Wr = {
2406
+ const Oa = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ia = (t) => (e) => 1 - t(1 - e), Na = /* @__PURE__ */ Wn(0.33, 1.53, 0.69, 0.99), Xs = /* @__PURE__ */ Ia(Na), Ba = /* @__PURE__ */ Oa(Xs), _a = (t) => (t *= 2) < 1 ? 0.5 * Xs(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Zs = (t) => 1 - Math.sin(Math.acos(t)), Fa = Ia(Zs), $a = Oa(Zs), Lu = /* @__PURE__ */ Wn(0.42, 0, 1, 1), Vu = /* @__PURE__ */ Wn(0, 0, 0.58, 1), za = /* @__PURE__ */ Wn(0.42, 0, 0.58, 1), Ou = (t) => Array.isArray(t) && typeof t[0] != "number", Ua = (t) => Array.isArray(t) && typeof t[0] == "number", Wr = {
2407
2407
  linear: zt,
2408
- easeIn: Vu,
2408
+ easeIn: Lu,
2409
2409
  easeInOut: za,
2410
- easeOut: Lu,
2410
+ easeOut: Vu,
2411
2411
  circIn: Zs,
2412
2412
  circInOut: $a,
2413
2413
  circOut: Fa,
@@ -2456,9 +2456,9 @@ function Nu(t, e) {
2456
2456
  /**
2457
2457
  * Schedule a process to run on the next frame.
2458
2458
  */
2459
- schedule: (u, d = !1, f = !1) => {
2460
- const g = f && s ? n : i;
2461
- return d && r.add(u), g.has(u) || g.add(u), u;
2459
+ schedule: (u, f = !1, d = !1) => {
2460
+ const g = d && s ? n : i;
2461
+ return f && r.add(u), g.has(u) || g.add(u), u;
2462
2462
  },
2463
2463
  /**
2464
2464
  * Cancel the provided callback from running on the next frame.
@@ -2486,15 +2486,15 @@ function Ha(t, e) {
2486
2486
  delta: 0,
2487
2487
  timestamp: 0,
2488
2488
  isProcessing: !1
2489
- }, o = () => n = !0, r = ri.reduce((T, k) => (T[k] = Nu(o), T), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: d, preRender: f, render: p, postRender: g } = r, x = () => {
2489
+ }, o = () => n = !0, r = ri.reduce((T, k) => (T[k] = Nu(o), T), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: f, preRender: d, render: p, postRender: g } = r, w = () => {
2490
2490
  const T = ge.useManualTiming ? s.timestamp : performance.now();
2491
- n = !1, ge.useManualTiming || (s.delta = i ? 1e3 / 60 : Math.max(Math.min(T - s.timestamp, Bu), 1)), s.timestamp = T, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), d.process(s), f.process(s), p.process(s), g.process(s), s.isProcessing = !1, n && e && (i = !1, t(x));
2492
- }, b = () => {
2493
- n = !0, i = !0, s.isProcessing || t(x);
2491
+ n = !1, ge.useManualTiming || (s.delta = i ? 1e3 / 60 : Math.max(Math.min(T - s.timestamp, Bu), 1)), s.timestamp = T, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), p.process(s), g.process(s), s.isProcessing = !1, n && e && (i = !1, t(w));
2492
+ }, y = () => {
2493
+ n = !0, i = !0, s.isProcessing || t(w);
2494
2494
  };
2495
2495
  return { schedule: ri.reduce((T, k) => {
2496
- const w = r[k];
2497
- return T[k] = (j, D = !1, M = !1) => (n || b(), w.schedule(j, D, M)), T;
2496
+ const x = r[k];
2497
+ return T[k] = (j, D = !1, M = !1) => (n || y(), x.schedule(j, D, M)), T;
2498
2498
  }, {}), cancel: (T) => {
2499
2499
  for (let k = 0; k < ri.length; k++)
2500
2500
  r[ri[k]].cancel(T);
@@ -2524,7 +2524,7 @@ const gn = {
2524
2524
  }, oi = {
2525
2525
  ...gn,
2526
2526
  default: 1
2527
- }, Vn = (t) => Math.round(t * 1e5) / 1e5, Qs = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
2527
+ }, Ln = (t) => Math.round(t * 1e5) / 1e5, Qs = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
2528
2528
  function zu(t) {
2529
2529
  return t == null;
2530
2530
  }
@@ -2544,7 +2544,7 @@ const Uu = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
2544
2544
  }, Fe = {
2545
2545
  test: /* @__PURE__ */ tr("rgb", "red"),
2546
2546
  parse: /* @__PURE__ */ qa("red", "green", "blue"),
2547
- transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + qi.transform(t) + ", " + qi.transform(e) + ", " + qi.transform(n) + ", " + Vn(Bn.transform(i)) + ")"
2547
+ transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + qi.transform(t) + ", " + qi.transform(e) + ", " + qi.transform(n) + ", " + Ln(Bn.transform(i)) + ")"
2548
2548
  };
2549
2549
  function Wu(t) {
2550
2550
  let e = "", n = "", i = "", s = "";
@@ -2563,14 +2563,14 @@ const gs = {
2563
2563
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
2564
2564
  parse: parseFloat,
2565
2565
  transform: (e) => `${e}${t}`
2566
- }), Te = /* @__PURE__ */ Gn("deg"), ue = /* @__PURE__ */ Gn("%"), I = /* @__PURE__ */ Gn("px"), Gu = /* @__PURE__ */ Gn("vh"), qu = /* @__PURE__ */ Gn("vw"), Yr = {
2566
+ }), Te = /* @__PURE__ */ Gn("deg"), ue = /* @__PURE__ */ Gn("%"), N = /* @__PURE__ */ Gn("px"), Gu = /* @__PURE__ */ Gn("vh"), qu = /* @__PURE__ */ Gn("vw"), Yr = {
2567
2567
  ...ue,
2568
2568
  parse: (t) => ue.parse(t) / 100,
2569
2569
  transform: (t) => ue.transform(t * 100)
2570
2570
  }, en = {
2571
2571
  test: /* @__PURE__ */ tr("hsl", "hue"),
2572
2572
  parse: /* @__PURE__ */ qa("hue", "saturation", "lightness"),
2573
- transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + ue.transform(Vn(e)) + ", " + ue.transform(Vn(n)) + ", " + Vn(Bn.transform(i)) + ")"
2573
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + ue.transform(Ln(e)) + ", " + ue.transform(Ln(n)) + ", " + Ln(Bn.transform(i)) + ")"
2574
2574
  }, mt = {
2575
2575
  test: (t) => Fe.test(t) || gs.test(t) || en.test(t),
2576
2576
  parse: (t) => Fe.test(t) ? Fe.parse(t) : en.test(t) ? en.parse(t) : gs.parse(t),
@@ -2605,7 +2605,7 @@ function Za(t) {
2605
2605
  for (let r = 0; r < i; r++)
2606
2606
  if (o += e[r], s[r] !== void 0) {
2607
2607
  const a = n[r];
2608
- a === Ya ? o += Vn(s[r]) : a === Ka ? o += mt.transform(s[r]) : o += s[r];
2608
+ a === Ya ? o += Ln(s[r]) : a === Ka ? o += mt.transform(s[r]) : o += s[r];
2609
2609
  }
2610
2610
  return o;
2611
2611
  };
@@ -2740,7 +2740,7 @@ function ud(t, e = 100, n) {
2740
2740
  const dd = 5;
2741
2741
  function el(t, e, n) {
2742
2742
  const i = Math.max(e - dd, 0);
2743
- return Va(n - t(i), e - i);
2743
+ return La(n - t(i), e - i);
2744
2744
  }
2745
2745
  const it = {
2746
2746
  // Default spring physics
@@ -2776,17 +2776,17 @@ function fd({ duration: t = it.duration, bounce: e = it.bounce, velocity: n = it
2776
2776
  mn(t <= /* @__PURE__ */ Ut(it.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
2777
2777
  let r = 1 - e;
2778
2778
  r = de(it.minDamping, it.maxDamping, r), t = de(it.minDuration, it.maxDuration, /* @__PURE__ */ $t(t)), r < 1 ? (s = (c) => {
2779
- const u = c * r, d = u * t, f = u - n, p = vs(c, r), g = Math.exp(-d);
2780
- return Jr - f / p * g;
2779
+ const u = c * r, f = u * t, d = u - n, p = vs(c, r), g = Math.exp(-f);
2780
+ return Jr - d / p * g;
2781
2781
  }, o = (c) => {
2782
- const d = c * r * t, f = d * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, g = Math.exp(-d), x = vs(Math.pow(c, 2), r);
2783
- return (-s(c) + Jr > 0 ? -1 : 1) * ((f - p) * g) / x;
2782
+ const f = c * r * t, d = f * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, g = Math.exp(-f), w = vs(Math.pow(c, 2), r);
2783
+ return (-s(c) + Jr > 0 ? -1 : 1) * ((d - p) * g) / w;
2784
2784
  }) : (s = (c) => {
2785
- const u = Math.exp(-c * t), d = (c - n) * t + 1;
2786
- return -1e-3 + u * d;
2785
+ const u = Math.exp(-c * t), f = (c - n) * t + 1;
2786
+ return -1e-3 + u * f;
2787
2787
  }, o = (c) => {
2788
- const u = Math.exp(-c * t), d = (n - c) * (t * t);
2789
- return u * d;
2788
+ const u = Math.exp(-c * t), f = (n - c) * (t * t);
2789
+ return u * f;
2790
2790
  });
2791
2791
  const a = 5 / t, l = pd(s, o, a);
2792
2792
  if (t = /* @__PURE__ */ Ut(t), isNaN(l))
@@ -2853,44 +2853,44 @@ function Pi(t = it.visualDuration, e = it.bounce) {
2853
2853
  bounce: e
2854
2854
  } : t;
2855
2855
  let { restSpeed: i, restDelta: s } = n;
2856
- const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = yd({
2856
+ const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: f, velocity: d, isResolvedFromDuration: p } = yd({
2857
2857
  ...n,
2858
2858
  velocity: -/* @__PURE__ */ $t(n.velocity || 0)
2859
- }), g = f || 0, x = c / (2 * Math.sqrt(l * u)), b = r - o, y = /* @__PURE__ */ $t(Math.sqrt(l / u)), v = Math.abs(b) < 5;
2860
- i || (i = v ? it.restSpeed.granular : it.restSpeed.default), s || (s = v ? it.restDelta.granular : it.restDelta.default);
2859
+ }), g = d || 0, w = c / (2 * Math.sqrt(l * u)), y = r - o, v = /* @__PURE__ */ $t(Math.sqrt(l / u)), b = Math.abs(y) < 5;
2860
+ i || (i = b ? it.restSpeed.granular : it.restSpeed.default), s || (s = b ? it.restDelta.granular : it.restDelta.default);
2861
2861
  let T;
2862
- if (x < 1) {
2863
- const w = vs(y, x);
2862
+ if (w < 1) {
2863
+ const x = vs(v, w);
2864
2864
  T = (j) => {
2865
- const D = Math.exp(-x * y * j);
2866
- return r - D * ((g + x * y * b) / w * Math.sin(w * j) + b * Math.cos(w * j));
2865
+ const D = Math.exp(-w * v * j);
2866
+ return r - D * ((g + w * v * y) / x * Math.sin(x * j) + y * Math.cos(x * j));
2867
2867
  };
2868
- } else if (x === 1)
2869
- T = (w) => r - Math.exp(-y * w) * (b + (g + y * b) * w);
2868
+ } else if (w === 1)
2869
+ T = (x) => r - Math.exp(-v * x) * (y + (g + v * y) * x);
2870
2870
  else {
2871
- const w = y * Math.sqrt(x * x - 1);
2871
+ const x = v * Math.sqrt(w * w - 1);
2872
2872
  T = (j) => {
2873
- const D = Math.exp(-x * y * j), M = Math.min(w * j, 300);
2874
- return r - D * ((g + x * y * b) * Math.sinh(M) + w * b * Math.cosh(M)) / w;
2873
+ const D = Math.exp(-w * v * j), M = Math.min(x * j, 300);
2874
+ return r - D * ((g + w * v * y) * Math.sinh(M) + x * y * Math.cosh(M)) / x;
2875
2875
  };
2876
2876
  }
2877
2877
  const k = {
2878
- calculatedDuration: p && d || null,
2879
- next: (w) => {
2880
- const j = T(w);
2878
+ calculatedDuration: p && f || null,
2879
+ next: (x) => {
2880
+ const j = T(x);
2881
2881
  if (p)
2882
- a.done = w >= d;
2882
+ a.done = x >= f;
2883
2883
  else {
2884
- let D = w === 0 ? g : 0;
2885
- x < 1 && (D = w === 0 ? /* @__PURE__ */ Ut(g) : el(T, w, j));
2884
+ let D = x === 0 ? g : 0;
2885
+ w < 1 && (D = x === 0 ? /* @__PURE__ */ Ut(g) : el(T, x, j));
2886
2886
  const M = Math.abs(D) <= i, O = Math.abs(r - j) <= s;
2887
2887
  a.done = M && O;
2888
2888
  }
2889
2889
  return a.value = a.done ? r : j, a;
2890
2890
  },
2891
2891
  toString: () => {
2892
- const w = Math.min(nr(k), Ei), j = tl((D) => k.next(w * D).value, w, 30);
2893
- return w + "ms " + j;
2892
+ const x = Math.min(nr(k), Ei), j = tl((D) => k.next(x * D).value, x, 30);
2893
+ return x + "ms " + j;
2894
2894
  },
2895
2895
  toTransition: () => {
2896
2896
  }
@@ -2902,22 +2902,22 @@ Pi.applyToOptions = (t) => {
2902
2902
  return t.ease = e.ease, t.duration = /* @__PURE__ */ Ut(e.duration), t.type = "keyframes", t;
2903
2903
  };
2904
2904
  function bs({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
2905
- const d = t[0], f = {
2905
+ const f = t[0], d = {
2906
2906
  done: !1,
2907
- value: d
2907
+ value: f
2908
2908
  }, p = (M) => a !== void 0 && M < a || l !== void 0 && M > l, g = (M) => a === void 0 ? l : l === void 0 || Math.abs(a - M) < Math.abs(l - M) ? a : l;
2909
- let x = n * e;
2910
- const b = d + x, y = r === void 0 ? b : r(b);
2911
- y !== b && (x = y - d);
2912
- const v = (M) => -x * Math.exp(-M / i), T = (M) => y + v(M), k = (M) => {
2913
- const O = v(M), B = T(M);
2914
- f.done = Math.abs(O) <= c, f.value = f.done ? y : B;
2909
+ let w = n * e;
2910
+ const y = f + w, v = r === void 0 ? y : r(y);
2911
+ v !== y && (w = v - f);
2912
+ const b = (M) => -w * Math.exp(-M / i), T = (M) => v + b(M), k = (M) => {
2913
+ const O = b(M), B = T(M);
2914
+ d.done = Math.abs(O) <= c, d.value = d.done ? v : B;
2915
2915
  };
2916
- let w, j;
2916
+ let x, j;
2917
2917
  const D = (M) => {
2918
- p(f.value) && (w = M, j = Pi({
2919
- keyframes: [f.value, g(f.value)],
2920
- velocity: el(T, M, f.value),
2918
+ p(d.value) && (x = M, j = Pi({
2919
+ keyframes: [d.value, g(d.value)],
2920
+ velocity: el(T, M, d.value),
2921
2921
  // TODO: This should be passing * 1000
2922
2922
  damping: s,
2923
2923
  stiffness: o,
@@ -2929,7 +2929,7 @@ function bs({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2929
2929
  calculatedDuration: null,
2930
2930
  next: (M) => {
2931
2931
  let O = !1;
2932
- return !j && w === void 0 && (O = !0, k(M), D(M)), w !== void 0 && M >= w ? j.next(M - w) : (!O && k(M), f);
2932
+ return !j && x === void 0 && (O = !0, k(M), D(M)), x !== void 0 && M >= x ? j.next(M - x) : (!O && k(M), d);
2933
2933
  }
2934
2934
  };
2935
2935
  }
@@ -2956,12 +2956,12 @@ function bd(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2956
2956
  const a = vd(e, i, s), l = a.length, c = (u) => {
2957
2957
  if (r && u < t[0])
2958
2958
  return e[0];
2959
- let d = 0;
2959
+ let f = 0;
2960
2960
  if (l > 1)
2961
- for (; d < t.length - 2 && !(u < t[d + 1]); d++)
2961
+ for (; f < t.length - 2 && !(u < t[f + 1]); f++)
2962
2962
  ;
2963
- const f = /* @__PURE__ */ Nn(t[d], t[d + 1], u);
2964
- return a[d](f);
2963
+ const d = /* @__PURE__ */ Nn(t[f], t[f + 1], u);
2964
+ return a[f](d);
2965
2965
  };
2966
2966
  return n ? (u) => c(de(t[0], t[o - 1], u)) : c;
2967
2967
  }
@@ -3071,22 +3071,22 @@ class rr extends sr {
3071
3071
  const { generator: i, totalDuration: s, mixKeyframes: o, mirroredGenerator: r, resolvedDuration: a, calculatedDuration: l } = this;
3072
3072
  if (this.startTime === null)
3073
3073
  return i.next(0);
3074
- const { delay: c = 0, keyframes: u, repeat: d, repeatType: f, repeatDelay: p, type: g, onUpdate: x, finalKeyframe: b } = this.options;
3074
+ const { delay: c = 0, keyframes: u, repeat: f, repeatType: d, repeatDelay: p, type: g, onUpdate: w, finalKeyframe: y } = this.options;
3075
3075
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - s / this.speed, this.startTime)), n ? this.currentTime = e : this.updateTime(e);
3076
- const y = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), v = this.playbackSpeed >= 0 ? y < 0 : y > s;
3077
- this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
3076
+ const v = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), b = this.playbackSpeed >= 0 ? v < 0 : v > s;
3077
+ this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
3078
3078
  let T = this.currentTime, k = i;
3079
- if (d) {
3079
+ if (f) {
3080
3080
  const M = Math.min(this.currentTime, s) / a;
3081
3081
  let O = Math.floor(M), B = M % 1;
3082
- !B && M >= 1 && (B = 1), B === 1 && O--, O = Math.min(O, d + 1), !!(O % 2) && (f === "reverse" ? (B = 1 - B, p && (B -= p / a)) : f === "mirror" && (k = r)), T = de(0, 1, B) * a;
3082
+ !B && M >= 1 && (B = 1), B === 1 && O--, O = Math.min(O, f + 1), !!(O % 2) && (d === "reverse" ? (B = 1 - B, p && (B -= p / a)) : d === "mirror" && (k = r)), T = de(0, 1, B) * a;
3083
3083
  }
3084
- const w = v ? { done: !1, value: u[0] } : k.next(T);
3085
- o && (w.value = o(w.value));
3086
- let { done: j } = w;
3087
- !v && l !== null && (j = this.playbackSpeed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
3084
+ const x = b ? { done: !1, value: u[0] } : k.next(T);
3085
+ o && (x.value = o(x.value));
3086
+ let { done: j } = x;
3087
+ !b && l !== null && (j = this.playbackSpeed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
3088
3088
  const D = this.holdTime === null && (this.state === "finished" || this.state === "running" && j);
3089
- return D && g !== bs && (w.value = ir(u, this.options, b, this.speed)), x && x(w.value), D && this.finish(), w;
3089
+ return D && g !== bs && (x.value = ir(u, this.options, y, this.speed)), w && w(x.value), D && this.finish(), x;
3090
3090
  }
3091
3091
  /**
3092
3092
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -3237,10 +3237,10 @@ const yn = [
3237
3237
  "skew",
3238
3238
  "skewX",
3239
3239
  "skewY"
3240
- ], vn = new Set(yn), io = (t) => t === gn || t === I, Rd = /* @__PURE__ */ new Set(["x", "y", "z"]), Vd = yn.filter((t) => !Rd.has(t));
3241
- function Ld(t) {
3240
+ ], vn = new Set(yn), io = (t) => t === gn || t === N, Rd = /* @__PURE__ */ new Set(["x", "y", "z"]), Ld = yn.filter((t) => !Rd.has(t));
3241
+ function Vd(t) {
3242
3242
  const e = [];
3243
- return Vd.forEach((n) => {
3243
+ return Ld.forEach((n) => {
3244
3244
  const i = t.getValue(n);
3245
3245
  i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
3246
3246
  }), e;
@@ -3265,7 +3265,7 @@ function il() {
3265
3265
  if (Ps) {
3266
3266
  const t = Array.from(ze).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
3267
3267
  e.forEach((i) => {
3268
- const s = Ld(i);
3268
+ const s = Vd(i);
3269
3269
  s.length && (n.set(i, s), i.render());
3270
3270
  }), t.forEach((i) => i.measureInitialState()), e.forEach((i) => {
3271
3271
  i.render();
@@ -3363,17 +3363,17 @@ function Fd(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatTyp
3363
3363
  [e]: n
3364
3364
  };
3365
3365
  l && (u.offset = l);
3366
- const d = al(a, s);
3367
- Array.isArray(d) && (u.easing = d);
3368
- const f = {
3366
+ const f = al(a, s);
3367
+ Array.isArray(f) && (u.easing = f);
3368
+ const d = {
3369
3369
  delay: i,
3370
3370
  duration: s,
3371
- easing: Array.isArray(d) ? "linear" : d,
3371
+ easing: Array.isArray(f) ? "linear" : f,
3372
3372
  fill: "both",
3373
3373
  iterations: o + 1,
3374
3374
  direction: r === "reverse" ? "alternate" : "normal"
3375
3375
  };
3376
- return c && (f.pseudoElement = c), t.animate(u, f);
3376
+ return c && (d.pseudoElement = c), t.animate(u, d);
3377
3377
  }
3378
3378
  function ll(t) {
3379
3379
  return typeof t == "function" && "applyToOptions" in t;
@@ -3562,13 +3562,13 @@ function Kd(t) {
3562
3562
  }
3563
3563
  const Xd = 40;
3564
3564
  class Zd extends sr {
3565
- constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: a, name: l, motionValue: c, element: u, ...d }) {
3565
+ constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: a, name: l, motionValue: c, element: u, ...f }) {
3566
3566
  var g;
3567
3567
  super(), this.stop = () => {
3568
- var x, b;
3569
- this._animation && (this._animation.stop(), (x = this.stopTimeline) == null || x.call(this)), (b = this.keyframeResolver) == null || b.cancel();
3568
+ var w, y;
3569
+ this._animation && (this._animation.stop(), (w = this.stopTimeline) == null || w.call(this)), (y = this.keyframeResolver) == null || y.cancel();
3570
3570
  }, this.createdAt = kt.now();
3571
- const f = {
3571
+ const d = {
3572
3572
  autoplay: e,
3573
3573
  delay: n,
3574
3574
  type: i,
@@ -3578,27 +3578,27 @@ class Zd extends sr {
3578
3578
  name: l,
3579
3579
  motionValue: c,
3580
3580
  element: u,
3581
- ...d
3581
+ ...f
3582
3582
  }, p = (u == null ? void 0 : u.KeyframeResolver) || or;
3583
- this.keyframeResolver = new p(a, (x, b, y) => this.onKeyframesResolved(x, b, f, !y), l, c, u), (g = this.keyframeResolver) == null || g.scheduleResolve();
3583
+ this.keyframeResolver = new p(a, (w, y, v) => this.onKeyframesResolved(w, y, d, !v), l, c, u), (g = this.keyframeResolver) == null || g.scheduleResolve();
3584
3584
  }
3585
3585
  onKeyframesResolved(e, n, i, s) {
3586
- var b, y;
3586
+ var y, v;
3587
3587
  this.keyframeResolver = void 0;
3588
3588
  const { name: o, type: r, velocity: a, delay: l, isHandoff: c, onUpdate: u } = i;
3589
3589
  this.resolvedAt = kt.now(), Gd(e, o, r, a) || ((ge.instantAnimations || !l) && (u == null || u(ir(e, i, n))), e[0] = e[e.length - 1], Cs(i), i.repeat = 0);
3590
- const f = {
3590
+ const d = {
3591
3591
  startTime: s ? this.resolvedAt ? this.resolvedAt - this.createdAt > Xd ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
3592
3592
  finalKeyframe: n,
3593
3593
  ...i,
3594
3594
  keyframes: e
3595
- }, p = !c && Kd(f), g = (y = (b = f.motionValue) == null ? void 0 : b.owner) == null ? void 0 : y.current, x = p ? new Hd({
3596
- ...f,
3595
+ }, p = !c && Kd(d), g = (v = (y = d.motionValue) == null ? void 0 : y.owner) == null ? void 0 : v.current, w = p ? new Hd({
3596
+ ...d,
3597
3597
  element: g
3598
- }) : new rr(f);
3599
- x.finished.then(() => {
3598
+ }) : new rr(d);
3599
+ w.finished.then(() => {
3600
3600
  this.notifyFinished();
3601
- }).catch(zt), this.pendingTimeline && (this.stopTimeline = x.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = x;
3601
+ }).catch(zt), this.pendingTimeline && (this.stopTimeline = w.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = w;
3602
3602
  }
3603
3603
  get finished() {
3604
3604
  return this._animation ? this.animation.finished : this._finished;
@@ -3726,8 +3726,8 @@ const lr = (t, e, n, i = {}, s, o) => (r) => {
3726
3726
  velocity: e.getVelocity(),
3727
3727
  ...a,
3728
3728
  delay: -c,
3729
- onUpdate: (f) => {
3730
- e.set(f), a.onUpdate && a.onUpdate(f);
3729
+ onUpdate: (d) => {
3730
+ e.set(d), a.onUpdate && a.onUpdate(d);
3731
3731
  },
3732
3732
  onComplete: () => {
3733
3733
  r(), a.onComplete && a.onComplete();
@@ -3737,12 +3737,12 @@ const lr = (t, e, n, i = {}, s, o) => (r) => {
3737
3737
  element: o ? void 0 : s
3738
3738
  };
3739
3739
  cf(a) || Object.assign(u, of(t, u)), u.duration && (u.duration = /* @__PURE__ */ Ut(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ Ut(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
3740
- let d = !1;
3741
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Cs(u), u.delay === 0 && (d = !0)), (ge.instantAnimations || ge.skipAnimations || s != null && s.shouldSkipAnimations) && (d = !0, Cs(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, d && !o && e.get() !== void 0) {
3742
- const f = lf(u.keyframes, a);
3743
- if (f !== void 0) {
3740
+ let f = !1;
3741
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Cs(u), u.delay === 0 && (f = !0)), (ge.instantAnimations || ge.skipAnimations || s != null && s.shouldSkipAnimations) && (f = !0, Cs(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, f && !o && e.get() !== void 0) {
3742
+ const d = lf(u.keyframes, a);
3743
+ if (d !== void 0) {
3744
3744
  Q.update(() => {
3745
- u.onUpdate(f), u.onComplete();
3745
+ u.onUpdate(d), u.onComplete();
3746
3746
  });
3747
3747
  return;
3748
3748
  }
@@ -3929,7 +3929,7 @@ class df {
3929
3929
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ao)
3930
3930
  return 0;
3931
3931
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, ao);
3932
- return Va(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3932
+ return La(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3933
3933
  }
3934
3934
  /**
3935
3935
  * Registers a new animation to control this `MotionValue`. Only one
@@ -4030,36 +4030,36 @@ function yl(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
4030
4030
  o = o ? hl(o, l) : l;
4031
4031
  const c = o == null ? void 0 : o.reduceMotion;
4032
4032
  i && (o = i);
4033
- const u = [], d = s && t.animationState && t.animationState.getState()[s];
4034
- for (const f in a) {
4035
- const p = t.getValue(f, t.latestValues[f] ?? null), g = a[f];
4036
- if (g === void 0 || d && yf(d, f))
4033
+ const u = [], f = s && t.animationState && t.animationState.getState()[s];
4034
+ for (const d in a) {
4035
+ const p = t.getValue(d, t.latestValues[d] ?? null), g = a[d];
4036
+ if (g === void 0 || f && yf(f, d))
4037
4037
  continue;
4038
- const x = {
4038
+ const w = {
4039
4039
  delay: n,
4040
- ...ar(o || {}, f)
4041
- }, b = p.get();
4042
- if (b !== void 0 && !p.isAnimating && !Array.isArray(g) && g === b && !x.velocity)
4040
+ ...ar(o || {}, d)
4041
+ }, y = p.get();
4042
+ if (y !== void 0 && !p.isAnimating && !Array.isArray(g) && g === y && !w.velocity)
4043
4043
  continue;
4044
- let y = !1;
4044
+ let v = !1;
4045
4045
  if (window.MotionHandoffAnimation) {
4046
4046
  const k = gl(t);
4047
4047
  if (k) {
4048
- const w = window.MotionHandoffAnimation(k, f, Q);
4049
- w !== null && (x.startTime = w, y = !0);
4048
+ const x = window.MotionHandoffAnimation(k, d, Q);
4049
+ x !== null && (w.startTime = x, v = !0);
4050
4050
  }
4051
4051
  }
4052
- js(t, f);
4053
- const v = c ?? t.shouldReduceMotion;
4054
- p.start(lr(f, p, g, v && pl.has(f) ? { type: !1 } : x, t, y));
4052
+ js(t, d);
4053
+ const b = c ?? t.shouldReduceMotion;
4054
+ p.start(lr(d, p, g, b && pl.has(d) ? { type: !1 } : w, t, v));
4055
4055
  const T = p.animation;
4056
4056
  T && u.push(T);
4057
4057
  }
4058
4058
  if (r) {
4059
- const f = () => Q.update(() => {
4059
+ const d = () => Q.update(() => {
4060
4060
  r && pf(t, r);
4061
4061
  });
4062
- u.length ? Promise.all(u).then(f) : f();
4062
+ u.length ? Promise.all(u).then(d) : d();
4063
4063
  }
4064
4064
  return u;
4065
4065
  }
@@ -4069,8 +4069,8 @@ function Ms(t, e, n = {}) {
4069
4069
  let { transition: s = t.getDefaultTransition() || {} } = i || {};
4070
4070
  n.transitionOverride && (s = n.transitionOverride);
4071
4071
  const o = i ? () => Promise.all(yl(t, i, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (c = 0) => {
4072
- const { delayChildren: u = 0, staggerChildren: d, staggerDirection: f } = s;
4073
- return vf(t, e, c, u, d, f, n);
4072
+ const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = s;
4073
+ return vf(t, e, c, u, f, d, n);
4074
4074
  } : () => Promise.resolve(), { when: a } = s;
4075
4075
  if (a) {
4076
4076
  const [c, u] = a === "beforeChildren" ? [o, r] : [r, o];
@@ -4106,7 +4106,7 @@ function bf(t, e, n = {}) {
4106
4106
  const wf = {
4107
4107
  test: (t) => t === "auto",
4108
4108
  parse: (t) => t
4109
- }, vl = (t) => (e) => e.test(t), bl = [gn, I, ue, Te, qu, Gu, wf], lo = (t) => bl.find(vl(t));
4109
+ }, vl = (t) => (e) => e.test(t), bl = [gn, N, ue, Te, qu, Gu, wf], lo = (t) => bl.find(vl(t));
4110
4110
  function xf(t) {
4111
4111
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Da(t) : !0;
4112
4112
  }
@@ -4149,75 +4149,75 @@ const Ef = /\b([a-z-]*)\(.*?\)/gu, Ds = {
4149
4149
  skew: Te,
4150
4150
  skewX: Te,
4151
4151
  skewY: Te,
4152
- distance: I,
4153
- translateX: I,
4154
- translateY: I,
4155
- translateZ: I,
4156
- x: I,
4157
- y: I,
4158
- z: I,
4159
- perspective: I,
4160
- transformPerspective: I,
4152
+ distance: N,
4153
+ translateX: N,
4154
+ translateY: N,
4155
+ translateZ: N,
4156
+ x: N,
4157
+ y: N,
4158
+ z: N,
4159
+ perspective: N,
4160
+ transformPerspective: N,
4161
4161
  opacity: Bn,
4162
4162
  originX: Yr,
4163
4163
  originY: Yr,
4164
- originZ: I
4164
+ originZ: N
4165
4165
  }, dr = {
4166
4166
  // Border props
4167
- borderWidth: I,
4168
- borderTopWidth: I,
4169
- borderRightWidth: I,
4170
- borderBottomWidth: I,
4171
- borderLeftWidth: I,
4172
- borderRadius: I,
4173
- borderTopLeftRadius: I,
4174
- borderTopRightRadius: I,
4175
- borderBottomRightRadius: I,
4176
- borderBottomLeftRadius: I,
4167
+ borderWidth: N,
4168
+ borderTopWidth: N,
4169
+ borderRightWidth: N,
4170
+ borderBottomWidth: N,
4171
+ borderLeftWidth: N,
4172
+ borderRadius: N,
4173
+ borderTopLeftRadius: N,
4174
+ borderTopRightRadius: N,
4175
+ borderBottomRightRadius: N,
4176
+ borderBottomLeftRadius: N,
4177
4177
  // Positioning props
4178
- width: I,
4179
- maxWidth: I,
4180
- height: I,
4181
- maxHeight: I,
4182
- top: I,
4183
- right: I,
4184
- bottom: I,
4185
- left: I,
4186
- inset: I,
4187
- insetBlock: I,
4188
- insetBlockStart: I,
4189
- insetBlockEnd: I,
4190
- insetInline: I,
4191
- insetInlineStart: I,
4192
- insetInlineEnd: I,
4178
+ width: N,
4179
+ maxWidth: N,
4180
+ height: N,
4181
+ maxHeight: N,
4182
+ top: N,
4183
+ right: N,
4184
+ bottom: N,
4185
+ left: N,
4186
+ inset: N,
4187
+ insetBlock: N,
4188
+ insetBlockStart: N,
4189
+ insetBlockEnd: N,
4190
+ insetInline: N,
4191
+ insetInlineStart: N,
4192
+ insetInlineEnd: N,
4193
4193
  // Spacing props
4194
- padding: I,
4195
- paddingTop: I,
4196
- paddingRight: I,
4197
- paddingBottom: I,
4198
- paddingLeft: I,
4199
- paddingBlock: I,
4200
- paddingBlockStart: I,
4201
- paddingBlockEnd: I,
4202
- paddingInline: I,
4203
- paddingInlineStart: I,
4204
- paddingInlineEnd: I,
4205
- margin: I,
4206
- marginTop: I,
4207
- marginRight: I,
4208
- marginBottom: I,
4209
- marginLeft: I,
4210
- marginBlock: I,
4211
- marginBlockStart: I,
4212
- marginBlockEnd: I,
4213
- marginInline: I,
4214
- marginInlineStart: I,
4215
- marginInlineEnd: I,
4194
+ padding: N,
4195
+ paddingTop: N,
4196
+ paddingRight: N,
4197
+ paddingBottom: N,
4198
+ paddingLeft: N,
4199
+ paddingBlock: N,
4200
+ paddingBlockStart: N,
4201
+ paddingBlockEnd: N,
4202
+ paddingInline: N,
4203
+ paddingInlineStart: N,
4204
+ paddingInlineEnd: N,
4205
+ margin: N,
4206
+ marginTop: N,
4207
+ marginRight: N,
4208
+ marginBottom: N,
4209
+ marginLeft: N,
4210
+ marginBlock: N,
4211
+ marginBlockStart: N,
4212
+ marginBlockEnd: N,
4213
+ marginInline: N,
4214
+ marginInlineStart: N,
4215
+ marginInlineEnd: N,
4216
4216
  // Typography
4217
- fontSize: I,
4217
+ fontSize: N,
4218
4218
  // Misc
4219
- backgroundPositionX: I,
4220
- backgroundPositionY: I,
4219
+ backgroundPositionX: N,
4220
+ backgroundPositionY: N,
4221
4221
  ...Pf,
4222
4222
  zIndex: co,
4223
4223
  // SVG
@@ -4268,10 +4268,10 @@ class Mf extends or {
4268
4268
  return;
4269
4269
  super.readKeyframes();
4270
4270
  for (let u = 0; u < e.length; u++) {
4271
- let d = e[u];
4272
- if (typeof d == "string" && (d = d.trim(), Js(d))) {
4273
- const f = fl(d, n.current);
4274
- f !== void 0 && (e[u] = f), u === e.length - 1 && (this.finalKeyframe = d);
4271
+ let f = e[u];
4272
+ if (typeof f == "string" && (f = f.trim(), Js(f))) {
4273
+ const d = fl(f, n.current);
4274
+ d !== void 0 && (e[u] = d), u === e.length - 1 && (this.finalKeyframe = f);
4275
4275
  }
4276
4276
  }
4277
4277
  if (this.resolveNoneKeyframes(), !pl.has(i) || e.length !== 2)
@@ -4284,8 +4284,8 @@ class Mf extends or {
4284
4284
  if (r !== a)
4285
4285
  if (io(r) && io(a))
4286
4286
  for (let u = 0; u < e.length; u++) {
4287
- const d = e[u];
4288
- typeof d == "string" && (e[u] = parseFloat(d));
4287
+ const f = e[u];
4288
+ typeof f == "string" && (e[u] = parseFloat(f));
4289
4289
  }
4290
4290
  else Pe[i] && (this.needsMeasurement = !0);
4291
4291
  }
@@ -4347,7 +4347,7 @@ const { schedule: fr, cancel: w0 } = /* @__PURE__ */ Ha(queueMicrotask, !1), Yt
4347
4347
  function El() {
4348
4348
  return Yt.x || Yt.y;
4349
4349
  }
4350
- function Vf(t) {
4350
+ function Lf(t) {
4351
4351
  return t === "x" || t === "y" ? Yt[t] ? null : (Yt[t] = !0, () => {
4352
4352
  Yt[t] = !1;
4353
4353
  }) : Yt.x || Yt.y ? null : (Yt.x = Yt.y = !0, () => {
@@ -4362,7 +4362,7 @@ function Pl(t, e) {
4362
4362
  };
4363
4363
  return [n, s, () => i.abort()];
4364
4364
  }
4365
- function Lf(t) {
4365
+ function Vf(t) {
4366
4366
  return !(t.pointerType === "touch" || El());
4367
4367
  }
4368
4368
  function Of(t, e, n = {}) {
@@ -4371,28 +4371,28 @@ function Of(t, e, n = {}) {
4371
4371
  let a = !1, l = !1, c;
4372
4372
  const u = () => {
4373
4373
  r.removeEventListener("pointerleave", g);
4374
- }, d = (b) => {
4375
- c && (c(b), c = void 0), u();
4376
- }, f = (b) => {
4377
- a = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), l && (l = !1, d(b));
4374
+ }, f = (y) => {
4375
+ c && (c(y), c = void 0), u();
4376
+ }, d = (y) => {
4377
+ a = !1, window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", d), l && (l = !1, f(y));
4378
4378
  }, p = () => {
4379
- a = !0, window.addEventListener("pointerup", f, s), window.addEventListener("pointercancel", f, s);
4380
- }, g = (b) => {
4381
- if (b.pointerType !== "touch") {
4379
+ a = !0, window.addEventListener("pointerup", d, s), window.addEventListener("pointercancel", d, s);
4380
+ }, g = (y) => {
4381
+ if (y.pointerType !== "touch") {
4382
4382
  if (a) {
4383
4383
  l = !0;
4384
4384
  return;
4385
4385
  }
4386
- d(b);
4386
+ f(y);
4387
4387
  }
4388
- }, x = (b) => {
4389
- if (!Lf(b))
4388
+ }, w = (y) => {
4389
+ if (!Vf(y))
4390
4390
  return;
4391
4391
  l = !1;
4392
- const y = e(r, b);
4393
- typeof y == "function" && (c = y, r.addEventListener("pointerleave", g, s));
4392
+ const v = e(r, y);
4393
+ typeof v == "function" && (c = v, r.addEventListener("pointerleave", g, s));
4394
4394
  };
4395
- r.addEventListener("pointerenter", x, s), r.addEventListener("pointerdown", p, s);
4395
+ r.addEventListener("pointerenter", w, s), r.addEventListener("pointerdown", p, s);
4396
4396
  }), o;
4397
4397
  }
4398
4398
  const Al = (t, e) => e ? t === e ? !0 : Al(t, e.parentElement) : !1, hr = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, If = /* @__PURE__ */ new Set([
@@ -4444,13 +4444,13 @@ function $f(t, e, n = {}) {
4444
4444
  return;
4445
4445
  hi.add(l), n.stopPropagation && ho.add(a);
4446
4446
  const c = e(l, a), u = (p, g) => {
4447
- window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), hi.has(l) && hi.delete(l), fo(p) && typeof c == "function" && c(p, { success: g });
4448
- }, d = (p) => {
4449
- u(p, l === window || l === document || n.useGlobalTarget || Al(l, p.target));
4447
+ window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", d), hi.has(l) && hi.delete(l), fo(p) && typeof c == "function" && c(p, { success: g });
4450
4448
  }, f = (p) => {
4449
+ u(p, l === window || l === document || n.useGlobalTarget || Al(l, p.target));
4450
+ }, d = (p) => {
4451
4451
  u(p, !1);
4452
4452
  };
4453
- window.addEventListener("pointerup", d, s), window.addEventListener("pointercancel", f, s);
4453
+ window.addEventListener("pointerup", f, s), window.addEventListener("pointercancel", d, s);
4454
4454
  };
4455
4455
  return i.forEach((a) => {
4456
4456
  (n.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s), Rf(a) && (a.addEventListener("focus", (c) => Ff(c, s)), !Nf(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
@@ -4547,11 +4547,11 @@ const mr = [
4547
4547
  "whileDrag",
4548
4548
  "exit"
4549
4549
  ], gr = ["initial", ...mr];
4550
- function Vi(t) {
4550
+ function Li(t) {
4551
4551
  return Ri(t.animate) || gr.some((e) => Fn(t[e]));
4552
4552
  }
4553
4553
  function kl(t) {
4554
- return !!(Vi(t) || t.variants);
4554
+ return !!(Li(t) || t.variants);
4555
4555
  }
4556
4556
  function th(t, e, n) {
4557
4557
  for (const i in e) {
@@ -4573,14 +4573,14 @@ function th(t, e, n) {
4573
4573
  e[i] === void 0 && t.removeValue(i);
4574
4574
  return e;
4575
4575
  }
4576
- const Vs = { current: null }, jl = { current: !1 }, eh = typeof window < "u";
4576
+ const Ls = { current: null }, jl = { current: !1 }, eh = typeof window < "u";
4577
4577
  function nh() {
4578
4578
  if (jl.current = !0, !!eh)
4579
4579
  if (window.matchMedia) {
4580
- const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Vs.current = t.matches;
4580
+ const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Ls.current = t.matches;
4581
4581
  t.addEventListener("change", e), e();
4582
4582
  } else
4583
- Vs.current = !1;
4583
+ Ls.current = !1;
4584
4584
  }
4585
4585
  const yo = [
4586
4586
  "AnimationStart",
@@ -4617,10 +4617,10 @@ class sh {
4617
4617
  this.renderScheduledAt < p && (this.renderScheduledAt = p, Q.render(this.render, !1, !0));
4618
4618
  };
4619
4619
  const { latestValues: c, renderState: u } = a;
4620
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = Vi(n), this.isVariantNode = kl(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4621
- const { willChange: d, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
4622
- for (const p in f) {
4623
- const g = f[p];
4620
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = Li(n), this.isVariantNode = kl(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4621
+ const { willChange: f, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
4622
+ for (const p in d) {
4623
+ const g = d[p];
4624
4624
  c[p] !== void 0 && Pt(g) && g.set(c[p]);
4625
4625
  }
4626
4626
  }
@@ -4629,7 +4629,7 @@ class sh {
4629
4629
  if (this.hasBeenMounted)
4630
4630
  for (const s in this.initialValues)
4631
4631
  (n = this.values.get(s)) == null || n.jump(this.initialValues[s]), this.latestValues[s] = this.initialValues[s];
4632
- this.current = e, Qf.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((s, o) => this.bindToMotionValue(o, s)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (jl.current || nh(), this.shouldReduceMotion = Vs.current), process.env.NODE_ENV !== "production" && Ks(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, (i = this.parent) == null || i.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
4632
+ this.current = e, Qf.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((s, o) => this.bindToMotionValue(o, s)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (jl.current || nh(), this.shouldReduceMotion = Ls.current), process.env.NODE_ENV !== "production" && Ks(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, (i = this.parent) == null || i.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
4633
4633
  }
4634
4634
  unmount() {
4635
4635
  var e;
@@ -4650,16 +4650,16 @@ class sh {
4650
4650
  }
4651
4651
  bindToMotionValue(e, n) {
4652
4652
  if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), n.accelerate && Df.has(e) && this.current instanceof HTMLElement) {
4653
- const { factory: r, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, d = new cl({
4653
+ const { factory: r, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, f = new cl({
4654
4654
  element: this.current,
4655
4655
  name: e,
4656
4656
  keyframes: a,
4657
4657
  times: l,
4658
4658
  ease: c,
4659
4659
  duration: /* @__PURE__ */ Ut(u)
4660
- }), f = r(d);
4660
+ }), d = r(f);
4661
4661
  this.valueSubscriptions.set(e, () => {
4662
- f(), d.cancel();
4662
+ d(), f.cancel();
4663
4663
  });
4664
4664
  return;
4665
4665
  }
@@ -4871,13 +4871,13 @@ function oh(t, e) {
4871
4871
  function Ji(t) {
4872
4872
  return t === void 0 || t === 1;
4873
4873
  }
4874
- function Ls({ scale: t, scaleX: e, scaleY: n }) {
4874
+ function Vs({ scale: t, scaleX: e, scaleY: n }) {
4875
4875
  return !Ji(t) || !Ji(e) || !Ji(n);
4876
4876
  }
4877
4877
  function Ie(t) {
4878
- return Ls(t) || Vl(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
4878
+ return Vs(t) || Ll(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
4879
4879
  }
4880
- function Vl(t) {
4880
+ function Ll(t) {
4881
4881
  return vo(t.x) || vo(t.y);
4882
4882
  }
4883
4883
  function vo(t) {
@@ -4893,7 +4893,7 @@ function bo(t, e, n, i, s) {
4893
4893
  function Os(t, e = 0, n = 1, i, s) {
4894
4894
  t.min = bo(t.min, e, n, i, s), t.max = bo(t.max, e, n, i, s);
4895
4895
  }
4896
- function Ll(t, { x: e, y: n }) {
4896
+ function Vl(t, { x: e, y: n }) {
4897
4897
  Os(t.x, e.translate, e.scale, e.originPoint), Os(t.y, n.translate, n.scale, n.originPoint);
4898
4898
  }
4899
4899
  const wo = 0.999999999999, xo = 1.0000000000001;
@@ -4909,7 +4909,7 @@ function ah(t, e, n, i = !1) {
4909
4909
  l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && an(t, {
4910
4910
  x: -o.scroll.offset.x,
4911
4911
  y: -o.scroll.offset.y
4912
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, Ll(t, r)), i && Ie(o.latestValues) && an(t, o.latestValues));
4912
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, Vl(t, r)), i && Ie(o.latestValues) && an(t, o.latestValues));
4913
4913
  }
4914
4914
  e.x < xo && e.x > wo && (e.x = 1), e.y < xo && e.y > wo && (e.y = 1);
4915
4915
  }
@@ -4999,7 +4999,7 @@ const Cn = {
4999
4999
  if (!e.target)
5000
5000
  return t;
5001
5001
  if (typeof t == "string")
5002
- if (I.test(t))
5002
+ if (N.test(t))
5003
5003
  t = parseFloat(t);
5004
5004
  else
5005
5005
  return t;
@@ -5103,11 +5103,11 @@ function Bl(t, {
5103
5103
  return;
5104
5104
  }
5105
5105
  t.attrs = t.style, t.style = {};
5106
- const { attrs: d, style: f } = t;
5107
- d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = (u == null ? void 0 : u.transformBox) ?? "fill-box", delete d.transformBox);
5106
+ const { attrs: f, style: d } = t;
5107
+ f.transform && (d.transform = f.transform, delete f.transform), (d.transform || f.transformOrigin) && (d.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), d.transform && (d.transformBox = (u == null ? void 0 : u.transformBox) ?? "fill-box", delete f.transformBox);
5108
5108
  for (const p of vh)
5109
- d[p] !== void 0 && (f[p] = d[p], delete d[p]);
5110
- e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), s !== void 0 && yh(d, s, o, r, !1);
5109
+ f[p] !== void 0 && (d[p] = f[p], delete f[p]);
5110
+ e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), i !== void 0 && (f.scale = i), s !== void 0 && yh(f, s, o, r, !1);
5111
5111
  }
5112
5112
  const _l = /* @__PURE__ */ new Set([
5113
5113
  "baseFrequency",
@@ -5208,11 +5208,11 @@ function Eh(t) {
5208
5208
  function Ph(t) {
5209
5209
  let e = Eh(t), n = Eo(), i = !0;
5210
5210
  const s = (l) => (c, u) => {
5211
- var f;
5212
- const d = ln(t, u, l === "exit" ? (f = t.presenceContext) == null ? void 0 : f.custom : void 0);
5213
- if (d) {
5214
- const { transition: p, transitionEnd: g, ...x } = d;
5215
- c = { ...c, ...x, ...g };
5211
+ var d;
5212
+ const f = ln(t, u, l === "exit" ? (d = t.presenceContext) == null ? void 0 : d.custom : void 0);
5213
+ if (f) {
5214
+ const { transition: p, transitionEnd: g, ...w } = f;
5215
+ c = { ...c, ...w, ...g };
5216
5216
  }
5217
5217
  return c;
5218
5218
  };
@@ -5220,36 +5220,36 @@ function Ph(t) {
5220
5220
  e = l(t);
5221
5221
  }
5222
5222
  function r(l) {
5223
- const { props: c } = t, u = zl(t.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
5223
+ const { props: c } = t, u = zl(t.parent) || {}, f = [], d = /* @__PURE__ */ new Set();
5224
5224
  let p = {}, g = 1 / 0;
5225
- for (let b = 0; b < Sh; b++) {
5226
- const y = Th[b], v = n[y], T = c[y] !== void 0 ? c[y] : u[y], k = Fn(T), w = y === l ? v.isActive : null;
5227
- w === !1 && (g = b);
5228
- let j = T === u[y] && T !== c[y] && k;
5229
- if (j && i && t.manuallyAnimateOnMount && (j = !1), v.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
5230
- !v.isActive && w === null || // If we didn't and don't have any defined prop for this animation type
5231
- !T && !v.prevProp || // Or if the prop doesn't define an animation
5225
+ for (let y = 0; y < Sh; y++) {
5226
+ const v = Th[y], b = n[v], T = c[v] !== void 0 ? c[v] : u[v], k = Fn(T), x = v === l ? b.isActive : null;
5227
+ x === !1 && (g = y);
5228
+ let j = T === u[v] && T !== c[v] && k;
5229
+ if (j && i && t.manuallyAnimateOnMount && (j = !1), b.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
5230
+ !b.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
5231
+ !T && !b.prevProp || // Or if the prop doesn't define an animation
5232
5232
  Ri(T) || typeof T == "boolean")
5233
5233
  continue;
5234
- if (y === "exit" && v.isActive && w !== !0) {
5235
- v.prevResolvedValues && (p = {
5234
+ if (v === "exit" && b.isActive && x !== !0) {
5235
+ b.prevResolvedValues && (p = {
5236
5236
  ...p,
5237
- ...v.prevResolvedValues
5237
+ ...b.prevResolvedValues
5238
5238
  });
5239
5239
  continue;
5240
5240
  }
5241
- const D = Ah(v.prevProp, T);
5241
+ const D = Ah(b.prevProp, T);
5242
5242
  let M = D || // If we're making this variant active, we want to always make it active
5243
- y === l && v.isActive && !j && k || // If we removed a higher-priority variant (i is in reverse order)
5244
- b > g && k, O = !1;
5243
+ v === l && b.isActive && !j && k || // If we removed a higher-priority variant (i is in reverse order)
5244
+ y > g && k, O = !1;
5245
5245
  const B = Array.isArray(T) ? T : [T];
5246
- let tt = B.reduce(s(y), {});
5247
- w === !1 && (tt = {});
5248
- const { prevResolvedValues: wt = {} } = v, At = {
5246
+ let tt = B.reduce(s(v), {});
5247
+ x === !1 && (tt = {});
5248
+ const { prevResolvedValues: wt = {} } = b, At = {
5249
5249
  ...wt,
5250
5250
  ...tt
5251
5251
  }, J = (H) => {
5252
- M = !0, f.has(H) && (O = !0, f.delete(H)), v.needsAnimating[H] = !0;
5252
+ M = !0, d.has(H) && (O = !0, d.delete(H)), b.needsAnimating[H] = !0;
5253
5253
  const Y = t.getValue(H);
5254
5254
  Y && (Y.liveStyle = !1);
5255
5255
  };
@@ -5258,12 +5258,12 @@ function Ph(t) {
5258
5258
  if (p.hasOwnProperty(H))
5259
5259
  continue;
5260
5260
  let nt = !1;
5261
- ks(Y) && ks(ot) ? nt = !Ul(Y, ot) : nt = Y !== ot, nt ? Y != null ? J(H) : f.add(H) : Y !== void 0 && f.has(H) ? J(H) : v.protectedKeys[H] = !0;
5261
+ ks(Y) && ks(ot) ? nt = !Ul(Y, ot) : nt = Y !== ot, nt ? Y != null ? J(H) : d.add(H) : Y !== void 0 && d.has(H) ? J(H) : b.protectedKeys[H] = !0;
5262
5262
  }
5263
- v.prevProp = T, v.prevResolvedValues = tt, v.isActive && (p = { ...p, ...tt }), i && t.blockInitialAnimation && (M = !1);
5263
+ b.prevProp = T, b.prevResolvedValues = tt, b.isActive && (p = { ...p, ...tt }), i && t.blockInitialAnimation && (M = !1);
5264
5264
  const z = j && D;
5265
- M && (!z || O) && d.push(...B.map((H) => {
5266
- const Y = { type: y };
5265
+ M && (!z || O) && f.push(...B.map((H) => {
5266
+ const Y = { type: v };
5267
5267
  if (typeof H == "string" && i && !z && t.manuallyAnimateOnMount && t.parent) {
5268
5268
  const { parent: ot } = t, nt = ln(ot, H);
5269
5269
  if (ot.enteringChildren && nt) {
@@ -5277,31 +5277,31 @@ function Ph(t) {
5277
5277
  };
5278
5278
  }));
5279
5279
  }
5280
- if (f.size) {
5281
- const b = {};
5280
+ if (d.size) {
5281
+ const y = {};
5282
5282
  if (typeof c.initial != "boolean") {
5283
- const y = ln(t, Array.isArray(c.initial) ? c.initial[0] : c.initial);
5284
- y && y.transition && (b.transition = y.transition);
5283
+ const v = ln(t, Array.isArray(c.initial) ? c.initial[0] : c.initial);
5284
+ v && v.transition && (y.transition = v.transition);
5285
5285
  }
5286
- f.forEach((y) => {
5287
- const v = t.getBaseTarget(y), T = t.getValue(y);
5288
- T && (T.liveStyle = !0), b[y] = v ?? null;
5289
- }), d.push({ animation: b });
5286
+ d.forEach((v) => {
5287
+ const b = t.getBaseTarget(v), T = t.getValue(v);
5288
+ T && (T.liveStyle = !0), y[v] = b ?? null;
5289
+ }), f.push({ animation: y });
5290
5290
  }
5291
- let x = !!d.length;
5292
- return i && (c.initial === !1 || c.initial === c.animate) && !t.manuallyAnimateOnMount && (x = !1), i = !1, x ? e(d) : Promise.resolve();
5291
+ let w = !!f.length;
5292
+ return i && (c.initial === !1 || c.initial === c.animate) && !t.manuallyAnimateOnMount && (w = !1), i = !1, w ? e(f) : Promise.resolve();
5293
5293
  }
5294
5294
  function a(l, c) {
5295
- var d;
5295
+ var f;
5296
5296
  if (n[l].isActive === c)
5297
5297
  return Promise.resolve();
5298
- (d = t.variantChildren) == null || d.forEach((f) => {
5298
+ (f = t.variantChildren) == null || f.forEach((d) => {
5299
5299
  var p;
5300
- return (p = f.animationState) == null ? void 0 : p.setActive(l, c);
5300
+ return (p = d.animationState) == null ? void 0 : p.setActive(l, c);
5301
5301
  }), n[l].isActive = c;
5302
5302
  const u = r(l);
5303
- for (const f in n)
5304
- n[f].protectedKeys = {};
5303
+ for (const d in n)
5304
+ n[d].protectedKeys = {};
5305
5305
  return u;
5306
5306
  }
5307
5307
  return {
@@ -5317,7 +5317,7 @@ function Ph(t) {
5317
5317
  function Ah(t, e) {
5318
5318
  return typeof e == "string" ? e !== t : Array.isArray(e) ? !Ul(e, t) : !1;
5319
5319
  }
5320
- function Le(t = !1) {
5320
+ function Ve(t = !1) {
5321
5321
  return {
5322
5322
  isActive: t,
5323
5323
  protectedKeys: {},
@@ -5327,13 +5327,13 @@ function Le(t = !1) {
5327
5327
  }
5328
5328
  function Eo() {
5329
5329
  return {
5330
- animate: Le(!0),
5331
- whileInView: Le(),
5332
- whileHover: Le(),
5333
- whileTap: Le(),
5334
- whileDrag: Le(),
5335
- whileFocus: Le(),
5336
- exit: Le()
5330
+ animate: Ve(!0),
5331
+ whileInView: Ve(),
5332
+ whileHover: Ve(),
5333
+ whileTap: Ve(),
5334
+ whileDrag: Ve(),
5335
+ whileFocus: Ve(),
5336
+ exit: Ve()
5337
5337
  };
5338
5338
  }
5339
5339
  function Po(t, e) {
@@ -5355,7 +5355,7 @@ function Dh(t, e, n) {
5355
5355
  function Co(t, e, n, i = 0.5) {
5356
5356
  t.origin = i, t.originPoint = st(e.min, e.max, t.origin), t.scale = jt(n) / jt(e), t.translate = st(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Ch && t.scale <= kh || isNaN(t.scale)) && (t.scale = 1), (t.translate >= jh && t.translate <= Mh || isNaN(t.translate)) && (t.translate = 0);
5357
5357
  }
5358
- function Ln(t, e, n, i) {
5358
+ function Vn(t, e, n, i) {
5359
5359
  Co(t.x, e.x, n.x, i ? i.originX : void 0), Co(t.y, e.y, n.y, i ? i.originY : void 0);
5360
5360
  }
5361
5361
  function ko(t, e, n) {
@@ -5373,30 +5373,30 @@ function ki(t, e, n) {
5373
5373
  function Mo(t, e, n, i, s) {
5374
5374
  return t -= e, t = Ci(t, 1 / n, i), s !== void 0 && (t = Ci(t, 1 / s, i)), t;
5375
5375
  }
5376
- function Vh(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
5376
+ function Lh(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
5377
5377
  if (ue.test(e) && (e = parseFloat(e), e = st(r.min, r.max, e / 100) - r.min), typeof e != "number")
5378
5378
  return;
5379
5379
  let a = st(o.min, o.max, i);
5380
5380
  t === o && (a -= e), t.min = Mo(t.min, e, n, a, s), t.max = Mo(t.max, e, n, a, s);
5381
5381
  }
5382
5382
  function Do(t, e, [n, i, s], o, r) {
5383
- Vh(t, e[n], e[i], e[s], e.scale, o, r);
5383
+ Lh(t, e[n], e[i], e[s], e.scale, o, r);
5384
5384
  }
5385
- const Lh = ["x", "scaleX", "originX"], Oh = ["y", "scaleY", "originY"];
5385
+ const Vh = ["x", "scaleX", "originX"], Oh = ["y", "scaleY", "originY"];
5386
5386
  function Ro(t, e, n, i) {
5387
- Do(t.x, e, Lh, n ? n.x : void 0, i ? i.x : void 0), Do(t.y, e, Oh, n ? n.y : void 0, i ? i.y : void 0);
5387
+ Do(t.x, e, Vh, n ? n.x : void 0, i ? i.x : void 0), Do(t.y, e, Oh, n ? n.y : void 0, i ? i.y : void 0);
5388
5388
  }
5389
- function Vo(t) {
5389
+ function Lo(t) {
5390
5390
  return t.translate === 0 && t.scale === 1;
5391
5391
  }
5392
5392
  function Gl(t) {
5393
- return Vo(t.x) && Vo(t.y);
5393
+ return Lo(t.x) && Lo(t.y);
5394
5394
  }
5395
- function Lo(t, e) {
5395
+ function Vo(t, e) {
5396
5396
  return t.min === e.min && t.max === e.max;
5397
5397
  }
5398
5398
  function Ih(t, e) {
5399
- return Lo(t.x, e.x) && Lo(t.y, e.y);
5399
+ return Vo(t.x, e.x) && Vo(t.y, e.y);
5400
5400
  }
5401
5401
  function Oo(t, e) {
5402
5402
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
@@ -5417,13 +5417,13 @@ function Nh(t, e, n) {
5417
5417
  let i = "";
5418
5418
  const s = t.x.translate / e.x, o = t.y.translate / e.y, r = (n == null ? void 0 : n.z) || 0;
5419
5419
  if ((s || o || r) && (i = `translate3d(${s}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
5420
- const { transformPerspective: c, rotate: u, rotateX: d, rotateY: f, skewX: p, skewY: g } = n;
5421
- c && (i = `perspective(${c}px) ${i}`), u && (i += `rotate(${u}deg) `), d && (i += `rotateX(${d}deg) `), f && (i += `rotateY(${f}deg) `), p && (i += `skewX(${p}deg) `), g && (i += `skewY(${g}deg) `);
5420
+ const { transformPerspective: c, rotate: u, rotateX: f, rotateY: d, skewX: p, skewY: g } = n;
5421
+ c && (i = `perspective(${c}px) ${i}`), u && (i += `rotate(${u}deg) `), f && (i += `rotateX(${f}deg) `), d && (i += `rotateY(${d}deg) `), p && (i += `skewX(${p}deg) `), g && (i += `skewY(${g}deg) `);
5422
5422
  }
5423
5423
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
5424
5424
  return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
5425
5425
  }
5426
- const Yl = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Bh = Yl.length, Bo = (t) => typeof t == "string" ? parseFloat(t) : t, _o = (t) => typeof t == "number" || I.test(t);
5426
+ const Yl = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Bh = Yl.length, Bo = (t) => typeof t == "string" ? parseFloat(t) : t, _o = (t) => typeof t == "number" || N.test(t);
5427
5427
  function _h(t, e, n, i, s, o) {
5428
5428
  s ? (t.opacity = st(0, n.opacity ?? 1, Fh(i)), t.opacityExit = st(e.opacity ?? 1, 0, $h(i))) : o && (t.opacity = st(e.opacity ?? 1, n.opacity ?? 1, i));
5429
5429
  for (let r = 0; r < Bh; r++) {
@@ -5603,31 +5603,31 @@ function Zl({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5603
5603
  this.isSVG = pr(r) && !Xf(r), this.instance = r;
5604
5604
  const { layoutId: a, layout: l, visualElement: c } = this.options;
5605
5605
  if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
5606
- let u, d = 0;
5607
- const f = () => this.root.updateBlockedByResize = !1;
5606
+ let u, f = 0;
5607
+ const d = () => this.root.updateBlockedByResize = !1;
5608
5608
  Q.read(() => {
5609
- d = window.innerWidth;
5609
+ f = window.innerWidth;
5610
5610
  }), t(r, () => {
5611
5611
  const p = window.innerWidth;
5612
- p !== d && (d = p, this.root.updateBlockedByResize = !0, u && u(), u = Wh(f, 250), yi.hasAnimatedSinceResize && (yi.hasAnimatedSinceResize = !1, this.nodes.forEach(Uo)));
5612
+ p !== f && (f = p, this.root.updateBlockedByResize = !0, u && u(), u = Wh(d, 250), yi.hasAnimatedSinceResize && (yi.hasAnimatedSinceResize = !1, this.nodes.forEach(Uo)));
5613
5613
  });
5614
5614
  }
5615
- a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: d, hasRelativeLayoutChanged: f, layout: p }) => {
5615
+ a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: f, hasRelativeLayoutChanged: d, layout: p }) => {
5616
5616
  if (this.isTreeAnimationBlocked()) {
5617
5617
  this.target = void 0, this.relativeTarget = void 0;
5618
5618
  return;
5619
5619
  }
5620
- const g = this.options.transition || c.getDefaultTransition() || ap, { onLayoutAnimationStart: x, onLayoutAnimationComplete: b } = c.getProps(), y = !this.targetLayout || !ql(this.targetLayout, p), v = !d && f;
5621
- if (this.options.layoutRoot || this.resumeFrom || v || d && (y || !this.currentAnimation)) {
5620
+ const g = this.options.transition || c.getDefaultTransition() || ap, { onLayoutAnimationStart: w, onLayoutAnimationComplete: y } = c.getProps(), v = !this.targetLayout || !ql(this.targetLayout, p), b = !f && d;
5621
+ if (this.options.layoutRoot || this.resumeFrom || b || f && (v || !this.currentAnimation)) {
5622
5622
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
5623
5623
  const T = {
5624
5624
  ...ar(g, "layout"),
5625
- onPlay: x,
5626
- onComplete: b
5625
+ onPlay: w,
5626
+ onComplete: y
5627
5627
  };
5628
- (c.shouldReduceMotion || this.options.layoutRoot) && (T.delay = 0, T.type = !1), this.startAnimation(T), this.setAnimationOrigin(u, v);
5628
+ (c.shouldReduceMotion || this.options.layoutRoot) && (T.delay = 0, T.type = !1), this.startAnimation(T), this.setAnimationOrigin(u, b);
5629
5629
  } else
5630
- d || Uo(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
5630
+ f || Uo(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
5631
5631
  this.targetLayout = p;
5632
5632
  });
5633
5633
  }
@@ -5666,8 +5666,8 @@ function Zl({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5666
5666
  return;
5667
5667
  this.isLayoutDirty = !0;
5668
5668
  for (let u = 0; u < this.path.length; u++) {
5669
- const d = this.path[u];
5670
- d.shouldResetTransform = !0, d.updateScroll("snapshot"), d.options.layoutRoot && d.willUpdate(!1);
5669
+ const f = this.path[u];
5670
+ f.shouldResetTransform = !0, f.updateScroll("snapshot"), f.options.layoutRoot && f.willUpdate(!1);
5671
5671
  }
5672
5672
  const { layoutId: a, layout: l } = this.options;
5673
5673
  if (a === void 0 && !l)
@@ -5767,8 +5767,8 @@ function Zl({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5767
5767
  if (qt(a, r), (l = this.scroll) != null && l.wasRoot)
5768
5768
  return a;
5769
5769
  for (let c = 0; c < this.path.length; c++) {
5770
- const u = this.path[c], { scroll: d, options: f } = u;
5771
- u !== this.root && d && f.layoutScroll && (d.wasRoot && qt(a, r), on(a.x, d.offset.x), on(a.y, d.offset.y));
5770
+ const u = this.path[c], { scroll: f, options: d } = u;
5771
+ u !== this.root && f && d.layoutScroll && (f.wasRoot && qt(a, r), on(a.x, f.offset.x), on(a.y, f.offset.y));
5772
5772
  }
5773
5773
  return a;
5774
5774
  }
@@ -5791,9 +5791,9 @@ function Zl({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5791
5791
  const c = this.path[l];
5792
5792
  if (!c.instance || !Ie(c.latestValues))
5793
5793
  continue;
5794
- Ls(c.latestValues) && c.updateSnapshot();
5795
- const u = bt(), d = c.measurePageBox();
5796
- qt(u, d), Ro(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
5794
+ Vs(c.latestValues) && c.updateSnapshot();
5795
+ const u = bt(), f = c.measurePageBox();
5796
+ qt(u, f), Ro(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
5797
5797
  }
5798
5798
  return Ie(this.latestValues) && Ro(a, this.latestValues), a;
5799
5799
  }
@@ -5820,15 +5820,15 @@ function Zl({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5820
5820
  const l = !!this.resumingFrom || this !== a;
5821
5821
  if (!(r || l && this.isSharedProjectionDirty || this.isProjectionDirty || (p = this.parent) != null && p.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
5822
5822
  return;
5823
- const { layout: u, layoutId: d } = this.options;
5824
- if (!this.layout || !(u || d))
5823
+ const { layout: u, layoutId: f } = this.options;
5824
+ if (!this.layout || !(u || f))
5825
5825
  return;
5826
5826
  this.resolvedRelativeTargetAt = Tt.timestamp;
5827
- const f = this.getClosestProjectingParent();
5828
- f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = bt(), this.targetWithTransforms = bt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Rh(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : qt(this.target, this.layout.layoutBox), Ll(this.target, this.targetDelta)) : qt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
5827
+ const d = this.getClosestProjectingParent();
5828
+ d && this.linkedParentVersion !== d.layoutVersion && !d.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (d && d.layout ? this.createRelativeTarget(d, this.layout.layoutBox, d.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = bt(), this.targetWithTransforms = bt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Rh(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : qt(this.target, this.layout.layoutBox), Vl(this.target, this.targetDelta)) : qt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? this.createRelativeTarget(d, this.target, d.target) : this.relativeParent = this.relativeTarget = void 0));
5829
5829
  }
5830
5830
  getClosestProjectingParent() {
5831
- if (!(!this.parent || Ls(this.parent.latestValues) || Vl(this.parent.latestValues)))
5831
+ if (!(!this.parent || Vs(this.parent.latestValues) || Ll(this.parent.latestValues)))
5832
5832
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
5833
5833
  }
5834
5834
  isProjecting() {
@@ -5850,14 +5850,14 @@ function Zl({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5850
5850
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || u))
5851
5851
  return;
5852
5852
  qt(this.layoutCorrected, this.layout.layoutBox);
5853
- const d = this.treeScale.x, f = this.treeScale.y;
5853
+ const f = this.treeScale.x, d = this.treeScale.y;
5854
5854
  ah(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = bt());
5855
5855
  const { target: p } = r;
5856
5856
  if (!p) {
5857
5857
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
5858
5858
  return;
5859
5859
  }
5860
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ao(this.prevProjectionDelta.x, this.projectionDelta.x), Ao(this.prevProjectionDelta.y, this.projectionDelta.y)), Ln(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== f || !No(this.projectionDelta.x, this.prevProjectionDelta.x) || !No(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p));
5860
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ao(this.prevProjectionDelta.x, this.projectionDelta.x), Ao(this.prevProjectionDelta.y, this.projectionDelta.y)), Vn(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !== f || this.treeScale.y !== d || !No(this.projectionDelta.x, this.prevProjectionDelta.x) || !No(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p));
5861
5861
  }
5862
5862
  hide() {
5863
5863
  this.isVisible = !1;
@@ -5877,14 +5877,14 @@ function Zl({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5877
5877
  this.prevProjectionDelta = rn(), this.projectionDelta = rn(), this.projectionDeltaWithTransform = rn();
5878
5878
  }
5879
5879
  setAnimationOrigin(r, a = !1) {
5880
- const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = rn();
5880
+ const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = rn();
5881
5881
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
5882
- const f = bt(), p = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, x = p !== g, b = this.getStack(), y = !b || b.members.length <= 1, v = !!(x && !y && this.options.crossfade === !0 && !this.path.some(op));
5882
+ const d = bt(), p = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, w = p !== g, y = this.getStack(), v = !y || y.members.length <= 1, b = !!(w && !v && this.options.crossfade === !0 && !this.path.some(op));
5883
5883
  this.animationProgress = 0;
5884
5884
  let T;
5885
5885
  this.mixTargetDelta = (k) => {
5886
- const w = k / 1e3;
5887
- Ho(d.x, r.x, w), Ho(d.y, r.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ki(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), rp(this.relativeTarget, this.relativeTargetOrigin, f, w), T && Ih(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = bt()), qt(T, this.relativeTarget)), x && (this.animationValues = u, _h(u, c, this.latestValues, w, v, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
5886
+ const x = k / 1e3;
5887
+ Ho(f.x, r.x, x), Ho(f.y, r.y, x), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ki(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), rp(this.relativeTarget, this.relativeTargetOrigin, d, x), T && Ih(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = bt()), qt(T, this.relativeTarget)), w && (this.animationValues = u, _h(u, c, this.latestValues, x, b, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
5888
5888
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
5889
5889
  }
5890
5890
  startAnimation(r) {
@@ -5919,12 +5919,12 @@ function Zl({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5919
5919
  if (!(!a || !l || !c)) {
5920
5920
  if (this !== r && this.layout && c && Jl(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
5921
5921
  l = this.target || bt();
5922
- const d = jt(this.layout.layoutBox.x);
5923
- l.x.min = r.target.x.min, l.x.max = l.x.min + d;
5924
- const f = jt(this.layout.layoutBox.y);
5925
- l.y.min = r.target.y.min, l.y.max = l.y.min + f;
5922
+ const f = jt(this.layout.layoutBox.x);
5923
+ l.x.min = r.target.x.min, l.x.max = l.x.min + f;
5924
+ const d = jt(this.layout.layoutBox.y);
5925
+ l.y.min = r.target.y.min, l.y.max = l.y.min + d;
5926
5926
  }
5927
- qt(a, l), an(a, u), Ln(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
5927
+ qt(a, l), an(a, u), Vn(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
5928
5928
  }
5929
5929
  }
5930
5930
  registerSharedNode(r, a) {
@@ -5999,20 +5999,20 @@ function Zl({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5999
5999
  r.visibility = "";
6000
6000
  const u = c.animationValues || c.latestValues;
6001
6001
  this.applyTransformsToTarget();
6002
- let d = Nh(this.projectionDeltaWithTransform, this.treeScale, u);
6003
- l && (d = l(u, d)), r.transform = d;
6004
- const { x: f, y: p } = this.projectionDelta;
6005
- r.transformOrigin = `${f.origin * 100}% ${p.origin * 100}% 0`, c.animationValues ? r.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : r.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
6002
+ let f = Nh(this.projectionDeltaWithTransform, this.treeScale, u);
6003
+ l && (f = l(u, f)), r.transform = f;
6004
+ const { x: d, y: p } = this.projectionDelta;
6005
+ r.transformOrigin = `${d.origin * 100}% ${p.origin * 100}% 0`, c.animationValues ? r.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : r.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
6006
6006
  for (const g in Is) {
6007
6007
  if (u[g] === void 0)
6008
6008
  continue;
6009
- const { correct: x, applyTo: b, isCSSVariable: y } = Is[g], v = d === "none" ? u[g] : x(u[g], c);
6010
- if (b) {
6011
- const T = b.length;
6009
+ const { correct: w, applyTo: y, isCSSVariable: v } = Is[g], b = f === "none" ? u[g] : w(u[g], c);
6010
+ if (y) {
6011
+ const T = y.length;
6012
6012
  for (let k = 0; k < T; k++)
6013
- r[b[k]] = v;
6013
+ r[y[k]] = b;
6014
6014
  } else
6015
- y ? this.options.visualElement.renderState.vars[g] = v : r[g] = v;
6015
+ v ? this.options.visualElement.renderState.vars[g] = b : r[g] = b;
6016
6016
  }
6017
6017
  this.options.layoutId && (r.pointerEvents = c === this ? gi(a == null ? void 0 : a.pointerEvents) || "" : "none");
6018
6018
  }
@@ -6036,28 +6036,28 @@ function Xh(t) {
6036
6036
  const e = ((n = t.resumeFrom) == null ? void 0 : n.snapshot) || t.snapshot;
6037
6037
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
6038
6038
  const { layoutBox: i, measuredBox: s } = t.layout, { animationType: o } = t.options, r = e.source !== t.layout.source;
6039
- o === "size" ? le((d) => {
6040
- const f = r ? e.measuredBox[d] : e.layoutBox[d], p = jt(f);
6041
- f.min = i[d].min, f.max = f.min + p;
6042
- }) : Jl(o, e.layoutBox, i) && le((d) => {
6043
- const f = r ? e.measuredBox[d] : e.layoutBox[d], p = jt(i[d]);
6044
- f.max = f.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[d].max = t.relativeTarget[d].min + p);
6039
+ o === "size" ? le((f) => {
6040
+ const d = r ? e.measuredBox[f] : e.layoutBox[f], p = jt(d);
6041
+ d.min = i[f].min, d.max = d.min + p;
6042
+ }) : Jl(o, e.layoutBox, i) && le((f) => {
6043
+ const d = r ? e.measuredBox[f] : e.layoutBox[f], p = jt(i[f]);
6044
+ d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + p);
6045
6045
  });
6046
6046
  const a = rn();
6047
- Ln(a, i, e.layoutBox);
6047
+ Vn(a, i, e.layoutBox);
6048
6048
  const l = rn();
6049
- r ? Ln(l, t.applyTransform(s, !0), e.measuredBox) : Ln(l, i, e.layoutBox);
6049
+ r ? Vn(l, t.applyTransform(s, !0), e.measuredBox) : Vn(l, i, e.layoutBox);
6050
6050
  const c = !Gl(a);
6051
6051
  let u = !1;
6052
6052
  if (!t.resumeFrom) {
6053
- const d = t.getClosestProjectingParent();
6054
- if (d && !d.resumeFrom) {
6055
- const { snapshot: f, layout: p } = d;
6056
- if (f && p) {
6053
+ const f = t.getClosestProjectingParent();
6054
+ if (f && !f.resumeFrom) {
6055
+ const { snapshot: d, layout: p } = f;
6056
+ if (d && p) {
6057
6057
  const g = bt();
6058
- ki(g, e.layoutBox, f.layoutBox);
6059
- const x = bt();
6060
- ki(x, i, p.layoutBox), ql(g, x) || (u = !0), d.options.layoutRoot && (t.relativeTarget = x, t.relativeTargetOrigin = g, t.relativeParent = d);
6058
+ ki(g, e.layoutBox, d.layoutBox);
6059
+ const w = bt();
6060
+ ki(w, i, p.layoutBox), ql(g, w) || (u = !0), f.options.layoutRoot && (t.relativeTarget = w, t.relativeTargetOrigin = g, t.relativeParent = f);
6061
6061
  }
6062
6062
  }
6063
6063
  }
@@ -6277,9 +6277,9 @@ function gp(t, e, n) {
6277
6277
  t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
6278
6278
  return i;
6279
6279
  }
6280
- const Li = /* @__PURE__ */ Nt({});
6280
+ const Vi = /* @__PURE__ */ Nt({});
6281
6281
  function yp(t, e) {
6282
- if (Vi(t)) {
6282
+ if (Li(t)) {
6283
6283
  const { initial: n, animate: i } = t;
6284
6284
  return {
6285
6285
  initial: n === !1 || Fn(n) ? n : void 0,
@@ -6289,7 +6289,7 @@ function yp(t, e) {
6289
6289
  return t.inherit !== !1 ? e : {};
6290
6290
  }
6291
6291
  function vp(t) {
6292
- const { initial: e, animate: n } = yp(t, ut(Li));
6292
+ const { initial: e, animate: n } = yp(t, ut(Vi));
6293
6293
  return Et(() => ({ initial: e, animate: n }), [Zo(e), Zo(n)]);
6294
6294
  }
6295
6295
  function Zo(t) {
@@ -6385,10 +6385,10 @@ function wr(t) {
6385
6385
  );
6386
6386
  }
6387
6387
  function Ep(t, e, n, { latestValues: i }, s, o = !1, r) {
6388
- const l = (r ?? wr(t) ? Tp : xp)(e, i, s, t), c = gp(e, typeof t == "string", o), u = t !== ga ? { ...c, ...l, ref: n } : {}, { children: d } = e, f = Et(() => Pt(d) ? d.get() : d, [d]);
6388
+ const l = (r ?? wr(t) ? Tp : xp)(e, i, s, t), c = gp(e, typeof t == "string", o), u = t !== ga ? { ...c, ...l, ref: n } : {}, { children: f } = e, d = Et(() => Pt(f) ? f.get() : f, [f]);
6389
6389
  return Fc(t, {
6390
6390
  ...u,
6391
- children: f
6391
+ children: d
6392
6392
  });
6393
6393
  }
6394
6394
  function Pp({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, i, s) {
@@ -6399,37 +6399,37 @@ function Pp({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, i, s) {
6399
6399
  }
6400
6400
  function Ap(t, e, n, i) {
6401
6401
  const s = {}, o = i(t, {});
6402
- for (const f in o)
6403
- s[f] = gi(o[f]);
6402
+ for (const d in o)
6403
+ s[d] = gi(o[d]);
6404
6404
  let { initial: r, animate: a } = t;
6405
- const l = Vi(t), c = kl(t);
6405
+ const l = Li(t), c = kl(t);
6406
6406
  e && c && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
6407
6407
  let u = n ? n.initial === !1 : !1;
6408
6408
  u = u || r === !1;
6409
- const d = u ? a : r;
6410
- if (d && typeof d != "boolean" && !Ri(d)) {
6411
- const f = Array.isArray(d) ? d : [d];
6412
- for (let p = 0; p < f.length; p++) {
6413
- const g = cr(t, f[p]);
6409
+ const f = u ? a : r;
6410
+ if (f && typeof f != "boolean" && !Ri(f)) {
6411
+ const d = Array.isArray(f) ? f : [f];
6412
+ for (let p = 0; p < d.length; p++) {
6413
+ const g = cr(t, d[p]);
6414
6414
  if (g) {
6415
- const { transitionEnd: x, transition: b, ...y } = g;
6416
- for (const v in y) {
6417
- let T = y[v];
6415
+ const { transitionEnd: w, transition: y, ...v } = g;
6416
+ for (const b in v) {
6417
+ let T = v[b];
6418
6418
  if (Array.isArray(T)) {
6419
6419
  const k = u ? T.length - 1 : 0;
6420
6420
  T = T[k];
6421
6421
  }
6422
- T !== null && (s[v] = T);
6422
+ T !== null && (s[b] = T);
6423
6423
  }
6424
- for (const v in x)
6425
- s[v] = x[v];
6424
+ for (const b in w)
6425
+ s[b] = w[b];
6426
6426
  }
6427
6427
  }
6428
6428
  }
6429
6429
  return s;
6430
6430
  }
6431
6431
  const oc = (t) => (e, n) => {
6432
- const i = ut(Li), s = ut(Gs), o = () => Pp(t, e, i, s);
6432
+ const i = ut(Vi), s = ut(Gs), o = () => Pp(t, e, i, s);
6433
6433
  return n ? o() : Cu(o);
6434
6434
  }, Cp = /* @__PURE__ */ oc({
6435
6435
  scrapeMotionValuesFromProps: vr,
@@ -6462,31 +6462,31 @@ function tn(t) {
6462
6462
  }
6463
6463
  function Dp(t, e, n, i, s, o) {
6464
6464
  var T, k;
6465
- const { visualElement: r } = ut(Li), a = ut(ec), l = ut(Gs), c = ut(tc), u = c.reducedMotion, d = c.skipAnimations, f = U(null), p = U(!1);
6466
- i = i || a.renderer, !f.current && i && (f.current = i(t, {
6465
+ const { visualElement: r } = ut(Vi), a = ut(ec), l = ut(Gs), c = ut(tc), u = c.reducedMotion, f = c.skipAnimations, d = U(null), p = U(!1);
6466
+ i = i || a.renderer, !d.current && i && (d.current = i(t, {
6467
6467
  visualState: e,
6468
6468
  parent: r,
6469
6469
  props: n,
6470
6470
  presenceContext: l,
6471
6471
  blockInitialAnimation: l ? l.initial === !1 : !1,
6472
6472
  reducedMotionConfig: u,
6473
- skipAnimations: d,
6473
+ skipAnimations: f,
6474
6474
  isSVG: o
6475
- }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
6476
- const g = f.current, x = ut(ac);
6477
- g && !g.projection && s && (g.type === "html" || g.type === "svg") && Rp(f.current, n, s, x);
6478
- const b = U(!1);
6475
+ }), p.current && d.current && (d.current.manuallyAnimateOnMount = !0));
6476
+ const g = d.current, w = ut(ac);
6477
+ g && !g.projection && s && (g.type === "html" || g.type === "svg") && Rp(d.current, n, s, w);
6478
+ const y = U(!1);
6479
6479
  ya(() => {
6480
- g && b.current && g.update(n, l);
6480
+ g && y.current && g.update(n, l);
6481
6481
  });
6482
- const y = n[ml], v = U(!!y && !((T = window.MotionHandoffIsComplete) != null && T.call(window, y)) && ((k = window.MotionHasOptimisedAnimation) == null ? void 0 : k.call(window, y)));
6482
+ const v = n[ml], b = U(!!v && !((T = window.MotionHandoffIsComplete) != null && T.call(window, v)) && ((k = window.MotionHasOptimisedAnimation) == null ? void 0 : k.call(window, v)));
6483
6483
  return ku(() => {
6484
- p.current = !0, g && (b.current = !0, window.MotionIsMounted = !0, g.updateFeatures(), g.scheduleRenderMicrotask(), v.current && g.animationState && g.animationState.animateChanges());
6484
+ p.current = !0, g && (y.current = !0, window.MotionIsMounted = !0, g.updateFeatures(), g.scheduleRenderMicrotask(), b.current && g.animationState && g.animationState.animateChanges());
6485
6485
  }), q(() => {
6486
- g && (!v.current && g.animationState && g.animationState.animateChanges(), v.current && (queueMicrotask(() => {
6487
- var w;
6488
- (w = window.MotionHandoffMarkAsComplete) == null || w.call(window, y);
6489
- }), v.current = !1), g.enteringChildren = void 0);
6486
+ g && (!b.current && g.animationState && g.animationState.animateChanges(), b.current && (queueMicrotask(() => {
6487
+ var x;
6488
+ (x = window.MotionHandoffMarkAsComplete) == null || x.call(window, v);
6489
+ }), b.current = !1), g.enteringChildren = void 0);
6490
6490
  }), g;
6491
6491
  }
6492
6492
  function Rp(t, e, n, i) {
@@ -6518,28 +6518,28 @@ function ns(t, { forwardMotionProps: e = !1, type: n } = {}, i, s) {
6518
6518
  i && hp(i);
6519
6519
  const o = n ? n === "svg" : wr(t), r = o ? kp : Cp;
6520
6520
  function a(c, u) {
6521
- let d;
6522
- const f = {
6521
+ let f;
6522
+ const d = {
6523
6523
  ...ut(tc),
6524
6524
  ...c,
6525
- layoutId: Vp(c)
6526
- }, { isStatic: p } = f, g = vp(c), x = r(c, p);
6525
+ layoutId: Lp(c)
6526
+ }, { isStatic: p } = d, g = vp(c), w = r(c, p);
6527
6527
  if (!p && ka) {
6528
- Lp(f, i);
6529
- const b = Op(f);
6530
- d = b.MeasureLayout, g.visualElement = Dp(t, x, f, s, b.ProjectionNode, o);
6528
+ Vp(d, i);
6529
+ const y = Op(d);
6530
+ f = y.MeasureLayout, g.visualElement = Dp(t, w, d, s, y.ProjectionNode, o);
6531
6531
  }
6532
- return h.jsxs(Li.Provider, { value: g, children: [d && g.visualElement ? h.jsx(d, { visualElement: g.visualElement, ...f }) : null, Ep(t, c, Mp(x, g.visualElement, u), x, p, e, o)] });
6532
+ return h.jsxs(Vi.Provider, { value: g, children: [f && g.visualElement ? h.jsx(f, { visualElement: g.visualElement, ...d }) : null, Ep(t, c, Mp(w, g.visualElement, u), w, p, e, o)] });
6533
6533
  }
6534
6534
  a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
6535
6535
  const l = $c(a);
6536
6536
  return l[jp] = t, l;
6537
6537
  }
6538
- function Vp({ layoutId: t }) {
6538
+ function Lp({ layoutId: t }) {
6539
6539
  const e = ut(Ca).id;
6540
6540
  return e && t !== void 0 ? e + "-" + t : t;
6541
6541
  }
6542
- function Lp(t, e) {
6542
+ function Vp(t, e) {
6543
6543
  const n = ut(ec).strict;
6544
6544
  if (process.env.NODE_ENV !== "production" && e && n) {
6545
6545
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
@@ -6658,29 +6658,29 @@ class uc {
6658
6658
  }, this.updatePoint = () => {
6659
6659
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
6660
6660
  return;
6661
- const p = ss(this.lastMoveEventInfo, this.history), g = this.startEvent !== null, x = Up(p.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
6662
- if (!g && !x)
6661
+ const p = ss(this.lastMoveEventInfo, this.history), g = this.startEvent !== null, w = Up(p.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
6662
+ if (!g && !w)
6663
6663
  return;
6664
- const { point: b } = p, { timestamp: y } = Tt;
6665
- this.history.push({ ...b, timestamp: y });
6666
- const { onStart: v, onMove: T } = this.handlers;
6667
- g || (v && v(this.lastMoveEvent, p), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, p);
6664
+ const { point: y } = p, { timestamp: v } = Tt;
6665
+ this.history.push({ ...y, timestamp: v });
6666
+ const { onStart: b, onMove: T } = this.handlers;
6667
+ g || (b && b(this.lastMoveEvent, p), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, p);
6668
6668
  }, this.handlePointerMove = (p, g) => {
6669
6669
  this.lastMoveEvent = p, this.lastMoveEventInfo = is(g, this.transformPagePoint), Q.update(this.updatePoint, !0);
6670
6670
  }, this.handlePointerUp = (p, g) => {
6671
6671
  this.end();
6672
- const { onEnd: x, onSessionEnd: b, resumeAnimation: y } = this.handlers;
6673
- if ((this.dragSnapToOrigin || !this.startEvent) && y && y(), !(this.lastMoveEvent && this.lastMoveEventInfo))
6672
+ const { onEnd: w, onSessionEnd: y, resumeAnimation: v } = this.handlers;
6673
+ if ((this.dragSnapToOrigin || !this.startEvent) && v && v(), !(this.lastMoveEvent && this.lastMoveEventInfo))
6674
6674
  return;
6675
- const v = ss(p.type === "pointercancel" ? this.lastMoveEventInfo : is(g, this.transformPagePoint), this.history);
6676
- this.startEvent && x && x(p, v), b && b(p, v);
6675
+ const b = ss(p.type === "pointercancel" ? this.lastMoveEventInfo : is(g, this.transformPagePoint), this.history);
6676
+ this.startEvent && w && w(p, b), y && y(p, b);
6677
6677
  }, !hr(e))
6678
6678
  return;
6679
6679
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.distanceThreshold = r, this.contextWindow = s || window;
6680
- const l = qn(e), c = is(l, this.transformPagePoint), { point: u } = c, { timestamp: d } = Tt;
6681
- this.history = [{ ...u, timestamp: d }];
6682
- const { onSessionStart: f } = n;
6683
- f && f(e, ss(c, this.history)), this.removeListeners = Hn(On(this.contextWindow, "pointermove", this.handlePointerMove), On(this.contextWindow, "pointerup", this.handlePointerUp), On(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
6680
+ const l = qn(e), c = is(l, this.transformPagePoint), { point: u } = c, { timestamp: f } = Tt;
6681
+ this.history = [{ ...u, timestamp: f }];
6682
+ const { onSessionStart: d } = n;
6683
+ d && d(e, ss(c, this.history)), this.removeListeners = Hn(On(this.contextWindow, "pointermove", this.handlePointerMove), On(this.contextWindow, "pointerup", this.handlePointerUp), On(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
6684
6684
  }
6685
6685
  /**
6686
6686
  * Start tracking scroll on ancestors and window.
@@ -6829,41 +6829,41 @@ class Qp {
6829
6829
  const { presenceContext: s } = this.visualElement;
6830
6830
  if (s && s.isPresent === !1)
6831
6831
  return;
6832
- const o = (d) => {
6833
- n && this.snapToCursor(qn(d).point), this.stopAnimation();
6834
- }, r = (d, f) => {
6835
- const { drag: p, dragPropagation: g, onDragStart: x } = this.getProps();
6836
- if (p && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = Vf(p), !this.openDragLock))
6832
+ const o = (f) => {
6833
+ n && this.snapToCursor(qn(f).point), this.stopAnimation();
6834
+ }, r = (f, d) => {
6835
+ const { drag: p, dragPropagation: g, onDragStart: w } = this.getProps();
6836
+ if (p && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = Lf(p), !this.openDragLock))
6837
6837
  return;
6838
- this.latestPointerEvent = d, this.latestPanInfo = f, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), le((y) => {
6839
- let v = this.getAxisMotionValue(y).get() || 0;
6840
- if (ue.test(v)) {
6838
+ this.latestPointerEvent = f, this.latestPanInfo = d, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), le((v) => {
6839
+ let b = this.getAxisMotionValue(v).get() || 0;
6840
+ if (ue.test(b)) {
6841
6841
  const { projection: T } = this.visualElement;
6842
6842
  if (T && T.layout) {
6843
- const k = T.layout.layoutBox[y];
6844
- k && (v = jt(k) * (parseFloat(v) / 100));
6843
+ const k = T.layout.layoutBox[v];
6844
+ k && (b = jt(k) * (parseFloat(b) / 100));
6845
6845
  }
6846
6846
  }
6847
- this.originPoint[y] = v;
6848
- }), x && Q.update(() => x(d, f), !1, !0), js(this.visualElement, "transform");
6849
- const { animationState: b } = this.visualElement;
6850
- b && b.setActive("whileDrag", !0);
6851
- }, a = (d, f) => {
6852
- this.latestPointerEvent = d, this.latestPanInfo = f;
6853
- const { dragPropagation: p, dragDirectionLock: g, onDirectionLock: x, onDrag: b } = this.getProps();
6847
+ this.originPoint[v] = b;
6848
+ }), w && Q.update(() => w(f, d), !1, !0), js(this.visualElement, "transform");
6849
+ const { animationState: y } = this.visualElement;
6850
+ y && y.setActive("whileDrag", !0);
6851
+ }, a = (f, d) => {
6852
+ this.latestPointerEvent = f, this.latestPanInfo = d;
6853
+ const { dragPropagation: p, dragDirectionLock: g, onDirectionLock: w, onDrag: y } = this.getProps();
6854
6854
  if (!p && !this.openDragLock)
6855
6855
  return;
6856
- const { offset: y } = f;
6856
+ const { offset: v } = d;
6857
6857
  if (g && this.currentDirection === null) {
6858
- this.currentDirection = em(y), this.currentDirection !== null && x && x(this.currentDirection);
6858
+ this.currentDirection = em(v), this.currentDirection !== null && w && w(this.currentDirection);
6859
6859
  return;
6860
6860
  }
6861
- this.updateAxis("x", f.point, y), this.updateAxis("y", f.point, y), this.visualElement.render(), b && Q.update(() => b(d, f), !1, !0);
6862
- }, l = (d, f) => {
6863
- this.latestPointerEvent = d, this.latestPanInfo = f, this.stop(d, f), this.latestPointerEvent = null, this.latestPanInfo = null;
6861
+ this.updateAxis("x", d.point, v), this.updateAxis("y", d.point, v), this.visualElement.render(), y && Q.update(() => y(f, d), !1, !0);
6862
+ }, l = (f, d) => {
6863
+ this.latestPointerEvent = f, this.latestPanInfo = d, this.stop(f, d), this.latestPointerEvent = null, this.latestPanInfo = null;
6864
6864
  }, c = () => {
6865
- const { dragSnapToOrigin: d } = this.getProps();
6866
- (d || this.constraints) && this.startAnimation({ x: 0, y: 0 });
6865
+ const { dragSnapToOrigin: f } = this.getProps();
6866
+ (f || this.constraints) && this.startAnimation({ x: 0, y: 0 });
6867
6867
  }, { dragSnapToOrigin: u } = this.getProps();
6868
6868
  this.panSession = new uc(e, {
6869
6869
  onSessionStart: o,
@@ -6946,18 +6946,18 @@ class Qp {
6946
6946
  const { drag: n, dragMomentum: i, dragElastic: s, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = le((u) => {
6947
6947
  if (!ai(u, n, this.currentDirection))
6948
6948
  return;
6949
- let d = l[u] || {};
6950
- r && (d = { min: 0, max: 0 });
6951
- const f = s ? 200 : 1e6, p = s ? 40 : 1e7, g = {
6949
+ let f = l[u] || {};
6950
+ r && (f = { min: 0, max: 0 });
6951
+ const d = s ? 200 : 1e6, p = s ? 40 : 1e7, g = {
6952
6952
  type: "inertia",
6953
6953
  velocity: i ? e[u] : 0,
6954
- bounceStiffness: f,
6954
+ bounceStiffness: d,
6955
6955
  bounceDamping: p,
6956
6956
  timeConstant: 750,
6957
6957
  restDelta: 1,
6958
6958
  restSpeed: 10,
6959
6959
  ...o,
6960
- ...d
6960
+ ...f
6961
6961
  };
6962
6962
  return this.startAxisValueAnimation(u, g);
6963
6963
  });
@@ -7025,8 +7025,8 @@ class Qp {
7025
7025
  return;
7026
7026
  Jp.set(this.visualElement, this);
7027
7027
  const e = this.visualElement.current, n = On(e, "pointerdown", (c) => {
7028
- const { drag: u, dragListener: d = !0 } = this.getProps(), f = c.target, p = f !== e && _f(f);
7029
- u && d && !p && this.start(c);
7028
+ const { drag: u, dragListener: f = !0 } = this.getProps(), d = c.target, p = d !== e && _f(d);
7029
+ u && f && !p && this.start(c);
7030
7030
  });
7031
7031
  let i;
7032
7032
  const s = () => {
@@ -7035,9 +7035,9 @@ class Qp {
7035
7035
  }, { projection: o } = this.visualElement, r = o.addEventListener("measure", s);
7036
7036
  o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), Q.read(s);
7037
7037
  const a = $n(window, "resize", () => this.scalePositionWithinConstraints()), l = o.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: u }) => {
7038
- this.isDragging && u && (le((d) => {
7039
- const f = this.getAxisMotionValue(d);
7040
- f && (this.originPoint[d] += c[d].translate, f.set(f.get() + c[d].translate));
7038
+ this.isDragging && u && (le((f) => {
7039
+ const d = this.getAxisMotionValue(f);
7040
+ d && (this.originPoint[f] += c[f].translate, d.set(d.get() + c[f].translate));
7041
7041
  }), this.visualElement.render());
7042
7042
  });
7043
7043
  return () => {
@@ -7284,8 +7284,8 @@ class pm extends Me {
7284
7284
  if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
7285
7285
  return;
7286
7286
  c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c);
7287
- const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), f = c ? u : d;
7288
- f && f(l);
7287
+ const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), d = c ? u : f;
7288
+ d && d(l);
7289
7289
  };
7290
7290
  return fm(this.node.current, r, a);
7291
7291
  }
@@ -7456,7 +7456,7 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7456
7456
  d: "m6 6 12 12"
7457
7457
  })
7458
7458
  ]
7459
- }), Vm = () => /* @__PURE__ */ h.jsxs(wn, {
7459
+ }), Lm = () => /* @__PURE__ */ h.jsxs(wn, {
7460
7460
  title: "Circle Alert",
7461
7461
  children: [
7462
7462
  /* @__PURE__ */ h.jsx("circle", {
@@ -7477,19 +7477,19 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7477
7477
  y2: "16"
7478
7478
  })
7479
7479
  ]
7480
- }), Lm = () => /* @__PURE__ */ h.jsx(wn, {
7480
+ }), Vm = () => /* @__PURE__ */ h.jsx(wn, {
7481
7481
  title: "Check",
7482
7482
  children: /* @__PURE__ */ h.jsx("path", {
7483
7483
  d: "M20 6 9 17l-5-5"
7484
7484
  })
7485
7485
  }), ca = {
7486
- success: /* @__PURE__ */ h.jsx(Lm, {}),
7486
+ success: /* @__PURE__ */ h.jsx(Vm, {}),
7487
7487
  loading: /* @__PURE__ */ h.jsx(Dm, {
7488
7488
  "data-sileo-icon": "spin",
7489
7489
  "aria-hidden": "true"
7490
7490
  }),
7491
7491
  error: /* @__PURE__ */ h.jsx(Rm, {}),
7492
- warning: /* @__PURE__ */ h.jsx(Vm, {}),
7492
+ warning: /* @__PURE__ */ h.jsx(Lm, {}),
7493
7493
  info: /* @__PURE__ */ h.jsx(Mm, {}),
7494
7494
  action: /* @__PURE__ */ h.jsx(jm, {})
7495
7495
  }, Om = /* @__PURE__ */ va(function({ filterId: e, blur: n }) {
@@ -7521,7 +7521,7 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7521
7521
  ]
7522
7522
  })
7523
7523
  });
7524
- }), Im = /* @__PURE__ */ va(function({ id: e, fill: n = "#FFFFFF", state: i = "success", title: s = i, description: o, position: r = "left", expand: a = "bottom", className: l, icon: c, styles: u, button: d, roundness: f, exiting: p = !1, autoExpandDelayMs: g, autoCollapseDelayMs: x, canExpand: b, interruptKey: y, refreshKey: v, onMouseEnter: T, onMouseLeave: k, onDismiss: w }) {
7524
+ }), Im = /* @__PURE__ */ va(function({ id: e, fill: n = "#FFFFFF", state: i = "success", title: s = i, description: o, position: r = "left", expand: a = "bottom", className: l, icon: c, styles: u, button: f, roundness: d, exiting: p = !1, autoExpandDelayMs: g, autoCollapseDelayMs: w, canExpand: y, interruptKey: v, refreshKey: b, onMouseEnter: T, onMouseLeave: k, onDismiss: x }) {
7525
7525
  var j, D, M, O, B, tt, wt, At;
7526
7526
  const J = Et(() => ({
7527
7527
  title: s,
@@ -7529,7 +7529,7 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7529
7529
  state: i,
7530
7530
  icon: c,
7531
7531
  styles: u,
7532
- button: d,
7532
+ button: f,
7533
7533
  fill: n
7534
7534
  }), [
7535
7535
  s,
@@ -7537,15 +7537,15 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7537
7537
  i,
7538
7538
  c,
7539
7539
  u,
7540
- d,
7540
+ f,
7541
7541
  n
7542
- ]), [z, rt] = N(J), [H, Y] = N(v), [ot, nt] = N(!1), [yt, He] = N(!1), [Qt, te] = N(0), [at, et] = N(0), G = !!z.description || !!z.button, lt = z.state === "loading", K = G && ot && !lt, Mt = lt ? !1 : b ?? (!y || y === e), ee = `${z.state}-${z.title}`, ne = `sileo-gooey-${e}`, ie = Math.max(0, f ?? wm), ye = ie * Pm, We = U(null), Kn = U(null), se = U(null), ve = U(null), be = U(null), Ht = U(null), m = U(v), L = U(null), [R, W] = N({
7542
+ ]), [z, rt] = I(J), [H, Y] = I(b), [ot, nt] = I(!1), [yt, He] = I(!1), [Qt, te] = I(0), [at, et] = I(0), G = !!z.description || !!z.button, lt = z.state === "loading", K = G && ot && !lt, Mt = lt ? !1 : y ?? (!v || v === e), ee = `${z.state}-${z.title}`, ne = `sileo-gooey-${e}`, ie = Math.max(0, d ?? wm), ye = ie * Pm, We = U(null), Kn = U(null), se = U(null), ve = U(null), be = U(null), Ht = U(null), m = U(b), V = U(null), [R, W] = I({
7543
7543
  current: {
7544
7544
  key: ee,
7545
7545
  view: z
7546
7546
  },
7547
7547
  prev: null
7548
- }), ft = U(null), X = U(null), F = U(null), Lt = U(0), Wt = U(null);
7548
+ }), ft = U(null), X = U(null), F = U(null), Vt = U(0), Wt = U(null);
7549
7549
  Rn(() => {
7550
7550
  const _ = ft.current, ht = We.current;
7551
7551
  if (!_ || !ht) return;
@@ -7558,7 +7558,7 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7558
7558
  const Dt = _.scrollWidth + xt + li;
7559
7559
  Dt > li && te((re) => re === Dt ? re : Dt);
7560
7560
  })(), F.current || (F.current = new ResizeObserver(() => {
7561
- cancelAnimationFrame(Lt.current), Lt.current = requestAnimationFrame(() => {
7561
+ cancelAnimationFrame(Vt.current), Vt.current = requestAnimationFrame(() => {
7562
7562
  var Dt;
7563
7563
  const re = ft.current, Bc = (Dt = X.current) != null ? Dt : 0;
7564
7564
  if (!re) return;
@@ -7570,7 +7570,7 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7570
7570
  R.current.key
7571
7571
  ]), q(() => () => {
7572
7572
  var _;
7573
- cancelAnimationFrame(Lt.current), (_ = F.current) == null || _.disconnect();
7573
+ cancelAnimationFrame(Vt.current), (_ = F.current) == null || _.disconnect();
7574
7574
  }, []), Rn(() => {
7575
7575
  if (!G) {
7576
7576
  et(0);
@@ -7623,21 +7623,21 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7623
7623
  }, [
7624
7624
  R.prev
7625
7625
  ]), q(() => {
7626
- if (v === void 0) {
7627
- rt(J), Y(void 0), L.current = null, m.current = v;
7626
+ if (b === void 0) {
7627
+ rt(J), Y(void 0), V.current = null, m.current = b;
7628
7628
  return;
7629
7629
  }
7630
- m.current !== v && (m.current = v, Ht.current && (clearTimeout(Ht.current), Ht.current = null), K ? (L.current = {
7631
- key: v,
7630
+ m.current !== b && (m.current = b, Ht.current && (clearTimeout(Ht.current), Ht.current = null), K ? (V.current = {
7631
+ key: b,
7632
7632
  payload: J
7633
7633
  }, nt(!1), Ht.current = window.setTimeout(() => {
7634
7634
  Ht.current = null;
7635
- const _ = L.current;
7636
- _ && (rt(_.payload), Y(_.key), L.current = null);
7637
- }, Cm)) : (L.current = null, rt(J), Y(v)));
7635
+ const _ = V.current;
7636
+ _ && (rt(_.payload), Y(_.key), V.current = null);
7637
+ }, Cm)) : (V.current = null, rt(J), Y(b)));
7638
7638
  }, [
7639
7639
  K,
7640
- v,
7640
+ b,
7641
7641
  J
7642
7642
  ]), q(() => {
7643
7643
  if (!G) return;
@@ -7645,13 +7645,13 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7645
7645
  nt(!1);
7646
7646
  return;
7647
7647
  }
7648
- if (g == null && x == null) return;
7649
- const _ = g ?? 0, ht = x ?? 0;
7648
+ if (g == null && w == null) return;
7649
+ const _ = g ?? 0, ht = w ?? 0;
7650
7650
  return _ > 0 ? ve.current = window.setTimeout(() => nt(!0), _) : nt(!0), ht > 0 && (be.current = window.setTimeout(() => nt(!1), ht)), () => {
7651
7651
  ve.current && clearTimeout(ve.current), be.current && clearTimeout(be.current);
7652
7652
  };
7653
7653
  }, [
7654
- x,
7654
+ w,
7655
7655
  g,
7656
7656
  G,
7657
7657
  Mt,
@@ -7708,14 +7708,14 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7708
7708
  k == null || k(_), nt(!1);
7709
7709
  }, [
7710
7710
  k
7711
- ]), Vc = ct((_) => {
7711
+ ]), Lc = ct((_) => {
7712
7712
  if (_.propertyName !== "height" && _.propertyName !== "transform" || K) return;
7713
- const ht = L.current;
7714
- ht && (Ht.current && (clearTimeout(Ht.current), Ht.current = null), rt(ht.payload), Y(ht.key), L.current = null);
7713
+ const ht = V.current;
7714
+ ht && (Ht.current && (clearTimeout(Ht.current), Ht.current = null), rt(ht.payload), Y(ht.key), V.current = null);
7715
7715
  }, [
7716
7716
  K
7717
- ]), Lc = 30, Oc = 20, Zn = U(null), qe = U(null), Jn = U(w);
7718
- Jn.current = w;
7717
+ ]), Vc = 30, Oc = 20, Zn = U(null), qe = U(null), Jn = U(x);
7718
+ Jn.current = x;
7719
7719
  const Ii = U(null);
7720
7720
  if (!Ii.current) {
7721
7721
  const _ = {
@@ -7729,7 +7729,7 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7729
7729
  const xt = Zn.current;
7730
7730
  if (qe.current === null || !xt) return;
7731
7731
  const _t = ht.clientY - qe.current;
7732
- qe.current = null, xt.style.transform = "", xt.removeEventListener("pointermove", _.onMove), xt.removeEventListener("pointerup", _.onUp), Math.abs(_t) > Lc && (Jn.current == null || Jn.current.call(Jn));
7732
+ qe.current = null, xt.style.transform = "", xt.removeEventListener("pointermove", _.onMove), xt.removeEventListener("pointerup", _.onUp), Math.abs(_t) > Vc && (Jn.current == null || Jn.current.call(Jn));
7733
7733
  }
7734
7734
  };
7735
7735
  Ii.current = _;
@@ -7740,7 +7740,7 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7740
7740
  }, [
7741
7741
  z.button
7742
7742
  ]), Nc = ct((_) => {
7743
- if (p || !w || _.target.closest("[data-sileo-button]")) return;
7743
+ if (p || !x || _.target.closest("[data-sileo-button]")) return;
7744
7744
  qe.current = _.clientY, _.currentTarget.setPointerCapture(_.pointerId);
7745
7745
  const xt = Zn.current, _t = Ii.current;
7746
7746
  xt && _t && (xt.addEventListener("pointermove", _t.onMove, {
@@ -7750,7 +7750,7 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7750
7750
  }));
7751
7751
  }, [
7752
7752
  p,
7753
- w
7753
+ x
7754
7754
  ]);
7755
7755
  return /* @__PURE__ */ h.jsxs("button", {
7756
7756
  ref: Zn,
@@ -7766,7 +7766,7 @@ const oe = 40, kn = 350, wm = 16, hc = 600, xm = hc / 1e3, bn = 6e3, Tm = bn * 0
7766
7766
  style: Mc,
7767
7767
  onMouseEnter: Dc,
7768
7768
  onMouseLeave: Rc,
7769
- onTransitionEnd: Vc,
7769
+ onTransitionEnd: Lc,
7770
7770
  onPointerDown: Nc,
7771
7771
  children: [
7772
7772
  /* @__PURE__ */ h.jsx("div", {
@@ -7987,7 +7987,7 @@ const Fm = () => `${++_m}-${Date.now().toString(36)}-${Math.random().toString(36
7987
7987
  clear: (t) => St.update((e) => t ? e.filter((n) => n.position !== t) : [])
7988
7988
  };
7989
7989
  function zm({ children: t, position: e = "top-right", offset: n, options: i }) {
7990
- const [s, o] = N(St.toasts), [r, a] = N(), l = U(!1), c = U(/* @__PURE__ */ new Map()), u = U(s), d = U(void 0), f = U(/* @__PURE__ */ new Map());
7990
+ const [s, o] = I(St.toasts), [r, a] = I(), l = U(!1), c = U(/* @__PURE__ */ new Map()), u = U(s), f = U(void 0), d = U(/* @__PURE__ */ new Map());
7991
7991
  q(() => {
7992
7992
  St.position = e, St.options = i;
7993
7993
  }, [
@@ -7995,11 +7995,11 @@ function zm({ children: t, position: e = "top-right", offset: n, options: i }) {
7995
7995
  i
7996
7996
  ]);
7997
7997
  const p = ct(() => {
7998
- for (const w of c.current.values()) clearTimeout(w);
7998
+ for (const x of c.current.values()) clearTimeout(x);
7999
7999
  c.current.clear();
8000
- }, []), g = ct((w) => {
8000
+ }, []), g = ct((x) => {
8001
8001
  if (!l.current)
8002
- for (const D of w) {
8002
+ for (const D of x) {
8003
8003
  var j;
8004
8004
  if (D.exiting) continue;
8005
8005
  const M = ua(D);
@@ -8009,57 +8009,57 @@ function zm({ children: t, position: e = "top-right", offset: n, options: i }) {
8009
8009
  }
8010
8010
  }, []);
8011
8011
  q(() => {
8012
- const w = (j) => o(j);
8013
- return St.listeners.add(w), () => {
8014
- St.listeners.delete(w), p();
8012
+ const x = (j) => o(j);
8013
+ return St.listeners.add(x), () => {
8014
+ St.listeners.delete(x), p();
8015
8015
  };
8016
8016
  }, [
8017
8017
  p
8018
8018
  ]), q(() => {
8019
8019
  u.current = s;
8020
- const w = new Set(s.map(ua)), j = new Set(s.map((D) => D.id));
8020
+ const x = new Set(s.map(ua)), j = new Set(s.map((D) => D.id));
8021
8021
  for (const [D, M] of c.current)
8022
- w.has(D) || (clearTimeout(M), c.current.delete(D));
8023
- for (const D of f.current.keys())
8024
- j.has(D) || f.current.delete(D);
8022
+ x.has(D) || (clearTimeout(M), c.current.delete(D));
8023
+ for (const D of d.current.keys())
8024
+ j.has(D) || d.current.delete(D);
8025
8025
  g(s);
8026
8026
  }, [
8027
8027
  s,
8028
8028
  g
8029
8029
  ]);
8030
- const x = U(null), b = U(null);
8031
- x.current = ct(() => {
8030
+ const w = U(null), y = U(null);
8031
+ w.current = ct(() => {
8032
8032
  l.current || (l.current = !0, p());
8033
8033
  }, [
8034
8034
  p
8035
- ]), b.current = ct(() => {
8035
+ ]), y.current = ct(() => {
8036
8036
  l.current && (l.current = !1, g(u.current));
8037
8037
  }, [
8038
8038
  g
8039
8039
  ]);
8040
- const y = Et(() => {
8041
- for (let w = s.length - 1; w >= 0; w--)
8042
- if (!s[w].exiting) return s[w].id;
8040
+ const v = Et(() => {
8041
+ for (let x = s.length - 1; x >= 0; x--)
8042
+ if (!s[x].exiting) return s[x].id;
8043
8043
  }, [
8044
8044
  s
8045
8045
  ]);
8046
8046
  q(() => {
8047
- d.current = y, a(y);
8047
+ f.current = v, a(v);
8048
8048
  }, [
8049
- y
8049
+ v
8050
8050
  ]);
8051
- const v = ct((w) => {
8052
- let j = f.current.get(w);
8051
+ const b = ct((x) => {
8052
+ let j = d.current.get(x);
8053
8053
  return j || (j = {
8054
8054
  enter: (D) => {
8055
- a((M) => M === w ? M : w), x.current == null || x.current.call(x, D);
8055
+ a((M) => M === x ? M : x), w.current == null || w.current.call(w, D);
8056
8056
  },
8057
8057
  leave: (D) => {
8058
- a((M) => M === d.current ? M : d.current), b.current == null || b.current.call(b, D);
8058
+ a((M) => M === f.current ? M : f.current), y.current == null || y.current.call(y, D);
8059
8059
  },
8060
- dismiss: () => _s(w)
8061
- }, f.current.set(w, j), j);
8062
- }, []), T = ct((w) => {
8060
+ dismiss: () => _s(x)
8061
+ }, d.current.set(x, j), j);
8062
+ }, []), T = ct((x) => {
8063
8063
  if (n === void 0) return;
8064
8064
  const j = typeof n == "object" ? n : {
8065
8065
  top: n,
@@ -8067,19 +8067,19 @@ function zm({ children: t, position: e = "top-right", offset: n, options: i }) {
8067
8067
  bottom: n,
8068
8068
  left: n
8069
8069
  }, D = {}, M = (O) => typeof O == "number" ? `${O}px` : O;
8070
- return w.startsWith("top") && j.top && (D.top = M(j.top)), w.startsWith("bottom") && j.bottom && (D.bottom = M(j.bottom)), w.endsWith("left") && j.left && (D.left = M(j.left)), w.endsWith("right") && j.right && (D.right = M(j.right)), D;
8070
+ return x.startsWith("top") && j.top && (D.top = M(j.top)), x.startsWith("bottom") && j.bottom && (D.bottom = M(j.bottom)), x.endsWith("left") && j.left && (D.left = M(j.left)), x.endsWith("right") && j.right && (D.right = M(j.right)), D;
8071
8071
  }, [
8072
8072
  n
8073
8073
  ]), k = Et(() => {
8074
- const w = /* @__PURE__ */ new Map();
8074
+ const x = /* @__PURE__ */ new Map();
8075
8075
  for (const D of s) {
8076
8076
  var j;
8077
- const M = (j = D.position) != null ? j : e, O = w.get(M);
8078
- O ? O.push(D) : w.set(M, [
8077
+ const M = (j = D.position) != null ? j : e, O = x.get(M);
8078
+ O ? O.push(D) : x.set(M, [
8079
8079
  D
8080
8080
  ]);
8081
8081
  }
8082
- return w;
8082
+ return x;
8083
8083
  }, [
8084
8084
  s,
8085
8085
  e
@@ -8087,15 +8087,15 @@ function zm({ children: t, position: e = "top-right", offset: n, options: i }) {
8087
8087
  return /* @__PURE__ */ h.jsxs(h.Fragment, {
8088
8088
  children: [
8089
8089
  t,
8090
- Array.from(k, ([w, j]) => {
8091
- const D = Nm(w), M = Bm(w);
8090
+ Array.from(k, ([x, j]) => {
8091
+ const D = Nm(x), M = Bm(x);
8092
8092
  return /* @__PURE__ */ h.jsx("section", {
8093
8093
  "data-sileo-viewport": !0,
8094
- "data-position": w,
8094
+ "data-position": x,
8095
8095
  "aria-live": "polite",
8096
- style: T(w),
8096
+ style: T(x),
8097
8097
  children: j.map((O) => {
8098
- const B = v(O.id);
8098
+ const B = b(O.id);
8099
8099
  return /* @__PURE__ */ h.jsx(Im, {
8100
8100
  id: O.id,
8101
8101
  state: O.state,
@@ -8118,7 +8118,7 @@ function zm({ children: t, position: e = "top-right", offset: n, options: i }) {
8118
8118
  onDismiss: B.dismiss
8119
8119
  }, O.id);
8120
8120
  })
8121
- }, w);
8121
+ }, x);
8122
8122
  })
8123
8123
  ]
8124
8124
  });
@@ -8130,12 +8130,12 @@ const gc = () => ({
8130
8130
  warning: (o, r) => jn.warning({ title: o, description: r }),
8131
8131
  promise: (o, r) => jn.promise(o, r)
8132
8132
  }), yc = Nt(), T0 = ({ children: t }) => {
8133
- const { sileoToastEnabled: e, customDeviceType: n } = Jt(), { success: i, error: s, info: o, warning: r } = gc(), a = Pu(), [l, c] = N(!1), [u, d] = N(), [f, p] = N(), g = n || a.type, T = {
8133
+ const { sileoToastEnabled: e, customDeviceType: n } = Jt(), { success: i, error: s, info: o, warning: r } = gc(), a = Pu(), [l, c] = I(!1), [u, f] = I(), [d, p] = I(), g = n || a.type, T = {
8134
8134
  showAlert: l,
8135
8135
  setShowAlert: c,
8136
8136
  typeAlert: u,
8137
- setTypeAlert: d,
8138
- messageAlert: f,
8137
+ setTypeAlert: f,
8138
+ messageAlert: d,
8139
8139
  setMessageAlert: p,
8140
8140
  alertConfig: {
8141
8141
  danger: {
@@ -8186,28 +8186,28 @@ const gc = () => ({
8186
8186
  closeAlert: () => {
8187
8187
  c(!l);
8188
8188
  },
8189
- activeAlert: (k, w, j = null) => {
8189
+ activeAlert: (k, x, j = null) => {
8190
8190
  if (c(!1), e && !j && ["mobile", "tablet"].includes(g)) {
8191
8191
  switch (k) {
8192
8192
  case "danger":
8193
- s("Errore", w);
8193
+ s("Errore", x);
8194
8194
  break;
8195
8195
  case "info":
8196
- o("Info", w);
8196
+ o("Info", x);
8197
8197
  break;
8198
8198
  case "success":
8199
- i("Successo", w);
8199
+ i("Successo", x);
8200
8200
  break;
8201
8201
  case "warning":
8202
- r("Attenzione", w);
8202
+ r("Attenzione", x);
8203
8203
  break;
8204
8204
  default:
8205
- o("Info", w);
8205
+ o("Info", x);
8206
8206
  }
8207
8207
  return;
8208
8208
  }
8209
8209
  setTimeout(() => {
8210
- d(k), p(w), c(!0);
8210
+ f(k), p(x), c(!0);
8211
8211
  }, 50);
8212
8212
  }
8213
8213
  };
@@ -8226,8 +8226,8 @@ const Um = async (t, e, n, i) => {
8226
8226
  baseURL: r
8227
8227
  }), Qe.interceptors.request.use(
8228
8228
  (u) => {
8229
- const d = JSON.parse(localStorage.getItem("accessToken"));
8230
- return d ? u.headers.Authorization = `Bearer ${d}` : delete u.headers.Authorization, u;
8229
+ const f = JSON.parse(localStorage.getItem("accessToken"));
8230
+ return f ? u.headers.Authorization = `Bearer ${f}` : delete u.headers.Authorization, u;
8231
8231
  }
8232
8232
  ), Qe.interceptors.response.use(
8233
8233
  (u) => u,
@@ -8250,7 +8250,7 @@ const Um = async (t, e, n, i) => {
8250
8250
  console.error(s);
8251
8251
  }
8252
8252
  }, da = (t, e) => {
8253
- const [n, i] = N(() => {
8253
+ const [n, i] = I(() => {
8254
8254
  try {
8255
8255
  const r = localStorage.getItem(e);
8256
8256
  return r === null ? (localStorage.setItem(e, JSON.stringify(t)), t) : JSON.parse(r);
@@ -8272,18 +8272,18 @@ const Um = async (t, e, n, i) => {
8272
8272
  n(), o();
8273
8273
  } };
8274
8274
  }, vc = Nt(), S0 = ({ children: t }) => {
8275
- const { heartbeatEndpoint: e, firstPrivatePath: n, infiniteSession: i, timeDeducted: s, authenticatedEndpoint: o, autoLogin: r, setCurrentDate: a, isDebug: l, backendToken: c, useCustomLoginTimeout: u, stopLoaderOnFinish: d, customLoginTimeout: f, tokenLog: p, timerInfiniteSession: g } = Jt(), { setIsLoading: x, showLoadingFor: b } = pn(), { setShowAlert: y, activeAlert: v } = Ue(), { token: T, setToken: k, setUser: w, storageLogout: j } = Yn(), D = zs(), [M, O] = N(null), [B, tt] = N(), [wt, At] = N(), [J, z] = N(!1), rt = async (at = Y, et, G) => await Um(v, at, et, G), H = async (at = null, et) => {
8275
+ const { heartbeatEndpoint: e, firstPrivatePath: n, infiniteSession: i, timeDeducted: s, authenticatedEndpoint: o, autoLogin: r, setCurrentDate: a, isDebug: l, backendToken: c, useCustomLoginTimeout: u, stopLoaderOnFinish: f, customLoginTimeout: d, tokenLog: p, timerInfiniteSession: g } = Jt(), { setIsLoading: w, showLoadingFor: y } = pn(), { setShowAlert: v, activeAlert: b } = Ue(), { token: T, setToken: k, setUser: x, storageLogout: j } = Yn(), D = zs(), [M, O] = I(null), [B, tt] = I(), [wt, At] = I(), [J, z] = I(!1), rt = async (at = Y, et, G) => await Um(b, at, et, G), H = async (at = null, et) => {
8276
8276
  at && at.preventDefault(), z(!0);
8277
8277
  try {
8278
- u ? b(f) : x(!0), y(!1);
8278
+ u ? y(d) : w(!0), v(!1);
8279
8279
  const lt = await (await rt()).post(o, {
8280
8280
  auth: et
8281
8281
  }), K = lt.headers.token, Mt = lt.data;
8282
- K && (w(Mt), k(K), O(!0), D(`${n}${Mt.id}`));
8282
+ K && (x(Mt), k(K), O(!0), D(`${n}${Mt.id}`));
8283
8283
  } catch (G) {
8284
- console.error(G), x(!1);
8284
+ console.error(G), w(!1);
8285
8285
  } finally {
8286
- z(!1), !u && d && x(!1);
8286
+ z(!1), !u && f && w(!1);
8287
8287
  }
8288
8288
  }, Y = () => {
8289
8289
  j(), O(!1);
@@ -8301,12 +8301,12 @@ const Um = async (t, e, n, i) => {
8301
8301
  try {
8302
8302
  const lt = Sr(et);
8303
8303
  if (!lt.exp) {
8304
- p && console.warn("[Auth]: Token senza data di scadenza, eseguo logout."), Y(), v("danger", G);
8304
+ p && console.warn("[Auth]: Token senza data di scadenza, eseguo logout."), Y(), b("danger", G);
8305
8305
  return;
8306
8306
  }
8307
8307
  const K = Math.floor(Date.now() / 1e3), Mt = (lt.exp - K) * 1e3;
8308
8308
  if (Mt <= 0) {
8309
- p && console.warn("[Auth]: Token scaduto, eseguo logout."), Y(), v("danger", G);
8309
+ p && console.warn("[Auth]: Token scaduto, eseguo logout."), Y(), b("danger", G);
8310
8310
  return;
8311
8311
  }
8312
8312
  At(Mt), tt(Mt - s);
@@ -8317,7 +8317,7 @@ const Um = async (t, e, n, i) => {
8317
8317
  }
8318
8318
  return ee;
8319
8319
  } catch (lt) {
8320
- p && console.error("[Auth]: Errore nella decodifica del token:", lt), Y(), v("danger", G);
8320
+ p && console.error("[Auth]: Errore nella decodifica del token:", lt), Y(), b("danger", G);
8321
8321
  }
8322
8322
  }, yt = (at) => {
8323
8323
  if (!at) return !1;
@@ -8330,7 +8330,7 @@ const Um = async (t, e, n, i) => {
8330
8330
  }, He = async (at) => {
8331
8331
  try {
8332
8332
  const lt = (await (await rt()).get(e)).data;
8333
- lt && (w(lt), k(at), O(!0), D(`${n}${lt.id}`));
8333
+ lt && (x(lt), k(at), O(!0), D(`${n}${lt.id}`));
8334
8334
  } catch (et) {
8335
8335
  console.error(et);
8336
8336
  }
@@ -8360,7 +8360,7 @@ const Um = async (t, e, n, i) => {
8360
8360
  }, et));
8361
8361
  let lt;
8362
8362
  return !i && T && (p && console.log("[Auth]: Entrato dentro il timer della sessione con scadenza del token"), lt = setTimeout(() => {
8363
- Y(), v("danger", "Sessione scaduta");
8363
+ Y(), b("danger", "Sessione scaduta");
8364
8364
  }, wt)), () => {
8365
8365
  G && clearInterval(G), lt && clearTimeout(lt);
8366
8366
  };
@@ -8401,7 +8401,7 @@ Esempio:
8401
8401
  const { login: e } = Oi(), { clearLoginFormOnError: n } = Jt(), i = {
8402
8402
  email: "",
8403
8403
  password: ""
8404
- }, [s, o] = N("Accedi"), [r, a] = N("Email"), [l, c] = N("email"), [u, d] = N("example@example.it"), [f, p] = N("Accedi"), [g, x] = N(i), [b, y] = N(), [v, T] = N(), [k, w] = N(), [j, D] = N(), [M, O] = N({}), [B, tt] = N(null), J = {
8404
+ }, [s, o] = I("Accedi"), [r, a] = I("Email"), [l, c] = I("email"), [u, f] = I("example@example.it"), [d, p] = I("Accedi"), [g, w] = I(i), [y, v] = I(), [b, T] = I(), [k, x] = I(), [j, D] = I(), [M, O] = I({}), [B, tt] = I(null), J = {
8405
8405
  overrideStyle: M,
8406
8406
  setOverrideStyle: O,
8407
8407
  title: s,
@@ -8411,24 +8411,24 @@ Esempio:
8411
8411
  type: l,
8412
8412
  setType: c,
8413
8413
  placeholder: u,
8414
- setPlaceholder: d,
8415
- buttonText: f,
8414
+ setPlaceholder: f,
8415
+ buttonText: d,
8416
8416
  setButtonText: p,
8417
8417
  formData: g,
8418
- setFormData: x,
8419
- LogoImg: b,
8420
- setLogoImg: y,
8421
- styleCardForm: v,
8418
+ setFormData: w,
8419
+ LogoImg: y,
8420
+ setLogoImg: v,
8421
+ styleCardForm: b,
8422
8422
  setStyleCardForm: T,
8423
8423
  styleContainerLogo: k,
8424
- setStyleContainerLogo: w,
8424
+ setStyleContainerLogo: x,
8425
8425
  styleLogo: j,
8426
8426
  setStyleLogo: D,
8427
8427
  changeData: (z, rt) => {
8428
- x((H) => ({ ...H, [z]: rt }));
8428
+ w((H) => ({ ...H, [z]: rt }));
8429
8429
  },
8430
8430
  handleLogin: (z) => {
8431
- e(z, g), n && x(i);
8431
+ e(z, g), n && w(i);
8432
8432
  },
8433
8433
  customVersion: B,
8434
8434
  setCustomVersion: tt
@@ -8439,10 +8439,10 @@ Esempio:
8439
8439
  if (t === void 0) throw new Error("Non puoi modificare La login");
8440
8440
  return t;
8441
8441
  }, Tc = Nt(), A0 = ({ children: t }) => {
8442
- const [e, n] = N(!1), [i, s] = N(null), [o, r] = N(""), [a, l] = N(null), [c, u] = N(null), [d, f] = N(null), [p, g] = N("modal-form"), [x, b] = N("submit"), [y, v] = N({}), [T, k] = N(null), [w, j] = N(null), [D, M] = N(null), O = ({ modalData: J = {}, component: z = null, title: rt = "", onConfirm: H = null, type: Y = "submit", formId: ot = "modal-form", item: nt = null, style: yt = {} } = {}) => {
8443
- k(J), s(() => z), r(rt), l(() => H), b(Y), g(ot), f(nt), v(yt), n(!0);
8442
+ const [e, n] = I(!1), [i, s] = I(null), [o, r] = I(""), [a, l] = I(null), [c, u] = I(null), [f, d] = I(null), [p, g] = I("modal-form"), [w, y] = I("submit"), [v, b] = I({}), [T, k] = I(null), [x, j] = I(null), [D, M] = I(null), O = ({ modalData: J = {}, component: z = null, title: rt = "", onConfirm: H = null, type: Y = "submit", formId: ot = "modal-form", item: nt = null, style: yt = {} } = {}) => {
8443
+ k(J), s(() => z), r(rt), l(() => H), y(Y), g(ot), d(nt), b(yt), n(!0);
8444
8444
  }, B = () => {
8445
- s(null), r(""), l(null), b("submit"), g("modal-form"), f(null), v({}), n(!1), k(null);
8445
+ s(null), r(""), l(null), y("submit"), g("modal-form"), d(null), b({}), n(!1), k(null);
8446
8446
  }, At = {
8447
8447
  isOpen: e,
8448
8448
  openModal: O,
@@ -8450,10 +8450,10 @@ Esempio:
8450
8450
  content: i,
8451
8451
  title: o,
8452
8452
  onConfirm: a,
8453
- type: x,
8454
- item: d,
8453
+ type: w,
8454
+ item: f,
8455
8455
  formId: p,
8456
- style: y,
8456
+ style: v,
8457
8457
  modalData: T,
8458
8458
  setModalData: k,
8459
8459
  handleChange: (J) => {
@@ -8466,7 +8466,7 @@ Esempio:
8466
8466
  handleSubmit: (J) => {
8467
8467
  J.preventDefault(), a && (a(T), B());
8468
8468
  },
8469
- headerContent: w,
8469
+ headerContent: x,
8470
8470
  setHeaderContent: j,
8471
8471
  footerContent: D,
8472
8472
  setFooterContent: M,
@@ -8490,49 +8490,49 @@ Esempio:
8490
8490
  document.title = i;
8491
8491
  }, [n, t, e]);
8492
8492
  }, C0 = (t, e, n = 1) => {
8493
- const i = U(null), [s, o] = N(!1), r = ct((p) => new Promise((g, x) => {
8493
+ const i = U(null), [s, o] = I(!1), r = ct((p) => new Promise((g, w) => {
8494
8494
  if (!i.current) {
8495
- x("DB non pronto");
8495
+ w("DB non pronto");
8496
8496
  return;
8497
8497
  }
8498
- const v = i.current.transaction(e, "readonly").objectStore(e).get(p);
8499
- v.onsuccess = () => g(v.result), v.onerror = (T) => x(T.target.error);
8498
+ const b = i.current.transaction(e, "readonly").objectStore(e).get(p);
8499
+ b.onsuccess = () => g(b.result), b.onerror = (T) => w(T.target.error);
8500
8500
  }), [e]), a = ct(() => new Promise((p, g) => {
8501
8501
  if (!i.current) return g("DB non pronto");
8502
- const y = i.current.transaction(e, "readonly").objectStore(e).getAll();
8503
- y.onsuccess = () => p(y.result), y.onerror = (v) => g(v.target.error);
8504
- }), [e]), l = ct((p) => new Promise((g, x) => {
8502
+ const v = i.current.transaction(e, "readonly").objectStore(e).getAll();
8503
+ v.onsuccess = () => p(v.result), v.onerror = (b) => g(b.target.error);
8504
+ }), [e]), l = ct((p) => new Promise((g, w) => {
8505
8505
  if (!i.current) {
8506
- x("DB non pronto");
8506
+ w("DB non pronto");
8507
8507
  return;
8508
8508
  }
8509
- const v = i.current.transaction(e, "readwrite").objectStore(e).put(p);
8510
- v.onsuccess = () => g(v.result), v.onerror = (T) => x(T.target.error);
8509
+ const b = i.current.transaction(e, "readwrite").objectStore(e).put(p);
8510
+ b.onsuccess = () => g(b.result), b.onerror = (T) => w(T.target.error);
8511
8511
  }), [e]), c = ct(async () => {
8512
8512
  let p = Date.now();
8513
8513
  for (; await r(p); )
8514
8514
  p++;
8515
8515
  return p;
8516
- }, [r]), u = ct(async (p) => (p.id || (p.id = await c()), l(p)), [c, l]), d = ct((p) => new Promise((g, x) => {
8516
+ }, [r]), u = ct(async (p) => (p.id || (p.id = await c()), l(p)), [c, l]), f = ct((p) => new Promise((g, w) => {
8517
8517
  if (!i.current) {
8518
- x("DB non pronto");
8518
+ w("DB non pronto");
8519
8519
  return;
8520
8520
  }
8521
- const v = i.current.transaction(e, "readwrite").objectStore(e).delete(p);
8522
- v.onsuccess = () => g(!0), v.onerror = (T) => x(T.target.error);
8523
- }), [e]), f = ct(() => new Promise((p, g) => {
8521
+ const b = i.current.transaction(e, "readwrite").objectStore(e).delete(p);
8522
+ b.onsuccess = () => g(!0), b.onerror = (T) => w(T.target.error);
8523
+ }), [e]), d = ct(() => new Promise((p, g) => {
8524
8524
  if (!i.current) {
8525
8525
  g("DB non pronto");
8526
8526
  return;
8527
8527
  }
8528
- const y = i.current.transaction(e, "readwrite").objectStore(e).clear();
8529
- y.onsuccess = () => p(!0), y.onerror = (v) => g(v.target.error);
8528
+ const v = i.current.transaction(e, "readwrite").objectStore(e).clear();
8529
+ v.onsuccess = () => p(!0), v.onerror = (b) => g(b.target.error);
8530
8530
  }), [e]);
8531
8531
  return q(() => {
8532
8532
  const p = indexedDB.open(t, n);
8533
8533
  return p.onupgradeneeded = (g) => {
8534
- const x = g.target.result;
8535
- x.objectStoreNames.contains(e) || x.createObjectStore(e, { keyPath: "id" });
8534
+ const w = g.target.result;
8535
+ w.objectStoreNames.contains(e) || w.createObjectStore(e, { keyPath: "id" });
8536
8536
  }, p.onsuccess = (g) => {
8537
8537
  i.current = g.target.result, o(!0);
8538
8538
  }, p.onerror = (g) => {
@@ -8546,12 +8546,12 @@ Esempio:
8546
8546
  getAll: a,
8547
8547
  set: l,
8548
8548
  setWithAutoId: u,
8549
- remove: d,
8550
- clear: f,
8549
+ remove: f,
8550
+ clear: d,
8551
8551
  isReady: s
8552
8552
  };
8553
8553
  }, k0 = () => {
8554
- const [t, e] = N(
8554
+ const [t, e] = I(
8555
8555
  window.innerWidth > window.innerHeight ? "landscape" : "portrait"
8556
8556
  );
8557
8557
  return q(() => {
@@ -8561,7 +8561,7 @@ Esempio:
8561
8561
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
8562
8562
  }, []), t;
8563
8563
  }, qm = (t = { getValues: !1 }) => {
8564
- const { getValues: e } = t, [n, i] = N(0), s = () => {
8564
+ const { getValues: e } = t, [n, i] = I(0), s = () => {
8565
8565
  const o = window.visualViewport ? window.visualViewport.height : window.innerHeight, r = o * 0.01;
8566
8566
  document.documentElement.style.setProperty("--vh", `${r}px`), e && i(o);
8567
8567
  };
@@ -8576,6 +8576,56 @@ Esempio:
8576
8576
  q(() => (t.includes(e.pathname) ? document.body.classList.remove("with-safe-area") : document.body.classList.add("with-safe-area"), () => {
8577
8577
  document.body.classList.remove("with-safe-area");
8578
8578
  }), [e.pathname, t]);
8579
+ }, M0 = (t = {}) => {
8580
+ const [e, n] = I(t), [i, s] = I({}), [o, r] = I({});
8581
+ return {
8582
+ values: e,
8583
+ handleChange: (d, p) => {
8584
+ n((g) => ({
8585
+ ...g,
8586
+ [d]: p
8587
+ }));
8588
+ },
8589
+ files: i,
8590
+ previews: o,
8591
+ addFiles: (d, p) => {
8592
+ const g = Array.from(p);
8593
+ s((y) => ({
8594
+ ...y,
8595
+ [d]: [...y[d] || [], ...g]
8596
+ }));
8597
+ const w = g.map((y) => URL.createObjectURL(y));
8598
+ r((y) => ({
8599
+ ...y,
8600
+ [d]: [...y[d] || [], ...w]
8601
+ }));
8602
+ },
8603
+ replaceFiles: (d, p) => {
8604
+ const g = Array.from(p);
8605
+ s((y) => ({
8606
+ ...y,
8607
+ [d]: g
8608
+ }));
8609
+ const w = g.map((y) => URL.createObjectURL(y));
8610
+ r((y) => ({
8611
+ ...y,
8612
+ [d]: w
8613
+ }));
8614
+ },
8615
+ removeFile: (d, p) => {
8616
+ s((g) => ({
8617
+ ...g,
8618
+ [d]: g[d].filter((w, y) => y !== p)
8619
+ })), r((g) => ({
8620
+ ...g,
8621
+ [d]: g[d].filter((w, y) => y !== p)
8622
+ }));
8623
+ },
8624
+ setValues: n,
8625
+ resetForm: () => {
8626
+ n(t), s({}), r({});
8627
+ }
8628
+ };
8579
8629
  };
8580
8630
  function Sc(t) {
8581
8631
  return ke({ tag: "svg", attr: { version: "1.1", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M8 0c-4.355 0-7.898 3.481-7.998 7.812 0.092-3.779 2.966-6.812 6.498-6.812 3.59 0 6.5 3.134 6.5 7 0 0.828 0.672 1.5 1.5 1.5s1.5-0.672 1.5-1.5c0-4.418-3.582-8-8-8zM8 16c4.355 0 7.898-3.481 7.998-7.812-0.092 3.779-2.966 6.812-6.498 6.812-3.59 0-6.5-3.134-6.5-7 0-0.828-0.672-1.5-1.5-1.5s-1.5 0.672-1.5 1.5c0 4.418 3.582 8 8 8z" }, child: [] }] })(t);
@@ -8591,18 +8641,18 @@ function Km(t) {
8591
8641
  return ke({ tag: "svg", attr: { viewBox: "0 0 15 15", fill: "none" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z", fill: "currentColor" }, child: [] }] })(t);
8592
8642
  }
8593
8643
  const fa = () => {
8594
- const { messageAlert: t, typeAlert: e, alertConfig: n, getIcon: i, closeAlert: s } = Ue(), { alertTimeout: o } = Jt(), [r, a] = N(0), { bgColor: l, textColor: c, buttonBg: u, hoverBg: d, focusRing: f, progressColor: p } = n[e];
8644
+ const { messageAlert: t, typeAlert: e, alertConfig: n, getIcon: i, closeAlert: s } = Ue(), { alertTimeout: o } = Jt(), [r, a] = I(0), { bgColor: l, textColor: c, buttonBg: u, hoverBg: f, focusRing: d, progressColor: p } = n[e];
8595
8645
  return q(() => {
8596
8646
  let g;
8597
- const b = 100 / (o / 100);
8647
+ const y = 100 / (o / 100);
8598
8648
  g = setInterval(() => {
8599
- a((v) => v >= 100 ? (clearInterval(g), 100) : v + b);
8649
+ a((b) => b >= 100 ? (clearInterval(g), 100) : b + y);
8600
8650
  }, 100);
8601
- const y = setTimeout(() => {
8651
+ const v = setTimeout(() => {
8602
8652
  s();
8603
8653
  }, o);
8604
8654
  return () => {
8605
- clearTimeout(y), clearInterval(g);
8655
+ clearTimeout(v), clearInterval(g);
8606
8656
  };
8607
8657
  }, []), // Contenitore dell'Alert
8608
8658
  /* @__PURE__ */ h.jsxs("div", { className: ` ${l} ${c} flex items-center min-h-[65px] max-h-[100px] p-4 pt-6 rounded-lg mx-auto max-sm:min-w-[240px] sm:max-w-1/3 fixed sm:top-[calc(100vh-100px)] top-[calc(100vh-115px)] sm:right-10 right-1/2 translate-x-1/2 sm:translate-0 z-100`, role: "alert", children: [
@@ -8613,7 +8663,7 @@ const fa = () => {
8613
8663
  "button",
8614
8664
  {
8615
8665
  type: "button",
8616
- className: `ms-auto ${u} rounded-lg focus:ring-2 ${f} p-1.5 ${d} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,
8666
+ className: `ms-auto ${u} rounded-lg focus:ring-2 ${d} p-1.5 ${f} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,
8617
8667
  title: "Close",
8618
8668
  onClick: s,
8619
8669
  children: /* @__PURE__ */ h.jsx(Km, { className: "text-xl" })
@@ -8621,7 +8671,7 @@ const fa = () => {
8621
8671
  )
8622
8672
  ] });
8623
8673
  }, Xm = ({ onClose: t, onConfirm: e, onCancel: n, type: i, formId: s, style: o }) => {
8624
- const r = o.resetButton ?? !0, a = o.confirmButtonText ?? (i === "delete" ? "Elimina" : "Salva"), l = o.cancelButtonText ?? "Annulla", c = o.bgSaveButton ?? "bg-indigo-600 rounded-lg shadow-md hover:bg-indigo-700 hover:shadow-lg active:bg-indigo-800 text-white", u = o.bgDeleteButton ?? "bg-rose-500 rounded-lg shadow-md hover:bg-rose-600 hover:shadow-lg active:bg-rose-700 text-white", d = o.bgResetButton ?? "bg-rose-500 rounded-lg shadow-md hover:bg-rose-600 hover:shadow-lg active:bg-rose-700 text-white", f = o.bgCancelButton ?? "text-gray-800 bg-gray-300 rounded-lg shadow-md hover:bg-gray-400 hover:shadow-lg active:bg-gray-500", p = i === "custom" ? o.customButtonStyle : null, g = {
8674
+ const r = o.resetButton ?? !0, a = o.confirmButtonText ?? (i === "delete" ? "Elimina" : "Salva"), l = o.cancelButtonText ?? "Annulla", c = o.bgSaveButton ?? "bg-indigo-600 rounded-lg shadow-md hover:bg-indigo-700 hover:shadow-lg active:bg-indigo-800 text-white", u = o.bgDeleteButton ?? "bg-rose-500 rounded-lg shadow-md hover:bg-rose-600 hover:shadow-lg active:bg-rose-700 text-white", f = o.bgResetButton ?? "bg-rose-500 rounded-lg shadow-md hover:bg-rose-600 hover:shadow-lg active:bg-rose-700 text-white", d = o.bgCancelButton ?? "text-gray-800 bg-gray-300 rounded-lg shadow-md hover:bg-gray-400 hover:shadow-lg active:bg-gray-500", p = i === "custom" ? o.customButtonStyle : null, g = {
8625
8675
  delete: () => {
8626
8676
  e == null || e(), t == null || t();
8627
8677
  },
@@ -8634,7 +8684,7 @@ const fa = () => {
8634
8684
  "button",
8635
8685
  {
8636
8686
  onClick: n || t,
8637
- className: `${f} px-4 py-2 cursor-pointer text-sm font-medium active:shadow-sm transition-all duration-150 ease-in-out hover:opacity-90 active:scale-95 active:opacity-70`,
8687
+ className: `${d} px-4 py-2 cursor-pointer text-sm font-medium active:shadow-sm transition-all duration-150 ease-in-out hover:opacity-90 active:scale-95 active:opacity-70`,
8638
8688
  children: l
8639
8689
  }
8640
8690
  ),
@@ -8644,7 +8694,7 @@ const fa = () => {
8644
8694
  {
8645
8695
  type: "reset",
8646
8696
  form: s,
8647
- className: `px-4 py-2 cursor-pointer text-sm font-medium ${d} active:shadow-sm transition-all duration-150 ease-in-out hover:opacity-90 active:scale-95 active:opacity-70`,
8697
+ className: `px-4 py-2 cursor-pointer text-sm font-medium ${f} active:shadow-sm transition-all duration-150 ease-in-out hover:opacity-90 active:scale-95 active:opacity-70`,
8648
8698
  children: "Reset"
8649
8699
  }
8650
8700
  ),
@@ -8654,8 +8704,8 @@ const fa = () => {
8654
8704
  type: i === "submit" ? "submit" : "button",
8655
8705
  form: i === "submit" ? s : void 0,
8656
8706
  onClick: () => {
8657
- var x;
8658
- return (x = g[i]) == null ? void 0 : x.call(g);
8707
+ var w;
8708
+ return (w = g[i]) == null ? void 0 : w.call(g);
8659
8709
  },
8660
8710
  className: p || `${i === "delete" ? u : c} px-4 py-2 cursor-pointer text-sm font-medium active:shadow-sm transition-all duration-150 ease-in-out hover:opacity-90 active:scale-95 active:opacity-70`,
8661
8711
  children: a
@@ -8682,42 +8732,42 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8682
8732
  children: /* @__PURE__ */ h.jsx(Zm, { className: "text-2xl" })
8683
8733
  }
8684
8734
  )
8685
- ] }), Qm = ({ type: t, children: e, item: n, overrideStyle: i }) => /* @__PURE__ */ h.jsx(h.Fragment, { children: t !== "delete" && /* @__PURE__ */ h.jsx("main", { className: i || "my-8 max-h-[600px] overflow-y-auto overflow-x-hidden", children: t === "delete" && !n ? /* @__PURE__ */ h.jsx("div", { className: "text-red-600 font-semibold", children: "Errore: nessun item selezionato per l'operazione." }) : e }) }), t0 = ({ isOpen: t, onClose: e, onCancel: n, title: i, formId: s, children: o, item: r, onConfirm: a, type: l = "submit", style: c = {}, headerContent: u, footerContent: d }) => {
8686
- const f = U(null), [p, g] = N(t), x = () => {
8735
+ ] }), Qm = ({ type: t, children: e, item: n, overrideStyle: i }) => /* @__PURE__ */ h.jsx(h.Fragment, { children: t !== "delete" && /* @__PURE__ */ h.jsx("main", { className: i || "my-8 max-h-[600px] overflow-y-auto overflow-x-hidden", children: t === "delete" && !n ? /* @__PURE__ */ h.jsx("div", { className: "text-red-600 font-semibold", children: "Errore: nessun item selezionato per l'operazione." }) : e }) }), t0 = ({ isOpen: t, onClose: e, onCancel: n, title: i, formId: s, children: o, item: r, onConfirm: a, type: l = "submit", style: c = {}, headerContent: u, footerContent: f }) => {
8736
+ const d = U(null), [p, g] = I(t), w = () => {
8687
8737
  t || g(!1);
8688
- }, b = c.width ?? (l === "delete" ? "max-w-md w-auto" : "w-full max-w-4xl"), y = c.bgModal ?? "bg-white", v = c.bgOverlay ?? "bg-black/50", T = c.zIndex ?? "z-50";
8738
+ }, y = c.width ?? (l === "delete" ? "max-w-md w-auto" : "w-full max-w-4xl"), v = c.bgModal ?? "bg-white", b = c.bgOverlay ?? "bg-black/50", T = c.zIndex ?? "z-50";
8689
8739
  return q(() => {
8690
8740
  t && g(!0);
8691
8741
  }, [t]), q(() => {
8692
- const k = (w) => {
8693
- w.key === "Escape" && (n ? n() : e());
8742
+ const k = (x) => {
8743
+ x.key === "Escape" && (n ? n() : e());
8694
8744
  };
8695
8745
  return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
8696
8746
  }, [e, n]), q(() => {
8697
8747
  var k;
8698
8748
  if (t) {
8699
- const w = document.activeElement;
8700
- return (k = f.current) == null || k.focus(), () => w == null ? void 0 : w.focus();
8749
+ const x = document.activeElement;
8750
+ return (k = d.current) == null || k.focus(), () => x == null ? void 0 : x.focus();
8701
8751
  }
8702
8752
  }, [t]), p ? Gc.createPortal(
8703
8753
  /* @__PURE__ */ h.jsx(
8704
8754
  "div",
8705
8755
  {
8706
- className: `fixed inset-0 ${T} flex items-center justify-center transition-opacity duration-200 ${t ? `${v} opacity-100` : "opacity-0"}`,
8756
+ className: c.overlayStyle || `fixed inset-0 ${T} flex items-center justify-center transition-opacity duration-200 ${t ? `${b} opacity-100` : "opacity-0"}`,
8707
8757
  onClick: n || e,
8708
8758
  onKeyDown: (k) => {
8709
- var w;
8710
- k.key === "Escape" && ((w = n || e) == null || w());
8759
+ var x;
8760
+ k.key === "Escape" && ((x = n || e) == null || x());
8711
8761
  },
8712
- onTransitionEnd: x,
8762
+ onTransitionEnd: w,
8713
8763
  role: "button",
8714
8764
  tabIndex: 0,
8715
8765
  "aria-label": "Chiudi modale",
8716
8766
  children: /* @__PURE__ */ h.jsxs(
8717
8767
  "div",
8718
8768
  {
8719
- ref: f,
8720
- className: `relative ${y} rounded-lg p-6 shadow-xl ${b} transform transition-transform duration-200 ${t ? "scale-100 opacity-100" : "scale-95 opacity-0"}`,
8769
+ ref: d,
8770
+ className: c.modalStyle || `relative ${v} rounded-lg p-6 shadow-xl ${y} transform transition-transform duration-200 ${t ? "scale-100 opacity-100" : "scale-95 opacity-0"}`,
8721
8771
  onClick: (k) => k.stopPropagation(),
8722
8772
  onKeyDown: (k) => {
8723
8773
  k.key === "Escape" && e();
@@ -8745,7 +8795,7 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8745
8795
  children: o
8746
8796
  }
8747
8797
  ),
8748
- d || /* @__PURE__ */ h.jsx(
8798
+ f || /* @__PURE__ */ h.jsx(
8749
8799
  Xm,
8750
8800
  {
8751
8801
  onClose: e,
@@ -8764,11 +8814,11 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8764
8814
  document.body
8765
8815
  ) : null;
8766
8816
  }, e0 = (t) => {
8767
- const { isLoading: e } = pn(), { showAlert: n } = Ue(), { sileoToastConfig: i, pwa: s } = Jt(), { isOpen: o, closeModal: r, onCancel: a, content: l, title: c, onConfirm: u, item: d, type: f, formId: p, style: g, headerContent: x, footerContent: b } = Wm(), y = zn(), {
8768
- isMain: v = !0,
8817
+ const { isLoading: e } = pn(), { showAlert: n } = Ue(), { sileoToastConfig: i, pwa: s } = Jt(), { isOpen: o, closeModal: r, onCancel: a, content: l, title: c, onConfirm: u, item: f, type: d, formId: p, style: g, headerContent: w, footerContent: y } = Wm(), v = zn(), {
8818
+ isMain: b = !0,
8769
8819
  headerComponent: T = null,
8770
8820
  showHeaderOnLogin: k = !1,
8771
- headerExcludedRoutes: w = [],
8821
+ headerExcludedRoutes: x = [],
8772
8822
  footerComponent: j = null,
8773
8823
  showFooterOnLogin: D = !1,
8774
8824
  footerExcludedRoutes: M = [],
@@ -8781,12 +8831,12 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8781
8831
  description: "text-white/75",
8782
8832
  badge: "bg-white/20"
8783
8833
  }
8784
- }, tt = i == null ? void 0 : i.position, wt = (i == null ? void 0 : i.options) || B, At = w.some((H) => us(H, y.pathname));
8834
+ }, tt = i == null ? void 0 : i.position, wt = (i == null ? void 0 : i.options) || B, At = x.some((H) => us(H, v.pathname));
8785
8835
  let J;
8786
- y.pathname === "/" ? J = T && k : J = T && !At;
8787
- const z = M.some((H) => us(H, y.pathname));
8836
+ v.pathname === "/" ? J = T && k : J = T && !At;
8837
+ const z = M.some((H) => us(H, v.pathname));
8788
8838
  let rt;
8789
- return y.pathname === "/" ? rt = j && D : rt = j && !z, /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
8839
+ return v.pathname === "/" ? rt = j && D : rt = j && !z, /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
8790
8840
  s && s.customPrompt && O,
8791
8841
  e && /* @__PURE__ */ h.jsx(Ym, {}),
8792
8842
  n && /* @__PURE__ */ h.jsx(fa, {}),
@@ -8806,16 +8856,16 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8806
8856
  title: c,
8807
8857
  formId: p,
8808
8858
  onConfirm: u,
8809
- type: f,
8810
- item: d,
8859
+ type: d,
8860
+ item: f,
8811
8861
  style: g,
8812
- headerContent: x,
8813
- footerContent: b,
8862
+ headerContent: w,
8863
+ footerContent: y,
8814
8864
  children: l
8815
8865
  }
8816
8866
  ),
8817
8867
  J && T,
8818
- v ? /* @__PURE__ */ h.jsxs("main", { className: e ? "hidden" : "", children: [
8868
+ b ? /* @__PURE__ */ h.jsxs("main", { className: e ? "hidden" : "", children: [
8819
8869
  n && /* @__PURE__ */ h.jsx(fa, {}),
8820
8870
  /* @__PURE__ */ h.jsx(_e, {})
8821
8871
  ] }) : /* @__PURE__ */ h.jsx(_e, {}),
@@ -8833,7 +8883,7 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8833
8883
  autoFocus: l,
8834
8884
  inputStyle: c,
8835
8885
  overrideStyle: u,
8836
- disabled: d
8886
+ disabled: f
8837
8887
  } = t, p = ["text", "email", "password", "search", "tel", "url"].includes(e) ? e : "text";
8838
8888
  return /* @__PURE__ */ h.jsx(
8839
8889
  "input",
@@ -8846,7 +8896,7 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8846
8896
  required: s ?? !0,
8847
8897
  value: o,
8848
8898
  onChange: r,
8849
- disabled: d,
8899
+ disabled: f,
8850
8900
  name: a
8851
8901
  }
8852
8902
  );
@@ -8923,7 +8973,7 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8923
8973
  !t && !i && !n && e("danger", "Non sei autorizzato");
8924
8974
  }, []), t === null ? null : t ? /* @__PURE__ */ h.jsx(_e, {}) : /* @__PURE__ */ h.jsx(ba, { to: "/", replace: !0 });
8925
8975
  }, s0 = ({ value: t, defaultValue: e = !1, onChange: n }) => {
8926
- const i = t !== void 0, [s, o] = N(e), r = i ? t : s, a = () => {
8976
+ const i = t !== void 0, [s, o] = I(e), r = i ? t : s, a = () => {
8927
8977
  const l = !r;
8928
8978
  i || o(l), n && n(l);
8929
8979
  };
@@ -8945,17 +8995,17 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8945
8995
  }
8946
8996
  );
8947
8997
  }, r0 = () => {
8948
- const { logout: t, createAxiosInstances: e } = Oi(), { usersEndpoint: n } = Jt(), { setIsLoading: i } = pn(), { activeAlert: s } = Ue(), { token: o, user: r } = Yn(), { success: a, error: l, info: c, warning: u, promise: d } = gc(), [f, p] = N(null), [g, x] = N(!1), [b, y] = N(!1), v = (B, tt) => d(B, {
8998
+ const { logout: t, createAxiosInstances: e } = Oi(), { usersEndpoint: n } = Jt(), { setIsLoading: i } = pn(), { activeAlert: s } = Ue(), { token: o, user: r } = Yn(), { success: a, error: l, info: c, warning: u, promise: f } = gc(), [d, p] = I(null), [g, w] = I(!1), [y, v] = I(!1), b = (B, tt) => f(B, {
8949
8999
  loading: { title: tt.loading || "Caricamento..." },
8950
9000
  success: { title: tt.success || "Fatto!" },
8951
9001
  error: { title: tt.error || "Errore!" }
8952
9002
  }), T = async () => {
8953
9003
  try {
8954
- if (x(!0), !o) {
9004
+ if (w(!0), !o) {
8955
9005
  t(), s("danger", "Sessione Scaduta");
8956
9006
  return;
8957
9007
  }
8958
- const B = await e(), wt = (await v(
9008
+ const B = await e(), wt = (await b(
8959
9009
  B.get(`${n}`),
8960
9010
  {
8961
9011
  loading: "Caricamento utenti...",
@@ -8967,18 +9017,18 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
8967
9017
  } catch (B) {
8968
9018
  console.error(B), i(!1);
8969
9019
  } finally {
8970
- x(!1);
9020
+ w(!1);
8971
9021
  }
8972
9022
  }, k = (B) => {
8973
- y(B), s("info", `Alert impostato su ${B ? "Mobile" : "Desktop"} `);
8974
- }, w = (B = "Operazione riuscita!") => {
8975
- b ? a("Successo", B) : s("success", B, !0);
9023
+ v(B), s("info", `Alert impostato su ${B ? "Mobile" : "Desktop"} `);
9024
+ }, x = (B = "Operazione riuscita!") => {
9025
+ y ? a("Successo", B) : s("success", B, !0);
8976
9026
  }, j = (B = "Si è verificato un errore!") => {
8977
- b ? l("Errore", B) : s("danger", B, !0);
9027
+ y ? l("Errore", B) : s("danger", B, !0);
8978
9028
  }, D = (B = "Informazione generica") => {
8979
- b ? c("Info", B) : s("info", B, !0);
9029
+ y ? c("Info", B) : s("info", B, !0);
8980
9030
  }, M = (B = "Attenzione!") => {
8981
- b ? u("Attenzione", B) : s("warning", B, !0);
9031
+ y ? u("Attenzione", B) : s("warning", B, !0);
8982
9032
  }, O = () => {
8983
9033
  t(), s("info", "Hai effettuato il logout");
8984
9034
  };
@@ -9001,7 +9051,7 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
9001
9051
  /* @__PURE__ */ h.jsx(
9002
9052
  "button",
9003
9053
  {
9004
- onClick: () => w("Questo è un toast di successo!"),
9054
+ onClick: () => x("Questo è un toast di successo!"),
9005
9055
  className: "bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded-full shadow-md transition-all",
9006
9056
  children: "Success"
9007
9057
  }
@@ -9032,7 +9082,7 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
9032
9082
  ),
9033
9083
  /* @__PURE__ */ h.jsxs("div", { className: "flex items-center gap-4 my-4", children: [
9034
9084
  /* @__PURE__ */ h.jsx("span", { children: "Desktop" }),
9035
- /* @__PURE__ */ h.jsx(s0, { value: b, onChange: k }),
9085
+ /* @__PURE__ */ h.jsx(s0, { value: y, onChange: k }),
9036
9086
  /* @__PURE__ */ h.jsx("span", { children: "Mobile" })
9037
9087
  ] })
9038
9088
  ] }),
@@ -9045,19 +9095,19 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
9045
9095
  children: "Lista degli utenti"
9046
9096
  }
9047
9097
  ) }),
9048
- /* @__PURE__ */ h.jsx("div", { className: "flex justify-center items-center", children: f && /* @__PURE__ */ h.jsx("ul", { children: f.map((B) => /* @__PURE__ */ h.jsxs("li", { className: "text-xl my-4", children: [
9098
+ /* @__PURE__ */ h.jsx("div", { className: "flex justify-center items-center", children: d && /* @__PURE__ */ h.jsx("ul", { children: d.map((B) => /* @__PURE__ */ h.jsxs("li", { className: "text-xl my-4", children: [
9049
9099
  B.id,
9050
9100
  " - ",
9051
9101
  B.email
9052
9102
  ] }, `user-${B.id}`)) }) })
9053
9103
  ] }) });
9054
- }, o0 = (t) => /* @__PURE__ */ V.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlSpace: "preserve", id: "svg1", width: 409.748, height: 409.748, viewBox: "0 0 108.413 108.413", ...t }, /* @__PURE__ */ V.createElement("defs", { id: "defs1" }, /* @__PURE__ */ V.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ V.createElement("stop", { id: "stop27", offset: 0, style: {
9104
+ }, o0 = (t) => /* @__PURE__ */ L.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlSpace: "preserve", id: "svg1", width: 409.748, height: 409.748, viewBox: "0 0 108.413 108.413", ...t }, /* @__PURE__ */ L.createElement("defs", { id: "defs1" }, /* @__PURE__ */ L.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ L.createElement("stop", { id: "stop27", offset: 0, style: {
9055
9105
  stopColor: "red",
9056
9106
  stopOpacity: 1
9057
- } }), /* @__PURE__ */ V.createElement("stop", { id: "stop28", offset: 1, style: {
9107
+ } }), /* @__PURE__ */ L.createElement("stop", { id: "stop28", offset: 1, style: {
9058
9108
  stopColor: "#ffca00",
9059
9109
  stopOpacity: 0.96862745
9060
- } })), /* @__PURE__ */ V.createElement("linearGradient", { xlinkHref: "#linearGradient27", id: "linearGradient28", x1: 35.002, x2: 143.414, y1: 192.355, y2: 83.942, gradientUnits: "userSpaceOnUse" })), /* @__PURE__ */ V.createElement("g", { id: "layer1", transform: "translate(-35.002 -83.942)" }, /* @__PURE__ */ V.createElement("rect", { id: "rect26", width: 108.413, height: 108.413, x: 35.002, y: 83.942, rx: 30, ry: 30, style: {
9110
+ } })), /* @__PURE__ */ L.createElement("linearGradient", { xlinkHref: "#linearGradient27", id: "linearGradient28", x1: 35.002, x2: 143.414, y1: 192.355, y2: 83.942, gradientUnits: "userSpaceOnUse" })), /* @__PURE__ */ L.createElement("g", { id: "layer1", transform: "translate(-35.002 -83.942)" }, /* @__PURE__ */ L.createElement("rect", { id: "rect26", width: 108.413, height: 108.413, x: 35.002, y: 83.942, rx: 30, ry: 30, style: {
9061
9111
  fill: "url(#linearGradient28)",
9062
9112
  fillOpacity: 1,
9063
9113
  fillRule: "evenodd",
@@ -9065,15 +9115,15 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
9065
9115
  strokeWidth: 0,
9066
9116
  strokeOpacity: 1,
9067
9117
  paintOrder: "stroke markers fill"
9068
- } }), /* @__PURE__ */ V.createElement("g", { id: "g1", style: {
9118
+ } }), /* @__PURE__ */ L.createElement("g", { id: "g1", style: {
9069
9119
  strokeWidth: 1.10252
9070
- }, transform: "translate(9.37 14.003)scale(.90701)" }, /* @__PURE__ */ V.createElement("path", { id: "path272", d: "M103.624 105.014c-.27.002-.79.209-1.004.4a2.5 2.5 0 0 0-.313.395l-.181.277-.018 18.064-.018 18.064h-3.047v-9.75c0-10.412-.004-10.52-.345-11.948-1.398-5.861-6.243-10.128-12.213-10.755-1.515-.16-19.836-.16-20.462-.003l-.002-.004-19.984 3.575 18.852 2.16v6.078l-17.36 3.103 17.36 1.99v6.523l-17.36 3.103 14.275 1.636-.016 4.905-.019 5.726-.63.126c-1.587.315-3.197 1.068-4.528 2.117-2.206 1.737-3.742 4.446-4.053 7.144-.37 3.213.552 6.199 2.657 8.602 1.688 1.926 4.174 3.26 6.696 3.592.824.108 2.933.031 3.671-.134.932-.21 1.79-.515 2.637-.939 2.065-1.033 3.824-2.775 4.827-4.784.504-1.01.91-2.207 1.026-3.029l.047-.329h18.828v.214c0 .117.064.468.142.78.904 3.589 3.509 6.46 6.975 7.686 1.343.475 1.946.568 3.655.564 1.32-.003 1.612-.025 2.182-.158 3.368-.785 6.026-2.86 7.515-5.865.44-.89.882-2.203.972-2.892l.043-.329 7.183-.002c7.08-.002 7.188-.003 7.495-.143.647-.293.9-.703.9-1.457 0-.569-.168-.945-.55-1.225-.505-.373-.225-.36-7.9-.36h-7.115l-.117-.597c-.261-1.329-.848-2.71-1.682-3.957-.57-.854-2.02-2.296-2.864-2.852-1.214-.798-2.805-1.463-4-1.673l-.502-.088-.018-21.17-.018-21.17-.154-.312c-.258-.521-.88-.903-1.465-.9zm9.34.76c-1.961 0-3.686 1.068-4.532 2.806-.536 1.103-.53 1.026-.507 6.443l.02 4.78.189.556c.62 1.83 2.225 3.176 4.083 3.424.241.032 2.715.053 5.496.046 5.705-.015 5.342.017 6.547-.574.548-.269.757-.422 1.25-.918.49-.49.649-.709.917-1.252.538-1.096.535-1.045.535-6.262 0-4.846-.013-5.061-.328-5.862-.764-1.94-2.613-3.187-4.727-3.187h-.557l-.003 4.14-.003 4.139-1.878 1.49a123 123 0 0 1-1.964 1.54c-.056.033-.792-.513-2.034-1.507l-1.947-1.56v-8.242zm2.29.553v6.927l1.084.87c.596.478 1.106.86 1.132.85s.535-.41 1.132-.886l1.085-.866-.017-3.43-.017-3.429-2.2-.018zm-47.247 6.508 9.197.025c9.138.025 9.2.026 9.889.175 2.276.495 4.009 1.425 5.576 2.993 1.563 1.563 2.494 3.26 3.002 5.472.15.658.15.664.17 10.686l.018 10.028h-2.393l-2.91-2.91c-2.148-2.147-2.999-2.954-3.252-3.082l-.342-.174H68.007v-11.606zm44.87 16.355c-.846 0-1.356.1-1.977.386-1.351.623-2.296 1.666-2.771 3.059l-.184.539-.02 4.745c-.023 5.4-.023 5.392.503 6.478.506 1.043 1.244 1.779 2.297 2.294.347.17.83.351 1.073.404.354.077 1.48.097 5.603.1 5.817.004 5.683.015 6.749-.507 1.377-.674 2.299-1.8 2.674-3.27.13-.505.137-.783.137-5.222 0-4.448-.007-4.717-.137-5.237-.233-.926-.636-1.636-1.32-2.324-.515-.519-.69-.645-1.318-.948-.817-.396-1.263-.497-2.19-.497h-.646v8.223l-1.91 1.518c-1.049.834-1.938 1.527-1.974 1.54s-.938-.673-2.004-1.524l-1.939-1.548v-8.209zm2.377.554.004 3.447.004 3.446 1.052.845c.58.464 1.08.845 1.112.848s.555-.39 1.16-.874l1.101-.878v-6.834h-2.217zm-50.295 9.491H85.98l3.015 3.002c2.568 2.557 3.058 3.014 3.3 3.083.206.058 1.624.08 5.04.08h4.755v3.16l-.537.094c-1.12.195-2.648.81-3.729 1.498-1.69 1.076-3.119 2.7-3.994 4.536-.443.931-.884 2.341-.884 2.83v.214H74.119l-.046-.329c-.174-1.222-.844-2.861-1.707-4.174-.532-.809-1.996-2.292-2.8-2.836-1.322-.897-2.958-1.574-4.282-1.772l-.325-.05v-4.668z", style: {
9120
+ }, transform: "translate(9.37 14.003)scale(.90701)" }, /* @__PURE__ */ L.createElement("path", { id: "path272", d: "M103.624 105.014c-.27.002-.79.209-1.004.4a2.5 2.5 0 0 0-.313.395l-.181.277-.018 18.064-.018 18.064h-3.047v-9.75c0-10.412-.004-10.52-.345-11.948-1.398-5.861-6.243-10.128-12.213-10.755-1.515-.16-19.836-.16-20.462-.003l-.002-.004-19.984 3.575 18.852 2.16v6.078l-17.36 3.103 17.36 1.99v6.523l-17.36 3.103 14.275 1.636-.016 4.905-.019 5.726-.63.126c-1.587.315-3.197 1.068-4.528 2.117-2.206 1.737-3.742 4.446-4.053 7.144-.37 3.213.552 6.199 2.657 8.602 1.688 1.926 4.174 3.26 6.696 3.592.824.108 2.933.031 3.671-.134.932-.21 1.79-.515 2.637-.939 2.065-1.033 3.824-2.775 4.827-4.784.504-1.01.91-2.207 1.026-3.029l.047-.329h18.828v.214c0 .117.064.468.142.78.904 3.589 3.509 6.46 6.975 7.686 1.343.475 1.946.568 3.655.564 1.32-.003 1.612-.025 2.182-.158 3.368-.785 6.026-2.86 7.515-5.865.44-.89.882-2.203.972-2.892l.043-.329 7.183-.002c7.08-.002 7.188-.003 7.495-.143.647-.293.9-.703.9-1.457 0-.569-.168-.945-.55-1.225-.505-.373-.225-.36-7.9-.36h-7.115l-.117-.597c-.261-1.329-.848-2.71-1.682-3.957-.57-.854-2.02-2.296-2.864-2.852-1.214-.798-2.805-1.463-4-1.673l-.502-.088-.018-21.17-.018-21.17-.154-.312c-.258-.521-.88-.903-1.465-.9zm9.34.76c-1.961 0-3.686 1.068-4.532 2.806-.536 1.103-.53 1.026-.507 6.443l.02 4.78.189.556c.62 1.83 2.225 3.176 4.083 3.424.241.032 2.715.053 5.496.046 5.705-.015 5.342.017 6.547-.574.548-.269.757-.422 1.25-.918.49-.49.649-.709.917-1.252.538-1.096.535-1.045.535-6.262 0-4.846-.013-5.061-.328-5.862-.764-1.94-2.613-3.187-4.727-3.187h-.557l-.003 4.14-.003 4.139-1.878 1.49a123 123 0 0 1-1.964 1.54c-.056.033-.792-.513-2.034-1.507l-1.947-1.56v-8.242zm2.29.553v6.927l1.084.87c.596.478 1.106.86 1.132.85s.535-.41 1.132-.886l1.085-.866-.017-3.43-.017-3.429-2.2-.018zm-47.247 6.508 9.197.025c9.138.025 9.2.026 9.889.175 2.276.495 4.009 1.425 5.576 2.993 1.563 1.563 2.494 3.26 3.002 5.472.15.658.15.664.17 10.686l.018 10.028h-2.393l-2.91-2.91c-2.148-2.147-2.999-2.954-3.252-3.082l-.342-.174H68.007v-11.606zm44.87 16.355c-.846 0-1.356.1-1.977.386-1.351.623-2.296 1.666-2.771 3.059l-.184.539-.02 4.745c-.023 5.4-.023 5.392.503 6.478.506 1.043 1.244 1.779 2.297 2.294.347.17.83.351 1.073.404.354.077 1.48.097 5.603.1 5.817.004 5.683.015 6.749-.507 1.377-.674 2.299-1.8 2.674-3.27.13-.505.137-.783.137-5.222 0-4.448-.007-4.717-.137-5.237-.233-.926-.636-1.636-1.32-2.324-.515-.519-.69-.645-1.318-.948-.817-.396-1.263-.497-2.19-.497h-.646v8.223l-1.91 1.518c-1.049.834-1.938 1.527-1.974 1.54s-.938-.673-2.004-1.524l-1.939-1.548v-8.209zm2.377.554.004 3.447.004 3.446 1.052.845c.58.464 1.08.845 1.112.848s.555-.39 1.16-.874l1.101-.878v-6.834h-2.217zm-50.295 9.491H85.98l3.015 3.002c2.568 2.557 3.058 3.014 3.3 3.083.206.058 1.624.08 5.04.08h4.755v3.16l-.537.094c-1.12.195-2.648.81-3.729 1.498-1.69 1.076-3.119 2.7-3.994 4.536-.443.931-.884 2.341-.884 2.83v.214H74.119l-.046-.329c-.174-1.222-.844-2.861-1.707-4.174-.532-.809-1.996-2.292-2.8-2.836-1.322-.897-2.958-1.574-4.282-1.772l-.325-.05v-4.668z", style: {
9071
9121
  fill: "#000",
9072
9122
  strokeWidth: 1.10252
9073
- } }), /* @__PURE__ */ V.createElement("path", { id: "path268", d: "M103.624 103.562c-.27.002-.79.209-1.004.4a2.5 2.5 0 0 0-.313.395l-.181.277-.018 18.064-.018 18.064h-3.047v-9.75c0-10.412-.004-10.52-.345-11.948-1.398-5.861-6.243-10.129-12.213-10.755-1.515-.16-19.836-.16-20.462-.003l-.002-.004-19.984 3.575 18.852 2.16v6.078l-17.36 3.103 17.36 1.99v6.523l-17.36 3.103 14.275 1.635-.016 4.906-.019 5.726-.63.125c-1.587.316-3.197 1.069-4.528 2.118-2.206 1.737-3.742 4.445-4.053 7.144-.37 3.213.552 6.199 2.657 8.602 1.688 1.926 4.174 3.26 6.696 3.592.824.108 2.933.031 3.671-.134.932-.21 1.79-.515 2.637-.939 2.066-1.033 3.824-2.775 4.827-4.784.504-1.01.91-2.207 1.027-3.029l.046-.33h18.828v.215c0 .117.064.468.142.779a10.96 10.96 0 0 0 6.975 7.687c1.343.475 1.946.568 3.655.564 1.32-.003 1.613-.025 2.182-.158 3.368-.785 6.027-2.86 7.515-5.865.44-.89.882-2.204.972-2.892l.043-.33 7.183-.001c7.08-.002 7.188-.003 7.495-.143.647-.293.9-.703.9-1.457 0-.569-.168-.945-.55-1.225-.505-.373-.225-.36-7.899-.36h-7.116l-.117-.597c-.261-1.329-.848-2.71-1.682-3.958-.57-.853-2.02-2.295-2.864-2.85-1.214-.799-2.805-1.465-4-1.674l-.502-.088-.018-21.17-.018-21.17-.154-.312c-.258-.521-.88-.903-1.465-.9zm9.34.76c-1.961 0-3.686 1.068-4.532 2.806-.536 1.103-.53 1.026-.507 6.443l.02 4.78.189.556c.62 1.83 2.225 3.176 4.083 3.424.241.032 2.715.053 5.496.046 5.705-.015 5.343.017 6.547-.574.548-.269.757-.422 1.25-.918.49-.49.65-.709.917-1.252.539-1.096.535-1.045.535-6.262 0-4.846-.012-5.061-.328-5.862-.764-1.94-2.613-3.187-4.727-3.187h-.557l-.003 4.14-.003 4.139-1.878 1.49a116 116 0 0 1-1.964 1.54c-.056.033-.792-.513-2.034-1.507l-1.947-1.56v-8.242zm2.29.553v6.927l1.084.87c.597.478 1.106.86 1.132.85s.535-.41 1.132-.886l1.085-.866-.017-3.43-.017-3.429-2.2-.018zm-47.247 6.508 9.197.025c9.138.025 9.2.026 9.889.175 2.276.495 4.009 1.425 5.576 2.993 1.563 1.563 2.494 3.26 3.002 5.472.15.658.15.664.17 10.686l.018 10.028h-2.393l-2.91-2.91c-2.148-2.147-2.999-2.954-3.252-3.082l-.342-.174H68.007V122.99zm44.87 16.355c-.846 0-1.356.1-1.976.386-1.352.623-2.297 1.666-2.772 3.059l-.184.539-.02 4.745c-.023 5.4-.023 5.392.503 6.477.507 1.044 1.244 1.78 2.297 2.295.347.17.83.351 1.073.404.354.077 1.48.097 5.603.1 5.817.005 5.683.015 6.749-.507 1.377-.674 2.299-1.8 2.674-3.27.13-.505.137-.783.137-5.222 0-4.448-.007-4.717-.137-5.237-.233-.926-.636-1.636-1.32-2.324-.515-.519-.69-.645-1.318-.948-.817-.396-1.263-.497-2.19-.497h-.646v8.223l-1.91 1.518c-1.049.834-1.938 1.527-1.974 1.54s-.938-.673-2.004-1.524l-1.939-1.548v-8.209zm2.377.554.004 3.447.004 3.446 1.052.844c.58.465 1.08.846 1.112.849s.555-.39 1.16-.874l1.101-.878v-6.834h-2.217zm-50.295 9.491H85.98l3.015 3.002c2.568 2.557 3.058 3.014 3.3 3.083.206.058 1.624.08 5.04.08h4.755v3.16l-.537.094c-1.12.195-2.648.809-3.729 1.498-1.69 1.076-3.118 2.7-3.994 4.536-.443.931-.884 2.341-.884 2.83v.214H74.119l-.046-.329c-.174-1.222-.844-2.861-1.707-4.174-.532-.809-1.996-2.292-2.8-2.836-1.322-.897-2.958-1.574-4.282-1.773l-.325-.048v-4.669z", style: {
9123
+ } }), /* @__PURE__ */ L.createElement("path", { id: "path268", d: "M103.624 103.562c-.27.002-.79.209-1.004.4a2.5 2.5 0 0 0-.313.395l-.181.277-.018 18.064-.018 18.064h-3.047v-9.75c0-10.412-.004-10.52-.345-11.948-1.398-5.861-6.243-10.129-12.213-10.755-1.515-.16-19.836-.16-20.462-.003l-.002-.004-19.984 3.575 18.852 2.16v6.078l-17.36 3.103 17.36 1.99v6.523l-17.36 3.103 14.275 1.635-.016 4.906-.019 5.726-.63.125c-1.587.316-3.197 1.069-4.528 2.118-2.206 1.737-3.742 4.445-4.053 7.144-.37 3.213.552 6.199 2.657 8.602 1.688 1.926 4.174 3.26 6.696 3.592.824.108 2.933.031 3.671-.134.932-.21 1.79-.515 2.637-.939 2.066-1.033 3.824-2.775 4.827-4.784.504-1.01.91-2.207 1.027-3.029l.046-.33h18.828v.215c0 .117.064.468.142.779a10.96 10.96 0 0 0 6.975 7.687c1.343.475 1.946.568 3.655.564 1.32-.003 1.613-.025 2.182-.158 3.368-.785 6.027-2.86 7.515-5.865.44-.89.882-2.204.972-2.892l.043-.33 7.183-.001c7.08-.002 7.188-.003 7.495-.143.647-.293.9-.703.9-1.457 0-.569-.168-.945-.55-1.225-.505-.373-.225-.36-7.899-.36h-7.116l-.117-.597c-.261-1.329-.848-2.71-1.682-3.958-.57-.853-2.02-2.295-2.864-2.85-1.214-.799-2.805-1.465-4-1.674l-.502-.088-.018-21.17-.018-21.17-.154-.312c-.258-.521-.88-.903-1.465-.9zm9.34.76c-1.961 0-3.686 1.068-4.532 2.806-.536 1.103-.53 1.026-.507 6.443l.02 4.78.189.556c.62 1.83 2.225 3.176 4.083 3.424.241.032 2.715.053 5.496.046 5.705-.015 5.343.017 6.547-.574.548-.269.757-.422 1.25-.918.49-.49.65-.709.917-1.252.539-1.096.535-1.045.535-6.262 0-4.846-.012-5.061-.328-5.862-.764-1.94-2.613-3.187-4.727-3.187h-.557l-.003 4.14-.003 4.139-1.878 1.49a116 116 0 0 1-1.964 1.54c-.056.033-.792-.513-2.034-1.507l-1.947-1.56v-8.242zm2.29.553v6.927l1.084.87c.597.478 1.106.86 1.132.85s.535-.41 1.132-.886l1.085-.866-.017-3.43-.017-3.429-2.2-.018zm-47.247 6.508 9.197.025c9.138.025 9.2.026 9.889.175 2.276.495 4.009 1.425 5.576 2.993 1.563 1.563 2.494 3.26 3.002 5.472.15.658.15.664.17 10.686l.018 10.028h-2.393l-2.91-2.91c-2.148-2.147-2.999-2.954-3.252-3.082l-.342-.174H68.007V122.99zm44.87 16.355c-.846 0-1.356.1-1.976.386-1.352.623-2.297 1.666-2.772 3.059l-.184.539-.02 4.745c-.023 5.4-.023 5.392.503 6.477.507 1.044 1.244 1.78 2.297 2.295.347.17.83.351 1.073.404.354.077 1.48.097 5.603.1 5.817.005 5.683.015 6.749-.507 1.377-.674 2.299-1.8 2.674-3.27.13-.505.137-.783.137-5.222 0-4.448-.007-4.717-.137-5.237-.233-.926-.636-1.636-1.32-2.324-.515-.519-.69-.645-1.318-.948-.817-.396-1.263-.497-2.19-.497h-.646v8.223l-1.91 1.518c-1.049.834-1.938 1.527-1.974 1.54s-.938-.673-2.004-1.524l-1.939-1.548v-8.209zm2.377.554.004 3.447.004 3.446 1.052.844c.58.465 1.08.846 1.112.849s.555-.39 1.16-.874l1.101-.878v-6.834h-2.217zm-50.295 9.491H85.98l3.015 3.002c2.568 2.557 3.058 3.014 3.3 3.083.206.058 1.624.08 5.04.08h4.755v3.16l-.537.094c-1.12.195-2.648.809-3.729 1.498-1.69 1.076-3.118 2.7-3.994 4.536-.443.931-.884 2.341-.884 2.83v.214H74.119l-.046-.329c-.174-1.222-.844-2.861-1.707-4.174-.532-.809-1.996-2.292-2.8-2.836-1.322-.897-2.958-1.574-4.282-1.773l-.325-.048v-4.669z", style: {
9074
9124
  fill: "#fff",
9075
9125
  strokeWidth: 1.10252
9076
- } })))), M0 = (t) => {
9126
+ } })))), D0 = (t) => {
9077
9127
  const { publicRoutes: e, privateRoutes: n } = Hm(), { firstPrivatePath: i, routes: s, defaultTitle: o } = Jt();
9078
9128
  Gm(s, o);
9079
9129
  const {
@@ -9082,14 +9132,14 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
9082
9132
  firstPrivateElement: l = /* @__PURE__ */ h.jsx(r0, {}),
9083
9133
  globalLayout: c,
9084
9134
  isMain: u,
9085
- headerComponent: d,
9086
- showHeaderOnLogin: f,
9135
+ headerComponent: f,
9136
+ showHeaderOnLogin: d,
9087
9137
  headerExcludedRoutes: p,
9088
9138
  footerComponent: g,
9089
- showFooterOnLogin: x,
9090
- footerExcludedRoutes: b,
9091
- privateProvider: y,
9092
- customProvider: v,
9139
+ showFooterOnLogin: w,
9140
+ footerExcludedRoutes: y,
9141
+ privateProvider: v,
9142
+ customProvider: b,
9093
9143
  promptComponent: T
9094
9144
  } = t;
9095
9145
  let k;
@@ -9097,20 +9147,20 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
9097
9147
  e0,
9098
9148
  {
9099
9149
  isMain: u,
9100
- headerComponent: d,
9101
- showHeaderOnLogin: f,
9150
+ headerComponent: f,
9151
+ showHeaderOnLogin: d,
9102
9152
  headerExcludedRoutes: p,
9103
9153
  footerComponent: g,
9104
- showFooterOnLogin: x,
9105
- footerExcludedRoutes: b,
9154
+ showFooterOnLogin: w,
9155
+ footerExcludedRoutes: y,
9106
9156
  promptComponent: T
9107
9157
  }
9108
9158
  );
9109
- const w = Et(() => y ? Ft.cloneElement(
9110
- y,
9159
+ const x = Et(() => v ? Ft.cloneElement(
9160
+ v,
9111
9161
  {},
9112
- v ? Ft.cloneElement(v, {}, /* @__PURE__ */ h.jsx(ci, { children: /* @__PURE__ */ h.jsx(_e, {}) })) : /* @__PURE__ */ h.jsx(ci, { children: /* @__PURE__ */ h.jsx(_e, {}) })
9113
- ) : v ? Ft.cloneElement(v, {}, /* @__PURE__ */ h.jsx(ci, { children: /* @__PURE__ */ h.jsx(_e, {}) })) : /* @__PURE__ */ h.jsx(ci, { children: /* @__PURE__ */ h.jsx(_e, {}) }), [y, v]), j = () => {
9162
+ b ? Ft.cloneElement(b, {}, /* @__PURE__ */ h.jsx(ci, { children: /* @__PURE__ */ h.jsx(_e, {}) })) : /* @__PURE__ */ h.jsx(ci, { children: /* @__PURE__ */ h.jsx(_e, {}) })
9163
+ ) : b ? Ft.cloneElement(b, {}, /* @__PURE__ */ h.jsx(ci, { children: /* @__PURE__ */ h.jsx(_e, {}) })) : /* @__PURE__ */ h.jsx(ci, { children: /* @__PURE__ */ h.jsx(_e, {}) }), [v, b]), j = () => {
9114
9164
  const D = document.querySelector("link[rel='icon']");
9115
9165
  a && (D.href = a);
9116
9166
  };
@@ -9121,18 +9171,18 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
9121
9171
  /* @__PURE__ */ h.jsx(Re, { index: !0, element: /* @__PURE__ */ h.jsx(i0, { Logo: r }) }),
9122
9172
  e.map((D, M) => /* @__PURE__ */ h.jsx(Re, { path: D.path, element: D.element }, `public-${M}`))
9123
9173
  ] }),
9124
- /* @__PURE__ */ h.jsxs(Re, { element: w, children: [
9174
+ /* @__PURE__ */ h.jsxs(Re, { element: x, children: [
9125
9175
  /* @__PURE__ */ h.jsx(Re, { path: `${i ?? "/dashboard/"}:id`, element: l }),
9126
9176
  n.map((D, M) => /* @__PURE__ */ h.jsx(Re, { path: D.path, element: D.element }, `private-${M}`))
9127
9177
  ] })
9128
9178
  ] }) });
9129
- }, D0 = ({ children: t }) => {
9179
+ }, R0 = ({ children: t }) => {
9130
9180
  var s;
9131
9181
  const { user: e } = Yn(), n = zn(), { activeAlert: i } = Ue();
9132
9182
  return q(() => {
9133
9183
  (!e || !e.admin) && i("warning", "Non puoi accedere a questa pagina");
9134
9184
  }, [e]), !e || !e.admin ? /* @__PURE__ */ h.jsx(ba, { to: ((s = n.state) == null ? void 0 : s.from) || "/", replace: !0 }) : t;
9135
- }, R0 = ({ spinner: t = !0, spinnerStyle: e, text: n, textStyle: i, children: s, containerStyle: o, overrideStyle: r = {} }) => /* @__PURE__ */ h.jsxs("div", { className: r.container || `w-full h-full relative flex items-center justify-center ${o}`, children: [
9185
+ }, L0 = ({ spinner: t = !0, spinnerStyle: e, text: n, textStyle: i, children: s, containerStyle: o, overrideStyle: r = {} }) => /* @__PURE__ */ h.jsxs("div", { className: r.container || `w-full h-full relative flex items-center justify-center ${o}`, children: [
9136
9186
  t && /* @__PURE__ */ h.jsx(Sc, { className: r.spinner || `text-[20rem] animate-spin text-black ${e}` }),
9137
9187
  s || /* @__PURE__ */ h.jsx("p", { className: r.text || `text-black text-2xl select-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${i}`, children: n || "Loading..." })
9138
9188
  ] }), ha = ({ isTag: t = !1, value: e, label: n, placeholder: i, id: s, onChange: o, error: r = null }) => /* @__PURE__ */ h.jsxs("div", { className: `flex items-center justify-center relative ${t ? "gap-4 mb-2" : "gap-1 m-4"}`, children: [
@@ -9185,7 +9235,7 @@ const Jm = ({ onClose: t, type: e, title: n, name: i, onCancel: s }) => /* @__PU
9185
9235
  function a0(t) {
9186
9236
  return ke({ tag: "svg", attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M11.04 1.33L12.71 3l.29.71v.33h-.5l-.5.5v-.83l-1.67-1.67H10v4H4v-4H2v10h3l-.5 1H2l-1-1v-10l1-1h8.33l.71.29zM7 5h2V2H7v3zm6.5 0L15 6.5l-.02.69-5.5 5.5-.13.12-.37.37-.1.09-3 1.5-.67-.67 1.5-3 .09-.1.37-.37.12-.13 5.5-5.5h.71zm-6.22 7.24l-.52 1 1.04-.48-.52-.52zm.69-1.03l.79.79 5.15-5.15-.79-.79-5.15 5.15z" }, child: [] }] })(t);
9187
9237
  }
9188
- const L0 = ({ minReadingPower: t, maxReadingPower: e, stepRangePower: n, rangeValue: i, setRangeValue: s, show: o, handleClick: r }) => {
9238
+ const O0 = ({ minReadingPower: t, maxReadingPower: e, stepRangePower: n, rangeValue: i, setRangeValue: s, show: o, handleClick: r }) => {
9189
9239
  const a = (i - t) / (e - t) * 100;
9190
9240
  return /* @__PURE__ */ h.jsxs("div", { className: `border border-slate-300 rounded-xl p-2 m-2 shadow-xl transition-all duration-700 transform ${o ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"}`, children: [
9191
9241
  /* @__PURE__ */ h.jsx("h2", { className: "text-center my-4 text-2xl", children: "Configurazione Potenza" }),
@@ -9224,7 +9274,7 @@ const L0 = ({ minReadingPower: t, maxReadingPower: e, stepRangePower: n, rangeVa
9224
9274
  }
9225
9275
  ) })
9226
9276
  ] });
9227
- }, O0 = ({ show: t, isConfigPage: e, handleSelectFile: n }) => /* @__PURE__ */ h.jsxs("div", { className: `${e ? `${t ? "opacity-100 translate-y-0 delay-200" : "opacity-0 translate-y-10"}` : ""} p-4 text-center transition-all duration-700 transform`, children: [
9277
+ }, I0 = ({ show: t, isConfigPage: e, handleSelectFile: n }) => /* @__PURE__ */ h.jsxs("div", { className: `${e ? `${t ? "opacity-100 translate-y-0 delay-200" : "opacity-0 translate-y-10"}` : ""} p-4 text-center transition-all duration-700 transform`, children: [
9228
9278
  /* @__PURE__ */ h.jsxs("h2", { className: "text-xl my-4", children: [
9229
9279
  "Seleziona il file ",
9230
9280
  /* @__PURE__ */ h.jsx("strong", { children: "config.json" }),
@@ -9238,13 +9288,13 @@ function l0(t) {
9238
9288
  function c0(t) {
9239
9289
  return ke({ tag: "svg", attr: { version: "1.2", baseProfile: "tiny", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 9.059v-2.559c0-.256-.098-.512-.293-.708-.195-.195-.451-.292-.707-.292s-.512.097-.707.292l-6.293 6.208 6.293 6.207c.195.195.451.293.707.293s.512-.098.707-.293.293-.452.293-.707v-2.489c2.75.068 5.755.566 8 3.989v-1c0-4.633-3.5-8.443-8-8.941z" }, child: [] }] })(t);
9240
9290
  }
9241
- const u0 = (t) => /* @__PURE__ */ V.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlSpace: "preserve", id: "svg1", width: 409.748, height: 409.748, viewBox: "0 0 108.413 108.413", ...t }, /* @__PURE__ */ V.createElement("defs", { id: "defs1" }, /* @__PURE__ */ V.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ V.createElement("stop", { id: "stop27", offset: 0, style: {
9291
+ const u0 = (t) => /* @__PURE__ */ L.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlSpace: "preserve", id: "svg1", width: 409.748, height: 409.748, viewBox: "0 0 108.413 108.413", ...t }, /* @__PURE__ */ L.createElement("defs", { id: "defs1" }, /* @__PURE__ */ L.createElement("linearGradient", { id: "linearGradient27" }, /* @__PURE__ */ L.createElement("stop", { id: "stop27", offset: 0, style: {
9242
9292
  stopColor: "red",
9243
9293
  stopOpacity: 1
9244
- } }), /* @__PURE__ */ V.createElement("stop", { id: "stop28", offset: 1, style: {
9294
+ } }), /* @__PURE__ */ L.createElement("stop", { id: "stop28", offset: 1, style: {
9245
9295
  stopColor: "#ffca00",
9246
9296
  stopOpacity: 0.96862745
9247
- } })), /* @__PURE__ */ V.createElement("linearGradient", { xlinkHref: "#linearGradient27", id: "linearGradient28", x1: 35.002, x2: 143.414, y1: 192.355, y2: 83.942, gradientUnits: "userSpaceOnUse" })), /* @__PURE__ */ V.createElement("g", { id: "layer1", transform: "translate(-35.002 -83.942)" }, /* @__PURE__ */ V.createElement("rect", { id: "rect26", width: 108.413, height: 108.413, x: 35.002, y: 83.942, rx: 30, ry: 30, style: {
9297
+ } })), /* @__PURE__ */ L.createElement("linearGradient", { xlinkHref: "#linearGradient27", id: "linearGradient28", x1: 35.002, x2: 143.414, y1: 192.355, y2: 83.942, gradientUnits: "userSpaceOnUse" })), /* @__PURE__ */ L.createElement("g", { id: "layer1", transform: "translate(-35.002 -83.942)" }, /* @__PURE__ */ L.createElement("rect", { id: "rect26", width: 108.413, height: 108.413, x: 35.002, y: 83.942, rx: 30, ry: 30, style: {
9248
9298
  fill: "url(#linearGradient28)",
9249
9299
  fillOpacity: 1,
9250
9300
  fillRule: "evenodd",
@@ -9252,18 +9302,18 @@ const u0 = (t) => /* @__PURE__ */ V.createElement("svg", { xmlns: "http://www.w3
9252
9302
  strokeWidth: 0,
9253
9303
  strokeOpacity: 1,
9254
9304
  paintOrder: "stroke markers fill"
9255
- } }), /* @__PURE__ */ V.createElement("g", { id: "g1", style: {
9305
+ } }), /* @__PURE__ */ L.createElement("g", { id: "g1", style: {
9256
9306
  strokeWidth: 0.892424
9257
- }, transform: "matrix(1.08335 0 0 1.15901 -13.02 -26.51)" }, /* @__PURE__ */ V.createElement("path", { id: "path1", d: "M93.826 176.603c-.169-.034-1.837-.443-3.708-.909s-6.894-1.707-11.162-2.759a2463 2463 0 0 1-8.036-1.986 1.26 1.26 0 0 1-.84-.72c-.135-.297-.142-.67-.144-7.586l-.002-7.275-1.586-.388c-.873-.214-2.732-.663-4.131-.998-1.664-.399-2.62-.664-2.765-.767-.451-.321-.673-1.178-.44-1.7.05-.114 1.348-1.542 2.882-3.173l4.473-4.751c.925-.983 1.682-1.813 1.682-1.846 0-.032-2.013-2.197-4.473-4.811s-4.513-4.845-4.564-4.96c-.124-.278-.122-.806.005-1.108.137-.329.59-.717.947-.812a377 377 0 0 1 3.04-.735 4957 4957 0 0 0 16.208-3.91c3.114-.76 3.63-.84 4.028-.63.113.059 1.108 1.071 2.211 2.249a1906 1906 0 0 0 4.454 4.731l2.447 2.591.578-.603c.73-.762 7.41-7.89 7.899-8.429.533-.588 1.164-.826 1.676-.632.098.037 1.949.488 4.115 1.003 2.165.515 5.554 1.325 7.53 1.802l7.11 1.713c1.934.466 3.612.885 3.727.931.44.176.82.811.821 1.372 0 .11-.077.339-.171.51-.146.264-2.64 2.954-7.92 8.542-.595.63-1.074 1.174-1.062 1.207.011.034 2.015 2.18 4.453 4.768s4.493 4.832 4.565 4.985c.232.491.124 1.107-.27 1.528-.244.262-.464.356-1.276.544-.4.093-2.137.51-3.86.927l-3.307.798-.172.04v7.212c0 5.18-.025 7.285-.087 7.472a1.6 1.6 0 0 1-.287.477c-.211.23-.693.509-.877.509-.06 0-4.2 1.011-9.197 2.248-12.941 3.202-13.804 3.411-14.017 3.4a4 4 0 0 1-.497-.071m-.115-14.064c0-6.938-.027-12.614-.059-12.614s-1.13 1.144-2.44 2.542c-5.288 5.648-5.758 6.135-6.045 6.267-.478.22.5.423-8.925-1.857-2.27-.549-4.327-1.045-4.568-1.102l-.44-.103v13.955l.975.24c6.052 1.49 19.206 4.741 20.126 4.974a30 30 0 0 0 1.28.306c.076.005.096-2.563.096-12.608m12.576 9.853c5.93-1.467 10.857-2.684 10.951-2.706l.171-.04.02-6.992c.018-6.187.006-6.99-.094-6.958-.063.019-1.698.416-3.632.883-1.934.466-4.72 1.14-6.192 1.497-3.653.887-3.407.84-3.789.725-.186-.056-.463-.233-.65-.416-.18-.175-2.039-2.141-4.13-4.37-2.092-2.229-3.833-4.063-3.868-4.077s-.063 5.656-.063 12.601v12.627l.248-.054c.137-.03 5.1-1.253 11.028-2.72m-20.964-15.644c.885-.919 7.626-8.102 8.034-8.56.163-.184.284-.345.268-.36-.03-.026-1.291-.333-7.062-1.721l-9.387-2.26-5.87-1.413-.512.554a2343 2343 0 0 0-8.041 8.564c-.267.285-.47.533-.45.552s1.89.48 4.158 1.025c9.94 2.387 16.933 4.072 17.464 4.209.316.08.598.149.627.151s.376-.33.771-.74m20.235.401c.78-.189 3.86-.93 6.845-1.648 12.242-2.942 13.984-3.364 14.015-3.396.019-.018-.237-.321-.568-.673l-4.112-4.38-3.921-4.178-.413-.437-6.82 1.638c-3.75.9-8.299 1.997-10.107 2.437s-3.76.91-4.339 1.047c-.578.137-1.05.278-1.05.313 0 .06 1.972 2.177 6.918 7.426 1.135 1.204 2.08 2.191 2.1 2.193.019.002.672-.152 1.452-.342m-9.338-11.001c.954-.227 3.678-.885 6.054-1.461a4296 4296 0 0 1 11.257-2.72c.41-.097.746-.196.746-.22 0-.042-2.28-.6-11.889-2.913a3300 3300 0 0 1-5.734-1.386c-1.219-.297-2.268-.538-2.331-.536s-1.388.313-2.944.691-4.05.982-5.543 1.34c-1.492.36-4.434 1.07-6.536 1.58-2.103.508-4.072.982-4.377 1.054-.305.07-.554.148-.554.17s.61.186 1.357.362c.746.177 4.831 1.16 9.078 2.188l8.525 2.06c.441.106.882.196.98.199s.958-.18 1.911-.408m-23.175-5.507c1.616-.385 15.137-3.644 18.927-4.562.914-.222 1.663-.423 1.663-.447 0-.043-2.176-2.373-6.494-6.955a220 220 0 0 1-2.417-2.588c-.068-.09-.257-.065-1.223.168-2.153.52-10.698 2.575-15.93 3.832-2.876.692-5.247 1.274-5.267 1.295-.046.045-.21-.132 4.76 5.153 2.23 2.371 4.083 4.358 4.117 4.415s.074.105.09.105.815-.187 1.774-.416m44.726.017c.668-.727 2.633-2.823 4.61-4.915 3.59-3.802 4.074-4.323 4.04-4.356-.019-.019-.892-.24-1.942-.491a14930 14930 0 0 1-17.845-4.296l-2.558-.62-.225.256c-.123.141-.763.824-1.42 1.518-.66.694-2.26 2.397-3.559 3.784a573 573 0 0 1-3.073 3.264c-.392.408-.712.773-.712.812 0 .081 1.221.382 13.259 3.264 4.832 1.157 8.803 2.12 8.824 2.141.102.102.267.003.601-.361", style: {
9307
+ }, transform: "matrix(1.08335 0 0 1.15901 -13.02 -26.51)" }, /* @__PURE__ */ L.createElement("path", { id: "path1", d: "M93.826 176.603c-.169-.034-1.837-.443-3.708-.909s-6.894-1.707-11.162-2.759a2463 2463 0 0 1-8.036-1.986 1.26 1.26 0 0 1-.84-.72c-.135-.297-.142-.67-.144-7.586l-.002-7.275-1.586-.388c-.873-.214-2.732-.663-4.131-.998-1.664-.399-2.62-.664-2.765-.767-.451-.321-.673-1.178-.44-1.7.05-.114 1.348-1.542 2.882-3.173l4.473-4.751c.925-.983 1.682-1.813 1.682-1.846 0-.032-2.013-2.197-4.473-4.811s-4.513-4.845-4.564-4.96c-.124-.278-.122-.806.005-1.108.137-.329.59-.717.947-.812a377 377 0 0 1 3.04-.735 4957 4957 0 0 0 16.208-3.91c3.114-.76 3.63-.84 4.028-.63.113.059 1.108 1.071 2.211 2.249a1906 1906 0 0 0 4.454 4.731l2.447 2.591.578-.603c.73-.762 7.41-7.89 7.899-8.429.533-.588 1.164-.826 1.676-.632.098.037 1.949.488 4.115 1.003 2.165.515 5.554 1.325 7.53 1.802l7.11 1.713c1.934.466 3.612.885 3.727.931.44.176.82.811.821 1.372 0 .11-.077.339-.171.51-.146.264-2.64 2.954-7.92 8.542-.595.63-1.074 1.174-1.062 1.207.011.034 2.015 2.18 4.453 4.768s4.493 4.832 4.565 4.985c.232.491.124 1.107-.27 1.528-.244.262-.464.356-1.276.544-.4.093-2.137.51-3.86.927l-3.307.798-.172.04v7.212c0 5.18-.025 7.285-.087 7.472a1.6 1.6 0 0 1-.287.477c-.211.23-.693.509-.877.509-.06 0-4.2 1.011-9.197 2.248-12.941 3.202-13.804 3.411-14.017 3.4a4 4 0 0 1-.497-.071m-.115-14.064c0-6.938-.027-12.614-.059-12.614s-1.13 1.144-2.44 2.542c-5.288 5.648-5.758 6.135-6.045 6.267-.478.22.5.423-8.925-1.857-2.27-.549-4.327-1.045-4.568-1.102l-.44-.103v13.955l.975.24c6.052 1.49 19.206 4.741 20.126 4.974a30 30 0 0 0 1.28.306c.076.005.096-2.563.096-12.608m12.576 9.853c5.93-1.467 10.857-2.684 10.951-2.706l.171-.04.02-6.992c.018-6.187.006-6.99-.094-6.958-.063.019-1.698.416-3.632.883-1.934.466-4.72 1.14-6.192 1.497-3.653.887-3.407.84-3.789.725-.186-.056-.463-.233-.65-.416-.18-.175-2.039-2.141-4.13-4.37-2.092-2.229-3.833-4.063-3.868-4.077s-.063 5.656-.063 12.601v12.627l.248-.054c.137-.03 5.1-1.253 11.028-2.72m-20.964-15.644c.885-.919 7.626-8.102 8.034-8.56.163-.184.284-.345.268-.36-.03-.026-1.291-.333-7.062-1.721l-9.387-2.26-5.87-1.413-.512.554a2343 2343 0 0 0-8.041 8.564c-.267.285-.47.533-.45.552s1.89.48 4.158 1.025c9.94 2.387 16.933 4.072 17.464 4.209.316.08.598.149.627.151s.376-.33.771-.74m20.235.401c.78-.189 3.86-.93 6.845-1.648 12.242-2.942 13.984-3.364 14.015-3.396.019-.018-.237-.321-.568-.673l-4.112-4.38-3.921-4.178-.413-.437-6.82 1.638c-3.75.9-8.299 1.997-10.107 2.437s-3.76.91-4.339 1.047c-.578.137-1.05.278-1.05.313 0 .06 1.972 2.177 6.918 7.426 1.135 1.204 2.08 2.191 2.1 2.193.019.002.672-.152 1.452-.342m-9.338-11.001c.954-.227 3.678-.885 6.054-1.461a4296 4296 0 0 1 11.257-2.72c.41-.097.746-.196.746-.22 0-.042-2.28-.6-11.889-2.913a3300 3300 0 0 1-5.734-1.386c-1.219-.297-2.268-.538-2.331-.536s-1.388.313-2.944.691-4.05.982-5.543 1.34c-1.492.36-4.434 1.07-6.536 1.58-2.103.508-4.072.982-4.377 1.054-.305.07-.554.148-.554.17s.61.186 1.357.362c.746.177 4.831 1.16 9.078 2.188l8.525 2.06c.441.106.882.196.98.199s.958-.18 1.911-.408m-23.175-5.507c1.616-.385 15.137-3.644 18.927-4.562.914-.222 1.663-.423 1.663-.447 0-.043-2.176-2.373-6.494-6.955a220 220 0 0 1-2.417-2.588c-.068-.09-.257-.065-1.223.168-2.153.52-10.698 2.575-15.93 3.832-2.876.692-5.247 1.274-5.267 1.295-.046.045-.21-.132 4.76 5.153 2.23 2.371 4.083 4.358 4.117 4.415s.074.105.09.105.815-.187 1.774-.416m44.726.017c.668-.727 2.633-2.823 4.61-4.915 3.59-3.802 4.074-4.323 4.04-4.356-.019-.019-.892-.24-1.942-.491a14930 14930 0 0 1-17.845-4.296l-2.558-.62-.225.256c-.123.141-.763.824-1.42 1.518-.66.694-2.26 2.397-3.559 3.784a573 573 0 0 1-3.073 3.264c-.392.408-.712.773-.712.812 0 .081 1.221.382 13.259 3.264 4.832 1.157 8.803 2.12 8.824 2.141.102.102.267.003.601-.361", style: {
9258
9308
  fill: "#fff",
9259
9309
  fillOpacity: 1,
9260
9310
  strokeWidth: 0,
9261
9311
  strokeDasharray: "none"
9262
- } }), /* @__PURE__ */ V.createElement("path", { id: "path2", d: "M94.237 147.397c-.19-.076-.536-.44-.83-.87-.138-.202-.98-1.552-1.87-3.001-6.428-10.455-9.515-15.547-9.95-16.413-.459-.916-.982-2.465-1.178-3.493-.478-2.499-.335-4.879.435-7.235 1.186-3.633 3.713-6.577 7.144-8.326a14.6 14.6 0 0 1 4.316-1.388c1.018-.165 3.183-.165 4.201 0a14.6 14.6 0 0 1 5.902 2.32c3.031 2.03 5.227 5.32 5.959 8.928.623 3.072.293 6.038-.986 8.869-.359.792-3.667 6.345-7.571 12.703l-3.23 5.263c-.787 1.285-1.265 1.992-1.542 2.284-.398.42-.519.473-.8.36m1.266-20.98a6.44 6.44 0 0 0 4.949-4.23c.294-.862.38-1.48.33-2.368-.098-1.758-.749-3.161-2.028-4.375-1.216-1.153-2.656-1.723-4.35-1.723-1.69 0-3.132.57-4.345 1.72-.963.913-1.534 1.855-1.868 3.078-.13.48-.154.72-.151 1.567.003.873.026 1.084.183 1.657a6.43 6.43 0 0 0 3.963 4.37 6.3 6.3 0 0 0 3.317.303", style: {
9312
+ } }), /* @__PURE__ */ L.createElement("path", { id: "path2", d: "M94.237 147.397c-.19-.076-.536-.44-.83-.87-.138-.202-.98-1.552-1.87-3.001-6.428-10.455-9.515-15.547-9.95-16.413-.459-.916-.982-2.465-1.178-3.493-.478-2.499-.335-4.879.435-7.235 1.186-3.633 3.713-6.577 7.144-8.326a14.6 14.6 0 0 1 4.316-1.388c1.018-.165 3.183-.165 4.201 0a14.6 14.6 0 0 1 5.902 2.32c3.031 2.03 5.227 5.32 5.959 8.928.623 3.072.293 6.038-.986 8.869-.359.792-3.667 6.345-7.571 12.703l-3.23 5.263c-.787 1.285-1.265 1.992-1.542 2.284-.398.42-.519.473-.8.36m1.266-20.98a6.44 6.44 0 0 0 4.949-4.23c.294-.862.38-1.48.33-2.368-.098-1.758-.749-3.161-2.028-4.375-1.216-1.153-2.656-1.723-4.35-1.723-1.69 0-3.132.57-4.345 1.72-.963.913-1.534 1.855-1.868 3.078-.13.48-.154.72-.151 1.567.003.873.026 1.084.183 1.657a6.43 6.43 0 0 0 3.963 4.37 6.3 6.3 0 0 0 3.317.303", style: {
9263
9313
  fill: "#d30000",
9264
9314
  fillOpacity: 1,
9265
9315
  strokeWidth: 0.892424
9266
- } }), /* @__PURE__ */ V.createElement("path", { id: "rect2", d: "M158.632 137.745h3.539v1.387h-3.539z", style: {
9316
+ } }), /* @__PURE__ */ L.createElement("path", { id: "rect2", d: "M158.632 137.745h3.539v1.387h-3.539z", style: {
9267
9317
  fill: "#fff",
9268
9318
  fillOpacity: 1,
9269
9319
  fillRule: "evenodd",
@@ -9271,7 +9321,7 @@ const u0 = (t) => /* @__PURE__ */ V.createElement("svg", { xmlns: "http://www.w3
9271
9321
  strokeWidth: 0,
9272
9322
  strokeDasharray: "none",
9273
9323
  paintOrder: "stroke markers fill"
9274
- }, transform: "matrix(.98806 .15405 -.46962 .88287 0 0)" }), /* @__PURE__ */ V.createElement("path", { id: "rect3", d: "M120.628 170.946h3.167v1.222h-3.167z", style: {
9324
+ }, transform: "matrix(.98806 .15405 -.46962 .88287 0 0)" }), /* @__PURE__ */ L.createElement("path", { id: "rect3", d: "M120.628 170.946h3.167v1.222h-3.167z", style: {
9275
9325
  fill: "#fff",
9276
9326
  fillOpacity: 1,
9277
9327
  fillRule: "evenodd",
@@ -9279,20 +9329,20 @@ const u0 = (t) => /* @__PURE__ */ V.createElement("svg", { xmlns: "http://www.w3
9279
9329
  strokeWidth: 0,
9280
9330
  strokeDasharray: "none",
9281
9331
  paintOrder: "stroke markers fill"
9282
- }, transform: "rotate(8.335)scale(.9449 1)skewY(-18.126)" })))), I0 = ({ Logo: t, logo: e }) => {
9283
- const { logout: n } = Oi(), { activeAlert: i } = Ue(), { autoLogin: s, configRoutes: o, firstPrivateTitle: r, showHeaderButton: a } = Jt(), { isLoading: l } = pn(), c = zn(), u = zs(), d = () => {
9332
+ }, transform: "rotate(8.335)scale(.9449 1)skewY(-18.126)" })))), N0 = ({ Logo: t, logo: e }) => {
9333
+ const { logout: n } = Oi(), { activeAlert: i } = Ue(), { autoLogin: s, configRoutes: o, firstPrivateTitle: r, showHeaderButton: a } = Jt(), { isLoading: l } = pn(), c = zn(), u = zs(), f = () => {
9284
9334
  n(), i("info", "Hai effettuato il logout");
9285
- }, f = o.find((g) => g.path === c.pathname), p = Hc("home/:id");
9335
+ }, d = o.find((g) => g.path === c.pathname), p = Hc("home/:id");
9286
9336
  return /* @__PURE__ */ h.jsx("header", { className: l ? "hidden" : "", children: /* @__PURE__ */ h.jsxs("nav", { className: "header-size flex items-center justify-between px-2 shadow-lg border-b gap-2 border-b-gray-300", children: [
9287
9337
  /* @__PURE__ */ h.jsx("figure", { children: t && typeof t == "function" ? /* @__PURE__ */ h.jsx(t, { className: "header-logo-size" }) : e ? /* @__PURE__ */ h.jsx("img", { src: e, alt: "Logo", className: "header-logo-size" }) : /* @__PURE__ */ h.jsx(u0, { className: "header-logo-size" }) }),
9288
- /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx("p", { children: (f == null ? void 0 : f.title) || r }) }),
9338
+ /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx("p", { children: (d == null ? void 0 : d.title) || r }) }),
9289
9339
  /* @__PURE__ */ h.jsxs("div", { children: [
9290
9340
  !s && p && /* @__PURE__ */ h.jsx(
9291
9341
  "button",
9292
9342
  {
9293
9343
  className: "h-[48px] w-[48px] flex items-center justify-center bg-red-600 text-white rounded-lg shadow-md transition duration-200 ease-in-out transform active:translate-y-[2px] cursor-pointer",
9294
9344
  type: "button",
9295
- onClick: d,
9345
+ onClick: f,
9296
9346
  children: /* @__PURE__ */ h.jsx(l0, { className: "text-4xl w-full" })
9297
9347
  }
9298
9348
  ),
@@ -9311,20 +9361,20 @@ const u0 = (t) => /* @__PURE__ */ V.createElement("svg", { xmlns: "http://www.w3
9311
9361
  function d0(t) {
9312
9362
  return ke({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M763.024 259.968C718.4 141.536 622.465 66.527 477.553 66.527c-184.384 0-313.392 136.912-324.479 315.536C64.177 410.495.002 501.183.002 603.903c0 125.744 98.848 231.968 215.823 231.968h92.448c17.664 0 32-14.336 32-32 0-17.68-14.336-32-32-32h-92.448c-82.304 0-152.832-76.912-152.832-167.968 0-80.464 56.416-153.056 127.184-165.216l29.04-5.008-2.576-29.328-.24-.368c0-155.872 102.576-273.44 261.152-273.44 127.104 0 198.513 62.624 231.537 169.44l6.847 22.032 23.056.496c118.88 2.496 223.104 98.945 223.104 218.77 0 109.055-72.273 230.591-181.696 230.591h-73.12c-17.664 0-32 14.336-32 32 0 17.68 14.336 32 32 32l72.88-.095c160-4.224 243.344-157.071 243.344-294.495 0-147.712-115.76-265.744-260.48-281.312zM535.985 514.941c-.176-.192-.241-.352-.354-.512l-8.095-8.464c-4.432-4.688-10.336-7.008-16.24-6.976-5.905-.048-11.777 2.288-16.289 6.975l-8.095 8.464c-.16.16-.193.353-.336.513L371.072 642.685c-8.944 9.344-8.944 24.464 0 33.84l8.064 5.471c8.945 9.344 23.44 6.32 32.368-3.024l68.113-75.935v322.432c0 17.664 14.336 32 32 32s32-14.336 32-32V603.34l70.368 77.631c8.944 9.344 23.408 12.369 32.336 3.025l8.064-5.472c8.945-9.376 8.945-24.496 0-33.84z" }, child: [] }] })(t);
9313
9363
  }
9314
- const N0 = (t) => {
9315
- const [e, n] = N(!1), {
9364
+ const B0 = (t) => {
9365
+ const [e, n] = I(!1), {
9316
9366
  onFilesSelect: i,
9317
9367
  id: s = "dropzone-file",
9318
9368
  containerStyle: o = "flex items-center justify-center w-full relative h-full",
9319
9369
  dropzoneStyle: r = "flex flex-col items-center justify-center text-body px-6 text-center pt-5 pb-6 pointer-events-none",
9320
9370
  labelStyle: a = `flex flex-col items-center justify-center w-full h-full rounded-2xl transition-all duration-300 bg-slate-100/80 shadow-lg border border-slate-300 rounded-base cursor-pointer hover:bg-slate-200/80 hover:border-slate-500 hover:shadow-xl ${e ? "bg-slate-200/80 border-slate-600 shadow-xl shadow-primary-strong" : "border-default-strong"}`,
9321
9371
  dragActiveStyle: l = "absolute w-full h-full top-0 left-0 rounded-2xl border-2 border-primary-strong/70 animate-pulse"
9322
- } = t, c = ct((f) => {
9323
- f.preventDefault(), f.stopPropagation(), f.type === "dragenter" || f.type === "dragover" ? n(!0) : f.type === "dragleave" && n(!1);
9324
- }, []), u = ct((f) => {
9325
- f.preventDefault(), f.stopPropagation(), n(!1), f.dataTransfer.files && f.dataTransfer.files.length > 0 && (i == null || i(Array.from(f.dataTransfer.files)));
9326
- }, [i]), d = (f) => {
9327
- f.target.files && f.target.files.length > 0 && (i == null || i(Array.from(f.target.files)));
9372
+ } = t, c = ct((d) => {
9373
+ d.preventDefault(), d.stopPropagation(), d.type === "dragenter" || d.type === "dragover" ? n(!0) : d.type === "dragleave" && n(!1);
9374
+ }, []), u = ct((d) => {
9375
+ d.preventDefault(), d.stopPropagation(), n(!1), d.dataTransfer.files && d.dataTransfer.files.length > 0 && (i == null || i(Array.from(d.dataTransfer.files)));
9376
+ }, [i]), f = (d) => {
9377
+ d.target.files && d.target.files.length > 0 && (i == null || i(Array.from(d.target.files)));
9328
9378
  };
9329
9379
  return /* @__PURE__ */ h.jsxs(
9330
9380
  "div",
@@ -9353,7 +9403,7 @@ const N0 = (t) => {
9353
9403
  type: "file",
9354
9404
  multiple: !0,
9355
9405
  className: "hidden",
9356
- onChange: d
9406
+ onChange: f
9357
9407
  }
9358
9408
  )
9359
9409
  ]
@@ -9384,7 +9434,7 @@ const N0 = (t) => {
9384
9434
  containerStyle: l,
9385
9435
  inputStyle: c,
9386
9436
  title: u,
9387
- children: d
9437
+ children: f
9388
9438
  } = t;
9389
9439
  return /* @__PURE__ */ h.jsxs("div", { className: l || "flex flex-col gap-1 mx-auto w-full", children: [
9390
9440
  /* @__PURE__ */ h.jsx(
@@ -9408,9 +9458,9 @@ const N0 = (t) => {
9408
9458
  className: c || "bg-input-bg border border-input-border rounded-lg text-input-text placeholder:text-input-placeholder rounded-input focus:ring focus:ring-primary focus:border-primary focus:outline-none focus:shadow-[var(--shadow-primary-input)] block w-full h-[43px] p-input disabled:bg-gray-100 disabled:text-gray-400 disabled:cursor-not-allowed disabled:opacity-60"
9409
9459
  }
9410
9460
  ),
9411
- d
9461
+ f
9412
9462
  ] });
9413
- }, B0 = (t) => {
9463
+ }, _0 = (t) => {
9414
9464
  const {
9415
9465
  startId: e,
9416
9466
  endId: n,
@@ -9422,18 +9472,18 @@ const N0 = (t) => {
9422
9472
  disabled: l,
9423
9473
  required: c,
9424
9474
  dateError: u,
9425
- startTitle: d,
9426
- endTitle: f,
9475
+ startTitle: f,
9476
+ endTitle: d,
9427
9477
  startStyle: p,
9428
9478
  endStyle: g,
9429
- labelStyle: x,
9430
- containerStyle: b,
9431
- startContainerStyle: y,
9432
- endContainerStyle: v,
9479
+ labelStyle: w,
9480
+ containerStyle: y,
9481
+ startContainerStyle: v,
9482
+ endContainerStyle: b,
9433
9483
  endDateShow: T = !0,
9434
9484
  children: k
9435
9485
  } = t;
9436
- return /* @__PURE__ */ h.jsxs("div", { className: b || "flex gap-4 mx-auto w-full mb-4", children: [
9486
+ return /* @__PURE__ */ h.jsxs("div", { className: y || "flex gap-4 mx-auto w-full mb-4", children: [
9437
9487
  /* @__PURE__ */ h.jsx(
9438
9488
  pa,
9439
9489
  {
@@ -9443,9 +9493,9 @@ const N0 = (t) => {
9443
9493
  onChange: a,
9444
9494
  disabled: l,
9445
9495
  required: c,
9446
- title: d,
9447
- labelStyle: x,
9448
- containerStyle: y,
9496
+ title: f,
9497
+ labelStyle: w,
9498
+ containerStyle: v,
9449
9499
  inputStyle: p
9450
9500
  }
9451
9501
  ),
@@ -9458,9 +9508,9 @@ const N0 = (t) => {
9458
9508
  onChange: a,
9459
9509
  disabled: l,
9460
9510
  required: c,
9461
- title: f,
9462
- labelStyle: x,
9463
- containerStyle: v,
9511
+ title: d,
9512
+ labelStyle: w,
9513
+ containerStyle: b,
9464
9514
  inputStyle: g,
9465
9515
  children: u && /* @__PURE__ */ h.jsx("p", { className: "text-red-500 text-[13px] mt-1", children: u })
9466
9516
  }
@@ -9483,8 +9533,8 @@ const N0 = (t) => {
9483
9533
  }
9484
9534
  ) }),
9485
9535
  /* @__PURE__ */ h.jsx("figure", { className: "h-full w-full rounded-full overflow-hidden relative", children: /* @__PURE__ */ h.jsx(e, { className: "h-full w-full" }) })
9486
- ] }), _0 = ({ gradients: t, moreGradients: e, containerSize: n, overlayStyle: i, NewLogoLoader: s, Logo: o, spinnerColor: r }) => {
9487
- const { customLoginTimeout: a } = Jt(), { isLoading: l } = pn(), [c, u] = N(l), [d, f] = N(!1), p = [
9536
+ ] }), F0 = ({ gradients: t, moreGradients: e, containerSize: n, overlayStyle: i, NewLogoLoader: s, Logo: o, spinnerColor: r }) => {
9537
+ const { customLoginTimeout: a } = Jt(), { isLoading: l } = pn(), [c, u] = I(l), [f, d] = I(!1), p = [
9488
9538
  "bg-gradient-to-br from-blue-500 via-blue-400 to-blue-200",
9489
9539
  "bg-gradient-to-br from-blue-200 via-blue-400 to-purple-300",
9490
9540
  "bg-gradient-to-br from-blue-400 via-cyan-300 to-blue-200",
@@ -9494,75 +9544,76 @@ const N0 = (t) => {
9494
9544
  "bg-gradient-to-br from-cyan-200 via-blue-300 to-blue-500",
9495
9545
  "bg-gradient-to-br from-indigo-300 via-blue-400 to-purple-400",
9496
9546
  ...e || []
9497
- ], g = t ?? [...p, ...e ?? []], x = g[Math.floor(Math.random() * g.length)], b = n || "h-[420px] w-[420px]";
9547
+ ], g = t ?? [...p, ...e ?? []], w = g[Math.floor(Math.random() * g.length)], y = n || "h-[420px] w-[420px]";
9498
9548
  return q(() => {
9499
9549
  if (l) {
9500
9550
  u(!0);
9501
- const y = setTimeout(() => f(!0), 10);
9502
- return () => clearTimeout(y);
9551
+ const v = setTimeout(() => d(!0), 10);
9552
+ return () => clearTimeout(v);
9503
9553
  } else {
9504
- f(!1);
9505
- const y = setTimeout(() => u(!1), 300);
9506
- return () => clearTimeout(y);
9554
+ d(!1);
9555
+ const v = setTimeout(() => u(!1), 300);
9556
+ return () => clearTimeout(v);
9507
9557
  }
9508
- }, [l, a]), /* @__PURE__ */ h.jsx("div", { className: `${i || "fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center z-999 transition-opacity duration-300"} ${x} ${d ? "opacity-100" : "opacity-0"}`, children: s ? /* @__PURE__ */ h.jsx(s, {}) : /* @__PURE__ */ h.jsx(f0, { sizeContainer: b, Logo: o, spinnerColor: r }) });
9558
+ }, [l, a]), /* @__PURE__ */ h.jsx("div", { className: `${i || "fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center z-999 transition-opacity duration-300"} ${w} ${f ? "opacity-100" : "opacity-0"}`, children: s ? /* @__PURE__ */ h.jsx(s, {}) : /* @__PURE__ */ h.jsx(f0, { sizeContainer: y, Logo: o, spinnerColor: r }) });
9509
9559
  };
9510
9560
  export {
9511
9561
  fa as Alert,
9512
9562
  T0 as AlertProvider,
9513
- D0 as AuthAdmin,
9563
+ R0 as AuthAdmin,
9514
9564
  ci as AuthPage,
9515
9565
  S0 as AuthProvider,
9516
- z0 as BrowserRouter,
9517
- L0 as CardInputRange,
9566
+ U0 as BrowserRouter,
9567
+ O0 as CardInputRange,
9518
9568
  V0 as CardInputTag,
9519
- O0 as ConfigFileReader,
9569
+ I0 as ConfigFileReader,
9520
9570
  b0 as ConfigProvider,
9521
9571
  r0 as Dashboard,
9522
9572
  e0 as DefaultLayout,
9523
9573
  Zc as ErrorPage,
9524
- N0 as FileDropzone,
9525
- I0 as Header,
9574
+ B0 as FileDropzone,
9575
+ N0 as Header,
9526
9576
  Fs as Input,
9527
9577
  pa as InputDate,
9528
9578
  ha as InputGroup,
9529
9579
  $s as InputLabel,
9530
- B0 as InputStartEndDate,
9531
- U0 as Link,
9532
- _0 as Loader,
9580
+ _0 as InputStartEndDate,
9581
+ H0 as Link,
9582
+ F0 as Loader,
9533
9583
  Ym as Loading,
9534
- R0 as LoadingComponent,
9584
+ L0 as LoadingComponent,
9535
9585
  v0 as LoadingProvider,
9536
9586
  i0 as Login,
9537
9587
  n0 as LoginForm,
9538
9588
  P0 as LoginFormProvider,
9539
9589
  f0 as LogoLoader,
9540
9590
  A0 as ModalProvider,
9541
- H0 as NavLink,
9542
- W0 as Outlet,
9543
- M0 as PackageRoutes,
9544
- e1 as ReactDOM,
9545
- G0 as Route,
9591
+ W0 as NavLink,
9592
+ G0 as Outlet,
9593
+ D0 as PackageRoutes,
9594
+ n1 as ReactDOM,
9595
+ q0 as Route,
9546
9596
  E0 as RouteProvider,
9547
- q0 as Routes,
9597
+ Y0 as Routes,
9548
9598
  s0 as SwitchRadio,
9549
9599
  Gm as UsePageTitle,
9550
- Q0 as axios,
9600
+ t1 as axios,
9551
9601
  Um as fetchAxiosConfig,
9552
9602
  Ue as useAlert,
9553
9603
  Oi as useAuth,
9554
9604
  Yn as useAuthStorage,
9555
9605
  Jt as useConfig,
9556
9606
  Pu as useDevice,
9607
+ M0 as useForm,
9557
9608
  C0 as useIndexedDB,
9558
9609
  pn as useLoading,
9559
- Y0 as useLocation,
9610
+ K0 as useLocation,
9560
9611
  xc as useLoginForm,
9561
- K0 as useMatch,
9612
+ X0 as useMatch,
9562
9613
  Wm as useModal,
9563
- X0 as useNavigate,
9614
+ Z0 as useNavigate,
9564
9615
  k0 as useOrientation,
9565
- Z0 as useParams,
9616
+ J0 as useParams,
9566
9617
  Hm as useRoutesInjection,
9567
9618
  j0 as useSafeArea,
9568
9619
  da as useStorage,