import{s as Lt,o as It,n as Ut}from"../chunks/scheduler.53228c21.js";import{S as Jt,i as Et,e as r,s as n,c as b,h as Bt,a as i,d as l,b as o,f as I,g as v,j as a,k as T,l as t,m as j,n as w,t as y,o as M,p as x}from"../chunks/index.100fac89.js";import{C as Vt}from"../chunks/CopyLLMTxtMenu.2cdbb51f.js";import{D as V}from"../chunks/Docstring.d46840f1.js";import{C as Nt}from"../chunks/CodeBlock.d30a6509.js";import{E as Zt}from"../chunks/ExampleCodeBlock.220b4f6e.js";import{H as Pt,E as Dt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.3fcbbc76.js";function Gt(ve){let g,N="Examples:",P,$,C;return $=new Nt({props:{code:"JTIzJTIwVXBkYXRlJTIwbXVsdGlwbGUlMjBjb21wb25lbnRzJTIwYXQlMjBvbmNlJTBBcGlwZWxpbmUudXBkYXRlX2NvbXBvbmVudHModW5ldCUzRG5ld191bmV0X21vZGVsJTJDJTIwdGV4dF9lbmNvZGVyJTNEbmV3X3RleHRfZW5jb2RlciklMEElMEElMjMlMjBVcGRhdGUlMjBjb25maWd1cmF0aW9uJTIwdmFsdWVzJTBBcGlwZWxpbmUudXBkYXRlX2NvbXBvbmVudHMocmVxdWlyZXNfc2FmZXR5X2NoZWNrZXIlM0RGYWxzZSklMEElMEElMjMlMjBVcGRhdGUlMjBib3RoJTIwY29tcG9uZW50cyUyMGFuZCUyMGNvbmZpZ3MlMjB0b2dldGhlciUwQXBpcGVsaW5lLnVwZGF0ZV9jb21wb25lbnRzKHVuZXQlM0RuZXdfdW5ldF9tb2RlbCUyQyUyMHJlcXVpcmVzX3NhZmV0eV9jaGVja2VyJTNERmFsc2UpJTBBJTBBJTIzJTIwVXBkYXRlJTIwd2l0aCUyMENvbXBvbmVudFNwZWMlMjBvYmplY3RzJTIwKGZyb21fY29uZmlnJTIwb25seSklMEFwaXBlbGluZS51cGRhdGVfY29tcG9uZW50cyglMEElMjAlMjAlMjAlMjBndWlkZXIlM0RDb21wb25lbnRTcGVjKCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG5hbWUlM0QlMjJndWlkZXIlMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjB0eXBlX2hpbnQlM0RDbGFzc2lmaWVyRnJlZUd1aWRhbmNlJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwY29uZmlnJTNEJTdCJTIyZ3VpZGFuY2Vfc2NhbGUlMjIlM0ElMjA1LjAlN0QlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBkZWZhdWx0X2NyZWF0aW9uX21ldGhvZCUzRCUyMmZyb21fY29uZmlnJTIyJTJDJTBBJTIwJTIwJTIwJTIwKSUwQSk=",highlighted:`<span class="hljs-comment"># Update multiple components at once</span>
pipeline.update_components(unet=new_unet_model, text_encoder=new_text_encoder)

<span class="hljs-comment"># Update configuration values</span>
pipeline.update_components(requires_safety_checker=<span class="hljs-literal">False</span>)

<span class="hljs-comment"># Update both components and configs together</span>
pipeline.update_components(unet=new_unet_model, requires_safety_checker=<span class="hljs-literal">False</span>)

<span class="hljs-comment"># Update with ComponentSpec objects (from_config only)</span>
pipeline.update_components(
    guider=ComponentSpec(
        name=<span class="hljs-string">&quot;guider&quot;</span>,
        type_hint=ClassifierFreeGuidance,
        config={<span class="hljs-string">&quot;guidance_scale&quot;</span>: <span class="hljs-number">5.0</span>},
        default_creation_method=<span class="hljs-string">&quot;from_config&quot;</span>,
    )
)`,wrap:!1}}),{c(){g=r("p"),g.textContent=N,P=n(),b($.$$.fragment)},l(u){g=i(u,"P",{"data-svelte-h":!0}),a(g)!=="svelte-kvfsh7"&&(g.textContent=N),P=o(u),v($.$$.fragment,u)},m(u,k){j(u,g,k),j(u,P,k),w($,u,k),C=!0},p:Ut,i(u){C||(y($.$$.fragment,u),C=!0)},o(u){M($.$$.fragment,u),C=!1},d(u){u&&(l(g),l(P)),x($,u)}}}function Xt(ve){let g,N,P,$,C,u,k,we,Z,ye,s,D,ke,O,it="Base class for all Modular pipelines.",Pe,G,st="<p>&gt; This is an experimental feature and is likely to change in the future.</p>",Le,U,X,Ie,Y,at="Load a ModularPipeline from a huggingface hub repo.",Ue,Q,R,Je,J,H,Ee,K,lt="Load selected components from specs.",Be,c,W,Ve,ee,dt="Register components with their corresponding specifications.",Ne,te,pt="This method is responsible for:",Ze,ne,ct=`<li>Sets component objects as attributes on the loader (e.g., self.unet = unet)</li> <li>Updates the config dict, which will be saved as <code>modular_model_index.json</code> during <code>save_pretrained</code> (only
for from_pretrained components)</li> <li>Adds components to the component manager if one is attached (only for from_pretrained components)</li>`,De,oe,mt="This method is called when:",Ge,re,ut=`<li>Components are first initialized in <strong>init</strong>:
<ul><li>from_pretrained components not loaded during <strong>init</strong> so they are registered as None;</li> <li>non from_pretrained components are created during <strong>init</strong> and registered as the object itself</li></ul></li> <li>Components are updated with the <code>update_components()</code> method: e.g. loader.update_components(unet=unet) or
loader.update_components(guider=guider_spec)</li> <li>(from_pretrained) Components are loaded with the <code>load_components()</code> method: e.g.
loader.load_components(names=[“unet”]) or loader.load_components() to load all default components</li>`,Xe,ie,ft="Notes:",Re,se,gt=`<li>When registering None for a component, it sets attribute to None but still syncs specs with the config
dict, which will be saved as <code>modular_model_index.json</code> during <code>save_pretrained</code></li> <li>component_specs are updated to match the new component outside of this method, e.g. in
<code>update_components()</code> method</li>`,He,E,q,We,ae,ht="Save the pipeline to a directory. It does not save components, you need to save them separately.",qe,_,S,Se,le,_t=`Performs Pipeline dtype and/or device conversion. A torch.dtype and torch.device are inferred from the
arguments of <code>self.to(*args, **kwargs).</code>`,Ae,A,bt=`<p>&gt; If the pipeline already has the correct torch.dtype and torch.device, then it is returned as is.
Otherwise, &gt; the returned pipeline is a copy of self with the desired torch.dtype and torch.device.</p>`,Fe,de,vt="Here are the ways to call <code>to</code>:",ze,pe,wt=`<li><code>to(dtype, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a></li> <li><code>to(device, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a></li> <li><code>to(device=None, dtype=None, silence_dtype_warnings=False) → DiffusionPipeline</code> to return a pipeline with the
specified <a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a> and
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a></li>`,Oe,p,F,Ye,ce,yt="Update components and configuration values and specs after the pipeline has been instantiated.",Qe,me,Mt="This method allows you to:",Ke,ue,xt="<li>Replace existing components with new ones (e.g., updating <code>self.unet</code> or <code>self.text_encoder</code>)</li> <li>Update configuration values (e.g., changing <code>self.requires_safety_checker</code> flag)</li>",et,fe,$t=`In addition to updating the components and configuration values as pipeline attributes, the method also
updates:`,tt,ge,Ct="<li>the corresponding specs in <code>_component_specs</code> and <code>_config_specs</code></li> <li>the <code>config</code> dict, which will be saved as <code>modular_model_index.json</code> during <code>save_pretrained</code></li>",nt,B,ot,he,Tt="Notes:",rt,_e,jt=`<li>Components with trained weights must be created using ComponentSpec.load(). If the component has not been
shared in huggingface hub and you don’t have loading specs, you can upload it using <code>push_to_hub()</code></li> <li>ConfigMixin objects without weights (e.g., schedulers, guiders) can be passed directly</li> <li>ComponentSpec objects with default_creation_method=“from_pretrained” are not supported in
update_components()</li>`,Me,z,xe,be,$e;return C=new Vt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),k=new Pt({props:{title:"Pipeline",local:"pipeline",headingTag:"h1"}}),Z=new Pt({props:{title:"ModularPipeline",local:"diffusers.ModularPipeline",headingTag:"h2"}}),D=new V({props:{name:"class diffusers.ModularPipeline",anchor:"diffusers.ModularPipeline",parameters:[{name:"blocks",val:": typing.Optional[diffusers.modular_pipelines.modular_pipeline.ModularPipelineBlocks] = None"},{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType] = None"},{name:"components_manager",val:": typing.Optional[diffusers.modular_pipelines.components_manager.ComponentsManager] = None"},{name:"collection",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.blocks",description:"<strong>blocks</strong> &#x2014; ModularPipelineBlocks, the blocks to be used in the pipeline",name:"blocks"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1418"}}),X=new V({props:{name:"from_pretrained",anchor:"diffusers.ModularPipeline.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType]"},{name:"trust_remote_code",val:": typing.Optional[bool] = None"},{name:"components_manager",val:": typing.Optional[diffusers.modular_pipelines.components_manager.ComponentsManager] = None"},{name:"collection",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, optional) &#x2014;
Path to a pretrained pipeline configuration. It will first try to load config from
<code>modular_model_index.json</code>, then fallback to <code>model_index.json</code> for compatibility with standard
non-modular repositories. If the repo does not contain any pipeline config, it will be set to None
during initialization.`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.ModularPipeline.from_pretrained.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, optional) &#x2014;
Whether to trust remote code when loading the pipeline, need to be set to True if you want to create
pipeline blocks based on the custom code in <code>pretrained_model_name_or_path</code>`,name:"trust_remote_code"},{anchor:"diffusers.ModularPipeline.from_pretrained.components_manager",description:`<strong>components_manager</strong> (<code>ComponentsManager</code>, optional) &#x2014;
ComponentsManager instance for managing multiple component cross different pipelines and apply
offloading strategies.`,name:"components_manager"},{anchor:"diffusers.ModularPipeline.from_pretrained.collection",description:"<strong>collection</strong> (<code>str</code>, optional) &#x2014;`\nCollection name for organizing components in the ComponentsManager.",name:"collection"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1599"}}),R=new V({props:{name:"get_component_spec",anchor:"diffusers.ModularPipeline.get_component_spec",parameters:[{name:"name",val:": str"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1942",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li>a copy of the ComponentSpec object for the given component name</li>
</ul>
`}}),H=new V({props:{name:"load_components",anchor:"diffusers.ModularPipeline.load_components",parameters:[{name:"names",val:": typing.Union[str, typing.List[str], NoneType] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.load_components.names",description:`<strong>names</strong> &#x2014; List of component names to load. If None, will load all components with
default_creation_method == &#x201C;from_pretrained&#x201D;. If provided as a list or string, will load only the
specified components.`,name:"names"},{anchor:"diffusers.ModularPipeline.load_components.*kwargs",description:`*<strong>*kwargs</strong> &#x2014; additional kwargs to be passed to <code>from_pretrained()</code>.Can be:
<ul>
<li>a single value to be applied to all components to be loaded, e.g. torch_dtype=torch.bfloat16</li>
<li>a dict, e.g. torch_dtype={&#x201C;unet&#x201D;: torch.bfloat16, &#x201C;default&#x201D;: torch.float32}</li>
<li>if potentially override ComponentSpec if passed a different loading field in kwargs, e.g. <code>repo</code>,
<code>variant</code>, <code>revision</code>, etc.</li>
</ul>`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L2080"}}),W=new V({props:{name:"register_components",anchor:"diffusers.ModularPipeline.register_components",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.register_components.*kwargs",description:`*<strong>*kwargs</strong> &#x2014; Keyword arguments where keys are component names and values are component objects.
E.g., register_components(unet=unet_model, text_encoder=encoder_model)`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1737"}}),q=new V({props:{name:"save_pretrained",anchor:"diffusers.ModularPipeline.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Path to the directory where the pipeline will be saved.`,name:"save_directory"},{anchor:"diffusers.ModularPipeline.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, optional) &#x2014;
Whether to push the pipeline to the huggingface hub.`,name:"push_to_hub"},{anchor:"diffusers.ModularPipeline.save_pretrained.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional arguments passed to <code>save_config()</code> method",name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1693"}}),S=new V({props:{name:"to",anchor:"diffusers.ModularPipeline.to",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.to.dtype",description:`<strong>dtype</strong> (<code>torch.dtype</code>, <em>optional</em>) &#x2014;
Returns a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.dtype" rel="nofollow"><code>dtype</code></a>`,name:"dtype"},{anchor:"diffusers.ModularPipeline.to.device",description:`<strong>device</strong> (<code>torch.Device</code>, <em>optional</em>) &#x2014;
Returns a pipeline with the specified
<a href="https://pytorch.org/docs/stable/tensor_attributes.html#torch.device" rel="nofollow"><code>device</code></a>`,name:"device"},{anchor:"diffusers.ModularPipeline.to.silence_dtype_warnings",description:`<strong>silence_dtype_warnings</strong> (<code>str</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to omit warnings if the target <code>dtype</code> is not compatible with the target <code>device</code>.`,name:"silence_dtype_warnings"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L2154",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The pipeline converted to specified <code>dtype</code> and/or <code>dtype</code>.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline"
>DiffusionPipeline</a></p>
`}}),F=new V({props:{name:"update_components",anchor:"diffusers.ModularPipeline.update_components",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModularPipeline.update_components.*kwargs",description:`*<strong>*kwargs</strong> &#x2014; Component objects, ComponentSpec objects, or configuration values to update:
<ul>
<li>Component objects: Only supports components we can extract specs using
<code>ComponentSpec.from_component()</code> method i.e. components created with ComponentSpec.load() or
ConfigMixin subclasses that aren&#x2019;t nn.Modules (e.g., <code>unet=new_unet, text_encoder=new_encoder</code>)</li>
<li>ComponentSpec objects: Only supports default_creation_method == &#x201C;from_config&#x201D;, will call create()
method to create a new component (e.g., <code>guider=ComponentSpec(name=&quot;guider&quot;, type_hint=ClassifierFreeGuidance, config={...}, default_creation_method=&quot;from_config&quot;)</code>)</li>
<li>Configuration values: Simple values to update configuration settings (e.g.,
<code>requires_safety_checker=False</code>)</li>
</ul>`,name:"*kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/modular_pipelines/modular_pipeline.py#L1949",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>ValueError</code> — If a component object is not supported in ComponentSpec.from_component() method:
<ul>
<li>nn.Module components without a valid <code>_diffusers_load_id</code> attribute</li>
<li>Non-ConfigMixin components without a valid <code>_diffusers_load_id</code> attribute</li>
</ul>
</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),B=new Zt({props:{anchor:"diffusers.ModularPipeline.update_components.example",$$slots:{default:[Gt]},$$scope:{ctx:ve}}}),z=new Dt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/modular_diffusers/pipeline.md"}}),{c(){g=r("meta"),N=n(),P=r("p"),$=n(),b(C.$$.fragment),u=n(),b(k.$$.fragment),we=n(),b(Z.$$.fragment),ye=n(),s=r("div"),b(D.$$.fragment),ke=n(),O=r("p"),O.textContent=it,Pe=n(),G=r("blockquote"),G.innerHTML=st,Le=n(),U=r("div"),b(X.$$.fragment),Ie=n(),Y=r("p"),Y.textContent=at,Ue=n(),Q=r("div"),b(R.$$.fragment),Je=n(),J=r("div"),b(H.$$.fragment),Ee=n(),K=r("p"),K.textContent=lt,Be=n(),c=r("div"),b(W.$$.fragment),Ve=n(),ee=r("p"),ee.textContent=dt,Ne=n(),te=r("p"),te.textContent=pt,Ze=n(),ne=r("ol"),ne.innerHTML=ct,De=n(),oe=r("p"),oe.textContent=mt,Ge=n(),re=r("ul"),re.innerHTML=ut,Xe=n(),ie=r("p"),ie.textContent=ft,Re=n(),se=r("ul"),se.innerHTML=gt,He=n(),E=r("div"),b(q.$$.fragment),We=n(),ae=r("p"),ae.textContent=ht,qe=n(),_=r("div"),b(S.$$.fragment),Se=n(),le=r("p"),le.innerHTML=_t,Ae=n(),A=r("blockquote"),A.innerHTML=bt,Fe=n(),de=r("p"),de.innerHTML=vt,ze=n(),pe=r("ul"),pe.innerHTML=wt,Oe=n(),p=r("div"),b(F.$$.fragment),Ye=n(),ce=r("p"),ce.textContent=yt,Qe=n(),me=r("p"),me.textContent=Mt,Ke=n(),ue=r("ol"),ue.innerHTML=xt,et=n(),fe=r("p"),fe.textContent=$t,tt=n(),ge=r("ul"),ge.innerHTML=Ct,nt=n(),b(B.$$.fragment),ot=n(),he=r("p"),he.textContent=Tt,rt=n(),_e=r("ul"),_e.innerHTML=jt,Me=n(),b(z.$$.fragment),xe=n(),be=r("p"),this.h()},l(e){const m=Bt("svelte-u9bgzb",document.head);g=i(m,"META",{name:!0,content:!0}),m.forEach(l),N=o(e),P=i(e,"P",{}),I(P).forEach(l),$=o(e),v(C.$$.fragment,e),u=o(e),v(k.$$.fragment,e),we=o(e),v(Z.$$.fragment,e),ye=o(e),s=i(e,"DIV",{class:!0});var d=I(s);v(D.$$.fragment,d),ke=o(d),O=i(d,"P",{"data-svelte-h":!0}),a(O)!=="svelte-gyuepy"&&(O.textContent=it),Pe=o(d),G=i(d,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),a(G)!=="svelte-1o9sbyc"&&(G.innerHTML=st),Le=o(d),U=i(d,"DIV",{class:!0});var Ce=I(U);v(X.$$.fragment,Ce),Ie=o(Ce),Y=i(Ce,"P",{"data-svelte-h":!0}),a(Y)!=="svelte-1ii3iq9"&&(Y.textContent=at),Ce.forEach(l),Ue=o(d),Q=i(d,"DIV",{class:!0});var kt=I(Q);v(R.$$.fragment,kt),kt.forEach(l),Je=o(d),J=i(d,"DIV",{class:!0});var Te=I(J);v(H.$$.fragment,Te),Ee=o(Te),K=i(Te,"P",{"data-svelte-h":!0}),a(K)!=="svelte-1tx894b"&&(K.textContent=lt),Te.forEach(l),Be=o(d),c=i(d,"DIV",{class:!0});var h=I(c);v(W.$$.fragment,h),Ve=o(h),ee=i(h,"P",{"data-svelte-h":!0}),a(ee)!=="svelte-1ooq1qq"&&(ee.textContent=dt),Ne=o(h),te=i(h,"P",{"data-svelte-h":!0}),a(te)!=="svelte-cf9wby"&&(te.textContent=pt),Ze=o(h),ne=i(h,"OL",{"data-svelte-h":!0}),a(ne)!=="svelte-k19u0o"&&(ne.innerHTML=ct),De=o(h),oe=i(h,"P",{"data-svelte-h":!0}),a(oe)!=="svelte-1jlcxv6"&&(oe.textContent=mt),Ge=o(h),re=i(h,"UL",{"data-svelte-h":!0}),a(re)!=="svelte-18lippi"&&(re.innerHTML=ut),Xe=o(h),ie=i(h,"P",{"data-svelte-h":!0}),a(ie)!=="svelte-1biq3pv"&&(ie.textContent=ft),Re=o(h),se=i(h,"UL",{"data-svelte-h":!0}),a(se)!=="svelte-1n75vyc"&&(se.innerHTML=gt),h.forEach(l),He=o(d),E=i(d,"DIV",{class:!0});var je=I(E);v(q.$$.fragment,je),We=o(je),ae=i(je,"P",{"data-svelte-h":!0}),a(ae)!=="svelte-1p6ifd4"&&(ae.textContent=ht),je.forEach(l),qe=o(d),_=i(d,"DIV",{class:!0});var L=I(_);v(S.$$.fragment,L),Se=o(L),le=i(L,"P",{"data-svelte-h":!0}),a(le)!=="svelte-1vbhnip"&&(le.innerHTML=_t),Ae=o(L),A=i(L,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),a(A)!=="svelte-ja1ewp"&&(A.innerHTML=bt),Fe=o(L),de=i(L,"P",{"data-svelte-h":!0}),a(de)!=="svelte-5ul9n2"&&(de.innerHTML=vt),ze=o(L),pe=i(L,"UL",{"data-svelte-h":!0}),a(pe)!=="svelte-1icy6l9"&&(pe.innerHTML=wt),L.forEach(l),Oe=o(d),p=i(d,"DIV",{class:!0});var f=I(p);v(F.$$.fragment,f),Ye=o(f),ce=i(f,"P",{"data-svelte-h":!0}),a(ce)!=="svelte-r0j5xc"&&(ce.textContent=yt),Qe=o(f),me=i(f,"P",{"data-svelte-h":!0}),a(me)!=="svelte-1p350mx"&&(me.textContent=Mt),Ke=o(f),ue=i(f,"OL",{"data-svelte-h":!0}),a(ue)!=="svelte-z06v4z"&&(ue.innerHTML=xt),et=o(f),fe=i(f,"P",{"data-svelte-h":!0}),a(fe)!=="svelte-1x075vc"&&(fe.textContent=$t),tt=o(f),ge=i(f,"UL",{"data-svelte-h":!0}),a(ge)!=="svelte-1v9kzk0"&&(ge.innerHTML=Ct),nt=o(f),v(B.$$.fragment,f),ot=o(f),he=i(f,"P",{"data-svelte-h":!0}),a(he)!=="svelte-1biq3pv"&&(he.textContent=Tt),rt=o(f),_e=i(f,"UL",{"data-svelte-h":!0}),a(_e)!=="svelte-v3x766"&&(_e.innerHTML=jt),f.forEach(l),d.forEach(l),Me=o(e),v(z.$$.fragment,e),xe=o(e),be=i(e,"P",{}),I(be).forEach(l),this.h()},h(){T(g,"name","hf:doc:metadata"),T(g,"content",Rt),T(G,"class","warning"),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(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(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(c,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),T(E,"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","tip"),T(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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(s,"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,m){t(document.head,g),j(e,N,m),j(e,P,m),j(e,$,m),w(C,e,m),j(e,u,m),w(k,e,m),j(e,we,m),w(Z,e,m),j(e,ye,m),j(e,s,m),w(D,s,null),t(s,ke),t(s,O),t(s,Pe),t(s,G),t(s,Le),t(s,U),w(X,U,null),t(U,Ie),t(U,Y),t(s,Ue),t(s,Q),w(R,Q,null),t(s,Je),t(s,J),w(H,J,null),t(J,Ee),t(J,K),t(s,Be),t(s,c),w(W,c,null),t(c,Ve),t(c,ee),t(c,Ne),t(c,te),t(c,Ze),t(c,ne),t(c,De),t(c,oe),t(c,Ge),t(c,re),t(c,Xe),t(c,ie),t(c,Re),t(c,se),t(s,He),t(s,E),w(q,E,null),t(E,We),t(E,ae),t(s,qe),t(s,_),w(S,_,null),t(_,Se),t(_,le),t(_,Ae),t(_,A),t(_,Fe),t(_,de),t(_,ze),t(_,pe),t(s,Oe),t(s,p),w(F,p,null),t(p,Ye),t(p,ce),t(p,Qe),t(p,me),t(p,Ke),t(p,ue),t(p,et),t(p,fe),t(p,tt),t(p,ge),t(p,nt),w(B,p,null),t(p,ot),t(p,he),t(p,rt),t(p,_e),j(e,Me,m),w(z,e,m),j(e,xe,m),j(e,be,m),$e=!0},p(e,[m]){const d={};m&2&&(d.$$scope={dirty:m,ctx:e}),B.$set(d)},i(e){$e||(y(C.$$.fragment,e),y(k.$$.fragment,e),y(Z.$$.fragment,e),y(D.$$.fragment,e),y(X.$$.fragment,e),y(R.$$.fragment,e),y(H.$$.fragment,e),y(W.$$.fragment,e),y(q.$$.fragment,e),y(S.$$.fragment,e),y(F.$$.fragment,e),y(B.$$.fragment,e),y(z.$$.fragment,e),$e=!0)},o(e){M(C.$$.fragment,e),M(k.$$.fragment,e),M(Z.$$.fragment,e),M(D.$$.fragment,e),M(X.$$.fragment,e),M(R.$$.fragment,e),M(H.$$.fragment,e),M(W.$$.fragment,e),M(q.$$.fragment,e),M(S.$$.fragment,e),M(F.$$.fragment,e),M(B.$$.fragment,e),M(z.$$.fragment,e),$e=!1},d(e){e&&(l(N),l(P),l($),l(u),l(we),l(ye),l(s),l(Me),l(xe),l(be)),l(g),x(C,e),x(k,e),x(Z,e),x(D),x(X),x(R),x(H),x(W),x(q),x(S),x(F),x(B),x(z,e)}}}const Rt='{"title":"Pipeline","local":"pipeline","sections":[{"title":"ModularPipeline","local":"diffusers.ModularPipeline","sections":[],"depth":2}],"depth":1}';function Ht(ve){return It(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Yt extends Jt{constructor(g){super(),Et(this,g,Ht,Xt,Lt,{})}}export{Yt as component};
