import{s as En,o as qn,n as Gn}from"../chunks/scheduler.6062bdaf.js";import{S as An,i as zn,g as a,s,r as p,A as Jn,h as l,f as c,c as n,j as _,u as h,x as r,k as x,y as e,a as T,v as f,d,t as g,w as u}from"../chunks/index.4bca734e.js";import{D as H}from"../chunks/Docstring.d7918b6d.js";import{C as Zn}from"../chunks/CodeBlock.fa01571c.js";import{E as Nn}from"../chunks/ExampleCodeBlock.d27cbfa4.js";import{H as In,E as Vn}from"../chunks/EditOnGithub.74ab2baa.js";function Wn(yt){let $,Q="Usage:",E,F,S;return F=new Zn({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmRmlsZVN5c3RlbSUwQSUwQWZzJTIwJTNEJTIwSGZGaWxlU3lzdGVtKCklMEElMEElMjMlMjBMaXN0JTIwZmlsZXMlMEFmcy5nbG9iKCUyMm15LXVzZXJuYW1lJTJGbXktbW9kZWwlMkYqLmJpbiUyMiklMEFmcy5scyglMjJkYXRhc2V0cyUyRm15LXVzZXJuYW1lJTJGbXktZGF0YXNldCUyMiUyQyUyMGRldGFpbCUzREZhbHNlKSUwQSUwQSUyMyUyMFJlYWQlMkZ3cml0ZSUyMGZpbGVzJTBBd2l0aCUyMGZzLm9wZW4oJTIybXktdXNlcm5hbWUlMkZteS1tb2RlbCUyRnB5dG9yY2hfbW9kZWwuYmluJTIyKSUyMGFzJTIwZiUzQSUwQSUyMCUyMCUyMCUyMGRhdGElMjAlM0QlMjBmLnJlYWQoKSUwQXdpdGglMjBmcy5vcGVuKCUyMm15LXVzZXJuYW1lJTJGbXktbW9kZWwlMkZweXRvcmNoX21vZGVsLmJpbiUyMiUyQyUyMCUyMndiJTIyKSUyMGFzJTIwZiUzQSUwQSUyMCUyMCUyMCUyMGYud3JpdGUoZGF0YSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfFileSystem

<span class="hljs-meta">&gt;&gt;&gt; </span>fs = HfFileSystem()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># List files</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>fs.glob(<span class="hljs-string">&quot;my-username/my-model/*.bin&quot;</span>)
[<span class="hljs-string">&#x27;my-username/my-model/pytorch_model.bin&#x27;</span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>fs.ls(<span class="hljs-string">&quot;datasets/my-username/my-dataset&quot;</span>, detail=<span class="hljs-literal">False</span>)
[<span class="hljs-string">&#x27;datasets/my-username/my-dataset/.gitattributes&#x27;</span>, <span class="hljs-string">&#x27;datasets/my-username/my-dataset/README.md&#x27;</span>, <span class="hljs-string">&#x27;datasets/my-username/my-dataset/data.json&#x27;</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Read/write files</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> fs.<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;my-username/my-model/pytorch_model.bin&quot;</span>) <span class="hljs-keyword">as</span> f:
<span class="hljs-meta">... </span>    data = f.read()
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> fs.<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;my-username/my-model/pytorch_model.bin&quot;</span>, <span class="hljs-string">&quot;wb&quot;</span>) <span class="hljs-keyword">as</span> f:
<span class="hljs-meta">... </span>    f.write(data)`,wrap:!1}}),{c(){$=a("p"),$.textContent=Q,E=s(),p(F.$$.fragment)},l(v){$=l(v,"P",{"data-svelte-h":!0}),r($)!=="svelte-5wyjqd"&&($.textContent=Q),E=n(v),h(F.$$.fragment,v)},m(v,I){T(v,$,I),T(v,E,I),f(F,v,I),S=!0},p:Gn,i(v){S||(d(F.$$.fragment,v),S=!0)},o(v){g(F.$$.fragment,v),S=!1},d(v){v&&(c($),c(E)),u(F,v)}}}function Xn(yt){let $,Q,E,F,S,v,I,qs='The <code>HfFileSystem</code> class provides a pythonic file interface to the Hugging Face Hub based on <a href="https://filesystem-spec.readthedocs.io/en/latest/" rel="nofollow"><code>fsspec</code></a>.',_t,Y,xt,O,Gs='<code>HfFileSystem</code> is based on <a href="https://filesystem-spec.readthedocs.io/en/latest/" rel="nofollow">fsspec</a>, so it is compatible with most of the APIs that it offers. For more details, check out <a href="../guides/hf_file_system">our guide</a> and fsspec’s <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem" rel="nofollow">API Reference</a>.',$t,i,B,Ht,ge,As="Access a remote Hugging Face Hub repository as if were a local file system.",Tt,W,Lt,w,K,Ft,ue,zs='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.__init__" rel="nofollow">fsspec documentation</a>.</em>',St,be,Js="Create and configure file-system instance",Pt,ve,Zs=`Instances may be cachable, so if similar enough arguments are seen
a new instance is not required. The token attribute exists to allow
implementations to cache instances if they wish.`,jt,ye,Ns="A reasonable default should be provided if there are no arguments.",Ut,_e,Vs="Subclasses should call this method.",Dt,q,ee,It,xe,Ws='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.exists" rel="nofollow">fsspec documentation</a>.</em>',Et,$e,Xs="Is there a file at the given path",qt,P,te,Gt,we,Rs='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.find" rel="nofollow">fsspec documentation</a>.</em>',At,Ce,Qs="List all files below path.",zt,ke,Ys="Like posix <code>find</code> command without conditions",Jt,G,se,Zt,Me,Os='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.get_file" rel="nofollow">fsspec documentation</a>.</em>',Nt,He,Bs="Copy single remote file to local",Vt,y,ne,Wt,Te,Ks='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.glob" rel="nofollow">fsspec documentation</a>.</em>',Xt,Le,en="Find files by glob-matching.",Rt,Fe,tn="If the path ends with ’/’, only folders are returned.",Qt,Se,sn=`We support <code>&quot;**&quot;</code>,
<code>&quot;?&quot;</code> and <code>&quot;[..]&quot;</code>. We do not support ^ for pattern negation.`,Yt,Pe,nn="The <em>maxdepth</em> option is applied on the first **** found in the path.",Ot,je,an="kwargs are passed to <code>ls</code>.",Bt,C,ae,Kt,Ue,ln='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.info" rel="nofollow">fsspec documentation</a>.</em>',es,De,rn="Give details of entry at path",ts,Ie,on=`Returns a single dictionary, with exactly the same information as <code>ls</code>
would with <code>detail=True</code>.`,ss,Ee,cn=`The default implementation should calls ls and could be overridden by a
shortcut. kwargs are passed on to “<code>ls()</code>.`,ns,qe,mn="Some file systems might not be able to measure the file’s size, in\nwhich case, the returned dict will include `‘size’: None“.",as,A,le,ls,Ge,pn='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.invalidate_cache" rel="nofollow">fsspec documentation</a>.</em>',rs,Ae,hn="Discard any cached directory information",is,z,re,os,ze,fn='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.isdir" rel="nofollow">fsspec documentation</a>.</em>',cs,Je,dn="Is this entry directory-like?",ms,J,ie,ps,Ze,gn='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.isfile" rel="nofollow">fsspec documentation</a>.</em>',hs,Ne,un="Is this entry file-like?",fs,b,oe,ds,Ve,bn='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.ls" rel="nofollow">fsspec documentation</a>.</em>',gs,We,vn="List objects at path.",us,Xe,yn=`This should include subdirectories and files at that location. The
difference between a file and a directory must be clear when details
are requested.`,bs,Re,_n=`The specific keys, or perhaps a FileInfo class, or similar, is TBD,
but must be consistent across implementations.
Must include:`,vs,Qe,xn=`<li>full path to the entry (without protocol)</li> <li>size of the entry, in bytes. If the value cannot be determined, will
be <code>None</code>.</li> <li>type of entry, “file”, “directory” or other</li>`,ys,Ye,$n=`Additional information
may be present, appropriate to the file-system, e.g., generation,
checksum, etc.`,_s,Oe,wn=`May use refresh=True|False to allow use of self._ls_from_cache to
check for a saved listing and avoid calling the backend. This would be
common where listing may be expensive.`,xs,Z,ce,$s,Be,Cn='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.modified" rel="nofollow">fsspec documentation</a>.</em>',ws,Ke,kn="Return the modified timestamp of a file as a datetime.datetime",Cs,N,me,ks,et,Mn='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.rm" rel="nofollow">fsspec documentation</a>.</em>',Ms,tt,Hn="Delete files.",Hs,V,pe,Ts,st,Tn='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.start_transaction" rel="nofollow">fsspec documentation</a>.</em>',Ls,nt,Ln="Begin write transaction for deferring files, non-context version",Fs,X,he,Ss,at,Fn="Get the HTTP URL of the given path",Ps,k,fe,js,lt,Sn='<em>Docstring taken from <a href="https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.spec.AbstractFileSystem.walk" rel="nofollow">fsspec documentation</a>.</em>',Us,rt,Pn="Return all files belows path",Ds,it,jn=`List all files, recursing into subdirectories; output is iterator-style,
like <code>os.walk()</code>. For a simple list of files, <code>find()</code> is available.`,Is,ot,Un=`When topdown is True, the caller can modify the dirnames list in-place (perhaps
using del or slice assignment), and walk() will
only recurse into the subdirectories whose names remain in dirnames;
this can be used to prune the search, impose a specific order of visiting,
or even to inform walk() about directories the caller creates or renames before
it resumes walk() again.
Modifying dirnames when topdown is False has no effect. (see os.walk)`,Es,ct,Dn=`Note that the “files” outputted will include anything that is not
a directory, such as links.`,wt,de,Ct,vt,kt;return S=new In({props:{title:"Filesystem API",local:"filesystem-api",headingTag:"h1"}}),Y=new In({props:{title:"HfFileSystem",local:"huggingface_hub.HfFileSystem",headingTag:"h2"}}),B=new H({props:{name:"class huggingface_hub.HfFileSystem",anchor:"huggingface_hub.HfFileSystem",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.HfFileSystem.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
A valid user access token (string). Defaults to the locally saved
token, which is the recommended method for authentication (see
<a href="https://huggingface.co/docs/huggingface_hub/quick-start#authentication" rel="nofollow">https://huggingface.co/docs/huggingface_hub/quick-start#authentication</a>).
To disable authentication, pass <code>False</code>.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L73"}}),W=new Nn({props:{anchor:"huggingface_hub.HfFileSystem.example",$$slots:{default:[Wn]},$$scope:{ctx:yt}}}),K=new H({props:{name:"__init__",anchor:"huggingface_hub.HfFileSystem.__init__",parameters:[{name:"*args",val:""},{name:"endpoint",val:": Optional = None"},{name:"token",val:": Union = None"},{name:"**storage_options",val:""}],parametersDescription:[{anchor:"huggingface_hub.HfFileSystem.__init__.use_listings_cache,",description:`<strong>use_listings_cache,</strong> listings_expiry_time, max_paths &#x2014;
passed to <code>DirCache</code>, if the implementation supports
directory listing caching. Pass use_listings_cache=False
to disable such caching.
skip_instance_cache &#x2014; bool
If this is a cachable implementation, pass True here to force
creating a new instance even if a matching instance exists, and prevent
storing this instance.
asynchronous &#x2014; bool
loop &#x2014; asyncio-compatible IOLoop or None`,name:"use_listings_cache,"}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L108"}}),ee=new H({props:{name:"exists",anchor:"huggingface_hub.HfFileSystem.exists",parameters:[{name:"path",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L580"}}),te=new H({props:{name:"find",anchor:"huggingface_hub.HfFileSystem.find",parameters:[{name:"path",val:": str"},{name:"maxdepth",val:": Optional = None"},{name:"withdirs",val:": bool = False"},{name:"detail",val:": bool = False"},{name:"refresh",val:": bool = False"},{name:"revision",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.HfFileSystem.find.path",description:`<strong>path</strong>  &#x2014; str
maxdepth &#x2014; int or None
If not None, the maximum number of levels to descend
withdirs &#x2014; bool
Whether to include directory paths in the output. This is True
when used by glob, but users usually only want files.`,name:"path"},{anchor:"huggingface_hub.HfFileSystem.find.kwargs",description:"<strong>kwargs</strong> are passed to <code>ls</code>. &#x2014;",name:"kwargs"}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L419"}}),se=new H({props:{name:"get_file",anchor:"huggingface_hub.HfFileSystem.get_file",parameters:[{name:"rpath",val:""},{name:"lpath",val:""},{name:"callback",val:" = <fsspec.callbacks.NoOpCallback object at 0x7fd3211a4760>"},{name:"outfile",val:" = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L617"}}),ne=new H({props:{name:"glob",anchor:"huggingface_hub.HfFileSystem.glob",parameters:[{name:"path",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L413"}}),ae=new H({props:{name:"info",anchor:"huggingface_hub.HfFileSystem.info",parameters:[{name:"path",val:": str"},{name:"refresh",val:": bool = False"},{name:"revision",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L503",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>name (full path in the FS), size (in bytes), type (file,
directory, or something else) and other FS-specific keys.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>dict with keys</p>
`}}),le=new H({props:{name:"invalidate_cache",anchor:"huggingface_hub.HfFileSystem.invalidate_cache",parameters:[{name:"path",val:": Optional = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L219"}}),re=new H({props:{name:"isdir",anchor:"huggingface_hub.HfFileSystem.isdir",parameters:[{name:"path",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L589"}}),ie=new H({props:{name:"isfile",anchor:"huggingface_hub.HfFileSystem.isfile",parameters:[{name:"path",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L596"}}),oe=new H({props:{name:"ls",anchor:"huggingface_hub.HfFileSystem.ls",parameters:[{name:"path",val:": str"},{name:"detail",val:": bool = True"},{name:"refresh",val:": bool = False"},{name:"revision",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L284",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of strings if detail is False, or list of directory information
dicts if detail is True.</p>
`}}),ce=new H({props:{name:"modified",anchor:"huggingface_hub.HfFileSystem.modified",parameters:[{name:"path",val:": str"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L499"}}),me=new H({props:{name:"rm",anchor:"huggingface_hub.HfFileSystem.rm",parameters:[{name:"path",val:": str"},{name:"recursive",val:": bool = False"},{name:"maxdepth",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L257"}}),pe=new H({props:{name:"start_transaction",anchor:"huggingface_hub.HfFileSystem.start_transaction",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L680"}}),he=new H({props:{name:"url",anchor:"huggingface_hub.HfFileSystem.url",parameters:[{name:"path",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L603"}}),fe=new H({props:{name:"walk",anchor:"huggingface_hub.HfFileSystem.walk",parameters:[{name:"path",val:""},{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/vr_2426/src/huggingface_hub/hf_file_system.py#L407"}}),de=new Vn({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/hf_file_system.md"}}),{c(){$=a("meta"),Q=s(),E=a("p"),F=s(),p(S.$$.fragment),v=s(),I=a("p"),I.innerHTML=qs,_t=s(),p(Y.$$.fragment),xt=s(),O=a("p"),O.innerHTML=Gs,$t=s(),i=a("div"),p(B.$$.fragment),Ht=s(),ge=a("p"),ge.textContent=As,Tt=s(),p(W.$$.fragment),Lt=s(),w=a("div"),p(K.$$.fragment),Ft=s(),ue=a("p"),ue.innerHTML=zs,St=s(),be=a("p"),be.textContent=Js,Pt=s(),ve=a("p"),ve.textContent=Zs,jt=s(),ye=a("p"),ye.textContent=Ns,Ut=s(),_e=a("p"),_e.textContent=Vs,Dt=s(),q=a("div"),p(ee.$$.fragment),It=s(),xe=a("p"),xe.innerHTML=Ws,Et=s(),$e=a("p"),$e.textContent=Xs,qt=s(),P=a("div"),p(te.$$.fragment),Gt=s(),we=a("p"),we.innerHTML=Rs,At=s(),Ce=a("p"),Ce.textContent=Qs,zt=s(),ke=a("p"),ke.innerHTML=Ys,Jt=s(),G=a("div"),p(se.$$.fragment),Zt=s(),Me=a("p"),Me.innerHTML=Os,Nt=s(),He=a("p"),He.textContent=Bs,Vt=s(),y=a("div"),p(ne.$$.fragment),Wt=s(),Te=a("p"),Te.innerHTML=Ks,Xt=s(),Le=a("p"),Le.textContent=en,Rt=s(),Fe=a("p"),Fe.textContent=tn,Qt=s(),Se=a("p"),Se.innerHTML=sn,Yt=s(),Pe=a("p"),Pe.innerHTML=nn,Ot=s(),je=a("p"),je.innerHTML=an,Bt=s(),C=a("div"),p(ae.$$.fragment),Kt=s(),Ue=a("p"),Ue.innerHTML=ln,es=s(),De=a("p"),De.textContent=rn,ts=s(),Ie=a("p"),Ie.innerHTML=on,ss=s(),Ee=a("p"),Ee.innerHTML=cn,ns=s(),qe=a("p"),qe.textContent=mn,as=s(),A=a("div"),p(le.$$.fragment),ls=s(),Ge=a("p"),Ge.innerHTML=pn,rs=s(),Ae=a("p"),Ae.textContent=hn,is=s(),z=a("div"),p(re.$$.fragment),os=s(),ze=a("p"),ze.innerHTML=fn,cs=s(),Je=a("p"),Je.textContent=dn,ms=s(),J=a("div"),p(ie.$$.fragment),ps=s(),Ze=a("p"),Ze.innerHTML=gn,hs=s(),Ne=a("p"),Ne.textContent=un,fs=s(),b=a("div"),p(oe.$$.fragment),ds=s(),Ve=a("p"),Ve.innerHTML=bn,gs=s(),We=a("p"),We.textContent=vn,us=s(),Xe=a("p"),Xe.textContent=yn,bs=s(),Re=a("p"),Re.textContent=_n,vs=s(),Qe=a("ul"),Qe.innerHTML=xn,ys=s(),Ye=a("p"),Ye.textContent=$n,_s=s(),Oe=a("p"),Oe.textContent=wn,xs=s(),Z=a("div"),p(ce.$$.fragment),$s=s(),Be=a("p"),Be.innerHTML=Cn,ws=s(),Ke=a("p"),Ke.textContent=kn,Cs=s(),N=a("div"),p(me.$$.fragment),ks=s(),et=a("p"),et.innerHTML=Mn,Ms=s(),tt=a("p"),tt.textContent=Hn,Hs=s(),V=a("div"),p(pe.$$.fragment),Ts=s(),st=a("p"),st.innerHTML=Tn,Ls=s(),nt=a("p"),nt.textContent=Ln,Fs=s(),X=a("div"),p(he.$$.fragment),Ss=s(),at=a("p"),at.textContent=Fn,Ps=s(),k=a("div"),p(fe.$$.fragment),js=s(),lt=a("p"),lt.innerHTML=Sn,Us=s(),rt=a("p"),rt.textContent=Pn,Ds=s(),it=a("p"),it.innerHTML=jn,Is=s(),ot=a("p"),ot.textContent=Un,Es=s(),ct=a("p"),ct.textContent=Dn,wt=s(),p(de.$$.fragment),Ct=s(),vt=a("p"),this.h()},l(t){const m=Jn("svelte-u9bgzb",document.head);$=l(m,"META",{name:!0,content:!0}),m.forEach(c),Q=n(t),E=l(t,"P",{}),_(E).forEach(c),F=n(t),h(S.$$.fragment,t),v=n(t),I=l(t,"P",{"data-svelte-h":!0}),r(I)!=="svelte-em1lpf"&&(I.innerHTML=qs),_t=n(t),h(Y.$$.fragment,t),xt=n(t),O=l(t,"P",{"data-svelte-h":!0}),r(O)!=="svelte-1c4o3of"&&(O.innerHTML=Gs),$t=n(t),i=l(t,"DIV",{class:!0});var o=_(i);h(B.$$.fragment,o),Ht=n(o),ge=l(o,"P",{"data-svelte-h":!0}),r(ge)!=="svelte-xq4u8v"&&(ge.textContent=As),Tt=n(o),h(W.$$.fragment,o),Lt=n(o),w=l(o,"DIV",{class:!0});var j=_(w);h(K.$$.fragment,j),Ft=n(j),ue=l(j,"P",{"data-svelte-h":!0}),r(ue)!=="svelte-1lg9e07"&&(ue.innerHTML=zs),St=n(j),be=l(j,"P",{"data-svelte-h":!0}),r(be)!=="svelte-6mr0mw"&&(be.textContent=Js),Pt=n(j),ve=l(j,"P",{"data-svelte-h":!0}),r(ve)!=="svelte-1ezkvwe"&&(ve.textContent=Zs),jt=n(j),ye=l(j,"P",{"data-svelte-h":!0}),r(ye)!=="svelte-1vfq4q7"&&(ye.textContent=Ns),Ut=n(j),_e=l(j,"P",{"data-svelte-h":!0}),r(_e)!=="svelte-djtx9s"&&(_e.textContent=Vs),j.forEach(c),Dt=n(o),q=l(o,"DIV",{class:!0});var mt=_(q);h(ee.$$.fragment,mt),It=n(mt),xe=l(mt,"P",{"data-svelte-h":!0}),r(xe)!=="svelte-g4vb5p"&&(xe.innerHTML=Ws),Et=n(mt),$e=l(mt,"P",{"data-svelte-h":!0}),r($e)!=="svelte-kz14kf"&&($e.textContent=Xs),mt.forEach(c),qt=n(o),P=l(o,"DIV",{class:!0});var R=_(P);h(te.$$.fragment,R),Gt=n(R),we=l(R,"P",{"data-svelte-h":!0}),r(we)!=="svelte-1jbxpa"&&(we.innerHTML=Rs),At=n(R),Ce=l(R,"P",{"data-svelte-h":!0}),r(Ce)!=="svelte-1ensbyu"&&(Ce.textContent=Qs),zt=n(R),ke=l(R,"P",{"data-svelte-h":!0}),r(ke)!=="svelte-mg7fj9"&&(ke.innerHTML=Ys),R.forEach(c),Jt=n(o),G=l(o,"DIV",{class:!0});var pt=_(G);h(se.$$.fragment,pt),Zt=n(pt),Me=l(pt,"P",{"data-svelte-h":!0}),r(Me)!=="svelte-ki29c6"&&(Me.innerHTML=Os),Nt=n(pt),He=l(pt,"P",{"data-svelte-h":!0}),r(He)!=="svelte-4kp9e5"&&(He.textContent=Bs),pt.forEach(c),Vt=n(o),y=l(o,"DIV",{class:!0});var L=_(y);h(ne.$$.fragment,L),Wt=n(L),Te=l(L,"P",{"data-svelte-h":!0}),r(Te)!=="svelte-lq9c1r"&&(Te.innerHTML=Ks),Xt=n(L),Le=l(L,"P",{"data-svelte-h":!0}),r(Le)!=="svelte-mro2r1"&&(Le.textContent=en),Rt=n(L),Fe=l(L,"P",{"data-svelte-h":!0}),r(Fe)!=="svelte-1yxqsqk"&&(Fe.textContent=tn),Qt=n(L),Se=l(L,"P",{"data-svelte-h":!0}),r(Se)!=="svelte-1nz2orz"&&(Se.innerHTML=sn),Yt=n(L),Pe=l(L,"P",{"data-svelte-h":!0}),r(Pe)!=="svelte-h8b1yi"&&(Pe.innerHTML=nn),Ot=n(L),je=l(L,"P",{"data-svelte-h":!0}),r(je)!=="svelte-p3h3w8"&&(je.innerHTML=an),L.forEach(c),Bt=n(o),C=l(o,"DIV",{class:!0});var U=_(C);h(ae.$$.fragment,U),Kt=n(U),Ue=l(U,"P",{"data-svelte-h":!0}),r(Ue)!=="svelte-w6kap9"&&(Ue.innerHTML=ln),es=n(U),De=l(U,"P",{"data-svelte-h":!0}),r(De)!=="svelte-r46z08"&&(De.textContent=rn),ts=n(U),Ie=l(U,"P",{"data-svelte-h":!0}),r(Ie)!=="svelte-4usi9z"&&(Ie.innerHTML=on),ss=n(U),Ee=l(U,"P",{"data-svelte-h":!0}),r(Ee)!=="svelte-1x6i5g6"&&(Ee.innerHTML=cn),ns=n(U),qe=l(U,"P",{"data-svelte-h":!0}),r(qe)!=="svelte-1no4tl6"&&(qe.textContent=mn),U.forEach(c),as=n(o),A=l(o,"DIV",{class:!0});var ht=_(A);h(le.$$.fragment,ht),ls=n(ht),Ge=l(ht,"P",{"data-svelte-h":!0}),r(Ge)!=="svelte-k2ojg5"&&(Ge.innerHTML=pn),rs=n(ht),Ae=l(ht,"P",{"data-svelte-h":!0}),r(Ae)!=="svelte-xhhuo1"&&(Ae.textContent=hn),ht.forEach(c),is=n(o),z=l(o,"DIV",{class:!0});var ft=_(z);h(re.$$.fragment,ft),os=n(ft),ze=l(ft,"P",{"data-svelte-h":!0}),r(ze)!=="svelte-1vtt6ma"&&(ze.innerHTML=fn),cs=n(ft),Je=l(ft,"P",{"data-svelte-h":!0}),r(Je)!=="svelte-1fsmvni"&&(Je.textContent=dn),ft.forEach(c),ms=n(o),J=l(o,"DIV",{class:!0});var dt=_(J);h(ie.$$.fragment,dt),ps=n(dt),Ze=l(dt,"P",{"data-svelte-h":!0}),r(Ze)!=="svelte-pjrpzv"&&(Ze.innerHTML=gn),hs=n(dt),Ne=l(dt,"P",{"data-svelte-h":!0}),r(Ne)!=="svelte-1ukeuph"&&(Ne.textContent=un),dt.forEach(c),fs=n(o),b=l(o,"DIV",{class:!0});var M=_(b);h(oe.$$.fragment,M),ds=n(M),Ve=l(M,"P",{"data-svelte-h":!0}),r(Ve)!=="svelte-4ekjsg"&&(Ve.innerHTML=bn),gs=n(M),We=l(M,"P",{"data-svelte-h":!0}),r(We)!=="svelte-13qkfyu"&&(We.textContent=vn),us=n(M),Xe=l(M,"P",{"data-svelte-h":!0}),r(Xe)!=="svelte-r2vfzq"&&(Xe.textContent=yn),bs=n(M),Re=l(M,"P",{"data-svelte-h":!0}),r(Re)!=="svelte-1t8ax86"&&(Re.textContent=_n),vs=n(M),Qe=l(M,"UL",{"data-svelte-h":!0}),r(Qe)!=="svelte-kx6yxa"&&(Qe.innerHTML=xn),ys=n(M),Ye=l(M,"P",{"data-svelte-h":!0}),r(Ye)!=="svelte-ljm3ks"&&(Ye.textContent=$n),_s=n(M),Oe=l(M,"P",{"data-svelte-h":!0}),r(Oe)!=="svelte-45veql"&&(Oe.textContent=wn),M.forEach(c),xs=n(o),Z=l(o,"DIV",{class:!0});var gt=_(Z);h(ce.$$.fragment,gt),$s=n(gt),Be=l(gt,"P",{"data-svelte-h":!0}),r(Be)!=="svelte-19cc4q"&&(Be.innerHTML=Cn),ws=n(gt),Ke=l(gt,"P",{"data-svelte-h":!0}),r(Ke)!=="svelte-1tpgkqx"&&(Ke.textContent=kn),gt.forEach(c),Cs=n(o),N=l(o,"DIV",{class:!0});var ut=_(N);h(me.$$.fragment,ut),ks=n(ut),et=l(ut,"P",{"data-svelte-h":!0}),r(et)!=="svelte-12ejhcs"&&(et.innerHTML=Mn),Ms=n(ut),tt=l(ut,"P",{"data-svelte-h":!0}),r(tt)!=="svelte-66rmse"&&(tt.textContent=Hn),ut.forEach(c),Hs=n(o),V=l(o,"DIV",{class:!0});var bt=_(V);h(pe.$$.fragment,bt),Ts=n(bt),st=l(bt,"P",{"data-svelte-h":!0}),r(st)!=="svelte-16gfcim"&&(st.innerHTML=Tn),Ls=n(bt),nt=l(bt,"P",{"data-svelte-h":!0}),r(nt)!=="svelte-10fzjej"&&(nt.textContent=Ln),bt.forEach(c),Fs=n(o),X=l(o,"DIV",{class:!0});var Mt=_(X);h(he.$$.fragment,Mt),Ss=n(Mt),at=l(Mt,"P",{"data-svelte-h":!0}),r(at)!=="svelte-1wtwvim"&&(at.textContent=Fn),Mt.forEach(c),Ps=n(o),k=l(o,"DIV",{class:!0});var D=_(k);h(fe.$$.fragment,D),js=n(D),lt=l(D,"P",{"data-svelte-h":!0}),r(lt)!=="svelte-1uo5aws"&&(lt.innerHTML=Sn),Us=n(D),rt=l(D,"P",{"data-svelte-h":!0}),r(rt)!=="svelte-gnsnxp"&&(rt.textContent=Pn),Ds=n(D),it=l(D,"P",{"data-svelte-h":!0}),r(it)!=="svelte-1upcsyv"&&(it.innerHTML=jn),Is=n(D),ot=l(D,"P",{"data-svelte-h":!0}),r(ot)!=="svelte-i7s9hq"&&(ot.textContent=Un),Es=n(D),ct=l(D,"P",{"data-svelte-h":!0}),r(ct)!=="svelte-xago2e"&&(ct.textContent=Dn),D.forEach(c),o.forEach(c),wt=n(t),h(de.$$.fragment,t),Ct=n(t),vt=l(t,"P",{}),_(vt).forEach(c),this.h()},h(){x($,"name","hf:doc:metadata"),x($,"content",Rn),x(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(i,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,m){e(document.head,$),T(t,Q,m),T(t,E,m),T(t,F,m),f(S,t,m),T(t,v,m),T(t,I,m),T(t,_t,m),f(Y,t,m),T(t,xt,m),T(t,O,m),T(t,$t,m),T(t,i,m),f(B,i,null),e(i,Ht),e(i,ge),e(i,Tt),f(W,i,null),e(i,Lt),e(i,w),f(K,w,null),e(w,Ft),e(w,ue),e(w,St),e(w,be),e(w,Pt),e(w,ve),e(w,jt),e(w,ye),e(w,Ut),e(w,_e),e(i,Dt),e(i,q),f(ee,q,null),e(q,It),e(q,xe),e(q,Et),e(q,$e),e(i,qt),e(i,P),f(te,P,null),e(P,Gt),e(P,we),e(P,At),e(P,Ce),e(P,zt),e(P,ke),e(i,Jt),e(i,G),f(se,G,null),e(G,Zt),e(G,Me),e(G,Nt),e(G,He),e(i,Vt),e(i,y),f(ne,y,null),e(y,Wt),e(y,Te),e(y,Xt),e(y,Le),e(y,Rt),e(y,Fe),e(y,Qt),e(y,Se),e(y,Yt),e(y,Pe),e(y,Ot),e(y,je),e(i,Bt),e(i,C),f(ae,C,null),e(C,Kt),e(C,Ue),e(C,es),e(C,De),e(C,ts),e(C,Ie),e(C,ss),e(C,Ee),e(C,ns),e(C,qe),e(i,as),e(i,A),f(le,A,null),e(A,ls),e(A,Ge),e(A,rs),e(A,Ae),e(i,is),e(i,z),f(re,z,null),e(z,os),e(z,ze),e(z,cs),e(z,Je),e(i,ms),e(i,J),f(ie,J,null),e(J,ps),e(J,Ze),e(J,hs),e(J,Ne),e(i,fs),e(i,b),f(oe,b,null),e(b,ds),e(b,Ve),e(b,gs),e(b,We),e(b,us),e(b,Xe),e(b,bs),e(b,Re),e(b,vs),e(b,Qe),e(b,ys),e(b,Ye),e(b,_s),e(b,Oe),e(i,xs),e(i,Z),f(ce,Z,null),e(Z,$s),e(Z,Be),e(Z,ws),e(Z,Ke),e(i,Cs),e(i,N),f(me,N,null),e(N,ks),e(N,et),e(N,Ms),e(N,tt),e(i,Hs),e(i,V),f(pe,V,null),e(V,Ts),e(V,st),e(V,Ls),e(V,nt),e(i,Fs),e(i,X),f(he,X,null),e(X,Ss),e(X,at),e(i,Ps),e(i,k),f(fe,k,null),e(k,js),e(k,lt),e(k,Us),e(k,rt),e(k,Ds),e(k,it),e(k,Is),e(k,ot),e(k,Es),e(k,ct),T(t,wt,m),f(de,t,m),T(t,Ct,m),T(t,vt,m),kt=!0},p(t,[m]){const o={};m&2&&(o.$$scope={dirty:m,ctx:t}),W.$set(o)},i(t){kt||(d(S.$$.fragment,t),d(Y.$$.fragment,t),d(B.$$.fragment,t),d(W.$$.fragment,t),d(K.$$.fragment,t),d(ee.$$.fragment,t),d(te.$$.fragment,t),d(se.$$.fragment,t),d(ne.$$.fragment,t),d(ae.$$.fragment,t),d(le.$$.fragment,t),d(re.$$.fragment,t),d(ie.$$.fragment,t),d(oe.$$.fragment,t),d(ce.$$.fragment,t),d(me.$$.fragment,t),d(pe.$$.fragment,t),d(he.$$.fragment,t),d(fe.$$.fragment,t),d(de.$$.fragment,t),kt=!0)},o(t){g(S.$$.fragment,t),g(Y.$$.fragment,t),g(B.$$.fragment,t),g(W.$$.fragment,t),g(K.$$.fragment,t),g(ee.$$.fragment,t),g(te.$$.fragment,t),g(se.$$.fragment,t),g(ne.$$.fragment,t),g(ae.$$.fragment,t),g(le.$$.fragment,t),g(re.$$.fragment,t),g(ie.$$.fragment,t),g(oe.$$.fragment,t),g(ce.$$.fragment,t),g(me.$$.fragment,t),g(pe.$$.fragment,t),g(he.$$.fragment,t),g(fe.$$.fragment,t),g(de.$$.fragment,t),kt=!1},d(t){t&&(c(Q),c(E),c(F),c(v),c(I),c(_t),c(xt),c(O),c($t),c(i),c(wt),c(Ct),c(vt)),c($),u(S,t),u(Y,t),u(B),u(W),u(K),u(ee),u(te),u(se),u(ne),u(ae),u(le),u(re),u(ie),u(oe),u(ce),u(me),u(pe),u(he),u(fe),u(de,t)}}}const Rn='{"title":"Filesystem API","local":"filesystem-api","sections":[{"title":"HfFileSystem","local":"huggingface_hub.HfFileSystem","sections":[],"depth":2}],"depth":1}';function Qn(yt){return qn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class sa extends An{constructor($){super(),zn(this,$,Qn,Xn,En,{})}}export{sa as component};
