@everymatrix/tournament-details-page 0.1.11 → 0.1.13
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/{TournamentDetails-C_f9o603.js → TournamentDetails-BVnS_IYF.js} +247 -666
- package/components/TournamentDetails-BoaqYHo1.cjs +3 -0
- package/components/TournamentDetails-CYrQWwZn.cjs +3 -0
- package/components/{TournamentDetails-HtQSmioM.js → TournamentDetails-hOUvqDF2.js} +250 -669
- package/components/TournamentDetailsPage-BgoG6goQ.cjs +36 -0
- package/components/{TournamentDetailsPage-Bd3xnU6b.js → TournamentDetailsPage-DcS7Pa0U.js} +338 -434
- package/components/{TournamentDetailsPage-Wc_qqtHS.js → TournamentDetailsPage-LxAzPvhv.js} +351 -402
- package/components/TournamentDetailsPage-WnIR1yO-.cjs +36 -0
- package/components/{TournamentGames-DqePP6sz.js → TournamentGames-B5Vr9KT7.js} +484 -468
- package/components/{TournamentGames-n3vpJ0SA.js → TournamentGames-Bgha2ST9.js} +448 -432
- package/components/TournamentGames-DXcN8tkz.cjs +51 -0
- package/components/TournamentGames-DpOh7T_F.cjs +51 -0
- package/components/TournamentLeaderboard-8MMMRNQy.cjs +46 -0
- package/components/TournamentLeaderboard-C_Ne8wC4.js +7718 -0
- package/components/TournamentLeaderboard-DpfSasWx.cjs +46 -0
- package/components/TournamentLeaderboard-cxKLflDm.js +7614 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/TournamentDetails-CNV6FJFf.cjs +0 -3
- package/components/TournamentDetails-h5LnXQfE.cjs +0 -3
- package/components/TournamentDetailsPage-6yyclmUS.cjs +0 -44
- package/components/TournamentDetailsPage-DEsqiKjD.cjs +0 -44
- package/components/TournamentGames-CVFiICNX.cjs +0 -51
- package/components/TournamentGames-Chs_XOxu.cjs +0 -51
- package/components/TournamentLeaderboard-B_9ojgZo.js +0 -7455
- package/components/TournamentLeaderboard-CJLCAutr.cjs +0 -38
- package/components/TournamentLeaderboard-CP3IAn1u.js +0 -7557
- package/components/TournamentLeaderboard-Dz-5i1SK.cjs +0 -38
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var tl=Object.defineProperty,rl=Object.defineProperties;var nl=Object.getOwnPropertyDescriptors;var Cs=Object.getOwnPropertySymbols;var il=Object.prototype.hasOwnProperty,sl=Object.prototype.propertyIsEnumerable;var Ls=e=>{throw TypeError(e)};var Ri=(e,t,r)=>t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$n=(e,t)=>{for(var r in t||(t={}))il.call(t,r)&&Ri(e,r,t[r]);if(Cs)for(var r of Cs(t))sl.call(t,r)&&Ri(e,r,t[r]);return e},kn=(e,t)=>rl(e,nl(t));var ue=(e,t,r)=>Ri(e,typeof t!="symbol"?t+"":t,r),Bi=(e,t,r)=>t.has(e)||Ls("Cannot "+r);var h=(e,t,r)=>(Bi(e,t,"read from private field"),r?r.call(e):t.get(e)),C=(e,t,r)=>t.has(e)?Ls("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),O=(e,t,r,n)=>(Bi(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),z=(e,t,r)=>(Bi(e,t,"access private method"),r);var Is=(e,t,r)=>new Promise((n,i)=>{var s=l=>{try{o(r.next(l))}catch(u){i(u)}},a=l=>{try{o(r.throw(l))}catch(u){i(u)}},o=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,a);o((r=r.apply(e,t)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const ol="5";var ho,co,vo;typeof window!="undefined"&&((vo=(co=(ho=window.__svelte)!=null?ho:window.__svelte={}).v)!=null?vo:co.v=new Set).add(ol);const al=1,ll=2,mo=4,ul=8,fl=16,hl=1,cl=2,_o="[",vs="[!",Ms="[?",ps="]",_r={},xe=Symbol("uninitialized"),bo="http://www.w3.org/1999/xhtml",dl="http://www.w3.org/2000/svg",vl="http://www.w3.org/1998/Math/MathML",yo=!1;var Eo=Array.isArray,pl=Array.prototype.indexOf,ti=Array.prototype.includes,gi=Array.from,ri=Object.keys,yn=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,gl=Object.getOwnPropertyDescriptors,ml=Object.prototype,_l=Array.prototype,wo=Object.getPrototypeOf,Ds=Object.isExtensible;const Xt=()=>{};function xo(e){for(var t=0;t<e.length;t++)e[t]()}function To(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Ne=2,jr=4,On=8,So=1<<24,xt=16,gt=32,Mt=64,ji=128,vt=512,Se=1024,ye=2048,St=4096,Ue=8192,it=16384,Er=32768,$s=1<<25,Vr=65536,ni=1<<17,bl=1<<18,wr=1<<19,Ao=1<<20,It=1<<25,br=65536,ii=1<<21,Ir=1<<22,er=1<<23,Ci=Symbol("$state"),yl=Symbol("legacy props"),El=Symbol(""),Gn=Symbol("attributes"),Vi=Symbol("class"),Xi=Symbol("style"),cn=Symbol("text"),Rn=new class extends Error{constructor(){super(...arguments);ue(this,"name","StaleReactionError");ue(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var po;const wl=!!((po=globalThis.document)!=null&&po.contentType)&&globalThis.document.contentType.includes("xml"),Bn=3,Kr=8;function Po(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function xl(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Tl(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Sl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Al(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Pl(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Hl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nl(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ol(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Rl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Bl(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Cl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ll(){console.warn("https://svelte.dev/e/derived_inert")}function Cn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Il(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let j=!1;function Vt(e){j=e}let D;function Be(e){if(e===null)throw Cn(),_r;return D=e}function Xr(){return Be(Pt(D))}function k(e){if(j){if(Pt(D)!==null)throw Cn(),_r;D=e}}function gs(e=1){if(j){for(var t=e,r=D;t--;)r=Pt(r);D=r}}function si(e=!0){for(var t=0,r=D;;){if(r.nodeType===Kr){var n=r.data;if(n===ps){if(t===0)return r;t-=1}else(n===_o||n===vs||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Pt(r);e&&r.remove(),r=i}}function Ho(e){if(!e||e.nodeType!==Kr)throw Cn(),_r;return e.data}function No(e){return e===this.v}function Oo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ro(e){return!Oo(e,this.v)}let Ml=!1,Ie=null;function zr(e){Ie=e}function mi(e,t=!1,r){Ie={p:Ie,i:!1,c:null,e:null,s:e,x:null,r:$,l:null}}function _i(e){var t=Ie,r=t.e;if(r!==null){t.e=null;for(var n of r)sa(n)}return e!==void 0&&(t.x=e),t.i=!0,Ie=t.p,e!=null?e:{}}function Bo(){return!0}let or=[];function Co(){var e=or;or=[],xo(e)}function vr(e){if(or.length===0&&!_n){var t=or;queueMicrotask(()=>{t===or&&Co()})}or.push(e)}function Dl(){for(;or.length>0;)Co()}function Lo(e){var t=$;if(t===null)return F.f|=er,e;if(!(t.f&Er)&&!(t.f&jr))throw e;Qt(e,t)}function Qt(e,t){if(!(t!==null&&t.f&it)){for(;t!==null;){if(t.f&ji){if(!(t.f&Er))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}const $l=-7169;function pe(e,t){e.f=e.f&$l|t}function ms(e){e.f&vt||e.deps===null?pe(e,Se):pe(e,St)}function Io(e){if(e!==null)for(const t of e)!(t.f&Ne)||!(t.f&br)||(t.f^=br,Io(t.deps))}function Mo(e,t,r){e.f&ye?t.add(e):e.f&St&&r.add(e),Io(e.deps),pe(e,Se)}function _s(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Xt;const n=Ti(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Pr=[];function kl(e,t){return{subscribe:bi(e,t).subscribe}}function bi(e,t=Xt){let r=null;const n=new Set;function i(o){if(Oo(e,o)&&(e=o,r)){const l=!Pr.length;for(const u of n)u[1](),Pr.push(u,e);if(l){for(let u=0;u<Pr.length;u+=2)Pr[u][0](Pr[u+1]);Pr.length=0}}}function s(o){i(o(e))}function a(o,l=Xt){const u=[o,l];return n.add(u),n.size===1&&(r=t(i,s)||Xt),o(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function en(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 kl(r,(a,o)=>{let l=!1;const u=[];let f=0,v=Xt;const c=()=>{if(f)return;v();const g=t(n?u[0]:u,a,o);s?a(g):v=typeof g=="function"?g:Xt},p=i.map((g,b)=>_s(g,_=>{u[b]=_,f&=~(1<<b),l&&c()},()=>{f|=1<<b}));return l=!0,c(),function(){xo(p),v(),l=!1}})}function Fl(e){let t;return _s(e,r=>t=r)(),t}let zi=Symbol("unmounted");function Do(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:ws(void 0),unsubscribe:Xt};if(n.store!==e&&!(zi in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=Xt;else{var i=!0;n.unsubscribe=_s(e,a=>{i?n.source.v=a:oe(n.source,a)}),i=!1}return e&&zi in r?Fl(e):w(n.source)}function $o(){const e={};function t(){ia(()=>{for(var r in e)e[r].unsubscribe();yn(e,zi,{enumerable:!1,value:!0})})}return[e,t]}function yi(e){var t=F,r=$;mt(null),Dt(null);try{return e()}finally{mt(t),Dt(r)}}function Ul(e){let t=0,r=yr(0),n;return()=>{xs()&&(w(r),aa(()=>(t===0&&(n=Ti(()=>e(()=>bn(r)))),t+=1,()=>{vr(()=>{t-=1,t===0&&(n==null||n(),n=void 0,bn(r))})})))}}var Gl=Vr|wr;function jl(e,t,r,n){new Vl(e,t,r,n)}var tt,Tn,ut,ur,We,ft,$e,rt,kt,fr,Yt,Mr,Sn,An,Ft,di,ae,ko,Fo,Uo,Wi,jn,Vn,qi,Zi;class Vl{constructor(t,r,n,i){C(this,ae);ue(this,"parent");ue(this,"is_pending",!1);ue(this,"transform_error");C(this,tt);C(this,Tn,j?D:null);C(this,ut);C(this,ur);C(this,We);C(this,ft,null);C(this,$e,null);C(this,rt,null);C(this,kt,null);C(this,fr,0);C(this,Yt,0);C(this,Mr,!1);C(this,Sn,new Set);C(this,An,new Set);C(this,Ft,null);C(this,di,Ul(()=>(O(this,Ft,yr(h(this,fr))),()=>{O(this,Ft,null)})));var s,a;O(this,tt,t),O(this,ut,r),O(this,ur,o=>{var l=$;l.b=this,l.f|=ji,n(o)}),this.parent=$.b,this.transform_error=(a=i!=null?i:(s=this.parent)==null?void 0:s.transform_error)!=null?a:o=>o,O(this,We,Ts(()=>{if(j){const o=h(this,Tn);Xr();const l=o.data===vs;if(o.data.startsWith(Ms)){const f=JSON.parse(o.data.slice(Ms.length));z(this,ae,Fo).call(this,f)}else l?z(this,ae,Uo).call(this):z(this,ae,ko).call(this)}else z(this,ae,Wi).call(this)},Gl)),j&&O(this,tt,D)}defer_effect(t){Mo(t,h(this,Sn),h(this,An))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!h(this,ut).pending}update_pending_count(t,r){z(this,ae,qi).call(this,t,r),O(this,fr,h(this,fr)+t),!(!h(this,Ft)||h(this,Mr))&&(O(this,Mr,!0),vr(()=>{O(this,Mr,!1),h(this,Ft)&&Wr(h(this,Ft),h(this,fr))}))}get_effect_pending(){return h(this,di).call(this),w(h(this,Ft))}error(t){if(!h(this,ut).onerror&&!h(this,ut).failed)throw t;B!=null&&B.is_fork?(h(this,ft)&&B.skip_effect(h(this,ft)),h(this,$e)&&B.skip_effect(h(this,$e)),h(this,rt)&&B.skip_effect(h(this,rt)),B.oncommit(()=>{z(this,ae,Zi).call(this,t)})):z(this,ae,Zi).call(this,t)}}tt=new WeakMap,Tn=new WeakMap,ut=new WeakMap,ur=new WeakMap,We=new WeakMap,ft=new WeakMap,$e=new WeakMap,rt=new WeakMap,kt=new WeakMap,fr=new WeakMap,Yt=new WeakMap,Mr=new WeakMap,Sn=new WeakMap,An=new WeakMap,Ft=new WeakMap,di=new WeakMap,ae=new WeakSet,ko=function(){try{O(this,ft,ct(()=>h(this,ur).call(this,h(this,tt))))}catch(t){this.error(t)}},Fo=function(t){const r=h(this,ut).failed;r&&O(this,rt,ct(()=>{r(h(this,tt),()=>t,()=>()=>{})}))},Uo=function(){const t=h(this,ut).pending;t&&(this.is_pending=!0,O(this,$e,ct(()=>t(h(this,tt)))),vr(()=>{var r=O(this,kt,document.createDocumentFragment()),n=Ye();r.append(n),O(this,ft,z(this,ae,Vn).call(this,()=>ct(()=>h(this,ur).call(this,n)))),h(this,Yt)===0&&(h(this,tt).before(r),O(this,kt,null),gr(h(this,$e),()=>{O(this,$e,null)}),z(this,ae,jn).call(this,B))}))},Wi=function(){try{if(this.is_pending=this.has_pending_snippet(),O(this,Yt,0),O(this,fr,0),O(this,ft,ct(()=>{h(this,ur).call(this,h(this,tt))})),h(this,Yt)>0){var t=O(this,kt,document.createDocumentFragment());As(h(this,ft),t);const r=h(this,ut).pending;O(this,$e,ct(()=>r(h(this,tt))))}else z(this,ae,jn).call(this,B)}catch(r){this.error(r)}},jn=function(t){this.is_pending=!1,t.transfer_effects(h(this,Sn),h(this,An))},Vn=function(t){var r=$,n=F,i=Ie;Dt(h(this,We)),mt(h(this,We)),zr(h(this,We).ctx);try{return tr.ensure(),t()}catch(s){return Lo(s),null}finally{Dt(r),mt(n),zr(i)}},qi=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&z(n=this.parent,ae,qi).call(n,t,r);return}O(this,Yt,h(this,Yt)+t),h(this,Yt)===0&&(z(this,ae,jn).call(this,r),h(this,$e)&&gr(h(this,$e),()=>{O(this,$e,null)}),h(this,kt)&&(h(this,tt).before(h(this,kt)),O(this,kt,null)))},Zi=function(t){h(this,ft)&&(Ge(h(this,ft)),O(this,ft,null)),h(this,$e)&&(Ge(h(this,$e)),O(this,$e,null)),h(this,rt)&&(Ge(h(this,rt)),O(this,rt,null)),j&&(Be(h(this,Tn)),gs(),Be(si()));var r=h(this,ut).onerror;let n=h(this,ut).failed;var i=!1,s=!1;const a=()=>{if(i){Il();return}i=!0,s&&Cl(),h(this,rt)!==null&&gr(h(this,rt),()=>{O(this,rt,null)}),z(this,ae,Vn).call(this,()=>{z(this,ae,Wi).call(this)})},o=l=>{try{s=!0,r==null||r(l,a),s=!1}catch(u){Qt(u,h(this,We)&&h(this,We).parent)}n&&O(this,rt,z(this,ae,Vn).call(this,()=>{try{return ct(()=>{var u=$;u.b=this,u.f|=ji,n(h(this,tt),()=>l,()=>a)})}catch(u){return Qt(u,h(this,We).parent),null}}))};vr(()=>{var l;try{l=this.transform_error(t)}catch(u){Qt(u,h(this,We)&&h(this,We).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(o,u=>Qt(u,h(this,We)&&h(this,We).parent)):o(l)})};function Xl(e,t,r,n){const i=Ei;var s=e.filter(p=>!p.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=$,l=zl(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(p=>p.promise)):null;function f(p){if(!(o.f&it)){l();try{n([...a,...p])}catch(g){Qt(g,o)}oi()}}var v=Go();if(r.length===0){u.then(()=>f([])).finally(v);return}function c(){Promise.all(r.map(p=>Wl(p))).then(f).catch(p=>Qt(p,o)).finally(v)}u?u.then(()=>{l(),c(),oi()}):c()}function zl(){var e=$,t=F,r=Ie,n=B;return function(s=!0){Dt(e),mt(t),zr(r),s&&!(e.f&it)&&(n==null||n.activate(),n==null||n.apply())}}function oi(e=!0){Dt(null),mt(null),zr(null),e&&(B==null||B.deactivate())}function Go(){var e=$,t=e.b,r=B,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 Ei(e){var t=Ne|ye;return $!==null&&($.f|=wr),{ctx:Ie,deps:null,effects:null,equals:No,f:t,fn:e,reactions:null,rv:0,v:xe,wv:0,parent:$,ac:null}}const dn=Symbol("obsolete");function Wl(e,t,r){let n=$;n===null&&xl();var i=void 0,s=yr(xe),a=!F,o=new Set;return su(()=>{var p,g;var l=$,u=To();i=u.promise;try{Promise.resolve(e()).then(u.resolve,b=>{b!==Rn&&u.reject(b)}).finally(oi)}catch(b){u.reject(b),oi()}var f=B;if(a){if(l.f&Er)var v=Go();if((p=n.b)!=null&&p.is_rendered())(g=f.async_deriveds.get(l))==null||g.reject(dn);else for(const b of o.values())b.reject(dn);o.add(u),f.async_deriveds.set(l,u)}const c=(b,_=void 0)=>{v==null||v(),o.delete(u),_!==dn&&(f.activate(),_?(s.f|=er,Wr(s,_)):(s.f&er&&(s.f^=er),Wr(s,b)),f.deactivate())};u.promise.then(c,b=>c(null,b||"unknown"))}),ia(()=>{for(const l of o)l.reject(dn)}),new Promise(l=>{function u(f){function v(){f===i?l(s):u(i)}f.then(v,v)}u(i)})}function Xn(e){const t=Ei(e);return da(t),t}function ql(e){const t=Ei(e);return t.equals=Ro,t}function Zl(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ge(t[r])}}function bs(e){var t,r=$,n=e.parent;if(!zt&&n!==null&&e.v!==xe&&n.f&(it|Ue))return Ll(),e.v;Dt(n);try{e.f&=~br,Zl(e),t=ma(e)}finally{Dt(r)}return t}function jo(e){var t=bs(e);if(!e.equals(t)&&(e.wv=pa(),(!(B!=null&&B.is_fork)||e.deps===null)&&(B!==null?(B.capture(e,t,!0),mn==null||mn.capture(e,t,!0)):e.v=t,e.deps===null))){pe(e,Se);return}zt||(Re!==null?(xs()||B!=null&&B.is_fork)&&Re.set(e,t):ms(e))}function Yl(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&&yi(()=>{r.ac.abort(Rn),r.ac=null}),r.fn!==null&&(r.teardown=Xt),En(r,0),Ss(r))}function Vo(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&qr(t)}let Li=null,Hr=null,B=null,mn=null,Re=null,Yi=null,_n=!1,Ii=!1,Br=null,zn=null;var ks=0;let Jl=1;var Dr,Jt,hr,$r,kr,Fr,Ut,Ur,qe,Pn,Gt,Et,Bt,Gr,cr,K,Ji,vn,Qi,Xo,zo,Or,Ql,pn;const vi=class vi{constructor(){C(this,K);ue(this,"id",Jl++);C(this,Dr,!1);ue(this,"linked",!0);C(this,Jt,null);C(this,hr,null);ue(this,"async_deriveds",new Map);ue(this,"current",new Map);ue(this,"previous",new Map);C(this,$r,new Set);C(this,kr,new Set);C(this,Fr,0);C(this,Ut,new Map);C(this,Ur,null);C(this,qe,[]);C(this,Pn,[]);C(this,Gt,new Set);C(this,Et,new Set);C(this,Bt,new Map);C(this,Gr,new Set);ue(this,"is_fork",!1);C(this,cr,!1);Hr===null?Li=Hr=this:(O(Hr,hr,this),O(this,Jt,Hr)),Hr=this}skip_effect(t){h(this,Bt).has(t)||h(this,Bt).set(t,{d:[],m:[]}),h(this,Gr).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=h(this,Bt).get(t);if(n){h(this,Bt).delete(t);for(var i of n.d)pe(i,ye),r(i);for(i of n.m)pe(i,St),r(i)}h(this,Gr).add(t)}capture(t,r,n=!1){t.v!==xe&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&er||(this.current.set(t,[r,n]),Re==null||Re.set(t,r)),this.is_fork||(t.v=r)}activate(){B=this}deactivate(){B=null,Re=null}flush(){try{Ii=!0,B=this,z(this,K,vn).call(this)}finally{ks=0,Yi=null,Br=null,zn=null,Ii=!1,B=null,Re=null,pr.clear()}}discard(){var t;for(const r of h(this,kr))r(this);h(this,kr).clear();for(const r of this.async_deriveds.values())r.reject(dn);z(this,K,pn).call(this),(t=h(this,Ur))==null||t.resolve()}register_created_effect(t){h(this,Pn).push(t)}increment(t,r){var n;if(O(this,Fr,h(this,Fr)+1),t){let i=(n=h(this,Ut).get(r))!=null?n:0;h(this,Ut).set(r,i+1)}}decrement(t,r){var n;if(O(this,Fr,h(this,Fr)-1),t){let i=(n=h(this,Ut).get(r))!=null?n:0;i===1?h(this,Ut).delete(r):h(this,Ut).set(r,i-1)}h(this,cr)||(O(this,cr,!0),vr(()=>{O(this,cr,!1),this.linked&&this.flush()}))}transfer_effects(t,r){for(const n of t)h(this,Gt).add(n);for(const n of r)h(this,Et).add(n);t.clear(),r.clear()}oncommit(t){h(this,$r).add(t)}ondiscard(t){h(this,kr).add(t)}settled(){var t;return((t=h(this,Ur))!=null?t:O(this,Ur,To())).promise}static ensure(){if(B===null){const t=B=new vi;!Ii&&!_n&&vr(()=>{h(t,Dr)||t.flush()})}return B}apply(){{Re=null;return}}schedule(t){var i;if(Yi=t,(i=t.b)!=null&&i.is_pending&&t.f&(jr|On|So)&&!(t.f&Er)){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Br!==null&&r===$&&(F===null||!(F.f&Ne)))return;if(n&(Mt|gt)){if(!(n&Se))return;r.f^=Se}}h(this,qe).push(r)}};Dr=new WeakMap,Jt=new WeakMap,hr=new WeakMap,$r=new WeakMap,kr=new WeakMap,Fr=new WeakMap,Ut=new WeakMap,Ur=new WeakMap,qe=new WeakMap,Pn=new WeakMap,Gt=new WeakMap,Et=new WeakMap,Bt=new WeakMap,Gr=new WeakMap,cr=new WeakMap,K=new WeakSet,Ji=function(){if(this.is_fork)return!0;for(const n of h(this,Ut).keys()){for(var t=n,r=!1;t.parent!==null;){if(h(this,Bt).has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1},vn=function(){var l,u,f,v;O(this,Dr,!0),ks++>1e3&&(z(this,K,pn).call(this),Kl());for(const c of h(this,Gt))h(this,Et).delete(c),pe(c,ye),this.schedule(c);for(const c of h(this,Et))pe(c,St),this.schedule(c);const t=h(this,qe);O(this,qe,[]),this.apply();var r=Br=[],n=[],i=zn=[];for(const c of t)try{z(this,K,Qi).call(this,c,r,n)}catch(p){throw Zo(c),z(this,K,Ji).call(this)||this.discard(),p}if(B=null,i.length>0){var s=vi.ensure();for(const c of i)s.schedule(c)}if(Br=null,zn=null,z(this,K,Ji).call(this)){z(this,K,Or).call(this,n),z(this,K,Or).call(this,r);for(const[c,p]of h(this,Bt))qo(c,p);i.length>0&&z(l=B,K,vn).call(l);return}const a=z(this,K,Xo).call(this);if(a){z(this,K,Or).call(this,n),z(this,K,Or).call(this,r),z(u=a,K,zo).call(u,this);return}h(this,Gt).clear(),h(this,Et).clear();for(const c of h(this,$r))c(this);h(this,$r).clear(),mn=this,Fs(n),Fs(r),mn=null,(f=h(this,Ur))==null||f.resolve();var o=B;if(h(this,Fr)===0&&(h(this,qe).length===0||o!==null)&&z(this,K,pn).call(this),h(this,qe).length>0)if(o!==null){const c=o;h(c,qe).push(...h(this,qe).filter(p=>!h(c,qe).includes(p)))}else o=this;o!==null&&z(v=o,K,vn).call(v)},Qi=function(t,r,n){t.f^=Se;for(var i=t.first;i!==null;){var s=i.f,a=(s&(gt|Mt))!==0,o=a&&(s&Se)!==0,l=o||(s&Ue)!==0||h(this,Bt).has(i);if(!l&&i.fn!==null){a?i.f^=Se:s&jr?r.push(i):Ln(i)&&(s&xt&&h(this,Et).add(i),qr(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},Xo=function(){for(var t=h(this,Jt);t!==null;){if(!t.is_fork){for(const[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=h(t,Jt)}return null},zo=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 a=this.async_deriveds.get(i);a&&s.promise.then(a.resolve).catch(a.reject)}t.async_deriveds.clear(),this.transfer_effects(h(t,Gt),h(t,Et));const r=i=>{var s=i.reactions;if(s!==null&&!(i.f&Ne&&!(i.f&(ye|St))))for(const l of s){var a=l.f;if(a&Ne)r(l);else{var o=l;a&(Ir|xt)&&!this.async_deriveds.has(o)&&(h(this,Et).delete(o),pe(o,ye),this.schedule(o))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),z(n=t,K,pn).call(n),B=this,z(this,K,vn).call(this)},Or=function(t){for(var r=0;r<t.length;r+=1)Mo(t[r],h(this,Gt),h(this,Et))},Ql=function(){var v;for(let c=Li;c!==null;c=h(c,hr)){var t=c.id<this.id,r=[];for(const[p,[g,b]]of this.current){if(c.current.has(p)){var n=c.current.get(p)[0];if(t&&g!==n)c.current.set(p,[g,b]);else continue}r.push(p)}if(t)for(const[p,g]of this.async_deriveds){const b=c.async_deriveds.get(p);b&&g.promise.then(b.resolve).catch(b.reject)}var i=[...c.current.keys()].filter(p=>!c.current.get(p)[1]);if(!(!h(c,Dr)||i.length===0)){var s=i.filter(p=>!this.current.has(p));if(s.length===0)t&&c.discard();else if(r.length>0){if(t)for(const p of h(this,Gr))c.unskip_effect(p,g=>{var b;g.f&(xt|Ir)?c.schedule(g):z(b=c,K,Or).call(b,[g])});c.activate();var a=new Set,o=new Map;for(var l of r)Wo(l,s,a,o);o=new Map;var u=[...c.current].filter(([p,g])=>{const b=this.current.get(p);return b?b[0]!==g[0]||b[1]!==g[1]:!0}).map(([p])=>p);if(u.length>0)for(const p of h(this,Pn))!(p.f&(it|Ue|ni))&&ys(p,u,o)&&(p.f&(Ir|xt)?(pe(p,ye),c.schedule(p)):h(c,Gt).add(p));if(h(c,qe).length>0&&!h(c,cr)){c.apply();for(var f of h(c,qe))z(v=c,K,Qi).call(v,f,[],[]);O(c,qe,[])}c.deactivate()}}}},pn=function(){if(this.linked){var t=h(this,Jt),r=h(this,hr);t===null?Li=r:O(t,hr,r),r===null?Hr=t:O(r,Jt,t),this.linked=!1}};let tr=vi;function Le(e){var t=_n;_n=!0;try{for(var r;;){if(Dl(),B===null)return r;B.flush()}}finally{_n=t}}function Kl(){try{Hl()}catch(e){Qt(e,Yi)}}let yt=null;function Fs(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(it|Ue))&&Ln(n)&&(yt=new Set,qr(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&fa(n),(yt==null?void 0:yt.size)>0)){pr.clear();for(const i of yt){if(i.f&(it|Ue))continue;const s=[i];let a=i.parent;for(;a!==null;)yt.has(a)&&(yt.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const l=s[o];l.f&(it|Ue)||qr(l)}}yt.clear()}}yt=null}}function Wo(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&Ne?Wo(i,t,r,n):s&(Ir|xt)&&!(s&ye)&&ys(i,t,n)&&(pe(i,ye),Es(i))}}function ys(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(ti.call(t,i))return!0;if(i.f&Ne&&ys(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Es(e){B.schedule(e)}function qo(e,t){if(!(e.f>&&e.f&Se)){e.f&ye?t.d.push(e):e.f&St&&t.m.push(e),pe(e,Se);for(var r=e.first;r!==null;)qo(r,t),r=r.next}}function Zo(e){pe(e,Se);for(var t=e.first;t!==null;)Zo(t),t=t.next}let ai=new Set;const pr=new Map;let Yo=!1;function yr(e,t){var r={f:0,v:e,reactions:null,equals:No,rv:0,wv:0};return r}function Te(e,t){const r=yr(e);return da(r),r}function ws(e,t=!1,r=!0){const n=yr(e);return t||(n.equals=Ro),n}function oe(e,t,r=!1){F!==null&&(!Tt||F.f&ni)&&Bo()&&F.f&(Ne|xt|Ir|ni)&&(pt===null||!pt.has(e))&&Bl();let n=r?Cr(t):t;return Wr(e,n,zn)}function Wr(e,t,r=null){if(!e.equals(t)){pr.set(e,zt?t:e.v);var n=tr.ensure();if(n.capture(e,t),e.f&Ne){const i=e;e.f&ye&&bs(i),Re===null&&ms(i)}e.wv=pa(),Jo(e,ye,r),$!==null&&$.f&Se&&!($.f&(gt|Mt))&&(lt===null?au([e]):lt.push(e)),!n.is_fork&&ai.size>0&&!Yo&&eu()}return t}function eu(){Yo=!1;for(const e of ai){e.f&Se&&pe(e,St);let t;try{t=Ln(e)}catch(r){t=!0}t&&qr(e)}ai.clear()}function bn(e){oe(e,e.v+1)}function Jo(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var a=n[s],o=a.f,l=(o&ye)===0;if(l&&pe(a,t),o&ni)ai.add(a);else if(o&Ne){var u=a;Re==null||Re.delete(u),o&br||(o&vt&&($===null||!($.f&ii))&&(a.f|=br),Jo(u,St,r))}else if(l){var f=a;o&xt&&yt!==null&&yt.add(f),r!==null?r.push(f):Es(f)}}}function Cr(e){if(typeof e!="object"||e===null||Ci in e)return e;const t=wo(e);if(t!==ml&&t!==_l)return e;var r=new Map,n=Eo(e),i=Te(0),s=mr,a=o=>{if(mr===s)return o();var l=F,u=mr;mt(null),js(s);var f=o();return mt(l),js(u),f};return n&&r.set("length",Te(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Ol();var f=r.get(l);return f===void 0?a(()=>{var v=Te(u.value);return r.set(l,v),v}):oe(f,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const f=a(()=>Te(xe));r.set(l,f),bn(i)}}else oe(u,xe),bn(i);return!0},get(o,l,u){var p;if(l===Ci)return e;var f=r.get(l),v=l in o;if(f===void 0&&(!v||(p=Lr(o,l))!=null&&p.writable)&&(f=a(()=>{var g=Cr(v?o[l]:xe),b=Te(g);return b}),r.set(l,f)),f!==void 0){var c=w(f);return c===xe?void 0:c}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=w(f))}else if(u===void 0){var v=r.get(l),c=v==null?void 0:v.v;if(v!==void 0&&c!==xe)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(o,l){var c;if(l===Ci)return!0;var u=r.get(l),f=u!==void 0&&u.v!==xe||Reflect.has(o,l);if(u!==void 0||$!==null&&(!f||(c=Lr(o,l))!=null&&c.writable)){u===void 0&&(u=a(()=>{var p=f?Cr(o[l]):xe,g=Te(p);return g}),r.set(l,u));var v=w(u);if(v===xe)return!1}return f},set(o,l,u,f){var P;var v=r.get(l),c=l in o;if(n&&l==="length")for(var p=u;p<v.v;p+=1){var g=r.get(p+"");g!==void 0?oe(g,xe):p in o&&(g=a(()=>Te(xe)),r.set(p+"",g))}if(v===void 0)(!c||(P=Lr(o,l))!=null&&P.writable)&&(v=a(()=>Te(void 0)),oe(v,Cr(u)),r.set(l,v));else{c=v.v!==xe;var b=a(()=>Cr(u));oe(v,b)}var _=Reflect.getOwnPropertyDescriptor(o,l);if(_!=null&&_.set&&_.set.call(f,u),!c){if(n&&typeof l=="string"){var A=r.get("length"),Q=Number(l);Number.isInteger(Q)&&Q>=A.v&&oe(A,Q+1)}bn(i)}return!0},ownKeys(o){w(i);var l=Reflect.ownKeys(o).filter(v=>{var c=r.get(v);return c===void 0||c.v!==xe});for(var[u,f]of r)f.v!==xe&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Rl()}})}var Us,Qo,Ko,ea;function Ki(){if(Us===void 0){Us=window,Qo=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ko=Lr(t,"firstChild").get,ea=Lr(t,"nextSibling").get,Ds(e)&&(e[Vi]=void 0,e[Gn]=null,e[Xi]=void 0,e.__e=void 0),Ds(r)&&(r[cn]=void 0)}}function Ye(e=""){return document.createTextNode(e)}function dt(e){return Ko.call(e)}function Pt(e){return ea.call(e)}function G(e,t){if(!j)return dt(e);var r=dt(D);if(r===null)r=D.appendChild(Ye());else if(t&&r.nodeType!==Bn){var n=Ye();return r==null||r.before(n),Be(n),n}return t&&xi(r),Be(r),r}function Rr(e,t=!1){if(!j){var r=dt(e);return r instanceof Comment&&r.data===""?Pt(r):r}if(t){if((D==null?void 0:D.nodeType)!==Bn){var n=Ye();return D==null||D.before(n),Be(n),n}xi(D)}return D}function He(e,t=1,r=!1){let n=j?D:e;for(var i;t--;)i=n,n=Pt(n);if(!j)return n;if(r){if((n==null?void 0:n.nodeType)!==Bn){var s=Ye();return n===null?i==null||i.after(s):n.before(s),Be(s),s}xi(n)}return Be(n),n}function ta(e){e.textContent=""}function ra(){return!1}function wi(e,t,r){return t==null||t===bo?r?document.createElement(e,{is:r}):document.createElement(e):r?document.createElementNS(t,e,{is:r}):document.createElementNS(t,e)}function xi(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Bn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function na(e){$===null&&(F===null&&Pl(),Al()),zt&&Sl()}function tu(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ht(e,t){var a;var r=$;r!==null&&r.f&Ue&&(e|=Ue);var n={ctx:Ie,deps:null,nodes:null,f:e|ye|vt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};B==null||B.register_created_effect(n);var i=n;if(e&jr)Br!==null?Br.push(n):tr.ensure().schedule(n);else if(t!==null){try{qr(n)}catch(o){throw Ge(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&wr)&&(i=i.first,e&xt&&e&Vr&&i!==null&&(i.f|=Vr))}if(i!==null&&(i.parent=r,r!==null&&tu(i,r),F!==null&&F.f&Ne&&!(e&Mt))){var s=F;((a=s.effects)!=null?a:s.effects=[]).push(i)}return n}function xs(){return F!==null&&!Tt}function ia(e){const t=Ht(On,null);return pe(t,Se),t.teardown=e,t}function li(e){var i;na();var t=$.f,r=!F&&(t>)!==0&&Ie!==null&&!Ie.i;if(r){var n=Ie;((i=n.e)!=null?i:n.e=[]).push(e)}else return sa(e)}function sa(e){return Ht(jr|Ao,e)}function oa(e){return na(),Ht(On|Ao,e)}function ru(e){tr.ensure();const t=Ht(Mt|wr,e);return()=>{Ge(t)}}function nu(e){tr.ensure();const t=Ht(Mt|wr,e);return(r={})=>new Promise(n=>{r.outro?gr(t,()=>{Ge(t),n(void 0)}):(Ge(t),n(void 0))})}function iu(e){return Ht(jr,e)}function su(e){return Ht(Ir|wr,e)}function aa(e,t=0){return Ht(On|t,e)}function at(e,t=[],r=[],n=[]){Xl(n,t,r,i=>{Ht(On,()=>{e(...i.map(w))})})}function Ts(e,t=0){var r=Ht(xt|t,e);return r}function ct(e){return Ht(gt|wr,e)}function la(e){var t=e.teardown;if(t!==null){const r=zt,n=F;Gs(!0),mt(null);try{t.call(null)}finally{Gs(r),mt(n)}}}function Ss(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&yi(()=>{i.abort(Rn)});var n=r.next;r.f&Mt?r.parent=null:Ge(r,t),r=n}}function ou(e){for(var t=e.first;t!==null;){var r=t.next;t.f>||Ge(t),t=r}}function Ge(e,t=!0){var r=!1;(t||e.f&bl)&&e.nodes!==null&&e.nodes.end!==null&&(ua(e.nodes.start,e.nodes.end),r=!0),e.f|=$s,Ss(e,t&&!r),En(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();la(e),e.f^=$s,e.f|=it;var i=e.parent;i!==null&&i.first!==null&&fa(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function ua(e,t){for(;e!==null;){var r=e===t?null:Pt(e);e.remove(),e=r}}function fa(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 gr(e,t,r=!0){var n=[];ha(e,n,!0);var i=()=>{r&&Ge(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function ha(e,t,r){if(!(e.f&Ue)){e.f^=Ue;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next;if(!(i.f&Mt)){var a=(i.f&Vr)!==0||(i.f>)!==0&&(e.f&xt)!==0;ha(i,t,a?r:!1)}i=s}}}function ui(e){ca(e,!0)}function ca(e,t){if(e.f&Ue){e.f^=Ue,e.f&Se||(pe(e,ye),tr.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Vr)!==0||(r.f>)!==0;ca(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function As(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Pt(r);t.append(r),r=i}}let Wn=!1,zt=!1;function Gs(e){zt=e}let F=null,Tt=!1;function mt(e){F=e}let $=null;function Dt(e){$=e}let pt=null;function da(e){F!==null&&(pt!=null?pt:pt=new Set).add(e)}let Ze=null,et=0,lt=null;function au(e){lt=e}let va=1,ar=0,mr=ar;function js(e){mr=e}function pa(){return++va}function Ln(e){var t=e.f;if(t&ye)return!0;if(t&Ne&&(e.f&=~br),t&St){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Ln(s)&&jo(s),s.wv>e.wv)return!0}t&vt&&Re===null&&pe(e,Se)}return!1}function ga(e,t,r=!0){var n=e.reactions;if(n!==null&&!(pt!==null&&pt.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&Ne?ga(s,t,!1):t===s&&(r?pe(s,ye):s.f&Se&&pe(s,St),Es(s))}}function ma(e){var b,_;var t=Ze,r=et,n=lt,i=F,s=pt,a=Ie,o=Tt,l=mr,u=e.f;Ze=null,et=0,lt=null,F=u&(gt|Mt)?null:e,pt=null,zr(e.ctx),Tt=!1,mr=++ar,e.ac!==null&&(yi(()=>{e.ac.abort(Rn)}),e.ac=null);try{e.f|=ii;var f=e.fn,v=f();e.f|=Er;var c=e.deps,p=B==null?void 0:B.is_fork;if(Ze!==null){var g;if(p||En(e,et),c!==null&&et>0)for(c.length=et+Ze.length,g=0;g<Ze.length;g++)c[et+g]=Ze[g];else e.deps=c=Ze;if(xs()&&e.f&vt)for(g=et;g<c.length;g++)((_=(b=c[g]).reactions)!=null?_:b.reactions=[]).push(e)}else!p&&c!==null&&et<c.length&&(En(e,et),c.length=et);if(Bo()&<!==null&&!Tt&&c!==null&&!(e.f&(Ne|St|ye)))for(g=0;g<lt.length;g++)ga(lt[g],e);if(i!==null&&i!==e){if(ar++,i.deps!==null)for(let A=0;A<r;A+=1)i.deps[A].rv=ar;if(t!==null)for(const A of t)A.rv=ar;lt!==null&&(n===null?n=lt:n.push(...lt))}return e.f&er&&(e.f^=er),v}catch(A){return Lo(A)}finally{e.f^=ii,Ze=t,et=r,lt=n,F=i,pt=s,zr(a),Tt=o,mr=l}}function lu(e,t){let r=t.reactions;if(r!==null){var n=pl.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&Ne&&(Ze===null||!ti.call(Ze,t))){var s=t;s.f&vt&&(s.f^=vt,s.f&=~br),s.v!==xe&&ms(s),s.ac!==null&&yi(()=>{s.ac.abort(Rn),s.ac=null,pe(s,ye)}),Yl(s),En(s,0)}}function En(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)lu(e,r[n])}function qr(e){var t=e.f;if(!(t&it)){pe(e,Se);var r=$,n=Wn;$=e,Wn=(t&(gt|Mt))===0;try{t&(xt|So)?ou(e):Ss(e),la(e);var i=ma(e);e.teardown=typeof i=="function"?i:null,e.wv=va;var s;yo&&Ml&&e.f&ye&&e.deps}finally{Wn=n,$=r}}}function w(e){var f;var t=e.f,r=(t&Ne)!==0;if(F!==null&&!Tt){var n=$!==null&&($.f&it)!==0;if(!n&&(pt===null||!pt.has(e))){var i=F.deps;if(F.f&ii)e.rv<ar&&(e.rv=ar,Ze===null&&i!==null&&i[et]===e?et++:Ze===null?Ze=[e]:Ze.push(e));else{(f=F.deps)!=null||(F.deps=[]),ti.call(F.deps,e)||F.deps.push(e);var s=e.reactions;s===null?e.reactions=[F]:ti.call(s,F)||s.push(F)}}}if(zt&&pr.has(e))return pr.get(e);if(r){var a=e;if(zt){var o=a.v;return(!(a.f&Se)&&a.reactions!==null||ba(a))&&(o=bs(a)),pr.set(a,o),o}var l=(a.f&vt)===0&&!Tt&&F!==null&&(Wn||(F.f&vt)!==0),u=(a.f&Er)===0;Ln(a)&&(l&&(a.f|=vt),jo(a)),l&&!u&&(Vo(a),_a(a))}if(Re!=null&&Re.has(e))return Re.get(e);if(e.f&er)throw e.v;return e.v}function _a(e){var t;if(e.f|=vt,e.deps!==null)for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&Ne&&!(r.f&vt)&&(Vo(r),_a(r))}function ba(e){if(e.v===xe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(pr.has(t)||t.f&Ne&&ba(t))return!0;return!1}function Ti(e){var t=Tt;try{return Tt=!0,e()}finally{Tt=t}}const lr=Symbol("events"),ya=new Set,es=new Set;function qn(e,t,r){var n;((n=t[lr])!=null?n:t[lr]={})[e]=r}function Ea(e){for(var t=0;t<e.length;t++)ya.add(e[t]);for(var r of es)r(e)}let Vs=null;function Xs(e){var b,_;var t=this,r=t.ownerDocument,n=e.type,i=((b=e.composedPath)==null?void 0:b.call(e))||[],s=i[0]||e.target;Vs=e;var a=0,o=Vs===e&&e[lr];if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e[lr]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){yn(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=F,v=$;mt(null),Dt(null);try{for(var c,p=[];s!==null&&s!==t;){try{var g=(_=s[lr])==null?void 0:_[n];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(A){c?p.push(A):c=A}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(c){for(let A of p)queueMicrotask(()=>{throw A});throw c}}finally{e[lr]=t,delete e.currentTarget,mt(f),Dt(v)}}}var go;const Mi=((go=globalThis==null?void 0:globalThis.window)==null?void 0:go.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function uu(e){var t;return(t=Mi==null?void 0:Mi.createHTML(e))!=null?t:e}function fu(e){var t=wi("template");return t.innerHTML=uu(e.replaceAll("<!>","<!---->")),t.content}function At(e,t){var r=$;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Je(e,t){var r=(t&hl)!==0,n=(t&cl)!==0,i,s=!e.startsWith("<!>");return()=>{if(j)return At(D,null),D;i===void 0&&(i=fu(s?e:"<!>"+e),r||(i=dt(i)));var a=n||Qo?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=dt(a),l=a.lastChild;At(o,l)}else At(a,a);return a}}function hu(e=""){if(!j){var t=Ye(e+"");return At(t,t),t}var r=D;return r.nodeType!==Bn?(r.before(r=Ye()),Be(r)):xi(r),At(r,r),r}function Zn(){if(j)return At(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(""),r=Ye();return e.append(t,r),At(t,r),e}function we(e,t){if(j){var r=$;(!(r.f&Er)||r.nodes.end===null)&&(r.nodes.end=D),Xr();return}e!==null&&e.before(t)}const cu=["touchstart","touchmove"];function du(e){return cu.includes(e)}function de(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e[cn])!=null?n:e[cn]=e.nodeValue)&&(e[cn]=r,e.nodeValue=`${r}`)}function wa(e,t){return xa(e,t)}function vu(e,t){var a;Ki(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=j,i=D;try{for(var s=dt(r);s&&(s.nodeType!==Kr||s.data!==_o);)s=Pt(s);if(!s)throw _r;Vt(!0),Be(s);const o=xa(e,kn($n({},t),{anchor:s}));return Vt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==_r&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Nl(),Ki(),ta(r),Vt(!1),wa(e,t)}finally{Vt(n),Be(i)}}const Fn=new Map;function xa(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){Ki();var l=void 0,u=nu(()=>{var f=r!=null?r:t.appendChild(Ye());jl(f,{pending:()=>{}},p=>{mi({});var g=Ie;if(s&&(g.c=s),i&&(n.$$events=i),j&&At(p,null),l=e(p,n)||{},j&&($.nodes.end=D,D===null||D.nodeType!==Kr||D.data!==ps))throw Cn(),_r;_i()},o);var v=new Set,c=p=>{for(var g=0;g<p.length;g++){var b=p[g];if(!v.has(b)){v.add(b);var _=du(b);for(const P of[t,document]){var A=Fn.get(P);A===void 0&&(A=new Map,Fn.set(P,A));var Q=A.get(b);Q===void 0?(P.addEventListener(b,Xs,{passive:_}),A.set(b,1)):A.set(b,Q+1)}}}};return c(gi(ya)),es.add(c),()=>{var _;for(var p of v)for(const A of[t,document]){var g=Fn.get(A),b=g.get(p);--b==0?(A.removeEventListener(p,Xs),g.delete(p),g.size===0&&Fn.delete(A)):g.set(p,b)}es.delete(c),f!==r&&((_=f.parentNode)==null||_.removeChild(f))}});return ts.set(l,u),l}let ts=new WeakMap;function pu(e,t){const r=ts.get(e);return r?(ts.delete(e),r(t)):Promise.resolve()}var wt,Ct,nt,dr,Hn,Nn,pi;class gu{constructor(t,r=!0){ue(this,"anchor");C(this,wt,new Map);C(this,Ct,new Map);C(this,nt,new Map);C(this,dr,new Set);C(this,Hn,!0);C(this,Nn,t=>{if(h(this,wt).has(t)){var r=h(this,wt).get(t),n=h(this,Ct).get(r);if(n)ui(n),h(this,dr).delete(r);else{var i=h(this,nt).get(r);i&&(ui(i.effect),h(this,Ct).set(r,i.effect),h(this,nt).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of h(this,wt)){if(h(this,wt).delete(s),s===t)break;const o=h(this,nt).get(a);o&&(Ge(o.effect),h(this,nt).delete(a))}for(const[s,a]of h(this,Ct)){if(s===r||h(this,dr).has(s))continue;const o=()=>{if(Array.from(h(this,wt).values()).includes(s)){var u=document.createDocumentFragment();As(a,u),u.append(Ye()),h(this,nt).set(s,{effect:a,fragment:u})}else Ge(a);h(this,dr).delete(s),h(this,Ct).delete(s)};h(this,Hn)||!n?(h(this,dr).add(s),gr(a,o,!1)):o()}}});C(this,pi,t=>{h(this,wt).delete(t);const r=Array.from(h(this,wt).values());for(const[n,i]of h(this,nt))r.includes(n)||(Ge(i.effect),h(this,nt).delete(n))});this.anchor=t,O(this,Hn,r)}ensure(t,r){var n=B,i=ra();if(r&&!h(this,Ct).has(t)&&!h(this,nt).has(t))if(i){var s=document.createDocumentFragment(),a=Ye();s.append(a),h(this,nt).set(t,{effect:ct(()=>r(a)),fragment:s})}else h(this,Ct).set(t,ct(()=>r(this.anchor)));if(h(this,wt).set(n,t),i){for(const[o,l]of h(this,Ct))o===t?n.unskip_effect(l):n.skip_effect(l);for(const[o,l]of h(this,nt))o===t?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(h(this,Nn)),n.ondiscard(h(this,pi))}else j&&(this.anchor=D),h(this,Nn).call(this,n)}}wt=new WeakMap,Ct=new WeakMap,nt=new WeakMap,dr=new WeakMap,Hn=new WeakMap,Nn=new WeakMap,pi=new WeakMap;function Ps(e){Ie===null&&Po(),li(()=>{const t=Ti(e);if(typeof t=="function")return t})}function mu(e){Ie===null&&Po(),Ps(()=>()=>Ti(e))}function sr(e,t,r=!1){var n;j&&(n=D,Xr());var i=new gu(e),s=r?Vr:0;function a(o,l){if(j){var u=Ho(n);if(o!==parseInt(u.substring(1))){var f=si();Be(f),i.anchor=f,Vt(!1),i.ensure(o,l),Vt(!0);return}}i.ensure(o,l)}Ts(()=>{var o=!1;t((l,u=0)=>{o=!0,a(u,l)}),o||a(-1,null)},s)}function Yn(e,t){return t}function _u(e,t,r){var v;for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let c=t[o];gr(c,()=>{if(s){if(s.pending.delete(c),s.done.add(c),s.pending.size===0){var p=e.outrogroups;rs(e,gi(s.done)),p.delete(s),p.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=n.length===0&&r!==null;if(l){var u=r,f=u.parentNode;ta(f),f.append(u),e.items.clear()}rs(e,t,!l)}else s={pending:new Set(t),done:new Set},((v=e.outrogroups)!=null?v:e.outrogroups=new Set).add(s)}function rs(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const a of e.pending.values())for(const o of a)n.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n!=null&&n.has(s)){s.f|=It;const a=document.createDocumentFragment();As(s,a)}else Ge(t[i],r)}}var Nr;function Jn(e,t,r,n,i,s=null){var a=e,o=new Map,l=(t&mo)!==0;if(l){var u=e;a=j?Be(dt(u)):u.appendChild(Ye())}j&&Xr();var f=null,v=ql(()=>{var P=r();return Eo(P)?P:P==null?[]:gi(P)}),c,p=new Map,g=!0;function b(P){Q.effect.f&it||(Q.pending.delete(P),Q.fallback=f,bu(Q,c,a,t,n),f!==null&&(c.length===0?f.f&It?(f.f^=It,gn(f,null,a)):ui(f):gr(f,()=>{f=null})))}function _(P){Q.pending.delete(P)}var A=Ts(()=>{c=w(v);var P=c.length;let L=!1;if(j){var te=Ho(a)===vs;te!==(P===0)&&(a=si(),Be(a),Vt(!1),L=!0)}for(var ge=new Set,re=B,st=ra(),Ce=0;Ce<P;Ce+=1){j&&D.nodeType===Kr&&D.data===ps&&(a=D,L=!0,Vt(!1));var je=c[Ce],Me=n(je,Ce),ce=g?null:o.get(Me);ce?(ce.v&&Wr(ce.v,je),ce.i&&Wr(ce.i,Ce),st&&re.unskip_effect(ce.e)):(ce=yu(o,g?a:Nr!=null?Nr:Nr=Ye(),je,Me,Ce,i,t,r),g||(ce.e.f|=It),o.set(Me,ce)),ge.add(Me)}if(P===0&&s&&!f&&(g?f=ct(()=>s(a)):(f=ct(()=>s(Nr!=null?Nr:Nr=Ye())),f.f|=It)),P>ge.size&&Tl(),j&&P>0&&Be(si()),!g)if(p.set(re,ge),st){for(const[$t,Nt]of o)ge.has($t)||re.skip_effect(Nt.e);re.oncommit(b),re.ondiscard(_)}else b(re);L&&Vt(!0),w(v)}),Q={effect:A,items:o,pending:p,outrogroups:null,fallback:f};g=!1,j&&(a=D)}function fn(e){for(;e!==null&&!(e.f>);)e=e.next;return e}function bu(e,t,r,n,i){var je,Me,ce,$t,Nt,rr,nr,Qe,Ve;var s=(n&ul)!==0,a=t.length,o=e.items,l=fn(e.effect.first),u,f=null,v,c=[],p=[],g,b,_,A;if(s)for(A=0;A<a;A+=1)g=t[A],b=i(g,A),_=o.get(b).e,_.f&It||((Me=(je=_.nodes)==null?void 0:je.a)==null||Me.measure(),(v!=null?v:v=new Set).add(_));for(A=0;A<a;A+=1){if(g=t[A],b=i(g,A),_=o.get(b).e,e.outrogroups!==null)for(const Ee of e.outrogroups)Ee.pending.delete(_),Ee.done.delete(_);if(_.f&Ue&&(ui(_),s&&(($t=(ce=_.nodes)==null?void 0:ce.a)==null||$t.unfix(),(v!=null?v:v=new Set).delete(_))),_.f&It)if(_.f^=It,_===l)gn(_,null,r);else{var Q=f?f.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Zt(e,f,_),Zt(e,_,Q),gn(_,Q,r),f=_,c=[],p=[],l=fn(f.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(c.length<p.length){var P=p[0],L;f=P.prev;var te=c[0],ge=c[c.length-1];for(L=0;L<c.length;L+=1)gn(c[L],P,r);for(L=0;L<p.length;L+=1)u.delete(p[L]);Zt(e,te.prev,ge.next),Zt(e,f,te),Zt(e,ge,P),l=P,f=ge,A-=1,c=[],p=[]}else u.delete(_),gn(_,l,r),Zt(e,_.prev,_.next),Zt(e,_,f===null?e.effect.first:f.next),Zt(e,f,_),f=_;continue}for(c=[],p=[];l!==null&&l!==_;)(u!=null?u:u=new Set).add(l),p.push(l),l=fn(l.next);if(l===null)continue}_.f&It||c.push(_),f=_,l=fn(_.next)}if(e.outrogroups!==null){for(const Ee of e.outrogroups)Ee.pending.size===0&&(rs(e,gi(Ee.done)),(Nt=e.outrogroups)==null||Nt.delete(Ee));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var re=[];if(u!==void 0)for(_ of u)_.f&Ue||re.push(_);for(;l!==null;)!(l.f&Ue)&&l!==e.fallback&&re.push(l),l=fn(l.next);var st=re.length;if(st>0){var Ce=n&mo&&a===0?r:null;if(s){for(A=0;A<st;A+=1)(nr=(rr=re[A].nodes)==null?void 0:rr.a)==null||nr.measure();for(A=0;A<st;A+=1)(Ve=(Qe=re[A].nodes)==null?void 0:Qe.a)==null||Ve.fix()}_u(e,re,Ce)}}s&&vr(()=>{var Ee,Wt;if(v!==void 0)for(_ of v)(Wt=(Ee=_.nodes)==null?void 0:Ee.a)==null||Wt.apply()})}function yu(e,t,r,n,i,s,a,o){var l=a&al?a&fl?yr(r):ws(r,!1,!1):null,u=a&ll?yr(i):null;return{v:l,i:u,e:ct(()=>(s(t,l!=null?l:r,u!=null?u:i,o),()=>{e.delete(n)}))}}function gn(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&It)?t.nodes.start:r;n!==null;){var a=Pt(n);if(s.before(n),n===i)return;n=a}}function Zt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Eu(e,t,r=!1,n=!1,i=!1,s=!1){var a=e,o="";if(r){var l=e;j&&(a=Be(dt(l)))}at(()=>{var b;var u=$;if(o===(o=(b=t())!=null?b:"")){j&&Xr();return}if(r&&!j){u.nodes=null,l.innerHTML=o,o!==""&&At(dt(l),l.lastChild);return}if(u.nodes!==null&&(ua(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){if(j){D.data;for(var f=Xr(),v=f;f!==null&&(f.nodeType!==Kr||f.data!=="");)v=f,f=Pt(f);if(f===null)throw Cn(),_r;At(D,v),a=Be(f);return}var c=n?dl:i?vl:void 0,p=wi(n?"svg":i?"math":"template",c);p.innerHTML=o;var g=n||i?p:p.content;if(At(dt(g),g.lastChild),n||i)for(;dt(g);)a.before(dt(g));else a.before(g)}})}function Ta(e,t){iu(()=>{var i;var r=e.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=wi("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Sa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Sa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wu(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Sa(e))&&(n&&(n+=" "),n+=t);return n}function Aa(e){return typeof e=="object"?wu(e):e!=null?e:""}const zs=[...`
|
|
3
|
-
\r\f \v\uFEFF`];function xu(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),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,a=0;(a=n.indexOf(i,a))>=0;){var o=a+s;(a===0||zs.includes(n[a-1]))&&(o===n.length||zs.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function Tu(e,t){return e==null?null:String(e)}function ns(e,t,r,n,i,s){var a=e[Vi];if(j||a!==r||a===void 0){var o=xu(r,n,s);(!j||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[Vi]=r}else if(s&&i!==s)for(var l in s){var u=!!s[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return s}function Su(e,t,r,n){var i=e[Xi];if(j||i!==t){var s=Tu(t);(!j||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e[Xi]=t}return n}const Au=Symbol("is custom element"),Pu=Symbol("is html"),Hu=wl?"link":"LINK";function Nu(e,t,r,n){var i=Ou(e);j&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Hu)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[El]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ru(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ou(e){var t;return(t=e[Gn])!=null?t:e[Gn]={[Au]:e.nodeName.includes("-"),[Pu]:e.namespaceURI===bo}}var Ws=new Map;function Ru(e){var t=e.getAttribute("is")||e.nodeName,r=Ws.get(t);if(r)return r;Ws.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=gl(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.push(a);i=wo(i)}return r}function Fe(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var l;l=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var u=!1,f=Ei(()=>(u=!1,l())),v=$;return function(c,p){if(arguments.length>0){const g=p?w(f):c;return oe(f,g),u=!0,i!==void 0&&(i=g),c}return zt&&u||v.f&it?f.v:w(f)}}function Bu(e){return new Cu(e)}var jt,ht;class Cu{constructor(t){C(this,jt);C(this,ht);var s,a;var r=new Map,n=(o,l)=>{var u=ws(l,!1,!1);return r.set(o,u),u};const i=new Proxy(kn($n({},t.props||{}),{$$events:{}}),{get(o,l){var u;return w((u=r.get(l))!=null?u:n(l,Reflect.get(o,l)))},has(o,l){var u;return l===yl?!0:(w((u=r.get(l))!=null?u:n(l,Reflect.get(o,l))),Reflect.has(o,l))},set(o,l,u){var f;return oe((f=r.get(l))!=null?f:n(l,u),u),Reflect.set(o,l,u)}});O(this,ht,(t.hydrate?vu:wa)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover,transformError:t.transformError})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&Le(),O(this,jt,i.$$events);for(const o of Object.keys(h(this,ht)))o==="$set"||o==="$destroy"||o==="$on"||yn(this,o,{get(){return h(this,ht)[o]},set(l){h(this,ht)[o]=l},enumerable:!0});h(this,ht).$set=o=>{Object.assign(i,o)},h(this,ht).$destroy=()=>{pu(h(this,ht))}}$set(t){h(this,ht).$set(t)}$on(t,r){h(this,jt)[t]=h(this,jt)[t]||[];const n=(...i)=>r.call(this,...i);return h(this,jt)[t].push(n),()=>{h(this,jt)[t]=h(this,jt)[t].filter(i=>i!==n)}}$destroy(){h(this,ht).$destroy()}}jt=new WeakMap,ht=new WeakMap;let Pa;typeof HTMLElement=="function"&&(Pa=class extends HTMLElement{constructor(t,r,n){super();ue(this,"$$ctor");ue(this,"$$s");ue(this,"$$c");ue(this,"$$cn",!1);ue(this,"$$d",{});ue(this,"$$r",!1);ue(this,"$$p_d",{});ue(this,"$$l",{});ue(this,"$$l_u",new Map);ue(this,"$$me");ue(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 Is(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return a=>{const o=wi("slot");s!=="default"&&(o.name=s),we(a,o)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Lu(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 a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Qn(a,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=Bu({component:this.$$ctor,target:this.$$shadowRoot||this,props:kn($n({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=ru(()=>{aa(()=>{var s;this.$$r=!0;for(const a of ri(this.$$c)){if(!((s=this.$$p_d[a])!=null&&s.reflect))continue;this.$$d[a]=this.$$c[a];const o=Qn(a,this.$$d[a],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,o)}this.$$r=!1})});for(const s in this.$$l)for(const a of this.$$l[s]){const o=this.$$c.$on(s,a);this.$$l_u.set(a,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Qn(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 ri(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Qn(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 Lu(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Hs(e,t,r,n,i,s){let a=class extends Pa{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ri(t).map(o=>(t[o].attribute||o).toLowerCase())}};return ri(t).forEach(o=>{yn(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var v;l=Qn(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=(v=Lr(u,o))==null?void 0:v.get;f?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{yn(a.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),e.element=a,a}var Ha=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Na(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Iu=function(t){return Mu(t)&&!Du(t)};function Mu(e){return!!e&&typeof e=="object"}function Du(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Fu(e)}var $u=typeof Symbol=="function"&&Symbol.for,ku=$u?Symbol.for("react.element"):60103;function Fu(e){return e.$$typeof===ku}function Uu(e){return Array.isArray(e)?[]:{}}function wn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zr(Uu(e),e,t):e}function Gu(e,t,r){return e.concat(t).map(function(n){return wn(n,r)})}function ju(e,t){if(!t.customMerge)return Zr;var r=t.customMerge(e);return typeof r=="function"?r:Zr}function Vu(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function qs(e){return Object.keys(e).concat(Vu(e))}function Oa(e,t){try{return t in e}catch(r){return!1}}function Xu(e,t){return Oa(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function zu(e,t,r){var n={};return r.isMergeableObject(e)&&qs(e).forEach(function(i){n[i]=wn(e[i],r)}),qs(t).forEach(function(i){Xu(e,i)||(Oa(e,i)&&r.isMergeableObject(t[i])?n[i]=ju(i,r)(e[i],t[i],r):n[i]=wn(t[i],r))}),n}function Zr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Gu,r.isMergeableObject=r.isMergeableObject||Iu,r.cloneUnlessOtherwiseSpecified=wn;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):zu(e,t,r):wn(t,r)}Zr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Zr(n,i,r)},{})};var Wu=Zr,qu=Wu;const Zu=Na(qu);var is=function(e,t){return is=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])},is(e,t)};function Si(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");is(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Lt=function(){return Lt=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},Lt.apply(this,arguments)};function Yu(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 Di(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 $i(e,t){var r=t&&t.cache?t.cache:nf,n=t&&t.serializer?t.serializer:tf,i=t&&t.strategy?t.strategy:Ku;return i(e,{cache:r,serializer:n})}function Ju(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Qu(e,t,r,n){var i=Ju(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Ra(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function Ba(e,t,r,n,i){return r.bind(t,e,n,i)}function Ku(e,t){var r=e.length===1?Qu:Ra;return Ba(e,this,r,t.cache.create(),t.serializer)}function ef(e,t){return Ba(e,this,Ra,t.cache.create(),t.serializer)}var tf=function(){return JSON.stringify(arguments)},rf=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}(),nf={create:function(){return new rf}},ki={variadic:ef},fi=function(){return fi=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},fi.apply(this,arguments)};var W;(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"})(W||(W={}));var fe;(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"})(fe||(fe={}));var Yr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Yr||(Yr={}));function Zs(e){return e.type===fe.literal}function sf(e){return e.type===fe.argument}function Ca(e){return e.type===fe.number}function La(e){return e.type===fe.date}function Ia(e){return e.type===fe.time}function Ma(e){return e.type===fe.select}function Da(e){return e.type===fe.plural}function of(e){return e.type===fe.pound}function $a(e){return e.type===fe.tag}function ka(e){return!!(e&&typeof e=="object"&&e.type===Yr.number)}function ss(e){return!!(e&&typeof e=="object"&&e.type===Yr.dateTime)}var Fa=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,af=/(?:[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 lf(e){var t={};return e.replace(af,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 ve=function(){return ve=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},ve.apply(this,arguments)};var uf=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ff(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(uf).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],l=a.slice(1),u=0,f=l;u<f.length;u++){var v=f[u];if(v.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:l})}return r}function hf(e){return e.replace(/^(.*?)-/,"")}var Ys=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ua=/^(@+)?(\+|#+)?[rs]?$/g,cf=/(\*)(0+)|(#+)(0+)|(0+)/g,Ga=/^(0+)$/;function Js(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ua,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 ja(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 df(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)),!Ga.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qs(e){var t={},r=ja(e);return r||t}function vf(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=hf(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=ve(ve(ve({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return ve(ve({},l),Qs(u))},{}));continue;case"engineering":t=ve(ve(ve({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return ve(ve({},l),Qs(u))},{}));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(cf,function(l,u,f,v,c,p){if(u)t.minimumIntegerDigits=f.length;else{if(v&&c)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ga.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ys.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ys,function(l,u,f,v,c,p){return f==="*"?t.minimumFractionDigits=u.length:v&&v[0]==="#"?t.maximumFractionDigits=v.length:c&&p?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?t=ve(ve({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=ve(ve({},t),Js(s)));continue}if(Ua.test(i.stem)){t=ve(ve({},t),Js(i.stem));continue}var a=ja(i.stem);a&&(t=ve(ve({},t),a));var o=df(i.stem);o&&(t=ve(ve({},t),o))}return t}var Un={"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 pf(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 a=1+(s&1),o=s<2?1:3+(s>>1),l="a",u=gf(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;a-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function gf(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=Un[n||""]||Un[r||""]||Un["".concat(r,"-001")]||Un["001"];return i[0]}var Fi,mf=new RegExp("^".concat(Fa.source,"*")),_f=new RegExp("".concat(Fa.source,"*$"));function q(e,t){return{start:e,end:t}}var bf=!!String.prototype.startsWith&&"_a".startsWith("a",1),yf=!!String.fromCodePoint,Ef=!!Object.fromEntries,wf=!!String.prototype.codePointAt,xf=!!String.prototype.trimStart,Tf=!!String.prototype.trimEnd,Sf=!!Number.isSafeInteger,Af=Sf?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},os=!0;try{var Pf=Xa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");os=((Fi=Pf.exec("a"))===null||Fi===void 0?void 0:Fi[0])==="a"}catch(e){os=!1}var Ks=bf?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},as=yf?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},eo=Ef?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],o=s[1];r[a]=o}return r},Va=wf?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}},Hf=xf?function(t){return t.trimStart()}:function(t){return t.replace(mf,"")},Nf=Tf?function(t){return t.trimEnd()}:function(t){return t.replace(_f,"")};function Xa(e,t){return new RegExp(e,t)}var ls;if(os){var to=Xa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ls=function(t,r){var n;to.lastIndex=r;var i=to.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else ls=function(t,r){for(var n=[];;){var i=Va(t,r);if(i===void 0||za(i)||Cf(i))break;n.push(i),r+=i>=65536?2:1}return as.apply(void 0,n)};var Of=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 a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:fe.pound,location:q(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(W.UNMATCHED_CLOSING_TAG,q(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&us(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.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:fe.literal,value:"<".concat(i,"/>"),location:q(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!us(this.char()))return this.error(W.INVALID_TAG,q(o,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(W.UNMATCHED_CLOSING_TAG,q(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:i,children:a,location:q(n,this.clonePosition())},err:null}:this.error(W.INVALID_TAG,q(o,this.clonePosition())))}else return this.error(W.UNCLOSED_TAG,q(n,this.clonePosition()))}else return this.error(W.INVALID_TAG,q(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Bf(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 a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var l=q(n,this.clonePosition());return{val:{type:fe.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Rf(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 as.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(),as(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,q(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(W.EMPTY_ARGUMENT,q(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(W.MALFORMED_ARGUMENT,q(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,q(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:i,location:q(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,q(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(W.MALFORMED_ARGUMENT,q(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=ls(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=q(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(W.EXPECT_ARGUMENT_TYPE,q(a,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),v=this.parseSimpleArgStyleIfPossible();if(v.err)return v;var c=Nf(v.val);if(c.length===0)return this.error(W.EXPECT_ARGUMENT_STYLE,q(this.clonePosition(),this.clonePosition()));var p=q(f,this.clonePosition());u={style:c,styleLocation:p}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var b=q(i,this.clonePosition());if(u&&Ks(u==null?void 0:u.style,"::",0)){var _=Hf(u.style.slice(2));if(o==="number"){var v=this.parseNumberSkeletonFromString(_,u.styleLocation);return v.err?v:{val:{type:fe.number,value:n,location:b,style:v.val},err:null}}else{if(_.length===0)return this.error(W.EXPECT_DATE_TIME_SKELETON,b);var A=_;this.locale&&(A=pf(_,this.locale));var c={type:Yr.dateTime,pattern:A,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?lf(A):{}},Q=o==="date"?fe.date:fe.time;return{val:{type:Q,value:n,location:b,style:c},err:null}}}return{val:{type:o==="number"?fe.number:o==="date"?fe.date:fe.time,value:n,location:b,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(W.EXPECT_SELECT_ARGUMENT_OPTIONS,q(P,fi({},P)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),te=0;if(o!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,q(this.clonePosition(),this.clonePosition()));this.bumpSpace();var v=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(v.err)return v;this.bumpSpace(),L=this.parseIdentifierIfPossible(),te=v.val}var ge=this.tryParsePluralOrSelectOptions(t,o,r,L);if(ge.err)return ge;var g=this.tryParseArgumentClose(i);if(g.err)return g;var re=q(i,this.clonePosition());return o==="select"?{val:{type:fe.select,value:n,options:eo(ge.val),location:re},err:null}:{val:{type:fe.plural,value:n,options:eo(ge.val),offset:te,pluralType:o==="plural"?"cardinal":"ordinal",location:re},err:null}}default:return this.error(W.INVALID_ARGUMENT_TYPE,q(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,q(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(W.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,q(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=ff(t)}catch(i){return this.error(W.INVALID_NUMBER_SKELETON,r)}return{val:{type:Yr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?vf(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],l=new Set,u=i.value,f=i.location;;){if(u.length===0){var v=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_SELECTOR,W.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;f=q(v,this.clonePosition()),u=this.message.slice(v.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?W.DUPLICATE_SELECT_ARGUMENT_SELECTOR:W.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?W.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:W.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,q(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var b=this.tryParseArgumentClose(p);if(b.err)return b;o.push([u,{value:g.val,location:q(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,f=s.location}return o.length===0?this.error(r==="select"?W.EXPECT_SELECT_ARGUMENT_SELECTOR:W.EXPECT_PLURAL_ARGUMENT_SELECTOR,q(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(W.MISSING_OTHER_CLAUSE,q(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)s=!0,a=a*10+(o-48),this.bump();else break}var l=q(i,this.clonePosition());return s?(a*=n,Af(a)?{val:a,err:null}:this.error(r,l)):this.error(t,l)},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=Va(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(Ks(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&za(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function us(e){return e>=97&&e<=122||e>=65&&e<=90}function Rf(e){return us(e)||e===47}function Bf(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function za(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Cf(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 fs(e){e.forEach(function(t){if(delete t.location,Ma(t)||Da(t))for(var r in t.options)delete t.options[r].location,fs(t.options[r].value);else Ca(t)&&ka(t.style)||(La(t)||Ia(t))&&ss(t.style)?delete t.style.location:$a(t)&&fs(t.children)})}function Lf(e,t){t===void 0&&(t={}),t=fi({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Of(e,t).parse();if(r.err){var n=SyntaxError(W[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||fs(r.val),r.val}var Jr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Jr||(Jr={}));var Ai=function(e){Si(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),ro=function(e){Si(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('", "'),'"'),Jr.INVALID_VALUE,s)||this}return t}(Ai),If=function(e){Si(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Jr.INVALID_VALUE,i)||this}return t}(Ai),Mf=function(e){Si(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,'"'),Jr.MISSING_VALUE,n)||this}return t}(Ai),ke;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ke||(ke={}));function Df(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ke.literal||r.type!==ke.literal?t.push(r):n.value+=r.value,t},[])}function $f(e){return typeof e=="function"}function Kn(e,t,r,n,i,s,a){if(e.length===1&&Zs(e[0]))return[{type:ke.literal,value:e[0].value}];for(var o=[],l=0,u=e;l<u.length;l++){var f=u[l];if(Zs(f)){o.push({type:ke.literal,value:f.value});continue}if(of(f)){typeof s=="number"&&o.push({type:ke.literal,value:r.getNumberFormat(t).format(s)});continue}var v=f.value;if(!(i&&v in i))throw new Mf(v,a);var c=i[v];if(sf(f)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),o.push({type:typeof c=="string"?ke.literal:ke.object,value:c});continue}if(La(f)){var p=typeof f.style=="string"?n.date[f.style]:ss(f.style)?f.style.parsedOptions:void 0;o.push({type:ke.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(Ia(f)){var p=typeof f.style=="string"?n.time[f.style]:ss(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:ke.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(Ca(f)){var p=typeof f.style=="string"?n.number[f.style]:ka(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(c=c*(p.scale||1)),o.push({type:ke.literal,value:r.getNumberFormat(t,p).format(c)});continue}if($a(f)){var g=f.children,b=f.value,_=i[b];if(!$f(_))throw new If(b,"function",a);var A=Kn(g,t,r,n,i,s),Q=_(A.map(function(te){return te.value}));Array.isArray(Q)||(Q=[Q]),o.push.apply(o,Q.map(function(te){return{type:typeof te=="string"?ke.literal:ke.object,value:te}}))}if(Ma(f)){var P=f.options[c]||f.options.other;if(!P)throw new ro(f.value,c,Object.keys(f.options),a);o.push.apply(o,Kn(P.value,t,r,n,i));continue}if(Da(f)){var P=f.options["=".concat(c)];if(!P){if(!Intl.PluralRules)throw new Ai(`Intl.PluralRules is not available in this environment.
|
|
4
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
-
`,Jr.MISSING_INTL_API,a);var L=r.getPluralRules(t,{type:f.pluralType}).select(c-(f.offset||0));P=f.options[L]||f.options.other}if(!P)throw new ro(f.value,c,Object.keys(f.options),a);o.push.apply(o,Kn(P.value,t,r,n,i,c-(f.offset||0)));continue}}return Df(o)}function kf(e,t){return t?Lt(Lt(Lt({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Lt(Lt({},e[n]),t[n]||{}),r},{})):e}function Ff(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=kf(e[n],t[n]),r},Lt({},e)):e}function Ui(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Uf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:$i(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Di([void 0],r,!1)))},{cache:Ui(e.number),strategy:ki.variadic}),getDateTimeFormat:$i(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Di([void 0],r,!1)))},{cache:Ui(e.dateTime),strategy:ki.variadic}),getPluralRules:$i(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Di([void 0],r,!1)))},{cache:Ui(e.pluralRules),strategy:ki.variadic})}}var Gf=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(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var f=u.reduce(function(v,c){return!v.length||c.type!==ke.literal||typeof v[v.length-1]!="string"?v.push(c.value):v[v.length-1]+=c.value,v},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Kn(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.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 a=i||{};a.formatters;var o=Yu(a,["formatters"]);this.ast=e.__parse(t,Lt(Lt({},o),{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=Ff(e.formats,n),this.formatters=i&&i.formatters||Uf(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Lf,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function jf(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 Kt={},Vf=(e,t,r)=>r&&(t in Kt||(Kt[t]={}),e in Kt[t]||(Kt[t][e]=r),r),Wa=(e,t)=>{if(t==null)return;if(t in Kt&&e in Kt[t])return Kt[t][e];const r=Pi(t);for(let n=0;n<r.length;n++){const i=r[n],s=zf(i,e);if(s)return Vf(e,t,s)}};let Ns;const tn=bi({});function Xf(e){return Ns[e]||null}function qa(e){return e in Ns}function zf(e,t){if(!qa(e))return null;const r=Xf(e);return jf(r,t)}function Wf(e){if(e==null)return;const t=Pi(e);for(let r=0;r<t.length;r++){const n=t[r];if(qa(n))return n}}function Os(e,...t){delete Kt[e],tn.update(r=>(r[e]=Zu.all([r[e]||{},...t]),r))}en([tn],([e])=>Object.keys(e));tn.subscribe(e=>Ns=e);const ei={};function qf(e,t){ei[e].delete(t),ei[e].size===0&&delete ei[e]}function Za(e){return ei[e]}function Zf(e){return Pi(e).map(t=>{const r=Za(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function hs(e){return e==null?!1:Pi(e).some(t=>{var r;return(r=Za(t))==null?void 0:r.size})}function Yf(e,t){return Promise.all(t.map(n=>(qf(e,n),n().then(i=>i.default||i)))).then(n=>Os(e,...n))}const hn={};function Ya(e){if(!hs(e))return e in hn?hn[e]:Promise.resolve();const t=Zf(e);return hn[e]=Promise.all(t.map(([r,n])=>Yf(r,n))).then(()=>{if(hs(e))return Ya(e);delete hn[e]}),hn[e]}const Jf={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"}}},Qf={fallbackLocale:null,loadingDelay:200,formats:Jf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Kf=Qf;function Qr(){return Kf}const Gi=bi(!1);var eh=Object.defineProperty,th=Object.defineProperties,rh=Object.getOwnPropertyDescriptors,no=Object.getOwnPropertySymbols,nh=Object.prototype.hasOwnProperty,ih=Object.prototype.propertyIsEnumerable,io=(e,t,r)=>t in e?eh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sh=(e,t)=>{for(var r in t||(t={}))nh.call(t,r)&&io(e,r,t[r]);if(no)for(var r of no(t))ih.call(t,r)&&io(e,r,t[r]);return e},oh=(e,t)=>th(e,rh(t));let cs;const hi=bi(null);function so(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Pi(e,t=Qr().fallbackLocale){const r=so(e);return t?[...new Set([...r,...so(t)])]:r}function xr(){return cs!=null?cs:void 0}hi.subscribe(e=>{cs=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ah=e=>{if(e&&Wf(e)&&hs(e)){const{loadingDelay:t}=Qr();let r;return typeof window!="undefined"&&xr()!=null&&t?r=window.setTimeout(()=>Gi.set(!0),t):Gi.set(!0),Ya(e).then(()=>{hi.set(e)}).finally(()=>{clearTimeout(r),Gi.set(!1)})}return hi.set(e)},Tr=oh(sh({},hi),{set:ah}),Hi=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var lh=Object.defineProperty,ci=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,oo=(e,t,r)=>t in e?lh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rs=(e,t)=>{for(var r in t||(t={}))Ja.call(t,r)&&oo(e,r,t[r]);if(ci)for(var r of ci(t))Qa.call(t,r)&&oo(e,r,t[r]);return e},rn=(e,t)=>{var r={};for(var n in e)Ja.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ci)for(var n of ci(e))t.indexOf(n)<0&&Qa.call(e,n)&&(r[n]=e[n]);return r};const xn=(e,t)=>{const{formats:r}=Qr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},uh=Hi(e=>{var t=e,{locale:r,format:n}=t,i=rn(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=xn("number",n)),new Intl.NumberFormat(r,i)}),fh=Hi(e=>{var t=e,{locale:r,format:n}=t,i=rn(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=xn("date",n):Object.keys(i).length===0&&(i=xn("date","short")),new Intl.DateTimeFormat(r,i)}),hh=Hi(e=>{var t=e,{locale:r,format:n}=t,i=rn(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=xn("time",n):Object.keys(i).length===0&&(i=xn("time","short")),new Intl.DateTimeFormat(r,i)}),ch=(e={})=>{var t=e,{locale:r=xr()}=t,n=rn(t,["locale"]);return uh(Rs({locale:r},n))},dh=(e={})=>{var t=e,{locale:r=xr()}=t,n=rn(t,["locale"]);return fh(Rs({locale:r},n))},vh=(e={})=>{var t=e,{locale:r=xr()}=t,n=rn(t,["locale"]);return hh(Rs({locale:r},n))},ph=Hi((e,t=xr())=>new Gf(e,t,Qr().formats,{ignoreTag:Qr().ignoreTag})),gh=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=xr(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Wa(e,l);if(!f)f=(s=(i=(n=(r=Qr()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=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(!o)return f;let v=f;try{v=ph(f,l).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return v},mh=(e,t)=>vh(t).format(e),_h=(e,t)=>dh(t).format(e),bh=(e,t)=>ch(t).format(e),yh=(e,t=xr())=>Wa(e,t),Ka=en([Tr,tn],()=>gh);en([Tr],()=>mh);en([Tr],()=>_h);en([Tr],()=>bh);en([Tr,tn],()=>yh);function ao(e,t){Os(e,t)}function lo(e){Tr.set(e)}const uo={en:{rank:"Rank",user:"User",points:"Points",prize:"Prize",notEnrolledRank:"You are currently not enrolled in this tournament.",leaderboardNotAvailable:"Leaderboard will be available soon.",myRanking:"My Ranking",showMore:"Show More",showLess:"Show Less",emptyLeaderboard:"Currently there are no players enrolled in this tournament",joinButton:"Join",previousButton:"Previous",nextButton:"Next"},tr:{rank:"Sıralama",user:"Kullanıcı",points:"Puan",prize:"Ödül",notEnrolledRank:"Şu anda bu turnuvaya kayıtlı değilsiniz.",leaderboardNotAvailable:"Liderlik tablosu yakında kullanıma sunulacak.",myRanking:"Sıralamam",showMore:"Daha Fazla Göster",showLess:"Daha Az Göster",emptyLeaderboard:"Şu anda bu turnuvaya kayıtlı oyuncu bulunmuyor.",joinButton:"Katıl",previousButton:"Önceki",nextButton:"Sonraki"},da:{rank:"Rang",user:"Bruger",points:"Point",prize:"Præmie",notEnrolledRank:"Du er i øjeblikket ikke tilmeldt denne turnering.",leaderboardNotAvailable:"Leaderboard vil være tilgængelig snart.",myRanking:"Min placering",showMore:"Vis mere",showLess:"Vis mindre",emptyLeaderboard:"Der er i øjeblikket ingen spillere tilmeldt denne turnering",previousButton:"Forrige",nextButton:"Næste",joinButton:"Deltag"}};var ds={exports:{}};/** @license
|
|
6
|
-
* eventsource.js
|
|
7
|
-
* Available under MIT License (MIT)
|
|
8
|
-
* https://github.com/Yaffle/EventSource/
|
|
9
|
-
*/(function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,s=r.XMLHttpRequest,a=r.XDomainRequest,o=r.ActiveXObject,l=r.EventSource,u=r.document,f=r.Promise,v=r.fetch,c=r.Response,p=r.TextDecoder,g=r.TextEncoder,b=r.AbortController;if(typeof window!="undefined"&&typeof u!="undefined"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(d){u.readyState="complete"},!1)),s==null&&o!=null&&(s=function(){return new o("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(d){function E(){}return E.prototype=d,new E}),Date.now||(Date.now=function(){return new Date().getTime()}),b==null){var _=v;v=function(d,E){var S=E.signal;return _(d,{headers:E.headers,credentials:E.credentials,cache:E.cache}).then(function(y){var N=y.body.getReader();return S._reader=N,S._aborted&&S._reader.cancel(),{status:y.status,statusText:y.statusText,headers:y.headers,body:{getReader:function(){return N}}}})},b=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function A(){this.bitsNeeded=0,this.codePoint=0}A.prototype.decode=function(d){function E(Z,ee,R){if(R===1)return Z>=128>>ee&&Z<<ee<=2047;if(R===2)return Z>=2048>>ee&&Z<<ee<=55295||Z>=57344>>ee&&Z<<ee<=65535;if(R===3)return Z>=65536>>ee&&Z<<ee<=1114111;throw new Error}function S(Z,ee){if(Z===6*1)return ee>>6>15?3:ee>31?2:1;if(Z===6*2)return ee>15?3:2;if(Z===6*3)return 3;throw new Error}for(var y=65533,N="",H=this.bitsNeeded,I=this.codePoint,ne=0;ne<d.length;ne+=1){var U=d[ne];H!==0&&(U<128||U>191||!E(I<<6|U&63,H-6,S(H,I)))&&(H=0,I=y,N+=String.fromCharCode(I)),H===0?(U>=0&&U<=127?(H=0,I=U):U>=192&&U<=223?(H=6*1,I=U&31):U>=224&&U<=239?(H=6*2,I=U&15):U>=240&&U<=247?(H=6*3,I=U&7):(H=0,I=y),H!==0&&!E(I,H,S(H,I))&&(H=0,I=y)):(H-=6,I=I<<6|U&63),H===0&&(I<=65535?N+=String.fromCharCode(I):(N+=String.fromCharCode(55296+(I-65535-1>>10)),N+=String.fromCharCode(56320+(I-65535-1&1023))))}return this.bitsNeeded=H,this.codePoint=I,N};var Q=function(){try{return new p().decode(new g().encode("test"),{stream:!0})==="test"}catch(d){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+d)}return!1};(p==null||g==null||!Q())&&(p=A);var P=function(){};function L(d){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=P,this.onload=P,this.onerror=P,this.onreadystatechange=P,this._contentType="",this._xhr=d,this._sendTimeout=0,this._abort=P}L.prototype.open=function(d,E){this._abort(!0);var S=this,y=this._xhr,N=1,H=0;this._abort=function(R){S._sendTimeout!==0&&(i(S._sendTimeout),S._sendTimeout=0),(N===1||N===2||N===3)&&(N=4,y.onload=P,y.onerror=P,y.onabort=P,y.onprogress=P,y.onreadystatechange=P,y.abort(),H!==0&&(i(H),H=0),R||(S.readyState=4,S.onabort(null),S.onreadystatechange())),N=0};var I=function(){if(N===1){var R=0,ie="",_t=void 0;if("contentType"in y)R=200,ie="OK",_t=y.contentType;else try{R=y.status,ie=y.statusText,_t=y.getResponseHeader("Content-Type")}catch(m){R=0,ie="",_t=void 0}R!==0&&(N=2,S.readyState=2,S.status=R,S.statusText=ie,S._contentType=_t,S.onreadystatechange())}},ne=function(){if(I(),N===2||N===3){N=3;var R="";try{R=y.responseText}catch(ie){}S.readyState=3,S.responseText=R,S.onprogress()}},U=function(R,ie){if((ie==null||ie.preventDefault==null)&&(ie={preventDefault:P}),ne(),N===1||N===2||N===3){if(N=4,H!==0&&(i(H),H=0),S.readyState=4,R==="load")S.onload(ie);else if(R==="error")S.onerror(ie);else if(R==="abort")S.onabort(ie);else throw new TypeError;S.onreadystatechange()}},Z=function(R){y!=null&&(y.readyState===4?(!("onload"in y)||!("onerror"in y)||!("onabort"in y))&&U(y.responseText===""?"error":"load",R):y.readyState===3?"onprogress"in y||ne():y.readyState===2&&I())},ee=function(){H=n(function(){ee()},500),y.readyState===3&&ne()};"onload"in y&&(y.onload=function(R){U("load",R)}),"onerror"in y&&(y.onerror=function(R){U("error",R)}),"onabort"in y&&(y.onabort=function(R){U("abort",R)}),"onprogress"in y&&(y.onprogress=ne),"onreadystatechange"in y&&(y.onreadystatechange=function(R){Z(R)}),("contentType"in y||!("ontimeout"in s.prototype))&&(E+=(E.indexOf("?")===-1?"?":"&")+"padding=true"),y.open(d,E,!0),"readyState"in y&&(H=n(function(){ee()},0))},L.prototype.abort=function(){this._abort(!1)},L.prototype.getResponseHeader=function(d){return this._contentType},L.prototype.setRequestHeader=function(d,E){var S=this._xhr;"setRequestHeader"in S&&S.setRequestHeader(d,E)},L.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},L.prototype.send=function(){if((!("ontimeout"in s.prototype)||!("sendAsBinary"in s.prototype)&&!("mozAnon"in s.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var d=this;d._sendTimeout=n(function(){d._sendTimeout=0,d.send()},4);return}var E=this._xhr;"withCredentials"in E&&(E.withCredentials=this.withCredentials);try{E.send(void 0)}catch(S){throw S}};function te(d){return d.replace(/[A-Z]/g,function(E){return String.fromCharCode(E.charCodeAt(0)+32)})}function ge(d){for(var E=Object.create(null),S=d.split(`\r
|
|
10
|
-
`),y=0;y<S.length;y+=1){var N=S[y],H=N.split(": "),I=H.shift(),ne=H.join(": ");E[te(I)]=ne}this._map=E}ge.prototype.get=function(d){return this._map[te(d)]},s!=null&&s.HEADERS_RECEIVED==null&&(s.HEADERS_RECEIVED=2);function re(){}re.prototype.open=function(d,E,S,y,N,H,I){d.open("GET",N);var ne=0;d.onprogress=function(){var Z=d.responseText,ee=Z.slice(ne);ne+=ee.length,S(ee)},d.onerror=function(Z){Z.preventDefault(),y(new Error("NetworkError"))},d.onload=function(){y(null)},d.onabort=function(){y(null)},d.onreadystatechange=function(){if(d.readyState===s.HEADERS_RECEIVED){var Z=d.status,ee=d.statusText,R=d.getResponseHeader("Content-Type"),ie=d.getAllResponseHeaders();E(Z,ee,R,new ge(ie))}},d.withCredentials=H;for(var U in I)Object.prototype.hasOwnProperty.call(I,U)&&d.setRequestHeader(U,I[U]);return d.send(),d};function st(d){this._headers=d}st.prototype.get=function(d){return this._headers.get(d)};function Ce(){}Ce.prototype.open=function(d,E,S,y,N,H,I){var ne=null,U=new b,Z=U.signal,ee=new p;return v(N,{headers:I,credentials:H?"include":"same-origin",signal:Z,cache:"no-store"}).then(function(R){return ne=R.body.getReader(),E(R.status,R.statusText,R.headers.get("Content-Type"),new st(R.headers)),new f(function(ie,_t){var m=function(){ne.read().then(function(T){if(T.done)ie(void 0);else{var x=ee.decode(T.value,{stream:!0});S(x),m()}}).catch(function(T){_t(T)})};m()})}).catch(function(R){if(R.name!=="AbortError")return R}).then(function(R){y(R)}),{abort:function(){ne!=null&&ne.cancel(),U.abort()}}};function je(){this._listeners=Object.create(null)}function Me(d){n(function(){throw d},0)}je.prototype.dispatchEvent=function(d){d.target=this;var E=this._listeners[d.type];if(E!=null)for(var S=E.length,y=0;y<S;y+=1){var N=E[y];try{typeof N.handleEvent=="function"?N.handleEvent(d):N.call(this,d)}catch(H){Me(H)}}},je.prototype.addEventListener=function(d,E){d=String(d);var S=this._listeners,y=S[d];y==null&&(y=[],S[d]=y);for(var N=!1,H=0;H<y.length;H+=1)y[H]===E&&(N=!0);N||y.push(E)},je.prototype.removeEventListener=function(d,E){d=String(d);var S=this._listeners,y=S[d];if(y!=null){for(var N=[],H=0;H<y.length;H+=1)y[H]!==E&&N.push(y[H]);N.length===0?delete S[d]:S[d]=N}};function ce(d){this.type=d,this.target=void 0}function $t(d,E){ce.call(this,d),this.data=E.data,this.lastEventId=E.lastEventId}$t.prototype=Object.create(ce.prototype);function Nt(d,E){ce.call(this,d),this.status=E.status,this.statusText=E.statusText,this.headers=E.headers}Nt.prototype=Object.create(ce.prototype);function rr(d,E){ce.call(this,d),this.error=E.error}rr.prototype=Object.create(ce.prototype);var nr=-1,Qe=0,Ve=1,Ee=2,Wt=-1,Ot=0,nn=1,In=2,sn=3,on=/^text\/event\-stream(;.*)?$/i,Mn=1e3,Ni=18e6,an=function(d,E){var S=d==null?E:parseInt(d,10);return S!==S&&(S=E),Sr(S)},Sr=function(d){return Math.min(Math.max(d,Mn),Ni)},Rt=function(d,E,S){try{typeof E=="function"&&E.call(d,S)}catch(y){Me(y)}};function Xe(d,E){je.call(this),E=E||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,un(this,d,E)}function ln(){return s!=null&&"withCredentials"in s.prototype||a==null?new s:new a}var Oi=v!=null&&c!=null&&"body"in c.prototype;function un(d,E,S){E=String(E);var y=!!S.withCredentials,N=S.lastEventIdQueryParameterName||"lastEventId",H=Sr(1e3),I=an(S.heartbeatTimeout,45e3),ne="",U=H,Z=!1,ee=0,R=S.headers||{},ie=S.Transport,_t=Oi&&ie==null?void 0:new L(ie!=null?new ie:ln()),m=ie!=null&&typeof ie!="string"?new ie:_t==null?new Ce:new re,T=void 0,x=0,V=nr,X="",le="",he="",Ae="",Y=Ot,ze=0,De=0,ir=function(M,J,me,_e){if(V===Qe)if(M===200&&me!=null&&on.test(me)){V=Ve,Z=Date.now(),U=H,d.readyState=Ve;var Oe=new Nt("open",{status:M,statusText:J,headers:_e});d.dispatchEvent(Oe),Rt(d,d.onopen,Oe)}else{var be="";M!==200?(J&&(J=J.replace(/\s+/g," ")),be="EventSource's response has a status "+M+" "+J+" that is not 200. Aborting the connection."):be="EventSource's response has a Content-Type specifying an unsupported type: "+(me==null?"-":me.replace(/\s+/g," "))+". Aborting the connection.",Pe();var Oe=new Nt("error",{status:M,statusText:J,headers:_e});d.dispatchEvent(Oe),Rt(d,d.onerror,Oe),console.error(be)}},qt=function(M){if(V===Ve){for(var J=-1,me=0;me<M.length;me+=1){var _e=M.charCodeAt(me);(_e===10||_e===13)&&(J=me)}var Oe=(J!==-1?Ae:"")+M.slice(0,J+1);Ae=(J===-1?Ae:"")+M.slice(J+1),M!==""&&(Z=Date.now(),ee+=M.length);for(var be=0;be<Oe.length;be+=1){var _e=Oe.charCodeAt(be);if(Y===Wt&&_e===10)Y=Ot;else if(Y===Wt&&(Y=Ot),_e===13||_e===10){if(Y!==Ot){Y===nn&&(De=be+1);var bt=Oe.slice(ze,De-1),ot=Oe.slice(De+(De<be&&Oe.charCodeAt(De)===32?1:0),be);bt==="data"?(X+=`
|
|
11
|
-
`,X+=ot):bt==="id"?le=ot:bt==="event"?he=ot:bt==="retry"?(H=an(ot,H),U=H):bt==="heartbeatTimeout"&&(I=an(ot,I),x!==0&&(i(x),x=n(function(){se()},I)))}if(Y===Ot){if(X!==""){ne=le,he===""&&(he="message");var Ar=new $t(he,{data:X.slice(1),lastEventId:le});if(d.dispatchEvent(Ar),he==="open"?Rt(d,d.onopen,Ar):he==="message"?Rt(d,d.onmessage,Ar):he==="error"&&Rt(d,d.onerror,Ar),V===Ee)return}X="",he=""}Y=_e===13?Wt:Ot}else Y===Ot&&(ze=be,Y=nn),Y===nn?_e===58&&(De=be+1,Y=In):Y===In&&(Y=sn)}}},Ke=function(M){if(V===Ve||V===Qe){V=nr,x!==0&&(i(x),x=0),x=n(function(){se()},U),U=Sr(Math.min(H*16,U*2)),d.readyState=Qe;var J=new rr("error",{error:M});d.dispatchEvent(J),Rt(d,d.onerror,J),M!=null&&console.error(M)}},Pe=function(){V=Ee,T!=null&&(T.abort(),T=void 0),x!==0&&(i(x),x=0),d.readyState=Ee},se=function(){if(x=0,V!==nr){if(!Z&&T!=null)Ke(new Error("No activity within "+I+" milliseconds. "+(V===Qe?"No response received.":ee+" chars received.")+" Reconnecting.")),T!=null&&(T.abort(),T=void 0);else{var M=Math.max((Z||Date.now())+I-Date.now(),1);Z=!1,x=n(function(){se()},M)}return}Z=!1,ee=0,x=n(function(){se()},I),V=Qe,X="",he="",le=ne,Ae="",ze=0,De=0,Y=Ot;var J=E;if(E.slice(0,5)!=="data:"&&E.slice(0,5)!=="blob:"&&ne!==""){var me=E.indexOf("?");J=me===-1?E:E.slice(0,me+1)+E.slice(me+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ot,Ar){return Ar===N?"":ot}),J+=(E.indexOf("?")===-1?"?":"&")+N+"="+encodeURIComponent(ne)}var _e=d.withCredentials,Oe={};Oe.Accept="text/event-stream";var be=d.headers;if(be!=null)for(var bt in be)Object.prototype.hasOwnProperty.call(be,bt)&&(Oe[bt]=be[bt]);try{T=m.open(_t,ir,qt,Ke,J,_e,Oe)}catch(ot){throw Pe(),ot}};d.url=E,d.readyState=Qe,d.withCredentials=y,d.headers=R,d._close=Pe,se()}Xe.prototype=Object.create(je.prototype),Xe.prototype.CONNECTING=Qe,Xe.prototype.OPEN=Ve,Xe.prototype.CLOSED=Ee,Xe.prototype.close=function(){this._close()},Xe.CONNECTING=Qe,Xe.OPEN=Ve,Xe.CLOSED=Ee,Xe.prototype.withCredentials=void 0;var Dn=l;s!=null&&(l==null||!("withCredentials"in l.prototype))&&(Dn=Xe),function(d){{var E=d(t);E!==void 0&&(e.exports=E)}}(function(d){d.EventSourcePolyfill=Xe,d.NativeEventSource=l,d.EventSource=Dn})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ha:globalThis)})(ds,ds.exports);var Eh=ds.exports,wh=Je('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span>',1),xh=Je('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r">—</span> <span class="svelte-1vfou2r">—</span>',1),fo=Je('<p class="NoPlayerData svelte-1vfou2r"> </p>'),Th=Je('<div class="PlayerRankWrapper svelte-1vfou2r"><div class="PlayerRankLabels svelte-1vfou2r"><span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span></div> <div class="PlayerRankData svelte-1vfou2r"><!></div></div>'),Sh=Je('<div class="PlayerRankSkeletonWrapper svelte-1vfou2r"><div class="PlayerRankSkeleton svelte-1vfou2r"></div> <div class="PlayerRankSkeleton svelte-1vfou2r"></div></div>'),Ah=Je('<tr class="SkeletonRow svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"></td></tr>'),Ph=Je('<tr><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td></tr>'),Hh=Je('<tr class="svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"><div class="EmptyLeaderboard svelte-1vfou2r"><p class="svelte-1vfou2r"> </p></div></td></tr>'),Nh=Je('<div class="PaginationSkeleton svelte-1vfou2r"><div class="PaginationSkeletonButton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationNumberSkeleton svelte-1vfou2r"></div> <div class="PaginationSkeletonButton svelte-1vfou2r"></div></div>'),Oh=Je('<span class="PaginationButton Elipsis svelte-1vfou2r">...</span>'),Rh=Je("<button> </button>"),Bh=Je('<div class="PaginationWrapper svelte-1vfou2r"><button class="PaginationButton svelte-1vfou2r"> </button> <div class="PageNumberWrapper svelte-1vfou2r"></div> <button class="PaginationButton svelte-1vfou2r"> </button></div>'),Ch=Je('<div class="LeaderboardWrapper svelte-1vfou2r"><div class="RankingWrapper svelte-1vfou2r"><!> <table class="LeaderboardTable svelte-1vfou2r"><thead class="LeaderboardTableHeader svelte-1vfou2r"><tr class="svelte-1vfou2r"><th class="svelte-1vfou2r"> </th><th class="svelte-1vfou2r"> </th><th class="svelte-1vfou2r"> </th><th class="svelte-1vfou2r"> </th></tr></thead><tbody class="LeaderboardTableBody svelte-1vfou2r"><!></tbody></table></div> <!> <!></div>');const Lh={hash:"svelte-1vfou2r",code:`.svelte-1vfou2r,
|
|
12
|
-
.svelte-1vfou2r::before,
|
|
13
|
-
.svelte-1vfou2r::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.LeaderboardWrapper.svelte-1vfou2r {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;}.PlayerRankWrapper.svelte-1vfou2r {display:flex;flex-direction:column;gap:5px;min-height:60px;.PlayerRankLabels:where(.svelte-1vfou2r), .PlayerRankData:where(.svelte-1vfou2r) {display:grid;grid-template-columns:1fr 1fr 2fr;padding:6px;color:var(--emw-color-typography-secondary, #bdbdbd);opacity:70%;font-size:14px;font-weight:400;& > span:where(.svelte-1vfou2r):last-child{justify-self:end;}p:where(.svelte-1vfou2r) {width:max-content;}.NoPlayerData:where(.svelte-1vfou2r) {grid-column:1 / -1;text-wrap:auto;width:auto;}}.PlayerRankData:where(.svelte-1vfou2r) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:12px;}}.PaginationWrapper.svelte-1vfou2r {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-1vfou2r) {display:flex;gap:6px;}.PaginationButton:where(.svelte-1vfou2r) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.LeaderboardTable.svelte-1vfou2r {border-collapse:separate;border-spacing:0 12px;width:100%;table-layout:fixed;overflow:hidden;.PlayerRow:where(.svelte-1vfou2r) {color:#F9C408;}thead:where(.svelte-1vfou2r) th:where(.svelte-1vfou2r) {background:transparent;padding:6px 16px;text-align:center;font-weight:400;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;}tbody:where(.svelte-1vfou2r) tr:where(.svelte-1vfou2r) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:500;&:last-child{justify-self:end;}}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r) {padding:12px;background-color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):first-child {border-top-left-radius:8px;border-bottom-left-radius:8px;width:15%;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):nth-child(2) {width:35%;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):nth-child(3) {width:20%;}tbody:where(.svelte-1vfou2r) td:where(.svelte-1vfou2r):last-child {border-top-right-radius:8px;border-bottom-right-radius:8px;width:30%;}th:where(.svelte-1vfou2r), td:where(.svelte-1vfou2r) {text-align:center;vertical-align:middle;}tbody:where(.svelte-1vfou2r) tr.Gold:where(.svelte-1vfou2r){background:linear-gradient(to right, #a2851a, color-mix(in srgb, #a2851a 50%, var(--emw-color-bg-secondary, #434343) 50%), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-1vfou2r) tr.Silver:where(.svelte-1vfou2r) {background:linear-gradient(to right, #b0aeae, color-mix(in srgb, #b0aeae, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-1vfou2r) tr.Bronze:where(.svelte-1vfou2r) {background:linear-gradient(to right, #ac763c, color-mix(in srgb, #ac763c, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}}.EmptyLeaderboard.svelte-1vfou2r {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography-secondary, #bdbdbd);width:100%;border-radius:8px;margin:10px 0;text-align:center;padding:10px 0;p:where(.svelte-1vfou2r) {text-wrap:auto;padding:0 15px;text-align:left;}}.SkeletonRow.svelte-1vfou2r {height:41px;overflow:hidden;background-color:var(--emw-color-skeleton, #535353);
|
|
14
|
-
animation: svelte-1vfou2r-pulse 1.5s infinite;}.PlayerRankSkeletonWrapper.svelte-1vfou2r {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-1vfou2r) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);border-radius:6px;
|
|
15
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}}.PaginationSkeleton.svelte-1vfou2r {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-1vfou2r) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
16
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-1vfou2r) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
17
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}}
|
|
18
|
-
|
|
19
|
-
@keyframes svelte-1vfou2r-pulse {
|
|
20
|
-
0% {
|
|
21
|
-
opacity: 0;
|
|
22
|
-
}
|
|
23
|
-
50% {
|
|
24
|
-
opacity: 1;
|
|
25
|
-
}
|
|
26
|
-
100% {
|
|
27
|
-
opacity: 0;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@media (min-width: 1000px) {.ShowPlayersButton.svelte-1vfou2r {display:block;width:300px;margin:auto;background-color:var(--emw-color-bg-primary, #212121);}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@media (min-width: 750px) {.PaginationWrapper.svelte-1vfou2r, .PaginationSkeleton.svelte-1vfou2r {justify-content:end;gap:10px;}.PaginationButton.svelte-1vfou2r {min-width:75px;}.PaginationSkeleton.svelte-1vfou2r {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-1vfou2r) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-1vfou2r) {width:25px;}}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@media (max-width: 475px) {.PaginationWrapper.svelte-1vfou2r {& .PaginationButton:where(.svelte-1vfou2r) {font-size:11px;&.Number {font-size:11px;}}}
|
|
38
|
-
}`};function Bs(e,t){mi(t,!0),Ta(e,Lh);const r=()=>Do(Ka,"$_",n),[n,i]=$o(),s=Fe(t,"endpoint"),a=Fe(t,"language",7,"en"),o=Fe(t,"session"),l=Fe(t,"tournamentid"),u=Fe(t,"platform"),f=Fe(t,"translationurl"),v=Fe(t,"newlyEnrolled"),c=()=>{let m=new URL(f());fetch(m.href).then(T=>T.json()).then(T=>{Object.keys(T).forEach(x=>{ao(x,T[x])})}).catch(T=>{console.log(T)})};Object.keys(uo).forEach(m=>{ao(m,uo[m])}),lo(a());const p=()=>{lo(a())};oa(()=>{f()&&c()}),li(()=>{p()});let g=null,b=Te(void 0),_=Te(!1),A=Te(!1),Q=Te(void 0),P=Te(void 0),L=Te(0),te=Te(10),ge=Te(!0),re=Te(void 0),st=Te(!1);const Ce=()=>{if(Ee.has(w(Ve)))return;oe(_,!0);const m=new URL(`${s()}/v1/tournaments/${l()}/leaderboard`),T=new Headers;o()&&T.append("X-SessionId",o()),m.searchParams.append("language",a()),m.searchParams.append("platform",u()),m.searchParams.append("pagination",`offset=${w(L)},limit=${w(te)}`),fetch(m).then(x=>x.json()).then(x=>{oe(b,x==null?void 0:x.items,!0),oe(re,x==null?void 0:x.total,!0),Ee.set(w(Ve),w(b)),w(ge)||oe(ge,!0)}).catch(x=>console.log(x)).finally(()=>oe(_,!1))},je=m=>{const T=JSON.parse(m.data);T&&T.messageType==="LeaderBoardUpdate"&&oe(b,T==null?void 0:T.items,!0)},Me=()=>{g&&(g.close(),g=null);const m=new URL(`${s()}/v1/tournaments/${l()}/leaderboard/updates`);m.searchParams.append("HeartBeat","false"),m.searchParams.append("language",a()),m.searchParams.append("filter","includeUnqualifiedPlayer=true"),m.searchParams.append("pagination",`offset=${w(L)},limit=${w(te)}`),m.searchParams.append("platform",u()),g=new Eh.EventSourcePolyfill(m,{headers:{accept:"text/event-stream","X-SessionId":o()}}),g.onmessage=je},ce=()=>{oe(A,!0);const m=new URL(`${s()}/v1/tournaments/leaderboard/player`),T=new Headers;m.searchParams.append("language",a()),m.searchParams.append("platform",u()),m.searchParams.append("filter","includeUnqualifiedPlayer=false"),o()&&T.append("X-SessionId",o()),fetch(m,{method:"GET",headers:T}).then(V=>V.json()).then(V=>{var le,he,Ae;const X=(le=V==null?void 0:V.items)==null?void 0:le.find(Y=>{var ze;return((ze=Y==null?void 0:Y.tournament)==null?void 0:ze.id)===l()});oe(Q,(he=X==null?void 0:X.tournament)==null?void 0:he.leaderBoard,!0),oe(P,X==null?void 0:X.endRank,!0),oe(st,(Ae=X==null?void 0:X.tournament)==null?void 0:Ae.playerEnrolled,!0)}).catch(V=>{console.log(V)}).finally(()=>oe(A,!1))},$t=()=>{w(L)<w(re)&&(oe(L,w(L)+w(te)),Ce(),Me())},Nt=()=>{w(L)!==0&&(oe(L,w(L)-w(te)),Ce(),Me())},rr=m=>{oe(L,(m-1)*w(te)),Ce(),Me()},Qe=Xn(()=>{const m=Math.ceil(w(re)/w(te)),T=Math.floor(w(L)/w(te))+1;if(m<=5)return Array.from({length:m},(V,X)=>X+1);const x=[];return x.push(1),T<=3?(x.push(2,3),x.push("..."),x.push(m)):T>=m-2?(x.push("..."),x.push(m-2,m-1,m)):(x.push("..."),x.push(T-1,T,T+1),x.push("..."),x.push(m)),x}),Ve=Xn(()=>Math.floor(w(L)/w(te))+1);let Ee=new Map,Wt=Xn(()=>{var m;return(m=Ee.get(w(Ve)))!=null?m:[]});const Ot=(m,T)=>{const x=[];return T&&x.push("PlayerRow"),m===1&&x.push("Gold"),m===2&&x.push("Silver"),m===3&&x.push("Bronze"),x.join(" ")},nn=m=>m?Math.floor(m):"-";li(()=>{v()&&ce()}),Ps(()=>(Ce(),ce(),Me(),()=>{g==null||g.close(),g=null}));var In={get endpoint(){return s()},set endpoint(m){s(m),Le()},get language(){return a()},set language(m="en"){a(m),Le()},get session(){return o()},set session(m){o(m),Le()},get tournamentid(){return l()},set tournamentid(m){l(m),Le()},get platform(){return u()},set platform(m){u(m),Le()},get translationurl(){return f()},set translationurl(m){f(m),Le()},get newlyEnrolled(){return v()},set newlyEnrolled(m){v(m),Le()}},sn=Ch(),on=G(sn),Mn=G(on);{var Ni=m=>{var T=Th(),x=G(T),V=G(x),X=G(V,!0);k(V);var le=He(V,2),he=G(le,!0);k(le);var Ae=He(le,2),Y=G(Ae,!0);k(Ae),k(x);var ze=He(x,2),De=G(ze);{var ir=se=>{var M=wh(),J=Rr(M),me=G(J);k(J);var _e=He(J,2),Oe=G(_e,!0);k(_e);var be=He(_e,2),bt=G(be,!0);k(be),at(()=>{var ot;de(me,`${(ot=w(Q).rank)!=null?ot:""}.`),de(Oe,w(Q).score),de(bt,w(Q).prizeName||"—")}),we(se,M)},qt=se=>{var M=xh(),J=Rr(M),me=G(J);k(J),gs(4),at(()=>{var _e;return de(me,`${(_e=w(P))!=null?_e:""}.`)}),we(se,M)},Ke=se=>{var M=fo(),J=G(M,!0);k(M),at(me=>de(J,me),[()=>r()("leaderboardNotAvailable")]),we(se,M)},Pe=se=>{var M=fo(),J=G(M,!0);k(M),at(me=>de(J,me),[()=>r()("notEnrolledRank")]),we(se,M)};sr(De,se=>{w(Q)?se(ir):w(P)?se(qt,1):w(st)?se(Ke,2):se(Pe,-1)})}k(ze),k(T),at((se,M,J)=>{de(X,se),de(he,M),de(Y,J)},[()=>r()("myRanking"),()=>r()("points"),()=>r()("prize")]),we(m,T)},an=m=>{var T=Sh();we(m,T)};sr(Mn,m=>{w(A)?m(an,-1):m(Ni)})}var Sr=He(Mn,2),Rt=G(Sr),Xe=G(Rt),ln=G(Xe),Oi=G(ln,!0);k(ln);var un=He(ln),Dn=G(un,!0);k(un);var d=He(un),E=G(d,!0);k(d);var S=He(d),y=G(S,!0);k(S),k(Xe),k(Rt);var N=He(Rt),H=G(N);{var I=m=>{var T=Zn(),x=Rr(T);Jn(x,17,()=>Array(w(te)),Yn,(V,X,le,he)=>{var Ae=Ah();we(V,Ae)}),we(m,T)},ne=m=>{var T=Zn(),x=Rr(T);Jn(x,17,()=>w(Wt),Yn,(V,X)=>{var le=Ph(),he=G(le),Ae=G(he);k(he);var Y=He(he),ze=G(Y,!0);k(Y);var De=He(Y),ir=G(De,!0);k(De);var qt=He(De),Ke=G(qt,!0);k(qt),k(le),at((Pe,se)=>{var M;ns(le,1,Pe,"svelte-1vfou2r"),de(Ae,`${(M=w(X).rank)!=null?M:""}.`),de(ze,w(X).shortName||"J.D"),de(ir,se),de(Ke,w(X).prizeName||"—")},[()=>{var Pe;return Aa(Ot(w(X).rank,w(X).rank===((Pe=w(Q))==null?void 0:Pe.rank)))},()=>nn(w(X).score)]),we(V,le)}),we(m,T)},U=m=>{var T=Hh(),x=G(T),V=G(x),X=G(V),le=G(X,!0);k(X),k(V),k(x),k(T),at(he=>de(le,he),[()=>r()("leaderboardNotAvailable")]),we(m,T)};sr(H,m=>{var T;w(_)?m(I):((T=w(b))==null?void 0:T.length)>0?m(ne,1):m(U,-1)})}k(N),k(Sr),k(on);var Z=He(on,2);{var ee=m=>{var T=Nh();we(m,T)};sr(Z,m=>{w(ge)||m(ee)})}var R=He(Z,2);{var ie=m=>{var T=Bh(),x=G(T),V=G(x,!0);k(x);var X=He(x,2);Jn(X,21,()=>w(Qe),Yn,(Ae,Y)=>{var ze=Zn(),De=Rr(ze);{var ir=Ke=>{var Pe=Oh();we(Ke,Pe)},qt=Ke=>{var Pe=Rh();let se;var M=G(Pe,!0);k(Pe),at(()=>{se=ns(Pe,1,"PaginationButton Number svelte-1vfou2r",null,se,{Active:w(Y)===w(Ve)}),de(M,w(Y))}),qn("click",Pe,()=>rr(w(Y))),we(Ke,Pe)};sr(De,Ke=>{typeof w(Y)!="number"?Ke(ir):Ke(qt,-1)})}we(Ae,ze)}),k(X);var le=He(X,2),he=G(le,!0);k(le),k(T),at((Ae,Y)=>{x.disabled=w(L)===0,de(V,Ae),le.disabled=w(L)>=w(re)-w(te),de(he,Y)},[()=>r()("previousButton"),()=>r()("nextButton")]),qn("click",x,Nt),qn("click",le,$t),we(m,T)};sr(R,m=>{w(ge)&&w(re)>w(te)&&m(ie)})}k(sn),at((m,T,x,V)=>{de(Oi,m),de(Dn,T),de(E,x),de(y,V)},[()=>r()("rank"),()=>r()("user"),()=>r()("points"),()=>r()("prize")]),we(e,sn);var _t=_i(In);return i(),_t}Ea(["click"]);Hs(Bs,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[],{mode:"open"});function el(e,t){mi(t,!0);let r=Fe(t,"endpoint"),n=Fe(t,"language",7,"en"),i=Fe(t,"session"),s=Fe(t,"tournamentid"),a=Fe(t,"platform"),o=Fe(t,"translationurl"),l=Fe(t,"newlyEnrolled");var u={get endpoint(){return r()},set endpoint(f){r(f),Le()},get language(){return n()},set language(f="en"){n(f),Le()},get session(){return i()},set session(f){i(f),Le()},get tournamentid(){return s()},set tournamentid(f){s(f),Le()},get platform(){return a()},set platform(f){a(f),Le()},get translationurl(){return o()},set translationurl(f){o(f),Le()},get newlyEnrolled(){return l()},set newlyEnrolled(f){l(f),Le()}};return Bs(e,{get endpoint(){return r()},get language(){return n()},get session(){return i()},get tournamentid(){return s()},get platform(){return a()},get translationurl(){return o()},get newlyEnrolled(){return l()}}),_i(u)}customElements.define("tournament-leaderboard",Hs(el,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[]));const Ih=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=tn;exports.$format=Ka;exports.$locale=Tr;exports.TournamentLeaderboard=Bs;exports.TournamentLeaderboard_ce=Ih;exports.addMessages=Os;exports.append=we;exports.append_styles=Ta;exports.child=G;exports.clsx=Aa;exports.comment=Zn;exports.commonjsGlobal=Ha;exports.create_custom_element=Hs;exports.delegate=Ea;exports.delegated=qn;exports.each=Jn;exports.first_child=Rr;exports.flushSync=Le;exports.from_html=Je;exports.get=w;exports.getDefaultExportFromCjs=Na;exports.html=Eu;exports.if_block=sr;exports.index=Yn;exports.next=gs;exports.onDestroy=mu;exports.onMount=Ps;exports.pop=_i;exports.prop=Fe;exports.proxy=Cr;exports.push=mi;exports.reset=k;exports.set=oe;exports.set_attribute=Nu;exports.set_class=ns;exports.set_style=Su;exports.set_text=de;exports.setup_stores=$o;exports.sibling=He;exports.state=Te;exports.store_get=Do;exports.template_effect=at;exports.text=hu;exports.user_derived=Xn;exports.user_effect=li;exports.user_pre_effect=oa;
|