diff --git a/_app/chunks/Console-b22dceae.js b/_app/chunks/Console-2313f8de.js similarity index 95% rename from _app/chunks/Console-b22dceae.js rename to _app/chunks/Console-2313f8de.js index 8c78aa3..580719d 100644 --- a/_app/chunks/Console-b22dceae.js +++ b/_app/chunks/Console-2313f8de.js @@ -1,2 +1,2 @@ -import{S as p,i as u,s as b,a0 as s}from"./index-0dc809ca.js";import{S as f,D as g,Q as m,v as w,w as l,u as x,a4 as h,a7 as _,a3 as C}from"./index-0686f894.js";import"./preload-helper-5ea9bf72.js";function $(c){function n(){const o=s(l);console.log(o.map(e=>e.map(t=>`%c${t.letter.toUpperCase()||" "}`).join("")).join(`%c +import{S as p,i as u,s as b,a0 as s}from"./index-0dc809ca.js";import{S as f,D as g,Q as m,v as w,w as l,u as x,a4 as h,a7 as _,a3 as C}from"./index-cbb289a9.js";import"./preload-helper-5ea9bf72.js";function $(c){function n(){const o=s(l);console.log(o.map(e=>e.map(t=>`%c${t.letter.toUpperCase()||" "}`).join("")).join(`%c `),...o.map(e=>[...e.map(t=>{let r="#312236",i="#5b505e",a="";return t.scored&&(t.distance===0?r="#15a850":t.distance<0?(r="#e38f2f",a="border-top-left-radius: 8px; border-top-right-radius: 8px;"):(r="#567de8",a="border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;"),i="#0000;"),`font-size: 16px; display:inline-block; margin:2px; padding:1px 6px; background-color:${r}; color:#eee; border: 1px solid ${i}; border-radius: 2px; text-shadow: 1px 1px 1px #0004; ${a}`}),""]).flat())}function d(o){s(l)[s(x)].filter(e=>e.letter).forEach(()=>h()),[...o].forEach(e=>_(e)),C()}return console.log("Welcome to %cWord Peaks %cconsole edition!","font-weight:bold","font-style: italic"),f.subscribe(()=>{n()}),console.log('Use %cwp_guess("_____")%c to submit guesses',"font-weight:bold",""),window.wp_guess=d,g.subscribe(o=>{!o||(s(m)?console.log("%cYou won, %cnice job! \u{1F389}","font-weight:bold",""):console.log(`%cYou lost, %cthe answer was %c${s(w).toUpperCase()}`,"font-weight:bold","","font-weight:bold"))}),[]}class y extends p{constructor(n){super(),u(this,n,$,null,b,{})}}export{y as default}; diff --git a/_app/chunks/Idler-ad88cc15.js b/_app/chunks/Idler-1fae21a5.js similarity index 94% rename from _app/chunks/Idler-ad88cc15.js rename to _app/chunks/Idler-1fae21a5.js index c841424..f99f247 100644 --- a/_app/chunks/Idler-ad88cc15.js +++ b/_app/chunks/Idler-1fae21a5.js @@ -1 +1 @@ -import{S as T,i as Y,s as j,e as m,t as q,c as h,a as _,h as C,d as v,b as y,f as F,g as Q,M as p,j as R,F as P,v as z,Q as B,a9 as V}from"./index-0dc809ca.js";import{g as G,s as H,a as J,A as K}from"./idle-scheduler-bca3e738.js";import{as as S,k as L}from"./index-0686f894.js";import"./preload-helper-5ea9bf72.js";function N(n){let l,s,e,o,a,i,r,d=(n[0]||"")+"",c;return{c(){l=m("div"),s=m("div"),e=m("div"),o=m("div"),a=m("div"),i=m("div"),r=m("div"),c=q(d),this.h()},l(f){l=h(f,"DIV",{class:!0});var u=_(l);s=h(u,"DIV",{class:!0});var g=_(s);e=h(g,"DIV",{class:!0});var I=_(e);o=h(I,"DIV",{class:!0});var D=_(o);a=h(D,"DIV",{class:!0});var b=_(a);i=h(b,"DIV",{class:!0});var E=_(i);r=h(E,"DIV",{class:!0});var t=_(r);c=C(t,d),t.forEach(v),E.forEach(v),b.forEach(v),D.forEach(v),I.forEach(v),g.forEach(v),u.forEach(v),this.h()},h(){y(r,"class","letter svelte-1ssa0ly"),y(i,"class","letter-animation svelte-1ssa0ly"),y(a,"class","letter-animation svelte-1ssa0ly"),y(o,"class","letter-animation svelte-1ssa0ly"),y(e,"class","letter-animation svelte-1ssa0ly"),F(e,"transform","translateX(-42px)"),y(s,"class","letter-anchor svelte-1ssa0ly"),y(l,"class","frame svelte-1ssa0ly")},m(f,u){Q(f,l,u),p(l,s),p(s,e),p(e,o),p(o,a),p(a,i),p(i,r),p(r,c),n[6](i),n[7](a),n[8](o),n[9](e)},p(f,[u]){u&1&&d!==(d=(f[0]||"")+"")&&R(c,d)},i:P,o:P,d(f){f&&v(l),n[6](null),n[7](null),n[8](null),n[9](null)}}}function O(n,l,s){let e=!1,o,{id:a}=l,i,r,d,c;const f={translateX:()=>i,translateY:()=>r,rotate:()=>d,scale:()=>c},u=async(t,w=0,X=1,M="forwards")=>{await Promise.all(K.map(async A=>{const k=f[A]();k&&t[A]&&await k.animate(t[A],{duration:t.duration,iterations:X,endDelay:w,fill:M}).finished}))},g=async({animations:t})=>{for(const w of t){if(!e)break;await u(w.animation,w.endDelay||0,w.iterations)}};z(async()=>{for(e=!0,await S(L(1,100));e;){const t=G(a);if("wait"in t){await S(t.wait);continue}s(0,o=t.letter),!(document.hidden||!e)&&(H(a),await g(t),J(a),await S(10*1e3))}}),B(()=>e=!1);function I(t){V[t?"unshift":"push"](()=>{c=t,s(4,c)})}function D(t){V[t?"unshift":"push"](()=>{d=t,s(3,d)})}function b(t){V[t?"unshift":"push"](()=>{r=t,s(2,r)})}function E(t){V[t?"unshift":"push"](()=>{i=t,s(1,i)})}return n.$$set=t=>{"id"in t&&s(5,a=t.id)},[o,i,r,d,c,a,I,D,b,E]}class $ extends T{constructor(l){super(),Y(this,l,O,N,j,{id:5})}}export{$ as default}; +import{S as T,i as Y,s as j,e as m,t as q,c as h,a as _,h as C,d as v,b as y,f as F,g as Q,M as p,j as R,F as P,v as z,Q as B,a9 as V}from"./index-0dc809ca.js";import{g as G,s as H,a as J,A as K}from"./idle-scheduler-0931800a.js";import{as as S,k as L}from"./index-cbb289a9.js";import"./preload-helper-5ea9bf72.js";function N(n){let l,s,e,o,a,i,r,d=(n[0]||"")+"",c;return{c(){l=m("div"),s=m("div"),e=m("div"),o=m("div"),a=m("div"),i=m("div"),r=m("div"),c=q(d),this.h()},l(f){l=h(f,"DIV",{class:!0});var u=_(l);s=h(u,"DIV",{class:!0});var g=_(s);e=h(g,"DIV",{class:!0});var I=_(e);o=h(I,"DIV",{class:!0});var D=_(o);a=h(D,"DIV",{class:!0});var b=_(a);i=h(b,"DIV",{class:!0});var E=_(i);r=h(E,"DIV",{class:!0});var t=_(r);c=C(t,d),t.forEach(v),E.forEach(v),b.forEach(v),D.forEach(v),I.forEach(v),g.forEach(v),u.forEach(v),this.h()},h(){y(r,"class","letter svelte-1ssa0ly"),y(i,"class","letter-animation svelte-1ssa0ly"),y(a,"class","letter-animation svelte-1ssa0ly"),y(o,"class","letter-animation svelte-1ssa0ly"),y(e,"class","letter-animation svelte-1ssa0ly"),F(e,"transform","translateX(-42px)"),y(s,"class","letter-anchor svelte-1ssa0ly"),y(l,"class","frame svelte-1ssa0ly")},m(f,u){Q(f,l,u),p(l,s),p(s,e),p(e,o),p(o,a),p(a,i),p(i,r),p(r,c),n[6](i),n[7](a),n[8](o),n[9](e)},p(f,[u]){u&1&&d!==(d=(f[0]||"")+"")&&R(c,d)},i:P,o:P,d(f){f&&v(l),n[6](null),n[7](null),n[8](null),n[9](null)}}}function O(n,l,s){let e=!1,o,{id:a}=l,i,r,d,c;const f={translateX:()=>i,translateY:()=>r,rotate:()=>d,scale:()=>c},u=async(t,w=0,X=1,M="forwards")=>{await Promise.all(K.map(async A=>{const k=f[A]();k&&t[A]&&await k.animate(t[A],{duration:t.duration,iterations:X,endDelay:w,fill:M}).finished}))},g=async({animations:t})=>{for(const w of t){if(!e)break;await u(w.animation,w.endDelay||0,w.iterations)}};z(async()=>{for(e=!0,await S(L(1,100));e;){const t=G(a);if("wait"in t){await S(t.wait);continue}s(0,o=t.letter),!(document.hidden||!e)&&(H(a),await g(t),J(a),await S(10*1e3))}}),B(()=>e=!1);function I(t){V[t?"unshift":"push"](()=>{c=t,s(4,c)})}function D(t){V[t?"unshift":"push"](()=>{d=t,s(3,d)})}function b(t){V[t?"unshift":"push"](()=>{r=t,s(2,r)})}function E(t){V[t?"unshift":"push"](()=>{i=t,s(1,i)})}return n.$$set=t=>{"id"in t&&s(5,a=t.id)},[o,i,r,d,c,a,I,D,b,E]}class $ extends T{constructor(l){super(),Y(this,l,O,N,j,{id:5})}}export{$ as default}; diff --git a/_app/chunks/canvas-3d51dc6a.js b/_app/chunks/canvas-1ce0cc6a.js similarity index 89% rename from _app/chunks/canvas-3d51dc6a.js rename to _app/chunks/canvas-1ce0cc6a.js index 9f384cf..02c9682 100644 --- a/_app/chunks/canvas-3d51dc6a.js +++ b/_app/chunks/canvas-1ce0cc6a.js @@ -1 +1 @@ -import{c as b}from"./index-8528d551.js";import"./preload-helper-5ea9bf72.js";import"./index-0dc809ca.js";import"./index-0686f894.js";import"./index-83aebdf3.js";import"./share-c6a42f06.js";import"./paths-396f020f.js";const r=48,e=32,w=Math.PI*2,c="#dddddd";function G(n,{width:H,height:M,features:E,pondTiles:k,mini:f},{color:s,highContrast:p}){if(!n)return;const h=p?"#161a25":"#312236";n.width=(H+1)*r,n.height=(M+2)*e,n.style.maxWidth=`min(100%, ${Math.round(n.width/2)}px)`,n.style.maxHeight=`${Math.round(n.height/2)}px`;const t=n.getContext("2d");t.fillStyle=h,t.fillRect(0,0,n.width,n.height);const y=new Path2D(b(k,r,e,r/2,e*1.5)),a=s?"#567de8":c;if(t.fillStyle=a,t.fill(y),t.lineWidth=e*.2,!s){t.save(),t.clip(y);const d=new Path2D(b(k,r,e,r/2,e*1.7));t.fillStyle=h,t.fill(d),t.strokeStyle=c,t.stroke(d),t.restore()}t.strokeStyle=a,t.stroke(y),t.lineCap="round",t.lineJoin="round";const P=e*.2,S=e*.5,T=p?"#64ba2e":"#15a850",L=s?T:c,m=p?"#da3f8b":"#e38f2f",D=s?m:c,J=s?m:h;for(const{type:d,x:W,y:x,xJitter:g,yJitter:u,size:C}of E)if(d==="tree"){const i=(.5+W+g+.5)*r,l=(1.5+x+u+.5)*e,o=(.85+C*.25)*e/2;t.lineWidth=S,t.strokeStyle=h,t.beginPath(),t.moveTo(i,l),t.lineTo(i,l-o),t.stroke(),t.arc(i,l-o*2,o+e*.15,0,w),t.fillStyle=h,t.fill(),t.strokeStyle=L,t.lineWidth=P,t.beginPath(),t.moveTo(i,l),t.lineTo(i,l-o),t.stroke(),t.beginPath(),t.arc(i,l-o*2,o-e*.1,0,w),t.stroke(),s&&(t.fillStyle=T,t.fill())}else{const i=(.5+W+g+(f?1:1.5))*r,l=(1.5+x+u+1)*e,o=((f?.8:1.35)+.2*C)*e,I=l-e/2-(f?.2:.5)*e;t.lineWidth=S,t.strokeStyle=h,t.beginPath(),t.moveTo(i-o,l),t.lineTo(i-o,I),t.arc(i,I,o,Math.PI,0),t.lineTo(i+o,l),t.ellipse(i,l,o,o/3,0,0,Math.PI),t.stroke(),t.lineWidth=P,t.strokeStyle=D,t.fillStyle=J,t.fill(),t.stroke()}}export{G as drawLandscapeToCanvas}; +import{c as b}from"./index-0758e446.js";import"./preload-helper-5ea9bf72.js";import"./index-0dc809ca.js";import"./index-cbb289a9.js";import"./index-83aebdf3.js";import"./share-84c0610e.js";import"./paths-396f020f.js";const r=48,e=32,w=Math.PI*2,c="#dddddd";function G(n,{width:H,height:M,features:E,pondTiles:k,mini:f},{color:s,highContrast:p}){if(!n)return;const h=p?"#161a25":"#312236";n.width=(H+1)*r,n.height=(M+2)*e,n.style.maxWidth=`min(100%, ${Math.round(n.width/2)}px)`,n.style.maxHeight=`${Math.round(n.height/2)}px`;const t=n.getContext("2d");t.fillStyle=h,t.fillRect(0,0,n.width,n.height);const y=new Path2D(b(k,r,e,r/2,e*1.5)),a=s?"#567de8":c;if(t.fillStyle=a,t.fill(y),t.lineWidth=e*.2,!s){t.save(),t.clip(y);const d=new Path2D(b(k,r,e,r/2,e*1.7));t.fillStyle=h,t.fill(d),t.strokeStyle=c,t.stroke(d),t.restore()}t.strokeStyle=a,t.stroke(y),t.lineCap="round",t.lineJoin="round";const P=e*.2,S=e*.5,T=p?"#64ba2e":"#15a850",L=s?T:c,m=p?"#da3f8b":"#e38f2f",D=s?m:c,J=s?m:h;for(const{type:d,x:W,y:x,xJitter:g,yJitter:u,size:C}of E)if(d==="tree"){const i=(.5+W+g+.5)*r,l=(1.5+x+u+.5)*e,o=(.85+C*.25)*e/2;t.lineWidth=S,t.strokeStyle=h,t.beginPath(),t.moveTo(i,l),t.lineTo(i,l-o),t.stroke(),t.arc(i,l-o*2,o+e*.15,0,w),t.fillStyle=h,t.fill(),t.strokeStyle=L,t.lineWidth=P,t.beginPath(),t.moveTo(i,l),t.lineTo(i,l-o),t.stroke(),t.beginPath(),t.arc(i,l-o*2,o-e*.1,0,w),t.stroke(),s&&(t.fillStyle=T,t.fill())}else{const i=(.5+W+g+(f?1:1.5))*r,l=(1.5+x+u+1)*e,o=((f?.8:1.35)+.2*C)*e,I=l-e/2-(f?.2:.5)*e;t.lineWidth=S,t.strokeStyle=h,t.beginPath(),t.moveTo(i-o,l),t.lineTo(i-o,I),t.arc(i,I,o,Math.PI,0),t.lineTo(i+o,l),t.ellipse(i,l,o,o/3,0,0,Math.PI),t.stroke(),t.lineWidth=P,t.strokeStyle=D,t.fillStyle=J,t.fill(),t.stroke()}}export{G as drawLandscapeToCanvas}; diff --git a/_app/chunks/idle-scheduler-bca3e738.js b/_app/chunks/idle-scheduler-0931800a.js similarity index 99% rename from _app/chunks/idle-scheduler-bca3e738.js rename to _app/chunks/idle-scheduler-0931800a.js index f54876b..d2c32ef 100644 --- a/_app/chunks/idle-scheduler-bca3e738.js +++ b/_app/chunks/idle-scheduler-0931800a.js @@ -1 +1 @@ -var b=Object.defineProperty,I=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var w=(a,e,s)=>e in a?b(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s,g=(a,e)=>{for(var s in e||(e={}))_.call(e,s)&&w(a,s,e[s]);if(h)for(var s of h(e))z.call(e,s)&&w(a,s,e[s]);return a},d=(a,e)=>I(a,O(e));import{a6 as A,k as o,m as r,at as k,au as m}from"./index-0686f894.js";const E=["translateX","translateY","rotate","scale"],l=n({duration:600,translateX:[{transform:"translateX(-42px)",easing:"ease-in-out"},{transform:"translateX(-30px)"}],translateY:[{transform:"translateY(0)"},{transform:"translateY(0)"}],rotate:[{transform:"rotate(-4deg)",easing:"ease-in-out"},{transform:"rotate(20deg)"}],scale:[{transform:"scaleY(1)"},{transform:"scaleY(1)"}]}),x=n({duration:400,translateX:[{transform:"translateX(-30px)",easing:"ease-in-out"},{transform:"translateX(-42px)"}],rotate:[{transform:"rotate(20deg)",easing:"ease-in-out"},{transform:"rotate(-4deg)"}]}),Y=n({duration:700,translateX:[{transform:"translateX(-30px)",offset:.4},{transform:"translateX(0)",offset:.8}],translateY:[{transform:"translateY(0)",offset:.4,easing:"ease-out"},{transform:"translateY(-10px)",offset:.6,easing:"ease-in"},{transform:"translateY(0)",offset:.8}],rotate:[{transform:"rotate(20deg)",offset:.4},{transform:"rotate(0)",offset:.8}],scale:[{transform:"scaleY(1)",easing:"ease-out"},{transform:"scaleY(0.8)",offset:.3,easing:"ease-out"},{transform:"scaleY(1.2)",offset:.5},{transform:"scaleY(1)",offset:.6},{transform:"scaleY(1)",offset:.8,easing:"ease-out"},{transform:"scaleY(0.85)",offset:.9,easing:"ease-in"},{transform:"scaleY(1)",offset:1}]}),D=n({duration:700,translateX:[{transform:"translateX(0)",offset:.4},{transform:"translateX(42px)",offset:.8}],translateY:[{transform:"translateY(0)",offset:.4,easing:"ease-out"},{transform:"translateY(-10px)",offset:.6,easing:"ease-in"},{transform:"translateY(0)",offset:.8}],rotate:[{transform:"skew(0)",offset:0,easing:"ease-out"},{transform:"skew(-20deg)",offset:.4},{transform:"skew(-4deg)",offset:.8},{transform:"skew(0)",offset:1}],scale:[{transform:"scaleY(1)",easing:"ease-out"},{transform:"scaleY(0.8)",offset:.3,easing:"ease-out"},{transform:"scaleY(1.2)",offset:.5},{transform:"scaleY(1)",offset:.6},{transform:"scaleY(1)",offset:.8,easing:"ease-out"},{transform:"scaleY(0.85)",offset:.9,easing:"ease-in"},{transform:"scaleY(1)",offset:1}]}),F=n({duration:700,translateX:[{transform:"translateX(2px)",offset:0},{transform:"translateX(0)",offset:.4}],translateY:[{transform:"translateY(-50px)",offset:0,easing:"ease-in"},{transform:"translateY(0)",offset:.4}],rotate:[{transform:"rotate(-10deg)",offset:0},{transform:"rotate(0)",offset:.4}],scale:[{transform:"scaleY(1.1)",easing:"ease-in"},{transform:"scaleY(1)",offset:.4,easing:"ease-out"},{transform:"scaleY(0.7)",offset:.5,easing:"ease-in"},{transform:"scaleY(1)",offset:.7}]}),P=n({duration:750,translateX:[{transform:"translateX(0)",offset:.4},{transform:"translateX(2px)",offset:1}],translateY:[{transform:"translateY(0)",offset:.4,easing:"ease-out"},{transform:"translateY(-3px)",offset:.5,easing:"ease-in"},{transform:"translateY(36px)",offset:.9}],rotate:[{transform:"rotate(0)",offset:.4},{transform:"rotate(-10deg)",offset:1},{transform:"rotate(0)",offset:1}],scale:[{transform:"scaleY(1)",easing:"ease-in"},{transform:"scaleY(0.8)",offset:.3,easing:"ease-out"},{transform:"scaleY(1.1)",offset:.4,easing:"ease-in"},{transform:"scaleY(1)",offset:.5,easing:"ease-in"},{transform:"scaleY(1.1)",offset:.9},{transform:"scaleY(1)",offset:1}]}),j=n({duration:300,translateX:[{transform:"translateX(0)"}],rotate:[{transform:"skew(0)",easing:"ease-in-out"},{transform:"skew(6deg)"}],scale:[{transform:"scaleY(1)",easing:"ease-in-out"},{transform:"scaleY(1.1)"}]}),J=n({duration:1e3,translateX:[{transform:"translateX(0)"}],rotate:[{transform:"skew(6deg)",easing:"ease-in"},{transform:"skew(0)",easing:"ease-out"},{transform:"skew(-6deg)",easing:"ease-in"},{transform:"skew(0)",easing:"ease-out"},{transform:"skew(6deg)"}],scale:[{transform:"scaleY(1.1)",easing:"ease-in"},{transform:"scaleY(0.8)",easing:"ease-out"},{transform:"scaleY(1.1)",easing:"ease-in"},{transform:"scaleY(0.8)",easing:"ease-out"},{transform:"scaleY(1.1)"}]}),M=n({duration:250,translateX:[{transform:"translateX(0)"}],rotate:[{transform:"skew(6deg)",easing:"ease-in-out"},{transform:"skew(0)"}],scale:[{transform:"scaleY(1.1)",easing:"ease-in-out"},{transform:"scaleY(1)"}]}),B=n({duration:800,translateX:[{transform:"translateX(0)"}],translateY:[{transform:"translateY(0)"},{transform:"translateY(0)",offset:.4,easing:"ease-out"},{transform:"translateY(-10px)",easing:"ease-in",offset:.7},{transform:"translateY(0)"}],scale:[{transform:"scaleY(1)",easing:"ease-in-out"},{transform:"scaleY(0.8)",easing:"ease-out",offset:.4},{transform:"scaleY(1)",offset:.45}],rotate:[{transform:"rotate3d(0,1,0,0)",offset:.4},{transform:"rotate3d(0,1,0,180deg)",offset:.7},{transform:"rotate3d(0,1,0,0)"}]}),C=n({duration:500,translateX:[{transform:"translateX(0)"},{transform:"translateX(0)",offset:.08,easing:"ease-out"},{transform:"translateX(-5px)",offset:.5}],rotate:[{transform:"skew(0)",easing:"ease-in-out"},{transform:"skew(-12deg)",easing:"ease-in-out"},{transform:"skew(0)"}],scale:[{transform:"scaleY(1)",easing:"ease-in-out"},{transform:"scaleY(0.9)",easing:"ease-in-out"},{transform:"scaleY(1)"}]}),G=n({duration:1200,translateX:[{transform:"translateX(-5px)",offset:.08,easing:"ease-out"},{transform:"translateX(5px)",offset:.25},{transform:"translateX(5px)",offset:.58,easing:"ease-out"},{transform:"translateX(-5px)",offset:.75}],rotate:[{transform:"skew(0)",offset:0,easing:"ease-in-out"},{transform:"skew(20deg)",offset:.25,easing:"ease-in-out"},{transform:"skew(0)",offset:.5,easing:"ease-in-out"},{transform:"skew(-20deg)",offset:.75,easing:"ease-in-out"},{transform:"skew(0)",offset:1}],scale:[{transform:"scaleY(1)",offset:0,easing:"ease-in-out"},{transform:"scaleY(0.8)",offset:.25,easing:"ease-in-out"},{transform:"scaleY(1)",offset:.5,easing:"ease-in-out"},{transform:"scaleY(0.8)",offset:.75,easing:"ease-in-out"},{transform:"scaleY(1)",offset:1}]}),K=n({duration:400,translateX:[{transform:"translateX(-5px)",offset:.08,easing:"ease-out"},{transform:"translateX(0)",offset:.5}],rotate:[{transform:"skew(0)",easing:"ease-in-out"},{transform:"skew(12deg)",easing:"ease-in-out"},{transform:"skew(0)"}],scale:[{transform:"scaleY(1)",easing:"ease-in-out"},{transform:"scaleY(0.9)",easing:"ease-in-out"},{transform:"scaleY(1)"}]});function n(a){const e=a;for(const s of E){const f=e[s];if(f){const t=f[0];t.offset&&t.offset>0&&f.unshift(d(g({},t),{offset:0}));const i=f[f.length-1];i.offset&&i.offset<1&&f.push(d(g({},i),{offset:1}))}}return e}const p=new Set,u=new Set;let c,v,X=!1;function L(a,e=!1){p.clear(),u.clear(),c=a,X=e,v=Date.now()}const T=a=>u.add(a),q=a=>u.delete(a),H=A.filter(a=>!["l","i"].includes(a));function N(a){const e=!X&&p.size===0;p.add(a);const s=X?c/2.5:Math.min(c/o(3,5),((Date.now()-v)/1e3-20)/30);if(!e&&u.size>s)return{wait:r(5e3,c*2*1e3)};const t={letter:k(e?H:A),animations:[]};if(e||m(.95)){if(e)t.animations.push({animation:l,endDelay:r(1400,2e3)}),t.animations.push({animation:x,endDelay:o(2,6)*1e3}),t.animations.push({animation:l,endDelay:r(1e3,1400)}),t.animations.push({animation:Y,endDelay:r(1e3,2e3)}),y(t.animations,o(2,3)),S(t.animations,o(2,3));else{m(.7)?(t.animations.push({animation:l,endDelay:r(0,600)}),t.animations.push({animation:Y,endDelay:r(400,2e3)})):t.animations.push({animation:F,endDelay:r(400,2e3)});let i=o(0,2);for(m(.1)&&i++;i>0;)k([()=>y(t.animations,o(1,4)),()=>Q(t.animations,o(1,4)),()=>S(t.animations,o(1,4))])(),i--}e||m(.7)?t.animations.push({animation:D}):t.animations.push({animation:P})}else m(.4)?(t.animations.push({animation:l,endDelay:r(50,1500)}),t.animations.push({animation:Y}),t.animations.push({animation:D})):(t.animations.push({animation:l,endDelay:r(50,2200)}),t.animations.push({animation:x}));return t}const y=(a,e)=>{a.push({animation:j}),a.push({animation:J,iterations:e}),a.push({animation:M,endDelay:r(300,1e3)})},Q=(a,e)=>{a.push({animation:C}),a.push({animation:G,iterations:e}),a.push({animation:K,endDelay:r(300,1e3)})},S=(a,e)=>{a.push({animation:B,iterations:e,endDelay:r(300,1e3)})};var V=Object.freeze(Object.defineProperty({__proto__:null,initScheduler:L,startAnimation:T,stopAnimation:q,getSchedule:N},Symbol.toStringTag,{value:"Module"}));export{E as A,q as a,N as g,V as i,T as s}; +var b=Object.defineProperty,I=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var w=(a,e,s)=>e in a?b(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s,g=(a,e)=>{for(var s in e||(e={}))_.call(e,s)&&w(a,s,e[s]);if(h)for(var s of h(e))z.call(e,s)&&w(a,s,e[s]);return a},d=(a,e)=>I(a,O(e));import{a6 as A,k as o,m as r,at as k,au as m}from"./index-cbb289a9.js";const E=["translateX","translateY","rotate","scale"],l=n({duration:600,translateX:[{transform:"translateX(-42px)",easing:"ease-in-out"},{transform:"translateX(-30px)"}],translateY:[{transform:"translateY(0)"},{transform:"translateY(0)"}],rotate:[{transform:"rotate(-4deg)",easing:"ease-in-out"},{transform:"rotate(20deg)"}],scale:[{transform:"scaleY(1)"},{transform:"scaleY(1)"}]}),x=n({duration:400,translateX:[{transform:"translateX(-30px)",easing:"ease-in-out"},{transform:"translateX(-42px)"}],rotate:[{transform:"rotate(20deg)",easing:"ease-in-out"},{transform:"rotate(-4deg)"}]}),Y=n({duration:700,translateX:[{transform:"translateX(-30px)",offset:.4},{transform:"translateX(0)",offset:.8}],translateY:[{transform:"translateY(0)",offset:.4,easing:"ease-out"},{transform:"translateY(-10px)",offset:.6,easing:"ease-in"},{transform:"translateY(0)",offset:.8}],rotate:[{transform:"rotate(20deg)",offset:.4},{transform:"rotate(0)",offset:.8}],scale:[{transform:"scaleY(1)",easing:"ease-out"},{transform:"scaleY(0.8)",offset:.3,easing:"ease-out"},{transform:"scaleY(1.2)",offset:.5},{transform:"scaleY(1)",offset:.6},{transform:"scaleY(1)",offset:.8,easing:"ease-out"},{transform:"scaleY(0.85)",offset:.9,easing:"ease-in"},{transform:"scaleY(1)",offset:1}]}),D=n({duration:700,translateX:[{transform:"translateX(0)",offset:.4},{transform:"translateX(42px)",offset:.8}],translateY:[{transform:"translateY(0)",offset:.4,easing:"ease-out"},{transform:"translateY(-10px)",offset:.6,easing:"ease-in"},{transform:"translateY(0)",offset:.8}],rotate:[{transform:"skew(0)",offset:0,easing:"ease-out"},{transform:"skew(-20deg)",offset:.4},{transform:"skew(-4deg)",offset:.8},{transform:"skew(0)",offset:1}],scale:[{transform:"scaleY(1)",easing:"ease-out"},{transform:"scaleY(0.8)",offset:.3,easing:"ease-out"},{transform:"scaleY(1.2)",offset:.5},{transform:"scaleY(1)",offset:.6},{transform:"scaleY(1)",offset:.8,easing:"ease-out"},{transform:"scaleY(0.85)",offset:.9,easing:"ease-in"},{transform:"scaleY(1)",offset:1}]}),F=n({duration:700,translateX:[{transform:"translateX(2px)",offset:0},{transform:"translateX(0)",offset:.4}],translateY:[{transform:"translateY(-50px)",offset:0,easing:"ease-in"},{transform:"translateY(0)",offset:.4}],rotate:[{transform:"rotate(-10deg)",offset:0},{transform:"rotate(0)",offset:.4}],scale:[{transform:"scaleY(1.1)",easing:"ease-in"},{transform:"scaleY(1)",offset:.4,easing:"ease-out"},{transform:"scaleY(0.7)",offset:.5,easing:"ease-in"},{transform:"scaleY(1)",offset:.7}]}),P=n({duration:750,translateX:[{transform:"translateX(0)",offset:.4},{transform:"translateX(2px)",offset:1}],translateY:[{transform:"translateY(0)",offset:.4,easing:"ease-out"},{transform:"translateY(-3px)",offset:.5,easing:"ease-in"},{transform:"translateY(36px)",offset:.9}],rotate:[{transform:"rotate(0)",offset:.4},{transform:"rotate(-10deg)",offset:1},{transform:"rotate(0)",offset:1}],scale:[{transform:"scaleY(1)",easing:"ease-in"},{transform:"scaleY(0.8)",offset:.3,easing:"ease-out"},{transform:"scaleY(1.1)",offset:.4,easing:"ease-in"},{transform:"scaleY(1)",offset:.5,easing:"ease-in"},{transform:"scaleY(1.1)",offset:.9},{transform:"scaleY(1)",offset:1}]}),j=n({duration:300,translateX:[{transform:"translateX(0)"}],rotate:[{transform:"skew(0)",easing:"ease-in-out"},{transform:"skew(6deg)"}],scale:[{transform:"scaleY(1)",easing:"ease-in-out"},{transform:"scaleY(1.1)"}]}),J=n({duration:1e3,translateX:[{transform:"translateX(0)"}],rotate:[{transform:"skew(6deg)",easing:"ease-in"},{transform:"skew(0)",easing:"ease-out"},{transform:"skew(-6deg)",easing:"ease-in"},{transform:"skew(0)",easing:"ease-out"},{transform:"skew(6deg)"}],scale:[{transform:"scaleY(1.1)",easing:"ease-in"},{transform:"scaleY(0.8)",easing:"ease-out"},{transform:"scaleY(1.1)",easing:"ease-in"},{transform:"scaleY(0.8)",easing:"ease-out"},{transform:"scaleY(1.1)"}]}),M=n({duration:250,translateX:[{transform:"translateX(0)"}],rotate:[{transform:"skew(6deg)",easing:"ease-in-out"},{transform:"skew(0)"}],scale:[{transform:"scaleY(1.1)",easing:"ease-in-out"},{transform:"scaleY(1)"}]}),B=n({duration:800,translateX:[{transform:"translateX(0)"}],translateY:[{transform:"translateY(0)"},{transform:"translateY(0)",offset:.4,easing:"ease-out"},{transform:"translateY(-10px)",easing:"ease-in",offset:.7},{transform:"translateY(0)"}],scale:[{transform:"scaleY(1)",easing:"ease-in-out"},{transform:"scaleY(0.8)",easing:"ease-out",offset:.4},{transform:"scaleY(1)",offset:.45}],rotate:[{transform:"rotate3d(0,1,0,0)",offset:.4},{transform:"rotate3d(0,1,0,180deg)",offset:.7},{transform:"rotate3d(0,1,0,0)"}]}),C=n({duration:500,translateX:[{transform:"translateX(0)"},{transform:"translateX(0)",offset:.08,easing:"ease-out"},{transform:"translateX(-5px)",offset:.5}],rotate:[{transform:"skew(0)",easing:"ease-in-out"},{transform:"skew(-12deg)",easing:"ease-in-out"},{transform:"skew(0)"}],scale:[{transform:"scaleY(1)",easing:"ease-in-out"},{transform:"scaleY(0.9)",easing:"ease-in-out"},{transform:"scaleY(1)"}]}),G=n({duration:1200,translateX:[{transform:"translateX(-5px)",offset:.08,easing:"ease-out"},{transform:"translateX(5px)",offset:.25},{transform:"translateX(5px)",offset:.58,easing:"ease-out"},{transform:"translateX(-5px)",offset:.75}],rotate:[{transform:"skew(0)",offset:0,easing:"ease-in-out"},{transform:"skew(20deg)",offset:.25,easing:"ease-in-out"},{transform:"skew(0)",offset:.5,easing:"ease-in-out"},{transform:"skew(-20deg)",offset:.75,easing:"ease-in-out"},{transform:"skew(0)",offset:1}],scale:[{transform:"scaleY(1)",offset:0,easing:"ease-in-out"},{transform:"scaleY(0.8)",offset:.25,easing:"ease-in-out"},{transform:"scaleY(1)",offset:.5,easing:"ease-in-out"},{transform:"scaleY(0.8)",offset:.75,easing:"ease-in-out"},{transform:"scaleY(1)",offset:1}]}),K=n({duration:400,translateX:[{transform:"translateX(-5px)",offset:.08,easing:"ease-out"},{transform:"translateX(0)",offset:.5}],rotate:[{transform:"skew(0)",easing:"ease-in-out"},{transform:"skew(12deg)",easing:"ease-in-out"},{transform:"skew(0)"}],scale:[{transform:"scaleY(1)",easing:"ease-in-out"},{transform:"scaleY(0.9)",easing:"ease-in-out"},{transform:"scaleY(1)"}]});function n(a){const e=a;for(const s of E){const f=e[s];if(f){const t=f[0];t.offset&&t.offset>0&&f.unshift(d(g({},t),{offset:0}));const i=f[f.length-1];i.offset&&i.offset<1&&f.push(d(g({},i),{offset:1}))}}return e}const p=new Set,u=new Set;let c,v,X=!1;function L(a,e=!1){p.clear(),u.clear(),c=a,X=e,v=Date.now()}const T=a=>u.add(a),q=a=>u.delete(a),H=A.filter(a=>!["l","i"].includes(a));function N(a){const e=!X&&p.size===0;p.add(a);const s=X?c/2.5:Math.min(c/o(3,5),((Date.now()-v)/1e3-20)/30);if(!e&&u.size>s)return{wait:r(5e3,c*2*1e3)};const t={letter:k(e?H:A),animations:[]};if(e||m(.95)){if(e)t.animations.push({animation:l,endDelay:r(1400,2e3)}),t.animations.push({animation:x,endDelay:o(2,6)*1e3}),t.animations.push({animation:l,endDelay:r(1e3,1400)}),t.animations.push({animation:Y,endDelay:r(1e3,2e3)}),y(t.animations,o(2,3)),S(t.animations,o(2,3));else{m(.7)?(t.animations.push({animation:l,endDelay:r(0,600)}),t.animations.push({animation:Y,endDelay:r(400,2e3)})):t.animations.push({animation:F,endDelay:r(400,2e3)});let i=o(0,2);for(m(.1)&&i++;i>0;)k([()=>y(t.animations,o(1,4)),()=>Q(t.animations,o(1,4)),()=>S(t.animations,o(1,4))])(),i--}e||m(.7)?t.animations.push({animation:D}):t.animations.push({animation:P})}else m(.4)?(t.animations.push({animation:l,endDelay:r(50,1500)}),t.animations.push({animation:Y}),t.animations.push({animation:D})):(t.animations.push({animation:l,endDelay:r(50,2200)}),t.animations.push({animation:x}));return t}const y=(a,e)=>{a.push({animation:j}),a.push({animation:J,iterations:e}),a.push({animation:M,endDelay:r(300,1e3)})},Q=(a,e)=>{a.push({animation:C}),a.push({animation:G,iterations:e}),a.push({animation:K,endDelay:r(300,1e3)})},S=(a,e)=>{a.push({animation:B,iterations:e,endDelay:r(300,1e3)})};var V=Object.freeze(Object.defineProperty({__proto__:null,initScheduler:L,startAnimation:T,stopAnimation:q,getSchedule:N},Symbol.toStringTag,{value:"Module"}));export{E as A,q as a,N as g,V as i,T as s}; diff --git a/_app/chunks/index-8528d551.js b/_app/chunks/index-0758e446.js similarity index 99% rename from _app/chunks/index-8528d551.js rename to _app/chunks/index-0758e446.js index d595428..1df5955 100644 --- a/_app/chunks/index-8528d551.js +++ b/_app/chunks/index-0758e446.js @@ -1,4 +1,4 @@ -var Ss=Object.defineProperty,Ds=Object.defineProperties;var Cs=Object.getOwnPropertyDescriptors;var Kt=Object.getOwnPropertySymbols;var Zl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable;var Kl=(l,e,t)=>e in l?Ss(l,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[e]=t,At=(l,e)=>{for(var t in e||(e={}))Zl.call(e,t)&&Kl(l,t,e[t]);if(Kt)for(var t of Kt(e))Ql.call(e,t)&&Kl(l,t,e[t]);return l},Zt=(l,e)=>Ds(l,Cs(e));var $l=(l,e)=>{var t={};for(var i in l)Zl.call(l,i)&&e.indexOf(i)<0&&(t[i]=l[i]);if(l!=null&&Kt)for(var i of Kt(l))e.indexOf(i)<0&&Ql.call(l,i)&&(t[i]=l[i]);return t};import{_ as zt,w as Ms}from"./preload-helper-5ea9bf72.js";import{S as Ne,i as Ve,s as Me,a7 as W,a8 as q,a as w,d as _,b as a,f as fe,g as N,M as g,F as ce,v as tt,a9 as Ge,l as _e,aa as lt,k as ee,m as te,_ as fl,ab as Ls,E as it,x as me,y as we,z as ge,n as Te,ac as Hl,p as Ie,q as A,o as R,C as ve,e as H,c as j,X as ct,ad as Ur,N as de,H as $e,P as Ee,a0 as be,ae as Os,a1 as bt,O as oe,a3 as pt,a4 as kt,a5 as wt,t as se,h as ne,j as he,Y as Ns,Z as jl,af as tl,Q as Yr,D as rt,ag as ll,ah as cl,ai as Rt,aj as et,ak as Vs,al as Jr,w as Ue,am as il,an as hl,ao as pl,ap as Ht,aq as Hs,A as Wt,ar as js,as as Bl,at as Tl,B as Xr,au as Bs,av as rl,R as Ps,T as As,aw as Gs,ax as Fs}from"./index-0dc809ca.js";import{r as _l,x as gt,i as Kr,j as Ut,k as zs,m as sl,n as xl,o as ei,p as ti,q as kl,f as Bt,u as Pl,v as Zr,w as dl,y as Qr,z as Rs,A as Ws,B as qs,C as Us,D as $r,E as Ys,F as xr,G as Ze,H as Il,I as Sl,R as jt,J as at,K as nl,L as It,W as wl,M as Qt,N as Gt,O as $t,P as Js,c as es,Q as Xs,S as yl,T as Ft,U as Ks,t as qt,h as Dl,V as Zs,X as Qs,Y as al,Z as ts,_ as Al,$ as $s,a0 as Cl,a1 as xs,a2 as Gl,a3 as Fl,a4 as xt,a5 as li,a6 as en,a7 as ii,a8 as tn,a9 as ls,aa as ri,ab as si,ac as is,ad as ln,d as ni,ae as ai,af as oi,b as rn,ag as sn,ah as nn,ai as an,aj as on,ak as un,al as fn,am as cn,an as hn,ao as _n}from"./index-0686f894.js";import{q as Ml,c as vt,a as ot,b as dn,s as ui,f as fi}from"./index-83aebdf3.js";import{a as rs,g as mn,c as gn,b as vn,d as bn,s as ci,e as pn}from"./share-c6a42f06.js";import{b as kn}from"./paths-396f020f.js";/*! ***************************************************************************** +var Ss=Object.defineProperty,Ds=Object.defineProperties;var Cs=Object.getOwnPropertyDescriptors;var Kt=Object.getOwnPropertySymbols;var Zl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable;var Kl=(l,e,t)=>e in l?Ss(l,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[e]=t,At=(l,e)=>{for(var t in e||(e={}))Zl.call(e,t)&&Kl(l,t,e[t]);if(Kt)for(var t of Kt(e))Ql.call(e,t)&&Kl(l,t,e[t]);return l},Zt=(l,e)=>Ds(l,Cs(e));var $l=(l,e)=>{var t={};for(var i in l)Zl.call(l,i)&&e.indexOf(i)<0&&(t[i]=l[i]);if(l!=null&&Kt)for(var i of Kt(l))e.indexOf(i)<0&&Ql.call(l,i)&&(t[i]=l[i]);return t};import{_ as zt,w as Ms}from"./preload-helper-5ea9bf72.js";import{S as Ne,i as Ve,s as Me,a7 as W,a8 as q,a as w,d as _,b as a,f as fe,g as N,M as g,F as ce,v as tt,a9 as Ge,l as _e,aa as lt,k as ee,m as te,_ as fl,ab as Ls,E as it,x as me,y as we,z as ge,n as Te,ac as Hl,p as Ie,q as A,o as R,C as ve,e as H,c as j,X as ct,ad as Ur,N as de,H as $e,P as Ee,a0 as be,ae as Os,a1 as bt,O as oe,a3 as pt,a4 as kt,a5 as wt,t as se,h as ne,j as he,Y as Ns,Z as jl,af as tl,Q as Yr,D as rt,ag as ll,ah as cl,ai as Rt,aj as et,ak as Vs,al as Jr,w as Ue,am as il,an as hl,ao as pl,ap as Ht,aq as Hs,A as Wt,ar as js,as as Bl,at as Tl,B as Xr,au as Bs,av as rl,R as Ps,T as As,aw as Gs,ax as Fs}from"./index-0dc809ca.js";import{r as _l,x as gt,i as Kr,j as Ut,k as zs,m as sl,n as xl,o as ei,p as ti,q as kl,f as Bt,u as Pl,v as Zr,w as dl,y as Qr,z as Rs,A as Ws,B as qs,C as Us,D as $r,E as Ys,F as xr,G as Ze,H as Il,I as Sl,R as jt,J as at,K as nl,L as It,W as wl,M as Qt,N as Gt,O as $t,P as Js,c as es,Q as Xs,S as yl,T as Ft,U as Ks,t as qt,h as Dl,V as Zs,X as Qs,Y as al,Z as ts,_ as Al,$ as $s,a0 as Cl,a1 as xs,a2 as Gl,a3 as Fl,a4 as xt,a5 as li,a6 as en,a7 as ii,a8 as tn,a9 as ls,aa as ri,ab as si,ac as is,ad as ln,d as ni,ae as ai,af as oi,b as rn,ag as sn,ah as nn,ai as an,aj as on,ak as un,al as fn,am as cn,an as hn,ao as _n}from"./index-cbb289a9.js";import{q as Ml,c as vt,a as ot,b as dn,s as ui,f as fi}from"./index-83aebdf3.js";import{a as rs,g as mn,c as gn,b as vn,d as bn,s as ci,e as pn}from"./share-84c0610e.js";import{b as kn}from"./paths-396f020f.js";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -13,15 +13,15 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Ll=function(l,e){return Ll=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},Ll(l,e)};function zl(l,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=l}Ll(l,e),l.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ol,Rl=function(){function l(){}return l._xfnv1a=function(e){for(var t=2166136261,i=0;i>>7,t+=t<<3,t^=t>>>17,(t+=t<<5)>>>0}},l}(),wn=function(l){function e(t){var i=l.call(this)||this;return i.a=e._xfnv1a(t)(),i}return zl(e,l),e.prototype.next=function(){var t=this.a+=1831565813;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/4294967296},e}(Rl),yn=function(l){function e(t){var i=l.call(this)||this,r=e._xfnv1a(t);return i.a=r(),i.b=r(),i.c=r(),i.d=r(),i}return zl(e,l),e.prototype.next=function(){this.a>>>=0,this.b>>>=0,this.c>>>=0,this.d>>>=0;var t=this.a+this.b|0;return this.a=this.b^this.b>>>9,this.b=this.c+(this.c<<3)|0,this.c=this.c<<21|this.c>>>11,this.d=this.d+1|0,t=t+this.d|0,this.c=this.c+t|0,(t>>>0)/4294967296},e}(Rl),En=function(l){function e(t){var i=l.call(this)||this,r=e._xfnv1a(t);return i.a=r(),i.b=r(),i.c=r(),i.d=r(),i}return zl(e,l),e.prototype.next=function(){var t=this.b<<9,i=5*this.a;return i=i<<7|9*(i>>>25),this.c^=this.a,this.d^=this.b,this.b^=this.c,this.a^=this.d,this.c^=t,this.d=this.d<<11|this.d>>>21,(i>>>0)/4294967296},e}(Rl);(function(l){l.sfc32="sfc32",l.mulberry32="mulberry32",l.xoshiro128ss="xoshiro128ss"})(Ol||(Ol={}));var Tn=function(){function l(e,t){t===void 0&&(t=Ol.sfc32),this.str=e,this.prng=t,this.generator=this._initializeGenerator()}return l.prototype.next=function(){return this.generator.next()},l.prototype._initializeGenerator=function(){if(function(t){return t===null}(e=this.str)||function(t){return t===void 0}(e))return this.wrap();var e;switch(this.prng){case"sfc32":return new yn(this.str);case"mulberry32":return new wn(this.str);case"xoshiro128ss":return new En(this.str);default:return this.wrap()}},l.prototype.wrap=function(){return{next:function(){return Math.random()}}},l}();function In(l,e){const{openTiles:t}=e;let i=!1;for(;!i;){const r=[...t].filter(([,{noPond:o}])=>!o);if(r.length===0)break;const[s,n]=_l(r,r.map(([,{centerWeight:o,nearPonds:u}])=>o/((u||0)+1)),l);i=Sn(s,n.x,n.y,l,e)}i&&e.pondDelay===void 0&&(e.pondDelay=e.totalDelay,e.totalDelay+=Wl*(e.mini?6:4))}function Sn(l,e,t,i,r){const{width:s,height:n,tileMap:o,centerX:u,centerY:f}=r,c=new Map,h=new Map([[l,{weight:1,x:e,y:t}]]),d=r.mini?4:6;for(let v=0;v{const p=r.openTiles.get(gt(E));p&&(p.noPond=!0)}),!1;const m=[...h],y=m.map(([,{weight:E}])=>E),[b,{x:T,y:k}]=_l(m,y,i);h.delete(b),r.openTiles.delete(b),c.set(b,[T,k]),Kr(T,k).forEach(([E,p])=>{if(E<0||E>=s||p<0||p>=n)return;const S=gt([E,p]);if(c.has(S)||o.has(S))return;let B=Ut(E-u,p-f),I=r.openTiles.get(S);I?(I.nearPonds=(I.nearPonds||0)+1,B*=I.nearPonds):(I={x:E,y:p,centerWeight:ql(r,E,p),nearPonds:1},r.openTiles.set(S,I)),h.set(S,{weight:B,x:E,y:p})})}return c.forEach(v=>o.set(gt(v),"pond")),r.pondTiles.push(...c.values()),r.newPondTiles.push(...c.values()),!0}function hi([l,e],[t,i],[r,s],n=1.5,o=1,u=0,f=0){const c=t*n+u,h=i*o+f;return r===t||s===i?`L${c} ${h}`:`Q${l*n+u} ${e*o+f} ${c} ${h}`}const Dn=[[0,0,0,1,0],[0,1,1,1,1],[1,1,1,0,2],[1,0,0,0,3]],Cn=[1,3,0];function Mn(l,e=1.5,t=1,i=0,r=0){const s=new Map,n=new Map;for(const[v,m]of l)for(const[y,b,T,k,E]of Dn){const p=v+y,S=m+b,L=v+T,B=m+k,I=`${p}:${S}:${E}`,O=E>1?`${L}:${B}:${E%2}`:`${p}:${S}:${E%2}`,D=s.get(O);D?(s.delete(O),n.delete(D)):(s.set(O,I),n.set(I,`${L}:${B}`))}let o="",u=!0,f,c,h,d;for(;n.size>0;){const[v,m]=d?[d,n.get(d)]:[...n][0];n.delete(v),d=void 0;const[y,b,T]=v.split(":").map(L=>+L),[k,E]=m.split(":").map(L=>+L),p=(y+k)/2,S=(b+E)/2;u?(c=[y,b],h=[p,S],o+=`M${p*e+i} ${S*t+r}`):o+=hi([y,b],[p,S],f,e,t,i,r),u=!1,f=[p,S];for(const L of Cn){const B=`${m}:${(T+L)%4}`;if(n.has(B)){d=B;break}}d||(o+=hi(c,h,f,e,t,i,r),o+="Z",u=!0)}return o}function Ln(l,e){const t=e.mini?4:6,{features:i,tileMap:r,openTiles:s,width:n,height:o}=e;let u=!1;const f=[];for(;!u;){const m=[...s].filter(([,{noHill:E}])=>!E);if(m.length===0)break;const y=m.map(([,{y:E,centerWeight:p}])=>E>1?p:0),[,b]=_l(m,y,l),T=zs(0,5,l),k=e.mini?On:ss;for(let E=0;E=n)continue;const I=b.y-L;if(I<0||I+1>=o)continue;const O=s.get(gt([B,I]));if(!(O!=null&&O.noHill)){f.length=0;for(const[D,F]of k){const P=gt([B+D,I+F]);if(r.has(P))break;f.push(P)}if(!(f.length=n||T<0||T>=o)continue;const k=gt([b,T]);if(r.has(k))continue;const E=!e.mini&&m===0,p=s.get(k);p&&E?p.noHill=E:s.set(k,{x:b,y:T,centerWeight:ql(e,b,T),noHill:E})}}const ss=[[0,0],[1,0],[0,1],[1,1],[2,0],[2,1]],On=ss.slice(0,4),Nn=[[0,-1],[1,-1],[2,-1],[-1,0],[-1,1],[0,2],[1,2],[2,2],[3,0],[3,1]],Vn=[[0,-1],[1,-1],[-1,0],[-1,1],[2,0],[2,1],[0,2],[1,2]];function Hn(l,e,t){const{features:i,tileMap:r,openTiles:s,width:n,height:o}=e,u=e.mini?4:6;for(let f=0;fy===0?0:t?b**3:b*((T||0)+1)),l);s.delete(h),Kr(d,v).forEach(([y,b])=>{if(y<0||y>=n||b<0||b>=o)return;const T=gt([y,b]);if(r.has(T))return;const k=s.get(T);k?k.nearTrees=(k.nearTrees||0)+1:s.set(T,{x:y,y:b,centerWeight:ql(e,y,b),nearTrees:1})});const m={type:"tree",id:e.nextID++,x:d,y:v,xJitter:sl(-.35,.35,l),yJitter:sl(-.25,.15,l),size:l(),delay:e.totalDelay};i.push(m),e.totalDelay+=Wl,r.set(h,m)}}const Wl=30;function jn(l,e,t,i){for(l.totalDelay=i>1&&l.rowsGenerated===0?0:500,l.newPondTiles.length=0,l.rowsGenerated===0&&i>l.rowsGenerated&&l.openTiles.set(gt([l.centerX,l.centerY]),{x:l.centerX,y:l.centerY,centerWeight:1});l.rowsGeneratedo.next(),f=s===t;for(const c of r)c.polarity===0?Hn(u,l,f):c.polarity<0?Ln(u,l):In(u,l);l.rowsGenerated++}return l.features.sort((r,s)=>_i(r)-_i(s)),At({},l)}function ql({centerX:l,centerY:e},t,i){const r=1-Math.abs(i-e)/(e+1),s=1-Math.abs(t-l)/(l+1);return r*s}const _i=l=>l.y+l.yJitter,di=l=>l.map(e=>e.letter).join(""),Bn={top:"translateY(-",bottom:"translateY(",left:"translateX(-",right:"translateX("},Pn=(l,i)=>{var r=i,{from:e="top"}=r,t=$l(r,["from"]);return Zt(At({},t),{tick:(s,n)=>{l.style.setProperty("transform",`${Bn[e]}${n*100}%)`),l.style.setProperty("opacity",`${s}`)}})},An=(l,e)=>Zt(At({},e),{tick:t=>{l.style.setProperty("opacity",`${t}`)}}),Fe={cubicIn:"0.32, 0, 0.67, 0",cubicOut:"0.33, 1, 0.68, 1",cubicInOut:"0.65, 0, 0.35, 1",sineIn:"0.12, 0, 0.39, 0",sineOut:"0.61, 1, 0.88, 1",sineInOut:"0.37, 0, 0.63, 1",circIn:"0.55, 0, 1, 0.45",circOut:"0, 0.55, 0.45, 1",expoIn:"0.7, 0, 0.84, 0",expoOut:"0.16, 1, 0.3, 1"},mi=()=>{if(navigator.userAgent.match("iPhone.*CriOS"))return!1;const l=document.createElement("a");if(document.body.appendChild(l),!l.animate)return!1;const e=l.animate({opacity:[1,.5,.75]},{iterations:1,duration:100,fill:"forwards"});if(!e||!e.finished||!e.finished.then)return!1;e.pause(),e.currentTime=50;const t=parseFloat(window.getComputedStyle(l).opacity);e.finish();const i=parseFloat(window.getComputedStyle(l).opacity);return l.remove(),t===.5&&i===.75};function Gn(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m=`translateY(${l[5]?.3:0}px)`,y=`transform ${l[5]?50:200}ms ease-out`,b,T,k,E=`fill ${l[10]?200:1e3}ms ease, stroke ${l[10]?200:1e3}ms ease`,p,S,L,B,I,O,D,F,P,U=`fill ${l[10]?200:1e3}ms ease, stroke ${l[10]?200:1e3}ms ease`,G=`translateY(${l[5]?.3:0}px)`,M=`transform ${l[5]?50:200}ms ease-out`,V,J,X,Q,Z,$,K,Y,ue,x,re=`translateY(${l[5]?.3:0}px)`,ke=`transform ${l[5]?50:200}ms ease-out`,z,ie,le,Se,Re,je,ze,Ye,We=`scaleY(${l[5]?.7:1})`,Ke=`transform ${l[5]?50:200}ms ease-out`,Qe;return{c(){e=W("g"),t=W("g"),i=W("animateTransform"),n=W("line"),u=W("circle"),f=W("animate"),b=W("line"),p=W("g"),S=W("circle"),L=W("animate"),V=W("animate"),Z=W("circle"),$=W("animate"),z=W("line"),ie=W("animate"),je=W("animate"),this.h()},l(ae){e=q(ae,"g",{transform:!0});var pe=w(e);t=q(pe,"g",{opacity:!0});var Je=w(t);i=q(Je,"animateTransform",{id:!0,attributeName:!0,type:!0,begin:!0,values:!0,keyTimes:!0,calcMode:!0,dur:!0,keySplines:!0}),w(i).forEach(_),n=q(Je,"line",{stroke:!0,"stroke-width":!0,"stroke-linecap":!0,y2:!0}),w(n).forEach(_),u=q(Je,"circle",{cy:!0,r:!0,fill:!0});var Pe=w(u);f=q(Pe,"animate",{attributeName:!0,begin:!0,values:!0,keyTimes:!0,calcMode:!0,dur:!0,keySplines:!0}),w(f).forEach(_),Pe.forEach(_),b=q(Je,"line",{stroke:!0,"stroke-width":!0,"stroke-linecap":!0,y2:!0}),w(b).forEach(_),p=q(Je,"g",{});var Xe=w(p);S=q(Xe,"circle",{cy:!0,r:!0,fill:!0,stroke:!0,"stroke-width":!0});var Le=w(S);L=q(Le,"animate",{attributeName:!0,begin:!0,values:!0,keyTimes:!0,calcMode:!0,dur:!0,keySplines:!0}),w(L).forEach(_),Le.forEach(_),Xe.forEach(_),V=q(Je,"animate",{id:!0,attributeName:!0,values:!0,keyTimes:!0,begin:!0,dur:!0,fill:!0}),w(V).forEach(_),Je.forEach(_),Z=q(pe,"circle",{cy:!0,r:!0,fill:!0});var ht=w(Z);$=q(ht,"animate",{attributeName:!0,values:!0,keyTimes:!0,begin:!0,dur:!0,calcMode:!0,keySplines:!0,fill:!0}),w($).forEach(_),ht.forEach(_),z=q(pe,"line",{stroke:!0,"stroke-width":!0,"stroke-linecap":!0});var Ae=w(z);ie=q(Ae,"animate",{attributeName:!0,values:!0,keyTimes:!0,begin:!0,dur:!0,fill:!0,calcMode:!0,keySplines:!0}),w(ie).forEach(_),je=q(Ae,"animate",{attributeName:!0,values:!0,keyTimes:!0,begin:!0,dur:!0,fill:!0,calcMode:!0,keySplines:!0}),w(je).forEach(_),Ae.forEach(_),pe.forEach(_),this.h()},h(){a(i,"id",r="tree_nudge_animate_"+l[0]),a(i,"attributeName","transform"),a(i,"type","skewX"),a(i,"begin","indefinite"),a(i,"values",s="0;"+l[11]+";0"),a(i,"keyTimes","0;0.3;1"),a(i,"calcMode","spline"),a(i,"dur","600ms"),a(i,"keySplines",Fe.cubicOut+";"+Fe.cubicIn),a(n,"stroke","var(--tertiary-color)"),a(n,"stroke-width",Vt*2.5),a(n,"stroke-linecap","round"),a(n,"y2",o=-l[2]),a(f,"attributeName","cy"),a(f,"begin",c="tree_nudge_animate_"+l[0]+".begin"),a(f,"values",h=-l[6]+";"+(-l[6]-l[12])+";"+-l[6]),a(f,"keyTimes","0;0.3;1"),a(f,"calcMode","spline"),a(f,"dur","600ms"),a(f,"keySplines",Fe.cubicOut+";"+Fe.cubicIn),a(u,"cy",d=-l[2]-l[1]),a(u,"r",v=l[1]+l[14]*1.5),a(u,"fill","var(--tertiary-color)"),fe(u,"transform",m),fe(u,"transition",y),a(b,"stroke",T="var(--"+(l[10]?"correct-color":"landscape-color")+")"),a(b,"stroke-width",Vt),a(b,"stroke-linecap","round"),a(b,"y2",k=-l[2]-l[1]/2),fe(b,"transition",E),a(L,"attributeName","cy"),a(L,"begin",B="tree_nudge_animate_"+l[0]+".begin"),a(L,"values",I=-l[6]+";"+(-l[6]-l[12])+";"+-l[6]),a(L,"keyTimes","0;0.3;1"),a(L,"calcMode","spline"),a(L,"dur","600ms"),a(L,"keySplines",Fe.cubicOut+";"+Fe.cubicIn),a(S,"cy",O=-l[6]),a(S,"r",D=l[1]-l[14]),a(S,"fill",F="var(--"+(l[10]?"correct-color":"tertiary-color")+")"),a(S,"stroke",P="var(--"+(l[10]?"correct-color":"landscape-color")+")"),a(S,"stroke-width",Vt),fe(S,"transition",U),fe(p,"transform",G),fe(p,"transition",M),a(V,"id",J="animate_tree_"+l[0]),a(V,"attributeName","opacity"),a(V,"values","0;0;1;1"),a(V,"keyTimes","0;0.4;0.6;1"),a(V,"begin","indefinite"),a(V,"dur",X=l[13]+"ms"),a(V,"fill","freeze"),a(t,"opacity",Q=l[7]?0:1),a($,"attributeName","r"),a($,"values",K="0;0;"+l[1]+";0;0"),a($,"keyTimes","0;0.2;0.5;0.8;1"),a($,"begin",Y="animate_tree_"+l[0]+".begin"),a($,"dur",ue=l[13]+"ms"),a($,"calcMode","spline"),a($,"keySplines","0 0 0 0;"+Fe.cubicOut+";"+Fe.cubicIn+";0 0 0 0"),a($,"fill","freeze"),a(Z,"cy",x=-l[2]-l[1]),a(Z,"r","0"),a(Z,"fill","var(--correct-color)"),fe(Z,"transform",re),fe(Z,"transition",ke),a(ie,"attributeName","y2"),a(ie,"values",le="0;"+(-l[2]-l[1])+";"+(-l[2]-l[1])+";0"),a(ie,"keyTimes","0;0.2;0.8;1"),a(ie,"begin",Se="animate_tree_"+l[0]+".begin"),a(ie,"dur",Re=l[13]+"ms"),a(ie,"fill","freeze"),a(ie,"calcMode","spline"),a(ie,"keySplines","0 0 0 0;0 0 0 0;"+Fe.cubicOut),a(je,"attributeName","stroke-width"),a(je,"values","0;"+Vt+";"+Vt+";0"),a(je,"keyTimes","0;0.1;0.9;1"),a(je,"begin",ze="animate_tree_"+l[0]+".begin"),a(je,"dur",Ye=l[13]+"ms"),a(je,"fill","freeze"),a(je,"calcMode","spline"),a(je,"keySplines",Fe.expoIn+";0 0 0 0;"+Fe.expoOut),a(z,"stroke","var(--correct-color)"),a(z,"stroke-width","0"),a(z,"stroke-linecap","round"),fe(z,"transform",We),fe(z,"transition",Ke),a(e,"transform",Qe="translate("+l[4]+" "+l[3]+")"),fe(e,"position","relative")},m(ae,pe){N(ae,e,pe),g(e,t),g(t,i),l[28](i),g(t,n),g(t,u),g(u,f),g(t,b),g(t,p),g(p,S),g(S,L),g(t,V),l[29](V),g(e,Z),g(Z,$),g(e,z),g(z,ie),g(z,je)},p(ae,pe){pe[0]&1&&r!==(r="tree_nudge_animate_"+ae[0])&&a(i,"id",r),pe[0]&2048&&s!==(s="0;"+ae[11]+";0")&&a(i,"values",s),pe[0]&4&&o!==(o=-ae[2])&&a(n,"y2",o),pe[0]&1&&c!==(c="tree_nudge_animate_"+ae[0]+".begin")&&a(f,"begin",c),pe[0]&4160&&h!==(h=-ae[6]+";"+(-ae[6]-ae[12])+";"+-ae[6])&&a(f,"values",h),pe[0]&6&&d!==(d=-ae[2]-ae[1])&&a(u,"cy",d),pe[0]&2&&v!==(v=ae[1]+ae[14]*1.5)&&a(u,"r",v),pe[0]&32&&m!==(m=`translateY(${ae[5]?.3:0}px)`)&&fe(u,"transform",m),pe[0]&32&&y!==(y=`transform ${ae[5]?50:200}ms ease-out`)&&fe(u,"transition",y),pe[0]&1024&&T!==(T="var(--"+(ae[10]?"correct-color":"landscape-color")+")")&&a(b,"stroke",T),pe[0]&6&&k!==(k=-ae[2]-ae[1]/2)&&a(b,"y2",k),pe[0]&1024&&E!==(E=`fill ${ae[10]?200:1e3}ms ease, stroke ${ae[10]?200:1e3}ms ease`)&&fe(b,"transition",E),pe[0]&1&&B!==(B="tree_nudge_animate_"+ae[0]+".begin")&&a(L,"begin",B),pe[0]&4160&&I!==(I=-ae[6]+";"+(-ae[6]-ae[12])+";"+-ae[6])&&a(L,"values",I),pe[0]&64&&O!==(O=-ae[6])&&a(S,"cy",O),pe[0]&2&&D!==(D=ae[1]-ae[14])&&a(S,"r",D),pe[0]&1024&&F!==(F="var(--"+(ae[10]?"correct-color":"tertiary-color")+")")&&a(S,"fill",F),pe[0]&1024&&P!==(P="var(--"+(ae[10]?"correct-color":"landscape-color")+")")&&a(S,"stroke",P),pe[0]&1024&&U!==(U=`fill ${ae[10]?200:1e3}ms ease, stroke ${ae[10]?200:1e3}ms ease`)&&fe(S,"transition",U),pe[0]&32&&G!==(G=`translateY(${ae[5]?.3:0}px)`)&&fe(p,"transform",G),pe[0]&32&&M!==(M=`transform ${ae[5]?50:200}ms ease-out`)&&fe(p,"transition",M),pe[0]&1&&J!==(J="animate_tree_"+ae[0])&&a(V,"id",J),pe[0]&8192&&X!==(X=ae[13]+"ms")&&a(V,"dur",X),pe[0]&128&&Q!==(Q=ae[7]?0:1)&&a(t,"opacity",Q),pe[0]&2&&K!==(K="0;0;"+ae[1]+";0;0")&&a($,"values",K),pe[0]&1&&Y!==(Y="animate_tree_"+ae[0]+".begin")&&a($,"begin",Y),pe[0]&8192&&ue!==(ue=ae[13]+"ms")&&a($,"dur",ue),pe[0]&6&&x!==(x=-ae[2]-ae[1])&&a(Z,"cy",x),pe[0]&32&&re!==(re=`translateY(${ae[5]?.3:0}px)`)&&fe(Z,"transform",re),pe[0]&32&&ke!==(ke=`transform ${ae[5]?50:200}ms ease-out`)&&fe(Z,"transition",ke),pe[0]&6&&le!==(le="0;"+(-ae[2]-ae[1])+";"+(-ae[2]-ae[1])+";0")&&a(ie,"values",le),pe[0]&1&&Se!==(Se="animate_tree_"+ae[0]+".begin")&&a(ie,"begin",Se),pe[0]&8192&&Re!==(Re=ae[13]+"ms")&&a(ie,"dur",Re),pe[0]&1&&ze!==(ze="animate_tree_"+ae[0]+".begin")&&a(je,"begin",ze),pe[0]&8192&&Ye!==(Ye=ae[13]+"ms")&&a(je,"dur",Ye),pe[0]&32&&We!==(We=`scaleY(${ae[5]?.7:1})`)&&fe(z,"transform",We),pe[0]&32&&Ke!==(Ke=`transform ${ae[5]?50:200}ms ease-out`)&&fe(z,"transition",Ke),pe[0]&24&&Qe!==(Qe="translate("+ae[4]+" "+ae[3]+")")&&a(e,"transform",Qe)},i:ce,o:ce,d(ae){ae&&_(e),l[28](null),l[29](null)}}}const Vt=.2,Fn=800;function zn(l,e,t){let i,r,s,n,o,u,f,c,h;const d=Vt/2;let{id:v}=e,{x:m}=e,{y}=e,{xJitter:b}=e,{yJitter:T}=e,{size:k}=e,{animate:E}=e,{delay:p=0}=e,{mouseOver:S}=e,{mouseX:L}=e,{mouseY:B}=e,{forceColor:I}=e,O=!0,D,F,P=!1,U,G=0,M=1;function V(Q,Z,$){const K=Ut(Q-u,Z-c),Y=4-K;if(Y>0){const re=(Q-u)/K,ke=(Z-c)/K;t(11,G=re*Y*4),t(12,M=ke*Y/24),F==null||F.beginElement()}if(I)return;const ue=K*70;setTimeout(()=>t(10,P=!0),ue);const x=setTimeout(()=>{U===x&&t(10,P=I)},Math.max($,ue));U=x}tt(()=>{t(7,O=E),E&&setTimeout(()=>D==null?void 0:D.beginElement(),p)});function J(Q){Ge[Q?"unshift":"push"](()=>{F=Q,t(9,F)})}function X(Q){Ge[Q?"unshift":"push"](()=>{D=Q,t(8,D)})}return l.$$set=Q=>{"id"in Q&&t(0,v=Q.id),"x"in Q&&t(15,m=Q.x),"y"in Q&&t(16,y=Q.y),"xJitter"in Q&&t(17,b=Q.xJitter),"yJitter"in Q&&t(18,T=Q.yJitter),"size"in Q&&t(19,k=Q.size),"animate"in Q&&t(20,E=Q.animate),"delay"in Q&&t(21,p=Q.delay),"mouseOver"in Q&&t(22,S=Q.mouseOver),"mouseX"in Q&&t(23,L=Q.mouseX),"mouseY"in Q&&t(24,B=Q.mouseY),"forceColor"in Q&&t(25,I=Q.forceColor)},l.$$.update=()=>{l.$$.dirty[0]&33554432&&t(10,P=I),l.$$.dirty[0]&524288&&t(13,i=Fn*(.8+k*.4)),l.$$.dirty[0]&524288&&t(27,r=.85+k*.25),l.$$.dirty[0]&134217728&&t(2,s=r/2),l.$$.dirty[0]&134217728&&t(1,n=r/2),l.$$.dirty[0]&6&&t(6,o=s+n),l.$$.dirty[0]&163840&&t(4,u=(m+b+.5)*1.5),l.$$.dirty[0]&327680&&t(3,f=y+T+.5),l.$$.dirty[0]&29360158&&t(5,h=S&&Math.abs(u-L)0){const ke=(Z-i)/Y,z=($-n)/Y;t(9,M=ke*ue*4),t(10,V=1+z*ue/24),P==null||P.beginElement()}if(O)return;const x=Y*70;setTimeout(async()=>t(8,U=!0),x);const re=setTimeout(async()=>{G===re&&t(8,U=O)},Math.max(K,x));G=re}tt(()=>{t(5,D=p),p&&setTimeout(()=>F==null?void 0:F.beginElement(),S)});function X(Z){Ge[Z?"unshift":"push"](()=>{P=Z,t(7,P)})}function Q(Z){Ge[Z?"unshift":"push"](()=>{F=Z,t(6,F)})}return l.$$set=Z=>{"id"in Z&&t(0,v=Z.id),"x"in Z&&t(16,m=Z.x),"y"in Z&&t(17,y=Z.y),"xJitter"in Z&&t(18,b=Z.xJitter),"yJitter"in Z&&t(19,T=Z.yJitter),"mini"in Z&&t(1,k=Z.mini),"size"in Z&&t(20,E=Z.size),"animate"in Z&&t(21,p=Z.animate),"delay"in Z&&t(22,S=Z.delay),"mouseOver"in Z&&t(23,L=Z.mouseOver),"mouseX"in Z&&t(24,B=Z.mouseX),"mouseY"in Z&&t(25,I=Z.mouseY),"forceColor"in Z&&t(26,O=Z.forceColor)},l.$$.update=()=>{l.$$.dirty[0]&67108864&&t(8,U=O),l.$$.dirty[0]&327682&&t(3,i=(m+b+(k?1:1.5))*1.5),l.$$.dirty[0]&655360&&t(4,r=y+T+1),l.$$.dirty[0]&1048578&&t(2,s=(k?.8:1.35)+.2*E),l.$$.dirty[0]&18&&t(28,n=r-(k?.7:1)),l.$$.dirty[0]&327155724&&t(15,o=L&&Math.abs(i-B)e[18](r,u,f),O=()=>e[18](null,u,f);return{key:l,first:null,c(){t=W("radialGradient"),i=W("stop"),r=W("animate"),c=W("stop"),h=W("animate"),T=W("path"),k=W("animate"),this.h()},l(D){t=q(D,"radialGradient",{id:!0,gradientUnits:!0,gradientTransform:!0,cx:!0,cy:!0,r:!0});var F=w(t);i=q(F,"stop",{"stop-color":!0});var P=w(i);r=q(P,"animate",{id:!0,attributeName:!0,values:!0,keyTimes:!0,dur:!0,fill:!0,begin:!0}),w(r).forEach(_),P.forEach(_),c=q(F,"stop",{"stop-color":!0,"stop-opacity":!0});var U=w(c);h=q(U,"animate",{attributeName:!0,values:!0,keyTimes:!0,dur:!0,fill:!0,begin:!0}),w(h).forEach(_),U.forEach(_),F.forEach(_),T=q(D,"path",{"stroke-width":!0,"stroke-linecap":!0,stroke:!0,fill:!0,d:!0});var G=w(T);k=q(G,"animate",{attributeName:!0,values:!0,keyTimes:!0,calcMode:!0,keySplines:!0,dur:!0,fill:!0,begin:!0}),w(k).forEach(_),G.forEach(_),this.h()},h(){a(r,"id",s="pond_flood_animate_"+e[23][0]),a(r,"attributeName","offset"),a(r,"values","0;1;1;1"),a(r,"keyTimes",n=e[23][5]),a(r,"dur",o=e[23][3]+"ms"),a(r,"fill","freeze"),a(r,"begin","indefinite"),a(i,"stop-color","var(--after-color)"),a(h,"attributeName","offset"),a(h,"values","0;1.01;1.01;1.01"),a(h,"keyTimes",d=e[23][5]),a(h,"dur",v=e[23][3]+"ms"),a(h,"fill","freeze"),a(h,"begin",m="pond_flood_animate_"+e[23][0]+".begin"),a(c,"stop-color","var(--after-color)"),a(c,"stop-opacity","0"),a(t,"id",y="pond_flood_gradient_"+e[23][0]),a(t,"gradientUnits","userSpaceOnUse"),a(t,"gradientTransform",b="translate("+e[23][1]+" "+e[23][2]+") scale(1.5 1)"),a(t,"cx","0"),a(t,"cy","0"),a(t,"r",e[4]),a(k,"attributeName","opacity"),a(k,"values","1;1;1;0"),a(k,"keyTimes",E=e[23][5]),a(k,"calcMode","spline"),a(k,"keySplines","0 0 0 0;0 0 0 0;0.25 0.1 0.25 1"),a(k,"dur",p=e[23][3]+"ms"),a(k,"fill","freeze"),a(k,"begin",S="pond_flood_animate_"+e[23][0]+".begin"),a(T,"stroke-width","0.26"),a(T,"stroke-linecap","round"),a(T,"stroke",L="url('#pond_flood_gradient_"+e[23][0]+"')"),a(T,"fill",B="url('#pond_flood_gradient_"+e[23][0]+"')"),a(T,"d",e[6]),this.first=t},m(D,F){N(D,t,F),g(t,i),g(i,r),I(),g(t,c),g(c,h),N(D,T,F),g(T,k)},p(D,F){e=D,F&32&&s!==(s="pond_flood_animate_"+e[23][0])&&a(r,"id",s),F&32&&n!==(n=e[23][5])&&a(r,"keyTimes",n),F&32&&o!==(o=e[23][3]+"ms")&&a(r,"dur",o),(u!==e[24]||f!==e[25])&&(O(),u=e[24],f=e[25],I()),F&32&&d!==(d=e[23][5])&&a(h,"keyTimes",d),F&32&&v!==(v=e[23][3]+"ms")&&a(h,"dur",v),F&32&&m!==(m="pond_flood_animate_"+e[23][0]+".begin")&&a(h,"begin",m),F&32&&y!==(y="pond_flood_gradient_"+e[23][0])&&a(t,"id",y),F&32&&b!==(b="translate("+e[23][1]+" "+e[23][2]+") scale(1.5 1)")&&a(t,"gradientTransform",b),F&16&&a(t,"r",e[4]),F&32&&E!==(E=e[23][5])&&a(k,"keyTimes",E),F&32&&p!==(p=e[23][3]+"ms")&&a(k,"dur",p),F&32&&S!==(S="pond_flood_animate_"+e[23][0]+".begin")&&a(k,"begin",S),F&32&&L!==(L="url('#pond_flood_gradient_"+e[23][0]+"')")&&a(T,"stroke",L),F&32&&B!==(B="url('#pond_flood_gradient_"+e[23][0]+"')")&&a(T,"fill",B),F&64&&a(T,"d",e[6])},d(D){D&&_(t),O(),D&&_(T)}}}function Ei(l){let e=l[9],t,i=Ti(l);return{c(){i.c(),t=_e()},l(r){i.l(r),t=_e()},m(r,s){i.m(r,s),N(r,t,s)},p(r,s){s&512&&Me(e,e=r[9])?(i.d(1),i=Ti(r),i.c(),i.m(t.parentNode,t)):i.p(r,s)},d(r){r&&_(t),i.d(r)}}}function Ti(l){let e,t,i,r;return{c(){e=W("animate"),this.h()},l(s){e=q(s,"animate",{id:!0,attributeName:!0,values:!0,dur:!0,calcMode:!0,fill:!0,keyTimes:!0,keySplines:!0,begin:!0}),w(e).forEach(_),this.h()},h(){a(e,"id",t="pond_draw_animate_"+l[9]),a(e,"attributeName","opacity"),a(e,"values","0;0;1"),a(e,"dur",i=l[11]+"ms"),a(e,"calcMode","spline"),a(e,"fill","freeze"),a(e,"keyTimes",r="0;"+(1-300/l[11])+";1"),a(e,"keySplines","0.5 0.5 0.5 0.5;"+Fe.cubicIn),a(e,"begin","indefinite")},m(s,n){N(s,e,n),l[19](e)},p(s,n){n&512&&t!==(t="pond_draw_animate_"+s[9])&&a(e,"id",t),n&2048&&i!==(i=s[11]+"ms")&&a(e,"dur",i),n&2048&&r!==(r="0;"+(1-300/s[11])+";1")&&a(e,"keyTimes",r)},d(s){s&&_(e),l[19](null)}}}function Yn(l){let e,t,i,r,s=l[9],n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S=`fill ${l[3]?200:1e3}ms ease`,L,B,I,O=`fill ${l[3]?200:1e3}ms ease, stroke ${l[3]?200:1e3}ms ease`,D,F,P=`stroke ${l[3]?200:1e3}ms ease`,U=[],G=new Map,M,V,J=ki(l),X=l[0]&&wi(l),Q=l[5];const Z=K=>K[23];for(let K=0;K{t(5,v=v.filter(X=>X!==V))},U)}let b,T,k=[],E=0,p,S,L;async function B(){if(t(7,T=b),t(6,b=Mn(s)),o&&T!==b&&n.length>0){t(9,E++,E),t(8,k=n.map((F,P)=>P).filter(F=>F%(h?2:3)===0).map(F=>n[F]));const D=k.length-1;t(10,p=Math.round(Math.min(1500,D*100)/k.length)),t(11,S=u+1e3+D*p),await it(),L==null||L.beginElement()}}function I(D,F,P){Ge[D?"unshift":"push"](()=>{F[P][4]=D,t(5,v)})}function O(D){Ge[D?"unshift":"push"](()=>{L=D,t(12,L)})}return l.$$set=D=>{"tiles"in D&&t(13,s=D.tiles),"newTiles"in D&&t(14,n=D.newTiles),"animate"in D&&t(0,o=D.animate),"delay"in D&&t(1,u=D.delay),"landscapeWidth"in D&&t(15,f=D.landscapeWidth),"landscapeHeight"in D&&t(16,c=D.landscapeHeight),"mini"in D&&t(2,h=D.mini),"forceColor"in D&&t(3,d=D.forceColor)},l.$$.update=()=>{l.$$.dirty&98304&&t(4,i=Ut(f,c)),l.$$.dirty&16&&(r=i*70),l.$$.dirty&8192&&s&&B()},[o,u,h,d,i,v,b,T,k,E,p,S,L,s,n,f,c,y,I,O]}class Xn extends Ne{constructor(e){super(),Ve(this,e,Jn,Yn,Me,{tiles:13,newTiles:14,animate:0,delay:1,landscapeWidth:15,landscapeHeight:16,mini:2,forceColor:3,flashColor:17})}get flashColor(){return this.$$.ctx[17]}}const{Map:Kn}=Os;function El(l){const e=l.slice(),t=e[11];return e[36]=t[0],e[37]=t[1],e}function Ii(l,e,t){const i=l.slice();return i[38]=e[t],i[39]=e,i[40]=t,i}function Zn(l){let e,t=l[40],i;const r=()=>l[23](e,t),s=()=>l[23](null,t);let n={id:l[38].id,x:l[38].x,y:l[38].y,xJitter:l[38].xJitter,yJitter:l[38].yJitter,size:l[38].size,mini:l[3].mini,animate:l[7],delay:l[38].delay,mouseOver:l[13],mouseX:l[14],mouseY:l[15],forceColor:l[16]};return e=new Un({props:n}),r(),{c(){me(e.$$.fragment)},l(o){we(e.$$.fragment,o)},m(o,u){ge(e,o,u),i=!0},p(o,u){t!==o[40]&&(s(),t=o[40],r());const f={};u[0]&8&&(f.id=o[38].id),u[0]&8&&(f.x=o[38].x),u[0]&8&&(f.y=o[38].y),u[0]&8&&(f.xJitter=o[38].xJitter),u[0]&8&&(f.yJitter=o[38].yJitter),u[0]&8&&(f.size=o[38].size),u[0]&8&&(f.mini=o[3].mini),u[0]&128&&(f.animate=o[7]),u[0]&8&&(f.delay=o[38].delay),u[0]&8192&&(f.mouseOver=o[13]),u[0]&16384&&(f.mouseX=o[14]),u[0]&32768&&(f.mouseY=o[15]),u[0]&65536&&(f.forceColor=o[16]),e.$set(f)},i(o){i||(A(e.$$.fragment,o),i=!0)},o(o){R(e.$$.fragment,o),i=!1},d(o){s(),ve(e,o)}}}function Qn(l){let e,t=l[40],i;const r=()=>l[22](e,t),s=()=>l[22](null,t);let n={id:l[38].id,x:l[38].x,y:l[38].y,xJitter:l[38].xJitter,yJitter:l[38].yJitter,size:l[38].size,animate:l[7],delay:l[38].delay,mouseOver:l[13],mouseX:l[14],mouseY:l[15],forceColor:l[16]};return e=new Rn({props:n}),r(),{c(){me(e.$$.fragment)},l(o){we(e.$$.fragment,o)},m(o,u){ge(e,o,u),i=!0},p(o,u){t!==o[40]&&(s(),t=o[40],r());const f={};u[0]&8&&(f.id=o[38].id),u[0]&8&&(f.x=o[38].x),u[0]&8&&(f.y=o[38].y),u[0]&8&&(f.xJitter=o[38].xJitter),u[0]&8&&(f.yJitter=o[38].yJitter),u[0]&8&&(f.size=o[38].size),u[0]&128&&(f.animate=o[7]),u[0]&8&&(f.delay=o[38].delay),u[0]&8192&&(f.mouseOver=o[13]),u[0]&16384&&(f.mouseX=o[14]),u[0]&32768&&(f.mouseY=o[15]),u[0]&65536&&(f.forceColor=o[16]),e.$set(f)},i(o){i||(A(e.$$.fragment,o),i=!0)},o(o){R(e.$$.fragment,o),i=!1},d(o){s(),ve(e,o)}}}function Si(l,e){let t,i,r,s,n;const o=[Qn,Zn],u=[];function f(c,h){return c[38].type==="tree"?0:1}return i=f(e),r=u[i]=o[i](e),{key:l,first:null,c(){t=_e(),r.c(),s=_e(),this.h()},l(c){t=_e(),r.l(c),s=_e(),this.h()},h(){this.first=t},m(c,h){N(c,t,h),u[i].m(c,h),N(c,s,h),n=!0},p(c,h){e=c;let d=i;i=f(e),i===d?u[i].p(e,h):(Te(),R(u[d],1,1,()=>{u[d]=null}),Ie(),r=u[i],r?r.p(e,h):(r=u[i]=o[i](e),r.c()),A(r,1),r.m(s.parentNode,s))},i(c){n||(A(r),n=!0)},o(c){R(r),n=!1},d(c){c&&_(t),u[i].d(c),c&&_(s)}}}function Di(l){let e,t=[],i=new Kn,r,s,n={tiles:l[3].pondTiles,newTiles:l[3].newPondTiles,animate:l[7],delay:l[3].pondDelay||0,landscapeWidth:l[3].width,landscapeHeight:l[3].height,mini:l[3].mini,forceColor:l[16]};e=new Xn({props:n}),l[21](e);let o=l[3].features;const u=f=>f[38].id;for(let f=0;fl[26].call(e))},m(v,m){N(v,e,m),g(e,t),h.m(t,null),g(t,r),d&&d.m(t,null),l[25](t),o=Ur(e,l[26].bind(e)),u=!0,f||(c=[de(t,"pointerdown",l[18]),de(t,"pointermove",l[19]),de(t,"mouseleave",l[20])],f=!0)},p(v,m){m[0]&256&&Me(i,i=v[8])?(Te(),R(h,1,1,ce),Ie(),h=Di(v),h.c(),A(h,1),h.m(t,r)):h.p(v,m),v[11]?d?d.p(El(v),m):(d=Ci(El(v)),d.c(),d.m(t,null)):d&&(d.d(1),d=null),(!u||m[0]&16)&&a(t,"width",v[4]),(!u||m[0]&32)&&a(t,"height",v[5]),(!u||m[0]&8&&s!==(s="-0.1 -0.1 "+(v[3].width*1.5+.2)+" "+(v[3].height+.2)))&&a(t,"viewBox",s),m[0]&64&&fe(t,"display",v[6]?"none":"block"),m[0]&18&&n!==(n=`${Math.floor((v[1]-v[4])/2)}px`)&&fe(t,"left",n)},i(v){u||(A(h),u=!0)},o(v){R(h),u=!1},d(v){v&&_(e),h.d(v),d&&d.d(),l[25](null),o(),f=!1,$e(c)}}}const xn=240,ea=170;function ta(l,e,t){let i,r;const{landscapeForceColor:s}=Bt;Ee(l,s,Y=>t(16,r=Y));let n=!0,o,u,f,c=0,h=0,d=!1,v=!1,m=!0,y=0,b={width:0,height:0,centerX:0,centerY:0,rowsGenerated:0,features:[],tileMap:new Map,openTiles:new Map,pondTiles:[],newPondTiles:[],nextID:1,totalDelay:0};function T(Y,ue){const x=ue/(Y/1.5);let re=ue/Math.sqrt(xn*x);t(3,b.mini=!1,b),re<12&&(re=ue/Math.sqrt(ea*x),t(3,b.mini=!0,b));const ke=re*1.5,z=Math.floor(Y/ke),ie=Math.floor(ue/re);z===b.width&&ie===b.height||(t(3,b.width=z,b),t(3,b.height=ie,b),t(3,b.centerX=Math.floor(z/2),b),t(3,b.centerY=Math.floor(ie/2),b),t(4,c=Math.ceil(z*ke)),t(5,h=Math.ceil(ie*re)),t(7,v=!1),t(8,y++,y),k(),E())}function k(){t(3,b.rowsGenerated=0,b),b.openTiles.clear(),b.tileMap.clear(),t(3,b.features.length=0,b),t(3,b.pondTiles.length=0,b),t(3,b.newPondTiles.length=0,b),t(3,b.nextID=1,b),t(3,b.pondDelay=void 0,b)}function E(){if(n||!b.width)return;const Y=be(Pl);if(Y===0){b.rowsGenerated>0&&k();return}(m||b.rowsGenerated>0)&&(m=!1,t(7,v=!0)),be(kl)&&(t(7,v=!0),kl.set(!1)),Y!==b.rowsGenerated&&(t(3,b=jn(b,be(dl),be(Zr),Y)),Qr.set(b),t(6,d=!1))}xl.subscribe(Y=>{!Y||(n=!1,xl.set(!1),m=!0,t(8,y++,y),k(),be(ei)||E())}),ti.subscribe(Y=>{!Y||(ti.set(!1),E())}),kl.subscribe(Y=>{!Y||(m=!0,t(8,y++,y),k(),E())}),ei.subscribe(()=>t(6,d=!0));const p=[];let S;function L({offsetX:Y,offsetY:ue}){t(14,U=-.1+Y/c*(b.width*1.5+.2)),t(15,G=-.1+ue/h*(b.height+.2))}let B=0,I=0,O=null,D;const F=Y=>{if(Y.pointerType==="mouse"&&Y.button!==0)return;L(Y);const ue=Date.now();I=Math.max(0,Math.min(3500,I+B+250-ue)),t(11,O=[U,G]),it().then(()=>D==null?void 0:D.beginElement());const x=i*70+I;p.forEach(re=>re==null?void 0:re.flashColor(U,G,x)),S.flashColor(U,G,x),B=ue};let P=!1,U,G;function M(Y){Y.pointerType!=="touch"&&(t(13,P=!0),L(Y))}const V=()=>t(13,P=!1);function J(Y){Ge[Y?"unshift":"push"](()=>{S=Y,t(10,S)})}function X(Y,ue){Ge[Y?"unshift":"push"](()=>{p[ue]=Y,t(9,p)})}function Q(Y,ue){Ge[Y?"unshift":"push"](()=>{p[ue]=Y,t(9,p)})}function Z(Y){Ge[Y?"unshift":"push"](()=>{D=Y,t(12,D)})}function $(Y){Ge[Y?"unshift":"push"](()=>{o=Y,t(0,o)})}function K(){u=this.clientWidth,f=this.clientHeight,t(1,u),t(2,f)}return l.$$.update=()=>{l.$$.dirty[0]&6&&u&&f&&T(u,f),l.$$.dirty[0]&8&&(i=Ut(b.width+3,b.height+3)),l.$$.dirty[0]&1&&o&&Rs.set(o)},[o,u,f,b,c,h,d,v,y,p,S,O,D,P,U,G,r,s,F,M,V,J,X,Q,Z,$,K]}class la extends Ne{constructor(e){super(),Ve(this,e,ta,$n,Me,{},null,[-1,-1])}}function ia(l){let e,t,i,r,s=l[0].letter&&Mi(l),n=l[0].letterBounds&&!l[0].letter&&l[2]&&Li(l);return{c(){e=H("div"),s&&s.c(),t=ee(),n&&n.c(),this.h()},l(o){e=j(o,"DIV",{class:!0});var u=w(e);s&&s.l(u),t=te(u),n&&n.l(u),u.forEach(_),this.h()},h(){a(e,"class","tile svelte-1o605k6"),oe(e,"filled",l[0].letter!==""),oe(e,"current",l[1]),oe(e,"before-pre",!l[0].scored&&l[0].polarity<0),oe(e,"after-pre",!l[0].scored&&l[0].polarity>0),oe(e,"finished",l[9]),oe(e,"clickable",l[3]),oe(e,"invalid",l[10]&&l[3])},m(o,u){N(o,e,u),s&&s.m(e,null),g(e,t),n&&n.m(e,null),r=!0},p(o,u){l=o,l[0].letter?s?(s.p(l,u),u&1&&A(s,1)):(s=Mi(l),s.c(),A(s,1),s.m(e,t)):s&&(s.d(1),s=null),l[0].letterBounds&&!l[0].letter&&l[2]?n?n.p(l,u):(n=Li(l),n.c(),n.m(e,null)):n&&(n.d(1),n=null),(!r||u&1)&&oe(e,"filled",l[0].letter!==""),(!r||u&2)&&oe(e,"current",l[1]),(!r||u&1)&&oe(e,"before-pre",!l[0].scored&&l[0].polarity<0),(!r||u&1)&&oe(e,"after-pre",!l[0].scored&&l[0].polarity>0),(!r||u&512)&&oe(e,"finished",l[9]),(!r||u&8)&&oe(e,"clickable",l[3]),(!r||u&1032)&&oe(e,"invalid",l[10]&&l[3])},i(o){r||(A(s),i&&i.end(1),r=!0)},o(o){o&&(i=jl(e,An,{delay:l[5]+Nl*.6,duration:0})),r=!1},d(o){o&&_(e),s&&s.d(),n&&n.d(),o&&i&&i.end()}}}function ra(l){let e,t,i,r,s=l[0].letter+"",n;return{c(){e=H("div"),t=H("div"),i=ee(),r=H("div"),n=se(s),this.h()},l(o){e=j(o,"DIV",{class:!0});var u=w(e);t=j(u,"DIV",{class:!0}),w(t).forEach(_),i=te(u),r=j(u,"DIV",{class:!0});var f=w(r);n=ne(f,s),f.forEach(_),u.forEach(_),this.h()},h(){a(t,"class","tile-background svelte-1o605k6"),a(r,"class","tile scored filled svelte-1o605k6"),a(e,"class","tile-clip svelte-1o605k6")},m(o,u){N(o,e,u),g(e,t),g(e,i),g(e,r),g(r,n)},p(o,u){u&1&&s!==(s=o[0].letter+"")&&he(n,s)},i:ce,o:ce,d(o){o&&_(e)}}}function Mi(l){let e,t=l[0].letter+"",i,r;return{c(){e=H("div"),i=se(t)},l(s){e=j(s,"DIV",{});var n=w(e);i=ne(n,t),n.forEach(_)},m(s,n){N(s,e,n),g(e,i)},p(s,n){l=s,n&1&&t!==(t=l[0].letter+"")&&he(i,t)},i(s){r||ct(()=>{r=Ns(e,Pn,l[11]),r.start()})},o:ce,d(s){s&&_(e)}}}function Li(l){let e,t=l[0].letterBounds[0]+"",i,r,s=l[0].letterBounds[0]!==l[0].letterBounds[1]&&Oi(l);return{c(){e=H("span"),i=se(t),r=ee(),s&&s.c(),this.h()},l(n){e=j(n,"SPAN",{class:!0});var o=w(e);i=ne(o,t),r=te(o),s&&s.l(o),o.forEach(_),this.h()},h(){a(e,"class","hint svelte-1o605k6")},m(n,o){N(n,e,o),g(e,i),g(e,r),s&&s.m(e,null)},p(n,o){o&1&&t!==(t=n[0].letterBounds[0]+"")&&he(i,t),n[0].letterBounds[0]!==n[0].letterBounds[1]?s?s.p(n,o):(s=Oi(n),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(n){n&&_(e),s&&s.d()}}}function Oi(l){let e,t,i=l[0].letterBounds[1]+"",r;return{c(){e=H("span"),t=se("..."),r=se(i),this.h()},l(s){e=j(s,"SPAN",{class:!0});var n=w(e);t=ne(n,"..."),n.forEach(_),r=ne(s,i),this.h()},h(){a(e,"class","small svelte-1o605k6")},m(s,n){N(s,e,n),g(e,t),N(s,r,n)},p(s,n){n&1&&i!==(i=s[0].letterBounds[1]+"")&&he(r,i)},d(s){s&&_(e),s&&_(r)}}}function sa(l){let e,t,i,r,s,n,o,u;const f=[ra,ia],c=[];function h(m,y){return m[0].scored?0:1}t=h(l),i=c[t]=f[t](l);const d=l[13].default,v=bt(d,l,l[12],null);return{c(){e=H("div"),i.c(),r=ee(),v&&v.c(),this.h()},l(m){e=j(m,"DIV",{class:!0,style:!0});var y=w(e);i.l(y),r=te(y),v&&v.l(y),y.forEach(_),this.h()},h(){a(e,"class","tile-container svelte-1o605k6"),a(e,"style",s=`animation-delay: ${l[0].id*(l[7]||l[8]?20:0)}ms; --tile-animation-delay: ${l[5]}ms; --tile-animation-duration: ${Nl}ms;`),oe(e,"correct",l[0].scored&&l[0].distance===0),oe(e,"before",l[0].distance<0),oe(e,"after",l[0].distance>0),oe(e,"animate",l[4]),oe(e,"shimmy",l[6]&&l[3]),oe(e,"shake",l[3]&&(l[7]&&!l[0].letter||l[8]&&l[0].letter&&l[0].letterBounds&&(l[0].letterl[0].letterBounds[1])))},m(m,y){N(m,e,y),c[t].m(e,null),g(e,r),v&&v.m(e,null),n=!0,o||(u=de(e,"click",l[14]),o=!0)},p(m,[y]){let b=t;t=h(m),t===b?c[t].p(m,y):(Te(),R(c[b],1,1,()=>{c[b]=null}),Ie(),i=c[t],i?i.p(m,y):(i=c[t]=f[t](m),i.c()),A(i,1),i.m(e,r)),v&&v.p&&(!n||y&4096)&&pt(v,d,m,m[12],n?wt(d,m[12],y,null):kt(m[12]),null),(!n||y&417&&s!==(s=`animation-delay: ${m[0].id*(m[7]||m[8]?20:0)}ms; --tile-animation-delay: ${m[5]}ms; --tile-animation-duration: ${Nl}ms;`))&&a(e,"style",s),(!n||y&1)&&oe(e,"correct",m[0].scored&&m[0].distance===0),(!n||y&1)&&oe(e,"before",m[0].distance<0),(!n||y&1)&&oe(e,"after",m[0].distance>0),(!n||y&16)&&oe(e,"animate",m[4]),(!n||y&72)&&oe(e,"shimmy",m[6]&&m[3]),(!n||y&393)&&oe(e,"shake",m[3]&&(m[7]&&!m[0].letter||m[8]&&m[0].letter&&m[0].letterBounds&&(m[0].letterm[0].letterBounds[1])))},i(m){n||(A(i),A(v,m),n=!0)},o(m){R(i),R(v,m),n=!1},d(m){m&&_(e),c[t].d(),v&&v.d(m),o=!1,u()}}}const Nl=500;function na(l,e,t){let i,r,s,n,o,u;Ee(l,Ws,k=>t(6,r=k)),Ee(l,qs,k=>t(7,s=k)),Ee(l,Us,k=>t(8,n=k)),Ee(l,$r,k=>t(9,o=k)),Ee(l,Ys,k=>t(10,u=k));let{$$slots:f={},$$scope:c}=e,{tile:h}=e,{current:d=!1}=e,{showHint:v=!1}=e,{inCurrentRow:m=!1}=e,y=!h.scored;Pl.subscribe(()=>t(4,y=!h.scored));const b={duration:100,from:"bottom",easing:Ml},T=()=>m&&xr.set(h.id);return l.$$set=k=>{"tile"in k&&t(0,h=k.tile),"current"in k&&t(1,d=k.current),"showHint"in k&&t(2,v=k.showHint),"inCurrentRow"in k&&t(3,m=k.inCurrentRow),"$$scope"in k&&t(12,c=k.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&t(5,i=h.id*150)},[h,d,v,m,y,i,r,s,n,o,u,b,c,f,T]}class St extends Ne{constructor(e){super(),Ve(this,e,na,sa,Me,{tile:0,current:1,showHint:2,inCurrentRow:3})}}const aa=l=>({}),Ni=l=>({}),oa=l=>({}),Vi=l=>({});function Hi(l){let e,t,i,r=(l[5]?l[4]:"")+"",s,n,o=(l[5]?":"+l[9](l[6]):l[6])+"",u,f,c=l[9](l[7])+"",h,d=l[1]>0?`.${l[8]}`:"",v,m,y;const b=l[17].title,T=bt(b,l,l[16],Vi);return{c(){T&&T.c(),e=ee(),t=H("span"),i=H("span"),s=se(r),n=H("span"),u=se(o),f=se(":"),h=se(c),v=se(d),this.h()},l(k){T&&T.l(k),e=te(k),t=j(k,"SPAN",{class:!0});var E=w(t);i=j(E,"SPAN",{class:!0});var p=w(i);s=ne(p,r),p.forEach(_),n=j(E,"SPAN",{class:!0});var S=w(n);u=ne(S,o),S.forEach(_),f=ne(E,":"),h=ne(E,c),v=ne(E,d),E.forEach(_),this.h()},h(){a(i,"class","svelte-xk7l05"),oe(i,"fade",l[0]&&l[4]===0),a(n,"class","svelte-xk7l05"),oe(n,"fade",l[0]&&l[6]===0&&l[4]===0),a(t,"class",m=tl(l[11].class)+" svelte-xk7l05")},m(k,E){T&&T.m(k,E),N(k,e,E),N(k,t,E),g(t,i),g(i,s),g(t,n),g(n,u),g(t,f),g(t,h),g(t,v),l[18](t),y=!0},p(k,E){T&&T.p&&(!y||E&65536)&&pt(T,b,k,k[16],y?wt(b,k[16],E,oa):kt(k[16]),Vi),(!y||E&48)&&r!==(r=(k[5]?k[4]:"")+"")&&he(s,r),(!y||E&17)&&oe(i,"fade",k[0]&&k[4]===0),(!y||E&96)&&o!==(o=(k[5]?":"+k[9](k[6]):k[6])+"")&&he(u,o),(!y||E&81)&&oe(n,"fade",k[0]&&k[6]===0&&k[4]===0),(!y||E&128)&&c!==(c=k[9](k[7])+"")&&he(h,c),(!y||E&258)&&d!==(d=k[1]>0?`.${k[8]}`:"")&&he(v,d),(!y||E&2048&&m!==(m=tl(k[11].class)+" svelte-xk7l05"))&&a(t,"class",m)},i(k){y||(A(T,k),y=!0)},o(k){R(T,k),y=!1},d(k){T&&T.d(k),k&&_(e),k&&_(t),l[18](null)}}}function ji(l){let e;const t=l[17]["after-countdown"],i=bt(t,l,l[16],Ni);return{c(){i&&i.c()},l(r){i&&i.l(r)},m(r,s){i&&i.m(r,s),e=!0},p(r,s){i&&i.p&&(!e||s&65536)&&pt(i,t,r,r[16],e?wt(t,r[16],s,aa):kt(r[16]),Ni)},i(r){e||(A(i,r),e=!0)},o(r){R(i,r),e=!1},d(r){i&&i.d(r)}}}function ua(l){let e,t,i,r=(!l[10]||l[3]>0)&&Hi(l),s=l[10]&&l[3]<=0&&ji(l);return{c(){r&&r.c(),e=ee(),s&&s.c(),t=_e()},l(n){r&&r.l(n),e=te(n),s&&s.l(n),t=_e()},m(n,o){r&&r.m(n,o),N(n,e,o),s&&s.m(n,o),N(n,t,o),i=!0},p(n,[o]){!n[10]||n[3]>0?r?(r.p(n,o),o&8&&A(r,1)):(r=Hi(n),r.c(),A(r,1),r.m(e.parentNode,e)):r&&(Te(),R(r,1,1,()=>{r=null}),Ie()),n[10]&&n[3]<=0?s?(s.p(n,o),o&8&&A(s,1)):(s=ji(n),s.c(),A(s,1),s.m(t.parentNode,t)):s&&(Te(),R(s,1,1,()=>{s=null}),Ie())},i(n){i||(A(r),A(s),i=!0)},o(n){R(r),R(s),i=!1},d(n){r&&r.d(n),n&&_(e),s&&s.d(n),n&&_(t)}}}function fa(l,e,t){let i,r,s,n,o,{$$slots:u={},$$scope:f}=e,{mode:c="static"}=e,{ms:h}=e,{alwaysShowHours:d=!1}=e,{dimming:v=!0}=e,{decimals:m=0}=e,{timeString:y=""}=e,b;const T=I=>I.toString().padStart(2,"0"),k=60*1e3,E=k*60;let p=c==="countdown",S=p?h-Date.now():h,L;p&&S>0&&(L=setInterval(()=>{t(3,S=h-Date.now())},1e3)),Yr(()=>{clearInterval(L)});function B(I){Ge[I?"unshift":"push"](()=>{b=I,t(2,b)})}return l.$$set=I=>{t(11,e=rt(rt({},e),ll(I))),"mode"in I&&t(13,c=I.mode),"ms"in I&&t(14,h=I.ms),"alwaysShowHours"in I&&t(15,d=I.alwaysShowHours),"dimming"in I&&t(0,v=I.dimming),"decimals"in I&&t(1,m=I.decimals),"timeString"in I&&t(12,y=I.timeString),"$$scope"in I&&t(16,f=I.$$scope)},l.$$.update=()=>{l.$$.dirty&4&&t(12,y=b==null?void 0:b.innerText),l.$$.dirty&16386&&t(8,i=Math.floor(h%1e3/10**(3-m)).toString().padStart(m,"0")),l.$$.dirty&8&&t(7,r=Math.floor(S/1e3)%60),l.$$.dirty&8&&t(6,s=Math.floor(S/k)%60),l.$$.dirty&8&&t(4,n=Math.floor(S/E)),l.$$.dirty&32784&&t(5,o=n>0||d)},e=ll(e),[v,m,b,S,n,o,s,r,i,T,p,e,y,c,h,d,f,u,B]}class Dt extends Ne{constructor(e){super(),Ve(this,e,fa,ua,Me,{mode:13,ms:14,alwaysShowHours:15,dimming:0,decimals:1,timeString:12})}}function Bi(l,e,t){const i=l.slice();return i[9]=e[t],i[10]=e,i[11]=t,i}function Pi(l,e,t){const i=l.slice();return i[12]=e[t],i[14]=t,i}function Ai(l){let e,t=l[12].toUpperCase()+"",i,r;return{c(){e=H("div"),i=se(t),r=ee(),this.h()},l(s){e=j(s,"DIV",{class:!0});var n=w(e);i=ne(n,t),r=te(n),n.forEach(_),this.h()},h(){a(e,"class","guess-letter svelte-y96qil"),oe(e,"before",l[12]l[0].answer[l[14]])},m(s,n){N(s,e,n),g(e,i),g(e,r)},p(s,n){n&1&&t!==(t=s[12].toUpperCase()+"")&&he(i,t),n&1&&oe(e,"before",s[12]s[0].answer[s[14]])},d(s){s&&_(e)}}}function Gi(l){let e,t,i,r,s,n,o,u,f,c=l[9],h=[];for(let m=0;mRt(n,"timeString",d)),{c(){e=H("tr"),t=H("td"),i=H("div");for(let m=0;mo=!1)),n.$set(b)},i(m){f||(A(n.$$.fragment,m),f=!0)},o(m){R(n.$$.fragment,m),f=!1},d(m){m&&_(e),lt(h,m),ve(n)}}}function Fi(l){let e,t=l[5]("main.messages.new_best")+"",i;return{c(){e=H("div"),i=se(t),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"class","new-tag svelte-y96qil")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s&32&&t!==(t=r[5]("main.messages.new_best")+"")&&he(i,t)},d(r){r&&_(e)}}}function ca(l){let e,t,i,r,s=l[3]?`${l[5]("main.results.win")} \u{1F389}`:`${l[5]("main.results.lose")} \u2639\uFE0F`,n,o,u,f,c,h=l[0].answer.toUpperCase()+"",d,v,m=l[5]("main.summary.answer")+"",y,b,T,k,E,p,S,L=l[5]("main.summary.total_time")+"",B,I,O,D,F=l[0].guesses,P=[];for(let J=0;JR(P[J],1,1,()=>{P[J]=null});function G(J){l[8](J)}let M={ms:l[0].guessTimes[l[0].guessTimes.length-1]-l[0].guessTimes[0],decimals:l[4]?2:0};l[1]!==void 0&&(M.timeString=l[1]),E=new Dt({props:M}),Ge.push(()=>Rt(E,"timeString",G));let V=l[0].fastest&&Fi(l);return{c(){e=H("section"),t=H("table");for(let J=0;Jp=!1)),E.$set(Q),(!D||X&32)&&L!==(L=l[5]("main.summary.total_time")+"")&&he(B,L),l[0].fastest?V?V.p(l,X):(V=Fi(l),V.c(),V.m(T,null)):V&&(V.d(1),V=null)},i(J){if(!D){for(let X=0;X{!D||(O||(O=et(e,ot,{duration:250,easing:vt},!0)),O.run(1))}),D=!0}},o(J){P=P.filter(Boolean);for(let X=0;Xt(5,s=d));const{preciseTimes:n}=Bt;Ee(l,n,d=>t(4,r=d));let{lastGameDetail:o}=e,u,f=[];function c(d,v){l.$$.not_equal(f[v],d)&&(f[v]=d,t(2,f))}function h(d){u=d,t(1,u)}return l.$$set=d=>{"lastGameDetail"in d&&t(0,o=d.lastGameDetail)},l.$$.update=()=>{l.$$.dirty&2&&Il.set(u),l.$$.dirty&4&&Sl.set(f),l.$$.dirty&1&&t(3,i=o.guesses[o.guesses.length-1]===o.answer)},[o,u,f,i,r,s,n,c,h]}class _a extends Ne{constructor(e){super(),Ve(this,e,ha,ca,Me,{lastGameDetail:0})}}function zi(l){let e,t,i,r,s,n,o,u,f,c;return{c(){e=W("path"),t=W("animate"),o=W("animate"),this.h()},l(h){e=q(h,"path",{fill:!0});var d=w(e);t=q(d,"animate",{id:!0,attributeName:!0,values:!0,dur:!0,keyTimes:!0,calcMode:!0,keySplines:!0,fill:!0,begin:!0}),w(t).forEach(_),o=q(d,"animate",{attributeName:!0,values:!0,dur:!0,keyTimes:!0,calcMode:!0,keySplines:!0,fill:!0,begin:!0}),w(o).forEach(_),d.forEach(_),this.h()},h(){a(t,"id",i="drip_animate_"+l[0]+"_"+l[1]),a(t,"attributeName","d"),a(t,"values",r="M"+l[3]+" "+(9.8-l[4])+" a 0.1 0.1 0 1 0 0.1 0;M"+l[3]+" "+(10-l[4])+" a "+l[4]*.9+" "+l[4]*.9+" 0 1 0 0.1 0;M"+l[3]+" 16 a "+l[4]*.7+" "+l[4]*1.6+" 0 1 0 0.1 0"),a(t,"dur",s=l[6]+"ms"),a(t,"keyTimes",n="0;"+l[5]/l[6]+";1"),a(t,"calcMode","spline"),a(t,"keySplines","0.34 1 0.64 1;1 0 0.9 0"),a(t,"fill","freeze"),a(t,"begin","indefinite"),a(o,"attributeName","opacity"),a(o,"values","1;1;0"),a(o,"dur",u=l[6]+"ms"),a(o,"keyTimes",f="0;"+(1-200/l[6])+";1"),a(o,"calcMode","spline"),a(o,"keySplines","0 0 0 0;0.32 0 0.67 0"),a(o,"fill","freeze"),a(o,"begin",c="drip_animate_"+l[0]+"_"+l[1]+".begin"),a(e,"fill","var(--after-color)")},m(h,d){N(h,e,d),g(e,t),l[8](t),g(e,o)},p(h,d){d&3&&i!==(i="drip_animate_"+h[0]+"_"+h[1])&&a(t,"id",i),d&24&&r!==(r="M"+h[3]+" "+(9.8-h[4])+" a 0.1 0.1 0 1 0 0.1 0;M"+h[3]+" "+(10-h[4])+" a "+h[4]*.9+" "+h[4]*.9+" 0 1 0 0.1 0;M"+h[3]+" 16 a "+h[4]*.7+" "+h[4]*1.6+" 0 1 0 0.1 0")&&a(t,"values",r),d&64&&s!==(s=h[6]+"ms")&&a(t,"dur",s),d&96&&n!==(n="0;"+h[5]/h[6]+";1")&&a(t,"keyTimes",n),d&64&&u!==(u=h[6]+"ms")&&a(o,"dur",u),d&64&&f!==(f="0;"+(1-200/h[6])+";1")&&a(o,"keyTimes",f),d&3&&c!==(c="drip_animate_"+h[0]+"_"+h[1]+".begin")&&a(o,"begin",c)},d(h){h&&_(e),l[8](null)}}}function da(l){let e,t,i,r=l[6]&&zi(l);return{c(){e=W("svg"),r&&r.c(),this.h()},l(s){e=q(s,"svg",{xmlns:!0,viewBox:!0,width:!0,height:!0,class:!0});var n=w(e);r&&r.l(n),n.forEach(_),this.h()},h(){a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 10 10"),a(e,"width","100%"),a(e,"height","100%"),a(e,"class","svelte-189wv79")},m(s,n){N(s,e,n),r&&r.m(e,null),i=!0},p(s,[n]){l=s,l[6]?r?r.p(l,n):(r=zi(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},i(s){i||(t&&t.end(1),i=!0)},o(s){t=jl(e,ot,{delay:l[7]?150*l[1]:0,duration:l[7]?400:0,easing:dn}),i=!1},d(s){s&&_(e),r&&r.d(),s&&t&&t.end()}}}function ma(l,e,t){let i;Ee(l,Pl,m=>t(7,i=m));let{rowID:r}=e,{tileID:s}=e,n,o,u,f,c;async function h(){t(3,o=3+Math.random()*4),t(4,u=.8+Math.random()*.4),t(5,f=800+Math.floor(u*1e3)),t(6,c=f+900);const m=100+Math.floor(Math.random()*2e3);await it(),n.beginElement(),d=setTimeout(h,m+c)}let d;tt(()=>(d=setTimeout(h,500+Math.floor(Math.random()*500)),()=>clearTimeout(d)));function v(m){Ge[m?"unshift":"push"](()=>{n=m,t(2,n)})}return l.$$set=m=>{"rowID"in m&&t(0,r=m.rowID),"tileID"in m&&t(1,s=m.tileID)},[r,s,n,o,u,f,c,i,v]}class ga extends Ne{constructor(e){super(),Ve(this,e,ma,da,Me,{rowID:0,tileID:1})}}function Ri(l,e,t){const i=l.slice();return i[34]=e[t],i[36]=t,i}function Wi(l,e,t){const i=l.slice();return i[37]=e[t],i[39]=t,i}function va(l){let e,t;return{c(){e=H("div"),t=se("loading..."),this.h()},l(i){e=j(i,"DIV",{class:!0});var r=w(e);t=ne(r,"loading..."),r.forEach(_),this.h()},h(){a(e,"class","loading svelte-skbzlh")},m(i,r){N(i,e,r),g(e,t)},p:ce,i:ce,o:ce,d(i){i&&_(e)}}}function ba(l){let e,t,i,r=!l[4]&&qi(l),s=!l[14]&&Qi(l);return{c(){r&&r.c(),e=ee(),s&&s.c(),t=_e()},l(n){r&&r.l(n),e=te(n),s&&s.l(n),t=_e()},m(n,o){r&&r.m(n,o),N(n,e,o),s&&s.m(n,o),N(n,t,o),i=!0},p(n,o){n[4]?r&&(Te(),R(r,1,1,()=>{r=null}),Ie()):r?(r.p(n,o),o[0]&16&&A(r,1)):(r=qi(n),r.c(),A(r,1),r.m(e.parentNode,e)),n[14]?s&&(Te(),R(s,1,1,()=>{s=null}),Ie()):s?(s.p(n,o),o[0]&16384&&A(s,1)):(s=Qi(n),s.c(),A(s,1),s.m(t.parentNode,t))},i(n){i||(A(r),A(s),i=!0)},o(n){R(r),R(s),i=!1},d(n){r&&r.d(n),n&&_(e),s&&s.d(n),n&&_(t)}}}function qi(l){let e,t,i,r;const s=[ka,pa],n=[];function o(u,f){return!u[5]||!u[6]||!u[7]?0:1}return t=o(l),i=n[t]=s[t](l),{c(){e=H("div"),i.c(),this.h()},l(u){e=j(u,"DIV",{class:!0});var f=w(e);i.l(f),f.forEach(_),this.h()},h(){a(e,"class","board svelte-skbzlh")},m(u,f){N(u,e,f),n[t].m(e,null),r=!0},p(u,f){let c=t;t=o(u),t===c?n[t].p(u,f):(Te(),R(n[c],1,1,()=>{n[c]=null}),Ie(),i=n[t],i?i.p(u,f):(i=n[t]=s[t](u),i.c()),A(i,1),i.m(e,null))},i(u){r||(A(i),r=!0)},o(u){R(i),r=!1},d(u){u&&_(e),n[t].d()}}}function pa(l){let e=l[13],t,i,r=Ui(l);return{c(){r.c(),t=_e()},l(s){r.l(s),t=_e()},m(s,n){r.m(s,n),N(s,t,n),i=!0},p(s,n){n[0]&8192&&Me(e,e=s[13])?(Te(),R(r,1,1,ce),Ie(),r=Ui(s),r.c(),A(r,1),r.m(t.parentNode,t)):r.p(s,n)},i(s){i||(A(r),i=!0)},o(s){R(r),i=!1},d(s){s&&_(t),r.d(s)}}}function ka(l){let e,t,i,r=l[8],s=[];for(let o=0;oR(s[o],1,1,()=>{s[o]=null});return{c(){e=H("div");for(let o=0;o{!i||(t||(t=et(e,ot,{duration:l[1],easing:vt},!0)),t.run(1))}),i=!0}},o(o){s=s.filter(Boolean);for(let u=0;uimport("./Idler-ad88cc15.js"),["chunks/Idler-ad88cc15.js","assets/Idler-8eb7dc94.css","chunks/index-0dc809ca.js","chunks/idle-scheduler-bca3e738.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js"]),i),{c(){e=_e(),i.block.c()},l(r){e=_e(),i.block.l(r)},m(r,s){N(r,e,s),i.block.m(r,i.anchor=s),i.mount=()=>e.parentNode,i.anchor=e,t=!0},p(r,s){l=r,Vs(i,l,s)},i(r){t||(A(i.block),t=!0)},o(r){for(let s=0;s<3;s+=1){const n=i.blocks[s];R(n)}t=!1},d(r){r&&_(e),i.block.d(r),i.token=null,i=null}}}function wa(l){return{c:ce,l:ce,m:ce,p:ce,i:ce,o:ce,d:ce}}function ya(l){let e,t,i;var r=l[40].default;function s(n){return{props:{id:n[36]+":"+n[39]}}}return r&&(e=Ue(r,s(l))),{c(){e&&me(e.$$.fragment),t=_e()},l(n){e&&we(e.$$.fragment,n),t=_e()},m(n,o){e&&ge(e,n,o),N(n,t,o),i=!0},p(n,o){const u={};if(o[0]&256&&(u.id=n[36]+":"+n[39]),r!==(r=n[40].default)){if(e){Te();const f=e;R(f.$$.fragment,1,0,()=>{ve(f,1)}),Ie()}r?(e=Ue(r,s(n)),me(e.$$.fragment),A(e.$$.fragment,1),ge(e,t.parentNode,t)):e=null}else r&&e.$set(u)},i(n){i||(e&&A(e.$$.fragment,n),i=!0)},o(n){e&&R(e.$$.fragment,n),i=!1},d(n){n&&_(t),e&&ve(e,n)}}}function Ea(l){return{c:ce,l:ce,m:ce,p:ce,i:ce,o:ce,d:ce}}function Xi(l){let e,t;return e=new ga({props:{rowID:l[36],tileID:l[39]}}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,r){const s={};r[0]&256&&(s.tileID=i[39]),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Ta(l){let e,t,i,r,s=!l[0]&&!l[12][0]&&l[36]===jt-1&&Yi(l),n=l[0]&&l[37].letter===""&&l[36]>l[9]&&Ji(l),o=l[3]&&l[36]===l[9]-1&&l[37].distance>0&&Xi(l);return{c(){s&&s.c(),e=ee(),n&&n.c(),t=ee(),o&&o.c(),i=_e()},l(u){s&&s.l(u),e=te(u),n&&n.l(u),t=te(u),o&&o.l(u),i=_e()},m(u,f){s&&s.m(u,f),N(u,e,f),n&&n.m(u,f),N(u,t,f),o&&o.m(u,f),N(u,i,f),r=!0},p(u,f){!u[0]&&!u[12][0]&&u[36]===jt-1?s?(s.p(u,f),f[0]&4097&&A(s,1)):(s=Yi(u),s.c(),A(s,1),s.m(e.parentNode,e)):s&&(Te(),R(s,1,1,()=>{s=null}),Ie()),u[0]&&u[37].letter===""&&u[36]>u[9]?n?(n.p(u,f),f[0]&769&&A(n,1)):(n=Ji(u),n.c(),A(n,1),n.m(t.parentNode,t)):n&&(Te(),R(n,1,1,()=>{n=null}),Ie()),u[3]&&u[36]===u[9]-1&&u[37].distance>0?o?(o.p(u,f),f[0]&776&&A(o,1)):(o=Xi(u),o.c(),A(o,1),o.m(i.parentNode,i)):o&&(Te(),R(o,1,1,()=>{o=null}),Ie())},i(u){r||(A(s),A(n),A(o),r=!0)},o(u){R(s),R(n),R(o),r=!1},d(u){s&&s.d(u),u&&_(e),n&&n.d(u),u&&_(t),o&&o.d(u),u&&_(i)}}}function Ki(l,e){let t,i,r;return i=new St({props:{tile:e[37],current:e[36]===e[9]&&e[39]===e[10],inCurrentRow:!e[5]&&e[36]===e[9],showHint:!e[5]&&(e[39]===e[10]||e[11]),$$slots:{default:[Ta]},$$scope:{ctx:e}}}),{key:l,first:null,c(){t=_e(),me(i.$$.fragment),this.h()},l(s){t=_e(),we(i.$$.fragment,s),this.h()},h(){this.first=t},m(s,n){N(s,t,n),ge(i,s,n),r=!0},p(s,n){e=s;const o={};n[0]&256&&(o.tile=e[37]),n[0]&1792&&(o.current=e[36]===e[9]&&e[39]===e[10]),n[0]&544&&(o.inCurrentRow=!e[5]&&e[36]===e[9]),n[0]&3360&&(o.showHint=!e[5]&&(e[39]===e[10]||e[11])),n[0]&4877|n[1]&1024&&(o.$$scope={dirty:n,ctx:e}),i.$set(o)},i(s){r||(A(i.$$.fragment,s),r=!0)},o(s){R(i.$$.fragment,s),r=!1},d(s){s&&_(t),ve(i,s)}}}function Zi(l){let e,t=[],i=new Map,r,s,n=l[34];const o=u=>u[36]+"."+u[39];for(let u=0;ut(8,f=$)),Ee(l,T,$=>t(9,c=$)),Ee(l,k,$=>t(10,h=$)),Ee(l,E,$=>t(5,n=$)),Ee(l,p,$=>t(11,d=$)),Ee(l,S,$=>t(12,v=$)),Ee(l,L,$=>t(6,o=$)),Ee(l,B,$=>t(4,s=$)),Ee(l,I,$=>t(7,u=$)),Ee(l,O,$=>t(13,m=$)),Ee(l,D,$=>t(28,r=$)),Ee(l,F,$=>t(14,y=$));let P=!1,U=null,G,M=0;async function V(){if(!be(nl)||U===!1)return;t(0,P=!1),t(2,X=0);const $=++M;if(clearTimeout(G),be(at)===null&&!document.hidden){if(await new Promise(Y=>{G=setTimeout(()=>{Y()},30*1e3)}),$!==M||(U===null&&(U=mi()),!U))return;It("idleBeforeFinish"),(await zt(()=>import("./idle-scheduler-bca3e738.js").then(function(Y){return Y.i}),["chunks/idle-scheduler-bca3e738.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/index-0dc809ca.js","chunks/preload-helper-5ea9bf72.js"])).initScheduler((jt-be(T))*wl),t(0,P=!0)}}let J=0;tt(()=>{document.addEventListener("visibilitychange",()=>V()),at.subscribe(()=>V()),dl.subscribe(()=>V()),xr.subscribe(()=>V()),it().then(()=>t(1,J=250))}),Yr(()=>{clearTimeout(G),G=void 0});let X=0;async function Q($){!be(nl)||(U===null&&(U=mi()),U&&(X===$?(t(2,X++,X),X===wl&&(It("danceClick"),clearTimeout(G),await it(),(await zt(()=>import("./idle-scheduler-bca3e738.js").then(function(Y){return Y.i}),["chunks/idle-scheduler-bca3e738.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/index-0dc809ca.js","chunks/preload-helper-5ea9bf72.js"])).initScheduler(5*wl,!0),t(0,P=!0))):t(2,X=0)))}const Z=$=>Q($);return l.$$.update=()=>{l.$$.dirty[0]&268435456&&t(3,i=r&&rs())},[P,J,X,i,s,n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S,L,B,I,O,D,F,Q,r,Z]}class Da extends Ne{constructor(e){super(),Ve(this,e,Sa,Ia,Me,{},null,[-1,-1])}}const Ca=l=>({label:l&2,button:l&1}),$i=l=>({label:l[1],button:l[0]});function Ma(l){let e;const t=l[6].default,i=bt(t,l,l[5],$i);return{c(){i&&i.c()},l(r){i&&i.l(r)},m(r,s){i&&i.m(r,s),e=!0},p(r,[s]){i&&i.p&&(!e||s&35)&&pt(i,t,r,r[5],e?wt(t,r[5],s,Ca):kt(r[5]),$i)},i(r){e||(A(i,r),e=!0)},o(r){R(i,r),e=!1},d(r){i&&i.d(r)}}}function La(l,e,t){let i,r;const s=["id","toggled","disabled"];let n=il(e,s),{$$slots:o={},$$scope:u}=e,{id:f="toggle"+Math.random().toString(36)}=e,{toggled:c=!0}=e,{disabled:h=!1}=e;return l.$$set=d=>{e=rt(rt({},e),ll(d)),t(7,n=il(e,s)),"id"in d&&t(2,f=d.id),"toggled"in d&&t(3,c=d.toggled),"disabled"in d&&t(4,h=d.disabled),"$$scope"in d&&t(5,u=d.$$scope)},l.$$.update=()=>{l.$$.dirty&4&&t(1,i={for:f}),t(0,r=Zt(At({},n),{id:f,disabled:h,"aria-checked":c,type:"button",role:"switch"}))},[r,i,f,c,h,u,o]}class Oa extends Ne{constructor(e){super(),Ve(this,e,La,Ma,Me,{id:2,toggled:3,disabled:4})}}const Na=l=>({toggled:l&1}),xi=l=>({toggled:l[0]});function er(l){let e,t=(l[0]?l[5]:l[6])+"",i;return{c(){e=H("span"),i=se(t),this.h()},l(r){e=j(r,"SPAN",{class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"class","svelte-1y1be9d")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s&97&&t!==(t=(r[0]?r[5]:r[6])+"")&&he(i,t)},d(r){r&&_(e)}}}function Va(l){let e,t=l[5]&&l[6]&&er(l);return{c(){t&&t.c(),e=_e()},l(i){t&&t.l(i),e=_e()},m(i,r){t&&t.m(i,r),N(i,e,r)},p(i,r){i[5]&&i[6]?t?t.p(i,r):(t=er(i),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(i){t&&t.d(i),i&&_(e)}}}function Ha(l){let e,t,i,r,s,n,o,u,f,c,h=[l[19]],d={};for(let k=0;k({19:n,20:o}),({label:n,button:o})=>(n?524288:0)|(o?1048576:0)]},$$scope:{ctx:l}};return l[0]!==void 0&&(s.toggled=l[0]),e=new Oa({props:s}),Ge.push(()=>Rt(e,"toggled",r)),{c(){me(e.$$.fragment)},l(n){we(e.$$.fragment,n)},m(n,o){ge(e,n,o),i=!0},p(n,[o]){const u={};o&1705983&&(u.$$scope={dirty:o,ctx:n}),!t&&o&1&&(t=!0,u.toggled=n[0],cl(()=>t=!1)),e.$set(u)},i(n){i||(A(e.$$.fragment,n),i=!0)},o(n){R(e.$$.fragment,n),i=!1},d(n){ve(e,n)}}}function Ba(l,e,t){const i=["toggled","label","hideLabel","small","disabled","on","off","switchColor","toggledColor","untoggledColor"];let r=il(e,i),{$$slots:s={},$$scope:n}=e,{toggled:o=!0}=e,{label:u="Label"}=e,{hideLabel:f=!1}=e,{small:c=!1}=e,{disabled:h=!1}=e,{on:d=void 0}=e,{off:v=void 0}=e,{switchColor:m="#fff"}=e,{toggledColor:y="#0f62fe"}=e,{untoggledColor:b="#8d8d8d"}=e;const T=hl();function k(B){pl.call(this,l,B)}function E(B){pl.call(this,l,B)}function p(B){pl.call(this,l,B)}const S=()=>t(0,o=!o);function L(B){o=B,t(0,o)}return l.$$set=B=>{e=rt(rt({},e),ll(B)),t(10,r=il(e,i)),"toggled"in B&&t(0,o=B.toggled),"label"in B&&t(1,u=B.label),"hideLabel"in B&&t(2,f=B.hideLabel),"small"in B&&t(3,c=B.small),"disabled"in B&&t(4,h=B.disabled),"on"in B&&t(5,d=B.on),"off"in B&&t(6,v=B.off),"switchColor"in B&&t(7,m=B.switchColor),"toggledColor"in B&&t(8,y=B.toggledColor),"untoggledColor"in B&&t(9,b=B.untoggledColor),"$$scope"in B&&t(17,n=B.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&T("toggle",o)},[o,u,f,c,h,d,v,m,y,b,r,s,k,E,p,S,L,n]}class ns extends Ne{constructor(e){super(),Ve(this,e,Ba,ja,Me,{toggled:0,label:1,hideLabel:2,small:3,disabled:4,on:5,off:6,switchColor:7,toggledColor:8,untoggledColor:9})}}function Pa(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S,L,B;return{c(){e=W("path"),r=W("path"),o=W("path"),c=W("rect"),d=W("path"),v=W("g"),m=W("path"),b=W("path"),E=W("path"),S=W("path"),this.h()},l(I){e=q(I,"path",{id:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linejoin":!0,d:!0,class:!0}),w(e).forEach(_),r=q(I,"path",{id:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,d:!0,class:!0}),w(r).forEach(_),o=q(I,"path",{id:!0,fill:!0,stroke:!0,"stroke-width":!0,d:!0,class:!0}),w(o).forEach(_),c=q(I,"rect",{x:!0,y:!0,width:!0,height:!0,"stroke-width":!0,stroke:!0,fill:!0}),w(c).forEach(_),d=q(I,"path",{d:!0,"stroke-width":!0,"stroke-linejoin":!0,"stroke-linecap":!0,stroke:!0,fill:!0}),w(d).forEach(_),v=q(I,"g",{id:!0,class:!0});var O=w(v);m=q(O,"path",{d:!0,"stroke-width":!0,stroke:!0,fill:!0}),w(m).forEach(_),b=q(O,"path",{d:!0,"stroke-width":!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,fill:!0}),w(b).forEach(_),E=q(O,"path",{id:!0,d:!0,fill:!0,"stroke-width":!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0}),w(E).forEach(_),O.forEach(_),S=q(I,"path",{d:!0,"stroke-width":!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,fill:!0}),w(S).forEach(_),this.h()},h(){a(e,"id","landscape_icon_wide_hill"),a(e,"fill",t="var(--"+(l[1]?"landscape":"before")+"-color)"),a(e,"stroke",i="var(--"+(l[1]?"landscape":"before")+"-color)"),a(e,"stroke-width","4"),a(e,"stroke-linejoin","round"),a(e,"d","M106 72 a24 12 0 0 1 -24 -12 v-12 a24 24 0 0 1 24 -24 Z"),a(e,"class","svelte-14gw8iq"),a(r,"id","landscape_icon_wide_tree"),a(r,"fill",s="var(--"+(l[1]?"landscape":"correct")+"-color)"),a(r,"stroke",n="var(--"+(l[1]?"landscape":"correct")+"-color)"),a(r,"stroke-width","4"),a(r,"stroke-linecap","round"),a(r,"d","M68.5 62 v-11 a7 7 0 1 1 0.01 0"),a(r,"class","svelte-14gw8iq"),a(o,"id","landscape_icon_wide_pond"),a(o,"fill",u="var(--"+(l[1]?"landscape":"after")+"-color)"),a(o,"stroke",f="var(--"+(l[1]?"landscape":"after")+"-color)"),a(o,"stroke-width","4"),a(o,"d","M80 83 q0 -16 -24 -16 v16 Z"),a(o,"class","svelte-14gw8iq"),a(c,"x","7.5"),a(c,"y","21"),a(c,"width","85.5"),a(c,"height","58"),a(c,"stroke-width","5.1"),a(c,"stroke",h="var(--"+(l[1]?"cta":"icon-bg")+"-color)"),a(c,"fill","none"),a(d,"d","M44 16 H97.5 V84 H44"),a(d,"stroke-width","5"),a(d,"stroke-linejoin","round"),a(d,"stroke-linecap","round"),a(d,"stroke","var(--landscape-color)"),a(d,"fill","none"),a(m,"d","M50 18.5 v63"),a(m,"stroke-width","15"),a(m,"stroke",y="var(--"+(l[1]?"cta":"icon-bg")+"-color)"),a(m,"fill","none"),a(b,"d","M55 16 h-5 v68 h5"),a(b,"stroke-width",T=l[1]?4.5:5),a(b,"stroke","var(--landscape-color)"),a(b,"stroke-linecap","round"),a(b,"stroke-linejoin","round"),a(b,"stroke-dasharray",k=l[1]?"5 9.7":"none"),a(b,"fill","none"),a(E,"id","landscape_icon_wide_arrow"),a(E,"d",p=l[1]?"M18 35 v30 L33 50 Z":"M35 35 v30 L20 50 Z"),a(E,"fill","var(--landscape-color)"),a(E,"stroke-width","5"),a(E,"stroke","var(--landscape-color)"),a(E,"stroke-linecap","round"),a(E,"stroke-linejoin","round"),a(E,"class","svelte-14gw8iq"),a(v,"id","landscape_icon_wide_divider"),a(v,"class","svelte-14gw8iq"),a(S,"d","M50 16 H3 v68 H50"),a(S,"stroke-width",L=l[1]?5:4.5),a(S,"stroke","var(--landscape-color)"),a(S,"stroke-linecap","round"),a(S,"stroke-linejoin","round"),a(S,"stroke-dasharray",B=l[1]?"none":"5 10.71"),a(S,"fill","none")},m(I,O){N(I,e,O),N(I,r,O),N(I,o,O),N(I,c,O),N(I,d,O),N(I,v,O),g(v,m),g(v,b),g(v,E),N(I,S,O)},p(I,O){O&2&&t!==(t="var(--"+(I[1]?"landscape":"before")+"-color)")&&a(e,"fill",t),O&2&&i!==(i="var(--"+(I[1]?"landscape":"before")+"-color)")&&a(e,"stroke",i),O&2&&s!==(s="var(--"+(I[1]?"landscape":"correct")+"-color)")&&a(r,"fill",s),O&2&&n!==(n="var(--"+(I[1]?"landscape":"correct")+"-color)")&&a(r,"stroke",n),O&2&&u!==(u="var(--"+(I[1]?"landscape":"after")+"-color)")&&a(o,"fill",u),O&2&&f!==(f="var(--"+(I[1]?"landscape":"after")+"-color)")&&a(o,"stroke",f),O&2&&h!==(h="var(--"+(I[1]?"cta":"icon-bg")+"-color)")&&a(c,"stroke",h),O&2&&y!==(y="var(--"+(I[1]?"cta":"icon-bg")+"-color)")&&a(m,"stroke",y),O&2&&T!==(T=I[1]?4.5:5)&&a(b,"stroke-width",T),O&2&&k!==(k=I[1]?"5 9.7":"none")&&a(b,"stroke-dasharray",k),O&2&&p!==(p=I[1]?"M18 35 v30 L33 50 Z":"M35 35 v30 L20 50 Z")&&a(E,"d",p),O&2&&L!==(L=I[1]?5:4.5)&&a(S,"stroke-width",L),O&2&&B!==(B=I[1]?"none":"5 10.71")&&a(S,"stroke-dasharray",B)},d(I){I&&_(e),I&&_(r),I&&_(o),I&&_(c),I&&_(d),I&&_(v),I&&_(S)}}}function Aa(l){let e,t,i,r,s,n,o,u,f;return{c(){e=W("path"),t=W("path"),i=W("circle"),r=W("path"),s=W("path"),n=W("rect"),o=W("rect"),u=W("rect"),f=W("rect"),this.h()},l(c){e=q(c,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linejoin":!0,d:!0}),w(e).forEach(_),t=q(c,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,d:!0}),w(t).forEach(_),i=q(c,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(i).forEach(_),r=q(c,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,d:!0}),w(r).forEach(_),s=q(c,"path",{fill:!0,stroke:!0,"stroke-width":!0,d:!0}),w(s).forEach(_),n=q(c,"rect",{x:!0,y:!0,width:!0,height:!0,"stroke-width":!0,stroke:!0,fill:!0}),w(n).forEach(_),o=q(c,"rect",{id:!0,x:!0,y:!0,width:!0,height:!0,fill:!0,class:!0}),w(o).forEach(_),u=q(c,"rect",{x:!0,y:!0,width:!0,height:!0,"stroke-width":!0,"stroke-linejoin":!0,stroke:!0,fill:!0}),w(u).forEach(_),f=q(c,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0}),w(f).forEach(_),this.h()},h(){a(e,"fill","var(--before-color)"),a(e,"stroke","var(--before-color)"),a(e,"stroke-width","4"),a(e,"stroke-linejoin","round"),a(e,"d","M87 66 a24 12 0 0 1 -24 -12 v-12 a24 24 0 0 1 24 -24 Z"),a(t,"fill","var(--correct-color)"),a(t,"stroke","var(--correct-color)"),a(t,"stroke-width","4"),a(t,"stroke-linecap","round"),a(t,"d","M28 44 v-11 a7 7 0 1 1 0.01 0"),a(i,"cx","45"),a(i,"cy","32"),a(i,"r","12"),a(i,"fill","var(--icon-bg-color)"),a(r,"fill","var(--correct-color)"),a(r,"stroke","var(--correct-color)"),a(r,"stroke-width","4"),a(r,"stroke-linecap","round"),a(r,"d","M45 50 v-11 a7 7 0 1 1 0.01 0"),a(s,"fill","var(--after-color)"),a(s,"stroke","var(--after-color)"),a(s,"stroke-width","4"),a(s,"d","M61 77 q0 -14 -22 -14 q-22 0 -22 -14 q0 -14 -22 -14 v48 Z"),a(n,"x","9"),a(n,"y","9"),a(n,"width","82"),a(n,"height","62"),a(n,"stroke-width","6.1"),a(n,"stroke","var(--icon-bg-color)"),a(n,"fill","none"),a(o,"id","landscape_icon_photo_flash"),a(o,"x","9"),a(o,"y","9"),a(o,"width","82"),a(o,"height","62"),a(o,"fill","var(--icon-bg-color)"),a(o,"class","svelte-14gw8iq"),a(u,"x","3"),a(u,"y","3"),a(u,"width","94"),a(u,"height","94"),a(u,"stroke-width","6"),a(u,"stroke-linejoin","round"),a(u,"stroke","var(--landscape-color)"),a(u,"fill","none"),a(f,"x","4"),a(f,"y","74"),a(f,"width","92"),a(f,"height","22"),a(f,"fill","var(--landscape-color)")},m(c,h){N(c,e,h),N(c,t,h),N(c,i,h),N(c,r,h),N(c,s,h),N(c,n,h),N(c,o,h),N(c,u,h),N(c,f,h)},p:ce,d(c){c&&_(e),c&&_(t),c&&_(i),c&&_(r),c&&_(s),c&&_(n),c&&_(o),c&&_(u),c&&_(f)}}}function Ga(l){let e,t,i,r,s,n,o,u,f;return{c(){e=W("circle"),t=W("g"),i=W("path"),r=W("g"),s=W("path"),n=W("path"),o=W("g"),u=W("path"),f=W("path"),this.h()},l(c){e=q(c,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(e).forEach(_),t=q(c,"g",{id:!0,class:!0});var h=w(t);i=q(h,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,d:!0}),w(i).forEach(_),h.forEach(_),r=q(c,"g",{id:!0,class:!0});var d=w(r);s=q(d,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,d:!0}),w(s).forEach(_),n=q(d,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,d:!0}),w(n).forEach(_),d.forEach(_),o=q(c,"g",{id:!0,class:!0});var v=w(o);u=q(v,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,d:!0}),w(u).forEach(_),f=q(v,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,d:!0}),w(f).forEach(_),v.forEach(_),this.h()},h(){a(e,"cx","50"),a(e,"cy","50"),a(e,"r","18"),a(e,"fill","var(--landscape-color)"),a(i,"fill","none"),a(i,"stroke","var(--after-color)"),a(i,"stroke-width","16"),a(i,"stroke-linecap","round"),a(i,"stroke-linejoin","round"),a(i,"d","M79.698 79.698 a42 42 0 0 1 -59.397 0"),a(t,"id","landscape_icon_redraw_1"),a(t,"class","svelte-14gw8iq"),a(s,"fill","none"),a(s,"stroke","var(--icon-bg-color)"),a(s,"stroke-width","40"),a(s,"stroke-linecap","round"),a(s,"stroke-linejoin","round"),a(s,"d","M20.302 79.698 a42 42 0 0 1 59.397 -59.397"),a(n,"fill","none"),a(n,"stroke","var(--before-color)"),a(n,"stroke-width","16"),a(n,"stroke-linecap","round"),a(n,"stroke-linejoin","round"),a(n,"d","M20.302 79.698 a42 42 0 0 1 59.397 -59.397"),a(r,"id","landscape_icon_redraw_2"),a(r,"class","svelte-14gw8iq"),a(u,"fill","none"),a(u,"stroke","var(--icon-bg-color)"),a(u,"stroke-width","40"),a(u,"stroke-linecap","round"),a(u,"d","M20.302 20.302 a42 42 0 0 1 59.397 0 l12 12"),a(f,"fill","none"),a(f,"stroke","var(--correct-color)"),a(f,"stroke-width","16"),a(f,"stroke-linecap","round"),a(f,"stroke-linejoin","round"),a(f,"d","M20.302 20.302 a42 42 0 0 1 59.397 0 l12 12 V8"),a(o,"id","landscape_icon_redraw_3"),a(o,"class","svelte-14gw8iq")},m(c,h){N(c,e,h),N(c,t,h),g(t,i),N(c,r,h),g(r,s),g(r,n),N(c,o,h),g(o,u),g(o,f)},p:ce,d(c){c&&_(e),c&&_(t),c&&_(r),c&&_(o)}}}function Fa(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y,b,T,k,E;return{c(){e=W("g"),t=W("circle"),r=W("circle"),n=W("g"),o=W("circle"),f=W("circle"),h=W("circle"),v=W("g"),m=W("circle"),b=W("circle"),k=W("circle"),this.h()},l(p){e=q(p,"g",{id:!0,class:!0});var S=w(e);t=q(S,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(t).forEach(_),r=q(S,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(r).forEach(_),S.forEach(_),n=q(p,"g",{id:!0,class:!0});var L=w(n);o=q(L,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(o).forEach(_),f=q(L,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(f).forEach(_),h=q(L,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(h).forEach(_),L.forEach(_),v=q(p,"g",{id:!0,class:!0});var B=w(v);m=q(B,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(m).forEach(_),b=q(B,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(b).forEach(_),k=q(B,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(k).forEach(_),B.forEach(_),this.h()},h(){a(t,"cx","72"),a(t,"cy","72"),a(t,"r","28"),a(t,"fill",i="var(--"+(l[1]?"landscape":"after")+"-color)"),a(r,"cx","72"),a(r,"cy","72"),a(r,"r","14"),a(r,"fill",s=l[1]?"var(--cta-color)":"none"),a(e,"id","landscape_icon_color_1"),a(e,"class","svelte-14gw8iq"),a(o,"cx","28"),a(o,"cy","50"),a(o,"r","38.5"),a(o,"fill",u="var(--"+(l[1]?"cta":"icon-bg")+"-color)"),a(f,"cx","28"),a(f,"cy","50"),a(f,"r","28"),a(f,"fill",c="var(--"+(l[1]?"landscape":"before")+"-color)"),a(h,"cx","28"),a(h,"cy","50"),a(h,"r","14"),a(h,"fill",d=l[1]?"var(--cta-color)":"none"),a(n,"id","landscape_icon_color_2"),a(n,"class","svelte-14gw8iq"),a(m,"cx","72"),a(m,"cy","28"),a(m,"r","38.5"),a(m,"fill",y="var(--"+(l[1]?"cta":"icon-bg")+"-color)"),a(b,"cx","72"),a(b,"cy","28"),a(b,"r","28"),a(b,"fill",T="var(--"+(l[1]?"landscape":"correct")+"-color)"),a(k,"cx","72"),a(k,"cy","28"),a(k,"r","14"),a(k,"fill",E=l[1]?"var(--cta-color)":"none"),a(v,"id","landscape_icon_color_3"),a(v,"class","svelte-14gw8iq")},m(p,S){N(p,e,S),g(e,t),g(e,r),N(p,n,S),g(n,o),g(n,f),g(n,h),N(p,v,S),g(v,m),g(v,b),g(v,k)},p(p,S){S&2&&i!==(i="var(--"+(p[1]?"landscape":"after")+"-color)")&&a(t,"fill",i),S&2&&s!==(s=p[1]?"var(--cta-color)":"none")&&a(r,"fill",s),S&2&&u!==(u="var(--"+(p[1]?"cta":"icon-bg")+"-color)")&&a(o,"fill",u),S&2&&c!==(c="var(--"+(p[1]?"landscape":"before")+"-color)")&&a(f,"fill",c),S&2&&d!==(d=p[1]?"var(--cta-color)":"none")&&a(h,"fill",d),S&2&&y!==(y="var(--"+(p[1]?"cta":"icon-bg")+"-color)")&&a(m,"fill",y),S&2&&T!==(T="var(--"+(p[1]?"landscape":"correct")+"-color)")&&a(b,"fill",T),S&2&&E!==(E=p[1]?"var(--cta-color)":"none")&&a(k,"fill",E)},d(p){p&&_(e),p&&_(n),p&&_(v)}}}function za(l){let e,t,i,r;function s(u,f){return u[0]==="color"?Fa:u[0]==="redraw"?Ga:u[0]==="photo"?Aa:Pa}let n=s(l),o=n(l);return{c(){e=W("svg"),o.c(),this.h()},l(u){e=q(u,"svg",{xmlns:!0,viewBox:!0,width:!0,class:!0,height:!0});var f=w(e);o.l(f),f.forEach(_),this.h()},h(){a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox",t=l[0]==="wide"?"0 13 100 74":"0 0 100 100"),a(e,"width",i=l[0]==="wide"?"3rem":"2.25rem"),a(e,"class",r=tl(l[0])+" svelte-14gw8iq"),a(e,"height","2.25rem"),oe(e,"active",l[1])},m(u,f){N(u,e,f),o.m(e,null)},p(u,[f]){n===(n=s(u))&&o?o.p(u,f):(o.d(1),o=n(u),o&&(o.c(),o.m(e,null))),f&1&&t!==(t=u[0]==="wide"?"0 13 100 74":"0 0 100 100")&&a(e,"viewBox",t),f&1&&i!==(i=u[0]==="wide"?"3rem":"2.25rem")&&a(e,"width",i),f&1&&r!==(r=tl(u[0])+" svelte-14gw8iq")&&a(e,"class",r),f&3&&oe(e,"active",u[1])},i:ce,o:ce,d(u){u&&_(e),o.d()}}}function Ra(l,e,t){let{icon:i}=e,{active:r=!1}=e;return l.$$set=s=>{"icon"in s&&t(0,i=s.icon),"active"in s&&t(1,r=s.active)},[i,r]}class el extends Ne{constructor(e){super(),Ve(this,e,Ra,za,Me,{icon:0,active:1})}}function tr(l,e,t){const i=l.slice();return i[38]=e[t],i}function Wa(l){let e,t,i=l[6]("main.results.share")+"",r,s,n,o,u,f,c;const h=[Ya,Ua],d=[];function v(m,y){return m[0]==="daily"?0:1}return n=v(l),o=d[n]=h[n](l),{c(){e=H("div"),t=H("button"),r=se(i),s=ee(),o.c(),this.h()},l(m){e=j(m,"DIV",{class:!0});var y=w(e);t=j(y,"BUTTON",{class:!0});var b=w(t);r=ne(b,i),b.forEach(_),s=te(y),o.l(y),y.forEach(_),this.h()},h(){a(t,"class","svelte-abjg2o"),a(e,"class","action-items svelte-abjg2o")},m(m,y){N(m,e,y),g(e,t),g(t,r),g(e,s),d[n].m(e,null),u=!0,f||(c=de(t,"click",l[21]),f=!0)},p(m,y){(!u||y[0]&64)&&i!==(i=m[6]("main.results.share")+"")&&he(r,i);let b=n;n=v(m),n===b?d[n].p(m,y):(Te(),R(d[b],1,1,()=>{d[b]=null}),Ie(),o=d[n],o?o.p(m,y):(o=d[n]=h[n](m),o.c()),A(o,1),o.m(e,null))},i(m){u||(A(o),u=!0)},o(m){R(o),u=!1},d(m){m&&_(e),d[n].d(),f=!1,c()}}}function qa(l){let e,t,i=l[6]("main.results.text")+"",r,s,n,o=l[6]("main.results.image")+"",u,f,c,h,d,v,m=l[14],y=[];for(let T=0;TR(y[T],1,1,()=>{y[T]=null});return{c(){e=H("div"),t=H("button"),r=se(i),s=ee(),n=H("button"),u=se(o),f=ee(),c=H("div");for(let T=0;T{n[c]=null}),Ie(),t=n[e],t?t.p(u,f):(t=n[e]=s[e](u),t.c()),A(t,1),t.m(i.parentNode,i))},i(u){r||(A(t),r=!0)},o(u){R(t),r=!1},d(u){n[e].d(u),u&&_(i)}}}function Ja(l){let e,t,i;return t=new Dt({props:{mode:"countdown",alwaysShowHours:!0,ms:l[19],class:"time",$$slots:{title:[Ka]},$$scope:{ctx:l}}}),{c(){e=H("div"),me(t.$$.fragment),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);we(t.$$.fragment,s),s.forEach(_),this.h()},h(){a(e,"class","countdown svelte-abjg2o")},m(r,s){N(r,e,s),ge(t,e,null),i=!0},p(r,s){const n={};s[0]&64|s[1]&1024&&(n.$$scope={dirty:s,ctx:r}),t.$set(n)},i(r){i||(A(t.$$.fragment,r),i=!0)},o(r){R(t.$$.fragment,r),i=!1},d(r){r&&_(e),ve(t)}}}function Xa(l){let e,t=l[6]("main.results.play_daily")+"",i,r,s;return{c(){e=H("button"),i=se(t),this.h()},l(n){e=j(n,"BUTTON",{class:!0});var o=w(e);i=ne(o,t),o.forEach(_),this.h()},h(){a(e,"class","play-button svelte-abjg2o")},m(n,o){N(n,e,o),g(e,i),r||(s=de(e,"click",Al),r=!0)},p(n,o){o[0]&64&&t!==(t=n[6]("main.results.play_daily")+"")&&he(i,t)},i:ce,o:ce,d(n){n&&_(e),r=!1,s()}}}function Ka(l){let e,t=l[6]("main.results.next_word")+"",i;return{c(){e=H("h3"),i=se(t),this.h()},l(r){e=j(r,"H3",{slot:!0,class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"slot","title"),a(e,"class","svelte-abjg2o")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s[0]&64&&t!==(t=r[6]("main.results.next_word")+"")&&he(i,t)},d(r){r&&_(e)}}}function Za(l){let e,t=l[6](l[38].label)+"",i,r;return{c(){e=H("div"),i=se(t),r=ee(),this.h()},l(s){e=j(s,"DIV",{class:!0});var n=w(e);i=ne(n,t),n.forEach(_),r=te(s),this.h()},h(){a(e,"class","label svelte-abjg2o")},m(s,n){N(s,e,n),g(e,i),N(s,r,n)},p(s,n){n[0]&64&&t!==(t=s[6](s[38].label)+"")&&he(i,t)},d(s){s&&_(e),s&&_(r)}}}function lr(l){let e,t;return e=new ns({props:{toggled:be(l[38].bind),hideLabel:!0,label:l[6](l[38].label),style:"transform: scale(var(--toggle-scale)); touch-action: manipulation; flex-basis: 2.5rem;",toggledColor:"var(--accent-color)",untoggledColor:"#695d6e",$$slots:{default:[Za]},$$scope:{ctx:l}}}),e.$on("click",l[38].click),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,r){const s={};r[0]&64&&(s.label=i[6](i[38].label)),r[0]&64|r[1]&1024&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function ir(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S=l[6]("main.footer.donate")+"",L,B,I,O=l[6]("main.footer.donate_short")+"",D,F,P,U;return i=new el({props:{icon:"wide",active:l[8]}}),o=new el({props:{icon:"color",active:l[9]}}),h=new el({props:{icon:"redraw"}}),y=new el({props:{icon:"photo"}}),{c(){e=H("div"),t=H("button"),me(i.$$.fragment),s=ee(),n=H("button"),me(o.$$.fragment),f=ee(),c=H("button"),me(h.$$.fragment),v=ee(),m=H("button"),me(y.$$.fragment),T=ee(),k=H("div"),E=H("a"),p=H("span"),L=se(S),B=ee(),I=H("span"),D=se(O),this.h()},l(G){e=j(G,"DIV",{class:!0});var M=w(e);t=j(M,"BUTTON",{title:!0,class:!0});var V=w(t);we(i.$$.fragment,V),V.forEach(_),s=te(M),n=j(M,"BUTTON",{title:!0,class:!0});var J=w(n);we(o.$$.fragment,J),J.forEach(_),f=te(M),c=j(M,"BUTTON",{title:!0,class:!0});var X=w(c);we(h.$$.fragment,X),X.forEach(_),v=te(M),m=j(M,"BUTTON",{title:!0,class:!0});var Q=w(m);we(y.$$.fragment,Q),Q.forEach(_),T=te(M),k=j(M,"DIV",{class:!0});var Z=w(k);E=j(Z,"A",{href:!0});var $=w(E);p=j($,"SPAN",{class:!0});var K=w(p);L=ne(K,S),K.forEach(_),B=te($),I=j($,"SPAN",{class:!0});var Y=w(I);D=ne(Y,O),Y.forEach(_),$.forEach(_),Z.forEach(_),M.forEach(_),this.h()},h(){a(t,"title",r=l[6]("main.other.wide_view")),a(t,"class","svelte-abjg2o"),oe(t,"cta-bg",l[8]),a(n,"title",u=l[6]("main.other.color")),a(n,"class","svelte-abjg2o"),oe(n,"cta-bg",l[9]),a(c,"title",d=l[6]("main.other.redraw")),c.disabled=l[4],a(c,"class","svelte-abjg2o"),a(m,"title",b=l[6]("main.results.share")),a(m,"class","svelte-abjg2o"),a(p,"class","hide-on-small-screens svelte-abjg2o"),a(I,"class","hide-on-big-screens svelte-abjg2o"),a(E,"href","https://buymeacoffee.com/vegeta897"),a(k,"class","promo svelte-abjg2o"),a(e,"class","landscape-controls svelte-abjg2o")},m(G,M){N(G,e,M),g(e,t),ge(i,t,null),g(e,s),g(e,n),ge(o,n,null),g(e,f),g(e,c),ge(h,c,null),g(e,v),g(e,m),ge(y,m,null),g(e,T),g(e,k),g(k,E),g(E,p),g(p,L),g(E,B),g(E,I),g(I,D),F=!0,P||(U=[de(t,"click",l[23]),de(n,"click",l[24]),de(c,"click",l[25]),de(m,"click",l[17]),de(E,"auxclick",l[26]),de(E,"click",l[27])],P=!0)},p(G,M){const V={};M[0]&256&&(V.active=G[8]),i.$set(V),(!F||M[0]&64&&r!==(r=G[6]("main.other.wide_view")))&&a(t,"title",r),(!F||M[0]&256)&&oe(t,"cta-bg",G[8]);const J={};M[0]&512&&(J.active=G[9]),o.$set(J),(!F||M[0]&64&&u!==(u=G[6]("main.other.color")))&&a(n,"title",u),(!F||M[0]&512)&&oe(n,"cta-bg",G[9]),(!F||M[0]&64&&d!==(d=G[6]("main.other.redraw")))&&a(c,"title",d),(!F||M[0]&16)&&(c.disabled=G[4]),(!F||M[0]&64&&b!==(b=G[6]("main.results.share")))&&a(m,"title",b),(!F||M[0]&64)&&S!==(S=G[6]("main.footer.donate")+"")&&he(L,S),(!F||M[0]&64)&&O!==(O=G[6]("main.footer.donate_short")+"")&&he(D,O)},i(G){F||(A(i.$$.fragment,G),A(o.$$.fragment,G),A(h.$$.fragment,G),A(y.$$.fragment,G),F=!0)},o(G){R(i.$$.fragment,G),R(o.$$.fragment,G),R(h.$$.fragment,G),R(y.$$.fragment,G),F=!1},d(G){G&&_(e),ve(i),ve(o),ve(h),ve(y),P=!1,$e(U)}}}function Qa(l){let e,t,i,r,s,n,o,u,f,c,h,d=l[6]("main.results.copy_image")+"",v,m,y,b,T,k,E,p;const S=[qa,Wa],L=[];function B(O,D){return O[1]?0:1}i=B(l),r=L[i]=S[i](l);let I=!l[1]&&!l[7]&&ir(l);return{c(){e=H("div"),t=H("div"),r.c(),s=ee(),I&&I.c(),n=ee(),o=H("div"),u=H("div"),f=H("canvas"),c=ee(),h=H("button"),v=se(d),m=ee(),y=H("button"),b=W("svg"),T=W("path"),this.h()},l(O){e=j(O,"DIV",{class:!0});var D=w(e);t=j(D,"DIV",{class:!0});var F=w(t);r.l(F),F.forEach(_),s=te(D),I&&I.l(D),n=te(D),o=j(D,"DIV",{class:!0,role:!0});var P=w(o);u=j(P,"DIV",{class:!0});var U=w(u);f=j(U,"CANVAS",{}),w(f).forEach(_),c=te(U),h=j(U,"BUTTON",{class:!0});var G=w(h);v=ne(G,d),G.forEach(_),m=te(U),y=j(U,"BUTTON",{title:!0,class:!0});var M=w(y);b=q(M,"svg",{viewBox:!0,xmlns:!0,width:!0});var V=w(b);T=q(V,"path",{stroke:!0,fill:!0,d:!0,"stroke-width":!0,"stroke-linecap":!0}),w(T).forEach(_),V.forEach(_),M.forEach(_),U.forEach(_),P.forEach(_),D.forEach(_),this.h()},h(){a(t,"class","actions svelte-abjg2o"),oe(t,"full-width",l[1]),a(h,"class","svelte-abjg2o"),a(T,"stroke","currentColor"),a(T,"fill","none"),a(T,"d","M1.2 1.2 l1.6 1.6 M1.2 2.8 l1.6 -1.6"),a(T,"stroke-width","0.5"),a(T,"stroke-linecap","round"),a(b,"viewBox","0 0 4 4"),a(b,"xmlns","http://www.w3.org/2000/svg"),a(b,"width","32px"),a(y,"title","Close"),a(y,"class","close-button svelte-abjg2o"),a(u,"class","image-share svelte-abjg2o"),a(o,"class","modal-backdrop svelte-abjg2o"),a(o,"role","dialog"),fe(o,"display",l[2]?"flex":"none"),a(e,"class","container svelte-abjg2o")},m(O,D){N(O,e,D),g(e,t),L[i].m(t,null),g(e,s),I&&I.m(e,null),g(e,n),g(e,o),g(o,u),g(u,f),l[28](f),g(u,c),g(u,h),g(h,v),g(u,m),g(u,y),g(y,b),g(b,T),k=!0,E||(p=[de(window,"keydown",l[20]),de(h,"click",l[18]),de(y,"click",l[29]),de(o,"click",js(l[30]))],E=!0)},p(O,D){let F=i;i=B(O),i===F?L[i].p(O,D):(Te(),R(L[F],1,1,()=>{L[F]=null}),Ie(),r=L[i],r?r.p(O,D):(r=L[i]=S[i](O),r.c()),A(r,1),r.m(t,null)),(!k||D[0]&2)&&oe(t,"full-width",O[1]),!O[1]&&!O[7]?I?(I.p(O,D),D[0]&130&&A(I,1)):(I=ir(O),I.c(),A(I,1),I.m(e,n)):I&&(Te(),R(I,1,1,()=>{I=null}),Ie()),(!k||D[0]&64)&&d!==(d=O[6]("main.results.copy_image")+"")&&he(v,d),D[0]&4&&fe(o,"display",O[2]?"flex":"none")},i(O){k||(A(r),A(I),k=!0)},o(O){R(r),R(I),k=!1},d(O){O&&_(e),L[i].d(),I&&I.d(),l[28](null),E=!1,$e(p)}}}function $a(l,e,t){let i,r,s,n;Ee(l,Ze,x=>t(6,i=x));const{landscapeWideView:o,landscapeForceColor:u,landscapeRedraw:f,hideLandscape:c}=Bt;Ee(l,o,x=>t(8,s=x)),Ee(l,u,x=>t(9,n=x)),Ee(l,c,x=>t(7,r=x));let{gameMode:h}=e,d,v,m,y,b,T=!1;const k={theme:{"--toastBackground":"var(--cta-color)"}},E=x=>qt.push(x,k),p=()=>qt.push(be(Ze)("main.messages.could_not_do"),k),S=x=>()=>x.set(!be(x)),L=[{bind:Qt,label:"main.options.include_link",click:S(Qt)},{bind:Gt,label:"main.options.include_times",click:S(Gt)},{bind:$t,label:"main.options.hide_arrows",click:S($t)}];function B(){t(1,d=!1),t(2,v=!1),It("resultShare");const x={guesses:be(yl),answer:be(Zr),hideArrows:be($t)};let re="";be(Gt)&&(re=` + ${x[8]?200:1e3}ms ease`)&&fe(h,"transition",y),re[0]&1&&T!==(T="hill_nudge_animate_"+x[0]+".begin")&&a(b,"begin",T),re[0]&1024&&k!==(k="1 1;1 "+x[10]+";1 1")&&a(b,"values",k),re[0]&256&&p!==(p="var(--"+(x[8]?"before-color":"tertiary-color")+")")&&a(E,"fill",p),re[0]&256&&S!==(S="var(--"+(x[8]?"before-color":"landscape-color")+")")&&a(E,"stroke",S),re[0]&8192&&a(E,"d",x[13]),re[0]&256&&L!==(L=`fill ${x[8]?200:1e3}ms ease, stroke ${x[8]?200:1e3}ms ease`)&&fe(E,"transition",L),re[0]&1&&I!==(I="hill_draw_animate_"+x[0])&&a(B,"id",I),re[0]&32&&O!==(O=x[5]?0:1)&&a(t,"opacity",O),re[0]&4096&&a(F,"d",x[12]),re[0]&1&&P!==(P="hill_clip_"+x[0])&&a(D,"id",P),re[0]&1&&J!==(J="hill_draw_animate_"+x[0]+".begin")&&a(V,"begin",J),re[0]&2048&&X!==(X="0 "+x[11]+";0 0;0 "+x[11])&&a(V,"values",X),re[0]&6&&Q!==(Q="M-"+x[2]+" 1 v-"+(x[1]?1.7:2)+" a"+x[2]+" "+x[2]+" 0 0 1 "+x[2]*2+" 0 v"+(x[1]?1.7:2))&&a(M,"d",Q),re[0]&2048&&Z!==(Z="translate(0 "+x[11]+")")&&a(M,"transform",Z),re[0]&32770&&$!==($=`translateY(${x[15]?x[1]?.25:.4:0}px)`)&&fe(G,"transform",$),re[0]&32768&&K!==(K=`transform ${x[15]?75:200}ms ease-out`)&&fe(G,"transition",K),re[0]&1&&Y!==(Y="url(#hill_clip_"+x[0]+")")&&a(U,"clip-path",Y),re[0]&24&&ue!==(ue="translate("+x[3]+" "+x[4]+")")&&a(e,"transform",ue)},i:ce,o:ce,d(x){x&&_(e),l[29](null),l[30](null)}}}const mt=.2,gi=900;function qn(l,e,t){let i,r,s,n,o,u,f,c,h;const d=mt/2;let{id:v}=e,{x:m}=e,{y}=e,{xJitter:b}=e,{yJitter:T}=e,{mini:k=!1}=e,{size:E}=e,{animate:p}=e,{delay:S=0}=e,{mouseOver:L}=e,{mouseX:B}=e,{mouseY:I}=e,{forceColor:O}=e,D=!0,F,P,U=!1,G,M=0,V=1;function J(Z,$,K){const Y=Ut(Z-i,$-n),ue=4-Y;if(ue>0){const ke=(Z-i)/Y,z=($-n)/Y;t(9,M=ke*ue*4),t(10,V=1+z*ue/24),P==null||P.beginElement()}if(O)return;const x=Y*70;setTimeout(async()=>t(8,U=!0),x);const re=setTimeout(async()=>{G===re&&t(8,U=O)},Math.max(K,x));G=re}tt(()=>{t(5,D=p),p&&setTimeout(()=>F==null?void 0:F.beginElement(),S)});function X(Z){Ge[Z?"unshift":"push"](()=>{P=Z,t(7,P)})}function Q(Z){Ge[Z?"unshift":"push"](()=>{F=Z,t(6,F)})}return l.$$set=Z=>{"id"in Z&&t(0,v=Z.id),"x"in Z&&t(16,m=Z.x),"y"in Z&&t(17,y=Z.y),"xJitter"in Z&&t(18,b=Z.xJitter),"yJitter"in Z&&t(19,T=Z.yJitter),"mini"in Z&&t(1,k=Z.mini),"size"in Z&&t(20,E=Z.size),"animate"in Z&&t(21,p=Z.animate),"delay"in Z&&t(22,S=Z.delay),"mouseOver"in Z&&t(23,L=Z.mouseOver),"mouseX"in Z&&t(24,B=Z.mouseX),"mouseY"in Z&&t(25,I=Z.mouseY),"forceColor"in Z&&t(26,O=Z.forceColor)},l.$$.update=()=>{l.$$.dirty[0]&67108864&&t(8,U=O),l.$$.dirty[0]&327682&&t(3,i=(m+b+(k?1:1.5))*1.5),l.$$.dirty[0]&655360&&t(4,r=y+T+1),l.$$.dirty[0]&1048578&&t(2,s=(k?.8:1.35)+.2*E),l.$$.dirty[0]&18&&t(28,n=r-(k?.7:1)),l.$$.dirty[0]&327155724&&t(15,o=L&&Math.abs(i-B)e[18](r,u,f),O=()=>e[18](null,u,f);return{key:l,first:null,c(){t=W("radialGradient"),i=W("stop"),r=W("animate"),c=W("stop"),h=W("animate"),T=W("path"),k=W("animate"),this.h()},l(D){t=q(D,"radialGradient",{id:!0,gradientUnits:!0,gradientTransform:!0,cx:!0,cy:!0,r:!0});var F=w(t);i=q(F,"stop",{"stop-color":!0});var P=w(i);r=q(P,"animate",{id:!0,attributeName:!0,values:!0,keyTimes:!0,dur:!0,fill:!0,begin:!0}),w(r).forEach(_),P.forEach(_),c=q(F,"stop",{"stop-color":!0,"stop-opacity":!0});var U=w(c);h=q(U,"animate",{attributeName:!0,values:!0,keyTimes:!0,dur:!0,fill:!0,begin:!0}),w(h).forEach(_),U.forEach(_),F.forEach(_),T=q(D,"path",{"stroke-width":!0,"stroke-linecap":!0,stroke:!0,fill:!0,d:!0});var G=w(T);k=q(G,"animate",{attributeName:!0,values:!0,keyTimes:!0,calcMode:!0,keySplines:!0,dur:!0,fill:!0,begin:!0}),w(k).forEach(_),G.forEach(_),this.h()},h(){a(r,"id",s="pond_flood_animate_"+e[23][0]),a(r,"attributeName","offset"),a(r,"values","0;1;1;1"),a(r,"keyTimes",n=e[23][5]),a(r,"dur",o=e[23][3]+"ms"),a(r,"fill","freeze"),a(r,"begin","indefinite"),a(i,"stop-color","var(--after-color)"),a(h,"attributeName","offset"),a(h,"values","0;1.01;1.01;1.01"),a(h,"keyTimes",d=e[23][5]),a(h,"dur",v=e[23][3]+"ms"),a(h,"fill","freeze"),a(h,"begin",m="pond_flood_animate_"+e[23][0]+".begin"),a(c,"stop-color","var(--after-color)"),a(c,"stop-opacity","0"),a(t,"id",y="pond_flood_gradient_"+e[23][0]),a(t,"gradientUnits","userSpaceOnUse"),a(t,"gradientTransform",b="translate("+e[23][1]+" "+e[23][2]+") scale(1.5 1)"),a(t,"cx","0"),a(t,"cy","0"),a(t,"r",e[4]),a(k,"attributeName","opacity"),a(k,"values","1;1;1;0"),a(k,"keyTimes",E=e[23][5]),a(k,"calcMode","spline"),a(k,"keySplines","0 0 0 0;0 0 0 0;0.25 0.1 0.25 1"),a(k,"dur",p=e[23][3]+"ms"),a(k,"fill","freeze"),a(k,"begin",S="pond_flood_animate_"+e[23][0]+".begin"),a(T,"stroke-width","0.26"),a(T,"stroke-linecap","round"),a(T,"stroke",L="url('#pond_flood_gradient_"+e[23][0]+"')"),a(T,"fill",B="url('#pond_flood_gradient_"+e[23][0]+"')"),a(T,"d",e[6]),this.first=t},m(D,F){N(D,t,F),g(t,i),g(i,r),I(),g(t,c),g(c,h),N(D,T,F),g(T,k)},p(D,F){e=D,F&32&&s!==(s="pond_flood_animate_"+e[23][0])&&a(r,"id",s),F&32&&n!==(n=e[23][5])&&a(r,"keyTimes",n),F&32&&o!==(o=e[23][3]+"ms")&&a(r,"dur",o),(u!==e[24]||f!==e[25])&&(O(),u=e[24],f=e[25],I()),F&32&&d!==(d=e[23][5])&&a(h,"keyTimes",d),F&32&&v!==(v=e[23][3]+"ms")&&a(h,"dur",v),F&32&&m!==(m="pond_flood_animate_"+e[23][0]+".begin")&&a(h,"begin",m),F&32&&y!==(y="pond_flood_gradient_"+e[23][0])&&a(t,"id",y),F&32&&b!==(b="translate("+e[23][1]+" "+e[23][2]+") scale(1.5 1)")&&a(t,"gradientTransform",b),F&16&&a(t,"r",e[4]),F&32&&E!==(E=e[23][5])&&a(k,"keyTimes",E),F&32&&p!==(p=e[23][3]+"ms")&&a(k,"dur",p),F&32&&S!==(S="pond_flood_animate_"+e[23][0]+".begin")&&a(k,"begin",S),F&32&&L!==(L="url('#pond_flood_gradient_"+e[23][0]+"')")&&a(T,"stroke",L),F&32&&B!==(B="url('#pond_flood_gradient_"+e[23][0]+"')")&&a(T,"fill",B),F&64&&a(T,"d",e[6])},d(D){D&&_(t),O(),D&&_(T)}}}function Ei(l){let e=l[9],t,i=Ti(l);return{c(){i.c(),t=_e()},l(r){i.l(r),t=_e()},m(r,s){i.m(r,s),N(r,t,s)},p(r,s){s&512&&Me(e,e=r[9])?(i.d(1),i=Ti(r),i.c(),i.m(t.parentNode,t)):i.p(r,s)},d(r){r&&_(t),i.d(r)}}}function Ti(l){let e,t,i,r;return{c(){e=W("animate"),this.h()},l(s){e=q(s,"animate",{id:!0,attributeName:!0,values:!0,dur:!0,calcMode:!0,fill:!0,keyTimes:!0,keySplines:!0,begin:!0}),w(e).forEach(_),this.h()},h(){a(e,"id",t="pond_draw_animate_"+l[9]),a(e,"attributeName","opacity"),a(e,"values","0;0;1"),a(e,"dur",i=l[11]+"ms"),a(e,"calcMode","spline"),a(e,"fill","freeze"),a(e,"keyTimes",r="0;"+(1-300/l[11])+";1"),a(e,"keySplines","0.5 0.5 0.5 0.5;"+Fe.cubicIn),a(e,"begin","indefinite")},m(s,n){N(s,e,n),l[19](e)},p(s,n){n&512&&t!==(t="pond_draw_animate_"+s[9])&&a(e,"id",t),n&2048&&i!==(i=s[11]+"ms")&&a(e,"dur",i),n&2048&&r!==(r="0;"+(1-300/s[11])+";1")&&a(e,"keyTimes",r)},d(s){s&&_(e),l[19](null)}}}function Yn(l){let e,t,i,r,s=l[9],n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S=`fill ${l[3]?200:1e3}ms ease`,L,B,I,O=`fill ${l[3]?200:1e3}ms ease, stroke ${l[3]?200:1e3}ms ease`,D,F,P=`stroke ${l[3]?200:1e3}ms ease`,U=[],G=new Map,M,V,J=ki(l),X=l[0]&&wi(l),Q=l[5];const Z=K=>K[23];for(let K=0;K{t(5,v=v.filter(X=>X!==V))},U)}let b,T,k=[],E=0,p,S,L;async function B(){if(t(7,T=b),t(6,b=Mn(s)),o&&T!==b&&n.length>0){t(9,E++,E),t(8,k=n.map((F,P)=>P).filter(F=>F%(h?2:3)===0).map(F=>n[F]));const D=k.length-1;t(10,p=Math.round(Math.min(1500,D*100)/k.length)),t(11,S=u+1e3+D*p),await it(),L==null||L.beginElement()}}function I(D,F,P){Ge[D?"unshift":"push"](()=>{F[P][4]=D,t(5,v)})}function O(D){Ge[D?"unshift":"push"](()=>{L=D,t(12,L)})}return l.$$set=D=>{"tiles"in D&&t(13,s=D.tiles),"newTiles"in D&&t(14,n=D.newTiles),"animate"in D&&t(0,o=D.animate),"delay"in D&&t(1,u=D.delay),"landscapeWidth"in D&&t(15,f=D.landscapeWidth),"landscapeHeight"in D&&t(16,c=D.landscapeHeight),"mini"in D&&t(2,h=D.mini),"forceColor"in D&&t(3,d=D.forceColor)},l.$$.update=()=>{l.$$.dirty&98304&&t(4,i=Ut(f,c)),l.$$.dirty&16&&(r=i*70),l.$$.dirty&8192&&s&&B()},[o,u,h,d,i,v,b,T,k,E,p,S,L,s,n,f,c,y,I,O]}class Xn extends Ne{constructor(e){super(),Ve(this,e,Jn,Yn,Me,{tiles:13,newTiles:14,animate:0,delay:1,landscapeWidth:15,landscapeHeight:16,mini:2,forceColor:3,flashColor:17})}get flashColor(){return this.$$.ctx[17]}}const{Map:Kn}=Os;function El(l){const e=l.slice(),t=e[11];return e[36]=t[0],e[37]=t[1],e}function Ii(l,e,t){const i=l.slice();return i[38]=e[t],i[39]=e,i[40]=t,i}function Zn(l){let e,t=l[40],i;const r=()=>l[23](e,t),s=()=>l[23](null,t);let n={id:l[38].id,x:l[38].x,y:l[38].y,xJitter:l[38].xJitter,yJitter:l[38].yJitter,size:l[38].size,mini:l[3].mini,animate:l[7],delay:l[38].delay,mouseOver:l[13],mouseX:l[14],mouseY:l[15],forceColor:l[16]};return e=new Un({props:n}),r(),{c(){me(e.$$.fragment)},l(o){we(e.$$.fragment,o)},m(o,u){ge(e,o,u),i=!0},p(o,u){t!==o[40]&&(s(),t=o[40],r());const f={};u[0]&8&&(f.id=o[38].id),u[0]&8&&(f.x=o[38].x),u[0]&8&&(f.y=o[38].y),u[0]&8&&(f.xJitter=o[38].xJitter),u[0]&8&&(f.yJitter=o[38].yJitter),u[0]&8&&(f.size=o[38].size),u[0]&8&&(f.mini=o[3].mini),u[0]&128&&(f.animate=o[7]),u[0]&8&&(f.delay=o[38].delay),u[0]&8192&&(f.mouseOver=o[13]),u[0]&16384&&(f.mouseX=o[14]),u[0]&32768&&(f.mouseY=o[15]),u[0]&65536&&(f.forceColor=o[16]),e.$set(f)},i(o){i||(A(e.$$.fragment,o),i=!0)},o(o){R(e.$$.fragment,o),i=!1},d(o){s(),ve(e,o)}}}function Qn(l){let e,t=l[40],i;const r=()=>l[22](e,t),s=()=>l[22](null,t);let n={id:l[38].id,x:l[38].x,y:l[38].y,xJitter:l[38].xJitter,yJitter:l[38].yJitter,size:l[38].size,animate:l[7],delay:l[38].delay,mouseOver:l[13],mouseX:l[14],mouseY:l[15],forceColor:l[16]};return e=new Rn({props:n}),r(),{c(){me(e.$$.fragment)},l(o){we(e.$$.fragment,o)},m(o,u){ge(e,o,u),i=!0},p(o,u){t!==o[40]&&(s(),t=o[40],r());const f={};u[0]&8&&(f.id=o[38].id),u[0]&8&&(f.x=o[38].x),u[0]&8&&(f.y=o[38].y),u[0]&8&&(f.xJitter=o[38].xJitter),u[0]&8&&(f.yJitter=o[38].yJitter),u[0]&8&&(f.size=o[38].size),u[0]&128&&(f.animate=o[7]),u[0]&8&&(f.delay=o[38].delay),u[0]&8192&&(f.mouseOver=o[13]),u[0]&16384&&(f.mouseX=o[14]),u[0]&32768&&(f.mouseY=o[15]),u[0]&65536&&(f.forceColor=o[16]),e.$set(f)},i(o){i||(A(e.$$.fragment,o),i=!0)},o(o){R(e.$$.fragment,o),i=!1},d(o){s(),ve(e,o)}}}function Si(l,e){let t,i,r,s,n;const o=[Qn,Zn],u=[];function f(c,h){return c[38].type==="tree"?0:1}return i=f(e),r=u[i]=o[i](e),{key:l,first:null,c(){t=_e(),r.c(),s=_e(),this.h()},l(c){t=_e(),r.l(c),s=_e(),this.h()},h(){this.first=t},m(c,h){N(c,t,h),u[i].m(c,h),N(c,s,h),n=!0},p(c,h){e=c;let d=i;i=f(e),i===d?u[i].p(e,h):(Te(),R(u[d],1,1,()=>{u[d]=null}),Ie(),r=u[i],r?r.p(e,h):(r=u[i]=o[i](e),r.c()),A(r,1),r.m(s.parentNode,s))},i(c){n||(A(r),n=!0)},o(c){R(r),n=!1},d(c){c&&_(t),u[i].d(c),c&&_(s)}}}function Di(l){let e,t=[],i=new Kn,r,s,n={tiles:l[3].pondTiles,newTiles:l[3].newPondTiles,animate:l[7],delay:l[3].pondDelay||0,landscapeWidth:l[3].width,landscapeHeight:l[3].height,mini:l[3].mini,forceColor:l[16]};e=new Xn({props:n}),l[21](e);let o=l[3].features;const u=f=>f[38].id;for(let f=0;fl[26].call(e))},m(v,m){N(v,e,m),g(e,t),h.m(t,null),g(t,r),d&&d.m(t,null),l[25](t),o=Ur(e,l[26].bind(e)),u=!0,f||(c=[de(t,"pointerdown",l[18]),de(t,"pointermove",l[19]),de(t,"mouseleave",l[20])],f=!0)},p(v,m){m[0]&256&&Me(i,i=v[8])?(Te(),R(h,1,1,ce),Ie(),h=Di(v),h.c(),A(h,1),h.m(t,r)):h.p(v,m),v[11]?d?d.p(El(v),m):(d=Ci(El(v)),d.c(),d.m(t,null)):d&&(d.d(1),d=null),(!u||m[0]&16)&&a(t,"width",v[4]),(!u||m[0]&32)&&a(t,"height",v[5]),(!u||m[0]&8&&s!==(s="-0.1 -0.1 "+(v[3].width*1.5+.2)+" "+(v[3].height+.2)))&&a(t,"viewBox",s),m[0]&64&&fe(t,"display",v[6]?"none":"block"),m[0]&18&&n!==(n=`${Math.floor((v[1]-v[4])/2)}px`)&&fe(t,"left",n)},i(v){u||(A(h),u=!0)},o(v){R(h),u=!1},d(v){v&&_(e),h.d(v),d&&d.d(),l[25](null),o(),f=!1,$e(c)}}}const xn=240,ea=170;function ta(l,e,t){let i,r;const{landscapeForceColor:s}=Bt;Ee(l,s,Y=>t(16,r=Y));let n=!0,o,u,f,c=0,h=0,d=!1,v=!1,m=!0,y=0,b={width:0,height:0,centerX:0,centerY:0,rowsGenerated:0,features:[],tileMap:new Map,openTiles:new Map,pondTiles:[],newPondTiles:[],nextID:1,totalDelay:0};function T(Y,ue){const x=ue/(Y/1.5);let re=ue/Math.sqrt(xn*x);t(3,b.mini=!1,b),re<12&&(re=ue/Math.sqrt(ea*x),t(3,b.mini=!0,b));const ke=re*1.5,z=Math.floor(Y/ke),ie=Math.floor(ue/re);z===b.width&&ie===b.height||(t(3,b.width=z,b),t(3,b.height=ie,b),t(3,b.centerX=Math.floor(z/2),b),t(3,b.centerY=Math.floor(ie/2),b),t(4,c=Math.ceil(z*ke)),t(5,h=Math.ceil(ie*re)),t(7,v=!1),t(8,y++,y),k(),E())}function k(){t(3,b.rowsGenerated=0,b),b.openTiles.clear(),b.tileMap.clear(),t(3,b.features.length=0,b),t(3,b.pondTiles.length=0,b),t(3,b.newPondTiles.length=0,b),t(3,b.nextID=1,b),t(3,b.pondDelay=void 0,b)}function E(){if(n||!b.width)return;const Y=be(Pl);if(Y===0){b.rowsGenerated>0&&k();return}(m||b.rowsGenerated>0)&&(m=!1,t(7,v=!0)),be(kl)&&(t(7,v=!0),kl.set(!1)),Y!==b.rowsGenerated&&(t(3,b=jn(b,be(dl),be(Zr),Y)),Qr.set(b),t(6,d=!1))}xl.subscribe(Y=>{!Y||(n=!1,xl.set(!1),m=!0,t(8,y++,y),k(),be(ei)||E())}),ti.subscribe(Y=>{!Y||(ti.set(!1),E())}),kl.subscribe(Y=>{!Y||(m=!0,t(8,y++,y),k(),E())}),ei.subscribe(()=>t(6,d=!0));const p=[];let S;function L({offsetX:Y,offsetY:ue}){t(14,U=-.1+Y/c*(b.width*1.5+.2)),t(15,G=-.1+ue/h*(b.height+.2))}let B=0,I=0,O=null,D;const F=Y=>{if(Y.pointerType==="mouse"&&Y.button!==0)return;L(Y);const ue=Date.now();I=Math.max(0,Math.min(3500,I+B+250-ue)),t(11,O=[U,G]),it().then(()=>D==null?void 0:D.beginElement());const x=i*70+I;p.forEach(re=>re==null?void 0:re.flashColor(U,G,x)),S.flashColor(U,G,x),B=ue};let P=!1,U,G;function M(Y){Y.pointerType!=="touch"&&(t(13,P=!0),L(Y))}const V=()=>t(13,P=!1);function J(Y){Ge[Y?"unshift":"push"](()=>{S=Y,t(10,S)})}function X(Y,ue){Ge[Y?"unshift":"push"](()=>{p[ue]=Y,t(9,p)})}function Q(Y,ue){Ge[Y?"unshift":"push"](()=>{p[ue]=Y,t(9,p)})}function Z(Y){Ge[Y?"unshift":"push"](()=>{D=Y,t(12,D)})}function $(Y){Ge[Y?"unshift":"push"](()=>{o=Y,t(0,o)})}function K(){u=this.clientWidth,f=this.clientHeight,t(1,u),t(2,f)}return l.$$.update=()=>{l.$$.dirty[0]&6&&u&&f&&T(u,f),l.$$.dirty[0]&8&&(i=Ut(b.width+3,b.height+3)),l.$$.dirty[0]&1&&o&&Rs.set(o)},[o,u,f,b,c,h,d,v,y,p,S,O,D,P,U,G,r,s,F,M,V,J,X,Q,Z,$,K]}class la extends Ne{constructor(e){super(),Ve(this,e,ta,$n,Me,{},null,[-1,-1])}}function ia(l){let e,t,i,r,s=l[0].letter&&Mi(l),n=l[0].letterBounds&&!l[0].letter&&l[2]&&Li(l);return{c(){e=H("div"),s&&s.c(),t=ee(),n&&n.c(),this.h()},l(o){e=j(o,"DIV",{class:!0});var u=w(e);s&&s.l(u),t=te(u),n&&n.l(u),u.forEach(_),this.h()},h(){a(e,"class","tile svelte-1o605k6"),oe(e,"filled",l[0].letter!==""),oe(e,"current",l[1]),oe(e,"before-pre",!l[0].scored&&l[0].polarity<0),oe(e,"after-pre",!l[0].scored&&l[0].polarity>0),oe(e,"finished",l[9]),oe(e,"clickable",l[3]),oe(e,"invalid",l[10]&&l[3])},m(o,u){N(o,e,u),s&&s.m(e,null),g(e,t),n&&n.m(e,null),r=!0},p(o,u){l=o,l[0].letter?s?(s.p(l,u),u&1&&A(s,1)):(s=Mi(l),s.c(),A(s,1),s.m(e,t)):s&&(s.d(1),s=null),l[0].letterBounds&&!l[0].letter&&l[2]?n?n.p(l,u):(n=Li(l),n.c(),n.m(e,null)):n&&(n.d(1),n=null),(!r||u&1)&&oe(e,"filled",l[0].letter!==""),(!r||u&2)&&oe(e,"current",l[1]),(!r||u&1)&&oe(e,"before-pre",!l[0].scored&&l[0].polarity<0),(!r||u&1)&&oe(e,"after-pre",!l[0].scored&&l[0].polarity>0),(!r||u&512)&&oe(e,"finished",l[9]),(!r||u&8)&&oe(e,"clickable",l[3]),(!r||u&1032)&&oe(e,"invalid",l[10]&&l[3])},i(o){r||(A(s),i&&i.end(1),r=!0)},o(o){o&&(i=jl(e,An,{delay:l[5]+Nl*.6,duration:0})),r=!1},d(o){o&&_(e),s&&s.d(),n&&n.d(),o&&i&&i.end()}}}function ra(l){let e,t,i,r,s=l[0].letter+"",n;return{c(){e=H("div"),t=H("div"),i=ee(),r=H("div"),n=se(s),this.h()},l(o){e=j(o,"DIV",{class:!0});var u=w(e);t=j(u,"DIV",{class:!0}),w(t).forEach(_),i=te(u),r=j(u,"DIV",{class:!0});var f=w(r);n=ne(f,s),f.forEach(_),u.forEach(_),this.h()},h(){a(t,"class","tile-background svelte-1o605k6"),a(r,"class","tile scored filled svelte-1o605k6"),a(e,"class","tile-clip svelte-1o605k6")},m(o,u){N(o,e,u),g(e,t),g(e,i),g(e,r),g(r,n)},p(o,u){u&1&&s!==(s=o[0].letter+"")&&he(n,s)},i:ce,o:ce,d(o){o&&_(e)}}}function Mi(l){let e,t=l[0].letter+"",i,r;return{c(){e=H("div"),i=se(t)},l(s){e=j(s,"DIV",{});var n=w(e);i=ne(n,t),n.forEach(_)},m(s,n){N(s,e,n),g(e,i)},p(s,n){l=s,n&1&&t!==(t=l[0].letter+"")&&he(i,t)},i(s){r||ct(()=>{r=Ns(e,Pn,l[11]),r.start()})},o:ce,d(s){s&&_(e)}}}function Li(l){let e,t=l[0].letterBounds[0]+"",i,r,s=l[0].letterBounds[0]!==l[0].letterBounds[1]&&Oi(l);return{c(){e=H("span"),i=se(t),r=ee(),s&&s.c(),this.h()},l(n){e=j(n,"SPAN",{class:!0});var o=w(e);i=ne(o,t),r=te(o),s&&s.l(o),o.forEach(_),this.h()},h(){a(e,"class","hint svelte-1o605k6")},m(n,o){N(n,e,o),g(e,i),g(e,r),s&&s.m(e,null)},p(n,o){o&1&&t!==(t=n[0].letterBounds[0]+"")&&he(i,t),n[0].letterBounds[0]!==n[0].letterBounds[1]?s?s.p(n,o):(s=Oi(n),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(n){n&&_(e),s&&s.d()}}}function Oi(l){let e,t,i=l[0].letterBounds[1]+"",r;return{c(){e=H("span"),t=se("..."),r=se(i),this.h()},l(s){e=j(s,"SPAN",{class:!0});var n=w(e);t=ne(n,"..."),n.forEach(_),r=ne(s,i),this.h()},h(){a(e,"class","small svelte-1o605k6")},m(s,n){N(s,e,n),g(e,t),N(s,r,n)},p(s,n){n&1&&i!==(i=s[0].letterBounds[1]+"")&&he(r,i)},d(s){s&&_(e),s&&_(r)}}}function sa(l){let e,t,i,r,s,n,o,u;const f=[ra,ia],c=[];function h(m,y){return m[0].scored?0:1}t=h(l),i=c[t]=f[t](l);const d=l[13].default,v=bt(d,l,l[12],null);return{c(){e=H("div"),i.c(),r=ee(),v&&v.c(),this.h()},l(m){e=j(m,"DIV",{class:!0,style:!0});var y=w(e);i.l(y),r=te(y),v&&v.l(y),y.forEach(_),this.h()},h(){a(e,"class","tile-container svelte-1o605k6"),a(e,"style",s=`animation-delay: ${l[0].id*(l[7]||l[8]?20:0)}ms; --tile-animation-delay: ${l[5]}ms; --tile-animation-duration: ${Nl}ms;`),oe(e,"correct",l[0].scored&&l[0].distance===0),oe(e,"before",l[0].distance<0),oe(e,"after",l[0].distance>0),oe(e,"animate",l[4]),oe(e,"shimmy",l[6]&&l[3]),oe(e,"shake",l[3]&&(l[7]&&!l[0].letter||l[8]&&l[0].letter&&l[0].letterBounds&&(l[0].letterl[0].letterBounds[1])))},m(m,y){N(m,e,y),c[t].m(e,null),g(e,r),v&&v.m(e,null),n=!0,o||(u=de(e,"click",l[14]),o=!0)},p(m,[y]){let b=t;t=h(m),t===b?c[t].p(m,y):(Te(),R(c[b],1,1,()=>{c[b]=null}),Ie(),i=c[t],i?i.p(m,y):(i=c[t]=f[t](m),i.c()),A(i,1),i.m(e,r)),v&&v.p&&(!n||y&4096)&&pt(v,d,m,m[12],n?wt(d,m[12],y,null):kt(m[12]),null),(!n||y&417&&s!==(s=`animation-delay: ${m[0].id*(m[7]||m[8]?20:0)}ms; --tile-animation-delay: ${m[5]}ms; --tile-animation-duration: ${Nl}ms;`))&&a(e,"style",s),(!n||y&1)&&oe(e,"correct",m[0].scored&&m[0].distance===0),(!n||y&1)&&oe(e,"before",m[0].distance<0),(!n||y&1)&&oe(e,"after",m[0].distance>0),(!n||y&16)&&oe(e,"animate",m[4]),(!n||y&72)&&oe(e,"shimmy",m[6]&&m[3]),(!n||y&393)&&oe(e,"shake",m[3]&&(m[7]&&!m[0].letter||m[8]&&m[0].letter&&m[0].letterBounds&&(m[0].letterm[0].letterBounds[1])))},i(m){n||(A(i),A(v,m),n=!0)},o(m){R(i),R(v,m),n=!1},d(m){m&&_(e),c[t].d(),v&&v.d(m),o=!1,u()}}}const Nl=500;function na(l,e,t){let i,r,s,n,o,u;Ee(l,Ws,k=>t(6,r=k)),Ee(l,qs,k=>t(7,s=k)),Ee(l,Us,k=>t(8,n=k)),Ee(l,$r,k=>t(9,o=k)),Ee(l,Ys,k=>t(10,u=k));let{$$slots:f={},$$scope:c}=e,{tile:h}=e,{current:d=!1}=e,{showHint:v=!1}=e,{inCurrentRow:m=!1}=e,y=!h.scored;Pl.subscribe(()=>t(4,y=!h.scored));const b={duration:100,from:"bottom",easing:Ml},T=()=>m&&xr.set(h.id);return l.$$set=k=>{"tile"in k&&t(0,h=k.tile),"current"in k&&t(1,d=k.current),"showHint"in k&&t(2,v=k.showHint),"inCurrentRow"in k&&t(3,m=k.inCurrentRow),"$$scope"in k&&t(12,c=k.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&t(5,i=h.id*150)},[h,d,v,m,y,i,r,s,n,o,u,b,c,f,T]}class St extends Ne{constructor(e){super(),Ve(this,e,na,sa,Me,{tile:0,current:1,showHint:2,inCurrentRow:3})}}const aa=l=>({}),Ni=l=>({}),oa=l=>({}),Vi=l=>({});function Hi(l){let e,t,i,r=(l[5]?l[4]:"")+"",s,n,o=(l[5]?":"+l[9](l[6]):l[6])+"",u,f,c=l[9](l[7])+"",h,d=l[1]>0?`.${l[8]}`:"",v,m,y;const b=l[17].title,T=bt(b,l,l[16],Vi);return{c(){T&&T.c(),e=ee(),t=H("span"),i=H("span"),s=se(r),n=H("span"),u=se(o),f=se(":"),h=se(c),v=se(d),this.h()},l(k){T&&T.l(k),e=te(k),t=j(k,"SPAN",{class:!0});var E=w(t);i=j(E,"SPAN",{class:!0});var p=w(i);s=ne(p,r),p.forEach(_),n=j(E,"SPAN",{class:!0});var S=w(n);u=ne(S,o),S.forEach(_),f=ne(E,":"),h=ne(E,c),v=ne(E,d),E.forEach(_),this.h()},h(){a(i,"class","svelte-xk7l05"),oe(i,"fade",l[0]&&l[4]===0),a(n,"class","svelte-xk7l05"),oe(n,"fade",l[0]&&l[6]===0&&l[4]===0),a(t,"class",m=tl(l[11].class)+" svelte-xk7l05")},m(k,E){T&&T.m(k,E),N(k,e,E),N(k,t,E),g(t,i),g(i,s),g(t,n),g(n,u),g(t,f),g(t,h),g(t,v),l[18](t),y=!0},p(k,E){T&&T.p&&(!y||E&65536)&&pt(T,b,k,k[16],y?wt(b,k[16],E,oa):kt(k[16]),Vi),(!y||E&48)&&r!==(r=(k[5]?k[4]:"")+"")&&he(s,r),(!y||E&17)&&oe(i,"fade",k[0]&&k[4]===0),(!y||E&96)&&o!==(o=(k[5]?":"+k[9](k[6]):k[6])+"")&&he(u,o),(!y||E&81)&&oe(n,"fade",k[0]&&k[6]===0&&k[4]===0),(!y||E&128)&&c!==(c=k[9](k[7])+"")&&he(h,c),(!y||E&258)&&d!==(d=k[1]>0?`.${k[8]}`:"")&&he(v,d),(!y||E&2048&&m!==(m=tl(k[11].class)+" svelte-xk7l05"))&&a(t,"class",m)},i(k){y||(A(T,k),y=!0)},o(k){R(T,k),y=!1},d(k){T&&T.d(k),k&&_(e),k&&_(t),l[18](null)}}}function ji(l){let e;const t=l[17]["after-countdown"],i=bt(t,l,l[16],Ni);return{c(){i&&i.c()},l(r){i&&i.l(r)},m(r,s){i&&i.m(r,s),e=!0},p(r,s){i&&i.p&&(!e||s&65536)&&pt(i,t,r,r[16],e?wt(t,r[16],s,aa):kt(r[16]),Ni)},i(r){e||(A(i,r),e=!0)},o(r){R(i,r),e=!1},d(r){i&&i.d(r)}}}function ua(l){let e,t,i,r=(!l[10]||l[3]>0)&&Hi(l),s=l[10]&&l[3]<=0&&ji(l);return{c(){r&&r.c(),e=ee(),s&&s.c(),t=_e()},l(n){r&&r.l(n),e=te(n),s&&s.l(n),t=_e()},m(n,o){r&&r.m(n,o),N(n,e,o),s&&s.m(n,o),N(n,t,o),i=!0},p(n,[o]){!n[10]||n[3]>0?r?(r.p(n,o),o&8&&A(r,1)):(r=Hi(n),r.c(),A(r,1),r.m(e.parentNode,e)):r&&(Te(),R(r,1,1,()=>{r=null}),Ie()),n[10]&&n[3]<=0?s?(s.p(n,o),o&8&&A(s,1)):(s=ji(n),s.c(),A(s,1),s.m(t.parentNode,t)):s&&(Te(),R(s,1,1,()=>{s=null}),Ie())},i(n){i||(A(r),A(s),i=!0)},o(n){R(r),R(s),i=!1},d(n){r&&r.d(n),n&&_(e),s&&s.d(n),n&&_(t)}}}function fa(l,e,t){let i,r,s,n,o,{$$slots:u={},$$scope:f}=e,{mode:c="static"}=e,{ms:h}=e,{alwaysShowHours:d=!1}=e,{dimming:v=!0}=e,{decimals:m=0}=e,{timeString:y=""}=e,b;const T=I=>I.toString().padStart(2,"0"),k=60*1e3,E=k*60;let p=c==="countdown",S=p?h-Date.now():h,L;p&&S>0&&(L=setInterval(()=>{t(3,S=h-Date.now())},1e3)),Yr(()=>{clearInterval(L)});function B(I){Ge[I?"unshift":"push"](()=>{b=I,t(2,b)})}return l.$$set=I=>{t(11,e=rt(rt({},e),ll(I))),"mode"in I&&t(13,c=I.mode),"ms"in I&&t(14,h=I.ms),"alwaysShowHours"in I&&t(15,d=I.alwaysShowHours),"dimming"in I&&t(0,v=I.dimming),"decimals"in I&&t(1,m=I.decimals),"timeString"in I&&t(12,y=I.timeString),"$$scope"in I&&t(16,f=I.$$scope)},l.$$.update=()=>{l.$$.dirty&4&&t(12,y=b==null?void 0:b.innerText),l.$$.dirty&16386&&t(8,i=Math.floor(h%1e3/10**(3-m)).toString().padStart(m,"0")),l.$$.dirty&8&&t(7,r=Math.floor(S/1e3)%60),l.$$.dirty&8&&t(6,s=Math.floor(S/k)%60),l.$$.dirty&8&&t(4,n=Math.floor(S/E)),l.$$.dirty&32784&&t(5,o=n>0||d)},e=ll(e),[v,m,b,S,n,o,s,r,i,T,p,e,y,c,h,d,f,u,B]}class Dt extends Ne{constructor(e){super(),Ve(this,e,fa,ua,Me,{mode:13,ms:14,alwaysShowHours:15,dimming:0,decimals:1,timeString:12})}}function Bi(l,e,t){const i=l.slice();return i[9]=e[t],i[10]=e,i[11]=t,i}function Pi(l,e,t){const i=l.slice();return i[12]=e[t],i[14]=t,i}function Ai(l){let e,t=l[12].toUpperCase()+"",i,r;return{c(){e=H("div"),i=se(t),r=ee(),this.h()},l(s){e=j(s,"DIV",{class:!0});var n=w(e);i=ne(n,t),r=te(n),n.forEach(_),this.h()},h(){a(e,"class","guess-letter svelte-y96qil"),oe(e,"before",l[12]l[0].answer[l[14]])},m(s,n){N(s,e,n),g(e,i),g(e,r)},p(s,n){n&1&&t!==(t=s[12].toUpperCase()+"")&&he(i,t),n&1&&oe(e,"before",s[12]s[0].answer[s[14]])},d(s){s&&_(e)}}}function Gi(l){let e,t,i,r,s,n,o,u,f,c=l[9],h=[];for(let m=0;mRt(n,"timeString",d)),{c(){e=H("tr"),t=H("td"),i=H("div");for(let m=0;mo=!1)),n.$set(b)},i(m){f||(A(n.$$.fragment,m),f=!0)},o(m){R(n.$$.fragment,m),f=!1},d(m){m&&_(e),lt(h,m),ve(n)}}}function Fi(l){let e,t=l[5]("main.messages.new_best")+"",i;return{c(){e=H("div"),i=se(t),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"class","new-tag svelte-y96qil")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s&32&&t!==(t=r[5]("main.messages.new_best")+"")&&he(i,t)},d(r){r&&_(e)}}}function ca(l){let e,t,i,r,s=l[3]?`${l[5]("main.results.win")} \u{1F389}`:`${l[5]("main.results.lose")} \u2639\uFE0F`,n,o,u,f,c,h=l[0].answer.toUpperCase()+"",d,v,m=l[5]("main.summary.answer")+"",y,b,T,k,E,p,S,L=l[5]("main.summary.total_time")+"",B,I,O,D,F=l[0].guesses,P=[];for(let J=0;JR(P[J],1,1,()=>{P[J]=null});function G(J){l[8](J)}let M={ms:l[0].guessTimes[l[0].guessTimes.length-1]-l[0].guessTimes[0],decimals:l[4]?2:0};l[1]!==void 0&&(M.timeString=l[1]),E=new Dt({props:M}),Ge.push(()=>Rt(E,"timeString",G));let V=l[0].fastest&&Fi(l);return{c(){e=H("section"),t=H("table");for(let J=0;Jp=!1)),E.$set(Q),(!D||X&32)&&L!==(L=l[5]("main.summary.total_time")+"")&&he(B,L),l[0].fastest?V?V.p(l,X):(V=Fi(l),V.c(),V.m(T,null)):V&&(V.d(1),V=null)},i(J){if(!D){for(let X=0;X{!D||(O||(O=et(e,ot,{duration:250,easing:vt},!0)),O.run(1))}),D=!0}},o(J){P=P.filter(Boolean);for(let X=0;Xt(5,s=d));const{preciseTimes:n}=Bt;Ee(l,n,d=>t(4,r=d));let{lastGameDetail:o}=e,u,f=[];function c(d,v){l.$$.not_equal(f[v],d)&&(f[v]=d,t(2,f))}function h(d){u=d,t(1,u)}return l.$$set=d=>{"lastGameDetail"in d&&t(0,o=d.lastGameDetail)},l.$$.update=()=>{l.$$.dirty&2&&Il.set(u),l.$$.dirty&4&&Sl.set(f),l.$$.dirty&1&&t(3,i=o.guesses[o.guesses.length-1]===o.answer)},[o,u,f,i,r,s,n,c,h]}class _a extends Ne{constructor(e){super(),Ve(this,e,ha,ca,Me,{lastGameDetail:0})}}function zi(l){let e,t,i,r,s,n,o,u,f,c;return{c(){e=W("path"),t=W("animate"),o=W("animate"),this.h()},l(h){e=q(h,"path",{fill:!0});var d=w(e);t=q(d,"animate",{id:!0,attributeName:!0,values:!0,dur:!0,keyTimes:!0,calcMode:!0,keySplines:!0,fill:!0,begin:!0}),w(t).forEach(_),o=q(d,"animate",{attributeName:!0,values:!0,dur:!0,keyTimes:!0,calcMode:!0,keySplines:!0,fill:!0,begin:!0}),w(o).forEach(_),d.forEach(_),this.h()},h(){a(t,"id",i="drip_animate_"+l[0]+"_"+l[1]),a(t,"attributeName","d"),a(t,"values",r="M"+l[3]+" "+(9.8-l[4])+" a 0.1 0.1 0 1 0 0.1 0;M"+l[3]+" "+(10-l[4])+" a "+l[4]*.9+" "+l[4]*.9+" 0 1 0 0.1 0;M"+l[3]+" 16 a "+l[4]*.7+" "+l[4]*1.6+" 0 1 0 0.1 0"),a(t,"dur",s=l[6]+"ms"),a(t,"keyTimes",n="0;"+l[5]/l[6]+";1"),a(t,"calcMode","spline"),a(t,"keySplines","0.34 1 0.64 1;1 0 0.9 0"),a(t,"fill","freeze"),a(t,"begin","indefinite"),a(o,"attributeName","opacity"),a(o,"values","1;1;0"),a(o,"dur",u=l[6]+"ms"),a(o,"keyTimes",f="0;"+(1-200/l[6])+";1"),a(o,"calcMode","spline"),a(o,"keySplines","0 0 0 0;0.32 0 0.67 0"),a(o,"fill","freeze"),a(o,"begin",c="drip_animate_"+l[0]+"_"+l[1]+".begin"),a(e,"fill","var(--after-color)")},m(h,d){N(h,e,d),g(e,t),l[8](t),g(e,o)},p(h,d){d&3&&i!==(i="drip_animate_"+h[0]+"_"+h[1])&&a(t,"id",i),d&24&&r!==(r="M"+h[3]+" "+(9.8-h[4])+" a 0.1 0.1 0 1 0 0.1 0;M"+h[3]+" "+(10-h[4])+" a "+h[4]*.9+" "+h[4]*.9+" 0 1 0 0.1 0;M"+h[3]+" 16 a "+h[4]*.7+" "+h[4]*1.6+" 0 1 0 0.1 0")&&a(t,"values",r),d&64&&s!==(s=h[6]+"ms")&&a(t,"dur",s),d&96&&n!==(n="0;"+h[5]/h[6]+";1")&&a(t,"keyTimes",n),d&64&&u!==(u=h[6]+"ms")&&a(o,"dur",u),d&64&&f!==(f="0;"+(1-200/h[6])+";1")&&a(o,"keyTimes",f),d&3&&c!==(c="drip_animate_"+h[0]+"_"+h[1]+".begin")&&a(o,"begin",c)},d(h){h&&_(e),l[8](null)}}}function da(l){let e,t,i,r=l[6]&&zi(l);return{c(){e=W("svg"),r&&r.c(),this.h()},l(s){e=q(s,"svg",{xmlns:!0,viewBox:!0,width:!0,height:!0,class:!0});var n=w(e);r&&r.l(n),n.forEach(_),this.h()},h(){a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 10 10"),a(e,"width","100%"),a(e,"height","100%"),a(e,"class","svelte-189wv79")},m(s,n){N(s,e,n),r&&r.m(e,null),i=!0},p(s,[n]){l=s,l[6]?r?r.p(l,n):(r=zi(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},i(s){i||(t&&t.end(1),i=!0)},o(s){t=jl(e,ot,{delay:l[7]?150*l[1]:0,duration:l[7]?400:0,easing:dn}),i=!1},d(s){s&&_(e),r&&r.d(),s&&t&&t.end()}}}function ma(l,e,t){let i;Ee(l,Pl,m=>t(7,i=m));let{rowID:r}=e,{tileID:s}=e,n,o,u,f,c;async function h(){t(3,o=3+Math.random()*4),t(4,u=.8+Math.random()*.4),t(5,f=800+Math.floor(u*1e3)),t(6,c=f+900);const m=100+Math.floor(Math.random()*2e3);await it(),n.beginElement(),d=setTimeout(h,m+c)}let d;tt(()=>(d=setTimeout(h,500+Math.floor(Math.random()*500)),()=>clearTimeout(d)));function v(m){Ge[m?"unshift":"push"](()=>{n=m,t(2,n)})}return l.$$set=m=>{"rowID"in m&&t(0,r=m.rowID),"tileID"in m&&t(1,s=m.tileID)},[r,s,n,o,u,f,c,i,v]}class ga extends Ne{constructor(e){super(),Ve(this,e,ma,da,Me,{rowID:0,tileID:1})}}function Ri(l,e,t){const i=l.slice();return i[34]=e[t],i[36]=t,i}function Wi(l,e,t){const i=l.slice();return i[37]=e[t],i[39]=t,i}function va(l){let e,t;return{c(){e=H("div"),t=se("loading..."),this.h()},l(i){e=j(i,"DIV",{class:!0});var r=w(e);t=ne(r,"loading..."),r.forEach(_),this.h()},h(){a(e,"class","loading svelte-skbzlh")},m(i,r){N(i,e,r),g(e,t)},p:ce,i:ce,o:ce,d(i){i&&_(e)}}}function ba(l){let e,t,i,r=!l[4]&&qi(l),s=!l[14]&&Qi(l);return{c(){r&&r.c(),e=ee(),s&&s.c(),t=_e()},l(n){r&&r.l(n),e=te(n),s&&s.l(n),t=_e()},m(n,o){r&&r.m(n,o),N(n,e,o),s&&s.m(n,o),N(n,t,o),i=!0},p(n,o){n[4]?r&&(Te(),R(r,1,1,()=>{r=null}),Ie()):r?(r.p(n,o),o[0]&16&&A(r,1)):(r=qi(n),r.c(),A(r,1),r.m(e.parentNode,e)),n[14]?s&&(Te(),R(s,1,1,()=>{s=null}),Ie()):s?(s.p(n,o),o[0]&16384&&A(s,1)):(s=Qi(n),s.c(),A(s,1),s.m(t.parentNode,t))},i(n){i||(A(r),A(s),i=!0)},o(n){R(r),R(s),i=!1},d(n){r&&r.d(n),n&&_(e),s&&s.d(n),n&&_(t)}}}function qi(l){let e,t,i,r;const s=[ka,pa],n=[];function o(u,f){return!u[5]||!u[6]||!u[7]?0:1}return t=o(l),i=n[t]=s[t](l),{c(){e=H("div"),i.c(),this.h()},l(u){e=j(u,"DIV",{class:!0});var f=w(e);i.l(f),f.forEach(_),this.h()},h(){a(e,"class","board svelte-skbzlh")},m(u,f){N(u,e,f),n[t].m(e,null),r=!0},p(u,f){let c=t;t=o(u),t===c?n[t].p(u,f):(Te(),R(n[c],1,1,()=>{n[c]=null}),Ie(),i=n[t],i?i.p(u,f):(i=n[t]=s[t](u),i.c()),A(i,1),i.m(e,null))},i(u){r||(A(i),r=!0)},o(u){R(i),r=!1},d(u){u&&_(e),n[t].d()}}}function pa(l){let e=l[13],t,i,r=Ui(l);return{c(){r.c(),t=_e()},l(s){r.l(s),t=_e()},m(s,n){r.m(s,n),N(s,t,n),i=!0},p(s,n){n[0]&8192&&Me(e,e=s[13])?(Te(),R(r,1,1,ce),Ie(),r=Ui(s),r.c(),A(r,1),r.m(t.parentNode,t)):r.p(s,n)},i(s){i||(A(r),i=!0)},o(s){R(r),i=!1},d(s){s&&_(t),r.d(s)}}}function ka(l){let e,t,i,r=l[8],s=[];for(let o=0;oR(s[o],1,1,()=>{s[o]=null});return{c(){e=H("div");for(let o=0;o{!i||(t||(t=et(e,ot,{duration:l[1],easing:vt},!0)),t.run(1))}),i=!0}},o(o){s=s.filter(Boolean);for(let u=0;uimport("./Idler-1fae21a5.js"),["chunks/Idler-1fae21a5.js","assets/Idler-8eb7dc94.css","chunks/index-0dc809ca.js","chunks/idle-scheduler-0931800a.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js"]),i),{c(){e=_e(),i.block.c()},l(r){e=_e(),i.block.l(r)},m(r,s){N(r,e,s),i.block.m(r,i.anchor=s),i.mount=()=>e.parentNode,i.anchor=e,t=!0},p(r,s){l=r,Vs(i,l,s)},i(r){t||(A(i.block),t=!0)},o(r){for(let s=0;s<3;s+=1){const n=i.blocks[s];R(n)}t=!1},d(r){r&&_(e),i.block.d(r),i.token=null,i=null}}}function wa(l){return{c:ce,l:ce,m:ce,p:ce,i:ce,o:ce,d:ce}}function ya(l){let e,t,i;var r=l[40].default;function s(n){return{props:{id:n[36]+":"+n[39]}}}return r&&(e=Ue(r,s(l))),{c(){e&&me(e.$$.fragment),t=_e()},l(n){e&&we(e.$$.fragment,n),t=_e()},m(n,o){e&&ge(e,n,o),N(n,t,o),i=!0},p(n,o){const u={};if(o[0]&256&&(u.id=n[36]+":"+n[39]),r!==(r=n[40].default)){if(e){Te();const f=e;R(f.$$.fragment,1,0,()=>{ve(f,1)}),Ie()}r?(e=Ue(r,s(n)),me(e.$$.fragment),A(e.$$.fragment,1),ge(e,t.parentNode,t)):e=null}else r&&e.$set(u)},i(n){i||(e&&A(e.$$.fragment,n),i=!0)},o(n){e&&R(e.$$.fragment,n),i=!1},d(n){n&&_(t),e&&ve(e,n)}}}function Ea(l){return{c:ce,l:ce,m:ce,p:ce,i:ce,o:ce,d:ce}}function Xi(l){let e,t;return e=new ga({props:{rowID:l[36],tileID:l[39]}}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,r){const s={};r[0]&256&&(s.tileID=i[39]),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Ta(l){let e,t,i,r,s=!l[0]&&!l[12][0]&&l[36]===jt-1&&Yi(l),n=l[0]&&l[37].letter===""&&l[36]>l[9]&&Ji(l),o=l[3]&&l[36]===l[9]-1&&l[37].distance>0&&Xi(l);return{c(){s&&s.c(),e=ee(),n&&n.c(),t=ee(),o&&o.c(),i=_e()},l(u){s&&s.l(u),e=te(u),n&&n.l(u),t=te(u),o&&o.l(u),i=_e()},m(u,f){s&&s.m(u,f),N(u,e,f),n&&n.m(u,f),N(u,t,f),o&&o.m(u,f),N(u,i,f),r=!0},p(u,f){!u[0]&&!u[12][0]&&u[36]===jt-1?s?(s.p(u,f),f[0]&4097&&A(s,1)):(s=Yi(u),s.c(),A(s,1),s.m(e.parentNode,e)):s&&(Te(),R(s,1,1,()=>{s=null}),Ie()),u[0]&&u[37].letter===""&&u[36]>u[9]?n?(n.p(u,f),f[0]&769&&A(n,1)):(n=Ji(u),n.c(),A(n,1),n.m(t.parentNode,t)):n&&(Te(),R(n,1,1,()=>{n=null}),Ie()),u[3]&&u[36]===u[9]-1&&u[37].distance>0?o?(o.p(u,f),f[0]&776&&A(o,1)):(o=Xi(u),o.c(),A(o,1),o.m(i.parentNode,i)):o&&(Te(),R(o,1,1,()=>{o=null}),Ie())},i(u){r||(A(s),A(n),A(o),r=!0)},o(u){R(s),R(n),R(o),r=!1},d(u){s&&s.d(u),u&&_(e),n&&n.d(u),u&&_(t),o&&o.d(u),u&&_(i)}}}function Ki(l,e){let t,i,r;return i=new St({props:{tile:e[37],current:e[36]===e[9]&&e[39]===e[10],inCurrentRow:!e[5]&&e[36]===e[9],showHint:!e[5]&&(e[39]===e[10]||e[11]),$$slots:{default:[Ta]},$$scope:{ctx:e}}}),{key:l,first:null,c(){t=_e(),me(i.$$.fragment),this.h()},l(s){t=_e(),we(i.$$.fragment,s),this.h()},h(){this.first=t},m(s,n){N(s,t,n),ge(i,s,n),r=!0},p(s,n){e=s;const o={};n[0]&256&&(o.tile=e[37]),n[0]&1792&&(o.current=e[36]===e[9]&&e[39]===e[10]),n[0]&544&&(o.inCurrentRow=!e[5]&&e[36]===e[9]),n[0]&3360&&(o.showHint=!e[5]&&(e[39]===e[10]||e[11])),n[0]&4877|n[1]&1024&&(o.$$scope={dirty:n,ctx:e}),i.$set(o)},i(s){r||(A(i.$$.fragment,s),r=!0)},o(s){R(i.$$.fragment,s),r=!1},d(s){s&&_(t),ve(i,s)}}}function Zi(l){let e,t=[],i=new Map,r,s,n=l[34];const o=u=>u[36]+"."+u[39];for(let u=0;ut(8,f=$)),Ee(l,T,$=>t(9,c=$)),Ee(l,k,$=>t(10,h=$)),Ee(l,E,$=>t(5,n=$)),Ee(l,p,$=>t(11,d=$)),Ee(l,S,$=>t(12,v=$)),Ee(l,L,$=>t(6,o=$)),Ee(l,B,$=>t(4,s=$)),Ee(l,I,$=>t(7,u=$)),Ee(l,O,$=>t(13,m=$)),Ee(l,D,$=>t(28,r=$)),Ee(l,F,$=>t(14,y=$));let P=!1,U=null,G,M=0;async function V(){if(!be(nl)||U===!1)return;t(0,P=!1),t(2,X=0);const $=++M;if(clearTimeout(G),be(at)===null&&!document.hidden){if(await new Promise(Y=>{G=setTimeout(()=>{Y()},30*1e3)}),$!==M||(U===null&&(U=mi()),!U))return;It("idleBeforeFinish"),(await zt(()=>import("./idle-scheduler-0931800a.js").then(function(Y){return Y.i}),["chunks/idle-scheduler-0931800a.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/index-0dc809ca.js","chunks/preload-helper-5ea9bf72.js"])).initScheduler((jt-be(T))*wl),t(0,P=!0)}}let J=0;tt(()=>{document.addEventListener("visibilitychange",()=>V()),at.subscribe(()=>V()),dl.subscribe(()=>V()),xr.subscribe(()=>V()),it().then(()=>t(1,J=250))}),Yr(()=>{clearTimeout(G),G=void 0});let X=0;async function Q($){!be(nl)||(U===null&&(U=mi()),U&&(X===$?(t(2,X++,X),X===wl&&(It("danceClick"),clearTimeout(G),await it(),(await zt(()=>import("./idle-scheduler-0931800a.js").then(function(Y){return Y.i}),["chunks/idle-scheduler-0931800a.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/index-0dc809ca.js","chunks/preload-helper-5ea9bf72.js"])).initScheduler(5*wl,!0),t(0,P=!0))):t(2,X=0)))}const Z=$=>Q($);return l.$$.update=()=>{l.$$.dirty[0]&268435456&&t(3,i=r&&rs())},[P,J,X,i,s,n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S,L,B,I,O,D,F,Q,r,Z]}class Da extends Ne{constructor(e){super(),Ve(this,e,Sa,Ia,Me,{},null,[-1,-1])}}const Ca=l=>({label:l&2,button:l&1}),$i=l=>({label:l[1],button:l[0]});function Ma(l){let e;const t=l[6].default,i=bt(t,l,l[5],$i);return{c(){i&&i.c()},l(r){i&&i.l(r)},m(r,s){i&&i.m(r,s),e=!0},p(r,[s]){i&&i.p&&(!e||s&35)&&pt(i,t,r,r[5],e?wt(t,r[5],s,Ca):kt(r[5]),$i)},i(r){e||(A(i,r),e=!0)},o(r){R(i,r),e=!1},d(r){i&&i.d(r)}}}function La(l,e,t){let i,r;const s=["id","toggled","disabled"];let n=il(e,s),{$$slots:o={},$$scope:u}=e,{id:f="toggle"+Math.random().toString(36)}=e,{toggled:c=!0}=e,{disabled:h=!1}=e;return l.$$set=d=>{e=rt(rt({},e),ll(d)),t(7,n=il(e,s)),"id"in d&&t(2,f=d.id),"toggled"in d&&t(3,c=d.toggled),"disabled"in d&&t(4,h=d.disabled),"$$scope"in d&&t(5,u=d.$$scope)},l.$$.update=()=>{l.$$.dirty&4&&t(1,i={for:f}),t(0,r=Zt(At({},n),{id:f,disabled:h,"aria-checked":c,type:"button",role:"switch"}))},[r,i,f,c,h,u,o]}class Oa extends Ne{constructor(e){super(),Ve(this,e,La,Ma,Me,{id:2,toggled:3,disabled:4})}}const Na=l=>({toggled:l&1}),xi=l=>({toggled:l[0]});function er(l){let e,t=(l[0]?l[5]:l[6])+"",i;return{c(){e=H("span"),i=se(t),this.h()},l(r){e=j(r,"SPAN",{class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"class","svelte-1y1be9d")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s&97&&t!==(t=(r[0]?r[5]:r[6])+"")&&he(i,t)},d(r){r&&_(e)}}}function Va(l){let e,t=l[5]&&l[6]&&er(l);return{c(){t&&t.c(),e=_e()},l(i){t&&t.l(i),e=_e()},m(i,r){t&&t.m(i,r),N(i,e,r)},p(i,r){i[5]&&i[6]?t?t.p(i,r):(t=er(i),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(i){t&&t.d(i),i&&_(e)}}}function Ha(l){let e,t,i,r,s,n,o,u,f,c,h=[l[19]],d={};for(let k=0;k({19:n,20:o}),({label:n,button:o})=>(n?524288:0)|(o?1048576:0)]},$$scope:{ctx:l}};return l[0]!==void 0&&(s.toggled=l[0]),e=new Oa({props:s}),Ge.push(()=>Rt(e,"toggled",r)),{c(){me(e.$$.fragment)},l(n){we(e.$$.fragment,n)},m(n,o){ge(e,n,o),i=!0},p(n,[o]){const u={};o&1705983&&(u.$$scope={dirty:o,ctx:n}),!t&&o&1&&(t=!0,u.toggled=n[0],cl(()=>t=!1)),e.$set(u)},i(n){i||(A(e.$$.fragment,n),i=!0)},o(n){R(e.$$.fragment,n),i=!1},d(n){ve(e,n)}}}function Ba(l,e,t){const i=["toggled","label","hideLabel","small","disabled","on","off","switchColor","toggledColor","untoggledColor"];let r=il(e,i),{$$slots:s={},$$scope:n}=e,{toggled:o=!0}=e,{label:u="Label"}=e,{hideLabel:f=!1}=e,{small:c=!1}=e,{disabled:h=!1}=e,{on:d=void 0}=e,{off:v=void 0}=e,{switchColor:m="#fff"}=e,{toggledColor:y="#0f62fe"}=e,{untoggledColor:b="#8d8d8d"}=e;const T=hl();function k(B){pl.call(this,l,B)}function E(B){pl.call(this,l,B)}function p(B){pl.call(this,l,B)}const S=()=>t(0,o=!o);function L(B){o=B,t(0,o)}return l.$$set=B=>{e=rt(rt({},e),ll(B)),t(10,r=il(e,i)),"toggled"in B&&t(0,o=B.toggled),"label"in B&&t(1,u=B.label),"hideLabel"in B&&t(2,f=B.hideLabel),"small"in B&&t(3,c=B.small),"disabled"in B&&t(4,h=B.disabled),"on"in B&&t(5,d=B.on),"off"in B&&t(6,v=B.off),"switchColor"in B&&t(7,m=B.switchColor),"toggledColor"in B&&t(8,y=B.toggledColor),"untoggledColor"in B&&t(9,b=B.untoggledColor),"$$scope"in B&&t(17,n=B.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&T("toggle",o)},[o,u,f,c,h,d,v,m,y,b,r,s,k,E,p,S,L,n]}class ns extends Ne{constructor(e){super(),Ve(this,e,Ba,ja,Me,{toggled:0,label:1,hideLabel:2,small:3,disabled:4,on:5,off:6,switchColor:7,toggledColor:8,untoggledColor:9})}}function Pa(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S,L,B;return{c(){e=W("path"),r=W("path"),o=W("path"),c=W("rect"),d=W("path"),v=W("g"),m=W("path"),b=W("path"),E=W("path"),S=W("path"),this.h()},l(I){e=q(I,"path",{id:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linejoin":!0,d:!0,class:!0}),w(e).forEach(_),r=q(I,"path",{id:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,d:!0,class:!0}),w(r).forEach(_),o=q(I,"path",{id:!0,fill:!0,stroke:!0,"stroke-width":!0,d:!0,class:!0}),w(o).forEach(_),c=q(I,"rect",{x:!0,y:!0,width:!0,height:!0,"stroke-width":!0,stroke:!0,fill:!0}),w(c).forEach(_),d=q(I,"path",{d:!0,"stroke-width":!0,"stroke-linejoin":!0,"stroke-linecap":!0,stroke:!0,fill:!0}),w(d).forEach(_),v=q(I,"g",{id:!0,class:!0});var O=w(v);m=q(O,"path",{d:!0,"stroke-width":!0,stroke:!0,fill:!0}),w(m).forEach(_),b=q(O,"path",{d:!0,"stroke-width":!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,fill:!0}),w(b).forEach(_),E=q(O,"path",{id:!0,d:!0,fill:!0,"stroke-width":!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0}),w(E).forEach(_),O.forEach(_),S=q(I,"path",{d:!0,"stroke-width":!0,stroke:!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,fill:!0}),w(S).forEach(_),this.h()},h(){a(e,"id","landscape_icon_wide_hill"),a(e,"fill",t="var(--"+(l[1]?"landscape":"before")+"-color)"),a(e,"stroke",i="var(--"+(l[1]?"landscape":"before")+"-color)"),a(e,"stroke-width","4"),a(e,"stroke-linejoin","round"),a(e,"d","M106 72 a24 12 0 0 1 -24 -12 v-12 a24 24 0 0 1 24 -24 Z"),a(e,"class","svelte-14gw8iq"),a(r,"id","landscape_icon_wide_tree"),a(r,"fill",s="var(--"+(l[1]?"landscape":"correct")+"-color)"),a(r,"stroke",n="var(--"+(l[1]?"landscape":"correct")+"-color)"),a(r,"stroke-width","4"),a(r,"stroke-linecap","round"),a(r,"d","M68.5 62 v-11 a7 7 0 1 1 0.01 0"),a(r,"class","svelte-14gw8iq"),a(o,"id","landscape_icon_wide_pond"),a(o,"fill",u="var(--"+(l[1]?"landscape":"after")+"-color)"),a(o,"stroke",f="var(--"+(l[1]?"landscape":"after")+"-color)"),a(o,"stroke-width","4"),a(o,"d","M80 83 q0 -16 -24 -16 v16 Z"),a(o,"class","svelte-14gw8iq"),a(c,"x","7.5"),a(c,"y","21"),a(c,"width","85.5"),a(c,"height","58"),a(c,"stroke-width","5.1"),a(c,"stroke",h="var(--"+(l[1]?"cta":"icon-bg")+"-color)"),a(c,"fill","none"),a(d,"d","M44 16 H97.5 V84 H44"),a(d,"stroke-width","5"),a(d,"stroke-linejoin","round"),a(d,"stroke-linecap","round"),a(d,"stroke","var(--landscape-color)"),a(d,"fill","none"),a(m,"d","M50 18.5 v63"),a(m,"stroke-width","15"),a(m,"stroke",y="var(--"+(l[1]?"cta":"icon-bg")+"-color)"),a(m,"fill","none"),a(b,"d","M55 16 h-5 v68 h5"),a(b,"stroke-width",T=l[1]?4.5:5),a(b,"stroke","var(--landscape-color)"),a(b,"stroke-linecap","round"),a(b,"stroke-linejoin","round"),a(b,"stroke-dasharray",k=l[1]?"5 9.7":"none"),a(b,"fill","none"),a(E,"id","landscape_icon_wide_arrow"),a(E,"d",p=l[1]?"M18 35 v30 L33 50 Z":"M35 35 v30 L20 50 Z"),a(E,"fill","var(--landscape-color)"),a(E,"stroke-width","5"),a(E,"stroke","var(--landscape-color)"),a(E,"stroke-linecap","round"),a(E,"stroke-linejoin","round"),a(E,"class","svelte-14gw8iq"),a(v,"id","landscape_icon_wide_divider"),a(v,"class","svelte-14gw8iq"),a(S,"d","M50 16 H3 v68 H50"),a(S,"stroke-width",L=l[1]?5:4.5),a(S,"stroke","var(--landscape-color)"),a(S,"stroke-linecap","round"),a(S,"stroke-linejoin","round"),a(S,"stroke-dasharray",B=l[1]?"none":"5 10.71"),a(S,"fill","none")},m(I,O){N(I,e,O),N(I,r,O),N(I,o,O),N(I,c,O),N(I,d,O),N(I,v,O),g(v,m),g(v,b),g(v,E),N(I,S,O)},p(I,O){O&2&&t!==(t="var(--"+(I[1]?"landscape":"before")+"-color)")&&a(e,"fill",t),O&2&&i!==(i="var(--"+(I[1]?"landscape":"before")+"-color)")&&a(e,"stroke",i),O&2&&s!==(s="var(--"+(I[1]?"landscape":"correct")+"-color)")&&a(r,"fill",s),O&2&&n!==(n="var(--"+(I[1]?"landscape":"correct")+"-color)")&&a(r,"stroke",n),O&2&&u!==(u="var(--"+(I[1]?"landscape":"after")+"-color)")&&a(o,"fill",u),O&2&&f!==(f="var(--"+(I[1]?"landscape":"after")+"-color)")&&a(o,"stroke",f),O&2&&h!==(h="var(--"+(I[1]?"cta":"icon-bg")+"-color)")&&a(c,"stroke",h),O&2&&y!==(y="var(--"+(I[1]?"cta":"icon-bg")+"-color)")&&a(m,"stroke",y),O&2&&T!==(T=I[1]?4.5:5)&&a(b,"stroke-width",T),O&2&&k!==(k=I[1]?"5 9.7":"none")&&a(b,"stroke-dasharray",k),O&2&&p!==(p=I[1]?"M18 35 v30 L33 50 Z":"M35 35 v30 L20 50 Z")&&a(E,"d",p),O&2&&L!==(L=I[1]?5:4.5)&&a(S,"stroke-width",L),O&2&&B!==(B=I[1]?"none":"5 10.71")&&a(S,"stroke-dasharray",B)},d(I){I&&_(e),I&&_(r),I&&_(o),I&&_(c),I&&_(d),I&&_(v),I&&_(S)}}}function Aa(l){let e,t,i,r,s,n,o,u,f;return{c(){e=W("path"),t=W("path"),i=W("circle"),r=W("path"),s=W("path"),n=W("rect"),o=W("rect"),u=W("rect"),f=W("rect"),this.h()},l(c){e=q(c,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linejoin":!0,d:!0}),w(e).forEach(_),t=q(c,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,d:!0}),w(t).forEach(_),i=q(c,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(i).forEach(_),r=q(c,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,d:!0}),w(r).forEach(_),s=q(c,"path",{fill:!0,stroke:!0,"stroke-width":!0,d:!0}),w(s).forEach(_),n=q(c,"rect",{x:!0,y:!0,width:!0,height:!0,"stroke-width":!0,stroke:!0,fill:!0}),w(n).forEach(_),o=q(c,"rect",{id:!0,x:!0,y:!0,width:!0,height:!0,fill:!0,class:!0}),w(o).forEach(_),u=q(c,"rect",{x:!0,y:!0,width:!0,height:!0,"stroke-width":!0,"stroke-linejoin":!0,stroke:!0,fill:!0}),w(u).forEach(_),f=q(c,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0}),w(f).forEach(_),this.h()},h(){a(e,"fill","var(--before-color)"),a(e,"stroke","var(--before-color)"),a(e,"stroke-width","4"),a(e,"stroke-linejoin","round"),a(e,"d","M87 66 a24 12 0 0 1 -24 -12 v-12 a24 24 0 0 1 24 -24 Z"),a(t,"fill","var(--correct-color)"),a(t,"stroke","var(--correct-color)"),a(t,"stroke-width","4"),a(t,"stroke-linecap","round"),a(t,"d","M28 44 v-11 a7 7 0 1 1 0.01 0"),a(i,"cx","45"),a(i,"cy","32"),a(i,"r","12"),a(i,"fill","var(--icon-bg-color)"),a(r,"fill","var(--correct-color)"),a(r,"stroke","var(--correct-color)"),a(r,"stroke-width","4"),a(r,"stroke-linecap","round"),a(r,"d","M45 50 v-11 a7 7 0 1 1 0.01 0"),a(s,"fill","var(--after-color)"),a(s,"stroke","var(--after-color)"),a(s,"stroke-width","4"),a(s,"d","M61 77 q0 -14 -22 -14 q-22 0 -22 -14 q0 -14 -22 -14 v48 Z"),a(n,"x","9"),a(n,"y","9"),a(n,"width","82"),a(n,"height","62"),a(n,"stroke-width","6.1"),a(n,"stroke","var(--icon-bg-color)"),a(n,"fill","none"),a(o,"id","landscape_icon_photo_flash"),a(o,"x","9"),a(o,"y","9"),a(o,"width","82"),a(o,"height","62"),a(o,"fill","var(--icon-bg-color)"),a(o,"class","svelte-14gw8iq"),a(u,"x","3"),a(u,"y","3"),a(u,"width","94"),a(u,"height","94"),a(u,"stroke-width","6"),a(u,"stroke-linejoin","round"),a(u,"stroke","var(--landscape-color)"),a(u,"fill","none"),a(f,"x","4"),a(f,"y","74"),a(f,"width","92"),a(f,"height","22"),a(f,"fill","var(--landscape-color)")},m(c,h){N(c,e,h),N(c,t,h),N(c,i,h),N(c,r,h),N(c,s,h),N(c,n,h),N(c,o,h),N(c,u,h),N(c,f,h)},p:ce,d(c){c&&_(e),c&&_(t),c&&_(i),c&&_(r),c&&_(s),c&&_(n),c&&_(o),c&&_(u),c&&_(f)}}}function Ga(l){let e,t,i,r,s,n,o,u,f;return{c(){e=W("circle"),t=W("g"),i=W("path"),r=W("g"),s=W("path"),n=W("path"),o=W("g"),u=W("path"),f=W("path"),this.h()},l(c){e=q(c,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(e).forEach(_),t=q(c,"g",{id:!0,class:!0});var h=w(t);i=q(h,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,d:!0}),w(i).forEach(_),h.forEach(_),r=q(c,"g",{id:!0,class:!0});var d=w(r);s=q(d,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,d:!0}),w(s).forEach(_),n=q(d,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,d:!0}),w(n).forEach(_),d.forEach(_),o=q(c,"g",{id:!0,class:!0});var v=w(o);u=q(v,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,d:!0}),w(u).forEach(_),f=q(v,"path",{fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,d:!0}),w(f).forEach(_),v.forEach(_),this.h()},h(){a(e,"cx","50"),a(e,"cy","50"),a(e,"r","18"),a(e,"fill","var(--landscape-color)"),a(i,"fill","none"),a(i,"stroke","var(--after-color)"),a(i,"stroke-width","16"),a(i,"stroke-linecap","round"),a(i,"stroke-linejoin","round"),a(i,"d","M79.698 79.698 a42 42 0 0 1 -59.397 0"),a(t,"id","landscape_icon_redraw_1"),a(t,"class","svelte-14gw8iq"),a(s,"fill","none"),a(s,"stroke","var(--icon-bg-color)"),a(s,"stroke-width","40"),a(s,"stroke-linecap","round"),a(s,"stroke-linejoin","round"),a(s,"d","M20.302 79.698 a42 42 0 0 1 59.397 -59.397"),a(n,"fill","none"),a(n,"stroke","var(--before-color)"),a(n,"stroke-width","16"),a(n,"stroke-linecap","round"),a(n,"stroke-linejoin","round"),a(n,"d","M20.302 79.698 a42 42 0 0 1 59.397 -59.397"),a(r,"id","landscape_icon_redraw_2"),a(r,"class","svelte-14gw8iq"),a(u,"fill","none"),a(u,"stroke","var(--icon-bg-color)"),a(u,"stroke-width","40"),a(u,"stroke-linecap","round"),a(u,"d","M20.302 20.302 a42 42 0 0 1 59.397 0 l12 12"),a(f,"fill","none"),a(f,"stroke","var(--correct-color)"),a(f,"stroke-width","16"),a(f,"stroke-linecap","round"),a(f,"stroke-linejoin","round"),a(f,"d","M20.302 20.302 a42 42 0 0 1 59.397 0 l12 12 V8"),a(o,"id","landscape_icon_redraw_3"),a(o,"class","svelte-14gw8iq")},m(c,h){N(c,e,h),N(c,t,h),g(t,i),N(c,r,h),g(r,s),g(r,n),N(c,o,h),g(o,u),g(o,f)},p:ce,d(c){c&&_(e),c&&_(t),c&&_(r),c&&_(o)}}}function Fa(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y,b,T,k,E;return{c(){e=W("g"),t=W("circle"),r=W("circle"),n=W("g"),o=W("circle"),f=W("circle"),h=W("circle"),v=W("g"),m=W("circle"),b=W("circle"),k=W("circle"),this.h()},l(p){e=q(p,"g",{id:!0,class:!0});var S=w(e);t=q(S,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(t).forEach(_),r=q(S,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(r).forEach(_),S.forEach(_),n=q(p,"g",{id:!0,class:!0});var L=w(n);o=q(L,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(o).forEach(_),f=q(L,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(f).forEach(_),h=q(L,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(h).forEach(_),L.forEach(_),v=q(p,"g",{id:!0,class:!0});var B=w(v);m=q(B,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(m).forEach(_),b=q(B,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(b).forEach(_),k=q(B,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),w(k).forEach(_),B.forEach(_),this.h()},h(){a(t,"cx","72"),a(t,"cy","72"),a(t,"r","28"),a(t,"fill",i="var(--"+(l[1]?"landscape":"after")+"-color)"),a(r,"cx","72"),a(r,"cy","72"),a(r,"r","14"),a(r,"fill",s=l[1]?"var(--cta-color)":"none"),a(e,"id","landscape_icon_color_1"),a(e,"class","svelte-14gw8iq"),a(o,"cx","28"),a(o,"cy","50"),a(o,"r","38.5"),a(o,"fill",u="var(--"+(l[1]?"cta":"icon-bg")+"-color)"),a(f,"cx","28"),a(f,"cy","50"),a(f,"r","28"),a(f,"fill",c="var(--"+(l[1]?"landscape":"before")+"-color)"),a(h,"cx","28"),a(h,"cy","50"),a(h,"r","14"),a(h,"fill",d=l[1]?"var(--cta-color)":"none"),a(n,"id","landscape_icon_color_2"),a(n,"class","svelte-14gw8iq"),a(m,"cx","72"),a(m,"cy","28"),a(m,"r","38.5"),a(m,"fill",y="var(--"+(l[1]?"cta":"icon-bg")+"-color)"),a(b,"cx","72"),a(b,"cy","28"),a(b,"r","28"),a(b,"fill",T="var(--"+(l[1]?"landscape":"correct")+"-color)"),a(k,"cx","72"),a(k,"cy","28"),a(k,"r","14"),a(k,"fill",E=l[1]?"var(--cta-color)":"none"),a(v,"id","landscape_icon_color_3"),a(v,"class","svelte-14gw8iq")},m(p,S){N(p,e,S),g(e,t),g(e,r),N(p,n,S),g(n,o),g(n,f),g(n,h),N(p,v,S),g(v,m),g(v,b),g(v,k)},p(p,S){S&2&&i!==(i="var(--"+(p[1]?"landscape":"after")+"-color)")&&a(t,"fill",i),S&2&&s!==(s=p[1]?"var(--cta-color)":"none")&&a(r,"fill",s),S&2&&u!==(u="var(--"+(p[1]?"cta":"icon-bg")+"-color)")&&a(o,"fill",u),S&2&&c!==(c="var(--"+(p[1]?"landscape":"before")+"-color)")&&a(f,"fill",c),S&2&&d!==(d=p[1]?"var(--cta-color)":"none")&&a(h,"fill",d),S&2&&y!==(y="var(--"+(p[1]?"cta":"icon-bg")+"-color)")&&a(m,"fill",y),S&2&&T!==(T="var(--"+(p[1]?"landscape":"correct")+"-color)")&&a(b,"fill",T),S&2&&E!==(E=p[1]?"var(--cta-color)":"none")&&a(k,"fill",E)},d(p){p&&_(e),p&&_(n),p&&_(v)}}}function za(l){let e,t,i,r;function s(u,f){return u[0]==="color"?Fa:u[0]==="redraw"?Ga:u[0]==="photo"?Aa:Pa}let n=s(l),o=n(l);return{c(){e=W("svg"),o.c(),this.h()},l(u){e=q(u,"svg",{xmlns:!0,viewBox:!0,width:!0,class:!0,height:!0});var f=w(e);o.l(f),f.forEach(_),this.h()},h(){a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox",t=l[0]==="wide"?"0 13 100 74":"0 0 100 100"),a(e,"width",i=l[0]==="wide"?"3rem":"2.25rem"),a(e,"class",r=tl(l[0])+" svelte-14gw8iq"),a(e,"height","2.25rem"),oe(e,"active",l[1])},m(u,f){N(u,e,f),o.m(e,null)},p(u,[f]){n===(n=s(u))&&o?o.p(u,f):(o.d(1),o=n(u),o&&(o.c(),o.m(e,null))),f&1&&t!==(t=u[0]==="wide"?"0 13 100 74":"0 0 100 100")&&a(e,"viewBox",t),f&1&&i!==(i=u[0]==="wide"?"3rem":"2.25rem")&&a(e,"width",i),f&1&&r!==(r=tl(u[0])+" svelte-14gw8iq")&&a(e,"class",r),f&3&&oe(e,"active",u[1])},i:ce,o:ce,d(u){u&&_(e),o.d()}}}function Ra(l,e,t){let{icon:i}=e,{active:r=!1}=e;return l.$$set=s=>{"icon"in s&&t(0,i=s.icon),"active"in s&&t(1,r=s.active)},[i,r]}class el extends Ne{constructor(e){super(),Ve(this,e,Ra,za,Me,{icon:0,active:1})}}function tr(l,e,t){const i=l.slice();return i[38]=e[t],i}function Wa(l){let e,t,i=l[6]("main.results.share")+"",r,s,n,o,u,f,c;const h=[Ya,Ua],d=[];function v(m,y){return m[0]==="daily"?0:1}return n=v(l),o=d[n]=h[n](l),{c(){e=H("div"),t=H("button"),r=se(i),s=ee(),o.c(),this.h()},l(m){e=j(m,"DIV",{class:!0});var y=w(e);t=j(y,"BUTTON",{class:!0});var b=w(t);r=ne(b,i),b.forEach(_),s=te(y),o.l(y),y.forEach(_),this.h()},h(){a(t,"class","svelte-abjg2o"),a(e,"class","action-items svelte-abjg2o")},m(m,y){N(m,e,y),g(e,t),g(t,r),g(e,s),d[n].m(e,null),u=!0,f||(c=de(t,"click",l[21]),f=!0)},p(m,y){(!u||y[0]&64)&&i!==(i=m[6]("main.results.share")+"")&&he(r,i);let b=n;n=v(m),n===b?d[n].p(m,y):(Te(),R(d[b],1,1,()=>{d[b]=null}),Ie(),o=d[n],o?o.p(m,y):(o=d[n]=h[n](m),o.c()),A(o,1),o.m(e,null))},i(m){u||(A(o),u=!0)},o(m){R(o),u=!1},d(m){m&&_(e),d[n].d(),f=!1,c()}}}function qa(l){let e,t,i=l[6]("main.results.text")+"",r,s,n,o=l[6]("main.results.image")+"",u,f,c,h,d,v,m=l[14],y=[];for(let T=0;TR(y[T],1,1,()=>{y[T]=null});return{c(){e=H("div"),t=H("button"),r=se(i),s=ee(),n=H("button"),u=se(o),f=ee(),c=H("div");for(let T=0;T{n[c]=null}),Ie(),t=n[e],t?t.p(u,f):(t=n[e]=s[e](u),t.c()),A(t,1),t.m(i.parentNode,i))},i(u){r||(A(t),r=!0)},o(u){R(t),r=!1},d(u){n[e].d(u),u&&_(i)}}}function Ja(l){let e,t,i;return t=new Dt({props:{mode:"countdown",alwaysShowHours:!0,ms:l[19],class:"time",$$slots:{title:[Ka]},$$scope:{ctx:l}}}),{c(){e=H("div"),me(t.$$.fragment),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);we(t.$$.fragment,s),s.forEach(_),this.h()},h(){a(e,"class","countdown svelte-abjg2o")},m(r,s){N(r,e,s),ge(t,e,null),i=!0},p(r,s){const n={};s[0]&64|s[1]&1024&&(n.$$scope={dirty:s,ctx:r}),t.$set(n)},i(r){i||(A(t.$$.fragment,r),i=!0)},o(r){R(t.$$.fragment,r),i=!1},d(r){r&&_(e),ve(t)}}}function Xa(l){let e,t=l[6]("main.results.play_daily")+"",i,r,s;return{c(){e=H("button"),i=se(t),this.h()},l(n){e=j(n,"BUTTON",{class:!0});var o=w(e);i=ne(o,t),o.forEach(_),this.h()},h(){a(e,"class","play-button svelte-abjg2o")},m(n,o){N(n,e,o),g(e,i),r||(s=de(e,"click",Al),r=!0)},p(n,o){o[0]&64&&t!==(t=n[6]("main.results.play_daily")+"")&&he(i,t)},i:ce,o:ce,d(n){n&&_(e),r=!1,s()}}}function Ka(l){let e,t=l[6]("main.results.next_word")+"",i;return{c(){e=H("h3"),i=se(t),this.h()},l(r){e=j(r,"H3",{slot:!0,class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"slot","title"),a(e,"class","svelte-abjg2o")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s[0]&64&&t!==(t=r[6]("main.results.next_word")+"")&&he(i,t)},d(r){r&&_(e)}}}function Za(l){let e,t=l[6](l[38].label)+"",i,r;return{c(){e=H("div"),i=se(t),r=ee(),this.h()},l(s){e=j(s,"DIV",{class:!0});var n=w(e);i=ne(n,t),n.forEach(_),r=te(s),this.h()},h(){a(e,"class","label svelte-abjg2o")},m(s,n){N(s,e,n),g(e,i),N(s,r,n)},p(s,n){n[0]&64&&t!==(t=s[6](s[38].label)+"")&&he(i,t)},d(s){s&&_(e),s&&_(r)}}}function lr(l){let e,t;return e=new ns({props:{toggled:be(l[38].bind),hideLabel:!0,label:l[6](l[38].label),style:"transform: scale(var(--toggle-scale)); touch-action: manipulation; flex-basis: 2.5rem;",toggledColor:"var(--accent-color)",untoggledColor:"#695d6e",$$slots:{default:[Za]},$$scope:{ctx:l}}}),e.$on("click",l[38].click),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,r){const s={};r[0]&64&&(s.label=i[6](i[38].label)),r[0]&64|r[1]&1024&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function ir(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S=l[6]("main.footer.donate")+"",L,B,I,O=l[6]("main.footer.donate_short")+"",D,F,P,U;return i=new el({props:{icon:"wide",active:l[8]}}),o=new el({props:{icon:"color",active:l[9]}}),h=new el({props:{icon:"redraw"}}),y=new el({props:{icon:"photo"}}),{c(){e=H("div"),t=H("button"),me(i.$$.fragment),s=ee(),n=H("button"),me(o.$$.fragment),f=ee(),c=H("button"),me(h.$$.fragment),v=ee(),m=H("button"),me(y.$$.fragment),T=ee(),k=H("div"),E=H("a"),p=H("span"),L=se(S),B=ee(),I=H("span"),D=se(O),this.h()},l(G){e=j(G,"DIV",{class:!0});var M=w(e);t=j(M,"BUTTON",{title:!0,class:!0});var V=w(t);we(i.$$.fragment,V),V.forEach(_),s=te(M),n=j(M,"BUTTON",{title:!0,class:!0});var J=w(n);we(o.$$.fragment,J),J.forEach(_),f=te(M),c=j(M,"BUTTON",{title:!0,class:!0});var X=w(c);we(h.$$.fragment,X),X.forEach(_),v=te(M),m=j(M,"BUTTON",{title:!0,class:!0});var Q=w(m);we(y.$$.fragment,Q),Q.forEach(_),T=te(M),k=j(M,"DIV",{class:!0});var Z=w(k);E=j(Z,"A",{href:!0});var $=w(E);p=j($,"SPAN",{class:!0});var K=w(p);L=ne(K,S),K.forEach(_),B=te($),I=j($,"SPAN",{class:!0});var Y=w(I);D=ne(Y,O),Y.forEach(_),$.forEach(_),Z.forEach(_),M.forEach(_),this.h()},h(){a(t,"title",r=l[6]("main.other.wide_view")),a(t,"class","svelte-abjg2o"),oe(t,"cta-bg",l[8]),a(n,"title",u=l[6]("main.other.color")),a(n,"class","svelte-abjg2o"),oe(n,"cta-bg",l[9]),a(c,"title",d=l[6]("main.other.redraw")),c.disabled=l[4],a(c,"class","svelte-abjg2o"),a(m,"title",b=l[6]("main.results.share")),a(m,"class","svelte-abjg2o"),a(p,"class","hide-on-small-screens svelte-abjg2o"),a(I,"class","hide-on-big-screens svelte-abjg2o"),a(E,"href","https://buymeacoffee.com/vegeta897"),a(k,"class","promo svelte-abjg2o"),a(e,"class","landscape-controls svelte-abjg2o")},m(G,M){N(G,e,M),g(e,t),ge(i,t,null),g(e,s),g(e,n),ge(o,n,null),g(e,f),g(e,c),ge(h,c,null),g(e,v),g(e,m),ge(y,m,null),g(e,T),g(e,k),g(k,E),g(E,p),g(p,L),g(E,B),g(E,I),g(I,D),F=!0,P||(U=[de(t,"click",l[23]),de(n,"click",l[24]),de(c,"click",l[25]),de(m,"click",l[17]),de(E,"auxclick",l[26]),de(E,"click",l[27])],P=!0)},p(G,M){const V={};M[0]&256&&(V.active=G[8]),i.$set(V),(!F||M[0]&64&&r!==(r=G[6]("main.other.wide_view")))&&a(t,"title",r),(!F||M[0]&256)&&oe(t,"cta-bg",G[8]);const J={};M[0]&512&&(J.active=G[9]),o.$set(J),(!F||M[0]&64&&u!==(u=G[6]("main.other.color")))&&a(n,"title",u),(!F||M[0]&512)&&oe(n,"cta-bg",G[9]),(!F||M[0]&64&&d!==(d=G[6]("main.other.redraw")))&&a(c,"title",d),(!F||M[0]&16)&&(c.disabled=G[4]),(!F||M[0]&64&&b!==(b=G[6]("main.results.share")))&&a(m,"title",b),(!F||M[0]&64)&&S!==(S=G[6]("main.footer.donate")+"")&&he(L,S),(!F||M[0]&64)&&O!==(O=G[6]("main.footer.donate_short")+"")&&he(D,O)},i(G){F||(A(i.$$.fragment,G),A(o.$$.fragment,G),A(h.$$.fragment,G),A(y.$$.fragment,G),F=!0)},o(G){R(i.$$.fragment,G),R(o.$$.fragment,G),R(h.$$.fragment,G),R(y.$$.fragment,G),F=!1},d(G){G&&_(e),ve(i),ve(o),ve(h),ve(y),P=!1,$e(U)}}}function Qa(l){let e,t,i,r,s,n,o,u,f,c,h,d=l[6]("main.results.copy_image")+"",v,m,y,b,T,k,E,p;const S=[qa,Wa],L=[];function B(O,D){return O[1]?0:1}i=B(l),r=L[i]=S[i](l);let I=!l[1]&&!l[7]&&ir(l);return{c(){e=H("div"),t=H("div"),r.c(),s=ee(),I&&I.c(),n=ee(),o=H("div"),u=H("div"),f=H("canvas"),c=ee(),h=H("button"),v=se(d),m=ee(),y=H("button"),b=W("svg"),T=W("path"),this.h()},l(O){e=j(O,"DIV",{class:!0});var D=w(e);t=j(D,"DIV",{class:!0});var F=w(t);r.l(F),F.forEach(_),s=te(D),I&&I.l(D),n=te(D),o=j(D,"DIV",{class:!0,role:!0});var P=w(o);u=j(P,"DIV",{class:!0});var U=w(u);f=j(U,"CANVAS",{}),w(f).forEach(_),c=te(U),h=j(U,"BUTTON",{class:!0});var G=w(h);v=ne(G,d),G.forEach(_),m=te(U),y=j(U,"BUTTON",{title:!0,class:!0});var M=w(y);b=q(M,"svg",{viewBox:!0,xmlns:!0,width:!0});var V=w(b);T=q(V,"path",{stroke:!0,fill:!0,d:!0,"stroke-width":!0,"stroke-linecap":!0}),w(T).forEach(_),V.forEach(_),M.forEach(_),U.forEach(_),P.forEach(_),D.forEach(_),this.h()},h(){a(t,"class","actions svelte-abjg2o"),oe(t,"full-width",l[1]),a(h,"class","svelte-abjg2o"),a(T,"stroke","currentColor"),a(T,"fill","none"),a(T,"d","M1.2 1.2 l1.6 1.6 M1.2 2.8 l1.6 -1.6"),a(T,"stroke-width","0.5"),a(T,"stroke-linecap","round"),a(b,"viewBox","0 0 4 4"),a(b,"xmlns","http://www.w3.org/2000/svg"),a(b,"width","32px"),a(y,"title","Close"),a(y,"class","close-button svelte-abjg2o"),a(u,"class","image-share svelte-abjg2o"),a(o,"class","modal-backdrop svelte-abjg2o"),a(o,"role","dialog"),fe(o,"display",l[2]?"flex":"none"),a(e,"class","container svelte-abjg2o")},m(O,D){N(O,e,D),g(e,t),L[i].m(t,null),g(e,s),I&&I.m(e,null),g(e,n),g(e,o),g(o,u),g(u,f),l[28](f),g(u,c),g(u,h),g(h,v),g(u,m),g(u,y),g(y,b),g(b,T),k=!0,E||(p=[de(window,"keydown",l[20]),de(h,"click",l[18]),de(y,"click",l[29]),de(o,"click",js(l[30]))],E=!0)},p(O,D){let F=i;i=B(O),i===F?L[i].p(O,D):(Te(),R(L[F],1,1,()=>{L[F]=null}),Ie(),r=L[i],r?r.p(O,D):(r=L[i]=S[i](O),r.c()),A(r,1),r.m(t,null)),(!k||D[0]&2)&&oe(t,"full-width",O[1]),!O[1]&&!O[7]?I?(I.p(O,D),D[0]&130&&A(I,1)):(I=ir(O),I.c(),A(I,1),I.m(e,n)):I&&(Te(),R(I,1,1,()=>{I=null}),Ie()),(!k||D[0]&64)&&d!==(d=O[6]("main.results.copy_image")+"")&&he(v,d),D[0]&4&&fe(o,"display",O[2]?"flex":"none")},i(O){k||(A(r),A(I),k=!0)},o(O){R(r),R(I),k=!1},d(O){O&&_(e),L[i].d(),I&&I.d(),l[28](null),E=!1,$e(p)}}}function $a(l,e,t){let i,r,s,n;Ee(l,Ze,x=>t(6,i=x));const{landscapeWideView:o,landscapeForceColor:u,landscapeRedraw:f,hideLandscape:c}=Bt;Ee(l,o,x=>t(8,s=x)),Ee(l,u,x=>t(9,n=x)),Ee(l,c,x=>t(7,r=x));let{gameMode:h}=e,d,v,m,y,b,T=!1;const k={theme:{"--toastBackground":"var(--cta-color)"}},E=x=>qt.push(x,k),p=()=>qt.push(be(Ze)("main.messages.could_not_do"),k),S=x=>()=>x.set(!be(x)),L=[{bind:Qt,label:"main.options.include_link",click:S(Qt)},{bind:Gt,label:"main.options.include_times",click:S(Gt)},{bind:$t,label:"main.options.hide_arrows",click:S($t)}];function B(){t(1,d=!1),t(2,v=!1),It("resultShare");const x={guesses:be(yl),answer:be(Zr),hideArrows:be($t)};let re="";be(Gt)&&(re=` ${be(Ze)("main.summary.total_time")}: ${be(Il)}`,x.guessTimes=be(Sl));let ke="";const z=be(Ft);be(Qt)&&(ke=` https://wordpeaks.com`,z.hash&&(ke+=`/#${z.hash}`)),gn(b+` -`+vn(x)+re+ke).then(()=>E(be(Ze)("main.messages.score_copied")),()=>p())}async function I(){t(1,d=!1);const{hash:x,dayNumber:re}=be(Ft);bn(m,{highContrast:be(Dl),boardContent:be(dl),guesses:be(yl),caption:b,guessTimes:be(Gt)?be(Sl):void 0,totalTime:be(Gt)?be(Il):void 0,showURL:be(Qt),hash:x||void 0,hideArrows:be($t),tileSharpness:be(Zs)}),m.toBlob(ke=>{y=ke,ci(y,`${x||re}`)}),t(2,v=!0),It("resultShare"),m.scrollIntoView({block:"center"})}async function O(){const x=await zt(()=>import("./canvas-3d51dc6a.js"),["chunks/canvas-3d51dc6a.js","chunks/preload-helper-5ea9bf72.js","chunks/index-0dc809ca.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/index-83aebdf3.js","chunks/share-c6a42f06.js","chunks/paths-396f020f.js"]),re=be(Qs);x.drawLandscapeToCanvas(m,be(Qr),{color:re,highContrast:be(Dl)}),m.toBlob(ie=>{y=ie,ci(y,`${ke||z}-landscape${re?"-color":""}`)}),t(2,v=!0),It("landscapeShare");const{hash:ke,dayNumber:z}=be(Ft);m.scrollIntoView({block:"center"})}function D(){try{pn(y),t(2,v=!1),E(be(Ze)("main.messages.image_copied"))}catch{p()}}const F=Js(be(es)).getTime();let P=Ft(5,P=F(b=mn({gameWon:be(Xs),guesses:be(yl),gameMode:be(Ft).mode,hardMode:be(Ks),day:be(Ft).dayNumber}),()=>clearInterval(U)));const G=({key:x})=>x==="Escape"&&t(2,v=!1),M=()=>t(1,d=!0),V=()=>al(ts()),J=()=>o.set(!s),X=()=>u.set(!n),Q=()=>{t(4,T=!0),setTimeout(()=>t(4,T=!1),2e3),f.set(!0)},Z=()=>It("promoLinkFollow"),$=()=>It("promoLinkFollow");function K(x){Ge[x?"unshift":"push"](()=>{m=x,t(3,m)})}const Y=()=>t(2,v=!1),ue=()=>t(2,v=!1);return l.$$set=x=>{"gameMode"in x&&t(0,h=x.gameMode)},[h,d,v,m,T,P,i,r,s,n,o,u,f,c,L,B,I,O,D,F,G,M,V,J,X,Q,Z,$,K,Y,ue]}class xa extends Ne{constructor(e){super(),Ve(this,e,$a,Qa,Me,{gameMode:0},null,[-1,-1])}}function rr(l,e,t){const i=l.slice();return i[9]=e[t],i[11]=t,i}function sr(l,e,t){const i=l.slice();return i[12]=e[t],i}function nr(l){let e;function t(s,n){return s[1]?to:eo}let i=t(l),r=i(l);return{c(){r.c(),e=_e()},l(s){r.l(s),e=_e()},m(s,n){r.m(s,n),N(s,e,n)},p(s,n){i===(i=t(s))&&r?r.p(s,n):(r.d(1),r=i(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){r.d(s),s&&_(e)}}}function eo(l){let e,t=l[2]("main.keyboard.enter")+"",i,r,s;return{c(){e=H("button"),i=se(t),this.h()},l(n){e=j(n,"BUTTON",{class:!0});var o=w(e);i=ne(o,t),o.forEach(_),this.h()},h(){a(e,"class","wide svelte-3eylyc")},m(n,o){N(n,e,o),g(e,i),r||(s=de(e,"click",Fl),r=!0)},p(n,o){o&4&&t!==(t=n[2]("main.keyboard.enter")+"")&&he(i,t)},d(n){n&&_(e),r=!1,s()}}}function to(l){let e,t,i,r,s,n,o;return{c(){e=H("button"),t=W("svg"),i=W("line"),r=W("polygon"),s=W("line"),this.h()},l(u){e=j(u,"BUTTON",{class:!0});var f=w(e);t=q(f,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var c=w(t);i=q(c,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),w(i).forEach(_),r=q(c,"polygon",{points:!0}),w(r).forEach(_),s=q(c,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),w(s).forEach(_),c.forEach(_),f.forEach(_),this.h()},h(){a(i,"x1","7"),a(i,"x2","21"),a(i,"y1","5"),a(i,"y2","5"),a(r,"points","3,5 7,2 7,8"),a(s,"x1","1"),a(s,"x2","1"),a(s,"y1","0.5"),a(s,"y2","9.5"),a(t,"viewBox","0 0 21 11"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","42"),a(t,"height","22"),a(t,"class","svelte-3eylyc"),a(e,"class","wide svelte-3eylyc")},m(u,f){N(u,e,f),g(e,t),g(t,i),g(t,r),g(t,s),n||(o=de(e,"click",l[6]),n=!0)},p:ce,d(u){u&&_(e),n=!1,o()}}}function ar(l){let e,t=l[12]+"",i,r,s;function n(){return l[7](l[12])}return{c(){e=H("button"),i=se(t),this.h()},l(o){e=j(o,"BUTTON",{class:!0});var u=w(e);i=ne(u,t),u.forEach(_),this.h()},h(){a(e,"class","svelte-3eylyc"),oe(e,"correct",l[3].size===1&&l[3].has(l[12])),oe(e,"invalid",!l[3].has(l[12]))},m(o,u){N(o,e,u),g(e,i),r||(s=de(e,"click",n),r=!0)},p(o,u){l=o,u&1&&t!==(t=l[12]+"")&&he(i,t),u&9&&oe(e,"correct",l[3].size===1&&l[3].has(l[12])),u&9&&oe(e,"invalid",!l[3].has(l[12]))},d(o){o&&_(e),r=!1,s()}}}function or(l){let e;function t(s,n){return s[1]?io:lo}let i=t(l),r=i(l);return{c(){r.c(),e=_e()},l(s){r.l(s),e=_e()},m(s,n){r.m(s,n),N(s,e,n)},p(s,n){i===(i=t(s))&&r?r.p(s,n):(r.d(1),r=i(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){r.d(s),s&&_(e)}}}function lo(l){let e,t,i,r,s,n,o;return{c(){e=H("button"),t=W("svg"),i=W("line"),r=W("polygon"),s=W("line"),this.h()},l(u){e=j(u,"BUTTON",{class:!0});var f=w(e);t=q(f,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var c=w(t);i=q(c,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),w(i).forEach(_),r=q(c,"polygon",{points:!0}),w(r).forEach(_),s=q(c,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),w(s).forEach(_),c.forEach(_),f.forEach(_),this.h()},h(){a(i,"x1","7"),a(i,"x2","21"),a(i,"y1","5"),a(i,"y2","5"),a(r,"points","3,5 7,2 7,8"),a(s,"x1","1"),a(s,"x2","1"),a(s,"y1","0.5"),a(s,"y2","9.5"),a(t,"viewBox","0 0 21 11"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","42"),a(t,"height","22"),a(t,"class","svelte-3eylyc"),a(e,"class","wide svelte-3eylyc")},m(u,f){N(u,e,f),g(e,t),g(t,i),g(t,r),g(t,s),n||(o=de(e,"click",l[8]),n=!0)},p:ce,d(u){u&&_(e),n=!1,o()}}}function io(l){let e,t=l[2]("main.keyboard.enter")+"",i,r,s;return{c(){e=H("button"),i=se(t),this.h()},l(n){e=j(n,"BUTTON",{class:!0});var o=w(e);i=ne(o,t),o.forEach(_),this.h()},h(){a(e,"class","wide svelte-3eylyc")},m(n,o){N(n,e,o),g(e,i),r||(s=de(e,"click",Fl),r=!0)},p(n,o){o&4&&t!==(t=n[2]("main.keyboard.enter")+"")&&he(i,t)},d(n){n&&_(e),r=!1,s()}}}function ur(l){let e,t,i,r,s=l[11]===l[0].wideKeysRow&&nr(l),n=l[9],o=[];for(let f=0;ft(5,r=d)),Ee(l,Cl,d=>t(1,s=d)),Ee(l,Ze,d=>t(2,n=d)),Ee(l,xs,d=>t(3,o=d));function u({key:d,ctrlKey:v,target:m,repeat:y}){v||y||be(at)!==null||(d==="Backspace"&&xt(),d==="Delete"&&xt(!1),d==="Enter"&&(m instanceof HTMLButtonElement?setTimeout(()=>m.blur()):Fl()),d==="ArrowLeft"&&li(-1),d==="ArrowRight"&&li(1),d=d.toLowerCase(),(en.includes(d)||d===" ")&&ii(d.trim()))}const f=()=>xt(),c=d=>ii(d),h=()=>xt();return l.$$.update=()=>{l.$$.dirty&32&&t(0,i=Gl.find(d=>d.value===r))},[i,s,n,o,u,r,f,c,h]}class no extends Ne{constructor(e){super(),Ve(this,e,so,ro,Me,{})}}function ao(l){let e,t,i,r;return t=new no({}),{c(){e=H("div"),me(t.$$.fragment),this.h()},l(s){e=j(s,"DIV",{class:!0});var n=w(e);we(t.$$.fragment,n),n.forEach(_),this.h()},h(){a(e,"class","svelte-1n5fit0")},m(s,n){N(s,e,n),ge(t,e,null),r=!0},p(s,n){l=s},i(s){r||(A(t.$$.fragment,s),ct(()=>{!r||(i||(i=et(e,ot,{duration:l[0],easing:vt},!0)),i.run(1))}),r=!0)},o(s){R(t.$$.fragment,s),i||(i=et(e,ot,{duration:l[0],easing:vt},!1)),i.run(0),r=!1},d(s){s&&_(e),ve(t),s&&i&&i.end()}}}function oo(l){let e,t,i,r;return t=new xa({props:{gameMode:l[2]}}),{c(){e=H("div"),me(t.$$.fragment),this.h()},l(s){e=j(s,"DIV",{class:!0});var n=w(e);we(t.$$.fragment,n),n.forEach(_),this.h()},h(){a(e,"class","svelte-1n5fit0")},m(s,n){N(s,e,n),ge(t,e,null),r=!0},p(s,n){l=s;const o={};n&4&&(o.gameMode=l[2]),t.$set(o)},i(s){r||(A(t.$$.fragment,s),ct(()=>{!r||(i||(i=et(e,ot,{duration:l[0],easing:vt},!0)),i.run(1))}),r=!0)},o(s){R(t.$$.fragment,s),i||(i=et(e,ot,{duration:l[0],easing:vt},!1)),i.run(0),r=!1},d(s){s&&_(e),ve(t),s&&i&&i.end()}}}function uo(l){let e,t,i,r;const s=[oo,ao],n=[];function o(u,f){return u[1]?0:1}return t=o(l),i=n[t]=s[t](l),{c(){e=H("section"),i.c(),this.h()},l(u){e=j(u,"SECTION",{class:!0});var f=w(e);i.l(f),f.forEach(_),this.h()},h(){a(e,"class","svelte-1n5fit0")},m(u,f){N(u,e,f),n[t].m(e,null),r=!0},p(u,[f]){let c=t;t=o(u),t===c?n[t].p(u,f):(Te(),R(n[c],1,1,()=>{n[c]=null}),Ie(),i=n[t],i?i.p(u,f):(i=n[t]=s[t](u),i.c()),A(i,1),i.m(e,null))},i(u){r||(A(i),r=!0)},o(u){R(i),r=!1},d(u){u&&_(e),n[t].d()}}}function fo(l,e,t){let i,r;Ee(l,tn,n=>t(1,i=n)),Ee(l,ls,n=>t(2,r=n));let s=0;return tt(async()=>{await it(),t(0,s=250)}),[s,i,r]}class co extends Ne{constructor(e){super(),Ve(this,e,fo,uo,Me,{})}}function ho(l){let e,t,i;const r=l[7].default,s=bt(r,l,l[6],null);return{c(){e=H("div"),s&&s.c(),this.h()},l(n){e=j(n,"DIV",{style:!0,class:!0});var o=w(e);s&&s.l(o),o.forEach(_),this.h()},h(){a(e,"style",t=`width: ${l[3]}%; min-width: max(20px, ${l[2]*l[0]}${l[1]});`),a(e,"class","svelte-1itl8rq")},m(n,o){N(n,e,o),s&&s.m(e,null),i=!0},p(n,[o]){s&&s.p&&(!i||o&64)&&pt(s,r,n,n[6],i?wt(r,n[6],o,null):kt(n[6]),null),(!i||o&15&&t!==(t=`width: ${n[3]}%; min-width: max(20px, ${n[2]*n[0]}${n[1]});`))&&a(e,"style",t)},i(n){i||(A(s,n),i=!0)},o(n){R(s,n),i=!1},d(n){n&&_(e),s&&s.d(n)}}}function _o(l,e,t){let i,r,s,{$$slots:n={},$$scope:o}=e,{percent:u}=e,{minWidth:f="20px"}=e,c=0;return tt(()=>setTimeout(()=>t(0,c=1))),l.$$set=h=>{"percent"in h&&t(4,u=h.percent),"minWidth"in h&&t(5,f=h.minWidth),"$$scope"in h&&t(6,o=h.$$scope)},l.$$.update=()=>{l.$$.dirty&17&&t(3,i=Math.round(100*u*c)),l.$$.dirty&32&&t(2,r=parseFloat(f)),l.$$.dirty&32&&t(1,s=f.replace(/[^a-z]/gi,""))},[c,s,r,i,u,f,o,n]}class as extends Ne{constructor(e){super(),Ve(this,e,_o,ho,Me,{percent:4,minWidth:5})}}function fr(l){let e,t;return{c(){e=H("h2"),t=se(l[0]),this.h()},l(i){e=j(i,"H2",{class:!0});var r=w(e);t=ne(r,l[0]),r.forEach(_),this.h()},h(){a(e,"class","svelte-1y13wsk")},m(i,r){N(i,e,r),g(e,t)},p(i,r){r&1&&he(t,i[0])},d(i){i&&_(e)}}}function mo(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y,b=l[0]&&fr(l);const T=l[6].default,k=bt(T,l,l[5],null);return{c(){e=H("div"),t=H("button"),i=W("svg"),r=W("title"),s=se("Close"),n=W("line"),o=W("line"),u=ee(),f=H("div"),c=H("section"),b&&b.c(),h=ee(),k&&k.c(),this.h()},l(E){e=j(E,"DIV",{class:!0});var p=w(e);t=j(p,"BUTTON",{title:!0,class:!0});var S=w(t);i=q(S,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var L=w(i);r=q(L,"title",{});var B=w(r);s=ne(B,"Close"),B.forEach(_),n=q(L,"line",{x1:!0,y1:!0,x2:!0,y2:!0}),w(n).forEach(_),o=q(L,"line",{x1:!0,y1:!0,x2:!0,y2:!0}),w(o).forEach(_),L.forEach(_),S.forEach(_),u=te(p),f=j(p,"DIV",{class:!0});var I=w(f);c=j(I,"SECTION",{class:!0});var O=w(c);b&&b.l(O),h=te(O),k&&k.l(O),O.forEach(_),I.forEach(_),p.forEach(_),this.h()},h(){a(n,"x1","1"),a(n,"y1","1"),a(n,"x2","9"),a(n,"y2","9"),a(o,"x1","9"),a(o,"y1","1"),a(o,"x2","1"),a(o,"y2","9"),a(i,"viewBox","0 0 10 10"),a(i,"xmlns","http://www.w3.org/2000/svg"),a(i,"width","24"),a(i,"height","24"),a(i,"class","svelte-1y13wsk"),a(t,"title","Close"),a(t,"class","svelte-1y13wsk"),a(c,"class","svelte-1y13wsk"),oe(c,"no-title",!l[0]),a(f,"class","column svelte-1y13wsk"),a(e,"class","background svelte-1y13wsk")},m(E,p){N(E,e,p),g(e,t),g(t,i),g(i,r),g(r,s),g(i,n),g(i,o),g(e,u),g(e,f),g(f,c),b&&b.m(c,null),g(c,h),k&&k.m(c,null),l[8](e),v=!0,m||(y=[de(window,"keydown",l[4]),de(t,"click",l[7]),de(e,"mousedown",l[2]),de(e,"mouseup",l[3])],m=!0)},p(E,[p]){l=E,l[0]?b?b.p(l,p):(b=fr(l),b.c(),b.m(c,h)):b&&(b.d(1),b=null),k&&k.p&&(!v||p&32)&&pt(k,T,l,l[5],v?wt(T,l[5],p,null):kt(l[5]),null),(!v||p&1)&&oe(c,"no-title",!l[0])},i(E){v||(A(k,E),ct(()=>{!v||(d||(d=et(e,ui,{easing:Ml,duration:250},!0)),d.run(1))}),v=!0)},o(E){R(k,E),d||(d=et(e,ui,{easing:Ml,duration:250},!1)),d.run(0),v=!1},d(E){E&&_(e),b&&b.d(),k&&k.d(E),l[8](null),E&&d&&d.end(),m=!1,$e(y)}}}function go(l,e,t){let{$$slots:i={},$$scope:r}=e,{title:s}=e,n,o;const u=v=>{v.target===n&&(o=v.target)},f=v=>{v.target===o&&(v.preventDefault(),at.set(null))},c=({key:v})=>{v==="Escape"&&at.set(null)},h=()=>at.set(null);function d(v){Ge[v?"unshift":"push"](()=>{n=v,t(1,n)})}return l.$$set=v=>{"title"in v&&t(0,s=v.title),"$$scope"in v&&t(5,r=v.$$scope)},[s,n,u,f,c,r,i,h,d]}class Ul extends Ne{constructor(e){super(),Ve(this,e,go,mo,Me,{title:0})}}function cr(l,e,t){const i=l.slice();return i[11]=e[t],i[13]=t,i}function vo(l){let e=l[2].distribution[l[13]]+"",t,i;return{c(){t=se(e),i=ee()},l(r){t=ne(r,e),i=te(r)},m(r,s){N(r,t,s),N(r,i,s)},p(r,s){s&4&&e!==(e=r[2].distribution[r[13]]+"")&&he(t,e)},d(r){r&&_(t),r&&_(i)}}}function hr(l){let e,t;return e=new as({props:{percent:l[3].guessTotals[l[13]]/l[3].guessCounts[l[13]]/l[5],minWidth:"2.7em",$$slots:{default:[bo]},$$scope:{ctx:l}}}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,r){const s={};r&8&&(s.percent=i[3].guessTotals[i[13]]/i[3].guessCounts[i[13]]/i[5]),r&16392&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function bo(l){let e,t,i;return e=new Dt({props:{ms:l[3].guessTotals[l[13]]/l[3].guessCounts[l[13]],dimming:!1}}),{c(){me(e.$$.fragment),t=ee()},l(r){we(e.$$.fragment,r),t=te(r)},m(r,s){ge(e,r,s),N(r,t,s),i=!0},p(r,s){const n={};s&8&&(n.ms=r[3].guessTotals[r[13]]/r[3].guessCounts[r[13]]),e.$set(n)},i(r){i||(A(e.$$.fragment,r),i=!0)},o(r){R(e.$$.fragment,r),i=!1},d(r){ve(e,r),r&&_(t)}}}function _r(l){let e,t,i=l[13]+1+"",r,s,n,o,u;n=new as({props:{percent:l[2].distribution[l[13]]/l[4],$$slots:{default:[vo]},$$scope:{ctx:l}}});let f=l[3].guessTotals[l[13]]/l[3].guessCounts[l[13]]&&hr(l);return{c(){e=H("tr"),t=H("td"),r=se(i),s=H("td"),me(n.$$.fragment),o=H("td"),f&&f.c(),this.h()},l(c){e=j(c,"TR",{});var h=w(e);t=j(h,"TD",{class:!0});var d=w(t);r=ne(d,i),d.forEach(_),s=j(h,"TD",{class:!0});var v=w(s);we(n.$$.fragment,v),v.forEach(_),o=j(h,"TD",{class:!0});var m=w(o);f&&f.l(m),m.forEach(_),h.forEach(_),this.h()},h(){a(t,"class","svelte-1vjjxcu"),a(s,"class","svelte-1vjjxcu"),a(o,"class","svelte-1vjjxcu")},m(c,h){N(c,e,h),g(e,t),g(t,r),g(e,s),ge(n,s,null),g(e,o),f&&f.m(o,null),u=!0},p(c,h){const d={};h&4&&(d.percent=c[2].distribution[c[13]]/c[4]),h&16388&&(d.$$scope={dirty:h,ctx:c}),n.$set(d),c[3].guessTotals[c[13]]/c[3].guessCounts[c[13]]?f?(f.p(c,h),h&8&&A(f,1)):(f=hr(c),f.c(),A(f,1),f.m(o,null)):f&&(Te(),R(f,1,1,()=>{f=null}),Ie())},i(c){u||(A(n.$$.fragment,c),A(f),u=!0)},o(c){R(n.$$.fragment,c),R(f),u=!1},d(c){c&&_(e),ve(n),f&&f.d()}}}function dr(l){let e,t,i,r,s,n=l[1]("main.stats.fastest_game")+"",o,u,f,c,h,d,v=l[1]("main.stats.average_game")+"",m,y,b,T,k,E,p=l[1]("main.stats.average_guess")+"",S,L;return r=new Dt({props:{ms:l[3].fastestGame,decimals:2}}),h=new Dt({props:{ms:l[7]/l[3].gameCount}}),k=new Dt({props:{ms:l[7]/l[6]}}),{c(){e=H("div"),t=H("div"),i=H("strong"),me(r.$$.fragment),s=ee(),o=se(n),u=ee(),f=H("div"),c=H("strong"),me(h.$$.fragment),d=ee(),m=se(v),y=ee(),b=H("div"),T=H("strong"),me(k.$$.fragment),E=ee(),S=se(p),this.h()},l(B){e=j(B,"DIV",{class:!0,style:!0});var I=w(e);t=j(I,"DIV",{class:!0});var O=w(t);i=j(O,"STRONG",{class:!0});var D=w(i);we(r.$$.fragment,D),D.forEach(_),s=te(O),o=ne(O,n),O.forEach(_),u=te(I),f=j(I,"DIV",{class:!0});var F=w(f);c=j(F,"STRONG",{class:!0});var P=w(c);we(h.$$.fragment,P),P.forEach(_),d=te(F),m=ne(F,v),F.forEach(_),y=te(I),b=j(I,"DIV",{class:!0});var U=w(b);T=j(U,"STRONG",{class:!0});var G=w(T);we(k.$$.fragment,G),G.forEach(_),E=te(U),S=ne(U,p),U.forEach(_),I.forEach(_),this.h()},h(){a(i,"class","svelte-1vjjxcu"),a(t,"class","stats-item svelte-1vjjxcu"),a(c,"class","svelte-1vjjxcu"),a(f,"class","stats-item svelte-1vjjxcu"),a(T,"class","svelte-1vjjxcu"),a(b,"class","stats-item svelte-1vjjxcu"),a(e,"class","stats-container svelte-1vjjxcu"),fe(e,"margin-top","1.5rem")},m(B,I){N(B,e,I),g(e,t),g(t,i),ge(r,i,null),g(t,s),g(t,o),g(e,u),g(e,f),g(f,c),ge(h,c,null),g(f,d),g(f,m),g(e,y),g(e,b),g(b,T),ge(k,T,null),g(b,E),g(b,S),L=!0},p(B,I){const O={};I&8&&(O.ms=B[3].fastestGame),r.$set(O),(!L||I&2)&&n!==(n=B[1]("main.stats.fastest_game")+"")&&he(o,n);const D={};I&8&&(D.ms=B[7]/B[3].gameCount),h.$set(D),(!L||I&2)&&v!==(v=B[1]("main.stats.average_game")+"")&&he(m,v),(!L||I&2)&&p!==(p=B[1]("main.stats.average_guess")+"")&&he(S,p)},i(B){L||(A(r.$$.fragment,B),A(h.$$.fragment,B),A(k.$$.fragment,B),L=!0)},o(B){R(r.$$.fragment,B),R(h.$$.fragment,B),R(k.$$.fragment,B),L=!1},d(B){B&&_(e),ve(r),ve(h),ve(k)}}}function mr(l){let e,t=l[1]("main.stats.stats_daily")+"",i;return{c(){e=H("em"),i=se(t),this.h()},l(r){e=j(r,"EM",{class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"class","svelte-1vjjxcu")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s&2&&t!==(t=r[1]("main.stats.stats_daily")+"")&&he(i,t)},d(r){r&&_(e)}}}function po(l){let e,t,i,r,s=l[2].totalGames+"",n,o,u=l[1]("main.stats.total_games")+"",f,c,h,d,v=Math.round(100*l[2].wonGames/(l[2].totalGames||1))+"",m,y,b,T=l[1]("main.stats.win_rate")+"",k,E,p,S,L=l[2].currentStreak+"",B,I,O=l[1]("main.stats.current_streak")+"",D,F,P,U,G=l[2].bestStreak+"",M,V,J=l[1]("main.stats.best_streak")+"",X,Q,Z,$,K,Y,ue=l[1]("main.stats.winning_guesses")+"",x,re,ke,z=l[1]("main.stats.average_guess_time")+"",ie,le,Se,Re,je,ze,Ye,We=l[1]("main.messages.new")+"",Ke,Qe,ae,pe=l[1]("main.stats.import_export")+"",Je,Pe,Xe={length:jt},Le=[];for(let De=0;DeR(Le[De],1,1,()=>{Le[De]=null});let Ae=l[3].gameCount&&dr(l),qe=l[0]==="random"&&mr(l);return{c(){e=H("section"),t=H("div"),i=H("div"),r=H("strong"),n=se(s),o=ee(),f=se(u),c=ee(),h=H("div"),d=H("strong"),m=se(v),y=se("%"),b=ee(),k=se(T),E=ee(),p=H("div"),S=H("strong"),B=se(L),I=ee(),D=se(O),F=ee(),P=H("div"),U=H("strong"),M=se(G),V=ee(),X=se(J),Q=ee(),Z=H("table"),$=H("tr"),K=H("th"),Y=H("th"),x=se(ue),re=ee(),ke=H("th"),ie=se(z),le=ee();for(let De=0;De{Ae=null}),Ie()),De[0]==="random"?qe?qe.p(De,Ce):(qe=mr(De),qe.c(),qe.m(e,je)):qe&&(qe.d(1),qe=null),(!Pe||Ce&2)&&We!==(We=De[1]("main.messages.new")+"")&&he(Ke,We),(!Pe||Ce&2)&&pe!==(pe=De[1]("main.stats.import_export")+"")&&he(Je,pe)},i(De){if(!Pe){for(let Ce=0;Cet(1,i=m)),Ee(l,ri,m=>t(2,r=m)),Ee(l,si,m=>t(3,s=m));let{gameMode:n}=e;const o=m=>m.reduce((y,b)=>b?Math.max(y,b):y,1),u=o(be(ri).distribution),{guessTotals:f,guessCounts:c}=be(si),h=o(f.map((m,y)=>m/c[y])),d=c.reduce((m,y)=>m+y,0),v=f.reduce((m,y)=>m+y,0);return l.$$set=m=>{"gameMode"in m&&t(0,n=m.gameMode)},[n,i,r,s,u,h,d,v]}class yo extends Ne{constructor(e){super(),Ve(this,e,wo,ko,Me,{gameMode:0})}}function gr(l){let e,t,i,r,s=l[0]("main.results.play_daily")+"",n,o,u;return{c(){e=H("hr"),t=ee(),i=H("div"),r=H("button"),n=se(s),this.h()},l(f){e=j(f,"HR",{class:!0}),t=te(f),i=j(f,"DIV",{class:!0});var c=w(i);r=j(c,"BUTTON",{class:!0});var h=w(r);n=ne(h,s),h.forEach(_),c.forEach(_),this.h()},h(){a(e,"class","svelte-124c0o4"),a(r,"class","svelte-124c0o4"),a(i,"class","center svelte-124c0o4")},m(f,c){N(f,e,c),N(f,t,c),N(f,i,c),g(i,r),g(r,n),o||(u=de(r,"click",l[2]),o=!0)},p(f,c){c&1&&s!==(s=f[0]("main.results.play_daily")+"")&&he(n,s)},d(f){f&&_(e),f&&_(t),f&&_(i),o=!1,u()}}}function Eo(l){let e,t=l[0]("main.tutorial.objective")+"",i,r,s,n=l[0]("main.tutorial.explanation")+"",o,u,f,c,h,d,v,m=l[0]("main.tutorial.correct_tile")+"",y,b,T,k,E,p,S,L=l[0]("main.tutorial.high_tile")+"",B,I,O,D,F,P,U,G=l[0]("main.tutorial.low_tile")+"",M,V,J,X,Q,Z,$,K,Y,ue=l[0]("main.tutorial.letter_range")+"",x,re,ke,z;h=new St({props:{tile:{scored:!0,letter:"p",distance:0,id:0,polarity:0}}}),E=new St({props:{tile:{scored:!0,letter:"d",distance:-1,id:0,polarity:0}}}),F=new St({props:{tile:{scored:!0,letter:"w",distance:1,id:0,polarity:0}}}),$=new St({props:{tile:{scored:!1,letter:"",distance:0,id:0,letterBounds:["e","v"],polarity:0},current:!0,showHint:!0}});let ie=l[1]&&gr(l);return{c(){e=H("p"),i=se(t),r=ee(),s=H("p"),o=se(n),u=ee(),f=H("div"),c=H("div"),me(h.$$.fragment),d=ee(),v=H("p"),y=se(m),b=ee(),T=H("div"),k=H("div"),me(E.$$.fragment),p=ee(),S=H("p"),B=se(L),I=ee(),O=H("div"),D=H("div"),me(F.$$.fragment),P=ee(),U=H("p"),M=se(G),V=ee(),J=H("hr"),X=ee(),Q=H("div"),Z=H("div"),me($.$$.fragment),K=ee(),Y=H("p"),x=se(ue),re=ee(),ie&&ie.c(),ke=_e(),this.h()},l(le){e=j(le,"P",{});var Se=w(e);i=ne(Se,t),Se.forEach(_),r=te(le),s=j(le,"P",{});var Re=w(s);o=ne(Re,n),Re.forEach(_),u=te(le),f=j(le,"DIV",{class:!0});var je=w(f);c=j(je,"DIV",{});var ze=w(c);we(h.$$.fragment,ze),ze.forEach(_),d=te(je),v=j(je,"P",{class:!0});var Ye=w(v);y=ne(Ye,m),Ye.forEach(_),je.forEach(_),b=te(le),T=j(le,"DIV",{class:!0});var We=w(T);k=j(We,"DIV",{});var Ke=w(k);we(E.$$.fragment,Ke),Ke.forEach(_),p=te(We),S=j(We,"P",{class:!0});var Qe=w(S);B=ne(Qe,L),Qe.forEach(_),We.forEach(_),I=te(le),O=j(le,"DIV",{class:!0});var ae=w(O);D=j(ae,"DIV",{});var pe=w(D);we(F.$$.fragment,pe),pe.forEach(_),P=te(ae),U=j(ae,"P",{class:!0});var Je=w(U);M=ne(Je,G),Je.forEach(_),ae.forEach(_),V=te(le),J=j(le,"HR",{class:!0}),X=te(le),Q=j(le,"DIV",{class:!0});var Pe=w(Q);Z=j(Pe,"DIV",{});var Xe=w(Z);we($.$$.fragment,Xe),Xe.forEach(_),K=te(Pe),Y=j(Pe,"P",{class:!0});var Le=w(Y);x=ne(Le,ue),Le.forEach(_),Pe.forEach(_),re=te(le),ie&&ie.l(le),ke=_e(),this.h()},h(){a(v,"class","svelte-124c0o4"),a(f,"class","row svelte-124c0o4"),a(S,"class","svelte-124c0o4"),a(T,"class","row svelte-124c0o4"),a(U,"class","svelte-124c0o4"),a(O,"class","row svelte-124c0o4"),a(J,"class","svelte-124c0o4"),a(Y,"class","svelte-124c0o4"),a(Q,"class","row svelte-124c0o4")},m(le,Se){N(le,e,Se),g(e,i),N(le,r,Se),N(le,s,Se),g(s,o),N(le,u,Se),N(le,f,Se),g(f,c),ge(h,c,null),g(f,d),g(f,v),g(v,y),N(le,b,Se),N(le,T,Se),g(T,k),ge(E,k,null),g(T,p),g(T,S),g(S,B),N(le,I,Se),N(le,O,Se),g(O,D),ge(F,D,null),g(O,P),g(O,U),g(U,M),N(le,V,Se),N(le,J,Se),N(le,X,Se),N(le,Q,Se),g(Q,Z),ge($,Z,null),g(Q,K),g(Q,Y),g(Y,x),N(le,re,Se),ie&&ie.m(le,Se),N(le,ke,Se),z=!0},p(le,Se){(!z||Se&1)&&t!==(t=le[0]("main.tutorial.objective")+"")&&he(i,t),(!z||Se&1)&&n!==(n=le[0]("main.tutorial.explanation")+"")&&he(o,n),(!z||Se&1)&&m!==(m=le[0]("main.tutorial.correct_tile")+"")&&he(y,m),(!z||Se&1)&&L!==(L=le[0]("main.tutorial.high_tile")+"")&&he(B,L),(!z||Se&1)&&G!==(G=le[0]("main.tutorial.low_tile")+"")&&he(M,G),(!z||Se&1)&&ue!==(ue=le[0]("main.tutorial.letter_range")+"")&&he(x,ue),le[1]?ie?ie.p(le,Se):(ie=gr(le),ie.c(),ie.m(ke.parentNode,ke)):ie&&(ie.d(1),ie=null)},i(le){z||(A(h.$$.fragment,le),A(E.$$.fragment,le),A(F.$$.fragment,le),A($.$$.fragment,le),z=!0)},o(le){R(h.$$.fragment,le),R(E.$$.fragment,le),R(F.$$.fragment,le),R($.$$.fragment,le),z=!1},d(le){le&&_(e),le&&_(r),le&&_(s),le&&_(u),le&&_(f),ve(h),le&&_(b),le&&_(T),ve(E),le&&_(I),le&&_(O),ve(F),le&&_(V),le&&_(J),le&&_(X),le&&_(Q),ve($),le&&_(re),ie&&ie.d(le),le&&_(ke)}}}function To(l){let e,t;return e=new Ul({props:{title:l[0]("main.tutorial.title"),$$slots:{default:[Eo]},$$scope:{ctx:l}}}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,[r]){const s={};r&1&&(s.title=i[0]("main.tutorial.title")),r&11&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Io(l,e,t){let i,r;return Ee(l,Ze,n=>t(0,i=n)),Ee(l,is,n=>t(1,r=n)),[i,r,()=>at.set(null)]}class So extends Ne{constructor(e){super(),Ve(this,e,Io,To,Me,{})}}function Do(l,e){const t=l.getBoundingClientRect(),i=e.getBoundingClientRect(),r={};return r.top=t.top<0,r.left=t.left<0,r.bottom=t.bottom+i.height>(window.innerHeight||document.documentElement.clientHeight),r.right=t.right>(window.innerWidth||document.documentElement.clientWidth),r.any=r.top||r.left||r.bottom||r.right,r}function Co(l){let e,t=l[0](l[1],l[2])+"",i;return{c(){e=H("div"),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);s.forEach(_),this.h()},h(){a(e,"class",i="item "+l[3]+" svelte-3e0qet")},m(r,s){N(r,e,s),e.innerHTML=t},p(r,[s]){s&7&&t!==(t=r[0](r[1],r[2])+"")&&(e.innerHTML=t),s&8&&i!==(i="item "+r[3]+" svelte-3e0qet")&&a(e,"class",i)},i:ce,o:ce,d(r){r&&_(e)}}}function Mo(l,e,t){let{isActive:i=!1}=e,{isFirst:r=!1}=e,{isHover:s=!1}=e,{isSelectable:n=!1}=e,{getOptionLabel:o=void 0}=e,{item:u=void 0}=e,{filterText:f=""}=e,c="";return l.$$set=h=>{"isActive"in h&&t(4,i=h.isActive),"isFirst"in h&&t(5,r=h.isFirst),"isHover"in h&&t(6,s=h.isHover),"isSelectable"in h&&t(7,n=h.isSelectable),"getOptionLabel"in h&&t(0,o=h.getOptionLabel),"item"in h&&t(1,u=h.item),"filterText"in h&&t(2,f=h.filterText)},l.$$.update=()=>{if(l.$$.dirty&242){const h=[];i&&h.push("active"),r&&h.push("first"),s&&h.push("hover"),u.isGroupHeader&&h.push("groupHeader"),u.isGroupItem&&h.push("groupItem"),n||h.push("notSelectable"),t(3,c=h.join(" "))}},[o,u,f,c,i,r,s,n]}class os extends Ne{constructor(e){super(),Ve(this,e,Mo,Co,Me,{isActive:4,isFirst:5,isHover:6,isSelectable:7,getOptionLabel:0,item:1,filterText:2})}}function vr(l,e,t){const i=l.slice();return i[41]=e[t],i[42]=t,i}function Lo(l){let e,t,i=l[1],r=[];for(let o=0;oR(r[o],1,1,()=>{r[o]=null});let n=null;return i.length||(n=br(l)),{c(){for(let o=0;o({41:o,42:u}),({item:o,i:u})=>[0,(o?1024:0)|(u?2048:0)]]},$$scope:{ctx:n}}}}return r&&(e=Ue(r,s(l))),{c(){e&&me(e.$$.fragment),t=_e()},l(n){e&&we(e.$$.fragment,n),t=_e()},m(n,o){e&&ge(e,n,o),N(n,t,o),i=!0},p(n,o){const u={};if(o[0]&2&&(u.items=n[1]),o[0]&256&&(u.itemHeight=n[8]),o[0]&9814|o[1]&11264&&(u.$$scope={dirty:o,ctx:n}),o[0]&8&&r!==(r=n[3])){if(e){Te();const f=e;R(f.$$.fragment,1,0,()=>{ve(f,1)}),Ie()}r?(e=Ue(r,s(n)),me(e.$$.fragment),A(e.$$.fragment,1),ge(e,t.parentNode,t)):e=null}else r&&e.$set(u)},i(n){i||(e&&A(e.$$.fragment,n),i=!0)},o(n){e&&R(e.$$.fragment,n),i=!1},d(n){n&&_(t),e&&ve(e,n)}}}function br(l){let e,t=!l[11]&&pr(l);return{c(){t&&t.c(),e=_e()},l(i){t&&t.l(i),e=_e()},m(i,r){t&&t.m(i,r),N(i,e,r)},p(i,r){i[11]?t&&(t.d(1),t=null):t?t.p(i,r):(t=pr(i),t.c(),t.m(e.parentNode,e))},d(i){t&&t.d(i),i&&_(e)}}}function pr(l){let e,t;return{c(){e=H("div"),t=se(l[12]),this.h()},l(i){e=j(i,"DIV",{class:!0});var r=w(e);t=ne(r,l[12]),r.forEach(_),this.h()},h(){a(e,"class","empty svelte-1uyqfml")},m(i,r){N(i,e,r),g(e,t)},p(i,r){r[0]&4096&&he(t,i[12])},d(i){i&&_(e)}}}function No(l){let e,t,i,r,s,n;var o=l[4];function u(d){return{props:{item:d[41],filterText:d[13],getOptionLabel:d[6],isFirst:Vl(d[42]),isActive:ol(d[41],d[9],d[10]),isHover:ul(d[2],d[41],d[42],d[1]),isSelectable:Ct(d[41])}}}o&&(t=Ue(o,u(l)));function f(){return l[29](l[42])}function c(){return l[30](l[42])}function h(...d){return l[31](l[41],l[42],...d)}return{c(){e=H("div"),t&&me(t.$$.fragment),i=ee(),this.h()},l(d){e=j(d,"DIV",{class:!0,tabindex:!0});var v=w(e);t&&we(t.$$.fragment,v),i=te(v),v.forEach(_),this.h()},h(){a(e,"class","listItem"),a(e,"tabindex","-1")},m(d,v){N(d,e,v),t&&ge(t,e,null),g(e,i),r=!0,s||(n=[de(e,"mouseover",f),de(e,"focus",c),de(e,"click",h)],s=!0)},p(d,v){l=d;const m={};if(v[0]&2&&(m.item=l[41]),v[0]&8192&&(m.filterText=l[13]),v[0]&64&&(m.getOptionLabel=l[6]),v[0]&1538&&(m.isActive=ol(l[41],l[9],l[10])),v[0]&6&&(m.isHover=ul(l[2],l[41],l[42],l[1])),v[0]&2&&(m.isSelectable=Ct(l[41])),v[0]&16&&o!==(o=l[4])){if(t){Te();const y=t;R(y.$$.fragment,1,0,()=>{ve(y,1)}),Ie()}o?(t=Ue(o,u(l)),me(t.$$.fragment),A(t.$$.fragment,1),ge(t,e,i)):t=null}else o&&t.$set(m)},i(d){r||(t&&A(t.$$.fragment,d),r=!0)},o(d){t&&R(t.$$.fragment,d),r=!1},d(d){d&&_(e),t&&ve(t),s=!1,$e(n)}}}function Vo(l){let e,t=l[7](l[41])+"",i;return{c(){e=H("div"),i=se(t),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"class","listGroupTitle svelte-1uyqfml")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s[0]&130&&t!==(t=r[7](r[41])+"")&&he(i,t)},i:ce,o:ce,d(r){r&&_(e)}}}function kr(l){let e,t,i,r;const s=[Vo,No],n=[];function o(u,f){return u[41].isGroupHeader&&!u[41].isSelectable?0:1}return e=o(l),t=n[e]=s[e](l),{c(){t.c(),i=_e()},l(u){t.l(u),i=_e()},m(u,f){n[e].m(u,f),N(u,i,f),r=!0},p(u,f){let c=e;e=o(u),e===c?n[e].p(u,f):(Te(),R(n[c],1,1,()=>{n[c]=null}),Ie(),t=n[e],t?t.p(u,f):(t=n[e]=s[e](u),t.c()),A(t,1),t.m(i.parentNode,i))},i(u){r||(A(t),r=!0)},o(u){R(t),r=!1},d(u){n[e].d(u),u&&_(i)}}}function Ho(l){let e,t,i,r,s;var n=l[4];function o(h){return{props:{item:h[41],filterText:h[13],getOptionLabel:h[6],isFirst:Vl(h[42]),isActive:ol(h[41],h[9],h[10]),isHover:ul(h[2],h[41],h[42],h[1]),isSelectable:Ct(h[41])}}}n&&(t=Ue(n,o(l)));function u(){return l[26](l[42])}function f(){return l[27](l[42])}function c(...h){return l[28](l[41],l[42],...h)}return{c(){e=H("div"),t&&me(t.$$.fragment),this.h()},l(h){e=j(h,"DIV",{class:!0});var d=w(e);t&&we(t.$$.fragment,d),d.forEach(_),this.h()},h(){a(e,"class","listItem")},m(h,d){N(h,e,d),t&&ge(t,e,null),i=!0,r||(s=[de(e,"mouseover",u),de(e,"focus",f),de(e,"click",c)],r=!0)},p(h,d){l=h;const v={};if(d[1]&1024&&(v.item=l[41]),d[0]&8192&&(v.filterText=l[13]),d[0]&64&&(v.getOptionLabel=l[6]),d[1]&2048&&(v.isFirst=Vl(l[42])),d[0]&1536|d[1]&1024&&(v.isActive=ol(l[41],l[9],l[10])),d[0]&6|d[1]&3072&&(v.isHover=ul(l[2],l[41],l[42],l[1])),d[1]&1024&&(v.isSelectable=Ct(l[41])),d[0]&16&&n!==(n=l[4])){if(t){Te();const m=t;R(m.$$.fragment,1,0,()=>{ve(m,1)}),Ie()}n?(t=Ue(n,o(l)),me(t.$$.fragment),A(t.$$.fragment,1),ge(t,e,null)):t=null}else n&&t.$set(v)},i(h){i||(t&&A(t.$$.fragment,h),i=!0)},o(h){t&&R(t.$$.fragment,h),i=!1},d(h){h&&_(e),t&&ve(t),r=!1,$e(s)}}}function jo(l){let e,t,i,r,s,n;const o=[Oo,Lo],u=[];function f(c,h){return c[5]?0:1}return t=f(l),i=u[t]=o[t](l),{c(){e=H("div"),i.c(),this.h()},l(c){e=j(c,"DIV",{class:!0,style:!0});var h=w(e);i.l(h),h.forEach(_),this.h()},h(){a(e,"class","listContainer svelte-1uyqfml"),a(e,"style",l[14]),oe(e,"virtualList",l[5])},m(c,h){N(c,e,h),u[t].m(e,null),l[32](e),r=!0,s||(n=[de(window,"keydown",l[17]),de(window,"resize",l[18])],s=!0)},p(c,h){let d=t;t=f(c),t===d?u[t].p(c,h):(Te(),R(u[d],1,1,()=>{u[d]=null}),Ie(),i=u[t],i?i.p(c,h):(i=u[t]=o[t](c),i.c()),A(i,1),i.m(e,null)),(!r||h[0]&16384)&&a(e,"style",c[14]),(!r||h[0]&32)&&oe(e,"virtualList",c[5])},i(c){r||(A(i),r=!0)},o(c){R(i),r=!1},d(c){c&&_(e),u[t].d(),l[32](null),s=!1,$e(n)}}}function ol(l,e,t){return e&&e[t]===l[t]}function Vl(l){return l===0}function ul(l,e,t,i){return Ct(e)&&(l===t||i.length===1)}function Ct(l){return l.isGroupHeader&&l.isSelectable||l.selectable||!l.hasOwnProperty("selectable")}function Bo(l,e,t){const i=hl();let{container:r=void 0}=e,{VirtualList:s=null}=e,{Item:n=os}=e,{isVirtualList:o=!1}=e,{items:u=[]}=e,{labelIdentifier:f="label"}=e,{getOptionLabel:c=(z,ie)=>{if(z)return z.isCreator?`Create "${ie}"`:z[f]}}=e,{getGroupHeaderLabel:h=null}=e,{itemHeight:d=40}=e,{hoverItemIndex:v=0}=e,{value:m=void 0}=e,{optionIdentifier:y="value"}=e,{hideEmptyState:b=!1}=e,{noOptionsMessage:T="No options"}=e,{isMulti:k=!1}=e,{activeItemIndex:E=0}=e,{filterText:p=""}=e,{parent:S=null}=e,{listPlacement:L=null}=e,{listAutoWidth:B=null}=e,{listOffset:I=5}=e,O=0,D=!1,F;tt(()=>{if(u.length>0&&!k&&m){const z=u.findIndex(ie=>ie[y]===m[y]);z&&t(2,v=z)}X("active"),r.addEventListener("scroll",()=>{clearTimeout(O),O=setTimeout(()=>{D=!1},100)},!1)}),Bl(()=>{u||t(1,u=[]),u!==F&&u.length>0&&t(2,v=0),F=u});function P(z){z.isCreator||i("itemSelected",z)}function U(z){D||t(2,v=z)}function G(z){const{item:ie,i:le,event:Se}=z;if(Se.stopPropagation(),m&&!k&&m[y]===ie[y])return M();ie.isCreator?i("itemCreated",p):Ct(ie)&&(t(19,E=le),t(2,v=le),P(ie))}function M(){i("closeList")}async function V(z){if(o)return;let ie=!0;for(;ie;)z>0&&v===u.length-1?t(2,v=0):z<0&&v===0?t(2,v=u.length-1):t(2,v=v+z),ie=!Ct(u[v]);await it(),X("hover")}function J(z){switch(z.key){case"Escape":z.preventDefault(),M();break;case"ArrowDown":z.preventDefault(),u.length&&V(1);break;case"ArrowUp":z.preventDefault(),u.length&&V(-1);break;case"Enter":if(z.preventDefault(),u.length===0)break;const ie=u[v];if(m&&!k&&m[y]===ie[y]){M();break}ie.isCreator?i("itemCreated",p):(t(19,E=v),P(u[v]));break;case"Tab":if(z.preventDefault(),u.length===0||m&&m[y]===u[v][y])return M();t(19,E=v),P(u[v]);break}}function X(z){if(o||!r)return;let ie;const le=r.querySelector(`.listItem .${z}`);le&&(ie=r.getBoundingClientRect().bottom-le.getBoundingClientRect().bottom),t(0,r.scrollTop-=ie,r)}let Q;function Z(){const{height:z,width:ie}=S.getBoundingClientRect();t(14,Q=""),t(14,Q+=`min-width:${ie}px;width:${B?"auto":"100%"};`),L==="top"||L==="auto"&&Do(S,r).bottom?t(14,Q+=`bottom:${z+I}px;`):t(14,Q+=`top:${z+I}px;`)}const $=z=>U(z),K=z=>U(z),Y=(z,ie,le)=>G({item:z,i:ie,event:le}),ue=z=>U(z),x=z=>U(z),re=(z,ie,le)=>G({item:z,i:ie,event:le});function ke(z){Ge[z?"unshift":"push"](()=>{r=z,t(0,r)})}return l.$$set=z=>{"container"in z&&t(0,r=z.container),"VirtualList"in z&&t(3,s=z.VirtualList),"Item"in z&&t(4,n=z.Item),"isVirtualList"in z&&t(5,o=z.isVirtualList),"items"in z&&t(1,u=z.items),"labelIdentifier"in z&&t(20,f=z.labelIdentifier),"getOptionLabel"in z&&t(6,c=z.getOptionLabel),"getGroupHeaderLabel"in z&&t(7,h=z.getGroupHeaderLabel),"itemHeight"in z&&t(8,d=z.itemHeight),"hoverItemIndex"in z&&t(2,v=z.hoverItemIndex),"value"in z&&t(9,m=z.value),"optionIdentifier"in z&&t(10,y=z.optionIdentifier),"hideEmptyState"in z&&t(11,b=z.hideEmptyState),"noOptionsMessage"in z&&t(12,T=z.noOptionsMessage),"isMulti"in z&&t(21,k=z.isMulti),"activeItemIndex"in z&&t(19,E=z.activeItemIndex),"filterText"in z&&t(13,p=z.filterText),"parent"in z&&t(22,S=z.parent),"listPlacement"in z&&t(23,L=z.listPlacement),"listAutoWidth"in z&&t(24,B=z.listAutoWidth),"listOffset"in z&&t(25,I=z.listOffset)},l.$$.update=()=>{l.$$.dirty[0]&4194305&&S&&r&&Z()},[r,u,v,s,n,o,c,h,d,m,y,b,T,p,Q,U,G,J,Z,E,f,k,S,L,B,I,$,K,Y,ue,x,re,ke]}class Po extends Ne{constructor(e){super(),Ve(this,e,Bo,jo,Me,{container:0,VirtualList:3,Item:4,isVirtualList:5,items:1,labelIdentifier:20,getOptionLabel:6,getGroupHeaderLabel:7,itemHeight:8,hoverItemIndex:2,value:9,optionIdentifier:10,hideEmptyState:11,noOptionsMessage:12,isMulti:21,activeItemIndex:19,filterText:13,parent:22,listPlacement:23,listAutoWidth:24,listOffset:25},null,[-1,-1])}}function Ao(l){let e,t=l[0](l[1])+"";return{c(){e=H("div"),this.h()},l(i){e=j(i,"DIV",{class:!0});var r=w(e);r.forEach(_),this.h()},h(){a(e,"class","selection svelte-pu1q1n")},m(i,r){N(i,e,r),e.innerHTML=t},p(i,[r]){r&3&&t!==(t=i[0](i[1])+"")&&(e.innerHTML=t)},i:ce,o:ce,d(i){i&&_(e)}}}function Go(l,e,t){let{getSelectionLabel:i=void 0}=e,{item:r=void 0}=e;return l.$$set=s=>{"getSelectionLabel"in s&&t(0,i=s.getSelectionLabel),"item"in s&&t(1,r=s.item)},[i,r]}class Fo extends Ne{constructor(e){super(),Ve(this,e,Go,Ao,Me,{getSelectionLabel:0,item:1})}}function wr(l,e,t){const i=l.slice();return i[9]=e[t],i[11]=t,i}function yr(l){let e,t,i,r,s;function n(...o){return l[6](l[11],...o)}return{c(){e=H("div"),t=W("svg"),i=W("path"),this.h()},l(o){e=j(o,"DIV",{class:!0});var u=w(e);t=q(u,"svg",{width:!0,height:!0,viewBox:!0,focusable:!0,"aria-hidden":!0,role:!0,class:!0});var f=w(t);i=q(f,"path",{d:!0}),w(i).forEach(_),f.forEach(_),u.forEach(_),this.h()},h(){a(i,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124 l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),a(t,"width","100%"),a(t,"height","100%"),a(t,"viewBox","-2 -2 50 50"),a(t,"focusable","false"),a(t,"aria-hidden","true"),a(t,"role","presentation"),a(t,"class","svelte-liu9pa"),a(e,"class","multiSelectItem_clear svelte-liu9pa")},m(o,u){N(o,e,u),g(e,t),g(t,i),r||(s=de(e,"click",n),r=!0)},p(o,u){l=o},d(o){o&&_(e),r=!1,s()}}}function Er(l){let e,t,i=l[4](l[9])+"",r,s,n,o,u,f=!l[2]&&!l[3]&&yr(l);function c(...h){return l[7](l[11],...h)}return{c(){e=H("div"),t=H("div"),r=ee(),f&&f.c(),s=ee(),this.h()},l(h){e=j(h,"DIV",{class:!0});var d=w(e);t=j(d,"DIV",{class:!0});var v=w(t);v.forEach(_),r=te(d),f&&f.l(d),s=te(d),d.forEach(_),this.h()},h(){a(t,"class","multiSelectItem_label svelte-liu9pa"),a(e,"class",n="multiSelectItem "+(l[1]===l[11]?"active":"")+" "+(l[2]?"disabled":"")+" svelte-liu9pa")},m(h,d){N(h,e,d),g(e,t),t.innerHTML=i,g(e,r),f&&f.m(e,null),g(e,s),o||(u=de(e,"click",c),o=!0)},p(h,d){l=h,d&17&&i!==(i=l[4](l[9])+"")&&(t.innerHTML=i),!l[2]&&!l[3]?f?f.p(l,d):(f=yr(l),f.c(),f.m(e,s)):f&&(f.d(1),f=null),d&6&&n!==(n="multiSelectItem "+(l[1]===l[11]?"active":"")+" "+(l[2]?"disabled":"")+" svelte-liu9pa")&&a(e,"class",n)},d(h){h&&_(e),f&&f.d(),o=!1,u()}}}function zo(l){let e,t=l[0],i=[];for(let r=0;rf(d,v),h=(d,v)=>o?f(d,v):{};return l.$$set=d=>{"value"in d&&t(0,r=d.value),"activeValue"in d&&t(1,s=d.activeValue),"isDisabled"in d&&t(2,n=d.isDisabled),"multiFullItemClearable"in d&&t(3,o=d.multiFullItemClearable),"getSelectionLabel"in d&&t(4,u=d.getSelectionLabel)},[r,s,n,o,u,f,c,h]}class Wo extends Ne{constructor(e){super(),Ve(this,e,Ro,zo,Me,{value:0,activeValue:1,isDisabled:2,multiFullItemClearable:3,getSelectionLabel:4})}}function Tr(l,e,t){const i=l.slice();return i[23]=e[t],i}const qo=l=>({item:l&32,i:l&32,hoverItemIndex:l&2}),Ir=l=>({item:l[23].data,i:l[23].index,hoverItemIndex:l[1]});function Uo(l){let e;return{c(){e=se("Missing template")},l(t){e=ne(t,"Missing template")},m(t,i){N(t,e,i)},d(t){t&&_(e)}}}function Sr(l,e){let t,i,r;const s=e[15].default,n=bt(s,e,e[14],Ir),o=n||Uo();return{key:l,first:null,c(){t=H("svelte-virtual-list-row"),o&&o.c(),i=ee(),this.h()},l(u){t=j(u,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var f=w(t);o&&o.l(f),i=te(f),f.forEach(_),this.h()},h(){Tl(t,"class","svelte-g2cagw"),this.first=t},m(u,f){N(u,t,f),o&&o.m(t,null),g(t,i),r=!0},p(u,f){e=u,n&&n.p&&(!r||f&16418)&&pt(n,s,e,e[14],r?wt(s,e[14],f,qo):kt(e[14]),Ir)},i(u){r||(A(o,u),r=!0)},o(u){R(o,u),r=!1},d(u){u&&_(t),o&&o.d(u)}}}function Yo(l){let e,t,i=[],r=new Map,s,n,o,u,f=l[5];const c=h=>h[23].index;for(let h=0;hl[18].call(e))},m(h,d){N(h,e,d),g(e,t);for(let v=0;vD){t(9,f=P),t(6,k=U);break}U+=M,P+=1}for(;PD+y)););t(10,c=P);const G=s.length-c;for(p=U/c;P{d=m.getElementsByTagName("svelte-virtual-list-row"),t(13,T=!0)});function B(D){Ge[D?"unshift":"push"](()=>{m=D,t(4,m)})}function I(D){Ge[D?"unshift":"push"](()=>{v=D,t(3,v)})}function O(){y=this.offsetHeight,t(2,y)}return l.$$set=D=>{"items"in D&&t(11,s=D.items),"height"in D&&t(0,n=D.height),"itemHeight"in D&&t(12,o=D.itemHeight),"hoverItemIndex"in D&&t(1,u=D.hoverItemIndex),"start"in D&&t(9,f=D.start),"end"in D&&t(10,c=D.end),"$$scope"in D&&t(14,r=D.$$scope)},l.$$.update=()=>{l.$$.dirty&3584&&t(5,b=s.slice(f,c).map((D,F)=>({index:F+f,data:D}))),l.$$.dirty&14340&&T&&S(s,y,o)},[n,u,y,v,m,b,k,E,L,f,c,s,o,T,r,i,B,I,O]}class Xo extends Ne{constructor(e){super(),Ve(this,e,Jo,Yo,Me,{items:11,height:0,itemHeight:12,hoverItemIndex:1,start:9,end:10})}}function Ko(l){let e,t;return{c(){e=W("svg"),t=W("path"),this.h()},l(i){e=q(i,"svg",{width:!0,height:!0,viewBox:!0,focusable:!0,"aria-hidden":!0,role:!0});var r=w(e);t=q(r,"path",{fill:!0,d:!0}),w(t).forEach(_),r.forEach(_),this.h()},h(){a(t,"fill","currentColor"),a(t,"d",`M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124 +`+vn(x)+re+ke).then(()=>E(be(Ze)("main.messages.score_copied")),()=>p())}async function I(){t(1,d=!1);const{hash:x,dayNumber:re}=be(Ft);bn(m,{highContrast:be(Dl),boardContent:be(dl),guesses:be(yl),caption:b,guessTimes:be(Gt)?be(Sl):void 0,totalTime:be(Gt)?be(Il):void 0,showURL:be(Qt),hash:x||void 0,hideArrows:be($t),tileSharpness:be(Zs)}),m.toBlob(ke=>{y=ke,ci(y,`${x||re}`)}),t(2,v=!0),It("resultShare"),m.scrollIntoView({block:"center"})}async function O(){const x=await zt(()=>import("./canvas-1ce0cc6a.js"),["chunks/canvas-1ce0cc6a.js","chunks/preload-helper-5ea9bf72.js","chunks/index-0dc809ca.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/index-83aebdf3.js","chunks/share-84c0610e.js","chunks/paths-396f020f.js"]),re=be(Qs);x.drawLandscapeToCanvas(m,be(Qr),{color:re,highContrast:be(Dl)}),m.toBlob(ie=>{y=ie,ci(y,`${ke||z}-landscape${re?"-color":""}`)}),t(2,v=!0),It("landscapeShare");const{hash:ke,dayNumber:z}=be(Ft);m.scrollIntoView({block:"center"})}function D(){try{pn(y),t(2,v=!1),E(be(Ze)("main.messages.image_copied"))}catch{p()}}const F=Js(be(es)).getTime();let P=Ft(5,P=F(b=mn({gameWon:be(Xs),guesses:be(yl),gameMode:be(Ft).mode,hardMode:be(Ks),day:be(Ft).dayNumber}),()=>clearInterval(U)));const G=({key:x})=>x==="Escape"&&t(2,v=!1),M=()=>t(1,d=!0),V=()=>al(ts()),J=()=>o.set(!s),X=()=>u.set(!n),Q=()=>{t(4,T=!0),setTimeout(()=>t(4,T=!1),2e3),f.set(!0)},Z=()=>It("promoLinkFollow"),$=()=>It("promoLinkFollow");function K(x){Ge[x?"unshift":"push"](()=>{m=x,t(3,m)})}const Y=()=>t(2,v=!1),ue=()=>t(2,v=!1);return l.$$set=x=>{"gameMode"in x&&t(0,h=x.gameMode)},[h,d,v,m,T,P,i,r,s,n,o,u,f,c,L,B,I,O,D,F,G,M,V,J,X,Q,Z,$,K,Y,ue]}class xa extends Ne{constructor(e){super(),Ve(this,e,$a,Qa,Me,{gameMode:0},null,[-1,-1])}}function rr(l,e,t){const i=l.slice();return i[9]=e[t],i[11]=t,i}function sr(l,e,t){const i=l.slice();return i[12]=e[t],i}function nr(l){let e;function t(s,n){return s[1]?to:eo}let i=t(l),r=i(l);return{c(){r.c(),e=_e()},l(s){r.l(s),e=_e()},m(s,n){r.m(s,n),N(s,e,n)},p(s,n){i===(i=t(s))&&r?r.p(s,n):(r.d(1),r=i(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){r.d(s),s&&_(e)}}}function eo(l){let e,t=l[2]("main.keyboard.enter")+"",i,r,s;return{c(){e=H("button"),i=se(t),this.h()},l(n){e=j(n,"BUTTON",{class:!0});var o=w(e);i=ne(o,t),o.forEach(_),this.h()},h(){a(e,"class","wide svelte-3eylyc")},m(n,o){N(n,e,o),g(e,i),r||(s=de(e,"click",Fl),r=!0)},p(n,o){o&4&&t!==(t=n[2]("main.keyboard.enter")+"")&&he(i,t)},d(n){n&&_(e),r=!1,s()}}}function to(l){let e,t,i,r,s,n,o;return{c(){e=H("button"),t=W("svg"),i=W("line"),r=W("polygon"),s=W("line"),this.h()},l(u){e=j(u,"BUTTON",{class:!0});var f=w(e);t=q(f,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var c=w(t);i=q(c,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),w(i).forEach(_),r=q(c,"polygon",{points:!0}),w(r).forEach(_),s=q(c,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),w(s).forEach(_),c.forEach(_),f.forEach(_),this.h()},h(){a(i,"x1","7"),a(i,"x2","21"),a(i,"y1","5"),a(i,"y2","5"),a(r,"points","3,5 7,2 7,8"),a(s,"x1","1"),a(s,"x2","1"),a(s,"y1","0.5"),a(s,"y2","9.5"),a(t,"viewBox","0 0 21 11"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","42"),a(t,"height","22"),a(t,"class","svelte-3eylyc"),a(e,"class","wide svelte-3eylyc")},m(u,f){N(u,e,f),g(e,t),g(t,i),g(t,r),g(t,s),n||(o=de(e,"click",l[6]),n=!0)},p:ce,d(u){u&&_(e),n=!1,o()}}}function ar(l){let e,t=l[12]+"",i,r,s;function n(){return l[7](l[12])}return{c(){e=H("button"),i=se(t),this.h()},l(o){e=j(o,"BUTTON",{class:!0});var u=w(e);i=ne(u,t),u.forEach(_),this.h()},h(){a(e,"class","svelte-3eylyc"),oe(e,"correct",l[3].size===1&&l[3].has(l[12])),oe(e,"invalid",!l[3].has(l[12]))},m(o,u){N(o,e,u),g(e,i),r||(s=de(e,"click",n),r=!0)},p(o,u){l=o,u&1&&t!==(t=l[12]+"")&&he(i,t),u&9&&oe(e,"correct",l[3].size===1&&l[3].has(l[12])),u&9&&oe(e,"invalid",!l[3].has(l[12]))},d(o){o&&_(e),r=!1,s()}}}function or(l){let e;function t(s,n){return s[1]?io:lo}let i=t(l),r=i(l);return{c(){r.c(),e=_e()},l(s){r.l(s),e=_e()},m(s,n){r.m(s,n),N(s,e,n)},p(s,n){i===(i=t(s))&&r?r.p(s,n):(r.d(1),r=i(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){r.d(s),s&&_(e)}}}function lo(l){let e,t,i,r,s,n,o;return{c(){e=H("button"),t=W("svg"),i=W("line"),r=W("polygon"),s=W("line"),this.h()},l(u){e=j(u,"BUTTON",{class:!0});var f=w(e);t=q(f,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var c=w(t);i=q(c,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),w(i).forEach(_),r=q(c,"polygon",{points:!0}),w(r).forEach(_),s=q(c,"line",{x1:!0,x2:!0,y1:!0,y2:!0}),w(s).forEach(_),c.forEach(_),f.forEach(_),this.h()},h(){a(i,"x1","7"),a(i,"x2","21"),a(i,"y1","5"),a(i,"y2","5"),a(r,"points","3,5 7,2 7,8"),a(s,"x1","1"),a(s,"x2","1"),a(s,"y1","0.5"),a(s,"y2","9.5"),a(t,"viewBox","0 0 21 11"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","42"),a(t,"height","22"),a(t,"class","svelte-3eylyc"),a(e,"class","wide svelte-3eylyc")},m(u,f){N(u,e,f),g(e,t),g(t,i),g(t,r),g(t,s),n||(o=de(e,"click",l[8]),n=!0)},p:ce,d(u){u&&_(e),n=!1,o()}}}function io(l){let e,t=l[2]("main.keyboard.enter")+"",i,r,s;return{c(){e=H("button"),i=se(t),this.h()},l(n){e=j(n,"BUTTON",{class:!0});var o=w(e);i=ne(o,t),o.forEach(_),this.h()},h(){a(e,"class","wide svelte-3eylyc")},m(n,o){N(n,e,o),g(e,i),r||(s=de(e,"click",Fl),r=!0)},p(n,o){o&4&&t!==(t=n[2]("main.keyboard.enter")+"")&&he(i,t)},d(n){n&&_(e),r=!1,s()}}}function ur(l){let e,t,i,r,s=l[11]===l[0].wideKeysRow&&nr(l),n=l[9],o=[];for(let f=0;ft(5,r=d)),Ee(l,Cl,d=>t(1,s=d)),Ee(l,Ze,d=>t(2,n=d)),Ee(l,xs,d=>t(3,o=d));function u({key:d,ctrlKey:v,target:m,repeat:y}){v||y||be(at)!==null||(d==="Backspace"&&xt(),d==="Delete"&&xt(!1),d==="Enter"&&(m instanceof HTMLButtonElement?setTimeout(()=>m.blur()):Fl()),d==="ArrowLeft"&&li(-1),d==="ArrowRight"&&li(1),d=d.toLowerCase(),(en.includes(d)||d===" ")&&ii(d.trim()))}const f=()=>xt(),c=d=>ii(d),h=()=>xt();return l.$$.update=()=>{l.$$.dirty&32&&t(0,i=Gl.find(d=>d.value===r))},[i,s,n,o,u,r,f,c,h]}class no extends Ne{constructor(e){super(),Ve(this,e,so,ro,Me,{})}}function ao(l){let e,t,i,r;return t=new no({}),{c(){e=H("div"),me(t.$$.fragment),this.h()},l(s){e=j(s,"DIV",{class:!0});var n=w(e);we(t.$$.fragment,n),n.forEach(_),this.h()},h(){a(e,"class","svelte-1n5fit0")},m(s,n){N(s,e,n),ge(t,e,null),r=!0},p(s,n){l=s},i(s){r||(A(t.$$.fragment,s),ct(()=>{!r||(i||(i=et(e,ot,{duration:l[0],easing:vt},!0)),i.run(1))}),r=!0)},o(s){R(t.$$.fragment,s),i||(i=et(e,ot,{duration:l[0],easing:vt},!1)),i.run(0),r=!1},d(s){s&&_(e),ve(t),s&&i&&i.end()}}}function oo(l){let e,t,i,r;return t=new xa({props:{gameMode:l[2]}}),{c(){e=H("div"),me(t.$$.fragment),this.h()},l(s){e=j(s,"DIV",{class:!0});var n=w(e);we(t.$$.fragment,n),n.forEach(_),this.h()},h(){a(e,"class","svelte-1n5fit0")},m(s,n){N(s,e,n),ge(t,e,null),r=!0},p(s,n){l=s;const o={};n&4&&(o.gameMode=l[2]),t.$set(o)},i(s){r||(A(t.$$.fragment,s),ct(()=>{!r||(i||(i=et(e,ot,{duration:l[0],easing:vt},!0)),i.run(1))}),r=!0)},o(s){R(t.$$.fragment,s),i||(i=et(e,ot,{duration:l[0],easing:vt},!1)),i.run(0),r=!1},d(s){s&&_(e),ve(t),s&&i&&i.end()}}}function uo(l){let e,t,i,r;const s=[oo,ao],n=[];function o(u,f){return u[1]?0:1}return t=o(l),i=n[t]=s[t](l),{c(){e=H("section"),i.c(),this.h()},l(u){e=j(u,"SECTION",{class:!0});var f=w(e);i.l(f),f.forEach(_),this.h()},h(){a(e,"class","svelte-1n5fit0")},m(u,f){N(u,e,f),n[t].m(e,null),r=!0},p(u,[f]){let c=t;t=o(u),t===c?n[t].p(u,f):(Te(),R(n[c],1,1,()=>{n[c]=null}),Ie(),i=n[t],i?i.p(u,f):(i=n[t]=s[t](u),i.c()),A(i,1),i.m(e,null))},i(u){r||(A(i),r=!0)},o(u){R(i),r=!1},d(u){u&&_(e),n[t].d()}}}function fo(l,e,t){let i,r;Ee(l,tn,n=>t(1,i=n)),Ee(l,ls,n=>t(2,r=n));let s=0;return tt(async()=>{await it(),t(0,s=250)}),[s,i,r]}class co extends Ne{constructor(e){super(),Ve(this,e,fo,uo,Me,{})}}function ho(l){let e,t,i;const r=l[7].default,s=bt(r,l,l[6],null);return{c(){e=H("div"),s&&s.c(),this.h()},l(n){e=j(n,"DIV",{style:!0,class:!0});var o=w(e);s&&s.l(o),o.forEach(_),this.h()},h(){a(e,"style",t=`width: ${l[3]}%; min-width: max(20px, ${l[2]*l[0]}${l[1]});`),a(e,"class","svelte-1itl8rq")},m(n,o){N(n,e,o),s&&s.m(e,null),i=!0},p(n,[o]){s&&s.p&&(!i||o&64)&&pt(s,r,n,n[6],i?wt(r,n[6],o,null):kt(n[6]),null),(!i||o&15&&t!==(t=`width: ${n[3]}%; min-width: max(20px, ${n[2]*n[0]}${n[1]});`))&&a(e,"style",t)},i(n){i||(A(s,n),i=!0)},o(n){R(s,n),i=!1},d(n){n&&_(e),s&&s.d(n)}}}function _o(l,e,t){let i,r,s,{$$slots:n={},$$scope:o}=e,{percent:u}=e,{minWidth:f="20px"}=e,c=0;return tt(()=>setTimeout(()=>t(0,c=1))),l.$$set=h=>{"percent"in h&&t(4,u=h.percent),"minWidth"in h&&t(5,f=h.minWidth),"$$scope"in h&&t(6,o=h.$$scope)},l.$$.update=()=>{l.$$.dirty&17&&t(3,i=Math.round(100*u*c)),l.$$.dirty&32&&t(2,r=parseFloat(f)),l.$$.dirty&32&&t(1,s=f.replace(/[^a-z]/gi,""))},[c,s,r,i,u,f,o,n]}class as extends Ne{constructor(e){super(),Ve(this,e,_o,ho,Me,{percent:4,minWidth:5})}}function fr(l){let e,t;return{c(){e=H("h2"),t=se(l[0]),this.h()},l(i){e=j(i,"H2",{class:!0});var r=w(e);t=ne(r,l[0]),r.forEach(_),this.h()},h(){a(e,"class","svelte-1y13wsk")},m(i,r){N(i,e,r),g(e,t)},p(i,r){r&1&&he(t,i[0])},d(i){i&&_(e)}}}function mo(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y,b=l[0]&&fr(l);const T=l[6].default,k=bt(T,l,l[5],null);return{c(){e=H("div"),t=H("button"),i=W("svg"),r=W("title"),s=se("Close"),n=W("line"),o=W("line"),u=ee(),f=H("div"),c=H("section"),b&&b.c(),h=ee(),k&&k.c(),this.h()},l(E){e=j(E,"DIV",{class:!0});var p=w(e);t=j(p,"BUTTON",{title:!0,class:!0});var S=w(t);i=q(S,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var L=w(i);r=q(L,"title",{});var B=w(r);s=ne(B,"Close"),B.forEach(_),n=q(L,"line",{x1:!0,y1:!0,x2:!0,y2:!0}),w(n).forEach(_),o=q(L,"line",{x1:!0,y1:!0,x2:!0,y2:!0}),w(o).forEach(_),L.forEach(_),S.forEach(_),u=te(p),f=j(p,"DIV",{class:!0});var I=w(f);c=j(I,"SECTION",{class:!0});var O=w(c);b&&b.l(O),h=te(O),k&&k.l(O),O.forEach(_),I.forEach(_),p.forEach(_),this.h()},h(){a(n,"x1","1"),a(n,"y1","1"),a(n,"x2","9"),a(n,"y2","9"),a(o,"x1","9"),a(o,"y1","1"),a(o,"x2","1"),a(o,"y2","9"),a(i,"viewBox","0 0 10 10"),a(i,"xmlns","http://www.w3.org/2000/svg"),a(i,"width","24"),a(i,"height","24"),a(i,"class","svelte-1y13wsk"),a(t,"title","Close"),a(t,"class","svelte-1y13wsk"),a(c,"class","svelte-1y13wsk"),oe(c,"no-title",!l[0]),a(f,"class","column svelte-1y13wsk"),a(e,"class","background svelte-1y13wsk")},m(E,p){N(E,e,p),g(e,t),g(t,i),g(i,r),g(r,s),g(i,n),g(i,o),g(e,u),g(e,f),g(f,c),b&&b.m(c,null),g(c,h),k&&k.m(c,null),l[8](e),v=!0,m||(y=[de(window,"keydown",l[4]),de(t,"click",l[7]),de(e,"mousedown",l[2]),de(e,"mouseup",l[3])],m=!0)},p(E,[p]){l=E,l[0]?b?b.p(l,p):(b=fr(l),b.c(),b.m(c,h)):b&&(b.d(1),b=null),k&&k.p&&(!v||p&32)&&pt(k,T,l,l[5],v?wt(T,l[5],p,null):kt(l[5]),null),(!v||p&1)&&oe(c,"no-title",!l[0])},i(E){v||(A(k,E),ct(()=>{!v||(d||(d=et(e,ui,{easing:Ml,duration:250},!0)),d.run(1))}),v=!0)},o(E){R(k,E),d||(d=et(e,ui,{easing:Ml,duration:250},!1)),d.run(0),v=!1},d(E){E&&_(e),b&&b.d(),k&&k.d(E),l[8](null),E&&d&&d.end(),m=!1,$e(y)}}}function go(l,e,t){let{$$slots:i={},$$scope:r}=e,{title:s}=e,n,o;const u=v=>{v.target===n&&(o=v.target)},f=v=>{v.target===o&&(v.preventDefault(),at.set(null))},c=({key:v})=>{v==="Escape"&&at.set(null)},h=()=>at.set(null);function d(v){Ge[v?"unshift":"push"](()=>{n=v,t(1,n)})}return l.$$set=v=>{"title"in v&&t(0,s=v.title),"$$scope"in v&&t(5,r=v.$$scope)},[s,n,u,f,c,r,i,h,d]}class Ul extends Ne{constructor(e){super(),Ve(this,e,go,mo,Me,{title:0})}}function cr(l,e,t){const i=l.slice();return i[11]=e[t],i[13]=t,i}function vo(l){let e=l[2].distribution[l[13]]+"",t,i;return{c(){t=se(e),i=ee()},l(r){t=ne(r,e),i=te(r)},m(r,s){N(r,t,s),N(r,i,s)},p(r,s){s&4&&e!==(e=r[2].distribution[r[13]]+"")&&he(t,e)},d(r){r&&_(t),r&&_(i)}}}function hr(l){let e,t;return e=new as({props:{percent:l[3].guessTotals[l[13]]/l[3].guessCounts[l[13]]/l[5],minWidth:"2.7em",$$slots:{default:[bo]},$$scope:{ctx:l}}}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,r){const s={};r&8&&(s.percent=i[3].guessTotals[i[13]]/i[3].guessCounts[i[13]]/i[5]),r&16392&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function bo(l){let e,t,i;return e=new Dt({props:{ms:l[3].guessTotals[l[13]]/l[3].guessCounts[l[13]],dimming:!1}}),{c(){me(e.$$.fragment),t=ee()},l(r){we(e.$$.fragment,r),t=te(r)},m(r,s){ge(e,r,s),N(r,t,s),i=!0},p(r,s){const n={};s&8&&(n.ms=r[3].guessTotals[r[13]]/r[3].guessCounts[r[13]]),e.$set(n)},i(r){i||(A(e.$$.fragment,r),i=!0)},o(r){R(e.$$.fragment,r),i=!1},d(r){ve(e,r),r&&_(t)}}}function _r(l){let e,t,i=l[13]+1+"",r,s,n,o,u;n=new as({props:{percent:l[2].distribution[l[13]]/l[4],$$slots:{default:[vo]},$$scope:{ctx:l}}});let f=l[3].guessTotals[l[13]]/l[3].guessCounts[l[13]]&&hr(l);return{c(){e=H("tr"),t=H("td"),r=se(i),s=H("td"),me(n.$$.fragment),o=H("td"),f&&f.c(),this.h()},l(c){e=j(c,"TR",{});var h=w(e);t=j(h,"TD",{class:!0});var d=w(t);r=ne(d,i),d.forEach(_),s=j(h,"TD",{class:!0});var v=w(s);we(n.$$.fragment,v),v.forEach(_),o=j(h,"TD",{class:!0});var m=w(o);f&&f.l(m),m.forEach(_),h.forEach(_),this.h()},h(){a(t,"class","svelte-1vjjxcu"),a(s,"class","svelte-1vjjxcu"),a(o,"class","svelte-1vjjxcu")},m(c,h){N(c,e,h),g(e,t),g(t,r),g(e,s),ge(n,s,null),g(e,o),f&&f.m(o,null),u=!0},p(c,h){const d={};h&4&&(d.percent=c[2].distribution[c[13]]/c[4]),h&16388&&(d.$$scope={dirty:h,ctx:c}),n.$set(d),c[3].guessTotals[c[13]]/c[3].guessCounts[c[13]]?f?(f.p(c,h),h&8&&A(f,1)):(f=hr(c),f.c(),A(f,1),f.m(o,null)):f&&(Te(),R(f,1,1,()=>{f=null}),Ie())},i(c){u||(A(n.$$.fragment,c),A(f),u=!0)},o(c){R(n.$$.fragment,c),R(f),u=!1},d(c){c&&_(e),ve(n),f&&f.d()}}}function dr(l){let e,t,i,r,s,n=l[1]("main.stats.fastest_game")+"",o,u,f,c,h,d,v=l[1]("main.stats.average_game")+"",m,y,b,T,k,E,p=l[1]("main.stats.average_guess")+"",S,L;return r=new Dt({props:{ms:l[3].fastestGame,decimals:2}}),h=new Dt({props:{ms:l[7]/l[3].gameCount}}),k=new Dt({props:{ms:l[7]/l[6]}}),{c(){e=H("div"),t=H("div"),i=H("strong"),me(r.$$.fragment),s=ee(),o=se(n),u=ee(),f=H("div"),c=H("strong"),me(h.$$.fragment),d=ee(),m=se(v),y=ee(),b=H("div"),T=H("strong"),me(k.$$.fragment),E=ee(),S=se(p),this.h()},l(B){e=j(B,"DIV",{class:!0,style:!0});var I=w(e);t=j(I,"DIV",{class:!0});var O=w(t);i=j(O,"STRONG",{class:!0});var D=w(i);we(r.$$.fragment,D),D.forEach(_),s=te(O),o=ne(O,n),O.forEach(_),u=te(I),f=j(I,"DIV",{class:!0});var F=w(f);c=j(F,"STRONG",{class:!0});var P=w(c);we(h.$$.fragment,P),P.forEach(_),d=te(F),m=ne(F,v),F.forEach(_),y=te(I),b=j(I,"DIV",{class:!0});var U=w(b);T=j(U,"STRONG",{class:!0});var G=w(T);we(k.$$.fragment,G),G.forEach(_),E=te(U),S=ne(U,p),U.forEach(_),I.forEach(_),this.h()},h(){a(i,"class","svelte-1vjjxcu"),a(t,"class","stats-item svelte-1vjjxcu"),a(c,"class","svelte-1vjjxcu"),a(f,"class","stats-item svelte-1vjjxcu"),a(T,"class","svelte-1vjjxcu"),a(b,"class","stats-item svelte-1vjjxcu"),a(e,"class","stats-container svelte-1vjjxcu"),fe(e,"margin-top","1.5rem")},m(B,I){N(B,e,I),g(e,t),g(t,i),ge(r,i,null),g(t,s),g(t,o),g(e,u),g(e,f),g(f,c),ge(h,c,null),g(f,d),g(f,m),g(e,y),g(e,b),g(b,T),ge(k,T,null),g(b,E),g(b,S),L=!0},p(B,I){const O={};I&8&&(O.ms=B[3].fastestGame),r.$set(O),(!L||I&2)&&n!==(n=B[1]("main.stats.fastest_game")+"")&&he(o,n);const D={};I&8&&(D.ms=B[7]/B[3].gameCount),h.$set(D),(!L||I&2)&&v!==(v=B[1]("main.stats.average_game")+"")&&he(m,v),(!L||I&2)&&p!==(p=B[1]("main.stats.average_guess")+"")&&he(S,p)},i(B){L||(A(r.$$.fragment,B),A(h.$$.fragment,B),A(k.$$.fragment,B),L=!0)},o(B){R(r.$$.fragment,B),R(h.$$.fragment,B),R(k.$$.fragment,B),L=!1},d(B){B&&_(e),ve(r),ve(h),ve(k)}}}function mr(l){let e,t=l[1]("main.stats.stats_daily")+"",i;return{c(){e=H("em"),i=se(t),this.h()},l(r){e=j(r,"EM",{class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"class","svelte-1vjjxcu")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s&2&&t!==(t=r[1]("main.stats.stats_daily")+"")&&he(i,t)},d(r){r&&_(e)}}}function po(l){let e,t,i,r,s=l[2].totalGames+"",n,o,u=l[1]("main.stats.total_games")+"",f,c,h,d,v=Math.round(100*l[2].wonGames/(l[2].totalGames||1))+"",m,y,b,T=l[1]("main.stats.win_rate")+"",k,E,p,S,L=l[2].currentStreak+"",B,I,O=l[1]("main.stats.current_streak")+"",D,F,P,U,G=l[2].bestStreak+"",M,V,J=l[1]("main.stats.best_streak")+"",X,Q,Z,$,K,Y,ue=l[1]("main.stats.winning_guesses")+"",x,re,ke,z=l[1]("main.stats.average_guess_time")+"",ie,le,Se,Re,je,ze,Ye,We=l[1]("main.messages.new")+"",Ke,Qe,ae,pe=l[1]("main.stats.import_export")+"",Je,Pe,Xe={length:jt},Le=[];for(let De=0;DeR(Le[De],1,1,()=>{Le[De]=null});let Ae=l[3].gameCount&&dr(l),qe=l[0]==="random"&&mr(l);return{c(){e=H("section"),t=H("div"),i=H("div"),r=H("strong"),n=se(s),o=ee(),f=se(u),c=ee(),h=H("div"),d=H("strong"),m=se(v),y=se("%"),b=ee(),k=se(T),E=ee(),p=H("div"),S=H("strong"),B=se(L),I=ee(),D=se(O),F=ee(),P=H("div"),U=H("strong"),M=se(G),V=ee(),X=se(J),Q=ee(),Z=H("table"),$=H("tr"),K=H("th"),Y=H("th"),x=se(ue),re=ee(),ke=H("th"),ie=se(z),le=ee();for(let De=0;De{Ae=null}),Ie()),De[0]==="random"?qe?qe.p(De,Ce):(qe=mr(De),qe.c(),qe.m(e,je)):qe&&(qe.d(1),qe=null),(!Pe||Ce&2)&&We!==(We=De[1]("main.messages.new")+"")&&he(Ke,We),(!Pe||Ce&2)&&pe!==(pe=De[1]("main.stats.import_export")+"")&&he(Je,pe)},i(De){if(!Pe){for(let Ce=0;Cet(1,i=m)),Ee(l,ri,m=>t(2,r=m)),Ee(l,si,m=>t(3,s=m));let{gameMode:n}=e;const o=m=>m.reduce((y,b)=>b?Math.max(y,b):y,1),u=o(be(ri).distribution),{guessTotals:f,guessCounts:c}=be(si),h=o(f.map((m,y)=>m/c[y])),d=c.reduce((m,y)=>m+y,0),v=f.reduce((m,y)=>m+y,0);return l.$$set=m=>{"gameMode"in m&&t(0,n=m.gameMode)},[n,i,r,s,u,h,d,v]}class yo extends Ne{constructor(e){super(),Ve(this,e,wo,ko,Me,{gameMode:0})}}function gr(l){let e,t,i,r,s=l[0]("main.results.play_daily")+"",n,o,u;return{c(){e=H("hr"),t=ee(),i=H("div"),r=H("button"),n=se(s),this.h()},l(f){e=j(f,"HR",{class:!0}),t=te(f),i=j(f,"DIV",{class:!0});var c=w(i);r=j(c,"BUTTON",{class:!0});var h=w(r);n=ne(h,s),h.forEach(_),c.forEach(_),this.h()},h(){a(e,"class","svelte-124c0o4"),a(r,"class","svelte-124c0o4"),a(i,"class","center svelte-124c0o4")},m(f,c){N(f,e,c),N(f,t,c),N(f,i,c),g(i,r),g(r,n),o||(u=de(r,"click",l[2]),o=!0)},p(f,c){c&1&&s!==(s=f[0]("main.results.play_daily")+"")&&he(n,s)},d(f){f&&_(e),f&&_(t),f&&_(i),o=!1,u()}}}function Eo(l){let e,t=l[0]("main.tutorial.objective")+"",i,r,s,n=l[0]("main.tutorial.explanation")+"",o,u,f,c,h,d,v,m=l[0]("main.tutorial.correct_tile")+"",y,b,T,k,E,p,S,L=l[0]("main.tutorial.high_tile")+"",B,I,O,D,F,P,U,G=l[0]("main.tutorial.low_tile")+"",M,V,J,X,Q,Z,$,K,Y,ue=l[0]("main.tutorial.letter_range")+"",x,re,ke,z;h=new St({props:{tile:{scored:!0,letter:"p",distance:0,id:0,polarity:0}}}),E=new St({props:{tile:{scored:!0,letter:"d",distance:-1,id:0,polarity:0}}}),F=new St({props:{tile:{scored:!0,letter:"w",distance:1,id:0,polarity:0}}}),$=new St({props:{tile:{scored:!1,letter:"",distance:0,id:0,letterBounds:["e","v"],polarity:0},current:!0,showHint:!0}});let ie=l[1]&&gr(l);return{c(){e=H("p"),i=se(t),r=ee(),s=H("p"),o=se(n),u=ee(),f=H("div"),c=H("div"),me(h.$$.fragment),d=ee(),v=H("p"),y=se(m),b=ee(),T=H("div"),k=H("div"),me(E.$$.fragment),p=ee(),S=H("p"),B=se(L),I=ee(),O=H("div"),D=H("div"),me(F.$$.fragment),P=ee(),U=H("p"),M=se(G),V=ee(),J=H("hr"),X=ee(),Q=H("div"),Z=H("div"),me($.$$.fragment),K=ee(),Y=H("p"),x=se(ue),re=ee(),ie&&ie.c(),ke=_e(),this.h()},l(le){e=j(le,"P",{});var Se=w(e);i=ne(Se,t),Se.forEach(_),r=te(le),s=j(le,"P",{});var Re=w(s);o=ne(Re,n),Re.forEach(_),u=te(le),f=j(le,"DIV",{class:!0});var je=w(f);c=j(je,"DIV",{});var ze=w(c);we(h.$$.fragment,ze),ze.forEach(_),d=te(je),v=j(je,"P",{class:!0});var Ye=w(v);y=ne(Ye,m),Ye.forEach(_),je.forEach(_),b=te(le),T=j(le,"DIV",{class:!0});var We=w(T);k=j(We,"DIV",{});var Ke=w(k);we(E.$$.fragment,Ke),Ke.forEach(_),p=te(We),S=j(We,"P",{class:!0});var Qe=w(S);B=ne(Qe,L),Qe.forEach(_),We.forEach(_),I=te(le),O=j(le,"DIV",{class:!0});var ae=w(O);D=j(ae,"DIV",{});var pe=w(D);we(F.$$.fragment,pe),pe.forEach(_),P=te(ae),U=j(ae,"P",{class:!0});var Je=w(U);M=ne(Je,G),Je.forEach(_),ae.forEach(_),V=te(le),J=j(le,"HR",{class:!0}),X=te(le),Q=j(le,"DIV",{class:!0});var Pe=w(Q);Z=j(Pe,"DIV",{});var Xe=w(Z);we($.$$.fragment,Xe),Xe.forEach(_),K=te(Pe),Y=j(Pe,"P",{class:!0});var Le=w(Y);x=ne(Le,ue),Le.forEach(_),Pe.forEach(_),re=te(le),ie&&ie.l(le),ke=_e(),this.h()},h(){a(v,"class","svelte-124c0o4"),a(f,"class","row svelte-124c0o4"),a(S,"class","svelte-124c0o4"),a(T,"class","row svelte-124c0o4"),a(U,"class","svelte-124c0o4"),a(O,"class","row svelte-124c0o4"),a(J,"class","svelte-124c0o4"),a(Y,"class","svelte-124c0o4"),a(Q,"class","row svelte-124c0o4")},m(le,Se){N(le,e,Se),g(e,i),N(le,r,Se),N(le,s,Se),g(s,o),N(le,u,Se),N(le,f,Se),g(f,c),ge(h,c,null),g(f,d),g(f,v),g(v,y),N(le,b,Se),N(le,T,Se),g(T,k),ge(E,k,null),g(T,p),g(T,S),g(S,B),N(le,I,Se),N(le,O,Se),g(O,D),ge(F,D,null),g(O,P),g(O,U),g(U,M),N(le,V,Se),N(le,J,Se),N(le,X,Se),N(le,Q,Se),g(Q,Z),ge($,Z,null),g(Q,K),g(Q,Y),g(Y,x),N(le,re,Se),ie&&ie.m(le,Se),N(le,ke,Se),z=!0},p(le,Se){(!z||Se&1)&&t!==(t=le[0]("main.tutorial.objective")+"")&&he(i,t),(!z||Se&1)&&n!==(n=le[0]("main.tutorial.explanation")+"")&&he(o,n),(!z||Se&1)&&m!==(m=le[0]("main.tutorial.correct_tile")+"")&&he(y,m),(!z||Se&1)&&L!==(L=le[0]("main.tutorial.high_tile")+"")&&he(B,L),(!z||Se&1)&&G!==(G=le[0]("main.tutorial.low_tile")+"")&&he(M,G),(!z||Se&1)&&ue!==(ue=le[0]("main.tutorial.letter_range")+"")&&he(x,ue),le[1]?ie?ie.p(le,Se):(ie=gr(le),ie.c(),ie.m(ke.parentNode,ke)):ie&&(ie.d(1),ie=null)},i(le){z||(A(h.$$.fragment,le),A(E.$$.fragment,le),A(F.$$.fragment,le),A($.$$.fragment,le),z=!0)},o(le){R(h.$$.fragment,le),R(E.$$.fragment,le),R(F.$$.fragment,le),R($.$$.fragment,le),z=!1},d(le){le&&_(e),le&&_(r),le&&_(s),le&&_(u),le&&_(f),ve(h),le&&_(b),le&&_(T),ve(E),le&&_(I),le&&_(O),ve(F),le&&_(V),le&&_(J),le&&_(X),le&&_(Q),ve($),le&&_(re),ie&&ie.d(le),le&&_(ke)}}}function To(l){let e,t;return e=new Ul({props:{title:l[0]("main.tutorial.title"),$$slots:{default:[Eo]},$$scope:{ctx:l}}}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,[r]){const s={};r&1&&(s.title=i[0]("main.tutorial.title")),r&11&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Io(l,e,t){let i,r;return Ee(l,Ze,n=>t(0,i=n)),Ee(l,is,n=>t(1,r=n)),[i,r,()=>at.set(null)]}class So extends Ne{constructor(e){super(),Ve(this,e,Io,To,Me,{})}}function Do(l,e){const t=l.getBoundingClientRect(),i=e.getBoundingClientRect(),r={};return r.top=t.top<0,r.left=t.left<0,r.bottom=t.bottom+i.height>(window.innerHeight||document.documentElement.clientHeight),r.right=t.right>(window.innerWidth||document.documentElement.clientWidth),r.any=r.top||r.left||r.bottom||r.right,r}function Co(l){let e,t=l[0](l[1],l[2])+"",i;return{c(){e=H("div"),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);s.forEach(_),this.h()},h(){a(e,"class",i="item "+l[3]+" svelte-3e0qet")},m(r,s){N(r,e,s),e.innerHTML=t},p(r,[s]){s&7&&t!==(t=r[0](r[1],r[2])+"")&&(e.innerHTML=t),s&8&&i!==(i="item "+r[3]+" svelte-3e0qet")&&a(e,"class",i)},i:ce,o:ce,d(r){r&&_(e)}}}function Mo(l,e,t){let{isActive:i=!1}=e,{isFirst:r=!1}=e,{isHover:s=!1}=e,{isSelectable:n=!1}=e,{getOptionLabel:o=void 0}=e,{item:u=void 0}=e,{filterText:f=""}=e,c="";return l.$$set=h=>{"isActive"in h&&t(4,i=h.isActive),"isFirst"in h&&t(5,r=h.isFirst),"isHover"in h&&t(6,s=h.isHover),"isSelectable"in h&&t(7,n=h.isSelectable),"getOptionLabel"in h&&t(0,o=h.getOptionLabel),"item"in h&&t(1,u=h.item),"filterText"in h&&t(2,f=h.filterText)},l.$$.update=()=>{if(l.$$.dirty&242){const h=[];i&&h.push("active"),r&&h.push("first"),s&&h.push("hover"),u.isGroupHeader&&h.push("groupHeader"),u.isGroupItem&&h.push("groupItem"),n||h.push("notSelectable"),t(3,c=h.join(" "))}},[o,u,f,c,i,r,s,n]}class os extends Ne{constructor(e){super(),Ve(this,e,Mo,Co,Me,{isActive:4,isFirst:5,isHover:6,isSelectable:7,getOptionLabel:0,item:1,filterText:2})}}function vr(l,e,t){const i=l.slice();return i[41]=e[t],i[42]=t,i}function Lo(l){let e,t,i=l[1],r=[];for(let o=0;oR(r[o],1,1,()=>{r[o]=null});let n=null;return i.length||(n=br(l)),{c(){for(let o=0;o({41:o,42:u}),({item:o,i:u})=>[0,(o?1024:0)|(u?2048:0)]]},$$scope:{ctx:n}}}}return r&&(e=Ue(r,s(l))),{c(){e&&me(e.$$.fragment),t=_e()},l(n){e&&we(e.$$.fragment,n),t=_e()},m(n,o){e&&ge(e,n,o),N(n,t,o),i=!0},p(n,o){const u={};if(o[0]&2&&(u.items=n[1]),o[0]&256&&(u.itemHeight=n[8]),o[0]&9814|o[1]&11264&&(u.$$scope={dirty:o,ctx:n}),o[0]&8&&r!==(r=n[3])){if(e){Te();const f=e;R(f.$$.fragment,1,0,()=>{ve(f,1)}),Ie()}r?(e=Ue(r,s(n)),me(e.$$.fragment),A(e.$$.fragment,1),ge(e,t.parentNode,t)):e=null}else r&&e.$set(u)},i(n){i||(e&&A(e.$$.fragment,n),i=!0)},o(n){e&&R(e.$$.fragment,n),i=!1},d(n){n&&_(t),e&&ve(e,n)}}}function br(l){let e,t=!l[11]&&pr(l);return{c(){t&&t.c(),e=_e()},l(i){t&&t.l(i),e=_e()},m(i,r){t&&t.m(i,r),N(i,e,r)},p(i,r){i[11]?t&&(t.d(1),t=null):t?t.p(i,r):(t=pr(i),t.c(),t.m(e.parentNode,e))},d(i){t&&t.d(i),i&&_(e)}}}function pr(l){let e,t;return{c(){e=H("div"),t=se(l[12]),this.h()},l(i){e=j(i,"DIV",{class:!0});var r=w(e);t=ne(r,l[12]),r.forEach(_),this.h()},h(){a(e,"class","empty svelte-1uyqfml")},m(i,r){N(i,e,r),g(e,t)},p(i,r){r[0]&4096&&he(t,i[12])},d(i){i&&_(e)}}}function No(l){let e,t,i,r,s,n;var o=l[4];function u(d){return{props:{item:d[41],filterText:d[13],getOptionLabel:d[6],isFirst:Vl(d[42]),isActive:ol(d[41],d[9],d[10]),isHover:ul(d[2],d[41],d[42],d[1]),isSelectable:Ct(d[41])}}}o&&(t=Ue(o,u(l)));function f(){return l[29](l[42])}function c(){return l[30](l[42])}function h(...d){return l[31](l[41],l[42],...d)}return{c(){e=H("div"),t&&me(t.$$.fragment),i=ee(),this.h()},l(d){e=j(d,"DIV",{class:!0,tabindex:!0});var v=w(e);t&&we(t.$$.fragment,v),i=te(v),v.forEach(_),this.h()},h(){a(e,"class","listItem"),a(e,"tabindex","-1")},m(d,v){N(d,e,v),t&&ge(t,e,null),g(e,i),r=!0,s||(n=[de(e,"mouseover",f),de(e,"focus",c),de(e,"click",h)],s=!0)},p(d,v){l=d;const m={};if(v[0]&2&&(m.item=l[41]),v[0]&8192&&(m.filterText=l[13]),v[0]&64&&(m.getOptionLabel=l[6]),v[0]&1538&&(m.isActive=ol(l[41],l[9],l[10])),v[0]&6&&(m.isHover=ul(l[2],l[41],l[42],l[1])),v[0]&2&&(m.isSelectable=Ct(l[41])),v[0]&16&&o!==(o=l[4])){if(t){Te();const y=t;R(y.$$.fragment,1,0,()=>{ve(y,1)}),Ie()}o?(t=Ue(o,u(l)),me(t.$$.fragment),A(t.$$.fragment,1),ge(t,e,i)):t=null}else o&&t.$set(m)},i(d){r||(t&&A(t.$$.fragment,d),r=!0)},o(d){t&&R(t.$$.fragment,d),r=!1},d(d){d&&_(e),t&&ve(t),s=!1,$e(n)}}}function Vo(l){let e,t=l[7](l[41])+"",i;return{c(){e=H("div"),i=se(t),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"class","listGroupTitle svelte-1uyqfml")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s[0]&130&&t!==(t=r[7](r[41])+"")&&he(i,t)},i:ce,o:ce,d(r){r&&_(e)}}}function kr(l){let e,t,i,r;const s=[Vo,No],n=[];function o(u,f){return u[41].isGroupHeader&&!u[41].isSelectable?0:1}return e=o(l),t=n[e]=s[e](l),{c(){t.c(),i=_e()},l(u){t.l(u),i=_e()},m(u,f){n[e].m(u,f),N(u,i,f),r=!0},p(u,f){let c=e;e=o(u),e===c?n[e].p(u,f):(Te(),R(n[c],1,1,()=>{n[c]=null}),Ie(),t=n[e],t?t.p(u,f):(t=n[e]=s[e](u),t.c()),A(t,1),t.m(i.parentNode,i))},i(u){r||(A(t),r=!0)},o(u){R(t),r=!1},d(u){n[e].d(u),u&&_(i)}}}function Ho(l){let e,t,i,r,s;var n=l[4];function o(h){return{props:{item:h[41],filterText:h[13],getOptionLabel:h[6],isFirst:Vl(h[42]),isActive:ol(h[41],h[9],h[10]),isHover:ul(h[2],h[41],h[42],h[1]),isSelectable:Ct(h[41])}}}n&&(t=Ue(n,o(l)));function u(){return l[26](l[42])}function f(){return l[27](l[42])}function c(...h){return l[28](l[41],l[42],...h)}return{c(){e=H("div"),t&&me(t.$$.fragment),this.h()},l(h){e=j(h,"DIV",{class:!0});var d=w(e);t&&we(t.$$.fragment,d),d.forEach(_),this.h()},h(){a(e,"class","listItem")},m(h,d){N(h,e,d),t&&ge(t,e,null),i=!0,r||(s=[de(e,"mouseover",u),de(e,"focus",f),de(e,"click",c)],r=!0)},p(h,d){l=h;const v={};if(d[1]&1024&&(v.item=l[41]),d[0]&8192&&(v.filterText=l[13]),d[0]&64&&(v.getOptionLabel=l[6]),d[1]&2048&&(v.isFirst=Vl(l[42])),d[0]&1536|d[1]&1024&&(v.isActive=ol(l[41],l[9],l[10])),d[0]&6|d[1]&3072&&(v.isHover=ul(l[2],l[41],l[42],l[1])),d[1]&1024&&(v.isSelectable=Ct(l[41])),d[0]&16&&n!==(n=l[4])){if(t){Te();const m=t;R(m.$$.fragment,1,0,()=>{ve(m,1)}),Ie()}n?(t=Ue(n,o(l)),me(t.$$.fragment),A(t.$$.fragment,1),ge(t,e,null)):t=null}else n&&t.$set(v)},i(h){i||(t&&A(t.$$.fragment,h),i=!0)},o(h){t&&R(t.$$.fragment,h),i=!1},d(h){h&&_(e),t&&ve(t),r=!1,$e(s)}}}function jo(l){let e,t,i,r,s,n;const o=[Oo,Lo],u=[];function f(c,h){return c[5]?0:1}return t=f(l),i=u[t]=o[t](l),{c(){e=H("div"),i.c(),this.h()},l(c){e=j(c,"DIV",{class:!0,style:!0});var h=w(e);i.l(h),h.forEach(_),this.h()},h(){a(e,"class","listContainer svelte-1uyqfml"),a(e,"style",l[14]),oe(e,"virtualList",l[5])},m(c,h){N(c,e,h),u[t].m(e,null),l[32](e),r=!0,s||(n=[de(window,"keydown",l[17]),de(window,"resize",l[18])],s=!0)},p(c,h){let d=t;t=f(c),t===d?u[t].p(c,h):(Te(),R(u[d],1,1,()=>{u[d]=null}),Ie(),i=u[t],i?i.p(c,h):(i=u[t]=o[t](c),i.c()),A(i,1),i.m(e,null)),(!r||h[0]&16384)&&a(e,"style",c[14]),(!r||h[0]&32)&&oe(e,"virtualList",c[5])},i(c){r||(A(i),r=!0)},o(c){R(i),r=!1},d(c){c&&_(e),u[t].d(),l[32](null),s=!1,$e(n)}}}function ol(l,e,t){return e&&e[t]===l[t]}function Vl(l){return l===0}function ul(l,e,t,i){return Ct(e)&&(l===t||i.length===1)}function Ct(l){return l.isGroupHeader&&l.isSelectable||l.selectable||!l.hasOwnProperty("selectable")}function Bo(l,e,t){const i=hl();let{container:r=void 0}=e,{VirtualList:s=null}=e,{Item:n=os}=e,{isVirtualList:o=!1}=e,{items:u=[]}=e,{labelIdentifier:f="label"}=e,{getOptionLabel:c=(z,ie)=>{if(z)return z.isCreator?`Create "${ie}"`:z[f]}}=e,{getGroupHeaderLabel:h=null}=e,{itemHeight:d=40}=e,{hoverItemIndex:v=0}=e,{value:m=void 0}=e,{optionIdentifier:y="value"}=e,{hideEmptyState:b=!1}=e,{noOptionsMessage:T="No options"}=e,{isMulti:k=!1}=e,{activeItemIndex:E=0}=e,{filterText:p=""}=e,{parent:S=null}=e,{listPlacement:L=null}=e,{listAutoWidth:B=null}=e,{listOffset:I=5}=e,O=0,D=!1,F;tt(()=>{if(u.length>0&&!k&&m){const z=u.findIndex(ie=>ie[y]===m[y]);z&&t(2,v=z)}X("active"),r.addEventListener("scroll",()=>{clearTimeout(O),O=setTimeout(()=>{D=!1},100)},!1)}),Bl(()=>{u||t(1,u=[]),u!==F&&u.length>0&&t(2,v=0),F=u});function P(z){z.isCreator||i("itemSelected",z)}function U(z){D||t(2,v=z)}function G(z){const{item:ie,i:le,event:Se}=z;if(Se.stopPropagation(),m&&!k&&m[y]===ie[y])return M();ie.isCreator?i("itemCreated",p):Ct(ie)&&(t(19,E=le),t(2,v=le),P(ie))}function M(){i("closeList")}async function V(z){if(o)return;let ie=!0;for(;ie;)z>0&&v===u.length-1?t(2,v=0):z<0&&v===0?t(2,v=u.length-1):t(2,v=v+z),ie=!Ct(u[v]);await it(),X("hover")}function J(z){switch(z.key){case"Escape":z.preventDefault(),M();break;case"ArrowDown":z.preventDefault(),u.length&&V(1);break;case"ArrowUp":z.preventDefault(),u.length&&V(-1);break;case"Enter":if(z.preventDefault(),u.length===0)break;const ie=u[v];if(m&&!k&&m[y]===ie[y]){M();break}ie.isCreator?i("itemCreated",p):(t(19,E=v),P(u[v]));break;case"Tab":if(z.preventDefault(),u.length===0||m&&m[y]===u[v][y])return M();t(19,E=v),P(u[v]);break}}function X(z){if(o||!r)return;let ie;const le=r.querySelector(`.listItem .${z}`);le&&(ie=r.getBoundingClientRect().bottom-le.getBoundingClientRect().bottom),t(0,r.scrollTop-=ie,r)}let Q;function Z(){const{height:z,width:ie}=S.getBoundingClientRect();t(14,Q=""),t(14,Q+=`min-width:${ie}px;width:${B?"auto":"100%"};`),L==="top"||L==="auto"&&Do(S,r).bottom?t(14,Q+=`bottom:${z+I}px;`):t(14,Q+=`top:${z+I}px;`)}const $=z=>U(z),K=z=>U(z),Y=(z,ie,le)=>G({item:z,i:ie,event:le}),ue=z=>U(z),x=z=>U(z),re=(z,ie,le)=>G({item:z,i:ie,event:le});function ke(z){Ge[z?"unshift":"push"](()=>{r=z,t(0,r)})}return l.$$set=z=>{"container"in z&&t(0,r=z.container),"VirtualList"in z&&t(3,s=z.VirtualList),"Item"in z&&t(4,n=z.Item),"isVirtualList"in z&&t(5,o=z.isVirtualList),"items"in z&&t(1,u=z.items),"labelIdentifier"in z&&t(20,f=z.labelIdentifier),"getOptionLabel"in z&&t(6,c=z.getOptionLabel),"getGroupHeaderLabel"in z&&t(7,h=z.getGroupHeaderLabel),"itemHeight"in z&&t(8,d=z.itemHeight),"hoverItemIndex"in z&&t(2,v=z.hoverItemIndex),"value"in z&&t(9,m=z.value),"optionIdentifier"in z&&t(10,y=z.optionIdentifier),"hideEmptyState"in z&&t(11,b=z.hideEmptyState),"noOptionsMessage"in z&&t(12,T=z.noOptionsMessage),"isMulti"in z&&t(21,k=z.isMulti),"activeItemIndex"in z&&t(19,E=z.activeItemIndex),"filterText"in z&&t(13,p=z.filterText),"parent"in z&&t(22,S=z.parent),"listPlacement"in z&&t(23,L=z.listPlacement),"listAutoWidth"in z&&t(24,B=z.listAutoWidth),"listOffset"in z&&t(25,I=z.listOffset)},l.$$.update=()=>{l.$$.dirty[0]&4194305&&S&&r&&Z()},[r,u,v,s,n,o,c,h,d,m,y,b,T,p,Q,U,G,J,Z,E,f,k,S,L,B,I,$,K,Y,ue,x,re,ke]}class Po extends Ne{constructor(e){super(),Ve(this,e,Bo,jo,Me,{container:0,VirtualList:3,Item:4,isVirtualList:5,items:1,labelIdentifier:20,getOptionLabel:6,getGroupHeaderLabel:7,itemHeight:8,hoverItemIndex:2,value:9,optionIdentifier:10,hideEmptyState:11,noOptionsMessage:12,isMulti:21,activeItemIndex:19,filterText:13,parent:22,listPlacement:23,listAutoWidth:24,listOffset:25},null,[-1,-1])}}function Ao(l){let e,t=l[0](l[1])+"";return{c(){e=H("div"),this.h()},l(i){e=j(i,"DIV",{class:!0});var r=w(e);r.forEach(_),this.h()},h(){a(e,"class","selection svelte-pu1q1n")},m(i,r){N(i,e,r),e.innerHTML=t},p(i,[r]){r&3&&t!==(t=i[0](i[1])+"")&&(e.innerHTML=t)},i:ce,o:ce,d(i){i&&_(e)}}}function Go(l,e,t){let{getSelectionLabel:i=void 0}=e,{item:r=void 0}=e;return l.$$set=s=>{"getSelectionLabel"in s&&t(0,i=s.getSelectionLabel),"item"in s&&t(1,r=s.item)},[i,r]}class Fo extends Ne{constructor(e){super(),Ve(this,e,Go,Ao,Me,{getSelectionLabel:0,item:1})}}function wr(l,e,t){const i=l.slice();return i[9]=e[t],i[11]=t,i}function yr(l){let e,t,i,r,s;function n(...o){return l[6](l[11],...o)}return{c(){e=H("div"),t=W("svg"),i=W("path"),this.h()},l(o){e=j(o,"DIV",{class:!0});var u=w(e);t=q(u,"svg",{width:!0,height:!0,viewBox:!0,focusable:!0,"aria-hidden":!0,role:!0,class:!0});var f=w(t);i=q(f,"path",{d:!0}),w(i).forEach(_),f.forEach(_),u.forEach(_),this.h()},h(){a(i,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124 l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),a(t,"width","100%"),a(t,"height","100%"),a(t,"viewBox","-2 -2 50 50"),a(t,"focusable","false"),a(t,"aria-hidden","true"),a(t,"role","presentation"),a(t,"class","svelte-liu9pa"),a(e,"class","multiSelectItem_clear svelte-liu9pa")},m(o,u){N(o,e,u),g(e,t),g(t,i),r||(s=de(e,"click",n),r=!0)},p(o,u){l=o},d(o){o&&_(e),r=!1,s()}}}function Er(l){let e,t,i=l[4](l[9])+"",r,s,n,o,u,f=!l[2]&&!l[3]&&yr(l);function c(...h){return l[7](l[11],...h)}return{c(){e=H("div"),t=H("div"),r=ee(),f&&f.c(),s=ee(),this.h()},l(h){e=j(h,"DIV",{class:!0});var d=w(e);t=j(d,"DIV",{class:!0});var v=w(t);v.forEach(_),r=te(d),f&&f.l(d),s=te(d),d.forEach(_),this.h()},h(){a(t,"class","multiSelectItem_label svelte-liu9pa"),a(e,"class",n="multiSelectItem "+(l[1]===l[11]?"active":"")+" "+(l[2]?"disabled":"")+" svelte-liu9pa")},m(h,d){N(h,e,d),g(e,t),t.innerHTML=i,g(e,r),f&&f.m(e,null),g(e,s),o||(u=de(e,"click",c),o=!0)},p(h,d){l=h,d&17&&i!==(i=l[4](l[9])+"")&&(t.innerHTML=i),!l[2]&&!l[3]?f?f.p(l,d):(f=yr(l),f.c(),f.m(e,s)):f&&(f.d(1),f=null),d&6&&n!==(n="multiSelectItem "+(l[1]===l[11]?"active":"")+" "+(l[2]?"disabled":"")+" svelte-liu9pa")&&a(e,"class",n)},d(h){h&&_(e),f&&f.d(),o=!1,u()}}}function zo(l){let e,t=l[0],i=[];for(let r=0;rf(d,v),h=(d,v)=>o?f(d,v):{};return l.$$set=d=>{"value"in d&&t(0,r=d.value),"activeValue"in d&&t(1,s=d.activeValue),"isDisabled"in d&&t(2,n=d.isDisabled),"multiFullItemClearable"in d&&t(3,o=d.multiFullItemClearable),"getSelectionLabel"in d&&t(4,u=d.getSelectionLabel)},[r,s,n,o,u,f,c,h]}class Wo extends Ne{constructor(e){super(),Ve(this,e,Ro,zo,Me,{value:0,activeValue:1,isDisabled:2,multiFullItemClearable:3,getSelectionLabel:4})}}function Tr(l,e,t){const i=l.slice();return i[23]=e[t],i}const qo=l=>({item:l&32,i:l&32,hoverItemIndex:l&2}),Ir=l=>({item:l[23].data,i:l[23].index,hoverItemIndex:l[1]});function Uo(l){let e;return{c(){e=se("Missing template")},l(t){e=ne(t,"Missing template")},m(t,i){N(t,e,i)},d(t){t&&_(e)}}}function Sr(l,e){let t,i,r;const s=e[15].default,n=bt(s,e,e[14],Ir),o=n||Uo();return{key:l,first:null,c(){t=H("svelte-virtual-list-row"),o&&o.c(),i=ee(),this.h()},l(u){t=j(u,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var f=w(t);o&&o.l(f),i=te(f),f.forEach(_),this.h()},h(){Tl(t,"class","svelte-g2cagw"),this.first=t},m(u,f){N(u,t,f),o&&o.m(t,null),g(t,i),r=!0},p(u,f){e=u,n&&n.p&&(!r||f&16418)&&pt(n,s,e,e[14],r?wt(s,e[14],f,qo):kt(e[14]),Ir)},i(u){r||(A(o,u),r=!0)},o(u){R(o,u),r=!1},d(u){u&&_(t),o&&o.d(u)}}}function Yo(l){let e,t,i=[],r=new Map,s,n,o,u,f=l[5];const c=h=>h[23].index;for(let h=0;hl[18].call(e))},m(h,d){N(h,e,d),g(e,t);for(let v=0;vD){t(9,f=P),t(6,k=U);break}U+=M,P+=1}for(;PD+y)););t(10,c=P);const G=s.length-c;for(p=U/c;P{d=m.getElementsByTagName("svelte-virtual-list-row"),t(13,T=!0)});function B(D){Ge[D?"unshift":"push"](()=>{m=D,t(4,m)})}function I(D){Ge[D?"unshift":"push"](()=>{v=D,t(3,v)})}function O(){y=this.offsetHeight,t(2,y)}return l.$$set=D=>{"items"in D&&t(11,s=D.items),"height"in D&&t(0,n=D.height),"itemHeight"in D&&t(12,o=D.itemHeight),"hoverItemIndex"in D&&t(1,u=D.hoverItemIndex),"start"in D&&t(9,f=D.start),"end"in D&&t(10,c=D.end),"$$scope"in D&&t(14,r=D.$$scope)},l.$$.update=()=>{l.$$.dirty&3584&&t(5,b=s.slice(f,c).map((D,F)=>({index:F+f,data:D}))),l.$$.dirty&14340&&T&&S(s,y,o)},[n,u,y,v,m,b,k,E,L,f,c,s,o,T,r,i,B,I,O]}class Xo extends Ne{constructor(e){super(),Ve(this,e,Jo,Yo,Me,{items:11,height:0,itemHeight:12,hoverItemIndex:1,start:9,end:10})}}function Ko(l){let e,t;return{c(){e=W("svg"),t=W("path"),this.h()},l(i){e=q(i,"svg",{width:!0,height:!0,viewBox:!0,focusable:!0,"aria-hidden":!0,role:!0});var r=w(e);t=q(r,"path",{fill:!0,d:!0}),w(t).forEach(_),r.forEach(_),this.h()},h(){a(t,"fill","currentColor"),a(t,"d",`M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124 l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z`),a(e,"width","100%"),a(e,"height","100%"),a(e,"viewBox","-2 -2 50 50"),a(e,"focusable","false"),a(e,"aria-hidden","true"),a(e,"role","presentation")},m(i,r){N(i,e,r),g(e,t)},p:ce,i:ce,o:ce,d(i){i&&_(e)}}}class Zo extends Ne{constructor(e){super(),Ve(this,e,null,Ko,Me,{})}}function Qo(l,e,t){let i;return function(){let s=this,n=arguments,o=function(){i=null,t||l.apply(s,n)},u=t&&!i;clearTimeout(i),i=setTimeout(o,e),u&&l.apply(s,n)}}function Dr(l,e,t){const i=l.slice();return i[103]=e[t],i}function Cr(l){let e,t,i,r,s;return{c(){e=H("span"),t=se(l[33]),i=ee(),r=H("span"),s=se(l[32]),this.h()},l(n){e=j(n,"SPAN",{id:!0});var o=w(e);t=ne(o,l[33]),o.forEach(_),i=te(n),r=j(n,"SPAN",{id:!0});var u=w(r);s=ne(u,l[32]),u.forEach(_),this.h()},h(){a(e,"id","aria-selection"),a(r,"id","aria-context")},m(n,o){N(n,e,o),g(e,t),N(n,i,o),N(n,r,o),g(r,s)},p(n,o){o[1]&4&&he(t,n[33]),o[1]&2&&he(s,n[32])},d(n){n&&_(e),n&&_(i),n&&_(r)}}}function Mr(l){let e,t,i;const r=[l[18]];var s=l[17];function n(o){let u={};for(let f=0;f{ve(c,1)}),Ie()}s?(e=Ue(s,n()),me(e.$$.fragment),A(e.$$.fragment,1),ge(e,t.parentNode,t)):e=null}else s&&e.$set(f)},i(o){i||(e&&A(e.$$.fragment,o),i=!0)},o(o){e&&R(e.$$.fragment,o),i=!1},d(o){o&&_(t),e&&ve(e,o)}}}function Lr(l){let e,t,i;var r=l[26];function s(n){return{props:{value:n[2],getSelectionLabel:n[12],activeValue:n[30],isDisabled:n[9],multiFullItemClearable:n[8]}}}return r&&(e=Ue(r,s(l)),e.$on("multiItemClear",l[38]),e.$on("focus",l[40])),{c(){e&&me(e.$$.fragment),t=_e()},l(n){e&&we(e.$$.fragment,n),t=_e()},m(n,o){e&&ge(e,n,o),N(n,t,o),i=!0},p(n,o){const u={};if(o[0]&4&&(u.value=n[2]),o[0]&4096&&(u.getSelectionLabel=n[12]),o[0]&1073741824&&(u.activeValue=n[30]),o[0]&512&&(u.isDisabled=n[9]),o[0]&256&&(u.multiFullItemClearable=n[8]),o[0]&67108864&&r!==(r=n[26])){if(e){Te();const f=e;R(f.$$.fragment,1,0,()=>{ve(f,1)}),Ie()}r?(e=Ue(r,s(n)),e.$on("multiItemClear",n[38]),e.$on("focus",n[40]),me(e.$$.fragment),A(e.$$.fragment,1),ge(e,t.parentNode,t)):e=null}else r&&e.$set(u)},i(n){i||(e&&A(e.$$.fragment,n),i=!0)},o(n){e&&R(e.$$.fragment,n),i=!1},d(n){n&&_(t),e&&ve(e,n)}}}function Or(l){let e,t,i,r,s;var n=l[25];function o(u){return{props:{item:u[2],getSelectionLabel:u[12]}}}return n&&(t=Ue(n,o(l))),{c(){e=H("div"),t&&me(t.$$.fragment),this.h()},l(u){e=j(u,"DIV",{class:!0});var f=w(e);t&&we(t.$$.fragment,f),f.forEach(_),this.h()},h(){a(e,"class","selectedItem svelte-17l1npl")},m(u,f){N(u,e,f),t&&ge(t,e,null),i=!0,r||(s=de(e,"focus",l[40]),r=!0)},p(u,f){const c={};if(f[0]&4&&(c.item=u[2]),f[0]&4096&&(c.getSelectionLabel=u[12]),f[0]&33554432&&n!==(n=u[25])){if(t){Te();const h=t;R(h.$$.fragment,1,0,()=>{ve(h,1)}),Ie()}n?(t=Ue(n,o(u)),me(t.$$.fragment),A(t.$$.fragment,1),ge(t,e,null)):t=null}else n&&t.$set(c)},i(u){i||(t&&A(t.$$.fragment,u),i=!0)},o(u){t&&R(t.$$.fragment,u),i=!1},d(u){u&&_(e),t&&ve(t),r=!1,s()}}}function Nr(l){let e,t,i,r,s;var n=l[23];function o(u){return{}}return n&&(t=Ue(n,o())),{c(){e=H("div"),t&&me(t.$$.fragment),this.h()},l(u){e=j(u,"DIV",{class:!0,"aria-hidden":!0});var f=w(e);t&&we(t.$$.fragment,f),f.forEach(_),this.h()},h(){a(e,"class","clearSelect svelte-17l1npl"),a(e,"aria-hidden","true")},m(u,f){N(u,e,f),t&&ge(t,e,null),i=!0,r||(s=de(e,"click",Bs(l[27])),r=!0)},p(u,f){if(f[0]&8388608&&n!==(n=u[23])){if(t){Te();const c=t;R(c.$$.fragment,1,0,()=>{ve(c,1)}),Ie()}n?(t=Ue(n,o()),me(t.$$.fragment),A(t.$$.fragment,1),ge(t,e,null)):t=null}},i(u){i||(t&&A(t.$$.fragment,u),i=!0)},o(u){t&&R(t.$$.fragment,u),i=!1},d(u){u&&_(e),t&&ve(t),r=!1,s()}}}function Vr(l){let e;function t(s,n){return s[22]?xo:$o}let i=t(l),r=i(l);return{c(){e=H("div"),r.c(),this.h()},l(s){e=j(s,"DIV",{class:!0,"aria-hidden":!0});var n=w(e);r.l(n),n.forEach(_),this.h()},h(){a(e,"class","indicator svelte-17l1npl"),a(e,"aria-hidden","true")},m(s,n){N(s,e,n),r.m(e,null)},p(s,n){i===(i=t(s))&&r?r.p(s,n):(r.d(1),r=i(s),r&&(r.c(),r.m(e,null)))},d(s){s&&_(e),r.d()}}}function $o(l){let e,t;return{c(){e=W("svg"),t=W("path"),this.h()},l(i){e=q(i,"svg",{width:!0,height:!0,viewBox:!0,focusable:!0,"aria-hidden":!0,class:!0});var r=w(e);t=q(r,"path",{d:!0}),w(t).forEach(_),r.forEach(_),this.h()},h(){a(t,"d",`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`),a(e,"width","100%"),a(e,"height","100%"),a(e,"viewBox","0 0 20 20"),a(e,"focusable","false"),a(e,"aria-hidden","true"),a(e,"class","svelte-17l1npl")},m(i,r){N(i,e,r),g(e,t)},p:ce,d(i){i&&_(e)}}}function xo(l){let e,t;return{c(){e=new Ps(!1),t=_e(),this.h()},l(i){e=As(i,!1),t=_e(),this.h()},h(){e.a=t},m(i,r){e.m(l[22],i,r),N(i,t,r)},p(i,r){r[0]&4194304&&e.p(i[22])},d(i){i&&_(t),i&&e.d()}}}function Hr(l){let e,t,i;return{c(){e=H("div"),t=W("svg"),i=W("circle"),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);t=q(s,"svg",{class:!0,viewBox:!0});var n=w(t);i=q(n,"circle",{class:!0,cx:!0,cy:!0,r:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-miterlimit":!0}),w(i).forEach(_),n.forEach(_),s.forEach(_),this.h()},h(){a(i,"class","spinner_path svelte-17l1npl"),a(i,"cx","50"),a(i,"cy","50"),a(i,"r","20"),a(i,"fill","none"),a(i,"stroke","currentColor"),a(i,"stroke-width","5"),a(i,"stroke-miterlimit","10"),a(t,"class","spinner_icon svelte-17l1npl"),a(t,"viewBox","25 25 50 50"),a(e,"class","spinner svelte-17l1npl")},m(r,s){N(r,e,s),g(e,t),g(t,i)},d(r){r&&_(e)}}}function jr(l){let e,t,i,r;const s=[l[34]];function n(f){l[84](f)}var o=l[24];function u(f){let c={};for(let h=0;hRt(e,"hoverItemIndex",n)),e.$on("itemSelected",l[43]),e.$on("itemCreated",l[44]),e.$on("closeList",l[45])),{c(){e&&me(e.$$.fragment),i=_e()},l(f){e&&we(e.$$.fragment,f),i=_e()},m(f,c){e&&ge(e,f,c),N(f,i,c),r=!0},p(f,c){const h=c[1]&8?Wt(s,[Xr(f[34])]):{};if(!t&&c[0]&268435456&&(t=!0,h.hoverItemIndex=f[28],cl(()=>t=!1)),c[0]&16777216&&o!==(o=f[24])){if(e){Te();const d=e;R(d.$$.fragment,1,0,()=>{ve(d,1)}),Ie()}o?(e=Ue(o,u(f)),Ge.push(()=>Rt(e,"hoverItemIndex",n)),e.$on("itemSelected",f[43]),e.$on("itemCreated",f[44]),e.$on("closeList",f[45]),me(e.$$.fragment),A(e.$$.fragment,1),ge(e,i.parentNode,i)):e=null}else o&&e.$set(h)},i(f){r||(e&&A(e.$$.fragment,f),r=!0)},o(f){e&&R(e.$$.fragment,f),r=!1},d(f){f&&_(i),e&&ve(e,f)}}}function Br(l){let e,t,i;return{c(){e=H("input"),this.h()},l(r){e=j(r,"INPUT",{name:!0,type:!0,class:!0}),this.h()},h(){a(e,"name",t=l[16].name),a(e,"type","hidden"),e.value=i=l[2]?l[12](l[2]):null,a(e,"class","svelte-17l1npl")},m(r,s){N(r,e,s)},p(r,s){s[0]&65536&&t!==(t=r[16].name)&&a(e,"name",t),s[0]&4100&&i!==(i=r[2]?r[12](r[2]):null)&&(e.value=i)},d(r){r&&_(e)}}}function Pr(l){let e,t=l[2],i=[];for(let r=0;r{p=null}),Ie()),M[35]?S?(S.p(M,V),V[1]&16&&A(S,1)):(S=Lr(M),S.c(),A(S,1),S.m(e,s)):S&&(Te(),R(S,1,1,()=>{S=null}),Ie()),Ht(n,B=Wt(L,[(!b||V[0]&8192&&o!==(o=!M[13]))&&{readOnly:o},V[1]&1&&M[31],(!b||V[1]&32)&&{placeholder:M[36]},(!b||V[0]&16384)&&{style:M[14]},(!b||V[0]&512)&&{disabled:M[9]}])),V[0]&8&&n.value!==M[3]&&rl(n,M[3]),oe(n,"svelte-17l1npl",!0),!M[7]&&M[29]?I?(I.p(M,V),V[0]&536871040&&A(I,1)):(I=Or(M),I.c(),A(I,1),I.m(e,f)):I&&(Te(),R(I,1,1,()=>{I=null}),Ie()),M[37]?O?(O.p(M,V),V[1]&64&&A(O,1)):(O=Nr(M),O.c(),A(O,1),O.m(e,c)):O&&(Te(),R(O,1,1,()=>{O=null}),Ie()),!M[37]&&(M[20]||M[19]&&!M[2]||!M[13]&&!M[9]&&!M[4]&&(M[29]&&!M[15]||!M[29]))?D?D.p(M,V):(D=Vr(M),D.c(),D.m(e,h)):D&&(D.d(1),D=null),M[4]?F||(F=Hr(),F.c(),F.m(e,d)):F&&(F.d(1),F=null),M[5]?P?(P.p(M,V),V[0]&32&&A(P,1)):(P=jr(M),P.c(),A(P,1),P.m(e,v)):P&&(Te(),R(P,1,1,()=>{P=null}),Ie()),!M[7]||M[7]&&!M[35]?U?U.p(M,V):(U=Br(M),U.c(),U.m(e,m)):U&&(U.d(1),U=null),M[7]&&M[35]?G?G.p(M,V):(G=Pr(M),G.c(),G.m(e,null)):G&&(G.d(1),G=null),(!b||V[0]&2097152&&y!==(y="selectContainer "+M[21]+" svelte-17l1npl"))&&a(e,"class",y),(!b||V[0]&2048)&&a(e,"style",M[11]),(!b||V[0]&2098176)&&oe(e,"hasError",M[10]),(!b||V[0]&2097280)&&oe(e,"multiSelect",M[7]),(!b||V[0]&2097664)&&oe(e,"disabled",M[9]),(!b||V[0]&2097154)&&oe(e,"focused",M[1])},i(M){b||(A(p),A(S),A(I),A(O),A(P),b=!0)},o(M){R(p),R(S),R(I),R(O),R(P),b=!1},d(M){M&&_(e),E&&E.d(),p&&p.d(),S&&S.d(),l[82](null),I&&I.d(),O&&O.d(),D&&D.d(),F&&F.d(),P&&P.d(),U&&U.d(),G&&G.d(),l[85](null),T=!1,$e(k)}}}function Gr(l){return l.map((e,t)=>({index:t,value:e,label:`${e}`}))}function tu(l,e,t){let i,r,s,n,o,u,f,c;const h=hl();let{id:d=null}=e,{container:v=void 0}=e,{input:m=void 0}=e,{isMulti:y=!1}=e,{multiFullItemClearable:b=!1}=e,{isDisabled:T=!1}=e,{isCreatable:k=!1}=e,{isFocused:E=!1}=e,{value:p=null}=e,{filterText:S=""}=e,{placeholder:L="Select..."}=e,{placeholderAlwaysShow:B=!1}=e,{items:I=null}=e,{itemFilter:O=(C,ye,Be)=>`${C}`.toLowerCase().includes(ye.toLowerCase())}=e,{groupBy:D=void 0}=e,{groupFilter:F=C=>C}=e,{isGroupHeaderSelectable:P=!1}=e,{getGroupHeaderLabel:U=C=>C[G]||C.id}=e,{labelIdentifier:G="label"}=e,{getOptionLabel:M=(C,ye)=>C.isCreator?`Create "${ye}"`:C[G]}=e,{optionIdentifier:V="value"}=e,{loadOptions:J=void 0}=e,{hasError:X=!1}=e,{containerStyles:Q=""}=e,{getSelectionLabel:Z=C=>C?C[G]:null}=e,{createGroupHeaderItem:$=C=>({value:C,label:C})}=e,{createItem:K=C=>({value:C,label:C})}=e;const Y=()=>i;let{isSearchable:ue=!0}=e,{inputStyles:x=""}=e,{isClearable:re=!0}=e,{isWaiting:ke=!1}=e,{listPlacement:z="auto"}=e,{listOpen:ie=!1}=e,{isVirtualList:le=!1}=e,{loadOptionsInterval:Se=300}=e,{noOptionsMessage:Re="No options"}=e,{hideEmptyState:je=!1}=e,{inputAttributes:ze={}}=e,{listAutoWidth:Ye=!0}=e,{itemHeight:We=40}=e,{Icon:Ke=void 0}=e,{iconProps:Qe={}}=e,{showChevron:ae=!1}=e,{showIndicator:pe=!1}=e,{containerClasses:Je=""}=e,{indicatorSvg:Pe=void 0}=e,{listOffset:Xe=5}=e,{ClearIcon:Le=Zo}=e,{Item:ht=os}=e,{List:Ae=Po}=e,{Selection:qe=Fo}=e,{MultiSelection:De=Wo}=e,{VirtualList:Ce=Xo}=e;function Oe(C){if(C.loadOptions&&C.filterText.length>0)return;if(!C.items)return[];C.items&&C.items.length>0&&typeof C.items[0]!="object"&&(C.items=Gr(C.items));let ye=C.items.filter(Be=>{let xe=O(M(Be,C.filterText),C.filterText,Be);return xe&&C.isMulti&&C.value&&Array.isArray(C.value)&&(xe=!C.value.some(Tt=>Tt[C.optionIdentifier]===Be[C.optionIdentifier])),xe});return C.groupBy&&(ye=Nt(ye)),C.isCreatable&&(ye=st(ye,C.filterText)),ye}function st(C,ye){if(ye.length===0)return C;const Be=K(ye);return C[0]&&ye===C[0][G]?C:(Be.isCreator=!0,[...C,Be])}let{selectedValue:Mt=null}=e,He,nt,_t,Lt,dt,yt;const Ot=Qo(async()=>{t(4,ke=!0);let C=await J(S).catch(ye=>{console.warn("svelte-select loadOptions error :>> ",ye),h("error",{type:"loadOptions",details:ye})});C&&!C.cancelled&&(C?(C&&C.length>0&&typeof C[0]!="object"&&(C=Gr(C)),t(81,i=[...C]),h("loaded",{items:i})):t(81,i=[]),k&&t(81,i=st(i,S)),t(4,ke=!1),t(1,E=!0),t(5,ie=!0))},Se);function Et(){typeof p=="string"?t(2,p={[V]:p,label:p}):y&&Array.isArray(p)&&p.length>0&&t(2,p=p.map(C=>typeof C=="string"?{value:C,label:C}:C))}let ut;function Yt(){t(31,ut=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},ze)),d&&t(31,ut.id=d,ut),ue||t(31,ut.readonly=!0,ut)}function Nt(C){const ye=[],Be={};C.forEach(Tt=>{const ft=D(Tt);ye.includes(ft)||(ye.push(ft),Be[ft]=[],ft&&Be[ft].push(Object.assign($(ft,Tt),{id:ft,isGroupHeader:!0,isSelectable:P}))),Be[ft].push(Object.assign({isGroupItem:!!ft},Tt))});const xe=[];return F(ye).forEach(Tt=>{xe.push(...Be[Tt])}),xe}function Jt(){if(y){JSON.stringify(p)!==JSON.stringify(nt)&&Yl()&&h("select",p);return}(!nt||JSON.stringify(p[V])!==JSON.stringify(nt[V]))&&h("select",p)}function Xt(){E||ie?ml():m&&m.blur()}function Pt(){p&&(Array.isArray(p)?t(2,p=[...p]):t(2,p=[p]))}function fs(){p&&t(2,p=null)}function cs(){S.length!==0&&(t(1,E=!0),t(5,ie=!0),J?Ot():(t(5,ie=!0),y&&t(30,He=void 0)))}Bl(async()=>{t(77,nt=p),t(78,_t=S),t(79,Lt=E),t(80,dt=y)});function Yl(){let C=!0;if(p){const ye=[],Be=[];p.forEach(xe=>{ye.includes(xe[V])?C=!1:(ye.push(xe[V]),Be.push(xe))}),C||t(2,p=Be)}return C}function Jl(C){let ye=C?C[V]:p[V];return I.find(Be=>Be[V]===ye)}function hs(C){!C||C.length===0||C.some(ye=>typeof ye!="object")||!p||(y?p.some(ye=>!ye||!ye[V]):!p[V])||(Array.isArray(p)?t(2,p=p.map(ye=>Jl(ye)||ye)):t(2,p=Jl()||p))}function Xl(C){const{detail:ye}=C,Be=p[ye?ye.i:p.length-1];p.length===1?t(2,p=void 0):t(2,p=p.filter(xe=>xe!==Be)),h("clear",Be)}function _s(C){if(!!E)switch(C.key){case"ArrowDown":C.preventDefault(),t(5,ie=!0),t(30,He=void 0);break;case"ArrowUp":C.preventDefault(),t(5,ie=!0),t(30,He=void 0);break;case"Tab":ie||t(1,E=!1);break;case"Backspace":if(!y||S.length>0)return;if(y&&p&&p.length>0){if(Xl(He!==void 0?He:p.length-1),He===0||He===void 0)break;t(30,He=p.length>He?He-1:void 0)}break;case"ArrowLeft":if(!y||S.length>0)return;He===void 0?t(30,He=p.length-1):p.length>He&&He!==0&&t(30,He-=1);break;case"ArrowRight":if(!y||S.length>0||He===void 0)return;He===p.length-1?t(30,He=void 0):He0?C.path[0]:C.target;v.contains(ye)||v.contains(C.relatedTarget)||(t(1,E=!1),t(5,ie=!1),t(30,He=void 0),m&&m.blur())}function ms(){T||(t(1,E=!0),t(5,ie=!ie))}function gs(){t(2,p=void 0),t(5,ie=!1),h("clear",p),ml()}tt(()=>{E&&m&&m.focus()});function vs(C){const{detail:ye}=C;if(ye){t(3,S="");const Be=Object.assign({},ye);(!Be.isGroupHeader||Be.isSelectable)&&(y?t(2,p=p?p.concat([Be]):[Be]):t(2,p=Be),t(2,p),setTimeout(()=>{t(5,ie=!1),t(30,He=void 0)}))}}function bs(C){const{detail:ye}=C;y?(t(2,p=p||[]),t(2,p=[...p,K(ye)])):t(2,p=K(ye)),h("itemCreated",ye),t(3,S=""),t(5,ie=!1),t(30,He=void 0)}function ps(){t(3,S=""),t(5,ie=!1)}let{ariaValues:gl=C=>`Option ${C}, selected.`}=e,{ariaListOpen:vl=(C,ye)=>`You are currently focused on option ${C}. There are ${ye} results available.`}=e,{ariaFocused:bl=()=>"Select is focused, type to refine list, press down to open the menu."}=e;function ks(){let C;return y&&p.length>0?C=p.map(ye=>Z(ye)).join(", "):C=Z(p),gl(C)}function ws(){if(!E||!i||i.length===0)return"";let C=i[yt];if(ie&&C){let ye=Z(C),Be=i?i.length:0;return vl(ye,Be)}else return bl()}function ys(C){Ge[C?"unshift":"push"](()=>{m=C,t(6,m)})}function Es(){S=this.value,t(3,S)}function Ts(C){yt=C,t(28,yt)}function Is(C){Ge[C?"unshift":"push"](()=>{v=C,t(0,v)})}return l.$$set=C=>{"id"in C&&t(46,d=C.id),"container"in C&&t(0,v=C.container),"input"in C&&t(6,m=C.input),"isMulti"in C&&t(7,y=C.isMulti),"multiFullItemClearable"in C&&t(8,b=C.multiFullItemClearable),"isDisabled"in C&&t(9,T=C.isDisabled),"isCreatable"in C&&t(47,k=C.isCreatable),"isFocused"in C&&t(1,E=C.isFocused),"value"in C&&t(2,p=C.value),"filterText"in C&&t(3,S=C.filterText),"placeholder"in C&&t(48,L=C.placeholder),"placeholderAlwaysShow"in C&&t(49,B=C.placeholderAlwaysShow),"items"in C&&t(50,I=C.items),"itemFilter"in C&&t(51,O=C.itemFilter),"groupBy"in C&&t(52,D=C.groupBy),"groupFilter"in C&&t(53,F=C.groupFilter),"isGroupHeaderSelectable"in C&&t(54,P=C.isGroupHeaderSelectable),"getGroupHeaderLabel"in C&&t(55,U=C.getGroupHeaderLabel),"labelIdentifier"in C&&t(56,G=C.labelIdentifier),"getOptionLabel"in C&&t(57,M=C.getOptionLabel),"optionIdentifier"in C&&t(58,V=C.optionIdentifier),"loadOptions"in C&&t(59,J=C.loadOptions),"hasError"in C&&t(10,X=C.hasError),"containerStyles"in C&&t(11,Q=C.containerStyles),"getSelectionLabel"in C&&t(12,Z=C.getSelectionLabel),"createGroupHeaderItem"in C&&t(60,$=C.createGroupHeaderItem),"createItem"in C&&t(61,K=C.createItem),"isSearchable"in C&&t(13,ue=C.isSearchable),"inputStyles"in C&&t(14,x=C.inputStyles),"isClearable"in C&&t(15,re=C.isClearable),"isWaiting"in C&&t(4,ke=C.isWaiting),"listPlacement"in C&&t(63,z=C.listPlacement),"listOpen"in C&&t(5,ie=C.listOpen),"isVirtualList"in C&&t(64,le=C.isVirtualList),"loadOptionsInterval"in C&&t(65,Se=C.loadOptionsInterval),"noOptionsMessage"in C&&t(66,Re=C.noOptionsMessage),"hideEmptyState"in C&&t(67,je=C.hideEmptyState),"inputAttributes"in C&&t(16,ze=C.inputAttributes),"listAutoWidth"in C&&t(68,Ye=C.listAutoWidth),"itemHeight"in C&&t(69,We=C.itemHeight),"Icon"in C&&t(17,Ke=C.Icon),"iconProps"in C&&t(18,Qe=C.iconProps),"showChevron"in C&&t(19,ae=C.showChevron),"showIndicator"in C&&t(20,pe=C.showIndicator),"containerClasses"in C&&t(21,Je=C.containerClasses),"indicatorSvg"in C&&t(22,Pe=C.indicatorSvg),"listOffset"in C&&t(70,Xe=C.listOffset),"ClearIcon"in C&&t(23,Le=C.ClearIcon),"Item"in C&&t(71,ht=C.Item),"List"in C&&t(24,Ae=C.List),"Selection"in C&&t(25,qe=C.Selection),"MultiSelection"in C&&t(26,De=C.MultiSelection),"VirtualList"in C&&t(72,Ce=C.VirtualList),"selectedValue"in C&&t(73,Mt=C.selectedValue),"ariaValues"in C&&t(74,gl=C.ariaValues),"ariaListOpen"in C&&t(75,vl=C.ariaListOpen),"ariaFocused"in C&&t(76,bl=C.ariaFocused)},l.$$.update=()=>{l.$$.dirty[0]&140|l.$$.dirty[1]&405340160&&t(81,i=Oe({loadOptions:J,filterText:S,items:I,value:p,isMulti:y,optionIdentifier:V,groupBy:D,isCreatable:k})),l.$$.dirty[2]&2048&&Mt&&console.warn("selectedValue is no longer used. Please use value instead."),l.$$.dirty[1]&524288&&hs(I),l.$$.dirty[0]&4&&p&&Et(),l.$$.dirty[0]&73728&&(ze||!ue)&&Yt(),l.$$.dirty[0]&128|l.$$.dirty[2]&262144&&(y&&Pt(),dt&&!y&&fs()),l.$$.dirty[0]&132&&y&&p&&p.length>1&&Yl(),l.$$.dirty[0]&4&&p&&Jt(),l.$$.dirty[0]&132|l.$$.dirty[2]&32768&&!p&&y&&nt&&h("select",p),l.$$.dirty[0]&2|l.$$.dirty[2]&131072&&E!==Lt&&Xt(),l.$$.dirty[0]&8|l.$$.dirty[2]&65536&&S!==_t&&cs(),l.$$.dirty[0]&12&&t(29,r=p&&S.length===0),l.$$.dirty[0]&536904208&&t(37,s=r&&re&&!T&&!ke),l.$$.dirty[0]&132|l.$$.dirty[1]&393216&&t(36,n=B&&y?L:p?"":L),l.$$.dirty[0]&132&&t(35,o=y&&p&&p.length>0),l.$$.dirty[0]&141|l.$$.dirty[1]&218103808|l.$$.dirty[2]&526326&&t(34,u={Item:ht,filterText:S,optionIdentifier:V,noOptionsMessage:Re,hideEmptyState:je,isVirtualList:le,VirtualList:Ce,value:p,isMulti:y,getGroupHeaderLabel:U,items:i,itemHeight:We,getOptionLabel:M,listPlacement:z,parent:v,listAutoWidth:Ye,listOffset:Xe}),l.$$.dirty[0]&132&&t(33,f=p?ks():""),l.$$.dirty[0]&268435490|l.$$.dirty[2]&524288&&t(32,c=ws())},[v,E,p,S,ke,ie,m,y,b,T,X,Q,Z,ue,x,re,ze,Ke,Qe,ae,pe,Je,Pe,Le,Ae,qe,De,gs,yt,r,He,ut,c,f,u,o,n,s,Xl,_s,ml,ds,ms,vs,bs,ps,d,k,L,B,I,O,D,F,P,U,G,M,V,J,$,K,Y,z,le,Se,Re,je,Ye,We,Xe,ht,Ce,Mt,gl,vl,bl,nt,_t,Lt,dt,i,ys,Es,Ts,Is]}class us extends Ne{constructor(e){super(),Ve(this,e,tu,eu,Me,{id:46,container:0,input:6,isMulti:7,multiFullItemClearable:8,isDisabled:9,isCreatable:47,isFocused:1,value:2,filterText:3,placeholder:48,placeholderAlwaysShow:49,items:50,itemFilter:51,groupBy:52,groupFilter:53,isGroupHeaderSelectable:54,getGroupHeaderLabel:55,labelIdentifier:56,getOptionLabel:57,optionIdentifier:58,loadOptions:59,hasError:10,containerStyles:11,getSelectionLabel:12,createGroupHeaderItem:60,createItem:61,getFilteredItems:62,isSearchable:13,inputStyles:14,isClearable:15,isWaiting:4,listPlacement:63,listOpen:5,isVirtualList:64,loadOptionsInterval:65,noOptionsMessage:66,hideEmptyState:67,inputAttributes:16,listAutoWidth:68,itemHeight:69,Icon:17,iconProps:18,showChevron:19,showIndicator:20,containerClasses:21,indicatorSvg:22,listOffset:70,ClearIcon:23,Item:71,List:24,Selection:25,MultiSelection:26,VirtualList:72,selectedValue:73,handleClear:27,ariaValues:74,ariaListOpen:75,ariaFocused:76},null,[-1,-1,-1,-1])}get getFilteredItems(){return this.$$.ctx[62]}get handleClear(){return this.$$.ctx[27]}}function Fr(l,e,t){const i=l.slice();return i[21]=e[t],i}function lu(l){let e,t,i=l[4]("main.options.language")+"",r,s,n,o,u,f;n=new us({props:{items:l[6],value:{label:l[2].label,value:l[0]},isClearable:!1,isSearchable:!1,containerStyles:"color: var(--primary-color);flex: 1 1 auto;width:13rem;",inputStyles:"box-sizing: border-box;"}}),n.$on("select",l[13]);let c=l[0]!=="en"&&zr(l);return{c(){e=H("div"),t=H("div"),r=se(i),s=ee(),me(n.$$.fragment),o=ee(),c&&c.c(),u=_e(),this.h()},l(h){e=j(h,"DIV",{class:!0});var d=w(e);t=j(d,"DIV",{class:!0});var v=w(t);r=ne(v,i),v.forEach(_),s=te(d),we(n.$$.fragment,d),d.forEach(_),o=te(h),c&&c.l(h),u=_e(),this.h()},h(){a(t,"class","label svelte-5dl16q"),a(e,"class","select-container svelte-5dl16q")},m(h,d){N(h,e,d),g(e,t),g(t,r),g(e,s),ge(n,e,null),N(h,o,d),c&&c.m(h,d),N(h,u,d),f=!0},p(h,d){(!f||d&16)&&i!==(i=h[4]("main.options.language")+"")&&he(r,i);const v={};d&5&&(v.value={label:h[2].label,value:h[0]}),n.$set(v),h[0]!=="en"?c?c.p(h,d):(c=zr(h),c.c(),c.m(u.parentNode,u)):c&&(c.d(1),c=null)},i(h){f||(A(n.$$.fragment,h),f=!0)},o(h){R(n.$$.fragment,h),f=!1},d(h){h&&_(e),ve(n),h&&_(o),c&&c.d(h),h&&_(u)}}}function zr(l){let e,t=l[4]("main.options.help_translate")+"";return{c(){e=H("p")},l(i){e=j(i,"P",{});var r=w(e);r.forEach(_)},m(i,r){N(i,e,r),e.innerHTML=t},p(i,r){r&16&&t!==(t=i[4]("main.options.help_translate")+"")&&(e.innerHTML=t)},d(i){i&&_(e)}}}function iu(l){let e,t=l[4](l[21].label)+"",i;return{c(){e=H("div"),i=se(t),this.h()},l(r){e=j(r,"DIV",{class:!0});var s=w(e);i=ne(s,t),s.forEach(_),this.h()},h(){a(e,"class","label svelte-5dl16q")},m(r,s){N(r,e,s),g(e,i)},p(r,s){s&16&&t!==(t=r[4](r[21].label)+"")&&he(i,t)},d(r){r&&_(e)}}}function Rr(l){let e,t;return e=new ns({props:{toggled:be(l[21].bind),hideLabel:!0,label:l[4](l[21].label),style:"transform: scale(1.6); touch-action: manipulation; flex-basis: 2.5rem;",toggledColor:"var(--accent-color)",untoggledColor:"#695d6e",$$slots:{default:[iu]},$$scope:{ctx:l}}}),e.$on("click",l[21].click),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,r){const s={};r&16&&(s.label=i[4](i[21].label)),r&16777232&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function ru(l){let e,t,i,r,s=l[4]("main.options.keyboard_layout")+"",n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S,L,B,I,O,D=l[6].length>1&&lu(l);u=new us({props:{items:Gl,value:{label:l[3].label,value:l[1]},isClearable:!1,isSearchable:!1,containerStyles:"color: var(--primary-color);flex: 1 1 auto;width:13rem;",inputStyles:"box-sizing: border-box;"}}),u.$on("select",l[14]);let F=l[11],P=[];for(let G=0;GR(P[G],1,1,()=>{P[G]=null});return p=new St({props:{tile:{scored:!0,letter:"w",distance:-1,id:0,polarity:0}}}),L=new St({props:{tile:{scored:!0,letter:"p",distance:1,id:0,polarity:0}}}),{c(){e=H("div"),D&&D.c(),t=ee(),i=H("div"),r=H("div"),n=se(s),o=ee(),me(u.$$.fragment),f=ee();for(let G=0;G1&&D.p(G,M),(!B||M&16)&&s!==(s=G[4]("main.options.keyboard_layout")+"")&&he(n,s);const V={};if(M&10&&(V.value={label:G[3].label,value:G[1]}),u.$set(V),M&2064){F=G[11];let J;for(J=0;Jt(4,o=I));const f=Object.entries(ln).map(([I,O])=>({value:I,label:O})),{storedLocale:c,keyboardLayout:h,highContrast:d,showAllHints:v,tileSharpness:m}=Bt;Ee(l,c,I=>t(0,s=I)),Ee(l,h,I=>t(1,n=I)),Ee(l,m,I=>t(5,u=I));let y=[...Gl];async function b(I){c.set(I),await rn(I),y.find(O=>O.value==="alphabetic").label=be(Ze)("main.options.alphabetic"),y.find(O=>O.value==="alphabetic_reversed").label=be(Ze)("main.options.alphabetic_reversed"),t(12,y)}const T=Ms(!1);function k(){try{sn(!be(T))}catch(I){qt.pop(),qt.push(I,{theme:{"--toastBackground":"var(--error-color)"}})}}const E=I=>()=>I.set(!be(I)),p=[{bind:T,label:"main.options.hard_mode",click:k},{bind:d,label:"main.options.high_contrast_mode",click:E(d)},{bind:v,label:"main.options.show_all_hints",click:E(v)},{bind:Cl,label:"main.options.swap_enter_backspace",click:E(Cl)},{bind:ni,label:"main.options.use_dyslexic_font",click:E(ni)},{bind:ai,label:"main.options.hide_landscape",click:E(ai)},{bind:nl,label:"main.options.allow_dancing_letters",click:E(nl)},{bind:oi,label:"main.options.show_precise_times",click:E(oi)}];Bl(()=>{T.set(be(nn))}),tt(()=>b(be(c)));const S=({detail:{value:I}})=>b(I),L=({detail:{value:I}})=>h.set(I);function B(){u=Gs(this.value),m.set(u)}return l.$$.update=()=>{l.$$.dirty&4098&&t(3,i=y.find(I=>I.value===n)),l.$$.dirty&1&&t(2,r=f.find(I=>I.value===s))},[s,n,r,i,o,u,f,c,h,m,b,p,y,S,L,B]}class au extends Ne{constructor(e){super(),Ve(this,e,nu,su,Me,{})}}const ou=()=>{const l=Fs("__svelte__");return{page:{subscribe:l.page.subscribe},navigating:{subscribe:l.navigating.subscribe},get preloading(){return console.error("stores.preloading is deprecated; use stores.navigating instead"),{subscribe:l.navigating.subscribe}},session:l.session,updated:l.updated}},uu={subscribe(l){return ou().page.subscribe(l)}};function fu(l){let e,t,i,r=l[0]("main.footer.credits")+"",s,n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S,L,B;return{c(){e=H("footer"),t=H("div"),i=H("p"),s=ee(),n=H("div"),o=H("div"),u=W("svg"),f=W("title"),c=se("Discord"),h=W("path"),d=ee(),v=H("pre"),m=se("vegeta897"),y=ee(),b=H("div"),T=W("svg"),k=W("title"),E=se("Twitter"),p=W("path"),S=ee(),L=H("a"),B=se("@vegeta897"),this.h()},l(I){e=j(I,"FOOTER",{class:!0});var O=w(e);t=j(O,"DIV",{class:!0});var D=w(t);i=j(D,"P",{class:!0});var F=w(i);F.forEach(_),D.forEach(_),s=te(O),n=j(O,"DIV",{class:!0});var P=w(n);o=j(P,"DIV",{class:!0});var U=w(o);u=q(U,"svg",{class:!0,viewBox:!0,fill:!0,xmlns:!0});var G=w(u);f=q(G,"title",{});var M=w(f);c=ne(M,"Discord"),M.forEach(_),h=q(G,"path",{d:!0,fill:!0}),w(h).forEach(_),G.forEach(_),d=te(U),v=j(U,"PRE",{class:!0});var V=w(v);m=ne(V,"vegeta897"),V.forEach(_),U.forEach(_),y=te(P),b=j(P,"DIV",{class:!0});var J=w(b);T=q(J,"svg",{class:!0,xmlns:!0,viewBox:!0});var X=w(T);k=q(X,"title",{});var Q=w(k);E=ne(Q,"Twitter"),Q.forEach(_),p=q(X,"path",{fill:!0,d:!0}),w(p).forEach(_),X.forEach(_),S=te(J),L=j(J,"A",{href:!0});var Z=w(L);B=ne(Z,"@vegeta897"),Z.forEach(_),J.forEach(_),P.forEach(_),O.forEach(_),this.h()},h(){a(i,"class","svelte-s4dyav"),a(t,"class","footer-row svelte-s4dyav"),a(h,"d",an),a(h,"fill","#bbbbbb"),a(u,"class","icon svelte-s4dyav"),a(u,"viewBox","0 0 71 55"),a(u,"fill","none"),a(u,"xmlns","http://www.w3.org/2000/svg"),a(v,"class","svelte-s4dyav"),a(o,"class","footer-item icon-item svelte-s4dyav"),a(p,"fill","#bbbbbb"),a(p,"d",on),a(T,"class","icon svelte-s4dyav"),a(T,"xmlns","http://www.w3.org/2000/svg"),a(T,"viewBox","0 0 248 204"),a(L,"href","https://twitter.com/vegeta897"),a(b,"class","footer-item icon-item svelte-s4dyav"),a(n,"class","footer-row svelte-s4dyav"),a(e,"class","svelte-s4dyav")},m(I,O){N(I,e,O),g(e,t),g(t,i),i.innerHTML=r,g(e,s),g(e,n),g(n,o),g(o,u),g(u,f),g(f,c),g(u,h),g(o,d),g(o,v),g(v,m),g(n,y),g(n,b),g(b,T),g(T,k),g(k,E),g(T,p),g(b,S),g(b,L),g(L,B)},p(I,[O]){O&1&&r!==(r=I[0]("main.footer.credits")+"")&&(i.innerHTML=r)},i:ce,o:ce,d(I){I&&_(e)}}}function cu(l,e,t){let i;return Ee(l,Ze,r=>t(0,i=r)),[i]}class hu extends Ne{constructor(e){super(),Ve(this,e,cu,fu,Me,{})}}function _u(l){let e;function t(s,n){return s[4]==="daily"?mu:du}let i=t(l),r=i(l);return{c(){e=H("small"),r.c(),this.h()},l(s){e=j(s,"SMALL",{class:!0});var n=w(e);r.l(n),n.forEach(_),this.h()},h(){a(e,"class","game-mode svelte-16aguoh")},m(s,n){N(s,e,n),r.m(e,null)},p(s,n){i===(i=t(s))&&r?r.p(s,n):(r.d(1),r=i(s),r&&(r.c(),r.m(e,null)))},d(s){s&&_(e),r.d()}}}function du(l){let e,t,i=l[5]("main.summary.random")+"",r,s;return{c(){e=W("svg"),t=W("title"),r=se(i),s=W("path"),this.h()},l(n){e=q(n,"svg",{viewBox:!0,xmlns:!0,width:!0});var o=w(e);t=q(o,"title",{});var u=w(t);r=ne(u,i),u.forEach(_),s=q(o,"path",{stroke:!0,fill:!0,d:!0,"stroke-width":!0}),w(s).forEach(_),o.forEach(_),this.h()},h(){a(s,"stroke","#888"),a(s,"fill","none"),a(s,"d","M2.29 0.79 l1.41 1.41 a1 1 0 1 0 0 -1.41 l-1.41 1.41 a1 1 0 1 1 0 -1.41"),a(s,"stroke-width","0.5"),a(e,"viewBox","0 0 6 3"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","32px")},m(n,o){N(n,e,o),g(e,t),g(t,r),g(e,s)},p(n,o){o&32&&i!==(i=n[5]("main.summary.random")+"")&&he(r,i)},d(n){n&&_(e)}}}function mu(l){let e,t=l[1]+1+"",i;return{c(){e=se("#"),i=se(t)},l(r){e=ne(r,"#"),i=ne(r,t)},m(r,s){N(r,e,s),N(r,i,s)},p(r,s){s&2&&t!==(t=r[1]+1+"")&&he(i,t)},d(r){r&&_(e),r&&_(i)}}}function gu(l){let e,t,i=l[5]("main.summary.daily")+"",r,s,n,o,u=l[5]("main.summary.random")+"",f,c,h,d,v,m,y=l[4]!=="daily"&&Wr(l);return{c(){e=H("div"),t=H("button"),r=se(i),n=ee(),o=H("button"),f=se(u),h=ee(),y&&y.c(),this.h()},l(b){e=j(b,"DIV",{class:!0});var T=w(e);t=j(T,"BUTTON",{class:!0});var k=w(t);r=ne(k,i),k.forEach(_),n=te(T),o=j(T,"BUTTON",{class:!0});var E=w(o);f=ne(E,u),E.forEach(_),h=te(T),y&&y.l(T),T.forEach(_),this.h()},h(){t.disabled=s=l[4]==="daily",a(t,"class","svelte-16aguoh"),o.disabled=c=l[4]!=="daily",a(o,"class","svelte-16aguoh"),a(e,"class","game-mode-buttons svelte-16aguoh")},m(b,T){N(b,e,T),g(e,t),g(t,r),g(e,n),g(e,o),g(o,f),g(e,h),y&&y.m(e,null),d=!0,v||(m=[de(t,"click",Al),de(o,"click",l[8])],v=!0)},p(b,T){(!d||T&32)&&i!==(i=b[5]("main.summary.daily")+"")&&he(r,i),(!d||T&16&&s!==(s=b[4]==="daily"))&&(t.disabled=s),(!d||T&32)&&u!==(u=b[5]("main.summary.random")+"")&&he(f,u),(!d||T&16&&c!==(c=b[4]!=="daily"))&&(o.disabled=c),b[4]!=="daily"?y?(y.p(b,T),T&16&&A(y,1)):(y=Wr(b),y.c(),A(y,1),y.m(e,null)):y&&(Te(),R(y,1,1,()=>{y=null}),Ie())},i(b){d||(A(y),d=!0)},o(b){R(y),d=!1},d(b){b&&_(e),y&&y.d(),v=!1,$e(m)}}}function Wr(l){let e,t,i,r,s,n,o,u;return{c(){e=H("button"),t=W("svg"),i=W("path"),this.h()},l(f){e=j(f,"BUTTON",{class:!0,title:!0});var c=w(e);t=q(c,"svg",{viewBox:!0,xmlns:!0,width:!0});var h=w(t);i=q(h,"path",{stroke:!0,fill:!0,d:!0,"stroke-width":!0,"stroke-linecap":!0}),w(i).forEach(_),h.forEach(_),c.forEach(_),this.h()},h(){a(i,"stroke","currentColor"),a(i,"fill","none"),a(i,"d","M3.5 1.5 v4 M1.5 3.5 h4"),a(i,"stroke-width","1"),a(i,"stroke-linecap","round"),a(t,"viewBox","0 0 7 7"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","21px"),a(e,"class","new-random svelte-16aguoh"),a(e,"title",r=l[5]("main.other.new_word"))},m(f,c){N(f,e,c),g(e,t),g(t,i),n=!0,o||(u=de(e,"click",l[6]),o=!0)},p(f,c){(!n||c&32&&r!==(r=f[5]("main.other.new_word")))&&a(e,"title",r)},i(f){n||(ct(()=>{!n||(s||(s=et(e,fi,{x:-10,duration:150},!0)),s.run(1))}),n=!0)},o(f){s||(s=et(e,fi,{x:-10,duration:150},!1)),s.run(0),n=!1},d(f){f&&_(e),f&&s&&s.end(),o=!1,u()}}}function vu(l){let e,t,i,r,s,n=l[0]?"Leaks":"Peaks",o,u,f,c,h,d,v,m,y,b,T,k,E,p,S,L,B,I,O,D,F,P,U,G,M,V=_u(l),J=gu(l);return{c(){e=H("header"),t=H("div"),i=H("h1"),r=se("Word "),s=H("span"),o=se(n),u=ee(),V&&V.c(),f=ee(),J&&J.c(),c=ee(),h=H("div"),d=H("button"),v=H("span"),m=se("?"),b=ee(),T=H("button"),k=W("svg"),E=W("g"),p=W("rect"),S=W("rect"),L=W("rect"),I=ee(),O=H("button"),D=W("svg"),F=W("path"),this.h()},l(X){e=j(X,"HEADER",{class:!0});var Q=w(e);t=j(Q,"DIV",{class:!0});var Z=w(t);i=j(Z,"H1",{class:!0});var $=w(i);r=ne($,"Word "),s=j($,"SPAN",{class:!0});var K=w(s);o=ne(K,n),K.forEach(_),u=te($),V&&V.l($),$.forEach(_),f=te(Z),J&&J.l(Z),Z.forEach(_),c=te(Q),h=j(Q,"DIV",{class:!0});var Y=w(h);d=j(Y,"BUTTON",{title:!0,class:!0});var ue=w(d);v=j(ue,"SPAN",{class:!0});var x=w(v);m=ne(x,"?"),x.forEach(_),ue.forEach(_),b=te(Y),T=j(Y,"BUTTON",{title:!0,class:!0});var re=w(T);k=q(re,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var ke=w(k);E=q(ke,"g",{transform:!0});var z=w(E);p=q(z,"rect",{fill:!0,id:!0,x:!0,y:!0,height:!0,width:!0,class:!0}),w(p).forEach(_),S=q(z,"rect",{fill:!0,x:!0,y:!0,height:!0,width:!0}),w(S).forEach(_),L=q(z,"rect",{fill:!0,id:!0,x:!0,y:!0,height:!0,width:!0,class:!0}),w(L).forEach(_),z.forEach(_),ke.forEach(_),re.forEach(_),I=te(Y),O=j(Y,"BUTTON",{title:!0,class:!0});var ie=w(O);D=q(ie,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var le=w(D);F=q(le,"path",{fill:!0,d:!0}),w(F).forEach(_),le.forEach(_),ie.forEach(_),Y.forEach(_),Q.forEach(_),this.h()},h(){a(s,"class","svelte-16aguoh"),oe(s,"leak",l[2]),a(i,"class","svelte-16aguoh"),a(t,"class","heading-container svelte-16aguoh"),a(v,"class","svelte-16aguoh"),a(d,"title",y=l[5]("main.tutorial.title")),a(d,"class","bulge svelte-16aguoh"),a(p,"fill","currentColor"),a(p,"id","graph_bar_1"),a(p,"x","0"),a(p,"y","0"),a(p,"height","8"),a(p,"width","2"),a(p,"class","svelte-16aguoh"),a(S,"fill","currentColor"),a(S,"x","3"),a(S,"y","0"),a(S,"height","5"),a(S,"width","2"),a(L,"fill","currentColor"),a(L,"id","graph_bar_3"),a(L,"x","6"),a(L,"y","0"),a(L,"height","2"),a(L,"width","2"),a(L,"class","svelte-16aguoh"),a(E,"transform","rotate(180 4.5 4.5)"),a(k,"viewBox","0 0 9 9"),a(k,"xmlns","http://www.w3.org/2000/svg"),a(k,"width","20"),a(k,"height","20"),a(k,"class","svelte-16aguoh"),a(T,"title",B=l[5]("main.stats.title")),a(T,"class","svelte-16aguoh"),a(F,"fill","currentColor"),a(F,"d",un),a(D,"viewBox","0 0 76 76"),a(D,"xmlns","http://www.w3.org/2000/svg"),a(D,"width","20"),a(D,"height","20"),a(D,"class","svelte-16aguoh"),a(O,"title",P=l[5]("main.options.title")),a(O,"class","hover-spin svelte-16aguoh"),a(h,"class","menu-buttons svelte-16aguoh"),fe(h,"visibility","visible"),a(e,"class","svelte-16aguoh"),oe(e,"high-contrast",l[3])},m(X,Q){N(X,e,Q),g(e,t),g(t,i),g(i,r),g(i,s),g(s,o),g(i,u),V&&V.m(i,null),g(t,f),J&&J.m(t,null),g(e,c),g(e,h),g(h,d),g(d,v),g(v,m),g(h,b),g(h,T),g(T,k),g(k,E),g(E,p),g(E,S),g(E,L),g(h,I),g(h,O),g(O,D),g(D,F),U=!0,G||(M=[de(d,"click",l[9]),de(T,"click",l[10]),de(O,"click",l[11])],G=!0)},p(X,[Q]){(!U||Q&1)&&n!==(n=X[0]?"Leaks":"Peaks")&&he(o,n),(!U||Q&4)&&oe(s,"leak",X[2]),V.p(X,Q),J.p(X,Q),(!U||Q&32&&y!==(y=X[5]("main.tutorial.title")))&&a(d,"title",y),(!U||Q&32&&B!==(B=X[5]("main.stats.title")))&&a(T,"title",B),(!U||Q&32&&P!==(P=X[5]("main.options.title")))&&a(O,"title",P),(!U||Q&8)&&oe(e,"high-contrast",X[3])},i(X){U||(A(J),U=!0)},o(X){R(J),U=!1},d(X){X&&_(e),V&&V.d(),J&&J.d(),G=!1,$e(M)}}}function bu(l,e,t){let i,r,s,n,o,u,f;Ee(l,dl,b=>t(7,s=b)),Ee(l,es,b=>t(1,n=b)),Ee(l,Dl,b=>t(3,o=b)),Ee(l,ls,b=>t(4,u=b)),Ee(l,Ze,b=>t(5,f=b));const c={theme:{"--toastBackground":"var(--cta-color)"}},h=b=>{const T=!be($r);al(ts()),b.currentTarget.blur(),T&&qt.push(be(Ze)("main.messages.answer_randomized"),c)},d=()=>al(),v=()=>at.set("tutorial"),m=()=>at.set("stats"),y=()=>at.set("options");return l.$$.update=()=>{l.$$.dirty&2&&t(0,i=n&&rs()),l.$$.dirty&129&&t(2,r=i&&s.some(b=>b.some(T=>T.scored&&T.distance>0)))},[i,n,r,o,u,f,h,s,d,v,m,y]}class pu extends Ne{constructor(e){super(),Ve(this,e,bu,vu,Me,{})}}function qr(l){let e,t,i={ctx:l,current:null,token:null,hasCatch:!1,pending:yu,then:wu,catch:ku,value:7,blocks:[,,,]};return Jr(zt(()=>import("./Console-b22dceae.js"),["chunks/Console-b22dceae.js","chunks/index-0dc809ca.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js"]),i),{c(){e=_e(),i.block.c()},l(r){e=_e(),i.block.l(r)},m(r,s){N(r,e,s),i.block.m(r,i.anchor=s),i.mount=()=>e.parentNode,i.anchor=e,t=!0},p(r,s){l=r},i(r){t||(A(i.block),t=!0)},o(r){for(let s=0;s<3;s+=1){const n=i.blocks[s];R(n)}t=!1},d(r){r&&_(e),i.block.d(r),i.token=null,i=null}}}function ku(l){return{c:ce,l:ce,m:ce,i:ce,o:ce,d:ce}}function wu(l){let e,t,i;var r=l[7].default;function s(n){return{}}return r&&(e=Ue(r,s())),{c(){e&&me(e.$$.fragment),t=_e()},l(n){e&&we(e.$$.fragment,n),t=_e()},m(n,o){e&&ge(e,n,o),N(n,t,o),i=!0},i(n){i||(e&&A(e.$$.fragment,n),i=!0)},o(n){e&&R(e.$$.fragment,n),i=!1},d(n){n&&_(t),e&&ve(e,n)}}}function yu(l){return{c:ce,l:ce,m:ce,i:ce,o:ce,d:ce}}function Eu(l){let e,t;return e=new yo({props:{gameMode:l[2]}}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,r){const s={};r&4&&(s.gameMode=i[2]),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Tu(l){let e,t;return e=new So({}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p:ce,i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Iu(l){let e,t;return e=new au({}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p:ce,i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Su(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y;i=new pu({}),s=new Da({}),o=new co({});let b=l[0]&&qr(l);c=new hu({});const T=[Iu,Tu,Eu],k=[];function E(p,S){return p[1]==="options"?0:p[1]==="tutorial"?1:p[1]==="stats"?2:-1}return~(d=E(l))&&(v=k[d]=T[d](l)),{c(){e=H("div"),t=H("section"),me(i.$$.fragment),r=ee(),me(s.$$.fragment),n=ee(),me(o.$$.fragment),u=ee(),b&&b.c(),f=ee(),me(c.$$.fragment),h=ee(),v&&v.c(),m=_e(),this.h()},l(p){e=j(p,"DIV",{class:!0});var S=w(e);t=j(S,"SECTION",{});var L=w(t);we(i.$$.fragment,L),r=te(L),we(s.$$.fragment,L),n=te(L),we(o.$$.fragment,L),u=te(L),b&&b.l(L),L.forEach(_),f=te(S),we(c.$$.fragment,S),S.forEach(_),h=te(p),v&&v.l(p),m=_e(),this.h()},h(){a(e,"class","svelte-1iilali"),oe(e,"minimized",l[1]!==null)},m(p,S){N(p,e,S),g(e,t),ge(i,t,null),g(t,r),ge(s,t,null),g(t,n),ge(o,t,null),g(t,u),b&&b.m(t,null),g(e,f),ge(c,e,null),N(p,h,S),~d&&k[d].m(p,S),N(p,m,S),y=!0},p(p,[S]){p[0]?b?S&1&&A(b,1):(b=qr(p),b.c(),A(b,1),b.m(t,null)):b&&(Te(),R(b,1,1,()=>{b=null}),Ie()),(!y||S&2)&&oe(e,"minimized",p[1]!==null);let L=d;d=E(p),d===L?~d&&k[d].p(p,S):(v&&(Te(),R(k[L],1,1,()=>{k[L]=null}),Ie()),~d?(v=k[d],v?v.p(p,S):(v=k[d]=T[d](p),v.c()),A(v,1),v.m(m.parentNode,m)):v=null)},i(p){y||(A(i.$$.fragment,p),A(s.$$.fragment,p),A(o.$$.fragment,p),A(b),A(c.$$.fragment,p),A(v),y=!0)},o(p){R(i.$$.fragment,p),R(s.$$.fragment,p),R(o.$$.fragment,p),R(b),R(c.$$.fragment,p),R(v),y=!1},d(p){p&&_(e),ve(i),ve(s),ve(o),b&&b.d(),ve(c),p&&_(h),~d&&k[d].d(p),p&&_(m)}}}function Du(l,e,t){var c;let i,r;const{openScreen:s,gameMode:n}=Bt;Ee(l,s,h=>t(1,i=h)),Ee(l,n,h=>t(2,r=h));const o=fn((c=be(uu).url.hash)==null?void 0:c.slice(1));tt(()=>{!be(cn)&&!be(hn)&&(is.set(!0),s.set("tutorial")),u()}),_n();function u(){o?al(o):Al()}let f;return window.wp_start=()=>t(0,f=!0),[f,i,r,s,n]}class ju extends Ne{constructor(e){super(),Ve(this,e,Du,Su,Me,{})}}export{ju as R,Mn as c}; + `),m=j(Q,"INPUT",{type:!0,min:!0,max:!0,step:!0,list:!0,class:!0}),y=te(Q),b=j(Q,"DATALIST",{id:!0});var Z=w(b);T=j(Z,"OPTION",{}),w(T).forEach(_),Z.forEach(_),Q.forEach(_),k=te(X),E=j(X,"DIV",{style:!0});var $=w(E);we(p.$$.fragment,$),$.forEach(_),S=te(X),we(L.$$.fragment,X),X.forEach(_),M.forEach(_),this.h()},h(){a(r,"class","label svelte-5dl16q"),a(i,"class","select-container svelte-5dl16q"),a(m,"type","range"),a(m,"min","0"),a(m,"max","2"),a(m,"step","0.02"),a(m,"list","tileSharpnessOptions"),a(m,"class","svelte-5dl16q"),T.__value="0.72",T.value=T.__value,a(b,"id","tileSharpnessOptions"),a(d,"class","svelte-5dl16q"),fe(E,"margin-right","0.25rem"),a(h,"class","slider-container svelte-5dl16q"),a(e,"class","content svelte-5dl16q")},m(G,M){N(G,e,M),D&&D.m(e,null),g(e,t),g(e,i),g(i,r),g(r,n),g(i,o),ge(u,i,null),g(e,f);for(let V=0;V1&&D.p(G,M),(!B||M&16)&&s!==(s=G[4]("main.options.keyboard_layout")+"")&&he(n,s);const V={};if(M&10&&(V.value={label:G[3].label,value:G[1]}),u.$set(V),M&2064){F=G[11];let J;for(J=0;Jt(4,o=I));const f=Object.entries(ln).map(([I,O])=>({value:I,label:O})),{storedLocale:c,keyboardLayout:h,highContrast:d,showAllHints:v,tileSharpness:m}=Bt;Ee(l,c,I=>t(0,s=I)),Ee(l,h,I=>t(1,n=I)),Ee(l,m,I=>t(5,u=I));let y=[...Gl];async function b(I){c.set(I),await rn(I),y.find(O=>O.value==="alphabetic").label=be(Ze)("main.options.alphabetic"),y.find(O=>O.value==="alphabetic_reversed").label=be(Ze)("main.options.alphabetic_reversed"),t(12,y)}const T=Ms(!1);function k(){try{sn(!be(T))}catch(I){qt.pop(),qt.push(I,{theme:{"--toastBackground":"var(--error-color)"}})}}const E=I=>()=>I.set(!be(I)),p=[{bind:T,label:"main.options.hard_mode",click:k},{bind:d,label:"main.options.high_contrast_mode",click:E(d)},{bind:v,label:"main.options.show_all_hints",click:E(v)},{bind:Cl,label:"main.options.swap_enter_backspace",click:E(Cl)},{bind:ni,label:"main.options.use_dyslexic_font",click:E(ni)},{bind:ai,label:"main.options.hide_landscape",click:E(ai)},{bind:nl,label:"main.options.allow_dancing_letters",click:E(nl)},{bind:oi,label:"main.options.show_precise_times",click:E(oi)}];Bl(()=>{T.set(be(nn))}),tt(()=>b(be(c)));const S=({detail:{value:I}})=>b(I),L=({detail:{value:I}})=>h.set(I);function B(){u=Gs(this.value),m.set(u)}return l.$$.update=()=>{l.$$.dirty&4098&&t(3,i=y.find(I=>I.value===n)),l.$$.dirty&1&&t(2,r=f.find(I=>I.value===s))},[s,n,r,i,o,u,f,c,h,m,b,p,y,S,L,B]}class au extends Ne{constructor(e){super(),Ve(this,e,nu,su,Me,{})}}const ou=()=>{const l=Fs("__svelte__");return{page:{subscribe:l.page.subscribe},navigating:{subscribe:l.navigating.subscribe},get preloading(){return console.error("stores.preloading is deprecated; use stores.navigating instead"),{subscribe:l.navigating.subscribe}},session:l.session,updated:l.updated}},uu={subscribe(l){return ou().page.subscribe(l)}};function fu(l){let e,t,i,r=l[0]("main.footer.credits")+"",s,n,o,u,f,c,h,d,v,m,y,b,T,k,E,p,S,L,B;return{c(){e=H("footer"),t=H("div"),i=H("p"),s=ee(),n=H("div"),o=H("div"),u=W("svg"),f=W("title"),c=se("Discord"),h=W("path"),d=ee(),v=H("pre"),m=se("vegeta897"),y=ee(),b=H("div"),T=W("svg"),k=W("title"),E=se("Twitter"),p=W("path"),S=ee(),L=H("a"),B=se("@vegeta897"),this.h()},l(I){e=j(I,"FOOTER",{class:!0});var O=w(e);t=j(O,"DIV",{class:!0});var D=w(t);i=j(D,"P",{class:!0});var F=w(i);F.forEach(_),D.forEach(_),s=te(O),n=j(O,"DIV",{class:!0});var P=w(n);o=j(P,"DIV",{class:!0});var U=w(o);u=q(U,"svg",{class:!0,viewBox:!0,fill:!0,xmlns:!0});var G=w(u);f=q(G,"title",{});var M=w(f);c=ne(M,"Discord"),M.forEach(_),h=q(G,"path",{d:!0,fill:!0}),w(h).forEach(_),G.forEach(_),d=te(U),v=j(U,"PRE",{class:!0});var V=w(v);m=ne(V,"vegeta897"),V.forEach(_),U.forEach(_),y=te(P),b=j(P,"DIV",{class:!0});var J=w(b);T=q(J,"svg",{class:!0,xmlns:!0,viewBox:!0});var X=w(T);k=q(X,"title",{});var Q=w(k);E=ne(Q,"Twitter"),Q.forEach(_),p=q(X,"path",{fill:!0,d:!0}),w(p).forEach(_),X.forEach(_),S=te(J),L=j(J,"A",{href:!0});var Z=w(L);B=ne(Z,"@vegeta897"),Z.forEach(_),J.forEach(_),P.forEach(_),O.forEach(_),this.h()},h(){a(i,"class","svelte-s4dyav"),a(t,"class","footer-row svelte-s4dyav"),a(h,"d",an),a(h,"fill","#bbbbbb"),a(u,"class","icon svelte-s4dyav"),a(u,"viewBox","0 0 71 55"),a(u,"fill","none"),a(u,"xmlns","http://www.w3.org/2000/svg"),a(v,"class","svelte-s4dyav"),a(o,"class","footer-item icon-item svelte-s4dyav"),a(p,"fill","#bbbbbb"),a(p,"d",on),a(T,"class","icon svelte-s4dyav"),a(T,"xmlns","http://www.w3.org/2000/svg"),a(T,"viewBox","0 0 248 204"),a(L,"href","https://twitter.com/vegeta897"),a(b,"class","footer-item icon-item svelte-s4dyav"),a(n,"class","footer-row svelte-s4dyav"),a(e,"class","svelte-s4dyav")},m(I,O){N(I,e,O),g(e,t),g(t,i),i.innerHTML=r,g(e,s),g(e,n),g(n,o),g(o,u),g(u,f),g(f,c),g(u,h),g(o,d),g(o,v),g(v,m),g(n,y),g(n,b),g(b,T),g(T,k),g(k,E),g(T,p),g(b,S),g(b,L),g(L,B)},p(I,[O]){O&1&&r!==(r=I[0]("main.footer.credits")+"")&&(i.innerHTML=r)},i:ce,o:ce,d(I){I&&_(e)}}}function cu(l,e,t){let i;return Ee(l,Ze,r=>t(0,i=r)),[i]}class hu extends Ne{constructor(e){super(),Ve(this,e,cu,fu,Me,{})}}function _u(l){let e;function t(s,n){return s[4]==="daily"?mu:du}let i=t(l),r=i(l);return{c(){e=H("small"),r.c(),this.h()},l(s){e=j(s,"SMALL",{class:!0});var n=w(e);r.l(n),n.forEach(_),this.h()},h(){a(e,"class","game-mode svelte-16aguoh")},m(s,n){N(s,e,n),r.m(e,null)},p(s,n){i===(i=t(s))&&r?r.p(s,n):(r.d(1),r=i(s),r&&(r.c(),r.m(e,null)))},d(s){s&&_(e),r.d()}}}function du(l){let e,t,i=l[5]("main.summary.random")+"",r,s;return{c(){e=W("svg"),t=W("title"),r=se(i),s=W("path"),this.h()},l(n){e=q(n,"svg",{viewBox:!0,xmlns:!0,width:!0});var o=w(e);t=q(o,"title",{});var u=w(t);r=ne(u,i),u.forEach(_),s=q(o,"path",{stroke:!0,fill:!0,d:!0,"stroke-width":!0}),w(s).forEach(_),o.forEach(_),this.h()},h(){a(s,"stroke","#888"),a(s,"fill","none"),a(s,"d","M2.29 0.79 l1.41 1.41 a1 1 0 1 0 0 -1.41 l-1.41 1.41 a1 1 0 1 1 0 -1.41"),a(s,"stroke-width","0.5"),a(e,"viewBox","0 0 6 3"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","32px")},m(n,o){N(n,e,o),g(e,t),g(t,r),g(e,s)},p(n,o){o&32&&i!==(i=n[5]("main.summary.random")+"")&&he(r,i)},d(n){n&&_(e)}}}function mu(l){let e,t=l[1]+1+"",i;return{c(){e=se("#"),i=se(t)},l(r){e=ne(r,"#"),i=ne(r,t)},m(r,s){N(r,e,s),N(r,i,s)},p(r,s){s&2&&t!==(t=r[1]+1+"")&&he(i,t)},d(r){r&&_(e),r&&_(i)}}}function gu(l){let e,t,i=l[5]("main.summary.daily")+"",r,s,n,o,u=l[5]("main.summary.random")+"",f,c,h,d,v,m,y=l[4]!=="daily"&&Wr(l);return{c(){e=H("div"),t=H("button"),r=se(i),n=ee(),o=H("button"),f=se(u),h=ee(),y&&y.c(),this.h()},l(b){e=j(b,"DIV",{class:!0});var T=w(e);t=j(T,"BUTTON",{class:!0});var k=w(t);r=ne(k,i),k.forEach(_),n=te(T),o=j(T,"BUTTON",{class:!0});var E=w(o);f=ne(E,u),E.forEach(_),h=te(T),y&&y.l(T),T.forEach(_),this.h()},h(){t.disabled=s=l[4]==="daily",a(t,"class","svelte-16aguoh"),o.disabled=c=l[4]!=="daily",a(o,"class","svelte-16aguoh"),a(e,"class","game-mode-buttons svelte-16aguoh")},m(b,T){N(b,e,T),g(e,t),g(t,r),g(e,n),g(e,o),g(o,f),g(e,h),y&&y.m(e,null),d=!0,v||(m=[de(t,"click",Al),de(o,"click",l[8])],v=!0)},p(b,T){(!d||T&32)&&i!==(i=b[5]("main.summary.daily")+"")&&he(r,i),(!d||T&16&&s!==(s=b[4]==="daily"))&&(t.disabled=s),(!d||T&32)&&u!==(u=b[5]("main.summary.random")+"")&&he(f,u),(!d||T&16&&c!==(c=b[4]!=="daily"))&&(o.disabled=c),b[4]!=="daily"?y?(y.p(b,T),T&16&&A(y,1)):(y=Wr(b),y.c(),A(y,1),y.m(e,null)):y&&(Te(),R(y,1,1,()=>{y=null}),Ie())},i(b){d||(A(y),d=!0)},o(b){R(y),d=!1},d(b){b&&_(e),y&&y.d(),v=!1,$e(m)}}}function Wr(l){let e,t,i,r,s,n,o,u;return{c(){e=H("button"),t=W("svg"),i=W("path"),this.h()},l(f){e=j(f,"BUTTON",{class:!0,title:!0});var c=w(e);t=q(c,"svg",{viewBox:!0,xmlns:!0,width:!0});var h=w(t);i=q(h,"path",{stroke:!0,fill:!0,d:!0,"stroke-width":!0,"stroke-linecap":!0}),w(i).forEach(_),h.forEach(_),c.forEach(_),this.h()},h(){a(i,"stroke","currentColor"),a(i,"fill","none"),a(i,"d","M3.5 1.5 v4 M1.5 3.5 h4"),a(i,"stroke-width","1"),a(i,"stroke-linecap","round"),a(t,"viewBox","0 0 7 7"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","21px"),a(e,"class","new-random svelte-16aguoh"),a(e,"title",r=l[5]("main.other.new_word"))},m(f,c){N(f,e,c),g(e,t),g(t,i),n=!0,o||(u=de(e,"click",l[6]),o=!0)},p(f,c){(!n||c&32&&r!==(r=f[5]("main.other.new_word")))&&a(e,"title",r)},i(f){n||(ct(()=>{!n||(s||(s=et(e,fi,{x:-10,duration:150},!0)),s.run(1))}),n=!0)},o(f){s||(s=et(e,fi,{x:-10,duration:150},!1)),s.run(0),n=!1},d(f){f&&_(e),f&&s&&s.end(),o=!1,u()}}}function vu(l){let e,t,i,r,s,n=l[0]?"Leaks":"Peaks",o,u,f,c,h,d,v,m,y,b,T,k,E,p,S,L,B,I,O,D,F,P,U,G,M,V=_u(l),J=gu(l);return{c(){e=H("header"),t=H("div"),i=H("h1"),r=se("Word "),s=H("span"),o=se(n),u=ee(),V&&V.c(),f=ee(),J&&J.c(),c=ee(),h=H("div"),d=H("button"),v=H("span"),m=se("?"),b=ee(),T=H("button"),k=W("svg"),E=W("g"),p=W("rect"),S=W("rect"),L=W("rect"),I=ee(),O=H("button"),D=W("svg"),F=W("path"),this.h()},l(X){e=j(X,"HEADER",{class:!0});var Q=w(e);t=j(Q,"DIV",{class:!0});var Z=w(t);i=j(Z,"H1",{class:!0});var $=w(i);r=ne($,"Word "),s=j($,"SPAN",{class:!0});var K=w(s);o=ne(K,n),K.forEach(_),u=te($),V&&V.l($),$.forEach(_),f=te(Z),J&&J.l(Z),Z.forEach(_),c=te(Q),h=j(Q,"DIV",{class:!0});var Y=w(h);d=j(Y,"BUTTON",{title:!0,class:!0});var ue=w(d);v=j(ue,"SPAN",{class:!0});var x=w(v);m=ne(x,"?"),x.forEach(_),ue.forEach(_),b=te(Y),T=j(Y,"BUTTON",{title:!0,class:!0});var re=w(T);k=q(re,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var ke=w(k);E=q(ke,"g",{transform:!0});var z=w(E);p=q(z,"rect",{fill:!0,id:!0,x:!0,y:!0,height:!0,width:!0,class:!0}),w(p).forEach(_),S=q(z,"rect",{fill:!0,x:!0,y:!0,height:!0,width:!0}),w(S).forEach(_),L=q(z,"rect",{fill:!0,id:!0,x:!0,y:!0,height:!0,width:!0,class:!0}),w(L).forEach(_),z.forEach(_),ke.forEach(_),re.forEach(_),I=te(Y),O=j(Y,"BUTTON",{title:!0,class:!0});var ie=w(O);D=q(ie,"svg",{viewBox:!0,xmlns:!0,width:!0,height:!0,class:!0});var le=w(D);F=q(le,"path",{fill:!0,d:!0}),w(F).forEach(_),le.forEach(_),ie.forEach(_),Y.forEach(_),Q.forEach(_),this.h()},h(){a(s,"class","svelte-16aguoh"),oe(s,"leak",l[2]),a(i,"class","svelte-16aguoh"),a(t,"class","heading-container svelte-16aguoh"),a(v,"class","svelte-16aguoh"),a(d,"title",y=l[5]("main.tutorial.title")),a(d,"class","bulge svelte-16aguoh"),a(p,"fill","currentColor"),a(p,"id","graph_bar_1"),a(p,"x","0"),a(p,"y","0"),a(p,"height","8"),a(p,"width","2"),a(p,"class","svelte-16aguoh"),a(S,"fill","currentColor"),a(S,"x","3"),a(S,"y","0"),a(S,"height","5"),a(S,"width","2"),a(L,"fill","currentColor"),a(L,"id","graph_bar_3"),a(L,"x","6"),a(L,"y","0"),a(L,"height","2"),a(L,"width","2"),a(L,"class","svelte-16aguoh"),a(E,"transform","rotate(180 4.5 4.5)"),a(k,"viewBox","0 0 9 9"),a(k,"xmlns","http://www.w3.org/2000/svg"),a(k,"width","20"),a(k,"height","20"),a(k,"class","svelte-16aguoh"),a(T,"title",B=l[5]("main.stats.title")),a(T,"class","svelte-16aguoh"),a(F,"fill","currentColor"),a(F,"d",un),a(D,"viewBox","0 0 76 76"),a(D,"xmlns","http://www.w3.org/2000/svg"),a(D,"width","20"),a(D,"height","20"),a(D,"class","svelte-16aguoh"),a(O,"title",P=l[5]("main.options.title")),a(O,"class","hover-spin svelte-16aguoh"),a(h,"class","menu-buttons svelte-16aguoh"),fe(h,"visibility","visible"),a(e,"class","svelte-16aguoh"),oe(e,"high-contrast",l[3])},m(X,Q){N(X,e,Q),g(e,t),g(t,i),g(i,r),g(i,s),g(s,o),g(i,u),V&&V.m(i,null),g(t,f),J&&J.m(t,null),g(e,c),g(e,h),g(h,d),g(d,v),g(v,m),g(h,b),g(h,T),g(T,k),g(k,E),g(E,p),g(E,S),g(E,L),g(h,I),g(h,O),g(O,D),g(D,F),U=!0,G||(M=[de(d,"click",l[9]),de(T,"click",l[10]),de(O,"click",l[11])],G=!0)},p(X,[Q]){(!U||Q&1)&&n!==(n=X[0]?"Leaks":"Peaks")&&he(o,n),(!U||Q&4)&&oe(s,"leak",X[2]),V.p(X,Q),J.p(X,Q),(!U||Q&32&&y!==(y=X[5]("main.tutorial.title")))&&a(d,"title",y),(!U||Q&32&&B!==(B=X[5]("main.stats.title")))&&a(T,"title",B),(!U||Q&32&&P!==(P=X[5]("main.options.title")))&&a(O,"title",P),(!U||Q&8)&&oe(e,"high-contrast",X[3])},i(X){U||(A(J),U=!0)},o(X){R(J),U=!1},d(X){X&&_(e),V&&V.d(),J&&J.d(),G=!1,$e(M)}}}function bu(l,e,t){let i,r,s,n,o,u,f;Ee(l,dl,b=>t(7,s=b)),Ee(l,es,b=>t(1,n=b)),Ee(l,Dl,b=>t(3,o=b)),Ee(l,ls,b=>t(4,u=b)),Ee(l,Ze,b=>t(5,f=b));const c={theme:{"--toastBackground":"var(--cta-color)"}},h=b=>{const T=!be($r);al(ts()),b.currentTarget.blur(),T&&qt.push(be(Ze)("main.messages.answer_randomized"),c)},d=()=>al(),v=()=>at.set("tutorial"),m=()=>at.set("stats"),y=()=>at.set("options");return l.$$.update=()=>{l.$$.dirty&2&&t(0,i=n&&rs()),l.$$.dirty&129&&t(2,r=i&&s.some(b=>b.some(T=>T.scored&&T.distance>0)))},[i,n,r,o,u,f,h,s,d,v,m,y]}class pu extends Ne{constructor(e){super(),Ve(this,e,bu,vu,Me,{})}}function qr(l){let e,t,i={ctx:l,current:null,token:null,hasCatch:!1,pending:yu,then:wu,catch:ku,value:7,blocks:[,,,]};return Jr(zt(()=>import("./Console-2313f8de.js"),["chunks/Console-2313f8de.js","chunks/index-0dc809ca.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js"]),i),{c(){e=_e(),i.block.c()},l(r){e=_e(),i.block.l(r)},m(r,s){N(r,e,s),i.block.m(r,i.anchor=s),i.mount=()=>e.parentNode,i.anchor=e,t=!0},p(r,s){l=r},i(r){t||(A(i.block),t=!0)},o(r){for(let s=0;s<3;s+=1){const n=i.blocks[s];R(n)}t=!1},d(r){r&&_(e),i.block.d(r),i.token=null,i=null}}}function ku(l){return{c:ce,l:ce,m:ce,i:ce,o:ce,d:ce}}function wu(l){let e,t,i;var r=l[7].default;function s(n){return{}}return r&&(e=Ue(r,s())),{c(){e&&me(e.$$.fragment),t=_e()},l(n){e&&we(e.$$.fragment,n),t=_e()},m(n,o){e&&ge(e,n,o),N(n,t,o),i=!0},i(n){i||(e&&A(e.$$.fragment,n),i=!0)},o(n){e&&R(e.$$.fragment,n),i=!1},d(n){n&&_(t),e&&ve(e,n)}}}function yu(l){return{c:ce,l:ce,m:ce,i:ce,o:ce,d:ce}}function Eu(l){let e,t;return e=new yo({props:{gameMode:l[2]}}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p(i,r){const s={};r&4&&(s.gameMode=i[2]),e.$set(s)},i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Tu(l){let e,t;return e=new So({}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p:ce,i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Iu(l){let e,t;return e=new au({}),{c(){me(e.$$.fragment)},l(i){we(e.$$.fragment,i)},m(i,r){ge(e,i,r),t=!0},p:ce,i(i){t||(A(e.$$.fragment,i),t=!0)},o(i){R(e.$$.fragment,i),t=!1},d(i){ve(e,i)}}}function Su(l){let e,t,i,r,s,n,o,u,f,c,h,d,v,m,y;i=new pu({}),s=new Da({}),o=new co({});let b=l[0]&&qr(l);c=new hu({});const T=[Iu,Tu,Eu],k=[];function E(p,S){return p[1]==="options"?0:p[1]==="tutorial"?1:p[1]==="stats"?2:-1}return~(d=E(l))&&(v=k[d]=T[d](l)),{c(){e=H("div"),t=H("section"),me(i.$$.fragment),r=ee(),me(s.$$.fragment),n=ee(),me(o.$$.fragment),u=ee(),b&&b.c(),f=ee(),me(c.$$.fragment),h=ee(),v&&v.c(),m=_e(),this.h()},l(p){e=j(p,"DIV",{class:!0});var S=w(e);t=j(S,"SECTION",{});var L=w(t);we(i.$$.fragment,L),r=te(L),we(s.$$.fragment,L),n=te(L),we(o.$$.fragment,L),u=te(L),b&&b.l(L),L.forEach(_),f=te(S),we(c.$$.fragment,S),S.forEach(_),h=te(p),v&&v.l(p),m=_e(),this.h()},h(){a(e,"class","svelte-1iilali"),oe(e,"minimized",l[1]!==null)},m(p,S){N(p,e,S),g(e,t),ge(i,t,null),g(t,r),ge(s,t,null),g(t,n),ge(o,t,null),g(t,u),b&&b.m(t,null),g(e,f),ge(c,e,null),N(p,h,S),~d&&k[d].m(p,S),N(p,m,S),y=!0},p(p,[S]){p[0]?b?S&1&&A(b,1):(b=qr(p),b.c(),A(b,1),b.m(t,null)):b&&(Te(),R(b,1,1,()=>{b=null}),Ie()),(!y||S&2)&&oe(e,"minimized",p[1]!==null);let L=d;d=E(p),d===L?~d&&k[d].p(p,S):(v&&(Te(),R(k[L],1,1,()=>{k[L]=null}),Ie()),~d?(v=k[d],v?v.p(p,S):(v=k[d]=T[d](p),v.c()),A(v,1),v.m(m.parentNode,m)):v=null)},i(p){y||(A(i.$$.fragment,p),A(s.$$.fragment,p),A(o.$$.fragment,p),A(b),A(c.$$.fragment,p),A(v),y=!0)},o(p){R(i.$$.fragment,p),R(s.$$.fragment,p),R(o.$$.fragment,p),R(b),R(c.$$.fragment,p),R(v),y=!1},d(p){p&&_(e),ve(i),ve(s),ve(o),b&&b.d(),ve(c),p&&_(h),~d&&k[d].d(p),p&&_(m)}}}function Du(l,e,t){var c;let i,r;const{openScreen:s,gameMode:n}=Bt;Ee(l,s,h=>t(1,i=h)),Ee(l,n,h=>t(2,r=h));const o=fn((c=be(uu).url.hash)==null?void 0:c.slice(1));tt(()=>{!be(cn)&&!be(hn)&&(is.set(!0),s.set("tutorial")),u()}),_n();function u(){o?al(o):Al()}let f;return window.wp_start=()=>t(0,f=!0),[f,i,r,s,n]}class ju extends Ne{constructor(e){super(),Ve(this,e,Du,Su,Me,{})}}export{ju as R,Mn as c}; diff --git a/_app/chunks/index-0686f894.js b/_app/chunks/index-cbb289a9.js similarity index 95% rename from _app/chunks/index-0686f894.js rename to _app/chunks/index-cbb289a9.js index 0403628..d99e497 100644 --- a/_app/chunks/index-0686f894.js +++ b/_app/chunks/index-cbb289a9.js @@ -1 +1 @@ -var zt=Object.defineProperty,Wt=Object.defineProperties;var Gt=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable;var Ue=(t,e,a)=>e in t?zt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,v=(t,e)=>{for(var a in e||(e={}))Mt.call(e,a)&&Ue(t,a,e[a]);if(Je)for(var a of Je(e))It.call(e,a)&&Ue(t,a,e[a]);return t},ae=(t,e)=>Wt(t,Gt(e));import{a0 as n}from"./index-0dc809ca.js";import{w as p,d as b,_ as x}from"./preload-helper-5ea9bf72.js";var fe=Object.freeze(Object.defineProperty({__proto__:null,get STORE_VERSION(){return At},get storeVersion(){return Fe},get storedLocale(){return Va},get openScreen(){return Fa},get highContrast(){return _e},get showAllHints(){return Se},get swapEnterBackspace(){return xe},get keyboardLayout(){return Re},get dyslexicFont(){return Ee},get allowDancing(){return Pe},get hideLandscape(){return je},get shareURL(){return $e},get shareTimes(){return qe},get hideArrows(){return Ba},get preciseTimes(){return Ae},get tileSharpness(){return $t},get tileArrowRadius(){return Ka},get lastPlayedDaily(){return X},get stats(){return ue},get timeStats(){return ee},get lastDailyDetail(){return de},get lastRandomDetail(){return he},get lastGameDetail(){return Ja},get showEndView(){return pe},get guessTimeStrings(){return Ua},get totalGuessTimeString(){return Za},get landscape(){return Qa},get landscapeNewGame(){return Be},get landscapeNewRow(){return qt},get landscapeWideView(){return Ke},get landscapeForceColor(){return ye},get landscapeRedraw(){return Ya},get landscapeSVG(){return Xa},get newUser(){return ze},get dismissPromo(){return er},get answerDaily(){return W},get answerRandom(){return V},get guessesDaily(){return B},get guessesRandom(){return te},get lastPlayedDailyWasHard(){return le},get lastPlayedRandomWasHard(){return ce},get hardMode(){return De},get changeHardMode(){return Na},get gameMode(){return k},get lastPlayedWasHard(){return Et},get invalidHardModeGuess(){return Z},get notEnoughLetters(){return F},get invalidWord(){return Q},get invalidWordPreview(){return Y},get boardContent(){return P},get answer(){return G},get guesses(){return I},get updateGuesses(){return Pt},get guessTimesDaily(){return Ne},get guessTimesRandom(){return He},get guessTimes(){return ge},get currentRow(){return M},get currentTile(){return L},get gameWon(){return Ve},get gameFinished(){return S},get validLetters(){return jt},get initGameState(){return Ha}},Symbol.toStringTag,{value:"Module"})),me={};function f(t,e){const a=typeof localStorage!="undefined";function r(s,o){!a||localStorage.setItem(s,JSON.stringify(o))}if(!me[t]){const s=p(e,l=>{const g=a?localStorage.getItem(t):null;if(g&&l(JSON.parse(g)),a){const c=d=>{d.key===t&&l(d.newValue?JSON.parse(d.newValue):null)};return window.addEventListener("storage",c),()=>window.removeEventListener("storage",c)}}),{subscribe:o,set:i}=s;me[t]={set(l){r(t,l),i(l)},update(l){const g=l(n(s));r(t,g),i(g)},subscribe:o}}return me[t]}var we=["charm","cycle","skill","audio","peace","index","rusty","choir","early","shirt","erase","chord","snack","timer","voice","dozen","sixth","flair","radio","tuner","blank","every","manor","leash","sunny","adore","turbo","muggy","total","juicy","parka","decal","stuff","hippo","alley","igloo","payer","anvil","trail","trash","slide","stole","feral","spoon","waive","roomy","melon","picky","fuzzy","phone","jolly","eager","rigid","smock","curse","fryer","druid","bleed","worst","payee","creme","atone","basil","tread","bandy","quake","brake","angel","swarm","robot","hefty","earth","grill","armor","nudge","fiber","baste","steel","cumin","being","dough","facet","ounce","urban","their","moral","watch","about","admit","daisy","trend","bland","ocean","depth","kneel","scamp","track","loose","daunt","magic","snuff","which","sixty","snide","windy","guide","momma","nurse","crime","civil","gutsy","bloat","dryer","pecan","fungi","drawl","ozone","tress","barge","locus","messy","haste","moody","hutch","elect","plant","equal","extra","fiery","crane","mourn","perky","fight","thick","nexus","taste","misty","avert","queer","larch","colon","banjo","buddy","codex","spite","plank","trope","roach","vowel","futon","alias","beret","whiff","phony","faith","flash","comic","intro","amuse","match","limbo","close","retro","crash","vocal","cream","spine","piper","smoke","pixel","foyer","cross","hydra","foamy","youth","noble","ridge","brunt","value","exalt","rouse","truck","alpha","ionic","adopt","spore","medic","cobra","shore","where","gavel","ditto","apple","bring","grace","share","decoy","khaki","fiend","clear","terra","mower","tutor","chafe","tummy","prong","shank","scope","toxin","seven","exist","beige","smelt","clump","cedar","salty","cocky","gouge","edict","worse","vigor","decry","indie","would","alone","aglow","sable","price","weigh","baton","after","heavy","soapy","tabby","lever","horse","epoxy","prune","right","sheik","melee","azure","tiara","scale","claim","merit","doggy","oaken","serum","staff","robin","condo","shaft","rowdy","reuse","crepe","unfit","grass","hence","filly","pansy","alibi","group","quint","suave","furor","eared","teary","amaze","caper","spoil","drool","merge","scoot","tinge","flame","dirty","beard","crank","orbit","glint","guise","flood","waist","amber","house","mayor","atoll","hazel","loner","conch","belly","guilt","brink","swoon","gleam","sheen","flail","evade","blame","proud","cower","gross","harpy","taffy","rouge","itchy","mound","sweet","creed","bevel","trust","sorry","redux","crumb","twist","sever","stilt","enjoy","delay","along","angry","munch","juror","arrow","dandy","jumbo","flier","tonic","pushy","banal","sneer","cloth","tilde","cough","curly","conic","queen","mould","wedge","goody","outer","beach","gloom","pixie","swine","depot","flank","stamp","satyr","sloth","brave","wheat","panic","glaze","civic","couch","tacit","skulk","dopey","stoma","spurt","going","quash","arson","lucid","friar","omega","joust","slain","mural","tulip","droop","meaty","lorry","loamy","chump","macro","lanky","caddy","shade","aphid","rider","valet","broth","lilac","model","stint","vogue","chase","sport","mushy","caret","movie","forty","clack","amble","bound","infer","fable","dream","crisp","rower","timid","annoy","class","field","roost","hello","shell","shift","delve","aunty","rhyme","prude","idiom","craft","wrack","night","grime","nymph","frown","hurry","hobby","tally","envoy","olive","undue","mirth","skiff","thief","viola","derby","hyena","lager","lance","booth","floss","truly","stain","magma","dimly","imbue","marry","dusty","patty","curio","posit","alert","stack","mommy","froth","saucy","razor","penal","bogey","gnome","agent","petty","angle","bulge","agate","shale","askew","slope","offer","bunny","tooth","pinch","amply","avian","heron","lingo","adobe","butch","axiom","belie","riser","alter","bacon","outdo","truss","adorn","douse","chasm","mixer","molar","steal","gator","mealy","still","tongs","water","flume","level","mount","exact","braid","found","giddy","trait","apply","scorn","swear","giant","probe","latex","lotus","width","quote","score","proxy","crypt","chaff","skull","touch","brick","rivet","bawdy","float","polar","chuck","samba","arena","poppy","defer","parse","error","chalk","afoul","fewer","knock","sauna","venue","stead","carve","lunch","grasp","elite","optic","chunk","gourd","brass","mimic","cress","jazzy","money","debit","macho","silly","skier","fluid","comma","abode","amuck","sewer","bulky","smash","ether","livid","flyer","stoke","cable","slash","comfy","tract","denim","heath","smoky","shake","grant","union","shine","these","glade","basis","hoard","gruff","lucky","gecko","forge","tenet","tempo","abide","fling","puffy","lapse","image","chant","cease","squib","domed","scrap","flare","morph","motto","pasty","toxic","today","refer","mangy","choke","sheet","thyme","fussy","wagon","milky","gripe","teddy","posse","blast","salvo","haiku","store","leafy","patch","twine","spoke","story","alarm","funny","child","piece","feint","break","crick","totem","lasso","cause","chute","stony","vague","bunch","uvula","kiosk","gorge","sling","tribe","ferry","merry","reedy","bogus","scant","quirk","gimme","taper","sleep","renew","trout","topaz","scent","maker","ghost","forth","humor","waltz","irony","erect","flora","alive","vicar","adder","rodeo","erupt","rhino","valve","among","weary","fresh","round","ought","align","gauze","glide","canny","exude","madly","fount","theme","brown","vapor","filmy","wreck","snore","blind","eagle","unify","elder","laugh","gusto","chime","dusky","daddy","cameo","notch","write","octal","click","sheep","adapt","brood","chewy","slant","cloud","lapel","nomad","shall","mauve","rival","showy","abbot","lyric","glean","opium","wheel","drake","cello","whine","otter","tasty","yucca","elate","globe","heart","ankle","havoc","throw","alien","amiss","scare","mouth","noose","scold","thigh","droll","clasp","tight","delta","wager","diode","bride","finch","goose","boost","wield","leaky","lower","setup","savor","throb","nasal","micro","hasty","perch","grief","swath","quell","world","sinus","prawn","yearn","stern","viral","flick","scalp","split","lathe","erode","panel","valid","embed","woman","worth","suede","scald","lover","rabid","motel","shack","brute","prowl","until","vigil","nifty","usual","visor","briar","wispy","brook","pound","buxom","agile","soggy","prank","stove","gravy","steak","focus","vivid","qualm","brain","gamma","slush","drink","given","recap","rabbi","haunt","detox","titan","chimp","drown","abbey","siren","brawn","whirl","cider","frost","minor","pearl","villa","stock","dunce","scoff","gloat","churn","belch","argon","manic","nutty","essay","whale","stark","solve","young","brisk","stool","bluff","upset","kneed","pylon","crack","shrew","climb","widen","sappy","dryly","foray","tower","video","glory","rough","agony","sarge","thorn","legal","demon","silky","stunt","three","crude","spend","waste","eerie","sushi","smell","needy","tense","happy","maybe","thing","hippy","quest","ebony","worry","slink","dodge","antic","beefy","taiga","corny","party","spurn","wreak","biker","cocoa","croak","snarl","graph","servo","abate","scone","splay","yacht","again","force","incur","farce","tough","lusty","heave","labor","chide","swank","reign","yahoo","fully","fairy","nitre","sadly","baker","moped","gauge","porch","teach","matte","syrup","broil","ethos","swirl","winch","bloke","vapid","reach","lobby","lunge","dizzy","shard","tenth","storm","plush","ideal","wince","snipe","taker","thump","wharf","snoop","chaos","stair","waken","credo","bingo","usurp","scowl","graze","tidal","murky","ripen","duvet","gland","medal","stake","missy","ample","cliff","zebra","slick","slimy","blitz","equip","grind","sonar","thong","octet","overt","nitro","login","cigar","steam","spank","shred","prize","drift","blurb","await","booby","scuba","honor","rotor","crock","bleat","queue","plaid","genre","nasty","hater","fudge","coral","entry","salad","gulch","grate","onion","catch","grade","neigh","blood","balmy","arise","rapid","cleft","swipe","those","purse","quilt","fjord","craze","prism","tepid","poise","fetch","inert","jerky","brace","prose","freak","enact","cargo","sting","tarot","angst","voila","endow","newly","piggy","shear","crown","flock","expel","fluff","super","abyss","quota","naval","shook","kayak","salon","swell","growl","lurch","retry","sugar","funky","shock","quick","title","white","swoop","debut","tryst","triad","folly","chess","horde","spray","empty","quite","wrong","snout","atlas","snare","fleck","risky","jaunt","oasis","slice","altar","begin","often","basic","deity","heist","skeet","clink","laden","libel","broom","grape","ahead","coach","spool","wrath","trans","inlay","stale","smile","ingot","trove","inset","draft","rally","flour","crawl","gaudy","ember","fluke","lowly","niece","chirp","stare","gummy","lying","spear","sneak","femur","quack","sweat","groan","boast","vital","least","metro","motor","novel","ladle","booze","beech","lumpy","siege","ruler","frisk","under","onset","cheat","slack","lemur","final","howdy","leave","clean","loath","spelt","guest","saute","splat","knell","revel","rehab","fraud","tonal","solar","floor","daily","dwarf","untie","ravel","block","screw","witty","lithe","badge","paper","blink","plaza","spade","check","chain","fifty","sleek","royal","grunt","print","motif","verge","cheer","bagel","lousy","fetid","bloom","vinyl","troop","aback","wiper","cleat","affix","smear","purge","nylon","never","spasm","evict","range","pulse","witch","monad","muddy","doubt","clash","acrid","sinew","ditch","unmet","paste","greet","trawl","relax","idler","slake","fishy","bleak","awful","rigor","bossy","spiny","occur","photo","vixen","punch","bongo","raise","beast","query","canon","testy","hunch","drone","bully","adage","moldy","press","front","abhor","girth","metal","panda","sassy","modal","handy","there","uncle","shame","birth","lunar","husky","dicey","radar","rinse","excel","serif","third","goofy","reply","venom","abort","famed","taint","crush","straw","snark","whole","satin","vault","cache","tweed","piety","shirk","think","green","organ","louse","bench","poach","spawn","maize","plate","guard","flesh","curve","filth","space","psych","frail","seedy","stash","plead","spunk","covet","canoe","surly","meted","focal","catty","marsh","shark","burst","tamer","hiker","since","flirt","guild","suite","miner","ultra","clerk","tying","buyer","opera","crate","build","tiger","irate","salve","beset","river","cling","larva","miter","trite","visit","amend","gloss","champ","caste","curry","leech","godly","speak","slate","color","light","adult","bonus","stave","solid","linen","quill","repel","cheek","furry","chief","mercy","drama","ennui","hound","ratio","trace","scout","bison","remit","chore","radon","sonic","raven","hoist","inner","spout","relay","judge","asset","biped","quart","crimp","anode","grand","naked","phase","baggy","eater","prove","grain","theft","vouch","sooty","debug","tenor","genus","pygmy","feign","glare","musty","glyph","ashen","north","piano","event","frank","limit","alloy","smite","puppy","preen","brand","trade","sense","bumpy","cubic","unwed","study","proof","avoid","shave","dairy","shelf","sniff","berry","scene","argue","giver","jumpy","clank","aloof","award","thumb","sweep","flaky","snail","spare","swing","lofty","cynic","glass","poser","might","scrub","ascot","felon","booty","above","learn","dress","deter","react","squad","deuce","devil","ivory","ensue","slump","flake","shady","skirt","plumb","major","navel","stalk","shape","dolly","pluck","nanny","coast","cabal","skate","saver","spoof","croft","imply","aroma","drive","quiet","rover","twice","pizza","rebar","brash","candy","plain","route","chart","creek","squid","evoke","quark","algae","upper","vista","aisle","afoot","plump","tempt","liver","human","fauna","avail","hardy","pinky","drill","tipsy","agora","relic","annex","dingo","issue","raspy","shawl","lurid","train","pause","serve","knife","inlet","modem","music","forum","blush","stout","pedal","speck","filet","slang","later","table","apart","drunk","donor","llama","coupe","beryl","sheer","nerve","lease","pitch","fruit","pique","cloak","tripe","cramp","shove","while","rebel","knead","dwell","crust","verse","favor","bless","spill","brine","fence","drape","mossy","slime","torso","trill","march","plume","snowy","scour","cyber","comet","truce","crest","aloft","great","fifth","start","harsh","steer","homey","wordy","short","clang","basin","fault","exile","false","black","paint","covey","resin","brawl","other","combo","pithy","twang","aware","sauce","anger","edify","karma","pious","sitar","small","potty","loser","grove","noisy","decor","badly","prone","state","sepia","faint","elope","axial","treat","bread","quail","towel","ethic","swamp","boggy","aptly","stage","burly","gamut","steed","topic","budge","cruel","bathe","foggy","valor","lapis","blunt","loyal","aloud","shunt","noise","tubal","tacky","moist","gumbo","dummy","tweak","strip","bosom","polka","hovel","breed","weird","islet","repay","realm","hedge","donut","spell","snake","sieve","sulky","scary","petal","epoch","lemon","strum","awash","carry","rainy","vegan","cover","boxer","wound","cheap","bribe","pupil","drove","smirk","taboo","birch","ledge","large","decay","parry","elbow","stand","runny","jelly","bilge","circa","rifle","broad","utter","racer","spice","manly","acute","owner","ender","kitty","creak","sober","wring","poker","speed","viper","leary","honey","crave","aging","eight","flute","binge","wafer","udder","adept","synth","liken","mulch","penny","chili","patsy","creep","putty","groom","skunk","wrist","groin","inane","hatch","brush","drier","court","hover","habit","truth","weedy","month","shoot","helix","flunk","maple","point","whisk","mason","scarf","greed","logic","pager","ninja","juice","guile","snort","allow","uncut","awake","enter","power","toner","aloha","input","stink","album","swift","joker","hinge","could","fatal","exert","stick","roast","weave","icing","spire","canal","blaze","grout","ochre","rogue","sharp","sleet","amass","steep","flint","jewel","wryly","acorn","stork","spark","audit","unity","south","count","trunk","ficus","brief","actor","dogma","hotel","humid","shalt","whose","stall","torch","attic","shrub","swish","spiel","mucus","pasta","sound","lossy","plane","reset","taunt","amigo","shiny","email","ready","sight","runic","array","yeast","squat","virus","aural","bayou","verve","pride","tuber","spicy","strut","hitch","fever","aside","fleet","savvy","twirl","diary","segue","unlit","assay","pesky","elude","sully","legit","vomit","feast","waver","slyly","chick","below","bugle","stoop","bushy","dense","frond","layer","beget","rebut","dance","liter","label","prime","fancy","voter","derry","chill","lamia","clone","crone","fella","fugue","dirge","tunic","scape","widow","extol","shrug","clown","ninth","mango","maxim","joint","knoll","surge","sprig","oxide","usher","enemy","guess","crazy","patio","pouch","meany","flush","crook","privy","first","laser","cinch","blimp","stiff","grave","saint","stump","strap","recur","spree","pilot","crass","shyly","blurt","chest","morse","stone","minus","local","frill","seize","lodge","glove","tango","board","rugby","psalm","knave","grimy","chair","frame","place","batch","shaky","peril","baron","colby","drain","peach","unite","halve","smack","silty","eject","mania","toddy","fixer","inept","mouse","smart","ranch","using","alike","sword","teeth","stray","dying","shout","style","flask","coder","regal","oddly","levee","apron","mince","clock","digit","diner","prior","clout","moose","scaly","gruel","hilly","cater","rocky","token","heady","niche","holly","stoic","pivot","trick","blend","stoat","usage","easel","dread","blade","talon","vodka","clove","clamp","older","tween","hairy","latch","grail","forte","rural","trial","spike","order","cubby","salsa","troll","naive","meter","liner","stomp","rumor","camel","disco","bliss","tease","scoop","cabin","genie","agree","inbox","haven","whack","revue","agape","toast","thank","terse","tardy","finer","mocha","yield","crowd"],Nt=Object.defineProperty,Ht=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Ze=(t,e,a)=>e in t?Nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,w=(t,e)=>{for(var a in e||(e={}))ot.call(e,a)&&Ze(t,a,e[a]);if(se)for(var a of se(e))nt.call(e,a)&&Ze(t,a,e[a]);return t},O=(t,e)=>Ht(t,Vt(e)),ve=(t,e)=>{var a={};for(var r in t)ot.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&se)for(var r of se(t))e.indexOf(r)<0&&nt.call(t,r)&&(a[r]=t[r]);return a},Qe=({parser:t,key:e,params:a,translations:r,locale:s,fallbackLocale:o})=>{if(!(e&&s))return console.warn("[i18n]: No translation key or locale provided. Skipping translation..."),"";let i=(r[s]||{})[e];return o&&i===void 0&&(i=(r[o]||{})[e]),t.parse(i,a,s,e)},T=(...t)=>t.length?t.filter(e=>!!e).map(e=>{let a=`${e}`.toLowerCase();try{if([a]=Intl.Collator.supportedLocalesOf(e),!a)throw new Error(`[i18n]: '${e}' is non-standard.`)}catch{console.warn(`[i18n]: Non-standard locale provided: '${e}'. Check your 'translations' and 'loaders' in i18n config...`)}return a}):[],We=(t,e)=>Object.keys(t||{}).reduce((a,r)=>{let s=t[r],o=e?`${e}.${r}`:`${r}`;return s&&typeof s=="object"?w(w({},a),We(s,o)):O(w({},a),{[o]:s})},{}),Ft=async t=>{try{return(await Promise.all(t.map(e=>{var a=e,{loader:r}=a,s=ve(a,["loader"]);return new Promise(async o=>{let i;try{i=await r()}catch(l){console.error(`[i18n]: Failed to load translation. Verify your '${s.locale}' > '${s.key}' Loader.`),console.error(l)}o(O(w({loader:r},s),{data:i}))})}))).reduce((e,{key:a,data:r,locale:s})=>{if(!r)return e;let[o]=T(s);return O(w({},e),{[o]:We(O(w({},e[o]||{}),{[a]:r}))})},{})}catch(e){console.error(e)}return{}},Bt=t=>e=>{try{if(typeof e=="string")return e===t;if(typeof e=="object")return e.test(t)}catch{throw new Error("[i18n]: Invalid route config!")}return!1},Kt=(t,e)=>{let a=!0;try{a=Object.keys(t).filter(r=>t[r]!==void 0).every(r=>t[r]===e[r])}catch{}return a},Ye=1e3*60*60*24,Jt=class{constructor(t){this.cachedAt=0,this.loadedKeys={},this.currentRoute=p(),this.config=p(),this.isLoading=p(!1),this.promises=new Set,this.loading={subscribe:this.isLoading.subscribe,toPromise:(e,a)=>{let r=Array.from(this.promises).filter(s=>Kt({locale:T(e)[0],route:a},s)).map(({promise:s})=>s);return Promise.all(r)},get:()=>n(this.isLoading)},this.privateTranslations=p({}),this.translations={subscribe:this.privateTranslations.subscribe,get:()=>n(this.translations)},this.locales=O(w({},b([this.config,this.privateTranslations],([e,a])=>{if(!e)return[];let{loaders:r=[]}=e,s=r.map(({locale:i})=>T(i)[0]),o=Object.keys(a).map(i=>T(i)[0]);return Array.from(new Set([...s,...o]))},[])),{get:()=>n(this.locales)}),this.internalLocale=p(),this.loaderTrigger=b([this.internalLocale,this.currentRoute],([e,a],r)=>{var s,o,i;e!==void 0&&a!==void 0&&(e!==((s=n(this.loaderTrigger))==null?void 0:s[0])||a!==((o=n(this.loaderTrigger))==null?void 0:o[1]))&&((i=n(this.config))!=null&&i.debug&&console.debug("[i18n]: Triggering translation load..."),r([e,a]))},[]),this.localeHelper=p(),this.locale={subscribe:this.localeHelper.subscribe,forceSet:this.localeHelper.set,set:this.internalLocale.set,update:this.internalLocale.update,get:()=>n(this.locale)},this.initialized=b([this.locale,this.currentRoute,this.privateTranslations],([e,a,r],s)=>{n(this.initialized)||s(e!==void 0&&a!==void 0&&!!Object.keys(r).length)}),this.translation=b([this.privateTranslations,this.locale,this.isLoading],([e,a,r],s)=>{let o=e[a];o&&Object.keys(o).length&&!r&&s(o)},{}),this.t=O(w({},b([this.config,this.translation],([{parser:e,fallbackLocale:a}])=>(r,...s)=>Qe({parser:e,key:r,params:s,translations:this.translations.get(),locale:this.locale.get(),fallbackLocale:a}))),{get:(e,...a)=>n(this.t)(e,...a)}),this.l=O(w({},b([this.config,this.translations],([{parser:e,fallbackLocale:a},r])=>(s,o,...i)=>Qe({parser:e,key:o,params:i,translations:r,locale:s,fallbackLocale:a}))),{get:(e,a,...r)=>n(this.l)(e,a,...r)}),this.getLocale=e=>{if(!e)return"";let a=this.locales.get().find(r=>r===T(e)[0])||"";return T(a)[0]||""},this.setLocale=e=>{var a;if(!e)return;let[r]=T(e);if(r!==n(this.internalLocale))return(a=n(this.config))!=null&&a.debug&&console.debug(`[i18n]: Setting '${r}' locale.`),this.internalLocale.set(r),this.loading.toPromise(e,n(this.currentRoute))},this.setRoute=e=>{var a;if(e!==n(this.currentRoute)){(a=n(this.config))!=null&&a.debug&&console.debug(`[i18n]: Setting '${e}' route.`),this.currentRoute.set(e);let r=n(this.internalLocale);return this.loading.toPromise(r,e)}},this.loadConfig=async e=>{await this.configLoader(e)},this.getTranslationProps=async(e=this.locale.get(),a=n(this.currentRoute))=>{let r=n(this.config);if(!r||!e)return[];let s=this.translations.get(),{loaders:o,fallbackLocale:i="",cache:l=Ye}=r||{},g=Number.isNaN(+l)?Ye:+l;this.cachedAt?Date.now()>g+this.cachedAt&&(r!=null&&r.debug&&console.debug("[i18n]: Refreshing cache."),this.loadedKeys={},this.cachedAt=0):(r!=null&&r.debug&&console.debug("[i18n]: Setting cache timestamp."),this.cachedAt=Date.now());let[c,d]=T(e,i),m=s[c],y=s[d],u=(o||[]).map(h=>{var C=h,{locale:N}=C,D=ve(C,["locale"]);return O(w({},D),{locale:T(N)[0]})}).filter(({routes:h})=>!h||(h||[]).some(Bt(a))).filter(({key:h,locale:C})=>C===c&&(!m||!(this.loadedKeys[c]||[]).includes(h))||i&&C===d&&(!y||!(this.loadedKeys[d]||[]).includes(h)));if(u.length){this.isLoading.set(!0),r!=null&&r.debug&&console.debug("[i18n]: Fetching translations...");let h=await Ft(u);this.isLoading.set(!1);let C=Object.keys(h).reduce((D,_)=>O(w({},D),{[_]:Object.keys(h[_])}),{}),N=u.filter(({key:D,locale:_})=>(C[_]||[]).some(A=>`${A}`.startsWith(D))).reduce((D,{key:_,locale:A})=>O(w({},D),{[A]:[...D[A]||[],_]}),{});return[h,N]}return[]},this.addTranslations=(e,a)=>{var r;if(!e)return;(r=n(this.config))!=null&&r.debug&&console.debug("[i18n]: Adding translations...");let s=Object.keys(e||{});this.privateTranslations.update(o=>s.reduce((i,l)=>O(w({},i),{[l]:w(w({},i[l]||{}),We(e[l]))}),o)),s.forEach(o=>{let i=Object.keys(e[o]).map(l=>`${l}`.split(".")[0]);a&&(i=a[o]),this.loadedKeys[o]=Array.from(new Set([...this.loadedKeys[o]||[],...i||[]]))})},this.loader=async([e,a])=>{var r;(r=n(this.config))!=null&&r.debug&&console.debug("[i18n]: Adding loader promise.");let s=(async()=>{let o=await this.getTranslationProps(e,a);o.length&&this.addTranslations(...o)})();this.promises.add({locale:e,route:a,promise:s}),s.then(()=>{let o=this.getLocale(e);o&&this.locale.get()!==o&&this.locale.forceSet(o)})},this.loadTranslations=(e,a=n(this.currentRoute)||"")=>{if(e)return this.setRoute(a),this.setLocale(e),this.loading.toPromise(e,a)},t&&this.loadConfig(t),this.loaderTrigger.subscribe(this.loader),this.isLoading.subscribe(async e=>{var a;e&&this.promises.size&&(await this.loading.toPromise(),this.promises.clear(),(a=n(this.config))!=null&&a.debug&&console.debug("[i18n]: Loader promises have been purged."))})}async configLoader(t){if(!t)throw new Error("[i18n]: No config provided!");let e=t,{initLocale:a,fallbackLocale:r,translations:s,debug:o}=e,i=ve(e,["initLocale","fallbackLocale","translations","debug"]);[a]=T(a),[r]=T(r),o&&console.debug("[i18n]: Setting config."),this.config.set(w({initLocale:a,fallbackLocale:r,translations:s,debug:o},i)),s&&this.addTranslations(s),await this.loadTranslations(a)}},it=Object.defineProperty,Ut=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Xe=(t,e,a)=>e in t?it(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,$=(t,e)=>{for(var a in e||(e={}))lt.call(e,a)&&Xe(t,a,e[a]);if(oe)for(var a of oe(e))ct.call(e,a)&&Xe(t,a,e[a]);return t},ut=(t,e)=>Ut(t,Zt(e)),H=(t,e)=>{var a={};for(var r in t)lt.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&oe)for(var r of oe(t))e.indexOf(r)<0&&ct.call(t,r)&&(a[r]=t[r]);return a},Qt=(t,e)=>{for(var a in e)it(t,a,{get:e[a],enumerable:!0})},dt={};Qt(dt,{ago:()=>oa,date:()=>aa,eq:()=>Me,gt:()=>ft,gte:()=>ea,lt:()=>ht,lte:()=>Xt,ne:()=>Yt,number:()=>ta});var Ge=(t,e)=>{let{modifierDefaults:a}=e||{},{[t]:r}=a||{};return r||{}},Me=({value:t,options:e=[],defaultValue:a=""})=>(e.find(({key:r})=>`${r}`.toLowerCase()===`${t}`.toLowerCase())||{}).value||a,Yt=({value:t,options:e=[],defaultValue:a=""})=>(e.find(({key:r})=>`${r}`.toLowerCase()!==`${t}`.toLowerCase())||{}).value||a,ht=({value:t,options:e=[],defaultValue:a=""})=>(e.sort((r,s)=>+r.key-+s.key).find(({key:r})=>+t<+r)||{}).value||a,ft=({value:t,options:e=[],defaultValue:a=""})=>(e.sort((r,s)=>+s.key-+r.key).find(({key:r})=>+t>+r)||{}).value||a,Xt=({value:t,options:e=[],defaultValue:a=""})=>Me({value:t,options:e,defaultValue:ht({value:t,options:e,defaultValue:a})}),ea=({value:t,options:e=[],defaultValue:a=""})=>Me({value:t,options:e,defaultValue:ft({value:t,options:e,defaultValue:a})}),ta=({value:t,props:e,defaultValue:a="",locale:r="",parserOptions:s})=>{if(!r)return"";let o=Ge("number",s),{maximumFractionDigits:i}=o,l=H(o,["maximumFractionDigits"]),g=(e==null?void 0:e.number)||{},{maximumFractionDigits:c=i||2}=g,d=H(g,["maximumFractionDigits"]);return new Intl.NumberFormat(r,$(ut($({},l),{maximumFractionDigits:c}),d)).format(+t||+a)},aa=({value:t,props:e,defaultValue:a="",locale:r="",parserOptions:s})=>{if(!r)return"";let o=H(Ge("date",s),[]),i=H((e==null?void 0:e.date)||{},[]);return new Intl.DateTimeFormat(r,$($({},o),i)).format(+t||+a)},ke=[{key:"second",multiplier:1e3},{key:"minute",multiplier:60},{key:"hour",multiplier:60},{key:"day",multiplier:24},{key:"week",multiplier:7},{key:"month",multiplier:13/3},{key:"year",multiplier:12}],gt=(t="",e="")=>new RegExp(`^${t}s?$`).test(e),ra=t=>ke.indexOf(ke.find(({key:e})=>gt(e,t))),sa=(t,e)=>ke.reduce(([a,r],{key:s,multiplier:o},i)=>{if(gt(r,e))return[a,r];if(!r||i===ra(r)+1){let l=Math.round(a/o);if(!r||Math.abs(l)>=1||e!=="auto")return[l,s]}return[a,r]},[t,""]),oa=({value:t,defaultValue:e="",locale:a="",props:r,parserOptions:s})=>{if(!a)return"";let o=Ge("ago",s),{format:i,numeric:l}=o,g=H(o,["format","numeric"]),c=(r==null?void 0:r.ago)||{},{format:d=i||"auto",numeric:m=l||"auto"}=c,y=H(c,["format","numeric"]),u=+t||+e,h=sa(u,d);return new Intl.RelativeTimeFormat(a,$(ut($({},g),{numeric:m}),y)).format(...h)},na=t=>typeof t=="string"&&/{{(?:(?!{{|}}).)+}}/.test(t),Le=t=>typeof t=="string"?t.replace(/\\(?=:|;|{|})/g,""):t,ia=({value:t,props:e,payload:a,parserOptions:r,locale:s})=>`${t}`.replace(/{{\s*(?:(?!{{|}}).)+\s*}}/g,o=>{let i=Le(`${o.match(/(?!{|\s).+?(?!\\[:;]).(?=\s*(?:[:;]|}}$))/)}`),l=a==null?void 0:a[i],[,g=""]=o.match(/.+?(?!\\;).;\s*default\s*:\s*([^\s:;].+?(?:\\[:;]|[^;\s}])*)(?=\s*(?:;|}}$))/i)||[];g=g||(a==null?void 0:a.default)||"";let[,c=""]=o.match(/{{\s*(?:[^;]|(?:\\;))+\s*(?:(?!\\:).[:])\s*(?!\s)((?:\\;|[^;])+?)(?=\s*(?:[;]|}}$))/i)||[];if(l===void 0&&c!=="ne")return g;let d=!!c,{customModifiers:m}=r||{},y=$($({},dt),m||{});c=Object.keys(y).includes(c)?c:"eq";let u=y[c],h=(o.match(/[^\s:;{](?:[^;]|\\[;])+[^\s:;}]/gi)||[]).reduce((C,N,D)=>{if(D>0){let _=Le(`${N.match(/(?:(?:\\:)|[^:])+/)}`.trim()),A=`${N.match(/(?:(?:\\:)|[^:])+$/)}`.trim();if(_&&_!=="default"&&A)return[...C,{key:_,value:A}]}return C},[]);return!d&&!h.length?l:u({value:l,options:h,props:e,defaultValue:g,locale:s,parserOptions:r})}),pt=({value:t,props:e,payload:a,parserOptions:r,locale:s})=>{if(na(t)){let o=ia({value:t,payload:a,props:e,parserOptions:r,locale:s});return pt({value:o,payload:a,props:e,parserOptions:r,locale:s})}else return Le(t)},la=t=>({parse:(e,[a,r],s,o)=>((a==null?void 0:a.default)&&e===void 0&&(e=`${a.default}`),e===void 0&&(e=`${o}`),pt({value:e,payload:a,props:r,parserOptions:t,locale:s}))}),ca=la,ua=Object.defineProperty,da=Object.defineProperties,ha=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,et=(t,e,a)=>e in t?ua(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,fa=(t,e)=>{for(var a in e||(e={}))yt.call(e,a)&&et(t,a,e[a]);if(ne)for(var a of ne(e))mt.call(e,a)&&et(t,a,e[a]);return t},ga=(t,e)=>da(t,ha(e)),pa=(t,e)=>{var a={};for(var r in t)yt.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&ne)for(var r of ne(t))e.indexOf(r)<0&&mt.call(t,r)&&(a[r]=t[r]);return a},tt=t=>{var e=t,{parserOptions:a={}}=e,r=pa(e,["parserOptions"]);return ga(fa({},r),{parser:ca(a)})},ya=class extends Jt{constructor(t){super(t&&tt(t)),this.loadConfig=e=>super.configLoader(tt(e))}},ma=ya;const ba="English",wa="Fran\xE7aise",va="Espa\xF1ol",ka="Deutsche",La="Portugues do Brasil",Ta="Nederlands",Oa="T\xFCrk\xE7e",Ca="Polski";var j={en:ba,fr:wa,es:va,de:ka,pt:La,nl:Ta,tr:Oa,pl:Ca};const Da={translations:{en:{lang:j},fr:{lang:j},nl:{lang:j},es:{lang:j},pt:{lang:j},tr:{lang:j},de:{lang:j},pl:{lang:j}},loaders:[{locale:"en",key:"main",loader:async()=>(await x(()=>import("./main-dfcfa39e.js"),[])).default},{locale:"fr",key:"main",loader:async()=>(await x(()=>import("./main-8a7726b1.js"),[])).default},{locale:"nl",key:"main",loader:async()=>(await x(()=>import("./main-91b82818.js"),[])).default},{locale:"es",key:"main",loader:async()=>(await x(()=>import("./main-dacf71fb.js"),[])).default},{locale:"pt",key:"main",loader:async()=>(await x(()=>import("./main-e5bf33b6.js"),[])).default},{locale:"tr",key:"main",loader:async()=>(await x(()=>import("./main-333310b1.js"),[])).default},{locale:"de",key:"main",loader:async()=>(await x(()=>import("./main-1def4445.js"),[])).default},{locale:"pl",key:"main",loader:async()=>(await x(()=>import("./main-a3d7e585.js"),[])).default}]};function or(){return!navigator||!navigator.language?"en":navigator.language.startsWith("fr")?"fr":navigator.language.startsWith("nl")?"nl":navigator.language.startsWith("es")?"es":navigator.language.startsWith("pt")?"pt":navigator.language.startsWith("tr")?"tr":navigator.language.startsWith("de")?"de":navigator.language.startsWith("pl")?"pl":"en"}const{t:J,loading:nr,locales:ir,locale:lr,loadTranslations:cr,translations:ur}=new ma(Da);function _a(t,e,a){const r=/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(location.hostname)||location.protocol==="file:";if(!e.trackLocalhost&&r)return console.warn("[Plausible] Ignoring event because website is running locally");if(localStorage.getItem("plausible_ignore")==="true")return console.warn('[Plausible] Ignoring event because "plausible_ignore" is set to "true" in localStorage');const o={n:t,u:e.url,d:e.domain,r:e.referrer,w:e.deviceWidth,h:e.hashMode?1:0,p:a&&a.props?JSON.stringify(a.props):void 0},i=new XMLHttpRequest;i.open("POST",`${e.apiHost}/api/event`,!0),i.setRequestHeader("Content-Type","text/plain"),i.send(JSON.stringify(o)),i.onreadystatechange=()=>{i.readyState===4&&a&&a.callback&&a.callback()}}function Sa(t){const e=()=>v({hashMode:!1,trackLocalhost:!1,url:location.href,domain:location.hostname,referrer:document.referrer||null,deviceWidth:window.innerWidth,apiHost:"https://plausible.io"},t),a=(i,l,g)=>{_a(i,v(v({},e()),g),l)},r=(i,l)=>{a("pageview",l,i)};return{trackEvent:a,trackPageview:r,enableAutoPageviews:()=>{const i=()=>r(),l=history.pushState;return l&&(history.pushState=function(g,c,d){l.apply(this,[g,c,d]),i()},addEventListener("popstate",i)),t&&t.hashMode&&addEventListener("hashchange",i),r(),function(){l&&(history.pushState=l,removeEventListener("popstate",i)),t&&t.hashMode&&removeEventListener("hashchange",i)}},enableAutoOutboundTracking:(i=document,l={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function g(u){a("Outbound Link: Click",{props:{url:this.href}}),typeof process!="undefined"&&process,setTimeout(()=>{location.href=this.href},150),u.preventDefault()}const c=new Set;function d(u){u instanceof HTMLAnchorElement?u.host!==location.host&&(u.addEventListener("click",g),c.add(u)):"querySelectorAll"in u&&u.querySelectorAll("a").forEach(d)}function m(u){u instanceof HTMLAnchorElement?(u.removeEventListener("click",g),c.delete(u)):"querySelectorAll"in u&&u.querySelectorAll("a").forEach(m)}const y=new MutationObserver(u=>{u.forEach(h=>{h.type==="attributes"?(m(h.target),d(h.target)):h.type==="childList"&&(h.addedNodes.forEach(d),h.removedNodes.forEach(m))})});return i.querySelectorAll("a").forEach(d),y.observe(i,l),function(){c.forEach(h=>{h.removeEventListener("click",g)}),c.clear(),y.disconnect()}}}}const at=Sa({domain:"vegeta897.github.io/word-peaks",apiHost:"https://plausible.pixelatomy.com"}),dr=()=>bt("pageview"),re=t=>bt(t);function bt(t){try{t==="pageview"?at.trackPageview():at.trackEvent(t)}catch(e){console.warn(`Failed to track ${t}`,e)}}const xa={duration:4e3,initial:1,next:0,pausable:!1,dismissable:!0,reversed:!1,intro:{x:256},theme:{}},Ra=()=>{const{subscribe:t,update:e}=p([]);let a=0;const r={},s=c=>c instanceof Object;return{subscribe:t,push:(c,d={})=>{const m=v({target:"default"},s(c)?c:ae(v({},d),{msg:c})),y=r[m.target]||{},u=ae(v(v(v({},xa),y),m),{theme:v(v({},y.theme),m.theme),id:++a});return e(h=>u.reversed?[...h,u]:[u,...h]),a},pop:c=>{e(d=>{if(!d.length||c===0)return[];if(s(c))return d.filter(y=>c(y));const m=c||Math.max(...d.map(y=>y.id));return d.filter(y=>y.id!==m)})},set:(c,d={})=>{const m=s(c)?v({},c):ae(v({},d),{id:c});e(y=>{const u=y.findIndex(h=>h.id===m.id);return u>-1&&(y[u]=v(v({},y[u]),m)),y})},_init:(c="default",d={})=>(r[c]=d,r)}},Te=Ra();const E=6,R=5,q="abcdefghijklmnopqrstuvwxyz".split(""),Ea=["alphabetic","qwerty","azerty","qwertz","dvorak","colemak","alphabetic_reversed"],hr=[{value:"alphabetic",label:"Alphabetic",layout:[["a","b","c","d","e","f","g","h","i","j"],["k","l","m","n","o","p","q","r","s","t"],["u","v","w","x","y","z"]],wideKeysRow:2},{value:"qwerty",label:"QWERTY",layout:[["q","w","e","r","t","y","u","i","o","p"],["a","s","d","f","g","h","j","k","l"],["z","x","c","v","b","n","m"]],wideKeysRow:2},{value:"azerty",label:"AZERTY",layout:[["a","z","e","r","t","y","u","i","o","p"],["q","s","d","f","g","h","j","k","l","m"],["z","x","c","v","b","n"]],wideKeysRow:2},{value:"qwertz",label:"QWERTZ",layout:[["q","w","e","r","t","z","u","i","o","p"],["a","s","d","f","g","h","j","k","l"],["y","x","c","v","b","n","m"]],wideKeysRow:2},{value:"dvorak",label:"Dvorak",layout:[["p","y","f","g","c","r","l"],["a","o","e","u","i","d","h","t","n","s"],["q","j","k","x","b","m","w","v","z"]],wideKeysRow:0},{value:"colemak",label:"Colemak",layout:[["q","w","f","p","g","j","l","u","y"],["a","r","s","t","d","h","n","e","i","o"],["z","x","c","v","b","k","m"]],wideKeysRow:2},{value:"alphabetic_reversed",label:"Alphabetic (reversed)",layout:[["z","y","x","w","v","u","t","s","r","q"],["p","o","n","m","l","k","j","i","h","g"],["f","e","d","c","b","a"]],wideKeysRow:2}],fr="M32.34 0c-3 0-4.83 2.59-5.41 5.67l-.82 4.26a30.24 30.24 0 0 0-6.64 3.84l-4.09-1.42c-2.68-.93-6.12-.75-7.62 1.85l-5.41 9.38c-1.5 2.59-.16 5.46 2.2 7.52l3.27 2.84a30.24 30.24 0 0 0-.26 3.85 30.24 30.24 0 0 0 .26 3.82l-3.28 2.84c-2.15 1.85-3.7 4.92-2.2 7.52l5.41 9.37c1.5 2.6 4.65 2.88 7.61 1.86l4.07-1.41a30.24 30.24 0 0 0 6.68 3.87l.82 4.26c.53 2.79 2.41 5.67 5.41 5.67h10.82c3 0 4.82-2.59 5.42-5.67l.81-4.22a30.24 30.24 0 0 0 6.74-3.88l4.07 1.4c2.85.99 6.11.75 7.61-1.85L73.23 52c1.5-2.6.17-5.48-2.21-7.53l-3.25-2.81a30.24 30.24 0 0 0 .26-3.87 30.24 30.24 0 0 0-.25-3.91l3.23-2.81c2.28-1.98 3.7-4.93 2.2-7.52l-5.41-9.38c-1.5-2.6-4.66-2.88-7.62-1.85l-4.07 1.42a30.24 30.24 0 0 0-6.72-3.87l-.81-4.2C48 2.71 46.16 0 43.16 0H32.34zm5.45 20.98a16.82 16.82 0 1 1 0 33.64 16.82 16.82 0 1 1 0-33.64z",gr="M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z",pr="M221.95,51.29c0.15,2.17,0.15,4.34,0.15,6.53c0,66.73-50.8,143.69-143.69,143.69v-0.04 C50.97,201.51,24.1,193.65,1,178.83c3.99,0.48,8,0.72,12.02,0.73c22.74,0.02,44.83-7.61,62.72-21.66 c-21.61-0.41-40.56-14.5-47.18-35.07c7.57,1.46,15.37,1.16,22.8-0.87C27.8,117.2,10.85,96.5,10.85,72.46c0-0.22,0-0.43,0-0.64 c7.02,3.91,14.88,6.08,22.92,6.32C11.58,63.31,4.74,33.79,18.14,10.71c25.64,31.55,63.47,50.73,104.08,52.76 c-4.07-17.54,1.49-35.92,14.61-48.25c20.34-19.12,52.33-18.14,71.45,2.19c11.31-2.23,22.15-6.38,32.07-12.26 c-3.77,11.69-11.66,21.62-22.2,27.93c10.01-1.18,19.79-3.86,29-7.95C240.37,35.29,231.83,44.14,221.95,51.29z";function wt(){P.set(Lt()),fe[n(k)==="daily"?"guessTimesDaily":"guessTimesRandom"].set([])}function vt(){Te.pop(),L.set(0),Q.set(!1),Y.set(!1),Z.set(!1),F.set(!1)}function yr(t){if(n(S))return;Oe().catch(r=>{U(n(J)("main.messages.need_reload"),()=>{},8e3)});const e=n(L);if(e===R)return;const a=n(M);if(a===0&&e===0&&xt(a),P.update(r=>{const s=r[a][e],[o,i]=Ot(n(jt));return s.polarity=0,t&&ti&&(s.polarity=1),s.letter=t,r}),F.set(!1),Y.set(!1),t||es+1);const r=Ie(n(P)[a]);r.length===R&&Oe().then(async()=>{r!==n(G)&&!await kt(r)&&Y.set(!0)})}}function mr(t=!0){n(S)||(P.update(e=>{let a=e[n(M)][n(L)];return t&&n(L)>0&&!(a!=null&&a.letter)&&(L.update(r=>r-1),a=e[n(M)][n(L)]),a.letter="",a.polarity=0,e}),Z.set(!1),F.set(!1),Q.set(!1),Y.set(!1))}function br(t){if(n(S))return;const e=n(L)+t;e<0||e>=R||L.update(a=>a+t)}let z=!1;async function wr(){if(z||n(S))return;z=!0;const t=n(M);if(!Aa(n(P),t)){F.set(!0),U(n(J)("main.messages.not_enough_letters"),()=>F.set(!1)),z=!1;return}const e=n(P)[t],a=Ie(e);let r;try{r=await kt(a)}catch{U(n(J)("main.messages.need_reload"),()=>{},8e3),z=!1;return}if(a!==n(G)&&!r){Q.set(!0),U(n(J)("main.messages.invalid_word"),()=>Q.set(!1)),z=!1;return}if(n(De)&&t>0&&e.some(o=>o.lettero.letterBounds[1])){Z.set(!0),U(n(J)("main.messages.use_valid_letters"),()=>Z.set(!1)),z=!1;return}re("submitGuess"),xt(t+1),Pt(o=>[...o,a]);const s=n(k);if(qt.set(!0),n(S)){const o=n(Ve);re(o?"gameWon":"gameLost"),s==="daily"&&re("dailyFinish"),n(ze)&&re("firstFinish"),ze.set(!1),fe[s==="daily"?"lastPlayedDailyWasHard":"lastPlayedRandomWasHard"].set(n(De)),setTimeout(()=>{pe.set(!0),o&&ye.set(!0)},6*150+250),Ga(o)}else L.set(0);z=!1}const U=(t,e,a)=>{Te.pop();const r={theme:{"--toastBackground":"var(--error-color)"}};e&&(r.onpop=e),a!==void 0&&(r.duration=a),Te.push(t,r)};function vr(t){return Math.random()i+l,0),s=Pa(0,r,a);let o=0;for(let i=0;i`${t}:${e}`,$a=[[-1,0],[1,0],[0,-1],[0,1]],Or=(t,e)=>$a.map(([a,r])=>[t+a,e+r]),Cr=(t,e)=>Math.sqrt(t**2+e**2),Dr=t=>new Promise(e=>setTimeout(e,t));let ie;async function Oe(){ie||(ie=(await x(()=>import("./dictionary-filtered-ee243395.js"),[])).default)}async function kt(t){return ie||await Oe(),ie.includes(t)}function _r(){k.set("daily"),history.pushState("",document.title,window.location.pathname+window.location.search);const t=rt(),e=za(t);(n(X)!==rt()||n(W)!==e)&&(wt(),B.set([]),X.set(t),W.set(e)),vt();const r=n(S);pe.set(r),ye.set(r),Be.set(!0),Ke.set(!1)}function Sr(t){k.set("random");const e=n(V),a=t&&t!==e||!e,r=a?t||Wa():e,s=Dt(r);history.pushState("",document.title,window.location.pathname+`#${s}`+window.location.search),a&&(wt(),te.set([]),V.set(r)),vt();const o=n(S);pe.set(o),ye.set(o),Be.set(!0),Ke.set(!1)}function Lt(){const t=[];for(let e=0;e0?1:-1;return{id:a,scored:!0,distance:r,polarity:s,letter:t}}function Tt(t,e,a){if(a===R)return new Set;const r=new Set(q);return q.forEach(s=>{if(!!r.has(s))for(let o=0;o0&&s>=i.letter&&r.delete(s)}}),r}function Ie(t){return t.map(e=>e.letter).join("")}function Ot(t){return[q.find(e=>t.has(e)),[...q].reverse().find(e=>t.has(e))]}function Aa(t,e){const a=Ie(t[e]);return!(a.length{let t=0;const e=new Date(Ct),a=new Date;for(a.setHours(0,0,0,0);e{const e=new Date(Ct);let a=new Date(e);return a.setDate(e.getDate()+t+1),a},Wa=()=>ja(we);function Dt(t){let e=0;for(const[a,r]of[...t].entries())e+=q.indexOf(r)<>a*5];return e.length===5&&e}const _t=()=>({currentStreak:0,bestStreak:0,totalGames:0,wonGames:0,distribution:new Array(E).fill(0)}),Ce=()=>({gameCount:0,guessTotals:new Array(E).fill(0),guessCounts:new Array(E).fill(0),fastestGame:0}),St=t=>t[t.length-1]-t[0];function Ga(t){const e=n(k);let a=!1;e==="daily"&&(a=t&&St(n(ge)){const o=t?s.currentStreak+1:0,i=[...s.distribution];return i[e-1]++,{currentStreak:o,bestStreak:o>s.bestStreak?o:s.bestStreak,totalGames:s.totalGames+1,wonGames:s.wonGames+(t?1:0),distribution:i}});const a=n(ge),r=St(a);ee.update(s=>{const o=s.guessTotals.map((i,l)=>ll(e[t]=new Date().getTime(),e))}const W=f("wp-answer",""),V=f("wp-answerRandom",""),B=f("wp-guesses",[]),te=f("wp-guessesRandom",[]),le=f("wp-lastPlayedWasHard",!1),ce=f("wp-lastPlayedRandomWasHard",!1),Rt=f("wp-hardMode",!1),De=b(Rt,t=>t),Na=t=>{if(!n(S)&&n(I).length>0)throw"Can't change that during a game!";Rt.set(t)},k=p("daily"),Et=b([k,le,ce],([t,e,a])=>t==="daily"?e:a),Z=p(!1),F=p(!1),Q=p(!1),Y=p(!1),P=p([]),G=b([k,W,V],([t,e,a])=>t==="daily"?e:a),I=b([k,B,te],([t,e,a])=>t==="daily"?e:a);function Pt(t){(n(k)==="daily"?B:te).update(t)}const Ne=f("wp-guessTimesDaily",[]),He=f("wp-guessTimesRandom",[]),ge=b([k,Ne,He],([t,e,a])=>t==="daily"?e:a),M=b(I,t=>t.length),L=p(0),Ve=b([G,I],([t,e])=>e.length>0&&e[e.length-1]===t),S=b([M,Ve],([t,e])=>e||t===E),jt=b([P,M,L,S],([t,e,a,r])=>r?new Set:Tt(t,e,a));function Ha(){I.subscribe(t=>{P.update(()=>{const e=Lt();if(t.length===0)return e;for(let a=0;aqa(s,n(G),o))}else a>0&&a===t.length&&e[a].forEach((r,s)=>{r.letterBounds=Ot(Tt(e,a,s))});return e})})}const Fe=f("wp-version",0),Va=f("wp-locale",""),Fa=p(null),_e=f("wp-highContrast",!1),Se=f("wp-showAllHints",!1),xe=f("wp-swapEnterBackspace",!1),Re=f("wp-keyboardLayout","alphabetic"),Ee=f("wp-dyslexicFont",!1),Pe=f("wp-allowDancing",!0),je=f("wp-hideLandscape",!1),$e=f("wp-shareURL",!0),qe=f("wp-shareTimes",!1),Ba=f("wp-hideArrows",!1),Ae=f("wp-preciseTimes",!1),$t=f("wp-tileSharpness",.72),Ka=b([$t],([t])=>t<=1?`${14+t*36}%`:`50% ${50+(t-1)*36}%`),X=f("wp-lastPlayedDaily",-1),ue=f("wp-stats",_t()),ee=f("wp-timeStats",Ce()),de=f("wp-lastDailyDetail",null),he=f("wp-lastRandomDetail",null),Ja=b([k,de,he],([t,e,a])=>t==="daily"?e:a),pe=p(!1),Ua=p([]),Za=p(),Qa=p(),Be=p(!1),qt=p(!1),Ke=p(!1),ye=p(!1),Ya=p(!1),Xa=p(null),ze=p(!1),er=f("wp-dismissPromo",0),K=t=>!t||typeof t!="string"&&!(t instanceof String)||t.length!==R,be=(t,e)=>{if(!Array.isArray(t)||t.length!==E)return e;for(let a=0;a=0||(t[a]=0);return t};function tr(){[!0,!1].includes(n(_e))||_e.set(!1),[!0,!1].includes(n(Se))||Se.set(!1),[!0,!1].includes(n(xe))||xe.set(!1),[!0,!1].includes(n(Ee))||Ee.set(!1),[!0,!1].includes(n(je))||je.set(!1),[!0,!1].includes(n(Pe))||Pe.set(!0),[!0,!1].includes(n($e))||$e.set(!0),[!0,!1].includes(n(qe))||qe.set(!1),[!0,!1].includes(n(Ae))||Ae.set(!1),Ea.includes(n(Re))||Re.set("qwerty");const t=n(ue);t.currentStreak>=0||(t.currentStreak=0),t.bestStreak>=0||(t.bestStreak=0),t.totalGames>=0||(t.totalGames=0),t.wonGames>=0||(t.wonGames=0),t.distribution=be(t.distribution,_t().distribution),ue.set(t);const e=n(ee);e.gameCount>=0||(e.gameCount=0),e.fastestGame>=0||(e.fastestGame=0),e.guessTotals=be(e.guessTotals,Ce().guessTotals),e.guessCounts=be(e.guessCounts,Ce().guessCounts),ee.set(e),[["daily",n(de)],["random",n(he)]].forEach(([s,o])=>{if(o!==null)try{if(o.mode!==s)throw"wrong mode";if(!(o.dayNumber>=0))throw"invalid day number";if(![!0,!1].includes(o.hardMode))throw"invalid hard mode setting";if(K(o.answer))throw"invalid answer";if(!Array.isArray(o.guesses)||o.guesses.length<1||o.guesses.length>E)throw"invalid guesses array";if(o.guesses.some(K))throw"invalid guess(es)";if(!Array.isArray(o.guessTimes)||o.guessTimes.length!==o.guesses.length+1)throw"invalid guessTimes array";const i=new Date().getTime();for(let l=0;l=i-1e12))throw"invalid guess time"}catch{s==="daily"?de.set(null):he.set(null)}}),K(n(W))&&W.set(""),K(n(V))&&V.set(""),[!0,!1].includes(n(le))||le.set(!1),[!0,!1].includes(n(ce))||ce.set(!1),[[B,Ne],[te,He]].forEach(([s,o])=>{try{if(!Array.isArray(n(s))||n(s).length>E||n(s).some(K))throw"invalid guess(es)";if(!Array.isArray(n(o))||n(o).length!==n(s).length+1)throw"invalid guessTimes array";const i=new Date().getTime();for(let l=0;l=i-1e12))throw"invalid guess time"}catch{s.set([]),o.set([])}})}const At=1,st=n(Fe);(!st||st<1)&&(X.set(-1),W.set(""),B.set([]));Fe.set(At);tr();export{Re as $,Q as A,F as B,Z as C,S as D,Y as E,L as F,J as G,Za as H,Ua as I,Fa as J,Pe as K,re as L,$e as M,qe as N,Ba as O,xr as P,Ve as Q,E as R,I as S,Ja as T,Et as U,$t as V,R as W,ye as X,Sr as Y,Wa as Z,_r as _,dr as a,xe as a0,jt as a1,hr as a2,wr as a3,mr as a4,br as a5,q as a6,yr as a7,pe as a8,k as a9,ue as aa,ee as ab,ze as ac,j as ad,je as ae,Ae as af,Na as ag,De as ah,gr as ai,pr as aj,fr as ak,Rr as al,W as am,V as an,Ha as ao,Dt as ap,At as aq,de as ar,Dr as as,ja as at,vr as au,cr as b,X as c,Ee as d,Ka as e,fe as f,or as g,_e as h,Or as i,Cr as j,kr as k,ir as l,Pa as m,Be as n,Ke as o,qt as p,Ya as q,Lr as r,Va as s,Te as t,M as u,G as v,P as w,Tr as x,Qa as y,Xa as z}; +var zt=Object.defineProperty,Wt=Object.defineProperties;var Gt=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable;var Ue=(t,e,a)=>e in t?zt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,v=(t,e)=>{for(var a in e||(e={}))Mt.call(e,a)&&Ue(t,a,e[a]);if(Je)for(var a of Je(e))It.call(e,a)&&Ue(t,a,e[a]);return t},ae=(t,e)=>Wt(t,Gt(e));import{a0 as n}from"./index-0dc809ca.js";import{w as p,d as b,_ as x}from"./preload-helper-5ea9bf72.js";var fe=Object.freeze(Object.defineProperty({__proto__:null,get STORE_VERSION(){return At},get storeVersion(){return Fe},get storedLocale(){return Va},get openScreen(){return Fa},get highContrast(){return _e},get showAllHints(){return Se},get swapEnterBackspace(){return xe},get keyboardLayout(){return Re},get dyslexicFont(){return Ee},get allowDancing(){return Pe},get hideLandscape(){return je},get shareURL(){return $e},get shareTimes(){return qe},get hideArrows(){return Ba},get preciseTimes(){return Ae},get tileSharpness(){return $t},get tileArrowRadius(){return Ka},get lastPlayedDaily(){return X},get stats(){return ue},get timeStats(){return ee},get lastDailyDetail(){return de},get lastRandomDetail(){return he},get lastGameDetail(){return Ja},get showEndView(){return pe},get guessTimeStrings(){return Ua},get totalGuessTimeString(){return Za},get landscape(){return Qa},get landscapeNewGame(){return Be},get landscapeNewRow(){return qt},get landscapeWideView(){return Ke},get landscapeForceColor(){return ye},get landscapeRedraw(){return Ya},get landscapeSVG(){return Xa},get newUser(){return ze},get dismissPromo(){return er},get answerDaily(){return W},get answerRandom(){return V},get guessesDaily(){return B},get guessesRandom(){return te},get lastPlayedDailyWasHard(){return le},get lastPlayedRandomWasHard(){return ce},get hardMode(){return De},get changeHardMode(){return Na},get gameMode(){return k},get lastPlayedWasHard(){return Et},get invalidHardModeGuess(){return Z},get notEnoughLetters(){return F},get invalidWord(){return Q},get invalidWordPreview(){return Y},get boardContent(){return P},get answer(){return G},get guesses(){return I},get updateGuesses(){return Pt},get guessTimesDaily(){return Ne},get guessTimesRandom(){return He},get guessTimes(){return ge},get currentRow(){return M},get currentTile(){return L},get gameWon(){return Ve},get gameFinished(){return S},get validLetters(){return jt},get initGameState(){return Ha}},Symbol.toStringTag,{value:"Module"})),me={};function f(t,e){const a=typeof localStorage!="undefined";function r(s,o){!a||localStorage.setItem(s,JSON.stringify(o))}if(!me[t]){const s=p(e,l=>{const g=a?localStorage.getItem(t):null;if(g&&l(JSON.parse(g)),a){const c=d=>{d.key===t&&l(d.newValue?JSON.parse(d.newValue):null)};return window.addEventListener("storage",c),()=>window.removeEventListener("storage",c)}}),{subscribe:o,set:i}=s;me[t]={set(l){r(t,l),i(l)},update(l){const g=l(n(s));r(t,g),i(g)},subscribe:o}}return me[t]}var we=["charm","cycle","skill","audio","peace","index","rusty","choir","early","shirt","erase","chord","snack","timer","voice","dozen","sixth","flair","radio","tuner","blank","every","manor","leash","sunny","adore","turbo","muggy","total","juicy","parka","decal","stuff","hippo","alley","igloo","payer","anvil","trail","trash","slide","stole","feral","spoon","waive","roomy","melon","picky","fuzzy","phone","jolly","eager","rigid","smock","curse","fryer","druid","bleed","worst","payee","creme","atone","basil","tread","bandy","quake","brake","angel","swarm","robot","hefty","earth","grill","armor","nudge","fiber","baste","steel","cumin","being","dough","facet","ounce","urban","their","moral","watch","about","admit","daisy","trend","bland","ocean","depth","kneel","scamp","track","loose","daunt","magic","snuff","which","sixty","snide","windy","guide","momma","nurse","crime","civil","gutsy","bloat","dryer","pecan","fungi","drawl","ozone","tress","barge","locus","messy","haste","moody","hutch","elect","plant","equal","extra","fiery","crane","mourn","perky","fight","thick","nexus","taste","misty","avert","queer","larch","colon","banjo","buddy","codex","spite","plank","trope","roach","vowel","futon","alias","beret","whiff","phony","faith","flash","comic","intro","amuse","match","limbo","close","retro","crash","vocal","cream","spine","piper","smoke","pixel","foyer","cross","hydra","foamy","youth","noble","ridge","brunt","value","exalt","rouse","truck","alpha","ionic","adopt","spore","medic","cobra","shore","where","gavel","ditto","apple","bring","grace","share","decoy","khaki","fiend","clear","terra","mower","tutor","chafe","tummy","prong","shank","scope","toxin","seven","exist","beige","smelt","clump","cedar","salty","cocky","gouge","edict","worse","vigor","decry","indie","would","alone","aglow","sable","price","weigh","baton","after","heavy","soapy","tabby","lever","horse","epoxy","prune","right","sheik","melee","azure","tiara","scale","claim","merit","doggy","oaken","serum","staff","robin","condo","shaft","rowdy","reuse","crepe","unfit","grass","hence","filly","pansy","alibi","group","quint","suave","furor","eared","teary","amaze","caper","spoil","drool","merge","scoot","tinge","flame","dirty","beard","crank","orbit","glint","guise","flood","waist","amber","house","mayor","atoll","hazel","loner","conch","belly","guilt","brink","swoon","gleam","sheen","flail","evade","blame","proud","cower","gross","harpy","taffy","rouge","itchy","mound","sweet","creed","bevel","trust","sorry","redux","crumb","twist","sever","stilt","enjoy","delay","along","angry","munch","juror","arrow","dandy","jumbo","flier","tonic","pushy","banal","sneer","cloth","tilde","cough","curly","conic","queen","mould","wedge","goody","outer","beach","gloom","pixie","swine","depot","flank","stamp","satyr","sloth","brave","wheat","panic","glaze","civic","couch","tacit","skulk","dopey","stoma","spurt","going","quash","arson","lucid","friar","omega","joust","slain","mural","tulip","droop","meaty","lorry","loamy","chump","macro","lanky","caddy","shade","aphid","rider","valet","broth","lilac","model","stint","vogue","chase","sport","mushy","caret","movie","forty","clack","amble","bound","infer","fable","dream","crisp","rower","timid","annoy","class","field","roost","hello","shell","shift","delve","aunty","rhyme","prude","idiom","craft","wrack","night","grime","nymph","frown","hurry","hobby","tally","envoy","olive","undue","mirth","skiff","thief","viola","derby","hyena","lager","lance","booth","floss","truly","stain","magma","dimly","imbue","marry","dusty","patty","curio","posit","alert","stack","mommy","froth","saucy","razor","penal","bogey","gnome","agent","petty","angle","bulge","agate","shale","askew","slope","offer","bunny","tooth","pinch","amply","avian","heron","lingo","adobe","butch","axiom","belie","riser","alter","bacon","outdo","truss","adorn","douse","chasm","mixer","molar","steal","gator","mealy","still","tongs","water","flume","level","mount","exact","braid","found","giddy","trait","apply","scorn","swear","giant","probe","latex","lotus","width","quote","score","proxy","crypt","chaff","skull","touch","brick","rivet","bawdy","float","polar","chuck","samba","arena","poppy","defer","parse","error","chalk","afoul","fewer","knock","sauna","venue","stead","carve","lunch","grasp","elite","optic","chunk","gourd","brass","mimic","cress","jazzy","money","debit","macho","silly","skier","fluid","comma","abode","amuck","sewer","bulky","smash","ether","livid","flyer","stoke","cable","slash","comfy","tract","denim","heath","smoky","shake","grant","union","shine","these","glade","basis","hoard","gruff","lucky","gecko","forge","tenet","tempo","abide","fling","puffy","lapse","image","chant","cease","squib","domed","scrap","flare","morph","motto","pasty","toxic","today","refer","mangy","choke","sheet","thyme","fussy","wagon","milky","gripe","teddy","posse","blast","salvo","haiku","store","leafy","patch","twine","spoke","story","alarm","funny","child","piece","feint","break","crick","totem","lasso","cause","chute","stony","vague","bunch","uvula","kiosk","gorge","sling","tribe","ferry","merry","reedy","bogus","scant","quirk","gimme","taper","sleep","renew","trout","topaz","scent","maker","ghost","forth","humor","waltz","irony","erect","flora","alive","vicar","adder","rodeo","erupt","rhino","valve","among","weary","fresh","round","ought","align","gauze","glide","canny","exude","madly","fount","theme","brown","vapor","filmy","wreck","snore","blind","eagle","unify","elder","laugh","gusto","chime","dusky","daddy","cameo","notch","write","octal","click","sheep","adapt","brood","chewy","slant","cloud","lapel","nomad","shall","mauve","rival","showy","abbot","lyric","glean","opium","wheel","drake","cello","whine","otter","tasty","yucca","elate","globe","heart","ankle","havoc","throw","alien","amiss","scare","mouth","noose","scold","thigh","droll","clasp","tight","delta","wager","diode","bride","finch","goose","boost","wield","leaky","lower","setup","savor","throb","nasal","micro","hasty","perch","grief","swath","quell","world","sinus","prawn","yearn","stern","viral","flick","scalp","split","lathe","erode","panel","valid","embed","woman","worth","suede","scald","lover","rabid","motel","shack","brute","prowl","until","vigil","nifty","usual","visor","briar","wispy","brook","pound","buxom","agile","soggy","prank","stove","gravy","steak","focus","vivid","qualm","brain","gamma","slush","drink","given","recap","rabbi","haunt","detox","titan","chimp","drown","abbey","siren","brawn","whirl","cider","frost","minor","pearl","villa","stock","dunce","scoff","gloat","churn","belch","argon","manic","nutty","essay","whale","stark","solve","young","brisk","stool","bluff","upset","kneed","pylon","crack","shrew","climb","widen","sappy","dryly","foray","tower","video","glory","rough","agony","sarge","thorn","legal","demon","silky","stunt","three","crude","spend","waste","eerie","sushi","smell","needy","tense","happy","maybe","thing","hippy","quest","ebony","worry","slink","dodge","antic","beefy","taiga","corny","party","spurn","wreak","biker","cocoa","croak","snarl","graph","servo","abate","scone","splay","yacht","again","force","incur","farce","tough","lusty","heave","labor","chide","swank","reign","yahoo","fully","fairy","nitre","sadly","baker","moped","gauge","porch","teach","matte","syrup","broil","ethos","swirl","winch","bloke","vapid","reach","lobby","lunge","dizzy","shard","tenth","storm","plush","ideal","wince","snipe","taker","thump","wharf","snoop","chaos","stair","waken","credo","bingo","usurp","scowl","graze","tidal","murky","ripen","duvet","gland","medal","stake","missy","ample","cliff","zebra","slick","slimy","blitz","equip","grind","sonar","thong","octet","overt","nitro","login","cigar","steam","spank","shred","prize","drift","blurb","await","booby","scuba","honor","rotor","crock","bleat","queue","plaid","genre","nasty","hater","fudge","coral","entry","salad","gulch","grate","onion","catch","grade","neigh","blood","balmy","arise","rapid","cleft","swipe","those","purse","quilt","fjord","craze","prism","tepid","poise","fetch","inert","jerky","brace","prose","freak","enact","cargo","sting","tarot","angst","voila","endow","newly","piggy","shear","crown","flock","expel","fluff","super","abyss","quota","naval","shook","kayak","salon","swell","growl","lurch","retry","sugar","funky","shock","quick","title","white","swoop","debut","tryst","triad","folly","chess","horde","spray","empty","quite","wrong","snout","atlas","snare","fleck","risky","jaunt","oasis","slice","altar","begin","often","basic","deity","heist","skeet","clink","laden","libel","broom","grape","ahead","coach","spool","wrath","trans","inlay","stale","smile","ingot","trove","inset","draft","rally","flour","crawl","gaudy","ember","fluke","lowly","niece","chirp","stare","gummy","lying","spear","sneak","femur","quack","sweat","groan","boast","vital","least","metro","motor","novel","ladle","booze","beech","lumpy","siege","ruler","frisk","under","onset","cheat","slack","lemur","final","howdy","leave","clean","loath","spelt","guest","saute","splat","knell","revel","rehab","fraud","tonal","solar","floor","daily","dwarf","untie","ravel","block","screw","witty","lithe","badge","paper","blink","plaza","spade","check","chain","fifty","sleek","royal","grunt","print","motif","verge","cheer","bagel","lousy","fetid","bloom","vinyl","troop","aback","wiper","cleat","affix","smear","purge","nylon","never","spasm","evict","range","pulse","witch","monad","muddy","doubt","clash","acrid","sinew","ditch","unmet","paste","greet","trawl","relax","idler","slake","fishy","bleak","awful","rigor","bossy","spiny","occur","photo","vixen","punch","bongo","raise","beast","query","canon","testy","hunch","drone","bully","adage","moldy","press","front","abhor","girth","metal","panda","sassy","modal","handy","there","uncle","shame","birth","lunar","husky","dicey","radar","rinse","excel","serif","third","goofy","reply","venom","abort","famed","taint","crush","straw","snark","whole","satin","vault","cache","tweed","piety","shirk","think","green","organ","louse","bench","poach","spawn","maize","plate","guard","flesh","curve","filth","space","psych","frail","seedy","stash","plead","spunk","covet","canoe","surly","meted","focal","catty","marsh","shark","burst","tamer","hiker","since","flirt","guild","suite","miner","ultra","clerk","tying","buyer","opera","crate","build","tiger","irate","salve","beset","river","cling","larva","miter","trite","visit","amend","gloss","champ","caste","curry","leech","godly","speak","slate","color","light","adult","bonus","stave","solid","linen","quill","repel","cheek","furry","chief","mercy","drama","ennui","hound","ratio","trace","scout","bison","remit","chore","radon","sonic","raven","hoist","inner","spout","relay","judge","asset","biped","quart","crimp","anode","grand","naked","phase","baggy","eater","prove","grain","theft","vouch","sooty","debug","tenor","genus","pygmy","feign","glare","musty","glyph","ashen","north","piano","event","frank","limit","alloy","smite","puppy","preen","brand","trade","sense","bumpy","cubic","unwed","study","proof","avoid","shave","dairy","shelf","sniff","berry","scene","argue","giver","jumpy","clank","aloof","award","thumb","sweep","flaky","snail","spare","swing","lofty","cynic","glass","poser","might","scrub","ascot","felon","booty","above","learn","dress","deter","react","squad","deuce","devil","ivory","ensue","slump","flake","shady","skirt","plumb","major","navel","stalk","shape","dolly","pluck","nanny","coast","cabal","skate","saver","spoof","croft","imply","aroma","drive","quiet","rover","twice","pizza","rebar","brash","candy","plain","route","chart","creek","squid","evoke","quark","algae","upper","vista","aisle","afoot","plump","tempt","liver","human","fauna","avail","hardy","pinky","drill","tipsy","agora","relic","annex","dingo","issue","raspy","shawl","lurid","train","pause","serve","knife","inlet","modem","music","forum","blush","stout","pedal","speck","filet","slang","later","table","apart","drunk","donor","llama","coupe","beryl","sheer","nerve","lease","pitch","fruit","pique","cloak","tripe","cramp","shove","while","rebel","knead","dwell","crust","verse","favor","bless","spill","brine","fence","drape","mossy","slime","torso","trill","march","plume","snowy","scour","cyber","comet","truce","crest","aloft","great","fifth","start","harsh","steer","homey","wordy","short","clang","basin","fault","exile","false","black","paint","covey","resin","brawl","other","combo","pithy","twang","aware","sauce","anger","edify","karma","pious","sitar","small","potty","loser","grove","noisy","decor","badly","prone","state","sepia","faint","elope","axial","treat","bread","quail","towel","ethic","swamp","boggy","aptly","stage","burly","gamut","steed","topic","budge","cruel","bathe","foggy","valor","lapis","blunt","loyal","aloud","shunt","noise","tubal","tacky","moist","gumbo","dummy","tweak","strip","bosom","polka","hovel","breed","weird","islet","repay","realm","hedge","donut","spell","snake","sieve","sulky","scary","petal","epoch","lemon","strum","awash","carry","rainy","vegan","cover","boxer","wound","cheap","bribe","pupil","drove","smirk","taboo","birch","ledge","large","decay","parry","elbow","stand","runny","jelly","bilge","circa","rifle","broad","utter","racer","spice","manly","acute","owner","ender","kitty","creak","sober","wring","poker","speed","viper","leary","honey","crave","aging","eight","flute","binge","wafer","udder","adept","synth","liken","mulch","penny","chili","patsy","creep","putty","groom","skunk","wrist","groin","inane","hatch","brush","drier","court","hover","habit","truth","weedy","month","shoot","helix","flunk","maple","point","whisk","mason","scarf","greed","logic","pager","ninja","juice","guile","snort","allow","uncut","awake","enter","power","toner","aloha","input","stink","album","swift","joker","hinge","could","fatal","exert","stick","roast","weave","icing","spire","canal","blaze","grout","ochre","rogue","sharp","sleet","amass","steep","flint","jewel","wryly","acorn","stork","spark","audit","unity","south","count","trunk","ficus","brief","actor","dogma","hotel","humid","shalt","whose","stall","torch","attic","shrub","swish","spiel","mucus","pasta","sound","lossy","plane","reset","taunt","amigo","shiny","email","ready","sight","runic","array","yeast","squat","virus","aural","bayou","verve","pride","tuber","spicy","strut","hitch","fever","aside","fleet","savvy","twirl","diary","segue","unlit","assay","pesky","elude","sully","legit","vomit","feast","waver","slyly","chick","below","bugle","stoop","bushy","dense","frond","layer","beget","rebut","dance","liter","label","prime","fancy","voter","derry","chill","lamia","clone","crone","fella","fugue","dirge","tunic","scape","widow","extol","shrug","clown","ninth","mango","maxim","joint","knoll","surge","sprig","oxide","usher","enemy","guess","crazy","patio","pouch","meany","flush","crook","privy","first","laser","cinch","blimp","stiff","grave","saint","stump","strap","recur","spree","pilot","crass","shyly","blurt","chest","morse","stone","minus","local","frill","seize","lodge","glove","tango","board","rugby","psalm","knave","grimy","chair","frame","place","batch","shaky","peril","baron","colby","drain","peach","unite","halve","smack","silty","eject","mania","toddy","fixer","inept","mouse","smart","ranch","using","alike","sword","teeth","stray","dying","shout","style","flask","coder","regal","oddly","levee","apron","mince","clock","digit","diner","prior","clout","moose","scaly","gruel","hilly","cater","rocky","token","heady","niche","holly","stoic","pivot","trick","blend","stoat","usage","easel","dread","blade","talon","vodka","clove","clamp","older","tween","hairy","latch","grail","forte","rural","trial","spike","order","cubby","salsa","troll","naive","meter","liner","stomp","rumor","camel","disco","bliss","tease","scoop","cabin","genie","agree","inbox","haven","whack","revue","agape","toast","thank","terse","tardy","finer","mocha","yield","crowd"],Nt=Object.defineProperty,Ht=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Ze=(t,e,a)=>e in t?Nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,w=(t,e)=>{for(var a in e||(e={}))ot.call(e,a)&&Ze(t,a,e[a]);if(se)for(var a of se(e))nt.call(e,a)&&Ze(t,a,e[a]);return t},O=(t,e)=>Ht(t,Vt(e)),ve=(t,e)=>{var a={};for(var r in t)ot.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&se)for(var r of se(t))e.indexOf(r)<0&&nt.call(t,r)&&(a[r]=t[r]);return a},Qe=({parser:t,key:e,params:a,translations:r,locale:s,fallbackLocale:o})=>{if(!(e&&s))return console.warn("[i18n]: No translation key or locale provided. Skipping translation..."),"";let i=(r[s]||{})[e];return o&&i===void 0&&(i=(r[o]||{})[e]),t.parse(i,a,s,e)},T=(...t)=>t.length?t.filter(e=>!!e).map(e=>{let a=`${e}`.toLowerCase();try{if([a]=Intl.Collator.supportedLocalesOf(e),!a)throw new Error(`[i18n]: '${e}' is non-standard.`)}catch{console.warn(`[i18n]: Non-standard locale provided: '${e}'. Check your 'translations' and 'loaders' in i18n config...`)}return a}):[],We=(t,e)=>Object.keys(t||{}).reduce((a,r)=>{let s=t[r],o=e?`${e}.${r}`:`${r}`;return s&&typeof s=="object"?w(w({},a),We(s,o)):O(w({},a),{[o]:s})},{}),Ft=async t=>{try{return(await Promise.all(t.map(e=>{var a=e,{loader:r}=a,s=ve(a,["loader"]);return new Promise(async o=>{let i;try{i=await r()}catch(l){console.error(`[i18n]: Failed to load translation. Verify your '${s.locale}' > '${s.key}' Loader.`),console.error(l)}o(O(w({loader:r},s),{data:i}))})}))).reduce((e,{key:a,data:r,locale:s})=>{if(!r)return e;let[o]=T(s);return O(w({},e),{[o]:We(O(w({},e[o]||{}),{[a]:r}))})},{})}catch(e){console.error(e)}return{}},Bt=t=>e=>{try{if(typeof e=="string")return e===t;if(typeof e=="object")return e.test(t)}catch{throw new Error("[i18n]: Invalid route config!")}return!1},Kt=(t,e)=>{let a=!0;try{a=Object.keys(t).filter(r=>t[r]!==void 0).every(r=>t[r]===e[r])}catch{}return a},Ye=1e3*60*60*24,Jt=class{constructor(t){this.cachedAt=0,this.loadedKeys={},this.currentRoute=p(),this.config=p(),this.isLoading=p(!1),this.promises=new Set,this.loading={subscribe:this.isLoading.subscribe,toPromise:(e,a)=>{let r=Array.from(this.promises).filter(s=>Kt({locale:T(e)[0],route:a},s)).map(({promise:s})=>s);return Promise.all(r)},get:()=>n(this.isLoading)},this.privateTranslations=p({}),this.translations={subscribe:this.privateTranslations.subscribe,get:()=>n(this.translations)},this.locales=O(w({},b([this.config,this.privateTranslations],([e,a])=>{if(!e)return[];let{loaders:r=[]}=e,s=r.map(({locale:i})=>T(i)[0]),o=Object.keys(a).map(i=>T(i)[0]);return Array.from(new Set([...s,...o]))},[])),{get:()=>n(this.locales)}),this.internalLocale=p(),this.loaderTrigger=b([this.internalLocale,this.currentRoute],([e,a],r)=>{var s,o,i;e!==void 0&&a!==void 0&&(e!==((s=n(this.loaderTrigger))==null?void 0:s[0])||a!==((o=n(this.loaderTrigger))==null?void 0:o[1]))&&((i=n(this.config))!=null&&i.debug&&console.debug("[i18n]: Triggering translation load..."),r([e,a]))},[]),this.localeHelper=p(),this.locale={subscribe:this.localeHelper.subscribe,forceSet:this.localeHelper.set,set:this.internalLocale.set,update:this.internalLocale.update,get:()=>n(this.locale)},this.initialized=b([this.locale,this.currentRoute,this.privateTranslations],([e,a,r],s)=>{n(this.initialized)||s(e!==void 0&&a!==void 0&&!!Object.keys(r).length)}),this.translation=b([this.privateTranslations,this.locale,this.isLoading],([e,a,r],s)=>{let o=e[a];o&&Object.keys(o).length&&!r&&s(o)},{}),this.t=O(w({},b([this.config,this.translation],([{parser:e,fallbackLocale:a}])=>(r,...s)=>Qe({parser:e,key:r,params:s,translations:this.translations.get(),locale:this.locale.get(),fallbackLocale:a}))),{get:(e,...a)=>n(this.t)(e,...a)}),this.l=O(w({},b([this.config,this.translations],([{parser:e,fallbackLocale:a},r])=>(s,o,...i)=>Qe({parser:e,key:o,params:i,translations:r,locale:s,fallbackLocale:a}))),{get:(e,a,...r)=>n(this.l)(e,a,...r)}),this.getLocale=e=>{if(!e)return"";let a=this.locales.get().find(r=>r===T(e)[0])||"";return T(a)[0]||""},this.setLocale=e=>{var a;if(!e)return;let[r]=T(e);if(r!==n(this.internalLocale))return(a=n(this.config))!=null&&a.debug&&console.debug(`[i18n]: Setting '${r}' locale.`),this.internalLocale.set(r),this.loading.toPromise(e,n(this.currentRoute))},this.setRoute=e=>{var a;if(e!==n(this.currentRoute)){(a=n(this.config))!=null&&a.debug&&console.debug(`[i18n]: Setting '${e}' route.`),this.currentRoute.set(e);let r=n(this.internalLocale);return this.loading.toPromise(r,e)}},this.loadConfig=async e=>{await this.configLoader(e)},this.getTranslationProps=async(e=this.locale.get(),a=n(this.currentRoute))=>{let r=n(this.config);if(!r||!e)return[];let s=this.translations.get(),{loaders:o,fallbackLocale:i="",cache:l=Ye}=r||{},g=Number.isNaN(+l)?Ye:+l;this.cachedAt?Date.now()>g+this.cachedAt&&(r!=null&&r.debug&&console.debug("[i18n]: Refreshing cache."),this.loadedKeys={},this.cachedAt=0):(r!=null&&r.debug&&console.debug("[i18n]: Setting cache timestamp."),this.cachedAt=Date.now());let[c,d]=T(e,i),m=s[c],y=s[d],u=(o||[]).map(h=>{var C=h,{locale:N}=C,D=ve(C,["locale"]);return O(w({},D),{locale:T(N)[0]})}).filter(({routes:h})=>!h||(h||[]).some(Bt(a))).filter(({key:h,locale:C})=>C===c&&(!m||!(this.loadedKeys[c]||[]).includes(h))||i&&C===d&&(!y||!(this.loadedKeys[d]||[]).includes(h)));if(u.length){this.isLoading.set(!0),r!=null&&r.debug&&console.debug("[i18n]: Fetching translations...");let h=await Ft(u);this.isLoading.set(!1);let C=Object.keys(h).reduce((D,_)=>O(w({},D),{[_]:Object.keys(h[_])}),{}),N=u.filter(({key:D,locale:_})=>(C[_]||[]).some(A=>`${A}`.startsWith(D))).reduce((D,{key:_,locale:A})=>O(w({},D),{[A]:[...D[A]||[],_]}),{});return[h,N]}return[]},this.addTranslations=(e,a)=>{var r;if(!e)return;(r=n(this.config))!=null&&r.debug&&console.debug("[i18n]: Adding translations...");let s=Object.keys(e||{});this.privateTranslations.update(o=>s.reduce((i,l)=>O(w({},i),{[l]:w(w({},i[l]||{}),We(e[l]))}),o)),s.forEach(o=>{let i=Object.keys(e[o]).map(l=>`${l}`.split(".")[0]);a&&(i=a[o]),this.loadedKeys[o]=Array.from(new Set([...this.loadedKeys[o]||[],...i||[]]))})},this.loader=async([e,a])=>{var r;(r=n(this.config))!=null&&r.debug&&console.debug("[i18n]: Adding loader promise.");let s=(async()=>{let o=await this.getTranslationProps(e,a);o.length&&this.addTranslations(...o)})();this.promises.add({locale:e,route:a,promise:s}),s.then(()=>{let o=this.getLocale(e);o&&this.locale.get()!==o&&this.locale.forceSet(o)})},this.loadTranslations=(e,a=n(this.currentRoute)||"")=>{if(e)return this.setRoute(a),this.setLocale(e),this.loading.toPromise(e,a)},t&&this.loadConfig(t),this.loaderTrigger.subscribe(this.loader),this.isLoading.subscribe(async e=>{var a;e&&this.promises.size&&(await this.loading.toPromise(),this.promises.clear(),(a=n(this.config))!=null&&a.debug&&console.debug("[i18n]: Loader promises have been purged."))})}async configLoader(t){if(!t)throw new Error("[i18n]: No config provided!");let e=t,{initLocale:a,fallbackLocale:r,translations:s,debug:o}=e,i=ve(e,["initLocale","fallbackLocale","translations","debug"]);[a]=T(a),[r]=T(r),o&&console.debug("[i18n]: Setting config."),this.config.set(w({initLocale:a,fallbackLocale:r,translations:s,debug:o},i)),s&&this.addTranslations(s),await this.loadTranslations(a)}},it=Object.defineProperty,Ut=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Xe=(t,e,a)=>e in t?it(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,$=(t,e)=>{for(var a in e||(e={}))lt.call(e,a)&&Xe(t,a,e[a]);if(oe)for(var a of oe(e))ct.call(e,a)&&Xe(t,a,e[a]);return t},ut=(t,e)=>Ut(t,Zt(e)),H=(t,e)=>{var a={};for(var r in t)lt.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&oe)for(var r of oe(t))e.indexOf(r)<0&&ct.call(t,r)&&(a[r]=t[r]);return a},Qt=(t,e)=>{for(var a in e)it(t,a,{get:e[a],enumerable:!0})},dt={};Qt(dt,{ago:()=>oa,date:()=>aa,eq:()=>Me,gt:()=>ft,gte:()=>ea,lt:()=>ht,lte:()=>Xt,ne:()=>Yt,number:()=>ta});var Ge=(t,e)=>{let{modifierDefaults:a}=e||{},{[t]:r}=a||{};return r||{}},Me=({value:t,options:e=[],defaultValue:a=""})=>(e.find(({key:r})=>`${r}`.toLowerCase()===`${t}`.toLowerCase())||{}).value||a,Yt=({value:t,options:e=[],defaultValue:a=""})=>(e.find(({key:r})=>`${r}`.toLowerCase()!==`${t}`.toLowerCase())||{}).value||a,ht=({value:t,options:e=[],defaultValue:a=""})=>(e.sort((r,s)=>+r.key-+s.key).find(({key:r})=>+t<+r)||{}).value||a,ft=({value:t,options:e=[],defaultValue:a=""})=>(e.sort((r,s)=>+s.key-+r.key).find(({key:r})=>+t>+r)||{}).value||a,Xt=({value:t,options:e=[],defaultValue:a=""})=>Me({value:t,options:e,defaultValue:ht({value:t,options:e,defaultValue:a})}),ea=({value:t,options:e=[],defaultValue:a=""})=>Me({value:t,options:e,defaultValue:ft({value:t,options:e,defaultValue:a})}),ta=({value:t,props:e,defaultValue:a="",locale:r="",parserOptions:s})=>{if(!r)return"";let o=Ge("number",s),{maximumFractionDigits:i}=o,l=H(o,["maximumFractionDigits"]),g=(e==null?void 0:e.number)||{},{maximumFractionDigits:c=i||2}=g,d=H(g,["maximumFractionDigits"]);return new Intl.NumberFormat(r,$(ut($({},l),{maximumFractionDigits:c}),d)).format(+t||+a)},aa=({value:t,props:e,defaultValue:a="",locale:r="",parserOptions:s})=>{if(!r)return"";let o=H(Ge("date",s),[]),i=H((e==null?void 0:e.date)||{},[]);return new Intl.DateTimeFormat(r,$($({},o),i)).format(+t||+a)},ke=[{key:"second",multiplier:1e3},{key:"minute",multiplier:60},{key:"hour",multiplier:60},{key:"day",multiplier:24},{key:"week",multiplier:7},{key:"month",multiplier:13/3},{key:"year",multiplier:12}],gt=(t="",e="")=>new RegExp(`^${t}s?$`).test(e),ra=t=>ke.indexOf(ke.find(({key:e})=>gt(e,t))),sa=(t,e)=>ke.reduce(([a,r],{key:s,multiplier:o},i)=>{if(gt(r,e))return[a,r];if(!r||i===ra(r)+1){let l=Math.round(a/o);if(!r||Math.abs(l)>=1||e!=="auto")return[l,s]}return[a,r]},[t,""]),oa=({value:t,defaultValue:e="",locale:a="",props:r,parserOptions:s})=>{if(!a)return"";let o=Ge("ago",s),{format:i,numeric:l}=o,g=H(o,["format","numeric"]),c=(r==null?void 0:r.ago)||{},{format:d=i||"auto",numeric:m=l||"auto"}=c,y=H(c,["format","numeric"]),u=+t||+e,h=sa(u,d);return new Intl.RelativeTimeFormat(a,$(ut($({},g),{numeric:m}),y)).format(...h)},na=t=>typeof t=="string"&&/{{(?:(?!{{|}}).)+}}/.test(t),Le=t=>typeof t=="string"?t.replace(/\\(?=:|;|{|})/g,""):t,ia=({value:t,props:e,payload:a,parserOptions:r,locale:s})=>`${t}`.replace(/{{\s*(?:(?!{{|}}).)+\s*}}/g,o=>{let i=Le(`${o.match(/(?!{|\s).+?(?!\\[:;]).(?=\s*(?:[:;]|}}$))/)}`),l=a==null?void 0:a[i],[,g=""]=o.match(/.+?(?!\\;).;\s*default\s*:\s*([^\s:;].+?(?:\\[:;]|[^;\s}])*)(?=\s*(?:;|}}$))/i)||[];g=g||(a==null?void 0:a.default)||"";let[,c=""]=o.match(/{{\s*(?:[^;]|(?:\\;))+\s*(?:(?!\\:).[:])\s*(?!\s)((?:\\;|[^;])+?)(?=\s*(?:[;]|}}$))/i)||[];if(l===void 0&&c!=="ne")return g;let d=!!c,{customModifiers:m}=r||{},y=$($({},dt),m||{});c=Object.keys(y).includes(c)?c:"eq";let u=y[c],h=(o.match(/[^\s:;{](?:[^;]|\\[;])+[^\s:;}]/gi)||[]).reduce((C,N,D)=>{if(D>0){let _=Le(`${N.match(/(?:(?:\\:)|[^:])+/)}`.trim()),A=`${N.match(/(?:(?:\\:)|[^:])+$/)}`.trim();if(_&&_!=="default"&&A)return[...C,{key:_,value:A}]}return C},[]);return!d&&!h.length?l:u({value:l,options:h,props:e,defaultValue:g,locale:s,parserOptions:r})}),pt=({value:t,props:e,payload:a,parserOptions:r,locale:s})=>{if(na(t)){let o=ia({value:t,payload:a,props:e,parserOptions:r,locale:s});return pt({value:o,payload:a,props:e,parserOptions:r,locale:s})}else return Le(t)},la=t=>({parse:(e,[a,r],s,o)=>((a==null?void 0:a.default)&&e===void 0&&(e=`${a.default}`),e===void 0&&(e=`${o}`),pt({value:e,payload:a,props:r,parserOptions:t,locale:s}))}),ca=la,ua=Object.defineProperty,da=Object.defineProperties,ha=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,et=(t,e,a)=>e in t?ua(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,fa=(t,e)=>{for(var a in e||(e={}))yt.call(e,a)&&et(t,a,e[a]);if(ne)for(var a of ne(e))mt.call(e,a)&&et(t,a,e[a]);return t},ga=(t,e)=>da(t,ha(e)),pa=(t,e)=>{var a={};for(var r in t)yt.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&ne)for(var r of ne(t))e.indexOf(r)<0&&mt.call(t,r)&&(a[r]=t[r]);return a},tt=t=>{var e=t,{parserOptions:a={}}=e,r=pa(e,["parserOptions"]);return ga(fa({},r),{parser:ca(a)})},ya=class extends Jt{constructor(t){super(t&&tt(t)),this.loadConfig=e=>super.configLoader(tt(e))}},ma=ya;const ba="English",wa="Fran\xE7aise",va="Espa\xF1ol",ka="Deutsche",La="Portugues do Brasil",Ta="Nederlands",Oa="T\xFCrk\xE7e",Ca="Polski";var j={en:ba,fr:wa,es:va,de:ka,pt:La,nl:Ta,tr:Oa,pl:Ca};const Da={translations:{en:{lang:j},fr:{lang:j},nl:{lang:j},es:{lang:j},pt:{lang:j},tr:{lang:j},de:{lang:j},pl:{lang:j}},loaders:[{locale:"en",key:"main",loader:async()=>(await x(()=>import("./main-dfcfa39e.js"),[])).default},{locale:"fr",key:"main",loader:async()=>(await x(()=>import("./main-8a7726b1.js"),[])).default},{locale:"nl",key:"main",loader:async()=>(await x(()=>import("./main-91b82818.js"),[])).default},{locale:"es",key:"main",loader:async()=>(await x(()=>import("./main-dacf71fb.js"),[])).default},{locale:"pt",key:"main",loader:async()=>(await x(()=>import("./main-e5bf33b6.js"),[])).default},{locale:"tr",key:"main",loader:async()=>(await x(()=>import("./main-333310b1.js"),[])).default},{locale:"de",key:"main",loader:async()=>(await x(()=>import("./main-1def4445.js"),[])).default},{locale:"pl",key:"main",loader:async()=>(await x(()=>import("./main-a3d7e585.js"),[])).default}]};function or(){return!navigator||!navigator.language?"en":navigator.language.startsWith("fr")?"fr":navigator.language.startsWith("nl")?"nl":navigator.language.startsWith("es")?"es":navigator.language.startsWith("pt")?"pt":navigator.language.startsWith("tr")?"tr":navigator.language.startsWith("de")?"de":navigator.language.startsWith("pl")?"pl":"en"}const{t:J,loading:nr,locales:ir,locale:lr,loadTranslations:cr,translations:ur}=new ma(Da);function _a(t,e,a){const r=/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(location.hostname)||location.protocol==="file:";if(!e.trackLocalhost&&r)return console.warn("[Plausible] Ignoring event because website is running locally");if(localStorage.getItem("plausible_ignore")==="true")return console.warn('[Plausible] Ignoring event because "plausible_ignore" is set to "true" in localStorage');const o={n:t,u:e.url,d:e.domain,r:e.referrer,w:e.deviceWidth,h:e.hashMode?1:0,p:a&&a.props?JSON.stringify(a.props):void 0},i=new XMLHttpRequest;i.open("POST",`${e.apiHost}/api/event`,!0),i.setRequestHeader("Content-Type","text/plain"),i.send(JSON.stringify(o)),i.onreadystatechange=()=>{i.readyState===4&&a&&a.callback&&a.callback()}}function Sa(t){const e=()=>v({hashMode:!1,trackLocalhost:!1,url:location.href,domain:location.hostname,referrer:document.referrer||null,deviceWidth:window.innerWidth,apiHost:"https://plausible.io"},t),a=(i,l,g)=>{_a(i,v(v({},e()),g),l)},r=(i,l)=>{a("pageview",l,i)};return{trackEvent:a,trackPageview:r,enableAutoPageviews:()=>{const i=()=>r(),l=history.pushState;return l&&(history.pushState=function(g,c,d){l.apply(this,[g,c,d]),i()},addEventListener("popstate",i)),t&&t.hashMode&&addEventListener("hashchange",i),r(),function(){l&&(history.pushState=l,removeEventListener("popstate",i)),t&&t.hashMode&&removeEventListener("hashchange",i)}},enableAutoOutboundTracking:(i=document,l={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function g(u){a("Outbound Link: Click",{props:{url:this.href}}),typeof process!="undefined"&&process,setTimeout(()=>{location.href=this.href},150),u.preventDefault()}const c=new Set;function d(u){u instanceof HTMLAnchorElement?u.host!==location.host&&(u.addEventListener("click",g),c.add(u)):"querySelectorAll"in u&&u.querySelectorAll("a").forEach(d)}function m(u){u instanceof HTMLAnchorElement?(u.removeEventListener("click",g),c.delete(u)):"querySelectorAll"in u&&u.querySelectorAll("a").forEach(m)}const y=new MutationObserver(u=>{u.forEach(h=>{h.type==="attributes"?(m(h.target),d(h.target)):h.type==="childList"&&(h.addedNodes.forEach(d),h.removedNodes.forEach(m))})});return i.querySelectorAll("a").forEach(d),y.observe(i,l),function(){c.forEach(h=>{h.removeEventListener("click",g)}),c.clear(),y.disconnect()}}}}const at=Sa({domain:"vegeta897.github.io/word-peaks",apiHost:"https://plausible.pixelatomy.com"}),dr=()=>bt("pageview"),re=t=>bt(t);function bt(t){try{t==="pageview"?at.trackPageview():at.trackEvent(t)}catch(e){console.warn(`Failed to track ${t}`,e)}}const xa={duration:4e3,initial:1,next:0,pausable:!1,dismissable:!0,reversed:!1,intro:{x:256},theme:{}},Ra=()=>{const{subscribe:t,update:e}=p([]);let a=0;const r={},s=c=>c instanceof Object;return{subscribe:t,push:(c,d={})=>{const m=v({target:"default"},s(c)?c:ae(v({},d),{msg:c})),y=r[m.target]||{},u=ae(v(v(v({},xa),y),m),{theme:v(v({},y.theme),m.theme),id:++a});return e(h=>u.reversed?[...h,u]:[u,...h]),a},pop:c=>{e(d=>{if(!d.length||c===0)return[];if(s(c))return d.filter(y=>c(y));const m=c||Math.max(...d.map(y=>y.id));return d.filter(y=>y.id!==m)})},set:(c,d={})=>{const m=s(c)?v({},c):ae(v({},d),{id:c});e(y=>{const u=y.findIndex(h=>h.id===m.id);return u>-1&&(y[u]=v(v({},y[u]),m)),y})},_init:(c="default",d={})=>(r[c]=d,r)}},Te=Ra();const E=6,R=5,q="abcdefghijklmnopqrstuvwxyz".split(""),Ea=["alphabetic","qwerty","azerty","qwertz","dvorak","colemak","alphabetic_reversed"],hr=[{value:"alphabetic",label:"Alphabetic",layout:[["a","b","c","d","e","f","g","h","i","j"],["k","l","m","n","o","p","q","r","s","t"],["u","v","w","x","y","z"]],wideKeysRow:2},{value:"qwerty",label:"QWERTY",layout:[["q","w","e","r","t","y","u","i","o","p"],["a","s","d","f","g","h","j","k","l"],["z","x","c","v","b","n","m"]],wideKeysRow:2},{value:"azerty",label:"AZERTY",layout:[["a","z","e","r","t","y","u","i","o","p"],["q","s","d","f","g","h","j","k","l","m"],["z","x","c","v","b","n"]],wideKeysRow:2},{value:"qwertz",label:"QWERTZ",layout:[["q","w","e","r","t","z","u","i","o","p"],["a","s","d","f","g","h","j","k","l"],["y","x","c","v","b","n","m"]],wideKeysRow:2},{value:"dvorak",label:"Dvorak",layout:[["p","y","f","g","c","r","l"],["a","o","e","u","i","d","h","t","n","s"],["q","j","k","x","b","m","w","v","z"]],wideKeysRow:0},{value:"colemak",label:"Colemak",layout:[["q","w","f","p","g","j","l","u","y"],["a","r","s","t","d","h","n","e","i","o"],["z","x","c","v","b","k","m"]],wideKeysRow:2},{value:"alphabetic_reversed",label:"Alphabetic (reversed)",layout:[["z","y","x","w","v","u","t","s","r","q"],["p","o","n","m","l","k","j","i","h","g"],["f","e","d","c","b","a"]],wideKeysRow:2}],fr="M32.34 0c-3 0-4.83 2.59-5.41 5.67l-.82 4.26a30.24 30.24 0 0 0-6.64 3.84l-4.09-1.42c-2.68-.93-6.12-.75-7.62 1.85l-5.41 9.38c-1.5 2.59-.16 5.46 2.2 7.52l3.27 2.84a30.24 30.24 0 0 0-.26 3.85 30.24 30.24 0 0 0 .26 3.82l-3.28 2.84c-2.15 1.85-3.7 4.92-2.2 7.52l5.41 9.37c1.5 2.6 4.65 2.88 7.61 1.86l4.07-1.41a30.24 30.24 0 0 0 6.68 3.87l.82 4.26c.53 2.79 2.41 5.67 5.41 5.67h10.82c3 0 4.82-2.59 5.42-5.67l.81-4.22a30.24 30.24 0 0 0 6.74-3.88l4.07 1.4c2.85.99 6.11.75 7.61-1.85L73.23 52c1.5-2.6.17-5.48-2.21-7.53l-3.25-2.81a30.24 30.24 0 0 0 .26-3.87 30.24 30.24 0 0 0-.25-3.91l3.23-2.81c2.28-1.98 3.7-4.93 2.2-7.52l-5.41-9.38c-1.5-2.6-4.66-2.88-7.62-1.85l-4.07 1.42a30.24 30.24 0 0 0-6.72-3.87l-.81-4.2C48 2.71 46.16 0 43.16 0H32.34zm5.45 20.98a16.82 16.82 0 1 1 0 33.64 16.82 16.82 0 1 1 0-33.64z",gr="M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z",pr="M221.95,51.29c0.15,2.17,0.15,4.34,0.15,6.53c0,66.73-50.8,143.69-143.69,143.69v-0.04 C50.97,201.51,24.1,193.65,1,178.83c3.99,0.48,8,0.72,12.02,0.73c22.74,0.02,44.83-7.61,62.72-21.66 c-21.61-0.41-40.56-14.5-47.18-35.07c7.57,1.46,15.37,1.16,22.8-0.87C27.8,117.2,10.85,96.5,10.85,72.46c0-0.22,0-0.43,0-0.64 c7.02,3.91,14.88,6.08,22.92,6.32C11.58,63.31,4.74,33.79,18.14,10.71c25.64,31.55,63.47,50.73,104.08,52.76 c-4.07-17.54,1.49-35.92,14.61-48.25c20.34-19.12,52.33-18.14,71.45,2.19c11.31-2.23,22.15-6.38,32.07-12.26 c-3.77,11.69-11.66,21.62-22.2,27.93c10.01-1.18,19.79-3.86,29-7.95C240.37,35.29,231.83,44.14,221.95,51.29z";function wt(){P.set(Lt()),fe[n(k)==="daily"?"guessTimesDaily":"guessTimesRandom"].set([])}function vt(){Te.pop(),L.set(0),Q.set(!1),Y.set(!1),Z.set(!1),F.set(!1)}function yr(t){if(n(S))return;Oe().catch(r=>{U(n(J)("main.messages.need_reload"),()=>{},8e3)});const e=n(L);if(e===R)return;const a=n(M);if(a===0&&e===0&&xt(a),P.update(r=>{const s=r[a][e],[o,i]=Ot(n(jt));return s.polarity=0,t&&ti&&(s.polarity=1),s.letter=t,r}),F.set(!1),Y.set(!1),t||es+1);const r=Ie(n(P)[a]);r.length===R&&Oe().then(async()=>{r!==n(G)&&!await kt(r)&&Y.set(!0)})}}function mr(t=!0){n(S)||(P.update(e=>{let a=e[n(M)][n(L)];return t&&n(L)>0&&!(a!=null&&a.letter)&&(L.update(r=>r-1),a=e[n(M)][n(L)]),a.letter="",a.polarity=0,e}),Z.set(!1),F.set(!1),Q.set(!1),Y.set(!1))}function br(t){if(n(S))return;const e=n(L)+t;e<0||e>=R||L.update(a=>a+t)}let z=!1;async function wr(){if(z||n(S))return;z=!0;const t=n(M);if(!Aa(n(P),t)){F.set(!0),U(n(J)("main.messages.not_enough_letters"),()=>F.set(!1)),z=!1;return}const e=n(P)[t],a=Ie(e);let r;try{r=await kt(a)}catch{U(n(J)("main.messages.need_reload"),()=>{},8e3),z=!1;return}if(a!==n(G)&&!r){Q.set(!0),U(n(J)("main.messages.invalid_word"),()=>Q.set(!1)),z=!1;return}if(n(De)&&t>0&&e.some(o=>o.lettero.letterBounds[1])){Z.set(!0),U(n(J)("main.messages.use_valid_letters"),()=>Z.set(!1)),z=!1;return}re("submitGuess"),xt(t+1),Pt(o=>[...o,a]);const s=n(k);if(qt.set(!0),n(S)){const o=n(Ve);re(o?"gameWon":"gameLost"),s==="daily"&&re("dailyFinish"),n(ze)&&re("firstFinish"),ze.set(!1),fe[s==="daily"?"lastPlayedDailyWasHard":"lastPlayedRandomWasHard"].set(n(De)),setTimeout(()=>{pe.set(!0),o&&ye.set(!0)},6*150+250),Ga(o)}else L.set(0);z=!1}const U=(t,e,a)=>{Te.pop();const r={theme:{"--toastBackground":"var(--error-color)"}};e&&(r.onpop=e),a!==void 0&&(r.duration=a),Te.push(t,r)};function vr(t){return Math.random()i+l,0),s=Pa(0,r,a);let o=0;for(let i=0;i`${t}:${e}`,$a=[[-1,0],[1,0],[0,-1],[0,1]],Or=(t,e)=>$a.map(([a,r])=>[t+a,e+r]),Cr=(t,e)=>Math.sqrt(t**2+e**2),Dr=t=>new Promise(e=>setTimeout(e,t));let ie;async function Oe(){ie||(ie=(await x(()=>import("./dictionary-filtered-ee243395.js"),[])).default)}async function kt(t){return ie||await Oe(),ie.includes(t)}function _r(){k.set("daily"),history.pushState("",document.title,window.location.pathname+window.location.search);const t=rt(),e=za(t);(n(X)!==rt()||n(W)!==e)&&(wt(),B.set([]),X.set(t),W.set(e)),vt();const r=n(S);pe.set(r),ye.set(r),Be.set(!0),Ke.set(!1)}function Sr(t){k.set("random");const e=n(V),a=t&&t!==e||!e,r=a?t||Wa():e,s=Dt(r);history.pushState("",document.title,window.location.pathname+`#${s}`+window.location.search),a&&(wt(),te.set([]),V.set(r)),vt();const o=n(S);pe.set(o),ye.set(o),Be.set(!0),Ke.set(!1)}function Lt(){const t=[];for(let e=0;e0?1:-1;return{id:a,scored:!0,distance:r,polarity:s,letter:t}}function Tt(t,e,a){if(a===R)return new Set;const r=new Set(q);return q.forEach(s=>{if(!!r.has(s))for(let o=0;o0&&s>=i.letter&&r.delete(s)}}),r}function Ie(t){return t.map(e=>e.letter).join("")}function Ot(t){return[q.find(e=>t.has(e)),[...q].reverse().find(e=>t.has(e))]}function Aa(t,e){const a=Ie(t[e]);return!(a.length{let t=0;const e=new Date(Ct),a=new Date;for(a.setHours(0,0,0,0);e{const e=new Date(Ct);let a=new Date(e);return a.setDate(e.getDate()+t+1),a},Wa=()=>ja(we);function Dt(t){let e=0;for(const[a,r]of[...t].entries())e+=q.indexOf(r)<>a*5];return e.length===5&&e}const _t=()=>({currentStreak:0,bestStreak:0,totalGames:0,wonGames:0,distribution:new Array(E).fill(0)}),Ce=()=>({gameCount:0,guessTotals:new Array(E).fill(0),guessCounts:new Array(E).fill(0),fastestGame:0}),St=t=>t[t.length-1]-t[0];function Ga(t){const e=n(k);let a=!1;e==="daily"&&(a=t&&St(n(ge)){const o=t?s.currentStreak+1:0,i=[...s.distribution];return i[e-1]++,{currentStreak:o,bestStreak:o>s.bestStreak?o:s.bestStreak,totalGames:s.totalGames+1,wonGames:s.wonGames+(t?1:0),distribution:i}});const a=n(ge),r=St(a);ee.update(s=>{const o=s.guessTotals.map((i,l)=>ll(e[t]=new Date().getTime(),e))}const W=f("wp-answer",""),V=f("wp-answerRandom",""),B=f("wp-guesses",[]),te=f("wp-guessesRandom",[]),le=f("wp-lastPlayedWasHard",!1),ce=f("wp-lastPlayedRandomWasHard",!1),Rt=f("wp-hardMode",!1),De=b(Rt,t=>t),Na=t=>{if(!n(S)&&n(I).length>0)throw"Can't change that during a game!";Rt.set(t)},k=p("daily"),Et=b([k,le,ce],([t,e,a])=>t==="daily"?e:a),Z=p(!1),F=p(!1),Q=p(!1),Y=p(!1),P=p([]),G=b([k,W,V],([t,e,a])=>t==="daily"?e:a),I=b([k,B,te],([t,e,a])=>t==="daily"?e:a);function Pt(t){(n(k)==="daily"?B:te).update(t)}const Ne=f("wp-guessTimesDaily",[]),He=f("wp-guessTimesRandom",[]),ge=b([k,Ne,He],([t,e,a])=>t==="daily"?e:a),M=b(I,t=>t.length),L=p(0),Ve=b([G,I],([t,e])=>e.length>0&&e[e.length-1]===t),S=b([M,Ve],([t,e])=>e||t===E),jt=b([P,M,L,S],([t,e,a,r])=>r?new Set:Tt(t,e,a));function Ha(){I.subscribe(t=>{P.update(()=>{const e=Lt();if(t.length===0)return e;for(let a=0;aqa(s,n(G),o))}else a>0&&a===t.length&&e[a].forEach((r,s)=>{r.letterBounds=Ot(Tt(e,a,s))});return e})})}const Fe=f("wp-version",0),Va=f("wp-locale",""),Fa=p(null),_e=f("wp-highContrast",!1),Se=f("wp-showAllHints",!1),xe=f("wp-swapEnterBackspace",!1),Re=f("wp-keyboardLayout","alphabetic"),Ee=f("wp-dyslexicFont",!1),Pe=f("wp-allowDancing",!0),je=f("wp-hideLandscape",!1),$e=f("wp-shareURL",!0),qe=f("wp-shareTimes",!1),Ba=f("wp-hideArrows",!1),Ae=f("wp-preciseTimes",!1),$t=f("wp-tileSharpness",.72),Ka=b([$t],([t])=>t<=1?`${14+t*36}%`:`50% ${50+(t-1)*36}%`),X=f("wp-lastPlayedDaily",-1),ue=f("wp-stats",_t()),ee=f("wp-timeStats",Ce()),de=f("wp-lastDailyDetail",null),he=f("wp-lastRandomDetail",null),Ja=b([k,de,he],([t,e,a])=>t==="daily"?e:a),pe=p(!1),Ua=p([]),Za=p(),Qa=p(),Be=p(!1),qt=p(!1),Ke=p(!1),ye=p(!1),Ya=p(!1),Xa=p(null),ze=p(!1),er=f("wp-dismissPromo",0),K=t=>!t||typeof t!="string"&&!(t instanceof String)||t.length!==R,be=(t,e)=>{if(!Array.isArray(t)||t.length!==E)return e;for(let a=0;a=0||(t[a]=0);return t};function tr(){[!0,!1].includes(n(_e))||_e.set(!1),[!0,!1].includes(n(Se))||Se.set(!1),[!0,!1].includes(n(xe))||xe.set(!1),[!0,!1].includes(n(Ee))||Ee.set(!1),[!0,!1].includes(n(je))||je.set(!1),[!0,!1].includes(n(Pe))||Pe.set(!0),[!0,!1].includes(n($e))||$e.set(!0),[!0,!1].includes(n(qe))||qe.set(!1),[!0,!1].includes(n(Ae))||Ae.set(!1),Ea.includes(n(Re))||Re.set("alphabetic");const t=n(ue);t.currentStreak>=0||(t.currentStreak=0),t.bestStreak>=0||(t.bestStreak=0),t.totalGames>=0||(t.totalGames=0),t.wonGames>=0||(t.wonGames=0),t.distribution=be(t.distribution,_t().distribution),ue.set(t);const e=n(ee);e.gameCount>=0||(e.gameCount=0),e.fastestGame>=0||(e.fastestGame=0),e.guessTotals=be(e.guessTotals,Ce().guessTotals),e.guessCounts=be(e.guessCounts,Ce().guessCounts),ee.set(e),[["daily",n(de)],["random",n(he)]].forEach(([s,o])=>{if(o!==null)try{if(o.mode!==s)throw"wrong mode";if(!(o.dayNumber>=0))throw"invalid day number";if(![!0,!1].includes(o.hardMode))throw"invalid hard mode setting";if(K(o.answer))throw"invalid answer";if(!Array.isArray(o.guesses)||o.guesses.length<1||o.guesses.length>E)throw"invalid guesses array";if(o.guesses.some(K))throw"invalid guess(es)";if(!Array.isArray(o.guessTimes)||o.guessTimes.length!==o.guesses.length+1)throw"invalid guessTimes array";const i=new Date().getTime();for(let l=0;l=i-1e12))throw"invalid guess time"}catch{s==="daily"?de.set(null):he.set(null)}}),K(n(W))&&W.set(""),K(n(V))&&V.set(""),[!0,!1].includes(n(le))||le.set(!1),[!0,!1].includes(n(ce))||ce.set(!1),[[B,Ne],[te,He]].forEach(([s,o])=>{try{if(!Array.isArray(n(s))||n(s).length>E||n(s).some(K))throw"invalid guess(es)";if(!Array.isArray(n(o))||n(o).length!==n(s).length+1)throw"invalid guessTimes array";const i=new Date().getTime();for(let l=0;l=i-1e12))throw"invalid guess time"}catch{s.set([]),o.set([])}})}const At=1,st=n(Fe);(!st||st<1)&&(X.set(-1),W.set(""),B.set([]));Fe.set(At);tr();export{Re as $,Q as A,F as B,Z as C,S as D,Y as E,L as F,J as G,Za as H,Ua as I,Fa as J,Pe as K,re as L,$e as M,qe as N,Ba as O,xr as P,Ve as Q,E as R,I as S,Ja as T,Et as U,$t as V,R as W,ye as X,Sr as Y,Wa as Z,_r as _,dr as a,xe as a0,jt as a1,hr as a2,wr as a3,mr as a4,br as a5,q as a6,yr as a7,pe as a8,k as a9,ue as aa,ee as ab,ze as ac,j as ad,je as ae,Ae as af,Na as ag,De as ah,gr as ai,pr as aj,fr as ak,Rr as al,W as am,V as an,Ha as ao,Dt as ap,At as aq,de as ar,Dr as as,ja as at,vr as au,cr as b,X as c,Ee as d,Ka as e,fe as f,or as g,_e as h,Or as i,Cr as j,kr as k,ir as l,Pa as m,Be as n,Ke as o,qt as p,Ya as q,Lr as r,Va as s,Te as t,M as u,G as v,P as w,Tr as x,Qa as y,Xa as z}; diff --git a/_app/chunks/share-c6a42f06.js b/_app/chunks/share-84c0610e.js similarity index 97% rename from _app/chunks/share-c6a42f06.js rename to _app/chunks/share-84c0610e.js index b4bd9ae..bd90012 100644 --- a/_app/chunks/share-c6a42f06.js +++ b/_app/chunks/share-84c0610e.js @@ -1,2 +1,2 @@ -import{t as P}from"./index-0686f894.js";function D({gameWon:e,guesses:n,gameMode:d,hardMode:o,day:h}){const u=e?n.length:"X",g=d==="random"?"\u221E ":`#${h} `,s=`${u}/6${o?"*":""}`;return`${I()?"Word Leaks":"Word Peaks"} ${g}${s}`}function k({guesses:e,answer:n,guessTimes:d,hideArrows:o}){let h;d&&(h=F(d));const u=I()?"\u{1F4A7}":"\u{1F53D}";return" "+e.map((g,s)=>[...g].map((p,w)=>p===n[w]?"\u{1F7E9}":o?"\u{1F7EA}":p>n[w]?u:"\u{1F53C}").join("")+(d?" "+d[s].padStart(h):"")).join(` +import{t as P}from"./index-cbb289a9.js";function D({gameWon:e,guesses:n,gameMode:d,hardMode:o,day:h}){const u=e?n.length:"X",g=d==="random"?"\u221E ":`#${h} `,s=`${u}/6${o?"*":""}`;return`${I()?"Word Leaks":"Word Peaks"} ${g}${s}`}function k({guesses:e,answer:n,guessTimes:d,hideArrows:o}){let h;d&&(h=F(d));const u=I()?"\u{1F4A7}":"\u{1F53D}";return" "+e.map((g,s)=>[...g].map((p,w)=>p===n[w]?"\u{1F7E9}":o?"\u{1F7EA}":p>n[w]?u:"\u{1F53C}").join("")+(d?" "+d[s].padStart(h):"")).join(` `)}function j(e){return P.pop(),navigator.clipboard.writeText(e)}async function T(e){await navigator.clipboard.write([new ClipboardItem({[e.type]:e})])}async function W(e,n){const o={files:[new File([e],`word-peaks-${n}.png`,{type:e.type,lastModified:new Date().getTime()})]};navigator.share&&await navigator.share(o)}const S=88;function y(e,{highContrast:n,boardContent:d,guesses:o,caption:h,guessTimes:u,totalTime:g,showURL:s,hash:p,hideArrows:w,tileSharpness:A}){if(!e)return;e.width=504+(u?F(u)*28+6:0),e.style.maxWidth=`min(100%, ${Math.round(e.width/2)}px)`,e.height=o.length*100+60+(s?44:0);const t=e.getContext("2d");t.fillStyle=n?"#161a25":"#312236",t.fillRect(0,0,e.width,e.height);const R=(i,a,c,r,f,l)=>{l=l!=null?l:f,t.beginPath(),Math.max(f,l)>r*.5?l>f?(t.ellipse(i+c/2,a+(r-l),c/2,l,0,Math.PI,0,!0),t.arcTo(i+c,a,i,a,f),t.arcTo(i,a,i,a+r,f)):(t.ellipse(i+c/2,a+f,c/2,f,0,Math.PI,0),t.arcTo(i+c,a+r,i,a+r,l),t.arcTo(i,a+r,i,a,l)):(t.moveTo(i+f,a),t.arcTo(i+c,a,i+c,a+r,f),t.arcTo(i+c,a+r,i,a+r,l),t.arcTo(i,a+r,i,a,l),t.arcTo(i,a,i+c,a,f)),t.closePath(),t.fill()};t.font="50px Arial",t.textAlign="right",t.textBaseline="middle";const $=S*(A<=1?.14+A*.36:.5+(A-1)*.36);if(d.forEach((i,a)=>{a>=o.length||(i.forEach((c,r)=>{let f=S*.14,l=S*.14;const E=c.distance===0;E||w?t.fillStyle=E?n?"#64ba2e":"#15a850":"#a640c7":c.distance>0?(t.fillStyle="#567de8",l=$):(t.fillStyle=n?"#da3f8b":"#e38f2f",f=$);const x=8+r*100,M=8+a*100;R(x,M,S,S,f,l)}),u&&(t.fillStyle="#a7a1a9",t.fillText(u[a],e.width-6,a*100+55)))}),t.textBaseline="alphabetic",t.fillStyle="#cccccc",g&&t.fillText(g,e.width-6,o.length*100+44),t.font="40px Arial",t.textAlign=g?"left":"center",t.fillText(h,g?8:e.width/2,o.length*100+44),s){t.font="40px Arial";let i="wordpeaks.com";p&&(i+="/#"+p),t.fillStyle="#a7a1a9",t.fillText(i,g?8:e.width/2,o.length*100+92)}}const F=e=>e.reduce((n,d)=>n===null||n.length{const e=new Date;return e.getMonth()===3&&e.getDate()===1};export{I as a,k as b,j as c,y as d,T as e,D as g,W as s}; diff --git a/_app/manifest.json b/_app/manifest.json index d3c754f..0a309ea 100644 --- a/_app/manifest.json +++ b/_app/manifest.json @@ -1,6 +1,6 @@ { ".svelte-kit/runtime/client/start.js": { - "file": "start-51802848.js", + "file": "start-744ec40c.js", "src": ".svelte-kit/runtime/client/start.js", "isEntry": true, "imports": [ @@ -13,23 +13,23 @@ "src/routes/__layout.svelte", ".svelte-kit/runtime/components/error.svelte", "src/routes/debug.svelte", - "_index-8528d551.js", + "_index-0758e446.js", "src/routes/no-landscape.svelte", "src/routes/random.svelte", "src/routes/stats.svelte" ] }, "src/routes/__layout.svelte": { - "file": "pages/__layout.svelte-cd2d552a.js", + "file": "pages/__layout.svelte-08b924f3.js", "src": "src/routes/__layout.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_index-0dc809ca.js", - "_index-0686f894.js", + "_index-cbb289a9.js", "_index-83aebdf3.js", "_preload-helper-5ea9bf72.js", - "_share-c6a42f06.js" + "_share-84c0610e.js" ], "css": [ "assets/pages/__layout.svelte-f86d9105.css" @@ -45,13 +45,13 @@ ] }, "src/routes/debug.svelte": { - "file": "pages/debug.svelte-f609ff7c.js", + "file": "pages/debug.svelte-23c03f97.js", "src": "src/routes/debug.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_index-0dc809ca.js", - "_index-0686f894.js", + "_index-cbb289a9.js", "_preload-helper-5ea9bf72.js" ], "css": [ @@ -59,25 +59,25 @@ ] }, "src/routes/no-landscape.svelte": { - "file": "pages/no-landscape.svelte-31781635.js", + "file": "pages/no-landscape.svelte-21f8aa5e.js", "src": "src/routes/no-landscape.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_index-0dc809ca.js", "_paths-396f020f.js", - "_index-0686f894.js", - "_index-8528d551.js", + "_index-cbb289a9.js", + "_index-0758e446.js", "_preload-helper-5ea9bf72.js", "_index-83aebdf3.js", - "_share-c6a42f06.js" + "_share-84c0610e.js" ], "css": [ "assets/pages/no-landscape.svelte-494a552e.css" ] }, "src/routes/random.svelte": { - "file": "pages/random.svelte-a42d7598.js", + "file": "pages/random.svelte-cf789af5.js", "src": "src/routes/random.svelte", "isEntry": true, "isDynamicEntry": true, @@ -85,21 +85,21 @@ "_index-0dc809ca.js", "_navigation-0e6511d1.js", "_paths-396f020f.js", - "_index-0686f894.js", + "_index-cbb289a9.js", "_singletons-d1fb5791.js", "_preload-helper-5ea9bf72.js" ] }, "src/routes/stats.svelte": { - "file": "pages/stats.svelte-001a1960.js", + "file": "pages/stats.svelte-e7af40d1.js", "src": "src/routes/stats.svelte", "isEntry": true, "isDynamicEntry": true, "imports": [ "_index-0dc809ca.js", - "_index-0686f894.js", + "_index-cbb289a9.js", "_navigation-0e6511d1.js", - "_share-c6a42f06.js", + "_share-84c0610e.js", "_paths-396f020f.js", "_preload-helper-5ea9bf72.js", "_singletons-d1fb5791.js" @@ -109,16 +109,16 @@ ] }, "src/routes/index.svelte": { - "file": "pages/index.svelte-8dd7b11a.js", + "file": "pages/index.svelte-86bf5c76.js", "src": "src/routes/index.svelte", "isEntry": true, "imports": [ "_preload-helper-5ea9bf72.js", "_index-0dc809ca.js", - "_index-8528d551.js", - "_index-0686f894.js", + "_index-0758e446.js", + "_index-cbb289a9.js", "_index-83aebdf3.js", - "_share-c6a42f06.js", + "_share-84c0610e.js", "_paths-396f020f.js" ] }, @@ -137,8 +137,8 @@ "_singletons-d1fb5791.js": { "file": "chunks/singletons-d1fb5791.js" }, - "_index-0686f894.js": { - "file": "chunks/index-0686f894.js", + "_index-cbb289a9.js": { + "file": "chunks/index-cbb289a9.js", "imports": [ "_index-0dc809ca.js", "_preload-helper-5ea9bf72.js" @@ -158,10 +158,10 @@ "assets/index-81b27de8.css" ] }, - "_share-c6a42f06.js": { - "file": "chunks/share-c6a42f06.js", + "_share-84c0610e.js": { + "file": "chunks/share-84c0610e.js", "imports": [ - "_index-0686f894.js" + "_index-cbb289a9.js" ] }, "_index-83aebdf3.js": { @@ -170,20 +170,20 @@ "_index-0dc809ca.js" ] }, - "_index-8528d551.js": { - "file": "chunks/index-8528d551.js", + "_index-0758e446.js": { + "file": "chunks/index-0758e446.js", "isDynamicEntry": true, "imports": [ "_preload-helper-5ea9bf72.js", "_index-0dc809ca.js", - "_index-0686f894.js", + "_index-cbb289a9.js", "_index-83aebdf3.js", - "_share-c6a42f06.js", + "_share-84c0610e.js", "_paths-396f020f.js" ], "dynamicImports": [ "src/components/Idler.svelte", - "_idle-scheduler-bca3e738.js", + "_idle-scheduler-0931800a.js", "src/lib/landscape/canvas.ts", "src/components/Console.svelte" ], @@ -243,47 +243,47 @@ "isDynamicEntry": true }, "src/components/Console.svelte": { - "file": "chunks/Console-b22dceae.js", + "file": "chunks/Console-2313f8de.js", "src": "src/components/Console.svelte", "isDynamicEntry": true, "imports": [ "_index-0dc809ca.js", - "_index-0686f894.js", + "_index-cbb289a9.js", "_preload-helper-5ea9bf72.js" ] }, "src/components/Idler.svelte": { - "file": "chunks/Idler-ad88cc15.js", + "file": "chunks/Idler-1fae21a5.js", "src": "src/components/Idler.svelte", "isDynamicEntry": true, "imports": [ "_index-0dc809ca.js", - "_idle-scheduler-bca3e738.js", - "_index-0686f894.js", + "_idle-scheduler-0931800a.js", + "_index-cbb289a9.js", "_preload-helper-5ea9bf72.js" ], "css": [ "assets/Idler-8eb7dc94.css" ] }, - "_idle-scheduler-bca3e738.js": { - "file": "chunks/idle-scheduler-bca3e738.js", + "_idle-scheduler-0931800a.js": { + "file": "chunks/idle-scheduler-0931800a.js", "isDynamicEntry": true, "imports": [ - "_index-0686f894.js" + "_index-cbb289a9.js" ] }, "src/lib/landscape/canvas.ts": { - "file": "chunks/canvas-3d51dc6a.js", + "file": "chunks/canvas-1ce0cc6a.js", "src": "src/lib/landscape/canvas.ts", "isDynamicEntry": true, "imports": [ - "_index-8528d551.js", + "_index-0758e446.js", "_preload-helper-5ea9bf72.js", "_index-0dc809ca.js", - "_index-0686f894.js", + "_index-cbb289a9.js", "_index-83aebdf3.js", - "_share-c6a42f06.js", + "_share-84c0610e.js", "_paths-396f020f.js" ] } diff --git a/_app/pages/__layout.svelte-cd2d552a.js b/_app/pages/__layout.svelte-08b924f3.js similarity index 98% rename from _app/pages/__layout.svelte-cd2d552a.js rename to _app/pages/__layout.svelte-08b924f3.js index d38cc5e..86b9407 100644 --- a/_app/pages/__layout.svelte-cd2d552a.js +++ b/_app/pages/__layout.svelte-08b924f3.js @@ -1,4 +1,4 @@ -import{I as lt,D as F,J as it,K as at,L as rt,S as q,i as B,s as z,e as $,t as H,c as E,a as j,h as Y,d as g,b as y,g as v,M as b,N,F as A,k as C,m as T,O as I,n as U,o as D,p as W,q as O,H as ft,P as R,Q as ct,R as ut,l as k,T as dt,w as J,x as L,y as G,z as S,A as _t,B as pt,C as P,U as mt,V as ht,W as gt,X as yt,Y as bt,Z as wt,_ as kt,$ as vt,a0 as $t,a1 as Et,a2 as jt,f as K,a3 as Dt,a4 as Ot,a5 as Rt}from"../chunks/index-0dc809ca.js";import{t as M,a as At,g as Ct,l as Tt,s as Q,b as It,c as Lt,h as St,d as Pt,e as Ft}from"../chunks/index-0686f894.js";import{c as Nt,f as Mt,a as Vt}from"../chunks/index-83aebdf3.js";import{w as qt}from"../chunks/preload-helper-5ea9bf72.js";import{a as Bt}from"../chunks/share-c6a42f06.js";function zt(n,{from:t,to:e},r={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[c,i]=s.transformOrigin.split(" ").map(parseFloat),o=t.left+t.width*c/e.width-(e.left+c),a=t.top+t.height*i/e.height-(e.top+i),{delay:u=0,duration:d=p=>Math.sqrt(p)*120,easing:m=Nt}=r;return{delay:u,duration:lt(d)?d(Math.sqrt(o*o+a*a)):d,easing:m,css:(p,f)=>{const _=f*o,h=f*a,w=p+f*t.width/e.width,ot=p+f*t.height/e.height;return`transform: ${l} translate(${_}px, ${h}px) scale(${w}, ${ot});`}}}function X(n){return Object.prototype.toString.call(n)==="[object Date]"}function V(n,t){if(n===t||n!==n)return()=>n;const e=typeof n;if(e!==typeof t||Array.isArray(n)!==Array.isArray(t))throw new Error("Cannot interpolate values of different type");if(Array.isArray(n)){const r=t.map((s,l)=>V(n[l],s));return s=>r.map(l=>l(s))}if(e==="object"){if(!n||!t)throw new Error("Object cannot be null");if(X(n)&&X(t)){n=n.getTime(),t=t.getTime();const l=t-n;return c=>new Date(n+c*l)}const r=Object.keys(t),s={};return r.forEach(l=>{s[l]=V(n[l],t[l])}),l=>{const c={};return r.forEach(i=>{c[i]=s[i](l)}),c}}if(e==="number"){const r=t-n;return s=>n+s*r}throw new Error(`Cannot interpolate ${e} values`)}function Ht(n,t={}){const e=qt(n);let r,s=n;function l(c,i){if(n==null)return e.set(n=c),Promise.resolve();s=c;let o=r,a=!1,{delay:u=0,duration:d=400,easing:m=rt,interpolate:p=V}=F(F({},t),i);if(d===0)return o&&(o.abort(),o=null),e.set(n=s),Promise.resolve();const f=it()+u;let _;return r=at(h=>{if(hd?(e.set(n=c),!1):(e.set(n=_(m(w/d))),!0)}),r.promise}return{set:l,update:(c,i)=>l(c(s,n),i),subscribe:e.subscribe}}function Yt(n){let t,e=n[0].msg+"",r;return{c(){t=new ut(!1),r=k(),this.h()},l(s){t=dt(s,!1),r=k(),this.h()},h(){t.a=r},m(s,l){t.m(e,s,l),v(s,r,l)},p(s,l){l&1&&e!==(e=s[0].msg+"")&&t.p(e)},i:A,o:A,d(s){s&&g(r),s&&t.d()}}}function Ut(n){let t,e,r;const s=[n[6]()];var l=n[0].component.src;function c(i){let o={};for(let a=0;a{P(u,1)}),W()}l?(t=J(l,c()),L(t.$$.fragment),O(t.$$.fragment,1),S(t,e.parentNode,e)):t=null}else l&&t.$set(a)},i(i){r||(t&&O(t.$$.fragment,i),r=!0)},o(i){t&&D(t.$$.fragment,i),r=!1},d(i){i&&g(e),t&&P(t,i)}}}function Z(n){let t,e,r,s;return{c(){t=$("div"),e=H("\u2715"),this.h()},l(l){t=E(l,"DIV",{class:!0,role:!0,tabindex:!0});var c=j(t);e=Y(c,"\u2715"),c.forEach(g),this.h()},h(){y(t,"class","_toastBtn pe svelte-j9nwjb"),y(t,"role","button"),y(t,"tabindex","-1")},m(l,c){v(l,t,c),b(t,e),r||(s=N(t,"click",n[3]),r=!0)},p:A,d(l){l&&g(t),r=!1,s()}}}function Wt(n){let t,e,r,s,l,c,i,o,a,u;const d=[Ut,Yt],m=[];function p(_,h){return _[0].component?0:1}r=p(n),s=m[r]=d[r](n);let f=n[0].dismissable&&Z(n);return{c(){t=$("div"),e=$("div"),s.c(),l=C(),f&&f.c(),c=C(),i=$("progress"),this.h()},l(_){t=E(_,"DIV",{class:!0});var h=j(t);e=E(h,"DIV",{role:!0,class:!0});var w=j(e);s.l(w),w.forEach(g),l=T(h),f&&f.l(h),c=T(h),i=E(h,"PROGRESS",{class:!0}),j(i).forEach(g),h.forEach(g),this.h()},h(){y(e,"role","status"),y(e,"class","_toastMsg svelte-j9nwjb"),I(e,"pe",n[0].component),y(i,"class","_toastBar svelte-j9nwjb"),i.value=n[1],y(t,"class","_toastItem svelte-j9nwjb"),I(t,"pe",n[0].pausable)},m(_,h){v(_,t,h),b(t,e),m[r].m(e,null),b(t,l),f&&f.m(t,null),b(t,c),b(t,i),o=!0,a||(u=[N(t,"mouseenter",n[4]),N(t,"mouseleave",n[5])],a=!0)},p(_,[h]){let w=r;r=p(_),r===w?m[r].p(_,h):(U(),D(m[w],1,1,()=>{m[w]=null}),W(),s=m[r],s?s.p(_,h):(s=m[r]=d[r](_),s.c()),O(s,1),s.m(e,null)),(!o||h&1)&&I(e,"pe",_[0].component),_[0].dismissable?f?f.p(_,h):(f=Z(_),f.c(),f.m(t,c)):f&&(f.d(1),f=null),(!o||h&2)&&(i.value=_[1]),(!o||h&1)&&I(t,"pe",_[0].pausable)},i(_){o||(O(s),o=!0)},o(_){D(s),o=!1},d(_){_&&g(t),m[r].d(),f&&f.d(),a=!1,ft(u)}}}function Gt(n,t,e){let r,{item:s}=t;const l=Ht(s.initial,{duration:s.duration,easing:rt});R(n,l,f=>e(1,r=f));const c=()=>M.pop(s.id),i=()=>{(r===1||r===0)&&c()};let o=s.initial,a=o,u=!1;const d=()=>{s.pausable&&!u&&r!==o&&(l.set(r,{duration:0}),u=!0)},m=()=>{if(u){const f=s.duration,_=f-f*((r-a)/(o-a));l.set(o,{duration:_}).then(i),u=!1}},p=()=>{const{props:f={},sendIdTo:_}=s.component;return _&&(f[_]=s.id),f};return ct(()=>{typeof s.onpop=="function"&&s.onpop(s.id)}),n.$$set=f=>{"item"in f&&e(0,s=f.item)},n.$$.update=()=>{n.$$.dirty&1&&typeof s.progress!="undefined"&&e(0,s.next=s.progress,s),n.$$.dirty&131&&o!==s.next&&(e(7,o=s.next),a=r,u=!1,l.set(o).then(i))},[s,r,l,c,d,m,p,o]}class Jt extends q{constructor(t){super(),B(this,t,Gt,Wt,z,{item:0})}}function x(n,t,e){const r=n.slice();return r[5]=t[e],r}function tt(n,t){let e,r,s,l,c,i,o,a=A,u;return r=new Jt({props:{item:t[5]}}),{key:n,first:null,c(){e=$("li"),L(r.$$.fragment),s=C(),this.h()},l(d){e=E(d,"LI",{style:!0});var m=j(e);G(r.$$.fragment,m),s=T(m),m.forEach(g),this.h()},h(){y(e,"style",l=t[1](t[5].theme)),this.first=e},m(d,m){v(d,e,m),S(r,e,null),b(e,s),u=!0},p(d,m){t=d;const p={};m&1&&(p.item=t[5]),r.$set(p),(!u||m&1&&l!==(l=t[1](t[5].theme)))&&y(e,"style",l)},r(){o=e.getBoundingClientRect()},f(){mt(e),a(),ht(e,o)},a(){a(),a=gt(e,o,zt,{duration:200})},i(d){u||(O(r.$$.fragment,d),yt(()=>{!u||(i&&i.end(1),c=bt(e,Mt,t[5].intro),c.start())}),u=!0)},o(d){D(r.$$.fragment,d),c&&c.invalidate(),i=wt(e,Vt,{}),u=!1},d(d){d&&g(e),P(r),d&&i&&i.end()}}}function Kt(n){let t,e=[],r=new Map,s,l=n[0];const c=i=>i[5].id;for(let i=0;ie(4,r=o));let{options:s={}}=t,{target:l="default"}=t,c;const i=o=>Object.keys(o).reduce((a,u)=>`${a}${u}:${o[u]};`,"");return n.$$set=o=>{"options"in o&&e(2,s=o.options),"target"in o&&e(3,l=o.target)},n.$$.update=()=>{n.$$.dirty&12&&M._init(l,s),n.$$.dirty&24&&e(0,c=r.filter(o=>o.target===l))},[c,i,s,l,r]}class Xt extends q{constructor(t){super(),B(this,t,Qt,Kt,z,{options:2,target:3})}}function et(n){let t,e;return{c(){t=$("style"),e=H(`body { +import{I as lt,D as F,J as it,K as at,L as rt,S as q,i as B,s as z,e as $,t as H,c as E,a as j,h as Y,d as g,b as y,g as v,M as b,N,F as A,k as C,m as T,O as I,n as U,o as D,p as W,q as O,H as ft,P as R,Q as ct,R as ut,l as k,T as dt,w as J,x as L,y as G,z as S,A as _t,B as pt,C as P,U as mt,V as ht,W as gt,X as yt,Y as bt,Z as wt,_ as kt,$ as vt,a0 as $t,a1 as Et,a2 as jt,f as K,a3 as Dt,a4 as Ot,a5 as Rt}from"../chunks/index-0dc809ca.js";import{t as M,a as At,g as Ct,l as Tt,s as Q,b as It,c as Lt,h as St,d as Pt,e as Ft}from"../chunks/index-cbb289a9.js";import{c as Nt,f as Mt,a as Vt}from"../chunks/index-83aebdf3.js";import{w as qt}from"../chunks/preload-helper-5ea9bf72.js";import{a as Bt}from"../chunks/share-84c0610e.js";function zt(n,{from:t,to:e},r={}){const s=getComputedStyle(n),l=s.transform==="none"?"":s.transform,[c,i]=s.transformOrigin.split(" ").map(parseFloat),o=t.left+t.width*c/e.width-(e.left+c),a=t.top+t.height*i/e.height-(e.top+i),{delay:u=0,duration:d=p=>Math.sqrt(p)*120,easing:m=Nt}=r;return{delay:u,duration:lt(d)?d(Math.sqrt(o*o+a*a)):d,easing:m,css:(p,f)=>{const _=f*o,h=f*a,w=p+f*t.width/e.width,ot=p+f*t.height/e.height;return`transform: ${l} translate(${_}px, ${h}px) scale(${w}, ${ot});`}}}function X(n){return Object.prototype.toString.call(n)==="[object Date]"}function V(n,t){if(n===t||n!==n)return()=>n;const e=typeof n;if(e!==typeof t||Array.isArray(n)!==Array.isArray(t))throw new Error("Cannot interpolate values of different type");if(Array.isArray(n)){const r=t.map((s,l)=>V(n[l],s));return s=>r.map(l=>l(s))}if(e==="object"){if(!n||!t)throw new Error("Object cannot be null");if(X(n)&&X(t)){n=n.getTime(),t=t.getTime();const l=t-n;return c=>new Date(n+c*l)}const r=Object.keys(t),s={};return r.forEach(l=>{s[l]=V(n[l],t[l])}),l=>{const c={};return r.forEach(i=>{c[i]=s[i](l)}),c}}if(e==="number"){const r=t-n;return s=>n+s*r}throw new Error(`Cannot interpolate ${e} values`)}function Ht(n,t={}){const e=qt(n);let r,s=n;function l(c,i){if(n==null)return e.set(n=c),Promise.resolve();s=c;let o=r,a=!1,{delay:u=0,duration:d=400,easing:m=rt,interpolate:p=V}=F(F({},t),i);if(d===0)return o&&(o.abort(),o=null),e.set(n=s),Promise.resolve();const f=it()+u;let _;return r=at(h=>{if(hd?(e.set(n=c),!1):(e.set(n=_(m(w/d))),!0)}),r.promise}return{set:l,update:(c,i)=>l(c(s,n),i),subscribe:e.subscribe}}function Yt(n){let t,e=n[0].msg+"",r;return{c(){t=new ut(!1),r=k(),this.h()},l(s){t=dt(s,!1),r=k(),this.h()},h(){t.a=r},m(s,l){t.m(e,s,l),v(s,r,l)},p(s,l){l&1&&e!==(e=s[0].msg+"")&&t.p(e)},i:A,o:A,d(s){s&&g(r),s&&t.d()}}}function Ut(n){let t,e,r;const s=[n[6]()];var l=n[0].component.src;function c(i){let o={};for(let a=0;a{P(u,1)}),W()}l?(t=J(l,c()),L(t.$$.fragment),O(t.$$.fragment,1),S(t,e.parentNode,e)):t=null}else l&&t.$set(a)},i(i){r||(t&&O(t.$$.fragment,i),r=!0)},o(i){t&&D(t.$$.fragment,i),r=!1},d(i){i&&g(e),t&&P(t,i)}}}function Z(n){let t,e,r,s;return{c(){t=$("div"),e=H("\u2715"),this.h()},l(l){t=E(l,"DIV",{class:!0,role:!0,tabindex:!0});var c=j(t);e=Y(c,"\u2715"),c.forEach(g),this.h()},h(){y(t,"class","_toastBtn pe svelte-j9nwjb"),y(t,"role","button"),y(t,"tabindex","-1")},m(l,c){v(l,t,c),b(t,e),r||(s=N(t,"click",n[3]),r=!0)},p:A,d(l){l&&g(t),r=!1,s()}}}function Wt(n){let t,e,r,s,l,c,i,o,a,u;const d=[Ut,Yt],m=[];function p(_,h){return _[0].component?0:1}r=p(n),s=m[r]=d[r](n);let f=n[0].dismissable&&Z(n);return{c(){t=$("div"),e=$("div"),s.c(),l=C(),f&&f.c(),c=C(),i=$("progress"),this.h()},l(_){t=E(_,"DIV",{class:!0});var h=j(t);e=E(h,"DIV",{role:!0,class:!0});var w=j(e);s.l(w),w.forEach(g),l=T(h),f&&f.l(h),c=T(h),i=E(h,"PROGRESS",{class:!0}),j(i).forEach(g),h.forEach(g),this.h()},h(){y(e,"role","status"),y(e,"class","_toastMsg svelte-j9nwjb"),I(e,"pe",n[0].component),y(i,"class","_toastBar svelte-j9nwjb"),i.value=n[1],y(t,"class","_toastItem svelte-j9nwjb"),I(t,"pe",n[0].pausable)},m(_,h){v(_,t,h),b(t,e),m[r].m(e,null),b(t,l),f&&f.m(t,null),b(t,c),b(t,i),o=!0,a||(u=[N(t,"mouseenter",n[4]),N(t,"mouseleave",n[5])],a=!0)},p(_,[h]){let w=r;r=p(_),r===w?m[r].p(_,h):(U(),D(m[w],1,1,()=>{m[w]=null}),W(),s=m[r],s?s.p(_,h):(s=m[r]=d[r](_),s.c()),O(s,1),s.m(e,null)),(!o||h&1)&&I(e,"pe",_[0].component),_[0].dismissable?f?f.p(_,h):(f=Z(_),f.c(),f.m(t,c)):f&&(f.d(1),f=null),(!o||h&2)&&(i.value=_[1]),(!o||h&1)&&I(t,"pe",_[0].pausable)},i(_){o||(O(s),o=!0)},o(_){D(s),o=!1},d(_){_&&g(t),m[r].d(),f&&f.d(),a=!1,ft(u)}}}function Gt(n,t,e){let r,{item:s}=t;const l=Ht(s.initial,{duration:s.duration,easing:rt});R(n,l,f=>e(1,r=f));const c=()=>M.pop(s.id),i=()=>{(r===1||r===0)&&c()};let o=s.initial,a=o,u=!1;const d=()=>{s.pausable&&!u&&r!==o&&(l.set(r,{duration:0}),u=!0)},m=()=>{if(u){const f=s.duration,_=f-f*((r-a)/(o-a));l.set(o,{duration:_}).then(i),u=!1}},p=()=>{const{props:f={},sendIdTo:_}=s.component;return _&&(f[_]=s.id),f};return ct(()=>{typeof s.onpop=="function"&&s.onpop(s.id)}),n.$$set=f=>{"item"in f&&e(0,s=f.item)},n.$$.update=()=>{n.$$.dirty&1&&typeof s.progress!="undefined"&&e(0,s.next=s.progress,s),n.$$.dirty&131&&o!==s.next&&(e(7,o=s.next),a=r,u=!1,l.set(o).then(i))},[s,r,l,c,d,m,p,o]}class Jt extends q{constructor(t){super(),B(this,t,Gt,Wt,z,{item:0})}}function x(n,t,e){const r=n.slice();return r[5]=t[e],r}function tt(n,t){let e,r,s,l,c,i,o,a=A,u;return r=new Jt({props:{item:t[5]}}),{key:n,first:null,c(){e=$("li"),L(r.$$.fragment),s=C(),this.h()},l(d){e=E(d,"LI",{style:!0});var m=j(e);G(r.$$.fragment,m),s=T(m),m.forEach(g),this.h()},h(){y(e,"style",l=t[1](t[5].theme)),this.first=e},m(d,m){v(d,e,m),S(r,e,null),b(e,s),u=!0},p(d,m){t=d;const p={};m&1&&(p.item=t[5]),r.$set(p),(!u||m&1&&l!==(l=t[1](t[5].theme)))&&y(e,"style",l)},r(){o=e.getBoundingClientRect()},f(){mt(e),a(),ht(e,o)},a(){a(),a=gt(e,o,zt,{duration:200})},i(d){u||(O(r.$$.fragment,d),yt(()=>{!u||(i&&i.end(1),c=bt(e,Mt,t[5].intro),c.start())}),u=!0)},o(d){D(r.$$.fragment,d),c&&c.invalidate(),i=wt(e,Vt,{}),u=!1},d(d){d&&g(e),P(r),d&&i&&i.end()}}}function Kt(n){let t,e=[],r=new Map,s,l=n[0];const c=i=>i[5].id;for(let i=0;ie(4,r=o));let{options:s={}}=t,{target:l="default"}=t,c;const i=o=>Object.keys(o).reduce((a,u)=>`${a}${u}:${o[u]};`,"");return n.$$set=o=>{"options"in o&&e(2,s=o.options),"target"in o&&e(3,l=o.target)},n.$$.update=()=>{n.$$.dirty&12&&M._init(l,s),n.$$.dirty&24&&e(0,c=r.filter(o=>o.target===l))},[c,i,s,l,r]}class Xt extends q{constructor(t){super(),B(this,t,Qt,Kt,z,{options:2,target:3})}}function et(n){let t,e;return{c(){t=$("style"),e=H(`body { --before-color: #da3f8b; --correct-color: #64ba2e; --primary-color: #000; diff --git a/_app/pages/debug.svelte-f609ff7c.js b/_app/pages/debug.svelte-23c03f97.js similarity index 95% rename from _app/pages/debug.svelte-f609ff7c.js rename to _app/pages/debug.svelte-23c03f97.js index 7d16947..d2ef851 100644 --- a/_app/pages/debug.svelte-f609ff7c.js +++ b/_app/pages/debug.svelte-23c03f97.js @@ -1 +1 @@ -import{S as k,i as x,s as E,e as _,t as b,k as y,c as d,a as h,h as v,d as i,m as g,b as f,g as u,M as p,F as m,a0 as T,N as C}from"../chunks/index-0dc809ca.js";import{f as O}from"../chunks/index-0686f894.js";import"../chunks/preload-helper-5ea9bf72.js";function S(c){let e,r,l,a,t,n;return{c(){e=_("button"),r=b("Copy"),l=y(),a=_("textarea"),this.h()},l(s){e=d(s,"BUTTON",{class:!0});var o=h(e);r=v(o,"Copy"),o.forEach(i),l=g(s),a=d(s,"TEXTAREA",{"aria-label":!0,rows:!0,class:!0}),h(a).forEach(i),this.h()},h(){f(e,"class","svelte-1nprqny"),f(a,"aria-label","Debug text"),f(a,"rows","10"),a.readOnly=!0,a.value=c[0],f(a,"class","svelte-1nprqny")},m(s,o){u(s,e,o),p(e,r),u(s,l,o),u(s,a,o),t||(n=C(e,"click",c[1]),t=!0)},p:m,d(s){s&&i(e),s&&i(l),s&&i(a),t=!1,n()}}}function q(c){let e,r,l,a,t=S(c);return{c(){e=_("section"),r=_("h1"),l=b("Word Peaks Debug Info"),a=y(),t&&t.c(),this.h()},l(n){e=d(n,"SECTION",{class:!0});var s=h(e);r=d(s,"H1",{});var o=h(r);l=v(o,"Word Peaks Debug Info"),o.forEach(i),a=g(s),t&&t.l(s),s.forEach(i),this.h()},h(){f(e,"class","svelte-1nprqny")},m(n,s){u(n,e,s),p(e,r),p(r,l),p(e,a),t&&t.m(e,null)},p(n,[s]){t.p(n,s)},i:m,o:m,d(n){n&&i(e),t&&t.d()}}}function D(c){const e=Object.entries(O).filter(([a,t])=>typeof t!="number"&&typeof t!="string"&&typeof t!="function"&&"update"in t&&a!=="boardContent").map(([a,t])=>[a,T(t)]);console.log(e);const r=JSON.stringify(e);return[r,()=>navigator.clipboard.writeText(r)]}class I extends k{constructor(e){super(),x(this,e,D,q,E,{})}}export{I as default}; +import{S as k,i as x,s as E,e as _,t as b,k as y,c as d,a as h,h as v,d as i,m as g,b as f,g as u,M as p,F as m,a0 as T,N as C}from"../chunks/index-0dc809ca.js";import{f as O}from"../chunks/index-cbb289a9.js";import"../chunks/preload-helper-5ea9bf72.js";function S(c){let e,r,l,a,t,n;return{c(){e=_("button"),r=b("Copy"),l=y(),a=_("textarea"),this.h()},l(s){e=d(s,"BUTTON",{class:!0});var o=h(e);r=v(o,"Copy"),o.forEach(i),l=g(s),a=d(s,"TEXTAREA",{"aria-label":!0,rows:!0,class:!0}),h(a).forEach(i),this.h()},h(){f(e,"class","svelte-1nprqny"),f(a,"aria-label","Debug text"),f(a,"rows","10"),a.readOnly=!0,a.value=c[0],f(a,"class","svelte-1nprqny")},m(s,o){u(s,e,o),p(e,r),u(s,l,o),u(s,a,o),t||(n=C(e,"click",c[1]),t=!0)},p:m,d(s){s&&i(e),s&&i(l),s&&i(a),t=!1,n()}}}function q(c){let e,r,l,a,t=S(c);return{c(){e=_("section"),r=_("h1"),l=b("Word Peaks Debug Info"),a=y(),t&&t.c(),this.h()},l(n){e=d(n,"SECTION",{class:!0});var s=h(e);r=d(s,"H1",{});var o=h(r);l=v(o,"Word Peaks Debug Info"),o.forEach(i),a=g(s),t&&t.l(s),s.forEach(i),this.h()},h(){f(e,"class","svelte-1nprqny")},m(n,s){u(n,e,s),p(e,r),p(r,l),p(e,a),t&&t.m(e,null)},p(n,[s]){t.p(n,s)},i:m,o:m,d(n){n&&i(e),t&&t.d()}}}function D(c){const e=Object.entries(O).filter(([a,t])=>typeof t!="number"&&typeof t!="string"&&typeof t!="function"&&"update"in t&&a!=="boardContent").map(([a,t])=>[a,T(t)]);console.log(e);const r=JSON.stringify(e);return[r,()=>navigator.clipboard.writeText(r)]}class I extends k{constructor(e){super(),x(this,e,D,q,E,{})}}export{I as default}; diff --git a/_app/pages/index.svelte-86bf5c76.js b/_app/pages/index.svelte-86bf5c76.js new file mode 100644 index 0000000..fbaf23c --- /dev/null +++ b/_app/pages/index.svelte-86bf5c76.js @@ -0,0 +1 @@ +import"../chunks/preload-helper-5ea9bf72.js";import"../chunks/index-0dc809ca.js";import{R as f}from"../chunks/index-0758e446.js";import"../chunks/index-cbb289a9.js";import"../chunks/index-83aebdf3.js";import"../chunks/share-84c0610e.js";import"../chunks/paths-396f020f.js";export{f as default}; diff --git a/_app/pages/index.svelte-8dd7b11a.js b/_app/pages/index.svelte-8dd7b11a.js deleted file mode 100644 index d90edc3..0000000 --- a/_app/pages/index.svelte-8dd7b11a.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/preload-helper-5ea9bf72.js";import"../chunks/index-0dc809ca.js";import{R as f}from"../chunks/index-8528d551.js";import"../chunks/index-0686f894.js";import"../chunks/index-83aebdf3.js";import"../chunks/share-c6a42f06.js";import"../chunks/paths-396f020f.js";export{f as default}; diff --git a/_app/pages/no-landscape.svelte-31781635.js b/_app/pages/no-landscape.svelte-21f8aa5e.js similarity index 87% rename from _app/pages/no-landscape.svelte-31781635.js rename to _app/pages/no-landscape.svelte-21f8aa5e.js index 8d09d85..610006e 100644 --- a/_app/pages/no-landscape.svelte-31781635.js +++ b/_app/pages/no-landscape.svelte-21f8aa5e.js @@ -1,4 +1,4 @@ -import{S as T,i as E,s as R,e as _,t as p,k as S,x as q,c as g,a as y,h as c,d as i,m as C,y as H,b as v,g as w,M as o,z as L,F as N,q as Y,o as k,C as z}from"../chunks/index-0dc809ca.js";import{b as A}from"../chunks/paths-396f020f.js";import{ae as F}from"../chunks/index-0686f894.js";import{R as G}from"../chunks/index-8528d551.js";import"../chunks/preload-helper-5ea9bf72.js";import"../chunks/index-83aebdf3.js";import"../chunks/share-c6a42f06.js";function M($){let t,r,d,f,n,u,h,l,s,m;return s=new G({}),{c(){t=_("p"),r=_("strong"),d=p("Hey! \u{1F44B}"),f=p(` This page will be removed soon. There is now an option to hide +import{S as T,i as E,s as R,e as _,t as p,k as S,x as q,c as g,a as y,h as c,d as i,m as C,y as H,b as v,g as w,M as o,z as L,F as N,q as Y,o as k,C as z}from"../chunks/index-0dc809ca.js";import{b as A}from"../chunks/paths-396f020f.js";import{ae as F}from"../chunks/index-cbb289a9.js";import{R as G}from"../chunks/index-0758e446.js";import"../chunks/preload-helper-5ea9bf72.js";import"../chunks/index-83aebdf3.js";import"../chunks/share-84c0610e.js";function M($){let t,r,d,f,n,u,h,l,s,m;return s=new G({}),{c(){t=_("p"),r=_("strong"),d=p("Hey! \u{1F44B}"),f=p(` This page will be removed soon. There is now an option to hide the landscape, and if you're reading this, it's already enabled. You can use the `),n=_("a"),u=p("default page"),h=p(` from now on.`),l=S(),q(s.$$.fragment),this.h()},l(e){t=g(e,"P",{class:!0});var a=y(t);r=g(a,"STRONG",{});var x=y(r);d=c(x,"Hey! \u{1F44B}"),x.forEach(i),f=c(a,` This page will be removed soon. There is now an option to hide diff --git a/_app/pages/random.svelte-a42d7598.js b/_app/pages/random.svelte-cf789af5.js similarity index 85% rename from _app/pages/random.svelte-a42d7598.js rename to _app/pages/random.svelte-cf789af5.js index a84fa18..daadd81 100644 --- a/_app/pages/random.svelte-a42d7598.js +++ b/_app/pages/random.svelte-cf789af5.js @@ -1 +1 @@ -import{S as s,i as a,s as r}from"../chunks/index-0dc809ca.js";import{g as e}from"../chunks/navigation-0e6511d1.js";import{b as n}from"../chunks/paths-396f020f.js";import{ap as m,Z as i}from"../chunks/index-0686f894.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/preload-helper-5ea9bf72.js";function p(t){{const o=m(i());e(`${n}/#${o}`)}return[]}class g extends s{constructor(o){super(),a(this,o,p,null,r,{})}}export{g as default}; +import{S as s,i as a,s as r}from"../chunks/index-0dc809ca.js";import{g as e}from"../chunks/navigation-0e6511d1.js";import{b as n}from"../chunks/paths-396f020f.js";import{ap as m,Z as i}from"../chunks/index-cbb289a9.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/preload-helper-5ea9bf72.js";function p(t){{const o=m(i());e(`${n}/#${o}`)}return[]}class g extends s{constructor(o){super(),a(this,o,p,null,r,{})}}export{g as default}; diff --git a/_app/pages/stats.svelte-001a1960.js b/_app/pages/stats.svelte-e7af40d1.js similarity index 98% rename from _app/pages/stats.svelte-001a1960.js rename to _app/pages/stats.svelte-e7af40d1.js index 02f6ffb..134a122 100644 --- a/_app/pages/stats.svelte-001a1960.js +++ b/_app/pages/stats.svelte-e7af40d1.js @@ -1 +1 @@ -import{S as bt,i as Et,s as kt,e as w,k as x,t as P,c as O,a as D,d as f,m as B,h as g,b as v,g as y,M as m,av as at,N as j,j as G,H as nt,f as K,O as F,F as lt,P as Tt,v as yt,a0 as W}from"../chunks/index-0dc809ca.js";import{aq as ft,c as ut,aa as _t,ab as mt,ar as pt,W as it,G as Q,t as Y,L as St}from"../chunks/index-0686f894.js";import{g as wt}from"../chunks/navigation-0e6511d1.js";import{c as Ot}from"../chunks/share-c6a42f06.js";import{b as ct}from"../chunks/paths-396f020f.js";import"../chunks/preload-helper-5ea9bf72.js";import"../chunks/singletons-d1fb5791.js";function ot(e){let t,a,i=e[4]("main.stats.import_info_1")+"",l,o,_=e[4]("main.stats.import_info_2")+"",E,d,p,h=e[4]("main.stats.import_info_3")+"",T,b,u,n,N,S,M=e[4]("main.stats.import")+"",H,I,L,R;function z(s,r){return s[0]?s[3]?Nt:Dt:Pt}let C=z(e),A=C(e);return{c(){t=w("div"),a=w("p"),l=x(),o=w("p"),E=P(_),d=x(),p=w("p"),T=x(),b=w("label"),A.c(),u=x(),n=w("textarea"),N=x(),S=w("button"),H=P(M),this.h()},l(s){t=O(s,"DIV",{class:!0});var r=D(t);a=O(r,"P",{class:!0});var k=D(a);k.forEach(f),l=B(r),o=O(r,"P",{class:!0});var c=D(o);E=g(c,_),c.forEach(f),d=B(r),p=O(r,"P",{class:!0});var q=D(p);q.forEach(f),r.forEach(f),T=B(s),b=O(s,"LABEL",{for:!0,class:!0});var J=D(b);A.l(J),J.forEach(f),u=B(s),n=O(s,"TEXTAREA",{id:!0,name:!0,rows:!0,class:!0}),D(n).forEach(f),N=B(s),S=O(s,"BUTTON",{class:!0});var V=D(S);H=g(V,M),V.forEach(f),this.h()},h(){v(a,"class","svelte-18ehvcx"),v(o,"class","svelte-18ehvcx"),v(p,"class","svelte-18ehvcx"),v(t,"class","info svelte-18ehvcx"),v(b,"for","import_text"),v(b,"class","svelte-18ehvcx"),v(n,"id","import_text"),v(n,"name","import_text"),v(n,"rows","4"),v(n,"class","svelte-18ehvcx"),v(S,"class","import-button svelte-18ehvcx"),S.disabled=I=!e[3]},m(s,r){y(s,t,r),m(t,a),a.innerHTML=i,m(t,l),m(t,o),m(o,E),m(t,d),m(t,p),p.innerHTML=h,y(s,T,r),y(s,b,r),A.m(b,null),y(s,u,r),y(s,n,r),at(n,e[0]),y(s,N,r),y(s,S,r),m(S,H),L||(R=[j(n,"input",e[8]),j(S,"click",e[9])],L=!0)},p(s,r){r&16&&i!==(i=s[4]("main.stats.import_info_1")+"")&&(a.innerHTML=i),r&16&&_!==(_=s[4]("main.stats.import_info_2")+"")&&G(E,_),r&16&&h!==(h=s[4]("main.stats.import_info_3")+"")&&(p.innerHTML=h),C===(C=z(s))&&A?A.p(s,r):(A.d(1),A=C(s),A&&(A.c(),A.m(b,null))),r&1&&at(n,s[0]),r&16&&M!==(M=s[4]("main.stats.import")+"")&&G(H,M),r&8&&I!==(I=!s[3])&&(S.disabled=I)},d(s){s&&f(t),s&&f(T),s&&f(b),A.d(),s&&f(u),s&&f(n),s&&f(N),s&&f(S),L=!1,nt(R)}}}function Dt(e){let t,a=e[4]("main.stats.invalid_stats")+"",i;return{c(){t=P("\u274C "),i=P(a)},l(l){t=g(l,"\u274C "),i=g(l,a)},m(l,o){y(l,t,o),y(l,i,o)},p(l,o){o&16&&a!==(a=l[4]("main.stats.invalid_stats")+"")&&G(i,a)},d(l){l&&f(t),l&&f(i)}}}function Nt(e){let t,a=e[4]("main.stats.ready_to_import")+"",i;return{c(){t=P("\u2705 "),i=P(a)},l(l){t=g(l,"\u2705 "),i=g(l,a)},m(l,o){y(l,t,o),y(l,i,o)},p(l,o){o&16&&a!==(a=l[4]("main.stats.ready_to_import")+"")&&G(i,a)},d(l){l&&f(t),l&&f(i)}}}function Pt(e){let t=e[4]("main.stats.paste_your_stats")+"",a;return{c(){a=P(t)},l(i){a=g(i,t)},m(i,l){y(i,a,l)},p(i,l){l&16&&t!==(t=i[4]("main.stats.paste_your_stats")+"")&&G(a,t)},d(i){i&&f(a)}}}function rt(e){let t,a=e[4]("main.stats.export_instructions")+"",i,l,o,_,E,d,p=e[4]("main.stats.copy")+"",h,T,b;return{c(){t=w("label"),i=P(a),l=P(":"),o=x(),_=w("textarea"),E=x(),d=w("button"),h=P(p),this.h()},l(u){t=O(u,"LABEL",{for:!0,class:!0});var n=D(t);i=g(n,a),l=g(n,":"),n.forEach(f),o=B(u),_=O(u,"TEXTAREA",{id:!0,name:!0,rows:!0,class:!0}),D(_).forEach(f),E=B(u),d=O(u,"BUTTON",{class:!0});var N=D(d);h=g(N,p),N.forEach(f),this.h()},h(){v(t,"for","export_text"),v(t,"class","svelte-18ehvcx"),v(_,"id","export_text"),v(_,"name","export_text"),v(_,"rows","4"),_.value=e[2],_.readOnly=!0,v(_,"class","svelte-18ehvcx"),v(d,"class","svelte-18ehvcx"),K(d,"align-self","flex-start")},m(u,n){y(u,t,n),m(t,i),m(t,l),y(u,o,n),y(u,_,n),y(u,E,n),y(u,d,n),m(d,h),T||(b=j(d,"click",e[5]),T=!0)},p(u,n){n&16&&a!==(a=u[4]("main.stats.export_instructions")+"")&&G(i,a),n&4&&(_.value=u[2]),n&16&&p!==(p=u[4]("main.stats.copy")+"")&&G(h,p)},d(u){u&&f(t),u&&f(o),u&&f(_),u&&f(E),u&&f(d),T=!1,b()}}}function gt(e){let t,a,i,l,o,_=e[4]("main.stats.back_up_and_restore_your_stats")+"",E,d,p,h,T=e[4]("main.stats.import_stats")+"",b,u,n,N=e[4]("main.stats.export_stats")+"",S,M,H,I,L,R=e[4]("main.other.back")+"",z,C,A,s=e[1]==="import"&&ot(e),r=e[1]==="export"&&rt(e);return{c(){t=w("section"),a=w("h1"),i=P("Word Peaks"),l=x(),o=w("p"),E=P(_),d=x(),p=w("div"),h=w("button"),b=P(T),u=x(),n=w("button"),S=P(N),M=x(),s&&s.c(),H=x(),r&&r.c(),I=x(),L=w("a"),z=P(R),this.h()},l(k){t=O(k,"SECTION",{class:!0});var c=D(t);a=O(c,"H1",{});var q=D(a);i=g(q,"Word Peaks"),q.forEach(f),l=B(c),o=O(c,"P",{class:!0});var J=D(o);E=g(J,_),J.forEach(f),d=B(c),p=O(c,"DIV",{class:!0});var V=D(p);h=O(V,"BUTTON",{class:!0});var tt=D(h);b=g(tt,T),tt.forEach(f),u=B(V),n=O(V,"BUTTON",{class:!0});var et=D(n);S=g(et,N),et.forEach(f),V.forEach(f),M=B(c),s&&s.l(c),H=B(c),r&&r.l(c),I=B(c),L=O(c,"A",{href:!0});var st=D(L);z=g(st,R),st.forEach(f),c.forEach(f),this.h()},h(){v(o,"class","svelte-18ehvcx"),K(o,"margin-bottom","1.5rem"),v(h,"class","svelte-18ehvcx"),F(h,"active",e[1]==="import"),v(n,"class","svelte-18ehvcx"),F(n,"active",e[1]==="export"),v(p,"class","mode-buttons svelte-18ehvcx"),v(L,"href",ct+"/"),K(L,"margin-top","3rem"),K(L,"text-align","center"),v(t,"class","svelte-18ehvcx")},m(k,c){y(k,t,c),m(t,a),m(a,i),m(t,l),m(t,o),m(o,E),m(t,d),m(t,p),m(p,h),m(h,b),m(p,u),m(p,n),m(n,S),m(t,M),s&&s.m(t,null),m(t,H),r&&r.m(t,null),m(t,I),m(t,L),m(L,z),C||(A=[j(h,"click",e[6]),j(n,"click",e[7])],C=!0)},p(k,[c]){c&16&&_!==(_=k[4]("main.stats.back_up_and_restore_your_stats")+"")&&G(E,_),c&16&&T!==(T=k[4]("main.stats.import_stats")+"")&&G(b,T),c&2&&F(h,"active",k[1]==="import"),c&16&&N!==(N=k[4]("main.stats.export_stats")+"")&&G(S,N),c&2&&F(n,"active",k[1]==="export"),k[1]==="import"?s?s.p(k,c):(s=ot(k),s.c(),s.m(t,H)):s&&(s.d(1),s=null),k[1]==="export"?r?r.p(k,c):(r=rt(k),r.c(),r.m(t,I)):r&&(r.d(1),r=null),c&16&&R!==(R=k[4]("main.other.back")+"")&&G(z,R)},i:lt,o:lt,d(k){k&&f(t),s&&s.d(),r&&r.d(),C=!1,nt(A)}}}const Z={theme:{"--toastBackground":"var(--cta-color)"}},U=e=>typeof e=="number"&&e>=0,X=e=>e instanceof Array&&e.every(U);function Lt(e){if(!e)return!1;try{const[t,a,i,l,o]=JSON.parse(e);if(t!==ft)throw"bad-version";if(!U(a))throw"invalid-last-daily";const[_,E,d,p,h]=i;if(!U(_)||!U(E)||!U(d)||!U(p)||!X(h))throw"invalid-stats";const[T,b,u,n]=l;if(!U(T)||!X(b)||!X(u)||!U(n))throw"invalid-time-stats";if(o){const[N,S,M,H,I,L,R,z]=o;if(N!=="daily"||!U(S)||typeof M!="boolean"||typeof H!="string"||H.length!==it||!(I instanceof Array)||I.some(C=>typeof C!="string"||C.length!==it)||!X(L)||R!==null||typeof z!="boolean")throw"invalid-daily-detail"}}catch(t){return console.warn(t),!1}return!0}const vt=["currentStreak","bestStreak","totalGames","wonGames","distribution"],At=e=>vt.map(t=>e[t]),ht=["gameCount","guessTotals","guessCounts","fastestGame"],xt=e=>ht.map(t=>e[t]),dt=["mode","dayNumber","hardMode","answer","guesses","guessTimes","hash","fastest"],Bt=e=>e===null?null:dt.map(t=>e[t]),$=(e,t)=>Object.fromEntries(e.map((a,i)=>[t[i],a]));function Ht(){return JSON.stringify([ft,W(ut),At(W(_t)),xt(W(mt)),Bt(W(pt))])}function It(e){const[t,a,i,l,o]=JSON.parse(e);ut.set(a),_t.set($(i,vt)),mt.set($(l,ht)),o!==null&&pt.set($(o,dt)),St("statsImported"),Y.push(W(Q)("main.messages.stats_imported"),Z),wt(`${ct}/`)}function Mt(e,t,a){let i,l;Tt(e,Q,u=>a(4,l=u));let o=null,_,E="";function d(){Y.push(W(Q)("main.messages.stats_copied"),Z),Ot(E).then(()=>Y.push("Stats copied!",Z),()=>Y.push(W(Q)("main.messages.could_not_do"),Z))}yt(()=>a(2,E=Ht()));const p=()=>a(1,o=o==="import"?null:"import"),h=()=>a(1,o=o==="export"?null:"export");function T(){_=this.value,a(0,_)}const b=()=>It(_);return e.$$.update=()=>{e.$$.dirty&1&&a(3,i=Lt(_))},[_,o,E,i,l,d,p,h,T,b]}class Jt extends bt{constructor(t){super(),Et(this,t,Mt,gt,kt,{})}}export{Jt as default}; +import{S as bt,i as Et,s as kt,e as w,k as x,t as P,c as O,a as D,d as f,m as B,h as g,b as v,g as y,M as m,av as at,N as j,j as G,H as nt,f as K,O as F,F as lt,P as Tt,v as yt,a0 as W}from"../chunks/index-0dc809ca.js";import{aq as ft,c as ut,aa as _t,ab as mt,ar as pt,W as it,G as Q,t as Y,L as St}from"../chunks/index-cbb289a9.js";import{g as wt}from"../chunks/navigation-0e6511d1.js";import{c as Ot}from"../chunks/share-84c0610e.js";import{b as ct}from"../chunks/paths-396f020f.js";import"../chunks/preload-helper-5ea9bf72.js";import"../chunks/singletons-d1fb5791.js";function ot(e){let t,a,i=e[4]("main.stats.import_info_1")+"",l,o,_=e[4]("main.stats.import_info_2")+"",E,d,p,h=e[4]("main.stats.import_info_3")+"",T,b,u,n,N,S,M=e[4]("main.stats.import")+"",H,I,L,R;function z(s,r){return s[0]?s[3]?Nt:Dt:Pt}let C=z(e),A=C(e);return{c(){t=w("div"),a=w("p"),l=x(),o=w("p"),E=P(_),d=x(),p=w("p"),T=x(),b=w("label"),A.c(),u=x(),n=w("textarea"),N=x(),S=w("button"),H=P(M),this.h()},l(s){t=O(s,"DIV",{class:!0});var r=D(t);a=O(r,"P",{class:!0});var k=D(a);k.forEach(f),l=B(r),o=O(r,"P",{class:!0});var c=D(o);E=g(c,_),c.forEach(f),d=B(r),p=O(r,"P",{class:!0});var q=D(p);q.forEach(f),r.forEach(f),T=B(s),b=O(s,"LABEL",{for:!0,class:!0});var J=D(b);A.l(J),J.forEach(f),u=B(s),n=O(s,"TEXTAREA",{id:!0,name:!0,rows:!0,class:!0}),D(n).forEach(f),N=B(s),S=O(s,"BUTTON",{class:!0});var V=D(S);H=g(V,M),V.forEach(f),this.h()},h(){v(a,"class","svelte-18ehvcx"),v(o,"class","svelte-18ehvcx"),v(p,"class","svelte-18ehvcx"),v(t,"class","info svelte-18ehvcx"),v(b,"for","import_text"),v(b,"class","svelte-18ehvcx"),v(n,"id","import_text"),v(n,"name","import_text"),v(n,"rows","4"),v(n,"class","svelte-18ehvcx"),v(S,"class","import-button svelte-18ehvcx"),S.disabled=I=!e[3]},m(s,r){y(s,t,r),m(t,a),a.innerHTML=i,m(t,l),m(t,o),m(o,E),m(t,d),m(t,p),p.innerHTML=h,y(s,T,r),y(s,b,r),A.m(b,null),y(s,u,r),y(s,n,r),at(n,e[0]),y(s,N,r),y(s,S,r),m(S,H),L||(R=[j(n,"input",e[8]),j(S,"click",e[9])],L=!0)},p(s,r){r&16&&i!==(i=s[4]("main.stats.import_info_1")+"")&&(a.innerHTML=i),r&16&&_!==(_=s[4]("main.stats.import_info_2")+"")&&G(E,_),r&16&&h!==(h=s[4]("main.stats.import_info_3")+"")&&(p.innerHTML=h),C===(C=z(s))&&A?A.p(s,r):(A.d(1),A=C(s),A&&(A.c(),A.m(b,null))),r&1&&at(n,s[0]),r&16&&M!==(M=s[4]("main.stats.import")+"")&&G(H,M),r&8&&I!==(I=!s[3])&&(S.disabled=I)},d(s){s&&f(t),s&&f(T),s&&f(b),A.d(),s&&f(u),s&&f(n),s&&f(N),s&&f(S),L=!1,nt(R)}}}function Dt(e){let t,a=e[4]("main.stats.invalid_stats")+"",i;return{c(){t=P("\u274C "),i=P(a)},l(l){t=g(l,"\u274C "),i=g(l,a)},m(l,o){y(l,t,o),y(l,i,o)},p(l,o){o&16&&a!==(a=l[4]("main.stats.invalid_stats")+"")&&G(i,a)},d(l){l&&f(t),l&&f(i)}}}function Nt(e){let t,a=e[4]("main.stats.ready_to_import")+"",i;return{c(){t=P("\u2705 "),i=P(a)},l(l){t=g(l,"\u2705 "),i=g(l,a)},m(l,o){y(l,t,o),y(l,i,o)},p(l,o){o&16&&a!==(a=l[4]("main.stats.ready_to_import")+"")&&G(i,a)},d(l){l&&f(t),l&&f(i)}}}function Pt(e){let t=e[4]("main.stats.paste_your_stats")+"",a;return{c(){a=P(t)},l(i){a=g(i,t)},m(i,l){y(i,a,l)},p(i,l){l&16&&t!==(t=i[4]("main.stats.paste_your_stats")+"")&&G(a,t)},d(i){i&&f(a)}}}function rt(e){let t,a=e[4]("main.stats.export_instructions")+"",i,l,o,_,E,d,p=e[4]("main.stats.copy")+"",h,T,b;return{c(){t=w("label"),i=P(a),l=P(":"),o=x(),_=w("textarea"),E=x(),d=w("button"),h=P(p),this.h()},l(u){t=O(u,"LABEL",{for:!0,class:!0});var n=D(t);i=g(n,a),l=g(n,":"),n.forEach(f),o=B(u),_=O(u,"TEXTAREA",{id:!0,name:!0,rows:!0,class:!0}),D(_).forEach(f),E=B(u),d=O(u,"BUTTON",{class:!0});var N=D(d);h=g(N,p),N.forEach(f),this.h()},h(){v(t,"for","export_text"),v(t,"class","svelte-18ehvcx"),v(_,"id","export_text"),v(_,"name","export_text"),v(_,"rows","4"),_.value=e[2],_.readOnly=!0,v(_,"class","svelte-18ehvcx"),v(d,"class","svelte-18ehvcx"),K(d,"align-self","flex-start")},m(u,n){y(u,t,n),m(t,i),m(t,l),y(u,o,n),y(u,_,n),y(u,E,n),y(u,d,n),m(d,h),T||(b=j(d,"click",e[5]),T=!0)},p(u,n){n&16&&a!==(a=u[4]("main.stats.export_instructions")+"")&&G(i,a),n&4&&(_.value=u[2]),n&16&&p!==(p=u[4]("main.stats.copy")+"")&&G(h,p)},d(u){u&&f(t),u&&f(o),u&&f(_),u&&f(E),u&&f(d),T=!1,b()}}}function gt(e){let t,a,i,l,o,_=e[4]("main.stats.back_up_and_restore_your_stats")+"",E,d,p,h,T=e[4]("main.stats.import_stats")+"",b,u,n,N=e[4]("main.stats.export_stats")+"",S,M,H,I,L,R=e[4]("main.other.back")+"",z,C,A,s=e[1]==="import"&&ot(e),r=e[1]==="export"&&rt(e);return{c(){t=w("section"),a=w("h1"),i=P("Word Peaks"),l=x(),o=w("p"),E=P(_),d=x(),p=w("div"),h=w("button"),b=P(T),u=x(),n=w("button"),S=P(N),M=x(),s&&s.c(),H=x(),r&&r.c(),I=x(),L=w("a"),z=P(R),this.h()},l(k){t=O(k,"SECTION",{class:!0});var c=D(t);a=O(c,"H1",{});var q=D(a);i=g(q,"Word Peaks"),q.forEach(f),l=B(c),o=O(c,"P",{class:!0});var J=D(o);E=g(J,_),J.forEach(f),d=B(c),p=O(c,"DIV",{class:!0});var V=D(p);h=O(V,"BUTTON",{class:!0});var tt=D(h);b=g(tt,T),tt.forEach(f),u=B(V),n=O(V,"BUTTON",{class:!0});var et=D(n);S=g(et,N),et.forEach(f),V.forEach(f),M=B(c),s&&s.l(c),H=B(c),r&&r.l(c),I=B(c),L=O(c,"A",{href:!0});var st=D(L);z=g(st,R),st.forEach(f),c.forEach(f),this.h()},h(){v(o,"class","svelte-18ehvcx"),K(o,"margin-bottom","1.5rem"),v(h,"class","svelte-18ehvcx"),F(h,"active",e[1]==="import"),v(n,"class","svelte-18ehvcx"),F(n,"active",e[1]==="export"),v(p,"class","mode-buttons svelte-18ehvcx"),v(L,"href",ct+"/"),K(L,"margin-top","3rem"),K(L,"text-align","center"),v(t,"class","svelte-18ehvcx")},m(k,c){y(k,t,c),m(t,a),m(a,i),m(t,l),m(t,o),m(o,E),m(t,d),m(t,p),m(p,h),m(h,b),m(p,u),m(p,n),m(n,S),m(t,M),s&&s.m(t,null),m(t,H),r&&r.m(t,null),m(t,I),m(t,L),m(L,z),C||(A=[j(h,"click",e[6]),j(n,"click",e[7])],C=!0)},p(k,[c]){c&16&&_!==(_=k[4]("main.stats.back_up_and_restore_your_stats")+"")&&G(E,_),c&16&&T!==(T=k[4]("main.stats.import_stats")+"")&&G(b,T),c&2&&F(h,"active",k[1]==="import"),c&16&&N!==(N=k[4]("main.stats.export_stats")+"")&&G(S,N),c&2&&F(n,"active",k[1]==="export"),k[1]==="import"?s?s.p(k,c):(s=ot(k),s.c(),s.m(t,H)):s&&(s.d(1),s=null),k[1]==="export"?r?r.p(k,c):(r=rt(k),r.c(),r.m(t,I)):r&&(r.d(1),r=null),c&16&&R!==(R=k[4]("main.other.back")+"")&&G(z,R)},i:lt,o:lt,d(k){k&&f(t),s&&s.d(),r&&r.d(),C=!1,nt(A)}}}const Z={theme:{"--toastBackground":"var(--cta-color)"}},U=e=>typeof e=="number"&&e>=0,X=e=>e instanceof Array&&e.every(U);function Lt(e){if(!e)return!1;try{const[t,a,i,l,o]=JSON.parse(e);if(t!==ft)throw"bad-version";if(!U(a))throw"invalid-last-daily";const[_,E,d,p,h]=i;if(!U(_)||!U(E)||!U(d)||!U(p)||!X(h))throw"invalid-stats";const[T,b,u,n]=l;if(!U(T)||!X(b)||!X(u)||!U(n))throw"invalid-time-stats";if(o){const[N,S,M,H,I,L,R,z]=o;if(N!=="daily"||!U(S)||typeof M!="boolean"||typeof H!="string"||H.length!==it||!(I instanceof Array)||I.some(C=>typeof C!="string"||C.length!==it)||!X(L)||R!==null||typeof z!="boolean")throw"invalid-daily-detail"}}catch(t){return console.warn(t),!1}return!0}const vt=["currentStreak","bestStreak","totalGames","wonGames","distribution"],At=e=>vt.map(t=>e[t]),ht=["gameCount","guessTotals","guessCounts","fastestGame"],xt=e=>ht.map(t=>e[t]),dt=["mode","dayNumber","hardMode","answer","guesses","guessTimes","hash","fastest"],Bt=e=>e===null?null:dt.map(t=>e[t]),$=(e,t)=>Object.fromEntries(e.map((a,i)=>[t[i],a]));function Ht(){return JSON.stringify([ft,W(ut),At(W(_t)),xt(W(mt)),Bt(W(pt))])}function It(e){const[t,a,i,l,o]=JSON.parse(e);ut.set(a),_t.set($(i,vt)),mt.set($(l,ht)),o!==null&&pt.set($(o,dt)),St("statsImported"),Y.push(W(Q)("main.messages.stats_imported"),Z),wt(`${ct}/`)}function Mt(e,t,a){let i,l;Tt(e,Q,u=>a(4,l=u));let o=null,_,E="";function d(){Y.push(W(Q)("main.messages.stats_copied"),Z),Ot(E).then(()=>Y.push("Stats copied!",Z),()=>Y.push(W(Q)("main.messages.could_not_do"),Z))}yt(()=>a(2,E=Ht()));const p=()=>a(1,o=o==="import"?null:"import"),h=()=>a(1,o=o==="export"?null:"export");function T(){_=this.value,a(0,_)}const b=()=>It(_);return e.$$.update=()=>{e.$$.dirty&1&&a(3,i=Lt(_))},[_,o,E,i,l,d,p,h,T,b]}class Jt extends bt{constructor(t){super(),Et(this,t,Mt,gt,kt,{})}}export{Jt as default}; diff --git a/_app/start-51802848.js b/_app/start-744ec40c.js similarity index 93% rename from _app/start-51802848.js rename to _app/start-744ec40c.js index 9928bc6..148cf61 100644 --- a/_app/start-51802848.js +++ b/_app/start-744ec40c.js @@ -1 +1 @@ -var He=Object.defineProperty,Qe=Object.defineProperties;var et=Object.getOwnPropertyDescriptors;var de=Object.getOwnPropertySymbols;var je=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable;var Ve=(n,e,t)=>e in n?He(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))je.call(e,t)&&Ve(n,t,e[t]);if(de)for(var t of de(e))Ce.call(e,t)&&Ve(n,t,e[t]);return n},re=(n,e)=>Qe(n,et(e));var ze=(n,e)=>{var t={};for(var a in n)je.call(n,a)&&e.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&de)for(var a of de(n))e.indexOf(a)<0&&Ce.call(n,a)&&(t[a]=n[a]);return t};import{S as tt,i as nt,s as st,e as rt,c as at,a as it,d as C,b as ve,f as M,g as z,t as ot,h as ct,j as lt,k as ft,l as T,m as ut,n as G,o as x,p as X,q as D,r as dt,u as pt,v as Ee,w as q,x as J,y as ie,z as K,A as oe,B as ce,C as B,D as le,E as qe}from"./chunks/index-0dc809ca.js";import{_ as F,w as pe}from"./chunks/preload-helper-5ea9bf72.js";import{s as _t,a as ht}from"./chunks/paths-396f020f.js";import{i as mt}from"./chunks/singletons-d1fb5791.js";function gt(n){let e,t,a;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u()),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function wt(n){let e,t,a;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={$$slots:{default:[$t]},$$scope:{ctx:s}};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u(s)),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function bt(n){let e,t,a;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u()),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function vt(n){let e,t,a;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={$$slots:{default:[yt]},$$scope:{ctx:s}};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u(s)),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function yt(n){let e,t,a;const l=[n[3]||{}];var c=n[0][2];function u(s){let r={};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u()),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function $t(n){let e,t,a,l;const c=[vt,bt],u=[];function s(r,i){return r[0][2]?0:1}return e=s(n),t=u[e]=c[e](n),{c(){t.c(),a=T()},l(r){t.l(r),a=T()},m(r,i){u[e].m(r,i),z(r,a,i),l=!0},p(r,i){let d=e;e=s(r),e===d?u[e].p(r,i):(G(),x(u[d],1,1,()=>{u[d]=null}),X(),t=u[e],t?t.p(r,i):(t=u[e]=c[e](r),t.c()),D(t,1),t.m(a.parentNode,a))},i(r){l||(D(t),l=!0)},o(r){x(t),l=!1},d(r){u[e].d(r),r&&C(a)}}}function Je(n){let e,t=n[5]&&Ke(n);return{c(){e=rt("div"),t&&t.c(),this.h()},l(a){e=at(a,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=it(e);t&&t.l(l),l.forEach(C),this.h()},h(){ve(e,"id","svelte-announcer"),ve(e,"aria-live","assertive"),ve(e,"aria-atomic","true"),M(e,"position","absolute"),M(e,"left","0"),M(e,"top","0"),M(e,"clip","rect(0 0 0 0)"),M(e,"clip-path","inset(50%)"),M(e,"overflow","hidden"),M(e,"white-space","nowrap"),M(e,"width","1px"),M(e,"height","1px")},m(a,l){z(a,e,l),t&&t.m(e,null)},p(a,l){a[5]?t?t.p(a,l):(t=Ke(a),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(a){a&&C(e),t&&t.d()}}}function Ke(n){let e;return{c(){e=ot(n[6])},l(t){e=ct(t,n[6])},m(t,a){z(t,e,a)},p(t,a){a&64&<(e,t[6])},d(t){t&&C(e)}}}function Et(n){let e,t,a,l,c;const u=[wt,gt],s=[];function r(d,R){return d[0][1]?0:1}e=r(n),t=s[e]=u[e](n);let i=n[4]&&Je(n);return{c(){t.c(),a=ft(),i&&i.c(),l=T()},l(d){t.l(d),a=ut(d),i&&i.l(d),l=T()},m(d,R){s[e].m(d,R),z(d,a,R),i&&i.m(d,R),z(d,l,R),c=!0},p(d,[R]){let v=e;e=r(d),e===v?s[e].p(d,R):(G(),x(s[v],1,1,()=>{s[v]=null}),X(),t=s[e],t?t.p(d,R):(t=s[e]=u[e](d),t.c()),D(t,1),t.m(a.parentNode,a)),d[4]?i?i.p(d,R):(i=Je(d),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i(d){c||(D(t),c=!0)},o(d){x(t),c=!1},d(d){s[e].d(d),d&&C(a),i&&i.d(d),d&&C(l)}}}function kt(n,e,t){let{stores:a}=e,{page:l}=e,{components:c}=e,{props_0:u=null}=e,{props_1:s=null}=e,{props_2:r=null}=e;dt("__svelte__",a),pt(a.page.notify);let i=!1,d=!1,R=null;return Ee(()=>{const v=a.page.subscribe(()=>{i&&(t(5,d=!0),t(6,R=document.title||"untitled page"))});return t(4,i=!0),v}),n.$$set=v=>{"stores"in v&&t(7,a=v.stores),"page"in v&&t(8,l=v.page),"components"in v&&t(0,c=v.components),"props_0"in v&&t(1,u=v.props_0),"props_1"in v&&t(2,s=v.props_1),"props_2"in v&&t(3,r=v.props_2)},n.$$.update=()=>{n.$$.dirty&384&&a.page.set(l)},[c,u,s,r,i,d,R,a,l]}class Rt extends tt{constructor(e){super(),nt(this,e,kt,Et,st,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const Lt={},Re=[()=>F(()=>import("./pages/__layout.svelte-cd2d552a.js"),["pages/__layout.svelte-cd2d552a.js","assets/pages/__layout.svelte-f86d9105.css","chunks/index-0dc809ca.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js","chunks/index-83aebdf3.js","chunks/share-c6a42f06.js"]),()=>F(()=>import("./error.svelte-4a6fc852.js"),["error.svelte-4a6fc852.js","chunks/index-0dc809ca.js"]),()=>F(()=>import("./pages/debug.svelte-f609ff7c.js"),["pages/debug.svelte-f609ff7c.js","assets/pages/debug.svelte-8ccecfd9.css","chunks/index-0dc809ca.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js"]),()=>F(()=>import("./pages/index.svelte-8dd7b11a.js"),["pages/index.svelte-8dd7b11a.js","chunks/preload-helper-5ea9bf72.js","chunks/index-0dc809ca.js","chunks/index-8528d551.js","assets/index-41661fd0.css","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/index-83aebdf3.js","chunks/share-c6a42f06.js","chunks/paths-396f020f.js"]),()=>F(()=>import("./pages/no-landscape.svelte-31781635.js"),["pages/no-landscape.svelte-31781635.js","assets/pages/no-landscape.svelte-494a552e.css","chunks/index-0dc809ca.js","chunks/paths-396f020f.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js","chunks/index-8528d551.js","assets/index-41661fd0.css","chunks/index-83aebdf3.js","chunks/share-c6a42f06.js"]),()=>F(()=>import("./pages/random.svelte-a42d7598.js"),["pages/random.svelte-a42d7598.js","chunks/index-0dc809ca.js","chunks/navigation-0e6511d1.js","chunks/singletons-d1fb5791.js","chunks/paths-396f020f.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js"]),()=>F(()=>import("./pages/stats.svelte-001a1960.js"),["pages/stats.svelte-001a1960.js","assets/pages/stats.svelte-9ee38c33.css","chunks/index-0dc809ca.js","chunks/index-0686f894.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js","chunks/navigation-0e6511d1.js","chunks/singletons-d1fb5791.js","chunks/share-c6a42f06.js","chunks/paths-396f020f.js"])],St={"":[[0,3],[1]],debug:[[0,2],[1]],"no-landscape":[[0,4],[1]],random:[[0,5],[1]],stats:[[0,6],[1]]};function Be(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Me(n){if(n.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in n)throw new Error("maxage should be replaced with cache: { maxage }");const e=n.status&&n.status>=400&&n.status<=599&&!n.redirect;if(n.error||e){const t=n.status;if(!n.error&&e)return{status:t||500,error:new Error};const a=typeof n.error=="string"?new Error(n.error):n.error;return a instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:a}):{status:t,error:a}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof a}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof n.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(n.dependencies&&(!Array.isArray(n.dependencies)||n.dependencies.some(t=>typeof t!="string")))return{status:500,error:new Error('"dependencies" property returned from load() must be of type string[]')};if(n.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return n}function At(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Ut(n){let e=5381,t=n.length;if(typeof n=="string")for(;t;)e=e*33^n.charCodeAt(--t);else for(;t;)e=e*33^n[--t];return(e>>>0).toString(36)}function We(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function ke(){return{x:pageXOffset,y:pageYOffset}}function Ye(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Fe(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function Ge(n){const e=pe(n);let t=!0;function a(){t=!0,e.update(u=>u)}function l(u){t=!1,e.set(u)}function c(u){let s;return e.subscribe(r=>{(s===void 0||t&&r!==s)&&u(s=r)})}return{notify:a,set:l,subscribe:c}}function Ot(){const{set:n,subscribe:e}=pe(!1),t="1727335498723";let a;async function l(){clearTimeout(a);const u=await fetch(`${ht}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(u.ok){const{version:s}=await u.json(),r=s!==t;return r&&(n(!0),clearTimeout(a)),r}else throw new Error(`Version check failed: ${u.status}`)}return{subscribe:e,check:l}}function Nt(n,e){let a=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(a+=`[sveltekit\\:data-body="${Ut(e.body)}"]`);const l=document.querySelector(a);if(l&&l.textContent){const c=JSON.parse(l.textContent),{body:u}=c,s=ze(c,["body"]);return Promise.resolve(new Response(u,s))}return fetch(n,e)}const It=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function Pt(n){const e=[],t=[];let a=!0;return{pattern:n===""?/^\/$/:new RegExp(`^${decodeURIComponent(n).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,u,s)=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(r)return e.push(r[1]),t.push(r[2]),"(?:/(.*))?";const i=u===s.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,R)=>{if(R%2){const[,v,Q,Z]=It.exec(d);return e.push(Q),t.push(Z),v?"(.*?)":"([^/]+?)"}return i&&d.includes(".")&&(a=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${a?"/?":""}$`),names:e,types:t}}function Tt(n,e,t,a){const l={};for(let c=0;c{const{pattern:r,names:i,types:d}=Pt(l);return{id:l,exec:R=>{const v=r.exec(R);if(v)return Tt(v,i,d,t)},a:c.map(R=>n[R]),b:u.map(R=>n[R]),has_shadow:!!s}})}const Ze="sveltekit:scroll",W="sveltekit:index",ye=xt(Re,St,Lt),Dt=Re[0](),Vt=Re[1](),Xe={};let ae={};try{ae=JSON.parse(sessionStorage[Ze])}catch{}function $e(n){ae[n]=ke()}function jt({target:n,session:e,base:t,trailing_slash:a}){var xe;const l=new Map,c=[],u={url:Ge({}),page:Ge({}),navigating:pe(null),session:pe(e),updated:Ot()},s={id:null,promise:null},r={before_navigate:[],after_navigate:[]};let i={branch:[],error:null,session_id:0,stuff:Xe,url:null},d=!1,R=!0,v=!1,Q=1,Z=null,Le,Se,Ae=!1;u.session.subscribe(async o=>{Se=o,Ae&&(Q+=1,ge(new URL(location.href),[],!0))}),Ae=!0;let H=!0,V=(xe=history.state)==null?void 0:xe[W];V||(V=Date.now(),history.replaceState(re(P({},history.state),{[W]:V}),"",location.href));const _e=ae[V];_e&&(history.scrollRestoration="manual",scrollTo(_e.x,_e.y));let he=!1,me,Ue;async function Oe(o,{noscroll:p=!1,replaceState:w=!1,keepfocus:f=!1,state:_={}},b){const h=new URL(o,We(document));if(H)return be({url:h,scroll:p?ke():null,keepfocus:f,redirect_chain:b,details:{state:_,replaceState:w},accepted:()=>{},blocked:()=>{}});await ne(h)}async function Ne(o){const p=Te(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return s.promise=Pe(p,!1),s.id=p.id,s.promise}async function ge(o,p,w,f){var g,$,L;const _=Te(o),b=Ue={};let h=_&&await Pe(_,w);if(!h&&o.origin===location.origin&&o.pathname===location.pathname&&(h=await te({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!h)return await ne(o),!1;if(Ue!==b)return!1;if(c.length=0,h.redirect)if(p.length>10||p.includes(o.pathname))h=await te({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return H?Oe(new URL(h.redirect,o).href,{},[...p,o.pathname]):await ne(new URL(h.redirect,location.href)),!1;else(($=(g=h.props)==null?void 0:g.page)==null?void 0:$.status)>=400&&await u.updated.check()&&await ne(o);if(v=!0,f&&f.details){const{details:E}=f,k=E.replaceState?0:1;E.state[W]=V+=k,history[E.replaceState?"replaceState":"pushState"](E.state,"",o)}if(d?(i=h.state,Le.$set(h.props)):Ie(h),f){const{scroll:E,keepfocus:k}=f;if(!k){const m=document.body,U=m.getAttribute("tabindex");(L=getSelection())==null||L.removeAllRanges(),m.tabIndex=-1,m.focus(),U!==null?m.setAttribute("tabindex",U):m.removeAttribute("tabindex")}if(await qe(),R){const m=o.hash&&document.getElementById(o.hash.slice(1));E?scrollTo(E.x,E.y):m?m.scrollIntoView():scrollTo(0,0)}}else await qe();s.promise=null,s.id=null,R=!0,v=!1,h.props.page&&(me=h.props.page);const y=h.state.branch[h.state.branch.length-1];return H=(y==null?void 0:y.module.router)!==!1,!0}function Ie(o){i=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),me=o.props.page,Le=new Rt({target:n,props:re(P({},o.props),{stores:u}),hydrate:!0}),d=!0,H){const w={from:null,to:new URL(location.href)};r.after_navigate.forEach(f=>f(w))}}async function we({url:o,params:p,stuff:w,branch:f,status:_,error:b,routeId:h}){var m,U;const y=f.filter(Boolean),g=y.find(A=>{var N;return(N=A.loaded)==null?void 0:N.redirect}),$={redirect:(m=g==null?void 0:g.loaded)==null?void 0:m.redirect,state:{url:o,params:p,branch:f,error:b,stuff:w,session_id:Q},props:{components:y.map(A=>A.module.default)}};for(let A=0;A{Object.defineProperty($.props.page,N,{get:()=>{throw new Error(`$page.${N} has been replaced by $page.url.${S}`)}})};A("origin","origin"),A("path","pathname"),A("query","searchParams")}const E=y[y.length-1],k=(U=E==null?void 0:E.loaded)==null?void 0:U.cache;if(k){const A=o.pathname+o.search;let N=!1;const S=()=>{l.get(A)===$&&l.delete(A),I(),clearTimeout(O)},O=setTimeout(S,k.maxage*1e3),I=u.session.subscribe(()=>{N&&S()});N=!0,l.set(A,$)}return $}async function ee({status:o,error:p,module:w,url:f,params:_,stuff:b,props:h,routeId:y}){const g={module:w,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:b};function $(k){const{href:m}=new URL(k,f);g.uses.dependencies.add(m)}h&&g.uses.dependencies.add(f.href);const L={};for(const k in _)Object.defineProperty(L,k,{get(){return g.uses.params.add(k),_[k]},enumerable:!0});const E=Se;if(w.load){const k={routeId:y,params:L,props:h||{},get url(){return g.uses.url=!0,f},get session(){return g.uses.session=!0,E},get stuff(){return g.uses.stuff=!0,P({},b)},fetch(U,A){const N=typeof U=="string"?U:U.url;return $(N),d?fetch(U,A):Nt(U,A)},status:o!=null?o:null,error:p!=null?p:null},m=await w.load.call(null,k);if(!m)throw new Error("load function must return a value");g.loaded=Me(m),g.loaded.stuff&&(g.stuff=g.loaded.stuff),g.loaded.dependencies&&g.loaded.dependencies.forEach($)}else h&&(g.loaded=Me({props:h}));return g}async function Pe({id:o,url:p,params:w,route:f},_){var U,A,N;if(s.id===o&&s.promise)return s.promise;if(!_){const S=l.get(o);if(S)return S}const{a:b,b:h,has_shadow:y}=f,g=i.url&&{url:o!==i.url.pathname+i.url.search,params:Object.keys(w).filter(S=>i.params[S]!==w[S]),session:Q!==i.session_id};let $=[],L=Xe,E=!1,k=200,m=null;b.forEach(S=>S());e:for(let S=0;Sj.uses.params.has(Y))||g.session&&j.uses.session||Array.from(j.uses.dependencies).some(Y=>c.some(ue=>ue(Y)))||E&&j.uses.stuff){let Y={};const ue=y&&S===b.length-1;if(ue){const se=await fetch(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(se.ok){const De=se.headers.get("x-sveltekit-location");if(De)return{redirect:De,props:{},state:i};Y=se.status===204?{}:await se.json()}else k=se.status,m=new Error("Failed to load data")}if(m||(O=await ee({module:I,url:p,params:w,props:Y,stuff:L,routeId:f.id})),O&&(ue&&(O.uses.url=!0),O.loaded)){if(O.loaded.error&&(k=O.loaded.status,m=O.loaded.error),O.loaded.redirect)return{redirect:O.loaded.redirect,props:{},state:i};O.loaded.stuff&&(E=!0)}}else O=j}catch(I){k=500,m=Be(I)}if(m){for(;S--;)if(h[S]){let I,j,fe=S;for(;!(j=$[fe]);)fe-=1;try{if(I=await ee({status:k,error:m,module:await h[S](),url:p,params:w,stuff:j.stuff,routeId:f.id}),(U=I==null?void 0:I.loaded)!=null&&U.error)continue;(A=I==null?void 0:I.loaded)!=null&&A.stuff&&(L=P(P({},L),I.loaded.stuff)),$=$.slice(0,fe+1).concat(I);break e}catch{continue}}return await te({status:k,error:m,url:p,routeId:f.id})}else(N=O==null?void 0:O.loaded)!=null&&N.stuff&&(L=P(P({},L),O.loaded.stuff)),$.push(O)}return await we({url:p,params:w,stuff:L,branch:$,status:k,error:m,routeId:f.id})}async function te({status:o,error:p,url:w,routeId:f}){var y,g;const _={},b=await ee({module:await Dt,url:w,params:_,stuff:{},routeId:f}),h=await ee({status:o,error:p,module:await Vt,url:w,params:_,stuff:b&&b.loaded&&b.loaded.stuff||{},routeId:f});return await we({url:w,params:_,stuff:P(P({},(y=b==null?void 0:b.loaded)==null?void 0:y.stuff),(g=h==null?void 0:h.loaded)==null?void 0:g.stuff),branch:[b,h],status:o,error:p,routeId:f})}function Te(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const w of ye){const f=w.exec(p);if(f)return{id:o.pathname+o.search,route:w,params:f,url:o}}}async function be({url:o,scroll:p,keepfocus:w,redirect_chain:f,details:_,accepted:b,blocked:h}){const y=i.url;let g=!1;const $={from:y,to:o,cancel:()=>g=!0};if(r.before_navigate.forEach(m=>m($)),g){h();return}const L=At(o.pathname,a),E=new URL(o.origin+L+o.search+o.hash);if($e(V),b(),d&&u.navigating.set({from:i.url,to:E}),await ge(E,f,!1,{scroll:p,keepfocus:w,details:_})){const m={from:y,to:E};r.after_navigate.forEach(U=>U(m)),u.navigating.set(null)}}function ne(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{Ee(()=>(r.after_navigate.push(o),()=>{const p=r.after_navigate.indexOf(o);r.after_navigate.splice(p,1)}))},before_navigate:o=>{Ee(()=>(r.before_navigate.push(o),()=>{const p=r.before_navigate.indexOf(o);r.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(v||!d)&&(R=!1)},goto:(o,p={})=>Oe(o,p,[]),invalidate:o=>{if(typeof o=="function")c.push(o);else{const{href:p}=new URL(o,location.href);c.push(w=>w===p)}return Z||(Z=Promise.resolve().then(async()=>{await ge(new URL(location.href),[],!0),Z=null})),Z},prefetch:async o=>{const p=new URL(o,We(document));await Ne(p)},prefetch_routes:async o=>{const w=(o?ye.filter(f=>o.some(_=>f.exec(_))):ye).map(f=>Promise.all(f.a.map(_=>_())));await Promise.all(w)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",f=>{let _=!1;const b={from:i.url,to:null,cancel:()=>_=!0};r.before_navigate.forEach(h=>h(b)),_?(f.preventDefault(),f.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){$e(V);try{sessionStorage[Ze]=JSON.stringify(ae)}catch{}}});const o=f=>{const _=Ye(f);_&&_.href&&_.hasAttribute("sveltekit:prefetch")&&Ne(Fe(_))};let p;const w=f=>{clearTimeout(p),p=setTimeout(()=>{var _;(_=f.target)==null||_.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",w),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",f=>{if(!H||f.button||f.which!==1||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||f.defaultPrevented)return;const _=Ye(f);if(!_||!_.href)return;const b=_ instanceof SVGAElement,h=Fe(_);if(!b&&h.origin==="null")return;const y=(_.getAttribute("rel")||"").split(/\s+/);if(_.hasAttribute("download")||y.includes("external")||_.hasAttribute("sveltekit:reload")||(b?_.target.baseVal:_.target))return;const[g,$]=h.href.split("#");if($!==void 0&&g===location.href.split("#")[0]){he=!0,$e(V),u.page.set(re(P({},me),{url:h})),u.page.notify();return}be({url:h,scroll:_.hasAttribute("sveltekit:noscroll")?ke():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:h.href===location.href},accepted:()=>f.preventDefault(),blocked:()=>f.preventDefault()})}),addEventListener("popstate",f=>{if(f.state&&H){if(f.state[W]===V)return;be({url:new URL(location.href),scroll:ae[f.state[W]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{V=f.state[W]},blocked:()=>{const _=V-f.state[W];history.go(_)}})}}),addEventListener("hashchange",()=>{he&&(he=!1,history.replaceState(re(P({},history.state),{[W]:++V}),"",location.href))})},_hydrate:async({status:o,error:p,nodes:w,params:f,routeId:_})=>{const b=new URL(location.href),h=[];let y={},g,$;try{for(let L=0;Le in n?He(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))je.call(e,t)&&Ve(n,t,e[t]);if(de)for(var t of de(e))Ce.call(e,t)&&Ve(n,t,e[t]);return n},re=(n,e)=>Qe(n,et(e));var ze=(n,e)=>{var t={};for(var a in n)je.call(n,a)&&e.indexOf(a)<0&&(t[a]=n[a]);if(n!=null&&de)for(var a of de(n))e.indexOf(a)<0&&Ce.call(n,a)&&(t[a]=n[a]);return t};import{S as tt,i as nt,s as st,e as rt,c as at,a as it,d as C,b as ve,f as M,g as z,t as ot,h as ct,j as lt,k as ft,l as T,m as ut,n as G,o as x,p as X,q as D,r as dt,u as pt,v as Ee,w as q,x as J,y as ie,z as K,A as oe,B as ce,C as B,D as le,E as qe}from"./chunks/index-0dc809ca.js";import{_ as F,w as pe}from"./chunks/preload-helper-5ea9bf72.js";import{s as _t,a as ht}from"./chunks/paths-396f020f.js";import{i as mt}from"./chunks/singletons-d1fb5791.js";function gt(n){let e,t,a;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u()),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function wt(n){let e,t,a;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={$$slots:{default:[$t]},$$scope:{ctx:s}};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u(s)),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function bt(n){let e,t,a;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u()),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function vt(n){let e,t,a;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={$$slots:{default:[yt]},$$scope:{ctx:s}};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u(s)),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function yt(n){let e,t,a;const l=[n[3]||{}];var c=n[0][2];function u(s){let r={};for(let i=0;i{B(d,1)}),X()}c?(e=q(c,u()),J(e.$$.fragment),D(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(s){a||(e&&D(e.$$.fragment,s),a=!0)},o(s){e&&x(e.$$.fragment,s),a=!1},d(s){s&&C(t),e&&B(e,s)}}}function $t(n){let e,t,a,l;const c=[vt,bt],u=[];function s(r,i){return r[0][2]?0:1}return e=s(n),t=u[e]=c[e](n),{c(){t.c(),a=T()},l(r){t.l(r),a=T()},m(r,i){u[e].m(r,i),z(r,a,i),l=!0},p(r,i){let d=e;e=s(r),e===d?u[e].p(r,i):(G(),x(u[d],1,1,()=>{u[d]=null}),X(),t=u[e],t?t.p(r,i):(t=u[e]=c[e](r),t.c()),D(t,1),t.m(a.parentNode,a))},i(r){l||(D(t),l=!0)},o(r){x(t),l=!1},d(r){u[e].d(r),r&&C(a)}}}function Je(n){let e,t=n[5]&&Ke(n);return{c(){e=rt("div"),t&&t.c(),this.h()},l(a){e=at(a,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=it(e);t&&t.l(l),l.forEach(C),this.h()},h(){ve(e,"id","svelte-announcer"),ve(e,"aria-live","assertive"),ve(e,"aria-atomic","true"),M(e,"position","absolute"),M(e,"left","0"),M(e,"top","0"),M(e,"clip","rect(0 0 0 0)"),M(e,"clip-path","inset(50%)"),M(e,"overflow","hidden"),M(e,"white-space","nowrap"),M(e,"width","1px"),M(e,"height","1px")},m(a,l){z(a,e,l),t&&t.m(e,null)},p(a,l){a[5]?t?t.p(a,l):(t=Ke(a),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(a){a&&C(e),t&&t.d()}}}function Ke(n){let e;return{c(){e=ot(n[6])},l(t){e=ct(t,n[6])},m(t,a){z(t,e,a)},p(t,a){a&64&<(e,t[6])},d(t){t&&C(e)}}}function Et(n){let e,t,a,l,c;const u=[wt,gt],s=[];function r(d,R){return d[0][1]?0:1}e=r(n),t=s[e]=u[e](n);let i=n[4]&&Je(n);return{c(){t.c(),a=ft(),i&&i.c(),l=T()},l(d){t.l(d),a=ut(d),i&&i.l(d),l=T()},m(d,R){s[e].m(d,R),z(d,a,R),i&&i.m(d,R),z(d,l,R),c=!0},p(d,[R]){let v=e;e=r(d),e===v?s[e].p(d,R):(G(),x(s[v],1,1,()=>{s[v]=null}),X(),t=s[e],t?t.p(d,R):(t=s[e]=u[e](d),t.c()),D(t,1),t.m(a.parentNode,a)),d[4]?i?i.p(d,R):(i=Je(d),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i(d){c||(D(t),c=!0)},o(d){x(t),c=!1},d(d){s[e].d(d),d&&C(a),i&&i.d(d),d&&C(l)}}}function kt(n,e,t){let{stores:a}=e,{page:l}=e,{components:c}=e,{props_0:u=null}=e,{props_1:s=null}=e,{props_2:r=null}=e;dt("__svelte__",a),pt(a.page.notify);let i=!1,d=!1,R=null;return Ee(()=>{const v=a.page.subscribe(()=>{i&&(t(5,d=!0),t(6,R=document.title||"untitled page"))});return t(4,i=!0),v}),n.$$set=v=>{"stores"in v&&t(7,a=v.stores),"page"in v&&t(8,l=v.page),"components"in v&&t(0,c=v.components),"props_0"in v&&t(1,u=v.props_0),"props_1"in v&&t(2,s=v.props_1),"props_2"in v&&t(3,r=v.props_2)},n.$$.update=()=>{n.$$.dirty&384&&a.page.set(l)},[c,u,s,r,i,d,R,a,l]}class Rt extends tt{constructor(e){super(),nt(this,e,kt,Et,st,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const Lt={},Re=[()=>F(()=>import("./pages/__layout.svelte-08b924f3.js"),["pages/__layout.svelte-08b924f3.js","assets/pages/__layout.svelte-f86d9105.css","chunks/index-0dc809ca.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js","chunks/index-83aebdf3.js","chunks/share-84c0610e.js"]),()=>F(()=>import("./error.svelte-4a6fc852.js"),["error.svelte-4a6fc852.js","chunks/index-0dc809ca.js"]),()=>F(()=>import("./pages/debug.svelte-23c03f97.js"),["pages/debug.svelte-23c03f97.js","assets/pages/debug.svelte-8ccecfd9.css","chunks/index-0dc809ca.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js"]),()=>F(()=>import("./pages/index.svelte-86bf5c76.js"),["pages/index.svelte-86bf5c76.js","chunks/preload-helper-5ea9bf72.js","chunks/index-0dc809ca.js","chunks/index-0758e446.js","assets/index-41661fd0.css","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/index-83aebdf3.js","chunks/share-84c0610e.js","chunks/paths-396f020f.js"]),()=>F(()=>import("./pages/no-landscape.svelte-21f8aa5e.js"),["pages/no-landscape.svelte-21f8aa5e.js","assets/pages/no-landscape.svelte-494a552e.css","chunks/index-0dc809ca.js","chunks/paths-396f020f.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js","chunks/index-0758e446.js","assets/index-41661fd0.css","chunks/index-83aebdf3.js","chunks/share-84c0610e.js"]),()=>F(()=>import("./pages/random.svelte-cf789af5.js"),["pages/random.svelte-cf789af5.js","chunks/index-0dc809ca.js","chunks/navigation-0e6511d1.js","chunks/singletons-d1fb5791.js","chunks/paths-396f020f.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js"]),()=>F(()=>import("./pages/stats.svelte-e7af40d1.js"),["pages/stats.svelte-e7af40d1.js","assets/pages/stats.svelte-9ee38c33.css","chunks/index-0dc809ca.js","chunks/index-cbb289a9.js","assets/index-81b27de8.css","chunks/preload-helper-5ea9bf72.js","chunks/navigation-0e6511d1.js","chunks/singletons-d1fb5791.js","chunks/share-84c0610e.js","chunks/paths-396f020f.js"])],St={"":[[0,3],[1]],debug:[[0,2],[1]],"no-landscape":[[0,4],[1]],random:[[0,5],[1]],stats:[[0,6],[1]]};function Be(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Me(n){if(n.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in n)throw new Error("maxage should be replaced with cache: { maxage }");const e=n.status&&n.status>=400&&n.status<=599&&!n.redirect;if(n.error||e){const t=n.status;if(!n.error&&e)return{status:t||500,error:new Error};const a=typeof n.error=="string"?new Error(n.error):n.error;return a instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:a}):{status:t,error:a}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof a}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof n.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(n.dependencies&&(!Array.isArray(n.dependencies)||n.dependencies.some(t=>typeof t!="string")))return{status:500,error:new Error('"dependencies" property returned from load() must be of type string[]')};if(n.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return n}function At(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Ut(n){let e=5381,t=n.length;if(typeof n=="string")for(;t;)e=e*33^n.charCodeAt(--t);else for(;t;)e=e*33^n[--t];return(e>>>0).toString(36)}function We(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function ke(){return{x:pageXOffset,y:pageYOffset}}function Ye(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Fe(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function Ge(n){const e=pe(n);let t=!0;function a(){t=!0,e.update(u=>u)}function l(u){t=!1,e.set(u)}function c(u){let s;return e.subscribe(r=>{(s===void 0||t&&r!==s)&&u(s=r)})}return{notify:a,set:l,subscribe:c}}function Ot(){const{set:n,subscribe:e}=pe(!1),t="1727335589262";let a;async function l(){clearTimeout(a);const u=await fetch(`${ht}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(u.ok){const{version:s}=await u.json(),r=s!==t;return r&&(n(!0),clearTimeout(a)),r}else throw new Error(`Version check failed: ${u.status}`)}return{subscribe:e,check:l}}function Nt(n,e){let a=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(a+=`[sveltekit\\:data-body="${Ut(e.body)}"]`);const l=document.querySelector(a);if(l&&l.textContent){const c=JSON.parse(l.textContent),{body:u}=c,s=ze(c,["body"]);return Promise.resolve(new Response(u,s))}return fetch(n,e)}const It=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function Pt(n){const e=[],t=[];let a=!0;return{pattern:n===""?/^\/$/:new RegExp(`^${decodeURIComponent(n).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,u,s)=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(r)return e.push(r[1]),t.push(r[2]),"(?:/(.*))?";const i=u===s.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,R)=>{if(R%2){const[,v,Q,Z]=It.exec(d);return e.push(Q),t.push(Z),v?"(.*?)":"([^/]+?)"}return i&&d.includes(".")&&(a=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${a?"/?":""}$`),names:e,types:t}}function Tt(n,e,t,a){const l={};for(let c=0;c{const{pattern:r,names:i,types:d}=Pt(l);return{id:l,exec:R=>{const v=r.exec(R);if(v)return Tt(v,i,d,t)},a:c.map(R=>n[R]),b:u.map(R=>n[R]),has_shadow:!!s}})}const Ze="sveltekit:scroll",W="sveltekit:index",ye=xt(Re,St,Lt),Dt=Re[0](),Vt=Re[1](),Xe={};let ae={};try{ae=JSON.parse(sessionStorage[Ze])}catch{}function $e(n){ae[n]=ke()}function jt({target:n,session:e,base:t,trailing_slash:a}){var xe;const l=new Map,c=[],u={url:Ge({}),page:Ge({}),navigating:pe(null),session:pe(e),updated:Ot()},s={id:null,promise:null},r={before_navigate:[],after_navigate:[]};let i={branch:[],error:null,session_id:0,stuff:Xe,url:null},d=!1,R=!0,v=!1,Q=1,Z=null,Le,Se,Ae=!1;u.session.subscribe(async o=>{Se=o,Ae&&(Q+=1,ge(new URL(location.href),[],!0))}),Ae=!0;let H=!0,V=(xe=history.state)==null?void 0:xe[W];V||(V=Date.now(),history.replaceState(re(P({},history.state),{[W]:V}),"",location.href));const _e=ae[V];_e&&(history.scrollRestoration="manual",scrollTo(_e.x,_e.y));let he=!1,me,Ue;async function Oe(o,{noscroll:p=!1,replaceState:w=!1,keepfocus:f=!1,state:_={}},b){const h=new URL(o,We(document));if(H)return be({url:h,scroll:p?ke():null,keepfocus:f,redirect_chain:b,details:{state:_,replaceState:w},accepted:()=>{},blocked:()=>{}});await ne(h)}async function Ne(o){const p=Te(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return s.promise=Pe(p,!1),s.id=p.id,s.promise}async function ge(o,p,w,f){var g,$,L;const _=Te(o),b=Ue={};let h=_&&await Pe(_,w);if(!h&&o.origin===location.origin&&o.pathname===location.pathname&&(h=await te({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!h)return await ne(o),!1;if(Ue!==b)return!1;if(c.length=0,h.redirect)if(p.length>10||p.includes(o.pathname))h=await te({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return H?Oe(new URL(h.redirect,o).href,{},[...p,o.pathname]):await ne(new URL(h.redirect,location.href)),!1;else(($=(g=h.props)==null?void 0:g.page)==null?void 0:$.status)>=400&&await u.updated.check()&&await ne(o);if(v=!0,f&&f.details){const{details:E}=f,k=E.replaceState?0:1;E.state[W]=V+=k,history[E.replaceState?"replaceState":"pushState"](E.state,"",o)}if(d?(i=h.state,Le.$set(h.props)):Ie(h),f){const{scroll:E,keepfocus:k}=f;if(!k){const m=document.body,U=m.getAttribute("tabindex");(L=getSelection())==null||L.removeAllRanges(),m.tabIndex=-1,m.focus(),U!==null?m.setAttribute("tabindex",U):m.removeAttribute("tabindex")}if(await qe(),R){const m=o.hash&&document.getElementById(o.hash.slice(1));E?scrollTo(E.x,E.y):m?m.scrollIntoView():scrollTo(0,0)}}else await qe();s.promise=null,s.id=null,R=!0,v=!1,h.props.page&&(me=h.props.page);const y=h.state.branch[h.state.branch.length-1];return H=(y==null?void 0:y.module.router)!==!1,!0}function Ie(o){i=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),me=o.props.page,Le=new Rt({target:n,props:re(P({},o.props),{stores:u}),hydrate:!0}),d=!0,H){const w={from:null,to:new URL(location.href)};r.after_navigate.forEach(f=>f(w))}}async function we({url:o,params:p,stuff:w,branch:f,status:_,error:b,routeId:h}){var m,U;const y=f.filter(Boolean),g=y.find(A=>{var N;return(N=A.loaded)==null?void 0:N.redirect}),$={redirect:(m=g==null?void 0:g.loaded)==null?void 0:m.redirect,state:{url:o,params:p,branch:f,error:b,stuff:w,session_id:Q},props:{components:y.map(A=>A.module.default)}};for(let A=0;A{Object.defineProperty($.props.page,N,{get:()=>{throw new Error(`$page.${N} has been replaced by $page.url.${S}`)}})};A("origin","origin"),A("path","pathname"),A("query","searchParams")}const E=y[y.length-1],k=(U=E==null?void 0:E.loaded)==null?void 0:U.cache;if(k){const A=o.pathname+o.search;let N=!1;const S=()=>{l.get(A)===$&&l.delete(A),I(),clearTimeout(O)},O=setTimeout(S,k.maxage*1e3),I=u.session.subscribe(()=>{N&&S()});N=!0,l.set(A,$)}return $}async function ee({status:o,error:p,module:w,url:f,params:_,stuff:b,props:h,routeId:y}){const g={module:w,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:b};function $(k){const{href:m}=new URL(k,f);g.uses.dependencies.add(m)}h&&g.uses.dependencies.add(f.href);const L={};for(const k in _)Object.defineProperty(L,k,{get(){return g.uses.params.add(k),_[k]},enumerable:!0});const E=Se;if(w.load){const k={routeId:y,params:L,props:h||{},get url(){return g.uses.url=!0,f},get session(){return g.uses.session=!0,E},get stuff(){return g.uses.stuff=!0,P({},b)},fetch(U,A){const N=typeof U=="string"?U:U.url;return $(N),d?fetch(U,A):Nt(U,A)},status:o!=null?o:null,error:p!=null?p:null},m=await w.load.call(null,k);if(!m)throw new Error("load function must return a value");g.loaded=Me(m),g.loaded.stuff&&(g.stuff=g.loaded.stuff),g.loaded.dependencies&&g.loaded.dependencies.forEach($)}else h&&(g.loaded=Me({props:h}));return g}async function Pe({id:o,url:p,params:w,route:f},_){var U,A,N;if(s.id===o&&s.promise)return s.promise;if(!_){const S=l.get(o);if(S)return S}const{a:b,b:h,has_shadow:y}=f,g=i.url&&{url:o!==i.url.pathname+i.url.search,params:Object.keys(w).filter(S=>i.params[S]!==w[S]),session:Q!==i.session_id};let $=[],L=Xe,E=!1,k=200,m=null;b.forEach(S=>S());e:for(let S=0;Sj.uses.params.has(Y))||g.session&&j.uses.session||Array.from(j.uses.dependencies).some(Y=>c.some(ue=>ue(Y)))||E&&j.uses.stuff){let Y={};const ue=y&&S===b.length-1;if(ue){const se=await fetch(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(se.ok){const De=se.headers.get("x-sveltekit-location");if(De)return{redirect:De,props:{},state:i};Y=se.status===204?{}:await se.json()}else k=se.status,m=new Error("Failed to load data")}if(m||(O=await ee({module:I,url:p,params:w,props:Y,stuff:L,routeId:f.id})),O&&(ue&&(O.uses.url=!0),O.loaded)){if(O.loaded.error&&(k=O.loaded.status,m=O.loaded.error),O.loaded.redirect)return{redirect:O.loaded.redirect,props:{},state:i};O.loaded.stuff&&(E=!0)}}else O=j}catch(I){k=500,m=Be(I)}if(m){for(;S--;)if(h[S]){let I,j,fe=S;for(;!(j=$[fe]);)fe-=1;try{if(I=await ee({status:k,error:m,module:await h[S](),url:p,params:w,stuff:j.stuff,routeId:f.id}),(U=I==null?void 0:I.loaded)!=null&&U.error)continue;(A=I==null?void 0:I.loaded)!=null&&A.stuff&&(L=P(P({},L),I.loaded.stuff)),$=$.slice(0,fe+1).concat(I);break e}catch{continue}}return await te({status:k,error:m,url:p,routeId:f.id})}else(N=O==null?void 0:O.loaded)!=null&&N.stuff&&(L=P(P({},L),O.loaded.stuff)),$.push(O)}return await we({url:p,params:w,stuff:L,branch:$,status:k,error:m,routeId:f.id})}async function te({status:o,error:p,url:w,routeId:f}){var y,g;const _={},b=await ee({module:await Dt,url:w,params:_,stuff:{},routeId:f}),h=await ee({status:o,error:p,module:await Vt,url:w,params:_,stuff:b&&b.loaded&&b.loaded.stuff||{},routeId:f});return await we({url:w,params:_,stuff:P(P({},(y=b==null?void 0:b.loaded)==null?void 0:y.stuff),(g=h==null?void 0:h.loaded)==null?void 0:g.stuff),branch:[b,h],status:o,error:p,routeId:f})}function Te(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const w of ye){const f=w.exec(p);if(f)return{id:o.pathname+o.search,route:w,params:f,url:o}}}async function be({url:o,scroll:p,keepfocus:w,redirect_chain:f,details:_,accepted:b,blocked:h}){const y=i.url;let g=!1;const $={from:y,to:o,cancel:()=>g=!0};if(r.before_navigate.forEach(m=>m($)),g){h();return}const L=At(o.pathname,a),E=new URL(o.origin+L+o.search+o.hash);if($e(V),b(),d&&u.navigating.set({from:i.url,to:E}),await ge(E,f,!1,{scroll:p,keepfocus:w,details:_})){const m={from:y,to:E};r.after_navigate.forEach(U=>U(m)),u.navigating.set(null)}}function ne(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{Ee(()=>(r.after_navigate.push(o),()=>{const p=r.after_navigate.indexOf(o);r.after_navigate.splice(p,1)}))},before_navigate:o=>{Ee(()=>(r.before_navigate.push(o),()=>{const p=r.before_navigate.indexOf(o);r.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(v||!d)&&(R=!1)},goto:(o,p={})=>Oe(o,p,[]),invalidate:o=>{if(typeof o=="function")c.push(o);else{const{href:p}=new URL(o,location.href);c.push(w=>w===p)}return Z||(Z=Promise.resolve().then(async()=>{await ge(new URL(location.href),[],!0),Z=null})),Z},prefetch:async o=>{const p=new URL(o,We(document));await Ne(p)},prefetch_routes:async o=>{const w=(o?ye.filter(f=>o.some(_=>f.exec(_))):ye).map(f=>Promise.all(f.a.map(_=>_())));await Promise.all(w)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",f=>{let _=!1;const b={from:i.url,to:null,cancel:()=>_=!0};r.before_navigate.forEach(h=>h(b)),_?(f.preventDefault(),f.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){$e(V);try{sessionStorage[Ze]=JSON.stringify(ae)}catch{}}});const o=f=>{const _=Ye(f);_&&_.href&&_.hasAttribute("sveltekit:prefetch")&&Ne(Fe(_))};let p;const w=f=>{clearTimeout(p),p=setTimeout(()=>{var _;(_=f.target)==null||_.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",w),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",f=>{if(!H||f.button||f.which!==1||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||f.defaultPrevented)return;const _=Ye(f);if(!_||!_.href)return;const b=_ instanceof SVGAElement,h=Fe(_);if(!b&&h.origin==="null")return;const y=(_.getAttribute("rel")||"").split(/\s+/);if(_.hasAttribute("download")||y.includes("external")||_.hasAttribute("sveltekit:reload")||(b?_.target.baseVal:_.target))return;const[g,$]=h.href.split("#");if($!==void 0&&g===location.href.split("#")[0]){he=!0,$e(V),u.page.set(re(P({},me),{url:h})),u.page.notify();return}be({url:h,scroll:_.hasAttribute("sveltekit:noscroll")?ke():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:h.href===location.href},accepted:()=>f.preventDefault(),blocked:()=>f.preventDefault()})}),addEventListener("popstate",f=>{if(f.state&&H){if(f.state[W]===V)return;be({url:new URL(location.href),scroll:ae[f.state[W]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{V=f.state[W]},blocked:()=>{const _=V-f.state[W];history.go(_)}})}}),addEventListener("hashchange",()=>{he&&(he=!1,history.replaceState(re(P({},history.state),{[W]:++V}),"",location.href))})},_hydrate:async({status:o,error:p,nodes:w,params:f,routeId:_})=>{const b=new URL(location.href),h=[];let y={},g,$;try{for(let L=0;L - + - - + + - - + +
@@ -61,7 +61,7 @@