@revenuecat/purchases-js 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,57 +1,57 @@
1
- var Kt = Object.defineProperty;
2
- var qt = (t, e, r) => e in t ? Kt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var P = (t, e, r) => (qt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- function jt(t) {
1
+ var Wt = Object.defineProperty;
2
+ var zt = (t, e, r) => e in t ? Wt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var P = (t, e, r) => (zt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ function Xt(t) {
5
5
  return t != null;
6
6
  }
7
- var W = /* @__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))(W || {});
8
- class G {
7
+ var z = /* @__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))(z || {});
8
+ class Y {
9
9
  static setLogLevel(e) {
10
10
  this.logLevel = e;
11
11
  }
12
12
  static log(e, r = this.logLevel) {
13
13
  const n = `[Purchases] ${e}`;
14
- if (!(this.logLevel < r || r === W.Silent))
14
+ if (!(this.logLevel < r || r === z.Silent))
15
15
  switch (r) {
16
- case W.Error:
16
+ case z.Error:
17
17
  console.error(n);
18
18
  break;
19
- case W.Warn:
19
+ case z.Warn:
20
20
  console.warn(n);
21
21
  break;
22
- case W.Info:
22
+ case z.Info:
23
23
  console.info(n);
24
24
  break;
25
- case W.Debug:
25
+ case z.Debug:
26
26
  console.debug(n);
27
27
  break;
28
- case W.Verbose:
28
+ case z.Verbose:
29
29
  console.debug(n);
30
30
  break;
31
31
  }
32
32
  }
33
33
  static errorLog(e) {
34
- this.log(e, W.Error);
34
+ this.log(e, z.Error);
35
35
  }
36
36
  static warnLog(e) {
37
- this.log(e, W.Warn);
37
+ this.log(e, z.Warn);
38
38
  }
39
39
  static infoLog(e) {
40
- this.log(e, W.Info);
40
+ this.log(e, z.Info);
41
41
  }
42
42
  static debugLog(e) {
43
- this.log(e, W.Debug);
43
+ this.log(e, z.Debug);
44
44
  }
45
45
  static verboseLog(e) {
46
- this.log(e, W.Verbose);
46
+ this.log(e, z.Verbose);
47
47
  }
48
48
  }
49
- P(G, "logLevel", W.Silent);
49
+ P(Y, "logLevel", z.Silent);
50
50
  var ne = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(ne || {});
51
51
  function Je(t) {
52
52
  const e = t.match(/^PT?([0-9]+)([MDYW])$/);
53
53
  if (!e || e.length < 3)
54
- return G.errorLog(`Invalid ISO 8601 duration format: ${t}`), null;
54
+ return Y.errorLog(`Invalid ISO 8601 duration format: ${t}`), null;
55
55
  const r = parseInt(e[1]);
56
56
  switch (e[2]) {
57
57
  case "Y":
@@ -79,7 +79,7 @@ function Je(t) {
79
79
  /* Day */
80
80
  };
81
81
  default:
82
- return G.errorLog(`Invalid ISO 8601 unit duration format: ${t}`), null;
82
+ return Y.errorLog(`Invalid ISO 8601 unit duration format: ${t}`), null;
83
83
  }
84
84
  }
85
85
  const Ve = (t, e) => {
@@ -88,7 +88,7 @@ const Ve = (t, e) => {
88
88
  style: "currency",
89
89
  currency: e
90
90
  }).format(r);
91
- }, Jt = (t) => {
91
+ }, Zt = (t) => {
92
92
  const e = t.number;
93
93
  if (e === 1)
94
94
  switch (t.unit) {
@@ -103,7 +103,7 @@ const Ve = (t, e) => {
103
103
  }
104
104
  else
105
105
  return `every ${e} ${t.unit}s`;
106
- }, Vt = (t) => {
106
+ }, en = (t) => {
107
107
  const e = t.number;
108
108
  if (e === 1)
109
109
  switch (t.unit) {
@@ -120,13 +120,13 @@ const Ve = (t, e) => {
120
120
  return `${e} ${t.unit}s`;
121
121
  }, nt = (t) => {
122
122
  const e = Je(t);
123
- return e ? Jt(e) : "unknown";
124
- }, Wt = (t) => {
123
+ return e ? Zt(e) : "unknown";
124
+ }, tn = (t) => {
125
125
  const e = Je(t);
126
- return e ? Vt(e) : "unknown";
126
+ return e ? en(e) : "unknown";
127
127
  };
128
- var zt = /* @__PURE__ */ ((t) => (t.Unknown = "unknown", t.Custom = "custom", t.Lifetime = "$rc_lifetime", t.Annual = "$rc_annual", t.SixMonth = "$rc_six_month", t.ThreeMonth = "$rc_three_month", t.TwoMonth = "$rc_two_month", t.Monthly = "$rc_monthly", t.Weekly = "$rc_weekly", t))(zt || {});
129
- const Xt = (t) => ({
128
+ var nn = /* @__PURE__ */ ((t) => (t.Unknown = "unknown", t.Custom = "custom", t.Lifetime = "$rc_lifetime", t.Annual = "$rc_annual", t.SixMonth = "$rc_six_month", t.ThreeMonth = "$rc_three_month", t.TwoMonth = "$rc_two_month", t.Monthly = "$rc_monthly", t.Weekly = "$rc_weekly", t))(nn || {});
129
+ const rn = (t) => ({
130
130
  amount: t.amount,
131
131
  currency: t.currency,
132
132
  formattedPrice: Ve(t.amount, t.currency)
@@ -136,30 +136,30 @@ const Xt = (t) => ({
136
136
  periodDuration: e,
137
137
  period: e ? Je(e) : null,
138
138
  cycleCount: t.cycle_count,
139
- price: t.price ? Xt(t.price) : null
139
+ price: t.price ? rn(t.price) : null
140
140
  };
141
- }, Zt = (t) => t.base == null ? (G.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
141
+ }, on = (t) => t.base == null ? (Y.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
142
142
  id: t.id,
143
143
  base: rt(t.base),
144
144
  trial: t.trial ? rt(t.trial) : null
145
- }, en = (t, e) => {
145
+ }, sn = (t, e) => {
146
146
  const r = {};
147
147
  if (Object.entries(t.subscription_options).forEach(
148
148
  ([s, l]) => {
149
- const c = Zt(l);
149
+ const c = on(l);
150
150
  c != null && (r[s] = c);
151
151
  }
152
152
  ), Object.keys(r).length === 0)
153
- return G.debugLog(
153
+ return Y.debugLog(
154
154
  `Product ${t.identifier} has no subscription options. Ignoring.`
155
155
  ), null;
156
156
  const n = t.default_subscription_option_id, i = n && n in r ? r[n] : null;
157
157
  if (i == null)
158
- return G.debugLog(
158
+ return Y.debugLog(
159
159
  `Product ${t.identifier} has no default subscription option. Ignoring.`
160
160
  ), null;
161
161
  const o = i.base.price;
162
- return o == null ? (G.debugLog(
162
+ return o == null ? (Y.debugLog(
163
163
  `Product ${t.identifier} default option has no base price. Ignoring.`
164
164
  ), null) : {
165
165
  identifier: t.identifier,
@@ -168,42 +168,49 @@ const Xt = (t) => ({
168
168
  description: t.description,
169
169
  currentPrice: o,
170
170
  normalPeriodDuration: i.base.periodDuration,
171
- presentedOfferingIdentifier: e,
171
+ presentedOfferingIdentifier: e.offeringIdentifier,
172
+ presentedOfferingContext: e,
172
173
  defaultSubscriptionOption: i,
173
174
  subscriptionOptions: r
174
175
  };
175
- }, tn = (t, e, r) => {
176
+ }, ln = (t, e, r) => {
176
177
  const n = r[e.platform_product_identifier];
177
178
  if (n === void 0)
178
179
  return null;
179
- const i = en(n, t);
180
+ const i = sn(n, t);
180
181
  return i === null ? null : {
181
182
  identifier: e.identifier,
182
183
  rcBillingProduct: i,
183
- packageType: nn(e.identifier)
184
+ packageType: an(e.identifier)
184
185
  };
185
- }, it = (t, e) => {
186
- const r = t.packages.map(
187
- (i) => tn(t.identifier, i, e)
188
- ).filter(jt), n = {};
189
- for (const i of r)
190
- i != null && (n[i.identifier] = i);
191
- return r.length == 0 ? null : {
192
- identifier: t.identifier,
193
- serverDescription: t.description,
194
- metadata: t.metadata,
195
- packagesById: n,
196
- availablePackages: r,
197
- lifetime: n.$rc_lifetime ?? null,
198
- annual: n.$rc_annual ?? null,
199
- sixMonth: n.$rc_six_month ?? null,
200
- threeMonth: n.$rc_three_month ?? null,
201
- twoMonth: n.$rc_two_month ?? null,
202
- monthly: n.$rc_monthly ?? null,
203
- weekly: n.$rc_weekly ?? null
186
+ }, cn = (t, e, r, n) => {
187
+ const i = {
188
+ offeringIdentifier: e.identifier,
189
+ targetingContext: t && n ? {
190
+ ruleId: n.rule_id,
191
+ revision: n.revision
192
+ } : null
193
+ }, o = e.packages.map(
194
+ (l) => ln(i, l, r)
195
+ ).filter(Xt), s = {};
196
+ for (const l of o)
197
+ l != null && (s[l.identifier] = l);
198
+ return o.length == 0 ? null : {
199
+ identifier: e.identifier,
200
+ serverDescription: e.description,
201
+ metadata: e.metadata,
202
+ packagesById: s,
203
+ availablePackages: o,
204
+ lifetime: s.$rc_lifetime ?? null,
205
+ annual: s.$rc_annual ?? null,
206
+ sixMonth: s.$rc_six_month ?? null,
207
+ threeMonth: s.$rc_three_month ?? null,
208
+ twoMonth: s.$rc_two_month ?? null,
209
+ monthly: s.$rc_monthly ?? null,
210
+ weekly: s.$rc_weekly ?? null
204
211
  };
205
212
  };
206
- function nn(t) {
213
+ function an(t) {
207
214
  switch (t) {
208
215
  case "$rc_lifetime":
209
216
  return "$rc_lifetime";
@@ -225,7 +232,7 @@ function nn(t) {
225
232
  }
226
233
  function v() {
227
234
  }
228
- function rn(t, e) {
235
+ function un(t, e) {
229
236
  for (const r in e)
230
237
  t[r] = e[r];
231
238
  return (
@@ -233,14 +240,14 @@ function rn(t, e) {
233
240
  t
234
241
  );
235
242
  }
236
- function Bt(t) {
243
+ function $t(t) {
237
244
  return t();
238
245
  }
239
- function ot() {
246
+ function it() {
240
247
  return /* @__PURE__ */ Object.create(null);
241
248
  }
242
249
  function Ie(t) {
243
- t.forEach(Bt);
250
+ t.forEach($t);
244
251
  }
245
252
  function ce(t) {
246
253
  return typeof t == "function";
@@ -252,11 +259,11 @@ let De;
252
259
  function ee(t, e) {
253
260
  return t === e ? !0 : (De || (De = document.createElement("a")), De.href = e, t === De.href);
254
261
  }
255
- function st(t) {
262
+ function ot(t) {
256
263
  return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
257
264
  }
258
- function on(t, e) {
259
- const r = st(t.srcset), n = st(e || "");
265
+ function fn(t, e) {
266
+ const r = ot(t.srcset), n = ot(e || "");
260
267
  return n.length === r.length && n.every(
261
268
  ([i, o], s) => o === r[s][1] && // We need to test both ways because Vite will create an a full URL with
262
269
  // `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
@@ -266,17 +273,17 @@ function on(t, e) {
266
273
  (ee(r[s][0], i) || ee(i, r[s][0]))
267
274
  );
268
275
  }
269
- function sn(t) {
276
+ function dn(t) {
270
277
  return Object.keys(t).length === 0;
271
278
  }
272
279
  function q(t, e, r, n) {
273
280
  if (t) {
274
- const i = Dt(t, e, r, n);
281
+ const i = Bt(t, e, r, n);
275
282
  return t[0](i);
276
283
  }
277
284
  }
278
- function Dt(t, e, r, n) {
279
- return t[1] && n ? rn(r.ctx.slice(), t[1](n(e))) : r.ctx;
285
+ function Bt(t, e, r, n) {
286
+ return t[1] && n ? un(r.ctx.slice(), t[1](n(e))) : r.ctx;
280
287
  }
281
288
  function j(t, e, r, n) {
282
289
  if (t[2] && n) {
@@ -295,7 +302,7 @@ function j(t, e, r, n) {
295
302
  }
296
303
  function J(t, e, r, n, i, o) {
297
304
  if (i) {
298
- const s = Dt(e, r, n, o);
305
+ const s = Bt(e, r, n, o);
299
306
  t.p(s, i);
300
307
  }
301
308
  }
@@ -314,14 +321,14 @@ function Ae(t) {
314
321
  function M(t, e) {
315
322
  t.appendChild(e);
316
323
  }
317
- function x(t, e, r) {
318
- const n = ln(t);
324
+ function F(t, e, r) {
325
+ const n = mn(t);
319
326
  if (!n.getElementById(e)) {
320
327
  const i = k("style");
321
- i.id = e, i.textContent = r, cn(n, i);
328
+ i.id = e, i.textContent = r, gn(n, i);
322
329
  }
323
330
  }
324
- function ln(t) {
331
+ function mn(t) {
325
332
  if (!t)
326
333
  return document;
327
334
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
@@ -331,7 +338,7 @@ function ln(t) {
331
338
  e
332
339
  ) : t.ownerDocument;
333
340
  }
334
- function cn(t, e) {
341
+ function gn(t, e) {
335
342
  return M(
336
343
  /** @type {Document} */
337
344
  t.head || t,
@@ -359,7 +366,7 @@ function te() {
359
366
  function we(t, e, r, n) {
360
367
  return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
361
368
  }
362
- function Ct(t) {
369
+ function Dt(t) {
363
370
  return function(e) {
364
371
  return e.preventDefault(), t.call(this, e);
365
372
  };
@@ -367,35 +374,35 @@ function Ct(t) {
367
374
  function _(t, e, r) {
368
375
  r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
369
376
  }
370
- const an = ["width", "height"];
371
- function un(t, e) {
377
+ const pn = ["width", "height"];
378
+ function _n(t, e) {
372
379
  const r = Object.getOwnPropertyDescriptors(t.__proto__);
373
380
  for (const n in e)
374
- 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 && an.indexOf(n) === -1 ? t[n] = e[n] : _(t, n, e[n]);
381
+ 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 && pn.indexOf(n) === -1 ? t[n] = e[n] : _(t, n, e[n]);
375
382
  }
376
- function fn(t, e) {
383
+ function hn(t, e) {
377
384
  Object.keys(e).forEach((r) => {
378
- dn(t, r, e[r]);
385
+ An(t, r, e[r]);
379
386
  });
380
387
  }
381
- function dn(t, e, r) {
388
+ function An(t, e, r) {
382
389
  const n = e.toLowerCase();
383
390
  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);
384
391
  }
385
- function mn(t) {
386
- return /-/.test(t) ? fn : un;
392
+ function En(t) {
393
+ return /-/.test(t) ? hn : _n;
387
394
  }
388
- function gn(t) {
395
+ function bn(t) {
389
396
  return Array.from(t.childNodes);
390
397
  }
391
398
  function ae(t, e) {
392
399
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
393
400
  e);
394
401
  }
395
- function lt(t, e) {
402
+ function st(t, e) {
396
403
  t.value = e ?? "";
397
404
  }
398
- function pn(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
405
+ function In(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
399
406
  return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
400
407
  }
401
408
  let Ee;
@@ -407,18 +414,18 @@ function ke() {
407
414
  throw new Error("Function called outside component initialization");
408
415
  return Ee;
409
416
  }
410
- function _n(t) {
417
+ function wn(t) {
411
418
  ke().$$.before_update.push(t);
412
419
  }
413
420
  function Se(t) {
414
421
  ke().$$.on_mount.push(t);
415
422
  }
416
- function hn() {
423
+ function kn() {
417
424
  const t = ke();
418
425
  return (e, r, { cancelable: n = !1 } = {}) => {
419
426
  const i = t.$$.callbacks[e];
420
427
  if (i) {
421
- const o = pn(
428
+ const o = In(
422
429
  /** @type {string} */
423
430
  e,
424
431
  r,
@@ -431,32 +438,32 @@ function hn() {
431
438
  return !0;
432
439
  };
433
440
  }
434
- function An(t, e) {
441
+ function yn(t, e) {
435
442
  return ke().$$.context.set(t, e), e;
436
443
  }
437
- function En(t) {
444
+ function vn(t) {
438
445
  return ke().$$.context.get(t);
439
446
  }
440
- function Pt(t, e) {
447
+ function Ct(t, e) {
441
448
  const r = t.$$.callbacks[e.type];
442
449
  r && r.slice().forEach((n) => n.call(this, e));
443
450
  }
444
- const se = [], Ue = [];
451
+ const se = [], Re = [];
445
452
  let le = [];
446
- const Ye = [], bn = /* @__PURE__ */ Promise.resolve();
453
+ const Ge = [], $n = /* @__PURE__ */ Promise.resolve();
447
454
  let He = !1;
448
- function In() {
449
- He || (He = !0, bn.then(Mt));
455
+ function Bn() {
456
+ He || (He = !0, $n.then(Pt));
450
457
  }
451
458
  function Ke(t) {
452
459
  le.push(t);
453
460
  }
454
- function wn(t) {
455
- Ye.push(t);
461
+ function Dn(t) {
462
+ Ge.push(t);
456
463
  }
457
- const xe = /* @__PURE__ */ new Set();
464
+ const Fe = /* @__PURE__ */ new Set();
458
465
  let ie = 0;
459
- function Mt() {
466
+ function Pt() {
460
467
  if (ie !== 0)
461
468
  return;
462
469
  const t = Ee;
@@ -464,31 +471,31 @@ function Mt() {
464
471
  try {
465
472
  for (; ie < se.length; ) {
466
473
  const e = se[ie];
467
- ie++, _e(e), kn(e.$$);
474
+ ie++, _e(e), Cn(e.$$);
468
475
  }
469
476
  } catch (e) {
470
477
  throw se.length = 0, ie = 0, e;
471
478
  }
472
- for (_e(null), se.length = 0, ie = 0; Ue.length; )
473
- Ue.pop()();
479
+ for (_e(null), se.length = 0, ie = 0; Re.length; )
480
+ Re.pop()();
474
481
  for (let e = 0; e < le.length; e += 1) {
475
482
  const r = le[e];
476
- xe.has(r) || (xe.add(r), r());
483
+ Fe.has(r) || (Fe.add(r), r());
477
484
  }
478
485
  le.length = 0;
479
486
  } while (se.length);
480
- for (; Ye.length; )
481
- Ye.pop()();
482
- He = !1, xe.clear(), _e(t);
487
+ for (; Ge.length; )
488
+ Ge.pop()();
489
+ He = !1, Fe.clear(), _e(t);
483
490
  }
484
- function kn(t) {
491
+ function Cn(t) {
485
492
  if (t.fragment !== null) {
486
493
  t.update(), Ie(t.before_update);
487
494
  const e = t.dirty;
488
495
  t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ke);
489
496
  }
490
497
  }
491
- function yn(t) {
498
+ function Pn(t) {
492
499
  const e = [], r = [];
493
500
  le.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), le = e;
494
501
  }
@@ -518,7 +525,7 @@ function d(t, e, r, n) {
518
525
  } else
519
526
  n && n();
520
527
  }
521
- function vn(t, e, r) {
528
+ function Mn(t, e, r) {
522
529
  const n = t.$$.props[e];
523
530
  n !== void 0 && (t.$$.bound[n] = r, r(t.$$.ctx[n]));
524
531
  }
@@ -528,16 +535,16 @@ function w(t) {
528
535
  function b(t, e, r) {
529
536
  const { fragment: n, after_update: i } = t.$$;
530
537
  n && n.m(e, r), Ke(() => {
531
- const o = t.$$.on_mount.map(Bt).filter(ce);
538
+ const o = t.$$.on_mount.map($t).filter(ce);
532
539
  t.$$.on_destroy ? t.$$.on_destroy.push(...o) : Ie(o), t.$$.on_mount = [];
533
540
  }), i.forEach(Ke);
534
541
  }
535
542
  function I(t, e) {
536
543
  const r = t.$$;
537
- r.fragment !== null && (yn(r.after_update), Ie(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
544
+ r.fragment !== null && (Pn(r.after_update), Ie(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
538
545
  }
539
- function $n(t, e) {
540
- t.$$.dirty[0] === -1 && (se.push(t), In(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
546
+ function Qn(t, e) {
547
+ t.$$.dirty[0] === -1 && (se.push(t), Bn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
541
548
  }
542
549
  function N(t, e, r, n, i, o, s = null, l = [-1]) {
543
550
  const c = Ee;
@@ -549,7 +556,7 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
549
556
  props: o,
550
557
  update: v,
551
558
  not_equal: i,
552
- bound: ot(),
559
+ bound: it(),
553
560
  // lifecycle
554
561
  on_mount: [],
555
562
  on_destroy: [],
@@ -558,7 +565,7 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
558
565
  after_update: [],
559
566
  context: new Map(e.context || (c ? c.$$.context : [])),
560
567
  // everything else
561
- callbacks: ot(),
568
+ callbacks: it(),
562
569
  dirty: l,
563
570
  skip_bound: !1,
564
571
  root: e.target || c.$$.root
@@ -567,18 +574,18 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
567
574
  let u = !1;
568
575
  if (a.ctx = r ? r(t, e.props || {}, (m, h, ...y) => {
569
576
  const E = y.length ? y[0] : h;
570
- return a.ctx && i(a.ctx[m], a.ctx[m] = E) && (!a.skip_bound && a.bound[m] && a.bound[m](E), u && $n(t, m)), h;
577
+ return a.ctx && i(a.ctx[m], a.ctx[m] = E) && (!a.skip_bound && a.bound[m] && a.bound[m](E), u && Qn(t, m)), h;
571
578
  }) : [], a.update(), u = !0, Ie(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
572
579
  if (e.hydrate) {
573
- const m = gn(e.target);
580
+ const m = bn(e.target);
574
581
  a.fragment && a.fragment.l(m), m.forEach(g);
575
582
  } else
576
583
  a.fragment && a.fragment.c();
577
- e.intro && f(t.$$.fragment), b(t, e.target, e.anchor), Mt();
584
+ e.intro && f(t.$$.fragment), b(t, e.target, e.anchor), Pt();
578
585
  }
579
586
  _e(c);
580
587
  }
581
- class U {
588
+ class R {
582
589
  constructor() {
583
590
  /**
584
591
  * ### PRIVATE API
@@ -621,15 +628,15 @@ class U {
621
628
  * @returns {void}
622
629
  */
623
630
  $set(e) {
624
- this.$$set && !sn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
631
+ this.$$set && !dn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
625
632
  }
626
633
  }
627
- const Bn = "4";
628
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
629
- function Dn(t) {
630
- x(t, "svelte-1bzqb13", ".rcb-modal-section.svelte-1bzqb13{padding:8px 0px;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}");
634
+ const Tn = "4";
635
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tn);
636
+ function Nn(t) {
637
+ F(t, "svelte-1bzqb13", ".rcb-modal-section.svelte-1bzqb13{padding:8px 0px;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}");
631
638
  }
632
- function Fe(t) {
639
+ function xe(t) {
633
640
  let e, r;
634
641
  const n = (
635
642
  /*#slots*/
@@ -646,7 +653,7 @@ function Fe(t) {
646
653
  e = k(
647
654
  /*as*/
648
655
  t[0]
649
- ), i && i.c(), mn(
656
+ ), i && i.c(), En(
650
657
  /*as*/
651
658
  t[0]
652
659
  )(e, {
@@ -688,13 +695,13 @@ function Fe(t) {
688
695
  }
689
696
  };
690
697
  }
691
- function Cn(t) {
698
+ function Rn(t) {
692
699
  let e = (
693
700
  /*as*/
694
701
  t[0]
695
702
  ), r, n, i = (
696
703
  /*as*/
697
- t[0] && Fe(t)
704
+ t[0] && xe(t)
698
705
  );
699
706
  return {
700
707
  c() {
@@ -709,8 +716,8 @@ function Cn(t) {
709
716
  e,
710
717
  /*as*/
711
718
  o[0]
712
- ) ? (i.d(1), i = Fe(o), e = /*as*/
713
- o[0], i.c(), i.m(r.parentNode, r)) : i.p(o, s) : (i = Fe(o), e = /*as*/
719
+ ) ? (i.d(1), i = xe(o), e = /*as*/
720
+ o[0], i.c(), i.m(r.parentNode, r)) : i.p(o, s) : (i = xe(o), e = /*as*/
714
721
  o[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
715
722
  o[0]);
716
723
  },
@@ -725,22 +732,22 @@ function Cn(t) {
725
732
  }
726
733
  };
727
734
  }
728
- function Pn(t, e, r) {
735
+ function Un(t, e, r) {
729
736
  let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
730
737
  return t.$$set = (s) => {
731
738
  "as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
732
739
  }, [o, i, n];
733
740
  }
734
- class ue extends U {
741
+ class ue extends R {
735
742
  constructor(e) {
736
- super(), N(this, e, Pn, Cn, T, { as: 0 }, Dn);
743
+ super(), N(this, e, Un, Rn, T, { as: 0 }, Nn);
737
744
  }
738
745
  }
739
- function Mn(t) {
740
- x(t, "svelte-gf0gr5", ".rcb-pricing-info.svelte-gf0gr5{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-gf0gr5{font-size:24px;margin:12px 0px}.rcb-product-price-after-trial.svelte-gf0gr5{margin-bottom:12px}.rcb-product-details.svelte-gf0gr5{opacity:0.6;list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-gf0gr5{margin-top:48px}}");
746
+ function Sn(t) {
747
+ F(t, "svelte-gf0gr5", ".rcb-pricing-info.svelte-gf0gr5{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-gf0gr5{font-size:24px;margin:12px 0px}.rcb-product-price-after-trial.svelte-gf0gr5{margin-bottom:12px}.rcb-product-details.svelte-gf0gr5{opacity:0.6;list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-gf0gr5{margin-top:48px}}");
741
748
  }
742
- function Qn(t) {
743
- let e = Wt(
749
+ function On(t) {
750
+ let e = tn(
744
751
  /*trial*/
745
752
  t[1].periodDuration
746
753
  ) + "", r, n;
@@ -757,7 +764,7 @@ function Qn(t) {
757
764
  }
758
765
  };
759
766
  }
760
- function Tn(t) {
767
+ function Ln(t) {
761
768
  let e = (
762
769
  /*basePrice*/
763
770
  (t[2].currency || "") + ""
@@ -780,7 +787,7 @@ function Tn(t) {
780
787
  }
781
788
  };
782
789
  }
783
- function Nn(t) {
790
+ function Fn(t) {
784
791
  let e;
785
792
  return {
786
793
  c() {
@@ -803,7 +810,7 @@ function Nn(t) {
803
810
  }
804
811
  };
805
812
  }
806
- function ct(t) {
813
+ function lt(t) {
807
814
  let e, r, n = nt(
808
815
  /*productDetails*/
809
816
  t[0].normalPeriodDuration
@@ -827,53 +834,53 @@ function ct(t) {
827
834
  }
828
835
  };
829
836
  }
830
- function Un(t) {
837
+ function xn(t) {
831
838
  var C, ve;
832
839
  let e, r, n = (
833
840
  /*productDetails*/
834
841
  t[0].displayName + ""
835
842
  ), i, o, s, l, c, a, u, m, h, y, E, B = (
836
843
  /*trial*/
837
- ((C = t[1]) == null ? void 0 : C.periodDuration) && Qn(t)
844
+ ((C = t[1]) == null ? void 0 : C.periodDuration) && On(t)
838
845
  ), A = !/*trial*/
839
846
  ((ve = t[1]) != null && ve.periodDuration) && /*basePrice*/
840
- t[2] && Tn(t), $ = (
847
+ t[2] && Ln(t), $ = (
841
848
  /*trial*/
842
849
  t[1] && /*basePrice*/
843
- t[2] && Nn(t)
844
- ), R = (
850
+ t[2] && Fn(t)
851
+ ), U = (
845
852
  /*productDetails*/
846
- t[0].normalPeriodDuration && ct(t)
853
+ t[0].normalPeriodDuration && lt(t)
847
854
  );
848
855
  return {
849
856
  c() {
850
- e = k("div"), r = k("span"), i = L(n), o = Q(), s = k("span"), B && B.c(), l = Q(), A && A.c(), c = Q(), $ && $.c(), a = Q(), u = k("ul"), R && R.c(), m = Q(), h = k("li"), h.textContent = "Continues until canceled", y = Q(), E = k("li"), E.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-gf0gr5"), _(u, "class", "rcb-product-details svelte-gf0gr5"), _(e, "class", "rcb-pricing-info svelte-gf0gr5");
857
+ e = k("div"), r = k("span"), i = L(n), o = Q(), s = k("span"), B && B.c(), l = Q(), A && A.c(), c = Q(), $ && $.c(), a = Q(), u = k("ul"), U && U.c(), m = Q(), h = k("li"), h.textContent = "Continues until canceled", y = Q(), E = k("li"), E.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-gf0gr5"), _(u, "class", "rcb-product-details svelte-gf0gr5"), _(e, "class", "rcb-pricing-info svelte-gf0gr5");
851
858
  },
852
- m(F, S) {
853
- p(F, e, S), M(e, r), M(r, i), M(e, o), M(e, s), B && B.m(s, null), M(s, l), A && A.m(s, null), M(e, c), $ && $.m(e, null), M(e, a), M(e, u), R && R.m(u, null), M(u, m), M(u, h), M(u, y), M(u, E);
859
+ m(x, S) {
860
+ p(x, e, S), M(e, r), M(r, i), M(e, o), M(e, s), B && B.m(s, null), M(s, l), A && A.m(s, null), M(e, c), $ && $.m(e, null), M(e, a), M(e, u), U && U.m(u, null), M(u, m), M(u, h), M(u, y), M(u, E);
854
861
  },
855
- p(F, S) {
862
+ p(x, S) {
856
863
  var $e, Be;
857
864
  S & /*productDetails*/
858
865
  1 && n !== (n = /*productDetails*/
859
- F[0].displayName + "") && ae(i, n), /*trial*/
860
- ($e = F[1]) != null && $e.periodDuration && B.p(F, S), !/*trial*/
861
- ((Be = F[1]) != null && Be.periodDuration) && /*basePrice*/
862
- F[2] && A.p(F, S), /*trial*/
863
- F[1] && /*basePrice*/
864
- F[2] && $.p(F, S), /*productDetails*/
865
- F[0].normalPeriodDuration ? R ? R.p(F, S) : (R = ct(F), R.c(), R.m(u, m)) : R && (R.d(1), R = null);
866
+ x[0].displayName + "") && ae(i, n), /*trial*/
867
+ ($e = x[1]) != null && $e.periodDuration && B.p(x, S), !/*trial*/
868
+ ((Be = x[1]) != null && Be.periodDuration) && /*basePrice*/
869
+ x[2] && A.p(x, S), /*trial*/
870
+ x[1] && /*basePrice*/
871
+ x[2] && $.p(x, S), /*productDetails*/
872
+ x[0].normalPeriodDuration ? U ? U.p(x, S) : (U = lt(x), U.c(), U.m(u, m)) : U && (U.d(1), U = null);
866
873
  },
867
- d(F) {
868
- F && g(e), B && B.d(), A && A.d(), $ && $.d(), R && R.d();
874
+ d(x) {
875
+ x && g(e), B && B.d(), A && A.d(), $ && $.d(), U && U.d();
869
876
  }
870
877
  };
871
878
  }
872
- function Rn(t) {
879
+ function Yn(t) {
873
880
  let e, r;
874
881
  return e = new ue({
875
882
  props: {
876
- $$slots: { default: [Un] },
883
+ $$slots: { default: [xn] },
877
884
  $$scope: { ctx: t }
878
885
  }
879
886
  }), {
@@ -899,7 +906,7 @@ function Rn(t) {
899
906
  }
900
907
  };
901
908
  }
902
- function Sn(t, e, r) {
909
+ function Gn(t, e, r) {
903
910
  var c;
904
911
  let { productDetails: n } = e, { purchaseOption: i } = e;
905
912
  const o = i, s = o == null ? void 0 : o.trial, l = (c = o == null ? void 0 : o.base) == null ? void 0 : c.price;
@@ -907,17 +914,17 @@ function Sn(t, e, r) {
907
914
  "productDetails" in a && r(0, n = a.productDetails), "purchaseOption" in a && r(3, i = a.purchaseOption);
908
915
  }, [n, s, l, i];
909
916
  }
910
- class Qt extends U {
917
+ class Mt extends R {
911
918
  constructor(e) {
912
- super(), N(this, e, Sn, Rn, T, { productDetails: 0, purchaseOption: 3 }, Mn);
919
+ super(), N(this, e, Gn, Yn, T, { productDetails: 0, purchaseOption: 3 }, Sn);
913
920
  }
914
921
  }
915
- const On = "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+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAACKcAAwgcSDDAAwcFEypcSNDAAYYQA2DZstCAAYZOKCqM8uNJxYcKa3DYsVBKECBYFFpU+MTDhiIMkQxBohJkwRYaUkDEEiQIlYQrCyL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QKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
916
- function Ln(t) {
922
+ const Hn = "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+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAACKcAAwgcSDDAAwcFEypcSNDAAYYQA2DZstCAAYZOKCqM8uNJxYcKa3DYsVBKECBYFFpU+MTDhiIMkQxBohJkwRYaUkDEEiQIlYQrCyLZ0MFJRCdAkgC1OZBEBxgRJRIBAqXgwYI8NoCwEjWAkyFDoorQ4KOrQCRLoqbQuZCKR7NdqzD5MaQKXIhZmAwBIqTJ3YVYogQZ8oMJ178Kk/A1YhfxQiRHjBYMCAAh+QQFBQABACwNAAMAIAAQAAAInQADCBxIMECGDAUTKlxI8EEEhhADcGEI4QFDJQy5ZJmo0OFCFBFkLNzCRQvHghEgKHQi4cEPhhuzdHyYUMQDDxC5kNSSsGL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bJFJXkbOukStuAAAAh+QQFBAABACwDAAMAFwAiAAAItQADCBxIsKDBGjQMKlyo4sXCgUIetmDxMAAJABsWrnD4UAaAAUkUumhRMcACAQ4UNiwpRAAAGwYnlgyAAQACgxtnPiEAoERBhDMDjBBAoCINHw8ZNHjI5EGEDUyCFtSyIoJVE1KkEnwCIsIDCjK0EgSSAQIED2IHYqkxQUTat3Djyp1b0UbDjXdhBqUxcWTfhHQDCx5MuCIXLVy2vOWShTEXsVsOJz6stbHlx1ojI1b8tvHbgAAAIfkEBQQAAQAsAwADABcAFwAACJQAAwgcSLCgwRIkDCpcqIHDwoFHHm7Y8DCACgMJFWroUBGHgQNMFE6sGGDCAQsaHVY8csAAD4MjSX4w8MDgRpIBoCQwsKIgQpwBUBxIULEHkYcUUC580tDEE6AGbXSYKKMKVIJSUnDQIGIHl6sQS0w8AZagjxAsyqpdy7at24pJfgwBMkQukCRQjQQBIgTIXiFGoAYEACH5BAUFAAEALAMAAwAXABcAAAiVAAMIHEiwoMEMGQwqXPggwsKBTLQshPDgYYAaD1owdPjQB4QIThRGgGAxwIYIIBQ2LMlkJBCDFEsGOPEgA5aCK0tKmQChRkGEMgPIiDDhoRYjTR56CPGwiooXN6oENQikhYsWP65MJXglx4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
923
+ function Kn(t) {
917
924
  let e, r;
918
925
  return {
919
926
  c() {
920
- e = k("img"), ee(e.src, r = On) || _(e, "src", r), _(e, "alt", "spinner");
927
+ e = k("img"), ee(e.src, r = Hn) || _(e, "src", r), _(e, "alt", "spinner");
921
928
  },
922
929
  m(n, i) {
923
930
  p(n, e, i);
@@ -930,17 +937,17 @@ function Ln(t) {
930
937
  }
931
938
  };
932
939
  }
933
- class xn extends U {
940
+ class qn extends R {
934
941
  constructor(e) {
935
- super(), N(this, e, null, Ln, T, {});
942
+ super(), N(this, e, null, Kn, T, {});
936
943
  }
937
944
  }
938
- function Fn(t) {
939
- x(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
945
+ function jn(t) {
946
+ F(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
940
947
  }
941
- function Gn(t) {
948
+ function Jn(t) {
942
949
  let e, r, n;
943
- return r = new xn({}), {
950
+ return r = new qn({}), {
944
951
  c() {
945
952
  e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-loader svelte-1mxx341");
946
953
  },
@@ -959,12 +966,12 @@ function Gn(t) {
959
966
  }
960
967
  };
961
968
  }
962
- class We extends U {
969
+ class We extends R {
963
970
  constructor(e) {
964
- super(), N(this, e, null, Gn, T, {}, Fn);
971
+ super(), N(this, e, null, Jn, T, {}, jn);
965
972
  }
966
973
  }
967
- var Z = /* @__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[t.InvalidEmailError = 38] = "InvalidEmailError", t))(Z || {});
974
+ var X = /* @__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[t.InvalidEmailError = 38] = "InvalidEmailError", t))(X || {});
968
975
  class he {
969
976
  static getPublicMessage(e) {
970
977
  switch (e) {
@@ -1071,7 +1078,7 @@ class he {
1071
1078
  }
1072
1079
  }
1073
1080
  static convertCodeToBackendErrorCode(e) {
1074
- return e in Tt ? e : null;
1081
+ return e in Qt ? e : null;
1075
1082
  }
1076
1083
  static convertPurchaseFlowErrorCodeToErrorCode(e) {
1077
1084
  switch (e) {
@@ -1092,17 +1099,17 @@ class he {
1092
1099
  }
1093
1100
  }
1094
1101
  }
1095
- var Tt = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendInvalidEmail = 7012] = "BackendInvalidEmail", 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[t.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t[t.BackendNoMXRecordsFound = 7834] = "BackendNoMXRecordsFound", t))(Tt || {});
1096
- class z extends Error {
1102
+ var Qt = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendInvalidEmail = 7012] = "BackendInvalidEmail", 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[t.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t[t.BackendNoMXRecordsFound = 7834] = "BackendNoMXRecordsFound", t))(Qt || {});
1103
+ class W extends Error {
1097
1104
  constructor(r, n, i) {
1098
1105
  super(n);
1099
- P(this, "toString", () => `PurchasesError(code: ${Z[this.errorCode]}, message: ${this.message})`);
1106
+ P(this, "toString", () => `PurchasesError(code: ${X[this.errorCode]}, message: ${this.message})`);
1100
1107
  this.errorCode = r, this.underlyingErrorMessage = i;
1101
1108
  }
1102
1109
  /** @internal */
1103
1110
  static getForBackendError(r, n) {
1104
1111
  const i = he.getErrorCodeForBackendErrorCode(r);
1105
- return new z(
1112
+ return new W(
1106
1113
  i,
1107
1114
  he.getPublicMessage(i),
1108
1115
  n
@@ -1110,7 +1117,7 @@ class z extends Error {
1110
1117
  }
1111
1118
  /** @internal */
1112
1119
  static getForPurchasesFlowError(r) {
1113
- return new z(
1120
+ return new W(
1114
1121
  he.convertPurchaseFlowErrorCodeToErrorCode(
1115
1122
  r.errorCode
1116
1123
  ),
@@ -1119,26 +1126,26 @@ class z extends Error {
1119
1126
  );
1120
1127
  }
1121
1128
  }
1122
- class Yn extends Error {
1129
+ class Vn extends Error {
1123
1130
  constructor() {
1124
1131
  super("Purchases must be configured before calling getInstance");
1125
1132
  }
1126
1133
  }
1127
1134
  var ge = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(ge || {}), Te = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Te || {}), O = /* @__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[t.AlreadySubscribedError = 6] = "AlreadySubscribedError", t))(O || {});
1128
- class Y extends Error {
1135
+ class G extends Error {
1129
1136
  constructor(e, r, n) {
1130
1137
  super(r), this.errorCode = e, this.underlyingErrorMessage = n;
1131
1138
  }
1132
1139
  static fromPurchasesError(e, r) {
1133
1140
  let n;
1134
- return e.errorCode === Z.ProductAlreadyPurchasedError ? n = 6 : e.errorCode === Z.InvalidEmailError ? n = 5 : n = r, new Y(
1141
+ return e.errorCode === X.ProductAlreadyPurchasedError ? n = 6 : e.errorCode === X.InvalidEmailError ? n = 5 : n = r, new G(
1135
1142
  n,
1136
1143
  e.message,
1137
1144
  e.underlyingErrorMessage
1138
1145
  );
1139
1146
  }
1140
1147
  }
1141
- class Hn {
1148
+ class Wn {
1142
1149
  constructor(e, r = 10) {
1143
1150
  P(this, "operationSessionId", null);
1144
1151
  P(this, "backend");
@@ -1157,15 +1164,15 @@ class Hn {
1157
1164
  );
1158
1165
  return this.operationSessionId = s.operation_session_id, s;
1159
1166
  } catch (s) {
1160
- if (s instanceof z)
1161
- throw Y.fromPurchasesError(
1167
+ if (s instanceof W)
1168
+ throw G.fromPurchasesError(
1162
1169
  s,
1163
1170
  0
1164
1171
  /* ErrorSettingUpPurchase */
1165
1172
  );
1166
1173
  {
1167
1174
  const l = "Unknown error starting purchase: " + String(s);
1168
- throw G.errorLog(l), new Y(
1175
+ throw Y.errorLog(l), new G(
1169
1176
  2,
1170
1177
  l
1171
1178
  );
@@ -1175,7 +1182,7 @@ class Hn {
1175
1182
  async pollCurrentPurchaseForCompletion() {
1176
1183
  const e = this.operationSessionId;
1177
1184
  if (!e)
1178
- throw new Y(
1185
+ throw new G(
1179
1186
  0,
1180
1187
  "No purchase in progress"
1181
1188
  );
@@ -1183,7 +1190,7 @@ class Hn {
1183
1190
  const i = (o = 1) => {
1184
1191
  if (o > this.maxNumberAttempts) {
1185
1192
  this.clearPurchaseInProgress(), n(
1186
- new Y(
1193
+ new G(
1187
1194
  2,
1188
1195
  "Max attempts reached trying to get successful purchase status"
1189
1196
  )
@@ -1209,7 +1216,7 @@ class Hn {
1209
1216
  );
1210
1217
  }
1211
1218
  }).catch((s) => {
1212
- const l = Y.fromPurchasesError(
1219
+ const l = G.fromPurchasesError(
1213
1220
  s,
1214
1221
  3
1215
1222
  /* NetworkError */
@@ -1226,7 +1233,7 @@ class Hn {
1226
1233
  handlePaymentError(e, r) {
1227
1234
  if (e == null) {
1228
1235
  r(
1229
- new Y(
1236
+ new G(
1230
1237
  2,
1231
1238
  "Got an error status but error field is empty."
1232
1239
  )
@@ -1236,7 +1243,7 @@ class Hn {
1236
1243
  switch (e.code) {
1237
1244
  case Te.SetupIntentCreationFailed:
1238
1245
  r(
1239
- new Y(
1246
+ new G(
1240
1247
  0,
1241
1248
  "Setup intent creation failed"
1242
1249
  )
@@ -1244,7 +1251,7 @@ class Hn {
1244
1251
  return;
1245
1252
  case Te.PaymentMethodCreationFailed:
1246
1253
  r(
1247
- new Y(
1254
+ new G(
1248
1255
  0,
1249
1256
  "Payment method creation failed"
1250
1257
  )
@@ -1252,7 +1259,7 @@ class Hn {
1252
1259
  return;
1253
1260
  case Te.PaymentChargeFailed:
1254
1261
  r(
1255
- new Y(
1262
+ new G(
1256
1263
  1,
1257
1264
  "Payment charge failed"
1258
1265
  )
@@ -1261,15 +1268,15 @@ class Hn {
1261
1268
  }
1262
1269
  }
1263
1270
  }
1264
- const Kn = "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";
1265
- function qn(t) {
1266
- x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
1271
+ const zn = "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";
1272
+ function Xn(t) {
1273
+ F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
1267
1274
  }
1268
- function jn(t) {
1275
+ function Zn(t) {
1269
1276
  let e, r;
1270
1277
  return {
1271
1278
  c() {
1272
- e = k("img"), ee(e.src, r = Kn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
1279
+ e = k("img"), ee(e.src, r = zn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
1273
1280
  },
1274
1281
  m(n, i) {
1275
1282
  p(n, e, i);
@@ -1282,15 +1289,15 @@ function jn(t) {
1282
1289
  }
1283
1290
  };
1284
1291
  }
1285
- class Jn extends U {
1292
+ class er extends R {
1286
1293
  constructor(e) {
1287
- super(), N(this, e, null, jn, T, {}, qn);
1294
+ super(), N(this, e, null, Zn, T, {}, Xn);
1288
1295
  }
1289
1296
  }
1290
- function Vn(t) {
1291
- x(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)}");
1297
+ function tr(t) {
1298
+ F(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)}");
1292
1299
  }
1293
- function Wn(t) {
1300
+ function nr(t) {
1294
1301
  let e, r, n, i, o;
1295
1302
  const s = (
1296
1303
  /*#slots*/
@@ -1352,24 +1359,24 @@ function Wn(t) {
1352
1359
  }
1353
1360
  };
1354
1361
  }
1355
- function zn(t, e, r) {
1362
+ function rr(t, e, r) {
1356
1363
  let { $$slots: n = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e;
1357
1364
  function l(c) {
1358
- Pt.call(this, t, c);
1365
+ Ct.call(this, t, c);
1359
1366
  }
1360
1367
  return t.$$set = (c) => {
1361
1368
  "intent" in c && r(0, o = c.intent), "disabled" in c && r(1, s = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
1362
1369
  }, [o, s, i, n, l];
1363
1370
  }
1364
- class be extends U {
1371
+ class be extends R {
1365
1372
  constructor(e) {
1366
- super(), N(this, e, zn, Wn, T, { intent: 0, disabled: 1 }, Vn);
1373
+ super(), N(this, e, rr, nr, T, { intent: 0, disabled: 1 }, tr);
1367
1374
  }
1368
1375
  }
1369
- function Xn(t) {
1370
- x(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1376
+ function ir(t) {
1377
+ F(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1371
1378
  }
1372
- function Zn(t) {
1379
+ function or(t) {
1373
1380
  let e, r;
1374
1381
  const n = (
1375
1382
  /*#slots*/
@@ -1420,21 +1427,21 @@ function Zn(t) {
1420
1427
  }
1421
1428
  };
1422
1429
  }
1423
- function er(t, e, r) {
1430
+ function sr(t, e, r) {
1424
1431
  let { $$slots: n = {}, $$scope: i } = e;
1425
1432
  return t.$$set = (o) => {
1426
1433
  "$$scope" in o && r(0, i = o.$$scope);
1427
1434
  }, [i, n];
1428
1435
  }
1429
- class ze extends U {
1436
+ class ze extends R {
1430
1437
  constructor(e) {
1431
- super(), N(this, e, er, Zn, T, {}, Xn);
1438
+ super(), N(this, e, sr, or, T, {}, ir);
1432
1439
  }
1433
1440
  }
1434
- function tr(t) {
1435
- x(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
1441
+ function lr(t) {
1442
+ F(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
1436
1443
  }
1437
- function nr(t) {
1444
+ function cr(t) {
1438
1445
  let e, r, n;
1439
1446
  const i = (
1440
1447
  /*#slots*/
@@ -1488,26 +1495,26 @@ function nr(t) {
1488
1495
  }
1489
1496
  };
1490
1497
  }
1491
- function rr(t, e, r) {
1498
+ function ar(t, e, r) {
1492
1499
  let { $$slots: n = {}, $$scope: i } = e, { gutter: o = "8px" } = e;
1493
1500
  return t.$$set = (s) => {
1494
1501
  "gutter" in s && r(0, o = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
1495
1502
  }, [o, i, n];
1496
1503
  }
1497
- class ye extends U {
1504
+ class ye extends R {
1498
1505
  constructor(e) {
1499
- super(), N(this, e, rr, nr, T, { gutter: 0 }, tr);
1506
+ super(), N(this, e, ar, cr, T, { gutter: 0 }, lr);
1500
1507
  }
1501
1508
  }
1502
- const ir = "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";
1503
- function or(t) {
1504
- x(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1509
+ const ur = "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";
1510
+ function fr(t) {
1511
+ F(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1505
1512
  }
1506
- function sr(t) {
1513
+ function dr(t) {
1507
1514
  let e, r, n, i, o;
1508
1515
  return {
1509
1516
  c() {
1510
- e = k("button"), r = k("img"), ee(r.src, n = ir) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1517
+ e = k("button"), r = k("img"), ee(r.src, n = ur) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1511
1518
  t[0];
1512
1519
  },
1513
1520
  m(s, l) {
@@ -1530,24 +1537,24 @@ function sr(t) {
1530
1537
  }
1531
1538
  };
1532
1539
  }
1533
- function lr(t, e, r) {
1540
+ function mr(t, e, r) {
1534
1541
  let { disabled: n = !1 } = e;
1535
1542
  function i(o) {
1536
- Pt.call(this, t, o);
1543
+ Ct.call(this, t, o);
1537
1544
  }
1538
1545
  return t.$$set = (o) => {
1539
1546
  "disabled" in o && r(0, n = o.disabled);
1540
1547
  }, [n, i];
1541
1548
  }
1542
- class cr extends U {
1549
+ class gr extends R {
1543
1550
  constructor(e) {
1544
- super(), N(this, e, lr, sr, T, { disabled: 0 }, or);
1551
+ super(), N(this, e, mr, dr, T, { disabled: 0 }, fr);
1545
1552
  }
1546
1553
  }
1547
- function ar(t) {
1548
- x(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
1554
+ function pr(t) {
1555
+ F(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
1549
1556
  }
1550
- function ur(t) {
1557
+ function _r(t) {
1551
1558
  let e;
1552
1559
  return {
1553
1560
  c() {
@@ -1562,11 +1569,11 @@ function ur(t) {
1562
1569
  }
1563
1570
  };
1564
1571
  }
1565
- function fr(t) {
1572
+ function hr(t) {
1566
1573
  let e, r, n, i, o, s;
1567
1574
  return {
1568
1575
  c() {
1569
- e = k("picture"), r = k("source"), i = Q(), o = k("img"), _(r, "type", "image/webp"), on(r, n = /*srcWebp*/
1576
+ e = k("picture"), r = k("source"), i = Q(), o = k("img"), _(r, "type", "image/webp"), fn(r, n = /*srcWebp*/
1570
1577
  t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"), ee(o.src, s = /*src*/
1571
1578
  t[0]) || _(o, "src", s), _(o, "alt", "App icon"), _(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1572
1579
  },
@@ -1585,12 +1592,12 @@ function fr(t) {
1585
1592
  }
1586
1593
  };
1587
1594
  }
1588
- function dr(t) {
1595
+ function Ar(t) {
1589
1596
  let e;
1590
1597
  function r(o, s) {
1591
1598
  return (
1592
1599
  /*src*/
1593
- o[0] !== null ? fr : ur
1600
+ o[0] !== null ? hr : _r
1594
1601
  );
1595
1602
  }
1596
1603
  let n = r(t), i = n(t);
@@ -1611,24 +1618,24 @@ function dr(t) {
1611
1618
  }
1612
1619
  };
1613
1620
  }
1614
- function mr(t, e, r) {
1621
+ function Er(t, e, r) {
1615
1622
  let { src: n = null } = e, { srcWebp: i = null } = e;
1616
1623
  return t.$$set = (o) => {
1617
1624
  "src" in o && r(0, n = o.src), "srcWebp" in o && r(1, i = o.srcWebp);
1618
1625
  }, [n, i];
1619
1626
  }
1620
- class Nt extends U {
1627
+ class Tt extends R {
1621
1628
  constructor(e) {
1622
- super(), N(this, e, mr, dr, T, { src: 0, srcWebp: 1 }, ar);
1629
+ super(), N(this, e, Er, Ar, T, { src: 0, srcWebp: 1 }, pr);
1623
1630
  }
1624
1631
  }
1625
1632
  const Ce = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1626
- function gr(t) {
1627
- x(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
1633
+ function br(t) {
1634
+ F(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
1628
1635
  }
1629
- function pr(t) {
1636
+ function Ir(t) {
1630
1637
  let e, r;
1631
- return e = new Nt({}), {
1638
+ return e = new Tt({}), {
1632
1639
  c() {
1633
1640
  w(e.$$.fragment);
1634
1641
  },
@@ -1647,14 +1654,14 @@ function pr(t) {
1647
1654
  }
1648
1655
  };
1649
1656
  }
1650
- function _r(t) {
1657
+ function wr(t) {
1651
1658
  let e, r, n = (
1652
1659
  /*brandingInfo*/
1653
1660
  t[0].seller_company_name + ""
1654
1661
  ), i, o, s = (
1655
1662
  /*brandingInfo*/
1656
1663
  t[0].app_icon_webp !== null && /*brandingInfo*/
1657
- t[0].app_icon !== null && at(t)
1664
+ t[0].app_icon !== null && ct(t)
1658
1665
  );
1659
1666
  return {
1660
1667
  c() {
@@ -1667,7 +1674,7 @@ function _r(t) {
1667
1674
  /*brandingInfo*/
1668
1675
  l[0].app_icon_webp !== null && /*brandingInfo*/
1669
1676
  l[0].app_icon !== null ? s ? (s.p(l, c), c & /*brandingInfo*/
1670
- 1 && f(s, 1)) : (s = at(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (H(), d(s, 1, 1, () => {
1677
+ 1 && f(s, 1)) : (s = ct(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (H(), d(s, 1, 1, () => {
1671
1678
  s = null;
1672
1679
  }), K()), (!o || c & /*brandingInfo*/
1673
1680
  1) && n !== (n = /*brandingInfo*/
@@ -1684,9 +1691,9 @@ function _r(t) {
1684
1691
  }
1685
1692
  };
1686
1693
  }
1687
- function at(t) {
1694
+ function ct(t) {
1688
1695
  let e, r;
1689
- return e = new Nt({
1696
+ return e = new Tt({
1690
1697
  props: {
1691
1698
  src: Ce(
1692
1699
  /*brandingInfo*/
@@ -1727,9 +1734,9 @@ function at(t) {
1727
1734
  }
1728
1735
  };
1729
1736
  }
1730
- function hr(t) {
1737
+ function kr(t) {
1731
1738
  let e, r, n, i;
1732
- const o = [_r, pr], s = [];
1739
+ const o = [wr, Ir], s = [];
1733
1740
  function l(c, a) {
1734
1741
  return (
1735
1742
  /*brandingInfo*/
@@ -1760,28 +1767,28 @@ function hr(t) {
1760
1767
  }
1761
1768
  };
1762
1769
  }
1763
- function Ar(t, e, r) {
1770
+ function yr(t, e, r) {
1764
1771
  let { brandingInfo: n = null } = e;
1765
1772
  return t.$$set = (i) => {
1766
1773
  "brandingInfo" in i && r(0, n = i.brandingInfo);
1767
1774
  }, [n];
1768
1775
  }
1769
- class Ut extends U {
1776
+ class Nt extends R {
1770
1777
  constructor(e) {
1771
- super(), N(this, e, Ar, hr, T, { brandingInfo: 0 }, gr);
1778
+ super(), N(this, e, yr, kr, T, { brandingInfo: 0 }, br);
1772
1779
  }
1773
1780
  }
1774
- function Er(t) {
1775
- x(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
1781
+ function vr(t) {
1782
+ F(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
1776
1783
  }
1777
- function br(t) {
1784
+ function $r(t) {
1778
1785
  let e, r, n, i, o;
1779
- return r = new Ut({
1786
+ return r = new Nt({
1780
1787
  props: { brandingInfo: (
1781
1788
  /*brandingInfo*/
1782
1789
  t[0]
1783
1790
  ) }
1784
- }), i = new cr({}), i.$on("click", function() {
1791
+ }), i = new gr({}), i.$on("click", function() {
1785
1792
  ce(
1786
1793
  /*onClose*/
1787
1794
  t[1]
@@ -1811,12 +1818,12 @@ function br(t) {
1811
1818
  }
1812
1819
  };
1813
1820
  }
1814
- function Ir(t) {
1821
+ function Br(t) {
1815
1822
  let e, r;
1816
1823
  return e = new ue({
1817
1824
  props: {
1818
1825
  as: "header",
1819
- $$slots: { default: [br] },
1826
+ $$slots: { default: [$r] },
1820
1827
  $$scope: { ctx: t }
1821
1828
  }
1822
1829
  }), {
@@ -1842,22 +1849,22 @@ function Ir(t) {
1842
1849
  }
1843
1850
  };
1844
1851
  }
1845
- function wr(t, e, r) {
1852
+ function Dr(t, e, r) {
1846
1853
  let { brandingInfo: n = null } = e, { onClose: i } = e;
1847
1854
  return t.$$set = (o) => {
1848
1855
  "brandingInfo" in o && r(0, n = o.brandingInfo), "onClose" in o && r(1, i = o.onClose);
1849
1856
  }, [n, i];
1850
1857
  }
1851
- class kr extends U {
1858
+ class Cr extends R {
1852
1859
  constructor(e) {
1853
- super(), N(this, e, wr, Ir, T, { brandingInfo: 0, onClose: 1 }, Er);
1860
+ super(), N(this, e, Dr, Br, T, { brandingInfo: 0, onClose: 1 }, vr);
1854
1861
  }
1855
1862
  }
1856
- function yr(t) {
1857
- x(t, "svelte-10pcqja", ".rcb-modal-message.svelte-10pcqja{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-10pcqja{font-size:24px;line-height:1.25em}.subtitle.svelte-10pcqja{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}");
1863
+ function Pr(t) {
1864
+ F(t, "svelte-10pcqja", ".rcb-modal-message.svelte-10pcqja{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-10pcqja{font-size:24px;line-height:1.25em}.subtitle.svelte-10pcqja{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}");
1858
1865
  }
1859
- const vr = (t) => ({}), ut = (t) => ({});
1860
- function $r(t) {
1866
+ const Mr = (t) => ({}), at = (t) => ({});
1867
+ function Qr(t) {
1861
1868
  let e, r, n, i, o;
1862
1869
  const s = (
1863
1870
  /*#slots*/
@@ -1916,7 +1923,7 @@ function $r(t) {
1916
1923
  }
1917
1924
  };
1918
1925
  }
1919
- function Br(t) {
1926
+ function Tr(t) {
1920
1927
  let e, r, n;
1921
1928
  const i = (
1922
1929
  /*#slots*/
@@ -1926,12 +1933,12 @@ function Br(t) {
1926
1933
  t,
1927
1934
  /*$$scope*/
1928
1935
  t[5],
1929
- ut
1936
+ at
1930
1937
  );
1931
1938
  return r = new ye({
1932
1939
  props: {
1933
1940
  gutter: "16px",
1934
- $$slots: { default: [$r] },
1941
+ $$slots: { default: [Qr] },
1935
1942
  $$scope: { ctx: t }
1936
1943
  }
1937
1944
  }), {
@@ -1954,12 +1961,12 @@ function Br(t) {
1954
1961
  /*$$scope*/
1955
1962
  s[5],
1956
1963
  l,
1957
- vr
1964
+ Mr
1958
1965
  ) : V(
1959
1966
  /*$$scope*/
1960
1967
  s[5]
1961
1968
  ),
1962
- ut
1969
+ at
1963
1970
  );
1964
1971
  const c = {};
1965
1972
  l & /*$$scope, title*/
@@ -1976,12 +1983,12 @@ function Br(t) {
1976
1983
  }
1977
1984
  };
1978
1985
  }
1979
- function Dr(t) {
1986
+ function Nr(t) {
1980
1987
  let e, r, n;
1981
1988
  return r = new ye({
1982
1989
  props: {
1983
1990
  gutter: "16px",
1984
- $$slots: { default: [Br] },
1991
+ $$slots: { default: [Tr] },
1985
1992
  $$scope: { ctx: t }
1986
1993
  }
1987
1994
  }), {
@@ -2018,7 +2025,7 @@ function Dr(t) {
2018
2025
  }
2019
2026
  };
2020
2027
  }
2021
- function Cr(t) {
2028
+ function Rr(t) {
2022
2029
  let e;
2023
2030
  return {
2024
2031
  c() {
@@ -2032,11 +2039,11 @@ function Cr(t) {
2032
2039
  }
2033
2040
  };
2034
2041
  }
2035
- function Pr(t) {
2042
+ function Ur(t) {
2036
2043
  let e, r;
2037
2044
  return e = new be({
2038
2045
  props: {
2039
- $$slots: { default: [Cr] },
2046
+ $$slots: { default: [Rr] },
2040
2047
  $$scope: { ctx: t }
2041
2048
  }
2042
2049
  }), e.$on("click", function() {
@@ -2068,9 +2075,9 @@ function Pr(t) {
2068
2075
  }
2069
2076
  };
2070
2077
  }
2071
- function Mr(t) {
2078
+ function Sr(t) {
2072
2079
  let e, r, n, i, o, s;
2073
- return e = new kr({
2080
+ return e = new Cr({
2074
2081
  props: {
2075
2082
  brandingInfo: (
2076
2083
  /*brandingInfo*/
@@ -2083,12 +2090,12 @@ function Mr(t) {
2083
2090
  }
2084
2091
  }), n = new ue({
2085
2092
  props: {
2086
- $$slots: { default: [Dr] },
2093
+ $$slots: { default: [Nr] },
2087
2094
  $$scope: { ctx: t }
2088
2095
  }
2089
2096
  }), o = new ze({
2090
2097
  props: {
2091
- $$slots: { default: [Pr] },
2098
+ $$slots: { default: [Ur] },
2092
2099
  $$scope: { ctx: t }
2093
2100
  }
2094
2101
  }), {
@@ -2123,12 +2130,12 @@ function Mr(t) {
2123
2130
  }
2124
2131
  };
2125
2132
  }
2126
- function Qr(t) {
2133
+ function Or(t) {
2127
2134
  let e, r;
2128
2135
  return e = new ye({
2129
2136
  props: {
2130
2137
  gutter: "32px",
2131
- $$slots: { default: [Mr] },
2138
+ $$slots: { default: [Sr] },
2132
2139
  $$scope: { ctx: t }
2133
2140
  }
2134
2141
  }), {
@@ -2154,19 +2161,19 @@ function Qr(t) {
2154
2161
  }
2155
2162
  };
2156
2163
  }
2157
- function Tr(t, e, r) {
2164
+ function Lr(t, e, r) {
2158
2165
  let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: o = null } = e, { onContinue: s } = e, { title: l } = e, { type: c } = e;
2159
2166
  return t.$$set = (a) => {
2160
2167
  "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);
2161
2168
  }, [o, s, l, c, n, i];
2162
2169
  }
2163
- class Rt extends U {
2170
+ class Rt extends R {
2164
2171
  constructor(e) {
2165
2172
  super(), N(
2166
2173
  this,
2167
2174
  e,
2168
- Tr,
2169
- Qr,
2175
+ Lr,
2176
+ Or,
2170
2177
  T,
2171
2178
  {
2172
2179
  brandingInfo: 0,
@@ -2174,11 +2181,11 @@ class Rt extends U {
2174
2181
  title: 2,
2175
2182
  type: 3
2176
2183
  },
2177
- yr
2184
+ Pr
2178
2185
  );
2179
2186
  }
2180
2187
  }
2181
- function ft(t) {
2188
+ function ut(t) {
2182
2189
  let e, r, n, i, o;
2183
2190
  return {
2184
2191
  c() {
@@ -2206,13 +2213,13 @@ function ft(t) {
2206
2213
  }
2207
2214
  };
2208
2215
  }
2209
- function Nr(t) {
2216
+ function Fr(t) {
2210
2217
  let e = (
2211
2218
  /*getErrorMessage*/
2212
2219
  t[3]() + ""
2213
2220
  ), r, n, i, o = (
2214
2221
  /*supportEmail*/
2215
- t[1] && ft(t)
2222
+ t[1] && ut(t)
2216
2223
  );
2217
2224
  return {
2218
2225
  c() {
@@ -2223,16 +2230,16 @@ function Nr(t) {
2223
2230
  },
2224
2231
  p(s, l) {
2225
2232
  /*supportEmail*/
2226
- s[1] ? o ? o.p(s, l) : (o = ft(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
2233
+ s[1] ? o ? o.p(s, l) : (o = ut(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
2227
2234
  },
2228
2235
  d(s) {
2229
2236
  s && (g(r), g(n), g(i)), o && o.d(s);
2230
2237
  }
2231
2238
  };
2232
2239
  }
2233
- function Ur(t) {
2240
+ function xr(t) {
2234
2241
  let e, r;
2235
- return e = new Jn({ props: { slot: "icon" } }), {
2242
+ return e = new er({ props: { slot: "icon" } }), {
2236
2243
  c() {
2237
2244
  w(e.$$.fragment);
2238
2245
  },
@@ -2251,7 +2258,7 @@ function Ur(t) {
2251
2258
  }
2252
2259
  };
2253
2260
  }
2254
- function Rr(t) {
2261
+ function Yr(t) {
2255
2262
  let e, r;
2256
2263
  return e = new Rt({
2257
2264
  props: {
@@ -2269,8 +2276,8 @@ function Rr(t) {
2269
2276
  ),
2270
2277
  type: "error",
2271
2278
  $$slots: {
2272
- icon: [Ur],
2273
- default: [Nr]
2279
+ icon: [xr],
2280
+ default: [Fr]
2274
2281
  },
2275
2282
  $$scope: { ctx: t }
2276
2283
  }
@@ -2301,10 +2308,10 @@ function Rr(t) {
2301
2308
  }
2302
2309
  };
2303
2310
  }
2304
- function Sr(t, e, r) {
2311
+ function Gr(t, e, r) {
2305
2312
  let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: o = null } = e, { onContinue: s } = e;
2306
2313
  Se(() => {
2307
- G.errorLog(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
2314
+ Y.errorLog(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
2308
2315
  });
2309
2316
  function l() {
2310
2317
  switch (i.errorCode) {
@@ -2344,9 +2351,9 @@ function Sr(t, e, r) {
2344
2351
  i
2345
2352
  ];
2346
2353
  }
2347
- class Or extends U {
2354
+ class Hr extends R {
2348
2355
  constructor(e) {
2349
- super(), N(this, e, Sr, Rr, T, {
2356
+ super(), N(this, e, Gr, Yr, T, {
2350
2357
  brandingInfo: 0,
2351
2358
  lastError: 5,
2352
2359
  supportEmail: 1,
@@ -2354,15 +2361,15 @@ class Or extends U {
2354
2361
  });
2355
2362
  }
2356
2363
  }
2357
- const Lr = "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='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
2358
- function xr(t) {
2359
- x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
2364
+ const Kr = "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='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
2365
+ function qr(t) {
2366
+ F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
2360
2367
  }
2361
- function Fr(t) {
2368
+ function jr(t) {
2362
2369
  let e, r;
2363
2370
  return {
2364
2371
  c() {
2365
- e = k("img"), ee(e.src, r = Lr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2372
+ e = k("img"), ee(e.src, r = Kr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2366
2373
  },
2367
2374
  m(n, i) {
2368
2375
  p(n, e, i);
@@ -2375,12 +2382,12 @@ function Fr(t) {
2375
2382
  }
2376
2383
  };
2377
2384
  }
2378
- class Gr extends U {
2385
+ class Jr extends R {
2379
2386
  constructor(e) {
2380
- super(), N(this, e, null, Fr, T, {}, xr);
2387
+ super(), N(this, e, null, jr, T, {}, qr);
2381
2388
  }
2382
2389
  }
2383
- function Yr(t) {
2390
+ function Vr(t) {
2384
2391
  let e;
2385
2392
  return {
2386
2393
  c() {
@@ -2394,9 +2401,9 @@ function Yr(t) {
2394
2401
  }
2395
2402
  };
2396
2403
  }
2397
- function Hr(t) {
2404
+ function Wr(t) {
2398
2405
  let e, r;
2399
- return e = new Gr({ props: { slot: "icon" } }), {
2406
+ return e = new Jr({ props: { slot: "icon" } }), {
2400
2407
  c() {
2401
2408
  w(e.$$.fragment);
2402
2409
  },
@@ -2415,7 +2422,7 @@ function Hr(t) {
2415
2422
  }
2416
2423
  };
2417
2424
  }
2418
- function Kr(t) {
2425
+ function zr(t) {
2419
2426
  let e, r;
2420
2427
  return e = new Rt({
2421
2428
  props: {
@@ -2430,8 +2437,8 @@ function Kr(t) {
2430
2437
  t[1]
2431
2438
  ),
2432
2439
  $$slots: {
2433
- icon: [Hr],
2434
- default: [Yr]
2440
+ icon: [Wr],
2441
+ default: [Vr]
2435
2442
  },
2436
2443
  $$scope: { ctx: t }
2437
2444
  }
@@ -2462,30 +2469,30 @@ function Kr(t) {
2462
2469
  }
2463
2470
  };
2464
2471
  }
2465
- function qr(t, e, r) {
2472
+ function Xr(t, e, r) {
2466
2473
  let { brandingInfo: n = null } = e, { onContinue: i } = e;
2467
2474
  return t.$$set = (o) => {
2468
2475
  "brandingInfo" in o && r(0, n = o.brandingInfo), "onContinue" in o && r(1, i = o.onContinue);
2469
2476
  }, [n, i];
2470
2477
  }
2471
- class jr extends U {
2478
+ class Zr extends R {
2472
2479
  constructor(e) {
2473
- super(), N(this, e, qr, Kr, T, { brandingInfo: 0, onContinue: 1 });
2480
+ super(), N(this, e, Xr, zr, T, { brandingInfo: 0, onContinue: 1 });
2474
2481
  }
2475
2482
  }
2476
- function Jr(t, e, r, n, i = {}) {
2483
+ function ei(t, e, r, n, i = {}) {
2477
2484
  const o = r.create(e, i);
2478
2485
  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;
2479
2486
  }
2480
- const Vr = typeof window > "u";
2481
- function Wr(t) {
2482
- if (!Vr)
2487
+ const ti = typeof window > "u";
2488
+ function ni(t) {
2489
+ if (!ti)
2483
2490
  return t.registerAppInfo({
2484
2491
  name: "svelte-stripe-js",
2485
2492
  url: "https://svelte-stripe-js.vercel.app"
2486
2493
  });
2487
2494
  }
2488
- function zr(t) {
2495
+ function ri(t) {
2489
2496
  let e;
2490
2497
  return {
2491
2498
  c() {
@@ -2502,11 +2509,11 @@ function zr(t) {
2502
2509
  }
2503
2510
  };
2504
2511
  }
2505
- function Xr(t, e, r) {
2512
+ function ii(t, e, r) {
2506
2513
  let n, i;
2507
- const o = hn(), { elements: s } = En("stripe");
2514
+ const o = kn(), { elements: s } = vn("stripe");
2508
2515
  let { options: l = void 0 } = e;
2509
- Se(() => (n = Jr(i, "payment", s, o, l), () => n.destroy()));
2516
+ Se(() => (n = ei(i, "payment", s, o, l), () => n.destroy()));
2510
2517
  function c() {
2511
2518
  n.blur();
2512
2519
  }
@@ -2520,7 +2527,7 @@ function Xr(t, e, r) {
2520
2527
  n.focus();
2521
2528
  }
2522
2529
  function h(y) {
2523
- Ue[y ? "unshift" : "push"](() => {
2530
+ Re[y ? "unshift" : "push"](() => {
2524
2531
  i = y, r(0, i);
2525
2532
  });
2526
2533
  }
@@ -2528,9 +2535,9 @@ function Xr(t, e, r) {
2528
2535
  "options" in y && r(1, l = y.options);
2529
2536
  }, [i, l, c, a, u, m, h];
2530
2537
  }
2531
- class Zr extends U {
2538
+ class oi extends R {
2532
2539
  constructor(e) {
2533
- super(), N(this, e, Xr, zr, T, {
2540
+ super(), N(this, e, ii, ri, T, {
2534
2541
  options: 1,
2535
2542
  blur: 2,
2536
2543
  clear: 3,
@@ -2551,7 +2558,7 @@ class Zr extends U {
2551
2558
  return this.$$.ctx[5];
2552
2559
  }
2553
2560
  }
2554
- function dt(t) {
2561
+ function ft(t) {
2555
2562
  let e;
2556
2563
  const r = (
2557
2564
  /*#slots*/
@@ -2602,11 +2609,11 @@ function dt(t) {
2602
2609
  }
2603
2610
  };
2604
2611
  }
2605
- function ei(t) {
2612
+ function si(t) {
2606
2613
  let e, r, n = (
2607
2614
  /*stripe*/
2608
2615
  t[1] && /*elements*/
2609
- t[0] && dt(t)
2616
+ t[0] && ft(t)
2610
2617
  );
2611
2618
  return {
2612
2619
  c() {
@@ -2619,7 +2626,7 @@ function ei(t) {
2619
2626
  /*stripe*/
2620
2627
  i[1] && /*elements*/
2621
2628
  i[0] ? n ? (n.p(i, o), o & /*stripe, elements*/
2622
- 3 && f(n, 1)) : (n = dt(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), d(n, 1, 1, () => {
2629
+ 3 && f(n, 1)) : (n = ft(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), d(n, 1, 1, () => {
2623
2630
  n = null;
2624
2631
  }), K());
2625
2632
  },
@@ -2634,14 +2641,14 @@ function ei(t) {
2634
2641
  }
2635
2642
  };
2636
2643
  }
2637
- function ti(t, e, r) {
2638
- let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: u = {} } = e, { labels: m = "above" } = e, { loader: h = "auto" } = e, { fonts: y = [] } = e, { locale: E = "auto" } = e, { currency: B = void 0 } = e, { amount: A = void 0 } = e, { clientSecret: $ = void 0 } = e, { elements: R = null } = e;
2644
+ function li(t, e, r) {
2645
+ let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: u = {} } = e, { labels: m = "above" } = e, { loader: h = "auto" } = e, { fonts: y = [] } = e, { locale: E = "auto" } = e, { currency: B = void 0 } = e, { amount: A = void 0 } = e, { clientSecret: $ = void 0 } = e, { elements: U = null } = e;
2639
2646
  return t.$$set = (C) => {
2640
- "stripe" in C && r(1, s = C.stripe), "mode" in C && r(2, l = C.mode), "theme" in C && r(3, c = C.theme), "variables" in C && r(4, a = C.variables), "rules" in C && r(5, u = C.rules), "labels" in C && r(6, m = C.labels), "loader" in C && r(7, h = C.loader), "fonts" in C && r(8, y = C.fonts), "locale" in C && r(9, E = C.locale), "currency" in C && r(10, B = C.currency), "amount" in C && r(11, A = C.amount), "clientSecret" in C && r(12, $ = C.clientSecret), "elements" in C && r(0, R = C.elements), "$$scope" in C && r(14, o = C.$$scope);
2647
+ "stripe" in C && r(1, s = C.stripe), "mode" in C && r(2, l = C.mode), "theme" in C && r(3, c = C.theme), "variables" in C && r(4, a = C.variables), "rules" in C && r(5, u = C.rules), "labels" in C && r(6, m = C.labels), "loader" in C && r(7, h = C.loader), "fonts" in C && r(8, y = C.fonts), "locale" in C && r(9, E = C.locale), "currency" in C && r(10, B = C.currency), "amount" in C && r(11, A = C.amount), "clientSecret" in C && r(12, $ = C.clientSecret), "elements" in C && r(0, U = C.elements), "$$scope" in C && r(14, o = C.$$scope);
2641
2648
  }, t.$$.update = () => {
2642
2649
  t.$$.dirty & /*theme, variables, rules, labels*/
2643
2650
  120 && r(13, n = { theme: c, variables: a, rules: u, labels: m }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
2644
- 16263 && s && !R && (r(0, R = s.elements({
2651
+ 16263 && s && !U && (r(0, U = s.elements({
2645
2652
  mode: l,
2646
2653
  currency: B,
2647
2654
  amount: A,
@@ -2650,10 +2657,10 @@ function ti(t, e, r) {
2650
2657
  fonts: y,
2651
2658
  loader: h,
2652
2659
  locale: E
2653
- })), Wr(s), An("stripe", { stripe: s, elements: R })), t.$$.dirty & /*elements, appearance, locale*/
2654
- 8705 && R && R.update({ appearance: n, locale: E });
2660
+ })), ni(s), yn("stripe", { stripe: s, elements: U })), t.$$.dirty & /*elements, appearance, locale*/
2661
+ 8705 && U && U.update({ appearance: n, locale: E });
2655
2662
  }, [
2656
- R,
2663
+ U,
2657
2664
  s,
2658
2665
  l,
2659
2666
  c,
@@ -2671,9 +2678,9 @@ function ti(t, e, r) {
2671
2678
  i
2672
2679
  ];
2673
2680
  }
2674
- class ni extends U {
2681
+ class ci extends R {
2675
2682
  constructor(e) {
2676
- super(), N(this, e, ti, ei, T, {
2683
+ super(), N(this, e, li, si, T, {
2677
2684
  stripe: 1,
2678
2685
  mode: 2,
2679
2686
  theme: 3,
@@ -2690,55 +2697,55 @@ class ni extends U {
2690
2697
  });
2691
2698
  }
2692
2699
  }
2693
- var St = "https://js.stripe.com/v3", ri = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, mt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", ii = function() {
2694
- for (var e = document.querySelectorAll('script[src^="'.concat(St, '"]')), r = 0; r < e.length; r++) {
2700
+ var Ut = "https://js.stripe.com/v3", ai = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, dt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", ui = function() {
2701
+ for (var e = document.querySelectorAll('script[src^="'.concat(Ut, '"]')), r = 0; r < e.length; r++) {
2695
2702
  var n = e[r];
2696
- if (ri.test(n.src))
2703
+ if (ai.test(n.src))
2697
2704
  return n;
2698
2705
  }
2699
2706
  return null;
2700
- }, gt = function(e) {
2707
+ }, mt = function(e) {
2701
2708
  var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
2702
- n.src = "".concat(St).concat(r);
2709
+ n.src = "".concat(Ut).concat(r);
2703
2710
  var i = document.head || document.body;
2704
2711
  if (!i)
2705
2712
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
2706
2713
  return i.appendChild(n), n;
2707
- }, oi = function(e, r) {
2714
+ }, fi = function(e, r) {
2708
2715
  !e || !e._registerWrapper || e._registerWrapper({
2709
2716
  name: "stripe-js",
2710
2717
  version: "2.4.0",
2711
2718
  startTime: r
2712
2719
  });
2713
- }, de = null, Pe = null, Me = null, si = function(e) {
2720
+ }, de = null, Pe = null, Me = null, di = function(e) {
2714
2721
  return function() {
2715
2722
  e(new Error("Failed to load Stripe.js"));
2716
2723
  };
2717
- }, li = function(e, r) {
2724
+ }, mi = function(e, r) {
2718
2725
  return function() {
2719
2726
  window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
2720
2727
  };
2721
- }, ci = function(e) {
2728
+ }, gi = function(e) {
2722
2729
  return de !== null ? de : (de = new Promise(function(r, n) {
2723
2730
  if (typeof window > "u" || typeof document > "u") {
2724
2731
  r(null);
2725
2732
  return;
2726
2733
  }
2727
- if (window.Stripe && e && console.warn(mt), window.Stripe) {
2734
+ if (window.Stripe && e && console.warn(dt), window.Stripe) {
2728
2735
  r(window.Stripe);
2729
2736
  return;
2730
2737
  }
2731
2738
  try {
2732
- var i = ii();
2739
+ var i = ui();
2733
2740
  if (i && e)
2734
- console.warn(mt);
2741
+ console.warn(dt);
2735
2742
  else if (!i)
2736
- i = gt(e);
2743
+ i = mt(e);
2737
2744
  else if (i && Me !== null && Pe !== null) {
2738
2745
  var o;
2739
- i.removeEventListener("load", Me), i.removeEventListener("error", Pe), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = gt(e);
2746
+ i.removeEventListener("load", Me), i.removeEventListener("error", Pe), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = mt(e);
2740
2747
  }
2741
- Me = li(r, n), Pe = si(n), i.addEventListener("load", Me), i.addEventListener("error", Pe);
2748
+ Me = mi(r, n), Pe = di(n), i.addEventListener("load", Me), i.addEventListener("error", Pe);
2742
2749
  } catch (s) {
2743
2750
  n(s);
2744
2751
  return;
@@ -2746,34 +2753,34 @@ var St = "https://js.stripe.com/v3", ri = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2746
2753
  }), de.catch(function(r) {
2747
2754
  return de = null, Promise.reject(r);
2748
2755
  }));
2749
- }, ai = function(e, r, n) {
2756
+ }, pi = function(e, r, n) {
2750
2757
  if (e === null)
2751
2758
  return null;
2752
2759
  var i = e.apply(void 0, r);
2753
- return oi(i, n), i;
2754
- }, me, Ot = !1, Lt = function() {
2755
- return me || (me = ci(null).catch(function(e) {
2760
+ return fi(i, n), i;
2761
+ }, me, St = !1, Ot = function() {
2762
+ return me || (me = gi(null).catch(function(e) {
2756
2763
  return me = null, Promise.reject(e);
2757
2764
  }), me);
2758
2765
  };
2759
2766
  Promise.resolve().then(function() {
2760
- return Lt();
2767
+ return Ot();
2761
2768
  }).catch(function(t) {
2762
- Ot || console.warn(t);
2769
+ St || console.warn(t);
2763
2770
  });
2764
- var ui = function() {
2771
+ var _i = function() {
2765
2772
  for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
2766
2773
  r[n] = arguments[n];
2767
- Ot = !0;
2774
+ St = !0;
2768
2775
  var i = Date.now();
2769
- return Lt().then(function(o) {
2770
- return ai(o, r, i);
2776
+ return Ot().then(function(o) {
2777
+ return pi(o, r, i);
2771
2778
  });
2772
2779
  };
2773
- function fi(t) {
2774
- x(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
2780
+ function hi(t) {
2781
+ F(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
2775
2782
  }
2776
- function di(t) {
2783
+ function Ai(t) {
2777
2784
  let e, r;
2778
2785
  const n = (
2779
2786
  /*#slots*/
@@ -2824,12 +2831,12 @@ function di(t) {
2824
2831
  }
2825
2832
  };
2826
2833
  }
2827
- function mi(t) {
2834
+ function Ei(t) {
2828
2835
  let e, r;
2829
2836
  return e = new ue({
2830
2837
  props: {
2831
2838
  as: "header",
2832
- $$slots: { default: [di] },
2839
+ $$slots: { default: [Ai] },
2833
2840
  $$scope: { ctx: t }
2834
2841
  }
2835
2842
  }), {
@@ -2855,23 +2862,23 @@ function mi(t) {
2855
2862
  }
2856
2863
  };
2857
2864
  }
2858
- function gi(t, e, r) {
2865
+ function bi(t, e, r) {
2859
2866
  let { $$slots: n = {}, $$scope: i } = e;
2860
2867
  return t.$$set = (o) => {
2861
2868
  "$$scope" in o && r(1, i = o.$$scope);
2862
2869
  }, [n, i];
2863
2870
  }
2864
- class Xe extends U {
2871
+ class Xe extends R {
2865
2872
  constructor(e) {
2866
- super(), N(this, e, gi, mi, T, {}, fi);
2873
+ super(), N(this, e, bi, Ei, T, {}, hi);
2867
2874
  }
2868
2875
  }
2869
- const pi = "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";
2870
- function _i(t) {
2876
+ const Ii = "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";
2877
+ function wi(t) {
2871
2878
  let e, r;
2872
2879
  return {
2873
2880
  c() {
2874
- e = k("img"), ee(e.src, r = pi) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
2881
+ e = k("img"), ee(e.src, r = Ii) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
2875
2882
  },
2876
2883
  m(n, i) {
2877
2884
  p(n, e, i);
@@ -2884,9 +2891,9 @@ function _i(t) {
2884
2891
  }
2885
2892
  };
2886
2893
  }
2887
- class hi extends U {
2894
+ class ki extends R {
2888
2895
  constructor(e) {
2889
- super(), N(this, e, null, _i, T, {});
2896
+ super(), N(this, e, null, wi, T, {});
2890
2897
  }
2891
2898
  }
2892
2899
  const pe = {
@@ -2898,15 +2905,15 @@ const pe = {
2898
2905
  "grey-ui-dark": "#dfdfdf",
2899
2906
  white: "#ffffff"
2900
2907
  };
2901
- function Ai(t) {
2902
- x(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
2908
+ function yi(t) {
2909
+ F(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
2903
2910
  -20px 0 #fff2;background:#fff2}25%{box-shadow:20px 0 #fff2,
2904
2911
  -20px 0 #ffff;background:#fff2}50%{box-shadow:20px 0 #fff2,
2905
2912
  -20px 0 #fff2;background:#ffff}75%{box-shadow:20px 0 #ffff,
2906
2913
  -20px 0 #fff2;background:#fff2}100%{box-shadow:20px 0 #fff2,
2907
2914
  -20px 0 #fff2;background:#fff2}}`);
2908
2915
  }
2909
- function Ei(t) {
2916
+ function vi(t) {
2910
2917
  let e;
2911
2918
  return {
2912
2919
  c() {
@@ -2923,15 +2930,15 @@ function Ei(t) {
2923
2930
  }
2924
2931
  };
2925
2932
  }
2926
- class xt extends U {
2933
+ class Lt extends R {
2927
2934
  constructor(e) {
2928
- super(), N(this, e, null, Ei, T, {}, Ai);
2935
+ super(), N(this, e, null, vi, T, {}, yi);
2929
2936
  }
2930
2937
  }
2931
- function bi(t) {
2932
- x(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2938
+ function $i(t) {
2939
+ F(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2933
2940
  }
2934
- function Ii(t) {
2941
+ function Bi(t) {
2935
2942
  let e, r;
2936
2943
  return e = new We({}), {
2937
2944
  c() {
@@ -2952,7 +2959,7 @@ function Ii(t) {
2952
2959
  }
2953
2960
  };
2954
2961
  }
2955
- function wi(t) {
2962
+ function Di(t) {
2956
2963
  let e, r, n, i, o, s;
2957
2964
  function l(a) {
2958
2965
  t[9](a);
@@ -2993,18 +3000,18 @@ function wi(t) {
2993
3000
  },
2994
3001
  ".Input--invalid": { boxShadow: "none" }
2995
3002
  },
2996
- $$slots: { default: [Mi] },
3003
+ $$slots: { default: [Si] },
2997
3004
  $$scope: { ctx: t }
2998
3005
  };
2999
3006
  return (
3000
3007
  /*elements*/
3001
3008
  t[2] !== void 0 && (c.elements = /*elements*/
3002
- t[2]), r = new ni({ props: c }), Ue.push(() => vn(r, "elements", l)), {
3009
+ t[2]), r = new ci({ props: c }), Re.push(() => Mn(r, "elements", l)), {
3003
3010
  c() {
3004
3011
  e = k("form"), w(r.$$.fragment);
3005
3012
  },
3006
3013
  m(a, u) {
3007
- p(a, e, u), b(r, e, null), i = !0, o || (s = we(e, "submit", Ct(
3014
+ p(a, e, u), b(r, e, null), i = !0, o || (s = we(e, "submit", Dt(
3008
3015
  /*handleContinue*/
3009
3016
  t[5]
3010
3017
  )), o = !0);
@@ -3016,7 +3023,7 @@ function wi(t) {
3016
3023
  a[3]), u & /*$$scope, processing, onClose*/
3017
3024
  2051 && (m.$$scope = { dirty: u, ctx: a }), !n && u & /*elements*/
3018
3025
  4 && (n = !0, m.elements = /*elements*/
3019
- a[2], wn(() => n = !1)), r.$set(m);
3026
+ a[2], Dn(() => n = !1)), r.$set(m);
3020
3027
  },
3021
3028
  i(a) {
3022
3029
  i || (f(r.$$.fragment, a), i = !0);
@@ -3030,9 +3037,9 @@ function wi(t) {
3030
3037
  }
3031
3038
  );
3032
3039
  }
3033
- function ki(t) {
3040
+ function Ci(t) {
3034
3041
  let e, r, n, i;
3035
- return n = new hi({}), {
3042
+ return n = new ki({}), {
3036
3043
  c() {
3037
3044
  e = k("div"), e.textContent = "Secure Checkout", r = Q(), w(n.$$.fragment);
3038
3045
  },
@@ -3051,9 +3058,9 @@ function ki(t) {
3051
3058
  }
3052
3059
  };
3053
3060
  }
3054
- function yi(t) {
3061
+ function Pi(t) {
3055
3062
  let e, r, n;
3056
- return r = new Zr({}), {
3063
+ return r = new oi({}), {
3057
3064
  c() {
3058
3065
  e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
3059
3066
  },
@@ -3072,7 +3079,7 @@ function yi(t) {
3072
3079
  }
3073
3080
  };
3074
3081
  }
3075
- function vi(t) {
3082
+ function Mi(t) {
3076
3083
  let e;
3077
3084
  return {
3078
3085
  c() {
@@ -3088,9 +3095,9 @@ function vi(t) {
3088
3095
  }
3089
3096
  };
3090
3097
  }
3091
- function $i(t) {
3098
+ function Qi(t) {
3092
3099
  let e, r;
3093
- return e = new xt({}), {
3100
+ return e = new Lt({}), {
3094
3101
  c() {
3095
3102
  w(e.$$.fragment);
3096
3103
  },
@@ -3108,9 +3115,9 @@ function $i(t) {
3108
3115
  }
3109
3116
  };
3110
3117
  }
3111
- function Bi(t) {
3118
+ function Ti(t) {
3112
3119
  let e, r, n, i;
3113
- const o = [$i, vi], s = [];
3120
+ const o = [Qi, Mi], s = [];
3114
3121
  function l(c, a) {
3115
3122
  return (
3116
3123
  /*processing*/
@@ -3141,7 +3148,7 @@ function Bi(t) {
3141
3148
  }
3142
3149
  };
3143
3150
  }
3144
- function Di(t) {
3151
+ function Ni(t) {
3145
3152
  let e;
3146
3153
  return {
3147
3154
  c() {
@@ -3155,7 +3162,7 @@ function Di(t) {
3155
3162
  }
3156
3163
  };
3157
3164
  }
3158
- function Ci(t) {
3165
+ function Ri(t) {
3159
3166
  let e, r, n, i;
3160
3167
  return e = new be({
3161
3168
  props: {
@@ -3163,7 +3170,7 @@ function Ci(t) {
3163
3170
  /*processing*/
3164
3171
  t[0]
3165
3172
  ),
3166
- $$slots: { default: [Bi] },
3173
+ $$slots: { default: [Ti] },
3167
3174
  $$scope: { ctx: t }
3168
3175
  }
3169
3176
  }), n = new be({
@@ -3173,7 +3180,7 @@ function Ci(t) {
3173
3180
  t[0]
3174
3181
  ),
3175
3182
  intent: "secondary",
3176
- $$slots: { default: [Di] },
3183
+ $$slots: { default: [Ni] },
3177
3184
  $$scope: { ctx: t }
3178
3185
  }
3179
3186
  }), n.$on("click", function() {
@@ -3212,11 +3219,11 @@ function Ci(t) {
3212
3219
  }
3213
3220
  };
3214
3221
  }
3215
- function Pi(t) {
3222
+ function Ui(t) {
3216
3223
  let e, r;
3217
3224
  return e = new ye({
3218
3225
  props: {
3219
- $$slots: { default: [Ci] },
3226
+ $$slots: { default: [Ri] },
3220
3227
  $$scope: { ctx: t }
3221
3228
  }
3222
3229
  }), {
@@ -3242,21 +3249,21 @@ function Pi(t) {
3242
3249
  }
3243
3250
  };
3244
3251
  }
3245
- function Mi(t) {
3252
+ function Si(t) {
3246
3253
  let e, r, n, i, o, s;
3247
3254
  return e = new Xe({
3248
3255
  props: {
3249
- $$slots: { default: [ki] },
3256
+ $$slots: { default: [Ci] },
3250
3257
  $$scope: { ctx: t }
3251
3258
  }
3252
3259
  }), n = new ue({
3253
3260
  props: {
3254
- $$slots: { default: [yi] },
3261
+ $$slots: { default: [Pi] },
3255
3262
  $$scope: { ctx: t }
3256
3263
  }
3257
3264
  }), o = new ze({
3258
3265
  props: {
3259
- $$slots: { default: [Pi] },
3266
+ $$slots: { default: [Ui] },
3260
3267
  $$scope: { ctx: t }
3261
3268
  }
3262
3269
  }), {
@@ -3288,9 +3295,9 @@ function Mi(t) {
3288
3295
  }
3289
3296
  };
3290
3297
  }
3291
- function Qi(t) {
3298
+ function Oi(t) {
3292
3299
  let e, r, n, i;
3293
- const o = [wi, Ii], s = [];
3300
+ const o = [Di, Bi], s = [];
3294
3301
  function l(c, a) {
3295
3302
  return (
3296
3303
  /*stripe*/
@@ -3322,7 +3329,7 @@ function Qi(t) {
3322
3329
  }
3323
3330
  };
3324
3331
  }
3325
- function Ti(t, e, r) {
3332
+ function Li(t, e, r) {
3326
3333
  let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
3327
3334
  const c = s.data.client_secret;
3328
3335
  let a = null, u, m;
@@ -3330,7 +3337,7 @@ function Ti(t, e, r) {
3330
3337
  const E = s.data.publishable_api_key, B = s.data.stripe_account_id;
3331
3338
  if (!E || !B)
3332
3339
  throw new Error("Stripe publishable key or account ID not found");
3333
- r(3, a = await ui(E, { stripeAccount: B }));
3340
+ r(3, a = await _i(E, { stripeAccount: B }));
3334
3341
  });
3335
3342
  const h = async () => {
3336
3343
  if (l || !a || !m)
@@ -3340,7 +3347,7 @@ function Ti(t, e, r) {
3340
3347
  elements: m,
3341
3348
  redirect: "if_required"
3342
3349
  });
3343
- E.error ? (r(0, l = !1), o(new Y(O.StripeError, E.error.message))) : i();
3350
+ E.error ? (r(0, l = !1), o(new G(O.StripeError, E.error.message))) : i();
3344
3351
  };
3345
3352
  function y(E) {
3346
3353
  u = E, r(2, u);
@@ -3363,13 +3370,13 @@ function Ti(t, e, r) {
3363
3370
  y
3364
3371
  ];
3365
3372
  }
3366
- class Ni extends U {
3373
+ class Fi extends R {
3367
3374
  constructor(e) {
3368
3375
  super(), N(
3369
3376
  this,
3370
3377
  e,
3371
- Ti,
3372
- Qi,
3378
+ Li,
3379
+ Oi,
3373
3380
  T,
3374
3381
  {
3375
3382
  onClose: 1,
@@ -3378,17 +3385,17 @@ class Ni extends U {
3378
3385
  paymentInfoCollectionMetadata: 8,
3379
3386
  processing: 0
3380
3387
  },
3381
- bi
3388
+ $i
3382
3389
  );
3383
3390
  }
3384
3391
  }
3385
- function Ui(t) {
3392
+ function xi(t) {
3386
3393
  return t.trim() === "" ? "You need to provide your email address to continue." : t.match(/^[^@]+@[^@]+\.[^@]+$/) ? null : "Email is not valid. Please provide a valid email address.";
3387
3394
  }
3388
- function Ri(t) {
3389
- x(t, "svelte-favd20", "form.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-favd20.svelte-favd20{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-favd20 input.svelte-favd20{border-color:var(--rc-color-error)}.form-error.svelte-favd20.svelte-favd20{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-favd20.svelte-favd20{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:12px;font-size:16px;height:48px;padding:6px 14px}input.svelte-favd20.svelte-favd20:focus{outline:none;border:2px solid var(--rc-color-focus)}");
3395
+ function Yi(t) {
3396
+ F(t, "svelte-favd20", "form.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-favd20.svelte-favd20{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-favd20 input.svelte-favd20{border-color:var(--rc-color-error)}.form-error.svelte-favd20.svelte-favd20{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-favd20.svelte-favd20{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:12px;font-size:16px;height:48px;padding:6px 14px}input.svelte-favd20.svelte-favd20:focus{outline:none;border:2px solid var(--rc-color-focus)}");
3390
3397
  }
3391
- function Si(t) {
3398
+ function Gi(t) {
3392
3399
  let e;
3393
3400
  return {
3394
3401
  c() {
@@ -3402,7 +3409,7 @@ function Si(t) {
3402
3409
  }
3403
3410
  };
3404
3411
  }
3405
- function pt(t) {
3412
+ function gt(t) {
3406
3413
  let e, r;
3407
3414
  return {
3408
3415
  c() {
@@ -3427,10 +3434,10 @@ function pt(t) {
3427
3434
  }
3428
3435
  };
3429
3436
  }
3430
- function Oi(t) {
3437
+ function Hi(t) {
3431
3438
  let e, r, n, i, o, s, l, c, a, u = (
3432
3439
  /*error*/
3433
- t[2] && pt(t)
3440
+ t[2] && gt(t)
3434
3441
  );
3435
3442
  return {
3436
3443
  c() {
@@ -3438,7 +3445,7 @@ function Oi(t) {
3438
3445
  t[4] + " svelte-favd20"), _(e, "class", "form-container svelte-favd20");
3439
3446
  },
3440
3447
  m(m, h) {
3441
- p(m, e, h), M(e, r), M(e, n), M(e, i), M(i, o), lt(
3448
+ p(m, e, h), M(e, r), M(e, n), M(e, i), M(i, o), st(
3442
3449
  o,
3443
3450
  /*email*/
3444
3451
  t[3]
@@ -3452,21 +3459,21 @@ function Oi(t) {
3452
3459
  p(m, h) {
3453
3460
  h & /*email*/
3454
3461
  8 && o.value !== /*email*/
3455
- m[3] && lt(
3462
+ m[3] && st(
3456
3463
  o,
3457
3464
  /*email*/
3458
3465
  m[3]
3459
3466
  ), h & /*inputClass*/
3460
3467
  16 && s !== (s = "form-input " + /*inputClass*/
3461
3468
  m[4] + " svelte-favd20") && _(i, "class", s), /*error*/
3462
- m[2] ? u ? u.p(m, h) : (u = pt(m), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3469
+ m[2] ? u ? u.p(m, h) : (u = gt(m), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3463
3470
  },
3464
3471
  d(m) {
3465
3472
  m && g(e), u && u.d(), c = !1, a();
3466
3473
  }
3467
3474
  };
3468
3475
  }
3469
- function Li(t) {
3476
+ function Ki(t) {
3470
3477
  let e;
3471
3478
  return {
3472
3479
  c() {
@@ -3482,9 +3489,9 @@ function Li(t) {
3482
3489
  }
3483
3490
  };
3484
3491
  }
3485
- function xi(t) {
3492
+ function qi(t) {
3486
3493
  let e, r;
3487
- return e = new xt({}), {
3494
+ return e = new Lt({}), {
3488
3495
  c() {
3489
3496
  w(e.$$.fragment);
3490
3497
  },
@@ -3502,9 +3509,9 @@ function xi(t) {
3502
3509
  }
3503
3510
  };
3504
3511
  }
3505
- function Fi(t) {
3512
+ function ji(t) {
3506
3513
  let e, r, n, i;
3507
- const o = [xi, Li], s = [];
3514
+ const o = [qi, Ki], s = [];
3508
3515
  function l(c, a) {
3509
3516
  return (
3510
3517
  /*processing*/
@@ -3535,7 +3542,7 @@ function Fi(t) {
3535
3542
  }
3536
3543
  };
3537
3544
  }
3538
- function Gi(t) {
3545
+ function Ji(t) {
3539
3546
  let e;
3540
3547
  return {
3541
3548
  c() {
@@ -3549,7 +3556,7 @@ function Gi(t) {
3549
3556
  }
3550
3557
  };
3551
3558
  }
3552
- function Yi(t) {
3559
+ function Vi(t) {
3553
3560
  let e, r, n, i;
3554
3561
  return e = new be({
3555
3562
  props: {
@@ -3557,7 +3564,7 @@ function Yi(t) {
3557
3564
  /*processing*/
3558
3565
  t[1]
3559
3566
  ),
3560
- $$slots: { default: [Fi] },
3567
+ $$slots: { default: [ji] },
3561
3568
  $$scope: { ctx: t }
3562
3569
  }
3563
3570
  }), n = new be({
@@ -3567,7 +3574,7 @@ function Yi(t) {
3567
3574
  /*processing*/
3568
3575
  t[1]
3569
3576
  ),
3570
- $$slots: { default: [Gi] },
3577
+ $$slots: { default: [Ji] },
3571
3578
  $$scope: { ctx: t }
3572
3579
  }
3573
3580
  }), n.$on("click", function() {
@@ -3606,11 +3613,11 @@ function Yi(t) {
3606
3613
  }
3607
3614
  };
3608
3615
  }
3609
- function Hi(t) {
3616
+ function Wi(t) {
3610
3617
  let e, r;
3611
3618
  return e = new ye({
3612
3619
  props: {
3613
- $$slots: { default: [Yi] },
3620
+ $$slots: { default: [Vi] },
3614
3621
  $$scope: { ctx: t }
3615
3622
  }
3616
3623
  }), {
@@ -3636,21 +3643,21 @@ function Hi(t) {
3636
3643
  }
3637
3644
  };
3638
3645
  }
3639
- function Ki(t) {
3646
+ function zi(t) {
3640
3647
  let e, r, n, i, o, s, l, c, a;
3641
3648
  return r = new Xe({
3642
3649
  props: {
3643
- $$slots: { default: [Si] },
3650
+ $$slots: { default: [Gi] },
3644
3651
  $$scope: { ctx: t }
3645
3652
  }
3646
3653
  }), i = new ue({
3647
3654
  props: {
3648
- $$slots: { default: [Oi] },
3655
+ $$slots: { default: [Hi] },
3649
3656
  $$scope: { ctx: t }
3650
3657
  }
3651
3658
  }), s = new ze({
3652
3659
  props: {
3653
- $$slots: { default: [Hi] },
3660
+ $$slots: { default: [Wi] },
3654
3661
  $$scope: { ctx: t }
3655
3662
  }
3656
3663
  }), {
@@ -3658,7 +3665,7 @@ function Ki(t) {
3658
3665
  e = k("form"), w(r.$$.fragment), n = Q(), w(i.$$.fragment), o = Q(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
3659
3666
  },
3660
3667
  m(u, m) {
3661
- p(u, e, m), b(r, e, null), M(e, n), b(i, e, null), M(e, o), b(s, e, null), l = !0, c || (a = we(e, "submit", Ct(
3668
+ p(u, e, m), b(r, e, null), M(e, n), b(i, e, null), M(e, o), b(s, e, null), l = !0, c || (a = we(e, "submit", Dt(
3662
3669
  /*handleContinue*/
3663
3670
  t[5]
3664
3671
  )), c = !0);
@@ -3685,13 +3692,13 @@ function Ki(t) {
3685
3692
  }
3686
3693
  };
3687
3694
  }
3688
- function qi(t, e, r) {
3695
+ function Xi(t, e, r) {
3689
3696
  let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e, { lastError: a } = e;
3690
3697
  const u = async () => {
3691
- const h = Ui(n);
3698
+ const h = xi(n);
3692
3699
  h ? r(2, i = h) : s({ email: n });
3693
3700
  };
3694
- _n(async () => {
3701
+ wn(async () => {
3695
3702
  r(2, i = (a == null ? void 0 : a.message) ?? "");
3696
3703
  });
3697
3704
  function m() {
@@ -3714,13 +3721,13 @@ function qi(t, e, r) {
3714
3721
  m
3715
3722
  ];
3716
3723
  }
3717
- class ji extends U {
3724
+ class Zi extends R {
3718
3725
  constructor(e) {
3719
3726
  super(), N(
3720
3727
  this,
3721
3728
  e,
3722
- qi,
3723
- Ki,
3729
+ Xi,
3730
+ zi,
3724
3731
  T,
3725
3732
  {
3726
3733
  onContinue: 6,
@@ -3728,14 +3735,14 @@ class ji extends U {
3728
3735
  processing: 1,
3729
3736
  lastError: 7
3730
3737
  },
3731
- Ri
3738
+ Yi
3732
3739
  );
3733
3740
  }
3734
3741
  }
3735
- function Ji(t) {
3736
- x(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}");
3742
+ function eo(t) {
3743
+ F(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}");
3737
3744
  }
3738
- function Vi(t) {
3745
+ function to(t) {
3739
3746
  let e, r;
3740
3747
  const n = (
3741
3748
  /*#slots*/
@@ -3786,21 +3793,21 @@ function Vi(t) {
3786
3793
  }
3787
3794
  };
3788
3795
  }
3789
- function Wi(t, e, r) {
3796
+ function no(t, e, r) {
3790
3797
  let { $$slots: n = {}, $$scope: i } = e;
3791
3798
  return t.$$set = (o) => {
3792
3799
  "$$scope" in o && r(0, i = o.$$scope);
3793
3800
  }, [i, n];
3794
3801
  }
3795
- class zi extends U {
3802
+ class ro extends R {
3796
3803
  constructor(e) {
3797
- super(), N(this, e, Wi, Vi, T, {}, Ji);
3804
+ super(), N(this, e, no, to, T, {}, eo);
3798
3805
  }
3799
3806
  }
3800
- function Xi(t) {
3801
- x(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}}");
3807
+ function io(t) {
3808
+ F(t, "svelte-z3twhy", ".rcb-modal-container.svelte-z3twhy{width:100%}.rcb-modal-main.svelte-z3twhy{box-sizing:border-box;border-radius:16px;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-z3twhy{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-z3twhy{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-z3twhy,.rcb-modal-dark.svelte-z3twhy{min-width:300px;max-width:640px;padding:32px}}");
3802
3809
  }
3803
- function Zi(t) {
3810
+ function oo(t) {
3804
3811
  let e, r, n, i;
3805
3812
  const o = (
3806
3813
  /*#slots*/
@@ -3815,7 +3822,7 @@ function Zi(t) {
3815
3822
  return {
3816
3823
  c() {
3817
3824
  e = k("div"), r = k("main"), s && s.c(), _(r, "class", n = Ae(`rcb-modal-main ${/*dark*/
3818
- t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), _(e, "class", "rcb-modal-container svelte-ioxu5d");
3825
+ t[0] ? "rcb-modal-dark" : ""}`) + " svelte-z3twhy"), _(e, "class", "rcb-modal-container svelte-z3twhy");
3819
3826
  },
3820
3827
  m(l, c) {
3821
3828
  p(l, e, c), M(e, r), s && s.m(r, null), i = !0;
@@ -3841,7 +3848,7 @@ function Zi(t) {
3841
3848
  null
3842
3849
  ), (!i || c & /*dark*/
3843
3850
  1 && n !== (n = Ae(`rcb-modal-main ${/*dark*/
3844
- l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) && _(r, "class", n);
3851
+ l[0] ? "rcb-modal-dark" : ""}`) + " svelte-z3twhy")) && _(r, "class", n);
3845
3852
  },
3846
3853
  i(l) {
3847
3854
  i || (f(s, l), i = !0);
@@ -3854,18 +3861,18 @@ function Zi(t) {
3854
3861
  }
3855
3862
  };
3856
3863
  }
3857
- function eo(t, e, r) {
3864
+ function so(t, e, r) {
3858
3865
  let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
3859
3866
  return t.$$set = (s) => {
3860
3867
  "dark" in s && r(0, o = s.dark), "$$scope" in s && r(1, i = s.$$scope);
3861
3868
  }, [o, i, n];
3862
3869
  }
3863
- class to extends U {
3870
+ class lo extends R {
3864
3871
  constructor(e) {
3865
- super(), N(this, e, eo, Zi, T, { dark: 0 }, Xi);
3872
+ super(), N(this, e, so, oo, T, { dark: 0 }, io);
3866
3873
  }
3867
3874
  }
3868
- function no(t) {
3875
+ function co(t) {
3869
3876
  let e;
3870
3877
  const r = (
3871
3878
  /*#slots*/
@@ -3916,11 +3923,11 @@ function no(t) {
3916
3923
  }
3917
3924
  };
3918
3925
  }
3919
- function ro(t) {
3926
+ function ao(t) {
3920
3927
  let e, r;
3921
- return e = new zi({
3928
+ return e = new ro({
3922
3929
  props: {
3923
- $$slots: { default: [io] },
3930
+ $$slots: { default: [uo] },
3924
3931
  $$scope: { ctx: t }
3925
3932
  }
3926
3933
  }), {
@@ -3946,7 +3953,7 @@ function ro(t) {
3946
3953
  }
3947
3954
  };
3948
3955
  }
3949
- function io(t) {
3956
+ function uo(t) {
3950
3957
  let e;
3951
3958
  const r = (
3952
3959
  /*#slots*/
@@ -3997,9 +4004,9 @@ function io(t) {
3997
4004
  }
3998
4005
  };
3999
4006
  }
4000
- function oo(t) {
4007
+ function fo(t) {
4001
4008
  let e, r, n, i;
4002
- const o = [ro, no], s = [];
4009
+ const o = [ao, co], s = [];
4003
4010
  function l(c, a) {
4004
4011
  return (
4005
4012
  /*condition*/
@@ -4030,19 +4037,19 @@ function oo(t) {
4030
4037
  }
4031
4038
  };
4032
4039
  }
4033
- function so(t, e, r) {
4040
+ function mo(t, e, r) {
4034
4041
  let { $$slots: n = {}, $$scope: i } = e, { condition: o = !1 } = e;
4035
4042
  return t.$$set = (s) => {
4036
4043
  "condition" in s && r(0, o = s.condition), "$$scope" in s && r(2, i = s.$$scope);
4037
4044
  }, [o, n, i];
4038
4045
  }
4039
- class lo extends U {
4046
+ class go extends R {
4040
4047
  constructor(e) {
4041
- super(), N(this, e, so, oo, T, { condition: 0 });
4048
+ super(), N(this, e, mo, fo, T, { condition: 0 });
4042
4049
  }
4043
4050
  }
4044
- const co = (t) => ({}), _t = (t) => ({});
4045
- function ao(t) {
4051
+ const po = (t) => ({}), pt = (t) => ({});
4052
+ function _o(t) {
4046
4053
  let e, r;
4047
4054
  const n = (
4048
4055
  /*#slots*/
@@ -4052,7 +4059,7 @@ function ao(t) {
4052
4059
  t,
4053
4060
  /*$$scope*/
4054
4061
  t[2],
4055
- _t
4062
+ pt
4056
4063
  ), o = (
4057
4064
  /*#slots*/
4058
4065
  t[1].default
@@ -4083,12 +4090,12 @@ function ao(t) {
4083
4090
  /*$$scope*/
4084
4091
  l[2],
4085
4092
  c,
4086
- co
4093
+ po
4087
4094
  ) : V(
4088
4095
  /*$$scope*/
4089
4096
  l[2]
4090
4097
  ),
4091
- _t
4098
+ pt
4092
4099
  ), s && s.p && (!r || c & /*$$scope*/
4093
4100
  4) && J(
4094
4101
  s,
@@ -4120,15 +4127,15 @@ function ao(t) {
4120
4127
  }
4121
4128
  };
4122
4129
  }
4123
- function uo(t) {
4130
+ function ho(t) {
4124
4131
  let e, r;
4125
- return e = new to({
4132
+ return e = new lo({
4126
4133
  props: {
4127
4134
  dark: (
4128
4135
  /*dark*/
4129
4136
  t[0]
4130
4137
  ),
4131
- $$slots: { default: [ao] },
4138
+ $$slots: { default: [_o] },
4132
4139
  $$scope: { ctx: t }
4133
4140
  }
4134
4141
  }), {
@@ -4156,83 +4163,91 @@ function uo(t) {
4156
4163
  }
4157
4164
  };
4158
4165
  }
4159
- function fo(t, e, r) {
4166
+ function Ao(t, e, r) {
4160
4167
  let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
4161
4168
  return t.$$set = (s) => {
4162
4169
  "dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
4163
4170
  }, [o, n, i];
4164
4171
  }
4165
- class Ft extends U {
4172
+ class Ft extends R {
4166
4173
  constructor(e) {
4167
- super(), N(this, e, fo, uo, T, { dark: 0 });
4174
+ super(), N(this, e, Ao, ho, T, { dark: 0 });
4168
4175
  }
4169
4176
  }
4170
- const mo = "0.4.0", go = "https://api.revenuecat.com";
4171
- var Re;
4177
+ const Eo = "0.5.0", bo = "https://api.revenuecat.com";
4178
+ var Ue;
4172
4179
  (function(t) {
4173
4180
  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";
4174
- })(Re || (Re = {}));
4181
+ })(Ue || (Ue = {}));
4175
4182
  function qe(t) {
4176
4183
  return t ? t.startsWith("rcb_sb_") : !1;
4177
4184
  }
4178
4185
  async function oe(t, e) {
4179
- const { apiKey: r, body: n, headers: i, httpConfig: o } = e, l = `${(o == null ? void 0 : o.proxyURL) ?? go}${t.urlPath()}`;
4186
+ const { apiKey: r, body: n, headers: i, httpConfig: o } = e, l = `${(o == null ? void 0 : o.proxyURL) ?? bo}${t.urlPath()}`;
4180
4187
  try {
4181
4188
  const c = await fetch(l, {
4182
4189
  method: t.method,
4183
- headers: ho(r, i, o == null ? void 0 : o.additionalHeaders),
4184
- body: _o(n)
4190
+ headers: yo(r, i, o == null ? void 0 : o.additionalHeaders),
4191
+ body: wo(n)
4185
4192
  });
4186
- return await po(c, t), await c.json();
4193
+ return await Io(c, t), await c.json();
4187
4194
  } catch (c) {
4188
- throw c instanceof TypeError ? new z(
4189
- Z.NetworkError,
4190
- he.getPublicMessage(Z.NetworkError),
4195
+ throw c instanceof TypeError ? new W(
4196
+ X.NetworkError,
4197
+ he.getPublicMessage(X.NetworkError),
4191
4198
  c.message
4192
4199
  ) : c;
4193
4200
  }
4194
4201
  }
4195
- async function po(t, e) {
4202
+ async function Io(t, e) {
4196
4203
  const r = t.status;
4197
- if (r >= Re.INTERNAL_SERVER_ERROR)
4198
- Ge(e, r, await t.text());
4199
- else if (r >= Re.BAD_REQUEST) {
4204
+ if (r >= Ue.INTERNAL_SERVER_ERROR)
4205
+ Ye(e, r, await t.text());
4206
+ else if (r >= Ue.BAD_REQUEST) {
4200
4207
  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;
4201
4208
  if (o != null) {
4202
4209
  const l = he.convertCodeToBackendErrorCode(o);
4203
4210
  if (l == null)
4204
- Ge(e, r, i);
4211
+ Ye(e, r, i);
4205
4212
  else
4206
- throw z.getForBackendError(
4213
+ throw W.getForBackendError(
4207
4214
  l,
4208
4215
  s
4209
4216
  );
4210
4217
  } else
4211
- Ge(e, r, i);
4218
+ Ye(e, r, i);
4212
4219
  }
4213
4220
  }
4214
- function Ge(t, e, r) {
4215
- throw new z(
4216
- Z.UnknownBackendError,
4221
+ function Ye(t, e, r) {
4222
+ throw new W(
4223
+ X.UnknownBackendError,
4217
4224
  `Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
4218
4225
  );
4219
4226
  }
4220
- function _o(t) {
4227
+ function wo(t) {
4221
4228
  return t == null ? null : JSON.stringify(t);
4222
4229
  }
4223
- function ho(t, e, r) {
4230
+ const xt = "Authorization", Yt = "Content-Type", Gt = "Accept", Ht = "X-Platform", Kt = "X-Version", qt = "X-Is-Sandbox", ko = /* @__PURE__ */ new Set([
4231
+ xt,
4232
+ Yt,
4233
+ Gt,
4234
+ Ht,
4235
+ Kt,
4236
+ qt
4237
+ ]);
4238
+ function yo(t, e, r) {
4224
4239
  let n = {
4225
- Authorization: `Bearer ${t}`,
4226
- "Content-Type": "application/json",
4227
- Accept: "application/json",
4228
- "X-Platform": "web",
4229
- "X-Version": mo,
4230
- "X-Is-Sandbox": `${qe(t)}`
4240
+ [xt]: `Bearer ${t}`,
4241
+ [Yt]: "application/json",
4242
+ [Gt]: "application/json",
4243
+ [Ht]: "web",
4244
+ [Kt]: Eo,
4245
+ [qt]: `${qe(t)}`
4231
4246
  };
4232
4247
  return e && (n = { ...n, ...e }), r && (n = { ...r, ...n }), n;
4233
4248
  }
4234
- const Gt = "/v1/subscribers", Oe = "/rcbilling/v1";
4235
- class Ao {
4249
+ const jt = "/v1/subscribers", Oe = "/rcbilling/v1";
4250
+ class vo {
4236
4251
  constructor(e) {
4237
4252
  P(this, "appUserId");
4238
4253
  P(this, "method", "GET");
@@ -4241,10 +4256,10 @@ class Ao {
4241
4256
  }
4242
4257
  urlPath() {
4243
4258
  const e = encodeURIComponent(this.appUserId);
4244
- return `${Gt}/${e}/offerings`;
4259
+ return `${jt}/${e}/offerings`;
4245
4260
  }
4246
4261
  }
4247
- class Eo {
4262
+ class $o {
4248
4263
  constructor() {
4249
4264
  P(this, "method", "POST");
4250
4265
  P(this, "name", "subscribe");
@@ -4253,7 +4268,7 @@ class Eo {
4253
4268
  return `${Oe}/subscribe`;
4254
4269
  }
4255
4270
  }
4256
- class bo {
4271
+ class Bo {
4257
4272
  constructor(e, r) {
4258
4273
  P(this, "method", "GET");
4259
4274
  P(this, "name", "getProducts");
@@ -4266,7 +4281,7 @@ class bo {
4266
4281
  return `${Oe}/subscribers/${e}/products?id=${r}`;
4267
4282
  }
4268
4283
  }
4269
- class Io {
4284
+ class Do {
4270
4285
  constructor(e) {
4271
4286
  P(this, "method", "GET");
4272
4287
  P(this, "name", "getCustomerInfo");
@@ -4275,10 +4290,10 @@ class Io {
4275
4290
  }
4276
4291
  urlPath() {
4277
4292
  const e = encodeURIComponent(this.appUserId);
4278
- return `${Gt}/${e}`;
4293
+ return `${jt}/${e}`;
4279
4294
  }
4280
4295
  }
4281
- class wo {
4296
+ class Co {
4282
4297
  constructor() {
4283
4298
  P(this, "method", "GET");
4284
4299
  P(this, "name", "getBrandingInfo");
@@ -4287,7 +4302,7 @@ class wo {
4287
4302
  return `${Oe}/branding`;
4288
4303
  }
4289
4304
  }
4290
- class ko {
4305
+ class Po {
4291
4306
  constructor(e) {
4292
4307
  P(this, "method", "GET");
4293
4308
  P(this, "name", "getCheckoutStatus");
@@ -4299,7 +4314,7 @@ class ko {
4299
4314
  }
4300
4315
  }
4301
4316
  const je = {};
4302
- class yo {
4317
+ class Mo {
4303
4318
  constructor(e, r = je) {
4304
4319
  P(this, "API_KEY");
4305
4320
  P(this, "httpConfig");
@@ -4307,7 +4322,7 @@ class yo {
4307
4322
  }
4308
4323
  async getOfferings(e) {
4309
4324
  return await oe(
4310
- new Ao(e),
4325
+ new vo(e),
4311
4326
  {
4312
4327
  apiKey: this.API_KEY,
4313
4328
  httpConfig: this.httpConfig
@@ -4316,7 +4331,7 @@ class yo {
4316
4331
  }
4317
4332
  async getCustomerInfo(e) {
4318
4333
  return await oe(
4319
- new Io(e),
4334
+ new Do(e),
4320
4335
  {
4321
4336
  apiKey: this.API_KEY,
4322
4337
  httpConfig: this.httpConfig
@@ -4325,7 +4340,7 @@ class yo {
4325
4340
  }
4326
4341
  async getProducts(e, r) {
4327
4342
  return await oe(
4328
- new bo(e, r),
4343
+ new Bo(e, r),
4329
4344
  {
4330
4345
  apiKey: this.API_KEY,
4331
4346
  httpConfig: this.httpConfig
@@ -4334,7 +4349,7 @@ class yo {
4334
4349
  }
4335
4350
  async getBrandingInfo() {
4336
4351
  return await oe(
4337
- new wo(),
4352
+ new Co(),
4338
4353
  {
4339
4354
  apiKey: this.API_KEY,
4340
4355
  httpConfig: this.httpConfig
@@ -4346,10 +4361,13 @@ class yo {
4346
4361
  app_user_id: e,
4347
4362
  product_id: r,
4348
4363
  email: n,
4349
- presented_offering_identifier: i
4364
+ presented_offering_identifier: i.offeringIdentifier
4350
4365
  };
4351
- return o && o !== "base_option" && (s.offer_id = o), await oe(
4352
- new Eo(),
4366
+ return o && o !== "base_option" && (s.offer_id = o), i.targetingContext && (s.applied_targeting_rule = {
4367
+ rule_id: i.targetingContext.ruleId,
4368
+ revision: i.targetingContext.revision
4369
+ }), await oe(
4370
+ new $o(),
4353
4371
  {
4354
4372
  apiKey: this.API_KEY,
4355
4373
  body: s,
@@ -4359,7 +4377,7 @@ class yo {
4359
4377
  }
4360
4378
  async getCheckoutStatus(e) {
4361
4379
  return await oe(
4362
- new ko(e),
4380
+ new Po(e),
4363
4381
  {
4364
4382
  apiKey: this.API_KEY,
4365
4383
  httpConfig: this.httpConfig
@@ -4367,12 +4385,12 @@ class yo {
4367
4385
  );
4368
4386
  }
4369
4387
  }
4370
- const vo = "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";
4371
- function $o(t) {
4388
+ const Qo = "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";
4389
+ function To(t) {
4372
4390
  let e, r;
4373
4391
  return {
4374
4392
  c() {
4375
- e = k("img"), ee(e.src, r = vo) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
4393
+ e = k("img"), ee(e.src, r = Qo) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
4376
4394
  },
4377
4395
  m(n, i) {
4378
4396
  p(n, e, i);
@@ -4385,15 +4403,15 @@ function $o(t) {
4385
4403
  }
4386
4404
  };
4387
4405
  }
4388
- class Bo extends U {
4406
+ class No extends R {
4389
4407
  constructor(e) {
4390
- super(), N(this, e, null, $o, T, {});
4408
+ super(), N(this, e, null, To, T, {});
4391
4409
  }
4392
4410
  }
4393
- function Do(t) {
4394
- x(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}");
4411
+ function Ro(t) {
4412
+ F(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}");
4395
4413
  }
4396
- function Co(t) {
4414
+ function Uo(t) {
4397
4415
  let e;
4398
4416
  return {
4399
4417
  c() {
@@ -4410,23 +4428,23 @@ function Co(t) {
4410
4428
  }
4411
4429
  };
4412
4430
  }
4413
- class Po extends U {
4431
+ class So extends R {
4414
4432
  constructor(e) {
4415
- super(), N(this, e, null, Co, T, {}, Do);
4433
+ super(), N(this, e, null, Uo, T, {}, Ro);
4416
4434
  }
4417
4435
  }
4418
- function Mo(t) {
4419
- x(t, "svelte-1qect5g", `.rcb-ui-container.svelte-1qect5g{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4436
+ function Oo(t) {
4437
+ F(t, "svelte-1qect5g", `.rcb-ui-container.svelte-1qect5g{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4420
4438
  Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-1qect5g{width:100vw;width:100 dvw;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-1qect5g{margin-right:16px;flex:320px 1 0;max-width:480px}.rcb-ui-main.svelte-1qect5g{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-1qect5g{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}.rcb-ui-aside.svelte-1qect5g{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-1qect5g{flex:none;max-width:none;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-1qect5g{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
4421
4439
  }
4422
- function ht(t) {
4440
+ function _t(t) {
4423
4441
  let e, r, n;
4424
4442
  return r = new Ft({
4425
4443
  props: {
4426
4444
  dark: !0,
4427
4445
  $$slots: {
4428
- header: [Ro],
4429
- default: [Qo]
4446
+ header: [Go],
4447
+ default: [Lo]
4430
4448
  },
4431
4449
  $$scope: { ctx: t }
4432
4450
  }
@@ -4453,9 +4471,9 @@ function ht(t) {
4453
4471
  }
4454
4472
  };
4455
4473
  }
4456
- function At(t) {
4474
+ function ht(t) {
4457
4475
  let e, r;
4458
- return e = new Qt({
4476
+ return e = new Mt({
4459
4477
  props: {
4460
4478
  productDetails: (
4461
4479
  /*productDetails*/
@@ -4490,11 +4508,11 @@ function At(t) {
4490
4508
  }
4491
4509
  };
4492
4510
  }
4493
- function Qo(t) {
4511
+ function Lo(t) {
4494
4512
  let e, r, n = (
4495
4513
  /*productDetails*/
4496
4514
  t[2] && /*purchaseOptionToUse*/
4497
- t[8] && At(t)
4515
+ t[8] && ht(t)
4498
4516
  );
4499
4517
  return {
4500
4518
  c() {
@@ -4507,7 +4525,7 @@ function Qo(t) {
4507
4525
  /*productDetails*/
4508
4526
  i[2] && /*purchaseOptionToUse*/
4509
4527
  i[8] ? n ? (n.p(i, o), o & /*productDetails*/
4510
- 4 && f(n, 1)) : (n = At(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), d(n, 1, 1, () => {
4528
+ 4 && f(n, 1)) : (n = ht(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), d(n, 1, 1, () => {
4511
4529
  n = null;
4512
4530
  }), K());
4513
4531
  },
@@ -4522,9 +4540,9 @@ function Qo(t) {
4522
4540
  }
4523
4541
  };
4524
4542
  }
4525
- function To(t) {
4543
+ function Fo(t) {
4526
4544
  let e, r;
4527
- return e = new Bo({}), {
4545
+ return e = new No({}), {
4528
4546
  c() {
4529
4547
  w(e.$$.fragment);
4530
4548
  },
@@ -4542,9 +4560,9 @@ function To(t) {
4542
4560
  }
4543
4561
  };
4544
4562
  }
4545
- function No(t) {
4563
+ function xo(t) {
4546
4564
  let e, r;
4547
- return e = new Po({}), {
4565
+ return e = new So({}), {
4548
4566
  c() {
4549
4567
  w(e.$$.fragment);
4550
4568
  },
@@ -4562,15 +4580,15 @@ function No(t) {
4562
4580
  }
4563
4581
  };
4564
4582
  }
4565
- function Uo(t) {
4583
+ function Yo(t) {
4566
4584
  let e, r, n, i, o, s, l;
4567
- e = new Ut({
4585
+ e = new Nt({
4568
4586
  props: { brandingInfo: (
4569
4587
  /*brandingInfo*/
4570
4588
  t[3]
4571
4589
  ) }
4572
4590
  });
4573
- const c = [No, To], a = [];
4591
+ const c = [xo, Fo], a = [];
4574
4592
  function u(m, h) {
4575
4593
  return h & /*purchases*/
4576
4594
  2 && (n = null), n == null && (n = !!/*purchases*/
@@ -4604,12 +4622,12 @@ function Uo(t) {
4604
4622
  }
4605
4623
  };
4606
4624
  }
4607
- function Ro(t) {
4625
+ function Go(t) {
4608
4626
  let e, r;
4609
4627
  return e = new Xe({
4610
4628
  props: {
4611
4629
  slot: "header",
4612
- $$slots: { default: [Uo] },
4630
+ $$slots: { default: [Yo] },
4613
4631
  $$scope: { ctx: t }
4614
4632
  }
4615
4633
  }), {
@@ -4635,9 +4653,9 @@ function Ro(t) {
4635
4653
  }
4636
4654
  };
4637
4655
  }
4638
- function Et(t) {
4656
+ function At(t) {
4639
4657
  let e, r;
4640
- return e = new Qt({
4658
+ return e = new Mt({
4641
4659
  props: {
4642
4660
  productDetails: (
4643
4661
  /*productDetails*/
@@ -4672,7 +4690,7 @@ function Et(t) {
4672
4690
  }
4673
4691
  };
4674
4692
  }
4675
- function bt(t) {
4693
+ function Et(t) {
4676
4694
  let e, r;
4677
4695
  return e = new We({}), {
4678
4696
  c() {
@@ -4692,9 +4710,9 @@ function bt(t) {
4692
4710
  }
4693
4711
  };
4694
4712
  }
4695
- function It(t) {
4713
+ function bt(t) {
4696
4714
  let e, r;
4697
- return e = new ji({
4715
+ return e = new Zi({
4698
4716
  props: {
4699
4717
  onContinue: (
4700
4718
  /*handleContinue*/
@@ -4739,9 +4757,9 @@ function It(t) {
4739
4757
  }
4740
4758
  };
4741
4759
  }
4742
- function wt(t) {
4760
+ function It(t) {
4743
4761
  let e, r;
4744
- return e = new Ni({
4762
+ return e = new Fi({
4745
4763
  props: {
4746
4764
  paymentInfoCollectionMetadata: (
4747
4765
  /*paymentInfoCollectionMetadata*/
@@ -4790,7 +4808,7 @@ function wt(t) {
4790
4808
  }
4791
4809
  };
4792
4810
  }
4793
- function kt(t) {
4811
+ function wt(t) {
4794
4812
  let e, r;
4795
4813
  return e = new We({}), {
4796
4814
  c() {
@@ -4810,10 +4828,10 @@ function kt(t) {
4810
4828
  }
4811
4829
  };
4812
4830
  }
4813
- function yt(t) {
4831
+ function kt(t) {
4814
4832
  var n;
4815
4833
  let e, r;
4816
- return e = new Or({
4834
+ return e = new Hr({
4817
4835
  props: {
4818
4836
  brandingInfo: (
4819
4837
  /*brandingInfo*/
@@ -4821,7 +4839,7 @@ function yt(t) {
4821
4839
  ),
4822
4840
  lastError: (
4823
4841
  /*lastError*/
4824
- t[5] ?? new Y(O.UnknownError, "Unknown error without state set.")
4842
+ t[5] ?? new G(O.UnknownError, "Unknown error without state set.")
4825
4843
  ),
4826
4844
  supportEmail: (
4827
4845
  /*brandingInfo*/
@@ -4846,7 +4864,7 @@ function yt(t) {
4846
4864
  8 && (s.brandingInfo = /*brandingInfo*/
4847
4865
  i[3]), o & /*lastError*/
4848
4866
  32 && (s.lastError = /*lastError*/
4849
- i[5] ?? new Y(O.UnknownError, "Unknown error without state set.")), o & /*brandingInfo*/
4867
+ i[5] ?? new G(O.UnknownError, "Unknown error without state set.")), o & /*brandingInfo*/
4850
4868
  8 && (s.supportEmail = /*brandingInfo*/
4851
4869
  (l = i[3]) == null ? void 0 : l.seller_company_support_email), e.$set(s);
4852
4870
  },
@@ -4861,9 +4879,9 @@ function yt(t) {
4861
4879
  }
4862
4880
  };
4863
4881
  }
4864
- function vt(t) {
4882
+ function yt(t) {
4865
4883
  let e, r;
4866
- return e = new jr({
4884
+ return e = new Zr({
4867
4885
  props: {
4868
4886
  brandingInfo: (
4869
4887
  /*brandingInfo*/
@@ -4898,34 +4916,34 @@ function vt(t) {
4898
4916
  }
4899
4917
  };
4900
4918
  }
4901
- function So(t) {
4919
+ function Ho(t) {
4902
4920
  let e, r, n, i, o, s, l, c, a = (
4903
4921
  /*state*/
4904
4922
  t[6] === "present-offer" && /*productDetails*/
4905
4923
  t[2] && /*purchaseOptionToUse*/
4906
- t[8] && Et(t)
4924
+ t[8] && At(t)
4907
4925
  ), u = (
4908
4926
  /*state*/
4909
4927
  t[6] === "present-offer" && !/*productDetails*/
4910
- t[2] && bt()
4928
+ t[2] && Et()
4911
4929
  ), m = (
4912
4930
  /*state*/
4913
4931
  (t[6] === "needs-auth-info" || /*state*/
4914
- t[6] === "processing-auth-info") && It(t)
4932
+ t[6] === "processing-auth-info") && bt(t)
4915
4933
  ), h = (
4916
4934
  /*paymentInfoCollectionMetadata*/
4917
4935
  t[4] && /*state*/
4918
4936
  (t[6] === "needs-payment-info" || /*state*/
4919
- t[6] === "polling-purchase-status") && wt(t)
4937
+ t[6] === "polling-purchase-status") && It(t)
4920
4938
  ), y = (
4921
4939
  /*state*/
4922
- t[6] === "loading" && kt()
4940
+ t[6] === "loading" && wt()
4923
4941
  ), E = (
4924
4942
  /*state*/
4925
- t[6] === "error" && yt(t)
4943
+ t[6] === "error" && kt(t)
4926
4944
  ), B = (
4927
4945
  /*state*/
4928
- t[6] === "success" && vt(t)
4946
+ t[6] === "success" && yt(t)
4929
4947
  );
4930
4948
  return {
4931
4949
  c() {
@@ -4939,35 +4957,35 @@ function So(t) {
4939
4957
  A[6] === "present-offer" && /*productDetails*/
4940
4958
  A[2] && /*purchaseOptionToUse*/
4941
4959
  A[8] ? a ? (a.p(A, $), $ & /*state, productDetails*/
4942
- 68 && f(a, 1)) : (a = Et(A), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (H(), d(a, 1, 1, () => {
4960
+ 68 && f(a, 1)) : (a = At(A), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (H(), d(a, 1, 1, () => {
4943
4961
  a = null;
4944
4962
  }), K()), /*state*/
4945
4963
  A[6] === "present-offer" && !/*productDetails*/
4946
4964
  A[2] ? u ? $ & /*state, productDetails*/
4947
- 68 && f(u, 1) : (u = bt(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (H(), d(u, 1, 1, () => {
4965
+ 68 && f(u, 1) : (u = Et(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (H(), d(u, 1, 1, () => {
4948
4966
  u = null;
4949
4967
  }), K()), /*state*/
4950
4968
  A[6] === "needs-auth-info" || /*state*/
4951
4969
  A[6] === "processing-auth-info" ? m ? (m.p(A, $), $ & /*state*/
4952
- 64 && f(m, 1)) : (m = It(A), m.c(), f(m, 1), m.m(n.parentNode, n)) : m && (H(), d(m, 1, 1, () => {
4970
+ 64 && f(m, 1)) : (m = bt(A), m.c(), f(m, 1), m.m(n.parentNode, n)) : m && (H(), d(m, 1, 1, () => {
4953
4971
  m = null;
4954
4972
  }), K()), /*paymentInfoCollectionMetadata*/
4955
4973
  A[4] && /*state*/
4956
4974
  (A[6] === "needs-payment-info" || /*state*/
4957
4975
  A[6] === "polling-purchase-status") ? h ? (h.p(A, $), $ & /*paymentInfoCollectionMetadata, state*/
4958
- 80 && f(h, 1)) : (h = wt(A), h.c(), f(h, 1), h.m(i.parentNode, i)) : h && (H(), d(h, 1, 1, () => {
4976
+ 80 && f(h, 1)) : (h = It(A), h.c(), f(h, 1), h.m(i.parentNode, i)) : h && (H(), d(h, 1, 1, () => {
4959
4977
  h = null;
4960
4978
  }), K()), /*state*/
4961
4979
  A[6] === "loading" ? y ? $ & /*state*/
4962
- 64 && f(y, 1) : (y = kt(), y.c(), f(y, 1), y.m(o.parentNode, o)) : y && (H(), d(y, 1, 1, () => {
4980
+ 64 && f(y, 1) : (y = wt(), y.c(), f(y, 1), y.m(o.parentNode, o)) : y && (H(), d(y, 1, 1, () => {
4963
4981
  y = null;
4964
4982
  }), K()), /*state*/
4965
4983
  A[6] === "error" ? E ? (E.p(A, $), $ & /*state*/
4966
- 64 && f(E, 1)) : (E = yt(A), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (H(), d(E, 1, 1, () => {
4984
+ 64 && f(E, 1)) : (E = kt(A), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (H(), d(E, 1, 1, () => {
4967
4985
  E = null;
4968
4986
  }), K()), /*state*/
4969
4987
  A[6] === "success" ? B ? (B.p(A, $), $ & /*state*/
4970
- 64 && f(B, 1)) : (B = vt(A), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (H(), d(B, 1, 1, () => {
4988
+ 64 && f(B, 1)) : (B = yt(A), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (H(), d(B, 1, 1, () => {
4971
4989
  B = null;
4972
4990
  }), K());
4973
4991
  },
@@ -4982,17 +5000,17 @@ function So(t) {
4982
5000
  }
4983
5001
  };
4984
5002
  }
4985
- function Oo(t) {
5003
+ function Ko(t) {
4986
5004
  let e, r = (
4987
5005
  /*statesWhereOfferDetailsAreShown*/
4988
5006
  t[9].includes(
4989
5007
  /*state*/
4990
5008
  t[6]
4991
5009
  )
4992
- ), n, i, o, s, l = r && ht(t);
5010
+ ), n, i, o, s, l = r && _t(t);
4993
5011
  return o = new Ft({
4994
5012
  props: {
4995
- $$slots: { default: [So] },
5013
+ $$slots: { default: [Ho] },
4996
5014
  $$scope: { ctx: t }
4997
5015
  }
4998
5016
  }), {
@@ -5014,7 +5032,7 @@ function Oo(t) {
5014
5032
  /*state*/
5015
5033
  c[6]
5016
5034
  )), r ? l ? (l.p(c, a), a & /*state*/
5017
- 64 && f(l, 1)) : (l = ht(c), l.c(), f(l, 1), l.m(e, n)) : l && (H(), d(l, 1, 1, () => {
5035
+ 64 && f(l, 1)) : (l = _t(c), l.c(), f(l, 1), l.m(e, n)) : l && (H(), d(l, 1, 1, () => {
5018
5036
  l = null;
5019
5037
  }), K());
5020
5038
  const u = {};
@@ -5032,15 +5050,15 @@ function Oo(t) {
5032
5050
  }
5033
5051
  };
5034
5052
  }
5035
- function Lo(t) {
5053
+ function qo(t) {
5036
5054
  let e, r, n;
5037
- return r = new lo({
5055
+ return r = new go({
5038
5056
  props: {
5039
5057
  condition: (
5040
5058
  /*asModal*/
5041
5059
  t[0]
5042
5060
  ),
5043
- $$slots: { default: [Oo] },
5061
+ $$slots: { default: [Ko] },
5044
5062
  $$scope: { ctx: t }
5045
5063
  }
5046
5064
  }), {
@@ -5068,12 +5086,12 @@ function Lo(t) {
5068
5086
  }
5069
5087
  };
5070
5088
  }
5071
- function xo(t, e, r) {
5089
+ function jo(t, e, r) {
5072
5090
  var et, tt;
5073
5091
  let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { purchaseOption: l } = e, { onFinished: c } = e, { onError: a } = e, { onClose: u } = e, { purchases: m } = e, { backend: h } = e, { purchaseOperationHelper: y } = e;
5074
5092
  const E = Object.entries(pe).map(([D, Le]) => `--rc-color-${D}: ${Le}`).join("; ");
5075
- let B = null, A = null, $ = null, R = null;
5076
- const C = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ve = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption, F = l || ve;
5093
+ let B = null, A = null, $ = null, U = null;
5094
+ const C = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ve = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption, x = l || ve;
5077
5095
  let S = "present-offer";
5078
5096
  const $e = [
5079
5097
  "present-offer",
@@ -5093,27 +5111,27 @@ function xo(t, e, r) {
5093
5111
  u();
5094
5112
  }, Ze = () => {
5095
5113
  if (C === null) {
5096
- fe(new Y(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
5114
+ fe(new G(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
5097
5115
  return;
5098
5116
  } else
5099
5117
  S === "present-offer" && r(6, S = "loading");
5100
5118
  if (!i) {
5101
- fe(new Y(O.MissingEmailError));
5119
+ fe(new G(O.MissingEmailError));
5102
5120
  return;
5103
5121
  }
5104
- y.startPurchase(o, C, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
5122
+ y.startPurchase(o, C, x, i, s.rcBillingProduct.presentedOfferingContext).then((D) => {
5105
5123
  if (D.next_action === "collect_payment_info") {
5106
- r(5, R = null), r(6, S = "needs-payment-info"), r(4, $ = D);
5124
+ r(5, U = null), r(6, S = "needs-payment-info"), r(4, $ = D);
5107
5125
  return;
5108
5126
  }
5109
5127
  if (D.next_action === "completed") {
5110
- r(5, R = null), r(6, S = "success");
5128
+ r(5, U = null), r(6, S = "success");
5111
5129
  return;
5112
5130
  }
5113
5131
  }).catch((D) => {
5114
5132
  fe(D);
5115
5133
  });
5116
- }, Yt = (D) => {
5134
+ }, Jt = (D) => {
5117
5135
  if (S === "needs-auth-info") {
5118
5136
  D && (r(14, i = D.email), r(6, S = "processing-auth-info")), Ze();
5119
5137
  return;
@@ -5133,12 +5151,12 @@ function xo(t, e, r) {
5133
5151
  r(6, S = "success");
5134
5152
  }, fe = (D) => {
5135
5153
  if (S === "processing-auth-info") {
5136
- r(5, R = D), r(6, S = "needs-auth-info");
5154
+ r(5, U = D), r(6, S = "needs-auth-info");
5137
5155
  return;
5138
5156
  }
5139
- r(5, R = D), r(6, S = "error");
5140
- }, Ht = () => {
5141
- a(R ?? new Y(O.UnknownError, "Unknown error without state set."));
5157
+ r(5, U = D), r(6, S = "error");
5158
+ }, Vt = () => {
5159
+ a(U ?? new G(O.UnknownError, "Unknown error without state set."));
5142
5160
  };
5143
5161
  return t.$$set = (D) => {
5144
5162
  "asModal" in D && r(0, n = D.asModal), "customerEmail" in D && r(14, i = D.customerEmail), "appUserId" in D && r(15, o = D.appUserId), "rcPackage" in D && r(16, s = D.rcPackage), "purchaseOption" in D && r(17, l = D.purchaseOption), "onFinished" in D && r(18, c = D.onFinished), "onError" in D && r(19, a = D.onError), "onClose" in D && r(20, u = D.onClose), "purchases" in D && r(1, m = D.purchases), "backend" in D && r(21, h = D.backend), "purchaseOperationHelper" in D && r(22, y = D.purchaseOperationHelper);
@@ -5148,15 +5166,15 @@ function xo(t, e, r) {
5148
5166
  B,
5149
5167
  A,
5150
5168
  $,
5151
- R,
5169
+ U,
5152
5170
  S,
5153
5171
  E,
5154
- F,
5172
+ x,
5155
5173
  $e,
5156
5174
  Be,
5157
- Yt,
5175
+ Jt,
5158
5176
  fe,
5159
- Ht,
5177
+ Vt,
5160
5178
  i,
5161
5179
  o,
5162
5180
  s,
@@ -5168,13 +5186,13 @@ function xo(t, e, r) {
5168
5186
  y
5169
5187
  ];
5170
5188
  }
5171
- class Fo extends U {
5189
+ class Jo extends R {
5172
5190
  constructor(e) {
5173
5191
  super(), N(
5174
5192
  this,
5175
5193
  e,
5176
- xo,
5177
- Lo,
5194
+ jo,
5195
+ qo,
5178
5196
  T,
5179
5197
  {
5180
5198
  asModal: 0,
@@ -5189,37 +5207,37 @@ class Fo extends U {
5189
5207
  backend: 21,
5190
5208
  purchaseOperationHelper: 22
5191
5209
  },
5192
- Mo
5210
+ Oo
5193
5211
  );
5194
5212
  }
5195
5213
  }
5196
- function Go(t) {
5214
+ function Vo(t) {
5197
5215
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
5198
5216
  }
5199
- function Yo(t, e, r, n) {
5217
+ function Wo(t, e, r, n) {
5200
5218
  const i = e.product_identifier;
5201
5219
  if (i in r)
5202
- return Ho(
5220
+ return zo(
5203
5221
  t,
5204
5222
  e,
5205
5223
  r[i]
5206
5224
  );
5207
5225
  if (i in n)
5208
- return Ko(
5226
+ return Xo(
5209
5227
  t,
5210
5228
  e,
5211
5229
  n[i]
5212
5230
  );
5213
- throw new z(
5214
- Z.CustomerInfoError,
5231
+ throw new W(
5232
+ X.CustomerInfoError,
5215
5233
  "Could not find entitlement product in subscriptions or non-subscriptions."
5216
5234
  );
5217
5235
  }
5218
- function Ho(t, e, r) {
5236
+ function zo(t, e, r) {
5219
5237
  return {
5220
5238
  identifier: t,
5221
- isActive: Go(e),
5222
- willRenew: Jo(e, r),
5239
+ isActive: Vo(e),
5240
+ willRenew: ts(e, r),
5223
5241
  store: (r == null ? void 0 : r.store) ?? "unknown",
5224
5242
  latestPurchaseDate: new Date(e.purchase_date),
5225
5243
  originalPurchaseDate: new Date(e.purchase_date),
@@ -5235,7 +5253,7 @@ function Ho(t, e, r) {
5235
5253
  periodType: (r == null ? void 0 : r.period_type) ?? "normal"
5236
5254
  };
5237
5255
  }
5238
- function Ko(t, e, r) {
5256
+ function Xo(t, e, r) {
5239
5257
  return {
5240
5258
  identifier: t,
5241
5259
  isActive: !0,
@@ -5253,10 +5271,10 @@ function Ko(t, e, r) {
5253
5271
  periodType: "normal"
5254
5272
  };
5255
5273
  }
5256
- function qo(t, e, r) {
5274
+ function Zo(t, e, r) {
5257
5275
  const n = {}, i = {};
5258
5276
  for (const o in t) {
5259
- const s = Yo(
5277
+ const s = Wo(
5260
5278
  o,
5261
5279
  t[o],
5262
5280
  e,
@@ -5272,22 +5290,22 @@ function qo(t, e, r) {
5272
5290
  function Ne(t) {
5273
5291
  return t == null ? null : new Date(t);
5274
5292
  }
5275
- function jo(t) {
5276
- const e = Wo(t), r = t.subscriber, n = Xo(
5293
+ function es(t) {
5294
+ const e = rs(t), r = t.subscriber, n = os(
5277
5295
  r.non_subscriptions
5278
5296
  );
5279
5297
  return {
5280
- entitlements: qo(
5298
+ entitlements: Zo(
5281
5299
  r.entitlements,
5282
5300
  r.subscriptions,
5283
5301
  n
5284
5302
  ),
5285
5303
  allExpirationDatesByProduct: e,
5286
- allPurchaseDatesByProduct: Vo(
5304
+ allPurchaseDatesByProduct: ns(
5287
5305
  t,
5288
5306
  n
5289
5307
  ),
5290
- activeSubscriptions: zo(e),
5308
+ activeSubscriptions: is(e),
5291
5309
  managementURL: r.management_url,
5292
5310
  requestDate: new Date(t.request_date),
5293
5311
  firstSeenDate: new Date(r.first_seen),
@@ -5297,13 +5315,13 @@ function jo(t) {
5297
5315
  originalAppUserId: t.subscriber.original_app_user_id
5298
5316
  };
5299
5317
  }
5300
- function Jo(t, e) {
5318
+ function ts(t, e) {
5301
5319
  if (e == null)
5302
5320
  return !1;
5303
5321
  const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
5304
5322
  return !(r || n || i || o);
5305
5323
  }
5306
- function Vo(t, e) {
5324
+ function ns(t, e) {
5307
5325
  const r = {};
5308
5326
  for (const n in t.subscriber.subscriptions) {
5309
5327
  const i = t.subscriber.subscriptions[n];
@@ -5317,7 +5335,7 @@ function Vo(t, e) {
5317
5335
  }
5318
5336
  return r;
5319
5337
  }
5320
- function Wo(t) {
5338
+ function rs(t) {
5321
5339
  const e = {};
5322
5340
  for (const r in t.subscriber.subscriptions) {
5323
5341
  const n = t.subscriber.subscriptions[r];
@@ -5327,7 +5345,7 @@ function Wo(t) {
5327
5345
  }
5328
5346
  return e;
5329
5347
  }
5330
- function zo(t) {
5348
+ function is(t) {
5331
5349
  const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
5332
5350
  for (const n in t) {
5333
5351
  const i = t[n];
@@ -5335,7 +5353,7 @@ function zo(t) {
5335
5353
  }
5336
5354
  return e;
5337
5355
  }
5338
- function Xo(t) {
5356
+ function os(t) {
5339
5357
  const e = {};
5340
5358
  for (const r in t) {
5341
5359
  if (t[r].length === 0)
@@ -5345,14 +5363,14 @@ function Xo(t) {
5345
5363
  }
5346
5364
  return e;
5347
5365
  }
5348
- function Zo(t) {
5366
+ function ss(t) {
5349
5367
  if (!/^rcb_[a-zA-Z0-9_.-]+$/.test(t))
5350
- throw new z(
5351
- Z.InvalidCredentialsError,
5368
+ throw new W(
5369
+ X.InvalidCredentialsError,
5352
5370
  "Invalid API key. Use your RevenueCat Billing API key."
5353
5371
  );
5354
5372
  }
5355
- function es(t) {
5373
+ function ls(t) {
5356
5374
  if ((/* @__PURE__ */ new Set([
5357
5375
  "no_user",
5358
5376
  "null",
@@ -5366,19 +5384,29 @@ function es(t) {
5366
5384
  "undefined",
5367
5385
  "unknown"
5368
5386
  ])).has(t) || t.includes("/"))
5369
- throw new z(
5370
- Z.InvalidAppUserIdError,
5387
+ throw new W(
5388
+ X.InvalidAppUserIdError,
5371
5389
  '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.'
5372
5390
  );
5373
5391
  }
5374
- function ts(t) {
5392
+ function cs(t) {
5375
5393
  if (t != null && t.endsWith("/"))
5376
- throw new z(
5377
- Z.ConfigurationError,
5394
+ throw new W(
5395
+ X.ConfigurationError,
5378
5396
  "Invalid proxy URL. The proxy URL should not end with a trailing slash."
5379
5397
  );
5380
5398
  }
5381
- const X = class X {
5399
+ function as(t) {
5400
+ if (t) {
5401
+ for (const e in t)
5402
+ if (ko.has(e))
5403
+ throw new W(
5404
+ X.ConfigurationError,
5405
+ "Invalid additional headers. Some headers are reserved for internal use."
5406
+ );
5407
+ }
5408
+ }
5409
+ const Z = class Z {
5382
5410
  /** @internal */
5383
5411
  constructor(e, r, n = je) {
5384
5412
  /** @internal */
@@ -5391,24 +5419,29 @@ const X = class X {
5391
5419
  P(this, "purchaseOperationHelper");
5392
5420
  /** @internal */
5393
5421
  P(this, "toOfferings", (e, r) => {
5394
- const n = e.offerings.find(
5395
- (l) => l.identifier === e.current_offering_id
5396
- ) ?? null, i = {};
5397
- r.product_details.forEach((l) => {
5398
- i[l.identifier] = l;
5422
+ const n = {};
5423
+ r.product_details.forEach((s) => {
5424
+ n[s.identifier] = s;
5425
+ });
5426
+ const i = {};
5427
+ e.offerings.forEach((s) => {
5428
+ const l = s.identifier === e.current_offering_id, c = cn(
5429
+ l,
5430
+ s,
5431
+ n,
5432
+ e.targeting
5433
+ );
5434
+ c != null && (i[s.identifier] = c);
5399
5435
  });
5400
- const o = n == null ? null : it(n, i), s = {};
5401
- return e.offerings.forEach((l) => {
5402
- const c = it(l, i);
5403
- c != null && (s[l.identifier] = c);
5404
- }), Object.keys(s).length == 0 && G.debugLog(
5436
+ const o = e.current_offering_id ? i[e.current_offering_id] ?? null : null;
5437
+ return Object.keys(i).length == 0 && Y.debugLog(
5405
5438
  "Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
5406
5439
  ), {
5407
- all: s,
5440
+ all: i,
5408
5441
  current: o
5409
5442
  };
5410
5443
  });
5411
- this._API_KEY = e, this._appUserId = r, qe(e) && G.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new yo(this._API_KEY, n), this.purchaseOperationHelper = new Hn(this.backend);
5444
+ this._API_KEY = e, this._appUserId = r, qe(e) && Y.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new Mo(this._API_KEY, n), this.purchaseOperationHelper = new Wn(this.backend);
5412
5445
  }
5413
5446
  /**
5414
5447
  * Set the log level. Logs of the given level and below will be printed
@@ -5417,7 +5450,7 @@ const X = class X {
5417
5450
  * @param logLevel - LogLevel to set.
5418
5451
  */
5419
5452
  static setLogLevel(e) {
5420
- G.setLogLevel(e);
5453
+ Y.setLogLevel(e);
5421
5454
  }
5422
5455
  /**
5423
5456
  * Get the singleton instance of Purchases. It's preferred to use the instance
@@ -5425,15 +5458,15 @@ const X = class X {
5425
5458
  * @throws {@link UninitializedPurchasesError} if the instance has not been initialized yet.
5426
5459
  */
5427
5460
  static getSharedInstance() {
5428
- if (X.isConfigured())
5429
- return X.instance;
5430
- throw new Yn();
5461
+ if (Z.isConfigured())
5462
+ return Z.instance;
5463
+ throw new Vn();
5431
5464
  }
5432
5465
  /**
5433
5466
  * Returns whether the Purchases SDK is configured or not.
5434
5467
  */
5435
5468
  static isConfigured() {
5436
- return X.instance !== void 0;
5469
+ return Z.instance !== void 0;
5437
5470
  }
5438
5471
  /**
5439
5472
  * Configures the Purchases SDK. This should be called as soon as your app
@@ -5445,9 +5478,9 @@ const X = class X {
5445
5478
  * @throws {@link PurchasesError} if the API key or user id are invalid.
5446
5479
  */
5447
5480
  static configure(e, r, n = je) {
5448
- return X.instance !== void 0 && G.warnLog(
5481
+ return Z.instance !== void 0 && Y.warnLog(
5449
5482
  "Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance."
5450
- ), Zo(e), es(r), ts(n.proxyURL), X.instance = new X(e, r, n), X.getSharedInstance();
5483
+ ), ss(e), ls(r), cs(n.proxyURL), as(n.additionalHeaders), Z.instance = new Z(e, r, n), Z.getSharedInstance();
5451
5484
  }
5452
5485
  /**
5453
5486
  * Fetch the configured offerings for this user. You can configure these
@@ -5512,10 +5545,10 @@ const X = class X {
5512
5545
  "Could not generate a mount point for the billing widget"
5513
5546
  );
5514
5547
  const l = s, c = !i, a = this._appUserId;
5515
- return G.debugLog(
5548
+ return Y.debugLog(
5516
5549
  `Presenting purchase form for package ${r.identifier}`
5517
5550
  ), new Promise((u, m) => {
5518
- new Fo({
5551
+ new Jo({
5519
5552
  target: l,
5520
5553
  props: {
5521
5554
  appUserId: a,
@@ -5523,15 +5556,15 @@ const X = class X {
5523
5556
  purchaseOption: n,
5524
5557
  customerEmail: o,
5525
5558
  onFinished: async () => {
5526
- G.debugLog("Purchase finished"), l.innerHTML = "", u({
5559
+ Y.debugLog("Purchase finished"), l.innerHTML = "", u({
5527
5560
  customerInfo: await this._getCustomerInfoForUserId(a)
5528
5561
  });
5529
5562
  },
5530
5563
  onClose: () => {
5531
- l.innerHTML = "", G.debugLog("Purchase cancelled by user"), m(new z(Z.UserCancelledError));
5564
+ l.innerHTML = "", Y.debugLog("Purchase cancelled by user"), m(new W(X.UserCancelledError));
5532
5565
  },
5533
5566
  onError: (h) => {
5534
- l.innerHTML = "", m(z.getForPurchasesFlowError(h));
5567
+ l.innerHTML = "", m(W.getForPurchasesFlowError(h));
5535
5568
  },
5536
5569
  purchases: this,
5537
5570
  backend: this.backend,
@@ -5572,7 +5605,7 @@ const X = class X {
5572
5605
  const i = [];
5573
5606
  e.forEach((o) => {
5574
5607
  n[o] === void 0 && i.push(o);
5575
- }), i.length > 0 && G.debugLog(
5608
+ }), i.length > 0 && Y.debugLog(
5576
5609
  `Could not find product data for product ids:
5577
5610
  ${i.join()}.
5578
5611
  Please check that your product configuration is correct.`
@@ -5588,24 +5621,24 @@ const X = class X {
5588
5621
  * Closes the Purchases instance. You should never have to do this normally.
5589
5622
  */
5590
5623
  close() {
5591
- X.instance === this ? X.instance = void 0 : G.warnLog(
5624
+ Z.instance === this ? Z.instance = void 0 : Y.warnLog(
5592
5625
  "Trying to close a Purchases instance that is not the current instance. Ignoring."
5593
5626
  );
5594
5627
  }
5595
5628
  /** @internal */
5596
5629
  async _getCustomerInfoForUserId(e) {
5597
5630
  const r = await this.backend.getCustomerInfo(e);
5598
- return jo(r);
5631
+ return es(r);
5599
5632
  }
5600
5633
  };
5601
5634
  /** @internal */
5602
- P(X, "instance");
5603
- let $t = X;
5635
+ P(Z, "instance");
5636
+ let vt = Z;
5604
5637
  export {
5605
- Z as ErrorCode,
5606
- W as LogLevel,
5607
- zt as PackageType,
5608
- $t as Purchases,
5609
- z as PurchasesError,
5610
- Yn as UninitializedPurchasesError
5638
+ X as ErrorCode,
5639
+ z as LogLevel,
5640
+ nn as PackageType,
5641
+ vt as Purchases,
5642
+ W as PurchasesError,
5643
+ Vn as UninitializedPurchasesError
5611
5644
  };