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