@revenuecat/purchases-js 1.44.0 → 1.45.0

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.
@@ -10,14 +10,14 @@ var ac = (r) => [, , , W_((r == null ? void 0 : r[tc("metadata")]) ?? null)], oc
10
10
  for (var a = 0, i = r[e >> 1], s = i && i.length; a < s; a++) e & 1 ? i[a].call(t) : n = i[a].call(t, n);
11
11
  return n;
12
12
  }, $i = (r, e, t, n, a, i) => {
13
- var s, l, c, u, d, p = e & 7, g = !!(e & 8), _ = !!(e & 16), f = p > 3 ? r.length + 1 : p ? g ? 1 : 2 : 0, v = oc[p + 5], y = p > 3 && (r[f - 1] = []), h = r[f] || (r[f] = []), k = p && (!_ && !g && (a = a.prototype), p < 5 && (p > 3 || !_) && H_(p < 4 ? a : { get [t]() {
13
+ var s, l, c, u, d, p = e & 7, g = !!(e & 8), _ = !!(e & 16), f = p > 3 ? r.length + 1 : p ? g ? 1 : 2 : 0, v = oc[p + 5], b = p > 3 && (r[f - 1] = []), h = r[f] || (r[f] = []), k = p && (!_ && !g && (a = a.prototype), p < 5 && (p > 3 || !_) && H_(p < 4 ? a : { get [t]() {
14
14
  return Z(this, i);
15
- }, set [t](b) {
16
- return Be(this, i, b);
15
+ }, set [t](y) {
16
+ return Be(this, i, y);
17
17
  } }, t));
18
18
  p ? _ && p < 4 && rc(i, (p > 2 ? "set " : p > 1 ? "get " : "") + t) : rc(a, t);
19
19
  for (var w = n.length - 1; w >= 0; w--)
20
- u = Y_(p, t, c = {}, r[3], h), p && (u.static = g, u.private = _, d = u.access = { has: _ ? (b) => G_(a, b) : (b) => t in b }, p ^ 3 && (d.get = _ ? (b) => (p ^ 1 ? Z : Sr)(b, a, p ^ 4 ? i : k.get) : (b) => b[t]), p > 2 && (d.set = _ ? (b, x) => Be(b, a, x, p ^ 4 ? i : k.set) : (b, x) => b[t] = x)), l = (0, n[w])(p ? p < 4 ? _ ? i : k[v] : p > 4 ? void 0 : { get: k.get, set: k.set } : a, u), c._ = 1, p ^ 4 || l === void 0 ? Ga(l) && (p > 4 ? y.unshift(l) : p ? _ ? i = l : k[v] = l : a = l) : typeof l != "object" || l === null ? da("Object expected") : (Ga(s = l.get) && (k.get = s), Ga(s = l.set) && (k.set = s), Ga(s = l.init) && y.unshift(s));
20
+ u = Y_(p, t, c = {}, r[3], h), p && (u.static = g, u.private = _, d = u.access = { has: _ ? (y) => G_(a, y) : (y) => t in y }, p ^ 3 && (d.get = _ ? (y) => (p ^ 1 ? Z : Sr)(y, a, p ^ 4 ? i : k.get) : (y) => y[t]), p > 2 && (d.set = _ ? (y, x) => Be(y, a, x, p ^ 4 ? i : k.set) : (y, x) => y[t] = x)), l = (0, n[w])(p ? p < 4 ? _ ? i : k[v] : p > 4 ? void 0 : { get: k.get, set: k.set } : a, u), c._ = 1, p ^ 4 || l === void 0 ? Ga(l) && (p > 4 ? b.unshift(l) : p ? _ ? i = l : k[v] = l : a = l) : typeof l != "object" || l === null ? da("Object expected") : (Ga(s = l.get) && (k.get = s), Ga(s = l.set) && (k.set = s), Ga(s = l.init) && b.unshift(s));
21
21
  return p || Qi(r, a), k && Ji(a, t, k), _ ? p ^ 4 ? i : k : a;
22
22
  }, Q = (r, e, t) => nc(r, typeof e != "symbol" ? e + "" : e, t), es = (r, e, t) => e.has(r) || da("Cannot " + t), G_ = (r, e) => Object(e) !== e ? da('Cannot use the "in" operator on this value') : r.has(e), Z = (r, e, t) => (es(r, e, "read from private field"), t ? t.call(r) : e.get(r)), Ve = (r, e, t) => e.has(r) ? da("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), Be = (r, e, t, n) => (es(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), Sr = (r, e, t) => (es(r, e, "access private method"), t);
23
23
  const K_ = "5";
@@ -165,22 +165,22 @@ function Dg(r) {
165
165
  }
166
166
  return null;
167
167
  }
168
- let Rn = [];
168
+ let Vn = [];
169
169
  function id() {
170
- var r = Rn;
171
- Rn = [], ii(r);
170
+ var r = Vn;
171
+ Vn = [], ii(r);
172
172
  }
173
- function Dn(r) {
174
- if (Rn.length === 0 && !to) {
175
- var e = Rn;
173
+ function An(r) {
174
+ if (Vn.length === 0 && !to) {
175
+ var e = Vn;
176
176
  queueMicrotask(() => {
177
- e === Rn && id();
177
+ e === Vn && id();
178
178
  });
179
179
  }
180
- Rn.push(r);
180
+ Vn.push(r);
181
181
  }
182
182
  function Ag() {
183
- for (; Rn.length > 0; )
183
+ for (; Vn.length > 0; )
184
184
  id();
185
185
  }
186
186
  function sd(r) {
@@ -227,7 +227,7 @@ function cd(r, e, t) {
227
227
  }
228
228
  const Oo = /* @__PURE__ */ new Set();
229
229
  let Je = null, ei = null, jr = null, gt = [], zi = null, Bs = !1, to = !1;
230
- var ka, wa, Wn, Hn, vo, Pa, xa, ht, Us, Rs, ud, dd;
230
+ var ka, wa, Hn, Yn, vo, Pa, xa, ht, Us, Rs, ud, dd;
231
231
  const Si = class Si {
232
232
  constructor() {
233
233
  Ve(this, ht);
@@ -258,11 +258,11 @@ const Si = class Si {
258
258
  /**
259
259
  * The number of async effects that are currently in flight
260
260
  */
261
- Ve(this, Wn, 0);
261
+ Ve(this, Hn, 0);
262
262
  /**
263
263
  * The number of async effects that are currently in flight, _not_ inside a pending boundary
264
264
  */
265
- Ve(this, Hn, 0);
265
+ Ve(this, Yn, 0);
266
266
  /**
267
267
  * A deferred that resolves when the batch is committed, used with `settled()`
268
268
  * TODO replace with Promise.withResolvers once supported widely enough
@@ -288,7 +288,7 @@ const Si = class Si {
288
288
  Q(this, "is_fork", !1);
289
289
  }
290
290
  is_deferred() {
291
- return this.is_fork || Z(this, Hn) > 0;
291
+ return this.is_fork || Z(this, Yn) > 0;
292
292
  }
293
293
  /**
294
294
  *
@@ -321,7 +321,7 @@ const Si = class Si {
321
321
  if (this.activate(), gt.length > 0) {
322
322
  if (pd(), Je !== null && Je !== this)
323
323
  return;
324
- } else Z(this, Wn) === 0 && this.process([]);
324
+ } else Z(this, Hn) === 0 && this.process([]);
325
325
  this.deactivate();
326
326
  }
327
327
  discard() {
@@ -333,14 +333,14 @@ const Si = class Si {
333
333
  * @param {boolean} blocking
334
334
  */
335
335
  increment(e) {
336
- Be(this, Wn, Z(this, Wn) + 1), e && Be(this, Hn, Z(this, Hn) + 1);
336
+ Be(this, Hn, Z(this, Hn) + 1), e && Be(this, Yn, Z(this, Yn) + 1);
337
337
  }
338
338
  /**
339
339
  *
340
340
  * @param {boolean} blocking
341
341
  */
342
342
  decrement(e) {
343
- Be(this, Wn, Z(this, Wn) - 1), e && Be(this, Hn, Z(this, Hn) - 1), this.revive();
343
+ Be(this, Hn, Z(this, Hn) - 1), e && Be(this, Yn, Z(this, Yn) - 1), this.revive();
344
344
  }
345
345
  revive() {
346
346
  for (const e of Z(this, Pa))
@@ -371,12 +371,12 @@ const Si = class Si {
371
371
  }
372
372
  /** @param {() => void} task */
373
373
  static enqueue(e) {
374
- Dn(e);
374
+ An(e);
375
375
  }
376
376
  apply() {
377
377
  }
378
378
  };
379
- ka = new WeakMap(), wa = new WeakMap(), Wn = new WeakMap(), Hn = new WeakMap(), vo = new WeakMap(), Pa = new WeakMap(), xa = new WeakMap(), ht = new WeakSet(), /**
379
+ ka = new WeakMap(), wa = new WeakMap(), Hn = new WeakMap(), Yn = new WeakMap(), vo = new WeakMap(), Pa = new WeakMap(), xa = new WeakMap(), ht = new WeakSet(), /**
380
380
  * Traverse the effect tree, executing effects or stashing
381
381
  * them for later execution as appropriate
382
382
  * @param {Effect} root
@@ -406,11 +406,11 @@ Rs = function(e) {
406
406
  for (var t = 0; t < e.length; t += 1)
407
407
  cd(e[t], Z(this, Pa), Z(this, xa));
408
408
  }, ud = function() {
409
- if (Z(this, Hn) === 0) {
409
+ if (Z(this, Yn) === 0) {
410
410
  for (const e of Z(this, ka)) e();
411
411
  Z(this, ka).clear();
412
412
  }
413
- Z(this, Wn) === 0 && Sr(this, ht, dd).call(this);
413
+ Z(this, Hn) === 0 && Sr(this, ht, dd).call(this);
414
414
  }, dd = function() {
415
415
  var a;
416
416
  if (Oo.size > 1) {
@@ -468,7 +468,7 @@ function Fg(r) {
468
468
  }
469
469
  }
470
470
  function pd() {
471
- var r = Jn;
471
+ var r = Qn;
472
472
  Bs = !0;
473
473
  var e = null;
474
474
  try {
@@ -568,10 +568,10 @@ function sn(r) {
568
568
  gt.push(e);
569
569
  }
570
570
  function fd(r) {
571
- let e = 0, t = $n(0), n;
571
+ let e = 0, t = ea(0), n;
572
572
  return () => {
573
573
  Il() && (o(t), Ra(() => (e === 0 && (n = Ue(() => r(() => no(t)))), e += 1, () => {
574
- Dn(() => {
574
+ An(() => {
575
575
  e -= 1, e === 0 && (n == null || n(), n = void 0, no(t));
576
576
  });
577
577
  })));
@@ -581,7 +581,7 @@ var zg = Wt | Na | kl;
581
581
  function md(r, e, t) {
582
582
  new jg(r, e, t);
583
583
  }
584
- var ut, vl, Nt, Yn, Ot, dt, Zr, Lt, Zt, fn, Gn, mn, Kn, Ea, Sa, hn, Ii, Fr, Ng, Og, Vs, ri, ti, Ws;
584
+ var ut, vl, Nt, Gn, Ot, dt, Zr, Lt, Zt, fn, Kn, mn, Xn, Ea, Sa, hn, Ii, Fr, Ng, Og, Vs, ri, ti, Ws;
585
585
  class jg {
586
586
  /**
587
587
  * @param {TemplateNode} node
@@ -600,7 +600,7 @@ class jg {
600
600
  /** @type {BoundaryProps} */
601
601
  Ve(this, Nt);
602
602
  /** @type {((anchor: Node) => void)} */
603
- Ve(this, Yn);
603
+ Ve(this, Gn);
604
604
  /** @type {Effect} */
605
605
  Ve(this, Ot);
606
606
  /** @type {Effect | null} */
@@ -613,9 +613,9 @@ class jg {
613
613
  Ve(this, Zt, null);
614
614
  /** @type {TemplateNode | null} */
615
615
  Ve(this, fn, null);
616
- Ve(this, Gn, 0);
616
+ Ve(this, Kn, 0);
617
617
  Ve(this, mn, 0);
618
- Ve(this, Kn, !1);
618
+ Ve(this, Xn, !1);
619
619
  /** @type {Set<Effect>} */
620
620
  Ve(this, Ea, /* @__PURE__ */ new Set());
621
621
  /** @type {Set<Effect>} */
@@ -628,10 +628,10 @@ class jg {
628
628
  * @type {Source<number> | null}
629
629
  */
630
630
  Ve(this, hn, null);
631
- Ve(this, Ii, fd(() => (Be(this, hn, $n(Z(this, Gn))), () => {
631
+ Ve(this, Ii, fd(() => (Be(this, hn, ea(Z(this, Kn))), () => {
632
632
  Be(this, hn, null);
633
633
  })));
634
- Be(this, ut, e), Be(this, Nt, t), Be(this, Yn, n), this.parent = /** @type {Effect} */
634
+ Be(this, ut, e), Be(this, Nt, t), Be(this, Gn, n), this.parent = /** @type {Effect} */
635
635
  er.b, this.is_pending = !!Z(this, Nt).pending, Be(this, Ot, na(() => {
636
636
  er.b = this;
637
637
  {
@@ -673,7 +673,7 @@ class jg {
673
673
  * @param {1 | -1} d
674
674
  */
675
675
  update_pending_count(e) {
676
- Sr(this, Fr, Ws).call(this, e), Be(this, Gn, Z(this, Gn) + e), Z(this, hn) && Aa(Z(this, hn), Z(this, Gn));
676
+ Sr(this, Fr, Ws).call(this, e), Be(this, Kn, Z(this, Kn) + e), Z(this, hn) && Aa(Z(this, hn), Z(this, Kn));
677
677
  }
678
678
  get_effect_pending() {
679
679
  return Z(this, Ii).call(this), o(
@@ -685,7 +685,7 @@ class jg {
685
685
  error(e) {
686
686
  var t = Z(this, Nt).onerror;
687
687
  let n = Z(this, Nt).failed;
688
- if (Z(this, Kn) || !t && !n)
688
+ if (Z(this, Xn) || !t && !n)
689
689
  throw e;
690
690
  Z(this, dt) && (Lr(Z(this, dt)), Be(this, dt, null)), Z(this, Zr) && (Lr(Z(this, Zr)), Be(this, Zr, null)), Z(this, Lt) && (Lr(Z(this, Lt)), Be(this, Lt, null));
691
691
  var a = !1, i = !1;
@@ -694,9 +694,9 @@ class jg {
694
694
  Ig();
695
695
  return;
696
696
  }
697
- a = !0, i && Eg(), en.ensure(), Be(this, Gn, 0), Z(this, Lt) !== null && Zn(Z(this, Lt), () => {
697
+ a = !0, i && Eg(), en.ensure(), Be(this, Kn, 0), Z(this, Lt) !== null && Jn(Z(this, Lt), () => {
698
698
  Be(this, Lt, null);
699
- }), this.is_pending = this.has_pending_snippet(), Be(this, dt, Sr(this, Fr, ri).call(this, () => (Be(this, Kn, !1), Jr(() => Z(this, Yn).call(this, Z(this, ut)))))), Z(this, mn) > 0 ? Sr(this, Fr, ti).call(this) : this.is_pending = !1;
699
+ }), this.is_pending = this.has_pending_snippet(), Be(this, dt, Sr(this, Fr, ri).call(this, () => (Be(this, Xn, !1), Jr(() => Z(this, Gn).call(this, Z(this, ut)))))), Z(this, mn) > 0 ? Sr(this, Fr, ti).call(this) : this.is_pending = !1;
700
700
  };
701
701
  var l = Xe;
702
702
  try {
@@ -706,9 +706,9 @@ class jg {
706
706
  } finally {
707
707
  Qr(l);
708
708
  }
709
- n && Dn(() => {
709
+ n && An(() => {
710
710
  Be(this, Lt, Sr(this, Fr, ri).call(this, () => {
711
- en.ensure(), Be(this, Kn, !0);
711
+ en.ensure(), Be(this, Xn, !0);
712
712
  try {
713
713
  return Jr(() => {
714
714
  n(
@@ -724,15 +724,15 @@ class jg {
724
724
  Z(this, Ot).parent
725
725
  ), null;
726
726
  } finally {
727
- Be(this, Kn, !1);
727
+ Be(this, Xn, !1);
728
728
  }
729
729
  }));
730
730
  });
731
731
  }
732
732
  }
733
- ut = new WeakMap(), vl = new WeakMap(), Nt = new WeakMap(), Yn = new WeakMap(), Ot = new WeakMap(), dt = new WeakMap(), Zr = new WeakMap(), Lt = new WeakMap(), Zt = new WeakMap(), fn = new WeakMap(), Gn = new WeakMap(), mn = new WeakMap(), Kn = new WeakMap(), Ea = new WeakMap(), Sa = new WeakMap(), hn = new WeakMap(), Ii = new WeakMap(), Fr = new WeakSet(), Ng = function() {
733
+ ut = new WeakMap(), vl = new WeakMap(), Nt = new WeakMap(), Gn = new WeakMap(), Ot = new WeakMap(), dt = new WeakMap(), Zr = new WeakMap(), Lt = new WeakMap(), Zt = new WeakMap(), fn = new WeakMap(), Kn = new WeakMap(), mn = new WeakMap(), Xn = new WeakMap(), Ea = new WeakMap(), Sa = new WeakMap(), hn = new WeakMap(), Ii = new WeakMap(), Fr = new WeakSet(), Ng = function() {
734
734
  try {
735
- Be(this, dt, Jr(() => Z(this, Yn).call(this, Z(this, ut))));
735
+ Be(this, dt, Jr(() => Z(this, Gn).call(this, Z(this, ut))));
736
736
  } catch (e) {
737
737
  this.error(e);
738
738
  }
@@ -740,7 +740,7 @@ ut = new WeakMap(), vl = new WeakMap(), Nt = new WeakMap(), Yn = new WeakMap(),
740
740
  const e = Z(this, Nt).pending;
741
741
  e && (Be(this, Zr, Jr(() => e(Z(this, ut)))), en.enqueue(() => {
742
742
  var t = Sr(this, Fr, Vs).call(this);
743
- Be(this, dt, Sr(this, Fr, ri).call(this, () => (en.ensure(), Jr(() => Z(this, Yn).call(this, t))))), Z(this, mn) > 0 ? Sr(this, Fr, ti).call(this) : (Zn(
743
+ Be(this, dt, Sr(this, Fr, ri).call(this, () => (en.ensure(), Jr(() => Z(this, Gn).call(this, t))))), Z(this, mn) > 0 ? Sr(this, Fr, ti).call(this) : (Jn(
744
744
  /** @type {Effect} */
745
745
  Z(this, Zr),
746
746
  () => {
@@ -790,7 +790,7 @@ Ws = function(e) {
790
790
  Cr(n, Gr), sn(n);
791
791
  for (const n of Z(this, Sa))
792
792
  Cr(n, Gt), sn(n);
793
- Z(this, Ea).clear(), Z(this, Sa).clear(), Z(this, Zr) && Zn(Z(this, Zr), () => {
793
+ Z(this, Ea).clear(), Z(this, Sa).clear(), Z(this, Zr) && Jn(Z(this, Zr), () => {
794
794
  Be(this, Zr, null);
795
795
  }), Z(this, Zt) && (Z(this, ut).before(Z(this, Zt)), Be(this, Zt, null));
796
796
  }
@@ -874,7 +874,7 @@ function Bg(r, e, t) {
874
874
  /** @type {Promise<V>} */
875
875
  /** @type {unknown} */
876
876
  void 0
877
- ), s = $n(
877
+ ), s = ea(
878
878
  /** @type {V} */
879
879
  Dr
880
880
  ), l = !Xe, c = /* @__PURE__ */ new Map();
@@ -902,8 +902,8 @@ function Bg(r, e, t) {
902
902
  v !== ha && (s.f |= kn, Aa(s, v));
903
903
  else {
904
904
  (s.f & kn) !== 0 && (s.f ^= kn), Aa(s, f);
905
- for (const [y, h] of c) {
906
- if (c.delete(y), y === d) break;
905
+ for (const [b, h] of c) {
906
+ if (c.delete(b), b === d) break;
907
907
  h.reject(ha);
908
908
  }
909
909
  }
@@ -976,7 +976,7 @@ function yd(r) {
976
976
  let Hs = /* @__PURE__ */ new Set();
977
977
  const Pn = /* @__PURE__ */ new Map();
978
978
  let bd = !1;
979
- function $n(r, e) {
979
+ function ea(r, e) {
980
980
  var t = {
981
981
  f: 0,
982
982
  // TODO ideally we could skip this altogether, but it causes type errors
@@ -990,13 +990,13 @@ function $n(r, e) {
990
990
  }
991
991
  // @__NO_SIDE_EFFECTS__
992
992
  function re(r, e) {
993
- const t = $n(r);
993
+ const t = ea(r);
994
994
  return Nd(t), t;
995
995
  }
996
996
  // @__NO_SIDE_EFFECTS__
997
997
  function ar(r, e = !1, t = !0) {
998
998
  var a;
999
- const n = $n(r);
999
+ const n = ea(r);
1000
1000
  return e || (n.equals = ad), Oa && t && or !== null && or.l !== null && ((a = or.l).s ?? (a.s = [])).push(n), n;
1001
1001
  }
1002
1002
  function j(r, e, t = !1) {
@@ -1024,7 +1024,7 @@ function Aa(r, e) {
1024
1024
  }
1025
1025
  function Rg() {
1026
1026
  bd = !1;
1027
- var r = Jn;
1027
+ var r = Qn;
1028
1028
  ci(!0);
1029
1029
  const e = Array.from(Hs);
1030
1030
  try {
@@ -1067,10 +1067,10 @@ function tr(r) {
1067
1067
  const e = yl(r);
1068
1068
  if (e !== pg && e !== _g)
1069
1069
  return r;
1070
- var t = /* @__PURE__ */ new Map(), n = Ai(r), a = /* @__PURE__ */ re(0), i = Qn, s = (l) => {
1071
- if (Qn === i)
1070
+ var t = /* @__PURE__ */ new Map(), n = Ai(r), a = /* @__PURE__ */ re(0), i = $n, s = (l) => {
1071
+ if ($n === i)
1072
1072
  return l();
1073
- var c = Xe, u = Qn;
1073
+ var c = Xe, u = $n;
1074
1074
  Qr(null), gc(i);
1075
1075
  var d = l();
1076
1076
  return Qr(c), gc(u), d;
@@ -1164,8 +1164,8 @@ function tr(r) {
1164
1164
  var v = s(() => tr(u));
1165
1165
  j(p, v);
1166
1166
  }
1167
- var y = Reflect.getOwnPropertyDescriptor(l, c);
1168
- if (y != null && y.set && y.set.call(d, u), !g) {
1167
+ var b = Reflect.getOwnPropertyDescriptor(l, c);
1168
+ if (b != null && b.set && b.set.call(d, u), !g) {
1169
1169
  if (n && typeof c == "string") {
1170
1170
  var h = (
1171
1171
  /** @type {Source<number>} */
@@ -1254,7 +1254,7 @@ function Ed() {
1254
1254
  function Yg(r, e) {
1255
1255
  if (e) {
1256
1256
  const t = document.body;
1257
- r.autofocus = !0, Dn(() => {
1257
+ r.autofocus = !0, An(() => {
1258
1258
  document.activeElement === t && r.focus();
1259
1259
  });
1260
1260
  }
@@ -1371,7 +1371,7 @@ function Zg(r) {
1371
1371
  en.ensure();
1372
1372
  const e = Et(ra | Na, r, !0);
1373
1373
  return (t = {}) => new Promise((n) => {
1374
- t.outro ? Zn(e, () => {
1374
+ t.outro ? Jn(e, () => {
1375
1375
  Lr(e), n(void 0);
1376
1376
  }) : (Lr(e), n(void 0));
1377
1377
  });
@@ -1477,7 +1477,7 @@ function Fd(r) {
1477
1477
  var e = r.parent, t = r.prev, n = r.next;
1478
1478
  t !== null && (t.next = n), n !== null && (n.prev = t), e !== null && (e.first === r && (e.first = n), e.last === r && (e.last = t));
1479
1479
  }
1480
- function Zn(r, e, t = !0) {
1480
+ function Jn(r, e, t = !0) {
1481
1481
  var n = [];
1482
1482
  Md(r, n, !0);
1483
1483
  var a = () => {
@@ -1529,9 +1529,9 @@ function jd(r, e) {
1529
1529
  e.append(t), t = a;
1530
1530
  }
1531
1531
  }
1532
- let Jn = !1;
1532
+ let Qn = !1;
1533
1533
  function ci(r) {
1534
- Jn = r;
1534
+ Qn = r;
1535
1535
  }
1536
1536
  let xn = !1;
1537
1537
  function _c(r) {
@@ -1553,9 +1553,9 @@ let Vr = null, at = 0, ct = null;
1553
1553
  function $g(r) {
1554
1554
  ct = r;
1555
1555
  }
1556
- let Od = 1, lo = 0, Qn = lo;
1556
+ let Od = 1, lo = 0, $n = lo;
1557
1557
  function gc(r) {
1558
- Qn = r;
1558
+ $n = r;
1559
1559
  }
1560
1560
  function Ld() {
1561
1561
  return ++Od;
@@ -1603,9 +1603,9 @@ function Bd(r, e, t = !0) {
1603
1603
  }
1604
1604
  function Ud(r) {
1605
1605
  var f;
1606
- var e = Vr, t = at, n = ct, a = Xe, i = Hr, s = or, l = Pt, c = Qn, u = r.f;
1606
+ var e = Vr, t = at, n = ct, a = Xe, i = Hr, s = or, l = Pt, c = $n, u = r.f;
1607
1607
  Vr = /** @type {null | Value[]} */
1608
- null, at = 0, ct = null, Xe = (u & (ln | ra)) === 0 ? r : null, Hr = null, Ta(r.ctx), Pt = !1, Qn = ++lo, r.ac !== null && (Ba(() => {
1608
+ null, at = 0, ct = null, Xe = (u & (ln | ra)) === 0 ? r : null, Hr = null, Ta(r.ctx), Pt = !1, $n = ++lo, r.ac !== null && (Ba(() => {
1609
1609
  r.ac.abort(ha);
1610
1610
  }), r.ac = null);
1611
1611
  try {
@@ -1638,7 +1638,7 @@ function Ud(r) {
1638
1638
  } catch (v) {
1639
1639
  return sd(v);
1640
1640
  } finally {
1641
- r.f ^= Ls, Vr = e, at = t, ct = n, Xe = a, Hr = i, Ta(s), Pt = l, Qn = c;
1641
+ r.f ^= Ls, Vr = e, at = t, ct = n, Xe = a, Hr = i, Ta(s), Pt = l, $n = c;
1642
1642
  }
1643
1643
  }
1644
1644
  function ef(r, e) {
@@ -1671,8 +1671,8 @@ function qa(r) {
1671
1671
  var e = r.f;
1672
1672
  if ((e & nn) === 0) {
1673
1673
  Cr(r, Or);
1674
- var t = er, n = Jn;
1675
- er = r, Jn = !0;
1674
+ var t = er, n = Qn;
1675
+ er = r, Qn = !0;
1676
1676
  try {
1677
1677
  (e & (Yt | bl)) !== 0 ? Qg(r) : Ad(r), Dd(r);
1678
1678
  var a = Ud(r);
@@ -1680,7 +1680,7 @@ function qa(r) {
1680
1680
  var i;
1681
1681
  Os && Cg && (r.f & Gr) !== 0 && r.deps;
1682
1682
  } finally {
1683
- Jn = n, er = t;
1683
+ Qn = n, er = t;
1684
1684
  }
1685
1685
  }
1686
1686
  }
@@ -1713,7 +1713,7 @@ function o(r) {
1713
1713
  var l = s.v;
1714
1714
  return ((s.f & Or) === 0 && s.reactions !== null || Wd(s)) && (l = Sl(s)), Pn.set(s, l), l;
1715
1715
  }
1716
- var c = (s.f & ft) === 0 && !Pt && Xe !== null && (Jn || (Xe.f & ft) !== 0), u = s.deps === null;
1716
+ var c = (s.f & ft) === 0 && !Pt && Xe !== null && (Qn || (Xe.f & ft) !== 0), u = s.deps === null;
1717
1717
  Va(s) && (c && (s.f |= ft), yd(s)), c && !u && Vd(s);
1718
1718
  }
1719
1719
  if (jr != null && jr.has(r))
@@ -1799,7 +1799,7 @@ function Dl(r, e, t, n = {}) {
1799
1799
  if (n.capture || Qa.call(e, i), !i.cancelBubble)
1800
1800
  return Ba(() => t == null ? void 0 : t.call(this, i));
1801
1801
  }
1802
- return r.startsWith("pointer") || r.startsWith("touch") || r === "wheel" ? Dn(() => {
1802
+ return r.startsWith("pointer") || r.startsWith("touch") || r === "wheel" ? An(() => {
1803
1803
  e.addEventListener(r, a, n);
1804
1804
  }) : e.addEventListener(r, a, n), a;
1805
1805
  }
@@ -1826,11 +1826,11 @@ function cn(r) {
1826
1826
  }
1827
1827
  let fc = null;
1828
1828
  function Qa(r) {
1829
- var y;
1829
+ var b;
1830
1830
  var e = this, t = (
1831
1831
  /** @type {Node} */
1832
1832
  e.ownerDocument
1833
- ), n = r.type, a = ((y = r.composedPath) == null ? void 0 : y.call(r)) || [], i = (
1833
+ ), n = r.type, a = ((b = r.composedPath) == null ? void 0 : b.call(r)) || [], i = (
1834
1834
  /** @type {null | Element} */
1835
1835
  a[0] || r.target
1836
1836
  );
@@ -2043,7 +2043,7 @@ function ye(r, e) {
2043
2043
  var t = e == null ? "" : typeof e == "object" ? e + "" : e;
2044
2044
  t !== (r.__t ?? (r.__t = r.nodeValue)) && (r.__t = t, r.nodeValue = t + "");
2045
2045
  }
2046
- function Un(r, e) {
2046
+ function Rn(r, e) {
2047
2047
  return pf(r, e);
2048
2048
  }
2049
2049
  const pa = /* @__PURE__ */ new Map();
@@ -2102,7 +2102,7 @@ function $a(r, e) {
2102
2102
  const t = Ks.get(r);
2103
2103
  return t ? (Ks.delete(r), t(e)) : Promise.resolve();
2104
2104
  }
2105
- var wt, Bt, ot, Xn, yo, bo, Ci;
2105
+ var wt, Bt, ot, Zn, yo, bo, Ci;
2106
2106
  class Io {
2107
2107
  /**
2108
2108
  * @param {TemplateNode} anchor
@@ -2138,7 +2138,7 @@ class Io {
2138
2138
  * Keys of effects that are currently outroing
2139
2139
  * @type {Set<Key>}
2140
2140
  */
2141
- Ve(this, Xn, /* @__PURE__ */ new Set());
2141
+ Ve(this, Zn, /* @__PURE__ */ new Set());
2142
2142
  /**
2143
2143
  * Whether to pause (i.e. outro) on change, or destroy immediately.
2144
2144
  * This is necessary for `<svelte:element>`
@@ -2155,7 +2155,7 @@ class Io {
2155
2155
  Z(this, wt).get(e)
2156
2156
  ), n = Z(this, Bt).get(t);
2157
2157
  if (n)
2158
- Tl(n), Z(this, Xn).delete(t);
2158
+ Tl(n), Z(this, Zn).delete(t);
2159
2159
  else {
2160
2160
  var a = Z(this, ot).get(t);
2161
2161
  a && (Z(this, Bt).set(t, a.effect), Z(this, ot).delete(t), a.fragment.lastChild.remove(), this.anchor.before(a.fragment), n = a.effect);
@@ -2167,16 +2167,16 @@ class Io {
2167
2167
  l && (Lr(l.effect), Z(this, ot).delete(s));
2168
2168
  }
2169
2169
  for (const [i, s] of Z(this, Bt)) {
2170
- if (i === t || Z(this, Xn).has(i)) continue;
2170
+ if (i === t || Z(this, Zn).has(i)) continue;
2171
2171
  const l = () => {
2172
2172
  if (Array.from(Z(this, wt).values()).includes(i)) {
2173
2173
  var u = document.createDocumentFragment();
2174
2174
  jd(s, u), u.append(Rt()), Z(this, ot).set(i, { effect: s, fragment: u });
2175
2175
  } else
2176
2176
  Lr(s);
2177
- Z(this, Xn).delete(i), Z(this, Bt).delete(i);
2177
+ Z(this, Zn).delete(i), Z(this, Bt).delete(i);
2178
2178
  };
2179
- Z(this, yo) || !n ? (Z(this, Xn).add(i), Zn(s, l, !1)) : l();
2179
+ Z(this, yo) || !n ? (Z(this, Zn).add(i), Jn(s, l, !1)) : l();
2180
2180
  }
2181
2181
  }
2182
2182
  });
@@ -2223,7 +2223,7 @@ class Io {
2223
2223
  Z(this, bo).call(this);
2224
2224
  }
2225
2225
  }
2226
- wt = new WeakMap(), Bt = new WeakMap(), ot = new WeakMap(), Xn = new WeakMap(), yo = new WeakMap(), bo = new WeakMap(), Ci = new WeakMap();
2226
+ wt = new WeakMap(), Bt = new WeakMap(), ot = new WeakMap(), Zn = new WeakMap(), yo = new WeakMap(), bo = new WeakMap(), Ci = new WeakMap();
2227
2227
  function hr(r, e, ...t) {
2228
2228
  var n = new Io(r);
2229
2229
  na(() => {
@@ -2276,7 +2276,7 @@ function an(r, e) {
2276
2276
  function gf(r, e, t) {
2277
2277
  for (var n = [], a = e.length, i, s = e.length, l = 0; l < a; l++) {
2278
2278
  let p = e[l];
2279
- Zn(
2279
+ Jn(
2280
2280
  p,
2281
2281
  () => {
2282
2282
  if (i) {
@@ -2331,7 +2331,7 @@ function Vt(r, e, t, n, a, i = null) {
2331
2331
  return Ai(h) ? h : h == null ? [] : qi(h);
2332
2332
  }), g, _ = !0;
2333
2333
  function f() {
2334
- y.fallback = d, ff(y, g, s, e, n), d !== null && (g.length === 0 ? (d.f & $t) === 0 ? Tl(d) : (d.f ^= $t, eo(d, null, s)) : Zn(d, () => {
2334
+ b.fallback = d, ff(b, g, s, e, n), d !== null && (g.length === 0 ? (d.f & $t) === 0 ? Tl(d) : (d.f ^= $t, eo(d, null, s)) : Jn(d, () => {
2335
2335
  d = null;
2336
2336
  }));
2337
2337
  }
@@ -2341,9 +2341,9 @@ function Vt(r, e, t, n, a, i = null) {
2341
2341
  for (var h = g.length, k = /* @__PURE__ */ new Set(), w = (
2342
2342
  /** @type {Batch} */
2343
2343
  Je
2344
- ), b = Ed(), x = 0; x < h; x += 1) {
2344
+ ), y = Ed(), x = 0; x < h; x += 1) {
2345
2345
  var S = g[x], I = n(S, x), z = _ ? null : l.get(I);
2346
- z ? (z.v && Aa(z.v, S), z.i && Aa(z.i, x), b && w.skipped_effects.delete(z.e)) : (z = mf(
2346
+ z ? (z.v && Aa(z.v, S), z.i && Aa(z.i, x), y && w.skipped_effects.delete(z.e)) : (z = mf(
2347
2347
  l,
2348
2348
  _ ? s : mc ?? (mc = Rt()),
2349
2349
  S,
@@ -2355,7 +2355,7 @@ function Vt(r, e, t, n, a, i = null) {
2355
2355
  ), _ || (z.e.f |= $t), l.set(I, z)), k.add(I);
2356
2356
  }
2357
2357
  if (h === 0 && i && !d && (_ ? d = Jr(() => i(s)) : (d = Jr(() => i(mc ?? (mc = Rt()))), d.f |= $t)), !_)
2358
- if (b) {
2358
+ if (y) {
2359
2359
  for (const [E, M] of l)
2360
2360
  k.has(E) || w.skipped_effects.add(M.e);
2361
2361
  w.oncommit(f), w.ondiscard(() => {
@@ -2363,50 +2363,50 @@ function Vt(r, e, t, n, a, i = null) {
2363
2363
  } else
2364
2364
  f();
2365
2365
  o(p);
2366
- }), y = { effect: v, items: l, outrogroups: null, fallback: d };
2366
+ }), b = { effect: v, items: l, outrogroups: null, fallback: d };
2367
2367
  _ = !1;
2368
2368
  }
2369
2369
  function ff(r, e, t, n, a) {
2370
2370
  var M, C, B, O, q, L, F, A, N;
2371
- var i = (n & J_) !== 0, s = e.length, l = r.items, c = r.effect.first, u, d = null, p, g = [], _ = [], f, v, y, h;
2371
+ var i = (n & J_) !== 0, s = e.length, l = r.items, c = r.effect.first, u, d = null, p, g = [], _ = [], f, v, b, h;
2372
2372
  if (i)
2373
2373
  for (h = 0; h < s; h += 1)
2374
- f = e[h], v = a(f, h), y = /** @type {EachItem} */
2375
- l.get(v).e, (y.f & $t) === 0 && ((C = (M = y.nodes) == null ? void 0 : M.a) == null || C.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(y));
2374
+ f = e[h], v = a(f, h), b = /** @type {EachItem} */
2375
+ l.get(v).e, (b.f & $t) === 0 && ((C = (M = b.nodes) == null ? void 0 : M.a) == null || C.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(b));
2376
2376
  for (h = 0; h < s; h += 1) {
2377
- if (f = e[h], v = a(f, h), y = /** @type {EachItem} */
2377
+ if (f = e[h], v = a(f, h), b = /** @type {EachItem} */
2378
2378
  l.get(v).e, r.outrogroups !== null)
2379
2379
  for (const W of r.outrogroups)
2380
- W.pending.delete(y), W.done.delete(y);
2381
- if ((y.f & $t) !== 0)
2382
- if (y.f ^= $t, y === c)
2383
- eo(y, null, t);
2380
+ W.pending.delete(b), W.done.delete(b);
2381
+ if ((b.f & $t) !== 0)
2382
+ if (b.f ^= $t, b === c)
2383
+ eo(b, null, t);
2384
2384
  else {
2385
2385
  var k = d ? d.next : c;
2386
- y === r.effect.last && (r.effect.last = y.prev), y.prev && (y.prev.next = y.next), y.next && (y.next.prev = y.prev), pn(r, d, y), pn(r, y, k), eo(y, k, t), d = y, g = [], _ = [], c = d.next;
2386
+ b === r.effect.last && (r.effect.last = b.prev), b.prev && (b.prev.next = b.next), b.next && (b.next.prev = b.prev), pn(r, d, b), pn(r, b, k), eo(b, k, t), d = b, g = [], _ = [], c = d.next;
2387
2387
  continue;
2388
2388
  }
2389
- if ((y.f & st) !== 0 && (Tl(y), i && ((O = (B = y.nodes) == null ? void 0 : B.a) == null || O.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(y))), y !== c) {
2390
- if (u !== void 0 && u.has(y)) {
2389
+ if ((b.f & st) !== 0 && (Tl(b), i && ((O = (B = b.nodes) == null ? void 0 : B.a) == null || O.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(b))), b !== c) {
2390
+ if (u !== void 0 && u.has(b)) {
2391
2391
  if (g.length < _.length) {
2392
- var w = _[0], b;
2392
+ var w = _[0], y;
2393
2393
  d = w.prev;
2394
2394
  var x = g[0], S = g[g.length - 1];
2395
- for (b = 0; b < g.length; b += 1)
2396
- eo(g[b], w, t);
2397
- for (b = 0; b < _.length; b += 1)
2398
- u.delete(_[b]);
2395
+ for (y = 0; y < g.length; y += 1)
2396
+ eo(g[y], w, t);
2397
+ for (y = 0; y < _.length; y += 1)
2398
+ u.delete(_[y]);
2399
2399
  pn(r, x.prev, S.next), pn(r, d, x), pn(r, S, w), c = w, d = S, h -= 1, g = [], _ = [];
2400
2400
  } else
2401
- u.delete(y), eo(y, c, t), pn(r, y.prev, y.next), pn(r, y, d === null ? r.effect.first : d.next), pn(r, d, y), d = y;
2401
+ u.delete(b), eo(b, c, t), pn(r, b.prev, b.next), pn(r, b, d === null ? r.effect.first : d.next), pn(r, d, b), d = b;
2402
2402
  continue;
2403
2403
  }
2404
- for (g = [], _ = []; c !== null && c !== y; )
2404
+ for (g = [], _ = []; c !== null && c !== b; )
2405
2405
  (u ?? (u = /* @__PURE__ */ new Set())).add(c), _.push(c), c = c.next;
2406
2406
  if (c === null)
2407
2407
  continue;
2408
2408
  }
2409
- (y.f & $t) === 0 && g.push(y), d = y, c = y.next;
2409
+ (b.f & $t) === 0 && g.push(b), d = b, c = b.next;
2410
2410
  }
2411
2411
  if (r.outrogroups !== null) {
2412
2412
  for (const W of r.outrogroups)
@@ -2416,8 +2416,8 @@ function ff(r, e, t, n, a) {
2416
2416
  if (c !== null || u !== void 0) {
2417
2417
  var I = [];
2418
2418
  if (u !== void 0)
2419
- for (y of u)
2420
- (y.f & st) === 0 && I.push(y);
2419
+ for (b of u)
2420
+ (b.f & st) === 0 && I.push(b);
2421
2421
  for (; c !== null; )
2422
2422
  (c.f & st) === 0 && c !== r.fallback && I.push(c), c = c.next;
2423
2423
  var z = I.length;
@@ -2432,15 +2432,15 @@ function ff(r, e, t, n, a) {
2432
2432
  gf(r, I, E);
2433
2433
  }
2434
2434
  }
2435
- i && Dn(() => {
2435
+ i && An(() => {
2436
2436
  var W, G;
2437
2437
  if (p !== void 0)
2438
- for (y of p)
2439
- (G = (W = y.nodes) == null ? void 0 : W.a) == null || G.apply();
2438
+ for (b of p)
2439
+ (G = (W = b.nodes) == null ? void 0 : W.a) == null || G.apply();
2440
2440
  });
2441
2441
  }
2442
2442
  function mf(r, e, t, n, a, i, s, l) {
2443
- var c = (s & X_) !== 0 ? (s & Q_) === 0 ? /* @__PURE__ */ ar(t, !1, !1) : $n(t) : null, u = (s & Z_) !== 0 ? $n(a) : null;
2443
+ var c = (s & X_) !== 0 ? (s & Q_) === 0 ? /* @__PURE__ */ ar(t, !1, !1) : ea(t) : null, u = (s & Z_) !== 0 ? ea(a) : null;
2444
2444
  return {
2445
2445
  v: c,
2446
2446
  i: u,
@@ -2572,37 +2572,37 @@ function Kd(r, e, t, n) {
2572
2572
  var v = {
2573
2573
  is_global: l,
2574
2574
  in() {
2575
- var b;
2575
+ var y;
2576
2576
  if (e.inert = d, !a) {
2577
- _ == null || _.abort(), (b = _ == null ? void 0 : _.reset) == null || b.call(_);
2577
+ _ == null || _.abort(), (y = _ == null ? void 0 : _.reset) == null || y.call(_);
2578
2578
  return;
2579
2579
  }
2580
2580
  i || g == null || g.abort(), Bo(e, "introstart"), g = Zs(e, f(), _, 1, () => {
2581
2581
  Bo(e, "introend"), g == null || g.abort(), g = u = void 0, e.style.overflow = p;
2582
2582
  });
2583
2583
  },
2584
- out(b) {
2584
+ out(y) {
2585
2585
  if (!i) {
2586
- b == null || b(), u = void 0;
2586
+ y == null || y(), u = void 0;
2587
2587
  return;
2588
2588
  }
2589
2589
  e.inert = !0, Bo(e, "outrostart"), _ = Zs(e, f(), g, 0, () => {
2590
- Bo(e, "outroend"), b == null || b();
2590
+ Bo(e, "outroend"), y == null || y();
2591
2591
  });
2592
2592
  },
2593
2593
  stop: () => {
2594
2594
  g == null || g.abort(), _ == null || _.abort();
2595
2595
  }
2596
- }, y = (
2596
+ }, b = (
2597
2597
  /** @type {Effect & { nodes: EffectNodes }} */
2598
2598
  er
2599
2599
  );
2600
- if (((w = y.nodes).t ?? (w.t = [])).push(v), a && di) {
2600
+ if (((w = b.nodes).t ?? (w.t = [])).push(v), a && di) {
2601
2601
  var h = l;
2602
2602
  if (!h) {
2603
2603
  for (var k = (
2604
2604
  /** @type {Effect | null} */
2605
- y.parent
2605
+ b.parent
2606
2606
  ); k && (k.f & Wt) !== 0; )
2607
2607
  for (; (k = k.parent) && (k.f & Yt) === 0; )
2608
2608
  ;
@@ -2617,10 +2617,10 @@ function Zs(r, e, t, n, a) {
2617
2617
  var i = n === 1;
2618
2618
  if (fa(e)) {
2619
2619
  var s, l = !1;
2620
- return Dn(() => {
2620
+ return An(() => {
2621
2621
  if (!l) {
2622
- var y = e({ direction: i ? "in" : "out" });
2623
- s = Zs(r, y, t, n, a);
2622
+ var b = e({ direction: i ? "in" : "out" });
2623
+ s = Zs(r, b, t, n, a);
2624
2624
  }
2625
2625
  }), {
2626
2626
  abort: () => {
@@ -2647,26 +2647,26 @@ function Zs(r, e, t, n, a) {
2647
2647
  var f = () => 1 - n, v = r.animate(g, { duration: c, fill: "forwards" });
2648
2648
  return v.onfinish = () => {
2649
2649
  v.cancel();
2650
- var y = (t == null ? void 0 : t.t()) ?? 1 - n;
2650
+ var b = (t == null ? void 0 : t.t()) ?? 1 - n;
2651
2651
  t == null || t.abort();
2652
- var h = n - y, k = (
2652
+ var h = n - b, k = (
2653
2653
  /** @type {number} */
2654
2654
  e.duration * Math.abs(h)
2655
2655
  ), w = [];
2656
2656
  if (k > 0) {
2657
- var b = !1;
2657
+ var y = !1;
2658
2658
  if (u)
2659
2659
  for (var x = Math.ceil(k / 16.666666666666668), S = 0; S <= x; S += 1) {
2660
- var I = y + h * p(S / x), z = hc(u(I, 1 - I));
2661
- w.push(z), b || (b = z.overflow === "hidden");
2660
+ var I = b + h * p(S / x), z = hc(u(I, 1 - I));
2661
+ w.push(z), y || (y = z.overflow === "hidden");
2662
2662
  }
2663
- b && (r.style.overflow = "hidden"), f = () => {
2663
+ y && (r.style.overflow = "hidden"), f = () => {
2664
2664
  var E = (
2665
2665
  /** @type {number} */
2666
2666
  /** @type {globalThis.Animation} */
2667
2667
  v.currentTime
2668
2668
  );
2669
- return y + h * p(E / k);
2669
+ return b + h * p(E / k);
2670
2670
  }, d && yf(() => {
2671
2671
  if (v.playState !== "running") return !1;
2672
2672
  var E = f();
@@ -2922,64 +2922,64 @@ function Tf(r, e, t, n, a = !1, i = !1) {
2922
2922
  t.class ? t.class = aa(t.class) : (n || t[Ka]) && (t.class = null), t[Xa] && (t.style ?? (t.style = null));
2923
2923
  var g = $d(r);
2924
2924
  for (const w in t) {
2925
- let b = t[w];
2926
- if (d && w === "value" && b == null) {
2927
- r.value = r.__value = "", u[w] = b;
2925
+ let y = t[w];
2926
+ if (d && w === "value" && y == null) {
2927
+ r.value = r.__value = "", u[w] = y;
2928
2928
  continue;
2929
2929
  }
2930
2930
  if (w === "class") {
2931
2931
  var _ = r.namespaceURI === "http://www.w3.org/1999/xhtml";
2932
- lr(r, _, b, n, e == null ? void 0 : e[Ka], t[Ka]), u[w] = b, u[Ka] = t[Ka];
2932
+ lr(r, _, y, n, e == null ? void 0 : e[Ka], t[Ka]), u[w] = y, u[Ka] = t[Ka];
2933
2933
  continue;
2934
2934
  }
2935
2935
  if (w === "style") {
2936
- Te(r, b, e == null ? void 0 : e[Xa], t[Xa]), u[w] = b, u[Xa] = t[Xa];
2936
+ Te(r, y, e == null ? void 0 : e[Xa], t[Xa]), u[w] = y, u[Xa] = t[Xa];
2937
2937
  continue;
2938
2938
  }
2939
2939
  var f = u[w];
2940
- if (!(b === f && !(b === void 0 && r.hasAttribute(w)))) {
2941
- u[w] = b;
2940
+ if (!(y === f && !(y === void 0 && r.hasAttribute(w)))) {
2941
+ u[w] = y;
2942
2942
  var v = w[0] + w[1];
2943
2943
  if (v !== "$$")
2944
2944
  if (v === "on") {
2945
2945
  const x = {}, S = "$$" + w;
2946
2946
  let I = w.slice(2);
2947
- var y = sf(I);
2948
- if (af(I) && (I = I.slice(0, -7), x.capture = !0), !y && f) {
2949
- if (b != null) continue;
2947
+ var b = sf(I);
2948
+ if (af(I) && (I = I.slice(0, -7), x.capture = !0), !b && f) {
2949
+ if (y != null) continue;
2950
2950
  r.removeEventListener(I, u[S], x), u[S] = null;
2951
2951
  }
2952
- if (b != null)
2953
- if (y)
2954
- r[`__${I}`] = b, cn([I]);
2952
+ if (y != null)
2953
+ if (b)
2954
+ r[`__${I}`] = y, cn([I]);
2955
2955
  else {
2956
2956
  let z = function(E) {
2957
2957
  u[w].call(this, E);
2958
2958
  };
2959
2959
  u[S] = Dl(I, r, z, x);
2960
2960
  }
2961
- else y && (r[`__${I}`] = void 0);
2961
+ else b && (r[`__${I}`] = void 0);
2962
2962
  } else if (w === "style")
2963
- ke(r, w, b);
2963
+ ke(r, w, y);
2964
2964
  else if (w === "autofocus")
2965
2965
  Yg(
2966
2966
  /** @type {HTMLElement} */
2967
2967
  r,
2968
- !!b
2968
+ !!y
2969
2969
  );
2970
- else if (!l && (w === "__value" || w === "value" && b != null))
2971
- r.value = r.__value = b;
2970
+ else if (!l && (w === "__value" || w === "value" && y != null))
2971
+ r.value = r.__value = y;
2972
2972
  else if (w === "selected" && d)
2973
2973
  Cf(
2974
2974
  /** @type {HTMLOptionElement} */
2975
2975
  r,
2976
- b
2976
+ y
2977
2977
  );
2978
2978
  else {
2979
2979
  var h = w;
2980
2980
  c || (h = cf(h));
2981
2981
  var k = h === "defaultValue" || h === "defaultChecked";
2982
- if (b == null && !l && !k)
2982
+ if (y == null && !l && !k)
2983
2983
  if (s[w] = null, h === "value" || h === "checked") {
2984
2984
  let x = (
2985
2985
  /** @type {HTMLInputElement} */
@@ -2995,7 +2995,7 @@ function Tf(r, e, t, n, a = !1, i = !1) {
2995
2995
  }
2996
2996
  } else
2997
2997
  r.removeAttribute(w);
2998
- else k || g.includes(h) && (l || typeof b != "string") ? (r[h] = b, h in s && (s[h] = Dr)) : typeof b != "function" && ke(r, h, b);
2998
+ else k || g.includes(h) && (l || typeof y != "string") ? (r[h] = y, h in s && (s[h] = Dr)) : typeof y != "function" && ke(r, h, y);
2999
2999
  }
3000
3000
  }
3001
3001
  }
@@ -3021,8 +3021,8 @@ function Fl(r, e, t = [], n = [], a = [], i, s = !1, l = !1) {
3021
3021
  for (let h of Object.getOwnPropertySymbols(d))
3022
3022
  f[h] || Lr(d[h]);
3023
3023
  for (let h of Object.getOwnPropertySymbols(f)) {
3024
- var y = f[h];
3025
- h.description === ug && (!u || y !== u[h]) && (d[h] && Lr(d[h]), d[h] = Jr(() => Pf(r, () => y))), v[h] = y;
3024
+ var b = f[h];
3025
+ h.description === ug && (!u || b !== u[h]) && (d[h] && Lr(d[h]), d[h] = Jr(() => Pf(r, () => b))), v[h] = b;
3026
3026
  }
3027
3027
  u = v;
3028
3028
  }), p) {
@@ -3167,13 +3167,13 @@ function Wa(r = {}, e, t, n) {
3167
3167
  r !== t(...i) && (e(r, ...i), a && wc(t(...a), r) && e(null, ...a));
3168
3168
  });
3169
3169
  }), () => {
3170
- Dn(() => {
3170
+ An(() => {
3171
3171
  i && wc(t(...i), r) && e(null, ...i);
3172
3172
  });
3173
3173
  };
3174
3174
  }), r;
3175
3175
  }
3176
- function An(r = !1) {
3176
+ function qn(r = !1) {
3177
3177
  const e = (
3178
3178
  /** @type {ComponentContextLegacy} */
3179
3179
  or
@@ -3288,8 +3288,8 @@ function xt(r, e, t) {
3288
3288
  }, _ = a.map(
3289
3289
  (f, v) => Ml(
3290
3290
  f,
3291
- (y) => {
3292
- u[v] = y, d &= ~(1 << v), c && g();
3291
+ (b) => {
3292
+ u[v] = b, d &= ~(1 << v), c && g();
3293
3293
  },
3294
3294
  () => {
3295
3295
  d |= 1 << v;
@@ -3442,7 +3442,7 @@ function J(r, e, t, n) {
3442
3442
  )), l), d;
3443
3443
  if (i) {
3444
3444
  var p = Ut in r || td in r;
3445
- d = ((w = bn(r, e)) == null ? void 0 : w.set) ?? (p && e in r ? (b) => r[e] = b : void 0);
3445
+ d = ((w = bn(r, e)) == null ? void 0 : w.set) ?? (p && e in r ? (y) => r[e] = y : void 0);
3446
3446
  }
3447
3447
  var g, _ = !1;
3448
3448
  i ? [g, _] = Ff(() => (
@@ -3452,30 +3452,30 @@ function J(r, e, t, n) {
3452
3452
  r[e], g === void 0 && n !== void 0 && (g = u(), d && (a && kg(), d(g)));
3453
3453
  var f;
3454
3454
  if (a ? f = () => {
3455
- var b = (
3455
+ var y = (
3456
3456
  /** @type {V} */
3457
3457
  r[e]
3458
3458
  );
3459
- return b === void 0 ? u() : (c = !0, b);
3459
+ return y === void 0 ? u() : (c = !0, y);
3460
3460
  } : f = () => {
3461
- var b = (
3461
+ var y = (
3462
3462
  /** @type {V} */
3463
3463
  r[e]
3464
3464
  );
3465
- return b !== void 0 && (l = /** @type {V} */
3466
- void 0), b === void 0 ? l : b;
3465
+ return y !== void 0 && (l = /** @type {V} */
3466
+ void 0), y === void 0 ? l : y;
3467
3467
  }, a && (t & rg) === 0)
3468
3468
  return f;
3469
3469
  if (d) {
3470
3470
  var v = r.$$legacy;
3471
3471
  return (
3472
3472
  /** @type {() => V} */
3473
- function(b, x) {
3474
- return arguments.length > 0 ? ((!a || !x || v || _) && d(x ? f() : b), b) : f();
3473
+ function(y, x) {
3474
+ return arguments.length > 0 ? ((!a || !x || v || _) && d(x ? f() : y), y) : f();
3475
3475
  }
3476
3476
  );
3477
3477
  }
3478
- var y = !1, h = ((t & $_) !== 0 ? Eo : wn)(() => (y = !1, f()));
3478
+ var b = !1, h = ((t & $_) !== 0 ? Eo : wn)(() => (b = !1, f()));
3479
3479
  i && o(h);
3480
3480
  var k = (
3481
3481
  /** @type {Effect} */
@@ -3483,12 +3483,12 @@ function J(r, e, t, n) {
3483
3483
  );
3484
3484
  return (
3485
3485
  /** @type {() => V} */
3486
- function(b, x) {
3486
+ function(y, x) {
3487
3487
  if (arguments.length > 0) {
3488
- const S = x ? o(h) : a && i ? tr(b) : b;
3489
- return j(h, S), y = !0, l !== void 0 && (l = S), b;
3488
+ const S = x ? o(h) : a && i ? tr(y) : y;
3489
+ return j(h, S), b = !0, l !== void 0 && (l = S), y;
3490
3490
  }
3491
- return xn && y || (k.f & nn) !== 0 ? h.v : o(h);
3491
+ return xn && b || (k.f & nn) !== 0 ? h.v : o(h);
3492
3492
  }
3493
3493
  );
3494
3494
  }
@@ -7732,7 +7732,7 @@ function co(r, e, t) {
7732
7732
  }
7733
7733
  return n;
7734
7734
  }
7735
- const Vn = (r) => {
7735
+ const Wn = (r) => {
7736
7736
  if (!r)
7737
7737
  return r;
7738
7738
  const e = r.replace(/_/g, "-");
@@ -7779,7 +7779,7 @@ const on = (r, e, t, n = {}) => {
7779
7779
  minimumFractionDigits: n.maximumFractionDigits
7780
7780
  };
7781
7781
  return new Intl.NumberFormat(
7782
- Vn(t),
7782
+ Wn(t),
7783
7783
  i
7784
7784
  ).format(a).replace("US$", "$");
7785
7785
  }, km = (r, e) => {
@@ -7861,7 +7861,7 @@ class Sn {
7861
7861
  */
7862
7862
  get bcp47Locale() {
7863
7863
  var e;
7864
- return Vn((e = this.getLocaleInstance(this.selectedLocale)) == null ? void 0 : e.localeKey) || Vn(this.getLanguageCodeString(this.selectedLocale)) || Mr;
7864
+ return Wn((e = this.getLocaleInstance(this.selectedLocale)) == null ? void 0 : e.localeKey) || Wn(this.getLanguageCodeString(this.selectedLocale)) || Mr;
7865
7865
  }
7866
7866
  /**
7867
7867
  * Returns the fallback locale in a format that is compatible with other JS
@@ -7871,7 +7871,7 @@ class Sn {
7871
7871
  */
7872
7872
  get fallbackBcp47Locale() {
7873
7873
  var e;
7874
- return Vn((e = this.getLocaleInstance(this.defaultLocale)) == null ? void 0 : e.localeKey) || Vn(this.getLanguageCodeString(this.defaultLocale)) || Mr;
7874
+ return Wn((e = this.getLocaleInstance(this.defaultLocale)) == null ? void 0 : e.localeKey) || Wn(this.getLanguageCodeString(this.defaultLocale)) || Mr;
7875
7875
  }
7876
7876
  getLanguageCodeString(e) {
7877
7877
  return e.split("_")[0].split("-")[0];
@@ -7952,7 +7952,7 @@ class Sc {
7952
7952
  });
7953
7953
  }
7954
7954
  translateDate(e, t = {}) {
7955
- return e.toLocaleDateString(Vn(this.localeKey), t);
7955
+ return e.toLocaleDateString(Wn(this.localeKey), t);
7956
7956
  }
7957
7957
  }
7958
7958
  function Pm(r) {
@@ -8388,7 +8388,7 @@ const yt = (r, e) => {
8388
8388
  return {};
8389
8389
  const t = e == null ? void 0 : e.find((n) => n.conditions.find((a) => a.type === "promo_offer"));
8390
8390
  return (t == null ? void 0 : t.properties) ?? {};
8391
- }, qn = (r, e, t) => t === !1 ? !1 : !(e == null ? void 0 : e.find((a) => a.properties.visible !== !1 ? !1 : a.conditions.every((s) => Ym(s, r)))), Ym = (r, e) => {
8391
+ }, Fn = (r, e, t) => t === !1 ? !1 : !(e == null ? void 0 : e.find((a) => a.properties.visible !== !1 ? !1 : a.conditions.every((s) => Ym(s, r)))), Ym = (r, e) => {
8392
8392
  var t, n, a;
8393
8393
  if (r.type === "intro_offer_condition") {
8394
8394
  const i = !!((t = e.packageInfo) != null && t.hasIntroOffer) || !!((n = e.packageInfo) != null && n.hasTrial);
@@ -8430,7 +8430,7 @@ function Gm(r, e) {
8430
8430
  onButtonAction: g,
8431
8431
  hideBackButtons: _,
8432
8432
  selectedPackageId: f
8433
- } = Ur(), v = zl(), { getLocalizedString: y } = Ni(), h = (v == null ? void 0 : v.isSatisfied) ?? mt(!0), k = /* @__PURE__ */ m(() => (o(d).type === "workflow" || o(d).type === "complete_workflow") && !n()), w = () => {
8433
+ } = Ur(), v = zl(), { getLocalizedString: b } = Ni(), h = (v == null ? void 0 : v.isSatisfied) ?? mt(!0), k = /* @__PURE__ */ m(() => (o(d).type === "workflow" || o(d).type === "complete_workflow") && !n()), w = () => {
8434
8434
  switch (o(d).type) {
8435
8435
  case "workflow":
8436
8436
  return {
@@ -8439,7 +8439,7 @@ function Gm(r, e) {
8439
8439
  componentValue: "workflow"
8440
8440
  };
8441
8441
  case "complete_workflow": {
8442
- const C = y(o(d).url.url_lid);
8442
+ const C = b(o(d).url.url_lid);
8443
8443
  return {
8444
8444
  componentType: "button",
8445
8445
  componentName: e.name,
@@ -8488,7 +8488,7 @@ function Gm(r, e) {
8488
8488
  case "privacy_policy":
8489
8489
  case "terms":
8490
8490
  case "url": {
8491
- const C = y(o(d).url.url_lid);
8491
+ const C = b(o(d).url.url_lid);
8492
8492
  return {
8493
8493
  componentType: "button",
8494
8494
  componentName: e.name,
@@ -8511,7 +8511,7 @@ function Gm(r, e) {
8511
8511
  componentValue: "navigate_to_web_paywall_link"
8512
8512
  };
8513
8513
  }
8514
- }, b = (C) => {
8514
+ }, y = (C) => {
8515
8515
  var B;
8516
8516
  return {
8517
8517
  componentType: "package_selection_sheet",
@@ -8524,7 +8524,7 @@ function Gm(r, e) {
8524
8524
  if (o(k)) return;
8525
8525
  const C = (B = e.triggers) == null ? void 0 : B.on_press;
8526
8526
  if (o(d).type === "navigate_to" && o(d).destination === "sheet") {
8527
- o(d).sheet != null && p(b(o(d))), g(o(d), C);
8527
+ o(d).sheet != null && p(y(o(d))), g(o(d), C);
8528
8528
  return;
8529
8529
  }
8530
8530
  p(w()), g(o(d), C);
@@ -8632,7 +8632,7 @@ function eh() {
8632
8632
  return r;
8633
8633
  }
8634
8634
  const rh = mt(void 0);
8635
- function Fn() {
8635
+ function Mn() {
8636
8636
  return Ge(jl) ?? rh;
8637
8637
  }
8638
8638
  const Nl = Symbol("variables");
@@ -8646,7 +8646,7 @@ function Ll() {
8646
8646
  return r;
8647
8647
  }
8648
8648
  const th = mt(void 0);
8649
- function Mn() {
8649
+ function zn() {
8650
8650
  return Ge(Nl) ?? th;
8651
8651
  }
8652
8652
  var Ic;
@@ -8753,7 +8753,7 @@ function nh(r) {
8753
8753
  const { top_leading: e, top_trailing: t, bottom_trailing: n, bottom_leading: a } = r;
8754
8754
  return Pp(e, t, n, a);
8755
8755
  }
8756
- function zn(r) {
8756
+ function jn(r) {
8757
8757
  switch (r == null ? void 0 : r.type) {
8758
8758
  case void 0:
8759
8759
  case "concave":
@@ -8834,7 +8834,7 @@ function lh(r, e) {
8834
8834
  };
8835
8835
  }
8836
8836
  if (t.type !== "image") {
8837
- const s = jn(e, null, t), l = s["--overlay"] ?? "none", c = { ...s };
8837
+ const s = Nn(e, null, t), l = s["--overlay"] ?? "none", c = { ...s };
8838
8838
  return delete c["--overlay"], { kind: "style", style: c, overlay: l };
8839
8839
  }
8840
8840
  return {
@@ -8845,7 +8845,7 @@ function lh(r, e) {
8845
8845
  overlay: fi(e, t.color_overlay)
8846
8846
  };
8847
8847
  }
8848
- function jn(r, e, t) {
8848
+ function Nn(r, e, t) {
8849
8849
  if ((t == null ? void 0 : t.type) === "video")
8850
8850
  return {
8851
8851
  background: "transparent",
@@ -8971,7 +8971,7 @@ function mh(r, e, t, n) {
8971
8971
  position: "relative",
8972
8972
  width: yr(t.width),
8973
8973
  height: yr(t.height),
8974
- ...jn(r, n, null)
8974
+ ...Nn(r, n, null)
8975
8975
  });
8976
8976
  }
8977
8977
  function hh(r) {
@@ -9006,7 +9006,7 @@ function bh(r, e) {
9006
9006
  ...l,
9007
9007
  ...Rm(o(c), e.overrides),
9008
9008
  ...Vm(o(u), e.overrides)
9009
- })), p = /* @__PURE__ */ m(() => o(d).placeholder_lid), g = /* @__PURE__ */ m(() => o(d).keyboard_type), _ = /* @__PURE__ */ m(() => o(d).capitalize), f = /* @__PURE__ */ m(() => o(d).field_id), v = /* @__PURE__ */ m(() => o(d).reserved_attribute), y = /* @__PURE__ */ m(() => o(d).required), h = /* @__PURE__ */ m(() => o(d).size), k = /* @__PURE__ */ m(() => o(d).padding), w = /* @__PURE__ */ m(() => o(d).margin), b = /* @__PURE__ */ m(() => o(d).vertical_alignment), x = /* @__PURE__ */ m(() => o(d).border), S = /* @__PURE__ */ m(() => o(d).shape), I = /* @__PURE__ */ m(() => o(d).shadow), z = /* @__PURE__ */ m(() => o(d).font_name), E = /* @__PURE__ */ m(() => o(d).font_weight_int), M = /* @__PURE__ */ m(() => o(d).font_size), C = /* @__PURE__ */ m(() => o(d).horizontal_alignment), B = /* @__PURE__ */ m(() => o(d).color), O = /* @__PURE__ */ m(() => o(d).placeholder_font_name), q = /* @__PURE__ */ m(() => o(d).placeholder_font_weight_int), L = /* @__PURE__ */ m(() => o(d).placeholder_font_size), F = /* @__PURE__ */ m(() => o(d).placeholder_horizontal_alignment), A = /* @__PURE__ */ m(() => o(d).placeholder_color), N = /* @__PURE__ */ m(() => o(d).background_color);
9009
+ })), p = /* @__PURE__ */ m(() => o(d).placeholder_lid), g = /* @__PURE__ */ m(() => o(d).keyboard_type), _ = /* @__PURE__ */ m(() => o(d).capitalize), f = /* @__PURE__ */ m(() => o(d).field_id), v = /* @__PURE__ */ m(() => o(d).reserved_attribute), b = /* @__PURE__ */ m(() => o(d).required), h = /* @__PURE__ */ m(() => o(d).size), k = /* @__PURE__ */ m(() => o(d).padding), w = /* @__PURE__ */ m(() => o(d).margin), y = /* @__PURE__ */ m(() => o(d).vertical_alignment), x = /* @__PURE__ */ m(() => o(d).border), S = /* @__PURE__ */ m(() => o(d).shape), I = /* @__PURE__ */ m(() => o(d).shadow), z = /* @__PURE__ */ m(() => o(d).font_name), E = /* @__PURE__ */ m(() => o(d).font_weight_int), M = /* @__PURE__ */ m(() => o(d).font_size), C = /* @__PURE__ */ m(() => o(d).horizontal_alignment), B = /* @__PURE__ */ m(() => o(d).color), O = /* @__PURE__ */ m(() => o(d).placeholder_font_name), q = /* @__PURE__ */ m(() => o(d).placeholder_font_weight_int), L = /* @__PURE__ */ m(() => o(d).placeholder_font_size), F = /* @__PURE__ */ m(() => o(d).placeholder_horizontal_alignment), A = /* @__PURE__ */ m(() => o(d).placeholder_color), N = /* @__PURE__ */ m(() => o(d).background_color);
9010
9010
  function W(ne) {
9011
9011
  if (j(u, !ne.validity.valid), o(u))
9012
9012
  return;
@@ -9022,15 +9022,15 @@ function bh(r, e) {
9022
9022
  onInputChanged: te,
9023
9023
  onReservedAttributeChanged: X,
9024
9024
  selectedPackageId: D
9025
- } = Ur(), U = Fn(), ee = /* @__PURE__ */ m(() => o(b) === "top" ? "flex-start" : o(b) === "bottom" ? "flex-end" : null), oe = /* @__PURE__ */ m(() => nr({
9025
+ } = Ur(), U = Mn(), ee = /* @__PURE__ */ m(() => o(y) === "top" ? "flex-start" : o(y) === "bottom" ? "flex-end" : null), oe = /* @__PURE__ */ m(() => nr({
9026
9026
  display: "flex",
9027
9027
  ...o(ee) ? { "align-items": o(ee) } : {},
9028
9028
  width: yr(o(h).width),
9029
9029
  height: yr(o(h).height),
9030
9030
  margin: vr(o(w)),
9031
- ...jn(o(ue), o(N), null),
9031
+ ...Nn(o(ue), o(N), null),
9032
9032
  ...In(o(ue), o(x)),
9033
- "border-radius": zn(o(S)),
9033
+ "border-radius": jn(o(S)),
9034
9034
  "box-shadow": oa(o(ue), o(I))
9035
9035
  })), we = /* @__PURE__ */ m(() => {
9036
9036
  var Ze, _r;
@@ -9052,7 +9052,7 @@ function bh(r, e) {
9052
9052
  "--placeholder-font-size": `${o(L)}px`,
9053
9053
  "--placeholder-font-family": rl(o(O) ?? "") ? po(Ie ?? "") : "sans-serif"
9054
9054
  });
9055
- }), be = Mn(), { getLocalizedString: Ce } = Ni(), ze = /* @__PURE__ */ m(() => xp(Ce(o(p)), t())), je = /* @__PURE__ */ m(() => {
9055
+ }), be = zn(), { getLocalizedString: Ce } = Ni(), ze = /* @__PURE__ */ m(() => xp(Ce(o(p)), t())), je = /* @__PURE__ */ m(() => {
9056
9056
  switch (e.keyboard_type) {
9057
9057
  case "decimal":
9058
9058
  case "numeric":
@@ -9066,7 +9066,7 @@ function bh(r, e) {
9066
9066
  case "url":
9067
9067
  return "url";
9068
9068
  }
9069
- }), Se = /* @__PURE__ */ m(() => qn(
9069
+ }), Se = /* @__PURE__ */ m(() => Fn(
9070
9070
  {
9071
9071
  selectedPackageId: n(),
9072
9072
  packageInfo: a(),
@@ -9080,7 +9080,7 @@ function bh(r, e) {
9080
9080
  var Re = (ne) => {
9081
9081
  var _e = vh(), ce = T(_e);
9082
9082
  ce.__input = G, K(() => {
9083
- Te(_e, o(oe)), ke(ce, "type", o(je)), ke(ce, "placeholder", o(ze)), ce.required = o(y), ke(ce, "inputmode", o(g)), ke(ce, "autocapitalize", o(_)), Te(ce, o(we));
9083
+ Te(_e, o(oe)), ke(ce, "type", o(je)), ke(ce, "placeholder", o(ze)), ce.required = o(b), ke(ce, "inputmode", o(g)), ke(ce, "autocapitalize", o(_)), Te(ce, o(we));
9084
9084
  }), Ar("focus", ce, () => j(c, !0)), Ar("blur", ce, R), P(ne, _e);
9085
9085
  };
9086
9086
  Y(Oe, (ne) => {
@@ -9152,21 +9152,21 @@ const Sh = {
9152
9152
  };
9153
9153
  function Ih(r, e) {
9154
9154
  me(e, !0), Pe(r, Sh);
9155
- const t = () => pe(g, "$isDisabled", n), [n, a] = He(), i = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), { stack: s, option_id: l } = i, { onButtonAction: c, onInputChanged: u } = Ur(), d = kh(), p = d ? xt(d.selectedOptionIds, (b) => b.has(l)) : mt(!1);
9155
+ const t = () => pe(g, "$isDisabled", n), [n, a] = He(), i = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), { stack: s, option_id: l } = i, { onButtonAction: c, onInputChanged: u } = Ur(), d = kh(), p = d ? xt(d.selectedOptionIds, (y) => y.has(l)) : mt(!1);
9156
9156
  Oi(p);
9157
- const g = d ? xt([p, d.isAtMax], ([b, x]) => !b && x) : mt(!1), _ = qr(!1);
9157
+ const g = d ? xt([p, d.isAtMax], ([y, x]) => !y && x) : mt(!1), _ = qr(!1);
9158
9158
  Ph(_);
9159
- const f = () => _.set(!0), v = () => _.set(!1), y = () => {
9159
+ const f = () => _.set(!0), v = () => _.set(!1), b = () => {
9160
9160
  var S;
9161
9161
  if (t()) return;
9162
- const b = (S = e.triggers) == null ? void 0 : S.on_press;
9162
+ const y = (S = e.triggers) == null ? void 0 : S.on_press;
9163
9163
  d == null || d.selectOption(l);
9164
9164
  const x = d == null ? void 0 : d.fieldId;
9165
- x && (u == null || u(x, l, b)), c({ type: "workflow" }, b);
9165
+ x && (u == null || u(x, l, y)), c({ type: "workflow" }, y);
9166
9166
  }, h = /* @__PURE__ */ m(() => t() ? { "pointer-events": "none", opacity: "0.4" } : void 0);
9167
9167
  var k = Eh(), w = T(k);
9168
9168
  Ir(w, sr(() => s, {
9169
- onclick: y,
9169
+ onclick: b,
9170
9170
  get style() {
9171
9171
  return o(h);
9172
9172
  }
@@ -10017,8 +10017,8 @@ function Lh() {
10017
10017
  function d(g, _) {
10018
10018
  let f = 0;
10019
10019
  return g.forEach(function(v) {
10020
- const y = u(v.mode, _);
10021
- f += y + v.getBitsLength();
10020
+ const b = u(v.mode, _);
10021
+ f += b + v.getBitsLength();
10022
10022
  }), f;
10023
10023
  }
10024
10024
  function p(g, _) {
@@ -10032,7 +10032,7 @@ function Lh() {
10032
10032
  if (!i.isValid(_))
10033
10033
  throw new Error("Invalid QR Code version");
10034
10034
  typeof v > "u" && (v = a.BYTE);
10035
- const y = e.getSymbolTotalCodewords(_), h = t.getTotalCodewordsCount(_, f), k = (y - h) * 8;
10035
+ const b = e.getSymbolTotalCodewords(_), h = t.getTotalCodewordsCount(_, f), k = (b - h) * 8;
10036
10036
  if (v === a.MIXED) return k;
10037
10037
  const w = k - u(v, _);
10038
10038
  switch (v) {
@@ -10048,16 +10048,16 @@ function Lh() {
10048
10048
  }
10049
10049
  }, r.getBestVersionForData = function(_, f) {
10050
10050
  let v;
10051
- const y = n.from(f, n.M);
10051
+ const b = n.from(f, n.M);
10052
10052
  if (Array.isArray(_)) {
10053
10053
  if (_.length > 1)
10054
- return p(_, y);
10054
+ return p(_, b);
10055
10055
  if (_.length === 0)
10056
10056
  return 1;
10057
10057
  v = _[0];
10058
10058
  } else
10059
10059
  v = _;
10060
- return c(v.mode, v.getLength(), y);
10060
+ return c(v.mode, v.getLength(), b);
10061
10061
  }, r.getEncodedBits = function(_) {
10062
10062
  if (!i.isValid(_) || _ < 7)
10063
10063
  throw new Error("Invalid QR Code version");
@@ -10231,10 +10231,10 @@ function Hh() {
10231
10231
  s[n] = 0;
10232
10232
  var l = e.PriorityQueue.make();
10233
10233
  l.push(n, 0);
10234
- for (var c, u, d, p, g, _, f, v, y; !l.empty(); ) {
10234
+ for (var c, u, d, p, g, _, f, v, b; !l.empty(); ) {
10235
10235
  c = l.pop(), u = c.value, p = c.cost, g = t[u] || {};
10236
10236
  for (d in g)
10237
- g.hasOwnProperty(d) && (_ = g[d], f = p + _, v = s[d], y = typeof s[d] > "u", (y || v > f) && (s[d] = f, l.push(d, f), i[d] = u));
10237
+ g.hasOwnProperty(d) && (_ = g[d], f = p + _, v = s[d], b = typeof s[d] > "u", (b || v > f) && (s[d] = f, l.push(d, f), i[d] = u));
10238
10238
  }
10239
10239
  if (typeof a < "u" && typeof s[a] > "u") {
10240
10240
  var h = ["Could not find a path from ", n, " to ", a, "."].join("");
@@ -10298,21 +10298,21 @@ function Yh() {
10298
10298
  return unescape(encodeURIComponent(h)).length;
10299
10299
  }
10300
10300
  function d(h, k, w) {
10301
- const b = [];
10301
+ const y = [];
10302
10302
  let x;
10303
10303
  for (; (x = h.exec(w)) !== null; )
10304
- b.push({
10304
+ y.push({
10305
10305
  data: x[0],
10306
10306
  index: x.index,
10307
10307
  mode: k,
10308
10308
  length: x[0].length
10309
10309
  });
10310
- return b;
10310
+ return y;
10311
10311
  }
10312
10312
  function p(h) {
10313
10313
  const k = d(s.NUMERIC, e.NUMERIC, h), w = d(s.ALPHANUMERIC, e.ALPHANUMERIC, h);
10314
- let b, x;
10315
- return l.isKanjiModeEnabled() ? (b = d(s.BYTE, e.BYTE, h), x = d(s.KANJI, e.KANJI, h)) : (b = d(s.BYTE_KANJI, e.BYTE, h), x = []), k.concat(w, b, x).sort(function(I, z) {
10314
+ let y, x;
10315
+ return l.isKanjiModeEnabled() ? (y = d(s.BYTE, e.BYTE, h), x = d(s.KANJI, e.KANJI, h)) : (y = d(s.BYTE_KANJI, e.BYTE, h), x = []), k.concat(w, y, x).sort(function(I, z) {
10316
10316
  return I.index - z.index;
10317
10317
  }).map(function(I) {
10318
10318
  return {
@@ -10336,67 +10336,67 @@ function Yh() {
10336
10336
  }
10337
10337
  function _(h) {
10338
10338
  return h.reduce(function(k, w) {
10339
- const b = k.length - 1 >= 0 ? k[k.length - 1] : null;
10340
- return b && b.mode === w.mode ? (k[k.length - 1].data += w.data, k) : (k.push(w), k);
10339
+ const y = k.length - 1 >= 0 ? k[k.length - 1] : null;
10340
+ return y && y.mode === w.mode ? (k[k.length - 1].data += w.data, k) : (k.push(w), k);
10341
10341
  }, []);
10342
10342
  }
10343
10343
  function f(h) {
10344
10344
  const k = [];
10345
10345
  for (let w = 0; w < h.length; w++) {
10346
- const b = h[w];
10347
- switch (b.mode) {
10346
+ const y = h[w];
10347
+ switch (y.mode) {
10348
10348
  case e.NUMERIC:
10349
10349
  k.push([
10350
- b,
10351
- { data: b.data, mode: e.ALPHANUMERIC, length: b.length },
10352
- { data: b.data, mode: e.BYTE, length: b.length }
10350
+ y,
10351
+ { data: y.data, mode: e.ALPHANUMERIC, length: y.length },
10352
+ { data: y.data, mode: e.BYTE, length: y.length }
10353
10353
  ]);
10354
10354
  break;
10355
10355
  case e.ALPHANUMERIC:
10356
10356
  k.push([
10357
- b,
10358
- { data: b.data, mode: e.BYTE, length: b.length }
10357
+ y,
10358
+ { data: y.data, mode: e.BYTE, length: y.length }
10359
10359
  ]);
10360
10360
  break;
10361
10361
  case e.KANJI:
10362
10362
  k.push([
10363
- b,
10364
- { data: b.data, mode: e.BYTE, length: u(b.data) }
10363
+ y,
10364
+ { data: y.data, mode: e.BYTE, length: u(y.data) }
10365
10365
  ]);
10366
10366
  break;
10367
10367
  case e.BYTE:
10368
10368
  k.push([
10369
- { data: b.data, mode: e.BYTE, length: u(b.data) }
10369
+ { data: y.data, mode: e.BYTE, length: u(y.data) }
10370
10370
  ]);
10371
10371
  }
10372
10372
  }
10373
10373
  return k;
10374
10374
  }
10375
10375
  function v(h, k) {
10376
- const w = {}, b = { start: {} };
10376
+ const w = {}, y = { start: {} };
10377
10377
  let x = ["start"];
10378
10378
  for (let S = 0; S < h.length; S++) {
10379
10379
  const I = h[S], z = [];
10380
10380
  for (let E = 0; E < I.length; E++) {
10381
10381
  const M = I[E], C = "" + S + E;
10382
- z.push(C), w[C] = { node: M, lastCount: 0 }, b[C] = {};
10382
+ z.push(C), w[C] = { node: M, lastCount: 0 }, y[C] = {};
10383
10383
  for (let B = 0; B < x.length; B++) {
10384
10384
  const O = x[B];
10385
- w[O] && w[O].node.mode === M.mode ? (b[O][C] = g(w[O].lastCount + M.length, M.mode) - g(w[O].lastCount, M.mode), w[O].lastCount += M.length) : (w[O] && (w[O].lastCount = M.length), b[O][C] = g(M.length, M.mode) + 4 + e.getCharCountIndicator(M.mode, k));
10385
+ w[O] && w[O].node.mode === M.mode ? (y[O][C] = g(w[O].lastCount + M.length, M.mode) - g(w[O].lastCount, M.mode), w[O].lastCount += M.length) : (w[O] && (w[O].lastCount = M.length), y[O][C] = g(M.length, M.mode) + 4 + e.getCharCountIndicator(M.mode, k));
10386
10386
  }
10387
10387
  }
10388
10388
  x = z;
10389
10389
  }
10390
10390
  for (let S = 0; S < x.length; S++)
10391
- b[x[S]].end = 0;
10392
- return { map: b, table: w };
10391
+ y[x[S]].end = 0;
10392
+ return { map: y, table: w };
10393
10393
  }
10394
- function y(h, k) {
10394
+ function b(h, k) {
10395
10395
  let w;
10396
- const b = e.getBestModeForData(h);
10397
- if (w = e.from(k, b), w !== e.BYTE && w.bit < b.bit)
10396
+ const y = e.getBestModeForData(h);
10397
+ if (w = e.from(k, y), w !== e.BYTE && w.bit < y.bit)
10398
10398
  throw new Error('"' + h + '" cannot be encoded with mode ' + e.toString(w) + `.
10399
- Suggested mode is: ` + e.toString(b));
10399
+ Suggested mode is: ` + e.toString(y));
10400
10400
  switch (w === e.KANJI && !l.isKanjiModeEnabled() && (w = e.BYTE), w) {
10401
10401
  case e.NUMERIC:
10402
10402
  return new t(h);
@@ -10409,11 +10409,11 @@ function Yh() {
10409
10409
  }
10410
10410
  }
10411
10411
  r.fromArray = function(k) {
10412
- return k.reduce(function(w, b) {
10413
- return typeof b == "string" ? w.push(y(b, null)) : b.data && w.push(y(b.data, b.mode)), w;
10412
+ return k.reduce(function(w, y) {
10413
+ return typeof y == "string" ? w.push(b(y, null)) : y.data && w.push(b(y.data, y.mode)), w;
10414
10414
  }, []);
10415
10415
  }, r.fromString = function(k, w) {
10416
- const b = p(k, l.isKanjiModeEnabled()), x = f(b), S = v(x, w), I = c.find_path(S.map, "start", "end"), z = [];
10416
+ const y = p(k, l.isKanjiModeEnabled()), x = f(y), S = v(x, w), I = c.find_path(S.map, "start", "end"), z = [];
10417
10417
  for (let E = 1; E < I.length - 1; E++)
10418
10418
  z.push(S.table[I[E]].node);
10419
10419
  return r.fromArray(_(z));
@@ -10455,7 +10455,7 @@ function Gh() {
10455
10455
  B === -2 || B === 2 || O === -2 || O === 2 || B === 0 && O === 0 ? S.set(M + B, C + O, !0, !0) : S.set(M + B, C + O, !1, !0);
10456
10456
  }
10457
10457
  }
10458
- function y(S, I) {
10458
+ function b(S, I) {
10459
10459
  const z = S.size, E = u.getEncodedBits(I);
10460
10460
  let M, C, B;
10461
10461
  for (let O = 0; O < 18; O++)
@@ -10495,9 +10495,9 @@ function Gh() {
10495
10495
  const O = (B - E.getLengthInBits()) / 8;
10496
10496
  for (let q = 0; q < O; q++)
10497
10497
  E.put(q % 2 ? 17 : 236, 8);
10498
- return b(E, S, I);
10498
+ return y(E, S, I);
10499
10499
  }
10500
- function b(S, I, z) {
10500
+ function y(S, I, z) {
10501
10501
  const E = r.getSymbolTotalCodewords(I), M = l.getTotalCodewordsCount(I, z), C = E - M, B = l.getBlocksCount(I, z), O = E % B, q = B - O, L = Math.floor(E / B), F = Math.floor(C / B), A = F + 1, N = L - F, W = new c(N);
10502
10502
  let G = 0;
10503
10503
  const R = new Array(B), $ = new Array(B);
@@ -10543,7 +10543,7 @@ Minimum version required to store current data is: ` + C + `.
10543
10543
  `
10544
10544
  );
10545
10545
  const B = w(I, z, M), O = r.getSymbolSize(I), q = new n(O);
10546
- return _(q, I), f(q), v(q, I), h(q, z, 0), I >= 7 && y(q, I), k(q, B), isNaN(E) && (E = s.getBestMask(
10546
+ return _(q, I), f(q), v(q, I), h(q, z, 0), I >= 7 && b(q, I), k(q, B), isNaN(E) && (E = s.getBestMask(
10547
10547
  q,
10548
10548
  h.bind(null, q, z)
10549
10549
  )), s.applyMask(E, q), h(q, z, E), {
@@ -10607,8 +10607,8 @@ function qp() {
10607
10607
  for (let _ = 0; _ < u; _++) {
10608
10608
  let f = (g * u + _) * 4, v = i.color.light;
10609
10609
  if (g >= d && _ >= d && g < u - d && _ < u - d) {
10610
- const y = Math.floor((g - d) / c), h = Math.floor((_ - d) / c);
10611
- v = p[l[y * s + h] ? 1 : 0];
10610
+ const b = Math.floor((g - d) / c), h = Math.floor((_ - d) / c);
10611
+ v = p[l[b * s + h] ? 1 : 0];
10612
10612
  }
10613
10613
  n[f++] = v.r, n[f++] = v.g, n[f++] = v.b, n[f] = v.a;
10614
10614
  }
@@ -10664,9 +10664,9 @@ function Xh() {
10664
10664
  return l;
10665
10665
  }
10666
10666
  return Cs.render = function(i, s, l) {
10667
- const c = r.getOptions(s), u = i.modules.size, d = i.modules.data, p = u + c.margin * 2, g = c.color.light.a ? "<path " + e(c.color.light, "fill") + ' d="M0 0h' + p + "v" + p + 'H0z"/>' : "", _ = "<path " + e(c.color.dark, "stroke") + ' d="' + n(d, u, c.margin) + '"/>', f = 'viewBox="0 0 ' + p + " " + p + '"', y = '<svg xmlns="http://www.w3.org/2000/svg" ' + (c.width ? 'width="' + c.width + '" height="' + c.width + '" ' : "") + f + ' shape-rendering="crispEdges">' + g + _ + `</svg>
10667
+ const c = r.getOptions(s), u = i.modules.size, d = i.modules.data, p = u + c.margin * 2, g = c.color.light.a ? "<path " + e(c.color.light, "fill") + ' d="M0 0h' + p + "v" + p + 'H0z"/>' : "", _ = "<path " + e(c.color.dark, "stroke") + ' d="' + n(d, u, c.margin) + '"/>', f = 'viewBox="0 0 ' + p + " " + p + '"', b = '<svg xmlns="http://www.w3.org/2000/svg" ' + (c.width ? 'width="' + c.width + '" height="' + c.width + '" ' : "") + f + ' shape-rendering="crispEdges">' + g + _ + `</svg>
10668
10668
  `;
10669
- return typeof l == "function" && l(null, y), y;
10669
+ return typeof l == "function" && l(null, b), b;
10670
10670
  }, Cs;
10671
10671
  }
10672
10672
  var au;
@@ -10722,8 +10722,8 @@ function rv(r, e) {
10722
10722
  xr(() => {
10723
10723
  const f = window.matchMedia("(max-width: 767px)");
10724
10724
  j(l, f.matches, !0);
10725
- const v = (y) => {
10726
- j(l, y.matches, !0);
10725
+ const v = (b) => {
10726
+ j(l, b.matches, !0);
10727
10727
  };
10728
10728
  return f.addEventListener("change", v), () => {
10729
10729
  f.removeEventListener("change", v);
@@ -10749,14 +10749,14 @@ function rv(r, e) {
10749
10749
  }
10750
10750
  }));
10751
10751
  }, _ = (f) => {
10752
- var v = Ee(), y = ie(v);
10752
+ var v = Ee(), b = ie(v);
10753
10753
  {
10754
10754
  var h = (k) => {
10755
- var w = $h(), b = T(w);
10756
- K(() => ke(b, "src", o(c))), P(k, w);
10755
+ var w = $h(), y = T(w);
10756
+ K(() => ke(y, "src", o(c))), P(k, w);
10757
10757
  };
10758
10758
  Y(
10759
- y,
10759
+ b,
10760
10760
  (k) => {
10761
10761
  o(c) && k(h);
10762
10762
  },
@@ -10783,7 +10783,7 @@ function tv(r, e) {
10783
10783
  var nv = /* @__PURE__ */ V("<span><!></span>");
10784
10784
  function nl(r, e) {
10785
10785
  me(e, !0);
10786
- const t = () => pe(u, "$selectedState", s), n = () => pe(d, "$packageInfo", s), a = () => pe(b, "$variables", s), i = () => pe(g, "$selectedPackageId", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Fn(), {
10786
+ const t = () => pe(u, "$selectedState", s), n = () => pe(d, "$packageInfo", s), a = () => pe(y, "$variables", s), i = () => pe(g, "$selectedPackageId", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Mn(), {
10787
10787
  uiConfig: p,
10788
10788
  selectedPackageId: g,
10789
10789
  emitComponentInteraction: _,
@@ -10796,9 +10796,9 @@ function nl(r, e) {
10796
10796
  ...Wm(!!((O = n()) != null && O.hasIntroOffer) || !!((q = n()) != null && q.hasTrial), e.overrides),
10797
10797
  ...Hm(!!((L = n()) != null && L.hasPromoOffer), e.overrides)
10798
10798
  };
10799
- }), y = et(), h = /* @__PURE__ */ m(y);
10799
+ }), b = et(), h = /* @__PURE__ */ m(b);
10800
10800
  let k = /* @__PURE__ */ m(() => fh(o(h), o(v), p.app.fonts));
10801
- const w = /* @__PURE__ */ m(() => mh(o(h), o(v), o(v).size, o(v).background_color)), b = Mn(), { getLocalizedString: x } = Ni(), S = /* @__PURE__ */ m(() => xp(x(o(v).text_lid), a())), I = /* @__PURE__ */ m(() => qn(
10801
+ const w = /* @__PURE__ */ m(() => mh(o(h), o(v), o(v).size, o(v).background_color)), y = zn(), { getLocalizedString: x } = Ni(), S = /* @__PURE__ */ m(() => xp(x(o(v).text_lid), a())), I = /* @__PURE__ */ m(() => Fn(
10802
10802
  {
10803
10803
  selectedPackageId: i(),
10804
10804
  packageInfo: n(),
@@ -10919,19 +10919,19 @@ function Ao(r, e) {
10919
10919
  return;
10920
10920
  }
10921
10921
  const v = o(a);
10922
- let y = !1;
10923
- const h = () => y, w = Fp(v, () => {
10922
+ let b = !1;
10923
+ const h = () => b, w = Fp(v, () => {
10924
10924
  ov(v, {
10925
10925
  cancelled: h,
10926
10926
  preferMuted: e.mute,
10927
10927
  getMutedOverride: () => o(l),
10928
- setMutedOverride: (b) => Ue(() => {
10929
- j(l, b, !0);
10928
+ setMutedOverride: (y) => Ue(() => {
10929
+ j(l, y, !0);
10930
10930
  })
10931
10931
  });
10932
10932
  }, h);
10933
10933
  return () => {
10934
- y = !0, w();
10934
+ b = !0, w();
10935
10935
  };
10936
10936
  });
10937
10937
  function d() {
@@ -10940,15 +10940,15 @@ function Ao(r, e) {
10940
10940
  var p = Ee(), g = ie(p);
10941
10941
  {
10942
10942
  var _ = (v) => {
10943
- var y = iv(), h = T(y);
10943
+ var b = iv(), h = T(b);
10944
10944
  K(() => {
10945
10945
  ke(h, "src", n()), Te(h, o(u));
10946
- }), P(v, y);
10946
+ }), P(v, b);
10947
10947
  }, f = (v) => {
10948
- var y = Ee(), h = ie(y);
10948
+ var b = Ee(), h = ie(b);
10949
10949
  {
10950
- var k = (b) => {
10951
- }, w = (b) => {
10950
+ var k = (y) => {
10951
+ }, w = (y) => {
10952
10952
  var x = lv(), S = T(x), I = T(S);
10953
10953
  {
10954
10954
  var z = (M) => {
@@ -10962,17 +10962,17 @@ function Ao(r, e) {
10962
10962
  var E = H(I, 2);
10963
10963
  Wa(S, (M) => j(a, M), () => o(a)), K(() => {
10964
10964
  Te(S, o(u)), S.loop = e.loop, S.muted = e.mute || o(l), ke(S, "poster", n() ?? void 0), ke(E, "src", e.url);
10965
- }), Ar("error", S, d), P(b, x);
10965
+ }), Ar("error", S, d), P(y, x);
10966
10966
  };
10967
10967
  Y(
10968
10968
  h,
10969
- (b) => {
10970
- o(c) ? b(k) : b(w, !1);
10969
+ (y) => {
10970
+ o(c) ? y(k) : y(w, !1);
10971
10971
  },
10972
10972
  !0
10973
10973
  );
10974
10974
  }
10975
- P(v, y);
10975
+ P(v, b);
10976
10976
  };
10977
10977
  Y(g, (v) => {
10978
10978
  o(c) && n() ? v(_) : v(f, !1);
@@ -11046,15 +11046,15 @@ function hv(r, e) {
11046
11046
  gap: zr(e.spacing),
11047
11047
  margin: vr(e.margin),
11048
11048
  padding: vr(e.padding),
11049
- ...jn(o(l), t(), null),
11049
+ ...Nn(o(l), t(), null),
11050
11050
  ...In(o(l), n()),
11051
- "border-radius": zn(a()),
11051
+ "border-radius": jn(a()),
11052
11052
  "box-shadow": oa(o(l), i())
11053
11053
  }));
11054
11054
  var _ = fv();
11055
- Vt(_, 21, () => ({ length: e.length }), an, (f, v, y) => {
11055
+ Vt(_, 21, () => ({ length: e.length }), an, (f, v, b) => {
11056
11056
  var h = gv();
11057
- K(() => Te(h, y === e.selected ? o(p) : o(d))), P(f, h);
11057
+ K(() => Te(h, b === e.selected ? o(p) : o(d))), P(f, h);
11058
11058
  }), K(() => Te(_, o(g))), P(r, _), he();
11059
11059
  }
11060
11060
  var vv = /* @__PURE__ */ V('<div class="carousel-bg-video-mount svelte-3bxg40"><!></div>'), yv = /* @__PURE__ */ V('<div><!> <div class="carousel-clip svelte-3bxg40"><div class="slider svelte-3bxg40" role="region" aria-label="Feature carousel" aria-roledescription="carousel" aria-live="polite"><!> <!> <!></div> <!></div></div>');
@@ -11067,31 +11067,31 @@ function kv(r, e) {
11067
11067
  const t = () => pe(s, "$selectedState", n), [n, a] = He(), i = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), s = vt(), l = /* @__PURE__ */ m(() => ({
11068
11068
  ...i,
11069
11069
  ...yt(t(), e.overrides)
11070
- })), c = /* @__PURE__ */ m(() => o(l).pages), u = /* @__PURE__ */ m(() => o(l).padding), d = /* @__PURE__ */ m(() => o(l).margin), p = /* @__PURE__ */ m(() => o(l).background), g = /* @__PURE__ */ m(() => o(l).shape), _ = /* @__PURE__ */ m(() => o(l).border), f = /* @__PURE__ */ m(() => o(l).shadow), v = /* @__PURE__ */ m(() => o(l).page_alignment), y = /* @__PURE__ */ m(() => o(l).page_spacing), h = /* @__PURE__ */ m(() => o(l).page_peek), k = /* @__PURE__ */ m(() => o(l).page_control), w = /* @__PURE__ */ m(() => o(l).initial_page_index), b = /* @__PURE__ */ m(() => o(l).loop), x = /* @__PURE__ */ m(() => o(l).auto_advance), S = et(), I = /* @__PURE__ */ m(S), { emitComponentInteraction: z } = Ur(), E = /* @__PURE__ */ m(() => {
11070
+ })), c = /* @__PURE__ */ m(() => o(l).pages), u = /* @__PURE__ */ m(() => o(l).padding), d = /* @__PURE__ */ m(() => o(l).margin), p = /* @__PURE__ */ m(() => o(l).background), g = /* @__PURE__ */ m(() => o(l).shape), _ = /* @__PURE__ */ m(() => o(l).border), f = /* @__PURE__ */ m(() => o(l).shadow), v = /* @__PURE__ */ m(() => o(l).page_alignment), b = /* @__PURE__ */ m(() => o(l).page_spacing), h = /* @__PURE__ */ m(() => o(l).page_peek), k = /* @__PURE__ */ m(() => o(l).page_control), w = /* @__PURE__ */ m(() => o(l).initial_page_index), y = /* @__PURE__ */ m(() => o(l).loop), x = /* @__PURE__ */ m(() => o(l).auto_advance), S = et(), I = /* @__PURE__ */ m(S), { emitComponentInteraction: z } = Ur(), E = /* @__PURE__ */ m(() => {
11071
11071
  var se;
11072
11072
  return ((se = o(p)) == null ? void 0 : se.type) === "video";
11073
11073
  }), M = /* @__PURE__ */ m(() => {
11074
11074
  if (!o(E)) return null;
11075
11075
  const se = o(p);
11076
11076
  return !se || se.type !== "video" ? null : Do(o(I), se);
11077
- }), C = /* @__PURE__ */ m(() => zn(o(g))), B = /* @__PURE__ */ m(() => {
11077
+ }), C = /* @__PURE__ */ m(() => jn(o(g))), B = /* @__PURE__ */ m(() => {
11078
11078
  var se;
11079
11079
  return nr({
11080
11080
  margin: vr(o(d)),
11081
11081
  padding: vr(o(u)),
11082
11082
  ...Bi({ hasVideoBg: o(E), positionRelative: !0 }),
11083
- ...jn(o(I), null, o(p)),
11083
+ ...Nn(o(I), null, o(p)),
11084
11084
  ...In(o(I), o(_)),
11085
11085
  "border-radius": o(C),
11086
11086
  "box-shadow": oa(o(I), o(f)),
11087
11087
  "transition-duration": `${((se = o(x)) == null ? void 0 : se.ms_transition_time) ?? 0}ms`
11088
11088
  });
11089
11089
  }), O = /* @__PURE__ */ m(() => nr({
11090
- gap: zr(o(y)),
11091
- padding: `0 ${o(h) + o(y)}px`,
11090
+ gap: zr(o(b)),
11091
+ padding: `0 ${o(h) + o(b)}px`,
11092
11092
  "align-items": uv(o(v))
11093
11093
  })), q = /* @__PURE__ */ m(() => {
11094
- if (!o(b))
11094
+ if (!o(y))
11095
11095
  return [];
11096
11096
  const se = o(c).length - 1;
11097
11097
  switch (o(c).length) {
@@ -11105,7 +11105,7 @@ function kv(r, e) {
11105
11105
  return [se - 1, se];
11106
11106
  }
11107
11107
  }), L = /* @__PURE__ */ m(() => {
11108
- if (!o(b))
11108
+ if (!o(y))
11109
11109
  return [];
11110
11110
  switch (o(c).length) {
11111
11111
  case 0:
@@ -11116,7 +11116,7 @@ function kv(r, e) {
11116
11116
  return [0, 1];
11117
11117
  }
11118
11118
  });
11119
- let F = null, A = /* @__PURE__ */ re(0), N = /* @__PURE__ */ re(0), W = /* @__PURE__ */ m(() => 2 * o(h) + o(y)), G = /* @__PURE__ */ m(() => o(N) - o(W)), R = /* @__PURE__ */ re(null);
11119
+ let F = null, A = /* @__PURE__ */ re(0), N = /* @__PURE__ */ re(0), W = /* @__PURE__ */ m(() => 2 * o(h) + o(b)), G = /* @__PURE__ */ m(() => o(N) - o(W)), R = /* @__PURE__ */ re(null);
11120
11120
  function $() {
11121
11121
  return o(c).at(o(w)) !== void 0 ? o(w) : 0;
11122
11122
  }
@@ -11137,7 +11137,7 @@ function kv(r, e) {
11137
11137
  function X() {
11138
11138
  F !== null && (F.style.transition = "none");
11139
11139
  }
11140
- const D = /* @__PURE__ */ m(() => o(b) ? 2 : 0);
11140
+ const D = /* @__PURE__ */ m(() => o(y) ? 2 : 0);
11141
11141
  function U(se) {
11142
11142
  F !== null && (F.style.transform = `translateX(${se}px)`);
11143
11143
  }
@@ -11190,7 +11190,7 @@ function kv(r, e) {
11190
11190
  function xe(se) {
11191
11191
  if (!se.currentTarget.hasPointerCapture(se.pointerId))
11192
11192
  return;
11193
- const [ur, cr] = o(b) ? [
11193
+ const [ur, cr] = o(y) ? [
11194
11194
  o(ze) - o(N),
11195
11195
  o(ze) + o(N)
11196
11196
  ] : [-(o(c).length - 1) * o(G), 0], Tr = Wo(F), tt = dv(Tr + se.movementX, ur, cr), Xt = be(tt);
@@ -11323,23 +11323,23 @@ cn(["pointerdown", "pointerup", "pointermove"]);
11323
11323
  var wv = /* @__PURE__ */ V('<div class="rc-gradient-border"><div></div></div>');
11324
11324
  function Mp(r, e) {
11325
11325
  me(e, !0);
11326
- const t = () => pe(u, "$selectedState", s), n = () => pe(p, "$selectedPackageId", s), a = () => pe(d, "$packageInfo", s), i = () => pe(g, "$variables", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Fn(), { selectedPackageId: p } = Ur(), g = Mn(), _ = /* @__PURE__ */ m(() => ({
11326
+ const t = () => pe(u, "$selectedState", s), n = () => pe(p, "$selectedPackageId", s), a = () => pe(d, "$packageInfo", s), i = () => pe(g, "$variables", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Mn(), { selectedPackageId: p } = Ur(), g = zn(), _ = /* @__PURE__ */ m(() => ({
11327
11327
  ...c,
11328
11328
  ...yt(t(), e.overrides)
11329
- })), f = /* @__PURE__ */ m(() => o(_).base_url), v = /* @__PURE__ */ m(() => o(_).formats), y = /* @__PURE__ */ m(() => o(_).size), h = /* @__PURE__ */ m(() => o(_).margin), k = /* @__PURE__ */ m(() => o(_).padding), w = /* @__PURE__ */ m(() => o(_).color), b = /* @__PURE__ */ m(() => o(_).icon_background), x = et(), S = /* @__PURE__ */ m(x), I = /* @__PURE__ */ m(() => {
11329
+ })), f = /* @__PURE__ */ m(() => o(_).base_url), v = /* @__PURE__ */ m(() => o(_).formats), b = /* @__PURE__ */ m(() => o(_).size), h = /* @__PURE__ */ m(() => o(_).margin), k = /* @__PURE__ */ m(() => o(_).padding), w = /* @__PURE__ */ m(() => o(_).color), y = /* @__PURE__ */ m(() => o(_).icon_background), x = et(), S = /* @__PURE__ */ m(x), I = /* @__PURE__ */ m(() => {
11330
11330
  var q, L, F, A;
11331
11331
  return nr({
11332
- width: yr(o(y).width),
11333
- height: yr(o(y).height),
11332
+ width: yr(o(b).width),
11333
+ height: yr(o(b).height),
11334
11334
  margin: vr(o(h)),
11335
11335
  padding: vr(o(k)),
11336
- "background-color": $r(o(S), (q = o(b)) == null ? void 0 : q.color),
11337
- ...In(o(S), (L = o(b)) == null ? void 0 : L.border),
11338
- "border-radius": zn((F = o(b)) == null ? void 0 : F.shape),
11339
- "box-shadow": oa(o(S), (A = o(b)) == null ? void 0 : A.shadow),
11336
+ "background-color": $r(o(S), (q = o(y)) == null ? void 0 : q.color),
11337
+ ...In(o(S), (L = o(y)) == null ? void 0 : L.border),
11338
+ "border-radius": jn((F = o(y)) == null ? void 0 : F.shape),
11339
+ "box-shadow": oa(o(S), (A = o(y)) == null ? void 0 : A.shadow),
11340
11340
  flex: "0 0 auto"
11341
11341
  });
11342
- }), z = /* @__PURE__ */ m(() => qn(
11342
+ }), z = /* @__PURE__ */ m(() => Fn(
11343
11343
  {
11344
11344
  selectedPackageId: n(),
11345
11345
  packageInfo: a(),
@@ -11413,18 +11413,18 @@ function Cv(r, e) {
11413
11413
  ...yt(t(), e.overrides)
11414
11414
  })), u = /* @__PURE__ */ m(() => o(c).thumb_color_on), d = /* @__PURE__ */ m(() => o(c).thumb_color_off), p = /* @__PURE__ */ m(() => o(c).track_color_on), g = /* @__PURE__ */ m(() => o(c).track_color_off), { isActive: _, selectTab: f } = Ul();
11415
11415
  Oi(_);
11416
- const v = et(), y = /* @__PURE__ */ m(v), h = /* @__PURE__ */ m(() => nr({
11417
- background: n() ? $r(o(y), o(p)) : $r(o(y), o(g))
11416
+ const v = et(), b = /* @__PURE__ */ m(v), h = /* @__PURE__ */ m(() => nr({
11417
+ background: n() ? $r(o(b), o(p)) : $r(o(b), o(g))
11418
11418
  })), k = /* @__PURE__ */ m(() => nr({
11419
11419
  left: n() ? "22px" : "2px",
11420
- background: n() ? $r(o(y), o(u)) : $r(o(y), o(d))
11420
+ background: n() ? $r(o(b), o(u)) : $r(o(b), o(d))
11421
11421
  })), w = () => {
11422
11422
  f("", n() ? 0 : 1, "switch");
11423
- }, b = (I) => {
11423
+ }, y = (I) => {
11424
11424
  (I.code === "Enter" || I.code === "Space") && w();
11425
11425
  };
11426
11426
  var x = Sv();
11427
- x.__click = w, x.__keydown = b;
11427
+ x.__click = w, x.__keydown = y;
11428
11428
  var S = T(x);
11429
11429
  K(() => {
11430
11430
  Te(x, o(h)), Te(S, o(k));
@@ -11438,27 +11438,27 @@ const Dv = {
11438
11438
  };
11439
11439
  function Av(r, e) {
11440
11440
  me(e, !0), Pe(r, Dv);
11441
- const t = () => pe(f, "$selectedState", l), n = () => pe(y, "$selectedPackageId", l), a = () => pe(v, "$packageInfo", l), i = () => pe(h, "$variables", l), s = () => pe(W, "$tab", l), [l, c] = He(), u = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), { name: d, control: p, tabs: g, default_tab_id: _ } = u, f = vt(), v = Fn(), { selectedPackageId: y } = Ur(), h = Mn(), k = /* @__PURE__ */ m(() => ({
11441
+ const t = () => pe(f, "$selectedState", l), n = () => pe(b, "$selectedPackageId", l), a = () => pe(v, "$packageInfo", l), i = () => pe(h, "$variables", l), s = () => pe(W, "$tab", l), [l, c] = He(), u = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), { name: d, control: p, tabs: g, default_tab_id: _ } = u, f = vt(), v = Mn(), { selectedPackageId: b } = Ur(), h = zn(), k = /* @__PURE__ */ m(() => ({
11442
11442
  ...u,
11443
11443
  ...yt(t(), e.overrides)
11444
- })), w = /* @__PURE__ */ m(() => o(k).size), b = /* @__PURE__ */ m(() => o(k).padding), x = /* @__PURE__ */ m(() => o(k).margin), S = /* @__PURE__ */ m(() => o(k).background), I = /* @__PURE__ */ m(() => o(k).shape), z = /* @__PURE__ */ m(() => o(k).border), E = /* @__PURE__ */ m(() => o(k).shadow), M = et(), C = /* @__PURE__ */ m(M), B = /* @__PURE__ */ m(() => {
11444
+ })), w = /* @__PURE__ */ m(() => o(k).size), y = /* @__PURE__ */ m(() => o(k).padding), x = /* @__PURE__ */ m(() => o(k).margin), S = /* @__PURE__ */ m(() => o(k).background), I = /* @__PURE__ */ m(() => o(k).shape), z = /* @__PURE__ */ m(() => o(k).border), E = /* @__PURE__ */ m(() => o(k).shadow), M = et(), C = /* @__PURE__ */ m(M), B = /* @__PURE__ */ m(() => {
11445
11445
  var X;
11446
11446
  return ((X = o(S)) == null ? void 0 : X.type) === "video";
11447
11447
  }), O = /* @__PURE__ */ m(() => {
11448
11448
  if (!o(B)) return null;
11449
11449
  const X = o(S);
11450
11450
  return !X || X.type !== "video" ? null : Do(o(C), X);
11451
- }), q = /* @__PURE__ */ m(() => zn(o(I))), L = /* @__PURE__ */ m(() => nr({
11451
+ }), q = /* @__PURE__ */ m(() => jn(o(I))), L = /* @__PURE__ */ m(() => nr({
11452
11452
  position: "relative",
11453
11453
  width: yr(o(w).width),
11454
11454
  height: yr(o(w).height),
11455
11455
  margin: vr(o(x)),
11456
- padding: vr(o(b)),
11456
+ padding: vr(o(y)),
11457
11457
  ...Bi({
11458
11458
  hasVideoBg: o(B),
11459
11459
  clipOverflow: o(q) !== "0"
11460
11460
  }),
11461
- ...jn(o(C), null, o(S)),
11461
+ ...Nn(o(C), null, o(S)),
11462
11462
  ...In(o(C), o(z)),
11463
11463
  "border-radius": o(q),
11464
11464
  "box-shadow": oa(o(C), o(E))
@@ -11494,7 +11494,7 @@ function Av(r, e) {
11494
11494
  selectTab: R,
11495
11495
  isActive: xt(N, (X) => X === 1)
11496
11496
  });
11497
- const $ = /* @__PURE__ */ m(() => qn(
11497
+ const $ = /* @__PURE__ */ m(() => Fn(
11498
11498
  {
11499
11499
  selectedPackageId: n(),
11500
11500
  packageInfo: a(),
@@ -11657,17 +11657,17 @@ function Lv(r, e) {
11657
11657
  border: e.border ?? null,
11658
11658
  shape: e.shape ?? null,
11659
11659
  shadow: e.shadow ?? null
11660
- })), v = /* @__PURE__ */ m(() => o(f).size), y = /* @__PURE__ */ m(() => o(f).dimension), h = /* @__PURE__ */ m(() => o(f).spacing), k = /* @__PURE__ */ m(() => o(f).margin), w = /* @__PURE__ */ m(() => ({
11660
+ })), v = /* @__PURE__ */ m(() => o(f).size), b = /* @__PURE__ */ m(() => o(f).dimension), h = /* @__PURE__ */ m(() => o(f).spacing), k = /* @__PURE__ */ m(() => o(f).margin), w = /* @__PURE__ */ m(() => ({
11661
11661
  display: "flex",
11662
11662
  position: "relative",
11663
11663
  width: yr(o(v).width),
11664
11664
  height: yr(o(v).height),
11665
- ...Rl(o(y)),
11665
+ ...Rl(o(b)),
11666
11666
  gap: zr(o(h)),
11667
11667
  margin: vr({
11668
11668
  ...o(k) ? { ...o(k) } : { ...uo }
11669
11669
  })
11670
- })), b = /* @__PURE__ */ m(() => nr(o(w)));
11670
+ })), y = /* @__PURE__ */ m(() => nr(o(w)));
11671
11671
  var x = Ee(), S = ie(x);
11672
11672
  {
11673
11673
  var I = (z) => {
@@ -11679,7 +11679,7 @@ function Lv(r, e) {
11679
11679
  onReady: e.onWalletButtonReady ?? s,
11680
11680
  walletButtonTheme: o(p)
11681
11681
  })), P(C, B);
11682
- }), K(() => Te(E, o(b))), P(z, E);
11682
+ }), K(() => Te(E, o(y))), P(z, E);
11683
11683
  };
11684
11684
  Y(S, (z) => {
11685
11685
  i && t() && z(I);
@@ -11723,7 +11723,7 @@ function Rv(r, e) {
11723
11723
  shape: e.shape ?? null,
11724
11724
  shadow: e.shadow ?? null,
11725
11725
  style: e.style
11726
- })), i = /* @__PURE__ */ m(() => o(a).size), s = /* @__PURE__ */ m(() => o(a).dimension), l = /* @__PURE__ */ m(() => o(a).spacing), c = /* @__PURE__ */ m(() => o(a).margin), u = /* @__PURE__ */ m(() => o(a).border), d = /* @__PURE__ */ m(() => o(a).shape), p = /* @__PURE__ */ m(() => o(a).shadow), g = /* @__PURE__ */ m(() => o(a).style), _ = 10, f = et(), v = /* @__PURE__ */ m(f), y = /* @__PURE__ */ m(() => ({
11726
+ })), i = /* @__PURE__ */ m(() => o(a).size), s = /* @__PURE__ */ m(() => o(a).dimension), l = /* @__PURE__ */ m(() => o(a).spacing), c = /* @__PURE__ */ m(() => o(a).margin), u = /* @__PURE__ */ m(() => o(a).border), d = /* @__PURE__ */ m(() => o(a).shape), p = /* @__PURE__ */ m(() => o(a).shadow), g = /* @__PURE__ */ m(() => o(a).style), _ = 10, f = et(), v = /* @__PURE__ */ m(f), b = /* @__PURE__ */ m(() => ({
11727
11727
  ...o(g),
11728
11728
  display: "flex",
11729
11729
  position: "relative",
@@ -11741,9 +11741,9 @@ function Rv(r, e) {
11741
11741
  }
11742
11742
  })
11743
11743
  })), h = /* @__PURE__ */ m(() => nr({
11744
- ...o(y),
11744
+ ...o(b),
11745
11745
  ...In(o(v), o(u)),
11746
- "border-radius": zn(o(d)),
11746
+ "border-radius": jn(o(d)),
11747
11747
  "box-shadow": oa(o(v), o(p))
11748
11748
  }));
11749
11749
  var k = Bv();
@@ -11764,8 +11764,8 @@ function Hv(r, e) {
11764
11764
  ...l
11765
11765
  } = t, { walletButtonRender: c, ...u } = Ur();
11766
11766
  let d = /* @__PURE__ */ re(void 0), p = /* @__PURE__ */ re(!!c);
11767
- vp({ walletButtonRender: c, ...u, onWalletButtonReady: (y) => {
11768
- j(d, y, !0), j(p, !1);
11767
+ vp({ walletButtonRender: c, ...u, onWalletButtonReady: (b) => {
11768
+ j(d, b, !0), j(p, !1);
11769
11769
  } });
11770
11770
  const _ = /* @__PURE__ */ m(() => !o(d) || !a), f = /* @__PURE__ */ m(() => !!(a && o(d) && !o(p))), v = {
11771
11771
  components: [],
@@ -11777,9 +11777,9 @@ function Hv(r, e) {
11777
11777
  ...l
11778
11778
  };
11779
11779
  Ir(r, sr(() => v, {
11780
- children: (y, h) => {
11781
- var k = Vv(), w = ie(k), b = T(w);
11782
- Ir(b, sr(() => a));
11780
+ children: (b, h) => {
11781
+ var k = Vv(), w = ie(k), y = T(w);
11782
+ Ir(y, sr(() => a));
11783
11783
  var x = H(w, 2);
11784
11784
  {
11785
11785
  var S = (z) => {
@@ -11804,7 +11804,7 @@ function Hv(r, e) {
11804
11804
  o(p) ? z(S) : z(I, !1);
11805
11805
  });
11806
11806
  }
11807
- K(() => lr(w, 1, aa(o(f) ? "wallet-slot" : "wallet-slot-hidden"), "svelte-vtmegi")), P(y, k);
11807
+ K(() => lr(w, 1, aa(o(f) ? "wallet-slot" : "wallet-slot-hidden"), "svelte-vtmegi")), P(b, k);
11808
11808
  },
11809
11809
  $$slots: { default: !0 }
11810
11810
  })), he();
@@ -11849,8 +11849,8 @@ function ao(r, e) {
11849
11849
  var d = { getComponentClass: a }, p = Ee(), g = ie(p);
11850
11850
  {
11851
11851
  var _ = (f) => {
11852
- var v = Ee(), y = ie(v);
11853
- hf(y, () => o(c), (h, k) => {
11852
+ var v = Ee(), b = ie(v);
11853
+ hf(b, () => o(c), (h, k) => {
11854
11854
  k(h, sr(() => o(u) || {}, () => i));
11855
11855
  }), P(f, v);
11856
11856
  };
@@ -11869,18 +11869,18 @@ const Zv = {
11869
11869
  };
11870
11870
  function Ir(r, e) {
11871
11871
  me(e, !0), Pe(r, Zv);
11872
- const t = () => pe(v, "$hoverState", l), n = () => pe(f, "$selectedState", l), a = () => pe(h, "$selectedPackageId", l), i = () => pe(y, "$packageInfo", l), s = () => pe(k, "$variables", l), [l, c] = He(), u = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), { onclick: d, children: p, class: g, testId: _ } = u, f = vt(), v = xh(), y = Fn(), { selectedPackageId: h } = Ur(), k = Mn(), w = /* @__PURE__ */ m(() => ({
11872
+ const t = () => pe(v, "$hoverState", l), n = () => pe(f, "$selectedState", l), a = () => pe(h, "$selectedPackageId", l), i = () => pe(b, "$packageInfo", l), s = () => pe(k, "$variables", l), [l, c] = He(), u = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), { onclick: d, children: p, class: g, testId: _ } = u, f = vt(), v = xh(), b = Mn(), { selectedPackageId: h } = Ur(), k = zn(), w = /* @__PURE__ */ m(() => ({
11873
11873
  ...u,
11874
11874
  ...Um(t(), e.overrides),
11875
11875
  ...yt(n(), e.overrides)
11876
- })), b = /* @__PURE__ */ m(() => o(w).components), x = /* @__PURE__ */ m(() => o(w).size), S = /* @__PURE__ */ m(() => o(w).dimension), I = /* @__PURE__ */ m(() => o(w).spacing), z = /* @__PURE__ */ m(() => o(w).margin), E = /* @__PURE__ */ m(() => o(w).padding), M = /* @__PURE__ */ m(() => o(w).background_color), C = /* @__PURE__ */ m(() => o(w).background), B = /* @__PURE__ */ m(() => o(w).border), O = /* @__PURE__ */ m(() => o(w).shape), q = /* @__PURE__ */ m(() => o(w).shadow), L = /* @__PURE__ */ m(() => o(w).badge), F = et(), A = /* @__PURE__ */ m(F), N = /* @__PURE__ */ m(() => {
11876
+ })), y = /* @__PURE__ */ m(() => o(w).components), x = /* @__PURE__ */ m(() => o(w).size), S = /* @__PURE__ */ m(() => o(w).dimension), I = /* @__PURE__ */ m(() => o(w).spacing), z = /* @__PURE__ */ m(() => o(w).margin), E = /* @__PURE__ */ m(() => o(w).padding), M = /* @__PURE__ */ m(() => o(w).background_color), C = /* @__PURE__ */ m(() => o(w).background), B = /* @__PURE__ */ m(() => o(w).border), O = /* @__PURE__ */ m(() => o(w).shape), q = /* @__PURE__ */ m(() => o(w).shadow), L = /* @__PURE__ */ m(() => o(w).badge), F = et(), A = /* @__PURE__ */ m(F), N = /* @__PURE__ */ m(() => {
11877
11877
  var U;
11878
11878
  return ((U = o(C)) == null ? void 0 : U.type) === "video";
11879
11879
  }), W = /* @__PURE__ */ m(() => {
11880
11880
  if (!o(N)) return null;
11881
11881
  const U = o(C);
11882
11882
  return !U || U.type !== "video" ? null : Do(o(A), U);
11883
- }), G = /* @__PURE__ */ m(() => zn(o(O))), R = /* @__PURE__ */ m(() => nr({
11883
+ }), G = /* @__PURE__ */ m(() => jn(o(O))), R = /* @__PURE__ */ m(() => nr({
11884
11884
  display: "flex",
11885
11885
  position: "relative",
11886
11886
  width: yr(o(x).width),
@@ -11889,7 +11889,7 @@ function Ir(r, e) {
11889
11889
  gap: zr(o(I)),
11890
11890
  margin: vr(o(z)),
11891
11891
  padding: vr(o(E)),
11892
- ...jn(o(A), o(M), o(C)),
11892
+ ...Nn(o(A), o(M), o(C)),
11893
11893
  ...In(o(A), o(B)),
11894
11894
  "border-radius": o(G),
11895
11895
  "box-shadow": oa(o(A), o(q)),
@@ -11914,7 +11914,7 @@ function Ir(r, e) {
11914
11914
  }, ue = /* @__PURE__ */ m(() => {
11915
11915
  var U;
11916
11916
  return nr(jv(o(L), (U = o(B)) == null ? void 0 : U.width));
11917
- }), de = /* @__PURE__ */ m(() => qn(
11917
+ }), de = /* @__PURE__ */ m(() => Fn(
11918
11918
  {
11919
11919
  selectedPackageId: a(),
11920
11920
  packageInfo: i(),
@@ -11998,7 +11998,7 @@ function Ir(r, e) {
11998
11998
  {
11999
11999
  var Re = (ce) => {
12000
12000
  var Ie = Kv();
12001
- Vt(Ie, 21, () => o(b), an, (Ye, Ze, _r) => {
12001
+ Vt(Ie, 21, () => o(y), an, (Ye, Ze, _r) => {
12002
12002
  var Ne = Gv(), se = T(Ne);
12003
12003
  ao(se, {
12004
12004
  get nodeData() {
@@ -12008,7 +12008,7 @@ function Ir(r, e) {
12008
12008
  }), P(ce, Ie);
12009
12009
  }, ne = (ce) => {
12010
12010
  var Ie = Ee(), Ye = ie(Ie);
12011
- Vt(Ye, 17, () => o(b), an, (Ze, _r) => {
12011
+ Vt(Ye, 17, () => o(y), an, (Ze, _r) => {
12012
12012
  ao(Ze, {
12013
12013
  get nodeData() {
12014
12014
  return o(_r);
@@ -12069,7 +12069,7 @@ function Jv(r, e) {
12069
12069
  me(e, !0);
12070
12070
  const t = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), { countdown_stack: n, end_stack: a } = t;
12071
12071
  let i = /* @__PURE__ */ re(tr(ou(e.style.date))), s = /* @__PURE__ */ re(tr(iu(e.style.date)));
12072
- const l = Ll(), c = qr(o(i)), u = xt([l, c], ([v, y]) => ({ ...v, ...y }));
12072
+ const l = Ll(), c = qr(o(i)), u = xt([l, c], ([v, b]) => ({ ...v, ...b }));
12073
12073
  Ol(u), pr(() => {
12074
12074
  const v = setInterval(
12075
12075
  () => {
@@ -12166,7 +12166,7 @@ function hi(r, e) {
12166
12166
  }
12167
12167
  var v = H(_);
12168
12168
  {
12169
- var y = (h) => {
12169
+ var b = (h) => {
12170
12170
  var k = oy();
12171
12171
  K(() => ke(k, "d", `M ${o(a)} 0 H ${e.width - o(i)} A ${o(i)} ${o(i)} 0 0 1 ${e.width} ${o(i)}
12172
12172
  V ${e.height - o(s)} A ${o(s)} ${o(s)} 0 0 1 ${e.width - o(s)} ${e.height}
@@ -12175,7 +12175,7 @@ function hi(r, e) {
12175
12175
  };
12176
12176
  Y(v, (h) => {
12177
12177
  var k, w;
12178
- (((k = e.shape) == null ? void 0 : k.type) === "rectangle" || ((w = e.shape) == null ? void 0 : w.type) === void 0) && h(y);
12178
+ (((k = e.shape) == null ? void 0 : k.type) === "rectangle" || ((w = e.shape) == null ? void 0 : w.type) === void 0) && h(b);
12179
12179
  });
12180
12180
  }
12181
12181
  P(r, c), he();
@@ -12239,10 +12239,10 @@ const hy = {
12239
12239
  };
12240
12240
  function vy(r, e) {
12241
12241
  me(e, !0), Pe(r, hy);
12242
- const t = () => pe(u, "$selectedState", s), n = () => pe(p, "$selectedPackageId", s), a = () => pe(d, "$packageInfo", s), i = () => pe(g, "$variables", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Fn(), { selectedPackageId: p } = Ur(), g = Mn(), _ = /* @__PURE__ */ m(() => ({
12242
+ const t = () => pe(u, "$selectedState", s), n = () => pe(p, "$selectedPackageId", s), a = () => pe(d, "$packageInfo", s), i = () => pe(g, "$variables", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Mn(), { selectedPackageId: p } = Ur(), g = zn(), _ = /* @__PURE__ */ m(() => ({
12243
12243
  ...c,
12244
12244
  ...yt(t(), e.overrides)
12245
- })), f = /* @__PURE__ */ m(() => o(_).id), v = /* @__PURE__ */ m(() => o(_).source), y = /* @__PURE__ */ m(() => o(_).size), h = /* @__PURE__ */ m(() => o(_).mask_shape), k = /* @__PURE__ */ m(() => o(_).fit_mode), w = /* @__PURE__ */ m(() => o(_).padding), b = /* @__PURE__ */ m(() => o(_).margin), x = /* @__PURE__ */ m(() => o(_).color_overlay), S = /* @__PURE__ */ m(() => o(_).border), I = /* @__PURE__ */ m(() => o(_).shadow), z = et(), E = /* @__PURE__ */ m(z), M = /* @__PURE__ */ m(() => Wr(o(E), o(v)));
12245
+ })), f = /* @__PURE__ */ m(() => o(_).id), v = /* @__PURE__ */ m(() => o(_).source), b = /* @__PURE__ */ m(() => o(_).size), h = /* @__PURE__ */ m(() => o(_).mask_shape), k = /* @__PURE__ */ m(() => o(_).fit_mode), w = /* @__PURE__ */ m(() => o(_).padding), y = /* @__PURE__ */ m(() => o(_).margin), x = /* @__PURE__ */ m(() => o(_).color_overlay), S = /* @__PURE__ */ m(() => o(_).border), I = /* @__PURE__ */ m(() => o(_).shadow), z = et(), E = /* @__PURE__ */ m(z), M = /* @__PURE__ */ m(() => Wr(o(E), o(v)));
12246
12246
  let C = /* @__PURE__ */ re(0), B = /* @__PURE__ */ re(tr({ height: 0, width: 0 }));
12247
12247
  pr(() => {
12248
12248
  if (o(M).width || o(M).height) {
@@ -12258,13 +12258,13 @@ function vy(r, e) {
12258
12258
  D.removeEventListener("load", U);
12259
12259
  };
12260
12260
  });
12261
- const O = /* @__PURE__ */ m(() => o(y).height.type === "fixed" ? o(y).height.value : Math.round(o(C) * (o(B).height / o(B).width))), q = /* @__PURE__ */ m(() => nr({
12262
- width: yr(o(y).width),
12261
+ const O = /* @__PURE__ */ m(() => o(b).height.type === "fixed" ? o(b).height.value : Math.round(o(C) * (o(B).height / o(B).width))), q = /* @__PURE__ */ m(() => nr({
12262
+ width: yr(o(b).width),
12263
12263
  height: `${o(O)}px`,
12264
- margin: vr(o(b)),
12264
+ margin: vr(o(y)),
12265
12265
  padding: vr(o(w)),
12266
12266
  "line-height": 0,
12267
- "flex-shrink": o(y).width.type === "fixed" ? 0 : 1
12267
+ "flex-shrink": o(b).width.type === "fixed" ? 0 : 1
12268
12268
  }));
12269
12269
  let L = /* @__PURE__ */ re(null);
12270
12270
  const F = /* @__PURE__ */ m(() => {
@@ -12276,7 +12276,7 @@ function vy(r, e) {
12276
12276
  return "";
12277
12277
  const { x: D, y: U, radius: ee, color: oe } = o(I), we = $r(o(E), oe);
12278
12278
  return `filter: drop-shadow(${D}px ${U}px ${ee}px ${we})`;
12279
- }), $ = /* @__PURE__ */ m(() => o(x) && Wr(o(E), o(x))), ue = /* @__PURE__ */ m(() => qn(
12279
+ }), $ = /* @__PURE__ */ m(() => o(x) && Wr(o(E), o(x))), ue = /* @__PURE__ */ m(() => Fn(
12280
12280
  {
12281
12281
  selectedPackageId: n(),
12282
12282
  packageInfo: a(),
@@ -12406,9 +12406,9 @@ function yy(r, e) {
12406
12406
  });
12407
12407
  }
12408
12408
  });
12409
- const y = /* @__PURE__ */ m(() => t() === e.package_id), h = qr(o(y));
12409
+ const b = /* @__PURE__ */ m(() => t() === e.package_id), h = qr(o(b));
12410
12410
  pr(() => {
12411
- h.set(o(y));
12411
+ h.set(o(b));
12412
12412
  }), Oi(h);
12413
12413
  const k = () => {
12414
12414
  const E = t();
@@ -12420,13 +12420,13 @@ function yy(r, e) {
12420
12420
  destinationPackageId: e.package_id,
12421
12421
  defaultPackageId: d
12422
12422
  }));
12423
- }, w = Ll(), b = /* @__PURE__ */ m(() => {
12423
+ }, w = Ll(), y = /* @__PURE__ */ m(() => {
12424
12424
  var M;
12425
12425
  const E = (M = n()) == null ? void 0 : M[e.package_id];
12426
12426
  return E === void 0 ? a() : { ...i(), ...E };
12427
- }), x = qr(o(b));
12427
+ }), x = qr(o(y));
12428
12428
  pr(() => {
12429
- x.set(o(b));
12429
+ x.set(o(y));
12430
12430
  }), Ol(x);
12431
12431
  const S = eh(), I = /* @__PURE__ */ m(() => {
12432
12432
  var E;
@@ -12617,28 +12617,28 @@ function Dy(r, e) {
12617
12617
  if (!o(f)) return null;
12618
12618
  const L = o(d);
12619
12619
  return !L || L.type !== "video" ? null : Do(o(_), L);
12620
- }), y = /* @__PURE__ */ m(() => nr({ background: o(p) ? "#0000003f" : "" })), h = /* @__PURE__ */ m(() => nr({
12620
+ }), b = /* @__PURE__ */ m(() => nr({ background: o(p) ? "#0000003f" : "" })), h = /* @__PURE__ */ m(() => nr({
12621
12621
  height: yr(o(u).height),
12622
12622
  ...Bi({ hasVideoBg: o(f), clipOverflow: !0 }),
12623
- ...jn(o(_), null, o(d))
12623
+ ...Nn(o(_), null, o(d))
12624
12624
  })), { onButtonAction: k } = Ur();
12625
- let w, b = /* @__PURE__ */ re(!1);
12625
+ let w, y = /* @__PURE__ */ re(!1);
12626
12626
  xr(() => {
12627
12627
  requestAnimationFrame(() => {
12628
- j(b, !0);
12628
+ j(y, !0);
12629
12629
  });
12630
12630
  });
12631
12631
  const x = () => {
12632
- j(b, !1);
12632
+ j(y, !1);
12633
12633
  }, S = () => {
12634
- o(b) || k({ type: "navigate_to", destination: "sheet", sheet: null });
12634
+ o(y) || k({ type: "navigate_to", destination: "sheet", sheet: null });
12635
12635
  }, I = (L) => {
12636
12636
  L.target === L.currentTarget && x();
12637
12637
  }, z = (L) => {
12638
12638
  L.key === "Escape" && x();
12639
12639
  };
12640
12640
  let E = /* @__PURE__ */ m(() => [
12641
- `sheet ${o(b) ? "visible" : ""}`,
12641
+ `sheet ${o(y) ? "visible" : ""}`,
12642
12642
  o(f) ? Li("sheet") : ""
12643
12643
  ].filter(Boolean).join(" "));
12644
12644
  var M = Cy();
@@ -12684,7 +12684,7 @@ function Dy(r, e) {
12684
12684
  }));
12685
12685
  }
12686
12686
  Wa(C, (L) => w = L, () => w), K(() => {
12687
- Te(M, o(y)), lr(C, 1, aa(o(E)), "svelte-1459ycx"), Te(C, o(h));
12687
+ Te(M, o(b)), lr(C, 1, aa(o(E)), "svelte-1459ycx"), Te(C, o(h));
12688
12688
  }), Ar("transitionend", C, S), P(r, M), he(), a();
12689
12689
  }
12690
12690
  cn(["click", "keydown"]);
@@ -12742,9 +12742,9 @@ function My(r, e) {
12742
12742
  {
12743
12743
  var _ = (f) => {
12744
12744
  var v = Ay();
12745
- let y;
12745
+ let b;
12746
12746
  K(() => {
12747
- y = lr(v, 1, "viewport-backdrop-overlay svelte-16nzddw", null, y, { "z-over-video-bg": e.model.kind === "video" }), Te(v, o(n));
12747
+ b = lr(v, 1, "viewport-backdrop-overlay svelte-16nzddw", null, b, { "z-over-video-bg": e.model.kind === "video" }), Te(v, o(n));
12748
12748
  }), P(f, v);
12749
12749
  };
12750
12750
  Y(g, (f) => {
@@ -12795,13 +12795,13 @@ function Up(r, e) {
12795
12795
  colorMode: p(),
12796
12796
  hostFallbackColor: e.safeAreaFallbackColor
12797
12797
  }));
12798
- const { default_locale: f, components_config: v, components_localizations: y } = e.paywallData, { base: h } = v, k = Bm(h), w = /* @__PURE__ */ m(() => {
12798
+ const { default_locale: f, components_config: v, components_localizations: b } = e.paywallData, { base: h } = v, k = Bm(h), w = /* @__PURE__ */ m(() => {
12799
12799
  const te = o(g);
12800
12800
  return te.kind === "style" && te.style.background && !te.style.background.includes("gradient") ? nr(te.style) : "";
12801
- }), { getLocalizedString: b } = Om(() => ({
12801
+ }), { getLocalizedString: y } = Om(() => ({
12802
12802
  defaultLocale: f,
12803
12803
  selectedLocale: e.selectedLocale,
12804
- localizations: y
12804
+ localizations: b
12805
12805
  })), x = qr(k), S = (te) => {
12806
12806
  if (te !== void 0)
12807
12807
  return te.trim().length > 0 ? te : void 0;
@@ -12824,7 +12824,7 @@ function Up(r, e) {
12824
12824
  X && ((D = e.onActionTriggered) == null || D.call(e, X));
12825
12825
  return;
12826
12826
  case "complete_workflow": {
12827
- const Se = b(te.url.url_lid);
12827
+ const Se = y(te.url.url_lid);
12828
12828
  if (!Se)
12829
12829
  return;
12830
12830
  (U = e.onCompleteWorkflowNavigate) == null || U.call(e, {
@@ -12857,7 +12857,7 @@ function Up(r, e) {
12857
12857
  case "privacy_policy":
12858
12858
  case "terms":
12859
12859
  case "url":
12860
- const Se = b(te.url.url_lid);
12860
+ const Se = y(te.url.url_lid);
12861
12861
  Se && ((je = e.onNavigateToUrlClicked) == null || je.call(e, Se));
12862
12862
  return;
12863
12863
  case "sheet":
@@ -12994,18 +12994,18 @@ function Oy(r, e) {
12994
12994
  onPurchase: u,
12995
12995
  selectedPackageId: d,
12996
12996
  infoPerPackage: p
12997
- } = Ur(), { getLocalizedString: g } = Ni(), _ = (y, h, k) => {
12998
- const w = y.indexOf("#"), b = w === -1 ? "" : y.slice(w), x = w === -1 ? y : y.slice(0, w), S = x.includes("?") ? "&" : "?";
12999
- return `${x}${S}${encodeURIComponent(h)}=${encodeURIComponent(k)}${b}`;
13000
- }, f = (y) => {
13001
- var b, x, S, I, z;
12997
+ } = Ur(), { getLocalizedString: g } = Ni(), _ = (b, h, k) => {
12998
+ const w = b.indexOf("#"), y = w === -1 ? "" : b.slice(w), x = w === -1 ? b : b.slice(0, w), S = x.includes("?") ? "&" : "?";
12999
+ return `${x}${S}${encodeURIComponent(h)}=${encodeURIComponent(k)}${y}`;
13000
+ }, f = (b) => {
13001
+ var y, x, S, I, z;
13002
13002
  let h;
13003
- const k = ((b = e.method) == null ? void 0 : b.type) === "unknown" || (x = e.method) == null ? void 0 : x.type, w = (I = (S = t()) == null ? void 0 : S[y]) == null ? void 0 : I.webCheckoutURL;
13003
+ const k = ((y = e.method) == null ? void 0 : y.type) === "unknown" || (x = e.method) == null ? void 0 : x.type, w = (I = (S = t()) == null ? void 0 : S[b]) == null ? void 0 : I.webCheckoutURL;
13004
13004
  if (((z = e.method) == null ? void 0 : z.type) === "custom_web_checkout") {
13005
13005
  const E = g(e.method.custom_url.url_lid);
13006
13006
  if (E) {
13007
13007
  const M = e.method.custom_url.package_param;
13008
- h = M ? _(E, M, y) : E;
13008
+ h = M ? _(E, M, b) : E;
13009
13009
  }
13010
13010
  }
13011
13011
  if (h === void 0) {
@@ -13017,13 +13017,13 @@ function Oy(r, e) {
13017
13017
  componentName: e.name,
13018
13018
  componentValue: k ?? e.action ?? "web_checkout",
13019
13019
  ...h ? { componentURL: h } : {},
13020
- currentPackageId: y
13020
+ currentPackageId: b
13021
13021
  };
13022
13022
  };
13023
13023
  Ir(r, sr(() => l, { onclick: () => {
13024
13024
  var h;
13025
- const y = n();
13026
- y !== void 0 && c(f(y)), u((h = e.triggers) == null ? void 0 : h.on_purchase_press);
13025
+ const b = n();
13026
+ b !== void 0 && c(f(b)), u((h = e.triggers) == null ? void 0 : h.on_purchase_press);
13027
13027
  } })), he(), i();
13028
13028
  }
13029
13029
  function Ly(r) {
@@ -13057,7 +13057,7 @@ function Vy(r, e) {
13057
13057
  const t = () => pe(s, "$selectedState", n), [n, a] = He(), i = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), s = vt(), l = /* @__PURE__ */ m(() => ({
13058
13058
  ...i,
13059
13059
  ...yt(t(), e.overrides)
13060
- })), c = /* @__PURE__ */ m(() => o(l).icon), u = /* @__PURE__ */ m(() => o(l).title), d = /* @__PURE__ */ m(() => o(l).description), p = /* @__PURE__ */ m(() => o(l).connector), g = /* @__PURE__ */ m(() => o(l).text_spacing), _ = /* @__PURE__ */ m(() => o(l).item_spacing), f = et(), v = /* @__PURE__ */ m(f), y = nr({ position: "relative" }), h = nr({ position: "relative", "z-index": "2" }), k = /* @__PURE__ */ m(() => nr(By(o(v), {
13060
+ })), c = /* @__PURE__ */ m(() => o(l).icon), u = /* @__PURE__ */ m(() => o(l).title), d = /* @__PURE__ */ m(() => o(l).description), p = /* @__PURE__ */ m(() => o(l).connector), g = /* @__PURE__ */ m(() => o(l).text_spacing), _ = /* @__PURE__ */ m(() => o(l).item_spacing), f = et(), v = /* @__PURE__ */ m(f), b = nr({ position: "relative" }), h = nr({ position: "relative", "z-index": "2" }), k = /* @__PURE__ */ m(() => nr(By(o(v), {
13061
13061
  text_spacing: o(g),
13062
13062
  item_spacing: o(_)
13063
13063
  }))), w = /* @__PURE__ */ m(() => {
@@ -13074,7 +13074,7 @@ function Vy(r, e) {
13074
13074
  "padding-top": `${o(p).margin.top}px`,
13075
13075
  "padding-bottom": `${o(p).margin.bottom}px`
13076
13076
  }) : "";
13077
- }), b = /* @__PURE__ */ m(() => {
13077
+ }), y = /* @__PURE__ */ m(() => {
13078
13078
  if (!o(p)) return "";
13079
13079
  const L = $r(o(v), o(p).color);
13080
13080
  return nr({ width: "100%", height: "100%", background: L });
@@ -13084,7 +13084,7 @@ function Vy(r, e) {
13084
13084
  var z = (L) => {
13085
13085
  var F = Uy(), A = T(F);
13086
13086
  K(() => {
13087
- Te(F, o(w)), Te(A, o(b));
13087
+ Te(F, o(w)), Te(A, o(y));
13088
13088
  }), P(L, F);
13089
13089
  };
13090
13090
  Y(I, (L) => {
@@ -13105,16 +13105,16 @@ function Vy(r, e) {
13105
13105
  });
13106
13106
  }
13107
13107
  K(() => {
13108
- Te(S, y), Te(E, h), Te(C, o(k));
13108
+ Te(S, b), Te(E, h), Te(C, o(k));
13109
13109
  }), P(r, x), he(), a();
13110
13110
  }
13111
13111
  var Wy = /* @__PURE__ */ V("<div></div>");
13112
13112
  function Hy(r, e) {
13113
13113
  me(e, !0);
13114
- const t = () => pe(u, "$selectedState", s), n = () => pe(p, "$selectedPackageId", s), a = () => pe(d, "$packageInfo", s), i = () => pe(g, "$variables", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Fn(), { selectedPackageId: p } = Ur(), g = Mn(), _ = /* @__PURE__ */ m(() => ({
13114
+ const t = () => pe(u, "$selectedState", s), n = () => pe(p, "$selectedPackageId", s), a = () => pe(d, "$packageInfo", s), i = () => pe(g, "$variables", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Mn(), { selectedPackageId: p } = Ur(), g = zn(), _ = /* @__PURE__ */ m(() => ({
13115
13115
  ...c,
13116
13116
  ...yt(t(), e.overrides)
13117
- })), f = /* @__PURE__ */ m(() => o(_).items), v = /* @__PURE__ */ m(() => o(_).text_spacing), y = /* @__PURE__ */ m(() => o(_).item_spacing), h = /* @__PURE__ */ m(() => o(_).column_gutter), k = /* @__PURE__ */ m(() => o(_).icon_alignment), w = /* @__PURE__ */ m(() => o(_).size), b = /* @__PURE__ */ m(() => o(_).padding), x = /* @__PURE__ */ m(() => o(_).margin), S = /* @__PURE__ */ m(() => rf(o(_), [
13117
+ })), f = /* @__PURE__ */ m(() => o(_).items), v = /* @__PURE__ */ m(() => o(_).text_spacing), b = /* @__PURE__ */ m(() => o(_).item_spacing), h = /* @__PURE__ */ m(() => o(_).column_gutter), k = /* @__PURE__ */ m(() => o(_).icon_alignment), w = /* @__PURE__ */ m(() => o(_).size), y = /* @__PURE__ */ m(() => o(_).padding), x = /* @__PURE__ */ m(() => o(_).margin), S = /* @__PURE__ */ m(() => rf(o(_), [
13118
13118
  "items",
13119
13119
  "text_spacing",
13120
13120
  "item_spacing",
@@ -13123,7 +13123,7 @@ function Hy(r, e) {
13123
13123
  "size",
13124
13124
  "padding",
13125
13125
  "margin"
13126
- ])), I = /* @__PURE__ */ m(() => qn(
13126
+ ])), I = /* @__PURE__ */ m(() => Fn(
13127
13127
  {
13128
13128
  selectedPackageId: n(),
13129
13129
  packageInfo: a(),
@@ -13134,11 +13134,11 @@ function Hy(r, e) {
13134
13134
  )), z = /* @__PURE__ */ m(() => nr(Ly({
13135
13135
  items: o(f),
13136
13136
  text_spacing: o(v),
13137
- item_spacing: o(y),
13137
+ item_spacing: o(b),
13138
13138
  column_gutter: o(h),
13139
13139
  icon_alignment: o(k),
13140
13140
  size: o(w),
13141
- padding: o(b),
13141
+ padding: o(y),
13142
13142
  margin: o(x),
13143
13143
  ...o(S)
13144
13144
  })));
@@ -13152,7 +13152,7 @@ function Hy(r, e) {
13152
13152
  return o(v);
13153
13153
  },
13154
13154
  get item_spacing() {
13155
- return o(y);
13155
+ return o(b);
13156
13156
  }
13157
13157
  }));
13158
13158
  }), K(() => Te(O, o(z))), P(B, O);
@@ -13350,10 +13350,10 @@ const tb = {
13350
13350
  };
13351
13351
  function nb(r, e) {
13352
13352
  me(e, !0), Pe(r, tb);
13353
- const t = () => pe(u, "$selectedState", s), n = () => pe(p, "$selectedPackageId", s), a = () => pe(d, "$packageInfo", s), i = () => pe(g, "$variables", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Fn(), { selectedPackageId: p } = Ur(), g = Mn(), _ = /* @__PURE__ */ m(() => ({
13353
+ const t = () => pe(u, "$selectedState", s), n = () => pe(p, "$selectedPackageId", s), a = () => pe(d, "$packageInfo", s), i = () => pe(g, "$variables", s), [s, l] = He(), c = /* @__PURE__ */ br(e, ["$$slots", "$$events", "$$legacy"]), u = vt(), d = Mn(), { selectedPackageId: p } = Ur(), g = zn(), _ = /* @__PURE__ */ m(() => ({
13354
13354
  ...c,
13355
13355
  ...yt(t(), e.overrides)
13356
- })), f = /* @__PURE__ */ m(() => o(_).id), v = /* @__PURE__ */ m(() => o(_).source), y = /* @__PURE__ */ m(() => o(_).fallback_source), h = /* @__PURE__ */ m(() => o(_).size), k = /* @__PURE__ */ m(() => o(_).mask_shape), w = /* @__PURE__ */ m(() => o(_).fit_mode), b = /* @__PURE__ */ m(() => o(_).padding), x = /* @__PURE__ */ m(() => o(_).margin), S = /* @__PURE__ */ m(() => o(_).color_overlay), I = /* @__PURE__ */ m(() => o(_).border), z = /* @__PURE__ */ m(() => o(_).shadow), E = /* @__PURE__ */ m(() => o(_).auto_play), M = /* @__PURE__ */ m(() => o(_).loop), C = /* @__PURE__ */ m(() => o(_).mute_audio), B = /* @__PURE__ */ m(() => o(_).show_controls), O = et(), q = /* @__PURE__ */ m(O), L = /* @__PURE__ */ m(() => o(v) ? Wr(o(q), o(v)) : null), F = /* @__PURE__ */ m(() => o(y) ? Wr(o(q), o(y)) : null);
13356
+ })), f = /* @__PURE__ */ m(() => o(_).id), v = /* @__PURE__ */ m(() => o(_).source), b = /* @__PURE__ */ m(() => o(_).fallback_source), h = /* @__PURE__ */ m(() => o(_).size), k = /* @__PURE__ */ m(() => o(_).mask_shape), w = /* @__PURE__ */ m(() => o(_).fit_mode), y = /* @__PURE__ */ m(() => o(_).padding), x = /* @__PURE__ */ m(() => o(_).margin), S = /* @__PURE__ */ m(() => o(_).color_overlay), I = /* @__PURE__ */ m(() => o(_).border), z = /* @__PURE__ */ m(() => o(_).shadow), E = /* @__PURE__ */ m(() => o(_).auto_play), M = /* @__PURE__ */ m(() => o(_).loop), C = /* @__PURE__ */ m(() => o(_).mute_audio), B = /* @__PURE__ */ m(() => o(_).show_controls), O = et(), q = /* @__PURE__ */ m(O), L = /* @__PURE__ */ m(() => o(v) ? Wr(o(q), o(v)) : null), F = /* @__PURE__ */ m(() => o(b) ? Wr(o(q), o(b)) : null);
13357
13357
  let A = /* @__PURE__ */ re(0), N = /* @__PURE__ */ re(tr({ height: 0, width: 0 })), W = /* @__PURE__ */ re(null), G = /* @__PURE__ */ re(!1), R = /* @__PURE__ */ re(!1), $ = /* @__PURE__ */ re(null);
13358
13358
  pr(() => {
13359
13359
  if (o(L)) {
@@ -13411,7 +13411,7 @@ function nb(r, e) {
13411
13411
  width: yr(o(h).width),
13412
13412
  height: `${o(ue)}px`,
13413
13413
  margin: vr(o(x)),
13414
- padding: vr(o(b)),
13414
+ padding: vr(o(y)),
13415
13415
  "line-height": 0,
13416
13416
  "flex-shrink": o(h).width.type === "fixed" ? 0 : 1
13417
13417
  }));
@@ -13431,7 +13431,7 @@ function nb(r, e) {
13431
13431
  width: "100%",
13432
13432
  height: "100%",
13433
13433
  overflow: "hidden",
13434
- "border-radius": zn(o(k)),
13434
+ "border-radius": jn(o(k)),
13435
13435
  "clip-path": ((ne = o(k)) == null ? void 0 : ne.type) === "concave" || ((_e = o(k)) == null ? void 0 : _e.type) === "convex" ? `url(#${o(f)}-path)` : "none"
13436
13436
  });
13437
13437
  }), ze = /* @__PURE__ */ m(() => o(S) && Wr(o(q), o(S))), je = /* @__PURE__ */ m(() => o(G) || !o(L));
@@ -13480,8 +13480,8 @@ function nb(r, e) {
13480
13480
  Ue(() => {
13481
13481
  j(R, !1);
13482
13482
  }), Ye(), ne.volume = 1;
13483
- const On = ne.play();
13484
- On !== void 0 && On.catch(() => {
13483
+ const Ln = ne.play();
13484
+ Ln !== void 0 && Ln.catch(() => {
13485
13485
  Ie || !ne.isConnected || (Ue(() => {
13486
13486
  j(R, !0);
13487
13487
  }), Ye());
@@ -13519,7 +13519,7 @@ function nb(r, e) {
13519
13519
  Ie = !0, _r(), Le();
13520
13520
  };
13521
13521
  });
13522
- const Se = /* @__PURE__ */ m(() => qn(
13522
+ const Se = /* @__PURE__ */ m(() => Fn(
13523
13523
  {
13524
13524
  selectedPackageId: n(),
13525
13525
  packageInfo: a(),
@@ -13605,7 +13605,7 @@ function nb(r, e) {
13605
13605
  }
13606
13606
  var Xt = H(tt);
13607
13607
  {
13608
- var On = (rr) => {
13608
+ var Ln = (rr) => {
13609
13609
  {
13610
13610
  let fr = /* @__PURE__ */ m(() => `${o(f)}-border-color`), dn = /* @__PURE__ */ m(() => Wr(o(q), o(I).color));
13611
13611
  vi(rr, {
@@ -13619,7 +13619,7 @@ function nb(r, e) {
13619
13619
  }
13620
13620
  };
13621
13621
  Y(Xt, (rr) => {
13622
- o(I) && o(I).width > 0 && rr(On);
13622
+ o(I) && o(I).width > 0 && rr(Ln);
13623
13623
  });
13624
13624
  }
13625
13625
  var Mo = H(se);
@@ -14178,8 +14178,8 @@ function Yp(r, e) {
14178
14178
  ].join("; "));
14179
14179
  var p = Ab();
14180
14180
  p.__click = function(...v) {
14181
- var y;
14182
- (y = e.onclick) == null || y.apply(this, v);
14181
+ var b;
14182
+ (b = e.onclick) == null || b.apply(this, v);
14183
14183
  };
14184
14184
  var g = T(p);
14185
14185
  {
@@ -14188,9 +14188,9 @@ function Yp(r, e) {
14188
14188
  }, f = (v) => {
14189
14189
  sb(v, {
14190
14190
  size: "body-base",
14191
- children: (y, h) => {
14191
+ children: (b, h) => {
14192
14192
  var k = Ee(), w = ie(k);
14193
- hr(w, () => e.children ?? $e), P(y, k);
14193
+ hr(w, () => e.children ?? $e), P(b, k);
14194
14194
  },
14195
14195
  $$slots: { default: !0 }
14196
14196
  });
@@ -14333,15 +14333,15 @@ function Jb(r, e) {
14333
14333
  children: (d, p) => {
14334
14334
  var g = Kb(), _ = ie(g);
14335
14335
  Rb(_, {
14336
- children: (y, h) => {
14336
+ children: (b, h) => {
14337
14337
  var k = Gb(), w = ie(k);
14338
14338
  {
14339
- var b = (I) => {
14339
+ var y = (I) => {
14340
14340
  var z = Hb(), E = T(z);
14341
14341
  hr(E, n), K(() => lr(z, 1, `rcb-modal-message-icon ${o(s) ? "large" : "small"}`, "svelte-1ldqsgm")), P(I, z);
14342
14342
  };
14343
14343
  Y(w, (I) => {
14344
- n() && I(b);
14344
+ n() && I(y);
14345
14345
  });
14346
14346
  }
14347
14347
  var x = H(w, 2);
@@ -14361,24 +14361,24 @@ function Jb(r, e) {
14361
14361
  t() && I(S);
14362
14362
  });
14363
14363
  }
14364
- P(y, k);
14364
+ P(b, k);
14365
14365
  },
14366
14366
  $$slots: { default: !0 }
14367
14367
  });
14368
14368
  var f = H(_, 2);
14369
14369
  {
14370
- var v = (y) => {
14371
- Ae(y, {
14370
+ var v = (b) => {
14371
+ Ae(b, {
14372
14372
  size: "body-small",
14373
14373
  children: (h, k) => {
14374
- var w = Ee(), b = ie(w);
14375
- hr(b, () => e.message ?? $e), P(h, w);
14374
+ var w = Ee(), y = ie(w);
14375
+ hr(y, () => e.message ?? $e), P(h, w);
14376
14376
  },
14377
14377
  $$slots: { default: !0 }
14378
14378
  });
14379
14379
  };
14380
- Y(f, (y) => {
14381
- e.message && y(v);
14380
+ Y(f, (b) => {
14381
+ e.message && b(v);
14382
14382
  });
14383
14383
  }
14384
14384
  P(d, g);
@@ -14418,8 +14418,8 @@ function tk(r, e) {
14418
14418
  Ae(_, {
14419
14419
  size: "heading-md",
14420
14420
  children: (f, v) => {
14421
- var y = Me();
14422
- K(() => ye(y, t())), P(f, y);
14421
+ var b = Me();
14422
+ K(() => ye(b, t())), P(f, b);
14423
14423
  },
14424
14424
  $$slots: { default: !0 }
14425
14425
  });
@@ -14433,7 +14433,7 @@ function tk(r, e) {
14433
14433
  $$slots: { default: !0 }
14434
14434
  }), K(() => ke(a, "data-has-title", !!t())), P(r, a);
14435
14435
  }
14436
- const Fo = "rcb-ui-events-tracker", Nn = "branding";
14436
+ const Fo = "rcb-ui-events-tracker", On = "branding";
14437
14437
  var nk = /* @__PURE__ */ V("<div><div><!></div> <div><!></div></div>");
14438
14438
  const ak = {
14439
14439
  hash: "svelte-clabfx",
@@ -14452,14 +14452,14 @@ function Yl(r, e) {
14452
14452
  me(e, !0), Pe(r, ak);
14453
14453
  const t = () => pe(d, "$brandingAppearanceStore", n), [n, a] = He();
14454
14454
  let i = J(e, "title", 3, null), s = J(e, "closeButtonTitle", 3, "Go back to app"), l = J(e, "icon", 3, null), c = J(e, "message", 3, null), u = J(e, "fullWidth", 3, !1);
14455
- const d = Ge(Nn), p = /* @__PURE__ */ m(() => t() ?? void 0);
14455
+ const d = Ge(On), p = /* @__PURE__ */ m(() => t() ?? void 0);
14456
14456
  function g() {
14457
14457
  e.onDismiss();
14458
14458
  }
14459
14459
  var _ = nk();
14460
14460
  let f;
14461
14461
  var v = T(_);
14462
- let y;
14462
+ let b;
14463
14463
  var h = T(v);
14464
14464
  Nb(h, {
14465
14465
  children: (x, S) => {
@@ -14497,8 +14497,8 @@ function Yl(r, e) {
14497
14497
  });
14498
14498
  var k = H(v, 2);
14499
14499
  let w;
14500
- var b = T(k);
14501
- zb(b, {
14500
+ var y = T(k);
14501
+ zb(y, {
14502
14502
  children: (x, S) => {
14503
14503
  Yp(x, {
14504
14504
  onclick: g,
@@ -14515,7 +14515,7 @@ function Yl(r, e) {
14515
14515
  },
14516
14516
  $$slots: { default: !0 }
14517
14517
  }), K(() => {
14518
- f = lr(_, 1, "message-layout svelte-clabfx", null, f, { "message-layout-full-width": u() }), y = lr(v, 1, "message-layout-content svelte-clabfx", null, y, { "message-layout-content-full-width": u() }), w = lr(k, 1, "message-layout-footer svelte-clabfx", null, w, { "message-layout-footer-full-width": u() });
14518
+ f = lr(_, 1, "message-layout svelte-clabfx", null, f, { "message-layout-full-width": u() }), b = lr(v, 1, "message-layout-content svelte-clabfx", null, b, { "message-layout-content-full-width": u() }), w = lr(k, 1, "message-layout-footer svelte-clabfx", null, w, { "message-layout-footer-full-width": u() });
14519
14519
  }), P(r, _), he(), a();
14520
14520
  }
14521
14521
  function lt(r, e) {
@@ -14607,9 +14607,9 @@ const _k = {
14607
14607
  };
14608
14608
  function gk(r, e) {
14609
14609
  me(e, !1), Pe(r, _k);
14610
- const t = () => pe(b, "$translator", n), [n, a] = He(), i = /* @__PURE__ */ ar(), s = /* @__PURE__ */ ar(), l = /* @__PURE__ */ ar(), c = /* @__PURE__ */ ar(), u = /* @__PURE__ */ ar(), d = /* @__PURE__ */ ar(), p = /* @__PURE__ */ ar(), g = /* @__PURE__ */ ar(), _ = /* @__PURE__ */ ar(), f = /* @__PURE__ */ ar(), v = /* @__PURE__ */ ar(), y = /* @__PURE__ */ ar();
14610
+ const t = () => pe(y, "$translator", n), [n, a] = He(), i = /* @__PURE__ */ ar(), s = /* @__PURE__ */ ar(), l = /* @__PURE__ */ ar(), c = /* @__PURE__ */ ar(), u = /* @__PURE__ */ ar(), d = /* @__PURE__ */ ar(), p = /* @__PURE__ */ ar(), g = /* @__PURE__ */ ar(), _ = /* @__PURE__ */ ar(), f = /* @__PURE__ */ ar(), v = /* @__PURE__ */ ar(), b = /* @__PURE__ */ ar();
14611
14611
  let h = J(e, "brandingInfo", 8, null), k = J(e, "purchaseOption", 8, null), w = J(e, "termsAndConditionsUrl", 8, null);
14612
- const b = Ge(gr);
14612
+ const y = Ge(gr);
14613
14613
  function x(R) {
14614
14614
  return R != null && "base" in R;
14615
14615
  }
@@ -14686,8 +14686,8 @@ function gk(r, e) {
14686
14686
  }), dr(() => (o(f), o(_)), () => {
14687
14687
  j(v, o(f) ?? o(_));
14688
14688
  }), dr(() => (o(i), t(), le), () => {
14689
- j(y, o(i) ? t().translate(le.PaymentEntryPageSubscriptionInfo) : null);
14690
- }), Cl(), An();
14689
+ j(b, o(i) ? t().translate(le.PaymentEntryPageSubscriptionInfo) : null);
14690
+ }), Cl(), qn();
14691
14691
  var q = pk(), L = T(q);
14692
14692
  {
14693
14693
  var F = (R) => {
@@ -14713,13 +14713,13 @@ function gk(r, e) {
14713
14713
  size: "caption-default",
14714
14714
  children: (de, te) => {
14715
14715
  var X = Me();
14716
- K(() => ye(X, o(y))), P(de, X);
14716
+ K(() => ye(X, o(b))), P(de, X);
14717
14717
  },
14718
14718
  $$slots: { default: !0 }
14719
14719
  }), P(R, $);
14720
14720
  };
14721
14721
  Y(A, (R) => {
14722
- o(y) && !o(f) && R(N);
14722
+ o(b) && !o(f) && R(N);
14723
14723
  });
14724
14724
  }
14725
14725
  var W = H(A, 2), G = T(W);
@@ -14768,7 +14768,7 @@ function hu(r) {
14768
14768
  for (let e = 0; e < r.length; e++)
14769
14769
  r[e] = Math.floor(Math.random() * 256);
14770
14770
  }
14771
- function ea() {
14771
+ function Cn() {
14772
14772
  const r = typeof crypto < "u" ? crypto : globalThis.crypto;
14773
14773
  if (r && r.randomUUID)
14774
14774
  return r.randomUUID();
@@ -14797,7 +14797,7 @@ class fk {
14797
14797
  Q(this, "id");
14798
14798
  Q(this, "timestampMs");
14799
14799
  Q(this, "data");
14800
- this.id = ea(), this.timestampMs = Date.now(), this.data = e;
14800
+ this.id = Cn(), this.timestampMs = Date.now(), this.data = e;
14801
14801
  }
14802
14802
  toJSON() {
14803
14803
  return Gp({
@@ -15037,7 +15037,7 @@ function Qp(r) {
15037
15037
  function xk(r, e) {
15038
15038
  var g, _;
15039
15039
  me(e, !0);
15040
- const t = () => pe(l, "$brandingAppearanceStore", a), n = () => pe(s, "$translator", a), [a, i] = He(), s = Ge(gr), l = Ge(Nn), c = /* @__PURE__ */ m(() => t() ?? void 0), u = /* @__PURE__ */ m(() => e.priceBreakdown ? n().formatPrice(e.priceBreakdown.totalAmountInMicros, e.priceBreakdown.currency) : null), d = (_ = (g = e.subscriptionOption) == null ? void 0 : g.trial) == null ? void 0 : _.period, p = /* @__PURE__ */ m(() => d ? n().translatePeriod(d.number, d.unit) : null);
15040
+ const t = () => pe(l, "$brandingAppearanceStore", a), n = () => pe(s, "$translator", a), [a, i] = He(), s = Ge(gr), l = Ge(On), c = /* @__PURE__ */ m(() => t() ?? void 0), u = /* @__PURE__ */ m(() => e.priceBreakdown ? n().formatPrice(e.priceBreakdown.totalAmountInMicros, e.priceBreakdown.currency) : null), d = (_ = (g = e.subscriptionOption) == null ? void 0 : g.trial) == null ? void 0 : _.period, p = /* @__PURE__ */ m(() => d ? n().translatePeriod(d.number, d.unit) : null);
15041
15041
  Yp(r, {
15042
15042
  get disabled() {
15043
15043
  return e.disabled;
@@ -15047,12 +15047,12 @@ function xk(r, e) {
15047
15047
  return o(c);
15048
15048
  },
15049
15049
  children: (f, v) => {
15050
- var y = Ee(), h = ie(y);
15050
+ var b = Ee(), h = ie(b);
15051
15051
  {
15052
- var k = (b) => {
15052
+ var k = (y) => {
15053
15053
  {
15054
15054
  let x = /* @__PURE__ */ m(() => ({ trialPeriodLabel: o(p) }));
15055
- lt(b, {
15055
+ lt(y, {
15056
15056
  get key() {
15057
15057
  return le.PaymentEntryPageButtonStartTrial;
15058
15058
  },
@@ -15061,7 +15061,7 @@ function xk(r, e) {
15061
15061
  }
15062
15062
  });
15063
15063
  }
15064
- }, w = (b) => {
15064
+ }, w = (y) => {
15065
15065
  var x = Ee(), S = ie(x);
15066
15066
  {
15067
15067
  var I = (E) => {
@@ -15091,14 +15091,14 @@ function xk(r, e) {
15091
15091
  !0
15092
15092
  );
15093
15093
  }
15094
- P(b, x);
15094
+ P(y, x);
15095
15095
  };
15096
- Y(h, (b) => {
15096
+ Y(h, (y) => {
15097
15097
  var x;
15098
- (x = e.subscriptionOption) != null && x.trial ? b(k) : b(w, !1);
15098
+ (x = e.subscriptionOption) != null && x.trial ? y(k) : y(w, !1);
15099
15099
  });
15100
15100
  }
15101
- P(f, y);
15101
+ P(f, b);
15102
15102
  },
15103
15103
  $$slots: { default: !0 }
15104
15104
  }), he(), i();
@@ -15663,7 +15663,7 @@ const Gk = (r, e, t, n = Yi) => {
15663
15663
  // 48px
15664
15664
  }
15665
15665
  };
15666
- class Cn {
15666
+ class Tn {
15667
15667
  constructor(e) {
15668
15668
  Q(this, "brandingAppearance");
15669
15669
  e ? this.brandingAppearance = e : this.brandingAppearance = void 0;
@@ -15743,7 +15743,7 @@ const zt = class zt {
15743
15743
  const { stripe: c } = await this.getStripeClient(
15744
15744
  e,
15745
15745
  t
15746
- ), u = new Cn(a == null ? void 0 : a.appearance), d = u.shape, p = u.formColors, g = u.textStyles, _ = sl.bodyBase[l].fontSize || sl.bodyBase.mobile.fontSize;
15746
+ ), u = new Tn(a == null ? void 0 : a.appearance), d = u.shape, p = u.formColors, g = u.textStyles, _ = sl.bodyBase[l].fontSize || sl.bodyBase.mobile.fontSize;
15747
15747
  let f;
15748
15748
  try {
15749
15749
  f = c.elements({
@@ -15991,7 +15991,7 @@ const zt = class zt {
15991
15991
  ) : void 0, g = zt.microsToMinimumAmountPrice(
15992
15992
  t.totalAmountInMicros,
15993
15993
  t.currency
15994
- ), _ = n.trial, f = (k = n.trial) == null ? void 0 : k.period, v = n.base.period, y = _ && f ? zt.nextDateForPeriod(f, /* @__PURE__ */ new Date()) : void 0, h = v ? zt.applePayPeriod(v) : {};
15994
+ ), _ = n.trial, f = (k = n.trial) == null ? void 0 : k.period, v = n.base.period, b = _ && f ? zt.nextDateForPeriod(f, /* @__PURE__ */ new Date()) : void 0, h = v ? zt.applePayPeriod(v) : {};
15995
15995
  return {
15996
15996
  layout: d,
15997
15997
  ...p ? { lineItems: p } : {},
@@ -16010,7 +16010,7 @@ const zt = class zt {
16010
16010
  regularBilling: {
16011
16011
  label: e.title,
16012
16012
  amount: g,
16013
- recurringPaymentStartDate: y,
16013
+ recurringPaymentStartDate: b,
16014
16014
  ...h
16015
16015
  }
16016
16016
  }
@@ -16101,13 +16101,11 @@ function s_(r, e) {
16101
16101
  me(e, !0);
16102
16102
  const t = () => pe(s, "$translator", n), [n, a] = He(), i = J(e, "hideCheckoutSeparator", 3, !1), s = Ge(gr);
16103
16103
  let l = null, c = /* @__PURE__ */ re(!1);
16104
- const u = `express-checkout-element-${(/* @__PURE__ */ new Date()).getTime()}`, d = async () => {
16104
+ const u = `express-checkout-element-${Cn()}`, d = async () => {
16105
16105
  e.onCancel && e.onCancel();
16106
16106
  }, p = async (k) => {
16107
- const w = {
16108
- ...e.expressCheckoutOptions ? e.expressCheckoutOptions : {}
16109
- };
16110
- e.onClick && e.onClick(k), k.resolve(w);
16107
+ const { business: w, ...y } = e.expressCheckoutOptions ?? {};
16108
+ e.onClick && e.onClick(k), k.resolve(y);
16111
16109
  }, g = async (k) => {
16112
16110
  await e.onError(ir.mapInitializationError(k.error));
16113
16111
  }, _ = async (k) => {
@@ -16125,10 +16123,10 @@ function s_(r, e) {
16125
16123
  }), Kt(() => {
16126
16124
  l == null || l.destroy(), l = null;
16127
16125
  });
16128
- var v = Ee(), y = ie(v);
16126
+ var v = Ee(), b = ie(v);
16129
16127
  {
16130
16128
  var h = (k) => {
16131
- var w = uw(), b = ie(w), x = H(b, 2);
16129
+ var w = uw(), y = ie(w), x = H(y, 2);
16132
16130
  {
16133
16131
  var S = (I) => {
16134
16132
  {
@@ -16144,9 +16142,9 @@ function s_(r, e) {
16144
16142
  i() || I(S);
16145
16143
  });
16146
16144
  }
16147
- K(() => ke(b, "id", u)), P(k, w);
16145
+ K(() => ke(y, "id", u)), P(k, w);
16148
16146
  };
16149
- Y(y, (k) => {
16147
+ Y(b, (k) => {
16150
16148
  o(c) || k(h);
16151
16149
  });
16152
16150
  }
@@ -16183,7 +16181,7 @@ function _w(r, e) {
16183
16181
  !0
16184
16182
  );
16185
16183
  }
16186
- function y() {
16184
+ function b() {
16187
16185
  clearTimeout(o(f)), j(
16188
16186
  f,
16189
16187
  setTimeout(
@@ -16201,7 +16199,7 @@ function _w(r, e) {
16201
16199
  o(d) || (j(d, !0), o(d) && o(u) && o(p) && e.onLoadingComplete());
16202
16200
  }, w = async () => {
16203
16201
  o(p) || (j(p, !0), o(d) && o(u) && o(p) && e.onLoadingComplete());
16204
- }, b = async () => {
16202
+ }, y = async () => {
16205
16203
  o(u) || (j(u, !0), o(d) && o(u) && o(p) && e.onLoadingComplete());
16206
16204
  }, x = async (M) => {
16207
16205
  e.onPaymentInfoChange({
@@ -16211,8 +16209,8 @@ function _w(r, e) {
16211
16209
  }, S = async (M) => {
16212
16210
  e.onEmailChange(M.complete, M.value.email);
16213
16211
  };
16214
- xr(() => (window.addEventListener("resize", y), () => {
16215
- window.removeEventListener("resize", y);
16212
+ xr(() => (window.addEventListener("resize", b), () => {
16213
+ window.removeEventListener("resize", b);
16216
16214
  })), xr(async () => {
16217
16215
  v(), !i() && (s() || !e.stripeAccountId || !e.publishableApiKey || !e.elementsConfiguration || await ir.initializeStripe(e.stripeAccountId, e.publishableApiKey, e.elementsConfiguration, e.brandingInfo, c, o(g), o(_)).then(({ stripe: M, elements: C }) => {
16218
16216
  i(M), s(C);
@@ -16266,7 +16264,7 @@ function _w(r, e) {
16266
16264
  get brandingInfo() {
16267
16265
  return e.brandingInfo;
16268
16266
  },
16269
- onReady: b,
16267
+ onReady: y,
16270
16268
  onChange: x,
16271
16269
  onError: h
16272
16270
  }), P(M, C);
@@ -16516,16 +16514,16 @@ function Tw(r, e) {
16516
16514
  const t = () => pe(c, "$translator", n), [n, a] = He();
16517
16515
  let i = J(e, "onSessionPricingUpdated", 3, void 0), s = J(e, "onProcessingStateChange", 3, void 0);
16518
16516
  const l = Ge(Fo), c = Ge(gr), u = /* @__PURE__ */ m(() => "base" in e.purchaseOption ? e.purchaseOption : null), d = /* @__PURE__ */ m(() => mo(e.productDetails, e.purchaseOption));
16519
- let p = /* @__PURE__ */ re(tr(((Ha = e.defaultPriceBreakdown) == null ? void 0 : Ha.taxCalculationStatus) ?? ((Ya = e.brandingInfo) != null && Ya.gateway_tax_collection_enabled ? "unavailable" : "disabled"))), g = /* @__PURE__ */ re(tr(((zo = e.defaultPriceBreakdown) == null ? void 0 : zo.originalAmountInMicros) ?? o(d).amountMicros)), _ = /* @__PURE__ */ re(tr(((jo = e.defaultPriceBreakdown) == null ? void 0 : jo.taxAmountInMicros) ?? null)), f = /* @__PURE__ */ re(tr(((No = e.defaultPriceBreakdown) == null ? void 0 : No.taxBreakdown) ?? null)), v = /* @__PURE__ */ re(tr(((rr = e.defaultPriceBreakdown) == null ? void 0 : rr.totalExcludingTaxInMicros) ?? o(d).amountMicros)), y = /* @__PURE__ */ re(tr(((fr = e.defaultPriceBreakdown) == null ? void 0 : fr.totalAmountInMicros) ?? o(d).amountMicros)), h = /* @__PURE__ */ re(tr(((dn = e.defaultPriceBreakdown) == null ? void 0 : dn.appliedDiscounts) ?? [])), k = /* @__PURE__ */ m(() => ({
16517
+ let p = /* @__PURE__ */ re(tr(((Ha = e.defaultPriceBreakdown) == null ? void 0 : Ha.taxCalculationStatus) ?? ((Ya = e.brandingInfo) != null && Ya.gateway_tax_collection_enabled ? "unavailable" : "disabled"))), g = /* @__PURE__ */ re(tr(((zo = e.defaultPriceBreakdown) == null ? void 0 : zo.originalAmountInMicros) ?? o(d).amountMicros)), _ = /* @__PURE__ */ re(tr(((jo = e.defaultPriceBreakdown) == null ? void 0 : jo.taxAmountInMicros) ?? null)), f = /* @__PURE__ */ re(tr(((No = e.defaultPriceBreakdown) == null ? void 0 : No.taxBreakdown) ?? null)), v = /* @__PURE__ */ re(tr(((rr = e.defaultPriceBreakdown) == null ? void 0 : rr.totalExcludingTaxInMicros) ?? o(d).amountMicros)), b = /* @__PURE__ */ re(tr(((fr = e.defaultPriceBreakdown) == null ? void 0 : fr.totalAmountInMicros) ?? o(d).amountMicros)), h = /* @__PURE__ */ re(tr(((dn = e.defaultPriceBreakdown) == null ? void 0 : dn.appliedDiscounts) ?? [])), k = /* @__PURE__ */ m(() => ({
16520
16518
  currency: o(d).currency,
16521
16519
  originalAmountInMicros: o(g),
16522
- totalAmountInMicros: o(y),
16520
+ totalAmountInMicros: o(b),
16523
16521
  totalExcludingTaxInMicros: o(v),
16524
16522
  taxCalculationStatus: o(p),
16525
16523
  taxAmountInMicros: o(_),
16526
16524
  taxBreakdown: o(f),
16527
16525
  appliedDiscounts: o(h)
16528
- })), w = /* @__PURE__ */ re(tr(e.gatewayParams.elements_configuration)), b = /* @__PURE__ */ re(null), x = /* @__PURE__ */ re(null), S = /* @__PURE__ */ re(null), I = /* @__PURE__ */ re(tr(e.customerEmail ?? void 0)), z = /* @__PURE__ */ re(tr(!!e.customerEmail)), E = /* @__PURE__ */ re(!0), M = /* @__PURE__ */ re(!1), C = /* @__PURE__ */ re(void 0), B = /* @__PURE__ */ re(void 0), O = /* @__PURE__ */ re(void 0), q = /* @__PURE__ */ re(!1), L = /* @__PURE__ */ re(null), F = /* @__PURE__ */ m(() => o(E) || o(q) ? "loading" : o(B) ? "error" : "form"), A = /* @__PURE__ */ re("unavailable"), N = /* @__PURE__ */ m(() => !o(q) && o(M) && o(z) && (o(p) === "disabled" || o(p) === "calculated" || o(p) === "miss-match")), W = /* @__PURE__ */ m(() => Ql({
16526
+ })), w = /* @__PURE__ */ re(tr(e.gatewayParams.elements_configuration)), y = /* @__PURE__ */ re(null), x = /* @__PURE__ */ re(null), S = /* @__PURE__ */ re(null), I = /* @__PURE__ */ re(tr(e.customerEmail ?? void 0)), z = /* @__PURE__ */ re(tr(!!e.customerEmail)), E = /* @__PURE__ */ re(!0), M = /* @__PURE__ */ re(!1), C = /* @__PURE__ */ re(void 0), B = /* @__PURE__ */ re(void 0), O = /* @__PURE__ */ re(void 0), q = /* @__PURE__ */ re(!1), L = /* @__PURE__ */ re(null), F = /* @__PURE__ */ m(() => o(E) || o(q) ? "loading" : o(B) ? "error" : "form"), A = /* @__PURE__ */ re("unavailable"), N = /* @__PURE__ */ m(() => !o(q) && o(M) && o(z) && (o(p) === "disabled" || o(p) === "calculated" || o(p) === "miss-match")), W = /* @__PURE__ */ m(() => Ql({
16529
16527
  priceBreakdown: o(k),
16530
16528
  productDetails: e.productDetails,
16531
16529
  purchaseOption: e.purchaseOption,
@@ -16535,10 +16533,10 @@ function Tw(r, e) {
16535
16533
  e.onPriceBreakdownUpdated(o(k));
16536
16534
  });
16537
16535
  function R(ae) {
16538
- j(p, ae.taxCalculationStatus, !0), j(g, ae.originalAmountInMicros ?? o(d).amountMicros, !0), j(_, ae.taxAmountInMicros, !0), j(f, ae.taxBreakdown, !0), j(v, ae.totalExcludingTaxInMicros, !0), j(y, ae.totalAmountInMicros, !0), j(h, ae.appliedDiscounts ?? [], !0);
16536
+ j(p, ae.taxCalculationStatus, !0), j(g, ae.originalAmountInMicros ?? o(d).amountMicros, !0), j(_, ae.taxAmountInMicros, !0), j(f, ae.taxBreakdown, !0), j(v, ae.totalExcludingTaxInMicros, !0), j(b, ae.totalAmountInMicros, !0), j(h, ae.appliedDiscounts ?? [], !0);
16539
16537
  }
16540
16538
  pr(() => {
16541
- e.defaultPriceBreakdown || (j(g, o(d).amountMicros, !0), j(_, null), j(f, null), j(v, o(d).amountMicros, !0), j(y, o(d).amountMicros, !0), j(h, [], !0));
16539
+ e.defaultPriceBreakdown || (j(g, o(d).amountMicros, !0), j(_, null), j(f, null), j(v, o(d).amountMicros, !0), j(b, o(d).amountMicros, !0), j(h, [], !0));
16542
16540
  }), pr(() => {
16543
16541
  e.defaultPriceBreakdown && R(e.defaultPriceBreakdown);
16544
16542
  }), pr(() => {
@@ -16565,7 +16563,7 @@ function Tw(r, e) {
16565
16563
  }
16566
16564
  function ue(ae, qe, Ke) {
16567
16565
  const Rr = op(ae, qe);
16568
- i() ? i()(ae, Rr) : (R(Rr), j(w, ae.gateway_params.elements_configuration, !0)), j(b, Ke, !0);
16566
+ i() ? i()(ae, Rr) : (R(Rr), j(w, ae.gateway_params.elements_configuration, !0)), j(y, Ke, !0);
16569
16567
  }
16570
16568
  function de() {
16571
16569
  l.trackSDKEvent({
@@ -16598,7 +16596,7 @@ function Tw(r, e) {
16598
16596
  }
16599
16597
  async function oe() {
16600
16598
  return await we(async (ae) => {
16601
- const qe = o(y);
16599
+ const qe = o(b);
16602
16600
  let Ke;
16603
16601
  return await be().then(() => ae.throwIfAborted()).then(() => Ce(ae)).then((Rr) => {
16604
16602
  Ke = Rr;
@@ -16627,11 +16625,11 @@ function Tw(r, e) {
16627
16625
  customerDetails: qe,
16628
16626
  confirmationTokenId: Ke
16629
16627
  } = await ir.extractTaxCustomerDetails(o(S), o(x));
16630
- return ae == null || ae.throwIfAborted(), qe.postalCode === ((bt = o(b)) == null ? void 0 : bt.postalCode) && qe.countryCode === ((ua = o(b)) == null ? void 0 : ua.countryCode) || await $(qe, ae), Ke && o(C) !== "card" ? Ke : void 0;
16628
+ return ae == null || ae.throwIfAborted(), qe.postalCode === ((bt = o(y)) == null ? void 0 : bt.postalCode) && qe.countryCode === ((ua = o(y)) == null ? void 0 : ua.countryCode) || await $(qe, ae), Ke && o(C) !== "card" ? Ke : void 0;
16631
16629
  }
16632
16630
  function ze(ae) {
16633
16631
  return () => {
16634
- if (o(y) !== ae)
16632
+ if (o(b) !== ae)
16635
16633
  throw new Su();
16636
16634
  };
16637
16635
  }
@@ -16761,13 +16759,13 @@ function Tw(r, e) {
16761
16759
  });
16762
16760
  var tt = H(ur, 2);
16763
16761
  let Xt;
16764
- var On = T(tt);
16762
+ var Ln = T(tt);
16765
16763
  {
16766
16764
  let ae = /* @__PURE__ */ m(() => !o(N)), qe = /* @__PURE__ */ m(() => {
16767
16765
  var Ke;
16768
16766
  return (Ke = e.brandingInfo) != null && Ke.gateway_tax_collection_enabled ? o(k) : void 0;
16769
16767
  });
16770
- xk(On, {
16768
+ xk(Ln, {
16771
16769
  get disabled() {
16772
16770
  return o(ae);
16773
16771
  },
@@ -16779,7 +16777,7 @@ function Tw(r, e) {
16779
16777
  }
16780
16778
  });
16781
16779
  }
16782
- var Mo = H(On, 2), Zi = T(Mo);
16780
+ var Mo = H(Ln, 2), Zi = T(Mo);
16783
16781
  gk(Zi, {
16784
16782
  get brandingInfo() {
16785
16783
  return e.brandingInfo;
@@ -16901,7 +16899,7 @@ const Jw = {
16901
16899
  "chevron-up": Zo,
16902
16900
  "chevron-down": Zo
16903
16901
  };
16904
- function Tn(r, e) {
16902
+ function Dn(r, e) {
16905
16903
  me(e, !0);
16906
16904
  const t = Jw[e.name];
16907
16905
  let n = /* @__PURE__ */ re(tr({}));
@@ -16971,14 +16969,14 @@ function Ki(r, e) {
16971
16969
  const f = (k) => {
16972
16970
  {
16973
16971
  let w = /* @__PURE__ */ m(_);
16974
- Tn(k, {
16972
+ Dn(k, {
16975
16973
  get name() {
16976
16974
  return o(w);
16977
16975
  }
16978
16976
  });
16979
16977
  }
16980
16978
  }, v = (k) => {
16981
- var w = eP(), b = ie(w);
16979
+ var w = eP(), y = ie(w);
16982
16980
  {
16983
16981
  var x = (E) => {
16984
16982
  var M = Qw(), C = ie(M), B = T(C);
@@ -16988,11 +16986,11 @@ function Ki(r, e) {
16988
16986
  }
16989
16987
  }), P(E, M);
16990
16988
  };
16991
- Y(b, (E) => {
16989
+ Y(y, (E) => {
16992
16990
  o(c) && E(x);
16993
16991
  });
16994
16992
  }
16995
- var S = H(b), I = H(S);
16993
+ var S = H(y), I = H(S);
16996
16994
  {
16997
16995
  var z = (E) => {
16998
16996
  var M = $w(), C = ie(M);
@@ -17015,10 +17013,10 @@ function Ki(r, e) {
17015
17013
  }
17016
17014
  K((E) => ye(S, ` ${E ?? ""} `), [p]), P(k, w);
17017
17015
  };
17018
- let y = /* @__PURE__ */ m(d), h = /* @__PURE__ */ m(u);
17016
+ let b = /* @__PURE__ */ m(d), h = /* @__PURE__ */ m(u);
17019
17017
  Yl(r, {
17020
17018
  get title() {
17021
- return o(y);
17019
+ return o(b);
17022
17020
  },
17023
17021
  get onDismiss() {
17024
17022
  return e.onDismiss;
@@ -17047,7 +17045,7 @@ function Xi(r, e) {
17047
17045
  }
17048
17046
  xr(() => {
17049
17047
  d.trackSDKEvent(vk(Kr));
17050
- }), An();
17048
+ }), qn();
17051
17049
  {
17052
17050
  const g = (v) => {
17053
17051
  d_(v);
@@ -17089,7 +17087,7 @@ const uP = {
17089
17087
  function Iu(r, e) {
17090
17088
  me(e, !1), Pe(r, uP);
17091
17089
  const t = () => pe(x, "$translator", n), [n, a] = He(), i = /* @__PURE__ */ ar(), s = /* @__PURE__ */ ar(), l = /* @__PURE__ */ ar(), c = /* @__PURE__ */ ar(), u = /* @__PURE__ */ ar();
17092
- let d = J(e, "showDiscountCodeField", 8, !1), p = J(e, "discountCode", 12, ""), g = J(e, "appliedDiscountCode", 8, null), _ = J(e, "discountSuffix", 8, null), f = J(e, "discountCodeError", 8, null), v = J(e, "isUpdatingDiscountCode", 8, !1), y = J(e, "isDiscountCodeControlsEnabled", 8, !1), h = J(e, "onDiscountCodeChange", 8, void 0), k = J(e, "onApplyDiscountCode", 8, void 0), w = J(e, "onRemoveDiscountCode", 8, void 0), b = /* @__PURE__ */ ar(!1);
17090
+ let d = J(e, "showDiscountCodeField", 8, !1), p = J(e, "discountCode", 12, ""), g = J(e, "appliedDiscountCode", 8, null), _ = J(e, "discountSuffix", 8, null), f = J(e, "discountCodeError", 8, null), v = J(e, "isUpdatingDiscountCode", 8, !1), b = J(e, "isDiscountCodeControlsEnabled", 8, !1), h = J(e, "onDiscountCodeChange", 8, void 0), k = J(e, "onApplyDiscountCode", 8, void 0), w = J(e, "onRemoveDiscountCode", 8, void 0), y = /* @__PURE__ */ ar(!1);
17093
17091
  const x = Ge(gr), S = (O) => O.toUpperCase(), I = () => {
17094
17092
  var O;
17095
17093
  p(S(p())), (O = h()) == null || O(p());
@@ -17099,18 +17097,18 @@ function Iu(r, e) {
17099
17097
  };
17100
17098
  dr(() => We(p()), () => {
17101
17099
  j(i, p().trim().length > 0);
17102
- }), dr(() => (o(b), o(i)), () => {
17103
- j(s, o(b) || o(i));
17100
+ }), dr(() => (o(y), o(i)), () => {
17101
+ j(s, o(y) || o(i));
17104
17102
  }), dr(
17105
- () => (We(y()), We(v()), o(i)),
17103
+ () => (We(b()), We(v()), o(i)),
17106
17104
  () => {
17107
- j(l, y() && !v() && o(i));
17105
+ j(l, b() && !v() && o(i));
17108
17106
  }
17109
17107
  ), dr(() => We(f()), () => {
17110
17108
  j(c, f() === "Enter a discount code." ? f() : "Code can't be applied.");
17111
17109
  }), dr(() => We(g()), () => {
17112
17110
  j(u, g() ? S(g()) : null);
17113
- }), Cl(), An();
17111
+ }), Cl(), qn();
17114
17112
  var E = cP(), M = T(E);
17115
17113
  {
17116
17114
  var C = (O) => {
@@ -17123,7 +17121,7 @@ function Iu(r, e) {
17123
17121
  return (X = w()) == null ? void 0 : X();
17124
17122
  };
17125
17123
  var $ = T(R), ue = T($), de = H($, 2), te = T(de);
17126
- Tn(te, { name: "close" }), K(() => {
17124
+ Dn(te, { name: "close" }), K(() => {
17127
17125
  R.disabled = v(), ke(R, "aria-label", `Remove promo code ${o(u)}`), ye(ue, o(u));
17128
17126
  }), P(G, R);
17129
17127
  }, A = (G) => {
@@ -17131,7 +17129,7 @@ function Iu(r, e) {
17131
17129
  K(() => ye(ue, o(u))), P(G, R);
17132
17130
  };
17133
17131
  Y(L, (G) => {
17134
- y() ? G(F) : G(A, !1);
17132
+ b() ? G(F) : G(A, !1);
17135
17133
  });
17136
17134
  }
17137
17135
  var N = H(L, 2);
@@ -17164,7 +17162,7 @@ function Iu(r, e) {
17164
17162
  {
17165
17163
  var ee = (oe) => {
17166
17164
  var we = sP(), be = T(we), Ce = T(be);
17167
- Tn(Ce, { name: "warning" });
17165
+ Dn(Ce, { name: "warning" });
17168
17166
  var ze = H(be, 2), je = T(ze);
17169
17167
  K(() => ye(je, o(c))), P(oe, we);
17170
17168
  };
@@ -17175,17 +17173,17 @@ function Iu(r, e) {
17175
17173
  K(
17176
17174
  (oe, we) => {
17177
17175
  R = lr(G, 1, "rcb-discount-field svelte-56pxsq", null, R, {
17178
- "rcb-discount-field--focused": o(b),
17176
+ "rcb-discount-field--focused": o(y),
17179
17177
  "rcb-discount-field--floating": o(s)
17180
- }), ye(ue, oe), ke(de, "aria-invalid", !!f()), de.disabled = v() || !y(), X = lr(te, 1, "rcb-discount-action-button svelte-56pxsq", null, X, {
17178
+ }), ye(ue, oe), ke(de, "aria-invalid", !!f()), de.disabled = v() || !b(), X = lr(te, 1, "rcb-discount-action-button svelte-56pxsq", null, X, {
17181
17179
  "rcb-discount-action-button--enabled": o(l)
17182
17180
  }), te.disabled = we, ye(D, v() ? "Applying..." : "Apply");
17183
17181
  },
17184
17182
  [
17185
17183
  () => (t(), We(le), Ue(() => t().translate(le.DiscountInputLabel))),
17186
- () => (We(v()), We(y()), We(p()), Ue(() => v() || !y() || !p().trim()))
17184
+ () => (We(v()), We(b()), We(p()), Ue(() => v() || !b() || !p().trim()))
17187
17185
  ]
17188
- ), Ar("focus", de, () => j(b, !0)), Ar("blur", de, () => j(b, !1)), Df(de, p), P(A, N);
17186
+ ), Ar("focus", de, () => j(y, !0)), Ar("blur", de, () => j(y, !1)), Df(de, p), P(A, N);
17189
17187
  };
17190
17188
  Y(
17191
17189
  L,
@@ -17223,7 +17221,7 @@ function _P(r, e) {
17223
17221
  function u() {
17224
17222
  i(!i());
17225
17223
  }
17226
- An();
17224
+ qn();
17227
17225
  var d = dP(), p = T(d), g = T(p);
17228
17226
  Ae(g, {
17229
17227
  size: "label-default",
@@ -17270,18 +17268,18 @@ function _P(r, e) {
17270
17268
  var _ = H(g, 2), f = T(_);
17271
17269
  {
17272
17270
  var v = (x) => {
17273
- Tn(x, { name: "chevron-up" });
17274
- }, y = (x) => {
17275
- Tn(x, { name: "chevron-down" });
17271
+ Dn(x, { name: "chevron-up" });
17272
+ }, b = (x) => {
17273
+ Dn(x, { name: "chevron-down" });
17276
17274
  };
17277
17275
  Y(f, (x) => {
17278
- i() ? x(v) : x(y, !1);
17276
+ i() ? x(v) : x(b, !1);
17279
17277
  });
17280
17278
  }
17281
17279
  var h = H(p, 2);
17282
17280
  let k;
17283
- var w = T(h), b = T(w);
17284
- hr(b, () => l() ?? $e), K(() => {
17281
+ var w = T(h), y = T(w);
17282
+ hr(y, () => l() ?? $e), K(() => {
17285
17283
  ke(p, "aria-expanded", i()), k = lr(h, 1, "rcb-pricing-dropdown-content svelte-v5skdw", null, k, { collapsed: !i() });
17286
17284
  }), Ar("click", p, u), Ar("keydown", p, (x) => x.key === "Enter" || x.key === " " ? u() : null), P(r, d), he(), a();
17287
17285
  }
@@ -17321,7 +17319,7 @@ const EP = {
17321
17319
  function SP(r, e) {
17322
17320
  me(e, !0), Pe(r, EP);
17323
17321
  const t = () => pe(l, "$translator", n), [n, a] = He(), i = (w) => {
17324
- var b = xP(), x = T(b);
17322
+ var y = xP(), x = T(y);
17325
17323
  {
17326
17324
  var S = (G) => {
17327
17325
  var R = mP(), $ = ie(R), ue = T($), de = T(ue), te = T(de);
@@ -17701,7 +17699,7 @@ function SP(r, e) {
17701
17699
  ]), P(G, $);
17702
17700
  },
17703
17701
  $$slots: { default: !0 }
17704
- }), P(w, b);
17702
+ }), P(w, y);
17705
17703
  }, s = /* @__PURE__ */ m(() => {
17706
17704
  var w;
17707
17705
  return (w = e.trialPhase) != null && w.period ? co(/* @__PURE__ */ new Date(), e.trialPhase.period, !0) : null;
@@ -17709,8 +17707,8 @@ function SP(r, e) {
17709
17707
  var w;
17710
17708
  return e.priceBreakdown.taxCalculationStatus !== "unavailable" && e.priceBreakdown.taxCalculationStatus !== "disabled" && (o(c) || (((w = e.priceBreakdown.taxBreakdown) == null ? void 0 : w.length) ?? 0) > 0);
17711
17709
  }), d = /* @__PURE__ */ m(() => e.showDiscountCodeField || o(u)), p = /* @__PURE__ */ m(() => {
17712
- var w, b;
17713
- return e.priceBreakdown.originalAmountInMicros ?? ((b = (w = e.basePhase) == null ? void 0 : w.price) == null ? void 0 : b.amountMicros) ?? e.priceBreakdown.totalAmountInMicros;
17710
+ var w, y;
17711
+ return e.priceBreakdown.originalAmountInMicros ?? ((y = (w = e.basePhase) == null ? void 0 : w.price) == null ? void 0 : y.amountMicros) ?? e.priceBreakdown.totalAmountInMicros;
17714
17712
  }), g = /* @__PURE__ */ m(() => {
17715
17713
  var w;
17716
17714
  return ((w = e.resolvedDiscount) == null ? void 0 : w.discountAmountInMicros) ?? 0;
@@ -17718,22 +17716,22 @@ function SP(r, e) {
17718
17716
  var w;
17719
17717
  return ((w = e.resolvedDiscount) == null ? void 0 : w.suffix) ?? null;
17720
17718
  }), f = /* @__PURE__ */ m(() => o(s) ? 0 : e.priceBreakdown.totalAmountInMicros);
17721
- var v = Ee(), y = ie(v);
17719
+ var v = Ee(), b = ie(v);
17722
17720
  {
17723
17721
  var h = (w) => {
17724
17722
  _P(w, {
17725
17723
  get showDiscountCodeField() {
17726
17724
  return e.showDiscountCodeField;
17727
17725
  },
17728
- children: (b, x) => {
17729
- i(b);
17726
+ children: (y, x) => {
17727
+ i(y);
17730
17728
  },
17731
17729
  $$slots: { default: !0 }
17732
17730
  });
17733
17731
  }, k = (w) => {
17734
17732
  i(w);
17735
17733
  };
17736
- Y(y, (w) => {
17734
+ Y(b, (w) => {
17737
17735
  o(d) ? w(h) : w(k, !1);
17738
17736
  });
17739
17737
  }
@@ -17751,14 +17749,14 @@ function AP(r, e) {
17751
17749
  me(e, !1), Pe(r, DP);
17752
17750
  let t = J(e, "productDetails", 8), n = J(e, "showProductDescription", 8);
17753
17751
  const a = t().productType === Yr.Subscription;
17754
- An();
17752
+ qn();
17755
17753
  var i = TP(), s = T(i);
17756
17754
  {
17757
17755
  var l = (g) => {
17758
17756
  var _ = IP(), f = T(_);
17759
17757
  Ae(f, {
17760
17758
  size: "body-base",
17761
- children: (v, y) => {
17759
+ children: (v, b) => {
17762
17760
  {
17763
17761
  let h = /* @__PURE__ */ wn(() => (We(t()), Ue(() => ({ productTitle: t().title }))));
17764
17762
  lt(v, {
@@ -17803,7 +17801,7 @@ function AP(r, e) {
17803
17801
  var _ = CP(), f = T(_);
17804
17802
  Ae(f, {
17805
17803
  size: "body-small",
17806
- children: (v, y) => {
17804
+ children: (v, b) => {
17807
17805
  {
17808
17806
  let h = /* @__PURE__ */ wn(() => (We(t()), Ue(() => ({ productDescription: t().description }))));
17809
17807
  lt(v, {
@@ -17853,13 +17851,13 @@ function jP(r, e) {
17853
17851
  var L, F;
17854
17852
  const q = e.introPricePhase || o(u) ? ((F = (L = e.basePhase) == null ? void 0 : L.price) == null ? void 0 : F.amountMicros) ?? 0 : e.priceBreakdown.totalAmountInMicros;
17855
17853
  return t().formatPrice(q, e.priceBreakdown.currency);
17856
- }), v = /* @__PURE__ */ m(() => o(c) ? le.ProductInfoAfter : o(s) ? le.ProductInfoAfterTrial : null), y = "heading-lg", h = /* @__PURE__ */ m(() => o(s) ? "heading-md" : "heading-lg"), k = /* @__PURE__ */ m(() => o(s) || o(c) ? "heading-md" : "heading-lg");
17857
- var w = MP(), b = T(w);
17854
+ }), v = /* @__PURE__ */ m(() => o(c) ? le.ProductInfoAfter : o(s) ? le.ProductInfoAfterTrial : null), b = "heading-lg", h = /* @__PURE__ */ m(() => o(s) ? "heading-md" : "heading-lg"), k = /* @__PURE__ */ m(() => o(s) || o(c) ? "heading-md" : "heading-lg");
17855
+ var w = MP(), y = T(w);
17858
17856
  {
17859
17857
  var x = (q) => {
17860
17858
  var L = qP(), F = T(L);
17861
17859
  Ae(F, {
17862
- size: y,
17860
+ size: b,
17863
17861
  children: (A, N) => {
17864
17862
  {
17865
17863
  let W = /* @__PURE__ */ m(() => ({
@@ -17878,11 +17876,11 @@ function jP(r, e) {
17878
17876
  $$slots: { default: !0 }
17879
17877
  }), P(q, L);
17880
17878
  };
17881
- Y(b, (q) => {
17879
+ Y(y, (q) => {
17882
17880
  o(s) && q(x);
17883
17881
  });
17884
17882
  }
17885
- var S = H(b, 2);
17883
+ var S = H(y, 2);
17886
17884
  {
17887
17885
  var I = (q) => {
17888
17886
  var L = FP(), F = T(L);
@@ -18009,19 +18007,19 @@ const BP = {
18009
18007
  function UP(r, e) {
18010
18008
  me(e, !1), Pe(r, BP);
18011
18009
  const t = () => pe(M, "$translator", n), [n, a] = He(), i = /* @__PURE__ */ ar();
18012
- let s = J(e, "productDetails", 8), l = J(e, "purchaseOption", 8), c = J(e, "showProductDescription", 8), u = J(e, "priceBreakdown", 8), d = J(e, "showDiscountCodeField", 8, !1), p = J(e, "discountCode", 8, ""), g = J(e, "appliedDiscountCode", 8, null), _ = J(e, "discountCodeError", 8, null), f = J(e, "isUpdatingDiscountCode", 8, !1), v = J(e, "isDiscountCodeControlsEnabled", 8, !1), y = J(e, "onDiscountCodeChange", 8, void 0), h = J(e, "onApplyDiscountCode", 8, void 0), k = J(e, "onRemoveDiscountCode", 8, void 0), w = /* @__PURE__ */ ar(), b = /* @__PURE__ */ ar(), x = /* @__PURE__ */ ar(), S = /* @__PURE__ */ ar(), I = /* @__PURE__ */ ar(), z = /* @__PURE__ */ ar(), E = /* @__PURE__ */ ar();
18010
+ let s = J(e, "productDetails", 8), l = J(e, "purchaseOption", 8), c = J(e, "showProductDescription", 8), u = J(e, "priceBreakdown", 8), d = J(e, "showDiscountCodeField", 8, !1), p = J(e, "discountCode", 8, ""), g = J(e, "appliedDiscountCode", 8, null), _ = J(e, "discountCodeError", 8, null), f = J(e, "isUpdatingDiscountCode", 8, !1), v = J(e, "isDiscountCodeControlsEnabled", 8, !1), b = J(e, "onDiscountCodeChange", 8, void 0), h = J(e, "onApplyDiscountCode", 8, void 0), k = J(e, "onRemoveDiscountCode", 8, void 0), w = /* @__PURE__ */ ar(), y = /* @__PURE__ */ ar(), x = /* @__PURE__ */ ar(), S = /* @__PURE__ */ ar(), I = /* @__PURE__ */ ar(), z = /* @__PURE__ */ ar(), E = /* @__PURE__ */ ar();
18013
18011
  const M = Ge(gr);
18014
18012
  dr(() => We(s()), () => {
18015
18013
  j(w, s().productType === "subscription");
18016
18014
  }), dr(() => (o(w), We(l())), () => {
18017
- j(b, o(w) ? l() : null);
18015
+ j(y, o(w) ? l() : null);
18018
18016
  }), dr(() => (o(w), We(l())), () => {
18019
18017
  j(x, o(w) ? null : l());
18020
18018
  }), dr(
18021
- () => (o(w), o(b), o(x)),
18019
+ () => (o(w), o(y), o(x)),
18022
18020
  () => {
18023
18021
  var N, W;
18024
- j(S, o(w) ? ((N = o(b)) == null ? void 0 : N.base) ?? null : (W = o(x)) != null && W.basePrice ? {
18022
+ j(S, o(w) ? ((N = o(y)) == null ? void 0 : N.base) ?? null : (W = o(x)) != null && W.basePrice ? {
18025
18023
  periodDuration: null,
18026
18024
  period: null,
18027
18025
  cycleCount: 1,
@@ -18031,15 +18029,15 @@ function UP(r, e) {
18031
18029
  pricePerYear: null
18032
18030
  } : null);
18033
18031
  }
18034
- ), dr(() => o(b), () => {
18032
+ ), dr(() => o(y), () => {
18035
18033
  var N;
18036
- j(I, ((N = o(b)) == null ? void 0 : N.trial) ?? null);
18037
- }), dr(() => (o(b), o(x)), () => {
18034
+ j(I, ((N = o(y)) == null ? void 0 : N.trial) ?? null);
18035
+ }), dr(() => (o(y), o(x)), () => {
18038
18036
  var N, W;
18039
- j(z, ((N = o(b)) == null ? void 0 : N.discount) ?? ((W = o(x)) == null ? void 0 : W.discount) ?? null);
18040
- }), dr(() => o(b), () => {
18037
+ j(z, ((N = o(y)) == null ? void 0 : N.discount) ?? ((W = o(x)) == null ? void 0 : W.discount) ?? null);
18038
+ }), dr(() => o(y), () => {
18041
18039
  var N;
18042
- j(E, ((N = o(b)) == null ? void 0 : N.introPrice) ?? null);
18040
+ j(E, ((N = o(y)) == null ? void 0 : N.introPrice) ?? null);
18043
18041
  }), dr(
18044
18042
  () => (We(u()), We(s()), We(l()), t()),
18045
18043
  () => {
@@ -18050,7 +18048,7 @@ function UP(r, e) {
18050
18048
  translator: t()
18051
18049
  }));
18052
18050
  }
18053
- ), Cl(), An();
18051
+ ), Cl(), qn();
18054
18052
  var C = LP(), B = T(C), O = T(B);
18055
18053
  AP(O, {
18056
18054
  get productDetails() {
@@ -18127,7 +18125,7 @@ function UP(r, e) {
18127
18125
  return v();
18128
18126
  },
18129
18127
  get onDiscountCodeChange() {
18130
- return y();
18128
+ return b();
18131
18129
  },
18132
18130
  get onApplyDiscountCode() {
18133
18131
  return h();
@@ -18157,7 +18155,7 @@ const VP = {
18157
18155
  };
18158
18156
  function p_(r, e) {
18159
18157
  me(e, !0), Pe(r, VP);
18160
- const t = J(e, "brandingAppearance", 3, void 0), n = J(e, "brandFontConfig", 3, void 0), a = J(e, "isInElement", 3, !1), i = /* @__PURE__ */ m(() => new Cn(t()).getTextStyleVars(n())), s = /* @__PURE__ */ m(() => new Cn(t()).spacingStyleVars), l = /* @__PURE__ */ m(() => [o(i), o(s)].join("; ")), c = /* @__PURE__ */ m(() => {
18158
+ const t = J(e, "brandingAppearance", 3, void 0), n = J(e, "brandFontConfig", 3, void 0), a = J(e, "isInElement", 3, !1), i = /* @__PURE__ */ m(() => new Tn(t()).getTextStyleVars(n())), s = /* @__PURE__ */ m(() => new Tn(t()).spacingStyleVars), l = /* @__PURE__ */ m(() => [o(i), o(s)].join("; ")), c = /* @__PURE__ */ m(() => {
18161
18159
  var _;
18162
18160
  return (_ = n()) != null && _.font_url ? ro(n().font_url) : null;
18163
18161
  }), u = async (_) => {
@@ -18223,9 +18221,9 @@ function ZP(r, { delay: e = 0, duration: t = 400, easing: n = KP, x: a = 0, y: i
18223
18221
  delay: e,
18224
18222
  duration: t,
18225
18223
  easing: n,
18226
- css: (v, y) => `
18224
+ css: (v, b) => `
18227
18225
  transform: ${u} translate(${(1 - v) * p}${g}, ${(1 - v) * _}${f});
18228
- opacity: ${c - d * y}`
18226
+ opacity: ${c - d * b}`
18229
18227
  };
18230
18228
  }
18231
18229
  var JP = /* @__PURE__ */ V('<div><div class="layout-wrapper svelte-13h5jq9"><div><!></div></div></div>');
@@ -18260,7 +18258,7 @@ const t1 = {
18260
18258
  };
18261
18259
  function n1(r, e) {
18262
18260
  me(e, !0), Pe(r, t1);
18263
- const t = J(e, "brandingAppearance", 3, void 0), n = /* @__PURE__ */ m(() => new Cn(t()).productInfoStyleVars);
18261
+ const t = J(e, "brandingAppearance", 3, void 0), n = /* @__PURE__ */ m(() => new Tn(t()).productInfoStyleVars);
18264
18262
  var a = r1(), i = T(a);
18265
18263
  __(i, {
18266
18264
  location: "navbar",
@@ -18289,7 +18287,7 @@ const o1 = {
18289
18287
  function g_(r, e) {
18290
18288
  Pe(r, o1);
18291
18289
  var t = a1(), n = T(t);
18292
- Tn(n, { name: "close" }), Ar("click", t, function(a) {
18290
+ Dn(n, { name: "close" }), Ar("click", t, function(a) {
18293
18291
  tp.call(this, e, a);
18294
18292
  }), P(r, t);
18295
18293
  }
@@ -18329,7 +18327,7 @@ function f_(r, e) {
18329
18327
  function s() {
18330
18328
  ve.debugLog("closeBanner"), j(i, !1);
18331
18329
  }
18332
- An();
18330
+ qn();
18333
18331
  var l = Ee(), c = ie(l);
18334
18332
  {
18335
18333
  var u = (d) => {
@@ -18338,16 +18336,16 @@ function f_(r, e) {
18338
18336
  var _ = H(T(p), 2), f = T(_);
18339
18337
  Ae(f, {
18340
18338
  size: "caption-default",
18341
- children: (w, b) => {
18339
+ children: (w, y) => {
18342
18340
  var x = u1();
18343
18341
  P(w, x);
18344
18342
  },
18345
18343
  $$slots: { default: !0 }
18346
18344
  });
18347
- var v = H(_, 2), y = T(v);
18345
+ var v = H(_, 2), b = T(v);
18348
18346
  {
18349
18347
  var h = (w) => {
18350
- var b = p1(), x = T(b);
18348
+ var y = p1(), x = T(y);
18351
18349
  c1(x);
18352
18350
  var S = H(x, 2);
18353
18351
  Ae(S, {
@@ -18357,16 +18355,16 @@ function f_(r, e) {
18357
18355
  P(I, E);
18358
18356
  },
18359
18357
  $$slots: { default: !0 }
18360
- }), K(() => ke(b, "href", (We(a()), Ue(() => a().sandbox_configuration.checkout_feedback_form_url)))), P(w, b);
18358
+ }), K(() => ke(y, "href", (We(a()), Ue(() => a().sandbox_configuration.checkout_feedback_form_url)))), P(w, y);
18361
18359
  };
18362
- Y(y, (w) => {
18360
+ Y(b, (w) => {
18363
18361
  We(a()), Ue(() => {
18364
- var b;
18365
- return (b = a()) == null ? void 0 : b.sandbox_configuration;
18362
+ var y;
18363
+ return (y = a()) == null ? void 0 : y.sandbox_configuration;
18366
18364
  }) && w(h);
18367
18365
  });
18368
18366
  }
18369
- var k = H(y, 2);
18367
+ var k = H(b, 2);
18370
18368
  g_(k, { $$events: { click: s } }), K(() => {
18371
18369
  g = lr(p, 1, "rcb-ui-sandbox-banner svelte-bwwvt4", null, g, { isInElement: n() }), Te(p, t());
18372
18370
  }), Kd(2, p, () => ZP, () => ({ y: -100, duration: 300 })), P(d, p);
@@ -18384,7 +18382,7 @@ const m1 = {
18384
18382
  };
18385
18383
  function h1(r, e) {
18386
18384
  me(e, !0), Pe(r, m1);
18387
- const t = /* @__PURE__ */ m(() => new Cn(e.brandingAppearance).formStyleVars);
18385
+ const t = /* @__PURE__ */ m(() => new Tn(e.brandingAppearance).formStyleVars);
18388
18386
  var n = f1(), a = T(n);
18389
18387
  __(a, {
18390
18388
  location: "main-block",
@@ -18470,19 +18468,19 @@ function m_(r, e) {
18470
18468
  (e.navbarHeaderContent || e.navbarBodyContent) && h(v);
18471
18469
  });
18472
18470
  }
18473
- var y = H(f, 2);
18471
+ var b = H(f, 2);
18474
18472
  {
18475
18473
  let h = /* @__PURE__ */ m(() => {
18476
18474
  var k;
18477
18475
  return (k = e.brandingInfo) == null ? void 0 : k.appearance;
18478
18476
  });
18479
- h1(y, {
18477
+ h1(b, {
18480
18478
  get brandingAppearance() {
18481
18479
  return o(h);
18482
18480
  },
18483
18481
  children: (k, w) => {
18484
- var b = Ee(), x = ie(b);
18485
- hr(x, () => e.mainContent ?? $e), P(k, b);
18482
+ var y = Ee(), x = ie(y);
18483
+ hr(x, () => e.mainContent ?? $e), P(k, y);
18486
18484
  },
18487
18485
  $$slots: { default: !0 }
18488
18486
  });
@@ -18558,7 +18556,7 @@ function T1(r, e) {
18558
18556
  Pe(r, C1);
18559
18557
  let t = J(e, "disabled", 3, !1);
18560
18558
  var n = I1(), a = T(n);
18561
- Tn(a, { name: "back" }), K(() => n.disabled = t()), Ar("click", n, function(i) {
18559
+ Dn(a, { name: "back" }), K(() => n.disabled = t()), Ar("click", n, function(i) {
18562
18560
  tp.call(this, e, i);
18563
18561
  }), P(r, n);
18564
18562
  }
@@ -18622,7 +18620,7 @@ function O1(r, e) {
18622
18620
  return o(a);
18623
18621
  }
18624
18622
  });
18625
- }, y = (x) => {
18623
+ }, b = (x) => {
18626
18624
  var S = Ee(), I = ie(S);
18627
18625
  {
18628
18626
  var z = (E) => {
@@ -18646,7 +18644,7 @@ function O1(r, e) {
18646
18644
  P(x, S);
18647
18645
  };
18648
18646
  Y(f, (x) => {
18649
- o(n) !== null ? x(v) : x(y, !1);
18647
+ o(n) !== null ? x(v) : x(b, !1);
18650
18648
  });
18651
18649
  }
18652
18650
  var h = H(f, 2);
@@ -18670,12 +18668,12 @@ function O1(r, e) {
18670
18668
  }
18671
18669
  var w = H(g, 2);
18672
18670
  {
18673
- var b = (x) => {
18671
+ var y = (x) => {
18674
18672
  var S = z1(), I = T(S);
18675
18673
  g_(I, { $$events: { click: l } }), P(x, S);
18676
18674
  };
18677
18675
  Y(w, (x) => {
18678
- e.showCloseButton && x(b);
18676
+ e.showCloseButton && x(y);
18679
18677
  });
18680
18678
  }
18681
18679
  K(() => u = lr(c, 1, "rcb-header-wrapper svelte-11a99mf", null, u, { "rcb-with-close-button": e.showCloseButton })), P(r, c), he();
@@ -18708,7 +18706,7 @@ function B1(r, e) {
18708
18706
  !0
18709
18707
  );
18710
18708
  });
18711
- const y = (h) => {
18709
+ const b = (h) => {
18712
18710
  j(v, h, !0);
18713
18711
  };
18714
18712
  m_(r, {
@@ -18724,10 +18722,10 @@ function B1(r, e) {
18724
18722
  get onClose() {
18725
18723
  return _();
18726
18724
  },
18727
- navbarHeaderContent: (b) => {
18725
+ navbarHeaderContent: (y) => {
18728
18726
  {
18729
18727
  let x = /* @__PURE__ */ m(() => !e.isInElement && !!_());
18730
- O1(b, {
18728
+ O1(y, {
18731
18729
  get brandingInfo() {
18732
18730
  return e.brandingInfo;
18733
18731
  },
@@ -18740,13 +18738,13 @@ function B1(r, e) {
18740
18738
  });
18741
18739
  }
18742
18740
  },
18743
- navbarBodyContent: (b) => {
18741
+ navbarBodyContent: (y) => {
18744
18742
  {
18745
18743
  let x = /* @__PURE__ */ m(() => {
18746
18744
  var S, I;
18747
18745
  return ((I = (S = e.brandingInfo) == null ? void 0 : S.appearance) == null ? void 0 : I.show_product_description) ?? !1;
18748
18746
  });
18749
- UP(b, {
18747
+ UP(y, {
18750
18748
  get productDetails() {
18751
18749
  return e.productDetails;
18752
18750
  },
@@ -18789,7 +18787,7 @@ function B1(r, e) {
18789
18787
  });
18790
18788
  }
18791
18789
  },
18792
- mainContent: (b) => {
18790
+ mainContent: (y) => {
18793
18791
  var x = L1(), S = ie(x);
18794
18792
  {
18795
18793
  var I = (q) => {
@@ -18839,7 +18837,7 @@ function B1(r, e) {
18839
18837
  get onError() {
18840
18838
  return e.onError;
18841
18839
  },
18842
- onPriceBreakdownUpdated: y,
18840
+ onPriceBreakdownUpdated: b,
18843
18841
  get onSessionPricingUpdated() {
18844
18842
  return g();
18845
18843
  },
@@ -18899,7 +18897,7 @@ function B1(r, e) {
18899
18897
  e.currentPage === "success" && q(O);
18900
18898
  });
18901
18899
  }
18902
- P(b, x);
18900
+ P(y, x);
18903
18901
  },
18904
18902
  $$slots: {
18905
18903
  navbarHeaderContent: !0,
@@ -18928,7 +18926,7 @@ function V1(r, e) {
18928
18926
  var X;
18929
18927
  me(e, !0);
18930
18928
  const t = J(e, "customTranslations", 19, () => ({})), n = J(e, "skipSuccessPage", 3, !1), a = J(e, "showDiscountCodeField", 3, !1), i = J(e, "discountCode", 3, void 0), s = e.customerEmail ? h_(e.customerEmail) : null;
18931
- let l = /* @__PURE__ */ re(tr(s ? void 0 : e.customerEmail)), c = tr(e.rcPackage.webBillingProduct), u = /* @__PURE__ */ re(null), d = /* @__PURE__ */ m(() => R1(c, e.purchaseOption, o(u))), p = /* @__PURE__ */ re(null), g = /* @__PURE__ */ re(tr(i() ?? "")), _ = /* @__PURE__ */ re(null), f = /* @__PURE__ */ re(!1), v = /* @__PURE__ */ re(!1), y = /* @__PURE__ */ re("payment-entry-loading"), h = /* @__PURE__ */ re(null), k = /* @__PURE__ */ re(tr({})), w = /* @__PURE__ */ re(null), b = /* @__PURE__ */ re(void 0), x = /* @__PURE__ */ m(() => {
18929
+ let l = /* @__PURE__ */ re(tr(s ? void 0 : e.customerEmail)), c = tr(e.rcPackage.webBillingProduct), u = /* @__PURE__ */ re(null), d = /* @__PURE__ */ m(() => R1(c, e.purchaseOption, o(u))), p = /* @__PURE__ */ re(null), g = /* @__PURE__ */ re(tr(i() ?? "")), _ = /* @__PURE__ */ re(null), f = /* @__PURE__ */ re(!1), v = /* @__PURE__ */ re(!1), b = /* @__PURE__ */ re("payment-entry-loading"), h = /* @__PURE__ */ re(null), k = /* @__PURE__ */ re(tr({})), w = /* @__PURE__ */ re(null), y = /* @__PURE__ */ re(void 0), x = /* @__PURE__ */ m(() => {
18932
18930
  var D, U, ee;
18933
18931
  return ((ee = (U = (D = o(u)) == null ? void 0 : D.applied_discounts) == null ? void 0 : U[0]) == null ? void 0 : ee.discount_code) ?? null;
18934
18932
  }), S = /* @__PURE__ */ m(() => {
@@ -18941,7 +18939,7 @@ function V1(r, e) {
18941
18939
  };
18942
18940
  }), I = /* @__PURE__ */ re(null), z = /* @__PURE__ */ re(null), E = /* @__PURE__ */ re(null), M = new Sn(t(), e.selectedLocale, e.defaultLocale), C = qr(M);
18943
18941
  const B = qr(((X = e.brandingInfo) == null ? void 0 : X.appearance) ?? null);
18944
- mr(gr, C), mr(Nn, B), xr(() => {
18942
+ mr(gr, C), mr(On, B), xr(() => {
18945
18943
  e.isInElement || (j(I, document.documentElement.style.height, !0), j(z, document.documentElement.style.overflow, !0), j(E, document.body.style.height, !0), document.documentElement.style.height = "100%", document.body.style.height = "100%", document.documentElement.style.overflow = "hidden");
18946
18944
  }), Kt(() => {
18947
18945
  if (!e.isInElement) {
@@ -18988,7 +18986,7 @@ function V1(r, e) {
18988
18986
  ge.StripeInvalidTaxOriginAddress,
18989
18987
  ge.StripeMissingRequiredPermission
18990
18988
  ].includes(D.errorCode), A = (D, U) => {
18991
- j(u, D, !0), j(b, U ?? op(D, L(D.failed_reason)), !0);
18989
+ j(u, D, !0), j(y, U ?? op(D, L(D.failed_reason)), !0);
18992
18990
  };
18993
18991
  xr(async () => {
18994
18992
  try {
@@ -19005,7 +19003,7 @@ function V1(r, e) {
19005
19003
  else
19006
19004
  throw ee instanceof fe ? ee : new fe(ge.ErrorSettingUpPurchase, "Failed to apply discount code.");
19007
19005
  }
19008
- j(y, "payment-entry");
19006
+ j(b, "payment-entry");
19009
19007
  } catch (D) {
19010
19008
  de(D instanceof fe ? D : new fe(ge.UnknownError, D instanceof Error ? D.message : String(D)));
19011
19009
  }
@@ -19039,36 +19037,36 @@ function V1(r, e) {
19039
19037
  }, $ = async () => {
19040
19038
  await G(null);
19041
19039
  }, ue = () => {
19042
- if (o(y) === "payment-entry") {
19040
+ if (o(b) === "payment-entry") {
19043
19041
  e.purchaseOperationHelper.pollCurrentPurchaseForCompletion().then((D) => {
19044
- j(h, D, !0), n() ? e.onFinished(D) : j(y, "success");
19042
+ j(h, D, !0), n() ? e.onFinished(D) : j(b, "success");
19045
19043
  }).catch((D) => {
19046
19044
  de(D);
19047
19045
  });
19048
19046
  return;
19049
19047
  }
19050
- if (o(y) === "success" || o(y) === "error") {
19048
+ if (o(b) === "success" || o(b) === "error") {
19051
19049
  e.onFinished(o(h));
19052
19050
  return;
19053
19051
  }
19054
- j(y, "success");
19052
+ j(b, "success");
19055
19053
  }, de = (D) => {
19056
19054
  const U = Kp({
19057
19055
  errorCode: D.getErrorCode().toString(),
19058
19056
  errorMessage: D.message
19059
19057
  });
19060
- e.eventsTracker.trackSDKEvent(U), j(p, D, !0), j(y, "error");
19058
+ e.eventsTracker.trackSDKEvent(U), j(p, D, !0), j(b, "error");
19061
19059
  }, te = () => {
19062
19060
  e.onError(o(p) ?? new fe(ge.UnknownError, "Unknown error without state set."));
19063
19061
  };
19064
19062
  {
19065
- let D = /* @__PURE__ */ m(() => e.purchases.isSandbox()), U = /* @__PURE__ */ m(() => o(y) === "payment-entry" && !o(v)), ee = /* @__PURE__ */ m(() => o(l) ?? null);
19063
+ let D = /* @__PURE__ */ m(() => e.purchases.isSandbox()), U = /* @__PURE__ */ m(() => o(b) === "payment-entry" && !o(v)), ee = /* @__PURE__ */ m(() => o(l) ?? null);
19066
19064
  B1(r, {
19067
19065
  get isSandbox() {
19068
19066
  return o(D);
19069
19067
  },
19070
19068
  get currentPage() {
19071
- return o(y);
19069
+ return o(b);
19072
19070
  },
19073
19071
  get brandingInfo() {
19074
19072
  return e.brandingInfo;
@@ -19122,7 +19120,7 @@ function V1(r, e) {
19122
19120
  return o(ee);
19123
19121
  },
19124
19122
  get defaultPriceBreakdown() {
19125
- return o(b);
19123
+ return o(y);
19126
19124
  },
19127
19125
  closeWithError: te,
19128
19126
  onDraftDiscountCodeChange: N,
@@ -19251,20 +19249,20 @@ function dl() {
19251
19249
  }
19252
19250
  }
19253
19251
  e.wrap = d;
19254
- var g = "suspendedStart", _ = "suspendedYield", f = "executing", v = "completed", y = {};
19252
+ var g = "suspendedStart", _ = "suspendedYield", f = "executing", v = "completed", b = {};
19255
19253
  function h() {
19256
19254
  }
19257
19255
  function k() {
19258
19256
  }
19259
19257
  function w() {
19260
19258
  }
19261
- var b = {};
19262
- u(b, s, function() {
19259
+ var y = {};
19260
+ u(y, s, function() {
19263
19261
  return this;
19264
19262
  });
19265
19263
  var x = Object.getPrototypeOf, S = x && x(x(L([])));
19266
- S && S !== t && n.call(S, s) && (b = S);
19267
- var I = w.prototype = h.prototype = Object.create(b);
19264
+ S && S !== t && n.call(S, s) && (y = S);
19265
+ var I = w.prototype = h.prototype = Object.create(y);
19268
19266
  function z(F) {
19269
19267
  ["next", "throw", "return"].forEach(function(A) {
19270
19268
  u(F, A, function(N) {
@@ -19317,7 +19315,7 @@ function dl() {
19317
19315
  if ($) {
19318
19316
  var ue = C($, N);
19319
19317
  if (ue) {
19320
- if (ue === y) continue;
19318
+ if (ue === b) continue;
19321
19319
  return ue;
19322
19320
  }
19323
19321
  }
@@ -19329,7 +19327,7 @@ function dl() {
19329
19327
  W = f;
19330
19328
  var de = p(F, A, N);
19331
19329
  if (de.type === "normal") {
19332
- if (W = N.done ? v : _, de.arg === y) continue;
19330
+ if (W = N.done ? v : _, de.arg === b) continue;
19333
19331
  return {
19334
19332
  value: de.arg,
19335
19333
  done: N.done
@@ -19341,11 +19339,11 @@ function dl() {
19341
19339
  }
19342
19340
  function C(F, A) {
19343
19341
  var N = A.method, W = F.iterator[N];
19344
- if (W === r) return A.delegate = null, N === "throw" && F.iterator.return && (A.method = "return", A.arg = r, C(F, A), A.method === "throw") || N !== "return" && (A.method = "throw", A.arg = new TypeError("The iterator does not provide a '" + N + "' method")), y;
19342
+ if (W === r) return A.delegate = null, N === "throw" && F.iterator.return && (A.method = "return", A.arg = r, C(F, A), A.method === "throw") || N !== "return" && (A.method = "throw", A.arg = new TypeError("The iterator does not provide a '" + N + "' method")), b;
19345
19343
  var G = p(W, F.iterator, A.arg);
19346
- if (G.type === "throw") return A.method = "throw", A.arg = G.arg, A.delegate = null, y;
19344
+ if (G.type === "throw") return A.method = "throw", A.arg = G.arg, A.delegate = null, b;
19347
19345
  var R = G.arg;
19348
- return R ? R.done ? (A[F.resultName] = R.value, A.next = F.nextLoc, A.method !== "return" && (A.method = "next", A.arg = r), A.delegate = null, y) : R : (A.method = "throw", A.arg = new TypeError("iterator result is not an object"), A.delegate = null, y);
19346
+ return R ? R.done ? (A[F.resultName] = R.value, A.next = F.nextLoc, A.method !== "return" && (A.method = "next", A.arg = r), A.delegate = null, b) : R : (A.method = "throw", A.arg = new TypeError("iterator result is not an object"), A.delegate = null, b);
19349
19347
  }
19350
19348
  function B(F) {
19351
19349
  var A = {
@@ -19458,16 +19456,16 @@ function dl() {
19458
19456
  }
19459
19457
  G && (F === "break" || F === "continue") && G.tryLoc <= A && A <= G.finallyLoc && (G = null);
19460
19458
  var R = G ? G.completion : {};
19461
- return R.type = F, R.arg = A, G ? (this.method = "next", this.next = G.finallyLoc, y) : this.complete(R);
19459
+ return R.type = F, R.arg = A, G ? (this.method = "next", this.next = G.finallyLoc, b) : this.complete(R);
19462
19460
  },
19463
19461
  complete: function(F, A) {
19464
19462
  if (F.type === "throw") throw F.arg;
19465
- return F.type === "break" || F.type === "continue" ? this.next = F.arg : F.type === "return" ? (this.rval = this.arg = F.arg, this.method = "return", this.next = "end") : F.type === "normal" && A && (this.next = A), y;
19463
+ return F.type === "break" || F.type === "continue" ? this.next = F.arg : F.type === "return" ? (this.rval = this.arg = F.arg, this.method = "return", this.next = "end") : F.type === "normal" && A && (this.next = A), b;
19466
19464
  },
19467
19465
  finish: function(F) {
19468
19466
  for (var A = this.tryEntries.length - 1; A >= 0; --A) {
19469
19467
  var N = this.tryEntries[A];
19470
- if (N.finallyLoc === F) return this.complete(N.completion, N.afterLoc), O(N), y;
19468
+ if (N.finallyLoc === F) return this.complete(N.completion, N.afterLoc), O(N), b;
19471
19469
  }
19472
19470
  },
19473
19471
  catch: function(F) {
@@ -19489,7 +19487,7 @@ function dl() {
19489
19487
  iterator: L(F),
19490
19488
  resultName: A,
19491
19489
  nextLoc: N
19492
- }, this.method === "next" && (this.arg = r), y;
19490
+ }, this.method === "next" && (this.arg = r), b;
19493
19491
  }
19494
19492
  }, e;
19495
19493
  }
@@ -19768,7 +19766,7 @@ class _0 {
19768
19766
  onCheckoutCompleted: u
19769
19767
  }) {
19770
19768
  const d = this.getPaddleInstance(), { customerEmail: p, locale: g = "en" } = i, _ = (f) => {
19771
- var v, y, h;
19769
+ var v, b, h;
19772
19770
  if (c && (f != null && f.totals)) {
19773
19771
  const k = (v = f.items) == null ? void 0 : v[0];
19774
19772
  c({
@@ -19776,7 +19774,7 @@ class _0 {
19776
19774
  subtotalAmount: f.totals.subtotal,
19777
19775
  taxAmount: f.totals.tax,
19778
19776
  totalAmount: f.totals.total,
19779
- recurringTotalAmount: ((y = f.recurring_totals) == null ? void 0 : y.total) ?? null,
19777
+ recurringTotalAmount: ((b = f.recurring_totals) == null ? void 0 : b.total) ?? null,
19780
19778
  productName: ((h = k == null ? void 0 : k.product) == null ? void 0 : h.name) ?? null,
19781
19779
  priceName: (k == null ? void 0 : k.price_name) ?? null
19782
19780
  });
@@ -19793,25 +19791,25 @@ class _0 {
19793
19791
  _(w);
19794
19792
  else if (k === ya.CHECKOUT_COMPLETED) {
19795
19793
  u == null || u(), d.Checkout.close();
19796
- const b = await this.pollOperationStatus(e);
19797
- f(b);
19794
+ const y = await this.pollOperationStatus(e);
19795
+ f(y);
19798
19796
  } else k === ya.CHECKOUT_CLOSED && (w != null && w.status) && a();
19799
- } catch (b) {
19800
- d.Checkout.close(), b instanceof fe ? v(b) : b instanceof Qe ? v(
19797
+ } catch (y) {
19798
+ d.Checkout.close(), y instanceof fe ? v(y) : y instanceof Qe ? v(
19801
19799
  fe.fromPurchasesError(
19802
- b,
19800
+ y,
19803
19801
  ge.UnknownError
19804
19802
  )
19805
19803
  ) : v(
19806
19804
  new fe(
19807
19805
  ge.UnknownError,
19808
- `Paddle event handler error: ${b}`
19806
+ `Paddle event handler error: ${y}`
19809
19807
  )
19810
19808
  );
19811
19809
  }
19812
19810
  }
19813
19811
  });
19814
- const y = p0({
19812
+ const b = p0({
19815
19813
  transactionId: t,
19816
19814
  locale: g,
19817
19815
  customerEmail: p,
@@ -19819,7 +19817,7 @@ class _0 {
19819
19817
  theme: l
19820
19818
  });
19821
19819
  try {
19822
- d.Checkout.open(y);
19820
+ d.Checkout.open(b);
19823
19821
  } catch (h) {
19824
19822
  v(
19825
19823
  new fe(
@@ -19916,10 +19914,10 @@ const f0 = {
19916
19914
  };
19917
19915
  function b_(r, e) {
19918
19916
  me(e, !0), Pe(r, f0);
19919
- const t = () => pe(i, "$brandingAppearanceStore", n), [n, a] = He(), i = Ge(Nn), s = /* @__PURE__ */ m(() => {
19917
+ const t = () => pe(i, "$brandingAppearanceStore", n), [n, a] = He(), i = Ge(On), s = /* @__PURE__ */ m(() => {
19920
19918
  var u;
19921
19919
  return t() ?? ((u = e.brandingInfo) == null ? void 0 : u.appearance) ?? null;
19922
- }), l = /* @__PURE__ */ m(() => new Cn(o(s)).pageStyleVars), c = /* @__PURE__ */ m(() => {
19920
+ }), l = /* @__PURE__ */ m(() => new Tn(o(s)).pageStyleVars), c = /* @__PURE__ */ m(() => {
19923
19921
  var u;
19924
19922
  return ((u = o(s)) == null ? void 0 : u.color_page_bg) ?? "#ffffff";
19925
19923
  });
@@ -19958,7 +19956,7 @@ function b_(r, e) {
19958
19956
  e.isSandbox && k(f);
19959
19957
  });
19960
19958
  }
19961
- var v = H(_, 2), y = T(v), h = T(y);
19959
+ var v = H(_, 2), b = T(v), h = T(b);
19962
19960
  hr(h, () => e.mainContent ?? $e), K(() => Te(v, `${o(l) ?? ""}; background-color: ${o(c) ?? ""}`)), P(d, g);
19963
19961
  },
19964
19962
  $$slots: { default: !0 }
@@ -19992,7 +19990,7 @@ function y0(r, e) {
19992
19990
  qo(f, {
19993
19991
  gap: "medium",
19994
19992
  align: "center",
19995
- children: (v, y) => {
19993
+ children: (v, b) => {
19996
19994
  var h = m0(), k = ie(h);
19997
19995
  Wi(k, { color: "var(--rc-color-grey-text-dark)" });
19998
19996
  var w = H(k, 2);
@@ -20006,8 +20004,8 @@ function y0(r, e) {
20006
20004
  },
20007
20005
  $$slots: { default: !0 }
20008
20006
  });
20009
- var b = H(w, 2);
20010
- Ae(b, {
20007
+ var y = H(w, 2);
20008
+ Ae(y, {
20011
20009
  size: "body-small",
20012
20010
  children: (x, S) => {
20013
20011
  var I = Me();
@@ -20030,10 +20028,10 @@ function y0(r, e) {
20030
20028
  },
20031
20029
  fullWidth: !0
20032
20030
  });
20033
- }, y = (h) => {
20031
+ }, b = (h) => {
20034
20032
  var k = Ee(), w = ie(k);
20035
20033
  {
20036
- var b = (x) => {
20034
+ var y = (x) => {
20037
20035
  {
20038
20036
  let S = /* @__PURE__ */ m(() => {
20039
20037
  var z;
@@ -20065,7 +20063,7 @@ function y0(r, e) {
20065
20063
  Y(
20066
20064
  w,
20067
20065
  (x) => {
20068
- e.currentPage === "error" && x(b);
20066
+ e.currentPage === "error" && x(y);
20069
20067
  },
20070
20068
  !0
20071
20069
  );
@@ -20075,7 +20073,7 @@ function y0(r, e) {
20075
20073
  Y(
20076
20074
  f,
20077
20075
  (h) => {
20078
- e.currentPage === "success" ? h(v) : h(y, !1);
20076
+ e.currentPage === "success" ? h(v) : h(b, !1);
20079
20077
  },
20080
20078
  !0
20081
20079
  );
@@ -20101,19 +20099,19 @@ const I0 = {
20101
20099
  function C0(r, e) {
20102
20100
  var te;
20103
20101
  me(e, !0), Pe(r, I0);
20104
- const t = () => pe(i, "$translator", n), [n, a] = He(), i = Ge(gr), l = new Cn(((te = e.brandingInfo) == null ? void 0 : te.appearance) ?? null).formColors.background, u = ((X) => "base" in X)(e.purchaseOption) ? e.purchaseOption.base.period ?? null : null, d = (X) => Math.round(X * 1e6), p = mo(e.productDetails, e.purchaseOption), g = /* @__PURE__ */ m(() => {
20102
+ const t = () => pe(i, "$translator", n), [n, a] = He(), i = Ge(gr), l = new Tn(((te = e.brandingInfo) == null ? void 0 : te.appearance) ?? null).formColors.background, u = ((X) => "base" in X)(e.purchaseOption) ? e.purchaseOption.base.period ?? null : null, d = (X) => Math.round(X * 1e6), p = mo(e.productDetails, e.purchaseOption), g = /* @__PURE__ */ m(() => {
20105
20103
  var X;
20106
20104
  return ((X = e.totals) == null ? void 0 : X.currencyCode) ?? p.currency;
20107
- }), _ = /* @__PURE__ */ m(() => e.totals ? d(e.totals.totalAmount) : p.amountMicros), f = (X) => t().formatPrice(X, o(g)), v = /* @__PURE__ */ m(() => u ? t().translatePeriodUnit(u.unit) : null), y = /* @__PURE__ */ m(() => u ? t().translatePeriodFrequency(u.number, u.unit) : null), h = /* @__PURE__ */ m(() => {
20105
+ }), _ = /* @__PURE__ */ m(() => e.totals ? d(e.totals.totalAmount) : p.amountMicros), f = (X) => t().formatPrice(X, o(g)), v = /* @__PURE__ */ m(() => u ? t().translatePeriodUnit(u.unit) : null), b = /* @__PURE__ */ m(() => u ? t().translatePeriodFrequency(u.number, u.unit) : null), h = /* @__PURE__ */ m(() => {
20108
20106
  var X;
20109
20107
  return ((X = e.totals) == null ? void 0 : X.productName) ?? e.productDetails.title;
20110
20108
  }), k = /* @__PURE__ */ m(() => {
20111
20109
  var X;
20112
20110
  return ((X = e.totals) == null ? void 0 : X.priceName) ?? null;
20113
- }), w = /* @__PURE__ */ m(() => !!e.totals && e.totals.taxAmount > 0), b = /* @__PURE__ */ m(() => {
20111
+ }), w = /* @__PURE__ */ m(() => !!e.totals && e.totals.taxAmount > 0), y = /* @__PURE__ */ m(() => {
20114
20112
  if (!e.totals || e.totals.recurringTotalAmount === null || !u) return null;
20115
20113
  const X = co(/* @__PURE__ */ new Date(), u, !0);
20116
- return X ? new Intl.DateTimeFormat(Vn(t().selectedLocale), { day: "numeric", month: "long", year: "numeric" }).format(X) : null;
20114
+ return X ? new Intl.DateTimeFormat(Wn(t().selectedLocale), { day: "numeric", month: "long", year: "numeric" }).format(X) : null;
20117
20115
  });
20118
20116
  var x = S0(), S = T(x), I = T(S), z = T(I), E = T(z), M = H(z, 2);
20119
20117
  {
@@ -20132,13 +20130,13 @@ function C0(r, e) {
20132
20130
  size: "body-small",
20133
20131
  children: (D, U) => {
20134
20132
  var ee = Me();
20135
- K(() => ye(ee, `billed ${o(y) ?? ""}`)), P(D, ee);
20133
+ K(() => ye(ee, `billed ${o(b) ?? ""}`)), P(D, ee);
20136
20134
  },
20137
20135
  $$slots: { default: !0 }
20138
20136
  });
20139
20137
  };
20140
20138
  Y(B, (X) => {
20141
- o(y) && X(O);
20139
+ o(b) && X(O);
20142
20140
  });
20143
20141
  }
20144
20142
  var q = H(B, 2), L = T(q);
@@ -20197,7 +20195,7 @@ function C0(r, e) {
20197
20195
  var Ie = x0(), Ye = T(Ie), Ze = T(Ye), _r = H(Ye, 2), Ne = T(_r);
20198
20196
  K(
20199
20197
  (se) => {
20200
- ye(Ze, `Due on ${o(b) ?? ""}`), ye(Ne, se);
20198
+ ye(Ze, `Due on ${o(y) ?? ""}`), ye(Ne, se);
20201
20199
  },
20202
20200
  [
20203
20201
  () => f(d(e.totals.recurringTotalAmount))
@@ -20205,7 +20203,7 @@ function C0(r, e) {
20205
20203
  ), P(ce, Ie);
20206
20204
  };
20207
20205
  Y(ne, (ce) => {
20208
- e.totals.recurringTotalAmount !== null && o(b) && ce(_e);
20206
+ e.totals.recurringTotalAmount !== null && o(y) && ce(_e);
20209
20207
  });
20210
20208
  }
20211
20209
  K(
@@ -20260,15 +20258,15 @@ function M0(r, e) {
20260
20258
  var g = Ee(), _ = ie(g);
20261
20259
  {
20262
20260
  var f = (v) => {
20263
- var y = T0();
20264
- y.__click = function(...b) {
20261
+ var b = T0();
20262
+ b.__click = function(...y) {
20265
20263
  var x;
20266
- (x = e.onClose) == null || x.apply(this, b);
20264
+ (x = e.onClose) == null || x.apply(this, y);
20267
20265
  };
20268
- var h = T(y);
20269
- Tn(h, { name: "back" });
20266
+ var h = T(b);
20267
+ Dn(h, { name: "back" });
20270
20268
  var k = H(h, 2), w = T(k);
20271
- K(() => ye(w, s ? `Return to ${s}` : "Back")), P(v, y);
20269
+ K(() => ye(w, s ? `Return to ${s}` : "Back")), P(v, b);
20272
20270
  };
20273
20271
  Y(_, (v) => {
20274
20272
  e.isInElement || v(f);
@@ -20295,13 +20293,13 @@ function M0(r, e) {
20295
20293
  mainContent: (p) => {
20296
20294
  var g = Ee(), _ = ie(g);
20297
20295
  {
20298
- var f = (y) => {
20299
- Xi(y, {
20296
+ var f = (b) => {
20297
+ Xi(b, {
20300
20298
  get onContinue() {
20301
20299
  return e.onContinue;
20302
20300
  }
20303
20301
  });
20304
- }, v = (y) => {
20302
+ }, v = (b) => {
20305
20303
  var h = Ee(), k = ie(h);
20306
20304
  {
20307
20305
  var w = (x) => {
@@ -20331,7 +20329,7 @@ function M0(r, e) {
20331
20329
  }
20332
20330
  });
20333
20331
  }
20334
- }, b = (x) => {
20332
+ }, y = (x) => {
20335
20333
  var S = Ee(), I = ie(S);
20336
20334
  {
20337
20335
  var z = (M) => {
@@ -20384,15 +20382,15 @@ function M0(r, e) {
20384
20382
  Y(
20385
20383
  k,
20386
20384
  (x) => {
20387
- e.currentPage === "error" ? x(w) : x(b, !1);
20385
+ e.currentPage === "error" ? x(w) : x(y, !1);
20388
20386
  },
20389
20387
  !0
20390
20388
  );
20391
20389
  }
20392
- P(y, h);
20390
+ P(b, h);
20393
20391
  };
20394
- Y(_, (y) => {
20395
- e.currentPage === "success" ? y(f) : y(v, !1);
20392
+ Y(_, (b) => {
20393
+ e.currentPage === "success" ? b(f) : b(v, !1);
20396
20394
  });
20397
20395
  }
20398
20396
  P(p, g);
@@ -20411,7 +20409,7 @@ function z0(r, e) {
20411
20409
  const t = J(e, "customTranslations", 19, () => ({})), n = J(e, "skipSuccessPage", 3, !1);
20412
20410
  let a = new Sn(t(), e.selectedLocale, e.defaultLocale), i = qr(a);
20413
20411
  const s = qr(((C = e.brandingInfo) == null ? void 0 : C.appearance) ?? null);
20414
- mr(gr, i), mr(Nn, s), mr(Fo, e.eventsTracker);
20412
+ mr(gr, i), mr(On, s), mr(Fo, e.eventsTracker);
20415
20413
  let l = /* @__PURE__ */ re(!1), c = /* @__PURE__ */ re(null), u = /* @__PURE__ */ re(null), d = /* @__PURE__ */ re("waiting"), p = /* @__PURE__ */ re(!1), g = /* @__PURE__ */ re(null);
20416
20414
  const _ = /* @__PURE__ */ m(() => {
20417
20415
  var q;
@@ -20420,7 +20418,7 @@ function z0(r, e) {
20420
20418
  let f = /* @__PURE__ */ re(null);
20421
20419
  const v = (q) => {
20422
20420
  j(f, q, !0);
20423
- }, y = Wk(((O = (B = e.brandingInfo) == null ? void 0 : B.appearance) == null ? void 0 : O.color_page_bg) ?? "#ffffff") ? "light" : "dark";
20421
+ }, b = Wk(((O = (B = e.brandingInfo) == null ? void 0 : B.appearance) == null ? void 0 : O.color_page_bg) ?? "#ffffff") ? "light" : "dark";
20424
20422
  pr(() => {
20425
20423
  o(d) === "success" && o(c) && n() && e.onFinished(o(c));
20426
20424
  });
@@ -20431,10 +20429,10 @@ function z0(r, e) {
20431
20429
  }, w = () => {
20432
20430
  e.onError(o(u) ?? new fe(ge.UnknownError, "Unknown error without state set.")), e.unmountPaddlePurchaseUi();
20433
20431
  };
20434
- let b = null, x = null, S = null;
20432
+ let y = null, x = null, S = null;
20435
20433
  xr(async () => {
20436
20434
  var N;
20437
- e.isInElement || (b = document.documentElement.style.height, x = document.documentElement.style.overflow, S = document.body.style.height, document.documentElement.style.height = "100%", document.body.style.height = "100%", document.documentElement.style.overflow = "hidden");
20435
+ e.isInElement || (y = document.documentElement.style.height, x = document.documentElement.style.overflow, S = document.body.style.height, document.documentElement.style.height = "100%", document.body.style.height = "100%", document.documentElement.style.overflow = "hidden");
20438
20436
  const q = () => {
20439
20437
  j(d, "loading");
20440
20438
  }, L = () => {
@@ -20477,7 +20475,7 @@ function z0(r, e) {
20477
20475
  },
20478
20476
  ...o(_) && {
20479
20477
  displayMode: "inline",
20480
- theme: y,
20478
+ theme: b,
20481
20479
  onCheckoutTotals: v,
20482
20480
  onCheckoutCompleted: L
20483
20481
  }
@@ -20492,7 +20490,7 @@ function z0(r, e) {
20492
20490
  const q = (L, F, A) => {
20493
20491
  A === "" ? L.style.removeProperty(F) : L.style.setProperty(F, A);
20494
20492
  };
20495
- q(document.documentElement, "height", b), q(document.body, "height", S), q(document.documentElement, "overflow", x);
20493
+ q(document.documentElement, "height", y), q(document.body, "height", S), q(document.documentElement, "overflow", x);
20496
20494
  }
20497
20495
  });
20498
20496
  var I = Ee(), z = ie(I);
@@ -20612,7 +20610,7 @@ const V0 = {
20612
20610
  };
20613
20611
  function W0(r, e) {
20614
20612
  me(e, !0), Pe(r, V0);
20615
- const t = () => pe(s, "$brandingAppearanceStore", a), n = () => pe(d, "$translator", a), [a, i] = He(), s = Ge(Nn), l = /* @__PURE__ */ m(() => t() ?? void 0), c = /* @__PURE__ */ m(() => new Cn(o(l)).pageStyleVars), u = /* @__PURE__ */ m(() => a_(o(l)).background), d = Ge(gr);
20613
+ const t = () => pe(s, "$brandingAppearanceStore", a), n = () => pe(d, "$translator", a), [a, i] = He(), s = Ge(On), l = /* @__PURE__ */ m(() => t() ?? void 0), c = /* @__PURE__ */ m(() => new Tn(o(l)).pageStyleVars), u = /* @__PURE__ */ m(() => a_(o(l)).background), d = Ge(gr);
20616
20614
  b_(r, {
20617
20615
  get brandingInfo() {
20618
20616
  return e.brandingInfo;
@@ -20629,7 +20627,7 @@ function W0(r, e) {
20629
20627
  var v = (h) => {
20630
20628
  var k = Ee(), w = ie(k);
20631
20629
  {
20632
- var b = (x) => {
20630
+ var y = (x) => {
20633
20631
  var S = L0(), I = T(S);
20634
20632
  O0(I, {
20635
20633
  get stripeBillingParams() {
@@ -20644,14 +20642,14 @@ function W0(r, e) {
20644
20642
  }), K(() => Te(S, `${o(c) ?? ""}; background-color: ${o(u) ?? ""}`)), P(x, S);
20645
20643
  };
20646
20644
  Y(w, (x) => {
20647
- e.stripeBillingParams && x(b);
20645
+ e.stripeBillingParams && x(y);
20648
20646
  });
20649
20647
  }
20650
20648
  P(h, k);
20651
- }, y = (h) => {
20649
+ }, b = (h) => {
20652
20650
  var k = Ee(), w = ie(k);
20653
20651
  {
20654
- var b = (S) => {
20652
+ var y = (S) => {
20655
20653
  var I = R0(), z = T(I);
20656
20654
  qo(z, {
20657
20655
  gap: "medium",
@@ -20758,7 +20756,7 @@ function W0(r, e) {
20758
20756
  Y(
20759
20757
  w,
20760
20758
  (S) => {
20761
- e.currentPage === "loading" || e.currentPage === "purchasing" ? S(b) : S(x, !1);
20759
+ e.currentPage === "loading" || e.currentPage === "purchasing" ? S(y) : S(x, !1);
20762
20760
  },
20763
20761
  !0
20764
20762
  );
@@ -20766,7 +20764,7 @@ function W0(r, e) {
20766
20764
  P(h, k);
20767
20765
  };
20768
20766
  Y(f, (h) => {
20769
- e.currentPage === "stripe-checkout" ? h(v) : h(y, !1);
20767
+ e.currentPage === "stripe-checkout" ? h(v) : h(b, !1);
20770
20768
  });
20771
20769
  }
20772
20770
  P(g, _);
@@ -20781,28 +20779,28 @@ function H0(r, e) {
20781
20779
  let a = e.rcPackage.webBillingProduct, i = new Sn(t(), e.selectedLocale, e.defaultLocale), s = qr(i);
20782
20780
  mr(gr, s), mr(Fo, e.eventsTracker);
20783
20781
  const l = qr(((w = e.brandingInfo) == null ? void 0 : w.appearance) ?? null);
20784
- mr(Nn, l);
20782
+ mr(On, l);
20785
20783
  let c = /* @__PURE__ */ re(!1), u = /* @__PURE__ */ re(null), d = /* @__PURE__ */ re(null), p = /* @__PURE__ */ re("loading"), g = /* @__PURE__ */ re(null);
20786
20784
  const _ = () => {
20787
20785
  if (o(p) === "stripe-checkout") {
20788
- j(p, "purchasing"), e.purchaseOperationHelper.pollCurrentPurchaseForCompletion().then((b) => {
20789
- j(u, b, !0), n() ? e.onFinished(b) : j(p, "success");
20790
- }).catch((b) => {
20791
- f(ki(b, "Failed to complete purchase"));
20786
+ j(p, "purchasing"), e.purchaseOperationHelper.pollCurrentPurchaseForCompletion().then((y) => {
20787
+ j(u, y, !0), n() ? e.onFinished(y) : j(p, "success");
20788
+ }).catch((y) => {
20789
+ f(ki(y, "Failed to complete purchase"));
20792
20790
  });
20793
20791
  return;
20794
20792
  }
20795
20793
  o(p) === "success" && o(u) && e.onFinished(o(u));
20796
- }, f = (b) => {
20797
- j(d, b, !0), j(p, "error");
20794
+ }, f = (y) => {
20795
+ j(d, y, !0), j(p, "error");
20798
20796
  }, v = () => {
20799
20797
  e.onError(o(d) ?? new fe(ge.UnknownError, "Unknown error without state set."));
20800
20798
  };
20801
- let y = null, h = null, k = null;
20799
+ let b = null, h = null, k = null;
20802
20800
  xr(async () => {
20803
- e.isInElement || (y = document.documentElement.style.height, h = document.documentElement.style.overflow, k = document.body.style.height, document.documentElement.style.height = "100%", document.body.style.height = "100%", document.documentElement.style.overflow = "hidden");
20804
- const b = a.identifier;
20805
- if (!b) {
20801
+ e.isInElement || (b = document.documentElement.style.height, h = document.documentElement.style.overflow, k = document.body.style.height, document.documentElement.style.height = "100%", document.body.style.height = "100%", document.documentElement.style.overflow = "hidden");
20802
+ const y = a.identifier;
20803
+ if (!y) {
20806
20804
  f(new fe(ge.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
20807
20805
  return;
20808
20806
  }
@@ -20811,7 +20809,7 @@ function H0(r, e) {
20811
20809
  try {
20812
20810
  const I = await e.purchaseOperationHelper.checkoutStart({
20813
20811
  appUserId: e.appUserId,
20814
- productId: b,
20812
+ productId: y,
20815
20813
  purchaseOption: e.purchaseOption,
20816
20814
  presentedOfferingContext: e.rcPackage.webBillingProduct.presentedOfferingContext,
20817
20815
  customerEmail: x,
@@ -20832,10 +20830,10 @@ function H0(r, e) {
20832
20830
  }
20833
20831
  }), Kt(() => {
20834
20832
  if (!e.isInElement) {
20835
- const b = (x, S, I) => {
20833
+ const y = (x, S, I) => {
20836
20834
  I === "" ? x.style.removeProperty(S) : x.style.setProperty(S, I);
20837
20835
  };
20838
- b(document.documentElement, "height", y), b(document.body, "height", k), b(document.documentElement, "overflow", h);
20836
+ y(document.documentElement, "height", b), y(document.body, "height", k), y(document.documentElement, "overflow", h);
20839
20837
  }
20840
20838
  }), W0(r, {
20841
20839
  get currentPage() {
@@ -21078,7 +21076,7 @@ function ex(r) {
21078
21076
  }
21079
21077
  return e;
21080
21078
  }
21081
- const P_ = "1.44.0", rx = "https://api.revenuecat.com", tx = "https://e.revenue.cat";
21079
+ const P_ = "1.45.0", rx = "https://api.revenuecat.com", tx = "https://e.revenue.cat";
21082
21080
  var wi;
21083
21081
  (function(r) {
21084
21082
  r[r.CONTINUE = 100] = "CONTINUE", r[r.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", r[r.PROCESSING = 102] = "PROCESSING", r[r.EARLY_HINTS = 103] = "EARLY_HINTS", r[r.OK = 200] = "OK", r[r.CREATED = 201] = "CREATED", r[r.ACCEPTED = 202] = "ACCEPTED", r[r.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", r[r.NO_CONTENT = 204] = "NO_CONTENT", r[r.RESET_CONTENT = 205] = "RESET_CONTENT", r[r.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", r[r.MULTI_STATUS = 207] = "MULTI_STATUS", r[r.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", r[r.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", r[r.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", r[r.SEE_OTHER = 303] = "SEE_OTHER", r[r.NOT_MODIFIED = 304] = "NOT_MODIFIED", r[r.USE_PROXY = 305] = "USE_PROXY", r[r.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", r[r.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", r[r.BAD_REQUEST = 400] = "BAD_REQUEST", r[r.UNAUTHORIZED = 401] = "UNAUTHORIZED", r[r.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", r[r.FORBIDDEN = 403] = "FORBIDDEN", r[r.NOT_FOUND = 404] = "NOT_FOUND", r[r.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", r[r.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", r[r.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", r[r.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", r[r.CONFLICT = 409] = "CONFLICT", r[r.GONE = 410] = "GONE", r[r.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", r[r.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", r[r.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", r[r.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", r[r.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", r[r.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", r[r.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", r[r.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", r[r.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", r[r.METHOD_FAILURE = 420] = "METHOD_FAILURE", r[r.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", r[r.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", r[r.LOCKED = 423] = "LOCKED", r[r.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", r[r.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", r[r.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", r[r.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", r[r.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", r[r.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", r[r.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", r[r.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", r[r.BAD_GATEWAY = 502] = "BAD_GATEWAY", r[r.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", r[r.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", r[r.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", r[r.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", r[r.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
@@ -21096,7 +21094,7 @@ function x_(r) {
21096
21094
  function E_(r) {
21097
21095
  return r ? ix.test(r) : !1;
21098
21096
  }
21099
- function Bn(r) {
21097
+ function Un(r) {
21100
21098
  return r ? ox.test(r) : !1;
21101
21099
  }
21102
21100
  async function Xr(r, e, t) {
@@ -21597,7 +21595,7 @@ class Ex {
21597
21595
  }
21598
21596
  }
21599
21597
  function Sx(r) {
21600
- if (!(gl(r) || Bn(r) || x_(r) || E_(r)))
21598
+ if (!(gl(r) || Un(r) || x_(r) || E_(r)))
21601
21599
  throw new Qe(
21602
21600
  De.InvalidCredentialsError,
21603
21601
  "Invalid API key. Use your Web Billing API key."
@@ -21659,7 +21657,7 @@ const N_ = (r, e) => {
21659
21657
  webBillingProduct: t,
21660
21658
  rcBillingProduct: t
21661
21659
  };
21662
- }, Ln = (r, e) => r == null ? null : N_(r, e), Tx = (r, e, t) => {
21660
+ }, Bn = (r, e) => r == null ? null : N_(r, e), Tx = (r, e, t) => {
21663
21661
  const n = r.offering_ids_by_placement ?? {}, a = r.fallback_offering_id;
21664
21662
  let i;
21665
21663
  if (t in n) {
@@ -21678,25 +21676,25 @@ const N_ = (r, e) => {
21678
21676
  ...i,
21679
21677
  packagesById: s,
21680
21678
  availablePackages: Object.values(s),
21681
- weekly: Ln(i.weekly, t),
21682
- monthly: Ln(
21679
+ weekly: Bn(i.weekly, t),
21680
+ monthly: Bn(
21683
21681
  i.monthly,
21684
21682
  t
21685
21683
  ),
21686
- twoMonth: Ln(
21684
+ twoMonth: Bn(
21687
21685
  i.twoMonth,
21688
21686
  t
21689
21687
  ),
21690
- threeMonth: Ln(
21688
+ threeMonth: Bn(
21691
21689
  i.threeMonth,
21692
21690
  t
21693
21691
  ),
21694
- sixMonth: Ln(
21692
+ sixMonth: Bn(
21695
21693
  i.sixMonth,
21696
21694
  t
21697
21695
  ),
21698
- annual: Ln(i.annual, t),
21699
- lifetime: Ln(
21696
+ annual: Bn(i.annual, t),
21697
+ lifetime: Bn(
21700
21698
  i.lifetime,
21701
21699
  t
21702
21700
  )
@@ -22294,7 +22292,7 @@ class Uu {
22294
22292
  Q(this, "id");
22295
22293
  Q(this, "timestamp");
22296
22294
  Q(this, "data");
22297
- this.id = ea(), this.timestamp = Date.now(), this.data = e;
22295
+ this.id = Cn(), this.timestamp = Date.now(), this.data = e;
22298
22296
  }
22299
22297
  toJSON() {
22300
22298
  const e = lE(this.data, this.id, this.timestamp);
@@ -22384,7 +22382,7 @@ class gE {
22384
22382
  Q(this, "workflowContext");
22385
22383
  Q(this, "isDisposed", !1);
22386
22384
  var t;
22387
- this.apiKey = e.apiKey, this.eventsUrl = `${((t = e.httpConfig) == null ? void 0 : t.eventsURL) ?? tx}/v1/events`, this.appUserId = e.appUserId, this.isSilent = e.silent || !1, this.rcSource = e.rcSource, this.workflowContext = e.workflowContext, this.traceId = e.trace_id || ea(), this.flushManager = new nE(
22385
+ this.apiKey = e.apiKey, this.eventsUrl = `${((t = e.httpConfig) == null ? void 0 : t.eventsURL) ?? tx}/v1/events`, this.appUserId = e.appUserId, this.isSilent = e.silent || !1, this.rcSource = e.rcSource, this.workflowContext = e.workflowContext, this.traceId = e.trace_id || Cn(), this.flushManager = new nE(
22388
22386
  dE,
22389
22387
  pE,
22390
22388
  _E,
@@ -22551,8 +22549,8 @@ function kE(r, e) {
22551
22549
  function p(A) {
22552
22550
  A.target === A.currentTarget && d()();
22553
22551
  }
22554
- An();
22555
- var g = yE(), _ = T(g), f = T(_), v = H(T(f), 2), y = T(v), h = T(y), k = H(T(h)), w = H(h, 2), b = H(T(w)), x = H(w, 2), S = H(T(x)), I = H(x, 2);
22552
+ qn();
22553
+ var g = yE(), _ = T(g), f = T(_), v = H(T(f), 2), b = T(v), h = T(b), k = H(T(h)), w = H(h, 2), y = H(T(w)), x = H(w, 2), S = H(T(x)), I = H(x, 2);
22556
22554
  {
22557
22555
  var z = (A) => {
22558
22556
  var N = mE(), W = H(T(N));
@@ -22584,7 +22582,7 @@ function kE(r, e) {
22584
22582
  }
22585
22583
  var O = H(v, 2), q = T(O), L = H(q, 2), F = H(L, 2);
22586
22584
  K(() => {
22587
- ye(k, ` ${t() ?? ""}`), ye(b, ` ${n() ?? ""}`), ye(S, ` ${a() ?? ""}`);
22585
+ ye(k, ` ${t() ?? ""}`), ye(y, ` ${n() ?? ""}`), ye(S, ` ${a() ?? ""}`);
22588
22586
  }), Ar("click", q, function(...A) {
22589
22587
  var N;
22590
22588
  (N = c()) == null || N.apply(this, A);
@@ -22597,7 +22595,7 @@ function kE(r, e) {
22597
22595
  }), Ar("click", g, p), P(r, g), he();
22598
22596
  }
22599
22597
  async function R_(r, e, t, n) {
22600
- const a = /* @__PURE__ */ new Date(), i = `test_${a.getTime()}_${ea()}`, s = `test_store_operation_session_${ea()}`, c = {
22598
+ const a = /* @__PURE__ */ new Date(), i = `test_${a.getTime()}_${Cn()}`, s = `test_store_operation_session_${Cn()}`, c = {
22601
22599
  storeTransactionId: i,
22602
22600
  productIdentifier: r.identifier,
22603
22601
  purchaseDate: a
@@ -22620,21 +22618,21 @@ async function R_(r, e, t, n) {
22620
22618
  function wE(r, e, t) {
22621
22619
  const n = r.rcPackage.webBillingProduct, a = n.productType, i = n.freeTrialPhase, s = n.introPricePhase, l = n.discountPhase, c = n.price, u = (d) => d ? `${d.number} ${d.unit}${d.number > 1 ? "s" : ""}` : "N/A";
22622
22620
  return new Promise((d, p) => {
22623
- var y, h;
22621
+ var b, h;
22624
22622
  const g = ml(), _ = g.createElement("div");
22625
22623
  g.body.appendChild(_);
22626
22624
  const f = () => {
22627
22625
  v && $a(v), g.body.removeChild(_);
22628
22626
  };
22629
22627
  let v = null;
22630
- v = Un(kE, {
22628
+ v = Rn(kE, {
22631
22629
  target: _,
22632
22630
  props: {
22633
22631
  productIdentifier: n.identifier,
22634
22632
  productType: a,
22635
22633
  basePrice: c.formattedPrice,
22636
22634
  freeTrialPeriod: i ? u(i.period) : void 0,
22637
- introPriceFormatted: (y = s == null ? void 0 : s.price) == null ? void 0 : y.formattedPrice,
22635
+ introPriceFormatted: (b = s == null ? void 0 : s.price) == null ? void 0 : b.formattedPrice,
22638
22636
  discountFormatted: (h = l == null ? void 0 : l.price) == null ? void 0 : h.formattedPrice,
22639
22637
  onValidPurchase: async () => {
22640
22638
  f(), ve.debugLog(
@@ -22794,40 +22792,40 @@ const CE = (r, e) => {
22794
22792
  taxAmountInMicros: null,
22795
22793
  taxBreakdown: null
22796
22794
  };
22797
- }, V_ = (r, e, t, n, a) => {
22798
- const i = r.webBillingProduct, s = CE(
22799
- i,
22795
+ }, V_ = (r, e, t, n, a, i) => {
22796
+ const s = r.webBillingProduct, l = CE(
22797
+ s,
22800
22798
  e
22801
- ), l = TE(
22802
- i,
22803
- s
22804
- ), c = Ql({
22805
- priceBreakdown: l,
22806
- productDetails: i,
22807
- purchaseOption: s,
22799
+ ), c = TE(
22800
+ s,
22801
+ l
22802
+ ), u = Ql({
22803
+ priceBreakdown: c,
22804
+ productDetails: s,
22805
+ purchaseOption: l,
22808
22806
  translator: n
22809
- }), d = i.productType === Yr.Subscription ? ir.buildStripeExpressCheckoutOptionsForSubscription(
22810
- i,
22811
- l,
22807
+ }), p = s.productType === Yr.Subscription ? ir.buildStripeExpressCheckoutOptionsForSubscription(
22812
22808
  s,
22809
+ c,
22810
+ l,
22813
22811
  n,
22814
22812
  t,
22815
- c,
22813
+ u,
22816
22814
  2,
22817
22815
  1
22818
22816
  ) : ir.buildStripeExpressCheckoutOptionsForNonSubscription(
22819
- i,
22820
- l,
22817
+ s,
22821
22818
  c,
22819
+ u,
22822
22820
  2,
22823
22821
  1
22824
22822
  );
22825
- return a && (d.buttonTheme = {
22826
- applePay: a,
22823
+ return i && (p.buttonTheme = {
22824
+ applePay: i,
22827
22825
  // Google Pay only supports "black" | "white"
22828
- googlePay: a === "white-outline" ? "white" : a
22829
- }), d;
22830
- }, Wu = (r, e, t, n, a, i, s) => {
22826
+ googlePay: i === "white-outline" ? "white" : i
22827
+ }), a && (p.business = { name: a }), p;
22828
+ }, Wu = (r, e, t, n, a, i, s, l) => {
22831
22829
  if (!e.elements_configuration)
22832
22830
  throw new fe(ge.ErrorSettingUpPurchase);
22833
22831
  return ir.updateElementsConfiguration(
@@ -22838,7 +22836,8 @@ const CE = (r, e) => {
22838
22836
  a,
22839
22837
  t,
22840
22838
  i,
22841
- s
22839
+ s == null ? void 0 : s.app_name,
22840
+ l
22842
22841
  ) };
22843
22842
  }, DE = async (r, e, t, n, a, i, s) => {
22844
22843
  var h, k;
@@ -22868,14 +22867,15 @@ const CE = (r, e) => {
22868
22867
  u,
22869
22868
  d,
22870
22869
  g
22871
- ), y = V_(
22870
+ ), b = V_(
22872
22871
  t,
22873
22872
  n,
22874
22873
  e,
22875
22874
  a,
22875
+ i == null ? void 0 : i.app_name,
22876
22876
  s
22877
22877
  );
22878
- return { stripeInstance: f, elementsInstance: v, expOptions: y };
22878
+ return { stripeInstance: f, elementsInstance: v, expOptions: b };
22879
22879
  };
22880
22880
  var AE = /* @__PURE__ */ V("<div><!></div>");
22881
22881
  function qE(r, e) {
@@ -22884,7 +22884,7 @@ function qE(r, e) {
22884
22884
  const t = "express_purchase_button";
22885
22885
  let n = qr(e.translator);
22886
22886
  const a = qr(((z = e.brandingInfo) == null ? void 0 : z.appearance) ?? null);
22887
- mr(gr, n), mr(Nn, a);
22887
+ mr(gr, n), mr(On, a);
22888
22888
  let i = /* @__PURE__ */ re(!0), s = /* @__PURE__ */ re(!1), l = /* @__PURE__ */ re(null), c = /* @__PURE__ */ re(null), u = /* @__PURE__ */ re(null);
22889
22889
  const d = (E) => {
22890
22890
  const M = Kp({
@@ -22917,7 +22917,7 @@ function qE(r, e) {
22917
22917
  const { stripeInstance: C, elementsInstance: B, expOptions: O } = await DE(E.stripe_gateway_params, M, e.rcPackage, e.purchaseOption, e.translator, e.brandingInfo, e.walletButtonTheme);
22918
22918
  j(c, C, !0), j(l, B, !0), j(u, O, !0);
22919
22919
  } else {
22920
- const { expOptions: C } = Wu(o(l), E.stripe_gateway_params, M, e.rcPackage, e.purchaseOption, e.translator, e.walletButtonTheme);
22920
+ const { expOptions: C } = Wu(o(l), E.stripe_gateway_params, M, e.rcPackage, e.purchaseOption, e.translator, e.brandingInfo, e.walletButtonTheme);
22921
22921
  j(u, C, !0);
22922
22922
  }
22923
22923
  } catch (C) {
@@ -22962,7 +22962,7 @@ function qE(r, e) {
22962
22962
  const B = (q = e.brandingInfo) != null && q.gateway_tax_collection_enabled ? await f(o(l), o(c)) : void 0;
22963
22963
  return await ir.confirmElements(o(c), o(l), C, B), !0;
22964
22964
  }
22965
- const y = async (E, M, C) => {
22965
+ const b = async (E, M, C) => {
22966
22966
  if (o(s))
22967
22967
  return;
22968
22968
  const B = Jp({ selectedPaymentMethod: E ?? null, mode: t });
@@ -23008,7 +23008,7 @@ function qE(r, e) {
23008
23008
  }), B = C.management_url;
23009
23009
  if (!o(l))
23010
23010
  throw new fe(ge.ErrorSettingUpPurchase);
23011
- const { expOptions: O } = Wu(o(l), C.gateway_params, B, e.rcPackage, e.purchaseOption, e.translator, e.walletButtonTheme);
23011
+ const { expOptions: O } = Wu(o(l), C.gateway_params, B, e.rcPackage, e.purchaseOption, e.translator, e.brandingInfo, e.walletButtonTheme);
23012
23012
  return { applePay: O.applePay, lineItems: O.lineItems };
23013
23013
  } catch (C) {
23014
23014
  throw d(C instanceof fe ? C : new fe(ge.ErrorSettingUpPurchase)), C;
@@ -23020,7 +23020,7 @@ function qE(r, e) {
23020
23020
  var E, M;
23021
23021
  e.eventsTracker.trackSDKEvent(Xp({ mode: "express_purchase_button" })), (M = (E = e.listener) == null ? void 0 : E.onPurchaseCancelled) == null || M.call(E);
23022
23022
  };
23023
- function b(E) {
23023
+ function y(E) {
23024
23024
  var C, B;
23025
23025
  const M = ((C = E.availablePaymentMethods) == null ? void 0 : C.applePay) || ((B = E.availablePaymentMethods) == null ? void 0 : B.googlePay);
23026
23026
  e.onReady && e.onReady(!!M);
@@ -23033,10 +23033,10 @@ function qE(r, e) {
23033
23033
  return o(l);
23034
23034
  },
23035
23035
  onError: _,
23036
- onSubmit: y,
23036
+ onSubmit: b,
23037
23037
  onClick: k,
23038
23038
  onCancel: w,
23039
- onReady: b,
23039
+ onReady: y,
23040
23040
  get expressCheckoutOptions() {
23041
23041
  return o(u);
23042
23042
  },
@@ -23061,7 +23061,7 @@ class FE {
23061
23061
  } };
23062
23062
  this.state.props.onReady = (s) => {
23063
23063
  t(i, s);
23064
- }, this.button = Un(qE, { target: e, props: this.state.props });
23064
+ }, this.button = Rn(qE, { target: e, props: this.state.props });
23065
23065
  }
23066
23066
  get state() {
23067
23067
  return o(Z(this, Ca));
@@ -23121,7 +23121,7 @@ const kr = class kr {
23121
23121
  var l;
23122
23122
  this._API_KEY = e, this._appUserId = t, this._flags = { ...Ns, ...a }, this._context = i, Pi(e) ? ve.debugLog(
23123
23123
  "Initializing Purchases SDK with Web billing sandbox API Key"
23124
- ) : Bn(e) && ve.debugLog("Initializing Purchases SDK with RC Test store API Key."), this.eventsTracker = new gE({
23124
+ ) : Un(e) && ve.debugLog("Initializing Purchases SDK with RC Test store API Key."), this.eventsTracker = new gE({
23125
23125
  apiKey: this._API_KEY,
23126
23126
  appUserId: this._appUserId,
23127
23127
  silent: !this._flags.collectAnalyticsEvents,
@@ -23263,7 +23263,7 @@ const kr = class kr {
23263
23263
  }
23264
23264
  /** @internal */
23265
23265
  async fetchAndCacheBrandingInfo() {
23266
- if (Bn(this._API_KEY)) {
23266
+ if (Un(this._API_KEY)) {
23267
23267
  ve.warnLog(
23268
23268
  "Branding info is not available for RC Test Store API keys."
23269
23269
  );
@@ -23323,14 +23323,14 @@ const kr = class kr {
23323
23323
  {},
23324
23324
  g,
23325
23325
  ((R = l.paywallComponents) == null ? void 0 : R.default_locale) ?? Mr
23326
- ), f = ea(), v = {
23326
+ ), f = Cn(), v = {
23327
23327
  appUserId: this._appUserId,
23328
23328
  sessionId: f,
23329
23329
  offeringId: l.identifier,
23330
23330
  paywallRevision: 0,
23331
23331
  paywallRcPublicId: (($ = l.paywallComponents) == null ? void 0 : $.id) ?? null,
23332
23332
  presentedOfferingContext: (de = (ue = l.availablePackages[0]) == null ? void 0 : ue.webBillingProduct) == null ? void 0 : de.presentedOfferingContext
23333
- }, y = {
23333
+ }, b = {
23334
23334
  displayMode: "full_screen",
23335
23335
  darkMode: ((X = (te = gn()) == null ? void 0 : te.matchMedia) == null ? void 0 : X.call(te, "(prefers-color-scheme: dark)").matches) ?? !1,
23336
23336
  locale: g
@@ -23347,7 +23347,7 @@ const kr = class kr {
23347
23347
  return {
23348
23348
  type: "paywall_component_interacted",
23349
23349
  ...v,
23350
- ...y,
23350
+ ...b,
23351
23351
  componentType: D.componentType,
23352
23352
  componentName: D.componentName,
23353
23353
  componentValue: D.componentValue,
@@ -23368,12 +23368,12 @@ const kr = class kr {
23368
23368
  currentProductId: U.currentProductId ?? k(U.currentPackageId),
23369
23369
  resultingProductId: U.resultingProductId ?? k(U.resultingPackageId)
23370
23370
  };
23371
- }, b = (D) => {
23371
+ }, y = (D) => {
23372
23372
  this.eventsTracker.trackPaywallEvent({
23373
23373
  type: D,
23374
23374
  ...v,
23375
23375
  ...D === "paywall_impression" ? {
23376
- ...y
23376
+ ...b
23377
23377
  } : {}
23378
23378
  });
23379
23379
  }, x = async (D, U = g) => {
@@ -23498,7 +23498,7 @@ const kr = class kr {
23498
23498
  let ee = null, oe = !1, we = !1;
23499
23499
  s.addEventListener("click", z);
23500
23500
  const be = () => {
23501
- we || (we = !0, b("paywall_close"));
23501
+ we || (we = !0, y("paywall_close"));
23502
23502
  }, Ce = (_e) => {
23503
23503
  !oe || we || this.eventsTracker.trackPaywallEvent(w(_e));
23504
23504
  }, ze = (_e) => {
@@ -23522,7 +23522,7 @@ const kr = class kr {
23522
23522
  );
23523
23523
  });
23524
23524
  }, Re = (_e) => (ce) => {
23525
- ce instanceof Qe && ce.errorCode === De.UserCancelledError && b("paywall_cancel"), ve.errorLog(`${_e}: ${ce}`), A(ce);
23525
+ ce instanceof Qe && ce.errorCode === De.UserCancelledError && y("paywall_cancel"), ve.errorLog(`${_e}: ${ce}`), A(ce);
23526
23526
  }, ne = this.getWalletButtonRender(
23527
23527
  l,
23528
23528
  Oe,
@@ -23532,7 +23532,7 @@ const kr = class kr {
23532
23532
  );
23533
23533
  if (s.innerHTML = "", N && W)
23534
23534
  try {
23535
- ee = Un(Xy, {
23535
+ ee = Rn(Xy, {
23536
23536
  target: s,
23537
23537
  props: {
23538
23538
  workflow: N,
@@ -23569,7 +23569,7 @@ const kr = class kr {
23569
23569
  return;
23570
23570
  }
23571
23571
  else
23572
- ee = Un(Up, {
23572
+ ee = Rn(Up, {
23573
23573
  target: s,
23574
23574
  props: {
23575
23575
  paywallData: l.paywallComponents,
@@ -23602,7 +23602,7 @@ const kr = class kr {
23602
23602
  onComponentInteraction: ze
23603
23603
  }
23604
23604
  });
23605
- je.observe(s, { childList: !0 }), b("paywall_impression"), oe = !0, s.style.opacity === "0" && (s.style.opacity = "1");
23605
+ je.observe(s, { childList: !0 }), y("paywall_impression"), oe = !0, s.style.opacity === "0" && (s.style.opacity = "1");
23606
23606
  });
23607
23607
  }
23608
23608
  /**
@@ -23686,24 +23686,19 @@ const kr = class kr {
23686
23686
  onButtonReady: c = () => {
23687
23687
  },
23688
23688
  walletButtonTheme: u
23689
- } = e;
23690
- if (a === void 0)
23691
- throw new Error(
23692
- "htmlTarget is required for presentExpressPurchaseButton"
23693
- );
23694
- const d = this._appUserId;
23689
+ } = e, d = this._appUserId;
23695
23690
  if (!gl(this._API_KEY))
23696
23691
  throw new Error(
23697
23692
  "The Express Purchase button is only available with Web Billing API Keys."
23698
23693
  );
23699
23694
  const p = n ?? t.webBillingProduct.defaultPurchaseOption, _ = { ...this._flags.autoCollectUTMAsMetadata ? Qo() : {}, ...e.metadata || {} }, f = new Sn({}, s, l);
23700
- return new Promise((v, y) => {
23695
+ return new Promise((v, b) => {
23701
23696
  const h = async (w) => {
23702
- const b = vu({
23697
+ const y = vu({
23703
23698
  redemptionInfo: w.redemptionInfo,
23704
23699
  mode: "express_purchase_button"
23705
23700
  });
23706
- this.eventsTracker.trackSDKEvent(b), ve.debugLog("Purchase finished");
23701
+ this.eventsTracker.trackSDKEvent(y), ve.debugLog("Purchase finished");
23707
23702
  const x = {
23708
23703
  customerInfo: await this._getCustomerInfoForUserId(d),
23709
23704
  redemptionInfo: w.redemptionInfo,
@@ -23718,12 +23713,12 @@ const kr = class kr {
23718
23713
  v(x);
23719
23714
  }, k = (w) => {
23720
23715
  var x;
23721
- const b = yu({
23716
+ const y = yu({
23722
23717
  errorCode: (x = w.errorCode) == null ? void 0 : x.toString(),
23723
23718
  errorMessage: w.message,
23724
23719
  mode: "express_purchase_button"
23725
23720
  });
23726
- this.eventsTracker.trackSDKEvent(b), y(w);
23721
+ this.eventsTracker.trackSDKEvent(y), b(w);
23727
23722
  };
23728
23723
  new FE(a, c, {
23729
23724
  appUserId: d,
@@ -23790,7 +23785,7 @@ const kr = class kr {
23790
23785
  };
23791
23786
  }
23792
23787
  async purchase(e) {
23793
- if (Bn(this._API_KEY)) {
23788
+ if (Un(this._API_KEY)) {
23794
23789
  const a = await wE(
23795
23790
  e,
23796
23791
  this.backend,
@@ -23818,15 +23813,15 @@ const kr = class kr {
23818
23813
  ve.debugLog(
23819
23814
  `Presenting Stripe checkout for package ${t.identifier}`
23820
23815
  );
23821
- const v = d || p, y = n ?? t.webBillingProduct.defaultPurchaseOption, h = ai({
23816
+ const v = d || p, b = n ?? t.webBillingProduct.defaultPurchaseOption, h = ai({
23822
23817
  appearance: (I = this._brandingInfo) == null ? void 0 : I.appearance,
23823
23818
  rcPackage: t,
23824
- purchaseOptionToUse: y,
23819
+ purchaseOptionToUse: b,
23825
23820
  customerEmail: i
23826
23821
  });
23827
23822
  this.eventsTracker.trackSDKEvent(h);
23828
23823
  const w = { ...this._flags.autoCollectUTMAsMetadata ? Qo() : {}, ...e.metadata || {} };
23829
- let b = null;
23824
+ let y = null;
23830
23825
  const x = this._brandingInfo;
23831
23826
  x && e.brandingAppearanceOverride && (x.appearance = e.brandingAppearanceOverride);
23832
23827
  const S = a !== void 0;
@@ -23834,7 +23829,7 @@ const kr = class kr {
23834
23829
  const M = gn();
23835
23830
  S || M.history.pushState({ checkoutOpen: !0 }, "");
23836
23831
  const C = () => {
23837
- b && $a(b), _.innerHTML = "";
23832
+ y && $a(y), _.innerHTML = "";
23838
23833
  }, B = this.createCheckoutOnCloseHandler(
23839
23834
  E,
23840
23835
  C
@@ -23849,13 +23844,13 @@ const kr = class kr {
23849
23844
  E,
23850
23845
  C
23851
23846
  );
23852
- b = Un(H0, {
23847
+ y = Rn(H0, {
23853
23848
  target: _,
23854
23849
  props: {
23855
23850
  isInElement: S,
23856
23851
  appUserId: f,
23857
23852
  rcPackage: t,
23858
- purchaseOption: y,
23853
+ purchaseOption: b,
23859
23854
  customerEmail: i,
23860
23855
  workflowPurchaseContext: s,
23861
23856
  attributionMetadata: l,
@@ -23895,14 +23890,14 @@ const kr = class kr {
23895
23890
  ve.debugLog(
23896
23891
  `Presenting purchase form for package ${t.identifier}`
23897
23892
  );
23898
- const y = c || u, h = n ?? t.webBillingProduct.defaultPurchaseOption, k = ai({
23893
+ const b = c || u, h = n ?? t.webBillingProduct.defaultPurchaseOption, k = ai({
23899
23894
  appearance: (z = this._brandingInfo) == null ? void 0 : z.appearance,
23900
23895
  rcPackage: t,
23901
23896
  purchaseOptionToUse: h,
23902
23897
  customerEmail: i
23903
23898
  });
23904
23899
  this.eventsTracker.trackSDKEvent(k);
23905
- const b = { ...this._flags.autoCollectUTMAsMetadata ? Qo() : {}, ...e.metadata || {} };
23900
+ const y = { ...this._flags.autoCollectUTMAsMetadata ? Qo() : {}, ...e.metadata || {} };
23906
23901
  let x = null;
23907
23902
  const S = this._brandingInfo;
23908
23903
  S && e.brandingAppearanceOverride && (S.appearance = e.brandingAppearanceOverride);
@@ -23926,7 +23921,7 @@ const kr = class kr {
23926
23921
  M,
23927
23922
  B
23928
23923
  );
23929
- x = Un(V1, {
23924
+ x = Rn(V1, {
23930
23925
  target: f,
23931
23926
  props: {
23932
23927
  isInElement: I,
@@ -23945,8 +23940,8 @@ const kr = class kr {
23945
23940
  eventsTracker: this.eventsTracker,
23946
23941
  brandingInfo: this._brandingInfo,
23947
23942
  purchaseOperationHelper: this.purchaseOperationHelper,
23948
- selectedLocale: y,
23949
- metadata: b,
23943
+ selectedLocale: b,
23944
+ metadata: y,
23950
23945
  defaultLocale: u,
23951
23946
  customTranslations: e.labelsOverride,
23952
23947
  termsAndConditionsUrl: e.termsAndConditionsUrl,
@@ -23959,7 +23954,7 @@ const kr = class kr {
23959
23954
  });
23960
23955
  }
23961
23956
  async performPaddlePurchase(e) {
23962
- var b;
23957
+ var y;
23963
23958
  const {
23964
23959
  rcPackage: t,
23965
23960
  purchaseOption: n,
@@ -23979,13 +23974,13 @@ const kr = class kr {
23979
23974
  ...e.metadata || {}
23980
23975
  }, v = this._brandingInfo;
23981
23976
  v && e.brandingAppearanceOverride && (v.appearance = e.brandingAppearanceOverride);
23982
- const y = ai({
23983
- appearance: (b = this._brandingInfo) == null ? void 0 : b.appearance,
23977
+ const b = ai({
23978
+ appearance: (y = this._brandingInfo) == null ? void 0 : y.appearance,
23984
23979
  rcPackage: t,
23985
23980
  purchaseOptionToUse: g,
23986
23981
  customerEmail: a
23987
23982
  });
23988
- this.eventsTracker.trackSDKEvent(y);
23983
+ this.eventsTracker.trackSDKEvent(b);
23989
23984
  const h = new _0(this.backend, this.eventsTracker);
23990
23985
  let k = null;
23991
23986
  const w = u !== void 0;
@@ -24005,7 +24000,7 @@ const kr = class kr {
24005
24000
  t,
24006
24001
  z
24007
24002
  ), C = this.createCheckoutOnErrorHandler(S);
24008
- k || (k = Un(z0, {
24003
+ k || (k = Rn(z0, {
24009
24004
  target: d,
24010
24005
  props: {
24011
24006
  eventsTracker: this.eventsTracker,
@@ -24092,7 +24087,7 @@ const kr = class kr {
24092
24087
  * @internal
24093
24088
  */
24094
24089
  _isConfiguredWithSimulatedStore() {
24095
- return Bn(this._API_KEY);
24090
+ return Un(this._API_KEY);
24096
24091
  }
24097
24092
  /**
24098
24093
  * Whether wallet methods should be force-enabled in the Express Checkout Element.
@@ -24108,7 +24103,7 @@ const kr = class kr {
24108
24103
  * @returns Promise<PurchaseResult>
24109
24104
  */
24110
24105
  async _postSimulatedStoreReceipt(e) {
24111
- if (!Bn(this._API_KEY))
24106
+ if (!Un(this._API_KEY))
24112
24107
  throw new Qe(
24113
24108
  De.ConfigurationError,
24114
24109
  "Posting a test store receipt is only available for RC Test Store API keys."
@@ -24201,7 +24196,7 @@ const kr = class kr {
24201
24196
  * @returns Whether the SDK is using a sandbox API Key.
24202
24197
  */
24203
24198
  isSandbox() {
24204
- return Pi(this._API_KEY) || Bn(this._API_KEY);
24199
+ return Pi(this._API_KEY) || Un(this._API_KEY);
24205
24200
  }
24206
24201
  /**
24207
24202
  * @returns Whether the current user is anonymous.
@@ -24268,7 +24263,7 @@ const kr = class kr {
24268
24263
  * @public
24269
24264
  */
24270
24265
  static generateRevenueCatAnonymousAppUserId() {
24271
- return `${Hu}${ea().replace(/-/g, "")}`;
24266
+ return `${Hu}${Cn().replace(/-/g, "")}`;
24272
24267
  }
24273
24268
  /**
24274
24269
  * Track an event.