import{s as Es,o as qs,n as Gs}from"../chunks/scheduler.6062bdaf.js";import{S as As,i as zs,g as a,s as n,r as p,A as Js,h as l,f as c,c as s,j as _,u as h,x as i,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 Zs}from"../chunks/CodeBlock.fa01571c.js";import{E as Ns}from"../chunks/ExampleCodeBlock.d27cbfa4.js";import{H as Is,E as Vs}from"../chunks/EditOnGithub.74ab2baa.js";function Ws(yt){let $,Q="Usage:",E,F,S;return F=new Zs({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=n(),p(F.$$.fragment)},l(v){$=l(v,"P",{"data-svelte-h":!0}),i($)!=="svelte-5wyjqd"&&($.textContent=Q),E=s(v),h(F.$$.fragment,v)},m(v,I){T(v,$,I),T(v,E,I),f(F,v,I),S=!0},p:Gs,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 Xs(yt){let $,Q,E,F,S,v,I,Gn='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,An='<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,r,B,Ht,ge,zn="Access a remote Hugging Face Hub repository as if were a local file system.",Tt,W,Lt,w,K,Ft,ue,Jn='<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,Zn="Create and configure file-system instance",Pt,ve,Nn=`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,Vn="A reasonable default should be provided if there are no arguments.",Ut,_e,Wn="Subclasses should call this method.",Dt,q,ee,It,xe,Xn='<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,Rn="Is there a file at the given path",qt,P,te,Gt,we,Qn='<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,Yn="List all files below path.",zt,ke,On="Like posix <code>find</code> command without conditions",Jt,G,ne,Zt,Me,Bn='<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,Kn="Copy single remote file to local",Vt,y,se,Wt,Te,es='<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,ts="Find files by glob-matching.",Rt,Fe,ns="If the path ends with ’/’, only folders are returned.",Qt,Se,ss=`We support <code>&quot;**&quot;</code>,
<code>&quot;?&quot;</code> and <code>&quot;[..]&quot;</code>. We do not support ^ for pattern negation.`,Yt,Pe,as="The <em>maxdepth</em> option is applied on the first **** found in the path.",Ot,je,ls="kwargs are passed to <code>ls</code>.",Bt,C,ae,Kt,Ue,is='<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>',en,De,rs="Give details of entry at path",tn,Ie,os=`Returns a single dictionary, with exactly the same information as <code>ls</code>
would with <code>detail=True</code>.`,nn,Ee,cs=`The default implementation should calls ls and could be overridden by a
shortcut. kwargs are passed on to “<code>ls()</code>.`,sn,qe,ms="Some file systems might not be able to measure the file’s size, in\nwhich case, the returned dict will include `‘size’: None“.",an,A,le,ln,Ge,ps='<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>',rn,Ae,hs="Discard any cached directory information",on,z,ie,cn,ze,fs='<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>',mn,Je,ds="Is this entry directory-like?",pn,J,re,hn,Ze,gs='<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>',fn,Ne,us="Is this entry file-like?",dn,b,oe,gn,Ve,bs='<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>',un,We,vs="List objects at path.",bn,Xe,ys=`This should include subdirectories and files at that location. The
difference between a file and a directory must be clear when details
are requested.`,vn,Re,_s=`The specific keys, or perhaps a FileInfo class, or similar, is TBD,
but must be consistent across implementations.
Must include:`,yn,Qe,xs=`<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>`,_n,Ye,$s=`Additional information
may be present, appropriate to the file-system, e.g., generation,
checksum, etc.`,xn,Oe,ws=`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.`,$n,Z,ce,wn,Be,Cs='<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>',Cn,Ke,ks="Return the modified timestamp of a file as a datetime.datetime",kn,N,me,Mn,et,Ms='<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>',Hn,tt,Hs="Delete files.",Tn,V,pe,Ln,nt,Ts='<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>',Fn,st,Ls="Begin write transaction for deferring files, non-context version",Sn,X,he,Pn,at,Fs="Get the HTTP URL of the given path",jn,k,fe,Un,lt,Ss='<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>',Dn,it,Ps="Return all files belows path",In,rt,js=`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.`,En,ot,Us=`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)`,qn,ct,Ds=`Note that the “files” outputted will include anything that is not
a directory, such as links.`,wt,de,Ct,vt,kt;return S=new Is({props:{title:"Filesystem API",local:"filesystem-api",headingTag:"h1"}}),Y=new Is({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/main/src/huggingface_hub/hf_file_system.py#L63"}}),W=new Ns({props:{anchor:"huggingface_hub.HfFileSystem.example",$$slots:{default:[Ws]},$$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/main/src/huggingface_hub/hf_file_system.py#L98"}}),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/main/src/huggingface_hub/hf_file_system.py#L572"}}),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/main/src/huggingface_hub/hf_file_system.py#L411"}}),ne=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 0x7f817cbbbb80>"},{name:"outfile",val:" = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_file_system.py#L609"}}),se=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/main/src/huggingface_hub/hf_file_system.py#L405"}}),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/main/src/huggingface_hub/hf_file_system.py#L495",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/main/src/huggingface_hub/hf_file_system.py#L211"}}),ie=new H({props:{name:"isdir",anchor:"huggingface_hub.HfFileSystem.isdir",parameters:[{name:"path",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_file_system.py#L581"}}),re=new H({props:{name:"isfile",anchor:"huggingface_hub.HfFileSystem.isfile",parameters:[{name:"path",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_file_system.py#L588"}}),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/main/src/huggingface_hub/hf_file_system.py#L276",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/main/src/huggingface_hub/hf_file_system.py#L491"}}),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/main/src/huggingface_hub/hf_file_system.py#L249"}}),pe=new H({props:{name:"start_transaction",anchor:"huggingface_hub.HfFileSystem.start_transaction",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_file_system.py#L672"}}),he=new H({props:{name:"url",anchor:"huggingface_hub.HfFileSystem.url",parameters:[{name:"path",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/hf_file_system.py#L595"}}),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/main/src/huggingface_hub/hf_file_system.py#L399"}}),de=new Vs({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/hf_file_system.md"}}),{c(){$=a("meta"),Q=n(),E=a("p"),F=n(),p(S.$$.fragment),v=n(),I=a("p"),I.innerHTML=Gn,_t=n(),p(Y.$$.fragment),xt=n(),O=a("p"),O.innerHTML=An,$t=n(),r=a("div"),p(B.$$.fragment),Ht=n(),ge=a("p"),ge.textContent=zn,Tt=n(),p(W.$$.fragment),Lt=n(),w=a("div"),p(K.$$.fragment),Ft=n(),ue=a("p"),ue.innerHTML=Jn,St=n(),be=a("p"),be.textContent=Zn,Pt=n(),ve=a("p"),ve.textContent=Nn,jt=n(),ye=a("p"),ye.textContent=Vn,Ut=n(),_e=a("p"),_e.textContent=Wn,Dt=n(),q=a("div"),p(ee.$$.fragment),It=n(),xe=a("p"),xe.innerHTML=Xn,Et=n(),$e=a("p"),$e.textContent=Rn,qt=n(),P=a("div"),p(te.$$.fragment),Gt=n(),we=a("p"),we.innerHTML=Qn,At=n(),Ce=a("p"),Ce.textContent=Yn,zt=n(),ke=a("p"),ke.innerHTML=On,Jt=n(),G=a("div"),p(ne.$$.fragment),Zt=n(),Me=a("p"),Me.innerHTML=Bn,Nt=n(),He=a("p"),He.textContent=Kn,Vt=n(),y=a("div"),p(se.$$.fragment),Wt=n(),Te=a("p"),Te.innerHTML=es,Xt=n(),Le=a("p"),Le.textContent=ts,Rt=n(),Fe=a("p"),Fe.textContent=ns,Qt=n(),Se=a("p"),Se.innerHTML=ss,Yt=n(),Pe=a("p"),Pe.innerHTML=as,Ot=n(),je=a("p"),je.innerHTML=ls,Bt=n(),C=a("div"),p(ae.$$.fragment),Kt=n(),Ue=a("p"),Ue.innerHTML=is,en=n(),De=a("p"),De.textContent=rs,tn=n(),Ie=a("p"),Ie.innerHTML=os,nn=n(),Ee=a("p"),Ee.innerHTML=cs,sn=n(),qe=a("p"),qe.textContent=ms,an=n(),A=a("div"),p(le.$$.fragment),ln=n(),Ge=a("p"),Ge.innerHTML=ps,rn=n(),Ae=a("p"),Ae.textContent=hs,on=n(),z=a("div"),p(ie.$$.fragment),cn=n(),ze=a("p"),ze.innerHTML=fs,mn=n(),Je=a("p"),Je.textContent=ds,pn=n(),J=a("div"),p(re.$$.fragment),hn=n(),Ze=a("p"),Ze.innerHTML=gs,fn=n(),Ne=a("p"),Ne.textContent=us,dn=n(),b=a("div"),p(oe.$$.fragment),gn=n(),Ve=a("p"),Ve.innerHTML=bs,un=n(),We=a("p"),We.textContent=vs,bn=n(),Xe=a("p"),Xe.textContent=ys,vn=n(),Re=a("p"),Re.textContent=_s,yn=n(),Qe=a("ul"),Qe.innerHTML=xs,_n=n(),Ye=a("p"),Ye.textContent=$s,xn=n(),Oe=a("p"),Oe.textContent=ws,$n=n(),Z=a("div"),p(ce.$$.fragment),wn=n(),Be=a("p"),Be.innerHTML=Cs,Cn=n(),Ke=a("p"),Ke.textContent=ks,kn=n(),N=a("div"),p(me.$$.fragment),Mn=n(),et=a("p"),et.innerHTML=Ms,Hn=n(),tt=a("p"),tt.textContent=Hs,Tn=n(),V=a("div"),p(pe.$$.fragment),Ln=n(),nt=a("p"),nt.innerHTML=Ts,Fn=n(),st=a("p"),st.textContent=Ls,Sn=n(),X=a("div"),p(he.$$.fragment),Pn=n(),at=a("p"),at.textContent=Fs,jn=n(),k=a("div"),p(fe.$$.fragment),Un=n(),lt=a("p"),lt.innerHTML=Ss,Dn=n(),it=a("p"),it.textContent=Ps,In=n(),rt=a("p"),rt.innerHTML=js,En=n(),ot=a("p"),ot.textContent=Us,qn=n(),ct=a("p"),ct.textContent=Ds,wt=n(),p(de.$$.fragment),Ct=n(),vt=a("p"),this.h()},l(t){const m=Js("svelte-u9bgzb",document.head);$=l(m,"META",{name:!0,content:!0}),m.forEach(c),Q=s(t),E=l(t,"P",{}),_(E).forEach(c),F=s(t),h(S.$$.fragment,t),v=s(t),I=l(t,"P",{"data-svelte-h":!0}),i(I)!=="svelte-em1lpf"&&(I.innerHTML=Gn),_t=s(t),h(Y.$$.fragment,t),xt=s(t),O=l(t,"P",{"data-svelte-h":!0}),i(O)!=="svelte-1c4o3of"&&(O.innerHTML=An),$t=s(t),r=l(t,"DIV",{class:!0});var o=_(r);h(B.$$.fragment,o),Ht=s(o),ge=l(o,"P",{"data-svelte-h":!0}),i(ge)!=="svelte-xq4u8v"&&(ge.textContent=zn),Tt=s(o),h(W.$$.fragment,o),Lt=s(o),w=l(o,"DIV",{class:!0});var j=_(w);h(K.$$.fragment,j),Ft=s(j),ue=l(j,"P",{"data-svelte-h":!0}),i(ue)!=="svelte-1lg9e07"&&(ue.innerHTML=Jn),St=s(j),be=l(j,"P",{"data-svelte-h":!0}),i(be)!=="svelte-6mr0mw"&&(be.textContent=Zn),Pt=s(j),ve=l(j,"P",{"data-svelte-h":!0}),i(ve)!=="svelte-1ezkvwe"&&(ve.textContent=Nn),jt=s(j),ye=l(j,"P",{"data-svelte-h":!0}),i(ye)!=="svelte-1vfq4q7"&&(ye.textContent=Vn),Ut=s(j),_e=l(j,"P",{"data-svelte-h":!0}),i(_e)!=="svelte-djtx9s"&&(_e.textContent=Wn),j.forEach(c),Dt=s(o),q=l(o,"DIV",{class:!0});var mt=_(q);h(ee.$$.fragment,mt),It=s(mt),xe=l(mt,"P",{"data-svelte-h":!0}),i(xe)!=="svelte-g4vb5p"&&(xe.innerHTML=Xn),Et=s(mt),$e=l(mt,"P",{"data-svelte-h":!0}),i($e)!=="svelte-kz14kf"&&($e.textContent=Rn),mt.forEach(c),qt=s(o),P=l(o,"DIV",{class:!0});var R=_(P);h(te.$$.fragment,R),Gt=s(R),we=l(R,"P",{"data-svelte-h":!0}),i(we)!=="svelte-1jbxpa"&&(we.innerHTML=Qn),At=s(R),Ce=l(R,"P",{"data-svelte-h":!0}),i(Ce)!=="svelte-1ensbyu"&&(Ce.textContent=Yn),zt=s(R),ke=l(R,"P",{"data-svelte-h":!0}),i(ke)!=="svelte-mg7fj9"&&(ke.innerHTML=On),R.forEach(c),Jt=s(o),G=l(o,"DIV",{class:!0});var pt=_(G);h(ne.$$.fragment,pt),Zt=s(pt),Me=l(pt,"P",{"data-svelte-h":!0}),i(Me)!=="svelte-ki29c6"&&(Me.innerHTML=Bn),Nt=s(pt),He=l(pt,"P",{"data-svelte-h":!0}),i(He)!=="svelte-4kp9e5"&&(He.textContent=Kn),pt.forEach(c),Vt=s(o),y=l(o,"DIV",{class:!0});var L=_(y);h(se.$$.fragment,L),Wt=s(L),Te=l(L,"P",{"data-svelte-h":!0}),i(Te)!=="svelte-lq9c1r"&&(Te.innerHTML=es),Xt=s(L),Le=l(L,"P",{"data-svelte-h":!0}),i(Le)!=="svelte-mro2r1"&&(Le.textContent=ts),Rt=s(L),Fe=l(L,"P",{"data-svelte-h":!0}),i(Fe)!=="svelte-1yxqsqk"&&(Fe.textContent=ns),Qt=s(L),Se=l(L,"P",{"data-svelte-h":!0}),i(Se)!=="svelte-1nz2orz"&&(Se.innerHTML=ss),Yt=s(L),Pe=l(L,"P",{"data-svelte-h":!0}),i(Pe)!=="svelte-h8b1yi"&&(Pe.innerHTML=as),Ot=s(L),je=l(L,"P",{"data-svelte-h":!0}),i(je)!=="svelte-p3h3w8"&&(je.innerHTML=ls),L.forEach(c),Bt=s(o),C=l(o,"DIV",{class:!0});var U=_(C);h(ae.$$.fragment,U),Kt=s(U),Ue=l(U,"P",{"data-svelte-h":!0}),i(Ue)!=="svelte-w6kap9"&&(Ue.innerHTML=is),en=s(U),De=l(U,"P",{"data-svelte-h":!0}),i(De)!=="svelte-r46z08"&&(De.textContent=rs),tn=s(U),Ie=l(U,"P",{"data-svelte-h":!0}),i(Ie)!=="svelte-4usi9z"&&(Ie.innerHTML=os),nn=s(U),Ee=l(U,"P",{"data-svelte-h":!0}),i(Ee)!=="svelte-1x6i5g6"&&(Ee.innerHTML=cs),sn=s(U),qe=l(U,"P",{"data-svelte-h":!0}),i(qe)!=="svelte-1no4tl6"&&(qe.textContent=ms),U.forEach(c),an=s(o),A=l(o,"DIV",{class:!0});var ht=_(A);h(le.$$.fragment,ht),ln=s(ht),Ge=l(ht,"P",{"data-svelte-h":!0}),i(Ge)!=="svelte-k2ojg5"&&(Ge.innerHTML=ps),rn=s(ht),Ae=l(ht,"P",{"data-svelte-h":!0}),i(Ae)!=="svelte-xhhuo1"&&(Ae.textContent=hs),ht.forEach(c),on=s(o),z=l(o,"DIV",{class:!0});var ft=_(z);h(ie.$$.fragment,ft),cn=s(ft),ze=l(ft,"P",{"data-svelte-h":!0}),i(ze)!=="svelte-1vtt6ma"&&(ze.innerHTML=fs),mn=s(ft),Je=l(ft,"P",{"data-svelte-h":!0}),i(Je)!=="svelte-1fsmvni"&&(Je.textContent=ds),ft.forEach(c),pn=s(o),J=l(o,"DIV",{class:!0});var dt=_(J);h(re.$$.fragment,dt),hn=s(dt),Ze=l(dt,"P",{"data-svelte-h":!0}),i(Ze)!=="svelte-pjrpzv"&&(Ze.innerHTML=gs),fn=s(dt),Ne=l(dt,"P",{"data-svelte-h":!0}),i(Ne)!=="svelte-1ukeuph"&&(Ne.textContent=us),dt.forEach(c),dn=s(o),b=l(o,"DIV",{class:!0});var M=_(b);h(oe.$$.fragment,M),gn=s(M),Ve=l(M,"P",{"data-svelte-h":!0}),i(Ve)!=="svelte-4ekjsg"&&(Ve.innerHTML=bs),un=s(M),We=l(M,"P",{"data-svelte-h":!0}),i(We)!=="svelte-13qkfyu"&&(We.textContent=vs),bn=s(M),Xe=l(M,"P",{"data-svelte-h":!0}),i(Xe)!=="svelte-r2vfzq"&&(Xe.textContent=ys),vn=s(M),Re=l(M,"P",{"data-svelte-h":!0}),i(Re)!=="svelte-1t8ax86"&&(Re.textContent=_s),yn=s(M),Qe=l(M,"UL",{"data-svelte-h":!0}),i(Qe)!=="svelte-kx6yxa"&&(Qe.innerHTML=xs),_n=s(M),Ye=l(M,"P",{"data-svelte-h":!0}),i(Ye)!=="svelte-ljm3ks"&&(Ye.textContent=$s),xn=s(M),Oe=l(M,"P",{"data-svelte-h":!0}),i(Oe)!=="svelte-45veql"&&(Oe.textContent=ws),M.forEach(c),$n=s(o),Z=l(o,"DIV",{class:!0});var gt=_(Z);h(ce.$$.fragment,gt),wn=s(gt),Be=l(gt,"P",{"data-svelte-h":!0}),i(Be)!=="svelte-19cc4q"&&(Be.innerHTML=Cs),Cn=s(gt),Ke=l(gt,"P",{"data-svelte-h":!0}),i(Ke)!=="svelte-1tpgkqx"&&(Ke.textContent=ks),gt.forEach(c),kn=s(o),N=l(o,"DIV",{class:!0});var ut=_(N);h(me.$$.fragment,ut),Mn=s(ut),et=l(ut,"P",{"data-svelte-h":!0}),i(et)!=="svelte-12ejhcs"&&(et.innerHTML=Ms),Hn=s(ut),tt=l(ut,"P",{"data-svelte-h":!0}),i(tt)!=="svelte-66rmse"&&(tt.textContent=Hs),ut.forEach(c),Tn=s(o),V=l(o,"DIV",{class:!0});var bt=_(V);h(pe.$$.fragment,bt),Ln=s(bt),nt=l(bt,"P",{"data-svelte-h":!0}),i(nt)!=="svelte-16gfcim"&&(nt.innerHTML=Ts),Fn=s(bt),st=l(bt,"P",{"data-svelte-h":!0}),i(st)!=="svelte-10fzjej"&&(st.textContent=Ls),bt.forEach(c),Sn=s(o),X=l(o,"DIV",{class:!0});var Mt=_(X);h(he.$$.fragment,Mt),Pn=s(Mt),at=l(Mt,"P",{"data-svelte-h":!0}),i(at)!=="svelte-1wtwvim"&&(at.textContent=Fs),Mt.forEach(c),jn=s(o),k=l(o,"DIV",{class:!0});var D=_(k);h(fe.$$.fragment,D),Un=s(D),lt=l(D,"P",{"data-svelte-h":!0}),i(lt)!=="svelte-1uo5aws"&&(lt.innerHTML=Ss),Dn=s(D),it=l(D,"P",{"data-svelte-h":!0}),i(it)!=="svelte-gnsnxp"&&(it.textContent=Ps),In=s(D),rt=l(D,"P",{"data-svelte-h":!0}),i(rt)!=="svelte-1upcsyv"&&(rt.innerHTML=js),En=s(D),ot=l(D,"P",{"data-svelte-h":!0}),i(ot)!=="svelte-i7s9hq"&&(ot.textContent=Us),qn=s(D),ct=l(D,"P",{"data-svelte-h":!0}),i(ct)!=="svelte-xago2e"&&(ct.textContent=Ds),D.forEach(c),o.forEach(c),wt=s(t),h(de.$$.fragment,t),Ct=s(t),vt=l(t,"P",{}),_(vt).forEach(c),this.h()},h(){x($,"name","hf:doc:metadata"),x($,"content",Rs),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(r,"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,r,m),f(B,r,null),e(r,Ht),e(r,ge),e(r,Tt),f(W,r,null),e(r,Lt),e(r,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(r,Dt),e(r,q),f(ee,q,null),e(q,It),e(q,xe),e(q,Et),e(q,$e),e(r,qt),e(r,P),f(te,P,null),e(P,Gt),e(P,we),e(P,At),e(P,Ce),e(P,zt),e(P,ke),e(r,Jt),e(r,G),f(ne,G,null),e(G,Zt),e(G,Me),e(G,Nt),e(G,He),e(r,Vt),e(r,y),f(se,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(r,Bt),e(r,C),f(ae,C,null),e(C,Kt),e(C,Ue),e(C,en),e(C,De),e(C,tn),e(C,Ie),e(C,nn),e(C,Ee),e(C,sn),e(C,qe),e(r,an),e(r,A),f(le,A,null),e(A,ln),e(A,Ge),e(A,rn),e(A,Ae),e(r,on),e(r,z),f(ie,z,null),e(z,cn),e(z,ze),e(z,mn),e(z,Je),e(r,pn),e(r,J),f(re,J,null),e(J,hn),e(J,Ze),e(J,fn),e(J,Ne),e(r,dn),e(r,b),f(oe,b,null),e(b,gn),e(b,Ve),e(b,un),e(b,We),e(b,bn),e(b,Xe),e(b,vn),e(b,Re),e(b,yn),e(b,Qe),e(b,_n),e(b,Ye),e(b,xn),e(b,Oe),e(r,$n),e(r,Z),f(ce,Z,null),e(Z,wn),e(Z,Be),e(Z,Cn),e(Z,Ke),e(r,kn),e(r,N),f(me,N,null),e(N,Mn),e(N,et),e(N,Hn),e(N,tt),e(r,Tn),e(r,V),f(pe,V,null),e(V,Ln),e(V,nt),e(V,Fn),e(V,st),e(r,Sn),e(r,X),f(he,X,null),e(X,Pn),e(X,at),e(r,jn),e(r,k),f(fe,k,null),e(k,Un),e(k,lt),e(k,Dn),e(k,it),e(k,In),e(k,rt),e(k,En),e(k,ot),e(k,qn),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(ne.$$.fragment,t),d(se.$$.fragment,t),d(ae.$$.fragment,t),d(le.$$.fragment,t),d(ie.$$.fragment,t),d(re.$$.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(ne.$$.fragment,t),g(se.$$.fragment,t),g(ae.$$.fragment,t),g(le.$$.fragment,t),g(ie.$$.fragment,t),g(re.$$.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(r),c(wt),c(Ct),c(vt)),c($),u(S,t),u(Y,t),u(B),u(W),u(K),u(ee),u(te),u(ne),u(se),u(ae),u(le),u(ie),u(re),u(oe),u(ce),u(me),u(pe),u(he),u(fe),u(de,t)}}}const Rs='{"title":"Filesystem API","local":"filesystem-api","sections":[{"title":"HfFileSystem","local":"huggingface_hub.HfFileSystem","sections":[],"depth":2}],"depth":1}';function Qs(yt){return qs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class na extends As{constructor($){super(),zs(this,$,Qs,Xs,Es,{})}}export{na as component};
