@everymatrix/loyalty-shop 0.1.14 → 0.1.18
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.
- package/components/{LoyaltyPagination-B-q5gKJj.js → LoyaltyPagination-Bdx-smp6.js} +2756 -2359
- package/components/LoyaltyPagination-ClX3N4HA.cjs +16 -0
- package/components/LoyaltyPagination-DdJI2Ptf.cjs +16 -0
- package/components/LoyaltyPagination-kvqB9vki.js +7157 -0
- package/components/{LoyaltyPointsCard-yCHI1R_t.js → LoyaltyPointsCard-CpUgbUoh.js} +4 -5
- package/components/{LoyaltyPointsCard-Dh-TnTTL.cjs → LoyaltyPointsCard-DAwt9_VW.cjs} +3 -3
- package/components/{LoyaltyPointsCard-DRKV1-dq.js → LoyaltyPointsCard-Dte4kVve.js} +4 -5
- package/components/{LoyaltyPointsCard-BhdXzF1P.cjs → LoyaltyPointsCard-a-ERcIbF.cjs} +3 -3
- package/components/{LoyaltyShop-DoIx97J9.js → LoyaltyShop-B5kW3Kng.js} +223 -256
- package/components/{LoyaltyShop-CtNpYAKa.js → LoyaltyShop-D4hhy3SS.js} +227 -260
- package/components/LoyaltyShop-Dvy8bKVO.cjs +27 -0
- package/components/LoyaltyShop-ICV4lgAz.cjs +27 -0
- package/components/{LoyaltyShopItem-C2xuJLoW.js → LoyaltyShopItem-B-9ignkf.js} +26 -29
- package/components/{LoyaltyShopItem-BRiUNphq.cjs → LoyaltyShopItem-DCnDun5S.cjs} +3 -3
- package/components/{LoyaltyShopItem-D_oViqJP.cjs → LoyaltyShopItem-DY4h5OAR.cjs} +3 -3
- package/components/{LoyaltyShopItem-bXQ_G5NK.js → LoyaltyShopItem-Dwm024JF.js} +27 -30
- package/es2015/loyalty-shop.cjs +1 -1
- package/es2015/loyalty-shop.js +2 -2
- package/esnext/loyalty-shop.cjs +1 -1
- package/esnext/loyalty-shop.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyPagination-Boz7CVJt.cjs +0 -16
- package/components/LoyaltyPagination-CEvN3M3n.cjs +0 -16
- package/components/LoyaltyPagination-Z_igiBkY.js +0 -6754
- package/components/LoyaltyShop-BsZThRDe.cjs +0 -27
- package/components/LoyaltyShop-Cx8CxsMn.cjs +0 -27
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var uo=Object.defineProperty,lo=Object.defineProperties;var fo=Object.getOwnPropertyDescriptors;var Vi=Object.getOwnPropertySymbols;var ho=Object.prototype.hasOwnProperty,co=Object.prototype.propertyIsEnumerable;var Xi=e=>{throw TypeError(e)};var Ln=(e,t,r)=>t in e?uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t)=>{for(var r in t||(t={}))ho.call(t,r)&&Ln(e,r,t[r]);if(Vi)for(var r of Vi(t))co.call(t,r)&&Ln(e,r,t[r]);return e},zr=(e,t)=>lo(e,fo(t));var z=(e,t,r)=>Ln(e,typeof t!="symbol"?t+"":t,r),Cn=(e,t,r)=>t.has(e)||Xi("Cannot "+r);var c=(e,t,r)=>(Cn(e,t,"read from private field"),r?r.call(e):t.get(e)),N=(e,t,r)=>t.has(e)?Xi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),M=(e,t,r,n)=>(Cn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),I=(e,t,r)=>(Cn(e,t,"access private method"),r);var Ke=(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 po="5";var vs,ms,gs;typeof window!="undefined"&&((gs=(ms=(vs=window.__svelte)!=null?vs:window.__svelte={}).v)!=null?gs:ms.v=new Set).add(po);const vo=1,mo=2,bs=4,go=8,_o=16,yo=1,bo=2,Es="[",Ti="[!",Wi="[?",Si="]",sr={},ne=Symbol("uninitialized"),Eo="http://www.w3.org/1999/xhtml",xs=!1;var ws=Array.isArray,xo=Array.prototype.indexOf,ln=Array.prototype.includes,wn=Array.from,fn=Object.keys,Nr=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,wo=Object.getOwnPropertyDescriptors,To=Object.prototype,So=Array.prototype,Ts=Object.getPrototypeOf,Yi=Object.isExtensible;const ot=()=>{};function Ss(e){for(var t=0;t<e.length;t++)e[t]()}function As(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const se=2,ar=4,Gr=8,Hs=1<<24,Ge=16,Ie=32,Ze=64,Zn=128,Ne=512,ie=1024,re=2048,je=4096,ce=8192,Ae=16384,Dt=32768,Jn=1<<25,or=65536,hn=1<<17,Ao=1<<18,Ut=1<<19,Ms=1<<20,ze=1<<25,Rt=65536,cn=1<<21,Zt=1<<22,_t=1<<23,Jr=Symbol("$state"),Ho=Symbol("legacy props"),Mo=Symbol(""),Qr=Symbol("attributes"),Qn=Symbol("class"),Oo=Symbol("style"),xr=Symbol("text"),kr=new class extends Error{constructor(){super(...arguments);z(this,"name","StaleReactionError");z(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var _s;const Po=!!((_s=globalThis.document)!=null&&_s.contentType)&&globalThis.document.contentType.includes("xml"),Tn=3,jr=8;function No(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function $o(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Io(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Bo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ro(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Lo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Co(){throw new Error("https://svelte.dev/e/hydration_failed")}function Do(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Uo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Fo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Go(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ko(){console.warn("https://svelte.dev/e/derived_inert")}function Sn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function jo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let F=!1;function at(e){F=e}let L;function ye(e){if(e===null)throw Sn(),sr;return L=e}function An(){return ye(Qe(L))}function Vt(e){if(F){if(Qe(L)!==null)throw Sn(),sr;L=e}}function Vo(e=1){if(F){for(var t=e,r=L;t--;)r=Qe(r);L=r}}function dn(e=!0){for(var t=0,r=L;;){if(r.nodeType===jr){var n=r.data;if(n===Si){if(t===0)return r;t-=1}else(n===Es||n===Ti||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Qe(r);e&&r.remove(),r=i}}function Os(e){if(!e||e.nodeType!==jr)throw Sn(),sr;return e.data}function Ps(e){return e===this.v}function Ns(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function $s(e){return!Ns(e,this.v)}let Xo=!1,de=null;function ur(e){de=e}function Hn(e,t=!1,r){de={p:de,i:!1,c:null,e:null,s:e,x:null,r:$,l:null}}function Mn(e){var t=de,r=t.e;if(r!==null){t.e=null;for(var n of r)aa(n)}return e!==void 0&&(t.x=e),t.i=!0,de=t.p,e!=null?e:{}}function Is(){return!0}let St=[];function Bs(){var e=St;St=[],Ss(e)}function vt(e){if(St.length===0&&!Mr){var t=St;queueMicrotask(()=>{t===St&&Bs()})}St.push(e)}function Wo(){for(;St.length>0;)Bs()}function Rs(e){var t=$;if(t===null)return B.f|=_t,e;if(!(t.f&Dt)&&!(t.f&ar))throw e;mt(e,t)}function mt(e,t){if(!(t!==null&&t.f&Ae)){for(;t!==null;){if(t.f&Zn){if(!(t.f&Dt))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}const Yo=-7169;function K(e,t){e.f=e.f&Yo|t}function Ai(e){e.f&Ne||e.deps===null?K(e,ie):K(e,je)}function Ls(e){if(e!==null)for(const t of e)!(t.f&se)||!(t.f&Rt)||(t.f^=Rt,Ls(t.deps))}function Cs(e,t,r){e.f&re?t.add(e):e.f&je&&r.add(e),Ls(e.deps),K(e,ie)}function Hi(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 Gt=[];function zo(e,t){return{subscribe:On(e,t).subscribe}}function On(e,t=ot){let r=null;const n=new Set;function i(a){if(Ns(e,a)&&(e=a,r)){const u=!Gt.length;for(const l of n)l[1](),Gt.push(l,e);if(u){for(let l=0;l<Gt.length;l+=2)Gt[l][0](Gt[l+1]);Gt.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 vr(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 zo(r,(o,a)=>{let u=!1;const l=[];let f=0,d=ot;const h=()=>{if(f)return;d();const v=t(n?l[0]:l,o,a);s?o(v):d=typeof v=="function"?v:ot},p=i.map((v,g)=>Hi(v,m=>{l[g]=m,f&=~(1<<g),u&&h()},()=>{f|=1<<g}));return u=!0,h(),function(){Ss(p),d(),u=!1}})}function qo(e){let t;return Hi(e,r=>t=r)(),t}let Kn=Symbol("unmounted");function Ds(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&&!(Kn 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=Hi(e,o=>{i?n.source.v=o:te(n.source,o)}),i=!1}return e&&Kn in r?qo(e):A(n.source)}function Us(){const e={};function t(){sa(()=>{for(var r in e)e[r].unsubscribe();Nr(e,Kn,{enumerable:!1,value:!0})})}return[e,t]}function Pn(e){var t=B,r=$;Be(null),Je(null);try{return e()}finally{Be(t),Je(r)}}function Zo(e){let t=0,r=Lt(0),n;return()=>{Bi()&&(A(r),Ri(()=>(t===0&&(n=Ui(()=>e(()=>Or(r)))),t+=1,()=>{vt(()=>{t-=1,t===0&&(n==null||n(),n=void 0,Or(r))})})))}}var Jo=or|Ut;function Qo(e,t,r,n){new Ko(e,t,r,n)}var we,Lr,Me,Mt,me,Oe,fe,Te,et,Ot,dt,Qt,Cr,Dr,tt,bn,j,Fs,Gs,ei,ks,ti,Kr,en,ri,ni;class Ko{constructor(t,r,n,i){N(this,j);z(this,"parent");z(this,"is_pending",!1);z(this,"transform_error");N(this,we);N(this,Lr,F?L:null);N(this,Me);N(this,Mt);N(this,me);N(this,Oe,null);N(this,fe,null);N(this,Te,null);N(this,et,null);N(this,Ot,0);N(this,dt,0);N(this,Qt,!1);N(this,Cr,new Set);N(this,Dr,new Set);N(this,tt,null);N(this,bn,Zo(()=>(M(this,tt,Lt(c(this,Ot))),()=>{M(this,tt,null)})));var s,o;M(this,we,t),M(this,Me,r),M(this,Mt,a=>{var u=$;u.b=this,u.f|=Zn,n(a)}),this.parent=$.b,this.transform_error=(o=i!=null?i:(s=this.parent)==null?void 0:s.transform_error)!=null?o:a=>a,M(this,me,Li(()=>{if(F){const a=c(this,Lr);An();const u=a.data===Ti;if(a.data.startsWith(Wi)){const f=JSON.parse(a.data.slice(Wi.length));I(this,j,Gs).call(this,f)}else u?I(this,j,ks).call(this):I(this,j,Fs).call(this)}else I(this,j,ti).call(this)},Jo)),F&&M(this,we,L)}defer_effect(t){Cs(t,c(this,Cr),c(this,Dr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!c(this,Me).pending}update_pending_count(t,r){I(this,j,ri).call(this,t,r),M(this,Ot,c(this,Ot)+t),!(!c(this,tt)||c(this,Qt))&&(M(this,Qt,!0),vt(()=>{M(this,Qt,!1),c(this,tt)&&lr(c(this,tt),c(this,Ot))}))}get_effect_pending(){return c(this,bn).call(this),A(c(this,tt))}error(t){if(!c(this,Me).onerror&&!c(this,Me).failed)throw t;P!=null&&P.is_fork?(c(this,Oe)&&P.skip_effect(c(this,Oe)),c(this,fe)&&P.skip_effect(c(this,fe)),c(this,Te)&&P.skip_effect(c(this,Te)),P.oncommit(()=>{I(this,j,ni).call(this,t)})):I(this,j,ni).call(this,t)}}we=new WeakMap,Lr=new WeakMap,Me=new WeakMap,Mt=new WeakMap,me=new WeakMap,Oe=new WeakMap,fe=new WeakMap,Te=new WeakMap,et=new WeakMap,Ot=new WeakMap,dt=new WeakMap,Qt=new WeakMap,Cr=new WeakMap,Dr=new WeakMap,tt=new WeakMap,bn=new WeakMap,j=new WeakSet,Fs=function(){try{M(this,Oe,Ue(()=>c(this,Mt).call(this,c(this,we))))}catch(t){this.error(t)}},Gs=function(t){const r=c(this,Me).failed,{reset:n,invoke_onerror:i}=I(this,j,ei).call(this,t);vt(i),r&&M(this,Te,Ue(()=>{r(c(this,we),()=>t,()=>n)}))},ei=function(t){var r=!1,n=!1;const i=()=>{if(r){jo();return}r=!0,n&&Go(),c(this,Te)!==null&&It(c(this,Te),()=>{M(this,Te,null)}),I(this,j,en).call(this,()=>{I(this,j,ti).call(this)})};return{reset:i,invoke_onerror:()=>{var o,a;try{n=!0,(a=(o=c(this,Me)).onerror)==null||a.call(o,t,i),n=!1}catch(u){mt(u,c(this,me)&&c(this,me).parent)}}}},ks=function(){const t=c(this,Me).pending;t&&(this.is_pending=!0,M(this,fe,Ue(()=>t(c(this,we)))),vt(()=>{var r=M(this,et,document.createDocumentFragment()),n=Ve();r.append(n),M(this,Oe,I(this,j,en).call(this,()=>Ue(()=>c(this,Mt).call(this,n)))),c(this,dt)===0&&(c(this,we).before(r),M(this,et,null),It(c(this,fe),()=>{M(this,fe,null)}),I(this,j,Kr).call(this,P))}))},ti=function(){try{if(this.is_pending=this.has_pending_snippet(),M(this,dt,0),M(this,Ot,0),M(this,Oe,Ue(()=>{c(this,Mt).call(this,c(this,we))})),c(this,dt)>0){var t=M(this,et,document.createDocumentFragment());Di(c(this,Oe),t);const r=c(this,Me).pending;M(this,fe,Ue(()=>r(c(this,we))))}else I(this,j,Kr).call(this,P)}catch(r){this.error(r)}},Kr=function(t){this.is_pending=!1,t.transfer_effects(c(this,Cr),c(this,Dr))},en=function(t){var r=$,n=B,i=de;Je(c(this,me)),Be(c(this,me)),ur(c(this,me).ctx);try{return yt.ensure(),t()}catch(s){return Rs(s),null}finally{Je(r),Be(n),ur(i)}},ri=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&I(n=this.parent,j,ri).call(n,t,r);return}M(this,dt,c(this,dt)+t),c(this,dt)===0&&(I(this,j,Kr).call(this,r),c(this,fe)&&It(c(this,fe),()=>{M(this,fe,null)}),c(this,et)&&(c(this,we).before(c(this,et)),M(this,et,null)))},ni=function(t){c(this,Oe)&&(pe(c(this,Oe)),M(this,Oe,null)),c(this,fe)&&(pe(c(this,fe)),M(this,fe,null)),c(this,Te)&&(pe(c(this,Te)),M(this,Te,null)),F&&(ye(c(this,Lr)),Vo(),ye(dn()));let r=c(this,Me).failed;const n=i=>{const{reset:s,invoke_onerror:o}=I(this,j,ei).call(this,i);o(),r&&M(this,Te,I(this,j,en).call(this,()=>{try{return Ue(()=>{var a=$;a.b=this,a.f|=Zn,r(c(this,we),()=>i,()=>s)})}catch(a){return mt(a,c(this,me).parent),null}}))};vt(()=>{var i;try{i=this.transform_error(t)}catch(s){mt(s,c(this,me)&&c(this,me).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>mt(s,c(this,me)&&c(this,me).parent)):n(i)})};function eu(e,t,r,n){const i=Nn;var s=e.filter(p=>!p.settled),o=t.map(i);if(r.length===0&&s.length===0){n(o);return}var a=$,u=tu(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(p=>p.promise)):null;function f(p){if(!(a.f&Ae)){u();try{n([...o,...p])}catch(v){mt(v,a)}pn()}}var d=js();if(r.length===0){l.then(()=>f([])).finally(d);return}function h(){Promise.all(r.map(p=>ru(p))).then(f).catch(p=>mt(p,a)).finally(d)}l?l.then(()=>{u(),h(),pn()}):h()}function tu(){var e=$,t=B,r=de,n=P;return function(s=!0){Je(e),Be(t),ur(r),s&&!(e.f&Ae)&&(n==null||n.activate(),n==null||n.apply())}}function pn(e=!0){Je(null),Be(null),ur(null),e&&(P==null||P.deactivate())}function js(){var e=$,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 Nn(e){var t=se|re;return $!==null&&($.f|=Ut),{ctx:de,deps:null,effects:null,equals:Ps,f:t,fn:e,reactions:null,rv:0,v:ne,wv:0,parent:$,ac:null}}const wr=Symbol("obsolete");function ru(e,t,r){let n=$;n===null&&No();var i=void 0,s=Lt(ne),o=!B,a=new Set;return pu(()=>{var p,v;var u=$,l=As();i=l.promise;try{Promise.resolve(e()).then(l.resolve,g=>{g!==kr&&l.reject(g)}).finally(pn)}catch(g){l.reject(g),pn()}var f=P;if(o){if(u.f&Dt)var d=js();if((p=n.b)!=null&&p.is_rendered())(v=f.async_deriveds.get(u))==null||v.reject(wr);else for(const g of a.values())g.reject(wr);a.add(l),f.async_deriveds.set(u,l)}const h=(g,m=void 0)=>{d==null||d(),a.delete(l),m!==wr&&(f.activate(),m?(s.f|=_t,lr(s,m)):(s.f&_t&&(s.f^=_t),lr(s,g)),f.deactivate())};l.promise.then(h,g=>h(null,g||"unknown"))}),sa(()=>{for(const u of a)u.reject(wr)}),new Promise(u=>{function l(f){function d(){f===i?u(s):l(i)}f.then(d,d)}l(i)})}function wt(e){const t=Nn(e);return ca(t),t}function nu(e){const t=Nn(e);return t.equals=$s,t}function iu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)pe(t[r])}}function Mi(e){var t,r=$,n=e.parent;if(!ut&&n!==null&&e.v!==ne&&n.f&(Ae|ce))return ko(),e.v;Je(n);try{e.f&=~Rt,iu(e),t=ma(e)}finally{Je(r)}return t}function Vs(e){var t=Mi(e);if(!e.equals(t)&&(e.wv=pa(),(!(P!=null&&P.is_fork)||e.deps===null)&&(P!==null?(P.capture(e,t,!0),Hr==null||Hr.capture(e,t,!0)):e.v=t,e.deps===null))){K(e,ie);return}ut||(oe!==null?(Bi()||P!=null&&P.is_fork)&&oe.set(e,t):Ai(e))}function su(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&&Pn(()=>{r.ac.abort(kr),r.ac=null}),r.fn!==null&&(r.teardown=ot),Ir(r,0),Ci(r))}function Xs(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&fr(t)}let Dn=null,kt=null,P=null,Hr=null,oe=null,ii=null,Mr=!1,Un=!1,Yt=null,tn=null;var zi=0;let au=1;var Kt,pt,Pt,er,tr,rr,rt,nr,ge,Ur,nt,Le,We,ir,Nt,G,si,Tr,ai,Ws,Ys,Xt,ou,Sr;const En=class En{constructor(){N(this,G);z(this,"id",au++);N(this,Kt,!1);z(this,"linked",!0);N(this,pt,null);N(this,Pt,null);z(this,"async_deriveds",new Map);z(this,"current",new Map);z(this,"previous",new Map);N(this,er,new Set);N(this,tr,new Set);N(this,rr,0);N(this,rt,new Map);N(this,nr,null);N(this,ge,[]);N(this,Ur,[]);N(this,nt,new Set);N(this,Le,new Set);N(this,We,new Map);N(this,ir,new Set);z(this,"is_fork",!1);N(this,Nt,!1);kt===null?Dn=kt=this:(M(kt,Pt,this),M(this,pt,kt)),kt=this}skip_effect(t){c(this,We).has(t)||c(this,We).set(t,{d:[],m:[]}),c(this,ir).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=c(this,We).get(t);if(n){c(this,We).delete(t);for(var i of n.d)K(i,re),r(i);for(i of n.m)K(i,je),r(i)}c(this,ir).add(t)}capture(t,r,n=!1){t.v!==ne&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&_t||(this.current.set(t,[r,n]),oe==null||oe.set(t,r)),this.is_fork||(t.v=r)}activate(){P=this}deactivate(){P=null,oe=null}flush(){try{Un=!0,P=this,I(this,G,Tr).call(this)}finally{zi=0,ii=null,Yt=null,tn=null,Un=!1,P=null,oe=null,qe.clear()}}discard(){var t;for(const r of c(this,tr))r(this);c(this,tr).clear();for(const r of this.async_deriveds.values())r.reject(wr);I(this,G,Sr).call(this),(t=c(this,nr))==null||t.resolve()}register_created_effect(t){c(this,Ur).push(t)}increment(t,r){var n;if(M(this,rr,c(this,rr)+1),t){let i=(n=c(this,rt).get(r))!=null?n:0;c(this,rt).set(r,i+1)}}decrement(t,r){var n;if(M(this,rr,c(this,rr)-1),t){let i=(n=c(this,rt).get(r))!=null?n:0;i===1?c(this,rt).delete(r):c(this,rt).set(r,i-1)}c(this,Nt)||(M(this,Nt,!0),vt(()=>{M(this,Nt,!1),this.linked&&this.flush()}))}transfer_effects(t,r){for(const n of t)c(this,nt).add(n);for(const n of r)c(this,Le).add(n);t.clear(),r.clear()}oncommit(t){c(this,er).add(t)}ondiscard(t){c(this,tr).add(t)}settled(){var t;return((t=c(this,nr))!=null?t:M(this,nr,As())).promise}static ensure(){if(P===null){const t=P=new En;!Un&&!Mr&&vt(()=>{c(t,Kt)||t.flush()})}return P}apply(){{oe=null;return}}schedule(t){var i;if(ii=t,(i=t.b)!=null&&i.is_pending&&t.f&(ar|Gr|Hs)&&!(t.f&Dt)){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Yt!==null&&r===$&&(B===null||!(B.f&se)))return;if(n&(Ze|Ie)){if(!(n&ie))return;r.f^=ie}}c(this,ge).push(r)}};Kt=new WeakMap,pt=new WeakMap,Pt=new WeakMap,er=new WeakMap,tr=new WeakMap,rr=new WeakMap,rt=new WeakMap,nr=new WeakMap,ge=new WeakMap,Ur=new WeakMap,nt=new WeakMap,Le=new WeakMap,We=new WeakMap,ir=new WeakMap,Nt=new WeakMap,G=new WeakSet,si=function(){if(this.is_fork)return!0;for(const n of c(this,rt).keys()){for(var t=n,r=!1;t.parent!==null;){if(c(this,We).has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1},Tr=function(){var u,l,f,d;M(this,Kt,!0),zi++>1e3&&(I(this,G,Sr).call(this),uu());for(const h of c(this,nt))c(this,Le).delete(h),K(h,re),this.schedule(h);for(const h of c(this,Le))K(h,je),this.schedule(h);const t=c(this,ge);M(this,ge,[]),this.apply();var r=Yt=[],n=[],i=tn=[];for(const h of t)try{I(this,G,ai).call(this,h,r,n)}catch(p){throw Zs(h),I(this,G,si).call(this)||this.discard(),p}if(P=null,i.length>0){var s=En.ensure();for(const h of i)s.schedule(h)}if(Yt=null,tn=null,I(this,G,si).call(this)){I(this,G,Xt).call(this,n),I(this,G,Xt).call(this,r);for(const[h,p]of c(this,We))qs(h,p);i.length>0&&I(u=P,G,Tr).call(u);return}const o=I(this,G,Ws).call(this);if(o){I(this,G,Xt).call(this,n),I(this,G,Xt).call(this,r),I(l=o,G,Ys).call(l,this);return}c(this,nt).clear(),c(this,Le).clear();for(const h of c(this,er))h(this);c(this,er).clear(),Hr=this,qi(n),qi(r),Hr=null,(f=c(this,nr))==null||f.resolve();var a=P;if(c(this,rr)===0&&(c(this,ge).length===0||a!==null)&&I(this,G,Sr).call(this),c(this,ge).length>0)if(a!==null){const h=a;c(h,ge).push(...c(this,ge).filter(p=>!c(h,ge).includes(p)))}else a=this;a!==null&&(qe.clear(),I(d=a,G,Tr).call(d))},ai=function(t,r,n){t.f^=ie;for(var i=t.first;i!==null;){var s=i.f,o=(s&(Ie|Ze))!==0,a=o&&(s&ie)!==0,u=a||(s&ce)!==0||c(this,We).has(i);if(!u&&i.fn!==null){o?i.f^=ie:s&ar?r.push(i):Vr(i)&&(s&Ge&&c(this,Le).add(i),fr(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}}},Ws=function(){for(var t=c(this,pt);t!==null;){if(!t.is_fork){for(const[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=c(t,pt)}return null},Ys=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_effects(c(t,nt),c(t,Le));const r=i=>{var s=i.reactions;if(s!==null&&!(i.f&se&&!(i.f&(re|je))))for(const u of s){var o=u.f;if(o&se)r(u);else{var a=u;o&(Zt|Ge)&&!this.async_deriveds.has(a)&&(c(this,Le).delete(a),K(a,re),this.schedule(a))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),I(n=t,G,Sr).call(n),P=this,I(this,G,Tr).call(this)},Xt=function(t){for(var r=0;r<t.length;r+=1)Cs(t[r],c(this,nt),c(this,Le))},ou=function(){var d;for(let h=Dn;h!==null;h=c(h,Pt)){var t=h.id<this.id,r=[];for(const[p,[v,g]]of this.current){if(h.current.has(p)){var n=h.current.get(p)[0];if(t&&v!==n)h.current.set(p,[v,g]);else continue}r.push(p)}if(t)for(const[p,v]of this.async_deriveds){const g=h.async_deriveds.get(p);g&&v.promise.then(g.resolve).catch(g.reject)}var i=[...h.current.keys()].filter(p=>!h.current.get(p)[1]);if(!(!c(h,Kt)||i.length===0)){var s=i.filter(p=>!this.current.has(p));if(s.length===0)t&&h.discard();else if(r.length>0){if(t)for(const p of c(this,ir))h.unskip_effect(p,v=>{var g;v.f&(Ge|Zt)?h.schedule(v):I(g=h,G,Xt).call(g,[v])});h.activate();var o=new Set,a=new Map;for(var u of r)zs(u,s,o,a);a=new Map;var l=[...h.current].filter(([p,v])=>{const g=this.current.get(p);return g?g[0]!==v[0]||g[1]!==v[1]:!0}).map(([p])=>p);if(l.length>0)for(const p of c(this,Ur))!(p.f&(Ae|ce|hn))&&Oi(p,l,a)&&(p.f&(Zt|Ge)?(K(p,re),h.schedule(p)):c(h,nt).add(p));if(c(h,ge).length>0&&!c(h,Nt)){h.apply();for(var f of c(h,ge))I(d=h,G,ai).call(d,f,[],[]);M(h,ge,[])}h.deactivate()}}}},Sr=function(){if(this.linked){var t=c(this,pt),r=c(this,Pt);t===null?Dn=r:M(t,Pt,r),r===null?kt=t:M(r,pt,t),this.linked=!1}};let yt=En;function Se(e){var t=Mr;Mr=!0;try{for(var r;;){if(Wo(),P===null)return r;P.flush()}}finally{Mr=t}}function uu(){try{Lo()}catch(e){mt(e,ii)}}let Re=null;function qi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Ae|ce))&&Vr(n)&&(Re=new Set,fr(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&la(n),(Re==null?void 0:Re.size)>0)){qe.clear();for(const i of Re){if(i.f&(Ae|ce))continue;const s=[i];let o=i.parent;for(;o!==null;)Re.has(o)&&(Re.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const u=s[a];u.f&(Ae|ce)||fr(u)}}Re.clear()}}Re=null}}function zs(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&se?zs(i,t,r,n):s&(Zt|Ge)&&!(s&re)&&Oi(i,t,n)&&(K(i,re),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(ln.call(t,i))return!0;if(i.f&se&&Oi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Pi(e){P.schedule(e)}function qs(e,t){if(!(e.f&Ie&&e.f&ie)){e.f&re?t.d.push(e):e.f&je&&t.m.push(e),K(e,ie);for(var r=e.first;r!==null;)qs(r,t),r=r.next}}function Zs(e){K(e,ie);for(var t=e.first;t!==null;)Zs(t),t=t.next}let vn=new Set;const qe=new Map;let Js=!1;function Lt(e,t){var r={f:0,v:e,reactions:null,equals:Ps,rv:0,wv:0};return r}function ue(e,t){const r=Lt(e);return ca(r),r}function Ni(e,t=!1,r=!0){const n=Lt(e);return t||(n.equals=$s),n}function te(e,t,r=!1){B!==null&&(!ke||B.f&hn)&&Is()&&B.f&(se|Ge|Zt|hn)&&($e===null||!$e.has(e))&&Fo();let n=r?zt(t):t;return lr(e,n,tn)}function lr(e,t,r=null){if(!e.equals(t)){ut?qe.set(e,t):qe.has(e)||qe.set(e,e.v);var n=yt.ensure();if(n.capture(e,t),e.f&se){const i=e;e.f&re&&Mi(i),oe===null&&Ai(i)}e.wv=pa(),Qs(e,re,r),$!==null&&$.f&ie&&!($.f&(Ie|Ze))&&(He===null?gu([e]):He.push(e)),!n.is_fork&&vn.size>0&&!Js&&lu()}return t}function lu(){Js=!1;for(const e of vn){e.f&ie&&K(e,je);let t;try{t=Vr(e)}catch(r){t=!0}t&&fr(e)}vn.clear()}function Or(e){te(e,e.v+1)}function Qs(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var o=n[s],a=o.f,u=(a&re)===0;if(u&&K(o,t),a&hn)vn.add(o);else if(a&se){var l=o;oe==null||oe.delete(l),a&Rt||(a&Ne&&($===null||!($.f&cn))&&(o.f|=Rt),Qs(l,je,r))}else if(u){var f=o;a&Ge&&Re!==null&&Re.add(f),r!==null?r.push(f):Pi(f)}}}function zt(e){if(typeof e!="object"||e===null||Jr in e)return e;const t=Ts(e);if(t!==To&&t!==So)return e;var r=new Map,n=ws(e),i=ue(0),s=Bt,o=a=>{if(Bt===s)return a();var u=B,l=Bt;Be(null),Qi(s);var f=a();return Be(u),Qi(l),f};return n&&r.set("length",ue(e.length)),new Proxy(e,{defineProperty(a,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Do();var f=r.get(u);return f===void 0?o(()=>{var d=ue(l.value);return r.set(u,d),d}):te(f,l.value,!0),!0},deleteProperty(a,u){var l=r.get(u);if(l===void 0){if(u in a){const f=o(()=>ue(ne));r.set(u,f),Or(i)}}else te(l,ne),Or(i);return!0},get(a,u,l){var p;if(u===Jr)return e;var f=r.get(u),d=u in a;if(f===void 0&&(!d||(p=qt(a,u))!=null&&p.writable)&&(f=o(()=>{var v=zt(d?a[u]:ne),g=ue(v);return g}),r.set(u,f)),f!==void 0){var h=A(f);return h===ne?void 0:h}return Reflect.get(a,u,l)},getOwnPropertyDescriptor(a,u){var l=Reflect.getOwnPropertyDescriptor(a,u);if(l&&"value"in l){var f=r.get(u);f&&(l.value=A(f))}else if(l===void 0){var d=r.get(u),h=d==null?void 0:d.v;if(d!==void 0&&h!==ne)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return l},has(a,u){var h;if(u===Jr)return!0;var l=r.get(u),f=l!==void 0&&l.v!==ne||Reflect.has(a,u);if(l!==void 0||$!==null&&(!f||(h=qt(a,u))!=null&&h.writable)){l===void 0&&(l=o(()=>{var p=f?zt(a[u]):ne,v=ue(p);return v}),r.set(u,l));var d=A(l);if(d===ne)return!1}return f},set(a,u,l,f){var C;var d=r.get(u),h=u in a;if(n&&u==="length")for(var p=l;p<d.v;p+=1){var v=r.get(p+"");v!==void 0?te(v,ne):p in a&&(v=o(()=>ue(ne)),r.set(p+"",v))}if(d===void 0)(!h||(C=qt(a,u))!=null&&C.writable)&&(d=o(()=>ue(void 0)),te(d,zt(l)),r.set(u,d));else{h=d.v!==ne;var g=o(()=>zt(l));te(d,g)}var m=Reflect.getOwnPropertyDescriptor(a,u);if(m!=null&&m.set&&m.set.call(f,l),!h){if(n&&typeof u=="string"){var E=r.get("length"),R=Number(u);Number.isInteger(R)&&R>=E.v&&te(E,R+1)}Or(i)}return!0},ownKeys(a){A(i);var u=Reflect.ownKeys(a).filter(d=>{var h=r.get(d);return h===void 0||h.v!==ne});for(var[l,f]of r)f.v!==ne&&!(l in a)&&u.push(l);return u},setPrototypeOf(){Uo()}})}var Zi,Ks,ea,ta;function oi(){if(Zi===void 0){Zi=window,Ks=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;ea=qt(t,"firstChild").get,ta=qt(t,"nextSibling").get,Yi(e)&&(e[Qn]=void 0,e[Qr]=null,e[Oo]=void 0,e.__e=void 0),Yi(r)&&(r[xr]=void 0)}}function Ve(e=""){return document.createTextNode(e)}function Ct(e){return ea.call(e)}function Qe(e){return ta.call(e)}function Wt(e,t){if(!F)return Ct(e);var r=Ct(L);if(r===null)r=L.appendChild(Ve());else if(t&&r.nodeType!==Tn){var n=Ve();return r==null||r.before(n),ye(n),n}return t&&Ii(r),ye(r),r}function ra(e,t=!1){if(!F){var r=Ct(e);return r instanceof Comment&&r.data===""?Qe(r):r}if(t){if((L==null?void 0:L.nodeType)!==Tn){var n=Ve();return L==null||L.before(n),ye(n),n}Ii(L)}return L}function ui(e,t=1,r=!1){let n=F?L:e;for(var i;t--;)i=n,n=Qe(n);if(!F)return n;if(r){if((n==null?void 0:n.nodeType)!==Tn){var s=Ve();return n===null?i==null||i.after(s):n.before(s),ye(s),s}Ii(n)}return ye(n),n}function na(e){e.textContent=""}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===Tn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function ia(e){$===null&&(B===null&&Ro(),Bo()),ut&&Io()}function fu(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Xe(e,t){var o;var r=$;r!==null&&r.f&ce&&(e|=ce);var n={ctx:de,deps:null,nodes:null,f:e|re|Ne,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&ar)Yt!==null?Yt.push(n):yt.ensure().schedule(n);else if(t!==null){try{fr(n)}catch(a){throw pe(n),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&Ut)&&(i=i.first,e&Ge&&e&or&&i!==null&&(i.f|=or))}if(i!==null&&(i.parent=r,r!==null&&fu(i,r),B!==null&&B.f&se&&!(e&Ze))){var s=B;((o=s.effects)!=null?o:s.effects=[]).push(i)}return n}function Bi(){return B!==null&&!ke}function sa(e){const t=Xe(Gr,null);return K(t,ie),t.teardown=e,t}function $r(e){var i;ia();var t=$.f,r=!B&&(t&Ie)!==0&&de!==null&&!de.i;if(r){var n=de;((i=n.e)!=null?i:n.e=[]).push(e)}else return aa(e)}function aa(e){return Xe(ar|Ms,e)}function hu(e){return ia(),Xe(Gr|Ms,e)}function cu(e){yt.ensure();const t=Xe(Ze|Ut,e);return()=>{pe(t)}}function du(e){yt.ensure();const t=Xe(Ze|Ut,e);return(r={})=>new Promise(n=>{r.outro?It(t,()=>{pe(t),n(void 0)}):(pe(t),n(void 0))})}function oa(e){return Xe(ar,e)}function pu(e){return Xe(Zt|Ut,e)}function Ri(e,t=0){return Xe(Gr|t,e)}function li(e,t=[],r=[],n=[]){eu(n,t,r,i=>{Xe(Gr,()=>{e(...i.map(A))})})}function Li(e,t=0){var r=Xe(Ge|t,e);return r}function Ue(e){return Xe(Ie|Ut,e)}function ua(e){var t=e.teardown;if(t!==null){const r=ut,n=B;Ji(!0),Be(null);try{t.call(null)}finally{Ji(r),Be(n)}}}function Ci(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Pn(()=>{i.abort(kr)});var n=r.next;r.f&Ze?r.parent=null:pe(r,t),r=n}}function vu(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Ie||pe(t),t=r}}function pe(e,t=!0){var r=!1;(t||e.f&Ao)&&e.nodes!==null&&e.nodes.end!==null&&(mu(e.nodes.start,e.nodes.end),r=!0),e.f|=Jn,Ci(e,t&&!r),Ir(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();ua(e),e.f^=Jn,e.f|=Ae;var i=e.parent;i!==null&&i.first!==null&&la(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function mu(e,t){for(;e!==null;){var r=e===t?null:Qe(e);e.remove(),e=r}}function la(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 It(e,t,r=!0){var n=[];fa(e,n,!0);var i=()=>{r&&pe(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var a of n)a.out(o)}else i()}function fa(e,t,r){if(!(e.f&ce)){e.f^=ce;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&Ze)){var o=(i.f&or)!==0||(i.f&Ie)!==0&&(e.f&Ge)!==0;fa(i,t,o?r:!1)}i=s}}}function mn(e){ha(e,!0)}function ha(e,t){if(e.f&ce){e.f^=ce,e.f&ie||(K(e,re),yt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&or)!==0||(r.f&Ie)!==0;ha(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:Qe(r);t.append(r),r=i}}let rn=!1,ut=!1;function Ji(e){ut=e}let B=null,ke=!1;function Be(e){B=e}let $=null;function Je(e){$=e}let $e=null;function ca(e){B!==null&&($e!=null?$e:$e=new Set).add(e)}let _e=null,xe=0,He=null;function gu(e){He=e}let da=1,At=0,Bt=At;function Qi(e){Bt=e}function pa(){return++da}function Vr(e){var t=e.f;if(t&re)return!0;if(t&se&&(e.f&=~Rt),t&je){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Vr(s)&&Vs(s),s.wv>e.wv)return!0}t&Ne&&oe===null&&K(e,ie)}return!1}function va(e,t,r=!0){var n=e.reactions;if(n!==null&&!($e!==null&&$e.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&se?va(s,t,!1):t===s&&(r?K(s,re):s.f&ie&&K(s,je),Pi(s))}}function ma(e){var g,m;var t=_e,r=xe,n=He,i=B,s=$e,o=de,a=ke,u=Bt,l=e.f;_e=null,xe=0,He=null,B=l&(Ie|Ze)?null:e,$e=null,ur(e.ctx),ke=!1,Bt=++At,e.ac!==null&&(Pn(()=>{e.ac.abort(kr)}),e.ac=null);try{e.f|=cn;var f=e.fn,d=f();e.f|=Dt;var h=e.deps,p=P==null?void 0:P.is_fork;if(_e!==null){var v;if(p||Ir(e,xe),h!==null&&xe>0)for(h.length=xe+_e.length,v=0;v<_e.length;v++)h[xe+v]=_e[v];else e.deps=h=_e;if(Bi()&&e.f&Ne)for(v=xe;v<h.length;v++)((m=(g=h[v]).reactions)!=null?m:g.reactions=[]).push(e)}else!p&&h!==null&&xe<h.length&&(Ir(e,xe),h.length=xe);if(Is()&&He!==null&&!ke&&h!==null&&!(e.f&(se|je|re)))for(v=0;v<He.length;v++)va(He[v],e);if(i!==null&&i!==e){if(At++,i.deps!==null)for(let E=0;E<r;E+=1)i.deps[E].rv=At;if(t!==null)for(const E of t)E.rv=At;He!==null&&(n===null?n=He:n.push(...He))}return e.f&_t&&(e.f^=_t),d}catch(E){return Rs(E)}finally{e.f^=cn,_e=t,xe=r,He=n,B=i,$e=s,ur(o),ke=a,Bt=u}}function _u(e,t){let r=t.reactions;if(r!==null){var n=xo.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&se&&(_e===null||!ln.call(_e,t))){var s=t;s.f&Ne&&(s.f^=Ne,s.f&=~Rt),s.v!==ne&&Ai(s),s.ac!==null&&Pn(()=>{s.ac.abort(kr),s.ac=null,K(s,re)}),su(s),Ir(s,0)}}function Ir(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)_u(e,r[n])}function fr(e){var t=e.f;if(!(t&Ae)){K(e,ie);var r=$,n=rn;$=e,rn=(t&(Ie|Ze))===0;try{t&(Ge|Hs)?vu(e):Ci(e),ua(e);var i=ma(e);e.teardown=typeof i=="function"?i:null,e.wv=da;var s;xs&&Xo&&e.f&re&&e.deps}finally{rn=n,$=r}}}function yu(){return Ke(this,null,function*(){yield Promise.resolve(),Se()})}function A(e){var f;var t=e.f,r=(t&se)!==0;if(B!==null&&!ke){var n=$!==null&&($.f&Ae)!==0;if(!n&&($e===null||!$e.has(e))){var i=B.deps;if(B.f&cn)e.rv<At&&(e.rv=At,_e===null&&i!==null&&i[xe]===e?xe++:_e===null?_e=[e]:_e.push(e));else{(f=B.deps)!=null||(B.deps=[]),ln.call(B.deps,e)||B.deps.push(e);var s=e.reactions;s===null?e.reactions=[B]:ln.call(s,B)||s.push(B)}}}if(ut&&qe.has(e))return qe.get(e);if(r){var o=e;if(ut){var a=o.v;return(!(o.f&ie)&&o.reactions!==null||_a(o))&&(a=Mi(o)),qe.set(o,a),a}var u=(o.f&Ne)===0&&!ke&&B!==null&&(rn||(B.f&Ne)!==0),l=(o.f&Dt)===0;Vr(o)&&(u&&(o.f|=Ne),Vs(o)),u&&!l&&(Xs(o),ga(o))}if(oe!=null&&oe.has(e))return oe.get(e);if(e.f&_t)throw e.v;return e.v}function ga(e){var t;if(e.f|=Ne,e.deps!==null)for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&se&&!(r.f&Ne)&&(Xs(r),ga(r))}function _a(e){if(e.v===ne)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(qe.has(t)||t.f&se&&_a(t))return!0;return!1}function Ui(e){var t=ke;try{return ke=!0,e()}finally{ke=t}}const Ht=Symbol("events"),ya=new Set,fi=new Set;function nn(e,t,r){var n;((n=t[Ht])!=null?n:t[Ht]={})[e]=r}function ba(e){for(var t=0;t<e.length;t++)ya.add(e[t]);for(var r of fi)r(e)}let Fn=null,Gn=!1;function Ki(e){var g,m;var t=this,r=t.ownerDocument,n=e.type,i=((g=e.composedPath)==null?void 0:g.call(e))||[],s=i[0]||e.target;Fn=e,Gn||(Gn=!0,setTimeout(()=>{Gn=!1,Fn=null}));var o=0,a=Fn===e&&e[Ht];if(a){var u=i.indexOf(a);if(u!==-1&&(t===document||t===window)){e[Ht]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(o=u)}if(s=i[o]||e.target,s!==t){Nr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=B,d=$;Be(null),Je(null);try{for(var h,p=[];s!==null&&s!==t;){try{var v=(m=s[Ht])==null?void 0:m[n];v!=null&&(!s.disabled||e.target===s)&&v.call(s,e)}catch(E){h?p.push(E):h=E}if(e.cancelBubble)break;o++,s=o<i.length?i[o]:null}if(h){for(let E of p)queueMicrotask(()=>{throw E});throw h}}finally{e[Ht]=t,delete e.currentTarget,Be(f),Je(d)}}}var ys;const kn=((ys=globalThis==null?void 0:globalThis.window)==null?void 0:ys.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function bu(e){var t;return(t=kn==null?void 0:kn.createHTML(e))!=null?t:e}function Eu(e){var t=$i("template");return t.innerHTML=bu(e.replaceAll("<!>","<!---->")),t.content}function Jt(e,t){var r=$;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Xr(e,t){var r=(t&yo)!==0,n=(t&bo)!==0,i,s=!e.startsWith("<!>");return()=>{if(F)return Jt(L,null),L;i===void 0&&(i=Eu(s?e:"<!>"+e),r||(i=Ct(i)));var o=n||Ks?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ct(o),u=o.lastChild;Jt(a,u)}else Jt(o,o);return o}}function Ea(){if(F)return Jt(L,null),L;var e=document.createDocumentFragment(),t=document.createComment(""),r=Ve();return e.append(t,r),Jt(t,r),e}function Tt(e,t){if(F){var r=$;(!(r.f&Dt)||r.nodes.end===null)&&(r.nodes.end=L),An();return}e!==null&&e.before(t)}const xu=["touchstart","touchmove"];function wu(e){return xu.includes(e)}function sn(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e[xr])!=null?n:e[xr]=e.nodeValue)&&(e[xr]=r,e.nodeValue=`${r}`)}function xa(e,t){return wa(e,t)}function Tu(e,t){var o;oi(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,n=F,i=L;try{for(var s=Ct(r);s&&(s.nodeType!==jr||s.data!==Es);)s=Qe(s);if(!s)throw sr;at(!0),ye(s);const a=wa(e,zr(Yr({},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!==sr&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Co(),oi(),na(r),at(!1),xa(e,t)}finally{at(n),ye(i)}}const qr=new Map;function wa(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0,transformError:a}){oi();var u=void 0,l=du(()=>{var f=r!=null?r:t.appendChild(Ve());Qo(f,{pending:()=>{}},p=>{Hn({});var v=de;if(s&&(v.c=s),i&&(n.$$events=i),F&&Jt(p,null),u=e(p,n)||{},F&&($.nodes.end=L,L===null||L.nodeType!==jr||L.data!==Si))throw Sn(),sr;Mn()},a);var d=new Set,h=p=>{for(var v=0;v<p.length;v++){var g=p[v];if(!d.has(g)){d.add(g);var m=wu(g);for(const C of[t,document]){var E=qr.get(C);E===void 0&&(E=new Map,qr.set(C,E));var R=E.get(g);R===void 0?(C.addEventListener(g,Ki,{passive:m}),E.set(g,1)):E.set(g,R+1)}}}};return h(wn(ya)),fi.add(h),()=>{var m;for(var p of d)for(const E of[t,document]){var v=qr.get(E),g=v.get(p);--g==0?(E.removeEventListener(p,Ki),v.delete(p),v.size===0&&qr.delete(E)):v.set(p,g)}fi.delete(h),f!==r&&((m=f.parentNode)==null||m.removeChild(f))}});return hi.set(u,l),u}let hi=new WeakMap;function Su(e,t){const r=hi.get(e);return r?(hi.delete(e),r(t)):Promise.resolve()}var Ce,it,De,$t,Fr,xn,wi;class Au{constructor(t,r=!0){z(this,"anchor");N(this,Ce,new Map);N(this,it,new Map);N(this,De,new Map);N(this,$t,new Set);N(this,Fr,!0);N(this,xn,t=>{if(c(this,Ce).has(t)){var r=c(this,Ce).get(t),n=c(this,it).get(r);if(n)mn(n),c(this,$t).delete(r);else{var i=c(this,De).get(r);i&&(mn(i.effect),c(this,it).set(r,i.effect),c(this,De).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of c(this,Ce)){if(c(this,Ce).delete(s),s===t)break;const a=c(this,De).get(o);a&&(pe(a.effect),c(this,De).delete(o))}for(const[s,o]of c(this,it)){if(s===r||c(this,$t).has(s))continue;const a=()=>{if(Array.from(c(this,Ce).values()).includes(s)){var l=document.createDocumentFragment();Di(o,l),l.append(Ve()),c(this,De).set(s,{effect:o,fragment:l})}else pe(o);c(this,$t).delete(s),c(this,it).delete(s)};c(this,Fr)||!n?(c(this,$t).add(s),It(o,a,!1)):a()}}});N(this,wi,t=>{c(this,Ce).delete(t);const r=Array.from(c(this,Ce).values());for(const[n,i]of c(this,De))r.includes(n)||(pe(i.effect),c(this,De).delete(n))});this.anchor=t,M(this,Fr,r)}ensure(t,r){var n=P;r&&!c(this,it).has(t)&&!c(this,De).has(t)&&c(this,it).set(t,Ue(()=>r(this.anchor))),c(this,Ce).set(n,t),F&&(this.anchor=L),c(this,xn).call(this,n)}}Ce=new WeakMap,it=new WeakMap,De=new WeakMap,$t=new WeakMap,Fr=new WeakMap,xn=new WeakMap,wi=new WeakMap;function ci(e,t,r=!1){var n;F&&(n=L,An());var i=new Au(e),s=r?or:0;function o(a,u){if(F){var l=Os(n);if(a!==parseInt(l.substring(1))){var f=dn();ye(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 Ta(e,t){return t}function Hu(e,t,r){var d;for(var n=[],i=t.length,s,o=t.length,a=0;a<i;a++){let h=t[a];It(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var p=e.outrogroups;di(e,wn(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;na(f),f.append(l),e.items.clear()}di(e,t,!u)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function di(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|=ze;const o=document.createDocumentFragment();Di(s,o)}else pe(t[i],r)}}var jt;function Sa(e,t,r,n,i,s=null){var o=e,a=new Map,u=(t&bs)!==0;if(u){var l=e;o=F?ye(Ct(l)):l.appendChild(Ve())}F&&An();var f=null,d=nu(()=>{var R=r();return ws(R)?R:R==null?[]:wn(R)}),h,p=new Map,v=!0;function g(R){E.effect.f&Ae||(E.pending.delete(R),E.fallback=f,Mu(E,h,o,t,n),f!==null&&(h.length===0?f.f&ze?(f.f^=ze,Ar(f,null,o)):mn(f):It(f,()=>{f=null})))}var m=Li(()=>{h=A(d);var R=h.length;let C=!1;if(F){var Z=Os(o)===Ti;Z!==(R===0)&&(o=dn(),ye(o),at(!1),C=!0)}for(var X=new Set,V=P,ee=0;ee<R;ee+=1){F&&L.nodeType===jr&&L.data===Si&&(o=L,C=!0,at(!1));var be=h[ee],Ee=n(be,ee),x=v?null:a.get(Ee);x?(x.v&&lr(x.v,be),x.i&&lr(x.i,ee)):(x=Ou(a,v?o:jt!=null?jt:jt=Ve(),be,Ee,ee,i,t,r),v||(x.e.f|=ze),a.set(Ee,x)),X.add(Ee)}R===0&&s&&!f&&(v?f=Ue(()=>s(o)):(f=Ue(()=>s(jt!=null?jt:jt=Ve())),f.f|=ze)),R>X.size&&$o(),F&&R>0&&ye(dn()),v||(p.set(V,X),g(V)),C&&at(!0),A(d)}),E={effect:m,items:a,pending:p,outrogroups:null,fallback:f};v=!1,F&&(o=L)}function br(e){for(;e!==null&&!(e.f&Ie);)e=e.next;return e}function Mu(e,t,r,n,i){var x,O,ae,lt,S,b,_,w,y;var s=(n&go)!==0,o=t.length,a=e.items,u=br(e.effect.first),l,f=null,d,h=[],p=[],v,g,m,E;if(s)for(E=0;E<o;E+=1)v=t[E],g=i(v,E),m=a.get(g).e,m.f&ze||((O=(x=m.nodes)==null?void 0:x.a)==null||O.measure(),(d!=null?d:d=new Set).add(m));for(E=0;E<o;E+=1){if(v=t[E],g=i(v,E),m=a.get(g).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(m),T.done.delete(m);if(m.f&ce&&(mn(m),s&&((lt=(ae=m.nodes)==null?void 0:ae.a)==null||lt.unfix(),(d!=null?d:d=new Set).delete(m))),m.f&ze)if(m.f^=ze,m===u)Ar(m,null,r);else{var R=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,R),Ar(m,R,r),f=m,h=[],p=[],u=br(f.next);continue}if(m!==u){if(l!==void 0&&l.has(m)){if(h.length<p.length){var C=p[0],Z;f=C.prev;var X=h[0],V=h[h.length-1];for(Z=0;Z<h.length;Z+=1)Ar(h[Z],C,r);for(Z=0;Z<p.length;Z+=1)l.delete(p[Z]);ct(e,X.prev,V.next),ct(e,f,X),ct(e,V,C),u=C,f=V,E-=1,h=[],p=[]}else l.delete(m),Ar(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(h=[],p=[];u!==null&&u!==m;)(l!=null?l:l=new Set).add(u),p.push(u),u=br(u.next);if(u===null)continue}m.f&ze||h.push(m),f=m,u=br(m.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(di(e,wn(T.done)),(S=e.outrogroups)==null||S.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||l!==void 0){var ee=[];if(l!==void 0)for(m of l)m.f&ce||ee.push(m);for(;u!==null;)!(u.f&ce)&&u!==e.fallback&&ee.push(u),u=br(u.next);var be=ee.length;if(be>0){var Ee=n&bs&&o===0?r:null;if(s){for(E=0;E<be;E+=1)(_=(b=ee[E].nodes)==null?void 0:b.a)==null||_.measure();for(E=0;E<be;E+=1)(y=(w=ee[E].nodes)==null?void 0:w.a)==null||y.fix()}Hu(e,ee,Ee)}}s&&vt(()=>{var T,H;if(d!==void 0)for(m of d)(H=(T=m.nodes)==null?void 0:T.a)==null||H.apply()})}function Ou(e,t,r,n,i,s,o,a){var u=o&vo?o&_o?Lt(r):Ni(r,!1,!1):null,l=o&mo?Lt(i):null;return{v:u,i:l,e:Ue(()=>(s(t,u!=null?u:r,l!=null?l:i,a),()=>{e.delete(n)}))}}function Ar(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&ze)?t.nodes.start:r;n!==null;){var o=Qe(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 Aa(e,t){oa(()=>{var i,s,o,a;e=(o=(s=(i=$==null?void 0:$.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 es=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function Pu(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||es.includes(n[o-1]))&&(a===n.length||es.includes(n[a]))?n=(o===0?"":n.substring(0,o))+n.substring(a+1):o=a}}return n===""?null:n}function Ha(e,t,r,n,i,s){var o=e[Qn];if(F||o!==r||o===void 0){var a=Pu(r,n,s);(!F||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 Nu=Symbol("is custom element"),$u=Symbol("is html"),Iu=Po?"link":"LINK";function Bu(e,t,r,n){var i=Ru(e);F&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Iu)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Mo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Lu(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ru(e){var t;return(t=e[Qr])!=null?t:e[Qr]={[Nu]:e.nodeName.includes("-"),[$u]:e.namespaceURI===Eo}}var ts=new Map;function Lu(e){var t=e.getAttribute("is")||e.nodeName,r=ts.get(t);if(r)return r;ts.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=wo(i);for(var o in n)n[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&r.push(o);i=Ts(i)}return r}function jn(e,t){return e===t||(e==null?void 0:e[Jr])===t}function Cu(e={},t,r,n){var i=de.r,s=$;return oa(()=>{var o,a;return Ri(()=>{o=a,a=[],Ui(()=>{jn(r(...a),e)||(t(e,...a),o&&jn(r(...o),e)&&t(null,...o))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&Jn;)u=u.parent;const l=()=>{a&&jn(r(...a),e)&&t(null,...a)},f=u.teardown;u.teardown=()=>{l(),f==null||f()}}}),e}function Fe(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 h=e[t];return h===void 0?o():(s=!0,h)};var l=!1,f=Nn(()=>(l=!1,u())),d=$;return function(h,p){if(arguments.length>0){const v=p?A(f):h;return te(f,v),l=!0,i!==void 0&&(i=v),h}return ut&&l||d.f&Ae?f.v:A(f)}}function Du(e){return new Uu(e)}var st,Pe;class Uu{constructor(t){N(this,st);N(this,Pe);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(zr(Yr({},t.props||{}),{$$events:{}}),{get(a,u){var l;return A((l=r.get(u))!=null?l:n(u,Reflect.get(a,u)))},has(a,u){var l;return u===Ho?!0:(A((l=r.get(u))!=null?l:n(u,Reflect.get(a,u))),Reflect.has(a,u))},set(a,u,l){var f;return te((f=r.get(u))!=null?f:n(u,l),l),Reflect.set(a,u,l)}});M(this,Pe,(t.hydrate?Tu:xa)(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)&&Se(),M(this,st,i.$$events);for(const a of Object.keys(c(this,Pe)))a==="$set"||a==="$destroy"||a==="$on"||Nr(this,a,{get(){return c(this,Pe)[a]},set(u){c(this,Pe)[a]=u},enumerable:!0});c(this,Pe).$set=a=>{Object.assign(i,a)},c(this,Pe).$destroy=()=>{Su(c(this,Pe))}}$set(t){c(this,Pe).$set(t)}$on(t,r){c(this,st)[t]=c(this,st)[t]||[];const n=(...i)=>r.call(this,...i);return c(this,st)[t].push(n),()=>{c(this,st)[t]=c(this,st)[t].filter(i=>i!==n)}}$destroy(){c(this,Pe).$destroy()}}st=new WeakMap,Pe=new WeakMap;let Ma;typeof HTMLElement=="function"&&(Ma=class extends HTMLElement{constructor(t,r,n){super();z(this,"$$ctor");z(this,"$$s");z(this,"$$c");z(this,"$$cn",!1);z(this,"$$d",{});z(this,"$$r",!1);z(this,"$$p_d",{});z(this,"$$l",{});z(this,"$$l_u",new Map);z(this,"$$me");z(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 Ke(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return o=>{const a=$i("slot");s!=="default"&&(a.name=s),Tt(o,a)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Fu(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]=an(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=Du({component:this.$$ctor,target:this.$$shadowRoot||this,props:zr(Yr({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=cu(()=>{Ri(()=>{var s;this.$$r=!0;for(const o of fn(this.$$c)){if(!((s=this.$$p_d[o])!=null&&s.reflect))continue;this.$$d[o]=this.$$c[o];const a=an(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]=an(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 fn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function an(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 Fu(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Fi(e,t,r,n,i,s){let o=class extends Ma{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return fn(t).map(a=>(t[a].attribute||a).toLowerCase())}};return fn(t).forEach(a=>{Nr(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var d;u=an(a,u,t),this.$$d[a]=u;var l=this.$$c;if(l){var f=(d=qt(l,a))==null?void 0:d.get;f?l[a]=u:l.$set({[a]:u})}}})}),n.forEach(a=>{Nr(o.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=o,o}class Oa extends Error{constructor(t,r){super(r),this.code=t,this.name="ElevateApiError"}}const Gu=e=>Ke(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 Oa(i.errorCode,i.errorMessage);return i.data}),ku=e=>Ke(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}),ju={REDEEM_REWARD_CONFIRMED:"Loyalty:RedeemRewardConfirmed",BACK_BUTTON_CLICKED:"Loyalty:BackButtonClicked"},Vu="shop",Xu=10,Pa=12,Wu="DD/MM/YYYY HH:mm:ss",Na=e=>{const t=new Headers({"Content-Type":"application/json"});return e&&t.append("X-SessionId",e),t},Yu=(n,...i)=>Ke(exports,[n,...i],function*(e,t=0,r=Pa){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:Na(e.userSession)})).json()}),zu=(e,t)=>Ke(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:Na(e.userSession)})).json()).data)==null?void 0:o[0]}),qu=(e,t)=>Ke(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 Oa((o=s.errorCode)!=null?o:"",(a=s.errorMessage)!=null?a:"Redeem failed")}),Zu=(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 Ju=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function $a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ia={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ju,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",l="day",f="week",d="month",h="quarter",p="year",v="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|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,R={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"],_=S%100;return"["+S+(b[(_-20)%10]||b[_]||b[0])+"]"}},C=function(S,b,_){var w=String(S);return!w||w.length>=b?S:""+Array(b+1-w.length).join(_)+S},Z={s:C,z:function(S){var b=-S.utcOffset(),_=Math.abs(b),w=Math.floor(_/60),y=_%60;return(b<=0?"+":"-")+C(w,2,"0")+":"+C(y,2,"0")},m:function S(b,_){if(b.date()<_.date())return-S(_,b);var w=12*(_.year()-b.year())+(_.month()-b.month()),y=b.clone().add(w,d),T=_-y<0,H=b.clone().add(w+(T?-1:1),d);return+(-(w+(_-y)/(T?y-H:H-y))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:p,w:f,d:l,D:v,h:u,m:a,s:o,ms:s,Q:h}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},X="en",V={};V[X]=R;var ee="$isDayjsObject",be=function(S){return S instanceof ae||!(!S||!S[ee])},Ee=function S(b,_,w){var y;if(!b)return X;if(typeof b=="string"){var T=b.toLowerCase();V[T]&&(y=T),_&&(V[T]=_,y=T);var H=b.split("-");if(!y&&H.length>1)return S(H[0])}else{var k=b.name;V[k]=b,y=k}return!w&&y&&(X=y),y||!w&&X},x=function(S,b){if(be(S))return S.clone();var _=typeof b=="object"?b:{};return _.date=S,_.args=arguments,new ae(_)},O=Z;O.l=Ee,O.i=be,O.w=function(S,b){return x(S,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ae=function(){function S(_){this.$L=Ee(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[ee]=!0}var b=S.prototype;return b.parse=function(_){this.$d=function(w){var y=w.date,T=w.utc;if(y===null)return new Date(NaN);if(O.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var H=y.match(m);if(H){var k=H[2]-1||0,J=(H[7]||"0").substring(0,3);return T?new Date(Date.UTC(H[1],k,H[3]||1,H[4]||0,H[5]||0,H[6]||0,J)):new Date(H[1],k,H[3]||1,H[4]||0,H[5]||0,H[6]||0,J)}}return new Date(y)}(_),this.init()},b.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},b.$utils=function(){return O},b.isValid=function(){return this.$d.toString()!==g},b.isSame=function(_,w){var y=x(_);return this.startOf(w)<=y&&y<=this.endOf(w)},b.isAfter=function(_,w){return x(_)<this.startOf(w)},b.isBefore=function(_,w){return this.endOf(w)<x(_)},b.$g=function(_,w,y){return O.u(_)?this[w]:this.set(y,_)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(_,w){var y=this,T=!!O.u(w)||w,H=O.p(_),k=function(xt,ve){var ht=O.w(y.$u?Date.UTC(y.$y,ve,xt):new Date(y.$y,ve,xt),y);return T?ht:ht.endOf(l)},J=function(xt,ve){return O.w(y.toDate()[xt].apply(y.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(ve)),y)},W=this.$W,Y=this.$M,le=this.$D,ft="set"+(this.$u?"UTC":"");switch(H){case p:return T?k(1,0):k(31,11);case d:return T?k(1,Y):k(0,Y+1);case f:var Et=this.$locale().weekStart||0,_r=(W<Et?W+7:W)-Et;return k(T?le-_r:le+(6-_r),Y);case l:case v:return J(ft+"Hours",0);case u:return J(ft+"Minutes",1);case a:return J(ft+"Seconds",2);case o:return J(ft+"Milliseconds",3);default:return this.clone()}},b.endOf=function(_){return this.startOf(_,!1)},b.$set=function(_,w){var y,T=O.p(_),H="set"+(this.$u?"UTC":""),k=(y={},y[l]=H+"Date",y[v]=H+"Date",y[d]=H+"Month",y[p]=H+"FullYear",y[u]=H+"Hours",y[a]=H+"Minutes",y[o]=H+"Seconds",y[s]=H+"Milliseconds",y)[T],J=T===l?this.$D+(w-this.$W):w;if(T===d||T===p){var W=this.clone().set(v,1);W.$d[k](J),W.init(),this.$d=W.set(v,Math.min(this.$D,W.daysInMonth())).$d}else k&&this.$d[k](J);return this.init(),this},b.set=function(_,w){return this.clone().$set(_,w)},b.get=function(_){return this[O.p(_)]()},b.add=function(_,w){var y,T=this;_=Number(_);var H=O.p(w),k=function(Y){var le=x(T);return O.w(le.date(le.date()+Math.round(Y*_)),T)};if(H===d)return this.set(d,this.$M+_);if(H===p)return this.set(p,this.$y+_);if(H===l)return k(1);if(H===f)return k(7);var J=(y={},y[a]=n,y[u]=i,y[o]=r,y)[H]||1,W=this.$d.getTime()+_*J;return O.w(W,this)},b.subtract=function(_,w){return this.add(-1*_,w)},b.format=function(_){var w=this,y=this.$locale();if(!this.isValid())return y.invalidDate||g;var T=_||"YYYY-MM-DDTHH:mm:ssZ",H=O.z(this),k=this.$H,J=this.$m,W=this.$M,Y=y.weekdays,le=y.months,ft=y.meridiem,Et=function(ve,ht,yr,Wr){return ve&&(ve[ht]||ve(w,T))||yr[ht].slice(0,Wr)},_r=function(ve){return O.s(k%12||12,ve,"0")},xt=ft||function(ve,ht,yr){var Wr=ve<12?"AM":"PM";return yr?Wr.toLowerCase():Wr};return T.replace(E,function(ve,ht){return ht||function(yr){switch(yr){case"YY":return String(w.$y).slice(-2);case"YYYY":return O.s(w.$y,4,"0");case"M":return W+1;case"MM":return O.s(W+1,2,"0");case"MMM":return Et(y.monthsShort,W,le,3);case"MMMM":return Et(le,W);case"D":return w.$D;case"DD":return O.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return Et(y.weekdaysMin,w.$W,Y,2);case"ddd":return Et(y.weekdaysShort,w.$W,Y,3);case"dddd":return Y[w.$W];case"H":return String(k);case"HH":return O.s(k,2,"0");case"h":return _r(1);case"hh":return _r(2);case"a":return xt(k,J,!0);case"A":return xt(k,J,!1);case"m":return String(J);case"mm":return O.s(J,2,"0");case"s":return String(w.$s);case"ss":return O.s(w.$s,2,"0");case"SSS":return O.s(w.$ms,3,"0");case"Z":return H}return null}(ve)||H.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(_,w,y){var T,H=this,k=O.p(w),J=x(_),W=(J.utcOffset()-this.utcOffset())*n,Y=this-J,le=function(){return O.m(H,J)};switch(k){case p:T=le()/12;break;case d:T=le();break;case h:T=le()/3;break;case f:T=(Y-W)/6048e5;break;case l:T=(Y-W)/864e5;break;case u:T=Y/i;break;case a:T=Y/n;break;case o:T=Y/r;break;default:T=Y}return y?T:O.a(T)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return V[this.$L]},b.locale=function(_,w){if(!_)return this.$L;var y=this.clone(),T=Ee(_,w,!0);return T&&(y.$L=T),y},b.clone=function(){return O.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}(),lt=ae.prototype;return x.prototype=lt,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",l],["$M",d],["$y",p],["$D",v]].forEach(function(S){lt[S[1]]=function(b){return this.$g(b,S[0],S[1])}}),x.extend=function(S,b){return S.$i||(S(b,ae,x),S.$i=!0),x},x.locale=Ee,x.isDayjs=be,x.unix=function(S){return x(1e3*S)},x.en=V[X],x.Ls=V,x.p={},x})})(Ia);var Qu=Ia.exports;const Ku=$a(Qu),el=(e,t="DD/MM/YYYY")=>{const r=Ku(e);return r.isValid()?r.format(t):""},tl=(e,t)=>{window.postMessage({type:"Loyalty:RewardItemClicked",name:e,id:t},window.location.href)},rl=(e,t)=>{window.postMessage({type:"Loyalty:RedeemRewardRequested",name:e,id:t},window.location.href)},nl=e=>{window.postMessage({type:"Loyalty:RedeemRewardSuccess",itemId:e},window.location.href)},il=(e,t)=>{window.postMessage({type:"Loyalty:RedeemRewardFailed",itemId:e,res:t},window.location.href)},sl=()=>{window.dispatchEvent(new CustomEvent("redeemRewardButton"))};var al=function(t){return ol(t)&&!ul(t)};function ol(e){return!!e&&typeof e=="object"}function ul(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||hl(e)}var ll=typeof Symbol=="function"&&Symbol.for,fl=ll?Symbol.for("react.element"):60103;function hl(e){return e.$$typeof===fl}function cl(e){return Array.isArray(e)?[]:{}}function Br(e,t){return t.clone!==!1&&t.isMergeableObject(e)?hr(cl(e),e,t):e}function dl(e,t,r){return e.concat(t).map(function(n){return Br(n,r)})}function pl(e,t){if(!t.customMerge)return hr;var r=t.customMerge(e);return typeof r=="function"?r:hr}function vl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function rs(e){return Object.keys(e).concat(vl(e))}function Ba(e,t){try{return t in e}catch(r){return!1}}function ml(e,t){return Ba(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function gl(e,t,r){var n={};return r.isMergeableObject(e)&&rs(e).forEach(function(i){n[i]=Br(e[i],r)}),rs(t).forEach(function(i){ml(e,i)||(Ba(e,i)&&r.isMergeableObject(t[i])?n[i]=pl(i,r)(e[i],t[i],r):n[i]=Br(t[i],r))}),n}function hr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||dl,r.isMergeableObject=r.isMergeableObject||al,r.cloneUnlessOtherwiseSpecified=Br;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):gl(e,t,r):Br(t,r)}hr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return hr(n,i,r)},{})};var _l=hr,yl=_l;const bl=$a(yl);var pi=function(e,t){return pi=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])},pi(e,t)};function $n(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pi(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ye=function(){return Ye=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},Ye.apply(this,arguments)};function El(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 Vn(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 Xn(e,t){var r=t&&t.cache?t.cache:Ml,n=t&&t.serializer?t.serializer:Al,i=t&&t.strategy?t.strategy:Tl;return i(e,{cache:r,serializer:n})}function xl(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wl(e,t,r,n){var i=xl(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Ra(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 La(e,t,r,n,i){return r.bind(t,e,n,i)}function Tl(e,t){var r=e.length===1?wl:Ra;return La(e,this,r,t.cache.create(),t.serializer)}function Sl(e,t){return La(e,this,Ra,t.cache.create(),t.serializer)}var Al=function(){return JSON.stringify(arguments)},Hl=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}(),Ml={create:function(){return new Hl}},Wn={variadic:Sl},gn=function(){return gn=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},gn.apply(this,arguments)};var D;(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"})(D||(D={}));var q;(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"})(q||(q={}));var cr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(cr||(cr={}));function ns(e){return e.type===q.literal}function Ol(e){return e.type===q.argument}function Ca(e){return e.type===q.number}function Da(e){return e.type===q.date}function Ua(e){return e.type===q.time}function Fa(e){return e.type===q.select}function Ga(e){return e.type===q.plural}function Pl(e){return e.type===q.pound}function ka(e){return e.type===q.tag}function ja(e){return!!(e&&typeof e=="object"&&e.type===cr.number)}function vi(e){return!!(e&&typeof e=="object"&&e.type===cr.dateTime)}var Va=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Nl=/(?:[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 $l(e){var t={};return e.replace(Nl,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 Q=function(){return Q=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},Q.apply(this,arguments)};var Il=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Bl(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Il).filter(function(h){return h.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 d=f[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Rl(e){return e.replace(/^(.*?)-/,"")}var is=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Xa=/^(@+)?(\+|#+)?[rs]?$/g,Ll=/(\*)(0+)|(#+)(0+)|(0+)/g,Wa=/^(0+)$/;function ss(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Xa,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 Ya(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 Cl(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)),!Wa.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function as(e){var t={},r=Ya(e);return r||t}function Dl(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=Rl(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=Q(Q(Q({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return Q(Q({},u),as(l))},{}));continue;case"engineering":t=Q(Q(Q({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return Q(Q({},u),as(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(Ll,function(u,l,f,d,h,p){if(l)t.minimumIntegerDigits=f.length;else{if(d&&h)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(Wa.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(is.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(is,function(u,l,f,d,h,p){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=Q(Q({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=Q(Q({},t),ss(s)));continue}if(Xa.test(i.stem)){t=Q(Q({},t),ss(i.stem));continue}var o=Ya(i.stem);o&&(t=Q(Q({},t),o));var a=Cl(i.stem);a&&(t=Q(Q({},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 Ul(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=Fl(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 Fl(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 Yn,Gl=new RegExp("^".concat(Va.source,"*")),kl=new RegExp("".concat(Va.source,"*$"));function U(e,t){return{start:e,end:t}}var jl=!!String.prototype.startsWith&&"_a".startsWith("a",1),Vl=!!String.fromCodePoint,Xl=!!Object.fromEntries,Wl=!!String.prototype.codePointAt,Yl=!!String.prototype.trimStart,zl=!!String.prototype.trimEnd,ql=!!Number.isSafeInteger,Zl=ql?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mi=!0;try{var Jl=qa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");mi=((Yn=Jl.exec("a"))===null||Yn===void 0?void 0:Yn[0])==="a"}catch(e){mi=!1}var os=jl?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},gi=Vl?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},us=Xl?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},za=Wl?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}},Ql=Yl?function(t){return t.trimStart()}:function(t){return t.replace(Gl,"")},Kl=zl?function(t){return t.trimEnd()}:function(t){return t.replace(kl,"")};function qa(e,t){return new RegExp(e,t)}var _i;if(mi){var ls=qa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_i=function(t,r){var n;ls.lastIndex=r;var i=ls.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else _i=function(t,r){for(var n=[];;){var i=za(t,r);if(i===void 0||Za(i)||nf(i))break;n.push(i),r+=i>=65536?2:1}return gi.apply(void 0,n)};var ef=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:q.pound,location:U(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(D.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&yi(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:q.literal,value:"<".concat(i,"/>"),location:U(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()||!yi(this.char()))return this.error(D.INVALID_TAG,U(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(D.UNMATCHED_CLOSING_TAG,U(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:q.tag,value:i,children:o,location:U(n,this.clonePosition())},err:null}:this.error(D.INVALID_TAG,U(a,this.clonePosition())))}else return this.error(D.UNCLOSED_TAG,U(n,this.clonePosition()))}else return this.error(D.INVALID_TAG,U(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&rf(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=U(n,this.clonePosition());return{val:{type:q.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tf(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 gi.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(),gi(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,U(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(D.EMPTY_ARGUMENT,U(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(D.MALFORMED_ARGUMENT,U(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,U(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:q.argument,value:i,location:U(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,U(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(D.MALFORMED_ARGUMENT,U(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=U(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(D.EXPECT_ARGUMENT_TYPE,U(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=Kl(d.val);if(h.length===0)return this.error(D.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));var p=U(f,this.clonePosition());l={style:h,styleLocation:p}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var g=U(i,this.clonePosition());if(l&&os(l==null?void 0:l.style,"::",0)){var m=Ql(l.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(m,l.styleLocation);return d.err?d:{val:{type:q.number,value:n,location:g,style:d.val},err:null}}else{if(m.length===0)return this.error(D.EXPECT_DATE_TIME_SKELETON,g);var E=m;this.locale&&(E=Ul(m,this.locale));var h={type:cr.dateTime,pattern:E,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?$l(E):{}},R=a==="date"?q.date:q.time;return{val:{type:R,value:n,location:g,style:h},err:null}}}return{val:{type:a==="number"?q.number:a==="date"?q.date:q.time,value:n,location:g,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS,U(C,gn({},C)));this.bumpSpace();var Z=this.parseIdentifierIfPossible(),X=0;if(a!=="select"&&Z.value==="offset"){if(!this.bumpIf(":"))return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),Z=this.parseIdentifierIfPossible(),X=d.val}var V=this.tryParsePluralOrSelectOptions(t,a,r,Z);if(V.err)return V;var v=this.tryParseArgumentClose(i);if(v.err)return v;var ee=U(i,this.clonePosition());return a==="select"?{val:{type:q.select,value:n,options:us(V.val),location:ee},err:null}:{val:{type:q.plural,value:n,options:us(V.val),offset:X,pluralType:a==="plural"?"cardinal":"ordinal",location:ee},err:null}}default:return this.error(D.INVALID_ARGUMENT_TYPE,U(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,U(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(D.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(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=Bl(t)}catch(i){return this.error(D.INVALID_NUMBER_SKELETON,r)}return{val:{type:cr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Dl(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 d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR,D.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=U(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?D.DUPLICATE_SELECT_ARGUMENT_SELECTOR:D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,r,n);if(v.err)return v;var g=this.tryParseArgumentClose(p);if(g.err)return g;a.push([l,{value:v.val,location:U(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"?D.EXPECT_SELECT_ARGUMENT_SELECTOR:D.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(D.MISSING_OTHER_CLAUSE,U(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=U(i,this.clonePosition());return s?(o*=n,Zl(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=za(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(os(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()&&Za(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 yi(e){return e>=97&&e<=122||e>=65&&e<=90}function tf(e){return yi(e)||e===47}function rf(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 Za(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nf(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 bi(e){e.forEach(function(t){if(delete t.location,Fa(t)||Ga(t))for(var r in t.options)delete t.options[r].location,bi(t.options[r].value);else Ca(t)&&ja(t.style)||(Da(t)||Ua(t))&&vi(t.style)?delete t.style.location:ka(t)&&bi(t.children)})}function sf(e,t){t===void 0&&(t={}),t=gn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ef(e,t).parse();if(r.err){var n=SyntaxError(D[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||bi(r.val),r.val}var dr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(dr||(dr={}));var In=function(e){$n(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),fs=function(e){$n(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('", "'),'"'),dr.INVALID_VALUE,s)||this}return t}(In),af=function(e){$n(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),dr.INVALID_VALUE,i)||this}return t}(In),of=function(e){$n(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,'"'),dr.MISSING_VALUE,n)||this}return t}(In),he;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(he||(he={}));function uf(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==he.literal||r.type!==he.literal?t.push(r):n.value+=r.value,t},[])}function lf(e){return typeof e=="function"}function on(e,t,r,n,i,s,o){if(e.length===1&&ns(e[0]))return[{type:he.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var f=l[u];if(ns(f)){a.push({type:he.literal,value:f.value});continue}if(Pl(f)){typeof s=="number"&&a.push({type:he.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new of(d,o);var h=i[d];if(Ol(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?he.literal:he.object,value:h});continue}if(Da(f)){var p=typeof f.style=="string"?n.date[f.style]:vi(f.style)?f.style.parsedOptions:void 0;a.push({type:he.literal,value:r.getDateTimeFormat(t,p).format(h)});continue}if(Ua(f)){var p=typeof f.style=="string"?n.time[f.style]:vi(f.style)?f.style.parsedOptions:n.time.medium;a.push({type:he.literal,value:r.getDateTimeFormat(t,p).format(h)});continue}if(Ca(f)){var p=typeof f.style=="string"?n.number[f.style]:ja(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(h=h*(p.scale||1)),a.push({type:he.literal,value:r.getNumberFormat(t,p).format(h)});continue}if(ka(f)){var v=f.children,g=f.value,m=i[g];if(!lf(m))throw new af(g,"function",o);var E=on(v,t,r,n,i,s),R=m(E.map(function(X){return X.value}));Array.isArray(R)||(R=[R]),a.push.apply(a,R.map(function(X){return{type:typeof X=="string"?he.literal:he.object,value:X}}))}if(Fa(f)){var C=f.options[h]||f.options.other;if(!C)throw new fs(f.value,h,Object.keys(f.options),o);a.push.apply(a,on(C.value,t,r,n,i));continue}if(Ga(f)){var C=f.options["=".concat(h)];if(!C){if(!Intl.PluralRules)throw new In(`Intl.PluralRules is not available in this environment.
|
|
4
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
+
`,dr.MISSING_INTL_API,o);var Z=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));C=f.options[Z]||f.options.other}if(!C)throw new fs(f.value,h,Object.keys(f.options),o);a.push.apply(a,on(C.value,t,r,n,i,h-(f.offset||0)));continue}}return uf(a)}function ff(e,t){return t?Ye(Ye(Ye({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Ye(Ye({},e[n]),t[n]||{}),r},{})):e}function hf(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ff(e[n],t[n]),r},Ye({},e)):e}function zn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function cf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Xn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Vn([void 0],r,!1)))},{cache:zn(e.number),strategy:Wn.variadic}),getDateTimeFormat:Xn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Vn([void 0],r,!1)))},{cache:zn(e.dateTime),strategy:Wn.variadic}),getPluralRules:Xn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Vn([void 0],r,!1)))},{cache:zn(e.pluralRules),strategy:Wn.variadic})}}var df=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(d,h){return!d.length||h.type!==he.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return on(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=El(o,["formatters"]);this.ast=e.__parse(t,Ye(Ye({},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=hf(e.formats,n),this.formatters=i&&i.formatters||cf(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=sf,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 pf(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 gt={},vf=(e,t,r)=>r&&(t in gt||(gt[t]={}),e in gt[t]||(gt[t][e]=r),r),Ja=(e,t)=>{if(t==null)return;if(t in gt&&e in gt[t])return gt[t][e];const r=Bn(t);for(let n=0;n<r.length;n++){const i=r[n],s=gf(i,e);if(s)return vf(e,t,s)}};let Gi;const mr=On({});function mf(e){return Gi[e]||null}function Qa(e){return e in Gi}function gf(e,t){if(!Qa(e))return null;const r=mf(e);return pf(r,t)}function _f(e){if(e==null)return;const t=Bn(e);for(let r=0;r<t.length;r++){const n=t[r];if(Qa(n))return n}}function Ka(e,...t){delete gt[e],mr.update(r=>(r[e]=bl.all([r[e]||{},...t]),r))}vr([mr],([e])=>Object.keys(e));mr.subscribe(e=>Gi=e);const un={};function yf(e,t){un[e].delete(t),un[e].size===0&&delete un[e]}function eo(e){return un[e]}function bf(e){return Bn(e).map(t=>{const r=eo(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ei(e){return e==null?!1:Bn(e).some(t=>{var r;return(r=eo(t))==null?void 0:r.size})}function Ef(e,t){return Promise.all(t.map(n=>(yf(e,n),n().then(i=>i.default||i)))).then(n=>Ka(e,...n))}const Er={};function to(e){if(!Ei(e))return e in Er?Er[e]:Promise.resolve();const t=bf(e);return Er[e]=Promise.all(t.map(([r,n])=>Ef(r,n))).then(()=>{if(Ei(e))return to(e);delete Er[e]}),Er[e]}const xf={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"}}},wf={fallbackLocale:null,loadingDelay:200,formats:xf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Tf=wf;function pr(){return Tf}const qn=On(!1);var Sf=Object.defineProperty,Af=Object.defineProperties,Hf=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,Mf=Object.prototype.hasOwnProperty,Of=Object.prototype.propertyIsEnumerable,cs=(e,t,r)=>t in e?Sf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pf=(e,t)=>{for(var r in t||(t={}))Mf.call(t,r)&&cs(e,r,t[r]);if(hs)for(var r of hs(t))Of.call(t,r)&&cs(e,r,t[r]);return e},Nf=(e,t)=>Af(e,Hf(t));let xi;const _n=On(null);function ds(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Bn(e,t=pr().fallbackLocale){const r=ds(e);return t?[...new Set([...r,...ds(t)])]:r}function Ft(){return xi!=null?xi:void 0}_n.subscribe(e=>{xi=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const $f=e=>{if(e&&_f(e)&&Ei(e)){const{loadingDelay:t}=pr();let r;return typeof window!="undefined"&&Ft()!=null&&t?r=window.setTimeout(()=>qn.set(!0),t):qn.set(!0),to(e).then(()=>{_n.set(e)}).finally(()=>{clearTimeout(r),qn.set(!1)})}return _n.set(e)},bt=Nf(Pf({},_n),{set:$f}),Rn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var If=Object.defineProperty,yn=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,ps=(e,t,r)=>t in e?If(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ki=(e,t)=>{for(var r in t||(t={}))ro.call(t,r)&&ps(e,r,t[r]);if(yn)for(var r of yn(t))no.call(t,r)&&ps(e,r,t[r]);return e},gr=(e,t)=>{var r={};for(var n in e)ro.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&yn)for(var n of yn(e))t.indexOf(n)<0&&no.call(e,n)&&(r[n]=e[n]);return r};const Rr=(e,t)=>{const{formats:r}=pr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Bf=Rn(e=>{var t=e,{locale:r,format:n}=t,i=gr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Rr("number",n)),new Intl.NumberFormat(r,i)}),Rf=Rn(e=>{var t=e,{locale:r,format:n}=t,i=gr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Rr("date",n):Object.keys(i).length===0&&(i=Rr("date","short")),new Intl.DateTimeFormat(r,i)}),Lf=Rn(e=>{var t=e,{locale:r,format:n}=t,i=gr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Rr("time",n):Object.keys(i).length===0&&(i=Rr("time","short")),new Intl.DateTimeFormat(r,i)}),Cf=(e={})=>{var t=e,{locale:r=Ft()}=t,n=gr(t,["locale"]);return Bf(ki({locale:r},n))},Df=(e={})=>{var t=e,{locale:r=Ft()}=t,n=gr(t,["locale"]);return Rf(ki({locale:r},n))},Uf=(e={})=>{var t=e,{locale:r=Ft()}=t,n=gr(t,["locale"]);return Lf(ki({locale:r},n))},Ff=Rn((e,t=Ft())=>new df(e,t,pr().formats,{ignoreTag:pr().ignoreTag})),Gf=(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=Ja(e,u);if(!f)f=(s=(i=(n=(r=pr()).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 d=f;try{d=Ff(f,u).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},kf=(e,t)=>Uf(t).format(e),jf=(e,t)=>Df(t).format(e),Vf=(e,t)=>Cf(t).format(e),Xf=(e,t=Ft())=>Ja(e,t),io=vr([bt,mr],()=>Gf);vr([bt],()=>kf);vr([bt],()=>jf);vr([bt],()=>Vf);vr([bt,mr],()=>Xf);function so({withLocale:e,translations:t}){bt.subscribe(r=>{r==null&&(mr.set(t),bt.set(e))})}function ao(e,t){Ka(e,t)}function Wf(e){bt.set(e)}const Yf=e=>{let t=ue(void 0),r=ue(void 0),n=ue(void 0),i=ue(void 0),s=ue(!1),o=ue(void 0);const a=()=>Ke(exports,null,function*(){var p;const{apiEndpoint:u,userSession:l,locale:f,loadLevels:d,onLevelLoaded:h}=e();if(!(!u||!l)){te(s,!0),te(o,void 0);try{const v=[Gu({apiEndpoint:u,userSession:l,locale:f}).then(g=>{var E,R,C,Z,X,V;const m=g.level;m.name=((E=m.presentation)==null?void 0:E.displayName)||m.name,m.spendablePoints=((R=g.spendableWallet)==null?void 0:R.total.points)||0,te(t,m,!0),te(n,(C=g.loyaltyWallet)==null?void 0:C.total,!0),te(i,(Z=g.spendableWallet)==null?void 0:Z.total,!0),h==null||h({elevateLevel:m}),h==null||h({elevateLevelWalletTotal:(X=g.spendableWallet)==null?void 0:X.total,loyaltyWalletTotal:(V=g.loyaltyWallet)==null?void 0:V.total})})];d&&v.push(ku({apiEndpoint:u,userSession:l,locale:f}).then(g=>{te(r,g,!0)})),yield Promise.all(v),yield yu(),A(r)&&A(t)&&(h==null||h({calculatedLevelFlag:Zu(A(r),(p=A(t).loyaltyPoints)!=null?p:0)}))}catch(v){te(o,v,!0),console.error("Failed to load elevate info:",v)}finally{te(s,!1)}}});return $r(()=>{const{apiEndpoint:u,userSession:l,locale:f,loadLevels:d}=e();a()}),$r(()=>{const u=()=>{a()};return window.addEventListener("redeemRewardButton",u),()=>window.removeEventListener("redeemRewardButton",u)}),{get playerElevateLevel(){return A(t)},get levels(){return A(r)},get loyaltyWalletTotal(){return A(n)},get spendableWalletTotal(){return A(i)},get loading(){return A(s)},get error(){return A(o)},reload:a}},zf={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ő"}},Pr=10,qf=7,Zf=4;var Jf=Xr('<span class="loyalty-pagination__ellipsis svelte-1op0ean" aria-hidden="true">...</span>'),Qf=Xr('<button type="button"> </button>'),Kf=Xr('<div class="loyalty-pagination__pages svelte-1op0ean"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev svelte-1op0ean" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next svelte-1op0ean" type="button"> </button></div>'),eh=Xr('<div class="loyalty-pagination svelte-1op0ean"><!></div>');const th={hash:"svelte-1op0ean",code:`
|
|
6
|
+
@layer loyalty-pagination-component {.loyalty-pagination.svelte-1op0ean {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;box-sizing:border-box;width:100%;}
|
|
7
|
+
|
|
8
|
+
@media (min-width: 768px) {.loyalty-pagination.svelte-1op0ean {width:auto;margin-left:auto;justify-content:flex-end;padding-right:10px;}.loyalty-pagination__pages.svelte-1op0ean {justify-content:flex-end;}
|
|
9
|
+
}.loyalty-pagination__pages.svelte-1op0ean {display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;}.loyalty-pagination__ellipsis.svelte-1op0ean {display:inline-flex;align-items:center;justify-content:center;color:var(--text-default, #dfe3e8);font-size:13px;width:24px;}.loyalty-pagination__btn.svelte-1op0ean {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.svelte-1op0ean {background:var(--accent, #ffcc00);color:var(--text-on-color, #261d00);}.loyalty-pagination__btn.svelte-1op0ean:disabled {cursor:default;color:var(--text-muted, rgba(251, 251, 251, 0.15));}.loyalty-pagination__btn--prev.svelte-1op0ean,
|
|
10
|
+
.loyalty-pagination__btn--next.svelte-1op0ean {width:95px;}
|
|
11
|
+
|
|
12
|
+
@media (max-width: 767px) {.loyalty-pagination__btn--prev.svelte-1op0ean,
|
|
13
|
+
.loyalty-pagination__btn--next.svelte-1op0ean {width:90px;}
|
|
14
|
+
}.loyalty-pagination__btn--prev.svelte-1op0ean:not(:disabled),
|
|
15
|
+
.loyalty-pagination__btn--next.svelte-1op0ean:not(:disabled) {color:var(--text-default, #dfe3e8);}
|
|
16
|
+
}`};function ji(e,t){Hn(t,!0),Aa(e,th);const r=()=>Ds(io,"$_",n),[n,i]=Us(),s=Fe(t,"offset",7,0),o=Fe(t,"limit",7,Pr),a=Fe(t,"total",7,0),u=Fe(t,"onPageChange",7,x=>{}),l=Fe(t,"locale",7,"en");so({withLocale:l(),translations:{}}),Object.entries(zf).forEach(([x,O])=>{ao(x,O)}),$r(()=>{var x;Wf((x=l())!=null?x:"en")});const f=wt(()=>Number(s())||0),d=wt(()=>Number(o())||Pr),h=wt(()=>Number(a())||0),p=wt(()=>Math.max(1,Math.ceil(A(h)/Math.max(1,A(d))))),v=wt(()=>A(d)>0?Math.floor(A(f)/A(d)):0);let g=ue(!1);$r(()=>{const x=window.matchMedia("(max-width: 767px)"),O=ae=>{te(g,ae.matches,!0)};return te(g,x.matches,!0),x.addEventListener("change",O),()=>x.removeEventListener("change",O)});const m=(x,O,ae)=>x<=(ae?Zf:qf)?Array.from({length:x},(_,w)=>w):O<=1||O>=x-2?[0,1,"ellipsis",x-2,x-1]:[0,"ellipsis",O,"ellipsis",x-1],E=wt(()=>m(A(p),A(v),A(g))),R=x=>u()(x*A(d)),C=()=>u()(Math.max(0,A(v)-1)*A(d)),Z=()=>u()(Math.min(A(p)-1,A(v)+1)*A(d));var X={get offset(){return s()},set offset(x=0){s(x),Se()},get limit(){return o()},set limit(x=Pr){o(x),Se()},get total(){return a()},set total(x=0){a(x),Se()},get onPageChange(){return u()},set onPageChange(x=O=>{}){u(x),Se()},get locale(){return l()},set locale(x="en"){l(x),Se()}},V=eh(),ee=Wt(V);{var be=x=>{var O=Kf(),ae=Wt(O),lt=Wt(ae,!0);Vt(ae);var S=ui(ae,2);Sa(S,17,()=>A(E),Ta,(w,y)=>{var T=Ea(),H=ra(T);{var k=W=>{var Y=Jf();Tt(W,Y)},J=W=>{var Y=Qf();let le;var ft=Wt(Y,!0);Vt(Y),li(()=>{le=Ha(Y,1,"loyalty-pagination__btn svelte-1op0ean",null,le,{"loyalty-pagination__btn--active":A(y)===A(v)}),sn(ft,A(y)+1)}),nn("click",Y,()=>R(A(y))),Tt(W,Y)};ci(H,W=>{A(y)==="ellipsis"?W(k):W(J,-1)})}Tt(w,T)});var b=ui(S,2),_=Wt(b,!0);Vt(b),Vt(O),li((w,y)=>{ae.disabled=A(v)<=0,sn(lt,w),b.disabled=A(v)>=A(p)-1,sn(_,y)},[()=>r()("prev"),()=>r()("next")]),nn("click",ae,C),nn("click",b,Z),Tt(x,O)};ci(ee,x=>{A(p)>1&&x(be)})}Vt(V),Tt(e,V);var Ee=Mn(X);return i(),Ee}ba(["click"]);Fi(ji,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[],{mode:"open"});function oo(e,t){Hn(t,!0);let r=Fe(t,"offset",7,0),n=Fe(t,"limit",7,Pr),i=Fe(t,"total",7,0),s=Fe(t,"onPageChange"),o=Fe(t,"locale",7,"en");var a={get offset(){return r()},set offset(u=0){r(u),Se()},get limit(){return n()},set limit(u=Pr){n(u),Se()},get total(){return i()},set total(u=0){i(u),Se()},get onPageChange(){return s()},set onPageChange(u){s(u),Se()},get locale(){return o()},set locale(u="en"){o(u),Se()}};return ji(e,{get offset(){return r()},get limit(){return n()},get total(){return i()},get onPageChange(){return s()},get locale(){return o()}}),Mn(a)}customElements.define("loyalty-pagination",Fi(oo,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[]));const rh=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"}));exports.$format=io;exports.DATE_FORMATS=Wu;exports.EVENT_TYPES=ju;exports.ITEMS_LIMIT_DEFAULT=Pa;exports.LoyaltyPagination=ji;exports.LoyaltyPagination_ce=rh;exports.MOBILE_LOAD_ITEMS=Xu;exports.SOURCE=Vu;exports.addNewMessages=ao;exports.append=Tt;exports.append_styles=Aa;exports.bind_this=Cu;exports.child=Wt;exports.comment=Ea;exports.createElevateData=Yf;exports.create_custom_element=Fi;exports.delegate=ba;exports.delegated=nn;exports.dispatchRedeemRewardButton=sl;exports.each=Sa;exports.fetchShopItem=zu;exports.fetchShopRewards=Yu;exports.first_child=ra;exports.flushSync=Se;exports.formatDate=el;exports.from_html=Xr;exports.get=A;exports.if_block=ci;exports.index=Ta;exports.pop=Mn;exports.prop=Fe;exports.proxy=zt;exports.push=Hn;exports.redeemReward=qu;exports.reset=Vt;exports.sendRedeemRewardFailed=il;exports.sendRedeemRewardRequested=rl;exports.sendRedeemRewardSuccess=nl;exports.sendRewardItemClicked=tl;exports.set=te;exports.set_attribute=Bu;exports.set_class=Ha;exports.set_text=sn;exports.setupI18n=so;exports.setup_stores=Us;exports.sibling=ui;exports.state=ue;exports.store_get=Ds;exports.template_effect=li;exports.user_derived=wt;exports.user_effect=$r;exports.user_pre_effect=hu;
|