@revenuecat/purchases-js 0.1.0 → 0.1.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.
@@ -1,6 +1,6 @@
1
1
  var Ot = Object.defineProperty;
2
2
  var Lt = (t, e, r) => e in t ? Ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var C = (t, e, r) => (Lt(t, typeof e != "symbol" ? e + "" : e, r), r);
3
+ var M = (t, e, r) => (Lt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
4
  function xt(t) {
5
5
  return t != null;
6
6
  }
@@ -61,7 +61,7 @@ function Ht(t) {
61
61
  }
62
62
  function B() {
63
63
  }
64
- function qt(t, e) {
64
+ function Kt(t, e) {
65
65
  for (const r in e)
66
66
  t[r] = e[r];
67
67
  return (
@@ -78,7 +78,7 @@ function Xe() {
78
78
  function we(t) {
79
79
  t.forEach(bt);
80
80
  }
81
- function ce(t) {
81
+ function ae(t) {
82
82
  return typeof t == "function";
83
83
  }
84
84
  function P(t, e) {
@@ -91,15 +91,15 @@ function X(t, e) {
91
91
  function Ze(t) {
92
92
  return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
93
93
  }
94
- function Kt(t, e) {
94
+ function qt(t, e) {
95
95
  const r = Ze(t.srcset), n = Ze(e || "");
96
96
  return n.length === r.length && n.every(
97
- ([i, s], o) => s === r[o][1] && // We need to test both ways because Vite will create an a full URL with
97
+ ([i, o], s) => o === r[s][1] && // We need to test both ways because Vite will create an a full URL with
98
98
  // `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
99
99
  // relative URLs inside srcset are not automatically resolved to absolute URLs by
100
100
  // browsers (in contrast to img.src). This means both SSR and DOM code could
101
101
  // contain relative or absolute URLs.
102
- (X(r[o][0], i) || X(i, r[o][0]))
102
+ (X(r[s][0], i) || X(i, r[s][0]))
103
103
  );
104
104
  }
105
105
  function jt(t) {
@@ -112,7 +112,7 @@ function Y(t, e, r, n) {
112
112
  }
113
113
  }
114
114
  function wt(t, e, r, n) {
115
- return t[1] && n ? qt(r.ctx.slice(), t[1](n(e))) : r.ctx;
115
+ return t[1] && n ? Kt(r.ctx.slice(), t[1](n(e))) : r.ctx;
116
116
  }
117
117
  function H(t, e, r, n) {
118
118
  if (t[2] && n) {
@@ -120,22 +120,22 @@ function H(t, e, r, n) {
120
120
  if (e.dirty === void 0)
121
121
  return i;
122
122
  if (typeof i == "object") {
123
- const s = [], o = Math.max(e.dirty.length, i.length);
124
- for (let l = 0; l < o; l += 1)
125
- s[l] = e.dirty[l] | i[l];
126
- return s;
123
+ const o = [], s = Math.max(e.dirty.length, i.length);
124
+ for (let l = 0; l < s; l += 1)
125
+ o[l] = e.dirty[l] | i[l];
126
+ return o;
127
127
  }
128
128
  return e.dirty | i;
129
129
  }
130
130
  return e.dirty;
131
131
  }
132
- function q(t, e, r, n, i, s) {
132
+ function K(t, e, r, n, i, o) {
133
133
  if (i) {
134
- const o = wt(e, r, n, s);
135
- t.p(o, i);
134
+ const s = wt(e, r, n, o);
135
+ t.p(s, i);
136
136
  }
137
137
  }
138
- function K(t) {
138
+ function q(t) {
139
139
  if (t.ctx.length > 32) {
140
140
  const e = [], r = t.ctx.length / 32;
141
141
  for (let n = 0; n < r; n++)
@@ -147,7 +147,7 @@ function K(t) {
147
147
  function Ee(t) {
148
148
  return t ?? "";
149
149
  }
150
- function Q(t, e) {
150
+ function D(t, e) {
151
151
  t.appendChild(e);
152
152
  }
153
153
  function O(t, e, r) {
@@ -168,7 +168,7 @@ function Jt(t) {
168
168
  ) : t.ownerDocument;
169
169
  }
170
170
  function Vt(t, e) {
171
- return Q(
171
+ return D(
172
172
  /** @type {Document} */
173
173
  t.head || t,
174
174
  e
@@ -183,14 +183,14 @@ function g(t) {
183
183
  function k(t) {
184
184
  return document.createElement(t);
185
185
  }
186
- function N(t) {
186
+ function R(t) {
187
187
  return document.createTextNode(t);
188
188
  }
189
189
  function T() {
190
- return N(" ");
190
+ return R(" ");
191
191
  }
192
- function Z() {
193
- return N("");
192
+ function ee() {
193
+ return R("");
194
194
  }
195
195
  function ke(t, e, r, n) {
196
196
  return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
@@ -200,14 +200,14 @@ function kt(t) {
200
200
  return e.preventDefault(), t.call(this, e);
201
201
  };
202
202
  }
203
- function A(t, e, r) {
203
+ function _(t, e, r) {
204
204
  r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
205
205
  }
206
206
  const Wt = ["width", "height"];
207
207
  function zt(t, e) {
208
208
  const r = Object.getOwnPropertyDescriptors(t.__proto__);
209
209
  for (const n in e)
210
- e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set && Wt.indexOf(n) === -1 ? t[n] = e[n] : A(t, n, e[n]);
210
+ e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set && Wt.indexOf(n) === -1 ? t[n] = e[n] : _(t, n, e[n]);
211
211
  }
212
212
  function Xt(t, e) {
213
213
  Object.keys(e).forEach((r) => {
@@ -216,7 +216,7 @@ function Xt(t, e) {
216
216
  }
217
217
  function Zt(t, e, r) {
218
218
  const n = e.toLowerCase();
219
- n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : A(t, e, r);
219
+ n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : _(t, e, r);
220
220
  }
221
221
  function en(t) {
222
222
  return /-/.test(t) ? Xt : zt;
@@ -238,78 +238,78 @@ let Ie;
238
238
  function he(t) {
239
239
  Ie = t;
240
240
  }
241
- function Ne() {
241
+ function Re() {
242
242
  if (!Ie)
243
243
  throw new Error("Function called outside component initialization");
244
244
  return Ie;
245
245
  }
246
246
  function Se(t) {
247
- Ne().$$.on_mount.push(t);
247
+ Re().$$.on_mount.push(t);
248
248
  }
249
249
  function rn() {
250
- const t = Ne();
250
+ const t = Re();
251
251
  return (e, r, { cancelable: n = !1 } = {}) => {
252
252
  const i = t.$$.callbacks[e];
253
253
  if (i) {
254
- const s = nn(
254
+ const o = nn(
255
255
  /** @type {string} */
256
256
  e,
257
257
  r,
258
258
  { cancelable: n }
259
259
  );
260
- return i.slice().forEach((o) => {
261
- o.call(t, s);
262
- }), !s.defaultPrevented;
260
+ return i.slice().forEach((s) => {
261
+ s.call(t, o);
262
+ }), !o.defaultPrevented;
263
263
  }
264
264
  return !0;
265
265
  };
266
266
  }
267
- function sn(t, e) {
268
- return Ne().$$.context.set(t, e), e;
267
+ function on(t, e) {
268
+ return Re().$$.context.set(t, e), e;
269
269
  }
270
- function on(t) {
271
- return Ne().$$.context.get(t);
270
+ function sn(t) {
271
+ return Re().$$.context.get(t);
272
272
  }
273
273
  function $t(t, e) {
274
274
  const r = t.$$.callbacks[e.type];
275
275
  r && r.slice().forEach((n) => n.call(this, e));
276
276
  }
277
- const oe = [], Re = [];
278
- let le = [];
277
+ const le = [], Ne = [];
278
+ let ce = [];
279
279
  const Ye = [], ln = /* @__PURE__ */ Promise.resolve();
280
280
  let He = !1;
281
281
  function cn() {
282
282
  He || (He = !0, ln.then(vt));
283
283
  }
284
- function qe(t) {
285
- le.push(t);
284
+ function Ke(t) {
285
+ ce.push(t);
286
286
  }
287
287
  function an(t) {
288
288
  Ye.push(t);
289
289
  }
290
290
  const xe = /* @__PURE__ */ new Set();
291
- let ie = 0;
291
+ let oe = 0;
292
292
  function vt() {
293
- if (ie !== 0)
293
+ if (oe !== 0)
294
294
  return;
295
295
  const t = Ie;
296
296
  do {
297
297
  try {
298
- for (; ie < oe.length; ) {
299
- const e = oe[ie];
300
- ie++, he(e), un(e.$$);
298
+ for (; oe < le.length; ) {
299
+ const e = le[oe];
300
+ oe++, he(e), un(e.$$);
301
301
  }
302
302
  } catch (e) {
303
- throw oe.length = 0, ie = 0, e;
303
+ throw le.length = 0, oe = 0, e;
304
304
  }
305
- for (he(null), oe.length = 0, ie = 0; Re.length; )
306
- Re.pop()();
307
- for (let e = 0; e < le.length; e += 1) {
308
- const r = le[e];
305
+ for (he(null), le.length = 0, oe = 0; Ne.length; )
306
+ Ne.pop()();
307
+ for (let e = 0; e < ce.length; e += 1) {
308
+ const r = ce[e];
309
309
  xe.has(r) || (xe.add(r), r());
310
310
  }
311
- le.length = 0;
312
- } while (oe.length);
311
+ ce.length = 0;
312
+ } while (le.length);
313
313
  for (; Ye.length; )
314
314
  Ye.pop()();
315
315
  He = !1, xe.clear(), he(t);
@@ -318,14 +318,14 @@ function un(t) {
318
318
  if (t.fragment !== null) {
319
319
  t.update(), we(t.before_update);
320
320
  const e = t.dirty;
321
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(qe);
321
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ke);
322
322
  }
323
323
  }
324
324
  function fn(t) {
325
325
  const e = [], r = [];
326
- le.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), le = e;
326
+ ce.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), ce = e;
327
327
  }
328
- const Me = /* @__PURE__ */ new Set();
328
+ const Qe = /* @__PURE__ */ new Set();
329
329
  let ne;
330
330
  function L() {
331
331
  ne = {
@@ -339,14 +339,14 @@ function x() {
339
339
  ne.r || we(ne.c), ne = ne.p;
340
340
  }
341
341
  function u(t, e) {
342
- t && t.i && (Me.delete(t), t.i(e));
342
+ t && t.i && (Qe.delete(t), t.i(e));
343
343
  }
344
344
  function m(t, e, r, n) {
345
345
  if (t && t.o) {
346
- if (Me.has(t))
346
+ if (Qe.has(t))
347
347
  return;
348
- Me.add(t), ne.c.push(() => {
349
- Me.delete(t), n && (r && t.d(1), n());
348
+ Qe.add(t), ne.c.push(() => {
349
+ Qe.delete(t), n && (r && t.d(1), n());
350
350
  }), t.o(e);
351
351
  } else
352
352
  n && n();
@@ -360,26 +360,26 @@ function w(t) {
360
360
  }
361
361
  function I(t, e, r) {
362
362
  const { fragment: n, after_update: i } = t.$$;
363
- n && n.m(e, r), qe(() => {
364
- const s = t.$$.on_mount.map(bt).filter(ce);
365
- t.$$.on_destroy ? t.$$.on_destroy.push(...s) : we(s), t.$$.on_mount = [];
366
- }), i.forEach(qe);
363
+ n && n.m(e, r), Ke(() => {
364
+ const o = t.$$.on_mount.map(bt).filter(ae);
365
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : we(o), t.$$.on_mount = [];
366
+ }), i.forEach(Ke);
367
367
  }
368
368
  function b(t, e) {
369
369
  const r = t.$$;
370
370
  r.fragment !== null && (fn(r.after_update), we(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
371
371
  }
372
372
  function mn(t, e) {
373
- t.$$.dirty[0] === -1 && (oe.push(t), cn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
373
+ t.$$.dirty[0] === -1 && (le.push(t), cn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
374
374
  }
375
- function R(t, e, r, n, i, s, o = null, l = [-1]) {
375
+ function N(t, e, r, n, i, o, s = null, l = [-1]) {
376
376
  const c = Ie;
377
377
  he(t);
378
378
  const a = t.$$ = {
379
379
  fragment: null,
380
380
  ctx: [],
381
381
  // state
382
- props: s,
382
+ props: o,
383
383
  update: B,
384
384
  not_equal: i,
385
385
  bound: Xe(),
@@ -396,11 +396,11 @@ function R(t, e, r, n, i, s, o = null, l = [-1]) {
396
396
  skip_bound: !1,
397
397
  root: e.target || c.$$.root
398
398
  };
399
- o && o(a.root);
399
+ s && s(a.root);
400
400
  let f = !1;
401
401
  if (a.ctx = r ? r(t, e.props || {}, (d, E, ...v) => {
402
- const _ = v.length ? v[0] : E;
403
- return a.ctx && i(a.ctx[d], a.ctx[d] = _) && (!a.skip_bound && a.bound[d] && a.bound[d](_), f && mn(t, d)), E;
402
+ const A = v.length ? v[0] : E;
403
+ return a.ctx && i(a.ctx[d], a.ctx[d] = A) && (!a.skip_bound && a.bound[d] && a.bound[d](A), f && mn(t, d)), E;
404
404
  }) : [], a.update(), f = !0, we(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
405
405
  if (e.hydrate) {
406
406
  const d = tn(e.target);
@@ -420,7 +420,7 @@ class U {
420
420
  *
421
421
  * @type {any}
422
422
  */
423
- C(this, "$$");
423
+ M(this, "$$");
424
424
  /**
425
425
  * ### PRIVATE API
426
426
  *
@@ -428,7 +428,7 @@ class U {
428
428
  *
429
429
  * @type {any}
430
430
  */
431
- C(this, "$$set");
431
+ M(this, "$$set");
432
432
  }
433
433
  /** @returns {void} */
434
434
  $destroy() {
@@ -441,7 +441,7 @@ class U {
441
441
  * @returns {() => void}
442
442
  */
443
443
  $on(e, r) {
444
- if (!ce(r))
444
+ if (!ae(r))
445
445
  return B;
446
446
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
447
447
  return n.push(r), () => {
@@ -486,42 +486,42 @@ function Fe(t) {
486
486
  class: Ee("rcb-modal-section") + " svelte-1bzqb13"
487
487
  });
488
488
  },
489
- m(s, o) {
490
- p(s, e, o), i && i.m(e, null), r = !0;
489
+ m(o, s) {
490
+ p(o, e, s), i && i.m(e, null), r = !0;
491
491
  },
492
- p(s, o) {
493
- i && i.p && (!r || o & /*$$scope*/
494
- 2) && q(
492
+ p(o, s) {
493
+ i && i.p && (!r || s & /*$$scope*/
494
+ 2) && K(
495
495
  i,
496
496
  n,
497
- s,
497
+ o,
498
498
  /*$$scope*/
499
- s[1],
499
+ o[1],
500
500
  r ? H(
501
501
  n,
502
502
  /*$$scope*/
503
- s[1],
504
- o,
503
+ o[1],
504
+ s,
505
505
  null
506
- ) : K(
506
+ ) : q(
507
507
  /*$$scope*/
508
- s[1]
508
+ o[1]
509
509
  ),
510
510
  null
511
511
  );
512
512
  },
513
- i(s) {
514
- r || (u(i, s), r = !0);
513
+ i(o) {
514
+ r || (u(i, o), r = !0);
515
515
  },
516
- o(s) {
517
- m(i, s), r = !1;
516
+ o(o) {
517
+ m(i, o), r = !1;
518
518
  },
519
- d(s) {
520
- s && g(e), i && i.d(s);
519
+ d(o) {
520
+ o && g(e), i && i.d(o);
521
521
  }
522
522
  };
523
523
  }
524
- function An(t) {
524
+ function _n(t) {
525
525
  let e = (
526
526
  /*as*/
527
527
  t[0]
@@ -531,42 +531,42 @@ function An(t) {
531
531
  );
532
532
  return {
533
533
  c() {
534
- i && i.c(), r = Z();
534
+ i && i.c(), r = ee();
535
535
  },
536
- m(s, o) {
537
- i && i.m(s, o), p(s, r, o), n = !0;
536
+ m(o, s) {
537
+ i && i.m(o, s), p(o, r, s), n = !0;
538
538
  },
539
- p(s, [o]) {
539
+ p(o, [s]) {
540
540
  /*as*/
541
- s[0] ? e ? P(
541
+ o[0] ? e ? P(
542
542
  e,
543
543
  /*as*/
544
- s[0]
545
- ) ? (i.d(1), i = Fe(s), e = /*as*/
546
- s[0], i.c(), i.m(r.parentNode, r)) : i.p(s, o) : (i = Fe(s), e = /*as*/
547
- s[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
548
- s[0]);
544
+ o[0]
545
+ ) ? (i.d(1), i = Fe(o), e = /*as*/
546
+ o[0], i.c(), i.m(r.parentNode, r)) : i.p(o, s) : (i = Fe(o), e = /*as*/
547
+ o[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
548
+ o[0]);
549
549
  },
550
- i(s) {
551
- n || (u(i, s), n = !0);
550
+ i(o) {
551
+ n || (u(i, o), n = !0);
552
552
  },
553
- o(s) {
554
- m(i, s), n = !1;
553
+ o(o) {
554
+ m(i, o), n = !1;
555
555
  },
556
- d(s) {
557
- s && g(r), i && i.d(s);
556
+ d(o) {
557
+ o && g(r), i && i.d(o);
558
558
  }
559
559
  };
560
560
  }
561
- function _n(t, e, r) {
562
- let { $$slots: n = {}, $$scope: i } = e, { as: s = "section" } = e;
563
- return t.$$set = (o) => {
564
- "as" in o && r(0, s = o.as), "$$scope" in o && r(1, i = o.$$scope);
565
- }, [s, i, n];
561
+ function An(t, e, r) {
562
+ let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
563
+ return t.$$set = (s) => {
564
+ "as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
565
+ }, [o, i, n];
566
566
  }
567
- class ae extends U {
567
+ class ue extends U {
568
568
  constructor(e) {
569
- super(), R(this, e, _n, An, P, { as: 0 }, pn);
569
+ super(), N(this, e, An, _n, P, { as: 0 }, pn);
570
570
  }
571
571
  }
572
572
  var j = /* @__PURE__ */ ((t) => (t[t.Silent = 0] = "Silent", t[t.Error = 1] = "Error", t[t.Warn = 2] = "Warn", t[t.Info = 3] = "Info", t[t.Debug = 4] = "Debug", t[t.Verbose = 5] = "Verbose", t))(j || {});
@@ -611,7 +611,7 @@ class V {
611
611
  this.log(e, j.Verbose);
612
612
  }
613
613
  }
614
- C(V, "logLevel", j.Silent);
614
+ M(V, "logLevel", j.Silent);
615
615
  var pe = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(pe || {});
616
616
  function hn(t) {
617
617
  const e = t.match(/^PT?([0-9]+)([MDYW])$/);
@@ -679,7 +679,7 @@ function In(t) {
679
679
  let e, r, n = (
680
680
  /*productDetails*/
681
681
  t[0].displayName + ""
682
- ), i, s, o, l = (
682
+ ), i, o, s, l = (
683
683
  /*productDetails*/
684
684
  t[0].currentPrice.currency + ""
685
685
  ), c, a = " ", f, d = tt(
@@ -687,16 +687,16 @@ function In(t) {
687
687
  t[0].currentPrice.amount,
688
688
  /*productDetails*/
689
689
  t[0].currentPrice.currency
690
- ) + "", E, v, _, M, h, y = nt(
690
+ ) + "", E, v, A, Q, h, y = nt(
691
691
  /*productDetails*/
692
692
  t[0].normalPeriodDuration
693
- ) + "", F, $, de, ve, re;
693
+ ) + "", F, $, de, ve, ie;
694
694
  return {
695
695
  c() {
696
- e = k("div"), r = k("span"), i = N(n), s = T(), o = k("span"), c = N(l), f = N(a), E = N(d), v = T(), _ = k("ul"), M = k("li"), h = N("Billed "), F = N(y), $ = T(), de = k("li"), de.textContent = "Plan continues until cancelled", ve = T(), re = k("li"), re.textContent = "Cancel anytime", A(o, "class", "rcb-product-price svelte-i5dq8q"), A(_, "class", "rcb-product-details svelte-i5dq8q"), A(e, "class", "rcb-pricing-info svelte-i5dq8q");
696
+ e = k("div"), r = k("span"), i = R(n), o = T(), s = k("span"), c = R(l), f = R(a), E = R(d), v = T(), A = k("ul"), Q = k("li"), h = R("Billed "), F = R(y), $ = T(), de = k("li"), de.textContent = "Continues until canceled", ve = T(), ie = k("li"), ie.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-i5dq8q"), _(A, "class", "rcb-product-details svelte-i5dq8q"), _(e, "class", "rcb-pricing-info svelte-i5dq8q");
697
697
  },
698
698
  m(z, W) {
699
- p(z, e, W), Q(e, r), Q(r, i), Q(e, s), Q(e, o), Q(o, c), Q(o, f), Q(o, E), Q(e, v), Q(e, _), Q(_, M), Q(M, h), Q(M, F), Q(_, $), Q(_, de), Q(_, ve), Q(_, re);
699
+ p(z, e, W), D(e, r), D(r, i), D(e, o), D(e, s), D(s, c), D(s, f), D(s, E), D(e, v), D(e, A), D(A, Q), D(Q, h), D(Q, F), D(A, $), D(A, de), D(A, ve), D(A, ie);
700
700
  },
701
701
  p(z, W) {
702
702
  W & /*productDetails*/
@@ -722,7 +722,7 @@ function In(t) {
722
722
  }
723
723
  function bn(t) {
724
724
  let e, r;
725
- return e = new ae({
725
+ return e = new ue({
726
726
  props: {
727
727
  $$slots: { default: [In] },
728
728
  $$scope: { ctx: t }
@@ -735,9 +735,9 @@ function bn(t) {
735
735
  I(e, n, i), r = !0;
736
736
  },
737
737
  p(n, [i]) {
738
- const s = {};
738
+ const o = {};
739
739
  i & /*$$scope, productDetails*/
740
- 3 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
740
+ 3 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
741
741
  },
742
742
  i(n) {
743
743
  r || (u(e.$$.fragment, n), r = !0);
@@ -758,7 +758,7 @@ function wn(t, e, r) {
758
758
  }
759
759
  class Bt extends U {
760
760
  constructor(e) {
761
- super(), R(this, e, wn, bn, P, { productDetails: 0 }, En);
761
+ super(), N(this, e, wn, bn, P, { productDetails: 0 }, En);
762
762
  }
763
763
  }
764
764
  const kn = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69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";
@@ -766,7 +766,7 @@ function $n(t) {
766
766
  let e, r;
767
767
  return {
768
768
  c() {
769
- e = k("img"), X(e.src, r = kn) || A(e, "src", r), A(e, "alt", "spinner");
769
+ e = k("img"), X(e.src, r = kn) || _(e, "src", r), _(e, "alt", "spinner");
770
770
  },
771
771
  m(n, i) {
772
772
  p(n, e, i);
@@ -781,7 +781,7 @@ function $n(t) {
781
781
  }
782
782
  class vn extends U {
783
783
  constructor(e) {
784
- super(), R(this, e, null, $n, P, {});
784
+ super(), N(this, e, null, $n, P, {});
785
785
  }
786
786
  }
787
787
  function Bn(t) {
@@ -791,10 +791,10 @@ function yn(t) {
791
791
  let e, r, n;
792
792
  return r = new vn({}), {
793
793
  c() {
794
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-modal-loader svelte-1mxx341");
794
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-loader svelte-1mxx341");
795
795
  },
796
- m(i, s) {
797
- p(i, e, s), I(r, e, null), n = !0;
796
+ m(i, o) {
797
+ p(i, e, o), I(r, e, null), n = !0;
798
798
  },
799
799
  p: B,
800
800
  i(i) {
@@ -810,10 +810,10 @@ function yn(t) {
810
810
  }
811
811
  class je extends U {
812
812
  constructor(e) {
813
- super(), R(this, e, null, yn, P, {}, Bn);
813
+ super(), N(this, e, null, yn, P, {}, Bn);
814
814
  }
815
815
  }
816
- var Ae = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(Ae || {}), Ce = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Ce || {}), S = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(S || {});
816
+ var _e = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(_e || {}), Me = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Me || {}), S = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(S || {});
817
817
  class G extends Error {
818
818
  constructor(e, r, n) {
819
819
  super(r), this.errorCode = e, this.underlyingErrorMessage = n;
@@ -821,20 +821,20 @@ class G extends Error {
821
821
  }
822
822
  class Dn {
823
823
  constructor(e, r = 10) {
824
- C(this, "operationSessionId", null);
825
- C(this, "backend");
826
- C(this, "maxNumberAttempts");
827
- C(this, "waitMSBetweenAttempts", 1e3);
824
+ M(this, "operationSessionId", null);
825
+ M(this, "backend");
826
+ M(this, "maxNumberAttempts");
827
+ M(this, "waitMSBetweenAttempts", 1e3);
828
828
  this.backend = e, this.maxNumberAttempts = r;
829
829
  }
830
830
  async startPurchase(e, r, n, i) {
831
- const s = await this.backend.postSubscribe(
831
+ const o = await this.backend.postSubscribe(
832
832
  e,
833
833
  r,
834
834
  n,
835
835
  i
836
836
  );
837
- return this.operationSessionId = s.operation_session_id, s;
837
+ return this.operationSessionId = o.operation_session_id, o;
838
838
  }
839
839
  async pollCurrentPurchaseForCompletion() {
840
840
  const e = this.operationSessionId;
@@ -844,8 +844,8 @@ class Dn {
844
844
  "No purchase in progress"
845
845
  );
846
846
  return new Promise((r, n) => {
847
- const i = (s = 1) => {
848
- if (s > this.maxNumberAttempts) {
847
+ const i = (o = 1) => {
848
+ if (o > this.maxNumberAttempts) {
849
849
  this.clearPurchaseInProgress(), n(
850
850
  new G(
851
851
  2,
@@ -854,29 +854,29 @@ class Dn {
854
854
  );
855
855
  return;
856
856
  }
857
- this.backend.getCheckoutStatus(e).then((o) => {
858
- switch (o.operation.status) {
859
- case Ae.Started:
860
- case Ae.InProgress:
857
+ this.backend.getCheckoutStatus(e).then((s) => {
858
+ switch (s.operation.status) {
859
+ case _e.Started:
860
+ case _e.InProgress:
861
861
  setTimeout(
862
- () => i(s + 1),
862
+ () => i(o + 1),
863
863
  this.waitMSBetweenAttempts
864
864
  );
865
865
  break;
866
- case Ae.Succeeded:
866
+ case _e.Succeeded:
867
867
  this.clearPurchaseInProgress(), r();
868
868
  return;
869
- case Ae.Failed:
869
+ case _e.Failed:
870
870
  this.clearPurchaseInProgress(), this.handlePaymentError(
871
- o.operation.error,
871
+ s.operation.error,
872
872
  n
873
873
  );
874
874
  }
875
- }).catch((o) => {
875
+ }).catch((s) => {
876
876
  n(
877
877
  new G(
878
878
  3,
879
- o.message
879
+ s.message
880
880
  )
881
881
  );
882
882
  });
@@ -898,7 +898,7 @@ class Dn {
898
898
  return;
899
899
  }
900
900
  switch (e.code) {
901
- case Ce.SetupIntentCreationFailed:
901
+ case Me.SetupIntentCreationFailed:
902
902
  r(
903
903
  new G(
904
904
  0,
@@ -906,7 +906,7 @@ class Dn {
906
906
  )
907
907
  );
908
908
  return;
909
- case Ce.PaymentMethodCreationFailed:
909
+ case Me.PaymentMethodCreationFailed:
910
910
  r(
911
911
  new G(
912
912
  0,
@@ -914,7 +914,7 @@ class Dn {
914
914
  )
915
915
  );
916
916
  return;
917
- case Ce.PaymentChargeFailed:
917
+ case Me.PaymentChargeFailed:
918
918
  r(
919
919
  new G(
920
920
  1,
@@ -925,15 +925,15 @@ class Dn {
925
925
  }
926
926
  }
927
927
  }
928
- const Qn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
929
- function Mn(t) {
928
+ const Cn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
929
+ function Qn(t) {
930
930
  O(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
931
931
  }
932
- function Cn(t) {
932
+ function Mn(t) {
933
933
  let e, r;
934
934
  return {
935
935
  c() {
936
- e = k("img"), X(e.src, r = Qn) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon svelte-1609h93");
936
+ e = k("img"), X(e.src, r = Cn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
937
937
  },
938
938
  m(n, i) {
939
939
  p(n, e, i);
@@ -948,19 +948,19 @@ function Cn(t) {
948
948
  }
949
949
  class Pn extends U {
950
950
  constructor(e) {
951
- super(), R(this, e, null, Cn, P, {}, Mn);
951
+ super(), N(this, e, null, Mn, P, {}, Qn);
952
952
  }
953
953
  }
954
954
  function Tn(t) {
955
955
  O(t, "svelte-1rmxk7q", "button.svelte-1rmxk7q{border:none;border-radius:56px;font-size:16px;cursor:pointer;height:56px;color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center}button.intent-primary.svelte-1rmxk7q{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);font-size:16px}button.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}button.intent-primary.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}");
956
956
  }
957
- function Rn(t) {
958
- let e, r, n, i, s;
959
- const o = (
957
+ function Nn(t) {
958
+ let e, r, n, i, o;
959
+ const s = (
960
960
  /*#slots*/
961
961
  t[3].default
962
962
  ), l = Y(
963
- o,
963
+ s,
964
964
  t,
965
965
  /*$$scope*/
966
966
  t[2],
@@ -968,12 +968,12 @@ function Rn(t) {
968
968
  );
969
969
  return {
970
970
  c() {
971
- e = k("button"), l && l.c(), A(e, "class", r = Ee(`intent-${/*intent*/
971
+ e = k("button"), l && l.c(), _(e, "class", r = Ee(`intent-${/*intent*/
972
972
  t[0]}`) + " svelte-1rmxk7q"), e.disabled = /*disabled*/
973
973
  t[1];
974
974
  },
975
975
  m(c, a) {
976
- p(c, e, a), l && l.m(e, null), n = !0, i || (s = ke(
976
+ p(c, e, a), l && l.m(e, null), n = !0, i || (o = ke(
977
977
  e,
978
978
  "click",
979
979
  /*click_handler*/
@@ -982,26 +982,26 @@ function Rn(t) {
982
982
  },
983
983
  p(c, [a]) {
984
984
  l && l.p && (!n || a & /*$$scope*/
985
- 4) && q(
985
+ 4) && K(
986
986
  l,
987
- o,
987
+ s,
988
988
  c,
989
989
  /*$$scope*/
990
990
  c[2],
991
991
  n ? H(
992
- o,
992
+ s,
993
993
  /*$$scope*/
994
994
  c[2],
995
995
  a,
996
996
  null
997
- ) : K(
997
+ ) : q(
998
998
  /*$$scope*/
999
999
  c[2]
1000
1000
  ),
1001
1001
  null
1002
1002
  ), (!n || a & /*intent*/
1003
1003
  1 && r !== (r = Ee(`intent-${/*intent*/
1004
- c[0]}`) + " svelte-1rmxk7q")) && A(e, "class", r), (!n || a & /*disabled*/
1004
+ c[0]}`) + " svelte-1rmxk7q")) && _(e, "class", r), (!n || a & /*disabled*/
1005
1005
  2) && (e.disabled = /*disabled*/
1006
1006
  c[1]);
1007
1007
  },
@@ -1012,25 +1012,25 @@ function Rn(t) {
1012
1012
  m(l, c), n = !1;
1013
1013
  },
1014
1014
  d(c) {
1015
- c && g(e), l && l.d(c), i = !1, s();
1015
+ c && g(e), l && l.d(c), i = !1, o();
1016
1016
  }
1017
1017
  };
1018
1018
  }
1019
1019
  function Un(t, e, r) {
1020
- let { $$slots: n = {}, $$scope: i } = e, { intent: s = "primary" } = e, { disabled: o = !1 } = e;
1020
+ let { $$slots: n = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e;
1021
1021
  function l(c) {
1022
1022
  $t.call(this, t, c);
1023
1023
  }
1024
1024
  return t.$$set = (c) => {
1025
- "intent" in c && r(0, s = c.intent), "disabled" in c && r(1, o = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
1026
- }, [s, o, i, n, l];
1025
+ "intent" in c && r(0, o = c.intent), "disabled" in c && r(1, s = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
1026
+ }, [o, s, i, n, l];
1027
1027
  }
1028
1028
  class be extends U {
1029
1029
  constructor(e) {
1030
- super(), R(this, e, Un, Rn, P, { intent: 0, disabled: 1 }, Tn);
1030
+ super(), N(this, e, Un, Nn, P, { intent: 0, disabled: 1 }, Tn);
1031
1031
  }
1032
1032
  }
1033
- function Nn(t) {
1033
+ function Rn(t) {
1034
1034
  O(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1035
1035
  }
1036
1036
  function Sn(t) {
@@ -1047,52 +1047,52 @@ function Sn(t) {
1047
1047
  );
1048
1048
  return {
1049
1049
  c() {
1050
- e = k("footer"), i && i.c(), A(e, "class", "rcb-modal-footer svelte-1f9z0o8");
1050
+ e = k("footer"), i && i.c(), _(e, "class", "rcb-modal-footer svelte-1f9z0o8");
1051
1051
  },
1052
- m(s, o) {
1053
- p(s, e, o), i && i.m(e, null), r = !0;
1052
+ m(o, s) {
1053
+ p(o, e, s), i && i.m(e, null), r = !0;
1054
1054
  },
1055
- p(s, [o]) {
1056
- i && i.p && (!r || o & /*$$scope*/
1057
- 1) && q(
1055
+ p(o, [s]) {
1056
+ i && i.p && (!r || s & /*$$scope*/
1057
+ 1) && K(
1058
1058
  i,
1059
1059
  n,
1060
- s,
1060
+ o,
1061
1061
  /*$$scope*/
1062
- s[0],
1062
+ o[0],
1063
1063
  r ? H(
1064
1064
  n,
1065
1065
  /*$$scope*/
1066
- s[0],
1067
- o,
1066
+ o[0],
1067
+ s,
1068
1068
  null
1069
- ) : K(
1069
+ ) : q(
1070
1070
  /*$$scope*/
1071
- s[0]
1071
+ o[0]
1072
1072
  ),
1073
1073
  null
1074
1074
  );
1075
1075
  },
1076
- i(s) {
1077
- r || (u(i, s), r = !0);
1076
+ i(o) {
1077
+ r || (u(i, o), r = !0);
1078
1078
  },
1079
- o(s) {
1080
- m(i, s), r = !1;
1079
+ o(o) {
1080
+ m(i, o), r = !1;
1081
1081
  },
1082
- d(s) {
1083
- s && g(e), i && i.d(s);
1082
+ d(o) {
1083
+ o && g(e), i && i.d(o);
1084
1084
  }
1085
1085
  };
1086
1086
  }
1087
1087
  function On(t, e, r) {
1088
1088
  let { $$slots: n = {}, $$scope: i } = e;
1089
- return t.$$set = (s) => {
1090
- "$$scope" in s && r(0, i = s.$$scope);
1089
+ return t.$$set = (o) => {
1090
+ "$$scope" in o && r(0, i = o.$$scope);
1091
1091
  }, [i, n];
1092
1092
  }
1093
1093
  class Je extends U {
1094
1094
  constructor(e) {
1095
- super(), R(this, e, On, Sn, P, {}, Nn);
1095
+ super(), N(this, e, On, Sn, P, {}, Rn);
1096
1096
  }
1097
1097
  }
1098
1098
  function Ln(t) {
@@ -1103,7 +1103,7 @@ function xn(t) {
1103
1103
  const i = (
1104
1104
  /*#slots*/
1105
1105
  t[2].default
1106
- ), s = Y(
1106
+ ), o = Y(
1107
1107
  i,
1108
1108
  t,
1109
1109
  /*$$scope*/
@@ -1112,55 +1112,55 @@ function xn(t) {
1112
1112
  );
1113
1113
  return {
1114
1114
  c() {
1115
- e = k("div"), s && s.c(), A(e, "class", "column svelte-6o8e90"), A(e, "style", r = `--gap:${/*gutter*/
1115
+ e = k("div"), o && o.c(), _(e, "class", "column svelte-6o8e90"), _(e, "style", r = `--gap:${/*gutter*/
1116
1116
  t[0]};`);
1117
1117
  },
1118
- m(o, l) {
1119
- p(o, e, l), s && s.m(e, null), n = !0;
1118
+ m(s, l) {
1119
+ p(s, e, l), o && o.m(e, null), n = !0;
1120
1120
  },
1121
- p(o, [l]) {
1122
- s && s.p && (!n || l & /*$$scope*/
1123
- 2) && q(
1124
- s,
1125
- i,
1121
+ p(s, [l]) {
1122
+ o && o.p && (!n || l & /*$$scope*/
1123
+ 2) && K(
1126
1124
  o,
1125
+ i,
1126
+ s,
1127
1127
  /*$$scope*/
1128
- o[1],
1128
+ s[1],
1129
1129
  n ? H(
1130
1130
  i,
1131
1131
  /*$$scope*/
1132
- o[1],
1132
+ s[1],
1133
1133
  l,
1134
1134
  null
1135
- ) : K(
1135
+ ) : q(
1136
1136
  /*$$scope*/
1137
- o[1]
1137
+ s[1]
1138
1138
  ),
1139
1139
  null
1140
1140
  ), (!n || l & /*gutter*/
1141
1141
  1 && r !== (r = `--gap:${/*gutter*/
1142
- o[0]};`)) && A(e, "style", r);
1142
+ s[0]};`)) && _(e, "style", r);
1143
1143
  },
1144
- i(o) {
1145
- n || (u(s, o), n = !0);
1144
+ i(s) {
1145
+ n || (u(o, s), n = !0);
1146
1146
  },
1147
- o(o) {
1148
- m(s, o), n = !1;
1147
+ o(s) {
1148
+ m(o, s), n = !1;
1149
1149
  },
1150
- d(o) {
1151
- o && g(e), s && s.d(o);
1150
+ d(s) {
1151
+ s && g(e), o && o.d(s);
1152
1152
  }
1153
1153
  };
1154
1154
  }
1155
1155
  function Fn(t, e, r) {
1156
- let { $$slots: n = {}, $$scope: i } = e, { gutter: s = "8px" } = e;
1157
- return t.$$set = (o) => {
1158
- "gutter" in o && r(0, s = o.gutter), "$$scope" in o && r(1, i = o.$$scope);
1159
- }, [s, i, n];
1156
+ let { $$slots: n = {}, $$scope: i } = e, { gutter: o = "8px" } = e;
1157
+ return t.$$set = (s) => {
1158
+ "gutter" in s && r(0, o = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
1159
+ }, [o, i, n];
1160
1160
  }
1161
1161
  class $e extends U {
1162
1162
  constructor(e) {
1163
- super(), R(this, e, Fn, xn, P, { gutter: 0 }, Ln);
1163
+ super(), N(this, e, Fn, xn, P, { gutter: 0 }, Ln);
1164
1164
  }
1165
1165
  }
1166
1166
  const Gn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
@@ -1168,44 +1168,44 @@ function Yn(t) {
1168
1168
  O(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1169
1169
  }
1170
1170
  function Hn(t) {
1171
- let e, r, n, i, s;
1171
+ let e, r, n, i, o;
1172
1172
  return {
1173
1173
  c() {
1174
- e = k("button"), r = k("img"), X(r.src, n = Gn) || A(r, "src", n), A(r, "alt", "close"), A(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1174
+ e = k("button"), r = k("img"), X(r.src, n = Gn) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1175
1175
  t[0];
1176
1176
  },
1177
- m(o, l) {
1178
- p(o, e, l), Q(e, r), i || (s = ke(
1177
+ m(s, l) {
1178
+ p(s, e, l), D(e, r), i || (o = ke(
1179
1179
  e,
1180
1180
  "click",
1181
1181
  /*click_handler*/
1182
1182
  t[1]
1183
1183
  ), i = !0);
1184
1184
  },
1185
- p(o, [l]) {
1185
+ p(s, [l]) {
1186
1186
  l & /*disabled*/
1187
1187
  1 && (e.disabled = /*disabled*/
1188
- o[0]);
1188
+ s[0]);
1189
1189
  },
1190
1190
  i: B,
1191
1191
  o: B,
1192
- d(o) {
1193
- o && g(e), i = !1, s();
1192
+ d(s) {
1193
+ s && g(e), i = !1, o();
1194
1194
  }
1195
1195
  };
1196
1196
  }
1197
- function qn(t, e, r) {
1197
+ function Kn(t, e, r) {
1198
1198
  let { disabled: n = !1 } = e;
1199
- function i(s) {
1200
- $t.call(this, t, s);
1199
+ function i(o) {
1200
+ $t.call(this, t, o);
1201
1201
  }
1202
- return t.$$set = (s) => {
1203
- "disabled" in s && r(0, n = s.disabled);
1202
+ return t.$$set = (o) => {
1203
+ "disabled" in o && r(0, n = o.disabled);
1204
1204
  }, [n, i];
1205
1205
  }
1206
- class Kn extends U {
1206
+ class qn extends U {
1207
1207
  constructor(e) {
1208
- super(), R(this, e, qn, Hn, P, { disabled: 0 }, Yn);
1208
+ super(), N(this, e, Kn, Hn, P, { disabled: 0 }, Yn);
1209
1209
  }
1210
1210
  }
1211
1211
  function jn(t) {
@@ -1215,7 +1215,7 @@ function Jn(t) {
1215
1215
  let e;
1216
1216
  return {
1217
1217
  c() {
1218
- e = k("div"), A(e, "class", "rcb-app-icon loading svelte-44qpq9");
1218
+ e = k("div"), _(e, "class", "rcb-app-icon loading svelte-44qpq9");
1219
1219
  },
1220
1220
  m(r, n) {
1221
1221
  p(r, e, n);
@@ -1227,22 +1227,22 @@ function Jn(t) {
1227
1227
  };
1228
1228
  }
1229
1229
  function Vn(t) {
1230
- let e, r, n, i, s, o;
1230
+ let e, r, n, i, o, s;
1231
1231
  return {
1232
1232
  c() {
1233
- e = k("picture"), r = k("source"), i = T(), s = k("img"), A(r, "type", "image/webp"), Kt(r, n = /*srcWebp*/
1234
- t[1]) || A(r, "srcset", n), A(s, "class", "rcb-app-icon svelte-44qpq9"), X(s.src, o = /*src*/
1235
- t[0]) || A(s, "src", o), A(s, "alt", "App icon"), A(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1233
+ e = k("picture"), r = k("source"), i = T(), o = k("img"), _(r, "type", "image/webp"), qt(r, n = /*srcWebp*/
1234
+ t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"), X(o.src, s = /*src*/
1235
+ t[0]) || _(o, "src", s), _(o, "alt", "App icon"), _(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1236
1236
  },
1237
1237
  m(l, c) {
1238
- p(l, e, c), Q(e, r), Q(e, i), Q(e, s);
1238
+ p(l, e, c), D(e, r), D(e, i), D(e, o);
1239
1239
  },
1240
1240
  p(l, c) {
1241
1241
  c & /*srcWebp*/
1242
1242
  2 && n !== (n = /*srcWebp*/
1243
- l[1]) && A(r, "srcset", n), c & /*src*/
1244
- 1 && !X(s.src, o = /*src*/
1245
- l[0]) && A(s, "src", o);
1243
+ l[1]) && _(r, "srcset", n), c & /*src*/
1244
+ 1 && !X(o.src, s = /*src*/
1245
+ l[0]) && _(o, "src", s);
1246
1246
  },
1247
1247
  d(l) {
1248
1248
  l && g(e);
@@ -1251,39 +1251,39 @@ function Vn(t) {
1251
1251
  }
1252
1252
  function Wn(t) {
1253
1253
  let e;
1254
- function r(s, o) {
1254
+ function r(o, s) {
1255
1255
  return (
1256
1256
  /*src*/
1257
- s[0] !== null ? Vn : Jn
1257
+ o[0] !== null ? Vn : Jn
1258
1258
  );
1259
1259
  }
1260
1260
  let n = r(t), i = n(t);
1261
1261
  return {
1262
1262
  c() {
1263
- i.c(), e = Z();
1263
+ i.c(), e = ee();
1264
1264
  },
1265
- m(s, o) {
1266
- i.m(s, o), p(s, e, o);
1265
+ m(o, s) {
1266
+ i.m(o, s), p(o, e, s);
1267
1267
  },
1268
- p(s, [o]) {
1269
- n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(e.parentNode, e)));
1268
+ p(o, [s]) {
1269
+ n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(e.parentNode, e)));
1270
1270
  },
1271
1271
  i: B,
1272
1272
  o: B,
1273
- d(s) {
1274
- s && g(e), i.d(s);
1273
+ d(o) {
1274
+ o && g(e), i.d(o);
1275
1275
  }
1276
1276
  };
1277
1277
  }
1278
1278
  function zn(t, e, r) {
1279
1279
  let { src: n = null } = e, { srcWebp: i = null } = e;
1280
- return t.$$set = (s) => {
1281
- "src" in s && r(0, n = s.src), "srcWebp" in s && r(1, i = s.srcWebp);
1280
+ return t.$$set = (o) => {
1281
+ "src" in o && r(0, n = o.src), "srcWebp" in o && r(1, i = o.srcWebp);
1282
1282
  }, [n, i];
1283
1283
  }
1284
1284
  class yt extends U {
1285
1285
  constructor(e) {
1286
- super(), R(this, e, zn, Wn, P, { src: 0, srcWebp: 1 }, jn);
1286
+ super(), N(this, e, zn, Wn, P, { src: 0, srcWebp: 1 }, jn);
1287
1287
  }
1288
1288
  }
1289
1289
  const ye = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
@@ -1315,36 +1315,36 @@ function er(t) {
1315
1315
  let e, r, n = (
1316
1316
  /*brandingInfo*/
1317
1317
  t[0].seller_company_name + ""
1318
- ), i, s, o = (
1318
+ ), i, o, s = (
1319
1319
  /*brandingInfo*/
1320
1320
  t[0].app_icon_webp !== null && /*brandingInfo*/
1321
1321
  t[0].app_icon !== null && rt(t)
1322
1322
  );
1323
1323
  return {
1324
1324
  c() {
1325
- o && o.c(), e = T(), r = k("span"), i = N(n), A(r, "class", "app-title svelte-10uf5fq");
1325
+ s && s.c(), e = T(), r = k("span"), i = R(n), _(r, "class", "app-title svelte-10uf5fq");
1326
1326
  },
1327
1327
  m(l, c) {
1328
- o && o.m(l, c), p(l, e, c), p(l, r, c), Q(r, i), s = !0;
1328
+ s && s.m(l, c), p(l, e, c), p(l, r, c), D(r, i), o = !0;
1329
1329
  },
1330
1330
  p(l, c) {
1331
1331
  /*brandingInfo*/
1332
1332
  l[0].app_icon_webp !== null && /*brandingInfo*/
1333
- l[0].app_icon !== null ? o ? (o.p(l, c), c & /*brandingInfo*/
1334
- 1 && u(o, 1)) : (o = rt(l), o.c(), u(o, 1), o.m(e.parentNode, e)) : o && (L(), m(o, 1, 1, () => {
1335
- o = null;
1336
- }), x()), (!s || c & /*brandingInfo*/
1333
+ l[0].app_icon !== null ? s ? (s.p(l, c), c & /*brandingInfo*/
1334
+ 1 && u(s, 1)) : (s = rt(l), s.c(), u(s, 1), s.m(e.parentNode, e)) : s && (L(), m(s, 1, 1, () => {
1335
+ s = null;
1336
+ }), x()), (!o || c & /*brandingInfo*/
1337
1337
  1) && n !== (n = /*brandingInfo*/
1338
1338
  l[0].seller_company_name + "") && te(i, n);
1339
1339
  },
1340
1340
  i(l) {
1341
- s || (u(o), s = !0);
1341
+ o || (u(s), o = !0);
1342
1342
  },
1343
1343
  o(l) {
1344
- m(o), s = !1;
1344
+ m(s), o = !1;
1345
1345
  },
1346
1346
  d(l) {
1347
- l && (g(e), g(r)), o && o.d(l);
1347
+ l && (g(e), g(r)), s && s.d(l);
1348
1348
  }
1349
1349
  };
1350
1350
  }
@@ -1369,16 +1369,16 @@ function rt(t) {
1369
1369
  I(e, n, i), r = !0;
1370
1370
  },
1371
1371
  p(n, i) {
1372
- const s = {};
1372
+ const o = {};
1373
1373
  i & /*brandingInfo*/
1374
- 1 && (s.src = ye(
1374
+ 1 && (o.src = ye(
1375
1375
  /*brandingInfo*/
1376
1376
  n[0].app_icon
1377
1377
  )), i & /*brandingInfo*/
1378
- 1 && (s.srcWebp = ye(
1378
+ 1 && (o.srcWebp = ye(
1379
1379
  /*brandingInfo*/
1380
1380
  n[0].app_icon_webp
1381
- )), e.$set(s);
1381
+ )), e.$set(o);
1382
1382
  },
1383
1383
  i(n) {
1384
1384
  r || (u(e.$$.fragment, n), r = !0);
@@ -1393,25 +1393,25 @@ function rt(t) {
1393
1393
  }
1394
1394
  function tr(t) {
1395
1395
  let e, r, n, i;
1396
- const s = [er, Zn], o = [];
1396
+ const o = [er, Zn], s = [];
1397
1397
  function l(c, a) {
1398
1398
  return (
1399
1399
  /*brandingInfo*/
1400
1400
  c[0] !== null ? 0 : 1
1401
1401
  );
1402
1402
  }
1403
- return r = l(t), n = o[r] = s[r](t), {
1403
+ return r = l(t), n = s[r] = o[r](t), {
1404
1404
  c() {
1405
- e = k("div"), n.c(), A(e, "class", "rcb-header-layout__business-info svelte-10uf5fq");
1405
+ e = k("div"), n.c(), _(e, "class", "rcb-header-layout__business-info svelte-10uf5fq");
1406
1406
  },
1407
1407
  m(c, a) {
1408
- p(c, e, a), o[r].m(e, null), i = !0;
1408
+ p(c, e, a), s[r].m(e, null), i = !0;
1409
1409
  },
1410
1410
  p(c, [a]) {
1411
1411
  let f = r;
1412
- r = l(c), r === f ? o[r].p(c, a) : (L(), m(o[f], 1, 1, () => {
1413
- o[f] = null;
1414
- }), x(), n = o[r], n ? n.p(c, a) : (n = o[r] = s[r](c), n.c()), u(n, 1), n.m(e, null));
1412
+ r = l(c), r === f ? s[r].p(c, a) : (L(), m(s[f], 1, 1, () => {
1413
+ s[f] = null;
1414
+ }), x(), n = s[r], n ? n.p(c, a) : (n = s[r] = o[r](c), n.c()), u(n, 1), n.m(e, null));
1415
1415
  },
1416
1416
  i(c) {
1417
1417
  i || (u(n), i = !0);
@@ -1420,7 +1420,7 @@ function tr(t) {
1420
1420
  m(n), i = !1;
1421
1421
  },
1422
1422
  d(c) {
1423
- c && g(e), o[r].d();
1423
+ c && g(e), s[r].d();
1424
1424
  }
1425
1425
  };
1426
1426
  }
@@ -1432,52 +1432,52 @@ function nr(t, e, r) {
1432
1432
  }
1433
1433
  class Dt extends U {
1434
1434
  constructor(e) {
1435
- super(), R(this, e, nr, tr, P, { brandingInfo: 0 }, Xn);
1435
+ super(), N(this, e, nr, tr, P, { brandingInfo: 0 }, Xn);
1436
1436
  }
1437
1437
  }
1438
1438
  function rr(t) {
1439
1439
  O(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
1440
1440
  }
1441
1441
  function ir(t) {
1442
- let e, r, n, i, s;
1442
+ let e, r, n, i, o;
1443
1443
  return r = new Dt({
1444
1444
  props: { brandingInfo: (
1445
1445
  /*brandingInfo*/
1446
1446
  t[0]
1447
1447
  ) }
1448
- }), i = new Kn({}), i.$on("click", function() {
1449
- ce(
1448
+ }), i = new qn({}), i.$on("click", function() {
1449
+ ae(
1450
1450
  /*onClose*/
1451
1451
  t[1]
1452
1452
  ) && t[1].apply(this, arguments);
1453
1453
  }), {
1454
1454
  c() {
1455
- e = k("div"), w(r.$$.fragment), n = T(), w(i.$$.fragment), A(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1455
+ e = k("div"), w(r.$$.fragment), n = T(), w(i.$$.fragment), _(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1456
1456
  },
1457
- m(o, l) {
1458
- p(o, e, l), I(r, e, null), Q(e, n), I(i, e, null), s = !0;
1457
+ m(s, l) {
1458
+ p(s, e, l), I(r, e, null), D(e, n), I(i, e, null), o = !0;
1459
1459
  },
1460
- p(o, l) {
1461
- t = o;
1460
+ p(s, l) {
1461
+ t = s;
1462
1462
  const c = {};
1463
1463
  l & /*brandingInfo*/
1464
1464
  1 && (c.brandingInfo = /*brandingInfo*/
1465
1465
  t[0]), r.$set(c);
1466
1466
  },
1467
- i(o) {
1468
- s || (u(r.$$.fragment, o), u(i.$$.fragment, o), s = !0);
1467
+ i(s) {
1468
+ o || (u(r.$$.fragment, s), u(i.$$.fragment, s), o = !0);
1469
1469
  },
1470
- o(o) {
1471
- m(r.$$.fragment, o), m(i.$$.fragment, o), s = !1;
1470
+ o(s) {
1471
+ m(r.$$.fragment, s), m(i.$$.fragment, s), o = !1;
1472
1472
  },
1473
- d(o) {
1474
- o && g(e), b(r), b(i);
1473
+ d(s) {
1474
+ s && g(e), b(r), b(i);
1475
1475
  }
1476
1476
  };
1477
1477
  }
1478
- function sr(t) {
1478
+ function or(t) {
1479
1479
  let e, r;
1480
- return e = new ae({
1480
+ return e = new ue({
1481
1481
  props: {
1482
1482
  as: "header",
1483
1483
  $$slots: { default: [ir] },
@@ -1491,9 +1491,9 @@ function sr(t) {
1491
1491
  I(e, n, i), r = !0;
1492
1492
  },
1493
1493
  p(n, [i]) {
1494
- const s = {};
1494
+ const o = {};
1495
1495
  i & /*$$scope, onClose, brandingInfo*/
1496
- 7 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
1496
+ 7 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
1497
1497
  },
1498
1498
  i(n) {
1499
1499
  r || (u(e.$$.fragment, n), r = !0);
@@ -1506,15 +1506,15 @@ function sr(t) {
1506
1506
  }
1507
1507
  };
1508
1508
  }
1509
- function or(t, e, r) {
1509
+ function sr(t, e, r) {
1510
1510
  let { brandingInfo: n = null } = e, { onClose: i } = e;
1511
- return t.$$set = (s) => {
1512
- "brandingInfo" in s && r(0, n = s.brandingInfo), "onClose" in s && r(1, i = s.onClose);
1511
+ return t.$$set = (o) => {
1512
+ "brandingInfo" in o && r(0, n = o.brandingInfo), "onClose" in o && r(1, i = o.onClose);
1513
1513
  }, [n, i];
1514
1514
  }
1515
1515
  class lr extends U {
1516
1516
  constructor(e) {
1517
- super(), R(this, e, or, sr, P, { brandingInfo: 0, onClose: 1 }, rr);
1517
+ super(), N(this, e, sr, or, P, { brandingInfo: 0, onClose: 1 }, rr);
1518
1518
  }
1519
1519
  }
1520
1520
  function cr(t) {
@@ -1522,12 +1522,12 @@ function cr(t) {
1522
1522
  }
1523
1523
  const ar = (t) => ({}), it = (t) => ({});
1524
1524
  function ur(t) {
1525
- let e, r, n, i, s;
1526
- const o = (
1525
+ let e, r, n, i, o;
1526
+ const s = (
1527
1527
  /*#slots*/
1528
1528
  t[4].default
1529
1529
  ), l = Y(
1530
- o,
1530
+ s,
1531
1531
  t,
1532
1532
  /*$$scope*/
1533
1533
  t[5],
@@ -1535,34 +1535,34 @@ function ur(t) {
1535
1535
  );
1536
1536
  return {
1537
1537
  c() {
1538
- e = k("span"), r = N(
1538
+ e = k("span"), r = R(
1539
1539
  /*title*/
1540
1540
  t[2]
1541
- ), n = T(), i = k("span"), l && l.c(), A(e, "class", "title svelte-10pcqja"), A(i, "class", "subtitle svelte-10pcqja");
1541
+ ), n = T(), i = k("span"), l && l.c(), _(e, "class", "title svelte-10pcqja"), _(i, "class", "subtitle svelte-10pcqja");
1542
1542
  },
1543
1543
  m(c, a) {
1544
- p(c, e, a), Q(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), s = !0;
1544
+ p(c, e, a), D(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), o = !0;
1545
1545
  },
1546
1546
  p(c, a) {
1547
- (!s || a & /*title*/
1547
+ (!o || a & /*title*/
1548
1548
  4) && te(
1549
1549
  r,
1550
1550
  /*title*/
1551
1551
  c[2]
1552
- ), l && l.p && (!s || a & /*$$scope*/
1553
- 32) && q(
1552
+ ), l && l.p && (!o || a & /*$$scope*/
1553
+ 32) && K(
1554
1554
  l,
1555
- o,
1555
+ s,
1556
1556
  c,
1557
1557
  /*$$scope*/
1558
1558
  c[5],
1559
- s ? H(
1560
- o,
1559
+ o ? H(
1560
+ s,
1561
1561
  /*$$scope*/
1562
1562
  c[5],
1563
1563
  a,
1564
1564
  null
1565
- ) : K(
1565
+ ) : q(
1566
1566
  /*$$scope*/
1567
1567
  c[5]
1568
1568
  ),
@@ -1570,10 +1570,10 @@ function ur(t) {
1570
1570
  );
1571
1571
  },
1572
1572
  i(c) {
1573
- s || (u(l, c), s = !0);
1573
+ o || (u(l, c), o = !0);
1574
1574
  },
1575
1575
  o(c) {
1576
- m(l, c), s = !1;
1576
+ m(l, c), o = !1;
1577
1577
  },
1578
1578
  d(c) {
1579
1579
  c && (g(e), g(n), g(i)), l && l.d(c);
@@ -1585,7 +1585,7 @@ function fr(t) {
1585
1585
  const i = (
1586
1586
  /*#slots*/
1587
1587
  t[4].icon
1588
- ), s = Y(
1588
+ ), o = Y(
1589
1589
  i,
1590
1590
  t,
1591
1591
  /*$$scope*/
@@ -1600,43 +1600,43 @@ function fr(t) {
1600
1600
  }
1601
1601
  }), {
1602
1602
  c() {
1603
- s && s.c(), e = T(), w(r.$$.fragment);
1603
+ o && o.c(), e = T(), w(r.$$.fragment);
1604
1604
  },
1605
- m(o, l) {
1606
- s && s.m(o, l), p(o, e, l), I(r, o, l), n = !0;
1605
+ m(s, l) {
1606
+ o && o.m(s, l), p(s, e, l), I(r, s, l), n = !0;
1607
1607
  },
1608
- p(o, l) {
1609
- s && s.p && (!n || l & /*$$scope*/
1610
- 32) && q(
1611
- s,
1612
- i,
1608
+ p(s, l) {
1609
+ o && o.p && (!n || l & /*$$scope*/
1610
+ 32) && K(
1613
1611
  o,
1612
+ i,
1613
+ s,
1614
1614
  /*$$scope*/
1615
- o[5],
1615
+ s[5],
1616
1616
  n ? H(
1617
1617
  i,
1618
1618
  /*$$scope*/
1619
- o[5],
1619
+ s[5],
1620
1620
  l,
1621
1621
  ar
1622
- ) : K(
1622
+ ) : q(
1623
1623
  /*$$scope*/
1624
- o[5]
1624
+ s[5]
1625
1625
  ),
1626
1626
  it
1627
1627
  );
1628
1628
  const c = {};
1629
1629
  l & /*$$scope, title*/
1630
- 36 && (c.$$scope = { dirty: l, ctx: o }), r.$set(c);
1630
+ 36 && (c.$$scope = { dirty: l, ctx: s }), r.$set(c);
1631
1631
  },
1632
- i(o) {
1633
- n || (u(s, o), u(r.$$.fragment, o), n = !0);
1632
+ i(s) {
1633
+ n || (u(o, s), u(r.$$.fragment, s), n = !0);
1634
1634
  },
1635
- o(o) {
1636
- m(s, o), m(r.$$.fragment, o), n = !1;
1635
+ o(s) {
1636
+ m(o, s), m(r.$$.fragment, s), n = !1;
1637
1637
  },
1638
- d(o) {
1639
- o && g(e), s && s.d(o), b(r, o);
1638
+ d(s) {
1639
+ s && g(e), o && o.d(s), b(r, s);
1640
1640
  }
1641
1641
  };
1642
1642
  }
@@ -1650,21 +1650,21 @@ function dr(t) {
1650
1650
  }
1651
1651
  }), {
1652
1652
  c() {
1653
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-modal-message svelte-10pcqja"), A(
1653
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-message svelte-10pcqja"), _(
1654
1654
  e,
1655
1655
  "data-type",
1656
1656
  /*type*/
1657
1657
  t[3]
1658
1658
  );
1659
1659
  },
1660
- m(i, s) {
1661
- p(i, e, s), I(r, e, null), n = !0;
1660
+ m(i, o) {
1661
+ p(i, e, o), I(r, e, null), n = !0;
1662
1662
  },
1663
- p(i, s) {
1664
- const o = {};
1665
- s & /*$$scope, title*/
1666
- 36 && (o.$$scope = { dirty: s, ctx: i }), r.$set(o), (!n || s & /*type*/
1667
- 8) && A(
1663
+ p(i, o) {
1664
+ const s = {};
1665
+ o & /*$$scope, title*/
1666
+ 36 && (s.$$scope = { dirty: o, ctx: i }), r.$set(s), (!n || o & /*type*/
1667
+ 8) && _(
1668
1668
  e,
1669
1669
  "data-type",
1670
1670
  /*type*/
@@ -1686,7 +1686,7 @@ function mr(t) {
1686
1686
  let e;
1687
1687
  return {
1688
1688
  c() {
1689
- e = N("Go back to app");
1689
+ e = R("Go back to app");
1690
1690
  },
1691
1691
  m(r, n) {
1692
1692
  p(r, e, n);
@@ -1704,7 +1704,7 @@ function gr(t) {
1704
1704
  $$scope: { ctx: t }
1705
1705
  }
1706
1706
  }), e.$on("click", function() {
1707
- ce(
1707
+ ae(
1708
1708
  /*onContinue*/
1709
1709
  t[1]
1710
1710
  ) && t[1].apply(this, arguments);
@@ -1717,9 +1717,9 @@ function gr(t) {
1717
1717
  },
1718
1718
  p(n, i) {
1719
1719
  t = n;
1720
- const s = {};
1720
+ const o = {};
1721
1721
  i & /*$$scope*/
1722
- 32 && (s.$$scope = { dirty: i, ctx: t }), e.$set(s);
1722
+ 32 && (o.$$scope = { dirty: i, ctx: t }), e.$set(o);
1723
1723
  },
1724
1724
  i(n) {
1725
1725
  r || (u(e.$$.fragment, n), r = !0);
@@ -1733,7 +1733,7 @@ function gr(t) {
1733
1733
  };
1734
1734
  }
1735
1735
  function pr(t) {
1736
- let e, r, n, i, s, o;
1736
+ let e, r, n, i, o, s;
1737
1737
  return e = new lr({
1738
1738
  props: {
1739
1739
  brandingInfo: (
@@ -1745,22 +1745,22 @@ function pr(t) {
1745
1745
  t[1]
1746
1746
  )
1747
1747
  }
1748
- }), n = new ae({
1748
+ }), n = new ue({
1749
1749
  props: {
1750
1750
  $$slots: { default: [dr] },
1751
1751
  $$scope: { ctx: t }
1752
1752
  }
1753
- }), s = new Je({
1753
+ }), o = new Je({
1754
1754
  props: {
1755
1755
  $$slots: { default: [gr] },
1756
1756
  $$scope: { ctx: t }
1757
1757
  }
1758
1758
  }), {
1759
1759
  c() {
1760
- w(e.$$.fragment), r = T(), w(n.$$.fragment), i = T(), w(s.$$.fragment);
1760
+ w(e.$$.fragment), r = T(), w(n.$$.fragment), i = T(), w(o.$$.fragment);
1761
1761
  },
1762
1762
  m(l, c) {
1763
- I(e, l, c), p(l, r, c), I(n, l, c), p(l, i, c), I(s, l, c), o = !0;
1763
+ I(e, l, c), p(l, r, c), I(n, l, c), p(l, i, c), I(o, l, c), s = !0;
1764
1764
  },
1765
1765
  p(l, c) {
1766
1766
  const a = {};
@@ -1774,20 +1774,20 @@ function pr(t) {
1774
1774
  44 && (f.$$scope = { dirty: c, ctx: l }), n.$set(f);
1775
1775
  const d = {};
1776
1776
  c & /*$$scope, onContinue*/
1777
- 34 && (d.$$scope = { dirty: c, ctx: l }), s.$set(d);
1777
+ 34 && (d.$$scope = { dirty: c, ctx: l }), o.$set(d);
1778
1778
  },
1779
1779
  i(l) {
1780
- o || (u(e.$$.fragment, l), u(n.$$.fragment, l), u(s.$$.fragment, l), o = !0);
1780
+ s || (u(e.$$.fragment, l), u(n.$$.fragment, l), u(o.$$.fragment, l), s = !0);
1781
1781
  },
1782
1782
  o(l) {
1783
- m(e.$$.fragment, l), m(n.$$.fragment, l), m(s.$$.fragment, l), o = !1;
1783
+ m(e.$$.fragment, l), m(n.$$.fragment, l), m(o.$$.fragment, l), s = !1;
1784
1784
  },
1785
1785
  d(l) {
1786
- l && (g(r), g(i)), b(e, l), b(n, l), b(s, l);
1786
+ l && (g(r), g(i)), b(e, l), b(n, l), b(o, l);
1787
1787
  }
1788
1788
  };
1789
1789
  }
1790
- function Ar(t) {
1790
+ function _r(t) {
1791
1791
  let e, r;
1792
1792
  return e = new $e({
1793
1793
  props: {
@@ -1803,9 +1803,9 @@ function Ar(t) {
1803
1803
  I(e, n, i), r = !0;
1804
1804
  },
1805
1805
  p(n, [i]) {
1806
- const s = {};
1806
+ const o = {};
1807
1807
  i & /*$$scope, onContinue, type, title, brandingInfo*/
1808
- 47 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
1808
+ 47 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
1809
1809
  },
1810
1810
  i(n) {
1811
1811
  r || (u(e.$$.fragment, n), r = !0);
@@ -1818,19 +1818,19 @@ function Ar(t) {
1818
1818
  }
1819
1819
  };
1820
1820
  }
1821
- function _r(t, e, r) {
1822
- let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: s = null } = e, { onContinue: o } = e, { title: l } = e, { type: c } = e;
1821
+ function Ar(t, e, r) {
1822
+ let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: o = null } = e, { onContinue: s } = e, { title: l } = e, { type: c } = e;
1823
1823
  return t.$$set = (a) => {
1824
- "brandingInfo" in a && r(0, s = a.brandingInfo), "onContinue" in a && r(1, o = a.onContinue), "title" in a && r(2, l = a.title), "type" in a && r(3, c = a.type), "$$scope" in a && r(5, i = a.$$scope);
1825
- }, [s, o, l, c, n, i];
1824
+ "brandingInfo" in a && r(0, o = a.brandingInfo), "onContinue" in a && r(1, s = a.onContinue), "title" in a && r(2, l = a.title), "type" in a && r(3, c = a.type), "$$scope" in a && r(5, i = a.$$scope);
1825
+ }, [o, s, l, c, n, i];
1826
1826
  }
1827
- class Qt extends U {
1827
+ class Ct extends U {
1828
1828
  constructor(e) {
1829
- super(), R(
1829
+ super(), N(
1830
1830
  this,
1831
1831
  e,
1832
- _r,
1833
1832
  Ar,
1833
+ _r,
1834
1834
  P,
1835
1835
  {
1836
1836
  brandingInfo: 0,
@@ -1842,31 +1842,31 @@ class Qt extends U {
1842
1842
  );
1843
1843
  }
1844
1844
  }
1845
- function st(t) {
1846
- let e, r, n, i, s;
1845
+ function ot(t) {
1846
+ let e, r, n, i, o;
1847
1847
  return {
1848
1848
  c() {
1849
- e = N("If this error persists, please contact "), r = k("a"), n = N(
1849
+ e = R("If this error persists, please contact "), r = k("a"), n = R(
1850
1850
  /*supportEmail*/
1851
1851
  t[1]
1852
- ), s = N("."), A(r, "href", i = "mailto:" + /*supportEmail*/
1852
+ ), o = R("."), _(r, "href", i = "mailto:" + /*supportEmail*/
1853
1853
  t[1]);
1854
1854
  },
1855
- m(o, l) {
1856
- p(o, e, l), p(o, r, l), Q(r, n), p(o, s, l);
1855
+ m(s, l) {
1856
+ p(s, e, l), p(s, r, l), D(r, n), p(s, o, l);
1857
1857
  },
1858
- p(o, l) {
1858
+ p(s, l) {
1859
1859
  l & /*supportEmail*/
1860
1860
  2 && te(
1861
1861
  n,
1862
1862
  /*supportEmail*/
1863
- o[1]
1863
+ s[1]
1864
1864
  ), l & /*supportEmail*/
1865
1865
  2 && i !== (i = "mailto:" + /*supportEmail*/
1866
- o[1]) && A(r, "href", i);
1866
+ s[1]) && _(r, "href", i);
1867
1867
  },
1868
- d(o) {
1869
- o && (g(e), g(r), g(s));
1868
+ d(s) {
1869
+ s && (g(e), g(r), g(o));
1870
1870
  }
1871
1871
  };
1872
1872
  }
@@ -1874,23 +1874,23 @@ function hr(t) {
1874
1874
  let e = (
1875
1875
  /*getErrorMessage*/
1876
1876
  t[3]() + ""
1877
- ), r, n, i, s = (
1877
+ ), r, n, i, o = (
1878
1878
  /*supportEmail*/
1879
- t[1] && st(t)
1879
+ t[1] && ot(t)
1880
1880
  );
1881
1881
  return {
1882
1882
  c() {
1883
- r = N(e), n = T(), s && s.c(), i = Z();
1883
+ r = R(e), n = T(), o && o.c(), i = ee();
1884
1884
  },
1885
- m(o, l) {
1886
- p(o, r, l), p(o, n, l), s && s.m(o, l), p(o, i, l);
1885
+ m(s, l) {
1886
+ p(s, r, l), p(s, n, l), o && o.m(s, l), p(s, i, l);
1887
1887
  },
1888
- p(o, l) {
1888
+ p(s, l) {
1889
1889
  /*supportEmail*/
1890
- o[1] ? s ? s.p(o, l) : (s = st(o), s.c(), s.m(i.parentNode, i)) : s && (s.d(1), s = null);
1890
+ s[1] ? o ? o.p(s, l) : (o = ot(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
1891
1891
  },
1892
- d(o) {
1893
- o && (g(r), g(n), g(i)), s && s.d(o);
1892
+ d(s) {
1893
+ s && (g(r), g(n), g(i)), o && o.d(s);
1894
1894
  }
1895
1895
  };
1896
1896
  }
@@ -1917,7 +1917,7 @@ function Er(t) {
1917
1917
  }
1918
1918
  function Ir(t) {
1919
1919
  let e, r;
1920
- return e = new Qt({
1920
+ return e = new Ct({
1921
1921
  props: {
1922
1922
  title: "Something went wrong",
1923
1923
  brandingInfo: (
@@ -1943,13 +1943,13 @@ function Ir(t) {
1943
1943
  I(e, n, i), r = !0;
1944
1944
  },
1945
1945
  p(n, [i]) {
1946
- const s = {};
1946
+ const o = {};
1947
1947
  i & /*brandingInfo*/
1948
- 1 && (s.brandingInfo = /*brandingInfo*/
1948
+ 1 && (o.brandingInfo = /*brandingInfo*/
1949
1949
  n[0]), i & /*onContinue*/
1950
- 4 && (s.onContinue = /*onContinue*/
1950
+ 4 && (o.onContinue = /*onContinue*/
1951
1951
  n[2]), i & /*$$scope, supportEmail*/
1952
- 34 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
1952
+ 34 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
1953
1953
  },
1954
1954
  i(n) {
1955
1955
  r || (u(e.$$.fragment, n), r = !0);
@@ -1963,7 +1963,7 @@ function Ir(t) {
1963
1963
  };
1964
1964
  }
1965
1965
  function br(t, e, r) {
1966
- let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: s = null } = e, { onContinue: o } = e;
1966
+ let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: o = null } = e, { onContinue: s } = e;
1967
1967
  Se(() => {
1968
1968
  V.errorLog(`Displayed error: ${S[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
1969
1969
  });
@@ -1985,12 +1985,12 @@ function br(t, e, r) {
1985
1985
  return i.message;
1986
1986
  }
1987
1987
  return t.$$set = (c) => {
1988
- "brandingInfo" in c && r(0, n = c.brandingInfo), "lastError" in c && r(4, i = c.lastError), "supportEmail" in c && r(1, s = c.supportEmail), "onContinue" in c && r(2, o = c.onContinue);
1989
- }, [n, s, o, l, i];
1988
+ "brandingInfo" in c && r(0, n = c.brandingInfo), "lastError" in c && r(4, i = c.lastError), "supportEmail" in c && r(1, o = c.supportEmail), "onContinue" in c && r(2, s = c.onContinue);
1989
+ }, [n, o, s, l, i];
1990
1990
  }
1991
1991
  class wr extends U {
1992
1992
  constructor(e) {
1993
- super(), R(this, e, br, Ir, P, {
1993
+ super(), N(this, e, br, Ir, P, {
1994
1994
  brandingInfo: 0,
1995
1995
  lastError: 4,
1996
1996
  supportEmail: 1,
@@ -2006,7 +2006,7 @@ function vr(t) {
2006
2006
  let e, r;
2007
2007
  return {
2008
2008
  c() {
2009
- e = k("img"), X(e.src, r = kr) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2009
+ e = k("img"), X(e.src, r = kr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2010
2010
  },
2011
2011
  m(n, i) {
2012
2012
  p(n, e, i);
@@ -2021,14 +2021,14 @@ function vr(t) {
2021
2021
  }
2022
2022
  class Br extends U {
2023
2023
  constructor(e) {
2024
- super(), R(this, e, null, vr, P, {}, $r);
2024
+ super(), N(this, e, null, vr, P, {}, $r);
2025
2025
  }
2026
2026
  }
2027
2027
  function yr(t) {
2028
2028
  let e;
2029
2029
  return {
2030
2030
  c() {
2031
- e = N("Your plan is now active.");
2031
+ e = R("Your plan is now active.");
2032
2032
  },
2033
2033
  m(r, n) {
2034
2034
  p(r, e, n);
@@ -2059,9 +2059,9 @@ function Dr(t) {
2059
2059
  }
2060
2060
  };
2061
2061
  }
2062
- function Qr(t) {
2062
+ function Cr(t) {
2063
2063
  let e, r;
2064
- return e = new Qt({
2064
+ return e = new Ct({
2065
2065
  props: {
2066
2066
  type: "success",
2067
2067
  title: "Purchase successful",
@@ -2087,13 +2087,13 @@ function Qr(t) {
2087
2087
  I(e, n, i), r = !0;
2088
2088
  },
2089
2089
  p(n, [i]) {
2090
- const s = {};
2090
+ const o = {};
2091
2091
  i & /*brandingInfo*/
2092
- 1 && (s.brandingInfo = /*brandingInfo*/
2092
+ 1 && (o.brandingInfo = /*brandingInfo*/
2093
2093
  n[0]), i & /*onContinue*/
2094
- 2 && (s.onContinue = /*onContinue*/
2094
+ 2 && (o.onContinue = /*onContinue*/
2095
2095
  n[1]), i & /*$$scope*/
2096
- 4 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
2096
+ 4 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
2097
2097
  },
2098
2098
  i(n) {
2099
2099
  r || (u(e.$$.fragment, n), r = !0);
@@ -2106,23 +2106,23 @@ function Qr(t) {
2106
2106
  }
2107
2107
  };
2108
2108
  }
2109
- function Mr(t, e, r) {
2109
+ function Qr(t, e, r) {
2110
2110
  let { brandingInfo: n = null } = e, { onContinue: i } = e;
2111
- return t.$$set = (s) => {
2112
- "brandingInfo" in s && r(0, n = s.brandingInfo), "onContinue" in s && r(1, i = s.onContinue);
2111
+ return t.$$set = (o) => {
2112
+ "brandingInfo" in o && r(0, n = o.brandingInfo), "onContinue" in o && r(1, i = o.onContinue);
2113
2113
  }, [n, i];
2114
2114
  }
2115
- class Cr extends U {
2115
+ class Mr extends U {
2116
2116
  constructor(e) {
2117
- super(), R(this, e, Mr, Qr, P, { brandingInfo: 0, onContinue: 1 });
2117
+ super(), N(this, e, Qr, Cr, P, { brandingInfo: 0, onContinue: 1 });
2118
2118
  }
2119
2119
  }
2120
2120
  function Pr(t, e, r, n, i = {}) {
2121
- const s = r.create(e, i);
2122
- return s.mount(t), s.on("change", (o) => n("change", o)), s.on("ready", (o) => n("ready", o)), s.on("focus", (o) => n("focus", o)), s.on("blur", (o) => n("blur", o)), s.on("escape", (o) => n("escape", o)), s.on("click", (o) => n("click", o)), s.on("loaderror", (o) => n("loaderror", o)), s.on("loaderstart", (o) => n("loaderstart", o)), s.on("networkschange", (o) => n("networkschange", o)), s;
2121
+ const o = r.create(e, i);
2122
+ return o.mount(t), o.on("change", (s) => n("change", s)), o.on("ready", (s) => n("ready", s)), o.on("focus", (s) => n("focus", s)), o.on("blur", (s) => n("blur", s)), o.on("escape", (s) => n("escape", s)), o.on("click", (s) => n("click", s)), o.on("loaderror", (s) => n("loaderror", s)), o.on("loaderstart", (s) => n("loaderstart", s)), o.on("networkschange", (s) => n("networkschange", s)), o;
2123
2123
  }
2124
2124
  const Tr = typeof window > "u";
2125
- function Rr(t) {
2125
+ function Nr(t) {
2126
2126
  if (!Tr)
2127
2127
  return t.registerAppInfo({
2128
2128
  name: "svelte-stripe-js",
@@ -2146,11 +2146,11 @@ function Ur(t) {
2146
2146
  }
2147
2147
  };
2148
2148
  }
2149
- function Nr(t, e, r) {
2149
+ function Rr(t, e, r) {
2150
2150
  let n, i;
2151
- const s = rn(), { elements: o } = on("stripe");
2151
+ const o = rn(), { elements: s } = sn("stripe");
2152
2152
  let { options: l = void 0 } = e;
2153
- Se(() => (n = Pr(i, "payment", o, s, l), () => n.destroy()));
2153
+ Se(() => (n = Pr(i, "payment", s, o, l), () => n.destroy()));
2154
2154
  function c() {
2155
2155
  n.blur();
2156
2156
  }
@@ -2164,7 +2164,7 @@ function Nr(t, e, r) {
2164
2164
  n.focus();
2165
2165
  }
2166
2166
  function E(v) {
2167
- Re[v ? "unshift" : "push"](() => {
2167
+ Ne[v ? "unshift" : "push"](() => {
2168
2168
  i = v, r(0, i);
2169
2169
  });
2170
2170
  }
@@ -2174,7 +2174,7 @@ function Nr(t, e, r) {
2174
2174
  }
2175
2175
  class Sr extends U {
2176
2176
  constructor(e) {
2177
- super(), R(this, e, Nr, Ur, P, {
2177
+ super(), N(this, e, Rr, Ur, P, {
2178
2178
  options: 1,
2179
2179
  blur: 2,
2180
2180
  clear: 3,
@@ -2195,7 +2195,7 @@ class Sr extends U {
2195
2195
  return this.$$.ctx[5];
2196
2196
  }
2197
2197
  }
2198
- function ot(t) {
2198
+ function st(t) {
2199
2199
  let e;
2200
2200
  const r = (
2201
2201
  /*#slots*/
@@ -2211,12 +2211,12 @@ function ot(t) {
2211
2211
  c() {
2212
2212
  n && n.c();
2213
2213
  },
2214
- m(i, s) {
2215
- n && n.m(i, s), e = !0;
2214
+ m(i, o) {
2215
+ n && n.m(i, o), e = !0;
2216
2216
  },
2217
- p(i, s) {
2218
- n && n.p && (!e || s & /*$$scope*/
2219
- 16384) && q(
2217
+ p(i, o) {
2218
+ n && n.p && (!e || o & /*$$scope*/
2219
+ 16384) && K(
2220
2220
  n,
2221
2221
  r,
2222
2222
  i,
@@ -2226,9 +2226,9 @@ function ot(t) {
2226
2226
  r,
2227
2227
  /*$$scope*/
2228
2228
  i[14],
2229
- s,
2229
+ o,
2230
2230
  null
2231
- ) : K(
2231
+ ) : q(
2232
2232
  /*$$scope*/
2233
2233
  i[14]
2234
2234
  ),
@@ -2250,20 +2250,20 @@ function Or(t) {
2250
2250
  let e, r, n = (
2251
2251
  /*stripe*/
2252
2252
  t[1] && /*elements*/
2253
- t[0] && ot(t)
2253
+ t[0] && st(t)
2254
2254
  );
2255
2255
  return {
2256
2256
  c() {
2257
- n && n.c(), e = Z();
2257
+ n && n.c(), e = ee();
2258
2258
  },
2259
- m(i, s) {
2260
- n && n.m(i, s), p(i, e, s), r = !0;
2259
+ m(i, o) {
2260
+ n && n.m(i, o), p(i, e, o), r = !0;
2261
2261
  },
2262
- p(i, [s]) {
2262
+ p(i, [o]) {
2263
2263
  /*stripe*/
2264
2264
  i[1] && /*elements*/
2265
- i[0] ? n ? (n.p(i, s), s & /*stripe, elements*/
2266
- 3 && u(n, 1)) : (n = ot(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (L(), m(n, 1, 1, () => {
2265
+ i[0] ? n ? (n.p(i, o), o & /*stripe, elements*/
2266
+ 3 && u(n, 1)) : (n = st(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (L(), m(n, 1, 1, () => {
2267
2267
  n = null;
2268
2268
  }), x());
2269
2269
  },
@@ -2279,26 +2279,26 @@ function Or(t) {
2279
2279
  };
2280
2280
  }
2281
2281
  function Lr(t, e, r) {
2282
- let n, { $$slots: i = {}, $$scope: s } = e, { stripe: o } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: f = {} } = e, { labels: d = "above" } = e, { loader: E = "auto" } = e, { fonts: v = [] } = e, { locale: _ = "auto" } = e, { currency: M = void 0 } = e, { amount: h = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: F = null } = e;
2282
+ let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: f = {} } = e, { labels: d = "above" } = e, { loader: E = "auto" } = e, { fonts: v = [] } = e, { locale: A = "auto" } = e, { currency: Q = void 0 } = e, { amount: h = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: F = null } = e;
2283
2283
  return t.$$set = ($) => {
2284
- "stripe" in $ && r(1, o = $.stripe), "mode" in $ && r(2, l = $.mode), "theme" in $ && r(3, c = $.theme), "variables" in $ && r(4, a = $.variables), "rules" in $ && r(5, f = $.rules), "labels" in $ && r(6, d = $.labels), "loader" in $ && r(7, E = $.loader), "fonts" in $ && r(8, v = $.fonts), "locale" in $ && r(9, _ = $.locale), "currency" in $ && r(10, M = $.currency), "amount" in $ && r(11, h = $.amount), "clientSecret" in $ && r(12, y = $.clientSecret), "elements" in $ && r(0, F = $.elements), "$$scope" in $ && r(14, s = $.$$scope);
2284
+ "stripe" in $ && r(1, s = $.stripe), "mode" in $ && r(2, l = $.mode), "theme" in $ && r(3, c = $.theme), "variables" in $ && r(4, a = $.variables), "rules" in $ && r(5, f = $.rules), "labels" in $ && r(6, d = $.labels), "loader" in $ && r(7, E = $.loader), "fonts" in $ && r(8, v = $.fonts), "locale" in $ && r(9, A = $.locale), "currency" in $ && r(10, Q = $.currency), "amount" in $ && r(11, h = $.amount), "clientSecret" in $ && r(12, y = $.clientSecret), "elements" in $ && r(0, F = $.elements), "$$scope" in $ && r(14, o = $.$$scope);
2285
2285
  }, t.$$.update = () => {
2286
2286
  t.$$.dirty & /*theme, variables, rules, labels*/
2287
2287
  120 && r(13, n = { theme: c, variables: a, rules: f, labels: d }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
2288
- 16263 && o && !F && (r(0, F = o.elements({
2288
+ 16263 && s && !F && (r(0, F = s.elements({
2289
2289
  mode: l,
2290
- currency: M,
2290
+ currency: Q,
2291
2291
  amount: h,
2292
2292
  appearance: n,
2293
2293
  clientSecret: y,
2294
2294
  fonts: v,
2295
2295
  loader: E,
2296
- locale: _
2297
- })), Rr(o), sn("stripe", { stripe: o, elements: F })), t.$$.dirty & /*elements, appearance, locale*/
2298
- 8705 && F && F.update({ appearance: n, locale: _ });
2296
+ locale: A
2297
+ })), Nr(s), on("stripe", { stripe: s, elements: F })), t.$$.dirty & /*elements, appearance, locale*/
2298
+ 8705 && F && F.update({ appearance: n, locale: A });
2299
2299
  }, [
2300
2300
  F,
2301
- o,
2301
+ s,
2302
2302
  l,
2303
2303
  c,
2304
2304
  a,
@@ -2306,18 +2306,18 @@ function Lr(t, e, r) {
2306
2306
  d,
2307
2307
  E,
2308
2308
  v,
2309
- _,
2310
- M,
2309
+ A,
2310
+ Q,
2311
2311
  h,
2312
2312
  y,
2313
2313
  n,
2314
- s,
2314
+ o,
2315
2315
  i
2316
2316
  ];
2317
2317
  }
2318
2318
  class xr extends U {
2319
2319
  constructor(e) {
2320
- super(), R(this, e, Lr, Or, P, {
2320
+ super(), N(this, e, Lr, Or, P, {
2321
2321
  stripe: 1,
2322
2322
  mode: 2,
2323
2323
  theme: 3,
@@ -2334,8 +2334,8 @@ class xr extends U {
2334
2334
  });
2335
2335
  }
2336
2336
  }
2337
- var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, lt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Gr = function() {
2338
- for (var e = document.querySelectorAll('script[src^="'.concat(Mt, '"]')), r = 0; r < e.length; r++) {
2337
+ var Qt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, lt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Gr = function() {
2338
+ for (var e = document.querySelectorAll('script[src^="'.concat(Qt, '"]')), r = 0; r < e.length; r++) {
2339
2339
  var n = e[r];
2340
2340
  if (Fr.test(n.src))
2341
2341
  return n;
@@ -2343,7 +2343,7 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2343
2343
  return null;
2344
2344
  }, ct = function(e) {
2345
2345
  var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
2346
- n.src = "".concat(Mt).concat(r);
2346
+ n.src = "".concat(Qt).concat(r);
2347
2347
  var i = document.head || document.body;
2348
2348
  if (!i)
2349
2349
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
@@ -2354,15 +2354,15 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2354
2354
  version: "2.3.0",
2355
2355
  startTime: r
2356
2356
  });
2357
- }, me = null, De = null, Qe = null, Hr = function(e) {
2357
+ }, me = null, De = null, Ce = null, Hr = function(e) {
2358
2358
  return function() {
2359
2359
  e(new Error("Failed to load Stripe.js"));
2360
2360
  };
2361
- }, qr = function(e, r) {
2361
+ }, Kr = function(e, r) {
2362
2362
  return function() {
2363
2363
  window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
2364
2364
  };
2365
- }, Kr = function(e) {
2365
+ }, qr = function(e) {
2366
2366
  return me !== null ? me : (me = new Promise(function(r, n) {
2367
2367
  if (typeof window > "u" || typeof document > "u") {
2368
2368
  r(null);
@@ -2378,13 +2378,13 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2378
2378
  console.warn(lt);
2379
2379
  else if (!i)
2380
2380
  i = ct(e);
2381
- else if (i && Qe !== null && De !== null) {
2382
- var s;
2383
- i.removeEventListener("load", Qe), i.removeEventListener("error", De), (s = i.parentNode) === null || s === void 0 || s.removeChild(i), i = ct(e);
2381
+ else if (i && Ce !== null && De !== null) {
2382
+ var o;
2383
+ i.removeEventListener("load", Ce), i.removeEventListener("error", De), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = ct(e);
2384
2384
  }
2385
- Qe = qr(r, n), De = Hr(n), i.addEventListener("load", Qe), i.addEventListener("error", De);
2386
- } catch (o) {
2387
- n(o);
2385
+ Ce = Kr(r, n), De = Hr(n), i.addEventListener("load", Ce), i.addEventListener("error", De);
2386
+ } catch (s) {
2387
+ n(s);
2388
2388
  return;
2389
2389
  }
2390
2390
  }), me.catch(function(r) {
@@ -2395,23 +2395,23 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2395
2395
  return null;
2396
2396
  var i = e.apply(void 0, r);
2397
2397
  return Yr(i, n), i;
2398
- }, ge, Ct = !1, Pt = function() {
2399
- return ge || (ge = Kr(null).catch(function(e) {
2398
+ }, ge, Mt = !1, Pt = function() {
2399
+ return ge || (ge = qr(null).catch(function(e) {
2400
2400
  return ge = null, Promise.reject(e);
2401
2401
  }), ge);
2402
2402
  };
2403
2403
  Promise.resolve().then(function() {
2404
2404
  return Pt();
2405
2405
  }).catch(function(t) {
2406
- Ct || console.warn(t);
2406
+ Mt || console.warn(t);
2407
2407
  });
2408
2408
  var Jr = function() {
2409
2409
  for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
2410
2410
  r[n] = arguments[n];
2411
- Ct = !0;
2411
+ Mt = !0;
2412
2412
  var i = Date.now();
2413
- return Pt().then(function(s) {
2414
- return jr(s, r, i);
2413
+ return Pt().then(function(o) {
2414
+ return jr(o, r, i);
2415
2415
  });
2416
2416
  };
2417
2417
  function Vr(t) {
@@ -2431,46 +2431,46 @@ function Wr(t) {
2431
2431
  );
2432
2432
  return {
2433
2433
  c() {
2434
- e = k("div"), i && i.c(), A(e, "class", "rcb-header-layout svelte-1xe711j");
2434
+ e = k("div"), i && i.c(), _(e, "class", "rcb-header-layout svelte-1xe711j");
2435
2435
  },
2436
- m(s, o) {
2437
- p(s, e, o), i && i.m(e, null), r = !0;
2436
+ m(o, s) {
2437
+ p(o, e, s), i && i.m(e, null), r = !0;
2438
2438
  },
2439
- p(s, o) {
2440
- i && i.p && (!r || o & /*$$scope*/
2441
- 2) && q(
2439
+ p(o, s) {
2440
+ i && i.p && (!r || s & /*$$scope*/
2441
+ 2) && K(
2442
2442
  i,
2443
2443
  n,
2444
- s,
2444
+ o,
2445
2445
  /*$$scope*/
2446
- s[1],
2446
+ o[1],
2447
2447
  r ? H(
2448
2448
  n,
2449
2449
  /*$$scope*/
2450
- s[1],
2451
- o,
2450
+ o[1],
2451
+ s,
2452
2452
  null
2453
- ) : K(
2453
+ ) : q(
2454
2454
  /*$$scope*/
2455
- s[1]
2455
+ o[1]
2456
2456
  ),
2457
2457
  null
2458
2458
  );
2459
2459
  },
2460
- i(s) {
2461
- r || (u(i, s), r = !0);
2460
+ i(o) {
2461
+ r || (u(i, o), r = !0);
2462
2462
  },
2463
- o(s) {
2464
- m(i, s), r = !1;
2463
+ o(o) {
2464
+ m(i, o), r = !1;
2465
2465
  },
2466
- d(s) {
2467
- s && g(e), i && i.d(s);
2466
+ d(o) {
2467
+ o && g(e), i && i.d(o);
2468
2468
  }
2469
2469
  };
2470
2470
  }
2471
2471
  function zr(t) {
2472
2472
  let e, r;
2473
- return e = new ae({
2473
+ return e = new ue({
2474
2474
  props: {
2475
2475
  as: "header",
2476
2476
  $$slots: { default: [Wr] },
@@ -2484,9 +2484,9 @@ function zr(t) {
2484
2484
  I(e, n, i), r = !0;
2485
2485
  },
2486
2486
  p(n, [i]) {
2487
- const s = {};
2487
+ const o = {};
2488
2488
  i & /*$$scope*/
2489
- 2 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
2489
+ 2 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
2490
2490
  },
2491
2491
  i(n) {
2492
2492
  r || (u(e.$$.fragment, n), r = !0);
@@ -2501,13 +2501,13 @@ function zr(t) {
2501
2501
  }
2502
2502
  function Xr(t, e, r) {
2503
2503
  let { $$slots: n = {}, $$scope: i } = e;
2504
- return t.$$set = (s) => {
2505
- "$$scope" in s && r(1, i = s.$$scope);
2504
+ return t.$$set = (o) => {
2505
+ "$$scope" in o && r(1, i = o.$$scope);
2506
2506
  }, [n, i];
2507
2507
  }
2508
2508
  class Ve extends U {
2509
2509
  constructor(e) {
2510
- super(), R(this, e, Xr, zr, P, {}, Vr);
2510
+ super(), N(this, e, Xr, zr, P, {}, Vr);
2511
2511
  }
2512
2512
  }
2513
2513
  const Zr = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%208H17V6C17%203.24%2014.76%201%2012%201C9.24%201%207%203.24%207%206V8H6C4.9%208%204%208.9%204%2010V20C4%2021.1%204.9%2022%206%2022H18C19.1%2022%2020%2021.1%2020%2020V10C20%208.9%2019.1%208%2018%208ZM12%2017C10.9%2017%2010%2016.1%2010%2015C10%2013.9%2010.9%2013%2012%2013C13.1%2013%2014%2013.9%2014%2015C14%2016.1%2013.1%2017%2012%2017ZM15.1%208H8.9V6C8.9%204.29%2010.29%202.9%2012%202.9C13.71%202.9%2015.1%204.29%2015.1%206V8Z'%20fill='%2311D483'/%3e%3c/svg%3e";
@@ -2515,7 +2515,7 @@ function ei(t) {
2515
2515
  let e, r;
2516
2516
  return {
2517
2517
  c() {
2518
- e = k("img"), X(e.src, r = Zr) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon");
2518
+ e = k("img"), X(e.src, r = Zr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
2519
2519
  },
2520
2520
  m(n, i) {
2521
2521
  p(n, e, i);
@@ -2530,10 +2530,10 @@ function ei(t) {
2530
2530
  }
2531
2531
  class ti extends U {
2532
2532
  constructor(e) {
2533
- super(), R(this, e, null, ei, P, {});
2533
+ super(), N(this, e, null, ei, P, {});
2534
2534
  }
2535
2535
  }
2536
- const _e = {
2536
+ const Ae = {
2537
2537
  error: "#f2545b",
2538
2538
  warning: "#f4e971",
2539
2539
  focus: "#000080",
@@ -2554,7 +2554,7 @@ function ri(t) {
2554
2554
  let e;
2555
2555
  return {
2556
2556
  c() {
2557
- e = k("div"), A(e, "class", "processing svelte-rjmul6");
2557
+ e = k("div"), _(e, "class", "processing svelte-rjmul6");
2558
2558
  },
2559
2559
  m(r, n) {
2560
2560
  p(r, e, n);
@@ -2569,13 +2569,13 @@ function ri(t) {
2569
2569
  }
2570
2570
  class Tt extends U {
2571
2571
  constructor(e) {
2572
- super(), R(this, e, null, ri, P, {}, ni);
2572
+ super(), N(this, e, null, ri, P, {}, ni);
2573
2573
  }
2574
2574
  }
2575
2575
  function ii(t) {
2576
2576
  O(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2577
2577
  }
2578
- function si(t) {
2578
+ function oi(t) {
2579
2579
  let e, r;
2580
2580
  return e = new je({}), {
2581
2581
  c() {
@@ -2596,8 +2596,8 @@ function si(t) {
2596
2596
  }
2597
2597
  };
2598
2598
  }
2599
- function oi(t) {
2600
- let e, r, n, i, s, o;
2599
+ function si(t) {
2600
+ let e, r, n, i, o, s;
2601
2601
  function l(a) {
2602
2602
  t[9](a);
2603
2603
  }
@@ -2617,17 +2617,17 @@ function oi(t) {
2617
2617
  fontSizeBase: "16px",
2618
2618
  fontSizeSm: "16px",
2619
2619
  spacingGridRow: "16px",
2620
- colorText: _e["grey-text-dark"],
2620
+ colorText: Ae["grey-text-dark"],
2621
2621
  focusBoxShadow: "none",
2622
- colorDanger: _e.error
2622
+ colorDanger: Ae.error
2623
2623
  },
2624
2624
  rules: {
2625
2625
  ".Input": {
2626
2626
  boxShadow: "none",
2627
- border: `2px solid ${_e["grey-ui-dark"]}`
2627
+ border: `2px solid ${Ae["grey-ui-dark"]}`
2628
2628
  },
2629
2629
  ".Input:focus": {
2630
- border: `2px solid ${_e.focus}`,
2630
+ border: `2px solid ${Ae.focus}`,
2631
2631
  outline: "none"
2632
2632
  },
2633
2633
  ".Label": {
@@ -2643,15 +2643,15 @@ function oi(t) {
2643
2643
  return (
2644
2644
  /*elements*/
2645
2645
  t[2] !== void 0 && (c.elements = /*elements*/
2646
- t[2]), r = new xr({ props: c }), Re.push(() => dn(r, "elements", l)), {
2646
+ t[2]), r = new xr({ props: c }), Ne.push(() => dn(r, "elements", l)), {
2647
2647
  c() {
2648
2648
  e = k("form"), w(r.$$.fragment);
2649
2649
  },
2650
2650
  m(a, f) {
2651
- p(a, e, f), I(r, e, null), i = !0, s || (o = ke(e, "submit", kt(
2651
+ p(a, e, f), I(r, e, null), i = !0, o || (s = ke(e, "submit", kt(
2652
2652
  /*handleContinue*/
2653
2653
  t[5]
2654
- )), s = !0);
2654
+ )), o = !0);
2655
2655
  },
2656
2656
  p(a, f) {
2657
2657
  const d = {};
@@ -2669,7 +2669,7 @@ function oi(t) {
2669
2669
  m(r.$$.fragment, a), i = !1;
2670
2670
  },
2671
2671
  d(a) {
2672
- a && g(e), b(r), s = !1, o();
2672
+ a && g(e), b(r), o = !1, s();
2673
2673
  }
2674
2674
  }
2675
2675
  );
@@ -2680,18 +2680,18 @@ function li(t) {
2680
2680
  c() {
2681
2681
  e = k("div"), e.textContent = "Secure Checkout", r = T(), w(n.$$.fragment);
2682
2682
  },
2683
- m(s, o) {
2684
- p(s, e, o), p(s, r, o), I(n, s, o), i = !0;
2683
+ m(o, s) {
2684
+ p(o, e, s), p(o, r, s), I(n, o, s), i = !0;
2685
2685
  },
2686
2686
  p: B,
2687
- i(s) {
2688
- i || (u(n.$$.fragment, s), i = !0);
2687
+ i(o) {
2688
+ i || (u(n.$$.fragment, o), i = !0);
2689
2689
  },
2690
- o(s) {
2691
- m(n.$$.fragment, s), i = !1;
2690
+ o(o) {
2691
+ m(n.$$.fragment, o), i = !1;
2692
2692
  },
2693
- d(s) {
2694
- s && (g(e), g(r)), b(n, s);
2693
+ d(o) {
2694
+ o && (g(e), g(r)), b(n, o);
2695
2695
  }
2696
2696
  };
2697
2697
  }
@@ -2699,10 +2699,10 @@ function ci(t) {
2699
2699
  let e, r, n;
2700
2700
  return r = new Sr({}), {
2701
2701
  c() {
2702
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
2702
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
2703
2703
  },
2704
- m(i, s) {
2705
- p(i, e, s), I(r, e, null), n = !0;
2704
+ m(i, o) {
2705
+ p(i, e, o), I(r, e, null), n = !0;
2706
2706
  },
2707
2707
  p: B,
2708
2708
  i(i) {
@@ -2720,7 +2720,7 @@ function ai(t) {
2720
2720
  let e;
2721
2721
  return {
2722
2722
  c() {
2723
- e = N("Pay");
2723
+ e = R("Pay");
2724
2724
  },
2725
2725
  m(r, n) {
2726
2726
  p(r, e, n);
@@ -2754,25 +2754,25 @@ function ui(t) {
2754
2754
  }
2755
2755
  function fi(t) {
2756
2756
  let e, r, n, i;
2757
- const s = [ui, ai], o = [];
2757
+ const o = [ui, ai], s = [];
2758
2758
  function l(c, a) {
2759
2759
  return (
2760
2760
  /*processing*/
2761
2761
  c[0] ? 0 : 1
2762
2762
  );
2763
2763
  }
2764
- return e = l(t), r = o[e] = s[e](t), {
2764
+ return e = l(t), r = s[e] = o[e](t), {
2765
2765
  c() {
2766
- r.c(), n = Z();
2766
+ r.c(), n = ee();
2767
2767
  },
2768
2768
  m(c, a) {
2769
- o[e].m(c, a), p(c, n, a), i = !0;
2769
+ s[e].m(c, a), p(c, n, a), i = !0;
2770
2770
  },
2771
2771
  p(c, a) {
2772
2772
  let f = e;
2773
- e = l(c), e !== f && (L(), m(o[f], 1, 1, () => {
2774
- o[f] = null;
2775
- }), x(), r = o[e], r || (r = o[e] = s[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
2773
+ e = l(c), e !== f && (L(), m(s[f], 1, 1, () => {
2774
+ s[f] = null;
2775
+ }), x(), r = s[e], r || (r = s[e] = o[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
2776
2776
  },
2777
2777
  i(c) {
2778
2778
  i || (u(r), i = !0);
@@ -2781,7 +2781,7 @@ function fi(t) {
2781
2781
  m(r), i = !1;
2782
2782
  },
2783
2783
  d(c) {
2784
- c && g(n), o[e].d(c);
2784
+ c && g(n), s[e].d(c);
2785
2785
  }
2786
2786
  };
2787
2787
  }
@@ -2789,7 +2789,7 @@ function di(t) {
2789
2789
  let e;
2790
2790
  return {
2791
2791
  c() {
2792
- e = N("Close");
2792
+ e = R("Close");
2793
2793
  },
2794
2794
  m(r, n) {
2795
2795
  p(r, e, n);
@@ -2821,7 +2821,7 @@ function mi(t) {
2821
2821
  $$scope: { ctx: t }
2822
2822
  }
2823
2823
  }), n.$on("click", function() {
2824
- ce(
2824
+ ae(
2825
2825
  /*onClose*/
2826
2826
  t[1]
2827
2827
  ) && t[1].apply(this, arguments);
@@ -2829,30 +2829,30 @@ function mi(t) {
2829
2829
  c() {
2830
2830
  w(e.$$.fragment), r = T(), w(n.$$.fragment);
2831
2831
  },
2832
- m(s, o) {
2833
- I(e, s, o), p(s, r, o), I(n, s, o), i = !0;
2832
+ m(o, s) {
2833
+ I(e, o, s), p(o, r, s), I(n, o, s), i = !0;
2834
2834
  },
2835
- p(s, o) {
2836
- t = s;
2835
+ p(o, s) {
2836
+ t = o;
2837
2837
  const l = {};
2838
- o & /*processing*/
2838
+ s & /*processing*/
2839
2839
  1 && (l.disabled = /*processing*/
2840
- t[0]), o & /*$$scope, processing*/
2841
- 2049 && (l.$$scope = { dirty: o, ctx: t }), e.$set(l);
2840
+ t[0]), s & /*$$scope, processing*/
2841
+ 2049 && (l.$$scope = { dirty: s, ctx: t }), e.$set(l);
2842
2842
  const c = {};
2843
- o & /*processing*/
2843
+ s & /*processing*/
2844
2844
  1 && (c.disabled = /*processing*/
2845
- t[0]), o & /*$$scope*/
2846
- 2048 && (c.$$scope = { dirty: o, ctx: t }), n.$set(c);
2845
+ t[0]), s & /*$$scope*/
2846
+ 2048 && (c.$$scope = { dirty: s, ctx: t }), n.$set(c);
2847
2847
  },
2848
- i(s) {
2849
- i || (u(e.$$.fragment, s), u(n.$$.fragment, s), i = !0);
2848
+ i(o) {
2849
+ i || (u(e.$$.fragment, o), u(n.$$.fragment, o), i = !0);
2850
2850
  },
2851
- o(s) {
2852
- m(e.$$.fragment, s), m(n.$$.fragment, s), i = !1;
2851
+ o(o) {
2852
+ m(e.$$.fragment, o), m(n.$$.fragment, o), i = !1;
2853
2853
  },
2854
- d(s) {
2855
- s && g(r), b(e, s), b(n, s);
2854
+ d(o) {
2855
+ o && g(r), b(e, o), b(n, o);
2856
2856
  }
2857
2857
  };
2858
2858
  }
@@ -2871,9 +2871,9 @@ function gi(t) {
2871
2871
  I(e, n, i), r = !0;
2872
2872
  },
2873
2873
  p(n, i) {
2874
- const s = {};
2874
+ const o = {};
2875
2875
  i & /*$$scope, processing, onClose*/
2876
- 2051 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
2876
+ 2051 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
2877
2877
  },
2878
2878
  i(n) {
2879
2879
  r || (u(e.$$.fragment, n), r = !0);
@@ -2887,28 +2887,28 @@ function gi(t) {
2887
2887
  };
2888
2888
  }
2889
2889
  function pi(t) {
2890
- let e, r, n, i, s, o;
2890
+ let e, r, n, i, o, s;
2891
2891
  return e = new Ve({
2892
2892
  props: {
2893
2893
  $$slots: { default: [li] },
2894
2894
  $$scope: { ctx: t }
2895
2895
  }
2896
- }), n = new ae({
2896
+ }), n = new ue({
2897
2897
  props: {
2898
2898
  $$slots: { default: [ci] },
2899
2899
  $$scope: { ctx: t }
2900
2900
  }
2901
- }), s = new Je({
2901
+ }), o = new Je({
2902
2902
  props: {
2903
2903
  $$slots: { default: [gi] },
2904
2904
  $$scope: { ctx: t }
2905
2905
  }
2906
2906
  }), {
2907
2907
  c() {
2908
- w(e.$$.fragment), r = T(), w(n.$$.fragment), i = T(), w(s.$$.fragment);
2908
+ w(e.$$.fragment), r = T(), w(n.$$.fragment), i = T(), w(o.$$.fragment);
2909
2909
  },
2910
2910
  m(l, c) {
2911
- I(e, l, c), p(l, r, c), I(n, l, c), p(l, i, c), I(s, l, c), o = !0;
2911
+ I(e, l, c), p(l, r, c), I(n, l, c), p(l, i, c), I(o, l, c), s = !0;
2912
2912
  },
2913
2913
  p(l, c) {
2914
2914
  const a = {};
@@ -2919,22 +2919,22 @@ function pi(t) {
2919
2919
  2048 && (f.$$scope = { dirty: c, ctx: l }), n.$set(f);
2920
2920
  const d = {};
2921
2921
  c & /*$$scope, processing, onClose*/
2922
- 2051 && (d.$$scope = { dirty: c, ctx: l }), s.$set(d);
2922
+ 2051 && (d.$$scope = { dirty: c, ctx: l }), o.$set(d);
2923
2923
  },
2924
2924
  i(l) {
2925
- o || (u(e.$$.fragment, l), u(n.$$.fragment, l), u(s.$$.fragment, l), o = !0);
2925
+ s || (u(e.$$.fragment, l), u(n.$$.fragment, l), u(o.$$.fragment, l), s = !0);
2926
2926
  },
2927
2927
  o(l) {
2928
- m(e.$$.fragment, l), m(n.$$.fragment, l), m(s.$$.fragment, l), o = !1;
2928
+ m(e.$$.fragment, l), m(n.$$.fragment, l), m(o.$$.fragment, l), s = !1;
2929
2929
  },
2930
2930
  d(l) {
2931
- l && (g(r), g(i)), b(e, l), b(n, l), b(s, l);
2931
+ l && (g(r), g(i)), b(e, l), b(n, l), b(o, l);
2932
2932
  }
2933
2933
  };
2934
2934
  }
2935
- function Ai(t) {
2935
+ function _i(t) {
2936
2936
  let e, r, n, i;
2937
- const s = [oi, si], o = [];
2937
+ const o = [si, oi], s = [];
2938
2938
  function l(c, a) {
2939
2939
  return (
2940
2940
  /*stripe*/
@@ -2942,18 +2942,18 @@ function Ai(t) {
2942
2942
  c[4] ? 0 : 1
2943
2943
  );
2944
2944
  }
2945
- return r = l(t), n = o[r] = s[r](t), {
2945
+ return r = l(t), n = s[r] = o[r](t), {
2946
2946
  c() {
2947
2947
  e = k("div"), n.c();
2948
2948
  },
2949
2949
  m(c, a) {
2950
- p(c, e, a), o[r].m(e, null), i = !0;
2950
+ p(c, e, a), s[r].m(e, null), i = !0;
2951
2951
  },
2952
2952
  p(c, [a]) {
2953
2953
  let f = r;
2954
- r = l(c), r === f ? o[r].p(c, a) : (L(), m(o[f], 1, 1, () => {
2955
- o[f] = null;
2956
- }), x(), n = o[r], n ? n.p(c, a) : (n = o[r] = s[r](c), n.c()), u(n, 1), n.m(e, null));
2954
+ r = l(c), r === f ? s[r].p(c, a) : (L(), m(s[f], 1, 1, () => {
2955
+ s[f] = null;
2956
+ }), x(), n = s[r], n ? n.p(c, a) : (n = s[r] = o[r](c), n.c()), u(n, 1), n.m(e, null));
2957
2957
  },
2958
2958
  i(c) {
2959
2959
  i || (u(n), i = !0);
@@ -2962,35 +2962,35 @@ function Ai(t) {
2962
2962
  m(n), i = !1;
2963
2963
  },
2964
2964
  d(c) {
2965
- c && g(e), o[r].d();
2965
+ c && g(e), s[r].d();
2966
2966
  }
2967
2967
  };
2968
2968
  }
2969
- function _i(t, e, r) {
2970
- let { onClose: n } = e, { onContinue: i } = e, { onError: s } = e, { paymentInfoCollectionMetadata: o } = e, { processing: l = !1 } = e;
2971
- const c = o.data.client_secret;
2969
+ function Ai(t, e, r) {
2970
+ let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
2971
+ const c = s.data.client_secret;
2972
2972
  let a = null, f, d;
2973
2973
  Se(async () => {
2974
- const _ = o.data.publishable_api_key, M = o.data.stripe_account_id;
2975
- if (!_ || !M)
2974
+ const A = s.data.publishable_api_key, Q = s.data.stripe_account_id;
2975
+ if (!A || !Q)
2976
2976
  throw new Error("Stripe publishable key or account ID not found");
2977
- r(3, a = await Jr(_, { stripeAccount: M }));
2977
+ r(3, a = await Jr(A, { stripeAccount: Q }));
2978
2978
  });
2979
2979
  const E = async () => {
2980
2980
  if (l || !a || !d)
2981
2981
  return;
2982
2982
  r(0, l = !0);
2983
- const _ = await a.confirmSetup({
2983
+ const A = await a.confirmSetup({
2984
2984
  elements: d,
2985
2985
  redirect: "if_required"
2986
2986
  });
2987
- _.error ? (r(0, l = !1), s(new G(S.StripeError, _.error.message))) : i();
2987
+ A.error ? (r(0, l = !1), o(new G(S.StripeError, A.error.message))) : i();
2988
2988
  };
2989
- function v(_) {
2990
- f = _, r(2, f);
2989
+ function v(A) {
2990
+ f = A, r(2, f);
2991
2991
  }
2992
- return t.$$set = (_) => {
2993
- "onClose" in _ && r(1, n = _.onClose), "onContinue" in _ && r(6, i = _.onContinue), "onError" in _ && r(7, s = _.onError), "paymentInfoCollectionMetadata" in _ && r(8, o = _.paymentInfoCollectionMetadata), "processing" in _ && r(0, l = _.processing);
2992
+ return t.$$set = (A) => {
2993
+ "onClose" in A && r(1, n = A.onClose), "onContinue" in A && r(6, i = A.onContinue), "onError" in A && r(7, o = A.onError), "paymentInfoCollectionMetadata" in A && r(8, s = A.paymentInfoCollectionMetadata), "processing" in A && r(0, l = A.processing);
2994
2994
  }, t.$$.update = () => {
2995
2995
  t.$$.dirty & /*elements*/
2996
2996
  4 && f && f._elements.length > 0 && (d = f);
@@ -3002,18 +3002,18 @@ function _i(t, e, r) {
3002
3002
  c,
3003
3003
  E,
3004
3004
  i,
3005
- s,
3006
3005
  o,
3006
+ s,
3007
3007
  v
3008
3008
  ];
3009
3009
  }
3010
3010
  class hi extends U {
3011
3011
  constructor(e) {
3012
- super(), R(
3012
+ super(), N(
3013
3013
  this,
3014
3014
  e,
3015
- _i,
3016
3015
  Ai,
3016
+ _i,
3017
3017
  P,
3018
3018
  {
3019
3019
  onClose: 1,
@@ -3033,7 +3033,7 @@ function Ii(t) {
3033
3033
  let e;
3034
3034
  return {
3035
3035
  c() {
3036
- e = N("Billing email address");
3036
+ e = R("Billing email address");
3037
3037
  },
3038
3038
  m(r, n) {
3039
3039
  p(r, e, n);
@@ -3047,13 +3047,13 @@ function at(t) {
3047
3047
  let e, r;
3048
3048
  return {
3049
3049
  c() {
3050
- e = k("div"), r = N(
3050
+ e = k("div"), r = R(
3051
3051
  /*error*/
3052
3052
  t[2]
3053
- ), A(e, "class", "form-error svelte-favd20");
3053
+ ), _(e, "class", "form-error svelte-favd20");
3054
3054
  },
3055
3055
  m(n, i) {
3056
- p(n, e, i), Q(e, r);
3056
+ p(n, e, i), D(e, r);
3057
3057
  },
3058
3058
  p(n, i) {
3059
3059
  i & /*error*/
@@ -3069,22 +3069,22 @@ function at(t) {
3069
3069
  };
3070
3070
  }
3071
3071
  function bi(t) {
3072
- let e, r, n, i, s, o, l, c, a, f = (
3072
+ let e, r, n, i, o, s, l, c, a, f = (
3073
3073
  /*error*/
3074
3074
  t[2] && at(t)
3075
3075
  );
3076
3076
  return {
3077
3077
  c() {
3078
- e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = T(), i = k("div"), s = k("input"), l = T(), f && f.c(), A(r, "class", "form-label svelte-favd20"), A(s, "name", "email"), A(s, "placeholder", "john@appleseed.com"), A(s, "autocapitalize", "off"), A(s, "class", "svelte-favd20"), A(i, "class", o = "form-input " + /*inputClass*/
3079
- t[4] + " svelte-favd20"), A(e, "class", "form-container svelte-favd20");
3078
+ e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = T(), i = k("div"), o = k("input"), l = T(), f && f.c(), _(r, "class", "form-label svelte-favd20"), _(o, "name", "email"), _(o, "placeholder", "john@appleseed.com"), _(o, "autocapitalize", "off"), _(o, "class", "svelte-favd20"), _(i, "class", s = "form-input " + /*inputClass*/
3079
+ t[4] + " svelte-favd20"), _(e, "class", "form-container svelte-favd20");
3080
3080
  },
3081
3081
  m(d, E) {
3082
- p(d, e, E), Q(e, r), Q(e, n), Q(e, i), Q(i, s), et(
3083
- s,
3082
+ p(d, e, E), D(e, r), D(e, n), D(e, i), D(i, o), et(
3083
+ o,
3084
3084
  /*email*/
3085
3085
  t[3]
3086
- ), Q(e, l), f && f.m(e, null), c || (a = ke(
3087
- s,
3086
+ ), D(e, l), f && f.m(e, null), c || (a = ke(
3087
+ o,
3088
3088
  "input",
3089
3089
  /*input_input_handler*/
3090
3090
  t[7]
@@ -3092,14 +3092,14 @@ function bi(t) {
3092
3092
  },
3093
3093
  p(d, E) {
3094
3094
  E & /*email*/
3095
- 8 && s.value !== /*email*/
3095
+ 8 && o.value !== /*email*/
3096
3096
  d[3] && et(
3097
- s,
3097
+ o,
3098
3098
  /*email*/
3099
3099
  d[3]
3100
3100
  ), E & /*inputClass*/
3101
- 16 && o !== (o = "form-input " + /*inputClass*/
3102
- d[4] + " svelte-favd20") && A(i, "class", o), /*error*/
3101
+ 16 && s !== (s = "form-input " + /*inputClass*/
3102
+ d[4] + " svelte-favd20") && _(i, "class", s), /*error*/
3103
3103
  d[2] ? f ? f.p(d, E) : (f = at(d), f.c(), f.m(e, null)) : f && (f.d(1), f = null);
3104
3104
  },
3105
3105
  d(d) {
@@ -3111,7 +3111,7 @@ function wi(t) {
3111
3111
  let e;
3112
3112
  return {
3113
3113
  c() {
3114
- e = N("Continue");
3114
+ e = R("Continue");
3115
3115
  },
3116
3116
  m(r, n) {
3117
3117
  p(r, e, n);
@@ -3145,25 +3145,25 @@ function ki(t) {
3145
3145
  }
3146
3146
  function $i(t) {
3147
3147
  let e, r, n, i;
3148
- const s = [ki, wi], o = [];
3148
+ const o = [ki, wi], s = [];
3149
3149
  function l(c, a) {
3150
3150
  return (
3151
3151
  /*processing*/
3152
3152
  c[1] ? 0 : 1
3153
3153
  );
3154
3154
  }
3155
- return e = l(t), r = o[e] = s[e](t), {
3155
+ return e = l(t), r = s[e] = o[e](t), {
3156
3156
  c() {
3157
- r.c(), n = Z();
3157
+ r.c(), n = ee();
3158
3158
  },
3159
3159
  m(c, a) {
3160
- o[e].m(c, a), p(c, n, a), i = !0;
3160
+ s[e].m(c, a), p(c, n, a), i = !0;
3161
3161
  },
3162
3162
  p(c, a) {
3163
3163
  let f = e;
3164
- e = l(c), e !== f && (L(), m(o[f], 1, 1, () => {
3165
- o[f] = null;
3166
- }), x(), r = o[e], r || (r = o[e] = s[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
3164
+ e = l(c), e !== f && (L(), m(s[f], 1, 1, () => {
3165
+ s[f] = null;
3166
+ }), x(), r = s[e], r || (r = s[e] = o[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
3167
3167
  },
3168
3168
  i(c) {
3169
3169
  i || (u(r), i = !0);
@@ -3172,7 +3172,7 @@ function $i(t) {
3172
3172
  m(r), i = !1;
3173
3173
  },
3174
3174
  d(c) {
3175
- c && g(n), o[e].d(c);
3175
+ c && g(n), s[e].d(c);
3176
3176
  }
3177
3177
  };
3178
3178
  }
@@ -3180,7 +3180,7 @@ function vi(t) {
3180
3180
  let e;
3181
3181
  return {
3182
3182
  c() {
3183
- e = N("Close");
3183
+ e = R("Close");
3184
3184
  },
3185
3185
  m(r, n) {
3186
3186
  p(r, e, n);
@@ -3212,7 +3212,7 @@ function Bi(t) {
3212
3212
  $$scope: { ctx: t }
3213
3213
  }
3214
3214
  }), n.$on("click", function() {
3215
- ce(
3215
+ ae(
3216
3216
  /*onClose*/
3217
3217
  t[0]
3218
3218
  ) && t[0].apply(this, arguments);
@@ -3220,30 +3220,30 @@ function Bi(t) {
3220
3220
  c() {
3221
3221
  w(e.$$.fragment), r = T(), w(n.$$.fragment);
3222
3222
  },
3223
- m(s, o) {
3224
- I(e, s, o), p(s, r, o), I(n, s, o), i = !0;
3223
+ m(o, s) {
3224
+ I(e, o, s), p(o, r, s), I(n, o, s), i = !0;
3225
3225
  },
3226
- p(s, o) {
3227
- t = s;
3226
+ p(o, s) {
3227
+ t = o;
3228
3228
  const l = {};
3229
- o & /*processing*/
3229
+ s & /*processing*/
3230
3230
  2 && (l.disabled = /*processing*/
3231
- t[1]), o & /*$$scope, processing*/
3232
- 258 && (l.$$scope = { dirty: o, ctx: t }), e.$set(l);
3231
+ t[1]), s & /*$$scope, processing*/
3232
+ 258 && (l.$$scope = { dirty: s, ctx: t }), e.$set(l);
3233
3233
  const c = {};
3234
- o & /*processing*/
3234
+ s & /*processing*/
3235
3235
  2 && (c.disabled = /*processing*/
3236
- t[1]), o & /*$$scope*/
3237
- 256 && (c.$$scope = { dirty: o, ctx: t }), n.$set(c);
3236
+ t[1]), s & /*$$scope*/
3237
+ 256 && (c.$$scope = { dirty: s, ctx: t }), n.$set(c);
3238
3238
  },
3239
- i(s) {
3240
- i || (u(e.$$.fragment, s), u(n.$$.fragment, s), i = !0);
3239
+ i(o) {
3240
+ i || (u(e.$$.fragment, o), u(n.$$.fragment, o), i = !0);
3241
3241
  },
3242
- o(s) {
3243
- m(e.$$.fragment, s), m(n.$$.fragment, s), i = !1;
3242
+ o(o) {
3243
+ m(e.$$.fragment, o), m(n.$$.fragment, o), i = !1;
3244
3244
  },
3245
- d(s) {
3246
- s && g(r), b(e, s), b(n, s);
3245
+ d(o) {
3246
+ o && g(r), b(e, o), b(n, o);
3247
3247
  }
3248
3248
  };
3249
3249
  }
@@ -3262,9 +3262,9 @@ function yi(t) {
3262
3262
  I(e, n, i), r = !0;
3263
3263
  },
3264
3264
  p(n, i) {
3265
- const s = {};
3265
+ const o = {};
3266
3266
  i & /*$$scope, processing, onClose*/
3267
- 259 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
3267
+ 259 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
3268
3268
  },
3269
3269
  i(n) {
3270
3270
  r || (u(e.$$.fragment, n), r = !0);
@@ -3278,28 +3278,28 @@ function yi(t) {
3278
3278
  };
3279
3279
  }
3280
3280
  function Di(t) {
3281
- let e, r, n, i, s, o, l, c, a;
3281
+ let e, r, n, i, o, s, l, c, a;
3282
3282
  return r = new Ve({
3283
3283
  props: {
3284
3284
  $$slots: { default: [Ii] },
3285
3285
  $$scope: { ctx: t }
3286
3286
  }
3287
- }), i = new ae({
3287
+ }), i = new ue({
3288
3288
  props: {
3289
3289
  $$slots: { default: [bi] },
3290
3290
  $$scope: { ctx: t }
3291
3291
  }
3292
- }), o = new Je({
3292
+ }), s = new Je({
3293
3293
  props: {
3294
3294
  $$slots: { default: [yi] },
3295
3295
  $$scope: { ctx: t }
3296
3296
  }
3297
3297
  }), {
3298
3298
  c() {
3299
- e = k("form"), w(r.$$.fragment), n = T(), w(i.$$.fragment), s = T(), w(o.$$.fragment), A(e, "class", "svelte-favd20");
3299
+ e = k("form"), w(r.$$.fragment), n = T(), w(i.$$.fragment), o = T(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
3300
3300
  },
3301
3301
  m(f, d) {
3302
- p(f, e, d), I(r, e, null), Q(e, n), I(i, e, null), Q(e, s), I(o, e, null), l = !0, c || (a = ke(e, "submit", kt(
3302
+ p(f, e, d), I(r, e, null), D(e, n), I(i, e, null), D(e, o), I(s, e, null), l = !0, c || (a = ke(e, "submit", kt(
3303
3303
  /*handleContinue*/
3304
3304
  t[5]
3305
3305
  )), c = !0);
@@ -3311,51 +3311,51 @@ function Di(t) {
3311
3311
  const v = {};
3312
3312
  d & /*$$scope, error, inputClass, email*/
3313
3313
  284 && (v.$$scope = { dirty: d, ctx: f }), i.$set(v);
3314
- const _ = {};
3314
+ const A = {};
3315
3315
  d & /*$$scope, processing, onClose*/
3316
- 259 && (_.$$scope = { dirty: d, ctx: f }), o.$set(_);
3316
+ 259 && (A.$$scope = { dirty: d, ctx: f }), s.$set(A);
3317
3317
  },
3318
3318
  i(f) {
3319
- l || (u(r.$$.fragment, f), u(i.$$.fragment, f), u(o.$$.fragment, f), l = !0);
3319
+ l || (u(r.$$.fragment, f), u(i.$$.fragment, f), u(s.$$.fragment, f), l = !0);
3320
3320
  },
3321
3321
  o(f) {
3322
- m(r.$$.fragment, f), m(i.$$.fragment, f), m(o.$$.fragment, f), l = !1;
3322
+ m(r.$$.fragment, f), m(i.$$.fragment, f), m(s.$$.fragment, f), l = !1;
3323
3323
  },
3324
3324
  d(f) {
3325
- f && g(e), b(r), b(i), b(o), c = !1, a();
3325
+ f && g(e), b(r), b(i), b(s), c = !1, a();
3326
3326
  }
3327
3327
  };
3328
3328
  }
3329
- function Qi(t, e, r) {
3330
- let n, i, s, { onContinue: o } = e, { onClose: l } = e, { processing: c } = e;
3329
+ function Ci(t, e, r) {
3330
+ let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e;
3331
3331
  const a = async () => {
3332
- n.trim() === "" ? r(2, i = "You need to provide your email address to continue.") : o({ email: n });
3332
+ n.trim() === "" ? r(2, i = "You need to provide your email address to continue.") : s({ email: n });
3333
3333
  };
3334
3334
  function f() {
3335
3335
  n = this.value, r(3, n);
3336
3336
  }
3337
3337
  return t.$$set = (d) => {
3338
- "onContinue" in d && r(6, o = d.onContinue), "onClose" in d && r(0, l = d.onClose), "processing" in d && r(1, c = d.processing);
3338
+ "onContinue" in d && r(6, s = d.onContinue), "onClose" in d && r(0, l = d.onClose), "processing" in d && r(1, c = d.processing);
3339
3339
  }, t.$$.update = () => {
3340
3340
  t.$$.dirty & /*error*/
3341
- 4 && r(4, s = i ? "error" : "");
3341
+ 4 && r(4, o = i ? "error" : "");
3342
3342
  }, r(3, n = ""), r(2, i = ""), [
3343
3343
  l,
3344
3344
  c,
3345
3345
  i,
3346
3346
  n,
3347
- s,
3348
- a,
3349
3347
  o,
3348
+ a,
3349
+ s,
3350
3350
  f
3351
3351
  ];
3352
3352
  }
3353
- class Mi extends U {
3353
+ class Qi extends U {
3354
3354
  constructor(e) {
3355
- super(), R(this, e, Qi, Di, P, { onContinue: 6, onClose: 0, processing: 1 }, Ei);
3355
+ super(), N(this, e, Ci, Di, P, { onContinue: 6, onClose: 0, processing: 1 }, Ei);
3356
3356
  }
3357
3357
  }
3358
- function Ci(t) {
3358
+ function Mi(t) {
3359
3359
  O(t, "svelte-17tslso", ".rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}");
3360
3360
  }
3361
3361
  function Pi(t) {
@@ -3372,64 +3372,64 @@ function Pi(t) {
3372
3372
  );
3373
3373
  return {
3374
3374
  c() {
3375
- e = k("div"), i && i.c(), A(e, "class", "rcb-modal-backdrop svelte-17tslso");
3375
+ e = k("div"), i && i.c(), _(e, "class", "rcb-modal-backdrop svelte-17tslso");
3376
3376
  },
3377
- m(s, o) {
3378
- p(s, e, o), i && i.m(e, null), r = !0;
3377
+ m(o, s) {
3378
+ p(o, e, s), i && i.m(e, null), r = !0;
3379
3379
  },
3380
- p(s, [o]) {
3381
- i && i.p && (!r || o & /*$$scope*/
3382
- 1) && q(
3380
+ p(o, [s]) {
3381
+ i && i.p && (!r || s & /*$$scope*/
3382
+ 1) && K(
3383
3383
  i,
3384
3384
  n,
3385
- s,
3385
+ o,
3386
3386
  /*$$scope*/
3387
- s[0],
3387
+ o[0],
3388
3388
  r ? H(
3389
3389
  n,
3390
3390
  /*$$scope*/
3391
- s[0],
3392
- o,
3391
+ o[0],
3392
+ s,
3393
3393
  null
3394
- ) : K(
3394
+ ) : q(
3395
3395
  /*$$scope*/
3396
- s[0]
3396
+ o[0]
3397
3397
  ),
3398
3398
  null
3399
3399
  );
3400
3400
  },
3401
- i(s) {
3402
- r || (u(i, s), r = !0);
3401
+ i(o) {
3402
+ r || (u(i, o), r = !0);
3403
3403
  },
3404
- o(s) {
3405
- m(i, s), r = !1;
3404
+ o(o) {
3405
+ m(i, o), r = !1;
3406
3406
  },
3407
- d(s) {
3408
- s && g(e), i && i.d(s);
3407
+ d(o) {
3408
+ o && g(e), i && i.d(o);
3409
3409
  }
3410
3410
  };
3411
3411
  }
3412
3412
  function Ti(t, e, r) {
3413
3413
  let { $$slots: n = {}, $$scope: i } = e;
3414
- return t.$$set = (s) => {
3415
- "$$scope" in s && r(0, i = s.$$scope);
3414
+ return t.$$set = (o) => {
3415
+ "$$scope" in o && r(0, i = o.$$scope);
3416
3416
  }, [i, n];
3417
3417
  }
3418
- class Ri extends U {
3418
+ class Ni extends U {
3419
3419
  constructor(e) {
3420
- super(), R(this, e, Ti, Pi, P, {}, Ci);
3420
+ super(), N(this, e, Ti, Pi, P, {}, Mi);
3421
3421
  }
3422
3422
  }
3423
3423
  function Ui(t) {
3424
- O(t, "svelte-t8k92q", ".rcb-modal-main.svelte-t8k92q{box-sizing:border-box;border-radius:8px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);max-width:640px;min-width:480px;min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-t8k92q{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);max-width:480px;min-width:320px;min-height:0px}@media screen and (max-width: 960px){.rcb-modal-main.svelte-t8k92q,.rcb-modal-dark.svelte-t8k92q{min-width:300px;max-width:640px;width:calc(100% - 32px);padding:32px}}");
3424
+ O(t, "svelte-ioxu5d", ".rcb-modal-container.svelte-ioxu5d{width:100%}.rcb-modal-main.svelte-ioxu5d{box-sizing:border-box;border-radius:8px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-ioxu5d{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);min-height:0px}@media screen and (max-width: 960px){.rcb-modal-container.svelte-ioxu5d{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-ioxu5d,.rcb-modal-dark.svelte-ioxu5d{min-width:300px;max-width:640px;padding:32px}}");
3425
3425
  }
3426
- function Ni(t) {
3427
- let e, r, n;
3428
- const i = (
3426
+ function Ri(t) {
3427
+ let e, r, n, i;
3428
+ const o = (
3429
3429
  /*#slots*/
3430
3430
  t[2].default
3431
3431
  ), s = Y(
3432
- i,
3432
+ o,
3433
3433
  t,
3434
3434
  /*$$scope*/
3435
3435
  t[1],
@@ -3437,55 +3437,55 @@ function Ni(t) {
3437
3437
  );
3438
3438
  return {
3439
3439
  c() {
3440
- e = k("main"), s && s.c(), A(e, "class", r = Ee(`rcb-modal-main ${/*dark*/
3441
- t[0] ? "rcb-modal-dark" : ""}`) + " svelte-t8k92q");
3440
+ e = k("div"), r = k("main"), s && s.c(), _(r, "class", n = Ee(`rcb-modal-main ${/*dark*/
3441
+ t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), _(e, "class", "rcb-modal-container svelte-ioxu5d");
3442
3442
  },
3443
- m(o, l) {
3444
- p(o, e, l), s && s.m(e, null), n = !0;
3443
+ m(l, c) {
3444
+ p(l, e, c), D(e, r), s && s.m(r, null), i = !0;
3445
3445
  },
3446
- p(o, [l]) {
3447
- s && s.p && (!n || l & /*$$scope*/
3448
- 2) && q(
3446
+ p(l, [c]) {
3447
+ s && s.p && (!i || c & /*$$scope*/
3448
+ 2) && K(
3449
3449
  s,
3450
- i,
3451
3450
  o,
3451
+ l,
3452
3452
  /*$$scope*/
3453
- o[1],
3454
- n ? H(
3455
- i,
3453
+ l[1],
3454
+ i ? H(
3455
+ o,
3456
3456
  /*$$scope*/
3457
- o[1],
3458
- l,
3457
+ l[1],
3458
+ c,
3459
3459
  null
3460
- ) : K(
3460
+ ) : q(
3461
3461
  /*$$scope*/
3462
- o[1]
3462
+ l[1]
3463
3463
  ),
3464
3464
  null
3465
- ), (!n || l & /*dark*/
3466
- 1 && r !== (r = Ee(`rcb-modal-main ${/*dark*/
3467
- o[0] ? "rcb-modal-dark" : ""}`) + " svelte-t8k92q")) && A(e, "class", r);
3465
+ ), (!i || c & /*dark*/
3466
+ 1 && n !== (n = Ee(`rcb-modal-main ${/*dark*/
3467
+ l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) && _(r, "class", n);
3468
3468
  },
3469
- i(o) {
3470
- n || (u(s, o), n = !0);
3469
+ i(l) {
3470
+ i || (u(s, l), i = !0);
3471
3471
  },
3472
- o(o) {
3473
- m(s, o), n = !1;
3472
+ o(l) {
3473
+ m(s, l), i = !1;
3474
3474
  },
3475
- d(o) {
3476
- o && g(e), s && s.d(o);
3475
+ d(l) {
3476
+ l && g(e), s && s.d(l);
3477
3477
  }
3478
3478
  };
3479
3479
  }
3480
3480
  function Si(t, e, r) {
3481
- let { $$slots: n = {}, $$scope: i } = e, { dark: s = !1 } = e;
3482
- return t.$$set = (o) => {
3483
- "dark" in o && r(0, s = o.dark), "$$scope" in o && r(1, i = o.$$scope);
3484
- }, [s, i, n];
3481
+ let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
3482
+ return t.$$set = (s) => {
3483
+ "dark" in s && r(0, o = s.dark), "$$scope" in s && r(1, i = s.$$scope);
3484
+ }, [o, i, n];
3485
3485
  }
3486
3486
  class Oi extends U {
3487
3487
  constructor(e) {
3488
- super(), R(this, e, Si, Ni, P, { dark: 0 }, Ui);
3488
+ super(), N(this, e, Si, Ri, P, { dark: 0 }, Ui);
3489
3489
  }
3490
3490
  }
3491
3491
  function Li(t) {
@@ -3504,12 +3504,12 @@ function Li(t) {
3504
3504
  c() {
3505
3505
  n && n.c();
3506
3506
  },
3507
- m(i, s) {
3508
- n && n.m(i, s), e = !0;
3507
+ m(i, o) {
3508
+ n && n.m(i, o), e = !0;
3509
3509
  },
3510
- p(i, s) {
3511
- n && n.p && (!e || s & /*$$scope*/
3512
- 4) && q(
3510
+ p(i, o) {
3511
+ n && n.p && (!e || o & /*$$scope*/
3512
+ 4) && K(
3513
3513
  n,
3514
3514
  r,
3515
3515
  i,
@@ -3519,9 +3519,9 @@ function Li(t) {
3519
3519
  r,
3520
3520
  /*$$scope*/
3521
3521
  i[2],
3522
- s,
3522
+ o,
3523
3523
  null
3524
- ) : K(
3524
+ ) : q(
3525
3525
  /*$$scope*/
3526
3526
  i[2]
3527
3527
  ),
@@ -3541,7 +3541,7 @@ function Li(t) {
3541
3541
  }
3542
3542
  function xi(t) {
3543
3543
  let e, r;
3544
- return e = new Ri({
3544
+ return e = new Ni({
3545
3545
  props: {
3546
3546
  $$slots: { default: [Fi] },
3547
3547
  $$scope: { ctx: t }
@@ -3554,9 +3554,9 @@ function xi(t) {
3554
3554
  I(e, n, i), r = !0;
3555
3555
  },
3556
3556
  p(n, i) {
3557
- const s = {};
3557
+ const o = {};
3558
3558
  i & /*$$scope*/
3559
- 4 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
3559
+ 4 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
3560
3560
  },
3561
3561
  i(n) {
3562
3562
  r || (u(e.$$.fragment, n), r = !0);
@@ -3585,12 +3585,12 @@ function Fi(t) {
3585
3585
  c() {
3586
3586
  n && n.c();
3587
3587
  },
3588
- m(i, s) {
3589
- n && n.m(i, s), e = !0;
3588
+ m(i, o) {
3589
+ n && n.m(i, o), e = !0;
3590
3590
  },
3591
- p(i, s) {
3592
- n && n.p && (!e || s & /*$$scope*/
3593
- 4) && q(
3591
+ p(i, o) {
3592
+ n && n.p && (!e || o & /*$$scope*/
3593
+ 4) && K(
3594
3594
  n,
3595
3595
  r,
3596
3596
  i,
@@ -3600,9 +3600,9 @@ function Fi(t) {
3600
3600
  r,
3601
3601
  /*$$scope*/
3602
3602
  i[2],
3603
- s,
3603
+ o,
3604
3604
  null
3605
- ) : K(
3605
+ ) : q(
3606
3606
  /*$$scope*/
3607
3607
  i[2]
3608
3608
  ),
@@ -3622,25 +3622,25 @@ function Fi(t) {
3622
3622
  }
3623
3623
  function Gi(t) {
3624
3624
  let e, r, n, i;
3625
- const s = [xi, Li], o = [];
3625
+ const o = [xi, Li], s = [];
3626
3626
  function l(c, a) {
3627
3627
  return (
3628
3628
  /*condition*/
3629
3629
  c[0] ? 0 : 1
3630
3630
  );
3631
3631
  }
3632
- return e = l(t), r = o[e] = s[e](t), {
3632
+ return e = l(t), r = s[e] = o[e](t), {
3633
3633
  c() {
3634
- r.c(), n = Z();
3634
+ r.c(), n = ee();
3635
3635
  },
3636
3636
  m(c, a) {
3637
- o[e].m(c, a), p(c, n, a), i = !0;
3637
+ s[e].m(c, a), p(c, n, a), i = !0;
3638
3638
  },
3639
3639
  p(c, [a]) {
3640
3640
  let f = e;
3641
- e = l(c), e === f ? o[e].p(c, a) : (L(), m(o[f], 1, 1, () => {
3642
- o[f] = null;
3643
- }), x(), r = o[e], r ? r.p(c, a) : (r = o[e] = s[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
3641
+ e = l(c), e === f ? s[e].p(c, a) : (L(), m(s[f], 1, 1, () => {
3642
+ s[f] = null;
3643
+ }), x(), r = s[e], r ? r.p(c, a) : (r = s[e] = o[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
3644
3644
  },
3645
3645
  i(c) {
3646
3646
  i || (u(r), i = !0);
@@ -3649,23 +3649,23 @@ function Gi(t) {
3649
3649
  m(r), i = !1;
3650
3650
  },
3651
3651
  d(c) {
3652
- c && g(n), o[e].d(c);
3652
+ c && g(n), s[e].d(c);
3653
3653
  }
3654
3654
  };
3655
3655
  }
3656
3656
  function Yi(t, e, r) {
3657
- let { $$slots: n = {}, $$scope: i } = e, { condition: s = !1 } = e;
3658
- return t.$$set = (o) => {
3659
- "condition" in o && r(0, s = o.condition), "$$scope" in o && r(2, i = o.$$scope);
3660
- }, [s, n, i];
3657
+ let { $$slots: n = {}, $$scope: i } = e, { condition: o = !1 } = e;
3658
+ return t.$$set = (s) => {
3659
+ "condition" in s && r(0, o = s.condition), "$$scope" in s && r(2, i = s.$$scope);
3660
+ }, [o, n, i];
3661
3661
  }
3662
3662
  class Hi extends U {
3663
3663
  constructor(e) {
3664
- super(), R(this, e, Yi, Gi, P, { condition: 0 });
3664
+ super(), N(this, e, Yi, Gi, P, { condition: 0 });
3665
3665
  }
3666
3666
  }
3667
- const qi = (t) => ({}), ut = (t) => ({});
3668
- function Ki(t) {
3667
+ const Ki = (t) => ({}), ut = (t) => ({});
3668
+ function qi(t) {
3669
3669
  let e, r;
3670
3670
  const n = (
3671
3671
  /*#slots*/
@@ -3676,11 +3676,11 @@ function Ki(t) {
3676
3676
  /*$$scope*/
3677
3677
  t[2],
3678
3678
  ut
3679
- ), s = (
3679
+ ), o = (
3680
3680
  /*#slots*/
3681
3681
  t[1].default
3682
- ), o = Y(
3683
- s,
3682
+ ), s = Y(
3683
+ o,
3684
3684
  t,
3685
3685
  /*$$scope*/
3686
3686
  t[2],
@@ -3688,14 +3688,14 @@ function Ki(t) {
3688
3688
  );
3689
3689
  return {
3690
3690
  c() {
3691
- i && i.c(), e = T(), o && o.c();
3691
+ i && i.c(), e = T(), s && s.c();
3692
3692
  },
3693
3693
  m(l, c) {
3694
- i && i.m(l, c), p(l, e, c), o && o.m(l, c), r = !0;
3694
+ i && i.m(l, c), p(l, e, c), s && s.m(l, c), r = !0;
3695
3695
  },
3696
3696
  p(l, c) {
3697
3697
  i && i.p && (!r || c & /*$$scope*/
3698
- 4) && q(
3698
+ 4) && K(
3699
3699
  i,
3700
3700
  n,
3701
3701
  l,
@@ -3706,26 +3706,26 @@ function Ki(t) {
3706
3706
  /*$$scope*/
3707
3707
  l[2],
3708
3708
  c,
3709
- qi
3710
- ) : K(
3709
+ Ki
3710
+ ) : q(
3711
3711
  /*$$scope*/
3712
3712
  l[2]
3713
3713
  ),
3714
3714
  ut
3715
- ), o && o.p && (!r || c & /*$$scope*/
3716
- 4) && q(
3717
- o,
3715
+ ), s && s.p && (!r || c & /*$$scope*/
3716
+ 4) && K(
3718
3717
  s,
3718
+ o,
3719
3719
  l,
3720
3720
  /*$$scope*/
3721
3721
  l[2],
3722
3722
  r ? H(
3723
- s,
3723
+ o,
3724
3724
  /*$$scope*/
3725
3725
  l[2],
3726
3726
  c,
3727
3727
  null
3728
- ) : K(
3728
+ ) : q(
3729
3729
  /*$$scope*/
3730
3730
  l[2]
3731
3731
  ),
@@ -3733,13 +3733,13 @@ function Ki(t) {
3733
3733
  );
3734
3734
  },
3735
3735
  i(l) {
3736
- r || (u(i, l), u(o, l), r = !0);
3736
+ r || (u(i, l), u(s, l), r = !0);
3737
3737
  },
3738
3738
  o(l) {
3739
- m(i, l), m(o, l), r = !1;
3739
+ m(i, l), m(s, l), r = !1;
3740
3740
  },
3741
3741
  d(l) {
3742
- l && g(e), i && i.d(l), o && o.d(l);
3742
+ l && g(e), i && i.d(l), s && s.d(l);
3743
3743
  }
3744
3744
  };
3745
3745
  }
@@ -3751,7 +3751,7 @@ function ji(t) {
3751
3751
  /*dark*/
3752
3752
  t[0]
3753
3753
  ),
3754
- $$slots: { default: [Ki] },
3754
+ $$slots: { default: [qi] },
3755
3755
  $$scope: { ctx: t }
3756
3756
  }
3757
3757
  }), {
@@ -3762,11 +3762,11 @@ function ji(t) {
3762
3762
  I(e, n, i), r = !0;
3763
3763
  },
3764
3764
  p(n, [i]) {
3765
- const s = {};
3765
+ const o = {};
3766
3766
  i & /*dark*/
3767
- 1 && (s.dark = /*dark*/
3767
+ 1 && (o.dark = /*dark*/
3768
3768
  n[0]), i & /*$$scope*/
3769
- 4 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
3769
+ 4 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
3770
3770
  },
3771
3771
  i(n) {
3772
3772
  r || (u(e.$$.fragment, n), r = !0);
@@ -3780,17 +3780,17 @@ function ji(t) {
3780
3780
  };
3781
3781
  }
3782
3782
  function Ji(t, e, r) {
3783
- let { $$slots: n = {}, $$scope: i } = e, { dark: s = !1 } = e;
3784
- return t.$$set = (o) => {
3785
- "dark" in o && r(0, s = o.dark), "$$scope" in o && r(2, i = o.$$scope);
3786
- }, [s, n, i];
3783
+ let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
3784
+ return t.$$set = (s) => {
3785
+ "dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
3786
+ }, [o, n, i];
3787
3787
  }
3788
- class Rt extends U {
3788
+ class Nt extends U {
3789
3789
  constructor(e) {
3790
- super(), R(this, e, Ji, ji, P, { dark: 0 });
3790
+ super(), N(this, e, Ji, ji, P, { dark: 0 });
3791
3791
  }
3792
3792
  }
3793
- var ue = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t))(ue || {});
3793
+ var re = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t))(re || {});
3794
3794
  class Pe {
3795
3795
  static getPublicMessage(e) {
3796
3796
  switch (e) {
@@ -3909,16 +3909,16 @@ class Pe {
3909
3909
  }
3910
3910
  }
3911
3911
  var Ut = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t))(Ut || {});
3912
- class ee extends Error {
3912
+ class Z extends Error {
3913
3913
  constructor(r, n, i) {
3914
3914
  super(n);
3915
- C(this, "toString", () => `PurchasesError(code: ${ue[this.errorCode]}, message: ${this.message})`);
3915
+ M(this, "toString", () => `PurchasesError(code: ${re[this.errorCode]}, message: ${this.message})`);
3916
3916
  this.errorCode = r, this.underlyingErrorMessage = i;
3917
3917
  }
3918
3918
  /** @internal */
3919
3919
  static getForBackendError(r, n) {
3920
3920
  const i = Pe.getErrorCodeForBackendErrorCode(r);
3921
- return new ee(
3921
+ return new Z(
3922
3922
  i,
3923
3923
  Pe.getPublicMessage(i),
3924
3924
  n
@@ -3926,7 +3926,7 @@ class ee extends Error {
3926
3926
  }
3927
3927
  /** @internal */
3928
3928
  static getForPurchasesFlowError(r) {
3929
- return new ee(
3929
+ return new Z(
3930
3930
  Pe.convertPurchaseFlowErrorCodeToErrorCode(
3931
3931
  r.errorCode
3932
3932
  ),
@@ -3940,12 +3940,12 @@ class Vi extends Error {
3940
3940
  super("Purchases must be configured before calling getInstance");
3941
3941
  }
3942
3942
  }
3943
- const Wi = "0.1.0", fe = "https://api.revenuecat.com";
3943
+ const Wi = "0.1.2", fe = "https://api.revenuecat.com";
3944
3944
  var Ue;
3945
3945
  (function(t) {
3946
3946
  t[t.CONTINUE = 100] = "CONTINUE", t[t.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", t[t.PROCESSING = 102] = "PROCESSING", t[t.EARLY_HINTS = 103] = "EARLY_HINTS", t[t.OK = 200] = "OK", t[t.CREATED = 201] = "CREATED", t[t.ACCEPTED = 202] = "ACCEPTED", t[t.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", t[t.NO_CONTENT = 204] = "NO_CONTENT", t[t.RESET_CONTENT = 205] = "RESET_CONTENT", t[t.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", t[t.MULTI_STATUS = 207] = "MULTI_STATUS", t[t.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", t[t.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", t[t.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", t[t.SEE_OTHER = 303] = "SEE_OTHER", t[t.NOT_MODIFIED = 304] = "NOT_MODIFIED", t[t.USE_PROXY = 305] = "USE_PROXY", t[t.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", t[t.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", t[t.BAD_REQUEST = 400] = "BAD_REQUEST", t[t.UNAUTHORIZED = 401] = "UNAUTHORIZED", t[t.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", t[t.FORBIDDEN = 403] = "FORBIDDEN", t[t.NOT_FOUND = 404] = "NOT_FOUND", t[t.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", t[t.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", t[t.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", t[t.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", t[t.CONFLICT = 409] = "CONFLICT", t[t.GONE = 410] = "GONE", t[t.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", t[t.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", t[t.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", t[t.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", t[t.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", t[t.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", t[t.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", t[t.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", t[t.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", t[t.METHOD_FAILURE = 420] = "METHOD_FAILURE", t[t.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", t[t.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", t[t.LOCKED = 423] = "LOCKED", t[t.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", t[t.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", t[t.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", t[t.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", t[t.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", t[t.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", t[t.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", t[t.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", t[t.BAD_GATEWAY = 502] = "BAD_GATEWAY", t[t.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", t[t.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", t[t.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", t[t.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", t[t.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
3947
3947
  })(Ue || (Ue = {}));
3948
- function Ke(t) {
3948
+ function qe(t) {
3949
3949
  return t ? t.startsWith("rcb_sb_") : !1;
3950
3950
  }
3951
3951
  async function se(t, e, r, n) {
@@ -3961,23 +3961,23 @@ async function zi(t, e) {
3961
3961
  if (r >= Ue.INTERNAL_SERVER_ERROR)
3962
3962
  Ge(e, r, await t.text());
3963
3963
  else if (r >= Ue.BAD_REQUEST) {
3964
- const n = await t.json(), i = n ? JSON.stringify(n) : null, s = n == null ? void 0 : n.code, o = n == null ? void 0 : n.message;
3965
- if (s != null) {
3966
- const l = Pe.convertCodeToBackendErrorCode(s);
3964
+ const n = await t.json(), i = n ? JSON.stringify(n) : null, o = n == null ? void 0 : n.code, s = n == null ? void 0 : n.message;
3965
+ if (o != null) {
3966
+ const l = Pe.convertCodeToBackendErrorCode(o);
3967
3967
  if (l == null)
3968
3968
  Ge(e, r, i);
3969
3969
  else
3970
- throw ee.getForBackendError(
3970
+ throw Z.getForBackendError(
3971
3971
  l,
3972
- o
3972
+ s
3973
3973
  );
3974
3974
  } else
3975
3975
  Ge(e, r, i);
3976
3976
  }
3977
3977
  }
3978
3978
  function Ge(t, e, r) {
3979
- throw new ee(
3980
- ue.UnknownBackendError,
3979
+ throw new Z(
3980
+ re.UnknownBackendError,
3981
3981
  `Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
3982
3982
  );
3983
3983
  }
@@ -3991,38 +3991,38 @@ function Zi(t, e) {
3991
3991
  Accept: "application/json",
3992
3992
  "X-Platform": "web",
3993
3993
  "X-Version": Wi,
3994
- "X-Is-Sandbox": `${Ke(t)}`
3994
+ "X-Is-Sandbox": `${qe(t)}`
3995
3995
  };
3996
3996
  return e != null && (r = { ...r, ...e }), r;
3997
3997
  }
3998
- const Nt = "/v1/subscribers", Oe = "/rcbilling/v1";
3999
- class es {
3998
+ const Rt = "/v1/subscribers", Oe = "/rcbilling/v1";
3999
+ class eo {
4000
4000
  constructor(e) {
4001
- C(this, "appUserId");
4002
- C(this, "method", "GET");
4003
- C(this, "name", "getOfferings");
4001
+ M(this, "appUserId");
4002
+ M(this, "method", "GET");
4003
+ M(this, "name", "getOfferings");
4004
4004
  this.appUserId = e;
4005
4005
  }
4006
4006
  url() {
4007
4007
  const e = encodeURIComponent(this.appUserId);
4008
- return `${fe}${Nt}/${e}/offerings`;
4008
+ return `${fe}${Rt}/${e}/offerings`;
4009
4009
  }
4010
4010
  }
4011
- class ts {
4011
+ class to {
4012
4012
  constructor() {
4013
- C(this, "method", "POST");
4014
- C(this, "name", "subscribe");
4013
+ M(this, "method", "POST");
4014
+ M(this, "name", "subscribe");
4015
4015
  }
4016
4016
  url() {
4017
4017
  return `${fe}${Oe}/subscribe`;
4018
4018
  }
4019
4019
  }
4020
- class ns {
4020
+ class no {
4021
4021
  constructor(e, r) {
4022
- C(this, "method", "GET");
4023
- C(this, "name", "getProducts");
4024
- C(this, "appUserId");
4025
- C(this, "productIds");
4022
+ M(this, "method", "GET");
4023
+ M(this, "name", "getProducts");
4024
+ M(this, "appUserId");
4025
+ M(this, "productIds");
4026
4026
  this.appUserId = e, this.productIds = r;
4027
4027
  }
4028
4028
  url() {
@@ -4030,70 +4030,70 @@ class ns {
4030
4030
  return `${fe}${Oe}/subscribers/${e}/products?id=${r}`;
4031
4031
  }
4032
4032
  }
4033
- class rs {
4033
+ class ro {
4034
4034
  constructor(e) {
4035
- C(this, "method", "GET");
4036
- C(this, "name", "getCustomerInfo");
4037
- C(this, "appUserId");
4035
+ M(this, "method", "GET");
4036
+ M(this, "name", "getCustomerInfo");
4037
+ M(this, "appUserId");
4038
4038
  this.appUserId = e;
4039
4039
  }
4040
4040
  url() {
4041
4041
  const e = encodeURIComponent(this.appUserId);
4042
- return `${fe}${Nt}/${e}`;
4042
+ return `${fe}${Rt}/${e}`;
4043
4043
  }
4044
4044
  }
4045
- class is {
4045
+ class io {
4046
4046
  constructor() {
4047
- C(this, "method", "GET");
4048
- C(this, "name", "getBrandingInfo");
4047
+ M(this, "method", "GET");
4048
+ M(this, "name", "getBrandingInfo");
4049
4049
  }
4050
4050
  url() {
4051
4051
  return `${fe}${Oe}/branding`;
4052
4052
  }
4053
4053
  }
4054
- class ss {
4054
+ class oo {
4055
4055
  constructor(e) {
4056
- C(this, "method", "GET");
4057
- C(this, "name", "getCheckoutStatus");
4058
- C(this, "operationSessionId");
4056
+ M(this, "method", "GET");
4057
+ M(this, "name", "getCheckoutStatus");
4058
+ M(this, "operationSessionId");
4059
4059
  this.operationSessionId = e;
4060
4060
  }
4061
4061
  url() {
4062
4062
  return `${fe}${Oe}/checkout/${this.operationSessionId}`;
4063
4063
  }
4064
4064
  }
4065
- class os {
4065
+ class so {
4066
4066
  constructor(e) {
4067
- C(this, "API_KEY");
4067
+ M(this, "API_KEY");
4068
4068
  this.API_KEY = e;
4069
4069
  }
4070
4070
  async getOfferings(e) {
4071
4071
  return await se(
4072
- new es(e),
4072
+ new eo(e),
4073
4073
  this.API_KEY
4074
4074
  );
4075
4075
  }
4076
4076
  async getCustomerInfo(e) {
4077
4077
  return await se(
4078
- new rs(e),
4078
+ new ro(e),
4079
4079
  this.API_KEY
4080
4080
  );
4081
4081
  }
4082
4082
  async getProducts(e, r) {
4083
4083
  return await se(
4084
- new ns(e, r),
4084
+ new no(e, r),
4085
4085
  this.API_KEY
4086
4086
  );
4087
4087
  }
4088
4088
  async getBrandingInfo() {
4089
4089
  return await se(
4090
- new is(),
4090
+ new io(),
4091
4091
  this.API_KEY
4092
4092
  );
4093
4093
  }
4094
4094
  async postSubscribe(e, r, n, i) {
4095
4095
  return await se(
4096
- new ts(),
4096
+ new to(),
4097
4097
  this.API_KEY,
4098
4098
  {
4099
4099
  app_user_id: e,
@@ -4105,17 +4105,17 @@ class os {
4105
4105
  }
4106
4106
  async getCheckoutStatus(e) {
4107
4107
  return await se(
4108
- new ss(e),
4108
+ new oo(e),
4109
4109
  this.API_KEY
4110
4110
  );
4111
4111
  }
4112
4112
  }
4113
- const ls = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%20clip-path='url(%23clip0_344_3390)'%3e%3cpath%20d='M7%2018C5.9%2018%205.01%2018.9%205.01%2020C5.01%2021.1%205.9%2022%207%2022C8.1%2022%209%2021.1%209%2020C9%2018.9%208.1%2018%207%2018ZM1%202V4H3L6.6%2011.59L5.25%2014.04C5.09%2014.32%205%2014.65%205%2015C5%2016.1%205.9%2017%207%2017H19V15H7.42C7.28%2015%207.17%2014.89%207.17%2014.75L7.2%2014.63L8.1%2013H15.55C16.3%2013%2016.96%2012.59%2017.3%2011.97L20.88%205.48C20.96%205.34%2021%205.17%2021%205C21%204.45%2020.55%204%2020%204H5.21L4.27%202H1ZM17%2018C15.9%2018%2015.01%2018.9%2015.01%2020C15.01%2021.1%2015.9%2022%2017%2022C18.1%2022%2019%2021.1%2019%2020C19%2018.9%2018.1%2018%2017%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_344_3390'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
4114
- function cs(t) {
4113
+ const lo = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%20clip-path='url(%23clip0_344_3390)'%3e%3cpath%20d='M7%2018C5.9%2018%205.01%2018.9%205.01%2020C5.01%2021.1%205.9%2022%207%2022C8.1%2022%209%2021.1%209%2020C9%2018.9%208.1%2018%207%2018ZM1%202V4H3L6.6%2011.59L5.25%2014.04C5.09%2014.32%205%2014.65%205%2015C5%2016.1%205.9%2017%207%2017H19V15H7.42C7.28%2015%207.17%2014.89%207.17%2014.75L7.2%2014.63L8.1%2013H15.55C16.3%2013%2016.96%2012.59%2017.3%2011.97L20.88%205.48C20.96%205.34%2021%205.17%2021%205C21%204.45%2020.55%204%2020%204H5.21L4.27%202H1ZM17%2018C15.9%2018%2015.01%2018.9%2015.01%2020C15.01%2021.1%2015.9%2022%2017%2022C18.1%2022%2019%2021.1%2019%2020C19%2018.9%2018.1%2018%2017%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_344_3390'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
4114
+ function co(t) {
4115
4115
  let e, r;
4116
4116
  return {
4117
4117
  c() {
4118
- e = k("img"), X(e.src, r = ls) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon");
4118
+ e = k("img"), X(e.src, r = lo) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
4119
4119
  },
4120
4120
  m(n, i) {
4121
4121
  p(n, e, i);
@@ -4128,19 +4128,19 @@ function cs(t) {
4128
4128
  }
4129
4129
  };
4130
4130
  }
4131
- class as extends U {
4131
+ class ao extends U {
4132
4132
  constructor(e) {
4133
- super(), R(this, e, null, cs, P, {});
4133
+ super(), N(this, e, null, co, P, {});
4134
4134
  }
4135
4135
  }
4136
- function us(t) {
4136
+ function uo(t) {
4137
4137
  O(t, "svelte-1rhrjxe", "div.svelte-1rhrjxe{background-color:var(--rc-color-warning);color:var(--rc-color-grey-text-dark);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px}");
4138
4138
  }
4139
- function fs(t) {
4139
+ function fo(t) {
4140
4140
  let e;
4141
4141
  return {
4142
4142
  c() {
4143
- e = k("div"), e.textContent = "Sandbox", A(e, "class", "svelte-1rhrjxe");
4143
+ e = k("div"), e.textContent = "Sandbox", _(e, "class", "svelte-1rhrjxe");
4144
4144
  },
4145
4145
  m(r, n) {
4146
4146
  p(r, e, n);
@@ -4153,37 +4153,37 @@ function fs(t) {
4153
4153
  }
4154
4154
  };
4155
4155
  }
4156
- class ds extends U {
4156
+ class mo extends U {
4157
4157
  constructor(e) {
4158
- super(), R(this, e, null, fs, P, {}, us);
4158
+ super(), N(this, e, null, fo, P, {}, uo);
4159
4159
  }
4160
4160
  }
4161
- function ms(t) {
4162
- O(t, "svelte-159ts4k", `.rcb-ui-container.svelte-159ts4k{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4163
- Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-159ts4k{width:100vw;width:100dvw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative}.rcb-ui-aside.svelte-159ts4k{margin-right:16px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-159ts4k{flex-direction:column;align-items:center;justify-content:center;height:100%}.rcb-ui-aside.svelte-159ts4k{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-159ts4k{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
4161
+ function go(t) {
4162
+ O(t, "svelte-13pdaik", `.rcb-ui-container.svelte-13pdaik{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4163
+ Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-13pdaik{width:100vw;width:100dvw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative;padding:0px 80px;box-sizing:border-box}.rcb-ui-aside.svelte-13pdaik{margin-right:16px;flex:320px 1 0;max-width:480px}.rcb-ui-main.svelte-13pdaik{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-13pdaik{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}.rcb-ui-aside.svelte-13pdaik{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center;flex:none;max-width:none}.rcb-ui-main.svelte-13pdaik{flex:none;max-width:none;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-13pdaik{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
4164
4164
  }
4165
4165
  function ft(t) {
4166
4166
  let e, r, n;
4167
- return r = new Rt({
4167
+ return r = new Nt({
4168
4168
  props: {
4169
4169
  dark: !0,
4170
4170
  $$slots: {
4171
- header: [hs],
4172
- default: [gs]
4171
+ header: [Eo],
4172
+ default: [po]
4173
4173
  },
4174
4174
  $$scope: { ctx: t }
4175
4175
  }
4176
4176
  }), {
4177
4177
  c() {
4178
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-ui-aside svelte-159ts4k");
4178
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-ui-aside svelte-13pdaik");
4179
4179
  },
4180
- m(i, s) {
4181
- p(i, e, s), I(r, e, null), n = !0;
4180
+ m(i, o) {
4181
+ p(i, e, o), I(r, e, null), n = !0;
4182
4182
  },
4183
- p(i, s) {
4184
- const o = {};
4185
- s & /*$$scope, purchases, brandingInfo, productDetails*/
4186
- 8388622 && (o.$$scope = { dirty: s, ctx: i }), r.$set(o);
4183
+ p(i, o) {
4184
+ const s = {};
4185
+ o & /*$$scope, purchases, brandingInfo, productDetails*/
4186
+ 8388622 && (s.$$scope = { dirty: o, ctx: i }), r.$set(s);
4187
4187
  },
4188
4188
  i(i) {
4189
4189
  n || (u(r.$$.fragment, i), n = !0);
@@ -4213,10 +4213,10 @@ function dt(t) {
4213
4213
  I(e, n, i), r = !0;
4214
4214
  },
4215
4215
  p(n, i) {
4216
- const s = {};
4216
+ const o = {};
4217
4217
  i & /*productDetails*/
4218
- 4 && (s.productDetails = /*productDetails*/
4219
- n[2]), e.$set(s);
4218
+ 4 && (o.productDetails = /*productDetails*/
4219
+ n[2]), e.$set(o);
4220
4220
  },
4221
4221
  i(n) {
4222
4222
  r || (u(e.$$.fragment, n), r = !0);
@@ -4229,21 +4229,21 @@ function dt(t) {
4229
4229
  }
4230
4230
  };
4231
4231
  }
4232
- function gs(t) {
4232
+ function po(t) {
4233
4233
  let e, r, n = (
4234
4234
  /*productDetails*/
4235
4235
  t[2] && dt(t)
4236
4236
  );
4237
4237
  return {
4238
4238
  c() {
4239
- n && n.c(), e = Z();
4239
+ n && n.c(), e = ee();
4240
4240
  },
4241
- m(i, s) {
4242
- n && n.m(i, s), p(i, e, s), r = !0;
4241
+ m(i, o) {
4242
+ n && n.m(i, o), p(i, e, o), r = !0;
4243
4243
  },
4244
- p(i, s) {
4244
+ p(i, o) {
4245
4245
  /*productDetails*/
4246
- i[2] ? n ? (n.p(i, s), s & /*productDetails*/
4246
+ i[2] ? n ? (n.p(i, o), o & /*productDetails*/
4247
4247
  4 && u(n, 1)) : (n = dt(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (L(), m(n, 1, 1, () => {
4248
4248
  n = null;
4249
4249
  }), x());
@@ -4259,9 +4259,9 @@ function gs(t) {
4259
4259
  }
4260
4260
  };
4261
4261
  }
4262
- function ps(t) {
4262
+ function _o(t) {
4263
4263
  let e, r;
4264
- return e = new as({}), {
4264
+ return e = new ao({}), {
4265
4265
  c() {
4266
4266
  w(e.$$.fragment);
4267
4267
  },
@@ -4279,9 +4279,9 @@ function ps(t) {
4279
4279
  }
4280
4280
  };
4281
4281
  }
4282
- function As(t) {
4282
+ function Ao(t) {
4283
4283
  let e, r;
4284
- return e = new ds({}), {
4284
+ return e = new mo({}), {
4285
4285
  c() {
4286
4286
  w(e.$$.fragment);
4287
4287
  },
@@ -4299,54 +4299,54 @@ function As(t) {
4299
4299
  }
4300
4300
  };
4301
4301
  }
4302
- function _s(t) {
4303
- let e, r, n, i, s, o, l;
4302
+ function ho(t) {
4303
+ let e, r, n, i, o, s, l;
4304
4304
  e = new Dt({
4305
4305
  props: { brandingInfo: (
4306
4306
  /*brandingInfo*/
4307
4307
  t[3]
4308
4308
  ) }
4309
4309
  });
4310
- const c = [As, ps], a = [];
4310
+ const c = [Ao, _o], a = [];
4311
4311
  function f(d, E) {
4312
4312
  return E & /*purchases*/
4313
4313
  2 && (n = null), n == null && (n = !!/*purchases*/
4314
4314
  d[1].isSandbox()), n ? 0 : 1;
4315
4315
  }
4316
- return i = f(t, -1), s = a[i] = c[i](t), {
4316
+ return i = f(t, -1), o = a[i] = c[i](t), {
4317
4317
  c() {
4318
- w(e.$$.fragment), r = T(), s.c(), o = Z();
4318
+ w(e.$$.fragment), r = T(), o.c(), s = ee();
4319
4319
  },
4320
4320
  m(d, E) {
4321
- I(e, d, E), p(d, r, E), a[i].m(d, E), p(d, o, E), l = !0;
4321
+ I(e, d, E), p(d, r, E), a[i].m(d, E), p(d, s, E), l = !0;
4322
4322
  },
4323
4323
  p(d, E) {
4324
4324
  const v = {};
4325
4325
  E & /*brandingInfo*/
4326
4326
  8 && (v.brandingInfo = /*brandingInfo*/
4327
4327
  d[3]), e.$set(v);
4328
- let _ = i;
4329
- i = f(d, E), i !== _ && (L(), m(a[_], 1, 1, () => {
4330
- a[_] = null;
4331
- }), x(), s = a[i], s || (s = a[i] = c[i](d), s.c()), u(s, 1), s.m(o.parentNode, o));
4328
+ let A = i;
4329
+ i = f(d, E), i !== A && (L(), m(a[A], 1, 1, () => {
4330
+ a[A] = null;
4331
+ }), x(), o = a[i], o || (o = a[i] = c[i](d), o.c()), u(o, 1), o.m(s.parentNode, s));
4332
4332
  },
4333
4333
  i(d) {
4334
- l || (u(e.$$.fragment, d), u(s), l = !0);
4334
+ l || (u(e.$$.fragment, d), u(o), l = !0);
4335
4335
  },
4336
4336
  o(d) {
4337
- m(e.$$.fragment, d), m(s), l = !1;
4337
+ m(e.$$.fragment, d), m(o), l = !1;
4338
4338
  },
4339
4339
  d(d) {
4340
- d && (g(r), g(o)), b(e, d), a[i].d(d);
4340
+ d && (g(r), g(s)), b(e, d), a[i].d(d);
4341
4341
  }
4342
4342
  };
4343
4343
  }
4344
- function hs(t) {
4344
+ function Eo(t) {
4345
4345
  let e, r;
4346
4346
  return e = new Ve({
4347
4347
  props: {
4348
4348
  slot: "header",
4349
- $$slots: { default: [_s] },
4349
+ $$slots: { default: [ho] },
4350
4350
  $$scope: { ctx: t }
4351
4351
  }
4352
4352
  }), {
@@ -4357,9 +4357,9 @@ function hs(t) {
4357
4357
  I(e, n, i), r = !0;
4358
4358
  },
4359
4359
  p(n, i) {
4360
- const s = {};
4360
+ const o = {};
4361
4361
  i & /*$$scope, purchases, brandingInfo*/
4362
- 8388618 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
4362
+ 8388618 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
4363
4363
  },
4364
4364
  i(n) {
4365
4365
  r || (u(e.$$.fragment, n), r = !0);
@@ -4389,10 +4389,10 @@ function mt(t) {
4389
4389
  I(e, n, i), r = !0;
4390
4390
  },
4391
4391
  p(n, i) {
4392
- const s = {};
4392
+ const o = {};
4393
4393
  i & /*productDetails*/
4394
- 4 && (s.productDetails = /*productDetails*/
4395
- n[2]), e.$set(s);
4394
+ 4 && (o.productDetails = /*productDetails*/
4395
+ n[2]), e.$set(o);
4396
4396
  },
4397
4397
  i(n) {
4398
4398
  r || (u(e.$$.fragment, n), r = !0);
@@ -4427,7 +4427,7 @@ function gt(t) {
4427
4427
  }
4428
4428
  function pt(t) {
4429
4429
  let e, r;
4430
- return e = new Mi({
4430
+ return e = new Qi({
4431
4431
  props: {
4432
4432
  onContinue: (
4433
4433
  /*handleContinue*/
@@ -4450,10 +4450,10 @@ function pt(t) {
4450
4450
  I(e, n, i), r = !0;
4451
4451
  },
4452
4452
  p(n, i) {
4453
- const s = {};
4453
+ const o = {};
4454
4454
  i & /*state*/
4455
- 64 && (s.processing = /*state*/
4456
- n[6] === "processing-auth-info"), e.$set(s);
4455
+ 64 && (o.processing = /*state*/
4456
+ n[6] === "processing-auth-info"), e.$set(o);
4457
4457
  },
4458
4458
  i(n) {
4459
4459
  r || (u(e.$$.fragment, n), r = !0);
@@ -4466,7 +4466,7 @@ function pt(t) {
4466
4466
  }
4467
4467
  };
4468
4468
  }
4469
- function At(t) {
4469
+ function _t(t) {
4470
4470
  let e, r;
4471
4471
  return e = new hi({
4472
4472
  props: {
@@ -4499,12 +4499,12 @@ function At(t) {
4499
4499
  I(e, n, i), r = !0;
4500
4500
  },
4501
4501
  p(n, i) {
4502
- const s = {};
4502
+ const o = {};
4503
4503
  i & /*paymentInfoCollectionMetadata*/
4504
- 16 && (s.paymentInfoCollectionMetadata = /*paymentInfoCollectionMetadata*/
4504
+ 16 && (o.paymentInfoCollectionMetadata = /*paymentInfoCollectionMetadata*/
4505
4505
  n[4]), i & /*state*/
4506
- 64 && (s.processing = /*state*/
4507
- n[6] === "polling-purchase-status"), e.$set(s);
4506
+ 64 && (o.processing = /*state*/
4507
+ n[6] === "polling-purchase-status"), e.$set(o);
4508
4508
  },
4509
4509
  i(n) {
4510
4510
  r || (u(e.$$.fragment, n), r = !0);
@@ -4517,7 +4517,7 @@ function At(t) {
4517
4517
  }
4518
4518
  };
4519
4519
  }
4520
- function _t(t) {
4520
+ function At(t) {
4521
4521
  let e, r;
4522
4522
  return e = new je({}), {
4523
4523
  c() {
@@ -4563,19 +4563,19 @@ function ht(t) {
4563
4563
  c() {
4564
4564
  w(e.$$.fragment);
4565
4565
  },
4566
- m(i, s) {
4567
- I(e, i, s), r = !0;
4566
+ m(i, o) {
4567
+ I(e, i, o), r = !0;
4568
4568
  },
4569
- p(i, s) {
4569
+ p(i, o) {
4570
4570
  var l;
4571
- const o = {};
4572
- s & /*brandingInfo*/
4573
- 8 && (o.brandingInfo = /*brandingInfo*/
4574
- i[3]), s & /*lastError*/
4575
- 32 && (o.lastError = /*lastError*/
4576
- i[5] ?? new G(S.UnknownError, "Unknown error without state set.")), s & /*brandingInfo*/
4577
- 8 && (o.supportEmail = /*brandingInfo*/
4578
- (l = i[3]) == null ? void 0 : l.seller_company_support_email), e.$set(o);
4571
+ const s = {};
4572
+ o & /*brandingInfo*/
4573
+ 8 && (s.brandingInfo = /*brandingInfo*/
4574
+ i[3]), o & /*lastError*/
4575
+ 32 && (s.lastError = /*lastError*/
4576
+ i[5] ?? new G(S.UnknownError, "Unknown error without state set.")), o & /*brandingInfo*/
4577
+ 8 && (s.supportEmail = /*brandingInfo*/
4578
+ (l = i[3]) == null ? void 0 : l.seller_company_support_email), e.$set(s);
4579
4579
  },
4580
4580
  i(i) {
4581
4581
  r || (u(e.$$.fragment, i), r = !0);
@@ -4590,7 +4590,7 @@ function ht(t) {
4590
4590
  }
4591
4591
  function Et(t) {
4592
4592
  let e, r;
4593
- return e = new Cr({
4593
+ return e = new Mr({
4594
4594
  props: {
4595
4595
  brandingInfo: (
4596
4596
  /*brandingInfo*/
@@ -4609,10 +4609,10 @@ function Et(t) {
4609
4609
  I(e, n, i), r = !0;
4610
4610
  },
4611
4611
  p(n, i) {
4612
- const s = {};
4612
+ const o = {};
4613
4613
  i & /*brandingInfo*/
4614
- 8 && (s.brandingInfo = /*brandingInfo*/
4615
- n[3]), e.$set(s);
4614
+ 8 && (o.brandingInfo = /*brandingInfo*/
4615
+ n[3]), e.$set(o);
4616
4616
  },
4617
4617
  i(n) {
4618
4618
  r || (u(e.$$.fragment, n), r = !0);
@@ -4625,8 +4625,8 @@ function Et(t) {
4625
4625
  }
4626
4626
  };
4627
4627
  }
4628
- function Es(t) {
4629
- let e, r, n, i, s, o, l, c, a = (
4628
+ function Io(t) {
4629
+ let e, r, n, i, o, s, l, c, a = (
4630
4630
  /*state*/
4631
4631
  t[6] === "present-offer" && /*productDetails*/
4632
4632
  t[2] && mt(t)
@@ -4642,23 +4642,23 @@ function Es(t) {
4642
4642
  /*paymentInfoCollectionMetadata*/
4643
4643
  t[4] && /*state*/
4644
4644
  (t[6] === "needs-payment-info" || /*state*/
4645
- t[6] === "polling-purchase-status") && At(t)
4645
+ t[6] === "polling-purchase-status") && _t(t)
4646
4646
  ), v = (
4647
4647
  /*state*/
4648
- t[6] === "loading" && _t()
4649
- ), _ = (
4648
+ t[6] === "loading" && At()
4649
+ ), A = (
4650
4650
  /*state*/
4651
4651
  t[6] === "error" && ht(t)
4652
- ), M = (
4652
+ ), Q = (
4653
4653
  /*state*/
4654
4654
  t[6] === "success" && Et(t)
4655
4655
  );
4656
4656
  return {
4657
4657
  c() {
4658
- a && a.c(), e = T(), f && f.c(), r = T(), d && d.c(), n = T(), E && E.c(), i = T(), v && v.c(), s = T(), _ && _.c(), o = T(), M && M.c(), l = Z();
4658
+ a && a.c(), e = T(), f && f.c(), r = T(), d && d.c(), n = T(), E && E.c(), i = T(), v && v.c(), o = T(), A && A.c(), s = T(), Q && Q.c(), l = ee();
4659
4659
  },
4660
4660
  m(h, y) {
4661
- a && a.m(h, y), p(h, e, y), f && f.m(h, y), p(h, r, y), d && d.m(h, y), p(h, n, y), E && E.m(h, y), p(h, i, y), v && v.m(h, y), p(h, s, y), _ && _.m(h, y), p(h, o, y), M && M.m(h, y), p(h, l, y), c = !0;
4661
+ a && a.m(h, y), p(h, e, y), f && f.m(h, y), p(h, r, y), d && d.m(h, y), p(h, n, y), E && E.m(h, y), p(h, i, y), v && v.m(h, y), p(h, o, y), A && A.m(h, y), p(h, s, y), Q && Q.m(h, y), p(h, l, y), c = !0;
4662
4662
  },
4663
4663
  p(h, y) {
4664
4664
  /*state*/
@@ -4680,84 +4680,84 @@ function Es(t) {
4680
4680
  h[4] && /*state*/
4681
4681
  (h[6] === "needs-payment-info" || /*state*/
4682
4682
  h[6] === "polling-purchase-status") ? E ? (E.p(h, y), y & /*paymentInfoCollectionMetadata, state*/
4683
- 80 && u(E, 1)) : (E = At(h), E.c(), u(E, 1), E.m(i.parentNode, i)) : E && (L(), m(E, 1, 1, () => {
4683
+ 80 && u(E, 1)) : (E = _t(h), E.c(), u(E, 1), E.m(i.parentNode, i)) : E && (L(), m(E, 1, 1, () => {
4684
4684
  E = null;
4685
4685
  }), x()), /*state*/
4686
4686
  h[6] === "loading" ? v ? y & /*state*/
4687
- 64 && u(v, 1) : (v = _t(), v.c(), u(v, 1), v.m(s.parentNode, s)) : v && (L(), m(v, 1, 1, () => {
4687
+ 64 && u(v, 1) : (v = At(), v.c(), u(v, 1), v.m(o.parentNode, o)) : v && (L(), m(v, 1, 1, () => {
4688
4688
  v = null;
4689
4689
  }), x()), /*state*/
4690
- h[6] === "error" ? _ ? (_.p(h, y), y & /*state*/
4691
- 64 && u(_, 1)) : (_ = ht(h), _.c(), u(_, 1), _.m(o.parentNode, o)) : _ && (L(), m(_, 1, 1, () => {
4692
- _ = null;
4690
+ h[6] === "error" ? A ? (A.p(h, y), y & /*state*/
4691
+ 64 && u(A, 1)) : (A = ht(h), A.c(), u(A, 1), A.m(s.parentNode, s)) : A && (L(), m(A, 1, 1, () => {
4692
+ A = null;
4693
4693
  }), x()), /*state*/
4694
- h[6] === "success" ? M ? (M.p(h, y), y & /*state*/
4695
- 64 && u(M, 1)) : (M = Et(h), M.c(), u(M, 1), M.m(l.parentNode, l)) : M && (L(), m(M, 1, 1, () => {
4696
- M = null;
4694
+ h[6] === "success" ? Q ? (Q.p(h, y), y & /*state*/
4695
+ 64 && u(Q, 1)) : (Q = Et(h), Q.c(), u(Q, 1), Q.m(l.parentNode, l)) : Q && (L(), m(Q, 1, 1, () => {
4696
+ Q = null;
4697
4697
  }), x());
4698
4698
  },
4699
4699
  i(h) {
4700
- c || (u(a), u(f), u(d), u(E), u(v), u(_), u(M), c = !0);
4700
+ c || (u(a), u(f), u(d), u(E), u(v), u(A), u(Q), c = !0);
4701
4701
  },
4702
4702
  o(h) {
4703
- m(a), m(f), m(d), m(E), m(v), m(_), m(M), c = !1;
4703
+ m(a), m(f), m(d), m(E), m(v), m(A), m(Q), c = !1;
4704
4704
  },
4705
4705
  d(h) {
4706
- h && (g(e), g(r), g(n), g(i), g(s), g(o), g(l)), a && a.d(h), f && f.d(h), d && d.d(h), E && E.d(h), v && v.d(h), _ && _.d(h), M && M.d(h);
4706
+ h && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(h), f && f.d(h), d && d.d(h), E && E.d(h), v && v.d(h), A && A.d(h), Q && Q.d(h);
4707
4707
  }
4708
4708
  };
4709
4709
  }
4710
- function Is(t) {
4710
+ function bo(t) {
4711
4711
  let e, r = (
4712
4712
  /*statesWhereOfferDetailsAreShown*/
4713
4713
  t[8].includes(
4714
4714
  /*state*/
4715
4715
  t[6]
4716
4716
  )
4717
- ), n, i, s, o = r && ft(t);
4718
- return i = new Rt({
4717
+ ), n, i, o, s, l = r && ft(t);
4718
+ return o = new Nt({
4719
4719
  props: {
4720
- $$slots: { default: [Es] },
4720
+ $$slots: { default: [Io] },
4721
4721
  $$scope: { ctx: t }
4722
4722
  }
4723
4723
  }), {
4724
4724
  c() {
4725
- e = k("div"), o && o.c(), n = T(), w(i.$$.fragment), A(e, "class", "rcb-ui-layout svelte-159ts4k"), A(
4725
+ e = k("div"), l && l.c(), n = T(), i = k("div"), w(o.$$.fragment), _(i, "class", "rcb-ui-main svelte-13pdaik"), _(e, "class", "rcb-ui-layout svelte-13pdaik"), _(
4726
4726
  e,
4727
4727
  "style",
4728
4728
  /*colorVariables*/
4729
4729
  t[7]
4730
4730
  );
4731
4731
  },
4732
- m(l, c) {
4733
- p(l, e, c), o && o.m(e, null), Q(e, n), I(i, e, null), s = !0;
4732
+ m(c, a) {
4733
+ p(c, e, a), l && l.m(e, null), D(e, n), D(e, i), I(o, i, null), s = !0;
4734
4734
  },
4735
- p(l, c) {
4736
- c & /*state*/
4735
+ p(c, a) {
4736
+ a & /*state*/
4737
4737
  64 && (r = /*statesWhereOfferDetailsAreShown*/
4738
- l[8].includes(
4738
+ c[8].includes(
4739
4739
  /*state*/
4740
- l[6]
4741
- )), r ? o ? (o.p(l, c), c & /*state*/
4742
- 64 && u(o, 1)) : (o = ft(l), o.c(), u(o, 1), o.m(e, n)) : o && (L(), m(o, 1, 1, () => {
4743
- o = null;
4740
+ c[6]
4741
+ )), r ? l ? (l.p(c, a), a & /*state*/
4742
+ 64 && u(l, 1)) : (l = ft(c), l.c(), u(l, 1), l.m(e, n)) : l && (L(), m(l, 1, 1, () => {
4743
+ l = null;
4744
4744
  }), x());
4745
- const a = {};
4746
- c & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails*/
4747
- 8388732 && (a.$$scope = { dirty: c, ctx: l }), i.$set(a);
4745
+ const f = {};
4746
+ a & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails*/
4747
+ 8388732 && (f.$$scope = { dirty: a, ctx: c }), o.$set(f);
4748
4748
  },
4749
- i(l) {
4750
- s || (u(o), u(i.$$.fragment, l), s = !0);
4749
+ i(c) {
4750
+ s || (u(l), u(o.$$.fragment, c), s = !0);
4751
4751
  },
4752
- o(l) {
4753
- m(o), m(i.$$.fragment, l), s = !1;
4752
+ o(c) {
4753
+ m(l), m(o.$$.fragment, c), s = !1;
4754
4754
  },
4755
- d(l) {
4756
- l && g(e), o && o.d(), b(i);
4755
+ d(c) {
4756
+ c && g(e), l && l.d(), b(o);
4757
4757
  }
4758
4758
  };
4759
4759
  }
4760
- function bs(t) {
4760
+ function wo(t) {
4761
4761
  let e, r, n;
4762
4762
  return r = new Hi({
4763
4763
  props: {
@@ -4765,22 +4765,22 @@ function bs(t) {
4765
4765
  /*asModal*/
4766
4766
  t[0]
4767
4767
  ),
4768
- $$slots: { default: [Is] },
4768
+ $$slots: { default: [bo] },
4769
4769
  $$scope: { ctx: t }
4770
4770
  }
4771
4771
  }), {
4772
4772
  c() {
4773
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-ui-container svelte-159ts4k");
4773
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-ui-container svelte-13pdaik");
4774
4774
  },
4775
- m(i, s) {
4776
- p(i, e, s), I(r, e, null), n = !0;
4775
+ m(i, o) {
4776
+ p(i, e, o), I(r, e, null), n = !0;
4777
4777
  },
4778
- p(i, [s]) {
4779
- const o = {};
4780
- s & /*asModal*/
4781
- 1 && (o.condition = /*asModal*/
4782
- i[0]), s & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails, purchases*/
4783
- 8388734 && (o.$$scope = { dirty: s, ctx: i }), r.$set(o);
4778
+ p(i, [o]) {
4779
+ const s = {};
4780
+ o & /*asModal*/
4781
+ 1 && (s.condition = /*asModal*/
4782
+ i[0]), o & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails, purchases*/
4783
+ 8388734 && (s.$$scope = { dirty: o, ctx: i }), r.$set(s);
4784
4784
  },
4785
4785
  i(i) {
4786
4786
  n || (u(r.$$.fragment, i), n = !0);
@@ -4793,12 +4793,12 @@ function bs(t) {
4793
4793
  }
4794
4794
  };
4795
4795
  }
4796
- function ws(t, e, r) {
4796
+ function ko(t, e, r) {
4797
4797
  var We;
4798
- let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: s } = e, { rcPackage: o } = e, { onFinished: l } = e, { onError: c } = e, { onClose: a } = e, { purchases: f } = e, { backend: d } = e, { purchaseOperationHelper: E } = e;
4799
- const v = Object.entries(_e).map(([D, Le]) => `--rc-color-${D}: ${Le}`).join("; ");
4800
- let _ = null, M = null, h = null, y = null;
4801
- const F = ((We = o.rcBillingProduct) == null ? void 0 : We.identifier) ?? null;
4798
+ let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { onFinished: l } = e, { onError: c } = e, { onClose: a } = e, { purchases: f } = e, { backend: d } = e, { purchaseOperationHelper: E } = e;
4799
+ const v = Object.entries(Ae).map(([C, Le]) => `--rc-color-${C}: ${Le}`).join("; ");
4800
+ let A = null, Q = null, h = null, y = null;
4801
+ const F = ((We = s.rcBillingProduct) == null ? void 0 : We.identifier) ?? null;
4802
4802
  let $ = "present-offer";
4803
4803
  const de = [
4804
4804
  "present-offer",
@@ -4809,14 +4809,14 @@ function ws(t, e, r) {
4809
4809
  "loading"
4810
4810
  ];
4811
4811
  Se(async () => {
4812
- if (r(2, _ = o.rcBillingProduct), r(3, M = await d.getBrandingInfo()), $ === "present-offer") {
4813
- i ? re() : r(6, $ = "needs-auth-info");
4812
+ if (r(2, A = s.rcBillingProduct), r(3, Q = await d.getBrandingInfo()), $ === "present-offer") {
4813
+ i ? ie() : r(6, $ = "needs-auth-info");
4814
4814
  return;
4815
4815
  }
4816
4816
  });
4817
4817
  const ve = () => {
4818
4818
  a();
4819
- }, re = () => {
4819
+ }, ie = () => {
4820
4820
  if (F === null) {
4821
4821
  W(new G(S.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
4822
4822
  return;
@@ -4826,21 +4826,21 @@ function ws(t, e, r) {
4826
4826
  W(new G(S.MissingEmailError));
4827
4827
  return;
4828
4828
  }
4829
- E.startPurchase(s, F, i, o.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
4830
- if (D.next_action === "collect_payment_info") {
4831
- r(6, $ = "needs-payment-info"), r(4, h = D);
4829
+ E.startPurchase(o, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((C) => {
4830
+ if (C.next_action === "collect_payment_info") {
4831
+ r(6, $ = "needs-payment-info"), r(4, h = C);
4832
4832
  return;
4833
4833
  }
4834
- if (D.next_action === "completed") {
4834
+ if (C.next_action === "completed") {
4835
4835
  r(6, $ = "success");
4836
4836
  return;
4837
4837
  }
4838
- }).catch((D) => {
4839
- W(new G(S.ErrorSettingUpPurchase, D.message, D.underlyingErrorMessage));
4838
+ }).catch((C) => {
4839
+ W(new G(S.ErrorSettingUpPurchase, C.message, C.underlyingErrorMessage));
4840
4840
  });
4841
- }, z = (D) => {
4841
+ }, z = (C) => {
4842
4842
  if ($ === "needs-auth-info") {
4843
- D && (r(13, i = D.email), r(6, $ = "processing-auth-info")), re();
4843
+ C && (r(13, i = C.email), r(6, $ = "processing-auth-info")), ie();
4844
4844
  return;
4845
4845
  }
4846
4846
  if ($ === "needs-payment-info") {
@@ -4856,18 +4856,18 @@ function ws(t, e, r) {
4856
4856
  return;
4857
4857
  }
4858
4858
  r(6, $ = "success");
4859
- }, W = (D) => {
4860
- r(5, y = D), r(6, $ = "error");
4859
+ }, W = (C) => {
4860
+ r(5, y = C), r(6, $ = "error");
4861
4861
  }, St = () => {
4862
4862
  c(y ?? new G(S.UnknownError, "Unknown error without state set."));
4863
4863
  };
4864
- return t.$$set = (D) => {
4865
- "asModal" in D && r(0, n = D.asModal), "customerEmail" in D && r(13, i = D.customerEmail), "appUserId" in D && r(14, s = D.appUserId), "rcPackage" in D && r(15, o = D.rcPackage), "onFinished" in D && r(16, l = D.onFinished), "onError" in D && r(17, c = D.onError), "onClose" in D && r(18, a = D.onClose), "purchases" in D && r(1, f = D.purchases), "backend" in D && r(19, d = D.backend), "purchaseOperationHelper" in D && r(20, E = D.purchaseOperationHelper);
4864
+ return t.$$set = (C) => {
4865
+ "asModal" in C && r(0, n = C.asModal), "customerEmail" in C && r(13, i = C.customerEmail), "appUserId" in C && r(14, o = C.appUserId), "rcPackage" in C && r(15, s = C.rcPackage), "onFinished" in C && r(16, l = C.onFinished), "onError" in C && r(17, c = C.onError), "onClose" in C && r(18, a = C.onClose), "purchases" in C && r(1, f = C.purchases), "backend" in C && r(19, d = C.backend), "purchaseOperationHelper" in C && r(20, E = C.purchaseOperationHelper);
4866
4866
  }, [
4867
4867
  n,
4868
4868
  f,
4869
- _,
4870
- M,
4869
+ A,
4870
+ Q,
4871
4871
  h,
4872
4872
  y,
4873
4873
  $,
@@ -4878,8 +4878,8 @@ function ws(t, e, r) {
4878
4878
  W,
4879
4879
  St,
4880
4880
  i,
4881
- s,
4882
4881
  o,
4882
+ s,
4883
4883
  l,
4884
4884
  c,
4885
4885
  a,
@@ -4887,13 +4887,13 @@ function ws(t, e, r) {
4887
4887
  E
4888
4888
  ];
4889
4889
  }
4890
- class ks extends U {
4890
+ class $o extends U {
4891
4891
  constructor(e) {
4892
- super(), R(
4892
+ super(), N(
4893
4893
  this,
4894
4894
  e,
4895
- ws,
4896
- bs,
4895
+ ko,
4896
+ wo,
4897
4897
  P,
4898
4898
  {
4899
4899
  asModal: 0,
@@ -4907,19 +4907,39 @@ class ks extends U {
4907
4907
  backend: 19,
4908
4908
  purchaseOperationHelper: 20
4909
4909
  },
4910
- ms
4910
+ go
4911
4911
  );
4912
4912
  }
4913
4913
  }
4914
- function $s(t) {
4914
+ function vo(t) {
4915
4915
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
4916
4916
  }
4917
- function vs(t, e, r) {
4917
+ function Bo(t, e, r, n) {
4918
+ const i = e.product_identifier;
4919
+ if (i in r)
4920
+ return yo(
4921
+ t,
4922
+ e,
4923
+ r[i]
4924
+ );
4925
+ if (i in n)
4926
+ return Do(
4927
+ t,
4928
+ e,
4929
+ n[i]
4930
+ );
4931
+ throw new Z(
4932
+ re.CustomerInfoError,
4933
+ "Could not find entitlement product in subscriptions or non-subscriptions."
4934
+ );
4935
+ }
4936
+ function yo(t, e, r) {
4918
4937
  return {
4919
4938
  identifier: t,
4920
- isActive: $s(e),
4921
- willRenew: Ds(e, r),
4939
+ isActive: vo(e),
4940
+ willRenew: Mo(e, r),
4922
4941
  store: (r == null ? void 0 : r.store) ?? "unknown",
4942
+ latestPurchaseDate: new Date(e.purchase_date),
4923
4943
  originalPurchaseDate: new Date(e.purchase_date),
4924
4944
  expirationDate: Te(e.expires_date),
4925
4945
  productIdentifier: e.product_identifier,
@@ -4933,34 +4953,59 @@ function vs(t, e, r) {
4933
4953
  periodType: (r == null ? void 0 : r.period_type) ?? "normal"
4934
4954
  };
4935
4955
  }
4936
- function Bs(t, e) {
4937
- const r = {}, n = {};
4938
- for (const i in t) {
4939
- const s = e[i] ?? null, o = vs(
4940
- i,
4941
- t[i],
4942
- s
4956
+ function Do(t, e, r) {
4957
+ return {
4958
+ identifier: t,
4959
+ isActive: !0,
4960
+ willRenew: !1,
4961
+ store: r.store,
4962
+ latestPurchaseDate: new Date(e.purchase_date),
4963
+ originalPurchaseDate: new Date(
4964
+ r.original_purchase_date
4965
+ ),
4966
+ expirationDate: null,
4967
+ productIdentifier: e.product_identifier,
4968
+ unsubscribeDetectedAt: null,
4969
+ billingIssueDetectedAt: null,
4970
+ isSandbox: r.is_sandbox,
4971
+ periodType: "normal"
4972
+ };
4973
+ }
4974
+ function Co(t, e, r) {
4975
+ const n = {}, i = {};
4976
+ for (const o in t) {
4977
+ const s = Bo(
4978
+ o,
4979
+ t[o],
4980
+ e,
4981
+ r
4943
4982
  );
4944
- r[i] = o, o.isActive && (n[i] = o);
4983
+ n[o] = s, s.isActive && (i[o] = s);
4945
4984
  }
4946
4985
  return {
4947
- all: r,
4948
- active: n
4986
+ all: n,
4987
+ active: i
4949
4988
  };
4950
4989
  }
4951
4990
  function Te(t) {
4952
4991
  return t == null ? null : new Date(t);
4953
4992
  }
4954
- function ys(t) {
4955
- const e = Ms(t), r = t.subscriber;
4993
+ function Qo(t) {
4994
+ const e = To(t), r = t.subscriber, n = Uo(
4995
+ r.non_subscriptions
4996
+ );
4956
4997
  return {
4957
- entitlements: Bs(
4998
+ entitlements: Co(
4958
4999
  r.entitlements,
4959
- r.subscriptions
5000
+ r.subscriptions,
5001
+ n
4960
5002
  ),
4961
5003
  allExpirationDatesByProduct: e,
4962
- allPurchaseDatesByProduct: Qs(t),
4963
- activeSubscriptions: Cs(e),
5004
+ allPurchaseDatesByProduct: Po(
5005
+ t,
5006
+ n
5007
+ ),
5008
+ activeSubscriptions: No(e),
4964
5009
  managementURL: r.management_url,
4965
5010
  requestDate: new Date(t.request_date),
4966
5011
  firstSeenDate: new Date(r.first_seen),
@@ -4970,23 +5015,27 @@ function ys(t) {
4970
5015
  originalAppUserId: t.subscriber.original_app_user_id
4971
5016
  };
4972
5017
  }
4973
- function Ds(t, e) {
5018
+ function Mo(t, e) {
4974
5019
  if (e == null)
4975
5020
  return !1;
4976
- const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, s = e.billing_issues_detected_at != null;
4977
- return !(r || n || i || s);
4978
- }
4979
- function Qs(t) {
4980
- const e = {};
4981
- for (const r in t.subscriber.subscriptions) {
4982
- const n = t.subscriber.subscriptions[r];
4983
- e[r] = new Date(
4984
- n.purchase_date
5021
+ const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
5022
+ return !(r || n || i || o);
5023
+ }
5024
+ function Po(t, e) {
5025
+ const r = {};
5026
+ for (const n in t.subscriber.subscriptions) {
5027
+ const i = t.subscriber.subscriptions[n];
5028
+ r[n] = new Date(
5029
+ i.purchase_date
4985
5030
  );
4986
5031
  }
4987
- return e;
5032
+ for (const n in e) {
5033
+ const i = e[n].purchase_date;
5034
+ i == null ? r[n] = null : r[n] = new Date(i);
5035
+ }
5036
+ return r;
4988
5037
  }
4989
- function Ms(t) {
5038
+ function To(t) {
4990
5039
  const e = {};
4991
5040
  for (const r in t.subscriber.subscriptions) {
4992
5041
  const n = t.subscriber.subscriptions[r];
@@ -4996,7 +5045,7 @@ function Ms(t) {
4996
5045
  }
4997
5046
  return e;
4998
5047
  }
4999
- function Cs(t) {
5048
+ function No(t) {
5000
5049
  const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
5001
5050
  for (const n in t) {
5002
5051
  const i = t[n];
@@ -5004,14 +5053,24 @@ function Cs(t) {
5004
5053
  }
5005
5054
  return e;
5006
5055
  }
5007
- function Ps(t) {
5056
+ function Uo(t) {
5057
+ const e = {};
5058
+ for (const r in t) {
5059
+ if (t[r].length === 0)
5060
+ continue;
5061
+ const n = t[r].length;
5062
+ e[r] = t[r][n - 1];
5063
+ }
5064
+ return e;
5065
+ }
5066
+ function Ro(t) {
5008
5067
  if (!t.startsWith("rcb_"))
5009
- throw new ee(
5010
- ue.InvalidCredentialsError,
5068
+ throw new Z(
5069
+ re.InvalidCredentialsError,
5011
5070
  "Invalid API key. Use your RevenueCat Billing API key."
5012
5071
  );
5013
5072
  }
5014
- function Ts(t) {
5073
+ function So(t) {
5015
5074
  if ((/* @__PURE__ */ new Set([
5016
5075
  "no_user",
5017
5076
  "null",
@@ -5025,8 +5084,8 @@ function Ts(t) {
5025
5084
  "undefined",
5026
5085
  "unknown"
5027
5086
  ])).has(t) || t.includes("/"))
5028
- throw new ee(
5029
- ue.InvalidAppUserIdError,
5087
+ throw new Z(
5088
+ re.InvalidAppUserIdError,
5030
5089
  'Provided user id: "' + t + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
5031
5090
  );
5032
5091
  }
@@ -5034,33 +5093,33 @@ const J = class J {
5034
5093
  /** @internal */
5035
5094
  constructor(e, r) {
5036
5095
  /** @internal */
5037
- C(this, "_API_KEY");
5096
+ M(this, "_API_KEY");
5038
5097
  /** @internal */
5039
- C(this, "_appUserId");
5098
+ M(this, "_appUserId");
5040
5099
  /** @internal */
5041
- C(this, "backend");
5100
+ M(this, "backend");
5042
5101
  /** @internal */
5043
- C(this, "purchaseOperationHelper");
5102
+ M(this, "purchaseOperationHelper");
5044
5103
  /** @internal */
5045
- C(this, "toOfferings", (e, r) => {
5104
+ M(this, "toOfferings", (e, r) => {
5046
5105
  const n = e.offerings.find(
5047
5106
  (l) => l.identifier === e.current_offering_id
5048
5107
  ) ?? null, i = {};
5049
5108
  r.product_details.forEach((l) => {
5050
5109
  i[l.identifier] = l;
5051
5110
  });
5052
- const s = n == null ? null : ze(n, i), o = {};
5111
+ const o = n == null ? null : ze(n, i), s = {};
5053
5112
  return e.offerings.forEach((l) => {
5054
5113
  const c = ze(l, i);
5055
- c != null && (o[l.identifier] = c);
5056
- }), Object.keys(o).length == 0 && V.debugLog(
5114
+ c != null && (s[l.identifier] = c);
5115
+ }), Object.keys(s).length == 0 && V.debugLog(
5057
5116
  "Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
5058
5117
  ), {
5059
- all: o,
5060
- current: s
5118
+ all: s,
5119
+ current: o
5061
5120
  };
5062
5121
  });
5063
- this._API_KEY = e, this._appUserId = r, Ke(e) && V.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new os(this._API_KEY), this.purchaseOperationHelper = new Dn(this.backend);
5122
+ this._API_KEY = e, this._appUserId = r, qe(e) && V.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new so(this._API_KEY), this.purchaseOperationHelper = new Dn(this.backend);
5064
5123
  }
5065
5124
  /**
5066
5125
  * Set the log level. Logs of the given level and below will be printed
@@ -5098,14 +5157,14 @@ const J = class J {
5098
5157
  static configure(e, r) {
5099
5158
  return J.instance !== void 0 ? (V.warnLog(
5100
5159
  "Purchases is already initialized. Ignoring and returning existing instance."
5101
- ), J.getSharedInstance()) : (Ps(e), Ts(r), J.instance = new J(e, r), J.getSharedInstance());
5160
+ ), J.getSharedInstance()) : (Ro(e), So(r), J.instance = new J(e, r), J.getSharedInstance());
5102
5161
  }
5103
5162
  /**
5104
5163
  * Fetch the configured offerings for this user. You can configure these
5105
5164
  * in the RevenueCat dashboard.
5106
5165
  */
5107
5166
  async getOfferings() {
5108
- const e = this._appUserId, r = await this.backend.getOfferings(e), n = r.offerings.flatMap((s) => s.packages).map((s) => s.platform_product_identifier), i = await this.backend.getProducts(
5167
+ const e = this._appUserId, r = await this.backend.getOfferings(e), n = r.offerings.flatMap((o) => o.packages).map((o) => o.platform_product_identifier), i = await this.backend.getProducts(
5109
5168
  e,
5110
5169
  n
5111
5170
  );
@@ -5144,31 +5203,31 @@ const J = class J {
5144
5203
  throw new Error(
5145
5204
  "Could not generate a mount point for the billing widget"
5146
5205
  );
5147
- const s = i, o = !n, l = this._appUserId;
5206
+ const o = i, s = !n, l = this._appUserId;
5148
5207
  return V.debugLog(
5149
5208
  `Presenting purchase form for package ${e.identifier}`
5150
5209
  ), new Promise((c, a) => {
5151
- new ks({
5152
- target: s,
5210
+ new $o({
5211
+ target: o,
5153
5212
  props: {
5154
5213
  appUserId: l,
5155
5214
  rcPackage: e,
5156
5215
  customerEmail: r,
5157
5216
  onFinished: async () => {
5158
- V.debugLog("Purchase finished"), s.innerHTML = "", c({
5217
+ V.debugLog("Purchase finished"), o.innerHTML = "", c({
5159
5218
  customerInfo: await this._getCustomerInfoForUserId(l)
5160
5219
  });
5161
5220
  },
5162
5221
  onClose: () => {
5163
- s.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new ee(ue.UserCancelledError));
5222
+ o.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new Z(re.UserCancelledError));
5164
5223
  },
5165
5224
  onError: (f) => {
5166
- s.innerHTML = "", a(ee.getForPurchasesFlowError(f));
5225
+ o.innerHTML = "", a(Z.getForPurchasesFlowError(f));
5167
5226
  },
5168
5227
  purchases: this,
5169
5228
  backend: this.backend,
5170
5229
  purchaseOperationHelper: this.purchaseOperationHelper,
5171
- asModal: o
5230
+ asModal: s
5172
5231
  }
5173
5232
  });
5174
5233
  });
@@ -5199,11 +5258,11 @@ const J = class J {
5199
5258
  logMissingProductIds(e, r) {
5200
5259
  const n = {};
5201
5260
  r.forEach(
5202
- (s) => n[s.identifier] = s
5261
+ (o) => n[o.identifier] = o
5203
5262
  );
5204
5263
  const i = [];
5205
- e.forEach((s) => {
5206
- n[s] === void 0 && i.push(s);
5264
+ e.forEach((o) => {
5265
+ n[o] === void 0 && i.push(o);
5207
5266
  }), i.length > 0 && V.debugLog(
5208
5267
  `Could not find product data for product ids:
5209
5268
  ${i.join()}.
@@ -5214,7 +5273,7 @@ const J = class J {
5214
5273
  * @returns Whether the SDK is using a sandbox API Key.
5215
5274
  */
5216
5275
  isSandbox() {
5217
- return Ke(this._API_KEY);
5276
+ return qe(this._API_KEY);
5218
5277
  }
5219
5278
  /**
5220
5279
  * Closes the Purchases instance. You should never have to do this normally.
@@ -5227,17 +5286,17 @@ const J = class J {
5227
5286
  /** @internal */
5228
5287
  async _getCustomerInfoForUserId(e) {
5229
5288
  const r = await this.backend.getCustomerInfo(e);
5230
- return ys(r);
5289
+ return Qo(r);
5231
5290
  }
5232
5291
  };
5233
5292
  /** @internal */
5234
- C(J, "instance");
5293
+ M(J, "instance");
5235
5294
  let It = J;
5236
5295
  export {
5237
- ue as ErrorCode,
5296
+ re as ErrorCode,
5238
5297
  j as LogLevel,
5239
5298
  Ft as PackageType,
5240
5299
  It as Purchases,
5241
- ee as PurchasesError,
5300
+ Z as PurchasesError,
5242
5301
  Vi as UninitializedPurchasesError
5243
5302
  };