import{s as de,n as D,e as ol,o as il,A as Jt,b as fl,c as et,u as tt,g as lt,d as nt}from"../chunks/scheduler.8c3d61f6.js";import{S as $e,i as ge,B as y,C,j as $,f as r,k as i,a as h,y as d,m as Ce,n as Me,q as Ot,g as E,r as z,s as _,h as T,u as I,c as v,v as J,D as It,p as Oe,t as b,w as H,b as Ke,d as w,A as ul,x as P}from"../chunks/index.da70eac4.js";import{T as cl}from"../chunks/Tip.1d9b8c37.js";import{C as W}from"../chunks/CodeBlock.a9c4becf.js";import{g as hl}from"../chunks/globals.7f7f1b26.js";import{A as me,g as pl,H as ml,a as Kt}from"../chunks/HfOption.6ab18950.js";import{H as qe,E as dl}from"../chunks/getInferenceSnippets.a8672208.js";function $l(o){let e,s,t,l,a,u;return{c(){e=y("svg"),s=y("defs"),t=y("clipPath"),l=y("rect"),a=y("g"),u=y("path"),this.h()},l(m){e=C(m,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var p=$(e);s=C(p,"defs",{});var g=$(s);t=C(g,"clipPath",{id:!0});var M=$(t);l=C(M,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0}),$(l).forEach(r),M.forEach(r),g.forEach(r),a=C(p,"g",{"clip-path":!0});var c=$(a);u=C(c,"path",{d:!0,fill:!0}),$(u).forEach(r),c.forEach(r),p.forEach(r),this.h()},h(){i(l,"x","3.05"),i(l,"y","0.5"),i(l,"width","25.73"),i(l,"height","31"),i(l,"fill","none"),i(t,"id","a"),i(u,"d","M24.94,9.51a12.81,12.81,0,0,1,0,18.16,12.68,12.68,0,0,1-18,0,12.81,12.81,0,0,1,0-18.16l9-9V5l-.84.83-6,6a9.58,9.58,0,1,0,13.55,0ZM20.44,9a1.68,1.68,0,1,1,1.67-1.67A1.68,1.68,0,0,1,20.44,9Z"),i(u,"fill","#ee4c2c"),i(a,"clip-path","url(#a)"),i(e,"class",o[0]),i(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),i(e,"aria-hidden","true"),i(e,"focusable","false"),i(e,"role","img"),i(e,"width","1em"),i(e,"height","1em"),i(e,"preserveAspectRatio","xMidYMid meet"),i(e,"viewBox","0 0 32 32")},m(m,p){h(m,e,p),d(e,s),d(s,t),d(t,l),d(e,a),d(a,u)},p(m,[p]){p&1&&i(e,"class",m[0])},i:D,o:D,d(m){m&&r(e)}}}function gl(o,e,s){let{classNames:t=""}=e;return o.$$set=l=>{"classNames"in l&&s(0,t=l.classNames)},[t]}class wl extends $e{constructor(e){super(),ge(this,e,gl,$l,de,{classNames:0})}}function _l(o){let e,s,t,l;return{c(){e=y("svg"),s=y("path"),t=y("path"),l=y("path"),this.h()},l(a){e=C(a,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var u=$(e);s=C(u,"path",{d:!0,fill:!0}),$(s).forEach(r),t=C(u,"path",{d:!0,fill:!0}),$(t).forEach(r),l=C(u,"path",{d:!0,fill:!0}),$(l).forEach(r),u.forEach(r),this.h()},h(){i(s,"d","M145.726 42.065v42.07l72.861 42.07v-42.07l-72.86-42.07zM0 84.135v42.07l36.43 21.03V105.17L0 84.135zm109.291 21.035l-36.43 21.034v126.2l36.43 21.035v-84.135l36.435 21.035v-42.07l-36.435-21.034V105.17z"),i(s,"fill","#E55B2D"),i(t,"d","M145.726 42.065L36.43 105.17v42.065l72.861-42.065v42.065l36.435-21.03v-84.14zM255.022 63.1l-36.435 21.035v42.07l36.435-21.035V63.1zm-72.865 84.135l-36.43 21.035v42.07l36.43-21.036v-42.07zm-36.43 63.104l-36.436-21.035v84.135l36.435-21.035V210.34z"),i(t,"fill","#ED8E24"),i(l,"d","M145.726 0L0 84.135l36.43 21.035l109.296-63.105l72.861 42.07L255.022 63.1L145.726 0zm0 126.204l-36.435 21.03l36.435 21.036l36.43-21.035l-36.43-21.03z"),i(l,"fill","#F8BF3C"),i(e,"class",o[0]),i(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),i(e,"aria-hidden","true"),i(e,"focusable","false"),i(e,"role","img"),i(e,"width","0.94em"),i(e,"height","1em"),i(e,"preserveAspectRatio","xMidYMid meet"),i(e,"viewBox","0 0 256 274")},m(a,u){h(a,e,u),d(e,s),d(e,t),d(e,l)},p(a,[u]){u&1&&i(e,"class",a[0])},i:D,o:D,d(a){a&&r(e)}}}function vl(o,e,s){let{classNames:t=""}=e;return o.$$set=l=>{"classNames"in l&&s(0,t=l.classNames)},[t]}class bl extends $e{constructor(e){super(),ge(this,e,vl,_l,de,{classNames:0})}}function yl(o){let e,s,t,l,a,u,m,p,g,M,c,k,Z,G,U,q,L,j,V,A,x,N,B,F,O,X,fe,K,ue,Q,we,ae,Y,ce,ee,he,te,re,pe,le,_e;return{c(){e=y("svg"),s=y("style"),t=Ce(`.J {
			stroke: #dce0df;
		}
		.K {
			stroke-linejoin: round;
		}
	`),l=y("g"),a=y("path"),u=y("path"),m=y("path"),p=y("path"),g=y("path"),M=y("path"),c=y("path"),k=y("path"),Z=y("g"),G=y("path"),U=y("path"),q=y("path"),L=y("g"),j=y("path"),V=y("path"),A=y("path"),x=y("g"),N=y("path"),B=y("path"),F=y("g"),O=y("path"),X=y("path"),fe=y("path"),K=y("path"),ue=y("path"),Q=y("path"),we=y("path"),ae=y("path"),Y=y("g"),ce=y("path"),ee=y("path"),he=y("path"),te=y("path"),re=y("g"),pe=y("path"),le=y("path"),_e=y("path"),this.h()},l(ie){e=C(ie,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var S=$(e);s=C(S,"style",{});var ke=$(s);t=Me(ke,`.J {
			stroke: #dce0df;
		}
		.K {
			stroke-linejoin: round;
		}
	`),ke.forEach(r),l=C(S,"g",{fill:!0,class:!0});var R=$(l);a=C(R,"path",{d:!0}),$(a).forEach(r),u=C(R,"path",{d:!0}),$(u).forEach(r),m=C(R,"path",{d:!0}),$(m).forEach(r),p=C(R,"path",{d:!0}),$(p).forEach(r),g=C(R,"path",{d:!0}),$(g).forEach(r),M=C(R,"path",{d:!0}),$(M).forEach(r),c=C(R,"path",{d:!0}),$(c).forEach(r),k=C(R,"path",{d:!0}),$(k).forEach(r),R.forEach(r),Z=C(S,"g",{fill:!0,class:!0});var xe=$(Z);G=C(xe,"path",{d:!0}),$(G).forEach(r),U=C(xe,"path",{d:!0}),$(U).forEach(r),q=C(xe,"path",{d:!0}),$(q).forEach(r),xe.forEach(r),L=C(S,"g",{fill:!0,class:!0});var ve=$(L);j=C(ve,"path",{d:!0}),$(j).forEach(r),V=C(ve,"path",{d:!0}),$(V).forEach(r),ve.forEach(r),A=C(S,"path",{d:!0,fill:!0,class:!0}),$(A).forEach(r),x=C(S,"g",{fill:!0,class:!0});var oe=$(x);N=C(oe,"path",{d:!0}),$(N).forEach(r),B=C(oe,"path",{d:!0}),$(B).forEach(r),oe.forEach(r),F=C(S,"g",{fill:!0,class:!0});var ne=$(F);O=C(ne,"path",{d:!0}),$(O).forEach(r),X=C(ne,"path",{d:!0}),$(X).forEach(r),fe=C(ne,"path",{d:!0}),$(fe).forEach(r),K=C(ne,"path",{d:!0}),$(K).forEach(r),ue=C(ne,"path",{d:!0}),$(ue).forEach(r),Q=C(ne,"path",{d:!0}),$(Q).forEach(r),we=C(ne,"path",{d:!0}),$(we).forEach(r),ne.forEach(r),ae=C(S,"path",{d:!0,fill:!0,class:!0}),$(ae).forEach(r),Y=C(S,"g",{fill:!0,class:!0});var se=$(Y);ce=C(se,"path",{d:!0}),$(ce).forEach(r),ee=C(se,"path",{d:!0}),$(ee).forEach(r),he=C(se,"path",{d:!0}),$(he).forEach(r),te=C(se,"path",{d:!0}),$(te).forEach(r),se.forEach(r),re=C(S,"g",{fill:!0,class:!0});var Ee=$(re);pe=C(Ee,"path",{d:!0}),$(pe).forEach(r),le=C(Ee,"path",{d:!0}),$(le).forEach(r),_e=C(Ee,"path",{d:!0}),$(_e).forEach(r),Ee.forEach(r),S.forEach(r),this.h()},h(){i(a,"d","M50.5 130.4l-25 43.31h50l25-43.31h-50z"),i(u,"d","M.5 217.01l25-43.3h50l-25 43.3H.5z"),i(m,"d","M125.5 173.71h-50l-25 43.3h50l25-43.3z"),i(p,"d","M175.5 173.71h-50l-25 43.3h50l25-43.3z"),i(g,"d","M150.5 130.4l-25 43.31h50l25-43.31h-50z"),i(M,"d","M175.5 87.1l-25 43.3h50l25-43.3h-50z"),i(c,"d","M200.5 43.8l-25 43.3h50l25-43.3h-50z"),i(k,"d","M225.5.5l-25 43.3h50l25-43.3h-50z"),i(l,"fill","#5e97f6"),i(l,"class","J K"),i(G,"d","M.5 217.01l25 43.3h50l-25-43.3H.5z"),i(U,"d","M125.5 260.31h-50l-25-43.3h50l25 43.3z"),i(q,"d","M175.5 260.31h-50l-25-43.3h50l25 43.3z"),i(Z,"fill","#2a56c6"),i(Z,"class","J K"),i(j,"d","M200.5 217.01l-25-43.3-25 43.3 25 43.3 25-43.3zm50-86.61l-25-43.3-25 43.3h50z"),i(V,"d","M250.5 43.8l-25 43.3 25 43.3 25-43.3-25-43.3z"),i(L,"fill","#00796b"),i(L,"class","J K"),i(A,"d","M125.5 173.71l-25-43.31-25 43.31h50z"),i(A,"fill","#3367d6"),i(A,"class","J K"),i(N,"d","M250.5 130.4h-50l-25 43.31h50l25-43.31z"),i(B,"d","M300.5 130.4h-50l-25 43.31h50l25-43.31z"),i(x,"fill","#26a69a"),i(x,"class","J K"),i(O,"d","M350.5 43.8L325.5.5l-25 43.3 25 43.3 25-43.3z"),i(X,"d","M375.5 87.1l-25-43.3-25 43.3 25 43.3 25-43.3z"),i(fe,"d","M400.5 130.4l-25-43.3-25 43.3 25 43.31 25-43.31z"),i(K,"d","M425.5 173.71l-25-43.31-25 43.31 25 43.3 25-43.3z"),i(ue,"d","M450.5 217.01l-25-43.3-25 43.3 25 43.3 25-43.3zM425.5.5l-25 43.3 25 43.3 25-43.3-25-43.3z"),i(Q,"d","M375.5 87.1l25-43.3 25 43.3-25 43.3-25-43.3zm-25 43.3l-25 43.31 25 43.3 25-43.3-25-43.31z"),i(we,"d","M325.5 260.31l-25-43.3 25-43.3 25 43.3-25 43.3z"),i(F,"fill","#9c27b0"),i(F,"class","J K"),i(ae,"d","M275.5 260.31l-25-43.3h50l25 43.3h-50z"),i(ae,"fill","#6a1b9a"),i(ae,"class","J K"),i(ce,"d","M225.5 173.71h-50l25 43.3h50l-25-43.3z"),i(ee,"d","M275.5 173.71h-50l25 43.3 25-43.3zm0-86.61l25 43.3h50l-25-43.3h-50z"),i(he,"d","M300.5 43.8h-50l25 43.3h50l-25-43.3zm125 216.51l-25-43.3h-50l25 43.3h50z"),i(te,"d","M375.5 173.71l-25 43.3h50l-25-43.3z"),i(Y,"fill","#00695c"),i(Y,"class","J K"),i(pe,"d","M325.5.5h-50l-25 43.3h50l25-43.3zm0 173.21h-50l-25 43.3h50l25-43.3z"),i(le,"d","M350.5 130.4h-50l-25 43.31h50l25-43.31zM425.5.5h-50l-25 43.3h50l25-43.3z"),i(_e,"d","M375.5 87.1l-25-43.3h50l-25 43.3z"),i(re,"fill","#ea80fc"),i(re,"class","J K"),i(e,"class",o[0]),i(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),i(e,"aria-hidden","true"),i(e,"focusable","false"),i(e,"role","img"),i(e,"width","1.73em"),i(e,"height","1em"),i(e,"preserveAspectRatio","xMidYMid meet"),i(e,"viewBox","0 0 451 260.81")},m(ie,S){h(ie,e,S),d(e,s),d(s,t),d(e,l),d(l,a),d(l,u),d(l,m),d(l,p),d(l,g),d(l,M),d(l,c),d(l,k),d(e,Z),d(Z,G),d(Z,U),d(Z,q),d(e,L),d(L,j),d(L,V),d(e,A),d(e,x),d(x,N),d(x,B),d(e,F),d(F,O),d(F,X),d(F,fe),d(F,K),d(F,ue),d(F,Q),d(F,we),d(e,ae),d(e,Y),d(Y,ce),d(Y,ee),d(Y,he),d(Y,te),d(e,re),d(re,pe),d(re,le),d(re,_e)},p(ie,[S]){S&1&&i(e,"class",ie[0])},i:D,o:D,d(ie){ie&&r(e)}}}function Cl(o,e,s){let{classNames:t=""}=e;return o.$$set=l=>{"classNames"in l&&s(0,t=l.classNames)},[t]}class Ml extends $e{constructor(e){super(),ge(this,e,Cl,yl,de,{classNames:0})}}function kl(o){let e,s;return{c(){e=y("svg"),s=y("path"),this.h()},l(t){e=C(t,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var l=$(e);s=C(l,"path",{d:!0,fill:!0}),$(s).forEach(r),l.forEach(r),this.h()},h(){i(s,"d","M0 4.50001C0.390979 2.37042 2.25728 0.756592 4.5 0.756592C6.74272 0.756592 8.60861 2.37042 9 4.50001C8.60902 6.62959 6.74272 8.24342 4.5 8.24342C2.25728 8.24342 0.391395 6.62959 0 4.50001ZM4.5 6.57968C5.05156 6.57968 5.58054 6.36057 5.97055 5.97056C6.36057 5.58054 6.57967 5.05157 6.57967 4.50001C6.57967 3.94844 6.36057 3.41947 5.97055 3.02945C5.58054 2.63944 5.05156 2.42033 4.5 2.42033C3.94844 2.42033 3.41946 2.63944 3.02945 3.02945C2.63943 3.41947 2.42033 3.94844 2.42033 4.50001C2.42033 5.05157 2.63943 5.58054 3.02945 5.97056C3.41946 6.36057 3.94844 6.57968 4.5 6.57968ZM4.5 5.74781C4.16906 5.74781 3.85168 5.61635 3.61767 5.38234C3.38366 5.14833 3.2522 4.83094 3.2522 4.50001C3.2522 4.16907 3.38366 3.85168 3.61767 3.61767C3.85168 3.38367 4.16906 3.2522 4.5 3.2522C4.83094 3.2522 5.14832 3.38367 5.38233 3.61767C5.61634 3.85168 5.7478 4.16907 5.7478 4.50001C5.7478 4.83094 5.61634 5.14833 5.38233 5.38234C5.14832 5.61635 4.83094 5.74781 4.5 5.74781Z"),i(s,"fill","currentColor"),i(e,"class",o[0]),i(e,"width",o[1]),i(e,"height",o[1]),i(e,"viewBox","0 0 9 9"),i(e,"fill","currentColor"),i(e,"xmlns","http://www.w3.org/2000/svg")},m(t,l){h(t,e,l),d(e,s)},p(t,[l]){l&1&&i(e,"class",t[0]),l&2&&i(e,"width",t[1]),l&2&&i(e,"height",t[1])},i:D,o:D,d(t){t&&r(e)}}}function xl(o,e,s){let{classNames:t=""}=e,{size:l="1em"}=e;return o.$$set=a=>{"classNames"in a&&s(0,t=a.classNames),"size"in a&&s(1,l=a.size)},[t,l]}class El extends $e{constructor(e){super(),ge(this,e,xl,kl,de,{classNames:0,size:1})}}function Tl(o){let e,s;return{c(){e=y("svg"),s=y("path"),this.h()},l(t){e=C(t,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var l=$(e);s=C(l,"path",{d:!0,fill:!0}),$(s).forEach(r),l.forEach(r),this.h()},h(){i(s,"d","M1.39125 1.9725L0.0883333 0.669997L0.677917 0.0804138L8.9275 8.33041L8.33792 8.91958L6.95875 7.54041C6.22592 8.00523 5.37572 8.25138 4.50792 8.25C2.26125 8.25 0.392083 6.63333 0 4.5C0.179179 3.52946 0.667345 2.64287 1.39167 1.9725H1.39125ZM5.65667 6.23833L5.04667 5.62833C4.81335 5.73996 4.55116 5.77647 4.29622 5.73282C4.04129 5.68918 3.80617 5.56752 3.62328 5.38463C3.44039 5.20175 3.31874 4.96663 3.27509 4.71169C3.23144 4.45676 3.26795 4.19456 3.37958 3.96125L2.76958 3.35125C2.50447 3.75187 2.38595 4.2318 2.4341 4.70978C2.48225 5.18777 2.6941 5.63442 3.0338 5.97411C3.37349 6.31381 3.82015 6.52567 4.29813 6.57382C4.77611 6.62197 5.25605 6.50345 5.65667 6.23833ZM2.83042 1.06666C3.35 0.862497 3.91625 0.749997 4.50792 0.749997C6.75458 0.749997 8.62375 2.36666 9.01583 4.5C8.88816 5.19404 8.60119 5.84899 8.1775 6.41333L6.56917 4.805C6.61694 4.48317 6.58868 4.15463 6.48664 3.84569C6.3846 3.53675 6.21162 3.256 5.98156 3.02594C5.7515 2.79588 5.47075 2.6229 5.16181 2.52086C4.85287 2.41882 4.52433 2.39056 4.2025 2.43833L2.83042 1.06708V1.06666Z"),i(s,"fill","currentColor"),i(e,"class",o[0]),i(e,"width",o[1]),i(e,"height",o[1]),i(e,"viewBox","0 0 10 9"),i(e,"fill","currentColor"),i(e,"xmlns","http://www.w3.org/2000/svg")},m(t,l){h(t,e,l),d(e,s)},p(t,[l]){l&1&&i(e,"class",t[0]),l&2&&i(e,"width",t[1]),l&2&&i(e,"height",t[1])},i:D,o:D,d(t){t&&r(e)}}}function zl(o,e,s){let{classNames:t=""}=e,{size:l="1em"}=e;return o.$$set=a=>{"classNames"in a&&s(0,t=a.classNames),"size"in a&&s(1,l=a.size)},[t,l]}class Jl extends $e{constructor(e){super(),ge(this,e,zl,Tl,de,{classNames:0,size:1})}}const{window:Hl}=hl;function Qt(o){let e,s,t,l,a,u,m,p,g,M;return s=new Jl({props:{size:"0.9em"}}),{c(){e=E("div"),z(s.$$.fragment),t=_(),l=E("span"),a=Ce("Hide "),u=Ce(o[3]),m=Ce(" content"),this.h()},l(c){e=T(c,"DIV",{class:!0});var k=$(e);I(s.$$.fragment,k),t=v(k),l=T(k,"SPAN",{});var Z=$(l);a=Me(Z,"Hide "),u=Me(Z,o[3]),m=Me(Z," content"),Z.forEach(r),k.forEach(r),this.h()},h(){i(e,"class","cursor-pointer flex items-center justify-center space-x-1 text-sm px-2 bg-white dark:bg-gray-950 hover:underline leading-none")},m(c,k){h(c,e,k),J(s,e,null),d(e,t),d(e,l),d(l,a),d(l,u),d(l,m),p=!0,g||(M=It(e,"click",o[5]),g=!0)},p:D,i(c){p||(w(s.$$.fragment,c),p=!0)},o(c){b(s.$$.fragment,c),p=!1},d(c){c&&r(e),H(s),g=!1,M()}}}function Il(o){let e,s;const t=o[10].default,l=et(t,o,o[9],null);return{c(){e=E("div"),l&&l.c(),this.h()},l(a){e=T(a,"DIV",{class:!0});var u=$(e);l&&l.l(u),u.forEach(r),this.h()},h(){i(e,"class","framework-content")},m(a,u){h(a,e,u),l&&l.m(e,null),s=!0},p(a,u){l&&l.p&&(!s||u&512)&&tt(l,t,a,a[9],s?nt(t,a[9],u,null):lt(a[9]),null)},i(a){s||(w(l,a),s=!0)},o(a){b(l,a),s=!1},d(a){a&&r(e),l&&l.d(a)}}}function Ll(o){let e,s,t,l,a,u,m,p,g,M;return s=new El({props:{size:"0.9em"}}),{c(){e=E("div"),z(s.$$.fragment),t=_(),l=E("span"),a=Ce("Show "),u=Ce(o[3]),m=Ce(" content"),this.h()},l(c){e=T(c,"DIV",{class:!0});var k=$(e);I(s.$$.fragment,k),t=v(k),l=T(k,"SPAN",{});var Z=$(l);a=Me(Z,"Show "),u=Me(Z,o[3]),m=Me(Z," content"),Z.forEach(r),k.forEach(r),this.h()},h(){i(e,"class","cursor-pointer mt-[-12.5px] flex items-center justify-center space-x-1 py-4 text-sm hover:underline leading-none")},m(c,k){h(c,e,k),J(s,e,null),d(e,t),d(e,l),d(l,a),d(l,u),d(l,m),p=!0,g||(M=It(e,"click",o[5]),g=!0)},p:D,i(c){p||(w(s.$$.fragment,c),p=!0)},o(c){b(s.$$.fragment,c),p=!1},d(c){c&&r(e),H(s),g=!1,M()}}}function Zl(o){let e,s,t,l,a,u,m,p,g,M,c,k,Z,G;var U=o[2];function q(x,N){return{}}U&&(l=Ot(U,q()));let L=!o[1]&&Qt(o);const j=[Ll,Il],V=[];function A(x,N){return x[1]?0:1}return M=A(o),c=V[M]=j[M](o),{c(){e=E("div"),s=E("div"),t=E("div"),l&&z(l.$$.fragment),a=_(),u=E("span"),m=Ce(o[3]),p=_(),L&&L.c(),g=_(),c.c(),this.h()},l(x){e=T(x,"DIV",{class:!0});var N=$(e);s=T(N,"DIV",{class:!0});var B=$(s);t=T(B,"DIV",{class:!0});var F=$(t);l&&I(l.$$.fragment,F),a=v(F),u=T(F,"SPAN",{});var O=$(u);m=Me(O,o[3]),O.forEach(r),F.forEach(r),p=v(B),L&&L.l(B),B.forEach(r),g=v(N),c.l(N),N.forEach(r),this.h()},h(){i(t,"class","flex px-1 items-center space-x-1 bg-white dark:bg-gray-950"),i(s,"class","flex h-[22px] mt-[-12.5px] justify-between leading-none"),i(e,"class","border border-gray-200 rounded-xl px-4 relative")},m(x,N){h(x,e,N),d(e,s),d(s,t),l&&J(l,t,null),d(t,a),d(t,u),d(u,m),d(s,p),L&&L.m(s,null),d(e,g),V[M].m(e,null),o[11](e),k=!0,Z||(G=It(Hl,"hashchange",o[6]),Z=!0)},p(x,[N]){if(U!==(U=x[2])){if(l){Oe();const F=l;b(F.$$.fragment,1,0,()=>{H(F,1)}),Ke()}U?(l=Ot(U,q()),z(l.$$.fragment),w(l.$$.fragment,1),J(l,t,a)):l=null}x[1]?L&&(Oe(),b(L,1,1,()=>{L=null}),Ke()):L?(L.p(x,N),N&2&&w(L,1)):(L=Qt(x),L.c(),w(L,1),L.m(s,null));let B=M;M=A(x),M===B?V[M].p(x,N):(Oe(),b(V[B],1,1,()=>{V[B]=null}),Ke(),c=V[M],c?c.p(x,N):(c=V[M]=j[M](x),c.c()),w(c,1),c.m(e,null))},i(x){k||(l&&w(l.$$.fragment,x),w(L),w(c),k=!0)},o(x){l&&b(l.$$.fragment,x),b(L),b(c),k=!1},d(x){x&&r(e),l&&H(l),L&&L.d(),V[M].d(),o[11](null),Z=!1,G()}}}function jl(o,e,s){let t,l,{$$slots:a={},$$scope:u}=e,{framework:m}=e,p,g=new Set;const M={pytorch:{Icon:wl,label:"Pytorch"},tensorflow:{Icon:bl,label:"TensorFlow"},jax:{Icon:Ml,label:"JAX"}},{Icon:c,label:k}=M[m],Z=`hf_doc_framework_${m}_is_hidden`,G=pl(m);ol(o,G,j=>s(8,l=j));function U(){Jt(G,l=l!==me.CLOSED?me.CLOSED:me.OPEN,l),localStorage.setItem(Z,l)}function q(){const j=window.location.hash.slice(1);g.has(j)&&(Jt(G,l=me.HASHASHLINK,l),localStorage.setItem(Z,l))}il(()=>{const j=window.location.hash.slice(1),V="header-link",A=p.querySelectorAll(`.${V}`);g=new Set([...A].map(N=>N.id));const x=localStorage.getItem(Z);g.has(j)?Jt(G,l=me.HASHASHLINK,l):x===me.CLOSED&&l!==me.HASHASHLINK&&Jt(G,l=me.CLOSED,l)});function L(j){fl[j?"unshift":"push"](()=>{p=j,s(0,p)})}return o.$$set=j=>{"framework"in j&&s(7,m=j.framework),"$$scope"in j&&s(9,u=j.$$scope)},o.$$.update=()=>{o.$$.dirty&256&&s(1,t=l===me.CLOSED)},[p,t,c,k,G,U,q,m,l,u,a,L]}class Lt extends $e{constructor(e){super(),ge(this,e,jl,Zl,de,{framework:7})}}const Pl=o=>({}),el=o=>({}),Nl=o=>({}),tl=o=>({}),Fl=o=>({}),ll=o=>({});function nl(o){let e,s;return e=new Lt({props:{framework:"pytorch",$$slots:{default:[Sl]},$$scope:{ctx:o}}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p(t,l){const a={};l&16&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function Sl(o){let e;const s=o[3].pytorch,t=et(s,o,o[4],ll);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,a){t&&t.m(l,a),e=!0},p(l,a){t&&t.p&&(!e||a&16)&&tt(t,s,l,l[4],e?nt(s,l[4],a,Fl):lt(l[4]),ll)},i(l){e||(w(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function sl(o){let e,s;return e=new Lt({props:{framework:"tensorflow",$$slots:{default:[Ul]},$$scope:{ctx:o}}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p(t,l){const a={};l&16&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function Ul(o){let e;const s=o[3].tensorflow,t=et(s,o,o[4],tl);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,a){t&&t.m(l,a),e=!0},p(l,a){t&&t.p&&(!e||a&16)&&tt(t,s,l,l[4],e?nt(s,l[4],a,Nl):lt(l[4]),tl)},i(l){e||(w(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function al(o){let e,s;return e=new Lt({props:{framework:"jax",$$slots:{default:[Bl]},$$scope:{ctx:o}}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p(t,l){const a={};l&16&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function Bl(o){let e;const s=o[3].jax,t=et(s,o,o[4],el);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,a){t&&t.m(l,a),e=!0},p(l,a){t&&t.p&&(!e||a&16)&&tt(t,s,l,l[4],e?nt(s,l[4],a,Pl):lt(l[4]),el)},i(l){e||(w(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Gl(o){let e,s,t,l,a=o[0]&&nl(o),u=o[1]&&sl(o),m=o[2]&&al(o);return{c(){e=E("div"),a&&a.c(),s=_(),u&&u.c(),t=_(),m&&m.c(),this.h()},l(p){e=T(p,"DIV",{class:!0});var g=$(e);a&&a.l(g),s=v(g),u&&u.l(g),t=v(g),m&&m.l(g),g.forEach(r),this.h()},h(){i(e,"class","space-y-10 py-6 2xl:py-8 2xl:-mx-4")},m(p,g){h(p,e,g),a&&a.m(e,null),d(e,s),u&&u.m(e,null),d(e,t),m&&m.m(e,null),l=!0},p(p,[g]){p[0]?a?(a.p(p,g),g&1&&w(a,1)):(a=nl(p),a.c(),w(a,1),a.m(e,s)):a&&(Oe(),b(a,1,1,()=>{a=null}),Ke()),p[1]?u?(u.p(p,g),g&2&&w(u,1)):(u=sl(p),u.c(),w(u,1),u.m(e,t)):u&&(Oe(),b(u,1,1,()=>{u=null}),Ke()),p[2]?m?(m.p(p,g),g&4&&w(m,1)):(m=al(p),m.c(),w(m,1),m.m(e,null)):m&&(Oe(),b(m,1,1,()=>{m=null}),Ke())},i(p){l||(w(a),w(u),w(m),l=!0)},o(p){b(a),b(u),b(m),l=!1},d(p){p&&r(e),a&&a.d(),u&&u.d(),m&&m.d()}}}function Vl(o,e,s){let{$$slots:t={},$$scope:l}=e,{pytorch:a=!1}=e,{tensorflow:u=!1}=e,{jax:m=!1}=e;return o.$$set=p=>{"pytorch"in p&&s(0,a=p.pytorch),"tensorflow"in p&&s(1,u=p.tensorflow),"jax"in p&&s(2,m=p.jax),"$$scope"in p&&s(4,l=p.$$scope)},[a,u,m,t,l]}class rl extends $e{constructor(e){super(),ge(this,e,Vl,Gl,de,{pytorch:0,tensorflow:1,jax:2})}}function Dl(o){let e;const s=o[1].default,t=et(s,o,o[0],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,a){t&&t.m(l,a),e=!0},p(l,[a]){t&&t.p&&(!e||a&1)&&tt(t,s,l,l[0],e?nt(s,l[0],a,null):lt(l[0]),null)},i(l){e||(w(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Yl(o,e,s){let{$$slots:t={},$$scope:l}=e;return o.$$set=a=>{"$$scope"in a&&s(0,l=a.$$scope)},[l,t]}class Ht extends $e{constructor(e){super(),ge(this,e,Yl,Dl,de,{})}}function Al(o){let e,s;return e=new W({props:{code:"dXYlMjB2ZW52JTIwbXktZW52JTBBc291cmNlJTIwbXktZW52JTJGYmluJTJGYWN0aXZhdGU=",highlighted:`uv venv my-env
<span class="hljs-built_in">source</span> my-env/bin/activate`,wrap:!1}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p:D,i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function Rl(o){let e,s;return e=new W({props:{code:"cHl0aG9uJTIwLW0lMjB2ZW52JTIwbXktZW52JTBBc291cmNlJTIwbXktZW52JTJGYmluJTJGYWN0aXZhdGU=",highlighted:`python -m venv my-env
<span class="hljs-built_in">source</span> my-env/bin/activate`,wrap:!1}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p:D,i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function Wl(o){let e,s,t,l;return e=new Kt({props:{id:"install",option:"uv",$$slots:{default:[Al]},$$scope:{ctx:o}}}),t=new Kt({props:{id:"install",option:"Python",$$slots:{default:[Rl]},$$scope:{ctx:o}}}),{c(){z(e.$$.fragment),s=_(),z(t.$$.fragment)},l(a){I(e.$$.fragment,a),s=v(a),I(t.$$.fragment,a)},m(a,u){J(e,a,u),h(a,s,u),J(t,a,u),l=!0},p(a,u){const m={};u&2&&(m.$$scope={dirty:u,ctx:a}),e.$set(m);const p={};u&2&&(p.$$scope={dirty:u,ctx:a}),t.$set(p)},i(a){l||(w(e.$$.fragment,a),w(t.$$.fragment,a),l=!0)},o(a){b(e.$$.fragment,a),b(t.$$.fragment,a),l=!1},d(a){a&&r(s),H(e,a),H(t,a)}}}function Xl(o){let e,s="PyTorch only supports Python 3.8 - 3.11 on Windows. Install Diffusers with uv.",t,l,a,u,m="You can also install Diffusers with pip.",p,g,M;return l=new W({props:{code:"dXYlMjBpbnN0YWxsJTIwZGlmZnVzZXJzJTVCJTIydG9yY2glMjIlNUQlMjB0cmFuc2Zvcm1lcnM=",highlighted:'uv install diffusers[<span class="hljs-string">&quot;torch&quot;</span>] transformers',wrap:!1}}),g=new W({props:{code:"cGlwJTIwaW5zdGFsbCUyMGRpZmZ1c2VycyU1QiUyMnRvcmNoJTIyJTVEJTIwdHJhbnNmb3JtZXJz",highlighted:'pip install diffusers[<span class="hljs-string">&quot;torch&quot;</span>] transformers',wrap:!1}}),{c(){e=E("p"),e.textContent=s,t=_(),z(l.$$.fragment),a=_(),u=E("p"),u.textContent=m,p=_(),z(g.$$.fragment)},l(c){e=T(c,"P",{"data-svelte-h":!0}),P(e)!=="svelte-1lnejz9"&&(e.textContent=s),t=v(c),I(l.$$.fragment,c),a=v(c),u=T(c,"P",{"data-svelte-h":!0}),P(u)!=="svelte-1tersix"&&(u.textContent=m),p=v(c),I(g.$$.fragment,c)},m(c,k){h(c,e,k),h(c,t,k),J(l,c,k),h(c,a,k),h(c,u,k),h(c,p,k),J(g,c,k),M=!0},p:D,i(c){M||(w(l.$$.fragment,c),w(g.$$.fragment,c),M=!0)},o(c){b(l.$$.fragment,c),b(g.$$.fragment,c),M=!1},d(c){c&&(r(e),r(t),r(a),r(u),r(p)),H(l,c),H(g,c)}}}function ql(o){let e,s;return e=new Ht({props:{$$slots:{default:[Xl]},$$scope:{ctx:o}}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p(t,l){const a={};l&2&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function Ol(o){let e,s="Install Diffusers with uv.",t,l,a,u,m="You can also install Diffusers with pip.",p,g,M;return l=new W({props:{code:"dXYlMjBwaXAlMjBpbnN0YWxsJTIwZGlmZnVzZXJzJTVCJTIyZmxheCUyMiU1RCUyMHRyYW5zZm9ybWVycw==",highlighted:'uv pip install diffusers[<span class="hljs-string">&quot;flax&quot;</span>] transformers',wrap:!1}}),g=new W({props:{code:"cGlwJTIwaW5zdGFsbCUyMGRpZmZ1c2VycyU1QiUyMmZsYXglMjIlNUQlMjB0cmFuc2Zvcm1lcnM=",highlighted:'pip install diffusers[<span class="hljs-string">&quot;flax&quot;</span>] transformers',wrap:!1}}),{c(){e=E("p"),e.textContent=s,t=_(),z(l.$$.fragment),a=_(),u=E("p"),u.textContent=m,p=_(),z(g.$$.fragment)},l(c){e=T(c,"P",{"data-svelte-h":!0}),P(e)!=="svelte-1ry29dz"&&(e.textContent=s),t=v(c),I(l.$$.fragment,c),a=v(c),u=T(c,"P",{"data-svelte-h":!0}),P(u)!=="svelte-1tersix"&&(u.textContent=m),p=v(c),I(g.$$.fragment,c)},m(c,k){h(c,e,k),h(c,t,k),J(l,c,k),h(c,a,k),h(c,u,k),h(c,p,k),J(g,c,k),M=!0},p:D,i(c){M||(w(l.$$.fragment,c),w(g.$$.fragment,c),M=!0)},o(c){b(l.$$.fragment,c),b(g.$$.fragment,c),M=!1},d(c){c&&(r(e),r(t),r(a),r(u),r(p)),H(l,c),H(g,c)}}}function Kl(o){let e,s;return e=new Ht({props:{$$slots:{default:[Ol]},$$scope:{ctx:o}}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p(t,l){const a={};l&2&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function Ql(o){let e,s;return e=new W({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1lJTIwJTIyLiU1QnRvcmNoJTVEJTIy",highlighted:'pip install -e <span class="hljs-string">&quot;.[torch]&quot;</span>',wrap:!1}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p:D,i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function en(o){let e,s;return e=new Ht({props:{$$slots:{default:[Ql]},$$scope:{ctx:o}}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p(t,l){const a={};l&2&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function tn(o){let e,s;return e=new W({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1lJTIwJTIyLiU1QmZsYXglNUQlMjI=",highlighted:'pip install -e <span class="hljs-string">&quot;.[flax]&quot;</span>',wrap:!1}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p:D,i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function ln(o){let e,s;return e=new Ht({props:{$$slots:{default:[tn]},$$scope:{ctx:o}}}),{c(){z(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){J(e,t,l),s=!0},p(t,l){const a={};l&2&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(w(e.$$.fragment,t),s=!0)},o(t){b(e.$$.fragment,t),s=!1},d(t){H(e,t)}}}function nn(o){let e,s="You must keep the <code>diffusers</code> folder if you want to keep using the library.";return{c(){e=E("p"),e.innerHTML=s},l(t){e=T(t,"P",{"data-svelte-h":!0}),P(e)!=="svelte-n1zjn8"&&(e.innerHTML=s)},m(t,l){h(t,e,l)},p:D,d(t){t&&r(e)}}}function sn(o){let e,s,t,l,a,u,m,p="🤗 Diffusers is tested on Python 3.8+, PyTorch 1.7.0+, and Flax. Follow the installation instructions below for the deep learning library you are using:",g,M,c='<li><a href="https://pytorch.org/get-started/locally/" rel="nofollow">PyTorch</a> installation instructions</li> <li><a href="https://flax.readthedocs.io/en/latest/" rel="nofollow">Flax</a> installation instructions</li>',k,Z,G,U,q=`You should install 🤗 Diffusers in a <a href="https://docs.python.org/3/library/venv.html" rel="nofollow">virtual environment</a>.
If you’re unfamiliar with Python virtual environments, take a look at this <a href="https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/" rel="nofollow">guide</a>.
A virtual environment makes it easier to manage different projects and avoid compatibility issues between dependencies.`,L,j,V='Create a virtual environment with Python or <a href="https://docs.astral.sh/uv/" rel="nofollow">uv</a> (refer to <a href="https://docs.astral.sh/uv/getting-started/installation/" rel="nofollow">Installation</a> for installation instructions), a fast Rust-based Python package and project manager.',A,x,N,B,F="You should also install 🤗 Transformers because 🤗 Diffusers relies on its models.",O,X,fe,K,ue,Q,we="After activating your virtual environment, with <code>conda</code> (maintained by the community):",ae,Y,ce,ee,he,te,re="Before installing 🤗 Diffusers from source, make sure you have PyTorch and 🤗 Accelerate installed.",pe,le,_e="To install 🤗 Accelerate:",ie,S,ke,R,xe="Then install 🤗 Diffusers from source:",ve,oe,ne,se,Ee=`This command installs the bleeding edge <code>main</code> version rather than the latest <code>stable</code> version.
The <code>main</code> version is useful for staying up-to-date with the latest developments.
For instance, if a bug has been fixed since the last official release but a new release hasn’t been rolled out yet.
However, this means the <code>main</code> version may not always be stable.
We strive to keep the <code>main</code> version operational, and most issues are usually resolved within a few hours or a day.
If you run into a problem, please open an <a href="https://github.com/huggingface/diffusers/issues/new/choose" rel="nofollow">Issue</a> so we can fix it even sooner!`,st,Te,at,ze,Zt="You will need an editable install if you’d like to:",rt,Je,jt="<li>Use the <code>main</code> version of the source code.</li> <li>Contribute to 🤗 Diffusers and need to test changes in the code.</li>",it,He,Pt="Clone the repository and install 🤗 Diffusers with the following commands:",ot,Ie,ft,be,ut,Le,Nt=`These commands will link the folder you cloned the repository to and your Python library paths.
Python will now look inside the folder you cloned to in addition to the normal library paths.
For example, if your Python packages are typically installed in <code>~/anaconda3/envs/main/lib/python3.10/site-packages/</code>, Python will also search the <code>~/diffusers/</code> folder you cloned to.`,ct,ye,ht,Ze,Ft="Now you can easily update your clone to the latest version of 🤗 Diffusers with the following command:",pt,je,mt,Pe,St="Your Python environment will find the <code>main</code> version of 🤗 Diffusers on the next run.",dt,Ne,$t,Fe,Ut='Model weights and files are downloaded from the Hub to a cache which is usually your home directory. You can change the cache location by specifying the <code>HF_HOME</code> or <code>HUGGINFACE_HUB_CACHE</code> environment variables or configuring the <code>cache_dir</code> parameter in methods like <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline.from_pretrained">from_pretrained()</a>.',gt,Se,Bt="Cached files allow you to run 🤗 Diffusers offline. To prevent 🤗 Diffusers from connecting to the internet, set the <code>HF_HUB_OFFLINE</code> environment variable to <code>1</code> and 🤗 Diffusers will only load previously downloaded files in the cache.",wt,Ue,_t,Be,Gt='For more details about managing and cleaning the cache, take a look at the <a href="https://huggingface.co/docs/huggingface_hub/guides/manage-cache" rel="nofollow">caching</a> guide.',vt,Ge,bt,Ve,Vt=`Our library gathers telemetry information during <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline.from_pretrained">from_pretrained()</a> requests.
The data gathered includes the version of 🤗 Diffusers and PyTorch/Flax, the requested model or pipeline class,
and the path to a pretrained checkpoint if it is hosted on the Hugging Face Hub.
This usage data helps us debug issues and prioritize new features.
Telemetry is only sent when loading models and pipelines from the Hub,
and it is not collected if you’re loading local files.`,yt,De,Dt=`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</code> environment variable from your terminal:`,Ct,Ye,Yt="On Linux/MacOS:",Mt,Ae,kt,Re,At="On Windows:",xt,We,Et,Xe,Tt,Qe,zt;return a=new qe({props:{title:"Installation",local:"installation",headingTag:"h1"}}),Z=new qe({props:{title:"Install with pip",local:"install-with-pip",headingTag:"h2"}}),x=new ml({props:{id:"install",options:["uv","Python"],$$slots:{default:[Wl]},$$scope:{ctx:o}}}),X=new rl({props:{pytorch:!0,tensorflow:!1,jax:!0,$$slots:{jax:[Kl],pytorch:[ql]},$$scope:{ctx:o}}}),K=new qe({props:{title:"Install with conda",local:"install-with-conda",headingTag:"h2"}}),Y=new W({props:{code:"Y29uZGElMjBpbnN0YWxsJTIwLWMlMjBjb25kYS1mb3JnZSUyMGRpZmZ1c2Vycw==",highlighted:"conda install -c conda-forge diffusers",wrap:!1}}),ee=new qe({props:{title:"Install from source",local:"install-from-source",headingTag:"h2"}}),S=new W({props:{code:"cGlwJTIwaW5zdGFsbCUyMGFjY2VsZXJhdGU=",highlighted:"pip install accelerate",wrap:!1}}),oe=new W({props:{code:"cGlwJTIwaW5zdGFsbCUyMGdpdCUyQmh0dHBzJTNBJTJGJTJGZ2l0aHViLmNvbSUyRmh1Z2dpbmdmYWNlJTJGZGlmZnVzZXJz",highlighted:"pip install git+https://github.com/huggingface/diffusers",wrap:!1}}),Te=new qe({props:{title:"Editable install",local:"editable-install",headingTag:"h2"}}),Ie=new W({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmdpdGh1Yi5jb20lMkZodWdnaW5nZmFjZSUyRmRpZmZ1c2Vycy5naXQlMEFjZCUyMGRpZmZ1c2Vycw==",highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/huggingface/diffusers.git
<span class="hljs-built_in">cd</span> diffusers`,wrap:!1}}),be=new rl({props:{pytorch:!0,tensorflow:!1,jax:!0,$$slots:{jax:[ln],pytorch:[en]},$$scope:{ctx:o}}}),ye=new cl({props:{warning:!0,$$slots:{default:[nn]},$$scope:{ctx:o}}}),je=new W({props:{code:"Y2QlMjB+JTJGZGlmZnVzZXJzJTJGJTBBZ2l0JTIwcHVsbA==",highlighted:`<span class="hljs-built_in">cd</span> ~/diffusers/
git pull`,wrap:!1}}),Ne=new qe({props:{title:"Cache",local:"cache",headingTag:"h2"}}),Ue=new W({props:{code:"ZXhwb3J0JTIwSEZfSFVCX09GRkxJTkUlM0Qx",highlighted:"export HF_HUB_OFFLINE=1",wrap:!1}}),Ge=new qe({props:{title:"Telemetry logging",local:"telemetry-logging",headingTag:"h2"}}),Ae=new W({props:{code:"ZXhwb3J0JTIwSEZfSFVCX0RJU0FCTEVfVEVMRU1FVFJZJTNEMQ==",highlighted:'<span class="hljs-built_in">export</span> HF_HUB_DISABLE_TELEMETRY=1',wrap:!1}}),We=new W({props:{code:"c2V0JTIwSEZfSFVCX0RJU0FCTEVfVEVMRU1FVFJZJTNEMQ==",highlighted:'<span class="hljs-built_in">set</span> HF_HUB_DISABLE_TELEMETRY=1',wrap:!1}}),Xe=new dl({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/installation.md"}}),{c(){e=E("meta"),s=_(),t=E("p"),l=_(),z(a.$$.fragment),u=_(),m=E("p"),m.textContent=p,g=_(),M=E("ul"),M.innerHTML=c,k=_(),z(Z.$$.fragment),G=_(),U=E("p"),U.innerHTML=q,L=_(),j=E("p"),j.innerHTML=V,A=_(),z(x.$$.fragment),N=_(),B=E("p"),B.textContent=F,O=_(),z(X.$$.fragment),fe=_(),z(K.$$.fragment),ue=_(),Q=E("p"),Q.innerHTML=we,ae=_(),z(Y.$$.fragment),ce=_(),z(ee.$$.fragment),he=_(),te=E("p"),te.textContent=re,pe=_(),le=E("p"),le.textContent=_e,ie=_(),z(S.$$.fragment),ke=_(),R=E("p"),R.textContent=xe,ve=_(),z(oe.$$.fragment),ne=_(),se=E("p"),se.innerHTML=Ee,st=_(),z(Te.$$.fragment),at=_(),ze=E("p"),ze.textContent=Zt,rt=_(),Je=E("ul"),Je.innerHTML=jt,it=_(),He=E("p"),He.textContent=Pt,ot=_(),z(Ie.$$.fragment),ft=_(),z(be.$$.fragment),ut=_(),Le=E("p"),Le.innerHTML=Nt,ct=_(),z(ye.$$.fragment),ht=_(),Ze=E("p"),Ze.textContent=Ft,pt=_(),z(je.$$.fragment),mt=_(),Pe=E("p"),Pe.innerHTML=St,dt=_(),z(Ne.$$.fragment),$t=_(),Fe=E("p"),Fe.innerHTML=Ut,gt=_(),Se=E("p"),Se.innerHTML=Bt,wt=_(),z(Ue.$$.fragment),_t=_(),Be=E("p"),Be.innerHTML=Gt,vt=_(),z(Ge.$$.fragment),bt=_(),Ve=E("p"),Ve.innerHTML=Vt,yt=_(),De=E("p"),De.innerHTML=Dt,Ct=_(),Ye=E("p"),Ye.textContent=Yt,Mt=_(),z(Ae.$$.fragment),kt=_(),Re=E("p"),Re.textContent=At,xt=_(),z(We.$$.fragment),Et=_(),z(Xe.$$.fragment),Tt=_(),Qe=E("p"),this.h()},l(n){const f=ul("svelte-u9bgzb",document.head);e=T(f,"META",{name:!0,content:!0}),f.forEach(r),s=v(n),t=T(n,"P",{}),$(t).forEach(r),l=v(n),I(a.$$.fragment,n),u=v(n),m=T(n,"P",{"data-svelte-h":!0}),P(m)!=="svelte-1asulm0"&&(m.textContent=p),g=v(n),M=T(n,"UL",{"data-svelte-h":!0}),P(M)!=="svelte-qc4w6a"&&(M.innerHTML=c),k=v(n),I(Z.$$.fragment,n),G=v(n),U=T(n,"P",{"data-svelte-h":!0}),P(U)!=="svelte-jan9ki"&&(U.innerHTML=q),L=v(n),j=T(n,"P",{"data-svelte-h":!0}),P(j)!=="svelte-12pu2vf"&&(j.innerHTML=V),A=v(n),I(x.$$.fragment,n),N=v(n),B=T(n,"P",{"data-svelte-h":!0}),P(B)!=="svelte-bh3fie"&&(B.textContent=F),O=v(n),I(X.$$.fragment,n),fe=v(n),I(K.$$.fragment,n),ue=v(n),Q=T(n,"P",{"data-svelte-h":!0}),P(Q)!=="svelte-j2aa2z"&&(Q.innerHTML=we),ae=v(n),I(Y.$$.fragment,n),ce=v(n),I(ee.$$.fragment,n),he=v(n),te=T(n,"P",{"data-svelte-h":!0}),P(te)!=="svelte-1tqh395"&&(te.textContent=re),pe=v(n),le=T(n,"P",{"data-svelte-h":!0}),P(le)!=="svelte-krupno"&&(le.textContent=_e),ie=v(n),I(S.$$.fragment,n),ke=v(n),R=T(n,"P",{"data-svelte-h":!0}),P(R)!=="svelte-klw2vx"&&(R.textContent=xe),ve=v(n),I(oe.$$.fragment,n),ne=v(n),se=T(n,"P",{"data-svelte-h":!0}),P(se)!=="svelte-qqlij"&&(se.innerHTML=Ee),st=v(n),I(Te.$$.fragment,n),at=v(n),ze=T(n,"P",{"data-svelte-h":!0}),P(ze)!=="svelte-oeh2m0"&&(ze.textContent=Zt),rt=v(n),Je=T(n,"UL",{"data-svelte-h":!0}),P(Je)!=="svelte-1edyqz4"&&(Je.innerHTML=jt),it=v(n),He=T(n,"P",{"data-svelte-h":!0}),P(He)!=="svelte-1ot86w6"&&(He.textContent=Pt),ot=v(n),I(Ie.$$.fragment,n),ft=v(n),I(be.$$.fragment,n),ut=v(n),Le=T(n,"P",{"data-svelte-h":!0}),P(Le)!=="svelte-vq5rhb"&&(Le.innerHTML=Nt),ct=v(n),I(ye.$$.fragment,n),ht=v(n),Ze=T(n,"P",{"data-svelte-h":!0}),P(Ze)!=="svelte-df0eim"&&(Ze.textContent=Ft),pt=v(n),I(je.$$.fragment,n),mt=v(n),Pe=T(n,"P",{"data-svelte-h":!0}),P(Pe)!=="svelte-s6kf2x"&&(Pe.innerHTML=St),dt=v(n),I(Ne.$$.fragment,n),$t=v(n),Fe=T(n,"P",{"data-svelte-h":!0}),P(Fe)!=="svelte-19wrxp2"&&(Fe.innerHTML=Ut),gt=v(n),Se=T(n,"P",{"data-svelte-h":!0}),P(Se)!=="svelte-rznnv9"&&(Se.innerHTML=Bt),wt=v(n),I(Ue.$$.fragment,n),_t=v(n),Be=T(n,"P",{"data-svelte-h":!0}),P(Be)!=="svelte-g87wia"&&(Be.innerHTML=Gt),vt=v(n),I(Ge.$$.fragment,n),bt=v(n),Ve=T(n,"P",{"data-svelte-h":!0}),P(Ve)!=="svelte-1xmtpz3"&&(Ve.innerHTML=Vt),yt=v(n),De=T(n,"P",{"data-svelte-h":!0}),P(De)!=="svelte-1a2gpt5"&&(De.innerHTML=Dt),Ct=v(n),Ye=T(n,"P",{"data-svelte-h":!0}),P(Ye)!=="svelte-99tbt5"&&(Ye.textContent=Yt),Mt=v(n),I(Ae.$$.fragment,n),kt=v(n),Re=T(n,"P",{"data-svelte-h":!0}),P(Re)!=="svelte-l29ize"&&(Re.textContent=At),xt=v(n),I(We.$$.fragment,n),Et=v(n),I(Xe.$$.fragment,n),Tt=v(n),Qe=T(n,"P",{}),$(Qe).forEach(r),this.h()},h(){i(e,"name","hf:doc:metadata"),i(e,"content",an)},m(n,f){d(document.head,e),h(n,s,f),h(n,t,f),h(n,l,f),J(a,n,f),h(n,u,f),h(n,m,f),h(n,g,f),h(n,M,f),h(n,k,f),J(Z,n,f),h(n,G,f),h(n,U,f),h(n,L,f),h(n,j,f),h(n,A,f),J(x,n,f),h(n,N,f),h(n,B,f),h(n,O,f),J(X,n,f),h(n,fe,f),J(K,n,f),h(n,ue,f),h(n,Q,f),h(n,ae,f),J(Y,n,f),h(n,ce,f),J(ee,n,f),h(n,he,f),h(n,te,f),h(n,pe,f),h(n,le,f),h(n,ie,f),J(S,n,f),h(n,ke,f),h(n,R,f),h(n,ve,f),J(oe,n,f),h(n,ne,f),h(n,se,f),h(n,st,f),J(Te,n,f),h(n,at,f),h(n,ze,f),h(n,rt,f),h(n,Je,f),h(n,it,f),h(n,He,f),h(n,ot,f),J(Ie,n,f),h(n,ft,f),J(be,n,f),h(n,ut,f),h(n,Le,f),h(n,ct,f),J(ye,n,f),h(n,ht,f),h(n,Ze,f),h(n,pt,f),J(je,n,f),h(n,mt,f),h(n,Pe,f),h(n,dt,f),J(Ne,n,f),h(n,$t,f),h(n,Fe,f),h(n,gt,f),h(n,Se,f),h(n,wt,f),J(Ue,n,f),h(n,_t,f),h(n,Be,f),h(n,vt,f),J(Ge,n,f),h(n,bt,f),h(n,Ve,f),h(n,yt,f),h(n,De,f),h(n,Ct,f),h(n,Ye,f),h(n,Mt,f),J(Ae,n,f),h(n,kt,f),h(n,Re,f),h(n,xt,f),J(We,n,f),h(n,Et,f),J(Xe,n,f),h(n,Tt,f),h(n,Qe,f),zt=!0},p(n,[f]){const Rt={};f&2&&(Rt.$$scope={dirty:f,ctx:n}),x.$set(Rt);const Wt={};f&2&&(Wt.$$scope={dirty:f,ctx:n}),X.$set(Wt);const Xt={};f&2&&(Xt.$$scope={dirty:f,ctx:n}),be.$set(Xt);const qt={};f&2&&(qt.$$scope={dirty:f,ctx:n}),ye.$set(qt)},i(n){zt||(w(a.$$.fragment,n),w(Z.$$.fragment,n),w(x.$$.fragment,n),w(X.$$.fragment,n),w(K.$$.fragment,n),w(Y.$$.fragment,n),w(ee.$$.fragment,n),w(S.$$.fragment,n),w(oe.$$.fragment,n),w(Te.$$.fragment,n),w(Ie.$$.fragment,n),w(be.$$.fragment,n),w(ye.$$.fragment,n),w(je.$$.fragment,n),w(Ne.$$.fragment,n),w(Ue.$$.fragment,n),w(Ge.$$.fragment,n),w(Ae.$$.fragment,n),w(We.$$.fragment,n),w(Xe.$$.fragment,n),zt=!0)},o(n){b(a.$$.fragment,n),b(Z.$$.fragment,n),b(x.$$.fragment,n),b(X.$$.fragment,n),b(K.$$.fragment,n),b(Y.$$.fragment,n),b(ee.$$.fragment,n),b(S.$$.fragment,n),b(oe.$$.fragment,n),b(Te.$$.fragment,n),b(Ie.$$.fragment,n),b(be.$$.fragment,n),b(ye.$$.fragment,n),b(je.$$.fragment,n),b(Ne.$$.fragment,n),b(Ue.$$.fragment,n),b(Ge.$$.fragment,n),b(Ae.$$.fragment,n),b(We.$$.fragment,n),b(Xe.$$.fragment,n),zt=!1},d(n){n&&(r(s),r(t),r(l),r(u),r(m),r(g),r(M),r(k),r(G),r(U),r(L),r(j),r(A),r(N),r(B),r(O),r(fe),r(ue),r(Q),r(ae),r(ce),r(he),r(te),r(pe),r(le),r(ie),r(ke),r(R),r(ve),r(ne),r(se),r(st),r(at),r(ze),r(rt),r(Je),r(it),r(He),r(ot),r(ft),r(ut),r(Le),r(ct),r(ht),r(Ze),r(pt),r(mt),r(Pe),r(dt),r($t),r(Fe),r(gt),r(Se),r(wt),r(_t),r(Be),r(vt),r(bt),r(Ve),r(yt),r(De),r(Ct),r(Ye),r(Mt),r(kt),r(Re),r(xt),r(Et),r(Tt),r(Qe)),r(e),H(a,n),H(Z,n),H(x,n),H(X,n),H(K,n),H(Y,n),H(ee,n),H(S,n),H(oe,n),H(Te,n),H(Ie,n),H(be,n),H(ye,n),H(je,n),H(Ne,n),H(Ue,n),H(Ge,n),H(Ae,n),H(We,n),H(Xe,n)}}}const an='{"title":"Installation","local":"installation","sections":[{"title":"Install with pip","local":"install-with-pip","sections":[],"depth":2},{"title":"Install with conda","local":"install-with-conda","sections":[],"depth":2},{"title":"Install from source","local":"install-from-source","sections":[],"depth":2},{"title":"Editable install","local":"editable-install","sections":[],"depth":2},{"title":"Cache","local":"cache","sections":[],"depth":2},{"title":"Telemetry logging","local":"telemetry-logging","sections":[],"depth":2}],"depth":1}';function rn(o){return il(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class dn extends $e{constructor(e){super(),ge(this,e,rn,sn,de,{})}}export{dn as component};
