@everymatrix/tournament-details-page 0.1.27 → 0.2.0
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/StatusBadge-BVcNxptf.cjs +8 -0
- package/components/StatusBadge-BnPuCJnO.js +7097 -0
- package/components/StatusBadge-CV5WC0Fx.cjs +8 -0
- package/components/StatusBadge-DKawANSc.js +7010 -0
- package/components/TournamentDetailsPage-Cy3rGC6M.cjs +27 -0
- package/components/TournamentDetailsPage-D4ZDEGSF.cjs +27 -0
- package/components/TournamentDetailsPage-DQ5X0Dqc.js +654 -0
- package/components/TournamentDetailsPage-LzqcZox2.js +691 -0
- package/components/TournamentDetailsSkeleton-CL0BOfFu.js +77 -0
- package/components/TournamentDetailsSkeleton-CpEie2Gb.cjs +15 -0
- package/components/TournamentDetailsSkeleton-CqfwFamx.js +77 -0
- package/components/TournamentDetailsSkeleton-u1WnYDq6.cjs +15 -0
- package/components/TournamentGames-B6UkeuiX.js +821 -0
- package/components/TournamentGames-CYxz1Jcl.cjs +34 -0
- package/components/TournamentGames-DO01jBJs.js +799 -0
- package/components/TournamentGames-Dt7xzVBn.cjs +34 -0
- package/components/TournamentImage-BeCXYKda.cjs +5 -0
- package/components/TournamentImage-BxaewAcW.js +177 -0
- package/components/TournamentImage-Cp5BEQ0s.js +180 -0
- package/components/TournamentImage-Dx0Km_cw.cjs +5 -0
- package/components/TournamentLeaderboard-BufvnLFX.js +1393 -0
- package/components/TournamentLeaderboard-D1mX3sal.cjs +38 -0
- package/components/TournamentLeaderboard-D9OPwUvy.cjs +38 -0
- package/components/TournamentLeaderboard-Dqbb_r0i.js +1451 -0
- package/components/TournamentRules-BbxvSZdU.cjs +6 -0
- package/components/TournamentRules-Bsxb9Asj.js +144 -0
- package/components/TournamentRules-DX1CVsV7.cjs +6 -0
- package/components/TournamentRules-SECANCVS.js +149 -0
- package/components/TournamentSummary-Ardxi8yJ.js +159 -0
- package/components/TournamentSummary-BGk055-K.cjs +3 -0
- package/components/TournamentSummary-CizBbtzd.cjs +3 -0
- package/components/TournamentSummary-Dnj0Cnzu.js +154 -0
- package/components/TournamentTabs-DEQtwaH4.cjs +4 -0
- package/components/TournamentTabs-DpLpOYtB.js +57 -0
- package/components/TournamentTabs-EGrABVKQ.cjs +4 -0
- package/components/TournamentTabs-FzkOjNA3.js +72 -0
- package/components/translations-BQS5XycD.js +146 -0
- package/components/translations-BSe2qToO.cjs +1 -0
- package/components/translations-DPzojb4V.js +146 -0
- package/components/translations-FufS-X5l.cjs +1 -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-BZghU11I.js +0 -436
- package/components/TournamentDetails-C_DjsiRO.js +0 -435
- package/components/TournamentDetails-DJkyA6Vc.cjs +0 -3
- package/components/TournamentDetails-_CAwLQSz.cjs +0 -3
- package/components/TournamentDetailsPage-6wv_wZG8.js +0 -715
- package/components/TournamentDetailsPage-B3pa9l3K.cjs +0 -36
- package/components/TournamentDetailsPage-D4d6LK8N.js +0 -736
- package/components/TournamentDetailsPage-Wti3EW2y.cjs +0 -36
- package/components/TournamentGames-BitHaGk1.cjs +0 -51
- package/components/TournamentGames-CPAgktBV.cjs +0 -51
- package/components/TournamentGames-D0Vx9asc.js +0 -1025
- package/components/TournamentGames-D4Zol0Yj.js +0 -999
- package/components/TournamentLeaderboard-BH1mlCiD.cjs +0 -46
- package/components/TournamentLeaderboard-BefYxI8Y.cjs +0 -46
- package/components/TournamentLeaderboard-CpJXePmH.js +0 -8055
- package/components/TournamentLeaderboard-DKFSvo2X.js +0 -8164
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const Ga="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Ga);const ja=1,Va=2,ns=4,Ya=8,Xa=16,za=1,Wa=2,is="[",hi="[!",$i="[?",ci="]",er={},He=Symbol("uninitialized"),ss="http://www.w3.org/1999/xhtml",qa="http://www.w3.org/2000/svg",Za="http://www.w3.org/1998/Math/MathML",as=!1;var os=Array.isArray,Ja=Array.prototype.indexOf,tn=Array.prototype.includes,vn=Array.from,rn=Object.keys,cr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,Qa=Object.getOwnPropertyDescriptors,Ka=Object.prototype,eo=Array.prototype,us=Object.getPrototypeOf,Ni=Object.isExtensible;const Ft=()=>{};function ls(e){for(var t=0;t<e.length;t++)e[t]()}function fs(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Ve=2,dr=4,Ir=8,hs=1<<24,bt=16,gt=32,$t=64,Fn=128,di=256,wt=512,$e=1024,Ae=2048,mt=4096,Ze=8192,Je=16384,rr=32768,Un=1<<25,vr=65536,nn=1<<17,to=1<<18,nr=1<<19,cs=1<<20,Pt=1<<25,sn=1<<21,hr=1<<22,Xt=1<<23,Hn=Symbol("$state"),ds=Symbol("component"),ro=Symbol("legacy props"),no=Symbol(""),vs=Symbol("attributes"),Gn=Symbol("class"),jn=Symbol("style"),Vn=Symbol("text"),kr=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},io=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Fr=3,xr=8;function so(){console.warn("https://svelte.dev/e/derived_inert")}function Ur(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ao(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let V=!1;function kt(e){V=e}let Z;function Ie(e){if(e===null)throw Ur(),er;return Z=e}function pr(){return Ie(St(Z))}function De(e){if(V){if(St(Z)!==null)throw Ur(),er;Z=e}}function vi(e=1){if(V){for(var t=e,r=Z;t--;)r=St(r);Z=r}}function an(e=!0){for(var t=0,r=Z;;){if(r.nodeType===xr){var n=r.data;if(n===ci){if(t===0)return r;t-=1}else(n===is||n===hi||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=St(r);e&&r.remove(),r=i}}function ps(e){if(!e||e.nodeType!==xr)throw Ur(),er;return e.data}function ms(e){return e===this.v}function gs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function _s(e){return!gs(e,this.v)}function bs(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function oo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function uo(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function lo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ho(e){throw new Error("https://svelte.dev/e/effect_orphan")}function co(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function vo(){throw new Error("https://svelte.dev/e/hydration_failed")}function po(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function go(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _o(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let bo=!1,je=null;function mr(e){je=e}function pn(e,t=!1,r){je={p:je,i:!1,c:null,e:null,s:e,x:null,r:z,l:null}}function mn(e){var t=je,r=t.e;if(r!==null){t.e=null;for(var n of r)ks(n)}return e!==void 0&&(t.x=e),t.i=!0,je=t.p,ys(e)}function ys(e={}){return cr(e,ds,{value:!0}),e}function Es(){return!0}let Zt=[];function ws(){var e=Zt;Zt=[],ls(e)}function Vt(e){if(Zt.length===0&&!Nr){var t=Zt;queueMicrotask(()=>{t===Zt&&ws()})}Zt.push(e)}function yo(){for(;Zt.length>0;)ws()}const Eo=-7169;function xe(e,t){e.f=e.f&Eo|t}function pi(e){e.f&wt||e.deps===null?xe(e,$e):xe(e,mt)}function xs(e,t,r){e.f&Ae?t.add(e):e.f&mt&&r.add(e),xe(e,$e)}function gn(e){var t=q,r=z;_t(null),Nt(null);try{return e()}finally{_t(t),Nt(r)}}function wo(e,t,r,n){const i=_n;var s=e.filter(d=>!d.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=z,u=xo(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function l(d){if(!(o.f&Je)){u();try{n([...a,...d])}catch(m){At(m,o)}on()}}var h=Ss();if(r.length===0){f.then(()=>l([])).finally(h);return}function c(){Promise.all(r.map(d=>So(d))).then(l).catch(d=>At(d,o)).finally(h)}f?f.then(()=>{u(),c(),on()}):c()}function xo(){var e=z,t=q,r=je,n=K;return function(s=!0){Nt(e),_t(t),mr(r),s&&!(e.f&Je)&&(n?.activate(),n?.apply())}}function on(e=!0){Nt(null),_t(null),mr(null),e&&K?.deactivate()}function Ss(){var e=z,t=e.b,r=K,n=!!t?.is_rendered();return t?.update_pending_count(1,r),r.increment(n,e),()=>{t?.update_pending_count(-1,r),r.decrement(n,e)}}function _n(e){var t=Ve|Ae;return z!==null&&(z.f|=nr),{ctx:je,deps:null,effects:null,equals:ms,f:t,fn:e,reactions:null,rv:0,v:He,wv:0,parent:z,ac:null}}const Hr=Symbol("obsolete");function So(e,t,r){let n=z;n===null&&oo();var i=void 0,s=tr(He),a=!q,o=new Set;return Co(()=>{var u=z,f=fs();i=f.promise;try{Promise.resolve(e()).then(f.resolve,d=>{d!==kr&&f.reject(d)}).finally(on)}catch(d){f.reject(d),on()}var l=K;if(a){if(u.f&rr)var h=Ss();if(n.b?.is_rendered())l.async_deriveds.get(u)?.reject(Hr);else for(const d of o.values())d.reject(Hr);o.add(f),l.async_deriveds.set(u,f)}const c=(d,m=void 0)=>{h?.(),o.delete(f),m!==Hr&&(l.activate(),m?(s.f|=Xt,gr(s,m)):(s.f&Xt&&(s.f^=Xt),gr(s,d)),l.deactivate())};f.promise.then(c,d=>c(null,d||"unknown"))}),Is(()=>{for(const u of o)u.reject(Hr)}),new Promise(u=>{function f(l){function h(){l===i?u(s):f(i)}l.then(h,h)}f(i)})}function Yr(e){const t=_n(e);return zs(t),t}function To(e){const t=_n(e);return t.equals=_s,t}function Ao(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Qe(t[r])}}function mi(e){var t,r=z,n=e.parent;if(!Gt&&n!==null&&e.v!==He&&n.f&(Je|Ze))return so(),e.v;Nt(n);try{Ao(e),t=Js(e)}finally{Nt(r)}return t}function Ts(e){var t=mi(e);if(!e.equals(t)&&(e.wv=qs(),(!K?.is_fork||e.deps===null)&&(K!==null?(K.capture(e,t,!0),Yn?.capture(e,t,!0)):e.v=t,e.deps===null))){xe(e,$e);return}Gt||(yt!==null?(yi()||K?.is_fork)&&yt.set(e,t):pi(e))}function Mo(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&gn(()=>{t.ac.abort(kr),t.ac=null}),t.fn!==null&&(t.teardown=Ft),Rr(t,0),wi(t))}function As(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&_r(t)}let On=null,ar=null,K=null,Yn=null,yt=null,Xn=null,Nr=!1,$n=!1,Lr=null,Xr=null;var Li=0;let Po=1;class Ut{id=Po++;#e=!1;linked=!0;#t=null;#r=null;async_deriveds=new Map;current=new Map;previous=new Map;#u=new Set;#i=new Set;#a=0;#n=new Map;#o=null;#s=[];#v=[];#l=new Set;#f=new Set;#c=new Map;#m=new Set;is_fork=!1;#h=!1;constructor(){ar===null?On=ar=this:(ar.#r=this,this.#t=ar),ar=this}#b(){if(this.is_fork)return!0;for(const n of this.#n.keys()){for(var t=n,r=!1;t.parent!==null;){if(this.#c.has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1}skip_effect(t){this.#c.has(t)||this.#c.set(t,{d:[],m:[]}),this.#m.delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=this.#c.get(t);if(n){this.#c.delete(t);for(var i of n.d)xe(i,Ae),r(i);for(i of n.m)xe(i,mt),r(i)}this.#m.add(t)}#y(){var t=[];for(const s of this.#s)if(!(s.f&Je||!(s.f&(Ae|mt)))){for(var r=s,n=!1;r.parent!==null;){r=r.parent;var i=r.f;if(i&($t|gt)){if(!(i&$e)){n=!0;break}r.f^=$e}}n||t.push(r)}return this.#s=[],t}#g(){this.#e=!0;for(const o of this.#l)this.#f.delete(o),xe(o,Ae),this.schedule(o);for(const o of this.#f)xe(o,mt),this.schedule(o);this.apply();for(var t=Lr=[],r=[],n=Xr=[];this.#s.length>0;){Li++>1e3&&(this.#p(),Ho());for(const o of this.#y())try{this.#_(o,t,r)}catch(u){throw Hs(o),this.#b()||this.discard(),u}}if(K=null,n.length>0){var i=Ut.ensure();for(const o of n)i.schedule(o)}if(Lr=null,Xr=null,this.#b()){this.#d(r),this.#d(t);for(const[o,u]of this.#c)Ps(o,u);n.length>0&&K.#g();return}const s=this.#x();if(s){this.#d(r),this.#d(t),s.#E(this);return}this.#l.clear(),this.#f.clear();for(const o of this.#u)o(this);this.#u.clear(),Yn=this,Bi(r),Bi(t),Yn=null,this.#o?.resolve();var a=K;if(this.#a===0&&(this.#s.length===0||a!==null)&&this.#p(),this.#s.length>0)if(a!==null){for(const o of this.#s)a.#s.push(o);this.#s=[]}else a=this;a!==null&&(Ht.clear(),a.#g())}#_(t,r,n){t.f^=$e;for(var i=t.first;i!==null;){var s=i.f,a=(s&(gt|$t))!==0,o=a&&(s&$e)!==0,u=o||(s&Ze)!==0||this.#c.has(i);if(!u&&i.fn!==null){a?i.f^=$e:s&dr?r.push(i):Gr(i)&&(s&bt&&this.#f.add(i),_r(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var l=i.next;if(l!==null){i=l;break}i=i.parent}}}#x(){for(var t=this.#t;t!==null;){if(!t.is_fork){for(const[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=t.#t}return null}#E(t){for(const[n,i]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,i);for(const[n,i]of t.async_deriveds){const s=this.async_deriveds.get(n);s&&i.promise.then(s.resolve).catch(s.reject)}t.async_deriveds.clear(),this.transfer_effects(t.#l,t.#f);const r=n=>{var i=n.reactions;if(i!==null&&!(n.f&Ve&&!(n.f&(Ae|mt))))for(const o of i){var s=o.f;if(s&Ve)r(o);else{var a=o;s&(hr|bt)&&!this.async_deriveds.has(a)&&(this.#f.delete(a),xe(a,Ae),this.schedule(a))}}};for(const n of this.current.keys())r(n);this.oncommit(()=>t.discard()),t.#p(),K=this,this.#g()}#d(t){for(var r=0;r<t.length;r+=1)xs(t[r],this.#l,this.#f)}capture(t,r,n=!1){t.v!==He&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&Xt||(this.current.set(t,[r,n]),yt?.set(t,r)),this.is_fork||(t.v=r)}activate(){K=this}deactivate(){K=null,yt=null}flush(){try{$n=!0,K=this,this.#g()}finally{Li=0,Xn=null,Lr=null,Xr=null,$n=!1,K=null,yt=null,Ht.clear()}}discard(){for(const t of this.#i)t(this);this.#i.clear();for(const t of this.async_deriveds.values())t.reject(Hr);this.#p(),this.#o?.resolve()}register_created_effect(t){this.#v.push(t)}#w(){for(let h=On;h!==null;h=h.#r){var t=h.id<this.id,r=[];for(const[c,[d,m]]of this.current){if(h.current.has(c)){var n=h.current.get(c)[0];if(t&&d!==n)h.current.set(c,[d,m]);else continue}r.push(c)}if(t)for(const[c,d]of this.async_deriveds){const m=h.async_deriveds.get(c);m&&d.promise.then(m.resolve).catch(m.reject)}var i=[...h.current.keys()].filter(c=>!h.current.get(c)[1]);if(!(!h.#e||i.length===0)){var s=i.filter(c=>!this.current.has(c));if(s.length===0)t&&h.discard();else if(r.length>0){if(t)for(const c of this.#m)h.unskip_effect(c,d=>{d.f&(bt|hr)?h.schedule(d):h.#d([d])});h.activate();var a=new Set,o=new Map;for(var u of r)Ms(u,s,a,o);o=new Map;var f=[...h.current].filter(([c,d])=>{const m=this.current.get(c);return m?m[0]!==d[0]||m[1]!==d[1]:!0}).map(([c])=>c);if(f.length>0)for(const c of this.#v)!(c.f&(Je|Ze|nn))&&gi(c,f,o)&&(c.f&(hr|bt)?(xe(c,Ae),h.schedule(c)):h.#l.add(c));if(h.#s.length>0&&!h.#h){h.apply();for(var l of h.#y())h.#_(l,[],[])}h.deactivate()}}}}increment(t,r){if(this.#a+=1,t){let n=this.#n.get(r)??0;this.#n.set(r,n+1)}}decrement(t,r){if(this.#a-=1,t){let n=this.#n.get(r)??0;n===1?this.#n.delete(r):this.#n.set(r,n-1)}this.#h||(this.#h=!0,Vt(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(t,r){for(const n of t)this.#l.add(n);for(const n of r)this.#f.add(n);t.clear(),r.clear()}oncommit(t){this.#u.add(t)}ondiscard(t){this.#i.add(t)}settled(){return(this.#o??=fs()).promise}static ensure(){if(K===null){const t=K=new Ut;!$n&&!Nr&&Vt(()=>{t.#e||t.flush()})}return K}apply(){{yt=null;return}}schedule(t){if(Xn=t,t.b?.is_pending&&t.f&(dr|Ir|hs)&&!(t.f&rr)){t.b.defer_effect(t);return}this.#s.push(t)}#p(){if(this.linked){var t=this.#t,r=this.#r;t===null?On=r:t.#r=r,r===null?ar=t:r.#t=t,this.linked=!1}}}function Ge(e){var t=Nr;Nr=!0;try{for(var r;;){if(yo(),K===null)return r;K.flush()}}finally{Nr=t}}function Ho(){try{co()}catch(e){At(e,Xn)}}let It=null;function Bi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Je|Ze))&&Gr(n)&&(It=new Set,_r(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Vs(n),It?.size>0)){Ht.clear();for(const i of It){if(i.f&(Je|Ze))continue;const s=[i];let a=i.parent;for(;a!==null;)It.has(a)&&(It.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(Je|Ze)||_r(u)}}It.clear()}}It=null}}function Ms(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&Ve?Ms(i,t,r,n):s&(hr|bt)&&!(s&Ae)&&gi(i,t,n)&&(xe(i,Ae),_i(i))}}function gi(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(tn.call(t,i))return!0;if(i.f&Ve&&gi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function _i(e){K.schedule(e)}function Ps(e,t){if(!(e.f>&&e.f&$e)){e.f&Ae?t.d.push(e):e.f&mt&&t.m.push(e),xe(e,$e);for(var r=e.first;r!==null;)Ps(r,t),r=r.next}}function Hs(e){xe(e,$e);for(var t=e.first;t!==null;)Hs(t),t=t.next}let un=new Set;const Ht=new Map;let Os=!1;function tr(e,t){var r={f:0,v:e,reactions:null,equals:ms,rv:0,wv:0};return r}function Oe(e,t){const r=tr(e);return zs(r),r}function bi(e,t=!1,r=!0){const n=tr(e);return t||(n.equals=_s),n}function ve(e,t,r=!1){q!==null&&(!Et||q.f&nn)&&Es()&&q.f&(Ve|bt|hr|nn)&&(Ot===null||!Ot.has(e))&&go();let n=r?lr(t):t;return gr(e,n,Xr)}var qt=null,zn=0;function gr(e,t,r=null){if(!e.equals(t)){Gt?Ht.set(e,t):Ht.has(e)||Ht.set(e,e.v);var n=Ut.ensure();if(n.capture(e,t),e.f&Ve){const i=e;e.f&Ae&&mi(i),yt===null&&pi(i)}e.wv=qs(),qt=null,zn=0,$s(e,Ae,r),qt=null,z!==null&&z.f&$e&&!(z.f&(gt|$t))&&(vt===null?Io([e]):vt.push(e)),!n.is_fork&&un.size>0&&!Os&&Oo()}return t}function Oo(){Os=!1;for(const e of un){e.f&$e&&xe(e,mt);let t;try{t=Gr(e)}catch{t=!0}t&&_r(e)}un.clear()}function Br(e){ve(e,e.v+1)}function $s(e,t,r){var n=e.reactions;if(n!==null){var i=n.length;if(zn+=i,zn>1e5&&qt===null&&(qt=new Set),qt!==null){if(qt.has(e))return;qt.add(e)}for(var s=0;s<i;s++){var a=n[s],o=a.f,u=(o&Ae)===0;if(u&&xe(a,t),o&nn)un.add(a);else if(o&Ve){var f=a;yt?.delete(f),$s(f,mt,r)}else if(u){var l=a;o&bt&&It!==null&&It.add(l),r!==null?r.push(l):_i(l)}}}}function lr(e){if(typeof e!="object"||e===null||Hn in e||ds in e)return e;const t=us(e);if(t!==Ka&&t!==eo)return e;var r=new Map,n=os(e),i=Oe(0),s=Kt,a=o=>{if(Kt===s)return o();var u=q,f=Kt;_t(null),Di(s);var l=o();return _t(u),Di(f),l};return n&&r.set("length",Oe(e.length)),new Proxy(e,{defineProperty(o,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&po();var l=r.get(u);return l===void 0?a(()=>{var h=Oe(f.value);return r.set(u,h),h}):ve(l,f.value,!0),!0},deleteProperty(o,u){var f=r.get(u);if(f===void 0){if(u in o){const l=a(()=>Oe(He));r.set(u,l),Br(i)}}else ve(f,He),Br(i);return!0},get(o,u,f){if(u===Hn)return e;var l=r.get(u),h=u in o;if(l===void 0&&(!h||fr(o,u)?.writable)&&(l=a(()=>{var d=lr(h?o[u]:He),m=Oe(d);return m}),r.set(u,l)),l!==void 0){var c=A(l);return c===He?void 0:c}return Reflect.get(o,u,f)},getOwnPropertyDescriptor(o,u){this.has?.(o,u);var f=Reflect.getOwnPropertyDescriptor(o,u),l=r.get(u);if(l!==void 0){var h=A(l);if(h===He)return;if(f&&"value"in f)f.value=h;else return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(o,u){if(u===Hn)return!0;var f=r.get(u),l=f!==void 0&&f.v!==He||Reflect.has(o,u);if(f!==void 0||z!==null&&(!l||fr(o,u)?.writable)){f===void 0&&(f=a(()=>{var c=l?lr(o[u]):He,d=Oe(c);return d}),r.set(u,f));var h=A(f);if(h===He)return!1}return l},set(o,u,f,l){var h=r.get(u),c=u in o;if(n&&u==="length")for(var d=f;d<h.v;d+=1){var m=r.get(d+"");m!==void 0?ve(m,He):d in o&&(m=a(()=>Oe(He)),r.set(d+"",m))}if(h===void 0)(!c||fr(o,u)?.writable)&&(h=a(()=>Oe(void 0)),ve(h,lr(f)),r.set(u,h));else{c=h.v!==He;var H=a(()=>lr(f));ve(h,H)}var p=Reflect.getOwnPropertyDescriptor(o,u);if(p?.set&&p.set.call(l,f),!c){if(n&&typeof u=="string"){var E=r.get("length"),O=Number(u);Number.isInteger(O)&&O>=E.v&&ve(E,O+1)}Br(i)}return!0},ownKeys(o){A(i);var u=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==He});for(var[f,l]of r)l.v!==He&&!(f in o)&&u.push(f);return u},setPrototypeOf(){mo()}})}var Ri,Ns,Ls,Bs;function Wn(){if(Ri===void 0){Ri=window,Ns=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ls=fr(t,"firstChild").get,Bs=fr(t,"nextSibling").get,Ni(e)&&(e[Gn]=void 0,e[vs]=null,e[jn]=void 0,e.__e=void 0),Ni(r)&&(r[Vn]=void 0)}}function nt(e=""){return document.createTextNode(e)}function ot(e){return Ls.call(e)}function St(e){return Bs.call(e)}function Ue(e,t){if(!V)return ot(e);var r=ot(Z);if(r===null)r=Z.appendChild(nt());else if(t&&r.nodeType!==Fr){var n=nt();return r?.before(n),Ie(n),n}return t&&yn(r),Ie(r),r}function ur(e,t=!1){if(!V){var r=ot(e);return r instanceof Comment&&r.data===""?St(r):r}if(t){if(Z?.nodeType!==Fr){var n=nt();return Z?.before(n),Ie(n),n}yn(Z)}return Z}function ye(e,t=!1){if(!V)return ot(e);var r=Ue(e,t);return De(e),r}function Le(e,t=1,r=!1){let n=V?Z:e;for(var i;t--;)i=n,n=St(n);if(!V)return n;if(r){if(n?.nodeType!==Fr){var s=nt();return n===null?i?.after(s):n.before(s),Ie(s),s}yn(n)}return Ie(n),n}function Rs(e){e.textContent=""}function Cs(){return!1}function bn(e,t,r){return t==null||t===ss?r?document.createElement(e,{is:r}):document.createElement(e):r?document.createElementNS(t,e,{is:r}):document.createElementNS(t,e)}function yn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Fr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function $o(e){var t=z;if(t===null)return q.f|=Xt,e;if(!(t.f&rr)&&!(t.f&dr))throw e;At(e,t)}function At(e,t){if(!(t!==null&&t.f&Je)){for(;t!==null;){if(t.f&Fn&&!(t.f&(Je|Un))){if(!(t.f&rr))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}function Ds(e){z===null&&(q===null&&ho(),fo()),Gt&&lo()}function No(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Tt(e,t){var r=z;r!==null&&r.f&Ze&&(e|=Ze);var n={ctx:je,deps:null,nodes:null,f:e|Ae|wt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};K?.register_created_effect(n);var i=n;if(e&dr)Lr!==null?Lr.push(n):Ut.ensure().schedule(n);else if(t!==null){try{_r(n)}catch(a){throw Qe(n),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&nr)&&(i=i.first,e&bt&&e&vr&&i!==null&&(i.f|=vr))}if(i!==null&&(i.parent=r,r!==null&&No(i,r),q!==null&&q.f&Ve&&!(e&$t))){var s=q;(s.effects??=[]).push(i)}return n}function yi(){return q!==null&&!Et}function Is(e){const t=Tt(Ir,null);return xe(t,$e),t.teardown=e,t}function ln(e){Ds();var t=z.f,r=!q&&(t>)!==0&&je!==null&&!je.i;if(r){var n=je;(n.e??=[]).push(e)}else return ks(e)}function ks(e){return Tt(dr|cs,e)}function Fs(e){return Ds(),Tt(Ir|cs,e)}function Lo(e){Ut.ensure();const t=Tt($t|nr,e);return()=>{Qe(t)}}function Bo(e){Ut.ensure();const t=Tt($t|nr,e);return(r={})=>new Promise(n=>{r.outro?Qt(t,()=>{Qe(t),n(void 0)}):(Qe(t),n(void 0))})}function Ro(e){return Tt(dr,e)}function Co(e){return Tt(hr|nr,e)}function Us(e,t=0){return Tt(Ir|t,e)}function dt(e,t=[],r=[],n=[]){wo(n,t,r,i=>{Tt(Ir,()=>{e(...i.map(A))})})}function Ei(e,t=0){var r=Tt(bt|t,e);return r}function pt(e){return Tt(gt|nr,e)}function Gs(e){var t=e.teardown;if(t!==null){const r=Gt,n=q;Ci(!0),_t(null);try{t.call(null)}catch(i){At(i,e.parent)}finally{Ci(r),_t(n)}}}function wi(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&gn(()=>{i.abort(kr)});var n=r.next;r.f&$t?r.parent=null:Qe(r,t),r=n}}function Do(e){for(var t=e.first;t!==null;){var r=t.next;t.f>||Qe(t),t=r}}function Qe(e,t=!0){var r=!1;(t||e.f&to)&&e.nodes!==null&&e.nodes.end!==null&&(js(e.nodes.start,e.nodes.end),r=!0),e.f|=Un,wi(e,t&&!r),Rr(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Gs(e),e.f^=Un,e.f|=Je;var i=e.parent;i!==null&&i.first!==null&&Vs(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function js(e,t){for(;e!==null;){var r=e===t?null:St(e);e.remove(),e=r}}function Vs(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 Qt(e,t,r=!0){var n=[];e.f|=di,Ys(e,n,!0);var i=()=>{r&&Qe(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function Ys(e,t,r){if(!(e.f&Ze)){e.f^=Ze;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&$t)){var a=(i.f&vr)!==0||(i.f>)!==0&&(e.f&bt)!==0;Ys(i,t,a?r:!1)}i=s}}}function fn(e){e.f&=~di,Xs(e,!0)}function Xs(e,t){if(!(e.f&di)&&e.f&Ze){e.f^=Ze,e.f&$e||(xe(e,Ae),Ut.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&vr)!==0||(r.f>)!==0;Xs(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 xi(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:St(r);t.append(r),r=i}}let zr=!1,Gt=!1;function Ci(e){Gt=e}let q=null,Et=!1;function _t(e){q=e}let z=null;function Nt(e){z=e}let Ot=null;function zs(e){q!==null&&(q.f&sn||q.f&Ve)&&(Ot??=new Set).add(e)}let rt=null,at=0,vt=null;function Io(e){vt=e}let Ws=1,Jt=0,Kt=Jt;function Di(e){Kt=e}function qs(){return++Ws}function Gr(e){var t=e.f;if(t&Ae)return!0;if(t&mt){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Gr(s)&&Ts(s),s.wv>e.wv)return!0}t&wt&&yt===null&&xe(e,$e)}return!1}function Zs(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Ot!==null&&Ot.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&Ve?Zs(s,t,!1):t===s&&(r?xe(s,Ae):s.f&$e&&xe(s,mt),_i(s))}}function Js(e){var t=rt,r=at,n=vt,i=q,s=Ot,a=je,o=Et,u=Kt,f=e.f;rt=null,at=0,vt=null,q=f&(gt|$t)?null:e,Ot=null,mr(e.ctx),Et=!1,Kt=++Jt,e.ac!==null&&(gn(()=>{e.ac.abort(kr)}),e.ac=null);try{e.f|=sn;var l=e.fn,h=l();e.f|=rr;var c=Ii(e);if(Es()&&vt!==null&&!Et&&c!==null&&!(e.f&(Ve|mt|Ae)))for(var d=0;d<vt.length;d++)Zs(vt[d],e);if(i!==null&&i!==e){if(Jt++,i.deps!==null)for(let m=0;m<r;m+=1)i.deps[m].rv=Jt;if(t!==null)for(const m of t)m.rv=Jt;vt!==null&&(n===null?n=vt:n.push(...vt))}return e.f&Xt&&(e.f^=Xt),h}catch(m){return Ii(e),$o(m)}finally{e.f^=sn,rt=t,at=r,vt=n,q=i,Ot=s,mr(a),Et=o,Kt=u}}function Ii(e){var t=e.deps,r=K?.is_fork;if(rt!==null){var n;if(r||Rr(e,at),t!==null&&at>0)for(t.length=at+rt.length,n=0;n<rt.length;n++)t[at+n]=rt[n];else e.deps=t=rt;if(yi()&&e.f&wt)for(n=at;n<t.length;n++)(t[n].reactions??=[]).push(e)}else!r&&t!==null&&at<t.length&&(Rr(e,at),t.length=at);return t}function ko(e,t){let r=t.reactions;if(r!==null){var n=Ja.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&Ve&&(rt===null||!tn.call(rt,t))){var s=t;s.f&wt&&(s.f^=wt),s.v!==He&&pi(s),s.ac!==null&&gn(()=>{s.ac.abort(kr),s.ac=null,xe(s,Ae)}),Mo(s),Rr(s,0)}}function Rr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ko(e,r[n])}function _r(e){var t=e.f;if(!(t&Je)){xe(e,$e);var r=z,n=zr;z=e,zr=(t&(gt|$t))===0;try{t&(bt|hs)?Do(e):wi(e),Gs(e);var i=Js(e);e.teardown=typeof i=="function"?i:null,e.wv=Ws;var s;as&&bo&&e.f&Ae&&e.deps}finally{zr=n,z=r}}}function A(e){var t=e.f,r=(t&Ve)!==0;if(q!==null&&!Et){var n=z!==null&&(z.f&Je)!==0;if(!n&&(Ot===null||!Ot.has(e))){var i=q.deps;if(q.f&sn)e.rv<Jt&&(e.rv=Jt,rt===null&&i!==null&&i[at]===e?at++:rt===null?rt=[e]:rt.push(e));else{q.deps??=[],tn.call(q.deps,e)||q.deps.push(e);var s=e.reactions;s===null?e.reactions=[q]:tn.call(s,q)||s.push(q)}}}if(Gt&&Ht.has(e))return Ht.get(e);if(r){var a=e;if(Gt){var o=a.v;return(!(a.f&$e)&&a.reactions!==null||Ks(a))&&(o=mi(a)),Ht.set(a,o),o}var u=(a.f&wt)===0&&!Et&&q!==null&&(zr||(q.f&wt)!==0),f=(a.f&rr)===0;Gr(a)&&(u&&(a.f|=wt),Ts(a)),u&&!f&&(As(a),Qs(a))}if(yt?.has(e))return yt.get(e);if(e.f&Xt)throw e.v;return e.v}function Qs(e){if(e.f|=wt,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),t.f&Ve&&!(t.f&wt)&&(As(t),Qs(t))}function Ks(e){if(e.v===He)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ht.has(t)||t.f&Ve&&Ks(t))return!0;return!1}function En(e){var t=Et;try{return Et=!0,e()}finally{Et=t}}const Or=Symbol("events"),ea=new Set,qn=new Set;function Wr(e,t,r){(t[Or]??={})[e]=r}function ta(e){for(var t=0;t<e.length;t++)ea.add(e[t]);for(var r of qn)r(e)}let Nn=null,Ln=!1;function ki(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Nn=e,Ln||(Ln=!0,setTimeout(()=>{Ln=!1,Nn=null}));var a=0,o=Nn===e&&e[Or];if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e[Or]=t;return}var f=i.indexOf(t);if(f===-1)return;u<=f&&(a=u)}if(s=i[a]||e.target,s!==t){cr(e,"currentTarget",{configurable:!0,get(){return s||r}});var l=q,h=z;_t(null),Nt(null);try{for(var c,d=[];s!==null&&s!==t;){try{var m=s[Or]?.[n];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(H){c?d.push(H):c=H}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(c){for(let H of d)queueMicrotask(()=>{throw H});throw c}}finally{e[Or]=t,delete e.currentTarget,_t(l),Nt(h)}}}const Fo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Uo(e){return Fo?.createHTML(e)??e}function Go(e){var t=bn("template");return t.innerHTML=Uo(e.replaceAll("<!>","<!---->")),t.content}function xt(e,t){var r=z;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function it(e,t){var r=(t&za)!==0,n=(t&Wa)!==0,i,s=!e.startsWith("<!>");return()=>{if(V)return xt(Z,null),Z;i===void 0&&(i=Go(s?e:"<!>"+e),r||(i=ot(i)));var a=n||Ns?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=ot(a),u=a.lastChild;xt(o,u)}else xt(a,a);return a}}function jo(e=""){if(!V){var t=nt(e+"");return xt(t,t),t}var r=Z;return r.nodeType!==Fr?(r.before(r=nt()),Ie(r)):yn(r),xt(r,r),r}function qr(){if(V)return xt(Z,null),Z;var e=document.createDocumentFragment(),t=document.createComment(""),r=nt();return e.append(t,r),xt(t,r),e}function Pe(e,t){if(V){var r=z;(!(r.f&rr)||r.nodes.end===null)&&(r.nodes.end=Z),pr();return}e!==null&&e.before(t)}const Vo=["touchstart","touchmove"];function Yo(e){return Vo.includes(e)}function Xo(e){let t=0,r=tr(0),n;return()=>{yi()&&(A(r),Us(()=>(t===0&&(n=En(()=>e(()=>Br(r)))),t+=1,()=>{Vt(()=>{t-=1,t===0&&(n?.(),n=void 0,Br(r))})})))}}var zo=vr|nr;function Wo(e,t,r,n){new qo(e,t,r,n)}class qo{parent;is_pending=!1;transform_error;#e;#t=V?Z:null;#r;#u;#i;#a=null;#n=null;#o=null;#s=null;#v=0;#l=0;#f=!1;#c=new Set;#m=new Set;#h=null;#b=Xo(()=>(this.#h=tr(this.#v),()=>{this.#h=null}));constructor(t,r,n,i){this.#e=t,this.#r=r,this.#u=s=>{var a=z;a.b=this,a.f|=Fn,n(s)},this.parent=z.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#i=Ei(()=>{if(V){const s=this.#t;pr();const a=s.data===hi;if(s.data.startsWith($i)){const u=JSON.parse(s.data.slice($i.length));this.#g(u)}else a?this.#x():this.#y()}else this.#E()},zo),V&&(this.#e=Z)}#y(){try{this.#a=pt(()=>this.#u(this.#e))}catch(t){this.error(t)}}#g(t){const r=this.#r.failed,{reset:n,invoke_onerror:i}=this.#_(t);Vt(i),r&&(this.#o=pt(()=>{r(this.#e,()=>t,()=>n)}))}#_(t){var r=!1,n=!1;const i=()=>{if(r){ao();return}r=!0,n&&_o(),this.#o!==null&&Qt(this.#o,()=>{this.#o=null}),this.#w(()=>{this.#E()})};return{reset:i,invoke_onerror:()=>{try{n=!0,this.#r.onerror?.(t,i),n=!1}catch(a){At(a,this.#i&&this.#i.parent)}}}}#x(){const t=this.#r.pending;t&&(this.is_pending=!0,this.#n=pt(()=>t(this.#e)),Vt(()=>{var r=this.#s=document.createDocumentFragment(),n=nt(),i=!1;if(r.append(n),this.#a=this.#w(()=>{try{return pt(()=>this.#u(n))}catch(s){try{this.error(s),i=!0}catch(a){At(a,this.#i.parent)}return null}}),this.#a===null){this.#s=null,i&&this.#d(K);return}this.#l===0&&(this.#e.before(r),this.#s=null,Qt(this.#n,()=>{this.#n=null}),this.#d(K))}))}#E(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#v=0,this.#a=pt(()=>{this.#u(this.#e)}),this.#l>0){var t=this.#s=document.createDocumentFragment();xi(this.#a,t);const r=this.#r.pending;this.#n=pt(()=>r(this.#e))}else this.#d(K)}catch(r){this.error(r)}}#d(t){this.is_pending=!1,t.transfer_effects(this.#c,this.#m)}defer_effect(t){xs(t,this.#c,this.#m)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#w(t){var r=z,n=q,i=je;Nt(this.#i),_t(this.#i),mr(this.#i.ctx);try{return Ut.ensure(),t()}finally{Nt(r),_t(n),mr(i)}}#p(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#p(t,r);return}this.#l+=t,this.#l===0&&(this.#d(r),this.#n&&Qt(this.#n,()=>{this.#n=null}),this.#s&&(this.#e.before(this.#s),this.#s=null))}update_pending_count(t,r){this.#p(t,r),this.#v+=t,!(!this.#h||this.#f)&&(this.#f=!0,Vt(()=>{this.#f=!1,this.#h&&gr(this.#h,this.#v)}))}get_effect_pending(){return this.#b(),A(this.#h)}error(t){if(!this.#r.onerror&&!this.#r.failed)throw t;K?.is_fork?(this.#a&&K.skip_effect(this.#a),this.#n&&K.skip_effect(this.#n),this.#o&&K.skip_effect(this.#o),K.oncommit(()=>{this.#S(t)})):this.#S(t)}#S(t){this.#a&&(Qe(this.#a),this.#a=null),this.#n&&(Qe(this.#n),this.#n=null),this.#o&&(Qe(this.#o),this.#o=null),V&&(Ie(this.#t),vi(),Ie(an()));let r=this.#r.failed;const n=i=>{const{reset:s,invoke_onerror:a}=this.#_(i);a(),r&&(this.#o=this.#w(()=>{try{return pt(()=>{var o=z;o.b=this,o.f|=Fn,r(this.#e,()=>i,()=>s)})}catch(o){return At(o,this.#i.parent),null}}))};Vt(()=>{var i;try{i=this.transform_error(t)}catch(s){At(s,this.#i&&this.#i.parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>At(s,this.#i&&this.#i.parent)):n(i)})}}function Ee(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e[Vn]??=e.nodeValue)&&(e[Vn]=r,e.nodeValue=`${r}`)}function ra(e,t){return na(e,t)}function Zo(e,t){Wn(),t.intro=t.intro??!1;const r=t.target,n=V,i=Z;try{for(var s=ot(r);s&&(s.nodeType!==xr||s.data!==is);)s=St(s);if(!s)throw er;kt(!0),Ie(s);const a=na(e,{...t,anchor:s});return kt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==er&&console.warn("Failed to hydrate: ",a),t.recover===!1&&vo(),Wn(),Rs(r),kt(!1),ra(e,t)}finally{kt(n),Ie(i)}}const jr=new Map;function na(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){Wn();var u=void 0,f=Bo(()=>{var l=r??t.appendChild(nt());Wo(l,{pending:()=>{}},d=>{pn({});var m=je;if(s&&(m.c=s),i&&(n.$$events=i),V&&xt(d,null),u=e(d,n)||ys(),V&&(z.nodes.end=Z,Z===null||Z.nodeType!==xr||Z.data!==ci))throw Ur(),er;mn()},o);var h=new Set,c=d=>{for(var m=0;m<d.length;m++){var H=d[m];if(!h.has(H)){h.add(H);var p=Yo(H);for(const _ of[t,document]){var E=jr.get(_);E===void 0&&(E=new Map,jr.set(_,E));var O=E.get(H);O===void 0?(_.addEventListener(H,ki,{passive:p}),E.set(H,1)):E.set(H,O+1)}}}};return c(vn(ea)),qn.add(c),()=>{for(var d of h)for(const p of[t,document]){var m=jr.get(p),H=m.get(d);--H==0?(p.removeEventListener(d,ki),m.delete(d),m.size===0&&jr.delete(p)):m.set(d,H)}qn.delete(c),l!==r&&l.parentNode?.removeChild(l)}});return Zn.set(u,f),u}let Zn=new WeakMap;function Jo(e,t){const r=Zn.get(e);return r?(Zn.delete(e),r(t)):Promise.resolve()}class Qo{anchor;#e=new Map;#t=new Map;#r=new Map;#u=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#a=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#t.get(r);if(n)fn(n),this.#u.delete(r);else{var i=this.#r.get(r);i&&(fn(i.effect),this.#t.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#r.get(a);o&&(Qe(o.effect),this.#r.delete(a))}for(const[s,a]of this.#t){if(s===r||this.#u.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();xi(a,f),f.append(nt()),this.#r.set(s,{effect:a,fragment:f})}else Qe(a);this.#u.delete(s),this.#t.delete(s)};this.#i||!n?(this.#u.add(s),Qt(a,o,!1)):o()}}};#n=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#r)r.includes(n)||(Qe(i.effect),this.#r.delete(n))};ensure(t,r){var n=K,i=Cs();if(r&&!this.#t.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=nt();s.append(a),this.#r.set(t,{effect:pt(()=>r(a)),fragment:s})}else this.#t.set(t,pt(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[o,u]of this.#t)o===t?n.unskip_effect(u):n.skip_effect(u);for(const[o,u]of this.#r)o===t?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(this.#a),n.ondiscard(this.#n)}else V&&(this.anchor=Z),this.#a(n)}}function Si(e){je===null&&bs(),ln(()=>{const t=En(e);if(typeof t=="function")return t})}function Ko(e){je===null&&bs(),Si(()=>()=>En(e))}function Wt(e,t,r=!1){var n;V&&(n=Z,pr());var i=new Qo(e),s=r?vr:0;function a(o,u){if(V){var f=ps(n);if(o!==parseInt(f.substring(1))){var l=an();Ie(l),i.anchor=l,kt(!1),i.ensure(o,u),kt(!0);return}}i.ensure(o,u)}Ei(()=>{var o=!1;t((u,f=0)=>{o=!0,a(f,u)}),o||a(-1,null)},s)}function Zr(e,t){return t}function eu(e,t,r){for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let h=t[o];Qt(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var c=e.outrogroups;Jn(e,vn(s.done)),c.delete(s),c.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=n.length===0&&r!==null&&e.pending.size===0;if(u){var f=r,l=f.parentNode;Rs(l),l.append(f),e.items.clear()}Jn(e,t,!u)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Jn(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?.has(s)){s.f|=Pt;const a=document.createDocumentFragment();xi(s,a)}else Qe(t[i],r)}}var Fi;function Jr(e,t,r,n,i,s=null){var a=e,o=new Map,u=(t&ns)!==0;if(u){var f=e;a=V?Ie(ot(f)):f.appendChild(nt())}V&&pr();var l=null,h=To(()=>{var _=r();return os(_)?_:_==null?[]:vn(_)}),c,d=new Map,m=!0;function H(_){O.effect.f&Je||(O.pending.delete(_),O.fallback=l,tu(O,c,a,t,n),l!==null&&(c.length===0?l.f&Pt?(l.f^=Pt,$r(l,null,a)):fn(l):Qt(l,()=>{l=null})))}function p(_){O.pending.delete(_)}var E=Ei(()=>{c=A(h);var _=c.length;let L=!1;if(V){var j=ps(a)===hi;j!==(_===0)&&(a=an(),Ie(a),kt(!1),L=!0)}for(var Y=new Set,ee=K,ae=Cs(),ne=0;ne<_;ne+=1){V&&Z.nodeType===xr&&Z.data===ci&&(a=Z,L=!0,kt(!1));var D=c[ne],C=n(D,ne),J=m?null:o.get(C);J?(J.v&&gr(J.v,D),J.i&&gr(J.i,ne),ae&&ee.unskip_effect(J.e)):(J=ru(o,m?a:Fi??=nt(),D,C,ne,i,t,r),m||(J.e.f|=Pt),o.set(C,J)),Y.add(C)}if(_===0&&s&&!l&&(m?l=pt(()=>s(a)):(l=pt(()=>s(Fi??=nt())),l.f|=Pt)),_>Y.size&&uo(),V&&_>0&&Ie(an()),!m)if(d.set(ee,Y),ae){for(const[Se,P]of o)Y.has(Se)||ee.skip_effect(P.e);ee.oncommit(H),ee.ondiscard(p)}else H(ee);L&&kt(!0),A(h)}),O={effect:E,items:o,pending:d,outrogroups:null,fallback:l};m=!1,V&&(a=Z)}function Mr(e){for(;e!==null&&!(e.f>);)e=e.next;return e}function tu(e,t,r,n,i){var s=(n&Ya)!==0,a=t.length,o=e.items,u=Mr(e.effect.first),f,l=null,h,c=[],d=[],m,H,p,E;if(s)for(E=0;E<a;E+=1)m=t[E],H=i(m,E),p=o.get(H).e,p.f&Pt||(p.nodes?.a?.measure(),(h??=new Set).add(p));for(E=0;E<a;E+=1){if(m=t[E],H=i(m,E),p=o.get(H).e,e.outrogroups!==null)for(const D of e.outrogroups)D.pending.delete(p),D.done.delete(p);if(p.f&Ze&&(fn(p),s&&(p.nodes?.a?.unfix(),(h??=new Set).delete(p))),p.f&Pt)if(p.f^=Pt,p===u)$r(p,null,r);else{var O=l?l.next:u;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),jt(e,l,p),jt(e,p,O),$r(p,O,r),l=p,c=[],d=[],u=Mr(l.next);continue}if(p!==u){if(f!==void 0&&f.has(p)){if(c.length<d.length){var _=d[0],L;l=_.prev;var j=c[0],Y=c[c.length-1];for(L=0;L<c.length;L+=1)$r(c[L],_,r);for(L=0;L<d.length;L+=1)f.delete(d[L]);jt(e,j.prev,Y.next),jt(e,l,j),jt(e,Y,_),u=_,l=Y,E-=1,c=[],d=[]}else f.delete(p),$r(p,u,r),jt(e,p.prev,p.next),jt(e,p,l===null?e.effect.first:l.next),jt(e,l,p),l=p;continue}for(c=[],d=[];u!==null&&u!==p;)(f??=new Set).add(u),d.push(u),u=Mr(u.next);if(u===null)continue}p.f&Pt||c.push(p),l=p,u=Mr(p.next)}if(e.outrogroups!==null){for(const D of e.outrogroups)D.pending.size===0&&(Jn(e,vn(D.done)),e.outrogroups?.delete(D));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||f!==void 0){var ee=[];if(f!==void 0)for(p of f)p.f&Ze||ee.push(p);for(;u!==null;)!(u.f&Ze)&&u!==e.fallback&&ee.push(u),u=Mr(u.next);var ae=ee.length;if(ae>0){var ne=n&ns&&a===0?r:null;if(s){for(E=0;E<ae;E+=1)ee[E].nodes?.a?.measure();for(E=0;E<ae;E+=1)ee[E].nodes?.a?.fix()}eu(e,ee,ne)}}s&&Vt(()=>{if(h!==void 0)for(p of h)p.nodes?.a?.apply()})}function ru(e,t,r,n,i,s,a,o){var u=a&ja?a&Xa?tr(r):bi(r,!1,!1):null,f=a&Va?tr(i):null;return{v:u,i:f,e:pt(()=>(s(t,u??r,f??i,o),()=>{e.delete(n)}))}}function $r(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Pt)?t.nodes.start:r;n!==null;){var a=St(n);if(s.before(n),n===i)return;n=a}}function jt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function nu(e,t,r=!1,n=!1,i=!1,s=!1){var a=e,o="";if(r){var u=e;V&&(a=Ie(ot(u)))}dt(()=>{var f=z;if(o===(o=t()??"")){V&&pr();return}if(r&&!V){f.nodes=null,u.innerHTML=o,o!==""&&xt(ot(u),u.lastChild);return}if(f.nodes!==null&&(js(f.nodes.start,f.nodes.end),f.nodes=null),o!==""){if(V){Z.data;for(var l=pr(),h=l;l!==null&&(l.nodeType!==xr||l.data!=="");)h=l,l=St(l);if(l===null)throw Ur(),er;xt(Z,h),a=Ie(l);return}var c=n?qa:i?Za:void 0,d=bn(n?"svg":i?"math":"template",c);d.innerHTML=o;var m=n||i?d:d.content;if(xt(ot(m),m.lastChild),n||i)for(;ot(m);)a.before(ot(m));else a.before(m)}})}function ia(e,t){Ro(()=>{e=z?.parent?.nodes?.start??e;var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=bn("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}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 iu(){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"?iu(e):e??""}const Ui=[...`
|
|
3
|
-
\r\f \v\uFEFF`];function su(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||Ui.includes(n[a-1]))&&(o===n.length||Ui.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function au(e,t){return e==null?null:String(e)}function Qn(e,t,r,n,i,s){var a=e[Gn];if(V||a!==r||a===void 0){var o=su(r,n,s);(!V||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[Gn]=r}else if(s&&i!==s)for(var u in s){var f=!!s[u];(i==null||f!==!!i[u])&&e.classList.toggle(u,f)}return s}function ou(e,t,r,n){var i=e[jn];if(V||i!==t){var s=au(t);(!V||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e[jn]=t}return n}const uu=Symbol("is custom element"),lu=Symbol("is html"),fu=io?"link":"LINK";function hu(e,t,r,n){var i=cu(e);V&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===fu)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[no]=r),r==null?e.removeAttribute(t):typeof r!="string"&&du(e).has(t)?e[t]=r:e.setAttribute(t,r))}function cu(e){return e[vs]??={[uu]:e.nodeName.includes("-"),[lu]:e.namespaceURI===ss}}var Gi=new Map;function du(e){var t=e.getAttribute("is")||e.nodeName,r=Gi.get(t);if(r)return r;Gi.set(t,r=new Set);for(var n,i=e,s=Element.prototype;s!==i;){n=Qa(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=us(i)}return r}function Ti(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Ft;const n=En(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const or=[];function vu(e,t){return{subscribe:wn(e,t).subscribe}}function wn(e,t=Ft){let r=null;const n=new Set;function i(o){if(gs(e,o)&&(e=o,r)){const u=!or.length;for(const f of n)f[1](),or.push(f,e);if(u){for(let f=0;f<or.length;f+=2)or[f][0](or[f+1]);or.length=0}}}function s(o){i(o(e))}function a(o,u=Ft){const f=[o,u];return n.add(f),n.size===1&&(r=t(i,s)||Ft),o(e),()=>{n.delete(f),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function Sr(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 vu(r,(a,o)=>{let u=!1;const f=[];let l=0,h=Ft;const c=()=>{if(l)return;h();const m=t(n?f[0]:f,a,o);s?a(m):h=typeof m=="function"?m:Ft},d=i.map((m,H)=>Ti(m,p=>{f[H]=p,l&=~(1<<H),u&&c()},()=>{l|=1<<H}));return u=!0,c(),function(){ls(d),h(),u=!1}})}function pu(e){let t;return Ti(e,r=>t=r)(),t}let Kn=Symbol("unmounted");function oa(e,t,r){const n=r[t]??={store:null,source:bi(void 0),unsubscribe:Ft};if(n.store!==e&&!(Kn in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Ft;else{var i=!0;n.unsubscribe=Ti(e,s=>{i?n.source.v=s:ve(n.source,s)}),i=!1}return e&&Kn in r?pu(e):A(n.source)}function ua(){const e={};function t(){Is(()=>{for(var r in e)e[r].unsubscribe();cr(e,Kn,{enumerable:!1,value:!0})})}return[e,t]}function qe(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 u;u=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var f=!1,l=_n(()=>(f=!1,u())),h=z;return function(c,d){if(arguments.length>0){const m=d?A(l):c;return ve(l,m),f=!0,i!==void 0&&(i=m),c}return Gt&&f||h.f&Je?l.v:A(l)}}function mu(e){return new gu(e)}class gu{#e;#t;constructor(t){var r=new Map,n=(s,a)=>{var o=bi(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===ro?!0:(A(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return ve(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#t=(t.hydrate?Zo:ra)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ge(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||cr(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{Jo(this.#t)}}$set(t){this.#t.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}let la;typeof HTMLElement=="function"&&(la=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const a=bn("slot");i!=="default"&&(a.name=i),Pe(s,a)}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=_u(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=Qr(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=mu({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Lo(()=>{Us(()=>{this.$$r=!0;for(const i of rn(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const s=Qr(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Qr(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return rn(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Qr(e,t,r,n){const i=r[e]?.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;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 _u(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ai(e,t,r,n,i,s){let a=class extends la{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return rn(t).map(o=>(t[o].attribute||o).toLowerCase())}};return rn(t).forEach(o=>{cr(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=Qr(o,u,t),this.$$d[o]=u;var f=this.$$c;if(f){var l=fr(f,o)?.get;l?f[o]=u:f.$set({[o]:u})}}})}),n.forEach(o=>{cr(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const fa=e=>{const t=new Headers;return e&&t.append("X-SessionId",e),t},bu=async e=>{const t=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}`);return e.filterById&&t.searchParams.append("filter",`id=${e.tournamentid}`),t.searchParams.append("language",e.language),t.searchParams.append("expand","games"),e.gamesLimit!==void 0&&t.searchParams.append("pagination",`games(limit=${e.gamesLimit},offset=${e.gamesOffset??0})`),t.searchParams.append("platform",e.platform),(await(await fetch(t,{method:"GET",headers:fa(e.session)})).json())?.item};var xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ei={exports:{}};/** @license
|
|
4
|
-
* eventsource.js
|
|
5
|
-
* Available under MIT License (MIT)
|
|
6
|
-
* https://github.com/Yaffle/EventSource/
|
|
7
|
-
*/(function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,s=r.XMLHttpRequest,a=r.XDomainRequest,o=r.ActiveXObject,u=r.EventSource,f=r.document,l=r.Promise,h=r.fetch,c=r.Response,d=r.TextDecoder,m=r.TextEncoder,H=r.AbortController;if(typeof window<"u"&&typeof f<"u"&&!("readyState"in f)&&f.body==null&&(f.readyState="loading",window.addEventListener("load",function(v){f.readyState="complete"},!1)),s==null&&o!=null&&(s=function(){return new o("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(v){function S(){}return S.prototype=v,new S}),Date.now||(Date.now=function(){return new Date().getTime()}),H==null){var p=h;h=function(v,S){var M=S.signal;return p(v,{headers:S.headers,credentials:S.credentials,cache:S.cache}).then(function(w){var I=w.body.getReader();return M._reader=I,M._aborted&&M._reader.cancel(),{status:w.status,statusText:w.statusText,headers:w.headers,body:{getReader:function(){return I}}}})},H=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function E(){this.bitsNeeded=0,this.codePoint=0}E.prototype.decode=function(v){function S(ie,oe,k){if(k===1)return ie>=128>>oe&&ie<<oe<=2047;if(k===2)return ie>=2048>>oe&&ie<<oe<=55295||ie>=57344>>oe&&ie<<oe<=65535;if(k===3)return ie>=65536>>oe&&ie<<oe<=1114111;throw new Error}function M(ie,oe){if(ie===6*1)return oe>>6>15?3:oe>31?2:1;if(ie===6*2)return oe>15?3:2;if(ie===6*3)return 3;throw new Error}for(var w=65533,I="",N=this.bitsNeeded,G=this.codePoint,he=0;he<v.length;he+=1){var X=v[he];N!==0&&(X<128||X>191||!S(G<<6|X&63,N-6,M(N,G)))&&(N=0,G=w,I+=String.fromCharCode(G)),N===0?(X>=0&&X<=127?(N=0,G=X):X>=192&&X<=223?(N=6*1,G=X&31):X>=224&&X<=239?(N=6*2,G=X&15):X>=240&&X<=247?(N=6*3,G=X&7):(N=0,G=w),N!==0&&!S(G,N,M(N,G))&&(N=0,G=w)):(N-=6,G=G<<6|X&63),N===0&&(G<=65535?I+=String.fromCharCode(G):(I+=String.fromCharCode(55296+(G-65535-1>>10)),I+=String.fromCharCode(56320+(G-65535-1&1023))))}return this.bitsNeeded=N,this.codePoint=G,I};var O=function(){try{return new d().decode(new m().encode("test"),{stream:!0})==="test"}catch(v){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+v)}return!1};(d==null||m==null||!O())&&(d=E);var _=function(){};function L(v){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=_,this.onload=_,this.onerror=_,this.onreadystatechange=_,this._contentType="",this._xhr=v,this._sendTimeout=0,this._abort=_}L.prototype.open=function(v,S){this._abort(!0);var M=this,w=this._xhr,I=1,N=0;this._abort=function(k){M._sendTimeout!==0&&(i(M._sendTimeout),M._sendTimeout=0),(I===1||I===2||I===3)&&(I=4,w.onload=_,w.onerror=_,w.onabort=_,w.onprogress=_,w.onreadystatechange=_,w.abort(),N!==0&&(i(N),N=0),k||(M.readyState=4,M.onabort(null),M.onreadystatechange())),I=0};var G=function(){if(I===1){var k=0,g="",F=void 0;if("contentType"in w)k=200,g="OK",F=w.contentType;else try{k=w.status,g=w.statusText,F=w.getResponseHeader("Content-Type")}catch{k=0,g="",F=void 0}k!==0&&(I=2,M.readyState=2,M.status=k,M.statusText=g,M._contentType=F,M.onreadystatechange())}},he=function(){if(G(),I===2||I===3){I=3;var k="";try{k=w.responseText}catch{}M.readyState=3,M.responseText=k,M.onprogress()}},X=function(k,g){if((g==null||g.preventDefault==null)&&(g={preventDefault:_}),he(),I===1||I===2||I===3){if(I=4,N!==0&&(i(N),N=0),M.readyState=4,k==="load")M.onload(g);else if(k==="error")M.onerror(g);else if(k==="abort")M.onabort(g);else throw new TypeError;M.onreadystatechange()}},ie=function(k){w!=null&&(w.readyState===4?(!("onload"in w)||!("onerror"in w)||!("onabort"in w))&&X(w.responseText===""?"error":"load",k):w.readyState===3?"onprogress"in w||he():w.readyState===2&&G())},oe=function(){N=n(function(){oe()},500),w.readyState===3&&he()};"onload"in w&&(w.onload=function(k){X("load",k)}),"onerror"in w&&(w.onerror=function(k){X("error",k)}),"onabort"in w&&(w.onabort=function(k){X("abort",k)}),"onprogress"in w&&(w.onprogress=he),"onreadystatechange"in w&&(w.onreadystatechange=function(k){ie(k)}),("contentType"in w||!("ontimeout"in s.prototype))&&(S+=(S.indexOf("?")===-1?"?":"&")+"padding=true"),w.open(v,S,!0),"readyState"in w&&(N=n(function(){oe()},0))},L.prototype.abort=function(){this._abort(!1)},L.prototype.getResponseHeader=function(v){return this._contentType},L.prototype.setRequestHeader=function(v,S){var M=this._xhr;"setRequestHeader"in M&&M.setRequestHeader(v,S)},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))&&f!=null&&f.readyState!=null&&f.readyState!=="complete"){var v=this;v._sendTimeout=n(function(){v._sendTimeout=0,v.send()},4);return}var S=this._xhr;"withCredentials"in S&&(S.withCredentials=this.withCredentials);try{S.send(void 0)}catch(M){throw M}};function j(v){return v.replace(/[A-Z]/g,function(S){return String.fromCharCode(S.charCodeAt(0)+32)})}function Y(v){for(var S=Object.create(null),M=v.split(`\r
|
|
8
|
-
`),w=0;w<M.length;w+=1){var I=M[w],N=I.split(": "),G=N.shift(),he=N.join(": ");S[j(G)]=he}this._map=S}Y.prototype.get=function(v){return this._map[j(v)]},s!=null&&s.HEADERS_RECEIVED==null&&(s.HEADERS_RECEIVED=2);function ee(){}ee.prototype.open=function(v,S,M,w,I,N,G){v.open("GET",I);var he=0;v.onprogress=function(){var ie=v.responseText,oe=ie.slice(he);he+=oe.length,M(oe)},v.onerror=function(ie){ie.preventDefault(),w(new Error("NetworkError"))},v.onload=function(){w(null)},v.onabort=function(){w(null)},v.onreadystatechange=function(){if(v.readyState===s.HEADERS_RECEIVED){var ie=v.status,oe=v.statusText,k=v.getResponseHeader("Content-Type"),g=v.getAllResponseHeaders();S(ie,oe,k,new Y(g))}},v.withCredentials=N;for(var X in G)Object.prototype.hasOwnProperty.call(G,X)&&v.setRequestHeader(X,G[X]);return v.send(),v};function ae(v){this._headers=v}ae.prototype.get=function(v){return this._headers.get(v)};function ne(){}ne.prototype.open=function(v,S,M,w,I,N,G){var he=null,X=new H,ie=X.signal,oe=new d;return h(I,{headers:G,credentials:N?"include":"same-origin",signal:ie,cache:"no-store"}).then(function(k){return he=k.body.getReader(),S(k.status,k.statusText,k.headers.get("Content-Type"),new ae(k.headers)),new l(function(g,F){var U=function(){he.read().then(function(ue){if(ue.done)g(void 0);else{var re=oe.decode(ue.value,{stream:!0});M(re),U()}}).catch(function(ue){F(ue)})};U()})}).catch(function(k){if(k.name!=="AbortError")return k}).then(function(k){w(k)}),{abort:function(){he?.cancel(),X.abort()}}};function D(){this._listeners=Object.create(null)}function C(v){n(function(){throw v},0)}D.prototype.dispatchEvent=function(v){v.target=this;var S=this._listeners[v.type];if(S!=null)for(var M=S.length,w=0;w<M;w+=1){var I=S[w];try{typeof I.handleEvent=="function"?I.handleEvent(v):I.call(this,v)}catch(N){C(N)}}},D.prototype.addEventListener=function(v,S){v=String(v);var M=this._listeners,w=M[v];w==null&&(w=[],M[v]=w);for(var I=!1,N=0;N<w.length;N+=1)w[N]===S&&(I=!0);I||w.push(S)},D.prototype.removeEventListener=function(v,S){v=String(v);var M=this._listeners,w=M[v];if(w!=null){for(var I=[],N=0;N<w.length;N+=1)w[N]!==S&&I.push(w[N]);I.length===0?delete M[v]:M[v]=I}};function J(v){this.type=v,this.target=void 0}function Se(v,S){J.call(this,v),this.data=S.data,this.lastEventId=S.lastEventId}Se.prototype=Object.create(J.prototype);function P(v,S){J.call(this,v),this.status=S.status,this.statusText=S.statusText,this.headers=S.headers}P.prototype=Object.create(J.prototype);function x(v,S){J.call(this,v),this.error=S.error}x.prototype=Object.create(J.prototype);var b=-1,T=0,y=1,$=2,B=-1,R=0,te=1,se=2,me=3,Ne=/^text\/event\-stream(;.*)?$/i,ut=1e3,Ke=18e6,Ye=function(v,S){var M=v==null?S:parseInt(v,10);return M!==M&&(M=S),Be(M)},Be=function(v){return Math.min(Math.max(v,ut),Ke)},le=function(v,S,M){try{typeof S=="function"&&S.call(v,M)}catch(w){C(w)}};function fe(v,S){D.call(this),S=S||{},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,Lt(this,v,S)}function et(){return s!=null&&"withCredentials"in s.prototype||a==null?new s:new a}var lt=h!=null&&c!=null&&"body"in c.prototype;function Lt(v,S,M){S=String(S);var w=!!M.withCredentials,I=M.lastEventIdQueryParameterName||"lastEventId",N=Be(1e3),G=Ye(M.heartbeatTimeout,45e3),he="",X=N,ie=!1,oe=0,k=M.headers||{},g=M.Transport,F=lt&&g==null?void 0:new L(g!=null?new g:et()),U=g!=null&&typeof g!="string"?new g:F==null?new ne:new ee,ue=void 0,re=0,ce=b,ke="",tt="",Te="",ft="",ge=R,Rt=0,st=0,ht=function(de,be,Xe,ze){if(ce===T)if(de===200&&Xe!=null&&Ne.test(Xe)){ce=y,ie=Date.now(),X=N,v.readyState=y;var Re=new P("open",{status:de,statusText:be,headers:ze});v.dispatchEvent(Re),le(v,v.onopen,Re)}else{var Ce="";de!==200?(be&&(be=be.replace(/\s+/g," ")),Ce="EventSource's response has a status "+de+" "+be+" that is not 200. Aborting the connection."):Ce="EventSource's response has a Content-Type specifying an unsupported type: "+(Xe==null?"-":Xe.replace(/\s+/g," "))+". Aborting the connection.",Me();var Re=new P("error",{status:de,statusText:be,headers:ze});v.dispatchEvent(Re),le(v,v.onerror,Re),console.error(Ce)}},ct=function(de){if(ce===y){for(var be=-1,Xe=0;Xe<de.length;Xe+=1){var ze=de.charCodeAt(Xe);(ze===10||ze===13)&&(be=Xe)}var Re=(be!==-1?ft:"")+de.slice(0,be+1);ft=(be===-1?ft:"")+de.slice(be+1),de!==""&&(ie=Date.now(),oe+=de.length);for(var Ce=0;Ce<Re.length;Ce+=1){var ze=Re.charCodeAt(Ce);if(ge===B&&ze===10)ge=R;else if(ge===B&&(ge=R),ze===13||ze===10){if(ge!==R){ge===te&&(st=Ce+1);var Ct=Re.slice(Rt,st-1),Dt=Re.slice(st+(st<Ce&&Re.charCodeAt(st)===32?1:0),Ce);Ct==="data"?(ke+=`
|
|
9
|
-
`,ke+=Dt):Ct==="id"?tt=Dt:Ct==="event"?Te=Dt:Ct==="retry"?(N=Ye(Dt,N),X=N):Ct==="heartbeatTimeout"&&(G=Ye(Dt,G),re!==0&&(i(re),re=n(function(){Fe()},G)))}if(ge===R){if(ke!==""){he=tt,Te===""&&(Te="message");var sr=new Se(Te,{data:ke.slice(1),lastEventId:tt});if(v.dispatchEvent(sr),Te==="open"?le(v,v.onopen,sr):Te==="message"?le(v,v.onmessage,sr):Te==="error"&&le(v,v.onerror,sr),ce===$)return}ke="",Te=""}ge=ze===13?B:R}else ge===R&&(Rt=Ce,ge=te),ge===te?ze===58&&(st=Ce+1,ge=se):ge===se&&(ge=me)}}},_e=function(de){if(ce===y||ce===T){ce=b,re!==0&&(i(re),re=0),re=n(function(){Fe()},X),X=Be(Math.min(N*16,X*2)),v.readyState=T;var be=new x("error",{error:de});v.dispatchEvent(be),le(v,v.onerror,be),de!=null&&console.error(de)}},Me=function(){ce=$,ue!=null&&(ue.abort(),ue=void 0),re!==0&&(i(re),re=0),v.readyState=$},Fe=function(){if(re=0,ce!==b){if(!ie&&ue!=null)_e(new Error("No activity within "+G+" milliseconds. "+(ce===T?"No response received.":oe+" chars received.")+" Reconnecting.")),ue!=null&&(ue.abort(),ue=void 0);else{var de=Math.max((ie||Date.now())+G-Date.now(),1);ie=!1,re=n(function(){Fe()},de)}return}ie=!1,oe=0,re=n(function(){Fe()},G),ce=T,ke="",Te="",tt=he,ft="",Rt=0,st=0,ge=R;var be=S;if(S.slice(0,5)!=="data:"&&S.slice(0,5)!=="blob:"&&he!==""){var Xe=S.indexOf("?");be=Xe===-1?S:S.slice(0,Xe+1)+S.slice(Xe+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Dt,sr){return sr===I?"":Dt}),be+=(S.indexOf("?")===-1?"?":"&")+I+"="+encodeURIComponent(he)}var ze=v.withCredentials,Re={};Re.Accept="text/event-stream";var Ce=v.headers;if(Ce!=null)for(var Ct in Ce)Object.prototype.hasOwnProperty.call(Ce,Ct)&&(Re[Ct]=Ce[Ct]);try{ue=U.open(F,ht,ct,_e,be,ze,Re)}catch(Dt){throw Me(),Dt}};v.url=S,v.readyState=T,v.withCredentials=w,v.headers=k,v._close=Me,Fe()}fe.prototype=Object.create(D.prototype),fe.prototype.CONNECTING=T,fe.prototype.OPEN=y,fe.prototype.CLOSED=$,fe.prototype.close=function(){this._close()},fe.CONNECTING=T,fe.OPEN=y,fe.CLOSED=$,fe.prototype.withCredentials=void 0;var Bt=u;s!=null&&(u==null||!("withCredentials"in u.prototype))&&(Bt=fe),function(v){{var S=v(t);S!==void 0&&(e.exports=S)}}(function(v){v.EventSourcePolyfill=fe,v.NativeEventSource=u,v.EventSource=Bt})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:xn:globalThis)})(ei,ei.exports);var yu=ei.exports;const Eu=async e=>{const t=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}/leaderboard`);t.searchParams.append("language",e.language),t.searchParams.append("platform",e.platform),t.searchParams.append("pagination",`offset=${e.offset},limit=${e.limit}`);const n=await(await fetch(t)).json();return{items:n?.items,total:n?.total}},wu=async e=>{const t=new URL(`${e.endpoint}/v1/tournaments/leaderboard/player`);t.searchParams.append("language",e.language),t.searchParams.append("platform",e.platform),t.searchParams.append("filter","includeUnqualifiedPlayer=false");const i=(await(await fetch(t,{method:"GET",headers:fa(e.session)})).json())?.items?.find(s=>s?.tournament?.id===e.tournamentid);return{playerData:i?.tournament?.leaderBoard,endRank:i?.endRank,playerEnrolled:i?.tournament?.playerEnrolled}},xu=(e,t)=>{const r=new URL(`${e.endpoint}/v1/tournaments/${e.tournamentid}/leaderboard/updates`);r.searchParams.append("HeartBeat","false"),r.searchParams.append("language",e.language),r.searchParams.append("filter","includeUnqualifiedPlayer=true"),r.searchParams.append("pagination",`offset=${e.offset},limit=${e.limit}`),r.searchParams.append("platform",e.platform);const n=new yu.EventSourcePolyfill(r,{headers:{accept:"text/event-stream","X-SessionId":e.session}});return n.onmessage=i=>{const s=JSON.parse(i.data);s&&s.messageType==="LeaderBoardUpdate"&&t(s?.items)},n},Su=async e=>{const t=new URL(`${e.endpoint}/v1/bonus/claim`);t.searchParams.append("language",e.language),t.searchParams.append("platform",e.platform);const r=new Headers;r.append("Content-Type","application/json"),r.append("X-SessionID",e.session);let n={};return e.tournament.wallets&&e.tournament.wallets.length>0&&(n={language:e.language,bonusCode:e.tournament.wallets[0].code,currency:e.tournament.baseCurrency,type:"tournament"}),await(await fetch(t,{method:"PUT",headers:r,body:JSON.stringify(n)})).json()},Tu=async e=>await(await fetch(`${e.endpoint}/tournaments/${e.tournamentid}`,{headers:{"X-SessionID":e.session}})).json(),Au=async e=>{const t=await Su(e);if(!t)return{enrolled:!1};if(t.success==!0)return{enrolled:!0};if(t.errorMessage&&t.errorMessage.match("VersionMismatchException")){const r=await Tu({endpoint:e.endpoint,tournamentid:e.tournament.id,session:e.session});return r?.item?.playerEnrolled?{enrolled:!0}:{enrolled:!1,errorMessage:r?.errorMessage}}return{enrolled:!1}};var ha={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(xn,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",f="day",l="week",h="month",c="quarter",d="year",m="date",H="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var x=["th","st","nd","rd"],b=P%100;return"["+P+(x[(b-20)%10]||x[b]||x[0])+"]"}},_=function(P,x,b){var T=String(P);return!T||T.length>=x?P:""+Array(x+1-T.length).join(b)+P},L={s:_,z:function(P){var x=-P.utcOffset(),b=Math.abs(x),T=Math.floor(b/60),y=b%60;return(x<=0?"+":"-")+_(T,2,"0")+":"+_(y,2,"0")},m:function P(x,b){if(x.date()<b.date())return-P(b,x);var T=12*(b.year()-x.year())+(b.month()-x.month()),y=x.clone().add(T,h),$=b-y<0,B=x.clone().add(T+($?-1:1),h);return+(-(T+(b-y)/($?y-B:B-y))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:h,y:d,w:l,d:f,D:m,h:u,m:o,s:a,ms:s,Q:c}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},j="en",Y={};Y[j]=O;var ee="$isDayjsObject",ae=function(P){return P instanceof J||!(!P||!P[ee])},ne=function P(x,b,T){var y;if(!x)return j;if(typeof x=="string"){var $=x.toLowerCase();Y[$]&&(y=$),b&&(Y[$]=b,y=$);var B=x.split("-");if(!y&&B.length>1)return P(B[0])}else{var R=x.name;Y[R]=x,y=R}return!T&&y&&(j=y),y||!T&&j},D=function(P,x){if(ae(P))return P.clone();var b=typeof x=="object"?x:{};return b.date=P,b.args=arguments,new J(b)},C=L;C.l=ne,C.i=ae,C.w=function(P,x){return D(P,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var J=function(){function P(b){this.$L=ne(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[ee]=!0}var x=P.prototype;return x.parse=function(b){this.$d=function(T){var y=T.date,$=T.utc;if(y===null)return new Date(NaN);if(C.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var B=y.match(p);if(B){var R=B[2]-1||0,te=(B[7]||"0").substring(0,3);return $?new Date(Date.UTC(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,te)):new Date(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,te)}}return new Date(y)}(b),this.init()},x.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},x.$utils=function(){return C},x.isValid=function(){return this.$d.toString()!==H},x.isSame=function(b,T){var y=D(b);return this.startOf(T)<=y&&y<=this.endOf(T)},x.isAfter=function(b,T){return D(b)<this.startOf(T)},x.isBefore=function(b,T){return this.endOf(T)<D(b)},x.$g=function(b,T,y){return C.u(b)?this[T]:this.set(y,b)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(b,T){var y=this,$=!!C.u(T)||T,B=C.p(b),R=function(Be,le){var fe=C.w(y.$u?Date.UTC(y.$y,le,Be):new Date(y.$y,le,Be),y);return $?fe:fe.endOf(f)},te=function(Be,le){return C.w(y.toDate()[Be].apply(y.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(le)),y)},se=this.$W,me=this.$M,Ne=this.$D,ut="set"+(this.$u?"UTC":"");switch(B){case d:return $?R(1,0):R(31,11);case h:return $?R(1,me):R(0,me+1);case l:var Ke=this.$locale().weekStart||0,Ye=(se<Ke?se+7:se)-Ke;return R($?Ne-Ye:Ne+(6-Ye),me);case f:case m:return te(ut+"Hours",0);case u:return te(ut+"Minutes",1);case o:return te(ut+"Seconds",2);case a:return te(ut+"Milliseconds",3);default:return this.clone()}},x.endOf=function(b){return this.startOf(b,!1)},x.$set=function(b,T){var y,$=C.p(b),B="set"+(this.$u?"UTC":""),R=(y={},y[f]=B+"Date",y[m]=B+"Date",y[h]=B+"Month",y[d]=B+"FullYear",y[u]=B+"Hours",y[o]=B+"Minutes",y[a]=B+"Seconds",y[s]=B+"Milliseconds",y)[$],te=$===f?this.$D+(T-this.$W):T;if($===h||$===d){var se=this.clone().set(m,1);se.$d[R](te),se.init(),this.$d=se.set(m,Math.min(this.$D,se.daysInMonth())).$d}else R&&this.$d[R](te);return this.init(),this},x.set=function(b,T){return this.clone().$set(b,T)},x.get=function(b){return this[C.p(b)]()},x.add=function(b,T){var y,$=this;b=Number(b);var B=C.p(T),R=function(me){var Ne=D($);return C.w(Ne.date(Ne.date()+Math.round(me*b)),$)};if(B===h)return this.set(h,this.$M+b);if(B===d)return this.set(d,this.$y+b);if(B===f)return R(1);if(B===l)return R(7);var te=(y={},y[o]=n,y[u]=i,y[a]=r,y)[B]||1,se=this.$d.getTime()+b*te;return C.w(se,this)},x.subtract=function(b,T){return this.add(-1*b,T)},x.format=function(b){var T=this,y=this.$locale();if(!this.isValid())return y.invalidDate||H;var $=b||"YYYY-MM-DDTHH:mm:ssZ",B=C.z(this),R=this.$H,te=this.$m,se=this.$M,me=y.weekdays,Ne=y.months,ut=y.meridiem,Ke=function(le,fe,et,lt){return le&&(le[fe]||le(T,$))||et[fe].slice(0,lt)},Ye=function(le){return C.s(R%12||12,le,"0")},Be=ut||function(le,fe,et){var lt=le<12?"AM":"PM";return et?lt.toLowerCase():lt};return $.replace(E,function(le,fe){return fe||function(et){switch(et){case"YY":return String(T.$y).slice(-2);case"YYYY":return C.s(T.$y,4,"0");case"M":return se+1;case"MM":return C.s(se+1,2,"0");case"MMM":return Ke(y.monthsShort,se,Ne,3);case"MMMM":return Ke(Ne,se);case"D":return T.$D;case"DD":return C.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return Ke(y.weekdaysMin,T.$W,me,2);case"ddd":return Ke(y.weekdaysShort,T.$W,me,3);case"dddd":return me[T.$W];case"H":return String(R);case"HH":return C.s(R,2,"0");case"h":return Ye(1);case"hh":return Ye(2);case"a":return Be(R,te,!0);case"A":return Be(R,te,!1);case"m":return String(te);case"mm":return C.s(te,2,"0");case"s":return String(T.$s);case"ss":return C.s(T.$s,2,"0");case"SSS":return C.s(T.$ms,3,"0");case"Z":return B}return null}(le)||B.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(b,T,y){var $,B=this,R=C.p(T),te=D(b),se=(te.utcOffset()-this.utcOffset())*n,me=this-te,Ne=function(){return C.m(B,te)};switch(R){case d:$=Ne()/12;break;case h:$=Ne();break;case c:$=Ne()/3;break;case l:$=(me-se)/6048e5;break;case f:$=(me-se)/864e5;break;case u:$=me/i;break;case o:$=me/n;break;case a:$=me/r;break;default:$=me}return y?$:C.a($)},x.daysInMonth=function(){return this.endOf(h).$D},x.$locale=function(){return Y[this.$L]},x.locale=function(b,T){if(!b)return this.$L;var y=this.clone(),$=ne(b,T,!0);return $&&(y.$L=$),y},x.clone=function(){return C.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},P}(),Se=J.prototype;return D.prototype=Se,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",f],["$M",h],["$y",d],["$D",m]].forEach(function(P){Se[P[1]]=function(x){return this.$g(x,P[0],P[1])}}),D.extend=function(P,x){return P.$i||(P(x,J,D),P.$i=!0),D},D.locale=ne,D.isDayjs=ae,D.unix=function(P){return D(1e3*P)},D.en=Y[j],D.Ls=Y,D.p={},D})})(ha);var Mu=ha.exports;const Mi=Sn(Mu);var ca={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(xn,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},f=function(p){return(p=+p)+(p>68?1900:2e3)},l=function(p){return function(E){this[p]=+E}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var O=E.match(/([+-]|\d\d)/g),_=60*O[1]+(+O[2]||0);return _===0?0:O[0]==="+"?-_:_}(p)}],c=function(p){var E=u[p];return E&&(E.indexOf?E:E.s.concat(E.f))},d=function(p,E){var O,_=u.meridiem;if(_){for(var L=1;L<=24;L+=1)if(p.indexOf(_(L,0,E))>-1){O=L>12;break}}else O=p===(E?"pm":"PM");return O},m={A:[o,function(p){this.afternoon=d(p,!1)}],a:[o,function(p){this.afternoon=d(p,!0)}],Q:[i,function(p){this.month=3*(p-1)+1}],S:[i,function(p){this.milliseconds=100*+p}],SS:[s,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[a,l("seconds")],ss:[a,l("seconds")],m:[a,l("minutes")],mm:[a,l("minutes")],H:[a,l("hours")],h:[a,l("hours")],HH:[a,l("hours")],hh:[a,l("hours")],D:[a,l("day")],DD:[s,l("day")],Do:[o,function(p){var E=u.ordinal,O=p.match(/\d+/);if(this.day=O[0],E)for(var _=1;_<=31;_+=1)E(_).replace(/\[|\]/g,"")===p&&(this.day=_)}],w:[a,l("week")],ww:[s,l("week")],M:[a,l("month")],MM:[s,l("month")],MMM:[o,function(p){var E=c("months"),O=(c("monthsShort")||E.map(function(_){return _.slice(0,3)})).indexOf(p)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[o,function(p){var E=c("months").indexOf(p)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,l("year")],YY:[s,function(p){this.year=f(p)}],YYYY:[/\d{4}/,l("year")],Z:h,ZZ:h};function H(p){var E,O;E=p,O=u&&u.formats;for(var _=(p=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,C,J){var Se=J&&J.toUpperCase();return C||O[J]||r[J]||O[Se].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,x,b){return x||b.slice(1)})})).match(n),L=_.length,j=0;j<L;j+=1){var Y=_[j],ee=m[Y],ae=ee&&ee[0],ne=ee&&ee[1];_[j]=ne?{regex:ae,parser:ne}:Y.replace(/^\[|\]$/g,"")}return function(D){for(var C={},J=0,Se=0;J<L;J+=1){var P=_[J];if(typeof P=="string")Se+=P.length;else{var x=P.regex,b=P.parser,T=D.slice(Se),y=x.exec(T)[0];b.call(C,y),D=D.replace(y,"")}}return function($){var B=$.afternoon;if(B!==void 0){var R=$.hours;B?R<12&&($.hours+=12):R===12&&($.hours=0),delete $.afternoon}}(C),C}}return function(p,E,O){O.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(f=p.parseTwoDigitYear);var _=E.prototype,L=_.parse;_.parse=function(j){var Y=j.date,ee=j.utc,ae=j.args;this.$u=ee;var ne=ae[1];if(typeof ne=="string"){var D=ae[2]===!0,C=ae[3]===!0,J=D||C,Se=ae[2];C&&(Se=ae[2]),u=this.$locale(),!D&&Se&&(u=O.Ls[Se]),this.$d=function(T,y,$,B){try{if(["x","X"].indexOf(y)>-1)return new Date((y==="X"?1e3:1)*T);var R=H(y)(T),te=R.year,se=R.month,me=R.day,Ne=R.hours,ut=R.minutes,Ke=R.seconds,Ye=R.milliseconds,Be=R.zone,le=R.week,fe=new Date,et=me||(te||se?1:fe.getDate()),lt=te||fe.getFullYear(),Lt=0;te&&!se||(Lt=se>0?se-1:fe.getMonth());var Bt,v=Ne||0,S=ut||0,M=Ke||0,w=Ye||0;return Be?new Date(Date.UTC(lt,Lt,et,v,S,M,w+60*Be.offset*1e3)):$?new Date(Date.UTC(lt,Lt,et,v,S,M,w)):(Bt=new Date(lt,Lt,et,v,S,M,w),le&&(Bt=B(Bt).week(le).toDate()),Bt)}catch{return new Date("")}}(Y,ne,ee,O),this.init(),Se&&Se!==!0&&(this.$L=this.locale(Se).$L),J&&Y!=this.format(ne)&&(this.$d=new Date("")),u={}}else if(ne instanceof Array)for(var P=ne.length,x=1;x<=P;x+=1){ae[1]=ne[x-1];var b=O.apply(this,ae);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}x===P&&(this.$d=new Date(""))}else L.call(this,j)}}})})(ca);var Pu=ca.exports;const Hu=Sn(Pu);Mi.extend(Hu);const Ou=e=>Mi(e).format("MMMM D, HH:mm"),$u=()=>typeof window>"u";class Nu{constructor(){}static processMinMax(t,r){return{minValue:t?`: ${t}`:null,maxValue:r?`: ${r}`:null}}static generateCasinoRule(t,r){const n=` ~ ${t("unlimited")}`,i=r.currency||"EUR",s=r.minStake?.amount[i]?`: ${r.minStake.amount[i]} ${i}`:n,a=r.maxStake?.amount[i]?`: ${r.maxStake.amount[i]} ${i}`:n;return t("casinoRuleMinMaxBet",{values:{minBet:s,maxBet:a}})}static generateSportsRule(t,r){const n=[],i=` ~ ${t("unlimited")}`,s=r.currency||"EUR",a=r.minStake?.amount[s]?`: ${r.minStake.amount[s]} ${s}`:i,o=r.maxStake?.amount[s]?`: ${r.maxStake.amount[s]} ${s}`:i;n.push(t("sportsRuleMinMaxBet",{values:{sportMinBet:a,sportMaxBet:o}}));const u=r.config.liveMatch==="true",f=r.config.preLiveMatch==="true";u&&f?n.push(t("matchTypePreAndLive")):u?n.push(`${t("matchTypeLive")}`):f&&n.push(`${t("matchTyppePre")}`);const l=r.combination,h=[];l.single.isEligible&&h.push(t("betTypeSingle"));const d={null:t("typeOfSelectionAny"),true:t("bankerOnly"),false:t("nonBankerOnly")},m={unspecific:t("typeOfSelectionAny"),all:t("betBuilderOnly"),none:t("notBuilderOnly")};let H="",p="";const E=`${t("oddsPerSelection")}: ${r.config.minOdds||t("unlimited")} - ${r.config.maxOdds||t("unlimited")}`,O=l.system.isEligible,_=l.multiple.isEligible;O&&(H=` ${t("betTypeSystem")}
|
|
10
|
-
( ${t("typeOfSelection")}: ${d[r.combination.system.banker?.include?.toString()||"null"]},
|
|
11
|
-
${t("numberOfSelection")}:
|
|
12
|
-
${l.system.minSelection?.number||t("unlimited")} - ${l.system.maxSelection?.number||t("unlimited")},
|
|
13
|
-
${E} ) `),_&&(p=` ${t("betTypeMultiple")}
|
|
14
|
-
( ${t("typeOfSelection")}: ${m[r.combination.multiple.betBuilder?.mode?.toString()||"unspecific"]},
|
|
15
|
-
${t("numberOfSelection")}:
|
|
16
|
-
${l.multiple.minSelection?.number||t("unlimited")} - ${l.multiple.maxSelection?.number||t("unlimited")},
|
|
17
|
-
${E} ) `),O&&_?h.push(p+t("and")+H):O?h.push(H):_&&h.push(p),n.push(h.join(", "));const L=r.config.minTotalOdds?`: ${r.config.minTotalOdds}`:i,j=r.config.maxTotalOdds?`: ${r.config.maxTotalOdds}`:i;return n.push(`${t("sportsRuleMinMaxOdds",{values:{sportMinOdds:L,sportMaxOdds:j}})}`),n}}var Lu=function(t){return Bu(t)&&!Ru(t)};function Bu(e){return!!e&&typeof e=="object"}function Ru(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Iu(e)}var Cu=typeof Symbol=="function"&&Symbol.for,Du=Cu?Symbol.for("react.element"):60103;function Iu(e){return e.$$typeof===Du}function ku(e){return Array.isArray(e)?[]:{}}function Cr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?br(ku(e),e,t):e}function Fu(e,t,r){return e.concat(t).map(function(n){return Cr(n,r)})}function Uu(e,t){if(!t.customMerge)return br;var r=t.customMerge(e);return typeof r=="function"?r:br}function Gu(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ji(e){return Object.keys(e).concat(Gu(e))}function da(e,t){try{return t in e}catch{return!1}}function ju(e,t){return da(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Vu(e,t,r){var n={};return r.isMergeableObject(e)&&ji(e).forEach(function(i){n[i]=Cr(e[i],r)}),ji(t).forEach(function(i){ju(e,i)||(da(e,i)&&r.isMergeableObject(t[i])?n[i]=Uu(i,r)(e[i],t[i],r):n[i]=Cr(t[i],r))}),n}function br(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Fu,r.isMergeableObject=r.isMergeableObject||Lu,r.cloneUnlessOtherwiseSpecified=Cr;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Vu(e,t,r):Cr(t,r)}br.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return br(n,i,r)},{})};var Yu=br,Xu=Yu;const zu=Sn(Xu);var ti=function(e,t){return ti=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])},ti(e,t)};function Tn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ti(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Mt=function(){return Mt=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},Mt.apply(this,arguments)};function Wu(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 Bn(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 Rn(e,t){var r=t&&t.cache?t.cache:tl,n=t&&t.serializer?t.serializer:Ku,i=t&&t.strategy?t.strategy:Ju;return i(e,{cache:r,serializer:n})}function qu(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Zu(e,t,r,n){var i=qu(n)?n:r(n),s=t.get(i);return typeof s>"u"&&(s=e.call(this,n),t.set(i,s)),s}function va(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,n),t.set(i,s)),s}function pa(e,t,r,n,i){return r.bind(t,e,n,i)}function Ju(e,t){var r=e.length===1?Zu:va;return pa(e,this,r,t.cache.create(),t.serializer)}function Qu(e,t){return pa(e,this,va,t.cache.create(),t.serializer)}var Ku=function(){return JSON.stringify(arguments)},el=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}(),tl={create:function(){return new el}},Cn={variadic:Qu},hn=function(){return hn=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},hn.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 pe;(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"})(pe||(pe={}));var yr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(yr||(yr={}));function Vi(e){return e.type===pe.literal}function rl(e){return e.type===pe.argument}function ma(e){return e.type===pe.number}function ga(e){return e.type===pe.date}function _a(e){return e.type===pe.time}function ba(e){return e.type===pe.select}function ya(e){return e.type===pe.plural}function nl(e){return e.type===pe.pound}function Ea(e){return e.type===pe.tag}function wa(e){return!!(e&&typeof e=="object"&&e.type===yr.number)}function ri(e){return!!(e&&typeof e=="object"&&e.type===yr.dateTime)}var xa=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,il=/(?:[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 sl(e){var t={};return e.replace(il,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 we=function(){return we=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},we.apply(this,arguments)};var al=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ol(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(al).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],u=a.slice(1),f=0,l=u;f<l.length;f++){var h=l[f];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function ul(e){return e.replace(/^(.*?)-/,"")}var Yi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Sa=/^(@+)?(\+|#+)?[rs]?$/g,ll=/(\*)(0+)|(#+)(0+)|(0+)/g,Ta=/^(0+)$/;function Xi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Sa,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 Aa(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 fl(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)),!Ta.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function zi(e){var t={},r=Aa(e);return r||t}function hl(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ul(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=we(we(we({},t),{notation:"scientific"}),i.options.reduce(function(u,f){return we(we({},u),zi(f))},{}));continue;case"engineering":t=we(we(we({},t),{notation:"engineering"}),i.options.reduce(function(u,f){return we(we({},u),zi(f))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ll,function(u,f,l,h,c,d){if(f)t.minimumIntegerDigits=l.length;else{if(h&&c)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ta.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Yi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Yi,function(u,f,l,h,c,d){return l==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:c&&d?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+d.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var s=i.options[0];s==="w"?t=we(we({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=we(we({},t),Xi(s)));continue}if(Sa.test(i.stem)){t=we(we({},t),Xi(i.stem));continue}var a=Aa(i.stem);a&&(t=we(we({},t),a));var o=fl(i.stem);o&&(t=we(we({},t),o))}return t}var Vr={"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 cl(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),u="a",f=dl(t);for((f=="H"||f=="k")&&(o=0);o-- >0;)r+=u;for(;a-- >0;)r=f+r}else i==="J"?r+="H":r+=i}return r}function dl(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=Vr[n||""]||Vr[r||""]||Vr["".concat(r,"-001")]||Vr["001"];return i[0]}var Dn,vl=new RegExp("^".concat(xa.source,"*")),pl=new RegExp("".concat(xa.source,"*$"));function Q(e,t){return{start:e,end:t}}var ml=!!String.prototype.startsWith&&"_a".startsWith("a",1),gl=!!String.fromCodePoint,_l=!!Object.fromEntries,bl=!!String.prototype.codePointAt,yl=!!String.prototype.trimStart,El=!!String.prototype.trimEnd,wl=!!Number.isSafeInteger,xl=wl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ni=!0;try{var Sl=Pa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ni=((Dn=Sl.exec("a"))===null||Dn===void 0?void 0:Dn[0])==="a"}catch{ni=!1}var Wi=ml?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ii=gl?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},qi=_l?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},Ma=bl?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}},Tl=yl?function(t){return t.trimStart()}:function(t){return t.replace(vl,"")},Al=El?function(t){return t.trimEnd()}:function(t){return t.replace(pl,"")};function Pa(e,t){return new RegExp(e,t)}var si;if(ni){var Zi=Pa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");si=function(t,r){var n;Zi.lastIndex=r;var i=Zi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else si=function(t,r){for(var n=[];;){var i=Ma(t,r);if(i===void 0||Ha(i)||Ol(i))break;n.push(i),r+=i>=65536?2:1}return ii.apply(void 0,n)};var Ml=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:pe.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&&ai(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:pe.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()||!ai(this.char()))return this.error(W.INVALID_TAG,Q(o,this.clonePosition()));var u=this.clonePosition(),f=this.parseTagName();return i!==f?this.error(W.UNMATCHED_CLOSING_TAG,Q(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:pe.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()&&Hl(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 u=Q(n,this.clonePosition());return{val:{type:pe.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Pl(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 ii.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(),ii(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:pe.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=si(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,u=this.clonePosition();switch(o){case"":return this.error(W.EXPECT_ARGUMENT_TYPE,Q(a,u));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var c=Al(h.val);if(c.length===0)return this.error(W.EXPECT_ARGUMENT_STYLE,Q(this.clonePosition(),this.clonePosition()));var d=Q(l,this.clonePosition());f={style:c,styleLocation:d}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var H=Q(i,this.clonePosition());if(f&&Wi(f?.style,"::",0)){var p=Tl(f.style.slice(2));if(o==="number"){var h=this.parseNumberSkeletonFromString(p,f.styleLocation);return h.err?h:{val:{type:pe.number,value:n,location:H,style:h.val},err:null}}else{if(p.length===0)return this.error(W.EXPECT_DATE_TIME_SKELETON,H);var E=p;this.locale&&(E=cl(p,this.locale));var c={type:yr.dateTime,pattern:E,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?sl(E):{}},O=o==="date"?pe.date:pe.time;return{val:{type:O,value:n,location:H,style:c},err:null}}}return{val:{type:o==="number"?pe.number:o==="date"?pe.date:pe.time,value:n,location:H,style:(s=f?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(W.EXPECT_SELECT_ARGUMENT_OPTIONS,Q(_,hn({},_)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),j=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 h=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),L=this.parseIdentifierIfPossible(),j=h.val}var Y=this.tryParsePluralOrSelectOptions(t,o,r,L);if(Y.err)return Y;var m=this.tryParseArgumentClose(i);if(m.err)return m;var ee=Q(i,this.clonePosition());return o==="select"?{val:{type:pe.select,value:n,options:qi(Y.val),location:ee},err:null}:{val:{type:pe.plural,value:n,options:qi(Y.val),offset:j,pluralType:o==="plural"?"cardinal":"ordinal",location:ee},err:null}}default:return this.error(W.INVALID_ARGUMENT_TYPE,Q(a,u))}},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=ol(t)}catch{return this.error(W.INVALID_NUMBER_SKELETON,r)}return{val:{type:yr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?hl(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,f=i.value,l=i.location;;){if(f.length===0){var h=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;l=Q(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(u.has(f))return this.error(r==="select"?W.DUPLICATE_SELECT_ARGUMENT_SELECTOR:W.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);f==="other"&&(a=!0),this.bumpSpace();var d=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 m=this.parseMessage(t+1,r,n);if(m.err)return m;var H=this.tryParseArgumentClose(d);if(H.err)return H;o.push([f,{value:m.val,location:Q(d,this.clonePosition())}]),u.add(f),this.bumpSpace(),s=this.parseIdentifierIfPossible(),f=s.value,l=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 u=Q(i,this.clonePosition());return s?(a*=n,xl(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Ma(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(Wi(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()&&Ha(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},e}();function ai(e){return e>=97&&e<=122||e>=65&&e<=90}function Pl(e){return ai(e)||e===47}function Hl(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 Ha(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ol(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 oi(e){e.forEach(function(t){if(delete t.location,ba(t)||ya(t))for(var r in t.options)delete t.options[r].location,oi(t.options[r].value);else ma(t)&&wa(t.style)||(ga(t)||_a(t))&&ri(t.style)?delete t.style.location:Ea(t)&&oi(t.children)})}function $l(e,t){t===void 0&&(t={}),t=hn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ml(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?.captureLocation||oi(r.val),r.val}var Er;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Er||(Er={}));var An=function(e){Tn(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),Ji=function(e){Tn(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('", "'),'"'),Er.INVALID_VALUE,s)||this}return t}(An),Nl=function(e){Tn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Er.INVALID_VALUE,i)||this}return t}(An),Ll=function(e){Tn(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,'"'),Er.MISSING_VALUE,n)||this}return t}(An),We;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(We||(We={}));function Bl(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==We.literal||r.type!==We.literal?t.push(r):n.value+=r.value,t},[])}function Rl(e){return typeof e=="function"}function Kr(e,t,r,n,i,s,a){if(e.length===1&&Vi(e[0]))return[{type:We.literal,value:e[0].value}];for(var o=[],u=0,f=e;u<f.length;u++){var l=f[u];if(Vi(l)){o.push({type:We.literal,value:l.value});continue}if(nl(l)){typeof s=="number"&&o.push({type:We.literal,value:r.getNumberFormat(t).format(s)});continue}var h=l.value;if(!(i&&h in i))throw new Ll(h,a);var c=i[h];if(rl(l)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),o.push({type:typeof c=="string"?We.literal:We.object,value:c});continue}if(ga(l)){var d=typeof l.style=="string"?n.date[l.style]:ri(l.style)?l.style.parsedOptions:void 0;o.push({type:We.literal,value:r.getDateTimeFormat(t,d).format(c)});continue}if(_a(l)){var d=typeof l.style=="string"?n.time[l.style]:ri(l.style)?l.style.parsedOptions:n.time.medium;o.push({type:We.literal,value:r.getDateTimeFormat(t,d).format(c)});continue}if(ma(l)){var d=typeof l.style=="string"?n.number[l.style]:wa(l.style)?l.style.parsedOptions:void 0;d&&d.scale&&(c=c*(d.scale||1)),o.push({type:We.literal,value:r.getNumberFormat(t,d).format(c)});continue}if(Ea(l)){var m=l.children,H=l.value,p=i[H];if(!Rl(p))throw new Nl(H,"function",a);var E=Kr(m,t,r,n,i,s),O=p(E.map(function(j){return j.value}));Array.isArray(O)||(O=[O]),o.push.apply(o,O.map(function(j){return{type:typeof j=="string"?We.literal:We.object,value:j}}))}if(ba(l)){var _=l.options[c]||l.options.other;if(!_)throw new Ji(l.value,c,Object.keys(l.options),a);o.push.apply(o,Kr(_.value,t,r,n,i));continue}if(ya(l)){var _=l.options["=".concat(c)];if(!_){if(!Intl.PluralRules)throw new An(`Intl.PluralRules is not available in this environment.
|
|
18
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
19
|
-
`,Er.MISSING_INTL_API,a);var L=r.getPluralRules(t,{type:l.pluralType}).select(c-(l.offset||0));_=l.options[L]||l.options.other}if(!_)throw new Ji(l.value,c,Object.keys(l.options),a);o.push.apply(o,Kr(_.value,t,r,n,i,c-(l.offset||0)));continue}}return Bl(o)}function Cl(e,t){return t?Mt(Mt(Mt({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Mt(Mt({},e[n]),t[n]||{}),r},{})):e}function Dl(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Cl(e[n],t[n]),r},Mt({},e)):e}function In(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Il(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Rn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Bn([void 0],r,!1)))},{cache:In(e.number),strategy:Cn.variadic}),getDateTimeFormat:Rn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Bn([void 0],r,!1)))},{cache:In(e.dateTime),strategy:Cn.variadic}),getPluralRules:Rn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Bn([void 0],r,!1)))},{cache:In(e.pluralRules),strategy:Cn.variadic})}}var kl=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var f=s.formatToParts(u);if(f.length===1)return f[0].value;var l=f.reduce(function(h,c){return!h.length||c.type!==We.literal||typeof h[h.length-1]!="string"?h.push(c.value):h[h.length-1]+=c.value,h},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(u){return Kr(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=Wu(a,["formatters"]);this.ast=e.__parse(t,Mt(Mt({},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=Dl(e.formats,n),this.formatters=i&&i.formatters||Il(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>"u")){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=$l,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 Fl(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 Yt={},Ul=(e,t,r)=>r&&(t in Yt||(Yt[t]={}),e in Yt[t]||(Yt[t][e]=r),r),Oa=(e,t)=>{if(t==null)return;if(t in Yt&&e in Yt[t])return Yt[t][e];const r=Mn(t);for(let n=0;n<r.length;n++){const i=r[n],s=jl(i,e);if(s)return Ul(e,t,s)}};let Pi;const Tr=wn({});function Gl(e){return Pi[e]||null}function $a(e){return e in Pi}function jl(e,t){if(!$a(e))return null;const r=Gl(e);return Fl(r,t)}function Vl(e){if(e==null)return;const t=Mn(e);for(let r=0;r<t.length;r++){const n=t[r];if($a(n))return n}}function Na(e,...t){delete Yt[e],Tr.update(r=>(r[e]=zu.all([r[e]||{},...t]),r))}Sr([Tr],([e])=>Object.keys(e));Tr.subscribe(e=>Pi=e);const en={};function Yl(e,t){en[e].delete(t),en[e].size===0&&delete en[e]}function La(e){return en[e]}function Xl(e){return Mn(e).map(t=>{const r=La(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function ui(e){return e==null?!1:Mn(e).some(t=>{var r;return(r=La(t))==null?void 0:r.size})}function zl(e,t){return Promise.all(t.map(n=>(Yl(e,n),n().then(i=>i.default||i)))).then(n=>Na(e,...n))}const Pr={};function Ba(e){if(!ui(e))return e in Pr?Pr[e]:Promise.resolve();const t=Xl(e);return Pr[e]=Promise.all(t.map(([r,n])=>zl(r,n))).then(()=>{if(ui(e))return Ba(e);delete Pr[e]}),Pr[e]}const Wl={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"}}},ql={fallbackLocale:null,loadingDelay:200,formats:Wl,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Zl=ql;function wr(){return Zl}const kn=wn(!1);var Jl=Object.defineProperty,Ql=Object.defineProperties,Kl=Object.getOwnPropertyDescriptors,Qi=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,Ki=(e,t,r)=>t in e?Jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rf=(e,t)=>{for(var r in t||(t={}))ef.call(t,r)&&Ki(e,r,t[r]);if(Qi)for(var r of Qi(t))tf.call(t,r)&&Ki(e,r,t[r]);return e},nf=(e,t)=>Ql(e,Kl(t));let li;const cn=wn(null);function es(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Mn(e,t=wr().fallbackLocale){const r=es(e);return t?[...new Set([...r,...es(t)])]:r}function ir(){return li??void 0}cn.subscribe(e=>{li=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const sf=e=>{if(e&&Vl(e)&&ui(e)){const{loadingDelay:t}=wr();let r;return typeof window<"u"&&ir()!=null&&t?r=window.setTimeout(()=>kn.set(!0),t):kn.set(!0),Ba(e).then(()=>{cn.set(e)}).finally(()=>{clearTimeout(r),kn.set(!1)})}return cn.set(e)},zt=nf(rf({},cn),{set:sf}),Pn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var af=Object.defineProperty,dn=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable,ts=(e,t,r)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hi=(e,t)=>{for(var r in t||(t={}))Ra.call(t,r)&&ts(e,r,t[r]);if(dn)for(var r of dn(t))Ca.call(t,r)&&ts(e,r,t[r]);return e},Ar=(e,t)=>{var r={};for(var n in e)Ra.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&dn)for(var n of dn(e))t.indexOf(n)<0&&Ca.call(e,n)&&(r[n]=e[n]);return r};const Dr=(e,t)=>{const{formats:r}=wr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},of=Pn(e=>{var t=e,{locale:r,format:n}=t,i=Ar(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Dr("number",n)),new Intl.NumberFormat(r,i)}),uf=Pn(e=>{var t=e,{locale:r,format:n}=t,i=Ar(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Dr("date",n):Object.keys(i).length===0&&(i=Dr("date","short")),new Intl.DateTimeFormat(r,i)}),lf=Pn(e=>{var t=e,{locale:r,format:n}=t,i=Ar(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Dr("time",n):Object.keys(i).length===0&&(i=Dr("time","short")),new Intl.DateTimeFormat(r,i)}),ff=(e={})=>{var t=e,{locale:r=ir()}=t,n=Ar(t,["locale"]);return of(Hi({locale:r},n))},hf=(e={})=>{var t=e,{locale:r=ir()}=t,n=Ar(t,["locale"]);return uf(Hi({locale:r},n))},cf=(e={})=>{var t=e,{locale:r=ir()}=t,n=Ar(t,["locale"]);return lf(Hi({locale:r},n))},df=Pn((e,t=ir())=>new kl(e,t,wr().formats,{ignoreTag:wr().ignoreTag})),vf=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=ir(),default:f}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Oa(e,u);if(!l)l=(s=(i=(n=(r=wr()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:f}))!=null?i:f)!=null?s:e;else if(typeof l!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l;if(!o)return l;let h=l;try{h=df(l,u).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return h},pf=(e,t)=>cf(t).format(e),mf=(e,t)=>hf(t).format(e),gf=(e,t)=>ff(t).format(e),_f=(e,t=ir())=>Oa(e,t),Da=Sr([zt,Tr],()=>vf);Sr([zt],()=>pf);Sr([zt],()=>mf);Sr([zt],()=>gf);Sr([zt,Tr],()=>_f);function bf({withLocale:e,translations:t}){zt.subscribe(r=>{r==null&&(Tr.set(t),zt.set(e))})}function Ia(e,t){Na(e,t)}function fi(e){zt.set(e)}function ka(e){Object.keys(e).forEach(t=>{Ia(t,e[t])})}function Fa(e){const t=new URL(e);fetch(t.href).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{Ia(n,r[n])})}).catch(r=>{console.log(r)})}const yf={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 Ef=it('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r"> </span>',1),wf=it('<span class="svelte-1vfou2r"> </span> <span class="svelte-1vfou2r">—</span> <span class="svelte-1vfou2r">—</span>',1),rs=it('<p class="NoPlayerData svelte-1vfou2r"> </p>'),xf=it('<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>'),Sf=it('<div class="PlayerRankSkeletonWrapper svelte-1vfou2r"><div class="PlayerRankSkeleton svelte-1vfou2r"></div> <div class="PlayerRankSkeleton svelte-1vfou2r"></div></div>'),Tf=it('<tr class="SkeletonRow svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"></td></tr>'),Af=it('<tr><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td><td class="svelte-1vfou2r"> </td></tr>'),Mf=it('<tr class="svelte-1vfou2r"><td colspan="4" class="svelte-1vfou2r"><div class="EmptyLeaderboard svelte-1vfou2r"><p class="svelte-1vfou2r"> </p></div></td></tr>'),Pf=it('<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>'),Hf=it('<span class="PaginationButton Elipsis svelte-1vfou2r">...</span>'),Of=it("<button> </button>"),$f=it('<div class="PaginationWrapper svelte-1vfou2r"><button class="PaginationButton svelte-1vfou2r"> </button> <div class="PageNumberWrapper svelte-1vfou2r"></div> <button class="PaginationButton svelte-1vfou2r"> </button></div>'),Nf=it('<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 Lf={hash:"svelte-1vfou2r",code:`.svelte-1vfou2r,
|
|
20
|
-
.svelte-1vfou2r::before,
|
|
21
|
-
.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);
|
|
22
|
-
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;
|
|
23
|
-
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;
|
|
24
|
-
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;
|
|
25
|
-
animation: svelte-1vfou2r-pulse 1s infinite;}}
|
|
26
|
-
|
|
27
|
-
@keyframes svelte-1vfou2r-pulse {
|
|
28
|
-
0% {
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
50% {
|
|
32
|
-
opacity: 1;
|
|
33
|
-
}
|
|
34
|
-
100% {
|
|
35
|
-
opacity: 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@media (min-width: 1000px) {.ShowPlayersButton.svelte-1vfou2r {display:block;width:300px;margin:auto;background-color:var(--emw-color-bg-primary, #212121);}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@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;}}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media (max-width: 475px) {.PaginationWrapper.svelte-1vfou2r {& .PaginationButton:where(.svelte-1vfou2r) {font-size:11px;&.Number {font-size:11px;}}}
|
|
46
|
-
}`};function Oi(e,t){pn(t,!0),ia(e,Lf);const r=()=>oa(Da,"$_",n),[n,i]=ua(),s=qe(t,"endpoint"),a=qe(t,"language",7,"en"),o=qe(t,"session"),u=qe(t,"tournamentid"),f=qe(t,"platform"),l=qe(t,"translationurl"),h=qe(t,"newlyEnrolled");ka(yf),fi(a());const c=()=>{fi(a())};Fs(()=>{l()&&Fa(l())}),ln(()=>{c()});let d=null,m=Oe(void 0),H=Oe(!1),p=Oe(!1),E=Oe(void 0),O=Oe(void 0),_=Oe(0),L=Oe(10),j=Oe(!0),Y=Oe(void 0),ee=Oe(!1);const ae=async()=>{if(!T.has(A(b))){ve(H,!0);try{const g=await Eu({endpoint:s(),language:a(),platform:f(),session:o(),tournamentid:u(),offset:A(_),limit:A(L)});ve(m,g.items,!0),ve(Y,g.total,!0),T.set(A(b),A(m)),A(j)||ve(j,!0)}catch(g){console.log(g)}finally{ve(H,!1)}}},ne=()=>{d&&(d.close(),d=null),d=xu({endpoint:s(),language:a(),platform:f(),session:o(),tournamentid:u(),offset:A(_),limit:A(L)},g=>{ve(m,g,!0)})},D=async()=>{ve(p,!0);try{const g=await wu({endpoint:s(),language:a(),platform:f(),session:o(),tournamentid:u()});ve(E,g.playerData,!0),ve(O,g.endRank,!0),ve(ee,g.playerEnrolled,!0)}catch(g){console.log(g)}finally{ve(p,!1)}},C=()=>{A(_)<A(Y)&&(ve(_,A(_)+A(L)),ae(),ne())},J=()=>{A(_)!==0&&(ve(_,A(_)-A(L)),ae(),ne())},Se=g=>{ve(_,(g-1)*A(L)),ae(),ne()},x=Yr(()=>{const g=Math.ceil(A(Y)/A(L)),F=Math.floor(A(_)/A(L))+1;if(g<=5)return Array.from({length:g},(ue,re)=>re+1);const U=[];return U.push(1),F<=3?(U.push(2,3),U.push("..."),U.push(g)):F>=g-2?(U.push("..."),U.push(g-2,g-1,g)):(U.push("..."),U.push(F-1,F,F+1),U.push("..."),U.push(g)),U}),b=Yr(()=>Math.floor(A(_)/A(L))+1);let T=new Map,y=Yr(()=>T.get(A(b))??[]);const $=(g,F)=>{const U=[];return F&&U.push("PlayerRow"),g===1&&U.push("Gold"),g===2&&U.push("Silver"),g===3&&U.push("Bronze"),U.join(" ")},B=g=>g?Math.floor(g):"-";ln(()=>{h()&&D()}),Si(()=>(ae(),D(),ne(),()=>{d?.close(),d=null}));var R={get endpoint(){return s()},set endpoint(g){s(g),Ge()},get language(){return a()},set language(g="en"){a(g),Ge()},get session(){return o()},set session(g){o(g),Ge()},get tournamentid(){return u()},set tournamentid(g){u(g),Ge()},get platform(){return f()},set platform(g){f(g),Ge()},get translationurl(){return l()},set translationurl(g){l(g),Ge()},get newlyEnrolled(){return h()},set newlyEnrolled(g){h(g),Ge()}},te=Nf(),se=Ue(te),me=Ue(se);{var Ne=g=>{var F=xf(),U=Ue(F),ue=Ue(U),re=ye(ue,!0),ce=Le(ue,2),ke=ye(ce,!0),tt=Le(ce,2),Te=ye(tt,!0);De(U);var ft=Le(U,2),ge=Ue(ft);{var Rt=_e=>{var Me=Ef(),Fe=ur(Me),de=ye(Fe),be=Le(Fe,2),Xe=ye(be,!0),ze=Le(be,2),Re=ye(ze,!0);dt(()=>{Ee(de,`${A(E).rank??""}.`),Ee(Xe,A(E).score),Ee(Re,A(E).prizeName||"—")}),Pe(_e,Me)},st=_e=>{var Me=wf(),Fe=ur(Me),de=ye(Fe);vi(4),dt(()=>Ee(de,`${A(O)??""}.`)),Pe(_e,Me)},ht=_e=>{var Me=rs(),Fe=ye(Me,!0);dt(de=>Ee(Fe,de),[()=>r()("leaderboardNotAvailable")]),Pe(_e,Me)},ct=_e=>{var Me=rs(),Fe=ye(Me,!0);dt(de=>Ee(Fe,de),[()=>r()("notEnrolledRank")]),Pe(_e,Me)};Wt(ge,_e=>{A(E)?_e(Rt):A(O)?_e(st,1):A(ee)?_e(ht,2):_e(ct,-1)})}De(ft),De(F),dt((_e,Me,Fe)=>{Ee(re,_e),Ee(ke,Me),Ee(Te,Fe)},[()=>r()("myRanking"),()=>r()("points"),()=>r()("prize")]),Pe(g,F)},ut=g=>{var F=Sf();Pe(g,F)};Wt(me,g=>{A(p)?g(ut,-1):g(Ne)})}var Ke=Le(me,2),Ye=Ue(Ke),Be=Ue(Ye),le=Ue(Be),fe=ye(le,!0),et=Le(le),lt=ye(et,!0),Lt=Le(et),Bt=ye(Lt,!0),v=Le(Lt),S=ye(v,!0);De(Be),De(Ye);var M=Le(Ye),w=Ue(M);{var I=g=>{var F=qr(),U=ur(F);Jr(U,17,()=>Array(A(L)),Zr,(ue,re,ce,ke)=>{var tt=Tf();Pe(ue,tt)}),Pe(g,F)},N=g=>{var F=qr(),U=ur(F);Jr(U,17,()=>A(y),Zr,(ue,re)=>{var ce=Af(),ke=Ue(ce),tt=ye(ke),Te=Le(ke),ft=ye(Te,!0),ge=Le(Te),Rt=ye(ge,!0),st=Le(ge),ht=ye(st,!0);De(ce),dt((ct,_e)=>{Qn(ce,1,ct,"svelte-1vfou2r"),Ee(tt,`${A(re).rank??""}.`),Ee(ft,A(re).shortName||"J.D"),Ee(Rt,_e),Ee(ht,A(re).prizeName||"—")},[()=>aa($(A(re).rank,A(re).rank===A(E)?.rank)),()=>B(A(re).score)]),Pe(ue,ce)}),Pe(g,F)},G=g=>{var F=Mf(),U=Ue(F),ue=Ue(U),re=Ue(ue),ce=ye(re,!0);De(ue),De(U),De(F),dt(ke=>Ee(ce,ke),[()=>r()("leaderboardNotAvailable")]),Pe(g,F)};Wt(w,g=>{A(H)?g(I):A(m)?.length>0?g(N,1):g(G,-1)})}De(M),De(Ke),De(se);var he=Le(se,2);{var X=g=>{var F=Pf();Pe(g,F)};Wt(he,g=>{A(j)||g(X)})}var ie=Le(he,2);{var oe=g=>{var F=$f(),U=Ue(F),ue=ye(U,!0),re=Le(U,2);Jr(re,21,()=>A(x),Zr,(tt,Te)=>{var ft=qr(),ge=ur(ft);{var Rt=ht=>{var ct=Hf();Pe(ht,ct)},st=ht=>{var ct=Of();let _e;var Me=ye(ct,!0);dt(()=>{_e=Qn(ct,1,"PaginationButton Number svelte-1vfou2r",null,_e,{Active:A(Te)===A(b)}),Ee(Me,A(Te))}),Wr("click",ct,()=>Se(A(Te))),Pe(ht,ct)};Wt(ge,ht=>{typeof A(Te)!="number"?ht(Rt):ht(st,-1)})}Pe(tt,ft)}),De(re);var ce=Le(re,2),ke=ye(ce,!0);De(F),dt((tt,Te)=>{U.disabled=A(_)===0,Ee(ue,tt),ce.disabled=A(_)>=A(Y)-A(L),Ee(ke,Te)},[()=>r()("previousButton"),()=>r()("nextButton")]),Wr("click",U,J),Wr("click",ce,C),Pe(g,F)};Wt(ie,g=>{A(j)&&A(Y)>A(L)&&g(oe)})}De(te),dt((g,F,U,ue)=>{Ee(fe,g),Ee(lt,F),Ee(Bt,U),Ee(S,ue)},[()=>r()("rank"),()=>r()("user"),()=>r()("points"),()=>r()("prize")]),Pe(e,te);var k=mn(R);return i(),k}ta(["click"]);Ai(Oi,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[],{mode:"open"});function Ua(e,t){pn(t,!0);let r=qe(t,"endpoint"),n=qe(t,"language",7,"en"),i=qe(t,"session"),s=qe(t,"tournamentid"),a=qe(t,"platform"),o=qe(t,"translationurl"),u=qe(t,"newlyEnrolled");var f={get endpoint(){return r()},set endpoint(l){r(l),Ge()},get language(){return n()},set language(l="en"){n(l),Ge()},get session(){return i()},set session(l){i(l),Ge()},get tournamentid(){return s()},set tournamentid(l){s(l),Ge()},get platform(){return a()},set platform(l){a(l),Ge()},get translationurl(){return o()},set translationurl(l){o(l),Ge()},get newlyEnrolled(){return u()},set newlyEnrolled(l){u(l),Ge()}};return Oi(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 u()}}),mn(f)}customElements.define("tournament-leaderboard",Ai(Ua,{endpoint:{},language:{},session:{},tournamentid:{},platform:{},translationurl:{},newlyEnrolled:{}},[],[]));const Bf=Object.freeze(Object.defineProperty({__proto__:null,default:Ua},Symbol.toStringTag,{value:"Module"}));exports.$format=Da;exports.TournamentLeaderboard=Oi;exports.TournamentLeaderboard_ce=Bf;exports.TournamentWalletUtils=Nu;exports.append=Pe;exports.append_styles=ia;exports.child=Ue;exports.clsx=aa;exports.comment=qr;exports.commonjsGlobal=xn;exports.create_custom_element=Ai;exports.dayjs=Mi;exports.delegate=ta;exports.delegated=Wr;exports.each=Jr;exports.fetchTournament=bu;exports.first_child=ur;exports.flushSync=Ge;exports.from_html=it;exports.get=A;exports.getDefaultExportFromCjs=Sn;exports.getFormattedDate=Ou;exports.html=nu;exports.if_block=Wt;exports.index=Zr;exports.isServer=$u;exports.joinTournament=Au;exports.loadTranslations=Fa;exports.next=vi;exports.onDestroy=Ko;exports.onMount=Si;exports.only_child=ye;exports.pop=mn;exports.prop=qe;exports.proxy=lr;exports.push=pn;exports.registerTranslations=ka;exports.reset=De;exports.set=ve;exports.setLocale=fi;exports.set_attribute=hu;exports.set_class=Qn;exports.set_style=ou;exports.set_text=Ee;exports.setupI18n=bf;exports.setup_stores=ua;exports.sibling=Le;exports.state=Oe;exports.store_get=oa;exports.template_effect=dt;exports.text=jo;exports.user_derived=Yr;exports.user_effect=ln;exports.user_pre_effect=Fs;
|