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EAAEqoC,QAAQlxC,GAAKwG,EAAI5K,EAAIhB,EAAIoF,EAAIyD,EAAEgE,GAAKzH,EAAIzF,EAAIyF,GAAiB,iBAALA,GAAuB,OAANA,EAAatG,EAAG,oBAAsBU,EAAGgH,EAAIpB,EAAE1E,OAASmI,EAAEnI,IAAM8F,GAAIhH,EAAGgH,EAAIpB,EAAExE,OAASiI,EAAEjI,IAAM4F,GAAIhH,EAAGgH,EAAIpB,EAAEmxC,OAAStoC,EAAEqoC,QAAQ9vC,IACnoBoF,GAAKzL,EAAGzB,EAAGiB,GAAIkJ,GAAKxK,EAAGsB,EAAGV,EAAG4J,EAAyB,EAqpLhDstC,CAAG7F,GAAI,EAAG,WAAYD,GAAImC,IAAKryC,EAAGmwC,GAAIkC,IACrDpyC,EAAEoyC,GAAI,YACN,IAAIgE,GAAKhE,E","sources":["webpack://app/./node_modules/@revenuecat/purchases-js/dist/Purchases.es.js"],"sourcesContent":["var oo = Object.create;\nvar ur = Object.defineProperty;\nvar ao = Object.getOwnPropertyDescriptor;\nvar ln = (e, t) => (t = Symbol[e]) ? t : Symbol.for(\"Symbol.\" + e), yt = (e) => {\n throw TypeError(e);\n};\nvar cn = (e, t, r) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;\nvar on = (e, t) => ur(e, \"name\", { value: t, configurable: !0 });\nvar un = (e) => [, , , oo((e == null ? void 0 : e[ln(\"metadata\")]) ?? null)], fn = [\"class\", \"method\", \"getter\", \"setter\", \"accessor\", \"field\", \"value\", \"get\", \"set\"], mt = (e) => e !== void 0 && typeof e != \"function\" ? yt(\"Function expected\") : e, so = (e, t, r, n, i) => ({ kind: fn[e], name: t, metadata: n, addInitializer: (o) => r._ ? yt(\"Already initialized\") : i.push(mt(o || null)) }), fr = (e, t) => cn(t, ln(\"metadata\"), e[3]), dn = (e, t, r, n) => {\n for (var i = 0, o = e[t >> 1], a = o && o.length; i < a; i++) t & 1 ? o[i].call(r) : n = o[i].call(r, n);\n return n;\n}, vn = (e, t, r, n, i, o) => {\n var a, s, c, l, f, u = t & 7, d = !!(t & 8), v = !!(t & 16), h = u > 3 ? e.length + 1 : u ? d ? 1 : 2 : 0, p = fn[u + 5], E = u > 3 && (e[h - 1] = []), w = e[h] || (e[h] = []), m = u && (!v && !d && (i = i.prototype), u < 5 && (u > 3 || !v) && ao(u < 4 ? i : { get [r]() {\n return an(this, o);\n }, set [r](_) {\n return sn(this, o, _);\n } }, r));\n u ? v && u < 4 && on(o, (u > 2 ? \"set \" : u > 1 ? \"get \" : \"\") + r) : on(i, r);\n for (var P = n.length - 1; P >= 0; P--)\n l = so(u, r, c = {}, e[3], w), u && (l.static = d, l.private = v, f = l.access = { has: v ? (_) => lo(i, _) : (_) => r in _ }, u ^ 3 && (f.get = v ? (_) => (u ^ 1 ? an : co)(_, i, u ^ 4 ? o : m.get) : (_) => _[r]), u > 2 && (f.set = v ? (_, x) => sn(_, i, x, u ^ 4 ? o : m.set) : (_, x) => _[r] = x)), s = (0, n[P])(u ? u < 4 ? v ? o : m[p] : u > 4 ? void 0 : { get: m.get, set: m.set } : i, l), c._ = 1, u ^ 4 || s === void 0 ? mt(s) && (u > 4 ? E.unshift(s) : u ? v ? o = s : m[p] = s : i = s) : typeof s != \"object\" || s === null ? yt(\"Object expected\") : (mt(a = s.get) && (m.get = a), mt(a = s.set) && (m.set = a), mt(a = s.init) && E.unshift(a));\n return u || fr(e, i), m && ur(i, r, m), v ? u ^ 4 ? o : m : i;\n}, D = (e, t, r) => cn(e, typeof t != \"symbol\" ? t + \"\" : t, r), dr = (e, t, r) => t.has(e) || yt(\"Cannot \" + r), lo = (e, t) => Object(t) !== t ? yt('Cannot use the \"in\" operator on this value') : e.has(t), an = (e, t, r) => (dr(e, t, \"read from private field\"), r ? r.call(e) : t.get(e));\nvar sn = (e, t, r, n) => (dr(e, t, \"write to private field\"), n ? n.call(e, r) : t.set(e, r), r), co = (e, t, r) => (dr(e, t, \"access private method\"), r);\nconst uo = \"5\";\ntypeof window < \"u\" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(uo);\nlet ut = !1;\nfunction fo() {\n ut = !0;\n}\nfo();\nconst Dr = 1, Mr = 2, Hn = 4, vo = 8, go = 16, _o = 1, ho = 2, po = 4, bo = 8, mo = 16, yo = 1, wo = 2, de = Symbol(), Ur = \"http://www.w3.org/2000/svg\", Eo = !1;\nvar Dt = Array.isArray, Lr = Array.from, xo = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, Vn = Object.getOwnPropertyDescriptors, Io = Object.prototype, Po = Array.prototype, Qt = Object.getPrototypeOf;\nfunction wt(e) {\n return typeof e == \"function\";\n}\nconst Fe = () => {\n};\nfunction ko(e) {\n return e();\n}\nfunction _r(e) {\n for (var t = 0; t < e.length; t++)\n e[t]();\n}\nconst je = 2, Gn = 4, Mt = 8, Cr = 16, ye = 32, Ut = 64, et = 128, Wt = 256, ae = 512, Ye = 1024, ft = 2048, Te = 4096, Lt = 8192, To = 16384, dt = 32768, Ao = 65536, Oo = 1 << 18, $n = 1 << 19, Ge = Symbol(\"$state\"), Yn = Symbol(\"legacy props\"), No = Symbol(\"\");\nfunction zn(e) {\n return e === this.v;\n}\nfunction Kn(e, t) {\n return e != e ? t == t : e !== t || e !== null && typeof e == \"object\" || typeof e == \"function\";\n}\nfunction Br(e) {\n return !Kn(e, this.v);\n}\nfunction So(e) {\n throw new Error(\"effect_in_teardown\");\n}\nfunction Ro() {\n throw new Error(\"effect_in_unowned_derived\");\n}\nfunction Do(e) {\n throw new Error(\"effect_orphan\");\n}\nfunction Mo() {\n throw new Error(\"effect_update_depth_exceeded\");\n}\nfunction Uo(e) {\n throw new Error(\"lifecycle_legacy_only\");\n}\nfunction Lo(e) {\n throw new Error(\"props_invalid_value\");\n}\nfunction Co() {\n throw new Error(\"state_descriptors_fixed\");\n}\nfunction Bo() {\n throw new Error(\"state_prototype_fixed\");\n}\nfunction qo() {\n throw new Error(\"state_unsafe_local_read\");\n}\nfunction Fo() {\n throw new Error(\"state_unsafe_mutation\");\n}\nfunction _e(e) {\n return {\n f: 0,\n // TODO ideally we could skip this altogether, but it causes type errors\n v: e,\n reactions: null,\n equals: zn,\n version: 0\n };\n}\nfunction jo(e) {\n return /* @__PURE__ */ Qn(_e(e));\n}\n// @__NO_SIDE_EFFECTS__\nfunction tr(e, t = !1) {\n var n;\n const r = _e(e);\n return t || (r.equals = Br), ut && M !== null && M.l !== null && ((n = M.l).s ?? (n.s = [])).push(r), r;\n}\nfunction ce(e, t = !1) {\n return /* @__PURE__ */ Qn(/* @__PURE__ */ tr(e, t));\n}\n// @__NO_SIDE_EFFECTS__\nfunction Qn(e) {\n return F !== null && F.f & je && (Ae === null ? zo([e]) : Ae.push(e)), e;\n}\nfunction A(e, t) {\n return F !== null && nr() && F.f & (je | Cr) && // If the source was created locally within the current derived, then\n // we allow the mutation.\n (Ae === null || !Ae.includes(e)) && Fo(), hr(e, t);\n}\nfunction hr(e, t) {\n return e.equals(t) || (e.v = t, e.version = li(), Wn(e, Ye), nr() && S !== null && S.f & ae && !(S.f & ye) && (ee !== null && ee.includes(e) ? (we(S, Ye), ir(S)) : $e === null ? Ko([e]) : $e.push(e))), t;\n}\nfunction Wn(e, t) {\n var r = e.reactions;\n if (r !== null)\n for (var n = nr(), i = r.length, o = 0; o < i; o++) {\n var a = r[o], s = a.f;\n s & Ye || !n && a === S || (we(a, t), s & (ae | et) && (s & je ? Wn(\n /** @type {Derived} */\n a,\n ft\n ) : ir(\n /** @type {Effect} */\n a\n )));\n }\n}\n// @__NO_SIDE_EFFECTS__\nfunction Q(e) {\n var t = je | Ye;\n S === null ? t |= et : S.f |= $n;\n const r = {\n children: null,\n ctx: M,\n deps: null,\n equals: zn,\n f: t,\n fn: e,\n reactions: null,\n v: (\n /** @type {V} */\n null\n ),\n version: 0,\n parent: S\n };\n if (F !== null && F.f & je) {\n var n = (\n /** @type {Derived} */\n F\n );\n (n.children ?? (n.children = [])).push(r);\n }\n return r;\n}\n// @__NO_SIDE_EFFECTS__\nfunction ne(e) {\n const t = /* @__PURE__ */ Q(e);\n return t.equals = Br, t;\n}\nfunction Zn(e) {\n var t = e.children;\n if (t !== null) {\n e.children = null;\n for (var r = 0; r < t.length; r += 1) {\n var n = t[r];\n n.f & je ? qr(\n /** @type {Derived} */\n n\n ) : Ne(\n /** @type {Effect} */\n n\n );\n }\n }\n}\nfunction Xn(e) {\n var t, r = S;\n Oe(e.parent);\n try {\n Zn(e), t = ci(e);\n } finally {\n Oe(r);\n }\n return t;\n}\nfunction Jn(e) {\n var t = Xn(e), r = (st || e.f & et) && e.deps !== null ? ft : ae;\n we(e, r), e.equals(t) || (e.v = t, e.version = li());\n}\nfunction qr(e) {\n Zn(e), St(e, 0), we(e, Lt), e.v = e.children = e.deps = e.ctx = e.reactions = null;\n}\nfunction ei(e) {\n S === null && F === null && Do(), F !== null && F.f & et && Ro(), Gr && So();\n}\nfunction Ho(e, t) {\n var r = t.last;\n r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);\n}\nfunction vt(e, t, r, n = !0) {\n var i = (e & Ut) !== 0, o = S, a = {\n ctx: M,\n deps: null,\n deriveds: null,\n nodes_start: null,\n nodes_end: null,\n f: e | Ye,\n first: null,\n fn: t,\n last: null,\n next: null,\n parent: i ? null : o,\n prev: null,\n teardown: null,\n transitions: null,\n version: 0\n };\n if (r) {\n var s = lt;\n try {\n gn(!0), Bt(a), a.f |= To;\n } catch (f) {\n throw Ne(a), f;\n } finally {\n gn(s);\n }\n } else t !== null && ir(a);\n var c = r && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & $n) === 0;\n if (!c && !i && n && (o !== null && Ho(a, o), F !== null && F.f & je)) {\n var l = (\n /** @type {Derived} */\n F\n );\n (l.children ?? (l.children = [])).push(a);\n }\n return a;\n}\nfunction Fr(e) {\n const t = vt(Mt, null, !1);\n return we(t, ae), t.teardown = e, t;\n}\nfunction pr(e) {\n ei();\n var t = S !== null && (S.f & ye) !== 0 && M !== null && !M.m;\n if (t) {\n var r = (\n /** @type {ComponentContext} */\n M\n );\n (r.e ?? (r.e = [])).push({\n fn: e,\n effect: S,\n reaction: F\n });\n } else {\n var n = jr(e);\n return n;\n }\n}\nfunction Vo(e) {\n return ei(), Ct(e);\n}\nfunction Go(e) {\n const t = vt(Ut, e, !0);\n return () => {\n Ne(t);\n };\n}\nfunction jr(e) {\n return vt(Gn, e, !1);\n}\nfunction Xe(e, t) {\n var r = (\n /** @type {ComponentContextLegacy} */\n M\n ), n = { effect: null, ran: !1 };\n r.l.r1.push(n), n.effect = Ct(() => {\n e(), !n.ran && (n.ran = !0, A(r.l.r2, !0), Je(t));\n });\n}\nfunction Hr() {\n var e = (\n /** @type {ComponentContextLegacy} */\n M\n );\n Ct(() => {\n if (g(e.l.r2)) {\n for (var t of e.l.r1) {\n var r = t.effect;\n r.f & ae && we(r, ft), _t(r) && Bt(r), t.ran = !1;\n }\n e.l.r2.v = !1;\n }\n });\n}\nfunction Ct(e) {\n return vt(Mt, e, !0);\n}\nfunction B(e) {\n return tt(e);\n}\nfunction tt(e, t = 0) {\n return vt(Mt | Cr | t, e, !0);\n}\nfunction He(e, t = !0) {\n return vt(Mt | ye, e, !0, t);\n}\nfunction ti(e) {\n var t = e.teardown;\n if (t !== null) {\n const r = Gr, n = F;\n _n(!0), ze(null);\n try {\n t.call(null);\n } finally {\n _n(r), ze(n);\n }\n }\n}\nfunction ri(e) {\n var t = e.deriveds;\n if (t !== null) {\n e.deriveds = null;\n for (var r = 0; r < t.length; r += 1)\n qr(t[r]);\n }\n}\nfunction ni(e, t = !1) {\n var r = e.first;\n for (e.first = e.last = null; r !== null; ) {\n var n = r.next;\n Ne(r, t), r = n;\n }\n}\nfunction $o(e) {\n for (var t = e.first; t !== null; ) {\n var r = t.next;\n t.f & ye || Ne(t), t = r;\n }\n}\nfunction Ne(e, t = !0) {\n var r = !1;\n if ((t || e.f & Oo) && e.nodes_start !== null) {\n for (var n = e.nodes_start, i = e.nodes_end; n !== null; ) {\n var o = n === i ? null : (\n /** @type {TemplateNode} */\n /* @__PURE__ */ or(n)\n );\n n.remove(), n = o;\n }\n r = !0;\n }\n ni(e, t && !r), ri(e), St(e, 0), we(e, Lt);\n var a = e.transitions;\n if (a !== null)\n for (const c of a)\n c.stop();\n ti(e);\n var s = e.parent;\n s !== null && s.first !== null && ii(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.parent = e.fn = e.nodes_start = e.nodes_end = null;\n}\nfunction ii(e) {\n var t = e.parent, r = e.prev, n = e.next;\n r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));\n}\nfunction Ot(e, t) {\n var r = [];\n Vr(e, r, !0), oi(r, () => {\n Ne(e), t && t();\n });\n}\nfunction oi(e, t) {\n var r = e.length;\n if (r > 0) {\n var n = () => --r || t();\n for (var i of e)\n i.out(n);\n } else\n t();\n}\nfunction Vr(e, t, r) {\n if (!(e.f & Te)) {\n if (e.f ^= Te, e.transitions !== null)\n for (const a of e.transitions)\n (a.is_global || r) && t.push(a);\n for (var n = e.first; n !== null; ) {\n var i = n.next, o = (n.f & dt) !== 0 || (n.f & ye) !== 0;\n Vr(n, t, o ? r : !1), n = i;\n }\n }\n}\nfunction Nt(e) {\n ai(e, !0);\n}\nfunction ai(e, t) {\n if (e.f & Te) {\n _t(e) && Bt(e), e.f ^= Te;\n for (var r = e.first; r !== null; ) {\n var n = r.next, i = (r.f & dt) !== 0 || (r.f & ye) !== 0;\n ai(r, i ? t : !1), r = n;\n }\n if (e.transitions !== null)\n for (const o of e.transitions)\n (o.is_global || t) && o.in();\n }\n}\nlet br = !1, mr = [];\nfunction Yo() {\n br = !1;\n const e = mr.slice();\n mr = [], _r(e);\n}\nfunction gt(e) {\n br || (br = !0, queueMicrotask(Yo)), mr.push(e);\n}\nfunction rr(e) {\n throw new Error(\"lifecycle_outside_component\");\n}\nlet Zt = !1, lt = !1, Gr = !1;\nfunction gn(e) {\n lt = e;\n}\nfunction _n(e) {\n Gr = e;\n}\nlet yr = [], kt = 0;\nlet F = null;\nfunction ze(e) {\n F = e;\n}\nlet S = null;\nfunction Oe(e) {\n S = e;\n}\nlet Ae = null;\nfunction zo(e) {\n Ae = e;\n}\nlet ee = null, ge = 0, $e = null;\nfunction Ko(e) {\n $e = e;\n}\nlet si = 0, st = !1, M = null;\nfunction li() {\n return ++si;\n}\nfunction nr() {\n return !ut || M !== null && M.l === null;\n}\nfunction _t(e) {\n var a, s;\n var t = e.f;\n if (t & Ye)\n return !0;\n if (t & ft) {\n var r = e.deps, n = (t & et) !== 0;\n if (r !== null) {\n var i;\n if (t & Wt) {\n for (i = 0; i < r.length; i++)\n ((a = r[i]).reactions ?? (a.reactions = [])).push(e);\n e.f ^= Wt;\n }\n for (i = 0; i < r.length; i++) {\n var o = r[i];\n if (_t(\n /** @type {Derived} */\n o\n ) && Jn(\n /** @type {Derived} */\n o\n ), n && S !== null && !st && !((s = o == null ? void 0 : o.reactions) != null && s.includes(e)) && (o.reactions ?? (o.reactions = [])).push(e), o.version > e.version)\n return !0;\n }\n }\n n || we(e, ae);\n }\n return !1;\n}\nfunction Qo(e, t, r) {\n throw e;\n}\nfunction ci(e) {\n var d;\n var t = ee, r = ge, n = $e, i = F, o = st, a = Ae, s = M, c = e.f;\n ee = /** @type {null | Value[]} */\n null, ge = 0, $e = null, F = c & (ye | Ut) ? null : e, st = !lt && (c & et) !== 0, Ae = null, M = e.ctx;\n try {\n var l = (\n /** @type {Function} */\n (0, e.fn)()\n ), f = e.deps;\n if (ee !== null) {\n var u;\n if (St(e, ge), f !== null && ge > 0)\n for (f.length = ge + ee.length, u = 0; u < ee.length; u++)\n f[ge + u] = ee[u];\n else\n e.deps = f = ee;\n if (!st)\n for (u = ge; u < f.length; u++)\n ((d = f[u]).reactions ?? (d.reactions = [])).push(e);\n } else f !== null && ge < f.length && (St(e, ge), f.length = ge);\n return l;\n } finally {\n ee = t, ge = r, $e = n, F = i, st = o, Ae = a, M = s;\n }\n}\nfunction Wo(e, t) {\n let r = t.reactions;\n if (r !== null) {\n var n = r.indexOf(e);\n if (n !== -1) {\n var i = r.length - 1;\n i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());\n }\n }\n r === null && t.f & je && // Destroying a child effect while updating a parent effect can cause a dependency to appear\n // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`\n // allows us to skip the expensive work of disconnecting and immediately reconnecting it\n (ee === null || !ee.includes(t)) && (we(t, ft), t.f & (et | Wt) || (t.f ^= Wt), St(\n /** @type {Derived} **/\n t,\n 0\n ));\n}\nfunction St(e, t) {\n var r = e.deps;\n if (r !== null)\n for (var n = t; n < r.length; n++)\n Wo(e, r[n]);\n}\nfunction Bt(e) {\n var t = e.f;\n if (!(t & Lt)) {\n we(e, ae);\n var r = S;\n S = e;\n try {\n t & Cr ? $o(e) : ni(e), ri(e), ti(e);\n var n = ci(e);\n e.teardown = typeof n == \"function\" ? n : null, e.version = si;\n } catch (i) {\n Qo(\n /** @type {Error} */\n i\n );\n } finally {\n S = r;\n }\n }\n}\nfunction Zo() {\n kt > 1e3 && (kt = 0, Mo()), kt++;\n}\nfunction Xo(e) {\n var t = e.length;\n if (t !== 0) {\n Zo();\n var r = lt;\n lt = !0;\n try {\n for (var n = 0; n < t; n++) {\n var i = e[n];\n i.f & ae || (i.f ^= ae);\n var o = [];\n ui(i, o), Jo(o);\n }\n } finally {\n lt = r;\n }\n }\n}\nfunction Jo(e) {\n var t = e.length;\n if (t !== 0)\n for (var r = 0; r < t; r++) {\n var n = e[r];\n !(n.f & (Lt | Te)) && _t(n) && (Bt(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null ? ii(n) : n.fn = null));\n }\n}\nfunction ea() {\n if (Zt = !1, kt > 1001)\n return;\n const e = yr;\n yr = [], Xo(e), Zt || (kt = 0);\n}\nfunction ir(e) {\n Zt || (Zt = !0, queueMicrotask(ea));\n for (var t = e; t.parent !== null; ) {\n t = t.parent;\n var r = t.f;\n if (r & (Ut | ye)) {\n if (!(r & ae)) return;\n t.f ^= ae;\n }\n }\n yr.push(t);\n}\nfunction ui(e, t) {\n var r = e.first, n = [];\n e: for (; r !== null; ) {\n var i = r.f, o = (i & ye) !== 0, a = o && (i & ae) !== 0;\n if (!a && !(i & Te))\n if (i & Mt) {\n o ? r.f ^= ae : _t(r) && Bt(r);\n var s = r.first;\n if (s !== null) {\n r = s;\n continue;\n }\n } else i & Gn && n.push(r);\n var c = r.next;\n if (c === null) {\n let u = r.parent;\n for (; u !== null; ) {\n if (e === u)\n break e;\n var l = u.next;\n if (l !== null) {\n r = l;\n continue e;\n }\n u = u.parent;\n }\n }\n r = c;\n }\n for (var f = 0; f < n.length; f++)\n s = n[f], t.push(s), ui(s, t);\n}\nfunction g(e) {\n var s;\n var t = e.f, r = (t & je) !== 0;\n if (r && t & Lt) {\n var n = Xn(\n /** @type {Derived} */\n e\n );\n return qr(\n /** @type {Derived} */\n e\n ), n;\n }\n if (F !== null) {\n Ae !== null && Ae.includes(e) && qo();\n var i = F.deps;\n ee === null && i !== null && i[ge] === e ? ge++ : ee === null ? ee = [e] : ee.push(e), $e !== null && S !== null && S.f & ae && !(S.f & ye) && $e.includes(e) && (we(S, Ye), ir(S));\n } else if (r && /** @type {Derived} */\n e.deps === null) {\n var o = (\n /** @type {Derived} */\n e\n ), a = o.parent;\n a !== null && !((s = a.deriveds) != null && s.includes(o)) && (a.deriveds ?? (a.deriveds = [])).push(o);\n }\n return r && (o = /** @type {Derived} */\n e, _t(o) && Jn(o)), e.v;\n}\nfunction Je(e) {\n const t = F;\n try {\n return F = null, e();\n } finally {\n F = t;\n }\n}\nconst ta = ~(Ye | ft | ae);\nfunction we(e, t) {\n e.f = e.f & ta | t;\n}\nfunction ra(e) {\n return (\n /** @type {T} */\n fi().get(e)\n );\n}\nfunction hn(e, t) {\n return fi().set(e, t), t;\n}\nfunction fi(e) {\n return M === null && rr(), M.c ?? (M.c = new Map(na(M) || void 0));\n}\nfunction na(e) {\n let t = e.p;\n for (; t !== null; ) {\n const r = t.c;\n if (r !== null)\n return r;\n t = t.p;\n }\n return null;\n}\nfunction $(e, t = !1, r) {\n M = {\n p: M,\n c: null,\n e: null,\n m: !1,\n s: e,\n x: null,\n l: null\n }, ut && !t && (M.l = {\n s: null,\n u: null,\n r1: [],\n r2: _e(!1)\n });\n}\nfunction Y(e) {\n const t = M;\n if (t !== null) {\n e !== void 0 && (t.x = e);\n const a = t.e;\n if (a !== null) {\n var r = S, n = F;\n t.e = null;\n try {\n for (var i = 0; i < a.length; i++) {\n var o = a[i];\n Oe(o.effect), ze(o.reaction), jr(o.fn);\n }\n } finally {\n Oe(r), ze(n);\n }\n }\n M = t.p, t.m = !0;\n }\n return e || /** @type {T} */\n {};\n}\nfunction J(e) {\n if (!(typeof e != \"object\" || !e || e instanceof EventTarget)) {\n if (Ge in e)\n wr(e);\n else if (!Array.isArray(e))\n for (let t in e) {\n const r = e[t];\n typeof r == \"object\" && r && Ge in r && wr(r);\n }\n }\n}\nfunction wr(e, t = /* @__PURE__ */ new Set()) {\n if (typeof e == \"object\" && e !== null && // We don't want to traverse DOM elements\n !(e instanceof EventTarget) && !t.has(e)) {\n t.add(e), e instanceof Date && e.getTime();\n for (let n in e)\n try {\n wr(e[n], t);\n } catch {\n }\n const r = Qt(e);\n if (r !== Object.prototype && r !== Array.prototype && r !== Map.prototype && r !== Set.prototype && r !== Date.prototype) {\n const n = Vn(r);\n for (let i in n) {\n const o = n[i].get;\n if (o)\n try {\n o.call(e);\n } catch {\n }\n }\n }\n }\n}\nfunction Ce(e, t = null, r) {\n if (typeof e != \"object\" || e === null || Ge in e)\n return e;\n const n = Qt(e);\n if (n !== Io && n !== Po)\n return e;\n var i = /* @__PURE__ */ new Map(), o = Dt(e), a = _e(0);\n o && i.set(\"length\", _e(\n /** @type {any[]} */\n e.length\n ));\n var s;\n return new Proxy(\n /** @type {any} */\n e,\n {\n defineProperty(c, l, f) {\n (!(\"value\" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Co();\n var u = i.get(l);\n return u === void 0 ? (u = _e(f.value), i.set(l, u)) : A(u, Ce(f.value, s)), !0;\n },\n deleteProperty(c, l) {\n var f = i.get(l);\n if (f === void 0)\n l in c && i.set(l, _e(de));\n else {\n if (o && typeof l == \"string\") {\n var u = (\n /** @type {Source} */\n i.get(\"length\")\n ), d = Number(l);\n Number.isInteger(d) && d < u.v && A(u, d);\n }\n A(f, de), pn(a);\n }\n return !0;\n },\n get(c, l, f) {\n var h;\n if (l === Ge)\n return e;\n var u = i.get(l), d = l in c;\n if (u === void 0 && (!d || (h = qe(c, l)) != null && h.writable) && (u = _e(Ce(d ? c[l] : de, s)), i.set(l, u)), u !== void 0) {\n var v = g(u);\n return v === de ? void 0 : v;\n }\n return Reflect.get(c, l, f);\n },\n getOwnPropertyDescriptor(c, l) {\n var f = Reflect.getOwnPropertyDescriptor(c, l);\n if (f && \"value\" in f) {\n var u = i.get(l);\n u && (f.value = g(u));\n } else if (f === void 0) {\n var d = i.get(l), v = d == null ? void 0 : d.v;\n if (d !== void 0 && v !== de)\n return {\n enumerable: !0,\n configurable: !0,\n value: v,\n writable: !0\n };\n }\n return f;\n },\n has(c, l) {\n var v;\n if (l === Ge)\n return !0;\n var f = i.get(l), u = f !== void 0 && f.v !== de || Reflect.has(c, l);\n if (f !== void 0 || S !== null && (!u || (v = qe(c, l)) != null && v.writable)) {\n f === void 0 && (f = _e(u ? Ce(c[l], s) : de), i.set(l, f));\n var d = g(f);\n if (d === de)\n return !1;\n }\n return u;\n },\n set(c, l, f, u) {\n var P;\n var d = i.get(l), v = l in c;\n if (o && l === \"length\")\n for (var h = f; h < /** @type {Source} */\n d.v; h += 1) {\n var p = i.get(h + \"\");\n p !== void 0 ? A(p, de) : h in c && (p = _e(de), i.set(h + \"\", p));\n }\n d === void 0 ? (!v || (P = qe(c, l)) != null && P.writable) && (d = _e(void 0), A(d, Ce(f, s)), i.set(l, d)) : (v = d.v !== de, A(d, Ce(f, s)));\n var E = Reflect.getOwnPropertyDescriptor(c, l);\n if (E != null && E.set && E.set.call(u, f), !v) {\n if (o && typeof l == \"string\") {\n var w = (\n /** @type {Source} */\n i.get(\"length\")\n ), m = Number(l);\n Number.isInteger(m) && m >= w.v && A(w, m + 1);\n }\n pn(a);\n }\n return !0;\n },\n ownKeys(c) {\n g(a);\n var l = Reflect.ownKeys(c).filter((d) => {\n var v = i.get(d);\n return v === void 0 || v.v !== de;\n });\n for (var [f, u] of i)\n u.v !== de && !(f in c) && l.push(f);\n return l;\n },\n setPrototypeOf() {\n Bo();\n }\n }\n );\n}\nfunction pn(e, t = 1) {\n A(e, e.v + t);\n}\nvar bn, di, vi;\nfunction ia() {\n if (bn === void 0) {\n bn = window;\n var e = Element.prototype, t = Node.prototype;\n di = qe(t, \"firstChild\").get, vi = qe(t, \"nextSibling\").get, e.__click = void 0, e.__className = \"\", e.__attributes = null, e.__styles = null, e.__e = void 0, Text.prototype.__t = void 0;\n }\n}\nfunction qt(e = \"\") {\n return document.createTextNode(e);\n}\n// @__NO_SIDE_EFFECTS__\nfunction Rt(e) {\n return di.call(e);\n}\n// @__NO_SIDE_EFFECTS__\nfunction or(e) {\n return vi.call(e);\n}\nfunction k(e, t) {\n return /* @__PURE__ */ Rt(e);\n}\nfunction U(e, t) {\n {\n var r = (\n /** @type {DocumentFragment} */\n /* @__PURE__ */ Rt(\n /** @type {Node} */\n e\n )\n );\n return r instanceof Comment && r.data === \"\" ? /* @__PURE__ */ or(r) : r;\n }\n}\nfunction N(e, t = 1, r = !1) {\n let n = e;\n for (; t--; )\n n = /** @type {TemplateNode} */\n /* @__PURE__ */ or(n);\n return n;\n}\nfunction oa(e) {\n e.textContent = \"\";\n}\nlet gi = !1;\nfunction aa(e, t) {\n if (t) {\n const r = document.body;\n e.autofocus = !0, gt(() => {\n document.activeElement === r && e.focus();\n });\n }\n}\nlet mn = !1;\nfunction sa() {\n mn || (mn = !0, document.addEventListener(\n \"reset\",\n (e) => {\n Promise.resolve().then(() => {\n var t;\n if (!e.defaultPrevented)\n for (\n const r of\n /**@type {HTMLFormElement} */\n e.target.elements\n )\n (t = r.__on_r) == null || t.call(r);\n });\n },\n // In the capture phase to guarantee we get noticed of it (no possiblity of stopPropagation)\n { capture: !0 }\n ));\n}\nfunction _i(e) {\n var t = F, r = S;\n ze(null), Oe(null);\n try {\n return e();\n } finally {\n ze(t), Oe(r);\n }\n}\nfunction la(e, t, r, n = r) {\n e.addEventListener(t, () => _i(r));\n const i = e.__on_r;\n i ? e.__on_r = () => {\n i(), n();\n } : e.__on_r = n, sa();\n}\nconst hi = /* @__PURE__ */ new Set(), Er = /* @__PURE__ */ new Set();\nfunction xr(e, t, r, n) {\n function i(o) {\n if (n.capture || It.call(t, o), !o.cancelBubble)\n return _i(() => r.call(this, o));\n }\n return e.startsWith(\"pointer\") || e.startsWith(\"touch\") || e === \"wheel\" ? gt(() => {\n t.addEventListener(e, i, n);\n }) : t.addEventListener(e, i, n), i;\n}\nfunction ar(e, t, r, n, i) {\n var o = { capture: n, passive: i }, a = xr(e, t, r, o);\n (t === document.body || t === window || t === document) && Fr(() => {\n t.removeEventListener(e, a, o);\n });\n}\nfunction $r(e) {\n for (var t = 0; t < e.length; t++)\n hi.add(e[t]);\n for (var r of Er)\n r(e);\n}\nfunction It(e) {\n var m;\n var t = this, r = (\n /** @type {Node} */\n t.ownerDocument\n ), n = e.type, i = ((m = e.composedPath) == null ? void 0 : m.call(e)) || [], o = (\n /** @type {null | Element} */\n i[0] || e.target\n ), a = 0, s = e.__root;\n if (s) {\n var c = i.indexOf(s);\n if (c !== -1 && (t === document || t === /** @type {any} */\n window)) {\n e.__root = t;\n return;\n }\n var l = i.indexOf(t);\n if (l === -1)\n return;\n c <= l && (a = c);\n }\n if (o = /** @type {Element} */\n i[a] || e.target, o !== t) {\n xo(e, \"currentTarget\", {\n configurable: !0,\n get() {\n return o || r;\n }\n });\n var f = F, u = S;\n ze(null), Oe(null);\n try {\n for (var d, v = []; o !== null; ) {\n var h = o.assignedSlot || o.parentNode || /** @type {any} */\n o.host || null;\n try {\n var p = o[\"__\" + n];\n if (p !== void 0 && !/** @type {any} */\n o.disabled)\n if (Dt(p)) {\n var [E, ...w] = p;\n E.apply(o, [e, ...w]);\n } else\n p.call(o, e);\n } catch (P) {\n d ? v.push(P) : d = P;\n }\n if (e.cancelBubble || h === t || h === null)\n break;\n o = h;\n }\n if (d) {\n for (let P of v)\n queueMicrotask(() => {\n throw P;\n });\n throw d;\n }\n } finally {\n e.__root = t, delete e.currentTarget, ze(f), Oe(u);\n }\n }\n}\nfunction pi(e) {\n var t = document.createElement(\"template\");\n return t.innerHTML = e, t.content;\n}\nfunction ct(e, t) {\n var r = (\n /** @type {Effect} */\n S\n );\n r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);\n}\n// @__NO_SIDE_EFFECTS__\nfunction I(e, t) {\n var r = (t & yo) !== 0, n = (t & wo) !== 0, i, o = !e.startsWith(\"\");\n return () => {\n i === void 0 && (i = pi(o ? e : \"\" + e), r || (i = /** @type {Node} */\n /* @__PURE__ */ Rt(i)));\n var a = (\n /** @type {TemplateNode} */\n n ? document.importNode(i, !0) : i.cloneNode(!0)\n );\n if (r) {\n var s = (\n /** @type {TemplateNode} */\n /* @__PURE__ */ Rt(a)\n ), c = (\n /** @type {TemplateNode} */\n a.lastChild\n );\n ct(s, c);\n } else\n ct(a, a);\n return a;\n };\n}\nfunction Ke(e = \"\") {\n {\n var t = qt(e + \"\");\n return ct(t, t), t;\n }\n}\nfunction X() {\n var e = document.createDocumentFragment(), t = document.createComment(\"\"), r = qt();\n return e.append(t, r), ct(t, r), e;\n}\nfunction b(e, t) {\n e !== null && e.before(\n /** @type {Node} */\n t\n );\n}\nfunction ca(e) {\n return e.endsWith(\"capture\") && e !== \"gotpointercapture\" && e !== \"lostpointercapture\";\n}\nconst ua = [\n \"beforeinput\",\n \"click\",\n \"change\",\n \"dblclick\",\n \"contextmenu\",\n \"focusin\",\n \"focusout\",\n \"input\",\n \"keydown\",\n \"keyup\",\n \"mousedown\",\n \"mousemove\",\n \"mouseout\",\n \"mouseover\",\n \"mouseup\",\n \"pointerdown\",\n \"pointermove\",\n \"pointerout\",\n \"pointerover\",\n \"pointerup\",\n \"touchend\",\n \"touchmove\",\n \"touchstart\"\n];\nfunction fa(e) {\n return ua.includes(e);\n}\nconst da = {\n // no `class: 'className'` because we handle that separately\n formnovalidate: \"formNoValidate\",\n ismap: \"isMap\",\n nomodule: \"noModule\",\n playsinline: \"playsInline\",\n readonly: \"readOnly\"\n};\nfunction va(e) {\n return e = e.toLowerCase(), da[e] ?? e;\n}\nconst ga = [\"touchstart\", \"touchmove\"];\nfunction _a(e) {\n return ga.includes(e);\n}\nfunction re(e, t) {\n var r = t == null ? \"\" : typeof t == \"object\" ? t + \"\" : t;\n r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r == null ? \"\" : r + \"\");\n}\nfunction yn(e, t) {\n return ha(e, t);\n}\nconst nt = /* @__PURE__ */ new Map();\nfunction ha(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: a = !0 }) {\n ia();\n var s = /* @__PURE__ */ new Set(), c = (u) => {\n for (var d = 0; d < u.length; d++) {\n var v = u[d];\n if (!s.has(v)) {\n s.add(v);\n var h = _a(v);\n t.addEventListener(v, It, { passive: h });\n var p = nt.get(v);\n p === void 0 ? (document.addEventListener(v, It, { passive: h }), nt.set(v, 1)) : nt.set(v, p + 1);\n }\n }\n };\n c(Lr(hi)), Er.add(c);\n var l = void 0, f = Go(() => {\n var u = r ?? t.appendChild(qt());\n return He(() => {\n if (o) {\n $({});\n var d = (\n /** @type {ComponentContext} */\n M\n );\n d.c = o;\n }\n i && (n.$$events = i), l = e(u, n) || {}, o && Y();\n }), () => {\n var h;\n for (var d of s) {\n t.removeEventListener(d, It);\n var v = (\n /** @type {number} */\n nt.get(d)\n );\n --v === 0 ? (document.removeEventListener(d, It), nt.delete(d)) : nt.set(d, v);\n }\n Er.delete(c), wn.delete(l), u !== r && ((h = u.parentNode) == null || h.removeChild(u));\n };\n });\n return wn.set(l, f), l;\n}\nlet wn = /* @__PURE__ */ new WeakMap();\nfunction C(e, t, r, n = null, i = !1) {\n var o = e, a = null, s = null, c = null, l = i ? dt : 0;\n tt(() => {\n c !== (c = !!t()) && (c ? (a ? Nt(a) : a = He(() => r(o)), s && Ot(s, () => {\n s = null;\n })) : (s ? Nt(s) : n && (s = He(() => n(o))), a && Ot(a, () => {\n a = null;\n })));\n }, l);\n}\nfunction bi(e, t) {\n return t;\n}\nfunction pa(e, t, r, n) {\n for (var i = [], o = t.length, a = 0; a < o; a++)\n Vr(t[a].e, i, !0);\n var s = o > 0 && i.length === 0 && r !== null;\n if (s) {\n var c = (\n /** @type {Element} */\n /** @type {Element} */\n r.parentNode\n );\n oa(c), c.append(\n /** @type {Element} */\n r\n ), n.clear(), Ve(e, t[0].prev, t[o - 1].next);\n }\n oi(i, () => {\n for (var l = 0; l < o; l++) {\n var f = t[l];\n s || (n.delete(f.k), Ve(e, f.prev, f.next)), Ne(f.e, !s);\n }\n });\n}\nfunction mi(e, t, r, n, i, o = null) {\n var a = e, s = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, c = (t & Hn) !== 0;\n if (c) {\n var l = (\n /** @type {Element} */\n e\n );\n a = l.appendChild(qt());\n }\n var f = null, u = !1;\n tt(() => {\n var d = r(), v = Dt(d) ? d : d == null ? [] : Lr(d), h = v.length;\n if (!(u && h === 0)) {\n u = h === 0;\n {\n var p = (\n /** @type {Effect} */\n F\n );\n ba(v, s, a, i, t, (p.f & Te) !== 0, n);\n }\n o !== null && (h === 0 ? f ? Nt(f) : f = He(() => o(a)) : f !== null && Ot(f, () => {\n f = null;\n })), r();\n }\n });\n}\nfunction ba(e, t, r, n, i, o, a) {\n var he, Se, xe, Qe;\n var s = (i & vo) !== 0, c = (i & (Dr | Mr)) !== 0, l = e.length, f = t.items, u = t.first, d = u, v, h = null, p, E = [], w = [], m, P, _, x;\n if (s)\n for (x = 0; x < l; x += 1)\n m = e[x], P = a(m, x), _ = f.get(P), _ !== void 0 && ((he = _.a) == null || he.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(_));\n for (x = 0; x < l; x += 1) {\n if (m = e[x], P = a(m, x), _ = f.get(P), _ === void 0) {\n var R = d ? (\n /** @type {TemplateNode} */\n d.e.nodes_start\n ) : r;\n h = ya(\n R,\n t,\n h,\n h === null ? t.first : h.next,\n m,\n P,\n x,\n n,\n i\n ), f.set(P, h), E = [], w = [], d = h.next;\n continue;\n }\n if (c && ma(_, m, x, i), _.e.f & Te && (Nt(_.e), s && ((Se = _.a) == null || Se.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(_))), _ !== d) {\n if (v !== void 0 && v.has(_)) {\n if (E.length < w.length) {\n var q = w[0], T;\n h = q.prev;\n var V = E[0], z = E[E.length - 1];\n for (T = 0; T < E.length; T += 1)\n En(E[T], q, r);\n for (T = 0; T < w.length; T += 1)\n v.delete(w[T]);\n Ve(t, V.prev, z.next), Ve(t, h, V), Ve(t, z, q), d = q, h = z, x -= 1, E = [], w = [];\n } else\n v.delete(_), En(_, d, r), Ve(t, _.prev, _.next), Ve(t, _, h === null ? t.first : h.next), Ve(t, h, _), h = _;\n continue;\n }\n for (E = [], w = []; d !== null && d.k !== P; )\n (o || !(d.e.f & Te)) && (v ?? (v = /* @__PURE__ */ new Set())).add(d), w.push(d), d = d.next;\n if (d === null)\n continue;\n _ = d;\n }\n E.push(_), h = _, d = _.next;\n }\n if (d !== null || v !== void 0) {\n for (var ue = v === void 0 ? [] : Lr(v); d !== null; )\n (o || !(d.e.f & Te)) && ue.push(d), d = d.next;\n var O = ue.length;\n if (O > 0) {\n var j = i & Hn && l === 0 ? r : null;\n if (s) {\n for (x = 0; x < O; x += 1)\n (xe = ue[x].a) == null || xe.measure();\n for (x = 0; x < O; x += 1)\n (Qe = ue[x].a) == null || Qe.fix();\n }\n pa(t, ue, j, f);\n }\n }\n s && gt(() => {\n var be;\n if (p !== void 0)\n for (_ of p)\n (be = _.a) == null || be.apply();\n }), S.first = t.first && t.first.e, S.last = h && h.e;\n}\nfunction ma(e, t, r, n) {\n n & Dr && hr(e.v, t), n & Mr ? hr(\n /** @type {Value} */\n e.i,\n r\n ) : e.i = r;\n}\nfunction ya(e, t, r, n, i, o, a, s, c) {\n var l = (c & Dr) !== 0, f = (c & go) === 0, u = l ? f ? /* @__PURE__ */ tr(i) : _e(i) : i, d = c & Mr ? _e(a) : a, v = {\n i: d,\n v: u,\n k: o,\n a: null,\n // @ts-expect-error\n e: null,\n prev: r,\n next: n\n };\n try {\n return v.e = He(() => s(e, u, d), gi), v.e.prev = r && r.e, v.e.next = n && n.e, r === null ? t.first = v : (r.next = v, r.e.next = v.e), n !== null && (n.prev = v, n.e.prev = v.e), v;\n } finally {\n }\n}\nfunction En(e, t, r) {\n for (var n = e.next ? (\n /** @type {TemplateNode} */\n e.next.e.nodes_start\n ) : r, i = t ? (\n /** @type {TemplateNode} */\n t.e.nodes_start\n ) : r, o = (\n /** @type {TemplateNode} */\n e.e.nodes_start\n ); o !== n; ) {\n var a = (\n /** @type {TemplateNode} */\n /* @__PURE__ */ or(o)\n );\n i.before(o), o = a;\n }\n}\nfunction Ve(e, t, r) {\n t === null ? e.first = r : (t.next = r, t.e.next = r && r.e), r !== null && (r.prev = t, r.e.prev = t && t.e);\n}\nfunction ht(e, t, r, n, i) {\n var o = e, a = \"\", s;\n tt(() => {\n a !== (a = t() ?? \"\") && (s !== void 0 && (Ne(s), s = void 0), a !== \"\" && (s = He(() => {\n var c = a + \"\", l = pi(c);\n ct(\n /** @type {TemplateNode} */\n /* @__PURE__ */ Rt(l),\n /** @type {TemplateNode} */\n l.lastChild\n ), o.before(l);\n })));\n });\n}\nfunction W(e, t, r, n, i) {\n var s;\n var o = (s = t.$$slots) == null ? void 0 : s[r], a = !1;\n o === !0 && (o = t[r === \"default\" ? \"children\" : r], a = !0), o === void 0 || o(e, a ? () => n : n);\n}\nfunction yi(e, t, ...r) {\n var n = e, i = Fe, o;\n tt(() => {\n i !== (i = t()) && (o && (Ne(o), o = null), o = He(() => (\n /** @type {SnippetFn} */\n i(n, ...r)\n )));\n }, dt);\n}\nfunction wa(e, t, r) {\n var n = e, i, o;\n tt(() => {\n i !== (i = t()) && (o && (Ot(o), o = null), i && (o = He(() => r(n, i))));\n }, dt);\n}\nfunction wi(e, t, r, n, i, o) {\n var a, s, c = null, l = (\n /** @type {TemplateNode} */\n e\n ), f;\n tt(() => {\n const u = t() || null;\n var d = u === \"svg\" ? Ur : null;\n u !== a && (f && (u === null ? Ot(f, () => {\n f = null, s = null;\n }) : u === s ? Nt(f) : Ne(f)), u && u !== s && (f = He(() => {\n if (c = d ? document.createElementNS(d, u) : document.createElement(u), ct(c, c), n) {\n var v = (\n /** @type {TemplateNode} */\n c.appendChild(qt())\n );\n n(c, v);\n }\n S.nodes_end = c, l.before(c);\n })), a = u, a && (s = a));\n }, dt);\n}\nfunction L(e, t) {\n gt(() => {\n var r = e.getRootNode(), n = (\n /** @type {ShadowRoot} */\n r.host ? (\n /** @type {ShadowRoot} */\n r\n ) : (\n /** @type {Document} */\n r.head ?? /** @type {Document} */\n r.ownerDocument.head\n )\n );\n if (!n.querySelector(\"#\" + t.hash)) {\n const i = document.createElement(\"style\");\n i.id = t.hash, i.textContent = t.code, n.appendChild(i);\n }\n });\n}\nfunction G(e, t, r, n) {\n var i = e.__attributes ?? (e.__attributes = {});\n i[t] !== (i[t] = r) && (t === \"style\" && \"__styles\" in e && (e.__styles = {}), t === \"loading\" && (e[No] = r), r == null ? e.removeAttribute(t) : typeof r != \"string\" && xi(e).includes(t) ? e[t] = r : e.setAttribute(t, r));\n}\nfunction Ei(e, t, r, n, i = !1, o = !1, a = !1) {\n var s = t || {}, c = e.tagName === \"OPTION\";\n for (var l in t)\n l in r || (r[l] = null);\n n !== void 0 && (r.class = r.class ? r.class + \" \" + n : n);\n var f = xi(e), u = (\n /** @type {Record} **/\n e.__attributes ?? (e.__attributes = {})\n ), d = [];\n for (const w in r) {\n let m = r[w];\n if (c && w === \"value\" && m == null) {\n e.value = e.__value = \"\", s[w] = m;\n continue;\n }\n var v = s[w];\n if (m !== v) {\n s[w] = m;\n var h = w[0] + w[1];\n if (h !== \"$$\") {\n if (h === \"on\") {\n const P = {}, _ = \"$$\" + w;\n let x = w.slice(2);\n var p = fa(x);\n if (ca(x) && (x = x.slice(0, -7), P.capture = !0), !p && v) {\n if (m != null) continue;\n e.removeEventListener(x, s[_], P), s[_] = null;\n }\n if (m != null)\n if (p)\n e[`__${x}`] = m, $r([x]);\n else {\n let R = function(q) {\n s[w].call(this, q);\n };\n t ? s[_] = xr(x, e, R, P) : d.push([\n w,\n m,\n () => s[_] = xr(x, e, R, P)\n ]);\n }\n } else if (w === \"style\" && m != null)\n e.style.cssText = m + \"\";\n else if (w === \"autofocus\")\n aa(\n /** @type {HTMLElement} */\n e,\n !!m\n );\n else if (w === \"__value\" || w === \"value\" && m != null)\n e.value = e[w] = e.__value = m;\n else {\n var E = w;\n i || (E = va(E)), m == null && !o ? (u[w] = null, e.removeAttribute(w)) : f.includes(E) && (o || typeof m != \"string\") ? e[E] = m : typeof m != \"function\" && G(e, E, m);\n }\n w === \"style\" && \"__styles\" in e && (e.__styles = {});\n }\n }\n }\n return t || gt(() => {\n if (e.isConnected)\n for (const [w, m, P] of d)\n s[w] === m && P();\n }), s;\n}\nvar xn = /* @__PURE__ */ new Map();\nfunction xi(e) {\n var t = xn.get(e.nodeName);\n if (t) return t;\n xn.set(e.nodeName, t = []);\n for (var r, n = Qt(e), i = Element.prototype; i !== n; ) {\n r = Vn(n);\n for (var o in r)\n r[o].set && t.push(o);\n n = Qt(n);\n }\n return t;\n}\nfunction Yr(e, t) {\n var r = e.__className, n = Ea(t);\n (r !== n || gi) && (t == null ? e.removeAttribute(\"class\") : e.className = n, e.__className = n);\n}\nfunction Ea(e) {\n return e ?? \"\";\n}\nfunction xa(e, t, r) {\n if (r) {\n if (e.classList.contains(t)) return;\n e.classList.add(t);\n } else {\n if (!e.classList.contains(t)) return;\n e.classList.remove(t);\n }\n}\nfunction Ia(e, t, r = t) {\n var n = nr();\n la(e, \"input\", () => {\n var i = In(e) ? Pn(e.value) : e.value;\n r(i), n && i !== (i = t()) && (e.value = i ?? \"\");\n }), Ct(() => {\n var i = t();\n In(e) && i === Pn(e.value) || e.type === \"date\" && !i && !e.value || i !== e.value && (e.value = i ?? \"\");\n });\n}\nfunction In(e) {\n var t = e.type;\n return t === \"number\" || t === \"range\";\n}\nfunction Pn(e) {\n return e === \"\" ? null : +e;\n}\nfunction Vt(e, t, r) {\n var n = qe(e, t);\n n && n.set && (e[t] = r, Fr(() => {\n e[t] = null;\n }));\n}\nfunction kn(e, t) {\n return e === t || (e == null ? void 0 : e[Ge]) === t;\n}\nfunction Pa(e = {}, t, r, n) {\n return jr(() => {\n var i, o;\n return Ct(() => {\n i = o, o = [], Je(() => {\n e !== r(...o) && (t(e, ...o), i && kn(r(...i), e) && t(null, ...i));\n });\n }), () => {\n gt(() => {\n o && kn(r(...o), e) && t(null, ...o);\n });\n };\n }), e;\n}\nfunction Ii(e) {\n return function(...t) {\n var r = (\n /** @type {Event} */\n t[0]\n );\n return r.preventDefault(), e == null ? void 0 : e.apply(this, t);\n };\n}\nfunction Ee(e = !1) {\n const t = (\n /** @type {ComponentContextLegacy} */\n M\n ), r = t.l.u;\n if (!r) return;\n let n = () => J(t.s);\n if (e) {\n let i = 0, o = (\n /** @type {Record} */\n {}\n );\n const a = /* @__PURE__ */ Q(() => {\n let s = !1;\n const c = t.s;\n for (const l in c)\n c[l] !== o[l] && (o[l] = c[l], s = !0);\n return s && i++, i;\n });\n n = () => g(a);\n }\n r.b.length && Vo(() => {\n Tn(t, n), _r(r.b);\n }), pr(() => {\n const i = Je(() => r.m.map(ko));\n return () => {\n for (const o of i)\n typeof o == \"function\" && o();\n };\n }), r.a.length && pr(() => {\n Tn(t, n), _r(r.a);\n });\n}\nfunction Tn(e, t) {\n if (e.l.s)\n for (const r of e.l.s) g(r);\n t();\n}\nfunction Pi(e, t) {\n var o;\n var r = (\n /** @type {Record} */\n (o = e.$$events) == null ? void 0 : o[t.type]\n ), n = Dt(r) ? r.slice() : r == null ? [] : [r];\n for (var i of n)\n i.call(this, t);\n}\nfunction sr(e) {\n M === null && rr(), ut && M.l !== null ? ki(M).m.push(e) : pr(() => {\n const t = Je(e);\n if (typeof t == \"function\") return (\n /** @type {() => void} */\n t\n );\n });\n}\nfunction ka(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {\n return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });\n}\nfunction Ta() {\n const e = M;\n return e === null && rr(), (t, r, n) => {\n var o;\n const i = (\n /** @type {Record} */\n (o = e.s.$$events) == null ? void 0 : o[\n /** @type {any} */\n t\n ]\n );\n if (i) {\n const a = Dt(i) ? i.slice() : [i], s = ka(\n /** @type {string} */\n t,\n r,\n n\n );\n for (const c of a)\n c.call(e.x, s);\n return !s.defaultPrevented;\n }\n return !0;\n };\n}\nfunction Aa(e) {\n M === null && rr(), M.l === null && Uo(), ki(M).b.push(e);\n}\nfunction ki(e) {\n var t = (\n /** @type {ComponentContextLegacy} */\n e.l\n );\n return t.u ?? (t.u = { a: [], b: [], m: [] });\n}\nfunction Oa(e, t, r) {\n if (e == null)\n return t(void 0), Fe;\n const n = Je(\n () => e.subscribe(\n t,\n // @ts-expect-error\n r\n )\n );\n return n.unsubscribe ? () => n.unsubscribe() : n;\n}\nlet Gt = !1;\nfunction Na(e, t, r) {\n const n = r[t] ?? (r[t] = {\n store: null,\n source: /* @__PURE__ */ tr(void 0),\n unsubscribe: Fe\n });\n if (n.store !== e)\n if (n.unsubscribe(), n.store = e ?? null, e == null)\n n.source.v = void 0, n.unsubscribe = Fe;\n else {\n var i = !0;\n n.unsubscribe = Oa(e, (o) => {\n i ? n.source.v = o : A(n.source, o);\n }), i = !1;\n }\n return g(n.source);\n}\nfunction Sa() {\n const e = {};\n return Fr(() => {\n for (var t in e)\n e[t].unsubscribe();\n }), e;\n}\nfunction Ra(e) {\n var t = Gt;\n try {\n return Gt = !1, [e(), Gt];\n } finally {\n Gt = t;\n }\n}\nconst Da = {\n get(e, t) {\n if (!e.exclude.includes(t))\n return e.props[t];\n },\n set(e, t) {\n return !1;\n },\n getOwnPropertyDescriptor(e, t) {\n if (!e.exclude.includes(t) && t in e.props)\n return {\n enumerable: !0,\n configurable: !0,\n value: e.props[t]\n };\n },\n has(e, t) {\n return e.exclude.includes(t) ? !1 : t in e.props;\n },\n ownKeys(e) {\n return Reflect.ownKeys(e.props).filter((t) => !e.exclude.includes(t));\n }\n};\n// @__NO_SIDE_EFFECTS__\nfunction zr(e, t, r) {\n return new Proxy(\n { props: e, exclude: t },\n Da\n );\n}\nconst Ma = {\n get(e, t) {\n let r = e.props.length;\n for (; r--; ) {\n let n = e.props[r];\n if (wt(n) && (n = n()), typeof n == \"object\" && n !== null && t in n) return n[t];\n }\n },\n set(e, t, r) {\n let n = e.props.length;\n for (; n--; ) {\n let i = e.props[n];\n wt(i) && (i = i());\n const o = qe(i, t);\n if (o && o.set)\n return o.set(r), !0;\n }\n return !1;\n },\n getOwnPropertyDescriptor(e, t) {\n let r = e.props.length;\n for (; r--; ) {\n let n = e.props[r];\n if (wt(n) && (n = n()), typeof n == \"object\" && n !== null && t in n) {\n const i = qe(n, t);\n return i && !i.configurable && (i.configurable = !0), i;\n }\n }\n },\n has(e, t) {\n if (t === Ge || t === Yn) return !1;\n for (let r of e.props)\n if (wt(r) && (r = r()), r != null && t in r) return !0;\n return !1;\n },\n ownKeys(e) {\n const t = [];\n for (let r of e.props) {\n wt(r) && (r = r());\n for (const n in r)\n t.includes(n) || t.push(n);\n }\n return t;\n }\n};\nfunction Ft(...e) {\n return new Proxy({ props: e }, Ma);\n}\nfunction An(e) {\n for (var t = S, r = S; t !== null && !(t.f & (ye | Ut)); )\n t = t.parent;\n try {\n return Oe(t), e();\n } finally {\n Oe(r);\n }\n}\nfunction y(e, t, r, n) {\n var q;\n var i = (r & _o) !== 0, o = !ut || (r & ho) !== 0, a = (r & bo) !== 0, s = (r & mo) !== 0, c = !1, l;\n a ? [l, c] = Ra(() => (\n /** @type {V} */\n e[t]\n )) : l = /** @type {V} */\n e[t];\n var f = Ge in e || Yn in e, u = ((q = qe(e, t)) == null ? void 0 : q.set) ?? (f && a && t in e ? (T) => e[t] = T : void 0), d = (\n /** @type {V} */\n n\n ), v = !0, h = !1, p = () => (h = !0, v && (v = !1, s ? d = Je(\n /** @type {() => V} */\n n\n ) : d = /** @type {V} */\n n), d);\n l === void 0 && n !== void 0 && (u && o && Lo(), l = p(), u && u(l));\n var E;\n if (o)\n E = () => {\n var T = (\n /** @type {V} */\n e[t]\n );\n return T === void 0 ? p() : (v = !0, h = !1, T);\n };\n else {\n var w = An(\n () => (i ? Q : ne)(() => (\n /** @type {V} */\n e[t]\n ))\n );\n w.f |= Ao, E = () => {\n var T = g(w);\n return T !== void 0 && (d = /** @type {V} */\n void 0), T === void 0 ? d : T;\n };\n }\n if (!(r & po))\n return E;\n if (u) {\n var m = e.$$legacy;\n return function(T, V) {\n return arguments.length > 0 ? ((!o || !V || m || c) && u(V ? E() : T), T) : E();\n };\n }\n var P = !1, _ = !1, x = /* @__PURE__ */ tr(l), R = An(\n () => /* @__PURE__ */ Q(() => {\n var T = E(), V = g(x);\n return P ? (P = !1, _ = !0, V) : (_ = !1, x.v = T);\n })\n );\n return i || (R.equals = Br), function(T, V) {\n if (arguments.length > 0) {\n const z = V ? g(R) : o && a ? Ce(T) : T;\n return R.equals(z) || (P = !0, A(x, z), h && d !== void 0 && (d = z), Je(() => g(R))), T;\n }\n return g(R);\n };\n}\nconst Ua = {\n hash: \"svelte-1bzqb13\",\n code: \".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;}\"\n};\nfunction pt(e, t) {\n L(e, Ua);\n let r = y(t, \"as\", 8, \"section\");\n var n = X(), i = U(n);\n wi(i, r, !1, (o, a) => {\n Ei(o, null, { class: \"rcb-modal-section\" }, \"svelte-1bzqb13\", o.namespaceURI === Ur, o.nodeName.includes(\"-\"));\n var s = X(), c = U(s);\n W(c, t, \"default\", {}), b(a, s);\n }), b(e, n);\n}\nvar ve = /* @__PURE__ */ ((e) => (e[e.Silent = 0] = \"Silent\", e[e.Error = 1] = \"Error\", e[e.Warn = 2] = \"Warn\", e[e.Info = 3] = \"Info\", e[e.Debug = 4] = \"Debug\", e[e.Verbose = 5] = \"Verbose\", e))(ve || {});\nclass H {\n static setLogLevel(t) {\n this.logLevel = t;\n }\n static log(t, r = this.logLevel) {\n const n = `[Purchases] ${t}`;\n if (!(this.logLevel < r || r === ve.Silent))\n switch (r) {\n case ve.Error:\n console.error(n);\n break;\n case ve.Warn:\n console.warn(n);\n break;\n case ve.Info:\n console.info(n);\n break;\n case ve.Debug:\n console.debug(n);\n break;\n case ve.Verbose:\n console.debug(n);\n break;\n }\n }\n static errorLog(t) {\n this.log(t, ve.Error);\n }\n static warnLog(t) {\n this.log(t, ve.Warn);\n }\n static infoLog(t) {\n this.log(t, ve.Info);\n }\n static debugLog(t) {\n this.log(t, ve.Debug);\n }\n static verboseLog(t) {\n this.log(t, ve.Verbose);\n }\n}\nD(H, \"logLevel\", ve.Silent);\nvar Be = /* @__PURE__ */ ((e) => (e.Year = \"year\", e.Month = \"month\", e.Week = \"week\", e.Day = \"day\", e))(Be || {});\nfunction Kr(e) {\n const t = e.match(/^PT?([0-9]+)([MDYW])$/);\n if (!t || t.length < 3)\n return H.errorLog(`Invalid ISO 8601 duration format: ${e}`), null;\n const r = parseInt(t[1]);\n switch (t[2]) {\n case \"Y\":\n return {\n number: r,\n unit: \"year\"\n /* Year */\n };\n case \"M\":\n return {\n number: r,\n unit: \"month\"\n /* Month */\n };\n case \"W\":\n return {\n number: r,\n unit: \"week\"\n /* Week */\n };\n case \"D\":\n return {\n number: r,\n unit: \"day\"\n /* Day */\n };\n default:\n return H.errorLog(`Invalid ISO 8601 unit duration format: ${e}`), null;\n }\n}\nconst oe = (e, t, r) => {\n const n = e / 1e6;\n return new Intl.NumberFormat(r, {\n style: \"currency\",\n currency: t\n }).format(n);\n}, Ti = (e) => {\n const t = e.number;\n if (t === 1)\n switch (e.unit) {\n case Be.Year:\n return \"yearly\";\n case Be.Month:\n return \"monthly\";\n case Be.Week:\n return \"weekly\";\n case Be.Day:\n return \"daily\";\n }\n else\n return `every ${t} ${e.unit}s`;\n}, Ai = (e) => {\n const t = e.number;\n if (t === 1)\n switch (e.unit) {\n case Be.Year:\n return \"1 year\";\n case Be.Month:\n return \"1 month\";\n case Be.Week:\n return \"1 week\";\n case Be.Day:\n return \"1 day\";\n }\n else\n return `${t} ${e.unit}s`;\n}, La = (e) => {\n const t = Kr(e);\n return t ? Ti(t) : \"unknown\";\n}, Ca = (e) => {\n const t = Kr(e);\n return t ? Ai(t) : \"unknown\";\n};\nfunction Ba(e) {\n return e != null;\n}\nvar qa = /* @__PURE__ */ ((e) => (e.Unknown = \"unknown\", e.Custom = \"custom\", e.Lifetime = \"$rc_lifetime\", e.Annual = \"$rc_annual\", e.SixMonth = \"$rc_six_month\", e.ThreeMonth = \"$rc_three_month\", e.TwoMonth = \"$rc_two_month\", e.Monthly = \"$rc_monthly\", e.Weekly = \"$rc_weekly\", e))(qa || {}), me = /* @__PURE__ */ ((e) => (e.Subscription = \"subscription\", e.Consumable = \"consumable\", e.NonConsumable = \"non_consumable\", e))(me || {});\nconst Oi = (e) => ({\n amount: e.amount_micros / 1e4,\n amountMicros: e.amount_micros,\n currency: e.currency,\n formattedPrice: oe(e.amount_micros, e.currency)\n}), On = (e) => {\n const t = e.period_duration;\n return {\n periodDuration: t,\n period: t ? Kr(t) : null,\n cycleCount: e.cycle_count,\n price: e.price ? Oi(e.price) : null\n };\n}, Fa = (e) => e.base == null ? (H.debugLog(\"Missing base phase for subscription option. Ignoring.\"), null) : {\n id: e.id,\n priceId: e.price_id,\n base: On(e.base),\n trial: e.trial ? On(e.trial) : null\n}, ja = (e) => e.base_price == null ? (H.debugLog(\n \"Missing base price for non-subscription option. Ignoring.\"\n), null) : {\n id: e.id,\n priceId: e.price_id,\n basePrice: Oi(e.base_price)\n}, Ha = (e, t) => {\n const r = e.product_type;\n return r === \"subscription\" ? Ga(\n e,\n t,\n r\n ) : Va(\n e,\n t,\n r\n );\n}, Va = (e, t, r) => {\n const n = {};\n if (Object.entries(e.purchase_options).forEach(\n ([a, s]) => {\n const c = ja(\n s\n );\n c != null && (n[a] = c);\n }\n ), Object.keys(n).length === 0)\n return H.debugLog(\n `Product ${e.identifier} has no purchase options. Ignoring.`\n ), null;\n const i = e.default_purchase_option_id, o = i && i in e.purchase_options ? n[i] : null;\n return o == null ? (H.debugLog(\n `Product ${e.identifier} has no default purchase option. Ignoring.`\n ), null) : {\n identifier: e.identifier,\n displayName: e.title,\n title: e.title,\n description: e.description,\n productType: r,\n currentPrice: o.basePrice,\n normalPeriodDuration: null,\n presentedOfferingIdentifier: t.offeringIdentifier,\n presentedOfferingContext: t,\n defaultPurchaseOption: o,\n defaultSubscriptionOption: null,\n subscriptionOptions: {},\n defaultNonSubscriptionOption: o\n };\n}, Ga = (e, t, r) => {\n const n = {};\n if (Object.entries(e.purchase_options).forEach(\n ([s, c]) => {\n const l = Fa(c);\n l != null && (n[s] = l);\n }\n ), Object.keys(n).length === 0)\n return H.debugLog(\n `Product ${e.identifier} has no subscription options. Ignoring.`\n ), null;\n const i = e.default_purchase_option_id, o = i && i in n ? n[i] : null;\n if (o == null)\n return H.debugLog(\n `Product ${e.identifier} has no default subscription option. Ignoring.`\n ), null;\n const a = o.base.price;\n return a == null ? (H.debugLog(\n `Product ${e.identifier} default option has no base price. Ignoring.`\n ), null) : {\n identifier: e.identifier,\n displayName: e.title,\n title: e.title,\n description: e.description,\n productType: r,\n currentPrice: a,\n normalPeriodDuration: o.base.periodDuration,\n presentedOfferingIdentifier: t.offeringIdentifier,\n presentedOfferingContext: t,\n defaultPurchaseOption: o,\n defaultSubscriptionOption: o,\n subscriptionOptions: n,\n defaultNonSubscriptionOption: null\n };\n}, $a = (e, t, r) => {\n const n = r[t.platform_product_identifier];\n if (n === void 0) return null;\n const i = Ha(n, e);\n return i === null ? null : {\n identifier: t.identifier,\n rcBillingProduct: i,\n packageType: za(t.identifier)\n };\n}, Ya = (e, t, r, n) => {\n const i = {\n offeringIdentifier: t.identifier,\n targetingContext: e && n ? {\n ruleId: n.rule_id,\n revision: n.revision\n } : null,\n placementIdentifier: null\n }, o = t.packages.map(\n (s) => $a(i, s, r)\n ).filter(Ba), a = {};\n for (const s of o)\n s != null && (a[s.identifier] = s);\n return o.length == 0 ? null : {\n identifier: t.identifier,\n serverDescription: t.description,\n metadata: t.metadata,\n packagesById: a,\n availablePackages: o,\n lifetime: a.$rc_lifetime ?? null,\n annual: a.$rc_annual ?? null,\n sixMonth: a.$rc_six_month ?? null,\n threeMonth: a.$rc_three_month ?? null,\n twoMonth: a.$rc_two_month ?? null,\n monthly: a.$rc_monthly ?? null,\n weekly: a.$rc_weekly ?? null,\n paywall_components: t.paywall_components ? t.paywall_components : null\n };\n};\nfunction za(e) {\n switch (e) {\n case \"$rc_lifetime\":\n return \"$rc_lifetime\";\n case \"$rc_annual\":\n return \"$rc_annual\";\n case \"$rc_six_month\":\n return \"$rc_six_month\";\n case \"$rc_three_month\":\n return \"$rc_three_month\";\n case \"$rc_two_month\":\n return \"$rc_two_month\";\n case \"$rc_monthly\":\n return \"$rc_monthly\";\n case \"$rc_weekly\":\n return \"$rc_weekly\";\n default:\n return e.startsWith(\"$rc_\") ? \"unknown\" : \"custom\";\n }\n}\nvar Ka = /* @__PURE__ */ I(' '), Qa = /* @__PURE__ */ I(' '), Wa = /* @__PURE__ */ I(\"
  • \"), Za = /* @__PURE__ */ I('
    • Continues until canceled
    • Cancel anytime
    ', 1), Xa = /* @__PURE__ */ I(' '), Ja = /* @__PURE__ */ I(' ', 1), es = /* @__PURE__ */ I('
    ');\nconst ts = {\n hash: \"svelte-1mdrqnh\",\n code: `.rcb-pricing-info.svelte-1mdrqnh {display:flex;flex-direction:column;margin-top:102px;font-weight:500;}.rcb-product-price.svelte-1mdrqnh {color:var(--rc-color-grey-text-dark);font-size:24px;margin:12px 0px;}.rcb-product-description.svelte-1mdrqnh {color:var(--rc-color-grey-text-dark);margin:0 0 12px 0;}.rcb-product-price-after-trial.svelte-1mdrqnh {margin-bottom:12px;}.rcb-product-details.svelte-1mdrqnh {color:var(--rc-color-grey-text-light);list-style-type:disc;list-style-position:inside;margin:0px;padding:0px;}\n\n @media screen and (max-width: 960px) {.rcb-pricing-info.svelte-1mdrqnh {margin-top:48px;}\n }`\n};\nfunction Nn(e, t) {\n var u;\n $(t, !1), L(e, ts);\n let r = y(t, \"productDetails\", 8), n = y(t, \"purchaseOption\", 8), i = y(t, \"brandingAppearance\", 8, void 0);\n const o = r().productType === me.Subscription, a = n(), s = n(), c = a == null ? void 0 : a.trial, l = (u = a == null ? void 0 : a.base) == null ? void 0 : u.price, f = s == null ? void 0 : s.basePrice;\n Ee(), pt(e, {\n children: (d, v) => {\n var h = es(), p = k(h), E = k(p), w = N(p, 2);\n C(w, () => o, (P) => {\n var _ = Za(), x = U(_), R = k(x);\n C(R, () => c == null ? void 0 : c.periodDuration, (O) => {\n var j = Ke();\n B(() => re(j, `${Ca(c.periodDuration) ?? \"\"} free trial`)), b(O, j);\n });\n var q = N(R, 2);\n C(q, () => !(c != null && c.periodDuration) && l, (O) => {\n var j = Ke();\n B(() => re(j, l.formattedPrice)), b(O, j);\n });\n var T = N(x, 2);\n C(T, () => c && l, (O) => {\n var j = Ka(), he = k(j);\n B(() => re(he, c && l && `${l.formattedPrice} after end of trial`)), b(O, j);\n });\n var V = N(T, 2);\n C(V, () => {\n var O;\n return ((O = i()) == null ? void 0 : O.show_product_description) && r().description;\n }, (O) => {\n var j = Qa(), he = k(j);\n B(() => re(he, r().description)), b(O, j);\n });\n var z = N(V, 2), ue = k(z);\n C(ue, () => r().normalPeriodDuration, (O) => {\n var j = Wa(), he = k(j);\n B(() => re(he, `Renews ${La(r().normalPeriodDuration) ?? \"\"}`)), b(O, j);\n }), b(P, _);\n });\n var m = N(w, 2);\n C(m, () => !o, (P) => {\n var _ = Ja(), x = U(_), R = k(x), q = N(x, 2);\n C(q, () => {\n var T;\n return (T = i()) == null ? void 0 : T.show_product_description;\n }, (T) => {\n var V = Xa(), z = k(V);\n B(() => re(z, r().description)), b(T, V);\n }), B(() => re(R, f == null ? void 0 : f.formattedPrice)), b(P, _);\n }), B(() => re(E, r().title)), b(d, h);\n },\n $$slots: { default: !0 }\n }), Y();\n}\nconst rs = '';\nvar ns = /* @__PURE__ */ I('
    ');\nconst is = {\n hash: \"svelte-16h2a8k\",\n code: `\n @-webkit-keyframes svelte-16h2a8k-rotating /* Safari and Chrome */ {\n from {\n -webkit-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n to {\n -webkit-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n @keyframes svelte-16h2a8k-rotating {\n from {\n -ms-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -webkit-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n to {\n -ms-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -webkit-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }div.svelte-16h2a8k {width:80px;height:80px;\n -webkit-animation: svelte-16h2a8k-rotating 2s ease-in-out infinite;\n -moz-animation: svelte-16h2a8k-rotating 2s ease-in-out infinite;\n -ms-animation: svelte-16h2a8k-rotating 2s ease-in-out infinite;\n -o-animation: svelte-16h2a8k-rotating 2s ease-in-out infinite;\n animation: svelte-16h2a8k-rotating 2s ease-in-out infinite;}`\n};\nfunction os(e) {\n L(e, is);\n var t = ns(), r = k(t);\n ht(r, () => rs), b(e, t);\n}\nvar as = /* @__PURE__ */ I('
    ');\nconst ss = {\n hash: \"svelte-l57ojl\",\n code: \".rcb-modal-loader.svelte-l57ojl {width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center;}\"\n};\nfunction Ir(e) {\n L(e, ss);\n var t = as(), r = k(t);\n os(r), b(e, t);\n}\nvar te = /* @__PURE__ */ ((e) => (e[e.UnknownError = 0] = \"UnknownError\", e[e.UserCancelledError = 1] = \"UserCancelledError\", e[e.StoreProblemError = 2] = \"StoreProblemError\", e[e.PurchaseNotAllowedError = 3] = \"PurchaseNotAllowedError\", e[e.PurchaseInvalidError = 4] = \"PurchaseInvalidError\", e[e.ProductNotAvailableForPurchaseError = 5] = \"ProductNotAvailableForPurchaseError\", e[e.ProductAlreadyPurchasedError = 6] = \"ProductAlreadyPurchasedError\", e[e.ReceiptAlreadyInUseError = 7] = \"ReceiptAlreadyInUseError\", e[e.InvalidReceiptError = 8] = \"InvalidReceiptError\", e[e.MissingReceiptFileError = 9] = \"MissingReceiptFileError\", e[e.NetworkError = 10] = \"NetworkError\", e[e.InvalidCredentialsError = 11] = \"InvalidCredentialsError\", e[e.UnexpectedBackendResponseError = 12] = \"UnexpectedBackendResponseError\", e[e.InvalidAppUserIdError = 14] = \"InvalidAppUserIdError\", e[e.OperationAlreadyInProgressError = 15] = \"OperationAlreadyInProgressError\", e[e.UnknownBackendError = 16] = \"UnknownBackendError\", e[e.InvalidAppleSubscriptionKeyError = 17] = \"InvalidAppleSubscriptionKeyError\", e[e.IneligibleError = 18] = \"IneligibleError\", e[e.InsufficientPermissionsError = 19] = \"InsufficientPermissionsError\", e[e.PaymentPendingError = 20] = \"PaymentPendingError\", e[e.InvalidSubscriberAttributesError = 21] = \"InvalidSubscriberAttributesError\", e[e.LogOutWithAnonymousUserError = 22] = \"LogOutWithAnonymousUserError\", e[e.ConfigurationError = 23] = \"ConfigurationError\", e[e.UnsupportedError = 24] = \"UnsupportedError\", e[e.EmptySubscriberAttributesError = 25] = \"EmptySubscriberAttributesError\", e[e.CustomerInfoError = 28] = \"CustomerInfoError\", e[e.SignatureVerificationError = 36] = \"SignatureVerificationError\", e[e.InvalidEmailError = 38] = \"InvalidEmailError\", e))(te || {});\nclass Tt {\n static getPublicMessage(t) {\n switch (t) {\n case 0:\n return \"Unknown error.\";\n case 1:\n return \"Purchase was cancelled.\";\n case 2:\n return \"There was a problem with the store.\";\n case 3:\n return \"The device or user is not allowed to make the purchase.\";\n case 4:\n return \"One or more of the arguments provided are invalid.\";\n case 5:\n return \"The product is not available for purchase.\";\n case 6:\n return \"This product is already active for the user.\";\n case 7:\n return \"There is already another active subscriber using the same receipt.\";\n case 8:\n return \"The receipt is not valid.\";\n case 9:\n return \"The receipt is missing.\";\n case 10:\n return \"Error performing request. Please check your network connection and try again.\";\n case 11:\n return \"There was a credentials issue. Check the underlying error for more details.\";\n case 12:\n return \"Received unexpected response from the backend.\";\n case 14:\n return \"The app user id is not valid.\";\n case 15:\n return \"The operation is already in progress.\";\n case 16:\n return \"There was an unknown backend error.\";\n case 17:\n return \"Apple Subscription Key is invalid or not present. In order to provide subscription offers, you must first generate a subscription key. Please see https://docs.revenuecat.com/docs/ios-subscription-offers for more info.\";\n case 18:\n return \"The User is ineligible for that action.\";\n case 19:\n return \"App does not have sufficient permissions to make purchases.\";\n case 20:\n return \"The payment is pending.\";\n case 21:\n return \"One or more of the attributes sent could not be saved.\";\n case 22:\n return \"Called logOut but the current user is anonymous.\";\n case 23:\n return \"There is an issue with your configuration. Check the underlying error for more details.\";\n case 24:\n return \"There was a problem with the operation. Looks like we doesn't support that yet. Check the underlying error for more details.\";\n case 25:\n return \"A request for subscriber attributes returned none.\";\n case 28:\n return \"There was a problem related to the customer info.\";\n case 36:\n return \"Request failed signature verification. Please see https://rev.cat/trusted-entitlements for more info.\";\n case 38:\n return \"Email is not valid. Please provide a valid email address.\";\n }\n }\n static getErrorCodeForBackendErrorCode(t) {\n switch (t) {\n case 7101:\n case 7773:\n return 2;\n case 7102:\n return 7;\n case 7103:\n return 8;\n case 7107:\n case 7224:\n case 7225:\n return 11;\n case 7105:\n case 7106:\n case 7814:\n return 4;\n case 7772:\n return 6;\n case 7220:\n return 14;\n case 7229:\n return 2;\n case 7230:\n case 7e3:\n return 23;\n case 7231:\n return 2;\n case 7232:\n return 18;\n case 7263:\n case 7264:\n return 21;\n case 7104:\n case 7234:\n case 7226:\n case 7110:\n return 12;\n case 7662:\n return 24;\n case 7012:\n case 7834:\n return 38;\n }\n }\n static convertCodeToBackendErrorCode(t) {\n return t in Ni ? t : null;\n }\n static convertPurchaseFlowErrorCodeToErrorCode(t) {\n switch (t) {\n case ie.ErrorSettingUpPurchase:\n return 2;\n case ie.ErrorChargingPayment:\n return 20;\n case ie.NetworkError:\n return 10;\n case ie.MissingEmailError:\n return 4;\n case ie.StripeError:\n return 2;\n case ie.UnknownError:\n return 0;\n case ie.AlreadyPurchasedError:\n return 6;\n }\n }\n}\nvar Ni = /* @__PURE__ */ ((e) => (e[e.BackendInvalidPlatform = 7e3] = \"BackendInvalidPlatform\", e[e.BackendInvalidEmail = 7012] = \"BackendInvalidEmail\", e[e.BackendStoreProblem = 7101] = \"BackendStoreProblem\", e[e.BackendCannotTransferPurchase = 7102] = \"BackendCannotTransferPurchase\", e[e.BackendInvalidReceiptToken = 7103] = \"BackendInvalidReceiptToken\", e[e.BackendInvalidAppStoreSharedSecret = 7104] = \"BackendInvalidAppStoreSharedSecret\", e[e.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = \"BackendInvalidPaymentModeOrIntroPriceNotProvided\", e[e.BackendProductIdForGoogleReceiptNotProvided = 7106] = \"BackendProductIdForGoogleReceiptNotProvided\", e[e.BackendInvalidPlayStoreCredentials = 7107] = \"BackendInvalidPlayStoreCredentials\", e[e.BackendInternalServerError = 7110] = \"BackendInternalServerError\", e[e.BackendEmptyAppUserId = 7220] = \"BackendEmptyAppUserId\", e[e.BackendInvalidAuthToken = 7224] = \"BackendInvalidAuthToken\", e[e.BackendInvalidAPIKey = 7225] = \"BackendInvalidAPIKey\", e[e.BackendBadRequest = 7226] = \"BackendBadRequest\", e[e.BackendPlayStoreQuotaExceeded = 7229] = \"BackendPlayStoreQuotaExceeded\", e[e.BackendPlayStoreInvalidPackageName = 7230] = \"BackendPlayStoreInvalidPackageName\", e[e.BackendPlayStoreGenericError = 7231] = \"BackendPlayStoreGenericError\", e[e.BackendUserIneligibleForPromoOffer = 7232] = \"BackendUserIneligibleForPromoOffer\", e[e.BackendInvalidAppleSubscriptionKey = 7234] = \"BackendInvalidAppleSubscriptionKey\", e[e.BackendInvalidSubscriberAttributes = 7263] = \"BackendInvalidSubscriberAttributes\", e[e.BackendInvalidSubscriberAttributesBody = 7264] = \"BackendInvalidSubscriberAttributesBody\", e[e.BackendProductIDsMalformed = 7662] = \"BackendProductIDsMalformed\", e[e.BackendAlreadySubscribedError = 7772] = \"BackendAlreadySubscribedError\", e[e.BackendPaymentGatewayGenericError = 7773] = \"BackendPaymentGatewayGenericError\", e[e.BackendOfferNotFound = 7814] = \"BackendOfferNotFound\", e[e.BackendNoMXRecordsFound = 7834] = \"BackendNoMXRecordsFound\", e))(Ni || {});\nclass Z extends Error {\n constructor(r, n, i, o) {\n super(n);\n D(this, \"toString\", () => `PurchasesError(code: ${te[this.errorCode]}, message: ${this.message})`);\n this.errorCode = r, this.underlyingErrorMessage = i, this.extra = o;\n }\n /** @internal */\n static getForBackendError(r, n) {\n const i = Tt.getErrorCodeForBackendErrorCode(r);\n return new Z(\n i,\n Tt.getPublicMessage(i),\n n,\n { backendErrorCode: r }\n );\n }\n /** @internal */\n static getForPurchasesFlowError(r) {\n return new Z(\n Tt.convertPurchaseFlowErrorCodeToErrorCode(\n r.errorCode\n ),\n r.message,\n r.underlyingErrorMessage\n );\n }\n}\nclass ls extends Error {\n constructor() {\n super(\"Purchases must be configured before calling getInstance\");\n }\n}\nvar Pt = /* @__PURE__ */ ((e) => (e.Started = \"started\", e.InProgress = \"in_progress\", e.Succeeded = \"succeeded\", e.Failed = \"failed\", e))(Pt || {}), at = /* @__PURE__ */ ((e) => (e[e.SetupIntentCreationFailed = 1] = \"SetupIntentCreationFailed\", e[e.PaymentMethodCreationFailed = 2] = \"PaymentMethodCreationFailed\", e[e.PaymentChargeFailed = 3] = \"PaymentChargeFailed\", e[e.SetupIntentCompletionFailed = 4] = \"SetupIntentCompletionFailed\", e[e.AlreadyPurchased = 5] = \"AlreadyPurchased\", e))(at || {});\nfunction cs(e) {\n var t;\n return e.operation.redemption_info ? {\n redeemUrl: ((t = e.operation.redemption_info) == null ? void 0 : t.redeem_url) ?? null\n } : null;\n}\nvar ie = /* @__PURE__ */ ((e) => (e[e.ErrorSettingUpPurchase = 0] = \"ErrorSettingUpPurchase\", e[e.ErrorChargingPayment = 1] = \"ErrorChargingPayment\", e[e.UnknownError = 2] = \"UnknownError\", e[e.NetworkError = 3] = \"NetworkError\", e[e.StripeError = 4] = \"StripeError\", e[e.MissingEmailError = 5] = \"MissingEmailError\", e[e.AlreadyPurchasedError = 6] = \"AlreadyPurchasedError\", e))(ie || {});\nclass K extends Error {\n constructor(t, r, n, i, o) {\n super(r), this.errorCode = t, this.underlyingErrorMessage = n, this.purchasesErrorCode = i, this.extra = o;\n }\n isRecoverable() {\n switch (this.errorCode) {\n case 3:\n case 5:\n return !0;\n case 0:\n case 1:\n case 6:\n case 4:\n case 2:\n return !1;\n }\n }\n getPublicErrorMessage(t) {\n var n;\n const r = ((n = this.extra) == null ? void 0 : n.backendErrorCode) ?? this.purchasesErrorCode ?? this.errorCode;\n switch (this.errorCode) {\n case 2:\n return `An unknown error occurred. Error code: ${r}.`;\n case 0:\n return `Purchase not started due to an error. Error code: ${r}.`;\n case 1:\n return \"Payment failed.\";\n case 3:\n return \"Network error. Please check your internet connection.\";\n case 4:\n return this.message;\n case 5:\n return \"Email is required to complete the purchase.\";\n case 6:\n return (t == null ? void 0 : t.productType) === me.Subscription ? \"You are already subscribed to this product.\" : \"You have already purchased this product.\";\n }\n }\n static fromPurchasesError(t, r) {\n let n;\n return t.errorCode === te.ProductAlreadyPurchasedError ? n = 6 : t.errorCode === te.InvalidEmailError ? n = 5 : t.errorCode === te.NetworkError ? n = 3 : n = r, new K(\n n,\n t.message,\n t.underlyingErrorMessage,\n t.errorCode,\n t.extra\n );\n }\n}\nclass us {\n constructor(t, r = 10) {\n D(this, \"operationSessionId\", null);\n D(this, \"backend\");\n D(this, \"maxNumberAttempts\");\n D(this, \"waitMSBetweenAttempts\", 1e3);\n this.backend = t, this.maxNumberAttempts = r;\n }\n async startPurchase(t, r, n, i, o) {\n try {\n const a = await this.backend.postPurchase(\n t,\n r,\n i,\n o,\n n\n );\n return this.operationSessionId = a.operation_session_id, a;\n } catch (a) {\n if (a instanceof Z)\n throw K.fromPurchasesError(\n a,\n 0\n /* ErrorSettingUpPurchase */\n );\n {\n const s = \"Unknown error starting purchase: \" + String(a);\n throw H.errorLog(s), new K(\n 2,\n s\n );\n }\n }\n }\n async pollCurrentPurchaseForCompletion() {\n const t = this.operationSessionId;\n if (!t)\n throw new K(\n 0,\n \"No purchase in progress\"\n );\n return new Promise(\n (r, n) => {\n const i = (o = 1) => {\n if (o > this.maxNumberAttempts) {\n this.clearPurchaseInProgress(), n(\n new K(\n 2,\n \"Max attempts reached trying to get successful purchase status\"\n )\n );\n return;\n }\n this.backend.getCheckoutStatus(t).then((a) => {\n switch (a.operation.status) {\n case Pt.Started:\n case Pt.InProgress:\n setTimeout(\n () => i(o + 1),\n this.waitMSBetweenAttempts\n );\n break;\n case Pt.Succeeded:\n this.clearPurchaseInProgress(), r({\n redemptionInfo: cs(a)\n });\n return;\n case Pt.Failed:\n this.clearPurchaseInProgress(), this.handlePaymentError(\n a.operation.error,\n n\n );\n }\n }).catch((a) => {\n const s = K.fromPurchasesError(\n a,\n 3\n /* NetworkError */\n );\n n(s);\n });\n };\n i();\n }\n );\n }\n clearPurchaseInProgress() {\n this.operationSessionId = null;\n }\n handlePaymentError(t, r) {\n if (t == null) {\n r(\n new K(\n 2,\n \"Got an error status but error field is empty.\"\n )\n );\n return;\n }\n switch (t.code) {\n case at.SetupIntentCreationFailed:\n r(\n new K(\n 0,\n \"Setup intent creation failed\"\n )\n );\n return;\n case at.PaymentMethodCreationFailed:\n r(\n new K(\n 0,\n \"Payment method creation failed\"\n )\n );\n return;\n case at.PaymentChargeFailed:\n r(\n new K(\n 1,\n \"Payment charge failed\"\n )\n );\n return;\n case at.SetupIntentCompletionFailed:\n r(\n new K(\n 0,\n \"Setup intent completion failed\"\n )\n );\n return;\n case at.AlreadyPurchased:\n r(\n new K(\n 6,\n \"Purchased was already completed\"\n )\n );\n return;\n default:\n r(\n new K(\n 2,\n \"Unknown error code received\"\n )\n );\n return;\n }\n }\n}\nconst fs = `\n \n \n\n`;\nvar ds = /* @__PURE__ */ I('
    ');\nconst vs = {\n hash: \"svelte-7wiquz\",\n code: \".rcb-ui-asset-icon.svelte-7wiquz {width:96px;height:96px;margin:0 auto;}\"\n};\nfunction gs(e) {\n L(e, vs);\n var t = ds(), r = k(t);\n ht(r, () => fs), b(e, t);\n}\nvar _s = /* @__PURE__ */ I(\"\");\nconst hs = {\n hash: \"svelte-2xwwo\",\n code: `button.svelte-2xwwo {border:none;border-radius:var(--rc-shape-input-button-border-radius);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;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-tap-highlight-color:transparent;}button.svelte-2xwwo:focus,\n button.svelte-2xwwo:active {outline:2px solid var(--rc-color-focus);}button.intent-primary.svelte-2xwwo {background-color:var(--rc-color-primary);color:var(--rc-color-primary-text);font-size:16px;}button.svelte-2xwwo:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);}button.intent-primary.svelte-2xwwo:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);}`\n};\nfunction Qr(e, t) {\n L(e, hs);\n let r = y(t, \"intent\", 8, \"primary\"), n = y(t, \"disabled\", 8, !1), i = y(t, \"testId\", 8, void 0), o = y(t, \"type\", 8, void 0);\n var a = _s(), s = k(a);\n W(s, t, \"default\", {}), B(() => {\n Yr(a, `${`intent-${r()}` ?? \"\"} svelte-2xwwo`), a.disabled = n(), G(a, \"data-testid\", i()), G(a, \"type\", o());\n }), ar(\"click\", a, function(c) {\n Pi.call(this, t, c);\n }), b(e, a);\n}\nvar ps = /* @__PURE__ */ I('
    ');\nconst bs = {\n hash: \"svelte-1f9z0o8\",\n code: \"footer.svelte-1f9z0o8 {display:flex;flex-direction:column;}\"\n};\nfunction Wr(e, t) {\n L(e, bs);\n var r = ps(), n = k(r);\n W(n, t, \"default\", {}), b(e, r);\n}\nvar ms = /* @__PURE__ */ I('
    ');\nconst ys = {\n hash: \"svelte-6o8e90\",\n code: '.column.svelte-6o8e90 {display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, \"8px\");flex-grow:1;}'\n};\nfunction At(e, t) {\n L(e, ys);\n let r = y(t, \"gutter\", 8, \"8px\");\n var n = ms(), i = k(n);\n W(i, t, \"default\", {}), B(() => G(n, \"style\", `--gap:${r()};`)), b(e, n);\n}\nconst ws = `\n\n\n\n\n`;\nvar Es = /* @__PURE__ */ I('');\nconst xs = {\n hash: \"svelte-1y0elb4\",\n code: \".close-button.svelte-1y0elb4 {border:none;cursor:pointer;background-color:transparent;padding:0px;height:24px;border-radius:50%;color:var(--rc-color-grey-text-light);}.close-button.svelte-1y0elb4:focus {outline:2px solid var(--rc-color-focus);}.close-button.svelte-1y0elb4:hover {color:var(--rc-color-grey-text-dark);}\"\n};\nfunction Zr(e, t) {\n L(e, xs);\n let r = y(t, \"disabled\", 8, !1);\n var n = Es(), i = k(n), o = k(i);\n ht(o, () => ws), B(() => n.disabled = r()), ar(\"click\", n, function(a) {\n Pi.call(this, t, a);\n }), b(e, n);\n}\nvar Is = /* @__PURE__ */ I(' \"App'), Ps = /* @__PURE__ */ I('
    ');\nconst ks = {\n hash: \"svelte-44qpq9\",\n code: \".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;}\"\n};\nfunction Sn(e, t) {\n L(e, ks);\n let r = y(t, \"src\", 8, null), n = y(t, \"srcWebp\", 8, null);\n var i = X(), o = U(i);\n C(\n o,\n () => r() !== null,\n (a) => {\n var s = Is(), c = k(s), l = N(c, 2);\n B(() => {\n G(c, \"srcset\", n()), G(l, \"src\", r());\n }), b(a, s);\n },\n (a) => {\n var s = Ps();\n b(a, s);\n }\n ), b(e, i);\n}\nconst Rn = (e) => `https://da08ctfrofx1b.cloudfront.net/${e}`;\nvar Ts = /* @__PURE__ */ I(' ', 1), As = /* @__PURE__ */ I('
    ');\nconst Os = {\n hash: \"svelte-10uf5fq\",\n code: \".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;}\"\n};\nfunction Si(e, t) {\n $(t, !1), L(e, Os);\n let r = y(t, \"brandingInfo\", 8, null);\n Ee();\n var n = As(), i = k(n);\n C(\n i,\n () => r() !== null,\n (o) => {\n var a = Ts(), s = U(a);\n C(s, () => r().app_icon_webp !== null && r().app_icon !== null, (f) => {\n var u = /* @__PURE__ */ ne(() => Rn(r().app_icon)), d = /* @__PURE__ */ ne(() => Rn(r().app_icon_webp));\n Sn(f, {\n get src() {\n return g(u);\n },\n get srcWebp() {\n return g(d);\n }\n });\n });\n var c = N(s, 2), l = k(c);\n B(() => re(l, r().seller_company_name)), b(o, a);\n },\n (o) => {\n Sn(o, {});\n }\n ), b(e, n), Y();\n}\nvar Ns = /* @__PURE__ */ I('
    ');\nconst Ss = {\n hash: \"svelte-17puakv\",\n code: \".rcb-post-purchase-header-layout.svelte-17puakv {display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px;}\"\n};\nfunction Rs(e, t) {\n L(e, Ss);\n let r = y(t, \"brandingInfo\", 8, null), n = y(t, \"onClose\", 8);\n pt(e, {\n as: \"header\",\n children: (i, o) => {\n var a = Ns(), s = k(a);\n Si(s, {\n get brandingInfo() {\n return r();\n }\n });\n var c = N(s, 2);\n Zr(c, {\n $$events: {\n click(...l) {\n var f;\n (f = n()) == null || f.apply(this, l);\n }\n }\n }), b(i, a);\n },\n $$slots: { default: !0 }\n });\n}\nvar Ds = /* @__PURE__ */ I(' ', 1), Ms = /* @__PURE__ */ I(\" \", 1), Us = /* @__PURE__ */ I('
    '), Ls = /* @__PURE__ */ I(\" \", 1);\nconst Cs = {\n hash: \"svelte-idou50\",\n code: \".rcb-modal-message.svelte-idou50 {width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;margin-bottom:16px;margin-top:16px;}.title.svelte-idou50 {font-size:24px;line-height:1.25em;}.subtitle.svelte-idou50 {font-size:16px;line-height:1.25em;overflow-wrap:anywhere;}\"\n};\nfunction Ri(e, t) {\n L(e, Cs);\n let r = y(t, \"brandingInfo\", 8, null), n = y(t, \"onContinue\", 8), i = y(t, \"title\", 8), o = y(t, \"type\", 8), a = y(t, \"closeButtonTitle\", 8, \"Go back to app\");\n At(e, {\n gutter: \"32px\",\n children: (s, c) => {\n var l = Ls(), f = U(l);\n Rs(f, {\n get brandingInfo() {\n return r();\n },\n get onClose() {\n return n();\n }\n });\n var u = N(f, 2);\n pt(u, {\n children: (v, h) => {\n var p = Us(), E = k(p);\n At(E, {\n gutter: \"48px\",\n children: (w, m) => {\n var P = Ms(), _ = U(P);\n W(_, t, \"icon\", {});\n var x = N(_, 2);\n At(x, {\n gutter: \"16px\",\n children: (R, q) => {\n var T = Ds(), V = U(T), z = k(V), ue = N(V, 2), O = k(ue);\n W(O, t, \"default\", {}), B(() => re(z, i())), b(R, T);\n },\n $$slots: { default: !0 }\n }), b(w, P);\n },\n $$slots: { default: !0 }\n }), B(() => G(p, \"data-type\", o())), b(v, p);\n },\n $$slots: { default: !0 }\n });\n var d = N(u, 2);\n Wr(d, {\n children: (v, h) => {\n Qr(v, {\n type: \"submit\",\n $$events: {\n click(...p) {\n var E;\n (E = n()) == null || E.apply(this, p);\n }\n },\n children: (p, E) => {\n var w = Ke();\n B(() => re(w, a())), b(p, w);\n },\n $$slots: { default: !0 }\n });\n },\n $$slots: { default: !0 }\n }), b(s, l);\n },\n $$slots: { default: !0 }\n });\n}\nvar Bs = /* @__PURE__ */ I(\"
    If this error persists, please contact .\", 1), qs = /* @__PURE__ */ I(\" \", 1);\nfunction Fs(e, t) {\n $(t, !1);\n let r = y(t, \"brandingInfo\", 8, null), n = y(t, \"lastError\", 8), i = y(t, \"supportEmail\", 8, null), o = y(t, \"productDetails\", 8, null), a = y(t, \"onContinue\", 8);\n sr(() => {\n H.errorLog(`Displayed error: ${ie[n().errorCode]}. Message: ${n().message ?? \"None\"}. Underlying error: ${n().underlyingErrorMessage ?? \"None\"}`);\n });\n function s() {\n var l;\n switch (n().errorCode) {\n case ie.AlreadyPurchasedError:\n return ((l = o()) == null ? void 0 : l.productType) === me.Subscription ? \"Already subscribed\" : \"Already purchased\";\n default:\n return \"Something went wrong\";\n }\n }\n Ee();\n var c = /* @__PURE__ */ ne(s);\n Ri(e, {\n get title() {\n return g(c);\n },\n get brandingInfo() {\n return r();\n },\n get onContinue() {\n return a();\n },\n type: \"error\",\n closeButtonTitle: \"Try Again\",\n children: (l, f) => {\n var u = qs(), d = U(u);\n B(() => re(d, `${n().getPublicErrorMessage(o()) ?? \"\"} `));\n var v = N(d);\n C(v, i, (h) => {\n var p = Bs(), E = N(U(p), 2), w = k(E);\n B(() => {\n G(E, \"href\", `mailto:${i() ?? \"\"}`), re(w, i());\n }), b(h, p);\n }), b(l, u);\n },\n $$slots: {\n default: !0,\n icon: (l, f) => {\n gs(l);\n }\n }\n }), Y();\n}\nconst js = `\n \n \n \n\n`;\nvar Hs = /* @__PURE__ */ I('
    ');\nconst Vs = {\n hash: \"svelte-7wiquz\",\n code: \".rcb-ui-asset-icon.svelte-7wiquz {width:96px;height:96px;margin:0 auto;}\"\n};\nfunction Gs(e) {\n L(e, Vs);\n var t = Hs(), r = k(t);\n ht(r, () => js), b(e, t);\n}\nfunction $s(e, t) {\n var a;\n $(t, !1);\n let r = y(t, \"productDetails\", 8, null), n = y(t, \"brandingInfo\", 8, null), i = y(t, \"onContinue\", 8);\n const o = ((a = r()) == null ? void 0 : a.productType) === me.Subscription;\n Ee(), Ri(e, {\n type: \"success\",\n title: \"Purchase successful\",\n get brandingInfo() {\n return n();\n },\n get onContinue() {\n return i();\n },\n closeButtonTitle: \"Close\",\n children: (s, c) => {\n var l = X(), f = U(l);\n C(f, () => o, (u) => {\n var d = Ke(\"Your subscription is now active.\");\n b(u, d);\n }), b(s, l);\n },\n $$slots: {\n default: !0,\n icon: (s, c) => {\n Gs(s);\n }\n }\n }), Y();\n}\nfunction Ys(e, t, r, n, i = {}) {\n const o = r.create(t, i);\n return o.mount(e), o.on(\"change\", (a) => n(\"change\", a)), o.on(\"ready\", (a) => n(\"ready\", a)), o.on(\"focus\", (a) => n(\"focus\", a)), o.on(\"blur\", (a) => n(\"blur\", a)), o.on(\"escape\", (a) => n(\"escape\", a)), o.on(\"click\", (a) => n(\"click\", a)), o.on(\"loaderror\", (a) => n(\"loaderror\", a)), o.on(\"loaderstart\", (a) => n(\"loaderstart\", a)), o.on(\"networkschange\", (a) => n(\"networkschange\", a)), o;\n}\nconst zs = typeof window > \"u\";\nfunction Ks(e) {\n if (!zs)\n return e.registerAppInfo({\n name: \"svelte-stripe-js\",\n url: \"https://svelte-stripe-js.vercel.app\"\n });\n}\nvar Qs = /* @__PURE__ */ I(\"
    \");\nfunction Ws(e, t) {\n $(t, !1);\n let r, n = ce();\n const i = Ta(), { elements: o } = ra(\"stripe\");\n let a = y(t, \"options\", 8, void 0);\n sr(() => (r = Ys(g(n), \"payment\", o, i, a()), () => r.destroy()));\n function s() {\n r.blur();\n }\n function c() {\n r.clear();\n }\n function l() {\n r.destroy();\n }\n function f() {\n r.focus();\n }\n Ee();\n var u = Qs();\n return Pa(u, (d) => A(n, d), () => g(n)), b(e, u), Vt(t, \"blur\", s), Vt(t, \"clear\", c), Vt(t, \"destroy\", l), Vt(t, \"focus\", f), Y({ blur: s, clear: c, destroy: l, focus: f });\n}\nfunction Zs(e, t) {\n $(t, !1);\n const r = ce();\n let n = y(t, \"stripe\", 8), i = y(t, \"mode\", 8, void 0), o = y(t, \"theme\", 8, \"stripe\"), a = y(t, \"variables\", 24, () => ({})), s = y(t, \"rules\", 24, () => ({})), c = y(t, \"labels\", 8, \"above\"), l = y(t, \"loader\", 8, \"auto\"), f = y(t, \"fonts\", 24, () => []), u = y(t, \"locale\", 8, \"auto\"), d = y(t, \"currency\", 8, void 0), v = y(t, \"amount\", 8, void 0), h = y(t, \"clientSecret\", 8, void 0), p = y(t, \"elements\", 12, null);\n Xe(\n () => (J(o()), J(a()), J(s()), J(c())),\n () => {\n A(r, {\n theme: o(),\n variables: a(),\n rules: s(),\n labels: c()\n });\n }\n ), Xe(\n () => (J(n()), J(p()), J(i()), J(d()), J(v()), g(r), J(h()), J(f()), J(l()), J(u()), hn),\n () => {\n n() && !p() && (p(n().elements({\n mode: i(),\n currency: d(),\n amount: v(),\n appearance: g(r),\n clientSecret: h(),\n fonts: f(),\n loader: l(),\n locale: u()\n })), Ks(n()), hn(\"stripe\", {\n stripe: n(),\n elements: p()\n }));\n }\n ), Xe(\n () => (J(p()), g(r), J(u())),\n () => {\n p() && p().update({\n appearance: g(r),\n locale: u()\n });\n }\n ), Hr(), Ee();\n var E = X(), w = U(E);\n C(w, () => n() && p(), (m) => {\n var P = X(), _ = U(P);\n W(_, t, \"default\", {}), b(m, P);\n }), b(e, E), Y();\n}\nvar Di = \"https://js.stripe.com/v3\", Xs = /^https:\\/\\/js\\.stripe\\.com\\/v3\\/?(\\?.*)?$/, Dn = \"loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used\", Js = function() {\n for (var t = document.querySelectorAll('script[src^=\"'.concat(Di, '\"]')), r = 0; r < t.length; r++) {\n var n = t[r];\n if (Xs.test(n.src))\n return n;\n }\n return null;\n}, Mn = function(t) {\n var r = \"\", n = document.createElement(\"script\");\n n.src = \"\".concat(Di).concat(r);\n var i = document.head || document.body;\n if (!i)\n throw new Error(\"Expected document.body not to be null. Stripe.js requires a element.\");\n return i.appendChild(n), n;\n}, el = function(t, r) {\n !t || !t._registerWrapper || t._registerWrapper({\n name: \"stripe-js\",\n version: \"4.6.0\",\n startTime: r\n });\n}, Et = null, $t = null, Yt = null, tl = function(t) {\n return function() {\n t(new Error(\"Failed to load Stripe.js\"));\n };\n}, rl = function(t, r) {\n return function() {\n window.Stripe ? t(window.Stripe) : r(new Error(\"Stripe.js not available\"));\n };\n}, nl = function(t) {\n return Et !== null ? Et : (Et = new Promise(function(r, n) {\n if (typeof window > \"u\" || typeof document > \"u\") {\n r(null);\n return;\n }\n if (window.Stripe && t && console.warn(Dn), window.Stripe) {\n r(window.Stripe);\n return;\n }\n try {\n var i = Js();\n if (i && t)\n console.warn(Dn);\n else if (!i)\n i = Mn(t);\n else if (i && Yt !== null && $t !== null) {\n var o;\n i.removeEventListener(\"load\", Yt), i.removeEventListener(\"error\", $t), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = Mn(t);\n }\n Yt = rl(r, n), $t = tl(n), i.addEventListener(\"load\", Yt), i.addEventListener(\"error\", $t);\n } catch (a) {\n n(a);\n return;\n }\n }), Et.catch(function(r) {\n return Et = null, Promise.reject(r);\n }));\n}, il = function(t, r, n) {\n if (t === null)\n return null;\n var i = t.apply(void 0, r);\n return el(i, n), i;\n}, xt, Mi = !1, Ui = function() {\n return xt || (xt = nl(null).catch(function(t) {\n return xt = null, Promise.reject(t);\n }), xt);\n};\nPromise.resolve().then(function() {\n return Ui();\n}).catch(function(e) {\n Mi || console.warn(e);\n});\nvar ol = function() {\n for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)\n r[n] = arguments[n];\n Mi = !0;\n var i = Date.now();\n return Ui().then(function(o) {\n return il(o, r, i);\n });\n}, al = /* @__PURE__ */ I('
    ');\nconst sl = {\n hash: \"svelte-1xe711j\",\n code: \".rcb-header-layout.svelte-1xe711j {display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500;}\"\n};\nfunction Xr(e, t) {\n L(e, sl), pt(e, {\n as: \"header\",\n children: (r, n) => {\n var i = al(), o = k(i);\n W(o, t, \"default\", {}), b(r, i);\n },\n $$slots: { default: !0 }\n });\n}\nconst ll = `\n \n\n`;\nvar cl = /* @__PURE__ */ I('
    ');\nconst ul = {\n hash: \"svelte-1z0jca3\",\n code: \"div.svelte-1z0jca3 {height:24px;width:24px;}\"\n};\nfunction fl(e) {\n L(e, ul);\n var t = cl(), r = k(t);\n ht(r, () => ll), b(e, t);\n}\nvar dl = /* @__PURE__ */ I('
    ');\nconst vl = {\n hash: \"svelte-rjmul6\",\n code: `.processing.svelte-rjmul6 {width:12px;aspect-ratio:1;border-radius:50%;\n animation: svelte-rjmul6-l5 1.5s infinite linear;}\n @keyframes svelte-rjmul6-l5 {\n 0% {\n box-shadow:\n 20px 0 #fff2,\n -20px 0 #fff2;\n background: #fff2;\n }\n 25% {\n box-shadow:\n 20px 0 #fff2,\n -20px 0 #ffff;\n background: #fff2;\n }\n 50% {\n box-shadow:\n 20px 0 #fff2,\n -20px 0 #fff2;\n background: #ffff;\n }\n 75% {\n box-shadow:\n 20px 0 #ffff,\n -20px 0 #fff2;\n background: #fff2;\n }\n 100% {\n box-shadow:\n 20px 0 #fff2,\n -20px 0 #fff2;\n background: #fff2;\n }\n }`\n};\nfunction Li(e) {\n L(e, vl);\n var t = dl();\n b(e, t);\n}\nconst gl = {\n error: \"#f2545b\",\n warning: \"#f4e971\",\n focus: \"#000080\",\n accent: \"#767676\",\n primary: \"#000000\",\n \"primary-text\": \"#ffffff\",\n white: \"#ffffff\",\n \"grey-text-dark\": \"rgba(0,0,0,1)\",\n \"grey-text-light\": \"rgba(0,0,0,0.5)\",\n \"grey-ui-dark\": \"rgba(0,0,0,0.125)\",\n \"grey-ui-light\": \"rgba(0,0,0,0.005)\",\n \"input-background\": \"transparent\",\n background: \"white\"\n}, _l = {\n error: \"#f2545b\",\n warning: \"#f4e971\",\n focus: \"#000080\",\n accent: \"#767676\",\n primary: \"#ffffff\",\n \"primary-text\": \"#000000\",\n white: \"#ffffff\",\n \"grey-text-dark\": \"rgba(255,255,255,1)\",\n \"grey-text-light\": \"rgba(255,255,255,0.5)\",\n \"grey-ui-dark\": \"rgba(255,255,255,0.125)\",\n \"grey-ui-light\": \"rgba(255,255,255,0.005)\",\n \"input-background\": \"transparent\",\n background: \"#000000\"\n}, Ci = {\n error: \"color_error\",\n focus: \"color_accent\",\n accent: \"color_accent\",\n primary: \"color_buttons_primary\"\n}, hl = {\n ...Ci,\n background: \"color_form_bg\"\n}, pl = {\n ...Ci,\n background: \"color_product_info_bg\"\n}, Bi = {\n \"input-border-radius\": \"12px\",\n \"input-button-border-radius\": \"12px\",\n \"modal-border-radius\": \"16px\"\n}, bl = {\n \"input-border-radius\": \"0px\",\n \"input-button-border-radius\": \"0px\",\n \"modal-border-radius\": \"0px\"\n}, ml = {\n \"input-border-radius\": \"24px\",\n \"input-button-border-radius\": \"56px\",\n \"modal-border-radius\": \"16px\"\n}, Un = Bi, Ln = (e) => e.length == 7 ? {\n r: parseInt(e.slice(1, 3), 16),\n g: parseInt(e.slice(3, 5), 16),\n b: parseInt(e.slice(5, 7), 16)\n} : e.length == 4 ? {\n r: parseInt(e[1], 16),\n g: parseInt(e[2], 16),\n b: parseInt(e[3], 16)\n} : null, qi = ({\n r: e,\n g: t,\n b: r,\n luminanceThreshold: n\n}) => {\n const i = (a) => (a = a / 255, a <= 0.03928 ? a / 12.92 : Math.pow((a + 0.055) / 1.055, 2.4));\n return 0.2126 * i(e) + 0.7152 * i(t) + 0.0722 * i(r) > n;\n}, Fi = 0.37, yl = (e, t = Fi) => {\n const r = qi({ ...e, luminanceThreshold: t }) ? \"0,0,0\" : \"255,255,255\";\n return {\n \"grey-text-dark\": `rgb(${r})`,\n \"grey-text-light\": `rgba(${r},0.50)`,\n \"grey-ui-dark\": `rgba(${r},0.125)`,\n \"grey-ui-light\": `rgba(${r},0.05)`\n };\n}, wl = (e, t, r, n = Fi) => {\n const i = {\n \"grey-text-dark\": r[\"grey-text-dark\"],\n \"grey-text-light\": r[\"grey-text-light\"],\n \"grey-ui-dark\": r[\"grey-ui-dark\"],\n \"grey-ui-light\": r[\"grey-ui-light\"],\n \"primary-text\": r[\"primary-text\"]\n };\n if (e != null && e.startsWith(\"#\")) {\n const o = Ln(e);\n o !== null && Object.assign(i, yl(o));\n }\n if (t != null && t.startsWith(\"#\")) {\n const o = Ln(t);\n o !== null && (i[\"primary-text\"] = qi({ ...o, luminanceThreshold: n }) ? \"black\" : \"white\");\n }\n return i;\n}, El = (e, t) => e || t, xl = (e, t, r) => {\n const n = Object.entries(e).map(([i, o]) => [\n i,\n El(\n r ? r[o] : null,\n t[i]\n )\n ]);\n return Object.fromEntries(n);\n}, ji = (e, t, r) => {\n const n = xl(\n e,\n t,\n r\n );\n return r ? {\n ...t,\n ...n,\n ...wl(\n n.background,\n n.primary,\n t\n )\n } : { ...t };\n}, Il = (e) => ji(\n pl,\n _l,\n e\n), Hi = (e) => ji(\n hl,\n gl,\n e\n), Jr = (e) => {\n if (!e)\n return Un;\n switch (e.shapes) {\n case \"rounded\":\n return Bi;\n case \"rectangle\":\n return bl;\n case \"pill\":\n return ml;\n default:\n return Un;\n }\n}, Xt = (e = \"\", t) => t.map(([r, n]) => `--rc-${e}-${r}: ${n}`).join(\"; \"), Vi = (e) => {\n const t = Xt(\n \"color\",\n Object.entries(Il(e))\n ), r = Xt(\n \"shape\",\n Object.entries(Jr(e))\n );\n return [t, r].join(\"; \");\n}, Pl = (e) => {\n const t = Xt(\n \"color\",\n Object.entries(Hi(e))\n ), r = Xt(\n \"shape\",\n Object.entries(Jr(e))\n );\n return [t, r].join(\"; \");\n};\nclass en {\n constructor(t) {\n this.brandingAppearance = t;\n }\n get shape() {\n return Jr(this.brandingAppearance);\n }\n get formColors() {\n return Hi(this.brandingAppearance);\n }\n get formStyleVars() {\n return Pl(this.brandingAppearance);\n }\n get productInfoStyleVars() {\n return Vi(this.brandingAppearance);\n }\n}\nvar kl = /* @__PURE__ */ I('
    Secure Checkout
    ', 1), Tl = /* @__PURE__ */ I('
    '), Al = /* @__PURE__ */ I(\" \", 1), Ol = /* @__PURE__ */ I(\"
    \", 1), Nl = /* @__PURE__ */ I(\"
    \");\nconst Sl = {\n hash: \"svelte-8jsoa8\",\n code: `.rcb-stripe-elements-container.svelte-8jsoa8 {width:100%;\n\n /* The standard height of the payment form from Stripe */\n /* Added to avoid the card getting smaller while loading */min-height:320px;margin-top:32px;margin-bottom:24px;}`\n};\nfunction Rl(e, t) {\n var x;\n $(t, !1), L(e, Sl);\n let r = y(t, \"onClose\", 8), n = y(t, \"onContinue\", 8), i = y(t, \"onError\", 8), o = y(t, \"paymentInfoCollectionMetadata\", 8), a = y(t, \"processing\", 12, !1), s = y(t, \"productDetails\", 8), c = y(t, \"purchaseOptionToUse\", 8), l = y(t, \"brandingInfo\", 8);\n const f = o().data.client_secret;\n let u = ce(null), d = ce(), v = ce(), h = ce(!1);\n sr(async () => {\n const R = o().data.publishable_api_key, q = o().data.stripe_account_id;\n if (!R || !q)\n throw new Error(\"Stripe publishable key or account ID not found\");\n A(u, await ol(R, { stripeAccount: q }));\n });\n const p = async () => {\n if (a() || !g(u) || !g(v)) return;\n a(!0);\n const R = await g(u).confirmSetup({\n elements: g(v),\n redirect: \"if_required\"\n });\n R.error ? (a(!1), i()(new K(ie.StripeError, R.error.message))) : n()();\n }, E = new en((x = l()) == null ? void 0 : x.appearance);\n let w = E.shape, m = E.formColors;\n Xe(() => g(d), () => {\n g(d) && g(d)._elements.length > 0 && A(v, g(d));\n }), Hr(), Ee();\n var P = Nl(), _ = k(P);\n C(\n _,\n () => g(u) && f,\n (R) => {\n var q = Ol(), T = U(q);\n Xr(T, {\n children: (j, he) => {\n var Se = kl(), xe = U(Se), Qe = k(xe);\n fl(Qe);\n var be = N(xe, 2);\n Zr(be, {\n $$events: {\n click(...rt) {\n var Re;\n (Re = r()) == null || Re.apply(this, rt);\n }\n }\n }), b(j, Se);\n },\n $$slots: { default: !0 }\n });\n var V = N(T, 2), z = k(V), ue = /* @__PURE__ */ ne(() => ({\n borderRadius: w[\"input-border-radius\"],\n fontSizeBase: \"16px\",\n fontSizeSm: \"16px\",\n spacingGridRow: \"16px\",\n focusBoxShadow: \"none\",\n colorDanger: m.error,\n colorTextPlaceholder: m[\"grey-text-light\"],\n colorText: m[\"grey-text-dark\"],\n colorTextSecondary: m[\"grey-text-light\"]\n })), O = /* @__PURE__ */ ne(() => ({\n \".Input\": {\n boxShadow: \"none\",\n border: `2px solid ${m[\"grey-ui-dark\"]}`,\n backgroundColor: \"transparent\",\n color: m[\"grey-text-dark\"]\n },\n \".Input:focus\": {\n border: `2px solid ${m.focus}`,\n outline: \"none\"\n },\n \".Label\": {\n marginBottom: \"8px\",\n fontWeight: \"500\",\n lineHeight: \"22px\",\n color: m[\"grey-text-dark\"]\n },\n \".Input--invalid\": { boxShadow: \"none\" },\n \".Tab\": {\n boxShadow: \"none\",\n backgroundColor: \"transparent\",\n color: m[\"grey-text-light\"],\n border: `2px solid ${m[\"grey-ui-dark\"]}`\n },\n \".Tab:hover, .Tab:focus, .Tab--selected, .Tab--selected:hover, .Tab--selected:focus\": {\n boxShadow: \"none\",\n color: m[\"grey-text-dark\"]\n },\n \".Tab:focus, .Tab--selected, .Tab--selected:hover, .Tab--selected:focus\": { border: `2px solid ${m.focus}` },\n \".TabIcon\": { fill: m[\"grey-text-light\"] },\n \".TabIcon--selected\": { fill: m[\"grey-text-dark\"] },\n \".Block\": {\n boxShadow: \"none\",\n backgroundColor: \"transparent\",\n border: `2px solid ${m[\"grey-ui-dark\"]}`\n }\n }));\n Zs(z, {\n get stripe() {\n return g(u);\n },\n clientSecret: f,\n loader: \"always\",\n locale: \"en\",\n get elements() {\n return g(d);\n },\n set elements(j) {\n A(d, j);\n },\n theme: \"stripe\",\n get variables() {\n return g(ue);\n },\n get rules() {\n return g(O);\n },\n children: (j, he) => {\n var Se = Al(), xe = U(Se);\n pt(xe, {\n children: (be, rt) => {\n var Re = Tl(), Ht = k(Re), Ie = /* @__PURE__ */ ne(() => {\n var De;\n return {\n business: (De = l()) != null && De.seller_company_name ? { name: l().seller_company_name } : void 0,\n layout: { type: \"tabs\" }\n };\n });\n Ws(Ht, {\n get options() {\n return g(Ie);\n },\n $$events: {\n change: (De) => {\n A(h, De.detail.complete);\n }\n }\n }), b(be, Re);\n },\n $$slots: { default: !0 }\n });\n var Qe = N(xe, 2);\n Wr(Qe, {\n children: (be, rt) => {\n At(be, {\n children: (Re, Ht) => {\n var Ie = /* @__PURE__ */ ne(() => a() || !g(h));\n Qr(Re, {\n get disabled() {\n return g(Ie);\n },\n testId: \"PayButton\",\n children: (De, Pe) => {\n var We = X(), Me = U(We);\n C(\n Me,\n a,\n (Ue) => {\n Li(Ue);\n },\n (Ue) => {\n var ke = X(), Le = U(ke);\n C(\n Le,\n () => {\n var se, pe;\n return (pe = (se = s().subscriptionOptions) == null ? void 0 : se[c().id]) == null ? void 0 : pe.trial;\n },\n (se) => {\n var pe = Ke(\"Start Trial\");\n b(se, pe);\n },\n (se) => {\n var pe = Ke(\"Pay\");\n b(se, pe);\n },\n !0\n ), b(Ue, ke);\n }\n ), b(De, We);\n },\n $$slots: { default: !0 }\n });\n },\n $$slots: { default: !0 }\n });\n },\n $$slots: { default: !0 }\n }), b(j, Se);\n },\n $$slots: { default: !0 },\n $$legacy: !0\n }), ar(\"submit\", V, Ii(p)), b(R, q);\n },\n (R) => {\n Ir(R);\n }\n ), b(e, P), Y();\n}\nfunction Dl(e) {\n return e.trim() === \"\" ? \"You need to provide your email address to continue.\" : e.match(/^[^@]+@[^@]+\\.[^@]+$/) ? null : \"Email is not valid. Please provide a valid email address.\";\n}\nfunction Ml(e) {\n if (e && !e.match(/^[A-Z]{3}$/)) {\n const t = `Currency code ${e} is not valid. Please provide a valid ISO 4217 currency code.`;\n throw H.errorLog(t), new Z(te.ConfigurationError, t);\n }\n}\nvar Ul = /* @__PURE__ */ I(\"Billing email address \", 1), Ll = /* @__PURE__ */ I('
    '), Cl = /* @__PURE__ */ I('
    '), Bl = /* @__PURE__ */ I('
    ');\nconst ql = {\n hash: \"svelte-yf01ty\",\n code: \".container.svelte-yf01ty {display:flex;flex-direction:column;flex-grow:1;}form.svelte-yf01ty {display:flex;flex-direction:column;min-height:100%;flex-grow:1;}.form-container.svelte-yf01ty {display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px;}.form-label.svelte-yf01ty {margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px;}.form-input.error.svelte-yf01ty input:where(.svelte-yf01ty) {border-color:var(--rc-color-error);}.form-error.svelte-yf01ty {margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error);}input.svelte-yf01ty {width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:var(--rc-shape-input-border-radius);font-size:16px;height:48px;padding:6px 14px;background:var(--rc-color-input-background);color:inherit;}input.svelte-yf01ty:focus {outline:none;border:2px solid var(--rc-color-focus);}\"\n};\nfunction Fl(e, t) {\n $(t, !1), L(e, ql);\n const r = ce(), n = ce(), i = ce();\n let o = y(t, \"onContinue\", 8), a = y(t, \"onClose\", 8), s = y(t, \"processing\", 8), c = y(t, \"lastError\", 8);\n const l = async () => {\n const p = Dl(g(r));\n p ? A(n, p) : o()({ email: g(r) });\n };\n Aa(async () => {\n var p;\n A(n, ((p = c()) == null ? void 0 : p.message) ?? \"\");\n }), Xe(() => {\n }, () => {\n A(r, \"\");\n }), Xe(() => {\n }, () => {\n A(n, \"\");\n }), Xe(() => g(n), () => {\n A(i, g(n) ? \"error\" : \"\");\n }), Hr(), Ee();\n var f = Bl(), u = k(f);\n Xr(u, {\n children: (p, E) => {\n var w = Ul(), m = N(U(w), 2);\n Zr(m, {\n $$events: {\n click(...P) {\n var _;\n (_ = a()) == null || _.apply(this, P);\n }\n }\n }), b(p, w);\n },\n $$slots: { default: !0 }\n });\n var d = N(u, 2), v = k(d);\n pt(v, {\n children: (p, E) => {\n var w = Cl(), m = N(k(w), 2), P = k(m), _ = N(m, 2);\n C(_, () => g(n), (x) => {\n var R = Ll(), q = k(R);\n B(() => re(q, g(n))), b(x, R);\n }), B(() => Yr(m, `form-input ${g(i) ?? \"\"} svelte-yf01ty`)), Ia(P, () => g(r), (x) => A(r, x)), b(p, w);\n },\n $$slots: { default: !0 }\n });\n var h = N(v, 2);\n Wr(h, {\n children: (p, E) => {\n At(p, {\n children: (w, m) => {\n Qr(w, {\n get disabled() {\n return s();\n },\n type: \"submit\",\n children: (P, _) => {\n var x = X(), R = U(x);\n C(\n R,\n s,\n (q) => {\n Li(q);\n },\n (q) => {\n var T = Ke(\"Continue\");\n b(q, T);\n }\n ), b(P, x);\n },\n $$slots: { default: !0 }\n });\n },\n $$slots: { default: !0 }\n });\n },\n $$slots: { default: !0 }\n }), ar(\"submit\", d, Ii(l)), b(e, f), Y();\n}\nvar jl = /* @__PURE__ */ I('
    ');\nconst Hl = {\n hash: \"svelte-17tslso\",\n code: \".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;}\"\n};\nfunction Vl(e, t) {\n L(e, Hl);\n var r = jl(), n = k(r);\n W(n, t, \"default\", {}), b(e, r);\n}\nvar Gl = /* @__PURE__ */ I('
    ');\nconst $l = {\n hash: \"svelte-1fufj5b\",\n code: `.rcb-modal-container.svelte-1fufj5b {width:100%;}.rcb-modal-main.svelte-1fufj5b {box-sizing:border-box;border-radius:var(--rc-shape-modal-border-radius);background-color:var(--rc-color-background);color:var(--rc-color-grey-text-dark);padding:40px;flex-direction:column;display:flex;}\n\n @media screen and (max-width: 960px) {.rcb-modal-container.svelte-1fufj5b {width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto;}.rcb-modal-main.svelte-1fufj5b {min-width:300px;max-width:640px;padding:32px;}\n }`\n};\nfunction Gi(e, t) {\n L(e, $l);\n let r = y(t, \"style\", 8, \"\");\n var n = Gl(), i = k(n), o = k(i);\n W(o, t, \"default\", {}), B(() => G(i, \"style\", r())), b(e, n);\n}\nfunction Yl(e, t) {\n let r = y(t, \"condition\", 8, !1);\n var n = X(), i = U(n);\n C(\n i,\n r,\n (o) => {\n Vl(o, {\n children: (a, s) => {\n var c = X(), l = U(c);\n W(l, t, \"default\", {}), b(a, c);\n },\n $$slots: { default: !0 }\n });\n },\n (o) => {\n var a = X(), s = U(a);\n W(s, t, \"default\", {}), b(o, a);\n }\n ), b(e, n);\n}\nconst zl = `\n \n \n \n \n \n \n \n \n\n`;\nvar Kl = /* @__PURE__ */ I('
    ');\nfunction Ql(e) {\n var t = Kl(), r = k(t);\n ht(r, () => zl), b(e, t);\n}\nvar Wl = /* @__PURE__ */ I('
    Sandbox
    ');\nconst Zl = {\n hash: \"svelte-1ny4y2s\",\n code: \"div.svelte-1ny4y2s {background-color:var(--rc-color-warning);color:rgba(0,0,0,1);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px;}\"\n};\nfunction Xl(e) {\n L(e, Zl);\n var t = Wl();\n b(e, t);\n}\nvar Jl = /* @__PURE__ */ I('
    ');\nconst ec = {\n hash: \"svelte-wuqzav\",\n code: `.rcb-ui-layout.svelte-wuqzav {width:100vw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative;padding:0px 80px;box-sizing:border-box;}\n\n @media screen and (max-width: 960px) {.rcb-ui-layout.svelte-wuqzav {flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%;padding:16px 0;}\n }\n\n @media screen and (max-width: 960px) and (max-height: 960px) {.rcb-ui-layout.svelte-wuqzav {overflow-y:scroll;justify-content:flex-start;}\n }`\n};\nfunction tc(e, t) {\n L(e, ec);\n let r = y(t, \"style\", 8, \"\");\n var n = Jl(), i = k(n);\n W(i, t, \"default\", {}), B(() => G(n, \"style\", r())), b(e, n);\n}\nvar rc = /* @__PURE__ */ I('
    ');\nconst nc = {\n hash: \"svelte-1sfb5if\",\n code: `.rcb-ui-container.svelte-1sfb5if {color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, \"system-ui\", \"Segoe UI\", Roboto, Oxygen, Ubuntu,\n Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;}`\n};\nfunction ic(e, t) {\n L(e, nc);\n let r = y(t, \"style\", 8, \"\");\n var n = rc(), i = k(n);\n W(i, t, \"default\", {}), B(() => G(n, \"style\", r())), b(e, n);\n}\nvar oc = /* @__PURE__ */ I(\" \", 1), ac = /* @__PURE__ */ I('
    ');\nconst sc = {\n hash: \"svelte-17dr902\",\n code: `.rcb-ui-aside.svelte-17dr902 {margin-right:16px;flex:320px 1 0;max-width:480px;}\n\n @media screen and (max-width: 960px) {.rcb-ui-aside.svelte-17dr902 {margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center;flex:none;max-width:none;}\n }`\n};\nfunction lc(e, t) {\n $(t, !1), L(e, sc);\n let r = y(t, \"brandingAppearance\", 8, void 0), n = new en(r()).productInfoStyleVars;\n Ee();\n var i = ac();\n G(i, \"style\", n);\n var o = k(i);\n Gi(o, {\n children: (a, s) => {\n var c = oc(), l = U(c);\n W(l, t, \"header\", {});\n var f = N(l, 2);\n W(f, t, \"default\", {}), b(a, c);\n },\n $$slots: { default: !0 }\n }), b(e, i), Y();\n}\nvar cc = /* @__PURE__ */ I(\" \", 1), uc = /* @__PURE__ */ I('
    ');\nconst fc = {\n hash: \"svelte-vpgys\",\n code: `.rcb-ui-main.svelte-vpgys {flex:480px 1 0;max-width:640px;}\n\n @media screen and (max-width: 960px) {.rcb-ui-main.svelte-vpgys {flex:none;max-width:none;min-width:100%;}\n }`\n};\nfunction dc(e, t) {\n $(t, !1), L(e, fc);\n let r = y(t, \"brandingAppearance\", 8, void 0), n = new en(r()).formStyleVars;\n Ee();\n var i = uc();\n G(i, \"style\", n);\n var o = k(i);\n Gi(o, {\n style: \"min-height: 360px;\",\n children: (a, s) => {\n var c = cc(), l = U(c);\n W(l, t, \"header\", {});\n var f = N(l, 2);\n W(f, t, \"default\", {}), b(a, c);\n },\n $$slots: { default: !0 }\n }), b(e, i), Y();\n}\nvar vc = /* @__PURE__ */ I(\" \", 1), gc = /* @__PURE__ */ I(\" \", 1), _c = /* @__PURE__ */ I(\" \", 1);\nfunction hc(e, t) {\n $(t, !1);\n let r = y(t, \"asModal\", 8, !0), n = y(t, \"customerEmail\", 12), i = y(t, \"appUserId\", 8), o = y(t, \"rcPackage\", 8), a = y(t, \"purchaseOption\", 8), s = y(t, \"brandingInfo\", 8), c = y(t, \"onFinished\", 8), l = y(t, \"onError\", 8), f = y(t, \"onClose\", 8), u = y(t, \"purchases\", 8), d = y(t, \"purchaseOperationHelper\", 8), v = ce(\"\"), h = ce(null), p = ce(null), E = ce(null);\n const w = o().rcBillingProduct.identifier ?? null, m = o().rcBillingProduct.defaultPurchaseOption, P = a() ? a() : m;\n let _ = ce(\"present-offer\"), x = null;\n const R = [\n \"present-offer\",\n \"needs-auth-info\",\n \"processing-auth-info\",\n \"needs-payment-info\",\n \"polling-purchase-status\",\n \"loading\"\n ];\n sr(async () => {\n var O;\n if (A(h, o().rcBillingProduct), A(v, Vi((O = s()) == null ? void 0 : O.appearance)), g(_) === \"present-offer\") {\n n() ? T() : A(_, \"needs-auth-info\");\n return;\n }\n });\n const q = () => {\n f()();\n }, T = () => {\n if (w === null) {\n z(new K(ie.ErrorSettingUpPurchase, \"Product ID was not set before purchase.\"));\n return;\n } else g(_) === \"present-offer\" && A(_, \"loading\");\n if (!n()) {\n z(new K(ie.MissingEmailError));\n return;\n }\n d().startPurchase(i(), w, P, n(), o().rcBillingProduct.presentedOfferingContext).then((O) => {\n if (O.next_action === \"collect_payment_info\") {\n A(E, null), A(_, \"needs-payment-info\"), A(p, O);\n return;\n }\n if (O.next_action === \"completed\") {\n A(E, null), A(_, \"success\");\n return;\n }\n }).catch((O) => {\n z(O);\n });\n }, V = (O) => {\n if (g(_) === \"needs-auth-info\") {\n O && (n(O.email), A(_, \"processing-auth-info\")), T();\n return;\n }\n if (g(_) === \"needs-payment-info\") {\n A(_, \"polling-purchase-status\"), d().pollCurrentPurchaseForCompletion().then((j) => {\n A(_, \"success\"), x = j.redemptionInfo;\n }).catch((j) => {\n z(j);\n });\n return;\n }\n if (g(_) === \"success\" || g(_) === \"error\") {\n c()(x);\n return;\n }\n A(_, \"success\");\n }, z = (O) => {\n if (g(_) === \"processing-auth-info\" && O.isRecoverable()) {\n A(E, O), A(_, \"needs-auth-info\");\n return;\n }\n A(E, O), A(_, \"error\");\n }, ue = () => {\n l()(g(E) ?? new K(ie.UnknownError, \"Unknown error without state set.\"));\n };\n Ee(), ic(e, {\n children: (O, j) => {\n Yl(O, {\n get condition() {\n return r();\n },\n children: (he, Se) => {\n tc(he, {\n get style() {\n return g(v);\n },\n children: (xe, Qe) => {\n var be = _c(), rt = U(be);\n C(rt, () => R.includes(g(_)), (Ie) => {\n var De = /* @__PURE__ */ ne(() => {\n var Pe;\n return (Pe = s()) == null ? void 0 : Pe.appearance;\n });\n lc(Ie, {\n get brandingAppearance() {\n return g(De);\n },\n children: (Pe, We) => {\n var Me = X(), Ue = U(Me);\n C(Ue, () => g(h) && P, (ke) => {\n var Le = /* @__PURE__ */ ne(() => {\n var se;\n return (se = s()) == null ? void 0 : se.appearance;\n });\n Nn(ke, {\n get productDetails() {\n return g(h);\n },\n get brandingAppearance() {\n return g(Le);\n },\n purchaseOption: P\n });\n }), b(Pe, Me);\n },\n $$slots: {\n default: !0,\n header: (Pe, We) => {\n Xr(Pe, {\n slot: \"header\",\n children: (Me, Ue) => {\n var ke = vc(), Le = U(ke);\n Si(Le, {\n get brandingInfo() {\n return s();\n }\n });\n var se = N(Le, 2);\n C(\n se,\n () => u().isSandbox(),\n (pe) => {\n Xl(pe);\n },\n (pe) => {\n Ql(pe);\n }\n ), b(Me, ke);\n },\n $$slots: { default: !0 }\n });\n }\n }\n });\n });\n var Re = N(rt, 2), Ht = /* @__PURE__ */ ne(() => {\n var Ie;\n return (Ie = s()) == null ? void 0 : Ie.appearance;\n });\n dc(Re, {\n get brandingAppearance() {\n return g(Ht);\n },\n children: (Ie, De) => {\n var Pe = gc(), We = U(Pe);\n C(We, () => g(_) === \"present-offer\" && g(h) && P, (fe) => {\n Nn(fe, {\n get productDetails() {\n return g(h);\n },\n purchaseOption: P\n });\n });\n var Me = N(We, 2);\n C(Me, () => g(_) === \"present-offer\" && !g(h), (fe) => {\n Ir(fe);\n });\n var Ue = N(Me, 2);\n C(Ue, () => g(_) === \"needs-auth-info\" || g(_) === \"processing-auth-info\", (fe) => {\n var bt = /* @__PURE__ */ ne(() => g(_) === \"processing-auth-info\");\n Fl(fe, {\n onContinue: V,\n onClose: q,\n get processing() {\n return g(bt);\n },\n get lastError() {\n return g(E);\n }\n });\n });\n var ke = N(Ue, 2);\n C(ke, () => g(p) && (g(_) === \"needs-payment-info\" || g(_) === \"polling-purchase-status\") && g(h) && P, (fe) => {\n var bt = /* @__PURE__ */ ne(() => g(_) === \"polling-purchase-status\");\n Rl(fe, {\n get paymentInfoCollectionMetadata() {\n return g(p);\n },\n onContinue: V,\n onClose: q,\n onError: z,\n get processing() {\n return g(bt);\n },\n get productDetails() {\n return g(h);\n },\n purchaseOptionToUse: P,\n get brandingInfo() {\n return s();\n }\n });\n });\n var Le = N(ke, 2);\n C(Le, () => g(_) === \"loading\", (fe) => {\n Ir(fe);\n });\n var se = N(Le, 2);\n C(se, () => g(_) === \"error\", (fe) => {\n var bt = /* @__PURE__ */ ne(() => g(E) ?? new K(ie.UnknownError, \"Unknown error without state set.\")), io = /* @__PURE__ */ ne(() => {\n var nn;\n return (nn = s()) == null ? void 0 : nn.seller_company_support_email;\n });\n Fs(fe, {\n get brandingInfo() {\n return s();\n },\n get lastError() {\n return g(bt);\n },\n get supportEmail() {\n return g(io);\n },\n get productDetails() {\n return g(h);\n },\n onContinue: ue\n });\n });\n var pe = N(se, 2);\n C(pe, () => g(_) === \"success\", (fe) => {\n $s(fe, {\n get productDetails() {\n return g(h);\n },\n get brandingInfo() {\n return s();\n },\n onContinue: V\n });\n }), b(Ie, Pe);\n },\n $$slots: { default: !0 }\n }), b(xe, be);\n },\n $$slots: { default: !0 }\n });\n },\n $$slots: { default: !0 }\n });\n },\n $$slots: { default: !0 }\n }), Y();\n}\nfunction pc(e) {\n return e.expires_date == null ? !0 : new Date(e.expires_date) > /* @__PURE__ */ new Date();\n}\nfunction bc(e, t, r, n) {\n const i = t.product_identifier;\n if (i in r)\n return mc(\n e,\n t,\n r[i]\n );\n if (i in n)\n return yc(\n e,\n t,\n n[i]\n );\n throw new Z(\n te.CustomerInfoError,\n \"Could not find entitlement product in subscriptions or non-subscriptions.\"\n );\n}\nfunction mc(e, t, r) {\n return {\n identifier: e,\n isActive: pc(t),\n willRenew: xc(t, r),\n store: (r == null ? void 0 : r.store) ?? \"unknown\",\n latestPurchaseDate: new Date(t.purchase_date),\n originalPurchaseDate: new Date(t.purchase_date),\n expirationDate: zt(t.expires_date),\n productIdentifier: t.product_identifier,\n unsubscribeDetectedAt: zt(\n r == null ? void 0 : r.unsubscribe_detected_at\n ),\n billingIssueDetectedAt: zt(\n r == null ? void 0 : r.billing_issues_detected_at\n ),\n isSandbox: (r == null ? void 0 : r.is_sandbox) ?? !1,\n periodType: (r == null ? void 0 : r.period_type) ?? \"normal\"\n };\n}\nfunction yc(e, t, r) {\n return {\n identifier: e,\n isActive: !0,\n willRenew: !1,\n store: r.store,\n latestPurchaseDate: new Date(t.purchase_date),\n originalPurchaseDate: new Date(\n r.original_purchase_date\n ),\n expirationDate: null,\n productIdentifier: t.product_identifier,\n unsubscribeDetectedAt: null,\n billingIssueDetectedAt: null,\n isSandbox: r.is_sandbox,\n periodType: \"normal\"\n };\n}\nfunction wc(e, t, r) {\n const n = {}, i = {};\n for (const o in e) {\n const a = bc(\n o,\n e[o],\n t,\n r\n );\n n[o] = a, a.isActive && (i[o] = a);\n }\n return {\n all: n,\n active: i\n };\n}\nfunction zt(e) {\n return e == null ? null : new Date(e);\n}\nfunction Ec(e) {\n const t = Pc(e), r = e.subscriber, n = Tc(\n r.non_subscriptions\n );\n return {\n entitlements: wc(\n r.entitlements,\n r.subscriptions,\n n\n ),\n allExpirationDatesByProduct: t,\n allPurchaseDatesByProduct: Ic(\n e,\n n\n ),\n activeSubscriptions: kc(t),\n managementURL: r.management_url,\n requestDate: new Date(e.request_date),\n firstSeenDate: new Date(r.first_seen),\n originalPurchaseDate: zt(\n r.original_purchase_date\n ),\n originalAppUserId: e.subscriber.original_app_user_id\n };\n}\nfunction xc(e, t) {\n if (t == null) return !1;\n const r = t.store == \"promotional\", n = e.expires_date == null, i = t.unsubscribe_detected_at != null, o = t.billing_issues_detected_at != null;\n return !(r || n || i || o);\n}\nfunction Ic(e, t) {\n const r = {};\n for (const n in e.subscriber.subscriptions) {\n const i = e.subscriber.subscriptions[n];\n r[n] = new Date(\n i.purchase_date\n );\n }\n for (const n in t) {\n const i = t[n].purchase_date;\n i == null ? r[n] = null : r[n] = new Date(i);\n }\n return r;\n}\nfunction Pc(e) {\n const t = {};\n for (const r in e.subscriber.subscriptions) {\n const n = e.subscriber.subscriptions[r];\n n.expires_date == null ? t[r] = null : t[r] = new Date(\n n.expires_date\n );\n }\n return t;\n}\nfunction kc(e) {\n const t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();\n for (const n in e) {\n const i = e[n];\n (i == null || i > r) && t.add(n);\n }\n return t;\n}\nfunction Tc(e) {\n const t = {};\n for (const r in e) {\n if (e[r].length === 0) continue;\n const n = e[r].length;\n t[r] = e[r][n - 1];\n }\n return t;\n}\nconst Ac = \"0.13.1\", Oc = \"https://api.revenuecat.com\";\nvar Jt;\n(function(e) {\n e[e.CONTINUE = 100] = \"CONTINUE\", e[e.SWITCHING_PROTOCOLS = 101] = \"SWITCHING_PROTOCOLS\", e[e.PROCESSING = 102] = \"PROCESSING\", e[e.EARLY_HINTS = 103] = \"EARLY_HINTS\", e[e.OK = 200] = \"OK\", e[e.CREATED = 201] = \"CREATED\", e[e.ACCEPTED = 202] = \"ACCEPTED\", e[e.NON_AUTHORITATIVE_INFORMATION = 203] = \"NON_AUTHORITATIVE_INFORMATION\", e[e.NO_CONTENT = 204] = \"NO_CONTENT\", e[e.RESET_CONTENT = 205] = \"RESET_CONTENT\", e[e.PARTIAL_CONTENT = 206] = \"PARTIAL_CONTENT\", e[e.MULTI_STATUS = 207] = \"MULTI_STATUS\", e[e.MULTIPLE_CHOICES = 300] = \"MULTIPLE_CHOICES\", e[e.MOVED_PERMANENTLY = 301] = \"MOVED_PERMANENTLY\", e[e.MOVED_TEMPORARILY = 302] = \"MOVED_TEMPORARILY\", e[e.SEE_OTHER = 303] = \"SEE_OTHER\", e[e.NOT_MODIFIED = 304] = \"NOT_MODIFIED\", e[e.USE_PROXY = 305] = \"USE_PROXY\", e[e.TEMPORARY_REDIRECT = 307] = \"TEMPORARY_REDIRECT\", e[e.PERMANENT_REDIRECT = 308] = \"PERMANENT_REDIRECT\", e[e.BAD_REQUEST = 400] = \"BAD_REQUEST\", e[e.UNAUTHORIZED = 401] = \"UNAUTHORIZED\", e[e.PAYMENT_REQUIRED = 402] = \"PAYMENT_REQUIRED\", e[e.FORBIDDEN = 403] = \"FORBIDDEN\", e[e.NOT_FOUND = 404] = \"NOT_FOUND\", e[e.METHOD_NOT_ALLOWED = 405] = \"METHOD_NOT_ALLOWED\", e[e.NOT_ACCEPTABLE = 406] = \"NOT_ACCEPTABLE\", e[e.PROXY_AUTHENTICATION_REQUIRED = 407] = \"PROXY_AUTHENTICATION_REQUIRED\", e[e.REQUEST_TIMEOUT = 408] = \"REQUEST_TIMEOUT\", e[e.CONFLICT = 409] = \"CONFLICT\", e[e.GONE = 410] = \"GONE\", e[e.LENGTH_REQUIRED = 411] = \"LENGTH_REQUIRED\", e[e.PRECONDITION_FAILED = 412] = \"PRECONDITION_FAILED\", e[e.REQUEST_TOO_LONG = 413] = \"REQUEST_TOO_LONG\", e[e.REQUEST_URI_TOO_LONG = 414] = \"REQUEST_URI_TOO_LONG\", e[e.UNSUPPORTED_MEDIA_TYPE = 415] = \"UNSUPPORTED_MEDIA_TYPE\", e[e.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = \"REQUESTED_RANGE_NOT_SATISFIABLE\", e[e.EXPECTATION_FAILED = 417] = \"EXPECTATION_FAILED\", e[e.IM_A_TEAPOT = 418] = \"IM_A_TEAPOT\", e[e.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = \"INSUFFICIENT_SPACE_ON_RESOURCE\", e[e.METHOD_FAILURE = 420] = \"METHOD_FAILURE\", e[e.MISDIRECTED_REQUEST = 421] = \"MISDIRECTED_REQUEST\", e[e.UNPROCESSABLE_ENTITY = 422] = \"UNPROCESSABLE_ENTITY\", e[e.LOCKED = 423] = \"LOCKED\", e[e.FAILED_DEPENDENCY = 424] = \"FAILED_DEPENDENCY\", e[e.UPGRADE_REQUIRED = 426] = \"UPGRADE_REQUIRED\", e[e.PRECONDITION_REQUIRED = 428] = \"PRECONDITION_REQUIRED\", e[e.TOO_MANY_REQUESTS = 429] = \"TOO_MANY_REQUESTS\", e[e.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = \"REQUEST_HEADER_FIELDS_TOO_LARGE\", e[e.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = \"UNAVAILABLE_FOR_LEGAL_REASONS\", e[e.INTERNAL_SERVER_ERROR = 500] = \"INTERNAL_SERVER_ERROR\", e[e.NOT_IMPLEMENTED = 501] = \"NOT_IMPLEMENTED\", e[e.BAD_GATEWAY = 502] = \"BAD_GATEWAY\", e[e.SERVICE_UNAVAILABLE = 503] = \"SERVICE_UNAVAILABLE\", e[e.GATEWAY_TIMEOUT = 504] = \"GATEWAY_TIMEOUT\", e[e.HTTP_VERSION_NOT_SUPPORTED = 505] = \"HTTP_VERSION_NOT_SUPPORTED\", e[e.INSUFFICIENT_STORAGE = 507] = \"INSUFFICIENT_STORAGE\", e[e.NETWORK_AUTHENTICATION_REQUIRED = 511] = \"NETWORK_AUTHENTICATION_REQUIRED\";\n})(Jt || (Jt = {}));\nfunction Pr(e) {\n return e ? e.startsWith(\"rcb_sb_\") : !1;\n}\nasync function it(e, t) {\n const { apiKey: r, body: n, headers: i, httpConfig: o } = t, s = `${(o == null ? void 0 : o.proxyURL) ?? Oc}${e.urlPath()}`;\n try {\n const c = await fetch(s, {\n method: e.method,\n headers: Dc(r, i, o == null ? void 0 : o.additionalHeaders),\n body: Sc(n)\n });\n return await Nc(c, e), await c.json();\n } catch (c) {\n throw c instanceof TypeError ? new Z(\n te.NetworkError,\n Tt.getPublicMessage(te.NetworkError),\n c.message\n ) : c;\n }\n}\nasync function Nc(e, t) {\n const r = e.status;\n if (r >= Jt.INTERNAL_SERVER_ERROR)\n vr(t, r, await e.text());\n else if (r >= Jt.BAD_REQUEST) {\n const n = await e.json(), i = n ? JSON.stringify(n) : null, o = n == null ? void 0 : n.code, a = n == null ? void 0 : n.message;\n if (o != null) {\n const s = Tt.convertCodeToBackendErrorCode(o);\n if (s == null)\n vr(\n t,\n r,\n i,\n o\n );\n else\n throw Z.getForBackendError(\n s,\n a\n );\n } else\n vr(t, r, i);\n }\n}\nfunction vr(e, t, r, n) {\n throw new Z(\n te.UnknownBackendError,\n \"Unknown backend error.\",\n `Request: ${e.name}. Status code: ${t}. Body: ${r}.`,\n { backendErrorCode: n }\n );\n}\nfunction Sc(e) {\n return e == null ? null : JSON.stringify(e);\n}\nconst $i = \"Authorization\", Yi = \"Content-Type\", zi = \"Accept\", Ki = \"X-Platform\", Qi = \"X-Version\", Wi = \"X-Is-Sandbox\", Rc = /* @__PURE__ */ new Set([\n $i,\n Yi,\n zi,\n Ki,\n Qi,\n Wi\n]);\nfunction Dc(e, t, r) {\n let n = {\n [$i]: `Bearer ${e}`,\n [Yi]: \"application/json\",\n [zi]: \"application/json\",\n [Ki]: \"web\",\n [Qi]: Ac,\n [Wi]: `${Pr(e)}`\n };\n return t && (n = { ...n, ...t }), r && (n = { ...r, ...n }), n;\n}\nconst Zi = \"/v1/subscribers\", lr = \"/rcbilling/v1\";\nclass Mc {\n constructor(t) {\n D(this, \"appUserId\");\n D(this, \"method\", \"GET\");\n D(this, \"name\", \"getOfferings\");\n this.appUserId = t;\n }\n urlPath() {\n const t = encodeURIComponent(this.appUserId);\n return `${Zi}/${t}/offerings`;\n }\n}\nclass Uc {\n constructor() {\n D(this, \"method\", \"POST\");\n D(this, \"name\", \"purchase\");\n }\n urlPath() {\n return `${lr}/purchase`;\n }\n}\nclass Lc {\n constructor(t, r, n) {\n D(this, \"method\", \"GET\");\n D(this, \"name\", \"getProducts\");\n D(this, \"appUserId\");\n D(this, \"productIds\");\n D(this, \"currency\");\n this.appUserId = t, this.productIds = r, this.currency = n;\n }\n urlPath() {\n const t = encodeURIComponent(this.appUserId), r = this.productIds.map(encodeURIComponent).join(\"&id=\"), n = this.currency ? `¤cy=${this.currency}` : \"\";\n return `${lr}/subscribers/${t}/products?id=${r}${n}`;\n }\n}\nclass Cc {\n constructor(t) {\n D(this, \"method\", \"GET\");\n D(this, \"name\", \"getCustomerInfo\");\n D(this, \"appUserId\");\n this.appUserId = t;\n }\n urlPath() {\n const t = encodeURIComponent(this.appUserId);\n return `${Zi}/${t}`;\n }\n}\nclass Bc {\n constructor() {\n D(this, \"method\", \"GET\");\n D(this, \"name\", \"getBrandingInfo\");\n }\n urlPath() {\n return `${lr}/branding`;\n }\n}\nclass qc {\n constructor(t) {\n D(this, \"method\", \"GET\");\n D(this, \"name\", \"getCheckoutStatus\");\n D(this, \"operationSessionId\");\n this.operationSessionId = t;\n }\n urlPath() {\n return `${lr}/checkout/${this.operationSessionId}`;\n }\n}\nconst kr = {};\nclass Fc {\n constructor(t, r = kr) {\n D(this, \"API_KEY\");\n D(this, \"httpConfig\");\n this.API_KEY = t, this.httpConfig = r;\n }\n async getOfferings(t) {\n return await it(\n new Mc(t),\n {\n apiKey: this.API_KEY,\n httpConfig: this.httpConfig\n }\n );\n }\n async getCustomerInfo(t) {\n return await it(\n new Cc(t),\n {\n apiKey: this.API_KEY,\n httpConfig: this.httpConfig\n }\n );\n }\n async getProducts(t, r, n) {\n return await it(\n new Lc(t, r, n),\n {\n apiKey: this.API_KEY,\n httpConfig: this.httpConfig\n }\n );\n }\n async getBrandingInfo() {\n return await it(\n new Bc(),\n {\n apiKey: this.API_KEY,\n httpConfig: this.httpConfig\n }\n );\n }\n async postPurchase(t, r, n, i, o) {\n const a = {\n app_user_id: t,\n product_id: r,\n email: n,\n price_id: o.priceId,\n presented_offering_identifier: i.offeringIdentifier\n };\n return o.id !== \"base_option\" && (a.offer_id = o.id), i.targetingContext && (a.applied_targeting_rule = {\n rule_id: i.targetingContext.ruleId,\n revision: i.targetingContext.revision\n }), i.placementIdentifier && (a.presented_placement_identifier = i.placementIdentifier), await it(\n new Uc(),\n {\n apiKey: this.API_KEY,\n body: a,\n httpConfig: this.httpConfig\n }\n );\n }\n async getCheckoutStatus(t) {\n return await it(\n new qc(t),\n {\n apiKey: this.API_KEY,\n httpConfig: this.httpConfig\n }\n );\n }\n}\nfunction jc(e) {\n if (!/^rcb_[a-zA-Z0-9_.-]+$/.test(e))\n throw new Z(\n te.InvalidCredentialsError,\n \"Invalid API key. Use your RevenueCat Billing API key.\"\n );\n}\nfunction Hc(e) {\n if ((/* @__PURE__ */ new Set([\n \"no_user\",\n \"null\",\n \"none\",\n \"nil\",\n \"(null)\",\n \"NaN\",\n \"\\\\x00\",\n \"\",\n \"unidentified\",\n \"undefined\",\n \"unknown\"\n ])).has(e) || e.includes(\"/\"))\n throw new Z(\n te.InvalidAppUserIdError,\n 'Provided user id: \"' + e + '\" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'\n );\n}\nfunction Vc(e) {\n if (e != null && e.endsWith(\"/\"))\n throw new Z(\n te.ConfigurationError,\n \"Invalid proxy URL. The proxy URL should not end with a trailing slash.\"\n );\n}\nfunction Gc(e) {\n if (e) {\n for (const t in e)\n if (Rc.has(t))\n throw new Z(\n te.ConfigurationError,\n \"Invalid additional headers. Some headers are reserved for internal use.\"\n );\n }\n}\nvar Xi = /* @__PURE__ */ ((e) => (e.Current = \"current\", e))(Xi || {});\nfunction $c(e, t) {\n async function r(...n) {\n return await this.preload(), await e.call(this, ...n);\n }\n return r;\n}\nconst Ji = (e, t) => ({\n ...e,\n rcBillingProduct: {\n ...e.rcBillingProduct,\n presentedOfferingContext: {\n ...e.rcBillingProduct.presentedOfferingContext,\n placementIdentifier: t\n }\n }\n}), Ze = (e, t) => e == null ? null : Ji(e, t), Yc = (e, t, r) => {\n const n = e.offering_ids_by_placement ?? null;\n if (n == null)\n return null;\n const i = e.fallback_offering_id ?? null;\n let o;\n if (r in n) {\n const s = n[r] ?? null;\n if (s == null)\n return null;\n o = t[s], o == null && (o = t[i]);\n } else\n o = t[i];\n if (o == null)\n return null;\n const a = Object.fromEntries(\n Object.entries(o.packagesById).map(([s, c]) => [\n s,\n Ji(c, r)\n ])\n );\n return {\n ...o,\n packagesById: a,\n availablePackages: Object.values(a),\n weekly: Ze(o.weekly, r),\n monthly: Ze(\n o.monthly,\n r\n ),\n twoMonth: Ze(\n o.twoMonth,\n r\n ),\n threeMonth: Ze(\n o.threeMonth,\n r\n ),\n sixMonth: Ze(\n o.sixMonth,\n r\n ),\n annual: Ze(o.annual, r),\n lifetime: Ze(\n o.lifetime,\n r\n )\n };\n};\nfunction zc(e, t) {\n const r = {};\n t.product_details.forEach((o) => {\n r[o.identifier] = o;\n });\n const n = {};\n e.offerings.forEach((o) => {\n const a = o.identifier === e.current_offering_id, s = Ya(\n a,\n o,\n r,\n e.targeting\n );\n s != null && (n[o.identifier] = s);\n });\n const i = e.current_offering_id ? n[e.current_offering_id] ?? null : null;\n return Object.keys(n).length == 0 && H.debugLog(\n \"Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured.\"\n ), {\n all: n,\n current: i\n };\n}\nvar Tr;\n(function(e) {\n e.body_s = \"p\", e.body_m = \"p\", e.body_l = \"p\", e.body_xl = \"p\", e.heading_xs = \"h6\", e.heading_s = \"h5\", e.heading_m = \"h4\", e.heading_l = \"h3\", e.heading_xl = \"h2\", e.heading_xxl = \"h1\";\n})(Tr || (Tr = {}));\nvar Ar;\n(function(e) {\n e[e.extra_light = 100] = \"extra_light\", e[e.thin = 200] = \"thin\", e[e.light = 300] = \"light\", e[e.regular = 400] = \"regular\", e[e.medium = 500] = \"medium\", e[e.semi_bold = 600] = \"semi_bold\", e[e.bold = 700] = \"bold\", e[e.extra_bold = 800] = \"extra_bold\", e[e.black = 900] = \"black\";\n})(Ar || (Ar = {}));\nvar Or;\n(function(e) {\n e.body_s = \"13px\", e.body_m = \"14px\", e.body_l = \"15px\", e.body_xl = \"16px\", e.heading_xs = \"14px\", e.heading_s = \"16px\", e.heading_m = \"18px\", e.heading_l = \"20px\", e.heading_xl = \"26px\", e.heading_xxl = \"32px\";\n})(Or || (Or = {}));\nvar Nr;\n(function(e) {\n e.vertical = \"column\", e.horizontal = \"row\";\n})(Nr || (Nr = {}));\nvar Sr;\n(function(e) {\n e.top = \"flex-start\", e.leading = \"flex-start\", e.center = \"center\", e.bottom = \"flex-end\", e.trailing = \"flex-end\";\n})(Sr || (Sr = {}));\nvar Rr;\n(function(e) {\n e.space_between = \"space-between\", e.space_around = \"space-around\", e.space_evenly = \"space-evenly\", e.start = \"flex-start\", e.center = \"center\", e.end = \"flex-end\";\n})(Rr || (Rr = {}));\nconst ot = [];\nfunction Kc(e, t) {\n return {\n subscribe: Qc(e, t).subscribe\n };\n}\nfunction Qc(e, t = Fe) {\n let r = null;\n const n = /* @__PURE__ */ new Set();\n function i(s) {\n if (Kn(e, s) && (e = s, r)) {\n const c = !ot.length;\n for (const l of n)\n l[1](), ot.push(l, e);\n if (c) {\n for (let l = 0; l < ot.length; l += 2)\n ot[l][0](ot[l + 1]);\n ot.length = 0;\n }\n }\n }\n function o(s) {\n i(s(\n /** @type {T} */\n e\n ));\n }\n function a(s, c = Fe) {\n const l = [s, c];\n return n.add(l), n.size === 1 && (r = t(i, o) || Fe), s(\n /** @type {T} */\n e\n ), () => {\n n.delete(l), n.size === 0 && r && (r(), r = null);\n };\n }\n return { set: i, update: o, subscribe: a };\n}\nconst Wc = Kc(!1, (e) => {\n if (typeof window < \"u\") {\n const t = window.matchMedia(\"(prefers-color-scheme: dark)\");\n e(t.matches);\n const r = (n) => e(n.matches);\n return t.addEventListener(\"change\", r), () => t.removeEventListener(\"change\", r);\n }\n return () => {\n };\n}), Zc = (e, t) => {\n var r;\n (r = t.onclick) == null || r.call(t);\n};\nvar Xc = /* @__PURE__ */ I(\"\");\nconst Jc = {\n hash: \"svelte-g3k3fu\",\n code: \"button.svelte-g3k3fu {border:none;cursor:pointer;background:transparent;padding:0;width:100%;display:flex;align-items:center;justify-content:center;}\"\n};\nfunction eo(e, t) {\n $(t, !0), L(e, Jc);\n var r = Xc();\n r.__click = [Zc, t];\n var n = k(r);\n yi(n, () => t.children ?? Fe), B(() => {\n Yr(r, `${t.class ?? \"\"} svelte-g3k3fu`), r.disabled = !t.onclick, G(r, \"style\", t.style);\n }), b(e, r), Y();\n}\n$r([\"click\"]);\nfunction Cn(e, t) {\n return !e || !t ? \"\" : {\n [`--${t}-block-start`]: `${e.top ?? 0}px`,\n [`--${t}-inline-end`]: `${e.trailing ?? 0}px`,\n [`--${t}-block-end`]: `${e.bottom ?? 0}px`,\n [`--${t}-inline-start`]: `${e.leading ?? 0}px`\n };\n}\nfunction eu(e) {\n return Tr[e];\n}\nfunction Kt({ colorMap: e, colorMode: t = \"light\", fallback: r = \"FFFFFF\" }) {\n const n = e == null ? void 0 : e[t];\n if (!n)\n return r;\n let i = \"\";\n switch (n.type) {\n case \"hex\":\n case \"alias\":\n return n.value ?? r;\n case \"linear\":\n return i = (n.points || []).map((o) => `${o.color} ${o.percent}%`).join(\", \"), `linear-gradient(${n.degrees}deg, ${i})`;\n case \"radial\":\n return i = (n.points || []).map((o) => `${o.color} ${o.percent}%`).join(\", \"), `radial-gradient(${i})`;\n }\n return r;\n}\nfunction tu(e, t = \"light\") {\n const r = Kt({ colorMap: e.color, colorMode: t });\n return `${e.width}px solid ${r}`;\n}\nfunction to(e) {\n return `${e.top_leading}px ${e.top_trailing}px ${e.bottom_trailing}px ${e.bottom_leading}px`;\n}\nfunction ro({ backgroundColor: e, border: t, margin: r, padding: n, textColor: i, colorMode: o = \"light\", shape: a, shadow: s }) {\n const c = {\n \"--margin-block-start\": \"0px\",\n \"--margin-inline-end\": \"0px\",\n \"--margin-block-end\": \"0px\",\n \"--margin-inline-start\": \"0px\",\n \"--padding-block-start\": \"0px\",\n \"--padding-inline-end\": \"0px\",\n \"--padding-block-end\": \"0px\",\n \"--padding-inline-start\": \"0px\",\n \"--background\": \"transparent\",\n \"--text-color\": \"#000000\",\n \"--border\": \"none\",\n \"--border-radius\": \"0px\",\n \"--shadow\": \"none\"\n };\n return n && Object.assign(c, Cn(n, \"padding\")), r && Object.assign(c, Cn(r, \"margin\")), e && (c[\"--background\"] = Kt({\n colorMap: e,\n colorMode: o,\n fallback: \"transparent\"\n })), i && (c[\"--text-color\"] = Kt({\n colorMap: i,\n colorMode: o,\n fallback: \"#000000\"\n })), t && (c[\"--border\"] = tu(t, o)), (a == null ? void 0 : a.type) === \"rectangle\" && a.corners && (c[\"--border-radius\"] = to(a.corners)), (a == null ? void 0 : a.type) === \"pill\" && (c[\"--border-radius\"] = \"9999px\"), s && (c[\"--shadow\"] = `${s.x}px ${s.y}px ${s.radius}px \n ${Kt({ colorMap: s.color, colorMode: o, fallback: \"#000000\" })}`), c;\n}\nfunction tn(e) {\n function t(o) {\n return o.type === \"fixed\" ? `${o.value}px` : o.type === \"fit\" ? \"fit-content\" : o.type === \"fill\" ? navigator.userAgent.match(/firefox|fxios/i) ? \"-moz-available\" : \"-webkit-fill-available\" : \"unset\";\n }\n const r = t(e.width), n = t(e.height), i = e.width.type === \"fill\" || e.height.type === \"fill\";\n return {\n \"--width\": r,\n \"--height\": n,\n \"--flex\": i ? \"unset\" : \"0 1 auto\"\n };\n}\nfunction ru(e, t) {\n return t ? {\n \"--background\": `linear-gradient(${t.map((r) => {\n var n;\n return (n = r[e]) == null ? void 0 : n.value;\n }).join(\", \")})`\n } : { \"--background\": \"none\" };\n}\nconst nu = (e) => {\n let t = {\n \"--corner-radius\": \"0px\",\n \"--clip-path\": \"none\"\n };\n return (e == null ? void 0 : e.type) === \"circle\" && (t[\"--corner-radius\"] = \"50%\"), (e == null ? void 0 : e.type) === \"rectangle\" && e.corners && (t[\"--corner-radius\"] = to(e.corners)), (e == null ? void 0 : e.type) === \"convex\" && (t[\"--corner-radius\"] = \"0 0 50% 50%;\"), (e == null ? void 0 : e.type) === \"concave\" && (t[\"--clip-path\"] = \"polygon(0 0, 100% 0, 100% 100%, 50% 110%, 0 100%);\"), t;\n};\nfunction iu(e) {\n const t = {\n \"--direction\": \"initial\",\n \"--alignment\": \"initial\",\n \"--distribution\": \"initial\"\n };\n return e.type === \"zlayer\" || (t[\"--direction\"] = Nr[e.type], t[\"--alignment\"] = Sr[e.alignment], e.distribution && (t[\"--distribution\"] = Rr[e.distribution])), t;\n}\nfunction ou(e) {\n const { font_size: t, horizontal_alignment: r, font_weight: n, font_name: i } = e, o = {\n \"--text-align\": \"initial\",\n \"--font-weight\": 400,\n \"--font-size\": \"initial\",\n \"--font-family\": \"sans-serif\"\n };\n return o[\"--text-align\"] = r, o[\"--font-weight\"] = Ar[n], o[\"--font-size\"] = Or[t], o[\"--font-family\"] = i || \"sans-serif\", o;\n}\nfunction er(e) {\n return Object.entries(e).map(([t, r]) => `${t}: ${r}`).join(\"; \");\n}\nfunction no(e, t, r, n) {\n const i = (n[r] || {})[e];\n return (n[t] || {})[e] ? n[t][e] : i;\n}\nfunction au(e) {\n const t = (n) => {\n if (n.type === \"package\" && n.is_selected_by_default)\n return n;\n if (n.components)\n for (let i of n.components) {\n const o = t(i);\n if (o)\n return o;\n }\n if (n.stack !== void 0) {\n const i = t(n.stack);\n if (i)\n return i;\n }\n }, r = t(e.components_config.base.stack);\n if (r !== void 0)\n return r.package_id;\n}\nconst su = (e) => {\n const { background_color: t, margin: r, padding: n, spacing: i, size: o, border: a, shape: s, colorMode: c, shadow: l, dimension: f } = e, u = ro({\n backgroundColor: t,\n margin: r,\n padding: n,\n border: a,\n colorMode: c,\n shape: s,\n shadow: l\n }), d = iu(f);\n return {\n ...tn(o),\n ...d,\n ...u,\n \"--spacing\": `${i || 0}px`\n };\n};\nvar lu = /* @__PURE__ */ I('
    ');\nconst cu = {\n hash: \"svelte-hkx1fg\",\n code: \".stack.svelte-hkx1fg {box-sizing:border-box;display:flex;flex-direction:var(--direction, unset);width:var(--width, unset);height:var(--height, unset);gap:var(--spacing, 0);background:var(--background, none);border:var(--border, none);border-radius:var(--border-radius, 0);box-shadow:var(--shadow, none);justify-content:var(--distribution, flex-start);align-items:var(--alignment, flex-start);padding-block-start:var(--padding-block-start, 0);padding-inline-end:var(--padding-inline-end, 0);padding-block-end:var(--padding-block-end, 0);padding-inline-start:var(--padding-inline-start, 0);margin-block-start:var(--margin-block-start, 0);margin-inline-end:var(--margin-inline-end, 0);margin-block-end:var(--margin-block-end, 0);margin-inline-start:var(--margin-inline-start, 0);flex:var(--flex, 0 1 auto);}\"\n};\nfunction jt(e, t) {\n $(t, !0), L(e, cu);\n const r = /* @__PURE__ */ zr(t, [\n \"$$slots\",\n \"$$events\",\n \"$$legacy\",\n \"id\",\n \"components\",\n \"labels\",\n \"onAction\",\n \"purchaseState\",\n \"variableDictionary\"\n ]), n = /* @__PURE__ */ Q(() => er(su({\n id: t.id,\n components: t.components,\n labels: t.labels,\n onAction: t.onAction,\n purchaseState: t.purchaseState,\n ...r\n })));\n var i = lu();\n mi(i, 21, () => t.components, bi, (o, a) => {\n rn(o, {\n get nodeData() {\n return g(a);\n },\n get labels() {\n return t.labels;\n },\n get onAction() {\n return t.onAction;\n },\n get purchaseState() {\n return t.purchaseState;\n },\n get variableDictionary() {\n return t.variableDictionary;\n }\n });\n }), B(() => {\n G(i, \"id\", t.id), G(i, \"style\", g(n));\n }), b(e, i), Y();\n}\nfunction uu(e, t) {\n $(t, !0), eo(e, {\n onclick: () => {\n t.onAction && t.onAction(t.action);\n },\n children: (n, i) => {\n jt(n, Ft(() => t.stack, {\n get labels() {\n return t.labels;\n },\n get purchaseState() {\n return t.purchaseState;\n },\n get variableDictionary() {\n return t.variableDictionary;\n }\n }));\n },\n $$slots: { default: !0 }\n }), Y();\n}\nconst fu = (e) => {\n const { font_size: t = \"body_m\", color: r = {\n dark: { type: \"hex\", value: \"#000000\" },\n light: { type: \"hex\", value: \"#000000\" }\n }, background_color: n = {\n dark: { type: \"hex\", value: \"#FFFFFF\" },\n light: { type: \"hex\", value: \"#FFFFFF\" }\n }, padding: i, margin: o, colorMode: a, size: s } = e, c = eu(t), l = ou(e), f = ro({\n backgroundColor: n,\n textColor: r,\n margin: o,\n padding: i,\n colorMode: a\n }), u = tn(s);\n return {\n textStyles: {\n ...l,\n ...f,\n ...u\n },\n tagToRender: c\n };\n}, du = {\n hash: \"svelte-9lrpkv\",\n code: \".text-block.svelte-9lrpkv {display:block;padding-block-start:var(--padding-block-start, unset);padding-inline-end:var(--padding-inline-end, unset);padding-block-end:var(--padding-block-end, unset);padding-inline-start:var(--padding-inline-start, unset);margin-block-start:var(--margin-block-start, unset);margin-inline-end:var(--margin-inline-end, unset);margin-block-end:var(--margin-block-end, unset);margin-inline-start:var(--margin-inline-start, unset);color:var(--text-color, #ffffff);background:var(--background, none);font-size:var(--font-size, 1rem);font-weight:var(--font-weight, normal);text-align:var(--text-align, center);height:var(--height, unset);width:var(--width, unset);font-family:var(--font-family, sans-serif);}\"\n};\nfunction vu(e, t) {\n $(t, !0), L(e, du);\n const r = y(t, \"styleVariables\", 3, \"\"), n = y(t, \"component\", 3, \"p\");\n var i = X(), o = U(i);\n wi(o, n, !1, (a, s) => {\n let c;\n B(() => c = Ei(\n a,\n c,\n {\n id: t.id,\n style: r(),\n class: \"text-block\"\n },\n \"svelte-9lrpkv\",\n a.namespaceURI === Ur,\n a.nodeName.includes(\"-\")\n ));\n var l = X(), f = U(l);\n yi(f, () => t.children ?? Fe), b(s, l);\n }), b(e, i), Y();\n}\nconst gu = [\n \"product_name\",\n \"price\",\n \"price_per_period\",\n \"price_per_period_full\",\n \"total_price_and_per_month\",\n \"total_price_and_per_month_full\",\n \"sub_price_per_month\",\n \"sub_price_per_week\",\n \"sub_duration\",\n \"sub_duration_in_months\",\n \"sub_period\",\n \"sub_period_length\",\n \"sub_period_abbreviated\",\n \"sub_offer_duration\",\n \"sub_offer_duration_2\",\n \"sub_offer_price\",\n \"sub_offer_price_2\",\n \"sub_relative_discount\"\n], _u = ({ value: e = \"\", variableDictionary: t }) => t ? gu.reduce((r, n) => {\n var o;\n return r.replaceAll(`{{ ${n} }}`, ((o = t[n]) == null ? void 0 : o.toString()) || \"N/A\");\n}, e) : e;\nfunction hu(e, t) {\n $(t, !0);\n const r = /* @__PURE__ */ zr(t, [\n \"$$slots\",\n \"$$events\",\n \"$$legacy\",\n \"id\",\n \"labels\",\n \"text_lid\",\n \"purchaseState\",\n \"variableDictionary\"\n ]), n = /* @__PURE__ */ Q(() => fu({\n id: t.id,\n labels: t.labels,\n text_lid: t.text_lid,\n purchaseState: t.purchaseState,\n ...r\n })), i = /* @__PURE__ */ Q(() => g(n).tagToRender), o = /* @__PURE__ */ Q(() => g(n).textStyles), a = /* @__PURE__ */ Q(() => er(g(o))), s = /* @__PURE__ */ Q(() => no(t.text_lid, t.purchaseState.locale, t.purchaseState.defaultLocale, t.labels)), c = /* @__PURE__ */ Q(() => _u({\n value: g(s),\n variableDictionary: t.variableDictionary\n }));\n vu(e, {\n get styleVariables() {\n return g(a);\n },\n get component() {\n return g(i);\n },\n get id() {\n return t.id;\n },\n children: (l, f) => {\n var u = Ke();\n B(() => re(u, g(c))), b(l, u);\n },\n $$slots: { default: !0 }\n }), Y();\n}\nfunction rn(e, t) {\n $(t, !0);\n const r = Sa(), n = () => Na(Wc, \"$prefersDarkMode\", r), i = {\n text: hu,\n stack: jt,\n image: xu,\n button: uu,\n purchase_button: Pu,\n package: Ou,\n footer: Su\n }, o = /* @__PURE__ */ Q(() => i[t.nodeData.type]);\n var a = X(), s = U(a);\n wa(s, () => g(o), (c, l) => {\n l(c, Ft(() => t.nodeData || {}, {\n get labels() {\n return t.labels;\n },\n get prefersDarkMode() {\n return n();\n },\n get onAction() {\n return t.onAction;\n },\n get purchaseState() {\n return t.purchaseState;\n },\n get variableDictionary() {\n return t.variableDictionary;\n },\n children: (f, u) => {\n var d = X(), v = U(d);\n mi(v, 17, () => t.nodeData.components, bi, (h, p) => {\n rn(h, {\n get nodeData() {\n return g(p);\n },\n get labels() {\n return t.labels;\n },\n get onAction() {\n return t.onAction;\n },\n get purchaseState() {\n return t.purchaseState;\n },\n get variableDictionary() {\n return t.variableDictionary;\n }\n });\n }), b(f, d);\n },\n $$slots: { default: !0 }\n }));\n }), b(e, a), Y();\n}\nvar pu = /* @__PURE__ */ I('
    ');\nconst bu = {\n hash: \"svelte-1f98y3q\",\n code: `\n /* 1. Use a more-intuitive box-sizing model */.svelte-1f98y3q,\n .svelte-1f98y3q::before,\n .svelte-1f98y3q::after {box-sizing:border-box;}\n\n /* 2. Remove default margin */.svelte-1f98y3q {margin:0;}\n\n /* 5. Improve media defaults */\n\n /* 6. Inherit fonts for form controls */\n\n /* 7. Avoid text overflows */\n\n /* 8. Improve line wrapping */\n\n /*\n 9. Create a root stacking context\n */`\n};\nfunction mu(e, t) {\n $(t, !0), L(e, bu);\n const r = y(t, \"variablesPerPackage\", 19, () => ({}));\n let n = Ce({\n selectedPackageId: au(t.paywallData),\n locale: t.selectedLocale || t.paywallData.default_locale,\n defaultLocale: t.paywallData.default_locale,\n variablesPerPackage: r()\n }), i = jo(Ce(r()[n.selectedPackageId || \"\"]));\n const o = (v, h) => {\n var p;\n (p = t.onRestorePurchasesClicked) == null || p.call(t);\n }, a = (v, h) => {\n var p;\n (p = t.onBackClicked) == null || p.call(t);\n }, s = (v, h) => {\n var E, w;\n if (v.destination === \"customer_center\" && ((E = t.onVisitCustomerCenterClicked) == null || E.call(t)), !v.url)\n return;\n const p = no(v.url.url_lid, n.locale, n.defaultLocale, t.paywallData.components_localizations);\n p && ((w = t.onNavigateToUrlClicked) == null || w.call(t, p));\n }, c = (v, h) => {\n n.selectedPackageId = h == null ? void 0 : h.packageId, h != null && h.packageId && A(i, Ce(r()[h.packageId]));\n }, l = (v, h) => {\n var p;\n n.selectedPackageId !== void 0 && ((p = t.onPurchaseClicked) == null || p.call(t, n.selectedPackageId));\n }, f = (v, h) => {\n switch (v.type) {\n case \"select_package\":\n c(v, h);\n break;\n case \"navigate_to\":\n s(v);\n break;\n case \"navigate_back\":\n a();\n break;\n case \"restore_purchases\":\n o();\n break;\n case \"purchase\":\n l();\n break;\n }\n };\n var u = pu(), d = k(u);\n rn(d, {\n onAction: f,\n get nodeData() {\n return t.paywallData.components_config.base.stack;\n },\n get labels() {\n return t.paywallData.components_localizations;\n },\n get purchaseState() {\n return n;\n },\n get variableDictionary() {\n return g(i);\n }\n }), b(e, u), Y();\n}\nconst yu = (e) => {\n const {\n gradient_colors: t,\n colorMode: r,\n mask_shape: n,\n size: i,\n max_height: o,\n // TODO: implement this. still waiting on spec\n override_source_lid: a\n // TODO: Implement this once structure is defined\n } = e, s = ru(r, t), c = tn(i), l = nu(n);\n return { imageStyles: {\n ...c,\n ...l\n }, gradientStyles: s };\n};\nvar wu = /* @__PURE__ */ I('
    \"\"
    ');\nconst Eu = {\n hash: \"svelte-1bktrru\",\n code: \".image-container.svelte-1bktrru {position:relative;height:var(--height, unset);width:var(--width, unset);overflow:hidden;border-radius:var(--corner-radius, unset);clip-path:var(--clip-path, unset);display:flex;flex:var(--flex, 1 0 auto);}.image.svelte-1bktrru {width:100%;height:100%;object-fit:cover;display:block;}.image-overlay.svelte-1bktrru {position:absolute;inset:0;background:var(--background, none);}\"\n};\nfunction xu(e, t) {\n $(t, !0), L(e, Eu);\n const r = /* @__PURE__ */ zr(t, [\n \"$$slots\",\n \"$$events\",\n \"$$legacy\",\n \"id\",\n \"colorMode\",\n \"source\"\n ]), n = /* @__PURE__ */ Q(() => yu({\n id: t.id,\n colorMode: t.colorMode,\n source: t.source,\n ...r\n })), i = /* @__PURE__ */ Q(() => g(n).gradientStyles), o = /* @__PURE__ */ Q(() => g(n).imageStyles), a = /* @__PURE__ */ Q(() => er(g(i))), s = /* @__PURE__ */ Q(() => er(g(o)));\n var c = wu(), l = k(c), f = N(l, 2);\n B(() => {\n var u;\n G(c, \"id\", `image-container-${t.id}`), G(c, \"style\", g(s)), G(l, \"src\", (u = t.source[t.colorMode || \"light\"]) == null ? void 0 : u.original), G(l, \"id\", t.id), G(f, \"style\", g(a));\n }), b(e, c), Y();\n}\nconst Iu = { hash: \"svelte-raczc6\", code: \"\" };\nfunction Pu(e, t) {\n $(t, !0), L(e, Iu), eo(e, {\n onclick: () => {\n t.onAction && t.onAction({ type: \"purchase\" });\n },\n class: \"purchase-button\",\n children: (n, i) => {\n jt(n, Ft(() => t.stack, {\n get labels() {\n return t.labels;\n },\n get purchaseState() {\n return t.purchaseState;\n },\n get variableDictionary() {\n return t.variableDictionary;\n }\n }));\n },\n $$slots: { default: !0 }\n }), Y();\n}\nconst ku = (e, t) => {\n e.preventDefault(), e.stopPropagation(), t.onAction && t.onAction({ type: \"select_package\" }, { packageId: t.package_id });\n};\nvar Tu = /* @__PURE__ */ I('');\nconst Au = {\n hash: \"svelte-128m8vw\",\n code: \".package.svelte-128m8vw {width:100%;display:flex;margin:0;padding:0;background:unset;border:unset;text-align:unset;}\"\n};\nfunction Ou(e, t) {\n $(t, !0), L(e, Au);\n const r = /* @__PURE__ */ Q(() => {\n var a;\n return ((a = t.purchaseState.variablesPerPackage) == null ? void 0 : a[t.package_id]) || t.variableDictionary;\n }), n = /* @__PURE__ */ Q(() => {\n var a;\n return ((a = t.purchaseState) == null ? void 0 : a.selectedPackageId) === t.package_id;\n });\n var i = Tu();\n i.__click = [ku, t];\n var o = k(i);\n jt(o, Ft(() => t.stack, {\n get labels() {\n return t.labels;\n },\n get onAction() {\n return t.onAction;\n },\n get purchaseState() {\n return t.purchaseState;\n },\n get variableDictionary() {\n return g(r);\n }\n })), B(() => {\n G(i, \"id\", t.id), xa(i, \"selected\", g(n));\n }), b(e, i), Y();\n}\n$r([\"click\"]);\nvar Nu = /* @__PURE__ */ I('
    ');\nfunction Su(e, t) {\n var r = Nu(), n = k(r);\n jt(n, Ft(() => t.stack, {\n get labels() {\n return t.labels;\n },\n get purchaseState() {\n return t.purchaseState;\n },\n get variableDictionary() {\n return t.variableDictionary;\n }\n })), B(() => G(r, \"id\", t.id)), b(e, r);\n}\nconst Ru = 1000001;\nfunction Du(e) {\n switch (e.rcBillingProduct.productType) {\n case me.Subscription:\n return e.rcBillingProduct.defaultSubscriptionOption;\n case (me.Consumable || me.NonConsumable):\n return e.rcBillingProduct.defaultNonSubscriptionOption;\n }\n}\nvar cr = /* @__PURE__ */ ((e) => (e.month = \"mo\", e.year = \"yr\", e.week = \"wk\", e.day = \"d\", e))(cr || {});\nfunction Bn(e, t, r = !1) {\n var n;\n return `${e}/${(n = t.base.period) == null ? void 0 : n.number}${r ? t.base.period.unit : cr[t.base.period.unit]}`;\n}\nfunction Mu(e) {\n if (e.unit === \"week\" || e.unit === \"day\")\n return `${e.number} ${e.unit}`;\n if (e.unit === \"month\")\n return `${e.number > 1 ? e.number + \"s\" : e.number} ${e.unit}`;\n if (e.unit === \"year\")\n return `${e.number * 12} ${e.unit}`;\n}\nfunction Uu({\n price: e,\n period: t,\n selectedLocale: r\n}) {\n const n = oe(\n e.amountMicros,\n e.currency,\n r\n );\n return t ? t.unit === \"year\" ? oe(\n e.amountMicros / 12 / 4,\n e.currency,\n r\n ) : t.unit === \"month\" || t.unit === \"week\" && t.number > 1 ? oe(\n e.amountMicros / t.number,\n e.currency,\n r\n ) : t.unit === \"day\" ? oe(\n e.amountMicros * 7 / t.number,\n e.currency,\n r\n ) : n : n;\n}\nfunction Lu({\n price: e,\n period: t,\n selectedLocale: r\n}) {\n const n = oe(\n e.amountMicros,\n e.currency,\n r\n );\n return !t || !t.number ? n : t.unit === \"year\" ? oe(e.amountMicros / 12, e.currency, r) : t.unit === \"month\" && t.number > 1 ? oe(\n e.amountMicros / t.number,\n e.currency,\n r\n ) : t.unit === \"week\" ? oe(\n e.amountMicros * 4 / t.number,\n e.currency,\n r\n ) : t.unit === \"day\" ? oe(\n e.amountMicros * 30 / t.number,\n e.currency,\n r\n ) : n;\n}\nfunction qn({\n price: e,\n period: t,\n full: r = !1,\n selectedLocale: n\n}) {\n if (!t || !t.number) return e.formattedPrice;\n let i = \"\";\n const o = r ? \"month\" : \"mo\", a = r ? t.unit : cr[t.unit];\n return t.unit === \"year\" ? (i = oe(\n e.amountMicros / 12,\n e.currency,\n n\n ), `${e.formattedPrice}/${t.number}${a}($${i}/(${o})`) : t.unit === \"month\" ? (i = oe(\n e.amountMicros / t.number,\n e.currency,\n n\n ), t.number > 1 ? `${e.formattedPrice}/${t.number}${a}(${i}/${o})` : `${e.formattedPrice}`) : t.unit === \"week\" ? (i = oe(\n e.amountMicros * 4 / t.number,\n e.currency,\n n\n ), `${e.formattedPrice}/${t.number}${a}(${i}/${o})`) : t.unit === \"day\" ? (i = oe(\n e.amountMicros * 30 / t.number,\n e.currency,\n n\n ), `${e.formattedPrice}/${t.number}${a}(${i}/${o})`) : e.formattedPrice;\n}\nfunction Cu(e, t) {\n const r = e.availablePackages, n = r.reduce((o, a) => o.rcBillingProduct.currentPrice.amountMicros > a.rcBillingProduct.currentPrice.amountMicros ? o : a);\n return r.reduce(\n (o, a) => (o[a.identifier] = Bu(\n a,\n n,\n t\n ), o),\n {}\n );\n}\nfunction Bu(e, t, r) {\n var c;\n const n = e.rcBillingProduct, i = n.currentPrice.formattedPrice, o = Du(e), a = n.productType, s = {\n product_name: n.title,\n price: i,\n price_per_period: \"\",\n price_per_period_full: \"\",\n total_price_and_per_month: \"\",\n total_price_and_per_month_full: \"\",\n sub_price_per_month: \"\",\n sub_price_per_week: \"\",\n sub_duration: \"\",\n sub_duration_in_months: \"\",\n sub_period: \"\",\n sub_period_length: \"\",\n sub_period_abbreviated: \"\",\n sub_offer_duration: void 0,\n sub_offer_duration_2: void 0,\n // doesn't apply - only google play\n sub_offer_price: void 0,\n sub_offer_price_2: void 0,\n // doesn't apply - only google play\n sub_relative_discount: \"\"\n };\n if (a === me.Subscription && o) {\n const l = Bn(\n i,\n o\n );\n s.price_per_period = l, s.price_per_period_full = Bn(\n i,\n o,\n !0\n ), s.total_price_and_per_month = qn({\n price: n.currentPrice,\n period: o.base.period,\n selectedLocale: r\n }), s.total_price_and_per_month_full = qn({\n price: n.currentPrice,\n period: o.base.period,\n full: !0,\n selectedLocale: r\n }), s.sub_price_per_month = Lu({\n price: n.currentPrice,\n period: o.base.period,\n selectedLocale: r\n }), s.sub_price_per_week = Uu({\n price: n.currentPrice,\n period: o.base.period,\n selectedLocale: r\n }), s.sub_duration = Ai(\n o.base.period\n ), s.sub_duration_in_months = Mu(\n o.base.period\n ), s.sub_period = Ti(\n o.base.period\n ), s.sub_period_length = `${(c = o.base.period) == null ? void 0 : c.unit}`, s.sub_period_abbreviated = `${cr[o.base.period.unit]}`;\n const f = n.currentPrice.amountMicros, u = t.rcBillingProduct.currentPrice.amountMicros, d = ((u - f) * 100 / u).toFixed(0);\n s.sub_relative_discount = f === u ? \"\" : `${d}% off`;\n }\n return (a === me.NonConsumable || a === me.Consumable) && o && (s.price = i, s.price_per_period = i, s.price_per_period_full = i, s.total_price_and_per_month = i, s.sub_price_per_month = i, s.sub_duration = \"Lifetime\", s.sub_duration_in_months = \"Lifetime\", s.sub_period = \"Lifetime\", s.sub_price_per_week = void 0, s.sub_relative_discount = void 0, s.price_per_period_full = i, s.total_price_and_per_month_full = i, s.sub_period_length = void 0, s.sub_period_abbreviated = void 0), s;\n}\nvar jn, gr;\njn = [$c];\nconst le = class le {\n /** @internal */\n constructor(t, r, n = kr) {\n dn(gr, 5, this);\n /** @internal */\n D(this, \"_API_KEY\");\n /** @internal */\n D(this, \"_appUserId\");\n /** @internal */\n D(this, \"_brandingInfo\", null);\n /** @internal */\n D(this, \"_loadingResourcesPromise\", null);\n /** @internal */\n D(this, \"backend\");\n /** @internal */\n D(this, \"purchaseOperationHelper\");\n this._API_KEY = t, this._appUserId = r, Pr(t) && H.debugLog(\"Initializing Purchases SDK with sandbox API Key\"), this.backend = new Fc(this._API_KEY, n), this.purchaseOperationHelper = new us(this.backend);\n }\n /**\n * Set the log level. Logs of the given level and below will be printed\n * in the console.\n * Default is `LogLevel.Silent` so no logs will be printed in the console.\n * @param logLevel - LogLevel to set.\n */\n static setLogLevel(t) {\n H.setLogLevel(t);\n }\n /**\n * Get the singleton instance of Purchases. It's preferred to use the instance\n * obtained from the {@link Purchases.configure} method when possible.\n * @throws {@link UninitializedPurchasesError} if the instance has not been initialized yet.\n */\n static getSharedInstance() {\n if (le.isConfigured())\n return le.instance;\n throw new ls();\n }\n /**\n * Returns whether the Purchases SDK is configured or not.\n */\n static isConfigured() {\n return le.instance !== void 0;\n }\n /**\n * Configures the Purchases SDK. This should be called as soon as your app\n * has a unique user id for your user. You should only call this once, and\n * keep the returned instance around for use throughout your application.\n * @param apiKey - RevenueCat API Key. Can be obtained from the RevenueCat dashboard.\n * @param appUserId - Your unique id for identifying the user.\n * @param httpConfig - Advanced http configuration to customise the SDK usage {@link HttpConfig}.\n * @throws {@link PurchasesError} if the API key or user id are invalid.\n */\n static configure(t, r, n = kr) {\n return le.instance !== void 0 && H.warnLog(\n \"Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance.\"\n ), jc(t), Hc(r), Vc(n.proxyURL), Gc(n.additionalHeaders), le.instance = new le(t, r, n), le.getSharedInstance();\n }\n /**\n * Loads and caches some optional data in the Purchases SDK.\n * Currently only fetching branding information. You can call this method\n * after configuring the SDK to speed up the first call to\n * {@link Purchases.purchase}.\n */\n async preload() {\n if (this.hasLoadedResources()) {\n H.verboseLog(\"Purchases resources are loaded. Skipping.\");\n return;\n }\n if (this._loadingResourcesPromise !== null) {\n H.verboseLog(\"Purchases resources are loading. Waiting.\"), await this._loadingResourcesPromise;\n return;\n }\n return this._loadingResourcesPromise = this.backend.getBrandingInfo().then((t) => {\n this._brandingInfo = t;\n }).catch((t) => {\n let r = `${t}`;\n t instanceof Z && (r = `${t.message}. ${t.underlyingErrorMessage ? `Underlying error: ${t.underlyingErrorMessage}` : \"\"}`), H.errorLog(`Error fetching branding info: ${r}`);\n }).finally(() => {\n this._loadingResourcesPromise = null;\n }), this._loadingResourcesPromise;\n }\n hasLoadedResources() {\n return this._brandingInfo !== null;\n }\n /**\n * Renders an RC Paywall and allows the user to purchase from it using RCBilling.\n * @experimental\n * @internal\n * @param paywallParams - The parameters object to customise the paywall render. Check {@link RenderPaywallParams}\n * @returns Promise\n */\n async renderPaywall(t) {\n console.warn(\n \"This method is @experimental, Paywalls are not generally available but they will come soon!\"\n );\n let n = t.htmlTarget ?? document.getElementById(\"rcb-ui-pw-root\");\n if (n === null) {\n const u = document.createElement(\"div\");\n u.id = \"rcb-ui-pw-root\", u.className = \"rcb-ui-pw-root\", u.style.zIndex = `${Ru}`, document.body.appendChild(u), n = u;\n }\n if (n === null)\n throw new Error(\n \"Could not generate a mount point for the billing widget\"\n );\n const i = n;\n i.innerHTML = \"\";\n const o = t.offering;\n if (!o.paywall_components)\n throw new Error(\"You cannot use paywalls yet, they are coming soon!\");\n const a = (u) => {\n const d = o.availablePackages.find(\n (v) => v.identifier === u\n );\n if (d === void 0)\n throw new Error(`No package found for ${u}`);\n return this.purchase({\n rcPackage: d,\n htmlTarget: t.purchaseHtmlTarget,\n customerEmail: t.customerEmail\n });\n }, s = (u) => {\n var d;\n if (t.onNavigateToUrl) {\n t.onNavigateToUrl(u);\n return;\n }\n (d = window.open(u, \"_blank\")) == null || d.focus();\n }, c = () => {\n }, l = () => {\n if (t.onVisitCustomerCenter) {\n t.onVisitCustomerCenter();\n return;\n }\n }, f = t.selectedLocale || navigator.language;\n return new Promise((u, d) => {\n yn(mu, {\n target: i,\n props: {\n paywallData: o.paywall_components,\n selectedLocale: f,\n onNavigateToUrlClicked: s,\n onVisitCustomerCenterClicked: l,\n onBackClicked: () => {\n if (t.onBack) {\n t.onBack();\n return;\n }\n i.innerHTML = \"\", H.debugLog(\"Purchase cancelled by user\"), d(new Z(te.UserCancelledError));\n },\n onRestorePurchasesClicked: c,\n onPurchaseClicked: (v) => {\n a(v).then((h) => {\n u(h);\n }).catch((h) => d(h));\n },\n variablesPerPackage: Cu(\n o,\n f\n )\n }\n });\n });\n }\n /**\n * Fetch the configured offerings for this user. You can configure these\n * in the RevenueCat dashboard.\n * @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}\n */\n async getOfferings(t) {\n Ml(t == null ? void 0 : t.currency);\n const r = this._appUserId, n = await this.backend.getOfferings(r), i = (t == null ? void 0 : t.offeringIdentifier) === Xi.Current ? n.current_offering_id : t == null ? void 0 : t.offeringIdentifier;\n return i && (n.offerings = n.offerings.filter(\n (o) => o.identifier === i\n )), await this.getAllOfferings(n, r, t);\n }\n /**\n * Retrieves a specific offering by a placement identifier.\n * For more info see https://www.revenuecat.com/docs/tools/targeting\n * @param placementIdentifier - The placement identifier to retrieve the offering for.\n * @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}\n */\n async getCurrentOfferingForPlacement(t, r) {\n const n = this._appUserId, i = await this.backend.getOfferings(n), o = await this.getAllOfferings(\n i,\n n,\n r\n ), a = i.placements ?? null;\n return a == null ? null : Yc(\n a,\n o.all,\n t\n );\n }\n async getAllOfferings(t, r, n) {\n const i = t.offerings.flatMap((a) => a.packages).map((a) => a.platform_product_identifier), o = await this.backend.getProducts(\n r,\n i,\n n == null ? void 0 : n.currency\n );\n return this.logMissingProductIds(i, o.product_details), zc(t, o);\n }\n /**\n * Convenience method to check whether a user is entitled to a specific\n * entitlement. This will use {@link Purchases.getCustomerInfo} under the hood.\n * @param entitlementIdentifier - The entitlement identifier you want to check.\n * @returns Whether the user is entitled to the specified entitlement\n * @throws {@link PurchasesError} if there is an error while fetching the customer info.\n * @see {@link Purchases.getCustomerInfo}\n */\n async isEntitledTo(t) {\n const r = await this.getCustomerInfo();\n return t in r.entitlements.active;\n }\n /**\n * Method to perform a purchase for a given package. You can obtain the\n * package from {@link Purchases.getOfferings}. This method will present the purchase\n * form on your site, using the given HTML element as the mount point, if\n * provided, or as a modal if not.\n * @deprecated - please use .purchase\n * @param rcPackage - The package you want to purchase. Obtained from {@link Purchases.getOfferings}.\n * @param customerEmail - The email of the user. If undefined, RevenueCat will ask the customer for their email.\n * @param htmlTarget - The HTML element where the billing view should be added. If undefined, a new div will be created at the root of the page and appended to the body.\n * @returns a Promise for the customer info after the purchase is completed successfully.\n * @throws {@link PurchasesError} if there is an error while performing the purchase. If the {@link PurchasesError.errorCode} is {@link ErrorCode.UserCancelledError}, the user cancelled the purchase.\n */\n purchasePackage(t, r, n) {\n return this.purchase({\n rcPackage: t,\n customerEmail: r,\n htmlTarget: n\n });\n }\n purchase(t) {\n const { rcPackage: r, purchaseOption: n, htmlTarget: i, customerEmail: o } = t;\n let a = i ?? document.getElementById(\"rcb-ui-root\");\n if (a === null) {\n const f = document.createElement(\"div\");\n f.className = \"rcb-ui-root\", document.body.appendChild(f), a = f;\n }\n if (a === null)\n throw new Error(\n \"Could not generate a mount point for the billing widget\"\n );\n const s = a, c = !i, l = this._appUserId;\n return H.debugLog(\n `Presenting purchase form for package ${r.identifier}`\n ), new Promise((f, u) => {\n yn(hc, {\n target: s,\n props: {\n appUserId: l,\n rcPackage: r,\n purchaseOption: n,\n customerEmail: o,\n onFinished: async (d) => {\n H.debugLog(\"Purchase finished\"), s.innerHTML = \"\";\n const v = {\n customerInfo: await this._getCustomerInfoForUserId(l),\n redemptionInfo: d\n };\n f(v);\n },\n onClose: () => {\n s.innerHTML = \"\", H.debugLog(\"Purchase cancelled by user\"), u(new Z(te.UserCancelledError));\n },\n onError: (d) => {\n s.innerHTML = \"\", u(Z.getForPurchasesFlowError(d));\n },\n purchases: this,\n brandingInfo: this._brandingInfo,\n purchaseOperationHelper: this.purchaseOperationHelper,\n asModal: c\n }\n });\n });\n }\n /**\n * Gets latest available {@link CustomerInfo}.\n * @returns The latest {@link CustomerInfo}.\n * @throws {@link PurchasesError} if there is an error while fetching the customer info.\n */\n async getCustomerInfo() {\n return await this._getCustomerInfoForUserId(this._appUserId);\n }\n /**\n * Gets the current app user id.\n */\n getAppUserId() {\n return this._appUserId;\n }\n /**\n * Change the current app user id. Returns the customer info for the new\n * user id.\n * @param newAppUserId - The user id to change to.\n */\n async changeUser(t) {\n return this._appUserId = t, await this.getCustomerInfo();\n }\n /** @internal */\n logMissingProductIds(t, r) {\n const n = {};\n r.forEach(\n (o) => n[o.identifier] = o\n );\n const i = [];\n t.forEach((o) => {\n n[o] === void 0 && i.push(o);\n }), i.length > 0 && H.debugLog(\n `Could not find product data for product ids:\n ${i.join()}.\n Please check that your product configuration is correct.`\n );\n }\n /**\n * @returns Whether the SDK is using a sandbox API Key.\n */\n isSandbox() {\n return Pr(this._API_KEY);\n }\n /**\n * Closes the Purchases instance. You should never have to do this normally.\n */\n close() {\n le.instance === this ? le.instance = void 0 : H.warnLog(\n \"Trying to close a Purchases instance that is not the current instance. Ignoring.\"\n );\n }\n /** @internal */\n async _getCustomerInfoForUserId(t) {\n const r = await this.backend.getCustomerInfo(t);\n return Ec(r);\n }\n /**\n * Generates an anonymous app user ID that follows RevenueCat's format.\n * This can be used when you don't have a user identifier system in place.\n * The generated ID will be in the format: $RCAnonymousID:\n * Example: $RCAnonymousID:123e4567e89b12d3a456426614174000\n * @returns A new anonymous app user ID string\n * @public\n */\n static generateRevenueCatAnonymousAppUserId() {\n return `$RCAnonymousID:${crypto.randomUUID().replace(/-/g, \"\")}`;\n }\n};\ngr = un(null), vn(gr, 1, \"purchase\", jn, le), fr(gr, le), /** @internal */\nD(le, \"instance\");\nlet Fn = le;\nexport {\n te as ErrorCode,\n ve as LogLevel,\n Xi as OfferingKeyword,\n qa as PackageType,\n me as ProductType,\n Fn as Purchases,\n Z as PurchasesError,\n ls as UninitializedPurchasesError\n};\n"],"names":["oo","Object","create","ur","defineProperty","ao","getOwnPropertyDescriptor","ln","e","t","Symbol","for","yt","TypeError","cn","r","enumerable","configurable","writable","value","on","fn","mt","so","n","i","kind","name","metadata","addInitializer","o","_","push","fr","D","dr","has","lo","an","call","get","sn","set","co","window","__svelte","v","Set","add","ut","Dr","Mr","Hn","vo","go","_o","ho","po","bo","mo","de","Ur","Dt","Array","isArray","Lr","from","xo","qe","Vn","getOwnPropertyDescriptors","Io","prototype","Po","Qt","getPrototypeOf","wt","Fe","ko","_r","length","je","Gn","Mt","Cr","ye","Ut","et","Wt","ae","Ye","ft","Te","Lt","To","dt","Ao","Oo","$n","Ge","Yn","No","zn","this","Kn","Br","_e","f","reactions","equals","version","tr","M","l","s","ce","Qn","F","Ae","zo","A","nr","includes","Error","Fo","hr","li","Wn","S","ee","we","ir","$e","Ko","a","Q","children","ctx","deps","parent","ne","Zn","qr","Ne","Xn","Oe","ci","Jn","st","St","ei","Do","Ro","Gr","So","vt","deriveds","nodes_start","nodes_end","first","last","next","prev","teardown","transitions","lt","gn","Bt","Ho","Fr","pr","m","jr","effect","reaction","Xe","ran","r1","Ct","r2","Je","Hr","g","_t","B","tt","He","ti","_n","ze","ri","ni","or","remove","c","stop","ii","Ot","Vr","oi","out","is_global","Nt","ai","in","br","mr","Yo","slice","gt","queueMicrotask","rr","Zt","yr","kt","ge","si","d","u","Wo","indexOf","pop","$o","Qo","Zo","Mo","Jo","ea","ui","Xo","qo","ta","hn","fi","Map","p","na","$","x","Y","J","EventTarget","wr","Date","getTime","Ce","Proxy","Co","deleteProperty","Number","isInteger","pn","h","Reflect","P","E","w","ownKeys","filter","setPrototypeOf","Bo","bn","di","vi","qt","document","createTextNode","Rt","k","U","Comment","data","N","gi","aa","body","autofocus","activeElement","focus","mn","_i","la","addEventListener","__on_r","Promise","resolve","then","defaultPrevented","target","elements","capture","hi","Er","xr","It","cancelBubble","startsWith","ar","passive","removeEventListener","$r","ownerDocument","type","composedPath","__root","assignedSlot","parentNode","host","disabled","apply","currentTarget","pi","createElement","innerHTML","content","ct","I","importNode","cloneNode","lastChild","Ke","X","createDocumentFragment","createComment","append","b","before","ca","endsWith","ua","fa","da","formnovalidate","ismap","nomodule","playsinline","readonly","va","toLowerCase","ga","_a","re","__t","nodeValue","yn","anchor","props","events","context","intro","Element","Node","__click","__className","__attributes","__styles","__e","Text","ia","nt","Go","appendChild","$$events","delete","wn","removeChild","ha","WeakMap","C","bi","mi","flags","items","he","Se","xe","Qe","measure","ma","unfix","T","q","V","z","En","Ve","ya","ue","O","j","fix","textContent","oa","clear","pa","be","ba","ht","W","$$slots","yi","wi","createElementNS","L","getRootNode","head","querySelector","hash","id","code","G","removeAttribute","xi","setAttribute","Ei","tagName","class","__value","R","style","cssText","isConnected","xn","nodeName","Yr","Ea","className","In","Pn","Vt","kn","Ii","preventDefault","Ee","Vo","Tn","map","Pi","sr","ki","Ta","bubbles","cancelable","CustomEvent","detail","ka","Aa","Uo","Gt","Na","store","source","unsubscribe","subscribe","Oa","Da","exclude","zr","Ma","Ft","An","y","Ra","Lo","$$legacy","arguments","Ua","pt","namespaceURI","ve","Silent","Warn","Info","Debug","Verbose","H","static","logLevel","console","error","warn","info","debug","log","Be","Year","Month","Week","Day","Kr","match","errorLog","parseInt","number","unit","oe","Intl","NumberFormat","currency","format","Ti","Ai","La","Ca","Ba","me","Subscription","Consumable","NonConsumable","Oi","amount","amount_micros","amountMicros","formattedPrice","On","period_duration","periodDuration","period","cycleCount","cycle_count","price","Va","entries","purchase_options","forEach","base_price","debugLog","priceId","price_id","basePrice","ja","keys","identifier","default_purchase_option_id","displayName","title","description","productType","currentPrice","normalPeriodDuration","presentedOfferingIdentifier","offeringIdentifier","presentedOfferingContext","defaultPurchaseOption","defaultSubscriptionOption","subscriptionOptions","defaultNonSubscriptionOption","Ga","base","trial","Fa","$a","platform_product_identifier","Ha","product_type","rcBillingProduct","packageType","za","Ka","Qa","Wa","Za","Xa","Ja","es","ts","Nn","show_product_description","default","rs","ns","is","as","ss","Ir","os","te","UnknownError","UserCancelledError","StoreProblemError","PurchaseNotAllowedError","PurchaseInvalidError","ProductNotAvailableForPurchaseError","ProductAlreadyPurchasedError","ReceiptAlreadyInUseError","InvalidReceiptError","MissingReceiptFileError","NetworkError","InvalidCredentialsError","UnexpectedBackendResponseError","InvalidAppUserIdError","OperationAlreadyInProgressError","UnknownBackendError","InvalidAppleSubscriptionKeyError","IneligibleError","InsufficientPermissionsError","PaymentPendingError","InvalidSubscriberAttributesError","LogOutWithAnonymousUserError","ConfigurationError","UnsupportedError","EmptySubscriberAttributesError","CustomerInfoError","SignatureVerificationError","InvalidEmailError","Tt","Ni","ie","ErrorSettingUpPurchase","ErrorChargingPayment","MissingEmailError","StripeError","AlreadyPurchasedError","BackendInvalidPlatform","BackendInvalidEmail","BackendStoreProblem","BackendCannotTransferPurchase","BackendInvalidReceiptToken","BackendInvalidAppStoreSharedSecret","BackendInvalidPaymentModeOrIntroPriceNotProvided","BackendProductIdForGoogleReceiptNotProvided","BackendInvalidPlayStoreCredentials","BackendInternalServerError","BackendEmptyAppUserId","BackendInvalidAuthToken","BackendInvalidAPIKey","BackendBadRequest","BackendPlayStoreQuotaExceeded","BackendPlayStoreInvalidPackageName","BackendPlayStoreGenericError","BackendUserIneligibleForPromoOffer","BackendInvalidAppleSubscriptionKey","BackendInvalidSubscriberAttributes","BackendInvalidSubscriberAttributesBody","BackendProductIDsMalformed","BackendAlreadySubscribedError","BackendPaymentGatewayGenericError","BackendOfferNotFound","BackendNoMXRecordsFound","Z","constructor","super","errorCode","message","underlyingErrorMessage","extra","getErrorCodeForBackendErrorCode","getPublicMessage","backendErrorCode","convertPurchaseFlowErrorCodeToErrorCode","ls","Pt","Started","InProgress","Succeeded","Failed","at","SetupIntentCreationFailed","PaymentMethodCreationFailed","PaymentChargeFailed","SetupIntentCompletionFailed","AlreadyPurchased","cs","operation","redemption_info","redeemUrl","redeem_url","K","purchasesErrorCode","isRecoverable","getPublicErrorMessage","us","backend","maxNumberAttempts","async","postPurchase","operationSessionId","operation_session_id","fromPurchasesError","String","clearPurchaseInProgress","getCheckoutStatus","status","setTimeout","waitMSBetweenAttempts","redemptionInfo","handlePaymentError","catch","fs","ds","vs","_s","hs","Qr","ps","bs","Wr","ms","ys","At","ws","Es","xs","Zr","Is","Ps","ks","Sn","Rn","Ts","As","Os","Si","app_icon_webp","app_icon","src","srcWebp","seller_company_name","Ns","Ss","Ds","Ms","Us","Ls","Cs","Ri","gutter","brandingInfo","click","Rs","onClose","Bs","qs","Fs","onContinue","closeButtonTitle","icon","gs","js","Hs","Vs","$s","Gs","zs","Qs","Ws","ra","blur","destroy","mount","Ys","Pa","Zs","theme","variables","rules","labels","mode","appearance","clientSecret","fonts","loader","locale","registerAppInfo","url","Ks","stripe","update","xt","Di","Xs","Dn","Mn","concat","Et","$t","Yt","nl","Stripe","querySelectorAll","test","Js","rl","tl","reject","Mi","Ui","ol","now","_registerWrapper","startTime","el","il","al","sl","Xr","ll","cl","ul","dl","vl","Li","gl","warning","accent","primary","white","background","_l","Ci","hl","pl","Bi","bl","ml","Un","Ln","qi","luminanceThreshold","Math","pow","wl","assign","yl","El","ji","xl","fromEntries","Hi","Jr","shapes","Xt","join","Vi","Il","en","brandingAppearance","shape","formColors","formStyleVars","productInfoStyleVars","kl","Tl","Al","Ol","Nl","Sl","Rl","client_secret","publishable_api_key","stripe_account_id","stripeAccount","confirmSetup","redirect","_elements","fl","rt","Re","borderRadius","fontSizeBase","fontSizeSm","spacingGridRow","focusBoxShadow","colorDanger","colorTextPlaceholder","colorText","colorTextSecondary","boxShadow","border","backgroundColor","color","outline","marginBottom","fontWeight","lineHeight","fill","Ht","Ie","De","business","layout","options","change","complete","testId","Pe","We","Ue","ke","se","pe","Ul","Ll","Cl","Bl","ql","Fl","Ia","trim","Dl","email","jl","Hl","Gl","$l","Gi","Yl","Vl","zl","Kl","Wl","Zl","Jl","ec","rc","nc","oc","ac","sc","cc","uc","fc","vc","gc","_c","hc","startPurchase","next_action","pollCurrentPurchaseForCompletion","ic","condition","tc","lc","Me","Le","productDetails","purchaseOption","header","slot","isSandbox","Xl","Ql","dc","fe","bt","processing","lastError","paymentInfoCollectionMetadata","onError","purchaseOptionToUse","io","nn","seller_company_support_email","supportEmail","pc","expires_date","bc","product_identifier","isActive","willRenew","xc","latestPurchaseDate","purchase_date","originalPurchaseDate","expirationDate","zt","productIdentifier","unsubscribeDetectedAt","unsubscribe_detected_at","billingIssueDetectedAt","billing_issues_detected_at","is_sandbox","periodType","period_type","mc","original_purchase_date","yc","wc","all","active","Ec","subscriber","subscriptions","Pc","Tc","non_subscriptions","entitlements","allExpirationDatesByProduct","allPurchaseDatesByProduct","Ic","activeSubscriptions","kc","managementURL","management_url","requestDate","request_date","firstSeenDate","first_seen","originalAppUserId","original_app_user_id","Ac","Jt","Pr","it","apiKey","headers","httpConfig","proxyURL","urlPath","fetch","method","Dc","additionalHeaders","Sc","INTERNAL_SERVER_ERROR","vr","text","BAD_REQUEST","json","JSON","stringify","convertCodeToBackendErrorCode","getForBackendError","Nc","CONTINUE","SWITCHING_PROTOCOLS","PROCESSING","EARLY_HINTS","OK","CREATED","ACCEPTED","NON_AUTHORITATIVE_INFORMATION","NO_CONTENT","RESET_CONTENT","PARTIAL_CONTENT","MULTI_STATUS","MULTIPLE_CHOICES","MOVED_PERMANENTLY","MOVED_TEMPORARILY","SEE_OTHER","NOT_MODIFIED","USE_PROXY","TEMPORARY_REDIRECT","PERMANENT_REDIRECT","UNAUTHORIZED","PAYMENT_REQUIRED","FORBIDDEN","NOT_FOUND","METHOD_NOT_ALLOWED","NOT_ACCEPTABLE","PROXY_AUTHENTICATION_REQUIRED","REQUEST_TIMEOUT","CONFLICT","GONE","LENGTH_REQUIRED","PRECONDITION_FAILED","REQUEST_TOO_LONG","REQUEST_URI_TOO_LONG","UNSUPPORTED_MEDIA_TYPE","REQUESTED_RANGE_NOT_SATISFIABLE","EXPECTATION_FAILED","IM_A_TEAPOT","INSUFFICIENT_SPACE_ON_RESOURCE","METHOD_FAILURE","MISDIRECTED_REQUEST","UNPROCESSABLE_ENTITY","LOCKED","FAILED_DEPENDENCY","UPGRADE_REQUIRED","PRECONDITION_REQUIRED","TOO_MANY_REQUESTS","REQUEST_HEADER_FIELDS_TOO_LARGE","UNAVAILABLE_FOR_LEGAL_REASONS","NOT_IMPLEMENTED","BAD_GATEWAY","SERVICE_UNAVAILABLE","GATEWAY_TIMEOUT","HTTP_VERSION_NOT_SUPPORTED","INSUFFICIENT_STORAGE","NETWORK_AUTHENTICATION_REQUIRED","$i","Yi","zi","Ki","Qi","Wi","Rc","Zi","lr","Mc","appUserId","encodeURIComponent","Uc","Lc","productIds","Cc","Bc","qc","kr","Fc","API_KEY","app_user_id","product_id","presented_offering_identifier","offer_id","targetingContext","applied_targeting_rule","rule_id","ruleId","revision","placementIdentifier","presented_placement_identifier","Xi","Current","Ji","Ze","zc","product_details","offerings","Ya","packages","serverDescription","packagesById","availablePackages","lifetime","$rc_lifetime","annual","$rc_annual","sixMonth","$rc_six_month","threeMonth","$rc_three_month","twoMonth","$rc_two_month","monthly","$rc_monthly","weekly","$rc_weekly","paywall_components","current_offering_id","targeting","current","Tr","Ar","Or","Nr","Sr","Rr","body_s","body_m","body_l","body_xl","heading_xs","heading_s","heading_m","heading_l","heading_xl","heading_xxl","extra_light","thin","light","regular","medium","semi_bold","bold","extra_bold","black","vertical","horizontal","top","leading","center","bottom","trailing","space_between","space_around","space_evenly","start","end","ot","Qc","size","Wc","Kc","matchMedia","matches","Zc","onclick","Xc","Jc","eo","Cn","Kt","colorMap","colorMode","fallback","points","percent","degrees","to","top_leading","top_trailing","bottom_trailing","bottom_leading","ro","margin","padding","textColor","shadow","width","tu","corners","radius","tn","navigator","userAgent","height","er","no","au","is_selected_by_default","components","stack","components_config","package_id","su","background_color","spacing","dimension","alignment","distribution","iu","lu","cu","jt","onAction","purchaseState","rn","nodeData","variableDictionary","uu","action","fu","font_size","dark","eu","horizontal_alignment","font_weight","font_name","ou","textStyles","tagToRender","du","gu","_u","reduce","replaceAll","toString","hu","text_lid","defaultLocale","vu","styleVariables","component","Sa","image","xu","button","purchase_button","Pu","package","Ou","footer","Su","wa","prefersDarkMode","pu","bu","mu","selectedPackageId","paywallData","selectedLocale","default_locale","variablesPerPackage","jo","packageId","destination","onVisitCustomerCenterClicked","url_lid","components_localizations","onNavigateToUrlClicked","onBackClicked","onRestorePurchasesClicked","onPurchaseClicked","yu","gradient_colors","mask_shape","max_height","override_source_lid","ru","nu","imageStyles","gradientStyles","wu","Eu","original","Iu","ku","stopPropagation","Tu","Au","classList","contains","xa","Nu","jn","gr","cr","month","year","week","day","Bn","qn","full","Cu","Du","product_name","price_per_period","price_per_period_full","total_price_and_per_month","total_price_and_per_month_full","sub_price_per_month","sub_price_per_week","sub_duration","sub_duration_in_months","sub_period","sub_period_length","sub_period_abbreviated","sub_offer_duration","sub_offer_duration_2","sub_offer_price","sub_offer_price_2","sub_relative_discount","Lu","Uu","Mu","toFixed","Bu","preload","le","dn","_API_KEY","_appUserId","purchaseOperationHelper","setLogLevel","isConfigured","instance","warnLog","jc","Hc","Vc","Gc","getSharedInstance","hasLoadedResources","_loadingResourcesPromise","verboseLog","getBrandingInfo","_brandingInfo","finally","htmlTarget","getElementById","zIndex","offering","find","purchase","rcPackage","purchaseHtmlTarget","customerEmail","onNavigateToUrl","open","onVisitCustomerCenter","language","onBack","Ml","getOfferings","getAllOfferings","placements","Yc","offering_ids_by_placement","fallback_offering_id","values","flatMap","getProducts","logMissingProductIds","getCustomerInfo","purchasePackage","onFinished","customerInfo","_getCustomerInfoForUserId","getForPurchasesFlowError","purchases","asModal","getAppUserId","close","crypto","randomUUID","replace","un","vn","private","access","unshift","init","Fn"],"sourceRoot":""}