@revenuecat/purchases-js 1.42.1 → 1.42.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,7 +53,7 @@ function Ci(e, r) {
53
53
  if (t.push(n), t.length === r) break;
54
54
  return t;
55
55
  }
56
- const Rr = 2, ti = 4, yo = 8, dl = 1 << 24, Gt = 16, ln = 32, Jn = 64, pl = 128, gt = 512, jr = 1024, Gr = 2048, Kt = 4096, ot = 8192, nn = 16384, Di = 32768, Wt = 65536, nc = 1 << 17, Ku = 1 << 18, Aa = 1 << 19, Xu = 1 << 20, $t = 1 << 25, no = 32768, As = 1 << 21, _l = 1 << 22, yn = 1 << 23, Rt = Symbol("$state"), Zu = Symbol("legacy props"), J_ = Symbol(""), ua = new class extends Error {
56
+ const Rr = 2, ti = 4, bo = 8, dl = 1 << 24, Gt = 16, ln = 32, Jn = 64, pl = 128, gt = 512, jr = 1024, Gr = 2048, Kt = 4096, ot = 8192, nn = 16384, Di = 32768, Wt = 65536, nc = 1 << 17, Ku = 1 << 18, Aa = 1 << 19, Xu = 1 << 20, $t = 1 << 25, ao = 32768, As = 1 << 21, _l = 1 << 22, yn = 1 << 23, Rt = Symbol("$state"), Zu = Symbol("legacy props"), J_ = Symbol(""), ua = new class extends Error {
57
57
  constructor() {
58
58
  super(...arguments);
59
59
  $(this, "name", "StaleReactionError");
@@ -217,7 +217,7 @@ function ml(e) {
217
217
  function td(e) {
218
218
  if (e !== null)
219
219
  for (const r of e)
220
- (r.f & Rr) === 0 || (r.f & no) === 0 || (r.f ^= no, td(
220
+ (r.f & Rr) === 0 || (r.f & ao) === 0 || (r.f ^= ao, td(
221
221
  /** @type {Derived} */
222
222
  r.deps
223
223
  ));
@@ -225,9 +225,9 @@ function td(e) {
225
225
  function nd(e, r, t) {
226
226
  (e.f & Gr) !== 0 ? r.add(e) : (e.f & Kt) !== 0 && t.add(e), td(e.deps), Dr(e, jr);
227
227
  }
228
- const Fo = /* @__PURE__ */ new Set();
229
- let Ge = null, Ko = null, Nr = null, _t = [], Ai = null, Fs = !1, Qa = !1;
230
- var ma, ha, Ln, jn, _o, va, ya, mt, Ms, qs, ad, od;
228
+ const Mo = /* @__PURE__ */ new Set();
229
+ let Ge = null, Xo = null, Nr = null, _t = [], Ai = null, Fs = !1, Qa = !1;
230
+ var ma, ha, Ln, jn, go, va, ya, mt, Ms, qs, ad, od;
231
231
  const wi = class wi {
232
232
  constructor() {
233
233
  Le(this, mt);
@@ -268,7 +268,7 @@ const wi = class wi {
268
268
  * TODO replace with Promise.withResolvers once supported widely enough
269
269
  * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
270
270
  */
271
- Le(this, _o, null);
271
+ Le(this, go, null);
272
272
  /**
273
273
  * Deferred effects (which run after async work has completed) that are DIRTY
274
274
  * @type {Set<Effect>}
@@ -296,11 +296,11 @@ const wi = class wi {
296
296
  */
297
297
  process(r) {
298
298
  var a;
299
- _t = [], Ko = null, this.apply();
299
+ _t = [], Xo = null, this.apply();
300
300
  var t = [], n = [];
301
301
  for (const i of r)
302
302
  Tr(this, mt, Ms).call(this, i, t, n);
303
- this.is_fork || Tr(this, mt, ad).call(this), this.is_deferred() ? (Tr(this, mt, qs).call(this, n), Tr(this, mt, qs).call(this, t)) : (Ko = this, Ge = null, ac(n), ac(t), Ko = null, (a = H(this, _o)) == null || a.resolve()), Nr = null;
303
+ this.is_fork || Tr(this, mt, ad).call(this), this.is_deferred() ? (Tr(this, mt, qs).call(this, n), Tr(this, mt, qs).call(this, t)) : (Xo = this, Ge = null, ac(n), ac(t), Xo = null, (a = H(this, go)) == null || a.resolve()), Nr = null;
304
304
  }
305
305
  /**
306
306
  * Associate a change to a given source with the current
@@ -358,12 +358,12 @@ const wi = class wi {
358
358
  H(this, ha).add(r);
359
359
  }
360
360
  settled() {
361
- return (H(this, _o) ?? Oe(this, _o, Gu())).promise;
361
+ return (H(this, go) ?? Oe(this, go, Gu())).promise;
362
362
  }
363
363
  static ensure() {
364
364
  if (Ge === null) {
365
365
  const r = Ge = new wi();
366
- Fo.add(Ge), Qa || wi.enqueue(() => {
366
+ Mo.add(Ge), Qa || wi.enqueue(() => {
367
367
  Ge === r && r.flush();
368
368
  });
369
369
  }
@@ -376,7 +376,7 @@ const wi = class wi {
376
376
  apply() {
377
377
  }
378
378
  };
379
- ma = new WeakMap(), ha = new WeakMap(), Ln = new WeakMap(), jn = new WeakMap(), _o = new WeakMap(), va = new WeakMap(), ya = new WeakMap(), mt = new WeakSet(), /**
379
+ ma = new WeakMap(), ha = new WeakMap(), Ln = new WeakMap(), jn = new WeakMap(), go = new WeakMap(), va = new WeakMap(), ya = new WeakMap(), mt = 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
@@ -388,7 +388,7 @@ Ms = function(r, t, n) {
388
388
  for (var a = r.first, i = null; a !== null; ) {
389
389
  var s = a.f, l = (s & (ln | Jn)) !== 0, c = l && (s & jr) !== 0, u = c || (s & ot) !== 0 || this.skipped_effects.has(a);
390
390
  if (!u && a.fn !== null) {
391
- l ? a.f ^= jr : i !== null && (s & (ti | yo | dl)) !== 0 ? i.b.defer_effect(a) : (s & ti) !== 0 ? t.push(a) : Na(a) && ((s & Gt) !== 0 && H(this, va).add(a), Ia(a));
391
+ l ? a.f ^= jr : i !== null && (s & (ti | bo | dl)) !== 0 ? i.b.defer_effect(a) : (s & ti) !== 0 ? t.push(a) : Na(a) && ((s & Gt) !== 0 && H(this, va).add(a), Ia(a));
392
392
  var d = a.first;
393
393
  if (d !== null) {
394
394
  a = d;
@@ -413,10 +413,10 @@ qs = function(r) {
413
413
  H(this, Ln) === 0 && Tr(this, mt, od).call(this);
414
414
  }, od = function() {
415
415
  var a;
416
- if (Fo.size > 1) {
416
+ if (Mo.size > 1) {
417
417
  this.previous.clear();
418
418
  var r = Nr, t = !0;
419
- for (const i of Fo) {
419
+ for (const i of Mo) {
420
420
  if (i === this) {
421
421
  t = !1;
422
422
  continue;
@@ -450,7 +450,7 @@ qs = function(r) {
450
450
  }
451
451
  Ge = null, Nr = r;
452
452
  }
453
- this.committed = !0, Fo.delete(this);
453
+ this.committed = !0, Mo.delete(this);
454
454
  };
455
455
  let en = wi;
456
456
  function fg(e) {
@@ -581,7 +581,7 @@ var hg = Wt | Aa | pl;
581
581
  function ud(e, r, t) {
582
582
  new vg(e, r, t);
583
583
  }
584
- var ct, cl, Nt, Bn, Lt, ut, Xr, jt, Zt, _n, Rn, gn, Un, ba, ka, fn, Pi, zr, yg, bg, zs, Xo, Zo, Os;
584
+ var ct, cl, Nt, Bn, Lt, ut, Xr, jt, Zt, _n, Rn, gn, Un, ba, ka, fn, Pi, zr, yg, bg, zs, Zo, Jo, Os;
585
585
  class vg {
586
586
  /**
587
587
  * @param {TemplateNode} node
@@ -641,7 +641,7 @@ class vg {
641
641
  } catch (i) {
642
642
  this.error(i);
643
643
  }
644
- H(this, gn) > 0 ? Tr(this, zr, Zo).call(this) : this.is_pending = !1;
644
+ H(this, gn) > 0 ? Tr(this, zr, Jo).call(this) : this.is_pending = !1;
645
645
  }
646
646
  return () => {
647
647
  var i;
@@ -696,7 +696,7 @@ class vg {
696
696
  }
697
697
  a = !0, i && sg(), en.ensure(), Oe(this, Rn, 0), H(this, jt) !== null && Hn(H(this, jt), () => {
698
698
  Oe(this, jt, null);
699
- }), this.is_pending = this.has_pending_snippet(), Oe(this, ut, Tr(this, zr, Xo).call(this, () => (Oe(this, Un, !1), Zr(() => H(this, Bn).call(this, H(this, ct)))))), H(this, gn) > 0 ? Tr(this, zr, Zo).call(this) : this.is_pending = !1;
699
+ }), this.is_pending = this.has_pending_snippet(), Oe(this, ut, Tr(this, zr, Zo).call(this, () => (Oe(this, Un, !1), Zr(() => H(this, Bn).call(this, H(this, ct)))))), H(this, gn) > 0 ? Tr(this, zr, Jo).call(this) : this.is_pending = !1;
700
700
  };
701
701
  var l = We;
702
702
  try {
@@ -707,7 +707,7 @@ class vg {
707
707
  Jr(l);
708
708
  }
709
709
  n && En(() => {
710
- Oe(this, jt, Tr(this, zr, Xo).call(this, () => {
710
+ Oe(this, jt, Tr(this, zr, Zo).call(this, () => {
711
711
  en.ensure(), Oe(this, Un, !0);
712
712
  try {
713
713
  return Zr(() => {
@@ -740,7 +740,7 @@ ct = new WeakMap(), cl = new WeakMap(), Nt = new WeakMap(), Bn = new WeakMap(),
740
740
  const r = H(this, Nt).pending;
741
741
  r && (Oe(this, Xr, Zr(() => r(H(this, ct)))), en.enqueue(() => {
742
742
  var t = Tr(this, zr, zs).call(this);
743
- Oe(this, ut, Tr(this, zr, Xo).call(this, () => (en.ensure(), Zr(() => H(this, Bn).call(this, t))))), H(this, gn) > 0 ? Tr(this, zr, Zo).call(this) : (Hn(
743
+ Oe(this, ut, Tr(this, zr, Zo).call(this, () => (en.ensure(), Zr(() => H(this, Bn).call(this, t))))), H(this, gn) > 0 ? Tr(this, zr, Jo).call(this) : (Hn(
744
744
  /** @type {Effect} */
745
745
  H(this, Xr),
746
746
  () => {
@@ -754,7 +754,7 @@ ct = new WeakMap(), cl = new WeakMap(), Nt = new WeakMap(), Bn = new WeakMap(),
754
754
  }, /**
755
755
  * @param {() => Effect | null} fn
756
756
  */
757
- Xo = function(r) {
757
+ Zo = function(r) {
758
758
  var t = Ze, n = We, a = ar;
759
759
  Yt(H(this, Lt)), Jr(H(this, Lt)), xa(H(this, Lt).ctx);
760
760
  try {
@@ -764,7 +764,7 @@ Xo = function(r) {
764
764
  } finally {
765
765
  Yt(t), Jr(n), xa(a);
766
766
  }
767
- }, Zo = function() {
767
+ }, Jo = function() {
768
768
  const r = (
769
769
  /** @type {(anchor: Node) => void} */
770
770
  H(this, Nt).pending
@@ -796,7 +796,7 @@ Os = function(r) {
796
796
  }
797
797
  };
798
798
  function dd(e, r, t, n) {
799
- const a = Ma() ? bo : Ut;
799
+ const a = Ma() ? ko : Ut;
800
800
  if (t.length === 0 && e.length === 0) {
801
801
  n(r.map(a));
802
802
  return;
@@ -837,7 +837,7 @@ function ni() {
837
837
  Yt(null), Jr(null), xa(null);
838
838
  }
839
839
  // @__NO_SIDE_EFFECTS__
840
- function bo(e) {
840
+ function ko(e) {
841
841
  var r = Rr | Gr, t = We !== null && (We.f & Rr) !== 0 ? (
842
842
  /** @type {Derived} */
843
843
  We
@@ -925,12 +925,12 @@ function wg(e, r, t) {
925
925
  }
926
926
  // @__NO_SIDE_EFFECTS__
927
927
  function m(e) {
928
- const r = /* @__PURE__ */ bo(e);
928
+ const r = /* @__PURE__ */ ko(e);
929
929
  return Dd(r), r;
930
930
  }
931
931
  // @__NO_SIDE_EFFECTS__
932
932
  function Ut(e) {
933
- const r = /* @__PURE__ */ bo(e);
933
+ const r = /* @__PURE__ */ ko(e);
934
934
  return r.equals = Qu, r;
935
935
  }
936
936
  function pd(e) {
@@ -959,7 +959,7 @@ function hl(e) {
959
959
  var r, t = Ze;
960
960
  Yt(Pg(e));
961
961
  try {
962
- e.f &= ~no, pd(e), r = qd(e);
962
+ e.f &= ~ao, pd(e), r = qd(e);
963
963
  } finally {
964
964
  Yt(t);
965
965
  }
@@ -1050,7 +1050,7 @@ function fd(e, r) {
1050
1050
  /** @type {Derived} */
1051
1051
  s
1052
1052
  );
1053
- Nr == null || Nr.delete(u), (l & no) === 0 && (l & gt && (s.f |= no), fd(u, Kt));
1053
+ Nr == null || Nr.delete(u), (l & ao) === 0 && (l & gt && (s.f |= ao), fd(u, Kt));
1054
1054
  } else c && ((l & Gt) !== 0 && yt !== null && yt.add(
1055
1055
  /** @type {Effect} */
1056
1056
  s
@@ -1223,7 +1223,7 @@ function at(e) {
1223
1223
  );
1224
1224
  }
1225
1225
  // @__NO_SIDE_EFFECTS__
1226
- function ko(e) {
1226
+ function wo(e) {
1227
1227
  return (
1228
1228
  /** @type {TemplateNode | null} */
1229
1229
  vd.call(e)
@@ -1235,14 +1235,14 @@ function q(e, r) {
1235
1235
  function se(e, r = !1) {
1236
1236
  {
1237
1237
  var t = /* @__PURE__ */ at(e);
1238
- return t instanceof Comment && t.data === "" ? /* @__PURE__ */ ko(t) : t;
1238
+ return t instanceof Comment && t.data === "" ? /* @__PURE__ */ wo(t) : t;
1239
1239
  }
1240
1240
  }
1241
1241
  function G(e, r = 1, t = !1) {
1242
1242
  let n = e;
1243
1243
  for (; r--; )
1244
1244
  n = /** @type {TemplateNode} */
1245
- /* @__PURE__ */ ko(n);
1245
+ /* @__PURE__ */ wo(n);
1246
1246
  return n;
1247
1247
  }
1248
1248
  function Ig(e) {
@@ -1343,7 +1343,7 @@ function vl() {
1343
1343
  return We !== null && !kt;
1344
1344
  }
1345
1345
  function za(e) {
1346
- const r = xt(yo, null, !1);
1346
+ const r = xt(bo, null, !1);
1347
1347
  return Dr(r, jr), r.teardown = e, r;
1348
1348
  }
1349
1349
  function pr(e) {
@@ -1365,7 +1365,7 @@ function kd(e) {
1365
1365
  return xt(ti | Xu, e, !1);
1366
1366
  }
1367
1367
  function Fg(e) {
1368
- return bd(), xt(yo | Xu, e, !0);
1368
+ return bd(), xt(bo | Xu, e, !0);
1369
1369
  }
1370
1370
  function Mg(e) {
1371
1371
  en.ensure();
@@ -1405,11 +1405,11 @@ function qg(e) {
1405
1405
  return xt(_l | Aa, e, !0);
1406
1406
  }
1407
1407
  function Oa(e, r = 0) {
1408
- return xt(yo | r, e, !0);
1408
+ return xt(bo | r, e, !0);
1409
1409
  }
1410
1410
  function K(e, r = [], t = [], n = []) {
1411
1411
  dd(n, r, t, (a) => {
1412
- xt(yo, () => e(...a.map(o)), !0);
1412
+ xt(bo, () => e(...a.map(o)), !0);
1413
1413
  });
1414
1414
  }
1415
1415
  function $n(e, r = 0) {
@@ -1469,7 +1469,7 @@ function Br(e, r = !0) {
1469
1469
  }
1470
1470
  function Ed(e, r) {
1471
1471
  for (; e !== null; ) {
1472
- var t = e === r ? null : /* @__PURE__ */ ko(e);
1472
+ var t = e === r ? null : /* @__PURE__ */ wo(e);
1473
1473
  e.remove(), e = t;
1474
1474
  }
1475
1475
  }
@@ -1525,7 +1525,7 @@ function Td(e, r) {
1525
1525
  function Cd(e, r) {
1526
1526
  if (e.nodes)
1527
1527
  for (var t = e.nodes.start, n = e.nodes.end; t !== null; ) {
1528
- var a = t === n ? null : /* @__PURE__ */ ko(t);
1528
+ var a = t === n ? null : /* @__PURE__ */ wo(t);
1529
1529
  r.append(t), t = a;
1530
1530
  }
1531
1531
  }
@@ -1553,7 +1553,7 @@ let Hr = null, tt = 0, lt = null;
1553
1553
  function Og(e) {
1554
1554
  lt = e;
1555
1555
  }
1556
- let Ad = 1, ao = 0, Yn = ao;
1556
+ let Ad = 1, oo = 0, Yn = oo;
1557
1557
  function cc(e) {
1558
1558
  Yn = e;
1559
1559
  }
@@ -1605,7 +1605,7 @@ function qd(e) {
1605
1605
  var f;
1606
1606
  var r = Hr, t = tt, n = lt, a = We, i = Yr, s = ar, l = kt, c = Yn, u = e.f;
1607
1607
  Hr = /** @type {null | Value[]} */
1608
- null, tt = 0, lt = null, We = (u & (ln | Jn)) === 0 ? e : null, Yr = null, xa(e.ctx), kt = !1, Yn = ++ao, e.ac !== null && (qa(() => {
1608
+ null, tt = 0, lt = null, We = (u & (ln | Jn)) === 0 ? e : null, Yr = null, xa(e.ctx), kt = !1, Yn = ++oo, e.ac !== null && (qa(() => {
1609
1609
  e.ac.abort(ua);
1610
1610
  }), e.ac = null);
1611
1611
  try {
@@ -1633,7 +1633,7 @@ function qd(e) {
1633
1633
  /** @type {Effect} */
1634
1634
  e
1635
1635
  );
1636
- return a !== null && a !== e && (ao++, lt !== null && (n === null ? n = lt : n.push(.../** @type {Source[]} */
1636
+ return a !== null && a !== e && (oo++, lt !== null && (n === null ? n = lt : n.push(.../** @type {Source[]} */
1637
1637
  lt))), (e.f & yn) !== 0 && (e.f ^= yn), p;
1638
1638
  } catch (h) {
1639
1639
  return rd(h);
@@ -1694,7 +1694,7 @@ function o(e) {
1694
1694
  if (!n && !(Yr != null && Yr.includes(e))) {
1695
1695
  var a = We.deps;
1696
1696
  if ((We.f & As) !== 0)
1697
- e.rv < ao && (e.rv = ao, Hr === null && a !== null && a[tt] === e ? tt++ : Hr === null ? Hr = [e] : Hr.includes(e) || Hr.push(e));
1697
+ e.rv < oo && (e.rv = oo, Hr === null && a !== null && a[tt] === e ? tt++ : Hr === null ? Hr = [e] : Hr.includes(e) || Hr.push(e));
1698
1698
  else {
1699
1699
  (We.deps ?? (We.deps = [])).push(e);
1700
1700
  var i = e.reactions;
@@ -2036,7 +2036,7 @@ function Kg(e) {
2036
2036
  return Gg.includes(e);
2037
2037
  }
2038
2038
  let ii = !0;
2039
- function Mo(e) {
2039
+ function qo(e) {
2040
2040
  ii = e;
2041
2041
  }
2042
2042
  function Ee(e, r) {
@@ -2102,8 +2102,8 @@ function Xa(e, r) {
2102
2102
  const t = Bs.get(e);
2103
2103
  return t ? (Bs.delete(e), t(r)) : Promise.resolve();
2104
2104
  }
2105
- var bt, Bt, nt, Vn, go, fo, xi;
2106
- class wo {
2105
+ var bt, Bt, nt, Vn, fo, mo, xi;
2106
+ class Po {
2107
2107
  /**
2108
2108
  * @param {TemplateNode} anchor
2109
2109
  * @param {boolean} transition
@@ -2143,8 +2143,8 @@ class wo {
2143
2143
  * Whether to pause (i.e. outro) on change, or destroy immediately.
2144
2144
  * This is necessary for `<svelte:element>`
2145
2145
  */
2146
- Le(this, go, !0);
2147
- Le(this, fo, () => {
2146
+ Le(this, fo, !0);
2147
+ Le(this, mo, () => {
2148
2148
  var r = (
2149
2149
  /** @type {Batch} */
2150
2150
  Ge
@@ -2176,7 +2176,7 @@ class wo {
2176
2176
  Br(s);
2177
2177
  H(this, Vn).delete(i), H(this, Bt).delete(i);
2178
2178
  };
2179
- H(this, go) || !n ? (H(this, Vn).add(i), Hn(s, l, !1)) : l();
2179
+ H(this, fo) || !n ? (H(this, Vn).add(i), Hn(s, l, !1)) : l();
2180
2180
  }
2181
2181
  }
2182
2182
  });
@@ -2189,7 +2189,7 @@ class wo {
2189
2189
  for (const [n, a] of H(this, nt))
2190
2190
  t.includes(n) || (Br(a.effect), H(this, nt).delete(n));
2191
2191
  });
2192
- this.anchor = r, Oe(this, go, t);
2192
+ this.anchor = r, Oe(this, fo, t);
2193
2193
  }
2194
2194
  /**
2195
2195
  *
@@ -2218,14 +2218,14 @@ class wo {
2218
2218
  l === r ? n.skipped_effects.delete(c) : n.skipped_effects.add(c);
2219
2219
  for (const [l, c] of H(this, nt))
2220
2220
  l === r ? n.skipped_effects.delete(c.effect) : n.skipped_effects.add(c.effect);
2221
- n.oncommit(H(this, fo)), n.ondiscard(H(this, xi));
2221
+ n.oncommit(H(this, mo)), n.ondiscard(H(this, xi));
2222
2222
  } else
2223
- H(this, fo).call(this);
2223
+ H(this, mo).call(this);
2224
2224
  }
2225
2225
  }
2226
- bt = new WeakMap(), Bt = new WeakMap(), nt = new WeakMap(), Vn = new WeakMap(), go = new WeakMap(), fo = new WeakMap(), xi = new WeakMap();
2226
+ bt = new WeakMap(), Bt = new WeakMap(), nt = new WeakMap(), Vn = new WeakMap(), fo = new WeakMap(), mo = new WeakMap(), xi = new WeakMap();
2227
2227
  function fr(e, r, ...t) {
2228
- var n = new wo(e);
2228
+ var n = new Po(e);
2229
2229
  $n(() => {
2230
2230
  const a = r() ?? null;
2231
2231
  n.ensure(a, a && ((i) => a(i, ...t)));
@@ -2251,7 +2251,7 @@ function Zg(e) {
2251
2251
  return r.u ?? (r.u = { a: [], b: [], m: [] });
2252
2252
  }
2253
2253
  function Y(e, r, t = !1) {
2254
- var n = new wo(e), a = t ? Wt : 0;
2254
+ var n = new Po(e), a = t ? Wt : 0;
2255
2255
  function i(s, l) {
2256
2256
  n.ensure(s, l);
2257
2257
  }
@@ -2263,7 +2263,7 @@ function Y(e, r, t = !1) {
2263
2263
  }, a);
2264
2264
  }
2265
2265
  function Jg(e, r, t) {
2266
- var n = new wo(e), a = !Ma();
2266
+ var n = new Po(e), a = !Ma();
2267
2267
  $n(() => {
2268
2268
  var i = r();
2269
2269
  a && i !== null && typeof i == "object" && (i = /** @type {V} */
@@ -2457,7 +2457,7 @@ function Za(e, r, t) {
2457
2457
  ) : t; n !== null; ) {
2458
2458
  var s = (
2459
2459
  /** @type {TemplateNode} */
2460
- /* @__PURE__ */ ko(n)
2460
+ /* @__PURE__ */ wo(n)
2461
2461
  );
2462
2462
  if (i.before(n), n === a)
2463
2463
  return;
@@ -2500,7 +2500,7 @@ function cn(e, r, t = !1, n = !1, a = !1) {
2500
2500
  });
2501
2501
  }
2502
2502
  function rf(e, r, t) {
2503
- var n = new wo(e);
2503
+ var n = new Po(e);
2504
2504
  $n(() => {
2505
2505
  var a = r() ?? null;
2506
2506
  n.ensure(a, a && ((i) => t(i, a)));
@@ -2534,7 +2534,7 @@ function nf(e) {
2534
2534
  }
2535
2535
  };
2536
2536
  }
2537
- function qo(e, r) {
2537
+ function zo(e, r) {
2538
2538
  qa(() => {
2539
2539
  e.dispatchEvent(new CustomEvent(r));
2540
2540
  });
@@ -2577,8 +2577,8 @@ function jd(e, r, t, n) {
2577
2577
  g == null || g.abort(), (b = g == null ? void 0 : g.reset) == null || b.call(g);
2578
2578
  return;
2579
2579
  }
2580
- i || _ == null || _.abort(), qo(r, "introstart"), _ = Us(r, f(), g, 1, () => {
2581
- qo(r, "introend"), _ == null || _.abort(), _ = u = void 0, r.style.overflow = p;
2580
+ i || _ == null || _.abort(), zo(r, "introstart"), _ = Us(r, f(), g, 1, () => {
2581
+ zo(r, "introend"), _ == null || _.abort(), _ = u = void 0, r.style.overflow = p;
2582
2582
  });
2583
2583
  },
2584
2584
  out(b) {
@@ -2586,8 +2586,8 @@ function jd(e, r, t, n) {
2586
2586
  b == null || b(), u = void 0;
2587
2587
  return;
2588
2588
  }
2589
- r.inert = !0, qo(r, "outrostart"), g = Us(r, f(), _, 0, () => {
2590
- qo(r, "outroend"), b == null || b();
2589
+ r.inert = !0, zo(r, "outrostart"), g = Us(r, f(), _, 0, () => {
2590
+ zo(r, "outroend"), b == null || b();
2591
2591
  });
2592
2592
  },
2593
2593
  stop: () => {
@@ -2693,12 +2693,12 @@ function Pl(e, r, t, n, a, i) {
2693
2693
  var s = null, l = (
2694
2694
  /** @type {TemplateNode} */
2695
2695
  e
2696
- ), c = new wo(l, !1);
2696
+ ), c = new Po(l, !1);
2697
2697
  $n(() => {
2698
2698
  const u = r() || null;
2699
2699
  var d = u === "svg" ? W_ : null;
2700
2700
  if (u === null) {
2701
- c.ensure(null, null), Mo(!0);
2701
+ c.ensure(null, null), qo(!0);
2702
2702
  return;
2703
2703
  }
2704
2704
  return c.ensure(u, (p) => {
@@ -2709,11 +2709,11 @@ function Pl(e, r, t, n, a, i) {
2709
2709
  }
2710
2710
  Ze.nodes.end = s, p.before(s);
2711
2711
  }
2712
- }), Mo(!0), () => {
2713
- u && Mo(!1);
2712
+ }), qo(!0), () => {
2713
+ u && qo(!1);
2714
2714
  };
2715
2715
  }, Wt), za(() => {
2716
- Mo(!0);
2716
+ qo(!0);
2717
2717
  });
2718
2718
  }
2719
2719
  function ve(e, r) {
@@ -3085,7 +3085,7 @@ function ff(e, r, t = r) {
3085
3085
  if (e === document.activeElement) {
3086
3086
  var i = (
3087
3087
  /** @type {Batch} */
3088
- Ko ?? Ge
3088
+ Xo ?? Ge
3089
3089
  );
3090
3090
  if (n.has(i))
3091
3091
  return;
@@ -3100,7 +3100,7 @@ function Xi(e) {
3100
3100
  function Zi(e) {
3101
3101
  return e === "" ? null : +e;
3102
3102
  }
3103
- var mn, wa, mo, Ei, Wd;
3103
+ var mn, wa, ho, Ei, Wd;
3104
3104
  const Si = class Si {
3105
3105
  /** @param {ResizeObserverOptions} options */
3106
3106
  constructor(r) {
@@ -3110,8 +3110,8 @@ const Si = class Si {
3110
3110
  /** @type {ResizeObserver | undefined} */
3111
3111
  Le(this, wa);
3112
3112
  /** @type {ResizeObserverOptions} */
3113
- Le(this, mo);
3114
- Oe(this, mo, r);
3113
+ Le(this, ho);
3114
+ Oe(this, ho, r);
3115
3115
  }
3116
3116
  /**
3117
3117
  * @param {Element} element
@@ -3119,13 +3119,13 @@ const Si = class Si {
3119
3119
  */
3120
3120
  observe(r, t) {
3121
3121
  var n = H(this, mn).get(r) || /* @__PURE__ */ new Set();
3122
- return n.add(t), H(this, mn).set(r, n), Tr(this, Ei, Wd).call(this).observe(r, H(this, mo)), () => {
3122
+ return n.add(t), H(this, mn).set(r, n), Tr(this, Ei, Wd).call(this).observe(r, H(this, ho)), () => {
3123
3123
  var a = H(this, mn).get(r);
3124
3124
  a.delete(t), a.size === 0 && (H(this, mn).delete(r), H(this, wa).unobserve(r));
3125
3125
  };
3126
3126
  }
3127
3127
  };
3128
- mn = new WeakMap(), wa = new WeakMap(), mo = new WeakMap(), Ei = new WeakSet(), Wd = function() {
3128
+ mn = new WeakMap(), wa = new WeakMap(), ho = new WeakMap(), Ei = new WeakSet(), Wd = function() {
3129
3129
  return H(this, wa) ?? Oe(this, wa, new ResizeObserver(
3130
3130
  /** @param {any} entries */
3131
3131
  (r) => {
@@ -3185,7 +3185,7 @@ function In(e = !1) {
3185
3185
  /** @type {Record<string, any>} */
3186
3186
  {}
3187
3187
  );
3188
- const s = /* @__PURE__ */ bo(() => {
3188
+ const s = /* @__PURE__ */ ko(() => {
3189
3189
  let l = !1;
3190
3190
  const c = r.s;
3191
3191
  for (const u in c)
@@ -3305,7 +3305,7 @@ function Kd(e) {
3305
3305
  let r;
3306
3306
  return El(e, (t) => r = t)(), r;
3307
3307
  }
3308
- let zo = !1, Hs = Symbol();
3308
+ let Oo = !1, Hs = Symbol();
3309
3309
  function _e(e, r, t) {
3310
3310
  const n = t[r] ?? (t[r] = {
3311
3311
  store: null,
@@ -3341,11 +3341,11 @@ function He() {
3341
3341
  return [e, r];
3342
3342
  }
3343
3343
  function vf(e) {
3344
- var r = zo;
3344
+ var r = Oo;
3345
3345
  try {
3346
- return zo = !1, [e(), zo];
3346
+ return Oo = !1, [e(), Oo];
3347
3347
  } finally {
3348
- zo = r;
3348
+ Oo = r;
3349
3349
  }
3350
3350
  }
3351
3351
  const yf = {
@@ -3475,7 +3475,7 @@ function Z(e, r, t, n) {
3475
3475
  }
3476
3476
  );
3477
3477
  }
3478
- var v = !1, y = ((t & z_) !== 0 ? bo : Ut)(() => (v = !1, f()));
3478
+ var v = !1, y = ((t & z_) !== 0 ? ko : Ut)(() => (v = !1, f()));
3479
3479
  i && o(y);
3480
3480
  var k = (
3481
3481
  /** @type {Effect} */
@@ -7655,7 +7655,7 @@ function nm(e) {
7655
7655
  }
7656
7656
  return bc.set(e, t), t;
7657
7657
  }
7658
- function Jo(e, r) {
7658
+ function Qo(e, r) {
7659
7659
  const n = 10 ** (6 - nm(r)), a = Math.round(e / n * 1e9) / 1e9;
7660
7660
  return Math.floor(a) * n;
7661
7661
  }
@@ -7958,7 +7958,7 @@ function pm(e) {
7958
7958
  return [];
7959
7959
  }
7960
7960
  }
7961
- function Oo(e, r) {
7961
+ function No(e, r) {
7962
7962
  const t = [e];
7963
7963
  for (; t.length > 0; ) {
7964
7964
  const n = t.pop();
@@ -7970,17 +7970,17 @@ function Oo(e, r) {
7970
7970
  }
7971
7971
  }
7972
7972
  function _m({ stack: e, sticky_footer: r }) {
7973
- const t = Oo(e, (a) => a.is_selected_by_default);
7973
+ const t = No(e, (a) => a.is_selected_by_default);
7974
7974
  if (t !== void 0)
7975
7975
  return t.package_id;
7976
- const n = Oo(e, () => !0);
7976
+ const n = No(e, () => !0);
7977
7977
  if (n !== void 0)
7978
7978
  return n.package_id;
7979
7979
  if (r != null) {
7980
- const a = Oo(r, (s) => s.is_selected_by_default);
7980
+ const a = No(r, (s) => s.is_selected_by_default);
7981
7981
  if (a !== void 0)
7982
7982
  return a.package_id;
7983
- const i = Oo(r, () => !0);
7983
+ const i = No(r, () => !0);
7984
7984
  if (i !== void 0)
7985
7985
  return i.package_id;
7986
7986
  }
@@ -8201,13 +8201,13 @@ function bm(e, r) {
8201
8201
  }
8202
8202
  S(e, D), fe(), s();
8203
8203
  }
8204
- const sp = 1e3, Ws = "light", km = "#000000", oo = {
8204
+ const sp = 1e3, Ws = "light", km = "#000000", io = {
8205
8205
  top: 0,
8206
8206
  bottom: 0,
8207
8207
  leading: 0,
8208
8208
  trailing: 0
8209
8209
  };
8210
- var ho, vo;
8210
+ var vo, yo;
8211
8211
  class wm {
8212
8212
  /**
8213
8213
  *
@@ -8215,15 +8215,15 @@ class wm {
8215
8215
  * @param {(update: () => void) => void} onsubscribe
8216
8216
  */
8217
8217
  constructor(r, t) {
8218
- Le(this, ho);
8219
8218
  Le(this, vo);
8220
- Oe(this, ho, r), Oe(this, vo, cd(t));
8219
+ Le(this, yo);
8220
+ Oe(this, vo, r), Oe(this, yo, cd(t));
8221
8221
  }
8222
8222
  get current() {
8223
- return H(this, vo).call(this), H(this, ho).call(this);
8223
+ return H(this, yo).call(this), H(this, vo).call(this);
8224
8224
  }
8225
8225
  }
8226
- ho = new WeakMap(), vo = new WeakMap();
8226
+ vo = new WeakMap(), yo = new WeakMap();
8227
8227
  const Pm = /\(.+\)/, xm = /* @__PURE__ */ new Set(["all", "print", "screen", "and", "or", "not", "only"]);
8228
8228
  class Em extends wm {
8229
8229
  /**
@@ -8329,10 +8329,10 @@ function vr(e) {
8329
8329
  }
8330
8330
  }
8331
8331
  function mr(e) {
8332
- const { top: r, bottom: t, leading: n, trailing: a } = e ?? oo;
8332
+ const { top: r, bottom: t, leading: n, trailing: a } = e ?? io;
8333
8333
  return up(r, a, t, n);
8334
8334
  }
8335
- function Po(e) {
8335
+ function xo(e) {
8336
8336
  if (e.type === "alias" || e.type === "hex")
8337
8337
  return e.value;
8338
8338
  const r = e.points.map((t) => `${t.color} ${t.percent}%`).join(", ");
@@ -8347,7 +8347,7 @@ function Qr(e, r) {
8347
8347
  if (r == null)
8348
8348
  return "transparent";
8349
8349
  const t = Wr(e, r);
8350
- return Po(t);
8350
+ return xo(t);
8351
8351
  }
8352
8352
  function di(e, r) {
8353
8353
  return r == null ? "transparent" : Qr(e, r);
@@ -8363,7 +8363,7 @@ function xn(e, r) {
8363
8363
  border: "none",
8364
8364
  ...t
8365
8365
  };
8366
- const { width: n } = r, a = Wr(e, r.color), i = Po(a);
8366
+ const { width: n } = r, a = Wr(e, r.color), i = xo(a);
8367
8367
  return a.type === "alias" || a.type === "hex" ? {
8368
8368
  border: `${n}px solid ${i}`,
8369
8369
  ...t
@@ -8414,7 +8414,7 @@ function Am(e, r) {
8414
8414
  url_low_res: n.length > 0 ? n : null
8415
8415
  };
8416
8416
  }
8417
- function xo(e, r) {
8417
+ function Eo(e, r) {
8418
8418
  const t = Mm(r), n = Am(e, r.value);
8419
8419
  return {
8420
8420
  url: n.url,
@@ -8447,7 +8447,7 @@ function zm(e, r) {
8447
8447
  if (t == null)
8448
8448
  return { kind: "none" };
8449
8449
  if (t.type === "video") {
8450
- const s = xo(r, t);
8450
+ const s = Eo(r, t);
8451
8451
  return {
8452
8452
  kind: "video",
8453
8453
  url: s.url,
@@ -8496,7 +8496,7 @@ function Fn(e, r, t) {
8496
8496
  function Ys(e) {
8497
8497
  return e.startsWith("RCFM:");
8498
8498
  }
8499
- function io(e) {
8499
+ function so(e) {
8500
8500
  return `RevCatPaywall-${e}`;
8501
8501
  }
8502
8502
  async function Om(e) {
@@ -8511,11 +8511,11 @@ async function Om(e) {
8511
8511
  continue;
8512
8512
  }
8513
8513
  try {
8514
- const s = `${io(i.family)}-${i.style}-${i.weight}`, l = new FontFace(s, `url(${i.url})`, {
8514
+ const s = `${so(i.family)}-${i.style}-${i.weight}`, l = new FontFace(s, `url(${i.url})`, {
8515
8515
  weight: ((t = i.weight) == null ? void 0 : t.toString()) || "400",
8516
8516
  style: i.style || "normal"
8517
8517
  });
8518
- l.family = io(i.family);
8518
+ l.family = so(i.family);
8519
8519
  const c = l.load().then(() => {
8520
8520
  document.fonts.add(l), console.debug(`[Font Registration] Successfully registered font: ${s} (${i.family}, ${i.weight}, ${i.style})`);
8521
8521
  }).catch((u) => {
@@ -8561,7 +8561,7 @@ const Rm = {
8561
8561
  light: { type: "hex", value: km }
8562
8562
  };
8563
8563
  function Gs(e, r) {
8564
- const t = Wr(e, r), n = Po(t);
8564
+ const t = Wr(e, r), n = xo(t);
8565
8565
  switch (t.type) {
8566
8566
  case "alias":
8567
8567
  case "hex":
@@ -8589,7 +8589,7 @@ const Um = (e, r, t) => {
8589
8589
  "text-align": hn[l] || hn.leading,
8590
8590
  "font-weight": s ?? Ta[i] ?? Ta.regular,
8591
8591
  "font-size": Number.isInteger(Number(a)) ? `${a}px` : ui[a] || ui.body_m,
8592
- "font-family": Ys(n ?? "") ? io(g ?? "") : "sans-serif"
8592
+ "font-family": Ys(n ?? "") ? so(g ?? "") : "sans-serif"
8593
8593
  });
8594
8594
  };
8595
8595
  function Vm(e, r, t, n) {
@@ -8669,7 +8669,7 @@ function Gm(e, r) {
8669
8669
  "text-align": hn[o(T)] || hn.leading,
8670
8670
  "font-weight": o(x) ?? Ta.regular,
8671
8671
  "font-size": `${o(A)}px`,
8672
- "font-family": Ys(o(D) ?? "") ? io(be ?? "") : "sans-serif",
8672
+ "font-family": Ys(o(D) ?? "") ? so(be ?? "") : "sans-serif",
8673
8673
  "--placeholder-color": $e.color,
8674
8674
  "--placeholder-background": $e.background,
8675
8675
  "--placeholder-background-clip": $e["background-clip"],
@@ -8677,7 +8677,7 @@ function Gm(e, r) {
8677
8677
  "--placeholder-text-align": hn[o(F)] || hn.leading,
8678
8678
  "--placeholder-font-weight": o(M) ?? Ta.regular,
8679
8679
  "--placeholder-font-size": `${o(L)}px`,
8680
- "--placeholder-font-family": Ys(o(z) ?? "") ? io(Ie ?? "") : "sans-serif"
8680
+ "--placeholder-font-family": Ys(o(z) ?? "") ? so(Ie ?? "") : "sans-serif"
8681
8681
  });
8682
8682
  }), we = Dn(), { getLocalizedString: Ue } = qi(), Ne = /* @__PURE__ */ m(() => dp(Ue(o(p)), t())), Pe = /* @__PURE__ */ m(() => {
8683
8683
  switch (r.keyboard_type) {
@@ -9113,9 +9113,9 @@ function lh() {
9113
9113
  };
9114
9114
  }(as)), as;
9115
9115
  }
9116
- var No = {}, qc;
9116
+ var Lo = {}, qc;
9117
9117
  function mp() {
9118
- if (qc) return No;
9118
+ if (qc) return Lo;
9119
9119
  qc = 1;
9120
9120
  const e = Al(), r = [
9121
9121
  // L M Q H
@@ -9442,7 +9442,7 @@ function mp() {
9442
9442
  2040,
9443
9443
  2430
9444
9444
  ];
9445
- return No.getBlocksCount = function(a, i) {
9445
+ return Lo.getBlocksCount = function(a, i) {
9446
9446
  switch (i) {
9447
9447
  case e.L:
9448
9448
  return r[(a - 1) * 4 + 0];
@@ -9455,7 +9455,7 @@ function mp() {
9455
9455
  default:
9456
9456
  return;
9457
9457
  }
9458
- }, No.getTotalCodewordsCount = function(a, i) {
9458
+ }, Lo.getTotalCodewordsCount = function(a, i) {
9459
9459
  switch (i) {
9460
9460
  case e.L:
9461
9461
  return t[(a - 1) * 4 + 0];
@@ -9468,7 +9468,7 @@ function mp() {
9468
9468
  default:
9469
9469
  return;
9470
9470
  }
9471
- }, No;
9471
+ }, Lo;
9472
9472
  }
9473
9473
  var os = {}, Ya = {}, zc;
9474
9474
  function ch() {
@@ -10520,7 +10520,7 @@ const Oh = {
10520
10520
  * so \`object-fit: cover|contain\` applies to the full backdrop box (e.g. carousel).
10521
10521
  */.rc-bg-video.svelte-ap3n2x :is(video:where(.svelte-ap3n2x), img:where(.svelte-ap3n2x)).fill:where(.svelte-ap3n2x) {position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;display:block;}.rc-bg-video.svelte-ap3n2x video.fill:where(.svelte-ap3n2x) {transform:translateZ(0);-webkit-transform:translateZ(0);}`
10522
10522
  };
10523
- function Eo(e, r) {
10523
+ function So(e, r) {
10524
10524
  ge(r, !0), ve(e, Oh);
10525
10525
  let t = Z(r, "urlLowRes", 3, null), n = Z(r, "poster", 3, null), a = /* @__PURE__ */ re(null), i = /* @__PURE__ */ re(!1), s = /* @__PURE__ */ re(!1), l = /* @__PURE__ */ re(!1);
10526
10526
  xr(() => {
@@ -10629,7 +10629,7 @@ function Nh(e) {
10629
10629
  function Lh(e, r, t) {
10630
10630
  return Math.max(r, Math.min(e, t));
10631
10631
  }
10632
- function Lo(e) {
10632
+ function jo(e) {
10633
10633
  if (e === null)
10634
10634
  return 0;
10635
10635
  const r = window.getComputedStyle(e);
@@ -10700,7 +10700,7 @@ function Kh(e, r) {
10700
10700
  }), A = /* @__PURE__ */ m(() => {
10701
10701
  if (!o(x)) return null;
10702
10702
  const ie = o(p);
10703
- return !ie || ie.type !== "video" ? null : xo(o(I), ie);
10703
+ return !ie || ie.type !== "video" ? null : Eo(o(I), ie);
10704
10704
  }), T = /* @__PURE__ */ m(() => An(o(_))), j = /* @__PURE__ */ m(() => {
10705
10705
  var ie;
10706
10706
  return rr({
@@ -10791,18 +10791,18 @@ function Kh(e, r) {
10791
10791
  return Math.round(ie / -o(X)) - o(Q);
10792
10792
  }
10793
10793
  function Ue() {
10794
- const ie = Lo(F), Re = we(ie);
10794
+ const ie = jo(F), Re = we(ie);
10795
10795
  N(O, (Re + o(c).length) % o(c).length), J(), ce(o(O)), requestAnimationFrame(() => {
10796
10796
  De();
10797
10797
  });
10798
10798
  }
10799
10799
  let Ne = /* @__PURE__ */ re(0);
10800
10800
  function Pe(ie) {
10801
- ie.currentTarget.setPointerCapture(ie.pointerId), N(Ne, Lo(F), !0), N(R, o(O), !0);
10801
+ ie.currentTarget.setPointerCapture(ie.pointerId), N(Ne, jo(F), !0), N(R, o(O), !0);
10802
10802
  }
10803
10803
  function xe(ie) {
10804
10804
  ie.currentTarget.releasePointerCapture(ie.pointerId);
10805
- const dr = Lo(F), cr = we(dr), Ir = oe(cr);
10805
+ const dr = jo(F), cr = we(dr), Ir = oe(cr);
10806
10806
  o(R) !== null && o(R) !== Ir && D({
10807
10807
  componentType: "carousel",
10808
10808
  componentName: r.name,
@@ -10820,14 +10820,14 @@ function Kh(e, r) {
10820
10820
  const [dr, cr] = o(b) ? [
10821
10821
  o(Ne) - o(C),
10822
10822
  o(Ne) + o(C)
10823
- ] : [-(o(c).length - 1) * o(X), 0], Ir = Lo(F), Ar = Lh(Ir + ie.movementX, dr, cr), Et = we(Ar);
10823
+ ] : [-(o(c).length - 1) * o(X), 0], Ir = jo(F), Ar = Lh(Ir + ie.movementX, dr, cr), Et = we(Ar);
10824
10824
  N(O, (Et + o(c).length) % o(c).length), ne(Ar), J();
10825
10825
  }
10826
10826
  var Se = Yh(), Be = q(Se);
10827
10827
  {
10828
10828
  var ae = (ie) => {
10829
10829
  var Re = Wh(), dr = q(Re);
10830
- Eo(dr, {
10830
+ So(dr, {
10831
10831
  get url() {
10832
10832
  return o(A).url;
10833
10833
  },
@@ -11074,7 +11074,7 @@ function av(e, r) {
11074
11074
  }), z = /* @__PURE__ */ m(() => {
11075
11075
  if (!o(j)) return null;
11076
11076
  const J = o(E);
11077
- return !J || J.type !== "video" ? null : xo(o(T), J);
11077
+ return !J || J.type !== "video" ? null : Eo(o(T), J);
11078
11078
  }), M = /* @__PURE__ */ m(() => An(o(I))), L = /* @__PURE__ */ m(() => rr({
11079
11079
  position: "relative",
11080
11080
  width: vr(o(P).width),
@@ -11136,7 +11136,7 @@ function av(e, r) {
11136
11136
  var Q = tv(), ne = q(Q);
11137
11137
  {
11138
11138
  var ce = (we) => {
11139
- Eo(we, {
11139
+ So(we, {
11140
11140
  get url() {
11141
11141
  return o(z).url;
11142
11142
  },
@@ -11280,7 +11280,7 @@ function pv(e, r) {
11280
11280
  size: r.size ?? _,
11281
11281
  dimension: r.dimension ?? g,
11282
11282
  spacing: r.spacing ?? 0,
11283
- margin: r.margin ?? oo,
11283
+ margin: r.margin ?? io,
11284
11284
  border: r.border ?? null,
11285
11285
  shape: r.shape ?? null,
11286
11286
  shadow: r.shadow ?? null
@@ -11292,7 +11292,7 @@ function pv(e, r) {
11292
11292
  ...Ml(o(v)),
11293
11293
  gap: Or(o(y)),
11294
11294
  margin: mr({
11295
- ...o(k) ? { ...o(k) } : { ...oo }
11295
+ ...o(k) ? { ...o(k) } : { ...io }
11296
11296
  })
11297
11297
  })), b = /* @__PURE__ */ m(() => rr(o(P)));
11298
11298
  var w = ke(), E = se(w);
@@ -11345,7 +11345,7 @@ function fv(e, r) {
11345
11345
  size: r.size ?? t,
11346
11346
  dimension: r.dimension ?? n,
11347
11347
  spacing: r.spacing ?? 0,
11348
- margin: r.margin ?? oo,
11348
+ margin: r.margin ?? io,
11349
11349
  border: r.border ?? null,
11350
11350
  shape: r.shape ?? null,
11351
11351
  shadow: r.shadow ?? null,
@@ -11363,7 +11363,7 @@ function fv(e, r) {
11363
11363
  ...o(c),
11364
11364
  bottom: Math.max(o(c).bottom, g)
11365
11365
  } : {
11366
- ...oo,
11366
+ ...io,
11367
11367
  bottom: g
11368
11368
  }
11369
11369
  })
@@ -11506,7 +11506,7 @@ function Cr(e, r) {
11506
11506
  }), B = /* @__PURE__ */ m(() => {
11507
11507
  if (!o(C)) return null;
11508
11508
  const ne = o(T);
11509
- return !ne || ne.type !== "video" ? null : xo(o(O), ne);
11509
+ return !ne || ne.type !== "video" ? null : Eo(o(O), ne);
11510
11510
  }), X = /* @__PURE__ */ m(() => An(o(z))), R = /* @__PURE__ */ m(() => rr({
11511
11511
  display: "flex",
11512
11512
  position: "relative",
@@ -11579,7 +11579,7 @@ function Cr(e, r) {
11579
11579
  var Ue = wv(), Ne = se(Ue);
11580
11580
  {
11581
11581
  var Pe = (ue) => {
11582
- Eo(ue, {
11582
+ So(ue, {
11583
11583
  get url() {
11584
11584
  return o(B).url;
11585
11585
  },
@@ -11657,10 +11657,10 @@ function Cr(e, r) {
11657
11657
  }
11658
11658
  S(e, U), fe(), c();
11659
11659
  }
11660
- function jo(e) {
11660
+ function Bo(e) {
11661
11661
  return e < 10 ? `0${e}` : `${e}`;
11662
11662
  }
11663
- function Bo(e) {
11663
+ function Ro(e) {
11664
11664
  return `${e}`;
11665
11665
  }
11666
11666
  function eu(e) {
@@ -11678,14 +11678,14 @@ function eu(e) {
11678
11678
  };
11679
11679
  const a = Math.floor(n / 1e3), i = Math.floor(a / 60), s = Math.floor(i / 60), c = Math.floor(s / 24), u = s % 24, d = i % 60, p = a % 60;
11680
11680
  return {
11681
- count_days_with_zero: jo(c),
11682
- count_days_without_zero: Bo(c),
11683
- count_hours_with_zero: jo(u),
11684
- count_hours_without_zero: Bo(u),
11685
- count_minutes_with_zero: jo(d),
11686
- count_minutes_without_zero: Bo(d),
11687
- count_seconds_with_zero: jo(p),
11688
- count_seconds_without_zero: Bo(p)
11681
+ count_days_with_zero: Bo(c),
11682
+ count_days_without_zero: Ro(c),
11683
+ count_hours_with_zero: Bo(u),
11684
+ count_hours_without_zero: Ro(u),
11685
+ count_minutes_with_zero: Bo(d),
11686
+ count_minutes_without_zero: Ro(d),
11687
+ count_seconds_with_zero: Bo(p),
11688
+ count_seconds_without_zero: Ro(p)
11689
11689
  };
11690
11690
  }
11691
11691
  function ru(e) {
@@ -12116,23 +12116,23 @@ function Zv(e) {
12116
12116
  const r = Ep.exec(e);
12117
12117
  return r != null && (r[1] == null || r[1].toLowerCase() === "ff");
12118
12118
  }
12119
- function Ro(e) {
12119
+ function Uo(e) {
12120
12120
  return e.length === 7 ? `${e.toLowerCase()}ff` : e.toLowerCase();
12121
12121
  }
12122
12122
  function Sp(e, r, t) {
12123
12123
  const n = Kv(e, r, t);
12124
- return n ? Po(n) : null;
12124
+ return n ? xo(n) : null;
12125
12125
  }
12126
12126
  function ks(e, r) {
12127
12127
  const t = e[0], n = e.at(-1);
12128
12128
  if (t == null || n == null)
12129
12129
  return null;
12130
12130
  if (r <= t.percent)
12131
- return Ro(t.color);
12131
+ return Uo(t.color);
12132
12132
  if (r >= n.percent)
12133
- return Ro(n.color);
12133
+ return Uo(n.color);
12134
12134
  const a = e.findIndex((l) => l.percent >= r), i = e[a - 1], s = e[a];
12135
- return i == null || s == null ? null : i.color.toLowerCase() === s.color.toLowerCase() ? Ro(i.color) : i.percent === s.percent ? Ro(s.color) : null;
12135
+ return i == null || s == null ? null : i.color.toLowerCase() === s.color.toLowerCase() ? Uo(i.color) : i.percent === s.percent ? Uo(s.color) : null;
12136
12136
  }
12137
12137
  function Jv(e) {
12138
12138
  return e.filter((r) => Number.isFinite(r.percent) && Xv(r.color)).slice().sort((r, t) => r.percent - t.percent);
@@ -12176,7 +12176,7 @@ function lu(e, r, t, n) {
12176
12176
  switch (e.type) {
12177
12177
  case "hex":
12178
12178
  case "alias":
12179
- return Po(e);
12179
+ return xo(e);
12180
12180
  case "linear":
12181
12181
  return au(n ?? [], Qv(e.degrees, r, t));
12182
12182
  case "radial":
@@ -12243,7 +12243,7 @@ function ay(e, r) {
12243
12243
  }), h = /* @__PURE__ */ m(() => {
12244
12244
  if (!o(f)) return null;
12245
12245
  const L = o(d);
12246
- return !L || L.type !== "video" ? null : xo(o(g), L);
12246
+ return !L || L.type !== "video" ? null : Eo(o(g), L);
12247
12247
  }), v = /* @__PURE__ */ m(() => rr({ background: o(p) ? "#0000003f" : "" })), y = /* @__PURE__ */ m(() => rr({
12248
12248
  height: vr(o(u).height),
12249
12249
  ...Ni({ hasVideoBg: o(f), clipOverflow: !0 }),
@@ -12273,7 +12273,7 @@ function ay(e, r) {
12273
12273
  var T = q(A), j = q(T);
12274
12274
  {
12275
12275
  var z = (L) => {
12276
- Eo(L, {
12276
+ So(L, {
12277
12277
  get url() {
12278
12278
  return o(h).url;
12279
12279
  },
@@ -12337,7 +12337,7 @@ function ly(e, r) {
12337
12337
  var u = iy(), d = q(u);
12338
12338
  {
12339
12339
  var p = (f) => {
12340
- Eo(f, {
12340
+ So(f, {
12341
12341
  get url() {
12342
12342
  return r.model.url;
12343
12343
  },
@@ -13074,34 +13074,34 @@ function Ty(e, r) {
13074
13074
  }
13075
13075
  var Ba = G(ie);
13076
13076
  {
13077
- var To = (Qe) => {
13077
+ var Co = (Qe) => {
13078
13078
  var ee = Py();
13079
13079
  K(() => he(ee, "href", `#${o(f)}-border`)), S(Qe, ee);
13080
13080
  };
13081
13081
  Y(Ba, (Qe) => {
13082
- o(I) && o(I).width > 0 && Qe(To);
13082
+ o(I) && o(I).width > 0 && Qe(Co);
13083
13083
  });
13084
13084
  }
13085
13085
  var Ra = G(Ba), Ua = q(Ra);
13086
13086
  {
13087
- var Co = (Qe) => {
13087
+ var Do = (Qe) => {
13088
13088
  var ee = xy();
13089
13089
  K(() => he(ee, "fill", `url(#${o(f)}-overlay)`)), S(Qe, ee);
13090
13090
  };
13091
13091
  Y(Ua, (Qe) => {
13092
- o(Ne) && Qe(Co);
13092
+ o(Ne) && Qe(Do);
13093
13093
  });
13094
13094
  }
13095
- var Do = G(Ua);
13095
+ var Ao = G(Ua);
13096
13096
  {
13097
- var Ao = (Qe) => {
13097
+ var Fo = (Qe) => {
13098
13098
  var ee = Ey();
13099
13099
  K(() => {
13100
13100
  he(ee, "href", `#${o(f)}-border`), he(ee, "stroke", `url(#${o(f)}-border-color)`), he(ee, "stroke-width", o(I).width * 2);
13101
13101
  }), S(Qe, ee);
13102
13102
  };
13103
- Y(Do, (Qe) => {
13104
- o(I) && o(I).width > 0 && Qe(Ao);
13103
+ Y(Ao, (Qe) => {
13104
+ o(I) && o(I).width > 0 && Qe(Fo);
13105
13105
  });
13106
13106
  }
13107
13107
  K(() => {
@@ -13418,7 +13418,7 @@ const Fy = {
13418
13418
  }, jy = {
13419
13419
  "input-border-radius": "12px",
13420
13420
  "input-button-border-radius": "9999px"
13421
- }, uu = Tp, so = (e) => e.length == 7 ? {
13421
+ }, uu = Tp, lo = (e) => e.length == 7 ? {
13422
13422
  r: parseInt(e.slice(1, 3), 16),
13423
13423
  g: parseInt(e.slice(3, 5), 16),
13424
13424
  b: parseInt(e.slice(5, 7), 16)
@@ -13439,12 +13439,12 @@ const Fy = {
13439
13439
  };
13440
13440
  };
13441
13441
  function Ry(e, r, t) {
13442
- const n = so(e) || { r: 0, g: 0, b: 0 }, a = so(r) || { r: 255, g: 255, b: 255 }, i = Math.round(a.r * t + n.r * (1 - t)), s = Math.round(a.g * t + n.g * (1 - t)), l = Math.round(a.b * t + n.b * (1 - t));
13442
+ const n = lo(e) || { r: 0, g: 0, b: 0 }, a = lo(r) || { r: 255, g: 255, b: 255 }, i = Math.round(a.r * t + n.r * (1 - t)), s = Math.round(a.g * t + n.g * (1 - t)), l = Math.round(a.b * t + n.b * (1 - t));
13443
13443
  return `#${Ps(i)}${Ps(s)}${Ps(l)}`;
13444
13444
  }
13445
13445
  function du(e, r) {
13446
13446
  const t = { r: 255, g: 255, b: 255 }, n = Math.max(0, Math.min(1, r));
13447
- let a = e, i = so(e) || t;
13447
+ let a = e, i = lo(e) || t;
13448
13448
  (isNaN(i.r) || isNaN(i.g) || isNaN(i.b)) && (i = t, a = "#FFFFFF");
13449
13449
  const l = ql({
13450
13450
  ...i,
@@ -13464,11 +13464,11 @@ const Uy = (e, r, t, n = zl) => {
13464
13464
  "primary-text": t["primary-text"]
13465
13465
  };
13466
13466
  if (e != null && e.startsWith("#")) {
13467
- const i = so(e);
13467
+ const i = lo(e);
13468
13468
  i !== null && Object.assign(a, By(i));
13469
13469
  }
13470
13470
  if (r != null && r.startsWith("#")) {
13471
- const i = so(r);
13471
+ const i = lo(r);
13472
13472
  i !== null && (a["primary-text"] = ql({ ...i, luminanceThreshold: n }) ? "black" : "white");
13473
13473
  }
13474
13474
  return a;
@@ -13871,7 +13871,7 @@ function Sb(e, r) {
13871
13871
  $$slots: { default: !0 }
13872
13872
  }), K(() => he(a, "data-has-title", !!t())), S(e, a);
13873
13873
  }
13874
- const So = "rcb-ui-events-tracker", Mn = "branding";
13874
+ const Io = "rcb-ui-events-tracker", Mn = "branding";
13875
13875
  var Ib = /* @__PURE__ */ V("<div><div><!></div> <div><!></div></div>");
13876
13876
  const Tb = {
13877
13877
  hash: "svelte-clabfx",
@@ -13975,7 +13975,7 @@ function it(e, r) {
13975
13975
  S(e, c), fe(), a();
13976
13976
  }
13977
13977
  const Ll = 7, ji = 30, jl = 365, Bi = 4.33, Bl = 52, Ri = 12;
13978
- function lo(e) {
13978
+ function co(e) {
13979
13979
  switch (e.unit) {
13980
13980
  case Fe.Year:
13981
13981
  return e.number * jl;
@@ -14029,7 +14029,7 @@ function Xs(e, r) {
14029
14029
  short: !0
14030
14030
  }) ?? "",
14031
14031
  periodWithUnit: r.translatePeriod(n, t) ?? "",
14032
- periodInDays: lo(e).toString(),
14032
+ periodInDays: co(e).toString(),
14033
14033
  periodInWeeks: Cb(e).toString(),
14034
14034
  periodInMonths: Db(e).toString(),
14035
14035
  periodInYears: Ab(e).toString()
@@ -14064,7 +14064,7 @@ function Lb(e, r) {
14064
14064
  const oe = R.base.period, te = W.period;
14065
14065
  if (!oe || !te || W.cycleCount <= 0)
14066
14066
  return !1;
14067
- const U = lo(oe), J = lo({
14067
+ const U = co(oe), J = co({
14068
14068
  number: te.number * W.cycleCount,
14069
14069
  unit: te.unit
14070
14070
  });
@@ -14283,7 +14283,7 @@ function Bb({
14283
14283
  }
14284
14284
  };
14285
14285
  }
14286
- function Qo({
14286
+ function $o({
14287
14287
  appearance: e,
14288
14288
  rcPackage: r,
14289
14289
  purchaseOptionToUse: t,
@@ -14541,15 +14541,15 @@ function Kb(e, r) {
14541
14541
  $$slots: { default: !0 }
14542
14542
  }), fe(), i();
14543
14543
  }
14544
- function $o(e) {
14544
+ function ro(e) {
14545
14545
  "@babel/helpers - typeof";
14546
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? $o = function(r) {
14546
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ro = function(r) {
14547
14547
  return typeof r;
14548
- } : $o = function(r) {
14548
+ } : ro = function(r) {
14549
14549
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
14550
- }, $o(e);
14550
+ }, ro(e);
14551
14551
  }
14552
- var Lp = "basil", Xb = function(r) {
14552
+ var Lp = "dahlia", Xb = function(r) {
14553
14553
  return r === 3 ? "v3" : r;
14554
14554
  }, jp = "https://js.stripe.com", Zb = "".concat(jp, "/").concat(Lp, "/stripe.js"), Jb = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Qb = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/, fu = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", $b = function(r) {
14555
14555
  return Jb.test(r) || Qb.test(r);
@@ -14570,10 +14570,10 @@ var Lp = "basil", Xb = function(r) {
14570
14570
  }, rk = function(r, t) {
14571
14571
  !r || !r._registerWrapper || r._registerWrapper({
14572
14572
  name: "stripe-js",
14573
- version: "7.3.1",
14573
+ version: "9.7.0",
14574
14574
  startTime: t
14575
14575
  });
14576
- }, Ga = null, Uo = null, Vo = null, tk = function(r) {
14576
+ }, Ga = null, Vo = null, Ho = null, tk = function(r) {
14577
14577
  return function(t) {
14578
14578
  r(new Error("Failed to load Stripe.js", {
14579
14579
  cause: t
@@ -14599,11 +14599,11 @@ var Lp = "basil", Xb = function(r) {
14599
14599
  console.warn(fu);
14600
14600
  else if (!a)
14601
14601
  a = mu(r);
14602
- else if (a && Vo !== null && Uo !== null) {
14602
+ else if (a && Ho !== null && Vo !== null) {
14603
14603
  var i;
14604
- a.removeEventListener("load", Vo), a.removeEventListener("error", Uo), (i = a.parentNode) === null || i === void 0 || i.removeChild(a), a = mu(r);
14604
+ a.removeEventListener("load", Ho), a.removeEventListener("error", Vo), (i = a.parentNode) === null || i === void 0 || i.removeChild(a), a = mu(r);
14605
14605
  }
14606
- Vo = nk(t, n), Uo = tk(n), a.addEventListener("load", Vo), a.addEventListener("error", Uo);
14606
+ Ho = nk(t, n), Vo = tk(n), a.addEventListener("load", Ho), a.addEventListener("error", Vo);
14607
14607
  } catch (s) {
14608
14608
  n(s);
14609
14609
  return;
@@ -14614,8 +14614,11 @@ var Lp = "basil", Xb = function(r) {
14614
14614
  }, ok = function(r, t, n) {
14615
14615
  if (r === null)
14616
14616
  return null;
14617
- var a = t[0], i = a.match(/^pk_test/), s = Xb(r.version), l = Lp;
14618
- i && s !== l && console.warn("Stripe.js@".concat(s, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.1", " expected Stripe.js@").concat(l, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
14617
+ var a = t[0];
14618
+ if (typeof a != "string")
14619
+ throw new Error("Expected publishable key to be of type string, got type ".concat(ro(a), " instead."));
14620
+ var i = a.match(/^pk_test/), s = Xb(r.version), l = Lp;
14621
+ i && s !== l && console.warn("Stripe.js@".concat(s, " was loaded on the page, but @stripe/stripe-js@").concat("9.7.0", " expected Stripe.js@").concat(l, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
14619
14622
  var c = r.apply(void 0, t);
14620
14623
  return rk(c, n), c;
14621
14624
  }, hu = function(r) {
@@ -14627,7 +14630,7 @@ but received
14627
14630
 
14628
14631
  `.concat(JSON.stringify(r), `
14629
14632
  `);
14630
- if (r === null || $o(r) !== "object")
14633
+ if (r === null || ro(r) !== "object")
14631
14634
  throw new Error(t);
14632
14635
  if (Object.keys(r).length === 1 && typeof r.advancedFraudSignals == "boolean")
14633
14636
  return r;
@@ -14728,7 +14731,7 @@ const ik = {
14728
14731
  }, _k = {
14729
14732
  "input-border-radius": "12px",
14730
14733
  "input-button-border-radius": "9999px"
14731
- }, vu = Rp, co = "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", Up = "BrandCustomFont", yu = `${Up}, ${co}`, Ft = {
14734
+ }, vu = Rp, uo = "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", Up = "BrandCustomFont", yu = `${Up}, ${uo}`, Ft = {
14732
14735
  regular: "400",
14733
14736
  medium: "500",
14734
14737
  semibold: "600"
@@ -14885,7 +14888,7 @@ const ik = {
14885
14888
  desktop: zt.captionLink,
14886
14889
  mobile: Pr.captionLink
14887
14890
  }
14888
- }, uo = (e) => e.length == 7 ? {
14891
+ }, po = (e) => e.length == 7 ? {
14889
14892
  r: parseInt(e.slice(1, 3), 16),
14890
14893
  g: parseInt(e.slice(3, 5), 16),
14891
14894
  b: parseInt(e.slice(5, 7), 16)
@@ -14911,12 +14914,12 @@ const ik = {
14911
14914
  };
14912
14915
  };
14913
14916
  function fk(e, r, t) {
14914
- const n = uo(e) || { r: 0, g: 0, b: 0 }, a = uo(r) || { r: 255, g: 255, b: 255 }, i = Math.round(a.r * t + n.r * (1 - t)), s = Math.round(a.g * t + n.g * (1 - t)), l = Math.round(a.b * t + n.b * (1 - t));
14917
+ const n = po(e) || { r: 0, g: 0, b: 0 }, a = po(r) || { r: 255, g: 255, b: 255 }, i = Math.round(a.r * t + n.r * (1 - t)), s = Math.round(a.g * t + n.g * (1 - t)), l = Math.round(a.b * t + n.b * (1 - t));
14915
14918
  return `#${xs(i)}${xs(s)}${xs(l)}`;
14916
14919
  }
14917
14920
  function bu(e, r) {
14918
14921
  const t = { r: 255, g: 255, b: 255 }, n = Math.max(0, Math.min(1, r));
14919
- let a = e, i = uo(e) || t;
14922
+ let a = e, i = po(e) || t;
14920
14923
  (isNaN(i.r) || isNaN(i.g) || isNaN(i.b)) && (i = t, a = "#FFFFFF");
14921
14924
  const l = Vl({
14922
14925
  ...i,
@@ -14936,11 +14939,11 @@ const mk = (e, r, t, n = Hl) => {
14936
14939
  "primary-text": t["primary-text"]
14937
14940
  };
14938
14941
  if (e != null && e.startsWith("#")) {
14939
- const i = uo(e);
14942
+ const i = po(e);
14940
14943
  i !== null && Object.assign(a, gk(i));
14941
14944
  }
14942
14945
  if (r != null && r.startsWith("#")) {
14943
- const i = uo(r);
14946
+ const i = po(r);
14944
14947
  i !== null && (a["primary-text"] = Vl({ ...i, luminanceThreshold: n }) ? "black" : "white");
14945
14948
  }
14946
14949
  return a;
@@ -15025,7 +15028,7 @@ const mk = (e, r, t, n = Hl) => {
15025
15028
  );
15026
15029
  return [r, t].join("; ");
15027
15030
  }, xk = (e = "", r, t) => Object.entries(r).flatMap(([n, { desktop: a, mobile: i }]) => {
15028
- const s = `normal normal ${a.fontWeight} ${a.fontSize}/${a.lineHeight} ${co}`, l = `normal normal ${i.fontWeight} ${i.fontSize}/${i.lineHeight} ${co}`, c = `normal normal ${t == null ? void 0 : t.desktop.font_weight} ${t == null ? void 0 : t.desktop.font_size} ${yu}`, u = `normal normal ${t == null ? void 0 : t.mobile.font_weight} ${t == null ? void 0 : t.mobile.font_size} ${yu}`;
15031
+ const s = `normal normal ${a.fontWeight} ${a.fontSize}/${a.lineHeight} ${uo}`, l = `normal normal ${i.fontWeight} ${i.fontSize}/${i.lineHeight} ${uo}`, c = `normal normal ${t == null ? void 0 : t.desktop.font_weight} ${t == null ? void 0 : t.desktop.font_size} ${yu}`, u = `normal normal ${t == null ? void 0 : t.mobile.font_weight} ${t == null ? void 0 : t.mobile.font_size} ${yu}`;
15029
15032
  return [
15030
15033
  `--rc-${e}-${n}-desktop: ${s}`,
15031
15034
  `--rc-${e}-${n}-mobile: ${l}`,
@@ -15129,7 +15132,7 @@ class Xn {
15129
15132
  }
15130
15133
  }
15131
15134
  var $s = /* @__PURE__ */ ((e) => (e[e.ErrorLoadingStripe = 0] = "ErrorLoadingStripe", e[e.HandledFormError = 1] = "HandledFormError", e[e.UnhandledFormError = 2] = "UnhandledFormError", e))($s || {});
15132
- class ro {
15135
+ class to {
15133
15136
  constructor(r, t, n) {
15134
15137
  this.code = r, this.gatewayErrorCode = t, this.message = n;
15135
15138
  }
@@ -15226,6 +15229,8 @@ const ga = class ga {
15226
15229
  }
15227
15230
  }
15228
15231
  }
15232
+ // Backend guarantees payment-mode amount/currency; v9 types elements()
15233
+ // options as a discriminated union, so assert the union shape.
15229
15234
  });
15230
15235
  } catch (h) {
15231
15236
  throw this.mapInitializationError(h);
@@ -15245,7 +15250,7 @@ const ga = class ga {
15245
15250
  );
15246
15251
  let s;
15247
15252
  try {
15248
- s = await i.initEmbeddedCheckout({
15253
+ s = await i.createEmbeddedCheckoutPage({
15249
15254
  fetchClientSecret: () => Promise.resolve(n.client_secret),
15250
15255
  onComplete: a
15251
15256
  });
@@ -15315,18 +15320,18 @@ const ga = class ga {
15315
15320
  throw this.mapError(t);
15316
15321
  }
15317
15322
  static mapInitializationError(r) {
15318
- return new ro(
15323
+ return new to(
15319
15324
  0,
15320
15325
  r.code,
15321
15326
  r.message
15322
15327
  );
15323
15328
  }
15324
15329
  static mapError(r) {
15325
- return this.isStripeHandledFormError(r) ? new ro(
15330
+ return this.isStripeHandledFormError(r) ? new to(
15326
15331
  1,
15327
15332
  r.code,
15328
15333
  r.message
15329
- ) : new ro(
15334
+ ) : new to(
15330
15335
  2,
15331
15336
  r.code,
15332
15337
  r.message
@@ -15572,7 +15577,7 @@ function Nk(e, r) {
15572
15577
  // There we set fontSizeBase to the desired label size
15573
15578
  // and update the input font size to 16px.
15574
15579
  fontSizeBase: "14px",
15575
- fontFamily: co,
15580
+ fontFamily: uo,
15576
15581
  // Spacing is hardcoded to 16px to match the desired gaps in mobile/desktop
15577
15582
  // which do not match the design system spacing. Also we cannot use "rem" units
15578
15583
  // since the fontSizeBase is set to 14px per the comment above.
@@ -15766,10 +15771,10 @@ const Gk = {
15766
15771
  }form.svelte-zfhfge {display:flex;flex-direction:column;flex-grow:1;}`
15767
15772
  };
15768
15773
  function Kk(e, r) {
15769
- var qn, Ba, To, Ra, Ua, Co, Do, Ao, Qe;
15774
+ var qn, Ba, Co, Ra, Ua, Do, Ao, Fo, Qe;
15770
15775
  ge(r, !0), ve(e, Gk);
15771
- const t = () => _e(l, "$translator", n), [n, a] = He(), i = Z(r, "onProcessingStateChange", 3, void 0), s = Ye(So), l = Ye(Sr), c = (qn = r.productDetails.subscriptionOptions) == null ? void 0 : qn[r.purchaseOption.id], u = mi(r.productDetails, r.purchaseOption);
15772
- let d = /* @__PURE__ */ re(er(((Ba = r.defaultPriceBreakdown) == null ? void 0 : Ba.taxCalculationStatus) ?? ((To = r.brandingInfo) != null && To.gateway_tax_collection_enabled ? "unavailable" : "disabled"))), p = /* @__PURE__ */ re(er(((Ra = r.defaultPriceBreakdown) == null ? void 0 : Ra.originalAmountInMicros) ?? u.amountMicros)), _ = /* @__PURE__ */ re(er(((Ua = r.defaultPriceBreakdown) == null ? void 0 : Ua.taxAmountInMicros) ?? null)), g = /* @__PURE__ */ re(er(((Co = r.defaultPriceBreakdown) == null ? void 0 : Co.taxBreakdown) ?? null)), f = /* @__PURE__ */ re(er(((Do = r.defaultPriceBreakdown) == null ? void 0 : Do.totalExcludingTaxInMicros) ?? u.amountMicros)), h = /* @__PURE__ */ re(er(((Ao = r.defaultPriceBreakdown) == null ? void 0 : Ao.totalAmountInMicros) ?? u.amountMicros)), v = /* @__PURE__ */ re(er(((Qe = r.defaultPriceBreakdown) == null ? void 0 : Qe.appliedDiscounts) ?? [])), y = /* @__PURE__ */ m(() => ({
15776
+ const t = () => _e(l, "$translator", n), [n, a] = He(), i = Z(r, "onProcessingStateChange", 3, void 0), s = Ye(Io), l = Ye(Sr), c = (qn = r.productDetails.subscriptionOptions) == null ? void 0 : qn[r.purchaseOption.id], u = mi(r.productDetails, r.purchaseOption);
15777
+ let d = /* @__PURE__ */ re(er(((Ba = r.defaultPriceBreakdown) == null ? void 0 : Ba.taxCalculationStatus) ?? ((Co = r.brandingInfo) != null && Co.gateway_tax_collection_enabled ? "unavailable" : "disabled"))), p = /* @__PURE__ */ re(er(((Ra = r.defaultPriceBreakdown) == null ? void 0 : Ra.originalAmountInMicros) ?? u.amountMicros)), _ = /* @__PURE__ */ re(er(((Ua = r.defaultPriceBreakdown) == null ? void 0 : Ua.taxAmountInMicros) ?? null)), g = /* @__PURE__ */ re(er(((Do = r.defaultPriceBreakdown) == null ? void 0 : Do.taxBreakdown) ?? null)), f = /* @__PURE__ */ re(er(((Ao = r.defaultPriceBreakdown) == null ? void 0 : Ao.totalExcludingTaxInMicros) ?? u.amountMicros)), h = /* @__PURE__ */ re(er(((Fo = r.defaultPriceBreakdown) == null ? void 0 : Fo.totalAmountInMicros) ?? u.amountMicros)), v = /* @__PURE__ */ re(er(((Qe = r.defaultPriceBreakdown) == null ? void 0 : Qe.appliedDiscounts) ?? [])), y = /* @__PURE__ */ m(() => ({
15773
15778
  currency: u.currency,
15774
15779
  originalAmountInMicros: o(p),
15775
15780
  totalAmountInMicros: o(h),
@@ -15894,7 +15899,7 @@ function Kk(e, r) {
15894
15899
  errorMessage: ee.message
15895
15900
  });
15896
15901
  s.trackSDKEvent(Ae), ee.errorCode === de.MissingEmailError ? N(T, t().translate(le.ErrorPageErrorMessageInvalidEmailError, { email: o(E) }), !0) : r.onError(ee);
15897
- } else if (ee instanceof ro)
15902
+ } else if (ee instanceof to)
15898
15903
  await Pe(ee);
15899
15904
  else
15900
15905
  throw ee;
@@ -16051,7 +16056,7 @@ const el = (e, r) => ({
16051
16056
  const r = e.period_duration, t = e.price ? Gp(e.price) : null, n = r ? Mi(r) : null;
16052
16057
  let a = null, i = null, s = null;
16053
16058
  if (t !== null && n !== null) {
16054
- const l = Jk(n), c = 1e4, u = Jo(
16059
+ const l = Jk(n), c = 1e4, u = Qo(
16055
16060
  t.amountMicros * l.toWeek,
16056
16061
  t.currency
16057
16062
  );
@@ -16061,7 +16066,7 @@ const el = (e, r) => ({
16061
16066
  currency: t.currency,
16062
16067
  formattedPrice: on(u, t.currency)
16063
16068
  };
16064
- const d = Jo(
16069
+ const d = Qo(
16065
16070
  t.amountMicros * l.toMonth,
16066
16071
  t.currency
16067
16072
  );
@@ -16071,7 +16076,7 @@ const el = (e, r) => ({
16071
16076
  currency: t.currency,
16072
16077
  formattedPrice: on(d, t.currency)
16073
16078
  };
16074
- const p = Jo(
16079
+ const p = Qo(
16075
16080
  t.amountMicros * l.toYear,
16076
16081
  t.currency
16077
16082
  );
@@ -16306,7 +16311,7 @@ const sw = {
16306
16311
  hash: "svelte-1eerlbf",
16307
16312
  code: ".arrow.svelte-1eerlbf {transition:transform 0.3s ease;}.arrow-fill.svelte-1eerlbf {fill:var(--rc-color-grey-text-dark);}.arrow.left.svelte-1eerlbf {transform:rotate(90deg);}.arrow.up.svelte-1eerlbf {transform:rotate(180deg);}.arrow.right.svelte-1eerlbf {transform:rotate(-90deg);}.arrow.down.svelte-1eerlbf {transform:rotate(0deg);}"
16308
16313
  };
16309
- function Ho(e, r) {
16314
+ function Wo(e, r) {
16310
16315
  ve(e, sw);
16311
16316
  let t = Z(r, "direction", 8);
16312
16317
  var n = iw();
@@ -16401,10 +16406,10 @@ const Iw = {
16401
16406
  info: Yp,
16402
16407
  close: ww,
16403
16408
  warning: Sw,
16404
- "chevron-left": Ho,
16405
- "chevron-right": Ho,
16406
- "chevron-up": Ho,
16407
- "chevron-down": Ho
16409
+ "chevron-left": Wo,
16410
+ "chevron-right": Wo,
16411
+ "chevron-up": Wo,
16412
+ "chevron-down": Wo
16408
16413
  };
16409
16414
  function Zn(e, r) {
16410
16415
  ge(r, !0);
@@ -16546,7 +16551,7 @@ function Gl(e, r) {
16546
16551
  ge(r, !1);
16547
16552
  const t = () => _e(u, "$translator", n), [n, a] = He();
16548
16553
  let i = Z(r, "onContinue", 8), s = Z(r, "title", 8, void 0), l = Z(r, "closeButtonTitle", 8, void 0), c = Z(r, "fullWidth", 8, !1);
16549
- const u = Ye(Sr), d = Ye(So);
16554
+ const u = Ye(Sr), d = Ye(Io);
16550
16555
  function p() {
16551
16556
  d.trackSDKEvent(Rb("go_back_to_app", Kr)), i()();
16552
16557
  }
@@ -17237,7 +17242,7 @@ function tP(e, r) {
17237
17242
  const I = (T = r.basePhase) == null ? void 0 : T.period;
17238
17243
  if (!I || !E)
17239
17244
  return `${w}% off`;
17240
- const D = lo(I), x = lo(E);
17245
+ const D = co(I), x = co(E);
17241
17246
  if (D <= 0 || x <= D)
17242
17247
  return `${w}% off`;
17243
17248
  const A = t().translatePeriod(E.number, E.unit);
@@ -18071,7 +18076,7 @@ function r1(e, r) {
18071
18076
  }
18072
18077
  S(e, t);
18073
18078
  }
18074
- const Wo = (e) => !e || e.trim() === "" ? null : e, t1 = {
18079
+ const Yo = (e) => !e || e.trim() === "" ? null : e, t1 = {
18075
18080
  icon: null,
18076
18081
  iconWebp: null,
18077
18082
  wordmark: null,
@@ -18083,7 +18088,7 @@ const Wo = (e) => !e || e.trim() === "" ? null : e, t1 = {
18083
18088
  }, n1 = (e) => {
18084
18089
  if (!e)
18085
18090
  return t1;
18086
- const r = Wo(e.app_icon), t = Wo(e.app_icon_webp), n = Wo(e.app_wordmark), a = Wo(e.app_wordmark_webp);
18091
+ const r = Yo(e.app_icon), t = Yo(e.app_icon_webp), n = Yo(e.app_wordmark), a = Yo(e.app_wordmark_webp);
18087
18092
  return {
18088
18093
  src: r ? Ja(r) : null,
18089
18094
  srcWebp: t ? Ja(t) : null,
@@ -18470,7 +18475,7 @@ function y1(e, r) {
18470
18475
  };
18471
18476
  U(document.documentElement, "height", o(w)), U(document.body, "height", o(I)), U(document.documentElement, "overflow", o(E));
18472
18477
  }
18473
- }), gr(So, r.eventsTracker);
18478
+ }), gr(Io, r.eventsTracker);
18474
18479
  let T = er(typeof r.purchases._shouldForceEnableWalletMethods == "function" ? r.purchases._shouldForceEnableWalletMethods() : !1);
18475
18480
  const j = (U, J, Q) => {
18476
18481
  const ne = U.identifier ?? null;
@@ -19032,10 +19037,10 @@ function x1(e) {
19032
19037
  var r = P1(e, "string");
19033
19038
  return typeof r == "symbol" ? r : r + "";
19034
19039
  }
19035
- var po = {
19040
+ var _o = {
19036
19041
  CLASSIC: "classic",
19037
19042
  V1: "v1"
19038
- }, E1 = po.V1, S1 = "https://cdn.paddle.com/paddle/paddle.js", I1 = "https://cdn.paddle.com/paddle/v2/paddle.js", T1 = {
19043
+ }, E1 = _o.V1, S1 = "https://cdn.paddle.com/paddle/paddle.js", I1 = "https://cdn.paddle.com/paddle/v2/paddle.js", T1 = {
19039
19044
  url: S1
19040
19045
  }, C1 = {
19041
19046
  url: I1
@@ -19086,9 +19091,9 @@ function M1(e) {
19086
19091
  }
19087
19092
  }
19088
19093
  function q1(e) {
19089
- if (e === po.CLASSIC)
19094
+ if (e === _o.CLASSIC)
19090
19095
  return T1;
19091
- if (e === po.V1)
19096
+ if (e === _o.V1)
19092
19097
  return C1;
19093
19098
  console.error("[Paddle] Unknown Paddle Version");
19094
19099
  }
@@ -19113,10 +19118,10 @@ function L1(e, r) {
19113
19118
  console.warn("[Paddle] Paddle Initialization failed. Please check the inputs", a);
19114
19119
  }
19115
19120
  }
19116
- var to;
19121
+ var no;
19117
19122
  (function(e) {
19118
19123
  e.CHECKOUT_LOADED = "checkout.loaded", e.CHECKOUT_CLOSED = "checkout.closed", e.CHECKOUT_UPDATED = "checkout.updated", e.CHECKOUT_COMPLETED = "checkout.completed", e.CHECKOUT_ERROR = "checkout.error", e.CHECKOUT_FAILED = "checkout.failed", e.CHECKOUT_ITEMS_UPDATED = "checkout.items.updated", e.CHECKOUT_ITEMS_REMOVED = "checkout.items.removed", e.CHECKOUT_CUSTOMER_CREATED = "checkout.customer.created", e.CHECKOUT_CUSTOMER_UPDATED = "checkout.customer.updated", e.CHECKOUT_CUSTOMER_REMOVED = "checkout.customer.removed", e.CHECKOUT_PAYMENT_SELECTED = "checkout.payment.selected", e.CHECKOUT_PAYMENT_INITIATED = "checkout.payment.initiated", e.CHECKOUT_PAYMENT_FAILED = "checkout.payment.failed", e.CHECKOUT_DISCOUNT_APPLIED = "checkout.discount.applied", e.CHECKOUT_DISCOUNT_REMOVED = "checkout.discount.removed", e.CHECKOUT_UPSELL_CANCELED = "checkout.upsell.canceled";
19119
- })(to || (to = {}));
19124
+ })(no || (no = {}));
19120
19125
  var Iu;
19121
19126
  (function(e) {
19122
19127
  e.DAY = "day", e.WEEK = "week", e.MONTH = "month", e.YEAR = "year";
@@ -19148,7 +19153,7 @@ function nl() {
19148
19153
  i.next = 9;
19149
19154
  break;
19150
19155
  }
19151
- return r && (t === po.V1 ? N1(r, n) : t === po.CLASSIC && L1(r, n)), i.abrupt("return", n);
19156
+ return r && (t === _o.V1 ? N1(r, n) : t === _o.CLASSIC && L1(r, n)), i.abrupt("return", n);
19152
19157
  case 9:
19153
19158
  return console.error("[Paddle] Error Loading Paddle"), i.abrupt("return");
19154
19159
  case 11:
@@ -19252,13 +19257,13 @@ class B1 {
19252
19257
  eventCallback: async (_) => {
19253
19258
  const g = _.name, f = _.data;
19254
19259
  try {
19255
- if (g === to.CHECKOUT_LOADED)
19260
+ if (g === no.CHECKOUT_LOADED)
19256
19261
  n();
19257
- else if (g === to.CHECKOUT_COMPLETED) {
19262
+ else if (g === no.CHECKOUT_COMPLETED) {
19258
19263
  s.Checkout.close();
19259
19264
  const h = await this.pollOperationStatus(r);
19260
19265
  u(h);
19261
- } else g === to.CHECKOUT_CLOSED && (f != null && f.status) && a();
19266
+ } else g === no.CHECKOUT_CLOSED && (f != null && f.status) && a();
19262
19267
  } catch (h) {
19263
19268
  s.Checkout.close(), h instanceof pe ? d(h) : h instanceof Ke ? d(
19264
19269
  pe.fromPurchasesError(
@@ -19567,7 +19572,7 @@ function G1(e, r) {
19567
19572
  const t = Z(r, "customTranslations", 19, () => ({})), n = Z(r, "skipSuccessPage", 3, !1);
19568
19573
  let a = new Pn(t(), r.selectedLocale, r.defaultLocale), i = qr(a);
19569
19574
  const s = qr(((P = r.brandingInfo) == null ? void 0 : P.appearance) ?? null);
19570
- gr(Sr, i), gr(Mn, s), gr(So, r.eventsTracker);
19575
+ gr(Sr, i), gr(Mn, s), gr(Io, r.eventsTracker);
19571
19576
  let l = /* @__PURE__ */ re(!1), c = /* @__PURE__ */ re(null), u = /* @__PURE__ */ re(null), d = /* @__PURE__ */ re("waiting");
19572
19577
  pr(() => {
19573
19578
  o(d) === "success" && o(c) && n() && r.onFinished(o(c));
@@ -19874,7 +19879,7 @@ function n0(e, r) {
19874
19879
  ge(r, !0);
19875
19880
  const t = Z(r, "customTranslations", 19, () => ({})), n = Z(r, "skipSuccessPage", 3, !1);
19876
19881
  let a = r.rcPackage.webBillingProduct, i = new Pn(t(), r.selectedLocale, r.defaultLocale), s = qr(i);
19877
- gr(Sr, s), gr(So, r.eventsTracker);
19882
+ gr(Sr, s), gr(Io, r.eventsTracker);
19878
19883
  const l = qr(((P = r.brandingInfo) == null ? void 0 : P.appearance) ?? null);
19879
19884
  gr(Mn, l);
19880
19885
  let c = /* @__PURE__ */ re(!1), u = /* @__PURE__ */ re(null), d = /* @__PURE__ */ re(null), p = /* @__PURE__ */ re("loading"), _ = /* @__PURE__ */ re(null);
@@ -20172,7 +20177,7 @@ function p0(e) {
20172
20177
  }
20173
20178
  return r;
20174
20179
  }
20175
- const o_ = "1.42.1", _0 = "https://api.revenuecat.com", g0 = "https://e.revenue.cat";
20180
+ const o_ = "1.42.2", _0 = "https://api.revenuecat.com", g0 = "https://e.revenue.cat";
20176
20181
  var vi;
20177
20182
  (function(e) {
20178
20183
  e[e.CONTINUE = 100] = "CONTINUE", e[e.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", e[e.PROCESSING = 102] = "PROCESSING", e[e.EARLY_HINTS = 103] = "EARLY_HINTS", e[e.OK = 200] = "OK", e[e.CREATED = 201] = "CREATED", e[e.ACCEPTED = 202] = "ACCEPTED", e[e.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", e[e.NO_CONTENT = 204] = "NO_CONTENT", e[e.RESET_CONTENT = 205] = "RESET_CONTENT", e[e.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", e[e.MULTI_STATUS = 207] = "MULTI_STATUS", e[e.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", e[e.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", e[e.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", e[e.SEE_OTHER = 303] = "SEE_OTHER", e[e.NOT_MODIFIED = 304] = "NOT_MODIFIED", e[e.USE_PROXY = 305] = "USE_PROXY", e[e.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", e[e.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", e[e.BAD_REQUEST = 400] = "BAD_REQUEST", e[e.UNAUTHORIZED = 401] = "UNAUTHORIZED", e[e.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", e[e.FORBIDDEN = 403] = "FORBIDDEN", e[e.NOT_FOUND = 404] = "NOT_FOUND", e[e.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", e[e.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", e[e.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", e[e.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", e[e.CONFLICT = 409] = "CONFLICT", e[e.GONE = 410] = "GONE", e[e.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", e[e.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", e[e.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", e[e.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", e[e.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", e[e.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", e[e.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", e[e.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", e[e.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", e[e.METHOD_FAILURE = 420] = "METHOD_FAILURE", e[e.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", e[e.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", e[e.LOCKED = 423] = "LOCKED", e[e.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", e[e.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", e[e.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", e[e.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", e[e.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", e[e.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", e[e.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", e[e.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", e[e.BAD_GATEWAY = 502] = "BAD_GATEWAY", e[e.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", e[e.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", e[e.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", e[e.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", e[e.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
@@ -20284,7 +20289,7 @@ function h_(e, r, t) {
20284
20289
  }
20285
20290
  return r && (n = { ...n, ...r }), t && (n = { ...t, ...n }), n;
20286
20291
  }
20287
- const Io = "/v1/subscribers", na = "/rcbilling/v1";
20292
+ const To = "/v1/subscribers", na = "/rcbilling/v1";
20288
20293
  class w0 {
20289
20294
  constructor(r) {
20290
20295
  $(this, "appUserId");
@@ -20294,7 +20299,7 @@ class w0 {
20294
20299
  }
20295
20300
  urlPath() {
20296
20301
  const r = encodeURIComponent(this.appUserId);
20297
- return `${Io}/${r}/offerings`;
20302
+ return `${To}/${r}/offerings`;
20298
20303
  }
20299
20304
  }
20300
20305
  class P0 {
@@ -20321,7 +20326,7 @@ class x0 {
20321
20326
  }
20322
20327
  urlPath() {
20323
20328
  const r = encodeURIComponent(this.appUserId);
20324
- return `${Io}/${r}`;
20329
+ return `${To}/${r}`;
20325
20330
  }
20326
20331
  }
20327
20332
  class E0 {
@@ -20330,7 +20335,7 @@ class E0 {
20330
20335
  $(this, "name", "identify");
20331
20336
  }
20332
20337
  urlPath() {
20333
- return `${Io}/identify`;
20338
+ return `${To}/identify`;
20334
20339
  }
20335
20340
  }
20336
20341
  class S0 {
@@ -20402,7 +20407,7 @@ class F0 {
20402
20407
  }
20403
20408
  urlPath() {
20404
20409
  const r = encodeURIComponent(this.appUserId);
20405
- return `${Io}/${r}/attributes`;
20410
+ return `${To}/${r}/attributes`;
20406
20411
  }
20407
20412
  }
20408
20413
  class M0 {
@@ -20423,7 +20428,7 @@ class q0 {
20423
20428
  }
20424
20429
  urlPath() {
20425
20430
  const r = encodeURIComponent(this.appUserId);
20426
- return `${Io}/${r}/virtual_currencies`;
20431
+ return `${To}/${r}/virtual_currencies`;
20427
20432
  }
20428
20433
  }
20429
20434
  const il = {};
@@ -20769,7 +20774,7 @@ function B0(e, r) {
20769
20774
  const R0 = 1000001;
20770
20775
  function Lr(e, r, t) {
20771
20776
  return t.formatPrice(
20772
- Jo(e, r),
20777
+ Qo(e, r),
20773
20778
  r
20774
20779
  );
20775
20780
  }
@@ -21546,7 +21551,7 @@ class xx {
21546
21551
  });
21547
21552
  }
21548
21553
  }
21549
- const Yo = () => {
21554
+ const Go = () => {
21550
21555
  const e = ki(), r = e != null && e.location ? new URLSearchParams(e.location.search) : new URLSearchParams(), t = [
21551
21556
  "utm_source",
21552
21557
  "utm_medium",
@@ -21876,7 +21881,7 @@ const jx = (e, r) => {
21876
21881
  // There we set fontSizeBase to the desired label size
21877
21882
  // and update the input font size to 16px.
21878
21883
  fontSizeBase: "14px",
21879
- fontFamily: co,
21884
+ fontFamily: uo,
21880
21885
  // Spacing is hardcoded to 16px to match the desired gaps in mobile/desktop
21881
21886
  // which do not match the design system spacing. Also we cannot use "rem" units
21882
21887
  // since the fontSizeBase is set to 14px per the comment above.
@@ -22001,7 +22006,7 @@ function Hx(e, r) {
22001
22006
  } catch (z) {
22002
22007
  if (z instanceof pe)
22003
22008
  d(z);
22004
- else if (z instanceof ro) {
22009
+ else if (z instanceof to) {
22005
22010
  const M = Zs({
22006
22011
  errorCode: z.gatewayErrorCode ?? null,
22007
22012
  errorMessage: z.message ?? "",
@@ -22013,7 +22018,7 @@ function Hx(e, r) {
22013
22018
  }
22014
22019
  }, y = async () => {
22015
22020
  var A;
22016
- const x = Qo({
22021
+ const x = $o({
22017
22022
  appearance: (A = r.brandingInfo) == null ? void 0 : A.appearance,
22018
22023
  rcPackage: r.rcPackage,
22019
22024
  purchaseOptionToUse: r.purchaseOption,
@@ -22117,12 +22122,12 @@ function Kx(e, r) {
22117
22122
  }
22118
22123
  var Xx = /* @__PURE__ */ ((e) => (e.DisplayName = "$displayName", e.Email = "$email", e.PhoneNumber = "$phoneNumber", e.IDFA = "$idfa", e.IDFV = "$idfv", e.GPSAdId = "$gpsAdId", e.AndroidId = "$androidId", e.AmazonAdId = "$amazonAdId", e.IP = "$ip", e.AdjustId = "$adjustId", e.AmplitudeDeviceId = "$amplitudeDeviceId", e.AmplitudeUserId = "$amplitudeUserId", e.AppsflyerId = "$appsflyerId", e.AppsflyerSharingFilter = "$appsflyerSharingFilter", e.BranchId = "$branchId", e.BrazeAliasName = "$brazeAliasName", e.BrazeAliasLabel = "$brazeAliasLabel", e.ClevertapId = "$clevertapId", e.FbAnonId = "$fbAnonId", e.MparticleId = "$mparticleId", e.OnesignalId = "$onesignalId", e.OnesignalUserId = "$onesignalUserId", e.IntercomContactId = "$intercomContactId", e.MediaSource = "$mediaSource", e.Campaign = "$campaign", e.AdGroup = "$adGroup", e.AdId = "$ad", e.Keyword = "$keyword", e.Creative = "$creative", e.APNSTokens = "$apnsTokens", e.FCMTokens = "$fcmTokens", e.AirshipChannelId = "$airshipChannelId", e.SegmentId = "$segmentId", e.IterableUserId = "$iterableUserId", e.IterableCampaignId = "$iterableCampaignId", e.IterableTemplateId = "$iterableTemplateId", e.FirebaseAppInstanceId = "$firebaseAppInstanceId", e.MixpanelDistinctId = "$mixpanelDistinctId", e.ATTConsentStatus = "$attConsentStatus", e.KochavaDeviceId = "$kochavaDeviceId", e.DeviceVersion = "$deviceVersion", e.PosthogUserId = "$posthogUserId", e.TelemetryDeckUserId = "$telemetryDeckUserId", e.TelemetryDeckAppId = "$telemetryDeckAppId", e.AppleRefundHandlingPreference = "$appleRefundHandlingPreference", e.CustomerioId = "$customerioId", e.TenjinId = "$tenjinId", e))(Xx || {});
22119
22124
  const ju = "$RCAnonymousID:";
22120
- var Ru, Uu, Go;
22125
+ var Ru, Uu, Ko;
22121
22126
  Uu = [Au], Ru = [Au];
22122
22127
  const kr = class kr {
22123
22128
  /** @internal */
22124
22129
  constructor(r, t, n = il, a = Cs, i, s) {
22125
- rc(Go, 5, this);
22130
+ rc(Ko, 5, this);
22126
22131
  /** @internal */
22127
22132
  $(this, "_API_KEY");
22128
22133
  /** @internal */
@@ -22651,7 +22656,7 @@ const kr = class kr {
22651
22656
  throw new Error(
22652
22657
  "The Express Purchase button is only available with Web Billing API Keys."
22653
22658
  );
22654
- const p = n ?? t.webBillingProduct.defaultPurchaseOption, g = { ...this._flags.autoCollectUTMAsMetadata ? Yo() : {}, ...r.metadata || {} }, f = new Pn({}, s, l);
22659
+ const p = n ?? t.webBillingProduct.defaultPurchaseOption, g = { ...this._flags.autoCollectUTMAsMetadata ? Go() : {}, ...r.metadata || {} }, f = new Pn({}, s, l);
22655
22660
  return new Promise((h, v) => {
22656
22661
  const y = async (P) => {
22657
22662
  const b = _u({
@@ -22772,14 +22777,14 @@ const kr = class kr {
22772
22777
  me.debugLog(
22773
22778
  `Presenting Stripe checkout for package ${t.identifier}`
22774
22779
  );
22775
- const f = u || d, h = n ?? t.webBillingProduct.defaultPurchaseOption, v = Qo({
22780
+ const f = u || d, h = n ?? t.webBillingProduct.defaultPurchaseOption, v = $o({
22776
22781
  appearance: (E = this._brandingInfo) == null ? void 0 : E.appearance,
22777
22782
  rcPackage: t,
22778
22783
  purchaseOptionToUse: h,
22779
22784
  customerEmail: i
22780
22785
  });
22781
22786
  this.eventsTracker.trackSDKEvent(v);
22782
- const k = { ...this._flags.autoCollectUTMAsMetadata ? Yo() : {}, ...r.metadata || {} };
22787
+ const k = { ...this._flags.autoCollectUTMAsMetadata ? Go() : {}, ...r.metadata || {} };
22783
22788
  let P = null;
22784
22789
  const b = this._brandingInfo;
22785
22790
  b && r.brandingAppearanceOverride && (b.appearance = r.brandingAppearanceOverride);
@@ -22848,14 +22853,14 @@ const kr = class kr {
22848
22853
  me.debugLog(
22849
22854
  `Presenting purchase form for package ${t.identifier}`
22850
22855
  );
22851
- const v = c || u, y = n ?? t.webBillingProduct.defaultPurchaseOption, k = Qo({
22856
+ const v = c || u, y = n ?? t.webBillingProduct.defaultPurchaseOption, k = $o({
22852
22857
  appearance: (D = this._brandingInfo) == null ? void 0 : D.appearance,
22853
22858
  rcPackage: t,
22854
22859
  purchaseOptionToUse: y,
22855
22860
  customerEmail: i
22856
22861
  });
22857
22862
  this.eventsTracker.trackSDKEvent(k);
22858
- const b = { ...this._flags.autoCollectUTMAsMetadata ? Yo() : {}, ...r.metadata || {} };
22863
+ const b = { ...this._flags.autoCollectUTMAsMetadata ? Go() : {}, ...r.metadata || {} };
22859
22864
  let w = null;
22860
22865
  const E = this._brandingInfo;
22861
22866
  E && r.brandingAppearanceOverride && (E.appearance = r.brandingAppearanceOverride);
@@ -22927,11 +22932,11 @@ const kr = class kr {
22927
22932
  );
22928
22933
  const _ = n ?? t.webBillingProduct.defaultPurchaseOption, f = {
22929
22934
  source: "paddle",
22930
- ...this._flags.autoCollectUTMAsMetadata ? Yo() : {},
22935
+ ...this._flags.autoCollectUTMAsMetadata ? Go() : {},
22931
22936
  ...r.metadata || {}
22932
22937
  }, h = this._brandingInfo;
22933
22938
  h && r.brandingAppearanceOverride && (h.appearance = r.brandingAppearanceOverride);
22934
- const v = Qo({
22939
+ const v = $o({
22935
22940
  appearance: (b = this._brandingInfo) == null ? void 0 : b.appearance,
22936
22941
  rcPackage: t,
22937
22942
  purchaseOptionToUse: _,
@@ -23249,7 +23254,7 @@ const kr = class kr {
23249
23254
  return this.eventsTracker.flushAllEvents();
23250
23255
  }
23251
23256
  };
23252
- Go = $l(null), Wi(Go, 1, "presentExpressPurchaseButton", Uu, kr), Wi(Go, 1, "purchase", Ru, kr), Hi(Go, kr), /** @internal */
23257
+ Ko = $l(null), Wi(Ko, 1, "presentExpressPurchaseButton", Uu, kr), Wi(Ko, 1, "purchase", Ru, kr), Hi(Ko, kr), /** @internal */
23253
23258
  $(kr, "_platformInfo"), /** @internal */
23254
23259
  $(kr, "instance");
23255
23260
  let ll = kr;