import{s as So,o as Wo,n as B}from"../chunks/scheduler.6062bdaf.js";import{S as Yo,i as zo,g as u,s as n,r as h,A as Po,h as p,f as a,c as l,j,u as d,x as c,k as T,y as i,a as r,v as f,d as m,t as b,w as _}from"../chunks/index.4bca734e.js";import{T as qo}from"../chunks/Tip.b9ac1f03.js";import{D as J}from"../chunks/Docstring.ed07512f.js";import{C}from"../chunks/CodeBlock.fa01571c.js";import{E as V}from"../chunks/ExampleCodeBlock.823fb173.js";import{H as x}from"../chunks/Heading.723dceba.js";function Qo(w){let o,M="HuggingFace Hub has following logging levels:",y,g,$="<li><code>huggingface_hub.logging.CRITICAL</code>, <code>huggingface_hub.logging.FATAL</code></li> <li><code>huggingface_hub.logging.ERROR</code></li> <li><code>huggingface_hub.logging.WARNING</code>, <code>huggingface_hub.logging.WARN</code></li> <li><code>huggingface_hub.logging.INFO</code></li> <li><code>huggingface_hub.logging.DEBUG</code></li>";return{c(){o=u("p"),o.textContent=M,y=n(),g=u("ul"),g.innerHTML=$},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-8pck4"&&(o.textContent=M),y=l(t),g=p(t,"UL",{"data-svelte-h":!0}),c(g)!=="svelte-cayy8n"&&(g.innerHTML=$)},m(t,v){r(t,o,v),r(t,y,v),r(t,g,v)},p:B,d(t){t&&(a(o),a(y),a(g))}}}function Ao(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9sb2dnZXIlMEElMEFsb2dnZXIlMjAlM0QlMjBnZXRfbG9nZ2VyKF9fZmlsZV9fKSUwQWxvZ2dlci5zZXRfdmVyYm9zaXR5X2luZm8oKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_logger

<span class="hljs-meta">&gt;&gt;&gt; </span>logger = get_logger(__file__)
<span class="hljs-meta">&gt;&gt;&gt; </span>logger.set_verbosity_info()`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function Do(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViJTIwaW1wb3J0JTIwY29uZmlndXJlX2h0dHBfYmFja2VuZCUyQyUyMGdldF9zZXNzaW9uJTBBJTBBJTIzJTIwQ3JlYXRlJTIwYSUyMGZhY3RvcnklMjBmdW5jdGlvbiUyMHRoYXQlMjByZXR1cm5zJTIwYSUyMFNlc3Npb24lMjB3aXRoJTIwY29uZmlndXJlZCUyMHByb3hpZXMlMEFkZWYlMjBiYWNrZW5kX2ZhY3RvcnkoKSUyMC0lM0UlMjByZXF1ZXN0cy5TZXNzaW9uJTNBJTBBJTIwJTIwJTIwJTIwc2Vzc2lvbiUyMCUzRCUyMHJlcXVlc3RzLlNlc3Npb24oKSUwQSUyMCUyMCUyMCUyMHNlc3Npb24ucHJveGllcyUyMCUzRCUyMCU3QiUyMmh0dHAlMjIlM0ElMjAlMjJodHRwJTNBJTJGJTJGMTAuMTAuMS4xMCUzQTMxMjglMjIlMkMlMjAlMjJodHRwcyUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGMTAuMTAuMS4xMSUzQTEwODAlMjIlN0QlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBzZXNzaW9uJTBBJTBBJTIzJTIwU2V0JTIwaXQlMjBhcyUyMHRoZSUyMGRlZmF1bHQlMjBzZXNzaW9uJTIwZmFjdG9yeSUwQWNvbmZpZ3VyZV9odHRwX2JhY2tlbmQoYmFja2VuZF9mYWN0b3J5JTNEYmFja2VuZF9mYWN0b3J5KSUwQSUwQSUyMyUyMEluJTIwcHJhY3RpY2UlMkMlMjB0aGlzJTIwaXMlMjBtb3N0bHklMjBkb25lJTIwaW50ZXJuYWxseSUyMGluJTIwJTYwaHVnZ2luZ2ZhY2VfaHViJTYwJTBBc2Vzc2lvbiUyMCUzRCUyMGdldF9zZXNzaW9uKCk=",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> configure_http_backend, get_session

<span class="hljs-comment"># Create a factory function that returns a Session with configured proxies</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">backend_factory</span>() -&gt; requests.Session:
    session = requests.Session()
    session.proxies = {<span class="hljs-string">&quot;http&quot;</span>: <span class="hljs-string">&quot;http://10.10.1.10:3128&quot;</span>, <span class="hljs-string">&quot;https&quot;</span>: <span class="hljs-string">&quot;https://10.10.1.11:1080&quot;</span>}
    <span class="hljs-keyword">return</span> session

<span class="hljs-comment"># Set it as the default session factory</span>
configure_http_backend(backend_factory=backend_factory)

<span class="hljs-comment"># In practice, this is mostly done internally in \`huggingface_hub\`</span>
session = get_session()`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function Ko(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViJTIwaW1wb3J0JTIwY29uZmlndXJlX2h0dHBfYmFja2VuZCUyQyUyMGdldF9zZXNzaW9uJTBBJTBBJTIzJTIwQ3JlYXRlJTIwYSUyMGZhY3RvcnklMjBmdW5jdGlvbiUyMHRoYXQlMjByZXR1cm5zJTIwYSUyMFNlc3Npb24lMjB3aXRoJTIwY29uZmlndXJlZCUyMHByb3hpZXMlMEFkZWYlMjBiYWNrZW5kX2ZhY3RvcnkoKSUyMC0lM0UlMjByZXF1ZXN0cy5TZXNzaW9uJTNBJTBBJTIwJTIwJTIwJTIwc2Vzc2lvbiUyMCUzRCUyMHJlcXVlc3RzLlNlc3Npb24oKSUwQSUyMCUyMCUyMCUyMHNlc3Npb24ucHJveGllcyUyMCUzRCUyMCU3QiUyMmh0dHAlMjIlM0ElMjAlMjJodHRwJTNBJTJGJTJGMTAuMTAuMS4xMCUzQTMxMjglMjIlMkMlMjAlMjJodHRwcyUyMiUzQSUyMCUyMmh0dHBzJTNBJTJGJTJGMTAuMTAuMS4xMSUzQTEwODAlMjIlN0QlMEElMjAlMjAlMjAlMjByZXR1cm4lMjBzZXNzaW9uJTBBJTBBJTIzJTIwU2V0JTIwaXQlMjBhcyUyMHRoZSUyMGRlZmF1bHQlMjBzZXNzaW9uJTIwZmFjdG9yeSUwQWNvbmZpZ3VyZV9odHRwX2JhY2tlbmQoYmFja2VuZF9mYWN0b3J5JTNEYmFja2VuZF9mYWN0b3J5KSUwQSUwQSUyMyUyMEluJTIwcHJhY3RpY2UlMkMlMjB0aGlzJTIwaXMlMjBtb3N0bHklMjBkb25lJTIwaW50ZXJuYWxseSUyMGluJTIwJTYwaHVnZ2luZ2ZhY2VfaHViJTYwJTBBc2Vzc2lvbiUyMCUzRCUyMGdldF9zZXNzaW9uKCk=",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> configure_http_backend, get_session

<span class="hljs-comment"># Create a factory function that returns a Session with configured proxies</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">backend_factory</span>() -&gt; requests.Session:
    session = requests.Session()
    session.proxies = {<span class="hljs-string">&quot;http&quot;</span>: <span class="hljs-string">&quot;http://10.10.1.10:3128&quot;</span>, <span class="hljs-string">&quot;https&quot;</span>: <span class="hljs-string">&quot;https://10.10.1.11:1080&quot;</span>}
    <span class="hljs-keyword">return</span> session

<span class="hljs-comment"># Set it as the default session factory</span>
configure_http_backend(backend_factory=backend_factory)

<span class="hljs-comment"># In practice, this is mostly done internally in \`huggingface_hub\`</span>
session = get_session()`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function Oo(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"JTIwJTIwJTIwJTIwaW1wb3J0JTIwcmVxdWVzdHMlMEElMjAlMjAlMjAlMjBmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViLnV0aWxzJTIwaW1wb3J0JTIwZ2V0X3Nlc3Npb24lMkMlMjBoZl9yYWlzZV9mb3Jfc3RhdHVzJTJDJTIwSGZIdWJIVFRQRXJyb3IlMEElMEElMjAlMjAlMjAlMjByZXNwb25zZSUyMCUzRCUyMGdldF9zZXNzaW9uKCkucG9zdCguLi4pJTBBJTIwJTIwJTIwJTIwdHJ5JTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwaGZfcmFpc2VfZm9yX3N0YXR1cyhyZXNwb25zZSklMEElMjAlMjAlMjAlMjBleGNlcHQlMjBIZkh1YkhUVFBFcnJvciUyMGFzJTIwZSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByaW50KHN0cihlKSklMjAlMjMlMjBmb3JtYXR0ZWQlMjBtZXNzYWdlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZS5yZXF1ZXN0X2lkJTJDJTIwZS5zZXJ2ZXJfbWVzc2FnZSUyMCUyMyUyMGRldGFpbHMlMjByZXR1cm5lZCUyMGJ5JTIwc2VydmVyJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwQ29tcGxldGUlMjB0aGUlMjBlcnJvciUyMG1lc3NhZ2UlMjB3aXRoJTIwYWRkaXRpb25hbCUyMGluZm9ybWF0aW9uJTIwb25jZSUyMGl0J3MlMjByYWlzZWQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlLmFwcGVuZF90b19tZXNzYWdlKCUyMiUwQWF0ZV9jb21taXQlNjAlMjBleHBlY3RzJTIwdGhlJTIwcmVwb3NpdG9yeSUyMHRvJTIwZXhpc3QuJTIyKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJhaXNl",highlighted:`    <span class="hljs-keyword">import</span> requests
    <span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> get_session, hf_raise_for_status, HfHubHTTPError

    response = get_session().post(...)
    <span class="hljs-keyword">try</span>:
        hf_raise_for_status(response)
    <span class="hljs-keyword">except</span> HfHubHTTPError <span class="hljs-keyword">as</span> e:
        <span class="hljs-built_in">print</span>(<span class="hljs-built_in">str</span>(e)) <span class="hljs-comment"># formatted message</span>
        e.request_id, e.server_message <span class="hljs-comment"># details returned by server</span>

        <span class="hljs-comment"># Complete the error message with additional information once it&#x27;s raised</span>
        e.append_to_message(<span class="hljs-string">&quot;
ate_commit\` expects the repository to exist.&quot;</span>)
        <span class="hljs-keyword">raise</span>`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function ei(w){let o,M="Raises when the request has failed:",y,g,$=`<li><a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.RepositoryNotFoundError">RepositoryNotFoundError</a>
If the repository to download from cannot be found. This may be because it
doesn’t exist, because <code>repo_type</code> is not set correctly, or because the repo
is <code>private</code> and you do not have access.</li> <li><a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.GatedRepoError">GatedRepoError</a>
If the repository exists but is gated and the user is not on the authorized
list.</li> <li><a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.RevisionNotFoundError">RevisionNotFoundError</a>
If the repository exists but the revision couldn’t be find.</li> <li><a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.EntryNotFoundError">EntryNotFoundError</a>
If the repository exists but the entry (e.g. the requested file) couldn’t be
find.</li> <li><a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.BadRequestError">BadRequestError</a>
If request failed with a HTTP 400 BadRequest error.</li> <li><a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.HfHubHTTPError">HfHubHTTPError</a>
If request failed for a reason not listed above.</li>`;return{c(){o=u("p"),o.textContent=M,y=n(),g=u("ul"),g.innerHTML=$},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-2ocftk"&&(o.textContent=M),y=l(t),g=p(t,"UL",{"data-svelte-h":!0}),c(g)!=="svelte-cx20y5"&&(g.innerHTML=$)},m(t,v){r(t,o,v),r(t,y,v),r(t,g,v)},p:B,d(t){t&&(a(o),a(y),a(g))}}}function ti(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"JTIwJTIwJTIwJTIwaW1wb3J0JTIwcmVxdWVzdHMlMEElMjAlMjAlMjAlMjBmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViLnV0aWxzJTIwaW1wb3J0JTIwZ2V0X3Nlc3Npb24lMkMlMjBoZl9yYWlzZV9mb3Jfc3RhdHVzJTJDJTIwSGZIdWJIVFRQRXJyb3IlMEElMEElMjAlMjAlMjAlMjByZXNwb25zZSUyMCUzRCUyMGdldF9zZXNzaW9uKCkucG9zdCguLi4pJTBBJTIwJTIwJTIwJTIwdHJ5JTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwaGZfcmFpc2VfZm9yX3N0YXR1cyhyZXNwb25zZSklMEElMjAlMjAlMjAlMjBleGNlcHQlMjBIZkh1YkhUVFBFcnJvciUyMGFzJTIwZSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHByaW50KHN0cihlKSklMjAlMjMlMjBmb3JtYXR0ZWQlMjBtZXNzYWdlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZS5yZXF1ZXN0X2lkJTJDJTIwZS5zZXJ2ZXJfbWVzc2FnZSUyMCUyMyUyMGRldGFpbHMlMjByZXR1cm5lZCUyMGJ5JTIwc2VydmVyJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwQ29tcGxldGUlMjB0aGUlMjBlcnJvciUyMG1lc3NhZ2UlMjB3aXRoJTIwYWRkaXRpb25hbCUyMGluZm9ybWF0aW9uJTIwb25jZSUyMGl0J3MlMjByYWlzZWQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlLmFwcGVuZF90b19tZXNzYWdlKCUyMiUwQWF0ZV9jb21taXQlNjAlMjBleHBlY3RzJTIwdGhlJTIwcmVwb3NpdG9yeSUyMHRvJTIwZXhpc3QuJTIyKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJhaXNl",highlighted:`    <span class="hljs-keyword">import</span> requests
    <span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> get_session, hf_raise_for_status, HfHubHTTPError

    response = get_session().post(...)
    <span class="hljs-keyword">try</span>:
        hf_raise_for_status(response)
    <span class="hljs-keyword">except</span> HfHubHTTPError <span class="hljs-keyword">as</span> e:
        <span class="hljs-built_in">print</span>(<span class="hljs-built_in">str</span>(e)) <span class="hljs-comment"># formatted message</span>
        e.request_id, e.server_message <span class="hljs-comment"># details returned by server</span>

        <span class="hljs-comment"># Complete the error message with additional information once it&#x27;s raised</span>
        e.append_to_message(<span class="hljs-string">&quot;
ate_commit\` expects the repository to exist.&quot;</span>)
        <span class="hljs-keyword">raise</span>`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function si(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG1vZGVsX2luZm8lMEFtb2RlbF9pbmZvKCUyMiUzQ25vbl9leGlzdGVudF9yZXBvc2l0b3J5JTNFJTIyKSUwQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> model_info
<span class="hljs-meta">&gt;&gt;&gt; </span>model_info(<span class="hljs-string">&quot;&lt;non_existent_repository&gt;&quot;</span>)
(...)
huggingface_hub.utils._errors.RepositoryNotFoundError: <span class="hljs-number">401</span> Client Error. (Request ID: PvMw_VjBMjVdMz53WKIzP)

Repository Not Found <span class="hljs-keyword">for</span> url: https://huggingface.co/api/models/%3Cnon_existent_repository%3E.
Please make sure you specified the correct \`repo_id\` <span class="hljs-keyword">and</span> \`repo_type\`.
If the repo <span class="hljs-keyword">is</span> private, make sure you are authenticated.
Invalid username <span class="hljs-keyword">or</span> password.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function ai(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG1vZGVsX2luZm8lMEFtb2RlbF9pbmZvKCUyMiUzQ2dhdGVkX3JlcG9zaXRvcnklM0UlMjIpJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> model_info
<span class="hljs-meta">&gt;&gt;&gt; </span>model_info(<span class="hljs-string">&quot;&lt;gated_repository&gt;&quot;</span>)
(...)
huggingface_hub.utils._errors.GatedRepoError: <span class="hljs-number">403</span> Client Error. (Request ID: ViT1Bf7O_026LGSQuVqfa)

Cannot access gated repo <span class="hljs-keyword">for</span> url https://huggingface.co/api/models/ardent-figment/gated-model.
Access to model ardent-figment/gated-model <span class="hljs-keyword">is</span> restricted <span class="hljs-keyword">and</span> you are <span class="hljs-keyword">not</span> <span class="hljs-keyword">in</span> the authorized <span class="hljs-built_in">list</span>.
Visit https://huggingface.co/ardent-figment/gated-model to ask <span class="hljs-keyword">for</span> access.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function ni(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZCgnYmVydC1iYXNlLWNhc2VkJyUyQyUyMCdjb25maWcuanNvbiclMkMlMjByZXZpc2lvbiUzRCclM0Nub24tZXhpc3RlbnQtcmV2aXNpb24lM0UnKSUwQQ==",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-string">&#x27;bert-base-cased&#x27;</span>, <span class="hljs-string">&#x27;config.json&#x27;</span>, revision=<span class="hljs-string">&#x27;&lt;non-existent-revision&gt;&#x27;</span>)
(...)
huggingface_hub.utils._errors.RevisionNotFoundError: <span class="hljs-number">404</span> Client Error. (Request ID: Mwhe_c3Kt650GcdKEFomX)

Revision Not Found <span class="hljs-keyword">for</span> url: https://huggingface.co/bert-base-cased/resolve/%3Cnon-existent-revision%3E/config.json.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function li(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZCgnYmVydC1iYXNlLWNhc2VkJyUyQyUyMCclM0Nub24tZXhpc3RlbnQtZmlsZSUzRScpJTBB",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-string">&#x27;bert-base-cased&#x27;</span>, <span class="hljs-string">&#x27;&lt;non-existent-file&gt;&#x27;</span>)
(...)
huggingface_hub.utils._errors.EntryNotFoundError: <span class="hljs-number">404</span> Client Error. (Request ID: 53pNl6M0MxsnG5Sw8JA6x)

Entry Not Found <span class="hljs-keyword">for</span> url: https://huggingface.co/bert-base-cased/resolve/main/%3Cnon-existent-file%3E.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function ri(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"cmVzcCUyMCUzRCUyMHJlcXVlc3RzLnBvc3QoJTIyaGYuY28lMkZhcGklMkZjaGVjayUyMiUyQyUyMC4uLiklMEFoZl9yYWlzZV9mb3Jfc3RhdHVzKHJlc3AlMkMlMjBlbmRwb2ludF9uYW1lJTNEJTIyY2hlY2slMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>resp = requests.post(<span class="hljs-string">&quot;hf.co/api/check&quot;</span>, ...)
<span class="hljs-meta">&gt;&gt;&gt; </span>hf_raise_for_status(resp, endpoint_name=<span class="hljs-string">&quot;check&quot;</span>)
huggingface_hub.utils._errors.BadRequestError: Bad request <span class="hljs-keyword">for</span> check endpoint: {details} (Request ID: XXX)`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function oi(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGhmX2h1Yl9kb3dubG9hZCUwQWhmX2h1Yl9kb3dubG9hZCgnYmVydC1iYXNlLWNhc2VkJyUyQyUyMCclM0Nub24tY2FjaGVkLWZpbGUlM0UnJTJDJTIwJTIwbG9jYWxfZmlsZXNfb25seSUzRFRydWUp",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-string">&#x27;bert-base-cased&#x27;</span>, <span class="hljs-string">&#x27;&lt;non-cached-file&gt;&#x27;</span>,  local_files_only=<span class="hljs-literal">True</span>)
(...)
huggingface_hub.utils._errors.LocalEntryNotFoundError: Cannot find the requested files <span class="hljs-keyword">in</span> the disk cache <span class="hljs-keyword">and</span> outgoing traffic has been disabled. To enable hf.co look-ups <span class="hljs-keyword">and</span> downloads online, <span class="hljs-built_in">set</span> <span class="hljs-string">&#x27;local_files_only&#x27;</span> to <span class="hljs-literal">False</span>.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function ii(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHNlbmRfdGVsZW1ldHJ5JTBBJTBBc2VuZF90ZWxlbWV0cnkoJTIycGluZyUyMiklMEElMEFzZW5kX3RlbGVtZXRyeSglMjJncmFkaW8lMkZsb2NhbF9saW5rJTIyJTJDJTIwbGlicmFyeV9uYW1lJTNEJTIyZ3JhZGlvJTIyJTJDJTIwbGlicmFyeV92ZXJzaW9uJTNEJTIyMy4yMi4xJTIyKSUwQSUwQXNlbmRfdGVsZW1ldHJ5KCUwQSUyMCUyMCUyMCUyMHRvcGljJTNEJTIyZXhhbXBsZXMlMjIlMkMlMEElMjAlMjAlMjAlMjBsaWJyYXJ5X25hbWUlM0QlMjJ0cmFuc2Zvcm1lcnMlMjIlMkMlMEElMjAlMjAlMjAlMjBsaWJyYXJ5X3ZlcnNpb24lM0QlMjI0LjI2LjAlMjIlMkMlMEElMjAlMjAlMjAlMjB1c2VyX2FnZW50JTNEJTdCJTIycGlwZWxpbmUlMjIlM0ElMjAlMjJ0ZXh0X2NsYXNzaWZpY2F0aW9uJTIyJTJDJTIwJTIyZnJhbWV3b3JrJTIyJTNBJTIwJTIyZmxheCUyMiU3RCUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> send_telemetry

<span class="hljs-comment"># Send telemetry without library information</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>send_telemetry(<span class="hljs-string">&quot;ping&quot;</span>)

<span class="hljs-comment"># Send telemetry to subtopic with library information</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>send_telemetry(<span class="hljs-string">&quot;gradio/local_link&quot;</span>, library_name=<span class="hljs-string">&quot;gradio&quot;</span>, library_version=<span class="hljs-string">&quot;3.22.1&quot;</span>)

<span class="hljs-comment"># Send telemetry with additional data</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>send_telemetry(
<span class="hljs-meta">... </span>    topic=<span class="hljs-string">&quot;examples&quot;</span>,
<span class="hljs-meta">... </span>    library_name=<span class="hljs-string">&quot;transformers&quot;</span>,
<span class="hljs-meta">... </span>    library_version=<span class="hljs-string">&quot;4.26.0&quot;</span>,
<span class="hljs-meta">... </span>    user_agent={<span class="hljs-string">&quot;pipeline&quot;</span>: <span class="hljs-string">&quot;text_classification&quot;</span>, <span class="hljs-string">&quot;framework&quot;</span>: <span class="hljs-string">&quot;flax&quot;</span>},
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function gi(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHZhbGlkYXRlX2hmX2h1Yl9hcmdzJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX21ldGhvZChyZXBvX2lkJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHJlcG9faWQpJTBBJTBBbXlfY29vbF9tZXRob2QocmVwb19pZCUzRCUyMnZhbGlkX3JlcG9faWQlMjIpJTBBJTBBbXlfY29vbF9tZXRob2QoJTIyb3RoZXIuLnJlcG8uLmlkJTIyKSUwQSUwQW15X2Nvb2xfbWV0aG9kKHJlcG9faWQlM0QlMjJvdGhlci4ucmVwby4uaWQlMjIpJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHRva2VuKSUwQSUwQW15X2Nvb2xfYXV0aF9tZXRob2QodG9rZW4lM0QlMjJhJTIwdG9rZW4lMjIpJTBBJTBBbXlfY29vbF9hdXRoX21ldGhvZCh1c2VfYXV0aF90b2tlbiUzRCUyMmElMjB1c2VfYXV0aF90b2tlbiUyMiklMEElMEFteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNEJTIyYSUyMHRva2VuJTIyJTJDJTIwdXNlX2F1dGhfdG9rZW4lM0QlMjJhJTIwdXNlX2F1dGhfdG9rZW4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> validate_hf_hub_args

<span class="hljs-meta">&gt;&gt;&gt; </span>@validate_hf_hub_args
<span class="hljs-meta">... </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">my_cool_method</span>(<span class="hljs-params">repo_id: <span class="hljs-built_in">str</span></span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(repo_id)

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(repo_id=<span class="hljs-string">&quot;valid_repo_id&quot;</span>)
valid_repo_id

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(repo_id=<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.

<span class="hljs-meta">&gt;&gt;&gt; </span>@validate_hf_hub_args
<span class="hljs-meta">... </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">my_cool_auth_method</span>(<span class="hljs-params">token: <span class="hljs-built_in">str</span></span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(token)

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(token=<span class="hljs-string">&quot;a token&quot;</span>)
<span class="hljs-string">&quot;a token&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(use_auth_token=<span class="hljs-string">&quot;a use_auth_token&quot;</span>)
<span class="hljs-string">&quot;a use_auth_token&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(token=<span class="hljs-string">&quot;a token&quot;</span>, use_auth_token=<span class="hljs-string">&quot;a use_auth_token&quot;</span>)
UserWarning: Both \`token\` <span class="hljs-keyword">and</span> \`use_auth_token\` are passed (...)
<span class="hljs-string">&quot;a token&quot;</span>`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function ui(w){let o,M="Example:",y,g,$;return g=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHZhbGlkYXRlX3JlcG9faWQlMEF2YWxpZGF0ZV9yZXBvX2lkKHJlcG9faWQlM0QlMjJ2YWxpZF9yZXBvX2lkJTIyKSUwQXZhbGlkYXRlX3JlcG9faWQocmVwb19pZCUzRCUyMm90aGVyLi5yZXBvLi5pZCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> validate_repo_id
<span class="hljs-meta">&gt;&gt;&gt; </span>validate_repo_id(repo_id=<span class="hljs-string">&quot;valid_repo_id&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>validate_repo_id(repo_id=<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.`,wrap:!1}}),{c(){o=u("p"),o.textContent=M,y=n(),h(g.$$.fragment)},l(t){o=p(t,"P",{"data-svelte-h":!0}),c(o)!=="svelte-11lpom8"&&(o.textContent=M),y=l(t),d(g.$$.fragment,t)},m(t,v){r(t,o,v),r(t,y,v),f(g,t,v),$=!0},p:B,i(t){$||(m(g.$$.fragment,t),$=!0)},o(t){b(g.$$.fragment,t),$=!1},d(t){t&&(a(o),a(y)),_(g,t)}}}function pi(w){let o,M,y,g,$,t,v,wa,Xe,br=`The <code>huggingface_hub</code> package exposes a <code>logging</code> utility to control the logging level of the package itself.
You can import it as such:`,Ta,Ge,ja,Re,_r="Then, you may define the verbosity in order to update the amount of logs you’ll see:",Ja,Ne,xa,Ve,yr="The levels should be understood as follows:",ka,Fe,$r=`<li><code>error</code>: only show critical logs about usage which may result in an error or unexpected behavior.</li> <li><code>warning</code>: show logs that aren’t critical but usage may result in unintended behavior.
Additionally, important informative logs may be shown.</li> <li><code>info</code>: show most logs, including some verbose logging regarding what is happening under the hood.
If something is behaving in an unexpected manner, we recommend switching the verbosity level to this in order
to get more information.</li> <li><code>debug</code>: show all logs, including some internal logs which may be used to track exactly what’s happening
under the hood.</li>`,Ha,P,Le,An,ds,vr="Return the current level for the HuggingFace Hub’s root logger.",Dn,be,Ua,le,qe,Kn,fs,Mr="Sets the level for the HuggingFace Hub’s root logger.",Ca,re,Se,On,ms,wr="Sets the verbosity to <code>logging.INFO</code>.",Ia,oe,We,el,bs,Tr="Sets the verbosity to <code>logging.DEBUG</code>.",Za,ie,Ye,tl,_s,jr="Sets the verbosity to <code>logging.WARNING</code>.",Ea,ge,ze,sl,ys,Jr="Sets the verbosity to <code>logging.ERROR</code>.",Ba,ue,Pe,al,$s,xr=`Disable propagation of the library log outputs. Note that log propagation is
disabled by default.`,Xa,pe,Qe,nl,vs,kr=`Enable propagation of the library log outputs. Please disable the
HuggingFace Hub’s default handler to prevent double logging if the root
logger has been configured.`,Ga,Ae,Ra,De,Hr=`The methods exposed below are relevant when modifying modules from the <code>huggingface_hub</code> library itself.
Using these shouldn’t be necessary if you use <code>huggingface_hub</code> and you don’t modify them.`,Na,Q,Ke,ll,Ms,Ur=`Returns a logger with the specified name. This function is not supposed
to be directly accessed by library users.`,rl,_e,Va,Oe,Fa,et,Cr=`Progress bars are a useful tool to display information to the user while a long-running task is being executed (e.g.
when downloading or uploading files). <code>huggingface_hub</code> exposes a <code>tqdm</code> wrapper to display progress bars in a
consistent way across the library.`,La,tt,Ir=`By default, progress bars are enabled. You can disable them globally by setting <code>HF_HUB_DISABLE_PROGRESS_BARS</code>
environment variable. You can also enable/disable them using <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.enable_progress_bars">enable_progress_bars()</a> and
<a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.disable_progress_bars">disable_progress_bars()</a>. If set, the environment variable has priority on the helpers.`,qa,st,Sa,at,Wa,A,nt,ol,ws,Zr="Return whether progress bars are globally disabled or not.",il,Ts,Er=`Progress bars used in <code>huggingface_hub</code> can be enable or disabled globally using <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.enable_progress_bars">enable_progress_bars()</a>
and <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.disable_progress_bars">disable_progress_bars()</a> or by setting <code>HF_HUB_DISABLE_PROGRESS_BARS</code> as environment variable.`,Ya,lt,za,D,rt,gl,js,Br=`Disable globally progress bars used in <code>huggingface_hub</code> except if <code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment
variable has been set.`,ul,Js,Xr='Use <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.enable_progress_bars">enable_progress_bars()</a> to re-enable them.',Pa,ot,Qa,K,it,pl,xs,Gr=`Enable globally progress bars used in <code>huggingface_hub</code> except if <code>HF_HUB_DISABLE_PROGRESS_BARS</code> environment
variable has been set.`,cl,ks,Rr='Use <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.disable_progress_bars">disable_progress_bars()</a> to disable them.',Aa,gt,Da,ut,Nr=`In some environments, you might want to configure how HTTP calls are made, for example if you are using a proxy.
<code>huggingface_hub</code> let you configure this globally using <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.configure_http_backend">configure_http_backend()</a>. All requests made to the Hub will
then use your settings. Under the hood, <code>huggingface_hub</code> uses <code>requests.Session</code> so you might want to refer to the
<a href="https://requests.readthedocs.io/en/latest/user/advanced" rel="nofollow"><code>requests</code> documentation</a> to learn more about the available
parameters.`,Ka,pt,Vr=`Since <code>requests.Session</code> is not guaranteed to be thread-safe, <code>huggingface_hub</code> creates one session instance per thread.
Using sessions allows us to keep the connection open between HTTP calls and ultimately save time. If you are
integrating <code>huggingface_hub</code> in a third-party library and wants to make a custom call to the Hub, use <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.get_session">get_session()</a>
to get a Session configured by your users (i.e. replace any <code>requests.get(...)</code> call by <code>get_session().get(...)</code>).`,Oa,X,ct,hl,Hs,Fr=`Configure the HTTP backend by providing a <code>backend_factory</code>. Any HTTP calls made by <code>huggingface_hub</code> will use a
Session object instantiated by this factory. This can be useful if you are running your scripts in a specific
environment requiring custom configuration (e.g. custom proxy or certifications).`,dl,Us,Lr=`Use <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.get_session">get_session()</a> to get a configured Session. Since <code>requests.Session</code> is not guaranteed to be thread-safe,
<code>huggingface_hub</code> creates 1 Session instance per thread. They are all instantiated using the same <code>backend_factory</code>
set in <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.configure_http_backend">configure_http_backend()</a>. A LRU cache is used to cache the created sessions (and connections) between
calls. Max size is 128 to avoid memory leaks if thousands of threads are spawned.`,fl,Cs,qr='See <a href="https://github.com/psf/requests/issues/2766" rel="nofollow">this issue</a> to know more about thread-safety in <code>requests</code>.',ml,ye,en,G,ht,bl,Is,Sr="Get a <code>requests.Session</code> object, using the session factory from the user.",_l,Zs,Wr=`Use <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.get_session">get_session()</a> to get a configured Session. Since <code>requests.Session</code> is not guaranteed to be thread-safe,
<code>huggingface_hub</code> creates 1 Session instance per thread. They are all instantiated using the same <code>backend_factory</code>
set in <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.configure_http_backend">configure_http_backend()</a>. A LRU cache is used to cache the created sessions (and connections) between
calls. Max size is 128 to avoid memory leaks if thousands of threads are spawned.`,yl,Es,Yr='See <a href="https://github.com/psf/requests/issues/2766" rel="nofollow">this issue</a> to know more about thread-safety in <code>requests</code>.',$l,$e,tn,dt,sn,ft,zr=`<code>huggingface_hub</code> defines its own HTTP errors to refine the <code>HTTPError</code> raised by
<code>requests</code> with additional information sent back by the server.`,an,mt,nn,bt,Pr=`<a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.hf_raise_for_status">hf_raise_for_status()</a> is meant to be the central method to “raise for status” from any
request made to the Hub. It wraps the base <code>requests.raise_for_status</code> to provide
additional information. Any <code>HTTPError</code> thrown is converted into a <code>HfHubHTTPError</code>.`,ln,_t,rn,R,yt,vl,Bs,Qr=`Internal version of <code>response.raise_for_status()</code> that will refine a
potential HTTPError. Raised exception will be an instance of <code>HfHubHTTPError</code>.`,Ml,Xs,Ar=`This helper is meant to be the unique method to raise_for_status when making a call
to the Hugging Face Hub.`,wl,ve,Tl,Me,on,$t,gn,vt,Dr="Here is a list of HTTP errors thrown in <code>huggingface_hub</code>.",un,Mt,pn,wt,Kr=`<code>HfHubHTTPError</code> is the parent class for any HF Hub HTTP error. It takes care of parsing
the server response and format the error message to provide as much information to the
user as possible.`,cn,U,Tt,jl,Gs,Or="HTTPError to inherit from for any custom HTTP Error raised in HF Hub.",Jl,Rs,eo=`Any HTTPError is converted at least into a <code>HfHubHTTPError</code>. If some information is
sent back by the server, it will be added to the error message.`,xl,Ns,to="Added details:",kl,Vs,so="<li>Request id from “X-Request-Id” header if exists.</li> <li>Server error message from the header “X-Error-Message”.</li> <li>Server error message if we can found one in the response body.</li>",Hl,we,Ul,Te,jt,Cl,Fs,ao="Append additional information to the <code>HfHubHTTPError</code> initial message.",hn,Jt,dn,O,xt,Il,Ls,no=`Raised when trying to access a hf.co URL with an invalid repository name, or
with a private repo name the user does not have access to.`,Zl,je,fn,kt,mn,F,Ht,El,qs,lo=`Raised when trying to access a gated repository for which the user is not on the
authorized list.`,Bl,Ss,ro="Note: derives from <code>RepositoryNotFoundError</code> to ensure backward compatibility.",Xl,Je,bn,Ut,_n,ee,Ct,Gl,Ws,oo=`Raised when trying to access a hf.co URL with a valid repository but an invalid
revision.`,Rl,xe,yn,It,$n,te,Zt,Nl,Ys,io=`Raised when trying to access a hf.co URL with a valid repository and revision
but an invalid filename.`,Vl,ke,vn,Et,Mn,se,Bt,Fl,zs,go="Raised by <code>hf_raise_for_status</code> when the server returns a HTTP 400 error.",Ll,He,wn,Xt,Tn,L,Gt,ql,Ps,uo=`Raised when trying to access a file that is not on the disk when network is
disabled or unavailable (connection issue). The entry may exist on the Hub.`,Sl,Qs,po=`Note: <code>ValueError</code> type is to ensure backward compatibility.
Note: <code>LocalEntryNotFoundError</code> derives from <code>HTTPError</code> because of <code>EntryNotFoundError</code>
even when it is not a network issue.`,Wl,Ue,jn,Rt,Jn,Nt,co=`<code>huggingface_hub</code> includes an helper to send telemetry data. This information helps us debug issues and prioritize new features.
Users can disable telemetry collection at any time by setting the <code>HF_HUB_DISABLE_TELEMETRY=1</code> environment variable.
Telemetry is also disabled in offline mode (i.e. when setting HF_HUB_OFFLINE=1).`,xn,Vt,ho=`If you are maintainer of a third-party library, sending telemetry data is as simple as making a call to <code>send_telemetry</code>.
Data is sent in a separate thread to reduce as much as possible the impact for users.`,kn,N,Ft,Yl,As,fo="Sends telemetry that helps tracking usage of different HF libraries.",zl,Ds,mo=`This usage data helps us debug issues and prioritize new features. However, we understand that not everyone wants
to share additional information, and we respect your privacy. You can disable telemetry collection by setting the
<code>HF_HUB_DISABLE_TELEMETRY=1</code> as environment variable. Telemetry is also disabled in offline mode (i.e. when setting
<code>HF_HUB_OFFLINE=1</code>).`,Pl,Ks,bo="Telemetry collection is run in a separate thread to minimize impact for the user.",Ql,Ce,Hn,Lt,Un,qt,_o=`<code>huggingface_hub</code> includes custom validators to validate method arguments automatically.
Validation is inspired by the work done in <a href="https://pydantic-docs.helpmanual.io/" rel="nofollow">Pydantic</a>
to validate type hints but with more limited features.`,Cn,St,In,Wt,yo=`<a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.validate_hf_hub_args">validate_hf_hub_args()</a> is a generic decorator to encapsulate
methods that have arguments following <code>huggingface_hub</code>’s naming. By default, all
arguments that has a validator implemented will be validated.`,Zn,Yt,$o=`If an input is not valid, a <a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.HFValidationError">HFValidationError</a> is thrown. Only
the first non-valid value throws an error and stops the validation process.`,En,zt,vo="Usage:",Bn,Pt,Xn,Qt,Gn,I,At,Al,Os,Mo="Validate values received as argument for any public method of <code>huggingface_hub</code>.",Dl,ea,wo=`The goal of this decorator is to harmonize validation of arguments reused
everywhere. By default, all defined validators are tested.`,Kl,ta,To="Validators:",Ol,sa,jo=`<li><a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.validate_repo_id">validate_repo_id()</a>: <code>repo_id</code> must be <code>&quot;repo_name&quot;</code>
or <code>&quot;namespace/repo_name&quot;</code>. Namespace is a username or an organization.</li> <li><a href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.smoothly_deprecate_use_auth_token">smoothly_deprecate_use_auth_token()</a>: Use <code>token</code> instead of
<code>use_auth_token</code> (only if <code>use_auth_token</code> is not expected by the decorated
function - in practice, always the case in <code>huggingface_hub</code>).</li>`,er,Ie,Rn,Dt,Nn,ae,Kt,tr,aa,Jo="Generic exception thrown by <code>huggingface_hub</code> validators.",sr,na,xo='Inherits from <a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>.',Vn,Ot,Fn,es,ko=`Validators can also be used individually. Here is a list of all arguments that can be
validated.`,Ln,ts,qn,k,ss,ar,la,Ho="Validate <code>repo_id</code> is valid.",nr,ra,Uo=`This is not meant to replace the proper validation made on the Hub but rather to
avoid local inconsistencies whenever possible (example: passing <code>repo_type</code> in the
<code>repo_id</code> is forbidden).`,lr,oa,Co="Rules:",rr,ia,Io="<li>Between 1 and 96 characters.</li> <li>Either “repo_name” or “namespace/repo_name”</li> <li>[a-zA-Z0-9] or ”-”, ”_”, ”.”</li> <li>”—” and ”..” are forbidden</li>",or,ga,Zo="Valid: <code>&quot;foo&quot;</code>, <code>&quot;foo/bar&quot;</code>, <code>&quot;123&quot;</code>, <code>&quot;Foo-BAR_foo.bar123&quot;</code>",ir,ua,Eo="Not valid: <code>&quot;datasets/foo/bar&quot;</code>, <code>&quot;.repo_id&quot;</code>, <code>&quot;foo--bar&quot;</code>, <code>&quot;foo.git&quot;</code>",gr,Ze,ur,pa,Bo=`Discussed in <a href="https://github.com/huggingface/huggingface_hub/issues/1008" rel="nofollow">https://github.com/huggingface/huggingface_hub/issues/1008</a>.
In moon-landing (internal repository):`,pr,ca,Xo='<li><a href="https://github.com/huggingface/moon-landing/blob/main/server/lib/Names.ts#L27" rel="nofollow">https://github.com/huggingface/moon-landing/blob/main/server/lib/Names.ts#L27</a></li> <li><a href="https://github.com/huggingface/moon-landing/blob/main/server/views/components/NewRepoForm/NewRepoForm.svelte#L138" rel="nofollow">https://github.com/huggingface/moon-landing/blob/main/server/views/components/NewRepoForm/NewRepoForm.svelte#L138</a></li>',Sn,as,Wn,ns,Go="Not exactly a validator, but ran as well.",Yn,Z,ls,cr,ha,Ro="Smoothly deprecate <code>use_auth_token</code> in the <code>huggingface_hub</code> codebase.",hr,da,No=`The long-term goal is to remove any mention of <code>use_auth_token</code> in the codebase in
favor of a unique and less verbose <code>token</code> argument. This will be done a few steps:`,dr,rs,Vo=`<li><p>Step 0: methods that require a read-access to the Hub use the <code>use_auth_token</code>
argument (<code>str</code>, <code>bool</code> or <code>None</code>). Methods requiring write-access have a <code>token</code>
argument (<code>str</code>, <code>None</code>). This implicit rule exists to be able to not send the
token when not necessary (<code>use_auth_token=False</code>) even if logged in.</p></li> <li><p>Step 1: we want to harmonize everything and use <code>token</code> everywhere (supporting
<code>token=False</code> for read-only methods). In order not to break existing code, if
<code>use_auth_token</code> is passed to a function, the <code>use_auth_token</code> value is passed
as <code>token</code> instead, without any warning.
a. Corner case: if both <code>use_auth_token</code> and <code>token</code> values are passed, a warning
is thrown and the <code>use_auth_token</code> value is ignored.</p></li> <li><p>Step 2: Once it is release, we should push downstream libraries to switch from
<code>use_auth_token</code> to <code>token</code> as much as possible, but without throwing a warning
(e.g. manually create issues on the corresponding repos).</p></li> <li><p>Step 3: After a transitional period (6 months e.g. until April 2023?), we update
<code>huggingface_hub</code> to throw a warning on <code>use_auth_token</code>. Hopefully, very few
users will be impacted as it would have already been fixed.
In addition, unit tests in <code>huggingface_hub</code> must be adapted to expect warnings
to be thrown (but still use <code>use_auth_token</code> as before).</p></li> <li><p>Step 4: After a normal deprecation cycle (3 releases ?), remove this validator.
<code>use_auth_token</code> will definitely not be supported.
In addition, we update unit tests in <code>huggingface_hub</code> to use <code>token</code> everywhere.</p></li>`,fr,fa,Fo="This has been discussed in:",mr,ma,Lo='<li><a href="https://github.com/huggingface/huggingface_hub/issues/1094" rel="nofollow">https://github.com/huggingface/huggingface_hub/issues/1094</a>.</li> <li><a href="https://github.com/huggingface/huggingface_hub/pull/928" rel="nofollow">https://github.com/huggingface/huggingface_hub/pull/928</a></li> <li>(related) <a href="https://github.com/huggingface/huggingface_hub/pull/1064" rel="nofollow">https://github.com/huggingface/huggingface_hub/pull/1064</a></li>',zn,Ma,Pn;return $=new x({props:{title:"Utilities",local:"utilities",headingTag:"h1"}}),v=new x({props:{title:"Configure logging",local:"huggingface_hub.utils.logging.get_verbosity",headingTag:"h2"}}),Ge=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2dpbmc=",highlighted:'<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> logging',wrap:!1}}),Ne=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2dpbmclMEElMEFsb2dnaW5nLnNldF92ZXJib3NpdHlfZXJyb3IoKSUwQWxvZ2dpbmcuc2V0X3ZlcmJvc2l0eV93YXJuaW5nKCklMEFsb2dnaW5nLnNldF92ZXJib3NpdHlfaW5mbygpJTBBbG9nZ2luZy5zZXRfdmVyYm9zaXR5X2RlYnVnKCklMEElMEFsb2dnaW5nLnNldF92ZXJib3NpdHkoLi4uKQ==",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> logging

logging.set_verbosity_error()
logging.set_verbosity_warning()
logging.set_verbosity_info()
logging.set_verbosity_debug()

logging.set_verbosity(...)`,wrap:!1}}),Le=new J({props:{name:"huggingface_hub.utils.logging.get_verbosity",anchor:"huggingface_hub.utils.logging.get_verbosity",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/logging.py#L103",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Logging level, e.g., <code>huggingface_hub.logging.DEBUG</code> and
<code>huggingface_hub.logging.INFO</code>.</p>
`}}),be=new qo({props:{$$slots:{default:[Qo]},$$scope:{ctx:w}}}),qe=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity",anchor:"huggingface_hub.utils.logging.set_verbosity",parameters:[{name:"verbosity",val:": int"}],parametersDescription:[{anchor:"huggingface_hub.utils.logging.set_verbosity.verbosity",description:`<strong>verbosity</strong> (<code>int</code>) &#x2014;
Logging level, e.g., <code>huggingface_hub.logging.DEBUG</code> and
<code>huggingface_hub.logging.INFO</code>.`,name:"verbosity"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/logging.py#L125"}}),Se=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity_info",anchor:"huggingface_hub.utils.logging.set_verbosity_info",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/logging.py#L137"}}),We=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity_debug",anchor:"huggingface_hub.utils.logging.set_verbosity_debug",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/logging.py#L151"}}),Ye=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity_warning",anchor:"huggingface_hub.utils.logging.set_verbosity_warning",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/logging.py#L144"}}),ze=new J({props:{name:"huggingface_hub.utils.logging.set_verbosity_error",anchor:"huggingface_hub.utils.logging.set_verbosity_error",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/logging.py#L158"}}),Pe=new J({props:{name:"huggingface_hub.utils.logging.disable_propagation",anchor:"huggingface_hub.utils.logging.disable_propagation",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/logging.py#L165"}}),Qe=new J({props:{name:"huggingface_hub.utils.logging.enable_propagation",anchor:"huggingface_hub.utils.logging.enable_propagation",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/logging.py#L173"}}),Ae=new x({props:{title:"Repo-specific helper methods",local:"huggingface_hub.utils.logging.get_logger",headingTag:"h3"}}),Ke=new J({props:{name:"huggingface_hub.utils.logging.get_logger",anchor:"huggingface_hub.utils.logging.get_logger",parameters:[{name:"name",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.logging.get_logger.name",description:`<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the logger to get, usually the filename`,name:"name"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/logging.py#L78"}}),_e=new V({props:{anchor:"huggingface_hub.utils.logging.get_logger.example",$$slots:{default:[Ao]},$$scope:{ctx:w}}}),Oe=new x({props:{title:"Configure progress bars",local:"configure-progress-bars",headingTag:"h2"}}),st=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHNuYXBzaG90X2Rvd25sb2FkJTBBZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMGFyZV9wcm9ncmVzc19iYXJzX2Rpc2FibGVkJTJDJTIwZGlzYWJsZV9wcm9ncmVzc19iYXJzJTJDJTIwZW5hYmxlX3Byb2dyZXNzX2JhcnMlMEElMEElMjMlMjBEaXNhYmxlJTIwcHJvZ3Jlc3MlMjBiYXJzJTIwZ2xvYmFsbHklMEFkaXNhYmxlX3Byb2dyZXNzX2JhcnMoKSUwQSUwQSUyMyUyMFByb2dyZXNzJTIwYmFyJTIwd2lsbCUyMG5vdCUyMGJlJTIwc2hvd24lMjAhJTBBc25hcHNob3RfZG93bmxvYWQoJTIyZ3B0MiUyMiklMEElMEFhcmVfcHJvZ3Jlc3NfYmFyc19kaXNhYmxlZCgpJTBBJTBBJTIzJTIwUmUtZW5hYmxlJTIwcHJvZ3Jlc3MlMjBiYXJzJTIwZ2xvYmFsbHklMEFlbmFibGVfcHJvZ3Jlc3NfYmFycygp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> snapshot_download
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> are_progress_bars_disabled, disable_progress_bars, enable_progress_bars

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Disable progress bars globally</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>disable_progress_bars()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Progress bar will not be shown !</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>snapshot_download(<span class="hljs-string">&quot;gpt2&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>are_progress_bars_disabled()
<span class="hljs-literal">True</span>

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Re-enable progress bars globally</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>enable_progress_bars()`,wrap:!1}}),at=new x({props:{title:"are_progress_bars_disabled",local:"huggingface_hub.utils.are_progress_bars_disabled",headingTag:"h3"}}),nt=new J({props:{name:"huggingface_hub.utils.are_progress_bars_disabled",anchor:"huggingface_hub.utils.are_progress_bars_disabled",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/tqdm.py#L112"}}),lt=new x({props:{title:"disable_progress_bars",local:"huggingface_hub.utils.disable_progress_bars",headingTag:"h3"}}),rt=new J({props:{name:"huggingface_hub.utils.disable_progress_bars",anchor:"huggingface_hub.utils.disable_progress_bars",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/tqdm.py#L78"}}),ot=new x({props:{title:"enable_progress_bars",local:"huggingface_hub.utils.enable_progress_bars",headingTag:"h3"}}),it=new J({props:{name:"huggingface_hub.utils.enable_progress_bars",anchor:"huggingface_hub.utils.enable_progress_bars",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/tqdm.py#L95"}}),gt=new x({props:{title:"Configure HTTP backend",local:"huggingface_hub.configure_http_backend",headingTag:"h2"}}),ct=new J({props:{name:"huggingface_hub.configure_http_backend",anchor:"huggingface_hub.configure_http_backend",parameters:[{name:"backend_factory",val:": typing.Callable[[], requests.sessions.Session] = <function _default_backend_factory at 0x7f34c8f8f940>"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_http.py#L83"}}),ye=new V({props:{anchor:"huggingface_hub.configure_http_backend.example",$$slots:{default:[Do]},$$scope:{ctx:w}}}),ht=new J({props:{name:"huggingface_hub.get_session",anchor:"huggingface_hub.get_session",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_http.py#L119"}}),$e=new V({props:{anchor:"huggingface_hub.get_session.example",$$slots:{default:[Ko]},$$scope:{ctx:w}}}),dt=new x({props:{title:"Handle HTTP errors",local:"handle-http-errors",headingTag:"h2"}}),mt=new x({props:{title:"Raise for status",local:"huggingface_hub.utils.hf_raise_for_status",headingTag:"h3"}}),_t=new C({props:{code:"aW1wb3J0JTIwcmVxdWVzdHMlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViLnV0aWxzJTIwaW1wb3J0JTIwaGZfcmFpc2VfZm9yX3N0YXR1cyUyQyUyMEhmSHViSFRUUEVycm9yJTBBJTBBcmVzcG9uc2UlMjAlM0QlMjByZXF1ZXN0cy5wb3N0KC4uLiklMEF0cnklM0ElMEElMjAlMjAlMjAlMjBoZl9yYWlzZV9mb3Jfc3RhdHVzKHJlc3BvbnNlKSUwQWV4Y2VwdCUyMEhmSHViSFRUUEVycm9yJTIwYXMlMjBlJTNBJTBBJTIwJTIwJTIwJTIwcHJpbnQoc3RyKGUpKSUyMCUyMyUyMGZvcm1hdHRlZCUyMG1lc3NhZ2UlMEElMjAlMjAlMjAlMjBlLnJlcXVlc3RfaWQlMkMlMjBlLnNlcnZlcl9tZXNzYWdlJTIwJTIzJTIwZGV0YWlscyUyMHJldHVybmVkJTIwYnklMjBzZXJ2ZXIlMEElMEElMjAlMjAlMjAlMjAlMjMlMjBDb21wbGV0ZSUyMHRoZSUyMGVycm9yJTIwbWVzc2FnZSUyMHdpdGglMjBhZGRpdGlvbmFsJTIwaW5mb3JtYXRpb24lMjBvbmNlJTIwaXQncyUyMHJhaXNlZCUwQSUyMCUyMCUyMCUyMGUuYXBwZW5kX3RvX21lc3NhZ2UoJTIyJTVDbiU2MGNyZWF0ZV9jb21taXQlNjAlMjBleHBlY3RzJTIwdGhlJTIwcmVwb3NpdG9yeSUyMHRvJTIwZXhpc3QuJTIyKSUwQSUyMCUyMCUyMCUyMHJhaXNl",highlighted:`<span class="hljs-keyword">import</span> requests
<span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> hf_raise_for_status, HfHubHTTPError

response = requests.post(...)
<span class="hljs-keyword">try</span>:
    hf_raise_for_status(response)
<span class="hljs-keyword">except</span> HfHubHTTPError <span class="hljs-keyword">as</span> e:
    <span class="hljs-built_in">print</span>(<span class="hljs-built_in">str</span>(e)) <span class="hljs-comment"># formatted message</span>
    e.request_id, e.server_message <span class="hljs-comment"># details returned by server</span>

    <span class="hljs-comment"># Complete the error message with additional information once it&#x27;s raised</span>
    e.append_to_message(<span class="hljs-string">&quot;\\n\`create_commit\` expects the repository to exist.&quot;</span>)
    <span class="hljs-keyword">raise</span>`,wrap:!1}}),yt=new J({props:{name:"huggingface_hub.utils.hf_raise_for_status",anchor:"huggingface_hub.utils.hf_raise_for_status",parameters:[{name:"response",val:": Response"},{name:"endpoint_name",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.hf_raise_for_status.response",description:`<strong>response</strong> (<code>Response</code>) &#x2014;
Response from the server.`,name:"response"},{anchor:"huggingface_hub.utils.hf_raise_for_status.endpoint_name",description:`<strong>endpoint_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Name of the endpoint that has been called. If provided, the error message
will be more complete.`,name:"endpoint_name"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_errors.py#L214"}}),ve=new V({props:{anchor:"huggingface_hub.utils.hf_raise_for_status.example",$$slots:{default:[Oo]},$$scope:{ctx:w}}}),Me=new qo({props:{warning:!0,$$slots:{default:[ei]},$$scope:{ctx:w}}}),$t=new x({props:{title:"HTTP errors",local:"http-errors",headingTag:"h3"}}),Mt=new x({props:{title:"HfHubHTTPError",local:"huggingface_hub.utils.HfHubHTTPError",headingTag:"h4"}}),Tt=new J({props:{name:"class huggingface_hub.utils.HfHubHTTPError",anchor:"huggingface_hub.utils.HfHubHTTPError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_errors.py#L16"}}),we=new V({props:{anchor:"huggingface_hub.utils.HfHubHTTPError.example",$$slots:{default:[ti]},$$scope:{ctx:w}}}),jt=new J({props:{name:"append_to_message",anchor:"huggingface_hub.utils.HfHubHTTPError.append_to_message",parameters:[{name:"additional_message",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_errors.py#L93"}}),Jt=new x({props:{title:"RepositoryNotFoundError",local:"huggingface_hub.utils.RepositoryNotFoundError",headingTag:"h4"}}),xt=new J({props:{name:"class huggingface_hub.utils.RepositoryNotFoundError",anchor:"huggingface_hub.utils.RepositoryNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_errors.py#L98"}}),je=new V({props:{anchor:"huggingface_hub.utils.RepositoryNotFoundError.example",$$slots:{default:[si]},$$scope:{ctx:w}}}),kt=new x({props:{title:"GatedRepoError",local:"huggingface_hub.utils.GatedRepoError",headingTag:"h4"}}),Ht=new J({props:{name:"class huggingface_hub.utils.GatedRepoError",anchor:"huggingface_hub.utils.GatedRepoError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_errors.py#L119"}}),Je=new V({props:{anchor:"huggingface_hub.utils.GatedRepoError.example",$$slots:{default:[ai]},$$scope:{ctx:w}}}),Ut=new x({props:{title:"RevisionNotFoundError",local:"huggingface_hub.utils.RevisionNotFoundError",headingTag:"h4"}}),Ct=new J({props:{name:"class huggingface_hub.utils.RevisionNotFoundError",anchor:"huggingface_hub.utils.RevisionNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_errors.py#L141"}}),xe=new V({props:{anchor:"huggingface_hub.utils.RevisionNotFoundError.example",$$slots:{default:[ni]},$$scope:{ctx:w}}}),It=new x({props:{title:"EntryNotFoundError",local:"huggingface_hub.utils.EntryNotFoundError",headingTag:"h4"}}),Zt=new J({props:{name:"class huggingface_hub.utils.EntryNotFoundError",anchor:"huggingface_hub.utils.EntryNotFoundError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_errors.py#L159"}}),ke=new V({props:{anchor:"huggingface_hub.utils.EntryNotFoundError.example",$$slots:{default:[li]},$$scope:{ctx:w}}}),Et=new x({props:{title:"BadRequestError",local:"huggingface_hub.utils.BadRequestError",headingTag:"h4"}}),Bt=new J({props:{name:"class huggingface_hub.utils.BadRequestError",anchor:"huggingface_hub.utils.BadRequestError",parameters:[{name:"message",val:": str"},{name:"response",val:": typing.Optional[requests.models.Response] = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_errors.py#L200"}}),He=new V({props:{anchor:"huggingface_hub.utils.BadRequestError.example",$$slots:{default:[ri]},$$scope:{ctx:w}}}),Xt=new x({props:{title:"LocalEntryNotFoundError",local:"huggingface_hub.utils.LocalEntryNotFoundError",headingTag:"h4"}}),Gt=new J({props:{name:"class huggingface_hub.utils.LocalEntryNotFoundError",anchor:"huggingface_hub.utils.LocalEntryNotFoundError",parameters:[{name:"message",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_errors.py#L177"}}),Ue=new V({props:{anchor:"huggingface_hub.utils.LocalEntryNotFoundError.example",$$slots:{default:[oi]},$$scope:{ctx:w}}}),Rt=new x({props:{title:"Telemetry",local:"huggingface_hub.utils.send_telemetry",headingTag:"h2"}}),Ft=new J({props:{name:"huggingface_hub.utils.send_telemetry",anchor:"huggingface_hub.utils.send_telemetry",parameters:[{name:"topic",val:": str"},{name:"library_name",val:": typing.Optional[str] = None"},{name:"library_version",val:": typing.Optional[str] = None"},{name:"user_agent",val:": typing.Union[typing.Dict, str, NoneType] = None"}],parametersDescription:[{anchor:"huggingface_hub.utils.send_telemetry.topic",description:`<strong>topic</strong> (<code>str</code>) &#x2014;
Name of the topic that is monitored. The topic is directly used to build the URL. If you want to monitor
subtopics, just use &#x201D;/&#x201D; separation. Examples: &#x201C;gradio&#x201D;, &#x201C;transformers/examples&#x201D;,&#x2026;`,name:"topic"},{anchor:"huggingface_hub.utils.send_telemetry.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the library that is making the HTTP request. Will be added to the user-agent header.`,name:"library_name"},{anchor:"huggingface_hub.utils.send_telemetry.library_version",description:`<strong>library_version</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The version of the library that is making the HTTP request. Will be added to the user-agent header.`,name:"library_version"},{anchor:"huggingface_hub.utils.send_telemetry.user_agent",description:`<strong>user_agent</strong> (<code>str</code>, <code>dict</code>, <em>optional</em>) &#x2014;
The user agent info in the form of a dictionary or a single string. It will be completed with information about the installed packages.`,name:"user_agent"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_telemetry.py#L20"}}),Ce=new V({props:{anchor:"huggingface_hub.utils.send_telemetry.example",$$slots:{default:[ii]},$$scope:{ctx:w}}}),Lt=new x({props:{title:"Validators",local:"validators",headingTag:"h2"}}),St=new x({props:{title:"Generic decorator",local:"generic-decorator",headingTag:"h3"}}),Pt=new C({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi51dGlscyUyMGltcG9ydCUyMHZhbGlkYXRlX2hmX2h1Yl9hcmdzJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX21ldGhvZChyZXBvX2lkJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHJlcG9faWQpJTBBJTBBbXlfY29vbF9tZXRob2QocmVwb19pZCUzRCUyMnZhbGlkX3JlcG9faWQlMjIpJTBBJTBBbXlfY29vbF9tZXRob2QoJTIyb3RoZXIuLnJlcG8uLmlkJTIyKSUwQSUwQW15X2Nvb2xfbWV0aG9kKHJlcG9faWQlM0QlMjJvdGhlci4ucmVwby4uaWQlMjIpJTBBJTBBJTQwdmFsaWRhdGVfaGZfaHViX2FyZ3MlMEFkZWYlMjBteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNBJTIwc3RyKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHRva2VuKSUwQSUwQW15X2Nvb2xfYXV0aF9tZXRob2QodG9rZW4lM0QlMjJhJTIwdG9rZW4lMjIpJTBBJTBBbXlfY29vbF9hdXRoX21ldGhvZCh1c2VfYXV0aF90b2tlbiUzRCUyMmElMjB1c2VfYXV0aF90b2tlbiUyMiklMEElMEFteV9jb29sX2F1dGhfbWV0aG9kKHRva2VuJTNEJTIyYSUyMHRva2VuJTIyJTJDJTIwdXNlX2F1dGhfdG9rZW4lM0QlMjJhJTIwdXNlX2F1dGhfdG9rZW4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.utils <span class="hljs-keyword">import</span> validate_hf_hub_args

<span class="hljs-meta">&gt;&gt;&gt; </span>@validate_hf_hub_args
<span class="hljs-meta">... </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">my_cool_method</span>(<span class="hljs-params">repo_id: <span class="hljs-built_in">str</span></span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(repo_id)

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(repo_id=<span class="hljs-string">&quot;valid_repo_id&quot;</span>)
valid_repo_id

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_method(repo_id=<span class="hljs-string">&quot;other..repo..id&quot;</span>)
huggingface_hub.utils._validators.HFValidationError: Cannot have -- <span class="hljs-keyword">or</span> .. <span class="hljs-keyword">in</span> repo_id: <span class="hljs-string">&#x27;other..repo..id&#x27;</span>.

<span class="hljs-meta">&gt;&gt;&gt; </span>@validate_hf_hub_args
<span class="hljs-meta">... </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">my_cool_auth_method</span>(<span class="hljs-params">token: <span class="hljs-built_in">str</span></span>):
<span class="hljs-meta">... </span>    <span class="hljs-built_in">print</span>(token)

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(token=<span class="hljs-string">&quot;a token&quot;</span>)
<span class="hljs-string">&quot;a token&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(use_auth_token=<span class="hljs-string">&quot;a use_auth_token&quot;</span>)
<span class="hljs-string">&quot;a use_auth_token&quot;</span>

<span class="hljs-meta">&gt;&gt;&gt; </span>my_cool_auth_method(token=<span class="hljs-string">&quot;a token&quot;</span>, use_auth_token=<span class="hljs-string">&quot;a use_auth_token&quot;</span>)
UserWarning: Both \`token\` <span class="hljs-keyword">and</span> \`use_auth_token\` are passed (...). \`use_auth_token\` value will be ignored.
<span class="hljs-string">&quot;a token&quot;</span>`,wrap:!1}}),Qt=new x({props:{title:"validate_hf_hub_args",local:"huggingface_hub.utils.validate_hf_hub_args",headingTag:"h4"}}),At=new J({props:{name:"huggingface_hub.utils.validate_hf_hub_args",anchor:"huggingface_hub.utils.validate_hf_hub_args",parameters:[{name:"fn",val:": CallableT"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_validators.py#L46",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.HFValidationError"
>HFValidationError</a> —
If an input is not valid.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/v0.19.0/en/package_reference/utilities#huggingface_hub.utils.HFValidationError"
>HFValidationError</a></p>
`}}),Ie=new V({props:{anchor:"huggingface_hub.utils.validate_hf_hub_args.example",$$slots:{default:[gi]},$$scope:{ctx:w}}}),Dt=new x({props:{title:"HFValidationError",local:"huggingface_hub.utils.HFValidationError",headingTag:"h4"}}),Kt=new J({props:{name:"class huggingface_hub.utils.HFValidationError",anchor:"huggingface_hub.utils.HFValidationError",parameters:"",source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_validators.py#L39"}}),Ot=new x({props:{title:"Argument validators",local:"argument-validators",headingTag:"h3"}}),ts=new x({props:{title:"repo_id",local:"huggingface_hub.utils.validate_repo_id",headingTag:"h4"}}),ss=new J({props:{name:"huggingface_hub.utils.validate_repo_id",anchor:"huggingface_hub.utils.validate_repo_id",parameters:[{name:"repo_id",val:": str"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_validators.py#L123"}}),Ze=new V({props:{anchor:"huggingface_hub.utils.validate_repo_id.example",$$slots:{default:[ui]},$$scope:{ctx:w}}}),as=new x({props:{title:"smoothly_deprecate_use_auth_token",local:"huggingface_hub.utils.smoothly_deprecate_use_auth_token",headingTag:"h4"}}),ls=new J({props:{name:"huggingface_hub.utils.smoothly_deprecate_use_auth_token",anchor:"huggingface_hub.utils.smoothly_deprecate_use_auth_token",parameters:[{name:"fn_name",val:": str"},{name:"has_token",val:": bool"},{name:"kwargs",val:": typing.Dict[str, typing.Any]"}],source:"https://github.com/huggingface/huggingface_hub/blob/v0.19.0/src/huggingface_hub/utils/_validators.py#L177"}}),{c(){o=u("meta"),M=n(),y=u("p"),g=n(),h($.$$.fragment),t=n(),h(v.$$.fragment),wa=n(),Xe=u("p"),Xe.innerHTML=br,Ta=n(),h(Ge.$$.fragment),ja=n(),Re=u("p"),Re.textContent=_r,Ja=n(),h(Ne.$$.fragment),xa=n(),Ve=u("p"),Ve.textContent=yr,ka=n(),Fe=u("ul"),Fe.innerHTML=$r,Ha=n(),P=u("div"),h(Le.$$.fragment),An=n(),ds=u("p"),ds.textContent=vr,Dn=n(),h(be.$$.fragment),Ua=n(),le=u("div"),h(qe.$$.fragment),Kn=n(),fs=u("p"),fs.textContent=Mr,Ca=n(),re=u("div"),h(Se.$$.fragment),On=n(),ms=u("p"),ms.innerHTML=wr,Ia=n(),oe=u("div"),h(We.$$.fragment),el=n(),bs=u("p"),bs.innerHTML=Tr,Za=n(),ie=u("div"),h(Ye.$$.fragment),tl=n(),_s=u("p"),_s.innerHTML=jr,Ea=n(),ge=u("div"),h(ze.$$.fragment),sl=n(),ys=u("p"),ys.innerHTML=Jr,Ba=n(),ue=u("div"),h(Pe.$$.fragment),al=n(),$s=u("p"),$s.textContent=xr,Xa=n(),pe=u("div"),h(Qe.$$.fragment),nl=n(),vs=u("p"),vs.textContent=kr,Ga=n(),h(Ae.$$.fragment),Ra=n(),De=u("p"),De.innerHTML=Hr,Na=n(),Q=u("div"),h(Ke.$$.fragment),ll=n(),Ms=u("p"),Ms.textContent=Ur,rl=n(),h(_e.$$.fragment),Va=n(),h(Oe.$$.fragment),Fa=n(),et=u("p"),et.innerHTML=Cr,La=n(),tt=u("p"),tt.innerHTML=Ir,qa=n(),h(st.$$.fragment),Sa=n(),h(at.$$.fragment),Wa=n(),A=u("div"),h(nt.$$.fragment),ol=n(),ws=u("p"),ws.textContent=Zr,il=n(),Ts=u("p"),Ts.innerHTML=Er,Ya=n(),h(lt.$$.fragment),za=n(),D=u("div"),h(rt.$$.fragment),gl=n(),js=u("p"),js.innerHTML=Br,ul=n(),Js=u("p"),Js.innerHTML=Xr,Pa=n(),h(ot.$$.fragment),Qa=n(),K=u("div"),h(it.$$.fragment),pl=n(),xs=u("p"),xs.innerHTML=Gr,cl=n(),ks=u("p"),ks.innerHTML=Rr,Aa=n(),h(gt.$$.fragment),Da=n(),ut=u("p"),ut.innerHTML=Nr,Ka=n(),pt=u("p"),pt.innerHTML=Vr,Oa=n(),X=u("div"),h(ct.$$.fragment),hl=n(),Hs=u("p"),Hs.innerHTML=Fr,dl=n(),Us=u("p"),Us.innerHTML=Lr,fl=n(),Cs=u("p"),Cs.innerHTML=qr,ml=n(),h(ye.$$.fragment),en=n(),G=u("div"),h(ht.$$.fragment),bl=n(),Is=u("p"),Is.innerHTML=Sr,_l=n(),Zs=u("p"),Zs.innerHTML=Wr,yl=n(),Es=u("p"),Es.innerHTML=Yr,$l=n(),h($e.$$.fragment),tn=n(),h(dt.$$.fragment),sn=n(),ft=u("p"),ft.innerHTML=zr,an=n(),h(mt.$$.fragment),nn=n(),bt=u("p"),bt.innerHTML=Pr,ln=n(),h(_t.$$.fragment),rn=n(),R=u("div"),h(yt.$$.fragment),vl=n(),Bs=u("p"),Bs.innerHTML=Qr,Ml=n(),Xs=u("p"),Xs.textContent=Ar,wl=n(),h(ve.$$.fragment),Tl=n(),h(Me.$$.fragment),on=n(),h($t.$$.fragment),gn=n(),vt=u("p"),vt.innerHTML=Dr,un=n(),h(Mt.$$.fragment),pn=n(),wt=u("p"),wt.innerHTML=Kr,cn=n(),U=u("div"),h(Tt.$$.fragment),jl=n(),Gs=u("p"),Gs.textContent=Or,Jl=n(),Rs=u("p"),Rs.innerHTML=eo,xl=n(),Ns=u("p"),Ns.textContent=to,kl=n(),Vs=u("ul"),Vs.innerHTML=so,Hl=n(),h(we.$$.fragment),Ul=n(),Te=u("div"),h(jt.$$.fragment),Cl=n(),Fs=u("p"),Fs.innerHTML=ao,hn=n(),h(Jt.$$.fragment),dn=n(),O=u("div"),h(xt.$$.fragment),Il=n(),Ls=u("p"),Ls.textContent=no,Zl=n(),h(je.$$.fragment),fn=n(),h(kt.$$.fragment),mn=n(),F=u("div"),h(Ht.$$.fragment),El=n(),qs=u("p"),qs.textContent=lo,Bl=n(),Ss=u("p"),Ss.innerHTML=ro,Xl=n(),h(Je.$$.fragment),bn=n(),h(Ut.$$.fragment),_n=n(),ee=u("div"),h(Ct.$$.fragment),Gl=n(),Ws=u("p"),Ws.textContent=oo,Rl=n(),h(xe.$$.fragment),yn=n(),h(It.$$.fragment),$n=n(),te=u("div"),h(Zt.$$.fragment),Nl=n(),Ys=u("p"),Ys.textContent=io,Vl=n(),h(ke.$$.fragment),vn=n(),h(Et.$$.fragment),Mn=n(),se=u("div"),h(Bt.$$.fragment),Fl=n(),zs=u("p"),zs.innerHTML=go,Ll=n(),h(He.$$.fragment),wn=n(),h(Xt.$$.fragment),Tn=n(),L=u("div"),h(Gt.$$.fragment),ql=n(),Ps=u("p"),Ps.textContent=uo,Sl=n(),Qs=u("p"),Qs.innerHTML=po,Wl=n(),h(Ue.$$.fragment),jn=n(),h(Rt.$$.fragment),Jn=n(),Nt=u("p"),Nt.innerHTML=co,xn=n(),Vt=u("p"),Vt.innerHTML=ho,kn=n(),N=u("div"),h(Ft.$$.fragment),Yl=n(),As=u("p"),As.textContent=fo,zl=n(),Ds=u("p"),Ds.innerHTML=mo,Pl=n(),Ks=u("p"),Ks.textContent=bo,Ql=n(),h(Ce.$$.fragment),Hn=n(),h(Lt.$$.fragment),Un=n(),qt=u("p"),qt.innerHTML=_o,Cn=n(),h(St.$$.fragment),In=n(),Wt=u("p"),Wt.innerHTML=yo,Zn=n(),Yt=u("p"),Yt.innerHTML=$o,En=n(),zt=u("p"),zt.textContent=vo,Bn=n(),h(Pt.$$.fragment),Xn=n(),h(Qt.$$.fragment),Gn=n(),I=u("div"),h(At.$$.fragment),Al=n(),Os=u("p"),Os.innerHTML=Mo,Dl=n(),ea=u("p"),ea.textContent=wo,Kl=n(),ta=u("p"),ta.textContent=To,Ol=n(),sa=u("ul"),sa.innerHTML=jo,er=n(),h(Ie.$$.fragment),Rn=n(),h(Dt.$$.fragment),Nn=n(),ae=u("div"),h(Kt.$$.fragment),tr=n(),aa=u("p"),aa.innerHTML=Jo,sr=n(),na=u("p"),na.innerHTML=xo,Vn=n(),h(Ot.$$.fragment),Fn=n(),es=u("p"),es.textContent=ko,Ln=n(),h(ts.$$.fragment),qn=n(),k=u("div"),h(ss.$$.fragment),ar=n(),la=u("p"),la.innerHTML=Ho,nr=n(),ra=u("p"),ra.innerHTML=Uo,lr=n(),oa=u("p"),oa.textContent=Co,rr=n(),ia=u("ul"),ia.innerHTML=Io,or=n(),ga=u("p"),ga.innerHTML=Zo,ir=n(),ua=u("p"),ua.innerHTML=Eo,gr=n(),h(Ze.$$.fragment),ur=n(),pa=u("p"),pa.innerHTML=Bo,pr=n(),ca=u("ul"),ca.innerHTML=Xo,Sn=n(),h(as.$$.fragment),Wn=n(),ns=u("p"),ns.textContent=Go,Yn=n(),Z=u("div"),h(ls.$$.fragment),cr=n(),ha=u("p"),ha.innerHTML=Ro,hr=n(),da=u("p"),da.innerHTML=No,dr=n(),rs=u("ol"),rs.innerHTML=Vo,fr=n(),fa=u("p"),fa.textContent=Fo,mr=n(),ma=u("ul"),ma.innerHTML=Lo,zn=n(),Ma=u("p"),this.h()},l(e){const s=Po("svelte-u9bgzb",document.head);o=p(s,"META",{name:!0,content:!0}),s.forEach(a),M=l(e),y=p(e,"P",{}),j(y).forEach(a),g=l(e),d($.$$.fragment,e),t=l(e),d(v.$$.fragment,e),wa=l(e),Xe=p(e,"P",{"data-svelte-h":!0}),c(Xe)!=="svelte-1f5ostn"&&(Xe.innerHTML=br),Ta=l(e),d(Ge.$$.fragment,e),ja=l(e),Re=p(e,"P",{"data-svelte-h":!0}),c(Re)!=="svelte-1bq70jp"&&(Re.textContent=_r),Ja=l(e),d(Ne.$$.fragment,e),xa=l(e),Ve=p(e,"P",{"data-svelte-h":!0}),c(Ve)!=="svelte-c6nxob"&&(Ve.textContent=yr),ka=l(e),Fe=p(e,"UL",{"data-svelte-h":!0}),c(Fe)!=="svelte-1592m28"&&(Fe.innerHTML=$r),Ha=l(e),P=p(e,"DIV",{class:!0});var ce=j(P);d(Le.$$.fragment,ce),An=l(ce),ds=p(ce,"P",{"data-svelte-h":!0}),c(ds)!=="svelte-tfh5y3"&&(ds.textContent=vr),Dn=l(ce),d(be.$$.fragment,ce),ce.forEach(a),Ua=l(e),le=p(e,"DIV",{class:!0});var os=j(le);d(qe.$$.fragment,os),Kn=l(os),fs=p(os,"P",{"data-svelte-h":!0}),c(fs)!=="svelte-fuws7x"&&(fs.textContent=Mr),os.forEach(a),Ca=l(e),re=p(e,"DIV",{class:!0});var is=j(re);d(Se.$$.fragment,is),On=l(is),ms=p(is,"P",{"data-svelte-h":!0}),c(ms)!=="svelte-4hjbj0"&&(ms.innerHTML=wr),is.forEach(a),Ia=l(e),oe=p(e,"DIV",{class:!0});var gs=j(oe);d(We.$$.fragment,gs),el=l(gs),bs=p(gs,"P",{"data-svelte-h":!0}),c(bs)!=="svelte-13bnwpz"&&(bs.innerHTML=Tr),gs.forEach(a),Za=l(e),ie=p(e,"DIV",{class:!0});var us=j(ie);d(Ye.$$.fragment,us),tl=l(us),_s=p(us,"P",{"data-svelte-h":!0}),c(_s)!=="svelte-11c3s8"&&(_s.innerHTML=jr),us.forEach(a),Ea=l(e),ge=p(e,"DIV",{class:!0});var ps=j(ge);d(ze.$$.fragment,ps),sl=l(ps),ys=p(ps,"P",{"data-svelte-h":!0}),c(ys)!=="svelte-1sxvz7m"&&(ys.innerHTML=Jr),ps.forEach(a),Ba=l(e),ue=p(e,"DIV",{class:!0});var cs=j(ue);d(Pe.$$.fragment,cs),al=l(cs),$s=p(cs,"P",{"data-svelte-h":!0}),c($s)!=="svelte-1n8oxia"&&($s.textContent=xr),cs.forEach(a),Xa=l(e),pe=p(e,"DIV",{class:!0});var hs=j(pe);d(Qe.$$.fragment,hs),nl=l(hs),vs=p(hs,"P",{"data-svelte-h":!0}),c(vs)!=="svelte-18llblw"&&(vs.textContent=kr),hs.forEach(a),Ga=l(e),d(Ae.$$.fragment,e),Ra=l(e),De=p(e,"P",{"data-svelte-h":!0}),c(De)!=="svelte-1hfu347"&&(De.innerHTML=Hr),Na=l(e),Q=p(e,"DIV",{class:!0});var he=j(Q);d(Ke.$$.fragment,he),ll=l(he),Ms=p(he,"P",{"data-svelte-h":!0}),c(Ms)!=="svelte-8tg1b"&&(Ms.textContent=Ur),rl=l(he),d(_e.$$.fragment,he),he.forEach(a),Va=l(e),d(Oe.$$.fragment,e),Fa=l(e),et=p(e,"P",{"data-svelte-h":!0}),c(et)!=="svelte-1bp9gzk"&&(et.innerHTML=Cr),La=l(e),tt=p(e,"P",{"data-svelte-h":!0}),c(tt)!=="svelte-7cq9dr"&&(tt.innerHTML=Ir),qa=l(e),d(st.$$.fragment,e),Sa=l(e),d(at.$$.fragment,e),Wa=l(e),A=p(e,"DIV",{class:!0});var de=j(A);d(nt.$$.fragment,de),ol=l(de),ws=p(de,"P",{"data-svelte-h":!0}),c(ws)!=="svelte-krb0vw"&&(ws.textContent=Zr),il=l(de),Ts=p(de,"P",{"data-svelte-h":!0}),c(Ts)!=="svelte-1e81aye"&&(Ts.innerHTML=Er),de.forEach(a),Ya=l(e),d(lt.$$.fragment,e),za=l(e),D=p(e,"DIV",{class:!0});var fe=j(D);d(rt.$$.fragment,fe),gl=l(fe),js=p(fe,"P",{"data-svelte-h":!0}),c(js)!=="svelte-p5wdbm"&&(js.innerHTML=Br),ul=l(fe),Js=p(fe,"P",{"data-svelte-h":!0}),c(Js)!=="svelte-12y5pcz"&&(Js.innerHTML=Xr),fe.forEach(a),Pa=l(e),d(ot.$$.fragment,e),Qa=l(e),K=p(e,"DIV",{class:!0});var me=j(K);d(it.$$.fragment,me),pl=l(me),xs=p(me,"P",{"data-svelte-h":!0}),c(xs)!=="svelte-13z8txf"&&(xs.innerHTML=Gr),cl=l(me),ks=p(me,"P",{"data-svelte-h":!0}),c(ks)!=="svelte-iue1km"&&(ks.innerHTML=Rr),me.forEach(a),Aa=l(e),d(gt.$$.fragment,e),Da=l(e),ut=p(e,"P",{"data-svelte-h":!0}),c(ut)!=="svelte-1e8ega2"&&(ut.innerHTML=Nr),Ka=l(e),pt=p(e,"P",{"data-svelte-h":!0}),c(pt)!=="svelte-19p7cgw"&&(pt.innerHTML=Vr),Oa=l(e),X=p(e,"DIV",{class:!0});var q=j(X);d(ct.$$.fragment,q),hl=l(q),Hs=p(q,"P",{"data-svelte-h":!0}),c(Hs)!=="svelte-jy7jz8"&&(Hs.innerHTML=Fr),dl=l(q),Us=p(q,"P",{"data-svelte-h":!0}),c(Us)!=="svelte-1e01xiq"&&(Us.innerHTML=Lr),fl=l(q),Cs=p(q,"P",{"data-svelte-h":!0}),c(Cs)!=="svelte-86icrd"&&(Cs.innerHTML=qr),ml=l(q),d(ye.$$.fragment,q),q.forEach(a),en=l(e),G=p(e,"DIV",{class:!0});var S=j(G);d(ht.$$.fragment,S),bl=l(S),Is=p(S,"P",{"data-svelte-h":!0}),c(Is)!=="svelte-1h59yv2"&&(Is.innerHTML=Sr),_l=l(S),Zs=p(S,"P",{"data-svelte-h":!0}),c(Zs)!=="svelte-1e01xiq"&&(Zs.innerHTML=Wr),yl=l(S),Es=p(S,"P",{"data-svelte-h":!0}),c(Es)!=="svelte-86icrd"&&(Es.innerHTML=Yr),$l=l(S),d($e.$$.fragment,S),S.forEach(a),tn=l(e),d(dt.$$.fragment,e),sn=l(e),ft=p(e,"P",{"data-svelte-h":!0}),c(ft)!=="svelte-1pwej93"&&(ft.innerHTML=zr),an=l(e),d(mt.$$.fragment,e),nn=l(e),bt=p(e,"P",{"data-svelte-h":!0}),c(bt)!=="svelte-xkkxlf"&&(bt.innerHTML=Pr),ln=l(e),d(_t.$$.fragment,e),rn=l(e),R=p(e,"DIV",{class:!0});var W=j(R);d(yt.$$.fragment,W),vl=l(W),Bs=p(W,"P",{"data-svelte-h":!0}),c(Bs)!=="svelte-3py7p6"&&(Bs.innerHTML=Qr),Ml=l(W),Xs=p(W,"P",{"data-svelte-h":!0}),c(Xs)!=="svelte-1t2j21h"&&(Xs.textContent=Ar),wl=l(W),d(ve.$$.fragment,W),Tl=l(W),d(Me.$$.fragment,W),W.forEach(a),on=l(e),d($t.$$.fragment,e),gn=l(e),vt=p(e,"P",{"data-svelte-h":!0}),c(vt)!=="svelte-1uk88ij"&&(vt.innerHTML=Dr),un=l(e),d(Mt.$$.fragment,e),pn=l(e),wt=p(e,"P",{"data-svelte-h":!0}),c(wt)!=="svelte-vytdbq"&&(wt.innerHTML=Kr),cn=l(e),U=p(e,"DIV",{class:!0});var E=j(U);d(Tt.$$.fragment,E),jl=l(E),Gs=p(E,"P",{"data-svelte-h":!0}),c(Gs)!=="svelte-18strew"&&(Gs.textContent=Or),Jl=l(E),Rs=p(E,"P",{"data-svelte-h":!0}),c(Rs)!=="svelte-avbd3z"&&(Rs.innerHTML=eo),xl=l(E),Ns=p(E,"P",{"data-svelte-h":!0}),c(Ns)!=="svelte-crgpwu"&&(Ns.textContent=to),kl=l(E),Vs=p(E,"UL",{"data-svelte-h":!0}),c(Vs)!=="svelte-1n3lleg"&&(Vs.innerHTML=so),Hl=l(E),d(we.$$.fragment,E),Ul=l(E),Te=p(E,"DIV",{class:!0});var Qn=j(Te);d(jt.$$.fragment,Qn),Cl=l(Qn),Fs=p(Qn,"P",{"data-svelte-h":!0}),c(Fs)!=="svelte-7adl8o"&&(Fs.innerHTML=ao),Qn.forEach(a),E.forEach(a),hn=l(e),d(Jt.$$.fragment,e),dn=l(e),O=p(e,"DIV",{class:!0});var ba=j(O);d(xt.$$.fragment,ba),Il=l(ba),Ls=p(ba,"P",{"data-svelte-h":!0}),c(Ls)!=="svelte-sh3izq"&&(Ls.textContent=no),Zl=l(ba),d(je.$$.fragment,ba),ba.forEach(a),fn=l(e),d(kt.$$.fragment,e),mn=l(e),F=p(e,"DIV",{class:!0});var Ee=j(F);d(Ht.$$.fragment,Ee),El=l(Ee),qs=p(Ee,"P",{"data-svelte-h":!0}),c(qs)!=="svelte-124smaa"&&(qs.textContent=lo),Bl=l(Ee),Ss=p(Ee,"P",{"data-svelte-h":!0}),c(Ss)!=="svelte-op3w3s"&&(Ss.innerHTML=ro),Xl=l(Ee),d(Je.$$.fragment,Ee),Ee.forEach(a),bn=l(e),d(Ut.$$.fragment,e),_n=l(e),ee=p(e,"DIV",{class:!0});var _a=j(ee);d(Ct.$$.fragment,_a),Gl=l(_a),Ws=p(_a,"P",{"data-svelte-h":!0}),c(Ws)!=="svelte-1y14njt"&&(Ws.textContent=oo),Rl=l(_a),d(xe.$$.fragment,_a),_a.forEach(a),yn=l(e),d(It.$$.fragment,e),$n=l(e),te=p(e,"DIV",{class:!0});var ya=j(te);d(Zt.$$.fragment,ya),Nl=l(ya),Ys=p(ya,"P",{"data-svelte-h":!0}),c(Ys)!=="svelte-3wgqhz"&&(Ys.textContent=io),Vl=l(ya),d(ke.$$.fragment,ya),ya.forEach(a),vn=l(e),d(Et.$$.fragment,e),Mn=l(e),se=p(e,"DIV",{class:!0});var $a=j(se);d(Bt.$$.fragment,$a),Fl=l($a),zs=p($a,"P",{"data-svelte-h":!0}),c(zs)!=="svelte-1yqsf92"&&(zs.innerHTML=go),Ll=l($a),d(He.$$.fragment,$a),$a.forEach(a),wn=l(e),d(Xt.$$.fragment,e),Tn=l(e),L=p(e,"DIV",{class:!0});var Be=j(L);d(Gt.$$.fragment,Be),ql=l(Be),Ps=p(Be,"P",{"data-svelte-h":!0}),c(Ps)!=="svelte-1r567zf"&&(Ps.textContent=uo),Sl=l(Be),Qs=p(Be,"P",{"data-svelte-h":!0}),c(Qs)!=="svelte-10eu23r"&&(Qs.innerHTML=po),Wl=l(Be),d(Ue.$$.fragment,Be),Be.forEach(a),jn=l(e),d(Rt.$$.fragment,e),Jn=l(e),Nt=p(e,"P",{"data-svelte-h":!0}),c(Nt)!=="svelte-1h719bl"&&(Nt.innerHTML=co),xn=l(e),Vt=p(e,"P",{"data-svelte-h":!0}),c(Vt)!=="svelte-k49iiw"&&(Vt.innerHTML=ho),kn=l(e),N=p(e,"DIV",{class:!0});var ne=j(N);d(Ft.$$.fragment,ne),Yl=l(ne),As=p(ne,"P",{"data-svelte-h":!0}),c(As)!=="svelte-wzuwoa"&&(As.textContent=fo),zl=l(ne),Ds=p(ne,"P",{"data-svelte-h":!0}),c(Ds)!=="svelte-1w41bga"&&(Ds.innerHTML=mo),Pl=l(ne),Ks=p(ne,"P",{"data-svelte-h":!0}),c(Ks)!=="svelte-yxaifj"&&(Ks.textContent=bo),Ql=l(ne),d(Ce.$$.fragment,ne),ne.forEach(a),Hn=l(e),d(Lt.$$.fragment,e),Un=l(e),qt=p(e,"P",{"data-svelte-h":!0}),c(qt)!=="svelte-1sy4xpm"&&(qt.innerHTML=_o),Cn=l(e),d(St.$$.fragment,e),In=l(e),Wt=p(e,"P",{"data-svelte-h":!0}),c(Wt)!=="svelte-1c76rrk"&&(Wt.innerHTML=yo),Zn=l(e),Yt=p(e,"P",{"data-svelte-h":!0}),c(Yt)!=="svelte-119r23c"&&(Yt.innerHTML=$o),En=l(e),zt=p(e,"P",{"data-svelte-h":!0}),c(zt)!=="svelte-5wyjqd"&&(zt.textContent=vo),Bn=l(e),d(Pt.$$.fragment,e),Xn=l(e),d(Qt.$$.fragment,e),Gn=l(e),I=p(e,"DIV",{class:!0});var Y=j(I);d(At.$$.fragment,Y),Al=l(Y),Os=p(Y,"P",{"data-svelte-h":!0}),c(Os)!=="svelte-1ie7wvp"&&(Os.innerHTML=Mo),Dl=l(Y),ea=p(Y,"P",{"data-svelte-h":!0}),c(ea)!=="svelte-s9eemq"&&(ea.textContent=wo),Kl=l(Y),ta=p(Y,"P",{"data-svelte-h":!0}),c(ta)!=="svelte-gm0f4r"&&(ta.textContent=To),Ol=l(Y),sa=p(Y,"UL",{"data-svelte-h":!0}),c(sa)!=="svelte-1efac0s"&&(sa.innerHTML=jo),er=l(Y),d(Ie.$$.fragment,Y),Y.forEach(a),Rn=l(e),d(Dt.$$.fragment,e),Nn=l(e),ae=p(e,"DIV",{class:!0});var va=j(ae);d(Kt.$$.fragment,va),tr=l(va),aa=p(va,"P",{"data-svelte-h":!0}),c(aa)!=="svelte-18mocqd"&&(aa.innerHTML=Jo),sr=l(va),na=p(va,"P",{"data-svelte-h":!0}),c(na)!=="svelte-1x4lpy7"&&(na.innerHTML=xo),va.forEach(a),Vn=l(e),d(Ot.$$.fragment,e),Fn=l(e),es=p(e,"P",{"data-svelte-h":!0}),c(es)!=="svelte-lrn6fl"&&(es.textContent=ko),Ln=l(e),d(ts.$$.fragment,e),qn=l(e),k=p(e,"DIV",{class:!0});var H=j(k);d(ss.$$.fragment,H),ar=l(H),la=p(H,"P",{"data-svelte-h":!0}),c(la)!=="svelte-a7trx5"&&(la.innerHTML=Ho),nr=l(H),ra=p(H,"P",{"data-svelte-h":!0}),c(ra)!=="svelte-j8tpz5"&&(ra.innerHTML=Uo),lr=l(H),oa=p(H,"P",{"data-svelte-h":!0}),c(oa)!=="svelte-1k3ttfh"&&(oa.textContent=Co),rr=l(H),ia=p(H,"UL",{"data-svelte-h":!0}),c(ia)!=="svelte-btlkju"&&(ia.innerHTML=Io),or=l(H),ga=p(H,"P",{"data-svelte-h":!0}),c(ga)!=="svelte-1gfzn2"&&(ga.innerHTML=Zo),ir=l(H),ua=p(H,"P",{"data-svelte-h":!0}),c(ua)!=="svelte-dpfzvw"&&(ua.innerHTML=Eo),gr=l(H),d(Ze.$$.fragment,H),ur=l(H),pa=p(H,"P",{"data-svelte-h":!0}),c(pa)!=="svelte-u984v5"&&(pa.innerHTML=Bo),pr=l(H),ca=p(H,"UL",{"data-svelte-h":!0}),c(ca)!=="svelte-p5ztoo"&&(ca.innerHTML=Xo),H.forEach(a),Sn=l(e),d(as.$$.fragment,e),Wn=l(e),ns=p(e,"P",{"data-svelte-h":!0}),c(ns)!=="svelte-1nxvghg"&&(ns.textContent=Go),Yn=l(e),Z=p(e,"DIV",{class:!0});var z=j(Z);d(ls.$$.fragment,z),cr=l(z),ha=p(z,"P",{"data-svelte-h":!0}),c(ha)!=="svelte-1q2lppc"&&(ha.innerHTML=Ro),hr=l(z),da=p(z,"P",{"data-svelte-h":!0}),c(da)!=="svelte-1tecmui"&&(da.innerHTML=No),dr=l(z),rs=p(z,"OL",{start:!0,"data-svelte-h":!0}),c(rs)!=="svelte-13quknz"&&(rs.innerHTML=Vo),fr=l(z),fa=p(z,"P",{"data-svelte-h":!0}),c(fa)!=="svelte-q6cvg2"&&(fa.textContent=Fo),mr=l(z),ma=p(z,"UL",{"data-svelte-h":!0}),c(ma)!=="svelte-1sjdcka"&&(ma.innerHTML=Lo),z.forEach(a),zn=l(e),Ma=p(e,"P",{}),j(Ma).forEach(a),this.h()},h(){T(o,"name","hf:doc:metadata"),T(o,"content",ci),T(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(rs,"start","0"),T(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,s){i(document.head,o),r(e,M,s),r(e,y,s),r(e,g,s),f($,e,s),r(e,t,s),f(v,e,s),r(e,wa,s),r(e,Xe,s),r(e,Ta,s),f(Ge,e,s),r(e,ja,s),r(e,Re,s),r(e,Ja,s),f(Ne,e,s),r(e,xa,s),r(e,Ve,s),r(e,ka,s),r(e,Fe,s),r(e,Ha,s),r(e,P,s),f(Le,P,null),i(P,An),i(P,ds),i(P,Dn),f(be,P,null),r(e,Ua,s),r(e,le,s),f(qe,le,null),i(le,Kn),i(le,fs),r(e,Ca,s),r(e,re,s),f(Se,re,null),i(re,On),i(re,ms),r(e,Ia,s),r(e,oe,s),f(We,oe,null),i(oe,el),i(oe,bs),r(e,Za,s),r(e,ie,s),f(Ye,ie,null),i(ie,tl),i(ie,_s),r(e,Ea,s),r(e,ge,s),f(ze,ge,null),i(ge,sl),i(ge,ys),r(e,Ba,s),r(e,ue,s),f(Pe,ue,null),i(ue,al),i(ue,$s),r(e,Xa,s),r(e,pe,s),f(Qe,pe,null),i(pe,nl),i(pe,vs),r(e,Ga,s),f(Ae,e,s),r(e,Ra,s),r(e,De,s),r(e,Na,s),r(e,Q,s),f(Ke,Q,null),i(Q,ll),i(Q,Ms),i(Q,rl),f(_e,Q,null),r(e,Va,s),f(Oe,e,s),r(e,Fa,s),r(e,et,s),r(e,La,s),r(e,tt,s),r(e,qa,s),f(st,e,s),r(e,Sa,s),f(at,e,s),r(e,Wa,s),r(e,A,s),f(nt,A,null),i(A,ol),i(A,ws),i(A,il),i(A,Ts),r(e,Ya,s),f(lt,e,s),r(e,za,s),r(e,D,s),f(rt,D,null),i(D,gl),i(D,js),i(D,ul),i(D,Js),r(e,Pa,s),f(ot,e,s),r(e,Qa,s),r(e,K,s),f(it,K,null),i(K,pl),i(K,xs),i(K,cl),i(K,ks),r(e,Aa,s),f(gt,e,s),r(e,Da,s),r(e,ut,s),r(e,Ka,s),r(e,pt,s),r(e,Oa,s),r(e,X,s),f(ct,X,null),i(X,hl),i(X,Hs),i(X,dl),i(X,Us),i(X,fl),i(X,Cs),i(X,ml),f(ye,X,null),r(e,en,s),r(e,G,s),f(ht,G,null),i(G,bl),i(G,Is),i(G,_l),i(G,Zs),i(G,yl),i(G,Es),i(G,$l),f($e,G,null),r(e,tn,s),f(dt,e,s),r(e,sn,s),r(e,ft,s),r(e,an,s),f(mt,e,s),r(e,nn,s),r(e,bt,s),r(e,ln,s),f(_t,e,s),r(e,rn,s),r(e,R,s),f(yt,R,null),i(R,vl),i(R,Bs),i(R,Ml),i(R,Xs),i(R,wl),f(ve,R,null),i(R,Tl),f(Me,R,null),r(e,on,s),f($t,e,s),r(e,gn,s),r(e,vt,s),r(e,un,s),f(Mt,e,s),r(e,pn,s),r(e,wt,s),r(e,cn,s),r(e,U,s),f(Tt,U,null),i(U,jl),i(U,Gs),i(U,Jl),i(U,Rs),i(U,xl),i(U,Ns),i(U,kl),i(U,Vs),i(U,Hl),f(we,U,null),i(U,Ul),i(U,Te),f(jt,Te,null),i(Te,Cl),i(Te,Fs),r(e,hn,s),f(Jt,e,s),r(e,dn,s),r(e,O,s),f(xt,O,null),i(O,Il),i(O,Ls),i(O,Zl),f(je,O,null),r(e,fn,s),f(kt,e,s),r(e,mn,s),r(e,F,s),f(Ht,F,null),i(F,El),i(F,qs),i(F,Bl),i(F,Ss),i(F,Xl),f(Je,F,null),r(e,bn,s),f(Ut,e,s),r(e,_n,s),r(e,ee,s),f(Ct,ee,null),i(ee,Gl),i(ee,Ws),i(ee,Rl),f(xe,ee,null),r(e,yn,s),f(It,e,s),r(e,$n,s),r(e,te,s),f(Zt,te,null),i(te,Nl),i(te,Ys),i(te,Vl),f(ke,te,null),r(e,vn,s),f(Et,e,s),r(e,Mn,s),r(e,se,s),f(Bt,se,null),i(se,Fl),i(se,zs),i(se,Ll),f(He,se,null),r(e,wn,s),f(Xt,e,s),r(e,Tn,s),r(e,L,s),f(Gt,L,null),i(L,ql),i(L,Ps),i(L,Sl),i(L,Qs),i(L,Wl),f(Ue,L,null),r(e,jn,s),f(Rt,e,s),r(e,Jn,s),r(e,Nt,s),r(e,xn,s),r(e,Vt,s),r(e,kn,s),r(e,N,s),f(Ft,N,null),i(N,Yl),i(N,As),i(N,zl),i(N,Ds),i(N,Pl),i(N,Ks),i(N,Ql),f(Ce,N,null),r(e,Hn,s),f(Lt,e,s),r(e,Un,s),r(e,qt,s),r(e,Cn,s),f(St,e,s),r(e,In,s),r(e,Wt,s),r(e,Zn,s),r(e,Yt,s),r(e,En,s),r(e,zt,s),r(e,Bn,s),f(Pt,e,s),r(e,Xn,s),f(Qt,e,s),r(e,Gn,s),r(e,I,s),f(At,I,null),i(I,Al),i(I,Os),i(I,Dl),i(I,ea),i(I,Kl),i(I,ta),i(I,Ol),i(I,sa),i(I,er),f(Ie,I,null),r(e,Rn,s),f(Dt,e,s),r(e,Nn,s),r(e,ae,s),f(Kt,ae,null),i(ae,tr),i(ae,aa),i(ae,sr),i(ae,na),r(e,Vn,s),f(Ot,e,s),r(e,Fn,s),r(e,es,s),r(e,Ln,s),f(ts,e,s),r(e,qn,s),r(e,k,s),f(ss,k,null),i(k,ar),i(k,la),i(k,nr),i(k,ra),i(k,lr),i(k,oa),i(k,rr),i(k,ia),i(k,or),i(k,ga),i(k,ir),i(k,ua),i(k,gr),f(Ze,k,null),i(k,ur),i(k,pa),i(k,pr),i(k,ca),r(e,Sn,s),f(as,e,s),r(e,Wn,s),r(e,ns,s),r(e,Yn,s),r(e,Z,s),f(ls,Z,null),i(Z,cr),i(Z,ha),i(Z,hr),i(Z,da),i(Z,dr),i(Z,rs),i(Z,fr),i(Z,fa),i(Z,mr),i(Z,ma),r(e,zn,s),r(e,Ma,s),Pn=!0},p(e,[s]){const ce={};s&2&&(ce.$$scope={dirty:s,ctx:e}),be.$set(ce);const os={};s&2&&(os.$$scope={dirty:s,ctx:e}),_e.$set(os);const is={};s&2&&(is.$$scope={dirty:s,ctx:e}),ye.$set(is);const gs={};s&2&&(gs.$$scope={dirty:s,ctx:e}),$e.$set(gs);const us={};s&2&&(us.$$scope={dirty:s,ctx:e}),ve.$set(us);const ps={};s&2&&(ps.$$scope={dirty:s,ctx:e}),Me.$set(ps);const cs={};s&2&&(cs.$$scope={dirty:s,ctx:e}),we.$set(cs);const hs={};s&2&&(hs.$$scope={dirty:s,ctx:e}),je.$set(hs);const he={};s&2&&(he.$$scope={dirty:s,ctx:e}),Je.$set(he);const de={};s&2&&(de.$$scope={dirty:s,ctx:e}),xe.$set(de);const fe={};s&2&&(fe.$$scope={dirty:s,ctx:e}),ke.$set(fe);const me={};s&2&&(me.$$scope={dirty:s,ctx:e}),He.$set(me);const q={};s&2&&(q.$$scope={dirty:s,ctx:e}),Ue.$set(q);const S={};s&2&&(S.$$scope={dirty:s,ctx:e}),Ce.$set(S);const W={};s&2&&(W.$$scope={dirty:s,ctx:e}),Ie.$set(W);const E={};s&2&&(E.$$scope={dirty:s,ctx:e}),Ze.$set(E)},i(e){Pn||(m($.$$.fragment,e),m(v.$$.fragment,e),m(Ge.$$.fragment,e),m(Ne.$$.fragment,e),m(Le.$$.fragment,e),m(be.$$.fragment,e),m(qe.$$.fragment,e),m(Se.$$.fragment,e),m(We.$$.fragment,e),m(Ye.$$.fragment,e),m(ze.$$.fragment,e),m(Pe.$$.fragment,e),m(Qe.$$.fragment,e),m(Ae.$$.fragment,e),m(Ke.$$.fragment,e),m(_e.$$.fragment,e),m(Oe.$$.fragment,e),m(st.$$.fragment,e),m(at.$$.fragment,e),m(nt.$$.fragment,e),m(lt.$$.fragment,e),m(rt.$$.fragment,e),m(ot.$$.fragment,e),m(it.$$.fragment,e),m(gt.$$.fragment,e),m(ct.$$.fragment,e),m(ye.$$.fragment,e),m(ht.$$.fragment,e),m($e.$$.fragment,e),m(dt.$$.fragment,e),m(mt.$$.fragment,e),m(_t.$$.fragment,e),m(yt.$$.fragment,e),m(ve.$$.fragment,e),m(Me.$$.fragment,e),m($t.$$.fragment,e),m(Mt.$$.fragment,e),m(Tt.$$.fragment,e),m(we.$$.fragment,e),m(jt.$$.fragment,e),m(Jt.$$.fragment,e),m(xt.$$.fragment,e),m(je.$$.fragment,e),m(kt.$$.fragment,e),m(Ht.$$.fragment,e),m(Je.$$.fragment,e),m(Ut.$$.fragment,e),m(Ct.$$.fragment,e),m(xe.$$.fragment,e),m(It.$$.fragment,e),m(Zt.$$.fragment,e),m(ke.$$.fragment,e),m(Et.$$.fragment,e),m(Bt.$$.fragment,e),m(He.$$.fragment,e),m(Xt.$$.fragment,e),m(Gt.$$.fragment,e),m(Ue.$$.fragment,e),m(Rt.$$.fragment,e),m(Ft.$$.fragment,e),m(Ce.$$.fragment,e),m(Lt.$$.fragment,e),m(St.$$.fragment,e),m(Pt.$$.fragment,e),m(Qt.$$.fragment,e),m(At.$$.fragment,e),m(Ie.$$.fragment,e),m(Dt.$$.fragment,e),m(Kt.$$.fragment,e),m(Ot.$$.fragment,e),m(ts.$$.fragment,e),m(ss.$$.fragment,e),m(Ze.$$.fragment,e),m(as.$$.fragment,e),m(ls.$$.fragment,e),Pn=!0)},o(e){b($.$$.fragment,e),b(v.$$.fragment,e),b(Ge.$$.fragment,e),b(Ne.$$.fragment,e),b(Le.$$.fragment,e),b(be.$$.fragment,e),b(qe.$$.fragment,e),b(Se.$$.fragment,e),b(We.$$.fragment,e),b(Ye.$$.fragment,e),b(ze.$$.fragment,e),b(Pe.$$.fragment,e),b(Qe.$$.fragment,e),b(Ae.$$.fragment,e),b(Ke.$$.fragment,e),b(_e.$$.fragment,e),b(Oe.$$.fragment,e),b(st.$$.fragment,e),b(at.$$.fragment,e),b(nt.$$.fragment,e),b(lt.$$.fragment,e),b(rt.$$.fragment,e),b(ot.$$.fragment,e),b(it.$$.fragment,e),b(gt.$$.fragment,e),b(ct.$$.fragment,e),b(ye.$$.fragment,e),b(ht.$$.fragment,e),b($e.$$.fragment,e),b(dt.$$.fragment,e),b(mt.$$.fragment,e),b(_t.$$.fragment,e),b(yt.$$.fragment,e),b(ve.$$.fragment,e),b(Me.$$.fragment,e),b($t.$$.fragment,e),b(Mt.$$.fragment,e),b(Tt.$$.fragment,e),b(we.$$.fragment,e),b(jt.$$.fragment,e),b(Jt.$$.fragment,e),b(xt.$$.fragment,e),b(je.$$.fragment,e),b(kt.$$.fragment,e),b(Ht.$$.fragment,e),b(Je.$$.fragment,e),b(Ut.$$.fragment,e),b(Ct.$$.fragment,e),b(xe.$$.fragment,e),b(It.$$.fragment,e),b(Zt.$$.fragment,e),b(ke.$$.fragment,e),b(Et.$$.fragment,e),b(Bt.$$.fragment,e),b(He.$$.fragment,e),b(Xt.$$.fragment,e),b(Gt.$$.fragment,e),b(Ue.$$.fragment,e),b(Rt.$$.fragment,e),b(Ft.$$.fragment,e),b(Ce.$$.fragment,e),b(Lt.$$.fragment,e),b(St.$$.fragment,e),b(Pt.$$.fragment,e),b(Qt.$$.fragment,e),b(At.$$.fragment,e),b(Ie.$$.fragment,e),b(Dt.$$.fragment,e),b(Kt.$$.fragment,e),b(Ot.$$.fragment,e),b(ts.$$.fragment,e),b(ss.$$.fragment,e),b(Ze.$$.fragment,e),b(as.$$.fragment,e),b(ls.$$.fragment,e),Pn=!1},d(e){e&&(a(M),a(y),a(g),a(t),a(wa),a(Xe),a(Ta),a(ja),a(Re),a(Ja),a(xa),a(Ve),a(ka),a(Fe),a(Ha),a(P),a(Ua),a(le),a(Ca),a(re),a(Ia),a(oe),a(Za),a(ie),a(Ea),a(ge),a(Ba),a(ue),a(Xa),a(pe),a(Ga),a(Ra),a(De),a(Na),a(Q),a(Va),a(Fa),a(et),a(La),a(tt),a(qa),a(Sa),a(Wa),a(A),a(Ya),a(za),a(D),a(Pa),a(Qa),a(K),a(Aa),a(Da),a(ut),a(Ka),a(pt),a(Oa),a(X),a(en),a(G),a(tn),a(sn),a(ft),a(an),a(nn),a(bt),a(ln),a(rn),a(R),a(on),a(gn),a(vt),a(un),a(pn),a(wt),a(cn),a(U),a(hn),a(dn),a(O),a(fn),a(mn),a(F),a(bn),a(_n),a(ee),a(yn),a($n),a(te),a(vn),a(Mn),a(se),a(wn),a(Tn),a(L),a(jn),a(Jn),a(Nt),a(xn),a(Vt),a(kn),a(N),a(Hn),a(Un),a(qt),a(Cn),a(In),a(Wt),a(Zn),a(Yt),a(En),a(zt),a(Bn),a(Xn),a(Gn),a(I),a(Rn),a(Nn),a(ae),a(Vn),a(Fn),a(es),a(Ln),a(qn),a(k),a(Sn),a(Wn),a(ns),a(Yn),a(Z),a(zn),a(Ma)),a(o),_($,e),_(v,e),_(Ge,e),_(Ne,e),_(Le),_(be),_(qe),_(Se),_(We),_(Ye),_(ze),_(Pe),_(Qe),_(Ae,e),_(Ke),_(_e),_(Oe,e),_(st,e),_(at,e),_(nt),_(lt,e),_(rt),_(ot,e),_(it),_(gt,e),_(ct),_(ye),_(ht),_($e),_(dt,e),_(mt,e),_(_t,e),_(yt),_(ve),_(Me),_($t,e),_(Mt,e),_(Tt),_(we),_(jt),_(Jt,e),_(xt),_(je),_(kt,e),_(Ht),_(Je),_(Ut,e),_(Ct),_(xe),_(It,e),_(Zt),_(ke),_(Et,e),_(Bt),_(He),_(Xt,e),_(Gt),_(Ue),_(Rt,e),_(Ft),_(Ce),_(Lt,e),_(St,e),_(Pt,e),_(Qt,e),_(At),_(Ie),_(Dt,e),_(Kt),_(Ot,e),_(ts,e),_(ss),_(Ze),_(as,e),_(ls)}}}const ci='{"title":"Utilities","local":"utilities","sections":[{"title":"Configure logging","local":"huggingface_hub.utils.logging.get_verbosity","sections":[{"title":"Repo-specific helper methods","local":"huggingface_hub.utils.logging.get_logger","sections":[],"depth":3}],"depth":2},{"title":"Configure progress bars","local":"configure-progress-bars","sections":[{"title":"are_progress_bars_disabled","local":"huggingface_hub.utils.are_progress_bars_disabled","sections":[],"depth":3},{"title":"disable_progress_bars","local":"huggingface_hub.utils.disable_progress_bars","sections":[],"depth":3},{"title":"enable_progress_bars","local":"huggingface_hub.utils.enable_progress_bars","sections":[],"depth":3}],"depth":2},{"title":"Configure HTTP backend","local":"huggingface_hub.configure_http_backend","sections":[],"depth":2},{"title":"Handle HTTP errors","local":"handle-http-errors","sections":[{"title":"Raise for status","local":"huggingface_hub.utils.hf_raise_for_status","sections":[],"depth":3},{"title":"HTTP errors","local":"http-errors","sections":[{"title":"HfHubHTTPError","local":"huggingface_hub.utils.HfHubHTTPError","sections":[],"depth":4},{"title":"RepositoryNotFoundError","local":"huggingface_hub.utils.RepositoryNotFoundError","sections":[],"depth":4},{"title":"GatedRepoError","local":"huggingface_hub.utils.GatedRepoError","sections":[],"depth":4},{"title":"RevisionNotFoundError","local":"huggingface_hub.utils.RevisionNotFoundError","sections":[],"depth":4},{"title":"EntryNotFoundError","local":"huggingface_hub.utils.EntryNotFoundError","sections":[],"depth":4},{"title":"BadRequestError","local":"huggingface_hub.utils.BadRequestError","sections":[],"depth":4},{"title":"LocalEntryNotFoundError","local":"huggingface_hub.utils.LocalEntryNotFoundError","sections":[],"depth":4}],"depth":3}],"depth":2},{"title":"Telemetry","local":"huggingface_hub.utils.send_telemetry","sections":[],"depth":2},{"title":"Validators","local":"validators","sections":[{"title":"Generic decorator","local":"generic-decorator","sections":[{"title":"validate_hf_hub_args","local":"huggingface_hub.utils.validate_hf_hub_args","sections":[],"depth":4},{"title":"HFValidationError","local":"huggingface_hub.utils.HFValidationError","sections":[],"depth":4}],"depth":3},{"title":"Argument validators","local":"argument-validators","sections":[{"title":"repo_id","local":"huggingface_hub.utils.validate_repo_id","sections":[],"depth":4},{"title":"smoothly_deprecate_use_auth_token","local":"huggingface_hub.utils.smoothly_deprecate_use_auth_token","sections":[],"depth":4}],"depth":3}],"depth":2}],"depth":1}';function hi(w){return Wo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class vi extends Yo{constructor(o){super(),zo(this,o,hi,pi,So,{})}}export{vi as component};
