import{s as V,n as B,o as J}from"../chunks/scheduler.9cda857a.js";import{S as K,i as N,e as h,s as o,c as H,h as Q,a as d,d as n,b as a,f as I,g as M,j as P,k as U,l as W,m as s,n as E,t as R,o as z,p as A}from"../chunks/index.003612b0.js";import{C as X}from"../chunks/CopyLLMTxtMenu.44d08a39.js";import{H as O,E as Z}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e5cfda8c.js";function ee(j){let i,w,$,_,l,v,c,x,m,q=`You can use Docker to run most Spaces locally.
To view instructions to download and run Spaces’ Docker images, click on the “Run with Docker” button on the top-right corner of your Space page:`,y,r,F='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-with-docker.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-with-docker-dark.png"/>',b,u,C,p,G="Some Spaces will require you to login to Hugging Face’s Docker registry. To do so, you’ll need to provide:",T,g,Y='<li>Your Hugging Face username as <code>username</code></li> <li>A User Access Token as <code>password</code>. Generate one <a href="https://huggingface.co/settings/tokens" rel="nofollow">here</a>.</li>',L,f,D,k,S;return l=new X({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new O({props:{title:"Run with Docker",local:"run-with-docker",headingTag:"h1"}}),u=new O({props:{title:"Login to the Docker registry",local:"login-to-the-docker-registry",headingTag:"h2"}}),f=new Z({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-run-with-docker.md"}}),{c(){i=h("meta"),w=o(),$=h("p"),_=o(),H(l.$$.fragment),v=o(),H(c.$$.fragment),x=o(),m=h("p"),m.textContent=q,y=o(),r=h("div"),r.innerHTML=F,b=o(),H(u.$$.fragment),C=o(),p=h("p"),p.textContent=G,T=o(),g=h("ul"),g.innerHTML=Y,L=o(),H(f.$$.fragment),D=o(),k=h("p"),this.h()},l(e){const t=Q("svelte-u9bgzb",document.head);i=d(t,"META",{name:!0,content:!0}),t.forEach(n),w=a(e),$=d(e,"P",{}),I($).forEach(n),_=a(e),M(l.$$.fragment,e),v=a(e),M(c.$$.fragment,e),x=a(e),m=d(e,"P",{"data-svelte-h":!0}),P(m)!=="svelte-19ginw8"&&(m.textContent=q),y=a(e),r=d(e,"DIV",{class:!0,"data-svelte-h":!0}),P(r)!=="svelte-s664rz"&&(r.innerHTML=F),b=a(e),M(u.$$.fragment,e),C=a(e),p=d(e,"P",{"data-svelte-h":!0}),P(p)!=="svelte-1otk72h"&&(p.textContent=G),T=a(e),g=d(e,"UL",{"data-svelte-h":!0}),P(g)!=="svelte-nmt6fv"&&(g.innerHTML=Y),L=a(e),M(f.$$.fragment,e),D=a(e),k=d(e,"P",{}),I(k).forEach(n),this.h()},h(){U(i,"name","hf:doc:metadata"),U(i,"content",te),U(r,"class","flex justify-center")},m(e,t){W(document.head,i),s(e,w,t),s(e,$,t),s(e,_,t),E(l,e,t),s(e,v,t),E(c,e,t),s(e,x,t),s(e,m,t),s(e,y,t),s(e,r,t),s(e,b,t),E(u,e,t),s(e,C,t),s(e,p,t),s(e,T,t),s(e,g,t),s(e,L,t),E(f,e,t),s(e,D,t),s(e,k,t),S=!0},p:B,i(e){S||(R(l.$$.fragment,e),R(c.$$.fragment,e),R(u.$$.fragment,e),R(f.$$.fragment,e),S=!0)},o(e){z(l.$$.fragment,e),z(c.$$.fragment,e),z(u.$$.fragment,e),z(f.$$.fragment,e),S=!1},d(e){e&&(n(w),n($),n(_),n(v),n(x),n(m),n(y),n(r),n(b),n(C),n(p),n(T),n(g),n(L),n(D),n(k)),n(i),A(l,e),A(c,e),A(u,e),A(f,e)}}}const te='{"title":"Run with Docker","local":"run-with-docker","sections":[{"title":"Login to the Docker registry","local":"login-to-the-docker-registry","sections":[],"depth":2}],"depth":1}';function ne(j){return J(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class re extends K{constructor(i){super(),N(this,i,ne,ee,V,{})}}export{re as component};
