Spaces:
Running
Running
new build
Browse files- build/_app/immutable/chunks/1-459cbcc3.js +0 -1
- build/_app/immutable/chunks/1-b2f5ac62.js +1 -0
- build/_app/immutable/chunks/2-32bdb457.js +0 -1
- build/_app/immutable/chunks/2-e4a42749.js +1 -0
- build/_app/immutable/chunks/{singletons-45670e1e.js β singletons-5fe7a32a.js} +1 -1
- build/_app/immutable/components/{error.svelte-429e55bf.js β error.svelte-69a66351.js} +1 -1
- build/_app/immutable/components/pages/_page.svelte-24e2c110.js +0 -3
- build/_app/immutable/components/pages/_page.svelte-eba5c00f.js +37 -0
- build/_app/immutable/{start-04edcb44.js β start-8d34885d.js} +1 -1
- build/_app/version.json +1 -1
- build/index.html +27 -13
- build/vite-manifest.json +10 -10
- src/routes/+page.svelte +26 -19
- tailwind.config.cjs +2 -2
build/_app/immutable/chunks/1-459cbcc3.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{default as r}from"../components/error.svelte-429e55bf.js";import"./index-c0a82f06.js";import"./singletons-45670e1e.js";export{r as component};
|
|
|
|
build/_app/immutable/chunks/1-b2f5ac62.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{default as r}from"../components/error.svelte-69a66351.js";import"./index-c0a82f06.js";import"./singletons-5fe7a32a.js";export{r as component};
|
build/_app/immutable/chunks/2-32bdb457.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
import{default as m}from"../components/pages/_page.svelte-24e2c110.js";import"./index-c0a82f06.js";export{m as component};
|
|
|
|
build/_app/immutable/chunks/2-e4a42749.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{default as m}from"../components/pages/_page.svelte-eba5c00f.js";import"./index-c0a82f06.js";export{m as component};
|
build/_app/immutable/chunks/{singletons-45670e1e.js β singletons-5fe7a32a.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{A as l,s as g}from"./index-c0a82f06.js";const u=[];function b(e,s=l){let t;const a=new Set;function i(n){if(g(e,n)&&(e=n,t)){const c=!u.length;for(const r of a)r[1](),u.push(r,e);if(c){for(let r=0;r<u.length;r+=2)u[r][0](u[r+1]);u.length=0}}}function f(n){i(n(e))}function o(n,c=l){const r=[n,c];return a.add(r),a.size===1&&(t=s(i)||l),n(e),()=>{a.delete(r),a.size===0&&(t(),t=null)}}return{set:i,update:f,subscribe:o}}let d="",p="";function U(e){d=e.base,p=e.assets||d}function w(e){let s=e.baseURI;if(!s){const t=e.getElementsByTagName("base");s=t.length?t[0].href:e.URL}return s}function R(){return{x:pageXOffset,y:pageYOffset}}function y(e){return e.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function T(e){return e instanceof SVGAElement?new URL(e.href.baseVal,document.baseURI):new URL(e.href)}function h(e){const s=b(e);let t=!0;function a(){t=!0,s.update(o=>o)}function i(o){t=!1,s.set(o)}function f(o){let n;return s.subscribe(c=>{(n===void 0||t&&c!==n)&&o(n=c)})}return{notify:a,set:i,subscribe:f}}function _(){const{set:e,subscribe:s}=b(!1);let t;async function a(){clearTimeout(t);const i=await fetch(`${p}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(i.ok){const{version:f}=await i.json(),o=f!=="
|
|
|
1 |
+
import{A as l,s as g}from"./index-c0a82f06.js";const u=[];function b(e,s=l){let t;const a=new Set;function i(n){if(g(e,n)&&(e=n,t)){const c=!u.length;for(const r of a)r[1](),u.push(r,e);if(c){for(let r=0;r<u.length;r+=2)u[r][0](u[r+1]);u.length=0}}}function f(n){i(n(e))}function o(n,c=l){const r=[n,c];return a.add(r),a.size===1&&(t=s(i)||l),n(e),()=>{a.delete(r),a.size===0&&(t(),t=null)}}return{set:i,update:f,subscribe:o}}let d="",p="";function U(e){d=e.base,p=e.assets||d}function w(e){let s=e.baseURI;if(!s){const t=e.getElementsByTagName("base");s=t.length?t[0].href:e.URL}return s}function R(){return{x:pageXOffset,y:pageYOffset}}function y(e){return e.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function T(e){return e instanceof SVGAElement?new URL(e.href.baseVal,document.baseURI):new URL(e.href)}function h(e){const s=b(e);let t=!0;function a(){t=!0,s.update(o=>o)}function i(o){t=!1,s.set(o)}function f(o){let n;return s.subscribe(c=>{(n===void 0||t&&c!==n)&&o(n=c)})}return{notify:a,set:i,subscribe:f}}function _(){const{set:e,subscribe:s}=b(!1);let t;async function a(){clearTimeout(t);const i=await fetch(`${p}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(i.ok){const{version:f}=await i.json(),o=f!=="1661533284595";return o&&(e(!0),clearTimeout(t)),o}else throw new Error(`Version check failed: ${i.status}`)}return{subscribe:s,check:a}}function k(e){e.client}const q={url:h({}),page:h({}),navigating:b(null),updated:_()};export{T as a,R as b,U as c,y as f,w as g,k as i,q as s};
|
build/_app/immutable/components/{error.svelte-429e55bf.js β error.svelte-69a66351.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{S as A,i as C,s as F,k as v,q as k,a as h,e as q,l as g,m as E,r as $,h as p,c as R,b as u,F as P,u as S,A as w,G}from"../chunks/index-c0a82f06.js";import{s as H}from"../chunks/singletons-
|
|
|
1 |
+
import{S as A,i as C,s as F,k as v,q as k,a as h,e as q,l as g,m as E,r as $,h as p,c as R,b as u,F as P,u as S,A as w,G}from"../chunks/index-c0a82f06.js";import{s as H}from"../chunks/singletons-5fe7a32a.js";const O=()=>{const t=H,s={page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated};return Object.defineProperties(s,{preloading:{get(){return console.error("stores.preloading is deprecated; use stores.navigating instead"),{subscribe:t.navigating.subscribe}},enumerable:!1},session:{get(){return B(),{}},enumerable:!1}}),s},z={subscribe(t){return O().page.subscribe(t)}};function B(){throw new Error("stores.session is no longer available. See https://github.com/sveltejs/kit/discussions/5883")}function N(t){let s,i=t[0].error.frame+"",o;return{c(){s=v("pre"),o=k(i)},l(r){s=g(r,"PRE",{});var a=E(s);o=$(a,i),a.forEach(p)},m(r,a){u(r,s,a),P(s,o)},p(r,a){a&1&&i!==(i=r[0].error.frame+"")&&S(o,i)},d(r){r&&p(s)}}}function y(t){let s,i=t[0].error.stack+"",o;return{c(){s=v("pre"),o=k(i)},l(r){s=g(r,"PRE",{});var a=E(s);o=$(a,i),a.forEach(p)},m(r,a){u(r,s,a),P(s,o)},p(r,a){a&1&&i!==(i=r[0].error.stack+"")&&S(o,i)},d(r){r&&p(s)}}}function D(t){let s,i=t[0].status+"",o,r,a,b=t[0].error.message+"",_,d,c,m,l=t[0].error.frame&&N(t),n=t[0].error.stack&&y(t);return{c(){s=v("h1"),o=k(i),r=h(),a=v("pre"),_=k(b),d=h(),l&&l.c(),c=h(),n&&n.c(),m=q()},l(e){s=g(e,"H1",{});var f=E(s);o=$(f,i),f.forEach(p),r=R(e),a=g(e,"PRE",{});var j=E(a);_=$(j,b),j.forEach(p),d=R(e),l&&l.l(e),c=R(e),n&&n.l(e),m=q()},m(e,f){u(e,s,f),P(s,o),u(e,r,f),u(e,a,f),P(a,_),u(e,d,f),l&&l.m(e,f),u(e,c,f),n&&n.m(e,f),u(e,m,f)},p(e,[f]){f&1&&i!==(i=e[0].status+"")&&S(o,i),f&1&&b!==(b=e[0].error.message+"")&&S(_,b),e[0].error.frame?l?l.p(e,f):(l=N(e),l.c(),l.m(c.parentNode,c)):l&&(l.d(1),l=null),e[0].error.stack?n?n.p(e,f):(n=y(e),n.c(),n.m(m.parentNode,m)):n&&(n.d(1),n=null)},i:w,o:w,d(e){e&&p(s),e&&p(r),e&&p(a),e&&p(d),l&&l.d(e),e&&p(c),n&&n.d(e),e&&p(m)}}}function I(t,s,i){let o;return G(t,z,r=>i(0,o=r)),[o]}class L extends A{constructor(s){super(),C(this,s,I,D,F,{})}}export{L as default};
|
build/_app/immutable/components/pages/_page.svelte-24e2c110.js
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
import{S as It,i as Dt,s as Ct,k as r,a as L,q as u,H as xt,l as s,m as i,h as n,c as j,r as h,n as a,I as Ze,p as kt,F as e,b as Ae,J as gt,K as ue,L as At,M as St,A as wt,N as Pt,o as Tt,z as Lt,O as jt,P as $e}from"../../chunks/index-c0a82f06.js";const{document:Ie,window:bt}=jt;function Bt(f){let A,d,S,D,G,C,P,g,B,M,J,T,c,v,U,p,x,m,re,N,he,Q,pe,H,me,X,z,O,V,ge,se,ie,b,R,t,o,l,y,_,E,k,we,K,q,De,Z,Se,Pe,$,Te,Le,le,je,ee,Be,Me,be,Ne,Re,W,Ve,te,qe,Fe,ae,Oe,Ue,ve,He,ze,Y,Ke,ne,We,Ye,oe,Ge,Je,tt;return{c(){A=r("link"),d=r("script"),D=r("script"),C=r("script"),g=L(),B=r("div"),M=r("canvas"),T=L(),c=r("div"),v=r("div"),U=L(),p=r("div"),x=r("div"),m=r("input"),re=L(),N=r("button"),he=u("diffuse the f rest"),pe=L(),H=r("p"),me=u("pro tip: upload img by dropping on the canvas"),X=L(),z=r("div"),O=r("label"),V=r("input"),ge=u(`
|
2 |
-
upload img`),ie=L(),b=r("article"),R=r("div"),t=r("p"),o=u("Stable Diffusion model by "),l=r("a"),y=u("CompVis"),_=u(" and "),E=r("a"),k=u("Stability AI"),we=u(" - Demo by \u{1F917} Hugging Face"),K=L(),q=r("p"),De=u("Powered by "),Z=r("a"),Se=u("\u{1F917} Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch"),Pe=u(". Based on "),$=r("a"),Te=u("notebook by @psuraj28"),Le=L(),le=r("p"),je=u("Check out "),ee=r("a"),Be=u("Stable Diffusion Gradio demo"),Me=L(),be=r("h3"),Ne=u("LICENSE"),Re=L(),W=r("p"),Ve=u("The model is licensed with a "),te=r("a"),qe=u("CreativeML Open RAIL-M"),Fe=u(" license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please "),ae=r("a"),Oe=u("read the license"),Ue=L(),ve=r("h3"),He=u("Biases and content acknowledgment"),ze=L(),Y=r("p"),Ke=u("Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the "),ne=r("a"),We=u("LAION-5B dataset"),Ye=u(", which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the "),oe=r("a"),Ge=u("model card"),this.h()},l(w){const I=xt('[data-svelte="svelte-bw39ln"]',Ie.head);A=s(I,"LINK",{href:!0,rel:!0}),d=s(I,"SCRIPT",{src:!0});var yt=i(d);yt.forEach(n),D=s(I,"SCRIPT",{src:!0});var _t=i(D);_t.forEach(n),C=s(I,"SCRIPT",{src:!0});var Et=i(C);Et.forEach(n),I.forEach(n),g=j(w),B=s(w,"DIV",{class:!0});var Ce=i(B);M=s(Ce,"CANVAS",{class:!0}),i(M).forEach(n),T=j(Ce),c=s(Ce,"DIV",{class:!0});var xe=i(c);v=s(xe,"DIV",{id:!0}),i(v).forEach(n),U=j(xe),p=s(xe,"DIV",{});var ce=i(p);x=s(ce,"DIV",{class:!0});var ke=i(x);m=s(ke,"INPUT",{type:!0,class:!0,placeholder:!0,maxlength:!0}),re=j(ke),N=s(ke,"BUTTON",{class:!0});var at=i(N);he=h(at,"diffuse the f rest"),at.forEach(n),ke.forEach(n),pe=j(ce),H=s(ce,"P",{class:!0});var nt=i(H);me=h(nt,"pro tip: upload img by dropping on the canvas"),nt.forEach(n),X=j(ce),z=s(ce,"DIV",{class:!0});var ot=i(z);O=s(ot,"LABEL",{class:!0});var Qe=i(O);V=s(Qe,"INPUT",{accept:!0,style:!0,type:!0}),ge=h(Qe,`
|
3 |
-
upload img`),Qe.forEach(n),ot.forEach(n),ce.forEach(n),xe.forEach(n),Ce.forEach(n),ie=j(w),b=s(w,"ARTICLE",{class:!0});var F=i(b);R=s(F,"DIV",{class:!0});var de=i(R);t=s(de,"P",{});var fe=i(t);o=h(fe,"Stable Diffusion model by "),l=s(fe,"A",{href:!0,rel:!0});var rt=i(l);y=h(rt,"CompVis"),rt.forEach(n),_=h(fe," and "),E=s(fe,"A",{href:!0,rel:!0});var st=i(E);k=h(st,"Stability AI"),st.forEach(n),we=h(fe," - Demo by \u{1F917} Hugging Face"),fe.forEach(n),K=j(de),q=s(de,"P",{});var ye=i(q);De=h(ye,"Powered by "),Z=s(ye,"A",{href:!0,rel:!0});var it=i(Z);Se=h(it,"\u{1F917} Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch"),it.forEach(n),Pe=h(ye,". Based on "),$=s(ye,"A",{href:!0,rel:!0});var lt=i($);Te=h(lt,"notebook by @psuraj28"),lt.forEach(n),ye.forEach(n),Le=j(de),le=s(de,"P",{});var Xe=i(le);je=h(Xe,"Check out "),ee=s(Xe,"A",{href:!0,rel:!0});var ct=i(ee);Be=h(ct,"Stable Diffusion Gradio demo"),ct.forEach(n),Xe.forEach(n),de.forEach(n),Me=j(F),be=s(F,"H3",{});var dt=i(be);Ne=h(dt,"LICENSE"),dt.forEach(n),Re=j(F),W=s(F,"P",{});var _e=i(W);Ve=h(_e,"The model is licensed with a "),te=s(_e,"A",{href:!0,rel:!0});var ft=i(te);qe=h(ft,"CreativeML Open RAIL-M"),ft.forEach(n),Fe=h(_e," license. The authors claim no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in this license. The license forbids you from sharing any content that violates any laws, produce any harm to a person, disseminate any personal information that would be meant for harm, spread misinformation and target vulnerable groups. For the full list of restrictions please "),ae=s(_e,"A",{href:!0,rel:!0});var ut=i(ae);Oe=h(ut,"read the license"),ut.forEach(n),_e.forEach(n),Ue=j(F),ve=s(F,"H3",{});var ht=i(ve);He=h(ht,"Biases and content acknowledgment"),ht.forEach(n),ze=j(F),Y=s(F,"P",{});var Ee=i(Y);Ke=h(Ee,"Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the "),ne=s(Ee,"A",{href:!0,rel:!0});var pt=i(ne);We=h(pt,"LAION-5B dataset"),pt.forEach(n),Ye=h(Ee,", which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the "),oe=s(Ee,"A",{href:!0,rel:!0});var mt=i(oe);Ge=h(mt,"model card"),mt.forEach(n),Ee.forEach(n),F.forEach(n),this.h()},h(){a(A,"href","https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.css"),a(A,"rel","stylesheet"),Ze(d.src,S="https://code.jquery.com/jquery-1.12.4.min.js")||a(d,"src",S),Ze(D.src,G="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js")||a(D,"src",G),Ze(C.src,P="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js")||a(C,"src",P),a(M,"class",J="border-[1.2px] desktop:mt-[34px] "+(f[5]?"":"hidden")),a(v,"id","board-container"),a(m,"type","text"),a(m,"class","border-2 py-1"),a(m,"placeholder","Add prompt"),a(m,"maxlength","200"),a(N,"class","bg-blue-500 hover:bg-blue-700 text-white font-bold py-1.5 px-4"),a(x,"class",Q="flex gap-x-2 mt-3 items-center justify-center "+(f[1]?"animate-pulse":"")),a(H,"class","hidden desktop:inline mt-2 opacity-50"),a(V,"accept","image/*"),kt(V,"display","none"),a(V,"type","file"),a(O,"class","inline desktop:hidden border py-1 px-1.5 bg-slate-200 cursor-pointer"),a(z,"class","mt-2"),a(c,"class",se="flex flex-col items-center "+(f[1]?"pointer-events-none":"")),a(B,"class","flex flex-wrap gap-x-4 gap-y-2 justify-center my-8"),a(l,"href","https://huggingface.co/CompVis"),a(l,"rel","nofollow"),a(E,"href","https://huggingface.co/stabilityai"),a(E,"rel","nofollow"),a(Z,"href","https://github.com/huggingface/diffusers"),a(Z,"rel","nofollow"),a($,"href","https://twitter.com/psuraj28/status/1562039265126670339"),a($,"rel","nofollow"),a(ee,"href","https://huggingface.co/spaces/stabilityai/stable-diffusion"),a(ee,"rel","nofollow"),a(R,"class","text-center"),a(te,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),a(te,"rel","nofollow"),a(ae,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),a(ae,"rel","nofollow"),a(ne,"href","https://laion.ai/blog/laion-5b/"),a(ne,"rel","nofollow"),a(oe,"href","https://huggingface.co/CompVis/stable-diffusion-v1-4"),a(oe,"rel","nofollow"),a(b,"class","prose-sm px-4 md:px-8 lg:px-24 mb-8")},m(w,I){e(Ie.head,A),e(Ie.head,d),e(Ie.head,D),e(Ie.head,C),Ae(w,g,I),Ae(w,B,I),e(B,M),f[11](M),e(B,T),e(B,c),e(c,v),f[12](v),e(c,U),e(c,p),e(p,x),e(x,m),gt(m,f[0]),e(x,re),e(x,N),e(N,he),e(p,pe),e(p,H),e(H,me),e(p,X),e(p,z),e(z,O),e(O,V),f[14](V),e(O,ge),Ae(w,ie,I),Ae(w,b,I),e(b,R),e(R,t),e(t,o),e(t,l),e(l,y),e(t,_),e(t,E),e(E,k),e(t,we),e(R,K),e(R,q),e(q,De),e(q,Z),e(Z,Se),e(q,Pe),e(q,$),e($,Te),e(R,Le),e(R,le),e(le,je),e(le,ee),e(ee,Be),e(b,Me),e(b,be),e(be,Ne),e(b,Re),e(b,W),e(W,Ve),e(W,te),e(te,qe),e(W,Fe),e(W,ae),e(ae,Oe),e(b,Ue),e(b,ve),e(ve,He),e(b,ze),e(b,Y),e(Y,Ke),e(Y,ne),e(ne,We),e(Y,Ye),e(Y,oe),e(oe,Ge),Je||(tt=[ue(bt,"drop",At(St(f[8]))),ue(bt,"paste",f[9]),ue(m,"keydown",f[10]),ue(m,"input",f[13]),ue(N,"click",f[6]),ue(V,"change",f[7])],Je=!0)},p(w,I){I[0]&32&&J!==(J="border-[1.2px] desktop:mt-[34px] "+(w[5]?"":"hidden"))&&a(M,"class",J),I[0]&1&&m.value!==w[0]&>(m,w[0]),I[0]&2&&Q!==(Q="flex gap-x-2 mt-3 items-center justify-center "+(w[1]?"animate-pulse":""))&&a(x,"class",Q),I[0]&2&&se!==(se="flex flex-col items-center "+(w[1]?"pointer-events-none":""))&&a(c,"class",se)},i:wt,o:wt,d(w){n(A),n(d),n(D),n(C),w&&n(g),w&&n(B),f[11](null),f[12](null),f[14](null),w&&n(ie),w&&n(b),Je=!1,Pt(tt)}}}const et=500,vt=3e3;function Mt(){window.createImageBitmap=async function(f){return new Promise((A,d)=>{const S=document.createElement("canvas"),D=S.getContext("2d");S.width=f.width,S.height=f.height,D.putImageData(f,0,0);const G=S.toDataURL(),C=document.createElement("img");C.addEventListener("load",()=>{A(C)}),C.src=G})}}function Nt(){const f=document.querySelectorAll("a");for(const A of f)A.target="_blank"}function Rt(f,A,d){let S="",D=!1,G=!1,C,P,g,B,M,J,T,c=400,v,U,p,x=!1,m=[];async function re(){if(!g)return;const t=g.createImageData(P.width,P.height),o=t.data;for(let _=0,E=o.length;_<E;_+=4)o[_]=40*Math.random()*7,o[_+1]=40*Math.random()*7,o[_+2]=40*Math.random()*7,o[_+3]=255;const l=await createImageBitmap(t),y=performance.now()-B;g.globalAlpha=Math.min(y,vt)/vt,g.drawImage(l,0,0,c,c),D&&window.requestAnimationFrame(re)}function N(t){if(!g)return;const o=performance.now()-M;g.globalAlpha=Math.min(o,et)/et,g.drawImage(t,0,0,c,c),o<et&&window.requestAnimationFrame(()=>N(t))}async function he(t){const o=t.toDataURL("png"),y=await(await fetch(o)).blob(),_=new File([y],"canvas shot.png",{type:"image/png"}),E=t.getContext("2d").getImageData(0,0,c,c),k=await createImageBitmap(E);return{imgFile:_,imgBitmap:k}}async function Q(){if(!S)return alert("Please add prompt");if(!P||!g)return;T&&clearInterval(T),d(1,D=!0),d(5,x=!1),me(),B=performance.now(),re();const{imgFile:t,imgBitmap:o}=await he(P),l=new FormData;l.append("prompt",S),l.append("strength","0.1"),l.append("image",t);try{const y=await fetch("https://sdb.pcuenca.net/i2i",{method:"POST",body:l}),_=JSON.parse(await y.text()),{images:E}=_;if(!E.length)return alert("All the results were flagged. Please try again with diffeerent sketch + prompt");m=await Promise.all(E.map(async we=>{const K=new Image;return K.src=`data:image/png;base64, ${we}`,await new Promise((q,De)=>{K.onload=()=>q(K)}),K})),d(5,x=!0);let k=0;M=performance.now(),N(m[k%m.length]),J=()=>{T&&clearInterval(T),M=performance.now(),k=k+1,N(m[k%m.length])},T=setInterval(()=>{k=k+1,M=performance.now(),N(m[k%m.length])},2500),G||pe()}catch(y){console.error(y),alert("Error happened, queue might be full. Please try again in a bit :)")}finally{d(1,D=!1)}}function pe(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u23EF",o.onclick=J,t.append(o);const l=document.querySelector(".drawing-board-controls");l&&m.length>1&&(l.appendChild(t),G=!0,d(2,v.onclick=()=>{T&&clearInterval(T)},v))}function H(){const t=document.createElement("div");t.className="drawing-board-control";const o=document.createElement("button");o.innerHTML="\u{1F9F9}",o.onclick=()=>{g==null||g.clearRect(0,0,c,c),m=[],d(5,x=!1)},t.append(o);const l=document.querySelector(".drawing-board-controls");l&&l.appendChild(t)}function me(){const t=p.getContext("2d");d(4,p.width=P.width,p),d(4,p.height=P.height,p),t.drawImage(P,0,0)}async function X(t){T&&clearInterval(T);const o=new Image;o.src=URL.createObjectURL(t),await new Promise((_,E)=>{o.onload=()=>_(o)});const{width:l,height:y}=o;g==null||g.drawImage(o,0,0,l,y,0,0,c,c)}function z(){var o;const t=(o=U.files)==null?void 0:o[0];t&&X(t)}function O(t){var y;if(!((y=t.dataTransfer)!=null&&y.files))return;t.preventDefault();const l=Array.from(t.dataTransfer.files)[0];X(l)}function V(t){if(!t.clipboardData)return;const o=Array.from(t.clipboardData.files);if(o.length===0)return;t.preventDefault();const l=o[0];X(l)}function ge(t){t.code==="Enter"&&(t.preventDefault(),Q())}Tt(async()=>{typeof createImageBitmap>"u"&&Mt();const{innerWidth:t}=window;c=Math.min(c,Math.floor(t*.75)),d(2,v.style.width=`${c}px`,v),d(2,v.style.height=`${c}px`,v),d(4,p.style.width=`${c}px`,p),d(4,p.style.height=`${c}px`,p),await Lt(),C=new window.DrawingBoard.Board("board-container",{size:10,controls:["Color",{Size:{type:"dropdown"}},{DrawingMode:{filler:!1}}],webStorage:!1,enlargeYourContainer:!0}),P=C.canvas,g=P.getContext("2d"),P.ondragover=function(o){return o.preventDefault(),!1},H(),Nt()});function se(t){$e[t?"unshift":"push"](()=>{p=t,d(4,p)})}function ie(t){$e[t?"unshift":"push"](()=>{v=t,d(2,v)})}function b(){S=this.value,d(0,S)}function R(t){$e[t?"unshift":"push"](()=>{U=t,d(3,U)})}return[S,D,v,U,p,x,Q,z,O,V,ge,se,ie,b,R]}class qt extends It{constructor(A){super(),Dt(this,A,Rt,Bt,Ct,{},null,[-1,-1])}}export{qt as default};
|
|
|
|
|
|
|
|
build/_app/immutable/components/pages/_page.svelte-eba5c00f.js
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import{S as Ue,i as ze,s as He,k as c,a as q,q as A,H as Ke,l as d,m as p,h as s,c as F,r as L,n,I as Ie,p as We,F as t,b as he,J as Ve,K as se,L as Ye,M as Ge,A as Me,N as Je,o as Qe,z as Xe,O as Ze,P as Ee}from"../../chunks/index-c0a82f06.js";const{document:de,window:Ne}=Ze;function $e(l){let C,r,x,_,Y,I,k,h,j,P,G,S,o,b,O,u,E,f,$,B,oe,J,re,U,ie,Q,z,M,V,le,ee,te,T,H,e,a,i,w,v,m,D,N,K,ce,W,me,ge,X,be,we,Z,ve,ye,Ce;return{c(){C=c("link"),r=c("script"),_=c("script"),I=c("script"),h=q(),j=c("div"),P=c("canvas"),S=q(),o=c("div"),b=c("div"),O=q(),u=c("div"),E=c("div"),f=c("input"),$=q(),B=c("button"),oe=A("diffuse the f rest"),re=q(),U=c("p"),ie=A("pro tip: upload img by dropping on the canvas"),Q=q(),z=c("div"),M=c("label"),V=c("input"),le=A(`
|
2 |
+
upload img`),te=q(),T=c("article"),H=c("div"),e=A(`Stable Diffusion model by [CompVis](https://huggingface.co/CompVis) and [Stability
|
3 |
+
AI](https://huggingface.co/stabilityai) - Demo by \u{1F917} Hugging Face Powered by [\u{1F917} Diffusers:
|
4 |
+
State-of-the-art diffusion models for image and audio generation in
|
5 |
+
PyTorch](https://github.com/huggingface/diffusers). Based on [notebook by
|
6 |
+
@psuraj28](https://twitter.com/psuraj28/status/1562039265126670339) Check out [Stable Diffusion
|
7 |
+
Gradio demo](https://huggingface.co/spaces/stabilityai/stable-diffusion)`),a=q(),i=c("h3"),w=A("LICENSE The model is licensed with a [CreativeML Open"),v=q(),m=c("p"),D=A("RAIL-M]("),N=c("a"),K=A("https://huggingface.co/spaces/CompVis/stable-diffusion-license"),ce=A(`) license. The authors claim
|
8 |
+
no rights on the outputs you generate, you are free to use them and are accountable for their use
|
9 |
+
which must not go against the provisions set in this license. The license forbids you from sharing
|
10 |
+
any content that violates any laws, produce any harm to a person, disseminate any personal
|
11 |
+
information that would be meant for harm, spread misinformation and target vulnerable groups. For
|
12 |
+
the full list of restrictions please `),W=c("a"),me=A(`read the
|
13 |
+
license`),ge=A(` ### Biases and content
|
14 |
+
acknowledgment Despite how impressive being able to turn text into image is, beware to the fact
|
15 |
+
that this model may output content that reinforces or exacerbates societal biases, as well as
|
16 |
+
realistic faces, pornography and violence. The model was trained on the `),X=c("a"),be=A(`LAION-5B
|
17 |
+
dataset`),we=A(`, which scraped non-curated image-text-pairs from the
|
18 |
+
internet (the exception being the removal of illegal content) and is meant for research purposes.
|
19 |
+
You can read more in the `),Z=c("a"),ve=A("model card"),this.h()},l(g){const y=Ke('[data-svelte="svelte-bw39ln"]',de.head);C=d(y,"LINK",{href:!0,rel:!0}),r=d(y,"SCRIPT",{src:!0});var qe=p(r);qe.forEach(s),_=d(y,"SCRIPT",{src:!0});var Fe=p(_);Fe.forEach(s),I=d(y,"SCRIPT",{src:!0});var Oe=p(I);Oe.forEach(s),y.forEach(s),h=F(g),j=d(g,"DIV",{class:!0});var ue=p(j);P=d(ue,"CANVAS",{class:!0}),p(P).forEach(s),S=F(ue),o=d(ue,"DIV",{class:!0});var fe=p(o);b=d(fe,"DIV",{id:!0}),p(b).forEach(s),O=F(fe),u=d(fe,"DIV",{});var ae=p(u);E=d(ae,"DIV",{class:!0});var pe=p(E);f=d(pe,"INPUT",{type:!0,class:!0,placeholder:!0,maxlength:!0}),$=F(pe),B=d(pe,"BUTTON",{class:!0});var xe=p(B);oe=L(xe,"diffuse the f rest"),xe.forEach(s),pe.forEach(s),re=F(ae),U=d(ae,"P",{class:!0});var ke=p(U);ie=L(ke,"pro tip: upload img by dropping on the canvas"),ke.forEach(s),Q=F(ae),z=d(ae,"DIV",{class:!0});var Se=p(z);M=d(Se,"LABEL",{class:!0});var _e=p(M);V=d(_e,"INPUT",{accept:!0,style:!0,type:!0}),le=L(_e,`
|
20 |
+
upload img`),_e.forEach(s),Se.forEach(s),ae.forEach(s),fe.forEach(s),ue.forEach(s),te=F(g),T=d(g,"ARTICLE",{class:!0});var ne=p(T);H=d(ne,"DIV",{class:!0});var Te=p(H);e=L(Te,`Stable Diffusion model by [CompVis](https://huggingface.co/CompVis) and [Stability
|
21 |
+
AI](https://huggingface.co/stabilityai) - Demo by \u{1F917} Hugging Face Powered by [\u{1F917} Diffusers:
|
22 |
+
State-of-the-art diffusion models for image and audio generation in
|
23 |
+
PyTorch](https://github.com/huggingface/diffusers). Based on [notebook by
|
24 |
+
@psuraj28](https://twitter.com/psuraj28/status/1562039265126670339) Check out [Stable Diffusion
|
25 |
+
Gradio demo](https://huggingface.co/spaces/stabilityai/stable-diffusion)`),Te.forEach(s),a=F(ne),i=d(ne,"H3",{});var Ae=p(i);w=L(Ae,"LICENSE The model is licensed with a [CreativeML Open"),Ae.forEach(s),v=F(ne),m=d(ne,"P",{});var R=p(m);D=L(R,"RAIL-M]("),N=d(R,"A",{href:!0,rel:!0});var Le=p(N);K=L(Le,"https://huggingface.co/spaces/CompVis/stable-diffusion-license"),Le.forEach(s),ce=L(R,`) license. The authors claim
|
26 |
+
no rights on the outputs you generate, you are free to use them and are accountable for their use
|
27 |
+
which must not go against the provisions set in this license. The license forbids you from sharing
|
28 |
+
any content that violates any laws, produce any harm to a person, disseminate any personal
|
29 |
+
information that would be meant for harm, spread misinformation and target vulnerable groups. For
|
30 |
+
the full list of restrictions please `),W=d(R,"A",{href:!0,rel:!0});var je=p(W);me=L(je,`read the
|
31 |
+
license`),je.forEach(s),ge=L(R,` ### Biases and content
|
32 |
+
acknowledgment Despite how impressive being able to turn text into image is, beware to the fact
|
33 |
+
that this model may output content that reinforces or exacerbates societal biases, as well as
|
34 |
+
realistic faces, pornography and violence. The model was trained on the `),X=d(R,"A",{href:!0,rel:!0});var Pe=p(X);be=L(Pe,`LAION-5B
|
35 |
+
dataset`),Pe.forEach(s),we=L(R,`, which scraped non-curated image-text-pairs from the
|
36 |
+
internet (the exception being the removal of illegal content) and is meant for research purposes.
|
37 |
+
You can read more in the `),Z=d(R,"A",{href:!0,rel:!0});var Be=p(Z);ve=L(Be,"model card"),Be.forEach(s),R.forEach(s),ne.forEach(s),this.h()},h(){n(C,"href","https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.css"),n(C,"rel","stylesheet"),Ie(r.src,x="https://code.jquery.com/jquery-1.12.4.min.js")||n(r,"src",x),Ie(_.src,Y="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js")||n(_,"src",Y),Ie(I.src,k="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js")||n(I,"src",k),n(P,"class",G="border-[1.2px] desktop:mt-[34px] "+(l[5]?"":"hidden")),n(b,"id","board-container"),n(f,"type","text"),n(f,"class","border-2 py-1"),n(f,"placeholder","Add prompt"),n(f,"maxlength","200"),n(B,"class","bg-blue-500 hover:bg-blue-700 text-white font-bold py-1.5 px-4"),n(E,"class",J="flex gap-x-2 mt-3 items-center justify-center "+(l[1]?"animate-pulse":"")),n(U,"class","hidden desktop:inline mt-2 opacity-50"),n(V,"accept","image/*"),We(V,"display","none"),n(V,"type","file"),n(M,"class","inline desktop:hidden border py-1 px-1.5 bg-slate-200 cursor-pointer"),n(z,"class","mt-2"),n(o,"class",ee="flex flex-col items-center "+(l[1]?"pointer-events-none":"")),n(j,"class","flex flex-wrap gap-x-4 gap-y-2 justify-center my-8"),n(H,"class","text-center"),n(N,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),n(N,"rel","nofollow"),n(W,"href","https://huggingface.co/spaces/CompVis/stable-diffusion-license"),n(W,"rel","nofollow"),n(X,"href","https://laion.ai/blog/laion-5b/"),n(X,"rel","nofollow"),n(Z,"href","https://huggingface.co/CompVis/stable-diffusion-v1-4"),n(Z,"rel","nofollow"),n(T,"class","prose-sm px-4 md:px-8 lg:px-24 mb-8")},m(g,y){t(de.head,C),t(de.head,r),t(de.head,_),t(de.head,I),he(g,h,y),he(g,j,y),t(j,P),l[11](P),t(j,S),t(j,o),t(o,b),l[12](b),t(o,O),t(o,u),t(u,E),t(E,f),Ve(f,l[0]),t(E,$),t(E,B),t(B,oe),t(u,re),t(u,U),t(U,ie),t(u,Q),t(u,z),t(z,M),t(M,V),l[14](V),t(M,le),he(g,te,y),he(g,T,y),t(T,H),t(H,e),t(T,a),t(T,i),t(i,w),t(T,v),t(T,m),t(m,D),t(m,N),t(N,K),t(m,ce),t(m,W),t(W,me),t(m,ge),t(m,X),t(X,be),t(m,we),t(m,Z),t(Z,ve),ye||(Ce=[se(Ne,"drop",Ye(Ge(l[8]))),se(Ne,"paste",l[9]),se(f,"keydown",l[10]),se(f,"input",l[13]),se(B,"click",l[6]),se(V,"change",l[7])],ye=!0)},p(g,y){y[0]&32&&G!==(G="border-[1.2px] desktop:mt-[34px] "+(g[5]?"":"hidden"))&&n(P,"class",G),y[0]&1&&f.value!==g[0]&&Ve(f,g[0]),y[0]&2&&J!==(J="flex gap-x-2 mt-3 items-center justify-center "+(g[1]?"animate-pulse":""))&&n(E,"class",J),y[0]&2&&ee!==(ee="flex flex-col items-center "+(g[1]?"pointer-events-none":""))&&n(o,"class",ee)},i:Me,o:Me,d(g){s(C),s(r),s(_),s(I),g&&s(h),g&&s(j),l[11](null),l[12](null),l[14](null),g&&s(te),g&&s(T),ye=!1,Je(Ce)}}}const De=500,Re=3e3;function et(){window.createImageBitmap=async function(l){return new Promise((C,r)=>{const x=document.createElement("canvas"),_=x.getContext("2d");x.width=l.width,x.height=l.height,_.putImageData(l,0,0);const Y=x.toDataURL(),I=document.createElement("img");I.addEventListener("load",()=>{C(I)}),I.src=Y})}}function tt(){const l=document.querySelectorAll("a");for(const C of l)C.target="_blank"}function at(l,C,r){let x="",_=!1,Y=!1,I,k,h,j,P,G,S,o=400,b,O,u,E=!1,f=[];async function $(){if(!h)return;const e=h.createImageData(k.width,k.height),a=e.data;for(let v=0,m=a.length;v<m;v+=4)a[v]=40*Math.random()*7,a[v+1]=40*Math.random()*7,a[v+2]=40*Math.random()*7,a[v+3]=255;const i=await createImageBitmap(e),w=performance.now()-j;h.globalAlpha=Math.min(w,Re)/Re,h.drawImage(i,0,0,o,o),_&&window.requestAnimationFrame($)}function B(e){if(!h)return;const a=performance.now()-P;h.globalAlpha=Math.min(a,De)/De,h.drawImage(e,0,0,o,o),a<De&&window.requestAnimationFrame(()=>B(e))}async function oe(e){const a=e.toDataURL("png"),w=await(await fetch(a)).blob(),v=new File([w],"canvas shot.png",{type:"image/png"}),m=e.getContext("2d").getImageData(0,0,o,o),D=await createImageBitmap(m);return{imgFile:v,imgBitmap:D}}async function J(){if(!x)return alert("Please add prompt");if(!k||!h)return;S&&clearInterval(S),r(1,_=!0),r(5,E=!1),ie(),j=performance.now(),$();const{imgFile:e,imgBitmap:a}=await oe(k),i=new FormData;i.append("prompt",x),i.append("strength","0.1"),i.append("image",e);try{const w=await fetch("https://sdb.pcuenca.net/i2i",{method:"POST",body:i}),v=JSON.parse(await w.text()),{images:m}=v;if(!m.length)return alert("All the results were flagged. Please try again with diffeerent sketch + prompt");f=await Promise.all(m.map(async N=>{const K=new Image;return K.src=`data:image/png;base64, ${N}`,await new Promise((ce,W)=>{K.onload=()=>ce(K)}),K})),r(5,E=!0);let D=0;P=performance.now(),B(f[D%f.length]),G=()=>{S&&clearInterval(S),P=performance.now(),D=D+1,B(f[D%f.length])},S=setInterval(()=>{D=D+1,P=performance.now(),B(f[D%f.length])},2500),Y||re()}catch(w){console.error(w),alert("Error happened, queue might be full. Please try again in a bit :)")}finally{r(1,_=!1)}}function re(){const e=document.createElement("div");e.className="drawing-board-control";const a=document.createElement("button");a.innerHTML="\u23EF",a.onclick=G,e.append(a);const i=document.querySelector(".drawing-board-controls");i&&f.length>1&&(i.appendChild(e),Y=!0,r(2,b.onclick=()=>{S&&clearInterval(S)},b))}function U(){const e=document.createElement("div");e.className="drawing-board-control";const a=document.createElement("button");a.innerHTML="\u{1F9F9}",a.onclick=()=>{h==null||h.clearRect(0,0,o,o),f=[],r(5,E=!1)},e.append(a);const i=document.querySelector(".drawing-board-controls");i&&i.appendChild(e)}function ie(){const e=u.getContext("2d");r(4,u.width=k.width,u),r(4,u.height=k.height,u),e.drawImage(k,0,0)}async function Q(e){S&&clearInterval(S);const a=new Image;a.src=URL.createObjectURL(e),await new Promise((v,m)=>{a.onload=()=>v(a)});const{width:i,height:w}=a;h==null||h.drawImage(a,0,0,i,w,0,0,o,o)}function z(){var a;const e=(a=O.files)==null?void 0:a[0];e&&Q(e)}function M(e){var w;if(!((w=e.dataTransfer)!=null&&w.files))return;e.preventDefault();const i=Array.from(e.dataTransfer.files)[0];Q(i)}function V(e){if(!e.clipboardData)return;const a=Array.from(e.clipboardData.files);if(a.length===0)return;e.preventDefault();const i=a[0];Q(i)}function le(e){e.code==="Enter"&&(e.preventDefault(),J())}Qe(async()=>{typeof createImageBitmap>"u"&&et();const{innerWidth:e}=window;o=Math.min(o,Math.floor(e*.75)),r(2,b.style.width=`${o}px`,b),r(2,b.style.height=`${o}px`,b),r(4,u.style.width=`${o}px`,u),r(4,u.style.height=`${o}px`,u),await Xe(),I=new window.DrawingBoard.Board("board-container",{size:10,controls:["Color",{Size:{type:"dropdown"}},{DrawingMode:{filler:!1}}],webStorage:!1,enlargeYourContainer:!0}),k=I.canvas,h=k.getContext("2d"),k.ondragover=function(a){return a.preventDefault(),!1},U(),tt()});function ee(e){Ee[e?"unshift":"push"](()=>{u=e,r(4,u)})}function te(e){Ee[e?"unshift":"push"](()=>{b=e,r(2,b)})}function T(){x=this.value,r(0,x)}function H(e){Ee[e?"unshift":"push"](()=>{O=e,r(3,O)})}return[x,_,b,O,u,E,J,z,M,V,le,ee,te,T,H]}class st extends Ue{constructor(C){super(),ze(this,C,at,$e,He,{},null,[-1,-1])}}export{st as default};
|
build/_app/immutable/{start-04edcb44.js β start-8d34885d.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
var We=Object.defineProperty;var Je=(s,e,n)=>e in s?We(s,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[e]=n;var ue=(s,e,n)=>(Je(s,typeof e!="symbol"?e+"":e,n),n);import{S as He,i as Fe,s as Ge,a as Me,e as I,c as Ye,b as V,g as M,t as D,d as Y,f as T,h as z,j as Xe,o as _e,k as Ze,l as Qe,m as xe,n as de,p as J,q as et,r as tt,u as nt,v as B,w as ee,x as K,y as W,z as Ne}from"./chunks/index-c0a82f06.js";import{g as Ie,f as De,a as Te,s as G,b as ge,i as rt,c as at}from"./chunks/singletons-45670e1e.js";class re{constructor(e,n){ue(this,"name","HttpError");ue(this,"stack");this.status=e,this.message=n!=null?n:`Error: ${e}`}toString(){return this.message}}class qe{constructor(e,n){this.status=e,this.location=n}}function st(s,e){return s==="/"||e==="ignore"?s:e==="never"?s.endsWith("/")?s.slice(0,-1):s:e==="always"&&!s.endsWith("/")?s+"/":s}function it(s){for(const e in s)s[e]=s[e].replace(/%23/g,"#").replace(/%3[Bb]/g,";").replace(/%2[Cc]/g,",").replace(/%2[Ff]/g,"/").replace(/%3[Ff]/g,"?").replace(/%3[Aa]/g,":").replace(/%40/g,"@").replace(/%26/g,"&").replace(/%3[Dd]/g,"=").replace(/%2[Bb]/g,"+").replace(/%24/g,"$");return s}class ot extends URL{get hash(){throw new Error("url.hash is inaccessible from load. Consider accessing hash from the page store within the script tag of your component.")}}function lt(s){let e=5381,n=s.length;if(typeof s=="string")for(;n;)e=e*33^s.charCodeAt(--n);else for(;n;)e=e*33^s[--n];return(e>>>0).toString(36)}const ae=window.fetch;function ct(s,e){let i=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof s=="string"?s:s.url)}]`;e&&typeof e.body=="string"&&(i+=`[sveltekit\\:data-body="${lt(e.body)}"]`);const r=document.querySelector(i);if(r&&r.textContent){const{body:u,...t}=JSON.parse(r.textContent);return Promise.resolve(new Response(u,t))}return ae(s,e)}const ft=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function ut(s){const e=[],n=[];let i=!0;return{pattern:s===""?/^\/$/:new RegExp(`^${s.split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((u,t,l)=>{const d=decodeURIComponent(u),p=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(d);if(p)return e.push(p[1]),n.push(p[2]),"(?:/(.*))?";const g=t===l.length-1;return d&&"/"+d.split(/\[(.+?)\]/).map((E,P)=>{if(P%2){const $=ft.exec(E);if(!$)throw new Error(`Invalid param: ${E}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,O,Z,Q]=$;return e.push(Z),n.push(Q),O?"(.*?)":"([^/]+?)"}return g&&E.includes(".")&&(i=!1),E.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${i?"/?":""}$`),names:e,types:n}}function dt(s,e,n,i){const r={};for(let u=0;u<e.length;u+=1){const t=e[u],l=n[u],d=s[u+1]||"";if(l){const p=i[l];if(!p)throw new Error(`Missing "${l}" param matcher`);if(!p(d))return}r[t]=d}return r}function pt(s,e,n){return Object.entries(e).map(([i,[r,u,t,l]])=>{const{pattern:d,names:p,types:g}=ut(i),E={id:i,exec:P=>{const $=d.exec(P);if($)return dt($,p,g,n)},errors:r.map(P=>s[P]),layouts:u.map(P=>s[P]),leaf:s[t],uses_server_data:!!l};return E.errors.length=E.layouts.length=Math.max(E.errors.length,E.layouts.length),E})}function ht(s,e){return new re(s,e)}function mt(s){let e,n,i;var r=s[0][0];function u(t){return{props:{data:t[1],errors:t[4]}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&2&&(d.data=t[1]),l&16&&(d.errors=t[4]),r!==(r=t[0][0])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function _t(s){let e,n,i;var r=s[0][0];function u(t){return{props:{data:t[1],$$slots:{default:[yt]},$$scope:{ctx:t}}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&2&&(d.data=t[1]),l&1053&&(d.$$scope={dirty:l,ctx:t}),r!==(r=t[0][0])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function gt(s){let e,n,i;var r=s[0][1];function u(t){return{props:{data:t[2],errors:t[4]}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&4&&(d.data=t[2]),l&16&&(d.errors=t[4]),r!==(r=t[0][1])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function wt(s){let e,n,i;var r=s[0][1];function u(t){return{props:{data:t[2],$$slots:{default:[bt]},$$scope:{ctx:t}}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&4&&(d.data=t[2]),l&1033&&(d.$$scope={dirty:l,ctx:t}),r!==(r=t[0][1])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function bt(s){let e,n,i;var r=s[0][2];function u(t){return{props:{data:t[3]}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&8&&(d.data=t[3]),r!==(r=t[0][2])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function yt(s){let e,n,i,r;const u=[wt,gt],t=[];function l(d,p){return d[0][2]?0:1}return e=l(s),n=t[e]=u[e](s),{c(){n.c(),i=I()},l(d){n.l(d),i=I()},m(d,p){t[e].m(d,p),V(d,i,p),r=!0},p(d,p){let g=e;e=l(d),e===g?t[e].p(d,p):(M(),D(t[g],1,1,()=>{t[g]=null}),Y(),n=t[e],n?n.p(d,p):(n=t[e]=u[e](d),n.c()),T(n,1),n.m(i.parentNode,i))},i(d){r||(T(n),r=!0)},o(d){D(n),r=!1},d(d){t[e].d(d),d&&z(i)}}}function ze(s){let e,n=s[6]&&Ve(s);return{c(){e=Ze("div"),n&&n.c(),this.h()},l(i){e=Qe(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=xe(e);n&&n.l(r),r.forEach(z),this.h()},h(){de(e,"id","svelte-announcer"),de(e,"aria-live","assertive"),de(e,"aria-atomic","true"),J(e,"position","absolute"),J(e,"left","0"),J(e,"top","0"),J(e,"clip","rect(0 0 0 0)"),J(e,"clip-path","inset(50%)"),J(e,"overflow","hidden"),J(e,"white-space","nowrap"),J(e,"width","1px"),J(e,"height","1px")},m(i,r){V(i,e,r),n&&n.m(e,null)},p(i,r){i[6]?n?n.p(i,r):(n=Ve(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&z(e),n&&n.d()}}}function Ve(s){let e;return{c(){e=et(s[7])},l(n){e=tt(n,s[7])},m(n,i){V(n,e,i)},p(n,i){i&128&&nt(e,n[7])},d(n){n&&z(e)}}}function vt(s){let e,n,i,r,u;const t=[_t,mt],l=[];function d(g,E){return g[0][1]?0:1}e=d(s),n=l[e]=t[e](s);let p=s[5]&&ze(s);return{c(){n.c(),i=Me(),p&&p.c(),r=I()},l(g){n.l(g),i=Ye(g),p&&p.l(g),r=I()},m(g,E){l[e].m(g,E),V(g,i,E),p&&p.m(g,E),V(g,r,E),u=!0},p(g,[E]){let P=e;e=d(g),e===P?l[e].p(g,E):(M(),D(l[P],1,1,()=>{l[P]=null}),Y(),n=l[e],n?n.p(g,E):(n=l[e]=t[e](g),n.c()),T(n,1),n.m(i.parentNode,i)),g[5]?p?p.p(g,E):(p=ze(g),p.c(),p.m(r.parentNode,r)):p&&(p.d(1),p=null)},i(g){u||(T(n),u=!0)},o(g){D(n),u=!1},d(g){l[e].d(g),g&&z(i),p&&p.d(g),g&&z(r)}}}function kt(s,e,n){let{stores:i}=e,{page:r}=e,{components:u}=e,{data_0:t=null}=e,{data_1:l=null}=e,{data_2:d=null}=e,{errors:p}=e;Xe(i.page.notify);let g=!1,E=!1,P=null;return _e(()=>{const $=i.page.subscribe(()=>{g&&(n(6,E=!0),n(7,P=document.title||"untitled page"))});return n(5,g=!0),$}),s.$$set=$=>{"stores"in $&&n(8,i=$.stores),"page"in $&&n(9,r=$.page),"components"in $&&n(0,u=$.components),"data_0"in $&&n(1,t=$.data_0),"data_1"in $&&n(2,l=$.data_1),"data_2"in $&&n(3,d=$.data_2),"errors"in $&&n(4,p=$.errors)},s.$$.update=()=>{s.$$.dirty&768&&i.page.set(r)},[u,t,l,d,p,g,E,P,i,r]}class $t extends He{constructor(e){super(),Fe(this,e,kt,vt,Ge,{stores:8,page:9,components:0,data_0:1,data_1:2,data_2:3,errors:4})}}const Et=function(){const e=document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),St=function(s,e){return new URL(s,e).href},Be={},pe=function(e,n,i){return!n||n.length===0?e():Promise.all(n.map(r=>{if(r=St(r,i),r in Be)return;Be[r]=!0;const u=r.endsWith(".css"),t=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${t}`))return;const l=document.createElement("link");if(l.rel=u?"stylesheet":Et,u||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),u)return new Promise((d,p)=>{l.addEventListener("load",d),l.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e())},Lt={},se=[()=>pe(()=>import("./chunks/0-2f02e405.js"),["chunks/0-2f02e405.js","components/pages/_layout.svelte-f3c669c0.js","assets/+layout-aed6cae1.css","chunks/index-c0a82f06.js"],import.meta.url),()=>pe(()=>import("./chunks/1-459cbcc3.js"),["chunks/1-459cbcc3.js","components/error.svelte-429e55bf.js","chunks/index-c0a82f06.js","chunks/singletons-45670e1e.js"],import.meta.url),()=>pe(()=>import("./chunks/2-32bdb457.js"),["chunks/2-32bdb457.js","components/pages/_page.svelte-24e2c110.js","chunks/index-c0a82f06.js"],import.meta.url)],Rt={"":[[1],[0],2]},Ke="sveltekit:scroll",H="sveltekit:index",he=pt(se,Rt,Lt),we=se[0],be=se[1];we();be();let x={};try{x=JSON.parse(sessionStorage[Ke])}catch{}function me(s){x[s]=ge()}function Ut({target:s,base:e,trailing_slash:n}){var Ue;const i=[],r={id:null,promise:null},u={before_navigate:[],after_navigate:[]};let t={branch:[],error:null,session_id:0,url:null},l=!1,d=!0,p=!1,g=1,E=null,P,$=!0,O=(Ue=history.state)==null?void 0:Ue[H];O||(O=Date.now(),history.replaceState({...history.state,[H]:O},"",location.href));const Z=x[O];Z&&(history.scrollRestoration="manual",scrollTo(Z.x,Z.y));let Q=!1,ie,ye;async function ve(a,{noscroll:f=!1,replaceState:h=!1,keepfocus:o=!1,state:c={}},y){if(typeof a=="string"&&(a=new URL(a,Ie(document))),$)return ce({url:a,scroll:f?ge():null,keepfocus:o,redirect_chain:y,details:{state:c,replaceState:h},accepted:()=>{},blocked:()=>{}});await F(a)}async function ke(a){const f=Re(a);if(!f)throw new Error("Attempted to prefetch a URL that does not belong to this app");return r.promise=Le(f),r.id=f.id,r.promise}async function $e(a,f,h,o){var b,L,U;const c=Re(a),y=ye={};let m=c&&await Le(c);if(!m&&a.origin===location.origin&&a.pathname===location.pathname&&(m=await ne({status:404,error:new Error(`Not found: ${a.pathname}`),url:a,routeId:null})),!m)return await F(a),!1;if(a=(c==null?void 0:c.url)||a,ye!==y)return!1;if(i.length=0,m.type==="redirect")if(f.length>10||f.includes(a.pathname))m=await ne({status:500,error:new Error("Redirect loop"),url:a,routeId:null});else return $?ve(new URL(m.location,a).href,{},[...f,a.pathname]):await F(new URL(m.location,location.href)),!1;else((L=(b=m.props)==null?void 0:b.page)==null?void 0:L.status)>=400&&await G.updated.check()&&await F(a);if(p=!0,h&&h.details){const{details:k}=h,R=k.replaceState?0:1;k.state[H]=O+=R,history[k.replaceState?"replaceState":"pushState"](k.state,"",a)}if(l?(t=m.state,m.props.page&&(m.props.page.url=a),P.$set(m.props)):Ee(m),h){const{scroll:k,keepfocus:R}=h;if(!R){const S=document.body,A=S.getAttribute("tabindex");S.tabIndex=-1,S.focus({preventScroll:!0}),setTimeout(()=>{var w;(w=getSelection())==null||w.removeAllRanges()}),A!==null?S.setAttribute("tabindex",A):S.removeAttribute("tabindex")}if(await Ne(),d){const S=a.hash&&document.getElementById(a.hash.slice(1));k?scrollTo(k.x,k.y):S?S.scrollIntoView():scrollTo(0,0)}}else await Ne();r.promise=null,r.id=null,d=!0,m.props.page&&(ie=m.props.page);const v=m.state.branch[m.state.branch.length-1];$=((U=v==null?void 0:v.node.shared)==null?void 0:U.router)!==!1,o&&o(),p=!1}function Ee(a){t=a.state;const f=document.querySelector("style[data-sveltekit]");if(f&&f.remove(),ie=a.props.page,P=new $t({target:s,props:{...a.props,stores:G},hydrate:!0}),$){const h={from:null,to:new URL(location.href)};u.after_navigate.forEach(o=>o(h))}l=!0}async function te({url:a,params:f,branch:h,status:o,error:c,routeId:y,validation_errors:m}){const v=h.filter(Boolean),b={type:"loaded",state:{url:a,params:f,branch:h,error:c,session_id:g},props:{components:v.map(R=>R.node.component),errors:m}};let L={},U=!1;for(let R=0;R<v.length;R+=1)L={...L,...v[R].data},(U||!t.branch.some(S=>S===v[R]))&&(b.props[`data_${R}`]=L,U=!0);if(!t.url||a.href!==t.url.href||t.error!==c||U){b.props.page={error:c,params:f,routeId:y,status:o,url:a,data:L};const R=(S,A)=>{Object.defineProperty(b.props.page,S,{get:()=>{throw new Error(`$page.${S} has been replaced by $page.url.${A}`)}})};R("origin","origin"),R("path","pathname"),R("query","searchParams")}return b}async function oe({loader:a,parent:f,url:h,params:o,routeId:c,server_data_node:y}){var L,U,k,R,S;let m=null;const v={dependencies:new Set,params:new Set,parent:!1,url:!1},b=await a();if((L=b.shared)!=null&&L.load){let A=function(..._){for(const q of _){const{href:N}=new URL(q,h);v.dependencies.add(N)}};const w={};for(const _ in o)Object.defineProperty(w,_,{get(){return v.params.add(_),o[_]},enumerable:!0});const C=new ot(h),j={routeId:c,params:w,data:(U=y==null?void 0:y.data)!=null?U:null,get url(){return v.url=!0,C},async fetch(_,q){let N;typeof _=="string"?N=_:(N=_.url,q={body:_.method==="GET"||_.method==="HEAD"?void 0:await _.blob(),cache:_.cache,credentials:_.credentials,headers:_.headers,integrity:_.integrity,keepalive:_.keepalive,method:_.method,mode:_.mode,redirect:_.redirect,referrer:_.referrer,referrerPolicy:_.referrerPolicy,signal:_.signal,...q});const X=new URL(N,h).href;return A(X),l?ae(X,q):ct(N,q)},setHeaders:()=>{},depends:A,parent(){return v.parent=!0,f()}};Object.defineProperties(j,{props:{get(){throw new Error("@migration task: Replace `props` with `data` stuff https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693")},enumerable:!1},session:{get(){throw new Error("session is no longer available. See https://github.com/sveltejs/kit/discussions/5883")},enumerable:!1},stuff:{get(){throw new Error("@migration task: Remove stuff https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693")},enumerable:!1}}),m=(k=await b.shared.load.call(null,j))!=null?k:null}return{node:b,loader:a,server:y,shared:(R=b.shared)!=null&&R.load?{type:"data",data:m,uses:v}:null,data:(S=m!=null?m:y==null?void 0:y.data)!=null?S:null}}function Se(a,f,h){if(!h)return!1;if(h.parent&&f||a.url&&h.url)return!0;for(const o of a.params)if(h.params.has(o))return!0;for(const o of h.dependencies)if(i.some(c=>c(o)))return!0;return!1}function le(a){var f,h;return(a==null?void 0:a.type)==="data"?{type:"data",data:a.data,uses:{dependencies:new Set((f=a.uses.dependencies)!=null?f:[]),params:new Set((h=a.uses.params)!=null?h:[]),parent:!!a.uses.parent,url:!!a.uses.url}}:null}async function Le({id:a,url:f,params:h,route:o}){if(r.id===a&&r.promise)return r.promise;const{errors:c,layouts:y,leaf:m}=o,v=t.url&&{url:a!==t.url.pathname+t.url.search,params:Object.keys(h).filter(w=>t.params[w]!==h[w])};[...c,...y,m].forEach(w=>w==null?void 0:w().catch(()=>{}));const b=[...y,m];let L=null;const U=b.reduce((w,C,j)=>{var N;const _=t.branch[j],q=C&&((_==null?void 0:_.loader)!==C||Se(v,w.some(Boolean),(N=_.server)==null?void 0:N.uses));return w.push(q),w},[]);if(o.uses_server_data&&U.some(Boolean)){try{const w=await ae(`${f.pathname}${f.pathname.endsWith("/")?"":"/"}__data.json${f.search}`,{headers:{"x-sveltekit-invalidated":U.map(C=>C?"1":"").join(",")}});if(L=await w.json(),!w.ok)throw L}catch{F(f);return}if(L.type==="redirect")return L}const k=L==null?void 0:L.nodes;let R=!1;const S=b.map(async(w,C)=>{var X,je,Pe,Ae;if(!w)return;const j=t.branch[C],_=(X=k==null?void 0:k[C])!=null?X:null;if((!_||_.type==="skip")&&w===(j==null?void 0:j.loader)&&!Se(v,R,(je=j.shared)==null?void 0:je.uses))return j;if(R=!0,(_==null?void 0:_.type)==="error")throw _.httperror?ht(_.httperror.status,_.httperror.message):_.error;return oe({loader:w,url:f,params:h,routeId:o.id,parent:async()=>{var Ce;const Oe={};for(let fe=0;fe<C;fe+=1)Object.assign(Oe,(Ce=await S[fe])==null?void 0:Ce.data);return Oe},server_data_node:(Ae=(Pe=le(_))!=null?Pe:j==null?void 0:j.server)!=null?Ae:null})});for(const w of S)w.catch(()=>{});const A=[];for(let w=0;w<b.length;w+=1)if(b[w])try{A.push(await S[w])}catch(C){const j=C;if(j instanceof qe)return{type:"redirect",location:j.location};const _=C instanceof re?C.status:500;for(;w--;)if(c[w]){let q,N=w;for(;!A[N];)N-=1;try{return q={node:await c[w](),loader:c[w],data:{},server:null,shared:null},await te({url:f,params:h,branch:A.slice(0,N+1).concat(q),status:_,error:j,routeId:o.id})}catch{continue}}return await ne({status:_,error:j,url:f,routeId:o.id})}else A.push(void 0);return await te({url:f,params:h,branch:A,status:200,error:null,routeId:o.id})}async function ne({status:a,error:f,url:h,routeId:o}){var L;const c={},y=await we();let m=null;if(y.server){const U=await ae(`${h.pathname}${h.pathname.endsWith("/")?"":"/"}__data.json${h.search}`,{headers:{"x-sveltekit-invalidated":"1"}}),k=await U.json();if(m=(L=k==null?void 0:k[0])!=null?L:null,!U.ok||(k==null?void 0:k.type)!=="data"){F(h);return}}const v=await oe({loader:we,url:h,params:c,routeId:o,parent:()=>Promise.resolve({}),server_data_node:le(m)}),b={node:await be(),loader:be,shared:null,server:null,data:null};return await te({url:h,params:c,branch:[v,b],status:a,error:f,routeId:o})}function Re(a){if(a.origin!==location.origin||!a.pathname.startsWith(e))return;const f=decodeURI(a.pathname.slice(e.length)||"/");for(const h of he){const o=h.exec(f);if(o){const c=new URL(a.origin+st(a.pathname,n)+a.search+a.hash);return{id:c.pathname+c.search,route:h,params:it(o),url:c}}}}async function ce({url:a,scroll:f,keepfocus:h,redirect_chain:o,details:c,accepted:y,blocked:m}){const v=t.url;let b=!1;const L={from:v,to:a,cancel:()=>b=!0};if(u.before_navigate.forEach(U=>U(L)),b){m();return}me(O),y(),l&&G.navigating.set({from:t.url,to:a}),await $e(a,o,{scroll:f,keepfocus:h,details:c},()=>{const U={from:v,to:a};u.after_navigate.forEach(k=>k(U)),G.navigating.set(null)})}function F(a){return location.href=a.href,new Promise(()=>{})}return{after_navigate:a=>{_e(()=>(u.after_navigate.push(a),()=>{const f=u.after_navigate.indexOf(a);u.after_navigate.splice(f,1)}))},before_navigate:a=>{_e(()=>(u.before_navigate.push(a),()=>{const f=u.before_navigate.indexOf(a);u.before_navigate.splice(f,1)}))},disable_scroll_handling:()=>{(p||!l)&&(d=!1)},goto:(a,f={})=>ve(a,f,[]),invalidate:a=>{var f,h;if(a===void 0){for(const o of t.branch)(f=o==null?void 0:o.server)==null||f.uses.dependencies.add(""),(h=o==null?void 0:o.shared)==null||h.uses.dependencies.add("");i.push(()=>!0)}else if(typeof a=="function")i.push(a);else{const{href:o}=new URL(a,location.href);i.push(c=>c===o)}return E||(E=Promise.resolve().then(async()=>{await $e(new URL(location.href),[]),E=null})),E},prefetch:async a=>{const f=new URL(a,Ie(document));await ke(f)},prefetch_routes:async a=>{const h=(a?he.filter(o=>a.some(c=>o.exec(c))):he).map(o=>Promise.all([...o.layouts,o.leaf].map(c=>c==null?void 0:c())));await Promise.all(h)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",o=>{let c=!1;const y={from:t.url,to:null,cancel:()=>c=!0};u.before_navigate.forEach(m=>m(y)),c?(o.preventDefault(),o.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){me(O);try{sessionStorage[Ke]=JSON.stringify(x)}catch{}}});const a=o=>{const c=De(o);c&&c.href&&c.hasAttribute("sveltekit:prefetch")&&ke(Te(c))};let f;const h=o=>{clearTimeout(f),f=setTimeout(()=>{var c;(c=o.target)==null||c.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",a),addEventListener("mousemove",h),addEventListener("sveltekit:trigger_prefetch",a),addEventListener("click",o=>{if(!$||o.button||o.which!==1||o.metaKey||o.ctrlKey||o.shiftKey||o.altKey||o.defaultPrevented)return;const c=De(o);if(!c||!c.href)return;const y=c instanceof SVGAElement,m=Te(c);if(!y&&!(m.protocol==="https:"||m.protocol==="http:"))return;const v=(c.getAttribute("rel")||"").split(/\s+/);if(c.hasAttribute("download")||v.includes("external")||c.hasAttribute("sveltekit:reload")||(y?c.target.baseVal:c.target))return;const[b,L]=m.href.split("#");if(L!==void 0&&b===location.href.split("#")[0]){Q=!0,me(O),G.page.set({...ie,url:m}),G.page.notify();return}ce({url:m,scroll:c.hasAttribute("sveltekit:noscroll")?ge():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:m.href===location.href},accepted:()=>o.preventDefault(),blocked:()=>o.preventDefault()})}),addEventListener("popstate",o=>{if(o.state&&$){if(o.state[H]===O)return;ce({url:new URL(location.href),scroll:x[o.state[H]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{O=o.state[H]},blocked:()=>{const c=O-o.state[H];history.go(c)}})}}),addEventListener("hashchange",()=>{Q&&(Q=!1,history.replaceState({...history.state,[H]:++O},"",location.href))});for(const o of document.querySelectorAll("link"))o.rel==="icon"&&(o.href=o.href);addEventListener("pageshow",o=>{o.persisted&&G.navigating.set(null)})},_hydrate:async({status:a,error:f,node_ids:h,params:o,routeId:c})=>{const y=new URL(location.href);let m;try{const v=(k,R)=>{const S=document.querySelector(`script[sveltekit\\:data-type="${k}"]`);return S!=null&&S.textContent?JSON.parse(S.textContent):R},b=v("server_data",[]),L=v("validation_errors",void 0),U=h.map(async(k,R)=>oe({loader:se[k],url:y,params:o,routeId:c,parent:async()=>{const S={};for(let A=0;A<R;A+=1)Object.assign(S,(await U[A]).data);return S},server_data_node:le(b[R])}));m=await te({url:y,params:o,branch:await Promise.all(U),status:a,error:f!=null&&f.__is_http_error?new re(f.status,f.message):f,validation_errors:L,routeId:c})}catch(v){const b=v;if(b instanceof qe){await F(new URL(v.location,location.href));return}m=await ne({status:b instanceof re?b.status:500,error:b,url:y,routeId:c})}Ee(m)}}}function Ot(s){}async function Ct({paths:s,target:e,route:n,spa:i,trailing_slash:r,hydrate:u}){const t=Ut({target:e,base:s.base,trailing_slash:r});rt({client:t}),at(s),u&&await t._hydrate(u),n&&(i&&t.goto(location.href,{replaceState:!0}),t._start_router()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{Ot as set_public_env,Ct as start};
|
|
|
1 |
+
var We=Object.defineProperty;var Je=(s,e,n)=>e in s?We(s,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[e]=n;var ue=(s,e,n)=>(Je(s,typeof e!="symbol"?e+"":e,n),n);import{S as He,i as Fe,s as Ge,a as Me,e as I,c as Ye,b as V,g as M,t as D,d as Y,f as T,h as z,j as Xe,o as _e,k as Ze,l as Qe,m as xe,n as de,p as J,q as et,r as tt,u as nt,v as B,w as ee,x as K,y as W,z as Ne}from"./chunks/index-c0a82f06.js";import{g as Ie,f as De,a as Te,s as G,b as ge,i as rt,c as at}from"./chunks/singletons-5fe7a32a.js";class re{constructor(e,n){ue(this,"name","HttpError");ue(this,"stack");this.status=e,this.message=n!=null?n:`Error: ${e}`}toString(){return this.message}}class qe{constructor(e,n){this.status=e,this.location=n}}function st(s,e){return s==="/"||e==="ignore"?s:e==="never"?s.endsWith("/")?s.slice(0,-1):s:e==="always"&&!s.endsWith("/")?s+"/":s}function it(s){for(const e in s)s[e]=s[e].replace(/%23/g,"#").replace(/%3[Bb]/g,";").replace(/%2[Cc]/g,",").replace(/%2[Ff]/g,"/").replace(/%3[Ff]/g,"?").replace(/%3[Aa]/g,":").replace(/%40/g,"@").replace(/%26/g,"&").replace(/%3[Dd]/g,"=").replace(/%2[Bb]/g,"+").replace(/%24/g,"$");return s}class ot extends URL{get hash(){throw new Error("url.hash is inaccessible from load. Consider accessing hash from the page store within the script tag of your component.")}}function lt(s){let e=5381,n=s.length;if(typeof s=="string")for(;n;)e=e*33^s.charCodeAt(--n);else for(;n;)e=e*33^s[--n];return(e>>>0).toString(36)}const ae=window.fetch;function ct(s,e){let i=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof s=="string"?s:s.url)}]`;e&&typeof e.body=="string"&&(i+=`[sveltekit\\:data-body="${lt(e.body)}"]`);const r=document.querySelector(i);if(r&&r.textContent){const{body:u,...t}=JSON.parse(r.textContent);return Promise.resolve(new Response(u,t))}return ae(s,e)}const ft=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function ut(s){const e=[],n=[];let i=!0;return{pattern:s===""?/^\/$/:new RegExp(`^${s.split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((u,t,l)=>{const d=decodeURIComponent(u),p=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(d);if(p)return e.push(p[1]),n.push(p[2]),"(?:/(.*))?";const g=t===l.length-1;return d&&"/"+d.split(/\[(.+?)\]/).map((E,P)=>{if(P%2){const $=ft.exec(E);if(!$)throw new Error(`Invalid param: ${E}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,O,Z,Q]=$;return e.push(Z),n.push(Q),O?"(.*?)":"([^/]+?)"}return g&&E.includes(".")&&(i=!1),E.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${i?"/?":""}$`),names:e,types:n}}function dt(s,e,n,i){const r={};for(let u=0;u<e.length;u+=1){const t=e[u],l=n[u],d=s[u+1]||"";if(l){const p=i[l];if(!p)throw new Error(`Missing "${l}" param matcher`);if(!p(d))return}r[t]=d}return r}function pt(s,e,n){return Object.entries(e).map(([i,[r,u,t,l]])=>{const{pattern:d,names:p,types:g}=ut(i),E={id:i,exec:P=>{const $=d.exec(P);if($)return dt($,p,g,n)},errors:r.map(P=>s[P]),layouts:u.map(P=>s[P]),leaf:s[t],uses_server_data:!!l};return E.errors.length=E.layouts.length=Math.max(E.errors.length,E.layouts.length),E})}function ht(s,e){return new re(s,e)}function mt(s){let e,n,i;var r=s[0][0];function u(t){return{props:{data:t[1],errors:t[4]}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&2&&(d.data=t[1]),l&16&&(d.errors=t[4]),r!==(r=t[0][0])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function _t(s){let e,n,i;var r=s[0][0];function u(t){return{props:{data:t[1],$$slots:{default:[yt]},$$scope:{ctx:t}}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&2&&(d.data=t[1]),l&1053&&(d.$$scope={dirty:l,ctx:t}),r!==(r=t[0][0])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function gt(s){let e,n,i;var r=s[0][1];function u(t){return{props:{data:t[2],errors:t[4]}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&4&&(d.data=t[2]),l&16&&(d.errors=t[4]),r!==(r=t[0][1])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function wt(s){let e,n,i;var r=s[0][1];function u(t){return{props:{data:t[2],$$slots:{default:[bt]},$$scope:{ctx:t}}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&4&&(d.data=t[2]),l&1033&&(d.$$scope={dirty:l,ctx:t}),r!==(r=t[0][1])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function bt(s){let e,n,i;var r=s[0][2];function u(t){return{props:{data:t[3]}}}return r&&(e=new r(u(s))),{c(){e&&B(e.$$.fragment),n=I()},l(t){e&&ee(e.$$.fragment,t),n=I()},m(t,l){e&&K(e,t,l),V(t,n,l),i=!0},p(t,l){const d={};if(l&8&&(d.data=t[3]),r!==(r=t[0][2])){if(e){M();const p=e;D(p.$$.fragment,1,0,()=>{W(p,1)}),Y()}r?(e=new r(u(t)),B(e.$$.fragment),T(e.$$.fragment,1),K(e,n.parentNode,n)):e=null}else r&&e.$set(d)},i(t){i||(e&&T(e.$$.fragment,t),i=!0)},o(t){e&&D(e.$$.fragment,t),i=!1},d(t){t&&z(n),e&&W(e,t)}}}function yt(s){let e,n,i,r;const u=[wt,gt],t=[];function l(d,p){return d[0][2]?0:1}return e=l(s),n=t[e]=u[e](s),{c(){n.c(),i=I()},l(d){n.l(d),i=I()},m(d,p){t[e].m(d,p),V(d,i,p),r=!0},p(d,p){let g=e;e=l(d),e===g?t[e].p(d,p):(M(),D(t[g],1,1,()=>{t[g]=null}),Y(),n=t[e],n?n.p(d,p):(n=t[e]=u[e](d),n.c()),T(n,1),n.m(i.parentNode,i))},i(d){r||(T(n),r=!0)},o(d){D(n),r=!1},d(d){t[e].d(d),d&&z(i)}}}function ze(s){let e,n=s[6]&&Ve(s);return{c(){e=Ze("div"),n&&n.c(),this.h()},l(i){e=Qe(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=xe(e);n&&n.l(r),r.forEach(z),this.h()},h(){de(e,"id","svelte-announcer"),de(e,"aria-live","assertive"),de(e,"aria-atomic","true"),J(e,"position","absolute"),J(e,"left","0"),J(e,"top","0"),J(e,"clip","rect(0 0 0 0)"),J(e,"clip-path","inset(50%)"),J(e,"overflow","hidden"),J(e,"white-space","nowrap"),J(e,"width","1px"),J(e,"height","1px")},m(i,r){V(i,e,r),n&&n.m(e,null)},p(i,r){i[6]?n?n.p(i,r):(n=Ve(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&z(e),n&&n.d()}}}function Ve(s){let e;return{c(){e=et(s[7])},l(n){e=tt(n,s[7])},m(n,i){V(n,e,i)},p(n,i){i&128&&nt(e,n[7])},d(n){n&&z(e)}}}function vt(s){let e,n,i,r,u;const t=[_t,mt],l=[];function d(g,E){return g[0][1]?0:1}e=d(s),n=l[e]=t[e](s);let p=s[5]&&ze(s);return{c(){n.c(),i=Me(),p&&p.c(),r=I()},l(g){n.l(g),i=Ye(g),p&&p.l(g),r=I()},m(g,E){l[e].m(g,E),V(g,i,E),p&&p.m(g,E),V(g,r,E),u=!0},p(g,[E]){let P=e;e=d(g),e===P?l[e].p(g,E):(M(),D(l[P],1,1,()=>{l[P]=null}),Y(),n=l[e],n?n.p(g,E):(n=l[e]=t[e](g),n.c()),T(n,1),n.m(i.parentNode,i)),g[5]?p?p.p(g,E):(p=ze(g),p.c(),p.m(r.parentNode,r)):p&&(p.d(1),p=null)},i(g){u||(T(n),u=!0)},o(g){D(n),u=!1},d(g){l[e].d(g),g&&z(i),p&&p.d(g),g&&z(r)}}}function kt(s,e,n){let{stores:i}=e,{page:r}=e,{components:u}=e,{data_0:t=null}=e,{data_1:l=null}=e,{data_2:d=null}=e,{errors:p}=e;Xe(i.page.notify);let g=!1,E=!1,P=null;return _e(()=>{const $=i.page.subscribe(()=>{g&&(n(6,E=!0),n(7,P=document.title||"untitled page"))});return n(5,g=!0),$}),s.$$set=$=>{"stores"in $&&n(8,i=$.stores),"page"in $&&n(9,r=$.page),"components"in $&&n(0,u=$.components),"data_0"in $&&n(1,t=$.data_0),"data_1"in $&&n(2,l=$.data_1),"data_2"in $&&n(3,d=$.data_2),"errors"in $&&n(4,p=$.errors)},s.$$.update=()=>{s.$$.dirty&768&&i.page.set(r)},[u,t,l,d,p,g,E,P,i,r]}class $t extends He{constructor(e){super(),Fe(this,e,kt,vt,Ge,{stores:8,page:9,components:0,data_0:1,data_1:2,data_2:3,errors:4})}}const Et=function(){const e=document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),St=function(s,e){return new URL(s,e).href},Be={},pe=function(e,n,i){return!n||n.length===0?e():Promise.all(n.map(r=>{if(r=St(r,i),r in Be)return;Be[r]=!0;const u=r.endsWith(".css"),t=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${t}`))return;const l=document.createElement("link");if(l.rel=u?"stylesheet":Et,u||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),u)return new Promise((d,p)=>{l.addEventListener("load",d),l.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e())},Lt={},se=[()=>pe(()=>import("./chunks/0-2f02e405.js"),["chunks/0-2f02e405.js","components/pages/_layout.svelte-f3c669c0.js","assets/+layout-aed6cae1.css","chunks/index-c0a82f06.js"],import.meta.url),()=>pe(()=>import("./chunks/1-b2f5ac62.js"),["chunks/1-b2f5ac62.js","components/error.svelte-69a66351.js","chunks/index-c0a82f06.js","chunks/singletons-5fe7a32a.js"],import.meta.url),()=>pe(()=>import("./chunks/2-e4a42749.js"),["chunks/2-e4a42749.js","components/pages/_page.svelte-eba5c00f.js","chunks/index-c0a82f06.js"],import.meta.url)],Rt={"":[[1],[0],2]},Ke="sveltekit:scroll",H="sveltekit:index",he=pt(se,Rt,Lt),we=se[0],be=se[1];we();be();let x={};try{x=JSON.parse(sessionStorage[Ke])}catch{}function me(s){x[s]=ge()}function Ut({target:s,base:e,trailing_slash:n}){var Ue;const i=[],r={id:null,promise:null},u={before_navigate:[],after_navigate:[]};let t={branch:[],error:null,session_id:0,url:null},l=!1,d=!0,p=!1,g=1,E=null,P,$=!0,O=(Ue=history.state)==null?void 0:Ue[H];O||(O=Date.now(),history.replaceState({...history.state,[H]:O},"",location.href));const Z=x[O];Z&&(history.scrollRestoration="manual",scrollTo(Z.x,Z.y));let Q=!1,ie,ye;async function ve(a,{noscroll:f=!1,replaceState:h=!1,keepfocus:o=!1,state:c={}},y){if(typeof a=="string"&&(a=new URL(a,Ie(document))),$)return ce({url:a,scroll:f?ge():null,keepfocus:o,redirect_chain:y,details:{state:c,replaceState:h},accepted:()=>{},blocked:()=>{}});await F(a)}async function ke(a){const f=Re(a);if(!f)throw new Error("Attempted to prefetch a URL that does not belong to this app");return r.promise=Le(f),r.id=f.id,r.promise}async function $e(a,f,h,o){var b,L,U;const c=Re(a),y=ye={};let m=c&&await Le(c);if(!m&&a.origin===location.origin&&a.pathname===location.pathname&&(m=await ne({status:404,error:new Error(`Not found: ${a.pathname}`),url:a,routeId:null})),!m)return await F(a),!1;if(a=(c==null?void 0:c.url)||a,ye!==y)return!1;if(i.length=0,m.type==="redirect")if(f.length>10||f.includes(a.pathname))m=await ne({status:500,error:new Error("Redirect loop"),url:a,routeId:null});else return $?ve(new URL(m.location,a).href,{},[...f,a.pathname]):await F(new URL(m.location,location.href)),!1;else((L=(b=m.props)==null?void 0:b.page)==null?void 0:L.status)>=400&&await G.updated.check()&&await F(a);if(p=!0,h&&h.details){const{details:k}=h,R=k.replaceState?0:1;k.state[H]=O+=R,history[k.replaceState?"replaceState":"pushState"](k.state,"",a)}if(l?(t=m.state,m.props.page&&(m.props.page.url=a),P.$set(m.props)):Ee(m),h){const{scroll:k,keepfocus:R}=h;if(!R){const S=document.body,A=S.getAttribute("tabindex");S.tabIndex=-1,S.focus({preventScroll:!0}),setTimeout(()=>{var w;(w=getSelection())==null||w.removeAllRanges()}),A!==null?S.setAttribute("tabindex",A):S.removeAttribute("tabindex")}if(await Ne(),d){const S=a.hash&&document.getElementById(a.hash.slice(1));k?scrollTo(k.x,k.y):S?S.scrollIntoView():scrollTo(0,0)}}else await Ne();r.promise=null,r.id=null,d=!0,m.props.page&&(ie=m.props.page);const v=m.state.branch[m.state.branch.length-1];$=((U=v==null?void 0:v.node.shared)==null?void 0:U.router)!==!1,o&&o(),p=!1}function Ee(a){t=a.state;const f=document.querySelector("style[data-sveltekit]");if(f&&f.remove(),ie=a.props.page,P=new $t({target:s,props:{...a.props,stores:G},hydrate:!0}),$){const h={from:null,to:new URL(location.href)};u.after_navigate.forEach(o=>o(h))}l=!0}async function te({url:a,params:f,branch:h,status:o,error:c,routeId:y,validation_errors:m}){const v=h.filter(Boolean),b={type:"loaded",state:{url:a,params:f,branch:h,error:c,session_id:g},props:{components:v.map(R=>R.node.component),errors:m}};let L={},U=!1;for(let R=0;R<v.length;R+=1)L={...L,...v[R].data},(U||!t.branch.some(S=>S===v[R]))&&(b.props[`data_${R}`]=L,U=!0);if(!t.url||a.href!==t.url.href||t.error!==c||U){b.props.page={error:c,params:f,routeId:y,status:o,url:a,data:L};const R=(S,A)=>{Object.defineProperty(b.props.page,S,{get:()=>{throw new Error(`$page.${S} has been replaced by $page.url.${A}`)}})};R("origin","origin"),R("path","pathname"),R("query","searchParams")}return b}async function oe({loader:a,parent:f,url:h,params:o,routeId:c,server_data_node:y}){var L,U,k,R,S;let m=null;const v={dependencies:new Set,params:new Set,parent:!1,url:!1},b=await a();if((L=b.shared)!=null&&L.load){let A=function(..._){for(const q of _){const{href:N}=new URL(q,h);v.dependencies.add(N)}};const w={};for(const _ in o)Object.defineProperty(w,_,{get(){return v.params.add(_),o[_]},enumerable:!0});const C=new ot(h),j={routeId:c,params:w,data:(U=y==null?void 0:y.data)!=null?U:null,get url(){return v.url=!0,C},async fetch(_,q){let N;typeof _=="string"?N=_:(N=_.url,q={body:_.method==="GET"||_.method==="HEAD"?void 0:await _.blob(),cache:_.cache,credentials:_.credentials,headers:_.headers,integrity:_.integrity,keepalive:_.keepalive,method:_.method,mode:_.mode,redirect:_.redirect,referrer:_.referrer,referrerPolicy:_.referrerPolicy,signal:_.signal,...q});const X=new URL(N,h).href;return A(X),l?ae(X,q):ct(N,q)},setHeaders:()=>{},depends:A,parent(){return v.parent=!0,f()}};Object.defineProperties(j,{props:{get(){throw new Error("@migration task: Replace `props` with `data` stuff https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693")},enumerable:!1},session:{get(){throw new Error("session is no longer available. See https://github.com/sveltejs/kit/discussions/5883")},enumerable:!1},stuff:{get(){throw new Error("@migration task: Remove stuff https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292693")},enumerable:!1}}),m=(k=await b.shared.load.call(null,j))!=null?k:null}return{node:b,loader:a,server:y,shared:(R=b.shared)!=null&&R.load?{type:"data",data:m,uses:v}:null,data:(S=m!=null?m:y==null?void 0:y.data)!=null?S:null}}function Se(a,f,h){if(!h)return!1;if(h.parent&&f||a.url&&h.url)return!0;for(const o of a.params)if(h.params.has(o))return!0;for(const o of h.dependencies)if(i.some(c=>c(o)))return!0;return!1}function le(a){var f,h;return(a==null?void 0:a.type)==="data"?{type:"data",data:a.data,uses:{dependencies:new Set((f=a.uses.dependencies)!=null?f:[]),params:new Set((h=a.uses.params)!=null?h:[]),parent:!!a.uses.parent,url:!!a.uses.url}}:null}async function Le({id:a,url:f,params:h,route:o}){if(r.id===a&&r.promise)return r.promise;const{errors:c,layouts:y,leaf:m}=o,v=t.url&&{url:a!==t.url.pathname+t.url.search,params:Object.keys(h).filter(w=>t.params[w]!==h[w])};[...c,...y,m].forEach(w=>w==null?void 0:w().catch(()=>{}));const b=[...y,m];let L=null;const U=b.reduce((w,C,j)=>{var N;const _=t.branch[j],q=C&&((_==null?void 0:_.loader)!==C||Se(v,w.some(Boolean),(N=_.server)==null?void 0:N.uses));return w.push(q),w},[]);if(o.uses_server_data&&U.some(Boolean)){try{const w=await ae(`${f.pathname}${f.pathname.endsWith("/")?"":"/"}__data.json${f.search}`,{headers:{"x-sveltekit-invalidated":U.map(C=>C?"1":"").join(",")}});if(L=await w.json(),!w.ok)throw L}catch{F(f);return}if(L.type==="redirect")return L}const k=L==null?void 0:L.nodes;let R=!1;const S=b.map(async(w,C)=>{var X,je,Pe,Ae;if(!w)return;const j=t.branch[C],_=(X=k==null?void 0:k[C])!=null?X:null;if((!_||_.type==="skip")&&w===(j==null?void 0:j.loader)&&!Se(v,R,(je=j.shared)==null?void 0:je.uses))return j;if(R=!0,(_==null?void 0:_.type)==="error")throw _.httperror?ht(_.httperror.status,_.httperror.message):_.error;return oe({loader:w,url:f,params:h,routeId:o.id,parent:async()=>{var Ce;const Oe={};for(let fe=0;fe<C;fe+=1)Object.assign(Oe,(Ce=await S[fe])==null?void 0:Ce.data);return Oe},server_data_node:(Ae=(Pe=le(_))!=null?Pe:j==null?void 0:j.server)!=null?Ae:null})});for(const w of S)w.catch(()=>{});const A=[];for(let w=0;w<b.length;w+=1)if(b[w])try{A.push(await S[w])}catch(C){const j=C;if(j instanceof qe)return{type:"redirect",location:j.location};const _=C instanceof re?C.status:500;for(;w--;)if(c[w]){let q,N=w;for(;!A[N];)N-=1;try{return q={node:await c[w](),loader:c[w],data:{},server:null,shared:null},await te({url:f,params:h,branch:A.slice(0,N+1).concat(q),status:_,error:j,routeId:o.id})}catch{continue}}return await ne({status:_,error:j,url:f,routeId:o.id})}else A.push(void 0);return await te({url:f,params:h,branch:A,status:200,error:null,routeId:o.id})}async function ne({status:a,error:f,url:h,routeId:o}){var L;const c={},y=await we();let m=null;if(y.server){const U=await ae(`${h.pathname}${h.pathname.endsWith("/")?"":"/"}__data.json${h.search}`,{headers:{"x-sveltekit-invalidated":"1"}}),k=await U.json();if(m=(L=k==null?void 0:k[0])!=null?L:null,!U.ok||(k==null?void 0:k.type)!=="data"){F(h);return}}const v=await oe({loader:we,url:h,params:c,routeId:o,parent:()=>Promise.resolve({}),server_data_node:le(m)}),b={node:await be(),loader:be,shared:null,server:null,data:null};return await te({url:h,params:c,branch:[v,b],status:a,error:f,routeId:o})}function Re(a){if(a.origin!==location.origin||!a.pathname.startsWith(e))return;const f=decodeURI(a.pathname.slice(e.length)||"/");for(const h of he){const o=h.exec(f);if(o){const c=new URL(a.origin+st(a.pathname,n)+a.search+a.hash);return{id:c.pathname+c.search,route:h,params:it(o),url:c}}}}async function ce({url:a,scroll:f,keepfocus:h,redirect_chain:o,details:c,accepted:y,blocked:m}){const v=t.url;let b=!1;const L={from:v,to:a,cancel:()=>b=!0};if(u.before_navigate.forEach(U=>U(L)),b){m();return}me(O),y(),l&&G.navigating.set({from:t.url,to:a}),await $e(a,o,{scroll:f,keepfocus:h,details:c},()=>{const U={from:v,to:a};u.after_navigate.forEach(k=>k(U)),G.navigating.set(null)})}function F(a){return location.href=a.href,new Promise(()=>{})}return{after_navigate:a=>{_e(()=>(u.after_navigate.push(a),()=>{const f=u.after_navigate.indexOf(a);u.after_navigate.splice(f,1)}))},before_navigate:a=>{_e(()=>(u.before_navigate.push(a),()=>{const f=u.before_navigate.indexOf(a);u.before_navigate.splice(f,1)}))},disable_scroll_handling:()=>{(p||!l)&&(d=!1)},goto:(a,f={})=>ve(a,f,[]),invalidate:a=>{var f,h;if(a===void 0){for(const o of t.branch)(f=o==null?void 0:o.server)==null||f.uses.dependencies.add(""),(h=o==null?void 0:o.shared)==null||h.uses.dependencies.add("");i.push(()=>!0)}else if(typeof a=="function")i.push(a);else{const{href:o}=new URL(a,location.href);i.push(c=>c===o)}return E||(E=Promise.resolve().then(async()=>{await $e(new URL(location.href),[]),E=null})),E},prefetch:async a=>{const f=new URL(a,Ie(document));await ke(f)},prefetch_routes:async a=>{const h=(a?he.filter(o=>a.some(c=>o.exec(c))):he).map(o=>Promise.all([...o.layouts,o.leaf].map(c=>c==null?void 0:c())));await Promise.all(h)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",o=>{let c=!1;const y={from:t.url,to:null,cancel:()=>c=!0};u.before_navigate.forEach(m=>m(y)),c?(o.preventDefault(),o.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){me(O);try{sessionStorage[Ke]=JSON.stringify(x)}catch{}}});const a=o=>{const c=De(o);c&&c.href&&c.hasAttribute("sveltekit:prefetch")&&ke(Te(c))};let f;const h=o=>{clearTimeout(f),f=setTimeout(()=>{var c;(c=o.target)==null||c.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",a),addEventListener("mousemove",h),addEventListener("sveltekit:trigger_prefetch",a),addEventListener("click",o=>{if(!$||o.button||o.which!==1||o.metaKey||o.ctrlKey||o.shiftKey||o.altKey||o.defaultPrevented)return;const c=De(o);if(!c||!c.href)return;const y=c instanceof SVGAElement,m=Te(c);if(!y&&!(m.protocol==="https:"||m.protocol==="http:"))return;const v=(c.getAttribute("rel")||"").split(/\s+/);if(c.hasAttribute("download")||v.includes("external")||c.hasAttribute("sveltekit:reload")||(y?c.target.baseVal:c.target))return;const[b,L]=m.href.split("#");if(L!==void 0&&b===location.href.split("#")[0]){Q=!0,me(O),G.page.set({...ie,url:m}),G.page.notify();return}ce({url:m,scroll:c.hasAttribute("sveltekit:noscroll")?ge():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:m.href===location.href},accepted:()=>o.preventDefault(),blocked:()=>o.preventDefault()})}),addEventListener("popstate",o=>{if(o.state&&$){if(o.state[H]===O)return;ce({url:new URL(location.href),scroll:x[o.state[H]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{O=o.state[H]},blocked:()=>{const c=O-o.state[H];history.go(c)}})}}),addEventListener("hashchange",()=>{Q&&(Q=!1,history.replaceState({...history.state,[H]:++O},"",location.href))});for(const o of document.querySelectorAll("link"))o.rel==="icon"&&(o.href=o.href);addEventListener("pageshow",o=>{o.persisted&&G.navigating.set(null)})},_hydrate:async({status:a,error:f,node_ids:h,params:o,routeId:c})=>{const y=new URL(location.href);let m;try{const v=(k,R)=>{const S=document.querySelector(`script[sveltekit\\:data-type="${k}"]`);return S!=null&&S.textContent?JSON.parse(S.textContent):R},b=v("server_data",[]),L=v("validation_errors",void 0),U=h.map(async(k,R)=>oe({loader:se[k],url:y,params:o,routeId:c,parent:async()=>{const S={};for(let A=0;A<R;A+=1)Object.assign(S,(await U[A]).data);return S},server_data_node:le(b[R])}));m=await te({url:y,params:o,branch:await Promise.all(U),status:a,error:f!=null&&f.__is_http_error?new re(f.status,f.message):f,validation_errors:L,routeId:c})}catch(v){const b=v;if(b instanceof qe){await F(new URL(v.location,location.href));return}m=await ne({status:b instanceof re?b.status:500,error:b,url:y,routeId:c})}Ee(m)}}}function Ot(s){}async function Ct({paths:s,target:e,route:n,spa:i,trailing_slash:r,hydrate:u}){const t=Ut({target:e,base:s.base,trailing_slash:r});rt({client:t}),at(s),u&&await t._hydrate(u),n&&(i&&t.goto(location.href,{replaceState:!0}),t._start_router()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{Ot as set_public_env,Ct as start};
|
build/_app/version.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":"
|
|
|
1 |
+
{"version":"1661533284595"}
|
build/index.html
CHANGED
@@ -6,11 +6,11 @@
|
|
6 |
<meta name="viewport" content="width=device-width" />
|
7 |
<meta http-equiv="content-security-policy" content=""><link href="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.css" rel="stylesheet" data-svelte="svelte-bw39ln"><script src="https://code.jquery.com/jquery-1.12.4.min.js" data-svelte="svelte-bw39ln"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js" data-svelte="svelte-bw39ln"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js" data-svelte="svelte-bw39ln"></script>
|
8 |
<link href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/assets/+layout-aed6cae1.css" rel="stylesheet">
|
9 |
-
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/start-
|
10 |
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/chunks/index-c0a82f06.js">
|
11 |
-
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/chunks/singletons-
|
12 |
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/components/pages/_layout.svelte-f3c669c0.js">
|
13 |
-
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/components/pages/_page.svelte-
|
14 |
</head>
|
15 |
<body>
|
16 |
<div>
|
@@ -27,21 +27,35 @@
|
|
27 |
<div class="mt-2"><label class="inline desktop:hidden border py-1 px-1.5 bg-slate-200 cursor-pointer"><input accept="image/*" style="display: none;" type="file">
|
28 |
upload img
|
29 |
</label></div></div></div></div>
|
30 |
-
<article class="prose-sm px-4 md:px-8 lg:px-24 mb-8"><div class="text-center"
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
-
<script type="module" data-sveltekit-hydrate="
|
39 |
-
import { set_public_env, start } from "/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/start-
|
40 |
|
41 |
set_public_env({});
|
42 |
|
43 |
start({
|
44 |
-
target: document.querySelector('[data-sveltekit-hydrate="
|
45 |
paths: {"base":"/staticspaceiframe/huggingface/diffuse-the-rest/build","assets":"/staticspaceiframe/huggingface/diffuse-the-rest/build"},
|
46 |
route: true,
|
47 |
spa: false,
|
|
|
6 |
<meta name="viewport" content="width=device-width" />
|
7 |
<meta http-equiv="content-security-policy" content=""><link href="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.css" rel="stylesheet" data-svelte="svelte-bw39ln"><script src="https://code.jquery.com/jquery-1.12.4.min.js" data-svelte="svelte-bw39ln"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/drawingboard.js/0.4.2/drawingboard.min.js" data-svelte="svelte-bw39ln"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js" data-svelte="svelte-bw39ln"></script>
|
8 |
<link href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/assets/+layout-aed6cae1.css" rel="stylesheet">
|
9 |
+
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/start-8d34885d.js">
|
10 |
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/chunks/index-c0a82f06.js">
|
11 |
+
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/chunks/singletons-5fe7a32a.js">
|
12 |
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/components/pages/_layout.svelte-f3c669c0.js">
|
13 |
+
<link rel="modulepreload" href="/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/components/pages/_page.svelte-eba5c00f.js">
|
14 |
</head>
|
15 |
<body>
|
16 |
<div>
|
|
|
27 |
<div class="mt-2"><label class="inline desktop:hidden border py-1 px-1.5 bg-slate-200 cursor-pointer"><input accept="image/*" style="display: none;" type="file">
|
28 |
upload img
|
29 |
</label></div></div></div></div>
|
30 |
+
<article class="prose-sm px-4 md:px-8 lg:px-24 mb-8"><div class="text-center">Stable Diffusion model by [CompVis](https://huggingface.co/CompVis) and [Stability
|
31 |
+
AI](https://huggingface.co/stabilityai) - Demo by π€ Hugging Face Powered by [π€ Diffusers:
|
32 |
+
State-of-the-art diffusion models for image and audio generation in
|
33 |
+
PyTorch](https://github.com/huggingface/diffusers). Based on [notebook by
|
34 |
+
@psuraj28](https://twitter.com/psuraj28/status/1562039265126670339) Check out [Stable Diffusion
|
35 |
+
Gradio demo](https://huggingface.co/spaces/stabilityai/stable-diffusion)
|
36 |
+
</div>
|
37 |
+
<h3>LICENSE The model is licensed with a [CreativeML Open</h3>
|
38 |
+
<p>RAIL-M](<a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" rel="nofollow">https://huggingface.co/spaces/CompVis/stable-diffusion-license</a>) license. The authors claim
|
39 |
+
no rights on the outputs you generate, you are free to use them and are accountable for their use
|
40 |
+
which must not go against the provisions set in this license. The license forbids you from sharing
|
41 |
+
any content that violates any laws, produce any harm to a person, disseminate any personal
|
42 |
+
information that would be meant for harm, spread misinformation and target vulnerable groups. For
|
43 |
+
the full list of restrictions please <a href="https://huggingface.co/spaces/CompVis/stable-diffusion-license" rel="nofollow">read the
|
44 |
+
license</a> ### Biases and content
|
45 |
+
acknowledgment Despite how impressive being able to turn text into image is, beware to the fact
|
46 |
+
that this model may output content that reinforces or exacerbates societal biases, as well as
|
47 |
+
realistic faces, pornography and violence. The model was trained on the <a href="https://laion.ai/blog/laion-5b/" rel="nofollow">LAION-5B
|
48 |
+
dataset</a>, which scraped non-curated image-text-pairs from the
|
49 |
+
internet (the exception being the removal of illegal content) and is meant for research purposes.
|
50 |
+
You can read more in the <a href="https://huggingface.co/CompVis/stable-diffusion-v1-4" rel="nofollow">model card</a></p></article>
|
51 |
|
52 |
+
<script type="module" data-sveltekit-hydrate="17fso1s">
|
53 |
+
import { set_public_env, start } from "/staticspaceiframe/huggingface/diffuse-the-rest/build/_app/immutable/start-8d34885d.js";
|
54 |
|
55 |
set_public_env({});
|
56 |
|
57 |
start({
|
58 |
+
target: document.querySelector('[data-sveltekit-hydrate="17fso1s"]').parentNode,
|
59 |
paths: {"base":"/staticspaceiframe/huggingface/diffuse-the-rest/build","assets":"/staticspaceiframe/huggingface/diffuse-the-rest/build"},
|
60 |
route: true,
|
61 |
spa: false,
|
build/vite-manifest.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
{
|
2 |
"node_modules/@sveltejs/kit/src/runtime/client/start.js": {
|
3 |
-
"file": "_app/immutable/start-
|
4 |
"src": "node_modules/@sveltejs/kit/src/runtime/client/start.js",
|
5 |
"isEntry": true,
|
6 |
"imports": [
|
7 |
"_index-c0a82f06.js",
|
8 |
-
"_singletons-
|
9 |
],
|
10 |
"dynamicImports": [
|
11 |
".svelte-kit/generated/nodes/0.js",
|
@@ -25,24 +25,24 @@
|
|
25 |
]
|
26 |
},
|
27 |
"node_modules/@sveltejs/kit/src/runtime/components/error.svelte": {
|
28 |
-
"file": "_app/immutable/components/error.svelte-
|
29 |
"src": "node_modules/@sveltejs/kit/src/runtime/components/error.svelte",
|
30 |
"isEntry": true,
|
31 |
"imports": [
|
32 |
"_index-c0a82f06.js",
|
33 |
-
"_singletons-
|
34 |
]
|
35 |
},
|
36 |
"src/routes/+page.svelte": {
|
37 |
-
"file": "_app/immutable/components/pages/_page.svelte-
|
38 |
"src": "src/routes/+page.svelte",
|
39 |
"isEntry": true,
|
40 |
"imports": [
|
41 |
"_index-c0a82f06.js"
|
42 |
]
|
43 |
},
|
44 |
-
"_singletons-
|
45 |
-
"file": "_app/immutable/chunks/singletons-
|
46 |
"imports": [
|
47 |
"_index-c0a82f06.js"
|
48 |
]
|
@@ -60,17 +60,17 @@
|
|
60 |
]
|
61 |
},
|
62 |
".svelte-kit/generated/nodes/1.js": {
|
63 |
-
"file": "_app/immutable/chunks/1-
|
64 |
"src": ".svelte-kit/generated/nodes/1.js",
|
65 |
"isDynamicEntry": true,
|
66 |
"imports": [
|
67 |
"node_modules/@sveltejs/kit/src/runtime/components/error.svelte",
|
68 |
"_index-c0a82f06.js",
|
69 |
-
"_singletons-
|
70 |
]
|
71 |
},
|
72 |
".svelte-kit/generated/nodes/2.js": {
|
73 |
-
"file": "_app/immutable/chunks/2-
|
74 |
"src": ".svelte-kit/generated/nodes/2.js",
|
75 |
"isDynamicEntry": true,
|
76 |
"imports": [
|
|
|
1 |
{
|
2 |
"node_modules/@sveltejs/kit/src/runtime/client/start.js": {
|
3 |
+
"file": "_app/immutable/start-8d34885d.js",
|
4 |
"src": "node_modules/@sveltejs/kit/src/runtime/client/start.js",
|
5 |
"isEntry": true,
|
6 |
"imports": [
|
7 |
"_index-c0a82f06.js",
|
8 |
+
"_singletons-5fe7a32a.js"
|
9 |
],
|
10 |
"dynamicImports": [
|
11 |
".svelte-kit/generated/nodes/0.js",
|
|
|
25 |
]
|
26 |
},
|
27 |
"node_modules/@sveltejs/kit/src/runtime/components/error.svelte": {
|
28 |
+
"file": "_app/immutable/components/error.svelte-69a66351.js",
|
29 |
"src": "node_modules/@sveltejs/kit/src/runtime/components/error.svelte",
|
30 |
"isEntry": true,
|
31 |
"imports": [
|
32 |
"_index-c0a82f06.js",
|
33 |
+
"_singletons-5fe7a32a.js"
|
34 |
]
|
35 |
},
|
36 |
"src/routes/+page.svelte": {
|
37 |
+
"file": "_app/immutable/components/pages/_page.svelte-eba5c00f.js",
|
38 |
"src": "src/routes/+page.svelte",
|
39 |
"isEntry": true,
|
40 |
"imports": [
|
41 |
"_index-c0a82f06.js"
|
42 |
]
|
43 |
},
|
44 |
+
"_singletons-5fe7a32a.js": {
|
45 |
+
"file": "_app/immutable/chunks/singletons-5fe7a32a.js",
|
46 |
"imports": [
|
47 |
"_index-c0a82f06.js"
|
48 |
]
|
|
|
60 |
]
|
61 |
},
|
62 |
".svelte-kit/generated/nodes/1.js": {
|
63 |
+
"file": "_app/immutable/chunks/1-b2f5ac62.js",
|
64 |
"src": ".svelte-kit/generated/nodes/1.js",
|
65 |
"isDynamicEntry": true,
|
66 |
"imports": [
|
67 |
"node_modules/@sveltejs/kit/src/runtime/components/error.svelte",
|
68 |
"_index-c0a82f06.js",
|
69 |
+
"_singletons-5fe7a32a.js"
|
70 |
]
|
71 |
},
|
72 |
".svelte-kit/generated/nodes/2.js": {
|
73 |
+
"file": "_app/immutable/chunks/2-e4a42749.js",
|
74 |
"src": ".svelte-kit/generated/nodes/2.js",
|
75 |
"isDynamicEntry": true,
|
76 |
"imports": [
|
src/routes/+page.svelte
CHANGED
@@ -152,7 +152,7 @@
|
|
152 |
} catch (err) {
|
153 |
console.error(err);
|
154 |
alert('Error happened, queue might be full. Please try again in a bit :)');
|
155 |
-
} finally{
|
156 |
isLoading = false;
|
157 |
}
|
158 |
}
|
@@ -278,10 +278,10 @@
|
|
278 |
};
|
279 |
}
|
280 |
|
281 |
-
function makeLinksTargetBlank(){
|
282 |
-
const linkEls = document.querySelectorAll(
|
283 |
-
for(const linkEl of linkEls){
|
284 |
-
linkEl.target =
|
285 |
}
|
286 |
}
|
287 |
|
@@ -370,21 +370,28 @@
|
|
370 |
</div>
|
371 |
</div>
|
372 |
|
373 |
-
|
374 |
<article class="prose-sm px-4 md:px-8 lg:px-24 mb-8">
|
375 |
-
|
376 |
<div class="text-center">
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
</div>
|
384 |
|
385 |
-
### LICENSE
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
} catch (err) {
|
153 |
console.error(err);
|
154 |
alert('Error happened, queue might be full. Please try again in a bit :)');
|
155 |
+
} finally {
|
156 |
isLoading = false;
|
157 |
}
|
158 |
}
|
|
|
278 |
};
|
279 |
}
|
280 |
|
281 |
+
function makeLinksTargetBlank() {
|
282 |
+
const linkEls = document.querySelectorAll('a');
|
283 |
+
for (const linkEl of linkEls) {
|
284 |
+
linkEl.target = '_blank';
|
285 |
}
|
286 |
}
|
287 |
|
|
|
370 |
</div>
|
371 |
</div>
|
372 |
|
|
|
373 |
<article class="prose-sm px-4 md:px-8 lg:px-24 mb-8">
|
|
|
374 |
<div class="text-center">
|
375 |
+
Stable Diffusion model by [CompVis](https://huggingface.co/CompVis) and [Stability
|
376 |
+
AI](https://huggingface.co/stabilityai) - Demo by π€ Hugging Face Powered by [π€ Diffusers:
|
377 |
+
State-of-the-art diffusion models for image and audio generation in
|
378 |
+
PyTorch](https://github.com/huggingface/diffusers). Based on [notebook by
|
379 |
+
@psuraj28](https://twitter.com/psuraj28/status/1562039265126670339) Check out [Stable Diffusion
|
380 |
+
Gradio demo](https://huggingface.co/spaces/stabilityai/stable-diffusion)
|
381 |
</div>
|
382 |
|
383 |
+
### LICENSE The model is licensed with a [CreativeML Open
|
384 |
+
RAIL-M](https://huggingface.co/spaces/CompVis/stable-diffusion-license) license. The authors claim
|
385 |
+
no rights on the outputs you generate, you are free to use them and are accountable for their use
|
386 |
+
which must not go against the provisions set in this license. The license forbids you from sharing
|
387 |
+
any content that violates any laws, produce any harm to a person, disseminate any personal
|
388 |
+
information that would be meant for harm, spread misinformation and target vulnerable groups. For
|
389 |
+
the full list of restrictions please [read the
|
390 |
+
license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) ### Biases and content
|
391 |
+
acknowledgment Despite how impressive being able to turn text into image is, beware to the fact
|
392 |
+
that this model may output content that reinforces or exacerbates societal biases, as well as
|
393 |
+
realistic faces, pornography and violence. The model was trained on the [LAION-5B
|
394 |
+
dataset](https://laion.ai/blog/laion-5b/), which scraped non-curated image-text-pairs from the
|
395 |
+
internet (the exception being the removal of illegal content) and is meant for research purposes.
|
396 |
+
You can read more in the [model card](https://huggingface.co/CompVis/stable-diffusion-v1-4)
|
397 |
+
</article>
|
tailwind.config.cjs
CHANGED
@@ -7,7 +7,7 @@ module.exports = {
|
|
7 |
sm: '640px',
|
8 |
md: '768px',
|
9 |
lg: '1024px',
|
10 |
-
xl: '1280px'
|
11 |
},
|
12 |
extend: {
|
13 |
screens: {
|
@@ -16,5 +16,5 @@ module.exports = {
|
|
16 |
}
|
17 |
}
|
18 |
},
|
19 |
-
plugins: [require('@tailwindcss/typography')
|
20 |
};
|
|
|
7 |
sm: '640px',
|
8 |
md: '768px',
|
9 |
lg: '1024px',
|
10 |
+
xl: '1280px'
|
11 |
},
|
12 |
extend: {
|
13 |
screens: {
|
|
|
16 |
}
|
17 |
}
|
18 |
},
|
19 |
+
plugins: [require('@tailwindcss/typography')]
|
20 |
};
|