import{s as tt,n as nt,o as st}from"../chunks/scheduler.6062bdaf.js";import{S as it,i as ot,g as a,s as i,r as p,A as at,h as c,f as t,c as o,j as $,u as _,x as u,k as C,y as s,a as r,v as b,d as v,t as D,w as q}from"../chunks/index.4bca734e.js";import{D as j}from"../chunks/Docstring.b6251191.js";import{H as et,E as ct}from"../chunks/getInferenceSnippets.b564dd8b.js";function rt(Me){let y,ce,oe,re,P,ue,w,Se=`Check the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> documentation page for the reference of methods enabling
interaction with Pull Requests and Discussions on the Hub.`,ge,R,je='<li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_repo_discussions">get_repo_discussions()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.get_discussion_details">get_discussion_details()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_discussion">create_discussion()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_pull_request">create_pull_request()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.rename_discussion">rename_discussion()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.comment_discussion">comment_discussion()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.edit_discussion_comment">edit_discussion_comment()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.change_discussion_status">change_discussion_status()</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.merge_pull_request">merge_pull_request()</a></li>',he,H,de,h,E,xe,N,Ne="A Discussion or Pull Request on the Hub.",$e,U,Ue="This dataclass is not intended to be instantiated directly.",le,x,L,Ce,V,Ve='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.Discussion">Discussion</a>.',me,g,A,Te,O,Oe="An event in a Discussion or Pull Request.",Pe,z,ze="Use concrete classes:",we,F,Fe='<li><a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionComment">DiscussionComment</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionStatusChange">DiscussionStatusChange</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionCommit">DiscussionCommit</a></li> <li><a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionTitleChange">DiscussionTitleChange</a></li>',fe,d,k,Re,G,Ge="A comment in a Discussion / Pull Request.",He,B,Be='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>.',pe,l,W,Ee,J,Je="A change of status in a Discussion / Pull Request.",Le,K,Ke='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>.',_e,m,I,Ae,Q,Qe="A commit in a Pull Request.",ke,X,Xe='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>.',be,f,M,We,Y,Ye="A rename event in a Discussion / Pull Request.",Ie,Z,Ze='Subclass of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>.',ve,S,De,ae,qe;return P=new et({props:{title:"Interacting with Discussions and Pull Requests",local:"interacting-with-discussions-and-pull-requests",headingTag:"h1"}}),H=new et({props:{title:"Data structures",local:"huggingface_hub.Discussion",headingTag:"h2"}}),E=new j({props:{name:"class huggingface_hub.Discussion",anchor:"huggingface_hub.Discussion",parameters:[{name:"title",val:": str"},{name:"status",val:": typing.Literal['open', 'closed', 'merged', 'draft']"},{name:"num",val:": int"},{name:"repo_id",val:": str"},{name:"repo_type",val:": str"},{name:"author",val:": str"},{name:"is_pull_request",val:": bool"},{name:"created_at",val:": datetime"},{name:"endpoint",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.Discussion.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
The title of the Discussion / Pull Request`,name:"title"},{anchor:"huggingface_hub.Discussion.status",description:`<strong>status</strong> (<code>str</code>) &#x2014;
The status of the Discussion / Pull Request.
It must be one of:<ul>
<li><code>&quot;open&quot;</code></li>
<li><code>&quot;closed&quot;</code></li>
<li><code>&quot;merged&quot;</code> (only for Pull Requests )</li>
<li><code>&quot;draft&quot;</code> (only for Pull Requests )</li>
</ul>`,name:"status"},{anchor:"huggingface_hub.Discussion.num",description:`<strong>num</strong> (<code>int</code>) &#x2014;
The number of the Discussion / Pull Request.`,name:"num"},{anchor:"huggingface_hub.Discussion.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id (<code>&quot;{namespace}/{repo_name}&quot;</code>) of the repo on which
the Discussion / Pull Request was open.`,name:"repo_id"},{anchor:"huggingface_hub.Discussion.repo_type",description:`<strong>repo_type</strong> (<code>str</code>) &#x2014;
The type of the repo on which the Discussion / Pull Request was open.
Possible values are: <code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code>, <code>&quot;space&quot;</code>.`,name:"repo_type"},{anchor:"huggingface_hub.Discussion.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.Discussion.is_pull_request",description:`<strong>is_pull_request</strong> (<code>bool</code>) &#x2014;
Whether or not this is a Pull Request.`,name:"is_pull_request"},{anchor:"huggingface_hub.Discussion.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
The <code>datetime</code> of creation of the Discussion / Pull Request.`,name:"created_at"},{anchor:"huggingface_hub.Discussion.endpoint",description:`<strong>endpoint</strong> (<code>str</code>) &#x2014;
Endpoint of the Hub. Default is <a href="https://huggingface.co" rel="nofollow">https://huggingface.co</a>.`,name:"endpoint"},{anchor:"huggingface_hub.Discussion.git_reference",description:`<strong>git_reference</strong> (<code>str</code>, <em>optional</em>) &#x2014;
(property) Git reference to which changes can be pushed if this is a Pull Request, <code>None</code> otherwise.`,name:"git_reference"},{anchor:"huggingface_hub.Discussion.url",description:`<strong>url</strong> (<code>str</code>) &#x2014;
(property) URL of the discussion on the Hub.`,name:"url"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L19"}}),L=new j({props:{name:"class huggingface_hub.DiscussionWithDetails",anchor:"huggingface_hub.DiscussionWithDetails",parameters:[{name:"title",val:": str"},{name:"status",val:": typing.Literal['open', 'closed', 'merged', 'draft']"},{name:"num",val:": int"},{name:"repo_id",val:": str"},{name:"repo_type",val:": str"},{name:"author",val:": str"},{name:"is_pull_request",val:": bool"},{name:"created_at",val:": datetime"},{name:"endpoint",val:": str"},{name:"events",val:": typing.List[ForwardRef('DiscussionEvent')]"},{name:"conflicting_files",val:": typing.Union[typing.List[str], bool, NoneType]"},{name:"target_branch",val:": typing.Optional[str]"},{name:"merge_commit_oid",val:": typing.Optional[str]"},{name:"diff",val:": typing.Optional[str]"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionWithDetails.title",description:`<strong>title</strong> (<code>str</code>) &#x2014;
The title of the Discussion / Pull Request`,name:"title"},{anchor:"huggingface_hub.DiscussionWithDetails.status",description:`<strong>status</strong> (<code>str</code>) &#x2014;
The status of the Discussion / Pull Request.
It can be one of:<ul>
<li><code>&quot;open&quot;</code></li>
<li><code>&quot;closed&quot;</code></li>
<li><code>&quot;merged&quot;</code> (only for Pull Requests )</li>
<li><code>&quot;draft&quot;</code> (only for Pull Requests )</li>
</ul>`,name:"status"},{anchor:"huggingface_hub.DiscussionWithDetails.num",description:`<strong>num</strong> (<code>int</code>) &#x2014;
The number of the Discussion / Pull Request.`,name:"num"},{anchor:"huggingface_hub.DiscussionWithDetails.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The id (<code>&quot;{namespace}/{repo_name}&quot;</code>) of the repo on which
the Discussion / Pull Request was open.`,name:"repo_id"},{anchor:"huggingface_hub.DiscussionWithDetails.repo_type",description:`<strong>repo_type</strong> (<code>str</code>) &#x2014;
The type of the repo on which the Discussion / Pull Request was open.
Possible values are: <code>&quot;model&quot;</code>, <code>&quot;dataset&quot;</code>, <code>&quot;space&quot;</code>.`,name:"repo_type"},{anchor:"huggingface_hub.DiscussionWithDetails.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionWithDetails.is_pull_request",description:`<strong>is_pull_request</strong> (<code>bool</code>) &#x2014;
Whether or not this is a Pull Request.`,name:"is_pull_request"},{anchor:"huggingface_hub.DiscussionWithDetails.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
The <code>datetime</code> of creation of the Discussion / Pull Request.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionWithDetails.events",description:`<strong>events</strong> (<code>list</code> of <a href="/docs/huggingface_hub/main/en/package_reference/community#huggingface_hub.DiscussionEvent">DiscussionEvent</a>) &#x2014;
The list of <code>DiscussionEvents</code> in this Discussion or Pull Request.`,name:"events"},{anchor:"huggingface_hub.DiscussionWithDetails.conflicting_files",description:`<strong>conflicting_files</strong> (<code>Union[List[str], bool, None]</code>, <em>optional</em>) &#x2014;
A list of conflicting files if this is a Pull Request.
<code>None</code> if <code>self.is_pull_request</code> is <code>False</code>.
<code>True</code> if there are conflicting files but the list can&#x2019;t be retrieved.`,name:"conflicting_files"},{anchor:"huggingface_hub.DiscussionWithDetails.target_branch",description:`<strong>target_branch</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The branch into which changes are to be merged if this is a
Pull Request . <code>None</code>  if <code>self.is_pull_request</code> is <code>False</code>.`,name:"target_branch"},{anchor:"huggingface_hub.DiscussionWithDetails.merge_commit_oid",description:`<strong>merge_commit_oid</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If this is a merged Pull Request , this is set to the OID / SHA of
the merge commit, <code>None</code> otherwise.`,name:"merge_commit_oid"},{anchor:"huggingface_hub.DiscussionWithDetails.diff",description:`<strong>diff</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git diff if this is a Pull Request , <code>None</code> otherwise.`,name:"diff"},{anchor:"huggingface_hub.DiscussionWithDetails.endpoint",description:`<strong>endpoint</strong> (<code>str</code>) &#x2014;
Endpoint of the Hub. Default is <a href="https://huggingface.co" rel="nofollow">https://huggingface.co</a>.`,name:"endpoint"},{anchor:"huggingface_hub.DiscussionWithDetails.git_reference",description:`<strong>git_reference</strong> (<code>str</code>, <em>optional</em>) &#x2014;
(property) Git reference to which changes can be pushed if this is a Pull Request, <code>None</code> otherwise.`,name:"git_reference"},{anchor:"huggingface_hub.DiscussionWithDetails.url",description:`<strong>url</strong> (<code>str</code>) &#x2014;
(property) URL of the discussion on the Hub.`,name:"url"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L87"}}),A=new j({props:{name:"class huggingface_hub.DiscussionEvent",anchor:"huggingface_hub.DiscussionEvent",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionEvent.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionEvent.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionEvent.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionEvent.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L146"}}),k=new j({props:{name:"class huggingface_hub.DiscussionComment",anchor:"huggingface_hub.DiscussionComment",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"},{name:"content",val:": str"},{name:"edited",val:": bool"},{name:"hidden",val:": bool"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionComment.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionComment.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionComment.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionComment.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionComment.content",description:`<strong>content</strong> (<code>str</code>) &#x2014;
The raw markdown content of the comment. Mentions, links and images are not rendered.`,name:"content"},{anchor:"huggingface_hub.DiscussionComment.edited",description:`<strong>edited</strong> (<code>bool</code>) &#x2014;
Whether or not this comment has been edited.`,name:"edited"},{anchor:"huggingface_hub.DiscussionComment.hidden",description:`<strong>hidden</strong> (<code>bool</code>) &#x2014;
Whether or not this comment has been hidden.`,name:"hidden"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L179"}}),W=new j({props:{name:"class huggingface_hub.DiscussionStatusChange",anchor:"huggingface_hub.DiscussionStatusChange",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"},{name:"new_status",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionStatusChange.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionStatusChange.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionStatusChange.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionStatusChange.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionStatusChange.new_status",description:`<strong>new_status</strong> (<code>str</code>) &#x2014;
The status of the Discussion / Pull Request after the change.
It can be one of:<ul>
<li><code>&quot;open&quot;</code></li>
<li><code>&quot;closed&quot;</code></li>
<li><code>&quot;merged&quot;</code> (only for Pull Requests )</li>
</ul>`,name:"new_status"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L234"}}),I=new j({props:{name:"class huggingface_hub.DiscussionCommit",anchor:"huggingface_hub.DiscussionCommit",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"},{name:"summary",val:": str"},{name:"oid",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionCommit.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionCommit.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionCommit.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionCommit.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionCommit.summary",description:`<strong>summary</strong> (<code>str</code>) &#x2014;
The summary of the commit.`,name:"summary"},{anchor:"huggingface_hub.DiscussionCommit.oid",description:`<strong>oid</strong> (<code>str</code>) &#x2014;
The OID / SHA of the commit, as a hexadecimal string.`,name:"oid"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L262"}}),M=new j({props:{name:"class huggingface_hub.DiscussionTitleChange",anchor:"huggingface_hub.DiscussionTitleChange",parameters:[{name:"id",val:": str"},{name:"type",val:": str"},{name:"created_at",val:": datetime"},{name:"author",val:": str"},{name:"_event",val:": dict"},{name:"old_title",val:": str"},{name:"new_title",val:": str"}],parametersDescription:[{anchor:"huggingface_hub.DiscussionTitleChange.id",description:`<strong>id</strong> (<code>str</code>) &#x2014;
The ID of the event. An hexadecimal string.`,name:"id"},{anchor:"huggingface_hub.DiscussionTitleChange.type",description:`<strong>type</strong> (<code>str</code>) &#x2014;
The type of the event.`,name:"type"},{anchor:"huggingface_hub.DiscussionTitleChange.created_at",description:`<strong>created_at</strong> (<code>datetime</code>) &#x2014;
A <a href="https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime" rel="nofollow"><code>datetime</code></a>
object holding the creation timestamp for the event.`,name:"created_at"},{anchor:"huggingface_hub.DiscussionTitleChange.author",description:`<strong>author</strong> (<code>str</code>) &#x2014;
The username of the Discussion / Pull Request author.
Can be <code>&quot;deleted&quot;</code> if the user has been deleted since.`,name:"author"},{anchor:"huggingface_hub.DiscussionTitleChange.old_title",description:`<strong>old_title</strong> (<code>str</code>) &#x2014;
The previous title for the Discussion / Pull Request.`,name:"old_title"},{anchor:"huggingface_hub.DiscussionTitleChange.new_title",description:`<strong>new_title</strong> (<code>str</code>) &#x2014;
The new title.`,name:"new_title"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/community.py#L289"}}),S=new ct({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/community.md"}}),{c(){y=a("meta"),ce=i(),oe=a("p"),re=i(),p(P.$$.fragment),ue=i(),w=a("p"),w.innerHTML=Se,ge=i(),R=a("ul"),R.innerHTML=je,he=i(),p(H.$$.fragment),de=i(),h=a("div"),p(E.$$.fragment),xe=i(),N=a("p"),N.textContent=Ne,$e=i(),U=a("p"),U.textContent=Ue,le=i(),x=a("div"),p(L.$$.fragment),Ce=i(),V=a("p"),V.innerHTML=Ve,me=i(),g=a("div"),p(A.$$.fragment),Te=i(),O=a("p"),O.textContent=Oe,Pe=i(),z=a("p"),z.textContent=ze,we=i(),F=a("ul"),F.innerHTML=Fe,fe=i(),d=a("div"),p(k.$$.fragment),Re=i(),G=a("p"),G.textContent=Ge,He=i(),B=a("p"),B.innerHTML=Be,pe=i(),l=a("div"),p(W.$$.fragment),Ee=i(),J=a("p"),J.textContent=Je,Le=i(),K=a("p"),K.innerHTML=Ke,_e=i(),m=a("div"),p(I.$$.fragment),Ae=i(),Q=a("p"),Q.textContent=Qe,ke=i(),X=a("p"),X.innerHTML=Xe,be=i(),f=a("div"),p(M.$$.fragment),We=i(),Y=a("p"),Y.textContent=Ye,Ie=i(),Z=a("p"),Z.innerHTML=Ze,ve=i(),p(S.$$.fragment),De=i(),ae=a("p"),this.h()},l(e){const n=at("svelte-u9bgzb",document.head);y=c(n,"META",{name:!0,content:!0}),n.forEach(t),ce=o(e),oe=c(e,"P",{}),$(oe).forEach(t),re=o(e),_(P.$$.fragment,e),ue=o(e),w=c(e,"P",{"data-svelte-h":!0}),u(w)!=="svelte-kgcmry"&&(w.innerHTML=Se),ge=o(e),R=c(e,"UL",{"data-svelte-h":!0}),u(R)!=="svelte-4sddhe"&&(R.innerHTML=je),he=o(e),_(H.$$.fragment,e),de=o(e),h=c(e,"DIV",{class:!0});var ee=$(h);_(E.$$.fragment,ee),xe=o(ee),N=c(ee,"P",{"data-svelte-h":!0}),u(N)!=="svelte-hsew6z"&&(N.textContent=Ne),$e=o(ee),U=c(ee,"P",{"data-svelte-h":!0}),u(U)!=="svelte-cin3fe"&&(U.textContent=Ue),ee.forEach(t),le=o(e),x=c(e,"DIV",{class:!0});var ye=$(x);_(L.$$.fragment,ye),Ce=o(ye),V=c(ye,"P",{"data-svelte-h":!0}),u(V)!=="svelte-124n2rz"&&(V.innerHTML=Ve),ye.forEach(t),me=o(e),g=c(e,"DIV",{class:!0});var T=$(g);_(A.$$.fragment,T),Te=o(T),O=c(T,"P",{"data-svelte-h":!0}),u(O)!=="svelte-1mr0otk"&&(O.textContent=Oe),Pe=o(T),z=c(T,"P",{"data-svelte-h":!0}),u(z)!=="svelte-ieg5lw"&&(z.textContent=ze),we=o(T),F=c(T,"UL",{"data-svelte-h":!0}),u(F)!=="svelte-1t0dmpy"&&(F.innerHTML=Fe),T.forEach(t),fe=o(e),d=c(e,"DIV",{class:!0});var te=$(d);_(k.$$.fragment,te),Re=o(te),G=c(te,"P",{"data-svelte-h":!0}),u(G)!=="svelte-3bqgej"&&(G.textContent=Ge),He=o(te),B=c(te,"P",{"data-svelte-h":!0}),u(B)!=="svelte-1mgaj8j"&&(B.innerHTML=Be),te.forEach(t),pe=o(e),l=c(e,"DIV",{class:!0});var ne=$(l);_(W.$$.fragment,ne),Ee=o(ne),J=c(ne,"P",{"data-svelte-h":!0}),u(J)!=="svelte-9d6753"&&(J.textContent=Je),Le=o(ne),K=c(ne,"P",{"data-svelte-h":!0}),u(K)!=="svelte-1mgaj8j"&&(K.innerHTML=Ke),ne.forEach(t),_e=o(e),m=c(e,"DIV",{class:!0});var se=$(m);_(I.$$.fragment,se),Ae=o(se),Q=c(se,"P",{"data-svelte-h":!0}),u(Q)!=="svelte-1jct6gw"&&(Q.textContent=Qe),ke=o(se),X=c(se,"P",{"data-svelte-h":!0}),u(X)!=="svelte-1mgaj8j"&&(X.innerHTML=Xe),se.forEach(t),be=o(e),f=c(e,"DIV",{class:!0});var ie=$(f);_(M.$$.fragment,ie),We=o(ie),Y=c(ie,"P",{"data-svelte-h":!0}),u(Y)!=="svelte-1x0b7r2"&&(Y.textContent=Ye),Ie=o(ie),Z=c(ie,"P",{"data-svelte-h":!0}),u(Z)!=="svelte-1mgaj8j"&&(Z.innerHTML=Ze),ie.forEach(t),ve=o(e),_(S.$$.fragment,e),De=o(e),ae=c(e,"P",{}),$(ae).forEach(t),this.h()},h(){C(y,"name","hf:doc:metadata"),C(y,"content",ut),C(h,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(g,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(d,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(l,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(m,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),C(f,"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,n){s(document.head,y),r(e,ce,n),r(e,oe,n),r(e,re,n),b(P,e,n),r(e,ue,n),r(e,w,n),r(e,ge,n),r(e,R,n),r(e,he,n),b(H,e,n),r(e,de,n),r(e,h,n),b(E,h,null),s(h,xe),s(h,N),s(h,$e),s(h,U),r(e,le,n),r(e,x,n),b(L,x,null),s(x,Ce),s(x,V),r(e,me,n),r(e,g,n),b(A,g,null),s(g,Te),s(g,O),s(g,Pe),s(g,z),s(g,we),s(g,F),r(e,fe,n),r(e,d,n),b(k,d,null),s(d,Re),s(d,G),s(d,He),s(d,B),r(e,pe,n),r(e,l,n),b(W,l,null),s(l,Ee),s(l,J),s(l,Le),s(l,K),r(e,_e,n),r(e,m,n),b(I,m,null),s(m,Ae),s(m,Q),s(m,ke),s(m,X),r(e,be,n),r(e,f,n),b(M,f,null),s(f,We),s(f,Y),s(f,Ie),s(f,Z),r(e,ve,n),b(S,e,n),r(e,De,n),r(e,ae,n),qe=!0},p:nt,i(e){qe||(v(P.$$.fragment,e),v(H.$$.fragment,e),v(E.$$.fragment,e),v(L.$$.fragment,e),v(A.$$.fragment,e),v(k.$$.fragment,e),v(W.$$.fragment,e),v(I.$$.fragment,e),v(M.$$.fragment,e),v(S.$$.fragment,e),qe=!0)},o(e){D(P.$$.fragment,e),D(H.$$.fragment,e),D(E.$$.fragment,e),D(L.$$.fragment,e),D(A.$$.fragment,e),D(k.$$.fragment,e),D(W.$$.fragment,e),D(I.$$.fragment,e),D(M.$$.fragment,e),D(S.$$.fragment,e),qe=!1},d(e){e&&(t(ce),t(oe),t(re),t(ue),t(w),t(ge),t(R),t(he),t(de),t(h),t(le),t(x),t(me),t(g),t(fe),t(d),t(pe),t(l),t(_e),t(m),t(be),t(f),t(ve),t(De),t(ae)),t(y),q(P,e),q(H,e),q(E),q(L),q(A),q(k),q(W),q(I),q(M),q(S,e)}}}const ut='{"title":"Interacting with Discussions and Pull Requests","local":"interacting-with-discussions-and-pull-requests","sections":[{"title":"Data structures","local":"huggingface_hub.Discussion","sections":[],"depth":2}],"depth":1}';function gt(Me){return st(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ft extends it{constructor(y){super(),ot(this,y,gt,rt,tt,{})}}export{ft as component};
