@paynext/sdk 0.0.121 → 0.0.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,15 +1,15 @@
1
- var xr = Object.defineProperty, wr = Object.defineProperties;
2
- var Tr = Object.getOwnPropertyDescriptors;
1
+ var Er = Object.defineProperty, kr = Object.defineProperties;
2
+ var xr = Object.getOwnPropertyDescriptors;
3
3
  var ot = Object.getOwnPropertySymbols;
4
4
  var yn = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable;
5
- var xt = (n, e, t) => e in n ? xr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, v = (n, e) => {
5
+ var xt = (n, e, t) => e in n ? Er(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, v = (n, e) => {
6
6
  for (var t in e || (e = {}))
7
7
  yn.call(e, t) && xt(n, t, e[t]);
8
8
  if (ot)
9
9
  for (var t of ot(e))
10
10
  Cn.call(e, t) && xt(n, t, e[t]);
11
11
  return n;
12
- }, I = (n, e) => wr(n, Tr(e));
12
+ }, I = (n, e) => kr(n, xr(e));
13
13
  var ae = (n, e) => {
14
14
  var t = {};
15
15
  for (var i in n)
@@ -36,7 +36,7 @@ var E = (n, e, t) => new Promise((i, r) => {
36
36
  }, o = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(a, s);
37
37
  o((t = t.apply(n, e)).next());
38
38
  });
39
- import Ar from "react";
39
+ import wr from "react";
40
40
  class iu {
41
41
  constructor(e) {
42
42
  c(this, "parent");
@@ -81,7 +81,7 @@ const En = {
81
81
  staging: "https://staging-api.paynext.com",
82
82
  sandbox: "https://sandbox-api.paynext.com",
83
83
  production: "https://api.paynext.com"
84
- })[n], _r = [
84
+ })[n], Tr = [
85
85
  {
86
86
  type: x.PAYPAL,
87
87
  order: 1,
@@ -102,7 +102,7 @@ const En = {
102
102
  order: 4,
103
103
  is_active: !0
104
104
  }
105
- ], Lr = (n) => n.googlePay ? x.GOOGLE_PAY : n.applePay ? x.APPLE_PAY : n.paypal ? x.PAYPAL : n.braintree ? x.VENMO : x.CARD, Vr = (n) => {
105
+ ], Ar = (n) => n.googlePay ? x.GOOGLE_PAY : n.applePay ? x.APPLE_PAY : n.paypal ? x.PAYPAL : n.braintree ? x.VENMO : x.CARD, Lr = (n) => {
106
106
  const e = n.card;
107
107
  if (e)
108
108
  return {
@@ -121,14 +121,14 @@ const En = {
121
121
  last4: e.lastFourDigits,
122
122
  number: e.number
123
123
  };
124
- }, Ir = (n) => {
124
+ }, _r = (n) => {
125
125
  var t;
126
126
  const e = n.paypal;
127
127
  if ((t = e == null ? void 0 : e.billing_agreement_token) != null && t.paypalId)
128
128
  return {
129
129
  billing_agreement_token: e.billing_agreement_token.paypalId
130
130
  };
131
- }, Mr = (n) => {
131
+ }, Vr = (n) => {
132
132
  var t, i;
133
133
  const e = n.googlePay;
134
134
  if (e != null && e.token)
@@ -140,7 +140,7 @@ const En = {
140
140
  token: e.token.number,
141
141
  token_service_provider: e.token.tokenServiceProvider
142
142
  };
143
- }, Pr = (n) => {
143
+ }, Ir = (n) => {
144
144
  var t, i, r, a, s, o;
145
145
  const e = n.applePay;
146
146
  if (e)
@@ -152,7 +152,7 @@ const En = {
152
152
  token: (s = e.networkToken) == null ? void 0 : s.number,
153
153
  token_service_provider: (o = e.networkToken) == null ? void 0 : o.tokenServiceProvider
154
154
  };
155
- }, Dr = (n) => {
155
+ }, Mr = (n) => {
156
156
  const e = n.braintree;
157
157
  if (e)
158
158
  return {
@@ -171,7 +171,7 @@ const En = {
171
171
  state: ((b = e == null ? void 0 : e.billingContact) == null ? void 0 : b.administrativeArea) || ((y = t == null ? void 0 : t.billingAddress) == null ? void 0 : y.administrativeArea) || void 0
172
172
  };
173
173
  }, xn = (n) => {
174
- var r, a, s, o, l, u, d, h, m, p, g, b, y, k, V, _, M, T, D;
174
+ var r, a, s, o, l, u, d, h, m, p, g, b, y, k, V, L, M, T, D;
175
175
  const { card: e, googlePay: t, applePay: i } = n;
176
176
  if (!(!e && !(t != null && t.card) && !(i != null && i.card)))
177
177
  return {
@@ -186,7 +186,7 @@ const En = {
186
186
  },
187
187
  cvc: e == null ? void 0 : e.cvc,
188
188
  exp_month: e != null && e.expMonth || (y = t == null ? void 0 : t.card) != null && y.expiry.month ? Number((e == null ? void 0 : e.expMonth) || ((k = t == null ? void 0 : t.card) == null ? void 0 : k.expiry.month)) : void 0,
189
- exp_year: e != null && e.expYear || (V = t == null ? void 0 : t.card) != null && V.expiry.year ? Number((e == null ? void 0 : e.expYear) || ((_ = t == null ? void 0 : t.card) == null ? void 0 : _.expiry.year)) : void 0,
189
+ exp_year: e != null && e.expYear || (V = t == null ? void 0 : t.card) != null && V.expiry.year ? Number((e == null ? void 0 : e.expYear) || ((L = t == null ? void 0 : t.card) == null ? void 0 : L.expiry.year)) : void 0,
190
190
  last4: (e == null ? void 0 : e.lastFourDigits) || ((M = t == null ? void 0 : t.card) == null ? void 0 : M.lastFour) || ((T = i == null ? void 0 : i.card) == null ? void 0 : T.lastFour),
191
191
  number: (e == null ? void 0 : e.number) || ((D = t == null ? void 0 : t.card) == null ? void 0 : D.number)
192
192
  };
@@ -194,9 +194,9 @@ const En = {
194
194
  var i, r;
195
195
  const { applePay: e, card: t } = n;
196
196
  return (i = e == null ? void 0 : e.billingContact) != null && i.givenName ? `${e.billingContact.givenName} ${e.billingContact.familyName || ""}`.trim() : (r = t == null ? void 0 : t.metadata) == null ? void 0 : r.name;
197
- }, Rr = (n) => {
197
+ }, Pr = (n) => {
198
198
  var i, r, a, s, o, l, u, d;
199
- const e = Lr(n), t = {
199
+ const e = Ar(n), t = {
200
200
  client_session: n.clientSession,
201
201
  three_ds_session_id: n.threeDsSessionId,
202
202
  type: e
@@ -205,58 +205,58 @@ const En = {
205
205
  case x.CARD:
206
206
  return I(v({}, t), {
207
207
  name: wn(n),
208
- card: Vr(n)
208
+ card: Lr(n)
209
209
  });
210
210
  case x.PAYPAL:
211
211
  return I(v({}, t), {
212
- paypal: Ir(n)
212
+ paypal: _r(n)
213
213
  });
214
214
  case x.GOOGLE_PAY:
215
215
  return I(v({}, t), {
216
216
  name: (r = (i = n.googlePay) == null ? void 0 : i.billingAddress) == null ? void 0 : r.name,
217
217
  phone: (l = (o = (s = (a = n.googlePay) == null ? void 0 : a.billingAddress) == null ? void 0 : s.phoneNumber) == null ? void 0 : o.replace(/ /g, "")) == null ? void 0 : l.replace(/-/g, ""),
218
218
  card: xn(n),
219
- google_pay: Mr(n),
219
+ google_pay: Vr(n),
220
220
  billing_address: kn(n)
221
221
  });
222
222
  case x.APPLE_PAY:
223
223
  return I(v({}, t), {
224
224
  name: wn(n),
225
225
  card: xn(n),
226
- apple_pay: Pr(n),
226
+ apple_pay: Ir(n),
227
227
  phone: (d = (u = n.applePay) == null ? void 0 : u.shippingContact) == null ? void 0 : d.phoneNumber,
228
228
  billing_address: kn(n)
229
229
  });
230
230
  case x.VENMO:
231
231
  return I(v({}, t), {
232
- venmo: Dr(n)
232
+ venmo: Mr(n)
233
233
  });
234
234
  default:
235
235
  throw new Error(`Unsupported payment method: ${e}`);
236
236
  }
237
- }, Or = (n, e, t) => E(void 0, null, function* () {
237
+ }, Dr = (n, e, t) => E(void 0, null, function* () {
238
238
  const i = `${Xt(e)}/payments/create`, r = new Headers();
239
239
  r.append("Content-Type", "application/json"), r.append("X-API-Version", t);
240
- const a = Rr(n);
240
+ const a = Pr(n);
241
241
  return yield (yield fetch(i, {
242
242
  method: "POST",
243
243
  headers: r,
244
244
  body: JSON.stringify(a)
245
245
  })).json();
246
- }), Nr = (n, e, t) => E(void 0, null, function* () {
246
+ }), Or = (n, e, t) => E(void 0, null, function* () {
247
247
  const i = `${Xt(e)}/payments/create/billing/agreement`, r = new Headers();
248
248
  return r.append("Content-Type", "application/json"), r.append("X-API-Version", t), (yield (yield fetch(i, {
249
249
  method: "POST",
250
250
  headers: r,
251
251
  body: JSON.stringify({ client_session: n })
252
252
  })).json()).paypal_agreement_token_response.token_id || "";
253
- }), Sr = (n, e, t) => E(void 0, null, function* () {
253
+ }), Rr = (n, e, t) => E(void 0, null, function* () {
254
254
  const i = new Headers();
255
255
  i.append("X-API-Version", t);
256
256
  const r = `${Xt(e)}/payments/config?client_session_id=${n}`, s = yield (yield fetch(r, { headers: i })).json();
257
- return s.checkout_config || (s.checkout_config = _r), s;
257
+ return s.checkout_config || (s.checkout_config = Tr), s;
258
258
  });
259
- let Tn = class {
259
+ let Nr = class {
260
260
  constructor(e) {
261
261
  c(this, "apple", null);
262
262
  c(this, "isAvailable", !1);
@@ -311,7 +311,7 @@ let Tn = class {
311
311
  !this.apple || !this.isAvailable || (e.innerHTML = "", yield this.apple.mount(e), (t = this.onReady) == null || t.call(this));
312
312
  });
313
313
  }
314
- }, An = class {
314
+ }, Sr = class {
315
315
  constructor(e) {
316
316
  c(this, "google", null);
317
317
  this.ev = e;
@@ -413,21 +413,13 @@ class jr {
413
413
  throw new Error("Evervault can only be initialized in browser environment");
414
414
  this.isReady = !1;
415
415
  const { loadEvervault: t } = yield import("./evervault-js-37KtqVz5.js");
416
- this.ev = yield t(e.teamId, e.appId), this.apple = new Tn(this.ev), this.google = new An(this.ev);
416
+ this.ev = yield t(e.teamId, e.appId);
417
417
  });
418
418
  }
419
419
  // init ev
420
420
  initEv(e) {
421
421
  return E(this, null, function* () {
422
- if (!this.ev) {
423
- if (!this.isShouldLoad(e)) return;
424
- if (typeof window == "undefined")
425
- throw new Error("Evervault can only be initialized in browser environment");
426
- this.isReady = !1;
427
- const { loadEvervault: t } = yield import("./evervault-js-37KtqVz5.js");
428
- this.ev = yield t(e.teamId, e.appId), this.apple = new Tn(this.ev), this.google = new An(this.ev);
429
- }
430
- this.events.ready.emit(), this.isReady = !0;
422
+ this.ev || (yield this.preloadEvervault(e)), this.apple = new Nr(this.ev), this.google = new Sr(this.ev), this.events.ready.emit(), this.isReady = !0;
431
423
  });
432
424
  }
433
425
  // init three ds
@@ -495,34 +487,34 @@ function Br(n, e, t) {
495
487
  }
496
488
  return Array.from(n);
497
489
  }
498
- function fi(n, e, t, i) {
490
+ function pi(n, e, t, i) {
499
491
  return typeof n == "string" && Qt(e) ? Br(n, t, i) : n instanceof NodeList ? Array.from(n) : Array.isArray(n) ? n : [n];
500
492
  }
501
493
  function zr(n, e, t) {
502
494
  return n * (e + 1);
503
495
  }
504
- function _n(n, e, t, i) {
496
+ function Tn(n, e, t, i) {
505
497
  var r;
506
498
  return typeof e == "number" ? e : e.startsWith("-") || e.startsWith("+") ? Math.max(0, n + parseFloat(e)) : e === "<" ? t : (r = i.get(e)) != null ? r : n;
507
499
  }
508
500
  const nt = (n, e, t) => n + (e - n) * t, $r = (n, e, t) => {
509
501
  const i = e - n;
510
502
  return ((t - n) % i + i) % i + n;
511
- }, gi = (n) => Array.isArray(n) && typeof n[0] != "number";
512
- function bi(n, e) {
513
- return gi(n) ? n[$r(0, n.length, e)] : n;
503
+ }, mi = (n) => Array.isArray(n) && typeof n[0] != "number";
504
+ function fi(n, e) {
505
+ return mi(n) ? n[$r(0, n.length, e)] : n;
514
506
  }
515
507
  function Kr(n, e) {
516
508
  n.indexOf(e) === -1 && n.push(e);
517
509
  }
518
- function vi(n, e) {
510
+ function gi(n, e) {
519
511
  const t = n.indexOf(e);
520
512
  t > -1 && n.splice(t, 1);
521
513
  }
522
514
  function qr(n, e, t) {
523
515
  for (let i = 0; i < n.length; i++) {
524
516
  const r = n[i];
525
- r.at > e && r.at < t && (vi(n, r), i--);
517
+ r.at > e && r.at < t && (gi(n, r), i--);
526
518
  }
527
519
  }
528
520
  function Gr(n, e, t, i, r, a) {
@@ -531,7 +523,7 @@ function Gr(n, e, t, i, r, a) {
531
523
  n.push({
532
524
  value: e[s],
533
525
  at: nt(r, a, i[s]),
534
- easing: bi(t, s)
526
+ easing: fi(t, s)
535
527
  });
536
528
  }
537
529
  function Hr(n, e) {
@@ -545,16 +537,16 @@ const J = (n) => !!(n && n.getVelocity), en = /* @__NO_SIDE_EFFECTS__ */ (n, e,
545
537
  const i = e - n;
546
538
  return i === 0 ? 1 : (t - n) / i;
547
539
  };
548
- function yi(n, e) {
540
+ function bi(n, e) {
549
541
  const t = n[n.length - 1];
550
542
  for (let i = 1; i <= e; i++) {
551
543
  const r = /* @__PURE__ */ en(0, e, i);
552
544
  n.push(nt(t, 1, r));
553
545
  }
554
546
  }
555
- function Ci(n) {
547
+ function vi(n) {
556
548
  const e = [0];
557
- return yi(e, n.length - 1), e;
549
+ return bi(e, n.length - 1), e;
558
550
  }
559
551
  function tn(n) {
560
552
  return typeof n == "function" && "applyToOptions" in n;
@@ -569,7 +561,7 @@ function nn(n) {
569
561
  return e >= mt ? 1 / 0 : e;
570
562
  }
571
563
  const se = /* @__NO_SIDE_EFFECTS__ */ (n) => n * 1e3, le = /* @__NO_SIDE_EFFECTS__ */ (n) => n / 1e3;
572
- function Ei(n, e = 100, t) {
564
+ function yi(n, e = 100, t) {
573
565
  const i = t(I(v({}, n), { keyframes: [0, e] })), r = Math.min(nn(i), mt);
574
566
  return {
575
567
  type: "keyframes",
@@ -597,16 +589,16 @@ function Zr(n, a = {}, i, r) {
597
589
  h.set(y, p);
598
590
  continue;
599
591
  } else if (!Array.isArray(y)) {
600
- h.set(y.name, _n(p, y.at, m, h));
592
+ h.set(y.name, Tn(p, y.at, m, h));
601
593
  continue;
602
594
  }
603
- let [k, V, _ = {}] = y;
604
- _.at !== void 0 && (p = _n(p, _.at, m, h));
595
+ let [k, V, L = {}] = y;
596
+ L.at !== void 0 && (p = Tn(p, L.at, m, h));
605
597
  let M = 0;
606
- const T = (D, C, w, R = 0, O = 0) => {
607
- const q = Jr(D), _e = C, { delay: Te = 0, times: te = Ci(q), type: fe = "keyframes", repeat: he, repeatType: Et, repeatDelay: kt = 0 } = _e, st = ae(_e, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
598
+ const T = (D, C, w, O = 0, R = 0) => {
599
+ const q = Jr(D), Le = C, { delay: Te = 0, times: te = vi(q), type: fe = "keyframes", repeat: he, repeatType: Et, repeatDelay: kt = 0 } = Le, st = ae(Le, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
608
600
  let { ease: ne = e.ease || "easeOut", duration: f } = C;
609
- const P = typeof Te == "function" ? Te(R, O) : Te, N = q.length, G = tn(fe) ? fe : r == null ? void 0 : r[fe];
601
+ const P = typeof Te == "function" ? Te(O, R) : Te, N = q.length, G = tn(fe) ? fe : r == null ? void 0 : r[fe];
610
602
  if (N <= 2 && G) {
611
603
  let z = 100;
612
604
  if (N === 2 && ea(q)) {
@@ -615,14 +607,14 @@ function Zr(n, a = {}, i, r) {
615
607
  }
616
608
  const re = v({}, st);
617
609
  f !== void 0 && (re.duration = /* @__PURE__ */ se(f));
618
- const pe = Ei(re, z, G);
610
+ const pe = yi(re, z, G);
619
611
  ne = pe.ease, f = pe.duration;
620
612
  }
621
613
  f != null || (f = o);
622
614
  const ie = p + P;
623
615
  te.length === 1 && te[0] === 0 && (te[1] = 1);
624
616
  const X = te.length - q.length;
625
- if (X > 0 && yi(te, X), q.length === 1 && q.unshift(null), he) {
617
+ if (X > 0 && bi(te, X), q.length === 1 && q.unshift(null), he) {
626
618
  ce(he < Wr, "Repeat count too high, must be less than 20"), f = zr(f, he);
627
619
  const z = [...q], re = [...te];
628
620
  ne = Array.isArray(ne) ? [...ne] : [ne];
@@ -630,7 +622,7 @@ function Zr(n, a = {}, i, r) {
630
622
  for (let ge = 0; ge < he; ge++) {
631
623
  q.push(...z);
632
624
  for (let je = 0; je < z.length; je++)
633
- te.push(re[je] + (ge + 1)), ne.push(je === 0 ? "linear" : bi(pe, je - 1));
625
+ te.push(re[je] + (ge + 1)), ne.push(je === 0 ? "linear" : fi(pe, je - 1));
634
626
  }
635
627
  Hr(te, he);
636
628
  }
@@ -638,15 +630,15 @@ function Zr(n, a = {}, i, r) {
638
630
  Gr(w, q, ne, te, ie, Ae), M = Math.max(P + f, M), g = Math.max(Ae, g);
639
631
  };
640
632
  if (J(k)) {
641
- const D = Ln(k, u);
642
- T(V, _, Vn("default", D));
633
+ const D = An(k, u);
634
+ T(V, L, Ln("default", D));
643
635
  } else {
644
- const D = fi(k, V, i, d), C = D.length;
636
+ const D = pi(k, V, i, d), C = D.length;
645
637
  for (let w = 0; w < C; w++) {
646
- V = V, _ = _;
647
- const R = D[w], O = Ln(R, u);
638
+ V = V, L = L;
639
+ const O = D[w], R = An(O, u);
648
640
  for (const q in V)
649
- T(V[q], Xr(_, q), Vn(q, O), w, C);
641
+ T(V[q], Xr(L, q), Ln(q, R), w, C);
650
642
  }
651
643
  }
652
644
  m = p, p += M;
@@ -655,17 +647,17 @@ function Zr(n, a = {}, i, r) {
655
647
  for (const k in b) {
656
648
  const V = b[k];
657
649
  V.sort(Yr);
658
- const _ = [], M = [], T = [];
650
+ const L = [], M = [], T = [];
659
651
  for (let C = 0; C < V.length; C++) {
660
- const { at: w, value: R, easing: O } = V[C];
661
- _.push(R), M.push(/* @__PURE__ */ en(0, g, w)), T.push(O || "easeOut");
652
+ const { at: w, value: O, easing: R } = V[C];
653
+ L.push(O), M.push(/* @__PURE__ */ en(0, g, w)), T.push(R || "easeOut");
662
654
  }
663
- M[0] !== 0 && (M.unshift(0), _.unshift(_[0]), T.unshift(Ur)), M[M.length - 1] !== 1 && (M.push(1), _.push(null)), l.has(y) || l.set(y, {
655
+ M[0] !== 0 && (M.unshift(0), L.unshift(L[0]), T.unshift(Ur)), M[M.length - 1] !== 1 && (M.push(1), L.push(null)), l.has(y) || l.set(y, {
664
656
  keyframes: {},
665
657
  transition: {}
666
658
  });
667
659
  const D = l.get(y);
668
- D.keyframes[k] = _, D.transition[k] = v(I(v({}, e), {
660
+ D.keyframes[k] = L, D.transition[k] = v(I(v({}, e), {
669
661
  duration: g,
670
662
  ease: T,
671
663
  times: M
@@ -673,10 +665,10 @@ function Zr(n, a = {}, i, r) {
673
665
  }
674
666
  }), l;
675
667
  }
676
- function Ln(n, e) {
668
+ function An(n, e) {
677
669
  return !e.has(n) && e.set(n, {}), e.get(n);
678
670
  }
679
- function Vn(n, e) {
671
+ function Ln(n, e) {
680
672
  return e[n] || (e[n] = []), e[n];
681
673
  }
682
674
  function Jr(n) {
@@ -686,26 +678,26 @@ function Xr(n, e) {
686
678
  return n && n[e] ? v(v({}, n), n[e]) : v({}, n);
687
679
  }
688
680
  const Qr = (n) => typeof n == "number", ea = (n) => n.every(Qr), Je = /* @__PURE__ */ new WeakMap(), ta = (n) => Array.isArray(n);
689
- function In(n) {
681
+ function _n(n) {
690
682
  const e = [{}, {}];
691
683
  return n == null || n.values.forEach((t, i) => {
692
684
  e[0][i] = t.get(), e[1][i] = t.getVelocity();
693
685
  }), e;
694
686
  }
695
- function ki(n, e, t, i) {
687
+ function Ci(n, e, t, i) {
696
688
  if (typeof e == "function") {
697
- const [r, a] = In(i);
689
+ const [r, a] = _n(i);
698
690
  e = e(t !== void 0 ? t : n.custom, r, a);
699
691
  }
700
692
  if (typeof e == "string" && (e = n.variants && n.variants[e]), typeof e == "function") {
701
- const [r, a] = In(i);
693
+ const [r, a] = _n(i);
702
694
  e = e(t !== void 0 ? t : n.custom, r, a);
703
695
  }
704
696
  return e;
705
697
  }
706
698
  function na(n, e, t) {
707
699
  const i = n.getProps();
708
- return ki(i, e, i.custom, n);
700
+ return Ci(i, e, i.custom, n);
709
701
  }
710
702
  const lt = [
711
703
  "setup",
@@ -770,21 +762,21 @@ function aa(n, e) {
770
762
  delta: 0,
771
763
  timestamp: 0,
772
764
  isProcessing: !1
773
- }, a = () => t = !0, s = lt.reduce((_, M) => (_[M] = ia(a), _), {}), { setup: o, read: l, resolveKeyframes: u, preUpdate: d, update: h, preRender: m, render: p, postRender: g } = s, b = () => {
774
- const _ = de.useManualTiming ? r.timestamp : performance.now();
775
- t = !1, de.useManualTiming || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(_ - r.timestamp, ra), 1)), r.timestamp = _, r.isProcessing = !0, o.process(r), l.process(r), u.process(r), d.process(r), h.process(r), m.process(r), p.process(r), g.process(r), r.isProcessing = !1, t && e && (i = !1, n(b));
765
+ }, a = () => t = !0, s = lt.reduce((L, M) => (L[M] = ia(a), L), {}), { setup: o, read: l, resolveKeyframes: u, preUpdate: d, update: h, preRender: m, render: p, postRender: g } = s, b = () => {
766
+ const L = de.useManualTiming ? r.timestamp : performance.now();
767
+ t = !1, de.useManualTiming || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(L - r.timestamp, ra), 1)), r.timestamp = L, r.isProcessing = !0, o.process(r), l.process(r), u.process(r), d.process(r), h.process(r), m.process(r), p.process(r), g.process(r), r.isProcessing = !1, t && e && (i = !1, n(b));
776
768
  }, y = () => {
777
769
  t = !0, i = !0, r.isProcessing || n(b);
778
770
  };
779
- return { schedule: lt.reduce((_, M) => {
771
+ return { schedule: lt.reduce((L, M) => {
780
772
  const T = s[M];
781
- return _[M] = (D, C = !1, w = !1) => (t || y(), T.schedule(D, C, w)), _;
782
- }, {}), cancel: (_) => {
773
+ return L[M] = (D, C = !1, w = !1) => (t || y(), T.schedule(D, C, w)), L;
774
+ }, {}), cancel: (L) => {
783
775
  for (let M = 0; M < lt.length; M++)
784
- s[lt[M]].cancel(_);
776
+ s[lt[M]].cancel(L);
785
777
  }, state: r, steps: s };
786
778
  }
787
- const De = /* @__NO_SIDE_EFFECTS__ */ (n) => n, { schedule: ue, cancel: Rt, state: ft } = /* @__PURE__ */ aa(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : De, !0);
779
+ const De = /* @__NO_SIDE_EFFECTS__ */ (n) => n, { schedule: ue, cancel: Ot, state: ft } = /* @__PURE__ */ aa(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : De, !0);
788
780
  let pt;
789
781
  function sa() {
790
782
  pt = void 0;
@@ -794,16 +786,16 @@ const ee = {
794
786
  set: (n) => {
795
787
  pt = n, queueMicrotask(sa);
796
788
  }
797
- }, Mn = /* @__PURE__ */ new Set();
798
- function xi(n, e, t) {
799
- n || Mn.has(e) || (console.warn(e), Mn.add(e));
789
+ }, Vn = /* @__PURE__ */ new Set();
790
+ function Ei(n, e, t) {
791
+ n || Vn.has(e) || (console.warn(e), Vn.add(e));
800
792
  }
801
- class wi {
793
+ class ki {
802
794
  constructor() {
803
795
  this.subscriptions = [];
804
796
  }
805
797
  add(e) {
806
- return Kr(this.subscriptions, e), () => vi(this.subscriptions, e);
798
+ return Kr(this.subscriptions, e), () => gi(this.subscriptions, e);
807
799
  }
808
800
  notify(e, t, i) {
809
801
  const r = this.subscriptions.length;
@@ -823,10 +815,10 @@ class wi {
823
815
  this.subscriptions.length = 0;
824
816
  }
825
817
  }
826
- function Ti(n, e) {
818
+ function xi(n, e) {
827
819
  return e ? n * (1e3 / e) : 0;
828
820
  }
829
- const Pn = 30, oa = (n) => !isNaN(parseFloat(n));
821
+ const In = 30, oa = (n) => !isNaN(parseFloat(n));
830
822
  class la {
831
823
  /**
832
824
  * @param init - The initiating value
@@ -891,10 +883,10 @@ class la {
891
883
  * @deprecated
892
884
  */
893
885
  onChange(e) {
894
- return process.env.NODE_ENV !== "production" && xi(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
886
+ return process.env.NODE_ENV !== "production" && Ei(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
895
887
  }
896
888
  on(e, t) {
897
- this.events[e] || (this.events[e] = new wi());
889
+ this.events[e] || (this.events[e] = new ki());
898
890
  const i = this.events[e].add(t);
899
891
  return e === "change" ? () => {
900
892
  i(), ue.read(() => {
@@ -975,10 +967,10 @@ class la {
975
967
  */
976
968
  getVelocity() {
977
969
  const e = ee.now();
978
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Pn)
970
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > In)
979
971
  return 0;
980
- const t = Math.min(this.updatedAt - this.prevUpdatedAt, Pn);
981
- return Ti(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
972
+ const t = Math.min(this.updatedAt - this.prevUpdatedAt, In);
973
+ return xi(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
982
974
  }
983
975
  /**
984
976
  * Registers a new animation to control this `MotionValue`. Only one
@@ -1068,7 +1060,7 @@ function va(n, { repeat: e, repeatType: t = "loop" }, i) {
1068
1060
  const r = n.filter(ba), a = e && t !== "loop" && e % 2 === 1 ? 0 : r.length - 1;
1069
1061
  return r[a];
1070
1062
  }
1071
- const Re = [
1063
+ const Oe = [
1072
1064
  "transformPerspective",
1073
1065
  "x",
1074
1066
  "y",
@@ -1086,7 +1078,7 @@ const Re = [
1086
1078
  "skew",
1087
1079
  "skewX",
1088
1080
  "skewY"
1089
- ], Oe = new Set(Re), ya = {
1081
+ ], Re = new Set(Oe), ya = {
1090
1082
  type: "spring",
1091
1083
  stiffness: 500,
1092
1084
  damping: 25,
@@ -1103,16 +1095,16 @@ const Re = [
1103
1095
  type: "keyframes",
1104
1096
  ease: [0.25, 0.1, 0.35, 1],
1105
1097
  duration: 0.3
1106
- }, xa = (n, { keyframes: e }) => e.length > 2 ? Ea : Oe.has(n) ? n.startsWith("scale") ? Ca(e[1]) : ya : ka;
1098
+ }, xa = (n, { keyframes: e }) => e.length > 2 ? Ea : Re.has(n) ? n.startsWith("scale") ? Ca(e[1]) : ya : ka;
1107
1099
  function wa(h) {
1108
1100
  var m = h, { when: n, delay: e, delayChildren: t, staggerChildren: i, staggerDirection: r, repeat: a, repeatType: s, repeatDelay: o, from: l, elapsed: u } = m, d = ae(m, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from", "elapsed"]);
1109
1101
  return !!Object.keys(d).length;
1110
1102
  }
1111
- function Ai(n, e) {
1103
+ function wi(n, e) {
1112
1104
  var t, i;
1113
1105
  return (i = (t = n == null ? void 0 : n[e]) != null ? t : n == null ? void 0 : n.default) != null ? i : n;
1114
1106
  }
1115
- const _i = (n) => (e) => typeof e == "string" && e.startsWith(n), Li = /* @__PURE__ */ _i("--"), Ta = /* @__PURE__ */ _i("var(--"), an = (n) => Ta(n) ? Aa.test(n.split("/*")[0].trim()) : !1, Aa = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, xe = (n, e, t) => t > e ? e : t < n ? n : t, Ne = {
1107
+ const Ti = (n) => (e) => typeof e == "string" && e.startsWith(n), Ai = /* @__PURE__ */ Ti("--"), Ta = /* @__PURE__ */ Ti("var(--"), an = (n) => Ta(n) ? Aa.test(n.split("/*")[0].trim()) : !1, Aa = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, xe = (n, e, t) => t > e ? e : t < n ? n : t, Ne = {
1116
1108
  test: (n) => typeof n == "number",
1117
1109
  parse: parseFloat,
1118
1110
  transform: (n) => n
@@ -1121,10 +1113,10 @@ const _i = (n) => (e) => typeof e == "string" && e.startsWith(n), Li = /* @__PUR
1121
1113
  }), ct = I(v({}, Ne), {
1122
1114
  default: 1
1123
1115
  }), We = (n) => Math.round(n * 1e5) / 1e5, sn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
1124
- function _a(n) {
1116
+ function La(n) {
1125
1117
  return n == null;
1126
1118
  }
1127
- const La = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, on = (n, e) => (t) => !!(typeof t == "string" && La.test(t) && t.startsWith(n) || e && !_a(t) && Object.prototype.hasOwnProperty.call(t, e)), Vi = (n, e, t) => (i) => {
1119
+ const _a = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, on = (n, e) => (t) => !!(typeof t == "string" && _a.test(t) && t.startsWith(n) || e && !La(t) && Object.prototype.hasOwnProperty.call(t, e)), Li = (n, e, t) => (i) => {
1128
1120
  if (typeof i != "string")
1129
1121
  return i;
1130
1122
  const [r, a, s, o] = i.match(sn);
@@ -1138,7 +1130,7 @@ const La = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
1138
1130
  transform: (n) => Math.round(Va(n))
1139
1131
  }), ye = {
1140
1132
  test: /* @__PURE__ */ on("rgb", "red"),
1141
- parse: /* @__PURE__ */ Vi("red", "green", "blue"),
1133
+ parse: /* @__PURE__ */ Li("red", "green", "blue"),
1142
1134
  transform: ({ red: n, green: e, blue: t, alpha: i = 1 }) => "rgba(" + wt.transform(n) + ", " + wt.transform(e) + ", " + wt.transform(t) + ", " + We(Qe.transform(i)) + ")"
1143
1135
  };
1144
1136
  function Ia(n) {
@@ -1150,7 +1142,7 @@ function Ia(n) {
1150
1142
  alpha: r ? parseInt(r, 16) / 255 : 1
1151
1143
  };
1152
1144
  }
1153
- const Ot = {
1145
+ const Rt = {
1154
1146
  test: /* @__PURE__ */ on("#"),
1155
1147
  parse: Ia,
1156
1148
  transform: ye.transform
@@ -1158,23 +1150,23 @@ const Ot = {
1158
1150
  test: (e) => typeof e == "string" && e.endsWith(n) && e.split(" ").length === 1,
1159
1151
  parse: parseFloat,
1160
1152
  transform: (e) => `${e}${n}`
1161
- }), me = /* @__PURE__ */ rt("deg"), Me = /* @__PURE__ */ rt("%"), L = /* @__PURE__ */ rt("px"), Ma = /* @__PURE__ */ rt("vh"), Pa = /* @__PURE__ */ rt("vw"), Dn = I(v({}, Me), {
1153
+ }), me = /* @__PURE__ */ rt("deg"), Me = /* @__PURE__ */ rt("%"), _ = /* @__PURE__ */ rt("px"), Ma = /* @__PURE__ */ rt("vh"), Pa = /* @__PURE__ */ rt("vw"), Mn = I(v({}, Me), {
1162
1154
  parse: (n) => Me.parse(n) / 100,
1163
1155
  transform: (n) => Me.transform(n * 100)
1164
1156
  }), Ve = {
1165
1157
  test: /* @__PURE__ */ on("hsl", "hue"),
1166
- parse: /* @__PURE__ */ Vi("hue", "saturation", "lightness"),
1158
+ parse: /* @__PURE__ */ Li("hue", "saturation", "lightness"),
1167
1159
  transform: ({ hue: n, saturation: e, lightness: t, alpha: i = 1 }) => "hsla(" + Math.round(n) + ", " + Me.transform(We(e)) + ", " + Me.transform(We(t)) + ", " + We(Qe.transform(i)) + ")"
1168
1160
  }, U = {
1169
- test: (n) => ye.test(n) || Ot.test(n) || Ve.test(n),
1170
- parse: (n) => ye.test(n) ? ye.parse(n) : Ve.test(n) ? Ve.parse(n) : Ot.parse(n),
1161
+ test: (n) => ye.test(n) || Rt.test(n) || Ve.test(n),
1162
+ parse: (n) => ye.test(n) ? ye.parse(n) : Ve.test(n) ? Ve.parse(n) : Rt.parse(n),
1171
1163
  transform: (n) => typeof n == "string" ? n : n.hasOwnProperty("red") ? ye.transform(n) : Ve.transform(n)
1172
1164
  }, Da = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
1173
- function Ra(n) {
1165
+ function Oa(n) {
1174
1166
  var e, t;
1175
1167
  return isNaN(n) && typeof n == "string" && (((e = n.match(sn)) == null ? void 0 : e.length) || 0) + (((t = n.match(Da)) == null ? void 0 : t.length) || 0) > 0;
1176
1168
  }
1177
- const Ii = "number", Mi = "color", Oa = "var", Na = "var(", Rn = "${}", Sa = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
1169
+ const _i = "number", Vi = "color", Ra = "var", Na = "var(", Pn = "${}", Sa = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
1178
1170
  function et(n) {
1179
1171
  const e = n.toString(), t = [], i = {
1180
1172
  color: [],
@@ -1182,33 +1174,33 @@ function et(n) {
1182
1174
  var: []
1183
1175
  }, r = [];
1184
1176
  let a = 0;
1185
- const o = e.replace(Sa, (l) => (U.test(l) ? (i.color.push(a), r.push(Mi), t.push(U.parse(l))) : l.startsWith(Na) ? (i.var.push(a), r.push(Oa), t.push(l)) : (i.number.push(a), r.push(Ii), t.push(parseFloat(l))), ++a, Rn)).split(Rn);
1177
+ const o = e.replace(Sa, (l) => (U.test(l) ? (i.color.push(a), r.push(Vi), t.push(U.parse(l))) : l.startsWith(Na) ? (i.var.push(a), r.push(Ra), t.push(l)) : (i.number.push(a), r.push(_i), t.push(parseFloat(l))), ++a, Pn)).split(Pn);
1186
1178
  return { values: t, split: o, indexes: i, types: r };
1187
1179
  }
1188
- function Pi(n) {
1180
+ function Ii(n) {
1189
1181
  return et(n).values;
1190
1182
  }
1191
- function Di(n) {
1183
+ function Mi(n) {
1192
1184
  const { split: e, types: t } = et(n), i = e.length;
1193
1185
  return (r) => {
1194
1186
  let a = "";
1195
1187
  for (let s = 0; s < i; s++)
1196
1188
  if (a += e[s], r[s] !== void 0) {
1197
1189
  const o = t[s];
1198
- o === Ii ? a += We(r[s]) : o === Mi ? a += U.transform(r[s]) : a += r[s];
1190
+ o === _i ? a += We(r[s]) : o === Vi ? a += U.transform(r[s]) : a += r[s];
1199
1191
  }
1200
1192
  return a;
1201
1193
  };
1202
1194
  }
1203
1195
  const Fa = (n) => typeof n == "number" ? 0 : n;
1204
1196
  function ja(n) {
1205
- const e = Pi(n);
1206
- return Di(n)(e.map(Fa));
1197
+ const e = Ii(n);
1198
+ return Mi(n)(e.map(Fa));
1207
1199
  }
1208
1200
  const Se = {
1209
- test: Ra,
1210
- parse: Pi,
1211
- createTransformer: Di,
1201
+ test: Oa,
1202
+ parse: Ii,
1203
+ createTransformer: Mi,
1212
1204
  getAnimatableNone: ja
1213
1205
  };
1214
1206
  function Tt(n, e, t) {
@@ -1236,16 +1228,16 @@ function gt(n, e) {
1236
1228
  const At = (n, e, t) => {
1237
1229
  const i = n * n, r = t * (e * e - i) + i;
1238
1230
  return r < 0 ? 0 : Math.sqrt(r);
1239
- }, za = [Ot, ye, Ve], $a = (n) => za.find((e) => e.test(n));
1240
- function On(n) {
1231
+ }, za = [Rt, ye, Ve], $a = (n) => za.find((e) => e.test(n));
1232
+ function Dn(n) {
1241
1233
  const e = $a(n);
1242
1234
  if (it(!!e, `'${n}' is not an animatable color. Use the equivalent color code instead.`), !e)
1243
1235
  return !1;
1244
1236
  let t = e.parse(n);
1245
1237
  return e === Ve && (t = Ba(t)), t;
1246
1238
  }
1247
- const Nn = (n, e) => {
1248
- const t = On(n), i = On(e);
1239
+ const On = (n, e) => {
1240
+ const t = Dn(n), i = Dn(e);
1249
1241
  if (!t || !i)
1250
1242
  return gt(n, e);
1251
1243
  const r = v({}, t);
@@ -1259,9 +1251,9 @@ function Ga(n, e) {
1259
1251
  return (t) => nt(n, e, t);
1260
1252
  }
1261
1253
  function cn(n) {
1262
- return typeof n == "number" ? Ga : typeof n == "string" ? an(n) ? gt : U.test(n) ? Nn : Ua : Array.isArray(n) ? Ri : typeof n == "object" ? U.test(n) ? Nn : Ha : gt;
1254
+ return typeof n == "number" ? Ga : typeof n == "string" ? an(n) ? gt : U.test(n) ? On : Ua : Array.isArray(n) ? Pi : typeof n == "object" ? U.test(n) ? On : Ha : gt;
1263
1255
  }
1264
- function Ri(n, e) {
1256
+ function Pi(n, e) {
1265
1257
  const t = [...n], i = t.length, r = n.map((a, s) => cn(a)(a, e[s]));
1266
1258
  return (a) => {
1267
1259
  for (let s = 0; s < i; s++)
@@ -1290,32 +1282,32 @@ function Ya(n, e) {
1290
1282
  }
1291
1283
  const Ua = (n, e) => {
1292
1284
  const t = Se.createTransformer(e), i = et(n), r = et(e);
1293
- return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? Nt.has(n) && !r.values.length || Nt.has(e) && !i.values.length ? Ka(n, e) : ln(Ri(Ya(i, r), r.values), t) : (it(!0, `Complex values '${n}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), gt(n, e));
1285
+ return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? Nt.has(n) && !r.values.length || Nt.has(e) && !i.values.length ? Ka(n, e) : ln(Pi(Ya(i, r), r.values), t) : (it(!0, `Complex values '${n}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), gt(n, e));
1294
1286
  };
1295
- function Oi(n, e, t) {
1287
+ function Di(n, e, t) {
1296
1288
  return typeof n == "number" && typeof e == "number" && typeof t == "number" ? nt(n, e, t) : cn(n)(n, e);
1297
1289
  }
1298
1290
  const Wa = (n) => {
1299
1291
  const e = ({ timestamp: t }) => n(t);
1300
1292
  return {
1301
1293
  start: (t = !0) => ue.update(e, t),
1302
- stop: () => Rt(e),
1294
+ stop: () => Ot(e),
1303
1295
  /**
1304
1296
  * If we're processing this frame we can use the
1305
1297
  * framelocked timestamp to keep things in sync.
1306
1298
  */
1307
1299
  now: () => ft.isProcessing ? ft.timestamp : ee.now()
1308
1300
  };
1309
- }, Ni = (n, e, t = 10) => {
1301
+ }, Oi = (n, e, t = 10) => {
1310
1302
  let i = "";
1311
1303
  const r = Math.max(Math.round(e / t), 2);
1312
1304
  for (let a = 0; a < r; a++)
1313
1305
  i += n(a / (r - 1)) + ", ";
1314
1306
  return `linear(${i.substring(0, i.length - 2)})`;
1315
1307
  }, Za = 5;
1316
- function Si(n, e, t) {
1308
+ function Ri(n, e, t) {
1317
1309
  const i = Math.max(e - Za, 0);
1318
- return Ti(t - n(i), e - i);
1310
+ return xi(t - n(i), e - i);
1319
1311
  }
1320
1312
  const B = {
1321
1313
  // Default spring physics
@@ -1345,20 +1337,20 @@ const B = {
1345
1337
  // in seconds
1346
1338
  minDamping: 0.05,
1347
1339
  maxDamping: 1
1348
- }, _t = 1e-3;
1340
+ }, Lt = 1e-3;
1349
1341
  function Ja({ duration: n = B.duration, bounce: e = B.bounce, velocity: t = B.velocity, mass: i = B.mass }) {
1350
1342
  let r, a;
1351
1343
  it(n <= /* @__PURE__ */ se(B.maxDuration), "Spring duration must be 10 seconds or less");
1352
1344
  let s = 1 - e;
1353
1345
  s = xe(B.minDamping, B.maxDamping, s), n = xe(B.minDuration, B.maxDuration, /* @__PURE__ */ le(n)), s < 1 ? (r = (u) => {
1354
1346
  const d = u * s, h = d * n, m = d - t, p = St(u, s), g = Math.exp(-h);
1355
- return _t - m / p * g;
1347
+ return Lt - m / p * g;
1356
1348
  }, a = (u) => {
1357
1349
  const h = u * s * n, m = h * t + t, p = Math.pow(s, 2) * Math.pow(u, 2) * n, g = Math.exp(-h), b = St(Math.pow(u, 2), s);
1358
- return (-r(u) + _t > 0 ? -1 : 1) * ((m - p) * g) / b;
1350
+ return (-r(u) + Lt > 0 ? -1 : 1) * ((m - p) * g) / b;
1359
1351
  }) : (r = (u) => {
1360
1352
  const d = Math.exp(-u * n), h = (u - t) * n + 1;
1361
- return -_t + d * h;
1353
+ return -Lt + d * h;
1362
1354
  }, a = (u) => {
1363
1355
  const d = Math.exp(-u * n), h = (t - u) * (n * n);
1364
1356
  return d * h;
@@ -1390,7 +1382,7 @@ function St(n, e) {
1390
1382
  return n * Math.sqrt(1 - e * e);
1391
1383
  }
1392
1384
  const es = ["duration", "bounce"], ts = ["stiffness", "damping", "mass"];
1393
- function Sn(n, e) {
1385
+ function Rn(n, e) {
1394
1386
  return e.some((t) => n[t] !== void 0);
1395
1387
  }
1396
1388
  function ns(n) {
@@ -1401,7 +1393,7 @@ function ns(n) {
1401
1393
  mass: B.mass,
1402
1394
  isResolvedFromDuration: !1
1403
1395
  }, n);
1404
- if (!Sn(n, ts) && Sn(n, es))
1396
+ if (!Rn(n, ts) && Rn(n, es))
1405
1397
  if (n.visualDuration) {
1406
1398
  const t = n.visualDuration, i = 2 * Math.PI / (t * 1.2), r = i * i, a = 2 * xe(0.05, 1, 1 - (n.bounce || 0)) * Math.sqrt(r);
1407
1399
  e = I(v({}, e), {
@@ -1428,18 +1420,18 @@ function tt(n = B.visualDuration, e = B.bounce) {
1428
1420
  velocity: -/* @__PURE__ */ le(t.velocity || 0)
1429
1421
  })), g = m || 0, b = u / (2 * Math.sqrt(l * d)), y = s - a, k = /* @__PURE__ */ le(Math.sqrt(l / d)), V = Math.abs(y) < 5;
1430
1422
  i || (i = V ? B.restSpeed.granular : B.restSpeed.default), r || (r = V ? B.restDelta.granular : B.restDelta.default);
1431
- let _;
1423
+ let L;
1432
1424
  if (b < 1) {
1433
1425
  const T = St(k, b);
1434
- _ = (D) => {
1426
+ L = (D) => {
1435
1427
  const C = Math.exp(-b * k * D);
1436
1428
  return s - C * ((g + b * k * y) / T * Math.sin(T * D) + y * Math.cos(T * D));
1437
1429
  };
1438
1430
  } else if (b === 1)
1439
- _ = (T) => s - Math.exp(-k * T) * (y + (g + k * y) * T);
1431
+ L = (T) => s - Math.exp(-k * T) * (y + (g + k * y) * T);
1440
1432
  else {
1441
1433
  const T = k * Math.sqrt(b * b - 1);
1442
- _ = (D) => {
1434
+ L = (D) => {
1443
1435
  const C = Math.exp(-b * k * D), w = Math.min(T * D, 300);
1444
1436
  return s - C * ((g + b * k * y) * Math.sinh(w) + T * y * Math.cosh(w)) / T;
1445
1437
  };
@@ -1447,19 +1439,19 @@ function tt(n = B.visualDuration, e = B.bounce) {
1447
1439
  const M = {
1448
1440
  calculatedDuration: p && h || null,
1449
1441
  next: (T) => {
1450
- const D = _(T);
1442
+ const D = L(T);
1451
1443
  if (p)
1452
1444
  o.done = T >= h;
1453
1445
  else {
1454
1446
  let C = T === 0 ? g : 0;
1455
- b < 1 && (C = T === 0 ? /* @__PURE__ */ se(g) : Si(_, T, D));
1456
- const w = Math.abs(C) <= i, R = Math.abs(s - D) <= r;
1457
- o.done = w && R;
1447
+ b < 1 && (C = T === 0 ? /* @__PURE__ */ se(g) : Ri(L, T, D));
1448
+ const w = Math.abs(C) <= i, O = Math.abs(s - D) <= r;
1449
+ o.done = w && O;
1458
1450
  }
1459
1451
  return o.value = o.done ? s : D, o;
1460
1452
  },
1461
1453
  toString: () => {
1462
- const T = Math.min(nn(M), mt), D = Ni((C) => M.next(T * C).value, T, 30);
1454
+ const T = Math.min(nn(M), mt), D = Oi((C) => M.next(T * C).value, T, 30);
1463
1455
  return T + "ms " + D;
1464
1456
  },
1465
1457
  toTransition: () => {
@@ -1468,7 +1460,7 @@ function tt(n = B.visualDuration, e = B.bounce) {
1468
1460
  return M;
1469
1461
  }
1470
1462
  tt.applyToOptions = (n) => {
1471
- const e = Ei(n, 100, tt);
1463
+ const e = yi(n, 100, tt);
1472
1464
  return n.ease = e.ease, n.duration = /* @__PURE__ */ se(e.duration), n.type = "keyframes", n;
1473
1465
  };
1474
1466
  function Ft({ keyframes: n, velocity: e = 0, power: t = 0.8, timeConstant: i = 325, bounceDamping: r = 10, bounceStiffness: a = 500, modifyTarget: s, min: o, max: l, restDelta: u = 0.5, restSpeed: d }) {
@@ -1479,15 +1471,15 @@ function Ft({ keyframes: n, velocity: e = 0, power: t = 0.8, timeConstant: i = 3
1479
1471
  let b = t * e;
1480
1472
  const y = h + b, k = s === void 0 ? y : s(y);
1481
1473
  k !== y && (b = k - h);
1482
- const V = (w) => -b * Math.exp(-w / i), _ = (w) => k + V(w), M = (w) => {
1483
- const R = V(w), O = _(w);
1484
- m.done = Math.abs(R) <= u, m.value = m.done ? k : O;
1474
+ const V = (w) => -b * Math.exp(-w / i), L = (w) => k + V(w), M = (w) => {
1475
+ const O = V(w), R = L(w);
1476
+ m.done = Math.abs(O) <= u, m.value = m.done ? k : R;
1485
1477
  };
1486
1478
  let T, D;
1487
1479
  const C = (w) => {
1488
1480
  p(m.value) && (T = w, D = tt({
1489
1481
  keyframes: [m.value, g(m.value)],
1490
- velocity: Si(_, w, m.value),
1482
+ velocity: Ri(L, w, m.value),
1491
1483
  // TODO: This should be passing * 1000
1492
1484
  damping: r,
1493
1485
  stiffness: a,
@@ -1498,13 +1490,13 @@ function Ft({ keyframes: n, velocity: e = 0, power: t = 0.8, timeConstant: i = 3
1498
1490
  return C(0), {
1499
1491
  calculatedDuration: null,
1500
1492
  next: (w) => {
1501
- let R = !1;
1502
- return !D && T === void 0 && (R = !0, M(w), C(w)), T !== void 0 && w >= T ? D.next(w - T) : (!R && M(w), m);
1493
+ let O = !1;
1494
+ return !D && T === void 0 && (O = !0, M(w), C(w)), T !== void 0 && w >= T ? D.next(w - T) : (!O && M(w), m);
1503
1495
  }
1504
1496
  };
1505
1497
  }
1506
1498
  function is(n, e, t) {
1507
- const i = [], r = t || de.mix || Oi, a = n.length - 1;
1499
+ const i = [], r = t || de.mix || Di, a = n.length - 1;
1508
1500
  for (let s = 0; s < a; s++) {
1509
1501
  let o = r(n[s], n[s + 1]);
1510
1502
  if (e) {
@@ -1538,11 +1530,11 @@ function rs(n, e, { clamp: t = !0, ease: i, mixer: r } = {}) {
1538
1530
  function as(n, e) {
1539
1531
  return n.map((t) => t * e);
1540
1532
  }
1541
- const Fi = (n, e, t) => (((1 - 3 * t + 3 * e) * n + (3 * t - 6 * e)) * n + 3 * e) * n, ss = 1e-7, os = 12;
1533
+ const Ni = (n, e, t) => (((1 - 3 * t + 3 * e) * n + (3 * t - 6 * e)) * n + 3 * e) * n, ss = 1e-7, os = 12;
1542
1534
  function ls(n, e, t, i, r) {
1543
1535
  let a, s, o = 0;
1544
1536
  do
1545
- s = e + (t - e) / 2, a = Fi(s, i, r) - n, a > 0 ? t = s : e = s;
1537
+ s = e + (t - e) / 2, a = Ni(s, i, r) - n, a > 0 ? t = s : e = s;
1546
1538
  while (Math.abs(a) > ss && ++o < os);
1547
1539
  return s;
1548
1540
  }
@@ -1550,40 +1542,40 @@ function at(n, e, t, i) {
1550
1542
  if (n === e && t === i)
1551
1543
  return De;
1552
1544
  const r = (a) => ls(a, 0, 1, n, t);
1553
- return (a) => a === 0 || a === 1 ? a : Fi(r(a), e, i);
1545
+ return (a) => a === 0 || a === 1 ? a : Ni(r(a), e, i);
1554
1546
  }
1555
- const cs = /* @__PURE__ */ at(0.42, 0, 1, 1), ds = /* @__PURE__ */ at(0, 0, 0.58, 1), ji = /* @__PURE__ */ at(0.42, 0, 0.58, 1), Bi = (n) => (e) => e <= 0.5 ? n(2 * e) / 2 : (2 - n(2 * (1 - e))) / 2, zi = (n) => (e) => 1 - n(1 - e), $i = /* @__PURE__ */ at(0.33, 1.53, 0.69, 0.99), dn = /* @__PURE__ */ zi($i), Ki = /* @__PURE__ */ Bi(dn), qi = (n) => (n *= 2) < 1 ? 0.5 * dn(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1))), un = (n) => 1 - Math.sin(Math.acos(n)), us = zi(un), Gi = Bi(un), Hi = (n) => Array.isArray(n) && typeof n[0] == "number", Fn = {
1547
+ const cs = /* @__PURE__ */ at(0.42, 0, 1, 1), ds = /* @__PURE__ */ at(0, 0, 0.58, 1), Si = /* @__PURE__ */ at(0.42, 0, 0.58, 1), Fi = (n) => (e) => e <= 0.5 ? n(2 * e) / 2 : (2 - n(2 * (1 - e))) / 2, ji = (n) => (e) => 1 - n(1 - e), Bi = /* @__PURE__ */ at(0.33, 1.53, 0.69, 0.99), dn = /* @__PURE__ */ ji(Bi), zi = /* @__PURE__ */ Fi(dn), $i = (n) => (n *= 2) < 1 ? 0.5 * dn(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1))), un = (n) => 1 - Math.sin(Math.acos(n)), us = ji(un), Ki = Fi(un), qi = (n) => Array.isArray(n) && typeof n[0] == "number", Nn = {
1556
1548
  linear: De,
1557
1549
  easeIn: cs,
1558
- easeInOut: ji,
1550
+ easeInOut: Si,
1559
1551
  easeOut: ds,
1560
1552
  circIn: un,
1561
- circInOut: Gi,
1553
+ circInOut: Ki,
1562
1554
  circOut: us,
1563
1555
  backIn: dn,
1564
- backInOut: Ki,
1565
- backOut: $i,
1566
- anticipate: qi
1567
- }, hs = (n) => typeof n == "string", jn = (n) => {
1568
- if (Hi(n)) {
1556
+ backInOut: zi,
1557
+ backOut: Bi,
1558
+ anticipate: $i
1559
+ }, hs = (n) => typeof n == "string", Sn = (n) => {
1560
+ if (qi(n)) {
1569
1561
  ce(n.length === 4, "Cubic bezier arrays must contain four numerical values.");
1570
1562
  const [e, t, i, r] = n;
1571
1563
  return at(e, t, i, r);
1572
1564
  } else if (hs(n))
1573
- return ce(Fn[n] !== void 0, `Invalid easing type '${n}'`), Fn[n];
1565
+ return ce(Nn[n] !== void 0, `Invalid easing type '${n}'`), Nn[n];
1574
1566
  return n;
1575
1567
  };
1576
1568
  function ps(n, e) {
1577
- return n.map(() => e || ji).splice(0, n.length - 1);
1569
+ return n.map(() => e || Si).splice(0, n.length - 1);
1578
1570
  }
1579
1571
  function Ie({ duration: n = 300, keyframes: e, times: t, ease: i = "easeInOut" }) {
1580
- const r = gi(i) ? i.map(jn) : jn(i), a = {
1572
+ const r = mi(i) ? i.map(Sn) : Sn(i), a = {
1581
1573
  done: !1,
1582
1574
  value: e[0]
1583
1575
  }, s = as(
1584
1576
  // Only use the provided offsets if they're the correct length
1585
1577
  // TODO Maybe we should warn here if there's a length mismatch
1586
- t && t.length === e.length ? t : Ci(e),
1578
+ t && t.length === e.length ? t : vi(e),
1587
1579
  n
1588
1580
  ), o = rs(s, e, {
1589
1581
  ease: Array.isArray(r) ? r : ps(e, r)
@@ -1605,7 +1597,7 @@ const fs = {
1605
1597
  keyframes: Ie,
1606
1598
  spring: tt
1607
1599
  };
1608
- function Yi(n) {
1600
+ function Gi(n) {
1609
1601
  typeof n.type == "string" && (n.type = fs[n.type]);
1610
1602
  }
1611
1603
  class pn {
@@ -1643,11 +1635,11 @@ class mn extends pn {
1643
1635
  }
1644
1636
  initAnimation() {
1645
1637
  const { options: e } = this;
1646
- Yi(e);
1638
+ Gi(e);
1647
1639
  const { type: t = Ie, repeat: i = 0, repeatDelay: r = 0, repeatType: a, velocity: s = 0 } = e;
1648
1640
  let { keyframes: o } = e;
1649
1641
  const l = t || Ie;
1650
- process.env.NODE_ENV !== "production" && l !== Ie && ce(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== Ie && typeof o[0] != "number" && (this.mixKeyframes = ln(gs, Oi(o[0], o[1])), o = [0, 100]);
1642
+ process.env.NODE_ENV !== "production" && l !== Ie && ce(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== Ie && typeof o[0] != "number" && (this.mixKeyframes = ln(gs, Di(o[0], o[1])), o = [0, 100]);
1651
1643
  const u = l(I(v({}, e), { keyframes: o }));
1652
1644
  a === "mirror" && (this.mirroredGenerator = l(I(v({}, e), {
1653
1645
  keyframes: [...o].reverse(),
@@ -1668,13 +1660,13 @@ class mn extends pn {
1668
1660
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
1669
1661
  const k = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), V = this.playbackSpeed >= 0 ? k < 0 : k > r;
1670
1662
  this.currentTime = Math.max(k, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
1671
- let _ = this.currentTime, M = i;
1663
+ let L = this.currentTime, M = i;
1672
1664
  if (h) {
1673
1665
  const w = Math.min(this.currentTime, r) / o;
1674
- let R = Math.floor(w), O = w % 1;
1675
- !O && w >= 1 && (O = 1), O === 1 && R--, R = Math.min(R, h + 1), !!(R % 2) && (m === "reverse" ? (O = 1 - O, p && (O -= p / o)) : m === "mirror" && (M = s)), _ = xe(0, 1, O) * o;
1666
+ let O = Math.floor(w), R = w % 1;
1667
+ !R && w >= 1 && (R = 1), R === 1 && O--, O = Math.min(O, h + 1), !!(O % 2) && (m === "reverse" ? (R = 1 - R, p && (R -= p / o)) : m === "mirror" && (M = s)), L = xe(0, 1, R) * o;
1676
1668
  }
1677
- const T = V ? { done: !1, value: d[0] } : M.next(_);
1669
+ const T = V ? { done: !1, value: d[0] } : M.next(L);
1678
1670
  a && (T.value = a(T.value));
1679
1671
  let { done: D } = T;
1680
1672
  !V && l !== null && (D = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
@@ -1765,20 +1757,20 @@ const Ce = (n) => n * 180 / Math.PI, jt = (n) => {
1765
1757
  skewX: (n) => Ce(Math.atan(n[1])),
1766
1758
  skewY: (n) => Ce(Math.atan(n[2])),
1767
1759
  skew: (n) => (Math.abs(n[1]) + Math.abs(n[2])) / 2
1768
- }, Bt = (n) => (n = n % 360, n < 0 && (n += 360), n), Bn = jt, zn = (n) => Math.sqrt(n[0] * n[0] + n[1] * n[1]), $n = (n) => Math.sqrt(n[4] * n[4] + n[5] * n[5]), ys = {
1760
+ }, Bt = (n) => (n = n % 360, n < 0 && (n += 360), n), Fn = jt, jn = (n) => Math.sqrt(n[0] * n[0] + n[1] * n[1]), Bn = (n) => Math.sqrt(n[4] * n[4] + n[5] * n[5]), ys = {
1769
1761
  x: 12,
1770
1762
  y: 13,
1771
1763
  z: 14,
1772
1764
  translateX: 12,
1773
1765
  translateY: 13,
1774
1766
  translateZ: 14,
1775
- scaleX: zn,
1776
- scaleY: $n,
1777
- scale: (n) => (zn(n) + $n(n)) / 2,
1767
+ scaleX: jn,
1768
+ scaleY: Bn,
1769
+ scale: (n) => (jn(n) + Bn(n)) / 2,
1778
1770
  rotateX: (n) => Bt(Ce(Math.atan2(n[6], n[5]))),
1779
1771
  rotateY: (n) => Bt(Ce(Math.atan2(-n[2], n[0]))),
1780
- rotateZ: Bn,
1781
- rotate: Bn,
1772
+ rotateZ: Fn,
1773
+ rotate: Fn,
1782
1774
  skewX: (n) => Ce(Math.atan(n[4])),
1783
1775
  skewY: (n) => Ce(Math.atan(n[1])),
1784
1776
  skew: (n) => (Math.abs(n[1]) + Math.abs(n[4])) / 2
@@ -1809,7 +1801,7 @@ const Cs = (n, e) => {
1809
1801
  function Es(n) {
1810
1802
  return parseFloat(n.trim());
1811
1803
  }
1812
- const Kn = (n) => n === Ne || n === L, ks = /* @__PURE__ */ new Set(["x", "y", "z"]), xs = Re.filter((n) => !ks.has(n));
1804
+ const zn = (n) => n === Ne || n === _, ks = /* @__PURE__ */ new Set(["x", "y", "z"]), xs = Oe.filter((n) => !ks.has(n));
1813
1805
  function ws(n) {
1814
1806
  const e = [];
1815
1807
  return xs.forEach((t) => {
@@ -1833,7 +1825,7 @@ Ee.translateX = Ee.x;
1833
1825
  Ee.translateY = Ee.y;
1834
1826
  const ke = /* @__PURE__ */ new Set();
1835
1827
  let Kt = !1, qt = !1, Gt = !1;
1836
- function Ui() {
1828
+ function Hi() {
1837
1829
  if (qt) {
1838
1830
  const n = Array.from(ke).filter((i) => i.needsMeasurement), e = new Set(n.map((i) => i.element)), t = /* @__PURE__ */ new Map();
1839
1831
  e.forEach((i) => {
@@ -1852,20 +1844,20 @@ function Ui() {
1852
1844
  }
1853
1845
  qt = !1, Kt = !1, ke.forEach((n) => n.complete(Gt)), ke.clear();
1854
1846
  }
1855
- function Wi() {
1847
+ function Yi() {
1856
1848
  ke.forEach((n) => {
1857
1849
  n.readKeyframes(), n.needsMeasurement && (qt = !0);
1858
1850
  });
1859
1851
  }
1860
1852
  function Ts() {
1861
- Gt = !0, Wi(), Ui(), Gt = !1;
1853
+ Gt = !0, Yi(), Hi(), Gt = !1;
1862
1854
  }
1863
1855
  class fn {
1864
1856
  constructor(e, t, i, r, a, s = !1) {
1865
1857
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = i, this.motionValue = r, this.element = a, this.isAsync = s;
1866
1858
  }
1867
1859
  scheduleResolve() {
1868
- this.state = "scheduled", this.isAsync ? (ke.add(this), Kt || (Kt = !0, ue.read(Wi), ue.resolveKeyframes(Ui))) : (this.readKeyframes(), this.complete());
1860
+ this.state = "scheduled", this.isAsync ? (ke.add(this), Kt || (Kt = !0, ue.read(Yi), ue.resolveKeyframes(Hi))) : (this.readKeyframes(), this.complete());
1869
1861
  }
1870
1862
  readKeyframes() {
1871
1863
  const { unresolvedKeyframes: e, name: t, element: i, motionValue: r } = this;
@@ -1900,7 +1892,7 @@ class fn {
1900
1892
  }
1901
1893
  }
1902
1894
  const As = (n) => n.startsWith("--");
1903
- function _s(n, e, t) {
1895
+ function Ls(n, e, t) {
1904
1896
  As(e) ? n.style.setProperty(e, t) : n.style[e] = t;
1905
1897
  }
1906
1898
  // @__NO_SIDE_EFFECTS__
@@ -1908,7 +1900,7 @@ function gn(n) {
1908
1900
  let e;
1909
1901
  return () => (e === void 0 && (e = n()), e);
1910
1902
  }
1911
- const Ls = /* @__PURE__ */ gn(() => window.ScrollTimeline !== void 0), Vs = {};
1903
+ const _s = /* @__PURE__ */ gn(() => window.ScrollTimeline !== void 0), Vs = {};
1912
1904
  function Is(n, e) {
1913
1905
  const t = /* @__PURE__ */ gn(n);
1914
1906
  return () => {
@@ -1916,14 +1908,14 @@ function Is(n, e) {
1916
1908
  return (i = Vs[e]) != null ? i : t();
1917
1909
  };
1918
1910
  }
1919
- const Zi = /* @__PURE__ */ Is(() => {
1911
+ const Ui = /* @__PURE__ */ Is(() => {
1920
1912
  try {
1921
1913
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1922
1914
  } catch (n) {
1923
1915
  return !1;
1924
1916
  }
1925
1917
  return !0;
1926
- }, "linearEasing"), Ue = ([n, e, t, i]) => `cubic-bezier(${n}, ${e}, ${t}, ${i})`, qn = {
1918
+ }, "linearEasing"), Ue = ([n, e, t, i]) => `cubic-bezier(${n}, ${e}, ${t}, ${i})`, $n = {
1927
1919
  linear: "linear",
1928
1920
  ease: "ease",
1929
1921
  easeIn: "ease-in",
@@ -1934,16 +1926,16 @@ const Zi = /* @__PURE__ */ Is(() => {
1934
1926
  backIn: /* @__PURE__ */ Ue([0.31, 0.01, 0.66, -0.59]),
1935
1927
  backOut: /* @__PURE__ */ Ue([0.33, 1.53, 0.69, 0.99])
1936
1928
  };
1937
- function Ji(n, e) {
1929
+ function Wi(n, e) {
1938
1930
  if (n)
1939
- return typeof n == "function" ? Zi() ? Ni(n, e) : "ease-out" : Hi(n) ? Ue(n) : Array.isArray(n) ? n.map((t) => Ji(t, e) || qn.easeOut) : qn[n];
1931
+ return typeof n == "function" ? Ui() ? Oi(n, e) : "ease-out" : qi(n) ? Ue(n) : Array.isArray(n) ? n.map((t) => Wi(t, e) || $n.easeOut) : $n[n];
1940
1932
  }
1941
1933
  function Ms(n, e, t, { delay: i = 0, duration: r = 300, repeat: a = 0, repeatType: s = "loop", ease: o = "easeOut", times: l } = {}, u = void 0) {
1942
1934
  const d = {
1943
1935
  [e]: t
1944
1936
  };
1945
1937
  l && (d.offset = l);
1946
- const h = Ji(o, r);
1938
+ const h = Wi(o, r);
1947
1939
  Array.isArray(h) && (d.easing = h);
1948
1940
  const m = {
1949
1941
  delay: i,
@@ -1958,7 +1950,7 @@ function Ms(n, e, t, { delay: i = 0, duration: r = 300, repeat: a = 0, repeatTyp
1958
1950
  function Ps(t) {
1959
1951
  var i = t, { type: n } = i, e = ae(i, ["type"]);
1960
1952
  var r, a;
1961
- return tn(n) && Zi() ? n.applyToOptions(e) : ((r = e.duration) != null || (e.duration = 300), (a = e.ease) != null || (e.ease = "easeOut"), e);
1953
+ return tn(n) && Ui() ? n.applyToOptions(e) : ((r = e.duration) != null || (e.duration = 300), (a = e.ease) != null || (e.ease = "easeOut"), e);
1962
1954
  }
1963
1955
  class Ds extends pn {
1964
1956
  constructor(e) {
@@ -1970,7 +1962,7 @@ class Ds extends pn {
1970
1962
  this.animation = Ms(t, i, r, u, a), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1971
1963
  if (this.finishedTime = this.time, !a) {
1972
1964
  const d = hn(r, this.options, o, this.speed);
1973
- this.updateMotionValue ? this.updateMotionValue(d) : _s(t, i, d), this.animation.cancel();
1965
+ this.updateMotionValue ? this.updateMotionValue(d) : Ls(t, i, d), this.animation.cancel();
1974
1966
  }
1975
1967
  l == null || l(), this.notifyFinished();
1976
1968
  };
@@ -2049,24 +2041,24 @@ class Ds extends pn {
2049
2041
  */
2050
2042
  attachTimeline({ timeline: e, observe: t }) {
2051
2043
  var i;
2052
- return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, e && Ls() ? (this.animation.timeline = e, De) : t(this);
2044
+ return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, e && _s() ? (this.animation.timeline = e, De) : t(this);
2053
2045
  }
2054
2046
  }
2055
- const Xi = {
2056
- anticipate: qi,
2057
- backInOut: Ki,
2058
- circInOut: Gi
2047
+ const Zi = {
2048
+ anticipate: $i,
2049
+ backInOut: zi,
2050
+ circInOut: Ki
2059
2051
  };
2060
- function Rs(n) {
2061
- return n in Xi;
2062
- }
2063
2052
  function Os(n) {
2064
- typeof n.ease == "string" && Rs(n.ease) && (n.ease = Xi[n.ease]);
2053
+ return n in Zi;
2065
2054
  }
2066
- const Gn = 10;
2055
+ function Rs(n) {
2056
+ typeof n.ease == "string" && Os(n.ease) && (n.ease = Zi[n.ease]);
2057
+ }
2058
+ const Kn = 10;
2067
2059
  class Ns extends Ds {
2068
2060
  constructor(e) {
2069
- Os(e), Yi(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
2061
+ Rs(e), Gi(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
2070
2062
  }
2071
2063
  /**
2072
2064
  * WAAPI doesn't natively have any interruption capabilities.
@@ -2088,10 +2080,10 @@ class Ns extends Ds {
2088
2080
  const o = new mn(I(v({}, s), {
2089
2081
  autoplay: !1
2090
2082
  })), l = /* @__PURE__ */ se((d = this.finishedTime) != null ? d : this.time);
2091
- t.setWithVelocity(o.sample(l - Gn).value, o.sample(l).value, Gn), o.stop();
2083
+ t.setWithVelocity(o.sample(l - Kn).value, o.sample(l).value, Kn), o.stop();
2092
2084
  }
2093
2085
  }
2094
- const Hn = (n, e) => e === "zIndex" ? !1 : !!(typeof n == "number" || Array.isArray(n) || typeof n == "string" && // It's animatable if we have a string
2086
+ const qn = (n, e) => e === "zIndex" ? !1 : !!(typeof n == "number" || Array.isArray(n) || typeof n == "string" && // It's animatable if we have a string
2095
2087
  (Se.test(n) || n === "0") && // And it contains numbers and/or colors
2096
2088
  !n.startsWith("url("));
2097
2089
  function Ss(n) {
@@ -2108,14 +2100,14 @@ function Fs(n, e, t, i) {
2108
2100
  return !1;
2109
2101
  if (e === "display" || e === "visibility")
2110
2102
  return !0;
2111
- const a = n[n.length - 1], s = Hn(r, e), o = Hn(a, e);
2103
+ const a = n[n.length - 1], s = qn(r, e), o = qn(a, e);
2112
2104
  return it(s === o, `You are trying to animate ${e} from "${r}" to "${a}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${a} via the \`style\` property.`), !s || !o ? !1 : Ss(n) || (t === "spring" || tn(t)) && i;
2113
2105
  }
2114
- function Qi(n) {
2106
+ function Ji(n) {
2115
2107
  return typeof n == "object" && n !== null;
2116
2108
  }
2117
2109
  function js(n) {
2118
- return Qi(n) && "offsetHeight" in n;
2110
+ return Ji(n) && "offsetHeight" in n;
2119
2111
  }
2120
2112
  const Bs = /* @__PURE__ */ new Set([
2121
2113
  "opacity",
@@ -2157,7 +2149,7 @@ class qs extends pn {
2157
2149
  motionValue: u,
2158
2150
  element: d
2159
2151
  }, h), b = (d == null ? void 0 : d.KeyframeResolver) || fn;
2160
- this.keyframeResolver = new b(o, (k, V, _) => this.onKeyframesResolved(k, V, g, !_), l, u, d), (y = this.keyframeResolver) == null || y.scheduleResolve();
2152
+ this.keyframeResolver = new b(o, (k, V, L) => this.onKeyframesResolved(k, V, g, !L), l, u, d), (y = this.keyframeResolver) == null || y.scheduleResolve();
2161
2153
  }
2162
2154
  onKeyframesResolved(e, t, i, r) {
2163
2155
  this.keyframeResolver = void 0;
@@ -2222,8 +2214,8 @@ class qs extends pn {
2222
2214
  this._animation && this.animation.cancel(), (e = this.keyframeResolver) == null || e.cancel();
2223
2215
  }
2224
2216
  }
2225
- const er = (n, e, t, i = {}, r, a) => (s) => {
2226
- const o = Ai(i, n) || {}, l = o.delay || i.delay || 0;
2217
+ const Xi = (n, e, t, i = {}, r, a) => (s) => {
2218
+ const o = wi(i, n) || {}, l = o.delay || i.delay || 0;
2227
2219
  let { elapsed: u = 0 } = i;
2228
2220
  u = u - /* @__PURE__ */ se(l);
2229
2221
  const d = I(v({
@@ -2254,14 +2246,14 @@ const er = (n, e, t, i = {}, r, a) => (s) => {
2254
2246
  }
2255
2247
  }
2256
2248
  return o.isSync ? new mn(d) : new qs(d);
2257
- }, tr = /* @__PURE__ */ new Set([
2249
+ }, Qi = /* @__PURE__ */ new Set([
2258
2250
  "width",
2259
2251
  "height",
2260
2252
  "top",
2261
2253
  "left",
2262
2254
  "right",
2263
2255
  "bottom",
2264
- ...Re
2256
+ ...Oe
2265
2257
  ]);
2266
2258
  function Gs({ protectedKeys: n, needsAnimating: e }, t) {
2267
2259
  const i = n.hasOwnProperty(t) && e[t] !== !0;
@@ -2278,18 +2270,18 @@ function Hs(n, e, { delay: t = 0, transitionOverride: i, type: r } = {}) {
2278
2270
  continue;
2279
2271
  const b = v({
2280
2272
  delay: t
2281
- }, Ai(a || {}, m)), y = p.get();
2273
+ }, wi(a || {}, m)), y = p.get();
2282
2274
  if (y !== void 0 && !p.isAnimating && !Array.isArray(g) && g === y && !b.velocity)
2283
2275
  continue;
2284
2276
  let k = !1;
2285
2277
  if (window.MotionHandoffAnimation) {
2286
- const _ = ga(n);
2287
- if (_) {
2288
- const M = window.MotionHandoffAnimation(_, m, ue);
2278
+ const L = ga(n);
2279
+ if (L) {
2280
+ const M = window.MotionHandoffAnimation(L, m, ue);
2289
2281
  M !== null && (b.startTime = M, k = !0);
2290
2282
  }
2291
2283
  }
2292
- pa(n, m), p.start(er(m, p, g, n.shouldReduceMotion && tr.has(m) ? { type: !1 } : b, n, k));
2284
+ pa(n, m), p.start(Xi(m, p, g, n.shouldReduceMotion && Qi.has(m) ? { type: !1 } : b, n, k));
2293
2285
  const V = p.animation;
2294
2286
  V && l.push(V);
2295
2287
  }
@@ -2319,7 +2311,7 @@ function Us(n, e) {
2319
2311
  function Ws(n, e) {
2320
2312
  return Ys(Us(n.getBoundingClientRect(), e));
2321
2313
  }
2322
- const Yn = {
2314
+ const Gn = {
2323
2315
  animation: [
2324
2316
  "animate",
2325
2317
  "variants",
@@ -2339,16 +2331,16 @@ const Yn = {
2339
2331
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
2340
2332
  layout: ["layout", "layoutId"]
2341
2333
  }, Ht = {};
2342
- for (const n in Yn)
2334
+ for (const n in Gn)
2343
2335
  Ht[n] = {
2344
- isEnabled: (e) => Yn[n].some((t) => !!e[t])
2336
+ isEnabled: (e) => Gn[n].some((t) => !!e[t])
2345
2337
  };
2346
- const Un = () => ({ min: 0, max: 0 }), bn = () => ({
2347
- x: Un(),
2348
- y: Un()
2349
- }), Zs = typeof window != "undefined", Yt = { current: null }, nr = { current: !1 };
2338
+ const Hn = () => ({ min: 0, max: 0 }), bn = () => ({
2339
+ x: Hn(),
2340
+ y: Hn()
2341
+ }), Zs = typeof window != "undefined", Yt = { current: null }, er = { current: !1 };
2350
2342
  function Js() {
2351
- if (nr.current = !0, !!Zs)
2343
+ if (er.current = !0, !!Zs)
2352
2344
  if (window.matchMedia) {
2353
2345
  const n = window.matchMedia("(prefers-reduced-motion)"), e = () => Yt.current = n.matches;
2354
2346
  n.addListener(e), e();
@@ -2370,11 +2362,11 @@ const eo = [
2370
2362
  "whileDrag",
2371
2363
  "exit"
2372
2364
  ], to = ["initial", ...eo];
2373
- function ir(n) {
2365
+ function tr(n) {
2374
2366
  return Xs(n.animate) || to.some((e) => Qs(n[e]));
2375
2367
  }
2376
2368
  function no(n) {
2377
- return !!(ir(n) || n.variants);
2369
+ return !!(tr(n) || n.variants);
2378
2370
  }
2379
2371
  function io(n, e, t) {
2380
2372
  for (const i in e) {
@@ -2396,10 +2388,10 @@ function io(n, e, t) {
2396
2388
  e[i] === void 0 && n.removeValue(i);
2397
2389
  return e;
2398
2390
  }
2399
- const rr = (n) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n), ar = (n) => /^0[^.\s]+$/u.test(n), ro = {
2391
+ const nr = (n) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n), ir = (n) => /^0[^.\s]+$/u.test(n), ro = {
2400
2392
  test: (n) => n === "auto",
2401
2393
  parse: (n) => n
2402
- }, sr = (n) => (e) => e.test(n), or = [Ne, L, Me, me, Pa, Ma, ro], Wn = (n) => or.find(sr(n)), ao = [...or, U, Se], so = (n) => ao.find(sr(n)), oo = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2394
+ }, rr = (n) => (e) => e.test(n), ar = [Ne, _, Me, me, Pa, Ma, ro], Yn = (n) => ar.find(rr(n)), ao = [...ar, U, Se], so = (n) => ao.find(rr(n)), oo = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2403
2395
  function lo(n) {
2404
2396
  const [e, t] = n.slice(0, -1).split("(");
2405
2397
  if (e === "drop-shadow")
@@ -2416,7 +2408,7 @@ const co = /\b([a-z-]*)\(.*?\)/gu, Ut = I(v({}, Se), {
2416
2408
  const e = n.match(co);
2417
2409
  return e ? e.map(lo).join(" ") : n;
2418
2410
  }
2419
- }), Zn = I(v({}, Ne), {
2411
+ }), Un = I(v({}, Ne), {
2420
2412
  transform: Math.round
2421
2413
  }), uo = {
2422
2414
  rotate: me,
@@ -2430,61 +2422,61 @@ const co = /\b([a-z-]*)\(.*?\)/gu, Ut = I(v({}, Se), {
2430
2422
  skew: me,
2431
2423
  skewX: me,
2432
2424
  skewY: me,
2433
- distance: L,
2434
- translateX: L,
2435
- translateY: L,
2436
- translateZ: L,
2437
- x: L,
2438
- y: L,
2439
- z: L,
2440
- perspective: L,
2441
- transformPerspective: L,
2425
+ distance: _,
2426
+ translateX: _,
2427
+ translateY: _,
2428
+ translateZ: _,
2429
+ x: _,
2430
+ y: _,
2431
+ z: _,
2432
+ perspective: _,
2433
+ transformPerspective: _,
2442
2434
  opacity: Qe,
2443
- originX: Dn,
2444
- originY: Dn,
2445
- originZ: L
2435
+ originX: Mn,
2436
+ originY: Mn,
2437
+ originZ: _
2446
2438
  }, vn = I(v({
2447
2439
  // Border props
2448
- borderWidth: L,
2449
- borderTopWidth: L,
2450
- borderRightWidth: L,
2451
- borderBottomWidth: L,
2452
- borderLeftWidth: L,
2453
- borderRadius: L,
2454
- radius: L,
2455
- borderTopLeftRadius: L,
2456
- borderTopRightRadius: L,
2457
- borderBottomRightRadius: L,
2458
- borderBottomLeftRadius: L,
2440
+ borderWidth: _,
2441
+ borderTopWidth: _,
2442
+ borderRightWidth: _,
2443
+ borderBottomWidth: _,
2444
+ borderLeftWidth: _,
2445
+ borderRadius: _,
2446
+ radius: _,
2447
+ borderTopLeftRadius: _,
2448
+ borderTopRightRadius: _,
2449
+ borderBottomRightRadius: _,
2450
+ borderBottomLeftRadius: _,
2459
2451
  // Positioning props
2460
- width: L,
2461
- maxWidth: L,
2462
- height: L,
2463
- maxHeight: L,
2464
- top: L,
2465
- right: L,
2466
- bottom: L,
2467
- left: L,
2452
+ width: _,
2453
+ maxWidth: _,
2454
+ height: _,
2455
+ maxHeight: _,
2456
+ top: _,
2457
+ right: _,
2458
+ bottom: _,
2459
+ left: _,
2468
2460
  // Spacing props
2469
- padding: L,
2470
- paddingTop: L,
2471
- paddingRight: L,
2472
- paddingBottom: L,
2473
- paddingLeft: L,
2474
- margin: L,
2475
- marginTop: L,
2476
- marginRight: L,
2477
- marginBottom: L,
2478
- marginLeft: L,
2461
+ padding: _,
2462
+ paddingTop: _,
2463
+ paddingRight: _,
2464
+ paddingBottom: _,
2465
+ paddingLeft: _,
2466
+ margin: _,
2467
+ marginTop: _,
2468
+ marginRight: _,
2469
+ marginBottom: _,
2470
+ marginLeft: _,
2479
2471
  // Misc
2480
- backgroundPositionX: L,
2481
- backgroundPositionY: L
2472
+ backgroundPositionX: _,
2473
+ backgroundPositionY: _
2482
2474
  }, uo), {
2483
- zIndex: Zn,
2475
+ zIndex: Un,
2484
2476
  // SVG
2485
2477
  fillOpacity: Qe,
2486
2478
  strokeOpacity: Qe,
2487
- numOctaves: Zn
2479
+ numOctaves: Un
2488
2480
  }), ho = I(v({}, vn), {
2489
2481
  // Color props
2490
2482
  color: U,
@@ -2500,12 +2492,12 @@ const co = /\b([a-z-]*)\(.*?\)/gu, Ut = I(v({}, Se), {
2500
2492
  borderLeftColor: U,
2501
2493
  filter: Ut,
2502
2494
  WebkitFilter: Ut
2503
- }), lr = (n) => ho[n];
2504
- function cr(n, e) {
2505
- let t = lr(n);
2495
+ }), sr = (n) => ho[n];
2496
+ function or(n, e) {
2497
+ let t = sr(n);
2506
2498
  return t !== Ut && (t = Se), t.getAnimatableNone ? t.getAnimatableNone(e) : void 0;
2507
2499
  }
2508
- const Jn = [
2500
+ const Wn = [
2509
2501
  "AnimationStart",
2510
2502
  "AnimationComplete",
2511
2503
  "Update",
@@ -2514,7 +2506,7 @@ const Jn = [
2514
2506
  "LayoutAnimationStart",
2515
2507
  "LayoutAnimationComplete"
2516
2508
  ];
2517
- class dr {
2509
+ class lr {
2518
2510
  /**
2519
2511
  * This method takes React props and returns found MotionValues. For example, HTML
2520
2512
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -2533,7 +2525,7 @@ class dr {
2533
2525
  this.renderScheduledAt < p && (this.renderScheduledAt = p, ue.render(this.render, !1, !0));
2534
2526
  };
2535
2527
  const { latestValues: l, renderState: u } = s;
2536
- this.latestValues = l, this.baseTarget = v({}, l), this.initialValues = t.initial ? v({}, l) : {}, this.renderState = u, this.parent = e, this.props = t, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.options = o, this.blockInitialAnimation = !!a, this.isControllingVariants = ir(t), this.isVariantNode = no(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2528
+ this.latestValues = l, this.baseTarget = v({}, l), this.initialValues = t.initial ? v({}, l) : {}, this.renderState = u, this.parent = e, this.props = t, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.options = o, this.blockInitialAnimation = !!a, this.isControllingVariants = tr(t), this.isVariantNode = no(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2537
2529
  const m = this.scrapeMotionValuesFromProps(t, {}, this), { willChange: d } = m, h = ae(m, ["willChange"]);
2538
2530
  for (const p in h) {
2539
2531
  const g = h[p];
@@ -2541,10 +2533,10 @@ class dr {
2541
2533
  }
2542
2534
  }
2543
2535
  mount(e) {
2544
- this.current = e, Je.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((t, i) => this.bindToMotionValue(i, t)), nr.current || Js(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Yt.current, process.env.NODE_ENV !== "production" && xi(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
2536
+ this.current = e, Je.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((t, i) => this.bindToMotionValue(i, t)), er.current || Js(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Yt.current, process.env.NODE_ENV !== "production" && Ei(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
2545
2537
  }
2546
2538
  unmount() {
2547
- this.projection && this.projection.unmount(), Rt(this.notifyUpdate), Rt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
2539
+ this.projection && this.projection.unmount(), Ot(this.notifyUpdate), Ot(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
2548
2540
  for (const e in this.events)
2549
2541
  this.events[e].clear();
2550
2542
  for (const e in this.features) {
@@ -2555,7 +2547,7 @@ class dr {
2555
2547
  }
2556
2548
  bindToMotionValue(e, t) {
2557
2549
  this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
2558
- const i = Oe.has(e);
2550
+ const i = Re.has(e);
2559
2551
  i && this.onBindTransform && this.onBindTransform();
2560
2552
  const r = t.on("change", (o) => {
2561
2553
  this.latestValues[e] = o, this.props.onUpdate && ue.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
@@ -2604,8 +2596,8 @@ class dr {
2604
2596
  */
2605
2597
  update(e, t) {
2606
2598
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
2607
- for (let i = 0; i < Jn.length; i++) {
2608
- const r = Jn[i];
2599
+ for (let i = 0; i < Wn.length; i++) {
2600
+ const r = Wn[i];
2609
2601
  this.propEventSubscriptions[r] && (this.propEventSubscriptions[r](), delete this.propEventSubscriptions[r]);
2610
2602
  const a = "on" + r, s = e[a];
2611
2603
  s && (this.propEventSubscriptions[r] = this.on(r, s));
@@ -2676,7 +2668,7 @@ class dr {
2676
2668
  readValue(e, t) {
2677
2669
  var r;
2678
2670
  let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (r = this.getBaseTargetFromProps(this.props, e)) != null ? r : this.readValueFromInstance(this.current, e, this.options);
2679
- return i != null && (typeof i == "string" && (rr(i) || ar(i)) ? i = parseFloat(i) : !so(i) && Se.test(t) && (i = cr(e, t)), this.setBaseTarget(e, J(i) ? i.get() : i)), J(i) ? i.get() : i;
2671
+ return i != null && (typeof i == "string" && (nr(i) || ir(i)) ? i = parseFloat(i) : !so(i) && Se.test(t) && (i = or(e, t)), this.setBaseTarget(e, J(i) ? i.get() : i)), J(i) ? i.get() : i;
2680
2672
  }
2681
2673
  /**
2682
2674
  * Set the base target to later animate back to. This is currently
@@ -2694,7 +2686,7 @@ class dr {
2694
2686
  const { initial: t } = this.props;
2695
2687
  let i;
2696
2688
  if (typeof t == "string" || typeof t == "object") {
2697
- const s = ki(this.props, t, (a = this.presenceContext) == null ? void 0 : a.custom);
2689
+ const s = Ci(this.props, t, (a = this.presenceContext) == null ? void 0 : a.custom);
2698
2690
  s && (i = s[e]);
2699
2691
  }
2700
2692
  if (t && i !== void 0)
@@ -2703,7 +2695,7 @@ class dr {
2703
2695
  return r !== void 0 && !J(r) ? r : this.initialValues[e] !== void 0 && i === void 0 ? void 0 : this.baseTarget[e];
2704
2696
  }
2705
2697
  on(e, t) {
2706
- return this.events[e] || (this.events[e] = new wi()), this.events[e].add(t);
2698
+ return this.events[e] || (this.events[e] = new ki()), this.events[e].add(t);
2707
2699
  }
2708
2700
  notify(e, ...t) {
2709
2701
  this.events[e] && this.events[e].notify(...t);
@@ -2721,7 +2713,7 @@ function mo(n) {
2721
2713
  return [`--${t != null ? t : i}`, r];
2722
2714
  }
2723
2715
  const fo = 4;
2724
- function ur(n, e, t = 1) {
2716
+ function cr(n, e, t = 1) {
2725
2717
  ce(t <= fo, `Max CSS variable fallback depth detected in property "${n}". This may indicate a circular fallback dependency.`);
2726
2718
  const [i, r] = mo(n);
2727
2719
  if (!i)
@@ -2729,12 +2721,12 @@ function ur(n, e, t = 1) {
2729
2721
  const a = window.getComputedStyle(e).getPropertyValue(i);
2730
2722
  if (a) {
2731
2723
  const s = a.trim();
2732
- return rr(s) ? parseFloat(s) : s;
2724
+ return nr(s) ? parseFloat(s) : s;
2733
2725
  }
2734
- return an(r) ? ur(r, e, t + 1) : r;
2726
+ return an(r) ? cr(r, e, t + 1) : r;
2735
2727
  }
2736
2728
  function go(n) {
2737
- return typeof n == "number" ? n === 0 : n !== null ? n === "none" || n === "0" || ar(n) : !0;
2729
+ return typeof n == "number" ? n === 0 : n !== null ? n === "none" || n === "0" || ir(n) : !0;
2738
2730
  }
2739
2731
  const bo = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2740
2732
  function vo(n, e, t) {
@@ -2745,7 +2737,7 @@ function vo(n, e, t) {
2745
2737
  }
2746
2738
  if (r && t)
2747
2739
  for (const a of e)
2748
- n[a] = cr(t, r);
2740
+ n[a] = or(t, r);
2749
2741
  }
2750
2742
  class yo extends fn {
2751
2743
  constructor(e, t, i, r, a) {
@@ -2759,15 +2751,15 @@ class yo extends fn {
2759
2751
  for (let l = 0; l < e.length; l++) {
2760
2752
  let u = e[l];
2761
2753
  if (typeof u == "string" && (u = u.trim(), an(u))) {
2762
- const d = ur(u, t.current);
2754
+ const d = cr(u, t.current);
2763
2755
  d !== void 0 && (e[l] = d), l === e.length - 1 && (this.finalKeyframe = u);
2764
2756
  }
2765
2757
  }
2766
- if (this.resolveNoneKeyframes(), !tr.has(i) || e.length !== 2)
2758
+ if (this.resolveNoneKeyframes(), !Qi.has(i) || e.length !== 2)
2767
2759
  return;
2768
- const [r, a] = e, s = Wn(r), o = Wn(a);
2760
+ const [r, a] = e, s = Yn(r), o = Yn(a);
2769
2761
  if (s !== o)
2770
- if (Kn(s) && Kn(o))
2762
+ if (zn(s) && zn(o))
2771
2763
  for (let l = 0; l < e.length; l++) {
2772
2764
  const u = e[l];
2773
2765
  typeof u == "string" && (e[l] = parseFloat(u));
@@ -2801,7 +2793,7 @@ class yo extends fn {
2801
2793
  }), this.resolveNoneKeyframes();
2802
2794
  }
2803
2795
  }
2804
- class hr extends dr {
2796
+ class dr extends lr {
2805
2797
  constructor() {
2806
2798
  super(...arguments), this.KeyframeResolver = yo;
2807
2799
  }
@@ -2822,21 +2814,21 @@ class hr extends dr {
2822
2814
  }));
2823
2815
  }
2824
2816
  }
2825
- const pr = (n, e) => e && typeof n == "number" ? e.transform(n) : n, Co = {
2817
+ const ur = (n, e) => e && typeof n == "number" ? e.transform(n) : n, Co = {
2826
2818
  x: "translateX",
2827
2819
  y: "translateY",
2828
2820
  z: "translateZ",
2829
2821
  transformPerspective: "perspective"
2830
- }, Eo = Re.length;
2822
+ }, Eo = Oe.length;
2831
2823
  function ko(n, e, t) {
2832
2824
  let i = "", r = !0;
2833
2825
  for (let a = 0; a < Eo; a++) {
2834
- const s = Re[a], o = n[s];
2826
+ const s = Oe[a], o = n[s];
2835
2827
  if (o === void 0)
2836
2828
  continue;
2837
2829
  let l = !0;
2838
2830
  if (typeof o == "number" ? l = o === (s.startsWith("scale") ? 1 : 0) : l = parseFloat(o) === 0, !l || t) {
2839
- const u = pr(o, vn[s]);
2831
+ const u = ur(o, vn[s]);
2840
2832
  if (!l) {
2841
2833
  r = !1;
2842
2834
  const d = Co[s] || s;
@@ -2847,19 +2839,19 @@ function ko(n, e, t) {
2847
2839
  }
2848
2840
  return i = i.trim(), t ? i = t(e, r ? "" : i) : r && (i = "none"), i;
2849
2841
  }
2850
- function mr(n, e, t) {
2842
+ function hr(n, e, t) {
2851
2843
  const { style: i, vars: r, transformOrigin: a } = n;
2852
2844
  let s = !1, o = !1;
2853
2845
  for (const l in e) {
2854
2846
  const u = e[l];
2855
- if (Oe.has(l)) {
2847
+ if (Re.has(l)) {
2856
2848
  s = !0;
2857
2849
  continue;
2858
- } else if (Li(l)) {
2850
+ } else if (Ai(l)) {
2859
2851
  r[l] = u;
2860
2852
  continue;
2861
2853
  } else {
2862
- const d = pr(u, vn[l]);
2854
+ const d = ur(u, vn[l]);
2863
2855
  l.startsWith("origin") ? (o = !0, a[l] = d) : i[l] = d;
2864
2856
  }
2865
2857
  }
@@ -2868,16 +2860,16 @@ function mr(n, e, t) {
2868
2860
  i.transformOrigin = `${l} ${u} ${d}`;
2869
2861
  }
2870
2862
  }
2871
- function fr(n, { style: e, vars: t }, i, r) {
2863
+ function pr(n, { style: e, vars: t }, i, r) {
2872
2864
  Object.assign(n.style, e, r && r.getProjectionStyles(i));
2873
2865
  for (const a in t)
2874
2866
  n.style.setProperty(a, t[a]);
2875
2867
  }
2876
2868
  const xo = {};
2877
2869
  function wo(n, { layout: e, layoutId: t }) {
2878
- return Oe.has(n) || n.startsWith("origin") || (e || t !== void 0) && (!!xo[n] || n === "opacity");
2870
+ return Re.has(n) || n.startsWith("origin") || (e || t !== void 0) && (!!xo[n] || n === "opacity");
2879
2871
  }
2880
- function gr(n, e, t) {
2872
+ function mr(n, e, t) {
2881
2873
  var a;
2882
2874
  const { style: i } = n, r = {};
2883
2875
  for (const s in i)
@@ -2887,16 +2879,16 @@ function gr(n, e, t) {
2887
2879
  function To(n) {
2888
2880
  return window.getComputedStyle(n);
2889
2881
  }
2890
- class Ao extends hr {
2882
+ class Ao extends dr {
2891
2883
  constructor() {
2892
- super(...arguments), this.type = "html", this.renderInstance = fr;
2884
+ super(...arguments), this.type = "html", this.renderInstance = pr;
2893
2885
  }
2894
2886
  readValueFromInstance(e, t) {
2895
2887
  var i;
2896
- if (Oe.has(t))
2888
+ if (Re.has(t))
2897
2889
  return (i = this.projection) != null && i.isProjecting ? zt(t) : Cs(e, t);
2898
2890
  {
2899
- const r = To(e), a = (Li(t) ? r.getPropertyValue(t) : r[t]) || 0;
2891
+ const r = To(e), a = (Ai(t) ? r.getPropertyValue(t) : r[t]) || 0;
2900
2892
  return typeof a == "string" ? a.trim() : a;
2901
2893
  }
2902
2894
  }
@@ -2904,21 +2896,21 @@ class Ao extends hr {
2904
2896
  return Ws(e, t);
2905
2897
  }
2906
2898
  build(e, t, i) {
2907
- mr(e, t, i.transformTemplate);
2899
+ hr(e, t, i.transformTemplate);
2908
2900
  }
2909
2901
  scrapeMotionValuesFromProps(e, t, i) {
2910
- return gr(e, t, i);
2902
+ return mr(e, t, i);
2911
2903
  }
2912
2904
  }
2913
- function _o(n, e) {
2905
+ function Lo(n, e) {
2914
2906
  return n in e;
2915
2907
  }
2916
- class Lo extends dr {
2908
+ class _o extends lr {
2917
2909
  constructor() {
2918
2910
  super(...arguments), this.type = "object";
2919
2911
  }
2920
2912
  readValueFromInstance(e, t) {
2921
- if (_o(t, e)) {
2913
+ if (Lo(t, e)) {
2922
2914
  const i = e[t];
2923
2915
  if (typeof i == "string" || typeof i == "number")
2924
2916
  return i;
@@ -2952,8 +2944,8 @@ const Vo = {
2952
2944
  function Mo(n, e, t = 1, i = 0, r = !0) {
2953
2945
  n.pathLength = 1;
2954
2946
  const a = r ? Vo : Io;
2955
- n[a.offset] = L.transform(-i);
2956
- const s = L.transform(e), o = L.transform(t);
2947
+ n[a.offset] = _.transform(-i);
2948
+ const s = _.transform(e), o = _.transform(t);
2957
2949
  n[a.array] = `${s} ${o}`;
2958
2950
  }
2959
2951
  function Po(n, h, l, u, d) {
@@ -2973,7 +2965,7 @@ function Po(n, h, l, u, d) {
2973
2965
  "pathOffset"
2974
2966
  ]);
2975
2967
  var b, y;
2976
- if (mr(n, o, u), l) {
2968
+ if (hr(n, o, u), l) {
2977
2969
  n.style.viewBox && (n.attrs.viewBox = n.style.viewBox);
2978
2970
  return;
2979
2971
  }
@@ -2981,7 +2973,7 @@ function Po(n, h, l, u, d) {
2981
2973
  const { attrs: p, style: g } = n;
2982
2974
  p.transform && (g.transform = p.transform, delete p.transform), (g.transform || p.transformOrigin) && (g.transformOrigin = (b = p.transformOrigin) != null ? b : "50% 50%", delete p.transformOrigin), g.transform && (g.transformBox = (y = d == null ? void 0 : d.transformBox) != null ? y : "fill-box", delete p.transformBox), e !== void 0 && (p.x = e), t !== void 0 && (p.y = t), i !== void 0 && (p.scale = i), r !== void 0 && Mo(p, r, a, s, !1);
2983
2975
  }
2984
- const br = /* @__PURE__ */ new Set([
2976
+ const fr = /* @__PURE__ */ new Set([
2985
2977
  "baseFrequency",
2986
2978
  "diffuseConstant",
2987
2979
  "kernelMatrix",
@@ -3006,21 +2998,21 @@ const br = /* @__PURE__ */ new Set([
3006
2998
  "textLength",
3007
2999
  "lengthAdjust"
3008
3000
  ]), Do = (n) => typeof n == "string" && n.toLowerCase() === "svg";
3009
- function Ro(n, e, t, i) {
3010
- fr(n, e, void 0, i);
3001
+ function Oo(n, e, t, i) {
3002
+ pr(n, e, void 0, i);
3011
3003
  for (const r in e.attrs)
3012
- n.setAttribute(br.has(r) ? r : rn(r), e.attrs[r]);
3004
+ n.setAttribute(fr.has(r) ? r : rn(r), e.attrs[r]);
3013
3005
  }
3014
- function Oo(n, e, t) {
3015
- const i = gr(n, e, t);
3006
+ function Ro(n, e, t) {
3007
+ const i = mr(n, e, t);
3016
3008
  for (const r in n)
3017
3009
  if (J(n[r]) || J(e[r])) {
3018
- const a = Re.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
3010
+ const a = Oe.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
3019
3011
  i[a] = n[r];
3020
3012
  }
3021
3013
  return i;
3022
3014
  }
3023
- class No extends hr {
3015
+ class No extends dr {
3024
3016
  constructor() {
3025
3017
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = bn;
3026
3018
  }
@@ -3028,30 +3020,30 @@ class No extends hr {
3028
3020
  return e[t];
3029
3021
  }
3030
3022
  readValueFromInstance(e, t) {
3031
- if (Oe.has(t)) {
3032
- const i = lr(t);
3023
+ if (Re.has(t)) {
3024
+ const i = sr(t);
3033
3025
  return i && i.default || 0;
3034
3026
  }
3035
- return t = br.has(t) ? t : rn(t), e.getAttribute(t);
3027
+ return t = fr.has(t) ? t : rn(t), e.getAttribute(t);
3036
3028
  }
3037
3029
  scrapeMotionValuesFromProps(e, t, i) {
3038
- return Oo(e, t, i);
3030
+ return Ro(e, t, i);
3039
3031
  }
3040
3032
  build(e, t, i) {
3041
3033
  Po(e, t, this.isSVGTag, i.transformTemplate, i.style);
3042
3034
  }
3043
3035
  renderInstance(e, t, i, r) {
3044
- Ro(e, t, i, r);
3036
+ Oo(e, t, i, r);
3045
3037
  }
3046
3038
  mount(e) {
3047
3039
  this.isSVGTag = Do(e.tagName), super.mount(e);
3048
3040
  }
3049
3041
  }
3050
- function vr(n) {
3051
- return Qi(n) && "ownerSVGElement" in n;
3042
+ function gr(n) {
3043
+ return Ji(n) && "ownerSVGElement" in n;
3052
3044
  }
3053
3045
  function So(n) {
3054
- return vr(n) && n.tagName === "svg";
3046
+ return gr(n) && n.tagName === "svg";
3055
3047
  }
3056
3048
  function Fo(n) {
3057
3049
  const e = {
@@ -3067,7 +3059,7 @@ function Fo(n) {
3067
3059
  },
3068
3060
  latestValues: {}
3069
3061
  }
3070
- }, t = vr(n) && !So(n) ? new No(e) : new Ao(e);
3062
+ }, t = gr(n) && !So(n) ? new No(e) : new Ao(e);
3071
3063
  t.mount(n), Je.set(n, t);
3072
3064
  }
3073
3065
  function jo(n) {
@@ -3080,22 +3072,22 @@ function jo(n) {
3080
3072
  },
3081
3073
  latestValues: {}
3082
3074
  }
3083
- }, t = new Lo(e);
3075
+ }, t = new _o(e);
3084
3076
  t.mount(n), Je.set(n, t);
3085
3077
  }
3086
3078
  function Bo(n, e, t) {
3087
3079
  const i = J(n) ? n : Xe(n);
3088
- return i.start(er("", i, e, t)), i.animation;
3080
+ return i.start(Xi("", i, e, t)), i.animation;
3089
3081
  }
3090
3082
  function zo(n, e) {
3091
3083
  return J(n) || typeof n == "number" || typeof n == "string" && !Qt(e);
3092
3084
  }
3093
- function yr(n, e, t, i) {
3085
+ function br(n, e, t, i) {
3094
3086
  const r = [];
3095
3087
  if (zo(n, e))
3096
3088
  r.push(Bo(n, Qt(e) && e.default || e, t && (t.default || t)));
3097
3089
  else {
3098
- const a = fi(n, e, i), s = a.length;
3090
+ const a = pi(n, e, i), s = a.length;
3099
3091
  ce(!!s, "No valid elements provided.");
3100
3092
  for (let o = 0; o < s; o++) {
3101
3093
  const l = a[o], u = l instanceof Element ? Fo : jo;
@@ -3109,7 +3101,7 @@ function yr(n, e, t, i) {
3109
3101
  function $o(n, e, t) {
3110
3102
  const i = [];
3111
3103
  return Zr(n, e, t, { spring: tt }).forEach(({ keyframes: a, transition: s }, o) => {
3112
- i.push(...yr(o, a, s));
3104
+ i.push(...br(o, a, s));
3113
3105
  }), i;
3114
3106
  }
3115
3107
  class Ko {
@@ -3189,7 +3181,7 @@ function Go(n) {
3189
3181
  function Ho(n) {
3190
3182
  function e(t, i, r) {
3191
3183
  let a = [];
3192
- return Go(t) ? a = $o(t, i, n) : a = yr(t, i, r, n), new qo(a);
3184
+ return Go(t) ? a = $o(t, i, n) : a = br(t, i, r, n), new qo(a);
3193
3185
  }
3194
3186
  return e;
3195
3187
  }
@@ -3210,7 +3202,7 @@ function F(n, e) {
3210
3202
  const t = e.trim().split(/\s+/).filter((i) => i.length > 0);
3211
3203
  n.classList.add(...t);
3212
3204
  }
3213
- class Cr {
3205
+ class vr {
3214
3206
  constructor() {
3215
3207
  c(this, "template", `
3216
3208
  <svg class="${S.spinner}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 215 215" fill="none">
@@ -3232,22 +3224,22 @@ class Cr {
3232
3224
  return this.spinner;
3233
3225
  }
3234
3226
  }
3235
- const il = "_loader_nwq3e_1", Xn = {
3227
+ const il = "_loader_nwq3e_1", Zn = {
3236
3228
  loader: il
3237
3229
  };
3238
3230
  class rl {
3239
3231
  constructor() {
3240
3232
  c(this, "loader");
3241
- this.loader = document.createElement("div"), this.loader.classList.add(Xn.loader), this.loader.appendChild(new Cr().render());
3233
+ this.loader = document.createElement("div"), this.loader.classList.add(Zn.loader), this.loader.appendChild(new vr().render());
3242
3234
  }
3243
3235
  setClassName(e) {
3244
- e ? F(this.loader, e) : this.loader.className = Xn.loader;
3236
+ e ? F(this.loader, e) : this.loader.className = Zn.loader;
3245
3237
  }
3246
3238
  render() {
3247
3239
  return this.loader;
3248
3240
  }
3249
3241
  }
3250
- const al = "_checkout_mcuv2_1", sl = "_hidden_mcuv2_8", ol = "_formInitial_mcuv2_12", ll = "_btnsInitial_mcuv2_22", Z = {
3242
+ const al = "_checkout_15zm1_1", sl = "_hidden_15zm1_8", ol = "_formInitial_15zm1_12", ll = "_btnsInitial_15zm1_21", Z = {
3251
3243
  checkout: al,
3252
3244
  hidden: sl,
3253
3245
  formInitial: ol,
@@ -3256,14 +3248,14 @@ const al = "_checkout_mcuv2_1", sl = "_hidden_mcuv2_8", ol = "_formInitial_mcuv2
3256
3248
  buttons: cl,
3257
3249
  hidden: dl,
3258
3250
  skeleton: ul
3259
- }, hl = "_applePay_1wlwu_1", pl = "_hidden_1wlwu_13", Lt = {
3251
+ }, hl = "_applePay_1wlwu_1", pl = "_hidden_1wlwu_13", _t = {
3260
3252
  applePay: hl,
3261
3253
  hidden: pl
3262
3254
  };
3263
- var Vt, Qn;
3255
+ var Vt, Jn;
3264
3256
  function ml() {
3265
- if (Qn) return Vt;
3266
- Qn = 1;
3257
+ if (Jn) return Vt;
3258
+ Jn = 1;
3267
3259
  var n = {
3268
3260
  visa: {
3269
3261
  niceType: "Visa",
@@ -3458,19 +3450,19 @@ function ml() {
3458
3450
  };
3459
3451
  return Vt = n, Vt;
3460
3452
  }
3461
- var Be = {}, ze = {}, ei;
3462
- function Er() {
3463
- if (ei) return ze;
3464
- ei = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.clone = void 0;
3453
+ var Be = {}, ze = {}, Xn;
3454
+ function yr() {
3455
+ if (Xn) return ze;
3456
+ Xn = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.clone = void 0;
3465
3457
  function n(e) {
3466
3458
  return e ? JSON.parse(JSON.stringify(e)) : null;
3467
3459
  }
3468
3460
  return ze.clone = n, ze;
3469
3461
  }
3470
- var $e = {}, ti;
3462
+ var $e = {}, Qn;
3471
3463
  function fl() {
3472
- if (ti) return $e;
3473
- ti = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.matches = void 0;
3464
+ if (Qn) return $e;
3465
+ Qn = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.matches = void 0;
3474
3466
  function n(i, r, a) {
3475
3467
  var s = String(r).length, o = i.substr(0, s), l = parseInt(o, 10);
3476
3468
  return r = parseInt(String(r).substr(0, o.length), 10), a = parseInt(String(a).substr(0, o.length), 10), l >= r && l <= a;
@@ -3483,11 +3475,11 @@ function fl() {
3483
3475
  }
3484
3476
  return $e.matches = t, $e;
3485
3477
  }
3486
- var ni;
3478
+ var ei;
3487
3479
  function gl() {
3488
- if (ni) return Be;
3489
- ni = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.addMatchingCardsToResults = void 0;
3490
- var n = Er(), e = fl();
3480
+ if (ei) return Be;
3481
+ ei = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.addMatchingCardsToResults = void 0;
3482
+ var n = yr(), e = fl();
3491
3483
  function t(i, r, a) {
3492
3484
  var s, o;
3493
3485
  for (s = 0; s < r.patterns.length; s++) {
@@ -3501,19 +3493,19 @@ function gl() {
3501
3493
  }
3502
3494
  return Be.addMatchingCardsToResults = t, Be;
3503
3495
  }
3504
- var Ke = {}, ii;
3496
+ var Ke = {}, ti;
3505
3497
  function bl() {
3506
- if (ii) return Ke;
3507
- ii = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.isValidInputType = void 0;
3498
+ if (ti) return Ke;
3499
+ ti = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.isValidInputType = void 0;
3508
3500
  function n(e) {
3509
3501
  return typeof e == "string" || e instanceof String;
3510
3502
  }
3511
3503
  return Ke.isValidInputType = n, Ke;
3512
3504
  }
3513
- var qe = {}, ri;
3505
+ var qe = {}, ni;
3514
3506
  function vl() {
3515
- if (ri) return qe;
3516
- ri = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.findBestMatch = void 0;
3507
+ if (ni) return qe;
3508
+ ni = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.findBestMatch = void 0;
3517
3509
  function n(t) {
3518
3510
  var i = t.filter(function(r) {
3519
3511
  return r.matchStrength;
@@ -3527,10 +3519,10 @@ function vl() {
3527
3519
  }
3528
3520
  return qe.findBestMatch = e, qe;
3529
3521
  }
3530
- var Ge, ai;
3522
+ var Ge, ii;
3531
3523
  function yl() {
3532
- if (ai) return Ge;
3533
- ai = 1;
3524
+ if (ii) return Ge;
3525
+ ii = 1;
3534
3526
  var n = Ge && Ge.__assign || function() {
3535
3527
  return n = Object.assign || function(g) {
3536
3528
  for (var b, y = 1, k = arguments.length; y < k; y++) {
@@ -3539,7 +3531,7 @@ function yl() {
3539
3531
  }
3540
3532
  return g;
3541
3533
  }, n.apply(this, arguments);
3542
- }, e = ml(), t = gl(), i = bl(), r = vl(), a = Er(), s = {}, o = {
3534
+ }, e = ml(), t = gl(), i = bl(), r = vl(), a = yr(), s = {}, o = {
3543
3535
  VISA: "visa",
3544
3536
  MASTERCARD: "mastercard",
3545
3537
  AMERICAN_EXPRESS: "american-express",
@@ -3715,28 +3707,28 @@ const bt = [
3715
3707
  }, Al = (n) => {
3716
3708
  var e, t;
3717
3709
  return (t = (e = Fe.find((i) => i.name === "Diners Club")) == null ? void 0 : e.pattern.test(n)) != null ? t : !1;
3718
- }, _l = (n) => {
3710
+ }, Ll = (n) => {
3719
3711
  var e, t;
3720
3712
  return (t = (e = Fe.find((i) => i.name === "Union Pay")) == null ? void 0 : e.pattern.test(n)) != null ? t : !1;
3721
- }, Ll = (n) => {
3713
+ }, _l = (n) => {
3722
3714
  var e, t;
3723
3715
  return (t = (e = Fe.find((i) => i.name === "Maestro")) == null ? void 0 : e.pattern.test(n)) != null ? t : !1;
3724
- }, kr = (n) => bt.find((e) => e.pattern.test(n)) || null, si = (n) => bt.filter((e) => e.pattern.test(n)), Vl = (n) => {
3716
+ }, Cr = (n) => bt.find((e) => e.pattern.test(n)) || null, ri = (n) => bt.filter((e) => e.pattern.test(n)), Vl = (n) => {
3725
3717
  let e = 0, t = !1;
3726
3718
  for (let i = n.length - 1; i >= 0; i--) {
3727
3719
  let r = parseInt(n[i]);
3728
3720
  t && (r *= 2, r > 9 && (r -= 9)), e += r, t = !t;
3729
3721
  }
3730
3722
  return e % 10 === 0;
3731
- }, oi = (n, e) => {
3723
+ }, ai = (n, e) => {
3732
3724
  const t = n.replace(/\D/g, "");
3733
3725
  if (!t)
3734
3726
  return { isValid: !1, cardType: null, error: Y.Empty };
3735
3727
  if (!/^\d+$/.test(t))
3736
3728
  return { isValid: !1, cardType: null, error: Y.Invalid };
3737
- if (xl(t) || wl(t) || Tl(t) || Al(t) || _l(t) || Ll(t))
3729
+ if (xl(t) || wl(t) || Tl(t) || Al(t) || Ll(t) || _l(t))
3738
3730
  return { isValid: !1, cardType: null, error: Y.Unsupported };
3739
- const i = kr(t);
3731
+ const i = Cr(t);
3740
3732
  if (i) {
3741
3733
  if (t.length < i.minLength || t.length > i.maxLength)
3742
3734
  return {
@@ -3836,7 +3828,7 @@ const bt = [
3836
3828
  tr: "tr-TR",
3837
3829
  vi: "vi-VN",
3838
3830
  zh: "zh-CN"
3839
- })[n] || "en-US", Rl = (n) => ({
3831
+ })[n] || "en-US", Ol = (n) => ({
3840
3832
  en: "en",
3841
3833
  ar: "ar",
3842
3834
  bg: "bg",
@@ -3868,7 +3860,7 @@ const bt = [
3868
3860
  tr: "tr",
3869
3861
  ua: "uk",
3870
3862
  zh: "zh"
3871
- })[n] || "en", Ol = (n) => ({
3863
+ })[n] || "en", Rl = (n) => ({
3872
3864
  en: "en_US",
3873
3865
  ar: "ar_EG",
3874
3866
  cs: "cs_CZ",
@@ -3903,10 +3895,10 @@ var dt = { exports: {} }, He = {};
3903
3895
  * This source code is licensed under the MIT license found in the
3904
3896
  * LICENSE file in the root directory of this source tree.
3905
3897
  */
3906
- var li;
3898
+ var si;
3907
3899
  function Nl() {
3908
- if (li) return He;
3909
- li = 1;
3900
+ if (si) return He;
3901
+ si = 1;
3910
3902
  var n = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
3911
3903
  function t(i, r, a) {
3912
3904
  var s = null;
@@ -3935,13 +3927,13 @@ var Ye = {};
3935
3927
  * This source code is licensed under the MIT license found in the
3936
3928
  * LICENSE file in the root directory of this source tree.
3937
3929
  */
3938
- var ci;
3930
+ var oi;
3939
3931
  function Sl() {
3940
- return ci || (ci = 1, process.env.NODE_ENV !== "production" && function() {
3932
+ return oi || (oi = 1, process.env.NODE_ENV !== "production" && function() {
3941
3933
  function n(f) {
3942
3934
  if (f == null) return null;
3943
3935
  if (typeof f == "function")
3944
- return f.$$typeof === O ? null : f.displayName || f.name || null;
3936
+ return f.$$typeof === R ? null : f.displayName || f.name || null;
3945
3937
  if (typeof f == "string") return f;
3946
3938
  switch (f) {
3947
3939
  case b:
@@ -3954,7 +3946,7 @@ function Sl() {
3954
3946
  return "Suspense";
3955
3947
  case D:
3956
3948
  return "SuspenseList";
3957
- case R:
3949
+ case O:
3958
3950
  return "Activity";
3959
3951
  }
3960
3952
  if (typeof f == "object")
@@ -3963,7 +3955,7 @@ function Sl() {
3963
3955
  ), f.$$typeof) {
3964
3956
  case g:
3965
3957
  return "Portal";
3966
- case _:
3958
+ case L:
3967
3959
  return (f.displayName || "Context") + ".Provider";
3968
3960
  case V:
3969
3961
  return (f._context.displayName || "Context") + ".Consumer";
@@ -4044,7 +4036,7 @@ function Sl() {
4044
4036
  "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."
4045
4037
  )), f = this.props.ref, f !== void 0 ? f : null;
4046
4038
  }
4047
- function u(f, P, N, G, ie, X, Ae, _e) {
4039
+ function u(f, P, N, G, ie, X, Ae, Le) {
4048
4040
  return N = X.ref, f = {
4049
4041
  $$typeof: p,
4050
4042
  type: f,
@@ -4073,10 +4065,10 @@ function Sl() {
4073
4065
  configurable: !1,
4074
4066
  enumerable: !1,
4075
4067
  writable: !0,
4076
- value: _e
4068
+ value: Le
4077
4069
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
4078
4070
  }
4079
- function d(f, P, N, G, ie, X, Ae, _e) {
4071
+ function d(f, P, N, G, ie, X, Ae, Le) {
4080
4072
  var z = P.children;
4081
4073
  if (z !== void 0)
4082
4074
  if (G)
@@ -4123,13 +4115,13 @@ React keys must be passed directly to JSX without using spread:
4123
4115
  r(),
4124
4116
  N,
4125
4117
  Ae,
4126
- _e
4118
+ Le
4127
4119
  );
4128
4120
  }
4129
4121
  function h(f) {
4130
4122
  typeof f == "object" && f !== null && f.$$typeof === p && f._store && (f._store.validated = 1);
4131
4123
  }
4132
- var m = Ar, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), q = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Te = Object.prototype.hasOwnProperty, te = Array.isArray, fe = console.createTask ? console.createTask : function() {
4124
+ var m = wr, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), L = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), q = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Te = Object.prototype.hasOwnProperty, te = Array.isArray, fe = console.createTask ? console.createTask : function() {
4133
4125
  return null;
4134
4126
  };
4135
4127
  m = {
@@ -4168,9 +4160,9 @@ React keys must be passed directly to JSX without using spread:
4168
4160
  };
4169
4161
  }()), Ye;
4170
4162
  }
4171
- var di;
4163
+ var li;
4172
4164
  function Fl() {
4173
- return di || (di = 1, process.env.NODE_ENV === "production" ? dt.exports = Nl() : dt.exports = Sl()), dt.exports;
4165
+ return li || (li = 1, process.env.NODE_ENV === "production" ? dt.exports = Nl() : dt.exports = Sl()), dt.exports;
4174
4166
  }
4175
4167
  Fl();
4176
4168
  const jl = [
@@ -4195,7 +4187,7 @@ class Bl {
4195
4187
  c(this, "onPaymentAttempt");
4196
4188
  this.config = e;
4197
4189
  const t = this.config.state.styles.getState().ApplePayButton;
4198
- this.onPaymentAttempt = this.config.state.checkout.getState().onCheckoutAttempt, this.ev = this.config.service.ev, this.customButtonStyles = t, this.element = document.createElement("div"), this.element.classList.add(Lt.applePay, Lt.hidden);
4190
+ this.onPaymentAttempt = this.config.state.checkout.getState().onCheckoutAttempt, this.ev = this.config.service.ev, this.customButtonStyles = t, this.element = document.createElement("div"), this.element.classList.add(_t.applePay, _t.hidden);
4199
4191
  }
4200
4192
  init(e) {
4201
4193
  return E(this, null, function* () {
@@ -4226,7 +4218,7 @@ class Bl {
4226
4218
  onPaymentAttempt: this.onPaymentAttempt
4227
4219
  }),
4228
4220
  this.customButtonStyles
4229
- ), this.ev.isAppleAvailable() ? (yield this.ev.renderApple(this.element), this.isInitialized = !0, this.element.classList.remove(Lt.hidden), this.events.ready.emit(), !0) : !1;
4221
+ ), this.ev.isAppleAvailable() ? (yield this.ev.renderApple(this.element), this.isInitialized = !0, this.element.classList.remove(_t.hidden), this.events.ready.emit(), !0) : !1;
4230
4222
  });
4231
4223
  }
4232
4224
  addEventListener(e, t) {
@@ -4242,7 +4234,7 @@ const zl = [
4242
4234
  { type: x.GOOGLE_PAY, is_active: !1, order: 3 },
4243
4235
  { type: x.VENMO, is_active: !1, order: 4 },
4244
4236
  { type: x.CARD, is_active: !0, order: 5 }
4245
- ], Le = {
4237
+ ], _e = {
4246
4238
  open: { y: 0, opacity: 1 },
4247
4239
  close: { y: 100, opacity: 0 },
4248
4240
  transition: { duration: 0.25, ease: "easeOut" }
@@ -4297,7 +4289,7 @@ class ql {
4297
4289
  return yield this.ev.initGoogle(
4298
4290
  I(v({}, a), {
4299
4291
  transaction: r,
4300
- locale: Rl(i || "en"),
4292
+ locale: Ol(i || "en"),
4301
4293
  onPaymentAttempt: this.onPaymentAttempt
4302
4294
  }),
4303
4295
  this.customButtonStyles
@@ -4337,7 +4329,7 @@ class Yl {
4337
4329
  return !1;
4338
4330
  const t = this.config.state.transaction.getState(), i = this.config.state.checkout.getState(), r = () => E(this, null, function* () {
4339
4331
  try {
4340
- return yield Nr(i.clientToken, i.environment, i.apiVersion);
4332
+ return yield Or(i.clientToken, i.environment, i.apiVersion);
4341
4333
  } catch (l) {
4342
4334
  throw l;
4343
4335
  }
@@ -4351,7 +4343,7 @@ class Yl {
4351
4343
  clientId: t.paypal_info.client_id,
4352
4344
  environment: t.paypal_info.environment || "sandbox",
4353
4345
  vault: !0,
4354
- locale: Ol(this.config.state.translate.locale()),
4346
+ locale: Rl(this.config.state.translate.locale()),
4355
4347
  intent: "tokenize"
4356
4348
  }), !this.paypal.isLoaded())
4357
4349
  return !1;
@@ -4472,7 +4464,7 @@ class Ul {
4472
4464
  return this.element;
4473
4465
  }
4474
4466
  }
4475
- const Wl = "_button_1trim_1", ui = {
4467
+ const Wl = "_button_1trim_1", ci = {
4476
4468
  button: Wl
4477
4469
  };
4478
4470
  class Zl {
@@ -4481,7 +4473,7 @@ class Zl {
4481
4473
  c(this, "icon", new Ul());
4482
4474
  this.config = e;
4483
4475
  const t = this.config.state.styles.getState().WalletButton, i = this.config.state.translate;
4484
- this.element = document.createElement("button"), this.element.classList.add(ui.button, ui.press), t != null && t.className && F(this.element, t.className), t != null && t.styles && Object.assign(this.element.style, t.styles);
4476
+ this.element = document.createElement("button"), this.element.classList.add(ci.button, ci.press), t != null && t.className && F(this.element, t.className), t != null && t.styles && Object.assign(this.element.style, t.styles);
4485
4477
  const r = document.createElement("span");
4486
4478
  r.textContent = i.getState().messages.card.compact.button, this.element.append(this.icon.render(), r), i.subscribe(({ messages: a }) => {
4487
4479
  r.textContent = a.card.compact.button;
@@ -4610,11 +4602,7 @@ class rc {
4610
4602
  // init
4611
4603
  init() {
4612
4604
  return E(this, null, function* () {
4613
- this.config.state.transaction.subscribe(() => {
4614
- this.config.service.ev.isReady && this.initPaymentMethods().catch(console.error);
4615
- }), this.config.state.checkout.subscribe(() => {
4616
- this.config.service.ev.isReady && this.initPaymentMethods().catch(console.error);
4617
- }), this.config.service.ev.addEventListener("ready", () => {
4605
+ this.config.service.ev.addEventListener("ready", () => {
4618
4606
  this.initPaymentMethods().catch(console.error);
4619
4607
  });
4620
4608
  });
@@ -4778,7 +4766,11 @@ class rc {
4778
4766
  i && !this.applePay && (this.applePay = new Bl(this.config)), r && !this.googlePay && (this.googlePay = new ql(this.config)), a && !this.paypal && (this.paypal = new Yl(this.config), this.paypal.addEventListener("onPaymentAttempt", (h) => this.events.onPaymentAttempt.emit(h))), s && !this.braintree && (this.braintree = new ic(this.config), this.braintree.addEventListener("onPaymentAttempt", (h) => this.events.onPaymentAttempt.emit(h))), o && !this.card && (this.card = new Zl(this.config), this.card.addEventListener(() => {
4779
4767
  this.events.open.emit();
4780
4768
  }));
4781
- const l = e.sort((h, m) => h.order - m.order), u = /* @__PURE__ */ new Map();
4769
+ const l = e.filter(({ type: h }) => {
4770
+ var b, y;
4771
+ const m = window.navigator, p = (b = m.userAgentData.platforms) == null ? void 0 : b.toLowerCase().includes("android"), g = (y = m.userAgentData.platforms) == null ? void 0 : y.toLowerCase().includes("windows");
4772
+ return !(h === x.APPLE_PAY && (p || g));
4773
+ }).sort((h, m) => h.order - m.order), u = /* @__PURE__ */ new Map();
4782
4774
  for (const { type: h } of l) {
4783
4775
  const m = document.createElement("div");
4784
4776
  this.buttons.appendChild(m), u.set(h, m);
@@ -4870,7 +4862,7 @@ const cc = "_button_1d7ly_1", dc = "_disabled_1d7ly_18", uc = "_hidden_1d7ly_28"
4870
4862
  class pc {
4871
4863
  constructor(e, t) {
4872
4864
  c(this, "element");
4873
- c(this, "spinner", new Cr());
4865
+ c(this, "spinner", new vr());
4874
4866
  c(this, "message", document.createElement("span"));
4875
4867
  c(this, "iconElement");
4876
4868
  this.element = document.createElement("button"), this.element.setAttribute("type", "button"), this.element.classList.add(oe.button, oe.press), t != null && t.className && F(this.element, t.className), t != null && t.styles && Object.assign(this.element.style, t.styles), t != null && t.iconSvg && (this.iconElement = document.createElement("div"), this.iconElement.classList.add(S.card), this.iconElement.innerHTML = t.iconSvg), this.spinner.addClass(oe.spinner), this.spinner.addClass(oe.hidden), this.message.textContent = e.messages().card.pay.button, this.element.append(this.spinner.render()), this.iconElement && this.element.append(this.iconElement), this.element.append(this.message), e.subscribe((i) => {
@@ -4996,16 +4988,16 @@ class Ac {
4996
4988
  return this.toggleLabelError(i), this.isDisabled ? (this.inputContainer.classList.add($.disabled), this.input.classList.add($.disabledInput)) : (this.inputContainer.classList.remove($.disabled), this.input.classList.remove($.disabledInput)), this.element;
4997
4989
  }
4998
4990
  }
4999
- const _c = "_wrapper_1xw0g_1", Lc = "_inputContainer_1xw0g_5", Vc = "_disabled_1xw0g_23", Ic = "_input_1xw0g_5", Mc = "_endContent_1xw0g_39", Pc = "_errorInput_1xw0g_18", Dc = "_error_1xw0g_18", Rc = "_label_1xw0g_56", Oc = "_labelError_1xw0g_67", Nc = "_disabledInput_1xw0g_75", Sc = "_hidden_1xw0g_82", j = {
5000
- wrapper: _c,
5001
- inputContainer: Lc,
4991
+ const Lc = "_wrapper_1xw0g_1", _c = "_inputContainer_1xw0g_5", Vc = "_disabled_1xw0g_23", Ic = "_input_1xw0g_5", Mc = "_endContent_1xw0g_39", Pc = "_errorInput_1xw0g_18", Dc = "_error_1xw0g_18", Oc = "_label_1xw0g_56", Rc = "_labelError_1xw0g_67", Nc = "_disabledInput_1xw0g_75", Sc = "_hidden_1xw0g_82", j = {
4992
+ wrapper: Lc,
4993
+ inputContainer: _c,
5002
4994
  disabled: Vc,
5003
4995
  input: Ic,
5004
4996
  endContent: Mc,
5005
4997
  errorInput: Pc,
5006
4998
  error: Dc,
5007
- label: Rc,
5008
- labelError: Oc,
4999
+ label: Oc,
5000
+ labelError: Rc,
5009
5001
  disabledInput: Nc,
5010
5002
  hidden: Sc
5011
5003
  };
@@ -5177,12 +5169,12 @@ ${b}::-ms-input-placeholder{${g}}
5177
5169
  handleChange(e) {
5178
5170
  if (this.isDisabled) return;
5179
5171
  this.isRequired = !1, this.errorMessage = "", this.isChanged || (this.isChanged = !0);
5180
- const t = si(e).map((a) => a.type), i = kr(e), r = Cl(e, (i == null ? void 0 : i.type) || "");
5172
+ const t = ri(e).map((a) => a.type), i = Cr(e), r = Cl(e, (i == null ? void 0 : i.type) || "");
5181
5173
  this.supportedCardTypes = t.length ? t : this.initialCardTypes, r.replace(/\D/g, "").length === ((i == null ? void 0 : i.maxLength) || 16) && this.validate(r), this.input.value = r, this.events.change.emit({
5182
5174
  card: r,
5183
5175
  cardType: i == null ? void 0 : i.type,
5184
5176
  cardTypes: t,
5185
- isValid: oi(e, this.supportedCardTypes).isValid
5177
+ isValid: ai(e, this.supportedCardTypes).isValid
5186
5178
  }), this.render();
5187
5179
  }
5188
5180
  toggleLabelError(e) {
@@ -5227,11 +5219,11 @@ ${b}::-ms-input-placeholder{${g}}
5227
5219
  var e;
5228
5220
  return {
5229
5221
  value: this.input.value,
5230
- cardType: ((e = si(this.input.value)[0]) == null ? void 0 : e.type) || ""
5222
+ cardType: ((e = ri(this.input.value)[0]) == null ? void 0 : e.type) || ""
5231
5223
  };
5232
5224
  }
5233
5225
  validate(e) {
5234
- const t = this.translate.messages(), { isValid: i, error: r } = oi(e, this.supportedCardTypes);
5226
+ const t = this.translate.messages(), { isValid: i, error: r } = ai(e, this.supportedCardTypes);
5235
5227
  return i ? (this.isRequired = !1, this.errorMessage = "", this.render(), i) : (r === Y.Empty ? (this.errorMessage = "", this.isRequired = !0) : r === Y.Unsupported ? (this.errorMessage = t.card.number.error.unsupported, this.isRequired = !1) : (this.errorMessage = r === Y.Incomplete ? t.card.number.error.incomplete : t.card.number.error.invalid, this.isRequired = !1), this.render(), i);
5236
5228
  }
5237
5229
  render() {
@@ -5317,16 +5309,16 @@ class ed {
5317
5309
  expiryChange: new K(),
5318
5310
  cvcChange: new K()
5319
5311
  });
5320
- var s, o, l, u, d, h, m, p, g, b, y, k, V, _, M, T, D;
5312
+ var s, o, l, u, d, h, m, p, g, b, y, k, V, L, M, T, D;
5321
5313
  this.translate = e;
5322
5314
  const i = e.messages();
5323
5315
  this.element = document.createElement("div"), this.element.classList.add(A.securityContent), this.expiryInputContainer.classList.add(A.inputContainer), (s = t == null ? void 0 : t.container) != null && s.className && F(this.expiryInputContainer, t.container.className), (o = t == null ? void 0 : t.container) != null && o.styles && Object.assign(this.expiryInputContainer.style, t.container.styles), this.expiryInput.setAttribute("id", this.expiryId), this.expiryInput.setAttribute("autocomplete", "cc-exp"), this.expiryInput.setAttribute("placeholder", i.card.expiry.placeholder), this.expiryInput.setAttribute("inputmode", "numeric"), this.expiryInput.setAttribute("pattern", "[0-9]*"), this.expiryInput.setAttribute("enterkeyhint", "next"), this.expiryInput.classList.add(A.input), (l = t == null ? void 0 : t.field) != null && l.className && F(this.expiryInput, t.field.className), (u = t == null ? void 0 : t.field) != null && u.styles && Object.assign(this.expiryInput.style, t.field.styles), this.expiryEndContent.classList.add(A.endContent), this.expiryEndContent.appendChild(this.expiryWarning.render()), this.expiryInputContainer.append(this.expiryInput, this.expiryEndContent), this.expiryLabel.setAttribute("for", this.expiryId), this.expiryLabel.classList.add(A.label), (d = t == null ? void 0 : t.label) != null && d.className && F(this.expiryLabel, t.label.className), (h = t == null ? void 0 : t.label) != null && h.styles && Object.assign(this.expiryLabel.style, t.label.styles), this.expiryLabelText.contentEditable = "false", this.expiryLabelText.textContent = i.card.expiry.label, this.expiryLabelError.textContent = i.card.required, this.expiryLabelError.classList.add(A.labelError, A.hidden), this.expiryLabel.append(this.expiryLabelText, this.expiryLabelError), this.expiryError.classList.add(A.error, A.hidden), (m = t == null ? void 0 : t.error) != null && m.className && F(this.expiryError, t.error.className), (p = t == null ? void 0 : t.error) != null && p.styles && Object.assign(this.expiryError.style, t.error.styles);
5324
5316
  const r = document.createElement("div");
5325
5317
  if (r.appendChild(this.expiryError), this.cvcInputContainer.classList.add(A.inputContainer), (g = t == null ? void 0 : t.container) != null && g.className && F(this.cvcInputContainer, t.container.className), (b = t == null ? void 0 : t.container) != null && b.styles && Object.assign(this.cvcInputContainer.style, t.container.styles), this.cvcInput.setAttribute("id", this.cvcId), this.cvcInput.setAttribute("autocomplete", "cc-csc"), this.cvcInput.setAttribute("placeholder", i.card.cvc.placeholder), this.cvcInput.setAttribute("inputmode", "numeric"), this.cvcInput.setAttribute("pattern", "[0-9]*"), this.cvcInput.setAttribute("enterkeyhint", "done"), this.cvcInput.classList.add(A.input), (y = t == null ? void 0 : t.field) != null && y.className && F(this.cvcInput, t.field.className), (k = t == null ? void 0 : t.field) != null && k.styles && Object.assign(this.cvcInput.style, t.field.styles), (V = t == null ? void 0 : t.placeholder) != null && V.styles && Object.keys(t.placeholder.styles).length) {
5326
- const C = (R) => R.replace(/[A-Z]/g, (O) => "-" + O.toLowerCase()), w = Object.entries(t.placeholder.styles).map(([R, O]) => `${C(R)}:${O};`).join("");
5318
+ const C = (O) => O.replace(/[A-Z]/g, (R) => "-" + R.toLowerCase()), w = Object.entries(t.placeholder.styles).map(([O, R]) => `${C(O)}:${R};`).join("");
5327
5319
  this.placeholderStyle.textContent = `#${this.expiryId}::placeholder{${w}}#${this.cvcId}::placeholder{${w}}`, this.element.appendChild(this.placeholderStyle);
5328
5320
  }
5329
- this.cvcEndContent.classList.add(A.endContent), this.cvcEndContent.appendChild(this.cardCvc.render()), this.cvcInputContainer.append(this.cvcInput, this.cvcEndContent), this.cvcLabel.setAttribute("for", this.cvcId), this.cvcLabel.classList.add(A.label), (_ = t == null ? void 0 : t.label) != null && _.className && F(this.cvcLabel, t.label.className), (M = t == null ? void 0 : t.label) != null && M.styles && Object.assign(this.cvcLabel.style, t.label.styles), this.cvcLabelText.textContent = i.card.cvc.label, this.cvcLabelError.textContent = i.card.required, this.cvcLabelError.classList.add(A.labelError, A.hidden), (T = t == null ? void 0 : t.error) != null && T.className && F(this.cvcLabel, t.error.className), (D = t == null ? void 0 : t.error) != null && D.styles && Object.assign(this.cvcLabelError.style, t.error.styles), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(A.error, A.hidden);
5321
+ this.cvcEndContent.classList.add(A.endContent), this.cvcEndContent.appendChild(this.cardCvc.render()), this.cvcInputContainer.append(this.cvcInput, this.cvcEndContent), this.cvcLabel.setAttribute("for", this.cvcId), this.cvcLabel.classList.add(A.label), (L = t == null ? void 0 : t.label) != null && L.className && F(this.cvcLabel, t.label.className), (M = t == null ? void 0 : t.label) != null && M.styles && Object.assign(this.cvcLabel.style, t.label.styles), this.cvcLabelText.textContent = i.card.cvc.label, this.cvcLabelError.textContent = i.card.required, this.cvcLabelError.classList.add(A.labelError, A.hidden), (T = t == null ? void 0 : t.error) != null && T.className && F(this.cvcLabel, t.error.className), (D = t == null ? void 0 : t.error) != null && D.styles && Object.assign(this.cvcLabelError.style, t.error.styles), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(A.error, A.hidden);
5330
5322
  const a = document.createElement("div");
5331
5323
  a.appendChild(this.cvcError), this.element.append(
5332
5324
  this.expiryLabel,
@@ -5337,24 +5329,24 @@ class ed {
5337
5329
  a
5338
5330
  ), this.expiryInput.addEventListener("input", (C) => {
5339
5331
  C.preventDefault();
5340
- const R = this.expiryInput.value.replace(/\D/g, "");
5341
- this.handleExpiryChange(R);
5332
+ const O = this.expiryInput.value.replace(/\D/g, "");
5333
+ this.handleExpiryChange(O);
5342
5334
  }), this.expiryInput.addEventListener("paste", (C) => {
5343
- var O;
5335
+ var R;
5344
5336
  C.preventDefault();
5345
- const R = (((O = C.clipboardData) == null ? void 0 : O.getData("text")) || "").replace(/\D/g, "");
5346
- this.handleExpiryChange(R);
5337
+ const O = (((R = C.clipboardData) == null ? void 0 : R.getData("text")) || "").replace(/\D/g, "");
5338
+ this.handleExpiryChange(O);
5347
5339
  }), this.expiryInput.addEventListener("keydown", (C) => {
5348
5340
  this.isDisabled || ["Backspace", "Delete", "Tab", "ArrowLeft", "ArrowRight", "Home", "End"].includes(C.key) || C.ctrlKey || C.metaKey || /^\d$/.test(C.key) || C.preventDefault();
5349
5341
  }), this.expiryInput.addEventListener("blur", () => this.validateExpiry(this.expiryInput.value)), this.cvcInput.addEventListener("input", (C) => {
5350
5342
  C.preventDefault();
5351
- const R = this.cvcInput.value.replace(/\D/g, "");
5352
- this.handleCvcChange(R);
5343
+ const O = this.cvcInput.value.replace(/\D/g, "");
5344
+ this.handleCvcChange(O);
5353
5345
  }), this.cvcInput.addEventListener("paste", (C) => {
5354
- var O;
5346
+ var R;
5355
5347
  C.preventDefault();
5356
- const R = (((O = C.clipboardData) == null ? void 0 : O.getData("text")) || "").replace(/\D/g, "");
5357
- this.handleCvcChange(R);
5348
+ const O = (((R = C.clipboardData) == null ? void 0 : R.getData("text")) || "").replace(/\D/g, "");
5349
+ this.handleCvcChange(O);
5358
5350
  }), this.cvcInput.addEventListener("keydown", (C) => {
5359
5351
  this.isDisabled || ["Backspace", "Delete", "Tab", "ArrowLeft", "ArrowRight", "Home", "End"].includes(C.key) || C.ctrlKey || C.metaKey || /^\d$/.test(C.key) || C.preventDefault();
5360
5352
  }), this.cvcInput.addEventListener("blur", () => this.validateCvc(this.cvcInput.value)), this.translate.subscribe(({ messages: C }) => {
@@ -5577,7 +5569,7 @@ class nd {
5577
5569
  return this.element;
5578
5570
  }
5579
5571
  }
5580
- const id = "_container_79xkl_1", rd = "_title_79xkl_5", hi = {
5572
+ const id = "_container_79xkl_1", rd = "_title_79xkl_5", di = {
5581
5573
  container: id,
5582
5574
  title: rd
5583
5575
  };
@@ -5586,7 +5578,7 @@ class ad {
5586
5578
  c(this, "element");
5587
5579
  c(this, "message", document.createElement("p"));
5588
5580
  c(this, "icon", new nd());
5589
- this.element = document.createElement("div"), this.element.classList.add(hi.container), this.message.classList.add(hi.title), this.element.append(this.icon.render(), this.message);
5581
+ this.element = document.createElement("div"), this.element.classList.add(di.container), this.message.classList.add(di.title), this.element.append(this.icon.render(), this.message);
5590
5582
  }
5591
5583
  addClassName(e) {
5592
5584
  F(this.element, e);
@@ -5598,7 +5590,7 @@ class ad {
5598
5590
  return this.element;
5599
5591
  }
5600
5592
  }
5601
- const sd = "_container_g3abj_1", od = "_title_g3abj_12", pi = {
5593
+ const sd = "_container_g3abj_1", od = "_title_g3abj_12", ui = {
5602
5594
  container: sd,
5603
5595
  title: od
5604
5596
  }, Ze = class Ze {
@@ -5608,7 +5600,7 @@ const sd = "_container_g3abj_1", od = "_title_g3abj_12", pi = {
5608
5600
  c(this, "icon", new yt());
5609
5601
  c(this, "hasCustomMessage", !1);
5610
5602
  c(this, "hasConfigMessage", !1);
5611
- this.translate = e, this.element = document.createElement("div"), this.element.classList.add(pi.container), this.message.classList.add(pi.title), t ? (this.message.textContent = t, this.hasCustomMessage = !0, this.hasConfigMessage = !0) : this.message.textContent = e.messages().status.error, this.element.append(this.icon.render(), this.message), this.translate.subscribe(({ messages: i }) => {
5603
+ this.translate = e, this.element = document.createElement("div"), this.element.classList.add(ui.container), this.message.classList.add(ui.title), t ? (this.message.textContent = t, this.hasCustomMessage = !0, this.hasConfigMessage = !0) : this.message.textContent = e.messages().status.error, this.element.append(this.icon.render(), this.message), this.translate.subscribe(({ messages: i }) => {
5612
5604
  this.hasCustomMessage || (this.message.textContent = i.status.error);
5613
5605
  }), Ze.instances.add(this);
5614
5606
  }
@@ -5703,7 +5695,7 @@ class ld {
5703
5695
  { minHeight: [`${t}px`, `${this.FORM_HEIGHT}px`] },
5704
5696
  { duration: 250, easing: "ease-out", fill: "forwards" }
5705
5697
  ).finished) != null ? r : Promise.resolve()), yield Promise.all([
5706
- H(this.form.element, Le.open, Le.transition),
5698
+ H(this.form.element, _e.open, _e.transition),
5707
5699
  i != null ? i : Promise.resolve()
5708
5700
  ]), t < this.FORM_HEIGHT && (this.checkout.style.height = ""), this.isFormOpen = !0;
5709
5701
  })), this.buttons.addEventListener("error", (e) => {
@@ -5742,7 +5734,7 @@ class ld {
5742
5734
  this.closedHeight > 0 && e > this.closedHeight && (this.checkout.style.height = `${e}px`, t = (a = this.checkout.animate(
5743
5735
  { minHeight: [`${e}px`, `${this.closedHeight}px`] },
5744
5736
  { duration: 250, easing: "ease-out", fill: "forwards" }
5745
- ).finished) != null ? a : Promise.resolve()), yield H(this.form.element, Le.close, Le.transition), this.form.element.classList.add(Z.hidden);
5737
+ ).finished) != null ? a : Promise.resolve()), yield H(this.form.element, _e.close, _e.transition), this.form.element.classList.add(Z.hidden);
5746
5738
  const { variant: r } = this.config.state.checkout.getState();
5747
5739
  if (r !== "default") {
5748
5740
  this.buttons.buttons.classList.add(Z.btnsInitial), this.buttons.buttons.classList.remove(Z.hidden);
@@ -5791,7 +5783,7 @@ class ld {
5791
5783
  const t = this.config.state.checkout.getState(), i = this.config.state.translate.messages();
5792
5784
  let r;
5793
5785
  try {
5794
- if (r = yield Or(e, t.environment, t.apiVersion), r.error)
5786
+ if (r = yield Dr(e, t.environment, t.apiVersion), r.error)
5795
5787
  throw new Error(((a = r.error) == null ? void 0 : a.message) || i.status.error);
5796
5788
  if (r.three_ds_session_id) {
5797
5789
  yield this.config.service.ev.initThreeDs({
@@ -5826,7 +5818,7 @@ class ld {
5826
5818
  // show success
5827
5819
  showSuccess() {
5828
5820
  return E(this, null, function* () {
5829
- this.container.classList.add(Z.hidden), this.success.removeClassName(Z.hidden), yield H(this.success.element, Le.open, Le.transition);
5821
+ this.container.classList.add(Z.hidden), this.success.removeClassName(Z.hidden), yield H(this.success.element, _e.open, _e.transition);
5830
5822
  });
5831
5823
  }
5832
5824
  // hide error
@@ -5948,7 +5940,7 @@ class md extends Ct {
5948
5940
  if (this.clientToken === t) return this.getState();
5949
5941
  this.clientToken = t;
5950
5942
  try {
5951
- const a = yield Sr(t, i, r);
5943
+ const a = yield Rr(t, i, r);
5952
5944
  return this.setState(a), a;
5953
5945
  } catch (a) {
5954
5946
  console.error("Failed to update transaction:", a);
@@ -6474,7 +6466,7 @@ const fd = {
6474
6466
  error: "Votre moyen de paiement a été refusé. Cela peut être dû à des fonds insuffisants, des détails de paiement expirés ou des restrictions de sécurité. Veuillez vérifier vos détails de paiement ou essayer un autre moyen de paiement.",
6475
6467
  invalidSession: "Votre session de paiement a expiré. Veuillez actualiser la page pour continuer."
6476
6468
  }
6477
- }, _d = {
6469
+ }, Ld = {
6478
6470
  card: {
6479
6471
  required: "POTREBNO",
6480
6472
  number: {
@@ -6517,7 +6509,7 @@ const fd = {
6517
6509
  error: "Vaš način plaćanja je odbijen. To može biti zbog nedovoljnih sredstava, isteklih podataka o plaćanju ili sigurnosnih ograničenja. Molimo provjerite svoje podatke o plaćanju ili pokušajte s drugim načinom plaćanja.",
6518
6510
  invalidSession: "Vaša sesija plaćanja je istekla. Molimo osvježite stranicu za nastavak."
6519
6511
  }
6520
- }, Ld = {
6512
+ }, _d = {
6521
6513
  card: {
6522
6514
  required: "KÖTELEZŐ",
6523
6515
  number: {
@@ -6775,7 +6767,7 @@ const fd = {
6775
6767
  error: "Jūsų mokėjimo būdas buvo atmestas. Tai gali būti dėl nepakankamų lėšų, pasibaigusios mokėjimo informacijos ar saugumo apribojimų. Patikrinkite savo mokėjimo informaciją arba bandykite kitą mokėjimo būdą.",
6776
6768
  invalidSession: "Jūsų mokėjimo seansas baigėsi. Atnaujinkite puslapį, kad tęstumėte."
6777
6769
  }
6778
- }, Rd = {
6770
+ }, Od = {
6779
6771
  card: {
6780
6772
  required: "OBLIGĀTI",
6781
6773
  number: {
@@ -6818,7 +6810,7 @@ const fd = {
6818
6810
  error: "Jūsu maksājuma metode tika noraidīta. Tas var būt nepietiekamu līdzekļu, novecojušas maksājumu informācijas vai drošības ierobežojumu dēļ. Lūdzu, pārbaudiet savu maksājumu informāciju vai mēģiniet citu maksājuma metodi.",
6819
6811
  invalidSession: "Jūsu maksājuma sesija ir beigusies. Lūdzu, atsvaidziniet lapu, lai turpinātu."
6820
6812
  }
6821
- }, Od = {
6813
+ }, Rd = {
6822
6814
  card: {
6823
6815
  required: "DIPERLUKAN",
6824
6816
  number: {
@@ -7519,15 +7511,15 @@ const fd = {
7519
7511
  fi: wd,
7520
7512
  fil: Td,
7521
7513
  fr: Ad,
7522
- hr: _d,
7523
- hu: Ld,
7514
+ hr: Ld,
7515
+ hu: _d,
7524
7516
  id: Vd,
7525
7517
  it: Id,
7526
7518
  ja: Md,
7527
7519
  ko: Pd,
7528
7520
  lt: Dd,
7529
- lv: Rd,
7530
- ms: Od,
7521
+ lv: Od,
7522
+ ms: Rd,
7531
7523
  ru: $d,
7532
7524
  mt: Nd,
7533
7525
  no: Sd,
@@ -7546,7 +7538,7 @@ const fd = {
7546
7538
  }, Jt = () => {
7547
7539
  const n = navigator == null ? void 0 : navigator.language.split("-")[0];
7548
7540
  return Zt[n] || Zt.en;
7549
- }, mi = (n, e = {}) => {
7541
+ }, hi = (n, e = {}) => {
7550
7542
  var r, a;
7551
7543
  if (!n) return Jt();
7552
7544
  const t = Zt[n] || Jt();
@@ -7580,11 +7572,11 @@ class Jd extends Ct {
7580
7572
  });
7581
7573
  }
7582
7574
  setMessages(e) {
7583
- const t = this.locale(), i = mi(t, e);
7575
+ const t = this.locale(), i = hi(t, e);
7584
7576
  this.setState({ locale: t, messages: i, overrides: e });
7585
7577
  }
7586
7578
  setLocale(e) {
7587
- const t = this.overrides(), i = mi(e, t);
7579
+ const t = this.overrides(), i = hi(e, t);
7588
7580
  this.setState({ locale: e, messages: i, overrides: t });
7589
7581
  }
7590
7582
  overrides() {