performance.mark("js-parse-end:90741-a2b491f51237bce0.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["90741"],{8470(e,t,n){n.d(t,{I:()=>o});let o=(0,n(96540).createContext)(null);o.displayName="AnalyticsContext"},93899(e,t,n){n.d(t,{P:()=>a});var o=n(74848),i=n(16522),r=n(34164);function a(e){let t,n,a,s,l,c,d,m,u=(0,i.c)(15);return u[0]!==e?({reason:a,icon:t,...n}=e,u[0]=e,u[1]=t,u[2]=n,u[3]=a):(t=u[1],n=u[2],a=u[3]),u[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.$)("blankslate","ReadonlyCommentBox-module__ReadonlyCommentBoxContainer__DyUsE"),u[4]=s):s=u[4],u[5]!==t?(l=t&&(0,o.jsx)(t,{size:24}),u[5]=t,u[6]=l):l=u[6],u[7]!==a?(c=(0,o.jsx)("div",{className:"readonly-comment-box-module__reason__DQJKT",children:a}),u[7]=a,u[8]=c):c=u[8],u[9]!==l||u[10]!==c?(d=(0,o.jsxs)("div",{className:"ReadonlyCommentBox-module__centeredContent__WhreX",children:[l,c]}),u[9]=l,u[10]=c,u[11]=d):d=u[11],u[12]!==n||u[13]!==d?(m=(0,o.jsx)("div",{className:s,...n,children:d}),u[12]=n,u[13]=d,u[14]=m):m=u[14],m}a.displayName="ReadonlyCommentBox"},40442(e,t,n){n.d(t,{x:()=>h});var o=n(16522),i=n(61441),r=n(39423),a=n(84403),s=n(67461),l=n(95751),c=n(96540),d=n(22766),m=n(93238),u=n(35665);function h(e){let t,n,h,p,f,x,g,v,w,b,C,y,_=(0,o.c)(31),{commentBoxRef:j,markdownComposerRef:S,onChange:N,onCancel:k,referenceId:E,insidePortal:L}=e;_[0]!==E?(t=m.t.localStorageKeys.issueNewComment("viewer",E),_[0]=E,_[1]=t):t=_[1];let[I,T,R]=(0,l.Fo)(t,""),[M,A]=(0,c.useState)(I);_[2]!==M?(n=(0,i.KG)(M),_[2]=M,_[3]=n):n=_[3];let B=n,{anyItemPickerOpen:z}=(0,a.t)();_[4]!==T?(h=e=>{A(e),T(e)},_[4]=T,_[5]=h):h=_[5];let O=h;_[6]!==O||_[7]!==k||_[8]!==N?(p=e=>{O(e),N(),""===e&&k()},_[6]=O,_[7]=k,_[8]=N,_[9]=p):p=_[9];let D=p;_[10]!==j||_[11]!==D||_[12]!==M?(f=()=>({appendText:e=>{D(`${M} ${e}`)},setText:e=>{D(e)},focus:()=>{j.current?.focus()}}),x=[D,M,j],_[10]=j,_[11]=D,_[12]=M,_[13]=f,_[14]=x):(f=_[13],x=_[14]),(0,c.useImperativeHandle)(S,f,x),_[15]===Symbol.for("react.memo_cache_sentinel")?(g=(0,r.zw)(),_[15]=g):g=_[15];let $=g;_[16]!==z||_[17]!==O||_[18]!==j?(v=e=>{if(!(!$||z())&&j&&j.current){e.preventDefault();let t=window.getSelection();if(t&&t.anchorNode){let e={anchorNode:t.anchorNode,range:t.getRangeAt(0)},n=t.anchorNode.parentElement,o=n?.closest((0,d.Sp)(d.mU.issueComment))??n?.closest((0,d.Sp)(d.mU.issueBody));if(o&&o instanceof HTMLDivElement){let t=(0,u.E)(o,e);O(`${t}`)}}j.current.scrollIntoView(),j.current.focus()}},_[16]=z,_[17]=O,_[18]=j,_[19]=v):v=_[19];let F=v;_[20]!==j||_[21]!==R?(w=()=>{j.current?j.current.reset():A(""),R()},_[20]=j,_[21]=R,_[22]=w):w=_[22];let U=w;return _[23]===Symbol.for("react.memo_cache_sentinel")?(b=["r"],_[23]=b):b=_[23],_[24]!==L?(C={triggerWhenInputElementHasFocus:!1,triggerWhenPortalIsActive:L},_[24]=L,_[25]=C):C=_[25],(0,s._)(b,F,C),_[26]!==D||_[27]!==M||_[28]!==B||_[29]!==U?(y={handleMarkdownBodyChanged:D,markdownValidationResult:B,markdownBody:M,resetMarkdownBody:U},_[26]=D,_[27]=M,_[28]=B,_[29]=U,_[30]=y):y=_[30],y}},78093(e,t,n){n.d(t,{i:()=>i});var o=n(94527);function i(e,t,n=null,r="issue",a=!1){return e?o.k.repoArchived:a?o.k.repoLockedForMigration:t?o.k.issueLockedToCollaborators:n||o.k.canNotComment(r)}},66588(e,t,n){n.d(t,{$:()=>el,N:()=>es});var o=n(74848),i=n(96540),r=n(16522),a=n(22766),s=n(54242),l=n(36594),c=n(26316),d=n(38621),m=n(59134),u=n(21373),h=n(7771),p=n(34164),f=n(69895),x=n(89684),g=n(5823),v=n(16899);let w=()=>{let e,t=(0,r.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:"d-flex gap-2",children:(0,o.jsx)("div",{className:"flex-1 border overflow-x-auto rounded-2 borderColor-muted color-shadow-small",children:(0,o.jsxs)("div",{className:"d-flex flex-column gap-2 tmp-m-3",children:[(0,o.jsxs)("div",{className:"d-flex flex-items-center gap-2",children:[(0,o.jsx)(v.O,{variant:"elliptical",height:"xl",width:"xl"}),(0,o.jsx)(v.O,{variant:"rounded",height:"sm",width:"150px"})]}),[void 0,void 0].map(b),(0,o.jsx)(g.e,{})]})})}),t[0]=e):e=t[0],e};function b(e,t){return(0,o.jsx)(v.O,{variant:"rounded",height:"sm",width:"random"},t)}w.displayName="CommentLoading";var C=n(22182),y=n(57053),_=n(43145),j=n(20875),S=n(38633),N=n(29886),k=n(38771),E=n(70415),L=n(96495),I=n(18292),T=n(11675),R=n(40442);let M=({ref:e=null,initialMarkdown:t,onCancel:n,onSave:r,referenceId:a,buttonText:s,commentContent:l})=>{let[c,d]=(0,i.useState)(!1),m=(0,i.useRef)(null),u=(0,i.useRef)(void 0),{commentBoxSubject:h}=(0,E.X)(),p=(0,i.useCallback)(()=>{},[]),{markdownBody:f,resetMarkdownBody:x,markdownValidationResult:g,handleMarkdownBodyChanged:v}=(0,R.x)({commentBoxRef:m,markdownComposerRef:e,onChange:p,onCancel:()=>{},referenceId:a,insidePortal:!1});(0,i.useEffect)(()=>{t&&!f&&v(t)},[t]),(0,i.useEffect)(()=>{if(l&&u.current!==l){v(l),u.current=l;let e=window.setTimeout(()=>{m.current&&(m.current?.scrollIntoView(),m.current?.focus())},0);return()=>{window.clearTimeout(e)}}},[l]),(0,i.useLayoutEffect)(()=>{if(m&&m.current){let e=window.setTimeout(()=>{m.current?.focus()},0);return()=>{window.clearTimeout(e)}}},[m]);let w=async()=>{d(!0),await r(f,x),d(!1)};return(0,o.jsx)(T.hF,{ref:m,validationResult:g,disabled:c,onChange:e=>{v(e)},onCancel:()=>{v(""),n?.()},onSave:w,saveButtonText:s,saveButtonTrailingIcon:!1,value:f,teamHovercardsEnabled:!0,fileUploadsEnabled:!0,subject:h})};function A(e){let t,n,a=(0,r.c)(10),{comment:s,commitOid:l,onCancel:c,onUpdate:d}=e,{editComment:m}=(0,E.X)(),u=(0,i.useRef)(null);a[0]!==s||a[1]!==m||a[2]!==d?(t=async e=>{let t=await m(e,s);t.updatedFields&&d({...s,...t.updatedFields})},a[0]=s,a[1]=m,a[2]=d,a[3]=t):t=a[3];let h=t,p=`${l}-${s.id}`;return a[4]!==s.body||a[5]!==l||a[6]!==c||a[7]!==h||a[8]!==p?(n=(0,o.jsx)(M,{commitOid:l,initialMarkdown:s.body,ref:u,onSave:h,onCancel:c,referenceId:p,buttonText:"Update comment"}),a[4]=s.body,a[5]=l,a[6]=c,a[7]=h,a[8]=p,a[9]=n):n=a[9],n}function B(e){let t,n,i=(0,r.c)(17),{comments:a,commit:s,locked:l,deleteComment:c,updateComment:d,setNewCommentContent:m,repoOwnerGlobalRelayId:u}=e;if(0===a.length)return null;if(i[0]!==a||i[1]!==s||i[2]!==c||i[3]!==l||i[4]!==u||i[5]!==m||i[6]!==d){let e;i[8]!==s||i[9]!==c||i[10]!==l||i[11]!==u||i[12]!==m||i[13]!==d?(e=e=>(0,o.jsx)(z,{comment:e,commit:s,locked:l,deleteComment:c,updateComment:d,setNewCommentContent:m,repoOwnerGlobalRelayId:u},e.id),i[8]=s,i[9]=c,i[10]=l,i[11]=u,i[12]=m,i[13]=d,i[14]=e):e=i[14],t=a.map(e),i[0]=a,i[1]=s,i[2]=c,i[3]=l,i[4]=u,i[5]=m,i[6]=d,i[7]=t}else t=i[7];return i[15]!==t?(n=(0,o.jsx)("div",{className:"d-flex flex-column gap-3",children:t}),i[15]=t,i[16]=n):n=i[16],n}function z(e){let t,n,a,l,c,d,m,u,h,p,f,x=(0,r.c)(46),{comment:v,commit:w,locked:b,deleteComment:C,updateComment:y,setNewCommentContent:_,repoOwnerGlobalRelayId:j}=e,S=(0,s.t)(),[T,R]=(0,i.useState)(!1),[M,B]=(0,i.useState)(v.isHidden),z=(0,i.useRef)(null),{deleteComment:U,hideComment:P,unhideComment:H}=(0,E.X)();x[0]!==v.id||x[1]!==U||x[2]!==C?(t=async()=>{let e=await U(v.id.toString());"canceled"===e||"error"!==e&&"success"===e&&C(v.id)},x[0]=v.id,x[1]=U,x[2]=C,x[3]=t):t=x[3];let V=t;x[4]!==y?(n=e=>{y(e),R(!1)},x[4]=y,x[5]=n):n=x[5];let X=n;x[6]!==v||x[7]!==P||x[8]!==y?(a=async e=>{let t=await P(v.id.toString(),e);"error"!==t&&"success"===t&&(y({...v,isHidden:!0,minimizedReason:e}),B(!0))},x[6]=v,x[7]=P,x[8]=y,x[9]=a):a=x[9];let W=a;x[10]!==v||x[11]!==H||x[12]!==y?(l=async()=>{let e=await H(v.id.toString());"error"!==e&&"success"===e&&(y({...v,isHidden:!1,minimizedReason:null}),B(!1))},x[10]=v,x[11]=H,x[12]=y,x[13]=l):l=x[13];let Q=l,G=w.authors.length>0?w.authors[0]?.login:"";x[14]!==v||x[15]!==w||x[16]!==S||x[17]!==j?(c=(0,L.p)(v,w,S,j),x[14]=v,x[15]=w,x[16]=S,x[17]=j,x[18]=c):c=x[18],x[19]!==w.oid?(d=(0,I.F)(w.oid),x[19]=w.oid,x[20]=d):d=x[20],x[21]!==c||x[22]!==d?(m={...c,referenceText:d},x[21]=c,x[22]=d,x[23]=m):m=x[23];let K=m;x[24]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{R(!0)},x[24]=u):u=x[24];let q=v.viewerCanReadUserContentEdits&&!!v.lastUserContentEdit;return x[25]!==v||x[26]!==G||x[27]!==M||x[28]!==V||x[29]!==W||x[30]!==Q||x[31]!==_||x[32]!==q||x[33]!==K?(h=(0,o.jsx)(F,{comment:K,commentAuthorLogin:v.author.login,commentSubjectAuthorLogin:G,commentSubjectType:"commit",avatarUrl:v.author.avatarUrl,isMinimized:M,editComment:u,onReplySelect:_,onMinimize:B,navigate:$,hideComment:W,unhideComment:Q,deleteComment:V,commentRef:z,showEditHistory:q,commitComment:v}),x[25]=v,x[26]=G,x[27]=M,x[28]=V,x[29]=W,x[30]=Q,x[31]=_,x[32]=q,x[33]=K,x[34]=h):h=x[34],x[35]!==v||x[36]!==w.oid||x[37]!==T||x[38]!==M||x[39]!==b||x[40]!==X?(p=M?null:T?(0,o.jsx)("div",{className:"m-2",children:(0,o.jsx)(A,{comment:v,commitOid:w.oid,onUpdate:X,onCancel:()=>R(!1)})}):(0,o.jsxs)("div",{className:"d-flex flex-column tmp-m-3 gap-3",style:{gap:"12px"},children:[(0,o.jsx)("div",{className:"markdown-body","data-turbolinks":"false",children:(0,o.jsx)(N.G,{disabled:!1,verifiedHTML:v.htmlBody,markdownValue:v.body,onChange:D,onLinkClick:O,teamHovercardsEnabled:!0})}),(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(g.e,{}),children:(0,o.jsx)(k.ReactionViewerRelayQueryComponent,{id:v.relayId,subjectLocked:b})})]}),x[35]=v,x[36]=w.oid,x[37]=T,x[38]=M,x[39]=b,x[40]=X,x[41]=p):p=x[41],x[42]!==v.urlFragment||x[43]!==h||x[44]!==p?(f=(0,o.jsxs)("div",{className:"border rounded-2",ref:z,id:v.urlFragment,tabIndex:-1,children:[h,p]}),x[42]=v.urlFragment,x[43]=h,x[44]=p,x[45]=f):f=x[45],f}function O(){}function D(){}function $(){}function F(e){let t,n,a,s,l,c,d=(0,r.c)(15);d[0]!==e?({hideActions:t,...n}=e,d[0]=e,d[1]=t,d[2]=n):(t=d[1],n=d[2]);let m=n.commitComment;if(n.showEditHistory){let e,t;d[3]!==m.relayId?(e=(0,o.jsx)(i.Suspense,{fallback:null,children:(0,o.jsx)(H,{id:m.relayId})}),d[3]=m.relayId,d[4]=e):e=d[4],l=e,d[5]!==n.comment.id?(t=(0,o.jsx)(V,{id:n.comment.id}),d[5]=n.comment.id,d[6]=t):t=d[6],c=t}return d[7]!==t||d[8]!==n?(a=t?void 0:(0,o.jsx)(y.p,{onSuccessfulBlock:U,...n}),d[7]=t,d[8]=n,d[9]=a):a=d[9],d[10]!==l||d[11]!==c||d[12]!==n||d[13]!==a?(s=(0,o.jsx)(C.v,{lastEditedByMessage:c,editHistoryComponent:l,forceInlineAvatar:!0,...n,actions:a}),d[10]=l,d[11]=c,d[12]=n,d[13]=a,d[14]=s):s=d[14],s}function U(){setTimeout(P,800)}function P(){return c.cg?.location.reload()}function H(e){let t,n,i=(0,r.c)(4),{id:a}=e;i[0]!==a?(t={id:a},i[0]=a,i[1]=t):t=i[1];let s=(0,S.f)(t);return i[2]!==s?(n=s?(0,o.jsx)(_.W,{editHistory:s}):null,i[2]=s,i[3]=n):n=i[3],n}function V(e){let t,n,i=(0,r.c)(4),{id:a}=e;i[0]!==a?(t={id:a},i[0]=a,i[1]=t):t=i[1];let s=(0,S.f)(t);return i[2]!==s?(n=s?(0,o.jsx)(j._,{editInformation:s}):null,i[2]=s,i[3]=n):n=i[3],n}M.displayName="CommitCommentEditor",A.displayName="UpdateCommitComment",B.displayName="ExistingCommitComments",z.displayName="ExistingCommitComment",F.displayName="CommitCommentHeader",H.displayName="CommitCommentHeaderEditHistory",V.displayName="CommitCommentHeaderLastEditedBy";var X=n(23666),W=n(50964),Q=n(78597),G=n(61398);function K(e){let t,n,a,l,c,d,u,h,p,f,x=(0,r.c)(33),{commitOid:g,locked:v,onClose:w}=e,b=(0,s.t)(),{helpUrl:C}=(0,W.X)(),[y,_]=(0,i.useState)(!1),j=v?"Unlock":"Lock",S=v?"lock":"unlock";x[0]!==g||x[1]!==w||x[2]!==b?(t=async()=>{(await (0,Q.DI)(`${(0,X.$Qz)({owner:b.ownerLogin,repo:b.name,commitish:g})}/lock`,{method:"PUT",headers:{Accept:"application/json"}})).ok?w(!0):_(!0)},x[0]=g,x[1]=w,x[2]=b,x[3]=t):t=x[3];let N=t;x[4]!==g||x[5]!==w||x[6]!==b?(n=async()=>{(await (0,Q.lS)(`${(0,X.$Qz)({owner:b.ownerLogin,repo:b.name,commitish:g})}/unlock`,{method:"PUT",headers:{Accept:"application/json"}})).ok?w(!1):_(!0)},x[4]=g,x[5]=w,x[6]=b,x[7]=n):n=x[7];let k=n;x[8]!==w?(a=()=>w(),x[8]=w,x[9]=a):a=x[9];let E=`${j} conversation on this commit`,L=`${j} conversation`;x[10]===Symbol.for("react.memo_cache_sentinel")?(l={width:"100%"},x[10]=l):l=x[10];let I=v?k:N;return x[11]!==L||x[12]!==I?(c=[{content:L,buttonType:"danger",style:l,onClick:I}],x[11]=L,x[12]=I,x[13]=c):c=x[13],x[14]!==j||x[15]!==y?(d=y&&(0,o.jsxs)(m.A,{className:"mb-2",variant:"danger",children:["There was an error ",j.toLocaleLowerCase(),"ing this conversation. Please try again."]}),x[14]=j,x[15]=y,x[16]=d):d=x[16],x[17]!==j?(u=(0,o.jsxs)("p",{children:[j,"ing the conversation means:"]}),x[17]=j,x[18]=u):u=x[18],x[19]!==C||x[20]!==v||x[21]!==b?(h=(0,o.jsx)("ul",{className:"tmp-ml-4",children:v?(0,o.jsxs)("li",{children:[(0,o.jsx)("strong",{children:"Everyone"})," will be able to comment on this commit once more."]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("li",{children:["Other users ",(0,o.jsx)("strong",{children:"can\u2019t add new comments"})," to this commit."]}),b.isOrgOwned?(0,o.jsxs)("li",{children:["You and other members of teams with"," ",(0,o.jsx)("a",{href:`${C}/get-started/learning-about-github/access-permissions-on-github`,children:"write access"})," ","to this repository ",(0,o.jsx)("strong",{children:"can still leave comments"})," that others can see."]}):(0,o.jsxs)("li",{children:["You and other collaborators"," ",(0,o.jsx)("a",{href:`${C}/get-started/learning-about-github/access-permissions-on-github`,children:"with access"})," to this repository ",(0,o.jsx)("strong",{children:"can still leave comments"})," that others can see."]})]})}),x[19]=C,x[20]=v,x[21]=b,x[22]=h):h=x[22],x[23]!==S?(p=(0,o.jsxs)("p",{className:"mb-0 mt-2",children:["You can always ",S," this commit again in the future."]}),x[23]=S,x[24]=p):p=x[24],x[25]!==u||x[26]!==h||x[27]!==p||x[28]!==a||x[29]!==E||x[30]!==c||x[31]!==d?(f=(0,o.jsxs)(G.l,{onClose:a,width:"large",title:E,footerButtons:c,children:[d,u,h,p]}),x[25]=u,x[26]=h,x[27]=p,x[28]=a,x[29]=E,x[30]=c,x[31]=d,x[32]=f):f=x[32],f}K.displayName="LockConversationDialog";var q=n(7909),Y=n(93899),J=n(78093),Z=n(34810),ee=n(93238),et=n(206);function en(e){let t,n,a,s,l,m=(0,r.c)(16),{commitOid:u,onAddComment:h,onExpandCommentEditor:p,newCommentContent:f,canComment:x,locked:g,repoArchived:v,avatarURL:w}=e;m[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,q.M3)(),m[0]=t):t=m[0];let b=t,{addComment:C}=(0,E.X)(),y=(0,i.useRef)(null);m[1]!==C||m[2]!==h?(n=async(e,t)=>{let n=await C(e);n.comment&&(h(n.comment),t())},m[1]=C,m[2]=h,m[3]=n):n=m[3];let _=n;m[4]===Symbol.for("react.memo_cache_sentinel")?(a=b?void 0:(0,o.jsx)(ei,{redirectUrl:c.fV?.href}),m[4]=a):a=m[4],m[5]!==g||m[6]!==v?(s=(0,J.i)(v,g,a,"commit"),m[5]=g,m[6]=v,m[7]=s):s=m[7];let j=s;return m[8]!==w||m[9]!==x||m[10]!==u||m[11]!==f||m[12]!==p||m[13]!==_||m[14]!==j?(l=(0,o.jsx)("div",{className:"d-flex flex-column gap-2 tmp-pt-3",children:x?(0,o.jsx)(eo,{commitOid:u,commentEditor:y,onExpandEditor:p,onSave:_,newCommentContent:f,avatarURL:w||ee.t.ghostUser.avatarUrl}):(0,o.jsx)(Y.P,{icon:d.LockIcon,reason:j})}),m[8]=w,m[9]=x,m[10]=u,m[11]=f,m[12]=p,m[13]=_,m[14]=j,m[15]=l):l=m[15],l}function eo(e){let[t,n]=(0,i.useState)(()=>void 0!==e.newCommentContent),[r,s]=(0,i.useState)(e.newCommentContent);t||void 0===e.newCommentContent||r===e.newCommentContent||(n(!0),s(e.newCommentContent));let l="Comment";return t?(0,o.jsx)("div",{id:a.Bq.issueCommentComposer,children:(0,o.jsx)(M,{commitOid:e.commitOid,ref:e.commentEditor,onSave:e.onSave,referenceId:`new-discussion-comment-${e.commitOid}`,commentContent:e.newCommentContent,initialMarkdown:e.newCommentContent,buttonText:l,onCancel:()=>{n(!1)}})}):(0,o.jsxs)("div",{id:a.Bq.issueCommentComposer,className:"d-flex flex-items-center border rounded-2 p-2 gap-2 color-bg-subtle",children:[(0,o.jsx)(et.r,{src:e.avatarURL,size:20}),(0,o.jsx)(Z.z,{onClick:()=>{n(!0),e.onExpandEditor?.()},children:l})]})}function ei(e){let t,n=(0,r.c)(2),{redirectUrl:i}=e,a=i?`/login?return_to=${i}`:"/login";return n[0]!==a?(t=(0,o.jsxs)("span",{children:["Please ",(0,o.jsx)("a",{href:a,children:"sign in"})," to comment."]}),n[0]=a,n[1]=t):t=n[1],t}en.displayName="NewCommitComment",eo.displayName="CompactEditor",ei.displayName="LoggedOutMessage";var er=n(29207);let ea=e=>{let t,n,a,l,c,m=(0,r.c)(15),{ref:h,commitOid:p,subscribed:f}=e,[x,g]=(0,i.useState)(f),[v,w]=(0,i.useState)(!1),b=(0,s.t)(),C=(0,er.H)("/notifications/thread","post");t=v?`You're now ${x?"subscribed":"unsubscribed"} to this thread.`:x?"You're receiving notifications because you're subscribed to this thread.":"You're not receiving notifications from this thread.",m[0]!==p||m[1]!==b.id||m[2]!==x||m[3]!==C?(n=async()=>{let e=new FormData;e.append("repository_id",b.id.toString()),e.append("thread_id",p),e.append("thread_class","Commit"),e.append("id",x?"unsubscribe":"subscribe"),e.append("authenticity_token",C??""),(await (0,Q.DI)("/notifications/thread",{method:"POST",body:e})).ok&&(g(!x),w(!0))},m[0]=p,m[1]=b.id,m[2]=x,m[3]=C,m[4]=n):n=m[4];let y=n,_=x?d.BellSlashIcon:d.BellIcon,j=x?"Unsubscribe":"Subscribe";return m[5]!==_||m[6]!==j||m[7]!==y?(a=(0,o.jsx)(u.Q,{onClick:y,size:"small",leadingVisual:_,children:j}),m[5]=_,m[6]=j,m[7]=y,m[8]=a):a=m[8],m[9]!==t?(l=(0,o.jsx)("p",{role:"status",className:"f6 fgColor-muted mb-0",children:t}),m[9]=t,m[10]=l):l=m[10],m[11]!==h||m[12]!==a||m[13]!==l?(c=(0,o.jsxs)("div",{className:"d-flex flex-items-center border rounded-2 p-2 gap-2",ref:h,children:[a,l]}),m[11]=h,m[12]=a,m[13]=l,m[14]=c):c=m[14],c};ea.displayName="NotificationsFooter",ea.displayName="NotificationsFooter";let es="comments";function el(e){let t,n,s=(0,r.c)(3);return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,p.$)("d-flex flex-column gap-2 tmp-pt-3",a.mU.commentsContainer,"Comment-module__commit-discussion-comments___VBnj"),s[0]=t):t=s[0],s[1]!==e?(n=(0,o.jsx)("div",{className:t,id:es,children:(0,i.createElement)(ec,{...e,key:e.commit.oid})}),s[1]=e,s[2]=n):n=s[2],n}function ec(e){let t,n,a,d,h,p,g,v,b,C,y,_,j=(0,r.c)(50),{commit:S,commentInfo:N,repoOwnerGlobalRelayId:k}=e,E=(0,s.t)(),L=(0,l.i)(),{retry:I,loadMore:T,canLoadMore:R,addComment:M,deleteComment:A,updateComment:z,count:O,comments:D,subscribed:$,providerState:F}=(0,f.y)(),[U,P]=(0,i.useState)(void 0),[H,V]=(0,i.useState)(N.locked);j[0]!==S.oid||j[1]!==E.id?(t=(0,x.N)(S.oid,E.id),j[0]=S.oid,j[1]=E.id,j[2]=t):t=j[2];let X=t,W=(0,i.useRef)(null);j[3]!==D?(n=()=>{if(c.cg?.location.hash){let e=c.cg.location.hash.slice(1);if(D.find(t=>t.urlFragment===e)){let t=document.getElementById(e);t&&(t.scrollIntoView(),t.focus())}}},a=[D],j[3]=D,j[4]=n,j[5]=a):(n=j[4],a=j[5]),(0,i.useEffect)(n,a),j[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{setTimeout(()=>W.current?.scrollIntoView({behavior:"smooth",block:"nearest"}),0)},j[6]=d):d=j[6];let Q=d;return j[7]!==O||j[8]!==N.canLock||j[9]!==S.oid||j[10]!==H?(h=(0,o.jsx)(em,{commitOid:S.oid,commentCount:O,canLock:N.canLock,locked:H,setLocked:V}),j[7]=O,j[8]=N.canLock,j[9]=S.oid,j[10]=H,j[11]=h):h=j[11],j[12]!==F?(p="loading"===F&&(0,o.jsx)(w,{}),j[12]=F,j[13]=p):p=j[13],j[14]!==F||j[15]!==I?(g="error"===F&&(0,o.jsxs)(m.A,{className:"d-flex flex-justify-between flex-items-center",variant:"danger",children:[(0,o.jsx)("span",{children:"Failed to load comments."}),(0,o.jsx)(u.Q,{onClick:()=>I(),children:"Retry"})]}),j[14]=F,j[15]=I,j[16]=g):g=j[16],j[17]!==R||j[18]!==T||j[19]!==F?(v="loaded"===F&&R&&(0,o.jsx)(u.Q,{className:"width-full",onClick:()=>T(),children:"Load more comments"}),j[17]=R,j[18]=T,j[19]=F,j[20]=v):v=j[20],j[21]!==D||j[22]!==S||j[23]!==A||j[24]!==H||j[25]!==k||j[26]!==z?(b=(0,o.jsx)(B,{comments:D,commit:S,locked:H,repoOwnerGlobalRelayId:k,deleteComment:A,updateComment:z,setNewCommentContent:P}),j[21]=D,j[22]=S,j[23]=A,j[24]=H,j[25]=k,j[26]=z,j[27]=b):b=j[27],j[28]!==X?(C=X?(0,o.jsx)("div",{className:"text-center",children:[...Array(38)].map(ed)}):null,j[28]=X,j[29]=C):C=j[29],j[30]!==M||j[31]!==N.canComment||j[32]!==N.commitCommentsEnabled||j[33]!==N.repoArchived||j[34]!==D||j[35]!==S.oid||j[36]!==L||j[37]!==H||j[38]!==U||j[39]!==F||j[40]!==$?(y="loaded"===F||0!==D.length?(0,o.jsxs)(o.Fragment,{children:[N.commitCommentsEnabled??!0?(0,o.jsx)(en,{commitOid:S.oid,onAddComment:M,onExpandCommentEditor:Q,newCommentContent:U,canComment:N.canComment,locked:H,repoArchived:N.repoArchived,avatarURL:L?.avatarURL}):null,L?(0,o.jsx)(ea,{ref:W,commitOid:S.oid,subscribed:$??!1}):null]}):null,j[30]=M,j[31]=N.canComment,j[32]=N.commitCommentsEnabled,j[33]=N.repoArchived,j[34]=D,j[35]=S.oid,j[36]=L,j[37]=H,j[38]=U,j[39]=F,j[40]=$,j[41]=y):y=j[41],j[42]!==C||j[43]!==y||j[44]!==h||j[45]!==p||j[46]!==g||j[47]!==v||j[48]!==b?(_=(0,o.jsxs)(o.Fragment,{children:[h,p,g,v,b,C,y]}),j[42]=C,j[43]=y,j[44]=h,j[45]=p,j[46]=g,j[47]=v,j[48]=b,j[49]=_):_=j[49],_}function ed(e,t){return(0,o.jsx)("img",{alt:"rose",src:"/images/icons/emoji/rose.png",className:"Comment-module__discussion-comments-rose__sMl1p"},`rose-${t}`)}function em(e){let t,n,a,s,l,c,m=(0,r.c)(17),{commitOid:p,commentCount:f,locked:x,setLocked:g,canLock:v}=e,[w,b]=(0,i.useState)(!1);return m[0]!==f?(t=(0,o.jsxs)("h2",{className:"sr-only",children:[f," commit comments"]}),m[0]=f,m[1]=t):t=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)("div",{className:"h4 pr-2",children:"Comments"}),m[2]=n):n=m[2],m[3]!==f?(a=void 0!==f&&(0,o.jsx)(h.A,{children:f}),m[3]=f,m[4]=a):a=m[4],m[5]!==a?(s=(0,o.jsxs)("div",{className:"d-flex flex-items-center",children:[n,a]}),m[5]=a,m[6]=s):s=m[6],m[7]!==v||m[8]!==p||m[9]!==w||m[10]!==x||m[11]!==g?(l=v&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(u.Q,{leadingVisual:x?d.KeyIcon:d.LockIcon,variant:"invisible",onClick:()=>b(!0),children:[x?"Unlock":"Lock"," conversation"]}),w&&(0,o.jsx)(K,{commitOid:p,locked:x,onClose:e=>{b(!1),void 0!==e&&g(e)}})]}),m[7]=v,m[8]=p,m[9]=w,m[10]=x,m[11]=g,m[12]=l):l=m[12],m[13]!==t||m[14]!==s||m[15]!==l?(c=(0,o.jsxs)("div",{className:"d-flex flex-items-center flex-justify-between",children:[t,s,l]}),m[13]=t,m[14]=s,m[15]=l,m[16]=c):c=m[16],c}el.displayName="DiscussionComments",ec.displayName="DiscussionCommentsInternal",em.displayName="DiscussionCommentsHeader"},27020(e,t,n){n.d(t,{s:()=>p});var o=n(74848),i=n(16522),r=n(38621),a=n(53716),s=n(46249),l=n(10095),c=n(34164);let d={timelineRowItem:"TimelineRow-module__timelineRowItem__feuol",timelineRowBadge:"TimelineRow-module__timelineRowBadge__YaFlf",bottom:"TimelineRow-module__bottom__wWHQx",top:"TimelineRow-module__top__wbFNk"},m=()=>{let e,t=(0,i.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(l.A,{icon:r.GitCommitIcon}),t[0]=e):e=t[0],e};function u(e){let t,n,r,s,l,u=(0,i.c)(13),{children:h,leadingVisual:p,clipTimeline:f,className:x}=e,g=void 0===f?"none":f,v="none"!==g&&d[g];return u[0]!==x||u[1]!==v?(t=(0,c.$)(x,d.timelineRowItem,v),u[0]=x,u[1]=v,u[2]=t):t=u[2],u[3]!==p?(n=p??(0,o.jsx)(m,{}),u[3]=p,u[4]=n):n=u[4],u[5]!==n?(r=(0,o.jsx)(a.A.Badge,{className:d.timelineRowBadge,children:n}),u[5]=n,u[6]=r):r=u[6],u[7]!==h?(s=(0,o.jsx)(a.A.Body,{className:"mt-0",children:h}),u[7]=h,u[8]=s):s=u[8],u[9]!==t||u[10]!==r||u[11]!==s?(l=(0,o.jsxs)(a.A.Item,{className:t,children:[r,s]}),u[9]=t,u[10]=r,u[11]=s,u[12]=l):l=u[12],l}function h(e){let t,n,r,a,l=(0,i.c)(8);return l[0]!==e?({title:r,as:t,...n}=e,l[0]=e,l[1]=t,l[2]=n,l[3]=r):(t=l[1],n=l[2],r=l[3]),l[4]!==t||l[5]!==n||l[6]!==r?(a=(0,o.jsx)(s.A,{as:t,className:"text-normal f5 py-1",...n,children:r}),l[4]=t,l[5]=n,l[6]=r,l[7]=a):a=l[7],a}m.displayName="DefaultLeadingVisual",u.displayName="TimelineRowComponent",h.displayName="TimelineRowHeading";let p=Object.assign(u,{Heading:h})},91710(e,t,n){n.d(t,{Z:()=>a});var o=n(74848),i=n(16522),r=n(34164);function a(e){let t,n,a=(0,i.c)(5),{children:s,className:l}=e,c=void 0===l?"":l;return a[0]!==c?(t=(0,r.$)("color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column",c),a[0]=c,a[1]=t):t=a[1],a[2]!==s||a[3]!==t?(n=(0,o.jsx)("div",{className:t,children:s}),a[2]=s,a[3]=t,a[4]=n):n=a[4],n}a.displayName="Panel"},69895(e,t,n){n.d(t,{c:()=>c,y:()=>d});var o=n(74848),i=n(52111),r=n(23666),a=n(78597),s=n(96540);let l=(0,s.createContext)({comments:[],addComment:i.l,deleteComment:i.l,updateComment:i.l,loadMore:i.l,retry:i.l,canLoadMore:!1,count:0,subscribed:!1,providerState:"initial"});function c({children:e,comments:t=[],commentCount:n=0,canLoadMore:i=!1,subscribed:d=!1,providerState:m="initial",repo:u,commitOid:h}){let[p,f]=(0,s.useState)(t),[x,g]=(0,s.useState)(n),[v,w]=(0,s.useState)(i),[b,C]=(0,s.useState)(m),[y,_]=(0,s.useState)(d);(0,s.useEffect)(()=>{g(n),f(t),w(i),_(d),C(m)},[m]);let j=(0,s.useCallback)(async e=>{C("loading");let t=await (0,a.Sr)((0,r.Mo3)({owner:u.ownerLogin,repo:u.name,commitOid:h,beforeCommentId:e}));if(t.ok){let n=await t.json();e?f(e=>[...n.comments,...e]):f(n.comments),C("loaded"),g(n.count),_(n.subscribed),w(n.canLoadMore)}else C("error")},[u.ownerLogin,u.name,h]),S=(0,s.useCallback)(()=>{let e=p[0];e&&v&&j(e.id.toString())},[v,p,j]),N=(0,s.useCallback)(e=>{f([...p,e]),g((x??0)+1)},[p,x]),k=(0,s.useCallback)(e=>{f(p.filter(t=>t.id!==e)),g((x??0)-1)},[p,x]),E=(0,s.useCallback)(e=>{f(p.map(t=>t.id===e.id?e:t))},[p]),L=(0,s.useMemo)(()=>({addComment:N,canLoadMore:v,comments:p,count:x,deleteComment:k,loadMore:S,retry:j,subscribed:y,providerState:b,updateComment:E}),[N,v,p,x,k,j,S,b,y,E]);return(0,o.jsx)(l,{value:L,children:e})}function d(){let e=(0,s.use)(l);if(!e)throw Error("useDiscussionComments must be used within a DiscussionCommentsProvider");return e}l.displayName="DiscussionCommentsContext",c.displayName="DiscussionCommentsProvider"},99766(e,t,n){n.d(t,{B:()=>f,r:()=>d});var o=n(74848),i=n(16522),r=n(52111),a=n(96540);let s=(0,a.createContext)({comments:[],addComments:r.l,findInlineComment:()=>void 0,findInlineCommentWithRelay:()=>void 0,getCommentCountByPath:()=>0,getThreadDataByPathAndPosition:()=>void 0,updateInlineCommentMapWithNewComment:()=>void 0,getInlineCommentInfoByPathAndPosition:()=>void 0});function l(e){return e.reduce((e,t)=>(e.set(`${t.path}::${t.position}`,t),e),new Map)}function c(e){let t=new Map;for(let n in e)if(e.hasOwnProperty(n)){let o=new Map;for(let t in e[n])e[n].hasOwnProperty(t)&&o.set(Number(t),e[n][Number(t)]);t.set(n,o)}return t}function d(e){let t,n,r,d,f,x,g,v,w,b,C,y,_,j,S,N=(0,i.c)(41),{children:k,initialFiles:E,initialExpandedThreadId:L,initialInlineComments:I}=e;N[0]!==I?(t=()=>I?Object.values(I).flatMap(p):[],N[0]=I,N[1]=t):t=N[1];let[T,R]=(0,a.useState)(t);N[2]!==E?(n=E??[],N[2]=E,N[3]=n):n=N[3];let[M,A]=(0,a.useState)(n);N[4]!==E?(r=()=>E?l(E):new Map,N[4]=E,N[5]=r):r=N[5];let[B,z]=(0,a.useState)(r);N[6]!==I?(d=()=>I?c(I):new Map,N[6]=I,N[7]=d):d=N[7];let[O,D]=(0,a.useState)(d);N[8]!==O?(f=(e,t,n,o)=>{if(o){let o=O.get(e)?.get(t)??[];o=o.concat(n);let i=O.get(e)?.set(t,o);D(O.set(e,i??new Map)??O)}else{let o=O.get(e)?.set(t,n);D(O.set(e,o??new Map)??O)}},N[8]=O,N[9]=f):f=N[9];let $=f;N[10]!==E||N[11]!==I?(x=()=>{A(E??[]),z(E?l(E):new Map),D(I?c(I):new Map),R(I?Object.values(I).flatMap(h):[])},g=[E,I],N[10]=E,N[11]=I,N[12]=x,N[13]=g):(x=N[12],g=N[13]),(0,a.useEffect)(x,g),N[14]!==M||N[15]!==T||N[16]!==$?(v=(e,t,n)=>{let o=e.map(u),i=T.filter(e=>!o.includes(e.id)),r=M.filter(e=>e.path!==t||e.position!==parseInt(n)),a={path:t,position:parseInt(n),count:e.length,threads:[{id:`${t}::${n}`,diffSide:"RIGHT",commentsData:{totalCount:e.length,comments:e.map(m)}}]};R([...i,...e]),A([...r,a]),z(l([...r,a])),$(t,parseInt(n),e,!1)},N[14]=M,N[15]=T,N[16]=$,N[17]=v):v=N[17];let F=v;N[18]!==T?(w=e=>{if(e)return T.find(t=>t.id===e)},N[18]=T,N[19]=w):w=N[19];let U=w;N[20]!==T?(b=e=>T.find(t=>t.relayId===e),N[20]=T,N[21]=b):b=N[21];let P=b;N[22]!==M?(C=e=>{let t=0;for(let n of M)n.path===e&&(t+=n.count);return t},N[22]=M,N[23]=C):C=N[23];let H=C;N[24]!==B?(y=(e,t)=>B.get(`${e}::${t}`),N[24]=B,N[25]=y):y=N[25];let V=y;N[26]!==O?(_=(e,t)=>O.get(e)?.get(t),N[26]=O,N[27]=_):_=N[27];let X=_;N[28]!==F||N[29]!==T||N[30]!==U||N[31]!==P||N[32]!==H||N[33]!==X||N[34]!==V||N[35]!==L||N[36]!==$?(j={comments:T,addComments:F,findInlineComment:U,findInlineCommentWithRelay:P,getCommentCountByPath:H,getThreadDataByPathAndPosition:V,getInlineCommentInfoByPathAndPosition:X,updateInlineCommentMapWithNewComment:$,initialExpandedThreadId:L},N[28]=F,N[29]=T,N[30]=U,N[31]=P,N[32]=H,N[33]=X,N[34]=V,N[35]=L,N[36]=$,N[37]=j):j=N[37];let W=j;return N[38]!==k||N[39]!==W?(S=(0,o.jsx)(s,{value:W,children:k}),N[38]=k,N[39]=W,N[40]=S):S=N[40],S}function m(e){return{id:e.id,author:{avatarUrl:e?.author?.avatarUrl??"",login:e?.author?.login??"",url:""}}}function u(e){return e.id}function h(e){return Array.from(Object.values(e).flat())}function p(e){return Array.from(Object.values(e).flat())}function f(){let e=(0,a.use)(s);if(!e)throw Error("useInlineComments must be used within a InlineCommentsProvider");return e}s.displayName="InlineCommentsContext",d.displayName="InlineCommentsProvider"},70415(e,t,n){n.d(t,{X:()=>l});var o=n(16522),i=n(54242),r=n(95424),a=n(65594),s=n(78597);function l(){let e,t,n,l,c,d,m,u,h,p,f,x=(0,o.c)(30),g=(0,i.t)(),{commit:v}=(0,a.B)();x[0]!==g.ownerLogin?(e=(0,r.QU)(g.ownerLogin),x[0]=g.ownerLogin,x[1]=e):e=x[1],x[2]!==g.name?(t=(0,r.QU)(g.name),x[2]=g.name,x[3]=t):t=x[3];let w=`/${e}/${t}/commit_comment`,b=`${w}/create`;x[4]!==v.oid||x[5]!==b?(n=async(e,t,n)=>{let o=new FormData;o.append("commit_id",v.oid),o.append("comment[body]",e),t&&n&&(o.append("path",t),o.append("position",n.toString()));let i=await (0,s.DI)(b,{method:"POST",body:o});return i.ok?{error:null,comment:(await i.json()).comment}:{error:Error("Failed to add comment"),comment:null}},x[4]=v.oid,x[5]=b,x[6]=n):n=x[6];let C=n;x[7]!==w?(l=async(e,t)=>{let n=new FormData;n.append("_method","put"),n.append("commit_comment[id]",t.id.toString()),n.append("commit_comment[body]",e),n.append("commit_comment[bodyVersion]",t.bodyVersion);let o=await (0,s.DI)(w,{method:"POST",body:n});if(!o.ok)return{error:Error("Failed to edit comment"),updatedFields:null};{let e=await o.json();return{error:null,updatedFields:{body:e.source,bodyVersion:e.bodyVersion,htmlBody:e.body}}}},x[7]=w,x[8]=l):l=x[8];let y=l;x[9]!==w?(c=async e=>{let t=new FormData;return(t.append("_method","delete"),t.append("commit_comment[id]",e),(await (0,s.DI)(w,{method:"POST",body:t})).ok)?"success":"error"},x[9]=w,x[10]=c):c=x[10];let _=c;x[11]!==w?(d=async(e,t)=>{let n=new FormData;return(n.append("_method","put"),n.append("classifier",t),(await (0,s.DI)(`${w}/${e}/minimize`,{method:"POST",body:n,headers:{Accept:"application/json"}})).ok)?"success":"error"},x[11]=w,x[12]=d):d=x[12];let j=d;x[13]!==w?(m=async e=>{let t=new FormData;return(t.append("_method","put"),(await (0,s.DI)(`${w}/${e}/unminimize`,{method:"POST",body:t,headers:{Accept:"application/json"}})).ok)?"success":"error"},x[13]=w,x[14]=m):m=x[14];let S=m,N=`${g.ownerLogin}/${g.name}`;x[15]!==g.id||x[16]!==N?(u={databaseId:g.id,nwo:N,slashCommandsEnabled:!1},x[15]=g.id,x[16]=N,x[17]=u):u=x[17],x[18]!==v.oid?(h={id:v.oid},x[18]=v.oid,x[19]=h):h=x[19],x[20]!==u||x[21]!==h?(p={repository:u,type:"commit",id:h},x[20]=u,x[21]=h,x[22]=p):p=x[22];let k=p;return x[23]!==C||x[24]!==k||x[25]!==_||x[26]!==y||x[27]!==j||x[28]!==S?(f={addComment:C,commentBoxSubject:k,editComment:y,deleteComment:_,hideComment:j,unhideComment:S},x[23]=C,x[24]=k,x[25]=_,x[26]=y,x[27]=j,x[28]=S,x[29]=f):f=x[29],f}},34445(e,t,n){n.d(t,{D:()=>i});var o=n(50964);function i(){return(0,o.X)()}},96495(e,t,n){n.d(t,{I:()=>c,p:()=>m});var o=n(16522),i=n(23666),r=n(26316),a=n(78597),s=n(99766),l=n(18292);function c(e){let t,n=(0,o.c)(7),{repo:r,commit:l,viewerCanReply:c,repoOwnerGlobalRelayId:m,getInlineCommentInfoByPathAndPosition:u}=e,{addComments:h}=(0,s.B)();return n[0]!==h||n[1]!==l||n[2]!==u||n[3]!==r||n[4]!==m||n[5]!==c?(t=(e,t)=>new Promise(async(n,o)=>{let[s,p]=e.split("::");if(!s||!p)return void o(Error("Invalid threadId"));if(!t){let t=u(s,Number(p));n(t?d(t,l,r,c,e,m):void 0);return}let f=await (0,a.lS)(`${(0,i.MLt)({owner:r.ownerLogin,repo:r.name,commitOid:l.oid,path:s,position:p})}${t?"&isRefetch=true":""}`);if(f.ok){let t=await f.json();h(t.comments,s,p),n(t.comments?d(t.comments,l,r,c,e,m):void 0)}else o(Error("Failed to fetch thread"))}),n[0]=h,n[1]=l,n[2]=u,n[3]=r,n[4]=m,n[5]=c,n[6]=t):t=n[6],t}function d(e,t,n,o,i,r){return{commentsData:{comments:e.map(e=>m(e,t,n,r))},id:i,viewerCanReply:o}}function m(e,t,n,o){return{publishedAt:void 0,state:"",viewerRelationship:"",id:e.relayId,databaseId:e.id,body:e.body,bodyHTML:e.htmlBody,createdAt:e.createdAt,url:`${r.cg?.location.origin}${(0,i.$Qz)({owner:n.ownerLogin,repo:n.name,commitish:t.oid})}#${e.urlFragment}`,currentDiffResourcePath:`#${e.urlFragment}`,authorAssociation:e.authorAssociation?.toUpperCase(),author:{id:e.author.id,login:e.author.login,avatarUrl:e.author.avatarUrl,url:""},isHidden:e.isHidden,lastUserContentEdit:e.lastUserContentEdit,minimizedReason:e.minimizedReason,subjectType:"commit",viewerCanMinimize:e.viewerCanMinimize,viewerCanSeeMinimizeButton:e.viewerCanMinimize,viewerCanSeeUnminimizeButton:e.viewerCanMinimize,viewerCanDelete:e.viewerCanDelete,viewerCanUpdate:e.viewerCanUpdate,viewerCanReact:e.viewerCanReact,viewerCanReport:e.viewerCanReport,viewerCanReportToMaintainer:e.viewerCanReportToMaintainer,viewerCanBlockFromOrg:e.viewerCanBlockFromOrg,viewerCanUnblockFromOrg:e.viewerCanUnblockFromOrg,viewerCanUnminimize:e.viewerCanUnminimize??!1,viewerDidAuthor:e.viewerDidAuthor,reactionGroups:e.reactionGroups,reference:{number:void 0,text:(0,l.F)(t.oid),author:{login:t.authors.length>0?t.authors[0]?.login??"":""}},repository:{id:n.id.toString(),isPrivate:n.private,name:n.name,owner:{id:o,login:n.ownerLogin,url:""}}}}},83175(e,t,n){n.d(t,{f:()=>Z});var o=n(74848),i=n(16522),r=n(39423),a=n(26316),s=n(88015),l=n(53716),c=n(96540),d=n(64774),m=n(91710),u=n(49481),h=n(51068),p=n(79737),f=n(85136),x=n(45676),g=n(55598),v=n(70776),w=n(16497),b=n(19519),C=n(51581),y=n(11246),_=n(80855),j=n(73286),S=n(23666),N=n(77236),k=n(38621),E=n(21373),L=n(26108),I=n(4978),T=n(55717),R=n(18292),M=n(66588);let A=c.memo(B);function B(e){let t,n,r,a,s,l,c=(0,i.c)(18),{repo:d,oid:m}=e;c[0]!==m?(t=(0,R.F)(m),c[0]=m,c[1]=t):t=c[1];let u=`browse-repo-${t}`,{sendAnalyticsEvent:h}=(0,C.s)(),{loggingPrefix:p,loggingPayload:f}=(0,y.xe)(),x=(0,y.eX)();c[2]!==f||c[3]!==p||c[4]!==h||c[5]!==x?(n=()=>{x&&h(`${p}click`,"COMMITS_BROWSE_REPOSITORY_AT_THIS_POINT_CLICKED",f)},c[2]=f,c[3]=p,c[4]=h,c[5]=x,c[6]=n):n=c[6];let g=n;return c[7]!==m||c[8]!==d?(r=(0,S.IO9)({repo:d,action:"tree",commitish:m}),c[7]=m,c[8]=d,c[9]=r):r=c[9],c[10]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(k.CodeIcon,{}),c[10]=a):a=c[10],c[11]!==u||c[12]!==g||c[13]!==r?(s=(0,o.jsx)("a",{"aria-labelledby":u,href:r,className:"Button Button--iconOnly Button--invisible Button--small","data-testid":"commit-row-browse-repo",onClick:g,children:a}),c[11]=u,c[12]=g,c[13]=r,c[14]=s):s=c[14],c[15]!==u||c[16]!==s?(l=(0,o.jsx)(I.A,{"aria-label":"Browse repository at this point",id:u,direction:"sw",children:s}),c[15]=u,c[16]=s,c[17]=l):l=c[17],l}A.displayName="BrowseRepositoryAtThisPoint",B.displayName="WrappedBrowseRepositoryAtThisPoint";let z=c.memo(O);function O(e){let t,n,r,a,s,l=(0,i.c)(14),{repo:c,oid:d,path:m}=e;if(!m)return null;l[0]!==d?(t=(0,R.F)(d),l[0]=d,l[1]=t):t=l[1];let u=`view-code-${t}`;return l[2]!==d||l[3]!==m||l[4]!==c.name||l[5]!==c.ownerLogin?(n=(0,S.nD_)({owner:c.ownerLogin,repo:c.name,commitish:d,filePath:m}),l[2]=d,l[3]=m,l[4]=c.name,l[5]=c.ownerLogin,l[6]=n):n=l[6],l[7]===Symbol.for("react.memo_cache_sentinel")?(r=(0,o.jsx)(k.FileCodeIcon,{}),l[7]=r):r=l[7],l[8]!==n||l[9]!==u?(a=(0,o.jsx)("a",{"aria-labelledby":u,href:n,className:"Button Button--iconOnly Button--invisible Button--small","data-testid":"commit-row-view-code",children:r}),l[8]=n,l[9]=u,l[10]=a):a=l[10],l[11]!==a||l[12]!==u?(s=(0,o.jsx)(I.A,{"aria-label":"View code at this point",id:u,direction:"sw",children:a}),l[11]=a,l[12]=u,l[13]=s):s=l[13],s}function D(e){let t,n,r=(0,i.c)(5),{commitUrl:a,oid:s,softNavToCommit:l}=e;r[0]===Symbol.for("react.memo_cache_sentinel")?(t={variant:"invisible",size:"small",sx:{fontFamily:"var(--fontStack-monospace)",color:"fg.muted"}},r[0]=t):t=r[0];let c=t;return r[1]!==a||r[2]!==s||r[3]!==l?(n=(0,o.jsx)(I.A,{"aria-label":"View commit details",direction:"s",children:l?(0,o.jsx)(E.Q,{as:N.N,to:a,...c,children:(0,R.F)(s)}):(0,o.jsx)("a",{className:"Button--invisible Button--small Button text-mono",href:a,...c,children:(0,o.jsx)("span",{className:"Button-content",children:(0,o.jsx)("span",{className:"Button-label color-fg-muted",children:(0,R.F)(s)})})})}),r[1]=a,r[2]=s,r[3]=l,r[4]=n):n=r[4],n}function $(e){let t,n,r,a,s=(0,i.c)(13),{showDescription:l,setShowDescription:c,oid:d}=e;s[0]!==d?(t=(0,R.F)(d),s[0]=d,s[1]=t):t=s[1];let m=t,u=`show-description-${m}`,h=`${!l?"Show":"Hide"} description for ${m}`;return s[2]!==c||s[3]!==l?(n=e=>{e.preventDefault(),c(!l)},s[2]=c,s[3]=l,s[4]=n):n=s[4],s[5]!==l||s[6]!==u||s[7]!==n?(r=(0,o.jsx)(L.K,{icon:k.EllipsisIcon,className:"Button Button--iconOnly Button--invisible Button--small ml-1","data-testid":"commit-row-show-description-button","aria-labelledby":u,"aria-pressed":l,"aria-expanded":l,onClick:n}),s[5]=l,s[6]=u,s[7]=n,s[8]=r):r=s[8],s[9]!==u||s[10]!==r||s[11]!==h?(a=(0,o.jsx)(T.m,{id:u,text:h,"aria-label":h,children:r}),s[9]=u,s[10]=r,s[11]=h,s[12]=a):a=s[12],a}function F(e){let t,n,r,a,s,l,c=(0,i.c)(17),{count:d,repo:m,oid:u}=e;if(!d)return null;c[0]!==u?(t=(0,R.F)(u),c[0]=u,c[1]=t):t=c[1];let h=`comment-count-${t}`,p=`View ${d} commit comment${d>1?"s":""}`;c[2]!==u||c[3]!==m.name||c[4]!==m.ownerLogin?(n=(0,S.$Qz)({owner:m.ownerLogin,repo:m.name,commitish:u}),c[2]=u,c[3]=m.name,c[4]=m.ownerLogin,c[5]=n):n=c[5];let f=`${n}#${M.N}`;return c[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,o.jsx)(k.CommentIcon,{}),c[6]=r):r=c[6],c[7]!==d?(a=(0,o.jsxs)("span",{className:"Button-content color-fg-muted",children:[r,(0,o.jsx)("span",{className:"Button-label",children:d})]}),c[7]=d,c[8]=a):a=c[8],c[9]!==h||c[10]!==f||c[11]!==a?(s=(0,o.jsx)("a",{"aria-labelledby":h,href:f,className:"Button Button--invisible Button--small","data-testid":"commit-row-comments",children:a}),c[9]=h,c[10]=f,c[11]=a,c[12]=s):s=c[12],c[13]!==h||c[14]!==p||c[15]!==s?(l=(0,o.jsx)(I.A,{"aria-label":p,id:h,direction:"sw",children:s}),c[13]=h,c[14]=p,c[15]=s,c[16]=l):l=c[16],l}z.displayName="ViewCodeAtThisPoint",O.displayName="WrappedViewCodeAtThisPoint",D.displayName="ViewCommitDetails",$.displayName="ToggleCommitDescription",F.displayName="CommitCommentCount";var U=n(12315),P=n(16899),H=n(34445),V=n(37929);function X(e){let t,n,r,a,s=(0,i.c)(13),{deferredData:l}=e,{helpUrl:c}=(0,H.D)(),d=(0,_.xs)();return s[0]!==d?(t=d&&(0,o.jsx)(P.O,{variant:"rounded",className:"d-none d-sm-flex",width:"62px"}),s[0]=d,s[1]=t):t=s[1],s[2]!==l||s[3]!==d?(n=!d&&void 0===l&&(0,o.jsx)(P.O,{variant:"rounded",className:"d-none d-sm-flex",width:"62px"}),s[2]=l,s[3]=d,s[4]=n):n=s[4],s[5]!==l||s[6]!==c||s[7]!==d?(r=!d&&l&&(0,o.jsx)(U.h,{commitOid:l.oid,hasSignature:!0,verificationStatus:l.verifiedStatus,signature:l.signatureInformation?{helpUrl:c,...l.signatureInformation}:void 0}),s[5]=l,s[6]=c,s[7]=d,s[8]=r):r=s[8],s[9]!==t||s[10]!==n||s[11]!==r?(a=(0,o.jsxs)(o.Fragment,{children:[t,n,r]}),s[9]=t,s[10]=n,s[11]=r,s[12]=a):a=s[12],a}function W({deferredData:e,oid:t,repository:n}){let i=(0,_.xs)(),r="";try{r=e?.statusCheckStatus?.short_text?.split("checks")[0]?.trim()||""}catch{}return(0,o.jsxs)(o.Fragment,{children:[i&&(0,o.jsx)(P.O,{variant:"rounded",className:"d-none d-sm-flex ml-2",width:"20px"}),!i&&void 0===e&&(0,o.jsx)(P.O,{variant:"rounded",className:"d-none d-sm-flex ml-2",width:"20px"}),!i&&e?.statusCheckStatus&&(0,o.jsx)("div",{className:"d-none d-sm-flex ml-1",children:"\xb7"}),(0,o.jsx)("div",{className:"d-none d-sm-flex",children:(0,o.jsx)(V.d,{oid:t,status:e?.statusCheckStatus?.state,descriptionString:r,repo:n})})]})}X.displayName="SignedCommitBadge",W.displayName="CommitChecksStatusBadge";var Q=n(50531);let G="CommitRow-module__ListItemTitle_0__cUhJS",K=(0,c.lazy)(()=>n.e("60704").then(n.bind(n,86979)).then(e=>({default:e.CommitActionBar})));function q(e){let t,n,r,a,s,l,d,m,S,N,k,E,L,I,T,R,M,B,O,U,P,H,V=(0,i.c)(81),{commit:q,repo:Y,path:J,softNavToCommit:Z}=e,[ee,et]=(0,c.useState)(!1),en=(0,c.useRef)(null),[eo,ei]=(0,h.ym)(q.oid,Y),[er,ea]=(0,c.useState)(!1),es=(0,_.NO)(q.oid),{isServer:el}=(0,b.V)(),{sendAnalyticsEvent:ec}=(0,C.s)(),{loggingPrefix:ed,loggingPayload:em}=(0,y.xe)(),eu=(0,y.eX)();V[0]!==em||V[1]!==ed||V[2]!==ec||V[3]!==eu?(t=()=>{eu&&ec(`${ed}click`,"COMMITS_TITLE_CLICKED",em)},V[0]=em,V[1]=ed,V[2]=ec,V[3]=eu,V[4]=t):t=V[4];let eh=t;V[5]!==ee?(n=()=>{ee&&en.current&&en.current.textContent&&(0,u.i)(en.current.textContent)},r=[en,ee],V[5]=ee,V[6]=n,V[7]=r):(n=V[6],r=V[7]),(0,c.useEffect)(n,r),V[8]!==q.bodyMessageHtml||V[9]!==q.oid||V[10]!==q.shortMessage||V[11]!==q.shortMessageMarkdownLink||V[12]!==q.url||V[13]!==el||V[14]!==eh||V[15]!==ee?(a=q.shortMessageMarkdownLink&&!el?(0,o.jsx)(v.kx,{html:q.shortMessageMarkdownLink,onClick:eh,containerClassName:G,headingClassName:G,children:q.bodyMessageHtml&&(0,o.jsx)($,{showDescription:ee,setShowDescription:et,oid:q.oid})}):(0,o.jsx)(v.ao,{value:q.shortMessage,href:q.url,onClick:eh,containerClassName:G,headingClassName:G,children:q.bodyMessageHtml&&(0,o.jsx)($,{showDescription:ee,setShowDescription:et,oid:q.oid})}),V[8]=q.bodyMessageHtml,V[9]=q.oid,V[10]=q.shortMessage,V[11]=q.shortMessageMarkdownLink,V[12]=q.url,V[13]=el,V[14]=eh,V[15]=ee,V[16]=a):a=V[16];let ep=es?.commentCount??0;return V[17]!==q.oid||V[18]!==Y||V[19]!==ep?(s=(0,o.jsx)(g.V,{children:(0,o.jsx)(F,{oid:q.oid,repo:Y,count:ep})}),V[17]=q.oid,V[18]=Y,V[19]=ep,V[20]=s):s=V[20],V[21]!==es?(l=(0,o.jsx)(g.V,{className:"CommitRow-module__ListItemMetadata_0__W4Kqf",children:(0,o.jsx)(X,{deferredData:es})}),V[21]=es,V[22]=l):l=V[22],V[23]!==q.oid||V[24]!==q.url||V[25]!==Z?(d=(0,o.jsx)(D,{oid:q.oid,commitUrl:q.url,softNavToCommit:Z}),V[23]=q.oid,V[24]=q.url,V[25]=Z,V[26]=d):d=V[26],V[27]!==q.oid?(m=(0,o.jsx)(Q.w,{sha:q.oid}),V[27]=q.oid,V[28]=m):m=V[28],V[29]!==d||V[30]!==m?(S=(0,o.jsxs)("div",{className:"d-flex",children:[d,m]}),V[29]=d,V[30]=m,V[31]=S):S=V[31],V[32]!==q.oid||V[33]!==J||V[34]!==Y?(N=(0,o.jsx)(z,{repo:Y,oid:q.oid,path:J}),V[32]=q.oid,V[33]=J,V[34]=Y,V[35]=N):N=V[35],V[36]!==q.oid||V[37]!==Y?(k=(0,o.jsx)(A,{repo:Y,oid:q.oid}),V[36]=q.oid,V[37]=Y,V[38]=k):k=V[38],V[39]!==S||V[40]!==N||V[41]!==k?(E=(0,o.jsxs)(g.V,{className:"d-none d-sm-flex px-0 gap-2",variant:"primary",children:[S,N,k]}),V[39]=S,V[40]=N,V[41]=k,V[42]=E):E=V[42],V[43]!==E||V[44]!==s||V[45]!==l?(L=(0,o.jsxs)(o.Fragment,{children:[s,l,E]}),V[43]=E,V[44]=s,V[45]=l,V[46]=L):L=V[46],V[47]!==q||V[48]!==es||V[49]!==ei||V[50]!==J||V[51]!==Y?(I=(0,o.jsx)(c.Suspense,{children:(0,o.jsx)(K,{commit:q,repo:Y,path:J,setDialogOpen:ea,fetchCheckDetails:ei,deferredData:es})}),V[47]=q,V[48]=es,V[49]=ei,V[50]=J,V[51]=Y,V[52]=I):I=V[52],V[53]===Symbol.for("react.memo_cache_sentinel")?(T=(0,o.jsx)("div",{className:"px-1"}),V[53]=T):T=V[53],V[54]!==q.bodyMessageHtml||V[55]!==ee?(R=ee&&q.bodyMessageHtml&&(0,o.jsx)(f.U,{children:(0,o.jsx)(w.JR,{ref:en,html:q.bodyMessageHtml,className:"ws-pre-wrap extended-commit-description-container pb-2 text-mono wb-break-word"})}),V[54]=q.bodyMessageHtml,V[55]=ee,V[56]=R):R=V[56],V[57]!==q.oid||V[58]!==es||V[59]!==Y?(M=(0,o.jsx)(W,{repository:Y,deferredData:es,oid:q.oid}),V[57]=q.oid,V[58]=es,V[59]=Y,V[60]=M):M=V[60],V[61]!==q||V[62]!==Y||V[63]!==M?(B=(0,o.jsx)(f.U,{children:(0,o.jsx)(j.j,{commit:q,repo:Y,children:M})}),V[61]=q,V[62]=Y,V[63]=M,V[64]=B):B=V[64],V[65]!==R||V[66]!==B?(O=(0,o.jsxs)(x.Q,{children:[R,B]}),V[65]=R,V[66]=B,V[67]=O):O=V[67],V[68]!==q.url||V[69]!==L||V[70]!==I||V[71]!==O||V[72]!==a?(U=(0,o.jsxs)(p.c,{"data-testid":"commit-row-item","data-commit-link":q.url,title:a,metadata:L,secondaryActions:I,className:"CommitRow-module__ListItem_0__u0LMo",children:[T,O]}),V[68]=q.url,V[69]=L,V[70]=I,V[71]=O,V[72]=a,V[73]=U):U=V[73],V[74]!==es?.statusCheckStatus||V[75]!==eo||V[76]!==er?(P=es?.statusCheckStatus&&er&&(0,o.jsx)(h.xC,{combinedStatus:eo,isOpen:er,onDismiss:()=>{ea(!1)}}),V[74]=es?.statusCheckStatus,V[75]=eo,V[76]=er,V[77]=P):P=V[77],V[78]!==U||V[79]!==P?(H=(0,o.jsxs)(o.Fragment,{children:[U,P]}),V[78]=U,V[79]=P,V[80]=H):H=V[80],H}K.displayName="CommitActionBar",q.displayName="CommitRow";var Y=n(27020);function J(e){let t,n,r,a,s=(0,i.c)(20),{commits:l,title:u,shouldClipTimeline:h,repo:p,currentBlobPath:f,softNavToCommit:x}=e,g=void 0===f?"":f,v=(0,c.useId)(),w=h?"top":"none",b=`Commits on ${u}`;if(s[0]!==v||s[1]!==b?(t=(0,o.jsx)(Y.s.Heading,{as:"h3",id:v,title:b,"data-testid":"commit-group-title"}),s[0]=v,s[1]=b,s[2]=t):t=s[2],s[3]!==l||s[4]!==g||s[5]!==p||s[6]!==x){let e;s[8]!==g||s[9]!==p||s[10]!==x?(e=e=>(0,o.jsx)(q,{commit:e,repo:p,path:g,softNavToCommit:x},e.oid),s[8]=g,s[9]=p,s[10]=x,s[11]=e):e=s[11],n=l.map(e),s[3]=l,s[4]=g,s[5]=p,s[6]=x,s[7]=n}else n=s[7];return s[12]!==v||s[13]!==n||s[14]!==u?(r=(0,o.jsx)(m.Z,{className:"CommitGroup-module__panel__Pfvdu",children:(0,o.jsx)(d.u,{title:u,titleHeaderTag:"h3",ariaLabelledBy:v,children:n},u)}),s[12]=v,s[13]=n,s[14]=u,s[15]=r):r=s[15],s[16]!==w||s[17]!==t||s[18]!==r?(a=(0,o.jsxs)(Y.s,{clipTimeline:w,children:[t,r]}),s[16]=w,s[17]=t,s[18]=r,s[19]=a):a=s[19],a}function Z(e){let t,n,d,m,u,h,p,f,x,g=(0,i.c)(31),{leadingContent:v,commitGroups:w,trailingContent:b,deferredCommitData:C,repository:j,currentBlobPath:S,loggingPayload:N,loggingPrefix:k,shouldClipTimeline:E,softNavToCommit:L}=e,I=void 0===C?_.Xx:C,T=void 0===E||E,R=void 0!==L&&L;g[0]!==N||g[1]!==k?(t={loggingPayload:N,loggingPrefix:k},g[0]=N,g[1]=k,g[2]=t):t=g[2];let M=t,A=(0,c.useRef)(0),B=(0,c.useRef)(null),z=(0,c.useRef)(null),O=(0,c.useRef)(!1);g[3]===Symbol.for("react.memo_cache_sentinel")?(n=[],g[3]=n):n=g[3];let D=(0,c.useRef)(n),$=(0,s.Zp)();if(g[4]!==$){d=o=>{"Enter"===o.key?e(o):"Tab"===o.key?t(o):n(o)};let e=e=>{if("Enter"===e.key){let t=a.XC?.activeElement?.hasAttribute("data-commit-link")?a.XC?.activeElement?.getAttribute("data-commit-link"):void 0;t&&(e.ctrlKey||e.metaKey?a.cg?.open(t,"_blank"):$(t))}},t=e=>{"Tab"===e.key&&(e.shiftKey?(a.XC?.activeElement?.hasAttribute("data-commit-link")&&!O.current&&B.current&&(B.current.focus(),z.current=B.current),O.current=!0):(B.current=z.current,z.current=a.XC?.activeElement??null,O.current=!1))},n=e=>{if(!["j","k","ArrowDown","ArrowUp"].includes(e.key)||!(0,r.zw)()&&("j"===e.key||"k"===e.key))return;let t=1;for(let e=0;e{let e=setTimeout(()=>{D.current=Array.from(document.querySelectorAll('[id*="-list-view-node-"]'))},0);return()=>clearTimeout(e)},g[6]=m):m=g[6],g[7]!==w?(u=[w],g[7]=w,g[8]=u):u=g[8],(0,c.useEffect)(m,u),g[9]!==w||g[10]!==S||g[11]!==j||g[12]!==T||g[13]!==R){let e;g[15]!==S||g[16]!==j||g[17]!==T||g[18]!==R?(e=(e,t)=>(0,o.jsx)(J,{title:e.title,commits:e.commits,shouldClipTimeline:T&&0===t,currentBlobPath:S,repo:j,softNavToCommit:R},e.title),g[15]=S,g[16]=j,g[17]=T,g[18]=R,g[19]=e):e=g[19],h=w.map(e),g[9]=w,g[10]=S,g[11]=j,g[12]=T,g[13]=R,g[14]=h}else h=g[14];return g[20]!==d||g[21]!==v||g[22]!==h||g[23]!==b?(p=(0,o.jsxs)(l.A,{clipSidebar:!0,onKeyDown:d,children:[v,h,b]}),g[20]=d,g[21]=v,g[22]=h,g[23]=b,g[24]=p):p=g[24],g[25]!==M||g[26]!==p?(f=(0,o.jsx)(y.zq,{loggingInfo:M,children:p}),g[25]=M,g[26]=p,g[27]=f):f=g[27],g[28]!==I||g[29]!==f?(x=(0,o.jsx)(_.M2,{deferredData:I,children:f}),g[28]=I,g[29]=f,g[30]=x):x=g[30],x}J.displayName="CommitGroup",Z.displayName="Commits"},22428(e,t,n){n.d(t,{M:()=>p});var o=n(74848),i=n(16522),r=n(49481),a=n(15582),s=n(52111),l=n(38621),c=n(38750),d=n(70944),m=n(96540),u=n(91710);let h={timeout:{description:"Try reloading the page, or if the problem persists, view the history locally using this command:",heading:"Commit history cannot be loaded",icon:(0,o.jsx)(l.AlertIcon,{size:"medium",className:"mb-2 fgColor-muted"}),showTextInput:!0},unavailable:{description:"There isn't any commit history to show here.",heading:"No commits history",icon:(0,o.jsx)(l.GitCommitIcon,{size:"medium"}),showTextInput:!1}};function p(e){let t,n,p,f,x,g,v,w=(0,i.c)(19),{timeoutMessage:b,unavailableMessage:C}=e,y=h[""!==b?"timeout":"unavailable"],_=C??y.description;return w[0]!==y.heading||w[1]!==_||w[2]!==b?(t=()=>{(0,r.i)(`${y.heading}. ${_} ${b}`.trim())},n=[y.heading,_,b],w[0]=y.heading,w[1]=_,w[2]=b,w[3]=t,w[4]=n):(t=w[3],n=w[4]),(0,m.useEffect)(t,n),w[5]!==y.icon?(p=(0,o.jsx)(d.E.Visual,{children:y.icon}),w[5]=y.icon,w[6]=p):p=w[6],w[7]!==y.heading?(f=(0,o.jsx)(d.E.Heading,{children:y.heading}),w[7]=y.heading,w[8]=f):f=w[8],w[9]!==_?(x=(0,o.jsx)(d.E.Description,{children:_}),w[9]=_,w[10]=x):x=w[10],w[11]!==y.showTextInput||w[12]!==b?(g=y.showTextInput&&(0,o.jsx)(c.A,{"aria-label":"View commit history locally command",className:"d-flex flex-justify-center mt-2",monospace:!0,onChange:s.l,readOnly:!0,size:"large",trailingAction:(0,o.jsx)(c.A.Action,{onClick:()=>(0,a.D)(b),icon:l.CopyIcon,"aria-label":"Copy to clipboard",className:"fgColor-muted"}),value:b}),w[11]=y.showTextInput,w[12]=b,w[13]=g):g=w[13],w[14]!==p||w[15]!==f||w[16]!==x||w[17]!==g?(v=(0,o.jsx)(u.Z,{children:(0,o.jsx)("div",{"data-hpc":!0,children:(0,o.jsxs)(d.E,{border:!1,spacious:!0,children:[p,f,x,g]})})}),w[14]=p,w[15]=f,w[16]=x,w[17]=g,w[18]=v):v=w[18],v}p.displayName="CommitsBlankState"},89684(e,t,n){n.d(t,{N:()=>o});function o(e,t){return"d28fac7f18aeacb00d8ad3460a0a5a901617c2d4"===e&&0xf122a7===t}},34349(e,t,n){n.d(t,{BX:()=>o,HS:()=>l,Oc:()=>s,Tv:()=>m,Xr:()=>r,f7:()=>c,fD:()=>d,qR:()=>a});class o extends Event{payload;constructor(e){super("open-copilot-chat",{bubbles:!1,cancelable:!0}),this.payload=e}}Event;class i extends Event{reference;openPanel;id;constructor(e,t=!1,n){super("add-copilot-chat-reference",{bubbles:!1,cancelable:!0}),this.reference=e,this.openPanel=t,this.id=n}}class r extends Event{context;constructor(e){super("symbol-changed",{bubbles:!1,cancelable:!0}),this.context=e}}function a(e){window.dispatchEvent(new o(e))}function s(e,t=!1,n){window.dispatchEvent(new i(e,t,n))}function l(e){return window.addEventListener("open-copilot-chat",e),()=>{window.removeEventListener("open-copilot-chat",e)}}function c(e){return window.addEventListener("add-copilot-chat-reference",e),()=>{window.removeEventListener("add-copilot-chat-reference",e)}}function d(e){return window.addEventListener("search-copilot-chat",e),()=>{window.removeEventListener("search-copilot-chat",e)}}function m(e){return window.addEventListener("symbol-changed",e),()=>{window.removeEventListener("symbol-changed",e)}}},36594(e,t,n){n.d(t,{Q:()=>s,i:()=>l});var o=n(74848),i=n(16522),r=n(96540);let a=r.createContext(void 0);function s(e){let t,n=(0,i.c)(3),{user:r,children:s}=e;return n[0]!==s||n[1]!==r?(t=(0,o.jsxs)(a,{value:r,children:[" ",s," "]}),n[0]=s,n[1]=r,n[2]=t):t=n[2],t}function l(){return r.use(a)}a.displayName="CurrentUserContext",s.displayName="CurrentUserProvider"},206(e,t,n){n.d(t,{r:()=>s});var o=n(74848),i=n(16522),r=n(26316),a=n(94709);function s(e){let t,n,s,l,c,d,m,u=(0,i.c)(15);u[0]!==e?({ref:n,src:s,size:c,sx:l,...t}=e,u[0]=e,u[1]=t,u[2]=n,u[3]=s,u[4]=l,u[5]=c):(t=u[1],n=u[2],s=u[3],l=u[4],c=u[5]);let h=void 0===c?20:c;if(u[6]!==h||u[7]!==s){let e=new URL(s,r.fV.origin);e.searchParams.has("size")||e.searchParams.has("s")||e.searchParams.set("size",String(2*Number(h))),d=e.toString(),u[6]=h,u[7]=s,u[8]=d}else d=u[8];let p=d;return u[9]!==p||u[10]!==t||u[11]!==n||u[12]!==h||u[13]!==l?(m=(0,o.jsx)(a.eu,{src:p,size:h,"data-testid":"github-avatar",sx:l,...t,ref:n}),u[9]=p,u[10]=t,u[11]=n,u[12]=h,u[13]=l,u[14]=m):m=u[14],m}s.displayName="GitHubAvatar"},80473(e,t,n){let o,i;n.d(t,{FC:()=>h,I0:()=>m,Nz:()=>g,ch:()=>v,dV:()=>u,h$:()=>f,hW:()=>s,jK:()=>p,o:()=>c,tD:()=>x,zT:()=>l});let r=null,a=!1;function s(e){o&&o!==e||(o=e,r&&(r(e),r=null))}function l(){o=void 0}function c(e){let t=e?.source??"both",n=e?.silent??!0,i=null;return(("element"===t||"both"===t)&&(i=document.querySelector("context-region")),i||"react"!==t&&"both"!==t||(i=o??null),i)?"isConnected"in i&&!i.isConnected||!i.pushCrumb||"function"!=typeof i.pushCrumb?null:i:(n||console.error("The global navigation's context region cannot be found! Make sure the element exists on the page before calling any of the global navigation breadcrumb methods."),null)}function d(e){let t=c();t?e(t):(r=e,function(){if(a)return;a=!0;let e=document.querySelector("context-region-controller");e&&e.addEventListener("context-region-connected",()=>{r&&(r(e.contextRegion),r=null)},{once:!0})}())}function m(e){d(t=>t.pushCrumb(e))}function u(){d(e=>e.popCrumb())}function h(e){d(t=>t.replaceCrumbs(e))}function p(e){d(t=>t.renameCurrentCrumb(e))}function f(e){d(t=>t.replaceCurrentCrumb(e))}function x(e){i=e}function g(){i=void 0}function v(e,t){let n=i??null;return!!n&&(n.updateTabCount(e,t),!0)}},40846(e,t,n){n.d(t,{x:()=>s});var o=n(74848),i=n(16522),r=n(381),a=n(19519);function s(e){let t,n,s,l,c,d,m=(0,i.c)(13);m[0]!==e?({ref:s,children:t,src:l,...n}=e,m[0]=e,m[1]=t,m[2]=n,m[3]=s,m[4]=l):(t=m[1],n=m[2],s=m[3],l=m[4]);let{isServer:u}=(0,a.V)();return m[5]!==u||m[6]!==l?(c=u?{}:{src:l,"data-nonce":(0,r.M1)()},m[5]=u,m[6]=l,m[7]=c):c=m[7],m[8]!==t||m[9]!==n||m[10]!==s||m[11]!==c?(d=(0,o.jsx)("include-fragment",{...n,ref:s,...c,children:t}),m[8]=t,m[9]=n,m[10]=s,m[11]=c,m[12]=d):d=m[12],d}s.displayName="IncludeFragment"},55598(e,t,n){n.d(t,{V:()=>s});var o=n(74848),i=n(16522),r=n(33542),a=n(34164);function s(e){let t,n,s,l,c,d=(0,i.c)(11);if(d[0]!==e){let{children:o,alignment:i,variant:c,...m}=e;t=o,d[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.G)("list-view-item-metadata-item"),d[5]=n):n=d[5],s=m,l=(0,a.$)("Metadata-module__metadata__ocr9n","primary"===c?"Metadata-module__primary__XCEO2":"Metadata-module__secondary__RkFvd","right"===i&&"Metadata-module__alignRight__vWoym",m.className),d[0]=e,d[1]=t,d[2]=n,d[3]=s,d[4]=l}else t=d[1],n=d[2],s=d[3],l=d[4];return d[6]!==t||d[7]!==n||d[8]!==s||d[9]!==l?(c=(0,o.jsx)("div",{...n,...s,className:l,children:t}),d[6]=t,d[7]=n,d[8]=s,d[9]=l,d[10]=c):c=d[10],c}s.displayName="ListItemMetadata"},52111(e,t,n){n.d(t,{l:()=>o});let o=()=>void 0},58418(e,t,n){let o;n.d(t,{A:()=>d});var i=n(35205),r=n(51189);let{getItem:a,setItem:s,removeItem:l}=(0,i.A)("localStorage"),c="REACT_PROFILING_DISABLED_UNTIL",d={enable:()=>{l(c),o=void 0},disable:()=>{s(c,String(Date.now()+864e5)),o=!1},isEnabled:()=>!("u"=t)&&(l(c),!0)}():.02>Math.random()),resetCache:()=>{o=void 0}}},5823(e,t,n){n.d(t,{e:()=>a});var o=n(74848),i=n(16522),r=n(16899);function a(){let e,t=(0,i.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:"d-flex flex-wrap gap-1",children:(0,o.jsx)(r.O,{variant:"elliptical",height:"28px",width:"28px"})}),t[0]=e):e=t[0],e}a.displayName="ReactionViewerLoading"},31854(e,t,n){n.d(t,{nn:()=>u,LB:()=>m,Gy:()=>s,lm:()=>d});var o=n(74848),i=n(16522),r=n(96540);class a{#e=null;#t=null;#n=new Set;#o;#i;constructor(e,t){this.#o=[...e].sort((e,t)=>t-e),this.#i=t}subscribe=e=>{if("u"{this.#n.delete(e),this.#a()}};getSnapshot=()=>{if("u"{let t=e[0];if(!t)return;let n=this.#l(t.contentRect.width);if(null===this.#e||n!==this.#e)for(let e of(this.#e=n,this.#n))e()};#l(e){for(let t of this.#o)if(e>=t)return t;return this.#i}#s(){if("u"typeof window&&"number"==typeof window.innerWidth&&(e=window.innerWidth);let t=this.#l(e);return this.#e=t,t}#r(){this.#t||(this.#t=new ResizeObserver(this.#c),this.#t.observe(document.documentElement),null===this.#e&&this.#s())}#a(){0===this.#n.size&&this.#t&&(this.#t.disconnect(),this.#t=null)}}let s={small:1,medium:544,large:768,xlarge:1012,xxlarge:1280,xxxlarge:1350,xxxxlarge:1440},l=new a([s.xxxxlarge,s.xxxlarge,s.xxlarge,s.xlarge,s.large,s.medium,s.small],s.small),c=r.createContext({screenSize:s.small});function d(){return r.use(c)}function m(e){let t,n,a,d=(0,i.c)(7),{children:m,initialValue:u}=e,h=void 0===u?s.small:u;d[0]!==h?(t=()=>h,d[0]=h,d[1]=t):t=d[1];let p=(0,r.useSyncExternalStore)(l.subscribe,l.getSnapshot,t);d[2]!==p?(n={screenSize:p},d[2]=p,d[3]=n):n=d[3];let f=n;return d[4]!==m||d[5]!==f?(a=(0,o.jsx)(c,{value:f,children:m}),d[4]=m,d[5]=f,d[6]=a):a=d[6],a}function u(e){return l.computeSize(e)}c.displayName="ScreenContext",m.displayName="ScreenSizeProvider"},5384(e,t,n){n.d(t,{Tt:()=>s,X7:()=>a,Ou:()=>l});let o="service_worker.postrequest";var i=n(66743);let r=null;async function a(e){if(null===r)try{let t=navigator.serviceWorker?.controller;if(!t||!function(e){let t=new URL(e,self.location.origin).pathname.split("/").filter(Boolean);if(4!==t.length||"issues"!==t[2])return!1;let n=t[3];return!!(void 0!==n&&/^\d+$/.test(n))&&!!t[0]&&!!t[1]}(e))return;let n=performance.now();r=await new Promise((r,a)=>{let s=new MessageChannel;function l(){s.port1.onmessage=null,s.port1.onmessageerror=null,s.port1.close(),s.port2.close()}let c=setTimeout(()=>{l();let e=performance.now()-n;(0,i.BI)(o,{duration_ms:e,timedOut:!0}),r(null)},500);s.port1.onmessage=e=>{clearTimeout(c),l();let t=performance.now()-n;if(e.data?.type==="CACHED_QUERIES_RESPONSE"&&e.data.data){let n=e.data.data.preloadedQueries;(0,i.BI)(o,{duration_ms:t,timedOut:!1}),r(n)}else(0,i.BI)(o,{duration_ms:t,timedOut:!1}),r(null)},s.port1.onmessageerror=()=>{clearTimeout(c),l(),a(Error("SW message channel error"))},t.postMessage({type:"GET_CACHED_QUERIES",url:e},[s.port2])})}catch{r=null}}function s(){return r}function l(){r=null}},16899(e,t,n){n.d(t,{O:()=>m});var o=n(74848),i=n(16522),r=n(34164);let a={skeleton:"LoadingSkeleton-module__skeleton__euqGn",wave:"LoadingSkeleton-module__wave__huYKA",pulse:"LoadingSkeleton-module__pulse__HTUJd",rounded:"LoadingSkeleton-module__rounded__J10DA",pill:"LoadingSkeleton-module__pill__Dlvex",elliptical:"LoadingSkeleton-module__elliptical__Dkk2i",rectangular:"LoadingSkeleton-module__rectangular__clQKW",text:"LoadingSkeleton-module__text__KroMb",widthXl:"LoadingSkeleton-module__widthXl__wYADo",widthLg:"LoadingSkeleton-module__widthLg__lEjod",widthMd:"LoadingSkeleton-module__widthMd__AgUlQ",widthSm:"LoadingSkeleton-module__widthSm__cd1Ri",heightXl:"LoadingSkeleton-module__heightXl__wphW7",heightLg:"LoadingSkeleton-module__heightLg__GNzGn",heightMd:"LoadingSkeleton-module__heightMd__NhBFk",heightSm:"LoadingSkeleton-module__heightSm__YvOXy"};var s=n(28141);let l=[60,40,54,77,57,41,75,45,76,55],c={xl:a.widthXl,lg:a.widthLg,md:a.widthMd,sm:a.widthSm},d={xl:a.heightXl,lg:a.heightLg,md:a.heightMd,sm:a.heightSm};function m(e){let t,n,m,u,h,p,f,x,g,v,w,b=(0,i.c)(26);b[0]!==e?({animationStyle:u,as:h,height:n,variant:p,width:f,className:t,...m}=e,b[0]=e,b[1]=t,b[2]=n,b[3]=m,b[4]=u,b[5]=h,b[6]=p,b[7]=f):(t=b[1],n=b[2],m=b[3],u=b[4],h=b[5],p=b[6],f=b[7]);let C=void 0===u?"wave":u,y=void 0===h?"div":h,_=void 0===p?"rectangular":p;b[8]===Symbol.for("react.memo_cache_sentinel")?(x={max:l.length},b[8]=x):x=b[8];let j=(0,s.o)(x),S=f&&f in c?c[f]:void 0,N=n&&n in c?d[n]:void 0;b[9]!==n||b[10]!==N||b[11]!==j||b[12]!==f||b[13]!==S?(g={},"random"===f?g.width=`${l[j]}%`:f&&!S&&(g.width=f),n&&!N&&(g.height=n),b[9]=n,b[10]=N,b[11]=j,b[12]=f,b[13]=S,b[14]=g):g=b[14];let k="pulse"===C&&a.pulse,E=a[_];return b[15]!==t||b[16]!==N||b[17]!==k||b[18]!==E||b[19]!==S?(v=(0,r.$)(a.skeleton,k,E,S,N,t),b[15]=t,b[16]=N,b[17]=k,b[18]=E,b[19]=S,b[20]=v):v=b[20],b[21]!==y||b[22]!==g||b[23]!==m||b[24]!==v?(w=(0,o.jsx)(y,{className:v,style:g,...m}),b[21]=y,b[22]=g,b[23]=m,b[24]=v,b[25]=w):w=b[25],w}m.displayName="LoadingSkeleton"},33542(e,t,n){n.d(t,{G:()=>o});let o=e=>({})},51581(e,t,n){n.d(t,{S:()=>l,s:()=>s});var o=n(16522),i=n(96540),r=n(66743),a=n(8470);function s(){let e,t,n=(0,o.c)(6),s=(0,i.use)(a.I);if(!s)throw Error("useAnalytics must be used within an AnalyticsContext");let{appName:l,category:c,metadata:d}=s;n[0]!==l||n[1]!==c||n[2]!==d?(e=(e,t,n)=>{let o={react:!0,app_name:l,category:c,...d};(0,r.BI)(e,{...o,...void 0===n?{}:n,target:t})},n[0]=l,n[1]=c,n[2]=d,n[3]=e):e=n[3];let m=e;return n[4]!==m?(t={sendAnalyticsEvent:m},n[4]=m,n[5]=t):t=n[5],t}function l(){let e,t,n=(0,o.c)(4),{sendAnalyticsEvent:i}=s();n[0]!==i?(e=e=>{i("analytics.click",void 0,void 0===e?{}:e)},n[0]=i,n[1]=e):e=n[1];let r=e;return n[2]!==r?(t={sendClickAnalyticsEvent:r},n[2]=r,n[3]=t):t=n[3],t}},29207(e,t,n){n.d(t,{H:()=>i});var o=n(65594);function i(e,t){let{csrf_tokens:n}=(0,o.B)();return n?.[e]?.[t]}},63397(e,t,n){n.d(t,{d:()=>a});var o=n(53449),i=n(52246),r=n(96540);let a=(e,t,{leading:n=!1,maxWait:a,trailing:s=!0,onChangeBehavior:l="flush"}={})=>{let c=(0,o.M)(e),d=(0,r.useMemo)(()=>{let e=void 0===a?{leading:n,trailing:s}:{leading:n,trailing:s,maxWait:a};return(0,i.A)((...e)=>c.current(...e),t,e)},[c,t,n,a,s]);return(0,r.useEffect)(()=>()=>{d?.[l]()},[d,l]),d}},60057(e,t,n){n.d(t,{Z:()=>r});var o=n(16522),i=n(96540);function r(e){let t,n,r=(0,o.c)(4),{focusRowRef:a,mouseRowRef:s}=e,[l,c]=(0,i.useState)(!1);return r[0]!==a||r[1]!==s?(t=()=>{let e=a.current,t=s.current;if(!e||!t)return;let n=()=>{let t=e.querySelector(".PRIVATE_TreeView-item-content-text");t?.scrollWidth!==t?.offsetWidth&&c(!0)},o=()=>n(),i=()=>c(!1),r=()=>n(),l=()=>c(!1);return e.addEventListener("focus",o),e.addEventListener("blur",i),t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",l),()=>{e.removeEventListener("focus",o),e.removeEventListener("blur",i),t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",l)}},n=[a,s],r[0]=a,r[1]=s,r[2]=t,r[3]=n):(t=r[2],n=r[3]),(0,i.useEffect)(t,n),l}}}]); //# sourceMappingURL=90741-a2b491f51237bce0-01cc0bd02a21ecee.js.map