import{s as ne,n as ie,o as se}from"../chunks/scheduler.9cda857a.js";import{S as le,i as re,e as l,s as i,c as V,h as ce,a as r,d as a,b as s,f as ae,g as A,j as o,k as _,l as oe,m as n,n as B,t as K,o as Q,p as G}from"../chunks/index.003612b0.js";import{C as ue}from"../chunks/CopyLLMTxtMenu.44d08a39.js";import{H as me,E as fe}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e5cfda8c.js";function he(R){let c,T,k,y,g,L,d,C,v,W='We run every file of your repositories through a <a href="https://www.clamav.net/" rel="nofollow">malware scanner</a>.',H,b,F="Scanning is triggered at each commit.",P,w,J='Here is an <a href="https://huggingface.co/mcpotato/42-eicar-street/tree/main" rel="nofollow">example view</a> of an infected file:',E,u,N='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/eicar-hub-file-view.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/eicar-hub-file-view-dark.png"/>',S,m,X="<p>If your file has neither an ok nor infected badge, it could mean that it is either currently being scanned, waiting to be scanned, or that there was an error during the scan. It can take up to a few minutes to be scanned.</p>",j,$,Y="If at least one file has a been scanned as unsafe, a message will warn the users:",I,f,Z='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/eicar-hub-model.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/eicar-hub-model-dark.png"/>',q,h,ee='<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/eicar-hub-tree-view.png"/> <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/eicar-hub-tree-view-dark.png"/>',O,p,te="<p>As the repository owner, we advise you to remove the suspicious file. The repository will appear back as safe.</p>",z,x,D,M,U;return g=new ue({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),d=new me({props:{title:"Malware Scanning",local:"malware-scanning",headingTag:"h1"}}),x=new fe({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/security-malware.md"}}),{c(){c=l("meta"),T=i(),k=l("p"),y=i(),V(g.$$.fragment),L=i(),V(d.$$.fragment),C=i(),v=l("p"),v.innerHTML=W,H=i(),b=l("p"),b.textContent=F,P=i(),w=l("p"),w.innerHTML=J,E=i(),u=l("div"),u.innerHTML=N,S=i(),m=l("blockquote"),m.innerHTML=X,j=i(),$=l("p"),$.textContent=Y,I=i(),f=l("div"),f.innerHTML=Z,q=i(),h=l("div"),h.innerHTML=ee,O=i(),p=l("blockquote"),p.innerHTML=te,z=i(),V(x.$$.fragment),D=i(),M=l("p"),this.h()},l(e){const t=ce("svelte-u9bgzb",document.head);c=r(t,"META",{name:!0,content:!0}),t.forEach(a),T=s(e),k=r(e,"P",{}),ae(k).forEach(a),y=s(e),A(g.$$.fragment,e),L=s(e),A(d.$$.fragment,e),C=s(e),v=r(e,"P",{"data-svelte-h":!0}),o(v)!=="svelte-1jhukcm"&&(v.innerHTML=W),H=s(e),b=r(e,"P",{"data-svelte-h":!0}),o(b)!=="svelte-hanoiv"&&(b.textContent=F),P=s(e),w=r(e,"P",{"data-svelte-h":!0}),o(w)!=="svelte-10shdhl"&&(w.innerHTML=J),E=s(e),u=r(e,"DIV",{class:!0,"data-svelte-h":!0}),o(u)!=="svelte-11cafaf"&&(u.innerHTML=N),S=s(e),m=r(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),o(m)!=="svelte-198gh1i"&&(m.innerHTML=X),j=s(e),$=r(e,"P",{"data-svelte-h":!0}),o($)!=="svelte-1eh1rid"&&($.textContent=Y),I=s(e),f=r(e,"DIV",{class:!0,"data-svelte-h":!0}),o(f)!=="svelte-13zua0v"&&(f.innerHTML=Z),q=s(e),h=r(e,"DIV",{class:!0,"data-svelte-h":!0}),o(h)!=="svelte-yfgv9j"&&(h.innerHTML=ee),O=s(e),p=r(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),o(p)!=="svelte-1vhhsgl"&&(p.innerHTML=te),z=s(e),A(x.$$.fragment,e),D=s(e),M=r(e,"P",{}),ae(M).forEach(a),this.h()},h(){_(c,"name","hf:doc:metadata"),_(c,"content",pe),_(u,"class","flex justify-center"),_(m,"class","tip"),_(f,"class","flex justify-center"),_(h,"class","flex justify-center"),_(p,"class","tip")},m(e,t){oe(document.head,c),n(e,T,t),n(e,k,t),n(e,y,t),B(g,e,t),n(e,L,t),B(d,e,t),n(e,C,t),n(e,v,t),n(e,H,t),n(e,b,t),n(e,P,t),n(e,w,t),n(e,E,t),n(e,u,t),n(e,S,t),n(e,m,t),n(e,j,t),n(e,$,t),n(e,I,t),n(e,f,t),n(e,q,t),n(e,h,t),n(e,O,t),n(e,p,t),n(e,z,t),B(x,e,t),n(e,D,t),n(e,M,t),U=!0},p:ie,i(e){U||(K(g.$$.fragment,e),K(d.$$.fragment,e),K(x.$$.fragment,e),U=!0)},o(e){Q(g.$$.fragment,e),Q(d.$$.fragment,e),Q(x.$$.fragment,e),U=!1},d(e){e&&(a(T),a(k),a(y),a(L),a(C),a(v),a(H),a(b),a(P),a(w),a(E),a(u),a(S),a(m),a(j),a($),a(I),a(f),a(q),a(h),a(O),a(p),a(z),a(D),a(M)),a(c),G(g,e),G(d,e),G(x,e)}}}const pe='{"title":"Malware Scanning","local":"malware-scanning","sections":[],"depth":1}';function ge(R){return se(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class $e extends le{constructor(c){super(),re(this,c,ge,he,ne,{})}}export{$e as component};
