@sesamy/sesamy-components 2.21.11 → 2.21.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ var No = (t) => {
|
|
|
5
5
|
var Ed = (t, e, r) => e in t ? Rd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
6
|
var Dt = (t, e, r) => Ed(t, typeof e != "symbol" ? e + "" : e, r), Po = (t, e, r) => e.has(t) || No("Cannot " + r);
|
|
7
7
|
var st = (t, e, r) => (Po(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ma = (t, e, r) => e.has(t) ? No("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), va = (t, e, r, n) => (Po(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
8
|
-
const Fd = "2.21.
|
|
8
|
+
const Fd = "2.21.12";
|
|
9
9
|
var X0;
|
|
10
10
|
typeof window < "u" && ((X0 = window.__svelte ?? (window.__svelte = {})).v ?? (X0.v = /* @__PURE__ */ new Set())).add("5");
|
|
11
11
|
const _a = 1, eo = 2, J0 = 4, Sd = 8, Td = 16, Od = 1, Gd = 2, q0 = 4, Bd = 8, zd = 16, jd = 4, K0 = 1, Yd = 2, to = "[", ta = "[!", ro = "]", kr = {}, _e = Symbol(), Zd = "http://www.w3.org/1999/xhtml", Vd = "http://www.w3.org/2000/svg", $d = "@attach", Mo = !1;
|
|
@@ -12918,7 +12918,7 @@ function U0(t, e) {
|
|
|
12918
12918
|
checkoutId: ke.id,
|
|
12919
12919
|
paywallId: e.paywall.id
|
|
12920
12920
|
}), r() || k.preferBusiness) {
|
|
12921
|
-
gd(ke, void 0,
|
|
12921
|
+
gd(ke, void 0, k.preferBusiness);
|
|
12922
12922
|
return;
|
|
12923
12923
|
}
|
|
12924
12924
|
S(o, ke, !0), S(i, !1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(me,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(me=typeof globalThis<"u"?globalThis:me||self,Ee(me["@sesamy/sesamy-components"]={}))})(this,(function(me){"use strict";var e5=Object.defineProperty;var Gd=me=>{throw TypeError(me)};var t5=(me,Ee,Qe)=>Ee in me?e5(me,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):me[Ee]=Qe;var zt=(me,Ee,Qe)=>t5(me,typeof Ee!="symbol"?Ee+"":Ee,Qe),Bd=(me,Ee,Qe)=>Ee.has(me)||Gd("Cannot "+Qe);var mt=(me,Ee,Qe)=>(Bd(me,Ee,"read from private field"),Qe?Qe.call(me):Ee.get(me)),No=(me,Ee,Qe)=>Ee.has(me)?Gd("Cannot add the same private member more than once"):Ee instanceof WeakSet?Ee.add(me):Ee.set(me,Qe),Po=(me,Ee,Qe,zr)=>(Bd(me,Ee,"write to private field"),zr?zr.call(me,Qe):Ee.set(me,Qe),Qe);var $d,ir,Pt;const Ee="2.21.11";typeof window<"u"&&(($d=window.__svelte??(window.__svelte={})).v??($d.v=new Set)).add("5");const zr=1,ba=2,Mo=4,zd=8,jd=16,Yd=1,Vd=2,Do=4,Zd=8,Wd=16,Hd=4,Lo=1,Ud=2,Ca="[",In="[!",ya="]",kr={},et=Symbol(),_d="http://www.w3.org/1999/xhtml",Xd="http://www.w3.org/2000/svg",qd="@attach",Ro=!1;var jr=Array.isArray,Jd=Array.prototype.indexOf,Aa=Array.from,xn=Object.keys,kn=Object.defineProperty,jt=Object.getOwnPropertyDescriptor,Eo=Object.getOwnPropertyDescriptors,Kd=Object.prototype,Qd=Array.prototype,wa=Object.getPrototypeOf,Fo=Object.isExtensible;function Yr(t){return typeof t=="function"}const Vr=()=>{};function So(t){return typeof(t==null?void 0:t.then)=="function"}function e1(t){return t()}function Nn(t){for(var e=0;e<t.length;e++)t[e]()}const Rt=2,To=4,Pn=8,Mn=16,Qt=32,Nr=64,Ia=128,vt=256,Dn=512,at=1024,Yt=2048,dr=4096,er=8192,xa=16384,ka=32768,Zr=65536,t1=1<<17,r1=1<<19,$o=1<<20,Na=1<<21,Vt=Symbol("$state"),Pa=Symbol("legacy props"),n1=Symbol("");function Oo(t){return t===this.v}function Go(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ma(t){return!Go(t,this.v)}function a1(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function o1(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function i1(t){throw new Error("https://svelte.dev/e/effect_orphan")}function d1(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function l1(){throw new Error("https://svelte.dev/e/hydration_failed")}function s1(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function u1(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function c1(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function g1(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Wr=!1,f1=!1;function h1(){Wr=!0}function Ln(){throw new Error("https://svelte.dev/e/invalid_default_snippet")}function Bo(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let Fe=null;function Rn(t){Fe=t}function Ce(t,e=!1,r){var n=Fe={p:Fe,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Wr&&!e&&(Fe.l={s:null,u:null,r1:[],r2:sr(!1)}),Ra(()=>{n.d=!0})}function ye(t){const e=Fe;if(e!==null){t!==void 0&&(e.x=t);const i=e.e;if(i!==null){var r=ve,n=De;e.e=null;try{for(var a=0;a<i.length;a++){var o=i[a];wt(o.effect),gt(o.reaction),Xe(o.fn)}}finally{wt(r),gt(n)}}Fe=e.p,e.m=!0}return t||{}}function Hr(){return!Wr||Fe!==null&&Fe.l===null}function Et(t){if(typeof t!="object"||t===null||Vt in t)return t;const e=wa(t);if(e!==Kd&&e!==Qd)return t;var r=new Map,n=jr(t),a=ne(0),o=De,i=d=>{var l=De;gt(o);var s=d();return gt(l),s};return n&&r.set("length",ne(t.length)),new Proxy(t,{defineProperty(d,l,s){return(!("value"in s)||s.configurable===!1||s.enumerable===!1||s.writable===!1)&&u1(),i(()=>{var f=r.get(l);f===void 0?(f=ne(s.value),r.set(l,f)):S(f,s.value,!0)}),!0},deleteProperty(d,l){var s=r.get(l);if(s===void 0){if(l in d){const c=i(()=>ne(et));r.set(l,c),Da(a)}}else{if(n&&typeof l=="string"){var f=r.get("length"),g=Number(l);Number.isInteger(g)&&g<f.v&&S(f,g)}S(s,et),Da(a)}return!0},get(d,l,s){var m;if(l===Vt)return t;var f=r.get(l),g=l in d;if(f===void 0&&(!g||(m=jt(d,l))!=null&&m.writable)&&(f=i(()=>{var h=Et(g?d[l]:et),v=ne(h);return v}),r.set(l,f)),f!==void 0){var c=u(f);return c===et?void 0:c}return Reflect.get(d,l,s)},getOwnPropertyDescriptor(d,l){var s=Reflect.getOwnPropertyDescriptor(d,l);if(s&&"value"in s){var f=r.get(l);f&&(s.value=u(f))}else if(s===void 0){var g=r.get(l),c=g==null?void 0:g.v;if(g!==void 0&&c!==et)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return s},has(d,l){var c;if(l===Vt)return!0;var s=r.get(l),f=s!==void 0&&s.v!==et||Reflect.has(d,l);if(s!==void 0||ve!==null&&(!f||(c=jt(d,l))!=null&&c.writable)){s===void 0&&(s=i(()=>{var m=f?Et(d[l]):et,h=ne(m);return h}),r.set(l,s));var g=u(s);if(g===et)return!1}return f},set(d,l,s,f){var w;var g=r.get(l),c=l in d;if(n&&l==="length")for(var m=s;m<g.v;m+=1){var h=r.get(m+"");h!==void 0?S(h,et):m in d&&(h=i(()=>ne(et)),r.set(m+"",h))}if(g===void 0)(!c||(w=jt(d,l))!=null&&w.writable)&&(g=i(()=>{var A=ne(void 0);return S(A,Et(s)),A}),r.set(l,g));else{c=g.v!==et;var v=i(()=>Et(s));S(g,v)}var p=Reflect.getOwnPropertyDescriptor(d,l);if(p!=null&&p.set&&p.set.call(f,s),!c){if(n&&typeof l=="string"){var C=r.get("length"),x=Number(l);Number.isInteger(x)&&x>=C.v&&S(C,x+1)}Da(a)}return!0},ownKeys(d){u(a);var l=Reflect.ownKeys(d).filter(g=>{var c=r.get(g);return c===void 0||c.v!==et});for(var[s,f]of r)f.v!==et&&!(s in d)&&l.push(s);return l},setPrototypeOf(){c1()}})}function Da(t,e=1){S(t,t.v+e)}function zo(t){try{if(t!==null&&typeof t=="object"&&Vt in t)return t[Vt]}catch{}return t}function m1(t,e){return Object.is(zo(t),zo(e))}function Pr(t){var e=Rt|Yt,r=De!==null&&(De.f&Rt)!==0?De:null;return ve===null||r!==null&&(r.f&vt)!==0?e|=vt:ve.f|=$o,{ctx:Fe,deps:null,effects:null,equals:Oo,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:r??ve}}function H(t){const e=Pr(t);return ui(e),e}function lr(t){const e=Pr(t);return e.equals=Ma,e}function jo(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)ct(e[r])}}function v1(t){for(var e=t.parent;e!==null;){if((e.f&Rt)===0)return e;e=e.parent}return null}function Yo(t){var e,r=ve;wt(v1(t));try{jo(t),e=hi(t)}finally{wt(r)}return e}function Vo(t){var e=Yo(t);if(t.equals(e)||(t.v=e,t.wv=gi()),!Xr){var r=(hr||(t.f&vt)!==0)&&t.deps!==null?dr:at;xt(t,r)}}const on=new Map;function sr(t,e){var r={f:0,v:t,reactions:null,equals:Oo,rv:0,wv:0};return r}function ne(t,e){const r=sr(t);return ui(r),r}function ur(t,e=!1){var n;const r=sr(t);return e||(r.equals=Ma),Wr&&Fe!==null&&Fe.l!==null&&((n=Fe.l).s??(n.s=[])).push(r),r}function S(t,e,r=!1){De!==null&&!Ut&&Hr()&&(De.f&(Rt|Mn))!==0&&!(it!=null&&it.includes(t))&&g1();let n=r?Et(e):e;return Ur(t,n)}function Ur(t,e){if(!t.equals(e)){var r=t.v;Xr?on.set(t,e):on.set(t,r),t.v=e,(t.f&Rt)!==0&&((t.f&Yt)!==0&&Yo(t),xt(t,(t.f&vt)===0?at:dr)),t.wv=gi(),Wo(t,Yt),Hr()&&ve!==null&&(ve.f&at)!==0&&(ve.f&(Qt|Nr))===0&&(It===null?P1([t]):It.push(t))}return e}function Zo(t,e=1){var r=u(t),n=e===1?r++:r--;return S(t,r),n}function Wo(t,e){var r=t.reactions;if(r!==null)for(var n=Hr(),a=r.length,o=0;o<a;o++){var i=r[o],d=i.f;(d&Yt)===0&&(!n&&i===ve||(xt(i,e),(d&(at|vt))!==0&&((d&Rt)!==0?Wo(i,dr):On(i))))}}function dn(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function p1(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let q=!1;function ot(t){q=t}let ge;function tt(t){if(t===null)throw dn(),kr;return ge=t}function Zt(){return tt(Ht(ge))}function P(t){if(q){if(Ht(ge)!==null)throw dn(),kr;ge=t}}function Wt(t=1){if(q){for(var e=t,r=ge;e--;)r=Ht(r);ge=r}}function En(){for(var t=0,e=ge;;){if(e.nodeType===8){var r=e.data;if(r===ya){if(t===0)return e;t-=1}else(r===Ca||r===In)&&(t+=1)}var n=Ht(e);e.remove(),e=n}}function Ho(t){if(!t||t.nodeType!==8)throw dn(),kr;return t.data}var Uo,_o,Xo,qo;function La(){if(Uo===void 0){Uo=window,_o=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Xo=jt(e,"firstChild").get,qo=jt(e,"nextSibling").get,Fo(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Fo(r)&&(r.__t=void 0)}}function tr(t=""){return document.createTextNode(t)}function Je(t){return Xo.call(t)}function Ht(t){return qo.call(t)}function L(t,e){if(!q)return Je(t);var r=Je(ge);if(r===null)r=ge.appendChild(tr());else if(e&&r.nodeType!==3){var n=tr();return r==null||r.before(n),tt(n),n}return tt(r),r}function Y(t,e){if(!q){var r=Je(t);return r instanceof Comment&&r.data===""?Ht(r):r}return ge}function N(t,e=1,r=!1){let n=q?ge:t;for(var a;e--;)a=n,n=Ht(n);if(!q)return n;var o=n==null?void 0:n.nodeType;if(r&&o!==3){var i=tr();return n===null?a==null||a.after(i):n.before(i),tt(i),i}return tt(n),n}function Jo(t){t.textContent=""}function Ko(t){ve===null&&De===null&&i1(),De!==null&&(De.f&vt)!==0&&ve===null&&o1(),Xr&&a1()}function b1(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function Mr(t,e,r,n=!0){var a=ve,o={ctx:Fe,deps:null,nodes_start:null,nodes_end:null,f:t|Yt,first:null,fn:e,last:null,next:null,parent:a,prev:null,teardown:null,transitions:null,wv:0};if(r)try{$n(o),o.f|=ka}catch(l){throw ct(o),l}else e!==null&&On(o);var i=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&($o|Ia))===0;if(!i&&n&&(a!==null&&b1(o,a),De!==null&&(De.f&Rt)!==0)){var d=De;(d.effects??(d.effects=[])).push(o)}return o}function Ra(t){const e=Mr(Pn,null,!1);return xt(e,at),e.teardown=t,e}function Dr(t){Ko();var e=ve!==null&&(ve.f&Qt)!==0&&Fe!==null&&!Fe.m;if(e){var r=Fe;(r.e??(r.e=[])).push({fn:t,effect:ve,reaction:De})}else{var n=Xe(t);return n}}function C1(t){return Ko(),Lr(t)}function y1(t){const e=Mr(Nr,t,!0);return()=>{ct(e)}}function A1(t){const e=Mr(Nr,t,!0);return(r={})=>new Promise(n=>{r.outro?gr(e,()=>{ct(e),n(void 0)}):(ct(e),n(void 0))})}function Xe(t){return Mr(To,t,!1)}function Fn(t,e){var r=Fe,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=Lr(()=>{t(),!n.ran&&(n.ran=!0,S(r.l.r2,!0),_t(e))})}function Qo(){var t=Fe;Lr(()=>{if(u(t.l.r2)){for(var e of t.l.r1){var r=e.effect;(r.f&at)!==0&&xt(r,dr),qr(r)&&$n(r),e.ran=!1}t.l.r2.v=!1}})}function Lr(t){return Mr(Pn,t,!0)}function B(t,e=[],r=Pr){const n=e.map(r);return cr(()=>t(...n.map(u)))}function cr(t,e=0){return Mr(Pn|Mn|e,t,!0)}function pt(t,e=!0){return Mr(Pn|Qt,t,!0,e)}function ei(t){var e=t.teardown;if(e!==null){const r=Xr,n=De;si(!0),gt(null);try{e.call(null)}finally{si(r),gt(n)}}}function ti(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;(r.f&Nr)!==0?r.parent=null:ct(r,e),r=n}}function w1(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Qt)===0&&ct(e),e=r}}function ct(t,e=!0){var r=!1;(e||(t.f&r1)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(ri(t.nodes_start,t.nodes_end),r=!0),ti(t,e&&!r),Tn(t,0),xt(t,xa);var n=t.transitions;if(n!==null)for(const o of n)o.stop();ei(t);var a=t.parent;a!==null&&a.first!==null&&ni(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function ri(t,e){for(;t!==null;){var r=t===e?null:Ht(t);t.remove(),t=r}}function ni(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function gr(t,e){var r=[];Ea(t,r,!0),ai(r,()=>{ct(t),e&&e()})}function ai(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var a of t)a.out(n)}else e()}function Ea(t,e,r){if((t.f&er)===0){if(t.f^=er,t.transitions!==null)for(const i of t.transitions)(i.is_global||r)&&e.push(i);for(var n=t.first;n!==null;){var a=n.next,o=(n.f&Zr)!==0||(n.f&Qt)!==0;Ea(n,e,o?r:!1),n=a}}}function fr(t){oi(t,!0)}function oi(t,e){if((t.f&er)!==0){t.f^=er,(t.f&at)===0&&(t.f^=at),qr(t)&&(xt(t,Yt),On(t));for(var r=t.first;r!==null;){var n=r.next,a=(r.f&Zr)!==0||(r.f&Qt)!==0;oi(r,a?e:!1),r=n}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||e)&&o.in()}}const I1=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let ln=[],sn=[];function ii(){var t=ln;ln=[],Nn(t)}function di(){var t=sn;sn=[],Nn(t)}function _r(t){ln.length===0&&queueMicrotask(ii),ln.push(t)}function x1(t){sn.length===0&&I1(di),sn.push(t)}function k1(){ln.length>0&&ii(),sn.length>0&&di()}function N1(t){var e=ve;if((e.f&ka)===0){if((e.f&Ia)===0)throw t;e.fn(t)}else li(t,e)}function li(t,e){for(;e!==null;){if((e.f&Ia)!==0)try{e.fn(t);return}catch{}e=e.parent}throw t}let un=!1,cn=null,Rr=!1,Xr=!1;function si(t){Xr=t}let gn=[],r5=[],De=null,Ut=!1;function gt(t){De=t}let ve=null;function wt(t){ve=t}let it=null;function ui(t){De!==null&&De.f&Na&&(it===null?it=[t]:it.push(t))}let dt=null,bt=0,It=null;function P1(t){It=t}let ci=1,Sn=0,hr=!1;function gi(){return++ci}function qr(t){var g;var e=t.f;if((e&Yt)!==0)return!0;if((e&dr)!==0){var r=t.deps,n=(e&vt)!==0;if(r!==null){var a,o,i=(e&Dn)!==0,d=n&&ve!==null&&!hr,l=r.length;if(i||d){var s=t,f=s.parent;for(a=0;a<l;a++)o=r[a],(i||!((g=o==null?void 0:o.reactions)!=null&&g.includes(s)))&&(o.reactions??(o.reactions=[])).push(s);i&&(s.f^=Dn),d&&f!==null&&(f.f&vt)===0&&(s.f^=vt)}for(a=0;a<l;a++)if(o=r[a],qr(o)&&Vo(o),o.wv>t.wv)return!0}(!n||ve!==null&&!hr)&&xt(t,at)}return!1}function fi(t,e,r=!0){var n=t.reactions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];it!=null&&it.includes(t)||((o.f&Rt)!==0?fi(o,e,!1):e===o&&(r?xt(o,Yt):(o.f&at)!==0&&xt(o,dr),On(o)))}}function hi(t){var m;var e=dt,r=bt,n=It,a=De,o=hr,i=it,d=Fe,l=Ut,s=t.f;dt=null,bt=0,It=null,hr=(s&vt)!==0&&(Ut||!Rr||De===null),De=(s&(Qt|Nr))===0?t:null,it=null,Rn(t.ctx),Ut=!1,Sn++,t.f|=Na;try{var f=(0,t.fn)(),g=t.deps;if(dt!==null){var c;if(Tn(t,bt),g!==null&&bt>0)for(g.length=bt+dt.length,c=0;c<dt.length;c++)g[bt+c]=dt[c];else t.deps=g=dt;if(!hr)for(c=bt;c<g.length;c++)((m=g[c]).reactions??(m.reactions=[])).push(t)}else g!==null&&bt<g.length&&(Tn(t,bt),g.length=bt);if(Hr()&&It!==null&&!Ut&&g!==null&&(t.f&(Rt|dr|Yt))===0)for(c=0;c<It.length;c++)fi(It[c],t);return a!==null&&a!==t&&(Sn++,It!==null&&(n===null?n=It:n.push(...It))),f}catch(h){N1(h)}finally{dt=e,bt=r,It=n,De=a,hr=o,it=i,Rn(d),Ut=l,t.f^=Na}}function M1(t,e){let r=e.reactions;if(r!==null){var n=Jd.call(r,t);if(n!==-1){var a=r.length-1;a===0?r=e.reactions=null:(r[n]=r[a],r.pop())}}r===null&&(e.f&Rt)!==0&&(dt===null||!dt.includes(e))&&(xt(e,dr),(e.f&(vt|Dn))===0&&(e.f^=Dn),jo(e),Tn(e,0))}function Tn(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)M1(t,r[n])}function $n(t){var e=t.f;if((e&xa)===0){xt(t,at);var r=ve,n=Rr;ve=t,Rr=!0;try{(e&Mn)!==0?w1(t):ti(t),ei(t);var a=hi(t);t.teardown=typeof a=="function"?a:null,t.wv=ci;var o;Ro&&f1&&(t.f&Yt)!==0&&t.deps}finally{Rr=n,ve=r}}}function D1(){try{d1()}catch(t){if(cn!==null)li(t,cn);else throw t}}function mi(){var t=Rr;try{var e=0;for(Rr=!0;gn.length>0;){e++>1e3&&D1();var r=gn,n=r.length;gn=[];for(var a=0;a<n;a++){var o=R1(r[a]);L1(o)}on.clear()}}finally{un=!1,Rr=t,cn=null}}function L1(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];(n.f&(xa|er))===0&&qr(n)&&($n(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?ni(n):n.fn=null))}}function On(t){un||(un=!0,queueMicrotask(mi));for(var e=cn=t;e.parent!==null;){e=e.parent;var r=e.f;if((r&(Nr|Qt))!==0){if((r&at)===0)return;e.f^=at}}gn.push(e)}function R1(t){for(var e=[],r=t;r!==null;){var n=r.f,a=(n&(Qt|Nr))!==0,o=a&&(n&at)!==0;if(!o&&(n&er)===0){(n&To)!==0?e.push(r):a?r.f^=at:qr(r)&&$n(r);var i=r.first;if(i!==null){r=i;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)r=d.next,d=d.parent}return e}function We(t){for(var e;;){if(k1(),gn.length===0)return un=!1,cn=null,e;un=!0,mi()}}async function vi(){await Promise.resolve(),We()}function u(t){var e=t.f,r=(e&Rt)!==0;if(De!==null&&!Ut){if(!(it!=null&&it.includes(t))){var n=De.deps;t.rv<Sn&&(t.rv=Sn,dt===null&&n!==null&&n[bt]===t?bt++:dt===null?dt=[t]:(!hr||!dt.includes(t))&&dt.push(t))}}else if(r&&t.deps===null&&t.effects===null){var a=t,o=a.parent;o!==null&&(o.f&vt)===0&&(a.f^=vt)}return r&&(a=t,qr(a)&&Vo(a)),Xr&&on.has(t)?on.get(t):t.v}function _t(t){var e=Ut;try{return Ut=!0,t()}finally{Ut=e}}const E1=-7169;function xt(t,e){t.f=t.f&E1|e}function mr(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Vt in t)Fa(t);else if(!Array.isArray(t))for(let e in t){const r=t[e];typeof r=="object"&&r&&Vt in r&&Fa(r)}}}function Fa(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let n in t)try{Fa(t[n],e)}catch{}const r=wa(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=Eo(r);for(let a in n){const o=n[a].get;if(o)try{o.call(t)}catch{}}}}}function F1(t,e){if(e){const r=document.body;t.autofocus=!0,_r(()=>{document.activeElement===r&&t.focus()})}}let pi=!1;function bi(){pi||(pi=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const r of t.target.elements)(e=r.__on_r)==null||e.call(r)})},{capture:!0}))}function Sa(t){var e=De,r=ve;gt(null),wt(null);try{return t()}finally{gt(e),wt(r)}}function Ci(t,e,r,n=r){t.addEventListener(e,()=>Sa(r));const a=t.__on_r;a?t.__on_r=()=>{a(),n(!0)}:t.__on_r=()=>n(!0),bi()}const yi=new Set,Ta=new Set;function Ai(t,e,r,n={}){function a(o){if(n.capture||fn.call(e,o),!o.cancelBubble)return Sa(()=>r==null?void 0:r.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?_r(()=>{e.addEventListener(t,a,n)}):e.addEventListener(t,a,n),a}function Ct(t,e,r,n,a){var o={capture:n,passive:a},i=Ai(t,e,r,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ra(()=>{e.removeEventListener(t,i,o)})}function Jr(t){for(var e=0;e<t.length;e++)yi.add(t[e]);for(var r of Ta)r(t)}function fn(t){var x;var e=this,r=e.ownerDocument,n=t.type,a=((x=t.composedPath)==null?void 0:x.call(t))||[],o=a[0]||t.target,i=0,d=t.__root;if(d){var l=a.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var s=a.indexOf(e);if(s===-1)return;l<=s&&(i=l)}if(o=a[i]||t.target,o!==e){kn(t,"currentTarget",{configurable:!0,get(){return o||r}});var f=De,g=ve;gt(null),wt(null);try{for(var c,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var v=o["__"+n];if(v!=null&&(!o.disabled||t.target===o))if(jr(v)){var[p,...C]=v;p.apply(o,[t,...C])}else v.call(o,t)}catch(w){c?m.push(w):c=w}if(t.cancelBubble||h===e||h===null)break;o=h}if(c){for(let w of m)queueMicrotask(()=>{throw w});throw c}}finally{t.__root=e,delete t.currentTarget,gt(f),wt(g)}}}function $a(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function ft(t,e){var r=ve;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function F(t,e){var r=(e&Lo)!==0,n=(e&Ud)!==0,a,o=!t.startsWith("<!>");return()=>{if(q)return ft(ge,null),ge;a===void 0&&(a=$a(o?t:"<!>"+t),r||(a=Je(a)));var i=n||_o?document.importNode(a,!0):a.cloneNode(!0);if(r){var d=Je(i),l=i.lastChild;ft(d,l)}else ft(i,i);return i}}function S1(t,e,r="svg"){var n=!t.startsWith("<!>"),a=(e&Lo)!==0,o=`<${r}>${n?t:"<!>"+t}</${r}>`,i;return()=>{if(q)return ft(ge,null),ge;if(!i){var d=$a(o),l=Je(d);if(a)for(i=document.createDocumentFragment();Je(l);)i.appendChild(Je(l));else i=Je(l)}var s=i.cloneNode(!0);if(a){var f=Je(s),g=s.lastChild;ft(f,g)}else ft(s,s);return s}}function Xt(t,e){return S1(t,e,"svg")}function qt(t=""){if(!q){var e=tr(t+"");return ft(e,e),e}var r=ge;return r.nodeType!==3&&(r.before(r=tr()),tt(r)),ft(r,r),r}function Ie(){if(q)return ft(ge,null),ge;var t=document.createDocumentFragment(),e=document.createComment(""),r=tr();return t.append(e,r),ft(e,r),t}function y(t,e){if(q){ve.nodes_end=ge,Zt();return}t!==null&&t.before(e)}function T1(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const $1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function O1(t){return $1.includes(t)}const G1={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function B1(t){return t=t.toLowerCase(),G1[t]??t}const z1=["touchstart","touchmove"];function j1(t){return z1.includes(t)}const Y1=["textarea","script","style","title"];function V1(t){return Y1.includes(t)}let Gn=!0;function wi(t){Gn=t}function _(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r+"")}function Ii(t,e){return xi(t,e)}function Z1(t,e){La(),e.intro=e.intro??!1;const r=e.target,n=q,a=ge;try{for(var o=Je(r);o&&(o.nodeType!==8||o.data!==Ca);)o=Ht(o);if(!o)throw kr;ot(!0),tt(o),Zt();const i=xi(t,{...e,anchor:o});if(ge===null||ge.nodeType!==8||ge.data!==ya)throw dn(),kr;return ot(!1),i}catch(i){if(i===kr)return e.recover===!1&&l1(),La(),Jo(r),ot(!1),Ii(t,e);throw i}finally{ot(n),tt(a)}}const Kr=new Map;function xi(t,{target:e,anchor:r,props:n={},events:a,context:o,intro:i=!0}){La();var d=new Set,l=g=>{for(var c=0;c<g.length;c++){var m=g[c];if(!d.has(m)){d.add(m);var h=j1(m);e.addEventListener(m,fn,{passive:h});var v=Kr.get(m);v===void 0?(document.addEventListener(m,fn,{passive:h}),Kr.set(m,1)):Kr.set(m,v+1)}}};l(Aa(yi)),Ta.add(l);var s=void 0,f=A1(()=>{var g=r??e.appendChild(tr());return pt(()=>{if(o){Ce({});var c=Fe;c.c=o}a&&(n.$$events=a),q&&ft(g,null),Gn=i,s=t(g,n)||{},Gn=!0,q&&(ve.nodes_end=ge),o&&ye()}),()=>{var h;for(var c of d){e.removeEventListener(c,fn);var m=Kr.get(c);--m===0?(document.removeEventListener(c,fn),Kr.delete(c)):Kr.set(c,m)}Ta.delete(l),g!==r&&((h=g.parentNode)==null||h.removeChild(g))}});return Oa.set(s,f),s}let Oa=new WeakMap;function W1(t,e){const r=Oa.get(t);return r?(Oa.delete(t),r(e)):Promise.resolve()}function Er(t,e,...r){var n=t,a=Vr,o;cr(()=>{a!==(a=e())&&(o&&(ct(o),o=null),o=pt(()=>a(n,...r)))},Zr),q&&(n=ge)}function H1(t){Fe===null&&Bo(),Wr&&Fe.l!==null?X1(Fe).m.push(t):Dr(()=>{const e=_t(t);if(typeof e=="function")return e})}function U1(t,e,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:e,bubbles:r,cancelable:n})}function _1(){const t=Fe;return t===null&&Bo(),(e,r,n)=>{var o;const a=(o=t.s.$$events)==null?void 0:o[e];if(a){const i=jr(a)?a.slice():[a],d=U1(e,r,n);for(const l of i)l.call(t.x,d);return!d.defaultPrevented}return!0}}function X1(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Ga=0,Bn=1,Ba=2;function Ft(t,e,r,n,a){q&&Zt();var o=t,i=Hr(),d=Fe,l=et,s,f,g,c=(i?sr:ur)(void 0),m=(i?sr:ur)(void 0),h=!1;function v(C,x){h=!0,x&&(wt(p),gt(p),Rn(d));try{C===Ga&&r&&(s?fr(s):s=pt(()=>r(o))),C===Bn&&n&&(f?fr(f):f=pt(()=>n(o,c))),C===Ba&&a&&(g?fr(g):g=pt(()=>a(o,m))),C!==Ga&&s&&gr(s,()=>s=null),C!==Bn&&f&&gr(f,()=>f=null),C!==Ba&&g&&gr(g,()=>g=null)}finally{x&&(Rn(null),gt(null),wt(null),We())}}var p=cr(()=>{if(l===(l=e()))return;let C=q&&So(l)===(o.data===In);if(C&&(o=En(),tt(o),ot(!1),C=!0),So(l)){var x=l;h=!1,x.then(w=>{x===l&&(Ur(c,w),v(Bn,!0))},w=>{if(x===l&&(Ur(m,w),v(Ba,!0),!a))throw m.v}),q?r&&(s=pt(()=>r(o))):_r(()=>{h||v(Ga,!0)})}else Ur(c,l),v(Bn,!1);return C&&ot(!0),()=>l=et});q&&(o=ge)}function j(t,e,[r,n]=[0,0]){q&&r===0&&Zt();var a=t,o=null,i=null,d=et,l=r>0?Zr:0,s=!1;const f=(c,m=!0)=>{s=!0,g(m,c)},g=(c,m)=>{if(d===(d=c))return;let h=!1;if(q&&n!==-1){if(r===0){const p=Ho(a);p===Ca?n=0:p===In?n=1/0:(n=parseInt(p.substring(1)),n!==n&&(n=d?1/0:-1))}const v=n>r;!!d===v&&(a=En(),tt(a),ot(!1),h=!0,n=-1)}d?(o?fr(o):m&&(o=pt(()=>m(a))),i&&gr(i,()=>{i=null})):(i?fr(i):m&&(i=pt(()=>m(a,[r+1,n]))),o&&gr(o,()=>{o=null})),h&&ot(!0)};cr(()=>{s=!1,e(f),s||g(null,null)},l),q&&(a=ge)}function zn(t,e){return e}function q1(t,e,r,n){for(var a=[],o=e.length,i=0;i<o;i++)Ea(e[i].e,a,!0);var d=o>0&&a.length===0&&r!==null;if(d){var l=r.parentNode;Jo(l),l.append(r),n.clear(),vr(t,e[0].prev,e[o-1].next)}ai(a,()=>{for(var s=0;s<o;s++){var f=e[s];d||(n.delete(f.k),vr(t,f.prev,f.next)),ct(f.e,!d)}})}function Fr(t,e,r,n,a,o=null){var i=t,d={flags:e,items:new Map,first:null},l=(e&Mo)!==0;if(l){var s=t;i=q?tt(Je(s)):s.appendChild(tr())}q&&Zt();var f=null,g=!1,c=lr(()=>{var m=r();return jr(m)?m:m==null?[]:Aa(m)});cr(()=>{var m=u(c),h=m.length;if(g&&h===0)return;g=h===0;let v=!1;if(q){var p=Ho(i)===In;p!==(h===0)&&(i=En(),tt(i),ot(!1),v=!0)}if(q){for(var C=null,x,w=0;w<h;w++){if(ge.nodeType===8&&ge.data===ya){i=ge,v=!0,ot(!1);break}var A=m[w],I=n(A,w);x=ki(ge,d,C,null,A,I,w,a,e,r),d.items.set(I,x),C=x}h>0&&tt(En())}q||J1(m,d,i,a,e,n,r),o!==null&&(h===0?f?fr(f):f=pt(()=>o(i)):f!==null&&gr(f,()=>{f=null})),v&&ot(!0),u(c)}),q&&(i=ge)}function J1(t,e,r,n,a,o,i){var de,G,z,T;var d=(a&zd)!==0,l=(a&(zr|ba))!==0,s=t.length,f=e.items,g=e.first,c=g,m,h=null,v,p=[],C=[],x,w,A,I;if(d)for(I=0;I<s;I+=1)x=t[I],w=o(x,I),A=f.get(w),A!==void 0&&((de=A.a)==null||de.measure(),(v??(v=new Set)).add(A));for(I=0;I<s;I+=1){if(x=t[I],w=o(x,I),A=f.get(w),A===void 0){var M=c?c.e.nodes_start:r;h=ki(M,e,h,h===null?e.first:h.next,x,w,I,n,a,i),f.set(w,h),p=[],C=[],c=h.next;continue}if(l&&K1(A,x,I,a),(A.e.f&er)!==0&&(fr(A.e),d&&((G=A.a)==null||G.unfix(),(v??(v=new Set)).delete(A))),A!==c){if(m!==void 0&&m.has(A)){if(p.length<C.length){var E=C[0],b;h=E.prev;var D=p[0],W=p[p.length-1];for(b=0;b<p.length;b+=1)Ni(p[b],E,r);for(b=0;b<C.length;b+=1)m.delete(C[b]);vr(e,D.prev,W.next),vr(e,h,D),vr(e,W,E),c=E,h=W,I-=1,p=[],C=[]}else m.delete(A),Ni(A,c,r),vr(e,A.prev,A.next),vr(e,A,h===null?e.first:h.next),vr(e,h,A),h=A;continue}for(p=[],C=[];c!==null&&c.k!==w;)(c.e.f&er)===0&&(m??(m=new Set)).add(c),C.push(c),c=c.next;if(c===null)continue;A=c}p.push(A),h=A,c=A.next}if(c!==null||m!==void 0){for(var K=m===void 0?[]:Aa(m);c!==null;)(c.e.f&er)===0&&K.push(c),c=c.next;var X=K.length;if(X>0){var ae=(a&Mo)!==0&&s===0?r:null;if(d){for(I=0;I<X;I+=1)(z=K[I].a)==null||z.measure();for(I=0;I<X;I+=1)(T=K[I].a)==null||T.fix()}q1(e,K,ae,f)}}d&&_r(()=>{var Q;if(v!==void 0)for(A of v)(Q=A.a)==null||Q.apply()}),ve.first=e.first&&e.first.e,ve.last=h&&h.e}function K1(t,e,r,n){(n&zr)!==0&&Ur(t.v,e),(n&ba)!==0?Ur(t.i,r):t.i=r}function ki(t,e,r,n,a,o,i,d,l,s){var f=(l&zr)!==0,g=(l&jd)===0,c=f?g?ur(a):sr(a):a,m=(l&ba)===0?i:sr(i),h={i:m,v:c,k:o,a:null,e:null,prev:r,next:n};try{return h.e=pt(()=>d(t,c,m,s),q),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?e.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function Ni(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,a=e?e.e.nodes_start:r,o=t.e.nodes_start;o!==n;){var i=Ht(o);a.before(o),o=i}}function vr(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function pr(t,e,r=!1,n=!1,a=!1){var o=t,i="";B(()=>{var d=ve;if(i===(i=e()??"")){q&&Zt();return}if(d.nodes_start!==null&&(ri(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),i!==""){if(q){ge.data;for(var l=Zt(),s=l;l!==null&&(l.nodeType!==8||l.data!=="");)s=l,l=Ht(l);if(l===null)throw dn(),kr;ft(ge,s),o=tt(l);return}var f=i+"";r?f=`<svg>${f}</svg>`:n&&(f=`<math>${f}</math>`);var g=$a(f);if((r||n)&&(g=Je(g)),ft(Je(g),g.lastChild),r||n)for(;Je(g);)o.before(Je(g));else o.before(g)}})}function lt(t,e,r,n,a){var d;q&&Zt();var o=(d=e.$$slots)==null?void 0:d[r],i=!1;o===!0&&(o=e[r==="default"?"children":r],i=!0),o===void 0?a!==null&&a(t):o(t,i?()=>n:n)}function jn(t,e,r,n,a,o){let i=q;q&&Zt();var d,l,s=null;q&&ge.nodeType===1&&(s=ge,Zt());var f=q?ge:t,g;cr(()=>{const c=e()||null;var m=c==="svg"?Xd:null;c!==d&&(g&&(c===null?gr(g,()=>{g=null,l=null}):c===l?fr(g):(ct(g),wi(!1))),c&&c!==l&&(g=pt(()=>{if(s=q?s:m?document.createElementNS(m,c):document.createElement(c),ft(s,s),n){q&&V1(c)&&s.append(document.createComment(""));var h=q?Je(s):s.appendChild(tr());q&&(h===null?ot(!1):tt(h)),n(s,h)}ve.nodes_end=s,f.before(s)})),d=c,d&&(l=d),wi(!0))},Zr),i&&(ot(!0),tt(f))}function Q1(t,e,r){Xe(()=>{var n=_t(()=>e(t,r==null?void 0:r())||{});if(r&&(n!=null&&n.update)){var a=!1,o={};Lr(()=>{var i=r();mr(i),a&&Go(o,i)&&(o=i,n.update(i))}),a=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}function e2(t,e){var r=void 0,n;cr(()=>{r!==(r=e())&&(n&&(ct(n),n=null),r&&(n=pt(()=>{Xe(()=>r(t))})))})}function Pi(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(r=Pi(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function t2(){for(var t,e,r=0,n="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=Pi(t))&&(n&&(n+=" "),n+=e);return n}function Ne(t){return typeof t=="object"?t2(t):t??""}const Mi=[...`
|
|
1
|
+
(function(me,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(me=typeof globalThis<"u"?globalThis:me||self,Ee(me["@sesamy/sesamy-components"]={}))})(this,(function(me){"use strict";var e5=Object.defineProperty;var Gd=me=>{throw TypeError(me)};var t5=(me,Ee,Qe)=>Ee in me?e5(me,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):me[Ee]=Qe;var zt=(me,Ee,Qe)=>t5(me,typeof Ee!="symbol"?Ee+"":Ee,Qe),Bd=(me,Ee,Qe)=>Ee.has(me)||Gd("Cannot "+Qe);var mt=(me,Ee,Qe)=>(Bd(me,Ee,"read from private field"),Qe?Qe.call(me):Ee.get(me)),No=(me,Ee,Qe)=>Ee.has(me)?Gd("Cannot add the same private member more than once"):Ee instanceof WeakSet?Ee.add(me):Ee.set(me,Qe),Po=(me,Ee,Qe,zr)=>(Bd(me,Ee,"write to private field"),zr?zr.call(me,Qe):Ee.set(me,Qe),Qe);var $d,ir,Pt;const Ee="2.21.12";typeof window<"u"&&(($d=window.__svelte??(window.__svelte={})).v??($d.v=new Set)).add("5");const zr=1,ba=2,Mo=4,zd=8,jd=16,Yd=1,Vd=2,Do=4,Zd=8,Wd=16,Hd=4,Lo=1,Ud=2,Ca="[",In="[!",ya="]",kr={},et=Symbol(),_d="http://www.w3.org/1999/xhtml",Xd="http://www.w3.org/2000/svg",qd="@attach",Ro=!1;var jr=Array.isArray,Jd=Array.prototype.indexOf,Aa=Array.from,xn=Object.keys,kn=Object.defineProperty,jt=Object.getOwnPropertyDescriptor,Eo=Object.getOwnPropertyDescriptors,Kd=Object.prototype,Qd=Array.prototype,wa=Object.getPrototypeOf,Fo=Object.isExtensible;function Yr(t){return typeof t=="function"}const Vr=()=>{};function So(t){return typeof(t==null?void 0:t.then)=="function"}function e1(t){return t()}function Nn(t){for(var e=0;e<t.length;e++)t[e]()}const Rt=2,To=4,Pn=8,Mn=16,Qt=32,Nr=64,Ia=128,vt=256,Dn=512,at=1024,Yt=2048,dr=4096,er=8192,xa=16384,ka=32768,Zr=65536,t1=1<<17,r1=1<<19,$o=1<<20,Na=1<<21,Vt=Symbol("$state"),Pa=Symbol("legacy props"),n1=Symbol("");function Oo(t){return t===this.v}function Go(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ma(t){return!Go(t,this.v)}function a1(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function o1(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function i1(t){throw new Error("https://svelte.dev/e/effect_orphan")}function d1(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function l1(){throw new Error("https://svelte.dev/e/hydration_failed")}function s1(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function u1(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function c1(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function g1(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Wr=!1,f1=!1;function h1(){Wr=!0}function Ln(){throw new Error("https://svelte.dev/e/invalid_default_snippet")}function Bo(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let Fe=null;function Rn(t){Fe=t}function Ce(t,e=!1,r){var n=Fe={p:Fe,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Wr&&!e&&(Fe.l={s:null,u:null,r1:[],r2:sr(!1)}),Ra(()=>{n.d=!0})}function ye(t){const e=Fe;if(e!==null){t!==void 0&&(e.x=t);const i=e.e;if(i!==null){var r=ve,n=De;e.e=null;try{for(var a=0;a<i.length;a++){var o=i[a];wt(o.effect),gt(o.reaction),Xe(o.fn)}}finally{wt(r),gt(n)}}Fe=e.p,e.m=!0}return t||{}}function Hr(){return!Wr||Fe!==null&&Fe.l===null}function Et(t){if(typeof t!="object"||t===null||Vt in t)return t;const e=wa(t);if(e!==Kd&&e!==Qd)return t;var r=new Map,n=jr(t),a=ne(0),o=De,i=d=>{var l=De;gt(o);var s=d();return gt(l),s};return n&&r.set("length",ne(t.length)),new Proxy(t,{defineProperty(d,l,s){return(!("value"in s)||s.configurable===!1||s.enumerable===!1||s.writable===!1)&&u1(),i(()=>{var f=r.get(l);f===void 0?(f=ne(s.value),r.set(l,f)):S(f,s.value,!0)}),!0},deleteProperty(d,l){var s=r.get(l);if(s===void 0){if(l in d){const c=i(()=>ne(et));r.set(l,c),Da(a)}}else{if(n&&typeof l=="string"){var f=r.get("length"),g=Number(l);Number.isInteger(g)&&g<f.v&&S(f,g)}S(s,et),Da(a)}return!0},get(d,l,s){var m;if(l===Vt)return t;var f=r.get(l),g=l in d;if(f===void 0&&(!g||(m=jt(d,l))!=null&&m.writable)&&(f=i(()=>{var h=Et(g?d[l]:et),v=ne(h);return v}),r.set(l,f)),f!==void 0){var c=u(f);return c===et?void 0:c}return Reflect.get(d,l,s)},getOwnPropertyDescriptor(d,l){var s=Reflect.getOwnPropertyDescriptor(d,l);if(s&&"value"in s){var f=r.get(l);f&&(s.value=u(f))}else if(s===void 0){var g=r.get(l),c=g==null?void 0:g.v;if(g!==void 0&&c!==et)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return s},has(d,l){var c;if(l===Vt)return!0;var s=r.get(l),f=s!==void 0&&s.v!==et||Reflect.has(d,l);if(s!==void 0||ve!==null&&(!f||(c=jt(d,l))!=null&&c.writable)){s===void 0&&(s=i(()=>{var m=f?Et(d[l]):et,h=ne(m);return h}),r.set(l,s));var g=u(s);if(g===et)return!1}return f},set(d,l,s,f){var w;var g=r.get(l),c=l in d;if(n&&l==="length")for(var m=s;m<g.v;m+=1){var h=r.get(m+"");h!==void 0?S(h,et):m in d&&(h=i(()=>ne(et)),r.set(m+"",h))}if(g===void 0)(!c||(w=jt(d,l))!=null&&w.writable)&&(g=i(()=>{var A=ne(void 0);return S(A,Et(s)),A}),r.set(l,g));else{c=g.v!==et;var v=i(()=>Et(s));S(g,v)}var p=Reflect.getOwnPropertyDescriptor(d,l);if(p!=null&&p.set&&p.set.call(f,s),!c){if(n&&typeof l=="string"){var C=r.get("length"),x=Number(l);Number.isInteger(x)&&x>=C.v&&S(C,x+1)}Da(a)}return!0},ownKeys(d){u(a);var l=Reflect.ownKeys(d).filter(g=>{var c=r.get(g);return c===void 0||c.v!==et});for(var[s,f]of r)f.v!==et&&!(s in d)&&l.push(s);return l},setPrototypeOf(){c1()}})}function Da(t,e=1){S(t,t.v+e)}function zo(t){try{if(t!==null&&typeof t=="object"&&Vt in t)return t[Vt]}catch{}return t}function m1(t,e){return Object.is(zo(t),zo(e))}function Pr(t){var e=Rt|Yt,r=De!==null&&(De.f&Rt)!==0?De:null;return ve===null||r!==null&&(r.f&vt)!==0?e|=vt:ve.f|=$o,{ctx:Fe,deps:null,effects:null,equals:Oo,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:r??ve}}function H(t){const e=Pr(t);return ui(e),e}function lr(t){const e=Pr(t);return e.equals=Ma,e}function jo(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)ct(e[r])}}function v1(t){for(var e=t.parent;e!==null;){if((e.f&Rt)===0)return e;e=e.parent}return null}function Yo(t){var e,r=ve;wt(v1(t));try{jo(t),e=hi(t)}finally{wt(r)}return e}function Vo(t){var e=Yo(t);if(t.equals(e)||(t.v=e,t.wv=gi()),!Xr){var r=(hr||(t.f&vt)!==0)&&t.deps!==null?dr:at;xt(t,r)}}const on=new Map;function sr(t,e){var r={f:0,v:t,reactions:null,equals:Oo,rv:0,wv:0};return r}function ne(t,e){const r=sr(t);return ui(r),r}function ur(t,e=!1){var n;const r=sr(t);return e||(r.equals=Ma),Wr&&Fe!==null&&Fe.l!==null&&((n=Fe.l).s??(n.s=[])).push(r),r}function S(t,e,r=!1){De!==null&&!Ut&&Hr()&&(De.f&(Rt|Mn))!==0&&!(it!=null&&it.includes(t))&&g1();let n=r?Et(e):e;return Ur(t,n)}function Ur(t,e){if(!t.equals(e)){var r=t.v;Xr?on.set(t,e):on.set(t,r),t.v=e,(t.f&Rt)!==0&&((t.f&Yt)!==0&&Yo(t),xt(t,(t.f&vt)===0?at:dr)),t.wv=gi(),Wo(t,Yt),Hr()&&ve!==null&&(ve.f&at)!==0&&(ve.f&(Qt|Nr))===0&&(It===null?P1([t]):It.push(t))}return e}function Zo(t,e=1){var r=u(t),n=e===1?r++:r--;return S(t,r),n}function Wo(t,e){var r=t.reactions;if(r!==null)for(var n=Hr(),a=r.length,o=0;o<a;o++){var i=r[o],d=i.f;(d&Yt)===0&&(!n&&i===ve||(xt(i,e),(d&(at|vt))!==0&&((d&Rt)!==0?Wo(i,dr):On(i))))}}function dn(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function p1(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let q=!1;function ot(t){q=t}let ge;function tt(t){if(t===null)throw dn(),kr;return ge=t}function Zt(){return tt(Ht(ge))}function P(t){if(q){if(Ht(ge)!==null)throw dn(),kr;ge=t}}function Wt(t=1){if(q){for(var e=t,r=ge;e--;)r=Ht(r);ge=r}}function En(){for(var t=0,e=ge;;){if(e.nodeType===8){var r=e.data;if(r===ya){if(t===0)return e;t-=1}else(r===Ca||r===In)&&(t+=1)}var n=Ht(e);e.remove(),e=n}}function Ho(t){if(!t||t.nodeType!==8)throw dn(),kr;return t.data}var Uo,_o,Xo,qo;function La(){if(Uo===void 0){Uo=window,_o=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Xo=jt(e,"firstChild").get,qo=jt(e,"nextSibling").get,Fo(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Fo(r)&&(r.__t=void 0)}}function tr(t=""){return document.createTextNode(t)}function Je(t){return Xo.call(t)}function Ht(t){return qo.call(t)}function L(t,e){if(!q)return Je(t);var r=Je(ge);if(r===null)r=ge.appendChild(tr());else if(e&&r.nodeType!==3){var n=tr();return r==null||r.before(n),tt(n),n}return tt(r),r}function Y(t,e){if(!q){var r=Je(t);return r instanceof Comment&&r.data===""?Ht(r):r}return ge}function N(t,e=1,r=!1){let n=q?ge:t;for(var a;e--;)a=n,n=Ht(n);if(!q)return n;var o=n==null?void 0:n.nodeType;if(r&&o!==3){var i=tr();return n===null?a==null||a.after(i):n.before(i),tt(i),i}return tt(n),n}function Jo(t){t.textContent=""}function Ko(t){ve===null&&De===null&&i1(),De!==null&&(De.f&vt)!==0&&ve===null&&o1(),Xr&&a1()}function b1(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function Mr(t,e,r,n=!0){var a=ve,o={ctx:Fe,deps:null,nodes_start:null,nodes_end:null,f:t|Yt,first:null,fn:e,last:null,next:null,parent:a,prev:null,teardown:null,transitions:null,wv:0};if(r)try{$n(o),o.f|=ka}catch(l){throw ct(o),l}else e!==null&&On(o);var i=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&($o|Ia))===0;if(!i&&n&&(a!==null&&b1(o,a),De!==null&&(De.f&Rt)!==0)){var d=De;(d.effects??(d.effects=[])).push(o)}return o}function Ra(t){const e=Mr(Pn,null,!1);return xt(e,at),e.teardown=t,e}function Dr(t){Ko();var e=ve!==null&&(ve.f&Qt)!==0&&Fe!==null&&!Fe.m;if(e){var r=Fe;(r.e??(r.e=[])).push({fn:t,effect:ve,reaction:De})}else{var n=Xe(t);return n}}function C1(t){return Ko(),Lr(t)}function y1(t){const e=Mr(Nr,t,!0);return()=>{ct(e)}}function A1(t){const e=Mr(Nr,t,!0);return(r={})=>new Promise(n=>{r.outro?gr(e,()=>{ct(e),n(void 0)}):(ct(e),n(void 0))})}function Xe(t){return Mr(To,t,!1)}function Fn(t,e){var r=Fe,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=Lr(()=>{t(),!n.ran&&(n.ran=!0,S(r.l.r2,!0),_t(e))})}function Qo(){var t=Fe;Lr(()=>{if(u(t.l.r2)){for(var e of t.l.r1){var r=e.effect;(r.f&at)!==0&&xt(r,dr),qr(r)&&$n(r),e.ran=!1}t.l.r2.v=!1}})}function Lr(t){return Mr(Pn,t,!0)}function B(t,e=[],r=Pr){const n=e.map(r);return cr(()=>t(...n.map(u)))}function cr(t,e=0){return Mr(Pn|Mn|e,t,!0)}function pt(t,e=!0){return Mr(Pn|Qt,t,!0,e)}function ei(t){var e=t.teardown;if(e!==null){const r=Xr,n=De;si(!0),gt(null);try{e.call(null)}finally{si(r),gt(n)}}}function ti(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;(r.f&Nr)!==0?r.parent=null:ct(r,e),r=n}}function w1(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Qt)===0&&ct(e),e=r}}function ct(t,e=!0){var r=!1;(e||(t.f&r1)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(ri(t.nodes_start,t.nodes_end),r=!0),ti(t,e&&!r),Tn(t,0),xt(t,xa);var n=t.transitions;if(n!==null)for(const o of n)o.stop();ei(t);var a=t.parent;a!==null&&a.first!==null&&ni(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function ri(t,e){for(;t!==null;){var r=t===e?null:Ht(t);t.remove(),t=r}}function ni(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function gr(t,e){var r=[];Ea(t,r,!0),ai(r,()=>{ct(t),e&&e()})}function ai(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var a of t)a.out(n)}else e()}function Ea(t,e,r){if((t.f&er)===0){if(t.f^=er,t.transitions!==null)for(const i of t.transitions)(i.is_global||r)&&e.push(i);for(var n=t.first;n!==null;){var a=n.next,o=(n.f&Zr)!==0||(n.f&Qt)!==0;Ea(n,e,o?r:!1),n=a}}}function fr(t){oi(t,!0)}function oi(t,e){if((t.f&er)!==0){t.f^=er,(t.f&at)===0&&(t.f^=at),qr(t)&&(xt(t,Yt),On(t));for(var r=t.first;r!==null;){var n=r.next,a=(r.f&Zr)!==0||(r.f&Qt)!==0;oi(r,a?e:!1),r=n}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||e)&&o.in()}}const I1=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let ln=[],sn=[];function ii(){var t=ln;ln=[],Nn(t)}function di(){var t=sn;sn=[],Nn(t)}function _r(t){ln.length===0&&queueMicrotask(ii),ln.push(t)}function x1(t){sn.length===0&&I1(di),sn.push(t)}function k1(){ln.length>0&&ii(),sn.length>0&&di()}function N1(t){var e=ve;if((e.f&ka)===0){if((e.f&Ia)===0)throw t;e.fn(t)}else li(t,e)}function li(t,e){for(;e!==null;){if((e.f&Ia)!==0)try{e.fn(t);return}catch{}e=e.parent}throw t}let un=!1,cn=null,Rr=!1,Xr=!1;function si(t){Xr=t}let gn=[],r5=[],De=null,Ut=!1;function gt(t){De=t}let ve=null;function wt(t){ve=t}let it=null;function ui(t){De!==null&&De.f&Na&&(it===null?it=[t]:it.push(t))}let dt=null,bt=0,It=null;function P1(t){It=t}let ci=1,Sn=0,hr=!1;function gi(){return++ci}function qr(t){var g;var e=t.f;if((e&Yt)!==0)return!0;if((e&dr)!==0){var r=t.deps,n=(e&vt)!==0;if(r!==null){var a,o,i=(e&Dn)!==0,d=n&&ve!==null&&!hr,l=r.length;if(i||d){var s=t,f=s.parent;for(a=0;a<l;a++)o=r[a],(i||!((g=o==null?void 0:o.reactions)!=null&&g.includes(s)))&&(o.reactions??(o.reactions=[])).push(s);i&&(s.f^=Dn),d&&f!==null&&(f.f&vt)===0&&(s.f^=vt)}for(a=0;a<l;a++)if(o=r[a],qr(o)&&Vo(o),o.wv>t.wv)return!0}(!n||ve!==null&&!hr)&&xt(t,at)}return!1}function fi(t,e,r=!0){var n=t.reactions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];it!=null&&it.includes(t)||((o.f&Rt)!==0?fi(o,e,!1):e===o&&(r?xt(o,Yt):(o.f&at)!==0&&xt(o,dr),On(o)))}}function hi(t){var m;var e=dt,r=bt,n=It,a=De,o=hr,i=it,d=Fe,l=Ut,s=t.f;dt=null,bt=0,It=null,hr=(s&vt)!==0&&(Ut||!Rr||De===null),De=(s&(Qt|Nr))===0?t:null,it=null,Rn(t.ctx),Ut=!1,Sn++,t.f|=Na;try{var f=(0,t.fn)(),g=t.deps;if(dt!==null){var c;if(Tn(t,bt),g!==null&&bt>0)for(g.length=bt+dt.length,c=0;c<dt.length;c++)g[bt+c]=dt[c];else t.deps=g=dt;if(!hr)for(c=bt;c<g.length;c++)((m=g[c]).reactions??(m.reactions=[])).push(t)}else g!==null&&bt<g.length&&(Tn(t,bt),g.length=bt);if(Hr()&&It!==null&&!Ut&&g!==null&&(t.f&(Rt|dr|Yt))===0)for(c=0;c<It.length;c++)fi(It[c],t);return a!==null&&a!==t&&(Sn++,It!==null&&(n===null?n=It:n.push(...It))),f}catch(h){N1(h)}finally{dt=e,bt=r,It=n,De=a,hr=o,it=i,Rn(d),Ut=l,t.f^=Na}}function M1(t,e){let r=e.reactions;if(r!==null){var n=Jd.call(r,t);if(n!==-1){var a=r.length-1;a===0?r=e.reactions=null:(r[n]=r[a],r.pop())}}r===null&&(e.f&Rt)!==0&&(dt===null||!dt.includes(e))&&(xt(e,dr),(e.f&(vt|Dn))===0&&(e.f^=Dn),jo(e),Tn(e,0))}function Tn(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)M1(t,r[n])}function $n(t){var e=t.f;if((e&xa)===0){xt(t,at);var r=ve,n=Rr;ve=t,Rr=!0;try{(e&Mn)!==0?w1(t):ti(t),ei(t);var a=hi(t);t.teardown=typeof a=="function"?a:null,t.wv=ci;var o;Ro&&f1&&(t.f&Yt)!==0&&t.deps}finally{Rr=n,ve=r}}}function D1(){try{d1()}catch(t){if(cn!==null)li(t,cn);else throw t}}function mi(){var t=Rr;try{var e=0;for(Rr=!0;gn.length>0;){e++>1e3&&D1();var r=gn,n=r.length;gn=[];for(var a=0;a<n;a++){var o=R1(r[a]);L1(o)}on.clear()}}finally{un=!1,Rr=t,cn=null}}function L1(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];(n.f&(xa|er))===0&&qr(n)&&($n(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?ni(n):n.fn=null))}}function On(t){un||(un=!0,queueMicrotask(mi));for(var e=cn=t;e.parent!==null;){e=e.parent;var r=e.f;if((r&(Nr|Qt))!==0){if((r&at)===0)return;e.f^=at}}gn.push(e)}function R1(t){for(var e=[],r=t;r!==null;){var n=r.f,a=(n&(Qt|Nr))!==0,o=a&&(n&at)!==0;if(!o&&(n&er)===0){(n&To)!==0?e.push(r):a?r.f^=at:qr(r)&&$n(r);var i=r.first;if(i!==null){r=i;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)r=d.next,d=d.parent}return e}function We(t){for(var e;;){if(k1(),gn.length===0)return un=!1,cn=null,e;un=!0,mi()}}async function vi(){await Promise.resolve(),We()}function u(t){var e=t.f,r=(e&Rt)!==0;if(De!==null&&!Ut){if(!(it!=null&&it.includes(t))){var n=De.deps;t.rv<Sn&&(t.rv=Sn,dt===null&&n!==null&&n[bt]===t?bt++:dt===null?dt=[t]:(!hr||!dt.includes(t))&&dt.push(t))}}else if(r&&t.deps===null&&t.effects===null){var a=t,o=a.parent;o!==null&&(o.f&vt)===0&&(a.f^=vt)}return r&&(a=t,qr(a)&&Vo(a)),Xr&&on.has(t)?on.get(t):t.v}function _t(t){var e=Ut;try{return Ut=!0,t()}finally{Ut=e}}const E1=-7169;function xt(t,e){t.f=t.f&E1|e}function mr(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Vt in t)Fa(t);else if(!Array.isArray(t))for(let e in t){const r=t[e];typeof r=="object"&&r&&Vt in r&&Fa(r)}}}function Fa(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let n in t)try{Fa(t[n],e)}catch{}const r=wa(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=Eo(r);for(let a in n){const o=n[a].get;if(o)try{o.call(t)}catch{}}}}}function F1(t,e){if(e){const r=document.body;t.autofocus=!0,_r(()=>{document.activeElement===r&&t.focus()})}}let pi=!1;function bi(){pi||(pi=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const r of t.target.elements)(e=r.__on_r)==null||e.call(r)})},{capture:!0}))}function Sa(t){var e=De,r=ve;gt(null),wt(null);try{return t()}finally{gt(e),wt(r)}}function Ci(t,e,r,n=r){t.addEventListener(e,()=>Sa(r));const a=t.__on_r;a?t.__on_r=()=>{a(),n(!0)}:t.__on_r=()=>n(!0),bi()}const yi=new Set,Ta=new Set;function Ai(t,e,r,n={}){function a(o){if(n.capture||fn.call(e,o),!o.cancelBubble)return Sa(()=>r==null?void 0:r.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?_r(()=>{e.addEventListener(t,a,n)}):e.addEventListener(t,a,n),a}function Ct(t,e,r,n,a){var o={capture:n,passive:a},i=Ai(t,e,r,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ra(()=>{e.removeEventListener(t,i,o)})}function Jr(t){for(var e=0;e<t.length;e++)yi.add(t[e]);for(var r of Ta)r(t)}function fn(t){var x;var e=this,r=e.ownerDocument,n=t.type,a=((x=t.composedPath)==null?void 0:x.call(t))||[],o=a[0]||t.target,i=0,d=t.__root;if(d){var l=a.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var s=a.indexOf(e);if(s===-1)return;l<=s&&(i=l)}if(o=a[i]||t.target,o!==e){kn(t,"currentTarget",{configurable:!0,get(){return o||r}});var f=De,g=ve;gt(null),wt(null);try{for(var c,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var v=o["__"+n];if(v!=null&&(!o.disabled||t.target===o))if(jr(v)){var[p,...C]=v;p.apply(o,[t,...C])}else v.call(o,t)}catch(w){c?m.push(w):c=w}if(t.cancelBubble||h===e||h===null)break;o=h}if(c){for(let w of m)queueMicrotask(()=>{throw w});throw c}}finally{t.__root=e,delete t.currentTarget,gt(f),wt(g)}}}function $a(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function ft(t,e){var r=ve;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function F(t,e){var r=(e&Lo)!==0,n=(e&Ud)!==0,a,o=!t.startsWith("<!>");return()=>{if(q)return ft(ge,null),ge;a===void 0&&(a=$a(o?t:"<!>"+t),r||(a=Je(a)));var i=n||_o?document.importNode(a,!0):a.cloneNode(!0);if(r){var d=Je(i),l=i.lastChild;ft(d,l)}else ft(i,i);return i}}function S1(t,e,r="svg"){var n=!t.startsWith("<!>"),a=(e&Lo)!==0,o=`<${r}>${n?t:"<!>"+t}</${r}>`,i;return()=>{if(q)return ft(ge,null),ge;if(!i){var d=$a(o),l=Je(d);if(a)for(i=document.createDocumentFragment();Je(l);)i.appendChild(Je(l));else i=Je(l)}var s=i.cloneNode(!0);if(a){var f=Je(s),g=s.lastChild;ft(f,g)}else ft(s,s);return s}}function Xt(t,e){return S1(t,e,"svg")}function qt(t=""){if(!q){var e=tr(t+"");return ft(e,e),e}var r=ge;return r.nodeType!==3&&(r.before(r=tr()),tt(r)),ft(r,r),r}function Ie(){if(q)return ft(ge,null),ge;var t=document.createDocumentFragment(),e=document.createComment(""),r=tr();return t.append(e,r),ft(e,r),t}function y(t,e){if(q){ve.nodes_end=ge,Zt();return}t!==null&&t.before(e)}function T1(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const $1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function O1(t){return $1.includes(t)}const G1={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function B1(t){return t=t.toLowerCase(),G1[t]??t}const z1=["touchstart","touchmove"];function j1(t){return z1.includes(t)}const Y1=["textarea","script","style","title"];function V1(t){return Y1.includes(t)}let Gn=!0;function wi(t){Gn=t}function _(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r+"")}function Ii(t,e){return xi(t,e)}function Z1(t,e){La(),e.intro=e.intro??!1;const r=e.target,n=q,a=ge;try{for(var o=Je(r);o&&(o.nodeType!==8||o.data!==Ca);)o=Ht(o);if(!o)throw kr;ot(!0),tt(o),Zt();const i=xi(t,{...e,anchor:o});if(ge===null||ge.nodeType!==8||ge.data!==ya)throw dn(),kr;return ot(!1),i}catch(i){if(i===kr)return e.recover===!1&&l1(),La(),Jo(r),ot(!1),Ii(t,e);throw i}finally{ot(n),tt(a)}}const Kr=new Map;function xi(t,{target:e,anchor:r,props:n={},events:a,context:o,intro:i=!0}){La();var d=new Set,l=g=>{for(var c=0;c<g.length;c++){var m=g[c];if(!d.has(m)){d.add(m);var h=j1(m);e.addEventListener(m,fn,{passive:h});var v=Kr.get(m);v===void 0?(document.addEventListener(m,fn,{passive:h}),Kr.set(m,1)):Kr.set(m,v+1)}}};l(Aa(yi)),Ta.add(l);var s=void 0,f=A1(()=>{var g=r??e.appendChild(tr());return pt(()=>{if(o){Ce({});var c=Fe;c.c=o}a&&(n.$$events=a),q&&ft(g,null),Gn=i,s=t(g,n)||{},Gn=!0,q&&(ve.nodes_end=ge),o&&ye()}),()=>{var h;for(var c of d){e.removeEventListener(c,fn);var m=Kr.get(c);--m===0?(document.removeEventListener(c,fn),Kr.delete(c)):Kr.set(c,m)}Ta.delete(l),g!==r&&((h=g.parentNode)==null||h.removeChild(g))}});return Oa.set(s,f),s}let Oa=new WeakMap;function W1(t,e){const r=Oa.get(t);return r?(Oa.delete(t),r(e)):Promise.resolve()}function Er(t,e,...r){var n=t,a=Vr,o;cr(()=>{a!==(a=e())&&(o&&(ct(o),o=null),o=pt(()=>a(n,...r)))},Zr),q&&(n=ge)}function H1(t){Fe===null&&Bo(),Wr&&Fe.l!==null?X1(Fe).m.push(t):Dr(()=>{const e=_t(t);if(typeof e=="function")return e})}function U1(t,e,{bubbles:r=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:e,bubbles:r,cancelable:n})}function _1(){const t=Fe;return t===null&&Bo(),(e,r,n)=>{var o;const a=(o=t.s.$$events)==null?void 0:o[e];if(a){const i=jr(a)?a.slice():[a],d=U1(e,r,n);for(const l of i)l.call(t.x,d);return!d.defaultPrevented}return!0}}function X1(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Ga=0,Bn=1,Ba=2;function Ft(t,e,r,n,a){q&&Zt();var o=t,i=Hr(),d=Fe,l=et,s,f,g,c=(i?sr:ur)(void 0),m=(i?sr:ur)(void 0),h=!1;function v(C,x){h=!0,x&&(wt(p),gt(p),Rn(d));try{C===Ga&&r&&(s?fr(s):s=pt(()=>r(o))),C===Bn&&n&&(f?fr(f):f=pt(()=>n(o,c))),C===Ba&&a&&(g?fr(g):g=pt(()=>a(o,m))),C!==Ga&&s&&gr(s,()=>s=null),C!==Bn&&f&&gr(f,()=>f=null),C!==Ba&&g&&gr(g,()=>g=null)}finally{x&&(Rn(null),gt(null),wt(null),We())}}var p=cr(()=>{if(l===(l=e()))return;let C=q&&So(l)===(o.data===In);if(C&&(o=En(),tt(o),ot(!1),C=!0),So(l)){var x=l;h=!1,x.then(w=>{x===l&&(Ur(c,w),v(Bn,!0))},w=>{if(x===l&&(Ur(m,w),v(Ba,!0),!a))throw m.v}),q?r&&(s=pt(()=>r(o))):_r(()=>{h||v(Ga,!0)})}else Ur(c,l),v(Bn,!1);return C&&ot(!0),()=>l=et});q&&(o=ge)}function j(t,e,[r,n]=[0,0]){q&&r===0&&Zt();var a=t,o=null,i=null,d=et,l=r>0?Zr:0,s=!1;const f=(c,m=!0)=>{s=!0,g(m,c)},g=(c,m)=>{if(d===(d=c))return;let h=!1;if(q&&n!==-1){if(r===0){const p=Ho(a);p===Ca?n=0:p===In?n=1/0:(n=parseInt(p.substring(1)),n!==n&&(n=d?1/0:-1))}const v=n>r;!!d===v&&(a=En(),tt(a),ot(!1),h=!0,n=-1)}d?(o?fr(o):m&&(o=pt(()=>m(a))),i&&gr(i,()=>{i=null})):(i?fr(i):m&&(i=pt(()=>m(a,[r+1,n]))),o&&gr(o,()=>{o=null})),h&&ot(!0)};cr(()=>{s=!1,e(f),s||g(null,null)},l),q&&(a=ge)}function zn(t,e){return e}function q1(t,e,r,n){for(var a=[],o=e.length,i=0;i<o;i++)Ea(e[i].e,a,!0);var d=o>0&&a.length===0&&r!==null;if(d){var l=r.parentNode;Jo(l),l.append(r),n.clear(),vr(t,e[0].prev,e[o-1].next)}ai(a,()=>{for(var s=0;s<o;s++){var f=e[s];d||(n.delete(f.k),vr(t,f.prev,f.next)),ct(f.e,!d)}})}function Fr(t,e,r,n,a,o=null){var i=t,d={flags:e,items:new Map,first:null},l=(e&Mo)!==0;if(l){var s=t;i=q?tt(Je(s)):s.appendChild(tr())}q&&Zt();var f=null,g=!1,c=lr(()=>{var m=r();return jr(m)?m:m==null?[]:Aa(m)});cr(()=>{var m=u(c),h=m.length;if(g&&h===0)return;g=h===0;let v=!1;if(q){var p=Ho(i)===In;p!==(h===0)&&(i=En(),tt(i),ot(!1),v=!0)}if(q){for(var C=null,x,w=0;w<h;w++){if(ge.nodeType===8&&ge.data===ya){i=ge,v=!0,ot(!1);break}var A=m[w],I=n(A,w);x=ki(ge,d,C,null,A,I,w,a,e,r),d.items.set(I,x),C=x}h>0&&tt(En())}q||J1(m,d,i,a,e,n,r),o!==null&&(h===0?f?fr(f):f=pt(()=>o(i)):f!==null&&gr(f,()=>{f=null})),v&&ot(!0),u(c)}),q&&(i=ge)}function J1(t,e,r,n,a,o,i){var de,G,z,T;var d=(a&zd)!==0,l=(a&(zr|ba))!==0,s=t.length,f=e.items,g=e.first,c=g,m,h=null,v,p=[],C=[],x,w,A,I;if(d)for(I=0;I<s;I+=1)x=t[I],w=o(x,I),A=f.get(w),A!==void 0&&((de=A.a)==null||de.measure(),(v??(v=new Set)).add(A));for(I=0;I<s;I+=1){if(x=t[I],w=o(x,I),A=f.get(w),A===void 0){var M=c?c.e.nodes_start:r;h=ki(M,e,h,h===null?e.first:h.next,x,w,I,n,a,i),f.set(w,h),p=[],C=[],c=h.next;continue}if(l&&K1(A,x,I,a),(A.e.f&er)!==0&&(fr(A.e),d&&((G=A.a)==null||G.unfix(),(v??(v=new Set)).delete(A))),A!==c){if(m!==void 0&&m.has(A)){if(p.length<C.length){var E=C[0],b;h=E.prev;var D=p[0],W=p[p.length-1];for(b=0;b<p.length;b+=1)Ni(p[b],E,r);for(b=0;b<C.length;b+=1)m.delete(C[b]);vr(e,D.prev,W.next),vr(e,h,D),vr(e,W,E),c=E,h=W,I-=1,p=[],C=[]}else m.delete(A),Ni(A,c,r),vr(e,A.prev,A.next),vr(e,A,h===null?e.first:h.next),vr(e,h,A),h=A;continue}for(p=[],C=[];c!==null&&c.k!==w;)(c.e.f&er)===0&&(m??(m=new Set)).add(c),C.push(c),c=c.next;if(c===null)continue;A=c}p.push(A),h=A,c=A.next}if(c!==null||m!==void 0){for(var K=m===void 0?[]:Aa(m);c!==null;)(c.e.f&er)===0&&K.push(c),c=c.next;var X=K.length;if(X>0){var ae=(a&Mo)!==0&&s===0?r:null;if(d){for(I=0;I<X;I+=1)(z=K[I].a)==null||z.measure();for(I=0;I<X;I+=1)(T=K[I].a)==null||T.fix()}q1(e,K,ae,f)}}d&&_r(()=>{var Q;if(v!==void 0)for(A of v)(Q=A.a)==null||Q.apply()}),ve.first=e.first&&e.first.e,ve.last=h&&h.e}function K1(t,e,r,n){(n&zr)!==0&&Ur(t.v,e),(n&ba)!==0?Ur(t.i,r):t.i=r}function ki(t,e,r,n,a,o,i,d,l,s){var f=(l&zr)!==0,g=(l&jd)===0,c=f?g?ur(a):sr(a):a,m=(l&ba)===0?i:sr(i),h={i:m,v:c,k:o,a:null,e:null,prev:r,next:n};try{return h.e=pt(()=>d(t,c,m,s),q),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?e.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function Ni(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,a=e?e.e.nodes_start:r,o=t.e.nodes_start;o!==n;){var i=Ht(o);a.before(o),o=i}}function vr(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function pr(t,e,r=!1,n=!1,a=!1){var o=t,i="";B(()=>{var d=ve;if(i===(i=e()??"")){q&&Zt();return}if(d.nodes_start!==null&&(ri(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),i!==""){if(q){ge.data;for(var l=Zt(),s=l;l!==null&&(l.nodeType!==8||l.data!=="");)s=l,l=Ht(l);if(l===null)throw dn(),kr;ft(ge,s),o=tt(l);return}var f=i+"";r?f=`<svg>${f}</svg>`:n&&(f=`<math>${f}</math>`);var g=$a(f);if((r||n)&&(g=Je(g)),ft(Je(g),g.lastChild),r||n)for(;Je(g);)o.before(Je(g));else o.before(g)}})}function lt(t,e,r,n,a){var d;q&&Zt();var o=(d=e.$$slots)==null?void 0:d[r],i=!1;o===!0&&(o=e[r==="default"?"children":r],i=!0),o===void 0?a!==null&&a(t):o(t,i?()=>n:n)}function jn(t,e,r,n,a,o){let i=q;q&&Zt();var d,l,s=null;q&&ge.nodeType===1&&(s=ge,Zt());var f=q?ge:t,g;cr(()=>{const c=e()||null;var m=c==="svg"?Xd:null;c!==d&&(g&&(c===null?gr(g,()=>{g=null,l=null}):c===l?fr(g):(ct(g),wi(!1))),c&&c!==l&&(g=pt(()=>{if(s=q?s:m?document.createElementNS(m,c):document.createElement(c),ft(s,s),n){q&&V1(c)&&s.append(document.createComment(""));var h=q?Je(s):s.appendChild(tr());q&&(h===null?ot(!1):tt(h)),n(s,h)}ve.nodes_end=s,f.before(s)})),d=c,d&&(l=d),wi(!0))},Zr),i&&(ot(!0),tt(f))}function Q1(t,e,r){Xe(()=>{var n=_t(()=>e(t,r==null?void 0:r())||{});if(r&&(n!=null&&n.update)){var a=!1,o={};Lr(()=>{var i=r();mr(i),a&&Go(o,i)&&(o=i,n.update(i))}),a=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}function e2(t,e){var r=void 0,n;cr(()=>{r!==(r=e())&&(n&&(ct(n),n=null),r&&(n=pt(()=>{Xe(()=>r(t))})))})}function Pi(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(r=Pi(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function t2(){for(var t,e,r=0,n="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=Pi(t))&&(n&&(n+=" "),n+=e);return n}function Ne(t){return typeof t=="object"?t2(t):t??""}const Mi=[...`
|
|
2
2
|
\r\f \v\uFEFF`];function r2(t,e,r){var n=t==null?"":""+t;if(r){for(var a in r)if(r[a])n=n?n+" "+a:a;else if(n.length)for(var o=a.length,i=0;(i=n.indexOf(a,i))>=0;){var d=i+o;(i===0||Mi.includes(n[i-1]))&&(d===n.length||Mi.includes(n[d]))?n=(i===0?"":n.substring(0,i))+n.substring(d+1):i=d}}return n===""?null:n}function Di(t,e=!1){var r=e?" !important;":";",n="";for(var a in t){var o=t[a];o!=null&&o!==""&&(n+=" "+a+": "+o+r)}return n}function za(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function n2(t,e){if(e){var r="",n,a;if(Array.isArray(e)?(n=e[0],a=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,i=0,d=!1,l=[];n&&l.push(...Object.keys(n).map(za)),a&&l.push(...Object.keys(a).map(za));var s=0,f=-1;const v=t.length;for(var g=0;g<v;g++){var c=t[g];if(d?c==="/"&&t[g-1]==="*"&&(d=!1):o?o===c&&(o=!1):c==="/"&&t[g+1]==="*"?d=!0:c==='"'||c==="'"?o=c:c==="("?i++:c===")"&&i--,!d&&o===!1&&i===0){if(c===":"&&f===-1)f=g;else if(c===";"||g===v-1){if(f!==-1){var m=za(t.substring(s,f).trim());if(!l.includes(m)){c!==";"&&g++;var h=t.substring(s,g).trim();r+=" "+h+";"}}s=g+1,f=-1}}}}return n&&(r+=Di(n)),a&&(r+=Di(a,!0)),r=r.trim(),r===""?null:r}return t==null?null:String(t)}function Ae(t,e,r,n,a,o){var i=t.__className;if(q||i!==r||i===void 0){var d=r2(r,n,o);(!q||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=r}else if(o&&a!==o)for(var l in o){var s=!!o[l];(a==null||s!==!!a[l])&&t.classList.toggle(l,s)}return o}function ja(t,e={},r,n){for(var a in r){var o=r[a];e[a]!==o&&(r[a]==null?t.style.removeProperty(a):t.style.setProperty(a,o,n))}}function a2(t,e,r,n){var a=t.__style;if(q||a!==e){var o=n2(e,n);(!q||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t.__style=e}else n&&(Array.isArray(n)?(ja(t,r==null?void 0:r[0],n[0]),ja(t,r==null?void 0:r[1],n[1],"important")):ja(t,r,n));return n}function Yn(t,e,r){if(t.multiple){if(e==null)return;if(!jr(e))return p1();for(var n of t.options)n.selected=e.includes(hn(n));return}for(n of t.options){var a=hn(n);if(m1(a,e)){n.selected=!0;return}}(!r||e!==void 0)&&(t.selectedIndex=-1)}function Li(t,e){let r=!0;Xe(()=>{e&&Yn(t,_t(e),r),r=!1;var n=new MutationObserver(()=>{var a=t.__value;Yn(t,a)});return n.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{n.disconnect()}})}function Ri(t,e,r=e){var n=!0;Ci(t,"change",a=>{var o=a?"[selected]":":checked",i;if(t.multiple)i=[].map.call(t.querySelectorAll(o),hn);else{var d=t.querySelector(o)??t.querySelector("option:not([disabled])");i=d&&hn(d)}r(i)}),Xe(()=>{var a=e();if(Yn(t,a,n),n&&a===void 0){var o=t.querySelector(":checked");o!==null&&(a=hn(o),r(a))}t.__value=a,n=!1}),Li(t)}function hn(t){return"__value"in t?t.__value:t.value}const mn=Symbol("class"),vn=Symbol("style"),Ei=Symbol("is custom element"),Fi=Symbol("is html");function Ya(t){if(q){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var n=t.value;pe(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var a=t.checked;pe(t,"checked",null),t.checked=a}}};t.__on_r=r,x1(r),bi()}}function o2(t,e){var r=Va(t);r.checked!==(r.checked=e??void 0)&&(t.checked=e)}function i2(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function pe(t,e,r,n){var a=Va(t);q&&(a[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||a[e]!==(a[e]=r)&&(e==="loading"&&(t[n1]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Ti(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function d2(t,e,r,n,a=!1){var o=Va(t),i=o[Ei],d=!o[Fi];let l=q&&i;l&&ot(!1);var s=e||{},f=t.tagName==="OPTION";for(var g in e)g in r||(r[g]=null);r.class?r.class=Ne(r.class):r[mn]&&(r.class=null),r[vn]&&(r.style??(r.style=null));var c=Ti(t);for(const w in r){let A=r[w];if(f&&w==="value"&&A==null){t.value=t.__value="",s[w]=A;continue}if(w==="class"){var m=t.namespaceURI==="http://www.w3.org/1999/xhtml";Ae(t,m,A,n,e==null?void 0:e[mn],r[mn]),s[w]=A,s[mn]=r[mn];continue}if(w==="style"){a2(t,A,e==null?void 0:e[vn],r[vn]),s[w]=A,s[vn]=r[vn];continue}var h=s[w];if(A!==h){s[w]=A;var v=w[0]+w[1];if(v!=="$$")if(v==="on"){const I={},M="$$"+w;let E=w.slice(2);var p=O1(E);if(T1(E)&&(E=E.slice(0,-7),I.capture=!0),!p&&h){if(A!=null)continue;t.removeEventListener(E,s[M],I),s[M]=null}if(A!=null)if(p)t[`__${E}`]=A,Jr([E]);else{let b=function(D){s[w].call(this,D)};s[M]=Ai(E,t,b,I)}else p&&(t[`__${E}`]=void 0)}else if(w==="style")pe(t,w,A);else if(w==="autofocus")F1(t,!!A);else if(!i&&(w==="__value"||w==="value"&&A!=null))t.value=t.__value=A;else if(w==="selected"&&f)i2(t,A);else{var C=w;d||(C=B1(C));var x=C==="defaultValue"||C==="defaultChecked";if(A==null&&!i&&!x)if(o[w]=null,C==="value"||C==="checked"){let I=t;const M=e===void 0;if(C==="value"){let E=I.defaultValue;I.removeAttribute(C),I.defaultValue=E,I.value=I.__value=M?E:null}else{let E=I.defaultChecked;I.removeAttribute(C),I.defaultChecked=E,I.checked=M?E:!1}}else t.removeAttribute(w);else x||c.includes(C)&&(i||typeof A!="string")?t[C]=A:typeof A!="function"&&pe(t,C,A)}}}return l&&ot(!0),s}function St(t,e,r=[],n,a=!1,o=Pr){const i=r.map(o);var d=void 0,l={},s=t.nodeName==="SELECT",f=!1;cr(()=>{var g=e(...i.map(u));d2(t,d,g,n,a),f&&s&&"value"in g&&Yn(t,g.value,!1);for(let m of Object.getOwnPropertySymbols(l))g[m]||ct(l[m]);for(let m of Object.getOwnPropertySymbols(g)){var c=g[m];m.description===qd&&(!d||c!==d[m])&&(l[m]&&ct(l[m]),l[m]=pt(()=>e2(t,()=>c)))}d=g}),s&&Li(t,()=>d.value),f=!0}function Va(t){return t.__attributes??(t.__attributes={[Ei]:t.nodeName.includes("-"),[Fi]:t.namespaceURI===_d})}var Si=new Map;function Ti(t){var e=Si.get(t.nodeName);if(e)return e;Si.set(t.nodeName,e=[]);for(var r,n=t,a=Element.prototype;a!==n;){r=Eo(n);for(var o in r)r[o].set&&e.push(o);n=wa(n)}return e}const l2=()=>performance.now(),rr={tick:t=>requestAnimationFrame(t),now:()=>l2(),tasks:new Set};function $i(){const t=rr.now();rr.tasks.forEach(e=>{e.c(t)||(rr.tasks.delete(e),e.f())}),rr.tasks.size!==0&&rr.tick($i)}function s2(t){let e;return rr.tasks.size===0&&rr.tick($i),{promise:new Promise(r=>{rr.tasks.add(e={c:t,f:r})}),abort(){rr.tasks.delete(e)}}}function Vn(t,e){Sa(()=>{t.dispatchEvent(new CustomEvent(e))})}function u2(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function Oi(t){const e={},r=t.split(";");for(const n of r){const[a,o]=n.split(":");if(!a||o===void 0)break;const i=u2(a.trim());e[i]=o.trim()}return e}const c2=t=>t;function g2(t,e,r,n){var a=(t&Hd)!==0,o="both",i,d=e.inert,l=e.style.overflow,s,f;function g(){var p=De,C=ve;gt(null),wt(null);try{return i??(i=r()(e,(n==null?void 0:n())??{},{direction:o}))}finally{gt(p),wt(C)}}var c={is_global:a,in(){e.inert=d,Vn(e,"introstart"),s=Za(e,g(),f,1,()=>{Vn(e,"introend"),s==null||s.abort(),s=i=void 0,e.style.overflow=l})},out(p){e.inert=!0,Vn(e,"outrostart"),f=Za(e,g(),s,0,()=>{Vn(e,"outroend"),p==null||p()})},stop:()=>{s==null||s.abort(),f==null||f.abort()}},m=ve;if((m.transitions??(m.transitions=[])).push(c),Gn){var h=a;if(!h){for(var v=m.parent;v&&(v.f&Zr)!==0;)for(;(v=v.parent)&&(v.f&Mn)===0;);h=!v||(v.f&ka)!==0}h&&Xe(()=>{_t(()=>c.in())})}}function Za(t,e,r,n,a){var o=n===1;if(Yr(e)){var i,d=!1;return _r(()=>{if(!d){var p=e({direction:o?"in":"out"});i=Za(t,p,r,n,a)}}),{abort:()=>{d=!0,i==null||i.abort()},deactivate:()=>i.deactivate(),reset:()=>i.reset(),t:()=>i.t()}}if(r==null||r.deactivate(),!(e!=null&&e.duration))return a(),{abort:Vr,deactivate:Vr,reset:Vr,t:()=>n};const{delay:l=0,css:s,tick:f,easing:g=c2}=e;var c=[];if(o&&r===void 0&&(f&&f(0,1),s)){var m=Oi(s(0,1));c.push(m,m)}var h=()=>1-n,v=t.animate(c,{duration:l,fill:"forwards"});return v.onfinish=()=>{v.cancel();var p=(r==null?void 0:r.t())??1-n;r==null||r.abort();var C=n-p,x=e.duration*Math.abs(C),w=[];if(x>0){var A=!1;if(s)for(var I=Math.ceil(x/16.666666666666668),M=0;M<=I;M+=1){var E=p+C*g(M/I),b=Oi(s(E,1-E));w.push(b),A||(A=b.overflow==="hidden")}A&&(t.style.overflow="hidden"),h=()=>{var D=v.currentTime;return p+C*g(D/x)},f&&s2(()=>{if(v.playState!=="running")return!1;var D=h();return f(D,1-D),!0})}v=t.animate(w,{duration:x,fill:"forwards"}),v.onfinish=()=>{h=()=>n,f==null||f(n,1-n),a()}},{abort:()=>{v&&(v.cancel(),v.effect=null,v.onfinish=Vr)},deactivate:()=>{a=Vr},reset:()=>{n===0&&(f==null||f(1,0))},t:()=>h()}}function f2(t,e,r=e){var n=Hr();Ci(t,"input",a=>{var o=a?t.defaultValue:t.value;if(o=Wa(t)?Ha(o):o,r(o),n&&o!==(o=e())){var i=t.selectionStart,d=t.selectionEnd;t.value=o??"",d!==null&&(t.selectionStart=i,t.selectionEnd=Math.min(d,t.value.length))}}),(q&&t.defaultValue!==t.value||_t(e)==null&&t.value)&&r(Wa(t)?Ha(t.value):t.value),Lr(()=>{var a=e();Wa(t)&&a===Ha(t.value)||t.type==="date"&&!a&&!t.value||a!==t.value&&(t.value=a??"")})}function Wa(t){var e=t.type;return e==="number"||e==="range"}function Ha(t){return t===""?null:+t}function h2(t,e,r){var n=jt(t,e);n&&n.set&&(t[e]=r,Ra(()=>{t[e]=null}))}function Gi(t,e){return t===e||(t==null?void 0:t[Vt])===e}function pn(t={},e,r,n){return Xe(()=>{var a,o;return Lr(()=>{a=o,o=[],_t(()=>{t!==r(...o)&&(e(t,...o),a&&Gi(r(...a),t)&&e(null,...a))})}),()=>{_r(()=>{o&&Gi(r(...o),t)&&e(null,...o)})}}),t}function Zn(t=!1){const e=Fe,r=e.l.u;if(!r)return;let n=()=>mr(e.s);if(t){let a=0,o={};const i=Pr(()=>{let d=!1;const l=e.s;for(const s in l)l[s]!==o[s]&&(o[s]=l[s],d=!0);return d&&a++,a});n=()=>u(i)}r.b.length&&C1(()=>{Bi(e,n),Nn(r.b)}),Dr(()=>{const a=_t(()=>r.m.map(e1));return()=>{for(const o of a)typeof o=="function"&&o()}}),r.a.length&&Dr(()=>{Bi(e,n),Nn(r.a)})}function Bi(t,e){if(t.l.s)for(const r of t.l.s)u(r);e()}function Jt(t,e){var o;var r=(o=t.$$events)==null?void 0:o[e.type],n=jr(r)?r.slice():r==null?[]:[r];for(var a of n)a.call(this,e)}let Wn=!1;function m2(t){var e=Wn;try{return Wn=!1,[t(),Wn]}finally{Wn=e}}const v2={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function kt(t,e,r){return new Proxy({props:t,exclude:e},v2)}const p2={get(t,e){if(!t.exclude.includes(e))return u(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,r){return e in t.special||(t.special[e]=O({get[e](){return t.props[e]}},e,Do)),t.special[e](r),Zo(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),Zo(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function zi(t,e){return new Proxy({props:t,exclude:e,special:{},version:sr(0)},p2)}const b2={get(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Yr(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n)return n[e]}},set(t,e,r){let n=t.props.length;for(;n--;){let a=t.props[n];Yr(a)&&(a=a());const o=jt(a,e);if(o&&o.set)return o.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Yr(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const a=jt(n,e);return a&&!a.configurable&&(a.configurable=!0),a}}},has(t,e){if(e===Vt||e===Pa)return!1;for(let r of t.props)if(Yr(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(Yr(r)&&(r=r()),!!r){for(const n in r)e.includes(n)||e.push(n);for(const n of Object.getOwnPropertySymbols(r))e.includes(n)||e.push(n)}return e}};function br(...t){return new Proxy({props:t},b2)}function ji(t){var e;return((e=t.ctx)==null?void 0:e.d)??!1}function O(t,e,r,n){var M;var a=(r&Yd)!==0,o=!Wr||(r&Vd)!==0,i=(r&Zd)!==0,d=(r&Wd)!==0,l=!1,s;i?[s,l]=m2(()=>t[e]):s=t[e];var f=Vt in t||Pa in t,g=i&&(((M=jt(t,e))==null?void 0:M.set)??(f&&e in t&&(E=>t[e]=E)))||void 0,c=n,m=!0,h=!1,v=()=>(h=!0,m&&(m=!1,d?c=_t(n):c=n),c);s===void 0&&n!==void 0&&(g&&o&&s1(),s=v(),g&&g(s));var p;if(o)p=()=>{var E=t[e];return E===void 0?v():(m=!0,h=!1,E)};else{var C=(a?Pr:lr)(()=>t[e]);C.f|=t1,p=()=>{var E=u(C);return E!==void 0&&(c=void 0),E===void 0?c:E}}if((r&Do)===0&&o)return p;if(g){var x=t.$$legacy;return function(E,b){return arguments.length>0?((!o||!b||x||l)&&g(b?p():E),E):p()}}var w=!1,A=ur(s),I=Pr(()=>{var E=p(),b=u(A);return w?(w=!1,b):A.v=E});return i&&u(I),a||(I.equals=Ma),function(E,b){if(arguments.length>0){const D=b?u(I):o&&i?Et(E):E;if(!I.equals(D)){if(w=!0,S(A,D),h&&c!==void 0&&(c=D),ji(I))return E;_t(()=>u(I))}return E}return ji(I)?I.v:u(I)}}function C2(t){return new y2(t)}class y2{constructor(e){No(this,ir);No(this,Pt);var o;var r=new Map,n=(i,d)=>{var l=ur(d);return r.set(i,l),l};const a=new Proxy({...e.props||{},$$events:{}},{get(i,d){return u(r.get(d)??n(d,Reflect.get(i,d)))},has(i,d){return d===Pa?!0:(u(r.get(d)??n(d,Reflect.get(i,d))),Reflect.has(i,d))},set(i,d,l){return S(r.get(d)??n(d,l),l),Reflect.set(i,d,l)}});Po(this,Pt,(e.hydrate?Z1:Ii)(e.component,{target:e.target,anchor:e.anchor,props:a,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((o=e==null?void 0:e.props)!=null&&o.$$host)||e.sync===!1)&&We(),Po(this,ir,a.$$events);for(const i of Object.keys(mt(this,Pt)))i==="$set"||i==="$destroy"||i==="$on"||kn(this,i,{get(){return mt(this,Pt)[i]},set(d){mt(this,Pt)[i]=d},enumerable:!0});mt(this,Pt).$set=i=>{Object.assign(a,i)},mt(this,Pt).$destroy=()=>{W1(mt(this,Pt))}}$set(e){mt(this,Pt).$set(e)}$on(e,r){mt(this,ir)[e]=mt(this,ir)[e]||[];const n=(...a)=>r.call(this,...a);return mt(this,ir)[e].push(n),()=>{mt(this,ir)[e]=mt(this,ir)[e].filter(a=>a!==n)}}$destroy(){mt(this,Pt).$destroy()}}ir=new WeakMap,Pt=new WeakMap;let Yi;typeof HTMLElement=="function"&&(Yi=class extends HTMLElement{constructor(e,r,n){super();zt(this,"$$ctor");zt(this,"$$s");zt(this,"$$c");zt(this,"$$cn",!1);zt(this,"$$d",{});zt(this,"$$r",!1);zt(this,"$$p_d",{});zt(this,"$$l",{});zt(this,"$$l_u",new Map);zt(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const a=this.$$c.$on(e,r);this.$$l_u.set(r,a)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const a=this.$$l_u.get(r);a&&(a(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(a){return o=>{const i=document.createElement("slot");a!=="default"&&(i.name=a),y(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=A2(this);for(const a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=e(a),r.default=!0):r[a]=e(a));for(const a of this.attributes){const o=this.$$g_p(a.name);o in this.$$d||(this.$$d[o]=Hn(o,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=C2({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=y1(()=>{Lr(()=>{var a;this.$$r=!0;for(const o of xn(this.$$c)){if(!((a=this.$$p_d[o])!=null&&a.reflect))continue;this.$$d[o]=this.$$c[o];const i=Hn(o,this.$$d[o],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,i)}this.$$r=!1})});for(const a in this.$$l)for(const o of this.$$l[a]){const i=this.$$c.$on(a,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(e,r,n){var a;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Hn(e,n,this.$$p_d,"toProp"),(a=this.$$c)==null||a.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return xn(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Hn(t,e,r,n){var o;const a=(o=r[t])==null?void 0:o.type;if(e=a==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(a){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(a){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function A2(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Sr(t,e,r,n,a,o){let i=class extends Yi{constructor(){super(t,r,a),this.$$p_d=e}static get observedAttributes(){return xn(e).map(d=>(e[d].attribute||d).toLowerCase())}};return xn(e).forEach(d=>{kn(i.prototype,d,{get(){return this.$$c&&d in this.$$c?this.$$c[d]:this.$$d[d]},set(l){var g;l=Hn(d,l,e),this.$$d[d]=l;var s=this.$$c;if(s){var f=(g=jt(s,d))==null?void 0:g.get;f?s[d]=l:s.$set({[d]:l})}}})}),n.forEach(d=>{kn(i.prototype,d,{get(){var l;return(l=this.$$c)==null?void 0:l[d]}})}),t.element=i,i}const w2=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-right-1\\.5{right:-.375rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-px{bottom:1px}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:1rem}.left-\\[84px\\]{left:84px}.left-px{left:1px}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-5{top:1.25rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-\\[--s-login-popup-zindex\\]{z-index:var(--s-login-popup-zindex)}.-m-px{margin:-1px}.mx-auto{margin-left:auto;margin-right:auto}.my-px{margin-top:1px;margin-bottom:1px}.-mb-0\\.5{margin-bottom:-.125rem}.-mt-px{margin-top:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:.125rem}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.h-1\\.5{height:.375rem}.h-12{height:3rem}.h-16{height:4rem}.h-3\\/4{height:75%}.h-4{height:1rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.w-1\\.5{width:.375rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-3\\/4{width:75%}.w-4{width:1rem}.w-8{width:2rem}.w-\\[--s-login-popup-width\\]{width:var(--s-login-popup-width)}.w-\\[calc\\(100\\%\\+1px\\)\\]{width:calc(100% + 1px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-full{width:100%}.max-w-\\[600px\\]{max-width:600px}.max-w-\\[800px\\]{max-width:800px}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-3\\.5{--tw-translate-y: -.875rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[calc\\(50\\%\\+theme\\(space\\.3\\)\\)\\]{--tw-translate-y: calc((50% + .75rem)*-1) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-3{--tw-rotate: 3deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.\\!flex-nowrap{flex-wrap:nowrap!important}.items-center{align-items:center}.justify-center{justify-content:center}.\\!justify-between{justify-content:space-between!important}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\\[--s-login-button-border-radius\\]{border-radius:var(--s-login-button-border-radius)}.rounded-\\[--s-login-popup-border-radius\\]{border-radius:var(--s-login-popup-border-radius)}.rounded-\\[var\\(--s-paywall-border-radius\\)\\]{border-radius:var(--s-paywall-border-radius)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-\\[length\\:--s-login-button-border-width\\]{border-width:var(--s-login-button-border-width)}.border-\\[length\\:--s-login-popup-border-width\\]{border-width:var(--s-login-popup-border-width)}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.\\!border-red-500{--tw-border-opacity: 1 !important;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))!important}.border-\\[color\\:--s-login-button-border-color\\]{border-color:var(--s-login-button-border-color)}.border-\\[color\\:--s-login-popup-border-color\\]{border-color:var(--s-login-popup-border-color)}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary{border-color:var(--s-primary-color)}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-r-transparent{border-right-color:transparent}.bg-\\[\\#1F72CD\\]{--tw-bg-opacity: 1;background-color:rgb(31 114 205 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FEB4C7\\]{--tw-bg-opacity: 1;background-color:rgb(254 180 199 / var(--tw-bg-opacity, 1))}.bg-\\[--s-login-popup-bgcolor\\]{background-color:var(--s-login-popup-bgcolor)}.bg-\\[color\\:--s-login-button-background-color\\]{background-color:var(--s-login-button-background-color)}.bg-\\[var\\(--s-paywall-bg-color\\)\\]{background-color:var(--s-paywall-bg-color)}.bg-\\[var\\(--s-paywall-btn-bg-color\\)\\]{background-color:var(--s-paywall-btn-bg-color)}.bg-\\[var\\(--s-paywall-tag-bg-color\\)\\]{background-color:var(--s-paywall-tag-bg-color)}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-primary{background-color:var(--s-primary-color)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-primary{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--s-primary-color) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.fill-\\[\\#3C4043\\]{fill:#3c4043}.fill-\\[\\#4A4A49\\]{fill:#4a4a49}.fill-black{fill:#000}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pl-\\[84px\\]{padding-left:84px}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.\\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.\\!text-xs{font-size:.75rem!important;line-height:1rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[0\\.9em\\]{font-size:.9em}.text-\\[8px\\]{font-size:8px}.text-\\[length\\:--s-login-button-text-size\\]{font-size:var(--s-login-button-text-size)}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.\\!font-\\[--s-login-button-font-weight\\]{font-weight:var(--s-login-button-font-weight)!important}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.leading-\\[1\\.43\\]{line-height:1.43}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.text-\\[--s-login-popup-textcolor\\]{color:var(--s-login-popup-textcolor)}.text-\\[color\\:--s-login-button-text-color\\]{color:var(--s-login-button-text-color)}.text-\\[var\\(--s-paywall-btn-text-color\\)\\]{color:var(--s-paywall-btn-text-color)}.text-\\[var\\(--s-paywall-tag-text-color\\)\\]{color:var(--s-paywall-tag-text-color)}.text-\\[var\\(--s-paywall-text-color\\)\\]{color:var(--s-paywall-text-color)}.text-\\[var\\(--s-paywall-text-color-70\\)\\]{color:var(--s-paywall-text-color-70)}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-primary{color:var(--s-primary-color)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline-0{outline-width:0px}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-transparent{--tw-ring-color: transparent}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,font-size\\]{transition-property:transform,font-size;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.content-\\[\\'\\'\\]{--tw-content: "";content:var(--tw-content)}.row-up-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-start}.row-up{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:center}.row-up-right{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;justify-content:flex-end}.row-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start}.row{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center}.row-right{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-end}.row-down-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:flex-start}.row-down{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:center}.row-down-right{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:flex-end}.column-up-left{display:flex;flex-direction:column;align-items:flex-start}.column-up{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.column-up-right{display:flex;flex-direction:column;align-items:flex-end}.column-left{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.column{display:flex;flex-direction:column;align-items:center;justify-content:center}.column-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}.column-down-left{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end}.column-down{display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.column-down-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end}.\\@container{container-type:inline-size}.\\@container\\/box{container-type:inline-size;container-name:box}.markdown-container{font-size:.875rem;line-height:1.25rem}.markdown-container .headline{font-size:1.25em;font-weight:700;margin-bottom:.5em}.markdown-container p{margin-bottom:.5em}:is(.markdown-container p):last-child{margin-bottom:0}.markdown-container a,.inline-link{display:inline-block;position:relative;color:color-mix(in srgb,currentColor 80%,transparent)}:is(.markdown-container a,.inline-link):after{content:"";position:absolute;left:0;bottom:1px;width:100%;border-bottom:1px dashed currentColor}:is(.markdown-container a,.inline-link):hover{color:currentColor}:is(.markdown-container a,.inline-link):hover:after{border-bottom-style:solid}.with-icon:is(.markdown-container a,.inline-link){display:inline-flex;align-items:center;gap:.25em}.with-icon:is(.markdown-container a,.inline-link):after{width:calc(100% - 1.25em)}.with-icon:is(.markdown-container a,.inline-link) svg{transform:translateY(-1px)}.placeholder\\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.placeholder\\:text-transparent::-moz-placeholder{color:transparent}.placeholder\\:text-transparent::placeholder{color:transparent}.focus-within\\:z-10:focus-within{z-index:10}.focus-within\\:text-gray-400:focus-within{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:bg-gray-100\\/50:hover{background-color:#f3f4f680}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:z-10:focus{z-index:10}.focus\\:border-gray-300:focus{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.active\\:enabled\\:translate-y-px:enabled:active{--tw-translate-y: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:opacity-\\[20\\%\\]:disabled{opacity:20%}.group:hover .group-hover\\:opacity-80{opacity:.8}.peer:checked~.peer-checked\\:border-primary{border-color:var(--s-primary-color)}.peer:checked~.peer-checked\\:bg-primary{background-color:var(--s-primary-color)}.peer:focus~.peer-focus\\:-translate-y-\\[calc\\(50\\%\\+theme\\(space\\.3\\)\\)\\]{--tw-translate-y: calc((50% + .75rem)*-1) ;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:focus~.peer-focus\\:text-xs{font-size:.75rem;line-height:1rem}.peer:focus~.peer-focus\\:ring-primary{--tw-ring-color: var(--s-primary-color)}.peer:focus-visible~.peer-focus-visible\\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.has-\\[input\\:checked\\]\\:border-primary:has(input:checked){border-color:var(--s-primary-color)}@container box (min-width: 20rem){.\\@xs\\/box\\:h-7{height:1.75rem}.\\@xs\\/box\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.\\@xs\\/box\\:text-lg{font-size:1.125rem;line-height:1.75rem}}@container (min-width: 20rem){.\\@xs\\:px-8{padding-left:2rem;padding-right:2rem}}@container (min-width: 24rem){.\\@sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@sm\\:p-8{padding:2rem}.\\@sm\\:pb-10{padding-bottom:2.5rem}}@container (min-width: 28rem){.\\@md\\:mt-8{margin-top:2rem}.\\@md\\:gap-4{gap:1rem}.\\@md\\:space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.\\@md\\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.\\@md\\:pb-8{padding-bottom:2rem}.\\@md\\:pt-4{padding-top:1rem}.\\@md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.\\@md\\:row-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start}.\\@md\\:column-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}}@container (min-width: 36rem){.\\@xl\\:auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.\\@xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\@xl\\:gap-4{gap:1rem}.\\@xl\\:rounded-\\[var\\(--s-paywall-border-radius-desktop\\)\\]{border-radius:var(--s-paywall-border-radius-desktop)}.\\@xl\\:p-1{padding:.25rem}.\\@xl\\:text-base{font-size:1rem;line-height:1.5rem}.\\@xl\\:text-lg{font-size:1.125rem;line-height:1.75rem}.\\@xl\\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.\\@xl\\:row-left{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start}}@container (min-width: 48rem){.\\@3xl\\:p-16{padding:4rem}.\\@3xl\\:p-4{padding:1rem}.\\@3xl\\:px-16{padding-left:4rem;padding-right:4rem}.\\@3xl\\:pt-10{padding-top:2.5rem}}@container (min-width: 80rem){.\\@7xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.dark\\:border:is(.dark *){border-width:1px}.dark\\:border-gray-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.dark\\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.dark\\:bg-black:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.dark\\:bg-black\\/25:is(.dark *){background-color:#00000040}.dark\\:fill-white:is(.dark *){fill:#fff}.dark\\:text-black:is(.dark *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.dark\\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.dark\\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\\:focus\\:border-gray-600:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}@media not all and (min-width:640px){.max-sm\\:gap-0{gap:0px}}@media(min-width:640px){.sm\\:text-xs{font-size:.75rem;line-height:1rem}}@media not all and (min-width:640px){.max-sm\\:\\[\\&\\>\\*\\:first-child\\>\\*\\:first-child\\>label\\:first-of-type\\>\\:where\\(select\\,input\\)\\]\\:rounded-t-md>*:first-child>*:first-child>label:first-of-type>:where(select,input){border-top-left-radius:.375rem;border-top-right-radius:.375rem}.max-sm\\:\\[\\&\\>\\*\\:last-child\\>\\*\\:last-child\\>label\\:last-of-type\\>\\:where\\(select\\,input\\)\\]\\:rounded-b-md>*:last-child>*:last-child>label:last-of-type>:where(select,input){border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.max-sm\\:\\[\\&\\>\\*\\]\\:gap-0>*{gap:0px}}.\\[\\&\\>label\\:first-child\\>\\:where\\(select\\,input\\)\\]\\:rounded-t-md>label:first-child>:where(select,input){border-top-left-radius:.375rem;border-top-right-radius:.375rem}.\\[\\&\\>label\\:last-child\\>\\:where\\(select\\,input\\)\\]\\:rounded-b-md>label:last-child>:where(select,input){border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.\\[\\&\\>label\\>\\:where\\(select\\,input\\)\\]\\:rounded-none>label>:where(select,input){border-radius:0}.\\[\\&\\>svg\\]\\:max-w-full>svg{max-width:100%}.\\[\\&_label\\>\\:where\\(select\\,input\\)\\]\\:-mt-px label>:where(select,input){margin-top:-1px}@media not all and (min-width:640px){.max-sm\\:\\[\\&_label\\>\\:where\\(select\\,input\\)\\]\\:rounded-none label>:where(select,input){border-radius:0}}.\\[\\&_label\\>select\\]\\:-mt-px label>select{margin-top:-1px}`;async function Vi(){var t;return(t=window.sesamy)!=null&&t.isReady()?window.sesamy:new Promise((e,r)=>{const n=setTimeout(()=>{window.sesamy?e(window.sesamy):r(new Error("sesamyReady event did not occur within the expected time."))},5e3);function a(){window.sesamy?(clearTimeout(n),window.removeEventListener("sesamyJsReady",a),e(window.sesamy)):r(new Error("Sesamy API is not available"))}window.addEventListener("sesamyJsReady",a)})}const Zi={cs:{already_subscribing:"Už jste se přihlásili k odběru?",birthdate_required:"Vyžaduje se datum narození",click_to_update:"Klikněte pro aktualizaci",continue:"Pokračovat",country:"Země",date_of_birth:"Datum narození",day:"Den",did_you_mean:"Měl jste na mysli",email:"E-mailová adresa",first_name:"Křestní jméno",first_name_required:"Křestní jméno je povinné",go_back:"Vrátit se zpět",got_referred:"Někdo mi doporučil",invalid_birth_date:"Neplatné datum narození",invalid_birth_day:"Neplatný den",invalid_birth_month:"Neplatný měsíc",invalid_birth_year:"Nesprávný rok",invalid_email:"Neplatná e-mailová adresa",invalid_phone_number:"Neplatné telefonní číslo",is_gift:"Darujte dárek",last_name:"Příjmení",last_name_required:"Příjmení je povinné",login:"Přihlášení",logo_of:"Logo společnosti",logout:"Odhlášení",month:"Měsíc",my_account:"Můj účet",not_gift:"Kupte si pro sebe",pay_now:"Zaplaťte nyní",phone_number:"Telefonní číslo",phone_number_required:"Vyžaduje se telefonní číslo",powered_by_sesamy:"Platby, paywall a předplatné poháněné platformou <0>Sesamy subscription platform</0>.",read_more:"Přečtěte si více",recipient_details:"Údaje o příjemci",referral_email:"Doporučující e-mail",referral_email_required:"Je vyžadován doporučující e-mail",secure_payment:"Bezpečná platba šifrovaná pomocí SSL",something_went_wrong:"Něco se pokazilo",user_already_owns_item:"Tento produkt již vlastníte",year:"Rok",your_details:"Vaše údaje"},en:{already_subscribing:"Already subscribing?",birthdate_required:"Date of birth is required",click_to_update:"Click to update",continue:"Continue",country:"Country",date_of_birth:"Date of birth",day:"Day",did_you_mean:"Did you mean",email:"Email address",first_name:"First name",first_name_required:"First name is required",go_back:"Go back",got_referred:"I got referred by someone",invalid_birth_date:"Invalid date of birth",invalid_birth_day:"Invalid day",invalid_birth_month:"Invalid month",invalid_birth_year:"Invalid year",invalid_email:"Invalid email address",invalid_phone_number:"Invalid phone number",is_gift:"Give as a gift",last_name:"Last name",last_name_required:"Last name is required",login:"Login",logo_of:"Logo of",logout:"Log out",month:"Month",my_account:"My account",not_gift:"Buy for yourself",pay_now:"Pay now",phone_number:"Phone number",phone_number_required:"Phone number is required",powered_by_sesamy:"Payments, paywall and subscriptions powered by <0>Sesamy subscription platform</0>.",read_more:"Read more",recipient_details:"The recipient's details",referral_email:"Referral email",referral_email_required:"Referral email is required",secure_payment:"Secure SSL encrypted payment",something_went_wrong:"Something went wrong",user_already_owns_item:"You already own this product",year:"Year",your_details:"Your details"},fi:{already_subscribing:"Oletko jo tilannut?",birthdate_required:"Syntymäaika vaaditaan",click_to_update:"Klikkaa päivittääksesi",continue:"Jatka",country:"Maa",date_of_birth:"Syntymäaika",day:"Päivä",did_you_mean:"Tarkoititko",email:"Sähköpostiosoite",first_name:"Etunimi",first_name_required:"Etunimi vaaditaan",go_back:"Palaa takaisin",got_referred:"Minut lähetti joku",invalid_birth_date:"Virheellinen syntymäaika",invalid_birth_day:"Virheellinen päivä",invalid_birth_month:"Virheellinen kuukausi",invalid_birth_year:"Virheellinen vuosi",invalid_email:"Virheellinen sähköpostiosoite",invalid_phone_number:"Virheellinen puhelinnumero",is_gift:"Anna lahjaksi",last_name:"Sukunimi",last_name_required:"Sukunimi vaaditaan",login:"Kirjaudu sisään",logo_of:"Logo of",logout:"Kirjaudu ulos",month:"Kuukausi",my_account:"Tilini",not_gift:"Osta itsellesi",pay_now:"Maksa nyt",phone_number:"Puhelinnumero",phone_number_required:"Puhelinnumero vaaditaan",powered_by_sesamy:"Maksut, maksuseinät ja tilaukset, joita tukee <0>Sesamy-tilausalusta</0>.",read_more:"Lue lisää",recipient_details:"Vastaanottajan tiedot",referral_email:"Suosittelusähköposti",referral_email_required:"Suosittelusähköposti vaaditaan",secure_payment:"Turvallinen SSL-salattu maksu",something_went_wrong:"Jokin meni pieleen",user_already_owns_item:"Omistat jo tämän tuotteen",year:"Vuosi",your_details:"Tietosi"},it:{already_subscribing:"Siete già abbonati?",birthdate_required:"È richiesta la data di nascita",click_to_update:"Fare clic per aggiornare",continue:"Continua",country:"Paese",date_of_birth:"Data di nascita",day:"Giorno",did_you_mean:"Intendeva",email:"Indirizzo e-mail",first_name:"Nome",first_name_required:"Il nome è obbligatorio",go_back:"Torna indietro",got_referred:"Sono stato indirizzato da qualcuno",invalid_birth_date:"Data di nascita non valida",invalid_birth_day:"Giorno non valido",invalid_birth_month:"Mese non valido",invalid_birth_year:"Anno non valido",invalid_email:"Indirizzo e-mail non valido",invalid_phone_number:"Numero di telefono non valido",is_gift:"Regalo",last_name:"Cognome",last_name_required:"Il cognome è obbligatorio",login:"Accesso",logo_of:"Logo di",logout:"Disconnettersi",month:"Mese",my_account:"Il mio account",not_gift:"Comprati",pay_now:"Paga ora",phone_number:"Numero di telefono",phone_number_required:"Il numero di telefono è richiesto",powered_by_sesamy:"Pagamenti, paywall e abbonamenti alimentati dalla <0>piattaforma di abbonamento Sesamy</0>.",read_more:"Per saperne di più",recipient_details:"I dati del destinatario",referral_email:"Email di rinvio",referral_email_required:"L'e-mail di riferimento è necessaria",secure_payment:"Pagamento sicuro con crittografia SSL",something_went_wrong:"Qualcosa è andato storto",user_already_owns_item:"Possiedi già questo prodotto",year:"Anno",your_details:"I vostri dati"},nb:{already_subscribing:"Abonnerer du allerede?",birthdate_required:"Fødselsdato er påkrevd",click_to_update:"Klikk for å oppdatere",continue:"Fortsett",country:"Land",date_of_birth:"Fødselsdato",day:"Dag",did_you_mean:"Mente du",email:"E-postadresse",first_name:"Fornavn",first_name_required:"Fornavn er påkrevd",go_back:"Gå tilbake",got_referred:"Jeg har blitt vervet av noen",invalid_birth_date:"Ugyldig fødselsdato",invalid_birth_day:"Ugyldig dag",invalid_birth_month:"Ugyldig måned",invalid_birth_year:"Ugyldig år",invalid_email:"Ugyldig e-postadresse",invalid_phone_number:"Ugyldig telefonnummer",is_gift:"Gi som gave",last_name:"Etternavn",last_name_required:"Etternavn er påkrevd",login:"Logg inn",logo_of:"Logoen til",logout:"Logg ut",month:"Måned",my_account:"Min konto",not_gift:"Kjøp til deg",pay_now:"Betal nå",phone_number:"Telefonnummer",phone_number_required:"Telefonnummer er påkrevd",powered_by_sesamy:"Betalinger, paywall og abonnementer via <0>Sesamys abonnementplattform</0>.",read_more:"Les mer",recipient_details:"Mottakerens opplysninger",referral_email:"Henvisnings-e-post",referral_email_required:"Henvisnings-e-post er påkrevd",secure_payment:"Sikker SSL-kryptert betaling",something_went_wrong:"Noe gikk galt",user_already_owns_item:"Du eier allerede dette produktet",year:"År",your_details:"Dine opplysninger"},pl:{already_subscribing:"Już subskrybujesz?",birthdate_required:"Wymagana jest data urodzenia",click_to_update:"Kliknij, aby zaktualizować",continue:"Kontynuuj",country:"Kraj",date_of_birth:"Data urodzenia",day:"Dzień",did_you_mean:"Czy miałeś na myśli",email:"Adres e-mail",first_name:"Imię",first_name_required:"Imię jest wymagane",go_back:"Wróć",got_referred:"Zostałem polecony przez kogoś",invalid_birth_date:"Nieprawidłowa data urodzenia",invalid_birth_day:"Nieprawidłowy dzień",invalid_birth_month:"Nieprawidłowy miesiąc",invalid_birth_year:"Nieprawidłowy rok",invalid_email:"Nieprawidłowy adres e-mail",invalid_phone_number:"Nieprawidłowy numer telefonu",is_gift:"Podaruj prezent",last_name:"Nazwisko",last_name_required:"Nazwisko jest wymagane",login:"Logowanie",logo_of:"Logo",logout:"Wylogowanie",month:"Miesiąc",my_account:"Moje konto",not_gift:"Kup dla siebie",pay_now:"Zapłać teraz",phone_number:"Numer telefonu",phone_number_required:"Numer telefonu jest wymagany",powered_by_sesamy:"Płatności, paywall i subskrypcje zasilane przez <0>platformę subskrypcyjną Sesamy</0>.",read_more:"Czytaj więcej",recipient_details:"Dane odbiorcy",referral_email:"E-mail polecający",referral_email_required:"Wymagany jest e-mail polecający",secure_payment:"Bezpieczna płatność szyfrowana SSL",something_went_wrong:"Coś poszło nie tak",user_already_owns_item:"Posiadasz już ten produkt",year:"Rok",your_details:"Twoje dane"},sv:{already_subscribing:"Prenumererar du redan?",birthdate_required:"Födelsedatum är obligatoriskt",click_to_update:"Klicka för att uppdatera",continue:"Fortsätt",country:"Land",date_of_birth:"Födelsedatum",day:"Dag",did_you_mean:"Menade du",email:"E-postadress",first_name:"Förnamn",first_name_required:"Förnamn är obligatoriskt",go_back:"Gå tillbaka",got_referred:"Jag blev rekommenderad av någon",invalid_birth_date:"Ogiltigt födelsedatum",invalid_birth_day:"Ogiltig dag",invalid_birth_month:"Ogiltig månad",invalid_birth_year:"Ogiltigt år",invalid_email:"Ogiltig e-postadress",invalid_phone_number:"Ogiltigt telefonnummer",is_gift:"Ge gåva",last_name:"Efternamn",last_name_required:"Efternamn är obligatoriskt",login:"Logga in",logo_of:"Logotyp för",logout:"Logga ut",month:"Månad",my_account:"Mitt konto",not_gift:"Köp till dig",pay_now:"Betala nu",phone_number:"Telefonnummer",phone_number_required:"Telefonnummer är obligatoriskt",powered_by_sesamy:"Betalningar, betalvägg och prenumerationer via <0>Sesamys prenumerationsplattform</0>.",read_more:"Läs mer",recipient_details:"Mottagarens uppgifter",referral_email:"Referens e-post",referral_email_required:"Referens e-post krävs",secure_payment:"Säker SSL-krypterad betalning",something_went_wrong:"Något gick fel",user_already_owns_item:"Du har redan köpt den här produkten",year:"År",your_details:"Dina uppgifter"},da:{already_subscribing:"Abonnerer du allerede?",birthdate_required:"Fødselsdato er påkrævet",click_to_update:"Klik for at opdatere",continue:"Fortsæt",country:"Land",date_of_birth:"Fødselsdato",day:"Dag",did_you_mean:"Mente du, at",email:"E-mail-adresse",first_name:"Fornavn",first_name_required:"Fornavn er påkrævet",go_back:"Gå tilbage",got_referred:"Jeg blev henvist af nogen",invalid_birth_date:"Ugyldig fødselsdato",invalid_birth_day:"Ugyldig dag",invalid_birth_month:"Ugyldig måned",invalid_birth_year:"Ugyldigt år",invalid_email:"Ugyldig e-mailadresse",invalid_phone_number:"Ugyldigt telefonnummer",is_gift:"Giv en gave",last_name:"Efternavn",last_name_required:"Efternavn er påkrævet",login:"Login",logo_of:"Logo for",logout:"Log ud",month:"Måned",my_account:"Min konto",not_gift:"Køb til dig",pay_now:"Betal nu",phone_number:"Telefonnummer",phone_number_required:"Telefonnummer er påkrævet",powered_by_sesamy:"Betalinger, betalingsvæg og abonnementer via <0>Sesamys abonnementsplatform</0>.",read_more:"Læs mere",recipient_details:"Modtagerens oplysninger",referral_email:"Henvisnings-e-mail",referral_email_required:"Henvisnings-e-mail er påkrævet",secure_payment:"Sikker SSL-krypteret betaling",something_went_wrong:"Noget gik galt",user_already_owns_item:"Du ejer allerede dette produkt",year:"År",your_details:"Dine oplysninger"}};function I2(t,e){return e?t.replace(/<(\d+)>(.*?)<\/\1>/g,(r,n,a)=>{const o=n.toString();return e[o]?e[o](a):a}):t}function x2(t){const e=Zi[t]?t:"en";return(r,n)=>{var o;const a=((o=Zi[e])==null?void 0:o[r])||r;return I2(a,n)}}var k2=F('<p style="color: red"> </p>'),N2=F("<!> <!>",1);function Qr(t,e){Ce(e,!0);let r=O(e,"applyStyles",3,!0);const n=Vi(),a=n.then(g=>{const c=e.lang||g.content.getLanguage();return x2(c)});let i=r()?"<style>"+w2+`
|
|
3
3
|
:host {
|
|
4
4
|
display: contents;
|
|
@@ -46,7 +46,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
46
46
|
`.concat(JSON.stringify(c,null,2)))}}return l?{partialMatch:!0}:void 0;case"[]":for(var m=yd(e.args),h;!(h=m()).done;){var v=h.value;if(t[0]===v)return t.length===1?{match:!0,matchedChars:t}:r?{overflow:!0}:{match:!0,matchedChars:[v]}}return;default:throw new Error("Unsupported instruction tree: ".concat(e))}}function wd(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=g9(t))||e){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
47
47
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g9(t,e){if(t){if(typeof t=="string")return Id(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Id(t,e)}}function Id(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h9(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m9(t,e,r){return e&&h9(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ao="9",v9=15,p9=ha(Ao,v9),b9=/[- ]/,C9=function(){return/\[([^\[\]])*\]/g},y9=function(){return/\d(?=[^,}][^,}])/g},A9=new RegExp("["+Ot+"]*\\$1["+Ot+"]*(\\$\\d["+Ot+"]*)*$"),xd=3,w9=(function(){function t(e){e.state;var r=e.metadata;f9(this,t),this.metadata=r,this.resetFormat()}return m9(t,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(r,n){this.resetFormat(),r?(this.isNANP=r.callingCode()==="1",this.matchingFormats=r.formats(),n.nationalSignificantNumber&&this.narrowDownMatchingFormats(n)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(r,n){var a=this;if(J4(n.nationalSignificantNumber,this.metadata))for(var o=wd(this.matchingFormats),i;!(i=o()).done;){var d=i.value,l=q4(n,d,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(f){return a.shouldTryNationalPrefixFormattingRule(f,{international:n.international,nationalPrefix:n.nationalPrefix})},getSeparatorAfterNationalPrefix:function(f){return a.getSeparatorAfterNationalPrefix(f)}});if(l)return this.resetFormat(),this.chosenFormat=d,this.setNationalNumberTemplate(l.replace(/\d/g,Gt),n),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Gt),l}return this.formatNationalNumberWithNextDigits(r,n)}},{key:"formatNationalNumberWithNextDigits",value:function(r,n){var a=this.chosenFormat,o=this.chooseFormat(n);if(o)return o===a?this.formatNextNationalNumberDigits(r):this.formatNextNationalNumberDigits(n.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(r){var n=this,a=r.nationalSignificantNumber,o=r.nationalPrefix,i=r.international,d=a,l=d.length-xd;l<0&&(l=0),this.matchingFormats=this.matchingFormats.filter(function(s){return n.formatSuits(s,i,o)&&n.formatMatches(s,d,l)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(r,n,a){return!(a&&!r.usesNationalPrefix()&&!r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!n&&!a&&r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(r,n,a){var o=r.leadingDigitsPatterns().length;if(o===0)return!0;a=Math.min(a,o-1);var i=r.leadingDigitsPatterns()[a];if(n.length<xd)try{return new c9(i).match(n,{allowOverflow:!0})!==void 0}catch(d){return console.error(d),!0}return new RegExp("^(".concat(i,")")).test(n)}},{key:"getFormatFormat",value:function(r,n){return n?r.internationalFormat():r.format()}},{key:"chooseFormat",value:function(r){for(var n=this,a=function(){var s=i.value;return n.chosenFormat===s?"break":A9.test(n.getFormatFormat(s,r.international))?n.createTemplateForFormat(s,r)?(n.chosenFormat=s,"break"):(n.matchingFormats=n.matchingFormats.filter(function(f){return f!==s}),"continue"):"continue"},o=wd(this.matchingFormats.slice()),i;!(i=o()).done;){var d=a();if(d==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(r,n){if(!(r.pattern().indexOf("|")>=0)){var a=this.getTemplateForFormat(r,n);if(a)return this.setNationalNumberTemplate(a,n),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(r){return this.isNANP||r&&r.nationalPrefixFormattingRule()&&b9.test(r.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(r,n){var a=r.IDDPrefix,o=r.missingPlus;return a?n&&n.spacing===!1?a:a+" ":o?"":"+"}},{key:"getTemplate",value:function(r){if(this.template){for(var n=-1,a=0,o=r.international?this.getInternationalPrefixBeforeCountryCallingCode(r,{spacing:!1}):"";a<o.length+r.getDigitsWithoutInternationalPrefix().length;)n=this.template.indexOf(Gt,n+1),a++;return bd(this.template,n+1)}}},{key:"setNationalNumberTemplate",value:function(r,n){this.nationalNumberTemplate=r,this.populatedNationalNumberTemplate=r,this.populatedNationalNumberTemplatePosition=-1,n.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g,Gt)+ha(Gt,n.callingCode.length)+" "+r:this.template=r}},{key:"getTemplateForFormat",value:function(r,n){var a=n.nationalSignificantNumber,o=n.international,i=n.nationalPrefix,d=n.complexPrefixBeforeNationalSignificantNumber,l=r.pattern();l=l.replace(C9(),"\\d").replace(y9(),"\\d");var s=p9.match(l)[0];if(!(a.length>s.length)){var f=new RegExp("^"+l+"$"),g=a.replace(/\d/g,Ao);f.test(g)&&(s=g);var c=this.getFormatFormat(r,o),m;if(this.shouldTryNationalPrefixFormattingRule(r,{international:o,nationalPrefix:i})){var h=c.replace(q0,r.nationalPrefixFormattingRule());if(ca(r.nationalPrefixFormattingRule())===(i||"")+ca("$1")&&(c=h,m=!0,i))for(var v=i.length;v>0;)c=c.replace(/\d/,Gt),v--}var p=s.replace(new RegExp(l),c).replace(new RegExp(Ao,"g"),Gt);return m||(d?p=ha(Gt,d.length)+" "+p:i&&(p=ha(Gt,i.length)+this.getSeparatorAfterNationalPrefix(r)+p)),o&&(p=X0(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(r){var n=X4(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,r);if(!n){this.resetFormat();return}return this.populatedNationalNumberTemplate=n[0],this.populatedNationalNumberTemplatePosition=n[1],bd(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(r,n){var a=n.international,o=n.nationalPrefix;if(r.nationalPrefixFormattingRule()){var i=r.usesNationalPrefix();if(i&&o||!i&&!a)return!0}}}]),t})();function kd(t,e){return N9(t)||k9(t,e)||x9(t,e)||I9()}function I9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
48
48
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x9(t,e){if(t){if(typeof t=="string")return Nd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nd(t,e)}}function Nd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function k9(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,d;try{for(r=r.call(t);!(a=(i=r.next()).done)&&(n.push(i.value),!(e&&n.length===e));a=!0);}catch(l){o=!0,d=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw d}}return n}}function N9(t){if(Array.isArray(t))return t}function P9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M9(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function D9(t,e,r){return e&&M9(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var L9="["+Ot+st+"]+",R9=new RegExp("^"+L9+"$","i"),E9="(?:["+ia+"]["+Ot+st+"]*|["+Ot+st+"]+)",F9=new RegExp("[^"+Ot+st+"]+.*$"),S9=/[^\d\[\]]/,T9=(function(){function t(e){var r=e.defaultCountry,n=e.defaultCallingCode,a=e.metadata,o=e.onNationalSignificantNumberChange;P9(this,t),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=a,this.onNationalSignificantNumberChange=o}return D9(t,[{key:"input",value:function(r,n){var a=G9(r),o=kd(a,2),i=o[0],d=o[1],l=ca(i),s;return d&&(n.digits||(n.startInternationalNumber(),l||(s=!0))),l&&this.inputDigits(l,n),{digits:l,justLeadingPlus:s}}},{key:"inputDigits",value:function(r,n){var a=n.digits,o=a.length<3&&a.length+r.length>=3;if(n.appendDigits(r),o&&this.extractIddPrefix(n),this.isWaitingForCountryCallingCode(n)){if(!this.extractCountryCallingCode(n))return}else n.appendNationalSignificantNumberDigits(r);n.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(n.getNationalDigits(),function(i){return n.update(i)})}},{key:"isWaitingForCountryCallingCode",value:function(r){var n=r.international,a=r.callingCode;return n&&!a}},{key:"extractCountryCallingCode",value:function(r){var n=id("+"+r.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=n.countryCallingCode,o=n.number;if(a)return r.setCallingCode(a),r.update({nationalSignificantNumber:o}),!0}},{key:"reset",value:function(r){if(r){this.hasSelectedNumberingPlan=!0;var n=r._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=n&&S9.test(n)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(r,n){if(this.hasSelectedNumberingPlan){var a=fo(r,this.metadata),o=a.nationalPrefix,i=a.nationalNumber,d=a.carrierCode;if(i!==r)return this.onExtractedNationalNumber(o,d,i,r,n),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(r,n,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(r,a);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var o=fo(r,this.metadata),i=o.nationalPrefix,d=o.nationalNumber,l=o.carrierCode;if(d!==n)return this.onExtractedNationalNumber(i,l,d,r,a),!0}}},{key:"onExtractedNationalNumber",value:function(r,n,a,o,i){var d,l,s=o.lastIndexOf(a);if(s>=0&&s===o.length-a.length){l=!0;var f=o.slice(0,s);f!==r&&(d=f)}i({nationalPrefix:r,carrierCode:n,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:l,complexPrefixBeforeNationalSignificantNumber:d}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(r){if(this.extractAnotherNationalSignificantNumber(r.getNationalDigits(),r.nationalSignificantNumber,function(n){return r.update(n)}))return!0;if(this.extractIddPrefix(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0;if(this.fixMissingPlus(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0}},{key:"extractIddPrefix",value:function(r){var n=r.international,a=r.IDDPrefix,o=r.digits;if(r.nationalSignificantNumber,!(n||a)){var i=ad(o,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(i!==void 0&&i!==o)return r.update({IDDPrefix:o.slice(0,o.length-i.length)}),this.startInternationalNumber(r,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(r){if(!r.international){var n=od(r.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=n.countryCallingCode;if(n.number,a)return r.update({missingPlus:!0}),this.startInternationalNumber(r,{country:r.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(r,n){var a=n.country,o=n.callingCode;r.startInternationalNumber(a,o),r.nationalSignificantNumber&&(r.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(r){this.extractCountryCallingCode(r)&&this.extractNationalSignificantNumber(r.getNationalDigits(),function(n){return r.update(n)})}}]),t})();function $9(t){var e=t.search(E9);if(!(e<0)){t=t.slice(e);var r;return t[0]==="+"&&(r=!0,t=t.slice(1)),t=t.replace(F9,""),r&&(t="+"+t),t}}function O9(t){var e=$9(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function G9(t){var e=O9(t),r=kd(e,2),n=r[0],a=r[1];return R9.test(n)||(n=""),[n,a]}function wo(t){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wo(t)}function B9(t,e){return V9(t)||Y9(t,e)||j9(t,e)||z9()}function z9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j9(t,e){if(t){if(typeof t=="string")return Pd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pd(t,e)}}function Pd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Y9(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,d;try{for(r=r.call(t);!(a=(i=r.next()).done)&&(n.push(i.value),!(e&&n.length===e));a=!0);}catch(l){o=!0,d=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw d}}return n}}function V9(t){if(Array.isArray(t))return t}function Z9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W9(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function H9(t,e,r){return e&&W9(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Md=(function(){function t(e,r){Z9(this,t),this.metadata=new Ue(r);var n=this.getCountryAndCallingCode(e),a=B9(n,2),o=a[0],i=a[1];this.defaultCountry=o,this.defaultCallingCode=i,this.reset()}return H9(t,[{key:"getCountryAndCallingCode",value:function(r){var n,a;return r&&(wo(r)==="object"?(n=r.defaultCountry,a=r.defaultCallingCode):n=r),n&&!this.metadata.hasCountry(n)&&(n=void 0),[n,a]}},{key:"input",value:function(r){var n=this.parser.input(r,this.state),a=n.digits,o=n.justLeadingPlus;if(o)this.formattedOutput="+";else if(a){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var i;if(this.metadata.hasSelectedNumberingPlan()&&(i=this.formatter.format(a,this.state)),i===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var d=this.state.getNationalDigits();d&&(i=this.formatter.format(d,this.state))}this.formattedOutput=i?this.getFullNumber(i):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var r=this;return this.state=new W4({onCountryChange:function(a){r.country=a},onCallingCodeChange:function(a,o){r.metadata.selectNumberingPlan(o,a),r.formatter.reset(r.metadata.numberingPlan,r.state),r.parser.reset(r.metadata.numberingPlan)}}),this.formatter=new w9({state:this.state,metadata:this.metadata}),this.parser=new T9({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){r.determineTheCountryIfNeeded(),r.formatter.reset(r.metadata.numberingPlan,r.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var r=this.state.digits;if(r)return this._getCountry()}},{key:"_getCountry",value:function(){var r=this.state.country;return r}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(r){var n=this;if(this.isInternational()){var a=function(d){return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state,{spacing:!!d})+d},o=this.state.callingCode;return a(o?r?"".concat(o," ").concat(r):o:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return r}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var r=this.state,n=r.nationalSignificantNumber,a=r.complexPrefixBeforeNationalSignificantNumber,o=r.nationalPrefix,i=n,d=a||o;return d&&(i=d+i),i}},{key:"getNonFormattedNumber",value:function(){var r=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(r?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var r=this.getNonFormattedNumber();if(r)return r.replace(/[\+\d]/g,Gt)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var r=this.state.callingCode,n=this.metadata.getCountryCodesForCallingCode(r);return n&&n.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(sd(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var r=this.state,n=r.digits,a=r.callingCode,o=r.country,i=r.nationalSignificantNumber;if(n){if(this.isInternational())return a?"+"+a+i:"+"+n;if(o||a){var d=o?this.metadata.countryCallingCode():a;return"+"+d+i}}}},{key:"getNumber",value:function(){var r=this.state,n=r.nationalSignificantNumber,a=r.carrierCode,o=r.callingCode,i=this._getCountry();if(n&&!(!i&&!o)){if(i&&i===this.defaultCountry){var d=new Ue(this.metadata.metadata);d.selectNumberingPlan(i);var l=d.numberingPlan.callingCode(),s=this.metadata.getCountryCodesForCallingCode(l);if(s.length>1){var f=ld(n,{countries:s,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});f&&(i=f)}}var g=new go(i||o,n,this.metadata.metadata);return a&&(g.carrierCode=a),g}}},{key:"isPossible",value:function(){var r=this.getNumber();return r?r.isPossible():!1}},{key:"isValid",value:function(){var r=this.getNumber();return r?r.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),t})();function U9(t,e,r){if(e[t])return new go(t,e[t],r)}function _9(){return no(j4,arguments)}function wr(t){return Md.call(this,t,ro)}wr.prototype=Object.create(Md.prototype,{}),wr.prototype.constructor=wr;function X9(){return no(ua,arguments)}function ma(){return Ue.call(this,ro)}ma.prototype=Object.create(Ue.prototype,{}),ma.prototype.constructor=ma;function q9(){return no(U9,arguments)}const J9=[["Afghanistan (افغانستان)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (الجزائر)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (البحرين)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (جزر القمر)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (مصر)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (ایران)","ir","98"],["Iraq (العراق)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (ישראל)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (الأردن)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (الكويت)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (لبنان)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (ليبيا)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["North Macedonia (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (موريتانيا)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (المغرب)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (عُمان)","om","968"],["Pakistan (پاکستان)","pk","92"],["Palau","pw","680"],["Palestine (فلسطين)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (قطر)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (المملكة العربية السعودية)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (جنوب السودان)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්රී ලංකාව)","lk","94"],["Sudan (السودان)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (سوريا)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tristan da Cunha","ta","290"],["Tunisia (تونس)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (الصحراء الغربية)","eh","212",1,["5288","5289"]],["Yemen (اليمن)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]].map(t=>({id:t[1].toUpperCase(),label:`${t[0]} +${t[2]}`,name:t[0],iso2:t[1].toUpperCase(),dialCode:t[2],priority:t[3]||0,areaCodes:t[4]||null})),K9={AC:"40123",AD:"312345",AE:"501234567",AF:"701234567",AG:"2684641234",AI:"2642351234",AL:"672123456",AM:"77123456",AO:"923123456",AR:"91123456789",AS:"6847331234",AT:"664123456",AU:"412345678",AW:"5601234",AX:"412345678",AZ:"401234567",BA:"61123456",BB:"2462501234",BD:"1812345678",BE:"470123456",BF:"70123456",BG:"43012345",BH:"36001234",BI:"79561234",BJ:"90011234",BL:"690001234",BM:"4413701234",BN:"7123456",BO:"71234567",BQ:"3181234",BR:"11961234567",BS:"2423591234",BT:"17123456",BW:"71123456",BY:"294911911",BZ:"6221234",CA:"5062345678",CC:"412345678",CD:"991234567",CF:"70012345",CG:"061234567",CH:"781234567",CI:"0123456789",CK:"71234",CL:"221234567",CM:"671234567",CN:"13123456789",CO:"3211234567",CR:"83123456",CU:"51234567",CV:"9911234",CW:"95181234",CX:"412345678",CY:"96123456",CZ:"601123456",DE:"15123456789",DJ:"77831001",DK:"32123456",DM:"7672251234",DO:"8092345678",DZ:"551234567",EC:"991234567",EE:"51234567",EG:"1001234567",EH:"650123456",ER:"7123456",ES:"612345678",ET:"911234567",FI:"412345678",FJ:"7012345",FK:"51234",FM:"3501234",FO:"211234",FR:"612345678",GA:"06031234",GB:"7400123456",GD:"4734031234",GE:"555123456",GF:"694201234",GG:"7781123456",GH:"231234567",GI:"57123456",GL:"221234",GM:"3012345",GN:"601123456",GP:"690001234",GQ:"222123456",GR:"6912345678",GT:"51234567",GU:"6713001234",GW:"955012345",GY:"6091234",HK:"51234567",HN:"91234567",HR:"921234567",HT:"34101234",HU:"201234567",ID:"812345678",IE:"850123456",IL:"502345678",IM:"7924123456",IN:"8123456789",IO:"3801234",IQ:"7912345678",IR:"9123456789",IS:"6111234",IT:"3123456789",JE:"7797712345",JM:"8762101234",JO:"790123456",JP:"9012345678",KE:"712123456",KG:"700123456",KH:"91234567",KI:"72001234",KM:"3212345",KN:"8697652917",KP:"1921234567",KR:"1020000000",KW:"50012345",KY:"3453231234",KZ:"7710009998",LA:"2023123456",LB:"71123456",LC:"7582845678",LI:"660234567",LK:"712345678",LR:"770123456",LS:"50123456",LT:"61234567",LU:"628123456",LV:"21234567",LY:"912345678",MA:"650123456",MC:"612345678",MD:"62112345",ME:"67622901",MF:"690001234",MG:"321234567",MH:"2351234",MK:"72345678",ML:"65012345",MM:"92123456",MN:"88123456",MO:"66123456",MP:"6702345678",MQ:"696201234",MR:"22123456",MS:"6644923456",MT:"96961234",MU:"52512345",MV:"7712345",MW:"991234567",MX:"12221234567",MY:"123456789",MZ:"821234567",NA:"811234567",NC:"751234",NE:"93123456",NF:"381234",NG:"8021234567",NI:"81234567",NL:"612345678",NO:"40612345",NP:"9841234567",NR:"5551234",NU:"8884012",NZ:"211234567",OM:"92123456",PA:"61234567",PE:"912345678",PF:"87123456",PG:"70123456",PH:"9051234567",PK:"3012345678",PL:"512345678",PM:"551234",PR:"7872345678",PS:"599123456",PT:"912345678",PW:"6201234",PY:"961456789",QA:"33123456",RE:"692123456",RO:"712034567",RS:"601234567",RU:"9123456789",RW:"720123456",SA:"512345678",SB:"7421234",SC:"2510123",SD:"911231234",SE:"701234567",SG:"81234567",SH:"51234",SI:"31234567",SJ:"41234567",SK:"912123456",SL:"25123456",SM:"66661212",SN:"701234567",SO:"71123456",SR:"7412345",SS:"977123456",ST:"9812345",SV:"70123456",SX:"7215205678",SY:"944567890",SZ:"76123456",TA:"8999",TC:"6492311234",TD:"63012345",TG:"90112345",TH:"812345678",TJ:"917123456",TK:"7290",TL:"77212345",TM:"66123456",TN:"20123456",TO:"7715123",TR:"5012345678",TT:"8682911234",TV:"901234",TW:"912345678",TZ:"621234567",UA:"501234567",UG:"712345678",US:"2015550123",UY:"94231234",UZ:"912345678",VA:"3123456789",VC:"7844301234",VE:"4121234567",VG:"2843001234",VI:"3406421234",VN:"912345678",VU:"5912345",WF:"821234",WS:"7212345",XK:"43201234",YE:"712345678",YT:"639012345",ZA:"711234567",ZM:"955123456",ZW:"712345678"},Q9=t=>Object.fromEntries(Object.entries({countryCode:t?t.country:null,isValid:t?t.isValid():!1,isPossible:t?t.isPossible():!1,phoneNumber:t?t.number:null,countryCallingCode:t?t.countryCallingCode:null,formattedNumber:t?new wr().input(t.number):null,nationalNumber:t?t.nationalNumber:null,formatInternational:t?new wr().input(t.number):null,formatOriginal:t?new wr().input(t.number).slice(t.countryCallingCode.length+1).trim():null,formatNational:t?new wr(t.country).input(t.number):null,uri:t?t.getURI():null,e164:t?t.number:null}).filter(([,r])=>r!==null)),eu=(t,{format:e,spaces:r}={format:"national",spaces:!0})=>{const n=q9(t,K9);if(n)switch(e){case"international":return r?n.formatInternational():n.number;default:return r?n.formatInternational().slice(n.countryCallingCode.length+1).trim():n.nationalNumber}else throw new Error(`No country found with this country code: ${t}`)},tu=t=>{var o;const e=/^\d+$/;let r="+"+X9(t);const a=(o=new ma().numberingPlan)==null?void 0:o.leadingDigits();return a&&e.test(a)&&(r+=a),r},Io=(t,{country:e,countries:r,required:n}={})=>{if(t==="+")return e;const a=ru(t);return a&&(!r||r.indexOf(a)>=0)?a:e&&!n&&!nu(t,e)?void 0:e},ru=t=>{const e=new wr;return e.input(t),e.getCountry()},nu=(t,e)=>{const r=tu(e);let n=0;for(;n<t.length&&n<r.length;){if(t[n]!==r[n])return!1;n++}return!0},Dd=(t,{spaces:e}={spaces:!0})=>{const r={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};return e&&new RegExp("[\\t\\n\\v\\f\\r \\u00a0\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u200b\\u2028\\u2029\\u3000]","g").test(t)?t:r[t]},au=(t,{allowSpaces:e,parseCharacter:r,disallowPlusSign:n})=>{let a="";for(let o=0;o<t.length;o++){const i=r(t[o],a,e,n);i!==void 0&&(a+=i)}return a},ou=(t,e,r,n)=>!n&&t==="+"&&!e?t:Dd(t,{spaces:r}),xo=(t,{handler:e,spaces:r,strictCountryCode:n})=>{const a=o=>{if(t&&t.contains(o.target)){const i=o.target.value,d=au(i,{parseCharacter:ou,allowSpaces:r,disallowPlusSign:n});t.value=d,e(d)}};return t.addEventListener("input",a,!0),{update(o){(o.value===null||o.value==="")&&(t.value="")},destroy(){t.removeEventListener("input",a,!0)}}};var iu=F("<input/>");function du(t,e){const r=zi(e,["children","$$slots","$$events","$$legacy"]),n=zi(r,["updateValue","autocomplete","class","disabled","id","name","placeholder","readonly","required","size","value","country","detailedValue","valid","options","el"]);Ce(e,!1);const a=ur(),o=_1(),i={autoPlaceholder:!0,spaces:!0,invalidateOnCountryChange:!1,format:"national",strictCountry:!1};let d=O(e,"autocomplete",8,null),l=O(e,"class",8,""),s=O(e,"disabled",8,!1),f=O(e,"id",24,()=>"phone-input-"+new Date().getTime().toString(36)+Math.random().toString(36).slice(2)),g=O(e,"name",8,null),c=O(e,"placeholder",8,null),m=O(e,"readonly",8,null),h=O(e,"required",8,null),v=O(e,"size",8,null),p=O(e,"value",12),C=O(e,"country",28,()=>{}),x=O(e,"detailedValue",12,null),w=O(e,"valid",12,!0),A=O(e,"options",8,i),I=O(e,"el",28,()=>{}),M=ur(p()),E=C();const b={...i,...A()},D=T=>{s()||m()||X(T,C())},W=T=>(T!==C()&&(C(T),E=C(),o("updateCountry",C()),o("updateDetailedValue",x())),C()),K=(T,Q,be)=>{let $=0;for(let fe=0;fe<be;fe++){const le=Dd(T[fe],{spaces:!1});if(le>="0"&&le<="9"){for(;!(Q[$]>="0"&&Q[$]<="9")&&$<Q.length;)$++;$++}}return $},X=async(T,Q=null)=>{var $,fe,le,$e,xe,R,k;const be=T;if(be!==null){const U=Io(be),ee=($=A())!=null&&$.strictCountry?Q:U??Q;!((fe=A())!=null&&fe.strictCountry)&&U&&U!==E&&W(U);try{x(Q9(_9(be,ee??void 0)))}catch(ke){if(ke instanceof ar)x({isValid:!1,error:ke.message}),o("parseError",ke.message);else throw ke}const re=b.format==="national"?"nationalNumber":"e164",Pe=b.format==="national"?"formatOriginal":"formatInternational",Le=((le=I())==null?void 0:le.selectionStart)||0;if(b.spaces&&(($e=x())!=null&&$e[Pe])){if(S(M,x()[Pe]??null),await vi(),I()){const ke=K(be,u(M),Le);I(I().selectionStart=ke,!0),I(I().selectionEnd=ke,!0)}}else if((xe=x())!=null&&xe[re]&&(S(M,x()[re]??null),await vi(),I())){const ke=K(be,u(M),Le);I(I().selectionStart=ke,!0),I(I().selectionEnd=ke,!0)}p(((R=x())==null?void 0:R.e164)??be??null),w(((k=x())==null?void 0:k.isValid)??!1),o("updateValid",w()),o("updateValue",p()),o("updateDetailedValue",x())}else be===null&&Q!==null?Q!==E&&(E=Q,w(!A().invalidateOnCountryChange),p(null),S(M,null),x(null),o("updateValid",w()),o("updateValue",p()),o("updateDetailedValue",x())):(w(!0),p(null),x(null),E=Q,o("updateValid",w()),o("updateDetailedValue",x()),S(M,null))};let ae=!0;const de=T=>{ae||X(null,T),ae=!1},G=(T,Q)=>{var $;const be=T;be&&X(be,($=A())!=null&&$.strictCountry?C():Io(be)||Q)};H1(()=>{var T;p()&&X(p(),(T=A())!=null&&T.strictCountry?C():Io(p())||C())}),Fn(()=>mr(C()),()=>{de(C())}),Fn(()=>(mr(C()),mr(c())),()=>{S(a,b.autoPlaceholder&&C()?eu(C(),{format:b.format,spaces:b.spaces}):c())}),Fn(()=>(mr(p()),u(M),mr(x())),()=>{p()===null&&u(M)!==null&&x()!==null&&(S(M,null),x(null),o("updateDetailedValue",x()))}),Qo(),Zn();var z=iu();return Ya(z),St(z,()=>({...n,autocomplete:d(),class:l(),disabled:s(),id:f(),name:g(),readonly:m(),required:h(),size:v(),placeholder:u(a),type:"tel",value:u(M)})),pn(z,T=>I(T),()=>I()),Xe(()=>Ct("beforeinput",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("blur",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("change",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("click",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("focus",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("input",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("keydown",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("keypress",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("keyup",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("paste",z,function(T){Jt.call(this,e,T)})),Q1(z,(T,Q)=>xo==null?void 0:xo(T,Q),()=>({handler:D,spaces:b.spaces,value:p(),strictCountryCode:b.strictCountry})),y(t,z),h2(e,"updateValue",G),ye({updateValue:G})}var lu=F("<option> </option>"),su=F('<label><div class="absolute top-0 left-px bottom-px z-20 text-gray-300 focus-within:text-gray-400"><div class="relative inline-flex pl-4 pr-2 items-center h-full gap-3 rounded-md"><span></span> <!></div> <select id="phone-country-select" class="absolute peer inset-0 opacity-0 cursor-pointer"></select></div> <!> <div> </div></label>');function uu(t,e){Ce(e,!0);let r=O(e,"value",15),n=O(e,"valid",15),a=O(e,"selectedCountry",15),o=O(e,"hasError",3,!1),i=ne(null),d=Et({autoPlaceholder:!1});Dr(()=>{var w;r(),(w=e.onChange)==null||w.call(e)});const l=w=>w.sort((A,I)=>A.label.localeCompare(I.label));var s=su(),f=L(s),g=L(f),c=L(g),m=N(c,2);Kt(m,{class:"!text-xs",name:"chevron-down"}),P(g);var h=N(g,2);Fr(h,21,()=>l(J9),w=>w.id,(w,A)=>{var I=lu(),M={},E=L(I,!0);P(I),B(()=>{M!==(M=u(A).id)&&(I.value=(I.__value=u(A).id)??""),_(E,u(A).label)}),y(w,I)}),P(h),P(f);var v=N(f,2);const p=H(()=>te("placeholder:text-transparent relative peer w-full rounded-md border border-gray-200 pl-[84px] pr-4 pb-2 pt-6 text-base leading-snug text-gray-800 outline-0 transition-colors duration-150 placeholder:text-gray-400 focus:border-gray-300 focus:z-10 disabled:opacity-[20%] dark:border-gray-700 dark:focus:border-gray-600 dark:bg-black/25 dark:text-gray-100",o()&&"!border-red-500"));du(v,{get name(){return e.name},get options(){return d},required:!0,get class(){return u(p)},get country(){return a()},set country(w){a(w)},get detailedValue(){return u(i)},set detailedValue(w){S(i,w,!0)},get value(){return r()},set value(w){r(w)},get valid(){return n()},set valid(w){n(w)}});var C=N(v,2),x=L(C,!0);P(C),P(s),B((w,A,I,M)=>{Ae(s,1,w),Ae(c,1,`flag flag-${A??""} flex-shrink-0`),Ae(C,1,I),_(x,M)},[()=>Ne(te("relative w-full gap-2 column-left",o()&&"z-20")),()=>{var w;return(w=a())==null?void 0:w.toLowerCase()},()=>Ne(te("pointer-events-none absolute z-20 left-[84px] right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs",!!r()&&"-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs")),()=>e.t("phone_number")]),Ri(h,a),y(t,s),ye()}var cu=(t,e)=>S(e,!1),gu=(t,e)=>S(e,!0),fu=F('<div class="row w-full rounded-md bg-gray-200 dark:bg-black/25 dark:border dark:border-gray-800 p-1 gap-1 text-xs font-bold"><button type="button"> </button> <button type="button"> </button></div>'),hu=F('<div class="text-sm uppercase font-bold pt-1 -mb-0.5"> </div> <!> <div class="text-sm uppercase font-bold pt-1 -mb-0.5"> </div>',1),mu=F('<!> <div> <span class="text-primary"> </span>?</div>',1),vu=F('<!> <div class="text-center whitespace-nowrap"> </div>',1),pu=F("<!> <!>",1),bu=F("<!> <!> <!> <!> <!>",1),Cu=F('<span class="text-sm"> </span>'),yu=F('<div class="w-full"><div><!></div> <!></div>'),Au=F('<div class="[&>svg]:max-w-full"><!></div>'),wu=F('<div class="gap-1 hidden @xl:row-left"><!> <!> <!></div>'),Iu=F("<!> <!>",1),xu=F('<!> <!> <!> <!> <!> <div class="grid @sm:grid-cols-2 w-full gap-2 auto-rows-fr"></div>',1),ku=F("<div> </div>"),Nu=F('<div class="bg-white w-full dark:bg-black/25 border border-red-500 text-red-500 px-4 py-3 !text-sm rounded-md font-bold"></div>'),Pu=F('<form class="contents" novalidate=""><!> <!> <!> <button type="button" class="text-sm font-bold mx-auto hover:underline p-1 row gap-1"><!> <span> </span></button></form> <!>',1);function Mu(t,e){Ce(e,!0);const r=ks(e.checkout.language).filter(R=>e.checkout.items.every(k=>!k.geoRestrictions||k.geoRestrictions.type==="ALLOW"&&k.geoRestrictions.countries.includes(R.value)||k.geoRestrictions.type==="BLOCK"&&!k.geoRestrictions.countries.includes(R.value)));let n=ne(""),a=ne(""),o=ne(""),i=ne(""),d=ne(!1),l=ne(Et(e.checkout.country||"SE")),s=ne(Et(e.checkout.country||"SE")),f=ne(""),g=ne(""),c=ne(""),m=ne(!1),h=ne(void 0),v=ne(void 0),p=ne(""),C,x=ne(!1),w=ne(""),A=ne(Et(e.checkout.giftMode)),I=ne("");Dr(()=>{var R;r.map(k=>k.value).includes(u(l))||S(l,(R=r[0])==null?void 0:R.value,!0)}),Dr(()=>{(async()=>{const R=await e.api.auth.getUser();u(n)||S(n,(R==null?void 0:R.email)||"",!0)})()});const M=()=>{var Pe,Le,ke,Re,ze,qe,rt,je,oe,se,J,we,ue,he,Ve,Ye,Ze,Oe,ht,nt,Mt,Dt,Se,_e,Te;const R=[];to(u(n))||R.push(["email","invalid_email"]),u(A)&&!to(u(I))&&R.push(["payerEmail","invalid_email"]),(ke=(Le=(Pe=e.checkout)==null?void 0:Pe.fieldSettings)==null?void 0:Le.phone)!=null&&ke.enabled&&((qe=(ze=(Re=e.checkout)==null?void 0:Re.fieldSettings)==null?void 0:ze.phone)!=null&&qe.required)&&!u(i)&&R.push(["phoneNumber","phone_number_required"]),(oe=(je=(rt=e.checkout)==null?void 0:rt.fieldSettings)==null?void 0:je.phone)!=null&&oe.enabled&&u(i)&&!u(d)&&R.push(["phoneNumber","invalid_phone_number"]),(we=(J=(se=e.checkout)==null?void 0:se.fieldSettings)==null?void 0:J.name)!=null&&we.enabled&&((Ve=(he=(ue=e.checkout)==null?void 0:ue.fieldSettings)==null?void 0:he.name)!=null&&Ve.required)&&!u(a)&&R.push(["firstName","first_name_required"]),(Oe=(Ze=(Ye=e.checkout)==null?void 0:Ye.fieldSettings)==null?void 0:Ze.name)!=null&&Oe.enabled&&((Mt=(nt=(ht=e.checkout)==null?void 0:ht.fieldSettings)==null?void 0:nt.name)!=null&&Mt.required)&&!u(o)&&R.push(["lastName","last_name_required"]),u(x)&&!to(u(w))&&R.push(["referralEmail","referral_email_required"]);const k=new Date().getFullYear(),U=parseInt(u(f)),ee=parseInt(u(g)),re=parseInt(u(c));u(f)&&(isNaN(U)||U<1900||U>k)&&R.push(["birthYear","invalid_birth_year"]),u(g)&&(isNaN(ee)||ee<1||ee>12)&&R.push(["birthMonth","invalid_birth_month"]),u(c)&&(isNaN(re)||re<1||re>31)&&R.push(["birthDay","invalid_birth_day"]),(Se=(Dt=e.checkout.fieldSettings)==null?void 0:Dt.birthdate)!=null&&Se.enabled&&((Te=(_e=e.checkout.fieldSettings)==null?void 0:_e.birthdate)!=null&&Te.required)&&(!u(f)||!u(g)||!u(c))&&R.push(["birthDate","birthdate_required"]),S(h,R.length?R.reduce((Ge,[Ke,yt])=>({...Ge,[Ke]:yt}),{}):void 0,!0)},E=R=>S(v,R,!0),b=()=>{S(h,void 0),clearTimeout(C),C=setTimeout(()=>{var R;S(p,((R=R0.run({email:u(n)}))==null?void 0:R.full)||"",!0)},400)},D=async R=>{var U;if(R.preventDefault(),M(),!(u(h)||!u(v)||e.api.events.emit("sesamyPaywallCheckoutRedirect",{checkoutId:e.checkout.id,country:u(l),paymentMethod:u(v)},!0).canceled)){S(m,!0);try{const ee=["GOOGLE-PAY","APPLE-PAY"].includes(u(v).method),re=u(f)&&u(g)&&u(c)?`${u(f)}-${u(g).padStart(2,"0")}-${u(c).padStart(2,"0")}`:void 0;await e.api.checkouts.update(e.checkout.id,{paymentData:{provider:u(v).provider,method:ee?"CARD":u(v).method},country:u(l),email:u(n),phoneNumber:u(i)||void 0,givenName:u(a)||void 0,familyName:u(o)||void 0,birthDate:re,referralEmail:u(x)?u(w):void 0,payerEmail:u(A)?u(I):void 0}),F0(e.checkout,u(v)),S(m,!1);return}catch(ee){(U=ee==null?void 0:ee.message)!=null&&U.includes("User already owns item")?S(h,{general:"user_already_owns_item"},!0):(console.error(ee),S(h,{general:"something_went_wrong"},!0)),S(m,!1);return}}},W=e.checkout.availablePaymentMethods.reduce((R,{provider:k,methods:U})=>[...R,...U!=null&&U.length&&k?U.map(ee=>({provider:k,method:ee})):[]],[]);Fs()&&W.push({provider:"STRIPE",method:"GOOGLE-PAY"}),Ss()&&W.push({provider:"STRIPE",method:"APPLE-PAY"});const K=W.some(R=>R.method==="STRIPE_KLARNA"),X=W.some(R=>R.method==="KLARNA_PRIVATE");if(K&&X){const R=W.findIndex(k=>k.method==="KLARNA_PRIVATE");R!==-1&&W.splice(R,1)}const ae=Js.map(R=>W.find(k=>k.method===R)).filter(R=>R!==void 0);ae.length&&E(ae[0]);var de=Pu(),G=Y(de),z=L(G);Nt(z,{up:!0,left:!0,class:"gap-2 w-full",children:(R,k)=>{var U=xu(),ee=Y(U);{var re=oe=>{var se=fu(),J=L(se);J.__click=[cu,A];var we=L(J,!0);P(J);var ue=N(J,2);ue.__click=[gu,A];var he=L(ue,!0);P(ue),P(se),B((Ve,Ye,Ze,Oe)=>{Ae(J,1,Ve),_(we,Ye),Ae(ue,1,Ze),_(he,Oe)},[()=>Ne(te("rounded-md px-3 py-2 flex-1",!u(A)&&"bg-white dark:bg-black/25")),()=>e.t("not_gift"),()=>Ne(te("rounded-md px-3 py-2 flex-1",u(A)&&"bg-white dark:bg-black/25")),()=>e.t("is_gift")]),y(oe,se)};j(ee,oe=>{var se;(se=e.paywall.settings.displayOptions)!=null&&se.enableGift&&oe(re)})}var Pe=N(ee,2);{var Le=oe=>{var se=hu(),J=Y(se),we=L(J,!0);P(J);var ue=N(J,2);eo(ue,{children:(Ye,Ze)=>{const Oe=H(()=>e.t("email")),ht=H(()=>{var nt;return(nt=u(h))==null?void 0:nt.payerEmail});Tt(Ye,{name:"payer-email",compact:!0,get placeholder(){return u(Oe)},get hasError(){return u(ht)},onkeyup:()=>S(h,void 0),get value(){return u(I)},set value(nt){S(I,nt,!0)}})},$$slots:{default:!0}});var he=N(ue,2),Ve=L(he,!0);P(he),B((Ye,Ze)=>{_(we,Ye),_(Ve,Ze)},[()=>e.t("your_details"),()=>e.t("recipient_details")]),y(oe,se)};j(Pe,oe=>{u(A)&&oe(Le)})}var ke=N(Pe,2);eo(ke,{children:(oe,se)=>{var J=bu(),we=Y(J);const ue=H(()=>e.t("email")),he=H(()=>{var Se;return(Se=u(h))==null?void 0:Se.email});Tt(we,{onkeyup:b,name:"email",compact:!0,get placeholder(){return u(ue)},get hasError(){return u(he)},autocomplete:"email",get value(){return u(n)},set value(Se){S(n,Se,!0)}});var Ve=N(we,2);const Ye=H(()=>!!u(p));E0(Ve,{get isOpen(){return u(Ye)},children:(Se,_e)=>{Or(Se,{onclick:()=>{S(n,u(p),!0),S(p,"")},class:"bg-primary/10 gap-4 px-2 py-3 !justify-between active:bg-primary/10 text-sm border-x border-gray-200 text-gray-500 hover:cursor-pointer hover:bg-primary/15 transition-colors duration-75",children:(Te,Ge)=>{var Ke=vu(),yt=Y(Ke);Or(yt,{class:"gap-2",children:(Me,Bt)=>{var At=mu(),Lt=Y(At);Kt(Lt,{class:"text-primary text-xl",name:"info"});var ut=N(Lt,2),Gr=L(ut),Br=N(Gr),va=L(Br,!0);P(Br),Wt(),P(ut),B(Ir=>{_(Gr,`${Ir??""} `),_(va,u(p))},[()=>e.t("did_you_mean")]),y(Me,At)},$$slots:{default:!0}});var ce=N(yt,2),Be=L(ce,!0);P(ce),B(Me=>_(Be,Me),[()=>e.t("click_to_update")]),y(Te,Ke)},$$slots:{default:!0}})},$$slots:{default:!0}});var Ze=N(Ve,2);const Oe=H(()=>e.t("country"));Es(Ze,{get options(){return r},name:"country",compact:!0,autocomplete:"country",get placeholder(){return u(Oe)},get value(){return u(l)},set value(Se){S(l,Se,!0)}});var ht=N(Ze,2);{var nt=Se=>{const _e=H(()=>{var Te;return!!((Te=u(h))!=null&&Te.phoneNumber)});uu(Se,{get t(){return e.t},get hasError(){return u(_e)},onChange:()=>S(h,void 0),name:"tel",get value(){return u(i)},set value(Te){S(i,Te,!0)},get valid(){return u(d)},set valid(Te){S(d,Te,!0)},get selectedCountry(){return u(s)},set selectedCountry(Te){S(s,Te,!0)}})};j(ht,Se=>{var _e,Te,Ge;(Ge=(Te=(_e=e.checkout)==null?void 0:_e.fieldSettings)==null?void 0:Te.phone)!=null&&Ge.enabled&&Se(nt)})}var Mt=N(ht,2);{var Dt=Se=>{var _e=pu(),Te=Y(_e);const Ge=H(()=>e.t("first_name")),Ke=H(()=>{var Me;return(Me=u(h))==null?void 0:Me.firstName});Tt(Te,{onkeyup:()=>S(h,void 0),name:"first-name",compact:!0,get placeholder(){return u(Ge)},get hasError(){return u(Ke)},autocomplete:"given-name",get value(){return u(a)},set value(Me){S(a,Me,!0)}});var yt=N(Te,2);const ce=H(()=>e.t("last_name")),Be=H(()=>{var Me;return(Me=u(h))==null?void 0:Me.lastName});Tt(yt,{onkeyup:()=>S(h,void 0),name:"last-name",compact:!0,get placeholder(){return u(ce)},get hasError(){return u(Be)},autocomplete:"family-name",get value(){return u(o)},set value(Me){S(o,Me,!0)}}),y(Se,_e)};j(Mt,Se=>{var _e,Te,Ge;(Ge=(Te=(_e=e.checkout)==null?void 0:_e.fieldSettings)==null?void 0:Te.name)!=null&&Ge.enabled&&Se(Dt)})}y(oe,J)},$$slots:{default:!0}});var Re=N(ke,2);{var ze=oe=>{const se=H(()=>{var J,we,ue,he;return((J=u(h))==null?void 0:J.birthYear)||((we=u(h))==null?void 0:we.birthMonth)||((ue=u(h))==null?void 0:ue.birthDay)||((he=u(h))==null?void 0:he.birthDate)});qs(oe,{get t(){return e.t},get hasError(){return u(se)},onYearChange:()=>S(h,void 0),onMonthChange:()=>S(h,void 0),onDayChange:()=>S(h,void 0),get year(){return u(f)},set year(J){S(f,J,!0)},get month(){return u(g)},set month(J){S(g,J,!0)},get day(){return u(c)},set day(J){S(c,J,!0)}})};j(Re,oe=>{var se,J,we;(we=(J=(se=e.checkout)==null?void 0:se.fieldSettings)==null?void 0:J.birthdate)!=null&&we.enabled&&oe(ze)})}var qe=N(Re,2);{var rt=oe=>{var se=yu(),J=L(se),we=L(J);Kn(we,{id:"got-referred",name:"got-referred",type:"checkbox",get checked(){return u(x)},onchange:he=>{const Ve=he.target;S(x,Ve.checked,!0)},children:(he,Ve)=>{var Ye=Cu(),Ze=L(Ye,!0);P(Ye),B(Oe=>_(Ze,Oe),[()=>e.t("got_referred")]),y(he,Ye)},$$slots:{default:!0}}),P(J);var ue=N(J,2);E0(ue,{get isOpen(){return u(x)},children:(he,Ve)=>{const Ye=H(()=>e.t("referral_email")),Ze=H(()=>{var Oe;return(Oe=u(h))==null?void 0:Oe.referralEmail});Tt(he,{name:"referral-email",compact:!0,get placeholder(){return u(Ye)},class:"rounded-t-none -mt-px",get hasError(){return u(Ze)},onkeyup:()=>S(h,void 0),get value(){return u(w)},set value(Oe){S(w,Oe,!0)}})},$$slots:{default:!0}}),P(se),B(he=>Ae(J,1,he),[()=>Ne(te("bg-white rounded-md border border-gray-200 dark:bg-black/25 dark:border-gray-700",u(x)&&"rounded-b-none"))]),y(oe,se)};j(qe,oe=>{var se,J,we;(we=(J=(se=e.checkout)==null?void 0:se.fieldSettings)==null?void 0:J.referral)!=null&&we.enabled&&oe(rt)})}var je=N(qe,2);Fr(je,23,()=>ae,oe=>`${oe.provider}-${oe.method}`,(oe,se,J,we)=>{const ue=H(()=>{const{provider:he,method:Ve}=u(se);return{provider:he,method:Ve}});Qa(oe,{children:(he,Ve)=>{const Ye=H(()=>!u(J)),Ze=H(()=>`${u(ue).provider}-${u(ue).method}`);Kn(he,{get checked(){return u(Ye)},get id(){return u(Ze)},name:"payment-method",onchange:()=>E(u(se)),children:(Oe,ht)=>{var nt=Iu(),Mt=Y(nt);{var Dt=Ge=>{Kt(Ge,{name:"card",class:"text-2xl"})},Se=Ge=>{var Ke=Au(),yt=L(Ke);const ce=H(()=>u(ue).method.includes("KLARNA")?"21":"25");h0(yt,{get method(){return u(ue).method},width:"auto",get height(){return u(ce)},darkModeSupport:!0}),P(Ke),y(Ge,Ke)};j(Mt,Ge=>{u(ue).method==="CARD"?Ge(Dt):Ge(Se,!1)})}var _e=N(Mt,2);{var Te=Ge=>{var Ke=wu(),yt=L(Ke);Jn(yt,{size:"sm",name:"visa"});var ce=N(yt,2);Jn(ce,{size:"sm",name:"amex"});var Be=N(ce,2);Jn(Be,{size:"sm",name:"mastercard"}),P(Ke),y(Ge,Ke)};j(_e,Ge=>{u(ue).method&&["CARD","GOOGLE-PAY","APPLE-PAY"].includes(u(ue).method)&&Ge(Te)})}y(Oe,nt)},$$slots:{default:!0}})},$$slots:{default:!0}})}),P(je),y(R,U)},$$slots:{default:!0}});var T=N(z,2);{var Q=R=>{var k=Nu();Fr(k,21,()=>Object.values(u(h)),zn,(U,ee)=>{var re=ku(),Pe=L(re,!0);P(re),B(Le=>_(Pe,Le),[()=>e.t(u(ee))]),y(U,re)}),P(k),y(R,k)};j(T,R=>{u(h)&&R(Q)})}var be=N(T,2);Cn(be,{get loading(){return u(m)},get disabled(){return u(m)},class:"mt-2 w-full shadow-md bg-[var(--s-paywall-btn-bg-color)] text-[var(--s-paywall-btn-text-color)]",type:"submit",children:(R,k)=>{Wt();var U=qt();B(ee=>_(U,ee),[()=>e.t("pay_now")]),y(R,U)},$$slots:{default:!0}});var $=N(be,2);$.__click=function(...R){var k;(k=e.onResetCheckout)==null||k.apply(this,R)};var fe=L($);Kt(fe,{name:"chevron-left",class:"text-[8px]"});var le=N(fe,2),$e=L(le,!0);P(le),P($),P(G);var xe=N(G,2);pr(xe,()=>"<style>"+ys.replace("url(flags_responsive.png)",`url(${As})`)+"</style>"),B(R=>_($e,R),[()=>e.t("go_back")]),Ct("submit",G,D),y(t,de),ye()}Jr(["click"]);function Du(t,e){const r=async o=>{try{return await o.auth.isAuthenticated()}catch(i){console.error("Error checking login status:",i)}};var n=Ie(),a=Y(n);Ft(a,()=>r(e.api),null,(o,i)=>{var d=Ie(),l=Y(d);{var s=f=>{var g=Ie(),c=Y(g);Er(c,()=>e.children),y(f,g)};j(l,f=>{u(i)||f(s)})}y(o,d)}),y(t,n)}const Lu=t=>{const e=parseFloat(t);return isNaN(e)?0:e};var Ru=F('<sesamy-login><span slot="button-text"> </span></sesamy-login>',2),Eu=F('<!> <div class="w-full h-px from-transparent bg-gradient-to-r to-transparent via-primary opacity-30"></div>',1),Fu=F('<img class="h-7 mb-6"/>'),Su=F("<!> <!>",1),Tu=F('<form class="contents"><!> <!></form>'),$u=F("<!> <span><!></span>",1),Ou=F('<!> <div><!> <div class="text-2xl leading-tight @md:text-3xl font-bold max-w-[600px]"> </div></div> <!> <!> <!> <!> <div class="gap-3 row !justify-between w-full mt-4 @md:mt-8"><!> <!></div>',1),Gu=F('<div class="@container"><!></div>'),Bu=F("<!> <!>",1);function Ld(t,e){var xe,R;Ce(e,!0);let r=O(e,"horizontal",3,!1),n=kt(e,["$$slots","$$events","$$legacy","api","t","horizontal","host","paywall"]),a=ne(void 0),o=ne(void 0),i=ne(!1),d=ne("");const l=n!=null&&n.price?Lu(n.price):(xe=e.api.content.get(e.host))==null?void 0:xe.price,s=(n==null?void 0:n["item-src"])||((R=e.api.content.get(e.host))==null?void 0:R.url),f=(n==null?void 0:n["redirect-url"])||window.location.href;let{subscriptions:g,singlePurchase:c,headline:m,currency:h,mainColor:v,showLoginButton:p,features:C,footerPaymentMethods:x,logoUrl:w,vendorId:A,settings:{useDefaultLogo:I,styling:M}}=e.paywall;const E=async()=>{var ee,re;if(r())return!1;const k=e!=null&&e.pass?e.pass.split(";"):(re=(ee=e.api.content.get(e.host))==null?void 0:ee.pass)==null?void 0:re.split(";"),U=await e.api.entitlements.hasAccess(s||"",k);return e.api.events.emit("sesamyPaywallAccessChecked",{hasAccess:U,paywallId:e.paywall.id,articleUrl:s,passes:k}),U},b=async k=>{if(S(d,""),S(i,!0),k!=null&&k.url&&(k==null?void 0:k.url)!==s){window.location.assign(k.url);return}const U=k!=null&&k.url?{url:k.url}:{sku:k.sku,purchaseOptionId:k.poId};try{const ee={items:[U],requestedDiscountCodes:k.discountCode?[k.discountCode]:void 0,redirectUrl:f,price:k.price,currency:h,attribution:{utmSource:n==null?void 0:n["utm-source"],utmMedium:n==null?void 0:n["utm-medium"],utmCampaign:n==null?void 0:n["utm-campaign"],utmTerm:n==null?void 0:n["utm-term"],utmContent:n==null?void 0:n["utm-content"],source:"PAYWALL",sourceId:e.paywall.id}};if(e.api.events.emit("sesamyPaywallCreateCheckout",{payload:ee,product:k,paywallId:e.paywall.id},!0).canceled){S(i,!1);return}const Pe=await e.api.checkouts.create(ee);if(e.api.events.emit("sesamyPaywallProductSelected",{product:k,checkoutId:Pe.id,paywallId:e.paywall.id}),r()||k.preferBusiness){F0(Pe,void 0,!0);return}S(o,Pe,!0),S(i,!1)}catch(ee){console.error(ee),S(d,e.t("something_went_wrong"),!0),S(i,!1);return}},D=async k=>{k.preventDefault(),u(a)&&await b(u(a))},W=async k=>{const U={...k,features:Array.isArray(k.features)&&k.features.length>0?k.features:Array.isArray(C)?C:[]};S(a,U,!0),await b(U)},K=k=>{S(d,""),S(a,{...k,features:Array.isArray(k.features)&&k.features.length>0?k.features:Array.isArray(C)?C:[]},!0)},X=()=>{e.api.events.emit("sesamyPaywallResetCheckout",{paywallId:e.paywall.id}),S(o,void 0)},ae=g.length>0;if(ae){const k=g.find(({selected:U})=>U);k?K(k):(g[0].selected=!0,K(g[0]))}const de=M!=null&&M.showBackground&&(M!=null&&M.backgroundColor)?M.backgroundColor:"#FFFFFF",G=(M==null?void 0:M.showBackground)&&Ka(de)[2]<50,z=G?"#FFFFFF":"#000000",T=Ka(v)[2]<60?"#FFFFFF":"#000000";let Q=ne(Et(G)),$="<style>"+`
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j9(t,e){if(t){if(typeof t=="string")return Pd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pd(t,e)}}function Pd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Y9(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,d;try{for(r=r.call(t);!(a=(i=r.next()).done)&&(n.push(i.value),!(e&&n.length===e));a=!0);}catch(l){o=!0,d=l}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw d}}return n}}function V9(t){if(Array.isArray(t))return t}function Z9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W9(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function H9(t,e,r){return e&&W9(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Md=(function(){function t(e,r){Z9(this,t),this.metadata=new Ue(r);var n=this.getCountryAndCallingCode(e),a=B9(n,2),o=a[0],i=a[1];this.defaultCountry=o,this.defaultCallingCode=i,this.reset()}return H9(t,[{key:"getCountryAndCallingCode",value:function(r){var n,a;return r&&(wo(r)==="object"?(n=r.defaultCountry,a=r.defaultCallingCode):n=r),n&&!this.metadata.hasCountry(n)&&(n=void 0),[n,a]}},{key:"input",value:function(r){var n=this.parser.input(r,this.state),a=n.digits,o=n.justLeadingPlus;if(o)this.formattedOutput="+";else if(a){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var i;if(this.metadata.hasSelectedNumberingPlan()&&(i=this.formatter.format(a,this.state)),i===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var d=this.state.getNationalDigits();d&&(i=this.formatter.format(d,this.state))}this.formattedOutput=i?this.getFullNumber(i):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var r=this;return this.state=new W4({onCountryChange:function(a){r.country=a},onCallingCodeChange:function(a,o){r.metadata.selectNumberingPlan(o,a),r.formatter.reset(r.metadata.numberingPlan,r.state),r.parser.reset(r.metadata.numberingPlan)}}),this.formatter=new w9({state:this.state,metadata:this.metadata}),this.parser=new T9({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){r.determineTheCountryIfNeeded(),r.formatter.reset(r.metadata.numberingPlan,r.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var r=this.state.digits;if(r)return this._getCountry()}},{key:"_getCountry",value:function(){var r=this.state.country;return r}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(r){var n=this;if(this.isInternational()){var a=function(d){return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state,{spacing:!!d})+d},o=this.state.callingCode;return a(o?r?"".concat(o," ").concat(r):o:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return r}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var r=this.state,n=r.nationalSignificantNumber,a=r.complexPrefixBeforeNationalSignificantNumber,o=r.nationalPrefix,i=n,d=a||o;return d&&(i=d+i),i}},{key:"getNonFormattedNumber",value:function(){var r=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(r?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var r=this.getNonFormattedNumber();if(r)return r.replace(/[\+\d]/g,Gt)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var r=this.state.callingCode,n=this.metadata.getCountryCodesForCallingCode(r);return n&&n.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(sd(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var r=this.state,n=r.digits,a=r.callingCode,o=r.country,i=r.nationalSignificantNumber;if(n){if(this.isInternational())return a?"+"+a+i:"+"+n;if(o||a){var d=o?this.metadata.countryCallingCode():a;return"+"+d+i}}}},{key:"getNumber",value:function(){var r=this.state,n=r.nationalSignificantNumber,a=r.carrierCode,o=r.callingCode,i=this._getCountry();if(n&&!(!i&&!o)){if(i&&i===this.defaultCountry){var d=new Ue(this.metadata.metadata);d.selectNumberingPlan(i);var l=d.numberingPlan.callingCode(),s=this.metadata.getCountryCodesForCallingCode(l);if(s.length>1){var f=ld(n,{countries:s,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});f&&(i=f)}}var g=new go(i||o,n,this.metadata.metadata);return a&&(g.carrierCode=a),g}}},{key:"isPossible",value:function(){var r=this.getNumber();return r?r.isPossible():!1}},{key:"isValid",value:function(){var r=this.getNumber();return r?r.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),t})();function U9(t,e,r){if(e[t])return new go(t,e[t],r)}function _9(){return no(j4,arguments)}function wr(t){return Md.call(this,t,ro)}wr.prototype=Object.create(Md.prototype,{}),wr.prototype.constructor=wr;function X9(){return no(ua,arguments)}function ma(){return Ue.call(this,ro)}ma.prototype=Object.create(Ue.prototype,{}),ma.prototype.constructor=ma;function q9(){return no(U9,arguments)}const J9=[["Afghanistan (افغانستان)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (الجزائر)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (البحرين)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (جزر القمر)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (مصر)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (ایران)","ir","98"],["Iraq (العراق)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (ישראל)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (الأردن)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (الكويت)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (لبنان)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (ليبيا)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["North Macedonia (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (موريتانيا)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (المغرب)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (عُمان)","om","968"],["Pakistan (پاکستان)","pk","92"],["Palau","pw","680"],["Palestine (فلسطين)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (قطر)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (المملكة العربية السعودية)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (جنوب السودان)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්රී ලංකාව)","lk","94"],["Sudan (السودان)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (سوريا)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tristan da Cunha","ta","290"],["Tunisia (تونس)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (الصحراء الغربية)","eh","212",1,["5288","5289"]],["Yemen (اليمن)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]].map(t=>({id:t[1].toUpperCase(),label:`${t[0]} +${t[2]}`,name:t[0],iso2:t[1].toUpperCase(),dialCode:t[2],priority:t[3]||0,areaCodes:t[4]||null})),K9={AC:"40123",AD:"312345",AE:"501234567",AF:"701234567",AG:"2684641234",AI:"2642351234",AL:"672123456",AM:"77123456",AO:"923123456",AR:"91123456789",AS:"6847331234",AT:"664123456",AU:"412345678",AW:"5601234",AX:"412345678",AZ:"401234567",BA:"61123456",BB:"2462501234",BD:"1812345678",BE:"470123456",BF:"70123456",BG:"43012345",BH:"36001234",BI:"79561234",BJ:"90011234",BL:"690001234",BM:"4413701234",BN:"7123456",BO:"71234567",BQ:"3181234",BR:"11961234567",BS:"2423591234",BT:"17123456",BW:"71123456",BY:"294911911",BZ:"6221234",CA:"5062345678",CC:"412345678",CD:"991234567",CF:"70012345",CG:"061234567",CH:"781234567",CI:"0123456789",CK:"71234",CL:"221234567",CM:"671234567",CN:"13123456789",CO:"3211234567",CR:"83123456",CU:"51234567",CV:"9911234",CW:"95181234",CX:"412345678",CY:"96123456",CZ:"601123456",DE:"15123456789",DJ:"77831001",DK:"32123456",DM:"7672251234",DO:"8092345678",DZ:"551234567",EC:"991234567",EE:"51234567",EG:"1001234567",EH:"650123456",ER:"7123456",ES:"612345678",ET:"911234567",FI:"412345678",FJ:"7012345",FK:"51234",FM:"3501234",FO:"211234",FR:"612345678",GA:"06031234",GB:"7400123456",GD:"4734031234",GE:"555123456",GF:"694201234",GG:"7781123456",GH:"231234567",GI:"57123456",GL:"221234",GM:"3012345",GN:"601123456",GP:"690001234",GQ:"222123456",GR:"6912345678",GT:"51234567",GU:"6713001234",GW:"955012345",GY:"6091234",HK:"51234567",HN:"91234567",HR:"921234567",HT:"34101234",HU:"201234567",ID:"812345678",IE:"850123456",IL:"502345678",IM:"7924123456",IN:"8123456789",IO:"3801234",IQ:"7912345678",IR:"9123456789",IS:"6111234",IT:"3123456789",JE:"7797712345",JM:"8762101234",JO:"790123456",JP:"9012345678",KE:"712123456",KG:"700123456",KH:"91234567",KI:"72001234",KM:"3212345",KN:"8697652917",KP:"1921234567",KR:"1020000000",KW:"50012345",KY:"3453231234",KZ:"7710009998",LA:"2023123456",LB:"71123456",LC:"7582845678",LI:"660234567",LK:"712345678",LR:"770123456",LS:"50123456",LT:"61234567",LU:"628123456",LV:"21234567",LY:"912345678",MA:"650123456",MC:"612345678",MD:"62112345",ME:"67622901",MF:"690001234",MG:"321234567",MH:"2351234",MK:"72345678",ML:"65012345",MM:"92123456",MN:"88123456",MO:"66123456",MP:"6702345678",MQ:"696201234",MR:"22123456",MS:"6644923456",MT:"96961234",MU:"52512345",MV:"7712345",MW:"991234567",MX:"12221234567",MY:"123456789",MZ:"821234567",NA:"811234567",NC:"751234",NE:"93123456",NF:"381234",NG:"8021234567",NI:"81234567",NL:"612345678",NO:"40612345",NP:"9841234567",NR:"5551234",NU:"8884012",NZ:"211234567",OM:"92123456",PA:"61234567",PE:"912345678",PF:"87123456",PG:"70123456",PH:"9051234567",PK:"3012345678",PL:"512345678",PM:"551234",PR:"7872345678",PS:"599123456",PT:"912345678",PW:"6201234",PY:"961456789",QA:"33123456",RE:"692123456",RO:"712034567",RS:"601234567",RU:"9123456789",RW:"720123456",SA:"512345678",SB:"7421234",SC:"2510123",SD:"911231234",SE:"701234567",SG:"81234567",SH:"51234",SI:"31234567",SJ:"41234567",SK:"912123456",SL:"25123456",SM:"66661212",SN:"701234567",SO:"71123456",SR:"7412345",SS:"977123456",ST:"9812345",SV:"70123456",SX:"7215205678",SY:"944567890",SZ:"76123456",TA:"8999",TC:"6492311234",TD:"63012345",TG:"90112345",TH:"812345678",TJ:"917123456",TK:"7290",TL:"77212345",TM:"66123456",TN:"20123456",TO:"7715123",TR:"5012345678",TT:"8682911234",TV:"901234",TW:"912345678",TZ:"621234567",UA:"501234567",UG:"712345678",US:"2015550123",UY:"94231234",UZ:"912345678",VA:"3123456789",VC:"7844301234",VE:"4121234567",VG:"2843001234",VI:"3406421234",VN:"912345678",VU:"5912345",WF:"821234",WS:"7212345",XK:"43201234",YE:"712345678",YT:"639012345",ZA:"711234567",ZM:"955123456",ZW:"712345678"},Q9=t=>Object.fromEntries(Object.entries({countryCode:t?t.country:null,isValid:t?t.isValid():!1,isPossible:t?t.isPossible():!1,phoneNumber:t?t.number:null,countryCallingCode:t?t.countryCallingCode:null,formattedNumber:t?new wr().input(t.number):null,nationalNumber:t?t.nationalNumber:null,formatInternational:t?new wr().input(t.number):null,formatOriginal:t?new wr().input(t.number).slice(t.countryCallingCode.length+1).trim():null,formatNational:t?new wr(t.country).input(t.number):null,uri:t?t.getURI():null,e164:t?t.number:null}).filter(([,r])=>r!==null)),eu=(t,{format:e,spaces:r}={format:"national",spaces:!0})=>{const n=q9(t,K9);if(n)switch(e){case"international":return r?n.formatInternational():n.number;default:return r?n.formatInternational().slice(n.countryCallingCode.length+1).trim():n.nationalNumber}else throw new Error(`No country found with this country code: ${t}`)},tu=t=>{var o;const e=/^\d+$/;let r="+"+X9(t);const a=(o=new ma().numberingPlan)==null?void 0:o.leadingDigits();return a&&e.test(a)&&(r+=a),r},Io=(t,{country:e,countries:r,required:n}={})=>{if(t==="+")return e;const a=ru(t);return a&&(!r||r.indexOf(a)>=0)?a:e&&!n&&!nu(t,e)?void 0:e},ru=t=>{const e=new wr;return e.input(t),e.getCountry()},nu=(t,e)=>{const r=tu(e);let n=0;for(;n<t.length&&n<r.length;){if(t[n]!==r[n])return!1;n++}return!0},Dd=(t,{spaces:e}={spaces:!0})=>{const r={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};return e&&new RegExp("[\\t\\n\\v\\f\\r \\u00a0\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u200b\\u2028\\u2029\\u3000]","g").test(t)?t:r[t]},au=(t,{allowSpaces:e,parseCharacter:r,disallowPlusSign:n})=>{let a="";for(let o=0;o<t.length;o++){const i=r(t[o],a,e,n);i!==void 0&&(a+=i)}return a},ou=(t,e,r,n)=>!n&&t==="+"&&!e?t:Dd(t,{spaces:r}),xo=(t,{handler:e,spaces:r,strictCountryCode:n})=>{const a=o=>{if(t&&t.contains(o.target)){const i=o.target.value,d=au(i,{parseCharacter:ou,allowSpaces:r,disallowPlusSign:n});t.value=d,e(d)}};return t.addEventListener("input",a,!0),{update(o){(o.value===null||o.value==="")&&(t.value="")},destroy(){t.removeEventListener("input",a,!0)}}};var iu=F("<input/>");function du(t,e){const r=zi(e,["children","$$slots","$$events","$$legacy"]),n=zi(r,["updateValue","autocomplete","class","disabled","id","name","placeholder","readonly","required","size","value","country","detailedValue","valid","options","el"]);Ce(e,!1);const a=ur(),o=_1(),i={autoPlaceholder:!0,spaces:!0,invalidateOnCountryChange:!1,format:"national",strictCountry:!1};let d=O(e,"autocomplete",8,null),l=O(e,"class",8,""),s=O(e,"disabled",8,!1),f=O(e,"id",24,()=>"phone-input-"+new Date().getTime().toString(36)+Math.random().toString(36).slice(2)),g=O(e,"name",8,null),c=O(e,"placeholder",8,null),m=O(e,"readonly",8,null),h=O(e,"required",8,null),v=O(e,"size",8,null),p=O(e,"value",12),C=O(e,"country",28,()=>{}),x=O(e,"detailedValue",12,null),w=O(e,"valid",12,!0),A=O(e,"options",8,i),I=O(e,"el",28,()=>{}),M=ur(p()),E=C();const b={...i,...A()},D=T=>{s()||m()||X(T,C())},W=T=>(T!==C()&&(C(T),E=C(),o("updateCountry",C()),o("updateDetailedValue",x())),C()),K=(T,Q,be)=>{let $=0;for(let fe=0;fe<be;fe++){const le=Dd(T[fe],{spaces:!1});if(le>="0"&&le<="9"){for(;!(Q[$]>="0"&&Q[$]<="9")&&$<Q.length;)$++;$++}}return $},X=async(T,Q=null)=>{var $,fe,le,$e,xe,R,k;const be=T;if(be!==null){const U=Io(be),ee=($=A())!=null&&$.strictCountry?Q:U??Q;!((fe=A())!=null&&fe.strictCountry)&&U&&U!==E&&W(U);try{x(Q9(_9(be,ee??void 0)))}catch(ke){if(ke instanceof ar)x({isValid:!1,error:ke.message}),o("parseError",ke.message);else throw ke}const re=b.format==="national"?"nationalNumber":"e164",Pe=b.format==="national"?"formatOriginal":"formatInternational",Le=((le=I())==null?void 0:le.selectionStart)||0;if(b.spaces&&(($e=x())!=null&&$e[Pe])){if(S(M,x()[Pe]??null),await vi(),I()){const ke=K(be,u(M),Le);I(I().selectionStart=ke,!0),I(I().selectionEnd=ke,!0)}}else if((xe=x())!=null&&xe[re]&&(S(M,x()[re]??null),await vi(),I())){const ke=K(be,u(M),Le);I(I().selectionStart=ke,!0),I(I().selectionEnd=ke,!0)}p(((R=x())==null?void 0:R.e164)??be??null),w(((k=x())==null?void 0:k.isValid)??!1),o("updateValid",w()),o("updateValue",p()),o("updateDetailedValue",x())}else be===null&&Q!==null?Q!==E&&(E=Q,w(!A().invalidateOnCountryChange),p(null),S(M,null),x(null),o("updateValid",w()),o("updateValue",p()),o("updateDetailedValue",x())):(w(!0),p(null),x(null),E=Q,o("updateValid",w()),o("updateDetailedValue",x()),S(M,null))};let ae=!0;const de=T=>{ae||X(null,T),ae=!1},G=(T,Q)=>{var $;const be=T;be&&X(be,($=A())!=null&&$.strictCountry?C():Io(be)||Q)};H1(()=>{var T;p()&&X(p(),(T=A())!=null&&T.strictCountry?C():Io(p())||C())}),Fn(()=>mr(C()),()=>{de(C())}),Fn(()=>(mr(C()),mr(c())),()=>{S(a,b.autoPlaceholder&&C()?eu(C(),{format:b.format,spaces:b.spaces}):c())}),Fn(()=>(mr(p()),u(M),mr(x())),()=>{p()===null&&u(M)!==null&&x()!==null&&(S(M,null),x(null),o("updateDetailedValue",x()))}),Qo(),Zn();var z=iu();return Ya(z),St(z,()=>({...n,autocomplete:d(),class:l(),disabled:s(),id:f(),name:g(),readonly:m(),required:h(),size:v(),placeholder:u(a),type:"tel",value:u(M)})),pn(z,T=>I(T),()=>I()),Xe(()=>Ct("beforeinput",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("blur",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("change",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("click",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("focus",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("input",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("keydown",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("keypress",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("keyup",z,function(T){Jt.call(this,e,T)})),Xe(()=>Ct("paste",z,function(T){Jt.call(this,e,T)})),Q1(z,(T,Q)=>xo==null?void 0:xo(T,Q),()=>({handler:D,spaces:b.spaces,value:p(),strictCountryCode:b.strictCountry})),y(t,z),h2(e,"updateValue",G),ye({updateValue:G})}var lu=F("<option> </option>"),su=F('<label><div class="absolute top-0 left-px bottom-px z-20 text-gray-300 focus-within:text-gray-400"><div class="relative inline-flex pl-4 pr-2 items-center h-full gap-3 rounded-md"><span></span> <!></div> <select id="phone-country-select" class="absolute peer inset-0 opacity-0 cursor-pointer"></select></div> <!> <div> </div></label>');function uu(t,e){Ce(e,!0);let r=O(e,"value",15),n=O(e,"valid",15),a=O(e,"selectedCountry",15),o=O(e,"hasError",3,!1),i=ne(null),d=Et({autoPlaceholder:!1});Dr(()=>{var w;r(),(w=e.onChange)==null||w.call(e)});const l=w=>w.sort((A,I)=>A.label.localeCompare(I.label));var s=su(),f=L(s),g=L(f),c=L(g),m=N(c,2);Kt(m,{class:"!text-xs",name:"chevron-down"}),P(g);var h=N(g,2);Fr(h,21,()=>l(J9),w=>w.id,(w,A)=>{var I=lu(),M={},E=L(I,!0);P(I),B(()=>{M!==(M=u(A).id)&&(I.value=(I.__value=u(A).id)??""),_(E,u(A).label)}),y(w,I)}),P(h),P(f);var v=N(f,2);const p=H(()=>te("placeholder:text-transparent relative peer w-full rounded-md border border-gray-200 pl-[84px] pr-4 pb-2 pt-6 text-base leading-snug text-gray-800 outline-0 transition-colors duration-150 placeholder:text-gray-400 focus:border-gray-300 focus:z-10 disabled:opacity-[20%] dark:border-gray-700 dark:focus:border-gray-600 dark:bg-black/25 dark:text-gray-100",o()&&"!border-red-500"));du(v,{get name(){return e.name},get options(){return d},required:!0,get class(){return u(p)},get country(){return a()},set country(w){a(w)},get detailedValue(){return u(i)},set detailedValue(w){S(i,w,!0)},get value(){return r()},set value(w){r(w)},get valid(){return n()},set valid(w){n(w)}});var C=N(v,2),x=L(C,!0);P(C),P(s),B((w,A,I,M)=>{Ae(s,1,w),Ae(c,1,`flag flag-${A??""} flex-shrink-0`),Ae(C,1,I),_(x,M)},[()=>Ne(te("relative w-full gap-2 column-left",o()&&"z-20")),()=>{var w;return(w=a())==null?void 0:w.toLowerCase()},()=>Ne(te("pointer-events-none absolute z-20 left-[84px] right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs",!!r()&&"-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs")),()=>e.t("phone_number")]),Ri(h,a),y(t,s),ye()}var cu=(t,e)=>S(e,!1),gu=(t,e)=>S(e,!0),fu=F('<div class="row w-full rounded-md bg-gray-200 dark:bg-black/25 dark:border dark:border-gray-800 p-1 gap-1 text-xs font-bold"><button type="button"> </button> <button type="button"> </button></div>'),hu=F('<div class="text-sm uppercase font-bold pt-1 -mb-0.5"> </div> <!> <div class="text-sm uppercase font-bold pt-1 -mb-0.5"> </div>',1),mu=F('<!> <div> <span class="text-primary"> </span>?</div>',1),vu=F('<!> <div class="text-center whitespace-nowrap"> </div>',1),pu=F("<!> <!>",1),bu=F("<!> <!> <!> <!> <!>",1),Cu=F('<span class="text-sm"> </span>'),yu=F('<div class="w-full"><div><!></div> <!></div>'),Au=F('<div class="[&>svg]:max-w-full"><!></div>'),wu=F('<div class="gap-1 hidden @xl:row-left"><!> <!> <!></div>'),Iu=F("<!> <!>",1),xu=F('<!> <!> <!> <!> <!> <div class="grid @sm:grid-cols-2 w-full gap-2 auto-rows-fr"></div>',1),ku=F("<div> </div>"),Nu=F('<div class="bg-white w-full dark:bg-black/25 border border-red-500 text-red-500 px-4 py-3 !text-sm rounded-md font-bold"></div>'),Pu=F('<form class="contents" novalidate=""><!> <!> <!> <button type="button" class="text-sm font-bold mx-auto hover:underline p-1 row gap-1"><!> <span> </span></button></form> <!>',1);function Mu(t,e){Ce(e,!0);const r=ks(e.checkout.language).filter(R=>e.checkout.items.every(k=>!k.geoRestrictions||k.geoRestrictions.type==="ALLOW"&&k.geoRestrictions.countries.includes(R.value)||k.geoRestrictions.type==="BLOCK"&&!k.geoRestrictions.countries.includes(R.value)));let n=ne(""),a=ne(""),o=ne(""),i=ne(""),d=ne(!1),l=ne(Et(e.checkout.country||"SE")),s=ne(Et(e.checkout.country||"SE")),f=ne(""),g=ne(""),c=ne(""),m=ne(!1),h=ne(void 0),v=ne(void 0),p=ne(""),C,x=ne(!1),w=ne(""),A=ne(Et(e.checkout.giftMode)),I=ne("");Dr(()=>{var R;r.map(k=>k.value).includes(u(l))||S(l,(R=r[0])==null?void 0:R.value,!0)}),Dr(()=>{(async()=>{const R=await e.api.auth.getUser();u(n)||S(n,(R==null?void 0:R.email)||"",!0)})()});const M=()=>{var Pe,Le,ke,Re,ze,qe,rt,je,oe,se,J,we,ue,he,Ve,Ye,Ze,Oe,ht,nt,Mt,Dt,Se,_e,Te;const R=[];to(u(n))||R.push(["email","invalid_email"]),u(A)&&!to(u(I))&&R.push(["payerEmail","invalid_email"]),(ke=(Le=(Pe=e.checkout)==null?void 0:Pe.fieldSettings)==null?void 0:Le.phone)!=null&&ke.enabled&&((qe=(ze=(Re=e.checkout)==null?void 0:Re.fieldSettings)==null?void 0:ze.phone)!=null&&qe.required)&&!u(i)&&R.push(["phoneNumber","phone_number_required"]),(oe=(je=(rt=e.checkout)==null?void 0:rt.fieldSettings)==null?void 0:je.phone)!=null&&oe.enabled&&u(i)&&!u(d)&&R.push(["phoneNumber","invalid_phone_number"]),(we=(J=(se=e.checkout)==null?void 0:se.fieldSettings)==null?void 0:J.name)!=null&&we.enabled&&((Ve=(he=(ue=e.checkout)==null?void 0:ue.fieldSettings)==null?void 0:he.name)!=null&&Ve.required)&&!u(a)&&R.push(["firstName","first_name_required"]),(Oe=(Ze=(Ye=e.checkout)==null?void 0:Ye.fieldSettings)==null?void 0:Ze.name)!=null&&Oe.enabled&&((Mt=(nt=(ht=e.checkout)==null?void 0:ht.fieldSettings)==null?void 0:nt.name)!=null&&Mt.required)&&!u(o)&&R.push(["lastName","last_name_required"]),u(x)&&!to(u(w))&&R.push(["referralEmail","referral_email_required"]);const k=new Date().getFullYear(),U=parseInt(u(f)),ee=parseInt(u(g)),re=parseInt(u(c));u(f)&&(isNaN(U)||U<1900||U>k)&&R.push(["birthYear","invalid_birth_year"]),u(g)&&(isNaN(ee)||ee<1||ee>12)&&R.push(["birthMonth","invalid_birth_month"]),u(c)&&(isNaN(re)||re<1||re>31)&&R.push(["birthDay","invalid_birth_day"]),(Se=(Dt=e.checkout.fieldSettings)==null?void 0:Dt.birthdate)!=null&&Se.enabled&&((Te=(_e=e.checkout.fieldSettings)==null?void 0:_e.birthdate)!=null&&Te.required)&&(!u(f)||!u(g)||!u(c))&&R.push(["birthDate","birthdate_required"]),S(h,R.length?R.reduce((Ge,[Ke,yt])=>({...Ge,[Ke]:yt}),{}):void 0,!0)},E=R=>S(v,R,!0),b=()=>{S(h,void 0),clearTimeout(C),C=setTimeout(()=>{var R;S(p,((R=R0.run({email:u(n)}))==null?void 0:R.full)||"",!0)},400)},D=async R=>{var U;if(R.preventDefault(),M(),!(u(h)||!u(v)||e.api.events.emit("sesamyPaywallCheckoutRedirect",{checkoutId:e.checkout.id,country:u(l),paymentMethod:u(v)},!0).canceled)){S(m,!0);try{const ee=["GOOGLE-PAY","APPLE-PAY"].includes(u(v).method),re=u(f)&&u(g)&&u(c)?`${u(f)}-${u(g).padStart(2,"0")}-${u(c).padStart(2,"0")}`:void 0;await e.api.checkouts.update(e.checkout.id,{paymentData:{provider:u(v).provider,method:ee?"CARD":u(v).method},country:u(l),email:u(n),phoneNumber:u(i)||void 0,givenName:u(a)||void 0,familyName:u(o)||void 0,birthDate:re,referralEmail:u(x)?u(w):void 0,payerEmail:u(A)?u(I):void 0}),F0(e.checkout,u(v)),S(m,!1);return}catch(ee){(U=ee==null?void 0:ee.message)!=null&&U.includes("User already owns item")?S(h,{general:"user_already_owns_item"},!0):(console.error(ee),S(h,{general:"something_went_wrong"},!0)),S(m,!1);return}}},W=e.checkout.availablePaymentMethods.reduce((R,{provider:k,methods:U})=>[...R,...U!=null&&U.length&&k?U.map(ee=>({provider:k,method:ee})):[]],[]);Fs()&&W.push({provider:"STRIPE",method:"GOOGLE-PAY"}),Ss()&&W.push({provider:"STRIPE",method:"APPLE-PAY"});const K=W.some(R=>R.method==="STRIPE_KLARNA"),X=W.some(R=>R.method==="KLARNA_PRIVATE");if(K&&X){const R=W.findIndex(k=>k.method==="KLARNA_PRIVATE");R!==-1&&W.splice(R,1)}const ae=Js.map(R=>W.find(k=>k.method===R)).filter(R=>R!==void 0);ae.length&&E(ae[0]);var de=Pu(),G=Y(de),z=L(G);Nt(z,{up:!0,left:!0,class:"gap-2 w-full",children:(R,k)=>{var U=xu(),ee=Y(U);{var re=oe=>{var se=fu(),J=L(se);J.__click=[cu,A];var we=L(J,!0);P(J);var ue=N(J,2);ue.__click=[gu,A];var he=L(ue,!0);P(ue),P(se),B((Ve,Ye,Ze,Oe)=>{Ae(J,1,Ve),_(we,Ye),Ae(ue,1,Ze),_(he,Oe)},[()=>Ne(te("rounded-md px-3 py-2 flex-1",!u(A)&&"bg-white dark:bg-black/25")),()=>e.t("not_gift"),()=>Ne(te("rounded-md px-3 py-2 flex-1",u(A)&&"bg-white dark:bg-black/25")),()=>e.t("is_gift")]),y(oe,se)};j(ee,oe=>{var se;(se=e.paywall.settings.displayOptions)!=null&&se.enableGift&&oe(re)})}var Pe=N(ee,2);{var Le=oe=>{var se=hu(),J=Y(se),we=L(J,!0);P(J);var ue=N(J,2);eo(ue,{children:(Ye,Ze)=>{const Oe=H(()=>e.t("email")),ht=H(()=>{var nt;return(nt=u(h))==null?void 0:nt.payerEmail});Tt(Ye,{name:"payer-email",compact:!0,get placeholder(){return u(Oe)},get hasError(){return u(ht)},onkeyup:()=>S(h,void 0),get value(){return u(I)},set value(nt){S(I,nt,!0)}})},$$slots:{default:!0}});var he=N(ue,2),Ve=L(he,!0);P(he),B((Ye,Ze)=>{_(we,Ye),_(Ve,Ze)},[()=>e.t("your_details"),()=>e.t("recipient_details")]),y(oe,se)};j(Pe,oe=>{u(A)&&oe(Le)})}var ke=N(Pe,2);eo(ke,{children:(oe,se)=>{var J=bu(),we=Y(J);const ue=H(()=>e.t("email")),he=H(()=>{var Se;return(Se=u(h))==null?void 0:Se.email});Tt(we,{onkeyup:b,name:"email",compact:!0,get placeholder(){return u(ue)},get hasError(){return u(he)},autocomplete:"email",get value(){return u(n)},set value(Se){S(n,Se,!0)}});var Ve=N(we,2);const Ye=H(()=>!!u(p));E0(Ve,{get isOpen(){return u(Ye)},children:(Se,_e)=>{Or(Se,{onclick:()=>{S(n,u(p),!0),S(p,"")},class:"bg-primary/10 gap-4 px-2 py-3 !justify-between active:bg-primary/10 text-sm border-x border-gray-200 text-gray-500 hover:cursor-pointer hover:bg-primary/15 transition-colors duration-75",children:(Te,Ge)=>{var Ke=vu(),yt=Y(Ke);Or(yt,{class:"gap-2",children:(Me,Bt)=>{var At=mu(),Lt=Y(At);Kt(Lt,{class:"text-primary text-xl",name:"info"});var ut=N(Lt,2),Gr=L(ut),Br=N(Gr),va=L(Br,!0);P(Br),Wt(),P(ut),B(Ir=>{_(Gr,`${Ir??""} `),_(va,u(p))},[()=>e.t("did_you_mean")]),y(Me,At)},$$slots:{default:!0}});var ce=N(yt,2),Be=L(ce,!0);P(ce),B(Me=>_(Be,Me),[()=>e.t("click_to_update")]),y(Te,Ke)},$$slots:{default:!0}})},$$slots:{default:!0}});var Ze=N(Ve,2);const Oe=H(()=>e.t("country"));Es(Ze,{get options(){return r},name:"country",compact:!0,autocomplete:"country",get placeholder(){return u(Oe)},get value(){return u(l)},set value(Se){S(l,Se,!0)}});var ht=N(Ze,2);{var nt=Se=>{const _e=H(()=>{var Te;return!!((Te=u(h))!=null&&Te.phoneNumber)});uu(Se,{get t(){return e.t},get hasError(){return u(_e)},onChange:()=>S(h,void 0),name:"tel",get value(){return u(i)},set value(Te){S(i,Te,!0)},get valid(){return u(d)},set valid(Te){S(d,Te,!0)},get selectedCountry(){return u(s)},set selectedCountry(Te){S(s,Te,!0)}})};j(ht,Se=>{var _e,Te,Ge;(Ge=(Te=(_e=e.checkout)==null?void 0:_e.fieldSettings)==null?void 0:Te.phone)!=null&&Ge.enabled&&Se(nt)})}var Mt=N(ht,2);{var Dt=Se=>{var _e=pu(),Te=Y(_e);const Ge=H(()=>e.t("first_name")),Ke=H(()=>{var Me;return(Me=u(h))==null?void 0:Me.firstName});Tt(Te,{onkeyup:()=>S(h,void 0),name:"first-name",compact:!0,get placeholder(){return u(Ge)},get hasError(){return u(Ke)},autocomplete:"given-name",get value(){return u(a)},set value(Me){S(a,Me,!0)}});var yt=N(Te,2);const ce=H(()=>e.t("last_name")),Be=H(()=>{var Me;return(Me=u(h))==null?void 0:Me.lastName});Tt(yt,{onkeyup:()=>S(h,void 0),name:"last-name",compact:!0,get placeholder(){return u(ce)},get hasError(){return u(Be)},autocomplete:"family-name",get value(){return u(o)},set value(Me){S(o,Me,!0)}}),y(Se,_e)};j(Mt,Se=>{var _e,Te,Ge;(Ge=(Te=(_e=e.checkout)==null?void 0:_e.fieldSettings)==null?void 0:Te.name)!=null&&Ge.enabled&&Se(Dt)})}y(oe,J)},$$slots:{default:!0}});var Re=N(ke,2);{var ze=oe=>{const se=H(()=>{var J,we,ue,he;return((J=u(h))==null?void 0:J.birthYear)||((we=u(h))==null?void 0:we.birthMonth)||((ue=u(h))==null?void 0:ue.birthDay)||((he=u(h))==null?void 0:he.birthDate)});qs(oe,{get t(){return e.t},get hasError(){return u(se)},onYearChange:()=>S(h,void 0),onMonthChange:()=>S(h,void 0),onDayChange:()=>S(h,void 0),get year(){return u(f)},set year(J){S(f,J,!0)},get month(){return u(g)},set month(J){S(g,J,!0)},get day(){return u(c)},set day(J){S(c,J,!0)}})};j(Re,oe=>{var se,J,we;(we=(J=(se=e.checkout)==null?void 0:se.fieldSettings)==null?void 0:J.birthdate)!=null&&we.enabled&&oe(ze)})}var qe=N(Re,2);{var rt=oe=>{var se=yu(),J=L(se),we=L(J);Kn(we,{id:"got-referred",name:"got-referred",type:"checkbox",get checked(){return u(x)},onchange:he=>{const Ve=he.target;S(x,Ve.checked,!0)},children:(he,Ve)=>{var Ye=Cu(),Ze=L(Ye,!0);P(Ye),B(Oe=>_(Ze,Oe),[()=>e.t("got_referred")]),y(he,Ye)},$$slots:{default:!0}}),P(J);var ue=N(J,2);E0(ue,{get isOpen(){return u(x)},children:(he,Ve)=>{const Ye=H(()=>e.t("referral_email")),Ze=H(()=>{var Oe;return(Oe=u(h))==null?void 0:Oe.referralEmail});Tt(he,{name:"referral-email",compact:!0,get placeholder(){return u(Ye)},class:"rounded-t-none -mt-px",get hasError(){return u(Ze)},onkeyup:()=>S(h,void 0),get value(){return u(w)},set value(Oe){S(w,Oe,!0)}})},$$slots:{default:!0}}),P(se),B(he=>Ae(J,1,he),[()=>Ne(te("bg-white rounded-md border border-gray-200 dark:bg-black/25 dark:border-gray-700",u(x)&&"rounded-b-none"))]),y(oe,se)};j(qe,oe=>{var se,J,we;(we=(J=(se=e.checkout)==null?void 0:se.fieldSettings)==null?void 0:J.referral)!=null&&we.enabled&&oe(rt)})}var je=N(qe,2);Fr(je,23,()=>ae,oe=>`${oe.provider}-${oe.method}`,(oe,se,J,we)=>{const ue=H(()=>{const{provider:he,method:Ve}=u(se);return{provider:he,method:Ve}});Qa(oe,{children:(he,Ve)=>{const Ye=H(()=>!u(J)),Ze=H(()=>`${u(ue).provider}-${u(ue).method}`);Kn(he,{get checked(){return u(Ye)},get id(){return u(Ze)},name:"payment-method",onchange:()=>E(u(se)),children:(Oe,ht)=>{var nt=Iu(),Mt=Y(nt);{var Dt=Ge=>{Kt(Ge,{name:"card",class:"text-2xl"})},Se=Ge=>{var Ke=Au(),yt=L(Ke);const ce=H(()=>u(ue).method.includes("KLARNA")?"21":"25");h0(yt,{get method(){return u(ue).method},width:"auto",get height(){return u(ce)},darkModeSupport:!0}),P(Ke),y(Ge,Ke)};j(Mt,Ge=>{u(ue).method==="CARD"?Ge(Dt):Ge(Se,!1)})}var _e=N(Mt,2);{var Te=Ge=>{var Ke=wu(),yt=L(Ke);Jn(yt,{size:"sm",name:"visa"});var ce=N(yt,2);Jn(ce,{size:"sm",name:"amex"});var Be=N(ce,2);Jn(Be,{size:"sm",name:"mastercard"}),P(Ke),y(Ge,Ke)};j(_e,Ge=>{u(ue).method&&["CARD","GOOGLE-PAY","APPLE-PAY"].includes(u(ue).method)&&Ge(Te)})}y(Oe,nt)},$$slots:{default:!0}})},$$slots:{default:!0}})}),P(je),y(R,U)},$$slots:{default:!0}});var T=N(z,2);{var Q=R=>{var k=Nu();Fr(k,21,()=>Object.values(u(h)),zn,(U,ee)=>{var re=ku(),Pe=L(re,!0);P(re),B(Le=>_(Pe,Le),[()=>e.t(u(ee))]),y(U,re)}),P(k),y(R,k)};j(T,R=>{u(h)&&R(Q)})}var be=N(T,2);Cn(be,{get loading(){return u(m)},get disabled(){return u(m)},class:"mt-2 w-full shadow-md bg-[var(--s-paywall-btn-bg-color)] text-[var(--s-paywall-btn-text-color)]",type:"submit",children:(R,k)=>{Wt();var U=qt();B(ee=>_(U,ee),[()=>e.t("pay_now")]),y(R,U)},$$slots:{default:!0}});var $=N(be,2);$.__click=function(...R){var k;(k=e.onResetCheckout)==null||k.apply(this,R)};var fe=L($);Kt(fe,{name:"chevron-left",class:"text-[8px]"});var le=N(fe,2),$e=L(le,!0);P(le),P($),P(G);var xe=N(G,2);pr(xe,()=>"<style>"+ys.replace("url(flags_responsive.png)",`url(${As})`)+"</style>"),B(R=>_($e,R),[()=>e.t("go_back")]),Ct("submit",G,D),y(t,de),ye()}Jr(["click"]);function Du(t,e){const r=async o=>{try{return await o.auth.isAuthenticated()}catch(i){console.error("Error checking login status:",i)}};var n=Ie(),a=Y(n);Ft(a,()=>r(e.api),null,(o,i)=>{var d=Ie(),l=Y(d);{var s=f=>{var g=Ie(),c=Y(g);Er(c,()=>e.children),y(f,g)};j(l,f=>{u(i)||f(s)})}y(o,d)}),y(t,n)}const Lu=t=>{const e=parseFloat(t);return isNaN(e)?0:e};var Ru=F('<sesamy-login><span slot="button-text"> </span></sesamy-login>',2),Eu=F('<!> <div class="w-full h-px from-transparent bg-gradient-to-r to-transparent via-primary opacity-30"></div>',1),Fu=F('<img class="h-7 mb-6"/>'),Su=F("<!> <!>",1),Tu=F('<form class="contents"><!> <!></form>'),$u=F("<!> <span><!></span>",1),Ou=F('<!> <div><!> <div class="text-2xl leading-tight @md:text-3xl font-bold max-w-[600px]"> </div></div> <!> <!> <!> <!> <div class="gap-3 row !justify-between w-full mt-4 @md:mt-8"><!> <!></div>',1),Gu=F('<div class="@container"><!></div>'),Bu=F("<!> <!>",1);function Ld(t,e){var xe,R;Ce(e,!0);let r=O(e,"horizontal",3,!1),n=kt(e,["$$slots","$$events","$$legacy","api","t","horizontal","host","paywall"]),a=ne(void 0),o=ne(void 0),i=ne(!1),d=ne("");const l=n!=null&&n.price?Lu(n.price):(xe=e.api.content.get(e.host))==null?void 0:xe.price,s=(n==null?void 0:n["item-src"])||((R=e.api.content.get(e.host))==null?void 0:R.url),f=(n==null?void 0:n["redirect-url"])||window.location.href;let{subscriptions:g,singlePurchase:c,headline:m,currency:h,mainColor:v,showLoginButton:p,features:C,footerPaymentMethods:x,logoUrl:w,vendorId:A,settings:{useDefaultLogo:I,styling:M}}=e.paywall;const E=async()=>{var ee,re;if(r())return!1;const k=e!=null&&e.pass?e.pass.split(";"):(re=(ee=e.api.content.get(e.host))==null?void 0:ee.pass)==null?void 0:re.split(";"),U=await e.api.entitlements.hasAccess(s||"",k);return e.api.events.emit("sesamyPaywallAccessChecked",{hasAccess:U,paywallId:e.paywall.id,articleUrl:s,passes:k}),U},b=async k=>{if(S(d,""),S(i,!0),k!=null&&k.url&&(k==null?void 0:k.url)!==s){window.location.assign(k.url);return}const U=k!=null&&k.url?{url:k.url}:{sku:k.sku,purchaseOptionId:k.poId};try{const ee={items:[U],requestedDiscountCodes:k.discountCode?[k.discountCode]:void 0,redirectUrl:f,price:k.price,currency:h,attribution:{utmSource:n==null?void 0:n["utm-source"],utmMedium:n==null?void 0:n["utm-medium"],utmCampaign:n==null?void 0:n["utm-campaign"],utmTerm:n==null?void 0:n["utm-term"],utmContent:n==null?void 0:n["utm-content"],source:"PAYWALL",sourceId:e.paywall.id}};if(e.api.events.emit("sesamyPaywallCreateCheckout",{payload:ee,product:k,paywallId:e.paywall.id},!0).canceled){S(i,!1);return}const Pe=await e.api.checkouts.create(ee);if(e.api.events.emit("sesamyPaywallProductSelected",{product:k,checkoutId:Pe.id,paywallId:e.paywall.id}),r()||k.preferBusiness){F0(Pe,void 0,k.preferBusiness);return}S(o,Pe,!0),S(i,!1)}catch(ee){console.error(ee),S(d,e.t("something_went_wrong"),!0),S(i,!1);return}},D=async k=>{k.preventDefault(),u(a)&&await b(u(a))},W=async k=>{const U={...k,features:Array.isArray(k.features)&&k.features.length>0?k.features:Array.isArray(C)?C:[]};S(a,U,!0),await b(U)},K=k=>{S(d,""),S(a,{...k,features:Array.isArray(k.features)&&k.features.length>0?k.features:Array.isArray(C)?C:[]},!0)},X=()=>{e.api.events.emit("sesamyPaywallResetCheckout",{paywallId:e.paywall.id}),S(o,void 0)},ae=g.length>0;if(ae){const k=g.find(({selected:U})=>U);k?K(k):(g[0].selected=!0,K(g[0]))}const de=M!=null&&M.showBackground&&(M!=null&&M.backgroundColor)?M.backgroundColor:"#FFFFFF",G=(M==null?void 0:M.showBackground)&&Ka(de)[2]<50,z=G?"#FFFFFF":"#000000",T=Ka(v)[2]<60?"#FFFFFF":"#000000";let Q=ne(Et(G)),$="<style>"+`
|
|
50
50
|
:host * {
|
|
51
51
|
--s-primary-color: var(--sesamy-paywall-primary-color, ${v});
|
|
52
52
|
--s-paywall-bg-color: var(--sesamy-paywall-bg-color, ${de});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sesamy/sesamy-components",
|
|
3
3
|
"description": "Shareable web components library built with Vite + Svelte",
|
|
4
|
-
"version": "2.21.
|
|
4
|
+
"version": "2.21.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/lib/sesamy-components.es.js",
|
|
7
7
|
"main": "dist/lib/sesamy-components.umd.js",
|