import{s as pa,o as ra,n as ke}from"../chunks/scheduler.6062bdaf.js";import{S as fa,i as ua,g as o,s as l,r as u,A as ha,h as p,f as a,c as s,j as Jt,u as h,x as f,k as Ct,y as ma,a as n,v as m,d as c,t as g,w as d}from"../chunks/index.4bca734e.js";import{T as Me}from"../chunks/Tip.b9ac1f03.js";import{C as T}from"../chunks/CodeBlock.cbbddafc.js";import{H as b,E as ca}from"../chunks/getInferenceSnippets.e6a3a5be.js";function ga(w){let i,$="Tokens can have <code>read</code> or <code>write</code> permissions. Make sure to have a <code>write</code> access token if you want to create or edit a repository. Otherwise, it’s best to generate a <code>read</code> token to reduce risk in case your token is inadvertently leaked.";return{c(){i=o("p"),i.innerHTML=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-1kew6rf"&&(i.innerHTML=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function da(w){let i,$='Once logged in, all requests to the Hub - even methods that don’t necessarily require authentication - will use your access token by default. If you want to disable the implicit use of your token, you should set <code>HF_HUB_DISABLE_IMPLICIT_TOKEN=1</code> as an environment variable (see <a href="../package_reference/environment_variables#hfhubdisableimplicittoken">reference</a>).';return{c(){i=o("p"),i.innerHTML=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-1a9vyz9"&&(i.innerHTML=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function $a(w){let i,$='<strong>NEW:</strong> Google Colaboratory lets you define <a href="https://twitter.com/GoogleColab/status/1719798406195867814" rel="nofollow">private keys</a> for your notebooks. Define a <code>HF_TOKEN</code> secret to be automatically authenticated!';return{c(){i=o("p"),i.innerHTML=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-w1ks3y"&&(i.innerHTML=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function ya(w){let i,$="Please be careful when passing tokens as a parameter. It is always best practice to load the token from a secure vault instead of hardcoding it in your codebase or notebook. Hardcoded tokens present a major leak risk if you share your code inadvertently.";return{c(){i=o("p"),i.textContent=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-1r3zcky"&&(i.textContent=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function wa(w){let i,$=`To create a repository or to push content to the Hub, you must provide a User Access
Token that has the <code>write</code> permission. You can choose the permission when creating the
token in your <a href="https://huggingface.co/settings/tokens" rel="nofollow">Settings page</a>.`;return{c(){i=o("p"),i.innerHTML=$},l(r){i=p(r,"P",{"data-svelte-h":!0}),f(i)!=="svelte-e1q7ml"&&(i.innerHTML=$)},m(r,y){n(r,i,y)},p:ke,d(r){r&&a(i)}}}function ba(w){let i,$,r,y,j,He,J,Ut=`The <a href="https://huggingface.co/" rel="nofollow">Hugging Face Hub</a> is the go-to place for sharing machine learning
models, demos, datasets, and metrics. <code>huggingface_hub</code> library helps you interact with
the Hub without leaving your development environment. You can create and manage
repositories easily, download and upload files, and get useful model and dataset
metadata from the Hub.`,je,C,Je,U,Lt="To get started, install the <code>huggingface_hub</code> library:",Ce,L,Ue,x,xt='For more details, check out the <a href="installation">installation</a> guide.',Le,G,xe,I,Gt=`Repositories on the Hub are git version controlled, and users can download a single file
or the whole repository. You can use the <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.hf_hub_download">hf_hub_download()</a> function to download files.
This function will download and cache a file on your local disk. The next time you need
that file, it will load from your cache, so you don’t need to re-download it.`,Ge,Z,It=`You will need the repository id and the filename of the file you want to download. For
example, to download the <a href="https://huggingface.co/google/pegasus-xsum" rel="nofollow">Pegasus</a> model
configuration file:`,Ie,Y,Ze,P,Zt=`To download a specific version of the file, use the <code>revision</code> parameter to specify the
branch name, tag, or commit hash. If you choose to use the commit hash, it must be the
full-length hash instead of the shorter 7-character commit hash:`,Ye,X,Pe,B,Yt='For more details and options, see the API reference for <a href="/docs/huggingface_hub/main/en/package_reference/file_download#huggingface_hub.hf_hub_download">hf_hub_download()</a>.',Xe,ve,Be,E,Ee,N,Pt=`In a lot of cases, you must be authenticated with a Hugging Face account to interact with
the Hub: download private repos, upload files, create PRs,…
<a href="https://huggingface.co/join" rel="nofollow">Create an account</a> if you don’t already have one, and then sign in
to get your <a href="https://huggingface.co/docs/hub/security-tokens" rel="nofollow">User Access Token</a> from
your <a href="https://huggingface.co/settings/tokens" rel="nofollow">Settings page</a>. The User Access Token is
used to authenticate your identity to the Hub.`,Ne,v,Se,S,qe,q,Xt='The easiest way to authenticate is to save the token on your machine. You can do that from the terminal using the <a href="/docs/huggingface_hub/main/en/package_reference/authentication#huggingface_hub.login">login()</a> command:',We,W,Ae,A,Bt="The command will tell you if you are already logged in and prompt you for your token. The token is then validated and saved in your <code>HF_HOME</code> directory (defaults to <code>~/.cache/huggingface/token</code>). Any script or library interacting with the Hub will use this token when sending requests.",Qe,Q,Et='Alternatively, you can programmatically login using <a href="/docs/huggingface_hub/main/en/package_reference/authentication#huggingface_hub.login">login()</a> in a notebook or a script:',Fe,F,Ve,V,Nt="You can only be logged in to one account at a time. Logging in to a new account will automatically log you out of the previous one. To determine your currently active account, simply run the <code>hf auth whoami</code> command.",ze,_,Re,z,Oe,R,St='You can save multiple tokens on your machine by simply logging in with the <a href="/docs/huggingface_hub/main/en/package_reference/authentication#huggingface_hub.login">login()</a> command with each token. If you need to switch between these tokens locally, you can use the <code>auth switch</code> command:',De,O,Ke,D,qt="This command will prompt you to select a token by its name from a list of saved tokens. Once selected, the chosen token becomes the <em>active</em> token, and it will be used for all interactions with the Hub.",et,K,Wt="You can list all available access tokens on your machine with <code>hf auth list</code>.",tt,ee,at,te,At='The environment variable <code>HF_TOKEN</code> can also be used to authenticate yourself. This is especially useful in a Space where you can set <code>HF_TOKEN</code> as a <a href="https://huggingface.co/docs/hub/spaces-overview#managing-secrets" rel="nofollow">Space secret</a>.',nt,M,lt,ae,Qt="Authentication via an environment variable or a secret has priority over the token stored on your machine.",st,ne,it,le,Ft="Finally, it is also possible to authenticate by passing your token to any method that accepts <code>token</code> as a parameter.",ot,se,pt,ie,Vt="This is usually discouraged except in an environment where you don’t want to store your token permanently or if you need to handle several tokens at once.",rt,k,ft,oe,ut,pe,zt=`Once you’ve registered and logged in, create a repository with the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>
function:`,ht,re,mt,fe,Rt="If you want your repository to be private, then:",ct,ue,gt,he,Ot="Private repositories will not be visible to anyone except yourself.",dt,H,$t,me,yt,ce,Dt=`Use the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.upload_file">upload_file()</a> function to add a file to your newly created repository. You
need to specify:`,wt,ge,Kt="<li>The path of the file to upload.</li> <li>The path of the file in the repository.</li> <li>The repository id of where you want to add the file.</li>",bt,de,Tt,$e,ea=`To upload more than one file at a time, take a look at the <a href="./guides/upload">Upload</a> guide
which will introduce you to several methods for uploading files (with or without git).`,vt,ye,_t,we,ta=`The <code>huggingface_hub</code> library provides an easy way for users to interact with the Hub
with Python. To learn more about how you can manage your files and repositories on the
Hub, we recommend reading our <a href="./guides/overview">how-to guides</a> to:`,Mt,be,aa='<li><a href="./guides/repository">Manage your repository</a>.</li> <li><a href="./guides/download">Download</a> files from the Hub.</li> <li><a href="./guides/upload">Upload</a> files to the Hub.</li> <li><a href="./guides/search">Search the Hub</a> for your desired model or dataset.</li> <li><a href="./guides/inference">Run Inference</a> across multiple services for models hosted on the Hugging Face Hub.</li>',kt,Te,Ht,_e,jt;return j=new b({props:{title:"Quickstart",local:"quickstart",headingTag:"h1"}}),C=new b({props:{title:"Installation",local:"installation",headingTag:"h2"}}),L=new T({props:{code:"cGlwJTIwaW5zdGFsbCUyMC0tdXBncmFkZSUyMGh1Z2dpbmdmYWNlX2h1Yg==",highlighted:"pip install --upgrade huggingface_hub",wrap:!1}}),G=new b({props:{title:"Download files",local:"download-files",headingTag:"h2"}}),Y=new T({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZChyZXBvX2lkJTNEJTIyZ29vZ2xlJTJGcGVnYXN1cy14c3VtJTIyJTJDJTIwZmlsZW5hbWUlM0QlMjJjb25maWcuanNvbiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download
<span class="hljs-meta">&gt;&gt;&gt; </span>hf_hub_download(repo_id=<span class="hljs-string">&quot;google/pegasus-xsum&quot;</span>, filename=<span class="hljs-string">&quot;config.json&quot;</span>)`,wrap:!1}}),X=new T({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZCglMEElMjAlMjAlMjAlMjByZXBvX2lkJTNEJTIyZ29vZ2xlJTJGcGVnYXN1cy14c3VtJTIyJTJDJTBBJTIwJTIwJTIwJTIwZmlsZW5hbWUlM0QlMjJjb25maWcuanNvbiUyMiUyQyUwQSUyMCUyMCUyMCUyMHJldmlzaW9uJTNEJTIyNGQzM2IwMWQ3OTY3MmYyN2YwMDFmNmFiYWRlMzNmMjJkOTkzYjE1MSUyMiUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> hf_hub_download
<span class="hljs-meta">&gt;&gt;&gt; </span>hf_hub_download(
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;google/pegasus-xsum&quot;</span>,
<span class="hljs-meta">... </span>    filename=<span class="hljs-string">&quot;config.json&quot;</span>,
<span class="hljs-meta">... </span>    revision=<span class="hljs-string">&quot;4d33b01d79672f27f001f6abade33f22d993b151&quot;</span>
<span class="hljs-meta">... </span>)`,wrap:!1}}),E=new b({props:{title:"Authentication",local:"authentication",headingTag:"h2"}}),v=new Me({props:{$$slots:{default:[ga]},$$scope:{ctx:w}}}),S=new b({props:{title:"Login command",local:"login-command",headingTag:"h3"}}),W=new T({props:{code:"aGYlMjBhdXRoJTIwbG9naW4=",highlighted:"hf auth login",wrap:!1}}),F=new T({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2luJTBBbG9naW4oKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> login
<span class="hljs-meta">&gt;&gt;&gt; </span>login()`,wrap:!1}}),_=new Me({props:{warning:!0,$$slots:{default:[da]},$$scope:{ctx:w}}}),z=new b({props:{title:"Manage multiple tokens locally",local:"manage-multiple-tokens-locally",headingTag:"h3"}}),O=new T({props:{code:"aGYlMjBhdXRoJTIwc3dpdGNo",highlighted:"hf auth switch",wrap:!1}}),ee=new b({props:{title:"Environment variable",local:"environment-variable",headingTag:"h3"}}),M=new Me({props:{$$slots:{default:[$a]},$$scope:{ctx:w}}}),ne=new b({props:{title:"Method parameters",local:"method-parameters",headingTag:"h3"}}),se=new T({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHdob2FtaSUwQSUwQXVzZXIlMjAlM0QlMjB3aG9hbWkodG9rZW4lM0QuLi4p",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub import whoami
<span class="hljs-built_in">
user </span>= whoami(<span class="hljs-attribute">token</span>=...)`,wrap:!1}}),k=new Me({props:{warning:!0,$$slots:{default:[ya]},$$scope:{ctx:w}}}),oe=new b({props:{title:"Create a repository",local:"create-a-repository",headingTag:"h2"}}),re=new T({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWFwaS5jcmVhdGVfcmVwbyhyZXBvX2lkJTNEJTIyc3VwZXItY29vbC1tb2RlbCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>api.create_repo(repo_id=<span class="hljs-string">&quot;super-cool-model&quot;</span>)`,wrap:!1}}),ue=new T({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWFwaS5jcmVhdGVfcmVwbyhyZXBvX2lkJTNEJTIyc3VwZXItY29vbC1tb2RlbCUyMiUyQyUyMHByaXZhdGUlM0RUcnVlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>api.create_repo(repo_id=<span class="hljs-string">&quot;super-cool-model&quot;</span>, private=<span class="hljs-literal">True</span>)`,wrap:!1}}),H=new Me({props:{$$slots:{default:[wa]},$$scope:{ctx:w}}}),me=new b({props:{title:"Upload files",local:"upload-files",headingTag:"h2"}}),de=new T({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWFwaS51cGxvYWRfZmlsZSglMEElMjAlMjAlMjAlMjBwYXRoX29yX2ZpbGVvYmolM0QlMjIlMkZob21lJTJGbHlzYW5kcmUlMkZkdW1teS10ZXN0JTJGUkVBRE1FLm1kJTIyJTJDJTBBJTIwJTIwJTIwJTIwcGF0aF9pbl9yZXBvJTNEJTIyUkVBRE1FLm1kJTIyJTJDJTBBJTIwJTIwJTIwJTIwcmVwb19pZCUzRCUyMmx5c2FuZHJlJTJGdGVzdC1tb2RlbCUyMiUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi
<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>api.upload_file(
<span class="hljs-meta">... </span>    path_or_fileobj=<span class="hljs-string">&quot;/home/lysandre/dummy-test/README.md&quot;</span>,
<span class="hljs-meta">... </span>    path_in_repo=<span class="hljs-string">&quot;README.md&quot;</span>,
<span class="hljs-meta">... </span>    repo_id=<span class="hljs-string">&quot;lysandre/test-model&quot;</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),ye=new b({props:{title:"Next steps",local:"next-steps",headingTag:"h2"}}),Te=new ca({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/quick-start.md"}}),{c(){i=o("meta"),$=l(),r=o("p"),y=l(),u(j.$$.fragment),He=l(),J=o("p"),J.innerHTML=Ut,je=l(),u(C.$$.fragment),Je=l(),U=o("p"),U.innerHTML=Lt,Ce=l(),u(L.$$.fragment),Ue=l(),x=o("p"),x.innerHTML=xt,Le=l(),u(G.$$.fragment),xe=l(),I=o("p"),I.innerHTML=Gt,Ge=l(),Z=o("p"),Z.innerHTML=It,Ie=l(),u(Y.$$.fragment),Ze=l(),P=o("p"),P.innerHTML=Zt,Ye=l(),u(X.$$.fragment),Pe=l(),B=o("p"),B.innerHTML=Yt,Xe=l(),ve=o("a"),Be=l(),u(E.$$.fragment),Ee=l(),N=o("p"),N.innerHTML=Pt,Ne=l(),u(v.$$.fragment),Se=l(),u(S.$$.fragment),qe=l(),q=o("p"),q.innerHTML=Xt,We=l(),u(W.$$.fragment),Ae=l(),A=o("p"),A.innerHTML=Bt,Qe=l(),Q=o("p"),Q.innerHTML=Et,Fe=l(),u(F.$$.fragment),Ve=l(),V=o("p"),V.innerHTML=Nt,ze=l(),u(_.$$.fragment),Re=l(),u(z.$$.fragment),Oe=l(),R=o("p"),R.innerHTML=St,De=l(),u(O.$$.fragment),Ke=l(),D=o("p"),D.innerHTML=qt,et=l(),K=o("p"),K.innerHTML=Wt,tt=l(),u(ee.$$.fragment),at=l(),te=o("p"),te.innerHTML=At,nt=l(),u(M.$$.fragment),lt=l(),ae=o("p"),ae.textContent=Qt,st=l(),u(ne.$$.fragment),it=l(),le=o("p"),le.innerHTML=Ft,ot=l(),u(se.$$.fragment),pt=l(),ie=o("p"),ie.textContent=Vt,rt=l(),u(k.$$.fragment),ft=l(),u(oe.$$.fragment),ut=l(),pe=o("p"),pe.innerHTML=zt,ht=l(),u(re.$$.fragment),mt=l(),fe=o("p"),fe.textContent=Rt,ct=l(),u(ue.$$.fragment),gt=l(),he=o("p"),he.textContent=Ot,dt=l(),u(H.$$.fragment),$t=l(),u(me.$$.fragment),yt=l(),ce=o("p"),ce.innerHTML=Dt,wt=l(),ge=o("ol"),ge.innerHTML=Kt,bt=l(),u(de.$$.fragment),Tt=l(),$e=o("p"),$e.innerHTML=ea,vt=l(),u(ye.$$.fragment),_t=l(),we=o("p"),we.innerHTML=ta,Mt=l(),be=o("ul"),be.innerHTML=aa,kt=l(),u(Te.$$.fragment),Ht=l(),_e=o("p"),this.h()},l(e){const t=ha("svelte-u9bgzb",document.head);i=p(t,"META",{name:!0,content:!0}),t.forEach(a),$=s(e),r=p(e,"P",{}),Jt(r).forEach(a),y=s(e),h(j.$$.fragment,e),He=s(e),J=p(e,"P",{"data-svelte-h":!0}),f(J)!=="svelte-1o7lz4b"&&(J.innerHTML=Ut),je=s(e),h(C.$$.fragment,e),Je=s(e),U=p(e,"P",{"data-svelte-h":!0}),f(U)!=="svelte-d3f1yw"&&(U.innerHTML=Lt),Ce=s(e),h(L.$$.fragment,e),Ue=s(e),x=p(e,"P",{"data-svelte-h":!0}),f(x)!=="svelte-ca9fxm"&&(x.innerHTML=xt),Le=s(e),h(G.$$.fragment,e),xe=s(e),I=p(e,"P",{"data-svelte-h":!0}),f(I)!=="svelte-1xr9moc"&&(I.innerHTML=Gt),Ge=s(e),Z=p(e,"P",{"data-svelte-h":!0}),f(Z)!=="svelte-1hlz4md"&&(Z.innerHTML=It),Ie=s(e),h(Y.$$.fragment,e),Ze=s(e),P=p(e,"P",{"data-svelte-h":!0}),f(P)!=="svelte-1690qlh"&&(P.innerHTML=Zt),Ye=s(e),h(X.$$.fragment,e),Pe=s(e),B=p(e,"P",{"data-svelte-h":!0}),f(B)!=="svelte-bvgpbq"&&(B.innerHTML=Yt),Xe=s(e),ve=p(e,"A",{id:!0}),Jt(ve).forEach(a),Be=s(e),h(E.$$.fragment,e),Ee=s(e),N=p(e,"P",{"data-svelte-h":!0}),f(N)!=="svelte-sbxtta"&&(N.innerHTML=Pt),Ne=s(e),h(v.$$.fragment,e),Se=s(e),h(S.$$.fragment,e),qe=s(e),q=p(e,"P",{"data-svelte-h":!0}),f(q)!=="svelte-jhg9d7"&&(q.innerHTML=Xt),We=s(e),h(W.$$.fragment,e),Ae=s(e),A=p(e,"P",{"data-svelte-h":!0}),f(A)!=="svelte-ckmbtp"&&(A.innerHTML=Bt),Qe=s(e),Q=p(e,"P",{"data-svelte-h":!0}),f(Q)!=="svelte-q1k2t0"&&(Q.innerHTML=Et),Fe=s(e),h(F.$$.fragment,e),Ve=s(e),V=p(e,"P",{"data-svelte-h":!0}),f(V)!=="svelte-gh6r2v"&&(V.innerHTML=Nt),ze=s(e),h(_.$$.fragment,e),Re=s(e),h(z.$$.fragment,e),Oe=s(e),R=p(e,"P",{"data-svelte-h":!0}),f(R)!=="svelte-1r2ivyp"&&(R.innerHTML=St),De=s(e),h(O.$$.fragment,e),Ke=s(e),D=p(e,"P",{"data-svelte-h":!0}),f(D)!=="svelte-1coitj2"&&(D.innerHTML=qt),et=s(e),K=p(e,"P",{"data-svelte-h":!0}),f(K)!=="svelte-qut475"&&(K.innerHTML=Wt),tt=s(e),h(ee.$$.fragment,e),at=s(e),te=p(e,"P",{"data-svelte-h":!0}),f(te)!=="svelte-kj5aun"&&(te.innerHTML=At),nt=s(e),h(M.$$.fragment,e),lt=s(e),ae=p(e,"P",{"data-svelte-h":!0}),f(ae)!=="svelte-1ypx384"&&(ae.textContent=Qt),st=s(e),h(ne.$$.fragment,e),it=s(e),le=p(e,"P",{"data-svelte-h":!0}),f(le)!=="svelte-1s67ztk"&&(le.innerHTML=Ft),ot=s(e),h(se.$$.fragment,e),pt=s(e),ie=p(e,"P",{"data-svelte-h":!0}),f(ie)!=="svelte-1k7v7lg"&&(ie.textContent=Vt),rt=s(e),h(k.$$.fragment,e),ft=s(e),h(oe.$$.fragment,e),ut=s(e),pe=p(e,"P",{"data-svelte-h":!0}),f(pe)!=="svelte-fxl0yb"&&(pe.innerHTML=zt),ht=s(e),h(re.$$.fragment,e),mt=s(e),fe=p(e,"P",{"data-svelte-h":!0}),f(fe)!=="svelte-1fi8ypz"&&(fe.textContent=Rt),ct=s(e),h(ue.$$.fragment,e),gt=s(e),he=p(e,"P",{"data-svelte-h":!0}),f(he)!=="svelte-1lbz52k"&&(he.textContent=Ot),dt=s(e),h(H.$$.fragment,e),$t=s(e),h(me.$$.fragment,e),yt=s(e),ce=p(e,"P",{"data-svelte-h":!0}),f(ce)!=="svelte-1xdg7eg"&&(ce.innerHTML=Dt),wt=s(e),ge=p(e,"OL",{"data-svelte-h":!0}),f(ge)!=="svelte-1fhvo2z"&&(ge.innerHTML=Kt),bt=s(e),h(de.$$.fragment,e),Tt=s(e),$e=p(e,"P",{"data-svelte-h":!0}),f($e)!=="svelte-13v7wrf"&&($e.innerHTML=ea),vt=s(e),h(ye.$$.fragment,e),_t=s(e),we=p(e,"P",{"data-svelte-h":!0}),f(we)!=="svelte-ss1pgv"&&(we.innerHTML=ta),Mt=s(e),be=p(e,"UL",{"data-svelte-h":!0}),f(be)!=="svelte-oe88nn"&&(be.innerHTML=aa),kt=s(e),h(Te.$$.fragment,e),Ht=s(e),_e=p(e,"P",{}),Jt(_e).forEach(a),this.h()},h(){Ct(i,"name","hf:doc:metadata"),Ct(i,"content",Ta),Ct(ve,"id","login")},m(e,t){ma(document.head,i),n(e,$,t),n(e,r,t),n(e,y,t),m(j,e,t),n(e,He,t),n(e,J,t),n(e,je,t),m(C,e,t),n(e,Je,t),n(e,U,t),n(e,Ce,t),m(L,e,t),n(e,Ue,t),n(e,x,t),n(e,Le,t),m(G,e,t),n(e,xe,t),n(e,I,t),n(e,Ge,t),n(e,Z,t),n(e,Ie,t),m(Y,e,t),n(e,Ze,t),n(e,P,t),n(e,Ye,t),m(X,e,t),n(e,Pe,t),n(e,B,t),n(e,Xe,t),n(e,ve,t),n(e,Be,t),m(E,e,t),n(e,Ee,t),n(e,N,t),n(e,Ne,t),m(v,e,t),n(e,Se,t),m(S,e,t),n(e,qe,t),n(e,q,t),n(e,We,t),m(W,e,t),n(e,Ae,t),n(e,A,t),n(e,Qe,t),n(e,Q,t),n(e,Fe,t),m(F,e,t),n(e,Ve,t),n(e,V,t),n(e,ze,t),m(_,e,t),n(e,Re,t),m(z,e,t),n(e,Oe,t),n(e,R,t),n(e,De,t),m(O,e,t),n(e,Ke,t),n(e,D,t),n(e,et,t),n(e,K,t),n(e,tt,t),m(ee,e,t),n(e,at,t),n(e,te,t),n(e,nt,t),m(M,e,t),n(e,lt,t),n(e,ae,t),n(e,st,t),m(ne,e,t),n(e,it,t),n(e,le,t),n(e,ot,t),m(se,e,t),n(e,pt,t),n(e,ie,t),n(e,rt,t),m(k,e,t),n(e,ft,t),m(oe,e,t),n(e,ut,t),n(e,pe,t),n(e,ht,t),m(re,e,t),n(e,mt,t),n(e,fe,t),n(e,ct,t),m(ue,e,t),n(e,gt,t),n(e,he,t),n(e,dt,t),m(H,e,t),n(e,$t,t),m(me,e,t),n(e,yt,t),n(e,ce,t),n(e,wt,t),n(e,ge,t),n(e,bt,t),m(de,e,t),n(e,Tt,t),n(e,$e,t),n(e,vt,t),m(ye,e,t),n(e,_t,t),n(e,we,t),n(e,Mt,t),n(e,be,t),n(e,kt,t),m(Te,e,t),n(e,Ht,t),n(e,_e,t),jt=!0},p(e,[t]){const na={};t&2&&(na.$$scope={dirty:t,ctx:e}),v.$set(na);const la={};t&2&&(la.$$scope={dirty:t,ctx:e}),_.$set(la);const sa={};t&2&&(sa.$$scope={dirty:t,ctx:e}),M.$set(sa);const ia={};t&2&&(ia.$$scope={dirty:t,ctx:e}),k.$set(ia);const oa={};t&2&&(oa.$$scope={dirty:t,ctx:e}),H.$set(oa)},i(e){jt||(c(j.$$.fragment,e),c(C.$$.fragment,e),c(L.$$.fragment,e),c(G.$$.fragment,e),c(Y.$$.fragment,e),c(X.$$.fragment,e),c(E.$$.fragment,e),c(v.$$.fragment,e),c(S.$$.fragment,e),c(W.$$.fragment,e),c(F.$$.fragment,e),c(_.$$.fragment,e),c(z.$$.fragment,e),c(O.$$.fragment,e),c(ee.$$.fragment,e),c(M.$$.fragment,e),c(ne.$$.fragment,e),c(se.$$.fragment,e),c(k.$$.fragment,e),c(oe.$$.fragment,e),c(re.$$.fragment,e),c(ue.$$.fragment,e),c(H.$$.fragment,e),c(me.$$.fragment,e),c(de.$$.fragment,e),c(ye.$$.fragment,e),c(Te.$$.fragment,e),jt=!0)},o(e){g(j.$$.fragment,e),g(C.$$.fragment,e),g(L.$$.fragment,e),g(G.$$.fragment,e),g(Y.$$.fragment,e),g(X.$$.fragment,e),g(E.$$.fragment,e),g(v.$$.fragment,e),g(S.$$.fragment,e),g(W.$$.fragment,e),g(F.$$.fragment,e),g(_.$$.fragment,e),g(z.$$.fragment,e),g(O.$$.fragment,e),g(ee.$$.fragment,e),g(M.$$.fragment,e),g(ne.$$.fragment,e),g(se.$$.fragment,e),g(k.$$.fragment,e),g(oe.$$.fragment,e),g(re.$$.fragment,e),g(ue.$$.fragment,e),g(H.$$.fragment,e),g(me.$$.fragment,e),g(de.$$.fragment,e),g(ye.$$.fragment,e),g(Te.$$.fragment,e),jt=!1},d(e){e&&(a($),a(r),a(y),a(He),a(J),a(je),a(Je),a(U),a(Ce),a(Ue),a(x),a(Le),a(xe),a(I),a(Ge),a(Z),a(Ie),a(Ze),a(P),a(Ye),a(Pe),a(B),a(Xe),a(ve),a(Be),a(Ee),a(N),a(Ne),a(Se),a(qe),a(q),a(We),a(Ae),a(A),a(Qe),a(Q),a(Fe),a(Ve),a(V),a(ze),a(Re),a(Oe),a(R),a(De),a(Ke),a(D),a(et),a(K),a(tt),a(at),a(te),a(nt),a(lt),a(ae),a(st),a(it),a(le),a(ot),a(pt),a(ie),a(rt),a(ft),a(ut),a(pe),a(ht),a(mt),a(fe),a(ct),a(gt),a(he),a(dt),a($t),a(yt),a(ce),a(wt),a(ge),a(bt),a(Tt),a($e),a(vt),a(_t),a(we),a(Mt),a(be),a(kt),a(Ht),a(_e)),a(i),d(j,e),d(C,e),d(L,e),d(G,e),d(Y,e),d(X,e),d(E,e),d(v,e),d(S,e),d(W,e),d(F,e),d(_,e),d(z,e),d(O,e),d(ee,e),d(M,e),d(ne,e),d(se,e),d(k,e),d(oe,e),d(re,e),d(ue,e),d(H,e),d(me,e),d(de,e),d(ye,e),d(Te,e)}}}const Ta='{"title":"Quickstart","local":"quickstart","sections":[{"title":"Installation","local":"installation","sections":[],"depth":2},{"title":"Download files","local":"download-files","sections":[],"depth":2},{"title":"Authentication","local":"authentication","sections":[{"title":"Login command","local":"login-command","sections":[],"depth":3},{"title":"Manage multiple tokens locally","local":"manage-multiple-tokens-locally","sections":[],"depth":3},{"title":"Environment variable","local":"environment-variable","sections":[],"depth":3},{"title":"Method parameters","local":"method-parameters","sections":[],"depth":3}],"depth":2},{"title":"Create a repository","local":"create-a-repository","sections":[],"depth":2},{"title":"Upload files","local":"upload-files","sections":[],"depth":2},{"title":"Next steps","local":"next-steps","sections":[],"depth":2}],"depth":1}';function va(w){return ra(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ja extends fa{constructor(i){super(),ua(this,i,va,ba,pa,{})}}export{Ja as component};
