import{s as Ee,n as Le,o as Ae}from"../chunks/scheduler.8c3d61f6.js";import{S as Be,i as Ie,g as l,s as r,r as u,A as Ve,h as o,f as n,c as s,j as y,u as f,x as H,k as v,y as t,a as d,v as c,d as g,t as h,w as $}from"../chunks/index.da70eac4.js";import{D as M}from"../chunks/Docstring.367be9ed.js";import{H as be,E as ze}from"../chunks/getInferenceSnippets.cb466318.js";function He(xe){let _,Q,F,W,S,X,C,Y,a,D,pe,U,ke="<code>PipelineState</code> stores the state of a pipeline. It is used to pass data between pipeline blocks.",de,b,T,me,G,we="Get one or multiple values from the pipeline state.",ue,x,E,fe,N,Pe="Get all values with matching kwargs_type.",ce,k,L,ge,j,Se="Add a value to the pipeline state.",he,w,A,$e,q,Ce="Convert PipelineState to a dictionary.",Z,B,ee,m,I,_e,K,De="Container for block state data with attribute access and formatted representation.",ye,P,V,ve,O,Te="Convert BlockState to a dictionary.",te,z,ne,J,re;return S=new be({props:{title:"Pipeline states",local:"pipeline-states",headingTag:"h1"}}),C=new be({props:{title:"PipelineState",local:"diffusers.modular_pipelines.PipelineState",headingTag:"h2"}}),D=new M({props:{name:"class diffusers.modular_pipelines.PipelineState",anchor:"diffusers.modular_pipelines.PipelineState",parameters:[{name:"values",val:": typing.Dict[str, typing.Any] = <factory>"},{name:"kwargs_mapping",val:": typing.Dict[str, typing.List[str]] = <factory>"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L67"}}),T=new M({props:{name:"get",anchor:"diffusers.modular_pipelines.PipelineState.get",parameters:[{name:"keys",val:": typing.Union[str, typing.List[str]]"},{name:"default",val:": typing.Any = None"}],parametersDescription:[{anchor:"diffusers.modular_pipelines.PipelineState.get.keys",description:"<strong>keys</strong> (Union[str, List[str]]) &#x2014; Key or list of keys for the values",name:"keys"},{anchor:"diffusers.modular_pipelines.PipelineState.get.default",description:"<strong>default</strong> (Any) &#x2014; The default value to return if not found",name:"default"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L92",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Single value if keys is str, dictionary of values if keys is list</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Union[Any, Dict[str, Any]]</p>
`}}),E=new M({props:{name:"get_by_kwargs",anchor:"diffusers.modular_pipelines.PipelineState.get_by_kwargs",parameters:[{name:"kwargs_type",val:": str"}],parametersDescription:[{anchor:"diffusers.modular_pipelines.PipelineState.get_by_kwargs.kwargs_type",description:"<strong>kwargs_type</strong> (str) &#x2014; The kwargs_type to filter by",name:"kwargs_type"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L107",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary of values with matching kwargs_type</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dict[str, Any]</p>
`}}),L=new M({props:{name:"set",anchor:"diffusers.modular_pipelines.PipelineState.set",parameters:[{name:"key",val:": str"},{name:"value",val:": typing.Any"},{name:"kwargs_type",val:": str = None"}],parametersDescription:[{anchor:"diffusers.modular_pipelines.PipelineState.set.key",description:"<strong>key</strong> (str) &#x2014; The key for the value",name:"key"},{anchor:"diffusers.modular_pipelines.PipelineState.set.value",description:"<strong>value</strong> (Any) &#x2014; The value to store",name:"value"},{anchor:"diffusers.modular_pipelines.PipelineState.set.kwargs_type",description:"<strong>kwargs_type</strong> (str) &#x2014; The kwargs_type with which the value is associated",name:"kwargs_type"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L75"}}),A=new M({props:{name:"to_dict",anchor:"diffusers.modular_pipelines.PipelineState.to_dict",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L120"}}),B=new be({props:{title:"BlockState",local:"diffusers.modular_pipelines.BlockState",headingTag:"h2"}}),I=new M({props:{name:"class diffusers.modular_pipelines.BlockState",anchor:"diffusers.modular_pipelines.BlockState",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L151"}}),V=new M({props:{name:"as_dict",anchor:"diffusers.modular_pipelines.BlockState.as_dict",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L168",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary containing all attributes of the BlockState</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dict[str, Any]</p>
`}}),z=new ze({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/pipeline_states.md"}}),{c(){_=l("meta"),Q=r(),F=l("p"),W=r(),u(S.$$.fragment),X=r(),u(C.$$.fragment),Y=r(),a=l("div"),u(D.$$.fragment),pe=r(),U=l("p"),U.innerHTML=ke,de=r(),b=l("div"),u(T.$$.fragment),me=r(),G=l("p"),G.textContent=we,ue=r(),x=l("div"),u(E.$$.fragment),fe=r(),N=l("p"),N.textContent=Pe,ce=r(),k=l("div"),u(L.$$.fragment),ge=r(),j=l("p"),j.textContent=Se,he=r(),w=l("div"),u(A.$$.fragment),$e=r(),q=l("p"),q.textContent=Ce,Z=r(),u(B.$$.fragment),ee=r(),m=l("div"),u(I.$$.fragment),_e=r(),K=l("p"),K.textContent=De,ye=r(),P=l("div"),u(V.$$.fragment),ve=r(),O=l("p"),O.textContent=Te,te=r(),u(z.$$.fragment),ne=r(),J=l("p"),this.h()},l(e){const i=Ve("svelte-u9bgzb",document.head);_=o(i,"META",{name:!0,content:!0}),i.forEach(n),Q=s(e),F=o(e,"P",{}),y(F).forEach(n),W=s(e),f(S.$$.fragment,e),X=s(e),f(C.$$.fragment,e),Y=s(e),a=o(e,"DIV",{class:!0});var p=y(a);f(D.$$.fragment,p),pe=s(p),U=o(p,"P",{"data-svelte-h":!0}),H(U)!=="svelte-1p9z2f0"&&(U.innerHTML=ke),de=s(p),b=o(p,"DIV",{class:!0});var se=y(b);f(T.$$.fragment,se),me=s(se),G=o(se,"P",{"data-svelte-h":!0}),H(G)!=="svelte-rz858h"&&(G.textContent=we),se.forEach(n),ue=s(p),x=o(p,"DIV",{class:!0});var ie=y(x);f(E.$$.fragment,ie),fe=s(ie),N=o(ie,"P",{"data-svelte-h":!0}),H(N)!=="svelte-nbwkc2"&&(N.textContent=Pe),ie.forEach(n),ce=s(p),k=o(p,"DIV",{class:!0});var ae=y(k);f(L.$$.fragment,ae),ge=s(ae),j=o(ae,"P",{"data-svelte-h":!0}),H(j)!=="svelte-11kc6w2"&&(j.textContent=Se),ae.forEach(n),he=s(p),w=o(p,"DIV",{class:!0});var le=y(w);f(A.$$.fragment,le),$e=s(le),q=o(le,"P",{"data-svelte-h":!0}),H(q)!=="svelte-yxpz8g"&&(q.textContent=Ce),le.forEach(n),p.forEach(n),Z=s(e),f(B.$$.fragment,e),ee=s(e),m=o(e,"DIV",{class:!0});var R=y(m);f(I.$$.fragment,R),_e=s(R),K=o(R,"P",{"data-svelte-h":!0}),H(K)!=="svelte-i3htgy"&&(K.textContent=De),ye=s(R),P=o(R,"DIV",{class:!0});var oe=y(P);f(V.$$.fragment,oe),ve=s(oe),O=o(oe,"P",{"data-svelte-h":!0}),H(O)!=="svelte-kch88p"&&(O.textContent=Te),oe.forEach(n),R.forEach(n),te=s(e),f(z.$$.fragment,e),ne=s(e),J=o(e,"P",{}),y(J).forEach(n),this.h()},h(){v(_,"name","hf:doc:metadata"),v(_,"content",Me),v(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(m,"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,i){t(document.head,_),d(e,Q,i),d(e,F,i),d(e,W,i),c(S,e,i),d(e,X,i),c(C,e,i),d(e,Y,i),d(e,a,i),c(D,a,null),t(a,pe),t(a,U),t(a,de),t(a,b),c(T,b,null),t(b,me),t(b,G),t(a,ue),t(a,x),c(E,x,null),t(x,fe),t(x,N),t(a,ce),t(a,k),c(L,k,null),t(k,ge),t(k,j),t(a,he),t(a,w),c(A,w,null),t(w,$e),t(w,q),d(e,Z,i),c(B,e,i),d(e,ee,i),d(e,m,i),c(I,m,null),t(m,_e),t(m,K),t(m,ye),t(m,P),c(V,P,null),t(P,ve),t(P,O),d(e,te,i),c(z,e,i),d(e,ne,i),d(e,J,i),re=!0},p:Le,i(e){re||(g(S.$$.fragment,e),g(C.$$.fragment,e),g(D.$$.fragment,e),g(T.$$.fragment,e),g(E.$$.fragment,e),g(L.$$.fragment,e),g(A.$$.fragment,e),g(B.$$.fragment,e),g(I.$$.fragment,e),g(V.$$.fragment,e),g(z.$$.fragment,e),re=!0)},o(e){h(S.$$.fragment,e),h(C.$$.fragment,e),h(D.$$.fragment,e),h(T.$$.fragment,e),h(E.$$.fragment,e),h(L.$$.fragment,e),h(A.$$.fragment,e),h(B.$$.fragment,e),h(I.$$.fragment,e),h(V.$$.fragment,e),h(z.$$.fragment,e),re=!1},d(e){e&&(n(Q),n(F),n(W),n(X),n(Y),n(a),n(Z),n(ee),n(m),n(te),n(ne),n(J)),n(_),$(S,e),$(C,e),$(D),$(T),$(E),$(L),$(A),$(B,e),$(I),$(V),$(z,e)}}}const Me='{"title":"Pipeline states","local":"pipeline-states","sections":[{"title":"PipelineState","local":"diffusers.modular_pipelines.PipelineState","sections":[],"depth":2},{"title":"BlockState","local":"diffusers.modular_pipelines.BlockState","sections":[],"depth":2}],"depth":1}';function Ue(xe){return Ae(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ke extends Be{constructor(_){super(),Ie(this,_,Ue,He,Ee,{})}}export{Ke as component};
