F(!P)}),N[31]=X,N[32]=P,N[33]=x):x=N[33];let ee=”compact”===V;N[34]!==ee?(v=(0,b.$)(“tab-size”,”width-full”,rn,{[ri]:ee}),N[34]=ee,N[35]=v):v=N[35];let et=`${z}px`,en=`${2*parseFloat(z)}px`;return N[36]!==et||N[37]!==en?(y={“–line-number-cell-width”:et,”–line-number-cell-width-unified”:en},N[36]=et,N[37]=en,N[38]=y):y=N[38],N[39]!==D.path||N[40]!==B||N[41]!==J||N[42]!==R||N[43]!==z||N[44]!==L.avatarUrl||N[45]!==L.login||N[46]!==L.viewerCanApplySuggestion?(j=R?(0,i.jsx)(e1.wj,{lineWidth:z,children:M?(0,i.jsx)(rp,{diffLines:B,filePath:D.path,avatarURL:L.avatarUrl,userLogin:L.login,viewerCanApplySuggestion:L.viewerCanApplySuggestion}):(0,i.jsx)(a8,{…J})}):(0,i.jsx)(e1.Qe,{lineWidth:z,children:M?(0,i.jsx)(ru,{diffLines:B,filePath:D.path,avatarURL:L.avatarUrl,userLogin:L.login,viewerCanApplySuggestion:L.viewerCanApplySuggestion}):(0,i.jsx)(re,{…J})}),N[39]=D.path,N[40]=B,N[41]=J,N[42]=R,N[43]=z,N[44]=L.avatarUrl,N[45]=L.login,N[46]=L.viewerCanApplySuggestion,N[47]=j):j=N[47],N[48]!==S||N[49]!==T||N[50]!==Z||N[51]!==Q||N[52]!==v||N[53]!==y||N[54]!==j||N[55]!==U||N[56]!==K?(C=(0,i.jsx)(“table”,{“aria-label”:K,onKeyDown:Z,ref:A,className:v,”data-block-diff-cell-selection”:T,”data-diff-anchor”:S,”data-tab-size”:U,”data-paste-markdown-skip”:!0,onCopy:Q,role:”grid”,style:y,children:j}),N[48]=S,N[49]=T,N[50]=Z,N[51]=Q,N[52]=v,N[53]=y,N[54]=j,N[55]=U,N[56]=K,N[57]=C):C=N[57],N[58]!==x||N[59]!==C?(w=(0,i.jsxs)(i.Fragment,{children:[x,C]}),N[58]=x,N[59]=C,N[60]=w):w=N[60],w}:function({diffAnchor:e,viewerData:t,diffEntryData:n,copilotChatReference:a,hasExpandedAllRanges:r,isSplitView:s,subjectId:o}){let d=(0,l.useRef)(null),{clearSelectedLines:c}=Y(),[u,m]=(0,l.useState)(null),[f,h]=(0,l.useState)(!1),p=n.newTreeEntry?.lineCount??n.oldTreeEntry?.lineCount??0,x=(0,e4.G7)(“pr_simple_diffs”),v=(0,l.useMemo)(()=>{let e=n.diffLines[n.diffLines.length-1];return e?.blobLineNumber&&e.blobLineNumber{if(!d.current||!e.target)return;let t=e.target;!d.current.contains(t)&&(t.closest(“td.diff-line-number”)||t.closest(“[data-add-comment-button]”))&&C()&&(c(),ej())},[c,C]);(0,l.useEffect)(()=>(g.XC?.addEventListener(“mousedown”,w),()=>{g.XC?.removeEventListener(“mousedown”,w)}),[w]);let N=(0,l.useMemo)(()=>{let e,t=n.status,i=n.oldTreeEntry?.path,a=n.newTreeEntry?.path;if(i||a)return e=”RENAMED”===t?`${i} renamed to ${a}`:”DELETED”===t||”REMOVED”===t?i:a,`Diff for: ${e}`},[n]),S=(0,e2.c7)(v),L=(0,l.useCallback)(e=>{m(e)},[m]),D=(0,l.useCallback)(e=>{if(e.shiftKey&&e.metaKey&&”ArrowLeft”===e.key&&!r&&e.target?.getAttribute(“role”)===”gridcell”){let e=document.querySelector(`.js-expand-all-difflines-button[data-file-path=”${n.path}”]`);e?.dispatchEvent(new MouseEvent(“click”,{bubbles:!0,cancelable:!0}))}},[r,n.path]),I=(0,l.useCallback)(e=>{let t=document.getSelection();if(t){let n=[];for(let e=0;ev.some(e=>(0,tq.Y)(e.text)),[v]),R={diffHasHiddenUnicodeCharacters:_,diffLines:v,fileAnchor:e,fileLineCount:p,filePath:n.path,handleDiffSideCellSelectionBlocking:L,showHiddenUnicode:f,tableRef:d,copilotChatReference:a,subjectId:o,viewerData:t};return(0,i.jsxs)(i.Fragment,{children:[_&&(0,i.jsx)(ra.a,{isShown:f,toggleShowHiddenCharacters:()=>h(!f)}),(0,i.jsx)(“table”,{“aria-label”:N,onKeyDown:D,ref:d,className:(0,b.$)(“tab-size”,”width-full”,rn,{[ri]:”compact”===y}),”data-block-diff-cell-selection”:u,”data-diff-anchor”:e,”data-tab-size”:j,”data-paste-markdown-skip”:!0,onCopy:I,role:”grid”,style:{“–line-number-cell-width”:`${S}px`,”–line-number-cell-width-unified”:`${2*parseFloat(S)}px`},children:s?(0,i.jsx)(e1.wj,{lineWidth:S,children:x?(0,i.jsx)(rp,{diffLines:v,filePath:n.path,avatarURL:t.avatarUrl,userLogin:t.login,viewerCanApplySuggestion:t.viewerCanApplySuggestion}):(0,i.jsx)(a8,{…R})}):(0,i.jsx)(e1.Qe,{lineWidth:S,children:x?(0,i.jsx)(ru,{diffLines:v,filePath:n.path,avatarURL:t.avatarUrl,userLogin:t.login,viewerCanApplySuggestion:t.viewerCanApplySuggestion}):(0,i.jsx)(re,{…R})})})]})};function ry(e){return(0,tq.Y)(e.text)}try{rx.displayName||(rx.displayName=”PlainTextStatus”)}catch{}try{rb.displayName||(rb.displayName=”DiffLines”)}catch{}try{rv.displayName||(rv.displayName=”CodeDiffLines”)}catch{}var rj=n(8431),rC=n(46251),rw=n(78049);let rN=”SubmoduleDiff-module__filesActionList–sbPQt”,rS=”SubmoduleDiff-module__fileRowLinkItem–Z1ES5″,rL=”SubmoduleDiff-module__path–hB1wm”,rD=”SubmoduleDiff-module__fileRow–Y9n2E”,rI=”SubmoduleDiff-module__linesAdded–tJqtP”,r_=”SubmoduleDiff-module__linesDeleted–nr9cp”,rR=(0,a.GV)()?function(e){let t,n,a,s,l,o,d=(0,r.c)(28),{submodule:u}=e,{basePath:m,changedFiles:f,contentsUrl:h,newCommitOid:p,oldCommitOid:g,status:x,submoduleUrl:b}=u,v=u.summary.length>0&&u.contentsUrl&&”MODIFIED”===x;switch(x){case”ADDED”:{let e;d[0]!==h||d[1]!==p?(e=(0,i.jsx)(rE,{commitOid:p,contentsUrl:h,type:”added”}),d[0]=h,d[1]=p,d[2]=e):e=d[2],t=e;break}case”DELETED”:case”REMOVED”:{let e;d[3]!==h||d[4]!==g?(e=(0,i.jsx)(rE,{commitOid:g,contentsUrl:h,type:”deleted”}),d[3]=h,d[4]=g,d[5]=e):e=d[5],t=e;break}default:{let e;d[6]!==f||d[7]!==h||d[8]!==p||d[9]!==g?(e=(0,i.jsx)(rT,{newCommitOid:p,oldCommitOid:g,changedFiles:f,contentsUrl:h}),d[6]=f,d[7]=h,d[8]=p,d[9]=g,d[10]=e):e=d[10],t=e}}let y=t,j=`px-3 py-2 ${v?”border-bottom bgColor-muted”:””}`;return d[11]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(c.FileSubmoduleIcon,{className:”fgColor-muted mr-2″,size:16}),d[11]=n):n=d[11],d[12]!==m||d[13]!==b?(a=(0,i.jsx)(rk,{basePath:m,submoduleUrl:b}),d[12]=m,d[13]=b,d[14]=a):a=d[14],d[15]!==y||d[16]!==j||d[17]!==a?(s=(0,i.jsxs)(“div”,{className:j,children:[n,a,y]}),d[15]=y,d[16]=j,d[17]=a,d[18]=s):s=d[18],d[19]!==h||d[20]!==p||d[21]!==g||d[22]!==v||d[23]!==u.summary?(l=v&&(0,i.jsx)(eO.l,{className:rN,showDividers:!0,variant:”full”,children:u.summary.map(e=>(0,i.jsx)(rO,{compareUrl:`${h}/compare/${g}…${p}`,linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,path:e.path,pathDigest:e.pathDigest,status:e.status},e.pathDigest))}),d[19]=h,d[20]=p,d[21]=g,d[22]=v,d[23]=u.summary,d[24]=l):l=d[24],d[25]!==s||d[26]!==l?(o=(0,i.jsxs)(“div”,{children:[s,l]}),d[25]=s,d[26]=l,d[27]=o):o=d[27],o}:function({submodule:e}){let{basePath:t,changedFiles:n,contentsUrl:a,newCommitOid:r,oldCommitOid:s,status:o,submoduleUrl:d}=e,u=e.summary.length>0&&e.contentsUrl&&”MODIFIED”===o,m=(0,l.useMemo)(()=>{switch(o){case”ADDED”:return(0,i.jsx)(rE,{commitOid:r,contentsUrl:a,type:”added”});case”DELETED”:case”REMOVED”:return(0,i.jsx)(rE,{commitOid:s,contentsUrl:a,type:”deleted”});default:return(0,i.jsx)(rT,{newCommitOid:r,oldCommitOid:s,changedFiles:n,contentsUrl:a})}},[r,s,o,n,a]);return(0,i.jsxs)(“div”,{children:[(0,i.jsxs)(“div”,{className:`px-3 py-2 ${u?”border-bottom bgColor-muted”:””}`,children:[(0,i.jsx)(c.FileSubmoduleIcon,{className:”fgColor-muted mr-2″,size:16}),(0,i.jsx)(rk,{basePath:t,submoduleUrl:d}),m]}),u&&(0,i.jsx)(eO.l,{className:rN,showDividers:!0,variant:”full”,children:e.summary.map(e=>(0,i.jsx)(rO,{compareUrl:`${a}/compare/${s}…${r}`,linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,path:e.path,pathDigest:e.pathDigest,status:e.status},e.pathDigest))})]})},rk=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{basePath:s,submoduleUrl:l}=e;return a[0]!==s||a[1]!==l?(t=l?(0,i.jsx)(e3.A,{inline:!0,href:l,children:s}):s,a[0]=s,a[1]=l,a[2]=t):t=a[2],a[3]!==t?(n=(0,i.jsxs)(i.Fragment,{children:[“Submodule”,” “,t,” “]}),a[3]=t,a[4]=n):n=a[4],n}:function({basePath:e,submoduleUrl:t}){return(0,i.jsxs)(i.Fragment,{children:[“Submodule”,” “,t?(0,i.jsx)(e3.A,{inline:!0,href:t,children:e}):e,” “]})};function rA(e){return e.slice(0,7)}let rE=(0,a.GV)()?function(e){let t=(0,r.c)(13),{commitOid:n,contentsUrl:a,type:s}=e,l=void 0===n?””:n,o=”added”===s?”added at”:”deleted from”;if(a){let e,n,r,s=`${a}/tree/${l}`;return t[0]!==l?(e=rA(l),t[0]=l,t[1]=e):e=t[1],t[2]!==s||t[3]!==e?(n=(0,i.jsx)(e3.A,{inline:!0,href:s,children:e}),t[2]=s,t[3]=e,t[4]=n):n=t[4],t[5]!==n||t[6]!==o?(r=(0,i.jsxs)(i.Fragment,{children:[o,” “,n]}),t[5]=n,t[6]=o,t[7]=r):r=t[7],r}{let e,n;return t[8]!==l?(e=rA(l),t[8]=l,t[9]=e):e=t[9],t[10]!==e||t[11]!==o?(n=(0,i.jsxs)(i.Fragment,{children:[o,” “,e]}),t[10]=e,t[11]=o,t[12]=n):n=t[12],n}}:function({commitOid:e=””,contentsUrl:t,type:n}){let a=”added”===n?”added at”:”deleted from”;return t?(0,i.jsxs)(i.Fragment,{children:[a,” “,(0,i.jsx)(e3.A,{inline:!0,href:`${t}/tree/${e}`,children:rA(e)})]}):(0,i.jsxs)(i.Fragment,{children:[a,” “,rA(e)]})},rT=(0,a.GV)()?function(e){let t,n,a,s=(0,r.c)(12),{newCommitOid:l,oldCommitOid:o,changedFiles:d,contentsUrl:c}=e,u=void 0===l?””:l,m=void 0===o?””:o,f=void 0===d?0:d;s[0]!==f||s[1]!==c||s[2]!==u||s[3]!==m?(t=f>0&&c?`${f} ${1===f?”file”:”files”}`:`from ${rA(m)} to ${rA(u)}`,s[0]=f,s[1]=c,s[2]=u,s[3]=m,s[4]=t):t=s[4];let h=t;return s[5]!==h||s[6]!==c||s[7]!==u||s[8]!==m?(n=c?(0,i.jsx)(e3.A,{inline:!0,href:`${c}/compare/${m}…${u}`,children:h}):h,s[5]=h,s[6]=c,s[7]=u,s[8]=m,s[9]=n):n=s[9],s[10]!==n?(a=(0,i.jsxs)(i.Fragment,{children:[“updated”,” “,n]}),s[10]=n,s[11]=a):a=s[11],a}:function({newCommitOid:e=””,oldCommitOid:t=””,changedFiles:n=0,contentsUrl:a}){let r=n>0&&a?`${n} ${1===n?”file”:”files”}`:`from ${rA(t)} to ${rA(e)}`;return(0,i.jsxs)(i.Fragment,{children:[“updated”,” “,a?(0,i.jsx)(e3.A,{inline:!0,href:`${a}/compare/${t}…${e}`,children:r}):r]})},rO=(0,a.GV)()?function(e){let t,n,a,l,o,d,c=(0,r.c)(16),{compareUrl:u,linesAdded:m,linesDeleted:f,path:h,pathDigest:p,status:g}=e,x=`${u}#diff-${p}`;return c[0]!==g?(t=(0,i.jsx)(rw.E,{status:g}),c[0]=g,c[1]=t):t=c[1],c[2]!==h?(n=(0,i.jsx)(“span”,{className:rL,children:h}),c[2]=h,c[3]=n):n=c[3],c[4]!==m||c[5]!==f?(a=(m>0||f>0)&&(0,i.jsxs)(“div”,{className:”d-flex flex-shrink-0 gap-1 flex-nowrap”,children:[(0,i.jsx)(“div”,{className:rI,children:m>0&&(0,i.jsxs)(s.C,{isAddition:!0,children:[“+”,rP(m)]})}),(0,i.jsx)(“div”,{className:r_,children:f>0&&(0,i.jsxs)(s.C,{isAddition:!1,children:[“-“,rP(f)]})})]}),c[4]=m,c[5]=f,c[6]=a):a=c[6],c[7]!==n||c[8]!==a?(l=(0,i.jsxs)(“div”,{className:”d-flex gap-1 flex-justify-between width-full”,children:[n,a]}),c[7]=n,c[8]=a,c[9]=l):l=c[9],c[10]!==t||c[11]!==l?(o=(0,i.jsxs)(rC.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rD,children:[t,l]}),c[10]=t,c[11]=l,c[12]=o):o=c[12],c[13]!==x||c[14]!==o?(d=(0,i.jsx)(eO.l.LinkItem,{href:x,className:rS,children:o}),c[13]=x,c[14]=o,c[15]=d):d=c[15],d}:function({compareUrl:e,linesAdded:t,linesDeleted:n,path:a,pathDigest:r,status:l}){return(0,i.jsx)(eO.l.LinkItem,{href:`${e}#diff-${r}`,className:rS,children:(0,i.jsxs)(rC.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rD,children:[(0,i.jsx)(rw.E,{status:l}),(0,i.jsxs)(“div”,{className:”d-flex gap-1 flex-justify-between width-full”,children:[(0,i.jsx)(“span”,{className:rL,children:a}),(t>0||n>0)&&(0,i.jsxs)(“div”,{className:”d-flex flex-shrink-0 gap-1 flex-nowrap”,children:[(0,i.jsx)(“div”,{className:rI,children:t>0&&(0,i.jsxs)(s.C,{isAddition:!0,children:[“+”,rP(t)]})}),(0,i.jsx)(“div”,{className:r_,children:n>0&&(0,i.jsxs)(s.C,{isAddition:!1,children:[“-“,rP(n)]})})]})]})]})})};function rP(e){return e>999?`${(e/1e3).toFixed(1)}k`:e.toLocaleString()}try{rR.displayName||(rR.displayName=”SubmoduleDiff”)}catch{}try{rk.displayName||(rk.displayName=”SubmodulePath”)}catch{}try{rE.displayName||(rE.displayName=”SubmoduleCommitChange”)}catch{}try{rT.displayName||(rT.displayName=”SubmoduleModified”)}catch{}try{rO.displayName||(rO.displayName=”SubmoduleFileRow”)}catch{}let rF=({hasCopilotAccess:e,isBinary:t,isSubmodule:n,path:i,repository:a,status:r})=>!!e&&!t&&!n&&!!i&&”DELETED”!==r&&”REMOVED”!==r&&!!a.id&&!!a.name&&!!a.ownerLogin&&!0,r$=({newCommitOid:e,newTreeEntry:t,oldCommitOid:n,oldTreeEntry:i,path:a,pathDigest:r,repository:s})=>{let l=n&&e?(0,n1.IO9)({repo:s,commitish:n,action:”raw”,path:a}):””;return{baseFile:rM({path:i?.path,oid:n,repository:s}),headFile:rM({path:t?.path,oid:e,repository:s}),baseBranchRef:n,id:`#diff-${r}`,type:”file-diff”,url:l}},rM=({path:e,oid:t,repository:n})=>e&&t?{type:”file”,url:(0,n1.IO9)({repo:n,commitish:t,action:”raw”,path:e}),path:e,repoID:n.id,repoName:n.name,repoOwner:n.ownerLogin,ref:t,commitOID:t}:null,rB=(0,a.GV)()?function(e){let t,n=(0,r.c)(8),{isBinary:i,isSubmodule:a,path:s,status:l,repository:o,newCommitOid:d,newTreeEntry:c,oldCommitOid:u,oldTreeEntry:m,pathDigest:f,hasCopilotAccess:h}=e;e:{let e;if(!rF({isBinary:i,isSubmodule:a,path:s,status:l,repository:o,hasCopilotAccess:h})){t=void 0;break e}n[0]!==d||n[1]!==c||n[2]!==u||n[3]!==m||n[4]!==s||n[5]!==f||n[6]!==o?(e=r$({newCommitOid:d,newTreeEntry:c,oldCommitOid:u,oldTreeEntry:m,path:s,pathDigest:f,repository:o}),n[0]=d,n[1]=c,n[2]=u,n[3]=m,n[4]=s,n[5]=f,n[6]=o,n[7]=e):e=n[7],t=e}return t}:function({isBinary:e,isSubmodule:t,path:n,status:i,repository:a,newCommitOid:r,newTreeEntry:s,oldCommitOid:o,oldTreeEntry:d,pathDigest:c,hasCopilotAccess:u}){return(0,l.useMemo)(()=>{if(rF({isBinary:e,isSubmodule:t,path:n,status:i,repository:a,hasCopilotAccess:u}))return r$({newCommitOid:r,newTreeEntry:s,oldCommitOid:o,oldTreeEntry:d,path:n,pathDigest:c,repository:a})},[r,s,o,d,c,a,u,e,t,n,i])},rV=”FileReviewThread-module__ReviewThreadContainer–InwxI”,rU=”FileReviewThread-module__ReviewThreadHeading–oFg3s”,rH=”FileReviewThread-module__ReviewThreadInnerContainer–jYE3S”,rG=”FileReviewThread-module__SpinnerWrapper–zQOoj”,rq=(0,a.GV)()?function(e){let t,n,a,s,d,u,f,h,p,g,x,v,y,j,C,w,N,S,L,D,I,_,R,k,A,E,T=(0,r.c)(69);if(T[0]!==e){let{fileAnchor:i,filePath:r,thread:l,isFirstThread:o,ghostUser:c,manuallyUpdateCommentsWithThisThreadId:u,…m}=e;t=r,d=l,a=o,n=c,s=m,T[0]=e,T[1]=t,T[2]=n,T[3]=a,T[4]=s,T[5]=d}else t=T[1],n=T[2],a=T[3],s=T[4],d=T[5];let O=(0,l.useRef)(null);T[6]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,nO.A)(“localStorage”),T[6]=u):u=T[6];let P=u,F=d?.isResolved,[$,M]=(0,l.useState)(“”),[B,V]=(0,l.useState)(F??!1);T[7]!==F||T[8]!==d.id?(f=()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${d.id}`);null!==e?V(JSON.parse(e)):F&&V(!0)},h=[F,d.id],T[7]=F,T[8]=d.id,T[9]=f,T[10]=h):(f=T[9],h=T[10]),(0,l.useEffect)(f,h),T[11]!==B||T[12]!==d.id?(p=()=>{window.requestAnimationFrame(()=>{P.setItem(`reviewThreadIsCollapsed_${d.id}`,JSON.stringify(!B))}),V(rz)},T[11]=B,T[12]=d.id,T[13]=p):p=T[13];let U=p,{sendAnalyticsEvent:H}=(0,tK.s)(),{mutate:G}=(0,nY.H)(t,o.zW);T[14]!==G||T[15]!==H||T[16]!==d?(g=()=>{d&&!d.isResolved&&(G({threadId:d.id},{onError:()=>M(“Failed to resolve thread”),onSuccess:()=>{V(!0),P.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),H(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},T[14]=G,T[15]=H,T[16]=d,T[17]=g):g=T[17];let q=g,{mutate:K}=(0,n0.i)(t,o.zW);T[18]!==H||T[19]!==d||T[20]!==K?(x=()=>{d&&(K({threadId:d.id},{onError:()=>M(“Failed to unresolve thread”),onSuccess:()=>{V(!1),P.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),H(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},T[18]=H,T[19]=d,T[20]=K,T[21]=x):x=T[21];let z=x;if(!d||!(d.commentsData?.comments&&d.commentsData.comments.length>0))return null;let W=d?.commentsData?.comments[0]?.reviewVariantType===nj.hH.Automated?d.commentsData?.comments[0]?.automatedComment:null,Z=W&&W.dismissable,Q=W&&W.source===nj.vk.LicenseCompliance,X=!!d.isResolved;T[22]===Symbol.for(“react.memo_cache_sentinel”)?(v=(0,n2.M3)(),T[22]=v):v=T[22];let J=v;T[23]!==d.commentsData?.comments?(y=J&&d.commentsData?.comments?.some(rK),T[23]=d.commentsData?.comments,T[24]=y):y=T[24];let Y=y,ee=d.commentsData?.comments[0]?.createdAt,et=d.commentsData?.comments[0]?.author?.login??”Unknown Author”,en=`${F?”Unresolve”:”Resolve”} comment`;if(ee){let e;T[25]!==ee?(e=(0,nE.C)(new Date(ee)),T[25]=ee,T[26]=e):e=T[26];let t=e;en=`${F?”Unresolve”:”Resolve”} ${et}’s comment, ${t}`}T[27]===Symbol.for(“react.memo_cache_sentinel”)?(j=(0,i.jsx)(nM,{}),T[27]=j):j=T[27],T[28]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,b.$)(“px-1″,rV),T[28]=C):C=T[28];let ei=B?”Expand comment”:”Collapse comment”,ea=B?c.ChevronRightIcon:c.ChevronDownIcon;return T[29]!==U||T[30]!==a||T[31]!==ei||T[32]!==ea?(w=(0,i.jsx)(m.K,{“aria-label”:ei,icon:ea,size:”small”,variant:”invisible”,onClick:U,”data-is-first-collapse-button”:a}),T[29]=U,T[30]=a,T[31]=ei,T[32]=ea,T[33]=w):w=T[33],T[34]===Symbol.for(“react.memo_cache_sentinel”)?(N=(0,i.jsx)(“h2″,{className:rU,children:”Comment on file”}),T[34]=N):N=T[34],T[35]!==d.positioning?.isOutdated?(S=d.positioning?.isOutdated&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Outdated”}),T[35]=d.positioning?.isOutdated,T[36]=S):S=T[36],T[37]!==X?(L=X&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Resolved”}),T[37]=X,T[38]=L):L=T[38],T[39]!==S||T[40]!==L?(D=(0,i.jsxs)(“div”,{className:rH,children:[S,L]}),T[39]=S,T[40]=L,T[41]=D):D=T[41],T[42]!==w||T[43]!==D?(I=(0,i.jsxs)(“div”,{className:C,children:[w,N,D]}),T[42]=w,T[43]=D,T[44]=I):I=T[44],T[45]===Symbol.for(“react.memo_cache_sentinel”)?(_=(0,i.jsxs)(“div”,{className:rG,children:[(0,i.jsx)(eQ.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),T[45]=_):_=T[45],T[46]!==$?(R=$&&(0,i.jsxs)(nF.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),$]}),T[46]=$,T[47]=R):R=T[47],T[48]!==W||T[49]!==Z||T[50]!==t||T[51]!==n||T[52]!==q||T[53]!==z||T[54]!==B||T[55]!==Y||T[56]!==F||T[57]!==X||T[58]!==Q||T[59]!==en||T[60]!==s||T[61]!==d?(k=!B&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nJ,{lineMarkersKey:o.zW,batchingEnabled:!0,filePath:t,gridCellId:`${t}-file-level-markers`,isInlineComment:!1,thread:d,shouldLimitHeight:!1,…s,ghostUser:n}),Y&&!Z&&!Q&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eI.Q,{“aria-label”:en,onClick:X?z:q,className:”mr-2″,children:F?”Unresolve comment”:”Resolve comment”}),X&&d.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:d.resolvedBy}),” marked this comment as resolved”]})]}),Z&&(0,i.jsx)(n7,{automatedComment:W,thread:d,filePath:t,lineMarkersKey:o.zW,setErrorMessage:M,setIsCollapsed:V,safeLocalStorage:P})]}),T[48]=W,T[49]=Z,T[50]=t,T[51]=n,T[52]=q,T[53]=z,T[54]=B,T[55]=Y,T[56]=F,T[57]=X,T[58]=Q,T[59]=en,T[60]=s,T[61]=d,T[62]=k):k=T[62],T[63]!==R||T[64]!==k?(A=(0,i.jsxs)(l.Suspense,{fallback:_,children:[R,k]}),T[63]=R,T[64]=k,T[65]=A):A=T[65],T[66]!==I||T[67]!==A?(E=(0,i.jsx)(nT.t,{fallback:j,children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:O,children:[I,A]})}),T[66]=I,T[67]=A,T[68]=E):E=T[68],E}:function({fileAnchor:e,filePath:t,thread:n,isFirstThread:a,ghostUser:r,manuallyUpdateCommentsWithThisThreadId:s,…d}){let u=(0,l.useRef)(null),f=(0,nO.A)(“localStorage”),h=n?.isResolved,[p,g]=(0,l.useState)(“”),[x,v]=(0,l.useState)(h??!1);(0,l.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${n.id}`);null!==e?v(JSON.parse(e)):h&&v(!0)},[h,n.id]);let{sendAnalyticsEvent:y}=(0,tK.s)(),{mutate:j}=(0,nY.H)(t,o.zW),{mutate:C}=(0,n0.i)(t,o.zW);if(!n||!(n.commentsData?.comments&&n.commentsData.comments.length>0))return null;let w=n?.commentsData?.comments[0]?.reviewVariantType===nj.hH.Automated?n.commentsData?.comments[0]?.automatedComment:null,N=w&&w.dismissable,S=w&&w.source===nj.vk.LicenseCompliance,L=!!n.isResolved,D=(0,n2.M3)()&&n.commentsData?.comments?.some(e=>e.state?.toUpperCase()!==”PENDING”),I=n.commentsData?.comments[0]?.createdAt,_=n.commentsData?.comments[0]?.author?.login??”Unknown Author”,R=`${h?”Unresolve”:”Resolve”} comment`;if(I){let e=(0,nE.C)(new Date(I));R=`${h?”Unresolve”:”Resolve”} ${_}’s comment, ${e}`}return(0,i.jsx)(nT.t,{fallback:(0,i.jsx)(nM,{}),children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:u,children:[(0,i.jsxs)(“div”,{className:(0,b.$)(“px-1”,rV),children:[(0,i.jsx)(m.K,{“aria-label”:x?”Expand comment”:”Collapse comment”,icon:x?c.ChevronRightIcon:c.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:()=>{window.requestAnimationFrame(()=>{f.setItem(`reviewThreadIsCollapsed_${n.id}`,JSON.stringify(!x))}),v(e=>!e)},”data-is-first-collapse-button”:a}),(0,i.jsx)(“h2″,{className:rU,children:”Comment on file”}),(0,i.jsxs)(“div”,{className:rH,children:[n.positioning?.isOutdated&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Outdated”}),L&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Resolved”})]})]}),(0,i.jsxs)(l.Suspense,{fallback:(0,i.jsxs)(“div”,{className:rG,children:[(0,i.jsx)(eQ.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),children:[p&&(0,i.jsxs)(nF.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),p]}),!x&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nJ,{lineMarkersKey:o.zW,batchingEnabled:!0,filePath:t,gridCellId:`${t}-file-level-markers`,isInlineComment:!1,thread:n,shouldLimitHeight:!1,…d,ghostUser:r}),D&&!N&&!S&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eI.Q,{“aria-label”:R,onClick:L?()=>{n&&(C({threadId:n.id},{onError:()=>g(“Failed to unresolve thread”),onSuccess:()=>{v(!1),f.removeItem(`reviewThreadIsCollapsed_${n.id}`)}}),y(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))}:()=>{n&&!n.isResolved&&(j({threadId:n.id},{onError:()=>g(“Failed to resolve thread”),onSuccess:()=>{v(!0),f.removeItem(`reviewThreadIsCollapsed_${n.id}`)}}),y(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},className:”mr-2″,children:h?”Unresolve comment”:”Resolve comment”}),L&&n.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:n.resolvedBy}),” marked this comment as resolved”]})]}),N&&(0,i.jsx)(n7,{automatedComment:w,thread:n,filePath:t,lineMarkersKey:o.zW,setErrorMessage:g,setIsCollapsed:v,safeLocalStorage:f})]})]})]})})};function rK(e){return e.state?.toUpperCase()!==”PENDING”}function rz(e){return!e}try{rq.displayName||(rq.displayName=”FileReviewThread”)}catch{}let rW=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u=(0,r.c)(19);if(u[0]!==e){let{conversationListThreads:i,filePath:r,manuallyUpdateCommentsWithThisThreadId:l,ghostUser:o,…d}=e;t=i,n=r,a=o,s=d,u[0]=e,u[1]=t,u[2]=n,u[3]=a,u[4]=s}else t=u[1],n=u[2],a=u[3],s=u[4];let m=(0,l.useRef)(null);if(u[5]!==t?(o={containerRef:m,markers:t,disabled:!1,focusInStrategy:”closest”},u[5]=t,u[6]=o):o=u[6],nh(o),u[7]!==t||u[8]!==n||u[9]!==a||u[10]!==s){let e;u[12]!==t.length||u[13]!==n||u[14]!==a||u[15]!==s?(e=(e,r)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,r===t.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===r,”data-marker-id”:`${e.id}`,tabIndex:0,children:(0,i.jsx)(rq,{viewerData:s.viewerData,filePath:n,thread:e,ghostUser:a},e.id)},`review-thread-${e.id}`),u[12]=t.length,u[13]=n,u[14]=a,u[15]=s,u[16]=e):e=u[16],d=t.map(e),u[7]=t,u[8]=n,u[9]=a,u[10]=s,u[11]=d}else d=u[11];return u[17]!==d?(c=(0,i.jsx)(“div”,{className:”d-flex pt-1 px-1″,children:(0,i.jsx)(“div”,{className:nk,ref:m,children:d})}),u[17]=d,u[18]=c):c=u[18],c}:function({conversationListThreads:e,filePath:t,manuallyUpdateCommentsWithThisThreadId:n,ghostUser:a,…r}){let s=(0,l.useRef)(null);return nh({containerRef:s,markers:e,disabled:!1,focusInStrategy:”closest”}),(0,i.jsx)(“div”,{className:”d-flex pt-1 px-1″,children:(0,i.jsx)(“div”,{className:nk,ref:s,children:e.map((n,s)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,s===e.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===s,”data-marker-id”:`${n.id}`,tabIndex:0,children:(0,i.jsx)(rq,{viewerData:r.viewerData,filePath:t,thread:n,ghostUser:a},n.id)},`review-thread-${n.id}`))})})};try{rW.displayName||(rW.displayName=”FileMarkers”)}catch{}let rZ=new Set,rQ=”b:0-l:null-r:null”;function rX(e){switch(e){case”COMMIT”:return”Due to the large number of changes in the selected commit, only one file is being shown at a time.”;case”RANGE”:return”Due to the large number of changes in the selected commit range, only one file is being shown at a time.”;default:return”Due to the large number of changes in this pull request, only one file is being shown at a time.”}}let rJ=(0,l.forwardRef)((0,a.GV)()?function(e,t){let n,a,d,u,m,f,h,p,x,v,y,j,C,w,N,S,L,D,_,R=(0,r.c)(133),{addFileCommentButtonRef:k,collapsed:A,currentUser:E,diffLines:T,diffManuallyExpanded:O,diffSize:P,helpUrl:F,estimatedDiffHeight:M,fileComments:B,headerStickyOffset:V,hiddenFeatures:U,isAddingFileComment:H,isBinary:G,isSelected:q,isSubmodule:K,isTooBig:z,leftSideContent:W,linesAdded:Z,linesChanged:Q,linesDeleted:X,newTreeEntry:J,newCommitOid:Y,objectId:ee,oldTreeEntry:et,oldCommitOid:en,onToggleCollapse:ei,path:ea,pathDigest:er,pullRequestGlobalRelayId:es,repository:el,richDiffState:eo,rightSideContent:ed,setIsAddingFileComment:ec,hasExpandedAllRanges:eu,expandAllContextLines:em,canExpandOrCollapseLines:ef,status:eh,submodule:ep,truncatedReason:eg,addInjectedContextLines:ex,loadDiff:eb}=e,ev=void 0===M?0:M,ey=void 0===U?rZ:U,ej=void 0!==q&&q,eC=K&&!!ep,ew=!eC&&!eo?.showRichDiff,[eN,eS]=(0,l.useState)(O),eL=(0,I.j5)(),{comparisonView:eD}=(0,I.L3)();R[0]!==E.hasCopilotAccess||R[1]!==G||R[2]!==K||R[3]!==Y||R[4]!==J||R[5]!==en||R[6]!==et||R[7]!==ea||R[8]!==er||R[9]!==el||R[10]!==eh?(n={isBinary:G,isSubmodule:K,path:ea,status:eh,repository:el,newCommitOid:Y,newTreeEntry:J,oldCommitOid:en,oldTreeEntry:et,pathDigest:er,hasCopilotAccess:E.hasCopilotAccess},R[0]=E.hasCopilotAccess,R[1]=G,R[2]=K,R[3]=Y,R[4]=J,R[5]=en,R[6]=et,R[7]=ea,R[8]=er,R[9]=el,R[10]=eh,R[11]=n):n=R[11];let eI=rB(n);R[12]!==eb?(a=async()=>{await eb(),eS(!0)},R[12]=eb,R[13]=a):a=R[13];let e_=a,{baseOid:eR,headOid:ek}=(0,I.E4)(),eA=(0,eH.u)(“cotd_ui”);R[14]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,e4.G7)(“pr_simple_diffs”),R[14]=d):d=R[14];let eE=d,{effectiveRange:eT}=(0,I.L3)(),{mutate:eO}=t5();R[15]!==ec?(u=()=>{ec(!0)},R[15]=ec,R[16]=u):u=R[16];let eP=u;R[17]!==eP?(m={F0:{startNewComment:eP,diffLineKey:rQ}},R[17]=eP,R[18]=m):m=R[18];let eF=m;R[19]!==eA||R[20]!==eO||R[21]!==eT||R[22]!==ek||R[23]!==ea||R[24]!==ec||R[25]!==eR?(f=e=>{let{onCompleted:t,onError:n,submitBatch:i,text:a}=e;eA?eO(new ReviewCommentFactory({filePath:ea,effectiveDiffRange:eT,submitBatch:i,text:a}).fileRequestData(),{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment.databaseId),ec(!1)}}):eO({text:a,path:ea,submitBatch:i,subjectType:o.Wr.File,comparisonEndOid:ek,comparisonStartOid:eR},{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment.databaseId),ec(!1)}})},R[19]=eA,R[20]=eO,R[21]=eT,R[22]=ek,R[23]=ea,R[24]=ec,R[25]=eR,R[26]=f):f=R[26];let e$=f;R[27]!==k||R[28]!==ec?(h=()=>{ec(!1),k?.current?.focus()},R[27]=k,R[28]=ec,R[29]=h):h=R[29];let eM=h,eB=E?.avatarURL??””,eV=E?.splitPreference,eU=E?.login??””,eG=E?.lineSpacing,eK=E?.shouldDisplayComments,ez=E?.shouldDisplayEditOptions,eW=E?.tabSize??4,eZ=E?.canComment,eQ=E?.canApplySuggestion;R[30]!==eB||R[31]!==eV||R[32]!==eU||R[33]!==eG||R[34]!==eK||R[35]!==ez||R[36]!==eW||R[37]!==eZ||R[38]!==eQ?(p={avatarUrl:eB,diffViewPreference:eV,login:eU,lineSpacingPreference:eG,shouldDisplayComments:eK,shouldDisplayEditOptions:ez,tabSizePreference:eW,viewerCanComment:eZ,viewerCanApplySuggestion:eQ},R[30]=eB,R[31]=eV,R[32]=eU,R[33]=eG,R[34]=eK,R[35]=ez,R[36]=eW,R[37]=eZ,R[38]=eQ,R[39]=p):p=R[39];let eX=p,eJ=(0,l.useId)(),e0=`heading-${eJ}`;e:{if(“split”===new URLSearchParams(g.cg?.location.search).get(“diff”)){x=!0;break e}x=”split”===E.splitPreference}let e1=x,e2=J?.lineCount??et?.lineCount??0,e3=`diff-${er}`,e5=`diff-${er}`;R[40]===Symbol.for(“react.memo_cache_sentinel”)?(v=(0,b.$)(rj.A.diffTargetable,rj.A.diff),R[40]=v):v=R[40];let e6=`${er}_${T.length}`;R[41]!==ev?(y=eE?{contentVisibility:”auto”,containIntrinsicSize:`auto ${ev}px`}:void 0,R[41]=ev,R[42]=y):y=R[42];let e7=`${void 0===V?0:V}px`;R[43]!==e7?(j={“–header-sticky-offset”:e7},R[43]=e7,R[44]=j):j=R[44];let e8=`#diff-${er}`,e9=eo?.richDiff?.canToggleRichDiff,te=J?.mode,tt=J?.path,tn=et?.mode,ti=et?.path;R[45]!==A||R[46]!==ei?(C=e=>ei(e,!A),R[45]=A,R[46]=ei,R[47]=C):C=R[47];let ta=eo?.onToggleRichDiff,tr=eo?.showRichDiff;return R[48]!==ef||R[49]!==A||R[50]!==P||R[51]!==em||R[52]!==eu||R[53]!==e0||R[54]!==ey||R[55]!==G||R[56]!==eL||R[57]!==W||R[58]!==Z||R[59]!==Q||R[60]!==X||R[61]!==ea||R[62]!==ed||R[63]!==eh||R[64]!==e8||R[65]!==e9||R[66]!==te||R[67]!==tt||R[68]!==tn||R[69]!==ti||R[70]!==C||R[71]!==ta||R[72]!==tr?(w=(0,i.jsx)(s.B,{headingId:e0,hiddenFeatures:ey,areLinesExpanded:eu,canExpandOrCollapseLines:ef,fileLinkHref:e8,isCollapsed:A,isBinary:G,size:P,canToggleRichDiff:e9,linesAdded:Z,linesChanged:Q,linesDeleted:X,newMode:te,newPath:tt,oldMode:tn,oldPath:ti,patchStatus:eh,path:ea,onToggleExpandAllLines:em,onToggleFileCollapsed:C,onToggleDiffDisplay:ta,additionalLeftSideContent:W,rightSideContent:ed,showRichDiff:tr,isInSingleFileMode:eL}),R[48]=ef,R[49]=A,R[50]=P,R[51]=em,R[52]=eu,R[53]=e0,R[54]=ey,R[55]=G,R[56]=eL,R[57]=W,R[58]=Z,R[59]=Q,R[60]=X,R[61]=ea,R[62]=ed,R[63]=eh,R[64]=e8,R[65]=e9,R[66]=te,R[67]=tt,R[68]=tn,R[69]=ti,R[70]=C,R[71]=ta,R[72]=tr,R[73]=w):w=R[73],R[74]!==j||R[75]!==w?(N=(0,i.jsx)(“div”,{className:rj.A.diffHeaderWrapper,style:j,children:w}),R[74]=j,R[75]=w,R[76]=N):N=R[76],R[77]!==A||R[78]!==eI||R[79]!==T||R[80]!==B||R[81]!==e$||R[82]!==eu||R[83]!==F||R[84]!==H||R[85]!==G||R[86]!==e1||R[87]!==z||R[88]!==Q||R[89]!==eN||R[90]!==Y||R[91]!==J||R[92]!==ee||R[93]!==en||R[94]!==et||R[95]!==eM||R[96]!==e_||R[97]!==ea||R[98]!==er||R[99]!==es||R[100]!==eo||R[101]!==ew||R[102]!==eC||R[103]!==eh||R[104]!==ep||R[105]!==eg||R[106]!==eX?(S=A?null:(0,i.jsxs)(“div”,{className:”border position-relative rounded-bottom-2″,children:[(0,i.jsxs)(i.Fragment,{children:[B.length>0&&(0,i.jsx)(rW,{conversationListThreads:B,filePath:ea}),H&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,rj.A.diffAddFileThread),children:(0,i.jsx)(eq,{batchingEnabled:!0,filePath:ea,fileLevelComment:!0,isLeftSide:void 0,viewerData:eX,onAddComment:e$,onClose:eM})})]}),eC&&(0,i.jsx)(rR,{submodule:ep}),eo?.showRichDiff&&(0,i.jsx)(eY,{queryConfig:eo.queryConfig,initialData:eo.richDiff}),ew&&(0,i.jsx)(rb,{hasExpandedAllRanges:eu,copilotChatReference:eI,diffEntryData:{diffLines:T,isBinary:G,isTooBig:z,linesChanged:Q,newTreeEntry:J,newCommitOid:Y,objectId:ee,oldTreeEntry:et,oldCommitOid:en,path:ea,pathDigest:er,status:eh,truncatedReason:eg},baseHelpUrl:F,subjectId:es||””,viewerData:eX,isSplitView:e1,diffLinesManuallyUnhidden:eN,onHandleLoadDiff:e_})]}),R[77]=A,R[78]=eI,R[79]=T,R[80]=B,R[81]=e$,R[82]=eu,R[83]=F,R[84]=H,R[85]=G,R[86]=e1,R[87]=z,R[88]=Q,R[89]=eN,R[90]=Y,R[91]=J,R[92]=ee,R[93]=en,R[94]=et,R[95]=eM,R[96]=e_,R[97]=ea,R[98]=er,R[99]=es,R[100]=eo,R[101]=ew,R[102]=eC,R[103]=eh,R[104]=ep,R[105]=eg,R[106]=eX,R[107]=S):S=R[107],R[108]!==e0||R[109]!==ej||R[110]!==t||R[111]!==e5||R[112]!==e6||R[113]!==y||R[114]!==N||R[115]!==S?(L=(0,i.jsxs)(“div”,{role:”region”,ref:t,”aria-labelledby”:e0,id:e5,className:v,”data-targeted”:ej,style:y,children:[N,S]},e6),R[108]=e0,R[109]=ej,R[110]=t,R[111]=e5,R[112]=e6,R[113]=y,R[114]=N,R[115]=S,R[116]=L):L=R[116],R[117]!==eD||R[118]!==eL?(D=eL&&(0,i.jsxs)(“div”,{className:rj.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:rX(eD)})]}),R[117]=eD,R[118]=eL,R[119]=D):D=R[119],R[120]!==ex||R[121]!==T||R[122]!==e2||R[123]!==ey||R[124]!==e1||R[125]!==J||R[126]!==et||R[127]!==ea||R[128]!==eF||R[129]!==e3||R[130]!==L||R[131]!==D?(_=(0,i.jsxs)($,{addInjectedContextLines:ex,diffAnchor:e3,diffLines:T,fileLineCount:e2,path:ea,startNewConversationForLineOrFileMap:eF,hiddenFeatures:ey,isSplitView:e1,oldTreeEntry:et,newTreeEntry:J,children:[L,D]}),R[120]=ex,R[121]=T,R[122]=e2,R[123]=ey,R[124]=e1,R[125]=J,R[126]=et,R[127]=ea,R[128]=eF,R[129]=e3,R[130]=L,R[131]=D,R[132]=_):_=R[132],_}:function({addFileCommentButtonRef:e,collapsed:t,currentUser:n,diffLines:a,diffManuallyExpanded:r,diffSize:d,helpUrl:u,estimatedDiffHeight:m=0,fileComments:f,headerStickyOffset:h=0,hiddenFeatures:p=rZ,isAddingFileComment:x,isBinary:v,isSelected:y=!1,isSubmodule:j,isTooBig:C,leftSideContent:w,linesAdded:N,linesChanged:S,linesDeleted:L,newTreeEntry:D,newCommitOid:_,objectId:R,oldTreeEntry:k,oldCommitOid:A,onToggleCollapse:E,path:T,pathDigest:O,pullRequestGlobalRelayId:P,repository:F,richDiffState:M,rightSideContent:B,setIsAddingFileComment:V,hasExpandedAllRanges:U,expandAllContextLines:H,canExpandOrCollapseLines:G,status:q,submodule:K,truncatedReason:z,addInjectedContextLines:W,loadDiff:Z},Q){let X=j&&!!K,J=!X&&!M?.showRichDiff,[Y,ee]=(0,l.useState)(r),et=(0,I.j5)(),{comparisonView:en}=(0,I.L3)(),ei=rB({isBinary:v,isSubmodule:j,path:T,status:q,repository:F,newCommitOid:_,newTreeEntry:D,oldCommitOid:A,oldTreeEntry:k,pathDigest:O,hasCopilotAccess:n.hasCopilotAccess}),ea=async()=>{await Z(),ee(!0)},{baseOid:er,headOid:es}=(0,I.E4)(),el=(0,eH.u)(“cotd_ui”),eo=(0,e4.G7)(“pr_simple_diffs”),{effectiveRange:ed}=(0,I.L3)(),{mutate:ec}=t5(),eu=(0,l.useCallback)(()=>{V(!0)},[V]),em=(0,l.useMemo)(()=>({F0:{startNewComment:eu,diffLineKey:rQ}}),[eu]),ef=(0,l.useMemo)(()=>({avatarUrl:n?.avatarURL??””,diffViewPreference:n?.splitPreference,login:n?.login??””,lineSpacingPreference:n?.lineSpacing,shouldDisplayComments:n?.shouldDisplayComments,shouldDisplayEditOptions:n?.shouldDisplayEditOptions,tabSizePreference:n?.tabSize??4,viewerCanComment:n?.canComment,viewerCanApplySuggestion:n?.canApplySuggestion}),[n.avatarURL,n.canApplySuggestion,n.canComment,n.lineSpacing,n.login,n.shouldDisplayComments,n.shouldDisplayEditOptions,n.splitPreference,n.tabSize]),eh=(0,l.useId)(),ep=`heading-${eh}`,eg=(0,l.useMemo)(()=>”split”===new URLSearchParams(g.cg?.location.search).get(“diff”)||”split”===n.splitPreference,[n.splitPreference]),ex=D?.lineCount??k?.lineCount??0;return(0,i.jsxs)($,{addInjectedContextLines:W,diffAnchor:`diff-${O}`,diffLines:a,fileLineCount:ex,path:T,startNewConversationForLineOrFileMap:em,hiddenFeatures:p,isSplitView:eg,oldTreeEntry:k,newTreeEntry:D,children:[(0,i.jsxs)(“div”,{role:”region”,ref:Q,”aria-labelledby”:ep,id:`diff-${O}`,className:(0,b.$)(rj.A.diffTargetable,rj.A.diff),”data-targeted”:y,style:eo?{contentVisibility:”auto”,containIntrinsicSize:`auto ${m}px`}:void 0,children:[(0,i.jsx)(“div”,{className:rj.A.diffHeaderWrapper,style:{“–header-sticky-offset”:`${h}px`},children:(0,i.jsx)(s.B,{headingId:ep,hiddenFeatures:p,areLinesExpanded:U,canExpandOrCollapseLines:G,fileLinkHref:`#diff-${O}`,isCollapsed:t,isBinary:v,size:d,canToggleRichDiff:M?.richDiff?.canToggleRichDiff,linesAdded:N,linesChanged:S,linesDeleted:L,newMode:D?.mode,newPath:D?.path,oldMode:k?.mode,oldPath:k?.path,patchStatus:q,path:T,onToggleExpandAllLines:H,onToggleFileCollapsed:e=>E(e,!t),onToggleDiffDisplay:M?.onToggleRichDiff,additionalLeftSideContent:w,rightSideContent:B,showRichDiff:M?.showRichDiff,isInSingleFileMode:et})}),t?null:(0,i.jsxs)(“div”,{className:”border position-relative rounded-bottom-2″,children:[(0,i.jsxs)(i.Fragment,{children:[f.length>0&&(0,i.jsx)(rW,{conversationListThreads:f,filePath:T}),x&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,rj.A.diffAddFileThread),children:(0,i.jsx)(eq,{batchingEnabled:!0,filePath:T,fileLevelComment:!0,isLeftSide:void 0,viewerData:ef,onAddComment:({onCompleted:e,onError:t,submitBatch:n,text:i})=>{el?ec(new ReviewCommentFactory({filePath:T,effectiveDiffRange:ed,submitBatch:n,text:i}).fileRequestData(),{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment.databaseId),V(!1)}}):ec({text:i,path:T,submitBatch:n,subjectType:o.Wr.File,comparisonEndOid:es,comparisonStartOid:er},{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment.databaseId),V(!1)}})},onClose:()=>{V(!1),e?.current?.focus()}})})]}),X&&(0,i.jsx)(rR,{submodule:K}),M?.showRichDiff&&(0,i.jsx)(eY,{queryConfig:M.queryConfig,initialData:M.richDiff}),J&&(0,i.jsx)(rb,{hasExpandedAllRanges:U,copilotChatReference:ei,diffEntryData:{diffLines:a,isBinary:v,isTooBig:C,linesChanged:S,newTreeEntry:D,newCommitOid:_,objectId:R,oldTreeEntry:k,oldCommitOid:A,path:T,pathDigest:O,status:q,truncatedReason:z},baseHelpUrl:u,subjectId:P||””,viewerData:ef,isSplitView:eg,diffLinesManuallyUnhidden:Y,onHandleLoadDiff:ea})]})]},`${O}_${a.length}`),et&&(0,i.jsxs)(“div”,{className:rj.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:rX(en)})]})]})}),rY=(0,a.GV)()?function(e){let t,n,a,o,d,u=(0,r.c)(24),{path:m,pathDigest:f,linesAdded:h,linesChanged:p,linesDeleted:g,oldTreeEntry:x,newTreeEntry:v,status:y}=e,j=(0,l.useId)(),C=`heading-${j}`,[w,N]=(0,l.useState)(!1),S=`diff-${f}`;u[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,b.$)(rj.A.diffTargetable,rj.A.diff),u[0]=t):t=u[0];let L=`${f}_error`,D=v?.mode,I=v?.path,_=x?.mode,R=x?.path;return u[1]!==w?(n=()=>N(!w),u[1]=w,u[2]=n):n=u[2],u[3]!==C||u[4]!==w||u[5]!==h||u[6]!==p||u[7]!==g||u[8]!==m||u[9]!==y||u[10]!==D||u[11]!==I||u[12]!==_||u[13]!==R||u[14]!==n?(a=(0,i.jsx)(“div”,{className:rj.A.diffHeaderWrapper,children:(0,i.jsx)(s.B,{headingId:C,isCollapsed:w,isBinary:!1,linesAdded:h,linesChanged:p,linesDeleted:g,newMode:D,newPath:I,oldMode:_,oldPath:R,patchStatus:y,path:m,onToggleFileCollapsed:n})}),u[3]=C,u[4]=w,u[5]=h,u[6]=p,u[7]=g,u[8]=m,u[9]=y,u[10]=D,u[11]=I,u[12]=_,u[13]=R,u[14]=n,u[15]=a):a=u[15],u[16]!==w?(o=!w&&(0,i.jsx)(“div”,{className:”border position-relative rounded-bottom-2″,children:(0,i.jsxs)(n$.E,{children:[(0,i.jsx)(n$.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:”medium”,className:”fgColor-muted”})}),(0,i.jsx)(n$.E.Heading,{as:”h4″,children:”There was an issue loading this file”}),(0,i.jsxs)(n$.E.Description,{children:[” “,”Try refreshing the page or if the problem persists”,” “,(0,i.jsx)(“a”,{className:”fgColor-muted”,href:”https://support.github.com/”,children:(0,i.jsx)(“u”,{children:”contact support”})}),”.”]})]})}),u[16]=w,u[17]=o):o=u[17],u[18]!==C||u[19]!==S||u[20]!==o||u[21]!==L||u[22]!==a?(d=(0,i.jsxs)(“div”,{role:”region”,”aria-labelledby”:C,id:S,className:t,children:[a,o]},L),u[18]=C,u[19]=S,u[20]=o,u[21]=L,u[22]=a,u[23]=d):d=u[23],d}:function({path:e,pathDigest:t,linesAdded:n,linesChanged:a,linesDeleted:r,oldTreeEntry:o,newTreeEntry:d,status:u}){let m=(0,l.useId)(),f=`heading-${m}`,[h,p]=(0,l.useState)(!1);return(0,i.jsxs)(“div”,{role:”region”,”aria-labelledby”:f,id:`diff-${t}`,className:(0,b.$)(rj.A.diffTargetable,rj.A.diff),children:[(0,i.jsx)(“div”,{className:rj.A.diffHeaderWrapper,children:(0,i.jsx)(s.B,{headingId:f,isCollapsed:h,isBinary:!1,linesAdded:n,linesChanged:a,linesDeleted:r,newMode:d?.mode,newPath:d?.path,oldMode:o?.mode,oldPath:o?.path,patchStatus:u,path:e,onToggleFileCollapsed:()=>p(!h)})}),!h&&(0,i.jsx)(“div”,{className:”border position-relative rounded-bottom-2″,children:(0,i.jsxs)(n$.E,{children:[(0,i.jsx)(n$.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:”medium”,className:”fgColor-muted”})}),(0,i.jsx)(n$.E.Heading,{as:”h4″,children:”There was an issue loading this file”}),(0,i.jsxs)(n$.E.Description,{children:[” “,”Try refreshing the page or if the problem persists”,” “,(0,i.jsx)(“a”,{className:”fgColor-muted”,href:”https://support.github.com/”,children:(0,i.jsx)(“u”,{children:”contact support”})}),”.”]})]})})]},`${t}_error`)},r0=(0,l.memo)(rJ);try{rJ.displayName||(rJ.displayName=”DiffUnmemoized”)}catch{}try{rY.displayName||(rY.displayName=”DiffErrorFallback”)}catch{}try{r0.displayName||(r0.displayName=”Diff”)}catch{}},28199:(e,t,n)=>{n.d(t,{a:()=>r});var i=n(96540),a=n(2694);function r(e){let[t,n]=(0,i.useState)(!1),[r,s]=(0,i.useState)(!1),l={root:null,rootMargin:”0px”,threshold:[0,1],…e},o=(0,i.useCallback)(e=>{let[t]=e;s(1>(t?.intersectionRatio||0)),n((t?.rootBounds?.height??0)>0)},[s]),[d,c]=(0,a.B)(o,l);return{isSticky:r,hasRoots:t,observe:d,unobserve:c}}},31675:(e,t,n)=>{n.d(t,{A:()=>i});let i={“hide-on-mobile”:”responsive-module__hide-on-mobile–lWlU1″,”hide-on-desktop”:”responsive-module__hide-on-desktop–op38F”,”hide-on-small”:”responsive-module__hide-on-small–oDr47″,”hide-on-medium-up”:”responsive-module__hide-on-medium-up–imsgz”}},33195:(e,t,n)=>{n.d(t,{u:()=>u});var i=n(74848),a=n(68273),r=n(16522),s=n(46589),l=n(96540),o=n(34164);let d=”PullRequestStateLabel-module__unlisted–pcrfP”;var c=n(33578);let u=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(7),{className:l,state:u}=e,f=c.a[u];if(u===c.Q.Unlisted){let e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“span”,{className:d,children:[(0,i.jsx)(m,{}),” Unlisted”]}),a[0]=e):e=a[0],e}a[1]!==l?(t=(0,o.$)(“flex-self-start”,l),a[1]=l,a[2]=t):t=a[2];let h=f.status;return a[3]!==f.description||a[4]!==t||a[5]!==h?(n=(0,i.jsx)(s.A,{className:t,status:h,children:f.description}),a[3]=f.description,a[4]=t,a[5]=h,a[6]=n):n=a[6],n}:function({className:e,state:t}){let n=(0,l.useMemo)(()=>c.a[t],[t]);return t===c.Q.Unlisted?(0,i.jsxs)(“span”,{className:d,children:[(0,i.jsx)(m,{}),” Unlisted”]}):(0,i.jsx)(s.A,{className:(0,o.$)(“flex-self-start”,e),status:n.status,children:n.description})},m=(0,a.Z6)()?function(){let e,t=(0,r.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“svg”,{width:”16″,height:”16″,viewBox:”0 0 16 16″,xmlns:”http://www.w3.org/2000/svg”,”aria-hidden”:”true”,fill:”currentColor”,children:[(0,i.jsx)(“path”,{fillRule:”evenodd”,clipRule:”evenodd”,d:”M2.5 3.25C2.5 2.83579 2.83579 2.5 3.25 2.5C3.66421 2.5 4 2.83579 4 3.25C4 3.66421 3.66421 4 3.25 4C2.83579 4 2.5 3.66421 2.5 3.25ZM3.25 1C2.00736 1 1 2.00736 1 3.25C1 4.22966 1.62611 5.06309 2.5 5.37197V10.628C1.62611 10.9369 1 11.7703 1 12.75C1 13.9926 2.00736 15 3.25 15C4.49264 15 5.5 13.9926 5.5 12.75C5.5 11.7703 4.87389 10.9369 4 10.628V5.37197C4.87389 5.06309 5.5 4.22966 5.5 3.25C5.5 2.00736 4.49264 1 3.25 1ZM3.25 12C2.83579 12 2.5 12.3358 2.5 12.75C2.5 13.1642 2.83579 13.5 3.25 13.5C3.66421 13.5 4 13.1642 4 12.75C4 12.3358 3.66421 12 3.25 12Z”}),(0,i.jsx)(“path”,{d:”M14 7.5C14 8.19036 13.3844 8.75 12.625 8.75C11.8656 8.75 11.25 8.19036 11.25 7.5C11.25 6.80964 11.8656 6.25 12.625 6.25C13.3844 6.25 14 6.80964 14 7.5Z”}),(0,i.jsx)(“path”,{d:”M14 2.75C14 3.44036 13.3844 4 12.625 4C11.8656 4 11.25 3.44036 11.25 2.75C11.25 2.05964 11.8656 1.5 12.625 1.5C13.3844 1.5 14 2.05964 14 2.75Z”}),(0,i.jsx)(“path”,{d:”M10.2197 10.7197C10.5126 10.4268 10.9874 10.4268 11.2803 10.7197L14.2803 13.7197C14.5732 14.0126 14.5732 14.4874 14.2803 14.7803C13.9874 15.0732 13.5126 15.0732 13.2197 14.7803L10.2197 11.7803C9.92683 11.4874 9.92683 11.0126 10.2197 10.7197Z”})]}),t[0]=e):e=t[0],e}:function(){return(0,i.jsxs)(“svg”,{width:”16″,height:”16″,viewBox:”0 0 16 16″,xmlns:”http://www.w3.org/2000/svg”,”aria-hidden”:”true”,fill:”currentColor”,children:[(0,i.jsx)(“path”,{fillRule:”evenodd”,clipRule:”evenodd”,d:”M2.5 3.25C2.5 2.83579 2.83579 2.5 3.25 2.5C3.66421 2.5 4 2.83579 4 3.25C4 3.66421 3.66421 4 3.25 4C2.83579 4 2.5 3.66421 2.5 3.25ZM3.25 1C2.00736 1 1 2.00736 1 3.25C1 4.22966 1.62611 5.06309 2.5 5.37197V10.628C1.62611 10.9369 1 11.7703 1 12.75C1 13.9926 2.00736 15 3.25 15C4.49264 15 5.5 13.9926 5.5 12.75C5.5 11.7703 4.87389 10.9369 4 10.628V5.37197C4.87389 5.06309 5.5 4.22966 5.5 3.25C5.5 2.00736 4.49264 1 3.25 1ZM3.25 12C2.83579 12 2.5 12.3358 2.5 12.75C2.5 13.1642 2.83579 13.5 3.25 13.5C3.66421 13.5 4 13.1642 4 12.75C4 12.3358 3.66421 12 3.25 12Z”}),(0,i.jsx)(“path”,{d:”M14 7.5C14 8.19036 13.3844 8.75 12.625 8.75C11.8656 8.75 11.25 8.19036 11.25 7.5C11.25 6.80964 11.8656 6.25 12.625 6.25C13.3844 6.25 14 6.80964 14 7.5Z”}),(0,i.jsx)(“path”,{d:”M14 2.75C14 3.44036 13.3844 4 12.625 4C11.8656 4 11.25 3.44036 11.25 2.75C11.25 2.05964 11.8656 1.5 12.625 1.5C13.3844 1.5 14 2.05964 14 2.75Z”}),(0,i.jsx)(“path”,{d:”M10.2197 10.7197C10.5126 10.4268 10.9874 10.4268 11.2803 10.7197L14.2803 13.7197C14.5732 14.0126 14.5732 14.4874 14.2803 14.7803C13.9874 15.0732 13.5126 15.0732 13.2197 14.7803L10.2197 11.7803C9.92683 11.4874 9.92683 11.0126 10.2197 10.7197Z”})]})};try{u.displayName||(u.displayName=”PullRequestStateLabel”)}catch{}try{m.displayName||(m.displayName=”GitPullRequestUnlistedSvg”)}catch{}},33578:(e,t,n)=>{n.d(t,{Q:()=>i,a:()=>a});let i={Open:”OPEN”,Closed:”CLOSED”,Merged:”MERGED”,Queued:”QUEUED”,Draft:”DRAFT”,Unlisted:”UNLISTED”},a={[i.Open]:{description:”Open”,status:”pullOpened”},[i.Closed]:{description:”Closed”,status:”pullClosed”},[i.Queued]:{description:”Queued”,status:”pullQueued”},[i.Merged]:{description:”Merged”,status:”pullMerged”},[i.Draft]:{description:”Draft”,status:”draft”},[i.Unlisted]:{description:”Unlisted”,status:”unlisted”}}},33644:(e,t,n)=>{n.d(t,{A:()=>i});let i={stickyHeader:”use-sticky-header-module__stickyHeader–UQFpz”}},34261:(e,t,n)=>{n.d(t,{W:()=>u,f:()=>c});var i=n(68273),a=n(16522),r=n(65510),s=n(20622),l=n(53885),o=n(96379),d=n(50129);let c=(0,i.Z6)()?function(){let e,t=(0,a.c)(2),{basePageDataUrl:n}=(0,d.Yu)(),i=`basePageDataURL:${n}`;return t[0]!==i?(e=[s.uT.header,i],t[0]=i,t[1]=e):e=t[1],e}:function(){let{basePageDataUrl:e}=(0,d.Yu)();return[s.uT.header,`basePageDataURL:${e}`]},u=(0,i.Z6)()?function(e){let t,n,i=(0,a.c)(6),d=(0,l.e)(s.uT.header),u=c();return i[0]!==d?(t=async()=>{let e=await (0,o.QJ)(d);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},i[0]=d,i[1]=t):t=i[1],i[2]!==e||i[3]!==u||i[4]!==t?(n={queryKey:u,queryFn:t,initialData:e,staleTime:1/0},i[2]=e,i[3]=u,i[4]=t,i[5]=n):n=i[5],(0,r.U)(n)}:function(e){let t=(0,l.e)(s.uT.header),n=c();return(0,r.U)({queryKey:n,queryFn:async()=>{let e=await (0,o.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})}},34535:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(68273),a=n(16522),r=n(96540);let s=(0,i.xS)()?function(e){let t,n,i=(0,a.c)(4),{focusRowRef:s,mouseRowRef:l}=e,[o,d]=(0,r.useState)(!1);return i[0]!==s||i[1]!==l?(t=()=>{let e=s.current,t=l.current;if(!e||!t)return;let n=()=>{let t=e.querySelector(“.PRIVATE_TreeView-item-content-text”);t?.scrollWidth!==t?.offsetWidth&&d(!0)},i=()=>n(),a=()=>d(!1),r=()=>n(),o=()=>d(!1);return e.addEventListener(“focus”,i),e.addEventListener(“blur”,a),t.addEventListener(“mouseenter”,r),t.addEventListener(“mouseleave”,o),()=>{e.removeEventListener(“focus”,i),e.removeEventListener(“blur”,a),t.removeEventListener(“mouseenter”,r),t.removeEventListener(“mouseleave”,o)}},n=[s,l],i[0]=s,i[1]=l,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,r.useEffect)(t,n),o}:function({focusRowRef:e,mouseRowRef:t}){let[n,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let n=e.current,a=t.current;if(!n||!a)return;let r=()=>{let e=n.querySelector(“.PRIVATE_TreeView-item-content-text”);e?.scrollWidth!==e?.offsetWidth&&i(!0)},s=()=>r(),l=()=>i(!1),o=()=>r(),d=()=>i(!1);return n.addEventListener(“focus”,s),n.addEventListener(“blur”,l),a.addEventListener(“mouseenter”,o),a.addEventListener(“mouseleave”,d),()=>{n.removeEventListener(“focus”,s),n.removeEventListener(“blur”,l),a.removeEventListener(“mouseenter”,o),a.removeEventListener(“mouseleave”,d)}},[e,t]),n}},36472:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(13083),a=n(3038);function r({selectedLineRange:e,leftLines:t,rightLines:n}){let r=!!n,{startOrientation:s,endOrientation:l}=e,o=m(s).findIndex(t=>(0,a.a2)(t,e.startLineNumber,e.startOrientation)),d=m(l).findIndex(t=>(0,a.a2)(t,e.endLineNumber,e.endOrientation)),c=o>=0&&d>=0;function u(e){if(!c||(0,a.Po)(e))return!1;let t=m((0,i.XU)(e.type)).indexOf(e);return t>=o&&t<=d}function m(e){var a;return r&&"left"!==("string"==typeof(a=e)?a:(0,i.XU)(a.type))?n:t}let f=m("left").filter(e=>u(e));return{selectedRightLines:m(“right”).filter(e=>u(e)),selectedLeftLines:f}}},36729:(e,t,n)=>{n.d(t,{Vv:()=>a,Wr:()=>r,zW:()=>i});let i=”FILE”,a=”empty-diff-line”,r={Line:”line”,Multiline:”multiline”,File:”file”}},37212:(e,t,n)=>{n.d(t,{Bz:()=>s,NP:()=>l});var i=n(68273),a=n(99279),r=n(86320);n(13360);let s=a.G.createQueryRouteConfig(“pullRequestsCommitsRoute”,{path:”/:owner/:repo/pull/:pr_number/commits”,queries:[(0,r.Y)()]});function l(){return s.queries.mainQuery.makeQueryKey()}(0,i.Z6)()},37351:(e,t,n)=>{n.d(t,{_:()=>i});function i(e,t){if(e!==t)throw TypeError(“Private static access of wrong provenance”)}},39029:(e,t,n)=>{n.d(t,{G:()=>c,og:()=>d});var i=n(68273),a=n(16522),r=n(40235),s=n(70170),l=n(70263),o=n(96540);let d=(0,i.Z6)()?function(e,t,n,i){c(e,t,n,i)}:function(e,t,n,i){c(e,t,n,i)},c=(0,i.Z6)()?function(e,t,n,i){let o,d,c,u=(0,a.c)(9),m=(0,l.A)();u[0]!==t||u[1]!==m?(o=()=>{m()&&t()},u[0]=t,u[1]=m,u[2]=o):o=u[2];let f=i??2e3;u[3]!==o||u[4]!==f?(d=(0,s.n)(o,f),u[3]=o,u[4]=f,u[5]=d):d=u[5];let h=d;u[6]!==h||u[7]!==n?(c=e=>{if(n&&e.event_updates)for(let[t,i]of Object.entries(n))!!e.event_updates[t]==!!i&&window.setTimeout(h,e.wait||0);else window.setTimeout(h,e.wait||0)},u[6]=h,u[7]=n,u[8]=c):c=u[8];let p=c;(0,r.x)(e,p)}:function(e,t,n,i){let a=(0,l.A)(),d=(0,o.useMemo)(()=>(0,s.n)(()=>{a()&&t()},i??2e3),[a,t,i]),c=(0,o.useCallback)(e=>{if(n&&e.event_updates)for(let[t,i]of Object.entries(n))!!e.event_updates[t]==!!i&&window.setTimeout(d,e.wait||0);else window.setTimeout(d,e.wait||0)},[d,n]);(0,r.x)(e,c)}},39111:(e,t,n)=>{n.d(t,{X:()=>a});var i=n(54571);function a(e){let t=e.join(“,”),[n]=(0,i.I)(()=>{let e=/Windows/.test(navigator.userAgent)?”windows”:/Macintosh/.test(navigator.userAgent)?”mac”:null;return!!e&&t.includes(e)},!1,[t]);return n}},39595:(e,t,n)=>{let i;n.d(t,{CF:()=>p,p_:()=>R,FB:()=>u,Se:()=>N,aC:()=>I,zV:()=>_});let a=new WeakSet,r=new WeakMap;function s(e=document){if(r.has(e))return r.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if(“attributes”===t.type&&t.target instanceof Element)c(t.target);else if(“childList”===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&l(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:[“data-action”]});let i={get closed(){return t},unsubscribe(){t=!0,r.delete(e),n.disconnect()}};return r.set(e,i),i}function l(e){for(let t of e.querySelectorAll(“[data-action]”))c(t);e instanceof Element&&e.hasAttribute(“data-action”)&&c(e)}function o(e){let t=e.currentTarget;for(let n of d(t))if(e.type===n.type){let i=t.closest(n.tag);a.has(i)&&”function”==typeof i[n.method]&&i[n.method](e);let r=t.getRootNode();if(r instanceof ShadowRoot&&a.has(r.host)&&r.host.matches(n.tag)){let t=r.host;”function”==typeof t[n.method]&&t[n.method](e)}}}function*d(e){for(let t of(e.getAttribute(“data-action”)||””).trim().split(/\s+/)){let e=t.lastIndexOf(“:”),n=Math.max(0,t.lastIndexOf(“#”))||t.length;yield{type:t.slice(0,e),tag:t.slice(e+1,n),method:t.slice(n+1)||”handleEvent”}}}function c(e){for(let t of d(e))e.addEventListener(t.type,o)}function u(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let i of e.shadowRoot.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(!i.closest(n))return i}for(let i of e.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(i.closest(n)===e)return i}let m=e=>String(“symbol”==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,”-$1″).replace(/–/g,”-“).replace(/^-|-$/,””).toLowerCase(),f=(e,t=”property”)=>{let n=m(e);if(!n.includes(“-“))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,”SyntaxError”);return n},h=”attr”;function p(e,t){D(e,h).add(t)}let g=new WeakSet;function x(e,t){if(g.has(e))return;g.add(e);let n=Object.getPrototypeOf(e),i=n?.constructor?.attrPrefix??”data-“;for(let a of(t||(t=D(n,h)),t)){let t=e[a],n=f(`${i}${a}`),r={configurable:!0,get(){return this.getAttribute(n)||””},set(e){this.setAttribute(n,e||””)}};”number”==typeof t?r={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:”boolean”==typeof t&&(r={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,a,r),a in e&&!e.hasAttribute(n)&&r.set.call(e,t)}}let b=new Map,v=new Promise(e=>{“loading”!==document.readyState?e():document.addEventListener(“readystatechange”,()=>e(),{once:!0})}),y=new Promise(e=>{let t=new AbortController;t.signal.addEventListener(“abort”,()=>e());let n={once:!0,passive:!0,signal:t.signal},i=()=>t.abort();document.addEventListener(“mousedown”,i,n),document.addEventListener(“touchstart”,i,n),document.addEventListener(“keydown”,i,n),document.addEventListener(“pointerdown”,i,n)}),j={ready:()=>v,firstInteraction:()=>y,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let i of e)if(i.isIntersecting){t(),n.disconnect();return}},{rootMargin:”0px 0px 256px 0px”,threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},C=new WeakMap;function w(e){cancelAnimationFrame(C.get(e)||0),C.set(e,requestAnimationFrame(()=>{for(let t of b.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let i=n?.getAttribute(“data-load-on”)||”ready”,a=i in j?j[i]:j.ready;for(let e of b.get(t)||[])a(t).then(e);b.delete(t),C.delete(e)}}}))}function N(e,t){for(let[n,i]of(“string”==typeof e&&t&&(e={[e]:t}),Object.entries(e)))b.has(n)||b.set(n,new Set),b.get(n).add(i);S(document)}function S(e){i||(i=new MutationObserver(e=>{if(b.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&w(e)})),w(e),i.observe(e,{subtree:!0,childList:!0})}let L=Symbol.for(“catalyst”);let CatalystDelegate=class CatalystDelegate{constructor(e){const t=this,n=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){t.connectedCallback(this,n)};const i=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){t.disconnectedCallback(this,i)};const a=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,n,i){t.attributeChangedCallback(this,e,n,i,a)};let r=e.observedAttributes||[];Object.defineProperty(e,”observedAttributes”,{configurable:!0,get(){return t.observedAttributes(this,r)},set(e){r=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??”data-“,i=e=>f(`${n}${e}`);Object.defineProperty(e,”observedAttributes”,{configurable:!0,get:()=>[…D(e.prototype,h)].map(i).concat(t),set(e){t=e}})}(e),function(e){let t=m(e.name).replace(/-element$/,””);try{window.customElements.define(t,e),window[e.name]=customElements.get(t)}catch(e){if(!(e instanceof DOMException&&”NotSupportedError”===e.name))throw e}}(e)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,i;for(let t of(e.toggleAttribute(“data-catalyst”,!0),customElements.upgrade(e),e.querySelectorAll(“template[data-shadowroot]”)))t.parentElement===e&&e.attachShadow({mode:”closed”===t.getAttribute(“data-shadowroot”)?”closed”:”open”}).append(t.content.cloneNode(!0));(x(e),a.add(e),e.shadowRoot&&(l(i=e.shadowRoot),s(i)),l(e),s(e.ownerDocument),t?.call(e),e.shadowRoot)&&(l(n=e.shadowRoot),s(n),S(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,i,a){x(e),”data-catalyst”!==t&&a&&a.call(e,t,n,i)}};function D(e,t){if(!Object.prototype.hasOwnProperty.call(e,L)){let t=e[L],n=e[L]=new Map;if(t)for(let[e,i]of t)n.set(e,new Set(i))}let n=e[L];return n.has(t)||n.set(t,new Set),n.get(t)}function I(e,t){D(e,”target”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){return u(this,t)}})}function _(e,t){D(e,”targets”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){let e=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let i of this.shadowRoot.querySelectorAll(`[data-targets~=”${e}.${t}”]`))i.closest(e)||n.push(i);for(let i of this.querySelectorAll(`[data-targets~=”${e}.${t}”]`))i.closest(e)===this&&n.push(i);return n}})}function R(e){new CatalystDelegate(e)}},39619:(e,t,n)=>{n.d(t,{HS:()=>s,Oc:()=>r,Tv:()=>d,Xr:()=>SymbolChangedEvent,f7:()=>l,fD:()=>o,qR:()=>a});var i=n(50467);let OpenCopilotChatEvent=class OpenCopilotChatEvent extends Event{constructor(e){super(“open-copilot-chat”,{bubbles:!1,cancelable:!0}),(0,i._)(this,”payload”,void 0),this.payload=e}};Event;let AddCopilotChatReferenceEvent=class AddCopilotChatReferenceEvent extends Event{constructor(e,t=!1,n){super(“add-copilot-chat-reference”,{bubbles:!1,cancelable:!0}),(0,i._)(this,”reference”,void 0),(0,i._)(this,”openPanel”,void 0),(0,i._)(this,”id”,void 0),this.reference=e,this.openPanel=t,this.id=n}};let SymbolChangedEvent=class SymbolChangedEvent extends Event{constructor(e){super(“symbol-changed”,{bubbles:!1,cancelable:!0}),(0,i._)(this,”context”,void 0),this.context=e}};function a(e){window.dispatchEvent(new OpenCopilotChatEvent(e))}function r(e,t=!1,n){window.dispatchEvent(new AddCopilotChatReferenceEvent(e,t,n))}function s(e){return window.addEventListener(“open-copilot-chat”,e),()=>{window.removeEventListener(“open-copilot-chat”,e)}}function l(e){return window.addEventListener(“add-copilot-chat-reference”,e),()=>{window.removeEventListener(“add-copilot-chat-reference”,e)}}function o(e){return window.addEventListener(“search-copilot-chat”,e),()=>{window.removeEventListener(“search-copilot-chat”,e)}}function d(e){return window.addEventListener(“symbol-changed”,e),()=>{window.removeEventListener(“symbol-changed”,e)}}},39698:(e,t,n)=>{n.d(t,{i:()=>u});var i=n(68273),a=n(16522),r=n(48845),s=n(20622),l=n(97665),o=n(94747),d=n(69510),c=n(27011);let u=(0,i.Z6)()?function(e,t){let n,i,u,f=(0,a.c)(11),h=(0,c.Kp)(),p=`${h}/page_data/${s.uT.unresolveThread}`,g=(0,l.jE)(),{updateThread:x}=(0,c.an)();return f[0]!==p?(n=async e=>{let{threadId:t}=e,n=await (0,r.q$)(p,{method:”POST”,body:{threadId:t}});(0,r.R)(n)},f[0]=p,f[1]=n):n=f[1],f[2]!==h||f[3]!==e||f[4]!==t||f[5]!==g||f[6]!==x?(i=(n,i)=>(x(Number(i.threadId),e,t,m),g.invalidateQueries({queryKey:(0,d.XG)(h)})),f[2]=h,f[3]=e,f[4]=t,f[5]=g,f[6]=x,f[7]=i):i=f[7],f[8]!==n||f[9]!==i?(u={mutationFn:n,onSuccess:i},f[8]=n,f[9]=i,f[10]=u):u=f[10],(0,o.n)(u)}:function(e,t){let n=(0,c.Kp)(),i=`${n}/page_data/${s.uT.unresolveThread}`,a=(0,l.jE)(),{updateThread:u}=(0,c.an)();return(0,o.n)({mutationFn:async({threadId:e})=>{let t=await (0,r.q$)(i,{method:”POST”,body:{threadId:e}});(0,r.R)(t)},onSuccess:(i,r)=>(u(Number(r.threadId),e,t,e=>{if(e)return{…e,isResolved:!1,resolvedBy:void 0}}),a.invalidateQueries({queryKey:(0,d.XG)(n)}))})};function m(e){if(e)return{…e,isResolved:!1,resolvedBy:void 0}}},40235:(e,t,n)=>{n.d(t,{x:()=>f});var i,a=n(96540),r=n(70263),s=n(11418),l=n(73056),o=n(74848),d=n(10204);let c=(0,a.createContext)(null),u=null;function m(e,t){let n=d.KK.parse(e);if(!n)throw Error(`Invalid channel name. Did you forget to sign it with \`signChannel(“${e}”)\`?`);return u||(u=new d.m0),u.add({topic:n,subscriber:t}),{unsubscribe:()=>{u?.delete({topic:n,subscriber:t})}}}try{c.displayName||(c.displayName=”AliveTestContext”)}catch{}try{(i=function({children:e,initialMessages:t}){return(0,a.useEffect)(()=>{let e=[];if(t)for(let[n,i]of t){let t=window.setTimeout(()=>{var e=n,t=i;if(null===u)throw Error(‘Test helper `dispatchAliveTestMessage` called outside `AliveTestProvider`. Please wrap your component under test in `AliveTestProvider` from “@github-ui/use-alive/test-utils”.’);for(let n of Array.from(u.subscribers(e)))n(t)},0);e.push(t)}return()=>{for(let t of(u=null,e))window.clearTimeout(t)}}),(0,o.jsx)(c.Provider,{value:m,children:e})}).displayName||(i.displayName=”AliveTestProvider”)}catch{}function f(e,t){let n=(0,r.A)(),i=(0,a.useContext)(c);(0,a.useEffect)(()=>{let a=()=>{},r=!1;return async function(){if(e){if(“function”==typeof i){let n=await i(e,t);n&&(a=n.unsubscribe);return}try{let i=await (0,s.H)();if(r)return;let o=(0,l.$)(i,e,t);o?.unsubscribe&&(n()?a=o.unsubscribe:o.unsubscribe())}catch(e){console.error(e)}}}(),()=>{r=!0,a()}},[e,t,n,i])}},40493:(e,t,n)=>{n.d(t,{A:()=>i});let i={TabNav:”CodeDropdownButton-module__TabNav–zWa9N”,NavItem:”CodeDropdownButton-module__NavItem–_hXZP”,CodespacesSkeletonWrapper:”CodeDropdownButton-module__CodespacesSkeletonWrapper–KXl0V”,SkeletonLoaderWrapper:”CodeDropdownButton-module__SkeletonLoaderWrapper–suXcn”}},43362:(e,t,n)=>{n.d(t,{Be:()=>r,Sl:()=>l,Wp:()=>a,YY:()=>d,jH:()=>o,wm:()=>s});var i=n(36729);function a(e){return e.reduce((e,t)=>(e[t.path]=t,e),{})}function r(e){return e.reduce((e,t)=>(e[t.path]=!!t.markedAsViewed,e),{})}function s(e){let t=e.comments.map(e=>parseInt(e.threadId));return{id:e.id,pendingReviewIDs:t,comments:e.comments}}function l(e){return e.reduce((e,t)=>(e[t.path]=t,e),{})}function o(e,t){if(!e)return;let n={};if(!t)return n;for(let a of t){if(!a.markersMap||0===Object.keys(a.markersMap).length)continue;let t=a.path,r={};for(let t in a.markersMap){let n=a.markersMap[t];if(!n?.threads&&!n?.annotations)continue;let s={threads:[],annotations:[]};if(n.annotations)for(let t of n.annotations){let n=e.annotations[Number(t.id)];n&&s.annotations.push(n)}if(n.threads)for(let i of n.threads){let n=function(e,t){if(“FILE”===e)return;let n=e[0];if(!u(n))return;let i=Number(e.slice(1)),a=-1,r=”R”;if(t.start){a=parseInt(t.start.slice(1));let e=t.start[0];u(e)&&(r=e)}else a=i,r=n;return{endLine:i,endDiffSide:c[n],startLine:a,startDiffSide:c[r],isOutdated:!!t.outdatedReason}}(t,i),a=e.threads[Number(i.id)];a&&n&&(a={…a,positioning:n,subject:n}),a&&s.threads.push(a)}”FILE”===t?r[i.zW]=s:r[t]=s}n[t]=r}return n}function d(e){return{endLine:e.line,endDiffSide:e.side?.toLowerCase()===”right”?”RIGHT”:”LEFT”,startLine:e.startLine??e.line,startDiffSide:e.startSide?e.startSide?.toLowerCase()===”right”?”RIGHT”:”LEFT”:e.side?.toLowerCase()===”right”?”RIGHT”:”LEFT”,isOutdated:!1}}let c={L:”LEFT”,R:”RIGHT”};function u(e){return”L”===e||”R”===e}},43883:(e,t,n)=>{n.d(t,{Gl:()=>r,TC:()=>d,ai:()=>s,eh:()=>o});var i=n(21067);let a={};function r(e,t){let n=t?.currency??”USD”;return(a[n]||(a[n]=new Intl.NumberFormat((0,i.JK)(),{currency:n,style:”currency”}))).format(e)}function s(e,t){return new Intl.NumberFormat((0,i.JK)(),{maximumFractionDigits:t?.precision}).format(e)}let l=[“k”,”m”,”b”];function o(e,t){let{suffix:n=!0,capping:i=1/0,precision:a=1}=t??{},r=””,o=Math.min(i,e);if(n){let e=c(o);r=l[e-1]||””,o/=1e3**e}let d=s(o,{precision:a})+r;return e>i?`${d}+`:d}function d(e){if(e<=1e4)return 1;let t=c(e);return e/1e3**t>=10?0:1}function c(e){let t=Math.floor(Math.log(Math.max(Math.abs(e),1))/Math.log(1e3));return Math.min(l.length,t)}},44953:(e,t,n)=>{n.d(t,{_:()=>i});function i(e,t){if(void 0===e)throw TypeError(“attempted to “+t+” private static field before its declaration”)}},48845:(e,t,n)=>{n.d(t,{R:()=>r,hp:()=>a,ol:()=>AuthSessionExpiredError,q$:()=>s});var i=n(96379);let FetchRequestError=class FetchRequestError extends Error{constructor(e){super(“Unable to perform this operation. Please try again later.”),this.name=”FetchRequestError”,this.cause=e}};let ServerUnavailableError=class ServerUnavailableError extends Error{constructor(e){super(“Unable to perform this operation. Please try again later.”),this.name=”ServerUnavailableError”,this.cause=e}};let JSONParseFetchError=class JSONParseFetchError extends Error{constructor(e){super(“Unable to read response from the server. Please try again later.”),this.name=”JSONParseFetchError”,this.cause=e}};let AuthSessionExpiredError=class AuthSessionExpiredError extends Error{constructor(){super(“Unable to perform this operation. Please try again later.”),this.name=”AuthSessionExpiredError”}};async function a(e){try{return await e.json()}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw new JSONParseFetchError(e)}}function r(e,t,n){if(!e.ok){if(e.status>=500)throw new ServerUnavailableError(e.status);if(n)throw n;if(t)throw Error(t?.error||”Unknown error occurred”,{cause:e.status});throw Error(`HTTP ${e.status}`)}}async function s(e,t){try{return await (0,i.Sr)(e,t)}catch(e){throw new FetchRequestError(e)}}},49086:(e,t,n)=>{n.d(t,{n:()=>L});var i=n(74848),a=n(82075),r=n(21373),s=n(1481),l=n(96540),o=n(13107),d=n(26410),c=n(68273),u=n(16522),m=n(20622),f=n(53885),h=n(96379),p=n(65510);let g=(0,c.Z6)()?function(e){let t,n,i,a=(0,u.c)(7),r=(0,f.e)(m.uT.codeButton);return a[0]!==r?(t=[m.uT.codeButton,r],n=async()=>{let e=await (0,h.QJ)(r);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},a[0]=r,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==e||a[4]!==t||a[5]!==n?(i={queryKey:t,queryFn:n,initialData:e,staleTime:1/0},a[3]=e,a[4]=t,a[5]=n,a[6]=i):i=a[6],(0,p.U)(i)}:function(e){let t=(0,f.e)(m.uT.codeButton);return(0,p.U)({queryKey:[m.uT.codeButton,t],queryFn:async()=>{let e=await (0,h.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})};var x=n(91747),b=n(31604),v=n(94236),y=n(38621);let j=({isPrimary:e,children:t,size:n,onOpenChange:a})=>{let s=(0,x.u)(“accessible_code_button”),[o,d]=(0,l.useState)(!1);return((0,l.useEffect)(()=>{s&&a&&a(o)},[o,s]),s)?(0,i.jsx)(b.T,{align:”end”,focusZoneSettings:{disabled:!0},open:o,onOpen:()=>d(!0),onClose:()=>d(!1),renderAnchor:t=>(0,i.jsx)(r.Q,{…t,variant:e?”primary”:void 0,leadingVisual:()=>(0,i.jsx)(y.CodeIcon,{className:”hide-sm”}),trailingVisual:()=>(0,i.jsx)(y.TriangleDownIcon,{}),size:n||”medium”,children:”Code”}),children:t}):(0,i.jsxs)(v.W,{children:[(0,i.jsx)(v.W.Button,{variant:e?”primary”:void 0,leadingVisual:()=>(0,i.jsx)(y.CodeIcon,{className:”hide-sm”}),size:n||”medium”,children:”Code”}),(0,i.jsx)(v.W.Overlay,{width:”auto”,align:”end”,children:t})]})};try{j.displayName||(j.displayName=”CodeMenuButton”)}catch{}var C=n(40493);let w=(0,a.A)(“localStorage”),N=”local”,S=”cloud”;function L(e){var t,n;let{primary:a,size:c,showCodespacesTab:u,isEnterprise:m,localTab:f,codespacesTab:h,localTabProps:p,codespacesPath:g}=e,x=”code-button-default-tab”,[b,v]=(0,l.useState)(N),y=(0,l.useCallback)(e=>{v(S),w.setItem(x,S),e?.preventDefault()},[]),L=(0,l.useCallback)(e=>{v(N),w.setItem(x,N),e?.preventDefault()},[]);(0,l.useEffect)(()=>{w.getItem(x)===S&&u&&y()},[]);let I=!m&&u;return(0,i.jsxs)(j,{size:c,isPrimary:a,children:[I&&(0,i.jsxs)(s.A,{className:C.A.TabNav,children:[(0,i.jsx)(s.A.Link,{as:r.Q,selected:b===N,onClick:L,className:C.A.NavItem,children:”Local”}),!m&&u&&(0,i.jsx)(s.A.Link,{as:r.Q,selected:b===S,onClick:y,className:C.A.NavItem,children:”Codespaces”})]}),(0,i.jsxs)(“div”,{className:”react-overview-code-button-action-list py-0″,children:[b===N&&(f||((t=p)?(0,i.jsx)(d.F,{…t}):null)),b===S&&(h||((n=g)?(0,i.jsx)(o.VO,{children:(0,i.jsx)(D,{codespacesPath:n})}):null))]})]})}function D(e){let t=g().data,n=(0,x.u)(“copilot_swe_agent_progress_commands”),{repositoryPolicyInfo:a,…r}=t;return n?(0,i.jsx)(o.NF,{codespacesPath:e.codespacesPath,repoPolicyInfo:a,…r}):(0,i.jsx)(o.NF,{codespacesPath:e.codespacesPath,…t})}try{L.displayName||(L.displayName=”CodeDropdownButton”)}catch{}try{D.displayName||(D.displayName=”SuspendedCodespacesTab”)}catch{}},50129:(e,t,n)=>{n.d(t,{Kg:()=>l,Yu:()=>o});var i=n(74848),a=n(16522),r=n(96540);let s=(0,r.createContext)(null);function l(e){let t,n,r=(0,a.c)(5),{children:l,basePageDataUrl:o}=e;r[0]!==o?(t={basePageDataUrl:o},r[0]=o,r[1]=t):t=r[1];let d=t;return r[2]!==l||r[3]!==d?(n=(0,i.jsx)(s.Provider,{value:d,children:l}),r[2]=l,r[3]=d,r[4]=n):n=r[4],n}function o(){let e=(0,r.useContext)(s);if(!e)throw Error(“usePageDataContext must be used within a PageDataContextProvider”);return e}try{s.displayName||(s.displayName=”PageDataContext”)}catch{}try{l.displayName||(l.displayName=”PageDataContextProvider”)}catch{}},50625:(e,t,n)=>{n.d(t,{L:()=>m});var i=n(68273),a=n(16522),r=n(82075),s=n(96540);let{getItem:l,removeItem:o,setItem:d}=(0,r.D)(“localStorage”),c=(e,t)=>{let{diffSide:n,filePath:i,line:a,subjectId:r}=e;if(t)return`PullRequest:${r}-File:${i}`;if(void 0!==a&&void 0!==n)return`PullRequest:${r}-File:${i}-Line:${a}-DiffSide:${n}`;throw Error(“Cannot build diff line comment cache key for a comment without a line number or diff side”)};function u(e,t){let n=l(e),i=!!n?.text?.trim();return(0,s.useEffect)(()=>{i&&t?.(n)},[i]),{hasPersistedComment:i,removePersistedCommentFromStorage:()=>{o(e),i=!1,n=null}}}(0,i.GV)();let m=(0,i.GV)()?function(e){let t,n,i,r,s=(0,a.c)(16),{diffSide:l,filePath:o,handlePersistedCommentExists:m,line:f,subjectId:h,threadId:p,fileLevelComment:g}=e;e:{let e;if(p){t=p;break e}s[0]!==l||s[1]!==g||s[2]!==o||s[3]!==f||s[4]!==h||s[5]!==p?(e=p??c({diffSide:l,filePath:o,line:f,subjectId:h},g),s[0]=l,s[1]=g,s[2]=o,s[3]=f,s[4]=h,s[5]=p,s[6]=e):e=s[6],t=e}let x=t,{hasPersistedComment:b,removePersistedCommentFromStorage:v}=u(x,m);s[7]!==x?(n=e=>{let t={text:e.text};e.startLine&&e.startSide&&(t={…t,startLine:e.startLine,startSide:e.startSide}),d(x,t)},s[7]=x,s[8]=n):n=s[8];let y=n;s[9]!==h?(i=e=>{let t={shouldFocus:!0};e.text&&(t={…t,text:e.text}),e.startLine&&(t={…t,startLine:e.startLine,startSide:e.givenLineDiffSide,startLineKey:e.startLineKey,endLineKey:e.endLineKey}),d(c({diffSide:e.givenLineDiffSide,filePath:e.givenFilePath,line:e.givenLine,subjectId:h},e.shouldBeFileLevelComment),t)},s[9]=h,s[10]=i):i=s[10];let j=i;return s[11]!==b||s[12]!==j||s[13]!==y||s[14]!==v?(r={hasPersistedComment:b,persistCommentToStorage:y,persistCommentOnGivenLineToStorage:j,removePersistedCommentFromStorage:v},s[11]=b,s[12]=j,s[13]=y,s[14]=v,s[15]=r):r=s[15],r}:function({diffSide:e,filePath:t,handlePersistedCommentExists:n,line:i,subjectId:a,threadId:r,fileLevelComment:l}){let o=(0,s.useMemo)(()=>r||(r??c({diffSide:e,filePath:t,line:i,subjectId:a},l)),[e,t,i,a,r,l]),{hasPersistedComment:m,removePersistedCommentFromStorage:f}=u(o,n);return{hasPersistedComment:m,persistCommentToStorage:e=>{let t={text:e.text};e.startLine&&e.startSide&&(t={…t,startLine:e.startLine,startSide:e.startSide}),d(o,t)},persistCommentOnGivenLineToStorage:e=>{let t={shouldFocus:!0};e.text&&(t={…t,text:e.text}),e.startLine&&(t={…t,startLine:e.startLine,startSide:e.givenLineDiffSide,startLineKey:e.startLineKey,endLineKey:e.endLineKey}),d(c({diffSide:e.givenLineDiffSide,filePath:e.givenFilePath,line:e.givenLine,subjectId:a},e.shouldBeFileLevelComment),t)},removePersistedCommentFromStorage:f}}},51391:(e,t,n)=>{n.d(t,{Aj:()=>u,EV:()=>d,KV:()=>m,M6:()=>o,bo:()=>l,sB:()=>c});var i=n(36472),a=n(3038),r=n(61583),s=n(71315);function l(e){return`b:${e.blobLineNumber}-l:${e.left}-r:${e.right}`}function o({current:e,currentOrientation:t,previous:n,previousOrientation:i}){return!!n&&(“left”===i&&”left”===t&&!!e.left&&!!n.left&&n.left>e.left||”right”===i&&”right”===t&&!!e.right&&!!n.right&&n.right>e.right||”right”===i&&”left”===t&&!!e.right&&!!n.right&&n.right>e.right||”left”===i&&”right”===t&&!!e.left&&!!n.left&&n.left>e.left||!1)}function d({diffAnchor:e,diffLines:t,isSplitView:n,lineRange:r}){let s,o=new Set([]);if(0===t.length)return{selectedLineKeys:o};if(!r)return{selectedLineKeys:new Set([])};let{startLineNumber:d,startOrientation:c,endLineNumber:u,endOrientation:m}=r,f=t;if(n){let e=(0,a.Mk)(t);f=e.leftLines,s=e.rightLines}let h={diffAnchor:e,endLineNumber:u??d,endOrientation:m??c,startLineNumber:d,startOrientation:c},p=(0,i.A)({selectedLineRange:h,leftLines:f,rightLines:s});for(let e=0;e{n.d(t,{_S:()=>r,cB:()=>l,cW:()=>s});var i=n(53627),a=n(71315);let r=()=>{let e=(0,i.JV)().appId;return e&&”rails”!==e?e:crypto.randomUUID()},s=e=>{(0,i.C3)({appId:e})},l=()=>{let e=document.querySelector(“react-app”)||document.querySelector(“projects-v2″);return e?.uuid||”rails”};a.cg?.addEventListener(“hashchange”,()=>{(0,i.C3)({appId:l()})},!0)},53331:(e,t,n)=>{n.d(t,{A:()=>s,K:()=>a});var i=n(50467);function a(e){let t=[…e.querySelectorAll(“meta[name=html-safe-nonce]”)].map(e=>e.content);if(t.length<1)throw Error("could not find html-safe-nonce on document");return t}let r=class ResponseError extends Error{constructor(e,t){super(`${e} for HTTP ${t.status}`),(0,i._)(this,"response",void 0),this.response=t,this.name="ResponseError"}};function s(e,t,n=!1){let i=t.headers.get("content-type")||"";if(!n&&!i.startsWith("text/html"))throw new r(`expected response with text/html, but was ${i}`,t);if(n&&!(i.startsWith("text/html")||i.startsWith("application/json")))throw new r(`expected response with text/html or application/json, but was ${i}`,t);let a=t.headers.get("x-html-safe");if(a){if(!e.includes(a))throw new r("response X-HTML-Safe nonce did not match",t)}else throw new r("missing X-HTML-Safe nonce",t)}},53885:(e,t,n)=>{n.d(t,{e:()=>l});var i=n(68273),a=n(16522),r=n(37285),s=n(50129);let l=(0,i.xS)()?function(e,t){let n,i=(0,a.c)(2),{basePageDataUrl:l}=(0,s.Yu)(),o=`${l}/page_data/${e}`;return t&&(o+=`?${t}`),i[0]!==o?(n=(0,r.RD)(o),i[0]=o,i[1]=n):n=i[1],n}:function(e,t){let{basePageDataUrl:n}=(0,s.Yu)(),i=`${n}/page_data/${e}`;return t&&(i+=`?${t}`),(0,r.RD)(i)}},56092:(e,t,n)=>{n.d(t,{H:()=>l});var i=n(96540);let a=”undefined”!=typeof globalThis&&void 0!==globalThis.window,r=”undefined”!=typeof process&&!1,s={timeout:150,useIdleCallback:!0};function l(e,t={}){let{timeout:n,useIdleCallback:o}={…s,…t};if(!a||r)return void e();let d=()=>{“function”==typeof i.startTransition?(0,i.startTransition)(e):e()},c=globalThis;o&&”function”==typeof c.requestIdleCallback?c.requestIdleCallback(d,{timeout:n}):setTimeout(d,0)}},59432:(e,t,n)=>{n.d(t,{b:()=>ry});var i,a,r,s,l,o=n(74848),d=n(68273),c=n(16522),u=n(70719),m=n(79472),f=n(18799),h=n(69599),p=n(83494),g=n(70843),x=n(57387),b=n(87555),v=n(34164),y=n(96540),j=n(70170),C=n(56051),w=n(5524),N=n(57478),S=n(96459),L=n(53627),D=n(82603),I=n(27011);let _=(0,y.forwardRef)((0,d.Z6)()?function(e,t){let n,i,a,r,s,l,d,u,m,f,h,p,g,x,b,v,_=(0,c.c)(62),{basePath:k,fileFilterMenuOptions:A,fileFilterState:E,filterSize:T,viewerLogin:O,setFileFilterState:P}=e,[F]=(0,S.o)();_[0]!==k?(n={basePath:k},_[0]=k,_[1]=n):n=_[1];let{data:$}=(0,D.dG)(n),M=(0,y.useRef)(null);_[2]===Symbol.for(“react.memo_cache_sentinel”)?(i=()=>({focus:()=>{M.current?.focus()}}),_[2]=i):i=_[2],(0,y.useImperativeHandle)(t,i),_[3]!==E?(a={…E},_[3]=E,_[4]=a):a=_[4];let{filterText:B,fileExtensions:V,unselectedFileExtensions:U,showOnlyOwnedFiles:H,showDeletedFiles:G,showOnlyManifestFiles:q,showVendoredFiles:K,showViewedFiles:z}=a,{canSeeDeletedFilesFilter:W,canSeeOnlyManifestFilesFilter:Z,canSeeVendorFilesFilter:Q}=A,X=(0,I.q6)(),{clearAllFilters:J}=(0,I.or)(),{canSeeCodeownersFilter:Y}=A,ee=0;if($){let e;Y=$.isViewerOneOfMultipleCodeowners,_[5]!==$.ownershipByPath?(e=Object.values($.ownershipByPath).filter(R),_[5]=$.ownershipByPath,_[6]=e):e=_[6],ee=e.length}let et=(0,y.useRef)((0,j.s)(e=>ei({filterText:e}),250)),en=(e,t)=>{let n=U;”selectFileExtension”===e?n=new Set([…U].filter(e=>e!==t.extension)):”unselectFileExtension”===e&&(n=new Set([…U,t.extension]));let i=Object.keys(V).filter(e=>!n.has(e)),a=new URLSearchParams(F);a.delete(“file-filters[]”),i.map(e=>{a.append(“file-filters[]”,e)}),ei({unselectedFileExtensions:n},a)};_[7]!==P?(r=(e,t)=>{t&&(0,L.MM)(t),P({…e})},_[7]=P,_[8]=r):r=_[8];let ei=r;_[9]!==J||_[10]!==F?(s=()=>{let e=new URLSearchParams(F);e.delete(“file-filters[]”),e.delete(“owned-by[]”),e.delete(“show-deleted-files”),e.delete(“manifests”),e.delete(“show-vendored-files”),e.delete(“show-viewed-files”),(0,L.MM)(e),J()},_[9]=J,_[10]=F,_[11]=s):s=_[11];let ea=s;return _[12]!==et?(l=e=>et.current(e),_[12]=et,_[13]=l):l=_[13],_[14]!==Y||_[15]!==ee||_[16]!==ei||_[17]!==F||_[18]!==H||_[19]!==O?(d=Y&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.l.Divider,{}),(0,o.jsx)(w.l.Group,{selectionVariant:”single”,children:(0,o.jsx)(w.l.Item,{selected:H,onSelect:()=>{if(!O)return;let e=new URLSearchParams(F);H?e.delete(“owned-by[]”,O):e.set(“owned-by[]”,O),ei({showOnlyOwnedFiles:!H},e)},children:(0,o.jsxs)(o.Fragment,{children:[“Only files owned by you “,(0,o.jsx)(N.A,{children:ee})]})})})]}),_[14]=Y,_[15]=ee,_[16]=ei,_[17]=F,_[18]=H,_[19]=O,_[20]=d):d=_[20],_[21]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,o.jsx)(w.l.Divider,{}),_[21]=u):u=_[21],_[22]!==Z||_[23]!==ei||_[24]!==F||_[25]!==q?(m=Z&&(0,o.jsx)(w.l.Item,{selected:q,onSelect:()=>{let e=new URLSearchParams(F);e.set(“manifests”,`${!q}`),ei({showOnlyManifestFiles:!q},e)},children:”Only manifest files”}),_[22]=Z,_[23]=ei,_[24]=F,_[25]=q,_[26]=m):m=_[26],_[27]!==W||_[28]!==ei||_[29]!==F||_[30]!==G?(f=W&&(0,o.jsx)(w.l.Item,{selected:G,onSelect:()=>{let e=new URLSearchParams(F);e.set(“show-deleted-files”,`${!G}`),ei({showDeletedFiles:!G},e)},children:”Deleted files”}),_[27]=W,_[28]=ei,_[29]=F,_[30]=G,_[31]=f):f=_[31],_[32]!==Q||_[33]!==ei||_[34]!==F||_[35]!==K?(h=Q&&(0,o.jsx)(w.l.Item,{selected:K,onSelect:()=>{let e=new URLSearchParams(F);e.set(“show-vendored-files”,`${!K}`),ei({showVendoredFiles:!K},e)},children:”Vendored files”}),_[32]=Q,_[33]=ei,_[34]=F,_[35]=K,_[36]=h):h=_[36],_[37]!==ei||_[38]!==F||_[39]!==z?(p=()=>{let e=new URLSearchParams(F);e.set(“show-viewed-files”,`${!z}`),ei({showViewedFiles:!z},e)},_[37]=ei,_[38]=F,_[39]=z,_[40]=p):p=_[40],_[41]!==z||_[42]!==p?(g=(0,o.jsx)(w.l.Item,{selected:z,onSelect:p,children:”Viewed files”}),_[41]=z,_[42]=p,_[43]=g):g=_[43],_[44]!==f||_[45]!==h||_[46]!==g||_[47]!==m?(x=(0,o.jsxs)(w.l.Group,{“aria-label”:”More”,selectionVariant:”multiple”,children:[m,f,h,g]}),_[44]=f,_[45]=h,_[46]=g,_[47]=m,_[48]=x):x=_[48],_[49]!==x||_[50]!==d?(b=(0,o.jsxs)(o.Fragment,{children:[d,u,x]}),_[49]=x,_[50]=d,_[51]=b):b=_[51],_[52]!==V||_[53]!==T||_[54]!==B||_[55]!==X||_[56]!==ea||_[57]!==en||_[58]!==b||_[59]!==l||_[60]!==U?(v=(0,o.jsx)(C.kF,{filterSize:T,filterText:B,fileExtensions:V,unselectedFileExtensions:U,onFilterTextChange:l,onFilterChange:en,onClearAllFilters:ea,isFilteringActive:X,additionalFilterGroups:b,ref:M}),_[52]=V,_[53]=T,_[54]=B,_[55]=X,_[56]=ea,_[57]=en,_[58]=b,_[59]=l,_[60]=U,_[61]=v):v=_[61],v}:function({basePath:e,fileFilterMenuOptions:t,fileFilterState:n,filterSize:i,viewerLogin:a,setFileFilterState:r},s){let[l]=(0,S.o)(),{data:d}=(0,D.dG)({basePath:e}),c=(0,y.useRef)(null);(0,y.useImperativeHandle)(s,()=>({focus:()=>{c.current?.focus()}}));let{filterText:u,fileExtensions:m,unselectedFileExtensions:f,showOnlyOwnedFiles:h,showDeletedFiles:p,showOnlyManifestFiles:g,showVendoredFiles:x,showViewedFiles:b}={…n},{canSeeDeletedFilesFilter:v,canSeeOnlyManifestFilesFilter:_,canSeeVendorFilesFilter:R}=t,k=(0,I.q6)(),{clearAllFilters:A}=(0,I.or)(),{canSeeCodeownersFilter:E}=t,T=0;d&&(E=d.isViewerOneOfMultipleCodeowners,T=Object.values(d.ownershipByPath).filter(e=>e.isOwnedByViewer).length);let O=(0,y.useRef)((0,j.s)(e=>P({filterText:e}),250)),P=(0,y.useCallback)((e,t)=>{t&&(0,L.MM)(t),r({…e})},[r]),F=(0,y.useCallback)(()=>{let e=new URLSearchParams(l);e.delete(“file-filters[]”),e.delete(“owned-by[]”),e.delete(“show-deleted-files”),e.delete(“manifests”),e.delete(“show-vendored-files”),e.delete(“show-viewed-files”),(0,L.MM)(e),A()},[l,A]);return(0,o.jsx)(C.kF,{filterSize:i,filterText:u,fileExtensions:m,unselectedFileExtensions:f,onFilterTextChange:e=>O.current(e),onFilterChange:(e,t)=>{let n=f;”selectFileExtension”===e?n=new Set([…f].filter(e=>e!==t.extension)):”unselectFileExtension”===e&&(n=new Set([…f,t.extension]));let i=Object.keys(m).filter(e=>!n.has(e)),a=new URLSearchParams(l);a.delete(“file-filters[]”),i.map(e=>{a.append(“file-filters[]”,e)}),P({unselectedFileExtensions:n},a)},onClearAllFilters:F,isFilteringActive:k,additionalFilterGroups:(0,o.jsxs)(o.Fragment,{children:[E&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.l.Divider,{}),(0,o.jsx)(w.l.Group,{selectionVariant:”single”,children:(0,o.jsx)(w.l.Item,{selected:h,onSelect:()=>{if(!a)return;let e=new URLSearchParams(l);h?e.delete(“owned-by[]”,a):e.set(“owned-by[]”,a),P({showOnlyOwnedFiles:!h},e)},children:(0,o.jsxs)(o.Fragment,{children:[“Only files owned by you “,(0,o.jsx)(N.A,{children:T})]})})})]}),(0,o.jsx)(w.l.Divider,{}),(0,o.jsxs)(w.l.Group,{“aria-label”:”More”,selectionVariant:”multiple”,children:[_&&(0,o.jsx)(w.l.Item,{selected:g,onSelect:()=>{let e=new URLSearchParams(l);e.set(“manifests”,`${!g}`),P({showOnlyManifestFiles:!g},e)},children:”Only manifest files”}),v&&(0,o.jsx)(w.l.Item,{selected:p,onSelect:()=>{let e=new URLSearchParams(l);e.set(“show-deleted-files”,`${!p}`),P({showDeletedFiles:!p},e)},children:”Deleted files”}),R&&(0,o.jsx)(w.l.Item,{selected:x,onSelect:()=>{let e=new URLSearchParams(l);e.set(“show-vendored-files”,`${!x}`),P({showVendoredFiles:!x},e)},children:”Vendored files”}),(0,o.jsx)(w.l.Item,{selected:b,onSelect:()=>{let e=new URLSearchParams(l);e.set(“show-viewed-files”,`${!b}`),P({showViewedFiles:!b},e)},children:”Viewed files”})]})]}),ref:c})});try{_.displayName||(_.displayName=”FileFilter”)}catch{}function R(e){return e.isOwnedByViewer}var k=n(38621),A=n(11196),E=n(84268),T=n(60569),O=n(25556),P=n(35311),F=n(78049),$=n(34535),M=n(71315),B=n(77046);function V(e){if(!e||!M.cg)return;let t=M.cg.scrollY??0,n=e.getBoundingClientRect().top+t-10-60;M.cg.scrollTo({top:n,left:0}),e.focus()}let U=(0,y.memo)(function(e){let t,n=(0,c.c)(3),{changeType:i,isSymlink:a}=e;return n[0]!==i||n[1]!==a?(t=(0,o.jsx)(F.E,{status:i,isSymlink:a}),n[0]=i,n[1]=a,n[2]=t):t=n[2],t});U.displayName=”FileStatusIconItem”;let H=(0,y.memo)(function(e){let t,n,i,a,r,s,l,d,u,m,f=(0,c.c)(41),{file:h,depth:p,onSelect:g}=e,x=(0,y.useRef)(null),b=(0,y.useRef)(null),v=`#diff-${h.diff.pathDigest}`;f[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={focusRowRef:x,mouseRowRef:x},f[0]=t):t=f[0];let j=(0,$.Z)(t),C=h.diff.totalCommentsCount??0,w=h.diff.highestAnnotationLevel,N=(0,I.E5)(),S=(0,I.Py)(h.diff.pathDigest),D=h.fileName??”This file”,_=null;switch(C>0&&(D+=` has ${C<10?C:"9+"} ${C>1?”comments”:”comment”}`),w){case”WARNING”:{let e;D+=`${C>0?” and”:””} has warning annotations`,f[1]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(“div”,{className:”pl-1 fgColor-attention”,children:(0,o.jsx)(k.AlertIcon,{})}),f[1]=e):e=f[1],_=e;break}case”NOTICE”:{let e;D+=`${C>0?” and”:””} has notice annotations`,f[2]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(“div”,{className:”pl-1 fgColor-default”,children:(0,o.jsx)(k.InfoIcon,{})}),f[2]=e):e=f[2],_=e;break}case”FAILURE”:{let e;D+=`${C>0?” and”:””} has failure annotations`,f[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(“div”,{className:”pl-1 fgColor-danger”,children:(0,o.jsx)(k.XCircleFillIcon,{})}),f[3]=e):e=f[3],_=e}}f[4]!==_||f[5]!==D?(n={screenReaderText:D,annotationElement:_},f[4]=_,f[5]=D,f[6]=n):n=f[6];let{screenReaderText:R,annotationElement:O}=n;f[7]!==S?(i=()=>{if(x.current&&S){let e=window.setTimeout(()=>{let e=M.XC?.getElementById(“diff_file_tree”)?.parentElement,t=x.current.offsetTop,n=M.cg?.innerHeight??0;e&&(e.scrollTop=t-n/2)},0);return()=>{window.clearTimeout(e)}}},f[7]=S,f[8]=i):i=f[8],f[9]!==h.diff.pathDigest||f[10]!==S?(a=[h.diff.pathDigest,S],f[9]=h.diff.pathDigest,f[10]=S,f[11]=a):a=f[11],(0,y.useEffect)(i,a),f[12]!==v||f[13]!==h.diff.pathDigest||f[14]!==g||f[15]!==N?(r=e=>{if(e.nativeEvent instanceof KeyboardEvent){if(x?.current!==document.activeElement)return void e.preventDefault();if(“Enter”===e.key||” “===e.key){e.preventDefault(),N(h.diff.pathDigest),(0,L.Zu)(`diff-${h.diff.pathDigest}`),(0,L.kd)(window.location.href),g?.(),M.cg?.requestAnimationFrame(()=>{V(document.getElementById(`diff-${h.diff.pathDigest}`))});return}}if(e.nativeEvent instanceof MouseEvent){if(e.metaKey||e.ctrlKey||1===e.button){e.preventDefault(),window.open(v,”_blank”);return}N(h.diff.pathDigest),(0,L.Zu)(`diff-${h.diff.pathDigest}`),(0,L.kd)(window.location.href),g?.(),M.cg?.requestAnimationFrame(()=>{V(document.getElementById(`diff-${h.diff.pathDigest}`))})}},f[12]=v,f[13]=h.diff.pathDigest,f[14]=g,f[15]=N,f[16]=r):r=f[16];let P=r,F=h.fileName??””;f[17]!==v||f[18]!==F?(s=(0,o.jsx)(E.A,{href:v,muted:!0,ref:b,role:”presentation”,className:”fgColor-default”,tabIndex:-1,onClick:z,children:F}),f[17]=v,f[18]=F,f[19]=s):s=f[19];let H=s;return f[20]!==h.diff.changeType||f[21]!==h.diff.isSymlink?(l=(0,o.jsx)(T.G.LeadingVisual,{children:(0,o.jsx)(U,{changeType:h.diff.changeType,isSymlink:h.diff.isSymlink})}),f[20]=h.diff.changeType,f[21]=h.diff.isSymlink,f[22]=l):l=f[22],f[23]!==H||f[24]!==F||f[25]!==j?(d=j?(0,o.jsx)(A.m,{text:F,direction:”ne”,children:H}):H,f[23]=H,f[24]=F,f[25]=j,f[26]=d):d=f[26],f[27]!==O||f[28]!==w||f[29]!==C?(u=(!!C||w)&&(0,o.jsx)(T.G.TrailingVisual,{children:(0,o.jsxs)(“div”,{className:”d-flex flex-items-center flex-row”,children:[!!C&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(k.CommentIcon,{}),(0,o.jsx)(“div”,{className:”ml-1 text-bold fgColor-default f6″,children:C<10?C:"9+"})]}),O]})}),f[27]=O,f[28]=w,f[29]=C,f[30]=u):u=f[30],f[31]!==p||f[32]!==h.diff.path||f[33]!==h.diff.pathDigest||f[34]!==S||f[35]!==P||f[36]!==R||f[37]!==l||f[38]!==d||f[39]!==u?(m=(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(T.G.Item,{defaultExpanded:!0,"aria-label":R,"aria-level":p,current:S,id:h.diff.path,onSelect:P,ref:x,className:B.A["file-tree-row"],children:[l,d,u]},h.diff.pathDigest)}),f[31]=p,f[32]=h.diff.path,f[33]=h.diff.pathDigest,f[34]=S,f[35]=P,f[36]=R,f[37]=l,f[38]=d,f[39]=u,f[40]=m):m=f[40],m}),G=(0,y.memo)(function e({directory:t,depth:n=0,leadingPath:i="",sortByDiffOrder:a,onSelect:r,fileNodeRenderer:s}){let l=i?`${i}/`:"",d=(0,y.useRef)(null),c=(0,y.useRef)(null),u=(0,$.Z)({focusRowRef:c,mouseRowRef:d});if(!t.files.length&&1===t.directories.length)return(0,o.jsx)(o.Fragment,{children:t.directories.map(i=>(0,o.jsx)(e,{depth:0===n?1:n,directory:i,leadingPath:`${l}${t.name}`,sortByDiffOrder:a,onSelect:r,fileNodeRenderer:s},i.path))});function m(){return(0,o.jsx)(q,{directory:t,depth:n,sortByDiffOrder:a,onSelect:r,fileNodeRenderer:s})}return 0===n?m():(0,o.jsxs)(T.G.Item,{ref:c,defaultExpanded:!0,id:t.path,children:[(0,o.jsx)(T.G.LeadingVisual,{children:(0,o.jsx)(T.G.DirectoryIcon,{})}),(0,o.jsx)(“span”,{ref:d,children:`${l}${t.name}`}),u&&(0,o.jsx)(O.m,{“data-testid”:`${t.name}-directory-item-tooltip`,id:`${t.name}-directory-item-tooltip`,contentRef:c,”aria-label”:`${l}${t.name}`,open:!0,direction:”ne”}),(0,o.jsx)(T.G.SubTree,{children:m()})]},t.path)}),q=(0,y.memo)(function(e){let t,n,i,a=(0,c.c)(17),{directory:r,fileNodeRenderer:s,sortByDiffOrder:l,depth:d,onSelect:u}=e,m=void 0===d?0:d;a[0]!==r.directories||a[1]!==r.files||a[2]!==l?(t=r.files.map(W).concat(r.directories.map(Z)),l?t.sort(Q):t.sort(X),a[0]=r.directories,a[1]=r.files,a[2]=l,a[3]=t):t=a[3];let f=t;if(a[4]!==m||a[5]!==s||a[6]!==f||a[7]!==u||a[8]!==l){let e;a[10]!==m||a[11]!==s||a[12]!==u||a[13]!==l?(e=e=>”file”!==e.pathType?(0,o.jsx)(G,{depth:m+1,directory:e.node,fileNodeRenderer:s,sortByDiffOrder:l,onSelect:u},e.path):s?s({onSelect:u,file:e.node,depth:m+1}):(0,o.jsx)(H,{depth:m+1,file:e.node,onSelect:u},e.path),a[10]=m,a[11]=s,a[12]=u,a[13]=l,a[14]=e):e=a[14],n=f.map(e),a[4]=m,a[5]=s,a[6]=f,a[7]=u,a[8]=l,a[9]=n}else n=a[9];return a[15]!==n?(i=(0,o.jsx)(o.Fragment,{children:n}),a[15]=n,a[16]=i):i=a[16],i}),K=(0,y.memo)(function(e){let t,n,i,a=(0,c.c)(10),{diffs:r,fileNodeRenderer:s,sortByDiffOrder:l,className:d,onSelect:u}=e;a[0]!==r?(t=(0,P.xY)(r),a[0]=r,a[1]=t):t=a[1];let m=t;return a[2]!==s||a[3]!==m||a[4]!==u||a[5]!==l?(n=(0,o.jsx)(G,{directory:m,fileNodeRenderer:s,sortByDiffOrder:l,onSelect:u}),a[2]=s,a[3]=m,a[4]=u,a[5]=l,a[6]=n):n=a[6],a[7]!==d||a[8]!==n?(i=(0,o.jsx)(T.G,{“aria-label”:”File Tree”,className:d,children:n}),a[7]=d,a[8]=n,a[9]=i):i=a[9],i});try{H.displayName||(H.displayName=”File”)}catch{}try{G.displayName||(G.displayName=”Directory”)}catch{}try{q.displayName||(q.displayName=”DirectoryRendering”)}catch{}try{K.displayName||(K.displayName=”PullRequestDiffFileTree”)}catch{}function z(e){return e.preventDefault()}function W(e){return{path:e.filePath,pathType:”file”,node:e,sortOrder:e.sortOrder}}function Z(e){return{path:e.path,pathType:”directory”,node:e,sortOrder:e.sortOrder}}function Q(e,t){return e.sortOrder-t.sortOrder}function X(e,t){return(0,P.wH)(e.path,t.path)}var J=n(75202),Y=n(81960),ee=n(69726);let et=”GroupsList-module__GroupsListContainer–x6dMy”,en=”GroupsList-module__GroupsListItemsShiftLeft–PGMNM”,ei=”GroupsList-module__GroupItem–vAFCe”,ea=”GroupsList-module__GroupsListToggle–KO5Om”;var er=n(82130);let es=(0,d.Z6)()?function(){let e,t,n=(0,c.c)(5),{sendPullRequestAnalyticsEvent:i}=(0,er.q)(),a=(0,I.JA)();n[0]!==a||n[1]!==i?(e=e=>{let{isErrorState:t,unavailableReason:n,userPreferenceDisabled:r,hasGroups:s}=e,l=void 0!==t&&t,o=void 0!==r&&r,d=void 0!==s&&s;i(“change_groups.presented”,”CHANGE_GROUPS_PRESENTED”,{presented_and_visible:d&&!l&&!o,presented_and_not_visible:d&&!l&&o,has_groups:d,is_error_state:l,selected_group_id:a?.id,browser_width:”undefined”!=typeof window?window.innerWidth:0,…n&&{unavailable_reason:n},…a&&{selected_group_name:a.name}})},n[0]=a,n[1]=i,n[2]=e):e=n[2];let r=e;return n[3]!==r?(t={sendChangeGroupsPresentedEvent:r},n[3]=r,n[4]=t):t=n[4],t}:function(){let{sendPullRequestAnalyticsEvent:e}=(0,er.q)(),t=(0,I.JA)();return{sendChangeGroupsPresentedEvent:(0,y.useCallback)(({isErrorState:n=!1,unavailableReason:i,userPreferenceDisabled:a=!1,hasGroups:r=!1})=>{e(“change_groups.presented”,”CHANGE_GROUPS_PRESENTED”,{presented_and_visible:r&&!n&&!a,presented_and_not_visible:r&&!n&&a,has_groups:r,is_error_state:n,selected_group_id:t?.id,browser_width:”undefined”!=typeof window?window.innerWidth:0,…i&&{unavailable_reason:i},…t&&{selected_group_name:t.name}})},[e,t])}};var el=n(26108),eo=n(64451),ed=n(86877),ec=n(46720),eu=n(10576),em=n(21373);let ef=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(16),{onClose:s,onSubmit:l,returnFocusRef:d,feedbackOptions:u,precheckOther:m}=e,f=void 0!==m&&m,[h,p]=(0,y.useState)(!1);r[0]!==f?(t=f?[“OTHER”]:[],r[0]=f,r[1]=t):t=r[1];let[g,b]=(0,y.useState)(t),[v,j]=(0,y.useState)(“”);r[2]!==g||r[3]!==l||r[4]!==v?(n=e=>{e.preventDefault(),p(!0),g.length&&l({type:”NEGATIVE”,feedbackChoice:g,textResponse:v})},r[2]=g,r[3]=l,r[4]=v,r[5]=n):n=r[5];let C=n;return r[6]!==h||r[7]!==g||r[8]!==u||r[9]!==C||r[10]!==v?(i=()=>(0,o.jsxs)(“form”,{onSubmit:C,children:[(0,o.jsxs)(x.l.Body,{children:[(0,o.jsx)(“div”,{className:”mb-3″,children:(0,o.jsxs)(eo.A,{onChange:b,required:!0,children:[(0,o.jsx)(eo.A.Label,{children:”Category”}),u.map(e=>(0,o.jsxs)(ed.A,{id:`feedback_choice_${e.value}`,children:[(0,o.jsx)(ec.A,{value:e.value,checked:g.includes(e.value)}),(0,o.jsx)(ed.A.Label,{children:e.label})]},e.value)),h&&!g.length&&(0,o.jsx)(eo.A.Validation,{variant:”error”,children:”Please select a feedback category”})]})}),(0,o.jsxs)(ed.A,{id:”text_response”,children:[(0,o.jsx)(ed.A.Label,{children:”How should we improve this response?”}),(0,o.jsx)(eu.Ay,{block:!0,rows:2,wrap:”wrap”,name:”text_response”,value:v,resize:”vertical”,onChange:e=>j(e.currentTarget.value)})]})]}),(0,o.jsx)(x.l.Footer,{children:(0,o.jsx)(em.Q,{type:”submit”,disabled:h&&(!v||!g),children:”Submit”})})]}),r[6]=h,r[7]=g,r[8]=u,r[9]=C,r[10]=v,r[11]=i):i=r[11],r[12]!==s||r[13]!==d||r[14]!==i?(a=(0,o.jsx)(x.l,{onClose:s,title:”Provide additional feedback”,subtitle:”Please help us improve Groups by Copilot by sharing more details about these generated groups.”,returnFocusRef:d,renderBody:i}),r[12]=s,r[13]=d,r[14]=i,r[15]=a):a=r[15],a}:function({onClose:e,onSubmit:t,returnFocusRef:n,feedbackOptions:i,precheckOther:a=!1}){let[r,s]=(0,y.useState)(!1),[l,d]=(0,y.useState)(a?[“OTHER”]:[]),[c,u]=(0,y.useState)(“”),m=e=>{e.preventDefault(),s(!0),l.length&&t({type:”NEGATIVE”,feedbackChoice:l,textResponse:c})};return(0,o.jsx)(x.l,{onClose:e,title:”Provide additional feedback”,subtitle:”Please help us improve Groups by Copilot by sharing more details about these generated groups.”,returnFocusRef:n,renderBody:()=>(0,o.jsxs)(“form”,{onSubmit:m,children:[(0,o.jsxs)(x.l.Body,{children:[(0,o.jsx)(“div”,{className:”mb-3″,children:(0,o.jsxs)(eo.A,{onChange:d,required:!0,children:[(0,o.jsx)(eo.A.Label,{children:”Category”}),i.map(e=>(0,o.jsxs)(ed.A,{id:`feedback_choice_${e.value}`,children:[(0,o.jsx)(ec.A,{value:e.value,checked:l.includes(e.value)}),(0,o.jsx)(ed.A.Label,{children:e.label})]},e.value)),r&&!l.length&&(0,o.jsx)(eo.A.Validation,{variant:”error”,children:”Please select a feedback category”})]})}),(0,o.jsxs)(ed.A,{id:”text_response”,children:[(0,o.jsx)(ed.A.Label,{children:”How should we improve this response?”}),(0,o.jsx)(eu.Ay,{block:!0,rows:2,wrap:”wrap”,name:”text_response”,value:c,resize:”vertical”,onChange:e=>u(e.currentTarget.value)})]})]}),(0,o.jsx)(x.l.Footer,{children:(0,o.jsx)(em.Q,{type:”submit”,disabled:r&&(!c||!l),children:”Submit”})})]})})};try{ef.displayName||(ef.displayName=”NegativeFeedbackForm”)}catch{}let eh=(0,d.Z6)()?function(e){let t,n,i=(0,c.c)(5),{disabled:a,onSubmit:r}=e;return i[0]!==r?(t=()=>r({type:”POSITIVE”}),i[0]=r,i[1]=t):t=i[1],i[2]!==a||i[3]!==t?(n=(0,o.jsx)(el.K,{size:”small”,variant:”invisible”,disabled:a,icon:k.ThumbsupIcon,”aria-label”:”Positive feedback”,onClick:t}),i[2]=a,i[3]=t,i[4]=n):n=i[4],n}:function({disabled:e,onSubmit:t}){return(0,o.jsx)(el.K,{size:”small”,variant:”invisible”,disabled:e,icon:k.ThumbsupIcon,”aria-label”:”Positive feedback”,onClick:()=>t({type:”POSITIVE”})})},ep=(0,d.Z6)()?function(e){let t,n,i,a,r,s=(0,c.c)(12),{disabled:l,onSubmit:d,feedbackOptions:u}=e,[m,f]=(0,y.useState)(!1),h=(0,y.useRef)(null);s[0]!==d?(t=e=>{d(e),f(!1)},s[0]=d,s[1]=t):t=s[1];let p=t;return s[2]!==m||s[3]!==u||s[4]!==p?(n=m&&(0,o.jsx)(ef,{onClose:()=>f(!1),onSubmit:p,returnFocusRef:h,feedbackOptions:u}),s[2]=m,s[3]=u,s[4]=p,s[5]=n):n=s[5],s[6]===Symbol.for(“react.memo_cache_sentinel”)?(i=()=>f(!0),s[6]=i):i=s[6],s[7]!==l?(a=(0,o.jsx)(el.K,{ref:h,size:”small”,variant:”invisible”,disabled:l,icon:k.ThumbsdownIcon,”aria-label”:”Negative feedback”,onClick:i}),s[7]=l,s[8]=a):a=s[8],s[9]!==n||s[10]!==a?(r=(0,o.jsxs)(o.Fragment,{children:[n,a]}),s[9]=n,s[10]=a,s[11]=r):r=s[11],r}:function({disabled:e,onSubmit:t,feedbackOptions:n}){let[i,a]=(0,y.useState)(!1),r=(0,y.useRef)(null);return(0,o.jsxs)(o.Fragment,{children:[i&&(0,o.jsx)(ef,{onClose:()=>a(!1),onSubmit:e=>{t(e),a(!1)},returnFocusRef:r,feedbackOptions:n}),(0,o.jsx)(el.K,{ref:r,size:”small”,variant:”invisible”,disabled:e,icon:k.ThumbsdownIcon,”aria-label”:”Negative feedback”,onClick:()=>a(!0)})]})};try{eh.displayName||(eh.displayName=”PositiveFeedbackButton”)}catch{}try{ep.displayName||(ep.displayName=”NegativeFeedbackButton”)}catch{}var eg=n(20622),ex=n(53885),eb=n(94747),ev=n(48845);let ey=(0,d.Z6)()?function(){let e,t=(0,c.c)(2),n=(0,ex.e)(eg.uT.submitCopilotGroupsFeedback);return t[0]!==n?(e={mutationFn:async e=>{let{type:t,feedbackChoice:i,textResponse:a}=e,r={feedback:t};a&&(r.text_response=a),i&&i.length>0&&(r.feedback_choice=i);let s=await (0,ev.q$)(n,{method:”POST”,headers:{Accept:”application/json”},body:r}),l=await (0,ev.hp)(s);return(0,ev.R)(s,l),l}},t[0]=n,t[1]=e):e=t[1],(0,eb.n)(e)}:function(){let e=(0,ex.e)(eg.uT.submitCopilotGroupsFeedback);return(0,eb.n)({mutationFn:async({type:t,feedbackChoice:n,textResponse:i})=>{let a={feedback:t};i&&(a.text_response=i),n&&n.length>0&&(a.feedback_choice=n);let r=await (0,ev.q$)(e,{method:”POST”,headers:{Accept:”application/json”},body:a}),s=await (0,ev.hp)(r);return(0,ev.R)(r,s),s}})},ej=(0,d.Z6)()?e=>{let t,n,i,a,r,s=(0,c.c)(15),{onNegativeFeedbackSubmit:l}=e,[d,u]=(0,y.useState)(),{mutate:m}=ey(),f=(0,I.xW)().changeGroupFeedbackOptions;s[0]!==m?(t=e=>{u(e.type),m(e)},s[0]=m,s[1]=t):t=s[1];let h=t;s[2]!==h||s[3]!==l?(n=e=>{l(),h(e)},s[2]=h,s[3]=l,s[4]=n):n=s[4];let p=n;return s[5]!==h||s[6]!==d?(i=”NEGATIVE”!==d&&(0,o.jsx)(eh,{disabled:!!d,onSubmit:h}),s[5]=h,s[6]=d,s[7]=i):i=s[7],s[8]!==f||s[9]!==p||s[10]!==d?(a=”POSITIVE”!==d&&(0,o.jsx)(ep,{disabled:!!d,onSubmit:p,feedbackOptions:f}),s[8]=f,s[9]=p,s[10]=d,s[11]=a):a=s[11],s[12]!==i||s[13]!==a?(r=(0,o.jsxs)(“div”,{className:”d-flex”,children:[i,a]}),s[12]=i,s[13]=a,s[14]=r):r=s[14],r}:({onNegativeFeedbackSubmit:e})=>{let[t,n]=(0,y.useState)(),{mutate:i}=ey(),a=(0,I.xW)().changeGroupFeedbackOptions,r=e=>{n(e.type),i(e)};return(0,o.jsxs)(“div”,{className:”d-flex”,children:[“NEGATIVE”!==t&&(0,o.jsx)(eh,{disabled:!!t,onSubmit:r}),”POSITIVE”!==t&&(0,o.jsx)(ep,{disabled:!!t,onSubmit:t=>{e(),r(t)},feedbackOptions:a})]})},eC=(0,d.Z6)()?e=>{let t,n,i=(0,c.c)(5),{className:a,onNegativeFeedbackSubmit:r}=e;return i[0]!==r?(t=(0,o.jsx)(J.t,{fallback:null,children:(0,o.jsx)(ej,{onNegativeFeedbackSubmit:r})}),i[0]=r,i[1]=t):t=i[1],i[2]!==a||i[3]!==t?(n=(0,o.jsx)(“div”,{className:a,children:t}),i[2]=a,i[3]=t,i[4]=n):n=i[4],n}:({className:e,onNegativeFeedbackSubmit:t})=>(0,o.jsx)(“div”,{className:e,children:(0,o.jsx)(J.t,{fallback:null,children:(0,o.jsx)(ej,{onNegativeFeedbackSubmit:t})})});try{ej.displayName||(ej.displayName=”Feedback”)}catch{}try{eC.displayName||(eC.displayName=”GroupsFeedback”)}catch{}var ew=n(70263),eN=n(40235),eS=n(97286),eL=n(96379);function eD(e){switch(e){case”CREATED”:case”RUNNING”:case”STARTED”:case”WAITING”:return!1;default:return!0}}function eI(e){switch(e){case”ABANDONED”:case”FAILED”:case”SKIPPED”:return!0;default:return!1}}function e_({baseSha:e,headSha:t,changeGroupsURL:n}){return[eg.uT.changeGroups,n,`baseSha:${e}`,`headSha:${t}`]}let eR=(0,d.Z6)()?function(e,t){let n,i,a,r,s,l=(0,c.c)(15),o=(0,ex.e)(eg.uT.changeGroups);l[0]!==t||l[1]!==o||l[2]!==e?(n=e_({headSha:e,baseSha:t,changeGroupsURL:o}),l[0]=t,l[1]=o,l[2]=e,l[3]=n):n=l[3];let d=n,{updateChangeGroupGeneration:u}=(0,I.wL)(),m=(0,I.xW)();l[4]!==m?(i=()=>{let e=m.latestChangeGroupOrchestration?.state;if(e&&eD(e))return m},l[4]=m,l[5]=i):i=l[5];let f=i;return l[6]!==o||l[7]!==u?(a=async()=>{let e=await (0,eL.QJ)(o);if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();return u(t),t},l[6]=o,l[7]=u,l[8]=a):a=l[8],l[9]!==f?(r=f(),l[9]=f,l[10]=r):r=l[10],l[11]!==d||l[12]!==a||l[13]!==r?(s={queryKey:d,queryFn:a,initialData:r,staleTime:1/0},l[11]=d,l[12]=a,l[13]=r,l[14]=s):s=l[14],(0,eS.I)(s)}:function(e,t){let n=(0,ex.e)(eg.uT.changeGroups),i=e_({headSha:e,baseSha:t,changeGroupsURL:n}),{updateChangeGroupGeneration:a}=(0,I.wL)(),r=(0,I.xW)(),s=(0,y.useCallback)(()=>{let e=r.latestChangeGroupOrchestration?.state;if(e&&eD(e))return r},[r]);return(0,eS.I)({queryKey:i,queryFn:async()=>{let e=await (0,eL.QJ)(n);if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();return a(t),t},initialData:s(),staleTime:1/0})},ek=(0,d.Z6)()?function(e,t,n){let i,a,r=(0,c.c)(7),s=(0,ew.A)(),{refetch:l}=eR(n,t);r[0]!==s||r[1]!==l?(i=(0,j.n)(()=>{s()&&l()},2e3),r[0]=s,r[1]=l,r[2]=i):i=r[2];let o=i;r[3]!==t||r[4]!==n||r[5]!==o?(a=e=>{e?.base_commit_oid===t&&e?.head_commit_oid===n&&window.setTimeout(()=>o(),e.wait||0)},r[3]=t,r[4]=n,r[5]=o,r[6]=a):a=r[6];let d=a;(0,eN.x)(e,d)}:function(e,t,n){let i=(0,ew.A)(),{refetch:a}=eR(n,t),r=(0,y.useMemo)(()=>(0,j.n)(()=>{i()&&a()},2e3),[i,a]),s=(0,y.useMemo)(()=>e=>{e?.base_commit_oid===t&&e?.head_commit_oid===n&&window.setTimeout(()=>r(),e.wait||0)},[t,n,r]);(0,eN.x)(e,s)};function eA(e){switch(e){case”DIFF_TOO_LARGE”:case”TOO_MANY_GROUPS”:return”Groups are unavailable because the PR exceeds the size limit.”;case”DIFF_TOO_SMALL”:case”TOO_FEW_GROUPS”:return”Grouping was skipped because all changes are closely related.”;default:return”Copilot was unable to generate groups for this pull request.”}}var eE=n(82075);let eT=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h=(0,c.c)(46),{groups:p,activeGroupId:g,onSelectGroup:x,onClearActiveGroup:b,isLoadingState:j}=e,{sendPullRequestAnalyticsEvent:C}=(0,er.q)(),{sendChangeGroupsPresentedEvent:S}=es(),{fullDiff:L}=(0,I.L3)(),D=(0,I.a_)(),_=(0,I.TV)(),R=(0,I.r$)(),A=(0,y.useRef)(null),{error:E}=eR(L.headOid,L.baseOid),T=!!E&&!j;ek(D,L.baseOid,L.headOid),h[0]!==p.length||h[1]!==j||h[2]!==S||h[3]!==T||h[4]!==_?(t=()=>{j||(T||_?S({isErrorState:!0,unavailableReason:_||void 0}):p.length>0?S({isErrorState:!1,hasGroups:!0}):S({isErrorState:!1,hasGroups:!1}))},h[0]=p.length,h[1]=j,h[2]=S,h[3]=T,h[4]=_,h[5]=t):t=h[5],h[6]!==p||h[7]!==j||h[8]!==S||h[9]!==T||h[10]!==_?(n=[p,j,T,_,S],h[6]=p,h[7]=j,h[8]=S,h[9]=T,h[10]=_,h[11]=n):n=h[11],(0,y.useEffect)(t,n),h[12]!==b||h[13]!==C?(i=()=>{C(“groups_list.clear_group”,”GROUPS_LIST_ITEM”),b()},h[12]=b,h[13]=C,h[14]=i):i=h[14];let O=i;h[15]!==O?(a=()=>{O(),requestAnimationFrame(()=>{A.current?.focus()})},h[15]=O,h[16]=a):a=h[16];let P=a,F=p.length>0,{isCollapsed:$,handleToggleCollapsed:M}=eM(R);h[17]!==M?(r=()=>{M(),requestAnimationFrame(()=>{A.current?.focus()})},h[17]=M,h[18]=r):r=h[18];let B=r;h[19]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(Y.A,{as:”h2″,className:”h6″,children:”Groups by Copilot”}),h[19]=s):s=h[19];let V=s;return h[20]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,v.$)(et),h[20]=l):l=h[20],h[21]!==p.length||h[22]!==M||h[23]!==F||h[24]!==$||h[25]!==j?(d=j?(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center fgColor-muted pt-2 px-2 pb-1″,children:[V,(0,o.jsx)(“span”,{className:”ml-auto d-flex flex-items-center”,children:(0,o.jsx)(ee.A,{size:”small”,”aria-label”:”Loading change groups”})})]}):(0,o.jsxs)(“button”,{className:(0,v.$)(“d-flex flex-row flex-items-center fgColor-muted”,ea),onClick:M,”aria-expanded”:!$,ref:A,children:[V,$&&F&&(0,o.jsx)(N.A,{scheme:”secondary”,className:”mx-2″,children:p.length}),$?(0,o.jsx)(k.ChevronDownIcon,{className:”ml-auto”}):(0,o.jsx)(k.ChevronUpIcon,{className:”ml-auto”})]}),h[21]=p.length,h[22]=M,h[23]=F,h[24]=$,h[25]=j,h[26]=d):d=h[26],h[27]!==g||h[28]!==p||h[29]!==O||h[30]!==P||h[31]!==F||h[32]!==$||h[33]!==x||h[34]!==B?(u=F&&(0,o.jsxs)(“div”,{className:(0,v.$)(“mt-n2”,en),children:[$&&!g?(0,o.jsx)(“div”,{className:”pb-2″}):(0,o.jsxs)(w.l,{children:[!$&&(0,o.jsx)(w.l.Item,{active:void 0===g,onSelect:O,children:”All files”},”All files”),p.toSorted(eO).map(e=>(0,o.jsx)(eF,{group:e,activeGroupId:g,onSelectGroup:x,isListCollapsed:$,onClickGroupWhenCollapsed:P},e.id)).filter(Boolean)]}),!$&&(0,o.jsx)(eC,{className:”ml-2″,onNegativeFeedbackSubmit:B})]}),h[27]=g,h[28]=p,h[29]=O,h[30]=P,h[31]=F,h[32]=$,h[33]=x,h[34]=B,h[35]=u):u=h[35],h[36]!==F||h[37]!==$||h[38]!==j||h[39]!==T||h[40]!==_?(m=!$&&!F&&!j&&(0,o.jsx)(“div”,{className:”px-2 pb-2 pt-0 f6 fgColor-muted”,children:_?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“p”,{className:”mb-0 d-inline”,children:eA(_)}),” “,(0,o.jsx)(eP,{})]}):T&&(0,o.jsx)(“p”,{className:”mb-0″,children:”No groups created”})}),h[36]=F,h[37]=$,h[38]=j,h[39]=T,h[40]=_,h[41]=m):m=h[41],h[42]!==m||h[43]!==d||h[44]!==u?(f=(0,o.jsxs)(“div”,{className:l,children:[d,u,m]}),h[42]=m,h[43]=d,h[44]=u,h[45]=f):f=h[45],f}:function({groups:e,activeGroupId:t,onSelectGroup:n,onClearActiveGroup:i,isLoadingState:a}){let{sendPullRequestAnalyticsEvent:r}=(0,er.q)(),{sendChangeGroupsPresentedEvent:s}=es(),{fullDiff:l}=(0,I.L3)(),d=(0,I.a_)(),c=(0,I.TV)(),u=(0,I.r$)(),m=(0,y.useRef)(null),{error:f}=eR(l.headOid,l.baseOid),h=!!f&&!a;ek(d,l.baseOid,l.headOid),(0,y.useEffect)(()=>{a||(h||c?s({isErrorState:!0,unavailableReason:c||void 0}):e.length>0?s({isErrorState:!1,hasGroups:!0}):s({isErrorState:!1,hasGroups:!1}))},[e,a,h,c,s]);let p=()=>{r(“groups_list.clear_group”,”GROUPS_LIST_ITEM”),i()},g=()=>{p(),requestAnimationFrame(()=>{m.current?.focus()})},x=e.length>0,{isCollapsed:b,handleToggleCollapsed:j}=eM(u),C=(0,o.jsx)(Y.A,{as:”h2″,className:”h6″,children:”Groups by Copilot”});return(0,o.jsxs)(“div”,{className:(0,v.$)(et),children:[a?(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center fgColor-muted pt-2 px-2 pb-1″,children:[C,(0,o.jsx)(“span”,{className:”ml-auto d-flex flex-items-center”,children:(0,o.jsx)(ee.A,{size:”small”,”aria-label”:”Loading change groups”})})]}):(0,o.jsxs)(“button”,{className:(0,v.$)(“d-flex flex-row flex-items-center fgColor-muted”,ea),onClick:j,”aria-expanded”:!b,ref:m,children:[C,b&&x&&(0,o.jsx)(N.A,{scheme:”secondary”,className:”mx-2″,children:e.length}),b?(0,o.jsx)(k.ChevronDownIcon,{className:”ml-auto”}):(0,o.jsx)(k.ChevronUpIcon,{className:”ml-auto”})]}),x&&(0,o.jsxs)(“div”,{className:(0,v.$)(“mt-n2”,en),children:[b&&!t?(0,o.jsx)(“div”,{className:”pb-2″}):(0,o.jsxs)(w.l,{children:[!b&&(0,o.jsx)(w.l.Item,{active:void 0===t,onSelect:p,children:”All files”},”All files”),e.toSorted((e,t)=>t.priority-e.priority).map(e=>(0,o.jsx)(eF,{group:e,activeGroupId:t,onSelectGroup:n,isListCollapsed:b,onClickGroupWhenCollapsed:g},e.id)).filter(Boolean)]}),!b&&(0,o.jsx)(eC,{className:”ml-2″,onNegativeFeedbackSubmit:()=>{j(),requestAnimationFrame(()=>{m.current?.focus()})}})]}),!b&&!x&&!a&&(0,o.jsx)(“div”,{className:”px-2 pb-2 pt-0 f6 fgColor-muted”,children:c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“p”,{className:”mb-0 d-inline”,children:eA(c)}),” “,(0,o.jsx)(eP,{})]}):h&&(0,o.jsx)(“p”,{className:”mb-0″,children:”No groups created”})})]})};function eO(e,t){return t.priority-e.priority}let eP=(0,d.Z6)()?function(){let e,t,n,i,a=(0,c.c)(9),r=(0,y.useRef)(null),{mutate:s}=ey(),[l,d]=(0,y.useState)(!1),u=(0,I.xW)().changeGroupFeedbackOptions;a[0]!==s?(e=e=>{s(e),d(!1)},a[0]=s,a[1]=e):e=a[1];let m=e;return a[2]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(E.A,{className:”d-inline”,as:”button”,ref:r,inline:!0,muted:!0,onClick:()=>d(!0),children:”Give feedback”}),a[2]=t):t=a[2],a[3]!==l||a[4]!==u||a[5]!==m?(n=l&&(0,o.jsx)(ef,{feedbackOptions:u,onSubmit:m,onClose:()=>d(!1),returnFocusRef:r,precheckOther:!0}),a[3]=l,a[4]=u,a[5]=m,a[6]=n):n=a[6],a[7]!==n?(i=(0,o.jsxs)(o.Fragment,{children:[t,n]}),a[7]=n,a[8]=i):i=a[8],i}:function(){let e=(0,y.useRef)(null),{mutate:t}=ey(),[n,i]=(0,y.useState)(!1),a=(0,I.xW)().changeGroupFeedbackOptions;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(E.A,{className:”d-inline”,as:”button”,ref:e,inline:!0,muted:!0,onClick:()=>i(!0),children:”Give feedback”}),n&&(0,o.jsx)(ef,{feedbackOptions:a,onSubmit:e=>{t(e),i(!1)},onClose:()=>i(!1),returnFocusRef:e,precheckOther:!0})]})},eF=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l=(0,c.c)(20),{group:d,activeGroupId:u,isListCollapsed:m,onSelectGroup:f,onClickGroupWhenCollapsed:h}=e,{sendPullRequestAnalyticsEvent:p}=(0,er.q)(),g=(0,y.useRef)(null);l[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={focusRowRef:g,mouseRowRef:g},l[0]=t):t=l[0];let x=(0,$.Z)(t);l[1]!==d.id||l[2]!==f||l[3]!==p?(n=()=>{p(“groups_list.select_group”,”GROUPS_LIST_ITEM”),f(d.id)},l[1]=d.id,l[2]=f,l[3]=p,l[4]=n):n=l[4];let b=n,j=u===d.id;if(m&&!j)return null;let C=`${d.name}-${m?”collapsed”:”expanded”}`,N=m?void 0:b;l[5]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,v.$)(ei,”PRIVATE_TreeView-item-content-text”),l[5]=i):i=l[5],l[6]!==d.name?(a=(0,o.jsx)(“div”,{className:i,children:d.name}),l[6]=d.name,l[7]=a):a=l[7],l[8]!==m||l[9]!==h?(r=m?(0,o.jsx)(w.l.TrailingAction,{as:”button”,label:”Clear active group”,icon:k.XIcon,onClick:e=>{e.preventDefault(),e.stopPropagation(),h()}}):null,l[8]=m,l[9]=h,l[10]=r):r=l[10],l[11]!==j||l[12]!==C||l[13]!==N||l[14]!==a||l[15]!==r?(s=(0,o.jsxs)(w.l.Item,{active:j,onSelect:N,ref:g,children:[a,r]},C),l[11]=j,l[12]=C,l[13]=N,l[14]=a,l[15]=r,l[16]=s):s=l[16];let S=s;if(x){let e;return l[17]!==d.name||l[18]!==S?(e=(0,o.jsx)(A.m,{text:d.name,direction:”ne”,children:S}),l[17]=d.name,l[18]=S,l[19]=e):e=l[19],e}return S}:function({group:e,activeGroupId:t,isListCollapsed:n,onSelectGroup:i,onClickGroupWhenCollapsed:a}){let{sendPullRequestAnalyticsEvent:r}=(0,er.q)(),s=(0,y.useRef)(null),l=(0,$.Z)({focusRowRef:s,mouseRowRef:s}),d=t===e.id;if(n&&!d)return null;let c=(0,o.jsxs)(w.l.Item,{active:d,onSelect:n?void 0:()=>{r(“groups_list.select_group”,”GROUPS_LIST_ITEM”),i(e.id)},ref:s,children:[(0,o.jsx)(“div”,{className:(0,v.$)(ei,”PRIVATE_TreeView-item-content-text”),children:e.name}),n?(0,o.jsx)(w.l.TrailingAction,{as:”button”,label:”Clear active group”,icon:k.XIcon,onClick:e=>{e.preventDefault(),e.stopPropagation(),a()}}):null]},`${e.name}-${n?”collapsed”:”expanded”}`);return l?(0,o.jsx)(A.m,{text:e.name,direction:”ne”,children:c}):c};function e$(e){return`GroupsListIsCollapsed_${e}`}function eM(e){let t=(0,eE.A)(“localStorage”),[n,i]=(0,y.useState)(!1),{sendPullRequestAnalyticsEvent:a}=(0,er.q)();return(0,y.useEffect)(()=>{let n=t.getItem(e$(e));null!==n&&i(JSON.parse(n))},[]),{isCollapsed:n,handleToggleCollapsed:()=>{let r=!n;M.cg?.requestAnimationFrame(()=>{t.setItem(e$(e),JSON.stringify(r))}),i(()=>r),a(“groups_list.toggle_collapse”,”GROUPS_LIST_TOGGLE”,{is_collapsed:r})}}}try{eT.displayName||(eT.displayName=”GroupsList”)}catch{}try{eP.displayName||(eP.displayName=”FeedbackButton”)}catch{}try{eF.displayName||(eF.displayName=”GroupItem”)}catch{}let eB=”PullRequestFileTree-module__sidebar–A_ZKx”,eV=”PullRequestFileTree-module__FileTreeScrollable–tm_BE”,eU=”pr-file-tree”,eH=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,p,g=(0,c.c)(35),{className:x,fileFilter:b,filteredDiffs:j,onFileSelected:C,onSetFilterState:w,allowPullRequestGroups:N}=e,S=void 0!==N&&N,L=(0,I.iY)(),D=(0,I.YL)(),_=(0,I.ww)(),R=(0,I.Fl)(),k=(0,I.WA)(),{sendChangeGroupsPresentedEvent:A}=es();g[0]!==R?(t=R&&!eD(R.state),g[0]=R,g[1]=t):t=g[1];let E=t,T=(0,I.TV)();g[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,h.G7)(“hide_groups_list_for_few_groups”),g[2]=n):n=g[2];let O=n&&(“TOO_FEW_GROUPS”===T||”DIFF_TOO_SMALL”===T||”NOT_GENERATED_YET”===T);return g[3]!==S||g[4]!==L.length||g[5]!==_||g[6]!==A||g[7]!==k?(i=()=>{S&&L.length>0&&!_&&!k&&A({isErrorState:!1,userPreferenceDisabled:!0,hasGroups:!0})},a=[S,_,k,A,L.length],g[3]=S,g[4]=L.length,g[5]=_,g[6]=A,g[7]=k,g[8]=i,g[9]=a):(i=g[8],a=g[9]),(0,y.useEffect)(i,a),g[10]!==D||g[11]!==S||g[12]!==L||g[13]!==_||g[14]!==E||g[15]!==w||g[16]!==O||g[17]!==k?(r=S&&!_&&k&&!O&&(0,o.jsx)(eT,{activeGroupId:D,groups:L,onClearActiveGroup:()=>{w({activeChangeGroupId:void 0})},onSelectGroup:e=>{w({activeChangeGroupId:e})},isLoadingState:E||!1}),g[10]=D,g[11]=S,g[12]=L,g[13]=_,g[14]=E,g[15]=w,g[16]=O,g[17]=k,g[18]=r):r=g[18],g[19]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(“span”,{children:”File tree failed to load.”}),g[19]=s):s=g[19],g[20]!==x?(l=(0,v.$)(“d-flex flex-column min-height-0”,x),g[20]=x,g[21]=l):l=g[21],g[22]!==b?(d=(0,o.jsx)(“div”,{className:”pb-3 pr-lg-3″,children:b}),g[22]=b,g[23]=d):d=g[23],g[24]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,o.jsx)(“h2″,{className:”sr-only”,children:”File tree”}),g[24]=u):u=g[24],g[25]!==j||g[26]!==C?(m=(0,o.jsxs)(“div”,{className:eV,children:[u,(0,o.jsx)(K,{diffs:j,fileNodeRenderer:eG,sortByDiffOrder:!0,onSelect:C,className:”pr-lg-3″})]}),g[25]=j,g[26]=C,g[27]=m):m=g[27],g[28]!==m||g[29]!==l||g[30]!==d?(f=(0,o.jsx)(J.t,{fallback:s,children:(0,o.jsxs)(“div”,{className:l,id:eU,children:[d,m]})}),g[28]=m,g[29]=l,g[30]=d,g[31]=f):f=g[31],g[32]!==f||g[33]!==r?(p=(0,o.jsxs)(“div”,{className:”d-flex flex-column height-fit”,children:[r,f]}),g[32]=f,g[33]=r,g[34]=p):p=g[34],p}:function({className:e,fileFilter:t,filteredDiffs:n,onFileSelected:i,onSetFilterState:a,allowPullRequestGroups:r=!1}){let s=(0,y.useCallback)(e=>(0,o.jsx)(eq,{…e},e.file.filePath),[]),l=(0,I.iY)(),d=(0,I.YL)(),c=(0,I.ww)(),u=(0,I.Fl)(),m=(0,I.WA)(),{sendChangeGroupsPresentedEvent:f}=es(),p=u&&!eD(u.state),g=(0,I.TV)(),x=(0,h.G7)(“hide_groups_list_for_few_groups”);return(0,y.useEffect)(()=>{r&&l.length>0&&!c&&!m&&f({isErrorState:!1,userPreferenceDisabled:!0,hasGroups:!0})},[r,c,m,f,l.length]),(0,o.jsxs)(“div”,{className:”d-flex flex-column height-fit”,children:[r&&!c&&m&&!(x&&(“TOO_FEW_GROUPS”===g||”DIFF_TOO_SMALL”===g||”NOT_GENERATED_YET”===g))&&(0,o.jsx)(eT,{activeGroupId:d,groups:l,onClearActiveGroup:()=>{a({activeChangeGroupId:void 0})},onSelectGroup:e=>{a({activeChangeGroupId:e})},isLoadingState:p||!1}),(0,o.jsx)(J.t,{fallback:(0,o.jsx)(“span”,{children:”File tree failed to load.”}),children:(0,o.jsxs)(“div”,{className:(0,v.$)(“d-flex flex-column min-height-0”,e),id:eU,children:[(0,o.jsx)(“div”,{className:”pb-3 pr-lg-3″,children:t}),(0,o.jsxs)(“div”,{className:eV,children:[(0,o.jsx)(“h2″,{className:”sr-only”,children:”File tree”}),(0,o.jsx)(K,{diffs:n,fileNodeRenderer:s,sortByDiffOrder:!0,onSelect:i,className:”pr-lg-3″})]})]})})]})};function eG(e){return(0,o.jsx)(eq,{…e},e.file.filePath)}let eq=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l=(0,c.c)(14);l[0]!==e?({file:t,…n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t.diff?(i=Object.values(t.diff?.markersMap??{}).flatMap(ez),l[3]=t.diff,l[4]=i):i=l[4];let d=i,u=(0,I.Qb)(d);l[5]!==u||l[6]!==t.diff?(a={…t.diff,totalCommentsCount:u},l[5]=u,l[6]=t.diff,l[7]=a):a=l[7],l[8]!==t||l[9]!==a?(r={…t,diff:a},l[8]=t,l[9]=a,l[10]=r):r=l[10];let m=r;return l[11]!==m||l[12]!==n?(s=(0,o.jsx)(H,{file:m,…n}),l[11]=m,l[12]=n,l[13]=s):s=l[13],s}:function({file:e,…t}){let n=(0,y.useMemo)(()=>Object.values(e.diff?.markersMap??{}).flatMap(e=>e.threads.map(e=>e.id)),[e.diff]),i=(0,I.Qb)(n),a=(0,y.useMemo)(()=>({…e,diff:{…e.diff,totalCommentsCount:i}}),[e,i]);return(0,o.jsx)(H,{file:a,…t})});try{eH.displayName||(eH.displayName=”PullRequestFileTree”)}catch{}try{eq.displayName||(eq.displayName=”PullRequestFile”)}catch{}function eK(e){return e.id}function ez(e){return e.threads.map(eK)}var eW=n(11680),eZ=n(25407);let eQ=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(17),{pageLimits:s,repository:l,urls:d,isDiffVirtualizationEnabled:u}=e,m=s.filesLimitExceeded||s.reviewThreadsLimitExceeded||s.annotationsLimitExceeded;r[0]!==s.annotationsLimit||r[1]!==s.annotationsLimitExceeded||r[2]!==s.filesLimit||r[3]!==s.filesLimitExceeded||r[4]!==s.reviewThreadsLimit||r[5]!==s.reviewThreadsLimitExceeded?(t=()=>{let e=[];s.filesLimitExceeded&&e.push(`${s.filesLimit} files`),s.reviewThreadsLimitExceeded&&e.push(`${s.reviewThreadsLimit} comments`),s.annotationsLimitExceeded&&e.push(`${s.annotationsLimit} alerts`);let t=””;return 1===e.length?t=`${e[0]}`:2===e.length?t=`${e[0]} and ${e[1]}`:3===e.length&&(t=`${e[0]}, ${e[1]}, and ${e[2]}`),”Only the first “+t+” are currently being shown.”},r[0]=s.annotationsLimit,r[1]=s.annotationsLimitExceeded,r[2]=s.filesLimit,r[3]=s.filesLimitExceeded,r[4]=s.reviewThreadsLimit,r[5]=s.reviewThreadsLimitExceeded,r[6]=t):t=r[6];let f=t;r[7]!==l?(n=async function(){let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,eL.DI)((0,eZ.ZD8)({repo:l}),{body:e,method:”POST”})},r[7]=l,r[8]=n):n=r[8];let h=n;r[9]!==h||r[10]!==u||r[11]!==f||r[12]!==m||r[13]!==d.files?(i=function(){return!m&&u?(0,o.jsxs)(o.Fragment,{children:[“Virtualization has been enabled to improve performance.”,” “,(0,o.jsx)(E.A,{inline:!0,href:`${d.files}?new_files_changed=false`,onClick:h,rel:”noreferrer”,children:”Switch back”}),” “,”to the classic page.”]}):(0,o.jsxs)(o.Fragment,{children:[u&&(0,o.jsxs)(“span”,{children:[“Virtualization has been enabled to improve performance.”,” “]}),(0,o.jsxs)(“span”,{children:[f(),” To see more,”,” “,(0,o.jsx)(E.A,{inline:!0,href:`${d.files}?new_files_changed=false`,onClick:h,rel:”noreferrer”,children:”switch back”}),” “,”to the classic page.”]})]})},r[9]=h,r[10]=u,r[11]=f,r[12]=m,r[13]=d.files,r[14]=i):i=r[14];let p=i;return m||u?(r[15]!==p?(a=(0,o.jsx)(eW.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:p(),className:”mb-3″}),r[15]=p,r[16]=a):a=r[16],a):null}:function({pageLimits:e,repository:t,urls:n,isDiffVirtualizationEnabled:i}){let a,r,s,l=e.filesLimitExceeded||e.reviewThreadsLimitExceeded||e.annotationsLimitExceeded;async function d(){let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,eL.DI)((0,eZ.ZD8)({repo:t}),{body:e,method:”POST”})}return l||i?(0,o.jsx)(eW.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:(s=”Virtualization has been enabled to improve performance.”,!l&&i?(0,o.jsxs)(o.Fragment,{children:[s,” “,(0,o.jsx)(E.A,{inline:!0,href:`${n.files}?new_files_changed=false`,onClick:d,rel:”noreferrer”,children:”Switch back”}),” “,”to the classic page.”]}):(0,o.jsxs)(o.Fragment,{children:[i&&(0,o.jsxs)(“span”,{children:[s,” “]}),(0,o.jsxs)(“span”,{children:[(a=[],e.filesLimitExceeded&&a.push(`${e.filesLimit} files`),e.reviewThreadsLimitExceeded&&a.push(`${e.reviewThreadsLimit} comments`),e.annotationsLimitExceeded&&a.push(`${e.annotationsLimit} alerts`),r=””,1===a.length?r=`${a[0]}`:2===a.length?r=`${a[0]} and ${a[1]}`:3===a.length&&(r=`${a[0]}, ${a[1]}, and ${a[2]}`),”Only the first “+r+” are currently being shown.”),” To see more,”,” “,(0,o.jsx)(E.A,{inline:!0,href:`${n.files}?new_files_changed=false`,onClick:d,rel:”noreferrer”,children:”switch back”}),” “,”to the classic page.”]})]})),className:”mb-3″}):null};try{eQ.displayName||(eQ.displayName=”PageLimitsBanner”)}catch{}let eX=”ViewedFileProgress-module__ProgressContainer–ZQ1e8″,eJ=”ViewedFileProgress-module__FilesCountText–q4rKx”,eY=”ViewedFileProgress-module__ViewedText–vvFsM”,e0=(0,d.Z6)()?e=>{let t,n,i,a,r=(0,c.c)(5),{progress:s}=e;r[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={transform:”rotate(-90deg)”},r[0]=t):t=r[0],r[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,o.jsx)(“circle”,{cx:”50%”,cy:”50%”,fill:”transparent”,r:”6″,stroke:”var(–borderColor-default, var(–color-border-default))”,strokeWidth:”2″}),r[1]=n):n=r[1];let l=38-38*s;return r[2]===Symbol.for(“react.memo_cache_sentinel”)?(i={transition:”stroke-dashoffset 0.35s”},r[2]=i):i=r[2],r[3]!==l?(a=(0,o.jsxs)(“svg”,{“data-circumference”:”38″,height:”16″,role:”presentation”,style:t,width:”16″,children:[n,(0,o.jsx)(“circle”,{cx:”50%”,cy:”50%”,fill:”transparent”,r:”6″,stroke:”var(–fgColor-done, var(–color-done-fg))”,strokeDasharray:38,strokeDashoffset:l,strokeLinecap:”round”,strokeWidth:”2″,style:i})]}),r[3]=l,r[4]=a):a=r[4],a}:({progress:e})=>(0,o.jsxs)(“svg”,{“data-circumference”:”38″,height:”16″,role:”presentation”,style:{transform:”rotate(-90deg)”},width:”16″,children:[(0,o.jsx)(“circle”,{cx:”50%”,cy:”50%”,fill:”transparent”,r:”6″,stroke:”var(–borderColor-default, var(–color-border-default))”,strokeWidth:”2″}),(0,o.jsx)(“circle”,{cx:”50%”,cy:”50%”,fill:”transparent”,r:”6″,stroke:”var(–fgColor-done, var(–color-done-fg))”,strokeDasharray:38,strokeDashoffset:38-38*e,strokeLinecap:”round”,strokeWidth:”2″,style:{transition:”stroke-dashoffset 0.35s”}})]}),e1=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(14),{totalFilesCount:u}=e,m=(0,I.gi)();if(0===u)return null;let f=(m??0)/u||0;return d[0]!==f?(t=(0,o.jsx)(e0,{progress:f}),d[0]=f,d[1]=t):t=d[1],d[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,v.$)(“ml-1”,eX),d[2]=n):n=d[2],d[3]!==m?(i=(0,o.jsx)(“span”,{className:eJ,children:m}),d[3]=m,d[4]=i):i=d[4],d[5]!==u?(a=(0,o.jsx)(“span”,{className:eJ,children:u}),d[5]=u,d[6]=a):a=d[6],d[7]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,o.jsx)(“span”,{className:eY,children:”viewed”}),d[7]=r):r=d[7],d[8]!==i||d[9]!==a?(s=(0,o.jsxs)(“span”,{className:n,children:[i,” /”,” “,a,” “,r]}),d[8]=i,d[9]=a,d[10]=s):s=d[10],d[11]!==t||d[12]!==s?(l=(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center”,children:[t,s]}),d[11]=t,d[12]=s,d[13]=l):l=d[13],l}:function({totalFilesCount:e}){let t=(0,I.gi)();return 0===e?null:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center”,children:[(0,o.jsx)(e0,{progress:(t??0)/e||0}),(0,o.jsxs)(“span”,{className:(0,v.$)(“ml-1”,eX),children:[(0,o.jsx)(“span”,{className:eJ,children:t}),” /”,” “,(0,o.jsx)(“span”,{className:eJ,children:e}),” “,(0,o.jsx)(“span”,{className:eY,children:”viewed”})]})]})};try{e0.displayName||(e0.displayName=”ProgressIcon”)}catch{}try{e1.displayName||(e1.displayName=”ViewedFileProgress”)}catch{}function e2(e){let t=document.querySelector(‘#__primerPortalRoot__ div[role=”dialog”]’),n=document.querySelector(`#${e} div[role=”dialog”]`);(t||n)&&document.dispatchEvent(new KeyboardEvent(“keydown”,{key:”Escape”,code:”Escape”,ctrlKey:!0}))}var e3=n(30093),e4=n(94236),e5=n(77430);function e6(e,t){return new Set([…e.filter(e=>{let{thread:n,previewInfo:i}=e;return function(e,t){let{filterText:n,showResolvedThreads:i}=t;if(!i&&e.isResolved||!t.showOutdatedThreads&&e.isOutdated)return!1;if(n){let t=n.toLowerCase();if(!e.authorLogin.toLowerCase().includes(t)&&!e.body.toLowerCase().includes(t)&&!e.path.toLowerCase().includes(t))return!1}return!t.selectedAuthor||e.authorLogin===t.selectedAuthor}({authorLogin:i.firstComment?.author?.login??””,body:i.firstComment?.body??””,id:i.threadId,isResolved:n?.isResolved??!1,isOutdated:n?.isOutdated??!1,path:i.path},t)}).map(e=>e.previewInfo.threadId??””)])}let e7={filterText:””,showResolvedThreads:!0,showOutdatedThreads:!0},e8=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x,b=(0,c.c)(42),{authorList:y,className:j,filterState:C,onFilterStateChange:N}=e;b[0]!==C||b[1]!==N?(t=e=>{N({…C,filterText:e})},b[0]=C,b[1]=N,b[2]=t):t=b[2];let S=t;b[3]!==C||b[4]!==N?(n=()=>{N({…C,showResolvedThreads:!C.showResolvedThreads})},b[3]=C,b[4]=N,b[5]=n):n=b[5];let L=n;b[6]!==C||b[7]!==N?(i=()=>{N({…C,showOutdatedThreads:!C.showOutdatedThreads})},b[6]=C,b[7]=N,b[8]=i):i=b[8];let D=i;b[9]!==C||b[10]!==N?(a=e=>{if(C.selectedAuthor===e)return N({…C,selectedAuthor:void 0});N({…C,selectedAuthor:e})},b[9]=C,b[10]=N,b[11]=a):a=b[11];let I=a;return b[12]!==j?(r=(0,v.$)(“d-flex flex-row gap-2 flex-nowrap”,j),b[12]=j,b[13]=r):r=b[13],b[14]!==S?(s=e=>S(e.target.value),b[14]=S,b[15]=s):s=b[15],b[16]!==C.filterText||b[17]!==s?(l=(0,o.jsx)(e3.A,{block:!0,”aria-label”:”Filter comments”,leadingVisual:k.SearchIcon,placeholder:”Filter comments”,value:C.filterText,onChange:s}),b[16]=C.filterText,b[17]=s,b[18]=l):l=b[18],b[19]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,o.jsx)(e4.W.Anchor,{children:(0,o.jsx)(em.Q,{“aria-label”:”Additional comment filters”,className:”flex-shink-0″,leadingVisual:k.FilterIcon,trailingAction:k.TriangleDownIcon,children:”Filter”})}),b[19]=d):d=b[19],b[20]!==L?(u=()=>L(),b[20]=L,b[21]=u):u=b[21],b[22]!==C.showResolvedThreads||b[23]!==u?(m=(0,o.jsx)(w.l.Item,{selected:C.showResolvedThreads,onSelect:u,children:”Show resolved comments”}),b[22]=C.showResolvedThreads,b[23]=u,b[24]=m):m=b[24],b[25]!==D?(f=()=>D(),b[25]=D,b[26]=f):f=b[26],b[27]!==C.showOutdatedThreads||b[28]!==f?(h=(0,o.jsx)(w.l.Item,{selected:C.showOutdatedThreads,onSelect:f,children:”Show outdated comments”}),b[27]=C.showOutdatedThreads,b[28]=f,b[29]=h):h=b[29],b[30]!==y||b[31]!==C.selectedAuthor||b[32]!==I?(p=y.length>1&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.l.Divider,{}),(0,o.jsxs)(w.l.Group,{children:[(0,o.jsx)(w.l.GroupHeading,{children:”Filter by”}),y.map(e=>(0,o.jsxs)(w.l.Item,{selected:C.selectedAuthor===e.login,onSelect:()=>I(e.login),children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(e5.r,{src:e.avatarUrl})}),e.login]},e.login))]})]}),b[30]=y,b[31]=C.selectedAuthor,b[32]=I,b[33]=p):p=b[33],b[34]!==m||b[35]!==h||b[36]!==p?(g=(0,o.jsxs)(e4.W,{children:[d,(0,o.jsx)(e4.W.Overlay,{width:”small”,children:(0,o.jsxs)(w.l,{selectionVariant:”single”,children:[m,h,p]})})]}),b[34]=m,b[35]=h,b[36]=p,b[37]=g):g=b[37],b[38]!==g||b[39]!==r||b[40]!==l?(x=(0,o.jsxs)(“div”,{className:r,children:[l,g]}),b[38]=g,b[39]=r,b[40]=l,b[41]=x):x=b[41],x}:function({authorList:e,className:t,filterState:n,onFilterStateChange:i}){return(0,o.jsxs)(“div”,{className:(0,v.$)(“d-flex flex-row gap-2 flex-nowrap”,t),children:[(0,o.jsx)(e3.A,{block:!0,”aria-label”:”Filter comments”,leadingVisual:k.SearchIcon,placeholder:”Filter comments”,value:n.filterText,onChange:e=>{var t;return t=e.target.value,void i({…n,filterText:t})}}),(0,o.jsxs)(e4.W,{children:[(0,o.jsx)(e4.W.Anchor,{children:(0,o.jsx)(em.Q,{“aria-label”:”Additional comment filters”,className:”flex-shink-0″,leadingVisual:k.FilterIcon,trailingAction:k.TriangleDownIcon,children:”Filter”})}),(0,o.jsx)(e4.W.Overlay,{width:”small”,children:(0,o.jsxs)(w.l,{selectionVariant:”single”,children:[(0,o.jsx)(w.l.Item,{selected:n.showResolvedThreads,onSelect:()=>void i({…n,showResolvedThreads:!n.showResolvedThreads}),children:”Show resolved comments”}),(0,o.jsx)(w.l.Item,{selected:n.showOutdatedThreads,onSelect:()=>void i({…n,showOutdatedThreads:!n.showOutdatedThreads}),children:”Show outdated comments”}),e.length>1&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.l.Divider,{}),(0,o.jsxs)(w.l.Group,{children:[(0,o.jsx)(w.l.GroupHeading,{children:”Filter by”}),e.map(e=>(0,o.jsxs)(w.l.Item,{selected:n.selectedAuthor===e.login,onSelect:()=>(e=>{if(n.selectedAuthor===e)return i({…n,selectedAuthor:void 0});i({…n,selectedAuthor:e})})(e.login),children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(e5.r,{src:e.avatarUrl})}),e.login]},e.login))]})]})]})})]})]})};try{e8.displayName||(e8.displayName=”CommentsFilter”)}catch{}var e9=n(61219),te=n(98091),tt=n(58615),tn=n(72511),ti=n(26607);let ta=”ConversationHeader-module__file-name-overflow–Ymb0e”,tr=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x,b=(0,c.c)(47),{firstCommentId:j,isCollapsed:C,isOutdated:w,isResolved:N,line:S,onToggleCollapsed:L,onNavigateToDiffComment:D,path:I,rightSideContent:_,threadId:R,headingLevel:T}=e,O=void 0===T?”h3″:T;b[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,eE.A)(“localStorage”),b[0]=t):t=b[0];let P=t,[F,$]=(0,y.useState)(C);b[1]!==R?(n=()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${R}`);null!==e&&$(JSON.parse(e))},b[1]=R,b[2]=n):n=b[2],b[3]!==F||b[4]!==R?(i=[F,R],b[3]=F,b[4]=R,b[5]=i):i=b[5],(0,y.useEffect)(n,i),b[6]!==F||b[7]!==L||b[8]!==R?(a=()=>{P.setItem(`reviewThreadIsCollapsed_${R}`,JSON.stringify(!F)),$(ts),L()},b[6]=F,b[7]=L,b[8]=R,b[9]=a):a=b[9];let M=a,B=F&&”rounded-2″,V=F&&”border-bottom-0″;b[10]!==B||b[11]!==V?(r=(0,v.$)(“d-flex flex-row flex-items-center px-2 py-1 bgColor-muted rounded-top-2 border-bottom”,B,V),b[10]=B,b[11]=V,b[12]=r):r=b[12];let U=F?”Open review comment”:”Close review comment”,H=F?k.ChevronRightIcon:k.ChevronDownIcon;b[13]!==M||b[14]!==H||b[15]!==U?(s=(0,o.jsx)(el.K,{“aria-label”:U,icon:H,size:”small”,variant:”invisible”,onClick:M}),b[13]=M,b[14]=H,b[15]=U,b[16]=s):s=b[16],b[17]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,v.$)(ta,”d-inline text-mono no-wrap overflow-hidden direction-rtl fgColor-default”),b[17]=l):l=b[17];let G=`#r${j}`;b[18]!==D||b[19]!==I||b[20]!==G?(d=(0,o.jsxs)(E.A,{className:l,onClick:D,href:G,muted:!0,children:[“\u200E”,I,”\u200E”]}),b[18]=D,b[19]=I,b[20]=G,b[21]=d):d=b[21],b[22]!==I||b[23]!==d?(u=(0,o.jsx)(A.m,{direction:”n”,text:I,type:”label”,children:d}),b[22]=I,b[23]=d,b[24]=u):u=b[24],b[25]!==S?(m=!!S&&(0,o.jsxs)(“span”,{className:”f6 fgColor-muted text-normal no-wrap ml-2″,children:[“Line “,S]}),b[25]=S,b[26]=m):m=b[26],b[27]!==O||b[28]!==u||b[29]!==m?(f=(0,o.jsxs)(Y.A,{as:O,className:”d-flex flex-items-center flex-1 min-width-0 mr-2 ml-1 f6 text-semibold”,children:[u,m]}),b[27]=O,b[28]=u,b[29]=m,b[30]=f):f=b[30],b[31]!==N?(h=N&&(0,o.jsx)(ti.A,{size:”large”,className:”mx-1″,variant:”secondary”,children:”Resolved”}),b[31]=N,b[32]=h):h=b[32],b[33]!==w||b[34]!==N?(p=w&&!N&&(0,o.jsx)(ti.A,{size:”large”,className:”mx-1″,variant:”attention”,children:”Outdated”}),b[33]=w,b[34]=N,b[35]=p):p=b[35];let q=`#r${j}`;return b[36]!==D||b[37]!==q?(g=(0,o.jsx)(el.K,{as:”a”,”aria-label”:”Jump to the comment in the diff”,tooltipDirection:”se”,icon:k.FileSymlinkFileIcon,variant:”invisible”,href:q,onClick:D}),b[36]=D,b[37]=q,b[38]=g):g=b[38],b[39]!==_||b[40]!==s||b[41]!==f||b[42]!==h||b[43]!==p||b[44]!==g||b[45]!==r?(x=(0,o.jsxs)(“div”,{className:r,children:[s,f,h,p,g,_]}),b[39]=_,b[40]=s,b[41]=f,b[42]=h,b[43]=p,b[44]=g,b[45]=r,b[46]=x):x=b[46],x}:function({firstCommentId:e,isCollapsed:t,isOutdated:n,isResolved:i,line:a,onToggleCollapsed:r,onNavigateToDiffComment:s,path:l,rightSideContent:d,threadId:c,headingLevel:u=”h3″}){let m=(0,eE.A)(“localStorage”),[f,h]=(0,y.useState)(t);return(0,y.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${c}`);null!==e&&h(JSON.parse(e))},[f,c]),(0,o.jsxs)(“div”,{className:(0,v.$)(“d-flex flex-row flex-items-center px-2 py-1 bgColor-muted rounded-top-2 border-bottom”,f&&”rounded-2″,f&&”border-bottom-0″),children:[(0,o.jsx)(el.K,{“aria-label”:f?”Open review comment”:”Close review comment”,icon:f?k.ChevronRightIcon:k.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:()=>{m.setItem(`reviewThreadIsCollapsed_${c}`,JSON.stringify(!f)),h(e=>!e),r()}}),(0,o.jsxs)(Y.A,{as:u,className:”d-flex flex-items-center flex-1 min-width-0 mr-2 ml-1 f6 text-semibold”,children:[(0,o.jsx)(A.m,{direction:”n”,text:l,type:”label”,children:(0,o.jsxs)(E.A,{className:(0,v.$)(ta,”d-inline text-mono no-wrap overflow-hidden direction-rtl fgColor-default”),onClick:s,href:`#r${e}`,muted:!0,children:[“\u200E”,l,”\u200E”]})}),!!a&&(0,o.jsxs)(“span”,{className:”f6 fgColor-muted text-normal no-wrap ml-2″,children:[“Line “,a]})]}),i&&(0,o.jsx)(ti.A,{size:”large”,className:”mx-1″,variant:”secondary”,children:”Resolved”}),n&&!i&&(0,o.jsx)(ti.A,{size:”large”,className:”mx-1″,variant:”attention”,children:”Outdated”}),(0,o.jsx)(el.K,{as:”a”,”aria-label”:”Jump to the comment in the diff”,tooltipDirection:”se”,icon:k.FileSymlinkFileIcon,variant:”invisible”,href:`#r${e}`,onClick:s}),d]})};function ts(e){return!e}try{tr.displayName||(tr.displayName=”ConversationHeader”)}catch{}let tl=”ThreadHeader-module__ThreadHeaderIconButton–RGjVM”;var to=n(97695),td=n(39698),tc=n(21067);let tu=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(35),{firstCommentId:u,isCollapsed:m,onToggleCollapsed:f,onNavigateToDiffComment:h,threadPreview:p,headingLevel:g,isResolved:x,isOutdated:b,lineKey:v}=e,{sendPullRequestAnalyticsEvent:j}=(0,er.q)(),[C,w]=(0,y.useState)(void 0),N=p.previewInfo,{line:S}=N;d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,tc.M3)(),d[0]=t):t=d[0];let L=t,{mutate:D}=(0,to.H)(N.path,v);d[1]!==m||d[2]!==x||d[3]!==f||d[4]!==N.threadId||d[5]!==D?(n=()=>{x||D({threadId:N.threadId},{onError:()=>w(“Failed to resolve thread”),onSuccess:()=>{m||f()}})},d[1]=m,d[2]=x,d[3]=f,d[4]=N.threadId,d[5]=D,d[6]=n):n=d[6];let I=n,{mutate:_}=(0,td.i)(N.path,v);d[7]!==m||d[8]!==x||d[9]!==f||d[10]!==j||d[11]!==p||d[12]!==_?(i=async()=>{!p||x&&(_({threadId:p.previewInfo.threadId},{onError:()=>w(“Failed to unresolve thread”),onSuccess:()=>{m&&f()}}),j(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},d[7]=m,d[8]=x,d[9]=f,d[10]=j,d[11]=p,d[12]=_,d[13]=i):i=d[13];let R=i;return d[14]!==I||d[15]!==R||d[16]!==x?(a=L?(0,o.jsx)(el.K,{“aria-label”:x?”Unresolve conversation”:”Resolve conversation”,tooltipDirection:”sw”,icon:x?k.CheckCircleFillIcon:k.CheckCircleIcon,”data-thread-resolved”:x,className:tl,variant:”invisible”,onClick:x?R:I}):null,d[14]=I,d[15]=R,d[16]=x,d[17]=a):a=d[17],d[18]!==u||d[19]!==g||d[20]!==m||d[21]!==b||d[22]!==x||d[23]!==S||d[24]!==h||d[25]!==f||d[26]!==N.path||d[27]!==N.threadId||d[28]!==a?(r=(0,o.jsx)(tr,{firstCommentId:u,isCollapsed:m,isOutdated:b,isResolved:x,line:S,path:N.path,rightSideContent:a,onNavigateToDiffComment:h,onToggleCollapsed:f,threadId:N.threadId,headingLevel:g}),d[18]=u,d[19]=g,d[20]=m,d[21]=b,d[22]=x,d[23]=S,d[24]=h,d[25]=f,d[26]=N.path,d[27]=N.threadId,d[28]=a,d[29]=r):r=d[29],d[30]!==C?(s=C&&(0,o.jsxs)(tn.A,{variant:”danger”,className:”m-2″,children:[(0,o.jsx)(k.StopIcon,{className:”mr-2″}),C]}),d[30]=C,d[31]=s):s=d[31],d[32]!==r||d[33]!==s?(l=(0,o.jsxs)(o.Fragment,{children:[r,s]}),d[32]=r,d[33]=s,d[34]=l):l=d[34],l}:function({firstCommentId:e,isCollapsed:t,onToggleCollapsed:n,onNavigateToDiffComment:i,threadPreview:a,headingLevel:r,isResolved:s,isOutdated:l,lineKey:d}){let{sendPullRequestAnalyticsEvent:c}=(0,er.q)(),[u,m]=(0,y.useState)(void 0),f=a.previewInfo,{line:h}=f,p=(0,tc.M3)(),{mutate:g}=(0,to.H)(f.path,d),{mutate:x}=(0,td.i)(f.path,d),b=async()=>{!a||s&&(x({threadId:a.previewInfo.threadId},{onError:()=>m(“Failed to unresolve thread”),onSuccess:()=>{t&&n()}}),c(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tr,{firstCommentId:e,isCollapsed:t,isOutdated:l,isResolved:s,line:h,path:f.path,rightSideContent:p?(0,o.jsx)(el.K,{“aria-label”:s?”Unresolve conversation”:”Resolve conversation”,tooltipDirection:”sw”,icon:s?k.CheckCircleFillIcon:k.CheckCircleIcon,”data-thread-resolved”:s,className:tl,variant:”invisible”,onClick:s?b:()=>{s||g({threadId:f.threadId},{onError:()=>m(“Failed to resolve thread”),onSuccess:()=>{t||n()}})}}):null,onNavigateToDiffComment:i,onToggleCollapsed:n,threadId:f.threadId,headingLevel:r}),u&&(0,o.jsxs)(tn.A,{variant:”danger”,className:”m-2″,children:[(0,o.jsx)(k.StopIcon,{className:”mr-2″}),u]})]})};try{tu.displayName||(tu.displayName=”ThreadHeader”)}catch{}var tm=n(24494);let tf=(0,d.Z6)()?function(e){let t,n,i=(0,c.c)(4),{commentAuthors:a}=e;return a.length<1?null:(i[0]!==a?(t=a.map(th),i[0]=a,i[1]=t):t=i[1],i[2]!==t?(n=(0,o.jsx)(tm.A,{children:t}),i[2]=t,i[3]=n):n=i[3],n)}:function({commentAuthors:e}){return e.length<1?null:(0,o.jsx)(tm.A,{children:e.map(({login:e,avatarUrl:t})=>(0,o.jsx)(e5.r,{alt:e,size:18,src:t},e))})};function th(e){let{login:t,avatarUrl:n}=e;return(0,o.jsx)(e5.r,{alt:t,size:18,src:n},t)}try{tf.displayName||(tf.displayName=”PreviewAuthors”)}catch{}var tp=n(36729),tg=n(73017);let tx=”PendingCommentPreview-module__commentBody–hkwI8″,tb=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(30),{commentPreview:u,onNavigateToDiffComment:m,tabSize:f}=e,[h,p]=(0,y.useState)(!1),g=u.commentId,{navigateToSelectedComment:x}=(0,I.Lh)();d[0]!==u.commentsData?(t=u.commentsData??{comments:[]},d[0]=u.commentsData,d[1]=t):t=d[1],d[2]!==g||d[3]!==t?(n=tv(g,t),d[2]=g,d[3]=t,d[4]=n):n=d[4];let b=n,j=u.threadPreviewComments.length,C=`${j} previous ${1===j?”comment”:”comments”}`;d[5]!==g||d[6]!==x||d[7]!==m?(i=()=>{let e=parseInt(g);x(e);let t=window.location.pathname+window.location.search;(0,L.kd)(`${t}#r${e}`),m(g)},d[5]=g,d[6]=x,d[7]=m,d[8]=i):i=d[8];let w=i,N=u.isOutdated||!1,S=u.isResolved||!1,D=u.line,_=u.path;d[9]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>p(tj),d[9]=a):a=d[9];let R=u.threadId,A=parseInt(u.commentId);return d[10]!==u.line||d[11]!==u.path||d[12]!==u.threadId||d[13]!==h||d[14]!==w||d[15]!==A||d[16]!==N||d[17]!==S?(r=(0,o.jsx)(tr,{isCollapsed:h,isOutdated:N,isResolved:S,line:D,path:_,onNavigateToDiffComment:w,onToggleCollapsed:a,threadId:R,firstCommentId:A}),d[10]=u.line,d[11]=u.path,d[12]=u.threadId,d[13]=h,d[14]=w,d[15]=A,d[16]=N,d[17]=S,d[18]=r):r=d[18],d[19]!==b||d[20]!==u||d[21]!==h||d[22]!==w||d[23]!==j||d[24]!==C||d[25]!==f?(s=!h&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,o.jsx)(te.i,{diffTableClassName:”border-0″,diffLines:u.subject?.diffLines,className:”m-0 border-0″,tabSize:f||4})}),j>0&&(0,o.jsx)(“div”,{className:”my-2 px-2″,children:(0,o.jsx)(em.Q,{“aria-label”:”View comment in diff”,size:”small”,trailingVisual:k.ChevronRightIcon,variant:”invisible”,onClick:w,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,o.jsx)(“span”,{children:C}),(0,o.jsx)(tf,{commentAuthors:b})]})})}),(0,o.jsx)(tg.$6,{className:(0,v.$)(“markdown-body”,tx),html:ty(u)})]}),d[19]=b,d[20]=u,d[21]=h,d[22]=w,d[23]=j,d[24]=C,d[25]=f,d[26]=s):s=d[26],d[27]!==r||d[28]!==s?(l=(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[r,s]}),d[27]=r,d[28]=s,d[29]=l):l=d[29],l}:function({commentPreview:e,onNavigateToDiffComment:t,tabSize:n}){let[i,a]=(0,y.useState)(!1),r=e.commentId,{navigateToSelectedComment:s}=(0,I.Lh)(),l=tv(r,e.commentsData??{comments:[]}),d=e.threadPreviewComments.length,c=`${d} previous ${1===d?”comment”:”comments”}`,u=(0,y.useCallback)(()=>{let e=parseInt(r);s(e);let n=window.location.pathname+window.location.search;(0,L.kd)(`${n}#r${e}`),t(r)},[r,s,t]);return(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[(0,o.jsx)(tr,{isCollapsed:i,isOutdated:e.isOutdated||!1,isResolved:e.isResolved||!1,line:e.line,path:e.path,onNavigateToDiffComment:u,onToggleCollapsed:()=>a(e=>!e),threadId:e.threadId,firstCommentId:parseInt(e.commentId)}),!i&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,o.jsx)(te.i,{diffTableClassName:”border-0″,diffLines:e.subject?.diffLines,className:”m-0 border-0″,tabSize:n||4})}),d>0&&(0,o.jsx)(“div”,{className:”my-2 px-2″,children:(0,o.jsx)(em.Q,{“aria-label”:”View comment in diff”,size:”small”,trailingVisual:k.ChevronRightIcon,variant:”invisible”,onClick:u,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,o.jsx)(“span”,{children:c}),(0,o.jsx)(tf,{commentAuthors:l})]})})}),(0,o.jsx)(tg.$6,{className:(0,v.$)(“markdown-body”,tx),html:ty(e)})]})]})});function tv(e,t){let n=new Set;return(t?.comments??[]).reduce((t,i)=>{if(!i||i.id===e)return t;let a=i.author?.login??””,r=i.author?.avatarUrl??””,s=i.author?.id??””,l=i.author?.url??””;return n.has(a)||(t.push({avatarUrl:r,login:a,id:s,url:l}),n.add(a)),t},[])}function ty(e){let t=(e.commentsData?.comments??[]).find(t=>t&&String(t.databaseId)===e.commentId);return t?.bodyHTML??””}try{tb.displayName||(tb.displayName=”PendingCommentPreview”)}catch{}function tj(e){return!e}function tC(e){return`panel-thread-collapsed-state-${e}`}let tw=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l=(0,c.c)(39),{onNavigateToDiffComment:d,tabSize:u,threadPreview:m,headingLevel:f}=e,{previewInfo:h}=m,{threadId:p,firstComment:g}=h,x=g?.id,b=h.path,{navigateToSelectedComment:v}=(0,I.Lh)(),y=(0,I.SM)(),j=h.subject?.endDiffSide===”RIGHT”?”R”:”L”,C=h.subject?.originalEndLine?`${j}${h.subject.originalEndLine}`:tp.zW,w=y(Number(h.threadId),h.path,C),N=w?.isResolved||!1,S=h.isOutdated||!1;l[0]!==g?.databaseId||l[1]!==S||l[2]!==v||l[3]!==d||l[4]!==h.originalDiffPathUri?(t=()=>{let e=g?.databaseId;if(e){if(S&&h.originalDiffPathUri){let e=new URL(h.originalDiffPathUri);e.searchParams.set(“new_files_changed”,”true”),window.location.href=e.toString()}else{v(e);let t=window.location.pathname+window.location.search;(0,L.kd)(`${t}#r${e}`)}d()}},l[0]=g?.databaseId,l[1]=S,l[2]=v,l[3]=d,l[4]=h.originalDiffPathUri,l[5]=t):t=l[5];let D=t;l[6]!==p?(n=tC(p),l[6]=p,l[7]=n):n=l[7];let[_,R]=(0,tt.M)(n,!1),A=h.threadPreviewComments.length,E=0===A?”No replies”:`${A} ${1===A?”reply”:”replies”}`,T={…w,id:w?.id??””,commentsData:{comments:[]}};if(!g||!T)return null;let O=tv(h.commentId,w?.commentsData??{comments:[]}),P=g?.databaseId;return l[8]!==_||l[9]!==R?(i=()=>R(!_),l[8]=_,l[9]=R,l[10]=i):i=l[10],l[11]!==f||l[12]!==_||l[13]!==S||l[14]!==N||l[15]!==C||l[16]!==D||l[17]!==P||l[18]!==i||l[19]!==m?(a=(0,o.jsx)(tu,{firstCommentId:P,isCollapsed:_,threadPreview:m,onNavigateToDiffComment:D,onToggleCollapsed:i,headingLevel:f,isResolved:N,isOutdated:S,lineKey:C}),l[11]=f,l[12]=_,l[13]=S,l[14]=N,l[15]=C,l[16]=D,l[17]=P,l[18]=i,l[19]=m,l[20]=a):a=l[20],l[21]!==O||l[22]!==x||l[23]!==b||l[24]!==g||l[25]!==_||l[26]!==S||l[27]!==N||l[28]!==C||l[29]!==D||l[30]!==h.originalDiffPathUri||l[31]!==h.subject?.diffLines||l[32]!==E||l[33]!==u||l[34]!==p?(r=!_&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,o.jsx)(te.i,{diffTableClassName:”border-0″,diffLines:h?.subject?.diffLines,className:”m-0 border-0″,tabSize:u||4})}),(0,o.jsx)(“div”,{children:(0,o.jsx)(e9.U,{lineMarkersKey:C,hideActions:!0,isInlineComment:!1,comment:g,filePath:b,index:0,isAnchorable:!1,isOutdated:S,isThreadResolved:N,threadId:p,originalDiffPathUri:h.originalDiffPathUri,headingLevel:”h3″},x)}),(0,o.jsx)(“div”,{className:”mb-2 px-2″,children:(0,o.jsx)(em.Q,{“aria-label”:`View ${E}`,size:”small”,trailingVisual:k.ChevronRightIcon,variant:”invisible”,onClick:D,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,o.jsx)(“span”,{children:E}),(0,o.jsx)(tf,{commentAuthors:O})]})})})]}),l[21]=O,l[22]=x,l[23]=b,l[24]=g,l[25]=_,l[26]=S,l[27]=N,l[28]=C,l[29]=D,l[30]=h.originalDiffPathUri,l[31]=h.subject?.diffLines,l[32]=E,l[33]=u,l[34]=p,l[35]=r):r=l[35],l[36]!==a||l[37]!==r?(s=(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[a,r]}),l[36]=a,l[37]=r,l[38]=s):s=l[38],s}:function({onNavigateToDiffComment:e,tabSize:t,threadPreview:n,headingLevel:i}){let{previewInfo:a}=n,{threadId:r,firstComment:s}=a,l=s?.id,d=a.path,{navigateToSelectedComment:c}=(0,I.Lh)(),u=(0,I.SM)(),m=a.subject?.endDiffSide===”RIGHT”?”R”:”L”,f=a.subject?.originalEndLine?`${m}${a.subject.originalEndLine}`:tp.zW,h=u(Number(a.threadId),a.path,f),p=h?.isResolved||!1,g=a.isOutdated||!1,x=()=>{let t=s?.databaseId;if(t){if(g&&a.originalDiffPathUri){let e=new URL(a.originalDiffPathUri);e.searchParams.set(“new_files_changed”,”true”),window.location.href=e.toString()}else{c(t);let e=window.location.pathname+window.location.search;(0,L.kd)(`${e}#r${t}`)}e()}},[b,v]=(0,tt.M)(tC(r),!1),y=a.threadPreviewComments.length,j=0===y?”No replies”:`${y} ${1===y?”reply”:”replies”}`,C={…h,id:h?.id??””,commentsData:{comments:[]}};if(!s||!C)return null;let w=tv(a.commentId,h?.commentsData??{comments:[]});return(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[(0,o.jsx)(tu,{firstCommentId:s?.databaseId,isCollapsed:b,threadPreview:n,onNavigateToDiffComment:x,onToggleCollapsed:()=>v(!b),headingLevel:i,isResolved:p,isOutdated:g,lineKey:f}),!b&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,o.jsx)(te.i,{diffTableClassName:”border-0″,diffLines:a?.subject?.diffLines,className:”m-0 border-0″,tabSize:t||4})}),(0,o.jsx)(“div”,{children:(0,o.jsx)(e9.U,{lineMarkersKey:f,hideActions:!0,isInlineComment:!1,comment:s,filePath:d,index:0,isAnchorable:!1,isOutdated:g,isThreadResolved:p,threadId:r,originalDiffPathUri:a.originalDiffPathUri,headingLevel:”h3″},l)}),(0,o.jsx)(“div”,{className:”mb-2 px-2″,children:(0,o.jsx)(em.Q,{“aria-label”:`View ${j}`,size:”small”,trailingVisual:k.ChevronRightIcon,variant:”invisible”,onClick:x,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,o.jsx)(“span”,{children:j}),(0,o.jsx)(tf,{commentAuthors:w})]})})})]})]})});try{tw.displayName||(tw.displayName=”ThreadPreview”)}catch{}var tN=n(4559),tS=n(76720);let tL=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(11),{heading:s,description:l,icon:d,headingLevel:u}=e,m=void 0===u?”h1″:u;return r[0]!==d?(t=(0,o.jsx)(tS.E.Visual,{children:(0,o.jsx)(d,{size:”medium”})}),r[0]=d,r[1]=t):t=r[1],r[2]!==s||r[3]!==m?(n=(0,o.jsx)(tS.E.Heading,{as:m,children:s}),r[2]=s,r[3]=m,r[4]=n):n=r[4],r[5]!==l?(i=l&&(0,o.jsx)(tS.E.Description,{children:l}),r[5]=l,r[6]=i):i=r[6],r[7]!==t||r[8]!==n||r[9]!==i?(a=(0,o.jsxs)(tS.E,{children:[t,n,i]}),r[7]=t,r[8]=n,r[9]=i,r[10]=a):a=r[10],a}:function({heading:e,description:t,icon:n,headingLevel:i=”h1″}){return(0,o.jsxs)(tS.E,{children:[(0,o.jsx)(tS.E.Visual,{children:(0,o.jsx)(n,{size:”medium”})}),(0,o.jsx)(tS.E.Heading,{as:i,children:e}),t&&(0,o.jsx)(tS.E.Description,{children:t})]})};try{tL.displayName||(tL.displayName=”ZeroState”)}catch{}var tD=n(69510);let tI=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f=(0,c.c)(27),{filteredThreadIds:h,onClose:p,pageLimits:g,pathName:x,isOpen:b,setThreadPreviews:v,tabSize:C}=e;f[0]!==x?(t={pathName:x},f[0]=x,f[1]=t):t=f[1];let{data:w}=(0,tD._l)(t),N=void 0===w?[]:w;(0,y.useEffect)(()=>{v(N)},[N,v]);let S=(0,y.useRef)(null);f[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,j.s)(tN.i,300),f[2]=n):n=f[2];let L=n,D=N.length>0;f[3]!==p?(i=()=>{p()},f[3]=p,f[4]=i):i=f[4];let I=i;f[5]!==h||f[6]!==I||f[7]!==C?(a=e=>e&&h.has(e.previewInfo.threadId)?(0,o.jsx)(tw,{tabSize:C,threadPreview:e,onNavigateToDiffComment:I,headingLevel:”h2″},e.previewInfo.threadId):null,f[5]=h,f[6]=I,f[7]=C,f[8]=a):a=f[8];let _=N.map(a).filter(Boolean);return f[9]!==L||f[10]!==b||f[11]!==_.length?(r=()=>{b&&L(_.length>0?`${_.length} ${1===_.length?”comment”:”comments”}`:”No comments found”,{element:S.current})},f[9]=L,f[10]=b,f[11]=_.length,f[12]=r):r=f[12],f[13]!==L||f[14]!==b||f[15]!==_?(s=[b,L,_],f[13]=L,f[14]=b,f[15]=_,f[16]=s):s=f[16],(0,y.useEffect)(r,s),f[17]!==g.reviewThreadsLimit||f[18]!==g.reviewThreadsLimitExceeded?(l=g.reviewThreadsLimitExceeded&&(0,o.jsx)(eW.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${g.reviewThreadsLimit} comments are currently being shown.`,className:”mb-3″}),f[17]=g.reviewThreadsLimit,f[18]=g.reviewThreadsLimitExceeded,f[19]=l):l=f[19],f[20]!==D||f[21]!==_?(d=_.length>0?(0,o.jsx)(y.Suspense,{fallback:(0,o.jsx)(ee.A,{}),children:(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:_})}):(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,o.jsx)(tL,{description:”Comments will show up here as soon as there are some.”,heading:D?”No comments match the current filter”:”No comments on changes yet”,icon:k.CommentIcon,headingLevel:”h2″})}),f[20]=D,f[21]=_,f[22]=d):d=f[22],f[23]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,o.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:S}),f[23]=u):u=f[23],f[24]!==l||f[25]!==d?(m=(0,o.jsxs)(o.Fragment,{children:[l,d,u]}),f[24]=l,f[25]=d,f[26]=m):m=f[26],m}:function({filteredThreadIds:e,onClose:t,pageLimits:n,pathName:i,isOpen:a,setThreadPreviews:r,tabSize:s}){let{data:l=[]}=(0,tD._l)({pathName:i});(0,y.useEffect)(()=>{r(l)},[l,r]);let d=(0,y.useRef)(null),c=(0,y.useMemo)(()=>(0,j.s)(tN.i,300),[]),u=l.length>0,m=(0,y.useCallback)(()=>{t()},[t]),f=l.map(t=>t&&e.has(t.previewInfo.threadId)?(0,o.jsx)(tw,{tabSize:s,threadPreview:t,onNavigateToDiffComment:m,headingLevel:”h2″},t.previewInfo.threadId):null).filter(Boolean);return(0,y.useEffect)(()=>{a&&c(f.length>0?`${f.length} ${1===f.length?”comment”:”comments”}`:”No comments found”,{element:d.current})},[a,c,f]),(0,o.jsxs)(o.Fragment,{children:[n.reviewThreadsLimitExceeded&&(0,o.jsx)(eW.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${n.reviewThreadsLimit} comments are currently being shown.`,className:”mb-3″}),f.length>0?(0,o.jsx)(y.Suspense,{fallback:(0,o.jsx)(ee.A,{}),children:(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:f})}):(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,o.jsx)(tL,{description:”Comments will show up here as soon as there are some.”,heading:u?”No comments match the current filter”:”No comments on changes yet”,icon:k.CommentIcon,headingLevel:”h2″})}),(0,o.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:d})]})},t_=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h=(0,c.c)(25);h[0]!==e?({pathName:t,toggleSidesheetRef:i,…n}=e,h[0]=e,h[1]=t,h[2]=n,h[3]=i):(t=h[1],n=h[2],i=h[3]),h[4]===Symbol.for(“react.memo_cache_sentinel”)?(a=[],h[4]=a):a=h[4];let[p,g]=(0,y.useState)(a),[b,v]=(0,y.useState)(tR);h[5]!==b||h[6]!==p?(r=e6(p,b),h[5]=b,h[6]=p,h[7]=r):r=h[7];let j=r,C=(0,y.useRef)(null);if(h[8]!==p){for(let e of(s=[],p)){let t=e.previewInfo.firstComment;t?.author&&!s.some(e=>e.login===t.author?.login)&&(“Copilot”===t.author.login?s.unshift(t.author):s.push(t.author))}h[8]=p,h[9]=s}else s=h[9];let w=s;return n.isOpen?(h[10]===Symbol.for(“react.memo_cache_sentinel”)?(l={narrow:”fullscreen”,regular:”right”,wide:”right”},h[10]=l):l=h[10],h[11]!==w||h[12]!==b||h[13]!==n.onClose?(d=e=>{let{dialogLabelId:t}=e;return(0,o.jsxs)(x.l.Header,{className:”p-3″,children:[(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-between flex-items-center width-full”,children:[(0,o.jsx)(x.l.Title,{id:t,children:”Comments”}),(0,o.jsx)(el.K,{ref:C,”aria-label”:”Close comments panel”,icon:k.XIcon,variant:”invisible”,onClick:n.onClose})]}),(0,o.jsx)(e8,{authorList:w,className:”mt-2 width-full”,filterState:b,onFilterStateChange:v})]})},h[11]=w,h[12]=b,h[13]=n.onClose,h[14]=d):d=h[14],h[15]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,o.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,o.jsx)(ee.A,{})}),h[15]=u):u=h[15],h[16]!==j||h[17]!==t||h[18]!==n?(m=(0,o.jsx)(y.Suspense,{fallback:u,children:(0,o.jsx)(tI,{…n,filteredThreadIds:j,pathName:t,setThreadPreviews:g})}),h[16]=j,h[17]=t,h[18]=n,h[19]=m):m=h[19],h[20]!==n.onClose||h[21]!==d||h[22]!==m||h[23]!==i?(f=(0,o.jsx)(x.l,{initialFocusRef:C,position:l,returnFocusRef:i,onClose:n.onClose,renderHeader:d,children:m}),h[20]=n.onClose,h[21]=d,h[22]=m,h[23]=i,h[24]=f):f=h[24],f):null}:function(e){let{pathName:t,toggleSidesheetRef:n,…i}=e,[a,r]=(0,y.useState)([]),[s,l]=(0,y.useState)(()=>({…e7})),d=e6(a,s),c=(0,y.useRef)(null),u=(0,y.useMemo)(()=>{let e=[];for(let t of a){let n=t.previewInfo.firstComment;n?.author&&!e.some(e=>e.login===n.author?.login)&&(“Copilot”===n.author.login?e.unshift(n.author):e.push(n.author))}return e},[a]);return i.isOpen?(0,o.jsx)(x.l,{initialFocusRef:c,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},returnFocusRef:n,onClose:i.onClose,renderHeader:({dialogLabelId:e})=>(0,o.jsxs)(x.l.Header,{className:”p-3″,children:[(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-between flex-items-center width-full”,children:[(0,o.jsx)(x.l.Title,{id:e,children:”Comments”}),(0,o.jsx)(el.K,{ref:c,”aria-label”:”Close comments panel”,icon:k.XIcon,variant:”invisible”,onClick:i.onClose})]}),(0,o.jsx)(e8,{authorList:u,className:”mt-2 width-full”,filterState:s,onFilterStateChange:l})]}),children:(0,o.jsx)(y.Suspense,{fallback:(0,o.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,o.jsx)(ee.A,{})}),children:(0,o.jsx)(tI,{…i,filteredThreadIds:d,pathName:t,setThreadPreviews:r})})}):null});try{tI.displayName||(tI.displayName=”CommentsSidePanelContent”)}catch{}try{t_.displayName||(t_.displayName=”CommentsSidePanel”)}catch{}function tR(){return{…e7}}let tk=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(18),{isFileTreeExpanded:u,pageLimits:m,pullRequest:f,tabSize:h}=e,[p,g]=(0,y.useState)(!1),x=(0,y.useRef)(null),b=(0,I.Qb)(),{sendPullRequestAnalyticsEvent:v}=(0,er.q)();return d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(em.Q,{“aria-label”:”The comments side panel cannot currently be opened.”,leadingVisual:k.CommentDiscussionIcon,size:”small”,variant:”invisible”}),d[0]=t):t=d[0],d[1]!==v?(n=()=>{v(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e2(),g(!0)},d[1]=v,d[2]=n):n=d[2],d[3]!==u?(i=u&&(0,o.jsx)(“span”,{className:”d-none d-xl-block”,children:”Comments”}),d[3]=u,d[4]=i):i=d[4],d[5]!==b||d[6]!==n||d[7]!==i?(a=(0,o.jsx)(em.Q,{ref:x,”aria-label”:”Open comments side panel”,count:b,leadingVisual:k.CommentDiscussionIcon,size:”small”,onClick:n,children:i}),d[5]=b,d[6]=n,d[7]=i,d[8]=a):a=d[8],d[9]===Symbol.for(“react.memo_cache_sentinel”)?(r=()=>g(!1),d[9]=r):r=d[9],d[10]!==p||d[11]!==m||d[12]!==f.pathName||d[13]!==h?(s=(0,o.jsx)(t_,{isOpen:p,pageLimits:m,pathName:f.pathName,tabSize:h,toggleSidesheetRef:x,onClose:r}),d[10]=p,d[11]=m,d[12]=f.pathName,d[13]=h,d[14]=s):s=d[14],d[15]!==a||d[16]!==s?(l=(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsxs)(J.t,{fallback:t,children:[a,s]})}),d[15]=a,d[16]=s,d[17]=l):l=d[17],l}:function({isFileTreeExpanded:e,pageLimits:t,pullRequest:n,tabSize:i}){let[a,r]=(0,y.useState)(!1),s=(0,y.useRef)(null),l=(0,I.Qb)(),{sendPullRequestAnalyticsEvent:d}=(0,er.q)();return(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsxs)(J.t,{fallback:(0,o.jsx)(em.Q,{“aria-label”:”The comments side panel cannot currently be opened.”,leadingVisual:k.CommentDiscussionIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(em.Q,{ref:s,”aria-label”:”Open comments side panel”,count:l,leadingVisual:k.CommentDiscussionIcon,size:”small”,onClick:()=>{d(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e2(),r(!0)},children:e&&(0,o.jsx)(“span”,{className:”d-none d-xl-block”,children:”Comments”})}),(0,o.jsx)(t_,{isOpen:a,pageLimits:t,pathName:n.pathName,tabSize:i,toggleSidesheetRef:s,onClose:()=>r(!1)})]})})};try{tk.displayName||(tk.displayName=”OpenCommentsSidePanelButton”)}catch{}var tA=n(86909);function tE(e,t){return new Set(e.filter(e=>(function(e,t){if(t){let n=t.toLowerCase();if(!e.annotationLevel.toLowerCase().includes(n)&&!e.message.toLowerCase().includes(n)&&!e.path.toLowerCase().includes(n)&&!e.title?.toLowerCase().includes(n)&&!e.checkRun.name?.toLowerCase().includes(n)&&!e.appAvatarAltText.toLowerCase().includes(n)&&!e.checkSuiteName?.toLowerCase().includes(n))return!1}return!0})(e,t)).map(e=>e.id))}let tT=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(8),{className:r,filteredText:s,onFilteredTextChange:l}=e;return a[0]!==l?(t=e=>l(e.target.value),a[0]=l,a[1]=t):t=a[1],a[2]!==s||a[3]!==t?(n=(0,o.jsx)(e3.A,{block:!0,”aria-label”:”Filter alerts\u2026″,leadingVisual:k.SearchIcon,placeholder:”Filter alerts\u2026″,value:s,onChange:t}),a[2]=s,a[3]=t,a[4]=n):n=a[4],a[5]!==r||a[6]!==n?(i=(0,o.jsx)(“div”,{className:r,children:n}),a[5]=r,a[6]=n,a[7]=i):i=a[7],i}:function({className:e,filteredText:t,onFilteredTextChange:n}){return(0,o.jsx)(“div”,{className:e,children:(0,o.jsx)(e3.A,{block:!0,”aria-label”:”Filter alerts\u2026″,leadingVisual:k.SearchIcon,placeholder:”Filter alerts\u2026″,value:t,onChange:e=>n(e.target.value)})})};try{tT.displayName||(tT.displayName=”AlertsFilter”)}catch{}let tO=”AlertsSidePanel-module__annotationsHeaderFileName–JzcsF”,tP=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u=(0,c.c)(25),{databaseId:m,lineNumber:f,path:h,toggleCollapsed:p,isCollapsed:g,onNavigateToAnnotation:x,annotationLevel:b}=e,y=g?”Expand annotation”:”Collapse annotation”,j=g?k.ChevronRightIcon:k.ChevronDownIcon;u[0]!==y||u[1]!==j||u[2]!==p?(t=(0,o.jsx)(el.K,{“aria-label”:y,icon:j,size:”small”,variant:”invisible”,className:”mr-1″,onClick:p}),u[0]=y,u[1]=j,u[2]=p,u[3]=t):t=u[3];let C=tA.Gt[b];u[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,v.$)(“overflow-hidden text-mono text-semibold f6 no-wrap”,tO),u[4]=n):n=u[4];let w=`#annotation_${m}`;u[5]!==x||u[6]!==h||u[7]!==w?(i=(0,o.jsxs)(E.A,{className:n,href:w,onClick:x,muted:!0,children:[“\u200E”,h]}),u[5]=x,u[6]=h,u[7]=w,u[8]=i):i=u[8],u[9]!==h||u[10]!==i?(a=(0,o.jsx)(A.m,{direction:”n”,text:h,type:”label”,children:i}),u[9]=h,u[10]=i,u[11]=a):a=u[11],u[12]!==f?(r=(0,o.jsxs)(“span”,{className:”f6 fgColor-muted text-normal ml-2 no-wrap”,children:[“Line “,f]}),u[12]=f,u[13]=r):r=u[13],u[14]!==t||u[15]!==C||u[16]!==a||u[17]!==r?(s=(0,o.jsxs)(“h2″,{className:”d-flex flex-items-center flex-1 min-width-0 ml-1 mr-2″,children:[t,C,a,r]}),u[14]=t,u[15]=C,u[16]=a,u[17]=r,u[18]=s):s=u[18];let N=`#annotation_${m}`;return u[19]!==x||u[20]!==N?(l=(0,o.jsx)(el.K,{as:”a”,”aria-label”:”Jump to the alert in the diff”,tooltipDirection:”se”,icon:k.FileSymlinkFileIcon,variant:”invisible”,href:N,onClick:x}),u[19]=x,u[20]=N,u[21]=l):l=u[21],u[22]!==s||u[23]!==l?(d=(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center py-1 px-2 bgColor-inset rounded-top-2 border-bottom”,children:[s,l]}),u[22]=s,u[23]=l,u[24]=d):d=u[24],d}:function({databaseId:e,lineNumber:t,path:n,toggleCollapsed:i,isCollapsed:a,onNavigateToAnnotation:r,annotationLevel:s}){return(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center py-1 px-2 bgColor-inset rounded-top-2 border-bottom”,children:[(0,o.jsxs)(“h2″,{className:”d-flex flex-items-center flex-1 min-width-0 ml-1 mr-2”,children:[(0,o.jsx)(el.K,{“aria-label”:a?”Expand annotation”:”Collapse annotation”,icon:a?k.ChevronRightIcon:k.ChevronDownIcon,size:”small”,variant:”invisible”,className:”mr-1″,onClick:i}),tA.Gt[s],(0,o.jsx)(A.m,{direction:”n”,text:n,type:”label”,children:(0,o.jsxs)(E.A,{className:(0,v.$)(“overflow-hidden text-mono text-semibold f6 no-wrap”,tO),href:`#annotation_${e}`,onClick:r,muted:!0,children:[“\u200E”,n]})}),(0,o.jsxs)(“span”,{className:”f6 fgColor-muted text-normal ml-2 no-wrap”,children:[“Line “,t]})]}),(0,o.jsx)(el.K,{as:”a”,”aria-label”:”Jump to the alert in the diff”,tooltipDirection:”se”,icon:k.FileSymlinkFileIcon,variant:”invisible”,href:`#annotation_${e}`,onClick:r})]})},tF=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f=(0,c.c)(26),{annotations:h,onClose:p,isOpen:g,pageLimits:b,returnFocusRef:v}=e,[C,w]=(0,y.useState)(“”),N=tE(h,C),S=(0,y.useRef)(null),L=h.length>0,D=(0,I.j5)(),{navigateToSelectedAnnotation:_}=(0,I.Lh)();f[0]!==D||f[1]!==_||f[2]!==p?(t=e=>{D&&_(e),p()},f[0]=D,f[1]=_,f[2]=p,f[3]=t):t=f[3];let R=t,A=h.map(e=>e&&N.has(e.id)?(0,o.jsx)(t$,{annotation:e,handleNavigateToAnnotation:R},e.id):null).filter(Boolean),E=(0,y.useRef)(null);f[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,j.s)(tN.i,300),f[4]=n):n=f[4];let T=n;return(f[5]!==A||f[6]!==g?(i=()=>{g&&T(A.length>0?`${A.length} ${1===A.length?”alert”:”alerts”}`:”No alerts found”,{element:E.current})},a=[g,T,A],f[5]=A,f[6]=g,f[7]=i,f[8]=a):(i=f[7],a=f[8]),(0,y.useEffect)(i,a),g)?(f[9]===Symbol.for(“react.memo_cache_sentinel”)?(r={narrow:”fullscreen”,regular:”right”,wide:”right”},f[9]=r):r=f[9],f[10]!==C||f[11]!==p?(s=e=>{let{dialogLabelId:t}=e;return(0,o.jsxs)(x.l.Header,{className:”p-3″,children:[(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center flex-justify-between width-full”,children:[(0,o.jsx)(Y.A,{as:”h1″,className:”f4 text-bold”,id:t,children:”Alerts”}),(0,o.jsx)(el.K,{ref:S,”aria-label”:”Close alerts panel”,icon:k.XIcon,variant:”invisible”,onClick:p})]}),(0,o.jsx)(tT,{className:”mt-2 width-full”,filteredText:C,onFilteredTextChange:w})]})},f[10]=C,f[11]=p,f[12]=s):s=f[12],f[13]!==b.annotationsLimit||f[14]!==b.annotationsLimitExceeded?(l=b.annotationsLimitExceeded&&(0,o.jsx)(eW.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${b.annotationsLimit} alerts are currently being shown.`,className:”mb-3″}),f[13]=b.annotationsLimit,f[14]=b.annotationsLimitExceeded,f[15]=l):l=f[15],f[16]!==A||f[17]!==L?(d=A.length>0?(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:A}):(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,o.jsx)(tL,{heading:L?”No alerts match the current filter”:”No alerts on changes yet”,icon:k.AlertIcon})}),f[16]=A,f[17]=L,f[18]=d):d=f[18],f[19]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,o.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:E}),f[19]=u):u=f[19],f[20]!==p||f[21]!==v||f[22]!==s||f[23]!==l||f[24]!==d?(m=(0,o.jsxs)(x.l,{initialFocusRef:S,onClose:p,position:r,returnFocusRef:v,renderHeader:s,children:[l,d,u]}),f[20]=p,f[21]=v,f[22]=s,f[23]=l,f[24]=d,f[25]=m):m=f[25],m):null}:function({annotations:e,onClose:t,isOpen:n,pageLimits:i,returnFocusRef:a}){let[r,s]=(0,y.useState)(“”),l=tE(e,r),d=(0,y.useRef)(null),c=e.length>0,u=(0,I.j5)(),{navigateToSelectedAnnotation:m}=(0,I.Lh)(),f=(0,y.useCallback)(e=>{u&&m(e),t()},[t,u,m]),h=e.map(e=>e&&l.has(e.id)?(0,o.jsx)(t$,{annotation:e,handleNavigateToAnnotation:f},e.id):null).filter(Boolean),p=(0,y.useRef)(null),g=(0,y.useMemo)(()=>(0,j.s)(tN.i,300),[]);return((0,y.useEffect)(()=>{n&&g(h.length>0?`${h.length} ${1===h.length?”alert”:”alerts”}`:”No alerts found”,{element:p.current})},[n,g,h]),n)?(0,o.jsxs)(x.l,{initialFocusRef:d,onClose:t,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},returnFocusRef:a,renderHeader:({dialogLabelId:e})=>(0,o.jsxs)(x.l.Header,{className:”p-3″,children:[(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center flex-justify-between width-full”,children:[(0,o.jsx)(Y.A,{as:”h1″,className:”f4 text-bold”,id:e,children:”Alerts”}),(0,o.jsx)(el.K,{ref:d,”aria-label”:”Close alerts panel”,icon:k.XIcon,variant:”invisible”,onClick:t})]}),(0,o.jsx)(tT,{className:”mt-2 width-full”,filteredText:r,onFilteredTextChange:s})]}),children:[i.annotationsLimitExceeded&&(0,o.jsx)(eW.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${i.annotationsLimit} alerts are currently being shown.`,className:”mb-3″}),h.length>0?(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:h}):(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,o.jsx)(tL,{heading:c?”No alerts match the current filter”:”No alerts on changes yet”,icon:k.AlertIcon})}),(0,o.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:p})]}):null}),t$=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(18),{annotation:s,handleNavigateToAnnotation:l}=e,{isCollapsed:d,handleToggleCollapsed:u}=(0,tA.Vv)(s);return r[0]!==s.databaseId||r[1]!==l?(t=()=>l(s.databaseId),r[0]=s.databaseId,r[1]=l,r[2]=t):t=r[2],r[3]!==s.annotationLevel||r[4]!==s.databaseId||r[5]!==s.endLine||r[6]!==s.path||r[7]!==u||r[8]!==d||r[9]!==t?(n=(0,o.jsx)(tP,{databaseId:s.databaseId,lineNumber:s.endLine,annotationLevel:s.annotationLevel,path:s.path,toggleCollapsed:u,isCollapsed:d,onNavigateToAnnotation:t}),r[3]=s.annotationLevel,r[4]=s.databaseId,r[5]=s.endLine,r[6]=s.path,r[7]=u,r[8]=d,r[9]=t,r[10]=n):n=r[10],r[11]!==s||r[12]!==d?(i=!d&&(0,o.jsx)(tA.YH,{annotation:s,inSidePanel:!0}),r[11]=s,r[12]=d,r[13]=i):i=r[13],r[14]!==s.id||r[15]!==n||r[16]!==i?(a=(0,o.jsxs)(“div”,{className:”border rounded-2 bgColor-default overflow-hidden”,children:[n,i]},s.id),r[14]=s.id,r[15]=n,r[16]=i,r[17]=a):a=r[17],a}:function({annotation:e,handleNavigateToAnnotation:t}){let{isCollapsed:n,handleToggleCollapsed:i}=(0,tA.Vv)(e);return(0,o.jsxs)(“div”,{className:”border rounded-2 bgColor-default overflow-hidden”,children:[(0,o.jsx)(tP,{databaseId:e.databaseId,lineNumber:e.endLine,annotationLevel:e.annotationLevel,path:e.path,toggleCollapsed:i,isCollapsed:n,onNavigateToAnnotation:()=>t(e.databaseId)}),!n&&(0,o.jsx)(tA.YH,{annotation:e,inSidePanel:!0})]},e.id)};try{tP.displayName||(tP.displayName=”AnnotationHeader”)}catch{}try{tF.displayName||(tF.displayName=”AlertsSidePanel”)}catch{}try{t$.displayName||(t$.displayName=”SidePanelAlert”)}catch{}let tM=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(11),{isFileTreeExpanded:r,pageLimits:s,className:l}=e,[d,u]=(0,y.useState)(!1),m=(0,y.useRef)(null);a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>u(!1),a[0]=t):t=a[0];let f=t,h=(0,I.wI)(),{sendPullRequestAnalyticsEvent:p}=(0,er.q)();if(!h)return null;a[1]!==h?(n=Object.values(h),a[1]=h,a[2]=n):n=a[2];let g=n,x=g.length;return a[3]!==g||a[4]!==l||a[5]!==r||a[6]!==s||a[7]!==p||a[8]!==d||a[9]!==x?(i=x>0?(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsxs)(J.t,{fallback:(0,o.jsx)(el.K,{inactive:!0,”aria-label”:”The alerts side panel cannot currently be opened.”,icon:k.AlertIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(em.Q,{ref:m,className:l,”aria-label”:”Open alerts side panel”,count:x,leadingVisual:k.AlertIcon,size:”small”,onClick:()=>{p(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e2(),u(!0)},children:r&&(0,o.jsx)(“span”,{className:”d-none d-xl-block”,children:”Alerts”})}),(0,o.jsx)(tF,{annotations:g,isOpen:d,pageLimits:s,returnFocusRef:m,onClose:f})]})}):null,a[3]=g,a[4]=l,a[5]=r,a[6]=s,a[7]=p,a[8]=d,a[9]=x,a[10]=i):i=a[10],i}:function({isFileTreeExpanded:e,pageLimits:t,className:n}){let[i,a]=(0,y.useState)(!1),r=(0,y.useRef)(null),s=(0,y.useCallback)(()=>a(!1),[]),l=(0,I.wI)(),{sendPullRequestAnalyticsEvent:d}=(0,er.q)();if(!l)return null;let c=Object.values(l),u=c.length;return u>0?(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsxs)(J.t,{fallback:(0,o.jsx)(el.K,{inactive:!0,”aria-label”:”The alerts side panel cannot currently be opened.”,icon:k.AlertIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(em.Q,{ref:r,className:n,”aria-label”:”Open alerts side panel”,count:u,leadingVisual:k.AlertIcon,size:”small”,onClick:()=>{d(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e2(),a(!0)},children:e&&(0,o.jsx)(“span”,{className:”d-none d-xl-block”,children:”Alerts”})}),(0,o.jsx)(tF,{annotations:c,isOpen:i,pageLimits:t,returnFocusRef:r,onClose:s})]})}):null};try{tM.displayName||(tM.displayName=”OpenAlertsPanelButton”)}catch{}var tB=n(70109),tV=n(42255),tU=n(46251),tH=n(31604),tG=n(33578);let tq={approve:”approve”,comment:”comment”,requestChanges:”request changes”},tK=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(10),{onSuccess:s,onError:l}=e,o=(0,ex.e)(eg.uT.submitReview);return r[0]!==o?(t=async e=>{let{body:t,event:n,headSha:i}=e;return(0,eL.Sr)(`${o}`,{method:”PUT”,headers:{Accept:”application/json”},body:{body:t,event:n,headSha:i}})},r[0]=o,r[1]=t):t=r[1],r[2]!==s?(n=async e=>{let t=await e.json(),n=t.error||”Unknown error occurred”;if(!e.ok)throw Error(n);s(t)},r[2]=s,r[3]=n):n=r[3],r[4]!==l?(i=e=>{l(e)},r[4]=l,r[5]=i):i=r[5],r[6]!==t||r[7]!==n||r[8]!==i?(a={mutationFn:t,onSuccess:n,onError:i},r[6]=t,r[7]=n,r[8]=i,r[9]=a):a=r[9],(0,eb.n)(a)}:function({onSuccess:e,onError:t}){let n=(0,ex.e)(eg.uT.submitReview);return(0,eb.n)({mutationFn:async({body:e,event:t,headSha:i})=>(0,eL.Sr)(`${n}`,{method:”PUT”,headers:{Accept:”application/json”},body:{body:e,event:t,headSha:i}}),onSuccess:async t=>{let n=await t.json(),i=n.error||”Unknown error occurred”;if(!t.ok)throw Error(i);e(n)},onError:e=>{t(e)}})},tz=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(10),{onSuccess:s,onError:l}=e,o=(0,ex.e)(eg.uT.abandonReview);return r[0]!==o?(t=async()=>(0,eL.Sr)(`${o}`,{method:”DELETE”,headers:{Accept:”application/json”}}),r[0]=o,r[1]=t):t=r[1],r[2]!==s?(n=async e=>{let t=await e.json(),n=t.error||”Unknown error occurred”;if(!e.ok)throw Error(n);s(t)},r[2]=s,r[3]=n):n=r[3],r[4]!==l?(i=e=>{l(e)},r[4]=l,r[5]=i):i=r[5],r[6]!==t||r[7]!==n||r[8]!==i?(a={mutationFn:t,onSuccess:n,onError:i},r[6]=t,r[7]=n,r[8]=i,r[9]=a):a=r[9],(0,eb.n)(a)}:function({onSuccess:e,onError:t}){let n=(0,ex.e)(eg.uT.abandonReview);return(0,eb.n)({mutationFn:async()=>(0,eL.Sr)(`${n}`,{method:”DELETE”,headers:{Accept:”application/json”}}),onSuccess:async t=>{let n=await t.json(),i=n.error||”Unknown error occurred”;if(!t.ok)throw Error(i);e(n)},onError:e=>{t(e)}})};var tW=n(46747);let{getItem:tZ,removeItem:tQ,setItem:tX}=(0,eE.D)(“localStorage”),tJ=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(11),[s,l]=(0,y.useState)(!1),o=`Review:${e}`;r[0]!==o?(t=tZ(o),r[0]=o,r[1]=t):t=r[1];let d=t;r[2]!==o?(n=()=>{tQ(o)},r[2]=o,r[3]=n):n=r[3];let u=n;r[4]!==s||r[5]!==o?(i=(e,t)=>{if(!s)try{tX(o,{event:e,text:t})}catch{l(!0)}},r[4]=s,r[5]=o,r[6]=i):i=r[6];let m=(0,tW.d)(i,1e3);return r[7]!==m||r[8]!==d||r[9]!==u?(a={persistedReview:d,persistReviewToStorage:m,removePersistedReviewFromStorage:u},r[7]=m,r[8]=d,r[9]=u,r[10]=a):a=r[10],a}:function(e){let[t,n]=(0,y.useState)(!1),i=(0,y.useMemo)(()=>`Review:${e}`,[e]);return{persistedReview:tZ(i),persistReviewToStorage:(0,tW.d)((e,a)=>{if(!t)try{tX(i,{event:e,text:a})}catch{n(!0)}},1e3),removePersistedReviewFromStorage:()=>{tQ(i)}}},tY=”ReviewMenuButton-module__ReviewMenuButton–uK7FN”,t0=”ReviewMenuButton-module__CommentBoxContainer–Un2Pq”,t1=”ReviewMenuButton-module__SubmitReviewButton–ZSu4L”,t2=”ReviewMenuButton-module__ErrorMessage–bglZe”,t3=”ReviewMenuButton-module__ExpandSection–sAB8o”,t4=”ReviewMenuButton-module__AnchoredReviewBody–nirqE”;function t5(e,t){let n=(0,I.BI)(e),i=(0,I.l0)();return(0,y.useMemo)(()=>{let a=e;if(void 0===n||void 0===i)return[];let r=[];for(let e of Object.keys(t)){let s=t[e];if(!s)continue;let l=0,{path:o,diffLines:d}=s,c=i[o];if(c){let e=function(e,t){if(!e||!e.markersMap)return[];let n=e.markersMap.FILE;if(void 0===n)return[];let i=[];for(let a of n.threads){if(void 0===a.id)continue;let n=t.find(e=>Number(e.id)===a.id);if(!n)continue;let r=n.commentsData?.comments.slice(0,-1),s=[];for(let e of r??[])e.author&&s.push({author:{avatarUrl:e.author.avatarUrl,login:e.author.login}});let l=(n.commentsData?.comments??[]).filter(e=>”pending”===e.state).map(t=>({bodyHTML:t.bodyHTML??””,threadId:n.id,commentId:(t.databaseId??0).toString(),isOutdated:n.isOutdated??!1,isResolved:!1,path:e.path,subjectType:”FILE”,commentsData:n.commentsData,threadPreviewComments:s}));i.push(…l)}return i}(c,n);e.length>0&&(r.push(…e),a=a.filter(t=>!e.some(e=>e.threadId===t.toString()))),d.map(e=>{let t=function(e,t,n,i,a,r){let s=”DELETION”!==t.type?`R${t.right}`:`L${t.left}`;if(!n||!n.markersMap)return{pendingCommentsReturnArray:[],markersFoundInLine:[]};let l=n.markersMap[s],o=[],d=[];if(l){for(let t of l.threads){let n;if(void 0===t.id)continue;let l=i.find(e=>Number(e.id)===t.id);if(!l)continue;let c=parseInt(s.slice(1))||0,u=-1,m=5;t.start&&(n=”L”===t.start[0]?”LEFT”:”RIGHT”,u=parseInt(t.start.slice(1))||-1),-1!==u&&(m=c-u),m>a&&(m=a+1);let f=r.slice(a+1-m,a+1);for(let e=0;e“pending”===e.state).map(t=>({bodyHTML:t.bodyHTML??””,threadId:l.id,commentId:(t.databaseId??0).toString(),isOutdated:l.isOutdated??!1,isResolved:!1,line:c,path:e,subject:{diffLines:f,endLine:c,startDiffSide:n,startLine:-1===u?null:u},subjectType:t.subjectType??”LINE”,commentsData:l.commentsData,threadPreviewComments:p}))))}return{pendingCommentsReturnArray:d,markersFoundInLine:o}}return{pendingCommentsReturnArray:[],markersFoundInLine:[]}}(s.path,e,c,n,l,d);l++,void 0!==t&&(r.push(…t.pendingCommentsReturnArray),a=a.filter(e=>!t.markersFoundInLine.includes(e)))})}}return[…r,…function(e,t){let n=[];for(let i of e){let e=t[i];if(!e)continue;let a=e.commentsData?.comments.slice(0,-1),r=[];for(let e of a??[])e.author&&r.push({author:{avatarUrl:e.author.avatarUrl,login:e.author.login}});let s=(e.commentsData?.comments??[]).filter(e=>”pending”===e.state).map(t=>({bodyHTML:t.bodyHTML??””,threadId:e.id,commentId:(t.databaseId??0).toString(),isOutdated:e.isOutdated??!1,isResolved:!1,path:””,subjectType:t.subjectType??”LINE”,commentsData:e.commentsData,threadPreviewComments:r}));n.push(…s)}return n}(a,n)]},[e,n,i,t])}var t6=n(29255),t7=n(55461),t8=n(15837),t9=n(33989),ne=n(55255);let nt=”ReviewMenu-module__Radio–i3DSd”,nn=”ReviewMenu-module__RadioGroup–uQwUG”,ni=”ReviewMenu-module__RadioText–dXY49″,na=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(13),{isPROpen:r,reviewEvent:s,viewerAllowedNonCommentReviewTypes:l,viewerCanWriteToRepo:d,viewerHasViolatedPushPolicy:u,viewerIsAuthor:m,viewerIsCopilotAttributed:f,handleReviewEventChange:h,handleReviewSubmit:g}=e;return r?(a[0]!==g?(t={“pull-request-files-changed:submit-review”:g},a[0]=g,a[1]=t):t=a[1],a[2]!==h||a[3]!==s||a[4]!==l||a[5]!==d||a[6]!==u||a[7]!==m||a[8]!==f?(n=(0,o.jsx)(nr,{reviewEvent:s,viewerAllowedNonCommentReviewTypes:l,viewerCanWriteToRepo:d,viewerHasViolatedPushPolicy:u,viewerIsAuthor:m,viewerIsCopilotAttributed:f,onReviewEventChange:h}),a[2]=h,a[3]=s,a[4]=l,a[5]=d,a[6]=u,a[7]=m,a[8]=f,a[9]=n):n=a[9],a[10]!==t||a[11]!==n?(i=(0,o.jsx)(p.tL,{commands:t,children:n}),a[10]=t,a[11]=n,a[12]=i):i=a[12],i):null}:function({isPROpen:e,reviewEvent:t,viewerAllowedNonCommentReviewTypes:n,viewerCanWriteToRepo:i,viewerHasViolatedPushPolicy:a,viewerIsAuthor:r,viewerIsCopilotAttributed:s,handleReviewEventChange:l,handleReviewSubmit:d}){return e?(0,o.jsx)(p.tL,{commands:{“pull-request-files-changed:submit-review”:d},children:(0,o.jsx)(nr,{reviewEvent:t,viewerAllowedNonCommentReviewTypes:n,viewerCanWriteToRepo:i,viewerHasViolatedPushPolicy:a,viewerIsAuthor:r,viewerIsCopilotAttributed:s,onReviewEventChange:l})}):null},nr=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g=(0,c.c)(34),{onReviewEventChange:x,reviewEvent:b,viewerAllowedNonCommentReviewTypes:v,viewerCanWriteToRepo:y,viewerHasViolatedPushPolicy:j,viewerIsAuthor:C,viewerIsCopilotAttributed:w}=e;g[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(t8.A.Label,{visuallyHidden:!0,children:”Review Event”}),g[0]=t):t=g[0];let N=b===tq.comment;g[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,t7.ZH)(tq.comment),g[1]=n):n=g[1],g[2]!==N?(i=(0,o.jsx)(ns,{checked:N,label:n,subLabel:”Submit general feedback without explicit approval.”,value:tq.comment}),g[2]=N,g[3]=i):i=g[3];let S=b===tq.approve;g[4]!==v?(a=v.includes(“APPROVE”),g[4]=v,g[5]=a):a=g[5];let L=!a;g[6]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,t7.ZH)(tq.approve),g[6]=r):r=g[6],g[7]!==w?(s=nd(w),g[7]=w,g[8]=s):s=g[8];let D=!!j;g[9]!==D||g[10]!==v||g[11]!==C?(l=nl(C,D,v),g[9]=D,g[10]=v,g[11]=C,g[12]=l):l=g[12],g[13]!==l||g[14]!==S||g[15]!==L||g[16]!==s?(d=(0,o.jsx)(ns,{checked:S,disabled:L,label:r,subLabel:s,value:tq.approve,disabledTooltip:l}),g[13]=l,g[14]=S,g[15]=L,g[16]=s,g[17]=d):d=g[17];let I=b===tq.requestChanges;g[18]!==v?(u=v.includes(“REQUEST_CHANGES”),g[18]=v,g[19]=u):u=g[19];let _=!u;g[20]!==v||g[21]!==C?(m=no(C,v),g[20]=v,g[21]=C,g[22]=m):m=g[22],g[23]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,t7.ZH)(tq.requestChanges),g[23]=f):f=g[23];let R=y?”Submit feedback that must be addressed before merging.”:”Submit feedback suggesting changes.”;return g[24]!==I||g[25]!==_||g[26]!==m||g[27]!==R?(h=(0,o.jsx)(ns,{checked:I,disabled:_,disabledTooltip:m,label:f,value:tq.requestChanges,subLabel:R}),g[24]=I,g[25]=_,g[26]=m,g[27]=R,g[28]=h):h=g[28],g[29]!==x||g[30]!==d||g[31]!==h||g[32]!==i?(p=(0,o.jsxs)(t8.A,{name:”reviewEvent”,onChange:x,className:nn,children:[t,i,d,h]}),g[29]=x,g[30]=d,g[31]=h,g[32]=i,g[33]=p):p=g[33],p}:function({onReviewEventChange:e,reviewEvent:t,viewerAllowedNonCommentReviewTypes:n,viewerCanWriteToRepo:i,viewerHasViolatedPushPolicy:a,viewerIsAuthor:r,viewerIsCopilotAttributed:s}){return(0,o.jsxs)(t8.A,{name:”reviewEvent”,onChange:e,className:nn,children:[(0,o.jsx)(t8.A.Label,{visuallyHidden:!0,children:”Review Event”}),(0,o.jsx)(ns,{checked:t===tq.comment,label:(0,t7.ZH)(tq.comment),subLabel:”Submit general feedback without explicit approval.”,value:tq.comment}),(0,o.jsx)(ns,{checked:t===tq.approve,disabled:!n.includes(“APPROVE”),label:(0,t7.ZH)(tq.approve),subLabel:nd(s),value:tq.approve,disabledTooltip:nl(r,!!a,n)}),(0,o.jsx)(ns,{checked:t===tq.requestChanges,disabled:!n.includes(“REQUEST_CHANGES”),disabledTooltip:no(r,n),label:(0,t7.ZH)(tq.requestChanges),value:tq.requestChanges,subLabel:i?”Submit feedback that must be addressed before merging.”:”Submit feedback suggesting changes.”})]})}),ns=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l=(0,c.c)(18),{checked:d,disabled:u,disabledTooltip:m,label:f,subLabel:h,value:p}=e;l[0]!==d||l[1]!==p?(t=(0,o.jsx)(t9.A,{checked:d,value:p,className:nt}),l[0]=d,l[1]=p,l[2]=t):t=l[2],l[3]!==f?(n=(0,o.jsx)(“span”,{className:”text-bold”,children:f}),l[3]=f,l[4]=n):n=l[4],l[5]!==h?(i=(0,o.jsx)(“span”,{className:ni,children:h}),l[5]=h,l[6]=i):i=l[6],l[7]!==n||l[8]!==i?(a=(0,o.jsxs)(ed.A.Label,{className:”d-flex flex-column”,children:[n,i]}),l[7]=n,l[8]=i,l[9]=a):a=l[9],l[10]!==u||l[11]!==t||l[12]!==a?(r=(0,o.jsxs)(ed.A,{disabled:u,children:[t,a]}),l[10]=u,l[11]=t,l[12]=a,l[13]=r):r=l[13];let g=r;return l[14]!==u||l[15]!==m||l[16]!==g?(s=u&&m?(0,o.jsx)(ne.A,{text:m,children:g}):g,l[14]=u,l[15]=m,l[16]=g,l[17]=s):s=l[17],s}:function({checked:e,disabled:t,disabledTooltip:n,label:i,subLabel:a,value:r}){let s=(0,o.jsxs)(ed.A,{disabled:t,children:[(0,o.jsx)(t9.A,{checked:e,value:r,className:nt}),(0,o.jsxs)(ed.A.Label,{className:”d-flex flex-column”,children:[(0,o.jsx)(“span”,{className:”text-bold”,children:i}),(0,o.jsx)(“span”,{className:ni,children:a})]})]});return t&&n?(0,o.jsx)(ne.A,{text:n,children:s}):s};function nl(e,t,n){return e?”Pull request authors can’t approve their own pull requests.”:t?”Users that pushed changes to this pull request after it was opened can’t approve”:n.includes(“APPROVE”)?””:”Only users with explicit access to this repository may approve pull requests”}function no(e,t){return e?”Pull request authors can’t request changes on their own pull requests.”:t.includes(“REQUEST_CHANGES”)?””:”Only users with explicit access to this repository may request changes on pull requests”}function nd(e){return e?”Only users who did not collaborate with Copilot will satisfy review requirements.”:”Submit feedback and approve merging these changes.”}try{na.displayName||(na.displayName=”ReviewTypeSelector”)}catch{}try{nr.displayName||(nr.displayName=”ReviewRadioButtons”)}catch{}try{ns.displayName||(ns.displayName=”RadioButton”)}catch{}var nc=n(4908),nu=n(23398);let nm=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f=(0,c.c)(23),{totalPendingComments:h,commentsList:p,handleNavigateToDiffComment:g}=e;f[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={defaultOpen:!0,closeOnOutsideClick:!1},f[0]=t):t=f[0];let{getDetailsProps:x,open:b}=(0,nc.A)(t);return h?(f[1]!==x?(n=x(),f[1]=x,f[2]=n):n=f[2],f[3]!==b?(i=b&&(0,o.jsx)(k.ChevronDownIcon,{className:”fgColor-muted”}),f[3]=b,f[4]=i):i=f[4],f[5]!==b?(a=!b&&(0,o.jsx)(k.ChevronRightIcon,{className:”fgColor-muted”}),f[5]=b,f[6]=a):a=f[6],f[7]!==h?(r=(0,o.jsxs)(Y.A,{as:”h2″,className:”f5″,children:[“Pending comments “,(0,o.jsx)(N.A,{children:h})]}),f[7]=h,f[8]=r):r=f[8],f[9]!==i||f[10]!==a||f[11]!==r?(s=(0,o.jsx)(nu.A.Summary,{children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center gap-2 mt-4 mb-2″,children:[i,a,r]})}),f[9]=i,f[10]=a,f[11]=r,f[12]=s):s=f[12],f[13]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,o.jsx)(ee.A,{}),f[13]=l):l=f[13],f[14]!==p||f[15]!==g?(d=p?.map(e=>(0,o.jsx)(tb,{commentPreview:e,onNavigateToDiffComment:g},e.threadId)),f[14]=p,f[15]=g,f[16]=d):d=f[16],f[17]!==d?(u=(0,o.jsx)(y.Suspense,{fallback:l,children:(0,o.jsx)(“div”,{className:”d-flex flex-column gap-3″,children:d})}),f[17]=d,f[18]=u):u=f[18],f[19]!==n||f[20]!==s||f[21]!==u?(m=(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(nu.A,{…n,children:[s,u]})}),f[19]=n,f[20]=s,f[21]=u,f[22]=m):m=f[22],m):null}:function({totalPendingComments:e,commentsList:t,handleNavigateToDiffComment:n}){let{getDetailsProps:i,open:a}=(0,nc.A)({defaultOpen:!0,closeOnOutsideClick:!1});return e?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(nu.A,{…i(),children:[(0,o.jsx)(nu.A.Summary,{children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center gap-2 mt-4 mb-2″,children:[a&&(0,o.jsx)(k.ChevronDownIcon,{className:”fgColor-muted”}),!a&&(0,o.jsx)(k.ChevronRightIcon,{className:”fgColor-muted”}),(0,o.jsxs)(Y.A,{as:”h2″,className:”f5″,children:[“Pending comments “,(0,o.jsx)(N.A,{children:e})]})]})}),(0,o.jsx)(y.Suspense,{fallback:(0,o.jsx)(ee.A,{}),children:(0,o.jsx)(“div”,{className:”d-flex flex-column gap-3″,children:t?.map(e=>(0,o.jsx)(tb,{commentPreview:e,onNavigateToDiffComment:n},e.threadId))})})]})}):null};try{nm.displayName||(nm.displayName=”ReviewCommentsSection”)}catch{}var nf=n(56149);let nh=(0,d.Z6)()?e=>{let t,n,i,a=(0,c.c)(4),{portalName:r}=e,s=(0,y.useRef)(null);return a[0]!==r?(t=()=>{s.current&&(0,nf.cw)(s.current,r)},n=[r],a[0]=r,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,y.useEffect)(t,n),a[3]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,o.jsx)(“div”,{ref:s,className:”position-absolute”}),a[3]=i):i=a[3],i}:({portalName:e})=>{let t=(0,y.useRef)(null);return(0,y.useEffect)(()=>{t.current&&(0,nf.cw)(t.current,e)},[e]),(0,o.jsx)(“div”,{ref:t,className:”position-absolute”})};try{nh.displayName||(nh.displayName=”OverlayPortalContainer”)}catch{}let np=”review-menu-portal-root”;function ng({viewerIsAuthor:e,viewerAllowedNonCommentReviewTypes:t,isPROpen:n}){let i=t.includes(“APPROVE”),a=t.includes(“REQUEST_CHANGES”);switch(!0){case!n:return{isHidden:!1,text:”comments”};case e:case i:case a:return{isHidden:!1,text:”review”};default:return{isHidden:!1,text:”comments”}}}let nx=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,b,v,j,C,w,N,S,L,D,_,R,A,E,T,O,P,F,$,M,B,V=(0,c.c)(125),{currentUserLogin:U,pullRequest:H,repository:G,redirectOnMutation:q}=e,K=void 0===q||q,{author:z,pathName:W,state:Z,viewerAllowedNonCommentReviewTypes:Q,viewerHasViolatedPushPolicy:X,viewerIsCopilotAttributed:J,comparison:ee}=H,et=(0,I.ys)(),en=(0,I.HZ)(),{persistedReview:ei,persistReviewToStorage:ea,removePersistedReviewFromStorage:es}=tJ(W);V[0]!==et?.pendingReviewIDs?(t=et?.pendingReviewIDs??[],V[0]=et?.pendingReviewIDs,V[1]=t):t=V[1];let eo=t5(t,en),ed=eo?.length??0,ec=z?.login===U,eu=Z!==tG.Q.Closed&&Z!==tG.Q.Merged,ef=”WRITE”===G.viewerPermission||”ADMIN”===G.viewerPermission,eh=ee.headOid,[ep,eg]=(0,tV.A)(“none”),[ex,eb]=(0,tV.A)(“idle”),[ev,ey]=(0,tV.A)(),[ej,eC]=(0,tV.A)(ei?.event??tq.comment);V[2]!==et?.pendingReviewIDs?(n=et?.pendingReviewIDs??[],V[2]=et?.pendingReviewIDs,V[3]=n):n=V[3];let ew=n.length>0,eN=(0,y.useRef)(null),eS=ei?.text??””,eL=(0,y.useRef)(eS),[eD,eI]=(0,tV.A)(!!ei?.text),e_=”submitting”===ex||!eD&&ej===tq.comment&&!ed,{sendPullRequestAnalyticsEvent:eR}=(0,er.q)();V[4]!==ea||V[5]!==ej||V[6]!==eI?(i=e=>{eL.current=e,eI(!!e.trim()),ea(ej,e)},V[4]=ea,V[5]=ej,V[6]=eI,V[7]=i):i=V[7];let ek=i;V[8]!==ea||V[9]!==eC?(a=e=>{Object.values(tq).includes(e)&&(eC(e),ea(e,eL.current))},V[8]=ea,V[9]=eC,V[10]=a):a=V[10];let eA=a;V[11]!==K||V[12]!==es?(r=e=>{let{redirectUrl:t}=e;es(),K&&(window.location.href=t)},V[11]=K,V[12]=es,V[13]=r):r=V[13],V[14]!==ey||V[15]!==eb?(s=e=>{eb(“idle”),ey(e.message)},V[14]=ey,V[15]=eb,V[16]=s):s=V[16],V[17]!==r||V[18]!==s?(l={onSuccess:r,onError:s},V[17]=r,V[18]=s,V[19]=l):l=V[19];let{mutate:eE}=tK(l);V[20]!==K||V[21]!==es?(d=e=>{let{redirectUrl:t}=e;es(),K&&(window.location.href=t)},V[20]=K,V[21]=es,V[22]=d):d=V[22],V[23]!==ey||V[24]!==eb?(u=e=>{eb(“idle”),ey(e.message)},V[23]=ey,V[24]=eb,V[25]=u):u=V[25],V[26]!==u||V[27]!==d?(m={onSuccess:d,onError:u},V[26]=u,V[27]=d,V[28]=m):m=V[28];let{mutate:eT}=tz(m);V[29]!==ev||V[30]!==eh||V[31]!==ej||V[32]!==eR||V[33]!==ey||V[34]!==eb||V[35]!==e_||V[36]!==eE?(f=()=>{e_||(ev&&ey(void 0),eb(“submitting”),eR(“submit_review_dialog.submit”,”SUBMIT_REVIEW_BUTTON”),eE({body:eL.current,event:ej,headSha:eh}))},V[29]=ev,V[30]=eh,V[31]=ej,V[32]=eR,V[33]=ey,V[34]=eb,V[35]=e_,V[36]=eE,V[37]=f):f=V[37];let eO=f;V[38]!==eT||V[39]!==ev||V[40]!==et?.pendingReviewIDs||V[41]!==eR||V[42]!==ey||V[43]!==eb?(h=()=>{0===(et?.pendingReviewIDs??[]).length||confirm(“Are you sure you want to cancel? You will lose all your pending comments.”)&&(ev&&ey(void 0),eb(“canceling”),eR(“submit_review_dialog.cancel”,”CANCEL_REVIEW_BUTTON”),eT())},V[38]=eT,V[39]=ev,V[40]=et?.pendingReviewIDs,V[41]=eR,V[42]=ey,V[43]=eb,V[44]=h):h=V[44],et?.pendingReviewIDs;let eP=h;V[45]!==eu||V[46]!==Q||V[47]!==ec?(p=ng({isPROpen:eu,viewerAllowedNonCommentReviewTypes:Q,viewerIsAuthor:ec}),V[45]=eu,V[46]=Q,V[47]=ec,V[48]=p):p=V[48];let eF=p;V[49]!==eR||V[50]!==eg?(g=()=>{window.innerWidth<768?eg("dialog"):eg("anchored"),eR("submit_review_dialog.open","REVIEW_CHANGES_BUTTON")},V[49]=eR,V[50]=eg,V[51]=g):g=V[51];let e$=g;V[52]!==eg?(b=()=>{eg(“none”)},V[52]=eg,V[53]=b):b=V[53];let eM=b;V[54]!==eg?(v=()=>{eg(“none”)},V[54]=eg,V[55]=v):v=V[55];let eB=v;V[56]!==eM||V[57]!==e$||V[58]!==ep?(j=()=>{“none”===ep?e$():eM()},V[56]=eM,V[57]=e$,V[58]=ep,V[59]=j):j=V[59];let eV=j;V[60]!==eo||V[61]!==eB||V[62]!==eA||V[63]!==eO||V[64]!==eS||V[65]!==eu||V[66]!==ek||V[67]!==ej||V[68]!==ed||V[69]!==Q||V[70]!==ef||V[71]!==X||V[72]!==ec||V[73]!==J?(C=(0,o.jsx)(ny,{initialReviewBody:eS,isPROpen:eu,onReviewBodyChange:ek,reviewEvent:ej,viewerAllowedNonCommentReviewTypes:Q,viewerCanWriteToRepo:ef,viewerHasViolatedPushPolicy:X,viewerIsAuthor:ec,viewerIsCopilotAttributed:J,commentsList:eo,totalPendingComments:ed,handleNavigateToDiffComment:eB,handleReviewSubmit:eO,handleReviewEventChange:eA}),V[60]=eo,V[61]=eB,V[62]=eA,V[63]=eO,V[64]=eS,V[65]=eu,V[66]=ek,V[67]=ej,V[68]=ed,V[69]=Q,V[70]=ef,V[71]=X,V[72]=ec,V[73]=J,V[74]=C):C=V[74];let eU=C;if(eF.isHidden)return null;V[75]!==ev||V[76]!==eM||V[77]!==eP||V[78]!==eO||V[79]!==ew||V[80]!==eF||V[81]!==ex||V[82]!==e_?(w=()=>(0,o.jsx)(nv,{errorMessage:ev,hasPendingReviews:ew,reviewSubmissionState:ex,handleReviewCancel:eP,handleCloseReviewDialog:eM,handleReviewSubmit:eO,submitDisabled:e_,reviewMenuButtonDisplayState:eF}),V[75]=ev,V[76]=eM,V[77]=eP,V[78]=eO,V[79]=ew,V[80]=eF,V[81]=ex,V[82]=e_,V[83]=w):w=V[83];let eH=w,eG=ed||void 0;V[84]!==eV||V[85]!==eF.text||V[86]!==eG?(N=(0,o.jsxs)(em.Q,{count:eG,className:tY,trailingAction:k.TriangleDownIcon,variant:”primary”,onClick:eV,size:”small”,ref:eN,children:[“Submit “,eF.text]}),V[84]=eV,V[85]=eF.text,V[86]=eG,V[87]=N):N=V[87],V[88]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,o.jsx)(nh,{portalName:np}),V[88]=S):S=V[88];let eq=”anchored”===ep;return V[89]===Symbol.for(“react.memo_cache_sentinel”)?(L={regular:”anchored”,narrow:”fullscreen”},V[89]=L):L=V[89],V[90]===Symbol.for(“react.memo_cache_sentinel”)?(D={disabled:!0},_={role:”dialog”,”aria-labelledby”:”anchored-review-title”,”aria-modal”:”true”,portalContainerName:np},V[90]=D,V[91]=_):(D=V[90],_=V[91]),V[92]!==eF.text?(R=(0,o.jsxs)(Y.A,{as:”h1″,className:”flex-1 f5″,variant:”small”,id:”anchored-review-title”,children:[“Finish your “,eF.text]}),V[92]=eF.text,V[93]=R):R=V[93],V[94]!==ew||V[95]!==eg?(A=ew&&(0,o.jsx)(el.K,{icon:k.MaximizeIcon,className:t3,variant:”invisible”,”aria-label”:”Expand this section”,onClick:()=>eg(“dialog”)}),V[94]=ew,V[95]=eg,V[96]=A):A=V[96],V[97]!==eM?(E=(0,o.jsx)(el.K,{icon:k.XIcon,variant:”invisible”,”aria-label”:”Close”,onClick:eM}),V[97]=eM,V[98]=E):E=V[98],V[99]!==A||V[100]!==E?(T=(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,gap:”none”,children:[A,E]}),V[99]=A,V[100]=E,V[101]=T):T=V[101],V[102]!==R||V[103]!==T?(O=(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,justify:”space-between”,className:”py-2 border-bottom px-3″,children:[R,T]}),V[102]=R,V[103]=T,V[104]=O):O=V[104],V[105]!==eU?(P=(0,o.jsx)(“div”,{className:t4,children:eU}),V[105]=eU,V[106]=P):P=V[106],V[107]!==eH?(F=(0,o.jsx)(“div”,{className:”p-3 border-top”,children:(0,o.jsx)(eH,{})}),V[107]=eH,V[108]=F):F=V[108],V[109]!==eM||V[110]!==eq||V[111]!==O||V[112]!==P||V[113]!==F?($=(0,o.jsxs)(tH.T,{open:eq,anchorRef:eN,width:”xlarge”,onClose:eM,displayCloseButton:!1,variant:L,renderAnchor:null,focusZoneSettings:D,overlayProps:_,children:[O,P,F]}),V[109]=eM,V[110]=eq,V[111]=O,V[112]=P,V[113]=F,V[114]=$):$=V[114],V[115]!==eU||V[116]!==eH||V[117]!==eM||V[118]!==ep||V[119]!==eF.text?(M=”dialog”===ep&&(0,o.jsx)(x.l,{onClose:eM,returnFocusRef:eN,”aria-label”:”Review changes”,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},title:`Finish your ${eF.text}`,renderFooter:()=>(0,o.jsx)(x.l.Footer,{children:(0,o.jsx)(eH,{})}),children:eU}),V[115]=eU,V[116]=eH,V[117]=eM,V[118]=ep,V[119]=eF.text,V[120]=M):M=V[120],V[121]!==N||V[122]!==$||V[123]!==M?(B=(0,o.jsxs)(o.Fragment,{children:[N,S,$,M]}),V[121]=N,V[122]=$,V[123]=M,V[124]=B):B=V[124],B}:function({currentUserLogin:e,pullRequest:t,repository:n,redirectOnMutation:i=!0}){let{author:a,pathName:r,state:s,viewerAllowedNonCommentReviewTypes:l,viewerHasViolatedPushPolicy:d,viewerIsCopilotAttributed:c,comparison:u}=t,m=(0,I.ys)(),f=(0,I.HZ)(),{persistedReview:h,persistReviewToStorage:p,removePersistedReviewFromStorage:g}=tJ(r),b=t5(m?.pendingReviewIDs??[],f),v=b?.length??0,j=a?.login===e,C=s!==tG.Q.Closed&&s!==tG.Q.Merged,w=”WRITE”===n.viewerPermission||”ADMIN”===n.viewerPermission,N=u.headOid,[S,L]=(0,tV.A)(“none”),[D,_]=(0,tV.A)(“idle”),[R,A]=(0,tV.A)(),[E,T]=(0,tV.A)(h?.event??tq.comment),O=(m?.pendingReviewIDs??[]).length>0,P=(0,y.useRef)(null),F=h?.text??””,$=(0,y.useRef)(F),[M,B]=(0,tV.A)(!!h?.text),V=”submitting”===D||!M&&E===tq.comment&&!v,{sendPullRequestAnalyticsEvent:U}=(0,er.q)(),H=(0,y.useCallback)(e=>{$.current=e,B(!!e.trim()),p(E,e)},[p,E,B]),G=(0,y.useCallback)(e=>{Object.values(tq).includes(e)&&(T(e),p(e,$.current))},[p,T]),{mutate:q}=tK({onSuccess:({redirectUrl:e})=>{g(),i&&(window.location.href=e)},onError:e=>{_(“idle”),A(e.message)}}),{mutate:K}=tz({onSuccess:({redirectUrl:e})=>{g(),i&&(window.location.href=e)},onError:e=>{_(“idle”),A(e.message)}}),z=(0,y.useCallback)(()=>{V||(R&&A(void 0),_(“submitting”),U(“submit_review_dialog.submit”,”SUBMIT_REVIEW_BUTTON”),q({body:$.current,event:E,headSha:N}))},[R,N,E,U,A,_,V,q]),W=(0,y.useCallback)(()=>{0===(m?.pendingReviewIDs??[]).length||confirm(“Are you sure you want to cancel? You will lose all your pending comments.”)&&(R&&A(void 0),_(“canceling”),U(“submit_review_dialog.cancel”,”CANCEL_REVIEW_BUTTON”),K())},[K,R,m?.pendingReviewIDs,U,A,_]),Z=(0,y.useMemo)(()=>ng({isPROpen:C,viewerAllowedNonCommentReviewTypes:l,viewerIsAuthor:j}),[l,j,C]),Q=(0,y.useCallback)(()=>{window.innerWidth<768?L("dialog"):L("anchored"),U("submit_review_dialog.open","REVIEW_CHANGES_BUTTON")},[U,L]),X=(0,y.useCallback)(()=>{L(“none”)},[L]),J=(0,y.useCallback)(()=>{L(“none”)},[L]),ee=(0,y.useCallback)(()=>{“none”===S?Q():X()},[X,Q,S]),et=(0,y.useMemo)(()=>(0,o.jsx)(ny,{initialReviewBody:F,isPROpen:C,onReviewBodyChange:H,reviewEvent:E,viewerAllowedNonCommentReviewTypes:l,viewerCanWriteToRepo:w,viewerHasViolatedPushPolicy:d,viewerIsAuthor:j,viewerIsCopilotAttributed:c,commentsList:b,totalPendingComments:v,handleNavigateToDiffComment:J,handleReviewSubmit:z,handleReviewEventChange:G}),[b,J,G,z,F,C,H,E,v,l,w,d,j,c]);if(Z.isHidden)return null;let en=()=>(0,o.jsx)(nv,{errorMessage:R,hasPendingReviews:O,reviewSubmissionState:D,handleReviewCancel:W,handleCloseReviewDialog:X,handleReviewSubmit:z,submitDisabled:V,reviewMenuButtonDisplayState:Z});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(em.Q,{count:v||void 0,className:tY,trailingAction:k.TriangleDownIcon,variant:”primary”,onClick:ee,size:”small”,ref:P,children:[“Submit “,Z.text]}),(0,o.jsx)(nh,{portalName:np}),(0,o.jsxs)(tH.T,{open:”anchored”===S,anchorRef:P,width:”xlarge”,onClose:X,displayCloseButton:!1,variant:{regular:”anchored”,narrow:”fullscreen”},renderAnchor:null,focusZoneSettings:{disabled:!0},overlayProps:{role:”dialog”,”aria-labelledby”:”anchored-review-title”,”aria-modal”:”true”,portalContainerName:np},children:[(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,justify:”space-between”,className:”py-2 border-bottom px-3″,children:[(0,o.jsxs)(Y.A,{as:”h1″,className:”flex-1 f5″,variant:”small”,id:”anchored-review-title”,children:[“Finish your “,Z.text]}),(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,gap:”none”,children:[O&&(0,o.jsx)(el.K,{icon:k.MaximizeIcon,className:t3,variant:”invisible”,”aria-label”:”Expand this section”,onClick:()=>L(“dialog”)}),(0,o.jsx)(el.K,{icon:k.XIcon,variant:”invisible”,”aria-label”:”Close”,onClick:X})]})]}),(0,o.jsx)(“div”,{className:t4,children:et}),(0,o.jsx)(“div”,{className:”p-3 border-top”,children:(0,o.jsx)(en,{})})]}),”dialog”===S&&(0,o.jsx)(x.l,{onClose:X,returnFocusRef:P,”aria-label”:”Review changes”,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},title:`Finish your ${Z.text}`,renderFooter:()=>(0,o.jsx)(x.l.Footer,{children:(0,o.jsx)(en,{})}),children:et})]})},nb=(0,y.forwardRef)((0,d.Z6)()?(e,t)=>{let n,i,a,r,s,l=(0,c.c)(12);l[0]!==e?({initialValue:n,onChange:i,…a}=e,l[0]=e,l[1]=n,l[2]=i,l[3]=a):(n=l[1],i=l[2],a=l[3]);let[d,u]=(0,tV.A)(n);l[4]!==i||l[5]!==u?(r=e=>{u(e),i(e)},l[4]=i,l[5]=u,l[6]=r):r=l[6];let m=r;return l[7]!==m||l[8]!==a||l[9]!==t||l[10]!==d?(s=(0,o.jsx)(tB.S,{…a,value:d,onChange:m,ref:t}),l[7]=m,l[8]=a,l[9]=t,l[10]=d,l[11]=s):s=l[11],s}:({initialValue:e,onChange:t,…n},i)=>{let[a,r]=(0,tV.A)(e),s=(0,y.useCallback)(e=>{r(e),t(e)},[r,t]);return(0,o.jsx)(tB.S,{…n,value:a,onChange:s,ref:i})});nb.displayName=”ControlledCommentBox”;let nv=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m=(0,c.c)(28),{errorMessage:f,handleReviewCancel:h,handleCloseReviewDialog:p,handleReviewSubmit:g,hasPendingReviews:x,submitDisabled:b,reviewMenuButtonDisplayState:v,reviewSubmissionState:y}=e,j=”canceling”===y,C=”submitting”===y;m[0]!==f?(t=f&&(0,o.jsxs)(tn.A,{className:t2,variant:”danger”,children:[(0,o.jsx)(k.StopIcon,{className:”mr-2″}),f]}),m[0]=f,m[1]=t):t=m[1],m[2]!==h||m[3]!==x||m[4]!==j||m[5]!==C||m[6]!==v.text?(n=x?(0,o.jsx)(em.Q,{disabled:j||C,loading:j,onClick:h,tabIndex:0,variant:”danger”,children:(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,children:[“Discard “,v.text]})}):(0,o.jsx)(“div”,{}),m[2]=h,m[3]=x,m[4]=j,m[5]=C,m[6]=v.text,m[7]=n):n=m[7];let w=j||C;m[8]!==p||m[9]!==w?(i=(0,o.jsx)(em.Q,{onClick:p,disabled:w,children:”Cancel”}),m[8]=p,m[9]=w,m[10]=i):i=m[10];let N=b||C;return m[11]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,o.jsx)(t6.U,{keys:”Mod+enter”}),m[11]=a):a=m[11],m[12]!==v.text?(r=(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-center”,children:[“Submit “,v.text]}),m[12]=v.text,m[13]=r):r=m[13],m[14]!==g||m[15]!==C||m[16]!==N||m[17]!==r?(s=(0,o.jsx)(em.Q,{disabled:N,variant:”primary”,onClick:g,loading:C,className:t1,trailingVisual:a,children:r}),m[14]=g,m[15]=C,m[16]=N,m[17]=r,m[18]=s):s=m[18],m[19]!==i||m[20]!==s?(l=(0,o.jsxs)(“div”,{className:”d-flex flex-row gap-2″,children:[i,s]}),m[19]=i,m[20]=s,m[21]=l):l=m[21],m[22]!==n||m[23]!==l?(d=(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-1 flex-items-center flex-justify-between gap-2″,children:[n,l]}),m[22]=n,m[23]=l,m[24]=d):d=m[24],m[25]!==t||m[26]!==d?(u=(0,o.jsxs)(o.Fragment,{children:[t,d]}),m[25]=t,m[26]=d,m[27]=u):u=m[27],u}:function({errorMessage:e,handleReviewCancel:t,handleCloseReviewDialog:n,handleReviewSubmit:i,hasPendingReviews:a,submitDisabled:r,reviewMenuButtonDisplayState:s,reviewSubmissionState:l}){let d=”canceling”===l,c=”submitting”===l;return(0,o.jsxs)(o.Fragment,{children:[e&&(0,o.jsxs)(tn.A,{className:t2,variant:”danger”,children:[(0,o.jsx)(k.StopIcon,{className:”mr-2″}),e]}),(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-1 flex-items-center flex-justify-between gap-2″,children:[a?(0,o.jsx)(em.Q,{disabled:d||c,loading:d,onClick:t,tabIndex:0,variant:”danger”,children:(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,children:[“Discard “,s.text]})}):(0,o.jsx)(“div”,{}),(0,o.jsxs)(“div”,{className:”d-flex flex-row gap-2″,children:[(0,o.jsx)(em.Q,{onClick:n,disabled:d||c,children:”Cancel”}),(0,o.jsx)(em.Q,{disabled:r||c,variant:”primary”,onClick:i,loading:c,className:t1,trailingVisual:(0,o.jsx)(t6.U,{keys:”Mod+enter”}),children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-center”,children:[“Submit “,s.text]})})]})]})]})},ny=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l=(0,c.c)(24),{initialReviewBody:d,isPROpen:u,onReviewBodyChange:m,reviewEvent:f,viewerAllowedNonCommentReviewTypes:h,viewerCanWriteToRepo:p,viewerHasViolatedPushPolicy:g,viewerIsAuthor:x,viewerIsCopilotAttributed:b,commentsList:v,totalPendingComments:j,handleNavigateToDiffComment:C,handleReviewSubmit:w,handleReviewEventChange:N}=e,S=(0,y.useRef)(null);return l[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>{let e=window.setTimeout(()=>S.current?.focus());return()=>{window.clearTimeout(e)}},n=[],l[0]=t,l[1]=n):(t=l[0],n=l[1]),(0,y.useEffect)(t,n),l[2]!==w||l[3]!==d||l[4]!==m?(i=(0,o.jsx)(nb,{ref:S,label:”Add review comment”,placeholder:”Leave a comment”,className:t0,initialValue:d,onChange:m,onPrimaryAction:w}),l[2]=w,l[3]=d,l[4]=m,l[5]=i):i=l[5],l[6]!==N||l[7]!==w||l[8]!==u||l[9]!==f||l[10]!==h||l[11]!==p||l[12]!==g||l[13]!==x||l[14]!==b?(a=(0,o.jsx)(na,{isPROpen:u,reviewEvent:f,viewerAllowedNonCommentReviewTypes:h,viewerCanWriteToRepo:p,viewerHasViolatedPushPolicy:g,viewerIsAuthor:x,viewerIsCopilotAttributed:b,handleReviewEventChange:N,handleReviewSubmit:w}),l[6]=N,l[7]=w,l[8]=u,l[9]=f,l[10]=h,l[11]=p,l[12]=g,l[13]=x,l[14]=b,l[15]=a):a=l[15],l[16]!==v||l[17]!==C||l[18]!==j?(r=(0,o.jsx)(nm,{totalPendingComments:j,commentsList:v,handleNavigateToDiffComment:C}),l[16]=v,l[17]=C,l[18]=j,l[19]=r):r=l[19],l[20]!==i||l[21]!==a||l[22]!==r?(s=(0,o.jsxs)(o.Fragment,{children:[i,a,r]}),l[20]=i,l[21]=a,l[22]=r,l[23]=s):s=l[23],s}:function({initialReviewBody:e,isPROpen:t,onReviewBodyChange:n,reviewEvent:i,viewerAllowedNonCommentReviewTypes:a,viewerCanWriteToRepo:r,viewerHasViolatedPushPolicy:s,viewerIsAuthor:l,viewerIsCopilotAttributed:d,commentsList:c,totalPendingComments:u,handleNavigateToDiffComment:m,handleReviewSubmit:f,handleReviewEventChange:h}){let p=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let e=window.setTimeout(()=>p.current?.focus());return()=>{window.clearTimeout(e)}},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nb,{ref:p,label:”Add review comment”,placeholder:”Leave a comment”,className:t0,initialValue:e,onChange:n,onPrimaryAction:f}),(0,o.jsx)(na,{isPROpen:t,reviewEvent:i,viewerAllowedNonCommentReviewTypes:a,viewerCanWriteToRepo:r,viewerHasViolatedPushPolicy:s,viewerIsAuthor:l,viewerIsCopilotAttributed:d,handleReviewEventChange:h,handleReviewSubmit:f}),(0,o.jsx)(nm,{totalPendingComments:u,commentsList:c,handleNavigateToDiffComment:m})]})};try{nx.displayName||(nx.displayName=”ReviewMenuButton”)}catch{}try{(i=ReviewMenuBody).displayName||(i.displayName=”ReviewMenuBody”)}catch{}try{(a=ReviewMenuFooter).displayName||(a.displayName=”ReviewMenuFooter”)}catch{}try{nv.displayName||(nv.displayName=”ReviewMenuFooterComponent”)}catch{}try{ny.displayName||(ny.displayName=”ReviewMenuBodyComponent”)}catch{}var nj=n(27028),nC=n(39029);let nw=”RefreshButton-module__refresh–gOrN1″;var nN=n(91747),nS=n(43073),nL=n(61526);let nD=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(6),{aliveChannel:r,pathName:s}=e,[l,d]=(0,y.useState)(!1),u=(0,nS.E)(),m=(0,nN.u)(“combined_pr_changes_route”)?`${s}/changes`:`${s}/files`,{markComparisonOutdated:f}=(0,I.yo)();a[0]!==f?(t=()=>{f(),d(!0)},a[0]=f,a[1]=t):t=a[1];let h=t;if(a[2]===Symbol.for(“react.memo_cache_sentinel”)?(n={git_updated:!0},a[2]=n):n=a[2],(0,nC.G)(r,h,n),!l)return null;if(u){let e;return a[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(n_,{}),a[3]=e):e=a[3],e}return a[4]!==m?(i=(0,o.jsx)(nI,{refreshUrl:m}),a[4]=m,a[5]=i):i=a[5],i}:function({aliveChannel:e,pathName:t}){let[n,i]=(0,y.useState)(!1),a=(0,nS.E)(),r=(0,nN.u)(“combined_pr_changes_route”)?`${t}/changes`:`${t}/files`,{markComparisonOutdated:s}=(0,I.yo)();return((0,nC.G)(e,()=>{s(),i(!0)},{git_updated:!0}),n)?a?(0,o.jsx)(n_,{}):(0,o.jsx)(nI,{refreshUrl:r}):null},nI=(0,d.Z6)()?function(e){let t,n,i=(0,c.c)(5),{refreshUrl:a}=e;i[0]!==a?(t=e=>{e.preventDefault(),window.location.href=a},i[0]=a,i[1]=t):t=i[1];let r=t;return i[2]!==r||i[3]!==a?(n=(0,o.jsx)(em.Q,{as:E.A,variant:”invisible”,href:a,className:nw,leadingVisual:k.SyncIcon,size:”small”,onClick:r,children:”Refresh”}),i[2]=r,i[3]=a,i[4]=n):n=i[4],n}:function({refreshUrl:e}){return(0,o.jsx)(em.Q,{as:E.A,variant:”invisible”,href:e,className:nw,leadingVisual:k.SyncIcon,size:”small”,onClick:t=>{t.preventDefault(),window.location.href=e},children:”Refresh”})},n_=(0,d.Z6)()?function(){let e,t,n=(0,c.c)(4),i=(0,nL.zy)(),[a,r]=(0,y.useState)(!1);n[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=async()=>{r(!0)},n[0]=e):e=n[0];let s=e;return n[1]!==a||n[2]!==i.pathname?(t=(0,o.jsx)(em.Q,{as:nL.N_,to:i.pathname,variant:”invisible”,className:nw,leadingVisual:k.SyncIcon,size:”small”,onClick:s,loading:a,preventScrollReset:!0,children:”Refresh”}),n[1]=a,n[2]=i.pathname,n[3]=t):t=n[3],t}:function(){let e=(0,nL.zy)(),[t,n]=(0,y.useState)(!1),i=async()=>{n(!0)};return(0,o.jsx)(em.Q,{as:nL.N_,to:e.pathname,variant:”invisible”,className:nw,leadingVisual:k.SyncIcon,size:”small”,onClick:i,loading:t,preventScrollReset:!0,children:”Refresh”})};try{nD.displayName||(nD.displayName=”RefreshButton”)}catch{}try{nI.displayName||(nI.displayName=”NavigatorRefreshButton”)}catch{}try{n_.displayName||(n_.displayName=”DataRouterRefreshButton”)}catch{}var nR=n(40523),nk=n(68874),nA=n(14808);let nE=(0,y.forwardRef)(function(e,t){let n,i,a,r,s,l,d,u,m,f,h,p,g,x,b,v,j,C,N,S,L,D,I,_,R=(0,c.c)(77),{items:k,onMultiSelect:A,onSingleSelect:E,onApply:T,onCancel:O,buttonProps:P,anchorLabel:F,variant:$,title:M,dialogProps:B}=e,V=void 0===$?”overlay”:$,U=(0,y.useRef)(null),[H,G]=(0,y.useState)(!1),[q,K]=(0,y.useState)();R[0]===Symbol.for(“react.memo_cache_sentinel”)?(n=()=>({open:()=>G(!0)}),R[0]=n):n=R[0],(0,y.useImperativeHandle)(t,n),R[1]!==k?(i=k.reduce(nO,{single:[],multiple:[]}),R[1]=k,R[2]=i):i=R[2];let z=i;R[3]!==z?(a=()=>z,R[3]=z,R[4]=a):a=R[4];let[W,Z]=(0,y.useState)(a);R[5]!==W?.multiple||R[6]!==W?.single?(r=e=>{Z({single:W?.single.map(t=>t.id===e.id?{…t,selected:!t.selected}:t.selected?{…t,selected:!1}:t)||[],multiple:W?.multiple||[]})},R[5]=W?.multiple,R[6]=W?.single,R[7]=r):r=R[7];let Q=r;R[8]!==W?.multiple||R[9]!==W?.single?(s=e=>{let t=W?.multiple.map(t=>t.id===e.id?{…t,selected:!t.selected}:t)||[];Z({single:W?.single||[],multiple:t})},R[8]=W?.multiple,R[9]=W?.single,R[10]=s):s=R[10];let X=s;R[11]!==W?.multiple||R[12]!==A||R[13]!==z?.multiple?(l=A?z?.multiple.filter(nF).length:W?.multiple.filter(nP).length||0,R[11]=W?.multiple,R[12]=A,R[13]=z?.multiple,R[14]=l):l=R[14];let J=l;R[15]!==q?.multiple?(d=q?.multiple.filter(n$).length||0,R[15]=q?.multiple,R[16]=d):d=R[16];let Y=d,ee=J&&0!==Y?`${Y} commit${Y>1?”s”:””} selected`:”Select commits”;R[17]!==W||R[18]!==T?(u=()=>{K(W),G(!1),T&&T(W?.multiple.filter(nM)||[])},R[17]=W,R[18]=T,R[19]=u):u=R[19];let et=u;R[20]!==O||R[21]!==z?(m=()=>{Z(z),K(z),O?.()},R[20]=O,R[21]=z,R[22]=m):m=R[22];let en=m;R[23]!==H?(f=()=>G(!H),R[23]=H,R[24]=f):f=R[24];let ei=F||ee;R[25]!==P||R[26]!==f||R[27]!==ei?(h=(0,o.jsx)(em.Q,{ref:U,onClick:f,…P,children:ei}),R[25]=P,R[26]=f,R[27]=ei,R[28]=h):h=R[28],R[29]!==W?.single||R[30]!==q?.multiple||R[31]!==z?(p=()=>{Z({single:W?.single||[],multiple:q?.multiple||z.multiple}),G(!1)},R[29]=W?.single,R[30]=q?.multiple,R[31]=z,R[32]=p):p=R[32],R[33]===Symbol.for(“react.memo_cache_sentinel”)?(g={focusOutBehavior:”wrap”,focusableElementFilter:nB},R[33]=g):g=R[33],R[34]!==en?(x=()=>{en(),G(!1)},R[34]=en,R[35]=x):x=R[35],R[36]!==W?.single||R[37]!==E||R[38]!==z?(b=E?z.single:W?.single||[],R[36]=W?.single,R[37]=E,R[38]=z,R[39]=b):b=R[39],R[40]!==Q||R[41]!==E||R[42]!==V?(v=e=>{E?E(e):Q(e),”modal”!==V&&G(!1)},R[40]=Q,R[41]=E,R[42]=V,R[43]=v):v=R[43],R[44]!==b||R[45]!==v?(j=(0,o.jsx)(nT,{selectionVariant:”single”,items:b,onSelect:v,showGroupHeading:!1}),R[44]=b,R[45]=v,R[46]=j):j=R[46],R[47]!==W?.multiple||R[48]!==A||R[49]!==z?(C=A?z.multiple:W?.multiple||[],R[47]=W?.multiple,R[48]=A,R[49]=z,R[50]=C):C=R[50];let ea=A??X;return R[51]!==C||R[52]!==ea?(N=(0,o.jsx)(nT,{selectionVariant:”multiple”,items:C,onSelect:ea}),R[51]=C,R[52]=ea,R[53]=N):N=R[53],R[54]!==j||R[55]!==N?(S=(0,o.jsx)(“div”,{className:”CommitSelector-module__CommitSelectorContainer–_atPn”,children:(0,o.jsxs)(w.l,{role:”listbox”,selectionVariant:”single”,”aria-label”:”Selection”,children:[j,N]})}),R[54]=j,R[55]=N,R[56]=S):S=R[56],R[57]!==en||R[58]!==J||R[59]!==et||R[60]!==V?(L=J&&”modal”!==V?(0,o.jsx)(nA.G9,{footerButtons:[{content:”Apply”,onClick:et,action:”save”},{content:”Clear”,onClick:en,action:”cancel”}]}):null,R[57]=en,R[58]=J,R[59]=et,R[60]=V,R[61]=L):L=R[61],R[62]!==S||R[63]!==L?(D=(0,o.jsxs)(“div”,{className:”CommitSelector-module__CommitSelectorWrapper–Wp_n9″,children:[S,L]}),R[62]=S,R[63]=L,R[64]=D):D=R[64],R[65]!==B||R[66]!==H||R[67]!==et||R[68]!==p||R[69]!==x||R[70]!==D||R[71]!==M||R[72]!==V?(I=(0,o.jsx)(nA.KA,{open:H,anchorRef:U,headingId:”select-label”,onClose:p,variant:V,focusZoneSettings:g,title:M,dialogProps:B,selectSave:et,selectCancel:x,children:D}),R[65]=B,R[66]=H,R[67]=et,R[68]=p,R[69]=x,R[70]=D,R[71]=M,R[72]=V,R[73]=I):I=R[73],R[74]!==h||R[75]!==I?(_=(0,o.jsxs)(o.Fragment,{children:[h,I]}),R[74]=h,R[75]=I,R[76]=_):_=R[76],_});function nT(e){let t,n=(0,c.c)(5),{items:i,onSelect:a,selectionVariant:r,showGroupHeading:s}=e,l=void 0===s||s;return n[0]!==i||n[1]!==a||n[2]!==r||n[3]!==l?(t=(0,o.jsx)(nA.LR,{selectionVariant:r,items:i,showGroupHeading:l,onSelect:a}),n[0]=i,n[1]=a,n[2]=r,n[3]=l,n[4]=t):t=n[4],t}try{nE.displayName||(nE.displayName=”CommitSelector”)}catch{}try{nT.displayName||(nT.displayName=”CommitSelectorBody”)}catch{}function nO(e,t){return”single”===t.selectionVariant?{…e,single:[…e.single,t]}:”multiple”===t.selectionVariant?{…e,multiple:[…e.multiple,t]}:e}function nP(e){return e.selected}function nF(e){return e.selected}function n$(e){return e.selected}function nM(e){return e.selected}function nB(e){return”BUTTON”!==e.tagName}function nV({endOid:e,startOid:t,firstCommitInRange:n}){return n&&e&&n===e?`Commit ${e.slice(0,7)}`:t&&e?`${t.slice(0,7)}..${e.slice(0,7)}`:”All commits”}var nU=n(68534);let nH=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,g,x,b,v,j,C,w=(0,c.c)(71),{ownerLogin:N,repositoryName:S,pullRequestNumber:L,commits:D,lastReviewOid:_,variant:R}=e,A=void 0===R?”default”:R,{baseOid:E,headOid:T}=(0,I.E4)(),O=(0,I.ww)(),{fullDiff:P}=(0,I.L3)(),{baseOid:F}=P,$=(0,nN.u)(“combined_pr_changes_route”);w[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,h.G7)(“verbose_commit_selector_announcements”),w[0]=t):t=w[0];let M=t,B=(0,y.useRef)(null);w[1]!==D?(n=D.map(nG),w[1]=D,w[2]=n):n=w[2];let V=n;e:{if(!E){i=void 0;break e}if(E===F){i=V[0];break e}let e=V.findIndex(e=>e===E);if(e<0){i=void 0;break e}i=V[e+1]}let U=i;w[3]!==T||w[4]!==U||w[5]!==E?(a=nV({endOid:T,startOid:E,firstCommitInRange:U}),w[3]=T,w[4]=U,w[5]=E,w[6]=a):a=w[6];let H=a;t:{let e,t;if(!E||!T){r=void 0;break t}let n=E?V.indexOf(E)+1:-1;w[7]!==V||w[8]!==T?(e=T?V.indexOf(T):-1,w[7]=V,w[8]=T,w[9]=e):e=w[9];let i=e;if(n<0||i<0){r=void 0;break t}w[10]!==i||w[11]!==n?(t={start:n,end:i},w[10]=i,w[11]=n,w[12]=t):t=w[12],r=t}let G=r;w[13]!==G?(s=()=>G,w[13]=G,w[14]=s):s=w[14];let[q,K]=(0,y.useState)(s);n:{let e;if(!q){let e;w[15]===Symbol.for(“react.memo_cache_sentinel”)?(e=new Set,w[15]=e):e=w[15],l=e;break n}w[16]!==V||w[17]!==q.end||w[18]!==q.start?(e=new Set(V.slice(q.start,q.end+1)),w[16]=V,w[17]=q.end,w[18]=q.start,w[19]=e):e=w[19],l=e}let z=l;if(w[20]!==V||w[21]!==D||w[22]!==T||w[23]!==O||w[24]!==_||w[25]!==z||w[26]!==E){let e,t,n;d=[];let i=`${D.length} commit${1!==D.length?”s”:””}`,a=!O;w[28]!==i||w[29]!==a?(e={id:”all-commits”,label:”All commits”,description:i,descriptionVariant:”block”,selectionVariant:”single”,selected:a},w[28]=i,w[29]=a,w[30]=e):e=w[30],d.push(e);let r=D[D.length-1]?.oid,s=!1,l=!1;if(_)if(r)if(_===r)t=”No new commits since last review”,s=!0;else{let e=V.indexOf(_),n=e>=0?V.length-e-1:D.length;t=`${n} commit${1!==n?”s”:””}`,l=E===_&&T===r}else t=”No commits available”,s=!0;else t=”No previous review found”,s=!0;for(let[e,i]of(w[31]!==l||w[32]!==t||w[33]!==s?(n={id:”changes-since-review”,label:”Changes since your last review”,description:t,descriptionVariant:”block”,selectionVariant:”single”,selected:l,disabled:s},w[31]=l,w[32]=t,w[33]=s,w[34]=n):n=w[34],d.push(n),D.entries()))d.push({id:i.oid,label:i.messageHeadline,description:`${i.actorLogin} committed ${(0,nk.V)(new Date(i.createdAt))}`,descriptionVariant:”block”,selectionVariant:”multiple”,selected:z.has(i.oid),groupId:1,groupTitle:0===e?”Select a range of commits”:void 0,trailingVisual:i.shortOid});w[20]=V,w[21]=D,w[22]=T,w[23]=O,w[24]=_,w[25]=z,w[26]=E,w[27]=d}else d=w[27];let W=d;w[35]!==$||w[36]!==N||w[37]!==L||w[38]!==S?(u=e=>{let t;if($)if(“unfiltered”===e.type)t=(0,eZ.tvs)({owner:N,repo:S,number:L});else if(“range”===e.type){let n=e.fromPRBase?”BASE”:e.baseOid;t=(0,eZ.zLJ)({owner:N,repo:S,number:L,base:n,head:e.endOid})}else t=(0,eZ.zLJ)({owner:N,repo:S,number:L,head:e.oid});else if(“unfiltered”===e.type)t=(0,eZ.jrm)({owner:N,repo:S,number:L});else if(“range”===e.type){let n=e.fromPRBase?void 0:e.baseOid;t=(0,eZ.nSV)({owner:N,repo:S,number:L,base:n,head:e.endOid})}else t=(0,eZ.yIb)({owner:N,repo:S,number:L,commit:e.oid});window.location.href=t},w[35]=$,w[36]=N,w[37]=L,w[38]=S,w[39]=u):u=w[39];let Z=u;w[40]!==F||w[41]!==D||w[42]!==_||w[43]!==Z?(m=e=>{if(“all-commits”===e.id)Z({type:”unfiltered”});else if(“changes-since-review”===e.id&&_){let e=D[D.length-1]?.oid;e&&Z({type:”range”,fromPRBase:_===F,baseOid:_,endOid:e})}},w[40]=F,w[41]=D,w[42]=_,w[43]=Z,w[44]=m):m=w[44];let Q=m;w[45]!==V||w[46]!==z||w[47]!==q?(f=e=>{let t,n=V.indexOf(e.id),i=z.has(e.id)?”removed”:”added”;if(q){if(q.start!==q.end||”removed”!==i){let{newStartIndex:e,newEndIndex:a}=function(e,t,n,i){let a,r;return”added”===i?(a=Math.min(e,t),r=Math.max(e,n)):e===t?(a=t+1,r=n):(a=t,r=e-1),{newStartIndex:a,newEndIndex:r}}(n,q.start,q.end,i);t={start:e,end:a}}}else t=”added”===i?{start:n,end:n}:void 0;if(t){if(void 0!==t.start&&t.start===t.end){let e=t.start+1,n=V[t.start];if(n){let t=(0,nU.F)(n),i=M?`Commit ${t} selected`:`Commit ${e} selected`;(0,tN.i)(i)}}else if(void 0!==t.start&&void 0!==t.end){let e=t.start+1,n=t.end+1,i=V[t.start],a=V[t.end];if(i&&a){let t=(0,nU.F)(i),r=(0,nU.F)(a),s=M?`Commits ${t} to ${r} selected`:`Commits ${e} to ${n} selected`;(0,tN.i)(s)}}}else(0,tN.i)(“No commits selected”);K(t)},w[45]=V,w[46]=z,w[47]=q,w[48]=f):f=w[48];let X=f;w[49]!==F||w[50]!==V||w[51]!==G?.end||w[52]!==G?.start||w[53]!==Z||w[54]!==q?(g=()=>{let e,t;q&&(q.start!==G?.start||q.end!==G?.end)&&((q.start>0||q.end0?V[q.start-1]:F,t=V[q.end]),e&&t?q.start===q.end?Z({type:”single”,oid:t}):Z({type:”range”,fromPRBase:e===F,baseOid:e,endOid:t}):Z({type:”unfiltered”}))},w[49]=F,w[50]=V,w[51]=G?.end,w[52]=G?.start,w[53]=Z,w[54]=q,w[55]=g):g=w[55],G?.start,G?.end;let J=g;w[56]!==G?(x=()=>{K(G)},w[56]=G,w[57]=x):x=w[57];let Y=x;w[58]===Symbol.for(“react.memo_cache_sentinel”)?(b=(0,o.jsx)(p.ak,{commands:{“pull-request-files-changed:open-commits-list”:()=>{B.current?.open()}}}),w[58]=b):b=w[58];let ee=”condensed”===A?void 0:k.VersionsIcon,et=”condensed”===A?”invisible”:”default”;return w[59]!==ee||w[60]!==et?(v={id:”changes-selector-button”,size:”small”,leadingVisual:ee,variant:et,trailingAction:k.TriangleDownIcon},w[59]=ee,w[60]=et,w[61]=v):v=w[61],w[62]===Symbol.for(“react.memo_cache_sentinel”)?(j={height:”large”},w[62]=j):j=w[62],w[63]!==H||w[64]!==W||w[65]!==J||w[66]!==Y||w[67]!==X||w[68]!==Q||w[69]!==v?(C=(0,o.jsxs)(o.Fragment,{children:[b,(0,o.jsx)(nE,{buttonProps:v,anchorLabel:H,ref:B,dialogProps:j,items:W,onSingleSelect:Q,onMultiSelect:X,onApply:J,onCancel:Y,variant:”modal”,title:”Select commits to view”})]}),w[63]=H,w[64]=W,w[65]=J,w[66]=Y,w[67]=X,w[68]=Q,w[69]=v,w[70]=C):C=w[70],C}:function({ownerLogin:e,repositoryName:t,pullRequestNumber:n,commits:i,lastReviewOid:a,variant:r=”default”}){let{baseOid:s,headOid:l}=(0,I.E4)(),d=(0,I.ww)(),{fullDiff:{baseOid:c}}=(0,I.L3)(),u=(0,nN.u)(“combined_pr_changes_route”),m=(0,h.G7)(“verbose_commit_selector_announcements”),f=(0,y.useRef)(null),g=(0,y.useMemo)(()=>i.map(e=>e.oid),[i]),x=(0,y.useMemo)(()=>{if(!s)return;if(s===c)return g[0];let e=g.findIndex(e=>e===s);if(!(e<0))return g[e+1]},[c,g,s]),b=nV({endOid:l,startOid:s,firstCommitInRange:x}),v=(0,y.useMemo)(()=>{if(!s||!l)return;let e=s?g.indexOf(s)+1:-1,t=l?g.indexOf(l):-1;if(!(e<0)&&!(t<0))return{start:e,end:t}},[s,l,g]),[j,C]=(0,y.useState)(()=>v),w=(0,y.useMemo)(()=>j?new Set(g.slice(j.start,j.end+1)):new Set,[j,g]),N=(0,y.useMemo)(()=>{let e,t=[];t.push({id:”all-commits”,label:”All commits”,description:`${i.length} commit${1!==i.length?”s”:””}`,descriptionVariant:”block”,selectionVariant:”single”,selected:!d});let n=i[i.length-1]?.oid,r=!1,o=!1;if(a)if(n)if(a===n)e=”No new commits since last review”,r=!0;else{let t=g.indexOf(a),r=t>=0?g.length-t-1:i.length;e=`${r} commit${1!==r?”s”:””}`,o=s===a&&l===n}else e=”No commits available”,r=!0;else e=”No previous review found”,r=!0;for(let[n,a]of(t.push({id:”changes-since-review”,label:”Changes since your last review”,description:e,descriptionVariant:”block”,selectionVariant:”single”,selected:o,disabled:r}),i.entries()))t.push({id:a.oid,label:a.messageHeadline,description:`${a.actorLogin} committed ${(0,nk.V)(new Date(a.createdAt))}`,descriptionVariant:”block”,selectionVariant:”multiple”,selected:w.has(a.oid),groupId:1,groupTitle:0===n?”Select a range of commits”:void 0,trailingVisual:a.shortOid});return t},[i,d,a,s,l,w,g]),S=(0,y.useCallback)(i=>{let a;if(u)if(“unfiltered”===i.type)a=(0,eZ.tvs)({owner:e,repo:t,number:n});else if(“range”===i.type){let r=i.fromPRBase?”BASE”:i.baseOid;a=(0,eZ.zLJ)({owner:e,repo:t,number:n,base:r,head:i.endOid})}else a=(0,eZ.zLJ)({owner:e,repo:t,number:n,head:i.oid});else if(“unfiltered”===i.type)a=(0,eZ.jrm)({owner:e,repo:t,number:n});else if(“range”===i.type){let r=i.fromPRBase?void 0:i.baseOid;a=(0,eZ.nSV)({owner:e,repo:t,number:n,base:r,head:i.endOid})}else a=(0,eZ.yIb)({owner:e,repo:t,number:n,commit:i.oid});window.location.href=a},[e,t,n,u]),L=(0,y.useCallback)((e,t,n,i)=>{let a,r;return”added”===i?(a=Math.min(e,t),r=Math.max(e,n)):e===t?(a=t+1,r=n):(a=t,r=e-1),{newStartIndex:a,newEndIndex:r}},[]),D=(0,y.useCallback)(e=>{let t,n=g.indexOf(e.id),i=w.has(e.id)?”removed”:”added”;if(j){if(j.start!==j.end||”removed”!==i){let{newStartIndex:e,newEndIndex:a}=L(n,j.start,j.end,i);t={start:e,end:a}}}else t=”added”===i?{start:n,end:n}:void 0;if(t){if(void 0!==t.start&&t.start===t.end){let e=t.start+1,n=g[t.start];if(n){let t=(0,nU.F)(n),i=m?`Commit ${t} selected`:`Commit ${e} selected`;(0,tN.i)(i)}}else if(void 0!==t.start&&void 0!==t.end){let e=t.start+1,n=t.end+1,i=g[t.start],a=g[t.end];if(i&&a){let t=(0,nU.F)(i),r=(0,nU.F)(a),s=m?`Commits ${t} to ${r} selected`:`Commits ${e} to ${n} selected`;(0,tN.i)(s)}}}else(0,tN.i)(“No commits selected”);C(t)},[g,w,j,L,C,m]),_=(0,y.useCallback)(()=>{let e,t;j&&(j.start!==v?.start||j.end!==v?.end)&&((j.start>0||j.end0?g[j.start-1]:c,t=g[j.end]),e&&t?j.start===j.end?S({type:”single”,oid:t}):S({type:”range”,fromPRBase:e===c,baseOid:e,endOid:t}):S({type:”unfiltered”}))},[j,v?.start,v?.end,g,c,S]),R=(0,y.useCallback)(()=>{C(v)},[C,v]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.ak,{commands:{“pull-request-files-changed:open-commits-list”:()=>{f.current?.open()}}}),(0,o.jsx)(nE,{buttonProps:{id:”changes-selector-button”,size:”small”,leadingVisual:”condensed”===r?void 0:k.VersionsIcon,variant:”condensed”===r?”invisible”:”default”,trailingAction:k.TriangleDownIcon},anchorLabel:b,ref:f,dialogProps:{height:”large”},items:N,onSingleSelect:e=>{if(“all-commits”===e.id)S({type:”unfiltered”});else if(“changes-since-review”===e.id&&a){let e=i[i.length-1]?.oid;e&&S({type:”range”,fromPRBase:a===c,baseOid:a,endOid:e})}},onMultiSelect:D,onApply:_,onCancel:R,variant:”modal”,title:”Select commits to view”})]})};function nG(e){return e.oid}try{nH.displayName||(nH.displayName=”ChangesSelector”)}catch{}var nq=n(33644),nK=n(2694),nz=n(81070),nW=n(33195);let nZ=”PullRequestFilesToolbar-module__is-stuck–pCXhL”,nQ=”PullRequestFilesToolbar-module__show-when-stuck–ONyyF”,nX=”PullRequestFilesToolbar-module__hide-when-stuck-large–jRjpF”,nJ=”PullRequestFilesToolbar-module__pr-title-details–NZamC”,nY=”PullRequestFilesToolbar-module__pr-sticky-title–Fu24T”,n0=”PullRequestFilesToolbar-module__file-controls–XN2fA”,n1=”PullRequestFilesToolbar-module__file-controls-navigation–Ti_xo”,n2=”PullRequestFilesToolbar-module__file-controls-divider–oWuSw”,n3=”PullRequestFilesToolbar-module__toolbar–bXrnB”,n4=”PullRequestFilesToolbar-module__simple-toolbar–q_1hU”,n5=”PullRequestFilesToolbar-module__stickyHeaderActivationThreshold–hlyC0″;var n6=n(21968),n7=n(34261),n8=n(89155);let n9=(0,d.Z6)()?function(){let e,t,n,i=(0,c.c)(7),a=(0,I.Kp)(),{updateWhitespace:r}=(0,I.yo)();return i[0]!==a?(e=async e=>{let{hideWhitespace:t}=e,n=`${a}/page_data/${eg.uT.updateWhitespacePreference}`,i=await (0,ev.q$)(n,{method:”POST”,body:{w:+!!t}}),r=await (0,ev.hp)(i);return(0,ev.R)(i,r),r},i[0]=a,i[1]=e):e=i[1],i[2]!==r?(t=e=>{r(e.ignoreWhitespace)},i[2]=r,i[3]=t):t=i[3],i[4]!==e||i[5]!==t?(n={mutationFn:e,onSuccess:t},i[4]=e,i[5]=t,i[6]=n):n=i[6],(0,eb.n)(n)}:function(){let e=(0,I.Kp)(),{updateWhitespace:t}=(0,I.yo)();return(0,eb.n)({mutationFn:async({hideWhitespace:t})=>{let n=`${e}/page_data/${eg.uT.updateWhitespacePreference}`,i=await (0,ev.q$)(n,{method:”POST”,body:{w:+!!t}}),a=await (0,ev.hp)(i);return(0,ev.R)(i,a),a},onSuccess:e=>{t(e.ignoreWhitespace)}})};var ie=n(73783),it=n(61583);let ii=(0,d.Z6)()?function(){let e,t,n,i=(0,c.c)(9),a=(0,I.mU)(),r=(0,I.$W)(a),s=(0,I.qX)(),l=ia;i[0]!==r||i[1]!==s?(e=()=>{if(r.length>0){let e,t=s(),n=t?r.findIndex(e=>e.pathDigest===t):0;e=n<=0?r.length-1:n-1;let i=r[e];i&&l(i.pathDigest)}},i[0]=r,i[1]=s,i[2]=e):e=i[2];let o=e;i[3]!==r||i[4]!==s?(t=()=>{if(r.length>0){let e,t=s(),n=t?r.findIndex(e=>e.pathDigest===t):0;e=n>=r.length-1||n<0?0:n+1;let i=r[e];i&&l(i.pathDigest)}},i[3]=r,i[4]=s,i[5]=t):t=i[5];let d=t;return i[6]!==d||i[7]!==o?(n={navigateToPrevious:o,navigateToNext:d},i[6]=d,i[7]=o,i[8]=n):n=i[8],n}:function(){let e=(0,I.mU)(),t=(0,I.$W)(e),n=(0,I.qX)(),i=(0,y.useCallback)(e=>{(0,it.pk)(`diff-${e}`),(0,L.kd)(window.location.href)},[]);return{navigateToPrevious:(0,y.useCallback)(()=>{if(t.length>0){let e,a=n(),r=a?t.findIndex(e=>e.pathDigest===a):0;e=r<=0?t.length-1:r-1;let s=t[e];s&&i(s.pathDigest)}},[t,n,i]),navigateToNext:(0,y.useCallback)(()=>{if(t.length>0){let e,a=n(),r=a?t.findIndex(e=>e.pathDigest===a):0;e=r>=t.length-1||r<0?0:r+1;let s=t[e];s&&i(s.pathDigest)}},[t,n,i])}};function ia(e){(0,it.pk)(`diff-${e}`),(0,L.kd)(window.location.href)}var ir=n(19415);let is="SingleFileModeOnboardingPopover-module__PopoverContainer--wtwv5",il="SingleFileModeOnboardingPopover-module__PopoverContent--zQnno",io="SingleFileModeOnboardingPopover-module__Heading--BRcrc";function id(e){return(e??[]).filter(e=>!e.dismissed)}let ic=(0,d.Z6)()?function(e,t){let n,i=(0,c.c)(5),a=id(t);if(i[0]!==a||i[1]!==e){let t;i[3]!==e?(t=t=>t.name===e,i[3]=e,i[4]=t):t=i[4],n=a.filter(t),i[0]=a,i[1]=e,i[2]=n}else n=i[2];return 0===n.length}:function(e,t){return 0===id(t).filter(t=>t.name===e).length},iu=(0,d.Z6)()?function(e,t){let n,i,a=(0,c.c)(5),r=ic(e,t);a[0]!==r||a[1]!==e?(n=()=>{(0,tc.M3)()&&!r&&(0,eL.DI)((0,eZ.VB1)({noticeName:e}),{method:”POST”})},a[0]=r,a[1]=e,a[2]=n):n=a[2];let s=n;return a[3]!==s?(i={dismissNotice:s},a[3]=s,a[4]=i):i=a[4],i}:function(e,t){let n=ic(e,t);return{dismissNotice:(0,y.useCallback)(()=>{(0,tc.M3)()&&!n&&(0,eL.DI)((0,eZ.VB1)({noticeName:e}),{method:”POST”})},[n,e])}},im=”single_file_mode”,ih=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u=(0,c.c)(12),{userNotices:m}=e,f=ic(im,m),h=(0,I.j5)(),[p,g]=(0,y.useState)(!0),{dismissNotice:x}=iu(im,m);u[0]!==x?(t=()=>{x(),g(!1)},u[0]=x,u[1]=t):t=u[1];let b=t;return!h||f?null:(u[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,v.$)(“d-flex flex-column gap-2″,il),i=(0,o.jsx)(Y.A,{as:”h3″,variant:”small”,className:io,children:”You’re in single-file mode”}),a=(0,o.jsx)(“p”,{children:”Due to the large number of changes in this pull request, only one file is being shown at a time.”}),u[2]=n,u[3]=i,u[4]=a):(n=u[2],i=u[3],a=u[4]),u[5]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,o.jsx)(“strong”,{children:”Previous”}),u[5]=r):r=u[5],u[6]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsxs)(“p”,{children:[“Use the “,r,” and “,(0,o.jsx)(“strong”,{children:”Next”}),” buttons to move between files.”]}),u[6]=s):s=u[6],u[7]!==b?(l=(0,o.jsxs)(ir.A.Content,{className:n,children:[i,a,s,(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsx)(em.Q,{onClick:b,children:”OK, got it”})})]}),u[7]=b,u[8]=l):l=u[8],u[9]!==p||u[10]!==l?(d=(0,o.jsx)(ir.A,{className:is,open:p,children:l}),u[9]=p,u[10]=l,u[11]=d):d=u[11],d)}:function({userNotices:e}){let t=ic(im,e),n=(0,I.j5)(),[i,a]=(0,y.useState)(!0),{dismissNotice:r}=iu(im,e);return!n||t?null:(0,o.jsx)(ir.A,{className:is,open:i,children:(0,o.jsxs)(ir.A.Content,{className:(0,v.$)(“d-flex flex-column gap-2″,il),children:[(0,o.jsx)(Y.A,{as:”h3″,variant:”small”,className:io,children:”You’re in single-file mode”}),(0,o.jsx)(“p”,{children:”Due to the large number of changes in this pull request, only one file is being shown at a time.”}),(0,o.jsxs)(“p”,{children:[“Use the “,(0,o.jsx)(“strong”,{children:”Previous”}),” and “,(0,o.jsx)(“strong”,{children:”Next”}),” buttons to move between files.”]}),(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsx)(em.Q,{onClick:()=>{r(),a(!1)},children:”OK, got it”})})]})})};try{ih.displayName||(ih.displayName=”SingleFileModeOnboardingPopover”)}catch{}var ip=n(44569);let ig=(0,d.Z6)()?function(e){let t,n,i,a,r,s=(0,c.c)(12),{userNotices:l}=e,d=(0,ip.zw)(),{navigateToPrevious:u,navigateToNext:m}=ii();return s[0]!==u?(t=(0,o.jsx)(el.K,{icon:k.ChevronUpIcon,”aria-label”:d?”Previous file (K)”:”Previous file”,size:”small”,onClick:u,”data-hotkey”:”k”}),s[0]=u,s[1]=t):t=s[1],s[2]!==m?(n=(0,o.jsx)(el.K,{icon:k.ChevronDownIcon,”aria-label”:d?”Next file (J)”:”Next file”,size:”small”,onClick:m,”data-hotkey”:”j”}),s[2]=m,s[3]=n):n=s[3],s[4]!==t||s[5]!==n?(i=(0,o.jsxs)(ie.A,{children:[t,n]}),s[4]=t,s[5]=n,s[6]=i):i=s[6],s[7]!==l?(a=(0,o.jsx)(ih,{userNotices:l}),s[7]=l,s[8]=a):a=s[8],s[9]!==i||s[10]!==a?(r=(0,o.jsxs)(“div”,{className:”position-relative”,children:[i,a]}),s[9]=i,s[10]=a,s[11]=r):r=s[11],r}:function({userNotices:e}){let t=(0,ip.zw)(),{navigateToPrevious:n,navigateToNext:i}=ii();return(0,o.jsxs)(“div”,{className:”position-relative”,children:[(0,o.jsxs)(ie.A,{children:[(0,o.jsx)(el.K,{icon:k.ChevronUpIcon,”aria-label”:t?”Previous file (K)”:”Previous file”,size:”small”,onClick:n,”data-hotkey”:”k”}),(0,o.jsx)(el.K,{icon:k.ChevronDownIcon,”aria-label”:t?”Next file (J)”:”Next file”,size:”small”,onClick:i,”data-hotkey”:”j”})]}),(0,o.jsx)(ih,{userNotices:e})]})};try{ig.displayName||(ig.displayName=”ReviewNavigationButtonGroup”)}catch{}let ix=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x,b,v,j,C,N,S=(0,c.c)(49),{pageLimits:L,pullRequest:D,hideWhitespace:_,onUpdateWhitespace:R,additionalPreferences:A}=e,[E,T]=(0,y.useState)(!1),[O,P]=(0,y.useState)(!1),[F,$]=(0,y.useState)(!1),[M,B]=(0,y.useState)(!1),V=(0,y.useRef)(null),U=(0,I.wI)(),H=(0,I.Qb)(),{sendPullRequestAnalyticsEvent:G}=(0,er.q)();S[0]!==U?(t=U?Object.values(U):[],S[0]=U,S[1]=t):t=S[1];let q=t,K=q.length;S[2]!==G?(n=()=>{G(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e2(),T(!0),$(!1)},S[2]=G,S[3]=n):n=S[3];let z=n;S[4]!==G?(i=()=>{G(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e2(),P(!0),$(!1)},S[4]=G,S[5]=i):i=S[5];let W=i;return S[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,o.jsx)(e4.W.Anchor,{children:(0,o.jsx)(el.K,{ref:V,icon:k.KebabHorizontalIcon,variant:”default”,size:”small”,”aria-label”:”More options”})}),S[6]=a):a=S[6],S[7]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.CommentDiscussionIcon,{})}),S[7]=r):r=S[7],S[8]!==H?(s=H>0&&(0,o.jsx)(w.l.TrailingVisual,{children:H}),S[8]=H,S[9]=s):s=S[9],S[10]!==z||S[11]!==s?(l=(0,o.jsxs)(w.l.Item,{onSelect:z,children:[r,”Comments”,s]}),S[10]=z,S[11]=s,S[12]=l):l=S[12],S[13]!==W||S[14]!==K?(d=K>0&&(0,o.jsxs)(w.l.Item,{onSelect:W,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.AlertIcon,{})}),”Alerts”,(0,o.jsx)(w.l.TrailingVisual,{children:K})]}),S[13]=W,S[14]=K,S[15]=d):d=S[15],S[16]!==l||S[17]!==d?(u=(0,o.jsxs)(w.l.Group,{children:[l,d]}),S[16]=l,S[17]=d,S[18]=u):u=S[18],S[19]===Symbol.for(“react.memo_cache_sentinel”)?(m=(0,o.jsx)(w.l.Divider,{}),S[19]=m):m=S[19],S[20]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.GearIcon,{})}),S[20]=f):f=S[20],S[21]===Symbol.for(“react.memo_cache_sentinel”)?(h=(0,o.jsx)(e4.W.Anchor,{children:(0,o.jsxs)(w.l.Item,{children:[f,”Settings”,(0,o.jsx)(w.l.TrailingVisual,{children:(0,o.jsx)(k.ChevronRightIcon,{})})]})}),S[21]=h):h=S[21],S[22]!==A||S[23]!==_||S[24]!==R?(p=(0,o.jsx)(e4.W.Overlay,{side:”outside-bottom”,align:”end”,children:(0,o.jsx)(w.l,{children:(0,o.jsx)(nj.Q,{reloadOnWhitespaceChange:!0,onUpdateWhitespace:R,defaultHideWhitespace:_,additionalPreferences:A})})}),S[22]=A,S[23]=_,S[24]=R,S[25]=p):p=S[25],S[26]!==M||S[27]!==p?(g=(0,o.jsx)(w.l.Group,{children:(0,o.jsxs)(e4.W,{open:M,onOpenChange:B,children:[h,p]})}),S[26]=M,S[27]=p,S[28]=g):g=S[28],S[29]!==g||S[30]!==u?(x=(0,o.jsx)(e4.W.Overlay,{align:”end”,children:(0,o.jsxs)(w.l,{children:[u,m,g]})}),S[29]=g,S[30]=u,S[31]=x):x=S[31],S[32]!==F||S[33]!==x?(b=(0,o.jsxs)(e4.W,{open:F,onOpenChange:$,children:[a,x]}),S[32]=F,S[33]=x,S[34]=b):b=S[34],S[35]===Symbol.for(“react.memo_cache_sentinel”)?(v=()=>T(!1),S[35]=v):v=S[35],S[36]!==E||S[37]!==L||S[38]!==D.pathName?(j=(0,o.jsx)(t_,{isOpen:E,pageLimits:L,pathName:D.pathName,toggleSidesheetRef:V,onClose:v}),S[36]=E,S[37]=L,S[38]=D.pathName,S[39]=j):j=S[39],S[40]!==O||S[41]!==q||S[42]!==L||S[43]!==K?(C=K>0&&(0,o.jsx)(tF,{annotations:q,isOpen:O,pageLimits:L,returnFocusRef:V,onClose:()=>P(!1)}),S[40]=O,S[41]=q,S[42]=L,S[43]=K,S[44]=C):C=S[44],S[45]!==b||S[46]!==j||S[47]!==C?(N=(0,o.jsxs)(o.Fragment,{children:[b,j,C]}),S[45]=b,S[46]=j,S[47]=C,S[48]=N):N=S[48],N}:function({pageLimits:e,pullRequest:t,hideWhitespace:n,onUpdateWhitespace:i,additionalPreferences:a}){let[r,s]=(0,y.useState)(!1),[l,d]=(0,y.useState)(!1),[c,u]=(0,y.useState)(!1),[m,f]=(0,y.useState)(!1),h=(0,y.useRef)(null),p=(0,I.wI)(),g=(0,I.Qb)(),{sendPullRequestAnalyticsEvent:x}=(0,er.q)(),b=p?Object.values(p):[],v=b.length,j=(0,y.useCallback)(()=>{x(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e2(),s(!0),u(!1)},[x]),C=(0,y.useCallback)(()=>{x(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e2(),d(!0),u(!1)},[x]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(e4.W,{open:c,onOpenChange:u,children:[(0,o.jsx)(e4.W.Anchor,{children:(0,o.jsx)(el.K,{ref:h,icon:k.KebabHorizontalIcon,variant:”default”,size:”small”,”aria-label”:”More options”})}),(0,o.jsx)(e4.W.Overlay,{align:”end”,children:(0,o.jsxs)(w.l,{children:[(0,o.jsxs)(w.l.Group,{children:[(0,o.jsxs)(w.l.Item,{onSelect:j,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.CommentDiscussionIcon,{})}),”Comments”,g>0&&(0,o.jsx)(w.l.TrailingVisual,{children:g})]}),v>0&&(0,o.jsxs)(w.l.Item,{onSelect:C,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.AlertIcon,{})}),”Alerts”,(0,o.jsx)(w.l.TrailingVisual,{children:v})]})]}),(0,o.jsx)(w.l.Divider,{}),(0,o.jsx)(w.l.Group,{children:(0,o.jsxs)(e4.W,{open:m,onOpenChange:f,children:[(0,o.jsx)(e4.W.Anchor,{children:(0,o.jsxs)(w.l.Item,{children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.GearIcon,{})}),”Settings”,(0,o.jsx)(w.l.TrailingVisual,{children:(0,o.jsx)(k.ChevronRightIcon,{})})]})}),(0,o.jsx)(e4.W.Overlay,{side:”outside-bottom”,align:”end”,children:(0,o.jsx)(w.l,{children:(0,o.jsx)(nj.Q,{reloadOnWhitespaceChange:!0,onUpdateWhitespace:i,defaultHideWhitespace:n,additionalPreferences:a})})})]})})]})})]}),(0,o.jsx)(t_,{isOpen:r,pageLimits:e,pathName:t.pathName,toggleSidesheetRef:h,onClose:()=>s(!1)}),v>0&&(0,o.jsx)(tF,{annotations:b,isOpen:l,pageLimits:e,returnFocusRef:h,onClose:()=>d(!1)})]})};try{ix.displayName||(ix.displayName=”ToolbarMoreMenu”)}catch{}let ib=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(9),{changeGroupsPreferenceAvailable:s,showChangeGroups:l,onShowChangeGroupsChange:d}=e,{sendPullRequestAnalyticsEvent:u}=(0,er.q)();if(!s)return;r[0]!==d||r[1]!==u||r[2]!==l?(t=()=>{let e=!l;u(e?”change_group_preference.show”:”change_group_preference.hide”,”CHANGE_GROUP_PREFERENCE_TOGGLE”),d(e)},r[0]=d,r[1]=u,r[2]=l,r[3]=t):t=r[3];let m=t;return r[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,o.jsx)(w.l.Divider,{}),r[4]=n):n=r[4],r[5]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,o.jsx)(w.l.Description,{variant:”block”,children:”Organize changes into groups with Copilot”}),r[5]=i):i=r[5],r[6]!==m||r[7]!==l?(a=(0,o.jsxs)(o.Fragment,{children:[n,(0,o.jsx)(w.l.Group,{“aria-label”:”Change Groups”,selectionVariant:”single”,children:(0,o.jsxs)(w.l.Item,{selected:l,onSelect:m,children:[“Show changes by group”,i]})})]}),r[6]=m,r[7]=l,r[8]=a):a=r[8],a}:function({changeGroupsPreferenceAvailable:e,showChangeGroups:t,onShowChangeGroupsChange:n}){let{sendPullRequestAnalyticsEvent:i}=(0,er.q)();if(e)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.l.Divider,{}),(0,o.jsx)(w.l.Group,{“aria-label”:”Change Groups”,selectionVariant:”single”,children:(0,o.jsxs)(w.l.Item,{selected:t,onSelect:()=>{let e=!t;i(e?”change_group_preference.show”:”change_group_preference.hide”,”CHANGE_GROUP_PREFERENCE_TOGGLE”),n(e)},children:[“Show changes by group”,(0,o.jsx)(w.l.Description,{variant:”block”,children:”Organize changes into groups with Copilot”})]})})]})};try{ib.displayName||(ib.displayName=”ChangeGroupsPreferences”)}catch{}var iv=n(3585);function iy(e){let t=new Map;if(!e)return t;for(let[n,i]of Object.entries(e))for(let e of Object.values(i))for(let i of e?.threads??[])for(let e of i.commentsData?.comments??[])void 0!==e.databaseId&&null!==e.databaseId&&t.set(e.databaseId,{comment:e,path:n});return t}function ij(e,t){if(!e||0===t.length)return[];let n=iy(e),i=[];for(let e of t){let t=n.get(e.commentDatabaseId);t&&i.push({commentDatabaseId:e.commentDatabaseId,suggestionIndex:e.suggestionIndex,path:t.path,bodyHTML:t.comment.bodyHTML})}return i}var iC=n(3252);function iw(e,t){if(!e||0===t.length)return[];let n=iy(e),i=[];for(let e of t){let t=n.get(e.commentDatabaseId);if(!t)continue;let{comment:a,path:r}=t,s=(0,iC.T)(a.body);s&&!(e.suggestionIndex>=s.length)&&i.push({threadId:String(e.commentDatabaseId),path:r,suggestion:s})}return i}var iN=n(88008);let iS=(0,d.Z6)()?function(e,t){let n,i,a,r=(0,c.c)(11),s=(0,ex.e)(eg.uT.submitSuggestedChanges),l=(0,I.WK)(),o=(0,I.qL)(),{clearSuggestionBatch:d}=(0,I.xJ)();return r[0]!==s||r[1]!==o||r[2]!==l?(n=async e=>{let{currentOid:t,message:n}=e,i=iw(o,l.activeBatch);if(0===i.length)throw Error(“No valid suggestions found in batch”);let a=await (0,eL.Sr)(s,{method:”POST”,headers:{Accept:”application/json”},body:{changes:i,currentOid:t,message:n}}),r=await (0,ev.hp)(a);return(0,ev.R)(a,r),r},r[0]=s,r[1]=o,r[2]=l,r[3]=n):n=r[3],r[4]!==d||r[5]!==t||r[6]!==e?(i=()=>{d(),(0,iN.hW)(e,t),M.cg?.location.reload()},r[4]=d,r[5]=t,r[6]=e,r[7]=i):i=r[7],r[8]!==n||r[9]!==i?(a={mutationFn:n,onSuccess:i},r[8]=n,r[9]=i,r[10]=a):a=r[10],(0,eb.n)(a)}:function(e,t){let n=(0,ex.e)(eg.uT.submitSuggestedChanges),i=(0,I.WK)(),a=(0,I.qL)(),{clearSuggestionBatch:r}=(0,I.xJ)();return(0,eb.n)({mutationFn:async({currentOid:e,message:t})=>{let r=iw(a,i.activeBatch);if(0===r.length)throw Error(“No valid suggestions found in batch”);let s=await (0,eL.Sr)(n,{method:”POST”,headers:{Accept:”application/json”},body:{changes:r,currentOid:e,message:t}}),l=await (0,ev.hp)(s);return(0,ev.R)(s,l),l},onSuccess:()=>{r(),(0,iN.hW)(e,t),M.cg?.location.reload()}})},iL=(0,d.Z6)()?function(){let e,t,n,i=(0,c.c)(8),a=(0,I.Kp)(),{updateChangeGroupPreference:r}=(0,I.wL)(),{updateDiffFilter:s}=(0,I.or)();return i[0]!==a?(e=async e=>{let{showChangeGroups:t}=e,n=`${a}/page_data/${eg.uT.updateShowChangeGroupsPreference}`,i=await (0,ev.q$)(n,{method:”POST”,headers:{“Content-Type”:”application/json”},body:{show_change_groups:t?”true”:”false”}}),r=await (0,ev.hp)(i);return(0,ev.R)(i,r),r},i[0]=a,i[1]=e):e=i[1],i[2]!==r||i[3]!==s?(t=e=>{let{showChangeGroups:t}=e;r(t),t||s({activeChangeGroupId:void 0})},i[2]=r,i[3]=s,i[4]=t):t=i[4],i[5]!==e||i[6]!==t?(n={mutationFn:e,onMutate:t},i[5]=e,i[6]=t,i[7]=n):n=i[7],(0,eb.n)(n)}:function(){let e=(0,I.Kp)(),{updateChangeGroupPreference:t}=(0,I.wL)(),{updateDiffFilter:n}=(0,I.or)();return(0,eb.n)({mutationFn:async({showChangeGroups:t})=>{let n=`${e}/page_data/${eg.uT.updateShowChangeGroupsPreference}`,i=await (0,ev.q$)(n,{method:”POST”,headers:{“Content-Type”:”application/json”},body:{show_change_groups:t?”true”:”false”}}),a=await (0,ev.hp)(i);return(0,ev.R)(i,a),a},onMutate:({showChangeGroups:e})=>{t(e),e||n({activeChangeGroupId:void 0})}})};var iD=n(39837);let iI=(0,d.Z6)()?function(e){let t,n,i,a,r,s=(0,c.c)(13),{bodyHtml:l,isLoading:d,onClose:u}=e,m=(0,y.useRef)(null),f=(0,y.useRef)(null);s[0]!==l?(t=l.includes(“No description provided”),s[0]=l,s[1]=t):t=s[1];let h=t;return s[2]===Symbol.for(“react.memo_cache_sentinel”)?(n={narrow:”fullscreen”,regular:”right”,wide:”right”},s[2]=n):n=s[2],s[3]!==u?(i=e=>{let{dialogLabelId:t}=e;return(0,o.jsx)(x.l.Header,{className:”p-3″,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-between flex-items-center width-full”,children:[(0,o.jsx)(x.l.Title,{id:t,children:”Overview”}),(0,o.jsx)(el.K,{ref:m,”aria-label”:”Close overview panel”,icon:k.XIcon,variant:”invisible”,onClick:u})]})})},s[3]=u,s[4]=i):i=s[4],s[5]!==l||s[6]!==h||s[7]!==d?(a=(0,o.jsx)(“div”,{className:”p-4″,children:d?(0,o.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,o.jsx)(ee.A,{})}):(0,o.jsx)(“div”,{className:h?”d-flex flex-justify-start”:”d-flex flex-justify-center”,children:(0,o.jsx)(iD.A,{verifiedHTML:l})})}),s[5]=l,s[6]=h,s[7]=d,s[8]=a):a=s[8],s[9]!==u||s[10]!==i||s[11]!==a?(r=(0,o.jsx)(x.l,{initialFocusRef:m,position:n,returnFocusRef:f,onClose:u,renderHeader:i,children:a}),s[9]=u,s[10]=i,s[11]=a,s[12]=r):r=s[12],r}:function({bodyHtml:e,isLoading:t,onClose:n}){let i=(0,y.useRef)(null),a=(0,y.useRef)(null),r=e.includes(“No description provided”);return(0,o.jsx)(x.l,{initialFocusRef:i,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},returnFocusRef:a,onClose:n,renderHeader:({dialogLabelId:e})=>(0,o.jsx)(x.l.Header,{className:”p-3″,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-between flex-items-center width-full”,children:[(0,o.jsx)(x.l.Title,{id:e,children:”Overview”}),(0,o.jsx)(el.K,{ref:i,”aria-label”:”Close overview panel”,icon:k.XIcon,variant:”invisible”,onClick:n})]})}),children:(0,o.jsx)(“div”,{className:”p-4″,children:t?(0,o.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,o.jsx)(ee.A,{})}):(0,o.jsx)(“div”,{className:r?”d-flex flex-justify-start”:”d-flex flex-justify-center”,children:(0,o.jsx)(iD.A,{verifiedHTML:e})})})})};try{iI.displayName||(iI.displayName=”OverviewSidePanel”)}catch{}let i_=(0,d.Z6)()?function(){let e,t=(0,c.c)(2),n=(0,ex.e)(eg.uT.description);return t[0]!==n?(e={queryKey:[eg.uT.description,n],queryFn:async()=>{let e=await (0,eL.QJ)(n);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},staleTime:1/0},t[0]=n,t[1]=e):e=t[1],(0,eS.I)(e)}:function(){let e=(0,ex.e)(eg.uT.description);return(0,eS.I)({queryKey:[eg.uT.description,e],queryFn:async()=>{let t=await (0,eL.QJ)(e);if(!t.ok)throw Error(`HTTP ${t.status}`);return await t.json()},staleTime:1/0})},iR=(0,d.Z6)()?function(e){let t,n=(0,c.c)(1),{refetch:i}=i_();n[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={body_updated:!0},n[0]=t):t=n[0],(0,nC.og)(e,i,t)}:function(e){let{refetch:t}=i_();(0,nC.og)(e,t,{body_updated:!0})},ik=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(10),{aliveChannel:s}=e,[l,d]=(0,y.useState)(!1),u=(0,y.useRef)(null),{sendPullRequestAnalyticsEvent:m}=(0,er.q)(),{data:f,isLoading:h}=i_();iR(s);let p=f?.bodyHtml||’No description provided.
‘;return r[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(el.K,{inactive:!0,”aria-label”:”The overview side panel cannot currently be opened.”,icon:k.InfoIcon,size:”small”,variant:”invisible”}),r[0]=t):t=r[0],r[1]!==m?(n=(0,o.jsx)(el.K,{ref:u,”aria-label”:”Open overview side panel”,icon:k.InfoIcon,size:”small”,onClick:()=>{m(“overview_side_panel.open”,”OVERVIEW_SIDE_PANEL_BUTTON”),e2(),d(!0)}}),r[1]=m,r[2]=n):n=r[2],r[3]!==p||r[4]!==h||r[5]!==l?(i=l&&(0,o.jsx)(iI,{bodyHtml:p,isLoading:h,onClose:()=>d(!1)}),r[3]=p,r[4]=h,r[5]=l,r[6]=i):i=r[6],r[7]!==n||r[8]!==i?(a=(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsxs)(J.t,{fallback:t,children:[n,i]})}),r[7]=n,r[8]=i,r[9]=a):a=r[9],a}:function({aliveChannel:e}){let[t,n]=(0,y.useState)(!1),i=(0,y.useRef)(null),{sendPullRequestAnalyticsEvent:a}=(0,er.q)(),{data:r,isLoading:s}=i_();iR(e);let l=r?.bodyHtml||’No description provided.
‘;return(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsxs)(J.t,{fallback:(0,o.jsx)(el.K,{inactive:!0,”aria-label”:”The overview side panel cannot currently be opened.”,icon:k.InfoIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(el.K,{ref:i,”aria-label”:”Open overview side panel”,icon:k.InfoIcon,size:”small”,onClick:()=>{a(“overview_side_panel.open”,”OVERVIEW_SIDE_PANEL_BUTTON”),e2(),n(!0)}}),t&&(0,o.jsx)(iI,{bodyHtml:l,isLoading:s,onClose:()=>n(!1)})]})})};try{ik.displayName||(ik.displayName=”OpenOverviewSidePanelButton”)}catch{}let iA=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h=(0,c.c)(24);h[0]!==e?({aliveChannel:t,repository:r,pullRequest:i,bannersData:n,urls:s,user:l,userNotices:d,…a}=e,h[0]=e,h[1]=t,h[2]=n,h[3]=i,h[4]=a,h[5]=r,h[6]=s,h[7]=l,h[8]=d):(t=h[1],n=h[2],i=h[3],a=h[4],r=h[5],s=h[6],l=h[7],d=h[8]);let{data:p}=(0,n7.W)(),{pullRequest:g}=p;h[9]!==t||h[10]!==n||h[11]!==i||h[12]!==r||h[13]!==s||h[14]!==l?(u={aliveChannel:t,repository:r,pullRequest:i,bannersData:n,urls:s,user:l},h[9]=t,h[10]=n,h[11]=i,h[12]=r,h[13]=s,h[14]=l,h[15]=u):u=h[15],(0,n7.W)(u),(0,n8.F)(t),h[16]!==i||h[17]!==g?(m={…i,…g},h[16]=i,h[17]=g,h[18]=m):m=h[18];let x=m;return h[19]!==a||h[20]!==r||h[21]!==x||h[22]!==d?(f=(0,o.jsx)(iE,{repository:r,pullRequest:x,userNotices:d,…a}),h[19]=a,h[20]=r,h[21]=x,h[22]=d,h[23]=f):f=h[23],f}:function({aliveChannel:e,repository:t,pullRequest:n,bannersData:i,urls:a,user:r,userNotices:s,…l}){let{data:{pullRequest:d}}=(0,n7.W)();(0,n7.W)({aliveChannel:e,repository:t,pullRequest:n,bannersData:i,urls:a,user:r}),(0,n8.F)(e);let c={…n,…d};return(0,o.jsx)(iE,{repository:t,pullRequest:c,userNotices:s,…l})},iE=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x,b,j,C,w,S,L,D,_,R,k,E,T,O,P,F,$,M,B,V,U,H,G,q,K,z,W,Z=(0,c.c)(148),{changeGroupsPreferenceAvailable:Q,commits:X,currentUserLogin:J,fileFilter:Y,isFileTreeExpanded:ee,lastReviewOid:et,pageLimits:en,pullRequest:ei,repository:ea,shouldShowViewedFilesCount:er,totalFilesCount:es,treeToggleElement:el,userNotices:eo}=e,ed=(0,nN.u)(“batch_suggested_changes”),ec=(0,nN.u)(“pull_request_overview_panel”),{mutate:eu}=n9(),{clearSuggestionBatch:ef,removeSuggestionFromBatch:eh}=(0,I.xJ)(),{mutate:ep}=iS(ei.pathName,ei.comparison.headOid),{mutate:eg}=iL(),ex=(0,I.WA)(),eb=ei.pathName,{hideWhitespace:ev,fullDiff:ey}=(0,I.L3)(),[ej,eC]=(0,y.useState)(!1),ew=er||!ee,[eN,eS]=(0,y.useState)(!1),eL=(0,I.j5)(),eD=(0,I.RH)(),eI=(0,I.WK)(),e_=(0,I.qL)(),[eR,ek]=(0,y.useState)(!1),eA=(0,I.Kp)(),eE=(0,I.L3)(),eT=ij(e_,eI.activeBatch),eO=eT.length;Z[0]!==eu?(t=e=>{eu({hideWhitespace:e})},Z[0]=eu,Z[1]=t):t=Z[1];let eP=t;Z[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{e[0]&&eC(!e[0].isIntersecting)},Z[2]=n):n=Z[2];let[eF,e$]=(0,nK.B)(n);Z[3]!==eE.fullDiff.headOid||Z[4]!==eA||Z[5]!==eh||Z[6]!==eI.activeBatch?(i=e=>{eh(e),(0,iN.CE)(eA,eE.fullDiff.headOid,eI.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex))},Z[3]=eE.fullDiff.headOid,Z[4]=eA,Z[5]=eh,Z[6]=eI.activeBatch,Z[7]=i):i=Z[7];let eM=i;Z[8]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>{ek(!0)},Z[8]=a):a=Z[8];let eB=a;Z[9]===Symbol.for(“react.memo_cache_sentinel”)?(r=()=>{ek(!1)},Z[9]=r):r=Z[9];let eV=r;Z[10]===Symbol.for(“react.memo_cache_sentinel”)?(s=()=>{eS(!0)},Z[10]=s):s=Z[10];let eU=s;Z[11]===Symbol.for(“react.memo_cache_sentinel”)?(l=()=>{eS(!1)},Z[11]=l):l=Z[11];let eH=l;Z[12]!==ef||Z[13]!==eE.fullDiff.headOid||Z[14]!==eV||Z[15]!==eA?(d=()=>{ef(),(0,iN.hW)(eA,eE.fullDiff.headOid),eV(),eS(!1)},Z[12]=ef,Z[13]=eE.fullDiff.headOid,Z[14]=eV,Z[15]=eA,Z[16]=d):d=Z[16];let eG=d;Z[17]!==ep||Z[18]!==ey.headOid||Z[19]!==eV?(u=(e,t,n)=>{ep({message:e,currentOid:ey.headOid},{onSuccess:()=>{eV(),n()},onError:e=>{t(e)}})},Z[17]=ep,Z[18]=ey.headOid,Z[19]=eV,Z[20]=u):u=Z[20];let eq=u;Z[21]!==eg?(m=e=>{eg({showChangeGroups:e})},Z[21]=eg,Z[22]=m):m=Z[22];let eK=m,ez=eT.map(iT);Z[23]!==eF||Z[24]!==e$?(f=(0,o.jsx)(nz.X,{className:n5,onObserve:eF,onUnobserve:e$}),Z[23]=eF,Z[24]=e$,Z[25]=f):f=Z[25];let eW=ej&&nZ;Z[26]!==eW?(h=(0,v.$)(nq.A.stickyHeader,n3,eW),Z[26]=eW,Z[27]=h):h=Z[27],Z[28]===Symbol.for(“react.memo_cache_sentinel”)?(p=(0,o.jsx)(“h2″,{className:”sr-only”,children:”Pull Request Toolbar”}),Z[28]=p):p=Z[28],Z[29]!==el?(g=(0,o.jsx)(“div”,{children:el}),Z[29]=el,Z[30]=g):g=Z[30],Z[31]!==ei.state?(x=(0,o.jsx)(“div”,{className:nQ,children:(0,o.jsx)(nW.u,{state:ei.state})}),Z[31]=ei.state,Z[32]=x):x=Z[32],Z[33]!==X||Z[34]!==et||Z[35]!==ei.number||Z[36]!==ea.name||Z[37]!==ea.ownerLogin?(b=(0,o.jsx)(“div”,{className:nX,children:(0,o.jsx)(nH,{commits:X,lastReviewOid:et,ownerLogin:ea.ownerLogin,pullRequestNumber:ei.number,repositoryName:ea.name})}),Z[33]=X,Z[34]=et,Z[35]=ei.number,Z[36]=ea.name,Z[37]=ea.ownerLogin,Z[38]=b):b=Z[38],Z[39]===Symbol.for(“react.memo_cache_sentinel”)?(j=(0,v.$)(nQ,”min-width-0″),C=(0,v.$)(“d-flex mb-n1”,nJ),Z[39]=j,Z[40]=C):(j=Z[39],C=Z[40]);let eZ=ei.title;Z[41]===Symbol.for(“react.memo_cache_sentinel”)?(w=(0,v.$)(“f5 text-bold overflow-hidden no-wrap”,nY),Z[41]=w):w=Z[41],Z[42]!==ei.title?(S=(0,o.jsx)(“a”,{href:”#top”,className:”d-flex overflow-hidden fgColor-default”,children:(0,o.jsx)(“bdi”,{className:w,children:ei.title})}),Z[42]=ei.title,Z[43]=S):S=Z[43],Z[44]!==ei.title||Z[45]!==S?(L=(0,o.jsx)(A.m,{type:”label”,direction:”s”,text:eZ,children:S}),Z[44]=ei.title,Z[45]=S,Z[46]=L):L=Z[46],Z[47]!==ei.number?(D=(0,o.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,ei.number]}),Z[47]=ei.number,Z[48]=D):D=Z[48],Z[49]!==L||Z[50]!==D?(_=(0,o.jsxs)(“div”,{className:C,children:[L,D]}),Z[49]=L,Z[50]=D,Z[51]=_):_=Z[51],Z[52]!==X||Z[53]!==et||Z[54]!==ei.number||Z[55]!==ea.name||Z[56]!==ea.ownerLogin?(R=(0,o.jsx)(nH,{commits:X,lastReviewOid:et,ownerLogin:ea.ownerLogin,pullRequestNumber:ei.number,repositoryName:ea.name,variant:”condensed”}),Z[52]=X,Z[53]=et,Z[54]=ei.number,Z[55]=ea.name,Z[56]=ea.ownerLogin,Z[57]=R):R=Z[57],Z[58]===Symbol.for(“react.memo_cache_sentinel”)?(k=(0,v.$)(“d-none d-lg-flex flex-items-center min-width-0”,nJ),Z[58]=k):k=Z[58],Z[59]===Symbol.for(“react.memo_cache_sentinel”)?(E=(0,o.jsx)(“div”,{className:”border-left mx-1 pr-1 d-block”,style:{width:”1px”,height:”16px”}}),Z[59]=E):E=Z[59],Z[60]!==ei.author||Z[61]!==ei.baseBranch||Z[62]!==ei.commitsCount||Z[63]!==ei.headBranch||Z[64]!==ei.headRepositoryName||Z[65]!==ei.headRepositoryOwnerLogin||Z[66]!==ei.id||Z[67]!==ei.isInAdvisoryRepo||Z[68]!==ei.mergedBy||Z[69]!==ei.mergedByName||Z[70]!==ei.number||Z[71]!==ei.state||Z[72]!==ea.id||Z[73]!==ea.name||Z[74]!==ea.ownerLogin?(T=(0,o.jsxs)(“div”,{className:k,children:[E,(0,o.jsx)(n6.O,{author:ei.author,baseBranch:ei.baseBranch,baseRepositoryOwnerLogin:ea.ownerLogin,baseRepositoryName:ea.name,commitsCount:ei.commitsCount,headBranch:ei.headBranch,headRepositoryOwnerLogin:ei.headRepositoryOwnerLogin,headRepositoryName:ei.headRepositoryName,isInAdvisoryRepo:ei.isInAdvisoryRepo,mergedBy:ei.mergedBy,mergedByName:ei.mergedByName,state:ei.state,pullRequestId:ei.id,pullRequestNumber:ei.number,repositoryId:ea.id})]}),Z[60]=ei.author,Z[61]=ei.baseBranch,Z[62]=ei.commitsCount,Z[63]=ei.headBranch,Z[64]=ei.headRepositoryName,Z[65]=ei.headRepositoryOwnerLogin,Z[66]=ei.id,Z[67]=ei.isInAdvisoryRepo,Z[68]=ei.mergedBy,Z[69]=ei.mergedByName,Z[70]=ei.number,Z[71]=ei.state,Z[72]=ea.id,Z[73]=ea.name,Z[74]=ea.ownerLogin,Z[75]=T):T=Z[75],Z[76]!==R||Z[77]!==T?(O=(0,o.jsxs)(“div”,{className:”f6 text-normal d-flex flex-items-center ml-n2″,children:[R,T]}),Z[76]=R,Z[77]=T,Z[78]=O):O=Z[78],Z[79]!==_||Z[80]!==O?(P=(0,o.jsxs)(tU.B,{direction:”vertical”,gap:”none”,className:j,children:[_,O]}),Z[79]=_,Z[80]=O,Z[81]=P):P=Z[81],Z[82]!==g||Z[83]!==x||Z[84]!==b||Z[85]!==P?(F=(0,o.jsxs)(tU.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:[g,x,b,P]}),Z[82]=g,Z[83]=x,Z[84]=b,Z[85]=P,Z[86]=F):F=Z[86],Z[87]!==eb||Z[88]!==ei.aliveChannel?($=(0,o.jsx)(nD,{aliveChannel:ei.aliveChannel,pathName:eb}),Z[87]=eb,Z[88]=ei.aliveChannel,Z[89]=$):$=Z[89],Z[90]!==er||Z[91]!==es?(M=er&&(0,o.jsx)(e1,{totalFilesCount:es}),Z[90]=er,Z[91]=es,Z[92]=M):M=Z[92];let eQ=!ee&&Y;return Z[93]!==eL||Z[94]!==es||Z[95]!==eo?(B=eL&&es>1&&(0,o.jsx)(“div”,{className:n1,children:(0,o.jsx)(ig,{userNotices:eo})}),Z[93]=eL,Z[94]=es,Z[95]=eo,Z[96]=B):B=Z[96],Z[97]!==M||Z[98]!==eQ||Z[99]!==B?(V=(0,o.jsxs)(“div”,{className:n0,children:[M,eQ,B]}),Z[97]=M,Z[98]=eQ,Z[99]=B,Z[100]=V):V=Z[100],Z[101]!==ew?(U=ew&&(0,o.jsx)(“div”,{className:n2,”data-testid”:”file-controls-divider”}),Z[101]=ew,Z[102]=U):U=Z[102],Z[103]!==ed||Z[104]!==Q||Z[105]!==J||Z[106]!==eB||Z[107]!==eU||Z[108]!==ev||Z[109]!==ee||Z[110]!==eD||Z[111]!==eK||Z[112]!==eP||Z[113]!==ec||Z[114]!==en||Z[115]!==ei||Z[116]!==ea||Z[117]!==ex||Z[118]!==eO||Z[119]!==eo?(H=eD&&ed?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(em.Q,{variant:”danger”,size:”small”,onClick:eU,children:”Discard batch”}),(0,o.jsxs)(em.Q,{variant:”primary”,size:”small”,onClick:eB,children:[“Commit suggestions “,(0,o.jsx)(N.A,{className:”ml-1 color-fg-inherit”,children:eO})]})]}):(0,o.jsxs)(o.Fragment,{children:[ec&&(0,o.jsx)(ik,{aliveChannel:ei.aliveChannel}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(tk,{pageLimits:en,pullRequest:ei,isFileTreeExpanded:ee})}),(0,o.jsx)(tM,{className:”d-none d-sm-flex”,pageLimits:en,isFileTreeExpanded:ee}),J&&(0,o.jsx)(nx,{currentUserLogin:J,pullRequest:ei,repository:ea}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(nj.G,{invisible:!1,reloadOnWhitespaceChange:!0,onUpdateWhitespace:eP,defaultHideWhitespace:ev,small:!0,userNotices:eo,additionalPreferences:(0,o.jsx)(ib,{changeGroupsPreferenceAvailable:Q,showChangeGroups:ex,onShowChangeGroupsChange:eK})})}),(0,o.jsx)(“div”,{className:”d-flex d-sm-none”,children:(0,o.jsx)(ix,{pageLimits:en,pullRequest:ei,hideWhitespace:ev,onUpdateWhitespace:eP,additionalPreferences:(0,o.jsx)(ib,{changeGroupsPreferenceAvailable:Q,showChangeGroups:ex,onShowChangeGroupsChange:eK})})})]}),Z[103]=ed,Z[104]=Q,Z[105]=J,Z[106]=eB,Z[107]=eU,Z[108]=ev,Z[109]=ee,Z[110]=eD,Z[111]=eK,Z[112]=eP,Z[113]=ec,Z[114]=en,Z[115]=ei,Z[116]=ea,Z[117]=ex,Z[118]=eO,Z[119]=eo,Z[120]=H):H=Z[120],Z[121]!==$||Z[122]!==V||Z[123]!==U||Z[124]!==H?(G=(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,children:[$,V,U,H]}),Z[121]=$,Z[122]=V,Z[123]=U,Z[124]=H,Z[125]=G):G=Z[125],Z[126]!==h||Z[127]!==F||Z[128]!==G?(q=(0,o.jsxs)(tU.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:h,children:[p,F,G]}),Z[126]=h,Z[127]=F,Z[128]=G,Z[129]=q):q=Z[129],Z[130]!==eq||Z[131]!==eV||Z[132]!==eG||Z[133]!==eM||Z[134]!==eR||Z[135]!==eI.activeBatch.length||Z[136]!==ez?(K=eR&&ez.length>0&&(0,o.jsx)(iv.$,{authorLogins:[],batchSize:eI.activeBatch.length,onClose:eV,onCommit:eq,defaultCommitMessage:”Apply suggestions from code review”,suggestions:ez,onRemoveSuggestion:eM,onDiscardBatch:eG}),Z[130]=eq,Z[131]=eV,Z[132]=eG,Z[133]=eM,Z[134]=eR,Z[135]=eI.activeBatch.length,Z[136]=ez,Z[137]=K):K=Z[137],Z[138]!==eG||Z[139]!==eH||Z[140]!==eN||Z[141]!==eO?(z=(0,o.jsx)(nR.G,{isOpen:eN,onConfirm:eG,onCancel:eH,suggestionsCount:eO}),Z[138]=eG,Z[139]=eH,Z[140]=eN,Z[141]=eO,Z[142]=z):z=Z[142],Z[143]!==f||Z[144]!==q||Z[145]!==K||Z[146]!==z?(W=(0,o.jsxs)(o.Fragment,{children:[f,q,K,z]}),Z[143]=f,Z[144]=q,Z[145]=K,Z[146]=z,Z[147]=W):W=Z[147],W}:function({changeGroupsPreferenceAvailable:e,commits:t,currentUserLogin:n,fileFilter:i,isFileTreeExpanded:a,lastReviewOid:r,pageLimits:s,pullRequest:l,repository:d,shouldShowViewedFilesCount:c,totalFilesCount:u,treeToggleElement:m,userNotices:f}){let h=(0,nN.u)(“batch_suggested_changes”),p=(0,nN.u)(“pull_request_overview_panel”),{mutate:g}=n9(),{clearSuggestionBatch:x,removeSuggestionFromBatch:b}=(0,I.xJ)(),{mutate:j}=iS(l.pathName,l.comparison.headOid),{mutate:C}=iL(),w=(0,I.WA)(),S=l.pathName,{hideWhitespace:L,fullDiff:D}=(0,I.L3)(),[_,R]=(0,y.useState)(!1),k=c||!a,[E,T]=(0,y.useState)(!1),O=(0,I.j5)(),P=(0,I.RH)(),F=(0,I.WK)(),$=(0,I.qL)(),[M,B]=(0,y.useState)(!1),V=(0,I.Kp)(),U=(0,I.L3)(),H=ij($,F.activeBatch),G=H.length,q=e=>{g({hideWhitespace:e})},[K,z]=(0,nK.B)(e=>{e[0]&&R(!e[0].isIntersecting)}),W=(0,y.useCallback)(e=>{b(e),(0,iN.CE)(V,U.fullDiff.headOid,F.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex))},[b,F,V,U]),Z=(0,y.useCallback)(()=>{B(!0)},[]),Q=(0,y.useCallback)(()=>{B(!1)},[]),X=(0,y.useCallback)(()=>{T(!0)},[]),J=(0,y.useCallback)(()=>{T(!1)},[]),Y=(0,y.useCallback)(()=>{x(),(0,iN.hW)(V,U.fullDiff.headOid),Q(),T(!1)},[x,V,U,Q]),ee=(0,y.useCallback)((e,t,n)=>{j({message:e,currentOid:D.headOid},{onSuccess:()=>{Q(),n()},onError:e=>{t(e)}})},[D,j,Q]),et=e=>{C({showChangeGroups:e})},en=H.map(e=>({commentDatabaseId:e.commentDatabaseId,suggestionIndex:e.suggestionIndex,path:e.path,bodyHTML:e.bodyHTML}));return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nz.X,{className:n5,onObserve:K,onUnobserve:z}),(0,o.jsxs)(tU.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:(0,v.$)(nq.A.stickyHeader,n3,_&&nZ),children:[(0,o.jsx)(“h2″,{className:”sr-only”,children:”Pull Request Toolbar”}),(0,o.jsxs)(tU.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:[(0,o.jsx)(“div”,{children:m}),(0,o.jsx)(“div”,{className:nQ,children:(0,o.jsx)(nW.u,{state:l.state})}),(0,o.jsx)(“div”,{className:nX,children:(0,o.jsx)(nH,{commits:t,lastReviewOid:r,ownerLogin:d.ownerLogin,pullRequestNumber:l.number,repositoryName:d.name})}),(0,o.jsxs)(tU.B,{direction:”vertical”,gap:”none”,className:(0,v.$)(nQ,”min-width-0″),children:[(0,o.jsxs)(“div”,{className:(0,v.$)(“d-flex mb-n1″,nJ),children:[(0,o.jsx)(A.m,{type:”label”,direction:”s”,text:l.title,children:(0,o.jsx)(“a”,{href:”#top”,className:”d-flex overflow-hidden fgColor-default”,children:(0,o.jsx)(“bdi”,{className:(0,v.$)(“f5 text-bold overflow-hidden no-wrap”,nY),children:l.title})})}),(0,o.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,l.number]})]}),(0,o.jsxs)(“div”,{className:”f6 text-normal d-flex flex-items-center ml-n2″,children:[(0,o.jsx)(nH,{commits:t,lastReviewOid:r,ownerLogin:d.ownerLogin,pullRequestNumber:l.number,repositoryName:d.name,variant:”condensed”}),(0,o.jsxs)(“div”,{className:(0,v.$)(“d-none d-lg-flex flex-items-center min-width-0”,nJ),children:[(0,o.jsx)(“div”,{className:”border-left mx-1 pr-1 d-block”,style:{width:”1px”,height:”16px”}}),(0,o.jsx)(n6.O,{author:l.author,baseBranch:l.baseBranch,baseRepositoryOwnerLogin:d.ownerLogin,baseRepositoryName:d.name,commitsCount:l.commitsCount,headBranch:l.headBranch,headRepositoryOwnerLogin:l.headRepositoryOwnerLogin,headRepositoryName:l.headRepositoryName,isInAdvisoryRepo:l.isInAdvisoryRepo,mergedBy:l.mergedBy,mergedByName:l.mergedByName,state:l.state,pullRequestId:l.id,pullRequestNumber:l.number,repositoryId:d.id})]})]})]})]}),(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,children:[(0,o.jsx)(nD,{aliveChannel:l.aliveChannel,pathName:S}),(0,o.jsxs)(“div”,{className:n0,children:[c&&(0,o.jsx)(e1,{totalFilesCount:u}),!a&&i,O&&u>1&&(0,o.jsx)(“div”,{className:n1,children:(0,o.jsx)(ig,{userNotices:f})})]}),k&&(0,o.jsx)(“div”,{className:n2,”data-testid”:”file-controls-divider”}),P&&h?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(em.Q,{variant:”danger”,size:”small”,onClick:X,children:”Discard batch”}),(0,o.jsxs)(em.Q,{variant:”primary”,size:”small”,onClick:Z,children:[“Commit suggestions “,(0,o.jsx)(N.A,{className:”ml-1 color-fg-inherit”,children:G})]})]}):(0,o.jsxs)(o.Fragment,{children:[p&&(0,o.jsx)(ik,{aliveChannel:l.aliveChannel}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(tk,{pageLimits:s,pullRequest:l,isFileTreeExpanded:a})}),(0,o.jsx)(tM,{className:”d-none d-sm-flex”,pageLimits:s,isFileTreeExpanded:a}),n&&(0,o.jsx)(nx,{currentUserLogin:n,pullRequest:l,repository:d}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(nj.G,{invisible:!1,reloadOnWhitespaceChange:!0,onUpdateWhitespace:q,defaultHideWhitespace:L,small:!0,userNotices:f,additionalPreferences:(0,o.jsx)(ib,{changeGroupsPreferenceAvailable:e,showChangeGroups:w,onShowChangeGroupsChange:et})})}),(0,o.jsx)(“div”,{className:”d-flex d-sm-none”,children:(0,o.jsx)(ix,{pageLimits:s,pullRequest:l,hideWhitespace:L,onUpdateWhitespace:q,additionalPreferences:(0,o.jsx)(ib,{changeGroupsPreferenceAvailable:e,showChangeGroups:w,onShowChangeGroupsChange:et})})})]})]})]}),M&&en.length>0&&(0,o.jsx)(iv.$,{authorLogins:[],batchSize:F.activeBatch.length,onClose:Q,onCommit:ee,defaultCommitMessage:”Apply suggestions from code review”,suggestions:en,onRemoveSuggestion:W,onDiscardBatch:Y}),(0,o.jsx)(nR.G,{isOpen:E,onConfirm:Y,onCancel:J,suggestionsCount:G})]})};function iT(e){return{commentDatabaseId:e.commentDatabaseId,suggestionIndex:e.suggestionIndex,path:e.path,bodyHTML:e.bodyHTML}}try{iA.displayName||(iA.displayName=”LivePullRequestFilesToolbar”)}catch{}try{iE.displayName||(iE.displayName=”PullRequestFilesToolbar”)}catch{}function iO(e,t){(0,y.useMemo)(()=>{if(e&&t){for(let n of t)if(n.markersMap)for(let t in n.markersMap){let i=n.markersMap[t];if(i?.threads)for(let n of i.threads){let i=function(e,t){if(“FILE”===e)return;let n=e[0];if(!iF(n))throw Error(`Invalid diff side character: ${n}`);let i=Number(e.slice(1)),a=-1,r=”R”;if(t.start){a=parseInt(t.start.slice(1));let e=t.start[0];iF(e)&&(r=e)}else a=i,r=n;return{endLine:i,endDiffSide:iP[n],startLine:a,startDiffSide:iP[r],isOutdated:!!t.outdatedReason}}(t,n),a=e.threads[Number(n.id)];if(a&&i){let{isOutdated:e,…t}=i;a.positioning=i,a.subject=t}}}}},[t,e])}let iP={L:”LEFT”,R:”RIGHT”};function iF(e){return”L”===e||”R”===e}let i$=”DiffComparisonViewer-module__Container–nndHZ”,iM=”DiffComparisonViewer-module__HiddenPane–pMKU7″,iB=”DiffComparisonViewer-module__PaneContain–PQMad”,iV=”DiffComparisonViewer-module__PaneOverflowVisible–fmHF4″,iU=”DiffComparisonViewer-module__RegularTreeToggle–_Zt7h”,iH=”DiffComparisonViewer-module__MobileTreeToggle–lAOrS”,iG=”DiffComparisonViewer-module__Pane–FbQgQ”,iq=”DiffComparisonViewer-module__WideExpanded–a6hBe”,iK=”DiffComparisonViewer-module__WideCollapsed–nAjUj”,iz=”DiffComparisonViewer-module__CompactHidden–NQ1CL”,iW=”DiffComparisonViewer-module__CompactOverlay–ZnZLv”,iZ=”DiffComparisonViewer-module__CompactInline–jndVg”,iQ=”DiffComparisonViewer-module__Content–Cv2ab”,iX=”DiffComparisonViewer-module__SkeletonWrapper–eZhhq”,iJ=”DiffComparisonViewer-module__SkeletonIconWrapper–e2YmQ”;var iY=n(83873),i0=n(24798),i1=n(50129);function i2({basePath:e,selectedRange:t}){return[eg.uT.baseComparisonInfo,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`]}let i3=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l=(0,c.c)(17),{basePath:o,headSha:d,baseSha:u,shouldFetch:m}=e;if(l[0]!==o||l[1]!==u||l[2]!==d){let e=new URLSearchParams;u===d?e.append(“range”,d??””):u&&d?e.append(“range”,`${u}..${d}`):d&&e.append(“range”,d),t=o,n=eg.uT.baseComparisonInfo,i=e.toString(),l[0]=o,l[1]=u,l[2]=d,l[3]=t,l[4]=n,l[5]=i}else t=l[3],n=l[4],i=l[5];let f=`${t}/page_data/${n}?${i}`,h=u??”base-sha-not-provided”;l[6]!==o||l[7]!==d||l[8]!==h?(a=i2({basePath:o,selectedRange:{baseOid:h,headOid:d}}),l[6]=o,l[7]=d,l[8]=h,l[9]=a):a=l[9];let p=a;return l[10]!==f||l[11]!==d?(r=async()=>{if(!d)return;let e=await (0,eL.QJ)(f);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()??void 0},l[10]=f,l[11]=d,l[12]=r):r=l[12],l[13]!==p||l[14]!==m||l[15]!==r?(s={queryKey:p,queryFn:r,staleTime:1/0,enabled:m},l[13]=p,l[14]=m,l[15]=r,l[16]=s):s=l[16],(0,eS.I)(s)}:function({basePath:e,headSha:t,baseSha:n,shouldFetch:i}){let a=new URLSearchParams;n===t?a.append(“range”,t??””):n&&t?a.append(“range”,`${n}..${t}`):t&&a.append(“range”,t);let r=`${e}/page_data/${eg.uT.baseComparisonInfo}?${a.toString()}`,s=i2({basePath:e,selectedRange:{baseOid:n??”base-sha-not-provided”,headOid:t}});return(0,eS.I)({queryKey:s,queryFn:async()=>{if(!t)return;let e=await (0,eL.QJ)(r);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()??void 0},staleTime:1/0,enabled:i})},i4=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x=(0,c.c)(36),{fileFilter:b,isFileTreeExpanded:j,shouldShowViewedFilesCount:C,totalFilesCount:w,treeToggleElement:N,userNotices:S}=e;x[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[“line-spacing”],x[0]=t):t=x[0];let L=t,[D,_]=(0,y.useState)(!1),R=(0,I.j5)(),k=C||!j;x[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{e[0]&&_(!e[0].isIntersecting)},x[1]=n):n=x[1];let[A,E]=(0,nK.B)(n);x[2]!==A||x[3]!==E?(i=(0,o.jsx)(nz.X,{className:n5,onObserve:A,onUnobserve:E}),x[2]=A,x[3]=E,x[4]=i):i=x[4];let T=D&&nZ;x[5]!==T?(a=(0,v.$)(nq.A.stickyHeader,n4,T),x[5]=T,x[6]=a):a=x[6],x[7]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,o.jsx)(“h2″,{className:”sr-only”,children:”Diff Comparison Toolbar”}),x[7]=r):r=x[7],x[8]!==N?(s=(0,o.jsx)(tU.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:(0,o.jsx)(“div”,{children:N})}),x[8]=N,x[9]=s):s=x[9],x[10]!==C||x[11]!==w?(l=C&&(0,o.jsx)(e1,{totalFilesCount:w}),x[10]=C,x[11]=w,x[12]=l):l=x[12];let O=!j&&b;return x[13]!==R||x[14]!==w||x[15]!==S?(d=R&&w>1&&(0,o.jsx)(“div”,{className:n1,children:(0,o.jsx)(ig,{userNotices:S})}),x[13]=R,x[14]=w,x[15]=S,x[16]=d):d=x[16],x[17]!==d||x[18]!==l||x[19]!==O?(u=(0,o.jsxs)(“div”,{className:n0,children:[l,O,d]}),x[17]=d,x[18]=l,x[19]=O,x[20]=u):u=x[20],x[21]!==k?(m=k&&(0,o.jsx)(“div”,{className:n2,”data-testid”:”file-controls-divider”}),x[21]=k,x[22]=m):m=x[22],x[23]!==S?(f=(0,o.jsx)(nj.G,{invisible:!1,small:!0,enabledDiffViewSettings:L,userNotices:S}),x[23]=S,x[24]=f):f=x[24],x[25]!==u||x[26]!==m||x[27]!==f?(h=(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,children:[u,m,f]}),x[25]=u,x[26]=m,x[27]=f,x[28]=h):h=x[28],x[29]!==h||x[30]!==a||x[31]!==s?(p=(0,o.jsxs)(tU.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:a,children:[r,s,h]}),x[29]=h,x[30]=a,x[31]=s,x[32]=p):p=x[32],x[33]!==p||x[34]!==i?(g=(0,o.jsxs)(o.Fragment,{children:[i,p]}),x[33]=p,x[34]=i,x[35]=g):g=x[35],g}:function({fileFilter:e,isFileTreeExpanded:t,shouldShowViewedFilesCount:n,totalFilesCount:i,treeToggleElement:a,userNotices:r}){let[s,l]=(0,y.useState)(!1),d=(0,I.j5)(),c=n||!t,[u,m]=(0,nK.B)(e=>{e[0]&&l(!e[0].isIntersecting)});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nz.X,{className:n5,onObserve:u,onUnobserve:m}),(0,o.jsxs)(tU.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:(0,v.$)(nq.A.stickyHeader,n4,s&&nZ),children:[(0,o.jsx)(“h2″,{className:”sr-only”,children:”Diff Comparison Toolbar”}),(0,o.jsx)(tU.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:(0,o.jsx)(“div”,{children:a})}),(0,o.jsxs)(tU.B,{direction:”horizontal”,align:”center”,children:[(0,o.jsxs)(“div”,{className:n0,children:[n&&(0,o.jsx)(e1,{totalFilesCount:i}),!t&&e,d&&i>1&&(0,o.jsx)(“div”,{className:n1,children:(0,o.jsx)(ig,{userNotices:r})})]}),c&&(0,o.jsx)(“div”,{className:n2,”data-testid”:”file-controls-divider”}),(0,o.jsx)(nj.G,{invisible:!1,small:!0,enabledDiffViewSettings:[“line-spacing”],userNotices:r})]})]})]})};try{i4.displayName||(i4.displayName=”BasicDiffComparisonViewToolbar”)}catch{}var i5=n(8624),i6=n(94195),i7=n(54571),i8=n(71833);let i9=”diff-comparison-viewer-container”,ae=(0,d.Z6)()?function(e,t,n,i){let a,r,s,l,d,u,m,f,h,p,g,x,b,v=(0,c.c)(40);v[0]===Symbol.for(“react.memo_cache_sentinel”)?(a=[],v[0]=a):a=v[0];let[j]=(0,i7.I)(ai,!0,a),C=(0,y.useRef)(null),w=(0,y.useRef)(null),N=t?”expanded”:”collapsed”;v[1]!==N?(r={wideMode:N,compactMode:”none”},v[1]=N,v[2]=r):r=v[2];let[S,L]=(0,y.useState)(r);v[3]!==i?(s=()=>{L(an),(0,i8.B)(!0,i),requestAnimationFrame(()=>C.current?.focus())},v[3]=i,v[4]=s):s=v[4];let D=s;v[5]!==i?(l=()=>{L({wideMode:”collapsed”,compactMode:”none”}),(0,i8.B)(!1,i),requestAnimationFrame(()=>C.current?.focus())},v[5]=i,v[6]=l):l=v[6];let I=l;v[7]!==n?(d=()=>{let e=”overlay”;if(n){let t=window.innerWidth;(0,i6.nn)(t)>i6.Gy.large&&(e=”inline”)}L(t=>({…t,compactMode:e})),requestAnimationFrame(()=>w.current?.focus())},v[7]=n,v[8]=d):d=v[8];let _=d;v[9]===Symbol.for(“react.memo_cache_sentinel”)?(u=()=>{L(at),requestAnimationFrame(()=>w.current?.focus())},v[9]=u):u=v[9];let R=u;v[10]!==_||v[11]!==D||v[12]!==S.compactMode||v[13]!==S.wideMode?(m=()=>{let e=!1,t=document.getElementById(i9);if(t){let n=t.getBoundingClientRect().width;e=0===n&&M.cg?M.cg.innerWidth>=1012:n>=1012}else M.cg&&(e=M.cg.innerWidth>=1012);e?”collapsed”===S.wideMode&&D():”none”===S.compactMode&&_()},v[10]=_,v[11]=D,v[12]=S.compactMode,v[13]=S.wideMode,v[14]=m):m=v[14];let k=m,A=”expanded”===S.wideMode,E=”expanded”===S.wideMode?”Collapse file tree”:”Expand file tree”;v[15]!==I||v[16]!==D||v[17]!==S.wideMode?(f=()=>{“expanded”===S.wideMode?I():D()},v[15]=I,v[16]=D,v[17]=S.wideMode,v[18]=f):f=v[18],v[19]!==e||v[20]!==f||v[21]!==A||v[22]!==E?(h=(0,o.jsx)(i5.L,{expanded:A,alignment:”left”,ariaLabel:E,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:C,className:iU,onToggleExpanded:f,size:”small”}),v[19]=e,v[20]=f,v[21]=A,v[22]=E,v[23]=h):h=v[23];let T=h,O=”none”!==S.compactMode,P=”none”!==S.compactMode?”Collapse file tree”:”Expand file tree”;v[24]!==_||v[25]!==S.compactMode?(p=()=>{“none”!==S.compactMode?R():_()},v[24]=_,v[25]=S.compactMode,v[26]=p):p=v[26],v[27]!==e||v[28]!==O||v[29]!==P||v[30]!==p?(g=(0,o.jsx)(i5.L,{expanded:O,alignment:”left”,ariaLabel:P,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:w,className:iH,onToggleExpanded:p,size:”small”}),v[27]=e,v[28]=O,v[29]=P,v[30]=p,v[31]=g):g=v[31];let F=g;v[32]!==F||v[33]!==T?(x=(0,o.jsxs)(o.Fragment,{children:[F,T]}),v[32]=F,v[33]=T,v[34]=x):x=v[34];let $=x,B=j&&!t;return v[35]!==k||v[36]!==B||v[37]!==$||v[38]!==S?(b={splitPagePaneHidden:B,treeViewState:S,collapseMobileTree:R,expandTree:k,treeToggleElement:$},v[35]=k,v[36]=B,v[37]=$,v[38]=S,v[39]=b):b=v[39],b}:function(e,t,n,i){let[a]=(0,i7.I)(()=>!1,!0,[]),r=(0,y.useRef)(null),s=(0,y.useRef)(null),[l,d]=(0,y.useState)({wideMode:t?”expanded”:”collapsed”,compactMode:”none”}),c=(0,y.useCallback)(()=>{d(e=>({…e,wideMode:”expanded”})),(0,i8.B)(!0,i),requestAnimationFrame(()=>r.current?.focus())},[i]),u=(0,y.useCallback)(()=>{d({wideMode:”collapsed”,compactMode:”none”}),(0,i8.B)(!1,i),requestAnimationFrame(()=>r.current?.focus())},[i]),m=(0,y.useCallback)(()=>{let e=”overlay”;if(n){let t=window.innerWidth;(0,i6.nn)(t)>i6.Gy.large&&(e=”inline”)}d(t=>({…t,compactMode:e})),requestAnimationFrame(()=>s.current?.focus())},[n]),f=(0,y.useCallback)(()=>{d(e=>({…e,compactMode:”none”})),requestAnimationFrame(()=>s.current?.focus())},[]),h=(0,y.useCallback)(()=>{let e=!1,t=document.getElementById(i9);if(t){let n=t.getBoundingClientRect().width;e=0===n&&M.cg?M.cg.innerWidth>=1012:n>=1012}else M.cg&&(e=M.cg.innerWidth>=1012);e?”collapsed”===l.wideMode&&c():”none”===l.compactMode&&m()},[l.wideMode,l.compactMode,c,m]),p=(0,y.useMemo)(()=>(0,o.jsx)(i5.L,{expanded:”expanded”===l.wideMode,alignment:”left”,ariaLabel:”expanded”===l.wideMode?”Collapse file tree”:”Expand file tree”,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:r,className:iU,onToggleExpanded:()=>{“expanded”===l.wideMode?u():c()},size:”small”}),[l.wideMode,e,u,c]),g=(0,y.useMemo)(()=>(0,o.jsx)(i5.L,{expanded:”none”!==l.compactMode,alignment:”left”,ariaLabel:”none”!==l.compactMode?”Collapse file tree”:”Expand file tree”,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:s,className:iH,onToggleExpanded:()=>{“none”!==l.compactMode?f():m()},size:”small”}),[l.compactMode,e,f,m]);return{splitPagePaneHidden:a&&!t,treeViewState:l,collapseMobileTree:f,expandTree:h,treeToggleElement:(0,y.useMemo)(()=>(0,o.jsxs)(o.Fragment,{children:[g,p]}),[g,p])}};function at(e){return{…e,compactMode:”none”}}function an(e){return{…e,wideMode:”expanded”}}function ai(){return!1}let aa=(0,d.Z6)()?function(){let e,t,n,i=(0,c.c)(7),a=(0,ex.e)(eg.uT.generateChangeGroups),{updateChangeGroupGeneration:r}=(0,I.wL)();return i[0]!==a?(e=async()=>{let e=await (0,ev.q$)(a,{method:”POST”}),t=await (0,ev.hp)(e);return(0,ev.R)(e,t),t},i[0]=a,i[1]=e):e=i[1],i[2]!==r?(t=e=>{r(e)},i[2]=r,i[3]=t):t=i[3],i[4]!==e||i[5]!==t?(n={mutationFn:e,onSuccess:t},i[4]=e,i[5]=t,i[6]=n):n=i[6],(0,eb.n)(n)}:function(){let e=(0,ex.e)(eg.uT.generateChangeGroups),{updateChangeGroupGeneration:t}=(0,I.wL)();return(0,eb.n)({mutationFn:async()=>{let t=await (0,ev.q$)(e,{method:”POST”}),n=await (0,ev.hp)(t);return(0,ev.R)(t,n),n},onSuccess:e=>{t(e)}})},ar=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(11),{changeGroupsEnabled:r}=e,s=(0,I.gt)(),l=(0,I.iY)(),o=!!(l&&l.length>0),d=(0,nN.u)(“generate_groups_on_files_view”),{mutate:u}=aa(),m=(0,I.Fl)();a[0]!==m?(t=m&&(eI(m.state)||!eD(m.state)),a[0]=m,a[1]=t):t=a[1];let f=t,h=(0,I.ww)(),p=(0,y.useRef)(!1);a[2]!==s||a[3]!==r||a[4]!==u||a[5]!==o||a[6]!==h||a[7]!==f||a[8]!==d?(n=()=>{p.current||!d||!r||!s||o||h||f||(u(),p.current=!0)},i=[s,d,u,o,f,h,r],a[2]=s,a[3]=r,a[4]=u,a[5]=o,a[6]=h,a[7]=f,a[8]=d,a[9]=n,a[10]=i):(n=a[9],i=a[10]),(0,y.useEffect)(n,i)}:function({changeGroupsEnabled:e}){let t=(0,I.gt)(),n=(0,I.iY)(),i=!!(n&&n.length>0),a=(0,nN.u)(“generate_groups_on_files_view”),{mutate:r}=aa(),s=(0,I.Fl)(),l=s&&(eI(s.state)||!eD(s.state)),o=(0,I.ww)(),d=(0,y.useRef)(!1);(0,y.useEffect)(()=>{d.current||!a||!e||!t||i||o||l||(r(),d.current=!0)},[t,a,r,i,l,o,e])};var as=n(81945);let al=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(4),{lines:r}=e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={padding:”var(–base-size-6) var(–base-size-8)”,borderColor:”var(–borderColor-muted)”},a[0]=t):t=a[0],a[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,o.jsx)(“div”,{className:”border-bottom bgColor-muted rounded-top-2″,style:t,children:(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,style:{height:”var(–control-small-size)”},children:(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”})})}),a[1]=n):n=a[1],a[2]!==r?(i=(0,o.jsxs)(“div”,{className:”border borderColor-muted rounded”,children:[n,(0,o.jsx)(“div”,{className:”d-flex flex-column gap-2 p-3″,children:Array.from({length:r||5}).map(ao)})]}),a[2]=r,a[3]=i):i=a[3],i}:function({lines:e}){return(0,o.jsxs)(“div”,{className:”border borderColor-muted rounded”,children:[(0,o.jsx)(“div”,{className:”border-bottom bgColor-muted rounded-top-2″,style:{padding:”var(–base-size-6) var(–base-size-8)”,borderColor:”var(–borderColor-muted)”},children:(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,style:{height:”var(–control-small-size)”},children:(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”})})}),(0,o.jsx)(“div”,{className:”d-flex flex-column gap-2 p-3″,children:Array.from({length:e||5}).map((e,t)=>(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”},`loading-skeleton-${t}`))})]})};function ao(e,t){return(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”},`loading-skeleton-${t}`)}try{al.displayName||(al.displayName=”EntireDiffLoadingSkeleton”)}catch{}var ad=n(19976);let ac=(0,d.Z6)()?function(){let e,t=(0,c.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(“div”,{className:”color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column”,children:(0,o.jsx)(tS.E,{border:!1,spacious:!0,children:(0,o.jsx)(tS.E.Heading,{children:”No files matched your search”})})}),t[0]=e):e=t[0],e}:function(){return(0,o.jsx)(“div”,{className:”color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column”,children:(0,o.jsx)(tS.E,{border:!1,spacious:!0,children:(0,o.jsx)(tS.E.Heading,{children:”No files matched your search”})})})};try{ac.displayName||(ac.displayName=”FilesChangedFilterBlankSlate”)}catch{}var au=n(59523),am=n(27913),af=n(66358);let ah=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(17),{pullRequestBasePath:s,className:l,diffPath:d,viewerLogin:u}=e,m=(0,y.useId)();r[0]!==s||r[1]!==d?(t={basePath:s,diffPath:d},r[0]=s,r[1]=d,r[2]=t):t=r[2];let f=(0,D.o5)(t);if(!f)return null;let{isOwnedByViewer:h,owners:p,ruleLineNumber:g,ruleUrl:x}=f.data;if(!(h||p.length>0))return null;r[3]!==h||r[4]!==p||r[5]!==g||r[6]!==u?(n=ap(h,p,g,u),r[3]=h,r[4]=p,r[5]=g,r[6]=u,r[7]=n):n=r[7];let b=n;return r[8]!==l||r[9]!==h||r[10]!==x||r[11]!==m?(i=x?(0,o.jsx)(E.A,{“aria-labelledby”:m,href:x,className:l,muted:!h,children:(0,o.jsx)(k.ShieldLockIcon,{})}):(0,o.jsx)(k.ShieldLockIcon,{className:l}),r[8]=l,r[9]=h,r[10]=x,r[11]=m,r[12]=i):i=r[12],r[13]!==i||r[14]!==b||r[15]!==m?(a=(0,o.jsx)(A.m,{id:m,”aria-label”:b,text:b,children:i}),r[13]=i,r[14]=b,r[15]=m,r[16]=a):a=r[16],a}:function({pullRequestBasePath:e,className:t,diffPath:n,viewerLogin:i}){let a=(0,y.useId)(),r=(0,D.o5)({basePath:e,diffPath:n});if(!r)return null;let{isOwnedByViewer:s,owners:l,ruleLineNumber:d,ruleUrl:c}=r.data;if(!(s||l.length>0))return null;let u=ap(s,l,d,i);return(0,o.jsx)(A.m,{id:a,”aria-label”:u,text:u,children:c?(0,o.jsx)(E.A,{“aria-labelledby”:a,href:c,className:t,muted:!s,children:(0,o.jsx)(k.ShieldLockIcon,{})}):(0,o.jsx)(k.ShieldLockIcon,{className:t})})};function ap(e,t,n,i){let a=”Owned by “,r=t;return e&&(a+=”you”,i&&(r=t.filter(e=>e!==`@${i}`)),r.length>0&&(a+=” along with “)),a+=r.join(“, “),n&&(a+=` (from CODEOWNERS line ${n})`),a}try{ah.displayName||(ah.displayName=”CodeownersBadge”)}catch{}var ag=n(78252),ax=n(31675);let ab=”BlobActionsMenu-module__hiddenIcon–EJrTU”,av=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g=(0,c.c)(46),{oid:x,path:b,repo:v,branchName:y,isViewable:j,isDeleteable:C,isEditable:N,shouldShowEditOptions:S,copilotDiffChatProps:L,returnToPullRequestPath:D,onCommentOnFile:I,onCopyPath:_,onExpandLines:R,areLinesExpanded:A,richDiffToggle:E,codeownersText:T,codeownersUrl:O}=e,P=void 0===C||C,F=void 0===N||N,$=void 0===S||S;g[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(e4.W.Anchor,{children:(0,o.jsx)(el.K,{icon:k.KebabHorizontalIcon,”aria-label”:”More options”,variant:”invisible”,size:”small”})}),g[0]=t):t=g[0],g[1]!==E?(n=E?.richDiff?.canToggleRichDiff&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-medium-up”],onSelect:E.onToggle,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:E.isRichDiff?ab:void 0,children:(0,o.jsx)(k.CheckIcon,{})})}),”Source diff”]}),(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-medium-up”],onSelect:E.onToggle,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:E.isRichDiff?void 0:ab,children:(0,o.jsx)(k.CheckIcon,{})})}),”Rich diff”]}),(0,o.jsx)(w.l.Divider,{className:ax.A[“hide-on-medium-up”]})]}),g[1]=E,g[2]=n):n=g[2],g[3]!==L?(i=L&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ag.$,{…L}),(0,o.jsx)(w.l.Divider,{})]}),g[3]=L,g[4]=i):i=g[4],g[5]!==I?(a=I&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-desktop”],onSelect:I,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.CommentIcon,{})}),”Comment on this file”]}),(0,o.jsx)(w.l.Divider,{className:ax.A[“hide-on-desktop”]})]}),g[5]=I,g[6]=a):a=g[6],g[7]!==_?(r=_&&(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-desktop”],onSelect:_,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.CopyIcon,{})}),”Copy file name”]}),g[7]=_,g[8]=r):r=g[8],g[9]!==A||g[10]!==R?(s=R&&(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-desktop”],onSelect:R,children:[(0,o.jsx)(w.l.LeadingVisual,{children:A?(0,o.jsx)(k.FoldIcon,{}):(0,o.jsx)(k.UnfoldIcon,{})}),(0,o.jsx)(“span”,{children:A?”Collapse non-diff lines”:”Expand all lines”})]}),g[9]=A,g[10]=R,g[11]=s):s=g[11],g[12]!==_||g[13]!==R?(l=(_||R)&&(0,o.jsx)(w.l.Divider,{className:ax.A[“hide-on-desktop”]}),g[12]=_,g[13]=R,g[14]=l):l=g[14],g[15]!==x||g[16]!==b||g[17]!==v.name||g[18]!==v.ownerLogin?(d=(0,eZ.nD_)({repo:v.name,owner:v.ownerLogin,filePath:b,commitish:x}),g[15]=x,g[16]=b,g[17]=v.name,g[18]=v.ownerLogin,g[19]=d):d=g[19];let M=void 0===j||j?void 0:”Action unavailable”;return g[20]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.EyeIcon,{})}),g[20]=u):u=g[20],g[21]!==d||g[22]!==M?(m=(0,o.jsxs)(w.l.LinkItem,{href:d,inactiveText:M,children:[u,”View file”]}),g[21]=d,g[22]=M,g[23]=m):m=g[23],g[24]!==y||g[25]!==P||g[26]!==F||g[27]!==b||g[28]!==v.name||g[29]!==v.ownerLogin||g[30]!==D||g[31]!==$?(f=y&&$&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.l.LinkItem,{href:(0,eZ.Nyd)({repo:v.name,owner:v.ownerLogin,filePath:b,commitish:y,returnToPrPath:D}),inactiveText:F?void 0:”Action unavailable”,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.PencilIcon,{})}),”Edit file”]}),(0,o.jsxs)(w.l.LinkItem,{variant:”danger”,href:(0,eZ.Y65)({repo:v.name,owner:v.ownerLogin,filePath:b,commitish:y}),inactiveText:P?void 0:”Action unavailable”,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.TrashIcon,{})}),”Delete file”]})]}),g[24]=y,g[25]=P,g[26]=F,g[27]=b,g[28]=v.name,g[29]=v.ownerLogin,g[30]=D,g[31]=$,g[32]=f):f=g[32],g[33]!==T||g[34]!==O?(h=T&&O&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.l.Divider,{className:ax.A[“hide-on-desktop”]}),(0,o.jsxs)(w.l.LinkItem,{className:ax.A[“hide-on-desktop”],href:O,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.ShieldLockIcon,{})}),T]})]}),g[33]=T,g[34]=O,g[35]=h):h=g[35],g[36]!==s||g[37]!==l||g[38]!==m||g[39]!==f||g[40]!==h||g[41]!==n||g[42]!==i||g[43]!==a||g[44]!==r?(p=(0,o.jsxs)(e4.W,{children:[t,(0,o.jsx)(e4.W.Overlay,{children:(0,o.jsxs)(w.l,{children:[n,i,a,r,s,l,m,f,h]})})]}),g[36]=s,g[37]=l,g[38]=m,g[39]=f,g[40]=h,g[41]=n,g[42]=i,g[43]=a,g[44]=r,g[45]=p):p=g[45],p}:function({oid:e,path:t,repo:n,branchName:i,isViewable:a=!0,isDeleteable:r=!0,isEditable:s=!0,shouldShowEditOptions:l=!0,copilotDiffChatProps:d,returnToPullRequestPath:c,onCommentOnFile:u,onCopyPath:m,onExpandLines:f,areLinesExpanded:h,richDiffToggle:p,codeownersText:g,codeownersUrl:x}){return(0,o.jsxs)(e4.W,{children:[(0,o.jsx)(e4.W.Anchor,{children:(0,o.jsx)(el.K,{icon:k.KebabHorizontalIcon,”aria-label”:”More options”,variant:”invisible”,size:”small”})}),(0,o.jsx)(e4.W.Overlay,{children:(0,o.jsxs)(w.l,{children:[p?.richDiff?.canToggleRichDiff&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-medium-up”],onSelect:p.onToggle,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:p.isRichDiff?ab:void 0,children:(0,o.jsx)(k.CheckIcon,{})})}),”Source diff”]}),(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-medium-up”],onSelect:p.onToggle,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:p.isRichDiff?void 0:ab,children:(0,o.jsx)(k.CheckIcon,{})})}),”Rich diff”]}),(0,o.jsx)(w.l.Divider,{className:ax.A[“hide-on-medium-up”]})]}),d&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ag.$,{…d}),(0,o.jsx)(w.l.Divider,{})]}),u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-desktop”],onSelect:u,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.CommentIcon,{})}),”Comment on this file”]}),(0,o.jsx)(w.l.Divider,{className:ax.A[“hide-on-desktop”]})]}),m&&(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-desktop”],onSelect:m,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.CopyIcon,{})}),”Copy file name”]}),f&&(0,o.jsxs)(w.l.Item,{className:ax.A[“hide-on-desktop”],onSelect:f,children:[(0,o.jsx)(w.l.LeadingVisual,{children:h?(0,o.jsx)(k.FoldIcon,{}):(0,o.jsx)(k.UnfoldIcon,{})}),(0,o.jsx)(“span”,{children:h?”Collapse non-diff lines”:”Expand all lines”})]}),(m||f)&&(0,o.jsx)(w.l.Divider,{className:ax.A[“hide-on-desktop”]}),(0,o.jsxs)(w.l.LinkItem,{href:(0,eZ.nD_)({repo:n.name,owner:n.ownerLogin,filePath:t,commitish:e}),inactiveText:a?void 0:”Action unavailable”,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.EyeIcon,{})}),”View file”]}),i&&l&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.l.LinkItem,{href:(0,eZ.Nyd)({repo:n.name,owner:n.ownerLogin,filePath:t,commitish:i,returnToPrPath:c}),inactiveText:s?void 0:”Action unavailable”,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.PencilIcon,{})}),”Edit file”]}),(0,o.jsxs)(w.l.LinkItem,{variant:”danger”,href:(0,eZ.Y65)({repo:n.name,owner:n.ownerLogin,filePath:t,commitish:i}),inactiveText:r?void 0:”Action unavailable”,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.TrashIcon,{})}),”Delete file”]})]}),g&&x&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.l.Divider,{className:ax.A[“hide-on-desktop”]}),(0,o.jsxs)(w.l.LinkItem,{className:ax.A[“hide-on-desktop”],href:x,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(k.ShieldLockIcon,{})}),g]})]})]})})]})};try{av.displayName||(av.displayName=”BlobActionsMenu”)}catch{}let ay=”MarkAsViewedButton-module__viewed–czELS”,aj=”MarkAsViewedButton-module__iconOnly–tQ1ah”,aC=(0,d.Z6)()?function(e,t){let n,i,a,r,s=(0,c.c)(10),{onSuccess:l,onError:o}=t,d=`${e}/file_review`;return s[0]!==d?(n=async e=>{let{viewedStatus:t,path:n}=e,i=await (0,eL.Sr)(`${d}`,{method:t?”POST”:”DELETE”,headers:{Accept:”application/json”},body:{path:n,viewed:t?”viewed”:void 0,_method:t?void 0:”delete”}}),a=await i.json();if(i.ok)return a;throw Error(a.error||”Unknown error occurred”,{cause:i.status})},s[0]=d,s[1]=n):n=s[1],s[2]!==l?(i=()=>{l()},s[2]=l,s[3]=i):i=s[3],s[4]!==o?(a=e=>{o(e)},s[4]=o,s[5]=a):a=s[5],s[6]!==n||s[7]!==i||s[8]!==a?(r={mutationFn:n,onSuccess:i,onError:a},s[6]=n,s[7]=i,s[8]=a,s[9]=r):r=s[9],(0,eb.n)(r)}:function(e,{onSuccess:t,onError:n}){let i=`${e}/file_review`;return(0,eb.n)({mutationFn:async({viewedStatus:e,path:t})=>{let n=await (0,eL.Sr)(`${i}`,{method:e?”POST”:”DELETE”,headers:{Accept:”application/json”},body:{path:t,viewed:e?”viewed”:void 0,_method:e?void 0:”delete”}}),a=await n.json();if(n.ok)return a;throw Error(a.error||”Unknown error occurred”,{cause:n.status})},onSuccess:()=>{t()},onError:e=>{n(e)}})},aw=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(27),{basePath:u,inactive:m,inactiveTooltip:f,path:h,setIsCollapsed:p}=e,g=void 0!==m&&m,x=(0,I.Mv)(h);d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:aS,onError:aN},d[0]=t):t=d[0];let{mutate:b}=aC(u,t),{setDiffViewed:y}=(0,I.Ud)(),j=(0,I.j5)(),{navigateToNext:C}=ii();d[1]!==g||d[2]!==j||d[3]!==x||d[4]!==C||d[5]!==h||d[6]!==y||d[7]!==p||d[8]!==b?(n=()=>{g||(b({viewedStatus:!x,path:h}),y(h,!x),j?C():p(!x))},d[1]=g,d[2]=j,d[3]=x,d[4]=C,d[5]=h,d[6]=y,d[7]=p,d[8]=b,d[9]=n):n=d[9];let w=n;d[10]!==x?(i=x?(0,o.jsx)(k.CheckboxFillIcon,{className:”color-fg-accent”}):(0,o.jsx)(“svg”,{“aria-hidden”:”true”,fill:”none”,height:”16″,role:”img”,viewBox:”0 0 16 16″,width:”16″,xmlns:”http://www.w3.org/2000/svg”,children:(0,o.jsx)(“path”,{clipRule:”evenodd”,d:”M2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H13.25C13.3881 2.5 13.5 2.61193 13.5 2.75V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25V2.75ZM2.75 1C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V2.75C15 1.7835 14.2165 1 13.25 1H2.75Z”,fill:”currentColor”,fillRule:”evenodd”})}),d[10]=x,d[11]=i):i=d[11];let N=i,S=x?”Viewed”:”Not Viewed”;d[12]!==N?(a=()=>N,d[12]=N,d[13]=a):a=d[13];let L=x&&ay;d[14]!==L?(r=(0,v.$)(L,aj),d[14]=L,d[15]=r):r=d[15],d[16]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(“span”,{className:ax.A[“hide-on-mobile”],children:”Viewed”}),d[16]=s):s=d[16],d[17]!==w||d[18]!==g||d[19]!==x||d[20]!==S||d[21]!==a||d[22]!==r?(l=(0,o.jsx)(em.Q,{“aria-pressed”:x,”aria-label”:S,inactive:g,size:”small”,variant:”default”,leadingVisual:a,className:r,onClick:w,children:s}),d[17]=w,d[18]=g,d[19]=x,d[20]=S,d[21]=a,d[22]=r,d[23]=l):l=d[23];let D=l;if(!g||!f)return D;{let e;return d[24]!==D||d[25]!==f?(e=(0,o.jsx)(A.m,{text:f,children:D}),d[24]=D,d[25]=f,d[26]=e):e=d[26],e}}:function({basePath:e,inactive:t=!1,inactiveTooltip:n,path:i,setIsCollapsed:a}){let r=(0,I.Mv)(i),{mutate:s}=aC(e,{onSuccess:()=>{},onError:()=>{}}),{setDiffViewed:l}=(0,I.Ud)(),d=(0,I.j5)(),{navigateToNext:c}=ii(),u=(0,y.useCallback)(()=>{t||(s({viewedStatus:!r,path:i}),l(i,!r),d?c():a(!r))},[s,t,r,i,l,d,c,a]),m=(0,y.useMemo)(()=>r?(0,o.jsx)(k.CheckboxFillIcon,{className:”color-fg-accent”}):(0,o.jsx)(“svg”,{“aria-hidden”:”true”,fill:”none”,height:”16″,role:”img”,viewBox:”0 0 16 16″,width:”16″,xmlns:”http://www.w3.org/2000/svg”,children:(0,o.jsx)(“path”,{clipRule:”evenodd”,d:”M2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H13.25C13.3881 2.5 13.5 2.61193 13.5 2.75V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25V2.75ZM2.75 1C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V2.75C15 1.7835 14.2165 1 13.25 1H2.75Z”,fill:”currentColor”,fillRule:”evenodd”})}),[r]),f=(0,o.jsx)(em.Q,{“aria-pressed”:r,”aria-label”:r?”Viewed”:”Not Viewed”,inactive:t,size:”small”,variant:”default”,leadingVisual:()=>m,className:(0,v.$)(r&&ay,aj),onClick:u,children:(0,o.jsx)(“span”,{className:ax.A[“hide-on-mobile”],children:”Viewed”})});return t&&n?(0,o.jsx)(A.m,{text:n,children:f}):f};function aN(){}function aS(){}try{aw.displayName||(aw.displayName=”MarkAsViewedButton”)}catch{}var aL=n(79634);function aD({basePath:e,effectiveRange:t,path:n}){return[eg.uT.richDiff,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`,`path:${n}`]}let aI=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(11),{basePath:r,path:s}=e,l=(0,I.L3)();a[0]!==r||a[1]!==l||a[2]!==s?(t=aD({basePath:r,path:s,…l}),a[0]=r,a[1]=l,a[2]=s,a[3]=t):t=a[3];let o=t;a[4]!==r||a[5]!==l||a[6]!==s?(n={path:s,basePath:r,…l,signal:void 0},a[4]=r,a[5]=l,a[6]=s,a[7]=n):n=a[7];let d=n;return a[8]!==d||a[9]!==o?(i={fetcher:a_,key:o,args:d},a[8]=d,a[9]=o,a[10]=i):i=a[10],i}:function({basePath:e,path:t}){let n=(0,I.L3)();return{fetcher:a_,key:aD({basePath:e,path:t,…n}),args:{path:t,basePath:e,…n,signal:void 0}}};async function a_({basePath:e,fullDiff:t,effectiveRange:n,path:i,signal:a}){let r=new URLSearchParams;r.append(“path”,i),n.baseOid===t.baseOid?r.append(“range”,n.headOid):r.append(“range”,`${n.baseOid}..${n.headOid}`);let s=`${e}/page_data/${eg.uT.richDiff}?${r.toString()}`;try{let e=await (0,eL.Sr)(s,{signal:a});if(a?.aborted)return;let t=await (0,ev.hp)(e);return(0,ev.R)(e,t),t??void 0}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw e}}var aR=n(15697);function ak(e,t){if(e.type!==t.type)return!1;let n=”CONTEXT”===e.type||”ADDITION”===e.type,i=”DELETION”===e.type;return n&&e.right===t.line||i&&e.left===t.line}function aA({diffSummary:e,commentPreference:t,lineSpacingPreference:n,isCollapsed:i}){let a=n===f.Ud.Compact?20:25;if(i)return 42;if(e?.changeType===”DELETED”||e?.changeType===”REMOVED”)return 177;let r=e?Math.max(1,Math.ceil(e.linesChanged/5)):1,s=e?.changeType===”MODIFIED”?6*r*a:0,l=0,o=0;if(t===f.sI.Visible){let t=0,n=0;for(let i of Object.values(e?.markersMap||{}))t+=i.threads.length,n+=i.annotations.length;l=500*t,o=300*n}let d=e?.linesChanged??1;return e?.changeType===”ADDED”&&(d+=1),42+a*d+l+o+s}function aE({diffManuallyExpanded:e,headBranchName:t,headRepoName:n,headRepoOwner:i,diffLines:a,path:r,isSelected:s=!1,reviewed:l,…d}){let c=(0,I.Kp)(),u=(0,I.JA)(),{fetchContextLines:m}=(0,I.QV)(),f=(0,I.L3)(),p=f.hideWhitespace?”1″:”0″,g=aI({basePath:c,path:r}),x=(0,y.useRef)(null),b=(0,y.useRef)(null),{helpUrl:j}=(0,aL.X)(),C=(0,I.kN)(r),{updateAllFilesCollapsedStatus:w,updateFileCollapsedStatus:N}=(0,I.JR)(),S=(0,I.GR)(),[_,R]=(0,y.useState)(!1),[A,E]=(0,y.useState)(d.richDiff?.defaultToRichDiff??!1),T=(0,h.G7)(“pr_simple_diffs”),O=(0,I.Fm)(r),P=(0,y.useMemo)(()=>{if(T)return aA({diffSummary:O,commentPreference:d.currentUser.commentsPreference,lineSpacingPreference:d.currentUser.lineSpacing,isCollapsed:C})},[d.currentUser.commentsPreference,d.currentUser.lineSpacing,O,C,T]),F=(0,I.ne)(r),$=(0,D.dG)({basePath:c}),B=(0,D.hG)({diffPath:r,codeownersData:$?.data}),V=(0,y.useMemo)(()=>F?F[tp.zW]?.threads??[]:[],[F]),U=(0,y.useMemo)(()=>u?function(e,t,n){let i=[],a=t.hunkPositions[n];if(!a)return i;let r=0,s=a[0];if(!s)return i;let l=!1;for(let t of e)if(l){if(i.push(t),ak(t,s.endLine)&&(l=!1,!(s=a[++r])))break}else ak(t,s.startLine)&&(l=!0,i.push(s.headerLine),i.push(t));return i}(a,u,r):a,[u,r,a]),H=(0,y.useCallback)(()=>{N(r,!1)},[r,N]),G=(0,y.useRef)(!0),q=(0,y.useCallback)(()=>{S()&&C&&H()},[C,H,S]),K=(0,y.useCallback)(()=>{(0,L.K3)(),q()},[q]),z=(0,y.useCallback)(()=>{(0,it.o9)()===d.pathDigest&&C&&H()},[d.pathDigest,H,C]),W=(0,y.useCallback)(()=>{q(),z(),G.current=!1},[q,z]);(0,y.useEffect)(()=>{W()},[]),(0,y.useEffect)(()=>{if(!s){G.current=!0;return}G.current&&(z(),G.current=!1)},[z,s]),(0,y.useEffect)(()=>(M.cg?.addEventListener(“hashchange”,W),()=>{M.cg?.removeEventListener(“hashchange”,W)}),[W]);let Z=(0,y.useCallback)((e,t,n)=>{if(n&&n.altKey)w(e);else{if(N(t,e),!e)return;M.cg?.requestAnimationFrame(()=>{let e=x.current?.getBoundingClientRect();!e||e.top<60&&M.cg?.scrollTo({top:e.top+M.cg.scrollY-60})})}},[w,N]),Q=(0,y.useRef)((0,aR.B)({diffSummary:O})),[X,J]=(0,y.useState)(!1),Y=(0,y.useCallback)(async e=>{K(),Q.current.push(e),m({contextLineRanges:Q.current,path:r,w:p})},[K,m,r,p]),ee=(0,y.useCallback)(async()=>{await m({contextLineRanges:[],path:r})},[m,r]),et=(0,y.useMemo)(()=>{if(d.isBinary||d.isSubmodule||d.isTooBig||(0,au.dK)({linesChanged:d.linesChanged,newTreeEntry:d.newTreeEntry,oldTreeEntry:d.oldTreeEntry,status:d.status,truncatedReason:d.truncatedReason}))return!1;if(X)return!0;if(0===U.length)return!1;if((U[1]?.blobLineNumber||0)>1)return!0;let e=U.length,t=U[e-1]?.blobLineNumber||0,n=d.newTreeEntry?.lineCount||0;return!!(t{let e,t;Q.current=[],X||Q.current.push({start:1,end:Math.max(d.oldTreeEntry?.lineCount??0,d.newTreeEntry?.lineCount??0)});let n=document.activeElement;await m({contextLineRanges:Q.current,path:r,w:p}),J(!X),n&&(e=null,t=null,n&&(n.hasAttribute(“data-grid-cell-id”)&&(e=n.getAttribute(“data-grid-cell-id”)),n.hasAttribute(“data-file-path”)&&(t=n.getAttribute(“data-file-path”))),setTimeout(()=>{if(e){let t=document.querySelector(`[data-grid-cell-id=”${e}”]`);if(t)return void t.focus()}if(t){let e=document.querySelector(`button[data-file-path=”${t}”]`);e&&e.focus()}},0))},[X,d.oldTreeEntry?.lineCount,d.newTreeEntry?.lineCount,m,r,p]),ei=(0,y.useCallback)(()=>E(!A),[A]),ea=(0,y.useMemo)(()=>d.richDiff?.canToggleRichDiff?{richDiff:d.richDiff,isRichDiff:A,onToggle:ei}:void 0,[d.richDiff,A,ei]),er=(0,y.useMemo)(()=>B&&(B.isOwnedByViewer||B.owners.length>0)?ap(B.isOwnedByViewer,B.owners,void 0,d.currentUser.login):void 0,[B,d.currentUser.login]),es=(0,y.useMemo)(()=>B?.ruleUrl,[B]),eo=(0,y.useMemo)(()=>d.currentUser.canComment?()=>R(!0):void 0,[d.currentUser.canComment]),ed=(0,y.useCallback)(()=>navigator.clipboard?.writeText(r),[r]),ec=(0,y.useMemo)(()=>et?en:void 0,[et,en]),eu=(0,y.useMemo)(()=>({richDiff:d.richDiff,showRichDiff:A,onToggleRichDiff:E,queryConfig:g}),[d.richDiff,A,g]),em=(0,y.useMemo)(()=>{let e=new Set([]);return u&&e.add(af.YR.diffStats).add(af.YR.expandLines),f.fullDiff.headOid!==f.effectiveRange.headOid&&e.add(af.YR.markAsViewed),e},[u,f.effectiveRange.headOid,f.fullDiff.headOid]),{disabledFeatures:ef,disabledReasons:eh}=(0,y.useMemo)(()=>{let e=new Set([]),t=new Map;return u&&(e.add(af.YR.markAsViewed),t.set(af.YR.markAsViewed,”This file can only be marked as viewed on the \u201CAll files\u201D page”)),{disabledFeatures:e,disabledReasons:t}},[u]);return(0,o.jsx)(am.oO,{loadDiff:ee,…d,addFileCommentButtonRef:b,diffManuallyExpanded:e,estimatedDiffHeight:P,fileComments:V,hiddenFeatures:em,isAddingFileComment:_,isSelected:s,leftSideContent:(0,o.jsx)(y.Suspense,{children:(0,o.jsx)(ah,{className:(0,v.$)(“px-1 flex-items-center flex-order-2 flex-sm-order-1”,ax.A[“hide-on-mobile”]),diffPath:r,pullRequestBasePath:c,viewerLogin:d.currentUser.login})}),rightSideContent:(0,o.jsxs)(“div”,{className:”d-flex flex-items-center gap-2″,children:[!em.has(af.YR.markAsViewed)&&(0,o.jsx)(aw,{path:r,basePath:c,inactive:ef.has(af.YR.markAsViewed)||!!u,inactiveTooltip:eh.get(af.YR.markAsViewed),setIsCollapsed:e=>Z(e,r)}),d.currentUser.canComment&&(0,o.jsx)(el.K,{ref:b,icon:k.CommentIcon,”aria-label”:”Comment on this file”,”aria-expanded”:_,variant:”invisible”,size:”small”,onClick:e=>{C&&Z(!1,r),R(!0),e.stopPropagation()},className:ax.A[“hide-on-mobile”]}),(0,o.jsx)(av,{oid:”REMOVED”===d.status&&d.oldCommitOid?d.oldCommitOid:d.newCommitOid||””,path:r,repo:{name:n||d.repository.name,ownerLogin:i||d.repository.ownerLogin},isViewable:!d.isSubmodule,isDeleteable:!d.isSubmodule,isEditable:!d.isSubmodule,shouldShowEditOptions:d.currentUser.shouldDisplayEditOptions,branchName:t,returnToPullRequestPath:c,onCommentOnFile:eo,onCopyPath:ed,onExpandLines:ec,areLinesExpanded:X,richDiffToggle:ea,codeownersText:er,codeownersUrl:es})]}),canExpandOrCollapseLines:et,expandAllContextLines:en,hasExpandedAllRanges:X,addInjectedContextLines:Y,onToggleCollapse:(e,t)=>Z(t,r,e),path:r,ref:x,setIsAddingFileComment:R,collapsed:C,helpUrl:j,linesAdded:O?.linesAdded||d.linesAdded||0,linesChanged:O?.linesChanged||d.linesChanged||0,linesDeleted:O?.linesDeleted||d.linesDeleted||0,diffLines:U,richDiffState:eu})}try{aE.displayName||(aE.displayName=”PullRequestDiff”)}catch{}var aT=n(29731),aO=n(8431);let aP=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u=(0,c.c)(15),{ariaLabel:f,testId:h,id:p,approximateLineCount:g,approximateDiffHeight:x}=e,{data:b}=(0,m.ID)(),v=b?.lineSpacing===”compact”?20:25,y=x??v*(void 0===g?5:g);return u[0]!==h?(t=(0,aT.G)(h),u[0]=h,u[1]=t):t=u[1],u[2]!==y?(n={minHeight:y},u[2]=y,u[3]=n):n=u[3],u[4]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”}),a=(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”}),r=(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”}),s=(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”}),u[4]=i,u[5]=a,u[6]=r,u[7]=s):(i=u[4],a=u[5],r=u[6],s=u[7]),u[8]!==n?(l=(0,o.jsx)(“div”,{className:”border borderColor-muted”,children:(0,o.jsxs)(“div”,{className:”d-flex flex-column gap-2 p-3″,style:n,children:[i,a,r,s]})}),u[8]=n,u[9]=l):l=u[9],u[10]!==f||u[11]!==p||u[12]!==t||u[13]!==l?(d=(0,o.jsx)(“div”,{className:aO.A.diffTargetable,role:”region”,”aria-label”:f,…t,id:p,children:l}),u[10]=f,u[11]=p,u[12]=t,u[13]=l,u[14]=d):d=u[14],d}:function({ariaLabel:e,testId:t,id:n,approximateLineCount:i=5,approximateDiffHeight:a}){let{data:r}=(0,m.ID)(),s=r?.lineSpacing===”compact”?20:25;return(0,o.jsx)(“div”,{className:aO.A.diffTargetable,role:”region”,”aria-label”:e,…(0,aT.G)(t),id:n,children:(0,o.jsx)(“div”,{className:”border borderColor-muted”,children:(0,o.jsxs)(“div”,{className:”d-flex flex-column gap-2 p-3″,style:{minHeight:a??s*i},children:[(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,o.jsx)(as.O,{height:”sm”,variant:”rounded”,width:”random”})]})})})});try{aP.displayName||(aP.displayName=”DiffEntryLoadingSkeleton”)}catch{}let aF=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(15),{progressiveDiffEntry:s,approximateLineCount:l}=e,d=void 0===l?5:l,{loadMore:u}=(0,I.pV)(),m=(0,nN.u)(“pulls-files-skip-prefer-any-solo-entry”),[f,h]=(0,y.useState)(!1);r[0]!==f||r[1]!==u||r[2]!==s||r[3]!==m?(t=e=>{e[0]?.isIntersecting&&!f&&(h(!0),u(s,{preferAnySoloEntry:!m}))},r[0]=f,r[1]=u,r[2]=s,r[3]=m,r[4]=t):t=r[4],r[5]===Symbol.for(“react.memo_cache_sentinel”)?(n={rootMargin:”-72px”},r[5]=n):n=r[5];let[p,g]=(0,nK.B)(t,n),x=`Loading ${s.path}`,b=`lazy-load-${s.path}`,v=`diff-${s.pathDigest}`;return r[6]!==d||r[7]!==x||r[8]!==b||r[9]!==v?(i=(0,o.jsx)(aP,{ariaLabel:x,testId:b,id:v,approximateLineCount:d}),r[6]=d,r[7]=x,r[8]=b,r[9]=v,r[10]=i):i=r[10],r[11]!==p||r[12]!==i||r[13]!==g?(a=(0,o.jsx)(nz.X,{onObserve:p,onUnobserve:g,children:i}),r[11]=p,r[12]=i,r[13]=g,r[14]=a):a=r[14],a}:function({progressiveDiffEntry:e,approximateLineCount:t=5}){let{loadMore:n}=(0,I.pV)(),i=(0,nN.u)(“pulls-files-skip-prefer-any-solo-entry”),[a,r]=(0,y.useState)(!1),[s,l]=(0,nK.B)(t=>{t[0]?.isIntersecting&&!a&&(r(!0),n(e,{preferAnySoloEntry:!i}))},{rootMargin:”-72px”});return(0,o.jsx)(nz.X,{onObserve:s,onUnobserve:l,children:(0,o.jsx)(aP,{ariaLabel:`Loading ${e.path}`,testId:`lazy-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})})});try{aF.displayName||(aF.displayName=”LazyDiffEntryLoadingSkeleton”)}catch{}let a$=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(10),{progressiveDiffEntry:r,approximateLineCount:s}=e,l=void 0===s?5:s,{loadMore:d}=(0,I.pV)(),u=(0,nN.u)(“pulls-files-skip-prefer-any-solo-entry”);a[0]!==d||a[1]!==r||a[2]!==u?(t=()=>{d(r,{preferAnySoloEntry:!u})},n=[d,r,u],a[0]=d,a[1]=r,a[2]=u,a[3]=t,a[4]=n):(t=a[3],n=a[4]),(0,y.useEffect)(t,n);let m=`Loading ${r.path}`,f=`eager-load-${r.path}`,h=`diff-${r.pathDigest}`;return a[5]!==l||a[6]!==m||a[7]!==f||a[8]!==h?(i=(0,o.jsx)(aP,{ariaLabel:m,testId:f,id:h,approximateLineCount:l}),a[5]=l,a[6]=m,a[7]=f,a[8]=h,a[9]=i):i=a[9],i}:function({progressiveDiffEntry:e,approximateLineCount:t=5}){let{loadMore:n}=(0,I.pV)(),i=(0,nN.u)(“pulls-files-skip-prefer-any-solo-entry”);return(0,y.useEffect)(()=>{n(e,{preferAnySoloEntry:!i})},[n,e,i]),(0,o.jsx)(aP,{ariaLabel:`Loading ${e.path}`,testId:`eager-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})});try{a$.displayName||(a$.displayName=”EagerDiffEntryLoadingSkeleton”)}catch{}let aM=(0,y.memo)((0,d.Z6)()?function(e){let t,n=(0,c.c)(9),{linesAdded:i,linesChanged:a,linesDeleted:r,newTreeEntry:s,oldTreeEntry:l,path:d,pathDigest:u,status:m}=e;return n[0]!==i||n[1]!==a||n[2]!==r||n[3]!==s||n[4]!==l||n[5]!==d||n[6]!==u||n[7]!==m?(t=(0,o.jsx)(am.Ao,{linesAdded:i,linesChanged:a,linesDeleted:r,newTreeEntry:s,oldTreeEntry:l,path:d,pathDigest:u,status:m}),n[0]=i,n[1]=a,n[2]=r,n[3]=s,n[4]=l,n[5]=d,n[6]=u,n[7]=m,n[8]=t):t=n[8],t}:function({linesAdded:e,linesChanged:t,linesDeleted:n,newTreeEntry:i,oldTreeEntry:a,path:r,pathDigest:s,status:l}){return(0,o.jsx)(am.Ao,{linesAdded:e,linesChanged:t,linesDeleted:n,newTreeEntry:i,oldTreeEntry:a,path:r,pathDigest:s,status:l})});try{aM.displayName||(aM.displayName=”PullRequestDiffEntryErrorFallback”)}catch{}var aB=n(90047),aV=n(73189);let aU=(0,y.memo)((0,d.Z6)()?function(e){let t,n=(0,c.c)(5),{progressiveDiffEntry:i,approximateLineCount:a}=e,r=void 0===a?5:a,s=`Loading ${i.path}`,l=`hidden-load-${i.path}`,d=`diff-${i.pathDigest}`;return n[0]!==r||n[1]!==s||n[2]!==l||n[3]!==d?(t=(0,o.jsx)(aP,{ariaLabel:s,testId:l,id:d,approximateLineCount:r}),n[0]=r,n[1]=s,n[2]=l,n[3]=d,n[4]=t):t=n[4],t}:function({progressiveDiffEntry:e,approximateLineCount:t=5}){return(0,o.jsx)(aP,{ariaLabel:`Loading ${e.path}`,testId:`hidden-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})});try{aU.displayName||(aU.displayName=”HiddenDiffEntryLoadingSkeleton”)}catch{}let aH=(0,y.memo)(aq,(e,t)=>e.progressiveDiffEntry.pathDigest===t.progressiveDiffEntry.pathDigest&&e.progressiveDiffEntry.renderMode===t.progressiveDiffEntry.renderMode&&e.currentUser.splitPreference===t.currentUser.splitPreference&&e.currentUser.commentsPreference===t.currentUser.commentsPreference&&e.currentUser.lineSpacing===t.currentUser.lineSpacing),aG=(0,d.Z6)();function aq(e){return aG?function(e){let t,n,i,a,r,s=(0,c.c)(72),{currentUser:l,diffManuallyExpanded:d,headBranchName:u,headRepoName:m,headRepoOwner:f,onScrollToAndFocusEntry:h,progressiveDiffEntry:p,pullRequestGlobalRelayId:g,repository:x,testRenderFn:b}=e,j=(0,I.Py)(p.pathDigest),C=(0,I.jT)(p.path),w=(0,I.Fm)(p.path),N=(0,I.j5)();b&&b();let S=(0,y.useRef)(!1);s[0]!==j||s[1]!==h||s[2]!==p.pathDigest||s[3]!==p.renderMode?(t=()=>{if(S.current)return;let e=M.fV.hash??””,t=(0,it.pd)(e)??””;if((t=t.replace(“diff-“,””).replace(“#”,””))!==p.pathDigest&&(S.current=!0),!(j&&[“LAZY_AUTO_LOAD”,”EAGER_AUTO_LOAD”].includes(p.renderMode))){if(j&&”HIDE”!==p.renderMode){let e=M.cg?.location.hash.substring(1)??””;if(!(0,it.yI)(e)||”RENDER”===p.renderMode){let e=M.cg?.document.activeElement;if(e?.closest(“#diff-file-tree-filter”))return;h(p.pathDigest)}}S.current=!0}},s[0]=j,s[1]=h,s[2]=p.pathDigest,s[3]=p.renderMode,s[4]=t):t=s[4];let L=p?.renderMode;if(s[5]!==j||s[6]!==h||s[7]!==p.pathDigest||s[8]!==L?(n=[j,h,p.pathDigest,L],s[5]=j,s[6]=h,s[7]=p.pathDigest,s[8]=L,s[9]=n):n=s[9],(0,y.useEffect)(t,n),!p)return null;if(“HIDE”===p.renderMode||”LAZY_AUTO_LOAD”===p.renderMode||”EAGER_AUTO_LOAD”===p.renderMode){let e,t,n,i;s[10]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(o.Fragment,{}),s[10]=e):e=s[10];let a=e,r=w?.linesChanged??5;if((w?.changeType===”REMOVED”||w?.changeType===”DELETED”)&&(r=5),”HIDE”===p.renderMode){let e;s[11]!==r||s[12]!==p?(e=(0,o.jsx)(aU,{progressiveDiffEntry:p,approximateLineCount:r}),s[11]=r,s[12]=p,s[13]=e):e=s[13],a=e}else if(“LAZY_AUTO_LOAD”===p.renderMode){let e;s[14]!==r||s[15]!==p?(e=(0,o.jsx)(aF,{progressiveDiffEntry:p,approximateLineCount:r}),s[14]=r,s[15]=p,s[16]=e):e=s[16],a=e}else if(“EAGER_AUTO_LOAD”===p.renderMode){let e;s[17]!==r||s[18]!==p?(e=(0,o.jsx)(a$,{progressiveDiffEntry:p,approximateLineCount:r}),s[17]=r,s[18]=p,s[19]=e):e=s[19],a=e}let l=`diff-${p.pathDigest}`;s[20]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,v.$)(aO.A.diffTargetable,aO.A.diff),s[20]=t):t=s[20];let d=`${p.pathDigest}_${p.path}`,c=`#diff-${p.pathDigest}`,u=w?.linesAdded??0,m=w?.linesChanged??0,f=w?.linesDeleted??0;return s[21]!==N||s[22]!==p.path||s[23]!==m||s[24]!==f||s[25]!==c||s[26]!==u?(n=(0,o.jsx)(“div”,{className:aO.A.diffHeaderWrapper,children:(0,o.jsx)(aB.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:c,canToggleRichDiff:!1,linesAdded:u,linesChanged:m,linesDeleted:f,newPath:p.path,patchStatus:””,path:p.path,onToggleExpandAllLines:aV.l,onToggleFileCollapsed:aV.l,onToggleDiffDisplay:aV.l,isInSingleFileMode:N})}),s[21]=N,s[22]=p.path,s[23]=m,s[24]=f,s[25]=c,s[26]=u,s[27]=n):n=s[27],s[28]!==j||s[29]!==a||s[30]!==n||s[31]!==l||s[32]!==d?(i=(0,o.jsxs)(“div”,{role:”region”,id:l,className:t,”data-targeted”:j,children:[n,a]},d),s[28]=j,s[29]=a,s[30]=n,s[31]=l,s[32]=d,s[33]=i):i=s[33],i}if(!C){let e;return s[34]!==p.path||s[35]!==p.pathDigest?(e=(0,o.jsx)(aM,{linesAdded:0,linesChanged:0,linesDeleted:0,path:p.path,pathDigest:p.pathDigest,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”}),s[34]=p.path,s[35]=p.pathDigest,s[36]=e):e=s[36],e}s[37]!==C?(i=(0,o.jsx)(aM,{…C}),s[37]=C,s[38]=i):i=s[38];let D=C.reviewed??!1;return s[39]!==l||s[40]!==C.diffLines||s[41]!==C.diffSize||s[42]!==C.helpUrl||s[43]!==C.isBinary||s[44]!==C.isSubmodule||s[45]!==C.isTooBig||s[46]!==C.linesAdded||s[47]!==C.linesChanged||s[48]!==C.linesDeleted||s[49]!==C.newCommitOid||s[50]!==C.newTreeEntry||s[51]!==C.objectId||s[52]!==C.oldCommitOid||s[53]!==C.oldTreeEntry||s[54]!==C.path||s[55]!==C.pathDigest||s[56]!==C.richDiff||s[57]!==C.status||s[58]!==C.submodule||s[59]!==C.truncatedReason||s[60]!==d||s[61]!==u||s[62]!==m||s[63]!==f||s[64]!==j||s[65]!==g||s[66]!==x||s[67]!==D?(a=(0,o.jsx)(aE,{changeType:C.status,currentUser:l,diffLines:C.diffLines,diffManuallyExpanded:d,diffSize:C.diffSize,headBranchName:u,headRepoName:m,headRepoOwner:f,helpUrl:C.helpUrl,isBinary:C.isBinary,isSelected:j,isSubmodule:C.isSubmodule,isTooBig:C.isTooBig,linesAdded:C.linesAdded,linesChanged:C.linesChanged,linesDeleted:C.linesDeleted,newCommitOid:C.newCommitOid,newTreeEntry:C.newTreeEntry,objectId:C.objectId,oldCommitOid:C.oldCommitOid,oldTreeEntry:C.oldTreeEntry,path:C.path,pathDigest:C.pathDigest,pullRequestGlobalRelayId:g,repository:x,reviewed:D,richDiff:C.richDiff,status:C.status,submodule:C.submodule,truncatedReason:C.truncatedReason}),s[39]=l,s[40]=C.diffLines,s[41]=C.diffSize,s[42]=C.helpUrl,s[43]=C.isBinary,s[44]=C.isSubmodule,s[45]=C.isTooBig,s[46]=C.linesAdded,s[47]=C.linesChanged,s[48]=C.linesDeleted,s[49]=C.newCommitOid,s[50]=C.newTreeEntry,s[51]=C.objectId,s[52]=C.oldCommitOid,s[53]=C.oldTreeEntry,s[54]=C.path,s[55]=C.pathDigest,s[56]=C.richDiff,s[57]=C.status,s[58]=C.submodule,s[59]=C.truncatedReason,s[60]=d,s[61]=u,s[62]=m,s[63]=f,s[64]=j,s[65]=g,s[66]=x,s[67]=D,s[68]=a):a=s[68],s[69]!==i||s[70]!==a?(r=(0,o.jsx)(J.t,{fallback:i,children:a}),s[69]=i,s[70]=a,s[71]=r):r=s[71],r}(e):function({currentUser:e,diffManuallyExpanded:t,headBranchName:n,headRepoName:i,headRepoOwner:a,onScrollToAndFocusEntry:r,progressiveDiffEntry:s,pullRequestGlobalRelayId:l,repository:d,testRenderFn:c}){let u=(0,I.Py)(s.pathDigest),m=(0,I.jT)(s.path),f=(0,I.Fm)(s.path),h=(0,I.j5)();c&&c();let p=(0,y.useRef)(!1);if((0,y.useEffect)(()=>{if(p.current)return;let e=M.fV.hash??””,t=(0,it.pd)(e)??””;if((t=t.replace(“diff-“,””).replace(“#”,””))!==s.pathDigest&&(p.current=!0),!(u&&[“LAZY_AUTO_LOAD”,”EAGER_AUTO_LOAD”].includes(s.renderMode))){if(u&&”HIDE”!==s.renderMode){let e=M.cg?.location.hash.substring(1)??””;if(!(0,it.yI)(e)||”RENDER”===s.renderMode){let e=M.cg?.document.activeElement;if(e?.closest(“#diff-file-tree-filter”))return;r(s.pathDigest)}}p.current=!0}},[u,r,s.pathDigest,s?.renderMode]),!s)return null;if(“HIDE”===s.renderMode||”LAZY_AUTO_LOAD”===s.renderMode||”EAGER_AUTO_LOAD”===s.renderMode){let e=(0,o.jsx)(o.Fragment,{}),t=f?.linesChanged??5;return(f?.changeType===”REMOVED”||f?.changeType===”DELETED”)&&(t=5),”HIDE”===s.renderMode?e=(0,o.jsx)(aU,{progressiveDiffEntry:s,approximateLineCount:t}):”LAZY_AUTO_LOAD”===s.renderMode?e=(0,o.jsx)(aF,{progressiveDiffEntry:s,approximateLineCount:t}):”EAGER_AUTO_LOAD”===s.renderMode&&(e=(0,o.jsx)(a$,{progressiveDiffEntry:s,approximateLineCount:t})),(0,o.jsxs)(“div”,{role:”region”,id:`diff-${s.pathDigest}`,className:(0,v.$)(aO.A.diffTargetable,aO.A.diff),”data-targeted”:u,children:[(0,o.jsx)(“div”,{className:aO.A.diffHeaderWrapper,children:(0,o.jsx)(aB.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:`#diff-${s.pathDigest}`,canToggleRichDiff:!1,linesAdded:f?.linesAdded??0,linesChanged:f?.linesChanged??0,linesDeleted:f?.linesDeleted??0,newPath:s.path,patchStatus:””,path:s.path,onToggleExpandAllLines:aV.l,onToggleFileCollapsed:aV.l,onToggleDiffDisplay:aV.l,isInSingleFileMode:h})}),e]},`${s.pathDigest}_${s.path}`)}return m?(0,o.jsx)(J.t,{fallback:(0,o.jsx)(aM,{…m}),children:(0,o.jsx)(aE,{changeType:m.status,currentUser:e,diffLines:m.diffLines,diffManuallyExpanded:t,diffSize:m.diffSize,headBranchName:n,headRepoName:i,headRepoOwner:a,helpUrl:m.helpUrl,isBinary:m.isBinary,isSelected:u,isSubmodule:m.isSubmodule,isTooBig:m.isTooBig,linesAdded:m.linesAdded,linesChanged:m.linesChanged,linesDeleted:m.linesDeleted,newCommitOid:m.newCommitOid,newTreeEntry:m.newTreeEntry,objectId:m.objectId,oldCommitOid:m.oldCommitOid,oldTreeEntry:m.oldTreeEntry,path:m.path,pathDigest:m.pathDigest,pullRequestGlobalRelayId:l,repository:d,reviewed:m.reviewed??!1,richDiff:m.richDiff,status:m.status,submodule:m.submodule,truncatedReason:m.truncatedReason})}):(0,o.jsx)(aM,{linesAdded:0,linesChanged:0,linesDeleted:0,path:s.path,pathDigest:s.pathDigest,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”})}(e)}try{aH.displayName||(aH.displayName=”ProgressivePullRequestDiffEntry”)}catch{}try{aq.displayName||(aq.displayName=”ProgressivePullRequestDiffEntryUnmemoized”)}catch{}let aK=(0,d.Z6)()?function(){let e,t=(0,c.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(“div”,{className:”color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column”,children:(0,o.jsxs)(tS.E,{border:!1,spacious:!0,children:[(0,o.jsx)(tS.E.Heading,{children:”No changes to show”}),(0,o.jsx)(tS.E.Description,{children:”This commit does not include any file changes”})]})}),t[0]=e):e=t[0],e}:function(){return(0,o.jsx)(“div”,{className:”color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column”,children:(0,o.jsxs)(tS.E,{border:!1,spacious:!0,children:[(0,o.jsx)(tS.E.Heading,{children:”No changes to show”}),(0,o.jsx)(tS.E.Description,{children:”This commit does not include any file changes”})]})})};try{aK.displayName||(aK.displayName=”EmptyPullRequestBlankSlate”)}catch{}let az=”PullRequestDiffsAnimation-module__wrapper–j5QjR”,aW=”PullRequestDiffsAnimation-module__imageContainer–ISOgX”,aZ=”PullRequestDiffsAnimation-module__image–MMHno”,aQ=”PullRequestDiffsAnimation-module__firstFrameImage–DV3ZK”,aX=”PullRequestDiffsAnimation-module__animatedImage–yjDlC”,aJ=”PullRequestDiffsAnimation-module__reducedMotionImage–cBS3Y”;var aY=n(69895);let a0=n.p+”mona-hifive-first-frame-0d428028d4d7.png”,a1=n.p+”mona-hifive-reduced-motion-3a22d8eb870c.png”,a2=n.p+”mona-hifive-loop-once-8c78f1af57d0.gif”,a3=(0,d.Z6)()?()=>{let e,t,n,i,a,r,s,l,d=(0,c.c)(12),u=(0,aY.j)(),m=(0,y.useRef)(null),f=(0,y.useRef)(null);d[0]!==u?(e=e=>{e?(e=>{let t;if(u)return;let n=new IntersectionObserver((e,n)=>{for(let i of e)i.isIntersecting&&(t=setTimeout(()=>{i.target.style.display=”none”,m.current&&(m.current.style.opacity=”1″),n.unobserve(i.target)},1e3))},{threshold:1});return f.current=n,n.observe(e),()=>{n.disconnect(),t&&clearTimeout(t)}})(e):f.current&&(f.current.disconnect(),f.current=null)},d[0]=u,d[1]=e):e=d[1];let h=e;return d[2]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(“img”,{src:a2,alt:”GIF of two octocats high fiving each other”,className:(0,v.$)(aZ,aX),ref:m}),d[2]=t):t=d[2],d[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,v.$)(aZ,aQ),d[3]=n):n=d[3],d[4]!==h?(i=(0,o.jsx)(“img”,{src:a0,alt:”Two octocats”,className:n,ref:h}),d[4]=h,d[5]=i):i=d[5],d[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,o.jsx)(“img”,{src:a1,alt:”Two octocats high fiving each other”,className:(0,v.$)(aZ,aJ)}),d[6]=a):a=d[6],d[7]!==i?(r=(0,o.jsxs)(“div”,{className:aW,children:[t,i,a]}),d[7]=i,d[8]=r):r=d[8],d[9]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(“span”,{className:”fgColor-muted”,children:”You made it to the end!”}),d[9]=s):s=d[9],d[10]!==r?(l=(0,o.jsxs)(“div”,{className:az,children:[r,s]}),d[10]=r,d[11]=l):l=d[11],l}:()=>{let e=(0,aY.j)(),t=(0,y.useRef)(null),n=(0,y.useRef)(null);return(0,o.jsxs)(“div”,{className:az,children:[(0,o.jsxs)(“div”,{className:aW,children:[(0,o.jsx)(“img”,{src:a2,alt:”GIF of two octocats high fiving each other”,className:(0,v.$)(aZ,aX),ref:t}),(0,o.jsx)(“img”,{src:a0,alt:”Two octocats”,className:(0,v.$)(aZ,aQ),ref:i=>{i?(i=>{let a;if(e)return;let r=new IntersectionObserver((e,n)=>{for(let i of e)i.isIntersecting&&(a=setTimeout(()=>{i.target.style.display=”none”,t.current&&(t.current.style.opacity=”1″),n.unobserve(i.target)},1e3))},{threshold:1});return n.current=r,r.observe(i),()=>{r.disconnect(),a&&clearTimeout(a)}})(i):n.current&&(n.current.disconnect(),n.current=null)}}),(0,o.jsx)(“img”,{src:a1,alt:”Two octocats high fiving each other”,className:(0,v.$)(aZ,aJ)})]}),(0,o.jsx)(“span”,{className:”fgColor-muted”,children:”You made it to the end!”})]})},a4=(0,y.memo)(a3);try{a3.displayName||(a3.displayName=”PullRequestDiffsAnimationComponent”)}catch{}try{a4.displayName||(a4.displayName=”PullRequestDiffsAnimation”)}catch{}let a5=(0,d.Z6)()?function(){let e,t,n,i,a=(0,c.c)(4),r=(0,y.useRef)(!0);a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=new Map,a[0]=e):e=a[0];let s=(0,y.useRef)(e);a[1]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>s.current,a[1]=t):t=a[1];let l=t;a[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(e,t)=>{let{focusPathName:n}=void 0===t?{}:t,i=l().get(e);if(!i)return;let a=i,s=i.querySelector(“button”);n&&(s=i.querySelector(“a”));let o=M.cg?.location.hash.substring(1)??””;if((0,it.yI)(o)){let e=o.split(“-“)[0],t=i.querySelector(`[data-line-anchor=diff-${e}]`);t&&(s=a=t)}else r.current||(a=null);if(a){let e=M.cg?.scrollY??0,t=a.getBoundingClientRect().top+e-57-60;M.cg?.scrollTo({top:t,left:0})}s&&s.focus(),r.current=!1},a[2]=n):n=a[2];let o=n;return a[3]===Symbol.for(“react.memo_cache_sentinel”)?(i={onScrollToAndFocusEntry:o,getTargetableEntriesMap:l},a[3]=i):i=a[3],i}:function(){let e=(0,y.useRef)(!0),t=(0,y.useRef)(new Map),n=(0,y.useCallback)(()=>t.current,[]);return{onScrollToAndFocusEntry:(0,y.useCallback)((t,{focusPathName:i}={})=>{let a=n().get(t);if(!a)return;let r=a,s=a.querySelector(“button”);i&&(s=a.querySelector(“a”));let l=M.cg?.location.hash.substring(1)??””;if((0,it.yI)(l)){let e=l.split(“-“)[0],t=a.querySelector(`[data-line-anchor=diff-${e}]`);t&&(s=r=t)}else e.current||(r=null);if(r){let e=M.cg?.scrollY??0,t=r.getBoundingClientRect().top+e-57-60;M.cg?.scrollTo({top:t,left:0})}s&&s.focus(),e.current=!1},[n]),getTargetableEntriesMap:n}},a6=(0,y.memo)(a8),a7=(0,d.Z6)();function a8(e){return a7?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(37),{currentUser:u,filteredDiffSummaries:m,headBranchName:f,headRepoName:h,headRepoOwner:p,onSetFilterState:g,pullRequestGlobalRelayId:x,repository:b,showPullRequestGroups:v}=e,[j]=(0,y.useState)(!1),C=(0,y.useRef)(null),w=(0,I.$W)(m),N=(0,I.JA)(),{startQueue:S}=(0,I.pV)();d[0]!==S?(t=()=>{S()},n=[S],d[0]=S,d[1]=t,d[2]=n):(t=d[1],n=d[2]),(0,y.useEffect)(t,n);let{onScrollToAndFocusEntry:L,getTargetableEntriesMap:D}=a5(),_=(0,I.qg)(),R=w.length>=15;if(0===_){let e;return d[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(aK,{}),d[3]=e):e=d[3],e}if(0===m.length){let e;return d[4]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(ac,{}),d[4]=e):e=d[4],e}if(d[5]!==N||d[6]!==g||d[7]!==v?(i=v&&N?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(“div”,{className:”f4 text-bold mb-0″,children:[(0,o.jsx)(“span”,{className:”fgColor-accent”,children:(0,o.jsx)(E.A,{href:””,onClick:e=>{e.preventDefault(),g({activeChangeGroupId:void 0})},children:”All files”})}),” “,(0,o.jsx)(“span”,{className:”fgColor-muted text-normal”,children:”/”}),” “,N.name]}),N.description?.trim()?(0,o.jsx)(“p”,{children:N.description}):null]}):null,d[5]=N,d[6]=g,d[7]=v,d[8]=i):i=d[8],d[9]!==u||d[10]!==w||d[11]!==j||d[12]!==D||d[13]!==f||d[14]!==h||d[15]!==p||d[16]!==L||d[17]!==x||d[18]!==b){let e;d[20]!==u||d[21]!==j||d[22]!==D||d[23]!==f||d[24]!==h||d[25]!==p||d[26]!==L||d[27]!==x||d[28]!==b?(e=e=>(0,o.jsx)(“div”,{ref:t=>{let n=D();t?n.set(e.pathDigest,t):n.delete(e.pathDigest)},children:(0,o.jsx)(aH,{currentUser:u,diffManuallyExpanded:j,headBranchName:f,headRepoName:h,headRepoOwner:p,pullRequestGlobalRelayId:x,onScrollToAndFocusEntry:L,progressiveDiffEntry:e,repository:b})},e.pathDigest),d[20]=u,d[21]=j,d[22]=D,d[23]=f,d[24]=h,d[25]=p,d[26]=L,d[27]=x,d[28]=b,d[29]=e):e=d[29],a=w.map(e),d[9]=u,d[10]=w,d[11]=j,d[12]=D,d[13]=f,d[14]=h,d[15]=p,d[16]=L,d[17]=x,d[18]=b,d[19]=a}else a=d[19];return d[30]!==R?(r=R&&(0,o.jsx)(a4,{}),d[30]=R,d[31]=r):r=d[31],d[32]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(ad.nq,{}),d[32]=s):s=d[32],d[33]!==i||d[34]!==a||d[35]!==r?(l=(0,o.jsxs)(“div”,{ref:C,”data-hpc”:!0,”data-testid”:”progressive-diffs-list”,className:”d-flex flex-column gap-3″,children:[i,a,r,s]}),d[33]=i,d[34]=a,d[35]=r,d[36]=l):l=d[36],l}(e):function({currentUser:e,filteredDiffSummaries:t,headBranchName:n,headRepoName:i,headRepoOwner:a,onSetFilterState:r,pullRequestGlobalRelayId:s,repository:l,showPullRequestGroups:d}){let[c,u]=(0,y.useState)(!1),m=(0,y.useRef)(null),f=(0,I.$W)(t),h=(0,I.JA)(),{startQueue:p}=(0,I.pV)();(0,y.useEffect)(()=>{p()},[p]);let{onScrollToAndFocusEntry:g,getTargetableEntriesMap:x}=a5(),b=(0,I.qg)(),v=f.length;return 0===b?(0,o.jsx)(aK,{}):0===t.length?(0,o.jsx)(ac,{}):(0,o.jsxs)(“div”,{ref:m,”data-hpc”:!0,”data-testid”:”progressive-diffs-list”,className:”d-flex flex-column gap-3″,children:[d&&h?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(“div”,{className:”f4 text-bold mb-0″,children:[(0,o.jsx)(“span”,{className:”fgColor-accent”,children:(0,o.jsx)(E.A,{href:””,onClick:e=>{e.preventDefault(),r({activeChangeGroupId:void 0})},children:”All files”})}),” “,(0,o.jsx)(“span”,{className:”fgColor-muted text-normal”,children:”/”}),” “,h.name]}),h.description?.trim()?(0,o.jsx)(“p”,{children:h.description}):null]}):null,f.map(t=>(0,o.jsx)(“div”,{ref:e=>{let n=x();e?n.set(t.pathDigest,e):n.delete(t.pathDigest)},children:(0,o.jsx)(aH,{currentUser:e,diffManuallyExpanded:c,headBranchName:n,headRepoName:i,headRepoOwner:a,pullRequestGlobalRelayId:s,onScrollToAndFocusEntry:g,progressiveDiffEntry:t,repository:l})},t.pathDigest)),v>=15&&(0,o.jsx)(a4,{}),(0,o.jsx)(ad.nq,{})]})}(e)}try{a6.displayName||(a6.displayName=”PullRequestDiffsList”)}catch{}try{a8.displayName||(a8.displayName=”PullRequestDiffsListUnmemoized”)}catch{}var a9=n(51220);let re=”PullRequestVirtualizedDiffRow-module__virtualizedDiffRow–mhuB6″,rt=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(53),{virtualRow:r,virtualizedDiffEntry:s,diffEntry:l,diffSummary:d,scrollMargin:u,measureElement:m,currentUser:f,headBranchName:h,headRepoName:p,headRepoOwner:g,pullRequestGlobalRelayId:x,repository:b}=e,v=(0,I.y)(),y=(0,I.Py)(l?.pathDigest);if(!s)return null;let j=`translateY(${r.start-u}px)`;a[0]!==j?(t={transform:j},a[0]=j,a[1]=t):t=a[1];let C=t;if(“NotLoaded”===s.loadingStatus){let e,t,n,i=s.path??””;if(a[2]!==f.commentsPreference||a[3]!==f.lineSpacing||a[4]!==d||a[5]!==v||a[6]!==i){let t=v(i);e=aA({diffSummary:d,commentPreference:f.commentsPreference,lineSpacingPreference:f.lineSpacing,isCollapsed:t}),a[2]=f.commentsPreference,a[3]=f.lineSpacing,a[4]=d,a[5]=v,a[6]=i,a[7]=e}else e=a[7];let l=e,c=`Loading ${s.path}`,u=`lazy-load-${s.path}`,h=`diff-${s.pathDigest}`;return a[8]!==l||a[9]!==c||a[10]!==u||a[11]!==h?(t=(0,o.jsx)(aP,{ariaLabel:c,testId:u,id:h,approximateDiffHeight:l}),a[8]=l,a[9]=c,a[10]=u,a[11]=h,a[12]=t):t=a[12],a[13]!==m||a[14]!==t||a[15]!==r.index||a[16]!==C?(n=(0,o.jsx)(“div”,{style:C,className:re,ref:m,”data-index”:r.index,children:t}),a[13]=m,a[14]=t,a[15]=r.index,a[16]=C,a[17]=n):n=a[17],n}if(!l)return null;let w=-(r.start-u),N=l.reviewed??!1;return a[18]!==f||a[19]!==l.diffLines||a[20]!==l.diffSize||a[21]!==l.helpUrl||a[22]!==l.isBinary||a[23]!==l.isSubmodule||a[24]!==l.isTooBig||a[25]!==l.linesAdded||a[26]!==l.linesChanged||a[27]!==l.linesDeleted||a[28]!==l.newCommitOid||a[29]!==l.newTreeEntry||a[30]!==l.objectId||a[31]!==l.oldCommitOid||a[32]!==l.oldTreeEntry||a[33]!==l.path||a[34]!==l.pathDigest||a[35]!==l.richDiff||a[36]!==l.status||a[37]!==l.submodule||a[38]!==l.truncatedReason||a[39]!==h||a[40]!==p||a[41]!==g||a[42]!==y||a[43]!==x||a[44]!==b||a[45]!==w||a[46]!==N?(n=(0,o.jsx)(aE,{changeType:l.status,currentUser:f,diffLines:l.diffLines,diffManuallyExpanded:!1,diffSize:l.diffSize,headerStickyOffset:w,headBranchName:h,headRepoName:p,headRepoOwner:g,helpUrl:l.helpUrl,isBinary:l.isBinary,isSelected:y,isSubmodule:l.isSubmodule,isTooBig:l.isTooBig,linesAdded:l.linesAdded,linesChanged:l.linesChanged,linesDeleted:l.linesDeleted,newCommitOid:l.newCommitOid,newTreeEntry:l.newTreeEntry,objectId:l.objectId,oldCommitOid:l.oldCommitOid,oldTreeEntry:l.oldTreeEntry,path:l.path,pathDigest:l.pathDigest,pullRequestGlobalRelayId:x,repository:b,reviewed:N,richDiff:l.richDiff,status:l.status,submodule:l.submodule,truncatedReason:l.truncatedReason}),a[18]=f,a[19]=l.diffLines,a[20]=l.diffSize,a[21]=l.helpUrl,a[22]=l.isBinary,a[23]=l.isSubmodule,a[24]=l.isTooBig,a[25]=l.linesAdded,a[26]=l.linesChanged,a[27]=l.linesDeleted,a[28]=l.newCommitOid,a[29]=l.newTreeEntry,a[30]=l.objectId,a[31]=l.oldCommitOid,a[32]=l.oldTreeEntry,a[33]=l.path,a[34]=l.pathDigest,a[35]=l.richDiff,a[36]=l.status,a[37]=l.submodule,a[38]=l.truncatedReason,a[39]=h,a[40]=p,a[41]=g,a[42]=y,a[43]=x,a[44]=b,a[45]=w,a[46]=N,a[47]=n):n=a[47],a[48]!==m||a[49]!==n||a[50]!==r.index||a[51]!==C?(i=(0,o.jsx)(“div”,{style:C,className:re,ref:m,”data-index”:r.index,children:n}),a[48]=m,a[49]=n,a[50]=r.index,a[51]=C,a[52]=i):i=a[52],i}:function({virtualRow:e,virtualizedDiffEntry:t,diffEntry:n,diffSummary:i,scrollMargin:a,measureElement:r,currentUser:s,headBranchName:l,headRepoName:d,headRepoOwner:c,pullRequestGlobalRelayId:u,repository:m}){let f=(0,I.y)(),h=(0,I.Py)(n?.pathDigest);if(!t)return null;let p={transform:`translateY(${e.start-a}px)`};if(“NotLoaded”===t.loadingStatus){let n=f(t.path??””),a=aA({diffSummary:i,commentPreference:s.commentsPreference,lineSpacingPreference:s.lineSpacing,isCollapsed:n});return(0,o.jsx)(“div”,{style:p,className:re,ref:r,”data-index”:e.index,children:(0,o.jsx)(aP,{ariaLabel:`Loading ${t.path}`,testId:`lazy-load-${t.path}`,id:`diff-${t.pathDigest}`,approximateDiffHeight:a})})}return n?(0,o.jsx)(“div”,{style:p,className:re,ref:r,”data-index”:e.index,children:(0,o.jsx)(aE,{changeType:n.status,currentUser:s,diffLines:n.diffLines,diffManuallyExpanded:!1,diffSize:n.diffSize,headerStickyOffset:-(e.start-a),headBranchName:l,headRepoName:d,headRepoOwner:c,helpUrl:n.helpUrl,isBinary:n.isBinary,isSelected:h,isSubmodule:n.isSubmodule,isTooBig:n.isTooBig,linesAdded:n.linesAdded,linesChanged:n.linesChanged,linesDeleted:n.linesDeleted,newCommitOid:n.newCommitOid,newTreeEntry:n.newTreeEntry,objectId:n.objectId,oldCommitOid:n.oldCommitOid,oldTreeEntry:n.oldTreeEntry,path:n.path,pathDigest:n.pathDigest,pullRequestGlobalRelayId:u,repository:m,reviewed:n.reviewed??!1,richDiff:n.richDiff,status:n.status,submodule:n.submodule,truncatedReason:n.truncatedReason})}):null});try{rt.displayName||(rt.displayName=”MemoizedVirtualizedDiffRow”)}catch{}var rn=n(56092);function ri({basePath:e,currentUser:t,filteredDiffSummaries:n,headBranchName:i,headRepoName:a,headRepoOwner:r,onSetFilterState:s,pullRequestGlobalRelayId:l,repository:d,showPullRequestGroups:c}){let u=(0,y.useRef)(null),[m,h]=(0,y.useState)(0),p=(0,I.$W)(n),g=(0,I.JA)(),{startQueue:x,loadMore:b}=(0,I.pV)(),v=(0,I.qX)(),j=(0,I.qg)(),C=(0,I.l0)(),w=(0,I.HZ)(),N=p.length,S=(0,I.y)();(0,y.useEffect)(()=>{x()},[x]);let L=(0,y.useCallback)(e=>{let n=p[e];if(!n)return 0;let i=C[n.path??””],a=S(n.path??””);return aA({diffSummary:i,commentPreference:t?.commentsPreference??f.sI.Visible,lineSpacingPreference:t?.lineSpacing??f.Ud.Relaxed,isCollapsed:a})},[p,C,S,t?.commentsPreference,t?.lineSpacing]),D=(0,y.useCallback)(e=>p[e]?.pathDigest??e,[p]);(0,y.useEffect)(()=>{x()},[x]),(0,y.useEffect)(()=>{u.current&&h(u.current.offsetTop)},[]);let _=(0,a9.XW)({count:p.length,estimateSize:L,getItemKey:D,overscan:5,scrollMargin:m,gap:16}),R=_.getVirtualItems(),k=(0,y.useMemo)(()=>{let e=new Map;for(let[t,n]of p.entries())e.set(n.pathDigest,t);return e},[p]),A=(0,y.useMemo)(()=>{for(let e of R){let t=p[e.index];if(t?.loadingStatus===”NotLoaded”)return e.index}return -1},[R,p]),T=(0,y.useRef)(null);return((0,y.useEffect)(()=>{let e=v();if(!e){T.current=null;return}if(T.current===e)return;let t=k.get(e);if(void 0===t)return;let n=p[t];n?.loadingStatus===”NotLoaded”?b(n):((0,rn.H)(()=>{_.scrollToIndex(t)}),T.current=e)},[v,k,p,b,_]),(0,y.useEffect)(()=>{if(-1===A)return;let e=p[A];e&&b(e)},[A,p,b]),0===j)?(0,o.jsx)(aK,{}):0===p.length?(0,o.jsx)(ac,{}):(0,o.jsxs)(“div”,{ref:u,”data-hpc”:!0,”data-testid”:”virtualized-diffs-list”,className:”d-flex flex-column gap-3″,children:[c&&g?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(“div”,{className:”f4 text-bold mb-0″,children:[(0,o.jsx)(“span”,{className:”fgColor-accent”,children:(0,o.jsx)(E.A,{href:””,onClick:e=>{e.preventDefault(),s({activeChangeGroupId:void 0})},children:”All files”})}),” “,(0,o.jsx)(“span”,{className:”fgColor-muted text-normal”,children:”/”}),” “,g.name]}),g.description?.trim()?(0,o.jsx)(“p”,{children:g.description}):null]}):null,(0,o.jsx)(“div”,{className:”PullRequestVirtualizedDiffsList-module__virtualized-diff-row–khMB_”,style:{height:`${_.getTotalSize()}px`},children:R.map(n=>{let s=p[n.index];return(0,o.jsx)(rt,{virtualRow:n,virtualizedDiffEntry:s,diffEntry:w[s?.path??””],diffSummary:C[s?.path??””],scrollMargin:_.options.scrollMargin,measureElement:_.measureElement,basePath:e,currentUser:t,headBranchName:i,headRepoName:a,headRepoOwner:r,pullRequestGlobalRelayId:l,repository:d},n.key)})}),N>=15&&(0,o.jsx)(a4,{}),(0,o.jsx)(ad.nq,{})]})}try{ri.displayName||(ri.displayName=”PullRequestVirtualizedDiffsList”)}catch{}var ra=n(48926),rr=n(43147),rs=n(13071),rl=n(3536),ro=n(66108);let rd=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,g,x,b,v,y,j,C,w,N,L,D,I,_=(0,c.c)(79),{commit:R,pullRequest:A,commits:T,repository:O}=e;_[0]!==T?(t=void 0===T?[]:T,_[0]=T,_[1]=t):t=_[1];let P=t,{helpUrl:F}=(0,aL.X)();e:{let e,t,i;if(0===P.length){let e;_[2]===Symbol.for(“react.memo_cache_sentinel”)?(e={prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1},_[2]=e):e=_[2],n=e;break e}let a=R.oid,r=P.findIndex(e=>e.oid===a);if(-1===r){let e;_[3]===Symbol.for(“react.memo_cache_sentinel”)?(e={prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1},_[3]=e):e=_[3],n=e;break e}let s=r>0?P[r-1]:null,l=r$&&V($),”pull-request-files-changed:go-to-next-commit”:()=>M&&V(M)}}),_[70]=B,_[71]=V,_[72]=M,_[73]=$,_[74]=D):D=_[74],_[75]!==f||_[76]!==L||_[77]!==D?(I=(0,o.jsxs)(“div”,{className:”d-flex flex-column border rounded-2 overflow-hidden mb-3″,children:[f,L,D]}),_[75]=f,_[76]=L,_[77]=D,_[78]=I):I=_[78],I}:function({commit:e,pullRequest:t,commits:n=[],repository:i}){let{helpUrl:a}=(0,aL.X)(),{prevCommitUrl:r,nextCommitUrl:s,canNavigate:l}=(0,y.useMemo)(()=>{if(0===n.length)return{prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1};let a=e.oid,r=n.findIndex(e=>e.oid===a);if(-1===r)return{prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1};let s=r>0?n[r-1]:null,l=rr&&d(r),”pull-request-files-changed:go-to-next-commit”:()=>s&&d(s)}})]})};try{rd.displayName||(rd.displayName=”PullRequestCommitHeader”)}catch{}let rc=(0,d.Z6)()?function(){let e,t,n=(0,c.c)(3),{handleHashUpdate:i}=(0,I.Lh)();n[0]!==i?(e=()=>{let e=()=>{i()};return i(),window.addEventListener(“hashchange”,e),()=>{window.removeEventListener(“hashchange”,e)}},t=[i],n[0]=i,n[1]=e,n[2]=t):(e=n[1],t=n[2]),(0,y.useEffect)(e,t)}:function(){let{handleHashUpdate:e}=(0,I.Lh)();(0,y.useEffect)(()=>{let t=()=>{e()};return e(),window.addEventListener(“hashchange”,t),()=>{window.removeEventListener(“hashchange”,t)}},[e])};var ru=n(21132);let rm=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(68),{diffEntryPathDigest:u,currentUser:m,diffManuallyExpanded:f,filteredDiffSummaries:h,headBranchName:p,headRepoName:g,headRepoOwner:x,pullRequestGlobalRelayId:b,repository:j,onScrollToAndFocusEntry:C}=e,w=(0,I.m9)()||u,N=(0,I.mY)();if(d[0]!==w||d[1]!==N){let e;d[3]!==w?(e=e=>e.pathDigest===w,d[3]=w,d[4]=e):e=d[4],t=N.find(e),d[0]=w,d[1]=N,d[2]=t}else t=d[2];let S=t,L=(0,I.Fm)(S?.path||””),D=S?.path||””,_=(0,I.jT)(D),R=(0,I.j5)(),k=(0,y.useRef)(!1);d[5]!==C||d[6]!==S?.loadingStatus||d[7]!==w?(n=()=>{k.current||S?.loadingStatus===ru.s.Loaded&&(C(w,{focusPathName:!0}),k.current=!0)},d[5]=C,d[6]=S?.loadingStatus,d[7]=w,d[8]=n):n=d[8];let A=S?.loadingStatus;if(d[9]!==C||d[10]!==w||d[11]!==A?(i=[C,A,w],d[9]=C,d[10]=w,d[11]=A,d[12]=i):i=d[12],(0,y.useEffect)(n,i),!h.some(e=>e.path===D)){let e;return d[13]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(ac,{}),d[13]=e):e=d[13],e}if(S&&S.loadingStatus!==ru.s.Loaded){let e,t,n,i,a=`Loading ${D}`,r=`eager-load-${D}`,s=`diff-${D}`;d[14]!==a||d[15]!==r||d[16]!==s?(e=(0,o.jsx)(aP,{ariaLabel:a,testId:r,approximateLineCount:5,id:s}),d[14]=a,d[15]=r,d[16]=s,d[17]=e):e=d[17];let l=e,c=`diff-${D}`;d[18]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,v.$)(aO.A.diffTargetable,aO.A.diff),d[18]=t):t=d[18];let u=`${w}_${D}`,m=`#diff-${w}`,f=L?.linesAdded??0,h=L?.linesChanged??0,p=L?.linesDeleted??0;return d[19]!==D||d[20]!==R||d[21]!==m||d[22]!==f||d[23]!==h||d[24]!==p?(n=(0,o.jsx)(“div”,{className:aO.A.diffHeaderWrapper,children:(0,o.jsx)(aB.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:m,canToggleRichDiff:!1,linesAdded:f,linesChanged:h,linesDeleted:p,newPath:D,patchStatus:””,path:D,onToggleExpandAllLines:aV.l,onToggleFileCollapsed:aV.l,onToggleDiffDisplay:aV.l,isInSingleFileMode:R})}),d[19]=D,d[20]=R,d[21]=m,d[22]=f,d[23]=h,d[24]=p,d[25]=n):n=d[25],d[26]!==l||d[27]!==c||d[28]!==u||d[29]!==n?(i=(0,o.jsxs)(“div”,{role:”region”,id:c,className:t,”data-targeted”:!1,”data-hpc”:!0,children:[n,l]},u),d[26]=l,d[27]=c,d[28]=u,d[29]=n,d[30]=i):i=d[30],i}if(!_){let e;return d[31]!==D||d[32]!==u?(e=(0,o.jsx)(aM,{linesAdded:0,linesChanged:0,linesDeleted:0,path:D,pathDigest:u,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”}),d[31]=D,d[32]=u,d[33]=e):e=d[33],e}d[34]!==_?(a=(0,o.jsx)(aM,{…_}),d[34]=_,d[35]=a):a=d[35];let E=_.reviewed??!1;return d[36]!==_.diffLines||d[37]!==_.diffSize||d[38]!==_.helpUrl||d[39]!==_.isBinary||d[40]!==_.isTooBig||d[41]!==_.linesAdded||d[42]!==_.linesChanged||d[43]!==_.linesDeleted||d[44]!==_.newCommitOid||d[45]!==_.newTreeEntry||d[46]!==_.objectId||d[47]!==_.oldCommitOid||d[48]!==_.oldTreeEntry||d[49]!==_.path||d[50]!==_.pathDigest||d[51]!==_.richDiff||d[52]!==_.status||d[53]!==_.submodule||d[54]!==_.truncatedReason||d[55]!==m||d[56]!==f||d[57]!==p||d[58]!==g||d[59]!==x||d[60]!==b||d[61]!==j||d[62]!==E?(r=(0,o.jsx)(aE,{changeType:_.status,currentUser:m,diffLines:_.diffLines,diffManuallyExpanded:f,diffSize:_.diffSize,headBranchName:p,headRepoName:g,headRepoOwner:x,helpUrl:_.helpUrl,isBinary:_.isBinary,isSelected:!1,isTooBig:_.isTooBig,linesAdded:_.linesAdded,linesChanged:_.linesChanged,linesDeleted:_.linesDeleted,newCommitOid:_.newCommitOid,newTreeEntry:_.newTreeEntry,objectId:_.objectId,oldCommitOid:_.oldCommitOid,oldTreeEntry:_.oldTreeEntry,path:_.path,pathDigest:_.pathDigest,pullRequestGlobalRelayId:b,repository:j,reviewed:E,richDiff:_.richDiff,status:_.status,submodule:_.submodule,truncatedReason:_.truncatedReason}),d[36]=_.diffLines,d[37]=_.diffSize,d[38]=_.helpUrl,d[39]=_.isBinary,d[40]=_.isTooBig,d[41]=_.linesAdded,d[42]=_.linesChanged,d[43]=_.linesDeleted,d[44]=_.newCommitOid,d[45]=_.newTreeEntry,d[46]=_.objectId,d[47]=_.oldCommitOid,d[48]=_.oldTreeEntry,d[49]=_.path,d[50]=_.pathDigest,d[51]=_.richDiff,d[52]=_.status,d[53]=_.submodule,d[54]=_.truncatedReason,d[55]=m,d[56]=f,d[57]=p,d[58]=g,d[59]=x,d[60]=b,d[61]=j,d[62]=E,d[63]=r):r=d[63],d[64]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(ad.nq,{}),d[64]=s):s=d[64],d[65]!==a||d[66]!==r?(l=(0,o.jsxs)(J.t,{fallback:a,children:[r,s]}),d[65]=a,d[66]=r,d[67]=l):l=d[67],l}:function({diffEntryPathDigest:e,currentUser:t,diffManuallyExpanded:n,filteredDiffSummaries:i,headBranchName:a,headRepoName:r,headRepoOwner:s,pullRequestGlobalRelayId:l,repository:d,onScrollToAndFocusEntry:c}){let u=(0,I.m9)()||e,m=(0,I.mY)().find(e=>e.pathDigest===u),f=(0,I.Fm)(m?.path||””),h=m?.path||””,p=(0,I.jT)(h),g=(0,I.j5)(),x=(0,y.useRef)(!1);if((0,y.useEffect)(()=>{x.current||m?.loadingStatus===ru.s.Loaded&&(c(u,{focusPathName:!0}),x.current=!0)},[c,m?.loadingStatus,u]),!i.some(e=>e.path===h))return(0,o.jsx)(ac,{});if(m&&m.loadingStatus!==ru.s.Loaded){let e=(0,o.jsx)(aP,{ariaLabel:`Loading ${h}`,testId:`eager-load-${h}`,approximateLineCount:5,id:`diff-${h}`});return(0,o.jsxs)(“div”,{role:”region”,id:`diff-${h}`,className:(0,v.$)(aO.A.diffTargetable,aO.A.diff),”data-targeted”:!1,”data-hpc”:!0,children:[(0,o.jsx)(“div”,{className:aO.A.diffHeaderWrapper,children:(0,o.jsx)(aB.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:`#diff-${u}`,canToggleRichDiff:!1,linesAdded:f?.linesAdded??0,linesChanged:f?.linesChanged??0,linesDeleted:f?.linesDeleted??0,newPath:h,patchStatus:””,path:h,onToggleExpandAllLines:aV.l,onToggleFileCollapsed:aV.l,onToggleDiffDisplay:aV.l,isInSingleFileMode:g})}),e]},`${u}_${h}`)}return p?(0,o.jsxs)(J.t,{fallback:(0,o.jsx)(aM,{…p}),children:[(0,o.jsx)(aE,{changeType:p.status,currentUser:t,diffLines:p.diffLines,diffManuallyExpanded:n,diffSize:p.diffSize,headBranchName:a,headRepoName:r,headRepoOwner:s,helpUrl:p.helpUrl,isBinary:p.isBinary,isSelected:!1,isTooBig:p.isTooBig,linesAdded:p.linesAdded,linesChanged:p.linesChanged,linesDeleted:p.linesDeleted,newCommitOid:p.newCommitOid,newTreeEntry:p.newTreeEntry,objectId:p.objectId,oldCommitOid:p.oldCommitOid,oldTreeEntry:p.oldTreeEntry,path:p.path,pathDigest:p.pathDigest,pullRequestGlobalRelayId:l,repository:d,reviewed:p.reviewed??!1,richDiff:p.richDiff,status:p.status,submodule:p.submodule,truncatedReason:p.truncatedReason}),(0,o.jsx)(ad.nq,{})]}):(0,o.jsx)(aM,{linesAdded:0,linesChanged:0,linesDeleted:0,path:h,pathDigest:e,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”})});try{rm.displayName||(rm.displayName=”SingleFileModePullRequestDiffEntry”)}catch{}let rf=(0,y.memo)(function({currentUser:e,filteredDiffSummaries:t,headBranchName:n,headRepoName:i,headRepoOwner:a,pullRequestGlobalRelayId:r,repository:s}){let l=(0,I.HZ)(),d=(0,y.useMemo)(()=>Object.values(l??{}).filter(e=>null!==e),[l])[0],c=(0,I.m9)(),{onScrollToAndFocusEntry:u,getTargetableEntriesMap:m}=a5(),f=(0,I.qg)(),h=(0,I.uh)()[0],p=(0,I.zK)(),g=(0,I.mF)(),{navigateToSelectedComment:x,navigateToSelectedAnnotation:b}=(0,I.Lh)(),v=(0,y.useRef)(!0),j=(0,I.mY)().find(e=>e.pathDigest===c),{loadMore:C}=(0,I.pV)(),w=(0,y.useCallback)(()=>{p?x(p):g&&!isNaN(Number(g))?b(Number(g)):c&&j?C(j):!c&&h?.pathDigest&&(0,L.Zu)(`diff-${h.pathDigest}`)},[h?.pathDigest,C,b,x,g,p,c,j]);if((0,y.useEffect)(()=>{v.current&&(w(),v.current=!1)},[]),0===f)return(0,o.jsx)(aK,{});if(0===t.length)return(0,o.jsx)(ac,{});let N=c||d?.pathDigest||h?.pathDigest;return N?(0,o.jsx)(“div”,{ref:e=>{let t=m();e?t.set(N,e):t.delete(N)},children:(0,o.jsx)(rm,{diffEntryPathDigest:N,currentUser:e,diffManuallyExpanded:!1,filteredDiffSummaries:t,headBranchName:n,headRepoName:i,headRepoOwner:a,pullRequestGlobalRelayId:r,repository:s,onScrollToAndFocusEntry:u})}):null});try{rf.displayName||(rf.displayName=”SingleFileModeDiffEntryNavigator”)}catch{}let rh=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(20),{basePath:r,baseSha:s,forceUnifiedView:l,headSha:d,initialData:u,treeCollapsedByDefault:m,treeEnableInlineCompactMode:f,userCanComment:h,useChangeGroups:p,useInlineComments:g,useEditOptions:x,useFileTree:b,useAdvancedToolbar:v,useBasicToolbar:y}=e,j=p??!1,C=g??!1,w=x??!1,N=b??!1,S=v??!1,L=y??!1,D=h??!0,I=l??!1,_=m??!1,R=f??!1;a[0]!==j||a[1]!==R||a[2]!==C||a[3]!==w||a[4]!==N||a[5]!==S||a[6]!==L||a[7]!==D||a[8]!==I||a[9]!==_?(t={useChangeGroups:j,useInlineComments:C,useEditOptions:w,useFileTree:N,useAdvancedToolbar:S,useBasicToolbar:L,userCanComment:D,forceUnifiedView:I,treeCollapsedByDefault:_,treeEnableInlineCompactMode:R},a[0]=j,a[1]=R,a[2]=C,a[3]=w,a[4]=N,a[5]=S,a[6]=L,a[7]=D,a[8]=I,a[9]=_,a[10]=t):t=a[10];let k=t,A=u?u.pullRequest.comparison.headOid:d,E=u?u.pullRequest.comparison.baseOid:s;if(!A)throw Error(“DiffComparisonViewer: headSha is required if initialData is not provided”);let T=!u;a[11]!==r||a[12]!==E||a[13]!==A||a[14]!==T?(n={basePath:r,headSha:A,baseSha:E,shouldFetch:T},a[11]=r,a[12]=E,a[13]=A,a[14]=T,a[15]=n):n=a[15];let{data:O,isLoading:P}=i3(n),F=u??O;return a[16]!==k||a[17]!==F||a[18]!==P?(i=(0,o.jsx)(o.Fragment,{children:F&&!P?(0,o.jsx)(i1.Kg,{basePageDataUrl:F.pullRequest.pathName,children:(0,o.jsx)(iY.v,{initData:F,children:(0,o.jsx)(rp,{…F,configOpts:k})})}):(0,o.jsxs)(“div”,{className:”width-full”,children:[(0,o.jsx)(“div”,{className:iX,children:(0,o.jsx)(“div”,{className:iJ,children:(0,o.jsx)(as.O,{width:”lg”,height:”lg”,variant:”rounded”})})}),(0,o.jsxs)(“div”,{className:”d-flex flex-column gap-3 p-3″,children:[(0,o.jsx)(al,{lines:4}),(0,o.jsx)(al,{lines:8}),(0,o.jsx)(al,{lines:5})]})]})}),a[16]=k,a[17]=F,a[18]=P,a[19]=i):i=a[19],i}:function({basePath:e,baseSha:t,forceUnifiedView:n,headSha:i,initialData:a,treeCollapsedByDefault:r,treeEnableInlineCompactMode:s,userCanComment:l,useChangeGroups:d,useInlineComments:c,useEditOptions:u,useFileTree:m,useAdvancedToolbar:f,useBasicToolbar:h}){let p=(0,y.useMemo)(()=>({useChangeGroups:d??!1,useInlineComments:c??!1,useEditOptions:u??!1,useFileTree:m??!1,useAdvancedToolbar:f??!1,useBasicToolbar:h??!1,userCanComment:l??!0,forceUnifiedView:n??!1,treeCollapsedByDefault:r??!1,treeEnableInlineCompactMode:s??!1}),[d,c,u,m,f,h,l,n,r,s]),g=a?a.pullRequest.comparison.headOid:i,x=a?a.pullRequest.comparison.baseOid:t;if(!g)throw Error(“DiffComparisonViewer: headSha is required if initialData is not provided”);let{data:b,isLoading:v}=i3({basePath:e,headSha:g,baseSha:x,shouldFetch:!a}),j=a??b;return(0,o.jsx)(o.Fragment,{children:j&&!v?(0,o.jsx)(i1.Kg,{basePageDataUrl:j.pullRequest.pathName,children:(0,o.jsx)(iY.v,{initData:j,children:(0,o.jsx)(rp,{…j,configOpts:p})})}):(0,o.jsxs)(“div”,{className:”width-full”,children:[(0,o.jsx)(“div”,{className:iX,children:(0,o.jsx)(“div”,{className:iJ,children:(0,o.jsx)(as.O,{width:”lg”,height:”lg”,variant:”rounded”})})}),(0,o.jsxs)(“div”,{className:”d-flex flex-column gap-3 p-3″,children:[(0,o.jsx)(al,{lines:4}),(0,o.jsx)(al,{lines:8}),(0,o.jsx)(al,{lines:5})]})]})})},rp=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,j,C,w,N,S,L,R,k,A,E,T,O,P,F,$,M,B,V,U=(0,c.c)(122),{codeowners:H,commit:G,commits:q,configOpts:K,diffSummaries:z,fileFilter:W,pullRequest:Z,repository:Q,markers:X,pageLimits:J,urls:Y,user:ee,isSingleFileMode:et,virtualizeDiffEntries:en}=e;iO(X,z),(0,g.L)(!0),rc();let ei=rb(ee);U[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,h.G7)(“pull_request_files_virtualization_without_min_threshold”),U[0]=t):t=U[0];let ea=t;U[1]===Symbol.for(“react.memo_cache_sentinel”)?(n={onSuccess:rx,onError:rg},U[1]=n):n=U[1];let{mutate:er}=(0,u.U)(n),{data:es}=(0,m.ID)(ei);U[2]!==es?.commentsPreference||U[3]!==er?(i=()=>{er({commentsPreference:es?.commentsPreference===f.sI.Visible?f.sI.Collapsed:f.sI.Visible})},U[2]=es?.commentsPreference,U[3]=er,U[4]=i):i=U[4],es?.commentsPreference;let el=i;es?.commentsPreference,es?.lineSpacing,es?.splitPreference;let eo=ee.currentUserAvatarUrl||””,ed=ee.currentUserLogin||””,ec=K.forceUnifiedView?”unified”:es?.splitPreference??”unified”,eu=K.useInlineComments??!1,em=K.useEditOptions??!1,ef=es?.lineSpacing??”relaxed”,eh=K.userCanComment&&ee.canComment,ep=es?.commentsPreference??”visible”;U[5]!==eh||U[6]!==ep||U[7]!==eo||U[8]!==ed||U[9]!==ec||U[10]!==eu||U[11]!==em||U[12]!==ef||U[13]!==ee.canApplySuggestion||U[14]!==ee.hasCopilotAccess||U[15]!==ee.tabSize?(a={avatarURL:eo,login:ed,tabSize:ee.tabSize,splitPreference:ec,shouldDisplayComments:eu,shouldDisplayEditOptions:em,lineSpacing:ef,canComment:eh,canApplySuggestion:ee.canApplySuggestion,commentsPreference:ep,hasCopilotAccess:ee.hasCopilotAccess},U[5]=eh,U[6]=ep,U[7]=eo,U[8]=ed,U[9]=ec,U[10]=eu,U[11]=em,U[12]=ef,U[13]=ee.canApplySuggestion,U[14]=ee.hasCopilotAccess,U[15]=ee.tabSize,U[16]=a):a=U[16];let eg=a,{updateCommentsPreference:ex}=(0,I.CQ)();U[17]!==es?.commentsPreference||U[18]!==ex?(r=()=>{ex(es?.commentsPreference??f.sI.Visible)},U[17]=es?.commentsPreference,U[18]=ex,U[19]=r):r=U[19];let eb=es?.commentsPreference;U[20]!==eb||U[21]!==ex?(s=[eb,ex],U[20]=eb,U[21]=ex,U[22]=s):s=U[22],(0,y.useEffect)(r,s);let{splitPagePaneHidden:ev,treeViewState:ey,treeToggleElement:ej,collapseMobileTree:eC,expandTree:ew}=ae(eU,ee.isFileTreeExpanded&&!K.treeCollapsedByDefault,K.treeEnableInlineCompactMode,eg);U[23]!==H||U[24]!==Z.pathName?(l={basePath:Z.pathName},H&&(l.initialData=H),U[23]=H,U[24]=Z.pathName,U[25]=l):l=U[25];let{data:eN}=(0,D.dG)(l),{setCodeowners:eS}=(0,I.wh)();U[26]!==eN||U[27]!==eS?(d=()=>{eS(eN)},j=[eN,eS],U[26]=eN,U[27]=eS,U[28]=d,U[29]=j):(d=U[28],j=U[29]),(0,y.useEffect)(d,j);let eL=(0,I.qg)(),eD=ea||en,eI=(0,I.I8)(),{updateDiffFilter:e_}=(0,I.or)();U[30]!==W.initialState||U[31]!==e_?(C=()=>{e_({…W.initialState,unselectedFileExtensions:new Set(W.initialState.unselectedFileExtensions)})},w=[e_,W.initialState],U[30]=W.initialState,U[31]=e_,U[32]=C,U[33]=w):(C=U[32],w=U[33]),(0,y.useEffect)(C,w);let eR=(0,I.mU)();U[34]!==e_?(N=e=>{e_(e,!0)},U[34]=e_,U[35]=N):N=U[35];let ek=N;U[36]!==eC||U[37]!==ey.compactMode?(S=()=>{“none”!==ey.compactMode&&eC()},U[36]=eC,U[37]=ey.compactMode,U[38]=S):S=U[38];let eA=S,eE=(0,y.useRef)(null),eT=”expanded”!==ey.wideMode?”small”:”medium”;U[39]!==eg.login||U[40]!==eI||U[41]!==W.menuOptions||U[42]!==ek||U[43]!==Z.pathName||U[44]!==eT?(L=(0,o.jsx)(_,{ref:eE,basePath:Z.pathName,fileFilterMenuOptions:W.menuOptions,fileFilterState:eI,setFileFilterState:ek,viewerLogin:eg.login,filterSize:eT}),U[39]=eg.login,U[40]=eI,U[41]=W.menuOptions,U[42]=ek,U[43]=Z.pathName,U[44]=eT,U[45]=L):L=U[45];let eO=L,eP=(0,I.gt)(),eF=z.length>0,e$=K.useChangeGroups&&eP&&eF;U[46]!==e$?(R={changeGroupsEnabled:e$},U[46]=e$,U[47]=R):R=U[47],ar(R);let{aliveChannel:eM,bannersData:eV}=(0,i0.o)();U[48]!==ew?(k=()=>{ew(),window.requestAnimationFrame(()=>{eE.current?.focus()})},U[48]=ew,U[49]=k):k=U[49];let eG=k;U[50]!==eG||U[51]!==el?(A=(0,o.jsx)(p.ak,{commands:{“pull-request-files-changed:collapse-expand-comments”:el,”pull-request-files-changed:focus-file-tree-filter”:eG}}),U[50]=eG,U[51]=el,U[52]=A):A=U[52],U[53]!==eO||U[54]!==eM||U[55]!==e$||U[56]!==eV||U[57]!==eC||U[58]!==q||U[59]!==K.useAdvancedToolbar||U[60]!==K.useBasicToolbar||U[61]!==eL||U[62]!==eR||U[63]!==eA||U[64]!==ek||U[65]!==J||U[66]!==Z||U[67]!==Q||U[68]!==ej||U[69]!==ey.compactMode||U[70]!==ey.wideMode||U[71]!==Y||U[72]!==ee?(E=K.useAdvancedToolbar||K.useBasicToolbar?(0,o.jsxs)(o.Fragment,{children:[K.useAdvancedToolbar&&(0,o.jsx)(iA,{changeGroupsPreferenceAvailable:e$,commits:q,currentUserLogin:ee.currentUserLogin,fileFilter:eO,isFileTreeExpanded:”expanded”===ey.wideMode,lastReviewOid:ee.lastReviewOid,pageLimits:J,pullRequest:Z,repository:Q,shouldShowViewedFilesCount:ee.shouldShowViewedFilesCount,totalFilesCount:eL,treeToggleElement:ej,bannersData:eV,urls:Y,user:ee,aliveChannel:eM}),K.useBasicToolbar&&(0,o.jsx)(i4,{fileFilter:eO,isFileTreeExpanded:”expanded”===ey.wideMode,shouldShowViewedFilesCount:ee.shouldShowViewedFilesCount,totalFilesCount:eL,treeToggleElement:ej,userNotices:ee.userNotices}),”overlay”===ey.compactMode&&(0,o.jsx)(x.l,{onClose:()=>eC(),position:{narrow:”fullscreen”,regular:”left”,wide:”left”},title:”Files”,className:”p-0″,children:(0,o.jsx)(eH,{allowPullRequestGroups:e$,fileFilter:eO,filteredDiffs:eR,onFileSelected:eA,onSetFilterState:ek})})]}):null,U[53]=eO,U[54]=eM,U[55]=e$,U[56]=eV,U[57]=eC,U[58]=q,U[59]=K.useAdvancedToolbar,U[60]=K.useBasicToolbar,U[61]=eL,U[62]=eR,U[63]=eA,U[64]=ek,U[65]=J,U[66]=Z,U[67]=Q,U[68]=ej,U[69]=ey.compactMode,U[70]=ey.wideMode,U[71]=Y,U[72]=ee,U[73]=E):E=U[73],U[74]!==eO||U[75]!==e$||U[76]!==K.useBasicToolbar||U[77]!==K.useFileTree||U[78]!==eR||U[79]!==eA||U[80]!==ek||U[81]!==ev||U[82]!==ey.compactMode||U[83]!==ey.wideMode?(T=K.useFileTree?(0,o.jsx)(b.O7.Pane,{position:”start”,sticky:!0,offsetHeader:K.useBasicToolbar?”50px”:”60px”,”aria-label”:”File tree”,padding:”none”,className:(0,v.$)(iG,ev&&iM,”expanded”===ey.wideMode&&iq,”collapsed”===ey.wideMode&&iK,”none”===ey.compactMode&&iz,”overlay”===ey.compactMode&&iW,”inline”===ey.compactMode&&iZ,iV),divider:{regular:”inline”===ey.compactMode?”none”:”line”,narrow:”none”},widthStorageKey:”diff-tree-pane-width”,resizable:”inline”!==ey.compactMode,children:(0,o.jsx)(eH,{allowPullRequestGroups:e$,className:(0,v.$)(eB,iB),fileFilter:eO,filteredDiffs:eR,onFileSelected:eA,onSetFilterState:ek})}):null,U[74]=eO,U[75]=e$,U[76]=K.useBasicToolbar,U[77]=K.useFileTree,U[78]=eR,U[79]=eA,U[80]=ek,U[81]=ev,U[82]=ey.compactMode,U[83]=ey.wideMode,U[84]=T):T=U[84];let eq=”inline”===ey.compactMode;U[85]!==eq?(O={narrow:!1,regular:eq},U[85]=eq,U[86]=O):O=U[86];let eK=”expanded”===ey.wideMode&&iq;return U[87]!==eK?(P=(0,v.$)(iQ,eK),U[87]=eK,U[88]=P):P=U[88],U[89]!==G||U[90]!==q||U[91]!==Z||U[92]!==Q?(F=G&&(0,o.jsx)(rd,{commit:G,pullRequest:Z,commits:q,repository:Q}),U[89]=G,U[90]=q,U[91]=Z,U[92]=Q,U[93]=F):F=U[93],U[94]!==eD||U[95]!==J||U[96]!==Q||U[97]!==Y?($=(0,o.jsx)(eQ,{pageLimits:J,repository:Q,urls:Y,isDiffVirtualizationEnabled:eD}),U[94]=eD,U[95]=J,U[96]=Q,U[97]=Y,U[98]=$):$=U[98],U[99]!==eg||U[100]!==eR||U[101]!==ek||U[102]!==eD||U[103]!==et||U[104]!==Z.globalRelayId||U[105]!==Z.headBranch||U[106]!==Z.headRepositoryName||U[107]!==Z.headRepositoryOwnerLogin||U[108]!==Z.pathName||U[109]!==Q?(M=eD?(0,o.jsx)(ri,{basePath:Z.pathName,currentUser:eg,headBranchName:Z.headBranch,headRepoName:Z.headRepositoryName,headRepoOwner:Z.headRepositoryOwnerLogin,onSetFilterState:ek,pullRequestGlobalRelayId:Z.globalRelayId,filteredDiffSummaries:eR,repository:Q,showPullRequestGroups:!0}):(0,o.jsx)(o.Fragment,{children:et?(0,o.jsx)(rf,{currentUser:eg,filteredDiffSummaries:eR,headBranchName:Z.headBranch,headRepoName:Z.headRepositoryName,headRepoOwner:Z.headRepositoryOwnerLogin,pullRequestGlobalRelayId:Z.globalRelayId,repository:Q}):(0,o.jsx)(a6,{currentUser:eg,headBranchName:Z.headBranch,headRepoName:Z.headRepositoryName,headRepoOwner:Z.headRepositoryOwnerLogin,onSetFilterState:ek,pullRequestGlobalRelayId:Z.globalRelayId,filteredDiffSummaries:eR,repository:Q,showPullRequestGroups:!0})}),U[99]=eg,U[100]=eR,U[101]=ek,U[102]=eD,U[103]=et,U[104]=Z.globalRelayId,U[105]=Z.headBranch,U[106]=Z.headRepositoryName,U[107]=Z.headRepositoryOwnerLogin,U[108]=Z.pathName,U[109]=Q,U[110]=M):M=U[110],U[111]!==O||U[112]!==P||U[113]!==F||U[114]!==$||U[115]!==M?(B=(0,o.jsxs)(b.O7.Content,{as:”div”,width:”full”,hidden:O,padding:”none”,className:P,children:[F,$,M]}),U[111]=O,U[112]=P,U[113]=F,U[114]=$,U[115]=M,U[116]=B):B=U[116],U[117]!==A||U[118]!==E||U[119]!==T||U[120]!==B?(V=(0,o.jsxs)(o.Fragment,{children:[A,E,T,B]}),U[117]=A,U[118]=E,U[119]=T,U[120]=B,U[121]=V):V=U[121],V}:function({codeowners:e,commit:t,commits:n,configOpts:i,diffSummaries:a,fileFilter:r,pullRequest:s,repository:l,markers:d,pageLimits:c,urls:j,user:C,isSingleFileMode:w,virtualizeDiffEntries:N}){iO(d,a),(0,g.L)(!0),rc();let S=rb(C),L=(0,h.G7)(“pull_request_files_virtualization_without_min_threshold”),{mutate:R}=(0,u.U)({onSuccess:()=>{},onError:()=>{}}),{data:k}=(0,m.ID)(S),A=(0,y.useCallback)(()=>{R({commentsPreference:k?.commentsPreference===f.sI.Visible?f.sI.Collapsed:f.sI.Visible})},[k?.commentsPreference,R]),E=(0,y.useMemo)(()=>({avatarURL:C.currentUserAvatarUrl||””,login:C.currentUserLogin||””,tabSize:C.tabSize,splitPreference:i.forceUnifiedView?”unified”:k?.splitPreference??”unified”,shouldDisplayComments:i.useInlineComments??!1,shouldDisplayEditOptions:i.useEditOptions??!1,lineSpacing:k?.lineSpacing??”relaxed”,canComment:i.userCanComment&&C.canComment,canApplySuggestion:C.canApplySuggestion,commentsPreference:k?.commentsPreference??”visible”,hasCopilotAccess:C.hasCopilotAccess}),[i.forceUnifiedView,i.useEditOptions,i.useInlineComments,i.userCanComment,k?.commentsPreference,k?.lineSpacing,k?.splitPreference,C.canApplySuggestion,C.canComment,C.currentUserAvatarUrl,C.currentUserLogin,C.hasCopilotAccess,C.tabSize]),{updateCommentsPreference:T}=(0,I.CQ)();(0,y.useEffect)(()=>{T(k?.commentsPreference??f.sI.Visible)},[k?.commentsPreference,T]);let{splitPagePaneHidden:O,treeViewState:P,treeToggleElement:F,collapseMobileTree:$,expandTree:M}=ae(eU,C.isFileTreeExpanded&&!i.treeCollapsedByDefault,i.treeEnableInlineCompactMode,E),B={basePath:s.pathName};e&&(B.initialData=e);let{data:V}=(0,D.dG)(B),{setCodeowners:U}=(0,I.wh)();(0,y.useEffect)(()=>{U(V)},[V,U]);let H=(0,I.qg)(),G=L||N,q=(0,I.I8)(),{updateDiffFilter:K}=(0,I.or)();(0,y.useEffect)(()=>{K({…r.initialState,unselectedFileExtensions:new Set(r.initialState.unselectedFileExtensions)})},[K,r.initialState]);let z=(0,I.mU)(),W=(0,y.useCallback)(e=>{K(e,!0)},[K]),Z=(0,y.useCallback)(()=>{“none”!==P.compactMode&&$()},[$,P.compactMode]),Q=(0,y.useRef)(null),X=(0,y.useMemo)(()=>(0,o.jsx)(_,{ref:Q,basePath:s.pathName,fileFilterMenuOptions:r.menuOptions,fileFilterState:q,setFileFilterState:W,viewerLogin:E.login,filterSize:”expanded”!==P.wideMode?”small”:”medium”}),[s.pathName,r.menuOptions,q,W,E.login,P.wideMode]),J=(0,I.gt)(),Y=a.length>0,ee=i.useChangeGroups&&J&&Y;ar({changeGroupsEnabled:ee});let{aliveChannel:et,bannersData:en}=(0,i0.o)(),ei=(0,y.useCallback)(()=>{M(),window.requestAnimationFrame(()=>{Q.current?.focus()})},[M]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.ak,{commands:{“pull-request-files-changed:collapse-expand-comments”:A,”pull-request-files-changed:focus-file-tree-filter”:ei}}),i.useAdvancedToolbar||i.useBasicToolbar?(0,o.jsxs)(o.Fragment,{children:[i.useAdvancedToolbar&&(0,o.jsx)(iA,{changeGroupsPreferenceAvailable:ee,commits:n,currentUserLogin:C.currentUserLogin,fileFilter:X,isFileTreeExpanded:”expanded”===P.wideMode,lastReviewOid:C.lastReviewOid,pageLimits:c,pullRequest:s,repository:l,shouldShowViewedFilesCount:C.shouldShowViewedFilesCount,totalFilesCount:H,treeToggleElement:F,bannersData:en,urls:j,user:C,aliveChannel:et}),i.useBasicToolbar&&(0,o.jsx)(i4,{fileFilter:X,isFileTreeExpanded:”expanded”===P.wideMode,shouldShowViewedFilesCount:C.shouldShowViewedFilesCount,totalFilesCount:H,treeToggleElement:F,userNotices:C.userNotices}),”overlay”===P.compactMode&&(0,o.jsx)(x.l,{onClose:()=>$(),position:{narrow:”fullscreen”,regular:”left”,wide:”left”},title:”Files”,className:”p-0″,children:(0,o.jsx)(eH,{allowPullRequestGroups:ee,fileFilter:X,filteredDiffs:z,onFileSelected:Z,onSetFilterState:W})})]}):null,i.useFileTree?(0,o.jsx)(b.O7.Pane,{position:”start”,sticky:!0,offsetHeader:i.useBasicToolbar?”50px”:”60px”,”aria-label”:”File tree”,padding:”none”,className:(0,v.$)(iG,O&&iM,”expanded”===P.wideMode&&iq,”collapsed”===P.wideMode&&iK,”none”===P.compactMode&&iz,”overlay”===P.compactMode&&iW,”inline”===P.compactMode&&iZ,iV),divider:{regular:”inline”===P.compactMode?”none”:”line”,narrow:”none”},widthStorageKey:”diff-tree-pane-width”,resizable:”inline”!==P.compactMode,children:(0,o.jsx)(eH,{allowPullRequestGroups:ee,className:(0,v.$)(eB,iB),fileFilter:X,filteredDiffs:z,onFileSelected:Z,onSetFilterState:W})}):null,(0,o.jsxs)(b.O7.Content,{as:”div”,width:”full”,hidden:{narrow:!1,regular:”inline”===P.compactMode},padding:”none”,className:(0,v.$)(iQ,”expanded”===P.wideMode&&iq),children:[t&&(0,o.jsx)(rd,{commit:t,pullRequest:s,commits:n,repository:l}),(0,o.jsx)(eQ,{pageLimits:c,repository:l,urls:j,isDiffVirtualizationEnabled:G}),G?(0,o.jsx)(ri,{basePath:s.pathName,currentUser:E,headBranchName:s.headBranch,headRepoName:s.headRepositoryName,headRepoOwner:s.headRepositoryOwnerLogin,onSetFilterState:W,pullRequestGlobalRelayId:s.globalRelayId,filteredDiffSummaries:z,repository:l,showPullRequestGroups:!0}):(0,o.jsx)(o.Fragment,{children:w?(0,o.jsx)(rf,{currentUser:E,filteredDiffSummaries:z,headBranchName:s.headBranch,headRepoName:s.headRepositoryName,headRepoOwner:s.headRepositoryOwnerLogin,pullRequestGlobalRelayId:s.globalRelayId,repository:l}):(0,o.jsx)(a6,{currentUser:E,headBranchName:s.headBranch,headRepoName:s.headRepositoryName,headRepoOwner:s.headRepositoryOwnerLogin,onSetFilterState:W,pullRequestGlobalRelayId:s.globalRelayId,filteredDiffSummaries:z,repository:l,showPullRequestGroups:!0})})]})]})};function rg(){}function rx(){}let rb=(0,d.Z6)()?function(e){let t,n=(0,c.c)(5),i=(0,m.C0)(e.viewSettings.splitPreference),a=(0,m.Qn)(e.viewSettings.hideWhitespace);return n[0]!==e.viewSettings.commentsPreference||n[1]!==e.viewSettings.lineSpacing||n[2]!==i||n[3]!==a?(t={hideWhitespace:a,splitPreference:i,lineSpacing:e.viewSettings.lineSpacing,commentsPreference:e.viewSettings.commentsPreference},n[0]=e.viewSettings.commentsPreference,n[1]=e.viewSettings.lineSpacing,n[2]=i,n[3]=a,n[4]=t):t=n[4],t}:function(e){let t=(0,m.C0)(e.viewSettings.splitPreference),n=(0,m.Qn)(e.viewSettings.hideWhitespace);return(0,y.useMemo)(()=>({hideWhitespace:n,splitPreference:t,lineSpacing:e.viewSettings.lineSpacing,commentsPreference:e.viewSettings.commentsPreference}),[e.viewSettings.commentsPreference,e.viewSettings.lineSpacing,t,n])},rv=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(7);return a[0]!==e.className?(t=(0,v.$)(i$,e.className),a[0]=e.className,a[1]=t):t=a[1],a[2]!==e.children?(n=(0,o.jsx)(b.O7,{children:e.children}),a[2]=e.children,a[3]=n):n=a[3],a[4]!==t||a[5]!==n?(i=(0,o.jsx)(“div”,{id:i9,className:t,children:n}),a[4]=t,a[5]=n,a[6]=i):i=a[6],i}:function(e){return(0,o.jsx)(“div”,{id:i9,className:(0,v.$)(i$,e.className),children:(0,o.jsx)(b.O7,{children:e.children})})},ry=Object.assign({},{Container:rv,Header:b.O7.Header,Viewer:rh});try{(r=Some).displayName||(r.displayName=”Some”)}catch{}try{(s=Some).displayName||(s.displayName=”Some”)}catch{}try{rh.displayName||(rh.displayName=”BaseDiffComparisonViewer”)}catch{}try{rp.displayName||(rp.displayName=”InternalDiffComparisonViewer”)}catch{}try{(l=FilterFilterComponent).displayName||(l.displayName=”FilterFilterComponent”)}catch{}try{rv.displayName||(rv.displayName=”Container”)}catch{}try{ry.displayName||(ry.displayName=”DiffComparisonViewer”)}catch{}},61219:(e,t,n)=>{n.d(t,{U:()=>ey});var i=n(74848),a=n(68273),r=n(16522),s=n(42118),l=n(26156),o=n(18559),d=n(81156),c=n(63352),u=n(73189),m=n(78809),f=n(73017),h=n(71315),p=n(43258),g=n(38621),x=n(72511),b=n(31021),v=n(34164),y=n(96540),j=n(25407),C=n(94747),w=n(27011),N=n(1932),S=n(96379);let L=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{updateThreads:n}=(0,w.an)();return t[0]!==n?(e={mutationFn:D,onSuccess:(e,t)=>{n((0,N.jM)(e=>{let n=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===t.userLogin));if(0!==n.length)for(let e of n)e&&(e.viewerCanBlockFromOrg=!1,e.viewerCanUnblockFromOrg=!0,e.isHidden=t.shouldHideComment||e.isHidden,e.minimizedReason=t.hiddenReason||null)}))}},t[0]=n,t[1]=e):e=t[1],(0,C.n)(e)}:function(){let{updateThreads:e}=(0,w.an)();return(0,C.n)({mutationFn:async({duration:e,hiddenReason:t,organizationLogin:n,notifyBlockedUser:i,shouldHideComment:a,userLogin:r})=>{let s=new FormData;s.append(“duration”,e),s.append(“hide_comment”,a.toString()),t&&s.append(“hidden_reason”,t),s.append(“login”,r),s.append(“send_notification”,i.toString()),await (0,S.DI)((0,j.ggd)({owner:n}),{method:”POST”,body:s,redirect:”manual”})},onSuccess:(t,n)=>{e((0,N.jM)(e=>{let t=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===n.userLogin));if(0!==t.length)for(let e of t)e&&(e.viewerCanBlockFromOrg=!1,e.viewerCanUnblockFromOrg=!0,e.isHidden=n.shouldHideComment||e.isHidden,e.minimizedReason=n.hiddenReason||null)}))}})};async function D(e){let{duration:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,shouldHideComment:r,userLogin:s}=e,l=new FormData;l.append(“duration”,t),l.append(“hide_comment”,r.toString()),n&&l.append(“hidden_reason”,n),l.append(“login”,s),l.append(“send_notification”,a.toString()),await (0,S.DI)((0,j.ggd)({owner:i}),{method:”POST”,body:l,redirect:”manual”})}var I=n(48845);let _=(0,a.Z6)()?function(e){let t,n,i,a=(0,r.c)(15),{filePath:s,lineMarkersKey:l,onSuccess:o}=e,d=(0,w.Kp)(),{deleteThreadComment:c}=(0,w.an)(),{onCommentThreadDeleted:u}=(0,w.Ud)(),m=(0,w.SM)(),{removePendingComment:f}=(0,w._N)();return a[0]!==d||a[1]!==s||a[2]!==m||a[3]!==l?(t=async e=>{let{commentId:t,threadId:n}=e,i=m(Number(n),s,l)?.commentsData?.comments?.find(e=>e.id===t);if(!i)return;let a=`${d}/page_data/review_comments/${i.databaseId}`,r=await (0,I.q$)(`${a}`,{method:”DELETE”});if(204===r.status||200===r.status)return;let o=await (0,I.hp)(r);(0,I.R)(r,o)},a[0]=d,a[1]=s,a[2]=m,a[3]=l,a[4]=t):t=a[4],a[5]!==c||a[6]!==s||a[7]!==l||a[8]!==u||a[9]!==o||a[10]!==f?(n=(e,t)=>{let{commentId:n,threadId:i}=t,a=c(Number(i),n,s,l);f(Number(i)),”thread_deleted”===a&&(“thread_deleted”===a&&u({path:s,threadID:i}),o?.())},a[5]=c,a[6]=s,a[7]=l,a[8]=u,a[9]=o,a[10]=f,a[11]=n):n=a[11],a[12]!==t||a[13]!==n?(i={mutationFn:t,onSuccess:n},a[12]=t,a[13]=n,a[14]=i):i=a[14],(0,C.n)(i)}:function({filePath:e,lineMarkersKey:t,onSuccess:n}){let i=(0,w.Kp)(),{deleteThreadComment:a}=(0,w.an)(),{onCommentThreadDeleted:r}=(0,w.Ud)(),s=(0,w.SM)(),{removePendingComment:l}=(0,w._N)();return(0,C.n)({mutationFn:async({commentId:n,threadId:a})=>{let r=s(Number(a),e,t)?.commentsData?.comments?.find(e=>e.id===n);if(!r)return;let l=`${i}/page_data/review_comments/${r.databaseId}`,o=await (0,I.q$)(`${l}`,{method:”DELETE”});if(204===o.status||200===o.status)return;let d=await (0,I.hp)(o);(0,I.R)(o,d)},onSuccess:(i,{commentId:s,threadId:o})=>{let d=a(Number(o),s,e,t);l(Number(o)),”thread_deleted”===d&&(“thread_deleted”===d&&r({path:e,threadID:o}),n?.())}})};var R=n(20622);let k=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(9),l=(0,w.Kp)(),o=`${l}/page_data/${R.uT.hideComment}`,{updateThreadComment:d}=(0,w.an)();return s[0]!==o?(n=async e=>{let{commentDatabaseId:t,reason:n}=e,i=await (0,I.q$)(o,{method:”POST”,body:{classifier:n,commentId:t}}),a=await (0,I.hp)(i);return(0,I.R)(i,a),a},s[0]=o,s[1]=n):n=s[1],s[2]!==e||s[3]!==t||s[4]!==d?(i=n=>{d({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:e=>{if(e)return{…e,isHidden:!0,minimizedReason:n.reason}}})},s[2]=e,s[3]=t,s[4]=d,s[5]=i):i=s[5],s[6]!==n||s[7]!==i?(a={mutationFn:n,onSuccess:i},s[6]=n,s[7]=i,s[8]=a):a=s[8],(0,C.n)(a)}:function(e,t){let n=(0,w.Kp)(),i=`${n}/page_data/${R.uT.hideComment}`,{updateThreadComment:a}=(0,w.an)();return(0,C.n)({mutationFn:async({commentDatabaseId:e,reason:t})=>{let n=await (0,I.q$)(i,{method:”POST”,body:{classifier:t,commentId:e}}),a=await (0,I.hp)(n);return(0,I.R)(n,a),a},onSuccess:n=>{a({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:e=>{if(e)return{…e,isHidden:!0,minimizedReason:n.reason}}})}})},A=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(9),l=(0,w.Kp)(),{updateThreadComment:o}=(0,w.an)();return s[0]!==l?(n=async e=>{let{commentDatabaseId:t,reaction:n,viewerHasReacted:i}=e,a=`${l}/page_data/${i?R.uT.removeCommentReaction:R.uT.addCommentReaction}`,r=await (0,I.q$)(a,{method:”POST”,body:{reaction:n,commentId:t}}),s=await (0,I.hp)(r);return(0,I.R)(r,s),s},s[0]=l,s[1]=n):n=s[1],s[2]!==e||s[3]!==t||s[4]!==o?(i=(n,i)=>{o({threadID:parseInt(i.threadId),filePath:e,lineMarkersKey:t,match:e=>e.databaseId===i.commentDatabaseId,transform:e=>{if(e)return{…e,reactionGroups:n.reactionGroups}}})},s[2]=e,s[3]=t,s[4]=o,s[5]=i):i=s[5],s[6]!==n||s[7]!==i?(a={mutationFn:n,onSuccess:i},s[6]=n,s[7]=i,s[8]=a):a=s[8],(0,C.n)(a)}:function(e,t){let n=(0,w.Kp)(),{updateThreadComment:i}=(0,w.an)();return(0,C.n)({mutationFn:async({commentDatabaseId:e,reaction:t,viewerHasReacted:i})=>{let a=`${n}/page_data/${i?R.uT.removeCommentReaction:R.uT.addCommentReaction}`,r=await (0,I.q$)(a,{method:”POST”,body:{reaction:t,commentId:e}}),s=await (0,I.hp)(r);return(0,I.R)(r,s),s},onSuccess:(n,a)=>{i({threadID:parseInt(a.threadId),filePath:e,lineMarkersKey:t,match:e=>e.databaseId===a.commentDatabaseId,transform:e=>{if(e)return{…e,reactionGroups:n.reactionGroups}}})}})},E=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{updateThreads:n}=(0,w.an)();return t[0]!==n?(e={mutationFn:T,onSuccess:(e,t)=>{n((0,N.jM)(e=>{let n=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===t.userLogin));if(0!==n.length)for(let e of n)e&&(e.viewerCanBlockFromOrg=!0,e.viewerCanUnblockFromOrg=!1)}))}},t[0]=n,t[1]=e):e=t[1],(0,C.n)(e)}:function(){let{updateThreads:e}=(0,w.an)();return(0,C.n)({mutationFn:async({organizationLogin:e,userLogin:t})=>{await (0,I.q$)(`${(0,j.ggd)({owner:e})}/${(0,j.QU3)(t)}`,{method:”DELETE”,redirect:”manual”})},onSuccess:(t,n)=>{e((0,N.jM)(e=>{let t=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===n.userLogin));if(0!==t.length)for(let e of t)e&&(e.viewerCanBlockFromOrg=!0,e.viewerCanUnblockFromOrg=!1)}))}})};async function T(e){let{organizationLogin:t,userLogin:n}=e;await (0,I.q$)(`${(0,j.ggd)({owner:t})}/${(0,j.QU3)(n)}`,{method:”DELETE”,redirect:”manual”})}let O=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(9),l=(0,w.Kp)(),o=`${l}/page_data/${R.uT.unhideComment}`,{updateThreadComment:d}=(0,w.an)();return s[0]!==o?(n=async e=>{let{commentDatabaseId:t}=e,n=await (0,I.q$)(o,{method:”POST”,body:{commentId:t}}),i=await (0,I.hp)(n);return(0,I.R)(n,i),i},s[0]=o,s[1]=n):n=s[1],s[2]!==e||s[3]!==t||s[4]!==d?(i=n=>{d({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:P})},s[2]=e,s[3]=t,s[4]=d,s[5]=i):i=s[5],s[6]!==n||s[7]!==i?(a={mutationFn:n,onSuccess:i},s[6]=n,s[7]=i,s[8]=a):a=s[8],(0,C.n)(a)}:function(e,t){let n=(0,w.Kp)(),i=`${n}/page_data/${R.uT.unhideComment}`,{updateThreadComment:a}=(0,w.an)();return(0,C.n)({mutationFn:async({commentDatabaseId:e})=>{let t=await (0,I.q$)(i,{method:”POST”,body:{commentId:e}}),n=await (0,I.hp)(t);return(0,I.R)(t,n),n},onSuccess:n=>{a({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:e=>{if(e)return{…e,isHidden:!1,minimizedReason:null}}})}})};function P(e){if(e)return{…e,isHidden:!1,minimizedReason:null}}let F=(0,a.Z6)()?function(e){let t,n,i,a=(0,r.c)(10),{filePath:s,lineMarkersKey:l,onSuccess:o}=e,d=(0,w.Kp)(),c=`${d}/page_data/${R.uT.updateReviewComment}`,{updateThreadComment:u}=(0,w.an)();return a[0]!==c?(t=async e=>{let{commentId:t,bodyVersion:n,body:i}=e,a=await (0,I.q$)(`${c}${n?`?body_version=${n}`:””}`,{method:”PUT”,body:{body:i,commentId:t}}),r=await (0,I.hp)(a);return(0,I.R)(a,r),r},a[0]=c,a[1]=t):t=a[1],a[2]!==s||a[3]!==l||a[4]!==o||a[5]!==u?(n=e=>{u({threadID:e.threadId,filePath:s,lineMarkersKey:l,match:t=>t.databaseId===e.commentDatabaseId,transform:t=>{if(t)return{…t,body:e.body,bodyHTML:e.bodyHTML,bodyVersion:e.bodyVersion}}}),o?.()},a[2]=s,a[3]=l,a[4]=o,a[5]=u,a[6]=n):n=a[6],a[7]!==t||a[8]!==n?(i={mutationFn:t,onSuccess:n},a[7]=t,a[8]=n,a[9]=i):i=a[9],(0,C.n)(i)}:function({filePath:e,lineMarkersKey:t,onSuccess:n}){let i=(0,w.Kp)(),a=`${i}/page_data/${R.uT.updateReviewComment}`,{updateThreadComment:r}=(0,w.an)();return(0,C.n)({mutationFn:async({commentId:e,bodyVersion:t,body:n})=>{let i=await (0,I.q$)(`${a}${t?`?body_version=${t}`:””}`,{method:”PUT”,body:{body:n,commentId:e}}),r=await (0,I.hp)(i);return(0,I.R)(i,r),r},onSuccess:i=>{r({threadID:i.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===i.commentDatabaseId,transform:e=>{if(e)return{…e,body:i.body,bodyHTML:i.bodyHTML,bodyVersion:i.bodyVersion}}}),n?.()}})};var $=n(34784),M=n(8748),B=n(50625),V=n(93642),U=n(70109);let H=”ReviewThreadComment-module__ReviewThreadContainer–mI1dg”,G=”ReviewThreadComment-module__anchorable–bXoU8″,q=”ReviewThreadComment-module__ReviewThreadWrapper–zXqpP”,K=”ReviewThreadComment-module__ReviewThreadBox–Ddyuz”,z=”ReviewThreadComment-module__ReviewThreadInnerContainer–xw85s”,W=”ReviewThreadComment-module__ReplyWrapper–yIUaX”,Z=”ReviewThreadComment-module__SafeHTMLBox–SVSQJ”,Q=”ReviewThreadComment-module__SafeHTMLBoxWrapped–NYuTu”,X=”ReviewThreadComment-module__BodyHTMLContainer–O6lsx”;var J=n(88431),Y=n(40961),ee=n(80081),et=n(3252);let en=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,w.Kp)(),i=`${n}/page_data/${R.uT.submitSuggestedChanges}`;return t[0]!==i?(e={mutationFn:async e=>{let{changes:t,currentOid:n,message:a}=e,r=await (0,I.q$)(i,{method:”POST”,body:{changes:t,currentOid:n,message:a}}),s=await (0,I.hp)(r);return(0,I.R)(r,s),s},onSuccess:ei},t[0]=i,t[1]=e):e=t[1],(0,C.n)(e)}:function(){let e=(0,w.Kp)(),t=`${e}/page_data/${R.uT.submitSuggestedChanges}`;return(0,C.n)({mutationFn:async({changes:e,currentOid:n,message:i})=>{let a=await (0,I.q$)(t,{method:”POST”,body:{changes:e,currentOid:n,message:i}}),r=await (0,I.hp)(a);return(0,I.R)(a,r),r},onSuccess:()=>{h.cg?.location.reload()}})};function ei(){h.cg?.location.reload()}var ea=n(91747),er=n(2265),es=n(30459),el=n(26607),eo=n(21373),ed=n(88008);let ec=(0,a.GV)()?function(e){let t,n,a,s,l,o=(0,r.c)(28),{onOpenDialog:d,suggestedChange:c}=e,{sendAnalyticsEvent:u}=(0,es.s)(),m=(0,y.useRef)(null),f=c.commentDatabaseId||0;o[0]!==c.suggestionIndex||o[1]!==f?(t={commentDatabaseId:f,suggestionIndex:c.suggestionIndex},o[0]=c.suggestionIndex,o[1]=f,o[2]=t):t=o[2];let h=(0,w.Nk)(t),p=(0,w.RH)(),g=(0,ea.u)(“batch_suggested_changes”),{addSuggestionToBatch:x,removeSuggestionFromBatch:b}=(0,w.xJ)(),v=(0,w.WK)(),j=(0,w.Kp)(),C=(0,w.L3)();o[3]!==x||o[4]!==C||o[5]!==j||o[6]!==u||o[7]!==c.commentDatabaseId||o[8]!==c.suggestionIndex||o[9]!==v?(n=()=>{if(!c.commentDatabaseId)return;let e={commentDatabaseId:c.commentDatabaseId,suggestionIndex:c.suggestionIndex};x(e),(0,ed.CE)(j,C.fullDiff.headOid,[…v.activeBatch,e]),u(“comments.add_suggested_change_to_batch”,”ADD_SUGGESTED_CHANGE_TO_BATCH_BUTTON”)},o[3]=x,o[4]=C,o[5]=j,o[6]=u,o[7]=c.commentDatabaseId,o[8]=c.suggestionIndex,o[9]=v,o[10]=n):n=o[10];let N=n;o[11]!==C||o[12]!==j||o[13]!==b||o[14]!==u||o[15]!==c.commentDatabaseId||o[16]!==c.suggestionIndex||o[17]!==v?(a=()=>{if(!c.commentDatabaseId)return;let e={commentDatabaseId:c.commentDatabaseId,suggestionIndex:c.suggestionIndex};b(e),(0,ed.CE)(j,C.fullDiff.headOid,v.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex)),u(“comments.remove_suggested_change_from_batch”,”REMOVE_SUGGESTED_CHANGE_FROM_BATCH_BUTTON”)},o[11]=C,o[12]=j,o[13]=b,o[14]=u,o[15]=c.commentDatabaseId,o[16]=c.suggestionIndex,o[17]=v,o[18]=a):a=o[18];let S=a;o[19]!==d?(s=()=>{d(m)},o[19]=d,o[20]=s):s=o[20];let L=s;return o[21]!==g||o[22]!==N||o[23]!==L||o[24]!==S||o[25]!==h||o[26]!==p?(l=(0,i.jsx)(“div”,{className:”d-flex flex-row flex-items-center”,children:g&&h?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(eo.Q,{variant:”danger”,onClick:S,children:”Remove from batch”})})]}):(0,i.jsxs)(“div”,{className:”d-flex gap-2 ml-auto flex-wrap-reverse”,children:[!p&&(0,i.jsx)(eo.Q,{variant:”default”,onClick:L,ref:m,children:”Apply suggestion”}),g&&(0,i.jsx)(eo.Q,{variant:”primary”,onClick:N,children:”Add suggestion to batch”})]})}),o[21]=g,o[22]=N,o[23]=L,o[24]=S,o[25]=h,o[26]=p,o[27]=l):l=o[27],l}:function({onOpenDialog:e,suggestedChange:t}){let{sendAnalyticsEvent:n}=(0,es.s)(),a=(0,y.useRef)(null),r=(0,w.Nk)({commentDatabaseId:t.commentDatabaseId||0,suggestionIndex:t.suggestionIndex}),s=(0,w.RH)(),l=(0,ea.u)(“batch_suggested_changes”),{addSuggestionToBatch:o,removeSuggestionFromBatch:d}=(0,w.xJ)(),c=(0,w.WK)(),u=(0,w.Kp)(),m=(0,w.L3)(),f=(0,y.useCallback)(()=>{if(!t.commentDatabaseId)return;let e={commentDatabaseId:t.commentDatabaseId,suggestionIndex:t.suggestionIndex};o(e),(0,ed.CE)(u,m.fullDiff.headOid,[…c.activeBatch,e]),n(“comments.add_suggested_change_to_batch”,”ADD_SUGGESTED_CHANGE_TO_BATCH_BUTTON”)},[o,t.commentDatabaseId,t.suggestionIndex,c,u,m,n]),h=(0,y.useCallback)(()=>{if(!t.commentDatabaseId)return;let e={commentDatabaseId:t.commentDatabaseId,suggestionIndex:t.suggestionIndex};d(e),(0,ed.CE)(u,m.fullDiff.headOid,c.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex)),n(“comments.remove_suggested_change_from_batch”,”REMOVE_SUGGESTED_CHANGE_FROM_BATCH_BUTTON”)},[d,t.commentDatabaseId,t.suggestionIndex,c,u,m,n]),p=(0,y.useCallback)(()=>{e(a)},[e]);return(0,i.jsx)(“div”,{className:”d-flex flex-row flex-items-center”,children:l&&r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(eo.Q,{variant:”danger”,onClick:h,children:”Remove from batch”})})]}):(0,i.jsxs)(“div”,{className:”d-flex gap-2 ml-auto flex-wrap-reverse”,children:[!s&&(0,i.jsx)(eo.Q,{variant:”default”,onClick:p,ref:a,children:”Apply suggestion”}),l&&(0,i.jsx)(eo.Q,{variant:”primary”,onClick:f,children:”Add suggestion to batch”})]})})};try{ec.displayName||(ec.displayName=”ApplyOrAddToBatch”)}catch{}var eu=n(3585);let em=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{reason:s,className:l}=e,o=void 0===l?”m-2″:l;return a[0]!==s?(t=(0,i.jsx)(“small”,{className:”fgColor-muted”,children:s}),a[0]=s,a[1]=t):t=a[1],a[2]!==o||a[3]!==t?(n=(0,i.jsx)(“div”,{className:o,children:t}),a[2]=o,a[3]=t,a[4]=n):n=a[4],n}:function({reason:e,className:t=”m-2″}){return(0,i.jsx)(“div”,{className:t,children:(0,i.jsx)(“small”,{className:”fgColor-muted”,children:e})})};try{em.displayName||(em.displayName=”CodeSuggestionUnavailable”)}catch{}let ef=(0,a.GV)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,h,p=(0,r.c)(38),{suggestedChange:g}=e,{setIsDialogOpen:x}=(0,er.W)(),[b,v]=(0,y.useState)(!1),j=(0,y.useRef)(void 0),C=(0,ea.u)(“batch_suggested_changes”),N=(0,w.WK)();p[0]!==C||p[1]!==g||p[2]!==N?(t=C&&void 0!==g.commentDatabaseId&&null!==g.commentDatabaseId&&N.activeBatch.some(e=>e.commentDatabaseId===g.commentDatabaseId&&e.suggestionIndex===g.suggestionIndex),p[0]=C,p[1]=g,p[2]=N,p[3]=t):t=p[3];let S=t;p[4]!==g?(n=(0,ee.EJ)(g,[]),p[4]=g,p[5]=n):n=p[5];let{isValid:L,reason:D}=n;p[6]!==g?(a=[g],p[6]=g,p[7]=a):a=p[7];let I=a;p[8]!==I?(s=I.map(eh),p[8]=I,p[9]=s):s=p[9];let _=s;p[10]!==x?(l=e=>{v(e),x?.(e)},p[10]=x,p[11]=l):l=p[11];let R=l;p[12]!==R?(o=()=>{if(R(!1),j.current){let e=j.current.current;setTimeout(()=>e?.focus())}},p[12]=R,p[13]=o):o=p[13];let k=o;p[14]!==R?(d=e=>{R(!0),j.current=e},p[14]=R,p[15]=d):d=p[15];let A=d,{mutate:E}=en(),{fullDiff:T}=(0,w.L3)(),{headOid:O}=T;p[16]!==I||p[17]!==k||p[18]!==O||p[19]!==E?(c=(e,t,n)=>{E({changes:I,message:e,currentOid:O},{onSuccess:()=>{k(),n()},onError:e=>{t(e,”submitSuggestedChanges”,”Failed to submit suggested changes”)}})},p[16]=I,p[17]=k,p[18]=O,p[19]=E,p[20]=c):c=p[20];let P=c;return p[21]!==A||p[22]!==g?(u=(0,i.jsx)(ec,{suggestedChange:g,onOpenDialog:A}),p[21]=A,p[22]=g,p[23]=u):u=p[23],p[24]!==S||p[25]!==L||p[26]!==D?(m=!S&&!L&&D&&(0,i.jsx)(em,{reason:D,className:”m-0″}),p[24]=S,p[25]=L,p[26]=D,p[27]=m):m=p[27],p[28]!==_||p[29]!==I.length||p[30]!==k||p[31]!==P||p[32]!==b?(f=b&&(0,i.jsx)(eu.$,{authorLogins:_,batchSize:I.length,onClose:k,onCommit:P}),p[28]=_,p[29]=I.length,p[30]=k,p[31]=P,p[32]=b,p[33]=f):f=p[33],p[34]!==u||p[35]!==m||p[36]!==f?(h=(0,i.jsxs)(“div”,{className:”border-top p-2″,children:[u,m,f]}),p[34]=u,p[35]=m,p[36]=f,p[37]=h):h=p[37],h}:function({suggestedChange:e}){let{setIsDialogOpen:t}=(0,er.W)(),[n,a]=(0,y.useState)(!1),r=(0,y.useRef)(void 0),s=(0,ea.u)(“batch_suggested_changes”),l=(0,w.WK)(),o=s&&void 0!==e.commentDatabaseId&&null!==e.commentDatabaseId&&l.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex),{isValid:d,reason:c}=(0,ee.EJ)(e,[]),u=(0,y.useMemo)(()=>[e],[e]),m=u.map(e=>e.authorLogin),f=(0,y.useCallback)(e=>{a(e),t?.(e)},[t]),h=(0,y.useCallback)(()=>{if(f(!1),r.current){let e=r.current.current;setTimeout(()=>e?.focus())}},[f]),p=(0,y.useCallback)(e=>{f(!0),r.current=e},[f,r]),{mutate:g}=en(),{fullDiff:{headOid:x}}=(0,w.L3)(),b=(0,y.useCallback)((e,t,n)=>{g({changes:u,message:e,currentOid:x},{onSuccess:()=>{h(),n()},onError:e=>{t(e,”submitSuggestedChanges”,”Failed to submit suggested changes”)}})},[u,h,x,g]);return(0,i.jsxs)(“div”,{className:”border-top p-2″,children:[(0,i.jsx)(ec,{suggestedChange:e,onOpenDialog:p}),!o&&!d&&c&&(0,i.jsx)(em,{reason:c,className:”m-0″}),n&&(0,i.jsx)(eu.$,{authorLogins:m,batchSize:u.length,onClose:h,onCommit:b})]})};function eh(e){return e.authorLogin}try{ef.displayName||(ef.displayName=”CodeSuggestionActions”)}catch{}let ep=(0,a.GV)()?function(e,t,n,i,a){let s,l,o=(0,r.c)(19),[d,c]=(0,y.useState)();o[0]!==a.lineRange||o[1]!==t.author?.login||o[2]!==t.databaseId||o[3]!==t.id||o[4]!==t.subjectType||o[5]!==e||o[6]!==n||o[7]!==i?(s=()=>{if(!e.current||t.subjectType?.toUpperCase()!==”LINE”)return;let r=[…e.current.getElementsByClassName(“js-apply-changes”)];if(r.length>0){let e=[];for(let s=0;s{if(!e.current||t.subjectType?.toUpperCase()!==”LINE”)return;let r=[…e.current.getElementsByClassName(“js-apply-changes”)];if(r.length>0){let e=[];for(let s=0;s{let{isValid:t,reason:n}=(0,ee.o_)({suggestedChange:e,hasCommitRange:g,isOutdated:c,isPending:”PENDING”===l.state.toUpperCase(),isResolved:u,pullRequestIsClosed:void 0===p||”CLOSED”===p||”MERGED”===p,pullRequestIsInMergeQueue:”QUEUED”===p,userCanApplySuggestion:!!h,applySuggestedChangesValidationData:s,suggestedChangesConfig:m});return!t&&n?(0,Y.createPortal)((0,i.jsx)(em,{reason:n}),e.ref):(0,Y.createPortal)((0,i.jsx)(ef,{suggestedChange:e}),e.ref)}):null,a[0]=s,a[1]=l,a[2]=g,a[3]=c,a[4]=u,a[5]=p,a[6]=x,a[7]=m,a[8]=h,a[9]=t):t=a[9],a[10]!==t?(n=(0,i.jsx)(i.Fragment,{children:t}),a[10]=t,a[11]=n):n=a[11],n}:function({applySuggestedChangesValidationData:e,comment:t,commentBodyRef:n,filePath:a,isOutdated:r,isThreadResolved:s,suggestedChangesConfig:l,databaseId:o,viewerCanApplySuggestion:d}){let{state:c}=(0,w.Yp)(),u=(0,w.ww)(),m=ep(n,t,a,o,e);return(0,i.jsx)(i.Fragment,{children:m?.length?m.map(n=>{let{isValid:a,reason:o}=(0,ee.o_)({suggestedChange:n,hasCommitRange:u,isOutdated:r,isPending:”PENDING”===t.state.toUpperCase(),isResolved:s,pullRequestIsClosed:void 0===c||”CLOSED”===c||”MERGED”===c,pullRequestIsInMergeQueue:”QUEUED”===c,userCanApplySuggestion:!!d,applySuggestedChangesValidationData:e,suggestedChangesConfig:l});return!a&&o?(0,Y.createPortal)((0,i.jsx)(em,{reason:o}),n.ref):(0,Y.createPortal)((0,i.jsx)(ef,{suggestedChange:n}),n.ref)}):null})};try{eg.displayName||(eg.displayName=”SuggestedChangeView”)}catch{}var ex=n(30721),eb=n(83494),ev=n(20459);let ey=(0,a.GV)()?function(e){let t,n,a,j,C,N,S,D,I,R,T,P,J,Y,ee,et,en,ei,ea,er,es,el,eo,ed,ec,eu,em,ef,eh,ep,ey,eC,ew,eN,eS,eL,eD,eI,e_,eR,ek,eA,eE,eT,eO=(0,r.c)(176),{isAnchorable:eP,index:eF,isInlineComment:e$,isLastChild:eM,isOutdated:eB,isThreadResolved:eV,lineMarkersKey:eU,anchorPrefix:eH,comment:eG,disableDialogMode:eq,enableDialogMode:eK,filePath:ez,gridCellId:eW,hideActions:eZ,isFirstComment:eQ,isInDialogMode:eX,onDeleteLineComment:eJ,onQuoteReply:eY,threadCommentCount:e0,threadId:e1,threadPositionNumber:e2,suggestedChangesConfig:e3,applySuggestedChangesValidationData:e4,viewerData:e5,ghostUser:e6,originalDiffPathUri:e7,headingLevel:e8}=e,e9=void 0!==eP&&eP,te=void 0===eF?0:eF,tt=void 0!==eQ&&eQ,tn=void 0===eY?u.l:eY,ti=void 0===e6?d.t.ghostUser:e6,ta=void 0===e8?”h3″:e8,{addToast:tr}=(0,p.Y6)(),[ts,tl]=(0,y.useState)(!1),[to,td]=(0,y.useState)(eG.isHidden),[tc,tu]=(0,y.useState)(!1),[tm,tf]=(0,y.useState)(eG.body),[th,tp]=(0,y.useState)(!1),[tg,tx]=(0,y.useState)(!1),[tb,tv]=(0,y.useState)(“”),ty=(0,w.Kp)(),tj=”FILE”===eG.subjectType;eO[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=e=>{let{text:t}=e;t&&tf(t)},eO[0]=t):t=eO[0],eO[1]!==ty||eO[2]!==eG.id||eO[3]!==ez||eO[4]!==tj?(n={subjectId:ty,filePath:ez,fileLevelComment:tj,threadId:eG.id,handlePersistedCommentExists:t},eO[1]=ty,eO[2]=eG.id,eO[3]=ez,eO[4]=tj,eO[5]=n):n=eO[5];let{persistCommentToStorage:tC,removePersistedCommentFromStorage:tw}=(0,B.L)(n),tN=(0,y.useRef)(null),tS=(0,y.useRef)(null),tL=(0,y.useRef)(null),[tD,tI]=(0,y.useState)(“”);eO[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>{tN.current?.focus()},eO[6]=a):a=eO[6];let t_=a;eO[7]!==ts?(j=()=>{if(ts){let e=window.setTimeout(t_);return()=>{window.clearTimeout(e)}}},C=[ts],eO[7]=ts,eO[8]=j,eO[9]=C):(j=eO[8],C=eO[9]),(0,y.useEffect)(j,C),eO[10]!==eJ?(N=()=>{tu(!1),tx(!1),eJ?.()},eO[10]=eJ,eO[11]=N):N=eO[11],eO[12]!==ez||eO[13]!==eU||eO[14]!==N?(S={filePath:ez,lineMarkersKey:eU,onSuccess:N},eO[12]=ez,eO[13]=eU,eO[14]=N,eO[15]=S):S=eO[15];let{mutate:tR}=_(S);eO[16]!==eq?(D=async()=>{eq?.(),tu(!0)},eO[16]=eq,eO[17]=D):D=eO[17];let tk=D;eO[18]!==tr||eO[19]!==eG.id||eO[20]!==tR||eO[21]!==eK||eO[22]!==ez||eO[23]!==eW||eO[24]!==e1?(I=e=>{“confirm”===e?(tx(!0),tR({commentId:eG.id,threadId:e1,filePath:ez},{onError:()=>{tu(!1),tr({type:”error”,message:”Failed to delete comment”}),tx(!1)}})):(eW&&eK?.(eW),tu(!1),tx(!1))},eO[18]=tr,eO[19]=eG.id,eO[20]=tR,eO[21]=eK,eO[22]=ez,eO[23]=eW,eO[24]=e1,eO[25]=I):I=eO[25];let tA=I,{mutate:tE}=k(ez,eU);eO[26]!==eG.databaseId||eO[27]!==tE?(R=e=>{if(!eG.databaseId)throw Error(“Comment not found”);tE({commentDatabaseId:eG.databaseId,reason:e},{onError:()=>{tp(!1),tI(“Failed to hide comment”)},onSuccess:()=>td(!0)})},eO[26]=eG.databaseId,eO[27]=tE,eO[28]=R):R=eO[28];let tT=R,{mutate:tO}=O(ez,eU);eO[29]!==eG.databaseId||eO[30]!==tO?(T=()=>{if(!eG.databaseId)throw Error(“Comment not found”);tO({commentDatabaseId:eG.databaseId},{onError:()=>{tp(!1),tI(“Failed to unhide comment”)},onSuccess:()=>td(!1)})},eO[29]=eG.databaseId,eO[30]=tO,eO[31]=T):T=eO[31];let tP=T,{mutate:tF}=L();eO[32]!==tF?(P=(e,t,n,i,a,r)=>tF({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>tI(“Failed to block user”),onSuccess:()=>{t&&td(!0)}}),eO[32]=tF,eO[33]=P):P=eO[33];let t$=P,{mutate:tM}=E();eO[34]!==tM?(J=(e,t)=>tM({organizationLogin:e,userLogin:t},{onError:()=>tI(“Failed to unblock user”)}),eO[34]=tM,eO[35]=J):J=eO[35];let tB=J,{mutate:tV}=A(ez,eU);eO[36]!==tr||eO[37]!==eG.databaseId||eO[38]!==tV||eO[39]!==e1?(Y=(e,t)=>{if(!eG.databaseId)throw Error(“Comment not found”);setTimeout(()=>tL.current?.focus(),0),tV({commentDatabaseId:eG.databaseId,threadId:e1,reaction:e,viewerHasReacted:t},{onError:()=>{tp(!1),tr({type:”error”,message:”Failed to react to comment”})}})},eO[36]=tr,eO[37]=eG.databaseId,eO[38]=tV,eO[39]=e1,eO[40]=Y):Y=eO[40];let tU=Y;eO[41]===Symbol.for(“react.memo_cache_sentinel”)?(ee=()=>{tl(!0)},eO[41]=ee):ee=eO[41];let tH=ee;eO[42]!==eG.body||eO[43]!==tw?(et=()=>{tl(!1),tw(),tf(eG.body)},eO[42]=eG.body,eO[43]=tw,eO[44]=et):et=eO[44];let tG=et;eO[45]!==tC?(en=e=>{tC({text:e}),tf(e),tv(void 0)},eO[45]=tC,eO[46]=en):en=eO[46];let tq=en;eO[47]!==tw?(ei=()=>{tl(!1),tp(!1),tw()},eO[47]=tw,eO[48]=ei):ei=eO[48],eO[49]!==ez||eO[50]!==eU||eO[51]!==ei?(ea={filePath:ez,lineMarkersKey:eU,onSuccess:ei},eO[49]=ez,eO[50]=eU,eO[51]=ei,eO[52]=ea):ea=eO[52];let{mutate:tK}=F(ea);eO[53]!==tr||eO[54]!==tm||eO[55]!==eG.bodyVersion||eO[56]!==eG.databaseId||eO[57]!==e3?.sourceContentFromDiffLines||eO[58]!==tK?(er=()=>{tp(!0);let e=(0,V.u)(tm,e3?.sourceContentFromDiffLines??””);if(!e.isValid){tv(e.errorMessage),tp(!1);return}tK({commentId:String(eG.databaseId),body:tm,bodyVersion:eG.bodyVersion},{onError:()=>{tp(!1),tr({type:”error”,message:”Failed to update comment”})}})},eO[53]=tr,eO[54]=tm,eO[55]=eG.bodyVersion,eO[56]=eG.databaseId,eO[57]=e3?.sourceContentFromDiffLines,eO[58]=tK,eO[59]=er):er=eO[59],e3?.sourceContentFromDiffLines;let tz=er;eO[60]!==eG.databaseId?(es=eG.databaseId?.toString(),eO[60]=eG.databaseId,eO[61]=es):es=eO[61];let tW=es,tZ=tW?`${void 0===eH?”r”:eH}${tW}`:void 0;eO[62]!==tZ?(el=tZ&&h.fV?new URL(`${h.fV.pathname}#${tZ}`,h.fV.origin).toString():””,eO[62]=tZ,eO[63]=el):el=eO[63];let tQ=el,tX=(0,y.useRef)(null);eO[64]!==tZ||eO[65]!==tW||eO[66]!==e9?(eo={isAnchorable:e9,commentId:tW,commentAnchor:tZ,containerRef:tX},eO[64]=tZ,eO[65]=tW,eO[66]=e9,eO[67]=eo):eo=eO[67],(0,M.u)(eo);let tJ=te>0,tY=te>1,t0=ts?”editing”:to?”hidden”:”visible”;eO[68]!==ta?(ed={as:ta},eO[68]=ta,eO[69]=ed):ed=eO[69];let t1=ed,t2=eG.author?.avatarUrl??ti.avatarUrl,t3=eG.reference.text??`#${eG.reference.number}`;eO[70]!==eG||eO[71]!==tQ||eO[72]!==t3?(ec={…eG,url:tQ,referenceText:t3},eO[70]=eG,eO[71]=tQ,eO[72]=t3,eO[73]=ec):ec=eO[73];let t4=eG.author?.login??ti.login,t5=eG.reference?.author?.login??””;eO[74]===Symbol.for(“react.memo_cache_sentinel”)?(eu={},eO[74]=eu):eu=eO[74];let t6=”copilot”===eG.reviewVariantType?”copilot-pull-request-reviewer”:void 0,t7=”copilot”===eG.reviewVariantType?l.S.Bot:void 0;eO[75]!==eZ||eO[76]!==to||eO[77]!==eB||eO[78]!==tJ||eO[79]!==t$||eO[80]!==tk||eO[81]!==tT||eO[82]!==tn||eO[83]!==tB||eO[84]!==tP||eO[85]!==e7||eO[86]!==t1||eO[87]!==t2||eO[88]!==ec||eO[89]!==t4||eO[90]!==t5||eO[91]!==t6||eO[92]!==t7?(em={headingProps:t1,avatarUrl:t2,comment:ec,commentRef:tX,deleteComment:tk,editComment:tH,editHistoryComponent:void 0,hideComment:tT,onBlock:t$,onUnblock:tB,onMinimize:td,onSuccessfulBlock:ej,isMinimized:to,commentAuthorLogin:t4,navigate:u.l,commentSubjectAuthorLogin:t5,onReplySelect:tn,unhideComment:tP,hideActions:eZ,isReply:tJ,forceInlineAvatar:!0,containerStyle:eu,originalDiffPathUri:e7,isOutdated:eB,commentAuthorSlug:t6,commentAuthorType:t7},eO[75]=eZ,eO[76]=to,eO[77]=eB,eO[78]=tJ,eO[79]=t$,eO[80]=tk,eO[81]=tT,eO[82]=tn,eO[83]=tB,eO[84]=tP,eO[85]=e7,eO[86]=t1,eO[87]=t2,eO[88]=ec,eO[89]=t4,eO[90]=t5,eO[91]=t6,eO[92]=t7,eO[93]=em):em=eO[93];let t8=em;eO[94]!==te||eO[95]!==tJ||eO[96]!==e2?(ef=()=>tJ?void 0!==e2?`Reply ${te} to Comment ${e2}`:`Reply ${te}`:void 0!==e2?`Comment ${e2}`:”Comment”,eO[94]=te,eO[95]=tJ,eO[96]=e2,eO[97]=ef):ef=eO[97];let t9=ef;eO[98]!==eG.body||eO[99]!==ts||eO[100]!==tn?(eh=()=>{if(ts)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;tn((0,ev.E)(tX?.current,t,eG.body))},eO[98]=eG.body,eO[99]=ts,eO[100]=tn,eO[101]=eh):eh=eO[101];let ne=eh;eO[102]===Symbol.for(“react.memo_cache_sentinel”)?(ep=(0,ex.E7)(),eO[102]=ep):ep=eO[102];let nt=ep;eO[103]!==ne?(ey={“pull-requests-diff-view:quote-reply”:ne},eO[103]=ne,eO[104]=ey):ey=eO[104];let nn=e9?tZ:void 0,ni=e$?eX?0:-1:0,na=eG.id;eO[105]!==t9||eO[106]!==eX?(eC=eX?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:t9()}:{},eO[105]=t9,eO[106]=eX,eO[107]=eC):eC=eO[107];let nr=e9&&G,ns=”hidden”===t0&&”pb-2″;return eO[108]!==nr||eO[109]!==ns?(ew=(0,v.$)(H,nr,ns),eO[108]=nr,eO[109]=ns,eO[110]=ew):ew=eO[110],eO[111]!==tY||eO[112]!==tJ?(eN=tY&&(0,i.jsx)(“div”,{className:q,”data-is-reply”:tJ,children:(0,i.jsx)(“div”,{className:K})}),eO[111]=tY,eO[112]=tJ,eO[113]=eN):eN=eO[113],eO[114]!==t8||eO[115]!==eZ?(eS=eZ?void 0:(0,i.jsx)($.RelayEnvironmentProvider,{environment:nt,children:(0,i.jsx)(o.p,{…t8})}),eO[114]=t8,eO[115]=eZ,eO[116]=eS):eS=eO[116],eO[117]!==eG.body||eO[118]!==t8||eO[119]!==eX||eO[120]!==eB||eO[121]!==eS||eO[122]!==e0?(eL=(0,i.jsx)(l.v,{…t8,commentBody:eG.body,threadCommentCount:e0,isInDialogMode:eX,actions:eS,isOutdated:eB}),eO[117]=eG.body,eO[118]=t8,eO[119]=eX,eO[120]=eB,eO[121]=eS,eO[122]=e0,eO[123]=eL):eL=eO[123],eO[124]!==tY||eO[125]!==eL?(eD=(0,i.jsx)(“div”,{className:z,”data-is-nested-reply”:tY,children:eL}),eO[124]=tY,eO[125]=eL,eO[126]=eD):eD=eO[126],eO[127]!==tD?(eI=tD&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),tD]}),eO[127]=tD,eO[128]=eI):eI=eO[128],eO[129]!==eM||eO[130]!==tJ?(e_=tJ&&(0,i.jsx)(“div”,{className:W,”data-is-last-child”:eM}),eO[129]=eM,eO[130]=tJ,eO[131]=e_):e_=eO[131],eO[132]!==tm||eO[133]!==t0||eO[134]!==tb||eO[135]!==tJ||eO[136]!==th||eO[137]!==tG||eO[138]!==tq||eO[139]!==tz||eO[140]!==e3?(eR=”editing”===t0&&(0,i.jsx)(“div”,{className:(0,v.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,tJ?”pl-0″:”pl-2″),children:(0,i.jsxs)(U.S,{ref:tN,label:”Update comment”,value:tm,onChange:tq,onPrimaryAction:tz,suggestedChangesConfig:e3,markdownErrorMessage:tb,children:[(0,i.jsx)(s.xR,{variant:”default”,onClick:tG,children:”Cancel”}),(0,i.jsx)(s.xR,{disabled:th||!tm.length,loading:th,variant:”primary”,onClick:tz,children:”Update”})]})}),eO[132]=tm,eO[133]=t0,eO[134]=tb,eO[135]=tJ,eO[136]=th,eO[137]=tG,eO[138]=tq,eO[139]=tz,eO[140]=e3,eO[141]=eR):eR=eO[141],eO[142]!==e4||eO[143]!==eG||eO[144]!==t0||eO[145]!==tc||eO[146]!==ez||eO[147]!==tA||eO[148]!==tg||eO[149]!==eB||eO[150]!==tJ||eO[151]!==eV||eO[152]!==tU||eO[153]!==e3||eO[154]!==e5?.viewerCanApplySuggestion?(ek=”visible”===t0&&(0,i.jsxs)(“div”,{className:X,”data-is-reply”:tJ,children:[eG.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:tS,className:(0,v.$)(“markdown-body”,Z,Q),”comment-testid”:`Comment body html for comment ${eG.id}`,html:eG.bodyHTML}),”copilot”===eG.reviewVariantType&&(0,i.jsxs)(“p”,{className:”text-small color-fg-muted mt-2 mb-1″,children:[(0,i.jsx)(“a”,{target:”_blank”,rel:”noopener noreferrer”,className:”Link–inTextBlock”,href:”https://docs.github.com/en/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review”,children:”Copilot”}),” “,”uses AI. Check for mistakes.”]}),(0,i.jsxs)(“div”,{className:”d-flex flex-direction-column gap-2″,children:[“copilot”===eG.reviewVariantType&&(0,i.jsx)(“div”,{className:”mt-2″,children:(0,i.jsx)(c.Z,{commentUrl:eG.url,commentId:eG.databaseId?.toString()??””})}),eG.reactionGroups&&(0,i.jsx)(“div”,{className:”d-flex flex-direction-column mt-2″,children:(0,i.jsx)(m.P,{ref:tL,reactionGroups:eG.reactionGroups,onReact:tU,canReact:eG.viewerCanReact})})]}),e4&&(0,i.jsx)(eg,{comment:eG,commentBodyRef:tS,filePath:ez,isOutdated:eB,isThreadResolved:eV,databaseId:eG.databaseId,suggestedChangesConfig:e3,applySuggestedChangesValidationData:e4,viewerCanApplySuggestion:e5?.viewerCanApplySuggestion})]}),tc&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:tg,onClose:tA,children:”Are you sure you want to delete this comment?”})]}),eO[142]=e4,eO[143]=eG,eO[144]=t0,eO[145]=tc,eO[146]=ez,eO[147]=tA,eO[148]=tg,eO[149]=eB,eO[150]=tJ,eO[151]=eV,eO[152]=tU,eO[153]=e3,eO[154]=e5?.viewerCanApplySuggestion,eO[155]=ek):ek=eO[155],eO[156]!==tJ||eO[157]!==e_||eO[158]!==eR||eO[159]!==ek?(eA=(0,i.jsxs)(“div”,{className:q,”data-is-reply”:tJ,children:[e_,eR,ek]}),eO[156]=tJ,eO[157]=e_,eO[158]=eR,eO[159]=ek,eO[160]=eA):eA=eO[160],eO[161]!==eG.id||eO[162]!==tt||eO[163]!==nn||eO[164]!==ni||eO[165]!==eC||eO[166]!==ew||eO[167]!==eN||eO[168]!==eD||eO[169]!==eI||eO[170]!==eA||eO[171]!==e1?(eE=(0,i.jsxs)(“div”,{ref:tX,id:nn,tabIndex:ni,”data-first-thread-comment”:tt,”data-marker-navigation-comment-thread-id”:e1,”data-marker-navigation-comment-id”:na,…eC,className:ew,children:[eN,eD,eI,eA]}),eO[161]=eG.id,eO[162]=tt,eO[163]=nn,eO[164]=ni,eO[165]=eC,eO[166]=ew,eO[167]=eN,eO[168]=eD,eO[169]=eI,eO[170]=eA,eO[171]=e1,eO[172]=eE):eE=eO[172],eO[173]!==ey||eO[174]!==eE?(eT=(0,i.jsx)(eb.tL,{commands:ey,children:eE}),eO[173]=ey,eO[174]=eE,eO[175]=eT):eT=eO[175],eT}:function({isAnchorable:e=!1,index:t=0,isInlineComment:n,isLastChild:a,isOutdated:r,isThreadResolved:j,lineMarkersKey:C,anchorPrefix:N=”r”,comment:S,disableDialogMode:D,enableDialogMode:I,filePath:R,gridCellId:T,hideActions:P,isFirstComment:J=!1,isInDialogMode:Y,onDeleteLineComment:ee,onQuoteReply:et=u.l,threadCommentCount:en,threadId:ei,threadPositionNumber:ea,suggestedChangesConfig:er,applySuggestedChangesValidationData:es,viewerData:el,ghostUser:eo=d.t.ghostUser,originalDiffPathUri:ed,headingLevel:ec=”h3″}){let{addToast:eu}=(0,p.Y6)(),[em,ef]=(0,y.useState)(!1),[eh,ep]=(0,y.useState)(S.isHidden),[ey,ej]=(0,y.useState)(!1),[eC,ew]=(0,y.useState)(S.body),[eN,eS]=(0,y.useState)(!1),[eL,eD]=(0,y.useState)(!1),[eI,e_]=(0,y.useState)(“”),eR=(0,w.Kp)(),{persistCommentToStorage:ek,removePersistedCommentFromStorage:eA}=(0,B.L)({subjectId:eR,filePath:R,fileLevelComment:”FILE”===S.subjectType,threadId:S.id,handlePersistedCommentExists:({text:e})=>{e&&ew(e)}}),eE=(0,y.useRef)(null),eT=(0,y.useRef)(null),eO=(0,y.useRef)(null),[eP,eF]=(0,y.useState)(“”),e$=()=>{eE.current?.focus()};(0,y.useEffect)(()=>{if(em){let e=window.setTimeout(e$);return()=>{window.clearTimeout(e)}}},[em]);let{mutate:eM}=_({filePath:R,lineMarkersKey:C,onSuccess:()=>{ej(!1),eD(!1),ee?.()}}),eB=async()=>{D?.(),ej(!0)},{mutate:eV}=k(R,C),{mutate:eU}=O(R,C),{mutate:eH}=L(),{mutate:eG}=E(),{mutate:eq}=A(R,C),{mutate:eK}=F({filePath:R,lineMarkersKey:C,onSuccess:()=>{ef(!1),eS(!1),eA()}}),ez=(0,y.useCallback)(()=>{eS(!0);let e=(0,V.u)(eC,er?.sourceContentFromDiffLines??””);if(!e.isValid){e_(e.errorMessage),eS(!1);return}eK({commentId:String(S.databaseId),body:eC,bodyVersion:S.bodyVersion},{onError:()=>{eS(!1),eu({type:”error”,message:”Failed to update comment”})}})},[eu,eC,S,er?.sourceContentFromDiffLines,eK]),eW=S.databaseId?.toString(),eZ=eW?`${N}${eW}`:void 0,eQ=eZ&&h.fV?new URL(`${h.fV.pathname}#${eZ}`,h.fV.origin).toString():””,eX=(0,y.useRef)(null);(0,M.u)({isAnchorable:e,commentId:eW,commentAnchor:eZ,containerRef:eX});let eJ=t>0,eY=t>1,e0=em?”editing”:eh?”hidden”:”visible”,e1={headingProps:{as:ec},avatarUrl:S.author?.avatarUrl??eo.avatarUrl,comment:{…S,url:eQ,referenceText:S.reference.text??`#${S.reference.number}`},commentRef:eX,deleteComment:eB,editComment:()=>{ef(!0)},editHistoryComponent:void 0,hideComment:e=>{if(!S.databaseId)throw Error(“Comment not found”);eV({commentDatabaseId:S.databaseId,reason:e},{onError:()=>{eS(!1),eF(“Failed to hide comment”)},onSuccess:()=>ep(!0)})},onBlock:(e,t,n,i,a,r)=>eH({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>eF(“Failed to block user”),onSuccess:()=>{t&&ep(!0)}}),onUnblock:(e,t)=>eG({organizationLogin:e,userLogin:t},{onError:()=>eF(“Failed to unblock user”)}),onMinimize:ep,onSuccessfulBlock:()=>{setTimeout(()=>h.cg?.location.reload(),800)},isMinimized:eh,commentAuthorLogin:S.author?.login??eo.login,navigate:u.l,commentSubjectAuthorLogin:S.reference?.author?.login??””,onReplySelect:et,unhideComment:()=>{if(!S.databaseId)throw Error(“Comment not found”);eU({commentDatabaseId:S.databaseId},{onError:()=>{eS(!1),eF(“Failed to unhide comment”)},onSuccess:()=>ep(!1)})},hideActions:P,isReply:eJ,forceInlineAvatar:!0,containerStyle:{},originalDiffPathUri:ed,isOutdated:r,commentAuthorSlug:”copilot”===S.reviewVariantType?”copilot-pull-request-reviewer”:void 0,commentAuthorType:”copilot”===S.reviewVariantType?l.S.Bot:void 0},e2=(0,y.useMemo)(()=>(0,ex.E7)(),[]);return(0,i.jsx)(eb.tL,{commands:{“pull-requests-diff-view:quote-reply”:()=>{if(em)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;et((0,ev.E)(eX?.current,t,S.body))}},children:(0,i.jsxs)(“div”,{ref:eX,id:e?eZ:void 0,tabIndex:n?Y?0:-1:0,”data-first-thread-comment”:J,”data-marker-navigation-comment-thread-id”:ei,”data-marker-navigation-comment-id”:S.id,…Y?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:eJ?void 0!==ea?`Reply ${t} to Comment ${ea}`:`Reply ${t}`:void 0!==ea?`Comment ${ea}`:”Comment”}:{},className:(0,v.$)(H,e&&G,”hidden”===e0&&”pb-2″),children:[eY&&(0,i.jsx)(“div”,{className:q,”data-is-reply”:eJ,children:(0,i.jsx)(“div”,{className:K})}),(0,i.jsx)(“div”,{className:z,”data-is-nested-reply”:eY,children:(0,i.jsx)(l.v,{…e1,commentBody:S.body,threadCommentCount:en,isInDialogMode:Y,actions:P?void 0:(0,i.jsx)($.RelayEnvironmentProvider,{environment:e2,children:(0,i.jsx)(o.p,{…e1})}),isOutdated:r})}),eP&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),eP]}),(0,i.jsxs)(“div”,{className:q,”data-is-reply”:eJ,children:[eJ&&(0,i.jsx)(“div”,{className:W,”data-is-last-child”:a}),”editing”===e0&&(0,i.jsx)(“div”,{className:(0,v.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,eJ?”pl-0″:”pl-2″),children:(0,i.jsxs)(U.S,{ref:eE,label:”Update comment”,value:eC,onChange:e=>{ek({text:e}),ew(e),e_(void 0)},onPrimaryAction:ez,suggestedChangesConfig:er,markdownErrorMessage:eI,children:[(0,i.jsx)(s.xR,{variant:”default”,onClick:()=>{ef(!1),eA(),ew(S.body)},children:”Cancel”}),(0,i.jsx)(s.xR,{disabled:eN||!eC.length,loading:eN,variant:”primary”,onClick:ez,children:”Update”})]})}),”visible”===e0&&(0,i.jsxs)(“div”,{className:X,”data-is-reply”:eJ,children:[S.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:eT,className:(0,v.$)(“markdown-body”,Z,Q),”comment-testid”:`Comment body html for comment ${S.id}`,html:S.bodyHTML}),”copilot”===S.reviewVariantType&&(0,i.jsxs)(“p”,{className:”text-small color-fg-muted mt-2 mb-1″,children:[(0,i.jsx)(“a”,{target:”_blank”,rel:”noopener noreferrer”,className:”Link–inTextBlock”,href:”https://docs.github.com/en/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review”,children:”Copilot”}),” “,”uses AI. Check for mistakes.”]}),(0,i.jsxs)(“div”,{className:”d-flex flex-direction-column gap-2″,children:[“copilot”===S.reviewVariantType&&(0,i.jsx)(“div”,{className:”mt-2″,children:(0,i.jsx)(c.Z,{commentUrl:S.url,commentId:S.databaseId?.toString()??””})}),S.reactionGroups&&(0,i.jsx)(“div”,{className:”d-flex flex-direction-column mt-2″,children:(0,i.jsx)(m.P,{ref:eO,reactionGroups:S.reactionGroups,onReact:(e,t)=>{if(!S.databaseId)throw Error(“Comment not found”);setTimeout(()=>eO.current?.focus(),0),eq({commentDatabaseId:S.databaseId,threadId:ei,reaction:e,viewerHasReacted:t},{onError:()=>{eS(!1),eu({type:”error”,message:”Failed to react to comment”})}})},canReact:S.viewerCanReact})})]}),es&&(0,i.jsx)(eg,{comment:S,commentBodyRef:eT,filePath:R,isOutdated:r,isThreadResolved:j,databaseId:S.databaseId,suggestedChangesConfig:er,applySuggestedChangesValidationData:es,viewerCanApplySuggestion:el?.viewerCanApplySuggestion})]}),ey&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:eL,onClose:e=>{“confirm”===e?(eD(!0),eM({commentId:S.id,threadId:ei,filePath:R},{onError:()=>{ej(!1),eu({type:”error”,message:”Failed to delete comment”}),eD(!1)}})):(T&&I?.(T),ej(!1),eD(!1))},children:”Are you sure you want to delete this comment?”})]})]})]})})};function ej(){setTimeout(eC,800)}function eC(){return h.cg?.location.reload()}try{ey.displayName||(ey.displayName=”ReviewThreadComment”)}catch{}},65787:(e,t,n)=>{n.d(t,{U:()=>r});let i=e=>{let t=getComputedStyle(e,null);return!!t&&”function”==typeof t.getPropertyValue&&[“overflow”,”overflow-y”,”overflow-x”].some(e=>{let n=t.getPropertyValue(e);return”auto”===n||”scroll”===n})},a=(e,t)=>e&&null!==e.parentNode?a(e.parentNode,t.concat([e])):t;function r(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(let t of a(e.parentNode,[]))if((t instanceof HTMLElement||t instanceof SVGElement)&&i(t))return t;return document.scrollingElement||document.documentElement}}},66446:(e,t,n)=>{n.d(t,{j:()=>s});var i=n(34418),a=n(99279),r=n(86320);let s=a.G.createQueryRouteConfig(“pullRequestsLayoutRoute”,{path:”/:owner/:repo/pull/:pr_number”,queries:[(0,r.Y)(),{queryName:”tabCounts”,queryDeps:({params:e})=>({pathname:`/${e.owner}/${e.repo}/pull/${e.pr_number}/page_data/tab_counts`}),queryFn:async e=>(0,i.X)(e)},{queryName:”diffstat”,queryDeps:({params:e})=>({pathname:`/${e.owner}/${e.repo}/pull/${e.pr_number}/page_data/diffstat`}),queryFn:async e=>(0,i.X)(e)}]})},66559:(e,t,n)=>{n.d(t,{g:()=>r,n:()=>s});var i=n(99279),a=n(86320);let r=i.G.createQueryRouteConfig(“pullRequestsChangesRoute”,{path:”/:owner/:repo/pull/:pr_number/changes”,queries:[(0,a.Y)()]}),s=i.G.createQueryRouteConfig(“pullRequestsChangesWithRangeRoute”,{path:”/:owner/:repo/pull/:pr_number/changes/:range”,queries:[(0,a.Y)()]})},68874:(e,t,n)=>{n.d(t,{o:()=>u,V:()=>c});var i=n(74848),a=n(69497),r=n(12683);let s=[{unit:”month”,ms:2592e6},{unit:”day”,ms:864e5},{unit:”hour”,ms:36e5},{unit:”minute”,ms:6e4},{unit:”second”,ms:1e3}],l=new Intl.DateTimeFormat(void 0,{year:”numeric”,month:”short”,day:”numeric”,hour:”numeric”,minute:”numeric”,second:void 0,timeZoneName:”short”}),o=new Intl.DateTimeFormat(void 0,{year:”numeric”,month:”short”,day:”numeric”}),d=new Intl.DateTimeFormat(void 0,{month:”short”,day:”numeric”});function c(e,t=!0){let n=””,i=new Date,a=i.getTime()-e.getTime(),r=s.find(e=>e.ms1?”s”:””} ago`}else{let a=e.getFullYear()===i.getFullYear()?d:o;n=`${t?”on “:””}${a.format(e)}`}return n}function u({timestamp:e,usePreposition:t=!0,linkUrl:n,sx:s}){let o=c(e,t),d=l.format(e);return n?(0,i.jsx)(r.N_,{sx:{…s},href:n,target:”_blank”,className:”Ago-module__AgoTimestampLink–cfwj_”,children:(0,i.jsx)(a.A,{inline:!0,title:d,children:(0,i.jsx)(“span”,{title:d,className:”Ago-module__timestampText–rtBsS”,children:o})})}):(0,i.jsx)(a.A,{inline:!0,title:d,children:(0,i.jsx)(r.EY,{title:d,sx:s,children:o})})}try{u.displayName||(u.displayName=”Ago”)}catch{}},69510:(e,t,n)=>{n.d(t,{XG:()=>c,_l:()=>m});var i=n(68273),a=n(16522),r=n(65510),s=n(20622),l=n(96379);function o(e){return null!==e&&”object”==typeof e&&”previewInfo”in e}function d(e){return{thread:{id:e.threadId,isResolved:e.isResolved,isOutdated:e.isOutdated,line:e.line,subjectType:e.subjectType,subject:e.subject,commentsData:e.commentsData},previewInfo:{threadId:e.threadId,commentId:e.commentId,path:e.path,threadPreviewComments:e.threadPreviewComments,originalDiffPathUri:e.originalDiffPathUri,firstComment:e.firstComment,subject:e.subject}}}function c(e){return[s.uT.threadPreviews,e]}function u(e){let t=`${e}/page_data/${s.uT.threadPreviews}`;return{queryKey:c(e),queryFn:async()=>{let e=await (0,l.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);let n=await e.json();return n.length>0&&!o(n[0])?n.map(d):n}}}let m=(0,i.Z6)()?function(e){let t,n,i,s=(0,a.c)(8),{pathName:l,initialData:c}=e;s[0]!==l?(t=u(l),s[0]=l,s[1]=t):t=s[1];let{queryFn:m,queryKey:f}=t;s[2]!==c?(n=c&&c.length>0&&!o(c[0])?c.map(d):c,s[2]=c,s[3]=n):n=s[3];let h=n;return s[4]!==m||s[5]!==f||s[6]!==h?(i={queryKey:f,queryFn:m,initialData:h,staleTime:1/0},s[4]=m,s[5]=f,s[6]=h,s[7]=i):i=s[7],(0,r.U)(i)}:function({pathName:e,initialData:t}){let{queryFn:n,queryKey:i}=u(e),a=t&&t.length>0&&!o(t[0])?t.map(d):t;return(0,r.U)({queryKey:i,queryFn:n,initialData:a,staleTime:1/0})}},69759:(e,t,n)=>{n.d(t,{B:()=>i});function i(e,t){let n=e.createElement(“template”);return n.innerHTML=t,e.importNode(n.content,!0)}},70109:(e,t,n)=>{n.d(t,{S:()=>d});var i=n(74848),a=n(68273),r=n(16522),s=n(42118),l=n(96540),o=n(27011);let d=(0,l.forwardRef)((0,a.GV)()?(e,t)=>{let n,a,l,d,c,u,m,f=(0,r.c)(21);f[0]!==e?({children:n,…a}=e,f[0]=e,f[1]=n,f[2]=a):(n=f[1],a=f[2]);let h=(0,o.Yp)(),{baseRepository:p}=(0,o.GK)(),g=(0,o.L3)();f[3]!==h.id?(l={id:h.id},f[3]=h.id,f[4]=l):l=f[4];let x=`${p.ownerLogin}/${p.name}`;f[5]!==p.id||f[6]!==x?(d={databaseId:p.id,nwo:x,slashCommandsEnabled:!1},f[5]=p.id,f[6]=x,f[7]=d):d=f[7],f[8]!==g.effectiveRange.baseOid||f[9]!==g.effectiveRange.headOid?(c={startCommitOid:g.effectiveRange.baseOid,endCommitOid:g.effectiveRange.headOid},f[8]=g.effectiveRange.baseOid,f[9]=g.effectiveRange.headOid,f[10]=c):c=f[10],f[11]!==h.number||f[12]!==l||f[13]!==d||f[14]!==c?(u={type:”pull_request”,id:l,pullRequestNumber:h.number,repository:d,comparison:c},f[11]=h.number,f[12]=l,f[13]=d,f[14]=c,f[15]=u):u=f[15];let b=u;return f[16]!==n||f[17]!==t||f[18]!==a||f[19]!==b?(m=(0,i.jsx)(s.hF,{…a,ref:t,placeholder:”Leave a comment”,actions:n,subject:b,showLabel:!1}),f[16]=n,f[17]=t,f[18]=a,f[19]=b,f[20]=m):m=f[20],m}:({children:e,…t},n)=>{let a=(0,o.Yp)(),{baseRepository:r}=(0,o.GK)(),l=(0,o.L3)(),d={type:”pull_request”,id:{id:a.id},pullRequestNumber:a.number,repository:{databaseId:r.id,nwo:`${r.ownerLogin}/${r.name}`,slashCommandsEnabled:!1},comparison:{startCommitOid:l.effectiveRange.baseOid,endCommitOid:l.effectiveRange.headOid}};return(0,i.jsx)(s.hF,{…t,ref:n,placeholder:”Leave a comment”,actions:e,subject:d,showLabel:!1})});d.displayName=”ConversationCommentBox”},71317:(e,t,n)=>{n.d(t,{k:()=>a});var i=n(71315);function a(e,t=0){if(void 0===i.XC)return;let n=i.XC.getElementById(“screenReaderAnnouncementDiv”)??void 0;if(n||(n=function(){if(void 0===i.XC)return;let e=i.XC.createElement(“div”);return e.classList.add(“sr-only”,”mt-n1″),e.id=”screenReaderAnnouncementDiv”,e.setAttribute(“role”,”alert”),e.setAttribute(“data-testid”,”screenReaderAnnouncement”),e.setAttribute(“aria-live”,”assertive”),i.XC.body.appendChild(e),e}()),!n)return;let r=n.textContent===e?`${e}\u00A0`:e;setTimeout(()=>{n&&(n.textContent=r)},t)}},72501:(e,t,n)=>{n.d(t,{V:()=>s,c:()=>r});var i=n(99279),a=n(86320);let r=i.G.createQueryRouteConfig(“pullRequestsFilesRoute”,{path:”/:owner/:repo/pull/:pr_number/files”,queries:[(0,a.Y)()]}),s=i.G.createQueryRouteConfig(“pullRequestsFilesWithRangeRoute”,{path:”/:owner/:repo/pull/:pr_number/files/:range”,queries:[(0,a.Y)()]})},73262:(e,t,n)=>{n.d(t,{K:()=>c});var i=n(74848),a=n(16522),r=n(96540),s=n(21373),l=n(34164),o=n(48505),d=n(18373);function c(e){let t,n,c,u,m,f,h,p,g,x,b=(0,a.c)(21),{automatedComment:v,isButtonDisabled:y,dismissError:j,onDismiss:C,onReopen:w,className:N}=e,[S,L]=(0,r.useState)(!1),{isDismissable:D,isReopenable:I,resourceName:_,toggleButtonLabel:R}=(f=(0,a.c)(6),p=!(h=v.isDismissed),g=”alert”,v.source===o.vk.CodeQuality&&(g=”finding”),x=h?`Reopen ${g}`:`Dismiss ${g}`,f[0]!==p||f[1]!==h||f[2]!==h||f[3]!==g||f[4]!==x?(m={isDismissed:h,isDismissable:p,isReopenable:h,resourceName:g,toggleButtonLabel:x},f[0]=p,f[1]=h,f[2]=h,f[3]=g,f[4]=x,f[5]=m):m=f[5],m),k=y||!v.viewerCanDismiss,A=y||!v.viewerCanReopen;return b[0]!==v||b[1]!==S||b[2]!==j||b[3]!==C?(t=S&&(0,i.jsx)(d.U,{setOpen:L,count:1,error:j,dismissalOptions:v.dismissalOptions,onSubmit:e=>{let{resolution:t,dismissalComment:n}=e;return C({reason:t,resolutionNote:n},{onSuccess:()=>L(!1)})},delegatedAlertDismissalEnabled:!1,codeSecurity:v.source===o.vk.CodeScanning}),b[0]=v,b[1]=S,b[2]=j,b[3]=C,b[4]=t):t=b[4],b[5]!==N||b[6]!==k||b[7]!==D||b[8]!==_||b[9]!==R?(n=D&&(0,i.jsxs)(“div”,{className:(0,l.$)(“d-flex flex-items-center flex-wrap”,N),children:[(0,i.jsx)(s.Q,{“aria-label”:R,className:”mr-2″,onClick:()=>L(!0),disabled:k,children:R}),(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[“Dismissing the “,_,” will mark this conversation as resolved.”]})]}),b[5]=N,b[6]=k,b[7]=D,b[8]=_,b[9]=R,b[10]=n):n=b[10],b[11]!==N||b[12]!==A||b[13]!==I||b[14]!==w||b[15]!==R?(c=I&&(0,i.jsx)(“div”,{className:(0,l.$)(“d-flex flex-items-center flex-wrap”,N),children:(0,i.jsx)(s.Q,{“aria-label”:R,onClick:w,disabled:A,children:R})}),b[11]=N,b[12]=A,b[13]=I,b[14]=w,b[15]=R,b[16]=c):c=b[16],b[17]!==t||b[18]!==n||b[19]!==c?(u=(0,i.jsxs)(i.Fragment,{children:[t,n,c]}),b[17]=t,b[18]=n,b[19]=c,b[20]=u):u=b[20],u}try{c.displayName||(c.displayName=”BaseAutomatedReviewCommentActions”)}catch{}},73870:(e,t,n)=>{n.d(t,{$:()=>s});var i=n(55514),a=n(99279),r=n(86320);let s=a.G.createQueryRouteConfig(“pullRequestsConversationsRoute”,{path:”/:owner/:repo/pull/:pr_number”,queries:[(0,r.Y)(),(0,i.D)({partialName:”Conversation”,queryDeps:({pathname:e})=>({pathname:`${e}/partials/conversation`})}),(0,i.D)({partialName:”Sidebar”,queryDeps:({pathname:e})=>({pathname:`${e}/partials/sidebar`})})],index:!0})},75735:(e,t,n)=>{n.d(t,{_:()=>s});var i=n(5570),a=n(37351),r=n(44953);function s(e,t,n,s){return(0,a._)(e,t),(0,r._)(n,”set”),(0,i._)(e,n,s),s}},79036:(e,t,n)=>{n.d(t,{S:()=>c,Xh:()=>d,GF:()=>u});var i=n(74848),a=n(68273),r=n(16522),s=n(34164),l=n(48505);let o=”AnnotationIcon-module__AnimatedAnnotationIcon–rXSEJ”;function d({annotationLevel:e,…t}){let{icon:n,…a}=u[e];return function({fill:e,stroke:t,ariaLabel:n,svgHtml:a,className:r}){return(0,i.jsx)(“svg”,{“aria-label”:n,className:r,fill:e,height:”24″,stroke:t,strokeLinecap:”round”,strokeLinejoin:”round”,strokeWidth:”2″,style:{boxShadow:”none”},viewBox:”0 0 24 24″,width:”24″,xmlns:”http://www.w3.org/2000/svg”,children:a})}({…n,…a,…t})}let c=(0,a.GV)()?function(e){let t,n,a,l,c=(0,r.c)(8);return c[0]!==e?({className:t,…n}=e,c[0]=e,c[1]=t,c[2]=n):(t=c[1],n=c[2]),c[3]!==t?(a=(0,s.$)(o,t),c[3]=t,c[4]=a):a=c[4],c[5]!==n||c[6]!==a?(l=(0,i.jsx)(d,{…n,className:a}),c[5]=n,c[6]=a,c[7]=l):l=c[7],l}:function({className:e,…t}){return(0,i.jsx)(d,{…t,className:(0,s.$)(o,e)})},u={[l.UZ.Failure]:{priority:1,ariaLabel:”Check failure”,primaryColor:”danger.fg”,primaryColorClass:”fgColor-danger”,borderColor:”borderColor-danger-emphasis”,icon:{fill:”var(–bgColor-danger-emphasis, var(–color-danger-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”15″,x2:”9″,y1:”9″,y2:”15″}),(0,i.jsx)(“line”,{x1:”9″,x2:”15″,y1:”9″,y2:”15″})]})}},[l.UZ.Warning]:{priority:2,ariaLabel:”Check warning”,primaryColor:”attention.fg”,primaryColorClass:”fgColor-attention”,borderColor:”borderColor-attention-emphasis”,icon:{fill:”var(–bgColor-attention-emphasis, var(–color-attention-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”8″,y2:”12″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”16″,y2:”16″})]})}},[l.UZ.Notice]:{priority:3,ariaLabel:”Check notice”,primaryColor:”fg.muted”,primaryColorClass:”fgColor-muted”,borderColor:”fgColor-muted”,icon:{fill:”var(–bgColor-neutral-emphasis, var(–color-neutral-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”16″,y2:”12″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”8″,y2:”8″})]})}}};try{d.displayName||(d.displayName=”AnnotationIcon”)}catch{}try{c.displayName||(c.displayName=”AnimatedAnnotationIcon”)}catch{}},80081:(e,t,n)=>{n.d(t,{EJ:()=>a,Lm:()=>r,o_:()=>i});function i({suggestedChange:e,hasCommitRange:t,isOutdated:n,isPending:i,isResolved:a,pullRequestIsClosed:r,pullRequestIsInMergeQueue:s,userCanApplySuggestion:l,applySuggestedChangesValidationData:o,suggestedChangesConfig:d}){let{lineRange:c}=o;if(n)return{isValid:!1,reason:”This suggestion is outdated and cannot be applied.”};if(i)return{isValid:!1,reason:”This suggestion is part of a pending comment and cannot be applied.”};if(a)return{isValid:!1,reason:”This suggestion is part of a resolved comment and cannot be applied.”};if(r)return{isValid:!1,reason:”This suggestion cannot be applied because the pull request is closed.”};if(s)return{isValid:!1,reason:”This suggestion cannot be applied because the pull request is queued to merge.”};if(!l)return{isValid:!1,reason:”You do not have permission to apply this suggestion.”};if(!c)return{isValid:!1,reason:”This suggestion does not have a valid line range.”};if(t)return{isValid:!1,reason:”Unable to apply suggestions when viewing a specific commit range.”};if(!d)return{isValid:!1,reason:”Unable to determine the validity of this suggestion.”};if(!d?.isValidSuggestionRange)return{isValid:!1,reason:”Unable to apply suggestions on deleted lines.”};let u=d?.sourceContentFromDiffLines,m=e.suggestion.join(`
`);return 0!==e.suggestion.length&&m===u?{isValid:!1,reason:”This suggestion is invalid because no changes were made to the code.”}:{isValid:!0}}function a(e,t){return t.length>=50?{isValid:!1,reason:”Unable to commit due to too many changes in the batch.”}:t.find(t=>t.threadId===e.threadId)||function(e,t){for(let a of t)if(e.path===a.path){var n,i;return n=e.lineRange,i=a.lineRange,n.endLineNumber>=i.startLineNumber&&n.startLineNumber<=i.endLineNumber}return!1}(e,t)?{isValid:!1,reason:"Unable to commit due to other pending changes affecting this line."}:{isValid:!0}}function r(e){if(!e||e.subjectType?.toUpperCase()!=="LINE")return;let t=e.positioning??e.subject;if(!t)return;let n=t.startDiffSide??t.endDiffSide;if(!n||"isOutdated"in t&&t.isOutdated||!t.endLine||!t.endDiffSide)return;let i=t.startLine??t.endLine;return{endLineNumber:t.endLine,endOrientation:t.endDiffSide,startLineNumber:i,startOrientation:n||"RIGHT"}}},81070:(e,t,n)=>{n.d(t,{X:()=>s});var i=n(74848),a=n(12683),r=n(96540);function s({children:e,onObserve:t,onUnobserve:n,sx:s,…l}){let o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(o.current){let e=o.current;return t?.(e),()=>n?.(e)}},[o,t,n]),(0,i.jsx)(a.az,{sx:s,…l,ref:o,children:e})}try{s.displayName||(s.displayName=”ObservableBox”)}catch{}},81075:(e,t,n)=>{n.d(t,{_:()=>s});var i=n(50894),a=n(37351),r=n(44953);function s(e,t,n){return(0,a._)(e,t),(0,r._)(n,”get”),(0,i._)(e,n)}},82130:(e,t,n)=>{n.d(t,{q:()=>l});var i=n(68273),a=n(16522),r=n(30459),s=n(96540);let l=(0,i.Z6)()?function(){let e,t,n=(0,a.c)(4),{sendAnalyticsEvent:i}=(0,r.s)();n[0]!==i?(e=(e,t,n)=>{i(e,t,void 0===n?{}:n)},n[0]=i,n[1]=e):e=n[1];let s=e;return n[2]!==s?(t={sendPullRequestAnalyticsEvent:s},n[2]=s,n[3]=t):t=n[3],t}:function(){let{sendAnalyticsEvent:e}=(0,r.s)();return{sendPullRequestAnalyticsEvent:(0,s.useCallback)((t,n,i={})=>{e(t,n,i)},[e])}}},82603:(e,t,n)=>{n.d(t,{dG:()=>u,hG:()=>h,o5:()=>m});var i=n(68273),a=n(16522),r=n(96540),s=n(97286),l=n(65510),o=n(96379),d=n(20622);function c(e){return{queryKey:[d.uT.codeowners,e],queryFn:async()=>{let t=`${e}/page_data/${d.uT.codeowners}`,n=await (0,o.QJ)(t);if(!n.ok)throw Error(`HTTP ${n.status}`);return await n.json()},staleTime:1/0}}let u=(0,i.Z6)()?function(e){let t,n,i=(0,a.c)(6),{basePath:r,initialData:l}=e;i[0]!==r?(t=c(r),i[0]=r,i[1]=t):t=i[1];let{queryFn:o,queryKey:d}=t;return i[2]!==l||i[3]!==o||i[4]!==d?(n={queryKey:d,queryFn:o,initialData:l,staleTime:1/0},i[2]=l,i[3]=o,i[4]=d,i[5]=n):n=i[5],(0,s.I)(n)}:function({basePath:e,initialData:t}){let{queryFn:n,queryKey:i}=c(e);return(0,s.I)({queryKey:i,queryFn:n,initialData:t,staleTime:1/0})},m=(0,i.Z6)()?function(e){let t,n,i,r=(0,a.c)(8),{basePath:s,diffPath:o}=e;r[0]!==s?(t=c(s),r[0]=s,r[1]=t):t=r[1];let{queryFn:d,queryKey:u}=t;r[2]!==o?(n=e=>h({codeownersData:e,diffPath:o}),r[2]=o,r[3]=n):n=r[3];let m=n;return r[4]!==d||r[5]!==u||r[6]!==m?(i={queryKey:u,queryFn:d,staleTime:1/0,select:m},r[4]=d,r[5]=u,r[6]=m,r[7]=i):i=r[7],(0,l.U)(i)}:function({basePath:e,diffPath:t}){let{queryFn:n,queryKey:i}=c(e);return(0,l.U)({queryKey:i,queryFn:n,staleTime:1/0,select:(0,r.useCallback)(e=>h({codeownersData:e,diffPath:t}),[t])})},f={isOwnedByViewer:!1,owners:[],ruleLineNumber:void 0,ruleUrl:void 0};function h({diffPath:e,codeownersData:t}){if(!t)return f;let n=t.ownershipByPath[e];return n?{isOwnedByViewer:n.isOwnedByViewer,owners:n.owners||[],ruleLineNumber:n.ruleLineNumber,ruleUrl:n.ruleUrl}:f}},83873:(e,t,n)=>{n.d(t,{v:()=>T,n:()=>E});var i=n(74848),a=n(68273),r=n(96540),s=n(71323),l=n(97283),o=n(87134),d=n(1932),c=n(21132),u=n(15697);function m({diffSummaries:e,diffSummariesArray:t,loadedPathDigests:n,loadingPathDigests:i,selectedPathDigest:a}){let r=!0,s=t??Object.values(e),l=s.findIndex(e=>e.pathDigest===a);return s.map(({path:e,pathDigest:t},a)=>{let s,o;switch(!0){case n.has(t):s=c.s.Loaded;break;case i.has(t):s=c.s.Loading;break;default:s=c.s.NotLoaded}let d=!1;return s===c.s.Loaded?(o=”RENDER”,d=!1):(a===l?(o=”EAGER_AUTO_LOAD”,d=!0):(o=ae.loadSolo&&e.loadingStatus===c.s.NotLoaded);if(t)return[t]}let i=t?e.findIndex(e=>e.pathDigest===t.pathDigest):e.findIndex(e=>e.loadingStatus===c.s.NotLoaded);if(-1===i)return[];let a=e[i];if(a&&a.loadSolo&&a.loadingStatus===c.s.NotLoaded)return[a];let r=[];for(let t=i;t=4))break}return r}var h=n(70170),p=n(56092),g=n(91747),x=n(61583),b=n(79472),v=n(43362),y=n(48845),j=n(20622),C=n(96379),w=n(16235),N=n(69599);function S({basePath:e,effectiveRange:t,hideWhitespace:n}){return[j.uT.diffEntries,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`,`hideWhitespace:${n}`]}async function L(e){let t=(0,w.S)(),n=S(e),i=await I(e);return i&&i.length>0&&t.setQueryData(n,(0,d.jM)(e=>{if(!e)return i;for(let t of i)e.find(e=>e.pathDigest===t.pathDigest)||e.push(t)})),i}async function D(e){let t,n=(0,w.S)(),i=S(e),a=n.getQueryData(i);if(a?.length){let n=new Set(a.map(e=>e.path));if(0===(t=e.paths.filter(e=>!n.has(e))).length)return a}else t=e.paths;let r=await I({…e,paths:t});return r&&r.length>0&&n.setQueryData(i,(0,d.jM)(e=>{if(!e)return r;for(let t of r)e.find(e=>e.pathDigest===t.pathDigest)||e.push(t)})),(n.getQueryData(i)||[]).filter(t=>e.paths.includes(t.path))}async function I({basePath:e,fullDiff:t,effectiveRange:n,paths:i,contextRanges:a,signal:r,hideWhitespace:s,isComparisonOutdated:l}){let o=new URLSearchParams,d=i.map(e=>encodeURIComponent(e));if(o.append(“paths”,d.join(“,”)),a){let e=i.map(e=>(a[e]??[]).map(([e,t])=>`${e}-${t}`).join(“,”)).join(“:”);o.append(“ctx”,e)}o.append(“w”,s?”1″:”0″),n.baseOid===t.baseOid?o.append(“range”,n.headOid):o.append(“range”,`${n.baseOid}..${n.headOid}`),l&&o.append(“outdated”,”1″);let c=`${e}/page_data/${j.uT.diffEntries}?${o.toString()}`;try{let e=await (0,C.Sr)(c,{signal:r});if(r?.aborted)return;let t=await (0,y.hp)(e);return(0,y.R)(e,t),t??void 0}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw e}}function _(e,t,n,i){return[j.uT.diffContextLines,e,t,n,i]}async function R({contextLineRanges:e,basePath:t,path:n,w:i=”0″,fullDiff:a,effectiveRange:r}){let s=new URLSearchParams;for(let t of(s.append(“path”,n),e))s.append(“context_line_ranges[]”,JSON.stringify(t));s.append(“w”,i),r.baseOid===a.baseOid?s.append(“range”,r.headOid):s.append(“range”,`${r.baseOid}..${r.headOid}`);let l=`${t}/page_data/${j.uT.diffContextLines}?${s.toString()}`,o=await (0,C.QJ)(l);if(o.ok)return await o.json()??void 0}var k=n(88008);let A=(0,r.createContext)(null),E=(0,a.Z6)()?function(e){let t=(0,r.useContext)(A);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,s.P)(t,e)}:function(e){let t=(0,r.useContext)(A);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,s.P)(t,e)},T=({initData:e,children:t})=>{var n,a,s,l,o,d;let c,u,m=(0,r.useRef)(null),f=(0,g.u)(“prx_files_lite_throttle”),h=(0,g.u)(“prx_files_medium_throttle”),p=(0,b.Qn)(e.user.viewSettings.hideWhitespace),y=e.user.viewSettings.commentsPreference,j=(0,v.Wp)(e.diffSummaries),C=(0,v.Be)(e.diffSummaries),N=(0,v.wm)(e.viewerPendingReview),L=(0,v.Sl)(e.diffContents),D=(0,v.jH)(e.markers,e.diffSummaries),I=(0,k.Ol)(e.pullRequest.pathName,e.pullRequest.comparison.headOid);return m.current||(n=e.comparison.selectedRange?.baseOid,a=e.comparison.selectedRange?.headOid,s=e.pullRequest.pathName,l=e.diffContents,o=e.pullRequest.comparison,d=p,c=(0,w.S)(),u=S({basePath:s,effectiveRange:{baseOid:n??o.baseOid,headOid:a??o.headOid},hideWhitespace:d}),c.setQueryData(u,l),m.current=O({baseOid:e.pullRequest.comparison.baseOid,headOid:e.pullRequest.comparison.headOid,selectedCommitRange:e.comparison.selectedRange,comparisonView:e.comparison.viewing,changeGroupGeneration:e.changeGroupGeneration,hideWhitespace:p,isSingleFileMode:e.isSingleFileMode,collapsedFilesMap:C,initialSummariesViewedStatus:C,initialSummariesViewedCount:e.user.viewedFilesCount,diffEntries:L,commentsPreference:y,initialDiffSummaries:j,initialLoadedPathDigests:new Set(e.diffContents.map(e=>e.pathDigest)),markers:D,basePath:e.pullRequest.pathName,pendingReview:N,prxFilesLiteThrottle:f,prxFilesMediumThrottle:h,pullRequest:e.pullRequest,baseRepository:e.repository,selectedPathDigest:(0,x.jU)((0,x.o9)()),initialActiveBatch:I.length>0?I:void 0,showChangeGroupPreference:e.user.viewSettings.showChangeGroups})),(0,i.jsx)(A.Provider,{value:m.current,children:t})},O=e=>(0,l.y)()((0,o.lt)((…t)=>({…(({changeGroupGeneration:{canAccessChangeGroups:e,changeGroups:t,changeGroupFeedbackOptions:n,latestChangeGroupOrchestration:i,changeGroupGenerationChannel:a,unavailableReason:r},showChangeGroupPreference:s})=>l=>({changeGroupGeneration:{canAccessChangeGroups:e,changeGroups:t,changeGroupFeedbackOptions:n,latestChangeGroupOrchestration:i,changeGroupGenerationChannel:a,unavailableReason:r},showChangeGroupPreference:s,changeGroupGenerationActions:{updateChangeGroupGeneration:e=>l(t=>({changeGroupGeneration:{…t.changeGroupGeneration,…e},showChangeGroupPreference:t.showChangeGroupPreference}),void 0,”updateChangeGroupGeneration”),updateChangeGroupPreference:e=>l(t=>({changeGroupGeneration:t.changeGroupGeneration,showChangeGroupPreference:e}),void 0,”updateChangeGroupPreference”)}}))(e)(…t),…((e,t)=>({codeowners:void 0,codeownersActions:{setCodeowners:t=>{e({codeowners:t},void 0,”updateCodeowners”)}}}))(…t),…(({baseOid:e,headOid:t,selectedCommitRange:n,comparisonView:i,hideWhitespace:a})=>r=>({comparisonInfo:{fullDiff:{baseOid:e,headOid:t},selectedRange:n,effectiveRange:n??{baseOid:e,headOid:t},hideWhitespace:a,comparisonView:i},isComparisonOutdated:!1,comparisonInfoActions:{updateWhitespace:e=>r(t=>({comparisonInfo:{…t.comparisonInfo,hideWhitespace:e}}),void 0,”comparisonInfo#updateWhitespace”),markComparisonOutdated:()=>r(()=>({isComparisonOutdated:!0}),void 0,”comparisonInfo#markComparisonOutdated”)}}))(e)(…t),…((e,t)=>({diffFilter:{state:{activeChangeGroupId:void 0,filterText:””,fileExtensions:{},unselectedFileExtensions:new Set,showDeletedFiles:!0,showOnlyManifestFiles:!1,showOnlyOwnedFiles:!1,showVendoredFiles:!0,showViewedFiles:!0},filtersInteractedWith:!1},diffFilterActions:{updateDiffFilter:(n,i)=>{e({diffFilter:{…t().diffFilter,state:{…t().diffFilter.state,…n},filtersInteractedWith:t().diffFilter.filtersInteractedWith||!!i}},void 0,”updateFilters”)},clearAllFilters:()=>{e({diffFilter:{…t().diffFilter,state:{…t().diffFilter.state,filterText:””,unselectedFileExtensions:new Set,showOnlyOwnedFiles:!1,showDeletedFiles:!0,showOnlyManifestFiles:!1,showVendoredFiles:!0,showViewedFiles:!0},filtersInteractedWith:!0}},void 0,”clearAllFilters”)}}}))(…t),…(({initialDiffSummaries:e,initialSummariesViewedStatus:t,initialSummariesViewedCount:n})=>(i,a)=>({diffSummaries:e,summariesViewedCount:n,summariesViewedStatus:t,codeowners:void 0,getPathDigestFromThreadID:e=>{for(let t of Object.values(a().diffSummaries))if(t.markersMap){for(let[n,i]of Object.entries(t.markersMap))if(i.threads.some(t=>Number(t.id)===Number(e)))return t.pathDigest}},getPathDigestFromAnnotationID:e=>{for(let t of Object.values(a().diffSummaries))if(t.markersMap){for(let[n,i]of Object.entries(t.markersMap))if(i.annotations.some(t=>t.id===e))return t.pathDigest}},diffSummariesActions:{setDiffSummaries:e=>{i({diffSummaries:e},void 0,”updateDiffSummaries”)},setDiffViewed:(e,t)=>{i(n=>n.diffSummaries?{summariesViewedStatus:(0,d.jM)(n.summariesViewedStatus,n=>{n[e]=t}),summariesViewedCount:n.summariesViewedCount+(t?1:-1),diffSummaries:(0,d.jM)(n.diffSummaries,n=>{n[e]&&(n[e].markedAsViewed=t)})}:n)},onCommentThreadAdded:({path:e,diffLineKey:t,startPosition:n,threadID:a})=>{i((0,d.jM)(i=>{if(!i.diffSummaries)return;let r=i.diffSummaries[e];if(!r)return;let s=r.markersMap??{};s[t]||(s[t]={threads:[],annotations:[]}),s[t].threads.push({id:parseInt(a),start:n}),r.totalCommentsCount=(r.totalCommentsCount||0)+1}),void 0,”commentAddedForDiffSummary”)},onCommentThreadDeleted:({path:e,threadID:t})=>{i((0,d.jM)(n=>{if(!n.diffSummaries)return;let i=n.diffSummaries[e];if(i&&i?.totalCommentsCount&&i?.markersMap)for(let[e,n]of Object.entries(i.markersMap))n.threads=n.threads.filter(e=>e.id!==parseInt(t)),0===n.threads.length&&0===n.annotations.length&&delete i.markersMap[e]}),void 0,”commentDeletedForDiffSummary”)}}}))(e)(…t),…(({markers:e})=>(t,n)=>({markers:e,getThread:(e,t,i)=>{let a=n().markers;if(a)return a[t]?.[i]?.threads?.find(t=>Number(t.id)===e)},getThreadFromCommentID:e=>{let t=n().markers;if(!t)return;let i=Object.values(t).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??[]));if(i){for(let t of Object.values(i))if(t?.commentsData?.comments.some(t=>t.databaseId===e))return t}},getAnnotationFromID:e=>{let t=n().markers;if(!t)return;let i=Object.values(t).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??[]));if(i){for(let t of Object.values(i))if(t.databaseId===e)return t}},markersActions:{updateThread:(e,i,a,r)=>{let s=n().markers;if(!s)return;let l=r(s[i]?.[a]?.threads?.find(t=>Number(t.id)===e));l&&t({markers:(0,d.jM)(s,t=>{let n=t[i]?.[a]?.threads?.findIndex(t=>Number(t.id)===e);if(void 0===n||-1===n)t[i]||(t[i]={}),t[i][a]||(t[i][a]={threads:[],annotations:[]}),t[i][a].threads.push(l);else if(t[i]&&t[i][a]&&-1!==n){let e=l.positioning??t[i][a].threads[n]?.positioning,r=l.subject??t[i][a].threads[n]?.subject,s={…l,positioning:e,subject:r};t[i][a].threads[n]=s}})},void 0,”updateThread”)},updateThreads:e=>{let i=n().markers;i&&t({markers:(0,d.jM)(i,t=>{for(let n of Object.keys(i)){let i=t[n];if(i)for(let t of Object.keys(i)){let n=i[t];if(!n)continue;let a=n.threads;a&&(n.threads=e(a))}}})})},deleteThreadComment:(e,i,a,r)=>{let s=”not_found”,l=n().markers;return l&&t({markers:(0,d.jM)(l,t=>{let n=t[a]?.[r]?.threads?.find(t=>Number(t.id)===e);if(!n){s=”not_found”;return}let l=n.commentsData,o=l?.comments.filter(e=>e.id!==i)??[];if(!l||l.comments.length===o.length){s=”not_found”;return}if(0===o.length){s=”thread_deleted”;let n=t[a]?.[r]?.threads;if(n){let t=n.findIndex(t=>Number(t.id)===e);-1!==t&&n.splice(t,1)}}else s=”comment_deleted”,l&&(l.comments=o)})},void 0,”deleteThreadComment”),s},updateThreadComment:({threadID:e,filePath:i,lineMarkersKey:a,match:r,transform:s})=>{let l=n().markers;l&&t({markers:(0,d.jM)(l,t=>{let n,l=t[i]?.[a]?.threads?.find(t=>Number(t.id)===e);if(!l)return;let o=l.commentsData,d=o?.comments.findIndex(r);”number”==typeof d&&-1!==d&&(n=o?.comments[d]);let c=s(n);c&&(-1===d||”number”!=typeof d?o?.comments.push(c):o&&o.comments&&(o.comments[d]=c))})},void 0,”updateThreadComment”)}}}))(e)(…t),…(({prxFilesLiteThrottle:e,prxFilesMediumThrottle:t,initialDiffSummaries:n,initialLoadedPathDigests:i,selectedPathDigest:a})=>(r,s)=>{let l;return l=t?100:50*!!e,{entries:m({diffSummaries:n,loadedPathDigests:i,loadingPathDigests:new Set,selectedPathDigest:a}),selectedPathDigest:a,getSelectedPathDigest:()=>s().selectedPathDigest,progressiveDiffQueue:[],queueRunning:!1,internalProgressiveDiffsActions:{loadSelectedEntries:(0,h.n)(async e=>{if(0===e.length)return;let t=e.map(e=>e.path),n=e.map(e=>e.pathDigest),i=s().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),a=s().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);r(e=>({entries:m({diffSummaries:e.diffSummaries,loadedPathDigests:new Set(i),loadingPathDigests:new Set([…a,…n]),selectedPathDigest:e.selectedPathDigest})}),void 0,”loadSelectedEntries#preFetch”);let{loadDiffEntries:l}=s().diffEntriesActions,o=(0,u.i)({paths:new Set(t),diffSummaries:s().diffSummaries}),d=await l({paths:t,contextRanges:o});if(!d||0===d.length){let e=[…s().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest)],t=s().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);return r({entries:m({diffSummaries:s().diffSummaries,loadedPathDigests:new Set(e),loadingPathDigests:new Set(t),selectedPathDigest:s().selectedPathDigest})},void 0,”loadSelectedEntries#postFetch#noAPIData”)}let f=d.map(e=>e.pathDigest),h=[…s().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),…f],p=s().entries.filter(e=>e.loadingStatus===c.s.Loading).filter(e=>!f.includes(e.pathDigest)).map(e=>e.pathDigest);r(e=>({…e,entries:m({diffSummaries:s().diffSummaries,loadedPathDigests:new Set(h),loadingPathDigests:new Set(p),selectedPathDigest:s().selectedPathDigest})}),void 0,”loadSelectedEntries#postFetch”)},l),enqueue:e=>{r(t=>({…t,progressiveDiffQueue:[…t.progressiveDiffQueue,e]}),void 0,”enqueue”)},processQueue:async()=>{let e=()=>(0,p.H)(()=>s().internalProgressiveDiffsActions.processQueue(),{timeout:20}),t=s().progressiveDiffQueue;if(0===t.length)return s().entries?.some(e=>e.loadingStatus===c.s.Loading||e.loadingStatus===c.s.NotLoaded)?e():r(e=>({…e,queueRunning:!1}),void 0,”stopQueue”);let[n,…i]=t.filter((e,t,n)=>t===n.findIndex(t=>t.startingAt.path===e.startingAt.path));r(e=>({…e,progressiveDiffQueue:i}),void 0,”processQueue#cleanQueue”);let a=f({progressiveDiffEntries:s().entries,startingAt:n?.startingAt,preferAnySoloEntry:n?.preferAnySoloEntry});return await s().internalProgressiveDiffsActions.loadSelectedEntries(a),e()}},progressiveDiffsActions:{startQueue:()=>{s().queueRunning||(r(e=>({…e,queueRunning:!0}),void 0,”startQueue”),s().internalProgressiveDiffsActions.processQueue())},loadMore:async(e,{preferAnySoloEntry:t}={})=>{if(e)return s().internalProgressiveDiffsActions.enqueue({startingAt:e,preferAnySoloEntry:t});let n=f({progressiveDiffEntries:s().entries,startingAt:e,preferAnySoloEntry:t});return s().internalProgressiveDiffsActions.loadSelectedEntries(n)},updateSelectedPathDigest:e=>{r(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigest”)},updateSelectedPathDigestAndFetch:e=>{r(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigestAndFetch”);let t=s().entries.find(t=>t.pathDigest===e);if(t&&t.loadingStatus!==c.s.Loaded)return s().internalProgressiveDiffsActions.loadSelectedEntries([t])}}}})(e)(…t),…(({collapsedFilesMap:e})=>(t,n)=>({collapsedFilesMap:e,getCollapsedDiffStatus:e=>n().collapsedFilesMap?.[e]??!1,filesCollapsedStatusActions:{updateFileCollapsedStatus:(e,i)=>{let a=n().collapsedFilesMap;a&&t({collapsedFilesMap:(0,d.jM)(a,t=>{t[e]=i})},void 0,”updateFileCollapsedStatus”)},updateAllFilesCollapsedStatus:e=>{let i=n().collapsedFilesMap;i&&t({collapsedFilesMap:(0,d.jM)(i,t=>{for(let n of Object.keys(t))t[n]=e})},void 0,”updateAllFilesCollapsedStatus”)}}}))(e)(…t),…(({pendingReview:e})=>(t,n)=>({pendingReview:e,pendingReviewActions:{addPendingComment:e=>{let i=n().pendingReview;i&&t({pendingReview:(0,d.jM)(i,t=>{t.pendingReviewIDs||(t.pendingReviewIDs=[]),t.pendingReviewIDs.push(e)})},void 0,”addPendingComment”)},removePendingComment:e=>{let i=n().pendingReview;i&&t({pendingReview:(0,d.jM)(i,t=>{let n=t.pendingReviewIDs?.filter(t=>t!==e);t.pendingReviewIDs=n})},void 0,”removePendingComment”)},clearPendingReview:()=>{let e=n().pendingReview;e&&t({pendingReview:(0,d.jM)(e,e=>{e.id=void 0,e.pendingReviewIDs=[],e.comments=[]})},void 0,”clearPendingReview”)}}}))(e)(…t),…(({basePath:e,diffEntries:t,baseOid:n,headOid:i,selectedCommitRange:a})=>(r,s)=>{let l=a??{baseOid:n,headOid:i},o=(0,w.S)();for(let[n,i]of Object.entries(t)){let t=_(e,i.path,l.baseOid,l.headOid);o.setQueryData(t,()=>i.diffLines)}return{diffEntries:t,diffEntriesActions:{updateDiffEntries:t=>{let n=s().diffEntries??{},i={};for(let n of t){let t=_(e,n.path,s().comparisonInfo.effectiveRange.baseOid,s().comparisonInfo.effectiveRange.headOid);o.setQueryData(t,n.diffLines),i[n.path]=n}r({diffEntries:(0,d.jM)(n,e=>{for(let t of Object.keys(i))i[t]&&(e[t]=i[t])})},void 0,”updateDiffEntriesInMap”)},loadDiffEntries:async t=>{var n;let i=await (n={basePath:e,…t,…s().comparisonInfo,isComparisonOutdated:s().isComparisonOutdated},(0,N.G7)(“pr_sfv_new_diff_fetch”)?D(n):L(n));return i&&0!==i.length?(s().diffEntriesActions.updateDiffEntries(i),i):[]},fetchContextLines:async({path:t,contextLineRanges:n,w:i=”0″})=>{let a=_(e,t,s().comparisonInfo.effectiveRange.baseOid,s().comparisonInfo.effectiveRange.headOid),l=s().diffEntries[t];l&&await o.fetchQuery({queryKey:a,queryFn:async()=>{let d=await R({contextLineRanges:n,basePath:e,path:t,w:i,…s().comparisonInfo}),c=l.diffLines,u=o.setQueryData(a,e=>c=function(e,t){let n=new Map;for(let t of e){let e=`${t.left}-${t.right}`;n.set(e,t)}return t.map(e=>{let t=`${e.left}-${e.right}`,i=n.get(t);return i?{…e,position:i.position,displayNoNewLineWarning:i.displayNoNewLineWarning}:{…e,position:null,threadsData:void 0}})}(e??l.diffLines,d?.diffEntryLines??[]));return r(e=>({…e,diffEntries:{…e.diffEntries,[t]:{…l,diffLines:c}}}),void 0,”addContextLinesToDiffEntry”),u}})}}}})(e)(…t),…(({markers:e})=>(t,n)=>{let i,a,r=(0,x.Gl)(),s=(0,x.e3)();if(e){if(r){let t=Object.values(e||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??[]));if(t){let e=Number(r);for(let n of Object.values(t)){let t=n?.commentsData?.comments;if(n&&t)for(let r of t)Number(r.databaseId)===e&&(i=n.id,a=e)}}}else if(s){let t=Object.values(e).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??[]));if(t){let e=Number(s);for(let n of Object.values(t))Number(n.databaseId)===e&&(i=n.id)}}}return{markerAndDiffNavigation:{markerId:i,commentId:a,getCommentId:()=>n().markerAndDiffNavigation.commentId,getMarkerId:()=>n().markerAndDiffNavigation.markerId},markerAndDiffNavigationActions:{navigateToSelectedComment:e=>{let i=n().getThreadFromCommentID(e);if(i){let a=n().getPathDigestFromThreadID(i.id);n().progressiveDiffsActions.updateSelectedPathDigestAndFetch(a),t(t=>({markerAndDiffNavigation:{…t.markerAndDiffNavigation,commentId:e,markerId:i?.id}}))}},navigateToSelectedAnnotation:e=>{let i=n().getAnnotationFromID(e);if(i){let a=n().getPathDigestFromAnnotationID(e);n().progressiveDiffsActions.updateSelectedPathDigestAndFetch(a),t(e=>({markerAndDiffNavigation:{…e.markerAndDiffNavigation,commentId:void 0,markerId:i.id}}))}},handleHashUpdate:()=>{let e=(0,x.Gl)(),t=(0,x.e3)(),i=(0,x.jU)(window.location.hash),a=n(),r=a.markerAndDiffNavigation.commentId,s=a.markerAndDiffNavigation.markerId,l=a.selectedPathDigest;if(e&&e!==r)a.markerAndDiffNavigationActions.navigateToSelectedComment(e);else if(t){let e=a.getAnnotationFromID(t),n=e?.id;n&&n!==s&&a.markerAndDiffNavigationActions.navigateToSelectedAnnotation(t)}else i&&i!==l?a.progressiveDiffsActions.updateSelectedPathDigestAndFetch(i):e||t||i||!l||a.progressiveDiffsActions.updateSelectedPathDigestAndFetch(void 0)}}}})(e)(…t),…(({isSingleFileMode:e,commentsPreference:t})=>n=>({isSingleFileMode:e,commentsPreference:t,settingsActions:{updateCommentsPreference:e=>{n(()=>({commentsPreference:e}))}}}))(e)(…t),…(({pullRequest:e})=>(t,n)=>({pullRequest:{state:e.state,basePath:e.pathName,id:e.id,number:e.number},pullRequestActions:{updatePullRequestState:e=>{t({pullRequest:{…n().pullRequest,state:e}},void 0,”pullRequest#updatePullRequestState”)}}}))(e)(…t),…(({baseRepository:e})=>()=>({repository:{baseRepository:{id:e.id,ownerLogin:e.ownerLogin,name:e.name}}}))(e)(…t),…(t=>({suggestionBatch:{activeBatch:e.initialActiveBatch??[],isSuggestionBatchPending:(e.initialActiveBatch?.length??0)>0},suggestionBatchActions:{addSuggestionToBatch:e=>t(t=>{if(t.suggestionBatch.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex))return t;let n=[…t.suggestionBatch.activeBatch,e];return{suggestionBatch:{…t.suggestionBatch,activeBatch:n,isSuggestionBatchPending:n.length>0}}}),removeSuggestionFromBatch:e=>t(t=>{let n=t.suggestionBatch.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex);return{suggestionBatch:{…t.suggestionBatch,activeBatch:n,isSuggestionBatchPending:n.length>0}}}),clearSuggestionBatch:()=>t(e=>({suggestionBatch:{…e.suggestionBatch,activeBatch:[],isSuggestionBatchPending:!1}})),loadActiveBatchFromStorage:e=>t(t=>({suggestionBatch:{…t.suggestionBatch,activeBatch:e,isSuggestionBatchPending:e.length>0}}))}}))(…t)}),{name:”pull-request-store”}));try{A.displayName||(A.displayName=”PullRequestStoreContext”)}catch{}try{T.displayName||(T.displayName=”PullRequestStoreProvider”)}catch{}},85933:(e,t,n)=>{function i(){return!!document.querySelector(‘react-app[data-lazy=”true”]’)}function a(){return!!document.querySelector(‘react-app[data-alternate=”true”]’)}function r(){return!!document.querySelector(“header.AppHeader”)}function s(){return performance.getEntriesByType(“resource”).some(e=>”fetch”===e.initiatorType&&e.name.includes(“_graphql?”))}function l(){return performance.getEntriesByType(“resource”).some(e=>”script”===e.initiatorType)}n.d(t,{Dk:()=>r,NT:()=>c,X:()=>d,_:()=>i,aE:()=>s,u$:()=>a,xF:()=>l}),n(69599);let o=null;function d(){return o}function c(e){o=e}},86909:(e,t,n)=>{n.d(t,{YH:()=>S,Gt:()=>N,Vv:()=>R});var i,a=n(74848),r=n(68273),s=n(16522),l=n(77430),o=n(73017),d=n(38621),c=n(26108),u=n(98552),m=n(69497),f=n(21373),h=n(34164),p=n(48505);let g=”Annotation-module__annotation–KlX5M”,x=”Annotation-module__annotationSource–fZyli”,b=”Annotation-module__annotationMessage–gFM9M”,v=”Annotation-module__inlineReviewThreadHeading–Qj9j8″;var y=n(79036),j=n(96540),C=n(82075),w=n(71315);let N={[p.UZ.Failure]:(0,a.jsx)(d.StopIcon,{className:”fgColor-danger mr-2″}),[p.UZ.Warning]:(0,a.jsx)(d.AlertIcon,{className:”fgColor-attention mr-2″}),[p.UZ.Notice]:(0,a.jsx)(d.InfoIcon,{className:”fgColor-muted mr-2″})},S=(0,r.GV)()?function(e){let t,n,i,r,p,v,j,C=(0,s.c)(31),{annotation:w,inSidePanel:N}=e,S=N?”h3″:”h2″,{isCollapsed:L,handleToggleCollapsed:_}=R(w),k=y.GF[w.annotationLevel];return C[0]!==k.borderColor?(t=(0,h.$)(“p-1 bgColor-default”,k.borderColor,g),C[0]=k.borderColor,C[1]=t):t=C[1],C[2]!==_||C[3]!==N||C[4]!==L?(n=!N&&(0,a.jsx)(c.K,{“aria-label”:L?”Expand annotation”:”Collapse annotation”,icon:L?d.ChevronRightIcon:d.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:_}),C[2]=_,C[3]=N,C[4]=L,C[5]=n):n=C[5],C[6]!==w||C[7]!==N?(i=!N&&(0,a.jsx)(D,{annotation:w}),C[6]=w,C[7]=N,C[8]=i):i=C[8],C[9]!==w||C[10]!==N?(r=N&&(0,a.jsx)(I,{annotation:w}),C[9]=w,C[10]=N,C[11]=r):r=C[11],C[12]!==n||C[13]!==i||C[14]!==r?(p=(0,a.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[n,i,r]}),C[12]=n,C[13]=i,C[14]=r,C[15]=p):p=C[15],C[16]!==S||C[17]!==w.annotationLevel||C[18]!==w.appAvatarAltText||C[19]!==w.appAvatarUrl||C[20]!==w.checkRun||C[21]!==w.checkSuiteName||C[22]!==w.message||C[23]!==w.title||C[24]!==N||C[25]!==L?(v=(!L||N)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(“div”,{className:”ml-4 mt-2″,children:w.title&&(0,a.jsx)(u.A,{weight:”semibold”,size:”medium”,className:y.GF[w.annotationLevel].primaryColorClass,children:w.title})}),(0,a.jsxs)(S,{className:”sr-only”,children:[y.GF[w.annotationLevel].ariaLabel,”: “,w.title]}),(0,a.jsx)(“div”,{className:”mb-3 mt-1 ml-4″,children:w.message&&(0,a.jsx)(o.$6,{html:w.message,className:b})}),(0,a.jsxs)(“div”,{className:”d-flex flex-items-center flex-justify-between ml-4 pr-2 pb-2″,children:[(0,a.jsxs)(“div”,{className:x,children:[(0,a.jsx)(l.r,{src:w.appAvatarUrl,alt:w.appAvatarAltText}),(0,a.jsxs)(m.A,{className:”ml-2″,maxWidth:”300px”,inline:!0,title:`${w.checkSuiteName} / ${w.checkRun.name}`,children:[(0,a.jsx)(u.A,{weight:”semibold”,size:”small”,children:w.checkSuiteName}),” “,”/ “,(0,a.jsx)(u.A,{size:”small”,children:w.checkRun.name})]})]}),w.checkRun.detailsUrl&&(0,a.jsx)(f.Q,{as:”a”,href:w.checkRun.detailsUrl,size:”small”,children:”View details”})]})]}),C[16]=S,C[17]=w.annotationLevel,C[18]=w.appAvatarAltText,C[19]=w.appAvatarUrl,C[20]=w.checkRun,C[21]=w.checkSuiteName,C[22]=w.message,C[23]=w.title,C[24]=N,C[25]=L,C[26]=v):v=C[26],C[27]!==t||C[28]!==p||C[29]!==v?(j=(0,a.jsxs)(“div”,{className:t,children:[p,v]}),C[27]=t,C[28]=p,C[29]=v,C[30]=j):j=C[30],j}:function({annotation:e,inSidePanel:t}){let n=(0,j.useMemo)(()=>t?”h3″:”h2″,[t]),{isCollapsed:i,handleToggleCollapsed:r}=R(e);return(0,a.jsxs)(“div”,{className:(0,h.$)(“p-1 bgColor-default”,y.GF[e.annotationLevel].borderColor,g),children:[(0,a.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[!t&&(0,a.jsx)(c.K,{“aria-label”:i?”Expand annotation”:”Collapse annotation”,icon:i?d.ChevronRightIcon:d.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:r}),!t&&(0,a.jsx)(D,{annotation:e}),t&&(0,a.jsx)(I,{annotation:e})]}),(!i||t)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(“div”,{className:”ml-4 mt-2″,children:e.title&&(0,a.jsx)(u.A,{weight:”semibold”,size:”medium”,className:y.GF[e.annotationLevel].primaryColorClass,children:e.title})}),(0,a.jsxs)(n,{className:”sr-only”,children:[y.GF[e.annotationLevel].ariaLabel,”: “,e.title]}),(0,a.jsx)(“div”,{className:”mb-3 mt-1 ml-4″,children:e.message&&(0,a.jsx)(o.$6,{html:e.message,className:b})}),(0,a.jsxs)(“div”,{className:”d-flex flex-items-center flex-justify-between ml-4 pr-2 pb-2″,children:[(0,a.jsxs)(“div”,{className:x,children:[(0,a.jsx)(l.r,{src:e.appAvatarUrl,alt:e.appAvatarAltText}),(0,a.jsxs)(m.A,{className:”ml-2″,maxWidth:”300px”,inline:!0,title:`${e.checkSuiteName} / ${e.checkRun.name}`,children:[(0,a.jsx)(u.A,{weight:”semibold”,size:”small”,children:e.checkSuiteName}),” “,”/ “,(0,a.jsx)(u.A,{size:”small”,children:e.checkRun.name})]})]}),e.checkRun.detailsUrl&&(0,a.jsx)(f.Q,{as:”a”,href:e.checkRun.detailsUrl,size:”small”,children:”View details”})]})]})]})},L=(0,r.GV)()?function(e){let t,n=(0,s.c)(2),{children:i}=e;return n[0]!==i?(t=(0,a.jsx)(“span”,{className:”text-semibold fgColor-default”,children:i}),n[0]=i,n[1]=t):t=n[1],t}:function({children:e}){return(0,a.jsx)(“span”,{className:”text-semibold fgColor-default”,children:e})},D=(0,r.GV)()?function(e){let t,n,i=(0,s.c)(6),{annotation:r}=e,l=N[r.annotationLevel],o=y.GF[r.annotationLevel];return i[0]!==r.endLine?(t=(0,a.jsxs)(L,{children:[“R”,r.endLine]}),i[0]=r.endLine,i[1]=t):t=i[1],i[2]!==l||i[3]!==o.ariaLabel||i[4]!==t?(n=(0,a.jsxs)(“h2″,{className:v,children:[l,o.ariaLabel,” on line”,” “,t]}),i[2]=l,i[3]=o.ariaLabel,i[4]=t,i[5]=n):n=i[5],n}:function({annotation:e}){return(0,a.jsxs)(“h2″,{className:v,children:[N[e.annotationLevel],y.GF[e.annotationLevel].ariaLabel,” on line”,” “,(0,a.jsxs)(L,{children:[“R”,e.endLine]})]})},I=(0,r.GV)()?function(e){let t,n,i=(0,s.c)(3),{annotation:r}=e;i[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,h.$)(v,”ml-4″,”pt-1″,”pl-0″),i[0]=t):t=i[0];let l=y.GF[r.annotationLevel];return i[1]!==l.ariaLabel?(n=(0,a.jsx)(“div”,{className:t,children:(0,a.jsx)(L,{children:l.ariaLabel})}),i[1]=l.ariaLabel,i[2]=n):n=i[2],n}:function({annotation:e}){return(0,a.jsx)(“div”,{className:(0,h.$)(v,”ml-4″,”pt-1″,”pl-0″),children:(0,a.jsx)(L,{children:y.GF[e.annotationLevel].ariaLabel})})};function _(e){return`AnnotationIsCollapsed_${e.path}_${e.endLine}_${e.annotationLevel}_${e.title}`}let R=(0,r.GV)()?function(e){let t,n,i,a,r,l=(0,s.c)(10);l[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,C.A)(“localStorage”),l[0]=t):t=l[0];let o=t,[d,c]=(0,j.useState)(!1);l[1]!==e?(n=()=>{let t=localStorage.getItem(_(e));null!==t&&c(JSON.parse(t))},i=[e],l[1]=e,l[2]=n,l[3]=i):(n=l[2],i=l[3]),(0,j.useEffect)(n,i),l[4]!==e||l[5]!==d?(a=()=>{w.cg?.requestAnimationFrame(()=>{o.setItem(_(e),JSON.stringify(!d))}),c(k)},l[4]=e,l[5]=d,l[6]=a):a=l[6];let u=a;return l[7]!==u||l[8]!==d?(r={isCollapsed:d,handleToggleCollapsed:u},l[7]=u,l[8]=d,l[9]=r):r=l[9],r}:function(e){let t=(0,C.A)(“localStorage”),[n,i]=(0,j.useState)(!1);return(0,j.useEffect)(()=>{let t=localStorage.getItem(_(e));null!==t&&i(JSON.parse(t))},[e]),{isCollapsed:n,handleToggleCollapsed:()=>{w.cg?.requestAnimationFrame(()=>{t.setItem(_(e),JSON.stringify(!n))}),i(e=>!e)}}};function k(e){return!e}try{S.displayName||(S.displayName=”Annotation”)}catch{}try{(i=AnnotationHeadingTag).displayName||(i.displayName=”AnnotationHeadingTag”)}catch{}try{L.displayName||(L.displayName=”Emphasis”)}catch{}try{D.displayName||(D.displayName=”AnnotationBanner”)}catch{}try{I.displayName||(I.displayName=”SidePanelAnnotationBanner”)}catch{}},88008:(e,t,n)=>{n.d(t,{CE:()=>r,Ol:()=>s,hW:()=>l});var i=n(95800);function a(e,t){return`${e}-${t}-active-batch-suggestions`}function r(e,t,n){let r=a(e,t);(0,i.SO)(r,JSON.stringify(n))}function s(e,t){let n=a(e,t),r=(0,i.Gq)(n);if(!r)return[];try{let e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}function l(e,t){let n=a(e,t);(0,i.Ai)(n)}},88440:(e,t,n)=>{n.d(t,{q:()=>te,C:()=>tn});var i=n(74848),a=n(68273),r=n(16522),s=n(50129),l=n(75202),o=n(10583),d=n(16051),c=n(28199),u=n(33195),m=n(21968),f=n(33644),h=n(34164),p=n(81070);let g=”StickyPullRequestHeader-module__prHeader–oDVxB”,x=”StickyPullRequestHeader-module__is-stuck–g4KyZ”,b=”StickyPullRequestHeader-module__prTitleArea–myAMX”,v=”StickyPullRequestHeader-module__stickyHeaderActivationThreshold–t5sQ5″;var y=n(73017);let j=”container-xl px-3 px-md-4 px-lg-5″,C=”px-3 px-md-4 px-lg-5″,w=(0,a.Z6)()?function(e){let t,n,a,s,l,o,w,N,S,L,D,I=(0,r.c)(43),{repository:_,pullRequest:R,pageVariant:k}=e,{isSticky:A,observe:E,unobserve:T}=(0,c.a)(),O=”condensed”===k?j:C,P=A&&x;return I[0]!==P?(t=(0,h.$)(f.A.stickyHeader,g,P,”color-shadow-small”),I[0]=P,I[1]=t):t=I[1],I[2]!==O?(n=(0,h.$)(“flex-items-center justify-center”,O,b),I[2]=O,I[3]=n):n=I[3],I[4]!==R.state?(a=(0,i.jsx)(d.z.LeadingVisual,{children:(0,i.jsx)(u.u,{state:R.state})}),I[4]=R.state,I[5]=a):a=I[5],I[6]!==R.titleHtml?(s=(0,i.jsx)(“a”,{href:”#top”,className:”fgColor-default”,children:(0,i.jsx)(y.JR,{className:”f5 text-bold markdown-title”,html:R.titleHtml})}),I[6]=R.titleHtml,I[7]=s):s=I[7],I[8]!==R.number?(l=(0,i.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,R.number]}),I[8]=R.number,I[9]=l):l=I[9],I[10]!==R.author||I[11]!==R.baseBranch||I[12]!==R.commitsCount||I[13]!==R.headBranch||I[14]!==R.headRepositoryName||I[15]!==R.headRepositoryOwnerLogin||I[16]!==R.id||I[17]!==R.isInAdvisoryRepo||I[18]!==R.mergedBy||I[19]!==R.mergedByName||I[20]!==R.number||I[21]!==R.state||I[22]!==_.id||I[23]!==_.name||I[24]!==_.ownerLogin?(o=(0,i.jsx)(“div”,{className:”f6 text-normal”,children:(0,i.jsx)(m.O,{author:R.author,baseBranch:R.baseBranch,baseRepositoryOwnerLogin:_.ownerLogin,baseRepositoryName:_.name,commitsCount:R.commitsCount,headBranch:R.headBranch,headRepositoryOwnerLogin:R.headRepositoryOwnerLogin,headRepositoryName:R.headRepositoryName,isInAdvisoryRepo:R.isInAdvisoryRepo,mergedBy:R.mergedBy,mergedByName:R.mergedByName,pullRequestId:R.id,pullRequestNumber:R.number,repositoryId:_.id,state:R.state})}),I[10]=R.author,I[11]=R.baseBranch,I[12]=R.commitsCount,I[13]=R.headBranch,I[14]=R.headRepositoryName,I[15]=R.headRepositoryOwnerLogin,I[16]=R.id,I[17]=R.isInAdvisoryRepo,I[18]=R.mergedBy,I[19]=R.mergedByName,I[20]=R.number,I[21]=R.state,I[22]=_.id,I[23]=_.name,I[24]=_.ownerLogin,I[25]=o):o=I[25],I[26]!==s||I[27]!==l||I[28]!==o?(w=(0,i.jsx)(d.z.Title,{className:”lh-condensed”,children:(0,i.jsxs)(“div”,{children:[s,l,o]})}),I[26]=s,I[27]=l,I[28]=o,I[29]=w):w=I[29],I[30]!==n||I[31]!==a||I[32]!==w?(N=(0,i.jsxs)(d.z.TitleArea,{className:n,children:[a,w]}),I[30]=n,I[31]=a,I[32]=w,I[33]=N):N=I[33],I[34]!==t||I[35]!==N?(S=(0,i.jsx)(d.z,{className:t,children:N}),I[34]=t,I[35]=N,I[36]=S):S=I[36],I[37]!==E||I[38]!==T?(L=(0,i.jsx)(p.X,{className:v,onObserve:E,onUnobserve:T}),I[37]=E,I[38]=T,I[39]=L):L=I[39],I[40]!==S||I[41]!==L?(D=(0,i.jsxs)(i.Fragment,{children:[S,L]}),I[40]=S,I[41]=L,I[42]=D):D=I[42],D}:function({repository:e,pullRequest:t,pageVariant:n}){let{isSticky:a,observe:r,unobserve:s}=(0,c.a)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.z,{className:(0,h.$)(f.A.stickyHeader,g,a&&x,”color-shadow-small”),children:(0,i.jsxs)(d.z.TitleArea,{className:(0,h.$)(“flex-items-center justify-center”,”condensed”===n?j:C,b),children:[(0,i.jsx)(d.z.LeadingVisual,{children:(0,i.jsx)(u.u,{state:t.state})}),(0,i.jsx)(d.z.Title,{className:”lh-condensed”,children:(0,i.jsxs)(“div”,{children:[(0,i.jsx)(“a”,{href:”#top”,className:”fgColor-default”,children:(0,i.jsx)(y.JR,{className:”f5 text-bold markdown-title”,html:t.titleHtml})}),(0,i.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,t.number]}),(0,i.jsx)(“div”,{className:”f6 text-normal”,children:(0,i.jsx)(m.O,{author:t.author,baseBranch:t.baseBranch,baseRepositoryOwnerLogin:e.ownerLogin,baseRepositoryName:e.name,commitsCount:t.commitsCount,headBranch:t.headBranch,headRepositoryOwnerLogin:t.headRepositoryOwnerLogin,headRepositoryName:t.headRepositoryName,isInAdvisoryRepo:t.isInAdvisoryRepo,mergedBy:t.mergedBy,mergedByName:t.mergedByName,pullRequestId:t.id,pullRequestNumber:t.number,repositoryId:e.id,state:t.state})})]})})]})}),(0,i.jsx)(p.X,{className:v,onObserve:r,onUnobserve:s})]})};try{w.displayName||(w.displayName=”StickyPullRequestHeader”)}catch{}var N=n(96540),S=n(21373),L=n(26607),D=n(84268),I=n(34261),_=n(11680),R=n(72579);let k=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(4),{pullRequest:s}=e;return a[0]!==s.headBranch?(t=function(e){return e.replace(/[\u007F-\uFFFF]/g,A)}(s.headBranch),a[0]=s.headBranch,a[1]=t):t=a[1],a[2]!==t?(n=(0,i.jsx)(_.l,{“aria-label”:”Hidden Characters Warning Banner”,className:”d-flex flex-row width-full”,variant:”warning”,title:”Hidden character warning”,hideTitle:!0,children:(0,i.jsxs)(_.l.Description,{children:[“The head ref may contain hidden characters:”,” “,(0,i.jsxs)(R.A,{as:”span”,children:[‘”‘,t,'”‘]})]})}),a[2]=t,a[3]=n):n=a[3],n}:function({pullRequest:e}){return(0,i.jsx)(_.l,{“aria-label”:”Hidden Characters Warning Banner”,className:”d-flex flex-row width-full”,variant:”warning”,title:”Hidden character warning”,hideTitle:!0,children:(0,i.jsxs)(_.l.Description,{children:[“The head ref may contain hidden characters:”,” “,(0,i.jsxs)(R.A,{as:”span”,children:[‘”‘,e.headBranch.replace(/[\u007F-\uFFFF]/g,e=>`\\u${`0000${e.charCodeAt(0).toString(16)}`.substr(-4)}`),'”‘]})]})})};function A(e){return`\\u${`0000${e.charCodeAt(0).toString(16)}`.substr(-4)}`}try{k.displayName||(k.displayName=”PullRequestHiddenCharactersBanner”)}catch{}var E=n(81960),T=n(19415),O=n(97665),P=n(94747),F=n(96379);let $=(0,a.Z6)()?function(){let e,t=(0,r.c)(3),n=(0,I.f)(),i=(0,O.jE)();return t[0]!==n||t[1]!==i?(e={networkMode:”always”,mutationFn:B,onSuccess:()=>{i.setQueryData(n,M)}},t[0]=n,t[1]=i,t[2]=e):e=t[2],(0,P.n)(e)}:function(){let e=(0,I.f)(),t=(0,O.jE)();return(0,P.n)({networkMode:”always”,mutationFn:({dismissPath:e})=>(0,F.Sr)(e,{method:”POST”}),onSuccess:()=>{t.setQueryData(e,e=>{let t={…e};return t.bannersData.banners.dependabotAutomatedSecurityUpdates.showOnboardingPopover=!1,t})}})};function M(e){let t={…e};return t.bannersData.banners.dependabotAutomatedSecurityUpdates.showOnboardingPopover=!1,t}function B(e){let{dismissPath:t}=e;return(0,F.Sr)(t,{method:”POST”})}let V=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m=(0,r.c)(21),{onBoardingProps:f}=e,[h,p]=(0,N.useState)(!0),{mutate:g}=$();m[0]!==g||m[1]!==f.dismissNoticePath?(t=()=>{g({dismissPath:f.dismissNoticePath}),p(!1)},m[0]=g,m[1]=f.dismissNoticePath,m[2]=t):t=m[2];let x=t;return m[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(E.A,{as:”h3″,variant:”small”,children:”Your first automated security update”}),a=(0,i.jsx)(“p”,{className:”mt-2 f5″,children:”Dependabot security updates keep your projects secure and up-to-date.”}),m[3]=n,m[4]=a):(n=m[3],a=m[4]),m[5]!==f.repoSettingsPath||m[6]!==f.showOptOut?(s=f.showOptOut&&(0,i.jsxs)(“p”,{children:[“You can opt out at any time in”,” “,(0,i.jsx)(D.A,{inline:!0,href:f.repoSettingsPath,children:”this repository\u2019s settings”})]}),m[5]=f.repoSettingsPath,m[6]=f.showOptOut,m[7]=s):s=m[7],m[8]!==x?(l=(0,i.jsx)(S.Q,{block:!1,onClick:x,children:”Got it!”}),m[8]=x,m[9]=l):l=m[9],m[10]!==f.helpURL?(o=(0,i.jsx)(D.A,{className:”ml-3″,href:f.helpURL,”aria-label”:”Learn more about Dependabot security updates”,children:”Learn more”}),m[10]=f.helpURL,m[11]=o):o=m[11],m[12]!==l||m[13]!==o?(d=(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[l,o]}),m[12]=l,m[13]=o,m[14]=d):d=m[14],m[15]!==s||m[16]!==d?(c=(0,i.jsxs)(T.A.Content,{className:”Popover-message Popover-message–large”,children:[n,a,s,d]}),m[15]=s,m[16]=d,m[17]=c):c=m[17],m[18]!==h||m[19]!==c?(u=(0,i.jsx)(T.A,{className:”mt-2″,open:h,children:c}),m[18]=h,m[19]=c,m[20]=u):u=m[20],u}:function({onBoardingProps:e}){let[t,n]=(0,N.useState)(!0),{mutate:a}=$();return(0,i.jsx)(T.A,{className:”mt-2″,open:t,children:(0,i.jsxs)(T.A.Content,{className:”Popover-message Popover-message–large”,children:[(0,i.jsx)(E.A,{as:”h3″,variant:”small”,children:”Your first automated security update”}),(0,i.jsx)(“p”,{className:”mt-2 f5″,children:”Dependabot security updates keep your projects secure and up-to-date.”}),e.showOptOut&&(0,i.jsxs)(“p”,{children:[“You can opt out at any time in”,” “,(0,i.jsx)(D.A,{inline:!0,href:e.repoSettingsPath,children:”this repository\u2019s settings”})]}),(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[(0,i.jsx)(S.Q,{block:!1,onClick:()=>{a({dismissPath:e.dismissNoticePath}),n(!1)},children:”Got it!”}),(0,i.jsx)(D.A,{className:”ml-3″,href:e.helpURL,”aria-label”:”Learn more about Dependabot security updates”,children:”Learn more”})]})]})})};try{V.displayName||(V.displayName=”PullRequestAutomatedSecurityOnboarding”)}catch{}var U=n(33578);let H=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m=(0,r.c)(28),{dependabotUpdates:f,pullRequest:h}=e;m[0]!==f.securityAlertPath?(t=e=>`${e}`,m[0]=f.securityAlertPath,m[1]=t):t=m[1];let p=t,g=G;m[2]!==f.alertPresent||m[3]!==f.packageName||m[4]!==f.severity||m[5]!==f.singleAlert||m[6]!==p?(n=()=>{if(!f.alertPresent)return”Merging this pull request will resolve a Dependabot alert”;if(f.singleAlert){let e=`Merging this pull request will resolve a ${g(f.severity)} severity ${p(“Dependabot Alert”)} on ${f.packageName}`;return(0,i.jsx)(y.JR,{as:”span”,html:e})}{let e=`Merging this pull request will resolve ${p(“Dependabot Alerts”)} on ${f.packageName} including a ${g(f.severity)} severity alert`;return(0,i.jsx)(y.JR,{as:”span”,html:e})}},m[2]=f.alertPresent,m[3]=f.packageName,m[4]=f.severity,m[5]=f.singleAlert,m[6]=p,m[7]=n):n=m[7];let x=n;m[8]!==h.state?(a=()=>h.state===U.Q.Merged?”resolved”:”would resolve”,m[8]=h.state,m[9]=a):a=m[9];let b=a;m[10]!==f.alertPresent||m[11]!==f.packageName?(s=()=>f.alertPresent?`a Dependabot alert on ${f.packageName}.`:”a Dependabot alert”,m[10]=f.alertPresent,m[11]=f.packageName,m[12]=s):s=m[12];let v=s;m[13]!==v||m[14]!==x||m[15]!==b||m[16]!==h.state?(l=()=>h.state===U.Q.Open?x():`This pull request ${b()} ${v()}`,m[13]=v,m[14]=x,m[15]=b,m[16]=h.state,m[17]=l):l=m[17];let j=l;return m[18]!==j?(o=j(),m[18]=j,m[19]=o):o=m[19],m[20]!==o?(d=(0,i.jsx)(_.l,{“aria-label”:”Automated Security Update Banner”,variant:”info”,title:”Automated security update”,hideTitle:!0,children:(0,i.jsx)(_.l.Description,{children:o})}),m[20]=o,m[21]=d):d=m[21],m[22]!==f.onboardingBannerProps||m[23]!==f.showOnboardingPopover?(c=f.showOnboardingPopover&&(0,i.jsx)(V,{onBoardingProps:f.onboardingBannerProps}),m[22]=f.onboardingBannerProps,m[23]=f.showOnboardingPopover,m[24]=c):c=m[24],m[25]!==d||m[26]!==c?(u=(0,i.jsxs)(“div”,{className:”width-full”,children:[d,c]}),m[25]=d,m[26]=c,m[27]=u):u=m[27],u}:function({dependabotUpdates:e,pullRequest:t}){let n=”Merging this pull request will resolve”,a=”a Dependabot alert”,r=t=>`${t}`,s=e=>`${e}`;return(0,i.jsxs)(“div”,{className:”width-full”,children:[(0,i.jsx)(_.l,{“aria-label”:”Automated Security Update Banner”,variant:”info”,title:”Automated security update”,hideTitle:!0,children:(0,i.jsx)(_.l.Description,{children:(()=>{if(t.state!==U.Q.Open)return`This pull request ${t.state===U.Q.Merged?”resolved”:”would resolve”} ${e.alertPresent?`a Dependabot alert on ${e.packageName}.`:a}`;if(!e.alertPresent)return`${n} ${a}`;if(e.singleAlert){let t=`${n} a ${s(e.severity)} severity ${r(“Dependabot Alert”)} on ${e.packageName}`;return(0,i.jsx)(y.JR,{as:”span”,html:t})}{let t=`${n} ${r(“Dependabot Alerts”)} on ${e.packageName} including a ${s(e.severity)} severity alert`;return(0,i.jsx)(y.JR,{as:”span”,html:t})}})()})}),e.showOnboardingPopover&&(0,i.jsx)(V,{onBoardingProps:e.onboardingBannerProps})]})};function G(e){return`${e}`}try{H.displayName||(H.displayName=”PullRequestAutomatedSecurityUpdateBanner”)}catch{}var q=n(79634),K=n(25407);let z=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d=(0,r.c)(12),{repository:c}=e,u=`${(0,q.X)().helpUrl}/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates#about-automatic-deactivation-of-dependabot-updates`;d[0]!==c.name||d[1]!==c.ownerLogin?(t=(0,K.SHX)({owner:c.ownerLogin,repo:c.name,action:”pulls”}),d[0]=c.name,d[1]=c.ownerLogin,d[2]=t):t=d[2];let m=`${t}/app%2Fdependabot`;return d[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(“br”,{}),d[3]=n):n=d[3],d[4]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(“b”,{children:”@dependabot rebase.”}),d[4]=a):a=d[4],d[5]!==m?(s=(0,i.jsx)(D.A,{inline:!0,href:m,children:”See open Dependabot pull requests”}),d[5]=m,d[6]=s):s=d[6],d[7]!==u?(l=(0,i.jsx)(D.A,{inline:!0,href:u,children:”learn more about pausing of activity.”}),d[7]=u,d[8]=l):l=d[8],d[9]!==s||d[10]!==l?(o=(0,i.jsx)(_.l,{className:”d-flex flex-row width-full”,variant:”warning”,title:”Dependabot updates are paused”,children:(0,i.jsx)(_.l.Description,{children:(0,i.jsxs)(“p”,{children:[`We noticed you haven’t used Dependabot in a while, so we’ve paused automated Dependabot
updates for this repository.`,n,”To resume updates, merge a Dependabot pull request or use “,” “,a,”.”,”\xa0″,s,” “,”or”,”\xa0″,l]})})}),d[9]=s,d[10]=l,d[11]=o):o=d[11],o}:function({repository:e}){let t=`We noticed you haven’t used Dependabot in a while, so we’ve paused automated Dependabot
updates for this repository.`,n=`${(0,q.X)().helpUrl}/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates#about-automatic-deactivation-of-dependabot-updates`,a=`${(0,K.SHX)({owner:e.ownerLogin,repo:e.name,action:”pulls”})}/app%2Fdependabot`;return(0,i.jsx)(_.l,{className:”d-flex flex-row width-full”,variant:”warning”,title:”Dependabot updates are paused”,children:(0,i.jsx)(_.l.Description,{children:(0,i.jsxs)(“p”,{children:[t,(0,i.jsx)(“br”,{}),”To resume updates, merge a Dependabot pull request or use “,” “,(0,i.jsx)(“b”,{children:”@dependabot rebase.”}),”.”,”\xa0″,(0,i.jsx)(D.A,{inline:!0,href:a,children:”See open Dependabot pull requests”}),” “,”or”,”\xa0″,(0,i.jsx)(D.A,{inline:!0,href:n,children:”learn more about pausing of activity.”})]})})})};try{z.displayName||(z.displayName=”PullRequestPausedDependabotBanner”)}catch{}let W=(0,a.Z6)()?function(e){let t,n,a,s,l=(0,r.c)(13),{bannersData:o,pullRequest:d,repository:c}=e;return l[0]!==o.banners.hiddenCharacterWarning.render||l[1]!==d?(t=o.banners.hiddenCharacterWarning.render&&(0,i.jsx)(k,{pullRequest:d}),l[0]=o.banners.hiddenCharacterWarning.render,l[1]=d,l[2]=t):t=l[2],l[3]!==o.banners.pausedDependabotUpdate.render||l[4]!==c?(n=o.banners.pausedDependabotUpdate.render&&(0,i.jsx)(z,{repository:c}),l[3]=o.banners.pausedDependabotUpdate.render,l[4]=c,l[5]=n):n=l[5],l[6]!==o.banners.dependabotAutomatedSecurityUpdates||l[7]!==d?(a=o.banners.dependabotAutomatedSecurityUpdates.render&&d.state===U.Q.Open&&(0,i.jsx)(H,{dependabotUpdates:o.banners.dependabotAutomatedSecurityUpdates,pullRequest:d}),l[6]=o.banners.dependabotAutomatedSecurityUpdates,l[7]=d,l[8]=a):a=l[8],l[9]!==t||l[10]!==n||l[11]!==a?(s=(0,i.jsxs)(i.Fragment,{children:[t,n,a]}),l[9]=t,l[10]=n,l[11]=a,l[12]=s):s=l[12],s}:function({bannersData:e,pullRequest:t,repository:n}){return(0,i.jsxs)(i.Fragment,{children:[e.banners.hiddenCharacterWarning.render&&(0,i.jsx)(k,{pullRequest:t}),e.banners.pausedDependabotUpdate.render&&(0,i.jsx)(z,{repository:n}),e.banners.dependabotAutomatedSecurityUpdates.render&&t.state===U.Q.Open&&(0,i.jsx)(H,{dependabotUpdates:e.banners.dependabotAutomatedSecurityUpdates,pullRequest:t})]})};try{W.displayName||(W.displayName=”PullRequestBanners”)}catch{}var Z=n(86877),Q=n(30093),X=n(46251);function J(e){let[t,n]=(0,N.useState)(e),i=(0,N.useRef)(t);return i.current=t,[t,(0,N.useCallback)(e=>{e!==i.current&&n(e)},[])]}var Y=n(20622),ee=n(53885);let et=(0,a.Z6)()?function(){let e,t,n,i=(0,r.c)(8),a=(0,O.jE)(),s=(0,ee.e)(Y.uT.updateTitle),l=(0,I.f)();return i[0]!==s?(e=e=>{let{id:t,title:n}=e;return(0,F.Sr)(s,{method:”PATCH”,body:{id:t,title:n}})},i[0]=s,i[1]=e):e=i[1],i[2]!==l||i[3]!==a?(t=async e=>{let t=await e.json();if(!e.ok)throw Error(t.errors);a.setQueryData(l,e=>({…e,pullRequest:{…e.pullRequest,title:t.pullRequest.title,titleHtml:t.pullRequest.titleHtml}}))},i[2]=l,i[3]=a,i[4]=t):t=i[4],i[5]!==e||i[6]!==t?(n={networkMode:”always”,mutationFn:e,onSuccess:t},i[5]=e,i[6]=t,i[7]=n):n=i[7],(0,P.n)(n)}:function(){let e=(0,O.jE)(),t=(0,ee.e)(Y.uT.updateTitle),n=(0,I.f)();return(0,P.n)({networkMode:”always”,mutationFn:({id:e,title:n})=>(0,F.Sr)(t,{method:”PATCH”,body:{id:e,title:n}}),onSuccess:async t=>{let i=await t.json();if(!t.ok)throw Error(i.errors);e.setQueryData(n,e=>({…e,pullRequest:{…e.pullRequest,title:i.pullRequest.title,titleHtml:i.pullRequest.titleHtml}}))}})};function en(e,t){for(let n in e)if(e[n]!==t[n])return!1;return!0}let ei=(0,a.Z6)()?function(e,t){let n,i,a,s,l=(0,r.c)(11),o=void 0===t?en:t,[d,c]=(0,N.useState)(!1),u=(0,N.useRef)(e),m=(0,N.useRef)(e);l[0]!==o||l[1]!==d?(n=()=>{let e=!o(u.current,m.current);e!==d&&c(e)},l[0]=o,l[1]=d,l[2]=n):n=l[2];let f=n;l[3]!==f?(i=e=>{m.current={…m.current,…e},f()},l[3]=f,l[4]=i):i=l[4];let h=i;l[5]!==f?(a=e=>{u.current={…u.current,…e},f()},l[5]=f,l[6]=a):a=l[6];let p=a;return l[7]!==h||l[8]!==d||l[9]!==p?(s=[d,h,p],l[7]=h,l[8]=d,l[9]=p,l[10]=s):s=l[10],s}:function(e,t=en){let[n,i]=(0,N.useState)(!1),a=(0,N.useRef)(e),r=(0,N.useRef)(e),s=(0,N.useCallback)(()=>{let e=!t(a.current,r.current);e!==n&&i(e)},[t,n]);return[n,(0,N.useCallback)(e=>{r.current={…r.current,…e},s()},[s]),(0,N.useCallback)(e=>{a.current={…a.current,…e},s()},[s])]},ea=”Title can’t be blank”,er=”Edit Pull Request Title”;function es(e){return`Title can’t be longer than 256 characters (currently ${e.length} characters)`}function el(e){return e.trim().length>0&&e.length<=256}let eo=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,h,p,g=(0,r.c)(38),{initialTitle:x,pullRequestNumber:b,onCloseForm:v}=e,[y,j]=(0,N.useState)(x),[C,w]=J(!0),[L,D]=(0,N.useState)(null);g[0]!==x?(t={title:x},g[0]=x,g[1]=t):t=g[1];let[I,_]=ei(t),R=(0,N.useRef)(null),{mutate:k,isPending:A}=et();g[2]!==_||g[3]!==w?(n=e=>{j(e.target.value),_({title:e.target.value}),w(el(e.target.value))},g[2]=_,g[3]=w,g[4]=n):n=g[4];let E=n;g[5]===Symbol.for(“react.memo_cache_sentinel”)?(a=e=>{D(e),R.current?.focus()},g[5]=a):a=g[5];let T=a;g[6]!==I||g[7]!==C||g[8]!==k||g[9]!==v||g[10]!==b||g[11]!==y?(s=e=>{(e.preventDefault(),D(null),C)?C&&!I?v():k({id:b,title:y},{onError:e=>T(e.message),onSuccess:()=>v()}):R.current?.focus()},g[6]=I,g[7]=C,g[8]=k,g[9]=v,g[10]=b,g[11]=y,g[12]=s):s=g[12];let O=s,P=!C||A;g[13]===Symbol.for(“react.memo_cache_sentinel”)?(l={narrow:”vertical”,regular:”horizontal”},g[13]=l):l=g[13],g[14]===Symbol.for(“react.memo_cache_sentinel”)?(o=(0,i.jsx)(Z.A.Label,{visuallyHidden:!0,children:er}),g[14]=o):o=g[14];let F=C?void 0:”error”;return g[15]!==E||g[16]!==F||g[17]!==y?(d=(0,i.jsx)(Q.A,{autoFocus:!0,block:!0,className:”f4″,contrast:!0,onChange:E,ref:R,validationStatus:F,value:y}),g[15]=E,g[16]=F,g[17]=y,g[18]=d):d=g[18],g[19]!==C||g[20]!==L||g[21]!==y?(c=(0,i.jsx)(ed,{isValid:C,saveErrorMessage:L,title:y}),g[19]=C,g[20]=L,g[21]=y,g[22]=c):c=g[22],g[23]!==d||g[24]!==c?(u=(0,i.jsx)(X.B.Item,{grow:!0,children:(0,i.jsxs)(Z.A,{children:[o,d,c]})}),g[23]=d,g[24]=c,g[25]=u):u=g[25],g[26]!==P?(m=(0,i.jsx)(X.B.Item,{children:(0,i.jsx)(S.Q,{name:”Save”,type:”submit”,disabled:P,children:”Save”})}),g[26]=P,g[27]=m):m=g[27],g[28]!==A||g[29]!==v?(f=(0,i.jsx)(X.B.Item,{children:(0,i.jsx)(S.Q,{variant:”invisible”,onClick:v,disabled:A,children:”Cancel”})}),g[28]=A,g[29]=v,g[30]=f):f=g[30],g[31]!==m||g[32]!==f?(h=(0,i.jsx)(X.B.Item,{children:(0,i.jsxs)(X.B,{direction:”horizontal”,gap:”condensed”,children:[m,f]})}),g[31]=m,g[32]=f,g[33]=h):h=g[33],g[34]!==O||g[35]!==u||g[36]!==h?(p=(0,i.jsxs)(X.B,{direction:l,gap:”condensed”,as:”form”,onSubmit:O,children:[u,h]}),g[34]=O,g[35]=u,g[36]=h,g[37]=p):p=g[37],p}:function({initialTitle:e,pullRequestNumber:t,onCloseForm:n}){let[a,r]=(0,N.useState)(e),[s,l]=J(!0),[o,d]=(0,N.useState)(null),[c,u]=ei({title:e}),m=(0,N.useRef)(null),{mutate:f,isPending:h}=et(),p=!s||h;return(0,i.jsxs)(X.B,{direction:{narrow:”vertical”,regular:”horizontal”},gap:”condensed”,as:”form”,onSubmit:e=>{(e.preventDefault(),d(null),s)?s&&!c?n():f({id:t,title:a},{onError:e=>{d(e.message),m.current?.focus()},onSuccess:()=>n()}):m.current?.focus()},children:[(0,i.jsx)(X.B.Item,{grow:!0,children:(0,i.jsxs)(Z.A,{children:[(0,i.jsx)(Z.A.Label,{visuallyHidden:!0,children:er}),(0,i.jsx)(Q.A,{autoFocus:!0,block:!0,className:”f4″,contrast:!0,onChange:e=>{r(e.target.value),u({title:e.target.value}),l(el(e.target.value))},ref:m,validationStatus:s?void 0:”error”,value:a}),(0,i.jsx)(ed,{isValid:s,saveErrorMessage:o,title:a})]})}),(0,i.jsx)(X.B.Item,{children:(0,i.jsxs)(X.B,{direction:”horizontal”,gap:”condensed”,children:[(0,i.jsx)(X.B.Item,{children:(0,i.jsx)(S.Q,{name:”Save”,type:”submit”,disabled:p,children:”Save”})}),(0,i.jsx)(X.B.Item,{children:(0,i.jsx)(S.Q,{variant:”invisible”,onClick:n,disabled:h,children:”Cancel”})})]})})]})},ed=(0,a.Z6)()?function(e){let t,n=(0,r.c)(8),{isValid:a,saveErrorMessage:s,title:l}=e;n[0]!==l?(t=function(){return 0===l.trim().length?ea:l.length>256?es(l):void 0},n[0]=l,n[1]=t):t=n[1];let o=t;if(a)if(!s)return null;else{let e;return n[6]!==s?(e=(0,i.jsx)(Z.A.Validation,{variant:”error”,children:s}),n[6]=s,n[7]=e):e=n[7],e}{let e,t;return n[2]!==o?(e=o(),n[2]=o,n[3]=e):e=n[3],n[4]!==e?(t=(0,i.jsx)(Z.A.Validation,{variant:”error”,children:e}),n[4]=e,n[5]=t):t=n[5],t}}:function({isValid:e,saveErrorMessage:t,title:n}){return e?t?(0,i.jsx)(Z.A.Validation,{variant:”error”,children:t}):null:(0,i.jsx)(Z.A.Validation,{variant:”error”,children:0===n.trim().length?ea:n.length>256?es(n):void 0})};try{eo.displayName||(eo.displayName=”PullRequestEditTitleForm”)}catch{}try{ed.displayName||(ed.displayName=”DisplayError”)}catch{}var ec=n(38621),eu=n(57478),em=n(1481),ef=n(66108),eh=n(61526),ep=n(69599),eg=n(43073),ex=n(13360),eb=n(97286);let ev=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{basePageDataUrl:n}=(0,s.Yu)(),i=`basePageDataURL:${n}`;return t[0]!==i?(e=[Y.uT.tabCounts,i],t[0]=i,t[1]=e):e=t[1],e}:function(){let{basePageDataUrl:e}=(0,s.Yu)();return[Y.uT.tabCounts,`basePageDataURL:${e}`]},ey=(0,a.Z6)()?function(e){let t,n,i=(0,r.c)(6),a=(0,ee.e)(Y.uT.tabCounts),s=ev();return i[0]!==a?(t=async()=>{let e=await (0,F.QJ)(a);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},i[0]=a,i[1]=t):t=i[1],i[2]!==e||i[3]!==s||i[4]!==t?(n={queryKey:s,queryFn:t,initialData:e,staleTime:1/0},i[2]=e,i[3]=s,i[4]=t,i[5]=n):n=i[5],(0,eb.I)(n)}:function(e){let t=(0,ee.e)(Y.uT.tabCounts),n=ev();return(0,eb.I)({queryKey:n,queryFn:async()=>{let e=await (0,F.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})};var ej=n(66446);let eC=”PullRequestHeaderNavigation-module__overrideLineHeight–AJ90h”,ew=”PullRequestHeaderNavigation-module__muteWhenUnselected–F0UGO”,eN=”PullRequestHeaderNavigation-module__counterLoading–K6XhJ”;var eS=n(91747),eL=n(37212),eD=n(72501),eI=n(66559),e_=n(73870);let eR=(0,a.Z6)()?function(e){let t,n=(0,r.c)(8),{pullRequest:a,repository:s,urls:l}=e;if((0,eg.E)()){let e;return n[0]!==a||n[1]!==s||n[2]!==l?(e=(0,i.jsx)(eA,{pullRequest:a,repository:s,urls:l}),n[0]=a,n[1]=s,n[2]=l,n[3]=e):e=n[3],e}return n[4]!==a||n[5]!==s||n[6]!==l?(t=(0,i.jsx)(ek,{pullRequest:a,repository:s,urls:l}),n[4]=a,n[5]=s,n[6]=l,n[7]=t):t=n[7],t}:function({pullRequest:e,repository:t,urls:n}){return(0,eg.E)()?(0,i.jsx)(eA,{pullRequest:e,repository:t,urls:n}):(0,i.jsx)(ek,{pullRequest:e,repository:t,urls:n})},ek=(0,a.Z6)()?function(e){let t,n=(0,r.c)(5),{pullRequest:a,repository:s,urls:l}=e,{data:o}=ey();return n[0]!==o||n[1]!==a||n[2]!==s||n[3]!==l?(t=(0,i.jsx)(eE,{labelCounts:o,pullRequest:a,repository:s,urls:l}),n[0]=o,n[1]=a,n[2]=s,n[3]=l,n[4]=t):t=n[4],t}:function({pullRequest:e,repository:t,urls:n}){let{data:a}=ey();return(0,i.jsx)(eE,{labelCounts:a,pullRequest:e,repository:t,urls:n})},eA=(0,a.Z6)()?function(e){let t,n=(0,r.c)(6),{pullRequest:a,repository:s,urls:l}=e,{data:o}=(0,ex.xX)(ej.j,”tabCounts”),d=(0,eS.u)(“combined_pr_changes_route”);return n[0]!==d||n[1]!==o||n[2]!==a||n[3]!==s||n[4]!==l?(t=(0,i.jsx)(eE,{labelCounts:o,pullRequest:a,repository:s,urls:l,combinedPrChangesRoute:d}),n[0]=d,n[1]=o,n[2]=a,n[3]=s,n[4]=l,n[5]=t):t=n[5],t}:function({pullRequest:e,repository:t,urls:n}){let{data:a}=(0,ex.xX)(ej.j,”tabCounts”),r=(0,eS.u)(“combined_pr_changes_route”);return(0,i.jsx)(eE,{labelCounts:a,pullRequest:e,repository:t,urls:n,combinedPrChangesRoute:r})},eE=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,p,g,x,b,v,y,j,C,w,N=(0,r.c)(64),{pullRequest:S,repository:L,urls:D,labelCounts:I,combinedPrChangesRoute:_}=e,R=void 0!==_&&_,k=(0,eh.zy)();N[0]!==k.pathname?(t=e=>k.pathname===e,N[0]=k.pathname,N[1]=t):t=N[1];let A=t;N[2]!==k.pathname?(n=e=>k.pathname===e||k.pathname.startsWith(`${e}/`),N[2]=k.pathname,N[3]=n):n=N[3];let E=n,T=`position-relative px-3 flex-shrink-0 text-normal ${ew} ${eC}`,{commitsCount:O}=S,P=I?””:eN;N[4]!==P?(a=(0,h.$)(“ml-2”,P),N[4]=P,N[5]=a):a=N[5];let F=a;N[6]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,ep.G7)(“hypersight”),N[6]=s):s=N[6];let $=s,M=I?.filesChangedCount??0;N[7]!==F||N[8]!==A||N[9]!==I||N[10]!==S.number||N[11]!==L.name||N[12]!==L.ownerLogin||N[13]!==D.conversation?(l=(0,ep.G7)(“prs_conversations_react”)?(0,i.jsxs)(em.A.Link,{as:ef.N,to:e_.$.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}),selected:A(D.conversation),className:T,children:[(0,i.jsx)(ec.CommentDiscussionIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Conversation”,”number”==typeof I?.conversationCount&&(0,i.jsx)(eu.A,{className:F,children:I.conversationCount})]}):(0,i.jsxs)(em.A.Link,{href:D.conversation,selected:A(D.conversation),className:T,”data-prefetch”:”eager”,children:[(0,i.jsx)(ec.CommentDiscussionIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Conversation”,”number”==typeof I?.conversationCount&&(0,i.jsx)(eu.A,{className:F,children:I.conversationCount})]}),N[7]=F,N[8]=A,N[9]=I,N[10]=S.number,N[11]=L.name,N[12]=L.ownerLogin,N[13]=D.conversation,N[14]=l):l=N[14],N[15]!==S.number||N[16]!==L.name||N[17]!==L.ownerLogin?(o=eL.Bz.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}),N[15]=S.number,N[16]=L.name,N[17]=L.ownerLogin,N[18]=o):o=N[18],N[19]!==E||N[20]!==D.commits?(d=E(D.commits),N[19]=E,N[20]=D.commits,N[21]=d):d=N[21],N[22]===Symbol.for(“react.memo_cache_sentinel”)?(c=(0,i.jsx)(ec.GitCommitIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),N[22]=c):c=N[22],N[23]!==O?(u=”number”==typeof O&&(0,i.jsx)(eu.A,{className:”ml-2″,children:O}),N[23]=O,N[24]=u):u=N[24],N[25]!==u||N[26]!==o||N[27]!==d?(m=(0,i.jsxs)(em.A.Link,{as:ef.N,to:o,selected:d,className:T,id:”prs-commits-anchor-tab”,children:[c,”Commits”,u]}),N[25]=u,N[26]=o,N[27]=d,N[28]=m):m=N[28];let B=D.checks,V=A(D.checks);return N[29]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,i.jsx)(ec.ChecklistIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),N[29]=f):f=N[29],N[30]!==F||N[31]!==I?(p=”number”==typeof I?.checksCount&&(0,i.jsx)(eu.A,{className:F,children:I.checksCount}),N[30]=F,N[31]=I,N[32]=p):p=N[32],N[33]!==V||N[34]!==p||N[35]!==D.checks?(g=(0,i.jsxs)(em.A.Link,{href:B,selected:V,className:T,”data-prefetch”:”moderate”,children:[f,”Checks”,p]}),N[33]=V,N[34]=p,N[35]=D.checks,N[36]=g):g=N[36],N[37]!==R||N[38]!==S.number||N[39]!==L.name||N[40]!==L.ownerLogin?(x=R?eI.g.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}):eD.c.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}),N[37]=R,N[38]=S.number,N[39]=L.name,N[40]=L.ownerLogin,N[41]=x):x=N[41],N[42]!==E||N[43]!==D.changes||N[44]!==D.files?(b=E(D.files)||E(D.changes),N[42]=E,N[43]=D.changes,N[44]=D.files,N[45]=b):b=N[45],N[46]===Symbol.for(“react.memo_cache_sentinel”)?(v=(0,i.jsx)(ec.FileDiffIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),N[46]=v):v=N[46],N[47]!==F||N[48]!==M||N[49]!==I?(y=I&&I.filesChangedCount?(0,i.jsx)(eu.A,{className:F,children:`${M}${I?.filesChangedCountLimitExceeded?”+”:””}`}):null,N[47]=F,N[48]=M,N[49]=I,N[50]=y):y=N[50],N[51]!==x||N[52]!==b||N[53]!==y?(j=(0,i.jsxs)(em.A.Link,{as:ef.N,id:”prs-files-anchor-tab”,to:x,selected:b,className:T,children:[v,”Files changed”,y]}),N[51]=x,N[52]=b,N[53]=y,N[54]=j):j=N[54],N[55]!==A||N[56]!==D.walkthrough?(C=$&&(0,i.jsxs)(em.A.Link,{href:D.walkthrough,selected:A(D.walkthrough),className:T,”data-prefetch”:”moderate”,children:[(0,i.jsx)(ec.CopilotIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Walkthrough”]}),N[55]=A,N[56]=D.walkthrough,N[57]=C):C=N[57],N[58]!==m||N[59]!==g||N[60]!==j||N[61]!==C||N[62]!==l?(w=(0,i.jsxs)(em.A,{“aria-label”:”Pull request navigation tabs”,”data-turbo”:”false”,children:[l,m,g,j,C]}),N[58]=m,N[59]=g,N[60]=j,N[61]=C,N[62]=l,N[63]=w):w=N[63],w}:function({pullRequest:e,repository:t,urls:n,labelCounts:a,combinedPrChangesRoute:r=!1}){let s=(0,eh.zy)(),l=(0,N.useCallback)(e=>s.pathname===e,[s]),o=(0,N.useCallback)(e=>s.pathname===e||s.pathname.startsWith(`${e}/`),[s]),d=`position-relative px-3 flex-shrink-0 text-normal ${ew} ${eC}`,{commitsCount:c}=e,u=”fg-muted mr-2 d-none d-sm-inline-block”,m=(0,h.$)(“ml-2″,a?””:eN),f=(0,ep.G7)(“hypersight”),p=a?.filesChangedCount??0;return(0,i.jsxs)(em.A,{“aria-label”:”Pull request navigation tabs”,”data-turbo”:”false”,children:[(0,ep.G7)(“prs_conversations_react”)?(0,i.jsxs)(em.A.Link,{as:ef.N,to:e_.$.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}),selected:l(n.conversation),className:d,children:[(0,i.jsx)(ec.CommentDiscussionIcon,{className:u}),”Conversation”,”number”==typeof a?.conversationCount&&(0,i.jsx)(eu.A,{className:m,children:a.conversationCount})]}):(0,i.jsxs)(em.A.Link,{href:n.conversation,selected:l(n.conversation),className:d,”data-prefetch”:”eager”,children:[(0,i.jsx)(ec.CommentDiscussionIcon,{className:u}),”Conversation”,”number”==typeof a?.conversationCount&&(0,i.jsx)(eu.A,{className:m,children:a.conversationCount})]}),(0,i.jsxs)(em.A.Link,{as:ef.N,to:eL.Bz.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}),selected:o(n.commits),className:d,id:”prs-commits-anchor-tab”,children:[(0,i.jsx)(ec.GitCommitIcon,{className:u}),”Commits”,”number”==typeof c&&(0,i.jsx)(eu.A,{className:”ml-2″,children:c})]}),(0,i.jsxs)(em.A.Link,{href:n.checks,selected:l(n.checks),className:d,”data-prefetch”:”moderate”,children:[(0,i.jsx)(ec.ChecklistIcon,{className:u}),”Checks”,”number”==typeof a?.checksCount&&(0,i.jsx)(eu.A,{className:m,children:a.checksCount})]}),(0,i.jsxs)(em.A.Link,{as:ef.N,id:”prs-files-anchor-tab”,to:r?eI.g.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}):eD.c.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}),selected:o(n.files)||o(n.changes),className:d,children:[(0,i.jsx)(ec.FileDiffIcon,{className:u}),”Files changed”,a&&a.filesChangedCount?(0,i.jsx)(eu.A,{className:m,children:`${p}${a?.filesChangedCountLimitExceeded?”+”:””}`}):null]}),f&&(0,i.jsxs)(em.A.Link,{href:n.walkthrough,selected:l(n.walkthrough),className:d,”data-prefetch”:”moderate”,children:[(0,i.jsx)(ec.CopilotIcon,{className:u}),”Walkthrough”]})]})};try{eR.displayName||(eR.displayName=”PullRequestHeaderNavigation”)}catch{}try{ek.displayName||(ek.displayName=”PullRequestHeaderNavigationNavigator”)}catch{}try{eA.displayName||(eA.displayName=”PullRequestHeaderNavigationData”)}catch{}try{eE.displayName||(eE.displayName=”PullRequestHeaderNavigationShared”)}catch{}var eT=n(89155),eO=n(5524),eP=n(10095),eF=n(49086),e$=n(26410),eM=n(96459),eB=n(13107);let eV=”PullRequestCodeButton-module__ActionList_Divider–RyrUL”,eU=(0,a.Z6)()?function(e){let t,n,a,s=(0,r.c)(10),{codespacesEnabled:l,headBranch:o,isEnterprise:d,pullRequestNumber:c,repository:u}=e;s[0]!==o||s[1]!==u.id?(t=(0,eB.QS)(u.id,o),s[0]=o,s[1]=u.id,s[2]=t):t=s[2];let m=t;return s[3]!==c?(n=(0,i.jsx)(eH,{pullNumber:c}),s[3]=c,s[4]=n):n=s[4],s[5]!==l||s[6]!==m||s[7]!==d||s[8]!==n?(a=(0,i.jsx)(eF.n,{primary:!1,size:”small”,isEnterprise:d,showCodespacesTab:l,codespacesPath:m,localTab:n}),s[5]=l,s[6]=m,s[7]=d,s[8]=n,s[9]=a):a=s[9],a}:function({codespacesEnabled:e,headBranch:t,isEnterprise:n,pullRequestNumber:a,repository:r}){let s=(0,eB.QS)(r.id,t);return(0,i.jsx)(eF.n,{primary:!1,size:”small”,isEnterprise:n,showCodespacesTab:e,codespacesPath:s,localTab:(0,i.jsx)(eH,{pullNumber:a})})},eH=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m=(0,r.c)(15),{pullNumber:f}=e,h=`gh pr checkout ${f}`,p=(0,eM.Z)();return m[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsxs)(“div”,{className:”d-flex flex-items-center mb-2″,children:[(0,i.jsx)(eP.A,{className:”mr-2″,icon:ec.TerminalIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:”Checkout with GitHub CLI”})]}),m[0]=t):t=m[0],m[1]!==h?(n=(0,i.jsx)(e$.J,{buttonAriaLabel:”Copy command to clipboard”,inputId:”checkout-with-gh-cli”,inputLabel:”Checkout with GitHub CLI command”,url:h}),m[1]=h,m[2]=n):n=m[2],m[3]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsxs)(“p”,{className:”text-normal color-fg-muted”,children:[“Work fast with our official CLI.”,” “,(0,i.jsx)(D.A,{inline:!0,href:”https://cli.github.com”,target:”_blank”,”aria-label”:”Learn more about the GitHub CLI”,children:”Learn more”})]}),m[3]=a):a=m[3],m[4]!==n?(s=(0,i.jsx)(“ul”,{children:(0,i.jsxs)(“li”,{className:”mt-2 px-3 py-2″,children:[t,n,a]})}),m[4]=n,m[5]=s):s=m[5],m[6]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,i.jsx)(eO.l.Divider,{className:eV}),m[6]=l):l=m[6],m[7]!==p?(o=()=>p(“https://desktop.github.com”),m[7]=p,m[8]=o):o=m[8],m[9]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[(0,i.jsx)(eP.A,{className:”mr-2″,icon:ec.DesktopDownloadIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:”Checkout with GitHub Desktop”})]}),m[9]=d):d=m[9],m[10]!==o?(c=(0,i.jsx)(eO.l.Item,{className:”mx-0 py-3 px-3 width-full rounded-0″,onSelect:o,children:d}),m[10]=o,m[11]=c):c=m[11],m[12]!==s||m[13]!==c?(u=(0,i.jsxs)(eO.l,{className:”py-0″,children:[s,l,c]}),m[12]=s,m[13]=c,m[14]=u):u=m[14],u}:function(e){let{pullNumber:t}=e,n=”Checkout with GitHub CLI”,a=`gh pr checkout ${t}`,r=(0,eM.Z)();return(0,i.jsxs)(eO.l,{className:”py-0″,children:[(0,i.jsx)(“ul”,{children:(0,i.jsxs)(“li”,{className:”mt-2 px-3 py-2″,children:[(0,i.jsxs)(“div”,{className:”d-flex flex-items-center mb-2″,children:[(0,i.jsx)(eP.A,{className:”mr-2″,icon:ec.TerminalIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:n})]}),(0,i.jsx)(e$.J,{buttonAriaLabel:”Copy command to clipboard”,inputId:”checkout-with-gh-cli”,inputLabel:`${n} command`,url:a}),(0,i.jsxs)(“p”,{className:”text-normal color-fg-muted”,children:[“Work fast with our official CLI.”,” “,(0,i.jsx)(D.A,{inline:!0,href:”https://cli.github.com”,target:”_blank”,”aria-label”:”Learn more about the GitHub CLI”,children:”Learn more”})]})]})}),(0,i.jsx)(eO.l.Divider,{className:eV}),(0,i.jsx)(eO.l.Item,{className:”mx-0 py-3 px-3 width-full rounded-0″,onSelect:()=>r(“https://desktop.github.com”),children:(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[(0,i.jsx)(eP.A,{className:”mr-2″,icon:ec.DesktopDownloadIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:”Checkout with GitHub Desktop”})]})})]})};try{eU.displayName||(eU.displayName=”PullRequestCodeButton”)}catch{}try{eH.displayName||(eH.displayName=”LocalTab”)}catch{}var eG=n(91618),eq=n(65510);let eK=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,ee.e)(Y.uT.diffstat);return t[0]!==n?(e={queryKey:[Y.uT.diffstat,n],queryFn:async()=>{let e=await (0,F.QJ)(n);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},staleTime:1/0},t[0]=n,t[1]=e):e=t[1],(0,eq.U)(e)}:function(){let e=(0,ee.e)(Y.uT.diffstat);return(0,eq.U)({queryKey:[Y.uT.diffstat,e],queryFn:async()=>{let t=await (0,F.QJ)(e);if(!t.ok)throw Error(`HTTP ${t.status}`);return await t.json()},staleTime:1/0})},ez=(0,a.Z6)()?function(){let e,t=(0,r.c)(2);if((0,eg.E)()){let e;return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(eZ,{}),t[0]=e):e=t[0],e}return t[1]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(eW,{}),t[1]=e):e=t[1],e}:function(){return(0,eg.E)()?(0,i.jsx)(eZ,{}):(0,i.jsx)(eW,{})},eW=(0,a.Z6)()?function(){let e,t=(0,r.c)(4),{data:n}=eK(),{diffstat:a}=n;return t[0]!==a.linesAdded||t[1]!==a.linesChanged||t[2]!==a.linesDeleted?(e=(0,i.jsx)(eG.z,{linesAdded:a.linesAdded,linesDeleted:a.linesDeleted,linesChanged:a.linesChanged}),t[0]=a.linesAdded,t[1]=a.linesChanged,t[2]=a.linesDeleted,t[3]=e):e=t[3],e}:function(){let{data:{diffstat:e}}=eK();return(0,i.jsx)(eG.z,{linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,linesChanged:e.linesChanged})},eZ=(0,a.Z6)()?function(){let e,t=(0,r.c)(4),{data:n}=(0,ex.xX)(ej.j,”diffstat”);if(!n||!n.diffstat)return null;let{diffstat:a}=n;return t[0]!==a.linesAdded||t[1]!==a.linesChanged||t[2]!==a.linesDeleted?(e=(0,i.jsx)(eG.z,{linesAdded:a.linesAdded,linesDeleted:a.linesDeleted,linesChanged:a.linesChanged}),t[0]=a.linesAdded,t[1]=a.linesChanged,t[2]=a.linesDeleted,t[3]=e):e=t[3],e}:function(){let{data:e}=(0,ex.xX)(ej.j,”diffstat”);if(!e||!e.diffstat)return null;let{diffstat:t}=e;return(0,i.jsx)(eG.z,{linesAdded:t.linesAdded,linesDeleted:t.linesDeleted,linesChanged:t.linesChanged})};try{ez.displayName||(ez.displayName=”DiffStat”)}catch{}try{eW.displayName||(eW.displayName=”NavigatorDiffStat”)}catch{}try{eZ.displayName||(eZ.displayName=”DataRouterDiffStat”)}catch{}let eQ=”PullRequestHeader-module__diffStatesWrapper–fPApA”,eX=”PullRequestHeader-module__PreviewLabel–kauC0″;var eJ=n(31675),eY=n(81945),e0=n(21067),e1=n(71315);let e2=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(10),{aliveChannel:s,bannersData:l,isFilesRoute:o,pullRequest:d,repository:c,urls:u,user:m}=e;a[0]!==s||a[1]!==l||a[2]!==d||a[3]!==c||a[4]!==u||a[5]!==m?(t={aliveChannel:s,repository:c,pullRequest:d,bannersData:l,urls:u,user:m},a[0]=s,a[1]=l,a[2]=d,a[3]=c,a[4]=u,a[5]=m,a[6]=t):t=a[6];let{data:f}=(0,I.W)(t);return(0,eT.F)(s),a[7]!==f||a[8]!==o?(n=(0,i.jsx)(e3,{…f,isFilesRoute:o}),a[7]=f,a[8]=o,a[9]=n):n=a[9],n}:function({aliveChannel:e,bannersData:t,isFilesRoute:n,pullRequest:a,repository:r,urls:s,user:l}){let{data:o}=(0,I.W)({aliveChannel:e,repository:r,pullRequest:a,bannersData:t,urls:s,user:l});return(0,eT.F)(e),(0,i.jsx)(e3,{…o,isFilesRoute:n})},e3=(0,a.Z6)()?function(e){let t,n,a,s,l,o,c,f,p,g,x,b,v,j,C,L,D,I,_,R,k=(0,r.c)(84),{bannersData:A,isFilesRoute:E,pullRequest:T,repository:O,urls:P,user:F}=e,[$,M]=(0,N.useState)(!1);k[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,e0.M3)(),k[0]=t):t=k[0];let B=t,V=T.state!==U.Q.Closed&&T.state!==U.Q.Merged?”true”:”false”;k[1]!==V?(n=(0,i.jsx)(“div”,{className:”js-pull-header-details”,”data-pull-is-open”:V,hidden:!0}),k[1]=V,k[2]=n):n=k[2],k[3]!==E||k[4]!==O||k[5]!==P?(a=E&&(0,i.jsx)(e4,{repository:O,urls:P}),k[3]=E,k[4]=O,k[5]=P,k[6]=a):a=k[6],k[7]!==T.headBranch||k[8]!==T.number||k[9]!==O||k[10]!==F.canEditTitle?(s=B&&(0,i.jsxs)(i.Fragment,{children:[F.canEditTitle&&(0,i.jsx)(S.Q,{onClick:()=>M(!0),size:”small”,children:”Edit”}),(0,i.jsx)(eU,{codespacesEnabled:O.codespacesEnabled,headBranch:T.headBranch,isEnterprise:O.isEnterprise,pullRequestNumber:T.number,repository:O})]}),k[7]=T.headBranch,k[8]=T.number,k[9]=O,k[10]=F.canEditTitle,k[11]=s):s=k[11],k[12]!==n||k[13]!==a||k[14]!==s?(l=(0,i.jsxs)(i.Fragment,{children:[n,a,s]}),k[12]=n,k[13]=a,k[14]=s,k[15]=l):l=k[15];let H=l;return k[16]!==$||k[17]!==T.number||k[18]!==T.title?(o=$&&(0,i.jsx)(eo,{initialTitle:T.title,pullRequestNumber:T.number,onCloseForm:()=>M(!1)}),k[16]=$,k[17]=T.number,k[18]=T.title,k[19]=o):o=k[19],k[20]!==$||k[21]!==H?(c=!$&&(0,i.jsx)(“div”,{className:(0,h.$)(eJ.A[“hide-on-desktop”],”pb-2 mb-3 flex-md-order-1 flex-shrink-0 d-flex flex-items-center gap-1″),children:H}),k[20]=$,k[21]=H,k[22]=c):c=k[22],k[23]!==$||k[24]!==T.number||k[25]!==T.title?(f=$&&(0,i.jsx)(“h1″,{className:”sr-only”,children:`${T.title} – #${T.number}`}),k[23]=$,k[24]=T.number,k[25]=T.title,k[26]=f):f=k[26],k[27]!==$||k[28]!==T.number||k[29]!==T.titleHtml||k[30]!==H?(p=!$&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.z.TitleArea,{children:(0,i.jsxs)(d.z.Title,{as:”h1″,className:”lh-condensed”,children:[(0,i.jsx)(y.JR,{className:”f1 text-normal markdown-title”,html:T.titleHtml}),(0,i.jsxs)(“span”,{className:”pl-2 fgColor-muted f1-light d-inline”,children:[“#”,T.number]})]})}),(0,i.jsx)(d.z.Actions,{className:(0,h.$)(eJ.A[“hide-on-mobile”],”flex-items-center gap-1″),children:H})]}),k[27]=$,k[28]=T.number,k[29]=T.titleHtml,k[30]=H,k[31]=p):p=k[31],k[32]!==T.state?(g=(0,i.jsx)(u.u,{state:T.state}),k[32]=T.state,k[33]=g):g=k[33],k[34]!==$||k[35]!==T.author||k[36]!==T.baseBranch||k[37]!==T.commitsCount||k[38]!==T.headBranch||k[39]!==T.headRepositoryName||k[40]!==T.headRepositoryOwnerLogin||k[41]!==T.id||k[42]!==T.isInAdvisoryRepo||k[43]!==T.mergedBy||k[44]!==T.mergedByName||k[45]!==T.mergedTime||k[46]!==T.number||k[47]!==T.state||k[48]!==O.defaultBranch||k[49]!==O.id||k[50]!==O.name||k[51]!==O.ownerLogin||k[52]!==F.canChangeBase?(x=(0,i.jsx)(“div”,{className:”flex-1″,children:(0,i.jsx)(m.O,{author:T.author,mergedTime:T.mergedTime,baseBranch:T.baseBranch,baseRepositoryDefaultBranch:O.defaultBranch,baseRepositoryName:O.name,baseRepositoryOwnerLogin:O.ownerLogin,canChangeBase:F.canChangeBase,commitsCount:T.commitsCount,headBranch:T.headBranch,headRepositoryOwnerLogin:T.headRepositoryOwnerLogin,headRepositoryName:T.headRepositoryName,isInAdvisoryRepo:T.isInAdvisoryRepo,isEditing:$,mergedBy:T.mergedBy,mergedByName:T.mergedByName,repositoryId:O.id,pullRequestId:T.id,pullRequestNumber:T.number,setIsEditing:M,state:T.state})}),k[34]=$,k[35]=T.author,k[36]=T.baseBranch,k[37]=T.commitsCount,k[38]=T.headBranch,k[39]=T.headRepositoryName,k[40]=T.headRepositoryOwnerLogin,k[41]=T.id,k[42]=T.isInAdvisoryRepo,k[43]=T.mergedBy,k[44]=T.mergedByName,k[45]=T.mergedTime,k[46]=T.number,k[47]=T.state,k[48]=O.defaultBranch,k[49]=O.id,k[50]=O.name,k[51]=O.ownerLogin,k[52]=F.canChangeBase,k[53]=x):x=k[53],k[54]!==g||k[55]!==x?(b=(0,i.jsxs)(“div”,{className:”d-flex flex-column flex-sm-row gap-2 width-full flex-items-start flex-justify-between”,children:[g,x]}),k[54]=g,k[55]=x,k[56]=b):b=k[56],k[57]!==A||k[58]!==T||k[59]!==O?(v=(0,i.jsx)(W,{bannersData:A,pullRequest:T,repository:O}),k[57]=A,k[58]=T,k[59]=O,k[60]=v):v=k[60],k[61]!==b||k[62]!==v?(j=(0,i.jsxs)(d.z.Description,{className:”d-flex flex-column flex-items-start”,children:[b,v]}),k[61]=b,k[62]=v,k[63]=j):j=k[63],k[64]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,h.$)(eQ,”float-right d-none d-md-block”),k[64]=C):C=k[64],k[65]===Symbol.for(“react.memo_cache_sentinel”)?(L=(0,i.jsx)(“div”,{className:C,children:(0,i.jsx)(N.Suspense,{fallback:(0,i.jsx)(eY.O,{width:”80px”}),children:(0,i.jsx)(ez,{})})}),k[65]=L):L=k[65],k[66]!==T||k[67]!==O||k[68]!==P?(D=(0,i.jsxs)(d.z.Navigation,{className:”pt-3 px-3 ml-n3 mr-n3″,children:[L,(0,i.jsx)(“div”,{className:”flex-auto”,children:(0,i.jsx)(eR,{pullRequest:T,repository:O,urls:P})})]}),k[66]=T,k[67]=O,k[68]=P,k[69]=D):D=k[69],k[70]!==p||k[71]!==j||k[72]!==D||k[73]!==f?(I=(0,i.jsxs)(d.z,{className:”flex-items-center”,children:[f,p,j,D]}),k[70]=p,k[71]=j,k[72]=D,k[73]=f,k[74]=I):I=k[74],k[75]!==E||k[76]!==T||k[77]!==O?(_=!E&&(0,i.jsx)(w,{repository:O,pullRequest:T,pageVariant:”condensed”}),k[75]=E,k[76]=T,k[77]=O,k[78]=_):_=k[78],k[79]!==I||k[80]!==_||k[81]!==o||k[82]!==c?(R=(0,i.jsxs)(i.Fragment,{children:[o,c,I,_]}),k[79]=I,k[80]=_,k[81]=o,k[82]=c,k[83]=R):R=k[83],R}:function({bannersData:e,isFilesRoute:t,pullRequest:n,repository:a,urls:r,user:s}){let[l,o]=(0,N.useState)(!1),c=(0,e0.M3)(),f=n.state!==U.Q.Closed&&n.state!==U.Q.Merged,p=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“div”,{className:”js-pull-header-details”,”data-pull-is-open”:f?”true”:”false”,hidden:!0}),t&&(0,i.jsx)(e4,{repository:a,urls:r}),c&&(0,i.jsxs)(i.Fragment,{children:[s.canEditTitle&&(0,i.jsx)(S.Q,{onClick:()=>o(!0),size:”small”,children:”Edit”}),(0,i.jsx)(eU,{codespacesEnabled:a.codespacesEnabled,headBranch:n.headBranch,isEnterprise:a.isEnterprise,pullRequestNumber:n.number,repository:a})]})]});return(0,i.jsxs)(i.Fragment,{children:[l&&(0,i.jsx)(eo,{initialTitle:n.title,pullRequestNumber:n.number,onCloseForm:()=>o(!1)}),!l&&(0,i.jsx)(“div”,{className:(0,h.$)(eJ.A[“hide-on-desktop”],”pb-2 mb-3 flex-md-order-1 flex-shrink-0 d-flex flex-items-center gap-1″),children:p}),(0,i.jsxs)(d.z,{className:”flex-items-center”,children:[l&&(0,i.jsx)(“h1″,{className:”sr-only”,children:`${n.title} – #${n.number}`}),!l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.z.TitleArea,{children:(0,i.jsxs)(d.z.Title,{as:”h1″,className:”lh-condensed”,children:[(0,i.jsx)(y.JR,{className:”f1 text-normal markdown-title”,html:n.titleHtml}),(0,i.jsxs)(“span”,{className:”pl-2 fgColor-muted f1-light d-inline”,children:[“#”,n.number]})]})}),(0,i.jsx)(d.z.Actions,{className:(0,h.$)(eJ.A[“hide-on-mobile”],”flex-items-center gap-1″),children:p})]}),(0,i.jsxs)(d.z.Description,{className:”d-flex flex-column flex-items-start”,children:[(0,i.jsxs)(“div”,{className:”d-flex flex-column flex-sm-row gap-2 width-full flex-items-start flex-justify-between”,children:[(0,i.jsx)(u.u,{state:n.state}),(0,i.jsx)(“div”,{className:”flex-1″,children:(0,i.jsx)(m.O,{author:n.author,mergedTime:n.mergedTime,baseBranch:n.baseBranch,baseRepositoryDefaultBranch:a.defaultBranch,baseRepositoryName:a.name,baseRepositoryOwnerLogin:a.ownerLogin,canChangeBase:s.canChangeBase,commitsCount:n.commitsCount,headBranch:n.headBranch,headRepositoryOwnerLogin:n.headRepositoryOwnerLogin,headRepositoryName:n.headRepositoryName,isInAdvisoryRepo:n.isInAdvisoryRepo,isEditing:l,mergedBy:n.mergedBy,mergedByName:n.mergedByName,repositoryId:a.id,pullRequestId:n.id,pullRequestNumber:n.number,setIsEditing:o,state:n.state})})]}),(0,i.jsx)(W,{bannersData:e,pullRequest:n,repository:a})]}),(0,i.jsxs)(d.z.Navigation,{className:”pt-3 px-3 ml-n3 mr-n3″,children:[(0,i.jsx)(“div”,{className:(0,h.$)(eQ,”float-right d-none d-md-block”),children:(0,i.jsx)(N.Suspense,{fallback:(0,i.jsx)(eY.O,{width:”80px”}),children:(0,i.jsx)(ez,{})})}),(0,i.jsx)(“div”,{className:”flex-auto”,children:(0,i.jsx)(eR,{pullRequest:n,repository:a,urls:r})})]})]}),!t&&(0,i.jsx)(w,{repository:a,pullRequest:n,pageVariant:”condensed”})]})},e4=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u=(0,r.c)(11),{repository:m,urls:f}=e;u[0]!==m?(t=async()=>{let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,F.DI)((0,K.ZD8)({repo:m}),{body:e,method:”POST”})},u[0]=m,u[1]=t):t=u[1];let h=t;u[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,e0.M3)(),u[2]=n):n=u[2];let p=n,g=e1.fV.pathname??””,x=e1.fV.search??””;return a=g?`${g}${x?`${x}&`:”?”}new_files_changed=false`:`${f.files}?new_files_changed=false`,u[3]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,i.jsx)(L.A,{variant:”success”,className:eX,children:”Preview”}),u[3]=s):s=u[3],u[4]!==h||u[5]!==a?(l=p&&(0,i.jsx)(D.A,{href:a,onClick:h,className:”no-wrap f6 text-normal”,children:”Switch back”}),u[4]=h,u[5]=a,u[6]=l):l=u[6],u[7]===Symbol.for(“react.memo_cache_sentinel”)?(o=(0,i.jsx)(“span”,{className:”f5″,children:”\xb7″}),d=(0,i.jsx)(D.A,{href:”https://gh.io/new-files-changed-feedback”,target:”_blank”,rel:”noopener noreferrer”,className:”no-wrap f6 text-normal”,children:”Feedback”}),u[7]=o,u[8]=d):(o=u[7],d=u[8]),u[9]!==l?(c=(0,i.jsxs)(“div”,{className:”d-flex flex-items-center gap-1 flex-order-2 flex-md-order-none pl-2 pl-md-0 pr-2″,children:[s,l,o,d]}),u[9]=l,u[10]=c):c=u[10],c}:function({repository:e,urls:t}){let n,a=async()=>{let t=new FormData;t.append(“feature_name”,”prx_files”),await (0,F.DI)((0,K.ZD8)({repo:e}),{body:t,method:”POST”})},r=(0,e0.M3)(),s=e1.fV.pathname??””,l=e1.fV.search??””;return n=s?`${s}${l?`${l}&`:”?”}new_files_changed=false`:`${t.files}?new_files_changed=false`,(0,i.jsxs)(“div”,{className:”d-flex flex-items-center gap-1 flex-order-2 flex-md-order-none pl-2 pl-md-0 pr-2″,children:[(0,i.jsx)(L.A,{variant:”success”,className:eX,children:”Preview”}),r&&(0,i.jsx)(D.A,{href:n,onClick:a,className:”no-wrap f6 text-normal”,children:”Switch back”}),(0,i.jsx)(“span”,{className:”f5″,children:”\xb7″}),(0,i.jsx)(D.A,{href:”https://gh.io/new-files-changed-feedback”,target:”_blank”,rel:”noopener noreferrer”,className:”no-wrap f6 text-normal”,children:”Feedback”})]})};try{e2.displayName||(e2.displayName=”LivePullRequestHeader”)}catch{}try{e3.displayName||(e3.displayName=”PullRequestHeader”)}catch{}try{e4.displayName||(e4.displayName=”FilesChangedFeedback”)}catch{}let e5=”/:owner/:repo/pull/:pr_number/files”,e6=”/:owner/:repo/pull/:pr_number/changes”;var e7=n(24798),e8=n(59432),e9=n(68245);let te=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(3);return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsx)(o.M,{}),a[0]=t):t=a[0],a[1]!==e.children?(n=(0,i.jsx)(l.t,{critical:!0,fallback:t,children:(0,i.jsx)(tt,{children:e.children})}),a[1]=e.children,a[2]=n):n=a[2],n}:function(e){return(0,i.jsx)(l.t,{critical:!0,fallback:(0,i.jsx)(o.M,{}),children:(0,i.jsx)(tt,{children:e.children})})},tt=(0,a.Z6)()?function(e){let t,n=(0,r.c)(8),{aliveChannel:a,pullRequest:s,bannersData:l,repository:o,urls:d,user:c}=(0,e7.o)();return n[0]!==a||n[1]!==l||n[2]!==e.children||n[3]!==s||n[4]!==o||n[5]!==d||n[6]!==c?(t=(0,i.jsx)(tn,{aliveChannel:a,pullRequest:s,bannersData:l,repository:o,urls:d,user:c,children:e.children}),n[0]=a,n[1]=l,n[2]=e.children,n[3]=s,n[4]=o,n[5]=d,n[6]=c,n[7]=t):t=n[7],t}:function(e){let{aliveChannel:t,pullRequest:n,bannersData:a,repository:r,urls:s,user:l}=(0,e7.o)();return(0,i.jsx)(tn,{aliveChannel:t,pullRequest:n,bannersData:a,repository:r,urls:s,user:l,children:e.children})},tn=(0,a.Z6)()?function(e){let t,n,a,l,o=(0,r.c)(18),{aliveChannel:d,pullRequest:c,bannersData:u,repository:m,urls:f,user:h,children:p}=e,g=null!==(0,eh.RQ)(`${e5}/*`),x=null!==(0,eh.RQ)(`${e6}/*`),b=g||x,v=b?C:j,y=m.userNameDisplayConfiguration||void 0,w=`mt-4 ${v}`;return o[0]!==d||o[1]!==u||o[2]!==b||o[3]!==c||o[4]!==m||o[5]!==f||o[6]!==h?(t=(0,i.jsx)(e8.b.Header,{divider:”none”,padding:”none”,children:(0,i.jsx)(e2,{aliveChannel:d,bannersData:u,isFilesRoute:b,repository:m,pullRequest:c,urls:f,user:h})}),o[0]=d,o[1]=u,o[2]=b,o[3]=c,o[4]=m,o[5]=f,o[6]=h,o[7]=t):t=o[7],o[8]!==p||o[9]!==w||o[10]!==t?(n=(0,i.jsxs)(e8.b.Container,{className:w,children:[t,p]}),o[8]=p,o[9]=w,o[10]=t,o[11]=n):n=o[11],o[12]!==y||o[13]!==n?(a=(0,i.jsx)(e9.z,{value:y,children:n}),o[12]=y,o[13]=n,o[14]=a):a=o[14],o[15]!==a||o[16]!==f.conversation?(l=(0,i.jsx)(s.Kg,{basePageDataUrl:f.conversation,children:a}),o[15]=a,o[16]=f.conversation,o[17]=l):l=o[17],l}:function({aliveChannel:e,pullRequest:t,bannersData:n,repository:a,urls:r,user:l,children:o}){let d=null!==(0,eh.RQ)(`${e5}/*`),c=null!==(0,eh.RQ)(`${e6}/*`),u=d||c,m=u?C:j;return(0,i.jsx)(s.Kg,{basePageDataUrl:r.conversation,children:(0,i.jsx)(e9.z,{value:a.userNameDisplayConfiguration||void 0,children:(0,i.jsxs)(e8.b.Container,{className:`mt-4 ${m}`,children:[(0,i.jsx)(e8.b.Header,{divider:”none”,padding:”none”,children:(0,i.jsx)(e2,{aliveChannel:e,bannersData:n,isFilesRoute:u,repository:a,pullRequest:t,urls:r,user:l})}),o]})})})};try{te.displayName||(te.displayName=”App”)}catch{}try{tt.displayName||(tt.displayName=”Layout”)}catch{}try{tn.displayName||(tn.displayName=”LayoutComponent”)}catch{}},89155:(e,t,n)=>{n.d(t,{F:()=>l});var i=n(68273),a=n(16522),r=n(39029),s=n(34261);let l=(0,i.Z6)()?function(e){let t,n=(0,a.c)(1),{refetch:i}=(0,s.W)();n[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={git_updated:!0,title_updated:!0},n[0]=t):t=n[0],(0,r.og)(e,i,t)}:function(e){let{refetch:t}=(0,s.W)();(0,r.og)(e,t,{git_updated:!0,title_updated:!0})}},90891:(e,t,n)=>{n.d(t,{Ee:()=>l,Ts:()=>s,b4:()=>o});var i=n(53331),a=n(69759),r=n(51987);async function s(e,t,n){let s=new Request(t,n);(0,r.tV)(s.headers);let l=await self.fetch(s);if(l.status<200||l.status>=300)throw Error(`HTTP ${l.status}${l.statusText||””}`);return(0,i.A)((0,i.K)(e),l),(0,a.B)(e,await l.text())}function l(e,t,n=1e3,i=[200],a=[202]){return async function n(s){let l=new Request(e,t);(0,r.tV)(l.headers);let o=await self.fetch(l);if(a.includes(o.status))return await new Promise(e=>setTimeout(e,s)),n(1.5*s);if(i.includes(o.status))return o;if(o.status<200||o.status>=300)throw Error(`HTTP ${o.status}${o.statusText||””}`);throw Error(`Unexpected ${o.status} response status from poll endpoint`)}(n)}async function o(e,t,n){let{wait:i=500,acceptedStatusCodes:a=[200],max:s=3,attempt:l=0}=n||{},d=async()=>new Promise((n,o)=>{setTimeout(async()=>{try{let i=new Request(e,t);(0,r.tV)(i.headers);let o=await self.fetch(i);if(a.includes(o.status)||l+1===s)return n(o);n(“retry”)}catch(e){o(e)}},i*l)}),c=await d();return”retry”!==c?c:o(e,t,{wait:i,acceptedStatusCodes:a,max:s,attempt:l+1})}},93642:(e,t,n)=>{function i(e,t){for(let n of function e(t,n=[]){var i,r;let s;if(“”===t)return n;let l=t.match(a());if(!l)return n;let o=l.groups.fence;if(!o)return n;let d=o.includes(“~”)?”~”:”`”,c=t.match((s=a([i=d],r=o.length),RegExp(`${s.source}(?:\r?
)(?.*?)(?:\r?
)^ {0,3}${i}{${r},}[ ]*$`,”ms”)));if(!c)return n;let u=0,m=l.groups.indent;””!==m&&(u=m.length);let f=c.groups.suggestion;if(u>0){let e=RegExp(`^ {0,${u}}`,”m”);f=f.replace(e,””)}return n.push(f),e(t.slice(c.index+c[0].length),n)}(e))if(n===t)return{isValid:!1,errorMessage:”Suggested change cannot be the same as the original line”};return{isValid:!0,errorMessage:””}}function a(e=[“`”,”~”],t){let n=t?`{${t}}`:”{3,}”,i=e.map(e=>`${e}${n}`);return RegExp(`^(? {0,3})(?${i.join(“|”)})suggestion[ ]*$`,”m”)}n.d(t,{u:()=>i})},94195:(e,t,n)=>{n.d(t,{Gy:()=>d,LB:()=>h,nn:()=>p,lm:()=>m});var i=n(74848),a=n(96540);let r=null,s=null,l=new Set;function o(e){return l.add(e),r||(r=new ResizeObserver(()=>{s||(s=requestAnimationFrame(()=>{for(let e of(s=null,l))e()}))})).observe(document.documentElement),()=>{l.delete(e),0===l.size&&r&&(r.disconnect(),r=null)}}let d={small:1,medium:544,large:768,xlarge:1012,xxlarge:1280,xxxlarge:1350,xxxxlarge:1440},c=[d.xxxxlarge,d.xxxlarge,d.xxlarge,d.xlarge,d.large,d.medium,d.small],u=a.createContext({screenSize:d.small});function m(){return a.useContext(u)}function f(){return p(window.innerWidth)}function h({children:e,initialValue:t=d.small}){let n=(0,a.useSyncExternalStore)(o,f,(0,a.useCallback)(()=>t,[t])),r=(0,a.useMemo)(()=>({screenSize:n}),[n]);return(0,i.jsx)(u.Provider,{value:r,children:e})}function p(e){for(let t of c)if(e>=t)return t;return d.small}try{u.displayName||(u.displayName=”ScreenContext”)}catch{}try{h.displayName||(h.displayName=”ScreenSizeProvider”)}catch{}},95807:(e,t,n)=>{n.d(t,{i:()=>v});var i=n(74848),a=n(68273),r=n(16522),s=n(96379),l=n(21373),o=n(69726),d=n(11196),c=n(96540),u=n(30459),m=n(57224),f=n(70263);let h=”PullRequestsProcessingIndicator-module__button–IKkby”,p=”PullRequestsProcessingIndicator-module__indicator–iNiwb”,g=”PullRequestsProcessingIndicator-module__text–JUMXg”;function x(e,t){return Math.round(e.getTime()-t.getTime())/1e3}let b={stale:!1,latest_unsynced_push_to_head_ref_at:null};function v({processingIndicatorUrl:e,repositoryId:t,pullRequestId:n}){let[a,r]=(0,c.useState)(b),l=(0,f.A)(),o=(0,c.useCallback)(async()=>{try{let t=await (0,s.lS)(e);if(t.ok){let e=await t.json();l()&&r(e)}}catch{l()&&r(b)}},[l,e]);(0,c.useEffect)(()=>{o()},[]);let{stale:d,latest_unsynced_push_to_head_ref_at:u}=a;return(0,i.jsx)(“div”,{className:”border-left pl-1″,children:(0,i.jsx)(m.y,{appName:”pull-requests-processing-indicator”,category:”render”,metadata:{},children:(0,i.jsx)(y,{pullRequestId:n,repositoryId:t,stale:d,latest_unsynced_push_to_head_ref_at:u})})})}let y=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(6),{pullRequestId:s,repositoryId:c,stale:m,latest_unsynced_push_to_head_ref_at:f}=e,{sendAnalyticsEvent:b}=(0,u.s)();if(!m||!f)return null;if(a[0]!==f||a[1]!==s||a[2]!==c||a[3]!==b){t=Symbol.for(“react.early_return_sentinel”);e:{let e=x(new Date,new Date(f));if(e<20||e>=86400){t=null;break e}b(“pull_requests.processing_indicator”,””,{repositoryId:c,pullRequestId:s,secondsSinceLastPush:e})}a[0]=f,a[1]=s,a[2]=c,a[3]=b,a[4]=t}else t=a[4];return t!==Symbol.for(“react.early_return_sentinel”)?t:(a[5]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(d.m,{text:”Recent push is being processed and will appear soon”,direction:”s”,children:(0,i.jsx)(l.Q,{as:”a”,href:”https://gh.io/pr-sync-in-progress”,variant:”invisible”,className:h,children:(0,i.jsxs)(“div”,{className:p,children:[(0,i.jsx)(o.A,{size:”small”}),(0,i.jsx)(“span”,{className:g,children:”Processing updates”})]})})}),a[5]=n):n=a[5],n)}:function({pullRequestId:e,repositoryId:t,stale:n,latest_unsynced_push_to_head_ref_at:a}){let{sendAnalyticsEvent:r}=(0,u.s)();if(!n||!a)return null;let s=x(new Date,new Date(a));return s<20||s>=86400?null:(r(“pull_requests.processing_indicator”,””,{repositoryId:t,pullRequestId:e,secondsSinceLastPush:s}),(0,i.jsx)(d.m,{text:”Recent push is being processed and will appear soon”,direction:”s”,children:(0,i.jsx)(l.Q,{as:”a”,href:”https://gh.io/pr-sync-in-progress”,variant:”invisible”,className:h,children:(0,i.jsxs)(“div”,{className:p,children:[(0,i.jsx)(o.A,{size:”small”}),(0,i.jsx)(“span”,{className:g,children:”Processing updates”})]})})}))};try{v.displayName||(v.displayName=”PullRequestsProcessingIndicatorWithDataFetching”)}catch{}try{y.displayName||(y.displayName=”PullRequestsProcessingIndicator”)}catch{}},97695:(e,t,n)=>{n.d(t,{H:()=>m});var i=n(68273),a=n(16522),r=n(48845),s=n(20622),l=n(97665),o=n(94747),d=n(69510),c=n(27011),u=n(21067);let m=(0,i.Z6)()?function(e,t){let n,i,m,f,h=(0,a.c)(12),p=(0,c.Kp)();h[0]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,u.cj)(),h[0]=n):n=h[0];let g=n,x=`${p}/page_data/${s.uT.resolveThread}`,b=(0,l.jE)(),{updateThread:v}=(0,c.an)();return h[1]!==x?(i=async e=>{let{threadId:t}=e,n=await (0,r.q$)(x,{method:”POST”,body:{threadId:t}});(0,r.R)(n)},h[1]=x,h[2]=i):i=h[2],h[3]!==p||h[4]!==e||h[5]!==t||h[6]!==b||h[7]!==v?(m=(n,i)=>(v(Number(i.threadId),e,t,e=>{if(e)return{…e,isResolved:!0,resolvedBy:g}}),b.invalidateQueries({queryKey:(0,d.XG)(p)})),h[3]=p,h[4]=e,h[5]=t,h[6]=b,h[7]=v,h[8]=m):m=h[8],h[9]!==i||h[10]!==m?(f={mutationFn:i,onSuccess:m},h[9]=i,h[10]=m,h[11]=f):f=h[11],(0,o.n)(f)}:function(e,t){let n=(0,c.Kp)(),i=(0,u.cj)(),a=`${n}/page_data/${s.uT.resolveThread}`,m=(0,l.jE)(),{updateThread:f}=(0,c.an)();return(0,o.n)({mutationFn:async({threadId:e})=>{let t=await (0,r.q$)(a,{method:”POST”,body:{threadId:e}});(0,r.R)(t)},onSuccess:(a,r)=>(f(Number(r.threadId),e,t,e=>{if(e)return{…e,isResolved:!0,resolvedBy:i}}),m.invalidateQueries({queryKey:(0,d.XG)(n)}))})}},99279:(e,t,n)=>{n.d(t,{G:()=>i});let i=n(12435).$h.create(“pull-requests”)}}]);
//# sourceMappingURL=91813-d7fcc728365c.js.map