diff --git a/ui/.gitignore b/ui/.gitignore index a547bf3..251ce6d 100644 --- a/ui/.gitignore +++ b/ui/.gitignore @@ -8,7 +8,6 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist dist-ssr *.local diff --git a/ui/dist/assets/index-3a7b2709.css b/ui/dist/assets/index-3a7b2709.css new file mode 100644 index 0000000..bac18a3 --- /dev/null +++ b/ui/dist/assets/index-3a7b2709.css @@ -0,0 +1 @@ +:where(html){--link:var(--indigo-7);--link-visited:var(--purple-7);--text-1:var(--gray-12);--text-2:var(--gray-7);--surface-1:var(--gray-0);--surface-2:var(--gray-2);--surface-3:var(--gray-3);--surface-4:var(--gray-4);--scrollthumb-color:var(--gray-7);-webkit-text-size-adjust:none;accent-color:var(--brand,var(--link));background-color:var(--surface-1);block-size:100%;caret-color:var(--brand,var(--link));color:var(--text-1);color-scheme:light;font-family:var(--font-sans);line-height:var(--font-lineheight-3);scrollbar-color:var(--scrollthumb-color) transparent}@media (dynamic-range:high){@supports (color:color(display-p3 0 0 0)){:where(html){--link:color(display-p3 .1 .4 1);--link-visited:color(display-p3 .6 .2 1)}}}:where(html) :where(dialog){background-color:var(--surface-1)}:where(html) :where(button,.btn){--_highlight:var(--_highlight-light);--_bg:var(--_bg-light);--_ink-shadow:var(--_ink-shadow-light)}:where(html) :where(button,.btn) :where([type=reset]){--_text:var(--red-6);--_border:var(--red-3)}:where(html) :where(button,.btn,input:is([type=button],[type=submit],[type=reset]))[disabled]{--_text:var(--gray-6)}:where(html) :where(textarea,select,input:not([type=button],[type=submit],[type=reset])){background-color:var(--surface-2)}@media (prefers-color-scheme:dark){:where(html){--link:var(--indigo-3);--link-visited:var(--purple-3);--text-1:var(--gray-1);--text-2:var(--gray-4);--surface-1:var(--gray-9);--surface-2:var(--gray-8);--surface-3:var(--gray-7);--surface-4:var(--gray-6);--scrollthumb-color:var(--gray-6);--shadow-strength:10%;--shadow-color:220 40% 2%;color-scheme:dark}}:where(a[href]){color:var(--brand,var(--link))}:where(a[href]):where(:visited){color:var(--link-visited)}:focus-visible{outline-color:var(--brand,var(--link))}*,:after,:before{box-sizing:border-box}:where(:not(dialog)){margin:0}:where(:not(fieldset,progress,meter)){background-origin:border-box;background-repeat:no-repeat;border-style:solid;border-width:0}@media (prefers-reduced-motion:no-preference){:where(html){scroll-behavior:smooth}}@media (prefers-reduced-motion:no-preference){:where(:focus-visible){transition:outline-offset 145ms var(--ease-2)}:where(:not(:active):focus-visible){transition-duration:.25s}}:where(:not(:active):focus-visible){outline-offset:5px}:where(body){min-block-size:100%}:where(h1,h2,h3,h4,h5,h6){text-wrap:balance;font-weight:var(--font-weight-9);line-height:var(--font-lineheight-1)}:where(h1){font-size:var(--font-size-8);max-inline-size:var(--size-header-1)}:where(h2){font-size:var(--font-size-6);max-inline-size:var(--size-header-2)}:where(h3){font-size:var(--font-size-5)}:where(h4){font-size:var(--font-size-4)}:where(h5){font-size:var(--font-size-3)}:where(h3,h4,h5,h6,dt){max-inline-size:var(--size-header-3)}:where(p,ul,ol,dl,h6){font-size:var(--font-size-2)}:where(a,u,ins,abbr){text-underline-offset:1px}@supports (-moz-appearance:none){:where(a,u,ins,abbr){text-underline-offset:2px}}:where(a[href],area,button,input:not([type=text],[type=email],[type=number],[type=password],[type=""],[type=tel],[type=url]),label[for],select,summary,[tabindex]:not([tabindex*="-"])){cursor:pointer}:where(a[href],area,button,input,label[for],select,summary,textarea,[tabindex]:not([tabindex*="-"])){-webkit-tap-highlight-color:transparent;touch-action:manipulation}:where(a){margin-block:calc(var(--size-1)*-1);margin-inline:calc(var(--size-1)*-1);padding-block:var(--size-1);padding-inline:var(--size-1)}:where(a):where([href]){text-decoration-color:var(--indigo-2)}:where(a):where([href]):where(:visited){text-decoration-color:var(--purple-2)}:where(a):where(:not(:hover)){text-decoration:inherit}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block}:where(img,svg,video){block-size:auto;max-inline-size:100%}:where(input,button,textarea,select),:where(input[type=file])::-webkit-file-upload-button{color:inherit;font:inherit;font-size:inherit;letter-spacing:inherit}::placeholder{color:var(--gray-7);opacity:.75}:where(input:not([type=range]),textarea){padding-block:var(--size-1);padding-inline:var(--size-2)}:where(select){padding-block:.75ch;padding-inline:var(--size-relative-4) 0}:where(textarea,select,input:not([type=button],[type=submit],[type=reset])){background-color:var(--surface-2);border-radius:var(--radius-2)}:where(textarea){resize:block}:where(input[type=checkbox],input[type=radio]){block-size:var(--size-3);inline-size:var(--size-3)}:where(svg:not([width])){inline-size:var(--size-10)}:where(code,kbd,samp,pre){font-family:var(--font-mono)}:where(:not(pre)>code,kbd){white-space:nowrap}:where(pre){direction:ltr;max-inline-size:max-content;min-inline-size:0;white-space:pre;writing-mode:lr}:where(:not(pre)>code){background:var(--surface-2);border-radius:var(--radius-2);padding:var(--size-1) var(--size-2);writing-mode:lr}:where(kbd,var){border-color:var(--surface-4);border-radius:var(--radius-2);border-width:var(--border-size-1);padding:var(--size-1) var(--size-2)}:where(mark){border-radius:var(--radius-2);padding-inline:var(--size-1)}:where(ol,ul){padding-inline-start:var(--size-8)}:where(li){padding-inline-start:var(--size-2)}:where(li,dd,figcaption){max-inline-size:var(--size-content-2)}:where(p){text-wrap:pretty;max-inline-size:var(--size-content-3)}:where(dt,summary){font-weight:var(--font-weight-7)}:where(dt:not(:first-of-type)){margin-block-start:var(--size-5)}:where(small){font-size:max(.5em,var(--font-size-0));max-inline-size:var(--size-content-1)}:where(hr){background-color:var(--surface-3);height:var(--border-size-2);margin-block:var(--size-fluid-5)}:where(figure){display:grid;gap:var(--size-2);place-items:center}:where(figure)>:where(figcaption){text-wrap:balance;font-size:var(--font-size-1)}:where(blockquote,:not(blockquote)>cite){border-inline-start-width:var(--border-size-3)}:where(blockquote){display:grid;gap:var(--size-3);max-inline-size:var(--size-content-2);padding-block:var(--size-3);padding-inline:var(--size-4)}:where(:not(blockquote)>cite){padding-inline-start:var(--size-2)}:where(summary){background:var(--surface-3);border-radius:var(--radius-2);margin:calc(var(--size-2)*-1) calc(var(--size-3)*-1);padding:var(--size-2) var(--size-3)}:where(details){background:var(--surface-2);border-radius:var(--radius-2);padding-block:var(--size-2);padding-inline:var(--size-3)}:where(details[open]>summary){border-end-end-radius:0;border-end-start-radius:0;margin-bottom:var(--size-2)}:where(fieldset){border:var(--border-size-1) solid var(--surface-4);border-radius:var(--radius-2)}:where(del){background:var(--red-9);color:var(--red-2)}:where(ins){background:var(--green-9);color:var(--green-1)}:where(abbr){text-decoration-color:var(--blue-5)}:where(dialog){background-color:var(--surface-1);border-radius:var(--radius-3);box-shadow:var(--shadow-6);color:inherit}:where(dialog)::backdrop{-webkit-backdrop-filter:blur(25px);backdrop-filter:blur(25px)}:where(html[\:has\(dialog\[open\]\)]){overflow:hidden}:where(html:has(dialog[open])){overflow:hidden}:where(menu){display:flex;gap:var(--size-3);padding-inline-start:0}:where(sup){font-size:.5em}:where(table){--nice-inner-radius:calc(var(--radius-3) - 2px);background:var(--surface-2);border:1px solid var(--surface-2);border-radius:var(--radius-3);width:fit-content}:where(table[\:not-has\(tfoot\)] tr:last-child td:first-child){border-bottom-left-radius:var(--nice-inner-radius)}:where(table:not(:has(tfoot)) tr:last-child td:first-child){border-bottom-left-radius:var(--nice-inner-radius)}:where(table[\:not-has\(tfoot\)] tr:last-child td:last-child){border-bottom-right-radius:var(--nice-inner-radius)}:where(table:not(:has(tfoot)) tr:last-child td:last-child){border-bottom-right-radius:var(--nice-inner-radius)}:where(table thead th:first-child){border-top-left-radius:var(--nice-inner-radius)}:where(table thead th:last-child){border-top-right-radius:var(--nice-inner-radius)}:where(tfoot th:first-of-type){border-end-start-radius:var(--nice-inner-radius)}:where(tfoot th:last-of-type){border-end-end-radius:var(--nice-inner-radius)}:where(th){background-color:var(--surface-2);color:var(--text-1)}:where(table :is(a,button,[contenteditable]):is(:focus-visible)){outline-offset:-2px}:where(td){text-wrap:pretty;background:var(--surface-1);max-inline-size:var(--size-content-2)}:where(td,th){padding:var(--size-2);text-align:left}:where(:is(td,th):not([align])){text-align:center}:where(thead){border-collapse:collapse}:where(table tr:hover td),:where(tbody tr:nth-child(2n):hover td){background-color:var(--gray-10)}@media (prefers-color-scheme:light){:where(table tr:hover td),:where(tbody tr:nth-child(2n):hover td){background-color:#fff}}:where(table>caption){margin:var(--size-3)}:where(tfoot button){padding-block:var(--size-1);padding-inline:var(--size-3)}@media (prefers-color-scheme:dark){:where(textarea,select,input:not([type=button],[type=submit],[type=reset])){background-color:#171a1c}:where(dialog){background-color:var(--surface-2)}::placeholder{color:var(--gray-6)}}:where(html){--font-sans:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;--font-serif:ui-serif,serif;--font-mono:Dank Mono,Operator Mono,Inconsolata,Fira Mono,ui-monospace,SF Mono,Monaco,Droid Sans Mono,Source Code Pro,monospace;--font-weight-1:100;--font-weight-2:200;--font-weight-3:300;--font-weight-4:400;--font-weight-5:500;--font-weight-6:600;--font-weight-7:700;--font-weight-8:800;--font-weight-9:900;--font-lineheight-00:.95;--font-lineheight-0:1.1;--font-lineheight-1:1.25;--font-lineheight-2:1.375;--font-lineheight-3:1.5;--font-lineheight-4:1.75;--font-lineheight-5:2;--font-letterspacing-0:-.05em;--font-letterspacing-1:.025em;--font-letterspacing-2:.05em;--font-letterspacing-3:.075em;--font-letterspacing-4:.15em;--font-letterspacing-5:.5em;--font-letterspacing-6:.75em;--font-letterspacing-7:1em;--font-size-00:.5rem;--font-size-0:.75rem;--font-size-1:1rem;--font-size-2:1.1rem;--font-size-3:1.25rem;--font-size-4:1.5rem;--font-size-5:2rem;--font-size-6:2.5rem;--font-size-7:3rem;--font-size-8:3.5rem;--font-size-fluid-0:clamp(.75rem,2vw,1rem);--font-size-fluid-1:clamp(1rem,4vw,1.5rem);--font-size-fluid-2:clamp(1.5rem,6vw,2.5rem);--font-size-fluid-3:clamp(2rem,9vw,3.5rem);--size-000:-.5rem;--size-00:-.25rem;--size-1:.25rem;--size-2:.5rem;--size-3:1rem;--size-4:1.25rem;--size-5:1.5rem;--size-6:1.75rem;--size-7:2rem;--size-8:3rem;--size-9:4rem;--size-10:5rem;--size-11:7.5rem;--size-12:10rem;--size-13:15rem;--size-14:20rem;--size-15:30rem;--size-fluid-1:clamp(.5rem,1vw,1rem);--size-fluid-2:clamp(1rem,2vw,1.5rem);--size-fluid-3:clamp(1.5rem,3vw,2rem);--size-fluid-4:clamp(2rem,4vw,3rem);--size-fluid-5:clamp(4rem,5vw,5rem);--size-fluid-6:clamp(5rem,7vw,7.5rem);--size-fluid-7:clamp(7.5rem,10vw,10rem);--size-fluid-8:clamp(10rem,20vw,15rem);--size-fluid-9:clamp(15rem,30vw,20rem);--size-fluid-10:clamp(20rem,40vw,30rem);--size-content-1:20ch;--size-content-2:45ch;--size-content-3:60ch;--size-header-1:20ch;--size-header-2:25ch;--size-header-3:35ch;--size-xxs:240px;--size-xs:360px;--size-sm:480px;--size-md:768px;--size-lg:1024px;--size-xl:1440px;--size-xxl:1920px;--size-relative-000:-.5ch;--size-relative-00:-.25ch;--size-relative-1:.25ch;--size-relative-2:.5ch;--size-relative-3:1ch;--size-relative-4:1.25ch;--size-relative-5:1.5ch;--size-relative-6:1.75ch;--size-relative-7:2ch;--size-relative-8:3ch;--size-relative-9:4ch;--size-relative-10:5ch;--size-relative-11:7.5ch;--size-relative-12:10ch;--size-relative-13:15ch;--size-relative-14:20ch;--size-relative-15:30ch;--ease-1:cubic-bezier(.25,0,.5,1);--ease-2:cubic-bezier(.25,0,.4,1);--ease-3:cubic-bezier(.25,0,.3,1);--ease-4:cubic-bezier(.25,0,.2,1);--ease-5:cubic-bezier(.25,0,.1,1);--ease-in-1:cubic-bezier(.25,0,1,1);--ease-in-2:cubic-bezier(.5,0,1,1);--ease-in-3:cubic-bezier(.7,0,1,1);--ease-in-4:cubic-bezier(.9,0,1,1);--ease-in-5:cubic-bezier(1,0,1,1);--ease-out-1:cubic-bezier(0,0,.75,1);--ease-out-2:cubic-bezier(0,0,.5,1);--ease-out-3:cubic-bezier(0,0,.3,1);--ease-out-4:cubic-bezier(0,0,.1,1);--ease-out-5:cubic-bezier(0,0,0,1);--ease-in-out-1:cubic-bezier(.1,0,.9,1);--ease-in-out-2:cubic-bezier(.3,0,.7,1);--ease-in-out-3:cubic-bezier(.5,0,.5,1);--ease-in-out-4:cubic-bezier(.7,0,.3,1);--ease-in-out-5:cubic-bezier(.9,0,.1,1);--ease-elastic-out-1:cubic-bezier(.5,.75,.75,1.25);--ease-elastic-out-2:cubic-bezier(.5,1,.75,1.25);--ease-elastic-out-3:cubic-bezier(.5,1.25,.75,1.25);--ease-elastic-out-4:cubic-bezier(.5,1.5,.75,1.25);--ease-elastic-out-5:cubic-bezier(.5,1.75,.75,1.25);--ease-elastic-in-1:cubic-bezier(.5,-.25,.75,1);--ease-elastic-in-2:cubic-bezier(.5,-.5,.75,1);--ease-elastic-in-3:cubic-bezier(.5,-.75,.75,1);--ease-elastic-in-4:cubic-bezier(.5,-1,.75,1);--ease-elastic-in-5:cubic-bezier(.5,-1.25,.75,1);--ease-elastic-in-out-1:cubic-bezier(.5,-.1,.1,1.5);--ease-elastic-in-out-2:cubic-bezier(.5,-.3,.1,1.5);--ease-elastic-in-out-3:cubic-bezier(.5,-.5,.1,1.5);--ease-elastic-in-out-4:cubic-bezier(.5,-.7,.1,1.5);--ease-elastic-in-out-5:cubic-bezier(.5,-.9,.1,1.5);--ease-step-1:steps(2);--ease-step-2:steps(3);--ease-step-3:steps(4);--ease-step-4:steps(7);--ease-step-5:steps(10);--ease-elastic-1:var(--ease-elastic-out-1);--ease-elastic-2:var(--ease-elastic-out-2);--ease-elastic-3:var(--ease-elastic-out-3);--ease-elastic-4:var(--ease-elastic-out-4);--ease-elastic-5:var(--ease-elastic-out-5);--ease-squish-1:var(--ease-elastic-in-out-1);--ease-squish-2:var(--ease-elastic-in-out-2);--ease-squish-3:var(--ease-elastic-in-out-3);--ease-squish-4:var(--ease-elastic-in-out-4);--ease-squish-5:var(--ease-elastic-in-out-5);--ease-spring-1:linear(0,.006,.025 2.8%,.101 6.1%,.539 18.9%,.721 25.3%,.849 31.5%,.937 38.1%,.968 41.8%,.991 45.7%,1.006 50.1%,1.015 55%,1.017 63.9%,1.001);--ease-spring-2:linear(0,.007,.029 2.2%,.118 4.7%,.625 14.4%,.826 19%,.902,.962,1.008 26.1%,1.041 28.7%,1.064 32.1%,1.07 36%,1.061 40.5%,1.015 53.4%,.999 61.6%,.995 71.2%,1);--ease-spring-3:linear(0,.009,.035 2.1%,.141 4.4%,.723 12.9%,.938 16.7%,1.017,1.077,1.121,1.149 24.3%,1.159,1.163,1.161,1.154 29.9%,1.129 32.8%,1.051 39.6%,1.017 43.1%,.991,.977 51%,.974 53.8%,.975 57.1%,.997 69.8%,1.003 76.9%,1);--ease-spring-4:linear(0,.009,.037 1.7%,.153 3.6%,.776 10.3%,1.001,1.142 16%,1.185,1.209 19%,1.215 19.9% 20.8%,1.199,1.165 25%,1.056 30.3%,1.008 33%,.973,.955 39.2%,.953 41.1%,.957 43.3%,.998 53.3%,1.009 59.1% 63.7%,.998 78.9%,1);--ease-spring-5:linear(0,.01,.04 1.6%,.161 3.3%,.816 9.4%,1.046,1.189 14.4%,1.231,1.254 17%,1.259,1.257 18.6%,1.236,1.194 22.3%,1.057 27%,.999 29.4%,.955 32.1%,.942,.935 34.9%,.933,.939 38.4%,1 47.3%,1.011,1.017 52.6%,1.016 56.4%,1 65.2%,.996 70.2%,1.001 87.2%,1);--ease-bounce-1:linear(0,.004,.016,.035,.063,.098,.141,.191,.25,.316,.391 36.8%,.563,.766,1 58.8%,.946,.908 69.1%,.895,.885,.879,.878,.879,.885,.895,.908 89.7%,.946,1);--ease-bounce-2:linear(0,.004,.016,.035,.063,.098,.141 15.1%,.25,.391,.562,.765,1,.892 45.2%,.849,.815,.788,.769,.757,.753,.757,.769,.788,.815,.85,.892 75.2%,1 80.2%,.973,.954,.943,.939,.943,.954,.973,1);--ease-bounce-3:linear(0,.004,.016,.035,.062,.098,.141 11.4%,.25,.39,.562,.764,1 30.3%,.847 34.8%,.787,.737,.699,.672,.655,.65,.656,.672,.699,.738,.787,.847 61.7%,1 66.2%,.946,.908,.885 74.2%,.879,.878,.879,.885 79.5%,.908,.946,1 87.4%,.981,.968,.96,.957,.96,.968,.981,1);--ease-bounce-4:linear(0,.004,.016 3%,.062,.141,.25,.391,.562 18.2%,1 24.3%,.81,.676 32.3%,.629,.595,.575,.568,.575,.595,.629,.676 48.2%,.811,1 56.2%,.918,.86,.825,.814,.825,.86,.918,1 77.2%,.94 80.6%,.925,.92,.925,.94 87.5%,1 90.9%,.974,.965,.974,1);--ease-bounce-5:linear(0,.004,.016 2.5%,.063,.141,.25 10.1%,.562,1 20.2%,.783,.627,.534 30.9%,.511,.503,.511,.534 38%,.627,.782,1 48.7%,.892,.815,.769 56.3%,.757,.753,.757,.769 61.3%,.815,.892,1 68.8%,.908 72.4%,.885,.878,.885,.908 79.4%,1 83%,.954 85.5%,.943,.939,.943,.954 90.5%,1 93%,.977,.97,.977,1);--layer-1:1;--layer-2:2;--layer-3:3;--layer-4:4;--layer-5:5;--layer-important:2147483647;--shadow-color:220 3% 15%;--shadow-strength:1%;--inner-shadow-highlight:inset 0 -.5px 0 0 #fff,inset 0 .5px 0 0 rgba(0,0,0,.067);--shadow-1:0 1px 2px -1px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 9%));--shadow-2:0 3px 5px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 3%)),0 7px 14px -5px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 5%));--shadow-3:0 -1px 3px 0 hsl(var(--shadow-color)/calc(var(--shadow-strength) + 2%)),0 1px 2px -5px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 2%)),0 2px 5px -5px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 4%)),0 4px 12px -5px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 5%)),0 12px 15px -5px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 7%));--shadow-4:0 -2px 5px 0 hsl(var(--shadow-color)/calc(var(--shadow-strength) + 2%)),0 1px 1px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 3%)),0 2px 2px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 3%)),0 5px 5px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 4%)),0 9px 9px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 5%)),0 16px 16px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 6%));--shadow-5:0 -1px 2px 0 hsl(var(--shadow-color)/calc(var(--shadow-strength) + 2%)),0 2px 1px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 3%)),0 5px 5px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 3%)),0 10px 10px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 4%)),0 20px 20px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 5%)),0 40px 40px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 7%));--shadow-6:0 -1px 2px 0 hsl(var(--shadow-color)/calc(var(--shadow-strength) + 2%)),0 3px 2px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 3%)),0 7px 5px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 3%)),0 12px 10px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 4%)),0 22px 18px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 5%)),0 41px 33px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 6%)),0 100px 80px -2px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 7%));--inner-shadow-0:inset 0 0 0 1px hsl(var(--shadow-color)/calc(var(--shadow-strength) + 9%));--inner-shadow-1:inset 0 1px 2px 0 hsl(var(--shadow-color)/calc(var(--shadow-strength) + 9%)),var(--inner-shadow-highlight);--inner-shadow-2:inset 0 1px 4px 0 hsl(var(--shadow-color)/calc(var(--shadow-strength) + 9%)),var(--inner-shadow-highlight);--inner-shadow-3:inset 0 2px 8px 0 hsl(var(--shadow-color)/calc(var(--shadow-strength) + 9%)),var(--inner-shadow-highlight);--inner-shadow-4:inset 0 2px 14px 0 hsl(var(--shadow-color)/calc(var(--shadow-strength) + 9%)),var(--inner-shadow-highlight);--ratio-square:1;--ratio-landscape:4/3;--ratio-portrait:3/4;--ratio-widescreen:16/9;--ratio-ultrawide:18/5;--ratio-golden:1.618/1;--gray-0:#f8f9fa;--gray-1:#f1f3f5;--gray-2:#e9ecef;--gray-3:#dee2e6;--gray-4:#ced4da;--gray-5:#adb5bd;--gray-6:#868e96;--gray-7:#495057;--gray-8:#343a40;--gray-9:#212529;--gray-10:#16191d;--gray-11:#0d0f12;--gray-12:#030507;--stone-0:#f8fafb;--stone-1:#f2f4f6;--stone-2:#ebedef;--stone-3:#e0e4e5;--stone-4:#d1d6d8;--stone-5:#b1b6b9;--stone-6:#979b9d;--stone-7:#7e8282;--stone-8:#666968;--stone-9:#50514f;--stone-10:#3a3a37;--stone-11:#252521;--stone-12:#121210;--red-0:#fff5f5;--red-1:#ffe3e3;--red-2:#ffc9c9;--red-3:#ffa8a8;--red-4:#ff8787;--red-5:#ff6b6b;--red-6:#fa5252;--red-7:#f03e3e;--red-8:#e03131;--red-9:#c92a2a;--red-10:#b02525;--red-11:#962020;--red-12:#7d1a1a;--pink-0:#fff0f6;--pink-1:#ffdeeb;--pink-2:#fcc2d7;--pink-3:#faa2c1;--pink-4:#f783ac;--pink-5:#f06595;--pink-6:#e64980;--pink-7:#d6336c;--pink-8:#c2255c;--pink-9:#a61e4d;--pink-10:#8c1941;--pink-11:#731536;--pink-12:#59102a;--purple-0:#f8f0fc;--purple-1:#f3d9fa;--purple-2:#eebefa;--purple-3:#e599f7;--purple-4:#da77f2;--purple-5:#cc5de8;--purple-6:#be4bdb;--purple-7:#ae3ec9;--purple-8:#9c36b5;--purple-9:#862e9c;--purple-10:#702682;--purple-11:#5a1e69;--purple-12:#44174f;--violet-0:#f3f0ff;--violet-1:#e5dbff;--violet-2:#d0bfff;--violet-3:#b197fc;--violet-4:#9775fa;--violet-5:#845ef7;--violet-6:#7950f2;--violet-7:#7048e8;--violet-8:#6741d9;--violet-9:#5f3dc4;--violet-10:#5235ab;--violet-11:#462d91;--violet-12:#3a2578;--indigo-0:#edf2ff;--indigo-1:#dbe4ff;--indigo-2:#bac8ff;--indigo-3:#91a7ff;--indigo-4:#748ffc;--indigo-5:#5c7cfa;--indigo-6:#4c6ef5;--indigo-7:#4263eb;--indigo-8:#3b5bdb;--indigo-9:#364fc7;--indigo-10:#2f44ad;--indigo-11:#283a94;--indigo-12:#21307a;--blue-0:#e7f5ff;--blue-1:#d0ebff;--blue-2:#a5d8ff;--blue-3:#74c0fc;--blue-4:#4dabf7;--blue-5:#339af0;--blue-6:#228be6;--blue-7:#1c7ed6;--blue-8:#1971c2;--blue-9:#1864ab;--blue-10:#145591;--blue-11:#114678;--blue-12:#0d375e;--cyan-0:#e3fafc;--cyan-1:#c5f6fa;--cyan-2:#99e9f2;--cyan-3:#66d9e8;--cyan-4:#3bc9db;--cyan-5:#22b8cf;--cyan-6:#15aabf;--cyan-7:#1098ad;--cyan-8:#0c8599;--cyan-9:#0b7285;--cyan-10:#095c6b;--cyan-11:#074652;--cyan-12:#053038;--teal-0:#e6fcf5;--teal-1:#c3fae8;--teal-2:#96f2d7;--teal-3:#63e6be;--teal-4:#38d9a9;--teal-5:#20c997;--teal-6:#12b886;--teal-7:#0ca678;--teal-8:#099268;--teal-9:#087f5b;--teal-10:#066649;--teal-11:#054d37;--teal-12:#033325;--green-0:#ebfbee;--green-1:#d3f9d8;--green-2:#b2f2bb;--green-3:#8ce99a;--green-4:#69db7c;--green-5:#51cf66;--green-6:#40c057;--green-7:#37b24d;--green-8:#2f9e44;--green-9:#2b8a3e;--green-10:#237032;--green-11:#1b5727;--green-12:#133d1b;--lime-0:#f4fce3;--lime-1:#e9fac8;--lime-2:#d8f5a2;--lime-3:#c0eb75;--lime-4:#a9e34b;--lime-5:#94d82d;--lime-6:#82c91e;--lime-7:#74b816;--lime-8:#66a80f;--lime-9:#5c940d;--lime-10:#4c7a0b;--lime-11:#3c6109;--lime-12:#2c4706;--yellow-0:#fff9db;--yellow-1:#fff3bf;--yellow-2:#ffec99;--yellow-3:#ffe066;--yellow-4:#ffd43b;--yellow-5:#fcc419;--yellow-6:#fab005;--yellow-7:#f59f00;--yellow-8:#f08c00;--yellow-9:#e67700;--yellow-10:#b35c00;--yellow-11:#804200;--yellow-12:#663500;--orange-0:#fff4e6;--orange-1:#ffe8cc;--orange-2:#ffd8a8;--orange-3:#ffc078;--orange-4:#ffa94d;--orange-5:#ff922b;--orange-6:#fd7e14;--orange-7:#f76707;--orange-8:#e8590c;--orange-9:#d9480f;--orange-10:#bf400d;--orange-11:#99330b;--orange-12:#802b09;--choco-0:#fff8dc;--choco-1:#fce1bc;--choco-2:#f7ca9e;--choco-3:#f1b280;--choco-4:#e99b62;--choco-5:#df8545;--choco-6:#d46e25;--choco-7:#bd5f1b;--choco-8:#a45117;--choco-9:#8a4513;--choco-10:#703a13;--choco-11:#572f12;--choco-12:#3d210d;--brown-0:#faf4eb;--brown-1:#ede0d1;--brown-2:#e0cab7;--brown-3:#d3b79e;--brown-4:#c5a285;--brown-5:#b78f6d;--brown-6:#a87c56;--brown-7:#956b47;--brown-8:#825b3a;--brown-9:#6f4b2d;--brown-10:#5e3a21;--brown-11:#4e2b15;--brown-12:#422412;--sand-0:#f8fafb;--sand-1:#e6e4dc;--sand-2:#d5cfbd;--sand-3:#c2b9a0;--sand-4:#aea58c;--sand-5:#9a9178;--sand-6:#867c65;--sand-7:#736a53;--sand-8:#5f5746;--sand-9:#4b4639;--sand-10:#38352d;--sand-11:#252521;--sand-12:#121210;--camo-0:#f9fbe7;--camo-1:#e8ed9c;--camo-2:#d2df4e;--camo-3:#c2ce34;--camo-4:#b5bb2e;--camo-5:#a7a827;--camo-6:#999621;--camo-7:#8c851c;--camo-8:#7e7416;--camo-9:#6d6414;--camo-10:#5d5411;--camo-11:#4d460e;--camo-12:#36300a;--jungle-0:#ecfeb0;--jungle-1:#def39a;--jungle-2:#d0e884;--jungle-3:#c2dd6e;--jungle-4:#b5d15b;--jungle-5:#a8c648;--jungle-6:#9bbb36;--jungle-7:#8fb024;--jungle-8:#84a513;--jungle-9:#7a9908;--jungle-10:#658006;--jungle-11:#516605;--jungle-12:#3d4d04;--gradient-1:linear-gradient(to bottom right,#1f005c,#5b0060,#870160,#ac255e,#ca485c,#e16b5c,#f39060,#ffb56b);--gradient-2:linear-gradient(to bottom right,#48005c,#8300e2,#a269ff);--gradient-3:radial-gradient(circle at top right,#0ff,rgba(0,255,255,0)),radial-gradient(circle at bottom left,#ff1492,rgba(255,20,146,0));--gradient-4:linear-gradient(to bottom right,#00f5a0,#00d9f5);--gradient-5:conic-gradient(from -270deg at 75% 110%,#f0f,#fffaf0);--gradient-6:conic-gradient(from -90deg at top left,#000,#fff);--gradient-7:linear-gradient(to bottom right,#72c6ef,#004e8f);--gradient-8:conic-gradient(from 90deg at 50% 0%,#111,50%,#222,#111);--gradient-9:conic-gradient(from .5turn at bottom center,#add8e6,#fff);--gradient-10:conic-gradient(from 90deg at 40% -25%,gold,#f79d03,#ee6907,#e6390a,#de0d0d,#d61039,#cf1261,#c71585,#cf1261,#d61039,#de0d0d,#ee6907,#f79d03,gold,gold,gold);--gradient-11:conic-gradient(at bottom left,#ff1493,cyan);--gradient-12:conic-gradient(from 90deg at 25% -10%,#ff4500,#d3f340,#7bee85,#afeeee,#7bee85);--gradient-13:radial-gradient(circle at 50% 200%,#000142,#3b0083,#b300c3,#ff059f,#ff4661,#ffad86,#fff3c7);--gradient-14:conic-gradient(at top right,lime,cyan);--gradient-15:linear-gradient(to bottom right,#c7d2fe,#fecaca,#fef3c7);--gradient-16:radial-gradient(circle at 50% -250%,#374151,#111827,#000);--gradient-17:conic-gradient(from -90deg at 50% -25%,blue,#8a2be2);--gradient-18:linear-gradient(0deg,rgba(255,0,0,.8),rgba(255,0,0,0) 75%),linear-gradient(60deg,rgba(255,255,0,.8),rgba(255,255,0,0) 75%),linear-gradient(120deg,rgba(0,255,0,.8),rgba(0,255,0,0) 75%),linear-gradient(180deg,rgba(0,255,255,.8),rgba(0,255,255,0) 75%),linear-gradient(240deg,rgba(0,0,255,.8),rgba(0,0,255,0) 75%),linear-gradient(300deg,rgba(255,0,255,.8),rgba(255,0,255,0) 75%);--gradient-19:linear-gradient(to bottom right,#ffe259,#ffa751);--gradient-20:conic-gradient(from -135deg at -10% center,orange,#ff7715,#ff522a,#ff3f47,#ff5482,#ff69b4);--gradient-21:conic-gradient(from -90deg at 25% 115%,red,#f06,#f0c,#c0f,#60f,#00f,#00f,#00f,#00f);--gradient-22:linear-gradient(to bottom right,#acb6e5,#86fde8);--gradient-23:linear-gradient(to bottom right,#536976,#292e49);--gradient-24:conic-gradient(from .5turn at 0% 0%,#00c476,10%,#82b0ff,90%,#00c476);--gradient-25:conic-gradient(at 125% 50%,#b78cf7,#ff7c94,#ffcf0d,#ff7c94,#b78cf7);--gradient-26:linear-gradient(to bottom right,#9796f0,#fbc7d4);--gradient-27:conic-gradient(from .5turn at bottom left,#ff1493,#639);--gradient-28:conic-gradient(from -90deg at 50% 105%,#fff,orchid);--gradient-29:radial-gradient(circle at top right,#bfb3ff,rgba(191,179,255,0)),radial-gradient(circle at bottom left,#86acf9,rgba(134,172,249,0));--gradient-30:radial-gradient(circle at top right,#00ff80,rgba(0,255,128,0)),radial-gradient(circle at bottom left,#adffd6,rgba(173,255,214,0));--noise-1:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.005' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");--noise-2:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");--noise-3:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.25' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");--noise-4:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 2056 2056' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");--noise-5:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 2056 2056' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");--noise-filter-1:contrast(300%) brightness(100%);--noise-filter-2:contrast(200%) brightness(150%);--noise-filter-3:contrast(200%) brightness(250%);--noise-filter-4:contrast(200%) brightness(500%);--noise-filter-5:contrast(200%) brightness(1000%);--animation-fade-in:fade-in .5s var(--ease-3);--animation-fade-in-bloom:fade-in-bloom 2s var(--ease-3);--animation-fade-out:fade-out .5s var(--ease-3);--animation-fade-out-bloom:fade-out-bloom 2s var(--ease-3);--animation-scale-up:scale-up .5s var(--ease-3);--animation-scale-down:scale-down .5s var(--ease-3);--animation-slide-out-up:slide-out-up .5s var(--ease-3);--animation-slide-out-down:slide-out-down .5s var(--ease-3);--animation-slide-out-right:slide-out-right .5s var(--ease-3);--animation-slide-out-left:slide-out-left .5s var(--ease-3);--animation-slide-in-up:slide-in-up .5s var(--ease-3);--animation-slide-in-down:slide-in-down .5s var(--ease-3);--animation-slide-in-right:slide-in-right .5s var(--ease-3);--animation-slide-in-left:slide-in-left .5s var(--ease-3);--animation-shake-x:shake-x .75s var(--ease-out-5);--animation-shake-y:shake-y .75s var(--ease-out-5);--animation-spin:spin 2s linear infinite;--animation-ping:ping 5s var(--ease-out-3) infinite;--animation-blink:blink 1s var(--ease-out-3) infinite;--animation-float:float 3s var(--ease-in-out-3) infinite;--animation-bounce:bounce 2s var(--ease-squish-2) infinite;--animation-pulse:pulse 2s var(--ease-out-3) infinite;--border-size-1:1px;--border-size-2:2px;--border-size-3:5px;--border-size-4:10px;--border-size-5:25px;--radius-1:2px;--radius-2:5px;--radius-3:1rem;--radius-4:2rem;--radius-5:4rem;--radius-6:8rem;--radius-round:1e5px;--radius-blob-1:30% 70% 70% 30%/53% 30% 70% 47%;--radius-blob-2:53% 47% 34% 66%/63% 46% 54% 37%;--radius-blob-3:37% 63% 56% 44%/49% 56% 44% 51%;--radius-blob-4:63% 37% 37% 63%/43% 37% 63% 57%;--radius-blob-5:49% 51% 48% 52%/57% 44% 56% 43%;--radius-conditional-1:clamp(0px,calc(100vw - 100%) * 1e5,var(--radius-1));--radius-conditional-2:clamp(0px,calc(100vw - 100%) * 1e5,var(--radius-2));--radius-conditional-3:clamp(0px,calc(100vw - 100%) * 1e5,var(--radius-3));--radius-conditional-4:clamp(0px,calc(100vw - 100%) * 1e5,var(--radius-4));--radius-conditional-5:clamp(0px,calc(100vw - 100%) * 1e5,var(--radius-5));--radius-conditional-6:clamp(0px,calc(100vw - 100%) * 1e5,var(--radius-6))}@media (prefers-color-scheme:dark){:where(html){--shadow-color:220 40% 2%;--shadow-strength:25%;--inner-shadow-highlight:inset 0 -.5px 0 0 hsla(0,0%,100%,.067),inset 0 .5px 0 0 rgba(0,0,0,.467)}}@keyframes fade-in{to{opacity:1}}@keyframes fade-in-bloom{0%{filter:brightness(1) blur(20px);opacity:0}10%{filter:brightness(2) blur(10px);opacity:1}to{filter:brightness(1) blur(0);opacity:1}}@keyframes fade-out{to{opacity:0}}@keyframes fade-out-bloom{to{filter:brightness(1) blur(20px);opacity:0}10%{filter:brightness(2) blur(10px);opacity:1}0%{filter:brightness(1) blur(0);opacity:1}}@keyframes scale-up{to{transform:scale(1.25)}}@keyframes scale-down{to{transform:scale(.75)}}@keyframes slide-out-up{to{transform:translateY(-100%)}}@keyframes slide-out-down{to{transform:translateY(100%)}}@keyframes slide-out-right{to{transform:translate(100%)}}@keyframes slide-out-left{to{transform:translate(-100%)}}@keyframes slide-in-up{0%{transform:translateY(100%)}}@keyframes slide-in-down{0%{transform:translateY(-100%)}}@keyframes slide-in-right{0%{transform:translate(-100%)}}@keyframes slide-in-left{0%{transform:translate(100%)}}@keyframes shake-x{0%,to{transform:translate(0)}20%{transform:translate(-5%)}40%{transform:translate(5%)}60%{transform:translate(-5%)}80%{transform:translate(5%)}}@keyframes shake-y{0%,to{transform:translateY(0)}20%{transform:translateY(-5%)}40%{transform:translateY(5%)}60%{transform:translateY(-5%)}80%{transform:translateY(5%)}}@keyframes spin{to{transform:rotate(1turn)}}@keyframes ping{90%,to{opacity:0;transform:scale(2)}}@keyframes blink{0%,to{opacity:1}50%{opacity:.5}}@keyframes float{50%{transform:translateY(-25%)}}@keyframes bounce{25%{transform:translateY(-20%)}40%{transform:translateY(-3%)}0%,60%,to{transform:translateY(0)}}@keyframes pulse{50%{transform:scale(.9)}}@media (prefers-color-scheme:dark){@keyframes fade-in-bloom{0%{filter:brightness(1) blur(20px);opacity:0}10%{filter:brightness(.5) blur(10px);opacity:1}to{filter:brightness(1) blur(0);opacity:1}}}@media (prefers-color-scheme:dark){@keyframes fade-out-bloom{to{filter:brightness(1) blur(20px);opacity:0}10%{filter:brightness(.5) blur(10px);opacity:1}0%{filter:brightness(1) blur(0);opacity:1}}}:root{--color-english: var(--indigo-3);--color-spanish: var(--teal-3)}@media (prefers-color-scheme: dark){:root{--color-english: var(--indigo-7);--color-spanish: var(--teal-7)}}html{padding:var(--size-fluid-2)}.app{display:flex;flex-direction:column;gap:var(--size-fluid-2)}.token{display:inline-flex;flex-direction:column;align-content:center;align-items:center;border-radius:var(--radius-2);padding:var(--size-2);background-color:var(--brand)}.token:hover{box-shadow:var(--shadow-3)}.pos{font-size:var(--font-size-00);font-variant:small-caps;color:var(--text-2)}.segment{display:flex;flex-direction:row;gap:var(--size-2);width:fit-content}.card{background-color:var(--surface-2);border-radius:var(--radius-2);padding:var(--size-fluid-1);box-shadow:var(--shadow-2)}@media (--motionOK){.card{animation:var(--animation-fade-in)}}.english{background-color:var(--color-english)}.spanish{background-color:var(--color-spanish)} diff --git a/ui/dist/assets/index-d751f465.js b/ui/dist/assets/index-d751f465.js new file mode 100644 index 0000000..82daa45 --- /dev/null +++ b/ui/dist/assets/index-d751f465.js @@ -0,0 +1,23 @@ +(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))h(c);new MutationObserver(c=>{for(const y of c)if(y.type==="childList")for(const _ of y.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&h(_)}).observe(document,{childList:!0,subtree:!0});function a(c){const y={};return c.integrity&&(y.integrity=c.integrity),c.referrerPolicy&&(y.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?y.credentials="include":c.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function h(c){if(c.ep)return;c.ep=!0;const y=a(c);fetch(c.href,y)}})();const Pr=(s,l)=>s===l,Cr=Symbol("solid-track"),ct={equals:Pr};let Gr=Wn;const qe=1,ht=2,Cn={owned:null,cleanups:null,context:null,owner:null},Pt={};var Q=null;let Ct=null,L=null,V=null,ke=null,yt=0;function ft(s,l){const a=L,h=Q,c=s.length===0,y=c?Cn:{owned:null,cleanups:null,context:null,owner:l===void 0?h:l},_=c?s:()=>s(()=>de(()=>wt(y)));Q=y,L=null;try{return xe(_,!0)}finally{L=a,Q=h}}function Be(s,l){l=l?Object.assign({},ct,l):ct;const a={value:s,observers:null,observerSlots:null,comparator:l.equals||void 0},h=c=>(typeof c=="function"&&(c=c(a.value)),Dn(a,c));return[Gn.bind(a),h]}function Ln(s,l,a){const h=Wt(s,l,!0,qe);$e(h)}function Dt(s,l,a){const h=Wt(s,l,!1,qe);$e(h)}function pt(s,l,a){a=a?Object.assign({},ct,a):ct;const h=Wt(s,l,!0,0);return h.observers=null,h.observerSlots=null,h.comparator=a.equals||void 0,$e(h),Gn.bind(h)}function Dr(s,l,a){let h,c,y;arguments.length===2&&typeof l=="object"||arguments.length===1?(h=!0,c=s,y=l||{}):(h=s,c=l,y=a||{});let _=null,w=Pt,O=!1,i="initialValue"in y,b=typeof h=="function"&&pt(h);const N=new Set,[R,D]=(y.storage||Be)(y.initialValue),[$,z]=Be(void 0),[se,re]=Be(void 0,{equals:!1}),[J,B]=Be(i?"ready":"unresolved");function U(T,j,W,fe){return _===T&&(_=null,fe!==void 0&&(i=!0),(T===w||j===w)&&y.onHydrated&&queueMicrotask(()=>y.onHydrated(fe,{value:j})),w=Pt,Z(j,W)),j}function Z(T,j){xe(()=>{j===void 0&&D(()=>T),B(j!==void 0?"errored":i?"ready":"unresolved"),z(j);for(const W of N.keys())W.decrement();N.clear()},!1)}function me(){const T=Wr,j=R(),W=$();if(W!==void 0&&!_)throw W;return L&&!L.user&&T&&Ln(()=>{se(),_&&(T.resolved||N.has(T)||(T.increment(),N.add(T)))}),j}function ie(T=!0){if(T!==!1&&O)return;O=!1;const j=b?b():h;if(j==null||j===!1){U(_,de(R));return}const W=w!==Pt?w:de(()=>c(j,{value:R(),refetching:T}));return typeof W!="object"||!(W&&"then"in W)?(U(_,W,void 0,j),W):(_=W,O=!0,queueMicrotask(()=>O=!1),xe(()=>{B(i?"refreshing":"pending"),re()},!1),W.then(fe=>U(W,fe,void 0,j),fe=>U(W,void 0,zn(fe),j)))}return Object.defineProperties(me,{state:{get:()=>J()},error:{get:()=>$()},loading:{get(){const T=J();return T==="pending"||T==="refreshing"}},latest:{get(){if(!i)return me();const T=$();if(T&&!_)throw T;return R()}}}),b?Ln(()=>ie(!1)):ie(!1),[me,{refetch:ie,mutate:D}]}function de(s){if(L===null)return s();const l=L;L=null;try{return s()}finally{L=l}}function Ur(s){return Q===null||(Q.cleanups===null?Q.cleanups=[s]:Q.cleanups.push(s)),s}let Wr;function Gn(){if(this.sources&&this.state)if(this.state===qe)$e(this);else{const s=V;V=null,xe(()=>dt(this),!1),V=s}if(L){const s=this.observers?this.observers.length:0;L.sources?(L.sources.push(this),L.sourceSlots.push(s)):(L.sources=[this],L.sourceSlots=[s]),this.observers?(this.observers.push(L),this.observerSlots.push(L.sources.length-1)):(this.observers=[L],this.observerSlots=[L.sources.length-1])}return this.value}function Dn(s,l,a){let h=s.value;return(!s.comparator||!s.comparator(h,l))&&(s.value=l,s.observers&&s.observers.length&&xe(()=>{for(let c=0;c1e6)throw V=[],new Error},!1)),l}function $e(s){if(!s.fn)return;wt(s);const l=Q,a=L,h=yt;L=Q=s,Fr(s,s.value,h),L=a,Q=l}function Fr(s,l,a){let h;try{h=s.fn(l)}catch(c){return s.pure&&(s.state=qe,s.owned&&s.owned.forEach(wt),s.owned=null),s.updatedAt=a+1,Jn(c)}(!s.updatedAt||s.updatedAt<=a)&&(s.updatedAt!=null&&"observers"in s?Dn(s,h):s.value=h,s.updatedAt=a)}function Wt(s,l,a,h=qe,c){const y={fn:s,state:h,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:l,owner:Q,context:null,pure:a};return Q===null||Q!==Cn&&(Q.owned?Q.owned.push(y):Q.owned=[y]),y}function Un(s){if(s.state===0)return;if(s.state===ht)return dt(s);if(s.suspense&&de(s.suspense.inFallback))return s.suspense.effects.push(s);const l=[s];for(;(s=s.owner)&&(!s.updatedAt||s.updatedAt=0;a--)if(s=l[a],s.state===qe)$e(s);else if(s.state===ht){const h=V;V=null,xe(()=>dt(s,l[0]),!1),V=h}}function xe(s,l){if(V)return s();let a=!1;l||(V=[]),ke?a=!0:ke=[],yt++;try{const h=s();return zr(a),h}catch(h){a||(ke=null),V=null,Jn(h)}}function zr(s){if(V&&(Wn(V),V=null),s)return;const l=ke;ke=null,l.length&&xe(()=>Gr(l),!1)}function Wn(s){for(let l=0;l=0;l--)wt(s.owned[l]);s.owned=null}if(s.cleanups){for(l=s.cleanups.length-1;l>=0;l--)s.cleanups[l]();s.cleanups=null}s.state=0,s.context=null}function zn(s){return s instanceof Error?s:new Error(typeof s=="string"?s:"Unknown error",{cause:s})}function Jn(s,l=Q){throw zn(s)}const Jr=Symbol("fallback");function jn(s){for(let l=0;l1?[]:null;return Ur(()=>jn(y)),()=>{let O=s()||[],i,b;return O[Cr],de(()=>{let R=O.length,D,$,z,se,re,J,B,U,Z;if(R===0)_!==0&&(jn(y),y=[],h=[],c=[],_=0,w&&(w=[])),a.fallback&&(h=[Jr],c[0]=ft(me=>(y[0]=me,a.fallback())),_=1);else if(_===0){for(c=new Array(R),b=0;b=J&&U>=J&&h[B]===O[U];B--,U--)z[U]=c[B],se[U]=y[B],w&&(re[U]=w[B]);for(D=new Map,$=new Array(U+1),b=U;b>=J;b--)Z=O[b],i=D.get(Z),$[b]=i===void 0?-1:i,D.set(Z,b);for(i=J;i<=B;i++)Z=h[i],b=D.get(Z),b!==void 0&&b!==-1?(z[b]=c[i],se[b]=y[i],w&&(re[b]=w[i]),b=$[b],D.set(Z,b)):y[i]();for(b=J;bs(l||{}))}const Kr=s=>`Stale read from <${s}>.`;function Bn(s){const l="fallback"in s&&{fallback:()=>s.fallback};return pt(Br(()=>s.each,s.children,l||void 0))}function $r(s){const l=s.keyed,a=pt(()=>s.when,void 0,{equals:(h,c)=>l?h===c:!h==!c});return pt(()=>{const h=a();if(h){const c=s.children;return typeof c=="function"&&c.length>0?de(()=>c(l?h:()=>{if(!de(a))throw Kr("Show");return s.when})):c}return s.fallback},void 0,void 0)}function Qr(s,l,a){let h=a.length,c=l.length,y=h,_=0,w=0,O=l[c-1].nextSibling,i=null;for(;_b-w){const $=l[_];for(;w{c=y,l===document?s():Ke(l,s(),l.firstChild?null:void 0,a)},h.owner),()=>{c(),l.textContent=""}}function Ft(s,l,a){let h;const c=()=>{const _=document.createElement("template");return _.innerHTML=s,a?_.content.firstChild.firstChild:_.content.firstChild},y=l?()=>de(()=>document.importNode(h||(h=c()),!0)):()=>(h||(h=c())).cloneNode(!0);return y.cloneNode=y,y}function Ke(s,l,a,h){if(a!==void 0&&!h&&(h=[]),typeof l!="function")return mt(s,l,h,a);Dt(c=>mt(s,l(),c,a),h)}function mt(s,l,a,h,c){for(;typeof a=="function";)a=a();if(l===a)return a;const y=typeof l,_=h!==void 0;if(s=_&&a[0]&&a[0].parentNode||s,y==="string"||y==="number")if(y==="number"&&(l=l.toString()),_){let w=a[0];w&&w.nodeType===3?w.data=l:w=document.createTextNode(l),a=Te(s,a,h,w)}else a!==""&&typeof a=="string"?a=s.firstChild.data=l:a=s.textContent=l;else if(l==null||y==="boolean")a=Te(s,a,h);else{if(y==="function")return Dt(()=>{let w=l();for(;typeof w=="function";)w=w();a=mt(s,w,a,h)}),()=>a;if(Array.isArray(l)){const w=[],O=a&&Array.isArray(a);if(Ut(w,l,a,c))return Dt(()=>a=mt(s,w,a,h,!0)),()=>a;if(w.length===0){if(a=Te(s,a,h),_)return a}else O?a.length===0?Pn(s,w,h):Qr(s,a,w):(a&&Te(s),Pn(s,w));a=w}else if(l.nodeType){if(Array.isArray(a)){if(_)return a=Te(s,a,h,l);Te(s,a,null,l)}else a==null||a===""||!s.firstChild?s.appendChild(l):s.replaceChild(l,s.firstChild);a=l}else console.warn("Unrecognized value. Skipped inserting",l)}return a}function Ut(s,l,a,h){let c=!1;for(let y=0,_=l.length;y<_;y++){let w=l[y],O=a&&a[y],i;if(!(w==null||w===!0||w===!1))if((i=typeof w)=="object"&&w.nodeType)s.push(w);else if(Array.isArray(w))c=Ut(s,w,O)||c;else if(i==="function")if(h){for(;typeof w=="function";)w=w();c=Ut(s,Array.isArray(w)?w:[w],Array.isArray(O)?O:[O])||c}else s.push(w),c=!0;else{const b=String(w);O&&O.nodeType===3&&O.data===b?s.push(O):s.push(document.createTextNode(b))}}return c}function Pn(s,l,a=null){for(let h=0,c=l.length;h=0;_--){const w=l[_];if(c!==w){const O=w.parentNode===s;!y&&!_?O?s.replaceChild(c,w):s.insertBefore(c,a):O&&w.remove()}else y=!0}}else s.insertBefore(c,a);return[c]}function Yr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Xr(s){if(s.__esModule)return s;var l=s.default;if(typeof l=="function"){var a=function h(){return this instanceof h?Reflect.construct(l,arguments,this.constructor):l.apply(this,arguments)};a.prototype=l.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(s).forEach(function(h){var c=Object.getOwnPropertyDescriptor(s,h);Object.defineProperty(a,h,c.get?c:{enumerable:!0,get:function(){return s[h]}})}),a}var Kn={exports:{}};const Zr={},ei=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),lt=Xr(ei);(function(s,l){var a=void 0,h=function(c){return a||(a=new Promise(function(y,_){var w=typeof c<"u"?c:{},O=w.onAbort;w.onAbort=function(e){_(new Error(e)),O&&O(e)},w.postRun=w.postRun||[],w.postRun.push(function(){y(w)}),s=void 0;var i;i||(i=typeof w<"u"?w:{}),i.onRuntimeInitialized=function(){function e(u,m){switch(typeof m){case"boolean":Hr(u,m?1:0);break;case"number":Nr(u,m);break;case"string":Rr(u,m,-1,-1);break;case"object":if(m===null)Tn(u);else if(m.length!=null){var v=jt(m);Tr(u,v,m.length,-1),st(v)}else at(u,"Wrong API use : tried to return a value of an unknown type ("+m+").",-1);break;default:Tn(u)}}function t(u,m){for(var v=[],g=0;g>>0),u!=null){var m=this.filename,v="/",g=m;if(v&&(v=typeof v=="string"?v:Ce(v),g=m?he(v+"/"+m):v),m=vn(!0,!0),g=Xe(g,(m!==void 0?m:438)&4095|32768,0),u){if(typeof u=="string"){v=Array(u.length);for(var S=0,I=u.length;S{U||(B=lt,U=lt)},se=function(e,t){return Z(),e=U.normalize(e),B.readFileSync(e,t?void 0:"utf8")},J=e=>(e=se(e,!0),e.buffer||(e=new Uint8Array(e)),e),re=(e,t,n)=>{Z(),e=U.normalize(e),B.readFile(e,function(r,o){r?n(r):t(o.buffer)})},1{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},D&&(J=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),re=(e,t,n)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{r.status==200||r.status==0&&r.response?t(r.response):n()},r.onerror=n,r.send(null)});var me=i.print||console.log.bind(console),ie=i.printErr||console.warn.bind(console);Object.assign(i,b),b=null,i.thisProgram&&(N=i.thisProgram);var T;i.wasmBinary&&(T=i.wasmBinary),i.noExitRuntime,typeof WebAssembly!="object"&&we("no native wasm support detected");var j,W=!1,fe=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Le(e,t,n){var r=t+n;for(n=t;e[n]&&!(n>=r);)++n;if(16o?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|o&1023))}}else r+=String.fromCharCode(o)}return r}function K(e,t){return e?Le(ue,e,t):""}function Ae(e,t,n,r){if(!(0=p){var A=e.charCodeAt(++f);p=65536+((p&1023)<<10)|A&1023}if(127>=p){if(n>=r)break;t[n++]=p}else{if(2047>=p){if(n+1>=r)break;t[n++]=192|p>>6}else{if(65535>=p){if(n+2>=r)break;t[n++]=224|p>>12}else{if(n+3>=r)break;t[n++]=240|p>>18,t[n++]=128|p>>12&63}t[n++]=128|p>>6&63}t[n++]=128|p&63}}return t[n]=0,n-o}function Ie(e){for(var t=0,n=0;n=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t}var _t,F,ue,Qe,q,P,bt,vt;function zt(){var e=j.buffer;_t=e,i.HEAP8=F=new Int8Array(e),i.HEAP16=Qe=new Int16Array(e),i.HEAP32=q=new Int32Array(e),i.HEAPU8=ue=new Uint8Array(e),i.HEAPU16=new Uint16Array(e),i.HEAPU32=P=new Uint32Array(e),i.HEAPF32=bt=new Float32Array(e),i.HEAPF64=vt=new Float64Array(e)}var ye,Jt=[],Bt=[],Kt=[];function $n(){var e=i.preRun.shift();Jt.unshift(e)}var Ee=0,je=null;function we(e){throw i.onAbort&&i.onAbort(e),e="Aborted("+e+")",ie(e),W=!0,new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info.")}function $t(){return ee.startsWith("data:application/octet-stream;base64,")}var ee;if(ee="sql-wasm.wasm",!$t()){var Qt=ee;ee=i.locateFile?i.locateFile(Qt,z):z+Qt}function Vt(){var e=ee;try{if(e==ee&&T)return new Uint8Array(T);if(J)return J(e);throw"both async and sync fetching of the wasm failed"}catch(t){we(t)}}function Qn(){if(!T&&(R||D)){if(typeof fetch=="function"&&!ee.startsWith("file://"))return fetch(ee,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ee+"'";return e.arrayBuffer()}).catch(function(){return Vt()});if(re)return new Promise(function(e,t){re(ee,function(n){e(new Uint8Array(n))},t)})}return Promise.resolve().then(function(){return Vt()})}var E,C;function gt(e){for(;0>0];case"i8":return F[e>>0];case"i16":return Qe[e>>1];case"i32":return q[e>>2];case"i64":return q[e>>2];case"float":return bt[e>>2];case"double":return vt[e>>3];case"*":return P[e>>2];default:we("invalid type for getValue: "+t)}return null}function Pe(e){var t="i32";switch(t.endsWith("*")&&(t="*"),t){case"i1":F[e>>0]=0;break;case"i8":F[e>>0]=0;break;case"i16":Qe[e>>1]=0;break;case"i32":q[e>>2]=0;break;case"i64":C=[0,(E=0,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],q[e>>2]=C[0],q[e+4>>2]=C[1];break;case"float":bt[e>>2]=0;break;case"double":vt[e>>3]=0;break;case"*":P[e>>2]=0;break;default:we("invalid type for setValue: "+t)}}var qt=(e,t)=>{for(var n=0,r=e.length-1;0<=r;r--){var o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n;n--)e.unshift("..");return e},he=e=>{var t=e.charAt(0)==="/",n=e.substr(-1)==="/";return(e=qt(e.split("/").filter(r=>!!r),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},Vn=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],!e&&!t?".":(t&&(t=t.substr(0,t.length-1)),e+t)},Ve=e=>{if(e==="/")return"/";e=he(e),e=e.replace(/\/$/,"");var t=e.lastIndexOf("/");return t===-1?e:e.substr(t+1)};function Yn(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var e=new Uint8Array(1);return()=>(crypto.getRandomValues(e),e[0])}if($)try{var t=lt;return()=>t.randomBytes(1)[0]}catch{}return()=>we("randomDevice")}function Ye(){for(var e="",t=!1,n=arguments.length-1;-1<=n&&!t;n--){if(t=0<=n?arguments[n]:"/",typeof t!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t=t.charAt(0)==="/"}return e=qt(e.split("/").filter(r=>!!r),!t).join("/"),(t?"/":"")+e||"."}function Yt(e,t){var n=Array(Ie(e)+1);return e=Ae(e,n,0,n.length),t&&(n.length=e),n}var Xt=[];function Zt(e,t){Xt[e]={input:[],output:[],Xa:t},St(e,Xn)}var Xn={open:function(e){var t=Xt[e.node.rdev];if(!t)throw new d(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.Xa.fsync(e.tty)},fsync:function(e){e.tty.Xa.fsync(e.tty)},read:function(e,t,n,r){if(!e.tty||!e.tty.Xa.tb)throw new d(60);for(var o=0,f=0;f=t||(t=Math.max(t,n*(1048576>n?2:1.125)>>>0),n!=0&&(t=Math.max(t,256)),n=e.Ia,e.Ia=new Uint8Array(t),0=e.node.Ma)return 0;if(e=Math.min(e.node.Ma-o,r),8t)throw new d(28);return t},lb:function(e,t,n){M.qb(e.node,t+n),e.node.Ma=Math.max(e.node.Ma,t+n)},bb:function(e,t,n,r,o){if((e.node.mode&61440)!==32768)throw new d(43);if(e=e.node.Ia,o&2||e.buffer!==_t){if((0{if(e=Ye("/",e),!e)return{path:"",node:null};if(t=Object.assign({rb:!0,kb:0},t),8!!p),!1);for(var n=At,r="/",o=0;o{for(var t;;){if(e===e.parent)return e=e.Ra.ub,t?e[e.length-1]!=="/"?e+"/"+t:e+t:e;t=t?e.name+"/"+t:e.name,e=e.parent}},Mt=(e,t)=>{for(var n=0,r=0;r>>0)%be.length},nn=e=>{var t=Mt(e.parent.id,e.name);if(be[t]===e)be[t]=e.Wa;else for(t=be[t];t;){if(t.Wa===e){t.Wa=e.Wa;break}t=t.Wa}},Me=(e,t)=>{var n;if(n=(n=Ne(e,"x"))?n:e.Ga.lookup?0:2)throw new d(n,e);for(n=be[Mt(e.id,t)];n;n=n.Wa){var r=n.name;if(n.parent.id===e.id&&r===t)return n}return e.Ga.lookup(e,t)},rn=(e,t,n,r)=>(e=new En(e,t,n,r),t=Mt(e.parent.id,e.name),e.Wa=be[t],be[t]=e),nr={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},on=e=>{var t=["r","w","rw"][e&3];return e&512&&(t+="w"),t},Ne=(e,t)=>{if(tn)return 0;if(!t.includes("r")||e.mode&292){if(t.includes("w")&&!(e.mode&146)||t.includes("x")&&!(e.mode&73))return 2}else return 2;return 0},sn=(e,t)=>{try{return Me(e,t),20}catch{}return Ne(e,"wx")},un=(e,t,n)=>{try{var r=Me(e,t)}catch(o){return o.Ka}if(e=Ne(e,"wx"))return e;if(n){if((r.mode&61440)!==16384)return 54;if(r===r.parent||Ce(r)==="/")return 10}else if((r.mode&61440)===16384)return 31;return 0},rr=(e=0)=>{for(;4096>=e;e++)if(!_e[e])return e;throw new d(33)},an=(e,t)=>(Ue||(Ue=function(){this.$a={}},Ue.prototype={},Object.defineProperties(Ue.prototype,{object:{get:function(){return this.node},set:function(n){this.node=n}},flags:{get:function(){return this.$a.flags},set:function(n){this.$a.flags=n}},position:{get:function(){return this.$a.position},set:function(n){this.$a.position=n}}})),e=Object.assign(new Ue,e),t=rr(t),e.fd=t,_e[t]=e),ir={open:e=>{e.Ha=en[e.node.rdev].Ha,e.Ha.open&&e.Ha.open(e)},Ta:()=>{throw new d(70)}},St=(e,t)=>{en[e]={Ha:t}},ln=(e,t)=>{var n=t==="/",r=!t;if(n&&At)throw new d(10);if(!n&&!r){var o=Y(t,{rb:!1});if(t=o.path,o=o.node,o.Va)throw new d(10);if((o.mode&61440)!==16384)throw new d(54)}t={type:e,Kb:{},ub:t,Eb:[]},e=e.Ra(t),e.Ra=t,t.root=e,n?At=e:o&&(o.Va=t,o.Ra&&o.Ra.Eb.push(t))},Xe=(e,t,n)=>{var r=Y(e,{parent:!0}).node;if(e=Ve(e),!e||e==="."||e==="..")throw new d(28);var o=sn(r,e);if(o)throw new d(o);if(!r.Ga.ab)throw new d(63);return r.Ga.ab(r,e,t,n)},ae=(e,t)=>Xe(e,(t!==void 0?t:511)&1023|16384,0),Ze=(e,t,n)=>{typeof n>"u"&&(n=t,t=438),Xe(e,t|8192,n)},Ot=(e,t)=>{if(!Ye(e))throw new d(44);var n=Y(t,{parent:!0}).node;if(!n)throw new d(44);t=Ve(t);var r=sn(n,t);if(r)throw new d(r);if(!n.Ga.symlink)throw new d(63);n.Ga.symlink(n,t,e)},fn=e=>{var t=Y(e,{parent:!0}).node;e=Ve(e);var n=Me(t,e),r=un(t,e,!0);if(r)throw new d(r);if(!t.Ga.rmdir)throw new d(63);if(n.Va)throw new d(10);t.Ga.rmdir(t,e),nn(n)},cn=e=>{var t=Y(e,{parent:!0}).node;if(!t)throw new d(44);e=Ve(e);var n=Me(t,e),r=un(t,e,!1);if(r)throw new d(r);if(!t.Ga.unlink)throw new d(63);if(n.Va)throw new d(10);t.Ga.unlink(t,e),nn(n)},hn=e=>{if(e=Y(e).node,!e)throw new d(44);if(!e.Ga.readlink)throw new d(28);return Ye(Ce(e.parent),e.Ga.readlink(e))},Ge=(e,t)=>{if(e=Y(e,{Sa:!t}).node,!e)throw new d(44);if(!e.Ga.Pa)throw new d(63);return e.Ga.Pa(e)},pn=e=>Ge(e,!0),et=(e,t)=>{if(e=typeof e=="string"?Y(e,{Sa:!0}).node:e,!e.Ga.Oa)throw new d(63);e.Ga.Oa(e,{mode:t&4095|e.mode&-4096,timestamp:Date.now()})},dn=(e,t)=>{if(0>t)throw new d(28);if(e=typeof e=="string"?Y(e,{Sa:!0}).node:e,!e.Ga.Oa)throw new d(63);if((e.mode&61440)===16384)throw new d(31);if((e.mode&61440)!==32768)throw new d(28);var n=Ne(e,"w");if(n)throw new d(n);e.Ga.Oa(e,{size:t,timestamp:Date.now()})},Re=(e,t,n)=>{if(e==="")throw new d(44);if(typeof t=="string"){var r=nr[t];if(typeof r>"u")throw Error("Unknown file open mode: "+t);t=r}if(n=t&64?(typeof n>"u"?438:n)&4095|32768:0,typeof e=="object")var o=e;else{e=he(e);try{o=Y(e,{Sa:!(t&131072)}).node}catch{}}if(r=!1,t&64)if(o){if(t&128)throw new d(20)}else o=Xe(e,n,0),r=!0;if(!o)throw new d(44);if((o.mode&61440)===8192&&(t&=-513),t&65536&&(o.mode&61440)!==16384)throw new d(54);if(!r&&(n=o?(o.mode&61440)===40960?32:(o.mode&61440)===16384&&(on(t)!=="r"||t&512)?31:Ne(o,on(t)):44))throw new d(n);return t&512&&!r&&dn(o,0),t&=-131713,o=an({node:o,path:Ce(o),flags:t,seekable:!0,position:0,Ha:o.Ha,Ib:[],error:!1}),o.Ha.open&&o.Ha.open(o),!i.logReadFiles||t&1||(tt||(tt={}),e in tt||(tt[e]=1)),o},kt=e=>{if(e.fd===null)throw new d(8);e.hb&&(e.hb=null);try{e.Ha.close&&e.Ha.close(e)}catch(t){throw t}finally{_e[e.fd]=null}e.fd=null},mn=(e,t,n)=>{if(e.fd===null)throw new d(8);if(!e.seekable||!e.Ha.Ta)throw new d(70);if(n!=0&&n!=1&&n!=2)throw new d(28);e.position=e.Ha.Ta(e,t,n),e.Ib=[]},yn=(e,t,n,r,o)=>{if(0>r||0>o)throw new d(28);if(e.fd===null)throw new d(8);if((e.flags&2097155)===1)throw new d(8);if((e.node.mode&61440)===16384)throw new d(31);if(!e.Ha.read)throw new d(28);var f=typeof o<"u";if(!f)o=e.position;else if(!e.seekable)throw new d(70);return t=e.Ha.read(e,t,n,r,o),f||(e.position+=t),t},wn=(e,t,n,r,o)=>{if(0>r||0>o)throw new d(28);if(e.fd===null)throw new d(8);if(!(e.flags&2097155))throw new d(8);if((e.node.mode&61440)===16384)throw new d(31);if(!e.Ha.write)throw new d(28);e.seekable&&e.flags&1024&&mn(e,0,2);var f=typeof o<"u";if(!f)o=e.position;else if(!e.seekable)throw new d(70);return t=e.Ha.write(e,t,n,r,o,void 0),f||(e.position+=t),t},or=e=>{var t,n=Re(e,n||0);e=Ge(e).size;var r=new Uint8Array(e);return yn(n,r,0,e,0),t=r,kt(n),t},_n=()=>{d||(d=function(e,t){this.node=t,this.Hb=function(n){this.Ka=n},this.Hb(e),this.message="FS error"},d.prototype=Error(),d.prototype.constructor=d,[44].forEach(e=>{Et[e]=new d(e),Et[e].stack=""}))},bn,vn=(e,t)=>{var n=0;return e&&(n|=365),t&&(n|=146),n},De=(e,t,n)=>{e=he("/dev/"+e);var r=vn(!!t,!!n);xt||(xt=64);var o=xt++<<8|0;St(o,{open:f=>{f.seekable=!1},close:()=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(f,p,A,x)=>{for(var k=0,G=0;G{for(var k=0;k>2]=r.dev,q[n+8>>2]=r.ino,q[n+12>>2]=r.mode,P[n+16>>2]=r.nlink,q[n+20>>2]=r.uid,q[n+24>>2]=r.gid,q[n+28>>2]=r.rdev,C=[r.size>>>0,(E=r.size,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],q[n+40>>2]=C[0],q[n+44>>2]=C[1],q[n+48>>2]=4096,q[n+52>>2]=r.blocks,C=[Math.floor(r.atime.getTime()/1e3)>>>0,(E=Math.floor(r.atime.getTime()/1e3),1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],q[n+56>>2]=C[0],q[n+60>>2]=C[1],P[n+64>>2]=0,C=[Math.floor(r.mtime.getTime()/1e3)>>>0,(E=Math.floor(r.mtime.getTime()/1e3),1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],q[n+72>>2]=C[0],q[n+76>>2]=C[1],P[n+80>>2]=0,C=[Math.floor(r.ctime.getTime()/1e3)>>>0,(E=Math.floor(r.ctime.getTime()/1e3),1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],q[n+88>>2]=C[0],q[n+92>>2]=C[1],P[n+96>>2]=0,C=[r.ino>>>0,(E=r.ino,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],q[n+104>>2]=C[0],q[n+108>>2]=C[1],0}var rt=void 0;function it(){return rt+=4,q[rt-4>>2]}function oe(e){if(e=_e[e],!e)throw new d(8);return e}function It(e){return P[e>>2]+4294967296*q[e+4>>2]}function gn(e){var t=Ie(e)+1,n=ot(t);return n&&Ae(e,F,n,t),n}function sr(e,t,n){function r(x){return(x=x.toTimeString().match(/\(([A-Za-z ]+)\)$/))?x[1]:"GMT"}var o=new Date().getFullYear(),f=new Date(o,0,1),p=new Date(o,6,1);o=f.getTimezoneOffset();var A=p.getTimezoneOffset();q[e>>2]=60*Math.max(o,A),q[t>>2]=+(o!=A),e=r(f),t=r(p),e=gn(e),t=gn(t),A>2]=e,P[n+4>>2]=t):(P[n>>2]=t,P[n+4>>2]=e)}function Nt(e,t,n){Nt.Bb||(Nt.Bb=!0,sr(e,t,n))}var qn;qn=$?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:()=>performance.now();var Rt={};function An(){if(!Tt){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:N||"./this.program"},t;for(t in Rt)Rt[t]===void 0?delete e[t]:e[t]=Rt[t];var n=[];for(t in e)n.push(t+"="+e[t]);Tt=n}return Tt}var Tt,ve=void 0,Ht=[];function Lt(e,t){if(!ve){ve=new WeakMap;var n=ye.length;if(ve)for(var r=0;r<0+n;r++){var o=ye.get(r);o&&ve.set(o,r)}}if(ve.has(e))return ve.get(e);if(Ht.length)n=Ht.pop();else{try{ye.grow(1)}catch(A){throw A instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":A}n=ye.length-1}try{ye.set(n,e)}catch(A){if(!(A instanceof TypeError))throw A;if(typeof WebAssembly.Function=="function"){r=WebAssembly.Function,o={i:"i32",j:"i64",f:"f32",d:"f64",p:"i32"};for(var f={parameters:[],results:t[0]=="v"?[]:[o[t[0]]]},p=1;pp?r.push(p):r.push(p%128|128,p>>7),p=0;po?t.push(o):t.push(o%128|128,o>>7),t.push.apply(t,r),t.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),t=new WebAssembly.Module(new Uint8Array(t)),t=new WebAssembly.Instance(t,{e:{f:e}}).exports.f}ye.set(n,t)}return ve.set(e,n),n}function We(e){ve.delete(ye.get(e)),Ht.push(e)}function jt(e){var t=ot(e.length);return e.subarray||e.slice||(e=new Uint8Array(e)),ue.set(e,t),t}function ur(e,t,n,r){var o={string:k=>{var G=0;if(k!=null&&k!==0){var pe=(k.length<<2)+1;G=ge(pe),Ae(k,ue,G,pe)}return G},array:k=>{var G=ge(k.length);return F.set(k,G),G}};e=i["_"+e];var f=[],p=0;if(r)for(var A=0;A{ae("/dev"),St(259,{read:()=>0,write:(t,n,r,o)=>o}),Ze("/dev/null",259),Zt(1280,Zn),Zt(1536,er),Ze("/dev/tty",1280),Ze("/dev/tty1",1536);var e=Yn();De("random",e),De("urandom",e),ae("/dev/shm"),ae("/dev/shm/tmp")})(),(()=>{ae("/proc");var e=ae("/proc/self");ae("/proc/self/fd"),ln({Ra:()=>{var t=rn(e,"fd",16895,73);return t.Ga={lookup:(n,r)=>{var o=_e[+r];if(!o)throw new d(8);return n={parent:null,Ra:{ub:"fake"},Ga:{readlink:()=>o.path}},n.parent=n}},t}},"/proc/self/fd")})();var ar={a:function(e,t,n,r){we("Assertion failed: "+K(e)+", at: "+[t?K(t):"unknown filename",n,r?K(r):"unknown function"])},h:function(e,t){try{return e=K(e),et(e,t),0}catch(n){if(typeof H>"u"||!(n instanceof d))throw n;return-n.Ka}},H:function(e,t,n){try{if(t=K(t),t=Se(e,t),n&-8)return-28;var r=Y(t,{Sa:!0}).node;return r?(e="",n&4&&(e+="r"),n&2&&(e+="w"),n&1&&(e+="x"),e&&Ne(r,e)?-2:0):-44}catch(o){if(typeof H>"u"||!(o instanceof d))throw o;return-o.Ka}},i:function(e,t){try{var n=_e[e];if(!n)throw new d(8);return et(n.node,t),0}catch(r){if(typeof H>"u"||!(r instanceof d))throw r;return-r.Ka}},g:function(e){try{var t=_e[e];if(!t)throw new d(8);var n=t.node,r=typeof n=="string"?Y(n,{Sa:!0}).node:n;if(!r.Ga.Oa)throw new d(63);return r.Ga.Oa(r,{timestamp:Date.now()}),0}catch(o){if(typeof H>"u"||!(o instanceof d))throw o;return-o.Ka}},b:function(e,t,n){rt=n;try{var r=oe(e);switch(t){case 0:var o=it();return 0>o?-28:an(r,o).fd;case 1:case 2:return 0;case 3:return r.flags;case 4:return o=it(),r.flags|=o,0;case 5:return o=it(),Qe[o+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return q[Mn()>>2]=28,-1;default:return-28}}catch(f){if(typeof H>"u"||!(f instanceof d))throw f;return-f.Ka}},G:function(e,t){try{var n=oe(e);return nt(Ge,n.path,t)}catch(r){if(typeof H>"u"||!(r instanceof d))throw r;return-r.Ka}},l:function(e,t,n){try{if(t=n+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*n:NaN,isNaN(t))return-61;var r=_e[e];if(!r)throw new d(8);if(!(r.flags&2097155))throw new d(28);return dn(r.node,t),0}catch(o){if(typeof H>"u"||!(o instanceof d))throw o;return-o.Ka}},B:function(e,t){try{if(t===0)return-28;var n=Ie("/")+1;return t"u"||!(r instanceof d))throw r;return-r.Ka}},E:function(e,t){try{return e=K(e),nt(pn,e,t)}catch(n){if(typeof H>"u"||!(n instanceof d))throw n;return-n.Ka}},y:function(e,t,n){try{return t=K(t),t=Se(e,t),t=he(t),t[t.length-1]==="/"&&(t=t.substr(0,t.length-1)),ae(t,n),0}catch(r){if(typeof H>"u"||!(r instanceof d))throw r;return-r.Ka}},D:function(e,t,n,r){try{t=K(t);var o=r&256;return t=Se(e,t,r&4096),nt(o?pn:Ge,t,n)}catch(f){if(typeof H>"u"||!(f instanceof d))throw f;return-f.Ka}},v:function(e,t,n,r){rt=r;try{t=K(t),t=Se(e,t);var o=r?it():0;return Re(t,n,o).fd}catch(f){if(typeof H>"u"||!(f instanceof d))throw f;return-f.Ka}},t:function(e,t,n,r){try{if(t=K(t),t=Se(e,t),0>=r)return-28;var o=hn(t),f=Math.min(r,Ie(o)),p=F[n+f];return Ae(o,ue,n,r+1),F[n+f]=p,f}catch(A){if(typeof H>"u"||!(A instanceof d))throw A;return-A.Ka}},s:function(e){try{return e=K(e),fn(e),0}catch(t){if(typeof H>"u"||!(t instanceof d))throw t;return-t.Ka}},F:function(e,t){try{return e=K(e),nt(Ge,e,t)}catch(n){if(typeof H>"u"||!(n instanceof d))throw n;return-n.Ka}},p:function(e,t,n){try{return t=K(t),t=Se(e,t),n===0?cn(t):n===512?fn(t):we("Invalid flags passed to unlinkat"),0}catch(r){if(typeof H>"u"||!(r instanceof d))throw r;return-r.Ka}},o:function(e,t,n){try{if(t=K(t),t=Se(e,t,!0),n){var r=It(n),o=q[n+8>>2];f=1e3*r+o/1e6,n+=16,r=It(n),o=q[n+8>>2],p=1e3*r+o/1e6}else var f=Date.now(),p=f;e=f;var A=Y(t,{Sa:!0}).node;return A.Ga.Oa(A,{timestamp:Math.max(e,p)}),0}catch(x){if(typeof H>"u"||!(x instanceof d))throw x;return-x.Ka}},e:function(){return Date.now()},j:function(e,t){e=new Date(1e3*It(e)),q[t>>2]=e.getSeconds(),q[t+4>>2]=e.getMinutes(),q[t+8>>2]=e.getHours(),q[t+12>>2]=e.getDate(),q[t+16>>2]=e.getMonth(),q[t+20>>2]=e.getFullYear()-1900,q[t+24>>2]=e.getDay();var n=new Date(e.getFullYear(),0,1);q[t+28>>2]=(e.getTime()-n.getTime())/864e5|0,q[t+36>>2]=-(60*e.getTimezoneOffset());var r=new Date(e.getFullYear(),6,1).getTimezoneOffset();n=n.getTimezoneOffset(),q[t+32>>2]=(r!=n&&e.getTimezoneOffset()==Math.min(n,r))|0},w:function(e,t,n,r,o,f){try{var p=oe(r);if(t&2&&!(n&2)&&(p.flags&2097155)!==2)throw new d(2);if((p.flags&2097155)===1)throw new d(2);if(!p.Ha.bb)throw new d(43);var A=p.Ha.bb(p,e,o,t,n),x=A.Fb;return q[f>>2]=A.vb,x}catch(k){if(typeof H>"u"||!(k instanceof d))throw k;return-k.Ka}},x:function(e,t,n,r,o,f){try{var p=oe(o);if(n&2){var A=ue.slice(e,e+t);p&&p.Ha.cb&&p.Ha.cb(p,A,f,t,r)}}catch(x){if(typeof H>"u"||!(x instanceof d))throw x;return-x.Ka}},n:Nt,q:function(){return 2147483648},d:qn,c:function(e){var t=ue.length;if(e>>>=0,2147483648=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);var o=Math;r=Math.max(e,r),o=o.min.call(o,2147483648,r+(65536-r%65536)%65536);e:{try{j.grow(o-_t.byteLength+65535>>>16),zt();var f=1;break e}catch{}f=void 0}if(f)return!0}return!1},z:function(e,t){var n=0;return An().forEach(function(r,o){var f=t+n;for(o=P[e+4*o>>2]=f,f=0;f>0]=r.charCodeAt(f);F[o>>0]=0,n+=r.length+1}),0},A:function(e,t){var n=An();P[e>>2]=n.length;var r=0;return n.forEach(function(o){r+=o.length+1}),P[t>>2]=r,0},f:function(e){try{var t=oe(e);return kt(t),0}catch(n){if(typeof H>"u"||!(n instanceof d))throw n;return n.Ka}},m:function(e,t){try{var n=oe(e);return F[t>>0]=n.tty?2:(n.mode&61440)===16384?3:(n.mode&61440)===40960?7:4,0}catch(r){if(typeof H>"u"||!(r instanceof d))throw r;return r.Ka}},u:function(e,t,n,r){try{e:{var o=oe(e);e=t;for(var f=t=0;f>2],A=P[e+4>>2];e+=8;var x=yn(o,F,p,A);if(0>x){var k=-1;break e}if(t+=x,x>2]=k,0}catch(G){if(typeof H>"u"||!(G instanceof d))throw G;return G.Ka}},k:function(e,t,n,r,o){try{if(t=n+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*n:NaN,isNaN(t))return 61;var f=oe(e);return mn(f,t,r),C=[f.position>>>0,(E=f.position,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)],q[o>>2]=C[0],q[o+4>>2]=C[1],f.hb&&t===0&&r===0&&(f.hb=null),0}catch(p){if(typeof H>"u"||!(p instanceof d))throw p;return p.Ka}},C:function(e){try{var t=oe(e);return t.Ha&&t.Ha.fsync?t.Ha.fsync(t):0}catch(n){if(typeof H>"u"||!(n instanceof d))throw n;return n.Ka}},r:function(e,t,n,r){try{e:{var o=oe(e);e=t;for(var f=t=0;f>2],A=P[e+4>>2];e+=8;var x=wn(o,F,p,A);if(0>x){var k=-1;break e}t+=x}k=t}return P[r>>2]=k,0}catch(G){if(typeof H>"u"||!(G instanceof d))throw G;return G.Ka}}};(function(){function e(o){i.asm=o.exports,j=i.asm.I,zt(),ye=i.asm.Aa,Bt.unshift(i.asm.J),Ee--,i.monitorRunDependencies&&i.monitorRunDependencies(Ee),Ee==0&&je&&(o=je,je=null,o())}function t(o){e(o.instance)}function n(o){return Qn().then(function(f){return WebAssembly.instantiate(f,r)}).then(function(f){return f}).then(o,function(f){ie("failed to asynchronously prepare wasm: "+f),we(f)})}var r={a:ar};if(Ee++,i.monitorRunDependencies&&i.monitorRunDependencies(Ee),i.instantiateWasm)try{return i.instantiateWasm(r,e)}catch(o){return ie("Module.instantiateWasm callback failed with error: "+o),!1}return function(){return T||typeof WebAssembly.instantiateStreaming!="function"||$t()||ee.startsWith("file://")||$||typeof fetch!="function"?n(t):fetch(ee,{credentials:"same-origin"}).then(function(o){return WebAssembly.instantiateStreaming(o,r).then(t,function(f){return ie("wasm streaming compile failed: "+f),ie("falling back to ArrayBuffer instantiation"),n(t)})})}(),{}})(),i.___wasm_call_ctors=function(){return(i.___wasm_call_ctors=i.asm.J).apply(null,arguments)},i._sqlite3_free=function(){return(i._sqlite3_free=i.asm.K).apply(null,arguments)},i._sqlite3_value_double=function(){return(i._sqlite3_value_double=i.asm.L).apply(null,arguments)},i._sqlite3_value_text=function(){return(i._sqlite3_value_text=i.asm.M).apply(null,arguments)};var Mn=i.___errno_location=function(){return(Mn=i.___errno_location=i.asm.N).apply(null,arguments)};i._sqlite3_prepare_v2=function(){return(i._sqlite3_prepare_v2=i.asm.O).apply(null,arguments)},i._sqlite3_step=function(){return(i._sqlite3_step=i.asm.P).apply(null,arguments)},i._sqlite3_finalize=function(){return(i._sqlite3_finalize=i.asm.Q).apply(null,arguments)},i._sqlite3_reset=function(){return(i._sqlite3_reset=i.asm.R).apply(null,arguments)},i._sqlite3_value_int=function(){return(i._sqlite3_value_int=i.asm.S).apply(null,arguments)},i._sqlite3_clear_bindings=function(){return(i._sqlite3_clear_bindings=i.asm.T).apply(null,arguments)},i._sqlite3_value_blob=function(){return(i._sqlite3_value_blob=i.asm.U).apply(null,arguments)},i._sqlite3_value_bytes=function(){return(i._sqlite3_value_bytes=i.asm.V).apply(null,arguments)},i._sqlite3_value_type=function(){return(i._sqlite3_value_type=i.asm.W).apply(null,arguments)},i._sqlite3_result_blob=function(){return(i._sqlite3_result_blob=i.asm.X).apply(null,arguments)},i._sqlite3_result_double=function(){return(i._sqlite3_result_double=i.asm.Y).apply(null,arguments)},i._sqlite3_result_error=function(){return(i._sqlite3_result_error=i.asm.Z).apply(null,arguments)},i._sqlite3_result_int=function(){return(i._sqlite3_result_int=i.asm._).apply(null,arguments)},i._sqlite3_result_int64=function(){return(i._sqlite3_result_int64=i.asm.$).apply(null,arguments)},i._sqlite3_result_null=function(){return(i._sqlite3_result_null=i.asm.aa).apply(null,arguments)},i._sqlite3_result_text=function(){return(i._sqlite3_result_text=i.asm.ba).apply(null,arguments)},i._sqlite3_sql=function(){return(i._sqlite3_sql=i.asm.ca).apply(null,arguments)},i._sqlite3_aggregate_context=function(){return(i._sqlite3_aggregate_context=i.asm.da).apply(null,arguments)},i._sqlite3_column_count=function(){return(i._sqlite3_column_count=i.asm.ea).apply(null,arguments)},i._sqlite3_data_count=function(){return(i._sqlite3_data_count=i.asm.fa).apply(null,arguments)},i._sqlite3_column_blob=function(){return(i._sqlite3_column_blob=i.asm.ga).apply(null,arguments)},i._sqlite3_column_bytes=function(){return(i._sqlite3_column_bytes=i.asm.ha).apply(null,arguments)},i._sqlite3_column_double=function(){return(i._sqlite3_column_double=i.asm.ia).apply(null,arguments)},i._sqlite3_column_text=function(){return(i._sqlite3_column_text=i.asm.ja).apply(null,arguments)},i._sqlite3_column_type=function(){return(i._sqlite3_column_type=i.asm.ka).apply(null,arguments)},i._sqlite3_column_name=function(){return(i._sqlite3_column_name=i.asm.la).apply(null,arguments)},i._sqlite3_bind_blob=function(){return(i._sqlite3_bind_blob=i.asm.ma).apply(null,arguments)},i._sqlite3_bind_double=function(){return(i._sqlite3_bind_double=i.asm.na).apply(null,arguments)},i._sqlite3_bind_int=function(){return(i._sqlite3_bind_int=i.asm.oa).apply(null,arguments)},i._sqlite3_bind_text=function(){return(i._sqlite3_bind_text=i.asm.pa).apply(null,arguments)},i._sqlite3_bind_parameter_index=function(){return(i._sqlite3_bind_parameter_index=i.asm.qa).apply(null,arguments)},i._sqlite3_normalized_sql=function(){return(i._sqlite3_normalized_sql=i.asm.ra).apply(null,arguments)},i._sqlite3_errmsg=function(){return(i._sqlite3_errmsg=i.asm.sa).apply(null,arguments)},i._sqlite3_exec=function(){return(i._sqlite3_exec=i.asm.ta).apply(null,arguments)},i._sqlite3_changes=function(){return(i._sqlite3_changes=i.asm.ua).apply(null,arguments)},i._sqlite3_close_v2=function(){return(i._sqlite3_close_v2=i.asm.va).apply(null,arguments)},i._sqlite3_create_function_v2=function(){return(i._sqlite3_create_function_v2=i.asm.wa).apply(null,arguments)},i._sqlite3_open=function(){return(i._sqlite3_open=i.asm.xa).apply(null,arguments)};var ot=i._malloc=function(){return(ot=i._malloc=i.asm.ya).apply(null,arguments)},st=i._free=function(){return(st=i._free=i.asm.za).apply(null,arguments)};i._RegisterExtensionFunctions=function(){return(i._RegisterExtensionFunctions=i.asm.Ba).apply(null,arguments)};var Sn=i._emscripten_builtin_memalign=function(){return(Sn=i._emscripten_builtin_memalign=i.asm.Ca).apply(null,arguments)},Fe=i.stackSave=function(){return(Fe=i.stackSave=i.asm.Da).apply(null,arguments)},ze=i.stackRestore=function(){return(ze=i.stackRestore=i.asm.Ea).apply(null,arguments)},ge=i.stackAlloc=function(){return(ge=i.stackAlloc=i.asm.Fa).apply(null,arguments)};i.UTF8ToString=K,i.stackAlloc=ge,i.stackSave=Fe,i.stackRestore=ze,i.cwrap=function(e,t,n,r){n=n||[];var o=n.every(f=>f==="number"||f==="boolean");return t!=="string"&&o&&!r?i["_"+e]:function(){return ur(e,t,n,arguments)}};var ut;je=function e(){ut||On(),ut||(je=e)};function On(){function e(){if(!ut&&(ut=!0,i.calledRun=!0,!W)){if(i.noFSInit||bn||(bn=!0,_n(),i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?De("stdin",i.stdin):Ot("/dev/tty","/dev/stdin"),i.stdout?De("stdout",null,i.stdout):Ot("/dev/tty","/dev/stdout"),i.stderr?De("stderr",null,i.stderr):Ot("/dev/tty1","/dev/stderr"),Re("/dev/stdin",0),Re("/dev/stdout",1),Re("/dev/stderr",1)),tn=!1,gt(Bt),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for(typeof i.postRun=="function"&&(i.postRun=[i.postRun]);i.postRun.length;){var t=i.postRun.shift();Kt.unshift(t)}gt(Kt)}}if(!(0'),si=Ft("
"),ui=Ft("
");function Gt(s,l,...a){const h=s();if(!h)return[];const c=h.exec(l,a)[0];return c.values.map(y=>{const _=new Map;for(let w=0;w(()=>{const l=oi();return Ke(l,He(Bn,{get each(){return s.data.tokens},children:(a,h)=>{const c=s.data.tokens[h()+1],y=c&&!a.surface_form.match(/['\-]$/)&&!c.surface_form.startsWith("##")&&!c.surface_form.match(/[',.?¿"\-]/);return[He(li,{data:a}),He($r,{when:y,children:" "})]}})),l})(),li=s=>{const l=s.data,a=l.annotations.filter(c=>c.type=="language")[0].value,h=l.annotations.filter(c=>c.type=="pos")[0].value;return(()=>{const c=si(),y=c.firstChild;return c.classList.toggle("english",a=="eng"),c.classList.toggle("spanish",a=="spa"),Ke(c,()=>l.surface_form.replace("##",""),y),Ke(y,h),c})()},fi=()=>{const[s]=Dr(async()=>{const a=ni({locateFile:()=>ii}),h=fetch(ri).then(_=>_.arrayBuffer()),[c,y]=await Promise.all([a,h]);return new c.Database(new Uint8Array(y))}),l=()=>{const a=Gt(s,` + SELECT DISTINCT s.id, s.start_ms, s.end_ms, d.name as source_name + FROM Annotations AS a + JOIN AnnotationTypes AS at ON a.annotation_type_id = at.id + JOIN Tokens AS t ON a.token_id = t.id + JOIN Segments AS s ON t.segment_id = s.id + JOIN DataSources AS d ON s.data_source_id = d.id + WHERE at.name = 'switch'; + `),h="?,".repeat(a.length).slice(0,-1),c=a.map(i=>i.get("id")),y=Gt(s,` + SELECT segment_id, id, surface_form + FROM Tokens + WHERE segment_id IN (${h}) + ORDER BY segment_id, token_index; + `,...c),_=Gt(s,` + SELECT t.id as token_id, at.name as type, a.value + FROM Tokens as t + JOIN Annotations AS a ON a.token_id = t.id + JOIN AnnotationTypes AS at ON a.annotation_type_id = at.id + WHERE t.segment_id IN (${h}) + ORDER BY t.segment_id, t.token_index, at.name; + `,...c),w=new Map;for(let i=0;i{const a=ui();return Ke(a,He(Bn,{get each(){return l()},children:h=>He(ai,{data:h})})),a})()},ci=document.getElementById("root");Vr(()=>He(fi,{}),ci); diff --git a/ui/dist/assets/sql-wasm-18fc45ef.wasm b/ui/dist/assets/sql-wasm-18fc45ef.wasm new file mode 100644 index 0000000..eb0f604 Binary files /dev/null and b/ui/dist/assets/sql-wasm-18fc45ef.wasm differ diff --git a/ui/dist/assets/test-c120ab13.db b/ui/dist/assets/test-c120ab13.db new file mode 100644 index 0000000..4ba192c Binary files /dev/null and b/ui/dist/assets/test-c120ab13.db differ diff --git a/ui/dist/es-coco-logo.svg b/ui/dist/es-coco-logo.svg new file mode 100644 index 0000000..7b48c33 --- /dev/null +++ b/ui/dist/es-coco-logo.svg @@ -0,0 +1,70 @@ + + + + diff --git a/ui/dist/index.html b/ui/dist/index.html new file mode 100644 index 0000000..7026d96 --- /dev/null +++ b/ui/dist/index.html @@ -0,0 +1,18 @@ + + + + + + + + ES COCO + + + + + +
+ + + + diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 6087908..b03c7a4 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -1,14 +1,10 @@ -import { For, createSignal, Component, Show } from "solid-js"; +import { For, Component, Show, createResource, Resource } from "solid-js"; import initSqlJs, { Database } from "sql.js"; import dbUrl from "../../data/test.db?url"; import sqlJsWasm from "../node_modules/sql.js/dist/sql-wasm.wasm?url"; import "./App.css"; -const sqlPromise = initSqlJs({ locateFile: () => sqlJsWasm }); -const dataPromise = fetch(dbUrl).then((res) => res.arrayBuffer()); -const [SQL, buf] = await Promise.all([sqlPromise, dataPromise]); -const db = new SQL.Database(new Uint8Array(buf)); interface Segment { id: number; @@ -28,11 +24,15 @@ interface Annotation { } function queryToMaps( - db: Database, + db: Resource, query: string, ...params: any[] ): Map[] { - const result = db.exec(query, params)[0]; + const connection = db(); + if (!connection) { + return []; + } + const result = connection.exec(query, params)[0]; return result.values.map((values) => { const m = new Map(); for (let i = 0; i < result.columns.length; i++) { @@ -77,9 +77,13 @@ const Token: Component<{ data: Token }> = (props) => { }; const App: Component = () => { - const [query, setQuery] = createSignal(""); + const [db] = createResource(async () => { + const sqlPromise = initSqlJs({ locateFile: () => sqlJsWasm }); + const dataPromise = fetch(dbUrl).then((res) => res.arrayBuffer()); + const [SQL, buf] = await Promise.all([sqlPromise, dataPromise]); + return new SQL.Database(new Uint8Array(buf)); + }) const segments = () => { - query(); const segments = queryToMaps( db, `