radames HF staff commited on
Commit
9f97cd8
β€’
1 Parent(s): 408eef8

roll back answer

Browse files
static/_app/immutable/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  ".svelte-kit/runtime/client/start.js": {
3
- "file": "start-15953b66.js",
4
  "src": ".svelte-kit/runtime/client/start.js",
5
  "isEntry": true,
6
  "imports": [
@@ -35,7 +35,7 @@
35
  ]
36
  },
37
  "src/routes/index.svelte": {
38
- "file": "pages/index.svelte-cba9b380.js",
39
  "src": "src/routes/index.svelte",
40
  "isEntry": true,
41
  "isDynamicEntry": true,
 
1
  {
2
  ".svelte-kit/runtime/client/start.js": {
3
+ "file": "start-e112b0e1.js",
4
  "src": ".svelte-kit/runtime/client/start.js",
5
  "isEntry": true,
6
  "imports": [
 
35
  ]
36
  },
37
  "src/routes/index.svelte": {
38
+ "file": "pages/index.svelte-70b7aa98.js",
39
  "src": "src/routes/index.svelte",
40
  "isEntry": true,
41
  "isDynamicEntry": true,
static/_app/immutable/pages/{index.svelte-cba9b380.js β†’ index.svelte-70b7aa98.js} RENAMED
@@ -1,15 +1,15 @@
1
  var kr=Object.defineProperty;var Yt=Object.getOwnPropertySymbols;var xr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable;var Wt=(n,e,t)=>e in n?kr(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Gt=(n,e)=>{for(var t in e||(e={}))xr.call(e,t)&&Wt(n,t,e[t]);if(Yt)for(var t of Yt(e))Pr.call(e,t)&&Wt(n,t,e[t]);return n};import{S as ct,i as ut,s as ft,e as g,k as z,c as v,a as _,m as F,d as f,b as u,g as ce,J as i,K as Ve,L as Ae,n as Ge,M as xt,t as K,h as Z,N as at,O as st,P as Sr,x as qe,y as ht,z as Xe,o as Ke,p as we,C as Ze,q as Je,r as fe,Q as Pt,R as Oe,T as ze,l as lt,j as Qe,U as wr,w as _r,V as br,W as kt,f as We,X as Ar,Y as Tr}from"../chunks/index-7118b6c4.js";import{_ as Re,b as qt}from"../chunks/preload-helper-fca94356.js";var be=(n=>(n.INITIAL="",n.CORRECT="correct",n.PRESENT="present",n.ABSENT="absent",n))(be||{}),ye=(n=>(n[n.PLAYING=0]="PLAYING",n[n.SUCESS=1]="SUCESS",n[n.FAIL=2]="FAIL",n))(ye||{});function Ir(n,e){const t=[...n],r=t[e];for(const a of[...r].reverse())if(a.letter){a.letter="";break}return t}function jr(n,e,t){const r=[...n],a=r[e];for(const s of a)if(s.correct===" "&&(s.letter=" "),!s.letter){s.letter=t;break}return r}const Xt={[be.CORRECT]:"#00b81a",[be.PRESENT]:"#ffc80a",[be.ABSENT]:"#d9d9d9",[be.INITIAL]:"#5d5d5d"},ot={2:"two",5:"five",10:"ten",15:"fifteen",20:"twenty",35:"thirtyfive",50:"fifty"},Rr=["\u{1F917} Hugging \u{1F917}","\u{1F9DE} Genius \u{1F9DE}","\u{1F929} Magnificent \u{1F929}","\u{1F632} Impressive \u{1F632}","\u{1F9DA} Splendid \u{1F9DA}","\u2733 Great \u2733","\u{1F361} Phew \u{1F361}"];function Kt(n,e,t){const r=n.slice();return r[4]=e[t],r[6]=t,r}function Zt(n,e,t){const r=n.slice();return r[7]=e[t],r}function Dr(n){let e;return{c(){e=g("div"),this.h()},l(t){e=v(t,"DIV",{class:!0}),_(e).forEach(f),this.h()},h(){u(e,"class","spacer svelte-2ngxdh")},m(t,r){ce(t,e,r)},d(t){t&&f(e)}}}function Lr(n){let e,t=n[7]+"",r;return{c(){e=g("span"),r=K(t)},l(a){e=v(a,"SPAN",{});var s=_(e);r=Z(s,t),s.forEach(f)},m(a,s){ce(a,e,s),i(e,r)},p:Ge,d(a){a&&f(e)}}}function Cr(n){let e,t;return{c(){e=at("svg"),t=at("path"),this.h()},l(r){e=st(r,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0});var a=_(e);t=st(a,"path",{fill:!0,d:!0}),_(t).forEach(f),a.forEach(f),this.h()},h(){u(t,"fill","currentColor"),u(t,"d","M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41 17.59 17 19 15.59 15.41 12 19 8.41 17.59 7 14 10.59 10.41 7 9 8.41 12.59 12 9 15.59z"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"height","24"),u(e,"viewBox","0 0 24 24"),u(e,"width","24")},m(r,a){ce(r,e,a),i(e,t)},p:Ge,d(r){r&&f(e)}}}function Jt(n){let e,t,r,a;function s(w,I){return w[7]==="Backspace"?Cr:Lr}let o=s(n)(n);function c(){return n[3](n[7])}return{c(){e=g("button"),o.c(),this.h()},l(w){e=v(w,"BUTTON",{class:!0});var I=_(e);o.l(I),I.forEach(f),this.h()},h(){u(e,"class",t=(n[0][n[7]]===void 0?"":n[0][n[7]])+" "+(n[7].length>1&&"big")+" svelte-2ngxdh")},m(w,I){ce(w,e,I),o.m(e,null),r||(a=Ve(e,"click",c),r=!0)},p(w,I){n=w,o.p(n,I),I&1&&t!==(t=(n[0][n[7]]===void 0?"":n[0][n[7]])+" "+(n[7].length>1&&"big")+" svelte-2ngxdh")&&u(e,"class",t)},d(w){w&&f(e),o.d(),r=!1,a()}}}function Nr(n){let e;return{c(){e=g("div"),this.h()},l(t){e=v(t,"DIV",{class:!0}),_(e).forEach(f),this.h()},h(){u(e,"class","spacer svelte-2ngxdh")},m(t,r){ce(t,e,r)},d(t){t&&f(e)}}}function Qt(n){let e,t,r,a,s=n[6]===1&&Dr(),l=n[4],o=[];for(let w=0;w<l.length;w+=1)o[w]=Jt(Zt(n,l,w));let c=n[6]===1&&Nr();return{c(){e=g("div"),s&&s.c(),t=z();for(let w=0;w<o.length;w+=1)o[w].c();r=z(),c&&c.c(),a=z(),this.h()},l(w){e=v(w,"DIV",{class:!0});var I=_(e);s&&s.l(I),t=F(I);for(let j=0;j<o.length;j+=1)o[j].l(I);r=F(I),c&&c.l(I),a=F(I),I.forEach(f),this.h()},h(){u(e,"class","row svelte-2ngxdh")},m(w,I){ce(w,e,I),s&&s.m(e,null),i(e,t);for(let j=0;j<o.length;j+=1)o[j].m(e,null);i(e,r),c&&c.m(e,null),i(e,a)},p(w,I){if(I&7){l=w[4];let j;for(j=0;j<l.length;j+=1){const O=Zt(w,l,j);o[j]?o[j].p(O,I):(o[j]=Jt(O),o[j].c(),o[j].m(e,r))}for(;j<o.length;j+=1)o[j].d(1);o.length=l.length}},d(w){w&&f(e),s&&s.d(),Ae(o,w),c&&c.d()}}}function Ur(n){let e,t=n[2],r=[];for(let a=0;a<t.length;a+=1)r[a]=Qt(Kt(n,t,a));return{c(){e=g("div");for(let a=0;a<r.length;a+=1)r[a].c();this.h()},l(a){e=v(a,"DIV",{class:!0});var s=_(e);for(let l=0;l<r.length;l+=1)r[l].l(s);s.forEach(f),this.h()},h(){u(e,"class","my-3 mx-auto select-none max-w-md")},m(a,s){ce(a,e,s);for(let l=0;l<r.length;l+=1)r[l].m(e,null)},p(a,[s]){if(s&7){t=a[2];let l;for(l=0;l<t.length;l+=1){const o=Kt(a,t,l);r[l]?r[l].p(o,s):(r[l]=Qt(o),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},i:Ge,o:Ge,d(a){a&&f(e),Ae(r,a)}}}function Br(n,e,t){let{letterStates:r}=e;const a=xt(),s=["qwertyuiop".split(""),[..."asdfghjkl".split("")],["Enter",..."zxcvbnm".split(""),"Backspace"]],l=o=>a("keyup",o);return n.$$set=o=>{"letterStates"in o&&t(0,r=o.letterStates)},[r,a,s,l]}class Vr extends ct{constructor(e){super(),ut(this,e,Br,Ur,ft,{letterStates:0})}}function Or(n){const e=n-1;return e*e*e+1}function it(n,{delay:e=0,duration:t=400,easing:r=Sr}={}){const a=+getComputedStyle(n).opacity;return{delay:e,duration:t,easing:r,css:s=>`opacity: ${s*a}`}}function $t(n,{delay:e=0,duration:t=400,easing:r=Or,start:a=0,opacity:s=0}={}){const l=getComputedStyle(n),o=+l.opacity,c=l.transform==="none"?"":l.transform,w=1-a,I=o*(1-s);return{delay:e,duration:t,easing:r,css:(j,O)=>`
2
  transform: ${c} scale(${1-w*O});
3
  opacity: ${o-I*O}
4
- `}}var yr={exports:{}};(function(n){(function(e){var t=ae(),r=pe(),a=D(),s=$(),l={imagePlaceholder:void 0,cacheBust:!1},o={toSvg:c,toPng:I,toJpeg:j,toBlob:O,toPixelData:w,impl:{fontFaces:a,images:s,util:t,inliner:r,options:{}}};n.exports=o;function c(h,p){return p=p||{},U(p),Promise.resolve(h).then(function(y){return Y(y,p.filter,!0)}).then(J).then(oe).then(A).then(function(y){return Q(y,p.width||t.width(h),p.height||t.height(h))});function A(y){return p.bgcolor&&(y.style.backgroundColor=p.bgcolor),p.width&&(y.style.width=p.width+"px"),p.height&&(y.style.height=p.height+"px"),p.style&&Object.keys(p.style).forEach(function(x){y.style[x]=p.style[x]}),y}}function w(h,p){return B(h,p||{}).then(function(A){return A.getContext("2d").getImageData(0,0,t.width(h),t.height(h)).data})}function I(h,p){return B(h,p||{}).then(function(A){return A.toDataURL()})}function j(h,p){return p=p||{},B(h,p).then(function(A){return A.toDataURL("image/jpeg",p.quality||1)})}function O(h,p){return B(h,p||{}).then(t.canvasToBlob)}function U(h){typeof h.imagePlaceholder=="undefined"?o.impl.options.imagePlaceholder=l.imagePlaceholder:o.impl.options.imagePlaceholder=h.imagePlaceholder,typeof h.cacheBust=="undefined"?o.impl.options.cacheBust=l.cacheBust:o.impl.options.cacheBust=h.cacheBust}function B(h,p){return c(h,p).then(t.makeImage).then(t.delay(100)).then(function(y){var x=A(h);return x.getContext("2d").drawImage(y,0,0),x});function A(y){var x=document.createElement("canvas");if(x.width=p.width||t.width(y),x.height=p.height||t.height(y),p.bgcolor){var S=x.getContext("2d");S.fillStyle=p.bgcolor,S.fillRect(0,0,x.width,x.height)}return x}}function Y(h,p,A){if(!A&&p&&!p(h))return Promise.resolve();return Promise.resolve(h).then(y).then(function(k){return x(h,k,p)}).then(function(k){return S(h,k)});function y(k){return k instanceof HTMLCanvasElement?t.makeImage(k.toDataURL()):k.cloneNode(!1)}function x(k,d,M){var T=k.childNodes;if(T.length===0)return Promise.resolve(d);return C(d,t.asArray(T),M).then(function(){return d});function C(E,G,N){var b=Promise.resolve();return G.forEach(function(W){b=b.then(function(){return Y(W,N)}).then(function(P){P&&E.appendChild(P)})}),b}}function S(k,d){if(!(d instanceof Element))return d;return Promise.resolve().then(M).then(T).then(C).then(E).then(function(){return d});function M(){G(window.getComputedStyle(k),d.style);function G(N,b){N.cssText?b.cssText=N.cssText:W(N,b);function W(P,ee){t.asArray(P).forEach(function(m){ee.setProperty(m,P.getPropertyValue(m),P.getPropertyPriority(m))})}}}function T(){[":before",":after"].forEach(function(N){G(N)});function G(N){var b=window.getComputedStyle(k,N),W=b.getPropertyValue("content");if(W===""||W==="none")return;var P=t.uid();d.className=d.className+" "+P;var ee=document.createElement("style");ee.appendChild(m(P,N,b)),d.appendChild(ee);function m(L,H,V){var re="."+L+":"+H,ie=V.cssText?ve(V):_e(V);return document.createTextNode(re+"{"+ie+"}");function ve(he){var te=he.getPropertyValue("content");return he.cssText+" content: "+te+";"}function _e(he){return t.asArray(he).map(te).join("; ")+";";function te(ue){return ue+": "+he.getPropertyValue(ue)+(he.getPropertyPriority(ue)?" !important":"")}}}}}function C(){k instanceof HTMLTextAreaElement&&(d.innerHTML=k.value),k instanceof HTMLInputElement&&d.setAttribute("value",k.value)}function E(){d instanceof SVGElement&&(d.setAttribute("xmlns","http://www.w3.org/2000/svg"),d instanceof SVGRectElement&&["width","height"].forEach(function(G){var N=d.getAttribute(G);!N||d.style.setProperty(G,N)}))}}}function J(h){return a.resolveAll().then(function(p){var A=document.createElement("style");return h.appendChild(A),A.appendChild(document.createTextNode(p)),h})}function oe(h){return s.inlineAll(h).then(function(){return h})}function Q(h,p,A){return Promise.resolve(h).then(function(y){return y.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(y)}).then(t.escapeXhtml).then(function(y){return'<foreignObject x="0" y="0" width="100%" height="100%">'+y+"</foreignObject>"}).then(function(y){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+p+'" height="'+A+'">'+y+"</svg>"}).then(function(y){return"data:image/svg+xml;charset=utf-8,"+y})}function ae(){return{escape:E,parseExtension:p,mimeType:A,dataAsUrl:C,isDataUrl:y,canvasToBlob:S,resolveUrl:k,getAndEncode:T,uid:d(),delay:G,asArray:N,escapeXhtml:b,makeImage:M,width:W,height:P};function h(){var m="application/font-woff",L="image/jpeg";return{woff:m,woff2:m,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:L,jpeg:L,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function p(m){var L=/\.([^\.\/]*?)$/g.exec(m);return L?L[1]:""}function A(m){var L=p(m).toLowerCase();return h()[L]||""}function y(m){return m.search(/^(data:)/)!==-1}function x(m){return new Promise(function(L){for(var H=window.atob(m.toDataURL().split(",")[1]),V=H.length,re=new Uint8Array(V),ie=0;ie<V;ie++)re[ie]=H.charCodeAt(ie);L(new Blob([re],{type:"image/png"}))})}function S(m){return m.toBlob?new Promise(function(L){m.toBlob(L)}):x(m)}function k(m,L){var H=document.implementation.createHTMLDocument(),V=H.createElement("base");H.head.appendChild(V);var re=H.createElement("a");return H.body.appendChild(re),V.href=L,re.href=m,re.href}function d(){var m=0;return function(){return"u"+L()+m++;function L(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function M(m){return new Promise(function(L,H){var V=new Image;V.onload=function(){L(V)},V.onerror=H,V.src=m})}function T(m){var L=3e4;return o.impl.options.cacheBust&&(m+=(/\?/.test(m)?"&":"?")+new Date().getTime()),new Promise(function(H){var V=new XMLHttpRequest;V.onreadystatechange=ve,V.ontimeout=_e,V.responseType="blob",V.timeout=L,V.open("GET",m,!0),V.send();var re;if(o.impl.options.imagePlaceholder){var ie=o.impl.options.imagePlaceholder.split(/,/);ie&&ie[1]&&(re=ie[1])}function ve(){if(V.readyState===4){if(V.status!==200){re?H(re):he("cannot fetch resource: "+m+", status: "+V.status);return}var te=new FileReader;te.onloadend=function(){var ue=te.result.split(/,/)[1];H(ue)},te.readAsDataURL(V.response)}}function _e(){re?H(re):he("timeout of "+L+"ms occured while fetching resource: "+m)}function he(te){console.error(te),H("")}})}function C(m,L){return"data:"+L+";base64,"+m}function E(m){return m.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function G(m){return function(L){return new Promise(function(H){setTimeout(function(){H(L)},m)})}}function N(m){for(var L=[],H=m.length,V=0;V<H;V++)L.push(m[V]);return L}function b(m){return m.replace(/#/g,"%23").replace(/\n/g,"%0A")}function W(m){var L=ee(m,"border-left-width"),H=ee(m,"border-right-width");return m.scrollWidth+L+H}function P(m){var L=ee(m,"border-top-width"),H=ee(m,"border-bottom-width");return m.scrollHeight+L+H}function ee(m,L){var H=window.getComputedStyle(m).getPropertyValue(L);return parseFloat(H.replace("px",""))}}function pe(){var h=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:x,shouldProcess:p,impl:{readUrls:A,inline:y}};function p(S){return S.search(h)!==-1}function A(S){for(var k=[],d;(d=h.exec(S))!==null;)k.push(d[1]);return k.filter(function(M){return!t.isDataUrl(M)})}function y(S,k,d,M){return Promise.resolve(k).then(function(C){return d?t.resolveUrl(C,d):C}).then(M||t.getAndEncode).then(function(C){return t.dataAsUrl(C,t.mimeType(k))}).then(function(C){return S.replace(T(k),"$1"+C+"$3")});function T(C){return new RegExp(`(url\\(['"]?)(`+t.escape(C)+`)(['"]?\\))`,"g")}}function x(S,k,d){if(M())return Promise.resolve(S);return Promise.resolve(S).then(A).then(function(T){var C=Promise.resolve(S);return T.forEach(function(E){C=C.then(function(G){return y(G,E,k,d)})}),C});function M(){return!p(S)}}}function D(){return{resolveAll:h,impl:{readAll:p}};function h(){return p().then(function(A){return Promise.all(A.map(function(y){return y.resolve()}))}).then(function(A){return A.join(`
5
- `)})}function p(){return Promise.resolve(t.asArray(document.styleSheets)).then(y).then(A).then(function(S){return S.map(x)});function A(S){return S.filter(function(k){return k.type===CSSRule.FONT_FACE_RULE}).filter(function(k){return r.shouldProcess(k.style.getPropertyValue("src"))})}function y(S){var k=[];return S.forEach(function(d){try{t.asArray(d.cssRules||[]).forEach(k.push.bind(k))}catch(M){console.log("Error while reading CSS rules from "+d.href,M.toString())}}),k}function x(S){return{resolve:function(){var d=(S.parentStyleSheet||{}).href;return r.inlineAll(S.cssText,d)},src:function(){return S.style.getPropertyValue("src")}}}}}function $(){return{inlineAll:p,impl:{newImage:h}};function h(A){return{inline:y};function y(x){return t.isDataUrl(A.src)?Promise.resolve():Promise.resolve(A.src).then(x||t.getAndEncode).then(function(S){return t.dataAsUrl(S,t.mimeType(A.src))}).then(function(S){return new Promise(function(k,d){A.onload=k,A.onerror=d,A.src=S})})}}function p(A){if(!(A instanceof Element))return Promise.resolve(A);return y(A).then(function(){return A instanceof HTMLImageElement?h(A).inline():Promise.all(t.asArray(A.childNodes).map(function(x){return p(x)}))});function y(x){var S=x.style.getPropertyValue("background");return S?r.inlineAll(S).then(function(k){x.style.setProperty("background",k,x.style.getPropertyPriority("background"))}).then(function(){return x}):Promise.resolve(x)}}}})()})(yr);var zr=yr.exports;function Fr(n){switch(n){case"./badges/fifteen.svelte":return Re(()=>import("../chunks/fifteen-6ece83ce.js"),["chunks/fifteen-6ece83ce.js","chunks/index-7118b6c4.js"]);case"./badges/fifty.svelte":return Re(()=>import("../chunks/fifty-230cfc24.js"),["chunks/fifty-230cfc24.js","chunks/index-7118b6c4.js"]);case"./badges/five.svelte":return Re(()=>import("../chunks/five-e7ec1bc4.js"),["chunks/five-e7ec1bc4.js","chunks/index-7118b6c4.js"]);case"./badges/ten.svelte":return Re(()=>import("../chunks/ten-7c9c0a66.js"),["chunks/ten-7c9c0a66.js","chunks/index-7118b6c4.js"]);case"./badges/thirtyfive.svelte":return Re(()=>import("../chunks/thirtyfive-d3270980.js"),["chunks/thirtyfive-d3270980.js","chunks/index-7118b6c4.js"]);case"./badges/twenty.svelte":return Re(()=>import("../chunks/twenty-97dd6623.js"),["chunks/twenty-97dd6623.js","chunks/index-7118b6c4.js"]);case"./badges/two.svelte":return Re(()=>import("../chunks/two-09cc56a1.js"),["chunks/two-09cc56a1.js","chunks/index-7118b6c4.js"]);default:return new Promise(function(e,t){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+n)))})}}function er(n,e,t){const r=n.slice();return r[18]=e[t],r[20]=t,r}function tr(n,e,t){const r=n.slice();return r[21]=e[t],r[23]=t,r}function rr(n,e,t){const r=n.slice();return r[24]=e[t],r}function nr(n){let e,t,r,a;var s=n[6];function l(o){return{props:{classNames:"w-full max-w-[180px]"}}}return s&&(t=new s(l())),{c(){e=g("div"),t&&qe(t.$$.fragment),this.h()},l(o){e=v(o,"DIV",{class:!0});var c=_(e);t&&ht(t.$$.fragment,c),c.forEach(f),this.h()},h(){u(e,"class","absolute left-0 right-0 top-0 bottom-0 flex place-content-center place-items-center")},m(o,c){ce(o,e,c),t&&Xe(t,e,null),a=!0},p(o,c){if(s!==(s=o[6])){if(t){Ke();const w=t;we(w.$$.fragment,1,0,()=>{Ze(w,1)}),Je()}s?(t=new s(l()),qe(t.$$.fragment),fe(t.$$.fragment,1),Xe(t,e,null)):t=null}},i(o){a||(t&&fe(t.$$.fragment,o),Pt(()=>{r||(r=Oe(e,$t,{duration:500},!0)),r.run(1)}),a=!0)},o(o){t&&we(t.$$.fragment,o),r||(r=Oe(e,$t,{duration:500},!1)),r.run(0),a=!1},d(o){o&&f(e),t&&Ze(t),o&&r&&r.end()}}}function ar(n){let e,t,r,a;return{c(){e=g("div"),t=g("img"),a=z(),this.h()},l(s){e=v(s,"DIV",{});var l=_(e);t=v(l,"IMG",{src:!0,alt:!0,class:!0}),a=F(l),l.forEach(f),this.h()},h(){ze(t.src,r=n[9]+n[24])||u(t,"src",r),u(t,"alt",""),u(t,"class","aspect-square w-full h-full")},m(s,l){ce(s,e,l),i(e,t),i(e,a)},p(s,l){l&2&&!ze(t.src,r=s[9]+s[24])&&u(t,"src",r)},d(s){s&&f(e)}}}function sr(n){let e,t;return{c(){e=at("rect"),this.h()},l(r){e=st(r,"rect",{fill:!0,x:!0,y:!0,width:!0,height:!0,rx:!0}),_(e).forEach(f),this.h()},h(){u(e,"fill",t=Xt[n[21].state]),u(e,"x",n[23]*(xe+ke)),u(e,"y",n[20]*(xe+ke)),u(e,"width",xe),u(e,"height",xe),u(e,"rx",n[11])},m(r,a){ce(r,e,a)},p(r,a){a&1&&t!==(t=Xt[r[21].state])&&u(e,"fill",t)},d(r){r&&f(e)}}}function lr(n){let e,t=n[18],r=[];for(let a=0;a<t.length;a+=1)r[a]=sr(tr(n,t,a));return{c(){for(let a=0;a<r.length;a+=1)r[a].c();e=lt()},l(a){for(let s=0;s<r.length;s+=1)r[s].l(a);e=lt()},m(a,s){for(let l=0;l<r.length;l+=1)r[l].m(a,s);ce(a,e,s)},p(a,s){if(s&2049){t=a[18];let l;for(l=0;l<t.length;l+=1){const o=tr(a,t,l);r[l]?r[l].p(o,s):(r[l]=sr(o),r[l].c(),r[l].m(e.parentNode,e))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},d(a){Ae(r,a),a&&f(e)}}}function Mr(n){let e,t,r,a,s,l,o,c,w,I,j,O,U,B,Y,J,oe,Q,ae,pe,D,$,h=n[5]?"SAVING..":"SAVE SCREENSHOT",p,A,y,x,S,k,d,M,T=n[2]in ot&&nr(n),C=n[1],E=[];for(let b=0;b<C.length;b+=1)E[b]=ar(rr(n,C,b));let G=n[0],N=[];for(let b=0;b<G.length;b+=1)N[b]=lr(er(n,G,b));return{c(){e=g("div"),t=g("div"),r=g("div"),a=g("div"),s=g("header"),l=g("h1"),o=K("WORDALLE \u{1F951}"),c=z(),w=g("span"),I=K("hf.co/wordalle"),j=z(),O=g("h2"),U=K(n[8]),B=z(),Y=g("div"),T&&T.c(),J=z();for(let b=0;b<E.length;b+=1)E[b].c();oe=z(),Q=at("svg");for(let b=0;b<N.length;b+=1)N[b].c();pe=z(),D=g("div"),$=g("button"),p=K(h),A=z(),y=g("button"),x=K("NEXT"),this.h()},l(b){e=v(b,"DIV",{class:!0});var W=_(e);t=v(W,"DIV",{class:!0});var P=_(t);r=v(P,"DIV",{class:!0});var ee=_(r);a=v(ee,"DIV",{class:!0});var m=_(a);s=v(m,"HEADER",{class:!0});var L=_(s);l=v(L,"H1",{class:!0});var H=_(l);o=Z(H,"WORDALLE \u{1F951}"),H.forEach(f),c=F(L),w=v(L,"SPAN",{class:!0});var V=_(w);I=Z(V,"hf.co/wordalle"),V.forEach(f),L.forEach(f),j=F(m),O=v(m,"H2",{class:!0});var re=_(O);U=Z(re,n[8]),re.forEach(f),B=F(m),Y=v(m,"DIV",{class:!0});var ie=_(Y);T&&T.l(ie),J=F(ie);for(let ue=0;ue<E.length;ue+=1)E[ue].l(ie);ie.forEach(f),oe=F(m),Q=st(m,"svg",{class:!0,viewBox:!0,xmlns:!0});var ve=_(Q);for(let ue=0;ue<N.length;ue+=1)N[ue].l(ve);ve.forEach(f),m.forEach(f),ee.forEach(f),pe=F(P),D=v(P,"DIV",{class:!0});var _e=_(D);$=v(_e,"BUTTON",{class:!0});var he=_($);p=Z(he,h),he.forEach(f),A=F(_e),y=v(_e,"BUTTON",{class:!0});var te=_(y);x=Z(te,"NEXT"),te.forEach(f),_e.forEach(f),P.forEach(f),W.forEach(f),this.h()},h(){u(l,"class","text-xs font-bold uppercase whitespace-nowrap"),u(w,"class","font-light"),u(s,"class","p-3 flex justify-between items-center"),u(O,"class","text-center uppercase tracking-widest font-extrabold"),u(Y,"class","grid grid-cols-3 gap-2 p-3 relative"),u(Q,"class","w-full p-3 mx-auto max-h-[30vh]"),u(Q,"viewBox",ae="0 0 "+(n[0][0].length*(ke+xe)-ke)+" "+(n[0].length*(ke+xe)-ke)),u(Q,"xmlns","http://www.w3.org/2000/svg"),u(a,"class","p-3"),u(r,"class","border-0"),$.disabled=n[5],u($,"class","min-w-[15ch] flex-1 mr-1 svelte-oufr2e"),u(y,"class","flex-1 ml-1 svelte-oufr2e"),u(D,"class","p-3 px-6 flex text-base"),u(t,"class","message svelte-oufr2e"),u(e,"class","modal relative z-50 svelte-oufr2e")},m(b,W){ce(b,e,W),i(e,t),i(t,r),i(r,a),i(a,s),i(s,l),i(l,o),i(s,c),i(s,w),i(w,I),i(a,j),i(a,O),i(O,U),i(a,B),i(a,Y),T&&T.m(Y,null),i(Y,J);for(let P=0;P<E.length;P+=1)E[P].m(Y,null);i(a,oe),i(a,Q);for(let P=0;P<N.length;P+=1)N[P].m(Q,null);n[13](a),i(t,pe),i(t,D),i(D,$),i($,p),i(D,A),i(D,y),i(y,x),n[16](e),k=!0,d||(M=[Ve($,"click",n[14]),Ve(y,"click",n[15])],d=!0)},p(b,[W]){if(b[2]in ot?T?(T.p(b,W),W&4&&fe(T,1)):(T=nr(b),T.c(),fe(T,1),T.m(Y,J)):T&&(Ke(),we(T,1,1,()=>{T=null}),Je()),W&514){C=b[1];let P;for(P=0;P<C.length;P+=1){const ee=rr(b,C,P);E[P]?E[P].p(ee,W):(E[P]=ar(ee),E[P].c(),E[P].m(Y,null))}for(;P<E.length;P+=1)E[P].d(1);E.length=C.length}if(W&2049){G=b[0];let P;for(P=0;P<G.length;P+=1){const ee=er(b,G,P);N[P]?N[P].p(ee,W):(N[P]=lr(ee),N[P].c(),N[P].m(Q,null))}for(;P<N.length;P+=1)N[P].d(1);N.length=G.length}(!k||W&1&&ae!==(ae="0 0 "+(b[0][0].length*(ke+xe)-ke)+" "+(b[0].length*(ke+xe)-ke)))&&u(Q,"viewBox",ae),(!k||W&32)&&h!==(h=b[5]?"SAVING..":"SAVE SCREENSHOT")&&Qe(p,h),(!k||W&32)&&($.disabled=b[5])},i(b){k||(fe(T),Pt(()=>{S||(S=Oe(e,it,{},!0)),S.run(1)}),k=!0)},o(b){we(T),S||(S=Oe(e,it,{},!1)),S.run(0),k=!1},d(b){b&&f(e),T&&T.d(),Ae(E,b),Ae(N,b),n[13](null),n[16](null),b&&S&&S.end(),d=!1,wr(M)}}}const xe=10,ke=1;function Hr(n,e,t){const r=xt();let{board:a}=e,{currentRowIndex:s}=e,{imagePaths:l}=e,{totalStreaks:o}=e;const c=Rr[s],w="";let I,j,O=!1;async function U(D){t(5,O=!0);try{const $=await zr.toBlob(D,{bgcolor:"#000"}),h=document.createElement("a");h.download=`sucess-${Date.now()}.png`,h.target="_self",h.onclick=async p=>{if(t(5,O=!0),h.href){URL.revokeObjectURL(h.href),t(5,O=!1);return}h.href=URL.createObjectURL($),t(5,O=!1)},h.click(),console.log("Downloding image.")}catch($){console.log($.name,$.message)}}const B=D=>{D.key==="Escape"?r("restart"):D.key===" "&&U(j)};let Y;_r(async()=>{if(o in ot){const D=ot[o];t(6,Y=(await Fr(`./badges/${D}.svelte`)).default)}window.addEventListener("keyup",B,!0)}),br(()=>{window.removeEventListener("keyup",B,!0)});const J=xe/10;function oe(D){kt[D?"unshift":"push"](()=>{j=D,t(4,j)})}const Q=()=>U(j),ae=()=>r("restart");function pe(D){kt[D?"unshift":"push"](()=>{I=D,t(3,I)})}return n.$$set=D=>{"board"in D&&t(0,a=D.board),"currentRowIndex"in D&&t(12,s=D.currentRowIndex),"imagePaths"in D&&t(1,l=D.imagePaths),"totalStreaks"in D&&t(2,o=D.totalStreaks)},[a,l,o,I,j,O,Y,r,c,w,U,J,s,oe,Q,ae,pe]}class Yr extends ct{constructor(e){super(),ut(this,e,Hr,Mr,ft,{board:0,currentRowIndex:12,imagePaths:1,totalStreaks:2})}}function or(n){let e,t,r,a,s;return{c(){e=g("div"),t=g("button"),r=K("Try Again"),this.h()},l(l){e=v(l,"DIV",{class:!0});var o=_(e);t=v(o,"BUTTON",{class:!0});var c=_(t);r=Z(c,"Try Again"),c.forEach(f),o.forEach(f),this.h()},h(){u(t,"class","hover:no-underline underline underline-offset-2 hover:scale-105 transition-all duration-200 ease-in-out"),u(e,"class","font-light flex-1 text-xs sm:text-base text-center")},m(l,o){ce(l,e,o),i(e,t),i(t,r),a||(s=Ve(t,"click",n[3]),a=!0)},p:Ge,d(l){l&&f(e),a=!1,s()}}}function Wr(n){let e,t,r,a,s,l=n[0]===ye.FAIL&&or(n);return{c(){e=g("div"),t=K(n[1]),r=z(),l&&l.c(),this.h()},l(o){e=v(o,"DIV",{class:!0});var c=_(e);t=Z(c,n[1]),r=F(c),l&&l.l(c),c.forEach(f),this.h()},h(){u(e,"class","message svelte-1sv0qpd")},m(o,c){ce(o,e,c),i(e,t),i(e,r),l&&l.m(e,null),s=!0},p(o,[c]){(!s||c&2)&&Qe(t,o[1]),o[0]===ye.FAIL?l?l.p(o,c):(l=or(o),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(o){s||(Pt(()=>{a||(a=Oe(e,it,{},!0)),a.run(1)}),s=!0)},o(o){a||(a=Oe(e,it,{},!1)),a.run(0),s=!1},d(o){o&&f(e),l&&l.d(),o&&a&&a.end()}}}function Gr(n,e,t){const r=xt();let{gameState:a}=e,{message:s=null}=e;const l=()=>r("restart");return n.$$set=o=>{"gameState"in o&&t(0,a=o.gameState),"message"in o&&t(1,s=o.message)},[a,s,r,l]}class qr extends ct{constructor(e){super(),ut(this,e,Gr,Wr,ft,{gameState:0,message:1})}}function ir(n,e,t){const r=n.slice();return r[27]=e[t],r[29]=t,r}function cr(n,e,t){const r=n.slice();return r[30]=e[t],r[29]=t,r}function ur(n,e,t){const r=n.slice();return r[32]=e[t],r}function fr(n){let e,t,r,a,s,l,o,c,w,I,j,O,U,B,Y,J,oe,Q,ae,pe,D,$,h,p,A,y,x,S,k,d,M,T,C,E,G,N,b,W,P,ee,m,L,H,V,re,ie,ve,_e,he,te,ue,De,St,dt,Le,At,mt,Ee,Ce,Fe,pt,gt,Me,vt,wt,Pe,Te,_t,Ie,bt,$e,He,yt,Tt,se=n[7]&&hr(n),le=n[9]===ye.SUCESS&&dr(n),Ne=n[2],de=[];for(let R=0;R<Ne.length;R+=1)de[R]=mr(ur(n,Ne,R));let Ue=n[5],me=[];for(let R=0;R<Ue.length;R+=1)me[R]=gr(ir(n,Ue,R));function Er(R){n[14](R)}let It={};return n[4]!==void 0&&(It.letterStates=n[4]),h=new Vr({props:It}),kt.push(()=>Tr(h,"letterStates",Er)),h.$on("keyup",n[15]),{c(){e=g("div"),se&&se.c(),t=z(),le&&le.c(),r=z(),a=g("header"),s=g("span"),l=K("Guess the prompt!"),o=z(),c=g("span"),w=z(),I=g("h1"),j=K("\u{1F951} WORDALLE \u{1F951}"),O=z(),U=g("span"),B=z(),Y=g("span"),J=g("button"),oe=K("Skip to next"),Q=z(),ae=g("div");for(let R=0;R<de.length;R+=1)de[R].c();pe=z(),D=g("div");for(let R=0;R<me.length;R+=1)me[R].c();$=z(),qe(h.$$.fragment),A=z(),y=g("footer"),x=g("details"),S=g("summary"),k=g("span"),d=K("About"),M=z(),T=g("p"),C=K("Welcome to Wordalle! The game that marries "),E=g("a"),G=K("DALLE mini"),N=K(" & Wordle!\u201D"),b=z(),W=g("h2"),P=K("Instructions"),ee=z(),m=g("p"),L=K(`You are given a board with a grid of letters. You must guess the prompt used to generate
6
  the images.`),H=z(),V=g("p"),re=K(`Your guess must contain the same number of letters as tiles. After you guess, the tiles
7
  will be revealed.`),ie=z(),ve=g("h2"),_e=K("Example"),he=z(),te=g("p"),ue=K(`The green tiles are correct letter placements. The yellow tiles are correct letters but in
8
  wrong position and the gray tiles are letters not present in the prompt.
9
  `),De=g("img"),dt=z(),Le=g("img"),mt=z(),Ee=g("details"),Ce=g("summary"),Fe=g("span"),pt=K("Disclaimer"),gt=z(),Me=g("p"),vt=K(`This demo collects the guesses to help with a research project. The demo stores no
10
- personal data, such as your IP address, email, or account, only your guesses.`),wt=z(),Pe=g("label"),Te=g("input"),_t=z(),Ie=g("span"),bt=K("Please uncheck to disable sharing "),$e=K(n[0]),this.h()},l(R){e=v(R,"DIV",{class:!0});var q=_(e);se&&se.l(q),t=F(q),le&&le.l(q),r=F(q),a=v(q,"HEADER",{class:!0});var ne=_(a);s=v(ne,"SPAN",{class:!0});var X=_(s);l=Z(X,"Guess the prompt!"),X.forEach(f),o=F(ne),c=v(ne,"SPAN",{class:!0}),_(c).forEach(f),w=F(ne),I=v(ne,"H1",{class:!0});var Se=_(I);j=Z(Se,"\u{1F951} WORDALLE \u{1F951}"),Se.forEach(f),O=F(ne),U=v(ne,"SPAN",{class:!0}),_(U).forEach(f),B=F(ne),Y=v(ne,"SPAN",{class:!0});var jt=_(Y);J=v(jt,"BUTTON",{tabindex:!0,class:!0});var Rt=_(J);oe=Z(Rt,"Skip to next"),Rt.forEach(f),jt.forEach(f),ne.forEach(f),Q=F(q),ae=v(q,"DIV",{class:!0});var Dt=_(ae);for(let je=0;je<de.length;je+=1)de[je].l(Dt);Dt.forEach(f),pe=F(q),D=v(q,"DIV",{class:!0});var Lt=_(D);for(let je=0;je<me.length;je+=1)me[je].l(Lt);Lt.forEach(f),$=F(q),ht(h.$$.fragment,q),A=F(q),y=v(q,"FOOTER",{class:!0});var et=_(y);x=v(et,"DETAILS",{class:!0});var ge=_(x);S=v(ge,"SUMMARY",{class:!0});var Ct=_(S);k=v(Ct,"SPAN",{});var Nt=_(k);d=Z(Nt,"About"),Nt.forEach(f),Ct.forEach(f),M=F(ge),T=v(ge,"P",{});var tt=_(T);C=Z(tt,"Welcome to Wordalle! The game that marries "),E=v(tt,"A",{href:!0,target:!0,rel:!0,class:!0});var Ut=_(E);G=Z(Ut,"DALLE mini"),Ut.forEach(f),N=Z(tt," & Wordle!\u201D"),tt.forEach(f),b=F(ge),W=v(ge,"H2",{class:!0});var Bt=_(W);P=Z(Bt,"Instructions"),Bt.forEach(f),ee=F(ge),m=v(ge,"P",{});var Vt=_(m);L=Z(Vt,`You are given a board with a grid of letters. You must guess the prompt used to generate
11
  the images.`),Vt.forEach(f),H=F(ge),V=v(ge,"P",{});var Ot=_(V);re=Z(Ot,`Your guess must contain the same number of letters as tiles. After you guess, the tiles
12
  will be revealed.`),Ot.forEach(f),ie=F(ge),ve=v(ge,"H2",{class:!0});var zt=_(ve);_e=Z(zt,"Example"),zt.forEach(f),he=F(ge),te=v(ge,"P",{class:!0});var Ye=_(te);ue=Z(Ye,`The green tiles are correct letter placements. The yellow tiles are correct letters but in
13
  wrong position and the gray tiles are letters not present in the prompt.
14
  `),De=v(Ye,"IMG",{alt:!0,src:!0}),dt=F(Ye),Le=v(Ye,"IMG",{alt:!0,src:!0}),Ye.forEach(f),ge.forEach(f),mt=F(et),Ee=v(et,"DETAILS",{class:!0});var Be=_(Ee);Ce=v(Be,"SUMMARY",{class:!0});var Ft=_(Ce);Fe=v(Ft,"SPAN",{});var Mt=_(Fe);pt=Z(Mt,"Disclaimer"),Mt.forEach(f),Ft.forEach(f),gt=F(Be),Me=v(Be,"P",{});var Ht=_(Me);vt=Z(Ht,`This demo collects the guesses to help with a research project. The demo stores no
15
- personal data, such as your IP address, email, or account, only your guesses.`),Ht.forEach(f),wt=F(Be),Pe=v(Be,"LABEL",{class:!0});var rt=_(Pe);Te=v(rt,"INPUT",{type:!0}),_t=F(rt),Ie=v(rt,"SPAN",{class:!0});var Et=_(Ie);bt=Z(Et,"Please uncheck to disable sharing "),$e=Z(Et,n[0]),Et.forEach(f),rt.forEach(f),Be.forEach(f),et.forEach(f),q.forEach(f),this.h()},h(){u(s,"class","font-light flex-1 text-xs sm:text-base"),u(c,"class","sm:block hidden mx-3 flex-1 border-[0.5px] border-opacity-50 border-gray-400"),u(I,"class","text-xl font-bold text-center whitespace-nowrap"),u(U,"class","sm:block hidden mx-3 flex-1 border-[0.5px] border-opacity-50 border-gray-400"),u(J,"tabindex","-1"),u(J,"class","hover:no-underline underline underline-offset-2 hover:scale-105 transition-all duration-200 ease-in-out"),u(Y,"class","font-light flex-1 text-xs sm:text-base"),u(a,"class","flex justify-between items-center uppercase sm:px-2 text-center"),u(ae,"class","grid grid-cols-3 gap-2 max-w-md mx-auto p-3"),u(D,"class","board svelte-1y5wh9j"),u(S,"class","cursor-pointer my-2"),u(E,"href","https://huggingface.co/spaces/dalle-mini/dalle-mini"),u(E,"target","_blank"),u(E,"rel","noopener noreferrer"),u(E,"class","underline hover:text-blue-500 hover:no-underline"),u(W,"class","font-bold my-2"),u(ve,"class","font-bold my-2"),u(De,"alt","wordalle example for dog eating pastas"),ze(De.src,St=qt+"/img1.jpg")||u(De,"src",St),u(Le,"alt","wordalle example for cat eating noodle "),ze(Le.src,At=qt+"/img2.jpg")||u(Le,"src",At),u(te,"class","pb-3"),u(x,"class","text-xs my-3"),u(Ce,"class","cursor-pointer my-2"),u(Te,"type","checkbox"),u(Ie,"class","mx-1"),u(Pe,"class","py-3 flex"),u(Ee,"class","text-xs my-3"),u(y,"class","max-w-md mx-auto pt-3"),u(e,"class","max-w-screen-lg mx-auto px-1 relative z-0 mt-3")},m(R,q){ce(R,e,q),se&&se.m(e,null),i(e,t),le&&le.m(e,null),i(e,r),i(e,a),i(a,s),i(s,l),i(a,o),i(a,c),i(a,w),i(a,I),i(I,j),i(a,O),i(a,U),i(a,B),i(a,Y),i(Y,J),i(J,oe),i(e,Q),i(e,ae);for(let ne=0;ne<de.length;ne+=1)de[ne].m(ae,null);i(e,pe),i(e,D);for(let ne=0;ne<me.length;ne+=1)me[ne].m(D,null);i(e,$),Xe(h,e,null),i(e,A),i(e,y),i(y,x),i(x,S),i(S,k),i(k,d),i(x,M),i(x,T),i(T,C),i(T,E),i(E,G),i(T,N),i(x,b),i(x,W),i(W,P),i(x,ee),i(x,m),i(m,L),i(x,H),i(x,V),i(V,re),i(x,ie),i(x,ve),i(ve,_e),i(x,he),i(x,te),i(te,ue),i(te,De),i(te,dt),i(te,Le),i(y,mt),i(y,Ee),i(Ee,Ce),i(Ce,Fe),i(Fe,pt),i(Ee,gt),i(Ee,Me),i(Me,vt),i(Ee,wt),i(Ee,Pe),i(Pe,Te),Te.checked=n[0],i(Pe,_t),i(Pe,Ie),i(Ie,bt),i(Ie,$e),He=!0,yt||(Tt=[Ve(J,"click",n[13]),Ve(Te,"change",n[16])],yt=!0)},p(R,q){if(R[7]?se?(se.p(R,q),q[0]&128&&fe(se,1)):(se=hr(R),se.c(),fe(se,1),se.m(e,t)):se&&(Ke(),we(se,1,1,()=>{se=null}),Je()),R[9]===ye.SUCESS?le?(le.p(R,q),q[0]&512&&fe(le,1)):(le=dr(R),le.c(),fe(le,1),le.m(e,r)):le&&(Ke(),we(le,1,1,()=>{le=null}),Je()),q[0]&1028){Ne=R[2];let X;for(X=0;X<Ne.length;X+=1){const Se=ur(R,Ne,X);de[X]?de[X].p(Se,q):(de[X]=mr(Se),de[X].c(),de[X].m(ae,null))}for(;X<de.length;X+=1)de[X].d(1);de.length=Ne.length}if(q[0]&872){Ue=R[5];let X;for(X=0;X<Ue.length;X+=1){const Se=ir(R,Ue,X);me[X]?me[X].p(Se,q):(me[X]=gr(Se),me[X].c(),me[X].m(D,null))}for(;X<me.length;X+=1)me[X].d(1);me.length=Ue.length}const ne={};!p&&q[0]&16&&(p=!0,ne.letterStates=R[4],Ar(()=>p=!1)),h.$set(ne),q[0]&1&&(Te.checked=R[0]),(!He||q[0]&1)&&Qe($e,R[0])},i(R){He||(fe(se),fe(le),fe(h.$$.fragment,R),He=!0)},o(R){we(se),we(le),we(h.$$.fragment,R),He=!1},d(R){R&&f(e),se&&se.d(),le&&le.d(),Ae(de,R),Ae(me,R),Ze(h),yt=!1,wr(Tt)}}}function hr(n){let e,t;return e=new qr({props:{message:n[7],gameState:n[9]}}),e.$on("restart",n[11]),{c(){qe(e.$$.fragment)},l(r){ht(e.$$.fragment,r)},m(r,a){Xe(e,r,a),t=!0},p(r,a){const s={};a[0]&128&&(s.message=r[7]),a[0]&512&&(s.gameState=r[9]),e.$set(s)},i(r){t||(fe(e.$$.fragment,r),t=!0)},o(r){we(e.$$.fragment,r),t=!1},d(r){Ze(e,r)}}}function dr(n){let e,t;return e=new Yr({props:{board:n[5],currentRowIndex:n[6],imagePaths:n[2],totalStreaks:n[1].length}}),e.$on("restart",n[11]),{c(){qe(e.$$.fragment)},l(r){ht(e.$$.fragment,r)},m(r,a){Xe(e,r,a),t=!0},p(r,a){const s={};a[0]&32&&(s.board=r[5]),a[0]&64&&(s.currentRowIndex=r[6]),a[0]&4&&(s.imagePaths=r[2]),a[0]&2&&(s.totalStreaks=r[1].length),e.$set(s)},i(r){t||(fe(e.$$.fragment,r),t=!0)},o(r){we(e.$$.fragment,r),t=!1},d(r){Ze(e,r)}}}function mr(n){let e,t,r,a;return{c(){e=g("div"),t=g("img"),a=z(),this.h()},l(s){e=v(s,"DIV",{});var l=_(e);t=v(l,"IMG",{src:!0,alt:!0,class:!0}),a=F(l),l.forEach(f),this.h()},h(){ze(t.src,r=n[10]+n[32])||u(t,"src",r),u(t,"alt",""),u(t,"class","aspect-square w-full h-full")},m(s,l){ce(s,e,l),i(e,t),i(e,a)},p(s,l){l[0]&4&&!ze(t.src,r=s[10]+s[32])&&u(t,"src",r)},d(s){s&&f(e)}}}function pr(n){let e,t,r,a=n[30].letter+"",s,l,o,c,w=n[30].letter+"",I,j,O;return{c(){e=g("div"),t=g("div"),r=g("span"),s=K(a),o=z(),c=g("div"),I=K(w),this.h()},l(U){e=v(U,"DIV",{class:!0});var B=_(e);t=v(B,"DIV",{class:!0,style:!0});var Y=_(t);r=v(Y,"SPAN",{class:!0});var J=_(r);s=Z(J,a),J.forEach(f),Y.forEach(f),o=F(B),c=v(B,"DIV",{class:!0,style:!0});var oe=_(c);I=Z(oe,w),oe.forEach(f),B.forEach(f),this.h()},h(){u(r,"class","letter svelte-1y5wh9j"),u(t,"class",l="front z-0 "+(n[30].correct===" "?"space":"")+" svelte-1y5wh9j"),We(t,"transition-delay",n[29]*n[3]+"ms"),u(c,"class",j="back z-0 "+n[30].state+" svelte-1y5wh9j"),We(c,"transition-delay",n[29]*n[3]+"ms"),We(c,"animation-delay",n[29]*100+"ms"),u(e,"class",O="tile "+(n[30].letter&&"filled")+" "+(n[30].state&&"revealed")+" svelte-1y5wh9j")},m(U,B){ce(U,e,B),i(e,t),i(t,r),i(r,s),i(e,o),i(e,c),i(c,I)},p(U,B){B[0]&32&&a!==(a=U[30].letter+"")&&Qe(s,a),B[0]&32&&l!==(l="front z-0 "+(U[30].correct===" "?"space":"")+" svelte-1y5wh9j")&&u(t,"class",l),B[0]&8&&We(t,"transition-delay",U[29]*U[3]+"ms"),B[0]&32&&w!==(w=U[30].letter+"")&&Qe(I,w),B[0]&32&&j!==(j="back z-0 "+U[30].state+" svelte-1y5wh9j")&&u(c,"class",j),B[0]&8&&We(c,"transition-delay",U[29]*U[3]+"ms"),B[0]&32&&O!==(O="tile "+(U[30].letter&&"filled")+" "+(U[30].state&&"revealed")+" svelte-1y5wh9j")&&u(e,"class",O)},d(U){U&&f(e)}}}function gr(n){let e,t,r,a=n[27],s=[];for(let l=0;l<a.length;l+=1)s[l]=pr(cr(n,a,l));return{c(){e=g("div");for(let l=0;l<s.length;l+=1)s[l].c();t=z(),this.h()},l(l){e=v(l,"DIV",{class:!0});var o=_(e);for(let c=0;c<s.length;c+=1)s[c].l(o);t=F(o),o.forEach(f),this.h()},h(){u(e,"class",r="row "+(n[8]===n[29]&&"shake")+" "+(n[9]==ye.SUCESS&&n[6]===n[29]&&"jump")+" svelte-1y5wh9j")},m(l,o){ce(l,e,o);for(let c=0;c<s.length;c+=1)s[c].m(e,null);i(e,t)},p(l,o){if(o[0]&40){a=l[27];let c;for(c=0;c<a.length;c+=1){const w=cr(l,a,c);s[c]?s[c].p(w,o):(s[c]=pr(w),s[c].c(),s[c].m(e,t))}for(;c<s.length;c+=1)s[c].d(1);s.length=a.length}o[0]&832&&r!==(r="row "+(l[8]===l[29]&&"shake")+" "+(l[9]==ye.SUCESS&&l[6]===l[29]&&"jump")+" svelte-1y5wh9j")&&u(e,"class",r)},d(l){l&&f(e),Ae(s,l)}}}function Xr(n){let e,t,r=n[5]!==void 0&&fr(n);return{c(){r&&r.c(),e=lt()},l(a){r&&r.l(a),e=lt()},m(a,s){r&&r.m(a,s),ce(a,e,s),t=!0},p(a,s){a[5]!==void 0?r?(r.p(a,s),s[0]&32&&fe(r,1)):(r=fr(a),r.c(),fe(r,1),r.m(e.parentNode,e)):r&&(Ke(),we(r,1,1,()=>{r=null}),Je())},i(a){t||(fe(r),t=!0)},o(a){we(r),t=!1},d(a){r&&r.d(a),a&&f(e)}}}const nt=1e3;function vr(){document.body.style.setProperty("--vh",window.innerHeight+"px")}function Kr(n,e,t){const r="";let a=!0,s,l=[],o;_r(async()=>{vr(),s=await fetch(r+"data").then(d=>d.json()),ae(),window.addEventListener("keyup",pe,!0),window.addEventListener("resize",vr),window.focus(),document.body.addEventListener("click",()=>window.focus(),!1)}),br(()=>{window.removeEventListener("keyup",pe,!0)});let c,w,I,j,O={},U,B=0,Y="",J=-1,oe=ye.PLAYING,Q=!0;function ae(){t(9,oe=ye.PLAYING),t(8,J=-1),t(7,Y=""),t(6,B=0),t(4,O={}),Q=!0;const d=Object.keys(s),M=l.map(N=>N.idx),T=d.filter((N,b)=>!M.includes(b)),C=~~(Math.random()*T.length),E=T[C];o=d.indexOf(E),c="cat eating noodle",t(2,w=s[E].slice(0,6));const G=[...c].map(N=>Math.random()>.5?"*":N).join("");console.log("%cCLUE: ","color: red;font-weight:bold",G),I=c.length,t(3,j=nt/I),t(5,U=Array.from({length:7},()=>Array.from(c).map(N=>({letter:"",correct:N,state:be.INITIAL})))),document.body.style.setProperty("--cols",`${I}`)}const pe=d=>{D(d.key)};function D(d){!Q||(/^[a-zA-Z]$/.test(d)?t(5,U=jr(U,B,d.toLowerCase())):d==="Backspace"?t(5,U=Ir(U,B)):d==="Enter"&&$())}function $(){const d=[...U],M=d[B],T=Gt({},O);if(M.every(C=>C.letter)){M.map(E=>E.letter).join(""),a&&A(M);const C=c.split("");M.forEach((E,G)=>{C[G]===E.letter&&(E.state=T[E.letter]=be.CORRECT,C[G]=null)}),M.forEach(E=>{!E.state&&C.includes(E.letter)&&(E.state=be.PRESENT,C[C.indexOf(E.letter)]=null,T[E.letter]||(T[E.letter]=be.PRESENT))}),M.forEach(E=>{E.state||(E.state=be.ABSENT,T[E.letter]||(T[E.letter]=be.ABSENT))}),Q=!1,M.every(E=>E.state===be.CORRECT)?(t(1,l=[...l,{prompt:c,idx:o}]),setTimeout(()=>{t(9,oe=ye.SUCESS)},nt)):B<U.length-1?(t(6,B++,B),setTimeout(()=>{Q=!0},nt)):(t(9,oe=ye.FAIL),setTimeout(()=>{h(c.toUpperCase(),-1)},nt))}else p(),h("Not enough letters");t(5,U=d),t(4,O=T)}function h(d,M=1e3){t(7,Y=d),M>0&&setTimeout(()=>{t(7,Y="")},M)}function p(){t(8,J=B),setTimeout(()=>{t(8,J=-1)},1e3)}async function A(d){const M=d.map(C=>C.letter).join(""),T=d.map(C=>C.correct).join("");fetch(r+"prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({guess:M,correct:T})})}const y=d=>{ae(),d.currentTarget.blur()};function x(d){O=d,t(4,O)}const S=({detail:d})=>D(d);function k(){a=this.checked,t(0,a)}return[a,l,w,j,O,U,B,Y,J,oe,r,ae,D,y,x,S,k]}class $r extends ct{constructor(e){super(),ut(this,e,Kr,Xr,ft,{},null,[-1,-1])}}export{$r as default};
 
1
  var kr=Object.defineProperty;var Yt=Object.getOwnPropertySymbols;var xr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable;var Wt=(n,e,t)=>e in n?kr(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Gt=(n,e)=>{for(var t in e||(e={}))xr.call(e,t)&&Wt(n,t,e[t]);if(Yt)for(var t of Yt(e))Pr.call(e,t)&&Wt(n,t,e[t]);return n};import{S as ct,i as ut,s as ft,e as g,k as z,c as v,a as _,m as F,d as f,b as u,g as ce,J as i,K as Ve,L as Ae,n as Ge,M as xt,t as K,h as Z,N as at,O as st,P as Sr,x as qe,y as ht,z as Xe,o as Ke,p as we,C as Ze,q as Je,r as fe,Q as Pt,R as Oe,T as ze,l as lt,j as Qe,U as wr,w as _r,V as br,W as kt,f as We,X as Ar,Y as Tr}from"../chunks/index-7118b6c4.js";import{_ as Re,b as qt}from"../chunks/preload-helper-fca94356.js";var be=(n=>(n.INITIAL="",n.CORRECT="correct",n.PRESENT="present",n.ABSENT="absent",n))(be||{}),ye=(n=>(n[n.PLAYING=0]="PLAYING",n[n.SUCESS=1]="SUCESS",n[n.FAIL=2]="FAIL",n))(ye||{});function Ir(n,e){const t=[...n],r=t[e];for(const a of[...r].reverse())if(a.letter){a.letter="";break}return t}function jr(n,e,t){const r=[...n],a=r[e];for(const s of a)if(s.correct===" "&&(s.letter=" "),!s.letter){s.letter=t;break}return r}const Xt={[be.CORRECT]:"#00b81a",[be.PRESENT]:"#ffc80a",[be.ABSENT]:"#d9d9d9",[be.INITIAL]:"#5d5d5d"},ot={2:"two",5:"five",10:"ten",15:"fifteen",20:"twenty",35:"thirtyfive",50:"fifty"},Rr=["\u{1F917} Hugging \u{1F917}","\u{1F9DE} Genius \u{1F9DE}","\u{1F929} Magnificent \u{1F929}","\u{1F632} Impressive \u{1F632}","\u{1F9DA} Splendid \u{1F9DA}","\u2733 Great \u2733","\u{1F361} Phew \u{1F361}"];function Kt(n,e,t){const r=n.slice();return r[4]=e[t],r[6]=t,r}function Zt(n,e,t){const r=n.slice();return r[7]=e[t],r}function Dr(n){let e;return{c(){e=g("div"),this.h()},l(t){e=v(t,"DIV",{class:!0}),_(e).forEach(f),this.h()},h(){u(e,"class","spacer svelte-2ngxdh")},m(t,r){ce(t,e,r)},d(t){t&&f(e)}}}function Lr(n){let e,t=n[7]+"",r;return{c(){e=g("span"),r=K(t)},l(a){e=v(a,"SPAN",{});var s=_(e);r=Z(s,t),s.forEach(f)},m(a,s){ce(a,e,s),i(e,r)},p:Ge,d(a){a&&f(e)}}}function Cr(n){let e,t;return{c(){e=at("svg"),t=at("path"),this.h()},l(r){e=st(r,"svg",{xmlns:!0,height:!0,viewBox:!0,width:!0});var a=_(e);t=st(a,"path",{fill:!0,d:!0}),_(t).forEach(f),a.forEach(f),this.h()},h(){u(t,"fill","currentColor"),u(t,"d","M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41 17.59 17 19 15.59 15.41 12 19 8.41 17.59 7 14 10.59 10.41 7 9 8.41 12.59 12 9 15.59z"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"height","24"),u(e,"viewBox","0 0 24 24"),u(e,"width","24")},m(r,a){ce(r,e,a),i(e,t)},p:Ge,d(r){r&&f(e)}}}function Jt(n){let e,t,r,a;function s(w,I){return w[7]==="Backspace"?Cr:Lr}let o=s(n)(n);function c(){return n[3](n[7])}return{c(){e=g("button"),o.c(),this.h()},l(w){e=v(w,"BUTTON",{class:!0});var I=_(e);o.l(I),I.forEach(f),this.h()},h(){u(e,"class",t=(n[0][n[7]]===void 0?"":n[0][n[7]])+" "+(n[7].length>1&&"big")+" svelte-2ngxdh")},m(w,I){ce(w,e,I),o.m(e,null),r||(a=Ve(e,"click",c),r=!0)},p(w,I){n=w,o.p(n,I),I&1&&t!==(t=(n[0][n[7]]===void 0?"":n[0][n[7]])+" "+(n[7].length>1&&"big")+" svelte-2ngxdh")&&u(e,"class",t)},d(w){w&&f(e),o.d(),r=!1,a()}}}function Nr(n){let e;return{c(){e=g("div"),this.h()},l(t){e=v(t,"DIV",{class:!0}),_(e).forEach(f),this.h()},h(){u(e,"class","spacer svelte-2ngxdh")},m(t,r){ce(t,e,r)},d(t){t&&f(e)}}}function Qt(n){let e,t,r,a,s=n[6]===1&&Dr(),l=n[4],o=[];for(let w=0;w<l.length;w+=1)o[w]=Jt(Zt(n,l,w));let c=n[6]===1&&Nr();return{c(){e=g("div"),s&&s.c(),t=z();for(let w=0;w<o.length;w+=1)o[w].c();r=z(),c&&c.c(),a=z(),this.h()},l(w){e=v(w,"DIV",{class:!0});var I=_(e);s&&s.l(I),t=F(I);for(let j=0;j<o.length;j+=1)o[j].l(I);r=F(I),c&&c.l(I),a=F(I),I.forEach(f),this.h()},h(){u(e,"class","row svelte-2ngxdh")},m(w,I){ce(w,e,I),s&&s.m(e,null),i(e,t);for(let j=0;j<o.length;j+=1)o[j].m(e,null);i(e,r),c&&c.m(e,null),i(e,a)},p(w,I){if(I&7){l=w[4];let j;for(j=0;j<l.length;j+=1){const O=Zt(w,l,j);o[j]?o[j].p(O,I):(o[j]=Jt(O),o[j].c(),o[j].m(e,r))}for(;j<o.length;j+=1)o[j].d(1);o.length=l.length}},d(w){w&&f(e),s&&s.d(),Ae(o,w),c&&c.d()}}}function Ur(n){let e,t=n[2],r=[];for(let a=0;a<t.length;a+=1)r[a]=Qt(Kt(n,t,a));return{c(){e=g("div");for(let a=0;a<r.length;a+=1)r[a].c();this.h()},l(a){e=v(a,"DIV",{class:!0});var s=_(e);for(let l=0;l<r.length;l+=1)r[l].l(s);s.forEach(f),this.h()},h(){u(e,"class","my-3 mx-auto select-none max-w-md")},m(a,s){ce(a,e,s);for(let l=0;l<r.length;l+=1)r[l].m(e,null)},p(a,[s]){if(s&7){t=a[2];let l;for(l=0;l<t.length;l+=1){const o=Kt(a,t,l);r[l]?r[l].p(o,s):(r[l]=Qt(o),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},i:Ge,o:Ge,d(a){a&&f(e),Ae(r,a)}}}function Br(n,e,t){let{letterStates:r}=e;const a=xt(),s=["qwertyuiop".split(""),[..."asdfghjkl".split("")],["Enter",..."zxcvbnm".split(""),"Backspace"]],l=o=>a("keyup",o);return n.$$set=o=>{"letterStates"in o&&t(0,r=o.letterStates)},[r,a,s,l]}class Vr extends ct{constructor(e){super(),ut(this,e,Br,Ur,ft,{letterStates:0})}}function Or(n){const e=n-1;return e*e*e+1}function it(n,{delay:e=0,duration:t=400,easing:r=Sr}={}){const a=+getComputedStyle(n).opacity;return{delay:e,duration:t,easing:r,css:s=>`opacity: ${s*a}`}}function $t(n,{delay:e=0,duration:t=400,easing:r=Or,start:a=0,opacity:s=0}={}){const l=getComputedStyle(n),o=+l.opacity,c=l.transform==="none"?"":l.transform,w=1-a,I=o*(1-s);return{delay:e,duration:t,easing:r,css:(j,O)=>`
2
  transform: ${c} scale(${1-w*O});
3
  opacity: ${o-I*O}
4
+ `}}var yr={exports:{}};(function(n){(function(e){var t=ae(),r=pe(),a=D(),s=$(),l={imagePlaceholder:void 0,cacheBust:!1},o={toSvg:c,toPng:I,toJpeg:j,toBlob:O,toPixelData:w,impl:{fontFaces:a,images:s,util:t,inliner:r,options:{}}};n.exports=o;function c(h,p){return p=p||{},U(p),Promise.resolve(h).then(function(E){return Y(E,p.filter,!0)}).then(J).then(oe).then(A).then(function(E){return Q(E,p.width||t.width(h),p.height||t.height(h))});function A(E){return p.bgcolor&&(E.style.backgroundColor=p.bgcolor),p.width&&(E.style.width=p.width+"px"),p.height&&(E.style.height=p.height+"px"),p.style&&Object.keys(p.style).forEach(function(x){E.style[x]=p.style[x]}),E}}function w(h,p){return B(h,p||{}).then(function(A){return A.getContext("2d").getImageData(0,0,t.width(h),t.height(h)).data})}function I(h,p){return B(h,p||{}).then(function(A){return A.toDataURL()})}function j(h,p){return p=p||{},B(h,p).then(function(A){return A.toDataURL("image/jpeg",p.quality||1)})}function O(h,p){return B(h,p||{}).then(t.canvasToBlob)}function U(h){typeof h.imagePlaceholder=="undefined"?o.impl.options.imagePlaceholder=l.imagePlaceholder:o.impl.options.imagePlaceholder=h.imagePlaceholder,typeof h.cacheBust=="undefined"?o.impl.options.cacheBust=l.cacheBust:o.impl.options.cacheBust=h.cacheBust}function B(h,p){return c(h,p).then(t.makeImage).then(t.delay(100)).then(function(E){var x=A(h);return x.getContext("2d").drawImage(E,0,0),x});function A(E){var x=document.createElement("canvas");if(x.width=p.width||t.width(E),x.height=p.height||t.height(E),p.bgcolor){var S=x.getContext("2d");S.fillStyle=p.bgcolor,S.fillRect(0,0,x.width,x.height)}return x}}function Y(h,p,A){if(!A&&p&&!p(h))return Promise.resolve();return Promise.resolve(h).then(E).then(function(k){return x(h,k,p)}).then(function(k){return S(h,k)});function E(k){return k instanceof HTMLCanvasElement?t.makeImage(k.toDataURL()):k.cloneNode(!1)}function x(k,d,M){var T=k.childNodes;if(T.length===0)return Promise.resolve(d);return C(d,t.asArray(T),M).then(function(){return d});function C(b,G,N){var y=Promise.resolve();return G.forEach(function(W){y=y.then(function(){return Y(W,N)}).then(function(P){P&&b.appendChild(P)})}),y}}function S(k,d){if(!(d instanceof Element))return d;return Promise.resolve().then(M).then(T).then(C).then(b).then(function(){return d});function M(){G(window.getComputedStyle(k),d.style);function G(N,y){N.cssText?y.cssText=N.cssText:W(N,y);function W(P,ee){t.asArray(P).forEach(function(m){ee.setProperty(m,P.getPropertyValue(m),P.getPropertyPriority(m))})}}}function T(){[":before",":after"].forEach(function(N){G(N)});function G(N){var y=window.getComputedStyle(k,N),W=y.getPropertyValue("content");if(W===""||W==="none")return;var P=t.uid();d.className=d.className+" "+P;var ee=document.createElement("style");ee.appendChild(m(P,N,y)),d.appendChild(ee);function m(L,H,V){var re="."+L+":"+H,ie=V.cssText?ve(V):_e(V);return document.createTextNode(re+"{"+ie+"}");function ve(he){var te=he.getPropertyValue("content");return he.cssText+" content: "+te+";"}function _e(he){return t.asArray(he).map(te).join("; ")+";";function te(ue){return ue+": "+he.getPropertyValue(ue)+(he.getPropertyPriority(ue)?" !important":"")}}}}}function C(){k instanceof HTMLTextAreaElement&&(d.innerHTML=k.value),k instanceof HTMLInputElement&&d.setAttribute("value",k.value)}function b(){d instanceof SVGElement&&(d.setAttribute("xmlns","http://www.w3.org/2000/svg"),d instanceof SVGRectElement&&["width","height"].forEach(function(G){var N=d.getAttribute(G);!N||d.style.setProperty(G,N)}))}}}function J(h){return a.resolveAll().then(function(p){var A=document.createElement("style");return h.appendChild(A),A.appendChild(document.createTextNode(p)),h})}function oe(h){return s.inlineAll(h).then(function(){return h})}function Q(h,p,A){return Promise.resolve(h).then(function(E){return E.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(E)}).then(t.escapeXhtml).then(function(E){return'<foreignObject x="0" y="0" width="100%" height="100%">'+E+"</foreignObject>"}).then(function(E){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+p+'" height="'+A+'">'+E+"</svg>"}).then(function(E){return"data:image/svg+xml;charset=utf-8,"+E})}function ae(){return{escape:b,parseExtension:p,mimeType:A,dataAsUrl:C,isDataUrl:E,canvasToBlob:S,resolveUrl:k,getAndEncode:T,uid:d(),delay:G,asArray:N,escapeXhtml:y,makeImage:M,width:W,height:P};function h(){var m="application/font-woff",L="image/jpeg";return{woff:m,woff2:m,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:L,jpeg:L,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function p(m){var L=/\.([^\.\/]*?)$/g.exec(m);return L?L[1]:""}function A(m){var L=p(m).toLowerCase();return h()[L]||""}function E(m){return m.search(/^(data:)/)!==-1}function x(m){return new Promise(function(L){for(var H=window.atob(m.toDataURL().split(",")[1]),V=H.length,re=new Uint8Array(V),ie=0;ie<V;ie++)re[ie]=H.charCodeAt(ie);L(new Blob([re],{type:"image/png"}))})}function S(m){return m.toBlob?new Promise(function(L){m.toBlob(L)}):x(m)}function k(m,L){var H=document.implementation.createHTMLDocument(),V=H.createElement("base");H.head.appendChild(V);var re=H.createElement("a");return H.body.appendChild(re),V.href=L,re.href=m,re.href}function d(){var m=0;return function(){return"u"+L()+m++;function L(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function M(m){return new Promise(function(L,H){var V=new Image;V.onload=function(){L(V)},V.onerror=H,V.src=m})}function T(m){var L=3e4;return o.impl.options.cacheBust&&(m+=(/\?/.test(m)?"&":"?")+new Date().getTime()),new Promise(function(H){var V=new XMLHttpRequest;V.onreadystatechange=ve,V.ontimeout=_e,V.responseType="blob",V.timeout=L,V.open("GET",m,!0),V.send();var re;if(o.impl.options.imagePlaceholder){var ie=o.impl.options.imagePlaceholder.split(/,/);ie&&ie[1]&&(re=ie[1])}function ve(){if(V.readyState===4){if(V.status!==200){re?H(re):he("cannot fetch resource: "+m+", status: "+V.status);return}var te=new FileReader;te.onloadend=function(){var ue=te.result.split(/,/)[1];H(ue)},te.readAsDataURL(V.response)}}function _e(){re?H(re):he("timeout of "+L+"ms occured while fetching resource: "+m)}function he(te){console.error(te),H("")}})}function C(m,L){return"data:"+L+";base64,"+m}function b(m){return m.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function G(m){return function(L){return new Promise(function(H){setTimeout(function(){H(L)},m)})}}function N(m){for(var L=[],H=m.length,V=0;V<H;V++)L.push(m[V]);return L}function y(m){return m.replace(/#/g,"%23").replace(/\n/g,"%0A")}function W(m){var L=ee(m,"border-left-width"),H=ee(m,"border-right-width");return m.scrollWidth+L+H}function P(m){var L=ee(m,"border-top-width"),H=ee(m,"border-bottom-width");return m.scrollHeight+L+H}function ee(m,L){var H=window.getComputedStyle(m).getPropertyValue(L);return parseFloat(H.replace("px",""))}}function pe(){var h=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:x,shouldProcess:p,impl:{readUrls:A,inline:E}};function p(S){return S.search(h)!==-1}function A(S){for(var k=[],d;(d=h.exec(S))!==null;)k.push(d[1]);return k.filter(function(M){return!t.isDataUrl(M)})}function E(S,k,d,M){return Promise.resolve(k).then(function(C){return d?t.resolveUrl(C,d):C}).then(M||t.getAndEncode).then(function(C){return t.dataAsUrl(C,t.mimeType(k))}).then(function(C){return S.replace(T(k),"$1"+C+"$3")});function T(C){return new RegExp(`(url\\(['"]?)(`+t.escape(C)+`)(['"]?\\))`,"g")}}function x(S,k,d){if(M())return Promise.resolve(S);return Promise.resolve(S).then(A).then(function(T){var C=Promise.resolve(S);return T.forEach(function(b){C=C.then(function(G){return E(G,b,k,d)})}),C});function M(){return!p(S)}}}function D(){return{resolveAll:h,impl:{readAll:p}};function h(){return p().then(function(A){return Promise.all(A.map(function(E){return E.resolve()}))}).then(function(A){return A.join(`
5
+ `)})}function p(){return Promise.resolve(t.asArray(document.styleSheets)).then(E).then(A).then(function(S){return S.map(x)});function A(S){return S.filter(function(k){return k.type===CSSRule.FONT_FACE_RULE}).filter(function(k){return r.shouldProcess(k.style.getPropertyValue("src"))})}function E(S){var k=[];return S.forEach(function(d){try{t.asArray(d.cssRules||[]).forEach(k.push.bind(k))}catch(M){console.log("Error while reading CSS rules from "+d.href,M.toString())}}),k}function x(S){return{resolve:function(){var d=(S.parentStyleSheet||{}).href;return r.inlineAll(S.cssText,d)},src:function(){return S.style.getPropertyValue("src")}}}}}function $(){return{inlineAll:p,impl:{newImage:h}};function h(A){return{inline:E};function E(x){return t.isDataUrl(A.src)?Promise.resolve():Promise.resolve(A.src).then(x||t.getAndEncode).then(function(S){return t.dataAsUrl(S,t.mimeType(A.src))}).then(function(S){return new Promise(function(k,d){A.onload=k,A.onerror=d,A.src=S})})}}function p(A){if(!(A instanceof Element))return Promise.resolve(A);return E(A).then(function(){return A instanceof HTMLImageElement?h(A).inline():Promise.all(t.asArray(A.childNodes).map(function(x){return p(x)}))});function E(x){var S=x.style.getPropertyValue("background");return S?r.inlineAll(S).then(function(k){x.style.setProperty("background",k,x.style.getPropertyPriority("background"))}).then(function(){return x}):Promise.resolve(x)}}}})()})(yr);var zr=yr.exports;function Fr(n){switch(n){case"./badges/fifteen.svelte":return Re(()=>import("../chunks/fifteen-6ece83ce.js"),["chunks/fifteen-6ece83ce.js","chunks/index-7118b6c4.js"]);case"./badges/fifty.svelte":return Re(()=>import("../chunks/fifty-230cfc24.js"),["chunks/fifty-230cfc24.js","chunks/index-7118b6c4.js"]);case"./badges/five.svelte":return Re(()=>import("../chunks/five-e7ec1bc4.js"),["chunks/five-e7ec1bc4.js","chunks/index-7118b6c4.js"]);case"./badges/ten.svelte":return Re(()=>import("../chunks/ten-7c9c0a66.js"),["chunks/ten-7c9c0a66.js","chunks/index-7118b6c4.js"]);case"./badges/thirtyfive.svelte":return Re(()=>import("../chunks/thirtyfive-d3270980.js"),["chunks/thirtyfive-d3270980.js","chunks/index-7118b6c4.js"]);case"./badges/twenty.svelte":return Re(()=>import("../chunks/twenty-97dd6623.js"),["chunks/twenty-97dd6623.js","chunks/index-7118b6c4.js"]);case"./badges/two.svelte":return Re(()=>import("../chunks/two-09cc56a1.js"),["chunks/two-09cc56a1.js","chunks/index-7118b6c4.js"]);default:return new Promise(function(e,t){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+n)))})}}function er(n,e,t){const r=n.slice();return r[18]=e[t],r[20]=t,r}function tr(n,e,t){const r=n.slice();return r[21]=e[t],r[23]=t,r}function rr(n,e,t){const r=n.slice();return r[24]=e[t],r}function nr(n){let e,t,r,a;var s=n[6];function l(o){return{props:{classNames:"w-full max-w-[180px]"}}}return s&&(t=new s(l())),{c(){e=g("div"),t&&qe(t.$$.fragment),this.h()},l(o){e=v(o,"DIV",{class:!0});var c=_(e);t&&ht(t.$$.fragment,c),c.forEach(f),this.h()},h(){u(e,"class","absolute left-0 right-0 top-0 bottom-0 flex place-content-center place-items-center")},m(o,c){ce(o,e,c),t&&Xe(t,e,null),a=!0},p(o,c){if(s!==(s=o[6])){if(t){Ke();const w=t;we(w.$$.fragment,1,0,()=>{Ze(w,1)}),Je()}s?(t=new s(l()),qe(t.$$.fragment),fe(t.$$.fragment,1),Xe(t,e,null)):t=null}},i(o){a||(t&&fe(t.$$.fragment,o),Pt(()=>{r||(r=Oe(e,$t,{duration:500},!0)),r.run(1)}),a=!0)},o(o){t&&we(t.$$.fragment,o),r||(r=Oe(e,$t,{duration:500},!1)),r.run(0),a=!1},d(o){o&&f(e),t&&Ze(t),o&&r&&r.end()}}}function ar(n){let e,t,r,a;return{c(){e=g("div"),t=g("img"),a=z(),this.h()},l(s){e=v(s,"DIV",{});var l=_(e);t=v(l,"IMG",{src:!0,alt:!0,class:!0}),a=F(l),l.forEach(f),this.h()},h(){ze(t.src,r=n[9]+n[24])||u(t,"src",r),u(t,"alt",""),u(t,"class","aspect-square w-full h-full")},m(s,l){ce(s,e,l),i(e,t),i(e,a)},p(s,l){l&2&&!ze(t.src,r=s[9]+s[24])&&u(t,"src",r)},d(s){s&&f(e)}}}function sr(n){let e,t;return{c(){e=at("rect"),this.h()},l(r){e=st(r,"rect",{fill:!0,x:!0,y:!0,width:!0,height:!0,rx:!0}),_(e).forEach(f),this.h()},h(){u(e,"fill",t=Xt[n[21].state]),u(e,"x",n[23]*(xe+ke)),u(e,"y",n[20]*(xe+ke)),u(e,"width",xe),u(e,"height",xe),u(e,"rx",n[11])},m(r,a){ce(r,e,a)},p(r,a){a&1&&t!==(t=Xt[r[21].state])&&u(e,"fill",t)},d(r){r&&f(e)}}}function lr(n){let e,t=n[18],r=[];for(let a=0;a<t.length;a+=1)r[a]=sr(tr(n,t,a));return{c(){for(let a=0;a<r.length;a+=1)r[a].c();e=lt()},l(a){for(let s=0;s<r.length;s+=1)r[s].l(a);e=lt()},m(a,s){for(let l=0;l<r.length;l+=1)r[l].m(a,s);ce(a,e,s)},p(a,s){if(s&2049){t=a[18];let l;for(l=0;l<t.length;l+=1){const o=tr(a,t,l);r[l]?r[l].p(o,s):(r[l]=sr(o),r[l].c(),r[l].m(e.parentNode,e))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},d(a){Ae(r,a),a&&f(e)}}}function Mr(n){let e,t,r,a,s,l,o,c,w,I,j,O,U,B,Y,J,oe,Q,ae,pe,D,$,h=n[5]?"SAVING..":"SAVE SCREENSHOT",p,A,E,x,S,k,d,M,T=n[2]in ot&&nr(n),C=n[1],b=[];for(let y=0;y<C.length;y+=1)b[y]=ar(rr(n,C,y));let G=n[0],N=[];for(let y=0;y<G.length;y+=1)N[y]=lr(er(n,G,y));return{c(){e=g("div"),t=g("div"),r=g("div"),a=g("div"),s=g("header"),l=g("h1"),o=K("WORDALLE \u{1F951}"),c=z(),w=g("span"),I=K("hf.co/wordalle"),j=z(),O=g("h2"),U=K(n[8]),B=z(),Y=g("div"),T&&T.c(),J=z();for(let y=0;y<b.length;y+=1)b[y].c();oe=z(),Q=at("svg");for(let y=0;y<N.length;y+=1)N[y].c();pe=z(),D=g("div"),$=g("button"),p=K(h),A=z(),E=g("button"),x=K("NEXT"),this.h()},l(y){e=v(y,"DIV",{class:!0});var W=_(e);t=v(W,"DIV",{class:!0});var P=_(t);r=v(P,"DIV",{class:!0});var ee=_(r);a=v(ee,"DIV",{class:!0});var m=_(a);s=v(m,"HEADER",{class:!0});var L=_(s);l=v(L,"H1",{class:!0});var H=_(l);o=Z(H,"WORDALLE \u{1F951}"),H.forEach(f),c=F(L),w=v(L,"SPAN",{class:!0});var V=_(w);I=Z(V,"hf.co/wordalle"),V.forEach(f),L.forEach(f),j=F(m),O=v(m,"H2",{class:!0});var re=_(O);U=Z(re,n[8]),re.forEach(f),B=F(m),Y=v(m,"DIV",{class:!0});var ie=_(Y);T&&T.l(ie),J=F(ie);for(let ue=0;ue<b.length;ue+=1)b[ue].l(ie);ie.forEach(f),oe=F(m),Q=st(m,"svg",{class:!0,viewBox:!0,xmlns:!0});var ve=_(Q);for(let ue=0;ue<N.length;ue+=1)N[ue].l(ve);ve.forEach(f),m.forEach(f),ee.forEach(f),pe=F(P),D=v(P,"DIV",{class:!0});var _e=_(D);$=v(_e,"BUTTON",{class:!0});var he=_($);p=Z(he,h),he.forEach(f),A=F(_e),E=v(_e,"BUTTON",{class:!0});var te=_(E);x=Z(te,"NEXT"),te.forEach(f),_e.forEach(f),P.forEach(f),W.forEach(f),this.h()},h(){u(l,"class","text-xs font-bold uppercase whitespace-nowrap"),u(w,"class","font-light"),u(s,"class","p-3 flex justify-between items-center"),u(O,"class","text-center uppercase tracking-widest font-extrabold"),u(Y,"class","grid grid-cols-3 gap-2 p-3 relative"),u(Q,"class","w-full p-3 mx-auto max-h-[30vh]"),u(Q,"viewBox",ae="0 0 "+(n[0][0].length*(ke+xe)-ke)+" "+(n[0].length*(ke+xe)-ke)),u(Q,"xmlns","http://www.w3.org/2000/svg"),u(a,"class","p-3"),u(r,"class","border-0"),$.disabled=n[5],u($,"class","min-w-[15ch] flex-1 mr-1 svelte-oufr2e"),u(E,"class","flex-1 ml-1 svelte-oufr2e"),u(D,"class","p-3 px-6 flex text-base"),u(t,"class","message svelte-oufr2e"),u(e,"class","modal relative z-50 svelte-oufr2e")},m(y,W){ce(y,e,W),i(e,t),i(t,r),i(r,a),i(a,s),i(s,l),i(l,o),i(s,c),i(s,w),i(w,I),i(a,j),i(a,O),i(O,U),i(a,B),i(a,Y),T&&T.m(Y,null),i(Y,J);for(let P=0;P<b.length;P+=1)b[P].m(Y,null);i(a,oe),i(a,Q);for(let P=0;P<N.length;P+=1)N[P].m(Q,null);n[13](a),i(t,pe),i(t,D),i(D,$),i($,p),i(D,A),i(D,E),i(E,x),n[16](e),k=!0,d||(M=[Ve($,"click",n[14]),Ve(E,"click",n[15])],d=!0)},p(y,[W]){if(y[2]in ot?T?(T.p(y,W),W&4&&fe(T,1)):(T=nr(y),T.c(),fe(T,1),T.m(Y,J)):T&&(Ke(),we(T,1,1,()=>{T=null}),Je()),W&514){C=y[1];let P;for(P=0;P<C.length;P+=1){const ee=rr(y,C,P);b[P]?b[P].p(ee,W):(b[P]=ar(ee),b[P].c(),b[P].m(Y,null))}for(;P<b.length;P+=1)b[P].d(1);b.length=C.length}if(W&2049){G=y[0];let P;for(P=0;P<G.length;P+=1){const ee=er(y,G,P);N[P]?N[P].p(ee,W):(N[P]=lr(ee),N[P].c(),N[P].m(Q,null))}for(;P<N.length;P+=1)N[P].d(1);N.length=G.length}(!k||W&1&&ae!==(ae="0 0 "+(y[0][0].length*(ke+xe)-ke)+" "+(y[0].length*(ke+xe)-ke)))&&u(Q,"viewBox",ae),(!k||W&32)&&h!==(h=y[5]?"SAVING..":"SAVE SCREENSHOT")&&Qe(p,h),(!k||W&32)&&($.disabled=y[5])},i(y){k||(fe(T),Pt(()=>{S||(S=Oe(e,it,{},!0)),S.run(1)}),k=!0)},o(y){we(T),S||(S=Oe(e,it,{},!1)),S.run(0),k=!1},d(y){y&&f(e),T&&T.d(),Ae(b,y),Ae(N,y),n[13](null),n[16](null),y&&S&&S.end(),d=!1,wr(M)}}}const xe=10,ke=1;function Hr(n,e,t){const r=xt();let{board:a}=e,{currentRowIndex:s}=e,{imagePaths:l}=e,{totalStreaks:o}=e;const c=Rr[s],w="";let I,j,O=!1;async function U(D){t(5,O=!0);try{const $=await zr.toBlob(D,{bgcolor:"#000"}),h=document.createElement("a");h.download=`sucess-${Date.now()}.png`,h.target="_self",h.onclick=async p=>{if(t(5,O=!0),h.href){URL.revokeObjectURL(h.href),t(5,O=!1);return}h.href=URL.createObjectURL($),t(5,O=!1)},h.click(),console.log("Downloding image.")}catch($){console.log($.name,$.message)}}const B=D=>{D.key==="Escape"?r("restart"):D.key===" "&&U(j)};let Y;_r(async()=>{if(o in ot){const D=ot[o];t(6,Y=(await Fr(`./badges/${D}.svelte`)).default)}window.addEventListener("keyup",B,!0)}),br(()=>{window.removeEventListener("keyup",B,!0)});const J=xe/10;function oe(D){kt[D?"unshift":"push"](()=>{j=D,t(4,j)})}const Q=()=>U(j),ae=()=>r("restart");function pe(D){kt[D?"unshift":"push"](()=>{I=D,t(3,I)})}return n.$$set=D=>{"board"in D&&t(0,a=D.board),"currentRowIndex"in D&&t(12,s=D.currentRowIndex),"imagePaths"in D&&t(1,l=D.imagePaths),"totalStreaks"in D&&t(2,o=D.totalStreaks)},[a,l,o,I,j,O,Y,r,c,w,U,J,s,oe,Q,ae,pe]}class Yr extends ct{constructor(e){super(),ut(this,e,Hr,Mr,ft,{board:0,currentRowIndex:12,imagePaths:1,totalStreaks:2})}}function or(n){let e,t,r,a,s;return{c(){e=g("div"),t=g("button"),r=K("Try Again"),this.h()},l(l){e=v(l,"DIV",{class:!0});var o=_(e);t=v(o,"BUTTON",{class:!0});var c=_(t);r=Z(c,"Try Again"),c.forEach(f),o.forEach(f),this.h()},h(){u(t,"class","hover:no-underline underline underline-offset-2 hover:scale-105 transition-all duration-200 ease-in-out"),u(e,"class","font-light flex-1 text-xs sm:text-base text-center")},m(l,o){ce(l,e,o),i(e,t),i(t,r),a||(s=Ve(t,"click",n[3]),a=!0)},p:Ge,d(l){l&&f(e),a=!1,s()}}}function Wr(n){let e,t,r,a,s,l=n[0]===ye.FAIL&&or(n);return{c(){e=g("div"),t=K(n[1]),r=z(),l&&l.c(),this.h()},l(o){e=v(o,"DIV",{class:!0});var c=_(e);t=Z(c,n[1]),r=F(c),l&&l.l(c),c.forEach(f),this.h()},h(){u(e,"class","message svelte-1sv0qpd")},m(o,c){ce(o,e,c),i(e,t),i(e,r),l&&l.m(e,null),s=!0},p(o,[c]){(!s||c&2)&&Qe(t,o[1]),o[0]===ye.FAIL?l?l.p(o,c):(l=or(o),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(o){s||(Pt(()=>{a||(a=Oe(e,it,{},!0)),a.run(1)}),s=!0)},o(o){a||(a=Oe(e,it,{},!1)),a.run(0),s=!1},d(o){o&&f(e),l&&l.d(),o&&a&&a.end()}}}function Gr(n,e,t){const r=xt();let{gameState:a}=e,{message:s=null}=e;const l=()=>r("restart");return n.$$set=o=>{"gameState"in o&&t(0,a=o.gameState),"message"in o&&t(1,s=o.message)},[a,s,r,l]}class qr extends ct{constructor(e){super(),ut(this,e,Gr,Wr,ft,{gameState:0,message:1})}}function ir(n,e,t){const r=n.slice();return r[27]=e[t],r[29]=t,r}function cr(n,e,t){const r=n.slice();return r[30]=e[t],r[29]=t,r}function ur(n,e,t){const r=n.slice();return r[32]=e[t],r}function fr(n){let e,t,r,a,s,l,o,c,w,I,j,O,U,B,Y,J,oe,Q,ae,pe,D,$,h,p,A,E,x,S,k,d,M,T,C,b,G,N,y,W,P,ee,m,L,H,V,re,ie,ve,_e,he,te,ue,De,St,dt,Le,At,mt,Ee,Ce,Fe,pt,gt,Me,vt,wt,Pe,Te,_t,Ie,bt,$e,He,yt,Tt,se=n[7]&&hr(n),le=n[9]===ye.SUCESS&&dr(n),Ne=n[2],de=[];for(let R=0;R<Ne.length;R+=1)de[R]=mr(ur(n,Ne,R));let Ue=n[5],me=[];for(let R=0;R<Ue.length;R+=1)me[R]=gr(ir(n,Ue,R));function Er(R){n[14](R)}let It={};return n[4]!==void 0&&(It.letterStates=n[4]),h=new Vr({props:It}),kt.push(()=>Tr(h,"letterStates",Er)),h.$on("keyup",n[15]),{c(){e=g("div"),se&&se.c(),t=z(),le&&le.c(),r=z(),a=g("header"),s=g("span"),l=K("Guess the prompt!"),o=z(),c=g("span"),w=z(),I=g("h1"),j=K("\u{1F951} WORDALLE \u{1F951}"),O=z(),U=g("span"),B=z(),Y=g("span"),J=g("button"),oe=K("Skip to next"),Q=z(),ae=g("div");for(let R=0;R<de.length;R+=1)de[R].c();pe=z(),D=g("div");for(let R=0;R<me.length;R+=1)me[R].c();$=z(),qe(h.$$.fragment),A=z(),E=g("footer"),x=g("details"),S=g("summary"),k=g("span"),d=K("About"),M=z(),T=g("p"),C=K("Welcome to Wordalle! The game that marries "),b=g("a"),G=K("DALLE mini"),N=K(" & Wordle!\u201D"),y=z(),W=g("h2"),P=K("Instructions"),ee=z(),m=g("p"),L=K(`You are given a board with a grid of letters. You must guess the prompt used to generate
6
  the images.`),H=z(),V=g("p"),re=K(`Your guess must contain the same number of letters as tiles. After you guess, the tiles
7
  will be revealed.`),ie=z(),ve=g("h2"),_e=K("Example"),he=z(),te=g("p"),ue=K(`The green tiles are correct letter placements. The yellow tiles are correct letters but in
8
  wrong position and the gray tiles are letters not present in the prompt.
9
  `),De=g("img"),dt=z(),Le=g("img"),mt=z(),Ee=g("details"),Ce=g("summary"),Fe=g("span"),pt=K("Disclaimer"),gt=z(),Me=g("p"),vt=K(`This demo collects the guesses to help with a research project. The demo stores no
10
+ personal data, such as your IP address, email, or account, only your guesses.`),wt=z(),Pe=g("label"),Te=g("input"),_t=z(),Ie=g("span"),bt=K("Please uncheck to disable sharing "),$e=K(n[0]),this.h()},l(R){e=v(R,"DIV",{class:!0});var q=_(e);se&&se.l(q),t=F(q),le&&le.l(q),r=F(q),a=v(q,"HEADER",{class:!0});var ne=_(a);s=v(ne,"SPAN",{class:!0});var X=_(s);l=Z(X,"Guess the prompt!"),X.forEach(f),o=F(ne),c=v(ne,"SPAN",{class:!0}),_(c).forEach(f),w=F(ne),I=v(ne,"H1",{class:!0});var Se=_(I);j=Z(Se,"\u{1F951} WORDALLE \u{1F951}"),Se.forEach(f),O=F(ne),U=v(ne,"SPAN",{class:!0}),_(U).forEach(f),B=F(ne),Y=v(ne,"SPAN",{class:!0});var jt=_(Y);J=v(jt,"BUTTON",{tabindex:!0,class:!0});var Rt=_(J);oe=Z(Rt,"Skip to next"),Rt.forEach(f),jt.forEach(f),ne.forEach(f),Q=F(q),ae=v(q,"DIV",{class:!0});var Dt=_(ae);for(let je=0;je<de.length;je+=1)de[je].l(Dt);Dt.forEach(f),pe=F(q),D=v(q,"DIV",{class:!0});var Lt=_(D);for(let je=0;je<me.length;je+=1)me[je].l(Lt);Lt.forEach(f),$=F(q),ht(h.$$.fragment,q),A=F(q),E=v(q,"FOOTER",{class:!0});var et=_(E);x=v(et,"DETAILS",{class:!0});var ge=_(x);S=v(ge,"SUMMARY",{class:!0});var Ct=_(S);k=v(Ct,"SPAN",{});var Nt=_(k);d=Z(Nt,"About"),Nt.forEach(f),Ct.forEach(f),M=F(ge),T=v(ge,"P",{});var tt=_(T);C=Z(tt,"Welcome to Wordalle! The game that marries "),b=v(tt,"A",{href:!0,target:!0,rel:!0,class:!0});var Ut=_(b);G=Z(Ut,"DALLE mini"),Ut.forEach(f),N=Z(tt," & Wordle!\u201D"),tt.forEach(f),y=F(ge),W=v(ge,"H2",{class:!0});var Bt=_(W);P=Z(Bt,"Instructions"),Bt.forEach(f),ee=F(ge),m=v(ge,"P",{});var Vt=_(m);L=Z(Vt,`You are given a board with a grid of letters. You must guess the prompt used to generate
11
  the images.`),Vt.forEach(f),H=F(ge),V=v(ge,"P",{});var Ot=_(V);re=Z(Ot,`Your guess must contain the same number of letters as tiles. After you guess, the tiles
12
  will be revealed.`),Ot.forEach(f),ie=F(ge),ve=v(ge,"H2",{class:!0});var zt=_(ve);_e=Z(zt,"Example"),zt.forEach(f),he=F(ge),te=v(ge,"P",{class:!0});var Ye=_(te);ue=Z(Ye,`The green tiles are correct letter placements. The yellow tiles are correct letters but in
13
  wrong position and the gray tiles are letters not present in the prompt.
14
  `),De=v(Ye,"IMG",{alt:!0,src:!0}),dt=F(Ye),Le=v(Ye,"IMG",{alt:!0,src:!0}),Ye.forEach(f),ge.forEach(f),mt=F(et),Ee=v(et,"DETAILS",{class:!0});var Be=_(Ee);Ce=v(Be,"SUMMARY",{class:!0});var Ft=_(Ce);Fe=v(Ft,"SPAN",{});var Mt=_(Fe);pt=Z(Mt,"Disclaimer"),Mt.forEach(f),Ft.forEach(f),gt=F(Be),Me=v(Be,"P",{});var Ht=_(Me);vt=Z(Ht,`This demo collects the guesses to help with a research project. The demo stores no
15
+ personal data, such as your IP address, email, or account, only your guesses.`),Ht.forEach(f),wt=F(Be),Pe=v(Be,"LABEL",{class:!0});var rt=_(Pe);Te=v(rt,"INPUT",{type:!0}),_t=F(rt),Ie=v(rt,"SPAN",{class:!0});var Et=_(Ie);bt=Z(Et,"Please uncheck to disable sharing "),$e=Z(Et,n[0]),Et.forEach(f),rt.forEach(f),Be.forEach(f),et.forEach(f),q.forEach(f),this.h()},h(){u(s,"class","font-light flex-1 text-xs sm:text-base"),u(c,"class","sm:block hidden mx-3 flex-1 border-[0.5px] border-opacity-50 border-gray-400"),u(I,"class","text-xl font-bold text-center whitespace-nowrap"),u(U,"class","sm:block hidden mx-3 flex-1 border-[0.5px] border-opacity-50 border-gray-400"),u(J,"tabindex","-1"),u(J,"class","hover:no-underline underline underline-offset-2 hover:scale-105 transition-all duration-200 ease-in-out"),u(Y,"class","font-light flex-1 text-xs sm:text-base"),u(a,"class","flex justify-between items-center uppercase sm:px-2 text-center"),u(ae,"class","grid grid-cols-3 gap-2 max-w-md mx-auto p-3"),u(D,"class","board svelte-1y5wh9j"),u(S,"class","cursor-pointer my-2"),u(b,"href","https://huggingface.co/spaces/dalle-mini/dalle-mini"),u(b,"target","_blank"),u(b,"rel","noopener noreferrer"),u(b,"class","underline hover:text-blue-500 hover:no-underline"),u(W,"class","font-bold my-2"),u(ve,"class","font-bold my-2"),u(De,"alt","wordalle example for dog eating pastas"),ze(De.src,St=qt+"/img1.jpg")||u(De,"src",St),u(Le,"alt","wordalle example for cat eating noodle "),ze(Le.src,At=qt+"/img2.jpg")||u(Le,"src",At),u(te,"class","pb-3"),u(x,"class","text-xs my-3"),u(Ce,"class","cursor-pointer my-2"),u(Te,"type","checkbox"),u(Ie,"class","mx-1"),u(Pe,"class","py-3 flex"),u(Ee,"class","text-xs my-3"),u(E,"class","max-w-md mx-auto pt-3"),u(e,"class","max-w-screen-lg mx-auto px-1 relative z-0 mt-3")},m(R,q){ce(R,e,q),se&&se.m(e,null),i(e,t),le&&le.m(e,null),i(e,r),i(e,a),i(a,s),i(s,l),i(a,o),i(a,c),i(a,w),i(a,I),i(I,j),i(a,O),i(a,U),i(a,B),i(a,Y),i(Y,J),i(J,oe),i(e,Q),i(e,ae);for(let ne=0;ne<de.length;ne+=1)de[ne].m(ae,null);i(e,pe),i(e,D);for(let ne=0;ne<me.length;ne+=1)me[ne].m(D,null);i(e,$),Xe(h,e,null),i(e,A),i(e,E),i(E,x),i(x,S),i(S,k),i(k,d),i(x,M),i(x,T),i(T,C),i(T,b),i(b,G),i(T,N),i(x,y),i(x,W),i(W,P),i(x,ee),i(x,m),i(m,L),i(x,H),i(x,V),i(V,re),i(x,ie),i(x,ve),i(ve,_e),i(x,he),i(x,te),i(te,ue),i(te,De),i(te,dt),i(te,Le),i(E,mt),i(E,Ee),i(Ee,Ce),i(Ce,Fe),i(Fe,pt),i(Ee,gt),i(Ee,Me),i(Me,vt),i(Ee,wt),i(Ee,Pe),i(Pe,Te),Te.checked=n[0],i(Pe,_t),i(Pe,Ie),i(Ie,bt),i(Ie,$e),He=!0,yt||(Tt=[Ve(J,"click",n[13]),Ve(Te,"change",n[16])],yt=!0)},p(R,q){if(R[7]?se?(se.p(R,q),q[0]&128&&fe(se,1)):(se=hr(R),se.c(),fe(se,1),se.m(e,t)):se&&(Ke(),we(se,1,1,()=>{se=null}),Je()),R[9]===ye.SUCESS?le?(le.p(R,q),q[0]&512&&fe(le,1)):(le=dr(R),le.c(),fe(le,1),le.m(e,r)):le&&(Ke(),we(le,1,1,()=>{le=null}),Je()),q[0]&1028){Ne=R[2];let X;for(X=0;X<Ne.length;X+=1){const Se=ur(R,Ne,X);de[X]?de[X].p(Se,q):(de[X]=mr(Se),de[X].c(),de[X].m(ae,null))}for(;X<de.length;X+=1)de[X].d(1);de.length=Ne.length}if(q[0]&872){Ue=R[5];let X;for(X=0;X<Ue.length;X+=1){const Se=ir(R,Ue,X);me[X]?me[X].p(Se,q):(me[X]=gr(Se),me[X].c(),me[X].m(D,null))}for(;X<me.length;X+=1)me[X].d(1);me.length=Ue.length}const ne={};!p&&q[0]&16&&(p=!0,ne.letterStates=R[4],Ar(()=>p=!1)),h.$set(ne),q[0]&1&&(Te.checked=R[0]),(!He||q[0]&1)&&Qe($e,R[0])},i(R){He||(fe(se),fe(le),fe(h.$$.fragment,R),He=!0)},o(R){we(se),we(le),we(h.$$.fragment,R),He=!1},d(R){R&&f(e),se&&se.d(),le&&le.d(),Ae(de,R),Ae(me,R),Ze(h),yt=!1,wr(Tt)}}}function hr(n){let e,t;return e=new qr({props:{message:n[7],gameState:n[9]}}),e.$on("restart",n[11]),{c(){qe(e.$$.fragment)},l(r){ht(e.$$.fragment,r)},m(r,a){Xe(e,r,a),t=!0},p(r,a){const s={};a[0]&128&&(s.message=r[7]),a[0]&512&&(s.gameState=r[9]),e.$set(s)},i(r){t||(fe(e.$$.fragment,r),t=!0)},o(r){we(e.$$.fragment,r),t=!1},d(r){Ze(e,r)}}}function dr(n){let e,t;return e=new Yr({props:{board:n[5],currentRowIndex:n[6],imagePaths:n[2],totalStreaks:n[1].length}}),e.$on("restart",n[11]),{c(){qe(e.$$.fragment)},l(r){ht(e.$$.fragment,r)},m(r,a){Xe(e,r,a),t=!0},p(r,a){const s={};a[0]&32&&(s.board=r[5]),a[0]&64&&(s.currentRowIndex=r[6]),a[0]&4&&(s.imagePaths=r[2]),a[0]&2&&(s.totalStreaks=r[1].length),e.$set(s)},i(r){t||(fe(e.$$.fragment,r),t=!0)},o(r){we(e.$$.fragment,r),t=!1},d(r){Ze(e,r)}}}function mr(n){let e,t,r,a;return{c(){e=g("div"),t=g("img"),a=z(),this.h()},l(s){e=v(s,"DIV",{});var l=_(e);t=v(l,"IMG",{src:!0,alt:!0,class:!0}),a=F(l),l.forEach(f),this.h()},h(){ze(t.src,r=n[10]+n[32])||u(t,"src",r),u(t,"alt",""),u(t,"class","aspect-square w-full h-full")},m(s,l){ce(s,e,l),i(e,t),i(e,a)},p(s,l){l[0]&4&&!ze(t.src,r=s[10]+s[32])&&u(t,"src",r)},d(s){s&&f(e)}}}function pr(n){let e,t,r,a=n[30].letter+"",s,l,o,c,w=n[30].letter+"",I,j,O;return{c(){e=g("div"),t=g("div"),r=g("span"),s=K(a),o=z(),c=g("div"),I=K(w),this.h()},l(U){e=v(U,"DIV",{class:!0});var B=_(e);t=v(B,"DIV",{class:!0,style:!0});var Y=_(t);r=v(Y,"SPAN",{class:!0});var J=_(r);s=Z(J,a),J.forEach(f),Y.forEach(f),o=F(B),c=v(B,"DIV",{class:!0,style:!0});var oe=_(c);I=Z(oe,w),oe.forEach(f),B.forEach(f),this.h()},h(){u(r,"class","letter svelte-1y5wh9j"),u(t,"class",l="front z-0 "+(n[30].correct===" "?"space":"")+" svelte-1y5wh9j"),We(t,"transition-delay",n[29]*n[3]+"ms"),u(c,"class",j="back z-0 "+n[30].state+" svelte-1y5wh9j"),We(c,"transition-delay",n[29]*n[3]+"ms"),We(c,"animation-delay",n[29]*100+"ms"),u(e,"class",O="tile "+(n[30].letter&&"filled")+" "+(n[30].state&&"revealed")+" svelte-1y5wh9j")},m(U,B){ce(U,e,B),i(e,t),i(t,r),i(r,s),i(e,o),i(e,c),i(c,I)},p(U,B){B[0]&32&&a!==(a=U[30].letter+"")&&Qe(s,a),B[0]&32&&l!==(l="front z-0 "+(U[30].correct===" "?"space":"")+" svelte-1y5wh9j")&&u(t,"class",l),B[0]&8&&We(t,"transition-delay",U[29]*U[3]+"ms"),B[0]&32&&w!==(w=U[30].letter+"")&&Qe(I,w),B[0]&32&&j!==(j="back z-0 "+U[30].state+" svelte-1y5wh9j")&&u(c,"class",j),B[0]&8&&We(c,"transition-delay",U[29]*U[3]+"ms"),B[0]&32&&O!==(O="tile "+(U[30].letter&&"filled")+" "+(U[30].state&&"revealed")+" svelte-1y5wh9j")&&u(e,"class",O)},d(U){U&&f(e)}}}function gr(n){let e,t,r,a=n[27],s=[];for(let l=0;l<a.length;l+=1)s[l]=pr(cr(n,a,l));return{c(){e=g("div");for(let l=0;l<s.length;l+=1)s[l].c();t=z(),this.h()},l(l){e=v(l,"DIV",{class:!0});var o=_(e);for(let c=0;c<s.length;c+=1)s[c].l(o);t=F(o),o.forEach(f),this.h()},h(){u(e,"class",r="row "+(n[8]===n[29]&&"shake")+" "+(n[9]==ye.SUCESS&&n[6]===n[29]&&"jump")+" svelte-1y5wh9j")},m(l,o){ce(l,e,o);for(let c=0;c<s.length;c+=1)s[c].m(e,null);i(e,t)},p(l,o){if(o[0]&40){a=l[27];let c;for(c=0;c<a.length;c+=1){const w=cr(l,a,c);s[c]?s[c].p(w,o):(s[c]=pr(w),s[c].c(),s[c].m(e,t))}for(;c<s.length;c+=1)s[c].d(1);s.length=a.length}o[0]&832&&r!==(r="row "+(l[8]===l[29]&&"shake")+" "+(l[9]==ye.SUCESS&&l[6]===l[29]&&"jump")+" svelte-1y5wh9j")&&u(e,"class",r)},d(l){l&&f(e),Ae(s,l)}}}function Xr(n){let e,t,r=n[5]!==void 0&&fr(n);return{c(){r&&r.c(),e=lt()},l(a){r&&r.l(a),e=lt()},m(a,s){r&&r.m(a,s),ce(a,e,s),t=!0},p(a,s){a[5]!==void 0?r?(r.p(a,s),s[0]&32&&fe(r,1)):(r=fr(a),r.c(),fe(r,1),r.m(e.parentNode,e)):r&&(Ke(),we(r,1,1,()=>{r=null}),Je())},i(a){t||(fe(r),t=!0)},o(a){we(r),t=!1},d(a){r&&r.d(a),a&&f(e)}}}const nt=1e3;function vr(){document.body.style.setProperty("--vh",window.innerHeight+"px")}function Kr(n,e,t){const r="";let a=!0,s,l=[],o;_r(async()=>{vr(),s=await fetch(r+"data").then(d=>d.json()),ae(),window.addEventListener("keyup",pe,!0),window.addEventListener("resize",vr),window.focus(),document.body.addEventListener("click",()=>window.focus(),!1)}),br(()=>{window.removeEventListener("keyup",pe,!0)});let c,w,I,j,O={},U,B=0,Y="",J=-1,oe=ye.PLAYING,Q=!0;function ae(){t(9,oe=ye.PLAYING),t(8,J=-1),t(7,Y=""),t(6,B=0),t(4,O={}),Q=!0;const d=Object.keys(s),M=l.map(N=>N.idx),T=d.filter((N,y)=>!M.includes(y)),C=~~(Math.random()*T.length),b=T[C];o=d.indexOf(b),c=b.replace(/_/g," "),t(2,w=s[b].slice(0,6));const G=[...c].map(N=>Math.random()>.5?"*":N).join("");console.log("%cCLUE: ","color: red;font-weight:bold",G),I=c.length,t(3,j=nt/I),t(5,U=Array.from({length:7},()=>Array.from(c).map(N=>({letter:"",correct:N,state:be.INITIAL})))),document.body.style.setProperty("--cols",`${I}`)}const pe=d=>{D(d.key)};function D(d){!Q||(/^[a-zA-Z]$/.test(d)?t(5,U=jr(U,B,d.toLowerCase())):d==="Backspace"?t(5,U=Ir(U,B)):d==="Enter"&&$())}function $(){const d=[...U],M=d[B],T=Gt({},O);if(M.every(C=>C.letter)){M.map(b=>b.letter).join(""),a&&A(M);const C=c.split("");M.forEach((b,G)=>{C[G]===b.letter&&(b.state=T[b.letter]=be.CORRECT,C[G]=null)}),M.forEach(b=>{!b.state&&C.includes(b.letter)&&(b.state=be.PRESENT,C[C.indexOf(b.letter)]=null,T[b.letter]||(T[b.letter]=be.PRESENT))}),M.forEach(b=>{b.state||(b.state=be.ABSENT,T[b.letter]||(T[b.letter]=be.ABSENT))}),Q=!1,M.every(b=>b.state===be.CORRECT)?(t(1,l=[...l,{prompt:c,idx:o}]),setTimeout(()=>{t(9,oe=ye.SUCESS)},nt)):B<U.length-1?(t(6,B++,B),setTimeout(()=>{Q=!0},nt)):(t(9,oe=ye.FAIL),setTimeout(()=>{h(c.toUpperCase(),-1)},nt))}else p(),h("Not enough letters");t(5,U=d),t(4,O=T)}function h(d,M=1e3){t(7,Y=d),M>0&&setTimeout(()=>{t(7,Y="")},M)}function p(){t(8,J=B),setTimeout(()=>{t(8,J=-1)},1e3)}async function A(d){const M=d.map(C=>C.letter).join(""),T=d.map(C=>C.correct).join("");fetch(r+"prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({guess:M,correct:T})})}const E=d=>{ae(),d.currentTarget.blur()};function x(d){O=d,t(4,O)}const S=({detail:d})=>D(d);function k(){a=this.checked,t(0,a)}return[a,l,w,j,O,U,B,Y,J,oe,r,ae,D,E,x,S,k]}class $r extends ct{constructor(e){super(),ut(this,e,Kr,Xr,ft,{},null,[-1,-1])}}export{$r as default};
static/_app/immutable/{start-15953b66.js β†’ start-e112b0e1.js} RENAMED
@@ -1 +1 @@
1
- var tt=Object.defineProperty,nt=Object.defineProperties;var st=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var ze=(n,e,t)=>e in n?tt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))Ve.call(e,t)&&ze(n,t,e[t]);if(ue)for(var t of ue(e))qe.call(e,t)&&ze(n,t,e[t]);return n},se=(n,e)=>nt(n,st(e));var Je=(n,e)=>{var t={};for(var i in n)Ve.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&ue)for(var i of ue(n))e.indexOf(i)<0&&qe.call(n,i)&&(t[i]=n[i]);return t};import{s as Qe,n as ye,S as rt,i as it,e as at,c as ot,a as ct,d as z,b as ve,f as B,g as V,t as lt,h as ft,j as ut,k as dt,l as T,m as pt,o as Y,p as j,q as G,r as I,u as ht,v as _t,w as Re,x as q,y as ie,z as J,A as ae,B as oe,C as K,D as ce,E as Ke}from"./chunks/index-7118b6c4.js";import{_ as $e,s as mt,a as gt}from"./chunks/preload-helper-fca94356.js";const H=[];function de(n,e=ye){let t;const i=new Set;function l(s){if(Qe(n,s)&&(n=s,t)){const r=!H.length;for(const a of i)a[1](),H.push(a,n);if(r){for(let a=0;a<H.length;a+=2)H[a][0](H[a+1]);H.length=0}}}function c(s){l(s(n))}function u(s,r=ye){const a=[s,r];return i.add(a),i.size===1&&(t=e(l)||ye),s(n),()=>{i.delete(a),i.size===0&&(t(),t=null)}}return{set:l,update:c,subscribe:u}}function wt(n){let e,t,i;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&2?ae(l,[oe(s[1]||{})]):{};if(c!==(c=s[0][0])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function bt(n){let e,t,i;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={$$slots:{default:[kt]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u(n))),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&2?ae(l,[oe(s[1]||{})]):{};if(r&525&&(a.$$scope={dirty:r,ctx:s}),c!==(c=s[0][0])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u(s)),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function yt(n){let e,t,i;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&4?ae(l,[oe(s[2]||{})]):{};if(c!==(c=s[0][1])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function vt(n){let e,t,i;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={$$slots:{default:[$t]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u(n))),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&4?ae(l,[oe(s[2]||{})]):{};if(r&521&&(a.$$scope={dirty:r,ctx:s}),c!==(c=s[0][1])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u(s)),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function $t(n){let e,t,i;const l=[n[3]||{}];var c=n[0][2];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&8?ae(l,[oe(s[3]||{})]):{};if(c!==(c=s[0][2])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function kt(n){let e,t,i,l;const c=[vt,yt],u=[];function s(r,a){return r[0][2]?0:1}return e=s(n),t=u[e]=c[e](n),{c(){t.c(),i=T()},l(r){t.l(r),i=T()},m(r,a){u[e].m(r,a),V(r,i,a),l=!0},p(r,a){let d=e;e=s(r),e===d?u[e].p(r,a):(Y(),j(u[d],1,1,()=>{u[d]=null}),G(),t=u[e],t?t.p(r,a):(t=u[e]=c[e](r),t.c()),I(t,1),t.m(i.parentNode,i))},i(r){l||(I(t),l=!0)},o(r){j(t),l=!1},d(r){u[e].d(r),r&&z(i)}}}function Be(n){let e,t=n[5]&&Me(n);return{c(){e=at("div"),t&&t.c(),this.h()},l(i){e=ot(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=ct(e);t&&t.l(l),l.forEach(z),this.h()},h(){ve(e,"id","svelte-announcer"),ve(e,"aria-live","assertive"),ve(e,"aria-atomic","true"),B(e,"position","absolute"),B(e,"left","0"),B(e,"top","0"),B(e,"clip","rect(0 0 0 0)"),B(e,"clip-path","inset(50%)"),B(e,"overflow","hidden"),B(e,"white-space","nowrap"),B(e,"width","1px"),B(e,"height","1px")},m(i,l){V(i,e,l),t&&t.m(e,null)},p(i,l){i[5]?t?t.p(i,l):(t=Me(i),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(i){i&&z(e),t&&t.d()}}}function Me(n){let e;return{c(){e=lt(n[6])},l(t){e=ft(t,n[6])},m(t,i){V(t,e,i)},p(t,i){i&64&&ut(e,t[6])},d(t){t&&z(e)}}}function Et(n){let e,t,i,l,c;const u=[bt,wt],s=[];function r(d,S){return d[0][1]?0:1}e=r(n),t=s[e]=u[e](n);let a=n[4]&&Be(n);return{c(){t.c(),i=dt(),a&&a.c(),l=T()},l(d){t.l(d),i=pt(d),a&&a.l(d),l=T()},m(d,S){s[e].m(d,S),V(d,i,S),a&&a.m(d,S),V(d,l,S),c=!0},p(d,[S]){let E=e;e=r(d),e===E?s[e].p(d,S):(Y(),j(s[E],1,1,()=>{s[E]=null}),G(),t=s[e],t?t.p(d,S):(t=s[e]=u[e](d),t.c()),I(t,1),t.m(i.parentNode,i)),d[4]?a?a.p(d,S):(a=Be(d),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i(d){c||(I(t),c=!0)},o(d){j(t),c=!1},d(d){s[e].d(d),d&&z(i),a&&a.d(d),d&&z(l)}}}function Rt(n,e,t){let{stores:i}=e,{page:l}=e,{components:c}=e,{props_0:u=null}=e,{props_1:s=null}=e,{props_2:r=null}=e;ht("__svelte__",i),_t(i.page.notify);let a=!1,d=!1,S=null;return Re(()=>{const E=i.page.subscribe(()=>{a&&(t(5,d=!0),t(6,S=document.title||"untitled page"))});return t(4,a=!0),E}),n.$$set=E=>{"stores"in E&&t(7,i=E.stores),"page"in E&&t(8,l=E.page),"components"in E&&t(0,c=E.components),"props_0"in E&&t(1,u=E.props_0),"props_1"in E&&t(2,s=E.props_1),"props_2"in E&&t(3,r=E.props_2)},n.$$.update=()=>{n.$$.dirty&384&&i.page.set(l)},[c,u,s,r,a,d,S,i,l]}class Lt extends rt{constructor(e){super(),it(this,e,Rt,Et,Qe,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const St={},pe=[()=>$e(()=>import("./pages/__layout.svelte-687870fa.js"),["pages/__layout.svelte-687870fa.js","assets/pages/__layout.svelte-7926a3a8.css","chunks/index-7118b6c4.js"]),()=>$e(()=>import("./error.svelte-2aae800a.js"),["error.svelte-2aae800a.js","chunks/index-7118b6c4.js"]),()=>$e(()=>import("./pages/index.svelte-cba9b380.js"),["pages/index.svelte-cba9b380.js","assets/pages/index.svelte-b52b250e.css","chunks/index-7118b6c4.js","chunks/preload-helper-fca94356.js"])],Ut={"":[[0,2],[1]]};function At(n){n.client}function We(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Ye(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 i=typeof n.error=="string"?new Error(n.error):n.error;return i 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:i}):{status:t,error:i}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof i}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)throw new Error('"redirect" property returned from load() must be accompanied by a 3xx status code');if(typeof n.redirect!="string")throw 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")))throw 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 Nt(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Ge(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function Le(){return{x:pageXOffset,y:pageYOffset}}function Fe(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Xe(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function He(n){const e=de(n);let t=!0;function i(){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:i,set:l,subscribe:c}}function xt(){const{set:n,subscribe:e}=de(!1),t="1656003529048";let i;async function l(){clearTimeout(i);const u=await fetch(`${gt}/_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(i)),r}else throw new Error(`Version check failed: ${u.status}`)}return{subscribe:e,check:l}}function Ot(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)}const Se=window.fetch;function Pt(n,e){let i=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(i+=`[sveltekit\\:data-body="${Ot(e.body)}"]`);const l=document.querySelector(i);if(l&&l.textContent){const c=JSON.parse(l.textContent),{body:u}=c,s=Je(c,["body"]);return Promise.resolve(new Response(u,s))}return Se(n,e)}const Tt=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function jt(n){const e=[],t=[];let i=!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 a=u===s.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,S)=>{if(S%2){const[,E,Z,F]=Tt.exec(d);return e.push(Z),t.push(F),E?"(.*?)":"([^/]+?)"}return a&&d.includes(".")&&(i=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${i?"/?":""}$`),names:e,types:t}}function It(n,e,t,i){const l={};for(let c=0;c<e.length;c+=1){const u=e[c],s=t[c],r=n[c+1]||"";if(s){const a=i[s];if(!a)throw new Error(`Missing "${s}" param matcher`);if(!a(r))return}l[u]=r}return l}function Ct(n,e,t){return Object.entries(e).map(([l,[c,u,s]])=>{const{pattern:r,names:a,types:d}=jt(l);return{id:l,exec:S=>{const E=r.exec(S);if(E)return It(E,a,d,t)},a:c.map(S=>n[S]),b:u.map(S=>n[S]),has_shadow:!!s}})}const et="sveltekit:scroll",M="sveltekit:index",ke=Ct(pe,Ut,St),Dt=pe[0](),zt=pe[1](),Ze={};let re={};try{re=JSON.parse(sessionStorage[et])}catch{}function Ee(n){re[n]=Le()}function Vt({target:n,session:e,base:t,trailing_slash:i}){var Ce;const l=new Map,c=[],u={url:He({}),page:He({}),navigating:de(null),session:de(e),updated:xt()},s={id:null,promise:null},r={before_navigate:[],after_navigate:[]};let a={branch:[],error:null,session_id:0,stuff:Ze,url:null},d=!1,S=!0,E=!1,Z=1,F=null,Ue,Ae,Ne=!1;u.session.subscribe(async o=>{Ae=o,Ne&&(Z+=1,ge(new URL(location.href),[],!0))}),Ne=!0;let X=!0,C=(Ce=history.state)==null?void 0:Ce[M];C||(C=Date.now(),history.replaceState(se(P({},history.state),{[M]:C}),"",location.href));const he=re[C];he&&(history.scrollRestoration="manual",scrollTo(he.x,he.y));let _e=!1,me,xe;async function Oe(o,{noscroll:p=!1,replaceState:g=!1,keepfocus:f=!1,state:h={}},w){const $=new URL(o,Ge(document));if(X)return be({url:$,scroll:p?Le():null,keepfocus:f,redirect_chain:w,details:{state:h,replaceState:g},accepted:()=>{},blocked:()=>{}});await te($)}async function Pe(o){const p=Ie(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return s.promise=je(p,!1),s.id=p.id,s.promise}async function ge(o,p,g,f,h){var R,U,A;const w=Ie(o),$=xe={};let _=w&&await je(w,g);if(!_&&o.origin===location.origin&&o.pathname===location.pathname&&(_=await ee({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!_)return await te(o),!1;if(xe!==$)return!1;if(c.length=0,_.redirect)if(p.length>10||p.includes(o.pathname))_=await ee({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return X?Oe(new URL(_.redirect,o).href,{},[...p,o.pathname]):await te(new URL(_.redirect,location.href)),!1;else((U=(R=_.props)==null?void 0:R.page)==null?void 0:U.status)>=400&&await u.updated.check()&&await te(o);if(E=!0,f&&f.details){const{details:y}=f,v=y.replaceState?0:1;y.state[M]=C+=v,history[y.replaceState?"replaceState":"pushState"](y.state,"",o)}if(d?(a=_.state,_.props.page&&(_.props.page.url=o),Ue.$set(_.props)):Te(_),f){const{scroll:y,keepfocus:v}=f;if(!v){const b=document.body,k=b.getAttribute("tabindex");(A=getSelection())==null||A.removeAllRanges(),b.tabIndex=-1,b.focus({preventScroll:!0}),k!==null?b.setAttribute("tabindex",k):b.removeAttribute("tabindex")}if(await Ke(),S){const b=o.hash&&document.getElementById(o.hash.slice(1));y?scrollTo(y.x,y.y):b?b.scrollIntoView():scrollTo(0,0)}}else await Ke();s.promise=null,s.id=null,S=!0,_.props.page&&(me=_.props.page);const m=_.state.branch[_.state.branch.length-1];X=(m==null?void 0:m.module.router)!==!1,h&&h(),E=!1}function Te(o){a=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),me=o.props.page,Ue=new Lt({target:n,props:se(P({},o.props),{stores:u}),hydrate:!0}),X){const g={from:null,to:new URL(location.href)};r.after_navigate.forEach(f=>f(g))}d=!0}async function we({url:o,params:p,stuff:g,branch:f,status:h,error:w,routeId:$}){var v,b;const _=f.filter(Boolean),m=_.find(k=>{var N;return(N=k.loaded)==null?void 0:N.redirect}),R={redirect:(v=m==null?void 0:m.loaded)==null?void 0:v.redirect,state:{url:o,params:p,branch:f,error:w,stuff:g,session_id:Z},props:{components:_.map(k=>k.module.default)}};for(let k=0;k<_.length;k+=1){const N=_[k].loaded;R.props[`props_${k}`]=N?await N.props:null}if(!a.url||o.href!==a.url.href||a.error!==w||a.stuff!==g){R.props.page={error:w,params:p,routeId:$,status:h,stuff:g,url:o};const k=(N,L)=>{Object.defineProperty(R.props.page,N,{get:()=>{throw new Error(`$page.${N} has been replaced by $page.url.${L}`)}})};k("origin","origin"),k("path","pathname"),k("query","searchParams")}const A=_[_.length-1],y=(b=A==null?void 0:A.loaded)==null?void 0:b.cache;if(y){const k=o.pathname+o.search;let N=!1;const L=()=>{l.get(k)===R&&l.delete(k),O(),clearTimeout(x)},x=setTimeout(L,y.maxage*1e3),O=u.session.subscribe(()=>{N&&L()});N=!0,l.set(k,R)}return R}async function Q({status:o,error:p,module:g,url:f,params:h,stuff:w,props:$,routeId:_}){const m={module:g,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:w};function R(y){const{href:v}=new URL(y,f);m.uses.dependencies.add(v)}$&&m.uses.dependencies.add(f.href);const U={};for(const y in h)Object.defineProperty(U,y,{get(){return m.uses.params.add(y),h[y]},enumerable:!0});const A=Ae;if(g.load){const y={routeId:_,params:U,props:$||{},get url(){return m.uses.url=!0,new Proxy(f,{get:(b,k)=>{if(k==="hash")throw new Error("url.hash is inaccessible from load. Consider accessing hash from the page store within the script tag of your component.");return Reflect.get(b,k,b)}})},get session(){return m.uses.session=!0,A},get stuff(){return m.uses.stuff=!0,P({},w)},async fetch(b,k){let N;typeof b=="string"?N=b:(N=b.url,k=P({body:b.method==="GET"||b.method==="HEAD"?void 0:await b.blob(),cache:b.cache,credentials:b.credentials,headers:b.headers,integrity:b.integrity,keepalive:b.keepalive,method:b.method,mode:b.mode,redirect:b.redirect,referrer:b.referrer,referrerPolicy:b.referrerPolicy,signal:b.signal},k));const L=new URL(N,f).href;return R(L),d?Se(L,k):Pt(N,k)},status:o!=null?o:null,error:p!=null?p:null};let v;if(v=await g.load.call(null,y),!v)throw new Error("load function must return a value");m.loaded=Ye(v),m.loaded.stuff&&(m.stuff=m.loaded.stuff),m.loaded.dependencies&&m.loaded.dependencies.forEach(R)}else $&&(m.loaded=Ye({props:$}));return m}async function je({id:o,url:p,params:g,route:f},h){var b,k,N;if(s.id===o&&s.promise)return s.promise;if(!h){const L=l.get(o);if(L)return L}const{a:w,b:$,has_shadow:_}=f,m=a.url&&{url:o!==a.url.pathname+a.url.search,params:Object.keys(g).filter(L=>a.params[L]!==g[L]),session:Z!==a.session_id};let R=[],U=Ze,A=!1,y=200,v=null;w.forEach(L=>L().catch(()=>{}));e:for(let L=0;L<w.length;L+=1){let x;try{if(!w[L])continue;const O=await w[L](),D=a.branch[L];if(!D||O!==D.module||m.url&&D.uses.url||m.params.some(W=>D.uses.params.has(W))||m.session&&D.uses.session||Array.from(D.uses.dependencies).some(W=>c.some(fe=>fe(W)))||A&&D.uses.stuff){let W={};const fe=_&&L===w.length-1;if(fe){const ne=await Se(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(ne.ok){const De=ne.headers.get("x-sveltekit-location");if(De)return{redirect:De,props:{},state:a};W=ne.status===204?{}:await ne.json()}else y=ne.status,v=new Error("Failed to load data")}if(v||(x=await Q({module:O,url:p,params:g,props:W,stuff:U,routeId:f.id})),x&&(fe&&(x.uses.url=!0),x.loaded)){if(x.loaded.error&&(y=x.loaded.status,v=x.loaded.error),x.loaded.redirect)return{redirect:x.loaded.redirect,props:{},state:a};x.loaded.stuff&&(A=!0)}}else x=D}catch(O){y=500,v=We(O)}if(v){for(;L--;)if($[L]){let O,D,le=L;for(;!(D=R[le]);)le-=1;try{if(O=await Q({status:y,error:v,module:await $[L](),url:p,params:g,stuff:D.stuff,routeId:f.id}),(b=O==null?void 0:O.loaded)!=null&&b.error)continue;(k=O==null?void 0:O.loaded)!=null&&k.stuff&&(U=P(P({},U),O.loaded.stuff)),R=R.slice(0,le+1).concat(O);break e}catch{continue}}return await ee({status:y,error:v,url:p,routeId:f.id})}else(N=x==null?void 0:x.loaded)!=null&&N.stuff&&(U=P(P({},U),x.loaded.stuff)),R.push(x)}return await we({url:p,params:g,stuff:U,branch:R,status:y,error:v,routeId:f.id})}async function ee({status:o,error:p,url:g,routeId:f}){var _,m;const h={},w=await Q({module:await Dt,url:g,params:h,stuff:{},routeId:f}),$=await Q({status:o,error:p,module:await zt,url:g,params:h,stuff:w&&w.loaded&&w.loaded.stuff||{},routeId:f});return await we({url:g,params:h,stuff:P(P({},(_=w==null?void 0:w.loaded)==null?void 0:_.stuff),(m=$==null?void 0:$.loaded)==null?void 0:m.stuff),branch:[w,$],status:o,error:p,routeId:f})}function Ie(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const g of ke){const f=g.exec(p);if(f)return{id:o.pathname+o.search,route:g,params:f,url:o}}}async function be({url:o,scroll:p,keepfocus:g,redirect_chain:f,details:h,accepted:w,blocked:$}){const _=a.url;let m=!1;const R={from:_,to:o,cancel:()=>m=!0};if(r.before_navigate.forEach(y=>y(R)),m){$();return}const U=Nt(o.pathname,i),A=new URL(o.origin+U+o.search+o.hash);Ee(C),w(),d&&u.navigating.set({from:a.url,to:A}),await ge(A,f,!1,{scroll:p,keepfocus:g,details:h},()=>{const y={from:_,to:A};r.after_navigate.forEach(v=>v(y)),u.navigating.set(null)})}function te(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{Re(()=>(r.after_navigate.push(o),()=>{const p=r.after_navigate.indexOf(o);r.after_navigate.splice(p,1)}))},before_navigate:o=>{Re(()=>(r.before_navigate.push(o),()=>{const p=r.before_navigate.indexOf(o);r.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(E||!d)&&(S=!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(g=>g===p)}return F||(F=Promise.resolve().then(async()=>{await ge(new URL(location.href),[],!0),F=null})),F},prefetch:async o=>{const p=new URL(o,Ge(document));await Pe(p)},prefetch_routes:async o=>{const g=(o?ke.filter(f=>o.some(h=>f.exec(h))):ke).map(f=>Promise.all(f.a.map(h=>h())));await Promise.all(g)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",f=>{let h=!1;const w={from:a.url,to:null,cancel:()=>h=!0};r.before_navigate.forEach($=>$(w)),h?(f.preventDefault(),f.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Ee(C);try{sessionStorage[et]=JSON.stringify(re)}catch{}}});const o=f=>{const h=Fe(f);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Pe(Xe(h))};let p;const g=f=>{clearTimeout(p),p=setTimeout(()=>{var h;(h=f.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",g),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",f=>{if(!X||f.button||f.which!==1||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||f.defaultPrevented)return;const h=Fe(f);if(!h||!h.href)return;const w=h instanceof SVGAElement,$=Xe(h);if(!w&&$.origin==="null")return;const _=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||_.includes("external")||h.hasAttribute("sveltekit:reload")||(w?h.target.baseVal:h.target))return;const[m,R]=$.href.split("#");if(R!==void 0&&m===location.href.split("#")[0]){_e=!0,Ee(C),u.page.set(se(P({},me),{url:$})),u.page.notify();return}be({url:$,scroll:h.hasAttribute("sveltekit:noscroll")?Le():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:$.href===location.href},accepted:()=>f.preventDefault(),blocked:()=>f.preventDefault()})}),addEventListener("popstate",f=>{if(f.state&&X){if(f.state[M]===C)return;be({url:new URL(location.href),scroll:re[f.state[M]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{C=f.state[M]},blocked:()=>{const h=C-f.state[M];history.go(h)}})}}),addEventListener("hashchange",()=>{_e&&(_e=!1,history.replaceState(se(P({},history.state),{[M]:++C}),"",location.href))})},_hydrate:async({status:o,error:p,nodes:g,params:f,routeId:h})=>{const w=new URL(location.href),$=[];let _={},m,R;try{for(let U=0;U<g.length;U+=1){const A=U===g.length-1;let y;if(A){const b=document.querySelector('script[sveltekit\\:data-type="props"]');b&&(y=JSON.parse(b.textContent))}const v=await Q({module:await pe[g[U]](),url:w,params:f,stuff:_,status:A?o:void 0,error:A?p:void 0,props:y,routeId:h});if(y&&(v.uses.dependencies.add(w.href),v.uses.url=!0),$.push(v),v&&v.loaded)if(v.loaded.error){if(p)throw v.loaded.error;R={status:v.loaded.status,error:v.loaded.error,url:w,routeId:h}}else v.loaded.stuff&&(_=P(P({},_),v.loaded.stuff))}m=R?await ee(R):await we({url:w,params:f,stuff:_,branch:$,status:o,error:p,routeId:h})}catch(U){if(p)throw U;m=await ee({status:500,error:We(U),url:w,routeId:h})}m.redirect&&await te(new URL(m.redirect,location.href)),Te(m)}}}async function Bt({paths:n,target:e,session:t,route:i,spa:l,trailing_slash:c,hydrate:u}){const s=Vt({target:e,session:t,base:n.base,trailing_slash:c});At({client:s}),mt(n),u&&await s._hydrate(u),i&&(l&&s.goto(location.href,{replaceState:!0}),s._start_router()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{Bt as start};
 
1
+ var tt=Object.defineProperty,nt=Object.defineProperties;var st=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var Ve=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var ze=(n,e,t)=>e in n?tt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,P=(n,e)=>{for(var t in e||(e={}))Ve.call(e,t)&&ze(n,t,e[t]);if(ue)for(var t of ue(e))qe.call(e,t)&&ze(n,t,e[t]);return n},se=(n,e)=>nt(n,st(e));var Je=(n,e)=>{var t={};for(var i in n)Ve.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&ue)for(var i of ue(n))e.indexOf(i)<0&&qe.call(n,i)&&(t[i]=n[i]);return t};import{s as Qe,n as ye,S as rt,i as it,e as at,c as ot,a as ct,d as z,b as ve,f as B,g as V,t as lt,h as ft,j as ut,k as dt,l as T,m as pt,o as Y,p as j,q as G,r as I,u as ht,v as _t,w as Re,x as q,y as ie,z as J,A as ae,B as oe,C as K,D as ce,E as Ke}from"./chunks/index-7118b6c4.js";import{_ as $e,s as mt,a as gt}from"./chunks/preload-helper-fca94356.js";const H=[];function de(n,e=ye){let t;const i=new Set;function l(s){if(Qe(n,s)&&(n=s,t)){const r=!H.length;for(const a of i)a[1](),H.push(a,n);if(r){for(let a=0;a<H.length;a+=2)H[a][0](H[a+1]);H.length=0}}}function c(s){l(s(n))}function u(s,r=ye){const a=[s,r];return i.add(a),i.size===1&&(t=e(l)||ye),s(n),()=>{i.delete(a),i.size===0&&(t(),t=null)}}return{set:l,update:c,subscribe:u}}function wt(n){let e,t,i;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&2?ae(l,[oe(s[1]||{})]):{};if(c!==(c=s[0][0])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function bt(n){let e,t,i;const l=[n[1]||{}];var c=n[0][0];function u(s){let r={$$slots:{default:[kt]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u(n))),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&2?ae(l,[oe(s[1]||{})]):{};if(r&525&&(a.$$scope={dirty:r,ctx:s}),c!==(c=s[0][0])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u(s)),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function yt(n){let e,t,i;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&4?ae(l,[oe(s[2]||{})]):{};if(c!==(c=s[0][1])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function vt(n){let e,t,i;const l=[n[2]||{}];var c=n[0][1];function u(s){let r={$$slots:{default:[$t]},$$scope:{ctx:s}};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u(n))),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&4?ae(l,[oe(s[2]||{})]):{};if(r&521&&(a.$$scope={dirty:r,ctx:s}),c!==(c=s[0][1])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u(s)),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function $t(n){let e,t,i;const l=[n[3]||{}];var c=n[0][2];function u(s){let r={};for(let a=0;a<l.length;a+=1)r=ce(r,l[a]);return{props:r}}return c&&(e=new c(u())),{c(){e&&q(e.$$.fragment),t=T()},l(s){e&&ie(e.$$.fragment,s),t=T()},m(s,r){e&&J(e,s,r),V(s,t,r),i=!0},p(s,r){const a=r&8?ae(l,[oe(s[3]||{})]):{};if(c!==(c=s[0][2])){if(e){Y();const d=e;j(d.$$.fragment,1,0,()=>{K(d,1)}),G()}c?(e=new c(u()),q(e.$$.fragment),I(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(a)},i(s){i||(e&&I(e.$$.fragment,s),i=!0)},o(s){e&&j(e.$$.fragment,s),i=!1},d(s){s&&z(t),e&&K(e,s)}}}function kt(n){let e,t,i,l;const c=[vt,yt],u=[];function s(r,a){return r[0][2]?0:1}return e=s(n),t=u[e]=c[e](n),{c(){t.c(),i=T()},l(r){t.l(r),i=T()},m(r,a){u[e].m(r,a),V(r,i,a),l=!0},p(r,a){let d=e;e=s(r),e===d?u[e].p(r,a):(Y(),j(u[d],1,1,()=>{u[d]=null}),G(),t=u[e],t?t.p(r,a):(t=u[e]=c[e](r),t.c()),I(t,1),t.m(i.parentNode,i))},i(r){l||(I(t),l=!0)},o(r){j(t),l=!1},d(r){u[e].d(r),r&&z(i)}}}function Be(n){let e,t=n[5]&&Me(n);return{c(){e=at("div"),t&&t.c(),this.h()},l(i){e=ot(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=ct(e);t&&t.l(l),l.forEach(z),this.h()},h(){ve(e,"id","svelte-announcer"),ve(e,"aria-live","assertive"),ve(e,"aria-atomic","true"),B(e,"position","absolute"),B(e,"left","0"),B(e,"top","0"),B(e,"clip","rect(0 0 0 0)"),B(e,"clip-path","inset(50%)"),B(e,"overflow","hidden"),B(e,"white-space","nowrap"),B(e,"width","1px"),B(e,"height","1px")},m(i,l){V(i,e,l),t&&t.m(e,null)},p(i,l){i[5]?t?t.p(i,l):(t=Me(i),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(i){i&&z(e),t&&t.d()}}}function Me(n){let e;return{c(){e=lt(n[6])},l(t){e=ft(t,n[6])},m(t,i){V(t,e,i)},p(t,i){i&64&&ut(e,t[6])},d(t){t&&z(e)}}}function Et(n){let e,t,i,l,c;const u=[bt,wt],s=[];function r(d,S){return d[0][1]?0:1}e=r(n),t=s[e]=u[e](n);let a=n[4]&&Be(n);return{c(){t.c(),i=dt(),a&&a.c(),l=T()},l(d){t.l(d),i=pt(d),a&&a.l(d),l=T()},m(d,S){s[e].m(d,S),V(d,i,S),a&&a.m(d,S),V(d,l,S),c=!0},p(d,[S]){let E=e;e=r(d),e===E?s[e].p(d,S):(Y(),j(s[E],1,1,()=>{s[E]=null}),G(),t=s[e],t?t.p(d,S):(t=s[e]=u[e](d),t.c()),I(t,1),t.m(i.parentNode,i)),d[4]?a?a.p(d,S):(a=Be(d),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},i(d){c||(I(t),c=!0)},o(d){j(t),c=!1},d(d){s[e].d(d),d&&z(i),a&&a.d(d),d&&z(l)}}}function Rt(n,e,t){let{stores:i}=e,{page:l}=e,{components:c}=e,{props_0:u=null}=e,{props_1:s=null}=e,{props_2:r=null}=e;ht("__svelte__",i),_t(i.page.notify);let a=!1,d=!1,S=null;return Re(()=>{const E=i.page.subscribe(()=>{a&&(t(5,d=!0),t(6,S=document.title||"untitled page"))});return t(4,a=!0),E}),n.$$set=E=>{"stores"in E&&t(7,i=E.stores),"page"in E&&t(8,l=E.page),"components"in E&&t(0,c=E.components),"props_0"in E&&t(1,u=E.props_0),"props_1"in E&&t(2,s=E.props_1),"props_2"in E&&t(3,r=E.props_2)},n.$$.update=()=>{n.$$.dirty&384&&i.page.set(l)},[c,u,s,r,a,d,S,i,l]}class Lt extends rt{constructor(e){super(),it(this,e,Rt,Et,Qe,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const St={},pe=[()=>$e(()=>import("./pages/__layout.svelte-687870fa.js"),["pages/__layout.svelte-687870fa.js","assets/pages/__layout.svelte-7926a3a8.css","chunks/index-7118b6c4.js"]),()=>$e(()=>import("./error.svelte-2aae800a.js"),["error.svelte-2aae800a.js","chunks/index-7118b6c4.js"]),()=>$e(()=>import("./pages/index.svelte-70b7aa98.js"),["pages/index.svelte-70b7aa98.js","assets/pages/index.svelte-b52b250e.css","chunks/index-7118b6c4.js","chunks/preload-helper-fca94356.js"])],Ut={"":[[0,2],[1]]};function At(n){n.client}function We(n){return n instanceof Error||n&&n.name&&n.message?n:new Error(JSON.stringify(n))}function Ye(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 i=typeof n.error=="string"?new Error(n.error):n.error;return i 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:i}):{status:t,error:i}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof i}"`)}}if(n.redirect){if(!n.status||Math.floor(n.status/100)!==3)throw new Error('"redirect" property returned from load() must be accompanied by a 3xx status code');if(typeof n.redirect!="string")throw 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")))throw 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 Nt(n,e){return n==="/"||e==="ignore"?n:e==="never"?n.endsWith("/")?n.slice(0,-1):n:e==="always"&&!n.endsWith("/")?n+"/":n}function Ge(n){let e=n.baseURI;if(!e){const t=n.getElementsByTagName("base");e=t.length?t[0].href:n.URL}return e}function Le(){return{x:pageXOffset,y:pageYOffset}}function Fe(n){return n.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Xe(n){return n instanceof SVGAElement?new URL(n.href.baseVal,document.baseURI):new URL(n.href)}function He(n){const e=de(n);let t=!0;function i(){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:i,set:l,subscribe:c}}function xt(){const{set:n,subscribe:e}=de(!1),t="1656003869087";let i;async function l(){clearTimeout(i);const u=await fetch(`${gt}/_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(i)),r}else throw new Error(`Version check failed: ${u.status}`)}return{subscribe:e,check:l}}function Ot(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)}const Se=window.fetch;function Pt(n,e){let i=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof n=="string"?n:n.url)}]`;e&&typeof e.body=="string"&&(i+=`[sveltekit\\:data-body="${Ot(e.body)}"]`);const l=document.querySelector(i);if(l&&l.textContent){const c=JSON.parse(l.textContent),{body:u}=c,s=Je(c,["body"]);return Promise.resolve(new Response(u,s))}return Se(n,e)}const Tt=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function jt(n){const e=[],t=[];let i=!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 a=u===s.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,S)=>{if(S%2){const[,E,Z,F]=Tt.exec(d);return e.push(Z),t.push(F),E?"(.*?)":"([^/]+?)"}return a&&d.includes(".")&&(i=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${i?"/?":""}$`),names:e,types:t}}function It(n,e,t,i){const l={};for(let c=0;c<e.length;c+=1){const u=e[c],s=t[c],r=n[c+1]||"";if(s){const a=i[s];if(!a)throw new Error(`Missing "${s}" param matcher`);if(!a(r))return}l[u]=r}return l}function Ct(n,e,t){return Object.entries(e).map(([l,[c,u,s]])=>{const{pattern:r,names:a,types:d}=jt(l);return{id:l,exec:S=>{const E=r.exec(S);if(E)return It(E,a,d,t)},a:c.map(S=>n[S]),b:u.map(S=>n[S]),has_shadow:!!s}})}const et="sveltekit:scroll",M="sveltekit:index",ke=Ct(pe,Ut,St),Dt=pe[0](),zt=pe[1](),Ze={};let re={};try{re=JSON.parse(sessionStorage[et])}catch{}function Ee(n){re[n]=Le()}function Vt({target:n,session:e,base:t,trailing_slash:i}){var Ce;const l=new Map,c=[],u={url:He({}),page:He({}),navigating:de(null),session:de(e),updated:xt()},s={id:null,promise:null},r={before_navigate:[],after_navigate:[]};let a={branch:[],error:null,session_id:0,stuff:Ze,url:null},d=!1,S=!0,E=!1,Z=1,F=null,Ue,Ae,Ne=!1;u.session.subscribe(async o=>{Ae=o,Ne&&(Z+=1,ge(new URL(location.href),[],!0))}),Ne=!0;let X=!0,C=(Ce=history.state)==null?void 0:Ce[M];C||(C=Date.now(),history.replaceState(se(P({},history.state),{[M]:C}),"",location.href));const he=re[C];he&&(history.scrollRestoration="manual",scrollTo(he.x,he.y));let _e=!1,me,xe;async function Oe(o,{noscroll:p=!1,replaceState:g=!1,keepfocus:f=!1,state:h={}},w){const $=new URL(o,Ge(document));if(X)return be({url:$,scroll:p?Le():null,keepfocus:f,redirect_chain:w,details:{state:h,replaceState:g},accepted:()=>{},blocked:()=>{}});await te($)}async function Pe(o){const p=Ie(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return s.promise=je(p,!1),s.id=p.id,s.promise}async function ge(o,p,g,f,h){var R,U,A;const w=Ie(o),$=xe={};let _=w&&await je(w,g);if(!_&&o.origin===location.origin&&o.pathname===location.pathname&&(_=await ee({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!_)return await te(o),!1;if(xe!==$)return!1;if(c.length=0,_.redirect)if(p.length>10||p.includes(o.pathname))_=await ee({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return X?Oe(new URL(_.redirect,o).href,{},[...p,o.pathname]):await te(new URL(_.redirect,location.href)),!1;else((U=(R=_.props)==null?void 0:R.page)==null?void 0:U.status)>=400&&await u.updated.check()&&await te(o);if(E=!0,f&&f.details){const{details:y}=f,v=y.replaceState?0:1;y.state[M]=C+=v,history[y.replaceState?"replaceState":"pushState"](y.state,"",o)}if(d?(a=_.state,_.props.page&&(_.props.page.url=o),Ue.$set(_.props)):Te(_),f){const{scroll:y,keepfocus:v}=f;if(!v){const b=document.body,k=b.getAttribute("tabindex");(A=getSelection())==null||A.removeAllRanges(),b.tabIndex=-1,b.focus({preventScroll:!0}),k!==null?b.setAttribute("tabindex",k):b.removeAttribute("tabindex")}if(await Ke(),S){const b=o.hash&&document.getElementById(o.hash.slice(1));y?scrollTo(y.x,y.y):b?b.scrollIntoView():scrollTo(0,0)}}else await Ke();s.promise=null,s.id=null,S=!0,_.props.page&&(me=_.props.page);const m=_.state.branch[_.state.branch.length-1];X=(m==null?void 0:m.module.router)!==!1,h&&h(),E=!1}function Te(o){a=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),me=o.props.page,Ue=new Lt({target:n,props:se(P({},o.props),{stores:u}),hydrate:!0}),X){const g={from:null,to:new URL(location.href)};r.after_navigate.forEach(f=>f(g))}d=!0}async function we({url:o,params:p,stuff:g,branch:f,status:h,error:w,routeId:$}){var v,b;const _=f.filter(Boolean),m=_.find(k=>{var N;return(N=k.loaded)==null?void 0:N.redirect}),R={redirect:(v=m==null?void 0:m.loaded)==null?void 0:v.redirect,state:{url:o,params:p,branch:f,error:w,stuff:g,session_id:Z},props:{components:_.map(k=>k.module.default)}};for(let k=0;k<_.length;k+=1){const N=_[k].loaded;R.props[`props_${k}`]=N?await N.props:null}if(!a.url||o.href!==a.url.href||a.error!==w||a.stuff!==g){R.props.page={error:w,params:p,routeId:$,status:h,stuff:g,url:o};const k=(N,L)=>{Object.defineProperty(R.props.page,N,{get:()=>{throw new Error(`$page.${N} has been replaced by $page.url.${L}`)}})};k("origin","origin"),k("path","pathname"),k("query","searchParams")}const A=_[_.length-1],y=(b=A==null?void 0:A.loaded)==null?void 0:b.cache;if(y){const k=o.pathname+o.search;let N=!1;const L=()=>{l.get(k)===R&&l.delete(k),O(),clearTimeout(x)},x=setTimeout(L,y.maxage*1e3),O=u.session.subscribe(()=>{N&&L()});N=!0,l.set(k,R)}return R}async function Q({status:o,error:p,module:g,url:f,params:h,stuff:w,props:$,routeId:_}){const m={module:g,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:w};function R(y){const{href:v}=new URL(y,f);m.uses.dependencies.add(v)}$&&m.uses.dependencies.add(f.href);const U={};for(const y in h)Object.defineProperty(U,y,{get(){return m.uses.params.add(y),h[y]},enumerable:!0});const A=Ae;if(g.load){const y={routeId:_,params:U,props:$||{},get url(){return m.uses.url=!0,new Proxy(f,{get:(b,k)=>{if(k==="hash")throw new Error("url.hash is inaccessible from load. Consider accessing hash from the page store within the script tag of your component.");return Reflect.get(b,k,b)}})},get session(){return m.uses.session=!0,A},get stuff(){return m.uses.stuff=!0,P({},w)},async fetch(b,k){let N;typeof b=="string"?N=b:(N=b.url,k=P({body:b.method==="GET"||b.method==="HEAD"?void 0:await b.blob(),cache:b.cache,credentials:b.credentials,headers:b.headers,integrity:b.integrity,keepalive:b.keepalive,method:b.method,mode:b.mode,redirect:b.redirect,referrer:b.referrer,referrerPolicy:b.referrerPolicy,signal:b.signal},k));const L=new URL(N,f).href;return R(L),d?Se(L,k):Pt(N,k)},status:o!=null?o:null,error:p!=null?p:null};let v;if(v=await g.load.call(null,y),!v)throw new Error("load function must return a value");m.loaded=Ye(v),m.loaded.stuff&&(m.stuff=m.loaded.stuff),m.loaded.dependencies&&m.loaded.dependencies.forEach(R)}else $&&(m.loaded=Ye({props:$}));return m}async function je({id:o,url:p,params:g,route:f},h){var b,k,N;if(s.id===o&&s.promise)return s.promise;if(!h){const L=l.get(o);if(L)return L}const{a:w,b:$,has_shadow:_}=f,m=a.url&&{url:o!==a.url.pathname+a.url.search,params:Object.keys(g).filter(L=>a.params[L]!==g[L]),session:Z!==a.session_id};let R=[],U=Ze,A=!1,y=200,v=null;w.forEach(L=>L().catch(()=>{}));e:for(let L=0;L<w.length;L+=1){let x;try{if(!w[L])continue;const O=await w[L](),D=a.branch[L];if(!D||O!==D.module||m.url&&D.uses.url||m.params.some(W=>D.uses.params.has(W))||m.session&&D.uses.session||Array.from(D.uses.dependencies).some(W=>c.some(fe=>fe(W)))||A&&D.uses.stuff){let W={};const fe=_&&L===w.length-1;if(fe){const ne=await Se(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(ne.ok){const De=ne.headers.get("x-sveltekit-location");if(De)return{redirect:De,props:{},state:a};W=ne.status===204?{}:await ne.json()}else y=ne.status,v=new Error("Failed to load data")}if(v||(x=await Q({module:O,url:p,params:g,props:W,stuff:U,routeId:f.id})),x&&(fe&&(x.uses.url=!0),x.loaded)){if(x.loaded.error&&(y=x.loaded.status,v=x.loaded.error),x.loaded.redirect)return{redirect:x.loaded.redirect,props:{},state:a};x.loaded.stuff&&(A=!0)}}else x=D}catch(O){y=500,v=We(O)}if(v){for(;L--;)if($[L]){let O,D,le=L;for(;!(D=R[le]);)le-=1;try{if(O=await Q({status:y,error:v,module:await $[L](),url:p,params:g,stuff:D.stuff,routeId:f.id}),(b=O==null?void 0:O.loaded)!=null&&b.error)continue;(k=O==null?void 0:O.loaded)!=null&&k.stuff&&(U=P(P({},U),O.loaded.stuff)),R=R.slice(0,le+1).concat(O);break e}catch{continue}}return await ee({status:y,error:v,url:p,routeId:f.id})}else(N=x==null?void 0:x.loaded)!=null&&N.stuff&&(U=P(P({},U),x.loaded.stuff)),R.push(x)}return await we({url:p,params:g,stuff:U,branch:R,status:y,error:v,routeId:f.id})}async function ee({status:o,error:p,url:g,routeId:f}){var _,m;const h={},w=await Q({module:await Dt,url:g,params:h,stuff:{},routeId:f}),$=await Q({status:o,error:p,module:await zt,url:g,params:h,stuff:w&&w.loaded&&w.loaded.stuff||{},routeId:f});return await we({url:g,params:h,stuff:P(P({},(_=w==null?void 0:w.loaded)==null?void 0:_.stuff),(m=$==null?void 0:$.loaded)==null?void 0:m.stuff),branch:[w,$],status:o,error:p,routeId:f})}function Ie(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const g of ke){const f=g.exec(p);if(f)return{id:o.pathname+o.search,route:g,params:f,url:o}}}async function be({url:o,scroll:p,keepfocus:g,redirect_chain:f,details:h,accepted:w,blocked:$}){const _=a.url;let m=!1;const R={from:_,to:o,cancel:()=>m=!0};if(r.before_navigate.forEach(y=>y(R)),m){$();return}const U=Nt(o.pathname,i),A=new URL(o.origin+U+o.search+o.hash);Ee(C),w(),d&&u.navigating.set({from:a.url,to:A}),await ge(A,f,!1,{scroll:p,keepfocus:g,details:h},()=>{const y={from:_,to:A};r.after_navigate.forEach(v=>v(y)),u.navigating.set(null)})}function te(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{Re(()=>(r.after_navigate.push(o),()=>{const p=r.after_navigate.indexOf(o);r.after_navigate.splice(p,1)}))},before_navigate:o=>{Re(()=>(r.before_navigate.push(o),()=>{const p=r.before_navigate.indexOf(o);r.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(E||!d)&&(S=!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(g=>g===p)}return F||(F=Promise.resolve().then(async()=>{await ge(new URL(location.href),[],!0),F=null})),F},prefetch:async o=>{const p=new URL(o,Ge(document));await Pe(p)},prefetch_routes:async o=>{const g=(o?ke.filter(f=>o.some(h=>f.exec(h))):ke).map(f=>Promise.all(f.a.map(h=>h())));await Promise.all(g)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",f=>{let h=!1;const w={from:a.url,to:null,cancel:()=>h=!0};r.before_navigate.forEach($=>$(w)),h?(f.preventDefault(),f.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Ee(C);try{sessionStorage[et]=JSON.stringify(re)}catch{}}});const o=f=>{const h=Fe(f);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Pe(Xe(h))};let p;const g=f=>{clearTimeout(p),p=setTimeout(()=>{var h;(h=f.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",g),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",f=>{if(!X||f.button||f.which!==1||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||f.defaultPrevented)return;const h=Fe(f);if(!h||!h.href)return;const w=h instanceof SVGAElement,$=Xe(h);if(!w&&$.origin==="null")return;const _=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||_.includes("external")||h.hasAttribute("sveltekit:reload")||(w?h.target.baseVal:h.target))return;const[m,R]=$.href.split("#");if(R!==void 0&&m===location.href.split("#")[0]){_e=!0,Ee(C),u.page.set(se(P({},me),{url:$})),u.page.notify();return}be({url:$,scroll:h.hasAttribute("sveltekit:noscroll")?Le():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:$.href===location.href},accepted:()=>f.preventDefault(),blocked:()=>f.preventDefault()})}),addEventListener("popstate",f=>{if(f.state&&X){if(f.state[M]===C)return;be({url:new URL(location.href),scroll:re[f.state[M]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{C=f.state[M]},blocked:()=>{const h=C-f.state[M];history.go(h)}})}}),addEventListener("hashchange",()=>{_e&&(_e=!1,history.replaceState(se(P({},history.state),{[M]:++C}),"",location.href))})},_hydrate:async({status:o,error:p,nodes:g,params:f,routeId:h})=>{const w=new URL(location.href),$=[];let _={},m,R;try{for(let U=0;U<g.length;U+=1){const A=U===g.length-1;let y;if(A){const b=document.querySelector('script[sveltekit\\:data-type="props"]');b&&(y=JSON.parse(b.textContent))}const v=await Q({module:await pe[g[U]](),url:w,params:f,stuff:_,status:A?o:void 0,error:A?p:void 0,props:y,routeId:h});if(y&&(v.uses.dependencies.add(w.href),v.uses.url=!0),$.push(v),v&&v.loaded)if(v.loaded.error){if(p)throw v.loaded.error;R={status:v.loaded.status,error:v.loaded.error,url:w,routeId:h}}else v.loaded.stuff&&(_=P(P({},_),v.loaded.stuff))}m=R?await ee(R):await we({url:w,params:f,stuff:_,branch:$,status:o,error:p,routeId:h})}catch(U){if(p)throw U;m=await ee({status:500,error:We(U),url:w,routeId:h})}m.redirect&&await te(new URL(m.redirect,location.href)),Te(m)}}}async function Bt({paths:n,target:e,session:t,route:i,spa:l,trailing_slash:c,hydrate:u}){const s=Vt({target:e,session:t,base:n.base,trailing_slash:c});At({client:s}),mt(n),u&&await s._hydrate(u),i&&(l&&s.goto(location.href,{replaceState:!0}),s._start_router()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{Bt as start};
static/_app/version.json CHANGED
@@ -1 +1 @@
1
- {"version":"1656003529048"}
 
1
+ {"version":"1656003869087"}
static/index.html CHANGED
@@ -8,11 +8,11 @@
8
  <meta http-equiv="content-security-policy" content="">
9
  <link rel="stylesheet" href="/embed/huggingface-projects/wordalle/static/_app/immutable/assets/pages/__layout.svelte-7926a3a8.css">
10
  <link rel="stylesheet" href="/embed/huggingface-projects/wordalle/static/_app/immutable/assets/pages/index.svelte-b52b250e.css">
11
- <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/start-15953b66.js">
12
  <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/chunks/index-7118b6c4.js">
13
  <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/chunks/preload-helper-fca94356.js">
14
  <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/pages/__layout.svelte-687870fa.js">
15
- <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/pages/index.svelte-cba9b380.js">
16
  </head>
17
  <body class="dark:bg-[rgb(11,15,25)] bg-white dark:text-white text-black">
18
  <div>
@@ -22,7 +22,7 @@
22
 
23
 
24
  <script type="module" data-sveltekit-hydrate="2eq20f">
25
- import { start } from "/embed/huggingface-projects/wordalle/static/_app/immutable/start-15953b66.js";
26
  start({
27
  target: document.querySelector('[data-sveltekit-hydrate="2eq20f"]').parentNode,
28
  paths: {"base":"/embed/huggingface-projects/wordalle/static","assets":"/embed/huggingface-projects/wordalle/static"},
 
8
  <meta http-equiv="content-security-policy" content="">
9
  <link rel="stylesheet" href="/embed/huggingface-projects/wordalle/static/_app/immutable/assets/pages/__layout.svelte-7926a3a8.css">
10
  <link rel="stylesheet" href="/embed/huggingface-projects/wordalle/static/_app/immutable/assets/pages/index.svelte-b52b250e.css">
11
+ <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/start-e112b0e1.js">
12
  <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/chunks/index-7118b6c4.js">
13
  <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/chunks/preload-helper-fca94356.js">
14
  <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/pages/__layout.svelte-687870fa.js">
15
+ <link rel="modulepreload" href="/embed/huggingface-projects/wordalle/static/_app/immutable/pages/index.svelte-70b7aa98.js">
16
  </head>
17
  <body class="dark:bg-[rgb(11,15,25)] bg-white dark:text-white text-black">
18
  <div>
 
22
 
23
 
24
  <script type="module" data-sveltekit-hydrate="2eq20f">
25
+ import { start } from "/embed/huggingface-projects/wordalle/static/_app/immutable/start-e112b0e1.js";
26
  start({
27
  target: document.querySelector('[data-sveltekit-hydrate="2eq20f"]').parentNode,
28
  paths: {"base":"/embed/huggingface-projects/wordalle/static","assets":"/embed/huggingface-projects/wordalle/static"},