import{s as ms,o as rs,n as us}from"../chunks/scheduler.12fdeddc.js";import{S as hs,i as fs,g as i,s as a,r as u,m as Ce,A as gs,h as o,f as s,c as n,j as ps,u as h,x as p,n as Te,k as w,l as be,y as vs,a as l,v as f,d as g,t as v,w as M}from"../chunks/index.88dae322.js";import{T as cs}from"../chunks/Tip.64e66512.js";import{C as ds}from"../chunks/CodeBlock.8e54a086.js";import{H as $,E as Ms}from"../chunks/getInferenceSnippets.00466244.js";function ys(we){let c;return{c(){c=Ce("This feature is still in Beta stage.")},l(d){c=Te(d,"This feature is still in Beta stage.")},m(d,b){l(d,c,b)},d(d){d&&s(c)}}}function xs(we){let c,d,b="PRO",C,r,J="Team & Enterprise",x;return{c(){c=Ce("The Spaces Dev Mode is part of "),d=i("a"),d.textContent=b,C=Ce(" or "),r=i("a"),r.textContent=J,x=Ce(" plans."),this.h()},l(m){c=Te(m,"The Spaces Dev Mode is part of "),d=o(m,"A",{href:!0,"data-svelte-h":!0}),p(d)!=="svelte-3004dm"&&(d.textContent=b),C=Te(m," or "),r=o(m,"A",{href:!0,"data-svelte-h":!0}),p(r)!=="svelte-1859u5z"&&(r.textContent=J),x=Te(m," plans."),this.h()},h(){w(d,"href","https://huggingface.co/pro"),w(r,"href","https://huggingface.co/enterprise")},m(m,y){l(m,c,y),l(m,d,y),l(m,C,y),l(m,r,y),l(m,x,y)},p:us,d(m){m&&(s(c),s(d),s(C),s(r),s(x))}}}function ws(we){let c,d,b,C,r,J,x,m,y,ke,L,Se,P,$t="Spaces Dev Mode is a feature that eases the debugging of your application and makes iterating on Spaces faster.",je,E,Ct="Whenever your commit some changes to your Space repo, the underlying Docker image gets rebuilt, and then a new virtual machine is provisioned to host the new container.",Ue,R,Tt="The Dev Mode allows you to update your Space much quicker by overriding the Docker image.",_e,B,kt="The Dev Mode Docker image starts your application as a sub-process, allowing you to restart it without stopping the Space container itself. It also starts a VS Code server and a SSH server in the background for you to connect to the Space.",He,A,St="The ability to connect to the running Space unlocks several use cases:",De,V,jt="<li>You can make changes to the app code without the Space rebuilding everytime</li> <li>You can debug a running application and monitor resources live</li>",Ie,Z,Ut="Overall it makes developing and experimenting with Spaces much faster by skipping the Docker image rebuild phase.",Je,q,Le,G,_t="Once the Dev Mode is enabled on your Space, you should see a modal like the following.",Pe,T,Ht='<img class="block dark:hidden m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-controls.png" alt="screenshot of the dev mode controls interface."/> <img class="hidden dark:block m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-controls-dark.png" alt="screenshot of the dev mode controls interface."/>',Ee,Y,Dt="The application does not restart automatically when you change the code. For your changes to appear in the Space, you need to use the <code>Refresh</code> button that will restart the app.",Re,H,It="If you're using the Gradio SDK, or if your application is Python-based, note that requirements are not installed automatically.\n  You will need to manually run `pip install` from VS Code or SSH.",Be,F,Ae,N,Jt="The Dev Mode allows you to connect to your Space’s docker container using SSH.",Ve,Q,Lt="Instructions to connect are listed in the Dev Mode controls modal.",Ze,z,Pt=`You will need to add your machine’s SSH public key to <a href="https://huggingface.co/settings/keys" rel="nofollow">your user account</a> to be able to connect to the Space using SSH.
Check out the <a href="./security-git-ssh#add-a-ssh-key-to-your-account">Git over SSH</a> documentation for more detailed instructions.`,qe,W,Et='You can also use a local install of VS Code to connect to the Space container. To do so, you will need to install the <a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh" rel="nofollow">SSH Remote</a> extension.',Ge,X,Ye,D,Rt=`The changes you make when Dev Mode is enabled are not persisted to the Space repo automatically.
By default, they will be discarded when Dev Mode is disabled or when the Space goes to sleep.`,Fe,O,Ne,K,Bt="The modal will display a warning if you have uncommitted or unpushed changes in the Space:",Qe,k,At='<img class="block dark:hidden m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-controls-uncommitted.png" alt="screenshot of the dev mode controls interface."/> <img class="hidden dark:block m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-controls-uncommitted-dark.png" alt="screenshot of the dev mode controls interface."/>',ze,ee,We,te,Vt="You can enable the Dev Mode on your Space from the web interface.",Xe,S,Zt='<img class="block dark:hidden m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-contextual.png" alt="screenshot of the dev mode toggle from the contextual menu."/> <img class="hidden dark:block m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-contextual-dark.png" alt="screenshot of the dev mode toggle from the contextual menu."/>',Oe,j,qt='<img class="block dark:hidden m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-settings.png" alt="screenshot of the dev mode toggle from the Space settings."/> <img class="hidden dark:block m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-settings-dark.png" alt="screenshot of the dev mode toggle from the Space settings."/>',Ke,U,Gt='<img class="block dark:hidden m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-logs.png" alt="screenshot of the dev mode toggle from the Space logs."/> <img class="hidden dark:block m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-enable-logs-dark.png" alt="screenshot of the dev mode toggle from the Space logs."/>',et,se,Yt="You can also create a Space with the dev mode enabled:",tt,_,Ft='<img class="block dark:hidden m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-creation-enable.png" alt="screenshot of the dev mode toggle from the Space creation page."/> <img class="hidden dark:block m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-dev-mode/dev-mode-creation-enable-dark.png" alt="screenshot of the dev mode toggle from the Space creation page."/>',st,le,lt,ae,Nt="Dev Mode is currently not available for static Spaces. Docker Spaces also have some additional requirements.",at,ne,nt,ie,Qt="Dev Mode is supported for Docker Spaces. However, your Space needs to comply with the following rules for Dev Mode to work properly.",it,oe,zt="<li>The following packages must be installed:</li>",ot,pe,Wt="<li><code>bash</code> (required to establish SSH connections)</li> <li><code>curl</code>, <code>wget</code> and <code>procps</code> (required by the VS Code server process)</li> <li><code>git</code> and <code>git-lfs</code> to be able to commit and push changes from your Dev Mode environment</li>",pt,I,Xt='<li><p>Your application code must be located in the <code>/app</code> folder for the Dev Mode daemon to be able to detect changes.</p></li> <li><p>The <code>/app</code> folder must be owned by the user with uid <code>1000</code> to allow you to make changes to the code.</p></li> <li><p>The Dockerfile must contain a <code>CMD</code> instruction for startup. Checkout <a href="https://docs.docker.com/reference/dockerfile/#cmd" rel="nofollow">Docker’s documentation</a> about the <code>CMD</code> instruction for more details.</p></li>',ct,ce,Ot="Dev Mode works well when the base image is debian-based (eg, ubuntu).",dt,de,Kt="More exotic linux distros (eg, alpine) are not tested and Dev Mode is not guaranteed to work on them.",mt,me,rt,re,es="This is an example of a Dockerfile compatible with Spaces Dev Mode.",ut,ue,ts=`It installs the required packages with <code>apt-get</code>, along with a couple more for developer convenience (namely: <code>top</code>, <code>vim</code> and <code>nano</code>).
It then starts a NodeJS application from <code>/app</code>.`,ht,he,ft,fe,ss=`There are several examples of Dev Mode compatible Docker Spaces in this organization.
Feel free to duplicate them in your namespace!`,gt,ge,ls='Example Python app (FastAPI HTTP server): <a href="https://huggingface.co/spaces/dev-mode-explorers/dev-mode-python" rel="nofollow">https://huggingface.co/spaces/dev-mode-explorers/dev-mode-python</a>',vt,ve,as='Example Javascript app (Express.js HTTP server): <a href="https://huggingface.co/spaces/dev-mode-explorers/dev-mode-javascript" rel="nofollow">https://huggingface.co/spaces/dev-mode-explorers/dev-mode-javascript</a>',Mt,Me,yt,ye,ns='You can share your feedback on Spaces Dev Mode directly on the HF Hub: <a href="https://huggingface.co/spaces/dev-mode-explorers/README/discussions" rel="nofollow">https://huggingface.co/spaces/dev-mode-explorers/README/discussions</a>',xt,xe,wt,$e,bt;return r=new $({props:{title:"Spaces Dev Mode: Seamless development in Spaces",local:"spaces-dev-mode-seamless-development-in-spaces",headingTag:"h1"}}),x=new cs({props:{warning:!0,$$slots:{default:[ys]},$$scope:{ctx:we}}}),y=new cs({props:{warning:!0,$$slots:{default:[xs]},$$scope:{ctx:we}}}),L=new $({props:{title:"Spaces Dev Mode",local:"spaces-dev-mode",headingTag:"h2"}}),q=new $({props:{title:"Interface",local:"interface",headingTag:"h2"}}),F=new $({props:{title:"SSH connection and VS Code",local:"ssh-connection-and-vs-code",headingTag:"h3"}}),X=new $({props:{title:"Persisting changes",local:"persisting-changes",headingTag:"h3"}}),O=new ds({props:{code:"JTIzJTIwQWRkJTIwY2hhbmdlcyUyMGFuZCUyMGNvbW1pdCUyMHRoZW0lMEFnaXQlMjBhZGQlMjAuJTBBZ2l0JTIwY29tbWl0JTIwLW0lMjAlMjJQZXJzaXN0JTIwY2hhbmdlcyUyMGZyb20lMjBEZXYlMjBNb2RlJTIyJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMGNvbW1pdCUyMHRvJTIwcGVyc2lzdCUyMHRoZW0lMjBpbiUyMHRoZSUyMHJlcG8lMEFnaXQlMjBwdXNo",highlighted:`<span class="hljs-meta prompt_"># </span><span class="language-bash">Add changes and commit them</span>
git add .
git commit -m &quot;Persist changes from Dev Mode&quot;
<span class="hljs-meta prompt_">
# </span><span class="language-bash">Push the commit to persist them <span class="hljs-keyword">in</span> the repo</span>
git push`,wrap:!1}}),ee=new $({props:{title:"Enabling Dev Mode",local:"enabling-dev-mode",headingTag:"h2"}}),le=new $({props:{title:"Limitations",local:"limitations",headingTag:"h2"}}),ne=new $({props:{title:"Docker Spaces",local:"docker-spaces",headingTag:"h3"}}),me=new $({props:{title:"Example of compatible Dockerfiles",local:"example-of-compatible-dockerfiles",headingTag:"h3"}}),he=new ds({props:{code:"RlJPTSUyMG5vZGUlM0ExOS1zbGltJTBBJTBBUlVOJTIwYXB0LWdldCUyMHVwZGF0ZSUyMCUyNiUyNiUyMCU1QyUwQSUyMCUyMCUyMCUyMGFwdC1nZXQlMjBpbnN0YWxsJTIwLXklMjAlNUMlMEElMjAlMjAlMjAlMjAlMjAlMjBiYXNoJTIwJTVDJTBBJTIwJTIwJTIwJTIwJTIwJTIwZ2l0JTIwZ2l0LWxmcyUyMCU1QyUwQSUyMCUyMCUyMCUyMCUyMCUyMHdnZXQlMjBjdXJsJTIwcHJvY3BzJTIwJTVDJTBBJTIwJTIwJTIwJTIwJTIwJTIwaHRvcCUyMHZpbSUyMG5hbm8lMjAlMjYlMjYlMjAlNUMlMEElMjAlMjAlMjAlMjBybSUyMC1yZiUyMCUyRnZhciUyRmxpYiUyRmFwdCUyRmxpc3RzJTJGKiUwQSUwQSUwQVdPUktESVIlMjAlMkZhcHAlMEFDT1BZJTIwLS1saW5rJTIwLiUyRiUyMCUyRmFwcCUwQVJVTiUyMCUyMG5wbSUyMGklMjAlMEElMEFSVU4lMjBjaG93biUyMDEwMDAlMjAlMkZhcHAlMEFVU0VSJTIwMTAwMCUwQUNNRCUyMCU1QiUyMm5vZGUlMjIlMkMlMjAlMjJpbmRleC5qcyUyMiU1RA==",highlighted:`<span class="hljs-keyword">FROM</span> node:<span class="hljs-number">19</span>-slim

<span class="hljs-keyword">RUN</span><span class="language-bash"> apt-get update &amp;&amp; \\
    apt-get install -y \\
      bash \\
      git git-lfs \\
      wget curl procps \\
      htop vim nano &amp;&amp; \\
    <span class="hljs-built_in">rm</span> -rf /var/lib/apt/lists/*</span>


<span class="hljs-keyword">WORKDIR</span><span class="language-bash"> /app</span>
<span class="hljs-keyword">COPY</span><span class="language-bash"> --<span class="hljs-built_in">link</span> ./ /app</span>
<span class="hljs-keyword">RUN</span><span class="language-bash">  npm i </span>

<span class="hljs-keyword">RUN</span><span class="language-bash"> <span class="hljs-built_in">chown</span> 1000 /app</span>
<span class="hljs-keyword">USER</span> <span class="hljs-number">1000</span>
<span class="hljs-keyword">CMD</span><span class="language-bash"> [<span class="hljs-string">&quot;node&quot;</span>, <span class="hljs-string">&quot;index.js&quot;</span>]</span>`,wrap:!1}}),Me=new $({props:{title:"Feedback",local:"feedback",headingTag:"h2"}}),xe=new Ms({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-dev-mode.md"}}),{c(){c=i("meta"),d=a(),b=i("p"),C=a(),u(r.$$.fragment),J=a(),u(x.$$.fragment),m=a(),u(y.$$.fragment),ke=a(),u(L.$$.fragment),Se=a(),P=i("p"),P.textContent=$t,je=a(),E=i("p"),E.textContent=Ct,Ue=a(),R=i("p"),R.textContent=Tt,_e=a(),B=i("p"),B.textContent=kt,He=a(),A=i("p"),A.textContent=St,De=a(),V=i("ul"),V.innerHTML=jt,Ie=a(),Z=i("p"),Z.textContent=Ut,Je=a(),u(q.$$.fragment),Le=a(),G=i("p"),G.textContent=_t,Pe=a(),T=i("div"),T.innerHTML=Ht,Ee=a(),Y=i("p"),Y.innerHTML=Dt,Re=a(),H=i("div"),H.textContent=It,Be=a(),u(F.$$.fragment),Ae=a(),N=i("p"),N.textContent=Jt,Ve=a(),Q=i("p"),Q.textContent=Lt,Ze=a(),z=i("p"),z.innerHTML=Pt,qe=a(),W=i("p"),W.innerHTML=Et,Ge=a(),u(X.$$.fragment),Ye=a(),D=i("div"),D.textContent=Rt,Fe=Ce(`
If you wish to persist changes made while Dev Mode is enabled, you need to use \`git\` from inside the Space container (using VS Code or SSH). For example:

	`),u(O.$$.fragment),Ne=a(),K=i("p"),K.textContent=Bt,Qe=a(),k=i("div"),k.innerHTML=At,ze=a(),u(ee.$$.fragment),We=a(),te=i("p"),te.textContent=Vt,Xe=a(),S=i("div"),S.innerHTML=Zt,Oe=a(),j=i("div"),j.innerHTML=qt,Ke=a(),U=i("div"),U.innerHTML=Gt,et=a(),se=i("p"),se.textContent=Yt,tt=a(),_=i("div"),_.innerHTML=Ft,st=a(),u(le.$$.fragment),lt=a(),ae=i("p"),ae.textContent=Nt,at=a(),u(ne.$$.fragment),nt=a(),ie=i("p"),ie.textContent=Qt,it=a(),oe=i("ol"),oe.innerHTML=zt,ot=a(),pe=i("ul"),pe.innerHTML=Wt,pt=a(),I=i("ol"),I.innerHTML=Xt,ct=a(),ce=i("p"),ce.textContent=Ot,dt=a(),de=i("p"),de.textContent=Kt,mt=a(),u(me.$$.fragment),rt=a(),re=i("p"),re.textContent=es,ut=a(),ue=i("p"),ue.innerHTML=ts,ht=a(),u(he.$$.fragment),ft=a(),fe=i("p"),fe.textContent=ss,gt=a(),ge=i("p"),ge.innerHTML=ls,vt=a(),ve=i("p"),ve.innerHTML=as,Mt=a(),u(Me.$$.fragment),yt=a(),ye=i("p"),ye.innerHTML=ns,xt=a(),u(xe.$$.fragment),wt=a(),$e=i("p"),this.h()},l(e){const t=gs("svelte-u9bgzb",document.head);c=o(t,"META",{name:!0,content:!0}),t.forEach(s),d=n(e),b=o(e,"P",{}),ps(b).forEach(s),C=n(e),h(r.$$.fragment,e),J=n(e),h(x.$$.fragment,e),m=n(e),h(y.$$.fragment,e),ke=n(e),h(L.$$.fragment,e),Se=n(e),P=o(e,"P",{"data-svelte-h":!0}),p(P)!=="svelte-17joiqd"&&(P.textContent=$t),je=n(e),E=o(e,"P",{"data-svelte-h":!0}),p(E)!=="svelte-fepvi0"&&(E.textContent=Ct),Ue=n(e),R=o(e,"P",{"data-svelte-h":!0}),p(R)!=="svelte-1qcur0i"&&(R.textContent=Tt),_e=n(e),B=o(e,"P",{"data-svelte-h":!0}),p(B)!=="svelte-bqdk0g"&&(B.textContent=kt),He=n(e),A=o(e,"P",{"data-svelte-h":!0}),p(A)!=="svelte-d2q5gy"&&(A.textContent=St),De=n(e),V=o(e,"UL",{"data-svelte-h":!0}),p(V)!=="svelte-19nl0he"&&(V.innerHTML=jt),Ie=n(e),Z=o(e,"P",{"data-svelte-h":!0}),p(Z)!=="svelte-y1a6fj"&&(Z.textContent=Ut),Je=n(e),h(q.$$.fragment,e),Le=n(e),G=o(e,"P",{"data-svelte-h":!0}),p(G)!=="svelte-sqjhf1"&&(G.textContent=_t),Pe=n(e),T=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(T)!=="svelte-1p2nfy2"&&(T.innerHTML=Ht),Ee=n(e),Y=o(e,"P",{"data-svelte-h":!0}),p(Y)!=="svelte-a3xjb"&&(Y.innerHTML=Dt),Re=n(e),H=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(H)!=="svelte-89w5io"&&(H.textContent=It),Be=n(e),h(F.$$.fragment,e),Ae=n(e),N=o(e,"P",{"data-svelte-h":!0}),p(N)!=="svelte-7tup7c"&&(N.textContent=Jt),Ve=n(e),Q=o(e,"P",{"data-svelte-h":!0}),p(Q)!=="svelte-ll49ce"&&(Q.textContent=Lt),Ze=n(e),z=o(e,"P",{"data-svelte-h":!0}),p(z)!=="svelte-bi8bcm"&&(z.innerHTML=Pt),qe=n(e),W=o(e,"P",{"data-svelte-h":!0}),p(W)!=="svelte-18xxcya"&&(W.innerHTML=Et),Ge=n(e),h(X.$$.fragment,e),Ye=n(e),D=o(e,"DIV",{class:!0,"data-svelte-h":!0}),p(D)!=="svelte-x52hht"&&(D.textContent=Rt),Fe=Te(e,`
If you wish to persist changes made while Dev Mode is enabled, you need to use \`git\` from inside the Space container (using VS Code or SSH). For example:

	`),h(O.$$.fragment,e),Ne=n(e),K=o(e,"P",{"data-svelte-h":!0}),p(K)!=="svelte-1nu5wjq"&&(K.textContent=Bt),Qe=n(e),k=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(k)!=="svelte-po1de"&&(k.innerHTML=At),ze=n(e),h(ee.$$.fragment,e),We=n(e),te=o(e,"P",{"data-svelte-h":!0}),p(te)!=="svelte-5ckl3d"&&(te.textContent=Vt),Xe=n(e),S=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(S)!=="svelte-1b34ljc"&&(S.innerHTML=Zt),Oe=n(e),j=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(j)!=="svelte-1wppxua"&&(j.innerHTML=qt),Ke=n(e),U=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(U)!=="svelte-17l661q"&&(U.innerHTML=Gt),et=n(e),se=o(e,"P",{"data-svelte-h":!0}),p(se)!=="svelte-1ncgrwp"&&(se.textContent=Yt),tt=n(e),_=o(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),p(_)!=="svelte-z3iqzc"&&(_.innerHTML=Ft),st=n(e),h(le.$$.fragment,e),lt=n(e),ae=o(e,"P",{"data-svelte-h":!0}),p(ae)!=="svelte-1r40a2v"&&(ae.textContent=Nt),at=n(e),h(ne.$$.fragment,e),nt=n(e),ie=o(e,"P",{"data-svelte-h":!0}),p(ie)!=="svelte-1d8t4jy"&&(ie.textContent=Qt),it=n(e),oe=o(e,"OL",{"data-svelte-h":!0}),p(oe)!=="svelte-1ajt0u8"&&(oe.innerHTML=zt),ot=n(e),pe=o(e,"UL",{"data-svelte-h":!0}),p(pe)!=="svelte-1vc0bn6"&&(pe.innerHTML=Wt),pt=n(e),I=o(e,"OL",{start:!0,"data-svelte-h":!0}),p(I)!=="svelte-pf9o4r"&&(I.innerHTML=Xt),ct=n(e),ce=o(e,"P",{"data-svelte-h":!0}),p(ce)!=="svelte-jc4u36"&&(ce.textContent=Ot),dt=n(e),de=o(e,"P",{"data-svelte-h":!0}),p(de)!=="svelte-np28y2"&&(de.textContent=Kt),mt=n(e),h(me.$$.fragment,e),rt=n(e),re=o(e,"P",{"data-svelte-h":!0}),p(re)!=="svelte-ot2d0e"&&(re.textContent=es),ut=n(e),ue=o(e,"P",{"data-svelte-h":!0}),p(ue)!=="svelte-didr42"&&(ue.innerHTML=ts),ht=n(e),h(he.$$.fragment,e),ft=n(e),fe=o(e,"P",{"data-svelte-h":!0}),p(fe)!=="svelte-11840mj"&&(fe.textContent=ss),gt=n(e),ge=o(e,"P",{"data-svelte-h":!0}),p(ge)!=="svelte-1bil04w"&&(ge.innerHTML=ls),vt=n(e),ve=o(e,"P",{"data-svelte-h":!0}),p(ve)!=="svelte-cc0ki8"&&(ve.innerHTML=as),Mt=n(e),h(Me.$$.fragment,e),yt=n(e),ye=o(e,"P",{"data-svelte-h":!0}),p(ye)!=="svelte-130cjym"&&(ye.innerHTML=ns),xt=n(e),h(xe.$$.fragment,e),wt=n(e),$e=o(e,"P",{}),ps($e).forEach(s),this.h()},h(){w(c,"name","hf:doc:metadata"),w(c,"content",bs),w(T,"class","flex justify-center"),be(T,"max-width","550px"),w(H,"class","alert alert-warning"),w(D,"class","alert alert-warning"),w(k,"class","flex justify-center"),be(k,"max-width","550px"),w(S,"class","flex justify-center"),be(S,"max-width","550px"),w(j,"class","flex justify-center"),be(j,"max-width","550px"),w(U,"class","flex justify-center"),be(U,"max-width","550px"),w(_,"class","flex justify-center"),be(_,"max-width","550px"),w(I,"start","2")},m(e,t){vs(document.head,c),l(e,d,t),l(e,b,t),l(e,C,t),f(r,e,t),l(e,J,t),f(x,e,t),l(e,m,t),f(y,e,t),l(e,ke,t),f(L,e,t),l(e,Se,t),l(e,P,t),l(e,je,t),l(e,E,t),l(e,Ue,t),l(e,R,t),l(e,_e,t),l(e,B,t),l(e,He,t),l(e,A,t),l(e,De,t),l(e,V,t),l(e,Ie,t),l(e,Z,t),l(e,Je,t),f(q,e,t),l(e,Le,t),l(e,G,t),l(e,Pe,t),l(e,T,t),l(e,Ee,t),l(e,Y,t),l(e,Re,t),l(e,H,t),l(e,Be,t),f(F,e,t),l(e,Ae,t),l(e,N,t),l(e,Ve,t),l(e,Q,t),l(e,Ze,t),l(e,z,t),l(e,qe,t),l(e,W,t),l(e,Ge,t),f(X,e,t),l(e,Ye,t),l(e,D,t),l(e,Fe,t),f(O,e,t),l(e,Ne,t),l(e,K,t),l(e,Qe,t),l(e,k,t),l(e,ze,t),f(ee,e,t),l(e,We,t),l(e,te,t),l(e,Xe,t),l(e,S,t),l(e,Oe,t),l(e,j,t),l(e,Ke,t),l(e,U,t),l(e,et,t),l(e,se,t),l(e,tt,t),l(e,_,t),l(e,st,t),f(le,e,t),l(e,lt,t),l(e,ae,t),l(e,at,t),f(ne,e,t),l(e,nt,t),l(e,ie,t),l(e,it,t),l(e,oe,t),l(e,ot,t),l(e,pe,t),l(e,pt,t),l(e,I,t),l(e,ct,t),l(e,ce,t),l(e,dt,t),l(e,de,t),l(e,mt,t),f(me,e,t),l(e,rt,t),l(e,re,t),l(e,ut,t),l(e,ue,t),l(e,ht,t),f(he,e,t),l(e,ft,t),l(e,fe,t),l(e,gt,t),l(e,ge,t),l(e,vt,t),l(e,ve,t),l(e,Mt,t),f(Me,e,t),l(e,yt,t),l(e,ye,t),l(e,xt,t),f(xe,e,t),l(e,wt,t),l(e,$e,t),bt=!0},p(e,[t]){const is={};t&2&&(is.$$scope={dirty:t,ctx:e}),x.$set(is);const os={};t&2&&(os.$$scope={dirty:t,ctx:e}),y.$set(os)},i(e){bt||(g(r.$$.fragment,e),g(x.$$.fragment,e),g(y.$$.fragment,e),g(L.$$.fragment,e),g(q.$$.fragment,e),g(F.$$.fragment,e),g(X.$$.fragment,e),g(O.$$.fragment,e),g(ee.$$.fragment,e),g(le.$$.fragment,e),g(ne.$$.fragment,e),g(me.$$.fragment,e),g(he.$$.fragment,e),g(Me.$$.fragment,e),g(xe.$$.fragment,e),bt=!0)},o(e){v(r.$$.fragment,e),v(x.$$.fragment,e),v(y.$$.fragment,e),v(L.$$.fragment,e),v(q.$$.fragment,e),v(F.$$.fragment,e),v(X.$$.fragment,e),v(O.$$.fragment,e),v(ee.$$.fragment,e),v(le.$$.fragment,e),v(ne.$$.fragment,e),v(me.$$.fragment,e),v(he.$$.fragment,e),v(Me.$$.fragment,e),v(xe.$$.fragment,e),bt=!1},d(e){e&&(s(d),s(b),s(C),s(J),s(m),s(ke),s(Se),s(P),s(je),s(E),s(Ue),s(R),s(_e),s(B),s(He),s(A),s(De),s(V),s(Ie),s(Z),s(Je),s(Le),s(G),s(Pe),s(T),s(Ee),s(Y),s(Re),s(H),s(Be),s(Ae),s(N),s(Ve),s(Q),s(Ze),s(z),s(qe),s(W),s(Ge),s(Ye),s(D),s(Fe),s(Ne),s(K),s(Qe),s(k),s(ze),s(We),s(te),s(Xe),s(S),s(Oe),s(j),s(Ke),s(U),s(et),s(se),s(tt),s(_),s(st),s(lt),s(ae),s(at),s(nt),s(ie),s(it),s(oe),s(ot),s(pe),s(pt),s(I),s(ct),s(ce),s(dt),s(de),s(mt),s(rt),s(re),s(ut),s(ue),s(ht),s(ft),s(fe),s(gt),s(ge),s(vt),s(ve),s(Mt),s(yt),s(ye),s(xt),s(wt),s($e)),s(c),M(r,e),M(x,e),M(y,e),M(L,e),M(q,e),M(F,e),M(X,e),M(O,e),M(ee,e),M(le,e),M(ne,e),M(me,e),M(he,e),M(Me,e),M(xe,e)}}}const bs='{"title":"Spaces Dev Mode: Seamless development in Spaces","local":"spaces-dev-mode-seamless-development-in-spaces","sections":[{"title":"Spaces Dev Mode","local":"spaces-dev-mode","sections":[],"depth":2},{"title":"Interface","local":"interface","sections":[{"title":"SSH connection and VS Code","local":"ssh-connection-and-vs-code","sections":[],"depth":3},{"title":"Persisting changes","local":"persisting-changes","sections":[],"depth":3}],"depth":2},{"title":"Enabling Dev Mode","local":"enabling-dev-mode","sections":[],"depth":2},{"title":"Limitations","local":"limitations","sections":[{"title":"Docker Spaces","local":"docker-spaces","sections":[],"depth":3},{"title":"Example of compatible Dockerfiles","local":"example-of-compatible-dockerfiles","sections":[],"depth":3}],"depth":2},{"title":"Feedback","local":"feedback","sections":[],"depth":2}],"depth":1}';function $s(we){return rs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Us extends hs{constructor(c){super(),fs(this,c,$s,ws,ms,{})}}export{Us as component};
