@everymatrix/loyalty-shop 0.2.9 → 0.2.11

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.
Files changed (23) hide show
  1. package/components/{LoyaltyPagination-Cw2snZwZ.js → LoyaltyPagination-BNBJcXKk.js} +1993 -2000
  2. package/components/{LoyaltyPagination-CyjgdUPo.js → LoyaltyPagination-BP3AxeDj.js} +465 -470
  3. package/components/LoyaltyPagination-BpErkHgK.cjs +14 -0
  4. package/components/LoyaltyPagination-CnoIs1uw.cjs +14 -0
  5. package/components/{LoyaltyPointsCard-njx77PMq.cjs → LoyaltyPointsCard-C16D2R5K.cjs} +1 -1
  6. package/components/{LoyaltyPointsCard-Xb627em8.cjs → LoyaltyPointsCard-C5qTjR-v.cjs} +1 -1
  7. package/components/{LoyaltyPointsCard-CFk3DpjI.js → LoyaltyPointsCard-DmE0ayL6.js} +1 -1
  8. package/components/{LoyaltyPointsCard-DTOQlcMH.js → LoyaltyPointsCard-Dz8Tgtc6.js} +1 -1
  9. package/components/{LoyaltyShop-BKubFlFr.js → LoyaltyShop-BR3Bcw_U.js} +7 -7
  10. package/components/{LoyaltyShop-D_Oyu_cp.cjs → LoyaltyShop-Bvon_isa.cjs} +5 -5
  11. package/components/{LoyaltyShop-8d3N_F-0.cjs → LoyaltyShop-C4Jmxgps.cjs} +5 -5
  12. package/components/{LoyaltyShop-Dfybp9ut.js → LoyaltyShop-FyZaT4Go.js} +7 -7
  13. package/components/{LoyaltyShopItem-DEz9OVzD.cjs → LoyaltyShopItem-C8gpofzS.cjs} +1 -1
  14. package/components/{LoyaltyShopItem-BXrrNl9f.js → LoyaltyShopItem-D_INMfUe.js} +3 -3
  15. package/components/{LoyaltyShopItem-CqY63kaT.js → LoyaltyShopItem-DkUT2Hhc.js} +3 -3
  16. package/components/{LoyaltyShopItem-CGOptttz.cjs → LoyaltyShopItem-Dy7fBUI9.cjs} +1 -1
  17. package/es2015/loyalty-shop.cjs +1 -1
  18. package/es2015/loyalty-shop.js +2 -2
  19. package/esnext/loyalty-shop.cjs +1 -1
  20. package/esnext/loyalty-shop.js +2 -2
  21. package/package.json +1 -1
  22. package/components/LoyaltyPagination-B7JqsoUi.cjs +0 -14
  23. package/components/LoyaltyPagination-BRav_RW5.cjs +0 -14
@@ -0,0 +1,14 @@
1
+ var ho=Object.defineProperty,co=Object.defineProperties;var po=Object.getOwnPropertyDescriptors;var Xi=Object.getOwnPropertySymbols;var vo=Object.prototype.hasOwnProperty,mo=Object.prototype.propertyIsEnumerable;var Wi=e=>{throw TypeError(e)};var Bn=(e,t,r)=>t in e?ho(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xr=(e,t)=>{for(var r in t||(t={}))vo.call(t,r)&&Bn(e,r,t[r]);if(Xi)for(var r of Xi(t))mo.call(t,r)&&Bn(e,r,t[r]);return e},Wr=(e,t)=>co(e,po(t));var X=(e,t,r)=>Bn(e,typeof t!="symbol"?t+"":t,r),Rn=(e,t,r)=>t.has(e)||Wi("Cannot "+r);var h=(e,t,r)=>(Rn(e,t,"read from private field"),r?r.call(e):t.get(e)),I=(e,t,r)=>t.has(e)?Wi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),N=(e,t,r,n)=>(Rn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),M=(e,t,r)=>(Rn(e,t,"access private method"),r);var tt=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(l){i(l)}},o=u=>{try{a(r.throw(u))}catch(l){i(l)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const _o="5";var _s,gs,ys;typeof window!="undefined"&&((ys=(gs=(_s=window.__svelte)!=null?_s:window.__svelte={}).v)!=null?ys:gs.v=new Set).add(_o);const go=1,yo=2,xs=4,bo=8,Eo=16,xo=1,wo=2,ws="[",xi="[!",Yi="[?",wi="]",yt={},ie=Symbol("uninitialized"),To="http://www.w3.org/1999/xhtml",Ts=!1;var Ss=Array.isArray,So=Array.prototype.indexOf,Mr=Array.prototype.includes,En=Array.from,an=Object.keys,tr=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,Ao=Object.getOwnPropertyDescriptors,Ho=Object.prototype,Mo=Array.prototype,As=Object.getPrototypeOf,zi=Object.isExtensible;const ot=()=>{};function Hs(e){for(var t=0;t<e.length;t++)e[t]()}function Ms(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const fe=2,rr=4,Ur=8,Os=1<<24,Ue=16,ke=32,ut=64,zn=128,Ti=256,Ge=512,se=1024,q=2048,He=4096,ve=8192,oe=16384,Dt=32768,Or=1<<25,nr=65536,on=1<<17,Oo=1<<18,Ut=1<<19,Ps=1<<20,Je=1<<25,un=1<<21,Yt=1<<22,_t=1<<23,qr=Symbol("$state"),Ns=Symbol("component"),Po=Symbol("legacy props"),No=Symbol(""),Zr=Symbol("attributes"),qn=Symbol("class"),$o=Symbol("style"),gr=Symbol("text"),Fr=new class extends Error{constructor(){super(...arguments);X(this,"name","StaleReactionError");X(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var bs;const Io=!!((bs=globalThis.document)!=null&&bs.contentType)&&globalThis.document.contentType.includes("xml"),xn=3,Gr=8;function Bo(){console.warn("https://svelte.dev/e/derived_inert")}function wn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ro(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let k=!1;function at(e){k=e}let C;function be(e){if(e===null)throw wn(),yt;return C=e}function Tn(){return be(et(C))}function ln(e){if(k){if(et(C)!==null)throw wn(),yt;C=e}}function Lo(e=1){if(k){for(var t=e,r=C;t--;)r=et(r);C=r}}function fn(e=!0){for(var t=0,r=C;;){if(r.nodeType===Gr){var n=r.data;if(n===wi){if(t===0)return r;t-=1}else(n===ws||n===xi||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=et(r);e&&r.remove(),r=i}}function Si(e){if(!e||e.nodeType!==Gr)throw wn(),yt;return e.data}function $s(e){return e===this.v}function Is(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Bs(e){return!Is(e,this.v)}function Co(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Do(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Uo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Fo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Go(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ko(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jo(){throw new Error("https://svelte.dev/e/hydration_failed")}function Vo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Yo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let zo=!1,me=null;function ir(e){me=e}function Sn(e,t=!1,r){me={p:me,i:!1,c:null,e:null,s:e,x:null,r:R,l:null}}function An(e){var t=me,r=t.e;if(r!==null){t.e=null;for(var n of r)ia(n)}return e!==void 0&&(t.x=e),t.i=!0,me=t.p,Ai(e)}function Ai(e={}){return tr(e,Ns,{value:!0}),e}function Rs(){return!0}let Mt=[];function Ls(){var e=Mt;Mt=[],Hs(e)}function vt(e){if(Mt.length===0&&!Tr){var t=Mt;queueMicrotask(()=>{t===Mt&&Ls()})}Mt.push(e)}function qo(){for(;Mt.length>0;)Ls()}const Zo=-7169;function ne(e,t){e.f=e.f&Zo|t}function Hi(e){e.f&Ge||e.deps===null?ne(e,se):ne(e,He)}function Cs(e,t){e.f&q?t.set(e,q):e.f&He&&t.get(e)!==q&&t.set(e,He),ne(e,se)}function Hn(e){var t=B,r=R;Re(null),Ke(null);try{return e()}finally{Re(t),Ke(r)}}function Jo(e,t,r,n){const i=Mn;var s=e.filter(p=>!p.settled),o=t.map(i);if(r.length===0&&s.length===0){n(o);return}var a=R,u=Qo(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(p=>p.promise)):null;function f(p){if(!(a.f&oe)){u();try{n([...o,...p])}catch(v){qe(v,a)}hn()}}var c=Ds();if(r.length===0){l.then(()=>f([])).finally(c);return}function d(){Promise.all(r.map(p=>Ko(p))).then(f).catch(p=>qe(p,a)).finally(c)}l?l.then(()=>{if(a.f&oe){c();return}u(),d(),hn()}):d()}function Qo(){var e=R,t=B,r=me,n=P;return function(s=!0){Ke(e),Re(t),ir(r),s&&!(e.f&oe)&&(n==null||n.activate(),n==null||n.apply())}}function hn(e=!0){Ke(null),Re(null),ir(null),e&&(P==null||P.deactivate())}function Ds(){var e=R,t=e.b,r=P,n=!!(t!=null&&t.is_rendered());return t==null||t.update_pending_count(1,r),r.increment(n,e),()=>{t==null||t.update_pending_count(-1,r),r.decrement(n,e)}}function Mn(e){var t=fe|q;return R!==null&&(R.f|=Ut),{ctx:me,deps:null,effects:null,equals:$s,f:t,fn:e,reactions:null,rv:0,v:ie,wv:0,parent:R,ac:null}}const yr=Symbol("obsolete");function Ko(e,t,r){let n=R;n===null&&Co();var i=void 0,s=Ct(ie),o=!B,a=new Set;return cu(()=>{var p,v;var u=R,l=Ms();i=l.promise;try{Promise.resolve(e()).then(l.resolve,_=>{_!==Fr&&l.reject(_)}).finally(hn)}catch(_){l.reject(_),hn()}var f=P;if(o){if(u.f&Dt)var c=Ds();if((p=n.b)!=null&&p.is_rendered())(v=f.async_deriveds.get(u))==null||v.reject(yr);else for(const _ of a.values())_.reject(yr);a.add(l),f.async_deriveds.set(u,l)}const d=(_,m=void 0)=>{c==null||c(),a.delete(l),m!==yr&&(f.activate(),m?(s.f|=_t,sr(s,m)):(s.f&_t&&(s.f^=_t),sr(s,_)),f.deactivate())};l.promise.then(d,_=>d(null,_||"unknown"))}),na(()=>{for(const u of a)u.reject(yr)}),new Promise(u=>{function l(f){function c(){f===i?u(s):l(i)}f.then(c,c)}l(i)})}function St(e){const t=Mn(e);return fa(t),t}function eu(e){const t=Mn(e);return t.equals=Bs,t}function tu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)_e(t[r])}}function Mi(e){var t,r=R,n=e.parent;if(!lt&&n!==null&&e.v!==ie&&n.f&(oe|ve))return Bo(),e.v;Ke(n);try{tu(e),t=pa(e)}finally{Ke(r)}return t}function Us(e){var t=Mi(e);if(!e.equals(t)&&(e.wv=ca(),(!(P!=null&&P.is_fork)||e.deps===null)&&(P!==null?(P.capture(e,t,!0),gt==null||gt.capture(e,t,!0)):e.v=t,e.deps===null))){ne(e,se);return}lt||(ae!==null?(Bi()||P!=null&&P.is_fork)&&ae.set(e,t):Hi(e))}function ru(e){var t;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),r.ac!==null&&Hn(()=>{r.ac.abort(Fr),r.ac=null}),r.fn!==null&&(r.teardown=ot),Nr(r,0),Ci(r))}function Fs(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&ar(t)}let Ln=null,Gt=null,P=null,gt=null,ae=null,Zn=null,Tr=!1,Cn=!1,Sr=null,Jr=null;var qi=0;let nu=1;var qt,Zt,Jt,rt,Qt,nt,Br,Xe,We,Kt,Nt,D,Jn,Gs,Qn,br,Kn,ks,js,Vs,Vt,iu,Er;const gn=class gn{constructor(){I(this,D);X(this,"id",nu++);X(this,"started",!1);X(this,"linked",!0);X(this,"prev",null);X(this,"next",null);X(this,"async_deriveds",new Map);X(this,"current",new Map);X(this,"previous",new Map);I(this,qt,new Set);I(this,Zt,new Set);I(this,Jt,0);I(this,rt,new Map);I(this,Qt,null);I(this,nt,[]);I(this,Br,[]);I(this,Xe,new Map);I(this,We,new Map);I(this,Kt,new Set);X(this,"is_fork",!1);I(this,Nt,!1);Gt===null?Ln=Gt=this:(Gt.next=this,this.prev=Gt),Gt=this}skip_effect(t){h(this,We).has(t)||h(this,We).set(t,{d:[],m:[]}),h(this,Kt).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=h(this,We).get(t);if(n){h(this,We).delete(t);for(var i of n.d)ne(i,q),r(i);for(i of n.m)ne(i,He),r(i)}h(this,Kt).add(t)}capture(t,r,n=!1){t.v!==ie&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&_t||(this.current.set(t,[r,n]),ae==null||ae.set(t,r)),this.is_fork||(t.v=r)}activate(){P=this}deactivate(){P=null,ae=null}flush(){try{Cn=!0,P=this,M(this,D,br).call(this)}finally{qi=0,Zn=null,Sr=null,Jr=null,Cn=!1,P=null,ae=null,Qe.clear()}}discard(){var t;for(const r of h(this,Zt))r(this);h(this,Zt).clear();for(const r of this.async_deriveds.values())r.reject(yr);M(this,D,Er).call(this),(t=h(this,Qt))==null||t.resolve()}register_created_effect(t){h(this,Br).push(t)}increment(t,r){var n;if(N(this,Jt,h(this,Jt)+1),t){let i=(n=h(this,rt).get(r))!=null?n:0;h(this,rt).set(r,i+1)}}decrement(t,r){var n;if(N(this,Jt,h(this,Jt)-1),t){let i=(n=h(this,rt).get(r))!=null?n:0;i===1?h(this,rt).delete(r):h(this,rt).set(r,i-1)}h(this,Nt)||(N(this,Nt,!0),vt(()=>{N(this,Nt,!1),this.linked&&this.flush()}))}transfer_reactions(t){for(const[r,n]of t)this.add_dirty_reaction(r,n);t.clear()}add_dirty_reaction(t,r){(r===q||h(this,Xe).get(t)!==q)&&h(this,Xe).set(t,r)}oncommit(t){h(this,qt).add(t)}ondiscard(t){h(this,Zt).add(t)}settled(){var t;return((t=h(this,Qt))!=null?t:N(this,Qt,Ms())).promise}static ensure(){if(P===null){const t=P=new gn;!Cn&&!Tr&&vt(()=>{t.started||t.flush()})}return P}apply(){{ae=null;return}}schedule(t){var r;if(Zn=t,(r=t.b)!=null&&r.is_pending&&t.f&(rr|Ur|Os)&&!(t.f&Dt)){t.b.defer_effect(t);return}h(this,nt).push(t)}};qt=new WeakMap,Zt=new WeakMap,Jt=new WeakMap,rt=new WeakMap,Qt=new WeakMap,nt=new WeakMap,Br=new WeakMap,Xe=new WeakMap,We=new WeakMap,Kt=new WeakMap,Nt=new WeakMap,D=new WeakSet,Jn=function(){if(this.is_fork)return!0;for(const t of h(this,rt).keys())if(!M(this,D,Gs).call(this,t))return!0;return!1},Gs=function(t){for(var r=t;r!==null;r=r.parent)if(h(this,We).has(r))return!0;return!1},Qn=function(){var t=[];for(const s of h(this,nt))if(!(s.f&oe||!(s.f&(q|He)))){for(var r=s,n=!1;r.parent!==null;){r=r.parent;var i=r.f;if(i&(ut|ke)){if(!(i&se)){n=!0;break}r.f^=se}}n||t.push(r)}return N(this,nt,[]),t},br=function(){var a,u,l,f;this.started=!0;for(const[c,d]of h(this,Xe))ne(c,d),this.schedule(c);this.apply();for(var t=Sr=[],r=[],n=Jr=[];h(this,nt).length>0;){qi++>1e3&&(M(this,D,Er).call(this),su());for(const c of M(this,D,Qn).call(this))try{M(this,D,Kn).call(this,c,t,r)}catch(d){throw Ys(c),M(this,D,Jn).call(this)||this.discard(),d}}if(P=null,n.length>0){var i=gn.ensure();for(const c of n)i.schedule(c)}if(Sr=null,Jr=null,M(this,D,Jn).call(this)){M(this,D,Vt).call(this,r),M(this,D,Vt).call(this,t);for(const[c,d]of h(this,We))Ws(c,d);n.length>0&&M(a=P,D,br).call(a);return}const s=M(this,D,ks).call(this);if(s){M(this,D,Vt).call(this,r),M(this,D,Vt).call(this,t),M(u=s,D,Vs).call(u,this);return}h(this,Xe).clear();for(const c of h(this,qt))c(this);h(this,qt).clear(),gt=this,Zi(r),Zi(t),gt=null,(l=h(this,Qt))==null||l.resolve();var o=P;h(this,Jt)===0&&(h(this,nt).length===0||o!==null)&&M(this,D,Er).call(this),o!==null&&(Qe.clear(),M(f=o,D,br).call(f))},Kn=function(t,r,n){t.f^=se;for(var i=t.first;i!==null;){var s=i.f,o=(s&(ke|ut))!==0,a=o&&(s&se)!==0,u=a||(s&ve)!==0||h(this,We).has(i);if(!u&&i.fn!==null){o?i.f^=se:s&rr?r.push(i):kr(i)&&(s&Ue&&this.add_dirty_reaction(i,He),ar(i));var l=i.first;if(l!==null){i=l;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},ks=function(){for(var t=this.prev;t!==null;t=t.prev)if(!t.is_fork&&M(this,D,js).call(this,t))return t;return null},js=function(t){for(const[r,[,n]]of this.current)if(!n&&t.current.has(r))return!0;return!1},Vs=function(t){var n;for(const[i,s]of t.current)!this.previous.has(i)&&t.previous.has(i)&&this.previous.set(i,t.previous.get(i)),this.current.set(i,s);for(const[i,s]of t.async_deriveds){const o=this.async_deriveds.get(i);o&&s.promise.then(o.resolve).catch(o.reject)}t.async_deriveds.clear(),this.transfer_reactions(h(t,Xe));const r=i=>{var s=i.reactions;if(s!==null&&!(i.f&fe&&!(i.f&(q|He))))for(const u of s){var o=u.f;if(o&fe)r(u);else{var a=u;o&(Yt|Ue)&&!this.async_deriveds.has(a)&&(h(this,Xe).delete(a),ne(a,q),this.schedule(a))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),M(n=t,D,Er).call(n),P=this,M(this,D,br).call(this)},Vt=function(t){for(var r=0;r<t.length;r+=1)Cs(t[r],h(this,Xe))},iu=function(){var c,d;for(let p=Ln;p!==null;p=p.next){var t=p.id<this.id,r=[];for(const[v,[_,m]]of this.current){if(p.current.has(v)){var n=p.current.get(v)[0];if(t&&_!==n)p.current.set(v,[_,m]);else continue}r.push(v)}if(t)for(const[v,_]of this.async_deriveds){const m=p.async_deriveds.get(v);m&&_.promise.then(m.resolve).catch(m.reject)}var i=[...p.current.keys()].filter(v=>!p.current.get(v)[1]);if(!(!p.started||i.length===0)){var s=i.filter(v=>!this.current.has(v));if(s.length===0)t&&p.discard();else if(r.length>0){if(t)for(const v of h(this,Kt))p.unskip_effect(v,_=>{var m;_.f&(Ue|Yt)?p.schedule(_):M(m=p,D,Vt).call(m,[_])});p.activate();var o=new Set,a=new Map;for(var u of r)Xs(u,s,o,a);a=new Map;var l=[...p.current].filter(([v,_])=>{const m=this.current.get(v);return m?m[0]!==_[0]||m[1]!==_[1]:!0}).map(([v])=>v);if(l.length>0)for(const v of h(this,Br))!(v.f&(oe|ve|on))&&Oi(v,l,a)&&(v.f&(Yt|Ue)?(ne(v,q),p.schedule(v)):p.add_dirty_reaction(v,q));if(h(p,nt).length>0&&!h(p,Nt)){p.apply();for(var f of M(c=p,D,Qn).call(c))M(d=p,D,Kn).call(d,f,[],[])}p.deactivate()}}}},Er=function(){if(this.linked){var t=this.prev,r=this.next;t===null?Ln=r:t.next=r,r===null?Gt=t:r.prev=t,this.linked=!1}};let bt=gn;function Ae(e){var t=Tr,r=gt;gt=null,Tr=!0;try{for(var n;;){if(qo(),P===null)return n;P.flush()}}finally{Tr=t,gt=r}}function su(){try{ko()}catch(e){qe(e,Zn)}}let Le=null;function Zi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(oe|ve))&&kr(n)&&(Le=new Set,ar(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&oa(n),(Le==null?void 0:Le.size)>0)){Qe.clear();for(const i of Le){if(i.f&(oe|ve))continue;const s=[i];let o=i.parent;for(;o!==null;)Le.has(o)&&(Le.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const u=s[a];u.f&(oe|ve)||ar(u)}}Le.clear()}}Le=null}}function Xs(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&fe?Xs(i,t,r,n):s&(Yt|Ue)&&!(s&q)&&Oi(i,t,n)&&(ne(i,q),Pi(i))}}function Oi(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(Mr.call(t,i))return!0;if(i.f&fe&&Oi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Pi(e){P.schedule(e)}function Ws(e,t){if(!(e.f&ke&&e.f&se)){e.f&q?t.d.push(e):e.f&He&&t.m.push(e),ne(e,se);for(var r=e.first;r!==null;)Ws(r,t),r=r.next}}function Ys(e){ne(e,se);for(var t=e.first;t!==null;)Ys(t),t=t.next}let cn=new Set;const Qe=new Map;let zs=!1;function Ct(e,t){var r={f:0,v:e,reactions:null,equals:$s,rv:0,wv:0};return r}function le(e,t){const r=Ct(e);return fa(r),r}function Ni(e,t=!1,r=!0){const n=Ct(e);return t||(n.equals=Bs),n}function re(e,t,r=!1){B!==null&&(!Fe||B.f&on)&&Rs()&&B.f&(fe|Ue|Yt|on)&&(Be===null||!Be.has(e))&&Wo();let n=r?Xt(t):t;return sr(e,n,Jr)}var At=null,ei=0;function sr(e,t,r=null){if(!e.equals(t)){lt?Qe.set(e,t):Qe.has(e)||Qe.set(e,e.v);var n=bt.ensure();if(n.capture(e,t),e.f&fe){const i=e;e.f&q&&Mi(i),ae===null&&Hi(i)}e.wv=ca(),At=null,ei=0,qs(e,q,r),At=null,R!==null&&R.f&se&&!(R.f&(ke|ut))&&(Oe===null?vu([e]):Oe.push(e)),!n.is_fork&&cn.size>0&&!zs&&au()}return t}function au(){zs=!1;for(const e of cn){e.f&se&&ne(e,He);let t;try{t=kr(e)}catch(r){t=!0}t&&ar(e)}cn.clear()}function Ar(e){re(e,e.v+1)}function qs(e,t,r){var n=e.reactions;if(n!==null){var i=n.length;if(ei+=i,ei>1e5&&At===null&&(At=new Set),At!==null){if(At.has(e))return;At.add(e)}for(var s=0;s<i;s++){var o=n[s],a=o.f,u=(a&q)===0;if(u&&ne(o,t),a&on)cn.add(o);else if(a&fe){var l=o;ae==null||ae.delete(l),qs(l,He,r)}else if(u){var f=o;a&Ue&&Le!==null&&Le.add(f),r!==null?r.push(f):Pi(f)}}}}function Xt(e){if(typeof e!="object"||e===null||qr in e||Ns in e)return e;const t=As(e);if(t!==Ho&&t!==Mo)return e;var r=new Map,n=Ss(e),i=le(0),s=Lt,o=a=>{if(Lt===s)return a();var u=B,l=Lt;Re(null),Ki(s);var f=a();return Re(u),Ki(l),f};return n&&r.set("length",le(e.length)),new Proxy(e,{defineProperty(a,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Vo();var f=r.get(u);return f===void 0?o(()=>{var c=le(l.value);return r.set(u,c),c}):re(f,l.value,!0),!0},deleteProperty(a,u){var l=r.get(u);if(l===void 0){if(u in a){const f=o(()=>le(ie));r.set(u,f),Ar(i)}}else re(l,ie),Ar(i);return!0},get(a,u,l){var p;if(u===qr)return e;var f=r.get(u),c=u in a;if(f===void 0&&(!c||(p=Wt(a,u))!=null&&p.writable)&&(f=o(()=>{var v=Xt(c?a[u]:ie),_=le(v);return _}),r.set(u,f)),f!==void 0){var d=H(f);return d===ie?void 0:d}return Reflect.get(a,u,l)},getOwnPropertyDescriptor(a,u){var d;(d=this.has)==null||d.call(this,a,u);var l=Reflect.getOwnPropertyDescriptor(a,u),f=r.get(u);if(f!==void 0){var c=H(f);if(c===ie)return;if(l&&"value"in l)l.value=c;else return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(a,u){var d;if(u===qr)return!0;var l=r.get(u),f=l!==void 0&&l.v!==ie||Reflect.has(a,u);if(l!==void 0||(R!==null||B!==null)&&(!f||(d=Wt(a,u))!=null&&d.writable)){l===void 0&&(l=o(()=>{var p=f?Xt(a[u]):ie,v=le(p);return v}),r.set(u,l));var c=H(l);if(c===ie)return!1}return f},set(a,u,l,f){var $;var c=r.get(u),d=u in a;if(n&&u==="length")for(var p=l;p<c.v;p+=1){var v=r.get(p+"");v!==void 0?re(v,ie):p in a&&(v=o(()=>le(ie)),r.set(p+"",v))}if(c===void 0)(!d||($=Wt(a,u))!=null&&$.writable)&&(c=o(()=>le(void 0)),re(c,Xt(l)),r.set(u,c));else{d=c.v!==ie;var _=o(()=>Xt(l));re(c,_)}var m=Reflect.getOwnPropertyDescriptor(a,u);if(m!=null&&m.set&&m.set.call(f,l),!d){if(n&&typeof u=="string"){var w=r.get("length"),U=Number(u);Number.isInteger(U)&&U>=w.v&&re(w,U+1)}Ar(i)}return!0},ownKeys(a){H(i);var u=Reflect.ownKeys(a).filter(c=>{var d=r.get(c);return d===void 0||d.v!==ie});for(var[l,f]of r)f.v!==ie&&!(l in a)&&u.push(l);return u},setPrototypeOf(){Xo()}})}var Ji,Zs,Js,Qs;function ti(){if(Ji===void 0){Ji=window,Zs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Js=Wt(t,"firstChild").get,Qs=Wt(t,"nextSibling").get,zi(e)&&(e[qn]=void 0,e[Zr]=null,e[$o]=void 0,e.__e=void 0),zi(r)&&(r[gr]=void 0)}}function Ie(e=""){return document.createTextNode(e)}function Et(e){return Js.call(e)}function et(e){return Qs.call(e)}function dn(e,t){if(!k)return Et(e);var r=Et(C);if(r===null)r=C.appendChild(Ie());else if(t&&r.nodeType!==xn){var n=Ie();return r==null||r.before(n),be(n),n}return t&&Ii(r),be(r),r}function Ks(e,t=!1){if(!k){var r=Et(e);return r instanceof Comment&&r.data===""?et(r):r}if(t){if((C==null?void 0:C.nodeType)!==xn){var n=Ie();return C==null||C.before(n),be(n),n}Ii(C)}return C}function Qr(e,t=!1){if(!k)return Et(e);var r=dn(e,t);return ln(e),r}function ri(e,t=1,r=!1){let n=k?C:e;for(var i;t--;)i=n,n=et(n);if(!k)return n;if(r){if((n==null?void 0:n.nodeType)!==xn){var s=Ie();return n===null?i==null||i.after(s):n.before(s),be(s),s}Ii(n)}return be(n),n}function ea(e){e.textContent=""}function ta(){return!1}function $i(e,t,r){return r?document.createElement(e,{is:r}):document.createElement(e)}function Ii(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===xn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function ou(e){var t=R;if(t===null)return B.f|=_t,e;if(!(t.f&Dt)&&!(t.f&rr))throw e;qe(e,t)}function qe(e,t){if(e===yt)throw e;if(!(t!==null&&t.f&oe)){for(;t!==null;){if(t.f&zn&&!(t.f&(oe|Or))){if(!(t.f&Dt))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}function ra(e){R===null&&(B===null&&Go(),Fo()),lt&&Uo()}function uu(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function je(e,t){var o;var r=R;r!==null&&r.f&ve&&(e|=ve);var n={ctx:me,deps:null,nodes:null,f:e|q|Ge,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};P==null||P.register_created_effect(n);var i=n;if(e&rr)Sr!==null?Sr.push(n):bt.ensure().schedule(n);else if(t!==null){try{ar(n)}catch(a){throw _e(n),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&Ut)&&(i=i.first,e&Ue&&e&nr&&i!==null&&(i.f|=nr))}if(i!==null&&(i.parent=r,r!==null&&uu(i,r),B!==null&&B.f&fe&&!(e&ut))){var s=B;((o=s.effects)!=null?o:s.effects=[]).push(i)}return n}function Bi(){return B!==null&&!Fe}function na(e){const t=je(Ur,null);return ne(t,se),t.teardown=e,t}function Pr(e){var i;ra();var t=R.f,r=!B&&(t&ke)!==0&&me!==null&&!me.i;if(r){var n=me;((i=n.e)!=null?i:n.e=[]).push(e)}else return ia(e)}function ia(e){return je(rr|Ps,e)}function lu(e){return ra(),je(Ur|Ps,e)}function fu(e){bt.ensure();const t=je(ut|Ut,e);return()=>{_e(t)}}function hu(e){bt.ensure();const t=je(ut|Ut,e);return(r={})=>new Promise(n=>{r.outro?Rt(t,()=>{_e(t),n(void 0)}):(_e(t),n(void 0))})}function sa(e){return je(rr,e)}function cu(e){return je(Yt|Ut,e)}function Ri(e,t=0){return je(Ur|t,e)}function ni(e,t=[],r=[],n=[]){Jo(n,t,r,i=>{je(Ur,()=>{e(...i.map(H))})})}function Li(e,t=0){var r=je(Ue|t,e);return r}function $e(e){return je(ke|Ut,e)}function aa(e){var t=e.teardown;if(t!==null){const r=lt,n=B;Qi(!0),Re(null);try{t.call(null)}catch(i){qe(i,e.parent)}finally{Qi(r),Re(n)}}}function Ci(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Hn(()=>{i.abort(Fr)});var n=r.next;r.f&ut?r.parent=null:_e(r,t),r=n}}function du(e){for(var t=e.first;t!==null;){var r=t.next;t.f&ke||_e(t),t=r}}function _e(e,t=!0){var r=!1;(t||e.f&Oo)&&e.nodes!==null&&e.nodes.end!==null&&(pu(e.nodes.start,e.nodes.end),r=!0),e.f|=Or,Ci(e,t&&!r),Nr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();aa(e),e.f^=Or,e.f|=oe;var i=e.parent;i!==null&&i.first!==null&&oa(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function pu(e,t){for(;e!==null;){var r=e===t?null:et(e);e.remove(),e=r}}function oa(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Rt(e,t,r=!0){var n=[];e.f|=Ti,ua(e,n,!0);var i=()=>{r&&_e(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var a of n)a.out(o)}else i()}function ua(e,t,r){if(!(e.f&ve)){e.f^=ve;var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&t.push(a);for(var i=e.first;i!==null;){var s=i.next;if(!(i.f&ut)){var o=(i.f&nr)!==0||(i.f&ke)!==0&&(e.f&Ue)!==0;ua(i,t,o?r:!1)}i=s}}}function pn(e){e.f&=~Ti,la(e,!0)}function la(e,t){if(!(e.f&Ti)&&e.f&ve){e.f^=ve,e.f&se||(ne(e,q),bt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&nr)!==0||(r.f&ke)!==0;la(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Di(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:et(r);t.append(r),r=i}}let lt=!1;function Qi(e){lt=e}let B=null,Fe=!1;function Re(e){B=e}let R=null;function Ke(e){R=e}let Be=null;function fa(e){B!==null&&(B.f&un||B.f&fe)&&(Be!=null?Be:Be=new Set).add(e)}let ye=null,Se=0,Oe=null;function vu(e){Oe=e}let ha=1,Ot=0,Lt=Ot;function Ki(e){Lt=e}function ca(){return++ha}function kr(e){var t=e.f;if(t&q)return!0;if(t&He){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(kr(s)&&Us(s),s.wv>e.wv)return!0}t&Ge&&ae===null&&ne(e,se)}return!1}function da(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Be!==null&&Be.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&fe?da(s,t,!1):t===s&&(r?ne(s,q):s.f&se&&ne(s,He),Pi(s))}}function pa(e){var t=ye,r=Se,n=Oe,i=B,s=Be,o=me,a=Fe,u=Lt,l=e.f;ye=null,Se=0,Oe=null,B=l&(ke|ut)?null:e,Be=null,ir(e.ctx),Fe=!1,Lt=++Ot,e.ac!==null&&(Hn(()=>{e.ac.abort(Fr)}),e.ac=null);try{e.f|=un;var f=e.fn,c=f();e.f|=Dt;var d=es(e);if(Rs()&&Oe!==null&&!Fe&&d!==null&&!(e.f&(fe|He|q)))for(var p=0;p<Oe.length;p++)da(Oe[p],e);if(i!==null&&i!==e){if(Ot++,i.deps!==null)for(let v=0;v<r;v+=1)i.deps[v].rv=Ot;if(t!==null)for(const v of t)v.rv=Ot;Oe!==null&&(n===null?n=Oe:n.push(...Oe))}return e.f&_t&&(e.f^=_t),c}catch(v){return es(e),ou(v)}finally{e.f^=un,ye=t,Se=r,Oe=n,B=i,Be=s,ir(o),Fe=a,Lt=u}}function es(e){var i,s;var t=e.deps,r=P==null?void 0:P.is_fork;if(ye!==null){var n;if(r||Nr(e,Se),t!==null&&Se>0)for(t.length=Se+ye.length,n=0;n<ye.length;n++)t[Se+n]=ye[n];else e.deps=t=ye;if(Bi()&&e.f&Ge)for(n=Se;n<t.length;n++)((s=(i=t[n]).reactions)!=null?s:i.reactions=[]).push(e)}else!r&&t!==null&&Se<t.length&&(Nr(e,Se),t.length=Se);return t}function mu(e,t){let r=t.reactions;if(r!==null){var n=So.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&t.f&fe&&(ye===null||!Mr.call(ye,t))){var s=t;s.f&Ge&&(s.f^=Ge),s.v!==ie&&Hi(s),s.ac!==null&&Hn(()=>{s.ac.abort(Fr),s.ac=null,ne(s,q)}),ru(s),Nr(s,0)}}function Nr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)mu(e,r[n])}function ar(e){var t=e.f;if(!(t&oe)){ne(e,se);var r=R;R=e;try{t&(Ue|Os)?du(e):Ci(e),aa(e);var n=pa(e);e.teardown=typeof n=="function"?n:null,e.wv=ha;var i;Ts&&zo&&e.f&q&&e.deps}finally{R=r}}}function _u(){return tt(this,null,function*(){yield Promise.resolve(),Ae()})}function H(e){var f;var t=e.f,r=(t&fe)!==0;if(B!==null&&!Fe){var n=R!==null&&(R.f&oe)!==0;if(!n&&(Be===null||!Be.has(e))){var i=B.deps;if(B.f&un)e.rv<Ot&&(e.rv=Ot,ye===null&&i!==null&&i[Se]===e?Se++:ye===null?ye=[e]:ye.push(e));else{(f=B.deps)!=null||(B.deps=[]),Mr.call(B.deps,e)||B.deps.push(e);var s=e.reactions;s===null?e.reactions=[B]:Mr.call(s,B)||s.push(B)}}}if(lt&&Qe.has(e))return Qe.get(e);if(r){var o=e;if(lt){var a=o.v;return(!(o.f&se)&&o.reactions!==null||ma(o))&&(a=Mi(o)),Qe.set(o,a),a}var u=(o.f&Ge)===0&&!Fe&&B!==null&&(B.f&Ge)!==0,l=(o.f&Dt)===0;kr(o)&&(u&&(o.f|=Ge),Us(o)),u&&!l&&(Fs(o),va(o))}if(ae!=null&&ae.has(e))return ae.get(e);if(e.f&_t)throw e.v;return e.v}function va(e){if(e.f|=Ge,e.deps!==null)for(const r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:Mr.call(t,e)||t.push(e),r.f&fe&&!(r.f&Ge)&&(Fs(r),va(r))}}function ma(e){if(e.v===ie)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Qe.has(t)||t.f&fe&&ma(t))return!0;return!1}function Ui(e){var t=Fe;try{return Fe=!0,e()}finally{Fe=t}}const Pt=Symbol("events"),_a=new Set,ii=new Set;function Kr(e,t,r){var n;((n=t[Pt])!=null?n:t[Pt]={})[e]=r}function ga(e){for(var t=0;t<e.length;t++)_a.add(e[t]);for(var r of ii)r(e)}let Dn=null,Un=!1;function ts(e){var _,m;var t=this,r=t.ownerDocument,n=e.type,i=((_=e.composedPath)==null?void 0:_.call(e))||[],s=i[0]||e.target;Dn=e,Un||(Un=!0,setTimeout(()=>{Un=!1,Dn=null}));var o=0,a=Dn===e&&e[Pt];if(a){var u=i.indexOf(a);if(u!==-1&&(t===document||t===window)){e[Pt]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(o=u)}if(s=i[o]||e.target,s!==t){tr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=B,c=R;Re(null),Ke(null);try{for(var d,p=[];s!==null&&s!==t;){try{var v=(m=s[Pt])==null?void 0:m[n];v!=null&&(!s.disabled||e.target===s)&&v.call(s,e)}catch(w){d?p.push(w):d=w}if(e.cancelBubble)break;o++,s=o<i.length?i[o]:null}if(d){for(let w of p)queueMicrotask(()=>{throw w});throw d}}finally{e[Pt]=t,delete e.currentTarget,Re(f),Ke(c)}}}var Es;const Fn=((Es=globalThis==null?void 0:globalThis.window)==null?void 0:Es.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function gu(e){var t;return(t=Fn==null?void 0:Fn.createHTML(e))!=null?t:e}function yu(e){var t=$i("template");return t.innerHTML=gu(e.replaceAll("<!>","<!---->")),t.content}function zt(e,t){var r=R;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function jr(e,t){var r=(t&xo)!==0,n=(t&wo)!==0,i,s=!e.startsWith("<!>");return()=>{if(k)return zt(C,null),C;i===void 0&&(i=yu(s?e:"<!>"+e),r||(i=Et(i)));var o=n||Zs?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Et(o),u=o.lastChild;zt(a,u)}else zt(o,o);return o}}function ya(){if(k)return zt(C,null),C;var e=document.createDocumentFragment(),t=document.createComment(""),r=Ie();return e.append(t,r),zt(t,r),e}function Ht(e,t){if(k){var r=R;(!(r.f&Dt)||r.nodes.end===null)&&(r.nodes.end=C),Tn();return}e!==null&&e.before(t)}const bu=["touchstart","touchmove"];function Eu(e){return bu.includes(e)}function xu(e){let t=0,r=Ct(0),n;return()=>{Bi()&&(H(r),Ri(()=>(t===0&&(n=Ui(()=>e(()=>Ar(r)))),t+=1,()=>{vt(()=>{t-=1,t===0&&(n==null||n(),n=void 0,Ar(r))})})))}}var wu=nr|Ut;function Tu(e,t,r,n){new Su(e,t,r,n)}var Ee,Rr,Pe,$t,ue,xe,de,we,Ye,It,pt,er,Lr,it,yn,L,ba,Ea,si,dt,xa,ai,xr,en,oi,ui;class Su{constructor(t,r,n,i){I(this,L);X(this,"parent");X(this,"is_pending",!1);X(this,"transform_error");I(this,Ee);I(this,Rr,k?C:null);I(this,Pe);I(this,$t);I(this,ue);I(this,xe,null);I(this,de,null);I(this,we,null);I(this,Ye,null);I(this,It,0);I(this,pt,0);I(this,er,!1);I(this,Lr,new Map);I(this,it,null);I(this,yn,xu(()=>(N(this,it,Ct(h(this,It))),()=>{N(this,it,null)})));var s,o;N(this,Ee,t),N(this,Pe,r),N(this,$t,a=>{var u=R;u.b=this,u.f|=zn,n(a)}),this.parent=R.b,this.transform_error=(o=i!=null?i:(s=this.parent)==null?void 0:s.transform_error)!=null?o:a=>a,N(this,ue,Li(()=>{if(k){const a=Si(h(this,Rr));Tn();const u=a===xi;if(a.startsWith(Yi)){const f=JSON.parse(a.slice(Yi.length));M(this,L,Ea).call(this,f)}else u?M(this,L,xa).call(this):M(this,L,ba).call(this)}else M(this,L,ai).call(this)},wu)),k&&N(this,Ee,C)}defer_effect(t){Cs(t,h(this,Lr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!h(this,Pe).pending}update_pending_count(t,r){M(this,L,oi).call(this,t,r),N(this,It,h(this,It)+t),!(!h(this,it)||h(this,er))&&(N(this,er,!0),vt(()=>{N(this,er,!1),h(this,it)&&sr(h(this,it),h(this,It))}))}get_effect_pending(){return h(this,yn).call(this),H(h(this,it))}error(t){if(t===yt||!h(this,Pe).onerror&&!h(this,Pe).failed)throw t;P!=null&&P.is_fork?(h(this,xe)&&P.skip_effect(h(this,xe)),h(this,de)&&P.skip_effect(h(this,de)),h(this,we)&&P.skip_effect(h(this,we)),P.oncommit(()=>{M(this,L,dt).call(this)||M(this,L,ui).call(this,t)})):M(this,L,ui).call(this,t)}}Ee=new WeakMap,Rr=new WeakMap,Pe=new WeakMap,$t=new WeakMap,ue=new WeakMap,xe=new WeakMap,de=new WeakMap,we=new WeakMap,Ye=new WeakMap,It=new WeakMap,pt=new WeakMap,er=new WeakMap,Lr=new WeakMap,it=new WeakMap,yn=new WeakMap,L=new WeakSet,ba=function(){try{N(this,xe,$e(()=>h(this,$t).call(this,h(this,Ee))))}catch(t){this.error(t)}},Ea=function(t){const r=h(this,Pe).failed,{reset:n,invoke_onerror:i}=M(this,L,si).call(this,t);vt(i),r&&N(this,we,$e(()=>{r(h(this,Ee),()=>t,()=>n)}))},si=function(t){var r=!1,n=!1;const i=()=>{if(!M(this,L,dt).call(this)){if(r){Ro();return}r=!0,n&&Yo(),h(this,we)!==null&&Rt(h(this,we),()=>{N(this,we,null)}),M(this,L,en).call(this,()=>{M(this,L,ai).call(this)})}};return{reset:i,invoke_onerror:()=>{var o,a;if(!M(this,L,dt).call(this))try{n=!0,(a=(o=h(this,Pe)).onerror)==null||a.call(o,t,i),n=!1}catch(u){qe(u,h(this,ue)&&h(this,ue).parent)}}}},dt=function(){return(h(this,ue).f&(oe|Or))!==0},xa=function(){const t=h(this,Pe).pending;t&&(this.is_pending=!0,N(this,de,$e(()=>t(h(this,Ee)))),vt(()=>{if(!M(this,L,dt).call(this)){var r=N(this,Ye,document.createDocumentFragment()),n=Ie(),i=!1;if(r.append(n),N(this,xe,M(this,L,en).call(this,()=>{try{return $e(()=>h(this,$t).call(this,n))}catch(s){try{this.error(s),i=!0}catch(o){qe(o,h(this,ue).parent)}return null}})),h(this,xe)===null){N(this,Ye,null),i&&M(this,L,xr).call(this,P);return}h(this,pt)===0&&(h(this,Ee).before(r),N(this,Ye,null),Rt(h(this,de),()=>{N(this,de,null)}),M(this,L,xr).call(this,P))}}))},ai=function(){try{if(this.is_pending=this.has_pending_snippet(),N(this,pt,0),N(this,It,0),N(this,xe,$e(()=>{h(this,$t).call(this,h(this,Ee))})),h(this,pt)>0){var t=N(this,Ye,document.createDocumentFragment());Di(h(this,xe),t);const r=h(this,Pe).pending;N(this,de,$e(()=>r(h(this,Ee))))}else M(this,L,xr).call(this,P)}catch(r){this.error(r)}},xr=function(t){this.is_pending=!1,t.transfer_reactions(h(this,Lr))},en=function(t){var r=R,n=B,i=me;Ke(h(this,ue)),Re(h(this,ue)),ir(h(this,ue).ctx);try{return bt.ensure(),t()}finally{Ke(r),Re(n),ir(i)}},oi=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&M(n=this.parent,L,oi).call(n,t,r);return}N(this,pt,h(this,pt)+t),h(this,pt)===0&&(M(this,L,xr).call(this,r),h(this,de)&&Rt(h(this,de),()=>{N(this,de,null)}),h(this,Ye)&&(h(this,Ee).before(h(this,Ye)),N(this,Ye,null)))},ui=function(t){h(this,xe)&&(_e(h(this,xe)),N(this,xe,null)),h(this,de)&&(_e(h(this,de)),N(this,de,null)),h(this,we)&&(_e(h(this,we)),N(this,we,null)),k&&(be(h(this,Rr)),Lo(),be(fn()));let r=h(this,Pe).failed;const n=i=>{if(M(this,L,dt).call(this))return;const{reset:s,invoke_onerror:o}=M(this,L,si).call(this,i);o(),r&&!M(this,L,dt).call(this)&&N(this,we,M(this,L,en).call(this,()=>{try{return $e(()=>{var a=R;a.b=this,a.f|=zn,r(h(this,Ee),()=>i,()=>s)})}catch(a){return qe(a,h(this,ue).parent),null}}))};vt(()=>{if(!M(this,L,dt).call(this)){var i;try{i=this.transform_error(t)}catch(s){qe(s,h(this,ue)&&h(this,ue).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>qe(s,h(this,ue)&&h(this,ue).parent)):n(i)}})};function tn(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e[gr])!=null?n:e[gr]=e.nodeValue)&&(e[gr]=r,e.nodeValue=`${r}`)}function wa(e,t){return Ta(e,t)}function Au(e,t){var o;ti(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,n=k,i=C;try{for(var s=Et(r);s&&(s.nodeType!==Gr||s.data!==ws);)s=et(s);if(!s)throw yt;at(!0),be(s);const a=Ta(e,Wr(Xr({},t),{anchor:s}));return at(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(u=>u.startsWith("https://svelte.dev/e/")))throw a;return a!==yt&&console.warn("Failed to hydrate: ",a),t.recover===!1&&jo(),ti(),ea(r),at(!1),wa(e,t)}finally{at(n),be(i)}}const Yr=new Map;function Ta(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0,transformError:a}){ti();var u=void 0,l=hu(()=>{var f=r!=null?r:t.appendChild(Ie());Tu(f,{pending:()=>{}},p=>{Sn({});var v=me;if(s&&(v.c=s),i&&(n.$$events=i),k&&zt(p,null),u=e(p,n)||Ai(),k&&(R.nodes.end=C,C===null||C.nodeType!==Gr||C.data!==wi))throw wn(),yt;An()},a);var c=new Set,d=p=>{for(var v=0;v<p.length;v++){var _=p[v];if(!c.has(_)){c.add(_);var m=Eu(_);for(const $ of[t,document]){var w=Yr.get($);w===void 0&&(w=new Map,Yr.set($,w));var U=w.get(_);U===void 0?($.addEventListener(_,ts,{passive:m}),w.set(_,1)):w.set(_,U+1)}}}};return d(En(_a)),ii.add(d),()=>{var m;for(var p of c)for(const w of[t,document]){var v=Yr.get(w),_=v.get(p);--_==0?(w.removeEventListener(p,ts),v.delete(p),v.size===0&&Yr.delete(w)):v.set(p,_)}ii.delete(d),f!==r&&((m=f.parentNode)==null||m.removeChild(f))}});return li.set(u,l),u}let li=new WeakMap;function Hu(e,t){const r=li.get(e);return r?(li.delete(e),r(t)):Promise.resolve()}var Ce,ze,Te,Bt,Cr,Dr,bn;class Mu{constructor(t,r=!0){X(this,"anchor");I(this,Ce,new Map);I(this,ze,new Map);I(this,Te,new Map);I(this,Bt,new Set);I(this,Cr,!0);I(this,Dr,t=>{if(h(this,Ce).has(t)){var r=h(this,Ce).get(t),n=h(this,ze).get(r);if(n)pn(n),h(this,Bt).delete(r);else{var i=h(this,Te).get(r);i&&(pn(i.effect),h(this,ze).set(r,i.effect),h(this,Te).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of h(this,Ce)){if(h(this,Ce).delete(s),s===t)break;const a=h(this,Te).get(o);a&&(_e(a.effect),h(this,Te).delete(o))}for(const[s,o]of h(this,ze)){if(s===r||h(this,Bt).has(s))continue;const a=()=>{if(Array.from(h(this,Ce).values()).includes(s)){var l=document.createDocumentFragment();Di(o,l),l.append(Ie()),h(this,Te).set(s,{effect:o,fragment:l})}else _e(o);h(this,Bt).delete(s),h(this,ze).delete(s)};h(this,Cr)||!n?(h(this,Bt).add(s),Rt(o,a,!1)):a()}}});I(this,bn,t=>{h(this,Ce).delete(t);const r=Array.from(h(this,Ce).values());for(const[n,i]of h(this,Te))r.includes(n)||(_e(i.effect),h(this,Te).delete(n))});this.anchor=t,N(this,Cr,r)}ensure(t,r){var n=P,i=ta();if(r&&!h(this,ze).has(t)&&!h(this,Te).has(t))if(i){var s=document.createDocumentFragment(),o=Ie();s.append(o),h(this,Te).set(t,{effect:$e(()=>r(o)),fragment:s})}else h(this,ze).set(t,$e(()=>r(this.anchor)));if(h(this,Ce).set(n,t),i){for(const[a,u]of h(this,ze))a===t?n.unskip_effect(u):n.skip_effect(u);for(const[a,u]of h(this,Te))a===t?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(h(this,Dr)),n.ondiscard(h(this,bn))}else k&&(this.anchor=C),h(this,Dr).call(this,n)}}Ce=new WeakMap,ze=new WeakMap,Te=new WeakMap,Bt=new WeakMap,Cr=new WeakMap,Dr=new WeakMap,bn=new WeakMap;function fi(e,t,r=!1){var n;k&&(n=C,Tn());var i=new Mu(e),s=r?nr:0;function o(a,u){if(k){var l=Si(n);if(a!==parseInt(l.substring(1))){var f=fn();be(f),i.anchor=f,at(!1),i.ensure(a,u),at(!0);return}}i.ensure(a,u)}Li(()=>{var a=!1;t((u,l=0)=>{a=!0,o(l,u)}),a||o(-1,null)},s)}function Sa(e,t){return t}function Ou(e,t,r){var c;for(var n=[],i=t.length,s,o=t.length,a=0;a<i;a++){let d=t[a];Rt(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var p=e.outrogroups;hi(e,En(s.done)),p.delete(s),p.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var u=n.length===0&&r!==null&&e.pending.size===0;if(u){var l=r,f=l.parentNode;ea(f),f.append(l),e.items.clear()}hi(e,t,!u)}else s={pending:new Set(t),done:new Set},((c=e.outrogroups)!=null?c:e.outrogroups=new Set).add(s)}function hi(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const o of e.pending.values())for(const a of o)n.add(e.items.get(a).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n!=null&&n.has(s)){s.f|=Je;const o=document.createDocumentFragment();Di(s,o)}else _e(t[i],r)}}var kt;function Aa(e,t,r,n,i,s=null){var o=e,a=new Map,u=(t&xs)!==0;if(u){var l=e;o=k?be(Et(l)):l.appendChild(Ie())}k&&Tn();var f=null,c=eu(()=>{var U=r();return Ss(U)?U:U==null?[]:En(U)}),d=new Map,p=!0;function v(U){if(!(w.effect.f&oe)){w.pending.delete(U);var $=H(c);w.fallback=f,Pu(w,$,o,t,n),f!==null&&($.length===0?f.f&Je?(f.f^=Je,wr(f,null,o)):pn(f):Rt(f,()=>{f=null}))}}function _(U){w.pending.delete(U)}var m=Li(()=>{var U=H(c),$=U.length;let Y=!1;if(k){var J=Si(o)===xi;J!==($===0)&&(o=fn(),be(o),at(!1),Y=!0)}for(var j=new Set,te=P,Me=ta(),he=0;he<$;he+=1){k&&C.nodeType===Gr&&C.data===wi&&(o=C,Y=!0,at(!1));var x=U[he],A=n(x,he),W=p?null:a.get(A);W?(W.v&&sr(W.v,x),W.i&&sr(W.i,he),Me&&te.unskip_effect(W.e)):(W=Nu(a,p?o:kt!=null?kt:kt=Ie(),x,A,he,i,t,r),p||(W.e.f|=Je),a.set(A,W)),j.add(A)}if($===0&&s&&!f&&(p?f=$e(()=>s(o)):(f=$e(()=>s(kt!=null?kt:kt=Ie())),f.f|=Je)),$>j.size&&Do(),k&&$>0&&be(fn()),!p)if(d.set(te,j),Me){for(const[Ve,S]of a)j.has(Ve)||te.skip_effect(S.e);te.oncommit(v),te.ondiscard(_)}else v(te);Y&&at(!0),H(c)}),w={effect:m,items:a,pending:d,outrogroups:null,fallback:f};p=!1,k&&(o=C)}function mr(e){for(;e!==null&&!(e.f&ke);)e=e.next;return e}function Pu(e,t,r,n,i){var x,A,W,Ve,S,b,g,E,y;var s=(n&bo)!==0,o=t.length,a=e.items,u=mr(e.effect.first),l,f=null,c,d=[],p=[],v,_,m,w;if(s)for(w=0;w<o;w+=1)v=t[w],_=i(v,w),m=a.get(_).e,m.f&Je||((A=(x=m.nodes)==null?void 0:x.a)==null||A.measure(),(c!=null?c:c=new Set).add(m));for(w=0;w<o;w+=1){if(v=t[w],_=i(v,w),m=a.get(_).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(m),T.done.delete(m);if(m.f&ve&&(pn(m),s&&((Ve=(W=m.nodes)==null?void 0:W.a)==null||Ve.unfix(),(c!=null?c:c=new Set).delete(m))),m.f&Je)if(m.f^=Je,m===u)wr(m,null,r);else{var U=f?f.next:u;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),ct(e,f,m),ct(e,m,U),wr(m,U,r),f=m,d=[],p=[],u=mr(f.next);continue}if(m!==u){if(l!==void 0&&l.has(m)){if(d.length<p.length){var $=p[0],Y;f=$.prev;var J=d[0],j=d[d.length-1];for(Y=0;Y<d.length;Y+=1)wr(d[Y],$,r);for(Y=0;Y<p.length;Y+=1)l.delete(p[Y]);ct(e,J.prev,j.next),ct(e,f,J),ct(e,j,$),u=$,f=j,w-=1,d=[],p=[]}else l.delete(m),wr(m,u,r),ct(e,m.prev,m.next),ct(e,m,f===null?e.effect.first:f.next),ct(e,f,m),f=m;continue}for(d=[],p=[];u!==null&&u!==m;)(l!=null?l:l=new Set).add(u),p.push(u),u=mr(u.next);if(u===null)continue}m.f&Je||d.push(m),f=m,u=mr(m.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(hi(e,En(T.done)),(S=e.outrogroups)==null||S.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||l!==void 0){var te=[];if(l!==void 0)for(m of l)m.f&ve||te.push(m);for(;u!==null;)!(u.f&ve)&&u!==e.fallback&&te.push(u),u=mr(u.next);var Me=te.length;if(Me>0){var he=n&xs&&o===0?r:null;if(s){for(w=0;w<Me;w+=1)(g=(b=te[w].nodes)==null?void 0:b.a)==null||g.measure();for(w=0;w<Me;w+=1)(y=(E=te[w].nodes)==null?void 0:E.a)==null||y.fix()}Ou(e,te,he)}}s&&vt(()=>{var T,O;if(c!==void 0)for(m of c)(O=(T=m.nodes)==null?void 0:T.a)==null||O.apply()})}function Nu(e,t,r,n,i,s,o,a){var u=o&go?o&Eo?Ct(r):Ni(r,!1,!1):null,l=o&yo?Ct(i):null;return{v:u,i:l,e:$e(()=>(s(t,u!=null?u:r,l!=null?l:i,a),()=>{e.delete(n)}))}}function wr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Je)?t.nodes.start:r;n!==null;){var o=et(n);if(s.before(n),n===i)return;n=o}}function ct(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Ha(e,t){sa(()=>{var i,s,o,a;e=(o=(s=(i=R==null?void 0:R.parent)==null?void 0:i.nodes)==null?void 0:s.start)!=null?o:e;var r=e.getRootNode(),n=r.host?r:(a=r.head)!=null?a:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const u=$i("style");u.id=t.hash,u.textContent=t.code,n.appendChild(u)}})}const rs=[...`
3
+ \r\f \v\uFEFF`];function $u(e,t,r){var n=e==null?"":""+e;if(r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,o=0;(o=n.indexOf(i,o))>=0;){var a=o+s;(o===0||rs.includes(n[o-1]))&&(a===n.length||rs.includes(n[a]))?n=(o===0?"":n.substring(0,o))+n.substring(a+1):o=a}}return n===""?null:n}function Ma(e,t,r,n,i,s){var o=e[qn];if(k||o!==r||o===void 0){var a=$u(r,n,s);(!k||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e[qn]=r}else if(s&&i!==s)for(var u in s){var l=!!s[u];(i==null||l!==!!i[u])&&e.classList.toggle(u,l)}return s}const Iu=Symbol("is custom element"),Bu=Symbol("is html"),Ru=Io?"link":"LINK";function Lu(e,t,r,n){var i=Cu(e);if(!(k&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ru))){var s=i[t];s!==(i[t]=r)&&(t==="loading"&&(e[No]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Du(e).has(t)?e[t]=r:k&&(typeof r=="number"||typeof r=="boolean")&&s===String(r)||e.setAttribute(t,r))}}function Cu(e){var t;return(t=e[Zr])!=null?t:e[Zr]={[Iu]:e.nodeName.includes("-"),[Bu]:e.namespaceURI===To}}var ns=new Map;function Du(e){var t=e.getAttribute("is")||e.nodeName,r=ns.get(t);if(r)return r;ns.set(t,r=new Set);for(var n,i=e,s=Element.prototype;s!==i;){n=Ao(i);for(var o in n)n[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&r.add(o);i=As(i)}return r}function Gn(e,t){return e===t||(e==null?void 0:e[qr])===t}function Uu(e=Ai(),t,r,n){var i=me.r,s=R;return sa(()=>{var o,a;return Ri(()=>{o=a,a=[],Ui(()=>{Gn(r(...a),e)||(t(e,...a),o&&Gn(r(...o),e)&&t(null,...o))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&Or;)u=u.parent;const l=()=>{a&&Gn(r(...a),e)&&t(null,...a)},f=u.teardown;u.teardown=()=>{l(),f==null||f()}}}),e}function Fi(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ot;const n=Ui(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const jt=[];function Fu(e,t){return{subscribe:On(e,t).subscribe}}function On(e,t=ot){let r=null;const n=new Set;function i(a){if(Is(e,a)&&(e=a,r)){const u=!jt.length;for(const l of n)l[1](),jt.push(l,e);if(u){for(let l=0;l<jt.length;l+=2)jt[l][0](jt[l+1]);jt.length=0}}}function s(a){i(a(e))}function o(a,u=ot){const l=[a,u];return n.add(l),n.size===1&&(r=t(i,s)||ot),a(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function hr(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return Fu(r,(o,a)=>{let u=!1;const l=[];let f=0,c=ot;const d=()=>{if(f)return;c();const v=t(n?l[0]:l,o,a);s?o(v):c=typeof v=="function"?v:ot},p=i.map((v,_)=>Fi(v,m=>{l[_]=m,f&=~(1<<_),u&&d()},()=>{f|=1<<_}));return u=!0,d(),function(){Hs(p),c(),u=!1}})}function Gu(e){let t;return Fi(e,r=>t=r)(),t}let ci=Symbol("unmounted");function Oa(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Ni(void 0),unsubscribe:ot};if(n.store!==e&&!(ci in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=ot;else{var i=!0;n.unsubscribe=Fi(e,o=>{i?n.source.v=o:re(n.source,o)}),i=!1}return e&&ci in r?Gu(e):H(n.source)}function Pa(){const e={};function t(){na(()=>{for(var r in e)e[r].unsubscribe();tr(e,ci,{enumerable:!1,value:!0})})}return[e,t]}function De(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var u;u=()=>{var d=e[t];return d===void 0?o():(s=!0,d)};var l=!1,f=Mn(()=>(l=!1,u())),c=R;return function(d,p){if(arguments.length>0){const v=p?H(f):d;return re(f,v),l=!0,i!==void 0&&(i=v),d}return lt&&l||c.f&oe?f.v:H(f)}}function ku(e){return new ju(e)}var st,Ne;class ju{constructor(t){I(this,st);I(this,Ne);var s,o;var r=new Map,n=(a,u)=>{var l=Ni(u,!1,!1);return r.set(a,l),l};const i=new Proxy(Wr(Xr({},t.props||{}),{$$events:{}}),{get(a,u){var l;return H((l=r.get(u))!=null?l:n(u,Reflect.get(a,u)))},has(a,u){var l;return u===Po?!0:(H((l=r.get(u))!=null?l:n(u,Reflect.get(a,u))),Reflect.has(a,u))},set(a,u,l){var f;return re((f=r.get(u))!=null?f:n(u,l),l),Reflect.set(a,u,l)}});N(this,Ne,(t.hydrate?Au:wa)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover,transformError:t.transformError})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&Ae(),N(this,st,i.$$events);for(const a of Object.keys(h(this,Ne)))a==="$set"||a==="$destroy"||a==="$on"||tr(this,a,{get(){return h(this,Ne)[a]},set(u){h(this,Ne)[a]=u},enumerable:!0});h(this,Ne).$set=a=>{Object.assign(i,a)},h(this,Ne).$destroy=()=>{Hu(h(this,Ne))}}$set(t){h(this,Ne).$set(t)}$on(t,r){h(this,st)[t]=h(this,st)[t]||[];const n=(...i)=>r.call(this,...i);return h(this,st)[t].push(n),()=>{h(this,st)[t]=h(this,st)[t].filter(i=>i!==n)}}$destroy(){h(this,Ne).$destroy()}}st=new WeakMap,Ne=new WeakMap;let Na;typeof HTMLElement=="function"&&(Na=class extends HTMLElement{constructor(t,r,n){super();X(this,"$$ctor");X(this,"$$s");X(this,"$$c");X(this,"$$cn",!1);X(this,"$$d",{});X(this,"$$r",!1);X(this,"$$p_d",{});X(this,"$$l",{});X(this,"$$l_u",new Map);X(this,"$$me");X(this,"$$shadowRoot",null);this.$$ctor=t,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return tt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return o=>{const a=$i("slot");s!=="default"&&(a.name=s),Ht(o,a)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Vu(this);for(const s of this.$$s)s in i&&(s==="default"&&!this.$$d.children?(this.$$d.children=r(s),n.default=!0):n[s]=r(s));for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=rn(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=ku({component:this.$$ctor,target:this.$$shadowRoot||this,props:Wr(Xr({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=fu(()=>{Ri(()=>{var s;this.$$r=!0;for(const o of an(this.$$c)){if(!((s=this.$$p_d[o])!=null&&s.reflect))continue;this.$$d[o]=this.$$c[o];const a=rn(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1})});for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=rn(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return an(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function rn(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Vu(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Gi(e,t,r,n,i,s){let o=class extends Na{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return an(t).map(a=>(t[a].attribute||a).toLowerCase())}};return an(t).forEach(a=>{tr(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var c;u=rn(a,u,t),this.$$d[a]=u;var l=this.$$c;if(l){var f=(c=Wt(l,a))==null?void 0:c.get;f?l[a]=u:l.$set({[a]:u})}}})}),n.forEach(a=>{tr(o.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=o,o}class $a extends Error{constructor(t,r){super(r),this.code=t,this.name="ElevateApiError"}}const Xu=e=>tt(exports,null,function*(){var s;const t=new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${(s=e.locale)!=null?s:""}`),r=new Headers({"Content-Type":"application/json"});e.userSession&&r.append("X-SessionId",e.userSession);const i=yield(yield fetch(t.href,{method:"GET",headers:r})).json();if(!i.success)throw new $a(i.errorCode,i.errorMessage);return i.data}),Wu=e=>tt(exports,null,function*(){var i;const t=new URL(`${e.apiEndpoint}/elevate/levels?language=${(i=e.locale)!=null?i:""}`);return(yield(yield fetch(t.href,{method:"GET"})).json()).data}),Yu={REDEEM_REWARD_CONFIRMED:"Loyalty:RedeemRewardConfirmed",BACK_BUTTON_CLICKED:"Loyalty:BackButtonClicked"},zu="shop",qu=10,Ia=12,Zu="DD/MM/YYYY HH:mm:ss",Ba=e=>{const t=new Headers({"Content-Type":"application/json"});return e&&t.append("X-SessionId",e),t},Ju=(n,...i)=>tt(exports,[n,...i],function*(e,t=0,r=Ia){var u;const s=new URL(`${e.apiEndpoint}/elevate/shop`);return s.searchParams.set("language",(u=e.locale)!=null?u:""),s.searchParams.set("pagination",`offset=${t},limit=${r}`),yield(yield fetch(s.href,{method:"GET",headers:Ba(e.userSession)})).json()}),Qu=(e,t)=>tt(exports,null,function*(){var s,o;const r=new URL(`${e.apiEndpoint}/elevate/shop`);return r.searchParams.set("language",(s=e.locale)!=null?s:""),r.searchParams.set("filter",`id=${t}`),(o=(yield(yield fetch(r.href,{method:"GET",headers:Ba(e.userSession)})).json()).data)==null?void 0:o[0]}),Ku=(e,t)=>tt(exports,null,function*(){var o,a;const r=new URL(`${e.apiEndpoint}/elevate/redeem`),n=new Headers({"Content-Type":"application/json-patch+json"});e.userSession&&n.append("X-SessionId",e.userSession);const s=yield(yield fetch(r.href,{method:"PUT",headers:n,body:JSON.stringify({giftID:t})})).json();if(!s.success)throw new $a((o=s.errorCode)!=null?o:"",(a=s.errorMessage)!=null?a:"Redeem failed")}),el=(e,t)=>{const r=[...e].sort((i,s)=>i.firstEntryPoints>s.firstEntryPoints?1:-1);let n=0;return r.forEach((i,s)=>{t>i.firstEntryPoints&&(n=s)}),n};var tl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var La={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(tl,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",l="day",f="week",c="month",d="quarter",p="year",v="date",_="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,U={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var b=["th","st","nd","rd"],g=S%100;return"["+S+(b[(g-20)%10]||b[g]||b[0])+"]"}},$=function(S,b,g){var E=String(S);return!E||E.length>=b?S:""+Array(b+1-E.length).join(g)+S},Y={s:$,z:function(S){var b=-S.utcOffset(),g=Math.abs(b),E=Math.floor(g/60),y=g%60;return(b<=0?"+":"-")+$(E,2,"0")+":"+$(y,2,"0")},m:function S(b,g){if(b.date()<g.date())return-S(g,b);var E=12*(g.year()-b.year())+(g.month()-b.month()),y=b.clone().add(E,c),T=g-y<0,O=b.clone().add(E+(T?-1:1),c);return+(-(E+(g-y)/(T?y-O:O-y))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:c,y:p,w:f,d:l,D:v,h:u,m:a,s:o,ms:s,Q:d}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},J="en",j={};j[J]=U;var te="$isDayjsObject",Me=function(S){return S instanceof W||!(!S||!S[te])},he=function S(b,g,E){var y;if(!b)return J;if(typeof b=="string"){var T=b.toLowerCase();j[T]&&(y=T),g&&(j[T]=g,y=T);var O=b.split("-");if(!y&&O.length>1)return S(O[0])}else{var V=b.name;j[V]=b,y=V}return!E&&y&&(J=y),y||!E&&J},x=function(S,b){if(Me(S))return S.clone();var g=typeof b=="object"?b:{};return g.date=S,g.args=arguments,new W(g)},A=Y;A.l=he,A.i=Me,A.w=function(S,b){return x(S,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var W=function(){function S(g){this.$L=he(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[te]=!0}var b=S.prototype;return b.parse=function(g){this.$d=function(E){var y=E.date,T=E.utc;if(y===null)return new Date(NaN);if(A.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var O=y.match(m);if(O){var V=O[2]-1||0,Q=(O[7]||"0").substring(0,3);return T?new Date(Date.UTC(O[1],V,O[3]||1,O[4]||0,O[5]||0,O[6]||0,Q)):new Date(O[1],V,O[3]||1,O[4]||0,O[5]||0,O[6]||0,Q)}}return new Date(y)}(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return A},b.isValid=function(){return this.$d.toString()!==_},b.isSame=function(g,E){var y=x(g);return this.startOf(E)<=y&&y<=this.endOf(E)},b.isAfter=function(g,E){return x(g)<this.startOf(E)},b.isBefore=function(g,E){return this.endOf(E)<x(g)},b.$g=function(g,E,y){return A.u(g)?this[E]:this.set(y,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,E){var y=this,T=!!A.u(E)||E,O=A.p(g),V=function(Tt,ge){var ht=A.w(y.$u?Date.UTC(y.$y,ge,Tt):new Date(y.$y,ge,Tt),y);return T?ht:ht.endOf(l)},Q=function(Tt,ge){return A.w(y.toDate()[Tt].apply(y.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(ge)),y)},z=this.$W,K=this.$M,ce=this.$D,ft="set"+(this.$u?"UTC":"");switch(O){case p:return T?V(1,0):V(31,11);case c:return T?V(1,K):V(0,K+1);case f:var wt=this.$locale().weekStart||0,pr=(z<wt?z+7:z)-wt;return V(T?ce-pr:ce+(6-pr),K);case l:case v:return Q(ft+"Hours",0);case u:return Q(ft+"Minutes",1);case a:return Q(ft+"Seconds",2);case o:return Q(ft+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,E){var y,T=A.p(g),O="set"+(this.$u?"UTC":""),V=(y={},y[l]=O+"Date",y[v]=O+"Date",y[c]=O+"Month",y[p]=O+"FullYear",y[u]=O+"Hours",y[a]=O+"Minutes",y[o]=O+"Seconds",y[s]=O+"Milliseconds",y)[T],Q=T===l?this.$D+(E-this.$W):E;if(T===c||T===p){var z=this.clone().set(v,1);z.$d[V](Q),z.init(),this.$d=z.set(v,Math.min(this.$D,z.daysInMonth())).$d}else V&&this.$d[V](Q);return this.init(),this},b.set=function(g,E){return this.clone().$set(g,E)},b.get=function(g){return this[A.p(g)]()},b.add=function(g,E){var y,T=this;g=Number(g);var O=A.p(E),V=function(K){var ce=x(T);return A.w(ce.date(ce.date()+Math.round(K*g)),T)};if(O===c)return this.set(c,this.$M+g);if(O===p)return this.set(p,this.$y+g);if(O===l)return V(1);if(O===f)return V(7);var Q=(y={},y[a]=n,y[u]=i,y[o]=r,y)[O]||1,z=this.$d.getTime()+g*Q;return A.w(z,this)},b.subtract=function(g,E){return this.add(-1*g,E)},b.format=function(g){var E=this,y=this.$locale();if(!this.isValid())return y.invalidDate||_;var T=g||"YYYY-MM-DDTHH:mm:ssZ",O=A.z(this),V=this.$H,Q=this.$m,z=this.$M,K=y.weekdays,ce=y.months,ft=y.meridiem,wt=function(ge,ht,vr,Vr){return ge&&(ge[ht]||ge(E,T))||vr[ht].slice(0,Vr)},pr=function(ge){return A.s(V%12||12,ge,"0")},Tt=ft||function(ge,ht,vr){var Vr=ge<12?"AM":"PM";return vr?Vr.toLowerCase():Vr};return T.replace(w,function(ge,ht){return ht||function(vr){switch(vr){case"YY":return String(E.$y).slice(-2);case"YYYY":return A.s(E.$y,4,"0");case"M":return z+1;case"MM":return A.s(z+1,2,"0");case"MMM":return wt(y.monthsShort,z,ce,3);case"MMMM":return wt(ce,z);case"D":return E.$D;case"DD":return A.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return wt(y.weekdaysMin,E.$W,K,2);case"ddd":return wt(y.weekdaysShort,E.$W,K,3);case"dddd":return K[E.$W];case"H":return String(V);case"HH":return A.s(V,2,"0");case"h":return pr(1);case"hh":return pr(2);case"a":return Tt(V,Q,!0);case"A":return Tt(V,Q,!1);case"m":return String(Q);case"mm":return A.s(Q,2,"0");case"s":return String(E.$s);case"ss":return A.s(E.$s,2,"0");case"SSS":return A.s(E.$ms,3,"0");case"Z":return O}return null}(ge)||O.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,E,y){var T,O=this,V=A.p(E),Q=x(g),z=(Q.utcOffset()-this.utcOffset())*n,K=this-Q,ce=function(){return A.m(O,Q)};switch(V){case p:T=ce()/12;break;case c:T=ce();break;case d:T=ce()/3;break;case f:T=(K-z)/6048e5;break;case l:T=(K-z)/864e5;break;case u:T=K/i;break;case a:T=K/n;break;case o:T=K/r;break;default:T=K}return y?T:A.a(T)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return j[this.$L]},b.locale=function(g,E){if(!g)return this.$L;var y=this.clone(),T=he(g,E,!0);return T&&(y.$L=T),y},b.clone=function(){return A.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},S}(),Ve=W.prototype;return x.prototype=Ve,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",l],["$M",c],["$y",p],["$D",v]].forEach(function(S){Ve[S[1]]=function(b){return this.$g(b,S[0],S[1])}}),x.extend=function(S,b){return S.$i||(S(b,W,x),S.$i=!0),x},x.locale=he,x.isDayjs=Me,x.unix=function(S){return x(1e3*S)},x.en=j[J],x.Ls=j,x.p={},x})})(La);var rl=La.exports;const nl=Ra(rl),il=(e,t="DD/MM/YYYY")=>{const r=nl(e);return r.isValid()?r.format(t):""},sl=(e,t)=>{window.postMessage({type:"Loyalty:RewardItemClicked",name:e,id:t},window.location.href)},al=(e,t)=>{window.postMessage({type:"Loyalty:RedeemRewardRequested",name:e,id:t},window.location.href)},ol=e=>{window.postMessage({type:"Loyalty:RedeemRewardSuccess",itemId:e},window.location.href)},ul=(e,t)=>{window.postMessage({type:"Loyalty:RedeemRewardFailed",itemId:e,res:t},window.location.href)},ll=()=>{window.dispatchEvent(new CustomEvent("redeemRewardButton"))};var fl=function(t){return hl(t)&&!cl(t)};function hl(e){return!!e&&typeof e=="object"}function cl(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||vl(e)}var dl=typeof Symbol=="function"&&Symbol.for,pl=dl?Symbol.for("react.element"):60103;function vl(e){return e.$$typeof===pl}function ml(e){return Array.isArray(e)?[]:{}}function $r(e,t){return t.clone!==!1&&t.isMergeableObject(e)?or(ml(e),e,t):e}function _l(e,t,r){return e.concat(t).map(function(n){return $r(n,r)})}function gl(e,t){if(!t.customMerge)return or;var r=t.customMerge(e);return typeof r=="function"?r:or}function yl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function is(e){return Object.keys(e).concat(yl(e))}function Ca(e,t){try{return t in e}catch(r){return!1}}function bl(e,t){return Ca(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function El(e,t,r){var n={};return r.isMergeableObject(e)&&is(e).forEach(function(i){n[i]=$r(e[i],r)}),is(t).forEach(function(i){bl(e,i)||(Ca(e,i)&&r.isMergeableObject(t[i])?n[i]=gl(i,r)(e[i],t[i],r):n[i]=$r(t[i],r))}),n}function or(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||_l,r.isMergeableObject=r.isMergeableObject||fl,r.cloneUnlessOtherwiseSpecified=$r;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):El(e,t,r):$r(t,r)}or.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return or(n,i,r)},{})};var xl=or,wl=xl;const Tl=Ra(wl);var di=function(e,t){return di=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},di(e,t)};function Pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");di(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ze=function(){return Ze=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Ze.apply(this,arguments)};function Sl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function kn(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function jn(e,t){var r=t&&t.cache?t.cache:$l,n=t&&t.serializer?t.serializer:Pl,i=t&&t.strategy?t.strategy:Ml;return i(e,{cache:r,serializer:n})}function Al(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Hl(e,t,r,n){var i=Al(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Da(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function Ua(e,t,r,n,i){return r.bind(t,e,n,i)}function Ml(e,t){var r=e.length===1?Hl:Da;return Ua(e,this,r,t.cache.create(),t.serializer)}function Ol(e,t){return Ua(e,this,Da,t.cache.create(),t.serializer)}var Pl=function(){return JSON.stringify(arguments)},Nl=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),$l={create:function(){return new Nl}},Vn={variadic:Ol},vn=function(){return vn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},vn.apply(this,arguments)};var F;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(F||(F={}));var Z;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Z||(Z={}));var ur;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ur||(ur={}));function ss(e){return e.type===Z.literal}function Il(e){return e.type===Z.argument}function Fa(e){return e.type===Z.number}function Ga(e){return e.type===Z.date}function ka(e){return e.type===Z.time}function ja(e){return e.type===Z.select}function Va(e){return e.type===Z.plural}function Bl(e){return e.type===Z.pound}function Xa(e){return e.type===Z.tag}function Wa(e){return!!(e&&typeof e=="object"&&e.type===ur.number)}function pi(e){return!!(e&&typeof e=="object"&&e.type===ur.dateTime)}var Ya=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Rl=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Ll(e){var t={};return e.replace(Rl,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ee=function(){return ee=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},ee.apply(this,arguments)};var Cl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Dl(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Cl).filter(function(d){return d.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],u=o.slice(1),l=0,f=u;l<f.length;l++){var c=f[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Ul(e){return e.replace(/^(.*?)-/,"")}var as=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,za=/^(@+)?(\+|#+)?[rs]?$/g,Fl=/(\*)(0+)|(#+)(0+)|(0+)/g,qa=/^(0+)$/;function os(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(za,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Za(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Gl(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!qa.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function us(e){var t={},r=Za(e);return r||t}function kl(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Ul(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ee(ee(ee({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return ee(ee({},u),us(l))},{}));continue;case"engineering":t=ee(ee(ee({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return ee(ee({},u),us(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Fl,function(u,l,f,c,d,p){if(l)t.minimumIntegerDigits=f.length;else{if(c&&d)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(qa.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(as.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(as,function(u,l,f,c,d,p){return f==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:d&&p?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=ee(ee({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=ee(ee({},t),os(s)));continue}if(za.test(i.stem)){t=ee(ee({},t),os(i.stem));continue}var o=Za(i.stem);o&&(t=ee(ee({},t),o));var a=Gl(i.stem);a&&(t=ee(ee({},t),a))}return t}var zr={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function jl(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(s&1),a=s<2?1:3+(s>>1),u="a",l=Vl(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;o-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function Vl(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=zr[n||""]||zr[r||""]||zr["".concat(r,"-001")]||zr["001"];return i[0]}var Xn,Xl=new RegExp("^".concat(Ya.source,"*")),Wl=new RegExp("".concat(Ya.source,"*$"));function G(e,t){return{start:e,end:t}}var Yl=!!String.prototype.startsWith&&"_a".startsWith("a",1),zl=!!String.fromCodePoint,ql=!!Object.fromEntries,Zl=!!String.prototype.codePointAt,Jl=!!String.prototype.trimStart,Ql=!!String.prototype.trimEnd,Kl=!!Number.isSafeInteger,ef=Kl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},vi=!0;try{var tf=Qa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vi=((Xn=tf.exec("a"))===null||Xn===void 0?void 0:Xn[0])==="a"}catch(e){vi=!1}var ls=Yl?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},mi=zl?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},fs=ql?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],a=s[1];r[o]=a}return r},Ja=Zl?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},rf=Jl?function(t){return t.trimStart()}:function(t){return t.replace(Xl,"")},nf=Ql?function(t){return t.trimEnd()}:function(t){return t.replace(Wl,"")};function Qa(e,t){return new RegExp(e,t)}var _i;if(vi){var hs=Qa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_i=function(t,r){var n;hs.lastIndex=r;var i=hs.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else _i=function(t,r){for(var n=[];;){var i=Ja(t,r);if(i===void 0||Ka(i)||uf(i))break;n.push(i),r+=i>=65536?2:1}return mi.apply(void 0,n)};var sf=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Z.pound,location:G(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(F.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&gi(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Z.literal,value:"<".concat(i,"/>"),location:G(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!gi(this.char()))return this.error(F.INVALID_TAG,G(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(F.UNMATCHED_CLOSING_TAG,G(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Z.tag,value:i,children:o,location:G(n,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,G(a,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,G(n,this.clonePosition()))}else return this.error(F.INVALID_TAG,G(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&of(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=G(n,this.clonePosition());return{val:{type:Z.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!af(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return mi.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),mi(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,G(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(F.MALFORMED_ARGUMENT,G(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Z.argument,value:i,location:G(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(F.MALFORMED_ARGUMENT,G(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=_i(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=G(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,G(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var d=nf(c.val);if(d.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));var p=G(f,this.clonePosition());l={style:d,styleLocation:p}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var _=G(i,this.clonePosition());if(l&&ls(l==null?void 0:l.style,"::",0)){var m=rf(l.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(m,l.styleLocation);return c.err?c:{val:{type:Z.number,value:n,location:_,style:c.val},err:null}}else{if(m.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,_);var w=m;this.locale&&(w=jl(m,this.locale));var d={type:ur.dateTime,pattern:w,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ll(w):{}},U=a==="date"?Z.date:Z.time;return{val:{type:U,value:n,location:_,style:d},err:null}}}return{val:{type:a==="number"?Z.number:a==="date"?Z.date:Z.time,value:n,location:_,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var $=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,G($,vn({},$)));this.bumpSpace();var Y=this.parseIdentifierIfPossible(),J=0;if(a!=="select"&&Y.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),Y=this.parseIdentifierIfPossible(),J=c.val}var j=this.tryParsePluralOrSelectOptions(t,a,r,Y);if(j.err)return j;var v=this.tryParseArgumentClose(i);if(v.err)return v;var te=G(i,this.clonePosition());return a==="select"?{val:{type:Z.select,value:n,options:fs(j.val),location:te},err:null}:{val:{type:Z.plural,value:n,options:fs(j.val),offset:J,pluralType:a==="plural"?"cardinal":"ordinal",location:te},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,G(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,G(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Dl(t)}catch(i){return this.error(F.INVALID_NUMBER_SKELETON,r)}return{val:{type:ur.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?kl(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,a=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;f=G(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,r,n);if(v.err)return v;var _=this.tryParseArgumentClose(p);if(_.err)return _;a.push([l,{value:v.val,location:G(p,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return a.length===0?this.error(r==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(F.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var u=G(i,this.clonePosition());return s?(o*=n,ef(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Ja(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(ls(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ka(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function gi(e){return e>=97&&e<=122||e>=65&&e<=90}function af(e){return gi(e)||e===47}function of(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ka(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function uf(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function yi(e){e.forEach(function(t){if(delete t.location,ja(t)||Va(t))for(var r in t.options)delete t.options[r].location,yi(t.options[r].value);else Fa(t)&&Wa(t.style)||(Ga(t)||ka(t))&&pi(t.style)?delete t.style.location:Xa(t)&&yi(t.children)})}function lf(e,t){t===void 0&&(t={}),t=vn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new sf(e,t).parse();if(r.err){var n=SyntaxError(F[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||yi(r.val),r.val}var lr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(lr||(lr={}));var Nn=function(e){Pn(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),cs=function(e){Pn(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),lr.INVALID_VALUE,s)||this}return t}(Nn),ff=function(e){Pn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),lr.INVALID_VALUE,i)||this}return t}(Nn),hf=function(e){Pn(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),lr.MISSING_VALUE,n)||this}return t}(Nn),pe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(pe||(pe={}));function cf(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==pe.literal||r.type!==pe.literal?t.push(r):n.value+=r.value,t},[])}function df(e){return typeof e=="function"}function nn(e,t,r,n,i,s,o){if(e.length===1&&ss(e[0]))return[{type:pe.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var f=l[u];if(ss(f)){a.push({type:pe.literal,value:f.value});continue}if(Bl(f)){typeof s=="number"&&a.push({type:pe.literal,value:r.getNumberFormat(t).format(s)});continue}var c=f.value;if(!(i&&c in i))throw new hf(c,o);var d=i[c];if(Il(f)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?pe.literal:pe.object,value:d});continue}if(Ga(f)){var p=typeof f.style=="string"?n.date[f.style]:pi(f.style)?f.style.parsedOptions:void 0;a.push({type:pe.literal,value:r.getDateTimeFormat(t,p).format(d)});continue}if(ka(f)){var p=typeof f.style=="string"?n.time[f.style]:pi(f.style)?f.style.parsedOptions:n.time.medium;a.push({type:pe.literal,value:r.getDateTimeFormat(t,p).format(d)});continue}if(Fa(f)){var p=typeof f.style=="string"?n.number[f.style]:Wa(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(d=d*(p.scale||1)),a.push({type:pe.literal,value:r.getNumberFormat(t,p).format(d)});continue}if(Xa(f)){var v=f.children,_=f.value,m=i[_];if(!df(m))throw new ff(_,"function",o);var w=nn(v,t,r,n,i,s),U=m(w.map(function(J){return J.value}));Array.isArray(U)||(U=[U]),a.push.apply(a,U.map(function(J){return{type:typeof J=="string"?pe.literal:pe.object,value:J}}))}if(ja(f)){var $=f.options[d]||f.options.other;if(!$)throw new cs(f.value,d,Object.keys(f.options),o);a.push.apply(a,nn($.value,t,r,n,i));continue}if(Va(f)){var $=f.options["=".concat(d)];if(!$){if(!Intl.PluralRules)throw new Nn(`Intl.PluralRules is not available in this environment.
4
+ Try polyfilling it using "@formatjs/intl-pluralrules"
5
+ `,lr.MISSING_INTL_API,o);var Y=r.getPluralRules(t,{type:f.pluralType}).select(d-(f.offset||0));$=f.options[Y]||f.options.other}if(!$)throw new cs(f.value,d,Object.keys(f.options),o);a.push.apply(a,nn($.value,t,r,n,i,d-(f.offset||0)));continue}}return cf(a)}function pf(e,t){return t?Ze(Ze(Ze({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Ze(Ze({},e[n]),t[n]||{}),r},{})):e}function vf(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=pf(e[n],t[n]),r},Ze({},e)):e}function Wn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function mf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:jn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,kn([void 0],r,!1)))},{cache:Wn(e.number),strategy:Vn.variadic}),getDateTimeFormat:jn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,kn([void 0],r,!1)))},{cache:Wn(e.dateTime),strategy:Vn.variadic}),getPluralRules:jn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,kn([void 0],r,!1)))},{cache:Wn(e.pluralRules),strategy:Vn.variadic})}}var _f=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(c,d){return!c.length||d.type!==pe.literal||typeof c[c.length-1]!="string"?c.push(d.value):c[c.length-1]+=d.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return nn(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var a=Sl(o,["formatters"]);this.ast=e.__parse(t,Ze(Ze({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=vf(e.formats,n),this.formatters=i&&i.formatters||mf(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=lf,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function gf(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const mt={},yf=(e,t,r)=>r&&(t in mt||(mt[t]={}),e in mt[t]||(mt[t][e]=r),r),eo=(e,t)=>{if(t==null)return;if(t in mt&&e in mt[t])return mt[t][e];const r=$n(t);for(let n=0;n<r.length;n++){const i=r[n],s=Ef(i,e);if(s)return yf(e,t,s)}};let ki;const cr=On({});function bf(e){return ki[e]||null}function to(e){return e in ki}function Ef(e,t){if(!to(e))return null;const r=bf(e);return gf(r,t)}function xf(e){if(e==null)return;const t=$n(e);for(let r=0;r<t.length;r++){const n=t[r];if(to(n))return n}}function ro(e,...t){delete mt[e],cr.update(r=>(r[e]=Tl.all([r[e]||{},...t]),r))}hr([cr],([e])=>Object.keys(e));cr.subscribe(e=>ki=e);const sn={};function wf(e,t){sn[e].delete(t),sn[e].size===0&&delete sn[e]}function no(e){return sn[e]}function Tf(e){return $n(e).map(t=>{const r=no(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function bi(e){return e==null?!1:$n(e).some(t=>{var r;return(r=no(t))==null?void 0:r.size})}function Sf(e,t){return Promise.all(t.map(n=>(wf(e,n),n().then(i=>i.default||i)))).then(n=>ro(e,...n))}const _r={};function io(e){if(!bi(e))return e in _r?_r[e]:Promise.resolve();const t=Tf(e);return _r[e]=Promise.all(t.map(([r,n])=>Sf(r,n))).then(()=>{if(bi(e))return io(e);delete _r[e]}),_r[e]}const Af={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Hf={fallbackLocale:null,loadingDelay:200,formats:Af,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Mf=Hf;function fr(){return Mf}const Yn=On(!1);var Of=Object.defineProperty,Pf=Object.defineProperties,Nf=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,$f=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable,ps=(e,t,r)=>t in e?Of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bf=(e,t)=>{for(var r in t||(t={}))$f.call(t,r)&&ps(e,r,t[r]);if(ds)for(var r of ds(t))If.call(t,r)&&ps(e,r,t[r]);return e},Rf=(e,t)=>Pf(e,Nf(t));let Ei;const mn=On(null);function vs(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function $n(e,t=fr().fallbackLocale){const r=vs(e);return t?[...new Set([...r,...vs(t)])]:r}function Ft(){return Ei!=null?Ei:void 0}mn.subscribe(e=>{Ei=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Lf=e=>{if(e&&xf(e)&&bi(e)){const{loadingDelay:t}=fr();let r;return typeof window!="undefined"&&Ft()!=null&&t?r=window.setTimeout(()=>Yn.set(!0),t):Yn.set(!0),io(e).then(()=>{mn.set(e)}).finally(()=>{clearTimeout(r),Yn.set(!1)})}return mn.set(e)},xt=Rf(Bf({},mn),{set:Lf}),In=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Cf=Object.defineProperty,_n=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,ms=(e,t,r)=>t in e?Cf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ji=(e,t)=>{for(var r in t||(t={}))so.call(t,r)&&ms(e,r,t[r]);if(_n)for(var r of _n(t))ao.call(t,r)&&ms(e,r,t[r]);return e},dr=(e,t)=>{var r={};for(var n in e)so.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_n)for(var n of _n(e))t.indexOf(n)<0&&ao.call(e,n)&&(r[n]=e[n]);return r};const Ir=(e,t)=>{const{formats:r}=fr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Df=In(e=>{var t=e,{locale:r,format:n}=t,i=dr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Ir("number",n)),new Intl.NumberFormat(r,i)}),Uf=In(e=>{var t=e,{locale:r,format:n}=t,i=dr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Ir("date",n):Object.keys(i).length===0&&(i=Ir("date","short")),new Intl.DateTimeFormat(r,i)}),Ff=In(e=>{var t=e,{locale:r,format:n}=t,i=dr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Ir("time",n):Object.keys(i).length===0&&(i=Ir("time","short")),new Intl.DateTimeFormat(r,i)}),Gf=(e={})=>{var t=e,{locale:r=Ft()}=t,n=dr(t,["locale"]);return Df(ji({locale:r},n))},kf=(e={})=>{var t=e,{locale:r=Ft()}=t,n=dr(t,["locale"]);return Uf(ji({locale:r},n))},jf=(e={})=>{var t=e,{locale:r=Ft()}=t,n=dr(t,["locale"]);return Ff(ji({locale:r},n))},Vf=In((e,t=Ft())=>new _f(e,t,fr().formats,{ignoreTag:fr().ignoreTag})),Xf=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:u=Ft(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=eo(e,u);if(!f)f=(s=(i=(n=(r=fr()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!a)return f;let c=f;try{c=Vf(f,u).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return c},Wf=(e,t)=>jf(t).format(e),Yf=(e,t)=>kf(t).format(e),zf=(e,t)=>Gf(t).format(e),qf=(e,t=Ft())=>eo(e,t),oo=hr([xt,cr],()=>Xf);hr([xt],()=>Wf);hr([xt],()=>Yf);hr([xt],()=>zf);hr([xt,cr],()=>qf);function uo({withLocale:e,translations:t}){xt.subscribe(r=>{r==null&&(cr.set(t),xt.set(e))})}function lo(e,t){ro(e,t)}function Zf(e){xt.set(e)}const Jf=e=>{let t=le(void 0),r=le(void 0),n=le(void 0),i=le(void 0),s=le(!1),o=le(void 0);const a=()=>tt(exports,null,function*(){var p;const{apiEndpoint:u,userSession:l,locale:f,loadLevels:c,onLevelLoaded:d}=e();if(!(!u||!l)){re(s,!0),re(o,void 0);try{const v=[Xu({apiEndpoint:u,userSession:l,locale:f}).then(_=>{var w,U,$,Y,J,j;const m=_.level;m.name=((w=m.presentation)==null?void 0:w.displayName)||m.name,m.spendablePoints=((U=_.spendableWallet)==null?void 0:U.total.points)||0,re(t,m,!0),re(n,($=_.loyaltyWallet)==null?void 0:$.total,!0),re(i,(Y=_.spendableWallet)==null?void 0:Y.total,!0),d==null||d({elevateLevel:m}),d==null||d({elevateLevelWalletTotal:(J=_.spendableWallet)==null?void 0:J.total,loyaltyWalletTotal:(j=_.loyaltyWallet)==null?void 0:j.total})})];c&&v.push(Wu({apiEndpoint:u,userSession:l,locale:f}).then(_=>{re(r,_,!0)})),yield Promise.all(v),yield _u(),H(r)&&H(t)&&(d==null||d({calculatedLevelFlag:el(H(r),(p=H(t).loyaltyPoints)!=null?p:0)}))}catch(v){re(o,v,!0),console.error("Failed to load elevate info:",v)}finally{re(s,!1)}}});return Pr(()=>{const{apiEndpoint:u,userSession:l,locale:f,loadLevels:c}=e();a()}),Pr(()=>{const u=()=>{a()};return window.addEventListener("redeemRewardButton",u),()=>window.removeEventListener("redeemRewardButton",u)}),{get playerElevateLevel(){return H(t)},get levels(){return H(r)},get loyaltyWalletTotal(){return H(n)},get spendableWalletTotal(){return H(i)},get loading(){return H(s)},get error(){return H(o)},reload:a}},Qf={en:{prev:"Previous",next:"Next"},tr:{prev:"Önceki",next:"Sonraki"},da:{prev:"Forrige",next:"Næste"},de:{prev:"Zurück",next:"Weiter"},nl:{prev:"Vorige",next:"Volgende"},fr:{prev:"Précédent",next:"Suivant"},hu:{prev:"Előző",next:"Következő"}},Hr=10,Kf=7,eh=4;var th=jr('<span class="loyalty-pagination__ellipsis" aria-hidden="true">...</span>'),rh=jr('<button type="button"> </button>'),nh=jr('<div class="loyalty-pagination__pages"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next" type="button"> </button></div>'),ih=jr('<div class="loyalty-pagination"><!></div>');const sh={hash:"svelte-1op0ean",code:`.loyalty-pagination {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;box-sizing:border-box;width:100%;}
6
+
7
+ @media (min-width: 768px) {.loyalty-pagination {width:auto;margin-left:auto;justify-content:flex-end;padding-right:10px;}.loyalty-pagination__pages {justify-content:flex-end;}
8
+ }.loyalty-pagination__pages {display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;}.loyalty-pagination__ellipsis {display:inline-flex;align-items:center;justify-content:center;color:var(--text-default, #dfe3e8);font-size:13px;width:24px;}.loyalty-pagination__btn {min-width:30px;height:30px;padding:4px 8px;border:none;border-radius:4px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));color:var(--text-subtle, #dfe3e8);font-size:13px;font-weight:400;cursor:pointer;}.loyalty-pagination__btn--active {background:var(--accent, #ffcc00);color:var(--text-on-color, #261d00);}.loyalty-pagination__btn:disabled {cursor:default;color:var(--text-muted, rgba(251, 251, 251, 0.15));}.loyalty-pagination__btn--prev,
9
+ .loyalty-pagination__btn--next {width:95px;}
10
+
11
+ @media (max-width: 767px) {.loyalty-pagination__btn--prev,
12
+ .loyalty-pagination__btn--next {width:90px;}
13
+ }.loyalty-pagination__btn--prev:not(:disabled),
14
+ .loyalty-pagination__btn--next:not(:disabled) {color:var(--text-default, #dfe3e8);}`};function Vi(e,t){Sn(t,!0),Ha(e,sh);const r=()=>Oa(oo,"$_",n),[n,i]=Pa(),s=De(t,"offset",7,0),o=De(t,"limit",7,Hr),a=De(t,"total",7,0),u=De(t,"onPageChange",7,x=>{}),l=De(t,"locale",7,"en");uo({withLocale:l(),translations:{}}),Object.entries(Qf).forEach(([x,A])=>{lo(x,A)}),Pr(()=>{var x;Zf((x=l())!=null?x:"en")});const f=St(()=>Number(s())||0),c=St(()=>Number(o())||Hr),d=St(()=>Number(a())||0),p=St(()=>Math.max(1,Math.ceil(H(d)/Math.max(1,H(c))))),v=St(()=>H(c)>0?Math.floor(H(f)/H(c)):0);let _=le(!1);Pr(()=>{const x=window.matchMedia("(max-width: 767px)"),A=W=>{re(_,W.matches,!0)};return re(_,x.matches,!0),x.addEventListener("change",A),()=>x.removeEventListener("change",A)});const m=(x,A,W)=>x<=(W?eh:Kf)?Array.from({length:x},(g,E)=>E):A<=1||A>=x-2?[0,1,"ellipsis",x-2,x-1]:[0,"ellipsis",A,"ellipsis",x-1],w=St(()=>m(H(p),H(v),H(_))),U=x=>u()(x*H(c)),$=()=>u()(Math.max(0,H(v)-1)*H(c)),Y=()=>u()(Math.min(H(p)-1,H(v)+1)*H(c));var J={get offset(){return s()},set offset(x=0){s(x),Ae()},get limit(){return o()},set limit(x=Hr){o(x),Ae()},get total(){return a()},set total(x=0){a(x),Ae()},get onPageChange(){return u()},set onPageChange(x=A=>{}){u(x),Ae()},get locale(){return l()},set locale(x="en"){l(x),Ae()}},j=ih(),te=dn(j);{var Me=x=>{var A=nh(),W=dn(A),Ve=Qr(W,!0),S=ri(W,2);Aa(S,17,()=>H(w),Sa,(E,y)=>{var T=ya(),O=Ks(T);{var V=z=>{var K=th();Ht(z,K)},Q=z=>{var K=rh();let ce;var ft=Qr(K,!0);ni(()=>{ce=Ma(K,1,"loyalty-pagination__btn",null,ce,{"loyalty-pagination__btn--active":H(y)===H(v)}),tn(ft,H(y)+1)}),Kr("click",K,()=>U(H(y))),Ht(z,K)};fi(O,z=>{H(y)==="ellipsis"?z(V):z(Q,-1)})}Ht(E,T)});var b=ri(S,2),g=Qr(b,!0);ln(A),ni((E,y)=>{W.disabled=H(v)<=0,tn(Ve,E),b.disabled=H(v)>=H(p)-1,tn(g,y)},[()=>r()("prev"),()=>r()("next")]),Kr("click",W,$),Kr("click",b,Y),Ht(x,A)};fi(te,x=>{H(p)>1&&x(Me)})}ln(j),Ht(e,j);var he=An(J);return i(),he}ga(["click"]);Gi(Vi,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[],{mode:"open"});function fo(e,t){Sn(t,!0);let r=De(t,"offset",7,0),n=De(t,"limit",7,Hr),i=De(t,"total",7,0),s=De(t,"onPageChange"),o=De(t,"locale",7,"en");var a={get offset(){return r()},set offset(u=0){r(u),Ae()},get limit(){return n()},set limit(u=Hr){n(u),Ae()},get total(){return i()},set total(u=0){i(u),Ae()},get onPageChange(){return s()},set onPageChange(u){s(u),Ae()},get locale(){return o()},set locale(u="en"){o(u),Ae()}};return Vi(e,{get offset(){return r()},get limit(){return n()},get total(){return i()},get onPageChange(){return s()},get locale(){return o()}}),An(a)}customElements.define("loyalty-pagination",Gi(fo,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[]));const ah=Object.freeze(Object.defineProperty({__proto__:null,default:fo},Symbol.toStringTag,{value:"Module"}));exports.$format=oo;exports.DATE_FORMATS=Zu;exports.EVENT_TYPES=Yu;exports.ITEMS_LIMIT_DEFAULT=Ia;exports.LoyaltyPagination=Vi;exports.LoyaltyPagination_ce=ah;exports.MOBILE_LOAD_ITEMS=qu;exports.SOURCE=zu;exports.addNewMessages=lo;exports.append=Ht;exports.append_styles=Ha;exports.bind_this=Uu;exports.child=dn;exports.comment=ya;exports.createElevateData=Jf;exports.create_custom_element=Gi;exports.delegate=ga;exports.delegated=Kr;exports.dispatchRedeemRewardButton=ll;exports.each=Aa;exports.fetchShopItem=Qu;exports.fetchShopRewards=Ju;exports.first_child=Ks;exports.flushSync=Ae;exports.formatDate=il;exports.from_html=jr;exports.get=H;exports.if_block=fi;exports.index=Sa;exports.only_child=Qr;exports.pop=An;exports.prop=De;exports.proxy=Xt;exports.push=Sn;exports.redeemReward=Ku;exports.reset=ln;exports.sendRedeemRewardFailed=ul;exports.sendRedeemRewardRequested=al;exports.sendRedeemRewardSuccess=ol;exports.sendRewardItemClicked=sl;exports.set=re;exports.set_attribute=Lu;exports.set_class=Ma;exports.set_text=tn;exports.setupI18n=uo;exports.setup_stores=Pa;exports.sibling=ri;exports.state=le;exports.store_get=Oa;exports.template_effect=ni;exports.user_derived=St;exports.user_effect=Pr;exports.user_pre_effect=lu;