티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[1972,3201,4218,4329,5948,6315,9389,13114,13892,14439,16902,19973,20269,23048,23767,24756,28773,28970,29842,31146,34313,35168,36820,37402,37415,38074,41357,45338,48221,48727,49940,50531,52296,53345,54501,57293,57431,58281,59485,60229,64492,65404,65995,69677,71282,71556,73369,73560,73575,74327,75057,76326,76413,76512,77589,78927,82181,83846,84798,85243,85403,86460,86830,90920,91472,95919,97355],{2265:(e,t,n)=>{n.d(t,{W:()=>d,j:()=>o});var i=n(74848),a=n(68273),r=n(16522),s=n(96540);let l=(0,s.createContext)({}),o=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{children:o}=e,[d,c]=(0,s.useState)(!1);a[0]!==d?(t={isDialogOpen:d,setIsDialogOpen:c},a[0]=d,a[1]=t):t=a[1];let u=t;return a[2]!==o||a[3]!==u?(n=(0,i.jsx)(l.Provider,{value:u,children:o}),a[2]=o,a[3]=u,a[4]=n):n=a[4],n}:function({children:e}){let[t,n]=(0,s.useState)(!1),a=(0,s.useMemo)(()=>({isDialogOpen:t,setIsDialogOpen:n}),[t,n]);return(0,i.jsx)(l.Provider,{value:a,children:e})},d=((0,a.GV)(),()=>(0,s.useContext)(l));try{l.displayName||(l.displayName=”DialogStateContext”)}catch{}try{o.displayName||(o.displayName=”DialogStateProvider”)}catch{}},2694:(e,t,n)=>{n.d(t,{B:()=>s});var i=n(73189),a=n(71315),r=n(96540);function s(e,t){if(!a.KJ)return[i.l,i.l,i.l];let n=(0,r.useMemo)(()=>new IntersectionObserver(e,t),[e,t]);return(0,r.useEffect)(()=>()=>n.disconnect(),[n]),[(0,r.useCallback)(e=>n.observe(e),[n]),(0,r.useCallback)(e=>n.unobserve(e),[n]),(0,r.useCallback)(()=>n.disconnect(),[n])]}},3038:(e,t,n)=>{n.d(t,{Av:()=>L,Ji:()=>h,Ls:()=>N,Mk:()=>b,Po:()=>m,S4:()=>j,Yf:()=>D,a1:()=>w,a2:()=>o,dT:()=>S,dv:()=>p,j2:()=>y,oH:()=>d,qK:()=>f,qX:()=>c,u6:()=>u,x_:()=>g});var i=n(13083),a=n(61583),r=n(66358),s=n(36729),l=n(51391);function o(e,t,n){return”left”===n?!m(e)&&e.left===t:!m(e)&&(0,i.XU)(e.type)===n&&e.right===t}function d(e,t){return”LEFT”===t?`L${e}`:`R${e}`}function c(e,t,n){let i=`-${m(t)||”number”!=typeof t.left?”empty”:t.left}`,a=n?`-${m(n)||”number”!=typeof n.right?”empty”:n.right}`:””;return`${e}${i}${a}`}function u(e,t){return`${e}-${t}`}function m(e){return!!e&&e===s.Vv}function f(e){return!!e&&e!==s.Vv}function h(e){return”CONTEXT”===e.type}function p(e,t){return t===r.w$.Empty||t===r.w$.Hunk?[e,void 0]:x(e,r.JF[t])}function g(e,t){let n;switch(t){case r.w$.Addition:n=r.JF[r.w$.Addition];break;case r.w$.Deletion:n=r.JF[r.w$.Deletion];break;case r.w$.Context:case r.w$.InjectedContext:n=r.JF[r.w$.Context]}return x(e,n)}function x(e,t){if(!t||!e.startsWith(t))return[e,void 0];let n=e[0];return[e.substring(1),n]}function b(e){let t=[],n=[],i=()=>{for(;t.length=r?(0,a.j$)(t):function(e,t){let n=v(e),i=n?e.left:e.right,r=n?”left”:”right”;if(null!==i)return(0,a.j$)({diffAnchor:t,endLineNumber:i,endOrientation:r,startLineNumber:i,startOrientation:r})}(e,n)}else t&&(i=(0,a.j$)(t));if(i)return`${r}${s}#${i}`}function j({hasThreads:e}){return e?”80px”:”24px”}let C=[“ADDITION”,”DELETION”,”CONTEXT”],w=(e,t)=>{if(m(e)||!e)return!1;let n=t.leftLines.concat(t.rightLines),i=n.filter(e=>!m(e)).map(e=>(0,l.bo)(e)),a=(0,l.bo)(e);return n.length>0&&i.includes(a)?n.every(e=>!!m(e)||C.includes(e.type)):!!m(e)||C.includes(e.type)},N=e=>e?e.filter(e=>!m(e)).map(e=>{var t;let[n]=g((t=e.html,new DOMParser().parseFromString(t,”text/html”).documentElement.textContent||””),e.type);return n}).join(` `):””;function S(e){return!!(e.text.length<1&&("CONTEXT"===e.type||"INJECTED_CONTEXT"===e.type)||("DELETION"===e.type||"ADDITION"===e.type)&&1===e.text.length&&["+","-"].includes(e.text.charAt(0)))}let L=(e,t,n,i)=>{let a;if(e)return e;if(!m(t)){let e=(n?t.left:t.right)??0,r=n?”left”:”right”;a={startOrientation:r,endOrientation:r,startLineNumber:e,endLineNumber:e,diffAnchor:i}}return a};function D(e,t=!1,n=!1){let i;switch(e){case”ADDITION”:i=t?”var(–diffBlob-additionNum-bgColor, var(–diffBlob-addition-bgColor-num))”:”var(–diffBlob-additionLine-bgColor, var(–diffBlob-addition-bgColor-line))”;break;case”DELETION”:i=t?”var(–diffBlob-deletionNum-bgColor, var(–diffBlob-deletion-bgColor-num))”:”var(–diffBlob-deletionLine-bgColor, var(–diffBlob-deletion-bgColor-line))”;break;case”HUNK”:i=t?”var(–diffBlob-hunkNum-bgColor-rest, var(–diffBlob-hunk-bgColor-num))”:”var(–diffBlob-hunkLine-bgColor, var(–bgColor-accent-muted))”;break;case”EMPTY”:i=t?”var(–diffBlob-emptyNum-bgColor, var(–diffBlob-hunk-bgColor-num))”:”var(–diffBlob-emptyLine-bgColor, var(–bgColor-accent-muted))”;break;default:i=”var(–bgColor-default)”}return n?””:i}},3252:(e,t,n)=>{function i(e){return[…e.querySelectorAll(“.js-blob-code-addition”)].map(e=>e.textContent).filter(e=>null!==e)}function a(e){if(!e||e.length>1e5)return null;let t=e.split(/\r?\n/),n=!1,i=””,a=[];for(let e=0;e0){let t=RegExp(`^ {0,${i.length}}`);e=r.replace(t,””)}a.push(e)}else{let e=r.match(/^( {0,3})(`{3,}|~{3,})suggestion[ \t]*$/);if(e){n=!0,i=e[1]||””;continue}}}return null}n.d(t,{T:()=>a,y:()=>i})},8431:(e,t,n)=>{n.d(t,{A:()=>i});let i={diff:”Diff-module__diff–Sofy4″,diffTargetable:”Diff-module__diffTargetable–kW3Cm”,diffHeaderWrapper:”Diff-module__diffHeaderWrapper–eH6zk”,diffAddFileThread:”Diff-module__diffAddFileThread–f81Tx”,diffFooter:”Diff-module__diffFooter–kHHJz”}},10583:(e,t,n)=>{n.d(t,{M:()=>o});var i=n(74848),a=n(68273),r=n(16522),s=n(38621),l=n(76720);let o=(0,a.Z6)()?function(e){let t,n,a,o,d,c,u=(0,r.c)(8),{text:m}=e;u[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsx)(l.E.Visual,{children:(0,i.jsx)(s.AlertIcon,{size:”medium”,className:”mb-2 fgColor-muted”})}),u[0]=t):t=u[0];let f=m||”Unable to load page.”;return u[1]!==f?(n=(0,i.jsx)(l.E.Heading,{children:f}),u[1]=f,u[2]=n):n=u[2],u[3]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(“p”,{className:”d-flex flex-justify-center mt-2″,children:”The page is unavailable due to a system error.”}),o=(0,i.jsx)(“p”,{className:”d-flex flex-justify-center mt-2″,children:” Try reloading the page, or if the problem persists, contact support.”}),u[3]=a,u[4]=o):(a=u[3],o=u[4]),u[5]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,i.jsxs)(l.E.Description,{children:[a,o,(0,i.jsx)(“p”,{className:”d-flex flex-justify-center mt-2″,children:(0,i.jsx)(“a”,{href:”https://www.githubstatus.com”,children:”GitHub status”})})]}),u[5]=d):d=u[5],u[6]!==n?(c=(0,i.jsx)(“div”,{className:”width-full”,children:(0,i.jsxs)(l.E,{border:!1,spacious:!1,children:[t,n,d]})}),u[6]=n,u[7]=c):c=u[7],c}:function({text:e}){return(0,i.jsx)(“div”,{className:”width-full”,children:(0,i.jsxs)(l.E,{border:!1,spacious:!1,children:[(0,i.jsx)(l.E.Visual,{children:(0,i.jsx)(s.AlertIcon,{size:”medium”,className:”mb-2 fgColor-muted”})}),(0,i.jsx)(l.E.Heading,{children:e||”Unable to load page.”}),(0,i.jsxs)(l.E.Description,{children:[(0,i.jsx)(“p”,{className:”d-flex flex-justify-center mt-2″,children:”The page is unavailable due to a system error.”}),(0,i.jsx)(“p”,{className:”d-flex flex-justify-center mt-2″,children:” Try reloading the page, or if the problem persists, contact support.”}),(0,i.jsx)(“p”,{className:”d-flex flex-justify-center mt-2″,children:(0,i.jsx)(“a”,{href:”https://www.githubstatus.com”,children:”GitHub status”})})]})]})})};try{o.displayName||(o.displayName=”PullRequestErrorState”)}catch{}},13107:(e,t,n)=>{n.d(t,{NF:()=>b,QS:()=>f,VO:()=>g,wW:()=>v});var i=n(74848),a=n(73017),r=n(96379),s=n(84268),l=n(82156),o=n(5524),d=n(96540),c=n(75202),u=n(65510),m=n(40493);function f(e,t){let n=encodeURIComponent(t);return`/codespaces?codespace%5Bref%5D=${n}&current_branch=${n}&event_target=REPO_PAGE&repo=${e}`}function h(e){return(0,i.jsxs)(“span”,{children:[“An unexpected error occurred. Please”,” “,(0,i.jsx)(s.A,{inline:!0,href:e,children:”contact support”}),” “,”for more information.”]})}function p({header:e,message:t}){return(0,i.jsxs)(“div”,{className:”blankslate”,children:[(0,i.jsx)(“p”,{className:”fgColor-default text-bold mb-1″,children:e}),(0,i.jsx)(“p”,{className:”mt-2 mx-4″,children:t})]})}function g({children:e}){return(0,i.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,i.jsx)(c.t,{fallback:(0,i.jsx)(p,{header:”Codespaces data failed to load.”,message:”Refresh the page and try again.”}),children:(0,i.jsx)(d.Suspense,{fallback:(0,i.jsxs)(“div”,{role:”status”,className:m.A.CodespacesSkeletonWrapper,”aria-busy”:!0,”aria-label”:”Loading Codespaces”,children:[(0,i.jsx)(“div”,{className:m.A.SkeletonLoaderWrapper,children:(0,i.jsx)(l.f,{width:”100%”,height:”var(–base-size-32)”})}),(0,i.jsx)(o.l.Divider,{}),(0,i.jsx)(“div”,{className:m.A.SkeletonLoaderWrapper,children:(0,i.jsx)(l.f,{width:”100%”,height:”var(–base-size-64)”})}),(0,i.jsx)(o.l.Divider,{}),(0,i.jsx)(“div”,{className:m.A.SkeletonLoaderWrapper,children:(0,i.jsx)(l.f,{width:”100%”,height:”var(–base-size-32)”})})]}),children:e})})})}function x({codespacesPath:e}){let{data:t}=(0,u.U)({queryKey:[“CodespacesTabContent.content”,e],queryFn:async()=>{let t=await (0,r.QJ)(e);if(t.status>=400&&t.status<=499)return"";if(!t.ok)throw Error(`HTTP ${t.status}`);return await t.text()}});return(0,i.jsx)(a.vb,{className:"width-full",html:t})}function b(e){let{hasAccessToCodespaces:t,repoPolicyInfo:n,contactPath:a,currentUserIsEnterpriseManaged:r,enterpriseManagedBusinessName:l,newCodespacePath:o,codespacesPath:d,isLoggedIn:c}=e;if(!t){if(!c)return(0,i.jsx)(p,{header:"Sign in required",message:(0,i.jsxs)("span",{children:["Please"," ",(0,i.jsx)(s.A,{inline:!0,href:o,children:"sign in"})," ","to use Codespaces."]})});if(n?.allowed)if(!n?.changesWouldBeSafe)return(0,i.jsx)(p,{header:"Repository access limited",message:(0,i.jsx)("span",{children:"You do not have access to push to this repository and its owner has disabled forking."})});else return(0,i.jsx)(p,{header:"Codespace access limited",message:h(a)});{let e=null;return e=!n?.canBill&&r?(0,i.jsxs)("span",{children:[(0,i.jsx)(s.A,{href:"https://docs.github.com/enterprise-cloud@latest/admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users",children:"Enterprise-managed users"}),` must have their Codespaces usage paid for by ${l||"their enterprise"}.`]}):n?.hasIpAllowLists?(0,i.jsxs)("span",{children:["Your organization or enterprise enforces"," ",(0,i.jsx)(s.A,{inline:!0,href:"https://docs.github.com/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization",children:"IP allow lists"})," ","which are unsupported by Codespaces at this time."]}):n?.disabledByBusiness?(0,i.jsx)("span",{children:"Your enterprise has disabled Codespaces at this time. Please contact your enterprise administrator for more information."}):n?.disabledByOrganization?(0,i.jsx)("span",{children:"Your organization has disabled Codespaces on this repository. Please contact your organization administrator for more information."}):h(a),(0,i.jsx)(p,{header:"Codespace access limited",message:e})}}return(0,i.jsx)(x,{codespacesPath:d})}function v(e){return(0,i.jsx)(g,{children:(0,i.jsx)(b,{...e})})}try{p.displayName||(p.displayName="ErrorMessage")}catch{}try{g.displayName||(g.displayName="CodespacesTabWrapper")}catch{}try{x.displayName||(x.displayName="ServerRenderedCodespacesTabContent")}catch{}try{b.displayName||(b.displayName="CodespacesTabContent")}catch{}try{v.displayName||(v.displayName="CodespacesTab")}catch{}},13814:(e,t,n)=>{n.d(t,{J:()=>DiffSelectedLineEvent,L:()=>DiffAddCommentButtonClickedEvent});var i=n(50467);let DiffAddCommentButtonClickedEvent=class DiffAddCommentButtonClickedEvent extends Event{constructor(e,t){super(“DiffAddCommentButtonClickedEvent”,{bubbles:!0,cancelable:!0,composed:!0}),(0,i._)(this,”endLineNumber”,void 0),(0,i._)(this,”endOrientation”,void 0),(0,i._)(this,”filePath”,void 0),(0,i._)(this,”startOrientation”,void 0),(0,i._)(this,”startLineNumber”,void 0),this.startLineNumber=e.startLineNumber,this.endLineNumber=e.endLineNumber,this.startOrientation=e.startOrientation,this.endOrientation=e.endOrientation,this.filePath=t}};let DiffSelectedLineEvent=class DiffSelectedLineEvent extends Event{constructor(e,t){super(“DiffSelectedLineEvent”,{bubbles:!0,cancelable:!0,composed:!0}),(0,i._)(this,”endLineNumber”,void 0),(0,i._)(this,”endOrientation”,void 0),(0,i._)(this,”filePath”,void 0),(0,i._)(this,”startOrientation”,void 0),(0,i._)(this,”startLineNumber”,void 0),this.startLineNumber=e.startLineNumber,this.endLineNumber=e.endLineNumber,this.startOrientation=e.startOrientation,this.endOrientation=e.endOrientation,this.filePath=t}}},14808:(e,t,n)=>{n.d(t,{LR:()=>o,KA:()=>R,G9:()=>p,XA:()=>N});var i=n(74848),a=n(16522),r=n(5524),s=n(96540);let l=(0,s.forwardRef)((e,t)=>{let n,s,l,o,d,c,u,m,f,h,p,g,x,b,v=(0,a.c)(28);if(v[0]!==t||v[1]!==e){l=Symbol.for(“react.early_return_sentinel”);e:{let{selected:a,…x}=e;if(x.renderItem){l=x.renderItem({selected:a,…x});break e}let{label:b,id:v,description:y,descriptionVariant:j,onSelect:C,renderDescription:w,className:N,trailingVisual:S,disabled:L}=x;g=S,n=r.l.Item,s=v,o=”option”,d=()=>{C({label:b,id:v,selected:a,description:y,descriptionVariant:j})},c=a,u=t,m=N,f=L,h=b,p=(y||w)&&(0,i.jsx)(r.l.Description,{variant:j,children:w?w():y})}v[0]=t,v[1]=e,v[2]=n,v[3]=s,v[4]=l,v[5]=o,v[6]=d,v[7]=c,v[8]=u,v[9]=m,v[10]=f,v[11]=h,v[12]=p,v[13]=g}else n=v[2],s=v[3],l=v[4],o=v[5],d=v[6],c=v[7],u=v[8],m=v[9],f=v[10],h=v[11],p=v[12],g=v[13];return l!==Symbol.for(“react.early_return_sentinel”)?l:(v[14]!==g?(x=g?(0,i.jsx)(r.l.TrailingVisual,{children:g}):null,v[14]=g,v[15]=x):x=v[15],v[16]!==n||v[17]!==s||v[18]!==x||v[19]!==o||v[20]!==d||v[21]!==c||v[22]!==u||v[23]!==m||v[24]!==f||v[25]!==h||v[26]!==p?(b=(0,i.jsxs)(n,{role:o,onSelect:d,selected:c,ref:u,className:m,disabled:f,children:[h,p,x]},s),v[16]=n,v[17]=s,v[18]=x,v[19]=o,v[20]=d,v[21]=c,v[22]=u,v[23]=m,v[24]=f,v[25]=h,v[26]=p,v[27]=b):b=v[27],b)});l.displayName=”SelectItem”;let o=(0,s.forwardRef)((e,t)=>{let n,l,o,h=(0,a.c)(18),{selectionVariant:p,items:g,onSelect:x,controlled:b,showGroupHeading:v}=e;h[0]!==g?(n=()=>g.filter(c),h[0]=g,h[1]=n):n=h[1];let[y,j]=(0,s.useState)(n);h[2]!==g?(l=g.find(u),h[2]=g,h[3]=l):l=h[3];let C=l;if(h[4]!==b||h[5]!==C||h[6]!==g||h[7]!==x||h[8]!==t||h[9]!==y||h[10]!==p||h[11]!==v){let e,n=C?g.reduce(m,{}):null,a=g.filter(f),l=n&&Object.entries(n);h[13]!==b||h[14]!==x||h[15]!==y||h[16]!==p?(e=e=>{let{id:t}=e;if(x&&x(e),b)if(y.find(e=>e.id===t)){let e=y.filter(e=>e.id!==t);j(e),b(e)}else{let t=”multiple”===p?[…y,e]:[e];j(t),b(t)}},h[13]=b,h[14]=x,h[15]=y,h[16]=p,h[17]=e):e=h[17];let c=e;o=(0,i.jsx)(i.Fragment,{children:n?(0,i.jsxs)(i.Fragment,{children:[l?l.map((e,n)=>{let[a,o]=e;return(0,i.jsxs)(s.Fragment,{children:[(0,i.jsxs)(r.l.Group,{“aria-label”:o[0]?.groupTitle||`Group ${a}`,selectionVariant:p,children:[v?(0,i.jsx)(r.l.GroupHeading,{variant:”filled”,children:o[0]?.groupTitle||`Group ${a}`}):null,o.map((e,a)=>(0,i.jsx)(d,{selectedItems:y,onSelectToggle:c,controlled:b,ref:0===a&&0===n?t:void 0,…e},e.id))]},a),l.length>1&&n!==l.length-1?(0,i.jsx)(r.l.Divider,{}):null]},a)}):null,a.map(e=>(0,i.jsx)(d,{selectedItems:y,onSelectToggle:c,controlled:b,…e},e.id))]}):(0,i.jsx)(i.Fragment,{children:g.map((e,n)=>(0,i.jsx)(d,{selectedItems:y,onSelectToggle:c,controlled:b,ref:0===n?t:null,…e},e.id))})}),h[4]=b,h[5]=C,h[6]=g,h[7]=x,h[8]=t,h[9]=y,h[10]=p,h[11]=v,h[12]=o}else o=h[12];return o}),d=s.forwardRef((e,t)=>{let n,r,s,o,d,c,u,m,f,h,p,g,x=(0,a.c)(35);x[0]!==e?({id:s,label:o,description:r,selectedItems:f,onSelectToggle:c,onSelect:d,controlled:n,selected:m,…u}=e,x[0]=e,x[1]=n,x[2]=r,x[3]=s,x[4]=o,x[5]=d,x[6]=c,x[7]=u,x[8]=m,x[9]=f):(n=x[1],r=x[2],s=x[3],o=x[4],d=x[5],c=x[6],u=x[7],m=x[8],f=x[9]),x[10]!==r||x[11]!==s||x[12]!==o||x[13]!==c||x[14]!==u.descriptionVariant||x[15]!==m?(h=()=>{c({label:o,id:s,selected:m,description:r,descriptionVariant:u.descriptionVariant})},x[10]=r,x[11]=s,x[12]=o,x[13]=c,x[14]=u.descriptionVariant,x[15]=m,x[16]=h):h=x[16];let b=h;x[17]!==n||x[18]!==s||x[19]!==m||x[20]!==f?(p=n?f.some(e=>e.id===s):!!m,x[17]=n,x[18]=s,x[19]=m,x[20]=f,x[21]=p):p=x[21];let v=d||b;return x[22]!==r||x[23]!==s||x[24]!==o||x[25]!==u.className||x[26]!==u.descriptionVariant||x[27]!==u.disabled||x[28]!==u.renderDescription||x[29]!==u.renderItem||x[30]!==u.trailingVisual||x[31]!==t||x[32]!==p||x[33]!==v?(g=(0,i.jsx)(l,{label:o,id:s,description:r,descriptionVariant:u.descriptionVariant,selected:p,onSelect:v,className:u.className,renderItem:u.renderItem,ref:t,trailingVisual:u.trailingVisual,disabled:u.disabled,renderDescription:u.renderDescription}),x[22]=r,x[23]=s,x[24]=o,x[25]=u.className,x[26]=u.descriptionVariant,x[27]=u.disabled,x[28]=u.renderDescription,x[29]=u.renderItem,x[30]=u.trailingVisual,x[31]=t,x[32]=p,x[33]=v,x[34]=g):g=x[34],g});function c(e){return e.selected}function u(e){return void 0!==e.groupId}function m(e,t){return void 0!==t.groupId&&(e[t.groupId]=e[t.groupId]||[],e[t.groupId]&&e[t.groupId].push(t)),e}function f(e){return void 0===e.groupId}o.displayName=”SelectBody”,d.displayName=”SelectBodyItem”;var h=n(21373);function p(e){let t,n,r,s,l,o,d,c,u,m=(0,a.c)(23),{footerButtons:f,onSave:p,onCancel:b}=e;m[0]!==f?(t=f?.reduce(x,{save:void 0,cancel:void 0,supplementary:[]}),s=”SimpleSelect-module__Footer–BWYvt”,n=”SimpleSelect-module__FooterContent–CCfD8″,r=f?t?.supplementary.map(g):null,m[0]=f,m[1]=t,m[2]=n,m[3]=r,m[4]=s):(t=m[1],n=m[2],r=m[3],s=m[4]),m[5]!==n||m[6]!==r?(l=(0,i.jsx)(“div”,{className:n,children:r}),m[5]=n,m[6]=r,m[7]=l):l=m[7];let v=t?.cancel,y=t?.cancel?.content||”Cancel”;m[8]!==b||m[9]!==v||m[10]!==y?(o=(0,i.jsx)(h.Q,{onClick:b,…v,children:y}),m[8]=b,m[9]=v,m[10]=y,m[11]=o):o=m[11];let j=t?.save,C=t?.save?.content||”Save”;return m[12]!==p||m[13]!==j||m[14]!==C?(d=(0,i.jsx)(h.Q,{variant:”primary”,onClick:p,…j,children:C}),m[12]=p,m[13]=j,m[14]=C,m[15]=d):d=m[15],m[16]!==d||m[17]!==o?(c=(0,i.jsxs)(“div”,{className:”SimpleSelect-module__FooterActions–ILN1s”,children:[o,d]}),m[16]=d,m[17]=o,m[18]=c):c=m[18],m[19]!==c||m[20]!==s||m[21]!==l?(u=(0,i.jsxs)(“div”,{className:s,children:[l,c]}),m[19]=c,m[20]=s,m[21]=l,m[22]=u):u=m[22],u}function g(e){let{variant:t,content:n,…a}=e;return(0,i.jsx)(h.Q,{variant:t||”default”,…a,children:n},n)}function x(e,t){let{action:n,…i}=t;return”save”===n||”cancel”===n?e[n]=i:e.supplementary.push(i),e}try{p.displayName||(p.displayName=”SelectFooter”)}catch{}var b=n(38621),v=n(81960),y=n(26108);let j=e=>{let t,n,r,s=(0,a.c)(8),{id:l,title:o,onClose:d}=e,c=void 0===o?”Select an item”:o;return s[0]!==l||s[1]!==c?(t=(0,i.jsx)(v.A,{id:l,as:”h1″,className:”SimpleSelect-module__Title–dSeJ4″,children:c}),s[0]=l,s[1]=c,s[2]=t):t=s[2],s[3]!==d?(n=(0,i.jsx)(y.K,{icon:b.XIcon,”aria-label”:”Close”,variant:”invisible”,onClick:d}),s[3]=d,s[4]=n):n=s[4],s[5]!==t||s[6]!==n?(r=(0,i.jsxs)(“div”,{className:”SimpleSelect-module__Header–DPfBs”,children:[t,n]}),s[5]=t,s[6]=n,s[7]=r):r=s[7],r};try{j.displayName||(j.displayName=”SelectHeader”)}catch{}var C=n(31604),w=n(15220);function N(e){let t,n,l,d,c,u,m,f,g,x,v,y,C,w,N,A,k=(0,a.c)(76),{variant:E,items:T,label:O,title:P,selectionVariant:F,onSelect:$,renderText:M,onSave:B,onCancel:V,selectable:U,buttonProps:G,outsideClick:H,onEscape:q,focusTarget:z,dialogProps:K,footerButtons:W}=e,Z=void 0===E?”overlay”:E,Q=void 0===P?”Select an item”:P,X=void 0===H?”save”:H,J=void 0===q?”save”:q,Y=void 0===z?”first-target”:z,[ee,et]=(0,s.useState)(!1),[en,ei]=(0,s.useState)();k[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],k[0]=t):t=k[0];let[ea,er]=(0,s.useState)(t),es=(0,s.useRef)(null),el=(0,s.useId)(),eo=U?ea:T.filter(_),ed=(0,s.useRef)(null);en||(ei(T),er(T.filter(I))),k[1]!==T||k[2]!==V||k[3]!==B||k[4]!==ea||k[5]!==U||k[6]!==en?(n=(e,t)=>{if(“save”===e&&(B||U)){let e=U?t||ea:T.filter(D),n=T.map(t=>e.find(e=>e.id===t.id)?{…t,selected:!0}:{…t,selected:!1});ei(n),B&&B(n)}else”cancel”===e&&V?V(en||T):”cancel”===e&&U&&er(en?.filter(L)||[]);et(!1)},k[1]=T,k[2]=V,k[3]=B,k[4]=ea,k[5]=U,k[6]=en,k[7]=n):n=k[7];let ec=n;k[8]!==ec?(l=()=>ec(“save”),k[8]=ec,k[9]=l):l=k[9];let eu=l;k[10]!==ec?(d=()=>ec(“cancel”),k[10]=ec,k[11]=d):d=k[11];let em=d;k[12]!==ec||k[13]!==ea||k[14]!==U||k[15]!==F?(c=e=>{er(e),ea&&U?.(e),”single”===F&&ec(“save”,e)},k[12]=ec,k[13]=ea,k[14]=U,k[15]=F,k[16]=c):c=k[16];let ef=c;k[17]!==ec||k[18]!==J||k[19]!==X||k[20]!==ea?(u=e=>{“click-outside”===e||”anchor-click”===e||”close-button”===e?ec(X):”escape”===e&&ec(J,ea)},k[17]=ec,k[18]=J,k[19]=X,k[20]=ea,k[21]=u):u=k[21];let eh=u,ep=h.Q,eg=”overlay”===Z?b.TriangleDownIcon:null;k[22]!==ee?(m=()=>et(!ee),k[22]=ee,k[23]=m):m=k[23];let ex=M?M():`${O}${!eo.length?””:`: ${eo.map(S).join(“, “)}`}`;k[24]!==ep||k[25]!==G||k[26]!==ee||k[27]!==eg||k[28]!==m||k[29]!==ex?(f=(0,i.jsx)(ep,{trailingAction:eg,ref:ed,variant:”default”,onClick:m,”aria-haspopup”:”dialog”,”aria-expanded”:ee,…G,children:ex}),k[24]=ep,k[25]=G,k[26]=ee,k[27]=eg,k[28]=m,k[29]=ex,k[30]=f):f=k[30],k[31]!==el||k[32]!==em||k[33]!==Q||k[34]!==Z?(g=”overlay”===Z?(0,i.jsx)(j,{id:el,title:Q,onClose:em}):null,k[31]=el,k[32]=em,k[33]=Q,k[34]=Z,k[35]=g):g=k[35];let eb=U&&en?en:T;k[36]!==B||k[37]!==$||k[38]!==U||k[39]!==F?(x=”single”!==F||B||U?$:e=>{$?.(e),et(!1)},k[36]=B,k[37]=$,k[38]=U,k[39]=F,k[40]=x):x=k[40];let ev=U?ef:void 0,ey=”first-item”===Y?es:null;return k[41]!==F||k[42]!==eb||k[43]!==x||k[44]!==ev||k[45]!==ey?(v=(0,i.jsx)(o,{selectionVariant:F,items:eb,onSelect:x,controlled:ev,ref:ey}),k[41]=F,k[42]=eb,k[43]=x,k[44]=ev,k[45]=ey,k[46]=v):v=k[46],k[47]!==F||k[48]!==v?(y=(0,i.jsx)(“div”,{className:”SimpleSelect-module__SelectBodyWrapper–Dre5i”,children:(0,i.jsx)(r.l,{role:”listbox”,selectionVariant:F,”aria-label”:”Selection”,children:v})}),k[47]=F,k[48]=v,k[49]=y):y=k[49],k[50]!==W||k[51]!==B||k[52]!==em||k[53]!==eu||k[54]!==Z?(C=B&&”modal”!==Z?(0,i.jsx)(p,{onSave:eu,onCancel:em,footerButtons:W}):null,k[50]=W,k[51]=B,k[52]=em,k[53]=eu,k[54]=Z,k[55]=C):C=k[55],k[56]!==g||k[57]!==y||k[58]!==C||k[59]!==Z?(w=(0,i.jsxs)(“div”,{“data-container”:Z,className:”SimpleSelect-module__Wrapper–cFdti”,children:[g,y,C]}),k[56]=g,k[57]=y,k[58]=C,k[59]=Z,k[60]=w):w=k[60],k[61]!==K||k[62]!==Y||k[63]!==W||k[64]!==el||k[65]!==eh||k[66]!==ee||k[67]!==em||k[68]!==eu||k[69]!==w||k[70]!==Q||k[71]!==Z?(N=(0,i.jsx)(R,{headingId:el,open:ee,anchorRef:ed,onClose:eh,variant:Z,dialogProps:K,title:Q,selectSave:eu,selectCancel:em,footerButtons:W,focusTarget:Y,firstItem:es,children:w}),k[61]=K,k[62]=Y,k[63]=W,k[64]=el,k[65]=eh,k[66]=ee,k[67]=em,k[68]=eu,k[69]=w,k[70]=Q,k[71]=Z,k[72]=N):N=k[72],k[73]!==f||k[74]!==N?(A=(0,i.jsxs)(i.Fragment,{children:[f,N]}),k[73]=f,k[74]=N,k[75]=A):A=k[75],A}function S(e){return e.label}function L(e){return e.selected}function D(e){return e.selected}function I(e){return e.selected}function _(e){return e.selected}function R(e){let t,n=(0,a.c)(15),{open:r,anchorRef:s,headingId:l,focusTarget:o,firstItem:d,onClose:c,children:u,variant:m,dialogProps:f,title:h,selectSave:g,selectCancel:x,footerButtons:b,focusZoneSettings:v}=e;return n[0]!==s||n[1]!==u||n[2]!==f||n[3]!==d||n[4]!==o||n[5]!==v||n[6]!==b||n[7]!==l||n[8]!==c||n[9]!==r||n[10]!==x||n[11]!==g||n[12]!==h||n[13]!==m?(t=(0,i.jsx)(i.Fragment,{children:”overlay”===m?(0,i.jsx)(C.T,{open:r,anchorRef:s,renderAnchor:null,overlayProps:{role:”dialog”,”aria-labelledby”:l,maxHeight:”large”,maxWidth:”medium”},focusZoneSettings:v||{disabled:!0},focusTrapSettings:{initialFocusRef:”first-item”===o?d:void 0},onClose:c,children:u}):(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(w.l,{renderBody:()=>(0,i.jsx)(w.l.Body,{className:”SimpleSelect-module__DialogBody–NoZic”,children:u}),width:”large”,onClose:c,title:h,renderFooter:()=>(0,i.jsx)(p,{onSave:g,onCancel:x,footerButtons:b}),position:{narrow:”fullscreen”,regular:”center”},…f}):null})}),n[0]=s,n[1]=u,n[2]=f,n[3]=d,n[4]=o,n[5]=v,n[6]=b,n[7]=l,n[8]=c,n[9]=r,n[10]=x,n[11]=g,n[12]=h,n[13]=m,n[14]=t):t=n[14],t}try{N.displayName||(N.displayName=”SimpleSelect”)}catch{}try{R.displayName||(R.displayName=”SelectContainer”)}catch{}},15697:(e,t,n)=>{function i({paths:e,diffSummaries:t}){let n={};for(let i of e){let e=t[i];if(e&&e.markersMap){let t=[];for(let n in e.markersMap){let i=e.markersMap[n]?.ctx;i&&t.push(i)}n[i]=t}}return n}function a({diffSummary:e}){let t=[];if(e&&e.markersMap)for(let n in e.markersMap){let i=e.markersMap[n]?.ctx;i&&t.push({start:i[0],end:i[1]})}return t}n.d(t,{B:()=>a,i:()=>i})},16795:(e,t,n)=>{n.d(t,{b:()=>rx});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(15220),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:A,fileFilterMenuOptions:k,fileFilterState:E,filterSize:T,viewerLogin:O,setFileFilterState:P}=e,[F]=(0,S.o)();_[0]!==A?(n={basePath:A},_[0]=A,_[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:G,showDeletedFiles:H,showOnlyManifestFiles:q,showVendoredFiles:z,showViewedFiles:K}=a,{canSeeDeletedFilesFilter:W,canSeeOnlyManifestFilesFilter:Z,canSeeVendorFilesFilter:Q}=k,X=(0,I.q6)(),{clearAllFilters:J}=(0,I.or)(),{canSeeCodeownersFilter:Y}=k,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]!==G||_[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:G,onSelect:()=>{if(!O)return;let e=new URLSearchParams(F);G?e.delete(“owned-by[]”,O):e.set(“owned-by[]”,O),ei({showOnlyOwnedFiles:!G},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]=G,_[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]!==H?(f=W&&(0,o.jsx)(w.l.Item,{selected:H,onSelect:()=>{let e=new URLSearchParams(F);e.set(“show-deleted-files”,`${!H}`),ei({showDeletedFiles:!H},e)},children:”Deleted files”}),_[27]=W,_[28]=ei,_[29]=F,_[30]=H,_[31]=f):f=_[31],_[32]!==Q||_[33]!==ei||_[34]!==F||_[35]!==z?(h=Q&&(0,o.jsx)(w.l.Item,{selected:z,onSelect:()=>{let e=new URLSearchParams(F);e.set(“show-vendored-files”,`${!z}`),ei({showVendoredFiles:!z},e)},children:”Vendored files”}),_[32]=Q,_[33]=ei,_[34]=F,_[35]=z,_[36]=h):h=_[36],_[37]!==ei||_[38]!==F||_[39]!==K?(p=()=>{let e=new URLSearchParams(F);e.set(“show-viewed-files”,`${!K}`),ei({showViewedFiles:!K},e)},_[37]=ei,_[38]=F,_[39]=K,_[40]=p):p=_[40],_[41]!==K||_[42]!==p?(g=(0,o.jsx)(w.l.Item,{selected:K,onSelect:p,children:”Viewed files”}),_[41]=K,_[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,A=(0,I.q6)(),{clearAllFilters:k}=(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),k()},[l,k]);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:A,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 A=n(38621),k=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 G=(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)(A.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)(A.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)(A.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:K,children:F}),f[17]=v,f[18]=F,f[19]=s):s=f[19];let G=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]!==G||f[24]!==F||f[25]!==j?(d=j?(0,o.jsx)(k.m,{text:F,direction:”ne”,children:G}):G,f[23]=G,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)(A.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}),H=(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)(H,{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)(G,{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}),z=(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)(H,{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{G.displayName||(G.displayName=”File”)}catch{}try{H.displayName||(H.displayName=”Directory”)}catch{}try{q.displayName||(q.displayName=”DirectoryRendering”)}catch{}try{z.displayName||(z.displayName=”PullRequestDiffFileTree”)}catch{}function K(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(4175),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:A.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:A.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:A.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:A.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})},eA=(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 ek(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$)(),k=(0,y.useRef)(null),{error:E}=eR(L.headOid,L.baseOid),T=!!E&&!j;eA(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(()=>{k.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(()=>{k.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:k,children:[V,$&&F&&(0,o.jsx)(N.A,{scheme:”secondary”,className:”mx-2″,children:p.length}),$?(0,o.jsx)(A.ChevronDownIcon,{className:”ml-auto”}):(0,o.jsx)(A.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:ek(_)}),” “,(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;eA(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)(A.ChevronDownIcon,{className:”ml-auto”}):(0,o.jsx)(A.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:ek(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:A.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)(k.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:A.XIcon,onClick:e=>{e.preventDefault(),e.stopPropagation(),a()}}):null]},`${e.name}-${n?”collapsed”:”expanded”}`);return l?(0,o.jsx)(k.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”,eG=(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)(),A=(0,I.WA)(),{sendChangeGroupsPresentedEvent:k}=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]!==k||g[7]!==A?(i=()=>{S&&L.length>0&&!_&&!A&&k({isErrorState:!1,userPreferenceDisabled:!0,hasGroups:!0})},a=[S,_,A,k,L.length],g[3]=S,g[4]=L.length,g[5]=_,g[6]=k,g[7]=A,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]!==A?(r=S&&!_&&A&&!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]=A,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)(z,{diffs:j,fileNodeRenderer:eH,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)(z,{diffs:n,fileNodeRenderer:s,sortByDiffOrder:!0,onSelect:i,className:”pr-lg-3″})]})]})})]})};function eH(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(eK),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)(G,{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)(G,{file:a,…t})});try{eG.displayName||(eG.displayName=”PullRequestFileTree”)}catch{}try{eq.displayName||(eq.displayName=”PullRequestFile”)}catch{}function ez(e){return e.id}function eK(e){return e.threads.map(ez)}var eW=n(11680),eZ=n(25407);let eQ=(0,d.Z6)()?function(e){let t,n,i,a,r,s=(0,c.c)(17),{pageLimits:l,repository:d,urls:u}=e,m=l.filesLimitExceeded||l.reviewThreadsLimitExceeded||l.annotationsLimitExceeded;s[0]!==l.annotationsLimit||s[1]!==l.annotationsLimitExceeded||s[2]!==l.filesLimit||s[3]!==l.filesLimitExceeded||s[4]!==l.reviewThreadsLimit||s[5]!==l.reviewThreadsLimitExceeded?(t=()=>{let e=[];l.filesLimitExceeded&&e.push(`${l.filesLimit} files`),l.reviewThreadsLimitExceeded&&e.push(`${l.reviewThreadsLimit} comments`),l.annotationsLimitExceeded&&e.push(`${l.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.”},s[0]=l.annotationsLimit,s[1]=l.annotationsLimitExceeded,s[2]=l.filesLimit,s[3]=l.filesLimitExceeded,s[4]=l.reviewThreadsLimit,s[5]=l.reviewThreadsLimitExceeded,s[6]=t):t=s[6];let f=t;s[7]!==d?(n=async function(){let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,eL.DI)((0,eZ.ZD8)({repo:d}),{body:e,method:”POST”})},s[7]=d,s[8]=n):n=s[8];let h=n,p=f(),g=`${u.files}?new_files_changed=false`;s[9]!==h||s[10]!==g?(i=(0,o.jsx)(E.A,{inline:!0,href:g,onClick:h,rel:”noreferrer”,children:”switch back”}),s[9]=h,s[10]=g,s[11]=i):i=s[11],s[12]!==p||s[13]!==i?(a=(0,o.jsxs)(o.Fragment,{children:[p,” To see more,”,” “,i,” “,”to the classic page.”]}),s[12]=p,s[13]=i,s[14]=a):a=s[14];let x=a;return m?(s[15]!==x?(r=(0,o.jsx)(eW.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:x,className:”mb-3″}),s[15]=x,s[16]=r):r=s[16],r):null}:function({pageLimits:e,repository:t,urls:n}){let i,a,r=e.filesLimitExceeded||e.reviewThreadsLimitExceeded||e.annotationsLimitExceeded;async function s(){let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,eL.DI)((0,eZ.ZD8)({repo:t}),{body:e,method:”POST”})}let l=(0,o.jsxs)(o.Fragment,{children:[(i=[],e.filesLimitExceeded&&i.push(`${e.filesLimit} files`),e.reviewThreadsLimitExceeded&&i.push(`${e.reviewThreadsLimit} comments`),e.annotationsLimitExceeded&&i.push(`${e.annotationsLimit} alerts`),a=””,1===i.length?a=`${i[0]}`:2===i.length?a=`${i[0]} and ${i[1]}`:3===i.length&&(a=`${i[0]}, ${i[1]}, and ${i[2]}`),”Only the first “+a+” are currently being shown.”),” To see more,”,” “,(0,o.jsx)(E.A,{inline:!0,href:`${n.files}?new_files_changed=false`,onClick:s,rel:”noreferrer”,children:”switch back”}),” “,”to the classic page.”]});return r?(0,o.jsx)(eW.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:l,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(99511),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:A.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:A.FilterIcon,trailingAction:A.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:A.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:A.FilterIcon,trailingAction:A.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”,G=F?A.ChevronRightIcon:A.ChevronDownIcon;b[13]!==M||b[14]!==G||b[15]!==U?(s=(0,o.jsx)(el.K,{“aria-label”:U,icon:G,size:”small”,variant:”invisible”,onClick:M}),b[13]=M,b[14]=G,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 H=`#r${j}`;b[18]!==D||b[19]!==I||b[20]!==H?(d=(0,o.jsxs)(E.A,{className:l,onClick:D,href:H,muted:!0,children:[“\u200E”,I,”\u200E”]}),b[18]=D,b[19]=I,b[20]=H,b[21]=d):d=b[21],b[22]!==I||b[23]!==d?(u=(0,o.jsx)(k.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:A.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?A.ChevronRightIcon:A.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)(k.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:A.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?A.CheckCircleFillIcon:A.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)(A.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?A.CheckCircleFillIcon:A.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)(A.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=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(29),{commentPreview:u,onNavigateToDiffComment:m,tabSize:f}=e,[h,p]=(0,y.useState)(!1),g=u.commentId;d[0]!==g||d[1]!==m?(t=()=>{window.location.hash=`#r${g}`,m(g)},d[0]=g,d[1]=m,d[2]=t):t=d[2];let x=t;d[3]!==u.commentsData?(n=u.commentsData??{comments:[]},d[3]=u.commentsData,d[4]=n):n=d[4],d[5]!==g||d[6]!==n?(i=tb(g,n),d[5]=g,d[6]=n,d[7]=i):i=d[7];let b=i,v=u.threadPreviewComments.length,j=`${v} previous ${1===v?”comment”:”comments”}`,C=u.isOutdated||!1,w=u.isResolved||!1,N=u.line,S=u.path;d[8]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>p(ty),d[8]=a):a=d[8];let L=u.threadId,D=parseInt(u.commentId);return d[9]!==u.line||d[10]!==u.path||d[11]!==u.threadId||d[12]!==h||d[13]!==x||d[14]!==D||d[15]!==C||d[16]!==w?(r=(0,o.jsx)(tr,{isCollapsed:h,isOutdated:C,isResolved:w,line:N,path:S,onNavigateToDiffComment:x,onToggleCollapsed:a,threadId:L,firstCommentId:D}),d[9]=u.line,d[10]=u.path,d[11]=u.threadId,d[12]=h,d[13]=x,d[14]=D,d[15]=C,d[16]=w,d[17]=r):r=d[17],d[18]!==b||d[19]!==u||d[20]!==h||d[21]!==x||d[22]!==v||d[23]!==j||d[24]!==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})}),v>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:A.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:b})]})})}),(0,o.jsx)(tg.vb,{className:”markdown-body”,html:tv(u),sx:{p:3,fontSize:1}})]}),d[18]=b,d[19]=u,d[20]=h,d[21]=x,d[22]=v,d[23]=j,d[24]=f,d[25]=s):s=d[25],d[26]!==r||d[27]!==s?(l=(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[r,s]}),d[26]=r,d[27]=s,d[28]=l):l=d[28],l}:function({commentPreview:e,onNavigateToDiffComment:t,tabSize:n}){let[i,a]=(0,y.useState)(!1),r=e.commentId,s=(0,y.useCallback)(()=>{window.location.hash=`#r${r}`,t(r)},[r,t]),l=tb(r,e.commentsData??{comments:[]}),d=e.threadPreviewComments.length,c=`${d} previous ${1===d?”comment”:”comments”}`;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:s,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:A.ChevronRightIcon,variant:”invisible”,onClick:s,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.vb,{className:”markdown-body”,html:tv(e),sx:{p:3,fontSize:1}})]})]})});function tb(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 tv(e){let t=(e.commentsData?.comments??[]).find(t=>t&&String(t.databaseId)===e.commentId);return t?.bodyHTML??””}try{tx.displayName||(tx.displayName=”PendingCommentPreview”)}catch{}function ty(e){return!e}function tj(e){return`panel-thread-collapsed-state-${e}`}let tC=(0,y.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s=(0,c.c)(33),{onNavigateToDiffComment:l,tabSize:d,threadPreview:u,headingLevel:m}=e,{previewInfo:f}=u,{threadId:h,firstComment:p}=f,g=p?.id,x=f.path,b=(0,I.j5)(),{navigateToSelectedComment:v}=(0,I.Lh)(),y=(0,I.SM)(),j=f.subject?.endDiffSide===”RIGHT”?”R”:”L”,C=f.subject?.originalEndLine?`${j}${f.subject.originalEndLine}`:tp.zW,w=y(Number(f.threadId),f.path,C),N=w?.isResolved||!1,S=w?.isOutdated||!1,L=()=>{if(S&&f.originalDiffPathUri){let e=new URL(f.originalDiffPathUri);e.searchParams.set(“new_files_changed”,”true”),window.location.href=e.toString()}else window.location.hash=`#r${p?.databaseId}`,b&&p?.databaseId&&v(p?.databaseId);l()};s[0]!==h?(t=tj(h),s[0]=h,s[1]=t):t=s[1];let[D,_]=(0,tt.M)(t,!1),R=f.threadPreviewComments.length,k=0===R?”No replies”:`${R} ${1===R?”reply”:”replies”}`,E={…w,id:w?.id??””,commentsData:{comments:[]}};if(!p||!E)return null;let T=tb(f.commentId,w?.commentsData??{comments:[]}),O=p?.databaseId;return s[2]!==D||s[3]!==_?(n=()=>_(!D),s[2]=D,s[3]=_,s[4]=n):n=s[4],s[5]!==m||s[6]!==D||s[7]!==S||s[8]!==N||s[9]!==C||s[10]!==L||s[11]!==O||s[12]!==n||s[13]!==u?(i=(0,o.jsx)(tu,{firstCommentId:O,isCollapsed:D,threadPreview:u,onNavigateToDiffComment:L,onToggleCollapsed:n,headingLevel:m,isResolved:N,isOutdated:S,lineKey:C}),s[5]=m,s[6]=D,s[7]=S,s[8]=N,s[9]=C,s[10]=L,s[11]=O,s[12]=n,s[13]=u,s[14]=i):i=s[14],s[15]!==T||s[16]!==g||s[17]!==x||s[18]!==p||s[19]!==D||s[20]!==S||s[21]!==N||s[22]!==C||s[23]!==L||s[24]!==f.originalDiffPathUri||s[25]!==f.subject?.diffLines||s[26]!==k||s[27]!==d||s[28]!==h?(a=!D&&(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:f?.subject?.diffLines,className:”m-0 border-0″,tabSize:d||4})}),(0,o.jsx)(“div”,{children:(0,o.jsx)(e9.U,{lineMarkersKey:C,hideActions:!0,isInlineComment:!1,comment:p,filePath:x,index:0,isAnchorable:!1,isOutdated:S,isThreadResolved:N,threadId:h,originalDiffPathUri:f.originalDiffPathUri,headingLevel:”h3″},g)}),(0,o.jsx)(“div”,{className:”mb-2 px-2″,children:(0,o.jsx)(em.Q,{“aria-label”:`View ${k}`,size:”small”,trailingVisual:A.ChevronRightIcon,variant:”invisible”,onClick:L,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,o.jsx)(“span”,{children:k}),(0,o.jsx)(tf,{commentAuthors:T})]})})})]}),s[15]=T,s[16]=g,s[17]=x,s[18]=p,s[19]=D,s[20]=S,s[21]=N,s[22]=C,s[23]=L,s[24]=f.originalDiffPathUri,s[25]=f.subject?.diffLines,s[26]=k,s[27]=d,s[28]=h,s[29]=a):a=s[29],s[30]!==i||s[31]!==a?(r=(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[i,a]}),s[30]=i,s[31]=a,s[32]=r):r=s[32],r}:function({onNavigateToDiffComment:e,tabSize:t,threadPreview:n,headingLevel:i}){let{previewInfo:a}=n,{threadId:r,firstComment:s}=a,l=s?.id,d=a.path,c=(0,I.j5)(),{navigateToSelectedComment:u}=(0,I.Lh)(),m=(0,I.SM)(),f=a.subject?.endDiffSide===”RIGHT”?”R”:”L”,h=a.subject?.originalEndLine?`${f}${a.subject.originalEndLine}`:tp.zW,p=m(Number(a.threadId),a.path,h),g=p?.isResolved||!1,x=p?.isOutdated||!1,b=()=>{if(x&&a.originalDiffPathUri){let e=new URL(a.originalDiffPathUri);e.searchParams.set(“new_files_changed”,”true”),window.location.href=e.toString()}else window.location.hash=`#r${s?.databaseId}`,c&&s?.databaseId&&u(s?.databaseId);e()},[v,y]=(0,tt.M)(tj(r),!1),j=a.threadPreviewComments.length,C=0===j?”No replies”:`${j} ${1===j?”reply”:”replies”}`,w={…p,id:p?.id??””,commentsData:{comments:[]}};if(!s||!w)return null;let N=tb(a.commentId,p?.commentsData??{comments:[]});return(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[(0,o.jsx)(tu,{firstCommentId:s?.databaseId,isCollapsed:v,threadPreview:n,onNavigateToDiffComment:b,onToggleCollapsed:()=>y(!v),headingLevel:i,isResolved:g,isOutdated:x,lineKey:h}),!v&&(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:h,hideActions:!0,isInlineComment:!1,comment:s,filePath:d,index:0,isAnchorable:!1,isOutdated:x,isThreadResolved:g,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 ${C}`,size:”small”,trailingVisual:A.ChevronRightIcon,variant:”invisible”,onClick:b,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:N})]})})})]})]})});try{tC.displayName||(tC.displayName=”ThreadPreview”)}catch{}var tw=n(4559),tN=n(76720);let tS=(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)(tN.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)(tN.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)(tN.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)(tN.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)(tN.E,{children:[(0,o.jsx)(tN.E.Visual,{children:(0,o.jsx)(n,{size:”medium”})}),(0,o.jsx)(tN.E.Heading,{as:i,children:e}),t&&(0,o.jsx)(tN.E.Description,{children:t})]})};try{tS.displayName||(tS.displayName=”ZeroState”)}catch{}var tL=n(69510);let tD=(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,tL._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)(tw.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)(tC,{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)(tS,{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:A.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,tL._l)({pathName:i});(0,y.useEffect)(()=>{r(l)},[l,r]);let d=(0,y.useRef)(null),c=(0,y.useMemo)(()=>(0,j.s)(tw.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)(tC,{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)(tS,{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:A.CommentIcon,headingLevel:”h2″})}),(0,o.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:d})]})},tI=(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)(t_);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:A.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)(tD,{…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:A.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)(tD,{…i,filteredThreadIds:d,pathName:t,setThreadPreviews:r})})}):null});try{tD.displayName||(tD.displayName=”CommentsSidePanelContent”)}catch{}try{tI.displayName||(tI.displayName=”CommentsSidePanel”)}catch{}function t_(){return{…e7}}let tR=(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:A.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:A.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)(tI,{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:A.CommentDiscussionIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(em.Q,{ref:s,”aria-label”:”Open comments side panel”,count:l,leadingVisual:A.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)(tI,{isOpen:a,pageLimits:t,pathName:n.pathName,tabSize:i,toggleSidesheetRef:s,onClose:()=>r(!1)})]})})};try{tR.displayName||(tR.displayName=”OpenCommentsSidePanelButton”)}catch{}var tA=n(86909);function tk(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 tE=(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:A.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:A.SearchIcon,placeholder:”Filter alerts\u2026″,value:t,onChange:e=>n(e.target.value)})})};try{tE.displayName||(tE.displayName=”AlertsFilter”)}catch{}let tT=”AlertsSidePanel-module__annotationsHeaderFileName–JzcsF”,tO=(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?A.ChevronRightIcon:A.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”,tT),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)(k.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:A.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?A.ChevronRightIcon:A.ChevronDownIcon,size:”small”,variant:”invisible”,className:”mr-1″,onClick:i}),tA.Gt[s],(0,o.jsx)(k.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”,tT),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:A.FileSymlinkFileIcon,variant:”invisible”,href:`#annotation_${e}`,onClick:r})]})},tP=(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=tk(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,k=h.map(e=>e&&N.has(e.id)?(0,o.jsx)(tF,{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)(tw.i,300),f[4]=n):n=f[4];let T=n;return(f[5]!==k||f[6]!==g?(i=()=>{g&&T(k.length>0?`${k.length} ${1===k.length?”alert”:”alerts”}`:”No alerts found”,{element:E.current})},a=[g,T,k],f[5]=k,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:A.XIcon,variant:”invisible”,onClick:p})]}),(0,o.jsx)(tE,{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]!==k||f[17]!==L?(d=k.length>0?(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:k}):(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,o.jsx)(tS,{heading:L?”No alerts match the current filter”:”No alerts on changes yet”,icon:A.AlertIcon})}),f[16]=k,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=tk(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)(tF,{annotation:e,handleNavigateToAnnotation:f},e.id):null).filter(Boolean),p=(0,y.useRef)(null),g=(0,y.useMemo)(()=>(0,j.s)(tw.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:A.XIcon,variant:”invisible”,onClick:t})]}),(0,o.jsx)(tE,{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)(tS,{heading:c?”No alerts match the current filter”:”No alerts on changes yet”,icon:A.AlertIcon})}),(0,o.jsx)(“div”,{className:”sr-only”,”aria-live”:”polite”,”aria-atomic”:”true”,ref:p})]}):null}),tF=(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)(tO,{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)(tO,{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{tO.displayName||(tO.displayName=”AnnotationHeader”)}catch{}try{tP.displayName||(tP.displayName=”AlertsSidePanel”)}catch{}try{tF.displayName||(tF.displayName=”SidePanelAlert”)}catch{}let t$=(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:A.AlertIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(em.Q,{ref:m,className:l,”aria-label”:”Open alerts side panel”,count:x,leadingVisual:A.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)(tP,{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:A.AlertIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(em.Q,{ref:r,className:n,”aria-label”:”Open alerts side panel”,count:u,leadingVisual:A.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)(tP,{annotations:c,isOpen:i,pageLimits:t,returnFocusRef:r,onClose:s})]})}):null};try{t$.displayName||(t$.displayName=”OpenAlertsPanelButton”)}catch{}var tM=n(70109),tB=n(42255),tV=n(46251),tU=n(31604),tG=n(33578);let tH={approve:”approve”,comment:”comment”,requestChanges:”request changes”},tq=(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 tK=n(46747);let{getItem:tW,removeItem:tZ,setItem:tQ}=(0,eE.D)(“localStorage”),tX=(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=tW(o),r[0]=o,r[1]=t):t=r[1];let d=t;r[2]!==o?(n=()=>{tZ(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{tQ(o,{event:e,text:t})}catch{l(!0)}},r[4]=s,r[5]=o,r[6]=i):i=r[6];let m=(0,tK.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:tW(i),persistReviewToStorage:(0,tK.d)((e,a)=>{if(!t)try{tQ(i,{event:e,text:a})}catch{n(!0)}},1e3),removePersistedReviewFromStorage:()=>{tZ(i)}}},tJ=”ReviewMenuButton-module__ReviewMenuButton–uK7FN”,tY=”ReviewMenuButton-module__CommentBoxContainer–Un2Pq”,t0=”ReviewMenuButton-module__SubmitReviewButton–ZSu4L”,t1=”ReviewMenuButton-module__ErrorMessage–bglZe”,t2=”ReviewMenuButton-module__ExpandSection–sAB8o”,t3=”ReviewMenuButton-module__AnchoredReviewBody–nirqE”;function t4(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 t5=n(29255),t6=n(55461),t7=n(15837),t8=n(33989),t9=n(55255);let ne=”ReviewMenu-module__Radio–i3DSd”,nt=”ReviewMenu-module__RadioGroup–uQwUG”,nn=”ReviewMenu-module__RadioText–dXY49″,ni=(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)(na,{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)(na,{reviewEvent:t,viewerAllowedNonCommentReviewTypes:n,viewerCanWriteToRepo:i,viewerHasViolatedPushPolicy:a,viewerIsAuthor:r,viewerIsCopilotAttributed:s,onReviewEventChange:l})}):null},na=(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)(t7.A.Label,{visuallyHidden:!0,children:”Review Event”}),g[0]=t):t=g[0];let N=b===tH.comment;g[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,t6.ZH)(tH.comment),g[1]=n):n=g[1],g[2]!==N?(i=(0,o.jsx)(nr,{checked:N,label:n,subLabel:”Submit general feedback without explicit approval.”,value:tH.comment}),g[2]=N,g[3]=i):i=g[3];let S=b===tH.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,t6.ZH)(tH.approve),g[6]=r):r=g[6],g[7]!==w?(s=no(w),g[7]=w,g[8]=s):s=g[8];let D=!!j;g[9]!==D||g[10]!==v||g[11]!==C?(l=ns(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)(nr,{checked:S,disabled:L,label:r,subLabel:s,value:tH.approve,disabledTooltip:l}),g[13]=l,g[14]=S,g[15]=L,g[16]=s,g[17]=d):d=g[17];let I=b===tH.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=nl(C,v),g[20]=v,g[21]=C,g[22]=m):m=g[22],g[23]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,t6.ZH)(tH.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)(nr,{checked:I,disabled:_,disabledTooltip:m,label:f,value:tH.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)(t7.A,{name:”reviewEvent”,onChange:x,className:nt,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)(t7.A,{name:”reviewEvent”,onChange:e,className:nt,children:[(0,o.jsx)(t7.A.Label,{visuallyHidden:!0,children:”Review Event”}),(0,o.jsx)(nr,{checked:t===tH.comment,label:(0,t6.ZH)(tH.comment),subLabel:”Submit general feedback without explicit approval.”,value:tH.comment}),(0,o.jsx)(nr,{checked:t===tH.approve,disabled:!n.includes(“APPROVE”),label:(0,t6.ZH)(tH.approve),subLabel:no(s),value:tH.approve,disabledTooltip:ns(r,!!a,n)}),(0,o.jsx)(nr,{checked:t===tH.requestChanges,disabled:!n.includes(“REQUEST_CHANGES”),disabledTooltip:nl(r,n),label:(0,t6.ZH)(tH.requestChanges),value:tH.requestChanges,subLabel:i?”Submit feedback that must be addressed before merging.”:”Submit feedback suggesting changes.”})]})}),nr=(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)(t8.A,{checked:d,value:p,className:ne}),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:nn,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)(t9.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)(t8.A,{checked:e,value:r,className:ne}),(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:nn,children:a})]})]});return t&&n?(0,o.jsx)(t9.A,{text:n,children:s}):s};function ns(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 nl(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 no(e){return e?”Only users who did not collaborate with Copilot will satisfy review requirements.”:”Submit feedback and approve merging these changes.”}try{ni.displayName||(ni.displayName=”ReviewTypeSelector”)}catch{}try{na.displayName||(na.displayName=”ReviewRadioButtons”)}catch{}try{nr.displayName||(nr.displayName=”RadioButton”)}catch{}var nd=n(4908),nc=n(23398);let nu=(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,nd.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)(A.ChevronDownIcon,{className:”fgColor-muted”}),f[3]=b,f[4]=i):i=f[4],f[5]!==b?(a=!b&&(0,o.jsx)(A.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)(nc.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)(tx,{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)(nc.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,nd.A)({defaultOpen:!0,closeOnOutsideClick:!1});return e?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(nc.A,{…i(),children:[(0,o.jsx)(nc.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)(A.ChevronDownIcon,{className:”fgColor-muted”}),!a&&(0,o.jsx)(A.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)(tx,{commentPreview:e,onNavigateToDiffComment:n},e.threadId))})})]})}):null};try{nu.displayName||(nu.displayName=”ReviewCommentsSection”)}catch{}var nm=n(56149);let nf=(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,nm.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,nm.cw)(t.current,e)},[e]),(0,o.jsx)(“div”,{ref:t,className:”position-absolute”})};try{nf.displayName||(nf.displayName=”OverlayPortalContainer”)}catch{}let nh=”review-menu-portal-root”;function np({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 ng=(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,k,E,T,O,P,F,$,M,B,V=(0,c.c)(125),{currentUserLogin:U,pullRequest:G,repository:H,redirectOnMutation:q}=e,z=void 0===q||q,{author:K,pathName:W,state:Z,viewerAllowedNonCommentReviewTypes:Q,viewerHasViolatedPushPolicy:X,viewerIsCopilotAttributed:J,comparison:ee}=G,et=(0,I.ys)(),en=(0,I.HZ)(),{persistedReview:ei,persistReviewToStorage:ea,removePersistedReviewFromStorage:es}=tX(W);V[0]!==et?.pendingReviewIDs?(t=et?.pendingReviewIDs??[],V[0]=et?.pendingReviewIDs,V[1]=t):t=V[1];let eo=t4(t,en),ed=eo?.length??0,ec=K?.login===U,eu=Z!==tG.Q.Closed&&Z!==tG.Q.Merged,ef=”WRITE”===H.viewerPermission||”ADMIN”===H.viewerPermission,eh=ee.headOid,[ep,eg]=(0,tB.A)(“none”),[ex,eb]=(0,tB.A)(“idle”),[ev,ey]=(0,tB.A)(),[ej,eC]=(0,tB.A)(ei?.event??tH.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,tB.A)(!!ei?.text),e_=”submitting”===ex||!eD&&ej===tH.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 eA=i;V[8]!==ea||V[9]!==eC?(a=e=>{Object.values(tH).includes(e)&&(eC(e),ea(e,eL.current))},V[8]=ea,V[9]=eC,V[10]=a):a=V[10];let ek=a;V[11]!==z||V[12]!==es?(r=e=>{let{redirectUrl:t}=e;es(),z&&(window.location.href=t)},V[11]=z,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}=tq(l);V[20]!==z||V[21]!==es?(d=e=>{let{redirectUrl:t}=e;es(),z&&(window.location.href=t)},V[20]=z,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=np({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]!==ek||V[63]!==eO||V[64]!==eS||V[65]!==eu||V[66]!==eA||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)(nv,{initialReviewBody:eS,isPROpen:eu,onReviewBodyChange:eA,reviewEvent:ej,viewerAllowedNonCommentReviewTypes:Q,viewerCanWriteToRepo:ef,viewerHasViolatedPushPolicy:X,viewerIsAuthor:ec,viewerIsCopilotAttributed:J,commentsList:eo,totalPendingComments:ed,handleNavigateToDiffComment:eB,handleReviewSubmit:eO,handleReviewEventChange:ek}),V[60]=eo,V[61]=eB,V[62]=ek,V[63]=eO,V[64]=eS,V[65]=eu,V[66]=eA,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)(nb,{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 eG=w,eH=ed||void 0;V[84]!==eV||V[85]!==eF.text||V[86]!==eH?(N=(0,o.jsxs)(em.Q,{count:eH,className:tJ,trailingAction:A.TriangleDownIcon,variant:”primary”,onClick:eV,size:”small”,ref:eN,children:[“Submit “,eF.text]}),V[84]=eV,V[85]=eF.text,V[86]=eH,V[87]=N):N=V[87],V[88]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,o.jsx)(nf,{portalName:nh}),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:nh},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?(k=ew&&(0,o.jsx)(el.K,{icon:A.MaximizeIcon,className:t2,variant:”invisible”,”aria-label”:”Expand this section”,onClick:()=>eg(“dialog”)}),V[94]=ew,V[95]=eg,V[96]=k):k=V[96],V[97]!==eM?(E=(0,o.jsx)(el.K,{icon:A.XIcon,variant:”invisible”,”aria-label”:”Close”,onClick:eM}),V[97]=eM,V[98]=E):E=V[98],V[99]!==k||V[100]!==E?(T=(0,o.jsxs)(tV.B,{direction:”horizontal”,align:”center”,gap:”none”,children:[k,E]}),V[99]=k,V[100]=E,V[101]=T):T=V[101],V[102]!==R||V[103]!==T?(O=(0,o.jsxs)(tV.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:t3,children:eU}),V[105]=eU,V[106]=P):P=V[106],V[107]!==eG?(F=(0,o.jsx)(“div”,{className:”p-3 border-top”,children:(0,o.jsx)(eG,{})}),V[107]=eG,V[108]=F):F=V[108],V[109]!==eM||V[110]!==eq||V[111]!==O||V[112]!==P||V[113]!==F?($=(0,o.jsxs)(tU.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]!==eG||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)(eG,{})}),children:eU}),V[115]=eU,V[116]=eG,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}=tX(r),b=t4(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,tB.A)(“none”),[D,_]=(0,tB.A)(“idle”),[R,k]=(0,tB.A)(),[E,T]=(0,tB.A)(h?.event??tH.comment),O=(m?.pendingReviewIDs??[]).length>0,P=(0,y.useRef)(null),F=h?.text??””,$=(0,y.useRef)(F),[M,B]=(0,tB.A)(!!h?.text),V=”submitting”===D||!M&&E===tH.comment&&!v,{sendPullRequestAnalyticsEvent:U}=(0,er.q)(),G=(0,y.useCallback)(e=>{$.current=e,B(!!e.trim()),p(E,e)},[p,E,B]),H=(0,y.useCallback)(e=>{Object.values(tH).includes(e)&&(T(e),p(e,$.current))},[p,T]),{mutate:q}=tq({onSuccess:({redirectUrl:e})=>{g(),i&&(window.location.href=e)},onError:e=>{_(“idle”),k(e.message)}}),{mutate:z}=tz({onSuccess:({redirectUrl:e})=>{g(),i&&(window.location.href=e)},onError:e=>{_(“idle”),k(e.message)}}),K=(0,y.useCallback)(()=>{V||(R&&k(void 0),_(“submitting”),U(“submit_review_dialog.submit”,”SUBMIT_REVIEW_BUTTON”),q({body:$.current,event:E,headSha:N}))},[R,N,E,U,k,_,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&&k(void 0),_(“canceling”),U(“submit_review_dialog.cancel”,”CANCEL_REVIEW_BUTTON”),z())},[z,R,m?.pendingReviewIDs,U,k,_]),Z=(0,y.useMemo)(()=>np({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)(nv,{initialReviewBody:F,isPROpen:C,onReviewBodyChange:G,reviewEvent:E,viewerAllowedNonCommentReviewTypes:l,viewerCanWriteToRepo:w,viewerHasViolatedPushPolicy:d,viewerIsAuthor:j,viewerIsCopilotAttributed:c,commentsList:b,totalPendingComments:v,handleNavigateToDiffComment:J,handleReviewSubmit:K,handleReviewEventChange:H}),[b,J,H,K,F,C,G,E,v,l,w,d,j,c]);if(Z.isHidden)return null;let en=()=>(0,o.jsx)(nb,{errorMessage:R,hasPendingReviews:O,reviewSubmissionState:D,handleReviewCancel:W,handleCloseReviewDialog:X,handleReviewSubmit:K,submitDisabled:V,reviewMenuButtonDisplayState:Z});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(em.Q,{count:v||void 0,className:tJ,trailingAction:A.TriangleDownIcon,variant:”primary”,onClick:ee,size:”small”,ref:P,children:[“Submit “,Z.text]}),(0,o.jsx)(nf,{portalName:nh}),(0,o.jsxs)(tU.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:nh},children:[(0,o.jsxs)(tV.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)(tV.B,{direction:”horizontal”,align:”center”,gap:”none”,children:[O&&(0,o.jsx)(el.K,{icon:A.MaximizeIcon,className:t2,variant:”invisible”,”aria-label”:”Expand this section”,onClick:()=>L(“dialog”)}),(0,o.jsx)(el.K,{icon:A.XIcon,variant:”invisible”,”aria-label”:”Close”,onClick:X})]})]}),(0,o.jsx)(“div”,{className:t3,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})]})},nx=(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,tB.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)(tM.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,tB.A)(e),s=(0,y.useCallback)(e=>{r(e),t(e)},[r,t]);return(0,o.jsx)(tM.S,{…n,value:a,onChange:s,ref:i})});nx.displayName=”ControlledCommentBox”;let nb=(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:t1,variant:”danger”,children:[(0,o.jsx)(A.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)(tV.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)(t5.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:t0,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:t1,variant:”danger”,children:[(0,o.jsx)(A.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)(tV.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:t0,trailingVisual:(0,o.jsx)(t5.U,{keys:”Mod+enter”}),children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-center”,children:[“Submit “,s.text]})})]})]})]})},nv=(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)(nx,{ref:S,label:”Add review comment”,placeholder:”Leave a comment”,className:tY,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)(ni,{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)(nu,{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)(nx,{ref:p,label:”Add review comment”,placeholder:”Leave a comment”,className:tY,initialValue:e,onChange:n,onPrimaryAction:f}),(0,o.jsx)(ni,{isPROpen:t,reviewEvent:i,viewerAllowedNonCommentReviewTypes:a,viewerCanWriteToRepo:r,viewerHasViolatedPushPolicy:s,viewerIsAuthor:l,viewerIsCopilotAttributed:d,handleReviewEventChange:h,handleReviewSubmit:f}),(0,o.jsx)(nu,{totalPendingComments:u,commentsList:c,handleNavigateToDiffComment:m})]})};try{ng.displayName||(ng.displayName=”ReviewMenuButton”)}catch{}try{(i=ReviewMenuBody).displayName||(i.displayName=”ReviewMenuBody”)}catch{}try{(a=ReviewMenuFooter).displayName||(a.displayName=”ReviewMenuFooter”)}catch{}try{nb.displayName||(nb.displayName=”ReviewMenuFooterComponent”)}catch{}try{nv.displayName||(nv.displayName=”ReviewMenuBodyComponent”)}catch{}var ny=n(27028),nj=n(39029);let nC=”RefreshButton-module__refresh–gOrN1″;var nw=n(91747),nN=n(43073),nS=n(61526);let nL=(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,nN.E)(),m=(0,nw.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,nj.G)(r,h,n),!l)return null;if(u){let e;return a[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(nI,{}),a[3]=e):e=a[3],e}return a[4]!==m?(i=(0,o.jsx)(nD,{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,nN.E)(),r=(0,nw.u)(“combined_pr_changes_route”)?`${t}/changes`:`${t}/files`,{markComparisonOutdated:s}=(0,I.yo)();return((0,nj.G)(e,()=>{s(),i(!0)},{git_updated:!0}),n)?a?(0,o.jsx)(nI,{}):(0,o.jsx)(nD,{refreshUrl:r}):null},nD=(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:nC,leadingVisual:A.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:nC,leadingVisual:A.SyncIcon,size:”small”,onClick:t=>{t.preventDefault(),window.location.href=e},children:”Refresh”})},nI=(0,d.Z6)()?function(){let e,t,n=(0,c.c)(4),i=(0,nS.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:nS.N_,to:i.pathname,variant:”invisible”,className:nC,leadingVisual:A.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,nS.zy)(),[t,n]=(0,y.useState)(!1),i=async()=>{n(!0)};return(0,o.jsx)(em.Q,{as:nS.N_,to:e.pathname,variant:”invisible”,className:nC,leadingVisual:A.SyncIcon,size:”small”,onClick:i,loading:t,preventScrollReset:!0,children:”Refresh”})};try{nL.displayName||(nL.displayName=”RefreshButton”)}catch{}try{nD.displayName||(nD.displayName=”NavigatorRefreshButton”)}catch{}try{nI.displayName||(nI.displayName=”DataRouterRefreshButton”)}catch{}var n_=n(40523),nR=n(68874),nA=n(14808);let nk=(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:A,onMultiSelect:k,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),[G,H]=(0,y.useState)(!1),[q,z]=(0,y.useState)();R[0]===Symbol.for(“react.memo_cache_sentinel”)?(n=()=>({open:()=>H(!0)}),R[0]=n):n=R[0],(0,y.useImperativeHandle)(t,n),R[1]!==A?(i=A.reduce(nT,{single:[],multiple:[]}),R[1]=A,R[2]=i):i=R[2];let K=i;R[3]!==K?(a=()=>K,R[3]=K,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]!==k||R[13]!==K?.multiple?(l=k?K?.multiple.filter(nP).length:W?.multiple.filter(nO).length||0,R[11]=W?.multiple,R[12]=k,R[13]=K?.multiple,R[14]=l):l=R[14];let J=l;R[15]!==q?.multiple?(d=q?.multiple.filter(nF).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=()=>{z(W),H(!1),T&&T(W?.multiple.filter(n$)||[])},R[17]=W,R[18]=T,R[19]=u):u=R[19];let et=u;R[20]!==O||R[21]!==K?(m=()=>{Z(K),z(K),O?.()},R[20]=O,R[21]=K,R[22]=m):m=R[22];let en=m;R[23]!==G?(f=()=>H(!G),R[23]=G,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]!==K?(p=()=>{Z({single:W?.single||[],multiple:q?.multiple||K.multiple}),H(!1)},R[29]=W?.single,R[30]=q?.multiple,R[31]=K,R[32]=p):p=R[32],R[33]===Symbol.for(“react.memo_cache_sentinel”)?(g={focusOutBehavior:”wrap”,focusableElementFilter:nM},R[33]=g):g=R[33],R[34]!==en?(x=()=>{en(),H(!1)},R[34]=en,R[35]=x):x=R[35],R[36]!==W?.single||R[37]!==E||R[38]!==K?(b=E?K.single:W?.single||[],R[36]=W?.single,R[37]=E,R[38]=K,R[39]=b):b=R[39],R[40]!==Q||R[41]!==E||R[42]!==V?(v=e=>{E?E(e):Q(e),”modal”!==V&&H(!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)(nE,{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]!==k||R[49]!==K?(C=k?K.multiple:W?.multiple||[],R[47]=W?.multiple,R[48]=k,R[49]=K,R[50]=C):C=R[50];let ea=k??X;return R[51]!==C||R[52]!==ea?(N=(0,o.jsx)(nE,{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]!==G||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:G,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]=G,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 nE(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{nk.displayName||(nk.displayName=”CommitSelector”)}catch{}try{nE.displayName||(nE.displayName=”CommitSelectorBody”)}catch{}function nT(e,t){return”single”===t.selectionVariant?{…e,single:[…e.single,t]}:”multiple”===t.selectionVariant?{…e,multiple:[…e.multiple,t]}:e}function nO(e){return e.selected}function nP(e){return e.selected}function nF(e){return e.selected}function n$(e){return e.selected}function nM(e){return”BUTTON”!==e.tagName}function nB({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 nV=n(68534);let nU=(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,k=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,nw.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=nB({endOid:T,startOid:E,firstCommitInRange:U}),w[3]=T,w[4]=U,w[5]=E,w[6]=a):a=w[6];let G=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 H=r;w[13]!==H?(s=()=>H,w[13]=H,w[14]=s):s=w[14];let[q,z]=(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 K=l;if(w[20]!==V||w[21]!==D||w[22]!==T||w[23]!==O||w[24]!==_||w[25]!==K||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,nR.V)(new Date(i.createdAt))}`,descriptionVariant:”block”,selectionVariant:”multiple”,selected:K.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]=K,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]!==K||w[47]!==q?(f=e=>{let t,n=V.indexOf(e.id),i=K.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,nV.F)(n),i=M?`Commit ${t} selected`:`Commit ${e} selected`;(0,tw.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,nV.F)(i),r=(0,nV.F)(a),s=M?`Commits ${t} to ${r} selected`:`Commits ${e} to ${n} selected`;(0,tw.i)(s)}}}else(0,tw.i)(“No commits selected”);z(t)},w[45]=V,w[46]=K,w[47]=q,w[48]=f):f=w[48];let X=f;w[49]!==F||w[50]!==V||w[51]!==H?.end||w[52]!==H?.start||w[53]!==Z||w[54]!==q?(g=()=>{let e,t;q&&(q.start!==H?.start||q.end!==H?.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]=H?.end,w[52]=H?.start,w[53]=Z,w[54]=q,w[55]=g):g=w[55],H?.start,H?.end;let J=g;w[56]!==H?(x=()=>{z(H)},w[56]=H,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”===k?void 0:A.VersionsIcon,et=”condensed”===k?”invisible”:”default”;return w[59]!==ee||w[60]!==et?(v={id:”changes-selector-button”,size:”small”,leadingVisual:ee,variant:et,trailingAction:A.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]!==G||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)(nk,{buttonProps:v,anchorLabel:G,ref:B,dialogProps:j,items:W,onSingleSelect:Q,onMultiSelect:X,onApply:J,onCancel:Y,variant:”modal”,title:”Select commits to view”})]}),w[63]=G,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,nw.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=nB({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,nR.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,nV.F)(n),i=m?`Commit ${t} selected`:`Commit ${e} selected`;(0,tw.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,nV.F)(i),r=(0,nV.F)(a),s=m?`Commits ${t} to ${r} selected`:`Commits ${e} to ${n} selected`;(0,tw.i)(s)}}}else(0,tw.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)(nk,{buttonProps:{id:”changes-selector-button”,size:”small”,leadingVisual:”condensed”===r?void 0:A.VersionsIcon,variant:”condensed”===r?”invisible”:”default”,trailingAction:A.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{nU.displayName||(nU.displayName=”ChangesSelector”)}catch{}var nH=n(33644),nq=n(2694),nz=n(81070),nK=n(33195);let nW=”PullRequestFilesToolbar-module__is-stuck–pCXhL”,nZ=”PullRequestFilesToolbar-module__show-when-stuck–ONyyF”,nQ=”PullRequestFilesToolbar-module__hide-when-stuck-large–jRjpF”,nX=”PullRequestFilesToolbar-module__pr-title-details–NZamC”,nJ=”PullRequestFilesToolbar-module__pr-sticky-title–Fu24T”,nY=”PullRequestFilesToolbar-module__file-controls–XN2fA”,n0=”PullRequestFilesToolbar-module__file-controls-navigation–Ti_xo”,n1=”PullRequestFilesToolbar-module__file-controls-divider–oWuSw”,n2=”PullRequestFilesToolbar-module__toolbar–bXrnB”,n3=”PullRequestFilesToolbar-module__simple-toolbar–q_1hU”;var n4=n(21968),n5=n(34261),n6=n(89155);let n7=(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 n8=n(73783),n9=n(61583);let ie=(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=it;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,n9.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 it(e){(0,n9.pk)(`diff-${e}`),(0,L.kd)(window.location.href)}var ii=n(19415);let ia="SingleFileModeOnboardingPopover-module__PopoverContainer--wtwv5",ir="SingleFileModeOnboardingPopover-module__PopoverContent--zQnno",is="SingleFileModeOnboardingPopover-module__Heading--BRcrc";function il(e){return(e??[]).filter(e=>!e.dismissed)}let io=(0,d.Z6)()?function(e,t){let n,i=(0,c.c)(5),a=il(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===il(t).filter(t=>t.name===e).length},id=(0,d.Z6)()?function(e,t){let n,i,a=(0,c.c)(5),r=io(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=io(e,t);return{dismissNotice:(0,y.useCallback)(()=>{(0,tc.M3)()&&!n&&(0,eL.DI)((0,eZ.VB1)({noticeName:e}),{method:”POST”})},[n,e])}},ic=”single_file_mode”,iu=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u=(0,c.c)(12),{userNotices:m}=e,f=io(ic,m),h=(0,I.j5)(),[p,g]=(0,y.useState)(!0),{dismissNotice:x}=id(ic,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″,ir),i=(0,o.jsx)(Y.A,{as:”h3″,variant:”small”,className:is,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)(ii.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)(ii.A,{className:ia,open:p,children:l}),u[9]=p,u[10]=l,u[11]=d):d=u[11],d)}:function({userNotices:e}){let t=io(ic,e),n=(0,I.j5)(),[i,a]=(0,y.useState)(!0),{dismissNotice:r}=id(ic,e);return!n||t?null:(0,o.jsx)(ii.A,{className:ia,open:i,children:(0,o.jsxs)(ii.A.Content,{className:(0,v.$)(“d-flex flex-column gap-2″,ir),children:[(0,o.jsx)(Y.A,{as:”h3″,variant:”small”,className:is,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{iu.displayName||(iu.displayName=”SingleFileModeOnboardingPopover”)}catch{}var im=n(44569);let ih=(0,d.Z6)()?function(e){let t,n,i,a,r,s=(0,c.c)(12),{userNotices:l}=e,d=(0,im.zw)(),{navigateToPrevious:u,navigateToNext:m}=ie();return s[0]!==u?(t=(0,o.jsx)(el.K,{icon:A.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:A.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)(n8.A,{children:[t,n]}),s[4]=t,s[5]=n,s[6]=i):i=s[6],s[7]!==l?(a=(0,o.jsx)(iu,{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,im.zw)(),{navigateToPrevious:n,navigateToNext:i}=ie();return(0,o.jsxs)(“div”,{className:”position-relative”,children:[(0,o.jsxs)(n8.A,{children:[(0,o.jsx)(el.K,{icon:A.ChevronUpIcon,”aria-label”:t?”Previous file (K)”:”Previous file”,size:”small”,onClick:n,”data-hotkey”:”k”}),(0,o.jsx)(el.K,{icon:A.ChevronDownIcon,”aria-label”:t?”Next file (J)”:”Next file”,size:”small”,onClick:i,”data-hotkey”:”j”})]}),(0,o.jsx)(iu,{userNotices:e})]})};try{ih.displayName||(ih.displayName=”ReviewNavigationButtonGroup”)}catch{}let ip=(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:k}=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)(),G=(0,I.Qb)(),{sendPullRequestAnalyticsEvent:H}=(0,er.q)();S[0]!==U?(t=U?Object.values(U):[],S[0]=U,S[1]=t):t=S[1];let q=t,z=q.length;S[2]!==H?(n=()=>{H(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e2(),T(!0),$(!1)},S[2]=H,S[3]=n):n=S[3];let K=n;S[4]!==H?(i=()=>{H(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e2(),P(!0),$(!1)},S[4]=H,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:A.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)(A.CommentDiscussionIcon,{})}),S[7]=r):r=S[7],S[8]!==G?(s=G>0&&(0,o.jsx)(w.l.TrailingVisual,{children:G}),S[8]=G,S[9]=s):s=S[9],S[10]!==K||S[11]!==s?(l=(0,o.jsxs)(w.l.Item,{onSelect:K,children:[r,”Comments”,s]}),S[10]=K,S[11]=s,S[12]=l):l=S[12],S[13]!==W||S[14]!==z?(d=z>0&&(0,o.jsxs)(w.l.Item,{onSelect:W,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(A.AlertIcon,{})}),”Alerts”,(0,o.jsx)(w.l.TrailingVisual,{children:z})]}),S[13]=W,S[14]=z,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)(A.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)(A.ChevronRightIcon,{})})]})}),S[21]=h):h=S[21],S[22]!==k||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)(ny.Q,{reloadOnWhitespaceChange:!0,onUpdateWhitespace:R,defaultHideWhitespace:_,additionalPreferences:k})})}),S[22]=k,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)(tI,{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]!==z?(C=z>0&&(0,o.jsx)(tP,{annotations:q,isOpen:O,pageLimits:L,returnFocusRef:V,onClose:()=>P(!1)}),S[40]=O,S[41]=q,S[42]=L,S[43]=z,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:A.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)(A.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)(A.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)(A.GearIcon,{})}),”Settings”,(0,o.jsx)(w.l.TrailingVisual,{children:(0,o.jsx)(A.ChevronRightIcon,{})})]})}),(0,o.jsx)(e4.W.Overlay,{side:”outside-bottom”,align:”end”,children:(0,o.jsx)(w.l,{children:(0,o.jsx)(ny.Q,{reloadOnWhitespaceChange:!0,onUpdateWhitespace:i,defaultHideWhitespace:n,additionalPreferences:a})})})]})})]})})]}),(0,o.jsx)(tI,{isOpen:r,pageLimits:e,pathName:t.pathName,toggleSidesheetRef:h,onClose:()=>s(!1)}),v>0&&(0,o.jsx)(tP,{annotations:b,isOpen:l,pageLimits:e,returnFocusRef:h,onClose:()=>d(!1)})]})};try{ip.displayName||(ip.displayName=”ToolbarMoreMenu”)}catch{}let ig=(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{ig.displayName||(ig.displayName=”ChangeGroupsPreferences”)}catch{}var ix=n(3585);function ib(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 iv(e,t){if(!e||0===t.length)return[];let n=ib(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 iy=n(3252);function ij(e,t){if(!e||0===t.length)return[];let n=ib(e),i=[];for(let e of t){let t=n.get(e.commentDatabaseId);if(!t)continue;let{comment:a,path:r}=t,s=(0,iy.T)(a.body);s&&!(e.suggestionIndex>=s.length)&&i.push({threadId:String(e.commentDatabaseId),path:r,suggestion:s})}return i}var iC=n(88008);let iw=(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=ij(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,iC.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=ij(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,iC.hW)(e,t),M.cg?.location.reload()}})},iN=(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 iS=n(39837);let iL=(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:A.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)(iS.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:A.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)(iS.A,{verifiedHTML:e})})})})};try{iL.displayName||(iL.displayName=”OverviewSidePanel”)}catch{}let iD=(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})},iI=(0,d.Z6)()?function(e){let t,n=(0,c.c)(1),{refetch:i}=iD();n[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={body_updated:!0},n[0]=t):t=n[0],(0,nj.og)(e,i,t)}:function(e){let{refetch:t}=iD();(0,nj.og)(e,t,{body_updated:!0})},i_=(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}=iD();iI(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:A.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:A.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)(iL,{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}=iD();iI(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:A.InfoIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(el.K,{ref:i,”aria-label”:”Open overview side panel”,icon:A.InfoIcon,size:”small”,onClick:()=>{a(“overview_side_panel.open”,”OVERVIEW_SIDE_PANEL_BUTTON”),e2(),n(!0)}}),t&&(0,o.jsx)(iL,{bodyHtml:l,isLoading:s,onClose:()=>n(!1)})]})})};try{i_.displayName||(i_.displayName=”OpenOverviewSidePanelButton”)}catch{}let iR=(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,n5.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,n5.W)(u),(0,n6.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)(iA,{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,n5.W)();(0,n5.W)({aliveChannel:e,repository:t,pullRequest:n,bannersData:i,urls:a,user:r}),(0,n6.F)(e);let c={…n,…d};return(0,o.jsx)(iA,{repository:t,pullRequest:c,userNotices:s,…l})},iA=(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,A,E,T,O,P,F,$,M,B,V,U,G,H,q,z,K,W,Z,Q=(0,c.c)(149),{changeGroupsPreferenceAvailable:X,commits:J,currentUserLogin:Y,fileFilter:ee,isFileTreeExpanded:et,lastReviewOid:en,pageLimits:ei,pullRequest:ea,repository:er,shouldShowViewedFilesCount:es,totalFilesCount:el,treeToggleElement:eo,userNotices:ed}=e,ec=(0,nw.u)(“batch_suggested_changes”),eu=(0,nw.u)(“pull_request_overview_panel”),{mutate:ef}=n7(),{clearSuggestionBatch:eh,removeSuggestionFromBatch:ep}=(0,I.xJ)(),{mutate:eg}=iw(ea.pathName,ea.comparison.headOid),{mutate:ex}=iN(),eb=(0,I.WA)(),ev=ea.pathName,{hideWhitespace:ey,fullDiff:ej}=(0,I.L3)(),[eC,ew]=(0,y.useState)(!1),eN=es||!et,[eS,eL]=(0,y.useState)(!1),eD=(0,I.j5)(),eI=(0,I.RH)(),e_=(0,I.WK)(),eR=(0,I.qL)(),[eA,ek]=(0,y.useState)(!1),eE=(0,I.Kp)(),eT=(0,I.L3)(),eO=iv(eR,e_.activeBatch),eP=eO.length;Q[0]!==ef?(t=e=>{ef({hideWhitespace:e})},Q[0]=ef,Q[1]=t):t=Q[1];let eF=t;Q[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{e[0]&&ew(!e[0].isIntersecting)},Q[2]=n):n=Q[2];let[e$,eM]=(0,nq.B)(n);Q[3]!==eT.fullDiff.headOid||Q[4]!==eE||Q[5]!==ep||Q[6]!==e_.activeBatch?(i=e=>{ep(e),(0,iC.CE)(eE,eT.fullDiff.headOid,e_.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex))},Q[3]=eT.fullDiff.headOid,Q[4]=eE,Q[5]=ep,Q[6]=e_.activeBatch,Q[7]=i):i=Q[7];let eB=i;Q[8]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>{ek(!0)},Q[8]=a):a=Q[8];let eV=a;Q[9]===Symbol.for(“react.memo_cache_sentinel”)?(r=()=>{ek(!1)},Q[9]=r):r=Q[9];let eU=r;Q[10]===Symbol.for(“react.memo_cache_sentinel”)?(s=()=>{eL(!0)},Q[10]=s):s=Q[10];let eG=s;Q[11]===Symbol.for(“react.memo_cache_sentinel”)?(l=()=>{eL(!1)},Q[11]=l):l=Q[11];let eH=l;Q[12]!==eh||Q[13]!==eT.fullDiff.headOid||Q[14]!==eU||Q[15]!==eE?(d=()=>{eh(),(0,iC.hW)(eE,eT.fullDiff.headOid),eU(),eL(!1)},Q[12]=eh,Q[13]=eT.fullDiff.headOid,Q[14]=eU,Q[15]=eE,Q[16]=d):d=Q[16];let eq=d;Q[17]!==eg||Q[18]!==ej.headOid||Q[19]!==eU?(u=(e,t,n)=>{eg({message:e,currentOid:ej.headOid},{onSuccess:()=>{eU(),n()},onError:e=>{t(e)}})},Q[17]=eg,Q[18]=ej.headOid,Q[19]=eU,Q[20]=u):u=Q[20];let ez=u;Q[21]!==ex?(m=e=>{ex({showChangeGroups:e})},Q[21]=ex,Q[22]=m):m=Q[22];let eK=m,eW=eO.map(ik);Q[23]===Symbol.for(“react.memo_cache_sentinel”)?(f={visibility:”hidden”,height:”1px”},Q[23]=f):f=Q[23],Q[24]!==e$||Q[25]!==eM?(h=(0,o.jsx)(nz.X,{sx:f,onObserve:e$,onUnobserve:eM}),Q[24]=e$,Q[25]=eM,Q[26]=h):h=Q[26];let eZ=eC&&nW;Q[27]!==eZ?(p=(0,v.$)(nH.A.stickyHeader,n2,eZ),Q[27]=eZ,Q[28]=p):p=Q[28],Q[29]===Symbol.for(“react.memo_cache_sentinel”)?(g=(0,o.jsx)(“h2″,{className:”sr-only”,children:”Pull Request Toolbar”}),Q[29]=g):g=Q[29],Q[30]!==eo?(x=(0,o.jsx)(“div”,{children:eo}),Q[30]=eo,Q[31]=x):x=Q[31],Q[32]!==ea.state?(b=(0,o.jsx)(“div”,{className:nZ,children:(0,o.jsx)(nK.u,{state:ea.state})}),Q[32]=ea.state,Q[33]=b):b=Q[33],Q[34]!==J||Q[35]!==en||Q[36]!==ea.number||Q[37]!==er.name||Q[38]!==er.ownerLogin?(j=(0,o.jsx)(“div”,{className:nQ,children:(0,o.jsx)(nU,{commits:J,lastReviewOid:en,ownerLogin:er.ownerLogin,pullRequestNumber:ea.number,repositoryName:er.name})}),Q[34]=J,Q[35]=en,Q[36]=ea.number,Q[37]=er.name,Q[38]=er.ownerLogin,Q[39]=j):j=Q[39],Q[40]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,v.$)(nZ,”min-width-0″),w=(0,v.$)(“d-flex mb-n1”,nX),Q[40]=C,Q[41]=w):(C=Q[40],w=Q[41]);let eQ=ea.title;Q[42]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,v.$)(“f5 text-bold overflow-hidden no-wrap”,nJ),Q[42]=S):S=Q[42],Q[43]!==ea.title?(L=(0,o.jsx)(“a”,{href:”#top”,className:”d-flex overflow-hidden fgColor-default”,children:(0,o.jsx)(“bdi”,{className:S,children:ea.title})}),Q[43]=ea.title,Q[44]=L):L=Q[44],Q[45]!==ea.title||Q[46]!==L?(D=(0,o.jsx)(k.m,{type:”label”,direction:”s”,text:eQ,children:L}),Q[45]=ea.title,Q[46]=L,Q[47]=D):D=Q[47],Q[48]!==ea.number?(_=(0,o.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,ea.number]}),Q[48]=ea.number,Q[49]=_):_=Q[49],Q[50]!==D||Q[51]!==_?(R=(0,o.jsxs)(“div”,{className:w,children:[D,_]}),Q[50]=D,Q[51]=_,Q[52]=R):R=Q[52],Q[53]!==J||Q[54]!==en||Q[55]!==ea.number||Q[56]!==er.name||Q[57]!==er.ownerLogin?(A=(0,o.jsx)(nU,{commits:J,lastReviewOid:en,ownerLogin:er.ownerLogin,pullRequestNumber:ea.number,repositoryName:er.name,variant:”condensed”}),Q[53]=J,Q[54]=en,Q[55]=ea.number,Q[56]=er.name,Q[57]=er.ownerLogin,Q[58]=A):A=Q[58],Q[59]===Symbol.for(“react.memo_cache_sentinel”)?(E=(0,v.$)(“d-none d-lg-flex flex-items-center min-width-0”,nX),Q[59]=E):E=Q[59],Q[60]===Symbol.for(“react.memo_cache_sentinel”)?(T=(0,o.jsx)(“div”,{className:”border-left mx-1 pr-1 d-block”,style:{width:”1px”,height:”16px”}}),Q[60]=T):T=Q[60],Q[61]!==ea.author||Q[62]!==ea.baseBranch||Q[63]!==ea.commitsCount||Q[64]!==ea.headBranch||Q[65]!==ea.headRepositoryName||Q[66]!==ea.headRepositoryOwnerLogin||Q[67]!==ea.id||Q[68]!==ea.isInAdvisoryRepo||Q[69]!==ea.mergedBy||Q[70]!==ea.mergedByName||Q[71]!==ea.number||Q[72]!==ea.state||Q[73]!==er.id||Q[74]!==er.name||Q[75]!==er.ownerLogin?(O=(0,o.jsxs)(“div”,{className:E,children:[T,(0,o.jsx)(n4.O,{author:ea.author,baseBranch:ea.baseBranch,baseRepositoryOwnerLogin:er.ownerLogin,baseRepositoryName:er.name,commitsCount:ea.commitsCount,headBranch:ea.headBranch,headRepositoryOwnerLogin:ea.headRepositoryOwnerLogin,headRepositoryName:ea.headRepositoryName,isInAdvisoryRepo:ea.isInAdvisoryRepo,mergedBy:ea.mergedBy,mergedByName:ea.mergedByName,state:ea.state,pullRequestId:ea.id,pullRequestNumber:ea.number,repositoryId:er.id})]}),Q[61]=ea.author,Q[62]=ea.baseBranch,Q[63]=ea.commitsCount,Q[64]=ea.headBranch,Q[65]=ea.headRepositoryName,Q[66]=ea.headRepositoryOwnerLogin,Q[67]=ea.id,Q[68]=ea.isInAdvisoryRepo,Q[69]=ea.mergedBy,Q[70]=ea.mergedByName,Q[71]=ea.number,Q[72]=ea.state,Q[73]=er.id,Q[74]=er.name,Q[75]=er.ownerLogin,Q[76]=O):O=Q[76],Q[77]!==A||Q[78]!==O?(P=(0,o.jsxs)(“div”,{className:”f6 text-normal d-flex flex-items-center ml-n2″,children:[A,O]}),Q[77]=A,Q[78]=O,Q[79]=P):P=Q[79],Q[80]!==R||Q[81]!==P?(F=(0,o.jsxs)(tV.B,{direction:”vertical”,gap:”none”,className:C,children:[R,P]}),Q[80]=R,Q[81]=P,Q[82]=F):F=Q[82],Q[83]!==x||Q[84]!==b||Q[85]!==j||Q[86]!==F?($=(0,o.jsxs)(tV.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:[x,b,j,F]}),Q[83]=x,Q[84]=b,Q[85]=j,Q[86]=F,Q[87]=$):$=Q[87],Q[88]!==ev||Q[89]!==ea.aliveChannel?(M=(0,o.jsx)(nL,{aliveChannel:ea.aliveChannel,pathName:ev}),Q[88]=ev,Q[89]=ea.aliveChannel,Q[90]=M):M=Q[90],Q[91]!==es||Q[92]!==el?(B=es&&(0,o.jsx)(e1,{totalFilesCount:el}),Q[91]=es,Q[92]=el,Q[93]=B):B=Q[93];let eX=!et&ⅇreturn Q[94]!==eD||Q[95]!==el||Q[96]!==ed?(V=eD&&el>1&&(0,o.jsx)(“div”,{className:n0,children:(0,o.jsx)(ih,{userNotices:ed})}),Q[94]=eD,Q[95]=el,Q[96]=ed,Q[97]=V):V=Q[97],Q[98]!==B||Q[99]!==eX||Q[100]!==V?(U=(0,o.jsxs)(“div”,{className:nY,children:[B,eX,V]}),Q[98]=B,Q[99]=eX,Q[100]=V,Q[101]=U):U=Q[101],Q[102]!==eN?(G=eN&&(0,o.jsx)(“div”,{className:n1,”data-testid”:”file-controls-divider”}),Q[102]=eN,Q[103]=G):G=Q[103],Q[104]!==ec||Q[105]!==X||Q[106]!==Y||Q[107]!==eV||Q[108]!==eG||Q[109]!==ey||Q[110]!==et||Q[111]!==eI||Q[112]!==eK||Q[113]!==eF||Q[114]!==eu||Q[115]!==ei||Q[116]!==ea||Q[117]!==er||Q[118]!==eb||Q[119]!==eP||Q[120]!==ed?(H=eI&&ec?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(em.Q,{variant:”danger”,size:”small”,onClick:eG,children:”Discard batch”}),(0,o.jsxs)(em.Q,{variant:”primary”,size:”small”,onClick:eV,children:[“Commit suggestions “,(0,o.jsx)(N.A,{className:”ml-1 color-fg-inherit”,children:eP})]})]}):(0,o.jsxs)(o.Fragment,{children:[eu&&(0,o.jsx)(i_,{aliveChannel:ea.aliveChannel}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(tR,{pageLimits:ei,pullRequest:ea,isFileTreeExpanded:et})}),(0,o.jsx)(t$,{className:”d-none d-sm-flex”,pageLimits:ei,isFileTreeExpanded:et}),Y&&(0,o.jsx)(ng,{currentUserLogin:Y,pullRequest:ea,repository:er}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(ny.G,{invisible:!1,reloadOnWhitespaceChange:!0,onUpdateWhitespace:eF,defaultHideWhitespace:ey,small:!0,userNotices:ed,additionalPreferences:(0,o.jsx)(ig,{changeGroupsPreferenceAvailable:X,showChangeGroups:eb,onShowChangeGroupsChange:eK})})}),(0,o.jsx)(“div”,{className:”d-flex d-sm-none”,children:(0,o.jsx)(ip,{pageLimits:ei,pullRequest:ea,hideWhitespace:ey,onUpdateWhitespace:eF,additionalPreferences:(0,o.jsx)(ig,{changeGroupsPreferenceAvailable:X,showChangeGroups:eb,onShowChangeGroupsChange:eK})})})]}),Q[104]=ec,Q[105]=X,Q[106]=Y,Q[107]=eV,Q[108]=eG,Q[109]=ey,Q[110]=et,Q[111]=eI,Q[112]=eK,Q[113]=eF,Q[114]=eu,Q[115]=ei,Q[116]=ea,Q[117]=er,Q[118]=eb,Q[119]=eP,Q[120]=ed,Q[121]=H):H=Q[121],Q[122]!==M||Q[123]!==U||Q[124]!==G||Q[125]!==H?(q=(0,o.jsxs)(tV.B,{direction:”horizontal”,align:”center”,children:[M,U,G,H]}),Q[122]=M,Q[123]=U,Q[124]=G,Q[125]=H,Q[126]=q):q=Q[126],Q[127]!==p||Q[128]!==$||Q[129]!==q?(z=(0,o.jsxs)(tV.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:p,children:[g,$,q]}),Q[127]=p,Q[128]=$,Q[129]=q,Q[130]=z):z=Q[130],Q[131]!==ez||Q[132]!==eU||Q[133]!==eq||Q[134]!==eB||Q[135]!==eA||Q[136]!==e_.activeBatch.length||Q[137]!==eW?(K=eA&&eW.length>0&&(0,o.jsx)(ix.$,{authorLogins:[],batchSize:e_.activeBatch.length,onClose:eU,onCommit:ez,defaultCommitMessage:”Apply suggestions from code review”,suggestions:eW,onRemoveSuggestion:eB,onDiscardBatch:eq}),Q[131]=ez,Q[132]=eU,Q[133]=eq,Q[134]=eB,Q[135]=eA,Q[136]=e_.activeBatch.length,Q[137]=eW,Q[138]=K):K=Q[138],Q[139]!==eq||Q[140]!==eH||Q[141]!==eS||Q[142]!==eP?(W=(0,o.jsx)(n_.G,{isOpen:eS,onConfirm:eq,onCancel:eH,suggestionsCount:eP}),Q[139]=eq,Q[140]=eH,Q[141]=eS,Q[142]=eP,Q[143]=W):W=Q[143],Q[144]!==h||Q[145]!==z||Q[146]!==K||Q[147]!==W?(Z=(0,o.jsxs)(o.Fragment,{children:[h,z,K,W]}),Q[144]=h,Q[145]=z,Q[146]=K,Q[147]=W,Q[148]=Z):Z=Q[148],Z}: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,nw.u)(“batch_suggested_changes”),p=(0,nw.u)(“pull_request_overview_panel”),{mutate:g}=n7(),{clearSuggestionBatch:x,removeSuggestionFromBatch:b}=(0,I.xJ)(),{mutate:j}=iw(l.pathName,l.comparison.headOid),{mutate:C}=iN(),w=(0,I.WA)(),S=l.pathName,{hideWhitespace:L,fullDiff:D}=(0,I.L3)(),[_,R]=(0,y.useState)(!1),A=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)(),G=iv($,F.activeBatch),H=G.length,q=e=>{g({hideWhitespace:e})},[z,K]=(0,nq.B)(e=>{e[0]&&R(!e[0].isIntersecting)}),W=(0,y.useCallback)(e=>{b(e),(0,iC.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,iC.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=G.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,{sx:{visibility:”hidden”,height:”1px”},onObserve:z,onUnobserve:K}),(0,o.jsxs)(tV.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:(0,v.$)(nH.A.stickyHeader,n2,_&&nW),children:[(0,o.jsx)(“h2″,{className:”sr-only”,children:”Pull Request Toolbar”}),(0,o.jsxs)(tV.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:[(0,o.jsx)(“div”,{children:m}),(0,o.jsx)(“div”,{className:nZ,children:(0,o.jsx)(nK.u,{state:l.state})}),(0,o.jsx)(“div”,{className:nQ,children:(0,o.jsx)(nU,{commits:t,lastReviewOid:r,ownerLogin:d.ownerLogin,pullRequestNumber:l.number,repositoryName:d.name})}),(0,o.jsxs)(tV.B,{direction:”vertical”,gap:”none”,className:(0,v.$)(nZ,”min-width-0″),children:[(0,o.jsxs)(“div”,{className:(0,v.$)(“d-flex mb-n1″,nX),children:[(0,o.jsx)(k.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”,nJ),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)(nU,{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”,nX),children:[(0,o.jsx)(“div”,{className:”border-left mx-1 pr-1 d-block”,style:{width:”1px”,height:”16px”}}),(0,o.jsx)(n4.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)(tV.B,{direction:”horizontal”,align:”center”,children:[(0,o.jsx)(nL,{aliveChannel:l.aliveChannel,pathName:S}),(0,o.jsxs)(“div”,{className:nY,children:[c&&(0,o.jsx)(e1,{totalFilesCount:u}),!a&&i,O&&u>1&&(0,o.jsx)(“div”,{className:n0,children:(0,o.jsx)(ih,{userNotices:f})})]}),A&&(0,o.jsx)(“div”,{className:n1,”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:H})]})]}):(0,o.jsxs)(o.Fragment,{children:[p&&(0,o.jsx)(i_,{aliveChannel:l.aliveChannel}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(tR,{pageLimits:s,pullRequest:l,isFileTreeExpanded:a})}),(0,o.jsx)(t$,{className:”d-none d-sm-flex”,pageLimits:s,isFileTreeExpanded:a}),n&&(0,o.jsx)(ng,{currentUserLogin:n,pullRequest:l,repository:d}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(ny.G,{invisible:!1,reloadOnWhitespaceChange:!0,onUpdateWhitespace:q,defaultHideWhitespace:L,small:!0,userNotices:f,additionalPreferences:(0,o.jsx)(ig,{changeGroupsPreferenceAvailable:e,showChangeGroups:w,onShowChangeGroupsChange:et})})}),(0,o.jsx)(“div”,{className:”d-flex d-sm-none”,children:(0,o.jsx)(ip,{pageLimits:s,pullRequest:l,hideWhitespace:L,onUpdateWhitespace:q,additionalPreferences:(0,o.jsx)(ig,{changeGroupsPreferenceAvailable:e,showChangeGroups:w,onShowChangeGroupsChange:et})})})]})]})]}),M&&en.length>0&&(0,o.jsx)(ix.$,{authorLogins:[],batchSize:F.activeBatch.length,onClose:Q,onCommit:ee,defaultCommitMessage:”Apply suggestions from code review”,suggestions:en,onRemoveSuggestion:W,onDiscardBatch:Y}),(0,o.jsx)(n_.G,{isOpen:E,onConfirm:Y,onCancel:J,suggestionsCount:H})]})};function ik(e){return{commentDatabaseId:e.commentDatabaseId,suggestionIndex:e.suggestionIndex,path:e.path,bodyHTML:e.bodyHTML}}try{iR.displayName||(iR.displayName=”LivePullRequestFilesToolbar”)}catch{}try{iA.displayName||(iA.displayName=”PullRequestFilesToolbar”)}catch{}function iE(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(!iO(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];iO(e)&&(r=e)}else a=i,r=n;return{endLine:i,endDiffSide:iT[n],startLine:a,startDiffSide:iT[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 iT={L:”LEFT”,R:”RIGHT”};function iO(e){return”L”===e||”R”===e}let iP=”DiffComparisonViewer-module__Container–nndHZ”,iF=”DiffComparisonViewer-module__HiddenPane–pMKU7″,i$=”DiffComparisonViewer-module__PaneContain–PQMad”,iM=”DiffComparisonViewer-module__PaneOverflowVisible–fmHF4″,iB=”DiffComparisonViewer-module__RegularTreeToggle–_Zt7h”,iV=”DiffComparisonViewer-module__MobileTreeToggle–lAOrS”,iU=”DiffComparisonViewer-module__Pane–FbQgQ”,iG=”DiffComparisonViewer-module__WideExpanded–a6hBe”,iH=”DiffComparisonViewer-module__WideCollapsed–nAjUj”,iq=”DiffComparisonViewer-module__CompactHidden–NQ1CL”,iz=”DiffComparisonViewer-module__CompactOverlay–ZnZLv”,iK=”DiffComparisonViewer-module__CompactInline–jndVg”,iW=”DiffComparisonViewer-module__Content–Cv2ab”,iZ=”DiffComparisonViewer-module__SkeletonWrapper–eZhhq”,iQ=”DiffComparisonViewer-module__SkeletonIconWrapper–e2YmQ”;var iX=n(43645),iJ=n(24798),iY=n(50129);function i0({basePath:e,selectedRange:t}){return[eg.uT.baseComparisonInfo,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`]}let i1=(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=i0({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=i0({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})},i2=(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)(37),{fileFilter:j,isFileTreeExpanded:C,shouldShowViewedFilesCount:w,totalFilesCount:N,treeToggleElement:S,userNotices:L}=e;b[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[“line-spacing”],b[0]=t):t=b[0];let D=t,[_,R]=(0,y.useState)(!1),A=(0,I.j5)(),k=w||!C;b[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{e[0]&&R(!e[0].isIntersecting)},b[1]=n):n=b[1];let[E,T]=(0,nq.B)(n);b[2]===Symbol.for(“react.memo_cache_sentinel”)?(i={visibility:”hidden”,height:”1px”},b[2]=i):i=b[2],b[3]!==E||b[4]!==T?(a=(0,o.jsx)(nz.X,{sx:i,onObserve:E,onUnobserve:T}),b[3]=E,b[4]=T,b[5]=a):a=b[5];let O=_&&nW;b[6]!==O?(r=(0,v.$)(nH.A.stickyHeader,n3,O),b[6]=O,b[7]=r):r=b[7],b[8]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(“h2″,{className:”sr-only”,children:”Diff Comparison Toolbar”}),b[8]=s):s=b[8],b[9]!==S?(l=(0,o.jsx)(tV.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:(0,o.jsx)(“div”,{children:S})}),b[9]=S,b[10]=l):l=b[10],b[11]!==w||b[12]!==N?(d=w&&(0,o.jsx)(e1,{totalFilesCount:N}),b[11]=w,b[12]=N,b[13]=d):d=b[13];let P=!C&&j;return b[14]!==A||b[15]!==N||b[16]!==L?(u=A&&N>1&&(0,o.jsx)(“div”,{className:n0,children:(0,o.jsx)(ih,{userNotices:L})}),b[14]=A,b[15]=N,b[16]=L,b[17]=u):u=b[17],b[18]!==P||b[19]!==u||b[20]!==d?(m=(0,o.jsxs)(“div”,{className:nY,children:[d,P,u]}),b[18]=P,b[19]=u,b[20]=d,b[21]=m):m=b[21],b[22]!==k?(f=k&&(0,o.jsx)(“div”,{className:n1,”data-testid”:”file-controls-divider”}),b[22]=k,b[23]=f):f=b[23],b[24]!==L?(h=(0,o.jsx)(ny.G,{invisible:!1,small:!0,enabledDiffViewSettings:D,userNotices:L}),b[24]=L,b[25]=h):h=b[25],b[26]!==m||b[27]!==f||b[28]!==h?(p=(0,o.jsxs)(tV.B,{direction:”horizontal”,align:”center”,children:[m,f,h]}),b[26]=m,b[27]=f,b[28]=h,b[29]=p):p=b[29],b[30]!==p||b[31]!==r||b[32]!==l?(g=(0,o.jsxs)(tV.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:r,children:[s,l,p]}),b[30]=p,b[31]=r,b[32]=l,b[33]=g):g=b[33],b[34]!==g||b[35]!==a?(x=(0,o.jsxs)(o.Fragment,{children:[a,g]}),b[34]=g,b[35]=a,b[36]=x):x=b[36],x}: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,nq.B)(e=>{e[0]&&l(!e[0].isIntersecting)});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nz.X,{sx:{visibility:”hidden”,height:”1px”},onObserve:u,onUnobserve:m}),(0,o.jsxs)(tV.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:(0,v.$)(nH.A.stickyHeader,n3,s&&nW),children:[(0,o.jsx)(“h2″,{className:”sr-only”,children:”Diff Comparison Toolbar”}),(0,o.jsx)(tV.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:(0,o.jsx)(“div”,{children:a})}),(0,o.jsxs)(tV.B,{direction:”horizontal”,align:”center”,children:[(0,o.jsxs)(“div”,{className:nY,children:[n&&(0,o.jsx)(e1,{totalFilesCount:i}),!t&&e,d&&i>1&&(0,o.jsx)(“div”,{className:n0,children:(0,o.jsx)(ih,{userNotices:r})})]}),c&&(0,o.jsx)(“div”,{className:n1,”data-testid”:”file-controls-divider”}),(0,o.jsx)(ny.G,{invisible:!1,small:!0,enabledDiffViewSettings:[“line-spacing”],userNotices:r})]})]})]})};try{i2.displayName||(i2.displayName=”BasicDiffComparisonViewToolbar”)}catch{}var i3=n(8624),i4=n(94195),i5=n(54571),i6=n(71833);let i7=”diff-comparison-viewer-container”,i8=(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,i5.I)(at,!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(ae),(0,i6.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,i6.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,i4.nn)(t)>i4.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(i9),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(i7);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 A=m,k=”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]!==k||v[22]!==E?(h=(0,o.jsx)(i3.L,{expanded:k,alignment:”left”,ariaLabel:E,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:C,className:iB,onToggleExpanded:f,size:”small”}),v[19]=e,v[20]=f,v[21]=k,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)(i3.L,{expanded:O,alignment:”left”,ariaLabel:P,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:w,className:iV,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]!==A||v[36]!==B||v[37]!==$||v[38]!==S?(b={splitPagePaneHidden:B,treeViewState:S,collapseMobileTree:R,expandTree:A,treeToggleElement:$},v[35]=A,v[36]=B,v[37]=$,v[38]=S,v[39]=b):b=v[39],b}:function(e,t,n,i){let[a]=(0,i5.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,i6.B)(!0,i),requestAnimationFrame(()=>r.current?.focus())},[i]),u=(0,y.useCallback)(()=>{d({wideMode:”collapsed”,compactMode:”none”}),(0,i6.B)(!1,i),requestAnimationFrame(()=>r.current?.focus())},[i]),m=(0,y.useCallback)(()=>{let e=”overlay”;if(n){let t=window.innerWidth;(0,i4.nn)(t)>i4.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(i7);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)(i3.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:iB,onToggleExpanded:()=>{“expanded”===l.wideMode?u():c()},size:”small”}),[l.wideMode,e,u,c]),g=(0,y.useMemo)(()=>(0,o.jsx)(i3.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:iV,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 i9(e){return{…e,compactMode:”none”}}function ae(e){return{…e,wideMode:”expanded”}}function at(){return!1}let an=(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)}})},ai=(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,nw.u)(“generate_groups_on_files_view”),{mutate:u}=an(),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,nw.u)(“generate_groups_on_files_view”),{mutate:r}=an(),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 aa=n(59523),ar=n(27913),as=n(66358);let al=(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=ao(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)(A.ShieldLockIcon,{})}):(0,o.jsx)(A.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)(k.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=ao(s,l,d,i);return(0,o.jsx)(k.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)(A.ShieldLockIcon,{})}):(0,o.jsx)(A.ShieldLockIcon,{className:t})})};function ao(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{al.displayName||(al.displayName=”CodeownersBadge”)}catch{}var ad=n(78252),ac=n(31675);let au=”BlobActionsMenu-module__hiddenIcon–EJrTU”,am=(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:k,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:A.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:ac.A[“hide-on-medium-up”],onSelect:E.onToggle,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:E.isRichDiff?au:void 0,children:(0,o.jsx)(A.CheckIcon,{})})}),”Source diff”]}),(0,o.jsxs)(w.l.Item,{className:ac.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:au,children:(0,o.jsx)(A.CheckIcon,{})})}),”Rich diff”]}),(0,o.jsx)(w.l.Divider,{className:ac.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)(ad.$,{…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:ac.A[“hide-on-desktop”],onSelect:I,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(A.CommentIcon,{})}),”Comment on this file”]}),(0,o.jsx)(w.l.Divider,{className:ac.A[“hide-on-desktop”]})]}),g[5]=I,g[6]=a):a=g[6],g[7]!==_?(r=_&&(0,o.jsxs)(w.l.Item,{className:ac.A[“hide-on-desktop”],onSelect:_,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(A.CopyIcon,{})}),”Copy file name”]}),g[7]=_,g[8]=r):r=g[8],g[9]!==k||g[10]!==R?(s=R&&(0,o.jsxs)(w.l.Item,{className:ac.A[“hide-on-desktop”],onSelect:R,children:[(0,o.jsx)(w.l.LeadingVisual,{children:k?(0,o.jsx)(A.FoldIcon,{}):(0,o.jsx)(A.UnfoldIcon,{})}),(0,o.jsx)(“span”,{children:k?”Collapse non-diff lines”:”Expand all lines”})]}),g[9]=k,g[10]=R,g[11]=s):s=g[11],g[12]!==_||g[13]!==R?(l=(_||R)&&(0,o.jsx)(w.l.Divider,{className:ac.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)(A.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)(A.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)(A.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:ac.A[“hide-on-desktop”]}),(0,o.jsxs)(w.l.LinkItem,{className:ac.A[“hide-on-desktop”],href:O,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(A.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:A.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:ac.A[“hide-on-medium-up”],onSelect:p.onToggle,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:p.isRichDiff?au:void 0,children:(0,o.jsx)(A.CheckIcon,{})})}),”Source diff”]}),(0,o.jsxs)(w.l.Item,{className:ac.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:au,children:(0,o.jsx)(A.CheckIcon,{})})}),”Rich diff”]}),(0,o.jsx)(w.l.Divider,{className:ac.A[“hide-on-medium-up”]})]}),d&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ad.$,{…d}),(0,o.jsx)(w.l.Divider,{})]}),u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(w.l.Item,{className:ac.A[“hide-on-desktop”],onSelect:u,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(A.CommentIcon,{})}),”Comment on this file”]}),(0,o.jsx)(w.l.Divider,{className:ac.A[“hide-on-desktop”]})]}),m&&(0,o.jsxs)(w.l.Item,{className:ac.A[“hide-on-desktop”],onSelect:m,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(A.CopyIcon,{})}),”Copy file name”]}),f&&(0,o.jsxs)(w.l.Item,{className:ac.A[“hide-on-desktop”],onSelect:f,children:[(0,o.jsx)(w.l.LeadingVisual,{children:h?(0,o.jsx)(A.FoldIcon,{}):(0,o.jsx)(A.UnfoldIcon,{})}),(0,o.jsx)(“span”,{children:h?”Collapse non-diff lines”:”Expand all lines”})]}),(m||f)&&(0,o.jsx)(w.l.Divider,{className:ac.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)(A.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)(A.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)(A.TrashIcon,{})}),”Delete file”]})]}),g&&x&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.l.Divider,{className:ac.A[“hide-on-desktop”]}),(0,o.jsxs)(w.l.LinkItem,{className:ac.A[“hide-on-desktop”],href:x,children:[(0,o.jsx)(w.l.LeadingVisual,{children:(0,o.jsx)(A.ShieldLockIcon,{})}),g]})]})]})})]})};try{am.displayName||(am.displayName=”BlobActionsMenu”)}catch{}let af=”MarkAsViewedButton-module__viewed–czELS”,ah=”MarkAsViewedButton-module__iconOnly–tQ1ah”,ap=(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)}})},ag=(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:ab,onError:ax},d[0]=t):t=d[0];let{mutate:b}=ap(u,t),{setDiffViewed:y}=(0,I.Ud)(),j=(0,I.j5)(),{navigateToNext:C}=ie();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)(A.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&⁡d[14]!==L?(r=(0,v.$)(L,ah),d[14]=L,d[15]=r):r=d[15],d[16]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(“span”,{className:ac.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)(k.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}=ap(e,{onSuccess:()=>{},onError:()=>{}}),{setDiffViewed:l}=(0,I.Ud)(),d=(0,I.j5)(),{navigateToNext:c}=ie(),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)(A.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&&af,ah),onClick:u,children:(0,o.jsx)(“span”,{className:ac.A[“hide-on-mobile”],children:”Viewed”})});return t&&n?(0,o.jsx)(k.m,{text:n,children:f}):f};function ax(){}function ab(){}try{ag.displayName||(ag.displayName=”MarkAsViewedButton”)}catch{}var av=n(79634);function ay({basePath:e,effectiveRange:t,path:n}){return[eg.uT.richDiff,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`,`path:${n}`]}let aj=(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=ay({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:aC,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:aC,key:ay({basePath:e,path:t,…n}),args:{path:t,basePath:e,…n,signal:void 0}}};async function aC({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 aw=n(15697);function aN(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 aS({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 aL({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=aj({basePath:c,path:r}),x=(0,y.useRef)(null),b=(0,y.useRef)(null),{helpUrl:j}=(0,av.X)(),C=(0,I.kN)(r),{updateAllFilesCollapsedStatus:w,updateFileCollapsedStatus:N}=(0,I.JR)(),S=(0,I.GR)(),[_,R]=(0,y.useState)(!1),[k,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 aS({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),aN(t,s.endLine)&&(l=!1,!(s=a[++r])))break}else aN(t,s.startLine)&&(l=!0,i.push(s.headerLine),i.push(t));return i}(a,u,r):a,[u,r,a]),G=(0,y.useCallback)(()=>{N(r,!1)},[r,N]),H=(0,y.useCallback)(()=>{S()&&C&&G()},[C,G,S]),q=(0,y.useCallback)(()=>{(0,L.K3)(),H()},[H]),z=(0,y.useCallback)(()=>{(0,n9.o9)()===d.pathDigest&&C&&G()},[d.pathDigest,G,C]),K=(0,y.useCallback)(()=>{H(),z()},[H,z]);(0,y.useEffect)(()=>{K()},[]),(0,y.useEffect)(()=>(M.cg?.addEventListener(“hashchange”,K),()=>{M.cg?.removeEventListener(“hashchange”,K)}),[K]);let W=(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]),Z=(0,y.useRef)((0,aw.B)({diffSummary:O})),[Q,X]=(0,y.useState)(!1),J=(0,y.useCallback)(async e=>{q(),Z.current.push(e),m({contextLineRanges:Z.current,path:r,w:p})},[q,m,r,p]),Y=(0,y.useCallback)(async()=>{await m({contextLineRanges:[],path:r})},[m,r]),ee=(0,y.useMemo)(()=>{if(d.isBinary||d.isSubmodule||d.isTooBig||(0,aa.dK)({linesChanged:d.linesChanged,newTreeEntry:d.newTreeEntry,oldTreeEntry:d.oldTreeEntry,status:d.status,truncatedReason:d.truncatedReason}))return!1;if(Q)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;Z.current=[],Q||Z.current.push({start:1,end:Math.max(d.oldTreeEntry?.lineCount??0,d.newTreeEntry?.lineCount??0)});let n=document.activeElement;await m({contextLineRanges:Z.current,path:r,w:p}),X(!Q),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))},[Q,d.oldTreeEntry?.lineCount,d.newTreeEntry?.lineCount,m,r,p]),en=(0,y.useCallback)(()=>E(!k),[k]),ei=(0,y.useMemo)(()=>d.richDiff?.canToggleRichDiff?{richDiff:d.richDiff,isRichDiff:k,onToggle:en}:void 0,[d.richDiff,k,en]),ea=(0,y.useMemo)(()=>B&&(B.isOwnedByViewer||B.owners.length>0)?ao(B.isOwnedByViewer,B.owners,void 0,d.currentUser.login):void 0,[B,d.currentUser.login]),er=(0,y.useMemo)(()=>B?.ruleUrl,[B]),es=(0,y.useMemo)(()=>d.currentUser.canComment?()=>R(!0):void 0,[d.currentUser.canComment]),eo=(0,y.useCallback)(()=>navigator.clipboard?.writeText(r),[r]),ed=(0,y.useMemo)(()=>ee?et:void 0,[ee,et]),ec=(0,y.useMemo)(()=>({richDiff:d.richDiff,showRichDiff:k,onToggleRichDiff:E,queryConfig:g}),[d.richDiff,k,g]),eu=(0,y.useMemo)(()=>{let e=new Set([]);return u&&e.add(as.YR.diffStats).add(as.YR.expandLines),f.fullDiff.headOid!==f.effectiveRange.headOid&&e.add(as.YR.markAsViewed),e},[u,f.effectiveRange.headOid,f.fullDiff.headOid]),{disabledFeatures:em,disabledReasons:ef}=(0,y.useMemo)(()=>{let e=new Set([]),t=new Map;return u&&(e.add(as.YR.markAsViewed),t.set(as.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)(ar.oO,{loadDiff:Y,…d,addFileCommentButtonRef:b,diffManuallyExpanded:e,estimatedDiffHeight:P,fileComments:V,hiddenFeatures:eu,isAddingFileComment:_,isSelected:s,leftSideContent:(0,o.jsx)(y.Suspense,{children:(0,o.jsx)(al,{className:(0,v.$)(“px-1 flex-items-center flex-order-2 flex-sm-order-1”,ac.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:[!eu.has(as.YR.markAsViewed)&&(0,o.jsx)(ag,{path:r,basePath:c,inactive:em.has(as.YR.markAsViewed)||!!u,inactiveTooltip:ef.get(as.YR.markAsViewed),setIsCollapsed:e=>W(e,r)}),d.currentUser.canComment&&(0,o.jsx)(el.K,{ref:b,icon:A.CommentIcon,”aria-label”:”Comment on this file”,”aria-expanded”:_,variant:”invisible”,size:”small”,onClick:()=>R(!0),className:ac.A[“hide-on-mobile”]}),(0,o.jsx)(am,{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:es,onCopyPath:eo,onExpandLines:ed,areLinesExpanded:Q,richDiffToggle:ei,codeownersText:ea,codeownersUrl:er})]}),canExpandOrCollapseLines:ee,expandAllContextLines:et,hasExpandedAllRanges:Q,addInjectedContextLines:J,onToggleCollapse:(e,t)=>W(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:ec})}try{aL.displayName||(aL.displayName=”PullRequestDiff”)}catch{}let aD=(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)(ar.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)(ar.Ao,{linesAdded:e,linesChanged:t,linesDeleted:n,newTreeEntry:i,oldTreeEntry:a,path:r,pathDigest:s,status:l})});try{aD.displayName||(aD.displayName=”PullRequestDiffEntryErrorFallback”)}catch{}var aI=n(81945),a_=n(29731),aR=n(8431);let aA=(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,a_.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)(aI.O,{height:”sm”,variant:”rounded”,width:”random”}),a=(0,o.jsx)(aI.O,{height:”sm”,variant:”rounded”,width:”random”}),r=(0,o.jsx)(aI.O,{height:”sm”,variant:”rounded”,width:”random”}),s=(0,o.jsx)(aI.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:aR.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:aR.A.diffTargetable,role:”region”,”aria-label”:e,…(0,a_.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)(aI.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,o.jsx)(aI.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,o.jsx)(aI.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,o.jsx)(aI.O,{height:”sm”,variant:”rounded”,width:”random”})]})})})});try{aA.displayName||(aA.displayName=”DiffEntryLoadingSkeleton”)}catch{}var ak=n(90047),aE=n(19976),aT=n(73189),aO=n(21132);let aP=(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)(tN.E,{border:!1,spacious:!0,children:(0,o.jsx)(tN.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)(tN.E,{border:!1,spacious:!0,children:(0,o.jsx)(tN.E.Heading,{children:”No files matched your search”})})})};try{aP.displayName||(aP.displayName=”FilesChangedFilterBlankSlate”)}catch{}let aF=(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)(),A=(0,y.useRef)(!1);d[5]!==C||d[6]!==S?.loadingStatus||d[7]!==w?(n=()=>{A.current||S?.loadingStatus===aO.s.Loaded&&(C(w,{focusPathName:!0}),A.current=!0)},d[5]=C,d[6]=S?.loadingStatus,d[7]=w,d[8]=n):n=d[8];let k=S?.loadingStatus;if(d[9]!==C||d[10]!==w||d[11]!==k?(i=[C,k,w],d[9]=C,d[10]=w,d[11]=k,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)(aP,{}),d[13]=e):e=d[13],e}if(S&&S.loadingStatus!==aO.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)(aA,{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.$)(aR.A.diffTargetable,aR.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:aR.A.diffHeaderWrapper,children:(0,o.jsx)(ak.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:m,canToggleRichDiff:!1,linesAdded:f,linesChanged:h,linesDeleted:p,newPath:D,patchStatus:””,path:D,onToggleExpandAllLines:aT.l,onToggleFileCollapsed:aT.l,onToggleDiffDisplay:aT.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)(aD,{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)(aD,{…_}),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)(aL,{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)(aE.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===aO.s.Loaded&&(c(u,{focusPathName:!0}),x.current=!0)},[c,m?.loadingStatus,u]),!i.some(e=>e.path===h))return(0,o.jsx)(aP,{});if(m&&m.loadingStatus!==aO.s.Loaded){let e=(0,o.jsx)(aA,{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.$)(aR.A.diffTargetable,aR.A.diff),”data-targeted”:!1,”data-hpc”:!0,children:[(0,o.jsx)(“div”,{className:aR.A.diffHeaderWrapper,children:(0,o.jsx)(ak.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:aT.l,onToggleFileCollapsed:aT.l,onToggleDiffDisplay:aT.l,isInSingleFileMode:g})}),e]},`${u}_${h}`)}return p?(0,o.jsxs)(J.t,{fallback:(0,o.jsx)(aD,{…p}),children:[(0,o.jsx)(aL,{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)(aE.nq,{})]}):(0,o.jsx)(aD,{linesAdded:0,linesChanged:0,linesDeleted:0,path:h,pathDigest:e,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”})});try{aF.displayName||(aF.displayName=”SingleFileModePullRequestDiffEntry”)}catch{}let a$=(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)(tN.E,{border:!1,spacious:!0,children:[(0,o.jsx)(tN.E.Heading,{children:”No changes to show”}),(0,o.jsx)(tN.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)(tN.E,{border:!1,spacious:!0,children:[(0,o.jsx)(tN.E.Heading,{children:”No changes to show”}),(0,o.jsx)(tN.E.Description,{children:”This commit does not include any file changes”})]})})};try{a$.displayName||(a$.displayName=”EmptyPullRequestBlankSlate”)}catch{}let aM=(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,n9.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,n9.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}},aB=(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}=aM(),f=(0,I.qg)(),h=(0,I.uh)()[0],p=(0,I.zK)(),g=(0,I.mF)(),{navigateToSelectedComment:x,navigateToSelectedAnnotation:b,handleHashUpdate:v}=(0,I.Lh)(),j=(0,y.useRef)(!0),C=(0,I.mY)().find(e=>e.pathDigest===c),{loadMore:w}=(0,I.pV)(),N=(0,y.useCallback)(()=>{p?x(p):g&&!isNaN(Number(g))?b(Number(g)):c&&C?w(C):!c&&h?.pathDigest&&(0,L.Zu)(`diff-${h.pathDigest}`)},[h?.pathDigest,w,b,x,g,p,c,C]);if((0,y.useEffect)(()=>{j.current&&(N(),j.current=!1)},[]),(0,y.useEffect)(()=>{let e=()=>{v()};return v(),window.addEventListener(“hashchange”,e),()=>{window.removeEventListener(“hashchange”,e)}},[v]),0===f)return(0,o.jsx)(a$,{});if(0===t.length)return(0,o.jsx)(aP,{});let S=c||d?.pathDigest||h?.pathDigest;return S?(0,o.jsx)(“div”,{ref:e=>{let t=m();e?t.set(S,e):t.delete(S)},children:(0,o.jsx)(aF,{diffEntryPathDigest:S,currentUser:e,diffManuallyExpanded:!1,filteredDiffSummaries:t,headBranchName:n,headRepoName:i,headRepoOwner:a,pullRequestGlobalRelayId:r,repository:s,onScrollToAndFocusEntry:u})}):null});try{aB.displayName||(aB.displayName=”SingleFileModeDiffEntryNavigator”)}catch{}let aV=(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)(aI.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(aU)})]}),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)(aI.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)(aI.O,{height:”sm”,variant:”rounded”,width:”random”},`loading-skeleton-${t}`))})]})};function aU(e,t){return(0,o.jsx)(aI.O,{height:”sm”,variant:”rounded”,width:”random”},`loading-skeleton-${t}`)}try{aV.displayName||(aV.displayName=”EntireDiffLoadingSkeleton”)}catch{}let aG=(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,nw.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,nq.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)(aA,{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,nw.u)(“pulls-files-skip-prefer-any-solo-entry”),[a,r]=(0,y.useState)(!1),[s,l]=(0,nq.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)(aA,{ariaLabel:`Loading ${e.path}`,testId:`lazy-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})})});try{aG.displayName||(aG.displayName=”LazyDiffEntryLoadingSkeleton”)}catch{}let aH=(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,nw.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)(aA,{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,nw.u)(“pulls-files-skip-prefer-any-solo-entry”);return(0,y.useEffect)(()=>{n(e,{preferAnySoloEntry:!i})},[n,e,i]),(0,o.jsx)(aA,{ariaLabel:`Loading ${e.path}`,testId:`eager-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})});try{aH.displayName||(aH.displayName=”EagerDiffEntryLoadingSkeleton”)}catch{}let aq=(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)(aA,{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)(aA,{ariaLabel:`Loading ${e.path}`,testId:`hidden-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})});try{aq.displayName||(aq.displayName=”HiddenDiffEntryLoadingSkeleton”)}catch{}let az=(0,y.memo)(aW,(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),aK=(0,d.Z6)();function aW(e){return aK?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,n9.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,n9.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)(aq,{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)(aG,{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)(aH,{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.$)(aR.A.diffTargetable,aR.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:aR.A.diffHeaderWrapper,children:(0,o.jsx)(ak.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:c,canToggleRichDiff:!1,linesAdded:u,linesChanged:m,linesDeleted:f,newPath:p.path,patchStatus:””,path:p.path,onToggleExpandAllLines:aT.l,onToggleFileCollapsed:aT.l,onToggleDiffDisplay:aT.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)(aD,{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)(aD,{…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)(aL,{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,n9.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,n9.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)(aq,{progressiveDiffEntry:s,approximateLineCount:t}):”LAZY_AUTO_LOAD”===s.renderMode?e=(0,o.jsx)(aG,{progressiveDiffEntry:s,approximateLineCount:t}):”EAGER_AUTO_LOAD”===s.renderMode&&(e=(0,o.jsx)(aH,{progressiveDiffEntry:s,approximateLineCount:t})),(0,o.jsxs)(“div”,{role:”region”,id:`diff-${s.pathDigest}`,className:(0,v.$)(aR.A.diffTargetable,aR.A.diff),”data-targeted”:u,children:[(0,o.jsx)(“div”,{className:aR.A.diffHeaderWrapper,children:(0,o.jsx)(ak.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:aT.l,onToggleFileCollapsed:aT.l,onToggleDiffDisplay:aT.l,isInSingleFileMode:h})}),e]},`${s.pathDigest}_${s.path}`)}return m?(0,o.jsx)(J.t,{fallback:(0,o.jsx)(aD,{…m}),children:(0,o.jsx)(aL,{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)(aD,{linesAdded:0,linesChanged:0,linesDeleted:0,path:s.path,pathDigest:s.pathDigest,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”})}(e)}try{az.displayName||(az.displayName=”ProgressivePullRequestDiffEntry”)}catch{}try{aW.displayName||(aW.displayName=”ProgressivePullRequestDiffEntryUnmemoized”)}catch{}let aZ=”PullRequestDiffsAnimation-module__wrapper–j5QjR”,aQ=”PullRequestDiffsAnimation-module__imageContainer–ISOgX”,aX=”PullRequestDiffsAnimation-module__image–MMHno”,aJ=”PullRequestDiffsAnimation-module__firstFrameImage–DV3ZK”,aY=”PullRequestDiffsAnimation-module__animatedImage–yjDlC”,a0=”PullRequestDiffsAnimation-module__reducedMotionImage–cBS3Y”;var a1=n(69895);let a2=n.p+”mona-hifive-first-frame-0d428028d4d7.png”,a3=n.p+”mona-hifive-reduced-motion-3a22d8eb870c.png”,a4=n.p+”mona-hifive-loop-once-8c78f1af57d0.gif”,a5=(0,d.Z6)()?()=>{let e,t,n,i,a,r,s,l,d=(0,c.c)(12),u=(0,a1.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:a4,alt:”GIF of two octocats high fiving each other”,className:(0,v.$)(aX,aY),ref:m}),d[2]=t):t=d[2],d[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,v.$)(aX,aJ),d[3]=n):n=d[3],d[4]!==h?(i=(0,o.jsx)(“img”,{src:a2,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:a3,alt:”Two octocats high fiving each other”,className:(0,v.$)(aX,a0)}),d[6]=a):a=d[6],d[7]!==i?(r=(0,o.jsxs)(“div”,{className:aQ,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,a1.j)(),t=(0,y.useRef)(null),n=(0,y.useRef)(null);return(0,o.jsxs)(“div”,{className:aZ,children:[(0,o.jsxs)(“div”,{className:aQ,children:[(0,o.jsx)(“img”,{src:a4,alt:”GIF of two octocats high fiving each other”,className:(0,v.$)(aX,aY),ref:t}),(0,o.jsx)(“img”,{src:a2,alt:”Two octocats”,className:(0,v.$)(aX,aJ),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:a3,alt:”Two octocats high fiving each other”,className:(0,v.$)(aX,a0)})]}),(0,o.jsx)(“span”,{className:”fgColor-muted”,children:”You made it to the end!”})]})},a6=(0,y.memo)(a5);try{a5.displayName||(a5.displayName=”PullRequestDiffsAnimationComponent”)}catch{}try{a6.displayName||(a6.displayName=”PullRequestDiffsAnimation”)}catch{}let a7=(0,y.memo)(a9),a8=(0,d.Z6)();function a9(e){return a8?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}=aM(),_=(0,I.qg)(),R=w.length>=15;if(0===_){let e;return d[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(a$,{}),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)(aP,{}),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)(az,{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)(a6,{}),d[30]=R,d[31]=r):r=d[31],d[32]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(aE.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}=aM(),b=(0,I.qg)(),v=f.length;return 0===b?(0,o.jsx)(a$,{}):0===t.length?(0,o.jsx)(aP,{}):(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)(az,{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)(a6,{}),(0,o.jsx)(aE.nq,{})]})}(e)}try{a7.displayName||(a7.displayName=”PullRequestDiffsList”)}catch{}try{a9.displayName||(a9.displayName=”PullRequestDiffsListUnmemoized”)}catch{}var re=n(51220);let rt=”PullRequestVirtualizedDiffRow-module__virtualizedDiffRow–mhuB6″,rn=(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=aS({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)(aA,{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:rt,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)(aL,{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:rt,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=aS({diffSummary:i,commentPreference:s.commentsPreference,lineSpacingPreference:s.lineSpacing,isCollapsed:n});return(0,o.jsx)(“div”,{style:p,className:rt,ref:r,”data-index”:e.index,children:(0,o.jsx)(aA,{ariaLabel:`Loading ${t.path}`,testId:`lazy-load-${t.path}`,id:`diff-${t.pathDigest}`,approximateDiffHeight:a})})}return n?(0,o.jsx)(“div”,{style:p,className:rt,ref:r,”data-index”:e.index,children:(0,o.jsx)(aL,{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{rn.displayName||(rn.displayName=”MemoizedVirtualizedDiffRow”)}catch{}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.qg)(),j=(0,I.l0)(),C=(0,I.HZ)(),w=p.length,N=(0,I.y)();(0,y.useEffect)(()=>{x()},[x]);let S=(0,y.useCallback)(e=>{let n=p[e];if(!n)return 0;let i=j[n.path??””],a=N(n.path??””);return aS({diffSummary:i,commentPreference:t?.commentsPreference??f.sI.Visible,lineSpacingPreference:t?.lineSpacing??f.Ud.Relaxed,isCollapsed:a})},[p,j,N,t?.commentsPreference,t?.lineSpacing]),L=(0,y.useCallback)(e=>p[e]?.pathDigest??e,[p]);(0,y.useEffect)(()=>{u.current&&h(u.current.offsetTop)},[]);let D=(0,re.XW)({count:p.length,estimateSize:S,getItemKey:L,overscan:5,scrollMargin:m,gap:16}),_=D.getVirtualItems(),R=(0,y.useMemo)(()=>{for(let e of _){let t=p[e.index];if(t?.loadingStatus===”NotLoaded”)return e.index}return -1},[_,p]);return((0,y.useEffect)(()=>{if(-1===R)return;let e=p[R];e&&b(e)},[R,p,b]),0===v)?(0,o.jsx)(a$,{}):0===p.length?(0,o.jsx)(aP,{}):(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:`${D.getTotalSize()}px`},children:_.map(n=>{let s=p[n.index];return(0,o.jsx)(rn,{virtualRow:n,virtualizedDiffEntry:s,diffEntry:C[s?.path??””],diffSummary:j[s?.path??””],scrollMargin:D.options.scrollMargin,measureElement:D.measureElement,basePath:e,currentUser:t,headBranchName:i,headRepoName:a,headRepoOwner:r,pullRequestGlobalRelayId:l,repository:d},n.key)})}),w>=15&&(0,o.jsx)(a6,{}),(0,o.jsx)(aE.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:k,commits:T,repository:O}=e;_[0]!==T?(t=void 0===T?[]:T,_[0]=T,_[1]=t):t=_[1];let P=t,{helpUrl:F}=(0,av.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,av.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])},ru=(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 A=t,k=u?u.pullRequest.comparison.headOid:d,E=u?u.pullRequest.comparison.baseOid:s;if(!k)throw Error(“DiffComparisonViewer: headSha is required if initialData is not provided”);let T=!u;a[11]!==r||a[12]!==E||a[13]!==k||a[14]!==T?(n={basePath:r,headSha:k,baseSha:E,shouldFetch:T},a[11]=r,a[12]=E,a[13]=k,a[14]=T,a[15]=n):n=a[15];let{data:O,isLoading:P}=i1(n),F=u??O;return a[16]!==A||a[17]!==F||a[18]!==P?(i=(0,o.jsx)(o.Fragment,{children:F&&!P?(0,o.jsx)(iY.Kg,{basePageDataUrl:F.pullRequest.pathName,children:(0,o.jsx)(iX.v,{initData:F,children:(0,o.jsx)(rm,{…F,configOpts:A})})}):(0,o.jsxs)(“div”,{className:”width-full”,children:[(0,o.jsx)(“div”,{className:iZ,children:(0,o.jsx)(“div”,{className:iQ,children:(0,o.jsx)(aI.O,{width:”lg”,height:”lg”,variant:”rounded”})})}),(0,o.jsxs)(“div”,{className:”d-flex flex-column gap-3 p-3″,children:[(0,o.jsx)(aV,{lines:4}),(0,o.jsx)(aV,{lines:8}),(0,o.jsx)(aV,{lines:5})]})]})}),a[16]=A,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}=i1({basePath:e,headSha:g,baseSha:x,shouldFetch:!a}),j=a??b;return(0,o.jsx)(o.Fragment,{children:j&&!v?(0,o.jsx)(iY.Kg,{basePageDataUrl:j.pullRequest.pathName,children:(0,o.jsx)(iX.v,{initData:j,children:(0,o.jsx)(rm,{…j,configOpts:p})})}):(0,o.jsxs)(“div”,{className:”width-full”,children:[(0,o.jsx)(“div”,{className:iZ,children:(0,o.jsx)(“div”,{className:iQ,children:(0,o.jsx)(aI.O,{width:”lg”,height:”lg”,variant:”rounded”})})}),(0,o.jsxs)(“div”,{className:”d-flex flex-column gap-3 p-3″,children:[(0,o.jsx)(aV,{lines:4}),(0,o.jsx)(aV,{lines:8}),(0,o.jsx)(aV,{lines:5})]})]})})},rm=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,j,C,w,N,S,L,R,A,k,E,T,O,P,F,$,M,B,V,U=(0,c.c)(121),{codeowners:G,commit:H,commits:q,configOpts:z,diffSummaries:K,fileFilter:W,pullRequest:Z,repository:Q,markers:X,pageLimits:J,urls:Y,user:ee,isSingleFileMode:et}=e;iE(X,K),(0,g.L)(!0),rc();let en=rp(ee);U[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,h.G7)(“pull_request_files_virtualization_staff_ship”),U[0]=t):t=U[0];let ei=t;U[1]===Symbol.for(“react.memo_cache_sentinel”)?(n={onSuccess:rh,onError:rf},U[1]=n):n=U[1];let{mutate:ea}=(0,u.U)(n),{data:er}=(0,m.ID)(en);U[2]!==er?.commentsPreference||U[3]!==ea?(i=()=>{ea({commentsPreference:er?.commentsPreference===f.sI.Visible?f.sI.Collapsed:f.sI.Visible})},U[2]=er?.commentsPreference,U[3]=ea,U[4]=i):i=U[4],er?.commentsPreference;let es=i;er?.commentsPreference,er?.lineSpacing,er?.splitPreference;let el=ee.currentUserAvatarUrl||””,eo=ee.currentUserLogin||””,ed=z.forceUnifiedView?”unified”:er?.splitPreference??”unified”,ec=z.useInlineComments??!1,eu=z.useEditOptions??!1,em=er?.lineSpacing??”relaxed”,ef=z.userCanComment&&ee.canComment,eh=er?.commentsPreference??”visible”;U[5]!==ef||U[6]!==eh||U[7]!==el||U[8]!==eo||U[9]!==ed||U[10]!==ec||U[11]!==eu||U[12]!==em||U[13]!==ee.canApplySuggestion||U[14]!==ee.hasCopilotAccess||U[15]!==ee.tabSize?(a={avatarURL:el,login:eo,tabSize:ee.tabSize,splitPreference:ed,shouldDisplayComments:ec,shouldDisplayEditOptions:eu,lineSpacing:em,canComment:ef,canApplySuggestion:ee.canApplySuggestion,commentsPreference:eh,hasCopilotAccess:ee.hasCopilotAccess},U[5]=ef,U[6]=eh,U[7]=el,U[8]=eo,U[9]=ed,U[10]=ec,U[11]=eu,U[12]=em,U[13]=ee.canApplySuggestion,U[14]=ee.hasCopilotAccess,U[15]=ee.tabSize,U[16]=a):a=U[16];let ep=a,{updateCommentsPreference:eg}=(0,I.CQ)();U[17]!==er?.commentsPreference||U[18]!==eg?(r=()=>{eg(er?.commentsPreference??f.sI.Visible)},U[17]=er?.commentsPreference,U[18]=eg,U[19]=r):r=U[19];let ex=er?.commentsPreference;U[20]!==ex||U[21]!==eg?(s=[ex,eg],U[20]=ex,U[21]=eg,U[22]=s):s=U[22],(0,y.useEffect)(r,s);let{splitPagePaneHidden:eb,treeViewState:ev,treeToggleElement:ey,collapseMobileTree:ej,expandTree:eC}=i8(eU,ee.isFileTreeExpanded&&!z.treeCollapsedByDefault,z.treeEnableInlineCompactMode,ep);U[23]!==G||U[24]!==Z.pathName?(l={basePath:Z.pathName},G&&(l.initialData=G),U[23]=G,U[24]=Z.pathName,U[25]=l):l=U[25];let{data:ew}=(0,D.dG)(l),{setCodeowners:eN}=(0,I.wh)();U[26]!==ew||U[27]!==eN?(d=()=>{eN(ew)},j=[ew,eN],U[26]=ew,U[27]=eN,U[28]=d,U[29]=j):(d=U[28],j=U[29]),(0,y.useEffect)(d,j);let eS=(0,I.qg)(),eL=ei&&eS>=50,eD=(0,I.I8)(),{updateDiffFilter:eI}=(0,I.or)();U[30]!==W.initialState||U[31]!==eI?(C=()=>{eI({…W.initialState,unselectedFileExtensions:new Set(W.initialState.unselectedFileExtensions)})},w=[eI,W.initialState],U[30]=W.initialState,U[31]=eI,U[32]=C,U[33]=w):(C=U[32],w=U[33]),(0,y.useEffect)(C,w);let e_=(0,I.mU)();U[34]!==eI?(N=e=>{eI(e,!0)},U[34]=eI,U[35]=N):N=U[35];let eR=N;U[36]!==ej||U[37]!==ev.compactMode?(S=()=>{“none”!==ev.compactMode&&ej()},U[36]=ej,U[37]=ev.compactMode,U[38]=S):S=U[38];let eA=S,ek=(0,y.useRef)(null),eE=”expanded”!==ev.wideMode?”small”:”medium”;U[39]!==ep.login||U[40]!==eD||U[41]!==W.menuOptions||U[42]!==eR||U[43]!==Z.pathName||U[44]!==eE?(L=(0,o.jsx)(_,{ref:ek,basePath:Z.pathName,fileFilterMenuOptions:W.menuOptions,fileFilterState:eD,setFileFilterState:eR,viewerLogin:ep.login,filterSize:eE}),U[39]=ep.login,U[40]=eD,U[41]=W.menuOptions,U[42]=eR,U[43]=Z.pathName,U[44]=eE,U[45]=L):L=U[45];let eT=L,eO=(0,I.gt)(),eP=K.length>0,eF=z.useChangeGroups&&eO&&eP;U[46]!==eF?(R={changeGroupsEnabled:eF},U[46]=eF,U[47]=R):R=U[47],ai(R);let{aliveChannel:e$,bannersData:eM}=(0,iJ.o)();U[48]!==eC?(A=()=>{eC(),window.requestAnimationFrame(()=>{ek.current?.focus()})},U[48]=eC,U[49]=A):A=U[49];let eV=A;U[50]!==eV||U[51]!==es?(k=(0,o.jsx)(p.ak,{commands:{“pull-request-files-changed:collapse-expand-comments”:es,”pull-request-files-changed:focus-file-tree-filter”:eV}}),U[50]=eV,U[51]=es,U[52]=k):k=U[52],U[53]!==eT||U[54]!==e$||U[55]!==eF||U[56]!==eM||U[57]!==ej||U[58]!==q||U[59]!==z.useAdvancedToolbar||U[60]!==z.useBasicToolbar||U[61]!==eS||U[62]!==e_||U[63]!==eA||U[64]!==eR||U[65]!==J||U[66]!==Z||U[67]!==Q||U[68]!==ey||U[69]!==ev.compactMode||U[70]!==ev.wideMode||U[71]!==Y||U[72]!==ee?(E=z.useAdvancedToolbar||z.useBasicToolbar?(0,o.jsxs)(o.Fragment,{children:[z.useAdvancedToolbar&&(0,o.jsx)(iR,{changeGroupsPreferenceAvailable:eF,commits:q,currentUserLogin:ee.currentUserLogin,fileFilter:eT,isFileTreeExpanded:”expanded”===ev.wideMode,lastReviewOid:ee.lastReviewOid,pageLimits:J,pullRequest:Z,repository:Q,shouldShowViewedFilesCount:ee.shouldShowViewedFilesCount,totalFilesCount:eS,treeToggleElement:ey,bannersData:eM,urls:Y,user:ee,aliveChannel:e$}),z.useBasicToolbar&&(0,o.jsx)(i2,{fileFilter:eT,isFileTreeExpanded:”expanded”===ev.wideMode,shouldShowViewedFilesCount:ee.shouldShowViewedFilesCount,totalFilesCount:eS,treeToggleElement:ey,userNotices:ee.userNotices}),”overlay”===ev.compactMode&&(0,o.jsx)(x.l,{onClose:()=>ej(),position:{narrow:”fullscreen”,regular:”left”,wide:”left”},title:”Files”,className:”p-0″,children:(0,o.jsx)(eG,{allowPullRequestGroups:eF,fileFilter:eT,filteredDiffs:e_,onFileSelected:eA,onSetFilterState:eR})})]}):null,U[53]=eT,U[54]=e$,U[55]=eF,U[56]=eM,U[57]=ej,U[58]=q,U[59]=z.useAdvancedToolbar,U[60]=z.useBasicToolbar,U[61]=eS,U[62]=e_,U[63]=eA,U[64]=eR,U[65]=J,U[66]=Z,U[67]=Q,U[68]=ey,U[69]=ev.compactMode,U[70]=ev.wideMode,U[71]=Y,U[72]=ee,U[73]=E):E=U[73],U[74]!==eT||U[75]!==eF||U[76]!==z.useBasicToolbar||U[77]!==z.useFileTree||U[78]!==e_||U[79]!==eA||U[80]!==eR||U[81]!==eb||U[82]!==ev.compactMode||U[83]!==ev.wideMode?(T=z.useFileTree?(0,o.jsx)(b.O7.Pane,{position:”start”,sticky:!0,offsetHeader:z.useBasicToolbar?”50px”:”60px”,”aria-label”:”File tree”,padding:”none”,className:(0,v.$)(iU,eb&&iF,”expanded”===ev.wideMode&&iG,”collapsed”===ev.wideMode&&iH,”none”===ev.compactMode&&iq,”overlay”===ev.compactMode&&iz,”inline”===ev.compactMode&&iK,iM),divider:{regular:”inline”===ev.compactMode?”none”:”line”,narrow:”none”},widthStorageKey:”diff-tree-pane-width”,resizable:”inline”!==ev.compactMode,children:(0,o.jsx)(eG,{allowPullRequestGroups:eF,className:(0,v.$)(eB,i$),fileFilter:eT,filteredDiffs:e_,onFileSelected:eA,onSetFilterState:eR})}):null,U[74]=eT,U[75]=eF,U[76]=z.useBasicToolbar,U[77]=z.useFileTree,U[78]=e_,U[79]=eA,U[80]=eR,U[81]=eb,U[82]=ev.compactMode,U[83]=ev.wideMode,U[84]=T):T=U[84];let eH=”inline”===ev.compactMode;U[85]!==eH?(O={narrow:!1,regular:eH},U[85]=eH,U[86]=O):O=U[86];let eq=”expanded”===ev.wideMode&&iG;return U[87]!==eq?(P=(0,v.$)(iW,eq),U[87]=eq,U[88]=P):P=U[88],U[89]!==H||U[90]!==q||U[91]!==Z||U[92]!==Q?(F=H&&(0,o.jsx)(rd,{commit:H,pullRequest:Z,commits:q,repository:Q}),U[89]=H,U[90]=q,U[91]=Z,U[92]=Q,U[93]=F):F=U[93],U[94]!==J||U[95]!==Q||U[96]!==Y?($=(0,o.jsx)(eQ,{pageLimits:J,repository:Q,urls:Y}),U[94]=J,U[95]=Q,U[96]=Y,U[97]=$):$=U[97],U[98]!==ep||U[99]!==e_||U[100]!==eR||U[101]!==eL||U[102]!==et||U[103]!==Z.globalRelayId||U[104]!==Z.headBranch||U[105]!==Z.headRepositoryName||U[106]!==Z.headRepositoryOwnerLogin||U[107]!==Z.pathName||U[108]!==Q?(M=eL?(0,o.jsx)(ri,{basePath:Z.pathName,currentUser:ep,headBranchName:Z.headBranch,headRepoName:Z.headRepositoryName,headRepoOwner:Z.headRepositoryOwnerLogin,onSetFilterState:eR,pullRequestGlobalRelayId:Z.globalRelayId,filteredDiffSummaries:e_,repository:Q,showPullRequestGroups:!0}):(0,o.jsx)(o.Fragment,{children:et?(0,o.jsx)(aB,{currentUser:ep,filteredDiffSummaries:e_,headBranchName:Z.headBranch,headRepoName:Z.headRepositoryName,headRepoOwner:Z.headRepositoryOwnerLogin,pullRequestGlobalRelayId:Z.globalRelayId,repository:Q}):(0,o.jsx)(a7,{currentUser:ep,headBranchName:Z.headBranch,headRepoName:Z.headRepositoryName,headRepoOwner:Z.headRepositoryOwnerLogin,onSetFilterState:eR,pullRequestGlobalRelayId:Z.globalRelayId,filteredDiffSummaries:e_,repository:Q,showPullRequestGroups:!0})}),U[98]=ep,U[99]=e_,U[100]=eR,U[101]=eL,U[102]=et,U[103]=Z.globalRelayId,U[104]=Z.headBranch,U[105]=Z.headRepositoryName,U[106]=Z.headRepositoryOwnerLogin,U[107]=Z.pathName,U[108]=Q,U[109]=M):M=U[109],U[110]!==O||U[111]!==P||U[112]!==F||U[113]!==$||U[114]!==M?(B=(0,o.jsxs)(b.O7.Content,{as:”div”,width:”full”,hidden:O,padding:”none”,className:P,children:[F,$,M]}),U[110]=O,U[111]=P,U[112]=F,U[113]=$,U[114]=M,U[115]=B):B=U[115],U[116]!==k||U[117]!==E||U[118]!==T||U[119]!==B?(V=(0,o.jsxs)(o.Fragment,{children:[k,E,T,B]}),U[116]=k,U[117]=E,U[118]=T,U[119]=B,U[120]=V):V=U[120],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}){iE(d,a),(0,g.L)(!0),rc();let N=rp(C),S=(0,h.G7)(“pull_request_files_virtualization_staff_ship”),{mutate:L}=(0,u.U)({onSuccess:()=>{},onError:()=>{}}),{data:R}=(0,m.ID)(N),A=(0,y.useCallback)(()=>{L({commentsPreference:R?.commentsPreference===f.sI.Visible?f.sI.Collapsed:f.sI.Visible})},[R?.commentsPreference,L]),k=(0,y.useMemo)(()=>({avatarURL:C.currentUserAvatarUrl||””,login:C.currentUserLogin||””,tabSize:C.tabSize,splitPreference:i.forceUnifiedView?”unified”:R?.splitPreference??”unified”,shouldDisplayComments:i.useInlineComments??!1,shouldDisplayEditOptions:i.useEditOptions??!1,lineSpacing:R?.lineSpacing??”relaxed”,canComment:i.userCanComment&&C.canComment,canApplySuggestion:C.canApplySuggestion,commentsPreference:R?.commentsPreference??”visible”,hasCopilotAccess:C.hasCopilotAccess}),[i.forceUnifiedView,i.useEditOptions,i.useInlineComments,i.userCanComment,R?.commentsPreference,R?.lineSpacing,R?.splitPreference,C.canApplySuggestion,C.canComment,C.currentUserAvatarUrl,C.currentUserLogin,C.hasCopilotAccess,C.tabSize]),{updateCommentsPreference:E}=(0,I.CQ)();(0,y.useEffect)(()=>{E(R?.commentsPreference??f.sI.Visible)},[R?.commentsPreference,E]);let{splitPagePaneHidden:T,treeViewState:O,treeToggleElement:P,collapseMobileTree:F,expandTree:$}=i8(eU,C.isFileTreeExpanded&&!i.treeCollapsedByDefault,i.treeEnableInlineCompactMode,k),M={basePath:s.pathName};e&&(M.initialData=e);let{data:B}=(0,D.dG)(M),{setCodeowners:V}=(0,I.wh)();(0,y.useEffect)(()=>{V(B)},[B,V]);let U=(0,I.qg)(),G=S&&U>=50,H=(0,I.I8)(),{updateDiffFilter:q}=(0,I.or)();(0,y.useEffect)(()=>{q({…r.initialState,unselectedFileExtensions:new Set(r.initialState.unselectedFileExtensions)})},[q,r.initialState]);let z=(0,I.mU)(),K=(0,y.useCallback)(e=>{q(e,!0)},[q]),W=(0,y.useCallback)(()=>{“none”!==O.compactMode&&F()},[F,O.compactMode]),Z=(0,y.useRef)(null),Q=(0,y.useMemo)(()=>(0,o.jsx)(_,{ref:Z,basePath:s.pathName,fileFilterMenuOptions:r.menuOptions,fileFilterState:H,setFileFilterState:K,viewerLogin:k.login,filterSize:”expanded”!==O.wideMode?”small”:”medium”}),[s.pathName,r.menuOptions,H,K,k.login,O.wideMode]),X=(0,I.gt)(),J=a.length>0,Y=i.useChangeGroups&&X&&J;ai({changeGroupsEnabled:Y});let{aliveChannel:ee,bannersData:et}=(0,iJ.o)(),en=(0,y.useCallback)(()=>{$(),window.requestAnimationFrame(()=>{Z.current?.focus()})},[$]);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”:en}}),i.useAdvancedToolbar||i.useBasicToolbar?(0,o.jsxs)(o.Fragment,{children:[i.useAdvancedToolbar&&(0,o.jsx)(iR,{changeGroupsPreferenceAvailable:Y,commits:n,currentUserLogin:C.currentUserLogin,fileFilter:Q,isFileTreeExpanded:”expanded”===O.wideMode,lastReviewOid:C.lastReviewOid,pageLimits:c,pullRequest:s,repository:l,shouldShowViewedFilesCount:C.shouldShowViewedFilesCount,totalFilesCount:U,treeToggleElement:P,bannersData:et,urls:j,user:C,aliveChannel:ee}),i.useBasicToolbar&&(0,o.jsx)(i2,{fileFilter:Q,isFileTreeExpanded:”expanded”===O.wideMode,shouldShowViewedFilesCount:C.shouldShowViewedFilesCount,totalFilesCount:U,treeToggleElement:P,userNotices:C.userNotices}),”overlay”===O.compactMode&&(0,o.jsx)(x.l,{onClose:()=>F(),position:{narrow:”fullscreen”,regular:”left”,wide:”left”},title:”Files”,className:”p-0″,children:(0,o.jsx)(eG,{allowPullRequestGroups:Y,fileFilter:Q,filteredDiffs:z,onFileSelected:W,onSetFilterState:K})})]}):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.$)(iU,T&&iF,”expanded”===O.wideMode&&iG,”collapsed”===O.wideMode&&iH,”none”===O.compactMode&&iq,”overlay”===O.compactMode&&iz,”inline”===O.compactMode&&iK,iM),divider:{regular:”inline”===O.compactMode?”none”:”line”,narrow:”none”},widthStorageKey:”diff-tree-pane-width”,resizable:”inline”!==O.compactMode,children:(0,o.jsx)(eG,{allowPullRequestGroups:Y,className:(0,v.$)(eB,i$),fileFilter:Q,filteredDiffs:z,onFileSelected:W,onSetFilterState:K})}):null,(0,o.jsxs)(b.O7.Content,{as:”div”,width:”full”,hidden:{narrow:!1,regular:”inline”===O.compactMode},padding:”none”,className:(0,v.$)(iW,”expanded”===O.wideMode&&iG),children:[t&&(0,o.jsx)(rd,{commit:t,pullRequest:s,commits:n,repository:l}),(0,o.jsx)(eQ,{pageLimits:c,repository:l,urls:j}),G?(0,o.jsx)(ri,{basePath:s.pathName,currentUser:k,headBranchName:s.headBranch,headRepoName:s.headRepositoryName,headRepoOwner:s.headRepositoryOwnerLogin,onSetFilterState:K,pullRequestGlobalRelayId:s.globalRelayId,filteredDiffSummaries:z,repository:l,showPullRequestGroups:!0}):(0,o.jsx)(o.Fragment,{children:w?(0,o.jsx)(aB,{currentUser:k,filteredDiffSummaries:z,headBranchName:s.headBranch,headRepoName:s.headRepositoryName,headRepoOwner:s.headRepositoryOwnerLogin,pullRequestGlobalRelayId:s.globalRelayId,repository:l}):(0,o.jsx)(a7,{currentUser:k,headBranchName:s.headBranch,headRepoName:s.headRepositoryName,headRepoOwner:s.headRepositoryOwnerLogin,onSetFilterState:K,pullRequestGlobalRelayId:s.globalRelayId,filteredDiffSummaries:z,repository:l,showPullRequestGroups:!0})})]})]})};function rf(){}function rh(){}let rp=(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])},rg=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(7);return a[0]!==e.className?(t=(0,v.$)(iP,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:i7,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:i7,className:(0,v.$)(iP,e.className),children:(0,o.jsx)(b.O7,{children:e.children})})},rx=Object.assign({},{Container:rg,Header:b.O7.Header,Viewer:ru});try{(r=Some).displayName||(r.displayName=”Some”)}catch{}try{(s=Some).displayName||(s.displayName=”Some”)}catch{}try{ru.displayName||(ru.displayName=”BaseDiffComparisonViewer”)}catch{}try{rm.displayName||(rm.displayName=”InternalDiffComparisonViewer”)}catch{}try{(l=FilterFilterComponent).displayName||(l.displayName=”FilterFilterComponent”)}catch{}try{rg.displayName||(rg.displayName=”Container”)}catch{}try{rx.displayName||(rx.displayName=”DiffComparisonViewer”)}catch{}},18373:(e,t,n)=>{n.d(t,{U:()=>v});var i=n(74848),a=n(16522),r=n(96540),s=n(43883),l=n(21373),o=n(57478),d=n(72511),c=n(15837),u=n(86877),m=n(4175),f=n(46251),h=n(33989),p=n(15220),g=n(38621),x=n(55127),b=n.n(x);function v(e){let t,n,h,x,v,j,C,w,N,S,L,D,I,_,R,A,k,E,T,O,P=(0,a.c)(60),{setOpen:F,count:$,dismissalOptions:M,error:B,isPending:V,delegatedAlertDismissalEnabled:U,codeSecurity:G,onSubmit:H}=e,[q,z]=(0,r.useState)(“”),[K,W]=(0,r.useState)(“”),[Z,Q]=(0,r.useState)(!1);P[0]!==U||P[1]!==K?(t=!U||!!K.trim(),P[0]=U,P[1]=K,P[2]=t):t=P[2];let X=t,J=!!q&&X;P[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{z(e??””)},P[3]=n):n=P[3];let Y=n,ee=G?”alert”:”finding”;if(P[4]!==$||P[5]!==ee){let e,t,n,i,a,r,s;e=b()(ee,$),t=$>1,n=`Dismiss ${e}`,i=`Select a reason to dismiss ${b()(“this”,$)} ${e}.`,a=`Request to dismiss ${e}`,r=t?`These ${e} need approval before they can be dismissed. Requests are sent to all approvers.`:`This ${e} needs approval before it can be dismissed. Requests are sent to all approvers.`,s=t?`These ${e} are not valid`:`This ${e} is not valid`,h={title:n,subtitle:i,submitButtonLabel:”Dismiss”,delegatedAlertDismissal:{title:a,subtitle:r,submitButtonLabel:”Submit request”},reasons:{falsePositiveDescription:s,usedInTestsDescription:t?`These ${e} are not in production code`:`This ${e} is not in production code`,wontFixDescription:t?`These ${e} are not relevant`:`This ${e} is not relevant`}},P[4]=$,P[5]=ee,P[6]=h}else h=P[6];let{title:et,subtitle:en,submitButtonLabel:ei,delegatedAlertDismissal:ea,reasons:er}=h;P[7]!==er.falsePositiveDescription?(x={value:”FALSE_POSITIVE”,label:”False positive”,description:er.falsePositiveDescription},P[7]=er.falsePositiveDescription,P[8]=x):x=P[8],P[9]!==er.usedInTestsDescription?(v={value:”USED_IN_TESTS”,label:”Used in tests”,description:er.usedInTestsDescription},P[9]=er.usedInTestsDescription,P[10]=v):v=P[10],P[11]!==er.wontFixDescription?(j={value:”WONT_FIX”,label:”Won’t fix”,description:er.wontFixDescription},P[11]=er.wontFixDescription,P[12]=j):j=P[12],P[13]!==x||P[14]!==v||P[15]!==j?(C=[x,v,j],P[13]=x,P[14]=v,P[15]=j,P[16]=C):C=P[16];let es=C,el=M?.length?M:es;P[17]!==K||P[18]!==J||P[19]!==H||P[20]!==q?(w=async()=>{J?(Q(!1),H({resolution:q,dismissalComment:K})):Q(!0)},P[17]=K,P[18]=J,P[19]=H,P[20]=q,P[21]=w):w=P[21];let eo=w;P[22]!==F?(N=()=>F(!1),P[22]=F,P[23]=N):N=P[23];let ed=U?ea.title:et,ec=U?ea.subtitle:en;return P[24]!==$||P[25]!==ea||P[26]!==U||P[27]!==V||P[28]!==J||P[29]!==eo||P[30]!==F||P[31]!==ei?(S=()=>(0,i.jsxs)(p.l.Footer,{children:[(0,i.jsx)(l.Q,{onClick:()=>F(!1),children:”Cancel”}),(0,i.jsxs)(l.Q,{variant:”primary”,onClick:eo,disabled:!J||V,leadingVisual:V?g.SyncIcon:null,children:[(0,i.jsx)(“span”,{children:U?ea.submitButtonLabel:ei}),$>1&&(0,i.jsx)(o.A,{scheme:”primary”,className:”ml-2″,children:(0,s.ai)($)})]})]}),P[24]=$,P[25]=ea,P[26]=U,P[27]=V,P[28]=J,P[29]=eo,P[30]=F,P[31]=ei,P[32]=S):S=P[32],P[33]!==B?(L=B&&(0,i.jsx)(d.A,{variant:”danger”,children:B.message}),P[33]=B,P[34]=L):L=P[34],P[35]===Symbol.for(“react.memo_cache_sentinel”)?(D=(0,i.jsx)(c.A.Label,{visuallyHidden:!0,children:”Dismissal reason”}),P[35]=D):D=P[35],P[36]!==el?(I=el.map(y),P[36]=el,P[37]=I):I=P[37],P[38]!==V||P[39]!==I?(_=(0,i.jsxs)(c.A,{name:”resolution”,onChange:Y,disabled:V,children:[D,I]}),P[38]=V,P[39]=I,P[40]=_):_=P[40],P[41]!==U?(R=(0,i.jsx)(u.A.Label,{required:U,children:”Comment”}),P[41]=U,P[42]=R):R=P[42],P[43]===Symbol.for(“react.memo_cache_sentinel”)?(A=(0,i.jsx)(m.Ay,{placeholder:”Add a comment”,rows:5,maxLength:280,name:”dismissal_comment”,onChange:e=>W(e.target.value),className:”BaseSharedDismissalDialog-module__dismissalCommentTextarea–xxBPO”}),P[43]=A):A=P[43],P[44]!==Z?(k=Z&&(0,i.jsx)(u.A.Validation,{variant:”error”,children:”This field is required”}),P[44]=Z,P[45]=k):k=P[45],P[46]!==V||P[47]!==R||P[48]!==k?(E=(0,i.jsx)(“div”,{children:(0,i.jsxs)(u.A,{disabled:V,children:[R,A,k]})}),P[46]=V,P[47]=R,P[48]=k,P[49]=E):E=P[49],P[50]!==L||P[51]!==_||P[52]!==E?(T=(0,i.jsxs)(f.B,{gap:”normal”,children:[L,_,E]}),P[50]=L,P[51]=_,P[52]=E,P[53]=T):T=P[53],P[54]!==ed||P[55]!==ec||P[56]!==S||P[57]!==T||P[58]!==N?(O=(0,i.jsx)(p.l,{width:”large”,height:”auto”,onClose:N,title:ed,subtitle:ec,renderFooter:S,children:T}),P[54]=ed,P[55]=ec,P[56]=S,P[57]=T,P[58]=N,P[59]=O):O=P[59],O}function y(e){return(0,i.jsxs)(u.A,{children:[(0,i.jsx)(h.A,{value:e.value}),(0,i.jsx)(u.A.Label,{children:e.label}),(0,i.jsx)(u.A.Caption,{children:e.description})]},e.value)}try{v.displayName||(v.displayName=”BaseSharedDismissalDialog”)}catch{}},20622:(e,t,n)=>{n.d(t,{uT:()=>r});let i={baseComparisonInfo:”base_comparison_info”,changeGroups:”change_groups”,codeButton:”code_button”,codeowners:”codeowners”,diffEntries:”diff_entries”,diffstat:”diffstat”,header:”header”,mergeBox:”merge_box”,mergeInstructions:”merge_instructions”,pendingReview:”pending_review”,statusChecks:”status_checks”,tabCounts:”tab_counts”,threadPreviews:”thread_previews”,diffViewUserSettings:”user_diff_view_settings”,diffContextLines:”diff_entry_lines”,richDiff:”rich_diff”,description:”description”},a={abandonReview:”abandon_review”,addCommentReaction:”add_comment_reaction”,changeBase:”change_base”,cleanupCodespaces:”cleanup_codespaces”,convertToDraft:”convert_to_draft”,createReviewComment:”create_review_comment”,deleteHeadRef:”delete_head_ref”,dequeuePullRequest:”dequeue_pull_request”,disableAutoMerge:”disable_auto_merge”,dismissReview:”dismiss_review”,enableAutoMerge:”enable_auto_merge”,generateChangeGroups:”generate_change_groups”,markReadyForReview:”mark_ready_for_review”,merge:”merge”,removeCommentReaction:”remove_comment_reaction”,reRequestReviewFromUser:”re_request_review_from_user”,resolveThread:”resolve_thread”,runActionRequiredWorkflows:”run_action_required_workflows”,submitCopilotGroupsFeedback:”submit_copilot_groups_feedback”,submitReview:”submit_review”,submitSuggestedChanges:”apply_suggestions”,unresolveThread:”unresolve_thread”,updateReviewComment:”update_review_comment”,updatePullRequestBranch:”update_pull_request_branch”,updateTitle:”update_title”,updateShowChangeGroupsPreference:”update_show_change_groups_preference”,updateMergeBoxUserPreference:”update_merge_box_user_preference”,updateWhitespacePreference:”update_whitespace_preference”,hideComment:”hide_comment”,unhideComment:”unhide_comment”},r={…i,…a};Object.values(i),Object.values(a)},21132:(e,t,n)=>{n.d(t,{s:()=>i});let i={Loaded:”Loaded”,Loading:”Loading”,NotLoaded:”NotLoaded”}},21968:(e,t,n)=>{n.d(t,{O:()=>P});var i=n(74848),a=n(68273),r=n(16522),s=n(96540),l=n(98755),o=n(25407),d=n(26052),c=n(69726),u=n(84268),m=n(56149),f=n(21373),h=n(62935),p=n(72579),g=n(29e3),x=n(66990),b=n(79634),v=n(79431),y=n(11196),j=n(97665),C=n(33578),w=n(30923),N=n(20622),S=n(53885),L=n(96379),D=n(94747);let I=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,S.e)(N.uT.changeBase);return t[0]!==n?(e={mutationFn:e=>{let{newBaseBranch:t}=e,i=btoa(t);return(0,L.Sr)(n,{method:”PATCH”,body:{new_base_binary:i}})},onSuccess:_},t[0]=n,t[1]=e):e=t[1],(0,D.n)(e)}:function(){let e=(0,S.e)(N.uT.changeBase);return(0,D.n)({mutationFn:({newBaseBranch:t})=>{let n=btoa(t);return(0,L.Sr)(e,{method:”PATCH”,body:{new_base_binary:n}})},onSuccess:async e=>{let t=await e.json();if(t.error)throw Error(t.error);let n=await (await (0,w.Ee)(t.orchestration.url,{headers:{accept:”application/json”}})).json();if(n.orchestration.error_message)throw Error(n.orchestration.error_message)}})};async function _(e){let t=await e.json();if(t.error)throw Error(t.error);let n=await (await (0,w.Ee)(t.orchestration.url,{headers:{accept:”application/json”}})).json();if(n.orchestration.error_message)throw Error(n.orchestration.error_message)}let R=”PullRequestHeaderSummary-module__truncateBranch–bdsQu”;var A=n(34261),k=n(95807),E=n(99223),T=n(69599),O=n(37212);function P({author:e,baseBranch:t,baseRepositoryDefaultBranch:n=””,baseRepositoryName:a=””,baseRepositoryOwnerLogin:r=””,canChangeBase:p=!1,commitsCount:y,headBranch:w,headRepositoryOwnerLogin:N=””,headRepositoryName:S=””,isInAdvisoryRepo:L,isEditing:D=!1,mergedBy:_,mergedByName:R,mergedTime:P,pullRequestId:$,pullRequestNumber:M,repositoryId:B,setIsEditing:V,state:U}){var G,H,q;let z,K=(0,j.jE)(),{refListCacheKey:W}=(0,b.X)(),[Z,Q]=(0,s.useState)(!1),[X,J]=(0,s.useState)(!1),[Y,ee]=(0,s.useState)(“”),[et,en]=(0,s.useState)(“”),ei=(0,T.G7)(“render_user_display_name”),ea=(0,A.f)(),er=(0,O.NP)(),{mutate:es}=I(),el=e=>{J(!1),ee(e)},eo=X?()=>(0,i.jsx)(c.A,{size:”small”}):null,ed=N&&N!==r?`${r}:${t}`:t,ec=function(e,t,n,i,a){if(!t)return”unknown repository”;let r=!!t&&t!==e,s=a&&!!n;switch(!0){case r&&s:return`${t}/${n}:${i}`;case r:return`${t}:${i}`;case s:return`${n}:${i}`;default:return i}}(r,N,S,w,L),eu=U===C.Q.Merged?_?{login:_,displayName:R}:null:e,em=(G=U,H=y,q=eu?.login,z=`${H} ${H>1?”commits”:”commit”}`,G!==C.Q.Merged?`wants to merge ${z} into`:q?`merged ${z} into`:`${z} merged into`);return(0,i.jsxs)(“span”,{className:”fgColor-muted d-flex flex-items-center overflow-hidden PullRequestHeaderSummary-module__summaryContainer–iNR1T”,children:[eu?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{inline:!0,className:”fgColor-muted text-bold”,”data-hovercard-url”:(0,o.dCN)({owner:eu.login}),href:`/${eu.login}`,children:ei?(0,i.jsx)(d.v,{login:eu.login,profileName:eu.displayName,isAgent:!1}):eu.login}),” “]}):null,em,p&&D?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.PI,{cacheKey:W,canCreate:!1,closeOnSelect:!0,currentCommitish:t,defaultBranch:n,hideShowAll:!0,owner:r,repo:a,types:[“branch”],onSelectItem:e=>{Q(!0),en(e)}}),(0,i.jsx)(m.ZL,{children:(0,i.jsxs)(g.A,{“aria-labelledby”:”confirm-change-base-branch”,isOpen:Z,onDismiss:()=>{Q(!1),en(“”),ee(“”)},children:[(0,i.jsx)(g.A.Header,{id:”confirm-change-base-branch”,children:”Are you sure you want to change the base?”}),(0,i.jsxs)(“div”,{className:”p-3″,children:[(0,i.jsx)(“span”,{children:”Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.”}),Y&&(0,i.jsx)(v.v,{className:”mt-2″,variant:”critical”,children:Y}),(0,i.jsx)(“span”,{className:”sr-only”,”aria-live”:”polite”,children:X?”Base branch update in progress.”:””}),(0,i.jsx)(f.Q,{alignContent:”center”,”aria-disabled”:X?”true”:void 0,block:!0,className:”mt-3″,disabled:X,leadingVisual:eo,onClick:()=>{J(!0),es({newBaseBranch:et},{onError:e=>el(e.message),onSuccess:async()=>{try{await Promise.all([K.refetchQueries({queryKey:ea},{throwOnError:!0}),K.refetchQueries({queryKey:er},{throwOnError:!0})]),J(!1),V?.(!1),Q(!1)}catch{el(“Unable to refetch commits. Please refresh the page.”)}}})},variant:”primary”,children:X?null:”Change base”})]})]})})]}):(0,i.jsx)(F,{branch:t,branchText:ed,repositoryName:a,repositoryOwner:r}),(0,i.jsx)(“span”,{children:”from “}),(0,i.jsxs)(“div”,{className:”d-flex flex-items-center overflow-hidden”,children:[(0,i.jsx)(F,{branch:w,branchText:ec,repositoryName:S,repositoryOwner:N}),(0,i.jsx)(l.T,{ariaLabel:”Copy head branch name to clipboard”,size:”small”,textToCopy:N?ec:w})]}),U===C.Q.Merged&&(0,i.jsx)(h.A,{datetime:P}),U===C.Q.Open&&!(0,E.k)()&&(0,i.jsx)(k.i,{processingIndicatorUrl:(0,o.CZ9)({owner:r,repo:a,number:M}),repositoryId:B,pullRequestId:$})]})}let F=(0,a.Z6)()?function(e){let t=(0,r.c)(12),{branchText:n,repositoryOwner:a,repositoryName:s,branch:l}=e;if(s&&a){let e,r,d;t[0]!==l||t[1]!==s||t[2]!==a?(e=(0,o.WJ9)({owner:a,repo:s,branch:l}),t[0]=l,t[1]=s,t[2]=a,t[3]=e):e=t[3];let c=e,u=`${a}/${s}:${l}`;return t[4]!==n||t[5]!==c?(r=(0,i.jsx)(p.A,{href:c,className:R,children:n}),t[4]=n,t[5]=c,t[6]=r):r=t[6],t[7]!==u||t[8]!==r?(d=(0,i.jsx)(y.m,{text:u,children:r}),t[7]=u,t[8]=r,t[9]=d):d=t[9],d}{let e;return t[10]!==n?(e=(0,i.jsx)(p.A,{as:”span”,className:R,title:”This repository has been deleted”,children:n}),t[10]=n,t[11]=e):e=t[11],e}}:function({branchText:e,repositoryOwner:t,repositoryName:n,branch:a}){if(!n||!t)return(0,i.jsx)(p.A,{as:”span”,className:R,title:”This repository has been deleted”,children:e});{let r=(0,o.WJ9)({owner:t,repo:n,branch:a});return(0,i.jsx)(y.m,{text:`${t}/${n}:${a}`,children:(0,i.jsx)(p.A,{href:r,className:R,children:e})})}};try{P.displayName||(P.displayName=”PullRequestHeaderSummary”)}catch{}try{F.displayName||(F.displayName=”PullRequestBranchName”)}catch{}},24798:(e,t,n)=>{n.d(t,{o:()=>s});var i=n(68273),a=n(16522),r=n(76648);let s=(0,i.Z6)()?function(){let e,t=(0,a.c)(7),n=(0,r.B)()??{};if(n&&”header”in n)return n.header;let{aliveChannel:i,pullRequest:s,bannersData:l,repository:o,urls:d,user:c}=n;return t[0]!==i||t[1]!==l||t[2]!==s||t[3]!==o||t[4]!==d||t[5]!==c?(e={aliveChannel:i,pullRequest:s,bannersData:l,repository:o,urls:d,user:c},t[0]=i,t[1]=l,t[2]=s,t[3]=o,t[4]=d,t[5]=c,t[6]=e):e=t[6],e}:function(){let e=(0,r.B)()??{};if(e&&”header”in e)return e.header;let{aliveChannel:t,pullRequest:n,bannersData:i,repository:a,urls:s,user:l}=e;return{aliveChannel:t,pullRequest:n,bannersData:i,repository:a,urls:s,user:l}}},25556:(e,t,n)=>{n.d(t,{m:()=>p});var i=n(74848),a=n(69676),r=n(96540),s=n(56149),l=n(12683),o=n(34164);let d=n(38267).Ay.span.withConfig({displayName:”ControlledTooltip__TooltipBase”,componentId:”sc-da442a75-0″})([“&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 “,”;-webkit-font-smoothing:subpixel-antialiased;color:”,”;text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(data-visible-text);background:”,”;border-radius:”,”;opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&.tooltipped-open,&:hover,&:active,&:focus{&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0s;}}&.tooltipped-no-delay.tooltipped-open,&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus{&::after{animation-delay:0s;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-“,”;}}&.tooltipped-sw::after{margin-right:-“,”;}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-“,”;}}&.tooltipped-nw::after{margin-right:-“,”;}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}”,”;”],(0,l.yB)(“fonts.normal”),(0,l.yB)(“colors.fg.onEmphasis”),(0,l.yB)(“colors.neutral.emphasisPlus”),(0,l.yB)(“radii.2”),(0,l.yB)(“space.3”),(0,l.yB)(“space.3”),(0,l.yB)(“space.3”),(0,l.yB)(“space.3″),l.sx),c=()=>()=>void 0,u=()=>!1,m=()=>!0,f=(0,r.forwardRef)(function({direction:e=”n”,className:t,text:n,noDelay:a,align:l,wrap:f,open:h=!1,portalProps:p={},…g},x){let b=(0,r.useSyncExternalStore)(c,m,u),v=(0,o.$)(t,`tooltipped-${e}`,l&&`tooltipped-align-${l}-2`,a&&”tooltipped-no-delay”,f&&”tooltipped-multiline”,h&&”tooltipped-open”);return b?(0,i.jsx)(s.ZL,{…p,children:(0,i.jsx)(d,{ref:x,role:”tooltip”,”aria-label”:n,”data-visible-text”:n||g[“aria-label”],…g,sx:{position:”fixed”,zIndex:1,…g.sx},className:v})}):null});try{f.displayName||(f.displayName=”ControlledTooltip”)}catch{}var h=n(65787);let p=(0,r.forwardRef)(function({contentRef:e,open:t,anchoredPositionAlignment:n,anchorSide:s,anchorOffset:l,alignmentOffset:o,allowOutOfBounds:d,…c},u){let m=(0,r.useRef)(null);(0,r.useImperativeHandle)(u,()=>m.current);let p=(0,r.useRef)({left:0,top:0}),g=(0,r.useSyncExternalStore)((0,r.useCallback)(n=>{if(!m.current||!e.current||!t)return()=>void 0;let i=(0,h.U)(e.current);return i?.addEventListener(“scroll”,n),()=>{i?.removeEventListener(“scroll”,n)}},[e,t]),(0,r.useCallback)(()=>{if(!m.current||!e.current)return p.current;let t=(0,a.uG)(m.current,e.current,{align:n??”center”,side:s??”outside-top”,alignmentOffset:o??0,anchorOffset:l??0,allowOutOfBounds:d});return(t.left!==p.current.left||t.top!==p.current.top)&&(p.current=t),p.current},[e,o,l,n,s,d]),(0,r.useCallback)(()=>p.current,[]));return(0,i.jsx)(f,{…c,ref:m,open:t,style:{position:”absolute”,…g,…c.style}})});try{p.displayName||(p.displayName=”PortalTooltip”)}catch{}},26410:(e,t,n)=>{n.d(t,{J:()=>v,F:()=>x});var i=n(74848),a=n(96540),r=n(39111),s=n(96459),l=n(96379),o=n(84268),d=n(19579),c=n(72511),u=n(5524),m=n(81960),f=n(11196),h=n(98755),p=n(38621),g=n(34164);function x(e){let{httpAvailable:t,sshAvailable:n,httpUrl:m,showCloneWarning:h,sshUrl:g,sshCertificatesRequired:x,sshCertificatesAvailable:y,ghCliUrl:j,newSshKeyUrl:C,setProtocolPath:w}=e.protocolInfo,{defaultProtocol:N}=e.protocolInfo,[S,L]=(0,a.useState)(N),[D,I]=(0,a.useState)(“”),{cloneUrl:_,visualStudioCloneUrl:R,showVisualStudioCloneButton:A,showXcodeCloneButton:k,xcodeCloneUrl:E,zipballUrl:T}=e.platformInfo,O=(0,r.X)([“windows”,”mac”]),P=(0,r.X)([“mac”]),F=(0,s.Z)(),$=”mt-2 fgColor-muted text-normal”,M=(0,a.useCallback)(e=>{if(S!==e){L(e);let t=new FormData;t.set(“protocol_selector”,e),(0,l.DI)(w,{method:”post”,body:t})}},[S,L,w]),B=(0,a.useMemo)(()=>{let e=[];return t&&e.push({protocol:”http”,displayName:”HTTPS”,ariaLabel:”Clone with HTTPS”,handler:()=>M(“http”)}),n&&e.push({protocol:”ssh”,displayName:”SSH”,ariaLabel:”Clone with SSH”,handler:()=>M(“ssh”)}),e.push({protocol:”gh_cli”,displayName:”GitHub CLI”,ariaLabel:”Clone with GitHub CLI”,handler:()=>M(“gh_cli”)}),e},[t,M,n]),V=(0,a.useMemo)(()=>{let e=[];return O&&e.push({name:”githubDesktop”,text:”Open with GitHub Desktop”,url:_,icon:p.DesktopDownloadIcon}),O&&A&&e.push({name:”visualStudio”,text:”Open with Visual Studio”,url:R}),P&&k&&e.push({name:”xcode”,text:”Open with Xcode”,url:E}),e.push({name:”zip”,text:”Download ZIP”,url:T,icon:p.FileZipIcon}),e},[_,P,O,A,k,R,E,T]);return(0,i.jsx)(“div”,{children:”githubDesktop”===D?(0,i.jsx)(b,{platform:”GitHub Desktop”,href:”https://desktop.github.com/”}):”visualStudio”===D?(0,i.jsx)(b,{platform:”Visual Studio”}):”xcode”===D?(0,i.jsx)(b,{platform:”Xcode”,href:”https://developer.apple.com/xcode/”}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(“div”,{className:”m-3″,children:[(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[(0,i.jsx)(p.TerminalIcon,{className:”mr-2″}),(0,i.jsx)(“p”,{className:”flex-1 text-bold mb-0″,children:”Clone”}),(0,i.jsx)(f.m,{text:”Which remote URL should I use?”,type:”label”,direction:”w”,children:(0,i.jsx)(o.A,{muted:!0,href:`${e.helpUrl}/articles/which-remote-url-should-i-use`,children:(0,i.jsx)(p.QuestionIcon,{className:”mr-1″})})})]}),(0,i.jsx)(d.O,{“aria-label”:”Remote URL selector”,className:”LocalTab-module__UnderlineNav–epbgw”,children:B.map(e=>(0,i.jsx)(d.O.Item,{“aria-current”:S===e.protocol?”page”:void 0,”aria-label”:e.ariaLabel,onClick:e.handler,children:e.displayName},e.protocol))}),”http”===S?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{inputId:”clone-with-https”,inputLabel:”Clone with HTTPS url”,url:m}),(0,i.jsx)(“p”,{className:$,children:”Clone using the web URL.”})]}):”ssh”===S?(0,i.jsxs)(i.Fragment,{children:[h&&(0,i.jsxs)(c.A,{className:”mb-2″,variant:”warning”,children:[“You don’t have any public SSH keys in your GitHub account. “,”You can”,” “,(0,i.jsx)(o.A,{inline:!0,href:C,children:”add a new public key”}),”, or try cloning this repository via HTTPS.”]}),(0,i.jsx)(v,{inputId:”clone-with-ssh”,inputLabel:”Clone with SSH url”,url:g}),(0,i.jsx)(“p”,{className:$,children:x?”Use a password-protected SSH certificate.”:y?”Use a password-protected SSH key or certificate.”:”Use a password-protected SSH key.”})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{buttonAriaLabel:”Copy command to clipboard”,inputId:”clone-with-gh-cli”,inputLabel:”Clone with GitHub CLI command”,url:j}),(0,i.jsxs)(“p”,{className:$,children:[“Work fast with our official CLI.”,” “,(0,i.jsx)(o.A,{inline:!0,href:”https://cli.github.com”,target:”_blank”,”aria-label”:”Learn more about the GitHub CLI”,children:”Learn more”})]})]})]}),(0,i.jsx)(u.l,{variant:”inset”,className:”border-top”,children:V.map(e=>”zip”===e.name?(0,i.jsxs)(u.l.LinkItem,{“data-turbo”:”false”,href:e.url,rel:”nofollow”,children:[e.icon&&(0,i.jsx)(u.l.LeadingVisual,{children:(0,i.jsx)(e.icon,{})}),e.text]},e.name):(0,i.jsxs)(u.l.Item,{onSelect:t=>{I(e.name),t.preventDefault(),F(e.url)},children:[e.icon&&(0,i.jsx)(u.l.LeadingVisual,{children:(0,i.jsx)(e.icon,{})}),e.text]},e.name))})]})})}function b({platform:e,href:t}){return(0,i.jsxs)(“div”,{className:(0,g.$)(“p-3″,”LocalTab-module__PlatformContents–rz1GK”),children:[(0,i.jsx)(m.A,{as:”h4″,variant:”small”,className:”mb-3 text-center”,children:`Launching ${e}`}),t&&(0,i.jsxs)(“p”,{className:”mb-3″,children:[“If nothing happens, “,(0,i.jsx)(o.A,{inline:!0,href:t,children:`download ${e}`}),” and try again.”]})]})}function v({buttonAriaLabel:e=”Copy URL to clipboard”,inputId:t,inputLabel:n,url:a}){return(0,i.jsxs)(“div”,{className:(0,g.$)(“d-flex mb-2″,”LocalTab-module__CloneContainer–fne3C”),children:[(0,i.jsx)(“label”,{htmlFor:t,className:”sr-only”,children:n}),(0,i.jsx)(“input”,{id:t,type:”text”,className:”form-control input-monospace input-sm color-bg-subtle”,”data-autoselect”:!0,value:a,readOnly:!0,style:{flexGrow:1}}),(0,i.jsx)(h.T,{className:(0,g.$)(“ml-1 mr-0″,”LocalTab-module__CopyToClipboardButton–G8eJx”),textToCopy:a,ariaLabel:e,tooltipProps:{direction:”nw”}})]})}try{x.displayName||(x.displayName=”LocalTab”)}catch{}try{b.displayName||(b.displayName=”LaunchingPlatformContents”)}catch{}try{v.displayName||(v.displayName=”CloneUrl”)}catch{}},27011:(e,t,n)=>{n.d(t,{JA:()=>Z,YL:()=>Q,qL:()=>em,wI:()=>W,gt:()=>ei,xW:()=>J,wL:()=>et,a_:()=>ee,TV:()=>Y,iY:()=>X,wh:()=>eg,kN:()=>eb,JR:()=>ex,L3:()=>y,yo:()=>j,HZ:()=>ej,$W:()=>ew,jT:()=>ey,QV:()=>eC,or:()=>eL,I8:()=>eS,l0:()=>_,Ud:()=>A,uh:()=>k,Fm:()=>E,qg:()=>R,mU:()=>T,y:()=>ev,GR:()=>G,qX:()=>F,SM:()=>el,ww:()=>w,it:()=>ep,q6:()=>eD,Py:()=>B,j5:()=>C,RH:()=>eE,Fl:()=>en,Lh:()=>V,ne:()=>er,an:()=>eu,rP:()=>ed,_N:()=>ef,ys:()=>eh,pV:()=>eN,mY:()=>O,Yp:()=>L,Kp:()=>D,r$:()=>S,GK:()=>I,zK:()=>U,mF:()=>H,m9:()=>P,E4:()=>N,CQ:()=>eI,WA:()=>ea,WK:()=>eA,xJ:()=>ek,Nk:()=>eT,_W:()=>eo,Qb:()=>ec,BI:()=>es,gW:()=>$,E5:()=>M,Mv:()=>e_,gi:()=>eR});var i=n(68273),a=n(16522),r=n(96540),s=n(70466),l=n(59914),o=n(43645),d=n(82603),c=n(71317),u=n(35311);let m=”UNABLE_TO_GENERATE”,f=”NOT_GENERATED_YET”;var h=n(69599),p=n(18799);let g={baseOid:void 0,headOid:void 0},x=[],b=[],v={threads:x,annotations:b,commentsPreference:p.sI.Visible},y=(0,i.Z6)()?()=>(0,o.n)(eO):()=>(0,o.n)(e=>e.comparisonInfo),j=(0,i.Z6)()?()=>(0,o.n)(eP):()=>(0,o.n)(e=>e.comparisonInfoActions),C=(0,i.Z6)()?()=>(0,o.n)(eF):()=>(0,o.n)(e=>e.isSingleFileMode),w=(0,i.Z6)()?()=>(0,o.n)(e$):()=>(0,o.n)(e=>”FULL”!==e.comparisonInfo.comparisonView),N=(0,i.Z6)()?()=>(0,o.n)(eM):()=>(0,o.n)(e=>e.comparisonInfo.selectedRange||g),S=(0,i.Z6)()?()=>(0,o.n)(eB):()=>(0,o.n)(e=>e.pullRequest.id),L=(0,i.Z6)()?()=>(0,o.n)(eV):()=>(0,o.n)(e=>e.pullRequest),D=(0,i.Z6)()?()=>(0,o.n)(eU):()=>(0,o.n)(e=>e.pullRequest.basePath);(0,i.Z6)()||(()=>(0,o.n)(e=>e.pullRequestActions));let I=(0,i.Z6)()?()=>(0,o.n)(eG):()=>(0,o.n)(e=>e.repository),_=(0,i.Z6)()?()=>(0,o.n)(eH):()=>(0,o.n)(e=>e.diffSummaries),R=(0,i.Z6)()?()=>(0,o.n)(eq):()=>(0,o.n)(e=>Object.values(e.diffSummaries).length??0),A=(0,i.Z6)()?()=>(0,o.n)(ez):()=>(0,o.n)(e=>e.diffSummariesActions);(0,i.Z6)()||(()=>(0,o.n)((0,l.k)(e=>Object.values(e.diffSummaries).map(e=>e.path))));let k=(0,i.Z6)()?()=>{let e,t=(0,a.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=K([eK],eW,s.x),t[0]=e):e=t[0],(0,o.n)(e)}:()=>(0,o.n)(K([e=>e.diffSummaries],e=>Object.values(e),s.x)),E=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.diffSummaries[e],n[0]=e,n[1]=t):t=n[1],(0,o.n)(t)}:e=>(0,o.n)(t=>t.diffSummaries[e]);(0,i.Z6)(),()=>q().hiddenFiles;let T=((0,i.Z6)(),()=>q().filteredDiffSummaries),O=(0,i.Z6)()?()=>(0,o.n)(eZ):()=>(0,o.n)(e=>e.entries),P=(0,i.Z6)()?()=>(0,o.n)(eQ):()=>(0,o.n)(e=>e.selectedPathDigest),F=(0,i.Z6)()?()=>(0,o.n)(eX):()=>(0,o.n)(e=>e.getSelectedPathDigest),$=(0,i.Z6)()?()=>(0,o.n)(eJ):()=>(0,o.n)(e=>e.progressiveDiffsActions.updateSelectedPathDigest),M=(0,i.Z6)()?()=>(0,o.n)(eY):()=>(0,o.n)(e=>e.progressiveDiffsActions.updateSelectedPathDigestAndFetch),B=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>!!e&&t.selectedPathDigest===e,n[0]=e,n[1]=t):t=n[1],(0,o.n)(t)}:e=>(0,o.n)(t=>!!e&&t.selectedPathDigest===e),V=(0,i.Z6)()?()=>(0,o.n)(e0):()=>(0,o.n)(e=>e.markerAndDiffNavigationActions),U=(0,i.Z6)()?()=>(0,o.n)(e1):()=>(0,o.n)(e=>e.markerAndDiffNavigation.commentId);(0,i.Z6)()||(()=>(0,o.n)(e=>e.markerAndDiffNavigation.getCommentId));let G=(0,i.Z6)()?()=>(0,o.n)(e2):()=>(0,o.n)(e=>e.markerAndDiffNavigation.getMarkerId),H=(0,i.Z6)()?()=>(0,o.n)(e3):()=>(0,o.n)(e=>e.markerAndDiffNavigation.markerId),q=(0,i.Z6)()?()=>{let e,t=(0,a.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=K([e4,e5,e6,e7,e8],e9,s.x),t[0]=e):e=t[0],(0,o.n)(e)}:()=>(0,o.n)(K([e=>e.diffSummaries,e=>e.codeowners,e=>e.diffFilter.state,e=>e.diffFilter.filtersInteractedWith,e=>e.changeGroupGeneration.changeGroups],(e,t,n,i,a)=>{let r=new Map,s=[],l=a.find(e=>e.id===n.activeChangeGroupId),o=l?.hunkPositions?new Set(Object.keys(l.hunkPositions)):void 0;for(let i of Object.values(e)){let e=(0,d.hG)({diffPath:i.path,codeownersData:t}).isOwnedByViewer;z(i,n,e,o)?(s.push(i),r.set(i.path,!1)):r.set(i.path,!0)}if(i){let e=s.length,t=`${e} file${1===e?””:”s”} remain${1===e?”s”:””}`;(0,c.k)(t,150)}return{hiddenFiles:r,filteredDiffSummaries:s}},s.x));function z(e,t,n,i){return(!i||!!i.has(e.path))&&e.path.toLowerCase().includes(t.filterText.toLowerCase())&&!t.unselectedFileExtensions.has((0,u.QC)(e.path))&&(t.showDeletedFiles||”REMOVED”!==e.changeType&&”DELETED”!==e.changeType)&&(!t.showOnlyManifestFiles||!!e.isManifestFile)&&(!t.showOnlyOwnedFiles||n)&&(t.showViewedFiles||!e.markedAsViewed)&&(t.showVendoredFiles||!e.isVendored)}function K(e,t,n){let i,a;return r=>{let s=e.map(e=>e(r));if(i&&n(s,i))return a;let l=t(…s);return i=s,a=l,l}}let W=(0,i.Z6)()?()=>(0,o.n)((0,l.k)(tn)):()=>(0,o.n)((0,l.k)(e=>Object.values(e.markers||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??b)))),Z=(0,i.Z6)()?()=>(0,o.n)(ti):()=>(0,o.n)(e=>{let t=e.diffFilter.state.activeChangeGroupId;if(t)return e.changeGroupGeneration.changeGroups.find(e=>e.id===t)}),Q=(0,i.Z6)()?()=>(0,o.n)(ta):()=>(0,o.n)(e=>e.diffFilter.state.activeChangeGroupId),X=(0,i.Z6)()?()=>(0,o.n)(tr):()=>(0,o.n)(e=>e.changeGroupGeneration.changeGroups),J=(0,i.Z6)()?()=>(0,o.n)(ts):()=>(0,o.n)(e=>e.changeGroupGeneration),Y=(0,i.Z6)()?()=>(0,o.n)(tl):()=>(0,o.n)(e=>e.changeGroupGeneration.unavailableReason?e.changeGroupGeneration.unavailableReason:e.changeGroupGeneration.changeGroups.length<1&&!e.changeGroupGeneration.latestChangeGroupOrchestration?(0,h.G7)("hide_groups_list_for_few_groups")?f:m:null),ee=(0,i.Z6)()?()=>(0,o.n)(to):()=>(0,o.n)(e=>e.changeGroupGeneration.changeGroupGenerationChannel),et=(0,i.Z6)()?()=>(0,o.n)(td):()=>(0,o.n)(e=>e.changeGroupGenerationActions),en=(0,i.Z6)()?()=>(0,o.n)(tc):()=>(0,o.n)(e=>e.changeGroupGeneration.latestChangeGroupOrchestration),ei=(0,i.Z6)()?()=>(0,o.n)(tu):()=>(0,o.n)(e=>e.changeGroupGeneration.canAccessChangeGroups),ea=(0,i.Z6)()?()=>(0,o.n)(tm):()=>(0,o.n)(e=>e.showChangeGroupPreference),er=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.markers?.[e],n[0]=e,n[1]=t):t=n[1],(0,o.n)((0,l.k)(t))}:e=>(0,o.n)((0,l.k)(t=>t.markers?.[e])),es=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>{let n=Object.values(t.markers||{}).flatMap(th),i=[];if(!e)return n;for(let t of e)if(n){for(let e of n)if(Number(e.id)===t){i.push(e);break}}return i},n[0]=e,n[1]=t):t=n[1],(0,o.n)((0,l.k)(t))}:e=>(0,o.n)((0,l.k)(t=>{let n=Object.values(t.markers||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??x)),i=[];if(!e)return n;for(let t of e)if(n){for(let e of n)if(Number(e.id)===t){i.push(e);break}}return i})),el=(0,i.Z6)()?()=>(0,o.n)(tp):()=>(0,o.n)(e=>e.getThread),eo=(0,i.Z6)()?(e,t,n)=>{let i,r=(0,a.c)(4);return r[0]!==t||r[1]!==n||r[2]!==e?(i=i=>i.markers?.[t]?.[n]?.threads.find(t=>t.id===e),r[0]=t,r[1]=n,r[2]=e,r[3]=i):i=r[3],(0,o.n)(i)}:(e,t,n)=>(0,o.n)(i=>i.markers?.[t]?.[n]?.threads.find(t=>t.id===e)),ed=(0,i.Z6)()?(e,t)=>{let n,i=(0,a.c)(3);return i[0]!==e||i[1]!==t?(n=K([n=>n.markers?.[e]?.[t],tg],tx,s.x),i[0]=e,i[1]=t,i[2]=n):n=i[2],(0,o.n)(n)}:(e,t)=>(0,o.n)(K([n=>n.markers?.[e]?.[t],e=>e.commentsPreference],(e,t)=>{let n=e?.threads??x,i=e?.annotations??b;return n.length||i.length?{threads:n,annotations:i,commentsPreference:t}:v},s.x)),ec=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>{let n=Object.values(t.markers||{}).flatMap(tv).filter(t=>t&&(!e||e.includes(parseInt(t.id))));return n?n.filter(ty).reduce(tj,0):0},n[0]=e,n[1]=t):t=n[1],(0,o.n)(t)}:e=>(0,o.n)(t=>{let n=Object.values(t.markers||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??x)).filter(t=>t&&(!e||e.includes(parseInt(t.id))));return n?n.filter(e=>!e.isResolved&&!e.positioning?.isOutdated).reduce((e,t)=>e+(t.commentsData?.comments?.length??0),0):0}),eu=(0,i.Z6)()?()=>(0,o.n)(tC):()=>(0,o.n)(e=>e.markersActions),em=(0,i.Z6)()?()=>(0,o.n)(tw):()=>(0,o.n)(e=>e.markers),ef=(0,i.Z6)()?()=>(0,o.n)(tN):()=>(0,o.n)(e=>e.pendingReviewActions),eh=(0,i.Z6)()?()=>(0,o.n)(tS):()=>(0,o.n)(e=>e.pendingReview),ep=(0,i.Z6)()?()=>(0,o.n)(tL):()=>(0,o.n)(e=>(e.pendingReview?.pendingReviewIDs?.length??0)>0),eg=(0,i.Z6)()?()=>(0,o.n)(tD):()=>(0,o.n)(e=>e.codeownersActions),ex=(0,i.Z6)()?()=>(0,o.n)(tI):()=>(0,o.n)(e=>e.filesCollapsedStatusActions),eb=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.collapsedFilesMap?.[e]??!1,n[0]=e,n[1]=t):t=n[1],(0,o.n)(t)}:e=>(0,o.n)(t=>t.collapsedFilesMap?.[e]??!1),ev=(0,i.Z6)()?()=>(0,o.n)(t_):()=>(0,o.n)(e=>e.getCollapsedDiffStatus),ey=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.diffEntries?.[e]??null,n[0]=e,n[1]=t):t=n[1],(0,o.n)(t)}:e=>(0,o.n)(t=>t.diffEntries?.[e]??null),ej=(0,i.Z6)()?()=>(0,o.n)(tR):()=>(0,o.n)(e=>e.diffEntries);(0,i.Z6)()||(()=>(0,o.n)(e=>Object.keys(e.diffEntries).length));let eC=(0,i.Z6)()?()=>(0,o.n)(tA):()=>(0,o.n)(e=>e.diffEntriesActions),ew=(0,i.Z6)()?e=>{let t,n,i=(0,a.c)(4);i[0]!==e?(t=new Set(e.map(tk)),i[0]=e,i[1]=t):t=i[1];let r=t;return i[2]!==r?(n=e=>e.entries.filter(e=>r.has(e.path)),i[2]=r,i[3]=n):n=i[3],(0,o.n)((0,l.k)(n))}:e=>{let t=(0,r.useMemo)(()=>new Set(e.map(e=>e.path)),[e]);return(0,o.n)((0,l.k)(e=>e.entries.filter(e=>t.has(e.path))))},eN=(0,i.Z6)()?()=>(0,o.n)(tE):()=>(0,o.n)(e=>e.progressiveDiffsActions),eS=(0,i.Z6)()?()=>(0,o.n)(tT):()=>(0,o.n)(e=>e.diffFilter.state),eL=(0,i.Z6)()?()=>(0,o.n)(tO):()=>(0,o.n)(e=>e.diffFilterActions),eD=(0,i.Z6)()?()=>(0,o.n)(tP):()=>(0,o.n)(e=>{let t=e.diffFilter.state;return t.filterText.length>0||t.unselectedFileExtensions.size>0||!0===t.showOnlyOwnedFiles||!1===t.showDeletedFiles||!0===t.showOnlyManifestFiles||!1===t.showVendoredFiles||!1===t.showViewedFiles}),eI=(0,i.Z6)()?()=>(0,o.n)(tF):()=>(0,o.n)(e=>e.settingsActions),e_=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.summariesViewedStatus?.[e]??!1,n[0]=e,n[1]=t):t=n[1],(0,o.n)(t)}:e=>(0,o.n)(t=>t.summariesViewedStatus?.[e]??!1),eR=(0,i.Z6)()?()=>(0,o.n)(t$):()=>(0,o.n)(e=>e.summariesViewedCount),eA=(0,i.Z6)()?()=>(0,o.n)(tM):()=>(0,o.n)(e=>e.suggestionBatch),ek=(0,i.Z6)()?()=>(0,o.n)(tB):()=>(0,o.n)(e=>e.suggestionBatchActions),eE=(0,i.Z6)()?()=>(0,o.n)(tV):()=>(0,o.n)(e=>e.suggestionBatch.isSuggestionBatchPending),eT=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>t.suggestionBatch.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex),n[0]=e,n[1]=t):t=n[1],(0,o.n)(t)}:e=>(0,o.n)(t=>t.suggestionBatch.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex));function eO(e){return e.comparisonInfo}function eP(e){return e.comparisonInfoActions}function eF(e){return e.isSingleFileMode}function e$(e){return”FULL”!==e.comparisonInfo.comparisonView}function eM(e){return e.comparisonInfo.selectedRange||g}function eB(e){return e.pullRequest.id}function eV(e){return e.pullRequest}function eU(e){return e.pullRequest.basePath}function eG(e){return e.repository}function eH(e){return e.diffSummaries}function eq(e){return Object.values(e.diffSummaries).length??0}function ez(e){return e.diffSummariesActions}function eK(e){return e.diffSummaries}function eW(e){return Object.values(e)}function eZ(e){return e.entries}function eQ(e){return e.selectedPathDigest}function eX(e){return e.getSelectedPathDigest}function eJ(e){return e.progressiveDiffsActions.updateSelectedPathDigest}function eY(e){return e.progressiveDiffsActions.updateSelectedPathDigestAndFetch}function e0(e){return e.markerAndDiffNavigationActions}function e1(e){return e.markerAndDiffNavigation.commentId}function e2(e){return e.markerAndDiffNavigation.getMarkerId}function e3(e){return e.markerAndDiffNavigation.markerId}function e4(e){return e.diffSummaries}function e5(e){return e.codeowners}function e6(e){return e.diffFilter.state}function e7(e){return e.diffFilter.filtersInteractedWith}function e8(e){return e.changeGroupGeneration.changeGroups}function e9(e,t,n,i,a){let r=new Map,s=[],l=a.find(e=>e.id===n.activeChangeGroupId),o=l?.hunkPositions?new Set(Object.keys(l.hunkPositions)):void 0;for(let i of Object.values(e)){let e=(0,d.hG)({diffPath:i.path,codeownersData:t}).isOwnedByViewer;z(i,n,e,o)?(s.push(i),r.set(i.path,!1)):r.set(i.path,!0)}if(i){let e=s.length,t=`${e} file${1===e?””:”s”} remain${1===e?”s”:””}`;(0,c.k)(t,150)}return{hiddenFiles:r,filteredDiffSummaries:s}}function te(e){return e?.annotations??b}function tt(e){return Object.values(e).flatMap(te)}function tn(e){return Object.values(e.markers||{}).flatMap(tt)}function ti(e){let t=e.diffFilter.state.activeChangeGroupId;if(t)return e.changeGroupGeneration.changeGroups.find(e=>e.id===t)}function ta(e){return e.diffFilter.state.activeChangeGroupId}function tr(e){return e.changeGroupGeneration.changeGroups}function ts(e){return e.changeGroupGeneration}function tl(e){return e.changeGroupGeneration.unavailableReason?e.changeGroupGeneration.unavailableReason:e.changeGroupGeneration.changeGroups.length<1&&!e.changeGroupGeneration.latestChangeGroupOrchestration?(0,h.G7)("hide_groups_list_for_few_groups")?f:m:null}function to(e){return e.changeGroupGeneration.changeGroupGenerationChannel}function td(e){return e.changeGroupGenerationActions}function tc(e){return e.changeGroupGeneration.latestChangeGroupOrchestration}function tu(e){return e.changeGroupGeneration.canAccessChangeGroups}function tm(e){return e.showChangeGroupPreference}function tf(e){return e?.threads??x}function th(e){return Object.values(e).flatMap(tf)}function tp(e){return e.getThread}function tg(e){return e.commentsPreference}function tx(e,t){let n=e?.threads??x,i=e?.annotations??b;return n.length||i.length?{threads:n,annotations:i,commentsPreference:t}:v}function tb(e){return e?.threads??x}function tv(e){return Object.values(e).flatMap(tb)}function ty(e){return!e.isResolved&&!e.positioning?.isOutdated}function tj(e,t){return e+(t.commentsData?.comments?.length??0)}function tC(e){return e.markersActions}function tw(e){return e.markers}function tN(e){return e.pendingReviewActions}function tS(e){return e.pendingReview}function tL(e){return(e.pendingReview?.pendingReviewIDs?.length??0)>0}function tD(e){return e.codeownersActions}function tI(e){return e.filesCollapsedStatusActions}function t_(e){return e.getCollapsedDiffStatus}function tR(e){return e.diffEntries}function tA(e){return e.diffEntriesActions}function tk(e){return e.path}function tE(e){return e.progressiveDiffsActions}function tT(e){return e.diffFilter.state}function tO(e){return e.diffFilterActions}function tP(e){let t=e.diffFilter.state;return t.filterText.length>0||t.unselectedFileExtensions.size>0||!0===t.showOnlyOwnedFiles||!1===t.showDeletedFiles||!0===t.showOnlyManifestFiles||!1===t.showVendoredFiles||!1===t.showViewedFiles}function tF(e){return e.settingsActions}function t$(e){return e.summariesViewedCount}function tM(e){return e.suggestionBatch}function tB(e){return e.suggestionBatchActions}function tV(e){return e.suggestionBatch.isSuggestionBatchPending}},27913:(e,t,n)=>{n.d(t,{oO:()=>rY,Ao:()=>rJ,Yf:()=>E.Yf});var i=n(74848),a=n(68273),r=n(16522),s=n(90047),l=n(96540),o=n(36729),d=n(77430),c=n(38621),u=n(81960),m=n(26108),f=n(53627);function h(e,t=”r”){(0,f.Zu)(`#${t}${e}`)}var p=n(91835),g=n(71315),x=n(83494),b=n(34164),v=n(50625),y=n(93642);let j=”AddCommentEditor-module__AddCommentEditor–JFfip”,C=”AddCommentEditor-module__ConversationCommentBox–Q4U7y”,w=”AddCommentEditor-module__hideMarkdownFooter–sfStq”,N=”AddCommentEditor-module__showMarkdownFooter–ZyiXk”,S=”AddCommentEditor-module__isReplying–DYCp6″,L=”AddCommentEditor-module__condensed–cPcHQ”;var D=n(70109),I=n(27011),_=n(71323),R=n(97283),A=n(87134),k=n(36472),E=n(3038),T=n(51391),O=n(13814);let P=(0,l.createContext)(null),F=(0,a.GV)()?function(e){let t=(0,l.useContext)(P);if(!t)throw Error(“Missing DiffStoreProvider in the tree”);return(0,_.P)(t,e)}:function(e){let t=(0,l.useContext)(P);if(!t)throw Error(“Missing DiffStoreProvider in the tree”);return(0,_.P)(t,e)},$=({children:e,…t})=>{let n=(0,l.useRef)(null),a=(0,l.useRef)(t.diffLines),r=(0,l.useRef)(t.isSplitView),s=(0,l.useRef)(t.hiddenFeatures);return n.current||(n.current=M(t)),(0,l.useEffect)(()=>{n.current&&a.current.length!==t.diffLines.length&&(n.current.getState().diffLinesSliceUpdates.updateDiffLinesHash(t.diffLines),a.current=t.diffLines)},[t,t.diffLines]),(0,l.useEffect)(()=>{n.current&&r.current!==t.isSplitView&&(n.current.getState().diffLinesSliceUpdates.updateDiffView(t.isSplitView),r.current=t.isSplitView)},[t,t.isSplitView]),(0,l.useEffect)(()=>{n.current&&!function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(s.current,t.hiddenFeatures)&&(n.current.setState({hiddenFeatures:t.hiddenFeatures}),s.current=t.hiddenFeatures)},[t,t.hiddenFeatures]),(0,i.jsx)(P.Provider,{value:n.current,children:e})},M=e=>(0,R.y)()((0,A.lt)((…t)=>({…(e=>({dialogMode:{activeGridCellId:null},dialogModeActions:{enableDialogMode:t=>e(()=>({dialogMode:{activeGridCellId:t}}),void 0,”dialogMode#enabled”),disableDialogMode:()=>e(()=>({dialogMode:{activeGridCellId:null}}),void 0,”dialogMode#disabled”)}}))(…t),…(({diffAnchor:e,path:t,diffLines:n,fileLineCount:i,isSplitView:a})=>(r,s)=>{let l=n.reduce((e,t)=>(e[(0,T.bo)(t)]=t,e),{}),{selectedLineKeys:o,selectedLineRange:d,startOrientation:c}=(0,T.EV)({diffAnchor:e,diffLines:n,isSplitView:a,lineRange:(0,T.KV)(e)}),u=(0,T.Aj)(o),m=(0,T.sB)(o),f=n.reduce((e,t)=>{let n=(0,T.bo)(t);return o.has((0,T.bo)(t))&&(e[n]={isSelected:!0,isFirstSelected:u===n,isLastSelected:m===n}),e},{}),h=null;if(u){let e=l[u];if(e&&c){let t=”left”===c?e.left:e.right;t&&(h={lineNumber:t,orientation:c,shouldStartConversation:!1,lineKey:(0,T.bo)(e)})}}return{diffLines:{diffAnchor:e,_diffLines:n,_diffLinesHash:l,selectedLinesInfo:f,fileLineCount:i,firstLineSelectionOnDrag:h,_firstSelectedLineInfo:h?{lineKey:h.lineKey,lineNumber:h.lineNumber,orientation:h.orientation}:null,getDiffLinesInfo:()=>s().diffLines._diffLines,getSplitDiffLinesFromLineRange:e=>{let t=(0,E.Mk)(s().diffLines._diffLines),n=t.leftLines,i=t.rightLines;return(0,k.A)({selectedLineRange:e,leftLines:n,rightLines:i})},getSelectedDiffLines:()=>{let e=[];for(let t of s().diffLines.selectedLineKeys){let n=s().diffLines._diffLinesHash[t];n&&e.push(n)}return e},getfirstLineSelectionOnDrag:()=>s().diffLines.firstLineSelectionOnDrag,getSelectedLineRange:()=>s().diffLines.selectedLineRange,hasSelectedLines:()=>s().diffLines.selectedLineKeys.size>0,isSplitView:a,selectedLineKeys:o,selectedLineRange:d},diffLinesSliceUpdates:{updateDiffLinesHash:e=>{let t=e.reduce((e,t)=>(e[(0,T.bo)(t)]=t,e),{});r(n=>({diffLines:{…n.diffLines,_diffLines:e,_diffLinesHash:t}}),void 0,”updateDiffLines”)},updateDiffView:e=>r(t=>({diffLines:{…t.diffLines,isSplitView:e}}),void 0,”update diff view settings”)},diffLinesActions:{clearFirstLineSelectionOnDrag:()=>r(e=>({diffLines:{…e.diffLines,firstLineSelectionOnDrag:null}}),void 0,”clearFirstLineSelectionOnDrag”),addLineToSelection:({lineKey:n,orientation:i},a)=>{let l;if(!n)return;let o=s().diffLines._diffLinesHash[n];if(!o)return;let d=s().diffLines.firstLineSelectionOnDrag,c=s().diffLines._firstSelectedLineInfo,u=s().diffLines.selectedLineRange;if(d&&n===d.lineKey||!u){let e=”right”===i?o.right:o.left;if(!e)return;s().diffLinesActions.selectLine({lineKey:n,firstLineSelectionOnDrag:{lineNumber:e,orientation:i,lineKey:n,shouldStartConversation:!1}},a);return}if(!c)return;let m=s().diffLines._diffLinesHash[c.lineKey];l=(0,T.M6)({current:o,currentOrientation:i,previous:m,previousOrientation:c.orientation})?{…u,startLineNumber:(“left”===i?o?.left:o?.right)??-1,startOrientation:i,endLineNumber:c.lineNumber,endOrientation:c.orientation}:{…u,startLineNumber:c.lineNumber,startOrientation:c.orientation,endLineNumber:(“left”===i?o?.left:o?.right)??-1,endOrientation:i};let{selectedLineKeys:f,selectedLineRange:h}=(0,T.EV)({diffAnchor:e,diffLines:s().diffLines._diffLines,isSplitView:s().diffLines.isSplitView,lineRange:l}),p=(0,T.Aj)(f),x=(0,T.sB)(f),b=Array.from(f).reduce((e,t)=>(e[t]={isFirstSelected:t===p,isLastSelected:t===x,isSelected:!0},e),{});if(!h?.endLineNumber||!h?.startLineNumber)return;let v=new O.J(h,t);g.cg?.dispatchEvent(v),r(e=>({diffLines:{…e.diffLines,selectedLineKeys:f,selectedLinesInfo:b,selectedLineRange:h}}),void 0,”addLineToSelection”),a(h)},clearSelectedLines:()=>{r(e=>({diffLines:{…e.diffLines,firstLineSelectionOnDrag:null,selectedLineKeys:new Set([]),selectedLinesInfo:{},selectedLineRange:void 0,_firstSelectedLineInfo:null}}),void 0,”clearSelectedLines”)},selectLine:({lineKey:e,firstLineSelectionOnDrag:n},i)=>{if(!e)return;s().diffLinesActions.clearSelectedLines();let a=s().diffLines._diffLinesHash[e];if(!a)return;let l={[e]:{isFirstSelected:!0,isLastSelected:!0,isSelected:!0}},o=”left”===n.orientation?a.left:a.right;if(!o)return;let d={diffAnchor:s().diffLines.diffAnchor,endLineNumber:o,endOrientation:n.orientation,startLineNumber:o,startOrientation:n.orientation},c=new O.J(d,t);g.cg?.dispatchEvent(c),r(t=>({diffLines:{…t.diffLines,firstLineSelectionOnDrag:{…n,lineKey:e},selectedLineKeys:new Set([e]),selectedLinesInfo:l,selectedLineRange:d,_firstSelectedLineInfo:{lineKey:e,lineNumber:n.lineNumber,orientation:n.orientation}}}),void 0,”selectLine”),i(d)},selectMultipleLines:({startLineKey:n,endLineKey:i,startOrientation:a,endOrientation:l,firstLineSelectionOnDrag:o},d)=>{if(!n||!i||!o)return;let c=s().diffLines._diffLinesHash[n],u=s().diffLines._diffLinesHash[i];if(!c||!u||!c.left&&!c.right||!u.left&&!u.right)return;let m={diffAnchor:e,endLineNumber:(“right”===l?u.right:u.left)??-1,endOrientation:l,startLineNumber:(“right”===a?c.right:c.left)??-1,startOrientation:a},{selectedLineKeys:f,selectedLineRange:h}=(0,T.EV)({diffAnchor:e,diffLines:s().diffLines._diffLines,isSplitView:s().diffLines.isSplitView,lineRange:m}),p=(0,T.Aj)(f),x=(0,T.sB)(f),b=Array.from(f).reduce((e,t)=>(e[t]={isFirstSelected:t===p,isLastSelected:t===x,isSelected:!0},e),{});if(!h?.endLineNumber||!h?.startLineNumber)return;let v=new O.J(h,t);g.cg?.dispatchEvent(v),r(e=>({diffLines:{…e.diffLines,selectedLinesInfo:b,selectedLineKeys:f,firstLineSelectionOnDrag:o,selectedLineRange:h,_firstSelectedLineInfo:{lineNumber:o.lineNumber,orientation:o.orientation,lineKey:o.lineKey}}}),void 0,”selectMultipleLines”),d(h)}}}})(e)(…t),…(({hiddenFeatures:e})=>()=>({hiddenFeatures:e}))(e)(…t),…(({addInjectedContextLines:e})=>()=>({injectedContextLinesActions:{addInjectedContextLines:e}}))(e)(…t),…(({startNewConversationForLineOrFileMap:e})=>(t,n)=>({startNewConversationForLineOrFileMap:e,getMoveNewCommentDataForLine:e=>n().startNewConversationForLineOrFileMap[e],addStartNewCommentOnLine:(t,n,i)=>{e[t]={diffLineKey:i,startNewComment:n}}}))(e)(…t),…(({newTreeEntry:e,oldTreeEntry:t})=>()=>({treeEntries:{newTreeEntry:e,oldTreeEntry:t}}))(e)(…t)}),{name:`diff-store-${e.diffAnchor}`}));try{P.displayName||(P.displayName=”DiffStoreContext”)}catch{}try{$.displayName||($.displayName=”DiffStoreProvider”)}catch{}let B=(0,a.GV)()?()=>F(ea):()=>F(e=>e.diffLines.getSplitDiffLinesFromLineRange),V=(0,a.GV)()?()=>F(er):()=>F(e=>e.diffLines.getSelectedDiffLines),U=(0,a.GV)()?()=>F(es):()=>F(e=>e.diffLines.getDiffLinesInfo),G=(0,a.GV)()?()=>F(el):()=>F(e=>e.diffLines.getfirstLineSelectionOnDrag),H=(0,a.GV)()?()=>F(eo):()=>F(e=>e.diffLines.getSelectedLineRange),q=(0,a.GV)()?()=>F(ed):()=>F(e=>e.diffLines.hasSelectedLines),z=(0,a.GV)()?()=>F(ec):()=>F(e=>e.hiddenFeatures),K=(0,a.GV)()?e=>{let t,n=(0,r.c)(2);return n[0]!==e?(t=t=>!!e&&t.dialogMode.activeGridCellId===e,n[0]=e,n[1]=t):t=n[1],F(t)}:e=>F(t=>!!e&&t.dialogMode.activeGridCellId===e),W=(0,a.GV)()?()=>F(eu):()=>F(e=>e.dialogModeActions),Z=(0,a.GV)()?()=>F(em):()=>F(e=>e.diffLines.diffAnchor),Q=(0,a.GV)()?()=>F(ef):()=>F(e=>e.diffLines.fileLineCount),X={isSelected:!1,isFirstSelected:!1,isLastSelected:!1},J=(0,a.GV)()?e=>{let t,n=(0,r.c)(2);return n[0]!==e?(t=t=>e&&t.diffLines.selectedLinesInfo[(0,T.bo)(e)]||X,n[0]=e,n[1]=t):t=n[1],F(t)}:e=>F(t=>e&&t.diffLines.selectedLinesInfo[(0,T.bo)(e)]||X),Y=(0,a.GV)()?()=>F(eh):()=>F(e=>e.diffLinesActions),ee=(0,a.GV)()?()=>F(ep):()=>F(e=>e.injectedContextLinesActions),et=(0,a.GV)()?()=>F(eg):()=>F(e=>e.treeEntries),en=(0,a.GV)()?()=>F(ex):()=>F(e=>e.getMoveNewCommentDataForLine),ei=(0,a.GV)()?()=>F(eb):()=>F(e=>e.addStartNewCommentOnLine);function ea(e){return e.diffLines.getSplitDiffLinesFromLineRange}function er(e){return e.diffLines.getSelectedDiffLines}function es(e){return e.diffLines.getDiffLinesInfo}function el(e){return e.diffLines.getfirstLineSelectionOnDrag}function eo(e){return e.diffLines.getSelectedLineRange}function ed(e){return e.diffLines.hasSelectedLines}function ec(e){return e.hiddenFeatures}function eu(e){return e.dialogModeActions}function em(e){return e.diffLines.diffAnchor}function ef(e){return e.diffLines.fileLineCount}function eh(e){return e.diffLinesActions}function ep(e){return e.injectedContextLinesActions}function eg(e){return e.treeEntries}function ex(e){return e.getMoveNewCommentDataForLine}function eb(e){return e.addStartNewCommentOnLine}var ev=n(61583),ey=n(4559);function ej(){(0,ey.i)(“Selection Cleared”)}function eC({diffAnchor:e,endLineNumber:t,endOrientation:n,startLineNumber:i,startOrientation:a}){if(i&&t){var r;(0,ev.i8)({diffAnchor:e,endLineNumber:t,endOrientation:n,startLineNumber:i,startOrientation:a}),(r={diffAnchor:e,endLineNumber:t,endOrientation:n,startLineNumber:i,startOrientation:a}).startLineNumber===r.endLineNumber&&r.startOrientation===r.endOrientation?(0,ey.i)(`${“left”===r.startOrientation?”L”:”R”}${r.startLineNumber} selected.`):(0,ey.i)(`${“left”===r.startOrientation?”L”:”R”}${r.startLineNumber} to ${“left”===r.endOrientation?”L”:”R”}${r.endLineNumber} selected.`)}}var ew=n(3252),eN=n(71317);let eS=”comment”,eL=”review”,eD=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f,h,_,R,A,k,E,T,O,P,F,$=(0,r.c)(78),{batchingEnabled:M,condensed:B,fileLevelComment:V,filePath:U,focusOnMount:G,isReplying:H,lineNumber:q,onAddComment:z,onCancelComment:K,onPersistedCommentExists:W,quotedText:Z,side:Q,startLineNumber:X,threadId:J,suggestedChangesConfig:ee,commentLineChangeConfig:et}=e,en=void 0===Z?””:Z,[ei,ea]=(0,l.useState)(en),[er,es]=(0,l.useState)(null),el=(0,l.useRef)(en),[eo,ed]=(0,l.useState)(),ec=(0,l.useRef)(null),eu=(0,l.useRef)(null),em=(0,I.it)(),ef=(0,l.useRef)(void 0),{selectMultipleLines:eh,clearSelectedLines:ep}=Y();$[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=e=>{(0,eN.k)(e??””,100),ed(e)},$[0]=t):t=$[0];let eg=t,ex=null!==er,eb=(0,I.Kp)(),{persistCommentToStorage:ev,removePersistedCommentFromStorage:ey,persistCommentOnGivenLineToStorage:ej}=(0,v.L)({diffSide:Q,filePath:U,line:q,subjectId:eb,threadId:J,handlePersistedCommentExists:e=>{let{text:t,shouldFocus:n,startLine:i,startSide:a,startLineKey:r,endLineKey:s}=e;if(t){if(ea(t),n&&ec.current&&(ec.current.focus(),ec.current.moveCursorToEnd(),eD({text:t,startLine:i,startSide:a,startLineKey:r,endLineKey:s}),i)){let e=”LEFT”===Q?”left”:”right”;eh({endLineKey:s,endOrientation:e,startLineKey:r,startOrientation:e,firstLineSelectionOnDrag:{lineKey:r??”b:0-l:0-r:0″,lineNumber:q??0,orientation:e,shouldStartConversation:!1}},eC)}W?.()}},fileLevelComment:!!V}),eD=ev;if($[1]!==en?(n=()=>{en!==el.current&&(el.current=en,ea(en))},a=[en],$[1]=en,$[2]=n,$[3]=a):(n=$[2],a=$[3]),(0,l.useEffect)(n,a),$[4]!==ep||$[5]!==et||$[6]!==ei||$[7]!==U||$[8]!==q||$[9]!==K||$[10]!==ej||$[11]!==ey||$[12]!==eh||$[13]!==Q?(s=()=>{if(et){if(null!==(0,ew.T)(ei))return void et.setErrorMessage(“Changing the line number of a comment with a suggested change is not supported.”);if(et.closeLineMovingDialog(),ej({text:ei,givenLineDiffSide:et.diffSide,givenFilePath:U,givenLine:et.endLineNumber,shouldBeFileLevelComment:et.isFileLevelComment,startLine:et.startLineNumber,startLineKey:et.startDiffLineKey,endLineKey:et.endDiffLineKey}),ey(),q!==et.endLineNumber||et.isFileLevelComment)et.startConversationOnNewLine(),K?.(!1);else if(et.endDiffLineKey&&et.startDiffLineKey&&ef.current!==et){ef.current=et;let e=”LEFT”===Q?”left”:”right”;eh({endLineKey:et.endDiffLineKey,endOrientation:e,startLineKey:et.startDiffLineKey,startOrientation:e,firstLineSelectionOnDrag:{lineKey:et.startDiffLineKey??”b:0-l:0-r:0″,lineNumber:q??0,orientation:e,shouldStartConversation:!1}},eC)}else et.startDiffLineKey||ep()}},o=[ep,et,ei,U,q,K,ej,ey,eh,Q],$[4]=ep,$[5]=et,$[6]=ei,$[7]=U,$[8]=q,$[9]=K,$[10]=ej,$[11]=ey,$[12]=eh,$[13]=Q,$[14]=s,$[15]=o):(s=$[14],o=$[15]),(0,l.useEffect)(s,o),$[16]!==G?(c=()=>{if(G){let e=setTimeout(()=>{if(g.XC&&g.cg){if(eu.current){let e=eu.current,t=e.getBoundingClientRect(),n=g.XC?.documentElement.clientHeight||0;if(!(t.top>=0&&t.bottom<=(g.cg?.innerHeight||n))){let i=t.top,a=g.XC?.documentElement.getBoundingClientRect().top||0,r=.6666666666666666*e.clientHeight;g.cg?.scrollTo({top:i-a-.6666666666666666*n+r,behavior:"smooth"})}}ec.current&&(ec.current.focus(),ec.current.moveCursorToEnd())}},100);return()=>{window.clearTimeout(e)}}},d=[G],$[16]=G,$[17]=d,$[18]=c):(d=$[17],c=$[18]),(0,l.useEffect)(c,d),$[19]!==ei||$[20]!==ex||$[21]!==z||$[22]!==K||$[23]!==ey||$[24]!==ee?.sourceContentFromDiffLines){let e,t=e=>{let{submitBatch:t,action:n}=e,i=”Failed to save comment”;if(ex)return;if(!ei.trim())return void eg(`${i}: Body can’t be blank`);es(n),ed(void 0),eg(void 0);let a=(0,y.u)(ei,ee?.sourceContentFromDiffLines??””);if(!a.isValid){eg(a.errorMessage),ed(a.errorMessage),es(null);return}z?.({commentText:ei,onCompleted(){es(null),u()},onError(e){es(null),e.message&&(i=`${i}: ${e.message}`),eg(i)},submitBatch:t})};m=()=>{t({submitBatch:!1,action:eL})},f=()=>{t({submitBatch:!0,action:eS})},$[28]!==K||$[29]!==ey?(e=()=>{ey(),ea(“”),K?.()},$[28]=K,$[29]=ey,$[30]=e):e=$[30],u=e,$[19]=ei,$[20]=ex,$[21]=z,$[22]=K,$[23]=ey,$[24]=ee?.sourceContentFromDiffLines,$[25]=u,$[26]=m,$[27]=f}else u=$[25],m=$[26],f=$[27];$[31]!==eD||$[32]!==Q||$[33]!==X?(h=e=>{eg(void 0),eD({text:e,startLine:X,startSide:X?Q:void 0}),ea(e)},$[31]=eD,$[32]=Q,$[33]=X,$[34]=h):h=$[34];let eI=h;$[35]!==f?(_={“pull-requests-conversations:submit-comment-and-review”:f},$[35]=f,$[36]=_):_=$[36],$[37]!==u||$[38]!==ei?(R=e=>{“Escape”!==e.key||ei.trim()?e.stopPropagation():(e.preventDefault(),u())},$[37]=u,$[38]=ei,$[39]=R):R=$[39];let e_=M?m:f,eR=B||H?w:N,eA=H&&S,ek=B&&L;return $[40]!==eR||$[41]!==eA||$[42]!==ek?(A=(0,b.$)(C,eR,eA,ek),$[40]=eR,$[41]=eA,$[42]=ek,$[43]=A):A=$[43],$[44]!==u||$[45]!==K?(k=K&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”default”,onClick:u,children:”Cancel”}),$[44]=u,$[45]=K,$[46]=k):k=$[46],$[47]!==M||$[48]!==em||$[49]!==f||$[50]!==H||$[51]!==er?(E=!em&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:M?”default”:”primary”,onClick:f,ref:eu,loading:er===eS,children:H?”Reply”:”Comment”}),$[47]=M,$[48]=em,$[49]=f,$[50]=H,$[51]=er,$[52]=E):E=$[52],$[53]!==M||$[54]!==em||$[55]!==m||$[56]!==er?(T=M&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”primary”,onClick:m,loading:er===eL,children:em?”Add review comment”:”Start a review”}),$[53]=M,$[54]=em,$[55]=m,$[56]=er,$[57]=T):T=$[57],$[58]!==ei||$[59]!==eo||$[60]!==U||$[61]!==eI||$[62]!==ex||$[63]!==q||$[64]!==X||$[65]!==ee||$[66]!==e_||$[67]!==A||$[68]!==k||$[69]!==E||$[70]!==T?(O=(0,i.jsxs)(D.S,{ref:ec,label:”Add diff comment”,value:ei,onChange:eI,onPrimaryAction:e_,suggestedChangesConfig:ee,markdownErrorMessage:eo,lineNumber:q,filePath:U,startLineNumber:X,disabled:ex,className:A,children:[k,E,T]}),$[58]=ei,$[59]=eo,$[60]=U,$[61]=eI,$[62]=ex,$[63]=q,$[64]=X,$[65]=ee,$[66]=e_,$[67]=A,$[68]=k,$[69]=E,$[70]=T,$[71]=O):O=$[71],$[72]!==R||$[73]!==O?(P=(0,i.jsx)(“div”,{className:j,onKeyDown:R,children:O}),$[72]=R,$[73]=O,$[74]=P):P=$[74],$[75]!==_||$[76]!==P?(F=(0,i.jsx)(x.tL,{commands:_,children:P}),$[75]=_,$[76]=P,$[77]=F):F=$[77],F}:function({batchingEnabled:e,condensed:t,fileLevelComment:n,filePath:a,focusOnMount:r,isReplying:s,lineNumber:o,onAddComment:d,onCancelComment:c,onPersistedCommentExists:u,quotedText:m=””,side:f,startLineNumber:h,threadId:_,suggestedChangesConfig:R,commentLineChangeConfig:A}){let[k,E]=(0,l.useState)(m),[T,O]=(0,l.useState)(null),P=(0,l.useRef)(m),[F,$]=(0,l.useState)(),M=(0,l.useRef)(null),B=(0,l.useRef)(null),V=(0,I.it)(),U=(0,l.useRef)(void 0),{selectMultipleLines:G,clearSelectedLines:H}=Y(),q=(0,l.useCallback)(e=>{(0,eN.k)(e??””,100),$(e)},[$]),z=null!==T,K=(0,I.Kp)(),{persistCommentToStorage:W,removePersistedCommentFromStorage:Z,persistCommentOnGivenLineToStorage:Q}=(0,v.L)({diffSide:f,filePath:a,line:o,subjectId:K,threadId:_,handlePersistedCommentExists:({text:e,shouldFocus:t,startLine:n,startSide:i,startLineKey:a,endLineKey:r})=>{if(e){if(E(e),t&&M.current&&(M.current.focus(),M.current.moveCursorToEnd(),W({text:e,startLine:n,startSide:i,startLineKey:a,endLineKey:r}),n)){let e=”LEFT”===f?”left”:”right”;G({endLineKey:r,endOrientation:e,startLineKey:a,startOrientation:e,firstLineSelectionOnDrag:{lineKey:a??”b:0-l:0-r:0″,lineNumber:o??0,orientation:e,shouldStartConversation:!1}},eC)}u?.()}},fileLevelComment:!!n});(0,l.useEffect)(()=>{m!==P.current&&(P.current=m,E(m))},[m]),(0,l.useEffect)(()=>{if(A){if(null!==(0,ew.T)(k))return void A.setErrorMessage(“Changing the line number of a comment with a suggested change is not supported.”);if(A.closeLineMovingDialog(),Q({text:k,givenLineDiffSide:A.diffSide,givenFilePath:a,givenLine:A.endLineNumber,shouldBeFileLevelComment:A.isFileLevelComment,startLine:A.startLineNumber,startLineKey:A.startDiffLineKey,endLineKey:A.endDiffLineKey}),Z(),o!==A.endLineNumber||A.isFileLevelComment)A.startConversationOnNewLine(),c?.(!1);else if(A.endDiffLineKey&&A.startDiffLineKey&&U.current!==A){U.current=A;let e=”LEFT”===f?”left”:”right”;G({endLineKey:A.endDiffLineKey,endOrientation:e,startLineKey:A.startDiffLineKey,startOrientation:e,firstLineSelectionOnDrag:{lineKey:A.startDiffLineKey??”b:0-l:0-r:0″,lineNumber:o??0,orientation:e,shouldStartConversation:!1}},eC)}else A.startDiffLineKey||H()}},[H,A,k,a,o,c,Q,Z,G,f]),(0,l.useEffect)(()=>{if(r){let e=setTimeout(()=>{if(g.XC&&g.cg){if(B.current){let e=B.current,t=e.getBoundingClientRect(),n=g.XC?.documentElement.clientHeight||0;if(!(t.top>=0&&t.bottom<=(g.cg?.innerHeight||n))){let i=t.top,a=g.XC?.documentElement.getBoundingClientRect().top||0,r=e.clientHeight*(2/3);g.cg?.scrollTo({top:i-a-2/3*n+r,behavior:"smooth"})}}M.current&&(M.current.focus(),M.current.moveCursorToEnd())}},100);return()=>{window.clearTimeout(e)}}},[r]);let X=({submitBatch:e,action:t})=>{let n=”Failed to save comment”;if(z)return;if(!k.trim())return void q(`${n}: Body can’t be blank`);O(t),$(void 0),q(void 0);let i=(0,y.u)(k,R?.sourceContentFromDiffLines??””);if(!i.isValid){q(i.errorMessage),$(i.errorMessage),O(null);return}d?.({commentText:k,onCompleted(){O(null),et()},onError(e){O(null),e.message&&(n=`${n}: ${e.message}`),q(n)},submitBatch:e})},J=()=>{X({submitBatch:!1,action:eL})},ee=()=>{X({submitBatch:!0,action:eS})},et=(0,l.useCallback)(()=>{Z(),E(“”),c?.()},[c,Z]);return(0,i.jsx)(x.tL,{commands:{“pull-requests-conversations:submit-comment-and-review”:ee},children:(0,i.jsx)(“div”,{className:j,onKeyDown:e=>{“Escape”!==e.key||k.trim()?e.stopPropagation():(e.preventDefault(),et())},children:(0,i.jsxs)(D.S,{ref:M,label:”Add diff comment”,value:k,onChange:e=>{q(void 0),W({text:e,startLine:h,startSide:h?f:void 0}),E(e)},onPrimaryAction:e?J:ee,suggestedChangesConfig:R,markdownErrorMessage:F,lineNumber:o,filePath:a,startLineNumber:h,disabled:z,className:(0,b.$)(C,t||s?w:N,s&&S,t&&L),children:[c&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”default”,onClick:et,children:”Cancel”}),!V&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:e?”default”:”primary”,onClick:ee,ref:B,loading:T===eS,children:s?”Reply”:”Comment”}),e&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”primary”,onClick:J,loading:T===eL,children:V?”Add review comment”:”Start a review”})]})})})};try{eD.displayName||(eD.displayName=”AddCommentEditor”)}catch{}var eI=n(21373),e_=n(15220),eR=n(15837),eA=n(86877),ek=n(33989),eE=n(99511),eT=n(94236),eO=n(5524);let eP=(0,a.GV)()?function(e){let t,n,a,s,o,d,u=(0,r.c)(25),{ariaLabelId:m,currentLineNumberText:f,setCommentLineChangeConfig:h,baseEndLineNumber:p,diffSide:g,baseStartLineNumber:x}=e,[b,v]=(0,l.useState)(!1);u[0]!==p||u[1]!==x?(t=()=>x&&p?”lineRange”:p?”line”:”file”,u[0]=p,u[1]=x,u[2]=t):t=u[2];let[y,j]=(0,l.useState)(t),[C,w]=(0,l.useState)(“LEFT”===g),[N,S]=(0,l.useState)(x?String(x):””),[L,D]=(0,l.useState)(p?String(p):””),[I,_]=(0,l.useState)(“”),R=en(),A=(0,l.useRef)(null);u[3]!==L||u[4]!==R||u[5]!==C||u[6]!==y||u[7]!==h||u[8]!==N?(n=()=>{let e=R(eB(C,Number(L),”file”===y)),t=R(eB(C,Number(N),”file”===y)),n=e?.startNewComment,i=e?.diffLineKey,a=t?.diffLineKey;(eU(“lineRange”===y?N:void 0,L)||”file”===y)&&n&&i?h(eV({isLeftSide:C,startLineNumber:”lineRange”===y?Number(N):void 0,endDiffLineKey:i,endLineNumber:Number(L),isFileLevelComment:”file”===y,startDiffLineKey:”lineRange”===y?a:void 0,startConversationOnNewLine:n,closeLineMovingDialog:()=>v(!1),setErrorMessage:e=>_(e)})):_(“Please enter a valid line number or range.”)},u[3]=L,u[4]=R,u[5]=C,u[6]=y,u[7]=h,u[8]=N,u[9]=n):n=u[9];let k=n;return u[10]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>v(!0),u[10]=a):a=u[10],u[11]!==m||u[12]!==f?(s=(0,i.jsx)(eI.Q,{“aria-labelledby”:m,”aria-description”:”Select to change location”,ref:A,type:”button”,size:”small”,onClick:a,trailingAction:c.TriangleDownIcon,children:f}),u[11]=m,u[12]=f,u[13]=s):s=u[13],u[14]!==L||u[15]!==I||u[16]!==b||u[17]!==C||u[18]!==y||u[19]!==N||u[20]!==k?(o=b&&(0,i.jsx)(e_.l,{onClose:()=>v(!1),returnFocusRef:A,title:”Add comment on”,width:”medium”,footerButtons:[{buttonType:”default”,content:”Cancel”,onClick:()=>{v(!1)}},{buttonType:”primary”,content:”Save”,onClick:k}],children:(0,i.jsxs)(eR.A,{name:”line-number-selection”,onChange:e=>{j(e)},children:[(0,i.jsx)(eR.A.Label,{}),(0,i.jsxs)(eA.A,{children:[(0,i.jsx)(ek.A,{value:”line”,defaultChecked:”line”===y}),(0,i.jsx)(eA.A.Label,{children:”Line number”}),”line”===y&&(0,i.jsxs)(eA.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(eM,{isLeftSelected:C,setIsLeftSelected:w}),(0,i.jsx)(eE.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:L,onChange:e=>D(e.target.value),onKeyDown:e=>{“Enter”===e.key&&k()}})]})]}),(0,i.jsxs)(eA.A,{children:[(0,i.jsx)(ek.A,{value:”lineRange”,defaultChecked:”lineRange”===y}),(0,i.jsx)(eA.A.Label,{children:”Line range”}),”lineRange”===y&&(0,i.jsxs)(eA.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(eM,{isLeftSelected:C,setIsLeftSelected:w}),(0,i.jsx)(eE.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:N,onChange:e=>S(e.target.value),onKeyDown:e=>{“Enter”===e.key&&k()}}),(0,i.jsx)(c.ArrowRightIcon,{className:”mt-2 mx-2″}),(0,i.jsx)(eE.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:L,onChange:e=>D(e.target.value),onKeyDown:e=>{“Enter”===e.key&&k()}})]})]}),(0,i.jsxs)(eA.A,{children:[(0,i.jsx)(ek.A,{value:”file”,defaultChecked:”file”===y}),(0,i.jsx)(eA.A.Label,{children:”File”})]}),I&&(0,i.jsx)(eR.A.Validation,{variant:”error”,children:I})]})}),u[14]=L,u[15]=I,u[16]=b,u[17]=C,u[18]=y,u[19]=N,u[20]=k,u[21]=o):o=u[21],u[22]!==s||u[23]!==o?(d=(0,i.jsxs)(“div”,{className:”ml-1″,children:[s,o]}),u[22]=s,u[23]=o,u[24]=d):d=u[24],d}:function({ariaLabelId:e,currentLineNumberText:t,setCommentLineChangeConfig:n,baseEndLineNumber:a,diffSide:r,baseStartLineNumber:s}){let[o,d]=(0,l.useState)(!1),[u,m]=(0,l.useState)(()=>s&&a?”lineRange”:a?”line”:”file”),[f,h]=(0,l.useState)(“LEFT”===r),[p,g]=(0,l.useState)(s?String(s):””),[x,b]=(0,l.useState)(a?String(a):””),[v,y]=(0,l.useState)(“”),j=en(),C=(0,l.useRef)(null),w=(0,l.useCallback)(()=>{let e=j(eB(f,Number(x),”file”===u)),t=j(eB(f,Number(p),”file”===u)),i=e?.startNewComment,a=e?.diffLineKey,r=t?.diffLineKey;(eU(“lineRange”===u?p:void 0,x)||”file”===u)&&i&&a?n(eV({isLeftSide:f,startLineNumber:”lineRange”===u?Number(p):void 0,endDiffLineKey:a,endLineNumber:Number(x),isFileLevelComment:”file”===u,startDiffLineKey:”lineRange”===u?r:void 0,startConversationOnNewLine:i,closeLineMovingDialog:()=>d(!1),setErrorMessage:e=>y(e)})):y(“Please enter a valid line number or range.”)},[j,f,x,u,p,n]);return(0,i.jsxs)(“div”,{className:”ml-1″,children:[(0,i.jsx)(eI.Q,{“aria-labelledby”:e,”aria-description”:”Select to change location”,ref:C,type:”button”,size:”small”,onClick:()=>d(!0),trailingAction:c.TriangleDownIcon,children:t}),o&&(0,i.jsx)(e_.l,{onClose:()=>d(!1),returnFocusRef:C,title:”Add comment on”,width:”medium”,footerButtons:[{buttonType:”default”,content:”Cancel”,onClick:()=>{d(!1)}},{buttonType:”primary”,content:”Save”,onClick:w}],children:(0,i.jsxs)(eR.A,{name:”line-number-selection”,onChange:e=>{m(e)},children:[(0,i.jsx)(eR.A.Label,{}),(0,i.jsxs)(eA.A,{children:[(0,i.jsx)(ek.A,{value:”line”,defaultChecked:”line”===u}),(0,i.jsx)(eA.A.Label,{children:”Line number”}),”line”===u&&(0,i.jsxs)(eA.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(eM,{isLeftSelected:f,setIsLeftSelected:h}),(0,i.jsx)(eE.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:x,onChange:e=>b(e.target.value),onKeyDown:e=>{“Enter”===e.key&&w()}})]})]}),(0,i.jsxs)(eA.A,{children:[(0,i.jsx)(ek.A,{value:”lineRange”,defaultChecked:”lineRange”===u}),(0,i.jsx)(eA.A.Label,{children:”Line range”}),”lineRange”===u&&(0,i.jsxs)(eA.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(eM,{isLeftSelected:f,setIsLeftSelected:h}),(0,i.jsx)(eE.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:p,onChange:e=>g(e.target.value),onKeyDown:e=>{“Enter”===e.key&&w()}}),(0,i.jsx)(c.ArrowRightIcon,{className:”mt-2 mx-2″}),(0,i.jsx)(eE.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:x,onChange:e=>b(e.target.value),onKeyDown:e=>{“Enter”===e.key&&w()}})]})]}),(0,i.jsxs)(eA.A,{children:[(0,i.jsx)(ek.A,{value:”file”,defaultChecked:”file”===u}),(0,i.jsx)(eA.A.Label,{children:”File”})]}),v&&(0,i.jsx)(eR.A.Validation,{variant:”error”,children:v})]})})]})},eF=”Left (L)”,e$=”Right (R)”,eM=(0,a.GV)()?function(e){let t,n,a,s,l,o=(0,r.c)(12),{isLeftSelected:d,setIsLeftSelected:c}=e,u=d?eF:e$;return o[0]!==u?(t=(0,i.jsx)(eT.W.Button,{children:u}),o[0]=u,o[1]=t):t=o[1],o[2]!==c?(n=(0,i.jsx)(eO.l.Item,{onSelect:()=>{c(!0)},children:eF}),o[2]=c,o[3]=n):n=o[3],o[4]!==c?(a=(0,i.jsx)(eO.l.Item,{onSelect:()=>{c(!1)},children:e$}),o[4]=c,o[5]=a):a=o[5],o[6]!==n||o[7]!==a?(s=(0,i.jsx)(eT.W.Overlay,{children:(0,i.jsxs)(eO.l,{children:[n,a]})}),o[6]=n,o[7]=a,o[8]=s):s=o[8],o[9]!==t||o[10]!==s?(l=(0,i.jsxs)(eT.W,{children:[t,s]}),o[9]=t,o[10]=s,o[11]=l):l=o[11],l}:function({isLeftSelected:e,setIsLeftSelected:t}){let n=e?eF:e$;return(0,i.jsxs)(eT.W,{children:[(0,i.jsx)(eT.W.Button,{children:n}),(0,i.jsx)(eT.W.Overlay,{children:(0,i.jsxs)(eO.l,{children:[(0,i.jsx)(eO.l.Item,{onSelect:()=>{t(!0)},children:eF}),(0,i.jsx)(eO.l.Item,{onSelect:()=>{t(!1)},children:e$})]})})]})};function eB(e,t,n){return n?”F0″:`${e?”L”:”R”}${t}`}function eV(e){return{diffSide:e.isLeftSide?”LEFT”:”RIGHT”,startLineNumber:e.startLineNumber,endLineNumber:e.endLineNumber,isFileLevelComment:e.isFileLevelComment,startDiffLineKey:e.startDiffLineKey,endDiffLineKey:e.endDiffLineKey,setErrorMessage:e.setErrorMessage,startConversationOnNewLine:e.startConversationOnNewLine,closeLineMovingDialog:e.closeLineMovingDialog}}function eU(e,t){let n=Number(e),i=Number(t);return Number.isInteger(i)&&i>0&&(void 0===e||Number.isInteger(n)&&n>0&&n<=i)}try{eP.displayName||(eP.displayName="ChangeCommentLineNumberButton")}catch{}try{eM.displayName||(eM.displayName="MoveCommentLineNumberDropdown")}catch{}var eG=n(91747);let eH="diff-comment-positioning-",eq=(0,a.GV)()?function(e){let t,n,a,s,o,f,p,g,x,b,v,y,j,C,w,N,S,L,D,I,_=(0,r.c)(52);if(_[0]!==e){let{addCommentDialogTitle:i,isLeftSide:r,fileLevelComment:l,filePath:d,focusOnMount:c,lineNumber:u,onAddComment:m,onClose:h,viewerData:y,threadsConnectionId:j,showOnCloseIcon:C,...w}=e;t=i,s=r,n=l,a=d,x=c,o=u,f=m,p=h,v=y,b=C,g=w,_[0]=e,_[1]=t,_[2]=n,_[3]=a,_[4]=s,_[5]=o,_[6]=f,_[7]=p,_[8]=g,_[9]=x,_[10]=b,_[11]=v}else t=_[1],n=_[2],a=_[3],s=_[4],o=_[5],f=_[6],p=_[7],g=_[8],x=_[9],b=_[10],v=_[11];let R=void 0===x||x,A=void 0===b||b,[k,E]=(0,l.useState)(void 0),T=(0,eG.u)("move_new_comments_ui");_[12]!==f?(y=e=>{let{commentText:t,onCompleted:n,onError:i,submitBatch:a}=e;f({text:t,onError:i,onCompleted:(e,t)=>{t&&h(t.toString()),n?.(e,t)},submitBatch:a})},_[12]=f,_[13]=y):y=_[13];let O=y,P=`${eH}${(0,l.useId)()}`,F=v.avatarUrl||””;_[14]!==F||_[15]!==v.login?(j=(0,i.jsx)(d.r,{alt:v.login,size:24,src:F,className:”mr-2″}),_[14]=F,_[15]=v.login,_[16]=j):j=_[16],_[17]!==t||_[18]!==n||_[19]!==T?(C=!T&&(n?(0,i.jsx)(i.Fragment,{children:”Add comment on file”}):(0,i.jsx)(“span”,{children:t?`Add a comment on ${t}`:”Add a comment”})),_[17]=t,_[18]=n,_[19]=T,_[20]=C):C=_[20],_[21]!==t||_[22]!==P||_[23]!==n||_[24]!==s||_[25]!==o||_[26]!==T||_[27]!==g?(w=T&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,id:P,children:[(0,i.jsxs)(“div”,{className:”pt-1″,children:[“Add “,n?””:”a”,” comment on “]}),(0,i.jsx)(eP,{ariaLabelId:P,currentLineNumberText:n?”file”:t??””,baseEndLineNumber:o,baseStartLineNumber:g.startLineNumber,diffSide:s?”LEFT”:”RIGHT”,setCommentLineChangeConfig:E})]}),_[21]=t,_[22]=P,_[23]=n,_[24]=s,_[25]=o,_[26]=T,_[27]=g,_[28]=w):w=_[28],_[29]!==j||_[30]!==C||_[31]!==w?(N=(0,i.jsxs)(u.A,{as:”h4″,className:”f5 ml-1 pt-1 pb-2 d-flex”,children:[j,C,w]}),_[29]=j,_[30]=C,_[31]=w,_[32]=N):N=_[32],_[33]!==p||_[34]!==A?(S=p&&A&&(0,i.jsx)(m.K,{variant:”invisible”,icon:c.XIcon,onClick:()=>p(),”aria-label”:”Cancel”}),_[33]=p,_[34]=A,_[35]=S):S=_[35],_[36]!==N||_[37]!==S?(L=(0,i.jsxs)(“div”,{className:”d-flex flex-justify-between flex-items-center”,children:[N,S]}),_[36]=N,_[37]=S,_[38]=L):L=_[38];let $=n??!1,M=s?”LEFT”:”RIGHT”;return _[39]!==k||_[40]!==a||_[41]!==R||_[42]!==O||_[43]!==o||_[44]!==p||_[45]!==g||_[46]!==$||_[47]!==M?(D=(0,i.jsx)(eD,{focusOnMount:R,condensed:!1,fileLevelComment:$,filePath:a,lineNumber:o,onAddComment:O,onCancelComment:p,commentLineChangeConfig:k,side:M,…g}),_[39]=k,_[40]=a,_[41]=R,_[42]=O,_[43]=o,_[44]=p,_[45]=g,_[46]=$,_[47]=M,_[48]=D):D=_[48],_[49]!==L||_[50]!==D?(I=(0,i.jsxs)(“div”,{className:”px-2 pb-2 pt-1″,children:[L,D]}),_[49]=L,_[50]=D,_[51]=I):I=_[51],I}:function({addCommentDialogTitle:e,isLeftSide:t,fileLevelComment:n,filePath:a,focusOnMount:r=!0,lineNumber:s,onAddComment:o,onClose:f,viewerData:p,threadsConnectionId:g,showOnCloseIcon:x=!0,…b}){let[v,y]=(0,l.useState)(void 0),j=(0,eG.u)(“move_new_comments_ui”),C=`${eH}${(0,l.useId)()}`;return(0,i.jsxs)(“div”,{className:”px-2 pb-2 pt-1″,children:[(0,i.jsxs)(“div”,{className:”d-flex flex-justify-between flex-items-center”,children:[(0,i.jsxs)(u.A,{as:”h4″,className:”f5 ml-1 pt-1 pb-2 d-flex”,children:[(0,i.jsx)(d.r,{alt:p.login,size:24,src:p.avatarUrl||””,className:”mr-2″}),!j&&(n?(0,i.jsx)(i.Fragment,{children:”Add comment on file”}):(0,i.jsx)(“span”,{children:e?`Add a comment on ${e}`:”Add a comment”})),j&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,id:C,children:[(0,i.jsxs)(“div”,{className:”pt-1″,children:[“Add “,n?””:”a”,” comment on “]}),(0,i.jsx)(eP,{ariaLabelId:C,currentLineNumberText:n?”file”:e??””,baseEndLineNumber:s,baseStartLineNumber:b.startLineNumber,diffSide:t?”LEFT”:”RIGHT”,setCommentLineChangeConfig:y})]})]}),f&&x&&(0,i.jsx)(m.K,{variant:”invisible”,icon:c.XIcon,onClick:()=>f(),”aria-label”:”Cancel”})]}),(0,i.jsx)(eD,{focusOnMount:r,condensed:!1,fileLevelComment:n??!1,filePath:a,lineNumber:s,onAddComment:({commentText:e,onCompleted:t,onError:n,submitBatch:i})=>{o({text:e,onError:n,onCompleted:(e,n)=>{n&&h(n.toString()),t?.(e,n)},submitBatch:i})},onCancelComment:f,commentLineChangeConfig:v,side:t?”LEFT”:”RIGHT”,…b})]})};try{eq.displayName||(eq.displayName=”StartThreadComment”)}catch{}var ez=n(33671),eK=n(8934),eW=n(97286),eZ=n(73017),eQ=n(69726);let eX=”RichDiff-module__fileRendererViewport–EBwd1″,eJ=”RichDiff-module__fileRendererIframe–svTsY”,eY=(0,a.GV)()?function(e){let t,n,a,s,l,o,d=(0,r.c)(29),{queryConfig:c,initialData:u}=e;if(u&&(u.proseDiffHtml||u.renderInfo||u.dependencyDiffPath)){let e;d[0]!==u.dependencyDiffPath||d[1]!==u.proseDiffHtml||d[2]!==u.renderInfo?(e={proseDiffHtml:u.proseDiffHtml,renderInfo:u.renderInfo,dependencyDiffPath:u.dependencyDiffPath},d[0]=u.dependencyDiffPath,d[1]=u.proseDiffHtml,d[2]=u.renderInfo,d[3]=e):e=d[3],o=e}let m=c?.key,f=c?.args;d[4]!==m||d[5]!==f?(t=[m,f],d[4]=m,d[5]=f,d[6]=t):t=d[6],d[7]!==c?(n=async()=>await c?.fetcher(c.args)||{},d[7]=c,d[8]=n):n=d[8];let h=!!c;d[9]!==o||d[10]!==t||d[11]!==n||d[12]!==h?(a={queryKey:t,queryFn:n,initialData:o,staleTime:1/0,enabled:h},d[9]=o,d[10]=t,d[11]=n,d[12]=h,d[13]=a):a=d[13];let p=(0,eW.I)(a);d[14]!==o||d[15]!==c||d[16]!==p?(s=c?p:{data:o,isLoading:!1},d[14]=o,d[15]=c,d[16]=p,d[17]=s):s=d[17];let{data:g,isLoading:x}=s;d[18]!==g?(l=g||{},d[18]=g,d[19]=l):l=d[19];let{proseDiffHtml:b,renderInfo:v,dependencyDiffPath:y}=l;if(x){let e;return d[20]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(“div”,{className:”d-flex flex-justify-center p-4″,children:(0,i.jsx)(eQ.A,{size:”large”})}),d[20]=e):e=d[20],e}if(b){let e;return d[21]!==b?(e=(0,i.jsx)(“div”,{className:”prose-diff position-relative”,children:(0,i.jsx)(eZ.vb,{html:b})}),d[21]=b,d[22]=e):e=d[22],e}if(v){let e;return d[23]!==v?(e=(0,i.jsx)(ez.default,{…v,viewportClassName:eX,iframeClassName:eJ}),d[23]=v,d[24]=e):e=d[24],e}if(y){let e,t;return d[25]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“div”,{className:”text-center py-3″,children:[(0,i.jsx)(eQ.A,{size:”medium”}),(0,i.jsx)(“p”,{className:”color-fg-muted my-2″,children:”Loading Dependency Review…”})]}),d[25]=e):e=d[25],d[26]!==y?(t=(0,i.jsx)(“div”,{children:(0,i.jsx)(eK.x,{src:y,children:e})}),d[26]=y,d[27]=t):t=d[27],t}{let e;return d[28]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(“div”,{className:”d-flex flex-justify-center p-4″,children:”This rich diff is not supported at the moment.”}),d[28]=e):e=d[28],e}}:function({queryConfig:e,initialData:t}){let n;t&&(t.proseDiffHtml||t.renderInfo||t.dependencyDiffPath)&&(n={proseDiffHtml:t.proseDiffHtml,renderInfo:t.renderInfo,dependencyDiffPath:t.dependencyDiffPath});let a=(0,eW.I)({queryKey:[e?.key,e?.args],queryFn:async()=>await e?.fetcher(e.args)||{},initialData:n,staleTime:1/0,enabled:!!e}),{data:r,isLoading:s}=e?a:{data:n,isLoading:!1},{proseDiffHtml:l,renderInfo:o,dependencyDiffPath:d}=r||{};return s?(0,i.jsx)(“div”,{className:”d-flex flex-justify-center p-4″,children:(0,i.jsx)(eQ.A,{size:”large”})}):l?(0,i.jsx)(“div”,{className:”prose-diff position-relative”,children:(0,i.jsx)(eZ.vb,{html:l})}):o?(0,i.jsx)(ez.default,{…o,viewportClassName:eX,iframeClassName:eJ}):d?(0,i.jsx)(“div”,{children:(0,i.jsx)(eK.x,{src:d,children:(0,i.jsxs)(“div”,{className:”text-center py-3″,children:[(0,i.jsx)(eQ.A,{size:”medium”}),(0,i.jsx)(“p”,{className:”color-fg-muted my-2″,children:”Loading Dependency Review…”})]})})}):(0,i.jsx)(“div”,{className:”d-flex flex-justify-center p-4″,children:”This rich diff is not supported at the moment.”})};try{eY.displayName||(eY.displayName=”RichDiff”)}catch{}var e0=n(59523),e1=n(19976),e2=n(13083),e3=n(84268),e4=n(69599);let e5=”HiddenDiffPatch-module__gridColumnTemplate–gSfuk”,e6=(0,a.GV)()?function(e){let t,n,a,s,o,d,u,m,f,h,p=(0,r.c)(27),{children:g,helpText:x,helpUrl:v,onLoadDiff:y,diffAnchor:j}=e,C=v&&x,[w,N]=(0,l.useState)(“initial”);p[0]!==y?(t=async()=>{try{N(“loading”),await y()}catch{N(“error”)}},p[0]=y,p[1]=t):t=p[1];let S=t;return p[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,b.$)(e5),p[2]=n):n=p[2],p[3]===Symbol.for(“react.memo_cache_sentinel”)?(a={maxWidth:”340px”},p[3]=a):a=p[3],p[4]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,i.jsx)(“svg”,{“aria-hidden”:!0,height:”84″,style:a,viewBox:”0 0 340 84″,xmlns:”http://www.w3.org/2000/svg”,children:(0,i.jsx)(“path”,{clipPath:”url(#diff-placeholder)”,d:”M0 0h340v84H0z”,fillRule:”evenodd”,style:{fill:”var(–bgColor-muted, var(–color-canvas-subtle))”}})}),p[4]=s):s=p[4],p[5]!==w?(o=”loading”===w&&(0,i.jsx)(eQ.A,{size:”medium”}),p[5]=w,p[6]=o):o=p[6],p[7]!==w?(d=”error”===w&&(0,i.jsx)(c.AlertIcon,{size:24}),p[7]=w,p[8]=d):d=p[8],p[9]!==w||p[10]!==S?(u=”initial”===w&&(0,i.jsx)(eI.Q,{className:”h4 mx-auto fgColor-accent”,variant:”invisible”,onClick:()=>{S(),N(“loading”)},children:”Load Diff”}),p[9]=w,p[10]=S,p[11]=u):u=p[11],p[12]!==g||p[13]!==x||p[14]!==v||p[15]!==w||p[16]!==S||p[17]!==C?(m=”error”===w?(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[“The contents of the file couldn’t be loaded.”,” “,(0,i.jsx)(e3.A,{inline:!0,as:”button”,onClick:()=>{S(),N(“loading”)},children:”Retry”})]}):(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[g,C&&(0,i.jsx)(e3.A,{inline:!0,href:v,children:x})]}),p[12]=g,p[13]=x,p[14]=v,p[15]=w,p[16]=S,p[17]=C,p[18]=m):m=p[18],p[19]!==o||p[20]!==d||p[21]!==u||p[22]!==m?(f=(0,i.jsxs)(“div”,{className:n,children:[s,” “,(0,i.jsxs)(“div”,{className:”d-flex flex-justify-center flex-column flex-column text-center flex-items-center”,children:[o,d,u,m]})]}),p[19]=o,p[20]=d,p[21]=u,p[22]=m,p[23]=f):f=p[23],p[24]!==j||p[25]!==f?(h=(0,i.jsx)(“div”,{className:”px-3 py-4 fgColor-muted”,”data-diff-anchor”:j,children:f}),p[24]=j,p[25]=f,p[26]=h):h=p[26],h}:function({children:e,helpText:t,helpUrl:n,onLoadDiff:a,diffAnchor:r}){let s=n&&t,[o,d]=(0,l.useState)(“initial”),u=(0,l.useCallback)(async()=>{try{d(“loading”),await a()}catch{d(“error”)}},[a,d]);return(0,i.jsx)(“div”,{className:”px-3 py-4 fgColor-muted”,”data-diff-anchor”:r,children:(0,i.jsxs)(“div”,{className:(0,b.$)(e5),children:[(0,i.jsx)(“svg”,{“aria-hidden”:!0,height:”84″,style:{maxWidth:”340px”},viewBox:”0 0 340 84″,xmlns:”http://www.w3.org/2000/svg”,children:(0,i.jsx)(“path”,{clipPath:”url(#diff-placeholder)”,d:”M0 0h340v84H0z”,fillRule:”evenodd”,style:{fill:”var(–bgColor-muted, var(–color-canvas-subtle))”}})}),” “,(0,i.jsxs)(“div”,{className:”d-flex flex-justify-center flex-column flex-column text-center flex-items-center”,children:[“loading”===o&&(0,i.jsx)(eQ.A,{size:”medium”}),”error”===o&&(0,i.jsx)(c.AlertIcon,{size:24}),”initial”===o&&(0,i.jsx)(eI.Q,{className:”h4 mx-auto fgColor-accent”,variant:”invisible”,onClick:()=>{u(),d(“loading”)},children:”Load Diff”}),”error”===o?(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[“The contents of the file couldn’t be loaded.”,” “,(0,i.jsx)(e3.A,{inline:!0,as:”button”,onClick:()=>{u(),d(“loading”)},children:”Retry”})]}):(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[e,s&&(0,i.jsx)(e3.A,{inline:!0,href:n,children:t})]})]})]})})};try{e6.displayName||(e6.displayName=”HiddenDiffPatch”)}catch{}let e7=”final-hunk-header-line”;function e8(e,t){return e.startBlobLineNumber-t.startBlobLineNumber}function e9(e,t){if(“HUNK”===e.type&&e.__id===e7)return{currentHunk:t[t.length-1],previousHunk:t[t.length-2]};let n=t.sort(e8).findIndex(t=>t.startBlobLineNumber<=e.blobLineNumber&&t.endBlobLineNumber>=e.blobLineNumber);return{currentHunk:t[n],nextHunk:t[n+1],previousHunk:t[n-1]}}function te(e){let t,n=[],i=0;for(let a=1;a=0;)t=(0,tr._)(this,th,tN).call(this,{rowIndex:e,columnIndex:s}),e–}if(“ArrowDown”===e){let e=r+1;for(;!t&&e<(0,tn._)(this,to).length;)t=(0,tr._)(this,th,tN).call(this,{rowIndex:e,columnIndex:s}),e++}return t&&(this.lastSelectedGridCell=t),t}getValidSelectableRowCell(){if(this.focusedGridCell?.isHunk)return;if(!this.focusedGridCell?.isEmpty)return this.focusedGridCell;let e=(0,tn._)(this,td).get(this.focusedGridCell.cellId)?.[0];if(e)return this.focusedGridCell.columnIndex<=1&&!(0,tn._)(this,tf)?(0,tn._)(this,to)[e]?.[this.focusedGridCell.columnIndex+1]:this.focusedGridCell.columnIndex<2&&(0,tn._)(this,tf)?(0,tn._)(this,to)[e]?.[this.focusedGridCell.columnIndex+2]:(0,tn._)(this,to)[e]?.[this.focusedGridCell.columnIndex-2]}clearLastSelectedCell(){this.lastSelectedGridCell=void 0}getFirstCodeCell(){let e=(0,tn._)(this,to).find(e=>e[0]&&!e[0].isHunk);return e?.find(e=>!e.isEmpty)}getLastCodeCell(){let e=(0,tn._)(this,to).slice().reverse().find(e=>e[0]&&!e[0].isHunk);return e?.slice().reverse().find(e=>!e.isEmpty)}hasLine(e,t,n){let i=(0,E.qX)((0,tn._)(this,tm),e,t),a=(0,E.u6)(i,0),r=(0,tn._)(this,td).get(a);if(!r)return!1;let[s]=r;return!!n===(0,tr._)(this,ty,tR).call(this,s)}constructor(e,t,n,i,a){(0,ts._)(this,th),(0,ts._)(this,tp),(0,ts._)(this,tg),(0,ts._)(this,tx),(0,ts._)(this,tb),(0,ts._)(this,tv),(0,ts._)(this,ty),(0,ts._)(this,tj),(0,ts._)(this,tC),(0,ts._)(this,tw),(0,ti._)(this,to,{writable:!0,value:[]}),(0,ti._)(this,td,{writable:!0,value:new Map}),(0,ti._)(this,tc,{writable:!0,value:new Set}),(0,tl._)(this,”focusedGridCell”,void 0),(0,tl._)(this,”lastSelectedGridCell”,void 0),(0,ti._)(this,tu,{writable:!0,value:void 0}),(0,ti._)(this,tm,{writable:!0,value:void 0}),(0,ti._)(this,tf,{writable:!0,value:void 0}),(0,ta._)(this,tm,e),(0,ta._)(this,tf,t),(0,tr._)(this,tx,tD).call(this,n,i),this.focusFirstGridCell(a)}};function tN({rowIndex:e,columnIndex:t}){let n=(0,tn._)(this,to)[e],i=n?.[t];switch(!0){case i?.isHunk:return;case i?.orientation===”left”&&i.isEmpty:return n?.[t+2];case i?.orientation===”right”&&i.isEmpty&&(0,tn._)(this,tf):return n?.[t-2];case i?.orientation===”right”&&i.isEmpty&&!(0,tn._)(this,tf):return n?.[t+1];default:return n?.[t]}}function tS(e){return Array.from((0,tn._)(this,tc)).sort((e,t)=>e-t).find(t=>t>e)}function tL(e){return Array.from((0,tn._)(this,tc)).sort((e,t)=>e-t).reverse().find(t=>t{0!==e.tabIndex&&(e.tabIndex=0)})}function tO(e,t,n){let i=[];for(let a=0;a{if(a&&document.activeElement){let r=tO(a,t,s);if(0!==r.length){if(document.activeElement===document.body){let i,a,s,l=t.indexOf(r[r.length-1]),o=t[l+1],d=r[0];o&&!(0,E.Po)(o)&&”HUNK”===o.type&&(i=(0,E.u6)((0,E.qX)(e,o,o),0),a=document.querySelector(`[data-grid-cell-id=${i}]`),s=a?.querySelector(“button[data-direction=down], button[data-direction=all]”)),s||(i=(0,E.u6)((0,E.qX)(e,d,d),0),a=document.querySelector(`[data-grid-cell-id=${i}]`),s=a?.querySelector(“button[data-direction=up], button[data-direction=all]”)),i&&a&&(s?s.focus():a.focus(),n.focusGridCell(i),tT(a))}else if(“BUTTON”===document.activeElement.tagName)tT(document.activeElement.closest(“td”));else if(“TD”===document.activeElement.tagName){let e=document.activeElement.getAttribute(“data-grid-cell-id”),t=n.focusedGridCell?.cellId;if(e!==t){let e=i.current?.querySelector(`[data-grid-cell-id=${t}]`);e?.focus()}}}}},d=[e,t,n,s,a,i],c[0]=i,c[1]=e,c[2]=n,c[3]=t,c[4]=a,c[5]=s,c[6]=o,c[7]=d):(o=c[6],d=c[7]),(0,l.useEffect)(o,d)}:function(e,t,n,i,a,r){(0,l.useEffect)(()=>{if(a&&document.activeElement){let s=tO(a,t,r);if(0!==s.length){if(document.activeElement===document.body){let i,a,r,l=t.indexOf(s[s.length-1]),o=t[l+1],d=s[0];o&&!(0,E.Po)(o)&&”HUNK”===o.type&&(i=(0,E.u6)((0,E.qX)(e,o,o),0),a=document.querySelector(`[data-grid-cell-id=${i}]`),r=a?.querySelector(“button[data-direction=down], button[data-direction=all]”)),r||(i=(0,E.u6)((0,E.qX)(e,d,d),0),a=document.querySelector(`[data-grid-cell-id=${i}]`),r=a?.querySelector(“button[data-direction=up], button[data-direction=all]”)),i&&a&&(r?r.focus():a.focus(),n.focusGridCell(i),tT(a))}else if(“BUTTON”===document.activeElement.tagName)tT(document.activeElement.closest(“td”));else if(“TD”===document.activeElement.tagName){let e=document.activeElement.getAttribute(“data-grid-cell-id”),t=n.focusedGridCell?.cellId;if(e!==t){let e=i.current?.querySelector(`[data-grid-cell-id=${t}]`);e?.focus()}}}}},[e,t,n,r,a,i])};var tF=n(69676);let t$={ArrowLeft:tF.z0.ArrowHorizontal,ArrowDown:tF.z0.ArrowVertical,ArrowUp:tF.z0.ArrowVertical,ArrowRight:tF.z0.ArrowHorizontal,h:tF.z0.HL,j:tF.z0.JK,k:tF.z0.JK,l:tF.z0.HL,a:tF.z0.AD,s:tF.z0.WS,w:tF.z0.WS,d:tF.z0.AD,Tab:tF.z0.Tab,Home:tF.z0.HomeAndEnd,End:tF.z0.HomeAndEnd,PageUp:tF.z0.PageUpDown,PageDown:tF.z0.PageUpDown,Backspace:tF.z0.Backspace},tM=tF.z0.ArrowAll|tF.z0.PageUpDown|tF.z0.HomeAndEnd|tF.z0.AD,tB={avatarUrl:”https://avatars.githubusercontent.com/ghost”,id:”ghost”,login:”ghost”,url:”/ghost”,__typename:”Author”},tV=(0,a.GV)()?function(e,t){let n,i,a,s=(0,r.c)(6);s[0]!==t?(n=e=>{let n=e.target.getAttribute(“data-grid-cell-id”);n&&t.focusGridCell(n)},s[0]=t,s[1]=n):n=s[1];let o=n;s[2]!==e||s[3]!==o?(i=()=>{let t=e.current;return t?.addEventListener(“focusin”,o),()=>t?.removeEventListener(“focusin”,o)},a=[e,o],s[2]=e,s[3]=o,s[4]=i,s[5]=a):(i=s[4],a=s[5]),(0,l.useEffect)(i,a)}:function(e,t){let n=(0,l.useCallback)(e=>{let n=e.target.getAttribute(“data-grid-cell-id”);n&&t.focusGridCell(n)},[t]);(0,l.useEffect)(()=>{let t=e.current;return t?.addEventListener(“focusin”,n),()=>t?.removeEventListener(“focusin”,n)},[e,n])};function tU(e){return e in t$&&(t$[e]&tM)>0}function tG({addLineToSelection:e,clearSelectedLines:t,containerRef:n,fileAnchor:i,getfirstLineSelectionOnDrag:a,isSplitDiff:r,leftLines:s,rightLines:o,selectMultipleLines:d,disabled:c}){let u=(0,l.useRef)(void 0),m=(0,l.useMemo)(()=>new GridNavigator(i,r,s,o,u.current?.focusedGridCell?.cellId),[i,r,s,o]);(0,l.useEffect)(()=>{u.current=m},[m]),(0,l.useEffect)(()=>{let e=n.current,t=()=>{m.clearLastSelectedCell()};return e?.addEventListener(“mousedown”,t),()=>e?.removeEventListener(“mousedown”,t)},[n,m]),tP(i,s,m,n,u.current,o),tV(n,m);let f=(0,l.useCallback)((n,i,r)=>{let s=m.getValidSelectableRowCell();switch(!0){case(r.metaKey||r.ctrlKey)&&”KeyA”===r.code:{let e=m.getFirstCodeCell(),t=m.getLastCodeCell();if(!e||!t)return i;return e.lineKey&&e.lineNumber&&e.orientation&&d({endLineKey:t.lineKey,endOrientation:t.orientation,startLineKey:e.lineKey,startOrientation:e.orientation,firstLineSelectionOnDrag:{lineKey:e.lineKey,lineNumber:e.lineNumber,orientation:e.orientation,shouldStartConversation:!1}},eC),i}case r.shiftKey&&”ArrowDown”===r.key:{let t=m.getNextSelectableCell(“ArrowDown”);if(!t||!s)return i;return a()?e({lineKey:t.lineKey,orientation:t.orientation},eC):s.lineKey&&s.lineNumber&&s.orientation&&d({endLineKey:t.lineKey,endOrientation:t.orientation,startLineKey:s.lineKey,startOrientation:s.orientation,firstLineSelectionOnDrag:{lineKey:s.lineKey,lineNumber:s.lineNumber,orientation:s.orientation,shouldStartConversation:!1}},eC),tH(t.cellId),i}case r.shiftKey&&”ArrowUp”===r.key:{let t=m.getNextSelectableCell(“ArrowUp”);if(!t||!s)return i;return a()?e({lineKey:t.lineKey,orientation:t.orientation},eC):s.lineKey&&s.lineNumber&&s.orientation&&d({endLineKey:s.lineKey,endOrientation:s.orientation,startLineKey:t.lineKey,startOrientation:t.orientation,firstLineSelectionOnDrag:{lineKey:s.lineKey,lineNumber:s.lineNumber,orientation:s.orientation,shouldStartConversation:!1}},eC),tH(t.cellId),i}case”ArrowLeft”===r.key&&r.metaKey&&r.shiftKey:return i;default:{let e=m.moveToNextItem(r.key,r.ctrlKey),n=e&&document.querySelector(`[data-grid-cell-id=${e.cellId}]`);return t(),m.clearLastSelectedCell(),n??void 0}}},[e,a,m,d,t]);return(0,tt.G)({containerRef:n,bindKeys:tM,getNextFocusable:f,focusableElementFilter:e=>”TD”===e.tagName&&”gridcell”===e.getAttribute(“role”),focusInStrategy:”previous”,disabled:c},[f]),{gridNavigator:m}}function tH(e){let t=g.XC?.querySelector(`[data-grid-cell-id=${e}]`);!function(e){if(!g.XC||!g.cg||!e)return!1;let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(g.cg.innerHeight||g.XC.documentElement.clientHeight)&&t.right<=(g.cg.innerWidth||g.XC.documentElement.clientWidth)}(t)&&t?.scrollIntoView({block:"nearest",inline:"nearest"})}var tq=n(21537),tz=n(30459),tK=n(50899),tW=n(54571);let tZ=(0,a.GV)()?function(e,t){let n,i,a,s,l,o=(0,r.c)(17),{sendAnalyticsEvent:d}=(0,tz.s)(),c=B(),u=(0,I.ww)(),m=H();o[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],o[0]=n):n=o[0];let[f]=(0,tW.I)(tX,!0,n);o[1]!==c||o[2]!==e?(i=function(t){if(!t)return"DELETION"!==e.type;let n=c(t)?.selectedLeftLines;return n?!!n?.every(tQ):"right"===t.startOrientation&&"right"===t.endOrientation||(t.startLineNumber===t.endLineNumber&&t.startOrientation===t.endOrientation?"DELETION"!==e.type:void 0)},o[1]=c,o[2]=e,o[3]=i):i=o[3];let h=i;o[4]!==c||o[5]!==f||o[6]!==e?(a=function(t){let n=t?c(t)?.selectedRightLines:[];if(t&&n&&n.length>1)return f?””:(0,E.Ls)(n);if(!e)return””;let[i]=(0,E.dv)(e.text,e.type);return i},o[4]=c,o[5]=f,o[6]=e,o[7]=a):a=o[7];let p=a;o[8]!==p||o[9]!==u||o[10]!==d||o[11]!==h?(s=function(e,t){let n=!!(h(e)&&!u);return{isValidSuggestionRange:n,showSuggestChangesButton:n,sourceContentFromDiffLines:n?p(e):void 0,onInsertSuggestedChange:()=>{d(“diff.add_suggested_change”,”ADD_SUGGESTED_CHANGE_BUTTON”)},shouldInsertSuggestedChange:t}},o[8]=p,o[9]=u,o[10]=d,o[11]=h,o[12]=s):s=o[12];let g=(0,tK.K)(s);return o[13]!==g||o[14]!==m||o[15]!==t?(l={getSelectedLineRange:m,configureSuggestedChangesFromLineRange:g,shouldStartNewConversationWithSuggestedChange:t},o[13]=g,o[14]=m,o[15]=t,o[16]=l):l=o[16],l}:function(e,t){let{sendAnalyticsEvent:n}=(0,tz.s)(),i=B(),a=(0,I.ww)(),r=H(),[s]=(0,tW.I)(()=>!1,!0,[]),o=(0,tK.K)(function(t,r){let l=!!(function(t){if(!t)return”DELETION”!==e.type;let n=i(t)?.selectedLeftLines;return n?!!n?.every(e=>”empty-diff-line”!==e&&”DELETION”!==e.type):”right”===t.startOrientation&&”right”===t.endOrientation||(t.startLineNumber===t.endLineNumber&&t.startOrientation===t.endOrientation?”DELETION”!==e.type:void 0)}(t)&&!a);return{isValidSuggestionRange:l,showSuggestChangesButton:l,sourceContentFromDiffLines:l?function(t){let n=t?i(t)?.selectedRightLines:[];if(t&&n&&n.length>1)return s?””:(0,E.Ls)(n);if(!e)return””;let[a]=(0,E.dv)(e.text,e.type);return a}(t):void 0,onInsertSuggestedChange:()=>{n(“diff.add_suggested_change”,”ADD_SUGGESTED_CHANGE_BUTTON”)},shouldInsertSuggestedChange:r}});return(0,l.useMemo)(()=>({getSelectedLineRange:r,configureSuggestedChangesFromLineRange:o,shouldStartNewConversationWithSuggestedChange:t}),[o,r,t])};function tQ(e){return”empty-diff-line”!==e&&”DELETION”!==e.type}function tX(){return!1}var tJ=n(20622),tY=n(48845),t0=n(97665),t1=n(94747),t2=n(96379),t3=n(69510),t4=n(43362);let t5=(0,a.Z6)()?function(){let e,t,n,i=(0,r.c)(12),a=(0,I.Kp)(),s=(0,t0.jE)(),l=`${a}/page_data/${tJ.uT.createReviewComment}`,{updateThread:d}=(0,I.an)(),{onCommentThreadAdded:c}=(0,I.Ud)(),{addPendingComment:u,clearPendingReview:m}=(0,I._N)();return i[0]!==l?(e=async e=>{let t=await (0,t2.Sr)(`${l}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),n=await (0,tY.hp)(t);return(0,tY.R)(t,n),n},i[0]=l,i[1]=e):e=i[1],i[2]!==u||i[3]!==a||i[4]!==m||i[5]!==c||i[6]!==s||i[7]!==d?(t=(e,t)=>{let n=t.subjectType===o.Wr.File?”FILE”:”right”===t.side?`R${t.line}`:`L${t.line}`,i=t.startSide&&t.startLine?”right”===t.startSide?`R${t.startLine}`:`L${t.startLine}`:void 0;void 0!==t.submitBatch&&!t.submitBatch&&e.thread&&u(Number(e.thread.id)),t.submitBatch&&m(),d(Number(e.thread.id),t.path,n,()=>{let n=(0,t4.YY)(t);return e.thread.subject=n,e.thread.positioning=n,e.thread}),c({path:t.path,diffLineKey:n,startPosition:i,threadID:e.thread.id}),s.invalidateQueries({queryKey:(0,t3.XG)(a)})},i[2]=u,i[3]=a,i[4]=m,i[5]=c,i[6]=s,i[7]=d,i[8]=t):t=i[8],i[9]!==e||i[10]!==t?(n={mutationFn:e,onSuccess:t},i[9]=e,i[10]=t,i[11]=n):n=i[11],(0,t1.n)(n)}:function(){let e=(0,I.Kp)(),t=(0,t0.jE)(),n=`${e}/page_data/${tJ.uT.createReviewComment}`,{updateThread:i}=(0,I.an)(),{onCommentThreadAdded:a}=(0,I.Ud)(),{addPendingComment:r,clearPendingReview:s}=(0,I._N)();return(0,t1.n)({mutationFn:async e=>{let t=await (0,t2.Sr)(`${n}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),i=await (0,tY.hp)(t);return(0,tY.R)(t,i),i},onSuccess:(n,l)=>{let d=l.subjectType===o.Wr.File?”FILE”:”right”===l.side?`R${l.line}`:`L${l.line}`,c=l.startSide&&l.startLine?”right”===l.startSide?`R${l.startLine}`:`L${l.startLine}`:void 0;void 0!==l.submitBatch&&!l.submitBatch&&n.thread&&r(Number(n.thread.id)),l.submitBatch&&s(),i(Number(n.thread.id),l.path,d,()=>{let e=(0,t4.YY)(l);return n.thread.subject=e,n.thread.positioning=e,n.thread}),a({path:l.path,diffLineKey:d,startPosition:c,threadID:n.thread.id}),t.invalidateQueries({queryKey:(0,t3.XG)(e)})}})};var t6=new WeakMap,t7=new WeakMap,t8=new WeakMap,t9=new WeakMap,ne=new WeakMap,nt=new WeakMap,nn=new WeakMap,ni=new WeakSet,na=new WeakSet,nr=new WeakSet;let ReviewCommentFactory=class ReviewCommentFactory{fileRequestData(){return{…(0,tr._)(this,nr,no).call(this),path:(0,tn._)(this,t7),subjectType:o.Wr.File}}lineRequestData(e,t){let n=t&&!(0,E.Ji)(e)?”left”:”right”;return{…(0,tr._)(this,nr,no).call(this),line:e.blobLineNumber,path:(0,tr._)(this,ni,ns).call(this,n),positioning:{type:o.Wr.Line,baseCommitOid:(0,tn._)(this,t6),headCommitOid:(0,tn._)(this,t8),path:(0,tr._)(this,ni,ns).call(this,n),line:e.blobLineNumber,commitOid:(0,tr._)(this,na,nl).call(this,n)},side:n,subjectType:o.Wr.Line}}multilineRequestData(e){let{endLineNumber:t,endOrientation:n,startLineNumber:i,startOrientation:a}=e,r=”left”===n?”left”:”right”,s=”left”===a?”left”:”right”;return{…(0,tr._)(this,nr,no).call(this),line:t,path:(0,tr._)(this,ni,ns).call(this,r),positioning:{baseCommitOid:(0,tn._)(this,t6),headCommitOid:(0,tn._)(this,t8),type:o.Wr.Multiline,startPath:(0,tr._)(this,ni,ns).call(this,s),startLine:i,startCommitOid:(0,tr._)(this,na,nl).call(this,s),endPath:(0,tr._)(this,ni,ns).call(this,r),endLine:t,endCommitOid:(0,tr._)(this,na,nl).call(this,r)},side:r,startLine:i,startSide:s,subjectType:o.Wr.Multiline}}constructor({filePath:e,newTreeEntry:t,oldTreeEntry:n,effectiveDiffRange:i,submitBatch:a,text:r}){(0,ts._)(this,ni),(0,ts._)(this,na),(0,ts._)(this,nr),(0,ti._)(this,t6,{writable:!0,value:void 0}),(0,ti._)(this,t7,{writable:!0,value:void 0}),(0,ti._)(this,t8,{writable:!0,value:void 0}),(0,ti._)(this,t9,{writable:!0,value:void 0}),(0,ti._)(this,ne,{writable:!0,value:void 0}),(0,ti._)(this,nt,{writable:!0,value:void 0}),(0,ti._)(this,nn,{writable:!0,value:void 0}),(0,ta._)(this,t6,i.baseOid),(0,ta._)(this,t7,e),(0,ta._)(this,t8,i.headOid),(0,ta._)(this,t9,t),(0,ta._)(this,ne,n),(0,ta._)(this,nt,a),(0,ta._)(this,nn,r)}};function ns(e){return”left”===e&&(0,tn._)(this,ne)?.path&&(0,tn._)(this,t9)?.path&&(0,tn._)(this,ne).path!==(0,tn._)(this,t9).path?(0,tn._)(this,ne).path:(0,tn._)(this,t7)}function nl(e){return”left”===e?(0,tn._)(this,t6):(0,tn._)(this,t8)}function no(){return{comparisonEndOid:(0,tn._)(this,t8),comparisonStartOid:(0,tn._)(this,t6),text:(0,tn._)(this,nn),submitBatch:(0,tn._)(this,nt)}}let nd=(e,t)=>!!e&&!!t.startLineNumber&&!!t.endLineNumber&&t.startLineNumber!==t.endLineNumber,nc=(0,a.GV)()?function(e,t,n){let i,a=(0,r.c)(4),s=H();e:{let r,l;if(!e){i=””;break e}a[0]!==s||a[1]!==n?(r=n?s():void 0,a[0]=s,a[1]=n,a[2]=r):r=a[2];let o=r,d=!!o&&o.startLineNumber!==o.endLineNumber;if(o&&d){let e;a[3]===Symbol.for(“react.memo_cache_sentinel”)?(e={left:”L”,right:”R”},a[3]=e):e=a[3];let t=e,n=t[o.startOrientation],i=t[o.endOrientation];l=o.startLineNumber!==o.endLineNumber?` lines ${n}${o.startLineNumber} to ${i}${o.endLineNumber}`:` line ${n}${o.startLineNumber}`}else{let n=t&&!(0,E.Ji)(e)?”L”:”R”;l=` line ${n}${e.blobLineNumber}`}i=l}return i}:function(e,t,n){let i=H();return(0,l.useMemo)(()=>{if(!e)return””;let a=n?i():void 0,r=””,s=!!a&&a.startLineNumber!==a.endLineNumber;if(a&&s){let e={left:”L”,right:”R”},t=e[a.startOrientation],n=e[a.endOrientation];r+=a.startLineNumber!==a.endLineNumber?` lines ${t}${a.startLineNumber} to ${n}${a.endLineNumber}`:` line ${t}${a.startLineNumber}`}else{let n=t&&!(0,E.Ji)(e)?”L”:”R”;r+=` line ${n}${e.blobLineNumber}`}return r},[e,t,n,i])},nu=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f,h,p,g,x,b=(0,r.c)(38);if(b[0]!==e){let{diffAnchor:i,isInDialogMode:r,isOpen:l,onCloseCommentDialog:m,onAddComment:f,startLineNumber:h,diffLine:p,shouldStartNewConversationWithSuggestedChange:g,…x}=e;n=r,a=l,o=m,s=f,u=h,t=p,c=g,d=x,b[0]=e,b[1]=t,b[2]=n,b[3]=a,b[4]=s,b[5]=o,b[6]=d,b[7]=c,b[8]=u}else t=b[1],n=b[2],a=b[3],s=b[4],o=b[5],d=b[6],c=b[7],u=b[8];let{sendAnalyticsEvent:v}=(0,tz.s)(),y=(0,l.useRef)(null),j=H(),C=tZ(t,c),{newTreeEntry:w,oldTreeEntry:N}=et(),{effectiveRange:S}=(0,I.L3)(),{baseOid:L,headOid:D}=(0,I.E4)(),_=(0,eG.u)(“cotd_ui”),R=t?.type===”DELETION”,A=nc(t,!!R,!1),{mutate:k}=t5();b[9]!==_||b[10]!==k||b[11]!==t||b[12]!==S||b[13]!==D||b[14]!==j||b[15]!==R||b[16]!==w||b[17]!==N||b[18]!==d||b[19]!==L?(m=e=>{let{onCompleted:n,onError:i,submitBatch:a,text:r}=e;if(!t)return;let s=j();if(_){let e=new ReviewCommentFactory({filePath:d.filePath,newTreeEntry:w,oldTreeEntry:N,effectiveDiffRange:S,submitBatch:a,text:r});k(s&&nd(!1,s)?e.multilineRequestData(s):e.lineRequestData(t,R),{onError:i,onSuccess:e=>{n?.(e.thread.id,e.comment?.databaseId)}})}else{s&&(s.startLineNumber,s.endLineNumber);let e,l,o=t.blobLineNumber,c=R&&!(0,E.Ji)(t)?”left”:”right”;k({text:r,line:o,path:d.filePath,side:c,startSide:l,submitBatch:a,startLine:e,comparisonEndOid:D,comparisonStartOid:L},{onError:i,onSuccess:e=>{n?.(e.thread.id,e.comment?.databaseId)}})}},b[9]=_,b[10]=k,b[11]=t,b[12]=S,b[13]=D,b[14]=j,b[15]=R,b[16]=w,b[17]=N,b[18]=d,b[19]=L,b[20]=m):m=b[20];let T=m;e:{if(a&&C?.configureSuggestedChangesFromLineRange){let e;if(b[21]!==j||b[22]!==C){let t=j();e=C.configureSuggestedChangesFromLineRange(t,C?.shouldStartNewConversationWithSuggestedChange),b[21]=j,b[22]=C,b[23]=e}else e=b[23];f=e;break e}f=void 0}let O=f;if(!a)return null;b[24]===Symbol.for(“react.memo_cache_sentinel”)?(h=e=>{e.target===y.current&&y.current.querySelector(“textarea”)?.focus()},b[24]=h):h=b[24];let P=h,F=n?0:-1;b[25]!==o||b[26]!==v?(p=e=>{o(e),v(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”)},b[25]=o,b[26]=v,b[27]=p):p=b[27];let $=s||T,M=u??void 0;return b[28]!==A||b[29]!==O||b[30]!==d||b[31]!==p||b[32]!==$||b[33]!==M?(g=(0,i.jsx)(eq,{onClose:p,showOnCloseIcon:!1,suggestedChangesConfig:O,onAddComment:$,addCommentDialogTitle:A,startLineNumber:M,…d}),b[28]=A,b[29]=O,b[30]=d,b[31]=p,b[32]=$,b[33]=M,b[34]=g):g=b[34],b[35]!==F||b[36]!==g?(x=(0,i.jsx)(“div”,{className:”rounded-2 bgColor-default”,”data-marker-navigation-new-thread”:!0,”data-marker-id”:”new-comment”,ref:y,tabIndex:F,onFocus:P,children:g}),b[35]=F,b[36]=g,b[37]=x):x=b[37],x}:function({diffAnchor:e,isInDialogMode:t,isOpen:n,onCloseCommentDialog:a,onAddComment:r,startLineNumber:s,diffLine:o,shouldStartNewConversationWithSuggestedChange:d,…c}){let{sendAnalyticsEvent:u}=(0,tz.s)(),m=(0,l.useRef)(null),f=H(),h=tZ(o,d),{newTreeEntry:p,oldTreeEntry:g}=et(),{effectiveRange:x}=(0,I.L3)(),{baseOid:b,headOid:v}=(0,I.E4)(),y=(0,eG.u)(“cotd_ui”),j=o?.type===”DELETION”,C=nc(o,!!j,!1),w=(0,l.useMemo)(()=>{},[f,!1]),{mutate:N}=t5(),S=(0,l.useMemo)(()=>{if(n&&h?.configureSuggestedChangesFromLineRange){let e=f();return h.configureSuggestedChangesFromLineRange(e,h?.shouldStartNewConversationWithSuggestedChange)}},[n,h,f]);return n?(0,i.jsx)(“div”,{className:”rounded-2 bgColor-default”,”data-marker-navigation-new-thread”:!0,”data-marker-id”:”new-comment”,ref:m,tabIndex:t?0:-1,onFocus:e=>{e.target===m.current&&m.current.querySelector(“textarea”)?.focus()},children:(0,i.jsx)(eq,{onClose:e=>{a(e),u(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”)},showOnCloseIcon:!1,suggestedChangesConfig:S,onAddComment:r||(({onCompleted:e,onError:t,submitBatch:n,text:i})=>{if(!o)return;let a=f();if(y){let r=new ReviewCommentFactory({filePath:c.filePath,newTreeEntry:p,oldTreeEntry:g,effectiveDiffRange:x,submitBatch:n,text:i});N(a&&nd(!1,a)?r.multilineRequestData(a):r.lineRequestData(o,j),{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment?.databaseId)}})}else{let r,s,l=!!a&&a.startLineNumber!==a.endLineNumber,d=o.blobLineNumber,u=j&&!(0,E.Ji)(o)?”left”:”right”;N({text:i,line:d,path:c.filePath,side:u,startSide:s,submitBatch:n,startLine:r,comparisonEndOid:v,comparisonStartOid:b},{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment?.databaseId)}})}}),addCommentDialogTitle:C,startLineNumber:s??w,…c})}):null};try{nu.displayName||(nu.displayName=”StartConversation”)}catch{}var nm=n(2265);let nf=tF.z0.ArrowAll;tF.z0.ArrowHorizontal,tF.z0.ArrowVertical,tF.z0.ArrowVertical,tF.z0.ArrowHorizontal;let MarkerNavigator=class MarkerNavigator{focusMarker(e){let t=this.markers.findIndex(t=>t.id.toString()===e.toString());-1!==t&&(this.currentMarkerPosition={markerId:e,index:t})}get focusedMarker(){if(this.currentMarkerPosition)return this.markers[this.currentMarkerPosition.index]}moveToFirstComment(e){if(0!==this.markers.length&&!e)return}moveToNextMarker(e,t){let n;if(0===this.markers.length)return;if(t){let e=t.closest(“[data-marker-id]”),n=e?.getAttribute(“data-marker-id”);n&&(this.currentMarkerPosition={markerId:n,index:this.markers.findIndex(e=>e.id.toString()===n.toString())})}if(!this.currentMarkerPosition){let t=”ArrowUp”===e?this.markers.length-1:0,n=this.markers[t];if(!n)return;return this.currentMarkerPosition={markerId:n.id,index:t},this.markers[t]}let i=0===this.currentMarkerPosition.index,a=this.currentMarkerPosition.index===this.markers.length-1;switch(e){case”ArrowDown”:if(a)return;n=(this.currentMarkerPosition.index+1)%this.markers.length;break;case”ArrowUp”:if(i)return;n=(this.currentMarkerPosition.index-1+this.markers.length)%this.markers.length;break;default:return}let r=this.markers[n];if(r)return this.currentMarkerPosition={markerId:r.id,index:n},r}moveToNextMarkerItem(e,t){let n;if(!t||!this.markerComments)return;let i=t.closest(“[data-marker-id]”),a=i?.getAttribute(“data-marker-id”);if(!i||!a)return;let r=this.markerComments[a]||[];if(0===r.length)return;let s=t.getAttribute(“data-marker-navigation-comment-id”),l=r.findIndex(e=>e.id===s);if(-1===l)return;let o=l===r.length-1;switch(e){case”ArrowDown”:if(o)return;n=l+1;break;case”ArrowUp”:if(0===l)return;n=l-1;break;default:return}let d=r[n];if(d)return this.currentMarkerCommentPosition={markerId:d.id,index:n},d}constructor(e,t,n){if((0,tl._)(this,”markers”,void 0),(0,tl._)(this,”markerComments”,null),(0,tl._)(this,”currentMarkerPosition”,null),(0,tl._)(this,”currentMarkerCommentPosition”,null),this.markers=e.map(e=>{let t=e.id;return{…e,id:t}}),this.markerComments=e.reduce((e,t)=>{let n=document.querySelectorAll(`[data-marker-navigation-comment-thread-id=”${t.id}”]`);if(n){let i=Array.from(n).map(e=>({id:e.getAttribute(“data-marker-navigation-comment-id”)}));return{…e,[t.id.toString()]:i}}return e},{}),t&&!n){const e=this.markers.findIndex(e=>e.id.toString()===t.toString());-1!==e&&(this.currentMarkerPosition={markerId:t,index:e})}}};function nh({containerRef:e,markers:t,disabled:n=!1,focusInStrategy:i=”previous”}){let a=(0,l.useRef)(void 0),r=(0,l.useRef)(void 0);(0,l.useEffect)(()=>{r.current=new MarkerNavigator(t,a.current?.focusedMarker?.id||void 0),a.current=r.current},[t]);let s=(0,l.useCallback)((e,t,n)=>{let i=n.key,a=!np(t)&&!ng(t)&&!ny(t)&&!nx(t);switch(!0){case a&&(“ArrowUp”===i||”ArrowDown”===i||”ArrowRight”===i||”ArrowLeft”===i):return nv(t)||nb(t)||void 0;case”ArrowUp”===i||”ArrowDown”===i:if(r.current&&np(t)){let e=r.current.moveToNextMarker(i,nb(t));if(e)return document.querySelector(`[data-marker-id=”${e.id}”]`)||void 0;return t}if(r.current&&nx(t)){let e=r.current.moveToNextMarker(i,nx(t));if(e)return document.querySelector(`[data-marker-id=”${e.id}”]`)||void 0;return t}if(r.current&&ny(t)){let e=r.current.moveToNextMarkerItem(i,ny(t));if(e)return document.querySelector(`[data-marker-navigation-comment-id=”${e.id}”]`)||void 0;return t}if(r.current&&ng(t)){let e=r.current.moveToNextMarkerItem(i,t);if(e)return document.querySelector(`[data-marker-navigation-comment-id=”${e.id}”]`)||void 0}return t;case”ArrowRight”===i:if(ng(t))return nv(t);if(np(t))return t?.querySelector(‘[data-first-thread-comment=”true”]’)||void 0;return t;case”ArrowLeft”===i:if(np(t))return nb(t);if(nx(t))return nx(t);if(ny(t))return ny(t);if(ng(t))return t?.closest(“[data-marker-id]”)||void 0;return t;default:return t??void 0}},[r]);return(0,tt.G)({containerRef:e,bindKeys:nf,getNextFocusable:s,focusableElementFilter:e=>!n&&!!(e.hasAttribute(“data-marker-id”)&&e.hasAttribute(“data-marker-navigation-comment-id”)),focusInStrategy:i,disabled:n},[s,n]),{markerNavigator:r}}function np(e){return!!e?.hasAttribute(“data-marker-id”)}function ng(e){return!!e?.hasAttribute(“data-marker-navigation-comment-id”)}function nx(e){return e?.closest(“[data-marker-navigation-new-thread]”)??void 0}function nb(e){return e?.closest(“[data-marker-id]”)??void 0}function nv(e){return e?.closest(“[data-marker-navigation-comment-id]”)??void 0}function ny(e){return e?.closest(“[data-marker-navigation-thread-reply]”)??void 0}var nj=n(48505);let nC=”a, audio, button, details, embed, iframe, img, input, keygen, label, object, select, textarea, video”;function nw(e){e?.setAttribute(“aria-hidden”,”true”),!function t(n=0){setTimeout(()=>{let n=Array.from(e?.querySelectorAll(“*”)??[]),i=Array.from(e?.querySelectorAll(nC)??[]);if(0===i.length)return t(200);for(let e of n)e?.setAttribute(“aria-hidden”,”true”);for(let e of i)e.setAttribute(“tabindex”,”-1″)},n)}()}function nN(e){for(let t of(e?.setAttribute(“aria-hidden”,”false”),Array.from(e?.querySelectorAll(“*”)??[])))t?.setAttribute(“aria-hidden”,”false”);for(let t of Array.from(e?.querySelectorAll(nC)??[]))t.setAttribute(“tabindex”,”0″)}let nS=(0,a.GV)()?function(e){let t,n,i=(0,r.c)(7),{commentSubjectType:a,gridCellId:s,markerRef:o,isThread:d,thread:c}=e,u=void 0!==d&&d,m=K(s);i[0]!==a||i[1]!==m||i[2]!==u||i[3]!==o||i[4]!==c?(t=()=>{let e=null;if(!u||c)return m?”commit”===a?e=setTimeout(()=>{nN(o.current)},100):nN(o.current):nw(o.current),()=>{e&&clearTimeout(e)}},n=[m,a,o,u,c],i[0]=a,i[1]=m,i[2]=u,i[3]=o,i[4]=c,i[5]=t,i[6]=n):(t=i[5],n=i[6]),(0,l.useEffect)(t,n)}:function({commentSubjectType:e,gridCellId:t,markerRef:n,isThread:i=!1,thread:a}){let r=K(t);(0,l.useEffect)(()=>{let t=null;if(!i||a)return r?”commit”===e?t=setTimeout(()=>{nN(n.current)},100):nN(n.current):nw(n.current),()=>{t&&clearTimeout(t)}},[r,e,n,i,a])};var nL=n(86909);let nD=”InlineAnnotation-module__inlineAnnotation–bVDzc”,nI=(0,a.GV)()?function(e){let t,n,a,s,o=(0,r.c)(14),{annotation:d,gridCellId:c,isFirstMarker:u}=e,m=(0,l.useRef)(null),f=K(c);o[0]!==c?(t={commentSubjectType:”pull request”,gridCellId:c,markerRef:m},o[0]=c,o[1]=t):t=o[1],nS(t);let h=`annotation_${d.databaseId}`,p=u?”mb-1″:”mb-2″;o[2]!==p?(n=(0,b.$)(“border rounded-2 color-border-default color-shadow-small overflow-hidden”,p,nD),o[2]=p,o[3]=n):n=o[3];let g=`annotation-${d.id}`,x=`${d.id}`,v=f?0:-1;return o[4]!==d?(a=(0,i.jsx)(nL.YH,{annotation:d}),o[4]=d,o[5]=a):a=o[5],o[6]!==d.annotationLevel||o[7]!==h||o[8]!==n||o[9]!==g||o[10]!==x||o[11]!==v||o[12]!==a?(s=(0,i.jsx)(“div”,{id:h,ref:m,className:n,”data-level”:d.annotationLevel,”data-testid”:g,”data-marker-id”:x,tabIndex:v,children:a}),o[6]=d.annotationLevel,o[7]=h,o[8]=n,o[9]=g,o[10]=x,o[11]=v,o[12]=a,o[13]=s):s=o[13],s}:function({annotation:e,gridCellId:t,isFirstMarker:n}){let a=(0,l.useRef)(null),r=K(t);return nS({commentSubjectType:”pull request”,gridCellId:t,markerRef:a}),(0,i.jsx)(“div”,{id:`annotation_${e.databaseId}`,ref:a,className:(0,b.$)(“border rounded-2 color-border-default color-shadow-small overflow-hidden”,n?”mb-1″:”mb-2″,nD),”data-level”:e.annotationLevel,”data-testid”:`annotation-${e.id}`,”data-marker-id”:`${e.id}`,tabIndex:r?0:-1,children:(0,i.jsx)(nL.YH,{annotation:e})})};try{nI.displayName||(nI.displayName=”InlineAnnotation”)}catch{}let n_=”InlineMarkers-module__closeMarkersDialogButton–wdW2G”,nR=”InlineMarkers-module__markersWrapper–Fw1hl”,nA=”InlineMarkers-module__fileMarkersWrapper–rXaAB”,nk=”InlineMarkers-module__markersDialogActive–v0PSm”;var nE=n(33643),nT=n(75202),nO=n(82075),nP=n(26607),nF=n(72511),n$=n(76720);let nM=(0,a.GV)()?function(){let e,t,n,a=(0,r.c)(3);return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(n$.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:24,className:”fgColor-muted mt-3 mb-3″})}),a[0]=e):e=a[0],a[1]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsx)(n$.E.Heading,{children:(0,i.jsx)(“strong”,{children:”Comments cannot be loaded right now”})}),a[1]=t):t=a[1],a[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(“div”,{className:”position-relative”,children:(0,i.jsxs)(n$.E,{border:!0,children:[e,t,(0,i.jsx)(“div”,{className:”mb-n2″,children:(0,i.jsx)(n$.E.Description,{children:”Refresh the page or try again later”})}),(0,i.jsx)(n$.E.SecondaryAction,{href:”https://www.githubstatus.com/”,children:”GitHub status”})]})}),a[2]=n):n=a[2],n}:function(){return(0,i.jsx)(“div”,{className:”position-relative”,children:(0,i.jsxs)(n$.E,{border:!0,children:[(0,i.jsx)(n$.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:24,className:”fgColor-muted mt-3 mb-3″})}),(0,i.jsx)(n$.E.Heading,{children:(0,i.jsx)(“strong”,{children:”Comments cannot be loaded right now”})}),(0,i.jsx)(“div”,{className:”mb-n2″,children:(0,i.jsx)(n$.E.Description,{children:”Refresh the page or try again later”})}),(0,i.jsx)(n$.E.SecondaryAction,{href:”https://www.githubstatus.com/”,children:”GitHub status”})]})})};try{nM.displayName||(nM.displayName=”CommentErrorFallback”)}catch{}let nB=”InlineReviewThread-module__inlineReviewThreadHeading–CBLMR”,nV=”InlineReviewThread-module__ReviewThreadContainer–MW9GI”,nU=”InlineReviewThread-module__ResolvableContainer–FkZ8G”,nG=”InlineReviewThread-module__ThreadLoading–UIhR9″;var nH=n(11738),nq=n(96760),nz=n(11680);let nK=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(13),l=(0,I.Kp)(),o=(0,t0.jE)(),d=`${l}/page_data/${tJ.uT.createReviewComment}`,{updateThread:c}=(0,I.an)(),{addPendingComment:u,clearPendingReview:m}=(0,I._N)();return s[0]!==d?(n=async e=>{let t=await (0,t2.Sr)(`${d}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),n=await (0,tY.hp)(t);return(0,tY.R)(t,n),n},s[0]=d,s[1]=n):n=s[1],s[2]!==u||s[3]!==l||s[4]!==m||s[5]!==e||s[6]!==t||s[7]!==o||s[8]!==c?(i=(n,i)=>(void 0!==i.submitBatch&&!i.submitBatch&&n.thread&&u(Number(n.thread.id)),i.submitBatch&&m(),c(Number(n.thread.id),e,t,e=>n.thread),o.invalidateQueries({queryKey:(0,t3.XG)(l)})),s[2]=u,s[3]=l,s[4]=m,s[5]=e,s[6]=t,s[7]=o,s[8]=c,s[9]=i):i=s[9],s[10]!==n||s[11]!==i?(a={mutationFn:n,onSuccess:i},s[10]=n,s[11]=i,s[12]=a):a=s[12],(0,t1.n)(a)}:function(e,t){let n=(0,I.Kp)(),i=(0,t0.jE)(),a=`${n}/page_data/${tJ.uT.createReviewComment}`,{updateThread:r}=(0,I.an)(),{addPendingComment:s,clearPendingReview:l}=(0,I._N)();return(0,t1.n)({mutationFn:async e=>{let t=await (0,t2.Sr)(`${a}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),n=await (0,tY.hp)(t);return(0,tY.R)(t,n),n},onSuccess:(a,o)=>(void 0!==o.submitBatch&&!o.submitBatch&&a.thread&&s(Number(a.thread.id)),o.submitBatch&&l(),r(Number(a.thread.id),e,t,e=>a.thread),i.invalidateQueries({queryKey:(0,t3.XG)(n)}))})};var nW=n(80081),nZ=n(95542);let nQ=”ReviewThread-module__ReviewThreadContainer–s6e8A”;var nX=n(61219);let nJ=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f,p=(0,r.c)(82),{batchingEnabled:x,commentAnchorPrefix:b,lineMarkersKey:v,disableDialogMode:y,enableDialogMode:j,filePath:C,gridCellId:w,isInlineComment:N,isInDialogMode:S,onDeleteLineComment:L,thread:D,threadPositionNumber:_,shouldLimitHeight:R,suggestedChangesConfig:A,viewerData:k,ghostUser:E}=e,T=void 0===R||R,[O,P]=(0,l.useState)(!1),[F,$]=(0,l.useState)(void 0),{sendAnalyticsEvent:M}=(0,tz.s)(),B=(0,I.Kp)(),V=(0,l.useRef)(null),U=(0,l.useRef)(null),{mutate:G}=nK(C,v),{baseOid:H,headOid:q}=(0,I.E4)();p[0]!==G||p[1]!==q||p[2]!==C||p[3]!==M||p[4]!==H||p[5]!==D.commentsData?.comments?(t=e=>{let{commentText:t,onCompleted:n,onError:i,submitBatch:a}=e,r=D.commentsData?.comments[D.commentsData?.comments.length-1];G({text:t,submitBatch:a,inReplyTo:r?.databaseId,path:C,comparisonEndOid:q,comparisonStartOid:H},{onError:i,onSuccess:e=>{var t;(t=e.comment.databaseId)&&h(t.toString()),n?.()}}),M(“comments.add”,”ADD_COMMENT_BUTTON”)},p[0]=G,p[1]=q,p[2]=C,p[3]=M,p[4]=H,p[5]=D.commentsData?.comments,p[6]=t):t=p[6];let z=t;p[7]!==M?(n=()=>{P(!1),$(void 0),M(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”),g.cg?.requestAnimationFrame(()=>V.current?.focus())},p[7]=M,p[8]=n):n=p[8];let K=n;p[9]===Symbol.for(“react.memo_cache_sentinel”)?(a=e=>{$(e),P(!0)},p[9]=a):a=p[9];let W=a;if(!D.commentsData||null===D.commentsData.comments||D.commentsData.comments.length<1)return null;p[10]!==D?(s=(0,nW.Lm)(D),p[10]=D,p[11]=s):s=p[11];let Z=s;p[12]!==Z||p[13]!==D.subjectType?(o=D.subjectType?.toLowerCase()==="line"?{lineRange:Z}:void 0,p[12]=Z,p[13]=D.subjectType,p[14]=o):o=p[14];let Q=o;p[15]!==O?(d=e=>{U.current===e.target&&(O?U.current?.querySelector(“textarea”)?.focus():V.current?.focus())},p[15]=O,p[16]=d):d=p[16];let X=d;if(p[17]!==Q||p[18]!==B||p[19]!==b||p[20]!==y||p[21]!==j||p[22]!==C||p[23]!==E||p[24]!==w||p[25]!==S||p[26]!==N||p[27]!==v||p[28]!==L||p[29]!==A||p[30]!==D.commentsData.__id||p[31]!==D.commentsData.comments||p[32]!==D.id||p[33]!==D.isResolved||p[34]!==D.positioning?.isOutdated||p[35]!==_||p[36]!==k){let e;p[38]!==Q||p[39]!==B||p[40]!==b||p[41]!==y||p[42]!==j||p[43]!==C||p[44]!==E||p[45]!==w||p[46]!==S||p[47]!==N||p[48]!==v||p[49]!==L||p[50]!==A||p[51]!==D.commentsData.__id||p[52]!==D.commentsData.comments.length||p[53]!==D.id||p[54]!==D.isResolved||p[55]!==D.positioning?.isOutdated||p[56]!==_||p[57]!==k?(e=(e,t)=>(function(e,t){return e.reviewVariantType===nj.hH.Automated&&0===t})(e,t)?(0,i.jsx)(nT.t,{fallback:(0,i.jsx)(nZ.k,{}),boundaryName:”AutomatedReviewThreadComment”,children:(0,i.jsx)(nZ.y,{anchorPrefix:b,basePath:B,comment:e,isAnchorable:!0,isInDialogMode:S,isOutdated:D.positioning?.isOutdated,onQuoteReply:W,threadId:D.id,threadPositionNumber:_},e.id)},e.id):(0,i.jsx)(nX.U,{lineMarkersKey:v,isAnchorable:!0,index:t,threadPositionNumber:_,isFirstComment:0===t,isInlineComment:N,isLastChild:t===(D.commentsData?.comments.length??0)-1,anchorPrefix:b,comment:e,commentConnectionId:D.commentsData?.__id,disableDialogMode:y,enableDialogMode:j,filePath:C,gridCellId:w,isInDialogMode:S,isOutdated:D.positioning?.isOutdated,threadId:D.id,onDeleteLineComment:L,onQuoteReply:W,threadCommentCount:D.commentsData?.comments.length,isThreadResolved:!!D.isResolved,suggestedChangesConfig:A,applySuggestedChangesValidationData:Q,viewerData:k,ghostUser:E},e.id),p[38]=Q,p[39]=B,p[40]=b,p[41]=y,p[42]=j,p[43]=C,p[44]=E,p[45]=w,p[46]=S,p[47]=N,p[48]=v,p[49]=L,p[50]=A,p[51]=D.commentsData.__id,p[52]=D.commentsData.comments.length,p[53]=D.id,p[54]=D.isResolved,p[55]=D.positioning?.isOutdated,p[56]=_,p[57]=k,p[58]=e):e=p[58],c=D.commentsData.comments.map(e),p[17]=Q,p[18]=B,p[19]=b,p[20]=y,p[21]=j,p[22]=C,p[23]=E,p[24]=w,p[25]=S,p[26]=N,p[27]=v,p[28]=L,p[29]=A,p[30]=D.commentsData.__id,p[31]=D.commentsData.comments,p[32]=D.id,p[33]=D.isResolved,p[34]=D.positioning?.isOutdated,p[35]=_,p[36]=k,p[37]=c}else c=p[37];return p[59]!==D.reviewCommentsLimit||p[60]!==D.reviewCommentsLimitExceeded?(u=D.reviewCommentsLimitExceeded&&(0,i.jsx)(nz.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${(D.reviewCommentsLimit||0)-1} replies are currently being shown.`,className:”m-3″}),p[59]=D.reviewCommentsLimit,p[60]=D.reviewCommentsLimitExceeded,p[61]=u):u=p[61],p[62]!==z||p[63]!==x||p[64]!==K||p[65]!==C||p[66]!==X||p[67]!==S||p[68]!==O||p[69]!==Z?.endLineNumber||p[70]!==Z?.startLineNumber||p[71]!==F||p[72]!==M||p[73]!==A||p[74]!==D.id||p[75]!==D.viewerCanReply?(m=D.viewerCanReply&&(0,i.jsxs)(“div”,{id:nq.Bq.issueCommentComposer,className:”rounded-bottom-2 p-2 bgColor-inset”,”data-marker-navigation-comment-thread-id”:D.id,”data-marker-navigation-comment-id”:`${D.id}-reply-comment`,”data-marker-navigation-thread-reply”:!0,tabIndex:S?0:-1,onFocus:X,ref:U,children:[O&&(0,i.jsx)(eD,{startLineNumber:Z?.startLineNumber,lineNumber:Z?.endLineNumber,batchingEnabled:x,condensed:!1,fileLevelComment:!0,filePath:C,focusOnMount:!0,isReplying:!0,onCancelComment:K,quotedText:F,threadId:D.id,onAddComment:z,suggestedChangesConfig:A}),!O&&(0,i.jsx)(nH.z,{ref:V,onClick:()=>{M(“comments.start_thread_reply”,”REPLY_TO_THREAD_INPUT_BUTTON”),P(!0)},children:”Write a reply”})]}),p[62]=z,p[63]=x,p[64]=K,p[65]=C,p[66]=X,p[67]=S,p[68]=O,p[69]=Z?.endLineNumber,p[70]=Z?.startLineNumber,p[71]=F,p[72]=M,p[73]=A,p[74]=D.id,p[75]=D.viewerCanReply,p[76]=m):m=p[76],p[77]!==T||p[78]!==m||p[79]!==c||p[80]!==u?(f=(0,i.jsx)(“div”,{“data-testid”:”review-thread”,children:(0,i.jsxs)(“div”,{className:nQ,”data-limit-height”:T,children:[c,u,m]})}),p[77]=T,p[78]=m,p[79]=c,p[80]=u,p[81]=f):f=p[81],f}:function({batchingEnabled:e,commentAnchorPrefix:t,lineMarkersKey:n,disableDialogMode:a,enableDialogMode:r,filePath:s,gridCellId:o,isInlineComment:d,isInDialogMode:c,onDeleteLineComment:u,thread:m,threadPositionNumber:f,shouldLimitHeight:p=!0,suggestedChangesConfig:x,viewerData:b,ghostUser:v}){let[y,j]=(0,l.useState)(!1),[C,w]=(0,l.useState)(void 0),{sendAnalyticsEvent:N}=(0,tz.s)(),S=(0,I.Kp)(),L=(0,l.useRef)(null),D=(0,l.useRef)(null),{mutate:_}=nK(s,n),{baseOid:R,headOid:A}=(0,I.E4)(),k=e=>{w(e),j(!0)};if(!m.commentsData||null===m.commentsData.comments||m.commentsData.comments.length<1)return null;let E=(0,nW.Lm)(m),T=m.subjectType?.toLowerCase()==="line"?{lineRange:E}:void 0;return(0,i.jsx)("div",{"data-testid":"review-thread",children:(0,i.jsxs)("div",{className:nQ,"data-limit-height":p,children:[m.commentsData.comments.map((e,l)=>e.reviewVariantType===nj.hH.Automated&&0===l?(0,i.jsx)(nT.t,{fallback:(0,i.jsx)(nZ.k,{}),boundaryName:”AutomatedReviewThreadComment”,children:(0,i.jsx)(nZ.y,{anchorPrefix:t,basePath:S,comment:e,isAnchorable:!0,isInDialogMode:c,isOutdated:m.positioning?.isOutdated,onQuoteReply:k,threadId:m.id,threadPositionNumber:f},e.id)},e.id):(0,i.jsx)(nX.U,{lineMarkersKey:n,isAnchorable:!0,index:l,threadPositionNumber:f,isFirstComment:0===l,isInlineComment:d,isLastChild:l===(m.commentsData?.comments.length??0)-1,anchorPrefix:t,comment:e,commentConnectionId:m.commentsData?.__id,disableDialogMode:a,enableDialogMode:r,filePath:s,gridCellId:o,isInDialogMode:c,isOutdated:m.positioning?.isOutdated,threadId:m.id,onDeleteLineComment:u,onQuoteReply:k,threadCommentCount:m.commentsData?.comments.length,isThreadResolved:!!m.isResolved,suggestedChangesConfig:x,applySuggestedChangesValidationData:T,viewerData:b,ghostUser:v},e.id)),m.reviewCommentsLimitExceeded&&(0,i.jsx)(nz.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${(m.reviewCommentsLimit||0)-1} replies are currently being shown.`,className:”m-3″}),m.viewerCanReply&&(0,i.jsxs)(“div”,{id:nq.Bq.issueCommentComposer,className:”rounded-bottom-2 p-2 bgColor-inset”,”data-marker-navigation-comment-thread-id”:m.id,”data-marker-navigation-comment-id”:`${m.id}-reply-comment`,”data-marker-navigation-thread-reply”:!0,tabIndex:c?0:-1,onFocus:e=>{D.current===e.target&&(y?D.current?.querySelector(“textarea”)?.focus():L.current?.focus())},ref:D,children:[y&&(0,i.jsx)(eD,{startLineNumber:E?.startLineNumber,lineNumber:E?.endLineNumber,batchingEnabled:e,condensed:!1,fileLevelComment:!0,filePath:s,focusOnMount:!0,isReplying:!0,onCancelComment:()=>{j(!1),w(void 0),N(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”),g.cg?.requestAnimationFrame(()=>L.current?.focus())},quotedText:C,threadId:m.id,onAddComment:({commentText:e,onCompleted:t,onError:n,submitBatch:i})=>{let a=m.commentsData?.comments[m.commentsData?.comments.length-1];_({text:e,submitBatch:i,inReplyTo:a?.databaseId,path:s,comparisonEndOid:A,comparisonStartOid:R},{onError:n,onSuccess:e=>{var n;(n=e.comment.databaseId)&&h(n.toString()),t?.()}}),N(“comments.add”,”ADD_COMMENT_BUTTON”)},suggestedChangesConfig:x}),!y&&(0,i.jsx)(nH.z,{ref:L,onClick:()=>{N(“comments.start_thread_reply”,”REPLY_TO_THREAD_INPUT_BUTTON”),j(!0)},children:”Write a reply”})]})]})})};try{nJ.displayName||(nJ.displayName=”ReviewThread”)}catch{}var nY=n(97695),n0=n(39698),n1=n(25407),n2=n(21067);let n3=(0,a.Z6)()?function(e,t){let n,i,a,s,l=(0,r.c)(12),o=(0,I.Kp)();l[0]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,n2.cj)(),l[0]=n):n=l[0];let d=n,c=(0,t0.jE)(),{updateThread:u}=(0,I.an)();return l[1]!==o?(i=async e=>{let{automatedReviewCommentId:t,reason:n,resolutionNote:i}=e,a=(0,n1.L7I)({basePath:o,automatedReviewCommentId:t}),r=await (0,tY.q$)(a,{method:”PUT”,body:{reason:n,resolution_note:i}});(0,tY.R)(r)},l[1]=o,l[2]=i):i=l[2],l[3]!==o||l[4]!==e||l[5]!==t||l[6]!==c||l[7]!==u?(a=(n,i)=>{u(Number(i.threadId),e,t,e=>{if(e?.commentsData?.comments[0]?.automatedComment){let t=e.commentsData?.comments[0]?.automatedComment;return{…e,isResolved:!0,resolvedBy:d,commentsData:{…e.commentsData,comments:[{…e.commentsData.comments[0],automatedComment:{…t,isDismissed:!0,viewerCanDismiss:!1,viewerCanReopen:!0}},…e.commentsData.comments.slice(1)]}}}}),c.invalidateQueries({queryKey:(0,t3.XG)(o)})},l[3]=o,l[4]=e,l[5]=t,l[6]=c,l[7]=u,l[8]=a):a=l[8],l[9]!==i||l[10]!==a?(s={mutationFn:i,onSuccess:a},l[9]=i,l[10]=a,l[11]=s):s=l[11],(0,t1.n)(s)}:function(e,t){let n=(0,I.Kp)(),i=(0,n2.cj)(),a=(0,t0.jE)(),{updateThread:r}=(0,I.an)();return(0,t1.n)({mutationFn:async({automatedReviewCommentId:e,reason:t,resolutionNote:i})=>{let a=(0,n1.L7I)({basePath:n,automatedReviewCommentId:e}),r=await (0,tY.q$)(a,{method:”PUT”,body:{reason:t,resolution_note:i}});(0,tY.R)(r)},onSuccess:(s,l)=>{r(Number(l.threadId),e,t,e=>{if(e?.commentsData?.comments[0]?.automatedComment){let t=e.commentsData?.comments[0]?.automatedComment;return{…e,isResolved:!0,resolvedBy:i,commentsData:{…e.commentsData,comments:[{…e.commentsData.comments[0],automatedComment:{…t,isDismissed:!0,viewerCanDismiss:!1,viewerCanReopen:!0}},…e.commentsData.comments.slice(1)]}}}}),a.invalidateQueries({queryKey:(0,t3.XG)(n)})}})},n4=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(11),l=(0,I.Kp)(),o=(0,t0.jE)(),{updateThread:d}=(0,I.an)();return s[0]!==l?(n=async e=>{let{automatedReviewCommentId:t}=e,n=(0,n1.Aav)({basePath:l,automatedReviewCommentId:t}),i=await (0,tY.q$)(n,{method:”PUT”});(0,tY.R)(i)},s[0]=l,s[1]=n):n=s[1],s[2]!==l||s[3]!==e||s[4]!==t||s[5]!==o||s[6]!==d?(i=(n,i)=>{d(Number(i.threadId),e,t,n5),o.invalidateQueries({queryKey:(0,t3.XG)(l)})},s[2]=l,s[3]=e,s[4]=t,s[5]=o,s[6]=d,s[7]=i):i=s[7],s[8]!==n||s[9]!==i?(a={mutationFn:n,onSuccess:i},s[8]=n,s[9]=i,s[10]=a):a=s[10],(0,t1.n)(a)}:function(e,t){let n=(0,I.Kp)(),i=(0,t0.jE)(),{updateThread:a}=(0,I.an)();return(0,t1.n)({mutationFn:async({automatedReviewCommentId:e})=>{let t=(0,n1.Aav)({basePath:n,automatedReviewCommentId:e}),i=await (0,tY.q$)(t,{method:”PUT”});(0,tY.R)(i)},onSuccess:(r,s)=>{a(Number(s.threadId),e,t,e=>{if(e?.commentsData?.comments[0]?.automatedComment){let t=e.commentsData?.comments[0]?.automatedComment;return{…e,isResolved:!1,resolvedBy:void 0,commentsData:{…e.commentsData,comments:[{…e.commentsData.comments[0],automatedComment:{…t,isDismissed:!1,viewerCanDismiss:!0,viewerCanReopen:!1}},…e.commentsData.comments.slice(1)]}}}}),i.invalidateQueries({queryKey:(0,t3.XG)(n)})}})};function n5(e){if(e?.commentsData?.comments[0]?.automatedComment){let t=e.commentsData?.comments[0]?.automatedComment;return{…e,isResolved:!1,resolvedBy:void 0,commentsData:{…e.commentsData,comments:[{…e.commentsData.comments[0],automatedComment:{…t,isDismissed:!1,viewerCanDismiss:!0,viewerCanReopen:!1}},…e.commentsData.comments.slice(1)]}}}}var n6=n(73262);let n7=(0,a.GV)()?function(e){let t,n,a,s=(0,r.c)(20),{automatedComment:l,thread:o,filePath:d,lineMarkersKey:c,setErrorMessage:u,setIsCollapsed:m,safeLocalStorage:f}=e,{mutate:h,isPending:p,error:g}=n3(d,c);s[0]!==l.id||s[1]!==h||s[2]!==f||s[3]!==u||s[4]!==m||s[5]!==o.id?(t=(e,t)=>{let{reason:n,resolutionNote:i}=e,{onSuccess:a}=t;h({automatedReviewCommentId:l.id,threadId:o.id,reason:n,resolutionNote:i},{onError:()=>u(“Failed to dismiss”),onSuccess:()=>{a(),m(!0),f.removeItem(`reviewThreadIsCollapsed_${o.id}`)}})},s[0]=l.id,s[1]=h,s[2]=f,s[3]=u,s[4]=m,s[5]=o.id,s[6]=t):t=s[6];let x=t,{mutate:b,isPending:v}=n4(d,c);s[7]!==l.id||s[8]!==b||s[9]!==f||s[10]!==u||s[11]!==m||s[12]!==o.id?(n=()=>{b({automatedReviewCommentId:l.id,threadId:o.id},{onError:()=>u(“Failed to reopen”),onSuccess:()=>{m(!1),f.removeItem(`reviewThreadIsCollapsed_${o.id}`)}})},s[7]=l.id,s[8]=b,s[9]=f,s[10]=u,s[11]=m,s[12]=o.id,s[13]=n):n=s[13];let y=n,j=p||v;return s[14]!==l||s[15]!==g||s[16]!==x||s[17]!==y||s[18]!==j?(a=(0,i.jsx)(n6.K,{automatedComment:l,dismissError:g,isButtonDisabled:j,onDismiss:x,onReopen:y,className:”p-2 border-top”}),s[14]=l,s[15]=g,s[16]=x,s[17]=y,s[18]=j,s[19]=a):a=s[19],a}:function({automatedComment:e,thread:t,filePath:n,lineMarkersKey:a,setErrorMessage:r,setIsCollapsed:s,safeLocalStorage:l}){let{mutate:o,isPending:d,error:c}=n3(n,a),{mutate:u,isPending:m}=n4(n,a);return(0,i.jsx)(n6.K,{automatedComment:e,dismissError:c,isButtonDisabled:d||m,onDismiss:({reason:n,resolutionNote:i},{onSuccess:a})=>{o({automatedReviewCommentId:e.id,threadId:t.id,reason:n,resolutionNote:i},{onError:()=>r(“Failed to dismiss”),onSuccess:()=>{a(),s(!0),l.removeItem(`reviewThreadIsCollapsed_${t.id}`)}})},onReopen:()=>{u({automatedReviewCommentId:e.id,threadId:t.id},{onError:()=>r(“Failed to reopen”),onSuccess:()=>{s(!1),l.removeItem(`reviewThreadIsCollapsed_${t.id}`)}})},className:”p-2 border-top”})};try{n7.displayName||(n7.displayName=”InlineAutomatedReviewThreadActions”)}catch{}let n8=(0,a.GV)()?function(e){let t,n=(0,r.c)(2),{children:a}=e;return n[0]!==a?(t=(0,i.jsx)(“span”,{className:”text-semibold fgColor-default”,children:a}),n[0]=a,n[1]=t):t=n[1],t}:function({children:e}){return(0,i.jsx)(“span”,{className:”text-semibold fgColor-default”,children:e})};function n9({thread:e}){if(void 0===e)return null;let t=e.positioning??e.subject;return void 0!==t&&t.endDiffSide&&t.endLine?t.startLine&&t.startDiffSide&&t.startLine!==t.endLine?it({positioning:t}):ie({positioning:t}):null}let ie=(0,a.GV)()?function(e){let t,n=(0,r.c)(3),{positioning:a}=e,s=”LEFT”===a.endDiffSide?”L”:”R”,l=a.endLine??””;return n[0]!==s||n[1]!==l?(t=(0,i.jsxs)(“h2”,{className:nB,children:[“Comment on line”,” “,(0,i.jsxs)(n8,{children:[s,l]})]}),n[0]=s,n[1]=l,n[2]=t):t=n[2],t}:function({positioning:e}){let t=”LEFT”===e.endDiffSide?”L”:”R”;return(0,i.jsxs)(“h2”,{className:nB,children:[“Comment on line”,” “,(0,i.jsxs)(n8,{children:[t,e.endLine??””]})]})},it=(0,a.GV)()?function(e){let t,n,a,s=(0,r.c)(9),{positioning:l}=e,o=”LEFT”===l.startDiffSide?”L”:”R”,d=”LEFT”===l.endDiffSide?”L”:”R”,c=l.startLine??””;s[0]!==o||s[1]!==c?(t=(0,i.jsxs)(n8,{children:[o,c]}),s[0]=o,s[1]=c,s[2]=t):t=s[2];let u=l.endLine??””;return s[3]!==d||s[4]!==u?(n=(0,i.jsxs)(n8,{children:[d,u]}),s[3]=d,s[4]=u,s[5]=n):n=s[5],s[6]!==t||s[7]!==n?(a=(0,i.jsxs)(“h2”,{className:nB,children:[“Comment on lines”,” “,t,” “,”to”,” “,n]}),s[6]=t,s[7]=n,s[8]=a):a=s[8],a}:function({positioning:e}){let t=”LEFT”===e.startDiffSide?”L”:”R”,n=”LEFT”===e.endDiffSide?”L”:”R”;return(0,i.jsxs)(“h2”,{className:nB,children:[“Comment on lines”,” “,(0,i.jsxs)(n8,{children:[t,e.startLine??””]}),” “,”to”,” “,(0,i.jsxs)(n8,{children:[n,e.endLine??””]})]})},ii=(0,a.GV)()?function(e){let t,n,a,s,o,d,u,f,h,p,g,x,v,y,j,C,w,N,S,L,D,_,R,A,k,E,T,O,P,F,$,M,B=(0,r.c)(99);B[0]!==e?({fileAnchor:t,filePath:n,gridCellId:s,onDeleteLineComment:u,threadId:p,threadPositionNumber:g,lineMarkersKey:d,threadsConnectionId:x,isFirstThread:o,ghostUser:a,suggestedChangesConfig:h,…f}=e,B[0]=e,B[1]=t,B[2]=n,B[3]=a,B[4]=s,B[5]=o,B[6]=d,B[7]=u,B[8]=f,B[9]=h,B[10]=p,B[11]=g,B[12]=x):(t=B[1],n=B[2],a=B[3],s=B[4],o=B[5],d=B[6],u=B[7],f=B[8],h=B[9],p=B[10],g=B[11],x=B[12]);let V=(0,I._W)(p,n,d),{mutate:U}=(0,nY.H)(n,d),G=()=>{V&&(U({threadId:V.id},{onError:()=>X(“Failed to resolve thread”),onSuccess:()=>{ee(!0),q.removeItem(`reviewThreadIsCollapsed_${p}`)}}),el(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},H=(0,l.useRef)(null),q=(0,nO.A)(“localStorage”),z=V?.isResolved,[Z,Q]=(0,l.useState)(“”),X=Q,[J,Y]=(0,l.useState)(z??!1),ee=Y,et=K(s),{disableDialogMode:en,enableDialogMode:ei}=W();B[13]!==z||B[14]!==p?(v=[z,p],B[13]=z,B[14]=p,B[15]=v):v=B[15],(0,l.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${p}`);null!==e?ee(JSON.parse(e)):z&&ee(!0)},v);let ea=()=>{window.requestAnimationFrame(()=>{q.setItem(`reviewThreadIsCollapsed_${p}`,JSON.stringify(!J))}),ee(ir)};B[16]!==s||B[17]!==V?(y={commentSubjectType:”pull request”,gridCellId:s,markerRef:H,isThread:!0,thread:V},B[16]=s,B[17]=V,B[18]=y):y=B[18],nS(y);e:{let e=V?.positioning??V?.subject;if(!e){j=void 0;break e}if(t&&V&&e.startDiffSide&&e.endDiffSide&&e.startLine&&e.endLine&&h?.configureSuggestedChangesFromLineRange){let n,i=e.startLine??e.endLine,a=e.startDiffSide??e.endDiffSide,r=”LEFT”===e.endDiffSide?”left”:”right”,s=”LEFT”===a?”left”:”right”,l=”LEFT”===a?”left”:”right”;if(B[19]!==t||B[20]!==e.endLine||B[21]!==i||B[22]!==h||B[23]!==r||B[24]!==s||B[25]!==l){let a={diffAnchor:t,endLineNumber:e.endLine,endOrientation:r,startLineNumber:i,startOrientation:s,firstSelectedLineNumber:i,firstSelectedOrientation:l};n=h?.configureSuggestedChangesFromLineRange(a),B[19]=t,B[20]=e.endLine,B[21]=i,B[22]=h,B[23]=r,B[24]=s,B[25]=l,B[26]=n}else n=B[26];j=n;break e}j=void 0}let er=j,{sendAnalyticsEvent:es}=(0,tz.s)(),el=es,{mutate:eo}=(0,n0.i)(n,d);B[27]!==q||B[28]!==el||B[29]!==X||B[30]!==ee||B[31]!==V||B[32]!==eo?(C=()=>{V&&(eo({threadId:V.id},{onError:()=>X(“Failed to unresolve thread”),onSuccess:()=>{ee(!1),q.removeItem(`reviewThreadIsCollapsed_${V.id}`)}}),el(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},B[27]=q,B[28]=el,B[29]=X,B[30]=ee,B[31]=V,B[32]=eo,B[33]=C):C=B[33];let ed=C,ec=V?.commentsData?.comments[0]?.reviewVariantType===nj.hH.Automated,eu=ec?V.commentsData?.comments[0]?.automatedComment:null,em=eu&&eu.dismissable,ef=eu&&eu.source===nj.vk.LicenseCompliance;if(!V||!((V.commentsData?.comments?.length??0)>0))return null;let eh=!!V.isResolved;B[34]===Symbol.for(“react.memo_cache_sentinel”)?(w=(0,n2.M3)(),B[34]=w):w=B[34];let ep=w;B[35]!==V.commentsData?.comments?(N=ep&&V.commentsData?.comments?.some(ia),B[35]=V.commentsData?.comments,B[36]=N):N=B[36];let eg=N,ex=V.commentsData?.comments?.[0]?.createdAt,eb=V.commentsData?.comments?.[0]?.author?.login??”Unknown Author”,ev=`${z?”Unresolve”:”Resolve”} comment`;if(ex){let e;B[37]!==ex?(e=(0,nE.C)(new Date(ex)),B[37]=ex,B[38]=e):e=B[38];let t=e;ev=`${z?”Unresolve”:”Resolve”} ${eb}’s comment, ${t}`}B[39]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,i.jsx)(nM,{}),B[39]=S):S=B[39],B[40]===Symbol.for(“react.memo_cache_sentinel”)?(L=(0,b.$)(“px-1″,nV),B[40]=L):L=B[40];let ey=J?”Expand comment”:”Collapse comment”,ej=J?c.ChevronRightIcon:c.ChevronDownIcon;return B[41]!==ea||B[42]!==o||B[43]!==ey||B[44]!==ej?(D=(0,i.jsx)(m.K,{“aria-label”:ey,icon:ej,size:”small”,variant:”invisible”,onClick:ea,”data-is-first-collapse-button”:o}),B[41]=ea,B[42]=o,B[43]=ey,B[44]=ej,B[45]=D):D=B[45],B[46]!==V?(_=(0,i.jsx)(n9,{thread:V}),B[46]=V,B[47]=_):_=B[47],B[48]!==V.positioning?.isOutdated?(R=V.positioning?.isOutdated&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Outdated”}),B[48]=V.positioning?.isOutdated,B[49]=R):R=B[49],B[50]!==ec||B[51]!==eh?(A=eh&&!ec&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Resolved”}),B[50]=ec,B[51]=eh,B[52]=A):A=B[52],B[53]!==eu?.isDismissed?(k=eu?.isDismissed&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Dismissed”}),B[53]=eu?.isDismissed,B[54]=k):k=B[54],B[55]!==R||B[56]!==A||B[57]!==k?(E=(0,i.jsxs)(“div”,{className:nU,children:[R,A,k]}),B[55]=R,B[56]=A,B[57]=k,B[58]=E):E=B[58],B[59]!==D||B[60]!==_||B[61]!==E?(T=(0,i.jsxs)(“div”,{className:L,children:[D,_,E]}),B[59]=D,B[60]=_,B[61]=E,B[62]=T):T=B[62],B[63]===Symbol.for(“react.memo_cache_sentinel”)?(O=(0,i.jsxs)(“div”,{className:nG,children:[(0,i.jsx)(eQ.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),B[63]=O):O=B[63],B[64]!==Z?(P=Z&&(0,i.jsxs)(nF.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),Z]}),B[64]=Z,B[65]=P):P=B[65],B[66]!==eu||B[67]!==er||B[68]!==en||B[69]!==em||B[70]!==ei||B[71]!==n||B[72]!==a||B[73]!==s||B[74]!==G||B[75]!==ed||B[76]!==J||B[77]!==et||B[78]!==eg||B[79]!==z||B[80]!==eh||B[81]!==ef||B[82]!==d||B[83]!==u||B[84]!==ev||B[85]!==f||B[86]!==q||B[87]!==X||B[88]!==ee||B[89]!==V||B[90]!==g||B[91]!==x?(F=!J&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nJ,{lineMarkersKey:d,disableDialogMode:en,enableDialogMode:ei,filePath:n,gridCellId:s,onDeleteLineComment:u,isInlineComment:!0,isInDialogMode:et,thread:V,threadPositionNumber:g,threadsConnectionId:x,suggestedChangesConfig:er,shouldLimitHeight:!1,…f,ghostUser:a}),eg&&!em&&!ef&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eI.Q,{“aria-label”:ev,onClick:eh?ed:G,className:”mr-2″,children:z?”Unresolve comment”:”Resolve comment”}),eh&&V.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:V.resolvedBy}),” marked this comment as resolved”]})]}),em&&(0,i.jsx)(n7,{automatedComment:eu,thread:V,filePath:n,lineMarkersKey:d,setErrorMessage:X,setIsCollapsed:ee,safeLocalStorage:q})]}),B[66]=eu,B[67]=er,B[68]=en,B[69]=em,B[70]=ei,B[71]=n,B[72]=a,B[73]=s,B[74]=G,B[75]=ed,B[76]=J,B[77]=et,B[78]=eg,B[79]=z,B[80]=eh,B[81]=ef,B[82]=d,B[83]=u,B[84]=ev,B[85]=f,B[86]=q,B[87]=X,B[88]=ee,B[89]=V,B[90]=g,B[91]=x,B[92]=F):F=B[92],B[93]!==P||B[94]!==F?($=(0,i.jsxs)(l.Suspense,{fallback:O,children:[P,F]}),B[93]=P,B[94]=F,B[95]=$):$=B[95],B[96]!==T||B[97]!==$?(M=(0,i.jsx)(nT.t,{fallback:S,children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:H,children:[T,$]})}),B[96]=T,B[97]=$,B[98]=M):M=B[98],M}:function({fileAnchor:e,filePath:t,gridCellId:n,onDeleteLineComment:a,threadId:r,threadPositionNumber:s,lineMarkersKey:o,threadsConnectionId:d,isFirstThread:u,ghostUser:f,suggestedChangesConfig:h,…p}){let g=(0,I._W)(r,t,o),{mutate:x}=(0,nY.H)(t,o),v=(0,l.useRef)(null),y=(0,nO.A)(“localStorage”),j=g?.isResolved,[C,w]=(0,l.useState)(“”),[N,S]=(0,l.useState)(j??!1),L=K(n),{disableDialogMode:D,enableDialogMode:_}=W();(0,l.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${r}`);null!==e?S(JSON.parse(e)):j&&S(!0)},[j,r]),nS({commentSubjectType:”pull request”,gridCellId:n,markerRef:v,isThread:!0,thread:g});let R=(0,l.useMemo)(()=>{let t=g?.positioning??g?.subject;if(t&&e&&g&&t.startDiffSide&&t.endDiffSide&&t.startLine&&t.endLine&&h?.configureSuggestedChangesFromLineRange){let n=t.startLine??t.endLine,i=t.startDiffSide??t.endDiffSide,a={diffAnchor:e,endLineNumber:t.endLine,endOrientation:”LEFT”===t.endDiffSide?”left”:”right”,startLineNumber:n,startOrientation:”LEFT”===i?”left”:”right”,firstSelectedLineNumber:n,firstSelectedOrientation:”LEFT”===i?”left”:”right”};return h?.configureSuggestedChangesFromLineRange(a)}},[e,g,h]),{sendAnalyticsEvent:A}=(0,tz.s)(),{mutate:k}=(0,n0.i)(t,o),E=g?.commentsData?.comments[0]?.reviewVariantType===nj.hH.Automated,T=E?g.commentsData?.comments[0]?.automatedComment:null,O=T&&T.dismissable,P=T&&T.source===nj.vk.LicenseCompliance;if(!g||!((g.commentsData?.comments?.length??0)>0))return null;let F=!!g.isResolved,$=(0,n2.M3)()&&g.commentsData?.comments?.some(e=>e.state?.toUpperCase()!==”PENDING”),M=g.commentsData?.comments?.[0]?.createdAt,B=g.commentsData?.comments?.[0]?.author?.login??”Unknown Author”,V=`${j?”Unresolve”:”Resolve”} comment`;if(M){let e=(0,nE.C)(new Date(M));V=`${j?”Unresolve”:”Resolve”} ${B}’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:v,children:[(0,i.jsxs)(“div”,{className:(0,b.$)(“px-1”,nV),children:[(0,i.jsx)(m.K,{“aria-label”:N?”Expand comment”:”Collapse comment”,icon:N?c.ChevronRightIcon:c.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:()=>{window.requestAnimationFrame(()=>{y.setItem(`reviewThreadIsCollapsed_${r}`,JSON.stringify(!N))}),S(e=>!e)},”data-is-first-collapse-button”:u}),(0,i.jsx)(n9,{thread:g}),(0,i.jsxs)(“div”,{className:nU,children:[g.positioning?.isOutdated&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Outdated”}),F&&!E&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Resolved”}),T?.isDismissed&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Dismissed”})]})]}),(0,i.jsxs)(l.Suspense,{fallback:(0,i.jsxs)(“div”,{className:nG,children:[(0,i.jsx)(eQ.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),children:[C&&(0,i.jsxs)(nF.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),C]}),!N&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nJ,{lineMarkersKey:o,disableDialogMode:D,enableDialogMode:_,filePath:t,gridCellId:n,onDeleteLineComment:a,isInlineComment:!0,isInDialogMode:L,thread:g,threadPositionNumber:s,threadsConnectionId:d,suggestedChangesConfig:R,shouldLimitHeight:!1,…p,ghostUser:f}),$&&!O&&!P&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eI.Q,{“aria-label”:V,onClick:F?()=>{g&&(k({threadId:g.id},{onError:()=>w(“Failed to unresolve thread”),onSuccess:()=>{S(!1),y.removeItem(`reviewThreadIsCollapsed_${g.id}`)}}),A(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))}:()=>{g&&(x({threadId:g.id},{onError:()=>w(“Failed to resolve thread”),onSuccess:()=>{S(!0),y.removeItem(`reviewThreadIsCollapsed_${r}`)}}),A(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},className:”mr-2″,children:j?”Unresolve comment”:”Resolve comment”}),F&&g.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:g.resolvedBy}),” marked this comment as resolved”]})]}),O&&(0,i.jsx)(n7,{automatedComment:T,thread:g,filePath:t,lineMarkersKey:o,setErrorMessage:w,setIsCollapsed:S,safeLocalStorage:y})]})]})]})})};function ia(e){return e.state?.toUpperCase()!==”PENDING”}function ir(e){return!e}try{n8.displayName||(n8.displayName=”Emphasis”)}catch{}try{n9.displayName||(n9.displayName=”ThreadBanner”)}catch{}try{ie.displayName||(ie.displayName=”SingleLineThreadBanner”)}catch{}try{it.displayName||(it.displayName=”MultineLineThreadBanner”)}catch{}try{ii.displayName||(ii.displayName=”InlineReviewThread”)}catch{}let is=(0,a.GV)()?function(e,t,n){let i,a=(0,r.c)(5),{enableDialogMode:s}=W();return a[0]!==t||a[1]!==n||a[2]!==s||a[3]!==e?(i=(i,a)=>{t.current?.classList.contains(“diff-text-cell”)&&(s(e),n(“USER_EXPANDED_MARKERS”),(void 0===i?{shouldFocusFirstMarker:!0}:i).shouldFocusFirstMarker?setTimeout(()=>{t.current?.querySelector(‘[data-first-marker=”true”]’)?.focus()},0):a&&setTimeout(()=>{t.current?.querySelector(`[data-marker-id=”${a}”]`)?.focus()},0))},a[0]=t,a[1]=n,a[2]=s,a[3]=e,a[4]=i):i=a[4],i}:function(e,t,n){let{enableDialogMode:i}=W();return(0,l.useCallback)((a={shouldFocusFirstMarker:!0},r)=>{t.current?.classList.contains(“diff-text-cell”)&&(i(e),n(“USER_EXPANDED_MARKERS”),a.shouldFocusFirstMarker?setTimeout(()=>{t.current?.querySelector(‘[data-first-marker=”true”]’)?.focus()},0):r&&setTimeout(()=>{t.current?.querySelector(`[data-marker-id=”${r}”]`)?.focus()},0))},[t,i,e,n])},il={[nj.UZ.Failure]:0,[nj.UZ.Warning]:1,[nj.UZ.Notice]:2},io=(0,a.GV)()?function(e){let t,n=(0,r.c)(2);return n[0]!==e?(t=(0,i.jsx)(nm.j,{children:(0,i.jsx)(id,{…e})}),n[0]=e,n[1]=t):t=n[1],t}:function(e){return(0,i.jsx)(nm.j,{children:(0,i.jsx)(id,{…e})})},id=(0,a.GV)()?function(e){let t,n,a,s,o,d,u,f,h,p,x,v,y,j,C,w,N,S,L,D,_,R,A,k,E,T,O,P,F,$,M,B,V,U,G,H,q=(0,r.c)(105);if(q[0]!==e){let{annotations:i,cellRef:r,diffLine:l,dispatchMarkersStatus:c,children:m,conversationListThreads:g,inlineMarkersRef:b,isRowSelected:D,lineMarkersKey:I,fileAnchor:_,filePath:R,gridCellId:A,gutterSizeOffset:k,lineType:E,onCloseConversationList:T,onCloseFocusMode:O,onDeleteLineComment:P,threadsConnectionId:F,shouldStartNewConversationWithSuggestedChange:$,ghostUser:M,…B}=e;t=i,n=r,o=l,d=c,a=m,s=g,v=b,y=D,j=I,u=_,f=R,p=A,x=k,C=O,w=P,L=F,S=$,h=M,N=B,q[0]=e,q[1]=t,q[2]=n,q[3]=a,q[4]=s,q[5]=o,q[6]=d,q[7]=u,q[8]=f,q[9]=h,q[10]=p,q[11]=x,q[12]=v,q[13]=y,q[14]=j,q[15]=C,q[16]=w,q[17]=N,q[18]=S,q[19]=L}else t=q[1],n=q[2],a=q[3],s=q[4],o=q[5],d=q[6],u=q[7],f=q[8],h=q[9],p=q[10],x=q[11],v=q[12],y=q[13],j=q[14],C=q[15],w=q[16],N=q[17],S=q[18],L=q[19];let z=K(p),{disableDialogMode:Z,enableDialogMode:Q}=W(),X=is(p,n,d),J=o?.type??”ADDITION”;q[20]!==y||q[21]!==J?(D=(0,e2.gK)(J,!1,y),q[20]=y,q[21]=J,q[22]=D):D=q[22];let Y=D,ee=tZ(o,S),et=(0,l.useRef)(null);q[23]!==t?(_=[…t].sort(ih),q[23]=t,q[24]=_):_=q[24];let en=_;e:{let e;if(a){let e,t;q[25]===Symbol.for(“react.memo_cache_sentinel”)?(e={id:”new-comment”},q[25]=e):e=q[25],q[26]!==s||q[27]!==en?(t=[…s,e,…en],q[26]=s,q[27]=en,q[28]=t):t=q[28],R=t;break e}q[29]!==s||q[30]!==en?(e=[…s,…en],q[29]=s,q[30]=en,q[31]=e):e=q[31],R=e}let ei=R,ea=im;q[32]!==Q||q[33]!==p||q[34]!==z?(A=e=>{ea(e),z||Q(p)},q[32]=Q,q[33]=p,q[34]=z,q[35]=A):A=q[35];let er=A;q[36]!==Z||q[37]!==z?(k=e=>{e.target&&z&&(e.target.closest(“[data-inline-markers]”)||Z())},q[36]=Z,q[37]=z,q[38]=k):k=q[38];let es=k;q[39]!==es?(E=()=>(g.XC?.addEventListener(“mousedown”,es),()=>g.XC?.removeEventListener(“mousedown”,es)),T=[es],q[39]=es,q[40]=E,q[41]=T):(E=q[40],T=q[41]),(0,l.useEffect)(E,T);let el=(0,I.mF)();q[42]!==t||q[43]!==s||q[44]!==X||q[45]!==el?(P=()=>{if(el){let e=s.map(iu),n=t.map(ic);(e.includes(el)||n.includes(el))&&X({shouldFocusFirstMarker:!1},el)}},O=[el,X,s,t],q[42]=t,q[43]=s,q[44]=X,q[45]=el,q[46]=O,q[47]=P):(O=q[46],P=q[47]),(0,l.useEffect)(P,O);let eo=!z;q[48]!==ei||q[49]!==eo?(F={containerRef:et,markers:ei,disabled:eo},q[48]=ei,q[49]=eo,q[50]=F):F=q[50],nh(F);let ed=z?nk:””;q[51]!==ed?($=(0,b.$)(“d-flex pt-1″,ed),q[51]=ed,q[52]=$):$=q[52],q[53]!==Y||q[54]!==x||q[55]!==z?(M=z?{marginRight:`-${x}`,backgroundColor:Y}:{marginRight:`-${x}`},q[53]=Y,q[54]=x,q[55]=z,q[56]=M):M=q[56];let ec=z?”false”:”true”;if(q[57]!==s||q[58]!==u||q[59]!==f||q[60]!==h||q[61]!==p||q[62]!==z||q[63]!==j||q[64]!==ei||q[65]!==w||q[66]!==N||q[67]!==ee||q[68]!==L){let e;q[70]!==u||q[71]!==f||q[72]!==h||q[73]!==p||q[74]!==z||q[75]!==j||q[76]!==ei||q[77]!==w||q[78]!==N||q[79]!==ee||q[80]!==L?(e=(e,t)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,t===ei.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===t,”data-marker-id”:`${e.id}`,tabIndex:z?0:-1,children:(0,i.jsx)(ii,{threadPositionNumber:t+1,isFirstThread:0===t,filePath:f,lineMarkersKey:j,fileAnchor:u,gridCellId:p,onDeleteLineComment:w,threadId:e.id,threadsConnectionId:L,suggestedChangesConfig:ee,ghostUser:h,…N})},`review-thread-${e.id}`),q[70]=u,q[71]=f,q[72]=h,q[73]=p,q[74]=z,q[75]=j,q[76]=ei,q[77]=w,q[78]=N,q[79]=ee,q[80]=L,q[81]=e):e=q[81],B=s.map(e),q[57]=s,q[58]=u,q[59]=f,q[60]=h,q[61]=p,q[62]=z,q[63]=j,q[64]=ei,q[65]=w,q[66]=N,q[67]=ee,q[68]=L,q[69]=B}else B=q[69];if(q[82]!==p||q[83]!==ei||q[84]!==en){let e;q[86]!==p||q[87]!==ei?(e=(e,t)=>{let n=0===t&&e===ei[0];return(0,i.jsx)(nI,{annotation:e,gridCellId:p,isFirstMarker:n},`annotation-${e.id}`)},q[86]=p,q[87]=ei,q[88]=e):e=q[88],V=en.map(e),q[82]=p,q[83]=ei,q[84]=en,q[85]=V}else V=q[85];return q[89]!==a||q[90]!==B||q[91]!==V?(U=(0,i.jsxs)(“div”,{className:nR,ref:et,children:[B,a,V]}),q[89]=a,q[90]=B,q[91]=V,q[92]=U):U=q[92],q[93]!==s.length||q[94]!==z||q[95]!==C?(G=z&&(0,i.jsx)(m.K,{icon:c.UndoIcon,className:(0,b.$)(n_,”ml-2 position-relative”,0===s.length?”mt-2″:”mt-1″),”aria-label”:”Return to code”,”data-exit-dialog-mode-button”:”true”,variant:”default”,size:”small”,onMouseUp:C,onKeyDown:e=>{(“Enter”===e.key||”Space”===e.code)&&C()}}),q[93]=s.length,q[94]=z,q[95]=C,q[96]=G):G=q[96],q[97]!==er||q[98]!==v||q[99]!==$||q[100]!==M||q[101]!==ec||q[102]!==U||q[103]!==G?(H=(0,i.jsxs)(“div”,{className:$,style:M,”aria-hidden”:ec,onFocus:er,onClick:ea,onKeyUp:ea,onMouseDown:ea,onMouseUp:ea,”data-inline-markers”:!0,ref:v,children:[U,G]}),q[97]=er,q[98]=v,q[99]=$,q[100]=M,q[101]=ec,q[102]=U,q[103]=G,q[104]=H):H=q[104],H}:function({annotations:e,cellRef:t,diffLine:n,dispatchMarkersStatus:a,children:r,conversationListThreads:s,inlineMarkersRef:o,isRowSelected:d,lineMarkersKey:u,fileAnchor:f,filePath:h,gridCellId:p,gutterSizeOffset:x,lineType:v,onCloseConversationList:y,onCloseFocusMode:j,onDeleteLineComment:C,threadsConnectionId:w,shouldStartNewConversationWithSuggestedChange:N,ghostUser:S,…L}){let D=K(p),{disableDialogMode:_,enableDialogMode:R}=W(),A=is(p,t,a),k=(0,e2.gK)(n?.type??”ADDITION”,!1,d),E=tZ(n,N),T=(0,l.useRef)(null),O=(0,l.useMemo)(()=>[…e].sort((e,t)=>il[e.annotationLevel]-il[t.annotationLevel]),[e]),P=(0,l.useMemo)(()=>r?[…s,{id:”new-comment”},…O]:[…s,…O],[r,s,O]),F=e=>e.stopPropagation(),$=(0,l.useCallback)(e=>{e.target&&D&&(e.target.closest(“[data-inline-markers]”)||_())},[_,D]);(0,l.useEffect)(()=>(g.XC?.addEventListener(“mousedown”,$),()=>g.XC?.removeEventListener(“mousedown”,$)),[$]);let M=(0,I.mF)();return(0,l.useEffect)(()=>{if(M){let t=s.map(e=>e.id),n=e.map(e=>e.id);(t.includes(M)||n.includes(M))&&A({shouldFocusFirstMarker:!1},M)}},[M,A,s,e]),nh({containerRef:T,markers:P,disabled:!D}),(0,i.jsxs)(“div”,{className:(0,b.$)(“d-flex pt-1″,D?nk:””),style:D?{marginRight:`-${x}`,backgroundColor:k}:{marginRight:`-${x}`},”aria-hidden”:D?”false”:”true”,onFocus:e=>{F(e),D||R(p)},onClick:F,onKeyUp:F,onMouseDown:F,onMouseUp:F,”data-inline-markers”:!0,ref:o,children:[(0,i.jsxs)(“div”,{className:nR,ref:T,children:[s.map((e,t)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,t===P.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===t,”data-marker-id”:`${e.id}`,tabIndex:D?0:-1,children:(0,i.jsx)(ii,{threadPositionNumber:t+1,isFirstThread:0===t,filePath:h,lineMarkersKey:u,fileAnchor:f,gridCellId:p,onDeleteLineComment:C,threadId:e.id,threadsConnectionId:w,suggestedChangesConfig:E,ghostUser:S,…L})},`review-thread-${e.id}`)),r,O.map((e,t)=>{let n=0===t&&e===P[0];return(0,i.jsx)(nI,{annotation:e,gridCellId:p,isFirstMarker:n},`annotation-${e.id}`)})]}),D&&(0,i.jsx)(m.K,{icon:c.UndoIcon,className:(0,b.$)(n_,”ml-2 position-relative”,0===s.length?”mt-2″:”mt-1″),”aria-label”:”Return to code”,”data-exit-dialog-mode-button”:”true”,variant:”default”,size:”small”,onMouseUp:j,onKeyDown:e=>{(“Enter”===e.key||”Space”===e.code)&&j()}})]})};function ic(e){return e.id}function iu(e){return e.id}function im(e){return e.stopPropagation()}function ih(e,t){return il[e.annotationLevel]-il[t.annotationLevel]}try{io.displayName||(io.displayName=”InlineMarkers”)}catch{}try{id.displayName||(id.displayName=”InlineMarkersInternal”)}catch{}var ip=n(18799),ig=n(40260);async function ix({diffLine:e,diffLines:t,getSelectedDiffLines:n,getSelectedLineRange:i,isSplit:a,isLeftSide:r}){let s,l=window.getSelection();if(l&&””!==l.toString())return void document.execCommand(“copy”);let o=n().length<=1;switch(!0){case o:s=iv(e);break;case a:s=iy({diffLines:t,diffOrientation:r?"left":"right",getSelectedLineRange:i});break;default:s=ib({diffLines:t,getSelectedLineRange:i})}await (0,ig.D)(s)}let ib=({diffLines:e,getSelectedLineRange:t})=>{let n=t();if(!n)return””;let{startOrientation:i,endOrientation:a,startLineNumber:r,endLineNumber:s}=n,l=0,o=0;return e.length>1&&(l=e.findIndex(e=>”left”===i?e.left===r:e.right===r),o=e.findIndex(e=>”left”===a?e.left===s:e.right===s)),(0,E.Ls)(e.slice(l,o+1))},iv=e=>(0,E.Po)(e)||!e?””:(0,E.Ls)([e]),iy=({diffLines:e,diffOrientation:t,getSelectedLineRange:n})=>{if(void 0===t)return””;let i=n();if(!i)return””;let a=(0,E.Mk)(e),r=a.leftLines,s=a.rightLines,{selectedRightLines:l,selectedLeftLines:o}=(0,k.A)({selectedLineRange:i,leftLines:r,rightLines:s});return”left”===t?(0,E.Ls)(o):(0,E.Ls)(l)},ij=(0,l.createContext)(null),iC=(0,a.GV)()?function(e){let t,n,a,s,o,d,c=(0,r.c)(14),{children:u}=e,[m,f]=(0,l.useState)(!1),[h,p]=(0,l.useState)(),[g,x]=(0,l.useState)(),[b,v]=(0,l.useState)(),[y,j]=(0,l.useState)(),C=!!h||!!g||!!b||!!y;c[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>{f(!0)},c[0]=t):t=c[0];let w=t;c[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=()=>{f(!1)},c[1]=n):n=c[1];let N=n;c[2]===Symbol.for(“react.memo_cache_sentinel”)?(a=(e,t,n)=>{switch(e){case”context-menu”:p(t),j(void 0),v(void 0),x(void 0);break;case”new-conversation”:j({cellId:t,withSuggestedChange:n?.withSuggestedChange}),p(void 0),v(void 0),x(void 0);break;case”marker-details”:v(t),p(void 0),x(void 0),j(void 0);break;case”marker-list”:x(t),p(void 0),j(void 0),v(void 0)}},c[2]=a):a=c[2];let S=a;c[3]===Symbol.for(“react.memo_cache_sentinel”)?(s=e=>{switch(e){case”context-menu”:p(void 0);break;case”new-conversation”:j(void 0);break;case”marker-details”:v(void 0);break;case”marker-list”:x(void 0)}},c[3]=s):s=c[3];let L=s;c[4]!==C||c[5]!==m||c[6]!==h||c[7]!==b||c[8]!==g||c[9]!==y?(o={isActionBarVisible:m,showActionBar:w,hideActionBar:N,closeDialog:L,openDialog:S,anyMenuOpen:C,openContextMenuCell:h,openMarkersListCell:g,openMarkerDetailsCell:b,openNewConversationCell:y},c[4]=C,c[5]=m,c[6]=h,c[7]=b,c[8]=g,c[9]=y,c[10]=o):o=c[10];let D=o;return c[11]!==u||c[12]!==D?(d=(0,i.jsx)(ij.Provider,{value:D,children:u}),c[11]=u,c[12]=D,c[13]=d):d=c[13],d}:function({children:e}){let[t,n]=(0,l.useState)(!1),[a,r]=(0,l.useState)(),[s,o]=(0,l.useState)(),[d,c]=(0,l.useState)(),[u,m]=(0,l.useState)(),f=(0,l.useMemo)(()=>!!a||!!s||!!d||!!u,[a,d,s,u]),h=(0,l.useCallback)(()=>{n(!0)},[]),p=(0,l.useCallback)(()=>{n(!1)},[]),g=(0,l.useCallback)((e,t,n)=>{switch(e){case”context-menu”:r(t),m(void 0),c(void 0),o(void 0);break;case”new-conversation”:m({cellId:t,withSuggestedChange:n?.withSuggestedChange}),r(void 0),c(void 0),o(void 0);break;case”marker-details”:c(t),r(void 0),o(void 0),m(void 0);break;case”marker-list”:o(t),r(void 0),m(void 0),c(void 0)}},[]),x=(0,l.useCallback)(e=>{switch(e){case”context-menu”:r(void 0);break;case”new-conversation”:m(void 0);break;case”marker-details”:c(void 0);break;case”marker-list”:o(void 0)}},[]),b=(0,l.useMemo)(()=>({isActionBarVisible:t,showActionBar:h,hideActionBar:p,closeDialog:x,openDialog:g,anyMenuOpen:f,openContextMenuCell:a,openMarkersListCell:s,openMarkerDetailsCell:d,openNewConversationCell:u}),[t,h,p,x,g,f,a,s,d,u]);return(0,i.jsx)(ij.Provider,{value:b,children:e})},iw=(0,a.GV)()?function(){let e=(0,l.useContext)(ij);if(!e)throw Error(“useMarkersDialogContext must be used within a MarkersDialogContextProvider”);return e}:function(){let e=(0,l.useContext)(ij);if(!e)throw Error(“useMarkersDialogContext must be used within a MarkersDialogContextProvider”);return e};try{ij.displayName||(ij.displayName=”MarkersDialogContext”)}catch{}try{iC.displayName||(iC.displayName=”MarkersDialogContextProvider”)}catch{}let iN=(0,a.GV)()?function(e){let t,n,i,a,s,o,d,c=(0,r.c)(27),{cellId:u,actionBarRef:m}=e,[f,h]=(0,l.useState)(m),{openDialog:p,closeDialog:g,openContextMenuCell:x,anyMenuOpen:b}=iw(),v=x===u;c[0]!==u||c[1]!==p?(t=()=>{p(“context-menu”,u)},c[0]=u,c[1]=p,c[2]=t):t=c[2];let y=t;c[3]!==m||c[4]!==y?(n=()=>{h(m),y()},c[3]=m,c[4]=y,c[5]=n):n=c[5];let j=n;c[6]!==g?(i=()=>{g(“context-menu”)},c[6]=g,c[7]=i):i=c[7];let C=i;c[8]!==C||c[9]!==v||c[10]!==y?(a=()=>{v?C():y()},c[8]=C,c[9]=v,c[10]=y,c[11]=a):a=c[11];let w=a;c[12]!==m||c[13]!==w?(s=()=>{h(m),w()},c[12]=m,c[13]=w,c[14]=s):s=c[14];let N=s;c[15]!==g?(o=()=>{g(“marker-list”)},c[15]=g,c[16]=o):o=c[16];let S=o;return c[17]!==b||c[18]!==C||c[19]!==S||c[20]!==v||c[21]!==y||c[22]!==j||c[23]!==f||c[24]!==w||c[25]!==N?(d={isContextMenuOpen:v,openContextMenu:y,openContextMenuFromActionBar:j,closeContextMenu:C,toggleContextMenu:w,toggleContextMenuFromActionBar:N,closeMarkerListDialog:S,returnFocusRef:f,anyMenuOpen:b},c[17]=b,c[18]=C,c[19]=S,c[20]=v,c[21]=y,c[22]=j,c[23]=f,c[24]=w,c[25]=N,c[26]=d):d=c[26],d}:function({cellId:e,actionBarRef:t}){let[n,i]=(0,l.useState)(t),{openDialog:a,closeDialog:r,openContextMenuCell:s,anyMenuOpen:o}=iw(),d=(0,l.useMemo)(()=>s===e,[e,s]),c=(0,l.useCallback)(()=>{a(“context-menu”,e)},[e,a]),u=(0,l.useCallback)(()=>{i(t),c()},[t,c]),m=(0,l.useCallback)(()=>{r(“context-menu”)},[r]),f=(0,l.useCallback)(()=>{d?m():c()},[m,d,c]),h=(0,l.useCallback)(()=>{i(t),f()},[t,f]);return{isContextMenuOpen:d,openContextMenu:c,openContextMenuFromActionBar:u,closeContextMenu:m,toggleContextMenu:f,toggleContextMenuFromActionBar:h,closeMarkerListDialog:(0,l.useCallback)(()=>{r(“marker-list”)},[r]),returnFocusRef:n,anyMenuOpen:o}},iS=(0,a.GV)()?function(e){let t,n,i,a,s,l=(0,r.c)(17),{cellId:o,onOpenDialog:d}=e,{openDialog:c,closeDialog:u,openNewConversationCell:m}=iw(),{sendAnalyticsEvent:f}=(0,tz.s)(),h=m?.cellId===o;l[0]!==o||l[1]!==d||l[2]!==c?(t=e=>{d?.(),c(“new-conversation”,o,e)},l[0]=o,l[1]=d,l[2]=c,l[3]=t):t=l[3];let p=t;l[4]!==p?(n=()=>{p()},l[4]=p,l[5]=n):n=l[5];let g=n;l[6]!==p||l[7]!==f?(i=()=>{p({withSuggestedChange:!0}),f(“diff.start_new_conversation_with_suggested_change”,”CELL_CONTEXT_MENU”)},l[6]=p,l[7]=f,l[8]=i):i=l[8];let x=i;l[9]!==u?(a=()=>{u(“new-conversation”)},l[9]=u,l[10]=a):a=l[10];let b=a,v=m?.withSuggestedChange;return l[11]!==b||l[12]!==h||l[13]!==v||l[14]!==g||l[15]!==x?(s={isNewConversationDialogOpen:h,startNewConversation:g,startNewConversationWithSuggestedChange:x,closeNewConversation:b,shouldStartNewConversationWithSuggestedChange:v},l[11]=b,l[12]=h,l[13]=v,l[14]=g,l[15]=x,l[16]=s):s=l[16],s}:function({cellId:e,onOpenDialog:t}){let{openDialog:n,closeDialog:i,openNewConversationCell:a}=iw(),{sendAnalyticsEvent:r}=(0,tz.s)(),s=(0,l.useMemo)(()=>a?.cellId===e,[e,a]),o=(0,l.useCallback)(i=>{t?.(),n(“new-conversation”,e,i)},[e,t,n]),d=(0,l.useCallback)(()=>{o()},[o]),c=(0,l.useCallback)(()=>{o({withSuggestedChange:!0}),r(“diff.start_new_conversation_with_suggested_change”,”CELL_CONTEXT_MENU”)},[o,r]);return{isNewConversationDialogOpen:s,startNewConversation:d,startNewConversationWithSuggestedChange:c,closeNewConversation:(0,l.useCallback)(()=>{i(“new-conversation”)},[i]),shouldStartNewConversationWithSuggestedChange:(0,l.useMemo)(()=>a?.withSuggestedChange,[a])}},iL=(0,a.GV)()?function(e){let t,n,i,a,s,o,d,c,u=(0,r.c)(29),{cellRef:m}=e,{showActionBar:f,hideActionBar:h,anyMenuOpen:p}=iw(),[g,x]=(0,l.useState)(!1);u[0]!==f?(t=()=>{f()},u[0]=f,u[1]=t):t=u[1];let b=t;u[2]!==p||u[3]!==m||u[4]!==h?(n=e=>{p||m.current&&m.current.contains(e.relatedTarget)||h()},u[2]=p,u[3]=m,u[4]=h,u[5]=n):n=u[5];let v=n;u[6]!==f?(i=()=>{f()},u[6]=f,u[7]=i):i=u[7];let y=i;u[8]!==p||u[9]!==m||u[10]!==h?(a=()=>{p||m.current===document.activeElement||m.current?.contains(document.activeElement)&&document.activeElement?.getAttribute(“data-add-comment-button”)!==”true”||h()},u[8]=p,u[9]=m,u[10]=h,u[11]=a):a=u[11];let j=a;u[12]!==p||u[13]!==m||u[14]!==h?(s=e=>{m.current&&(p||(m.current.contains(e.relatedTarget)?m.current===e.relatedTarget&&x(!1):(h(),x(!1))))},u[12]=p,u[13]=m,u[14]=h,u[15]=s):s=u[15];let C=s;u[16]!==p?(o=e=>{p||(e.stopPropagation(),x(!0))},u[16]=p,u[17]=o):o=u[17];let w=o;u[18]!==p?(d=e=>{!p&&tU(e.key)&&e.stopPropagation()},u[18]=p,u[19]=d):d=u[19];let N=d;return u[20]!==C||u[21]!==w||u[22]!==N||u[23]!==v||u[24]!==b||u[25]!==y||u[26]!==j||u[27]!==g?(c={isActionBarFocused:g,handleCellBlur:v,handleCellFocus:b,handleCellMouseEnter:y,handleCellMouseLeave:j,handleActionBarBlur:C,handleActionBarFocusCapture:w,handleActionBarKeydownCapture:N},u[20]=C,u[21]=w,u[22]=N,u[23]=v,u[24]=b,u[25]=y,u[26]=j,u[27]=g,u[28]=c):c=u[28],c}:function({cellRef:e}){let{showActionBar:t,hideActionBar:n,anyMenuOpen:i}=iw(),[a,r]=(0,l.useState)(!1),s=(0,l.useCallback)(()=>{t()},[t]),o=(0,l.useCallback)(t=>{i||e.current&&e.current.contains(t.relatedTarget)||n()},[i,e,n]),d=(0,l.useCallback)(()=>{t()},[t]),c=(0,l.useCallback)(()=>{i||e.current===document.activeElement||e.current?.contains(document.activeElement)&&document.activeElement?.getAttribute(“data-add-comment-button”)!==”true”||n()},[i,e,n]),u=(0,l.useCallback)(t=>{e.current&&(i||(e.current.contains(t.relatedTarget)?e.current===t.relatedTarget&&r(!1):(n(),r(!1))))},[i,e,n]);return{isActionBarFocused:a,handleCellBlur:o,handleCellFocus:s,handleCellMouseEnter:d,handleCellMouseLeave:c,handleActionBarBlur:u,handleActionBarFocusCapture:(0,l.useCallback)(e=>{i||(e.stopPropagation(),r(!0))},[i]),handleActionBarKeydownCapture:(0,l.useCallback)(e=>{!i&&tU(e.key)&&e.stopPropagation()},[i])}};var iD=n(21513),iI=n(73783),i_=n(24494),iR=n(79036);let iA={compact:{avatarSize:18},relaxed:{avatarSize:20}};function ik({shouldAnimateRef:e,lineSpacingPreference:t=”relaxed”,threads:n,annotations:a}){(0,l.useEffect)(()=>{e?.current&&(e.current=!1)},[e]);let{avatarSize:r}=iA[t],s=n.length+a.length;if(0===s)return null;let o={},c=[];a.map(e=>{e?.annotationLevel&&c.push({id:e.id,level:e.annotationLevel})}),n.map(e=>e?.commentsData?.comments?.map(e=>{e?.author?o[e?.author.login]=e.author:tB?.login&&(o[tB.login]=tB)}));let u=[…c.sort((e,t)=>(iR.GF[e.level]?.priority||0)<(iR.GF[t.level]?.priority||0)?-1:1).map(t=>e?.current?(0,i.jsx)(iR.S,{annotationLevel:t.level},t.id):(0,i.jsx)(iR.Xh,{annotationLevel:t.level},t.id)),…Object.keys(o).map(e=>{let t=o[e]?.login,n=o[e]?.avatarUrl??(tB?.avatarUrl||” “);return(0,i.jsx)(d.r,{alt:t,size:20,src:n},t)})].slice(0,3),m=s>9?”9+”:`${s}`;return(0,i.jsxs)(“div”,{className:(0,b.$)(“d-flex”,”flex-justify-between”,”flex-items-center”,”CommentIndicator-module__commentIndicatorContainer–GS12p”),children:[(0,i.jsx)(i_.A,{disableExpand:!0,size:r,className:(0,b.$)(“CommentIndicator-module__AvatarStack–LfU8D”,”relaxed”===t?”CommentIndicator-module__Relaxed–oSXaK”:”CommentIndicator-module__Compact–Q1u86″),children:u}),(0,i.jsx)(“span”,{className:(0,b.$)(“fgColor-default”,”ml-1″,”CommentIndicator-module__textStyles–ZLD5t”),children:m})]})}try{ik.displayName||(ik.displayName=”CommentIndicator”)}catch{}var iE=n(89141);let iT=(0,a.GV)()?function(e){let t,n,i,a,s=(0,r.c)(18),{currentHunk:l,nextHunk:o,previousHunk:d}=e,{addInjectedContextLines:c}=ee(),u=!!l&&0!==l.startBlobLineNumber,m=!!l&&!!o;s[0]!==c||s[1]!==u||s[2]!==l||s[3]!==d?(t=()=>{if(!u||!l)return;let e=d&&l&&d.endBlobLineNumber+20>l.startBlobLineNumber,t={start:Math.max(0,l.startBlobLineNumber-20),end:l.startBlobLineNumber};e&&(t.start=d.endBlobLineNumber+1),c(t)},s[0]=c,s[1]=u,s[2]=l,s[3]=d,s[4]=t):t=s[4];let f=t;s[5]!==c||s[6]!==m||s[7]!==l?(n=()=>{m&&l&&c({start:l.endBlobLineNumber+1,end:l.endBlobLineNumber+1+20})},s[5]=c,s[6]=m,s[7]=l,s[8]=n):n=s[8];let h=n;s[9]!==c||s[10]!==d?(i=()=>{d&&c({start:d.endBlobLineNumber+1,end:d.endBlobLineNumber+1+20})},s[9]=c,s[10]=d,s[11]=i):i=s[11];let p=i;return s[12]!==m||s[13]!==u||s[14]!==h||s[15]!==p||s[16]!==f?(a={expandStartOfHunk:f,expandEndOfHunk:h,expandEndOfPreviousHunk:p,canExpandEndOfHunk:m,canExpandStartOfHunk:u},s[12]=m,s[13]=u,s[14]=h,s[15]=p,s[16]=f,s[17]=a):a=s[17],a}:function({currentHunk:e,nextHunk:t,previousHunk:n}){let{addInjectedContextLines:i}=ee(),a=!!e&&0!==e.startBlobLineNumber,r=!!e&&!!t;return{expandStartOfHunk:()=>{if(!a||!e)return;let t=n&&e&&n.endBlobLineNumber+20>e.startBlobLineNumber,r={start:Math.max(0,e.startBlobLineNumber-20),end:e.startBlobLineNumber};t&&(r.start=n.endBlobLineNumber+1),i(r)},expandEndOfHunk:()=>{r&&e&&i({start:e.endBlobLineNumber+1,end:e.endBlobLineNumber+1+20})},expandEndOfPreviousHunk:()=>{n&&i({start:n.endBlobLineNumber+1,end:n.endBlobLineNumber+1+20})},canExpandEndOfHunk:r,canExpandStartOfHunk:a}};var iO=n(29255);let iP={left:”L”,right:”R”},iF=”Add comment”,i$=”Suggest change”;function iM(e,t,n){let i=n&&!(0,E.Ji)(t)?iP.left:iP.right;return`${e} on line ${i}${t.blobLineNumber}`}function iB(e,t,n,i,a){return e.right===t.right?n||i&&a?` on line R${e.right}`:`, modified line R${t.right}`:n||i&&a?` on lines R${e.right}-R${t.right}`:`, modified lines R${e.right}-R${t.right}`}function iV(e,t,n){return e.left===t.left?n?` on line L${e.left}`:`, original line L${e.left}`:n?` on lines L${e.left}-L${t.right}`:`, original lines L${e.left}-L${t.left}`}let iU=(0,a.GV)()?function(e){let t,n,a,s,l,o,d,u,m,f,h,p,g,x,b,v,y,j,C,w,N,S=(0,r.c)(72),{diffLine:L,handleStartConversationWithSuggestedChange:D,handleStartConversation:I,isLeftSide:_,isSplit:R}=e,{selectMultipleLines:A}=Y(),k=V(),O=H();S[0]!==O?(t=O(),S[0]=O,S[1]=t):t=S[1];let P=t;S[2]!==k?(n=(0,E.Mk)(k()),S[2]=k,S[3]=n):n=S[3];let F=n;S[4]!==F.leftLines?(a=F.leftLines.find(iJ),S[4]=F.leftLines,S[5]=a):a=S[5];let $=a;S[6]!==F.leftLines?(s=F.leftLines.filter(iX),S[6]=F.leftLines,S[7]=s):s=S[7];let M=s,B=M[M.length-1];S[8]!==F.leftLines?(l=F.leftLines.filter(iQ).every(iZ),S[8]=F.leftLines,S[9]=l):l=S[9];let U=l;S[10]!==F.rightLines?(o=F.rightLines.find(iW),S[10]=F.rightLines,S[11]=o):o=S[11];let G=o;S[12]!==F.rightLines?(d=F.rightLines.filter(iK),S[12]=F.rightLines,S[13]=d):d=S[13];let q=d,z=q[q.length-1];S[14]!==F.rightLines?(u=F.rightLines.filter(iz),S[14]=F.rightLines,S[15]=u):u=S[15];let K=0===u.length;S[16]!==F.leftLines?(m=F.leftLines.filter(iq),S[16]=F.leftLines,S[17]=m):m=S[17];let W=0===m.length;e:{if(F.leftLines.find(iH)||F.rightLines.find(iG)){f=!1;break e}f=!0}let Z=f;S[18]!==$||S[19]!==I||S[20]!==D||S[21]!==B||S[22]!==A||S[23]!==P?(h=(e,t)=>{!(!P||!B||!$||(0,E.Po)(B)||(0,E.Po)($))&&$.left&&B.left&&(A({endLineKey:(0,T.bo)(B),endOrientation:”left”,startLineKey:(0,T.bo)($),startOrientation:”left”,firstLineSelectionOnDrag:{lineKey:(0,T.bo)($),lineNumber:$.left,orientation:”left”,shouldStartConversation:!1}},eC),t?.withSuggestedChange?D():I())},S[18]=$,S[19]=I,S[20]=D,S[21]=B,S[22]=A,S[23]=P,S[24]=h):h=S[24];let Q=h;S[25]!==G||S[26]!==I||S[27]!==D||S[28]!==z||S[29]!==A||S[30]!==P?(p=(e,t)=>{!(!P||!z||!G||(0,E.Po)(z)||(0,E.Po)(G))&&G.right&&z.right&&(A({endLineKey:(0,T.bo)(z),endOrientation:”right”,startLineKey:(0,T.bo)(G),startOrientation:”right”,firstLineSelectionOnDrag:{lineKey:(0,T.bo)(G),lineNumber:G.right,orientation:”right”,shouldStartConversation:!1}},eC),t?.withSuggestedChange?D():I())},S[25]=G,S[26]=I,S[27]=D,S[28]=z,S[29]=A,S[30]=P,S[31]=p):p=S[31];let X=p,J=”DELETION”!==L.type;t:{if(!P){g=!1;break t}if(P.startOrientation!==P.endOrientation||P.startLineNumber!==P.endLineNumber){g=!0;break t}g=!1}let ee=g,et=!1,en=!1;if(P&&ee){let e,t=iP[P.startOrientation],n=iP[P.endOrientation];if(v=` on lines ${t}${P.startLineNumber}-${n}${P.endLineNumber}`,!(0,E.Po)($)&&!(0,E.Po)(B)&&$&&B){let e;et=!0,S[32]!==$||S[33]!==B||S[34]!==K?(e=iV($,B,K),S[32]=$,S[33]=B,S[34]=K,S[35]=e):e=S[35],x=e}if(!(0,E.Po)(G)&&!(0,E.Po)(z)&&G&&z){let e;en=!0,S[36]!==Z||S[37]!==G||S[38]!==R||S[39]!==z||S[40]!==W?(e=iB(G,z,W,R,Z),S[36]=Z,S[37]=G,S[38]=R,S[39]=z,S[40]=W,S[41]=e):e=S[41],b=e}return S[42]!==Z||S[43]!==U||S[44]!==J||S[45]!==I||S[46]!==D||S[47]!==X||S[48]!==Q||S[49]!==R||S[50]!==K||S[51]!==b||S[52]!==x||S[53]!==en||S[54]!==et||S[55]!==v?(e=(0,i.jsx)(i.Fragment,{children:R?(0,i.jsx)(i.Fragment,{children:Z?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eO.l.Item,{onSelect:X,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iF+b,(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eO.l.Item,{onSelect:e=>X(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),i$+b]})]}):(0,i.jsxs)(i.Fragment,{children:[et?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eO.l.Item,{onSelect:Q,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iF+x,(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:K?”Alt+n”:”Alt+Shift+N”})})]}),U&&(0,i.jsxs)(eO.l.Item,{onSelect:e=>Q(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),i$+x]})]}):null,en?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eO.l.Item,{onSelect:X,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iF+b,(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eO.l.Item,{onSelect:e=>X(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),i$+b]})]}):null]})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eO.l.Item,{onSelect:I,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iF+v]}),J&&U&&(0,i.jsxs)(eO.l.Item,{onSelect:D,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),i$+v]})]})}),S[42]=Z,S[43]=U,S[44]=J,S[45]=I,S[46]=D,S[47]=X,S[48]=Q,S[49]=R,S[50]=K,S[51]=b,S[52]=x,S[53]=en,S[54]=et,S[55]=v,S[56]=e):e=S[56],e}return S[57]===Symbol.for(“react.memo_cache_sentinel”)?(y=(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),S[57]=y):y=S[57],S[58]!==_||S[59]!==L?(j=iM(iF,L,_),S[58]=_,S[59]=L,S[60]=j):j=S[60],S[61]!==I||S[62]!==j?(C=(0,i.jsxs)(eO.l.Item,{onSelect:I,children:[y,j]}),S[61]=I,S[62]=j,S[63]=C):C=S[63],S[64]!==J||S[65]!==D||S[66]!==_||S[67]!==L?(w=J&&(0,i.jsxs)(eO.l.Item,{onSelect:D,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iM(i$,L,_)]}),S[64]=J,S[65]=D,S[66]=_,S[67]=L,S[68]=w):w=S[68],S[69]!==C||S[70]!==w?(N=(0,i.jsxs)(i.Fragment,{children:[C,w]}),S[69]=C,S[70]=w,S[71]=N):N=S[71],N}:function({diffLine:e,handleStartConversationWithSuggestedChange:t,handleStartConversation:n,isLeftSide:a,isSplit:r}){let s,o,d,{selectMultipleLines:u}=Y(),m=V(),f=H()(),h=(0,l.useMemo)(()=>(0,E.Mk)(m()),[m]),p=(0,l.useMemo)(()=>h.leftLines.find(e=>!(0,E.Po)(e)),[h.leftLines]),g=(0,l.useMemo)(()=>{let e=h.leftLines.filter(e=>!(0,E.Po)(e));return e[e.length-1]},[h.leftLines]),x=(0,l.useMemo)(()=>h.leftLines.filter(e=>!(0,E.Po)(e)).every(e=>”DELETION”!==e.type),[h.leftLines]),b=(0,l.useMemo)(()=>h.rightLines.find(e=>!(0,E.Po)(e)),[h.rightLines]),v=(0,l.useMemo)(()=>{let e=h.rightLines.filter(e=>!(0,E.Po)(e));return e[e.length-1]},[h.rightLines]),y=(0,l.useMemo)(()=>0===h.rightLines.filter(e=>!(0,E.Po)(e)).length,[h.rightLines]),j=(0,l.useMemo)(()=>0===h.leftLines.filter(e=>!(0,E.Po)(e)).length,[h.leftLines]),C=(0,l.useMemo)(()=>!(h.leftLines.find(e=>!(0,E.Po)(e)&&!(0,E.Ji)(e)&&”INJECTED_CONTEXT”!==e.type)||h.rightLines.find(e=>!(0,E.Po)(e)&&!(0,E.Ji)(e)&&”INJECTED_CONTEXT”!==e.type)),[h.leftLines,h.rightLines]),w=(0,l.useCallback)((e,i)=>{!(!f||!g||!p||(0,E.Po)(g)||(0,E.Po)(p))&&p.left&&g.left&&(u({endLineKey:(0,T.bo)(g),endOrientation:”left”,startLineKey:(0,T.bo)(p),startOrientation:”left”,firstLineSelectionOnDrag:{lineKey:(0,T.bo)(p),lineNumber:p.left,orientation:”left”,shouldStartConversation:!1}},eC),i?.withSuggestedChange?t():n())},[f,g,p,u,t,n]),N=(0,l.useCallback)((e,i)=>{!(!f||!v||!b||(0,E.Po)(v)||(0,E.Po)(b))&&b.right&&v.right&&(u({endLineKey:(0,T.bo)(v),endOrientation:”right”,startLineKey:(0,T.bo)(b),startOrientation:”right”,firstLineSelectionOnDrag:{lineKey:(0,T.bo)(b),lineNumber:b.right,orientation:”right”,shouldStartConversation:!1}},eC),i?.withSuggestedChange?t():n())},[f,v,b,u,t,n]),S=”DELETION”!==e.type,L=(0,l.useMemo)(()=>!!f&&(f.startOrientation!==f.endOrientation||f.startLineNumber!==f.endLineNumber),[f]),D=!1,I=!1;if(f&&L){let e=iP[f.startOrientation],a=iP[f.endOrientation];return d=` on lines ${e}${f.startLineNumber}-${a}${f.endLineNumber}`,!(0,E.Po)(p)&&!(0,E.Po)(g)&&p&&g&&(D=!0,s=iV(p,g,y)),!(0,E.Po)(b)&&!(0,E.Po)(v)&&b&&v&&(I=!0,o=iB(b,v,j,r,C)),(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(i.Fragment,{children:C?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eO.l.Item,{onSelect:N,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iF+o,(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eO.l.Item,{onSelect:e=>N(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),i$+o]})]}):(0,i.jsxs)(i.Fragment,{children:[D?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eO.l.Item,{onSelect:w,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iF+s,(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:y?”Alt+n”:”Alt+Shift+N”})})]}),x&&(0,i.jsxs)(eO.l.Item,{onSelect:e=>w(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),i$+s]})]}):null,I?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eO.l.Item,{onSelect:N,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iF+o,(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eO.l.Item,{onSelect:e=>N(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),i$+o]})]}):null]})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eO.l.Item,{onSelect:n,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iF+d]}),S&&x&&(0,i.jsxs)(eO.l.Item,{onSelect:t,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),i$+d]})]})})}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eO.l.Item,{onSelect:n,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iM(iF,e,a)]}),S&&(0,i.jsxs)(eO.l.Item,{onSelect:t,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iM(i$,e,a)]})]})};function iG(e){return!(0,E.Po)(e)&&!(0,E.Ji)(e)&&”INJECTED_CONTEXT”!==e.type}function iH(e){return!(0,E.Po)(e)&&!(0,E.Ji)(e)&&”INJECTED_CONTEXT”!==e.type}function iq(e){return!(0,E.Po)(e)}function iz(e){return!(0,E.Po)(e)}function iK(e){return!(0,E.Po)(e)}function iW(e){return!(0,E.Po)(e)}function iZ(e){return”DELETION”!==e.type}function iQ(e){return!(0,E.Po)(e)}function iX(e){return!(0,E.Po)(e)}function iJ(e){return!(0,E.Po)(e)}try{iU.displayName||(iU.displayName=”StartConversationContextMenuItems”)}catch{}var iY=n(66358);let i0=(0,a.GV)()?function(e){let t,n,a,s,l,o,d,c=(0,r.c)(28);return c[0]!==e?(t=(0,i.jsx)(i5,{…e}),c[0]=e,c[1]=t):t=c[1],c[2]!==e.copilotChatReference||c[3]!==e.diffAnchor||c[4]!==e.diffLine||c[5]!==e.isLeftSide||c[6]!==e.viewerData.shouldDisplayComments?(n=e.viewerData.shouldDisplayComments&&(0,i.jsx)(i3,{diffAnchor:e.diffAnchor,diffLine:e.diffLine,fileDiffReference:e.copilotChatReference,isLeftSide:e.isLeftSide}),c[2]=e.copilotChatReference,c[3]=e.diffAnchor,c[4]=e.diffLine,c[5]=e.isLeftSide,c[6]=e.viewerData.shouldDisplayComments,c[7]=n):n=c[7],c[8]!==e.handleCopyCode?(a=(0,i.jsx)(ae,{handleCopyCode:e.handleCopyCode}),c[8]=e.handleCopyCode,c[9]=a):a=c[9],c[10]!==e.diffAnchor?(s=(0,i.jsx)(i4,{diffAnchor:e.diffAnchor}),c[10]=e.diffAnchor,c[11]=s):s=c[11],c[12]!==e.diffAnchor||c[13]!==e.diffLine||c[14]!==e.viewerData.shouldDisplayComments?(l=e.viewerData.shouldDisplayComments&&(0,i.jsx)(i1,{diffAnchor:e.diffAnchor,diffLine:e.diffLine}),c[12]=e.diffAnchor,c[13]=e.diffLine,c[14]=e.viewerData.shouldDisplayComments,c[15]=l):l=c[15],c[16]!==e.currentHunk||c[17]!==e.diffAnchor||c[18]!==e.nextHunk||c[19]!==e.previousHunk?(o=(0,i.jsx)(an,{currentHunk:e.currentHunk,diffAnchor:e.diffAnchor,nextHunk:e.nextHunk,previousHunk:e.previousHunk}),c[16]=e.currentHunk,c[17]=e.diffAnchor,c[18]=e.nextHunk,c[19]=e.previousHunk,c[20]=o):o=c[20],c[21]!==t||c[22]!==n||c[23]!==a||c[24]!==s||c[25]!==l||c[26]!==o?(d=(0,i.jsxs)(i.Fragment,{children:[t,n,a,s,l,o]}),c[21]=t,c[22]=n,c[23]=a,c[24]=s,c[25]=l,c[26]=o,c[27]=d):d=c[27],d}:function(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(i5,{…e}),e.viewerData.shouldDisplayComments&&(0,i.jsx)(i3,{diffAnchor:e.diffAnchor,diffLine:e.diffLine,fileDiffReference:e.copilotChatReference,isLeftSide:e.isLeftSide}),(0,i.jsx)(ae,{handleCopyCode:e.handleCopyCode}),(0,i.jsx)(i4,{diffAnchor:e.diffAnchor}),e.viewerData.shouldDisplayComments&&(0,i.jsx)(i1,{diffAnchor:e.diffAnchor,diffLine:e.diffLine}),(0,i.jsx)(an,{currentHunk:e.currentHunk,diffAnchor:e.diffAnchor,nextHunk:e.nextHunk,previousHunk:e.previousHunk})]})},i1=(0,a.GV)()?function(e){let t,n,a,s,l=(0,r.c)(8),{diffLine:o,diffAnchor:d}=e,u=H();l[0]!==d||l[1]!==u||l[2]!==o?(t=()=>{let e=u(),t=(0,E.j2)({line:o,range:e,fileAnchor:d});t&&(0,ig.D)(t)},l[0]=d,l[1]=u,l[2]=o,l[3]=t):t=l[3];let m=t;return l[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.LinkIcon,{})}),l[4]=n):n=l[4],l[5]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Mod+Alt+y”})}),l[5]=a):a=l[5],l[6]!==m?(s=(0,i.jsxs)(eO.l.Item,{onSelect:m,onMouseDown:i2,children:[n,”Copy link”,a]}),l[6]=m,l[7]=s):s=l[7],s}:function({diffLine:e,diffAnchor:t}){let n=H(),a=(0,l.useCallback)(()=>{let i=n(),a=(0,E.j2)({line:e,range:i,fileAnchor:t});a&&(0,ig.D)(a)},[t,n,e]);return(0,i.jsxs)(eO.l.Item,{onSelect:a,onMouseDown:e=>{window.getSelection()?.toString()!==””&&e.preventDefault()},children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.LinkIcon,{})}),”Copy link”,(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Mod+Alt+y”})})]})};function i2(e){window.getSelection()?.toString()!==””&&e.preventDefault()}let i3=(0,a.GV)()?e=>{let t,n,a=(0,r.c)(8),s=H();if(a[0]!==s||a[1]!==e.diffAnchor||a[2]!==e.diffLine||a[3]!==e.isLeftSide){let n=s();t=(0,E.Av)(n,e.diffLine,e.isLeftSide,e.diffAnchor),a[0]=s,a[1]=e.diffAnchor,a[2]=e.diffLine,a[3]=e.isLeftSide,a[4]=t}else t=a[4];let l=t;return e.fileDiffReference?(a[5]!==l||a[6]!==e.fileDiffReference?(n=(0,i.jsx)(iE.w,{showDivider:!0,selectedRange:l,fileDiffReference:e.fileDiffReference}),a[5]=l,a[6]=e.fileDiffReference,a[7]=n):n=a[7],n):null}:e=>{let t=H()(),n=(0,E.Av)(t,e.diffLine,e.isLeftSide,e.diffAnchor);return e.fileDiffReference?(0,i.jsx)(iE.w,{showDivider:!0,selectedRange:n,fileDiffReference:e.fileDiffReference}):null},i4=(0,a.GV)()?function(e){let t,n,a,s,l=(0,r.c)(6),{diffAnchor:o}=e;l[0]!==o?(t=()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${o}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”a”,code:”KeyA”,ctrlKey:!0}))})},l[0]=o,l[1]=t):t=l[1];let d=t;return l[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.MultiSelectIcon,{})}),l[2]=n):n=l[2],l[3]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Mod+a”})}),l[3]=a):a=l[3],l[4]!==d?(s=(0,i.jsxs)(eO.l.Item,{onSelect:d,children:[n,”Select all”,a]}),l[4]=d,l[5]=s):s=l[5],s}:function({diffAnchor:e}){return(0,i.jsxs)(eO.l.Item,{onSelect:()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${e}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”a”,code:”KeyA”,ctrlKey:!0}))})},children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.MultiSelectIcon,{})}),”Select all”,(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Mod+a”})})]})},i5=(0,a.GV)()?function(e){let t,n,a,s,l=(0,r.c)(21),{diffLine:o,handleViewMarkersSelection:d,isLeftSide:c,isSplit:u,shouldDisplayCollapseComments:m,showStartConversation:f,startConversationCurrentLine:h,startConversationWithSuggestedChange:p,threads:g,annotations:x,viewerData:b}=e,v=x.length>0;return f||g||v?(l[0]!==o||l[1]!==c||l[2]!==u||l[3]!==f||l[4]!==h||l[5]!==p||l[6]!==b.shouldDisplayComments?(t=b.shouldDisplayComments&&f&&(0,i.jsx)(iU,{diffLine:o,handleStartConversation:h,handleStartConversationWithSuggestedChange:p,isLeftSide:c,isSplit:u}),l[0]=o,l[1]=c,l[2]=u,l[3]=f,l[4]=h,l[5]=p,l[6]=b.shouldDisplayComments,l[7]=t):t=l[7],l[8]!==x||l[9]!==o||l[10]!==d||l[11]!==c||l[12]!==u||l[13]!==m||l[14]!==g||l[15]!==b?(n=(0,i.jsx)(i6,{threads:g,annotations:x,diffLine:o,handleViewMarkersSelection:d,isLeftSide:c,isSplit:u,shouldDisplayCollapseComments:m,viewerData:b}),l[8]=x,l[9]=o,l[10]=d,l[11]=c,l[12]=u,l[13]=m,l[14]=g,l[15]=b,l[16]=n):n=l[16],l[17]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(eO.l.Divider,{}),l[17]=a):a=l[17],l[18]!==t||l[19]!==n?(s=(0,i.jsxs)(i.Fragment,{children:[t,n,a]}),l[18]=t,l[19]=n,l[20]=s):s=l[20],s):null}:function({diffLine:e,handleViewMarkersSelection:t,isLeftSide:n,isSplit:a,shouldDisplayCollapseComments:r,showStartConversation:s,startConversationCurrentLine:l,startConversationWithSuggestedChange:o,threads:d,annotations:c,viewerData:u}){let m=c.length>0;return s||d||m?(0,i.jsxs)(i.Fragment,{children:[u.shouldDisplayComments&&s&&(0,i.jsx)(iU,{diffLine:e,handleStartConversation:l,handleStartConversationWithSuggestedChange:o,isLeftSide:n,isSplit:a}),(0,i.jsx)(i6,{threads:d,annotations:c,diffLine:e,handleViewMarkersSelection:t,isLeftSide:n,isSplit:a,shouldDisplayCollapseComments:r,viewerData:u}),(0,i.jsx)(eO.l.Divider,{})]}):null},i6=(0,a.GV)()?function(e){let t,n=(0,r.c)(14),{diffLine:a,handleViewMarkersSelection:s,isLeftSide:l,isSplit:o,threads:d,annotations:c,shouldDisplayCollapseComments:u,viewerData:m}=e;if(m.commentsPreference===ip.sI.Visible)return null;if(!o){let e,t;return n[0]!==s?(e=()=>s(),n[0]=s,n[1]=e):e=n[1],n[2]!==c||n[3]!==a||n[4]!==u||n[5]!==e||n[6]!==d?(t=(0,i.jsx)(i8,{threads:d,annotations:c,diffLine:a,onSelect:e,shouldDisplayCollapseComments:u}),n[2]=c,n[3]=a,n[4]=u,n[5]=e,n[6]=d,n[7]=t):t=n[7],t}return n[8]!==c||n[9]!==s||n[10]!==l||n[11]!==u||n[12]!==d?(t=(0,i.jsx)(i7,{threads:d,annotations:c,handleViewMarkersSelection:s,isLeftSide:l,shouldDisplayCollapseComments:u}),n[8]=c,n[9]=s,n[10]=l,n[11]=u,n[12]=d,n[13]=t):t=n[13],t}:function({diffLine:e,handleViewMarkersSelection:t,isLeftSide:n,isSplit:a,threads:r,annotations:s,shouldDisplayCollapseComments:l,viewerData:o}){return o.commentsPreference===ip.sI.Visible?null:a?(0,i.jsx)(i7,{threads:r,annotations:s,handleViewMarkersSelection:t,isLeftSide:n,shouldDisplayCollapseComments:l}):(0,i.jsx)(i8,{threads:r,annotations:s,diffLine:e,onSelect:()=>t(),shouldDisplayCollapseComments:l})},i7=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(13),{handleViewMarkersSelection:s,isLeftSide:l,shouldDisplayCollapseComments:o,threads:d,annotations:c}=e,u=d.length>0,m=c.length>0;if(l){let e,t;return a[0]!==s||a[1]!==u||a[2]!==o?(e=u&&(0,i.jsx)(i9,{text:o?”Collapse comments”:”Expand comments”,onSelect:()=>s(“LEFT”)}),a[0]=s,a[1]=u,a[2]=o,a[3]=e):e=a[3],a[4]!==e?(t=(0,i.jsx)(i.Fragment,{children:e}),a[4]=e,a[5]=t):t=a[5],t}return a[6]!==s||a[7]!==m||a[8]!==u||a[9]!==o?(t=(u||m)&&(0,i.jsx)(i9,{text:o?”Collapse comments”:”Expand comments”,onSelect:()=>s(“RIGHT”)}),a[6]=s,a[7]=m,a[8]=u,a[9]=o,a[10]=t):t=a[10],a[11]!==t?(n=(0,i.jsx)(i.Fragment,{children:t}),a[11]=t,a[12]=n):n=a[12],n}:function({handleViewMarkersSelection:e,isLeftSide:t,shouldDisplayCollapseComments:n,threads:a,annotations:r}){let s=a.length>0,l=r.length>0;return t?(0,i.jsx)(i.Fragment,{children:s&&(0,i.jsx)(i9,{text:n?”Collapse comments”:”Expand comments”,onSelect:()=>e(“LEFT”)})}):(0,i.jsx)(i.Fragment,{children:(s||l)&&(0,i.jsx)(i9,{text:n?”Collapse comments”:”Expand comments”,onSelect:()=>e(“RIGHT”)})})},i8=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{diffLine:s,onSelect:l,threads:o,annotations:d,shouldDisplayCollapseComments:c}=e;if(!(s&&(o.length>0||d.length>0)))return null;let u=c?”Collapse comments”:”Expand comments”;return a[0]!==l?(t=()=>l(),a[0]=l,a[1]=t):t=a[1],a[2]!==u||a[3]!==t?(n=(0,i.jsx)(i9,{text:u,onSelect:t}),a[2]=u,a[3]=t,a[4]=n):n=a[4],n}:function({diffLine:e,onSelect:t,threads:n,annotations:a,shouldDisplayCollapseComments:r}){return e&&(n.length>0||a.length>0)?(0,i.jsx)(i9,{text:r?”Collapse comments”:”Expand comments”,onSelect:()=>t()}):null},i9=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(4),{onSelect:s,text:l}=e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.CommentDiscussionIcon,{})}),a[0]=t):t=a[0],a[1]!==s||a[2]!==l?(n=(0,i.jsxs)(eO.l.Item,{onSelect:s,children:[t,l]}),a[1]=s,a[2]=l,a[3]=n):n=a[3],n}:function({onSelect:e,text:t}){return(0,i.jsxs)(eO.l.Item,{onSelect:e,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.CommentDiscussionIcon,{})}),t]})},ae=(0,a.GV)()?function(e){let t,n,a,s=(0,r.c)(4),{handleCopyCode:l}=e;return s[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.CopyIcon,{})}),s[0]=t):t=s[0],s[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Mod+c”})}),s[1]=n):n=s[1],s[2]!==l?(a=(0,i.jsxs)(eO.l.Item,{onSelect:l,onMouseDown:at,children:[t,”Copy”,n]}),s[2]=l,s[3]=a):a=s[3],a}:function({handleCopyCode:e}){return(0,i.jsxs)(eO.l.Item,{onSelect:e,onMouseDown:e=>{window.getSelection()?.toString()!==””&&e.preventDefault()},children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.CopyIcon,{})}),”Copy”,(0,i.jsx)(eO.l.TrailingVisual,{children:(0,i.jsx)(iO.U,{keys:”Mod+c”})})]})};function at(e){window.getSelection()?.toString()!==””&&e.preventDefault()}let an=(0,a.GV)()?function(e){let t,n,a,s,l,o=(0,r.c)(17),{currentHunk:d,diffAnchor:c,nextHunk:u,previousHunk:m}=e,f=z();o[0]!==d||o[1]!==u||o[2]!==m?(t={currentHunk:d,nextHunk:u,previousHunk:m},o[0]=d,o[1]=u,o[2]=m,o[3]=t):t=o[3];let{canExpandStartOfHunk:h,canExpandEndOfHunk:p}=iT(t);return h||p||m||u?(o[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(eO.l.Divider,{}),o[4]=n):n=o[4],o[5]!==d||o[6]!==f||o[7]!==u||o[8]!==m?(a=f.has(iY.YR.expandLines)?null:(0,i.jsx)(ai,{currentHunk:d,nextHunk:u,previousHunk:m}),o[5]=d,o[6]=f,o[7]=u,o[8]=m,o[9]=a):a=o[9],o[10]!==c||o[11]!==u||o[12]!==m?(s=(0,i.jsx)(aa,{diffAnchor:c,nextHunk:u,previousHunk:m}),o[10]=c,o[11]=u,o[12]=m,o[13]=s):s=o[13],o[14]!==a||o[15]!==s?(l=(0,i.jsxs)(i.Fragment,{children:[n,a,s]}),o[14]=a,o[15]=s,o[16]=l):l=o[16],l):null}:function({currentHunk:e,diffAnchor:t,nextHunk:n,previousHunk:a}){let r=z(),{canExpandStartOfHunk:s,canExpandEndOfHunk:l}=iT({currentHunk:e,nextHunk:n,previousHunk:a});return s||l||a||n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eO.l.Divider,{}),r.has(iY.YR.expandLines)?null:(0,i.jsx)(ai,{currentHunk:e,nextHunk:n,previousHunk:a}),(0,i.jsx)(aa,{diffAnchor:t,nextHunk:n,previousHunk:a})]}):null},ai=(0,a.GV)()?function(e){let t,n,a,s,l=(0,r.c)(13),{currentHunk:o,nextHunk:d,previousHunk:u}=e;l[0]!==o||l[1]!==d||l[2]!==u?(t={currentHunk:o,nextHunk:d,previousHunk:u},l[0]=o,l[1]=d,l[2]=u,l[3]=t):t=l[3];let{canExpandStartOfHunk:m,expandEndOfHunk:f,expandStartOfHunk:h,canExpandEndOfHunk:p}=iT(t);return l[4]!==m||l[5]!==h?(n=m&&(0,i.jsxs)(eO.l.Item,{onSelect:h,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.FoldUpIcon,{})}),”Expand above”]}),l[4]=m,l[5]=h,l[6]=n):n=l[6],l[7]!==p||l[8]!==f?(a=p&&(0,i.jsxs)(eO.l.Item,{onSelect:f,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.FoldDownIcon,{})}),”Expand below”]}),l[7]=p,l[8]=f,l[9]=a):a=l[9],l[10]!==n||l[11]!==a?(s=(0,i.jsxs)(i.Fragment,{children:[n,a]}),l[10]=n,l[11]=a,l[12]=s):s=l[12],s}:function({currentHunk:e,nextHunk:t,previousHunk:n}){let{canExpandStartOfHunk:a,expandEndOfHunk:r,expandStartOfHunk:s,canExpandEndOfHunk:l}=iT({currentHunk:e,nextHunk:t,previousHunk:n});return(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsxs)(eO.l.Item,{onSelect:s,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.FoldUpIcon,{})}),”Expand above”]}),l&&(0,i.jsxs)(eO.l.Item,{onSelect:r,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.FoldDownIcon,{})}),”Expand below”]})]})},aa=(0,a.GV)()?function(e){let t,n,a,s,l,o=(0,r.c)(13),{diffAnchor:d,nextHunk:u,previousHunk:m}=e,f=!!m,h=!!u;o[0]!==d?(t=()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${d}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageDown”}))})},o[0]=d,o[1]=t):t=o[1];let p=t;o[2]!==d?(n=()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${d}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageUp”}))})},o[2]=d,o[3]=n):n=o[3];let g=n;return o[4]!==p||o[5]!==h?(a=h?(0,i.jsxs)(eO.l.Item,{“aria-keyshortcuts”:”PageDown”,onSelect:p,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToBottomIcon,{})}),”Go to next hunk”,(0,i.jsx)(eO.l.TrailingVisual,{children:”Page Down”})]}):null,o[4]=p,o[5]=h,o[6]=a):a=o[6],o[7]!==g||o[8]!==f?(s=f?(0,i.jsxs)(eO.l.Item,{“aria-keyshortcuts”:”PageUp”,onSelect:g,children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToTopIcon,{})}),”Go to previous hunk”,(0,i.jsx)(eO.l.TrailingVisual,{children:”Page Up”})]}):null,o[7]=g,o[8]=f,o[9]=s):s=o[9],o[10]!==a||o[11]!==s?(l=(0,i.jsxs)(i.Fragment,{children:[a,s]}),o[10]=a,o[11]=s,o[12]=l):l=o[12],l}:function({diffAnchor:e,nextHunk:t,previousHunk:n}){return(0,i.jsxs)(i.Fragment,{children:[t?(0,i.jsxs)(eO.l.Item,{“aria-keyshortcuts”:”PageDown”,onSelect:()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${e}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageDown”}))})},children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToBottomIcon,{})}),”Go to next hunk”,(0,i.jsx)(eO.l.TrailingVisual,{children:”Page Down”})]}):null,n?(0,i.jsxs)(eO.l.Item,{“aria-keyshortcuts”:”PageUp”,onSelect:()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${e}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageUp”}))})},children:[(0,i.jsx)(eO.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToTopIcon,{})}),”Go to previous hunk”,(0,i.jsx)(eO.l.TrailingVisual,{children:”Page Up”})]}):null]})};try{i0.displayName||(i0.displayName=”CellContextMenu”)}catch{}try{i1.displayName||(i1.displayName=”CopyAnchorLink”)}catch{}try{i4.displayName||(i4.displayName=”SelectAllListItem”)}catch{}try{i5.displayName||(i5.displayName=”MarkerListItems”)}catch{}try{i6.displayName||(i6.displayName=”ViewMarkerListItems”)}catch{}try{i7.displayName||(i7.displayName=”SplitDiffMarkersListItems”)}catch{}try{i8.displayName||(i8.displayName=”UnifiedDiffMarkerListItem”)}catch{}try{i9.displayName||(i9.displayName=”MarkerListItem”)}catch{}try{ae.displayName||(ae.displayName=”CopyContentListItems”)}catch{}try{an.displayName||(an.displayName=”HunkListItems”)}catch{}try{ai.displayName||(ai.displayName=”ExpandHunksListItems”)}catch{}try{aa.displayName||(aa.displayName=”JumpToHunkListItems”)}catch{}var ar=n(17998);let as=”InProgressCommentIndicator-module__statusAvatarBackground–xzHl8″,al=”InProgressCommentIndicator-module__statusAvatar–BNNHX”,ao=(0,a.GV)()?function(e){let t,n=(0,r.c)(4),{authorAvatarUrl:a,authorLogin:s,lineSpacingPreference:l}=e,o=”compact”===l?18:20,d=`${s}’s avatar image with pending indicator`;return n[0]!==a||n[1]!==o||n[2]!==d?(t=(0,i.jsx)(ar.k,{altText:d,icon:c.DotFillIcon,iconColor:”var(–fgColor-attention, var(–color-attention-fg))”,square:!1,size:o,src:a,backgroundClassName:as,className:al}),n[0]=a,n[1]=o,n[2]=d,n[3]=t):t=n[3],t}:function({authorAvatarUrl:e,authorLogin:t,lineSpacingPreference:n}){return(0,i.jsx)(ar.k,{altText:`${t}’s avatar image with pending indicator`,icon:c.DotFillIcon,iconColor:”var(–fgColor-attention, var(–color-attention-fg))”,square:!1,size:”compact”===n?18:20,src:e,backgroundClassName:as,className:al})};try{ao.displayName||(ao.displayName=”InProgressCommentIndicator”)}catch{}let ad=”ActionBar-module__action-bar-position–cMcOj”,ac=”ActionBar-module__addCommentButton–gIYSg”,au=”ActionBar-module__addCommentButtonDraftCompact–HKIKU”,am=”ActionBar-module__addCommentButtonDraftRelaxed–_qJPM”,af=”ActionBar-module__addCommentButtonNew–j1kFj”,ah=”ActionBar-module__actionBarArrowSizing–L93H4″,ap=”ActionBar-module__actionBarHeight–wiyuB”,ag=”ActionBar-module__actionBarStartCommentWidth–TTHf8″,ax=”ActionBar-module__action-bar-button-group–G1uFN”;var ab=n(85933),av=n(82518);let ay=(0,l.forwardRef)(function({annotations:e,authorAvatarUrl:t,authorLogin:n,cellId:a,cellRef:r,copilotChatReference:s,currentHunk:o,diffAnchor:d,diffLine:u,enterDialogMode:m,hasDraftComment:f,handleCopyCode:h,isLeftSide:p,isSplit:g,nextHunk:x,onMouseDownAddCommentButton:v,onMouseLeaveAddCommentButton:y,previousHunk:j,shouldDisplayCollapseComments:C,shouldDisplayMinimizedComments:w,showStartConversation:N,threads:S,toggleViewingMarkers:L,viewerData:D},I){let _=(0,l.useRef)(null),R=(0,l.useRef)(null),{lineSpacingPreference:A,commentsPreference:k}=D,E=(0,l.useRef)(null),{sendAnalyticsEvent:T}=(0,tz.s)(),O=_.current?_:R;(0,iD.T)(I,O);let P=S.reduce((e,t)=>e+(t.commentsData?.comments.length??0),0),F=e.length,{isActionBarFocused:$,handleActionBarBlur:M,handleActionBarFocusCapture:B,handleActionBarKeydownCapture:V}=iL({cellRef:r}),{isContextMenuOpen:U,anyMenuOpen:G,toggleContextMenu:H,toggleContextMenuFromActionBar:q}=iN({cellId:a,actionBarRef:E}),{startNewConversation:z,startNewConversationWithSuggestedChange:K}=iS({cellId:a,onOpenDialog:m}),W=(0,l.useCallback)(e=>{(0,ab.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{T(“diff-lines.inp_interaction”,”CELL_ADD_COMMENT_BUTTON”,{latency:e.latency}),(0,av.au)({name:”PRS_COMMENT_BOX_INP”,value:e.latency})}}),e.stopPropagation(),z()},[z,T]),Z=P+F>0&&k===ip.sI.Collapsed,Q={onBlur:M,onFocusCapture:B,onKeyDownCapture:V},X=(0,l.useCallback)(t=>{(1===S.length||1===e.length)&&t.preventDefault(),L?.()},[e.length,S.length,L]);return(0,i.jsxs)(i.Fragment,{children:[N&&(0,i.jsx)(“div”,{“aria-hidden”:!$,className:(0,b.$)(“d-flex”,”flex-row”,ac),children:(0,i.jsx)(i.Fragment,{children:f?(0,i.jsx)(eI.Q,{“aria-label”:”Continue comment in progress”,size:”small”,className:(0,b.$)(“py-0″,”compact”===A?au:am,ap),onClick:z,…Q,children:(0,i.jsx)(ao,{lineSpacingPreference:A,authorAvatarUrl:t,authorLogin:n})}):(0,i.jsx)(eI.Q,{icon:c.PlusIcon,”aria-label”:”Add comment”,ref:R,size:”small”,”data-add-comment-button”:!0,className:(0,b.$)(“fgColor-muted”,”bgColor-accent-emphasis”,”borderColor-accent-emphasis”,”fgColor-onEmphasis”,”px-0″,af,ap,ag),onClick:W,onMouseDown:v,onMouseLeave:y,…Q})})}),(0,i.jsx)(“div”,{“aria-hidden”:!$,className:(0,b.$)(“d-flex”,”flex-row”,ad),children:(0,i.jsxs)(iI.A,{className:ax,…Q,children:[Z&&w&&(0,i.jsx)(eI.Q,{ref:_,”aria-expanded”:G,”aria-label”:”View comments”,size:”small”,className:(0,b.$)(“py-0″,”px-1″,ap),onClick:X,children:(0,i.jsx)(ik,{threads:S,annotations:e,lineSpacingPreference:A})}),(0,i.jsxs)(eT.W,{anchorRef:E,open:U,onOpenChange:H,children:[(0,i.jsx)(eT.W.Anchor,{children:(0,i.jsx)(eI.Q,{ref:E,”aria-haspopup”:”true”,”aria-label”:”More actions”,icon:c.TriangleDownIcon,size:”small”,className:(0,b.$)(“fgColor-muted”,ah),onClick:q})}),(0,i.jsx)(eT.W.Overlay,{width:”medium”,children:(0,i.jsx)(eO.l,{children:(0,i.jsx)(i0,{threads:S,annotations:e,currentHunk:o,diffAnchor:d,diffLine:u,shouldDisplayCollapseComments:C,copilotChatReference:s,showStartConversation:N,handleCopyCode:h,handleViewMarkersSelection:L,isLeftSide:p,isSplit:g,nextHunk:x,previousHunk:j,startConversationCurrentLine:z,startConversationWithSuggestedChange:K,viewerData:D})})})]})]})})]})});function aj(e,t){let n=t>0,i=e>0;switch(!0){case n&&i:return”Code has comments and alerts. Press enter to view.”;case i:return”Code has comments. Press enter to view.”;case n:return”Code has alerts. Press enter to view.”;default:return””}}ay.displayName=”ActionBar”;let aC=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{threadCount:s,annotationCount:l}=e;a[0]!==l||a[1]!==s?(t=aj(s,l),a[0]=l,a[1]=s,a[2]=t):t=a[2];let o=t;return o?(a[3]!==o?(n=(0,i.jsx)(“span”,{className:”sr-only user-select-none”,children:o}),a[3]=o,a[4]=n):n=a[4],n):null}:function({threadCount:e,annotationCount:t}){let n=aj(e,t);return n?(0,i.jsx)(“span”,{className:”sr-only user-select-none”,children:n}):null};try{aC.displayName||(aC.displayName=”DiffLineScreenReaderSummary”)}catch{}let aw=”ContentCell-module__comment-indicator–Avv5C”,aN=”ContentCell-module__in-progress-comment-indicator–Onob7″,aS=(0,l.forwardRef)((0,a.GV)()?function(e,t){let n,a,s,o,d,c,u,m,f,h,p,g,x,b,v,y,j,C,w,N,S,L,D,I,_,R,A,k,T=(0,r.c)(63);if(T[0]!==e){let{cellId:t,children:i,className:r,columnIndex:l,diffLine:N,diffAnchor:S,handleDiffCellMouseDown:L,handleExitDialogMode:D,handleHideMarkersFromFocus:I,handleDiffSideCellSelectionBlocking:_,handleStartConversation:R,handleUserClosedMarkersDialog:A,isLeftSide:k,isRowSelected:E,isSplit:O,lineAnchor:P,commentDialogOpen:F,enterDialogMode:$,hasThreads:M,role:B,…V}=e;n=t,a=i,s=r,o=l,c=N,d=S,m=L,h=D,f=_,p=R,g=A,b=k,w=E,v=O,y=P,u=$,x=M,C=B,j=V,T[0]=e,T[1]=n,T[2]=a,T[3]=s,T[4]=o,T[5]=d,T[6]=c,T[7]=u,T[8]=m,T[9]=f,T[10]=h,T[11]=p,T[12]=g,T[13]=x,T[14]=b,T[15]=v,T[16]=y,T[17]=j,T[18]=C,T[19]=w}else n=T[1],a=T[2],s=T[3],o=T[4],d=T[5],c=T[6],u=T[7],m=T[8],f=T[9],h=T[10],p=T[11],g=T[12],x=T[13],b=T[14],v=T[15],y=T[16],j=T[17],C=T[18],w=T[19];let O=void 0!==w&&w,P=c,F=(0,l.useRef)(null),$=H(),{sendAnalyticsEvent:M}=(0,tz.s)();T[20]===Symbol.for(“react.memo_cache_sentinel”)?(N=()=>F.current,S=[],T[20]=N,T[21]=S):(N=T[20],S=T[21]),(0,l.useImperativeHandle)(t,N,S);let{disableDialogMode:B}=W();T[22]!==d||T[23]!==$||T[24]!==P?(L=()=>{let e=$(),t=(0,E.j2)({line:P,range:e,fileAnchor:d});t&&(0,ig.D)(t)},T[22]=d,T[23]=$,T[24]=P,T[25]=L):L=T[25];let q=L,z=G(),{clearFirstLineSelectionOnDrag:K}=Y();T[26]!==K||T[27]!==z||T[28]!==p||T[29]!==M?(D=e=>{(0,ab.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{M(“diff-lines.inp_interaction”,”CELL_MULTI_SELECT”,{latency:e.latency})}});let t=z();t?.shouldStartConversation&&p?.(),K()},T[26]=K,T[27]=z,T[28]=p,T[29]=M,T[30]=D):D=T[30];let Z=D;T[31]!==m||T[32]!==f?(I=e=>{e.shiftKey&&e.preventDefault(),m?.(e),f?.(e)},T[31]=m,T[32]=f,T[33]=I):I=T[33];let Q=I;T[34]!==B||T[35]!==h||T[36]!==g?(_=()=>{F.current?.focus(),B(),h?.(),g?.()},T[34]=B,T[35]=h,T[36]=g,T[37]=_):_=T[37];let X=_,J=V(),ee=U();T[38]!==q||T[39]!==c||T[40]!==u||T[41]!==X||T[42]!==ee||T[43]!==J||T[44]!==$||T[45]!==p||T[46]!==x||T[47]!==b||T[48]!==v?(R=async e=>{if(e.target===F.current&&(e?.metaKey||e?.ctrlKey)&&”c”===e.key){e.preventDefault();let t=ee();await ix({diffLine:c,diffLines:t,getSelectedDiffLines:J,getSelectedLineRange:$,isSplit:v,isLeftSide:b});return}if(e.target===F.current&&(e?.metaKey||e?.ctrlKey)&&e.altKey&&”y”===e.key)return void q();if(F.current?.contains(e.target)&&e?.key===”Escape”)return void X();if(F.current?.contains(e.target)&&”true”===e.target.getAttribute(“data-exit-dialog-mode-button”)&&!e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),F.current?.querySelector(‘[data-is-first-collapse-button=”true”]’)?.focus();return}if(F.current?.contains(e.target)&&”true”===e.target.getAttribute(“data-is-first-collapse-button”)&&e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),F.current?.querySelector(‘[data-exit-dialog-mode-button=”true”]’)?.focus();return}e.target===F.current&&”Enter”===e.key&&(u?.(),!1===x&&p?.(),e.preventDefault())},T[38]=q,T[39]=c,T[40]=u,T[41]=X,T[42]=ee,T[43]=J,T[44]=$,T[45]=p,T[46]=x,T[47]=b,T[48]=v,T[49]=R):R=T[49];let et=R,en=`Cell-left:${P.left}-right:${P.right}-leftSide:${b}`,ei=!!O,ea=C??”gridcell”;T[50]===Symbol.for(“react.memo_cache_sentinel”)?(A={userSelect:”none”,position:”relative”},T[50]=A):A=T[50];let er=s?`focusable-grid-cell ${s} ${o<3?"left-side":""}`:"focusable-grid-cell";return T[51]!==n||T[52]!==a||T[53]!==Q||T[54]!==Z||T[55]!==et||T[56]!==en||T[57]!==y||T[58]!==j||T[59]!==ea||T[60]!==er||T[61]!==ei?(k=(0,i.jsx)("td",{ref:F,"data-grid-cell-id":n,"data-line-anchor":y,"data-selected":ei,role:ea,style:A,tabIndex:-1,valign:"top",className:er,onKeyDown:et,onMouseDown:Q,onMouseUp:Z,...j,children:a},en),T[51]=n,T[52]=a,T[53]=Q,T[54]=Z,T[55]=et,T[56]=en,T[57]=y,T[58]=j,T[59]=ea,T[60]=er,T[61]=ei,T[62]=k):k=T[62],k}:function({cellId:e,children:t,className:n,columnIndex:a,diffLine:r,diffAnchor:s,handleDiffCellMouseDown:o,handleExitDialogMode:d,handleHideMarkersFromFocus:c,handleDiffSideCellSelectionBlocking:u,handleStartConversation:m,handleUserClosedMarkersDialog:f,isLeftSide:h,isRowSelected:p=!1,isSplit:g,lineAnchor:x,commentDialogOpen:b,enterDialogMode:v,hasThreads:y,role:j,...C},w){let N=(0,l.useRef)(null),S=H(),{sendAnalyticsEvent:L}=(0,tz.s)();(0,l.useImperativeHandle)(w,()=>N.current,[]);let{disableDialogMode:D}=W(),I=(0,l.useCallback)(()=>{let e=S(),t=(0,E.j2)({line:r,range:e,fileAnchor:s});t&&(0,ig.D)(t)},[s,S,r]),_=G(),{clearFirstLineSelectionOnDrag:R}=Y(),A=(0,l.useCallback)(e=>{(0,ab.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{L(“diff-lines.inp_interaction”,”CELL_MULTI_SELECT”,{latency:e.latency})}});let t=_();t?.shouldStartConversation&&m?.(),R()},[R,_,m,L]),k=(0,l.useCallback)(e=>{e.shiftKey&&e.preventDefault(),o?.(e),u?.(e)},[o,u]),T=(0,l.useCallback)(()=>{N.current?.focus(),D(),d?.(),f?.()},[D,d,f]),O=V(),P=U(),F=(0,l.useCallback)(async e=>{if(e.target===N.current&&(e?.metaKey||e?.ctrlKey)&&”c”===e.key){e.preventDefault();let t=P();await ix({diffLine:r,diffLines:t,getSelectedDiffLines:O,getSelectedLineRange:S,isSplit:g,isLeftSide:h});return}if(e.target===N.current&&(e?.metaKey||e?.ctrlKey)&&e.altKey&&”y”===e.key)return void I();if(N.current?.contains(e.target)&&e?.key===”Escape”)return void T();if(N.current?.contains(e.target)&&”true”===e.target.getAttribute(“data-exit-dialog-mode-button”)&&!e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),N.current?.querySelector(‘[data-is-first-collapse-button=”true”]’)?.focus();return}if(N.current?.contains(e.target)&&”true”===e.target.getAttribute(“data-is-first-collapse-button”)&&e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),N.current?.querySelector(‘[data-exit-dialog-mode-button=”true”]’)?.focus();return}e.target===N.current&&”Enter”===e.key&&(v?.(),!1===y&&m?.(),e.preventDefault())},[P,r,O,S,g,h,I,T,v,y,m]),$=`Cell-left:${r.left}-right:${r.right}-leftSide:${h}`;return(0,i.jsx)(“td”,{ref:N,”data-grid-cell-id”:e,”data-line-anchor”:x,”data-selected”:!!p,role:j??”gridcell”,style:{userSelect:”none”,position:”relative”},tabIndex:-1,valign:”top”,className:n?`focusable-grid-cell ${n} ${a<3?"left-side":""}`:"focusable-grid-cell",onKeyDown:F,onMouseDown:k,onMouseUp:A,...C,children:t},$)});try{aS.displayName||(aS.displayName="Cell")}catch{}let aL=new Set,aD=!1,aI=e=>{let t=e.target instanceof Node?e.target:null;for(let e of aL){let{element:n,shouldIgnore:i,onPointerExit:a}=e;if(!n.isConnected){aL.delete(e);continue}if(t&&n.contains(t)){e.pendingExit=!1;continue}e.pendingExit=!0,i?.()||(e.pendingExit=!1,a())}0===aL.size&&a_()},a_=()=>{aD&&g.XC&&!(aL.size>0)&&(g.XC.removeEventListener(“pointermove”,aI),aD=!1)};function aR(e){let{element:t}=e;if(!t)return()=>{};let n={…e,pendingExit:!1};return aL.add(n),!aD&&g.XC&&(g.XC.addEventListener(“pointermove”,aI),aD=!0),()=>{aL.delete(n),a_()}}let aA=”diff-“;function ak(e){return”string”==typeof e&&e.startsWith(aA)?e.slice(aA.length):””}let aE=(0,l.forwardRef)((0,a.GV)()?function(e,t){let n,a,s,o,d,u,m,f,h,p,x,y,j,C,w,N,S,L,D,_,R,A,k,P,F,$,M,B,q,z,Z,Q,X,J,ee,en,ea,er,es,el,eo,ed,ec,eu,em,ef,eh,ep,eg,ex,eb,ev,ey,ej=(0,r.c)(276),{annotationsAtPosition:ew,columnIndex:eN,commentsPreference:eS,copilotChatReference:eL,currentHunk:eD,diffAnchor:eI,diffLine:e_,dispatchMarkersStatus:eR,filePath:eA,handleDiffSideCellSelectionBlocking:ek,isLeftSide:eE,isRowSelected:eT,isSplit:eO,lineAnchor:eP,markersStatus:eF,nextHunk:e$,previousHunk:eM,rowId:eB,subjectId:eV,threadsAtPosition:eU,viewerData:eH}=e;ej[0]!==e_.html||ej[1]!==e_.type?(n=(0,E.x_)(e_.html,e_.type),ej[0]=e_.html,ej[1]=e_.type,ej[2]=n):n=ej[2];let[eq,ez]=n;ej[3]!==ez?(a=ez&&[“+”,”-“].includes(ez),ej[3]=ez,ej[4]=a):a=ej[4];let eK=a,{isActionBarVisible:eW,hideActionBar:eQ,anyMenuOpen:eX}=iw(),eJ=(0,eG.u)(“move_new_comments_ui”),eY=eE?”LEFT”:”RIGHT”;ej[5]!==eA||ej[6]!==e_.blobLineNumber||ej[7]!==eV||ej[8]!==eY?(s={diffSide:eY,filePath:eA,line:e_.blobLineNumber,subjectId:eV,fileLevelComment:!1},ej[5]=eA,ej[6]=e_.blobLineNumber,ej[7]=eV,ej[8]=eY,ej[9]=s):s=ej[9];let{hasPersistedComment:e0}=(0,v.L)(s);ej[10]!==eS||ej[11]!==eH?(o={…eH,commentsPreference:eS},ej[10]=eS,ej[11]=eH,ej[12]=o):o=ej[12];let e1=o;ej[13]!==eN||ej[14]!==eB?(d=(0,E.u6)(eB,eN),ej[13]=eN,ej[14]=eB,ej[15]=d):d=ej[15];let e2=d,e3=K(e2),{disableDialogMode:e4}=W(),e5=eE?”LEFT”:”RIGHT”,e6=”RIGHT”===e5?e_.right:e_.left;ej[16]!==e6||ej[17]!==e5?(u=(0,E.oH)(e6,e5),ej[16]=e6,ej[17]=e5,ej[18]=u):u=ej[18];let e7=u,e8=eU.length,e9=ew.length,te=(0,l.useRef)(null),tt=(0,l.useRef)(null);(ej[19]===Symbol.for(“react.memo_cache_sentinel”)?(m=()=>tt.current,f=[],ej[19]=m,ej[20]=f):(m=ej[19],f=ej[20]),(0,l.useImperativeHandle)(t,m,f),ej[21]!==e9||ej[22]!==eS||ej[23]!==e8)?(h=0!==e8+e9,p=(0,E.S4)({hasThreads:h&&eS===ip.sI.Collapsed}),ej[21]=e9,ej[22]=eS,ej[23]=e8,ej[24]=h,ej[25]=p):(h=ej[24],p=ej[25]);let tn=p;ej[26]===Symbol.for(“react.memo_cache_sentinel”)?(x={cellRef:tt},ej[26]=x):x=ej[26];let{handleCellBlur:ti,handleCellFocus:ta,handleCellMouseEnter:tr,handleCellMouseLeave:ts}=iL(x);ej[27]!==eX||ej[28]!==eQ||ej[29]!==eW?(y=()=>{if(eW&&tt.current)return aR({element:tt.current,shouldIgnore:()=>{let e,t;return eX||(e=g.XC?.activeElement,!!(t=tt.current)&&!!e&&(t===e||t.contains(e)))},onPointerExit:eQ})},j=[eX,eQ,eW],ej[27]=eX,ej[28]=eQ,ej[29]=eW,ej[30]=y,ej[31]=j):(y=ej[30],j=ej[31]),(0,l.useEffect)(y,j);let tl=(0,l.useRef)(null),to=is(e2,tt,eR),td=U(),tc=V(),tu=ei(),tm=H(),tf=(0,eG.u)(“cotd_ui”);ej[32]!==e4||ej[33]!==eR?(C=e=>{(void 0===e||e)&&requestAnimationFrame(()=>tt.current?.focus()),e4(),eR(“USER_MINIMIZED_MARKERS”)},ej[32]=e4,ej[33]=eR,ej[34]=C):C=ej[34];let th=C;ej[35]!==th||ej[36]!==eS||ej[37]!==to||ej[38]!==eF.showMarkers?(w=()=>{eS===ip.sI.Collapsed&&eF.showMarkers?th():to()},ej[35]=th,ej[36]=eS,ej[37]=to,ej[38]=eF.showMarkers,ej[39]=w):w=ej[39];let tp=w;ej[40]!==e2?(N={cellId:e2,actionBarRef:te},ej[40]=e2,ej[41]=N):N=ej[41];let{closeMarkerListDialog:tg,isContextMenuOpen:tx}=iN(N);ej[42]!==eI||ej[43]!==to||ej[44]!==eA||ej[45]!==tm||ej[46]!==eQ||ej[47]!==eE||ej[48]!==e_.blobLineNumber||ej[49]!==eH.shouldDisplayComments?(S=()=>{to(),eH.shouldDisplayComments||eQ();let e=tm();e||(e={startLineNumber:e_.blobLineNumber,endLineNumber:e_.blobLineNumber,startOrientation:eE?”left”:”right”,endOrientation:eE?”left”:”right”,diffAnchor:eI});let t=new O.L(e,eA);g.cg?.dispatchEvent(t)},ej[42]=eI,ej[43]=to,ej[44]=eA,ej[45]=tm,ej[46]=eQ,ej[47]=eE,ej[48]=e_.blobLineNumber,ej[49]=eH.shouldDisplayComments,ej[50]=S):S=ej[50];let tb=S;ej[51]!==e2||ej[52]!==tb?(L={cellId:e2,onOpenDialog:tb},ej[51]=e2,ej[52]=tb,ej[53]=L):L=ej[53];let{isNewConversationDialogOpen:tv,shouldStartNewConversationWithSuggestedChange:ty,startNewConversation:tj,closeNewConversation:tC}=iS(L);e:{if(!eW){D=!1;break e}if(!eH.shouldDisplayComments)if(tf){let e;ej[54]!==e_?(e=(0,E.Po)(e_),ej[54]=e_,ej[55]=e):e=ej[55],D=!e;break e}else{let e;ej[56]!==tc||ej[57]!==e_?(e=(0,E.a1)(e_,(0,E.Mk)(tc())),ej[56]=tc,ej[57]=e_,ej[58]=e):e=ej[58],D=e;break e}if(tv||!eH.viewerCanComment){D=!1;break e}if(tf){let e;ej[59]!==e_?(e=(0,E.Po)(e_),ej[59]=e_,ej[60]=e):e=ej[60],D=!e}else{let e;ej[61]!==tc||ej[62]!==e_?(e=(0,E.a1)(e_,(0,E.Mk)(tc())),ej[61]=tc,ej[62]=e_,ej[63]=e):e=ej[63],D=e}}let tw=D,{baseOid:tN,headOid:tS}=(0,I.E4)(),{mutate:tL}=t5(),{effectiveRange:tD}=(0,I.L3)(),{newTreeEntry:tI,oldTreeEntry:t_}=et();ej[64]!==tf||ej[65]!==tL||ej[66]!==tD||ej[67]!==tS||ej[68]!==to||ej[69]!==eA||ej[70]!==tm||ej[71]!==eE||ej[72]!==eT||ej[73]!==e_||ej[74]!==tI||ej[75]!==t_||ej[76]!==tN?(_=e=>{let{onCompleted:t,onError:n,submitBatch:i,text:a}=e;if(!e_)return;let r=tm();if(tf){let e=new ReviewCommentFactory({filePath:eA,newTreeEntry:tI,oldTreeEntry:t_,effectiveDiffRange:tD,submitBatch:i,text:a});tL(r&&nd(eT,r)?e.multilineRequestData(r):e.lineRequestData(e_,eE),{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment?.databaseId),to()}})}else{let e,s,l=!!r&&r.startLineNumber!==r.endLineNumber,o=e_.blobLineNumber,d=eE&&!(0,E.Ji)(e_)?”left”:”right”;r&&l&&eT&&(d=”left”===r.endOrientation?”left”:”right”,s=”left”===r.startOrientation?”left”:”right”,o=r.endLineNumber,e=r.startLineNumber),tL({text:a,line:o,path:eA,side:d,startSide:s,submitBatch:i,startLine:e,comparisonEndOid:tS,comparisonStartOid:tN},{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment?.databaseId),to()}})}},ej[64]=tf,ej[65]=tL,ej[66]=tD,ej[67]=tS,ej[68]=to,ej[69]=eA,ej[70]=tm,ej[71]=eE,ej[72]=eT,ej[73]=e_,ej[74]=tI,ej[75]=t_,ej[76]=tN,ej[77]=_):_=ej[77];let tR=_;ej[78]!==eU.length?(R=()=>{eU.length<=1&&setTimeout(()=>tt.current?.focus())},ej[78]=eU.length,ej[79]=R):R=ej[79];let tA=R;ej[80]!==to||ej[81]!==tj?(A=()=>{to?.(),tj?.()},ej[80]=to,ej[81]=tj,ej[82]=A):A=ej[82];let tk=A;ej[83]!==tu||ej[84]!==tk||ej[85]!==e_||ej[86]!==e7||ej[87]!==eJ?(k=()=>{eJ&&tu(e7,tk,(0,T.bo)(e_))},P=[tu,tk,e_,e7,eJ],ej[83]=tu,ej[84]=tk,ej[85]=e_,ej[86]=e7,ej[87]=eJ,ej[88]=k,ej[89]=P):(k=ej[88],P=ej[89]),(0,l.useEffect)(k,P);let tE=(0,l.useRef)(!0);t:{if(!eH.shouldDisplayComments||!eS){F=!1;break t}if(h&&eS===ip.sI.Collapsed){F=!eF.userMinimized;break t}if(!tv&&!h){F=!1;break t}if(eS===ip.sI.Collapsed&&(tv||e3)||eS===ip.sI.Visible&&(h||tv||eF.showMarkers)){F=!0;break t}F=!1}let tT=F,tO=(0,E.dT)(e_),{addLineToSelection:tP,clearSelectedLines:tF,selectLine:t$}=Y(),tM=G();ej[90]!==eS||ej[91]!==tk||ej[92]!==e0?($=()=>{e0&&eS===ip.sI.Visible&&tk()},M=[e0,tk,eS],ej[90]=eS,ej[91]=tk,ej[92]=e0,ej[93]=$,ej[94]=M):($=ej[93],M=ej[94]),(0,l.useEffect)($,M),ej[95]!==tm||ej[96]!==eE||ej[97]!==e_.left||ej[98]!==e_.right?(B=()=>{let e=tm();return!!e&&(“right”===e.endOrientation&&!eE&&e.endLineNumber===e_.right||!!e&&”left”===e.endOrientation&&!!eE&&e.endLineNumber===e_.left)},ej[95]=tm,ej[96]=eE,ej[97]=e_.left,ej[98]=e_.right,ej[99]=B):B=ej[99];let tV=B;ej[100]!==tF||ej[101]!==tV?(q=()=>{tV()||tF()},ej[100]=tF,ej[101]=tV,ej[102]=q):q=ej[102];let tU=q,tG=(0,I.gW)();ej[103]!==tP||ej[104]!==eI||ej[105]!==ts||ej[106]!==tV||ej[107]!==eE||ej[108]!==eT||ej[109]!==e_||ej[110]!==t$||ej[111]!==tG?(z=e=>{if(1!==e.buttons)return;ts();let t=eE?e_.left:e_.right,n=(0,T.bo)(e_);eT||!t||tV()?tP({lineKey:(0,T.bo)(e_),orientation:eE?”left”:”right”},eC):(t$({lineKey:n,firstLineSelectionOnDrag:{lineNumber:t,orientation:eE?”left”:”right”,lineKey:n,shouldStartConversation:!0}},eC),tG(ak(eI)))},ej[103]=tP,ej[104]=eI,ej[105]=ts,ej[106]=tV,ej[107]=eE,ej[108]=eT,ej[109]=e_,ej[110]=t$,ej[111]=tG,ej[112]=z):z=ej[112];let tH=z;ej[113]!==tP||ej[114]!==tM||ej[115]!==tr||ej[116]!==eE||ej[117]!==e_?(Z=e=>{let t=tM();1===e.buttons&&t&&tP({lineKey:(0,T.bo)(e_),orientation:eE?”left”:”right”},eC),tr()},ej[113]=tP,ej[114]=tM,ej[115]=tr,ej[116]=eE,ej[117]=e_,ej[118]=Z):Z=ej[118];let tq=Z;ej[119]!==tm||ej[120]!==tM||ej[121]!==ts||ej[122]!==eQ||ej[123]!==tx||ej[124]!==eE||ej[125]!==e_.left||ej[126]!==e_.right||ej[127]!==eH.shouldDisplayComments?(Q=()=>{let e=tM();if(!e){eH.shouldDisplayComments||tx||eQ(),ts();return}let t=tm(),n=t?.startOrientation===”right”&&”right”===e.orientation&&!eE&&e_.right===e.lineNumber,i=t?.startOrientation===”left”&&”left”===e.orientation&&eE&&e_.left===e.lineNumber;n||i||ts()},ej[119]=tm,ej[120]=tM,ej[121]=ts,ej[122]=eQ,ej[123]=tx,ej[124]=eE,ej[125]=e_.left,ej[126]=e_.right,ej[127]=eH.shouldDisplayComments,ej[128]=Q):Q=ej[128];let tz=Q;ej[129]!==eR?(X=()=>{eR(“USER_EXITED_MARKERS_DIALOG”)},ej[129]=eR,ej[130]=X):X=ej[130];let tK=X;ej[131]!==eR?(J=()=>{eR(“USER_MINIMIZED_MARKERS”)},ej[131]=eR,ej[132]=J):J=ej[132];let tW=J;ej[133]!==th||ej[134]!==tC?(ee=e=>{th(void 0===e||e),tC()},ej[133]=th,ej[134]=tC,ej[135]=ee):ee=ej[135];let tZ=ee;ej[136]!==e_||ej[137]!==td||ej[138]!==tc||ej[139]!==tm||ej[140]!==eE||ej[141]!==eO?(en=async()=>{let e=td();await ix({diffLine:e_,diffLines:e,getSelectedDiffLines:tc,getSelectedLineRange:tm,isSplit:eO,isLeftSide:eE})},ej[136]=e_,ej[137]=td,ej[138]=tc,ej[139]=tm,ej[140]=eE,ej[141]=eO,ej[142]=en):en=ej[142];let tQ=en,tX=`ContentCell-left:${e_.left}-right:${e_.right}-leftSide:${eE}`,tJ=`inline-dialog-heading-${(0,l.useId)()}`;n:{let e;if(!eT){ea=e_.blobLineNumber;break n}ej[143]!==tm?(e=tm(),ej[143]=tm,ej[144]=e):e=ej[144];let t=e;ea=t?.endLineNumber??e_.blobLineNumber}let tY=ea;i:{let e;if(!eT){er=void 0;break i}ej[145]!==tm?(e=tm(),ej[145]=tm,ej[146]=e):e=ej[146];let t=e;er=t?.startLineNumber}let t0=er,t1=`diff-text-cell ${eE?”left-side-diff-cell”:”right-side-diff-cell”} ${tO?”pt-4″:””}`,t2=eE&&”HUNK”!==e_.type;ej[147]!==t1||ej[148]!==t2?(es=(0,b.$)(t1,{“border-right”:t2}),ej[147]=t1,ej[148]=t2,ej[149]=es):es=ej[149],ej[150]!==eT||ej[151]!==e_.type?(el=(0,E.Yf)(e_.type,!1,eT),ej[150]=eT,ej[151]=e_.type,ej[152]=el):el=ej[152],ej[153]!==tn||ej[154]!==el?(eo={backgroundColor:el,paddingRight:tn},ej[153]=tn,ej[154]=el,ej[155]=eo):eo=ej[155];let t3=e3?tJ:void 0,t4=e3?”dialog”:”gridcell”;ej[156]!==tJ||ej[157]!==e3?(ed=e3&&(0,i.jsx)(“h1″,{id:tJ,className:”sr-only”,children:”Comment view”}),ej[156]=tJ,ej[157]=e3,ej[158]=ed):ed=ej[158];let t6=”ADDITION”===e_.type,t7=”DELETION”===e_.type;ej[159]!==t6||ej[160]!==t7?(ec=(0,b.$)(“diff-text syntax-highlighted-line”,{addition:t6,deletion:t7}),ej[159]=t6,ej[160]=t7,ej[161]=ec):ec=ej[161],ej[162]!==ez||ej[163]!==eK?(eu=eK&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:ez}),ej[162]=ez,ej[163]=eK,ej[164]=eu):eu=ej[164];let t8=”HUNK”===e_.type;return ej[165]!==t8?(em=(0,b.$)(“diff-text-inner”,{“color-fg-muted”:t8}),ej[165]=t8,ej[166]=em):em=ej[166],ej[167]!==eq||ej[168]!==em?(ef=(0,i.jsx)(eZ.$6,{html:eq,className:em}),ej[167]=eq,ej[168]=em,ej[169]=ef):ef=ej[169],ej[170]!==ec||ej[171]!==eu||ej[172]!==ef?(eh=(0,i.jsxs)(“code”,{className:ec,children:[eu,ef]}),ej[170]=ec,ej[171]=eu,ej[172]=ef,ej[173]=eh):eh=ej[173],ej[174]!==e_.displayNoNewLineWarning?(ep=e_.displayNoNewLineWarning&&(0,i.jsx)(c.NoEntryIcon,{size:16,className:”fgColor-danger”}),ej[174]=e_.displayNoNewLineWarning,ej[175]=ep):ep=ej[175],ej[176]!==ew||ej[177]!==e2||ej[178]!==eL||ej[179]!==eD||ej[180]!==eI||ej[181]!==e_||ej[182]!==tm||ej[183]!==tQ||ej[184]!==tU||ej[185]!==tH||ej[186]!==e0||ej[187]!==eW||ej[188]!==eE||ej[189]!==eO||ej[190]!==e_.isLastSelected||ej[191]!==e_.left||ej[192]!==e_.right||ej[193]!==eF.showMarkers||ej[194]!==e$||ej[195]!==tb||ej[196]!==eM||ej[197]!==tw||ej[198]!==eU||ej[199]!==tp||ej[200]!==eH.avatarUrl||ej[201]!==eH.login||ej[202]!==eH.shouldDisplayComments||ej[203]!==e1?(eg=(eW||e_.isLastSelected&&eE&&tm()?.endOrientation===”left”&&e_.left===tm()?.endLineNumber||!eE&&tm()?.endOrientation===”right”&&e_.right===tm()?.endLineNumber)&&(0,i.jsx)(ay,{authorAvatarUrl:eH.avatarUrl,authorLogin:eH.login,ref:te,cellId:e2,cellRef:tt,copilotChatReference:eL,currentHunk:eD,diffAnchor:eI,diffLine:e_,threads:eU,annotations:ew,enterDialogMode:tb,handleCopyCode:tQ,hasDraftComment:e0,isLeftSide:eE,isSplit:eO,nextHunk:e$,onMouseDownAddCommentButton:tU,onMouseLeaveAddCommentButton:tH,previousHunk:eM,showStartConversation:tw,shouldDisplayMinimizedComments:eH.shouldDisplayComments,shouldDisplayCollapseComments:eF.showMarkers,toggleViewingMarkers:tp,viewerData:e1}),ej[176]=ew,ej[177]=e2,ej[178]=eL,ej[179]=eD,ej[180]=eI,ej[181]=e_,ej[182]=tm,ej[183]=tQ,ej[184]=tU,ej[185]=tH,ej[186]=e0,ej[187]=eW,ej[188]=eE,ej[189]=eO,ej[190]=e_.isLastSelected,ej[191]=e_.left,ej[192]=e_.right,ej[193]=eF.showMarkers,ej[194]=e$,ej[195]=tb,ej[196]=eM,ej[197]=tw,ej[198]=eU,ej[199]=tp,ej[200]=eH.avatarUrl,ej[201]=eH.login,ej[202]=eH.shouldDisplayComments,ej[203]=e1,ej[204]=eg):eg=ej[204],ej[205]!==ew||ej[206]!==e2||ej[207]!==th||ej[208]!==tg||ej[209]!==tn||ej[210]!==eS||ej[211]!==eI||ej[212]!==eR||ej[213]!==eA||ej[214]!==tR||ej[215]!==tA||ej[216]!==e0||ej[217]!==e3||ej[218]!==eE||ej[219]!==tv||ej[220]!==eT||ej[221]!==e_||ej[222]!==e7||ej[223]!==tZ||ej[224]!==ty||ej[225]!==tT||ej[226]!==tY||ej[227]!==t0||ej[228]!==eU||ej[229]!==e1?(ex=tT?(0,i.jsx)(io,{gridCellId:e2,gutterSizeOffset:tn,inlineMarkersRef:tl,cellRef:tt,dispatchMarkersStatus:eR,lineMarkersKey:e7,annotations:ew,batchingEnabled:!0,conversationListThreads:eU,fileAnchor:eI,filePath:eA,onCloseFocusMode:th,isRowSelected:eT,lineType:e_.type,diffLine:e_,shouldStartNewConversationWithSuggestedChange:ty,onCloseConversationList:tg,onDeleteLineComment:tA,viewerData:e1,ghostUser:tB,children:tv&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(eU.length,”mt-2 mb-1″)),children:(0,i.jsx)(nu,{diffLine:e_,diffAnchor:eI,batchingEnabled:!0,filePath:eA,focusOnMount:!(e0&&eS===ip.sI.Visible),isLeftSide:!!eE,isInDialogMode:e3,isOpen:tv,lineNumber:tY,startLineNumber:t0,shouldStartNewConversationWithSuggestedChange:ty,viewerData:e1,onAddComment:tR,onCloseCommentDialog:tZ})})}):null,ej[205]=ew,ej[206]=e2,ej[207]=th,ej[208]=tg,ej[209]=tn,ej[210]=eS,ej[211]=eI,ej[212]=eR,ej[213]=eA,ej[214]=tR,ej[215]=tA,ej[216]=e0,ej[217]=e3,ej[218]=eE,ej[219]=tv,ej[220]=eT,ej[221]=e_,ej[222]=e7,ej[223]=tZ,ej[224]=ty,ej[225]=tT,ej[226]=tY,ej[227]=t0,ej[228]=eU,ej[229]=e1,ej[230]=ex):ex=ej[230],ej[231]!==ew||ej[232]!==eS||ej[233]!==e0||ej[234]!==eW||ej[235]!==eU||ej[236]!==eH.avatarUrl||ej[237]!==eH.lineSpacingPreference||ej[238]!==eH.login||ej[239]!==eH.shouldDisplayComments?(eb=!eW&&eS===ip.sI.Collapsed&&eH.shouldDisplayComments&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“div”,{“aria-hidden”:”true”,style:{left:”compact”===eH.lineSpacingPreference?”-8px”:”-9px”},className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,aN),children:e0&&(0,i.jsx)(ao,{lineSpacingPreference:eH.lineSpacingPreference,authorAvatarUrl:eH.avatarUrl,authorLogin:eH.login})}),(0,i.jsx)(“div”,{“aria-hidden”:”true”,className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,aw),children:(0,i.jsx)(ik,{threads:eU,annotations:ew,shouldAnimateRef:tE,lineSpacingPreference:eH.lineSpacingPreference})})]}),ej[231]=ew,ej[232]=eS,ej[233]=e0,ej[234]=eW,ej[235]=eU,ej[236]=eH.avatarUrl,ej[237]=eH.lineSpacingPreference,ej[238]=eH.login,ej[239]=eH.shouldDisplayComments,ej[240]=eb):eb=ej[240],ej[241]!==e9||ej[242]!==e8?(ev=(0,i.jsx)(aC,{annotationCount:e9,threadCount:e8}),ej[241]=e9,ej[242]=e8,ej[243]=ev):ev=ej[243],ej[244]!==e2||ej[245]!==eN||ej[246]!==eI||ej[247]!==e_||ej[248]!==to||ej[249]!==ti||ej[250]!==ta||ej[251]!==ek||ej[252]!==tK||ej[253]!==tq||ej[254]!==tz||ej[255]!==tk||ej[256]!==tW||ej[257]!==h||ej[258]!==eE||ej[259]!==tv||ej[260]!==eT||ej[261]!==eO||ej[262]!==tX||ej[263]!==eP||ej[264]!==es||ej[265]!==eo||ej[266]!==t3||ej[267]!==t4||ej[268]!==ed||ej[269]!==eh||ej[270]!==ep||ej[271]!==eg||ej[272]!==ex||ej[273]!==eb||ej[274]!==ev?(ey=(0,i.jsxs)(aS,{ref:tt,cellId:e2,columnIndex:eN,commentDialogOpen:tv,diffAnchor:eI,diffLine:e_,enterDialogMode:to,handleDiffSideCellSelectionBlocking:ek,handleExitDialogMode:tK,handleUserClosedMarkersDialog:tW,lineAnchor:eP,handleStartConversation:tk,hasThreads:h,isLeftSide:eE,isRowSelected:eT,isSplit:eO,className:es,style:eo,onBlur:ti,onFocus:ta,onMouseEnter:tq,onMouseLeave:tz,”aria-labelledby”:t3,role:t4,children:[ed,eh,ep,eg,ex,eb,ev]},tX),ej[244]=e2,ej[245]=eN,ej[246]=eI,ej[247]=e_,ej[248]=to,ej[249]=ti,ej[250]=ta,ej[251]=ek,ej[252]=tK,ej[253]=tq,ej[254]=tz,ej[255]=tk,ej[256]=tW,ej[257]=h,ej[258]=eE,ej[259]=tv,ej[260]=eT,ej[261]=eO,ej[262]=tX,ej[263]=eP,ej[264]=es,ej[265]=eo,ej[266]=t3,ej[267]=t4,ej[268]=ed,ej[269]=eh,ej[270]=ep,ej[271]=eg,ej[272]=ex,ej[273]=eb,ej[274]=ev,ej[275]=ey):ey=ej[275],ey}:function({annotationsAtPosition:e,columnIndex:t,commentsPreference:n,copilotChatReference:a,currentHunk:r,diffAnchor:s,diffLine:o,dispatchMarkersStatus:d,filePath:u,handleDiffSideCellSelectionBlocking:m,isLeftSide:f,isRowSelected:h,isSplit:p,lineAnchor:x,markersStatus:y,nextHunk:j,previousHunk:C,rowId:w,subjectId:N,threadsAtPosition:S,viewerData:L},D){let[_,R]=(0,E.x_)(o.html,o.type),A=R&&[“+”,”-“].includes(R),{isActionBarVisible:k,hideActionBar:P,anyMenuOpen:F}=iw(),$=(0,eG.u)(“move_new_comments_ui”),{hasPersistedComment:M}=(0,v.L)({diffSide:f?”LEFT”:”RIGHT”,filePath:u,line:o.blobLineNumber,subjectId:N,fileLevelComment:!1}),B={…L,commentsPreference:n},q=(0,E.u6)(w,t),z=K(q),{disableDialogMode:Z}=W(),Q=f?”LEFT”:”RIGHT”,X=”RIGHT”===Q?o.right:o.left,J=(0,E.oH)(X,Q),ee=S.length,en=e.length,ea=(0,l.useRef)(null),er=(0,l.useRef)(null);(0,l.useImperativeHandle)(D,()=>er.current,[]);let es=0!==ee+en,el=(0,E.S4)({hasThreads:es&&n===ip.sI.Collapsed}),{handleCellBlur:eo,handleCellFocus:ed,handleCellMouseEnter:ec,handleCellMouseLeave:eu}=iL({cellRef:er});(0,l.useEffect)(()=>{if(k&&er.current)return aR({element:er.current,shouldIgnore:()=>{let e,t;return F||(e=g.XC?.activeElement,!!(t=er.current)&&!!e&&(t===e||t.contains(e)))},onPointerExit:P})},[F,P,k]);let em=(0,l.useRef)(null),ef=is(q,er,d),eh=U(),ep=V(),eg=ei(),ex=H(),eb=(0,eG.u)(“cotd_ui”),ev=(0,l.useCallback)((e=!0)=>{e&&requestAnimationFrame(()=>er.current?.focus()),Z(),d(“USER_MINIMIZED_MARKERS”)},[Z,d]),ey=(0,l.useCallback)(()=>{n===ip.sI.Collapsed&&y.showMarkers?ev():ef()},[ev,ef,y.showMarkers,n]),{closeMarkerListDialog:ej,isContextMenuOpen:ew}=iN({cellId:q,actionBarRef:ea}),eN=(0,l.useCallback)(()=>{ef(),L.shouldDisplayComments||P();let e=ex();e||(e={startLineNumber:o.blobLineNumber,endLineNumber:o.blobLineNumber,startOrientation:f?”left”:”right”,endOrientation:f?”left”:”right”,diffAnchor:s});let t=new O.L(e,u);g.cg?.dispatchEvent(t)},[ef,L.shouldDisplayComments,ex,u,P,o.blobLineNumber,f,s]),{isNewConversationDialogOpen:eS,shouldStartNewConversationWithSuggestedChange:eL,startNewConversation:eD,closeNewConversation:eI}=iS({cellId:q,onOpenDialog:eN}),e_=(0,l.useMemo)(()=>{if(!k)return!1;if(!L.shouldDisplayComments)if(eb)return!(0,E.Po)(o);else return(0,E.a1)(o,(0,E.Mk)(ep()));return!eS&&!!L.viewerCanComment&&(eb?!(0,E.Po)(o):(0,E.a1)(o,(0,E.Mk)(ep())))},[k,eS,L.shouldDisplayComments,L.viewerCanComment,eb,o,ep]),{baseOid:eR,headOid:eA}=(0,I.E4)(),{mutate:ek}=t5(),{effectiveRange:eE}=(0,I.L3)(),{newTreeEntry:eT,oldTreeEntry:eO}=et(),eP=(0,l.useCallback)(()=>{ef?.(),eD?.()},[ef,eD]);(0,l.useEffect)(()=>{$&&eg(J,eP,(0,T.bo)(o))},[eg,eP,o,J,$]);let eF=(0,l.useRef)(!0),e$=(0,l.useMemo)(()=>!!L.shouldDisplayComments&&!!n&&(es&&n===ip.sI.Collapsed?!y.userMinimized:(!!eS||!!es)&&(n===ip.sI.Collapsed&&(!!eS||!!z)||n===ip.sI.Visible&&(!!es||!!eS||!!y.showMarkers)||!1)),[es,z,eS,y.showMarkers,y.userMinimized,n,L.shouldDisplayComments]),eM=(0,l.useMemo)(()=>(0,E.dT)(o),[o]),{addLineToSelection:eB,clearSelectedLines:eV,selectLine:eU}=Y(),eH=G();(0,l.useEffect)(()=>{M&&n===ip.sI.Visible&&eP()},[M,eP,n]);let eq=(0,l.useCallback)(()=>{let e=ex();return!!e&&(“right”===e.endOrientation&&!f&&e.endLineNumber===o.right||!!e&&”left”===e.endOrientation&&!!f&&e.endLineNumber===o.left)},[ex,f,o.left,o.right]),ez=(0,l.useCallback)(()=>{eq()||eV()},[eV,eq]),eK=(0,I.gW)(),eW=(0,l.useCallback)(e=>{if(1!==e.buttons)return;eu();let t=f?o.left:o.right,n=(0,T.bo)(o);h||!t||eq()?eB({lineKey:(0,T.bo)(o),orientation:f?”left”:”right”},eC):(eU({lineKey:n,firstLineSelectionOnDrag:{lineNumber:t,orientation:f?”left”:”right”,lineKey:n,shouldStartConversation:!0}},eC),eK(ak(s)))},[eB,s,eu,eq,f,h,o,eU,eK]),eQ=(0,l.useCallback)(e=>{let t=eH();1===e.buttons&&t&&eB({lineKey:(0,T.bo)(o),orientation:f?”left”:”right”},eC),ec()},[eB,eH,ec,f,o]),eX=(0,l.useCallback)(()=>{let e=eH();if(!e){L.shouldDisplayComments||ew||P(),eu();return}let t=ex(),n=t?.startOrientation===”right”&&”right”===e.orientation&&!f&&o.right===e.lineNumber,i=t?.startOrientation===”left”&&”left”===e.orientation&&f&&o.left===e.lineNumber;n||i||eu()},[eH,ex,f,o.right,o.left,L.shouldDisplayComments,ew,eu,P]),eJ=(0,l.useCallback)(()=>{d(“USER_EXITED_MARKERS_DIALOG”)},[d]),eY=(0,l.useCallback)(()=>{d(“USER_MINIMIZED_MARKERS”)},[d]),e0=(0,l.useCallback)((e=!0)=>{ev(e),eI()},[ev,eI]),e1=async()=>{let e=eh();await ix({diffLine:o,diffLines:e,getSelectedDiffLines:ep,getSelectedLineRange:ex,isSplit:p,isLeftSide:f})},e2=`ContentCell-left:${o.left}-right:${o.right}-leftSide:${f}`,e3=`inline-dialog-heading-${(0,l.useId)()}`,e4=(0,l.useMemo)(()=>{if(!h)return o.blobLineNumber;let e=ex();return e?.endLineNumber??o.blobLineNumber},[ex,h,o.blobLineNumber]),e5=(0,l.useMemo)(()=>{if(!h)return;let e=ex();return e?.startLineNumber},[ex,h]);return(0,i.jsxs)(aS,{ref:er,cellId:q,columnIndex:t,commentDialogOpen:eS,diffAnchor:s,diffLine:o,enterDialogMode:ef,handleDiffSideCellSelectionBlocking:m,handleExitDialogMode:eJ,handleUserClosedMarkersDialog:eY,lineAnchor:x,handleStartConversation:eP,hasThreads:es,isLeftSide:f,isRowSelected:h,isSplit:p,className:(0,b.$)(`diff-text-cell ${f?”left-side-diff-cell”:”right-side-diff-cell”} ${eM?”pt-4″:””}`,{“border-right”:f&&”HUNK”!==o.type}),style:{backgroundColor:(0,E.Yf)(o.type,!1,h),paddingRight:el},onBlur:eo,onFocus:ed,onMouseEnter:eQ,onMouseLeave:eX,”aria-labelledby”:z?e3:void 0,role:z?”dialog”:”gridcell”,children:[z&&(0,i.jsx)(“h1″,{id:e3,className:”sr-only”,children:”Comment view”}),(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===o.type,deletion:”DELETION”===o.type}),children:[A&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:R}),(0,i.jsx)(eZ.$6,{html:_,className:(0,b.$)(“diff-text-inner”,{“color-fg-muted”:”HUNK”===o.type})})]}),o.displayNoNewLineWarning&&(0,i.jsx)(c.NoEntryIcon,{size:16,className:”fgColor-danger”}),(k||o.isLastSelected&&f&&ex()?.endOrientation===”left”&&o.left===ex()?.endLineNumber||!f&&ex()?.endOrientation===”right”&&o.right===ex()?.endLineNumber)&&(0,i.jsx)(ay,{authorAvatarUrl:L.avatarUrl,authorLogin:L.login,ref:ea,cellId:q,cellRef:er,copilotChatReference:a,currentHunk:r,diffAnchor:s,diffLine:o,threads:S,annotations:e,enterDialogMode:eN,handleCopyCode:e1,hasDraftComment:M,isLeftSide:f,isSplit:p,nextHunk:j,onMouseDownAddCommentButton:ez,onMouseLeaveAddCommentButton:eW,previousHunk:C,showStartConversation:e_,shouldDisplayMinimizedComments:L.shouldDisplayComments,shouldDisplayCollapseComments:y.showMarkers,toggleViewingMarkers:ey,viewerData:B}),e$?(0,i.jsx)(io,{gridCellId:q,gutterSizeOffset:el,inlineMarkersRef:em,cellRef:er,dispatchMarkersStatus:d,lineMarkersKey:J,annotations:e,batchingEnabled:!0,conversationListThreads:S,fileAnchor:s,filePath:u,onCloseFocusMode:ev,isRowSelected:h,lineType:o.type,diffLine:o,shouldStartNewConversationWithSuggestedChange:eL,onCloseConversationList:ej,onDeleteLineComment:()=>{S.length<=1&&setTimeout(()=>er.current?.focus())},viewerData:B,ghostUser:tB,children:eS&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(S.length,”mt-2 mb-1″)),children:(0,i.jsx)(nu,{diffLine:o,diffAnchor:s,batchingEnabled:!0,filePath:u,focusOnMount:!(M&&n===ip.sI.Visible),isLeftSide:!!f,isInDialogMode:z,isOpen:eS,lineNumber:e4,startLineNumber:e5,shouldStartNewConversationWithSuggestedChange:eL,viewerData:B,onAddComment:({onCompleted:e,onError:t,submitBatch:n,text:i})=>{if(!o)return;let a=ex();if(eb){let r=new ReviewCommentFactory({filePath:u,newTreeEntry:eT,oldTreeEntry:eO,effectiveDiffRange:eE,submitBatch:n,text:i});ek(a&&nd(h,a)?r.multilineRequestData(a):r.lineRequestData(o,f),{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment?.databaseId),ef()}})}else{let r,s,l=!!a&&a.startLineNumber!==a.endLineNumber,d=o.blobLineNumber,c=f&&!(0,E.Ji)(o)?”left”:”right”;a&&l&&h&&(c=”left”===a.endOrientation?”left”:”right”,s=”left”===a.startOrientation?”left”:”right”,d=a.endLineNumber,r=a.startLineNumber),ek({text:i,line:d,path:u,side:c,startSide:s,submitBatch:n,startLine:r,comparisonEndOid:eA,comparisonStartOid:eR},{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment?.databaseId),ef()}})}},onCloseCommentDialog:e0})})}):null,!k&&n===ip.sI.Collapsed&&L.shouldDisplayComments&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“div”,{“aria-hidden”:”true”,style:{left:”compact”===L.lineSpacingPreference?”-8px”:”-9px”},className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,aN),children:M&&(0,i.jsx)(ao,{lineSpacingPreference:L.lineSpacingPreference,authorAvatarUrl:L.avatarUrl,authorLogin:L.login})}),(0,i.jsx)(“div”,{“aria-hidden”:”true”,className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,aw),children:(0,i.jsx)(ik,{threads:S,annotations:e,shouldAnimateRef:eF,lineSpacingPreference:L.lineSpacingPreference})})]}),(0,i.jsx)(aC,{annotationCount:en,threadCount:ee})]},e2)}),aT=(0,l.memo)(aE);try{aE.displayName||(aE.displayName=”ContentCellUnmemoized”)}catch{}try{aT.displayName||(aT.displayName=”ContentCell”)}catch{}let aO=[“CONTEXT”,”INJECTED_CONTEXT”];function aP(e,t,n,i){return(“CONTEXT”!==e.type||!t||!n)&&i>0}let aF=(0,l.memo)(aM),a$=(0,a.GV)();function aM(e){return a$?function(e){let t,n,a,s,o,d,c,u,m,f,h,p,g,x,v,y,j,C,w,N,S,L,D,_,R,A,k=(0,r.c)(72);if(k[0]!==e){let{children:i,columnIndex:r,diffAnchor:l,diffLine:b,handleDiffSideCellSelectionBlocking:y,isLeftSide:j,isRowSelected:C,isSplit:w,filePath:N,copilotChatReference:S,contentRef:L,contentColumnIndex:D,dispatchMarkersStatus:I,rowId:_,threadsAtPosition:R,annotationsAtPosition:A,…E}=e;n=i,a=r,d=l,c=b,m=y,f=j,h=C,p=w,o=L,s=D,u=I,x=_,v=R,t=A,g=E,k[0]=e,k[1]=t,k[2]=n,k[3]=a,k[4]=s,k[5]=o,k[6]=d,k[7]=c,k[8]=u,k[9]=m,k[10]=f,k[11]=h,k[12]=p,k[13]=g,k[14]=x,k[15]=v}else t=k[1],n=k[2],a=k[3],s=k[4],o=k[5],d=k[6],c=k[7],u=k[8],m=k[9],f=k[10],h=k[11],p=k[12],g=k[13],x=k[14],v=k[15];let O=(0,l.useRef)(null),P=c,F=G(),{addLineToSelection:$}=Y(),M=(0,I.gW)();k[16]!==$||k[17]!==F||k[18]!==f||k[19]!==P?(y=e=>{1!==e.buttons||F()&&$({lineKey:(0,T.bo)(P),orientation:f?”left”:”right”},eC)},k[16]=$,k[17]=F,k[18]=f,k[19]=P,k[20]=y):y=k[20];let B=y,{selectLine:V}=Y(),U=H();k[21]!==$||k[22]!==d||k[23]!==U||k[24]!==f||k[25]!==P||k[26]!==V||k[27]!==M?(j=e=>{if(U()&&e.shiftKey)return void $({lineKey:(0,T.bo)(P),orientation:f?”left”:”right”},eC);let t=f?P.left:P.right;t&&(V({lineKey:(0,T.bo)(P),firstLineSelectionOnDrag:{orientation:f?”left”:”right”,lineNumber:t,shouldStartConversation:!1,lineKey:(0,T.bo)(P)}},eC),M(ak(d)))},k[21]=$,k[22]=d,k[23]=U,k[24]=f,k[25]=P,k[26]=V,k[27]=M,k[28]=j):j=k[28];let q=j,z=`LineNumberCell-left:${P.left}-right:${P.right}-leftSide:${f}`;k[29]!==s||k[30]!==x?(C=(0,E.u6)(x,s),k[29]=s,k[30]=x,k[31]=C):C=k[31];let K=C,W=is(K,o,u);k[32]!==K||k[33]!==W?(w={cellId:K,onOpenDialog:W},k[32]=K,k[33]=W,k[34]=w):w=k[34];let{startNewConversation:Z}=iS(w);k[35]!==a||k[36]!==x?(N=(0,E.u6)(x,a),k[35]=a,k[36]=x,k[37]=N):N=k[37];let Q=N;k[38]!==P.type?(S=(0,b.$)(“diff-line-number position-relative”,aO.includes(P.type)&&”diff-line-number-neutral”),k[38]=P.type,k[39]=S):S=k[39];let X=!p&&0===a,J=v.length+t.length;return k[40]!==f||k[41]!==p||k[42]!==P||k[43]!==J?(L=aP(P,f,p,J),k[40]=f,k[41]=p,k[42]=P,k[43]=J,k[44]=L):L=k[44],k[45]!==h||k[46]!==P.type?(D=(0,E.Yf)(P.type,!0,h),k[45]=h,k[46]=P.type,k[47]=D):D=k[47],k[48]!==D?(_={backgroundColor:D,textAlign:”center”},k[48]=D,k[49]=_):_=k[49],k[50]!==n?(R=(0,i.jsx)(“code”,{children:n}),k[50]=n,k[51]=R):R=k[51],k[52]!==Q||k[53]!==a||k[54]!==d||k[55]!==c||k[56]!==W||k[57]!==m||k[58]!==q||k[59]!==B||k[60]!==f||k[61]!==h||k[62]!==p||k[63]!==z||k[64]!==g||k[65]!==Z||k[66]!==_||k[67]!==R||k[68]!==S||k[69]!==X||k[70]!==L?(A=(0,i.jsx)(aS,{ref:O,cellId:Q,className:S,columnIndex:a,diffAnchor:d,diffLine:c,”data-first-unified-line-number-cell”:X,enterDialogMode:W,handleDiffSideCellSelectionBlocking:m,hasThreads:L,style:_,handleDiffCellMouseDown:q,handleStartConversation:Z,isLeftSide:f,isRowSelected:h,isSplit:p,onMouseEnter:B,…g,children:R},z),k[52]=Q,k[53]=a,k[54]=d,k[55]=c,k[56]=W,k[57]=m,k[58]=q,k[59]=B,k[60]=f,k[61]=h,k[62]=p,k[63]=z,k[64]=g,k[65]=Z,k[66]=_,k[67]=R,k[68]=S,k[69]=X,k[70]=L,k[71]=A):A=k[71],A}(e):function({children:e,columnIndex:t,diffAnchor:n,diffLine:a,handleDiffSideCellSelectionBlocking:r,isLeftSide:s,isRowSelected:o,isSplit:d,filePath:c,copilotChatReference:u,contentRef:m,contentColumnIndex:f,dispatchMarkersStatus:h,rowId:p,threadsAtPosition:g,annotationsAtPosition:x,…v}){let y=(0,l.useRef)(null),j=G(),{addLineToSelection:C}=Y(),w=(0,I.gW)(),N=(0,l.useCallback)(e=>{1!==e.buttons||j()&&C({lineKey:(0,T.bo)(a),orientation:s?”left”:”right”},eC)},[j,C,a,s]),{selectLine:S}=Y(),L=H(),D=`LineNumberCell-left:${a.left}-right:${a.right}-leftSide:${s}`,_=(0,E.u6)(p,f),R=is(_,m,h),{startNewConversation:A}=iS({cellId:_,onOpenDialog:R}),k=(0,E.u6)(p,t);return(0,i.jsx)(aS,{ref:y,cellId:k,className:(0,b.$)(“diff-line-number position-relative”,aO.includes(a.type)&&”diff-line-number-neutral”),columnIndex:t,diffAnchor:n,diffLine:a,”data-first-unified-line-number-cell”:!d&&0===t,enterDialogMode:R,handleDiffSideCellSelectionBlocking:r,hasThreads:aP(a,s,d,g.length+x.length),style:{backgroundColor:(0,E.Yf)(a.type,!0,o),textAlign:”center”},handleDiffCellMouseDown:e=>{if(L()&&e.shiftKey)return void C({lineKey:(0,T.bo)(a),orientation:s?”left”:”right”},eC);let t=s?a.left:a.right;t&&(S({lineKey:(0,T.bo)(a),firstLineSelectionOnDrag:{orientation:s?”left”:”right”,lineNumber:t,shouldStartConversation:!1,lineKey:(0,T.bo)(a)}},eC),w(ak(n)))},handleStartConversation:A,isLeftSide:s,isRowSelected:o,isSplit:d,onMouseEnter:N,…v,children:(0,i.jsx)(“code”,{children:e})},D)}(e)}try{aF.displayName||(aF.displayName=”LineNumberCell”)}catch{}try{aM.displayName||(aM.displayName=”LineNumberCellUnmemoized”)}catch{}let aB=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(9),{columnIndex:s,diffAnchor:l,diffLine:o,isLeftSide:d,isSplit:c,showRightBorder:u}=e;return a[0]!==u?(t=(0,b.$)(“empty-diff-line”,{“border-right”:u}),a[0]=u,a[1]=t):t=a[1],a[2]!==s||a[3]!==l||a[4]!==o||a[5]!==d||a[6]!==c||a[7]!==t?(n=(0,i.jsx)(aS,{className:t,columnIndex:s,diffAnchor:l,diffLine:o,isLeftSide:d,isSplit:c}),a[2]=s,a[3]=l,a[4]=o,a[5]=d,a[6]=c,a[7]=t,a[8]=n):n=a[8],n}:function({columnIndex:e,diffAnchor:t,diffLine:n,isLeftSide:a,isSplit:r,showRightBorder:s}){return(0,i.jsx)(aS,{className:(0,b.$)(“empty-diff-line”,{“border-right”:s}),columnIndex:e,diffAnchor:t,diffLine:n,isLeftSide:a,isSplit:r})};try{aB.displayName||(aB.displayName=”EmptyCell”)}catch{}function aV(e,t){switch(t){case”SHOW_MARKERS”:return{userMinimized:!1,showMarkers:!0};case”USER_EXPANDED_MARKERS”:return{showMarkers:!0,userMinimized:!1};case”USER_MINIMIZED_MARKERS”:return{userMinimized:!0,showMarkers:!1};case”USER_EXITED_MARKERS_DIALOG”:return{…e,showMarkers:!1}}}let aU=(0,a.GV)()?function(e){let t,n,i,a,s=(0,r.c)(7),o=e===ip.sI.Collapsed;s[0]!==o?(t={userMinimized:o,showMarkers:!1},s[0]=o,s[1]=t):t=s[1];let[d,c]=(0,l.useReducer)(aV,t),u=(0,l.useRef)(e);return s[2]!==e?(n=()=>{u.current!==e&&(u.current=e,e===ip.sI.Visible?c(“SHOW_MARKERS”):c(“USER_MINIMIZED_MARKERS”))},i=[e,c],s[2]=e,s[3]=n,s[4]=i):(n=s[3],i=s[4]),(0,l.useEffect)(n,i),s[5]!==d?(a=[d,c],s[5]=d,s[6]=a):a=s[6],a}:function(e){let[t,n]=(0,l.useReducer)(aV,{userMinimized:e===ip.sI.Collapsed,showMarkers:!1}),i=(0,l.useRef)(e);return(0,l.useEffect)(()=>{i.current!==e&&(i.current=e,e===ip.sI.Visible?n(“SHOW_MARKERS”):n(“USER_MINIMIZED_MARKERS”))},[e,n]),[t,n]};var aG=n(87825);let aH=(0,a.GV)()?e=>{let t,n,a,s,o,d,c=(0,r.c)(67),{annotationsAtPosition:u,commentsPreference:m,copilotChatReference:f,currentHunk:h,diffAnchor:p,diffLine:g,filePath:x,lineAnchor:b,handleDiffSideCellSelectionBlocking:v,hasHiddenUnicodeCharacters:y,isLeftSide:j,isRowSelected:C,isSplit:w,nextHunk:N,previousHunk:S,rowId:L,subjectId:D,threadsAtPosition:I,viewerData:_}=e,R=(0,l.useRef)(null),A=”ADDITION”!==g.type,k=!w||j,E=”DELETION”!==g.type,T=!w||!j;c[0]!==v?(t=()=>{v&&v(“left”)},c[0]=v,c[1]=t):t=c[1];let O=t;c[2]!==v?(n=()=>{v&&v(“right”)},c[2]=v,c[3]=n):n=c[3];let P=n,F=w?j?1:3:2,[$,M]=aU(m??ip.sI.Visible);c[4]!==u||c[5]!==F||c[6]!==f||c[7]!==p||c[8]!==g||c[9]!==M||c[10]!==x||c[11]!==P||c[12]!==y||c[13]!==j||c[14]!==C||c[15]!==w||c[16]!==g.left||c[17]!==L||c[18]!==A||c[19]!==k||c[20]!==E||c[21]!==I?(a=k&&(0,i.jsxs)(aF,{threadsAtPosition:I,annotationsAtPosition:u,copilotChatReference:f,columnIndex:0,contentColumnIndex:F,contentRef:R,diffAnchor:p,diffLine:g,dispatchMarkersStatus:M,filePath:x,handleDiffSideCellSelectionBlocking:P,isLeftSide:j,isRowSelected:C,isSplit:w,rowId:L,children:[y&&!E&&(0,i.jsx)(az,{children:(0,i.jsx)(aG.o,{})}),A&&g.left]}),c[4]=u,c[5]=F,c[6]=f,c[7]=p,c[8]=g,c[9]=M,c[10]=x,c[11]=P,c[12]=y,c[13]=j,c[14]=C,c[15]=w,c[16]=g.left,c[17]=L,c[18]=A,c[19]=k,c[20]=E,c[21]=I,c[22]=a):a=c[22],c[23]!==u||c[24]!==F||c[25]!==f||c[26]!==p||c[27]!==g||c[28]!==M||c[29]!==x||c[30]!==O||c[31]!==y||c[32]!==j||c[33]!==C||c[34]!==w||c[35]!==g.right||c[36]!==L||c[37]!==E||c[38]!==T||c[39]!==I?(s=T&&(0,i.jsxs)(aF,{annotationsAtPosition:u,copilotChatReference:f,columnIndex:w?2:1,contentColumnIndex:F,contentRef:R,diffAnchor:p,diffLine:g,dispatchMarkersStatus:M,filePath:x,handleDiffSideCellSelectionBlocking:O,isLeftSide:j,isRowSelected:C,isSplit:w,rowId:L,threadsAtPosition:I,children:[y&&E&&(0,i.jsx)(az,{children:(0,i.jsx)(aG.o,{})}),E&&g.right]}),c[23]=u,c[24]=F,c[25]=f,c[26]=p,c[27]=g,c[28]=M,c[29]=x,c[30]=O,c[31]=y,c[32]=j,c[33]=C,c[34]=w,c[35]=g.right,c[36]=L,c[37]=E,c[38]=T,c[39]=I,c[40]=s):s=c[40];let B=j?P:O;return c[41]!==u||c[42]!==m||c[43]!==F||c[44]!==f||c[45]!==h||c[46]!==p||c[47]!==g||c[48]!==M||c[49]!==x||c[50]!==j||c[51]!==C||c[52]!==w||c[53]!==b||c[54]!==$||c[55]!==N||c[56]!==S||c[57]!==L||c[58]!==D||c[59]!==B||c[60]!==I||c[61]!==_?(o=(0,i.jsx)(aT,{annotationsAtPosition:u,commentsPreference:m,copilotChatReference:f,columnIndex:F,currentHunk:h,diffAnchor:p,diffLine:g,dispatchMarkersStatus:M,filePath:x,lineAnchor:b,handleDiffSideCellSelectionBlocking:B,isLeftSide:j,isRowSelected:C,isSplit:w,markersStatus:$,nextHunk:N,previousHunk:S,ref:R,rowId:L,subjectId:D,threadsAtPosition:I,viewerData:_}),c[41]=u,c[42]=m,c[43]=F,c[44]=f,c[45]=h,c[46]=p,c[47]=g,c[48]=M,c[49]=x,c[50]=j,c[51]=C,c[52]=w,c[53]=b,c[54]=$,c[55]=N,c[56]=S,c[57]=L,c[58]=D,c[59]=B,c[60]=I,c[61]=_,c[62]=o):o=c[62],c[63]!==a||c[64]!==s||c[65]!==o?(d=(0,i.jsxs)(iC,{children:[a,s,o]}),c[63]=a,c[64]=s,c[65]=o,c[66]=d):d=c[66],d}:({annotationsAtPosition:e,commentsPreference:t,copilotChatReference:n,currentHunk:a,diffAnchor:r,diffLine:s,filePath:o,lineAnchor:d,handleDiffSideCellSelectionBlocking:c,hasHiddenUnicodeCharacters:u,isLeftSide:m,isRowSelected:f,isSplit:h,nextHunk:p,previousHunk:g,rowId:x,subjectId:b,threadsAtPosition:v,viewerData:y})=>{let j=(0,l.useRef)(null),C=”ADDITION”!==s.type,w=!h||m,N=”DELETION”!==s.type,S=!h||!m,L=(0,l.useCallback)(()=>{c&&c(“left”)},[c]),D=(0,l.useCallback)(()=>{c&&c(“right”)},[c]),I=h?m?1:3:2,[_,R]=aU(t??ip.sI.Visible);return(0,i.jsxs)(iC,{children:[w&&(0,i.jsxs)(aF,{threadsAtPosition:v,annotationsAtPosition:e,copilotChatReference:n,columnIndex:0,contentColumnIndex:I,contentRef:j,diffAnchor:r,diffLine:s,dispatchMarkersStatus:R,filePath:o,handleDiffSideCellSelectionBlocking:D,isLeftSide:m,isRowSelected:f,isSplit:h,rowId:x,children:[u&&!N&&(0,i.jsx)(az,{children:(0,i.jsx)(aG.o,{})}),C&&s.left]}),S&&(0,i.jsxs)(aF,{annotationsAtPosition:e,copilotChatReference:n,columnIndex:h?2:1,contentColumnIndex:I,contentRef:j,diffAnchor:r,diffLine:s,dispatchMarkersStatus:R,filePath:o,handleDiffSideCellSelectionBlocking:L,isLeftSide:m,isRowSelected:f,isSplit:h,rowId:x,threadsAtPosition:v,children:[u&&N&&(0,i.jsx)(az,{children:(0,i.jsx)(aG.o,{})}),N&&s.right]}),(0,i.jsx)(aT,{annotationsAtPosition:e,commentsPreference:t,copilotChatReference:n,columnIndex:I,currentHunk:a,diffAnchor:r,diffLine:s,dispatchMarkersStatus:R,filePath:o,lineAnchor:d,handleDiffSideCellSelectionBlocking:m?D:L,isLeftSide:m,isRowSelected:f,isSplit:h,markersStatus:_,nextHunk:p,previousHunk:g,ref:j,rowId:x,subjectId:b,threadsAtPosition:v,viewerData:y})]})},aq=(0,a.GV)()?e=>{let t,n=(0,r.c)(41),{annotationsAtPosition:a,commentsPreference:s,copilotChatReference:l,currentHunk:o,diffLine:d,diffAnchor:c,filePath:u,handleDiffSideCellSelectionBlocking:m,hasHiddenUnicodeCharacters:f,isLeftSide:h,isRowSelected:p,isSplit:g,nextHunk:x,previousHunk:b,rowId:v,subjectId:y,threadsAtPosition:j,viewerData:C}=e;if((0,E.Po)(d)){let e,t,a,r=2*!h;n[0]!==c||n[1]!==d||n[2]!==h||n[3]!==g||n[4]!==r?(e=(0,i.jsx)(aB,{columnIndex:r,diffAnchor:c,diffLine:d,isLeftSide:h,isSplit:g}),n[0]=c,n[1]=d,n[2]=h,n[3]=g,n[4]=r,n[5]=e):e=n[5];let s=h?1:3;return n[6]!==c||n[7]!==d||n[8]!==h||n[9]!==g||n[10]!==s?(t=(0,i.jsx)(aB,{columnIndex:s,diffAnchor:c,diffLine:d,isLeftSide:h,isSplit:g}),n[6]=c,n[7]=d,n[8]=h,n[9]=g,n[10]=s,n[11]=t):t=n[11],n[12]!==e||n[13]!==t?(a=(0,i.jsxs)(i.Fragment,{children:[e,t]}),n[12]=e,n[13]=t,n[14]=a):a=n[14],a}if(n[15]!==c||n[16]!==d.left||n[17]!==d.right||n[18]!==d.type||n[19]!==h){let e=h?”left”:(0,e2.XU)(d.type),i=”left”===e?d.left:d.right;t=(0,e2.IQ)(c,e,i??0),n[15]=c,n[16]=d.left,n[17]=d.right,n[18]=d.type,n[19]=h,n[20]=t}else t=n[20];let w=t;switch(d.type){case”HUNK”:return null;case”ADDITION”:case”DELETION”:case”CONTEXT”:case”INJECTED_CONTEXT”:{let e;return n[21]!==a||n[22]!==s||n[23]!==l||n[24]!==o||n[25]!==c||n[26]!==d||n[27]!==u||n[28]!==m||n[29]!==f||n[30]!==h||n[31]!==p||n[32]!==g||n[33]!==w||n[34]!==x||n[35]!==b||n[36]!==v||n[37]!==y||n[38]!==j||n[39]!==C?(e=(0,i.jsx)(aW,{annotationsAtPosition:a,commentsPreference:s,copilotChatReference:l,currentHunk:o,diffAnchor:c,diffLine:d,filePath:u,handleDiffSideCellSelectionBlocking:m,hasHiddenUnicodeCharacters:f,isLeftSide:h,isRowSelected:p,isSplit:g,lineAnchor:w,nextHunk:x,previousHunk:b,rowId:v,subjectId:y,threadsAtPosition:j,viewerData:C}),n[21]=a,n[22]=s,n[23]=l,n[24]=o,n[25]=c,n[26]=d,n[27]=u,n[28]=m,n[29]=f,n[30]=h,n[31]=p,n[32]=g,n[33]=w,n[34]=x,n[35]=b,n[36]=v,n[37]=y,n[38]=j,n[39]=C,n[40]=e):e=n[40],e}default:throw Error(`cannot handle type ${d.type}`)}}:({annotationsAtPosition:e,commentsPreference:t,copilotChatReference:n,currentHunk:a,diffLine:r,diffAnchor:s,filePath:l,handleDiffSideCellSelectionBlocking:o,hasHiddenUnicodeCharacters:d,isLeftSide:c,isRowSelected:u,isSplit:m,nextHunk:f,previousHunk:h,rowId:p,subjectId:g,threadsAtPosition:x,viewerData:b})=>{if((0,E.Po)(r))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(aB,{columnIndex:2*!c,diffAnchor:s,diffLine:r,isLeftSide:c,isSplit:m}),(0,i.jsx)(aB,{columnIndex:c?1:3,diffAnchor:s,diffLine:r,isLeftSide:c,isSplit:m})]});let v=c?”left”:(0,e2.XU)(r.type),y=”left”===v?r.left:r.right,j=(0,e2.IQ)(s,v,y??0);switch(r.type){case”HUNK”:return null;case”ADDITION”:case”DELETION”:case”CONTEXT”:case”INJECTED_CONTEXT”:return(0,i.jsx)(aW,{annotationsAtPosition:e,commentsPreference:t,copilotChatReference:n,currentHunk:a,diffAnchor:s,diffLine:r,filePath:l,handleDiffSideCellSelectionBlocking:o,hasHiddenUnicodeCharacters:d,isLeftSide:c,isRowSelected:u,isSplit:m,lineAnchor:j,nextHunk:f,previousHunk:h,rowId:p,subjectId:g,threadsAtPosition:x,viewerData:b});default:throw Error(`cannot handle type ${r.type}`)}},az=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(3),{children:s}=e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={left:”-1px”,zIndex:”1″},a[0]=t):t=a[0],a[1]!==s?(n=(0,i.jsx)(“span”,{className:”position-absolute”,style:t,children:s}),a[1]=s,a[2]=n):n=a[2],n}:function({children:e}){return(0,i.jsx)(“span”,{className:”position-absolute”,style:{left:”-1px”,zIndex:”1″},children:e})},aK=l.memo(aq),aW=l.memo(aH);try{aH.displayName||(aH.displayName=”CodeDiffLineUnmemoized”)}catch{}try{aq.displayName||(aq.displayName=”DiffLineSideUnmemoized”)}catch{}try{az.displayName||(az.displayName=”DiffCodeAlert”)}catch{}try{aK.displayName||(aK.displayName=”DiffLineSide”)}catch{}try{aW.displayName||(aW.displayName=”CodeDiffLine”)}catch{}let aZ=(0,a.GV)()?function(e){let t,n,a,s=(0,r.c)(5),{isSplit:l}=e,o=!l&&”hunk-kebab-icon-unified”;return s[0]!==o?(t=(0,b.$)(“hunk-kebab-icon pr-2 pb-1”,o),s[0]=o,s[1]=t):t=s[1],s[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(c.KebabHorizontalIcon,{}),s[2]=n):n=s[2],s[3]!==t?(a=(0,i.jsx)(“div”,{className:t,children:n}),s[3]=t,s[4]=a):a=s[4],a}:function({isSplit:e}){return(0,i.jsx)(“div”,{className:(0,b.$)(“hunk-kebab-icon pr-2 pb-1″,!e&&”hunk-kebab-icon-unified”),children:(0,i.jsx)(c.KebabHorizontalIcon,{})})};try{aZ.displayName||(aZ.displayName=”HunkKebabIcon”)}catch{}let aQ=(0,a.GV)()?function(e){let t,n,i,a,s,o,d,c=(0,r.c)(17),[u,m]=(0,l.useState)(!1),[f,h]=(0,l.useState)(!1),p=u?0:-1;c[0]!==e?(t=t=>{e.current&&e.current.contains(t.relatedTarget)||m(!1)},c[0]=e,c[1]=t):t=c[1];let g=t;c[2]!==e?(n=()=>{e.current===document.activeElement&&m(!0)},c[2]=e,c[3]=n):n=c[3];let x=n;c[4]!==e?(i=t=>{e.current&&!e.current.contains(t.relatedTarget)&&m(!1),h(!1)},c[4]=e,c[5]=i):i=c[5];let b=i;c[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=e=>{e.stopPropagation(),h(!0)},c[6]=a):a=c[6];let v=a;c[7]!==g||c[8]!==x?(s={onFocus:x,onBlur:g},c[7]=g,c[8]=x,c[9]=s):s=c[9];let y=s,j=!f;c[10]!==p||c[11]!==b||c[12]!==j?(o={“aria-hidden”:j,tabIndex:p,onBlur:b,onFocusCapture:v,onKeyDownCapture:aX},c[10]=p,c[11]=b,c[12]=j,c[13]=o):o=c[13];let C=o;return c[14]!==C||c[15]!==y?(d=[y,C],c[14]=C,c[15]=y,c[16]=d):d=c[16],d}:function(e){let[t,n]=(0,l.useState)(!1),[i,a]=(0,l.useState)(!1),r=(0,l.useCallback)(t=>{e.current&&e.current.contains(t.relatedTarget)||n(!1)},[e]);return[{onFocus:(0,l.useCallback)(()=>{e.current===document.activeElement&&n(!0)},[e]),onBlur:r},{“aria-hidden”:!i,tabIndex:t?0:-1,onBlur:(0,l.useCallback)(t=>{e.current&&!e.current.contains(t.relatedTarget)&&n(!1),a(!1)},[e]),onFocusCapture:(0,l.useCallback)(e=>{e.stopPropagation(),a(!0)},[]),onKeyDownCapture:(0,l.useCallback)(e=>{tU(e.key)&&e.stopPropagation()},[])}]};function aX(e){tU(e.key)&&e.stopPropagation()}let aJ=(0,a.GV)()?function(e){let t,n,a,s,o,d=(0,r.c)(18),{diffAnchor:c,diffLine:u,isLeftSide:m,isSplit:f,renderHunkButton:h}=e,p=(0,l.useRef)(null),[g,x]=aQ(p);if((0,E.Po)(u))return null;let b=`HunkCell-left:${u.left}-right:${u.right}`;d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={backgroundColor:”var(–bgColor-accent-muted, var(–color-accent-subtle))”,flexGrow:1},d[0]=t):t=d[0],d[1]!==x||d[2]!==f||d[3]!==h?(n=h?.(x)??(0,i.jsx)(aZ,{isSplit:f}),d[1]=x,d[2]=f,d[3]=h,d[4]=n):n=d[4];let v=u.html;return d[5]!==v?(a=(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(eZ.$6,{className:”diff-text-inner color-fg-muted”,html:v})}),d[5]=v,d[6]=a):a=d[6],d[7]!==n||d[8]!==a?(s=(0,i.jsxs)(“div”,{className:”d-flex flex-row”,children:[n,a]}),d[7]=n,d[8]=a,d[9]=s):s=d[9],d[10]!==g||d[11]!==c||d[12]!==u||d[13]!==m||d[14]!==f||d[15]!==b||d[16]!==s?(o=(0,i.jsx)(aS,{className:”diff-hunk-cell”,colSpan:4,columnIndex:0,diffAnchor:c,diffLine:u,isLeftSide:m,isSplit:f,ref:p,style:t,…g,children:s},b),d[10]=g,d[11]=c,d[12]=u,d[13]=m,d[14]=f,d[15]=b,d[16]=s,d[17]=o):o=d[17],o}:function({diffAnchor:e,diffLine:t,isLeftSide:n,isSplit:a,renderHunkButton:r}){let s=(0,l.useRef)(null),[o,d]=aQ(s);if((0,E.Po)(t))return null;let c=`HunkCell-left:${t.left}-right:${t.right}`;return(0,i.jsx)(aS,{className:”diff-hunk-cell”,colSpan:4,columnIndex:0,diffAnchor:e,diffLine:t,isLeftSide:n,isSplit:a,ref:s,style:{backgroundColor:”var(–bgColor-accent-muted, var(–color-accent-subtle))”,flexGrow:1},…o,children:(0,i.jsxs)(“div”,{className:”d-flex flex-row”,children:[r?.(d)??(0,i.jsx)(aZ,{isSplit:a}),(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(eZ.$6,{className:”diff-text-inner color-fg-muted”,html:t.html})})]})},c)};try{aJ.displayName||(aJ.displayName=”HunkCell”)}catch{}let aY=”ExpandableHunkHeaderDiffLine-module__expand-button-line–CbsbZ”,a0=”ExpandableHunkHeaderDiffLine-module__expand-up-and-down–amzYl”,a1=”ExpandableHunkHeaderDiffLine-module__expand-button-unified–pt9f0″,a2=(0,a.GV)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,h,p=(0,r.c)(24);p[0]!==e?({direction:l,icon:t,isSplit:o,label:d,onClick:c,ariaLabel:a,className:s,…n}=e,p[0]=e,p[1]=t,p[2]=n,p[3]=a,p[4]=s,p[5]=l,p[6]=o,p[7]=d,p[8]=c):(t=p[1],n=p[2],a=p[3],s=p[4],l=p[5],o=p[6],d=p[7],c=p[8]);let{sendAnalyticsEvent:g}=(0,tz.s)();p[9]!==c||p[10]!==g?(u=()=>{c(),g(“file_entry.expand_hunk”,”FILE_EXPANDER_BUTTON”)},p[9]=c,p[10]=g,p[11]=u):u=p[11];let x=!o&&a1;p[12]!==s||p[13]!==x?(m=(0,b.$)(“Button Button–iconOnly Button–invisible”,aY,x,s),p[12]=s,p[13]=x,p[14]=m):m=p[14];let v=a??d;return p[15]!==t?(f=(0,i.jsx)(t,{}),p[15]=t,p[16]=f):f=p[16],p[17]!==n||p[18]!==l||p[19]!==u||p[20]!==m||p[21]!==v||p[22]!==f?(h=(0,i.jsx)(“button”,{onClick:u,className:m,”aria-label”:v,”data-direction”:l,…n,children:f}),p[17]=n,p[18]=l,p[19]=u,p[20]=m,p[21]=v,p[22]=f,p[23]=h):h=p[23],h}:function({direction:e,icon:t,isSplit:n,label:a,onClick:r,ariaLabel:s,className:l,…o}){let{sendAnalyticsEvent:d}=(0,tz.s)();return(0,i.jsx)(“button”,{onClick:()=>{r(),d(“file_entry.expand_hunk”,”FILE_EXPANDER_BUTTON”)},className:(0,b.$)(“Button Button–iconOnly Button–invisible”,aY,!n&&a1,l),”aria-label”:s??a,”data-direction”:e,…o,children:(0,i.jsx)(t,{})})},a3=(0,a.GV)()?function(e){let t,n,a,s,l,o,d,u,m,f,h,p=(0,r.c)(25),{currentHunk:g,diffAnchor:x,diffLine:b,fileLineCount:v,isLeftSide:y,isSplit:j,nextHunk:C,nextLine:w,previousHunk:N,prevLine:S}=e;p[0]!==g||p[1]!==C||p[2]!==N?(t={currentHunk:g,nextHunk:C,previousHunk:N},p[0]=g,p[1]=C,p[2]=N,p[3]=t):t=p[3];let{expandStartOfHunk:L,expandEndOfPreviousHunk:D}=iT(t),I=0===b.position&&0!==b.blobLineNumber||!S,_=!w,R=0===b.blobLineNumber,A=I||_,k=_&&S?.blobLineNumber===v;e:{if(A||b.blobLineNumber<=0){n=!1;break e}if(b.blobLineNumber-S.blobLineNumber<=20||w.blobLineNumber-b.blobLineNumber>=20){n=!0;break e}n=!1}let E=n;t:{if(A||k){a=!1;break t}if(b.blobLineNumber-S.blobLineNumber>20){a=!0;break t}a=!1}let T=a;n:{if(b.blobLineNumber<=0||R){s=!1;break n}if(I){s=!0;break n}s=!1}let O=s;i:{if(I||k){l=!1;break i}if(_){l=!0;break i}l=!1}let P=l;a:{switch(!0){case E:o="expand-all";break a;case T:o="expand-up-and-down";break a;case O:o="expand-up";break a;case P:o="expand-down";break a}o=void 0}let F=o;p[4]!==L?(d=()=>L(),p[4]=L,p[5]=d):d=p[5];let $=d;p[6]!==D?(u=()=>D(),p[6]=D,p[7]=u):u=p[7];let M=u;p[8]!==L?(m=()=>L(),p[8]=L,p[9]=m):m=p[9];let B=m,V=z();p[10]!==F||p[11]!==$||p[12]!==B||p[13]!==M||p[14]!==V||p[15]!==j||p[16]!==w?.blobLineNumber||p[17]!==S?.blobLineNumber?(f=e=>{if(V.has(iY.YR.expandLines))return null;switch(F){case”expand-all”:return(0,i.jsx)(a2,{…e,direction:”all”,icon:c.UnfoldIcon,isSplit:j,label:`Expand file from line ${S?.blobLineNumber||””} to line ${w?.blobLineNumber||””}`,onClick:B});case”expand-up-and-down”:return(0,i.jsxs)(“div”,{className:”d-flex flex-column”,children:[(0,i.jsx)(a2,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:j,label:`Expand file down from line ${S?.blobLineNumber||””}`,className:a0,onClick:M}),(0,i.jsx)(a2,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:j,label:`Expand file up from line ${w?.blobLineNumber||””}`,className:a0,onClick:$})]});case”expand-up”:return(0,i.jsx)(a2,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:j,label:`Expand file up from line ${w?.blobLineNumber||””}`,onClick:$});case”expand-down”:return(0,i.jsx)(a2,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:j,label:`Expand file down from line ${S?.blobLineNumber||””}`,onClick:M});default:return null}},p[10]=F,p[11]=$,p[12]=B,p[13]=M,p[14]=V,p[15]=j,p[16]=w?.blobLineNumber,p[17]=S?.blobLineNumber,p[18]=f):f=p[18];let U=f;return p[19]!==x||p[20]!==b||p[21]!==y||p[22]!==j||p[23]!==U?(h=(0,i.jsx)(aJ,{renderHunkButton:U,diffAnchor:x,diffLine:b,isLeftSide:y,isSplit:j}),p[19]=x,p[20]=b,p[21]=y,p[22]=j,p[23]=U,p[24]=h):h=p[24],h}:function({currentHunk:e,diffAnchor:t,diffLine:n,fileLineCount:a,isLeftSide:r,isSplit:s,nextHunk:o,nextLine:d,previousHunk:u,prevLine:m}){let{expandStartOfHunk:f,expandEndOfPreviousHunk:h}=iT({currentHunk:e,nextHunk:o,previousHunk:u}),p=0===n.position&&0!==n.blobLineNumber||!m,g=!d,x=0===n.blobLineNumber,b=p||g,v=g&&m?.blobLineNumber===a,y=(0,l.useMemo)(()=>!b&&!(n.blobLineNumber<=0)&&(!!(n.blobLineNumber-m.blobLineNumber<=20)||!!(d.blobLineNumber-n.blobLineNumber>=20)),[b,n,d,m]),j=(0,l.useMemo)(()=>!b&&!v&&n.blobLineNumber-m.blobLineNumber>20,[b,v,n,m]),C=(0,l.useMemo)(()=>!(n.blobLineNumber<=0)&&!x&&!!p,[p,x,n]),w=(0,l.useMemo)(()=>!p&&!v&&!!g,[p,g,v]),N=(0,l.useMemo)(()=>{switch(!0){case y:return”expand-all”;case j:return”expand-up-and-down”;case C:return”expand-up”;case w:return”expand-down”}},[y,j,C,w]),S=()=>f(),L=()=>h(),D=()=>f(),I=z();return(0,i.jsx)(aJ,{renderHunkButton:e=>{if(I.has(iY.YR.expandLines))return null;switch(N){case”expand-all”:return(0,i.jsx)(a2,{…e,direction:”all”,icon:c.UnfoldIcon,isSplit:s,label:`Expand file from line ${m?.blobLineNumber||””} to line ${d?.blobLineNumber||””}`,onClick:D});case”expand-up-and-down”:return(0,i.jsxs)(“div”,{className:”d-flex flex-column”,children:[(0,i.jsx)(a2,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:s,label:`Expand file down from line ${m?.blobLineNumber||””}`,className:a0,onClick:L}),(0,i.jsx)(a2,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:s,label:`Expand file up from line ${d?.blobLineNumber||””}`,className:a0,onClick:S})]});case”expand-up”:return(0,i.jsx)(a2,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:s,label:`Expand file up from line ${d?.blobLineNumber||””}`,onClick:S});case”expand-down”:return(0,i.jsx)(a2,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:s,label:`Expand file down from line ${m?.blobLineNumber||””}`,onClick:L});default:return null}},diffAnchor:t,diffLine:n,isLeftSide:r,isSplit:s})};try{a2.displayName||(a2.displayName=”ExpandButtonLine”)}catch{}try{a3.displayName||(a3.displayName=”ExpandableHunkHeaderDiffLine”)}catch{}var a4=n(12918);let a5=(0,l.memo)((0,a.GV)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,h=(0,r.c)(54),{copilotChatReference:p,diffHasHiddenUnicodeCharacters:g,filePath:x,handleDiffSideCellSelectionBlocking:b,hunksData:v,leftDiffLine:y,nextDiffLine:j,prevDiffLine:C,rightDiffLine:w,showHiddenUnicode:N,subjectId:S,viewerData:L}=e,D=Z(),_=Q();h[0]!==g||h[1]!==N?(t=e=>{let t=!1;return g&&!(0,E.Po)(e)&&(t=(0,tq.Y)(e.text),N&&t&&(e=e.html?{…e,html:(0,a4.Gx)(e.html)??e.html}:{…e,text:(0,tq.TA)(e.text)})),[e,t]},h[0]=g,h[1]=N,h[2]=t):t=h[2];let R=t,[A,k]=R(y),[T,O]=R(w),P=J((0,E.Po)(A)?void 0:A),F=J((0,E.Po)(T)?void 0:T);e:{let e;if((0,E.Po)(A)){n=A;break e}h[3]!==A||h[4]!==P?(e={…A,…P},h[3]=A,h[4]=P,h[5]=e):e=h[5],n=e}let $=n;t:{let e;if((0,E.Po)(T)){a=T;break t}h[6]!==T||h[7]!==F?(e={…T,…F},h[6]=T,h[7]=F,h[8]=e):e=h[8],a=e}let M=a;h[9]!==$?(s=(0,E.qK)($)&&”HUNK”===$.type,h[9]=$,h[10]=s):s=h[10];let B=s;h[11]!==D||h[12]!==y||h[13]!==w?(l=(0,E.qX)(D,y,w),h[11]=D,h[12]=y,h[13]=w,h[14]=l):l=h[14];let V=l;h[15]!==$||h[16]!==M?(o=(0,E.Po)($)?(0,E.Po)(M)?void 0:M:$,h[15]=$,h[16]=M,h[17]=o):o=h[17];let U=o;h[18]!==A?(d=(0,E.Po)(A)?void 0:(0,E.oH)(A.left,”LEFT”),h[18]=A,h[19]=d):d=h[19];let G=d,{threads:H,annotations:q,commentsPreference:z}=(0,I.rP)(x,G??””);h[20]!==T?(c=(0,E.Po)(T)?void 0:(0,E.oH)(T.right,”RIGHT”),h[20]=T,h[21]=c):c=h[21];let K=c,{threads:W,annotations:X,commentsPreference:Y}=(0,I.rP)(x,K??””),ee=z===ip.sI.Collapsed||Y===ip.sI.Collapsed?ip.sI.Collapsed:ip.sI.Visible,et=!(((0,E.Po)($)||!$.isSelected)&&((0,E.Po)(M)||!M.isSelected));if(!U)return null;h[22]!==U||h[23]!==v?(u=e9(U,v),h[22]=U,h[23]=v,h[24]=u):u=h[24];let{currentHunk:en,nextHunk:ei,previousHunk:ea}=u;return $?(h[25]!==p||h[26]!==ee||h[27]!==en||h[28]!==D||h[29]!==_||h[30]!==x||h[31]!==b||h[32]!==B||h[33]!==et||h[34]!==q||h[35]!==y||h[36]!==k||h[37]!==$||h[38]!==H||h[39]!==j||h[40]!==ei||h[41]!==C||h[42]!==ea||h[43]!==X||h[44]!==O||h[45]!==M||h[46]!==W||h[47]!==V||h[48]!==S||h[49]!==L?(m=B?(0,i.jsx)(a3,{currentHunk:en,diffAnchor:D,diffLine:y,fileLineCount:_,isLeftSide:!0,isSplit:!0,nextHunk:ei,nextLine:j,previousHunk:ea,prevLine:C}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(aK,{annotationsAtPosition:q,commentsPreference:ee,copilotChatReference:p,currentHunk:en,diffLine:$,diffAnchor:D,filePath:x,handleDiffSideCellSelectionBlocking:b,hasHiddenUnicodeCharacters:k,isLeftSide:!0,isRowSelected:et,isSplit:!0,nextHunk:ei,previousHunk:ea,rowId:V,subjectId:S,threadsAtPosition:H,viewerData:L}),(0,i.jsx)(aK,{threadsAtPosition:W,annotationsAtPosition:X,commentsPreference:ee,copilotChatReference:p,currentHunk:en,diffLine:M,diffAnchor:D,filePath:x,handleDiffSideCellSelectionBlocking:b,hasHiddenUnicodeCharacters:O,isLeftSide:!1,isRowSelected:et,isSplit:!0,nextHunk:ei,previousHunk:ea,rowId:V,subjectId:S,viewerData:L})]}),h[25]=p,h[26]=ee,h[27]=en,h[28]=D,h[29]=_,h[30]=x,h[31]=b,h[32]=B,h[33]=et,h[34]=q,h[35]=y,h[36]=k,h[37]=$,h[38]=H,h[39]=j,h[40]=ei,h[41]=C,h[42]=ea,h[43]=X,h[44]=O,h[45]=M,h[46]=W,h[47]=V,h[48]=S,h[49]=L,h[50]=m):m=h[50],h[51]!==V||h[52]!==m?(f=(0,i.jsx)(“tr”,{className:”diff-line-row”,children:m},V),h[51]=V,h[52]=m,h[53]=f):f=h[53],f):null}:function({copilotChatReference:e,diffHasHiddenUnicodeCharacters:t,filePath:n,handleDiffSideCellSelectionBlocking:a,hunksData:r,leftDiffLine:s,nextDiffLine:o,prevDiffLine:d,rightDiffLine:c,showHiddenUnicode:u,subjectId:m,viewerData:f}){let h=Z(),p=Q(),g=e=>{let n=!1;return t&&!(0,E.Po)(e)&&(n=(0,tq.Y)(e.text),u&&n&&(e=e.html?{…e,html:(0,a4.Gx)(e.html)??e.html}:{…e,text:(0,tq.TA)(e.text)})),[e,n]},[x,b]=g(s),[v,y]=g(c),j=J((0,E.Po)(x)?void 0:x),C=J((0,E.Po)(v)?void 0:v),w=(0,l.useMemo)(()=>(0,E.Po)(x)?x:{…x,…j},[x,j]),N=(0,l.useMemo)(()=>(0,E.Po)(v)?v:{…v,…C},[v,C]),S=(0,E.qK)(w)&&”HUNK”===w.type,L=(0,E.qX)(h,s,c),D=(0,E.Po)(w)?(0,E.Po)(N)?void 0:N:w,_=(0,E.Po)(x)?void 0:(0,E.oH)(x.left,”LEFT”),{threads:R,annotations:A,commentsPreference:k}=(0,I.rP)(n,_??””),T=(0,E.Po)(v)?void 0:(0,E.oH)(v.right,”RIGHT”),{threads:O,annotations:P,commentsPreference:F}=(0,I.rP)(n,T??””),$=k===ip.sI.Collapsed||F===ip.sI.Collapsed?ip.sI.Collapsed:ip.sI.Visible,M=(0,l.useMemo)(()=>!(((0,E.Po)(w)||!w.isSelected)&&((0,E.Po)(N)||!N.isSelected)),[w,N]);if(!D)return null;let{currentHunk:B,nextHunk:V,previousHunk:U}=e9(D,r);return w?(0,i.jsx)(“tr”,{className:”diff-line-row”,children:S?(0,i.jsx)(a3,{currentHunk:B,diffAnchor:h,diffLine:s,fileLineCount:p,isLeftSide:!0,isSplit:!0,nextHunk:V,nextLine:o,previousHunk:U,prevLine:d}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(aK,{annotationsAtPosition:A,commentsPreference:$,copilotChatReference:e,currentHunk:B,diffLine:w,diffAnchor:h,filePath:n,handleDiffSideCellSelectionBlocking:a,hasHiddenUnicodeCharacters:b,isLeftSide:!0,isRowSelected:M,isSplit:!0,nextHunk:V,previousHunk:U,rowId:L,subjectId:m,threadsAtPosition:R,viewerData:f}),(0,i.jsx)(aK,{threadsAtPosition:O,annotationsAtPosition:P,commentsPreference:$,copilotChatReference:e,currentHunk:B,diffLine:N,diffAnchor:h,filePath:n,handleDiffSideCellSelectionBlocking:a,hasHiddenUnicodeCharacters:y,isLeftSide:!1,isRowSelected:M,isSplit:!0,nextHunk:V,previousHunk:U,rowId:L,subjectId:m,viewerData:f})]})},L):null});try{a5.displayName||(a5.displayName=”SplitDiffRow”)}catch{}function a6(e){let t=[],n=[],i=()=>{for(;t.lengtha6(e),[e]);return{leftLines:t,rightLines:n}},a8=(0,l.memo)((0,a.GV)()?function(e){let t,n,a,s,l=(0,r.c)(24),{diffHasHiddenUnicodeCharacters:o,diffLines:d,fileAnchor:c,filePath:u,handleDiffSideCellSelectionBlocking:m,showHiddenUnicode:f,tableRef:h,copilotChatReference:p,subjectId:g,viewerData:x}=e,{leftLines:b,rightLines:v}=a7(d);l[0]!==b?(t=te(b),l[0]=b,l[1]=t):t=l[1];let y=t,{addLineToSelection:j,clearSelectedLines:C,selectMultipleLines:w}=Y(),N=G();return l[2]!==j||l[3]!==C||l[4]!==c||l[5]!==N||l[6]!==b||l[7]!==v||l[8]!==w||l[9]!==h?(n={addLineToSelection:j,clearSelectedLines:C,containerRef:h,fileAnchor:c,getfirstLineSelectionOnDrag:N,isSplitDiff:!0,leftLines:b,selectMultipleLines:w,rightLines:v,disabled:!1},l[2]=j,l[3]=C,l[4]=c,l[5]=N,l[6]=b,l[7]=v,l[8]=w,l[9]=h,l[10]=n):n=l[10],tG(n),l[11]!==p||l[12]!==o||l[13]!==u||l[14]!==m||l[15]!==y||l[16]!==b||l[17]!==v||l[18]!==f||l[19]!==g||l[20]!==x?(a=b.map((e,t)=>{let n=b[t],a=v[t],r=b[t-1],s=(0,E.Po)(b[t+1])?v[t+1]:b[t+1],l=`${(0,E.Po)(n)||!n?`empty-left-diff-${t}`:n.blobLineNumber}-${(0,E.Po)(a)||!a?`empty-right-diff-${t}`:a.blobLineNumber}`;return(0,i.jsx)(a5,{copilotChatReference:p,diffHasHiddenUnicodeCharacters:o,filePath:u,handleDiffSideCellSelectionBlocking:m,hunksData:y,leftDiffLine:n,nextDiffLine:s,prevDiffLine:r,rightDiffLine:a,showHiddenUnicode:f,subjectId:g,viewerData:x},l)}),l[11]=p,l[12]=o,l[13]=u,l[14]=m,l[15]=y,l[16]=b,l[17]=v,l[18]=f,l[19]=g,l[20]=x,l[21]=a):a=l[21],l[22]!==a?(s=(0,i.jsx)(i.Fragment,{children:a}),l[22]=a,l[23]=s):s=l[23],s}:function({diffHasHiddenUnicodeCharacters:e,diffLines:t,fileAnchor:n,filePath:a,handleDiffSideCellSelectionBlocking:r,showHiddenUnicode:s,tableRef:o,copilotChatReference:d,subjectId:c,viewerData:u}){let{leftLines:m,rightLines:f}=a7(t),h=(0,l.useMemo)(()=>te(m),[m]),{addLineToSelection:p,clearSelectedLines:g,selectMultipleLines:x}=Y();return tG({addLineToSelection:p,clearSelectedLines:g,containerRef:o,fileAnchor:n,getfirstLineSelectionOnDrag:G(),isSplitDiff:!0,leftLines:m,selectMultipleLines:x,rightLines:f,disabled:!1}),(0,i.jsx)(i.Fragment,{children:m.map((t,n)=>{let l=m[n],o=f[n],p=m[n-1],g=(0,E.Po)(m[n+1])?f[n+1]:m[n+1],x=`${(0,E.Po)(l)||!l?`empty-left-diff-${n}`:l.blobLineNumber}-${(0,E.Po)(o)||!o?`empty-right-diff-${n}`:o.blobLineNumber}`;return(0,i.jsx)(a5,{copilotChatReference:d,diffHasHiddenUnicodeCharacters:e,filePath:a,handleDiffSideCellSelectionBlocking:r,hunksData:h,leftDiffLine:l,nextDiffLine:g,prevDiffLine:p,rightDiffLine:o,showHiddenUnicode:s,subjectId:c,viewerData:u},x)})})});try{a8.displayName||(a8.displayName=”SplitDiffLines”)}catch{}let a9=(0,l.memo)(function({copilotChatReference:e,diffHasHiddenUnicodeCharacters:t,filePath:n,hunksData:a,currentDiffLine:r,nextDiffLine:s,prevDiffLine:o,showHiddenUnicode:d,subjectId:c,viewerData:u}){let m=Z(),f=Q(),h=J(r),p=(0,l.useMemo)(()=>({…r,…h}),[r,h]),g=(0,l.useMemo)(()=>!!p.isSelected,[p.isSelected]),x=”DELETION”!==r.type?”RIGHT”:”LEFT”,b=”RIGHT”===x?r.right:r.left,v=(0,E.oH)(b,x),{threads:y,annotations:j,commentsPreference:C}=(0,I.rP)(n,v??””),w=”HUNK”===p.type,N=(0,e2.IQ)(m,(0,e2.XU)(p.type),p.blobLineNumber),{currentHunk:S,nextHunk:L,previousHunk:D}=e9(p,a),_=(0,E.qX)(m,p,p),R=t&&(0,tq.Y)(p.text);d&&R&&(p=p.html?{…p,html:(0,a4.Gx)(p.html)??p.html}:{…p,text:(0,tq.TA)(p.text)});let A=”DELETION”===p.type;return(0,i.jsx)(“tr”,{className:”diff-line-row”,children:w?(0,i.jsx)(a3,{currentHunk:S,diffAnchor:m,diffLine:p,fileLineCount:f,isLeftSide:A,isSplit:!1,nextHunk:L,nextLine:s,previousHunk:D,prevLine:o}):(0,i.jsx)(aW,{annotationsAtPosition:j,commentsPreference:C,copilotChatReference:e,currentHunk:S,diffAnchor:m,diffLine:p,filePath:n,hasHiddenUnicodeCharacters:R,isLeftSide:A,isRowSelected:g,isSplit:!1,lineAnchor:N,nextHunk:L,previousHunk:D,rowId:_,subjectId:c,threadsAtPosition:y,viewerData:u})},_)});try{a9.displayName||(a9.displayName=”UnifiedDiffRow”)}catch{}let re=(0,l.memo)((0,a.GV)()?function(e){let t,n,a,s,l=(0,r.c)(21),{diffHasHiddenUnicodeCharacters:o,diffLines:d,fileAnchor:c,filePath:u,tableRef:m,showHiddenUnicode:f,copilotChatReference:h,subjectId:p,viewerData:g}=e;l[0]!==d?(t=te(d.map(rt)),l[0]=d,l[1]=t):t=l[1];let x=t,{addLineToSelection:b,clearSelectedLines:v,selectMultipleLines:y}=Y(),j=G();return l[2]!==b||l[3]!==v||l[4]!==c||l[5]!==j||l[6]!==y||l[7]!==d||l[8]!==m?(n={addLineToSelection:b,clearSelectedLines:v,containerRef:m,fileAnchor:c,getfirstLineSelectionOnDrag:j,isSplitDiff:!1,leftLines:d,selectMultipleLines:y,disabled:!1},l[2]=b,l[3]=v,l[4]=c,l[5]=j,l[6]=y,l[7]=d,l[8]=m,l[9]=n):n=l[9],tG(n),l[10]!==h||l[11]!==o||l[12]!==d||l[13]!==u||l[14]!==x||l[15]!==f||l[16]!==p||l[17]!==g?(a=d.map((e,t)=>{let n=d[t+1],a=d[t-1],r=`unified-diff-row-l:${e.left}-r:${e.right}-b:${e.blobLineNumber}`;return(0,i.jsx)(a9,{copilotChatReference:h,diffHasHiddenUnicodeCharacters:o,filePath:u,hunksData:x,currentDiffLine:e,nextDiffLine:n,prevDiffLine:a,showHiddenUnicode:f,subjectId:p,viewerData:g},r)}),l[10]=h,l[11]=o,l[12]=d,l[13]=u,l[14]=x,l[15]=f,l[16]=p,l[17]=g,l[18]=a):a=l[18],l[19]!==a?(s=(0,i.jsx)(i.Fragment,{children:a}),l[19]=a,l[20]=s):s=l[20],s}:function({diffHasHiddenUnicodeCharacters:e,diffLines:t,fileAnchor:n,filePath:a,tableRef:r,showHiddenUnicode:s,copilotChatReference:o,subjectId:d,viewerData:c}){let u=(0,l.useMemo)(()=>te(t.map(e=>e)),[t]),{addLineToSelection:m,clearSelectedLines:f,selectMultipleLines:h}=Y();return tG({addLineToSelection:m,clearSelectedLines:f,containerRef:r,fileAnchor:n,getfirstLineSelectionOnDrag:G(),isSplitDiff:!1,leftLines:t,selectMultipleLines:h,disabled:!1}),(0,i.jsx)(i.Fragment,{children:t.map((n,r)=>{let l=t[r+1],m=t[r-1],f=`unified-diff-row-l:${n.left}-r:${n.right}-b:${n.blobLineNumber}`;return(0,i.jsx)(a9,{copilotChatReference:o,diffHasHiddenUnicodeCharacters:e,filePath:a,hunksData:u,currentDiffLine:n,nextDiffLine:l,prevDiffLine:m,showHiddenUnicode:s,subjectId:d,viewerData:c},f)})})});try{re.displayName||(re.displayName=”UnifiedDiffLines”)}catch{}function rt(e){return e}let rn=”DiffLines-module__tableLayoutFixed–UBX7h”,ri=”DiffLines-module__compact–wxqBo”;var ra=n(60745),rr=n(73189);let rs=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(9),{showStartConversation:s,hasDraftComment:l,lineSpacingPreference:o,openStartConversationDialog:d,authorLogin:u,authorAvatarUrl:m}=e;return a[0]!==m||a[1]!==u||a[2]!==l||a[3]!==o||a[4]!==d||a[5]!==s?(t=s&&(0,i.jsx)(“div”,{“aria-hidden”:!1,className:(0,b.$)(“d-flex”,”flex-row”,ac),children:(0,i.jsx)(i.Fragment,{children:l?(0,i.jsx)(eI.Q,{“aria-label”:”Continue comment in progress”,size:”small”,className:(0,b.$)(“py-0″,”compact”===o?au:am,ap),onClick:d,children:(0,i.jsx)(ao,{lineSpacingPreference:o,authorAvatarUrl:m,authorLogin:u})}):(0,i.jsx)(eI.Q,{icon:c.PlusIcon,”aria-label”:”Add comment”,size:”small”,”data-add-comment-button”:!0,className:(0,b.$)(“fgColor-muted”,”bgColor-accent-emphasis”,”borderColor-accent-emphasis”,”fgColor-onEmphasis”,”px-0″,af,ap,ag),onClick:d})})}),a[0]=m,a[1]=u,a[2]=l,a[3]=o,a[4]=d,a[5]=s,a[6]=t):t=a[6],a[7]!==t?(n=(0,i.jsx)(i.Fragment,{children:t}),a[7]=t,a[8]=n):n=a[8],n}:function({showStartConversation:e,hasDraftComment:t,lineSpacingPreference:n,openStartConversationDialog:a,authorLogin:r,authorAvatarUrl:s}){return(0,i.jsx)(i.Fragment,{children:e&&(0,i.jsx)(“div”,{“aria-hidden”:!1,className:(0,b.$)(“d-flex”,”flex-row”,ac),children:(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)(eI.Q,{“aria-label”:”Continue comment in progress”,size:”small”,className:(0,b.$)(“py-0″,”compact”===n?au:am,ap),onClick:a,children:(0,i.jsx)(ao,{lineSpacingPreference:n,authorAvatarUrl:s,authorLogin:r})}):(0,i.jsx)(eI.Q,{icon:c.PlusIcon,”aria-label”:”Add comment”,size:”small”,”data-add-comment-button”:!0,className:(0,b.$)(“fgColor-muted”,”bgColor-accent-emphasis”,”borderColor-accent-emphasis”,”fgColor-onEmphasis”,”px-0″,af,ap,ag),onClick:a})})})})};try{rs.displayName||(rs.displayName=”SimpleAddCommentButton”)}catch{}let rl=(0,a.GV)()?function(e){let t,n,a,s,o,d,u,m,f=(0,r.c)(40),{showStartConversation:h,viewerData:p,openStartConversationDialog:g,threads:x,annotations:v,shouldDisplayMinimizedComments:y,diffAnchor:j,diffLine:C,isLeftSide:w,isSplit:N,nextHunk:S,previousHunk:L,currentHunk:D,copilotChatReference:I,handleCopyCode:_,shouldDisplayCollapseComments:R,toggleViewingMarkers:A}=e,[k,E]=(0,l.useState)(!1),T=(0,l.useRef)(null),O=x.reduce(ro,0),P=v.length,{commentsPreference:F,lineSpacingPreference:$}=p,M=O+P>0&&F===ip.sI.Collapsed;f[0]!==v.length||f[1]!==x.length||f[2]!==A?(t=e=>{(1===x.length||1===v.length)&&e.preventDefault(),A?.()},f[0]=v.length,f[1]=x.length,f[2]=A,f[3]=t):t=f[3];let B=t;return f[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,b.$)(“d-flex”,”flex-row”,ad),f[4]=n):n=f[4],f[5]!==k||f[6]!==v||f[7]!==B||f[8]!==$||f[9]!==y||f[10]!==x||f[11]!==M?(a=M&&y&&(0,i.jsx)(eI.Q,{“aria-expanded”:k,”aria-label”:”View comments”,size:”small”,className:(0,b.$)(“py-0″,”px-1”,ap),onClick:B,children:(0,i.jsx)(ik,{threads:x,annotations:v,lineSpacingPreference:$})}),f[5]=k,f[6]=v,f[7]=B,f[8]=$,f[9]=y,f[10]=x,f[11]=M,f[12]=a):a=f[12],f[13]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,b.$)(“fgColor-muted”,ah),f[13]=s):s=f[13],f[14]!==k?(o=(0,i.jsx)(eT.W.Anchor,{children:(0,i.jsx)(eI.Q,{ref:T,”aria-haspopup”:”true”,”aria-label”:”More actions”,icon:c.TriangleDownIcon,size:”small”,className:s,onClick:()=>E(!k)})}),f[14]=k,f[15]=o):o=f[15],f[16]!==v||f[17]!==I||f[18]!==D||f[19]!==j||f[20]!==C||f[21]!==_||f[22]!==w||f[23]!==N||f[24]!==S||f[25]!==g||f[26]!==L||f[27]!==R||f[28]!==h||f[29]!==x||f[30]!==A||f[31]!==p?(d=(0,i.jsx)(eT.W.Overlay,{width:”medium”,children:(0,i.jsx)(eO.l,{children:(0,i.jsx)(i0,{threads:x,annotations:v,currentHunk:D,diffAnchor:j,diffLine:C,shouldDisplayCollapseComments:R,copilotChatReference:I,showStartConversation:h,handleCopyCode:_,handleViewMarkersSelection:A,isLeftSide:w,isSplit:N,nextHunk:S,previousHunk:L,startConversationCurrentLine:g,startConversationWithSuggestedChange:g,viewerData:p})})}),f[16]=v,f[17]=I,f[18]=D,f[19]=j,f[20]=C,f[21]=_,f[22]=w,f[23]=N,f[24]=S,f[25]=g,f[26]=L,f[27]=R,f[28]=h,f[29]=x,f[30]=A,f[31]=p,f[32]=d):d=f[32],f[33]!==k||f[34]!==o||f[35]!==d?(u=(0,i.jsxs)(eT.W,{anchorRef:T,open:k,onOpenChange:rr.l,children:[o,d]}),f[33]=k,f[34]=o,f[35]=d,f[36]=u):u=f[36],f[37]!==a||f[38]!==u?(m=(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(“div”,{“aria-hidden”:!1,className:n,children:(0,i.jsxs)(iI.A,{className:ax,children:[a,u]})})}),f[37]=a,f[38]=u,f[39]=m):m=f[39],m}:function({showStartConversation:e,viewerData:t,openStartConversationDialog:n,threads:a,annotations:r,shouldDisplayMinimizedComments:s,diffAnchor:o,diffLine:d,isLeftSide:u,isSplit:m,nextHunk:f,previousHunk:h,currentHunk:p,copilotChatReference:g,handleCopyCode:x,shouldDisplayCollapseComments:v,toggleViewingMarkers:y}){let[j,C]=(0,l.useState)(!1),w=(0,l.useRef)(null),N=a.reduce((e,t)=>e+(t.commentsData?.comments.length??0),0),S=r.length,{commentsPreference:L,lineSpacingPreference:D}=t,I=N+S>0&&L===ip.sI.Collapsed,_=(0,l.useCallback)(e=>{(1===a.length||1===r.length)&&e.preventDefault(),y?.()},[r.length,a.length,y]);return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(“div”,{“aria-hidden”:!1,className:(0,b.$)(“d-flex”,”flex-row”,ad),children:(0,i.jsxs)(iI.A,{className:ax,children:[I&&s&&(0,i.jsx)(eI.Q,{“aria-expanded”:j,”aria-label”:”View comments”,size:”small”,className:(0,b.$)(“py-0″,”px-1″,ap),onClick:_,children:(0,i.jsx)(ik,{threads:a,annotations:r,lineSpacingPreference:D})}),(0,i.jsxs)(eT.W,{anchorRef:w,open:j,onOpenChange:rr.l,children:[(0,i.jsx)(eT.W.Anchor,{children:(0,i.jsx)(eI.Q,{ref:w,”aria-haspopup”:”true”,”aria-label”:”More actions”,icon:c.TriangleDownIcon,size:”small”,className:(0,b.$)(“fgColor-muted”,ah),onClick:()=>C(!j)})}),(0,i.jsx)(eT.W.Overlay,{width:”medium”,children:(0,i.jsx)(eO.l,{children:(0,i.jsx)(i0,{threads:a,annotations:r,currentHunk:p,diffAnchor:o,diffLine:d,shouldDisplayCollapseComments:v,copilotChatReference:g,showStartConversation:e,handleCopyCode:x,handleViewMarkersSelection:y,isLeftSide:u,isSplit:m,nextHunk:f,previousHunk:h,startConversationCurrentLine:n,startConversationWithSuggestedChange:n,viewerData:t})})})]})]})})})};function ro(e,t){return e+(t.commentsData?.comments.length??0)}try{rl.displayName||(rl.displayName=”SimpleContextMenu”)}catch{}let rd=(0,l.forwardRef)((0,a.GV)()?function(e,t){let n,a,s,l=(0,r.c)(28),{annotations:o,authorAvatarUrl:d,authorLogin:c,copilotChatReference:u,currentHunk:m,diffAnchor:f,diffLine:h,hasDraftComment:p,handleCopyCode:g,isLeftSide:x,isSplit:b,nextHunk:v,previousHunk:y,shouldDisplayCollapseComments:j,shouldDisplayMinimizedComments:C,showStartConversation:w,threads:N,toggleViewingMarkers:S,viewerData:L,openStartConversationDialog:D}=e;l[0]!==d||l[1]!==c||l[2]!==p||l[3]!==D||l[4]!==w||l[5]!==L.lineSpacingPreference?(n=(0,i.jsx)(rs,{showStartConversation:w,hasDraftComment:p,lineSpacingPreference:L.lineSpacingPreference,openStartConversationDialog:D,authorLogin:c,authorAvatarUrl:d}),l[0]=d,l[1]=c,l[2]=p,l[3]=D,l[4]=w,l[5]=L.lineSpacingPreference,l[6]=n):n=l[6];let I=C??!1;return l[7]!==o||l[8]!==u||l[9]!==m||l[10]!==f||l[11]!==h||l[12]!==g||l[13]!==x||l[14]!==b||l[15]!==v||l[16]!==D||l[17]!==y||l[18]!==j||l[19]!==w||l[20]!==I||l[21]!==N||l[22]!==S||l[23]!==L?(a=(0,i.jsx)(rl,{showStartConversation:w,viewerData:L,openStartConversationDialog:D,threads:N,annotations:o,shouldDisplayMinimizedComments:I,diffAnchor:f,diffLine:h,isLeftSide:x,isSplit:b,nextHunk:v,previousHunk:y,currentHunk:m,copilotChatReference:u,handleCopyCode:g,shouldDisplayCollapseComments:j,toggleViewingMarkers:S}),l[7]=o,l[8]=u,l[9]=m,l[10]=f,l[11]=h,l[12]=g,l[13]=x,l[14]=b,l[15]=v,l[16]=D,l[17]=y,l[18]=j,l[19]=w,l[20]=I,l[21]=N,l[22]=S,l[23]=L,l[24]=a):a=l[24],l[25]!==n||l[26]!==a?(s=(0,i.jsxs)(i.Fragment,{children:[n,a]}),l[25]=n,l[26]=a,l[27]=s):s=l[27],s}:function({annotations:e,authorAvatarUrl:t,authorLogin:n,copilotChatReference:a,currentHunk:r,diffAnchor:s,diffLine:l,hasDraftComment:o,handleCopyCode:d,isLeftSide:c,isSplit:u,nextHunk:m,previousHunk:f,shouldDisplayCollapseComments:h,shouldDisplayMinimizedComments:p,showStartConversation:g,threads:x,toggleViewingMarkers:b,viewerData:v,openStartConversationDialog:y},j){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(rs,{showStartConversation:g,hasDraftComment:o,lineSpacingPreference:v.lineSpacingPreference,openStartConversationDialog:y,authorLogin:n,authorAvatarUrl:t}),(0,i.jsx)(rl,{showStartConversation:g,viewerData:v,openStartConversationDialog:y,threads:x,annotations:e,shouldDisplayMinimizedComments:p??!1,diffAnchor:s,diffLine:l,isLeftSide:c,isSplit:u,nextHunk:m,previousHunk:f,currentHunk:r,copilotChatReference:a,handleCopyCode:d,shouldDisplayCollapseComments:h,toggleViewingMarkers:b})]})});rd.displayName=”ActionBar”;let rc=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f=(0,r.c)(43),{diffLine:h,filePath:p,avatarURL:g,userLogin:x,viewerCanApplySuggestion:v}=e,y=”HUNK”===h.type,j=”ADDITION”!==h.type,C=”DELETION”!==h.type,w=Z();if(f[0]!==w||f[1]!==h){let e=(0,E.qX)(w,h,h);t=(0,E.u6)(e,2),f[0]=w,f[1]=h,f[2]=t}else t=f[2];let N=t,S=g??””,L=x??””,D=v??!1;f[3]!==S||f[4]!==L||f[5]!==D?(n={avatarUrl:S,login:L,viewerCanApplySuggestion:D},f[3]=S,f[4]=L,f[5]=D,f[6]=n):n=f[6];let _=n;f[7]!==h.type?(a=(0,E.Yf)(h.type,!0,!1),f[7]=h.type,f[8]=a):a=f[8];let R=a;f[9]!==h.type?(s=(0,E.Yf)(h.type,!1,!1),f[9]=h.type,f[10]=s):s=f[10];let A=s;f[11]!==h.html||f[12]!==h.type?(o=(0,E.x_)(h.html,h.type),f[11]=h.html,f[12]=h.type,f[13]=o):o=f[13];let[k,T]=o;f[14]!==T?(d=T&&[“+”,”-“].includes(T),f[14]=T,f[15]=d):d=f[15];let O=d,[P,F]=(0,l.useState)(!1),[$,M]=(0,l.useState)(!1),B=”DELETION”!==h.type?”RIGHT”:”LEFT”,V=”RIGHT”===B?h.right:h.left;f[16]!==V||f[17]!==B?(c=(0,E.oH)(V,B),f[16]=V,f[17]=B,f[18]=c):c=f[18];let U=c,{threads:G,annotations:H,commentsPreference:q}=(0,I.rP)(p,U??””),z=G.length+H.length!==0&&q===ip.sI.Collapsed;f[19]!==z?(u=(0,E.S4)({hasThreads:z}),f[19]=z,f[20]=u):u=f[20];let K=u,W=(0,l.useRef)(null),Q=(0,l.useRef)(null),[X,J]=(0,l.useState)(G.length>0||H.length>0);return f[21]!==H||f[22]!==N||f[23]!==A||f[24]!==K||f[25]!==w||f[26]!==h||f[27]!==p||f[28]!==$||f[29]!==y||f[30]!==P||f[31]!==k||f[32]!==U||f[33]!==R||f[34]!==B||f[35]!==T||f[36]!==X||f[37]!==j||f[38]!==O||f[39]!==C||f[40]!==G||f[41]!==_?(m=(0,i.jsx)(“tr”,{className:”diff-line-row”,children:y?(0,i.jsx)(“td”,{colSpan:4,className:”flex-grow-0 bgColor-accent-muted”,children:(0,i.jsx)(“div”,{className:”d-flex flex-row”,children:(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(eZ.$6,{className:”diff-text-inner color-fg-muted”,html:h.html})})})}):(0,i.jsxs)(i.Fragment,{children:[j?(0,i.jsx)(“td”,{className:”text-center v-align-top”,style:{backgroundColor:R},children:(0,i.jsx)(“code”,{children:h.left})}):(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:R}}),C?(0,i.jsx)(“td”,{className:”text-center v-align-top”,style:{backgroundColor:R},children:(0,i.jsx)(“code”,{children:h.right})}):(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:R}}),(0,i.jsxs)(“td”,{className:”diff-text-cell”,style:{backgroundColor:A},onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:[(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===h.type,deletion:”DELETION”===h.type}),children:[O&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:T}),(0,i.jsx)(eZ.$6,{html:k,className:”diff-text-inner”})]}),X?(0,i.jsx)(io,{diffLine:h,gridCellId:N,gutterSizeOffset:K,inlineMarkersRef:W,cellRef:Q,fileAnchor:w,dispatchMarkersStatus:rr.l,lineMarkersKey:U,annotations:H,conversationListThreads:G,filePath:p,onCloseFocusMode:rr.l,isRowSelected:!1,lineType:h.type,viewerData:_,onCloseConversationList:rr.l,onDeleteLineComment:rr.l,children:P&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(G.length,”mt-2 mb-1″)),children:(0,i.jsx)(nu,{diffLine:h,diffAnchor:w,batchingEnabled:!0,filePath:p,focusOnMount:!0,isLeftSide:”LEFT”===B,isInDialogMode:!1,isOpen:P,lineNumber:h.blobLineNumber,viewerData:_,onCloseCommentDialog:()=>F(!1)})})}):null,$&&(0,i.jsx)(rd,{openStartConversationDialog:()=>{F(!0),J(!0)},authorAvatarUrl:”undefined”,authorLogin:”undefined”,ref:Q,copilotChatReference:void 0,currentHunk:void 0,diffAnchor:w,diffLine:h,threads:G,annotations:H,handleCopyCode:rr.l,hasDraftComment:!1,isLeftSide:”LEFT”===B,isSplit:!1,nextHunk:void 0,previousHunk:void 0,showStartConversation:!0,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:rr.l,viewerData:{avatarUrl:”string”,diffViewPreference:”string”,lineSpacingPreference:”compact”,login:”string”,shouldDisplayComments:!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:!0,viewerCanApplySuggestion:!0}})]})]})}),f[21]=H,f[22]=N,f[23]=A,f[24]=K,f[25]=w,f[26]=h,f[27]=p,f[28]=$,f[29]=y,f[30]=P,f[31]=k,f[32]=U,f[33]=R,f[34]=B,f[35]=T,f[36]=X,f[37]=j,f[38]=O,f[39]=C,f[40]=G,f[41]=_,f[42]=m):m=f[42],m}:function({diffLine:e,filePath:t,avatarURL:n,userLogin:a,viewerCanApplySuggestion:r}){let s=”HUNK”===e.type,o=”ADDITION”!==e.type,d=”DELETION”!==e.type,c=Z(),u=(0,E.qX)(c,e,e),m=(0,E.u6)(u,2),f={avatarUrl:n??””,login:a??””,viewerCanApplySuggestion:r??!1},h=(0,E.Yf)(e.type,!0,!1),p=(0,E.Yf)(e.type,!1,!1),[g,x]=(0,E.x_)(e.html,e.type),v=x&&[“+”,”-“].includes(x),[y,j]=(0,l.useState)(!1),[C,w]=(0,l.useState)(!1),N=”DELETION”!==e.type?”RIGHT”:”LEFT”,S=”RIGHT”===N?e.right:e.left,L=(0,E.oH)(S,N),{threads:D,annotations:_,commentsPreference:R}=(0,I.rP)(t,L??””),A=D.length+_.length!==0,k=(0,E.S4)({hasThreads:A&&R===ip.sI.Collapsed}),T=(0,l.useRef)(null),O=(0,l.useRef)(null),[P,F]=(0,l.useState)(D.length>0||_.length>0);return(0,i.jsx)(“tr”,{className:”diff-line-row”,children:s?(0,i.jsx)(“td”,{colSpan:4,className:”flex-grow-0 bgColor-accent-muted”,children:(0,i.jsx)(“div”,{className:”d-flex flex-row”,children:(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(eZ.$6,{className:”diff-text-inner color-fg-muted”,html:e.html})})})}):(0,i.jsxs)(i.Fragment,{children:[o?(0,i.jsx)(“td”,{className:”text-center v-align-top”,style:{backgroundColor:h},children:(0,i.jsx)(“code”,{children:e.left})}):(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:h}}),d?(0,i.jsx)(“td”,{className:”text-center v-align-top”,style:{backgroundColor:h},children:(0,i.jsx)(“code”,{children:e.right})}):(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:h}}),(0,i.jsxs)(“td”,{className:”diff-text-cell”,style:{backgroundColor:p},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===e.type,deletion:”DELETION”===e.type}),children:[v&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:x}),(0,i.jsx)(eZ.$6,{html:g,className:”diff-text-inner”})]}),P?(0,i.jsx)(io,{diffLine:e,gridCellId:m,gutterSizeOffset:k,inlineMarkersRef:T,cellRef:O,fileAnchor:c,dispatchMarkersStatus:rr.l,lineMarkersKey:L,annotations:_,conversationListThreads:D,filePath:t,onCloseFocusMode:rr.l,isRowSelected:!1,lineType:e.type,viewerData:f,onCloseConversationList:rr.l,onDeleteLineComment:rr.l,children:y&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(D.length,”mt-2 mb-1″)),children:(0,i.jsx)(nu,{diffLine:e,diffAnchor:c,batchingEnabled:!0,filePath:t,focusOnMount:!0,isLeftSide:”LEFT”===N,isInDialogMode:!1,isOpen:y,lineNumber:e.blobLineNumber,viewerData:f,onCloseCommentDialog:()=>j(!1)})})}):null,C&&(0,i.jsx)(rd,{openStartConversationDialog:()=>{j(!0),F(!0)},authorAvatarUrl:”undefined”,authorLogin:”undefined”,ref:O,copilotChatReference:void 0,currentHunk:void 0,diffAnchor:c,diffLine:e,threads:D,annotations:_,handleCopyCode:rr.l,hasDraftComment:!1,isLeftSide:”LEFT”===N,isSplit:!1,nextHunk:void 0,previousHunk:void 0,showStartConversation:!0,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:rr.l,viewerData:{avatarUrl:”string”,diffViewPreference:”string”,lineSpacingPreference:”compact”,login:”string”,shouldDisplayComments:!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:!0,viewerCanApplySuggestion:!0}})]})]})})};try{rc.displayName||(rc.displayName=”SimpleUnifiedDiffRow”)}catch{}function ru({diffLines:e,filePath:t,avatarURL:n,userLogin:a,viewerCanApplySuggestion:r}){return e.map(e=>{let s=`unified-diff-row-l:${e.left}-r:${e.right}-b:${e.blobLineNumber}`;return(0,i.jsx)(rc,{diffLine:e,filePath:t,avatarURL:n,userLogin:a,viewerCanApplySuggestion:r},s)})}try{ru.displayName||(ru.displayName=”SimpleUnifiedDiffLines”)}catch{}let rm=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f,h,p,g,x,v,y,j=(0,r.c)(68),{leftDiffLine:C,rightDiffLine:w,filePath:N,avatarURL:S,userLogin:L,viewerCanApplySuggestion:D}=e,_=C?.type===”HUNK”,R=Z();j[0]!==C?(t=C?(0,E.Yf)(C.type,!0,!1):””,j[0]=C,j[1]=t):t=j[1];let A=t;j[2]!==w?(n=w?(0,E.Yf)(w.type,!0,!1):””,j[2]=w,j[3]=n):n=j[3];let k=n;j[4]!==C?(a=C?(0,E.Yf)(C.type,!1,!1):””,j[4]=C,j[5]=a):a=j[5];let T=a;j[6]!==w?(s=w?(0,E.Yf)(w.type,!1,!1):””,j[6]=w,j[7]=s):s=j[7];let O=s;if(j[8]!==R||j[9]!==C||j[10]!==w){let e=C?(0,E.qX)(R,C,w):””;o=(0,E.u6)(e,1),d=(0,E.u6)(e,3),j[8]=R,j[9]=C,j[10]=w,j[11]=o,j[12]=d}else o=j[11],d=j[12];let P=d;j[13]!==C?(c=C?(0,E.x_)(C.html,C.type):[void 0,void 0],j[13]=C,j[14]=c):c=j[14];let[F,$]=c;j[15]!==$?(u=$&&[“+”,”-“].includes($),j[15]=$,j[16]=u):u=j[16];let M=u;j[17]!==w?(m=w?(0,E.x_)(w.html,w.type):[void 0,void 0],j[17]=w,j[18]=m):m=j[18];let[B,V]=m;j[19]!==V?(f=V&&[“+”,”-“].includes(V),j[19]=V,j[20]=f):f=j[20];let U=f;j[21]!==C?(h=C?(0,E.oH)(C.left,”LEFT”):void 0,j[21]=C,j[22]=h):h=j[22];let G=h,{threads:H,annotations:q}=(0,I.rP)(N,G??””),z=S??””,K=L??””,W=D??!1;j[23]!==z||j[24]!==K||j[25]!==W?(p={avatarUrl:z,login:K,viewerCanApplySuggestion:W},j[23]=z,j[24]=K,j[25]=W,j[26]=p):p=j[26];let Q=p;j[27]!==w?(g=w?(0,E.oH)(w.right,”RIGHT”):void 0,j[27]=w,j[28]=g):g=j[28];let X=g,{threads:J,annotations:Y,commentsPreference:ee}=(0,I.rP)(N,X??””),[et,en]=(0,l.useState)(!1),[ei,ea]=(0,l.useState)(!1),[er,es]=(0,l.useState)(!1),[el,eo]=(0,l.useState)(!1),[ed,ec]=(0,l.useState)(H.length>0||q.length>0),[eu,em]=(0,l.useState)(J.length>0||Y.length>0),ef=H.length+q.length!==0,eh=J.length+Y.length!==0,ep=ef&&ee===ip.sI.Collapsed;j[29]!==ep?(x=(0,E.S4)({hasThreads:ep}),j[29]=ep,j[30]=x):x=j[30];let eg=x,ex=eh&&ee===ip.sI.Collapsed;j[31]!==ex?(v=(0,E.S4)({hasThreads:ex}),j[31]=ex,j[32]=v):v=j[32];let eb=v,ev=(0,l.useRef)(null),ey=(0,l.useRef)(null);return j[33]!==S||j[34]!==R||j[35]!==N||j[36]!==_||j[37]!==ei||j[38]!==et||j[39]!==el||j[40]!==er||j[41]!==q||j[42]!==o||j[43]!==T||j[44]!==eg||j[45]!==C||j[46]!==F||j[47]!==G||j[48]!==A||j[49]!==$||j[50]!==H||j[51]!==Y||j[52]!==P||j[53]!==O||j[54]!==eb||j[55]!==w||j[56]!==B||j[57]!==X||j[58]!==k||j[59]!==V||j[60]!==J||j[61]!==ed||j[62]!==M||j[63]!==eu||j[64]!==U||j[65]!==L||j[66]!==Q?(y=(0,i.jsx)(“tr”,{className:”diff-line-row”,children:_?(0,i.jsx)(“td”,{colSpan:4,className:”flex-grow-0 bgColor-accent-muted”,children:(0,i.jsx)(“div”,{className:”d-flex flex-row”,children:(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(eZ.$6,{className:”diff-text-inner color-fg-muted”,html:C.html})})})}):(0,i.jsxs)(i.Fragment,{children:[C?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”text-center v-align-top”,style:{backgroundColor:A},children:(0,i.jsx)(“code”,{children:C.left})}),(0,i.jsxs)(“td”,{className:”diff-text-cell”,style:{backgroundColor:T},onMouseEnter:()=>ea(!0),onMouseLeave:()=>ea(!1),children:[(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===C.type,deletion:”DELETION”===C.type}),children:[M&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:$}),(0,i.jsx)(eZ.$6,{html:F,className:”diff-text-inner”})]}),ed&&(0,i.jsx)(io,{diffLine:C,gridCellId:o,gutterSizeOffset:eg,inlineMarkersRef:ev,cellRef:ey,fileAnchor:R,dispatchMarkersStatus:rr.l,lineMarkersKey:G,annotations:q,conversationListThreads:H,filePath:N,onCloseFocusMode:rr.l,isRowSelected:!1,lineType:C.type,onCloseConversationList:rr.l,onDeleteLineComment:rr.l,viewerData:Q,children:et&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nu,{diffLine:C,diffAnchor:R,batchingEnabled:!0,filePath:N,focusOnMount:!1,isLeftSide:!0,isInDialogMode:!1,isOpen:!0,lineNumber:C.left??void 0,viewerData:Q,onCloseCommentDialog:()=>en(!1)})})}),ei&&(0,i.jsx)(rd,{openStartConversationDialog:()=>{en(!0),ec(!0)},authorAvatarUrl:”undefined”,authorLogin:”undefined”,ref:ey,copilotChatReference:void 0,currentHunk:void 0,diffAnchor:R,diffLine:C,threads:H,annotations:q,handleCopyCode:rr.l,hasDraftComment:!1,isLeftSide:!0,isSplit:!1,nextHunk:void 0,previousHunk:void 0,showStartConversation:!0,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:rr.l,viewerData:{avatarUrl:”string”,diffViewPreference:”string”,lineSpacingPreference:”compact”,login:”string”,shouldDisplayComments:!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:!0,viewerCanApplySuggestion:!0}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:A}}),(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:A}})]}),w?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”text-center v-align-top”,style:{backgroundColor:k},children:(0,i.jsx)(“code”,{children:w.right})}),(0,i.jsxs)(“td”,{className:”diff-text-cell”,style:{backgroundColor:O},onMouseEnter:()=>eo(!0),onMouseLeave:()=>eo(!1),children:[(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===w.type,deletion:”DELETION”===w.type}),children:[U&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:V}),(0,i.jsx)(eZ.$6,{html:B,className:”diff-text-inner”})]}),eu&&(0,i.jsx)(io,{diffLine:w,gridCellId:P,gutterSizeOffset:eb,inlineMarkersRef:ev,cellRef:ey,fileAnchor:R,dispatchMarkersStatus:rr.l,lineMarkersKey:X,annotations:Y,conversationListThreads:J,filePath:N,viewerData:Q,onCloseFocusMode:rr.l,isRowSelected:!1,lineType:w.type,onCloseConversationList:rr.l,onDeleteLineComment:rr.l,children:er&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nu,{diffLine:w,diffAnchor:R,batchingEnabled:!0,filePath:N,focusOnMount:!1,isLeftSide:!1,isInDialogMode:!1,isOpen:!0,lineNumber:w.right??void 0,viewerData:{avatarUrl:S??””,login:L??””},onCloseCommentDialog:()=>es(!1)})})}),el&&(0,i.jsx)(rd,{openStartConversationDialog:()=>{es(!0),em(!0)},authorAvatarUrl:”undefined”,authorLogin:”undefined”,ref:ey,copilotChatReference:void 0,currentHunk:void 0,diffAnchor:”diff-blah”,diffLine:w,threads:J,annotations:Y,handleCopyCode:rr.l,hasDraftComment:!1,isLeftSide:!1,isSplit:!1,nextHunk:void 0,previousHunk:void 0,showStartConversation:!0,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:rr.l,viewerData:{avatarUrl:”string”,diffViewPreference:”string”,lineSpacingPreference:”compact”,login:”string”,shouldDisplayComments:!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:!0,viewerCanApplySuggestion:!0}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:k}}),(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:k}})]})]})}),j[33]=S,j[34]=R,j[35]=N,j[36]=_,j[37]=ei,j[38]=et,j[39]=el,j[40]=er,j[41]=q,j[42]=o,j[43]=T,j[44]=eg,j[45]=C,j[46]=F,j[47]=G,j[48]=A,j[49]=$,j[50]=H,j[51]=Y,j[52]=P,j[53]=O,j[54]=eb,j[55]=w,j[56]=B,j[57]=X,j[58]=k,j[59]=V,j[60]=J,j[61]=ed,j[62]=M,j[63]=eu,j[64]=U,j[65]=L,j[66]=Q,j[67]=y):y=j[67],y}:function({leftDiffLine:e,rightDiffLine:t,filePath:n,avatarURL:a,userLogin:r,viewerCanApplySuggestion:s}){let o=e?.type===”HUNK”,d=Z(),c=e?(0,E.Yf)(e.type,!0,!1):””,u=t?(0,E.Yf)(t.type,!0,!1):””,m=e?(0,E.Yf)(e.type,!1,!1):””,f=t?(0,E.Yf)(t.type,!1,!1):””,h=e?(0,E.qX)(d,e,t):””,p=(0,E.u6)(h,1),g=(0,E.u6)(h,3),[x,v]=e?(0,E.x_)(e.html,e.type):[void 0,void 0],y=v&&[“+”,”-“].includes(v),[j,C]=t?(0,E.x_)(t.html,t.type):[void 0,void 0],w=C&&[“+”,”-“].includes(C),N=e?(0,E.oH)(e.left,”LEFT”):void 0,{threads:S,annotations:L}=(0,I.rP)(n,N??””),D={avatarUrl:a??””,login:r??””,viewerCanApplySuggestion:s??!1},_=t?(0,E.oH)(t.right,”RIGHT”):void 0,{threads:R,annotations:A,commentsPreference:k}=(0,I.rP)(n,_??””),[T,O]=(0,l.useState)(!1),[P,F]=(0,l.useState)(!1),[$,M]=(0,l.useState)(!1),[B,V]=(0,l.useState)(!1),[U,G]=(0,l.useState)(S.length>0||L.length>0),[H,q]=(0,l.useState)(R.length>0||A.length>0),z=S.length+L.length!==0,K=R.length+A.length!==0,W=(0,E.S4)({hasThreads:z&&k===ip.sI.Collapsed}),Q=(0,E.S4)({hasThreads:K&&k===ip.sI.Collapsed}),X=(0,l.useRef)(null),J=(0,l.useRef)(null);return(0,i.jsx)(“tr”,{className:”diff-line-row”,children:o?(0,i.jsx)(“td”,{colSpan:4,className:”flex-grow-0 bgColor-accent-muted”,children:(0,i.jsx)(“div”,{className:”d-flex flex-row”,children:(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(eZ.$6,{className:”diff-text-inner color-fg-muted”,html:e.html})})})}):(0,i.jsxs)(i.Fragment,{children:[e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”text-center v-align-top”,style:{backgroundColor:c},children:(0,i.jsx)(“code”,{children:e.left})}),(0,i.jsxs)(“td”,{className:”diff-text-cell”,style:{backgroundColor:m},onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:[(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===e.type,deletion:”DELETION”===e.type}),children:[y&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:v}),(0,i.jsx)(eZ.$6,{html:x,className:”diff-text-inner”})]}),U&&(0,i.jsx)(io,{diffLine:e,gridCellId:p,gutterSizeOffset:W,inlineMarkersRef:X,cellRef:J,fileAnchor:d,dispatchMarkersStatus:rr.l,lineMarkersKey:N,annotations:L,conversationListThreads:S,filePath:n,onCloseFocusMode:rr.l,isRowSelected:!1,lineType:e.type,onCloseConversationList:rr.l,onDeleteLineComment:rr.l,viewerData:D,children:T&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nu,{diffLine:e,diffAnchor:d,batchingEnabled:!0,filePath:n,focusOnMount:!1,isLeftSide:!0,isInDialogMode:!1,isOpen:!0,lineNumber:e.left??void 0,viewerData:D,onCloseCommentDialog:()=>O(!1)})})}),P&&(0,i.jsx)(rd,{openStartConversationDialog:()=>{O(!0),G(!0)},authorAvatarUrl:”undefined”,authorLogin:”undefined”,ref:J,copilotChatReference:void 0,currentHunk:void 0,diffAnchor:d,diffLine:e,threads:S,annotations:L,handleCopyCode:rr.l,hasDraftComment:!1,isLeftSide:!0,isSplit:!1,nextHunk:void 0,previousHunk:void 0,showStartConversation:!0,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:rr.l,viewerData:{avatarUrl:”string”,diffViewPreference:”string”,lineSpacingPreference:”compact”,login:”string”,shouldDisplayComments:!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:!0,viewerCanApplySuggestion:!0}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:c}}),(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:c}})]}),t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”text-center v-align-top”,style:{backgroundColor:u},children:(0,i.jsx)(“code”,{children:t.right})}),(0,i.jsxs)(“td”,{className:”diff-text-cell”,style:{backgroundColor:f},onMouseEnter:()=>V(!0),onMouseLeave:()=>V(!1),children:[(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===t.type,deletion:”DELETION”===t.type}),children:[w&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:C}),(0,i.jsx)(eZ.$6,{html:j,className:”diff-text-inner”})]}),H&&(0,i.jsx)(io,{diffLine:t,gridCellId:g,gutterSizeOffset:Q,inlineMarkersRef:X,cellRef:J,fileAnchor:d,dispatchMarkersStatus:rr.l,lineMarkersKey:_,annotations:A,conversationListThreads:R,filePath:n,viewerData:D,onCloseFocusMode:rr.l,isRowSelected:!1,lineType:t.type,onCloseConversationList:rr.l,onDeleteLineComment:rr.l,children:$&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nu,{diffLine:t,diffAnchor:d,batchingEnabled:!0,filePath:n,focusOnMount:!1,isLeftSide:!1,isInDialogMode:!1,isOpen:!0,lineNumber:t.right??void 0,viewerData:{avatarUrl:a??””,login:r??””},onCloseCommentDialog:()=>M(!1)})})}),B&&(0,i.jsx)(rd,{openStartConversationDialog:()=>{M(!0),q(!0)},authorAvatarUrl:”undefined”,authorLogin:”undefined”,ref:J,copilotChatReference:void 0,currentHunk:void 0,diffAnchor:”diff-blah”,diffLine:t,threads:R,annotations:A,handleCopyCode:rr.l,hasDraftComment:!1,isLeftSide:!1,isSplit:!1,nextHunk:void 0,previousHunk:void 0,showStartConversation:!0,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:rr.l,viewerData:{avatarUrl:”string”,diffViewPreference:”string”,lineSpacingPreference:”compact”,login:”string”,shouldDisplayComments:!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:!0,viewerCanApplySuggestion:!0}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:u}}),(0,i.jsx)(“td”,{style:{userSelect:”none”,position:”relative”,backgroundColor:u}})]})]})})};try{rm.displayName||(rm.displayName=”SimpleSplitDiffRow”)}catch{}function rf(e){let t=[],n=[],i=()=>{for(;t.lengthrf(e),[e]);return{leftLines:t,rightLines:n}},rp=(0,a.GV)()?function(e){let t,n=(0,r.c)(7),{diffLines:a,filePath:s,avatarURL:l,userLogin:o,viewerCanApplySuggestion:d}=e,{leftLines:c,rightLines:u}=rh(a);return n[0]!==l||n[1]!==s||n[2]!==c||n[3]!==u||n[4]!==o||n[5]!==d?(t=c.map((e,t)=>{let n=c[t],a=u[t],r=`${(0,E.Po)(n)||!n?`empty-left-diff-${t}`:n.blobLineNumber}-${(0,E.Po)(a)||!a?`empty-right-diff-${t}`:a.blobLineNumber}`;return(0,i.jsx)(rm,{leftDiffLine:n,rightDiffLine:a,filePath:s,avatarURL:l,userLogin:o,viewerCanApplySuggestion:d},r)}),n[0]=l,n[1]=s,n[2]=c,n[3]=u,n[4]=o,n[5]=d,n[6]=t):t=n[6],t}:function({diffLines:e,filePath:t,avatarURL:n,userLogin:a,viewerCanApplySuggestion:r}){let{leftLines:s,rightLines:l}=rh(e);return s.map((e,o)=>{let d=s[o],c=l[o],u=`${(0,E.Po)(d)||!d?`empty-left-diff-${o}`:d.blobLineNumber}-${(0,E.Po)(c)||!c?`empty-right-diff-${o}`:c.blobLineNumber}`;return(0,i.jsx)(rm,{leftDiffLine:d,rightDiffLine:c,filePath:t,avatarURL:n,userLogin:a,viewerCanApplySuggestion:r},u)})};try{rp.displayName||(rp.displayName=”SimpleSplitDiffLines”)}catch{}let rg=(0,a.GV)()?function(e){let t,n=(0,r.c)(3),{diffAnchor:a,children:s}=e;return n[0]!==s||n[1]!==a?(t=(0,i.jsx)(“div”,{className:”fgColor-muted p-2″,”data-diff-anchor”:a,children:s}),n[0]=s,n[1]=a,n[2]=t):t=n[2],t}:function({diffAnchor:e,children:t}){return(0,i.jsx)(“div”,{className:”fgColor-muted p-2″,”data-diff-anchor”:e,children:t})},rx=(0,l.memo)((0,a.GV)()?function(e){let t,n=(0,r.c)(39),{diffEntryData:a,diffLinesManuallyUnhidden:s,baseHelpUrl:l,onHandleLoadDiff:o,copilotChatReference:d,hasExpandedAllRanges:c,isSplitView:u,subjectId:m,viewerData:f}=e,h=`diff-${a.pathDigest}`;if(a.isBinary){let e;return n[0]!==h?(e=(0,i.jsx)(rg,{diffAnchor:h,children:”Binary file not shown.”}),n[0]=h,n[1]=e):e=n[1],e}if((0,e0.dK)(a)){let e;return n[2]!==h?(e=(0,i.jsx)(rg,{diffAnchor:h,children:”File renamed without changes.”}),n[2]=h,n[3]=e):e=n[3],e}if((0,e0.Jc)(a)){let e;return n[4]!==h?(e=(0,i.jsx)(rg,{diffAnchor:h,children:”File copied without changes.”}),n[4]=h,n[5]=e):e=n[5],e}if((0,e0.Sn)(a,a.status,a.oldTreeEntry?.mode,a.newTreeEntry?.mode)){let e;return n[6]!==h?(e=(0,i.jsx)(rg,{diffAnchor:h,children:”File mode changed.”}),n[6]=h,n[7]=e):e=n[7],e}if(!s&&(0,e0.HI)(a)){let e,t,r=a.truncatedReason;return n[8]!==r?(e=(0,e0.l_)(r),n[8]=r,n[9]=e):e=n[9],n[10]!==h||n[11]!==o||n[12]!==e?(t=(0,i.jsx)(e6,{diffAnchor:h,onLoadDiff:o,children:e}),n[10]=h,n[11]=o,n[12]=e,n[13]=t):t=n[13],t}if((0,e0.s8)(a)){let e;return n[14]!==h?(e=(0,i.jsx)(rg,{diffAnchor:h,children:”Whitespace-only changes.”}),n[14]=h,n[15]=e):e=n[15],e}if(!s&&(0,e0.lO)(a)){let e;return n[16]!==h||n[17]!==o?(e=(0,i.jsx)(e6,{diffAnchor:h,onLoadDiff:o,children:”This file was deleted.”}),n[16]=h,n[17]=o,n[18]=e):e=n[18],e}if(!s&&(0,e0.xW)(a)){let e,t=`${l}/github/administering-a-repository/customizing-how-changed-files-appear-on-github`;return n[19]!==h||n[20]!==o||n[21]!==t?(e=(0,i.jsxs)(e6,{diffAnchor:h,helpText:”customizing how changed files appear on GitHub.”,helpUrl:t,onLoadDiff:o,children:[“Some generated files are not rendered by default. Learn more about”,” “]}),n[19]=h,n[20]=o,n[21]=t,n[22]=e):e=n[22],e}if(a.isTooBig&&0===a.diffLines.length)if(s){let e,t,a=`${l}/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally`;return n[23]!==a?(e=(0,i.jsx)(e3.A,{inline:!0,href:a,children:”check out this pull request locally.”}),n[23]=a,n[24]=e):e=n[24],n[25]!==h||n[26]!==e?(t=(0,i.jsxs)(rg,{diffAnchor:h,children:[“Diff is too big to render. To view,”,” “,e]}),n[25]=h,n[26]=e,n[27]=t):t=n[27],t}else{let e;return n[28]!==h||n[29]!==o?(e=(0,i.jsx)(e6,{diffAnchor:h,onLoadDiff:o,children:”Large diffs are not rendered by default.”}),n[28]=h,n[29]=o,n[30]=e):e=n[30],e}return a.diffLines?(n[31]!==d||n[32]!==h||n[33]!==a||n[34]!==c||n[35]!==u||n[36]!==m||n[37]!==f?(t=(0,i.jsx)(rb,{diffAnchor:h,diffEntryData:a,viewerData:f,copilotChatReference:d,hasExpandedAllRanges:c,isSplitView:u,subjectId:m}),n[31]=d,n[32]=h,n[33]=a,n[34]=c,n[35]=u,n[36]=m,n[37]=f,n[38]=t):t=n[38],t):null}:function({diffEntryData:e,diffLinesManuallyUnhidden:t,baseHelpUrl:n,onHandleLoadDiff:a,copilotChatReference:r,hasExpandedAllRanges:s,isSplitView:l,subjectId:o,viewerData:d}){let c=`diff-${e.pathDigest}`;if(e.isBinary)return(0,i.jsx)(rg,{diffAnchor:c,children:”Binary file not shown.”});if((0,e0.dK)(e))return(0,i.jsx)(rg,{diffAnchor:c,children:”File renamed without changes.”});if((0,e0.Jc)(e))return(0,i.jsx)(rg,{diffAnchor:c,children:”File copied without changes.”});if((0,e0.Sn)(e,e.status,e.oldTreeEntry?.mode,e.newTreeEntry?.mode))return(0,i.jsx)(rg,{diffAnchor:c,children:”File mode changed.”});if(!t&&(0,e0.HI)(e))return(0,i.jsx)(e6,{diffAnchor:c,onLoadDiff:a,children:(0,e0.l_)(e.truncatedReason)});if((0,e0.s8)(e))return(0,i.jsx)(rg,{diffAnchor:c,children:”Whitespace-only changes.”});if(!t&&(0,e0.lO)(e))return(0,i.jsx)(e6,{diffAnchor:c,onLoadDiff:a,children:”This file was deleted.”});if(!t&&(0,e0.xW)(e))return(0,i.jsxs)(e6,{diffAnchor:c,helpText:”customizing how changed files appear on GitHub.”,helpUrl:`${n}/github/administering-a-repository/customizing-how-changed-files-appear-on-github`,onLoadDiff:a,children:[“Some generated files are not rendered by default. Learn more about”,” “]});if(e.isTooBig&&0===e.diffLines.length)if(t)return(0,i.jsxs)(rg,{diffAnchor:c,children:[“Diff is too big to render. To view,”,” “,(0,i.jsx)(e3.A,{inline:!0,href:`${n}/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally`,children:”check out this pull request locally.”})]});else return(0,i.jsx)(e6,{diffAnchor:c,onLoadDiff:a,children:”Large diffs are not rendered by default.”});return e.diffLines?(0,i.jsx)(rb,{diffAnchor:c,diffEntryData:e,viewerData:d,copilotChatReference:r,hasExpandedAllRanges:s,isSplitView:l,subjectId:o}):null}),rb=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f,h,p,x,v,y,j,C,w,N=(0,r.c)(61),{diffAnchor:S,viewerData:L,diffEntryData:D,copilotChatReference:I,hasExpandedAllRanges:_,isSplitView:R,subjectId:A}=e,k=(0,l.useRef)(null),{clearSelectedLines:E}=Y(),[T,O]=(0,l.useState)(null),[P,F]=(0,l.useState)(!1),$=D.newTreeEntry?.lineCount??D.oldTreeEntry?.lineCount??0;N[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,e4.G7)(“pr_simple_diffs”),N[0]=t):t=N[0];let M=t;e:{let e=D.diffLines[D.diffLines.length-1];if(e?.blobLineNumber&&e.blobLineNumber<$){let t;N[1]!==D.diffLines||N[2]!==e.blobLineNumber?(t=D.diffLines.concat({__id:e7,blobLineNumber:e.blobLineNumber+1,left:null,right:null,type:"HUNK",html:"",text:""}),N[1]=D.diffLines,N[2]=e.blobLineNumber,N[3]=t):t=N[3],n=t;break e}n=D.diffLines}let B=n,{lineSpacingPreference:V,tabSizePreference:U}=L,G=q();N[4]!==E||N[5]!==G?(a=e=>{if(!k.current||!e.target)return;let t=e.target;!k.current.contains(t)&&(t.closest(“td.diff-line-number”)||t.closest(“[data-add-comment-button]”))&&G()&&(E(),ej())},N[4]=E,N[5]=G,N[6]=a):a=N[6];let H=a;N[7]!==H?(s=()=>(g.XC?.addEventListener(“mousedown”,H),()=>{g.XC?.removeEventListener(“mousedown”,H)}),o=[H],N[7]=H,N[8]=s,N[9]=o):(s=N[8],o=N[9]),(0,l.useEffect)(s,o);t:{let e,t=D.status,n=D.oldTreeEntry?.path,i=D.newTreeEntry?.path;if(!n&&!i){d=void 0;break t}e=”RENAMED”===t?`${n} renamed to ${i}`:”DELETED”===t||”REMOVED”===t?n:i,d=`Diff for: ${e}`}let z=d;N[10]!==B?(c=(0,e2.c7)(B),N[10]=B,N[11]=c):c=N[11];let K=c;N[12]===Symbol.for(“react.memo_cache_sentinel”)?(u=e=>{O(e)},N[12]=u):u=N[12];let W=u;N[13]!==D.path||N[14]!==_?(m=e=>{if(e.shiftKey&&e.metaKey&&”ArrowLeft”===e.key&&!_&&e.target?.getAttribute(“role”)===”gridcell”){let e=document.querySelector(`.js-expand-all-difflines-button[data-file-path=”${D.path}”]`);e?.dispatchEvent(new MouseEvent(“click”,{bubbles:!0,cancelable:!0}))}},N[13]=D.path,N[14]=_,N[15]=m):m=N[15];let Z=m;N[16]!==T||N[17]!==R?(f=e=>{let t=document.getSelection();if(t){let n=[];for(let e=0;eF(!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=`${K}px`,en=`${2*parseFloat(K)}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]!==K||N[44]!==L.avatarUrl||N[45]!==L.login||N[46]!==L.viewerCanApplySuggestion?(j=R?(0,i.jsx)(e1.wj,{lineWidth:K,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:K,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]=K,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]!==z?(C=(0,i.jsx)(“table”,{“aria-label”:z,onKeyDown:Z,ref:k,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]=z,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 rv(e){return(0,tq.Y)(e.text)}try{rg.displayName||(rg.displayName=”PlainTextStatus”)}catch{}try{rx.displayName||(rx.displayName=”DiffLines”)}catch{}try{rb.displayName||(rb.displayName=”CodeDiffLines”)}catch{}var ry=n(8431),rj=n(46251),rC=n(78049);let rw=”SubmoduleDiff-module__filesActionList–sbPQt”,rN=”SubmoduleDiff-module__fileRowLinkItem–Z1ES5″,rS=”SubmoduleDiff-module__path–hB1wm”,rL=”SubmoduleDiff-module__fileRow–Y9n2E”,rD=”SubmoduleDiff-module__linesAdded–tJqtP”,rI=”SubmoduleDiff-module__linesDeleted–nr9cp”,r_=(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)(rk,{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)(rk,{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)(rE,{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)(rR,{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:rw,showDividers:!0,variant:”full”,children:u.summary.map(e=>(0,i.jsx)(rT,{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)(rk,{commitOid:r,contentsUrl:a,type:”added”});case”DELETED”:case”REMOVED”:return(0,i.jsx)(rk,{commitOid:s,contentsUrl:a,type:”deleted”});default:return(0,i.jsx)(rE,{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)(rR,{basePath:t,submoduleUrl:d}),m]}),u&&(0,i.jsx)(eO.l,{className:rw,showDividers:!0,variant:”full”,children:e.summary.map(e=>(0,i.jsx)(rT,{compareUrl:`${a}/compare/${s}…${r}`,linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,path:e.path,pathDigest:e.pathDigest,status:e.status},e.pathDigest))})]})},rR=(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 rk=(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)]})},rE=(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]})},rT=(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)(rC.E,{status:g}),c[0]=g,c[1]=t):t=c[1],c[2]!==h?(n=(0,i.jsx)(“span”,{className:rS,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:rD,children:m>0&&(0,i.jsxs)(s.C,{isAddition:!0,children:[“+”,rO(m)]})}),(0,i.jsx)(“div”,{className:rI,children:f>0&&(0,i.jsxs)(s.C,{isAddition:!1,children:[“-“,rO(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)(rj.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rL,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:rN,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:rN,children:(0,i.jsxs)(rj.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rL,children:[(0,i.jsx)(rC.E,{status:l}),(0,i.jsxs)(“div”,{className:”d-flex gap-1 flex-justify-between width-full”,children:[(0,i.jsx)(“span”,{className:rS,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:rD,children:t>0&&(0,i.jsxs)(s.C,{isAddition:!0,children:[“+”,rO(t)]})}),(0,i.jsx)(“div”,{className:rI,children:n>0&&(0,i.jsxs)(s.C,{isAddition:!1,children:[“-“,rO(n)]})})]})]})]})})};function rO(e){return e>999?`${(e/1e3).toFixed(1)}k`:e.toLocaleString()}try{r_.displayName||(r_.displayName=”SubmoduleDiff”)}catch{}try{rR.displayName||(rR.displayName=”SubmodulePath”)}catch{}try{rk.displayName||(rk.displayName=”SubmoduleCommitChange”)}catch{}try{rE.displayName||(rE.displayName=”SubmoduleModified”)}catch{}try{rT.displayName||(rT.displayName=”SubmoduleFileRow”)}catch{}let rP=({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,rF=({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:r$({path:i?.path,oid:n,repository:s}),headFile:r$({path:t?.path,oid:e,repository:s}),baseBranchRef:n,id:`#diff-${r}`,type:”file-diff”,url:l}},r$=({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,rM=(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(!rP({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=rF({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(rP({isBinary:e,isSubmodule:t,path:n,status:i,repository:a,hasCopilotAccess:u}))return rF({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])},rB=”FileReviewThread-module__ReviewThreadContainer–InwxI”,rV=”FileReviewThread-module__ReviewThreadHeading–oFg3s”,rU=”FileReviewThread-module__ReviewThreadInnerContainer–jYE3S”,rG=”FileReviewThread-module__SpinnerWrapper–zQOoj”,rH=(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,A,k,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:G}=(0,tz.s)(),{mutate:H}=(0,nY.H)(t,o.zW);T[14]!==H||T[15]!==G||T[16]!==d?(g=()=>{d&&!d.isResolved&&(H({threadId:d.id},{onError:()=>M(“Failed to resolve thread”),onSuccess:()=>{V(!0),P.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),G(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},T[14]=H,T[15]=G,T[16]=d,T[17]=g):g=T[17];let q=g,{mutate:z}=(0,n0.i)(t,o.zW);T[18]!==G||T[19]!==d||T[20]!==z?(x=()=>{d&&(z({threadId:d.id},{onError:()=>M(“Failed to unresolve thread”),onSuccess:()=>{V(!1),P.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),G(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},T[18]=G,T[19]=d,T[20]=z,T[21]=x):x=T[21];let K=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(rq),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″,rB),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:rV,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:rU,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]!==K||T[54]!==B||T[55]!==Y||T[56]!==F||T[57]!==X||T[58]!==Q||T[59]!==en||T[60]!==s||T[61]!==d?(A=!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?K: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]=K,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]=A):A=T[62],T[63]!==R||T[64]!==A?(k=(0,i.jsxs)(l.Suspense,{fallback:_,children:[R,A]}),T[63]=R,T[64]=A,T[65]=k):k=T[65],T[66]!==I||T[67]!==k?(E=(0,i.jsx)(nT.t,{fallback:j,children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:O,children:[I,k]})}),T[66]=I,T[67]=k,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,tz.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”,rB),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:rV,children:”Comment on file”}),(0,i.jsxs)(“div”,{className:rU,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 rq(e){return e.state?.toUpperCase()!==”PENDING”}function rz(e){return!e}try{rH.displayName||(rH.displayName=”FileReviewThread”)}catch{}let rK=(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)(rH,{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:nA,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:nA,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)(rH,{viewerData:r.viewerData,filePath:t,thread:n,ghostUser:a},n.id)},`review-thread-${n.id}`))})})};try{rK.displayName||(rK.displayName=”FileMarkers”)}catch{}let rW=new Set,rZ=”b:0-l:null-r:null”;function rQ(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 rX=(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:A,collapsed:k,currentUser:E,diffLines:T,diffManuallyExpanded:O,diffSize:P,helpUrl:F,estimatedDiffHeight:M,fileComments:B,headerStickyOffset:V,hiddenFeatures:U,isAddingFileComment:G,isBinary:H,isSelected:q,isSubmodule:z,isTooBig:K,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?rW:U,ej=void 0!==q&&q,eC=z&&!!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]!==H||R[2]!==z||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:H,isSubmodule:z,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]=H,R[2]=z,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=rM(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:eA}=(0,I.E4)(),ek=(0,eG.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:rZ}},R[17]=eP,R[18]=m):m=R[18];let eF=m;R[19]!==ek||R[20]!==eO||R[21]!==eT||R[22]!==eA||R[23]!==ea||R[24]!==ec||R[25]!==eR?(f=e=>{let{onCompleted:t,onError:n,submitBatch:i,text:a}=e;ek?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:eA,comparisonStartOid:eR},{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment.databaseId),ec(!1)}})},R[19]=ek,R[20]=eO,R[21]=eT,R[22]=eA,R[23]=ea,R[24]=ec,R[25]=eR,R[26]=f):f=R[26];let e$=f;R[27]!==A||R[28]!==ec?(h=()=>{ec(!1),A?.current?.focus()},R[27]=A,R[28]=ec,R[29]=h):h=R[29];let eM=h,eB=E?.avatarURL??””,eV=E?.splitPreference,eU=E?.login??””,eH=E?.lineSpacing,ez=E?.shouldDisplayComments,eK=E?.shouldDisplayEditOptions,eW=E?.tabSize??4,eZ=E?.canComment,eQ=E?.canApplySuggestion;R[30]!==eB||R[31]!==eV||R[32]!==eU||R[33]!==eH||R[34]!==ez||R[35]!==eK||R[36]!==eW||R[37]!==eZ||R[38]!==eQ?(p={avatarUrl:eB,diffViewPreference:eV,login:eU,lineSpacingPreference:eH,shouldDisplayComments:ez,shouldDisplayEditOptions:eK,tabSizePreference:eW,viewerCanComment:eZ,viewerCanApplySuggestion:eQ},R[30]=eB,R[31]=eV,R[32]=eU,R[33]=eH,R[34]=ez,R[35]=eK,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.$)(ry.A.diffTargetable,ry.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]!==k||R[46]!==ei?(C=e=>ei(e,!k),R[45]=k,R[46]=ei,R[47]=C):C=R[47];let ta=eo?.onToggleRichDiff,tr=eo?.showRichDiff;return R[48]!==ef||R[49]!==k||R[50]!==P||R[51]!==em||R[52]!==eu||R[53]!==e0||R[54]!==ey||R[55]!==H||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:k,isBinary:H,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]=k,R[50]=P,R[51]=em,R[52]=eu,R[53]=e0,R[54]=ey,R[55]=H,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:ry.A.diffHeaderWrapper,style:j,children:w}),R[74]=j,R[75]=w,R[76]=N):N=R[76],R[77]!==k||R[78]!==eI||R[79]!==T||R[80]!==B||R[81]!==e$||R[82]!==eu||R[83]!==F||R[84]!==G||R[85]!==H||R[86]!==e1||R[87]!==K||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=k?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)(rK,{conversationListThreads:B,filePath:ea}),G&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,ry.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)(r_,{submodule:ep}),eo?.showRichDiff&&(0,i.jsx)(eY,{queryConfig:eo.queryConfig,initialData:eo.richDiff}),ew&&(0,i.jsx)(rx,{hasExpandedAllRanges:eu,copilotChatReference:eI,diffEntryData:{diffLines:T,isBinary:H,isTooBig:K,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]=k,R[78]=eI,R[79]=T,R[80]=B,R[81]=e$,R[82]=eu,R[83]=F,R[84]=G,R[85]=H,R[86]=e1,R[87]=K,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:ry.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:rQ(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=rW,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:A,oldCommitOid:k,onToggleCollapse:E,path:T,pathDigest:O,pullRequestGlobalRelayId:P,repository:F,richDiffState:M,rightSideContent:B,setIsAddingFileComment:V,hasExpandedAllRanges:U,expandAllContextLines:G,canExpandOrCollapseLines:H,status:q,submodule:z,truncatedReason:K,addInjectedContextLines:W,loadDiff:Z},Q){let X=j&&!!z,J=!X&&!M?.showRichDiff,[Y,ee]=(0,l.useState)(r),et=(0,I.j5)(),{comparisonView:en}=(0,I.L3)(),ei=rM({isBinary:v,isSubmodule:j,path:T,status:q,repository:F,newCommitOid:_,newTreeEntry:D,oldCommitOid:k,oldTreeEntry:A,pathDigest:O,hasCopilotAccess:n.hasCopilotAccess}),ea=async()=>{await Z(),ee(!0)},{baseOid:er,headOid:es}=(0,I.E4)(),el=(0,eG.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:rZ}}),[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??A?.lineCount??0;return(0,i.jsxs)($,{addInjectedContextLines:W,diffAnchor:`diff-${O}`,diffLines:a,fileLineCount:ex,path:T,startNewConversationForLineOrFileMap:em,hiddenFeatures:p,isSplitView:eg,oldTreeEntry:A,newTreeEntry:D,children:[(0,i.jsxs)(“div”,{role:”region”,ref:Q,”aria-labelledby”:ep,id:`diff-${O}`,className:(0,b.$)(ry.A.diffTargetable,ry.A.diff),”data-targeted”:y,style:eo?{contentVisibility:”auto”,containIntrinsicSize:`auto ${m}px`}:void 0,children:[(0,i.jsx)(“div”,{className:ry.A.diffHeaderWrapper,style:{“–header-sticky-offset”:`${h}px`},children:(0,i.jsx)(s.B,{headingId:ep,hiddenFeatures:p,areLinesExpanded:U,canExpandOrCollapseLines:H,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:A?.mode,oldPath:A?.path,patchStatus:q,path:T,onToggleExpandAllLines:G,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)(rK,{conversationListThreads:f,filePath:T}),x&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,ry.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)(r_,{submodule:z}),M?.showRichDiff&&(0,i.jsx)(eY,{queryConfig:M.queryConfig,initialData:M.richDiff}),J&&(0,i.jsx)(rx,{hasExpandedAllRanges:U,copilotChatReference:ei,diffEntryData:{diffLines:a,isBinary:v,isTooBig:C,linesChanged:S,newTreeEntry:D,newCommitOid:_,objectId:R,oldTreeEntry:A,oldCommitOid:k,path:T,pathDigest:O,status:q,truncatedReason:K},baseHelpUrl:u,subjectId:P||””,viewerData:ef,isSplitView:eg,diffLinesManuallyUnhidden:Y,onHandleLoadDiff:ea})]})]},`${O}_${a.length}`),et&&(0,i.jsxs)(“div”,{className:ry.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:rQ(en)})]})]})}),rJ=(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.$)(ry.A.diffTargetable,ry.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:ry.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.$)(ry.A.diffTargetable,ry.A.diff),children:[(0,i.jsx)(“div”,{className:ry.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`)},rY=(0,l.memo)(rX);try{rX.displayName||(rX.displayName=”DiffUnmemoized”)}catch{}try{rJ.displayName||(rJ.displayName=”DiffErrorFallback”)}catch{}try{rY.displayName||(rY.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}}},30923:(e,t,n)=>{n.d(t,{Ee:()=>o,b4:()=>d,Ts:()=>l});var i=n(50467);let a=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”}};var r=n(69759),s=n(51987);async function l(e,t,n){let i=new Request(t,n);(0,s.tV)(i.headers);let l=await self.fetch(i);if(l.status<200||l.status>=300)throw Error(`HTTP ${l.status}${l.statusText||””}`);return!function(e,t,n=!1){let i=t.headers.get(“content-type”)||””;if(!n&&!i.startsWith(“text/html”))throw new a(`expected response with text/html, but was ${i}`,t);if(n&&!(i.startsWith(“text/html”)||i.startsWith(“application/json”)))throw new a(`expected response with text/html or application/json, but was ${i}`,t);let r=t.headers.get(“x-html-safe”);if(r){if(!e.includes(r))throw new a(“response X-HTML-Safe nonce did not match”,t)}else throw new a(“missing X-HTML-Safe nonce”,t)}(function(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}(e),l),(0,r.B)(e,await l.text())}function o(e,t,n=1e3,i=[200],a=[202]){return async function n(r){let l=new Request(e,t);(0,s.tV)(l.headers);let o=await self.fetch(l);if(a.includes(o.status))return await new Promise(e=>setTimeout(e,r)),n(1.5*r);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 d(e,t,n){let{wait:i=500,acceptedStatusCodes:a=[200],max:r=3,attempt:l=0}=n||{},o=async()=>new Promise((n,o)=>{setTimeout(async()=>{try{let i=new Request(e,t);(0,s.tV)(i.headers);let o=await self.fetch(i);if(a.includes(o.status)||l+1===r)return n(o);n(“retry”)}catch(e){o(e)}},i*l)}),c=await o();return”retry”!==c?c:d(e,t,{wait:i,acceptedStatusCodes:a,max:r,attempt:l+1})}},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}},43645:(e,t,n)=>{n.d(t,{v:()=>P,n:()=>O});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);let p=”undefined”!=typeof globalThis&&void 0!==globalThis.window,g=”undefined”!=typeof process&&!1,x={timeout:150,useIdleCallback:!0};var b=n(91747),v=n(61583),y=n(79472),j=n(43362),C=n(48845),w=n(20622),N=n(96379),S=n(16235),L=n(69599);function D({basePath:e,effectiveRange:t,hideWhitespace:n}){return[w.uT.diffEntries,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`,`hideWhitespace:${n}`]}async function I(e){let t=(0,S.S)(),n=D(e),i=await R(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 _(e){let t,n=(0,S.S)(),i=D(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 R({…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 R({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/${w.uT.diffEntries}?${o.toString()}`;try{let e=await (0,N.Sr)(c,{signal:r});if(r?.aborted)return;let t=await (0,C.hp)(e);return(0,C.R)(e,t),t??void 0}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw e}}function A(e,t,n,i){return[w.uT.diffContextLines,e,t,n,i]}async function k({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/${w.uT.diffContextLines}?${s.toString()}`,o=await (0,N.QJ)(l);if(o.ok)return await o.json()??void 0}var E=n(88008);let T=(0,r.createContext)(null),O=(0,a.Z6)()?function(e){let t=(0,r.useContext)(T);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,s.P)(t,e)}:function(e){let t=(0,r.useContext)(T);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,s.P)(t,e)},P=({initData:e,children:t})=>{var n,a,s,l,o,d;let c,u,m=(0,r.useRef)(null),f=(0,b.u)(“prx_files_lite_throttle”),h=(0,b.u)(“prx_files_medium_throttle”),p=(0,y.Qn)(e.user.viewSettings.hideWhitespace),g=e.user.viewSettings.commentsPreference,x=(0,j.Wp)(e.diffSummaries),C=(0,j.Be)(e.diffSummaries),w=(0,j.wm)(e.viewerPendingReview),N=(0,j.Sl)(e.diffContents),L=(0,j.jH)(e.markers,e.diffSummaries),I=(0,E.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,S.S)(),u=D({basePath:s,effectiveRange:{baseOid:n??o.baseOid,headOid:a??o.headOid},hideWhitespace:d}),c.setQueryData(u,l),m.current=F({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:N,commentsPreference:g,initialDiffSummaries:x,initialLoadedPathDigests:new Set(e.diffContents.map(e=>e.pathDigest)),markers:L,basePath:e.pullRequest.pathName,pendingReview:w,prxFilesLiteThrottle:f,prxFilesMediumThrottle:h,pullRequest:e.pullRequest,baseRepository:e.repository,selectedPathDigest:(0,v.jU)((0,v.o9)()),initialActiveBatch:I.length>0?I:void 0,showChangeGroupPreference:e.user.viewSettings.showChangeGroups})),(0,i.jsx)(T.Provider,{value:m.current,children:t})},F=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})=>(s,l)=>{let o;return o=t?100:50*!!e,{entries:m({diffSummaries:n,loadedPathDigests:i,loadingPathDigests:new Set,selectedPathDigest:a}),selectedPathDigest:a,getSelectedPathDigest:()=>l().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=l().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),a=l().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);s(e=>({entries:m({diffSummaries:e.diffSummaries,loadedPathDigests:new Set(i),loadingPathDigests:new Set([…a,…n]),selectedPathDigest:e.selectedPathDigest})}),void 0,”loadSelectedEntries#preFetch”);let{loadDiffEntries:r}=l().diffEntriesActions,o=(0,u.i)({paths:new Set(t),diffSummaries:l().diffSummaries}),d=await r({paths:t,contextRanges:o});if(!d||0===d.length){let e=[…l().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest)],t=l().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);return s({entries:m({diffSummaries:l().diffSummaries,loadedPathDigests:new Set(e),loadingPathDigests:new Set(t),selectedPathDigest:l().selectedPathDigest})},void 0,”loadSelectedEntries#postFetch#noAPIData”)}let f=d.map(e=>e.pathDigest),h=[…l().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),…f],p=l().entries.filter(e=>e.loadingStatus===c.s.Loading).filter(e=>!f.includes(e.pathDigest)).map(e=>e.pathDigest);s(e=>({…e,entries:m({diffSummaries:l().diffSummaries,loadedPathDigests:new Set(h),loadingPathDigests:new Set(p),selectedPathDigest:l().selectedPathDigest})}),void 0,”loadSelectedEntries#postFetch”)},o),enqueue:e=>{s(t=>({…t,progressiveDiffQueue:[…t.progressiveDiffQueue,e]}),void 0,”enqueue”)},processQueue:async()=>{let e=()=>(function(e,t={}){let{timeout:n,useIdleCallback:i}={…x,…t};if(!p||g)return void e();let a=()=>{“function”==typeof r.startTransition?(0,r.startTransition)(e):e()},s=globalThis;i&&”function”==typeof s.requestIdleCallback?s.requestIdleCallback(a,{timeout:n}):setTimeout(a,0)})(()=>l().internalProgressiveDiffsActions.processQueue(),{timeout:20}),t=l().progressiveDiffQueue;if(0===t.length)return l().entries?.some(e=>e.loadingStatus===c.s.Loading||e.loadingStatus===c.s.NotLoaded)?e():s(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));s(e=>({…e,progressiveDiffQueue:i}),void 0,”processQueue#cleanQueue”);let a=f({progressiveDiffEntries:l().entries,startingAt:n?.startingAt,preferAnySoloEntry:n?.preferAnySoloEntry});return await l().internalProgressiveDiffsActions.loadSelectedEntries(a),e()}},progressiveDiffsActions:{startQueue:()=>{l().queueRunning||(s(e=>({…e,queueRunning:!0}),void 0,”startQueue”),l().internalProgressiveDiffsActions.processQueue())},loadMore:async(e,{preferAnySoloEntry:t}={})=>{if(e)return l().internalProgressiveDiffsActions.enqueue({startingAt:e,preferAnySoloEntry:t});let n=f({progressiveDiffEntries:l().entries,startingAt:e,preferAnySoloEntry:t});return l().internalProgressiveDiffsActions.loadSelectedEntries(n)},updateSelectedPathDigest:e=>{s(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigest”)},updateSelectedPathDigestAndFetch:e=>{s(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigestAndFetch”);let t=l().entries.find(t=>t.pathDigest===e);if(t&&t.loadingStatus!==c.s.Loaded)return l().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,S.S)();for(let[n,i]of Object.entries(t)){let t=A(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=A(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,L.G7)(“pr_sfv_new_diff_fetch”)?_(n):I(n));return i&&0!==i.length?(s().diffEntriesActions.updateDiffEntries(i),i):[]},fetchContextLines:async({path:t,contextLineRanges:n,w:i=”0″})=>{let a=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 k({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,v.Gl)(),s=(0,v.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,v.Gl)(),t=(0,v.e3)(),i=(0,v.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{T.displayName||(T.displayName=”PullRequestStoreContext”)}catch{}try{P.displayName||(P.displayName=”PullRequestStoreProvider”)}catch{}},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)},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)}},61219:(e,t,n)=>{n.d(t,{U:()=>ev});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(59394),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 A=(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}}})}})},k=(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 G=”ReviewThreadComment-module__ReviewThreadContainer–mI1dg”,H=”ReviewThreadComment-module__anchorable–bXoU8″,q=”ReviewThreadComment-module__ReviewThreadWrapper–zXqpP”,z=”ReviewThreadComment-module__ReviewThreadBox–Ddyuz”,K=”ReviewThreadComment-module__ReviewThreadInnerContainer–xw85s”,W=”ReviewThreadComment-module__ReplyWrapper–yIUaX”,Z=”ReviewThreadComment-module__SafeHTMLBox–SVSQJ”,Q=”ReviewThreadComment-module__BodyHTMLContainer–O6lsx”;var X=n(88431),J=n(40961),Y=n(80081),ee=n(3252);let et=(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:en},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 en(){h.cg?.location.reload()}var ei=n(91747),ea=n(2265),er=n(30459),es=n(26607),el=n(21373),eo=n(88008);let ed=(0,a.GV)()?function(e){let t,n,a,s,l,o=(0,r.c)(28),{onOpenDialog:d,suggestedChange:c}=e,{sendAnalyticsEvent:u}=(0,er.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,ei.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,eo.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,eo.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)(es.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(el.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)(el.Q,{variant:”default”,onClick:L,ref:m,children:”Apply suggestion”}),g&&(0,i.jsx)(el.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,er.s)(),a=(0,y.useRef)(null),r=(0,w.Nk)({commentDatabaseId:t.commentDatabaseId||0,suggestionIndex:t.suggestionIndex}),s=(0,w.RH)(),l=(0,ei.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,eo.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,eo.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)(es.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(el.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)(el.Q,{variant:”default”,onClick:p,ref:a,children:”Apply suggestion”}),l&&(0,i.jsx)(el.Q,{variant:”primary”,onClick:f,children:”Add suggestion to batch”})]})})};try{ed.displayName||(ed.displayName=”ApplyOrAddToBatch”)}catch{}var ec=n(3585);let eu=(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{eu.displayName||(eu.displayName=”CodeSuggestionUnavailable”)}catch{}let em=(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,ea.W)(),[b,v]=(0,y.useState)(!1),j=(0,y.useRef)(void 0),C=(0,ei.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,Y.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(ef),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 A=o;p[14]!==R?(d=e=>{R(!0),j.current=e},p[14]=R,p[15]=d):d=p[15];let k=d,{mutate:E}=et(),{fullDiff:T}=(0,w.L3)(),{headOid:O}=T;p[16]!==I||p[17]!==A||p[18]!==O||p[19]!==E?(c=(e,t,n)=>{E({changes:I,message:e,currentOid:O},{onSuccess:()=>{A(),n()},onError:e=>{t(e,”submitSuggestedChanges”,”Failed to submit suggested changes”)}})},p[16]=I,p[17]=A,p[18]=O,p[19]=E,p[20]=c):c=p[20];let P=c;return p[21]!==k||p[22]!==g?(u=(0,i.jsx)(ed,{suggestedChange:g,onOpenDialog:k}),p[21]=k,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)(eu,{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]!==A||p[31]!==P||p[32]!==b?(f=b&&(0,i.jsx)(ec.$,{authorLogins:_,batchSize:I.length,onClose:A,onCommit:P}),p[28]=_,p[29]=I.length,p[30]=A,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,ea.W)(),[n,a]=(0,y.useState)(!1),r=(0,y.useRef)(void 0),s=(0,ei.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,Y.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}=et(),{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)(ed,{suggestedChange:e,onOpenDialog:p}),!o&&!d&&c&&(0,i.jsx)(eu,{reason:c,className:”m-0″}),n&&(0,i.jsx)(ec.$,{authorLogins:m,batchSize:u.length,onClose:h,onCommit:b})]})};function ef(e){return e.authorLogin}try{em.displayName||(em.displayName=”CodeSuggestionActions”)}catch{}let eh=(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,Y.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,J.createPortal)((0,i.jsx)(eu,{reason:n}),e.ref):(0,J.createPortal)((0,i.jsx)(em,{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=eh(n,t,a,o,e);return(0,i.jsx)(i.Fragment,{children:m?.length?m.map(n=>{let{isValid:a,reason:o}=(0,Y.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,J.createPortal)((0,i.jsx)(eu,{reason:o}),n.ref):(0,J.createPortal)((0,i.jsx)(em,{suggestedChange:n}),n.ref)}):null})};try{ep.displayName||(ep.displayName=”SuggestedChangeView”)}catch{}var eg=n(30721),ex=n(83494),eb=n(20459);let ev=(0,a.GV)()?function(e){let t,n,a,j,C,N,S,D,I,R,T,P,X,J,Y,ee,et,en,ei,ea,er,es,el,eo,ed,ec,eu,em,ef,eh,ev,ej,eC,ew,eN,eS,eL,eD,eI,e_,eR,eA,ek,eE,eT=(0,r.c)(176),{isAnchorable:eO,index:eP,isInlineComment:eF,isLastChild:e$,isOutdated:eM,isThreadResolved:eB,lineMarkersKey:eV,anchorPrefix:eU,comment:eG,disableDialogMode:eH,enableDialogMode:eq,filePath:ez,gridCellId:eK,hideActions:eW,isFirstComment:eZ,isInDialogMode:eQ,onDeleteLineComment:eX,onQuoteReply:eJ,threadCommentCount:eY,threadId:e0,threadPositionNumber:e1,suggestedChangesConfig:e2,applySuggestedChangesValidationData:e3,viewerData:e4,ghostUser:e5,originalDiffPathUri:e6,headingLevel:e7}=e,e8=void 0!==eO&&eO,e9=void 0===eP?0:eP,te=void 0!==eZ&&eZ,tt=void 0===eJ?u.l:eJ,tn=void 0===e5?d.t.ghostUser:e5,ti=void 0===e7?”h3″:e7,{addToast:ta}=(0,p.Y6)(),[tr,ts]=(0,y.useState)(!1),[tl,to]=(0,y.useState)(eG.isHidden),[td,tc]=(0,y.useState)(!1),[tu,tm]=(0,y.useState)(eG.body),[tf,th]=(0,y.useState)(!1),[tp,tg]=(0,y.useState)(!1),[tx,tb]=(0,y.useState)(“”),tv=(0,w.Kp)(),ty=”FILE”===eG.subjectType;eT[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=e=>{let{text:t}=e;t&&tm(t)},eT[0]=t):t=eT[0],eT[1]!==tv||eT[2]!==eG.id||eT[3]!==ez||eT[4]!==ty?(n={subjectId:tv,filePath:ez,fileLevelComment:ty,threadId:eG.id,handlePersistedCommentExists:t},eT[1]=tv,eT[2]=eG.id,eT[3]=ez,eT[4]=ty,eT[5]=n):n=eT[5];let{persistCommentToStorage:tj,removePersistedCommentFromStorage:tC}=(0,B.L)(n),tw=(0,y.useRef)(null),tN=(0,y.useRef)(null),tS=(0,y.useRef)(null),[tL,tD]=(0,y.useState)(“”);eT[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>{tw.current?.focus()},eT[6]=a):a=eT[6];let tI=a;eT[7]!==tr?(j=()=>{if(tr){let e=window.setTimeout(tI);return()=>{window.clearTimeout(e)}}},C=[tr],eT[7]=tr,eT[8]=j,eT[9]=C):(j=eT[8],C=eT[9]),(0,y.useEffect)(j,C),eT[10]!==eX?(N=()=>{tc(!1),tg(!1),eX?.()},eT[10]=eX,eT[11]=N):N=eT[11],eT[12]!==ez||eT[13]!==eV||eT[14]!==N?(S={filePath:ez,lineMarkersKey:eV,onSuccess:N},eT[12]=ez,eT[13]=eV,eT[14]=N,eT[15]=S):S=eT[15];let{mutate:t_}=_(S);eT[16]!==eH?(D=async()=>{eH?.(),tc(!0)},eT[16]=eH,eT[17]=D):D=eT[17];let tR=D;eT[18]!==ta||eT[19]!==eG.id||eT[20]!==t_||eT[21]!==eq||eT[22]!==ez||eT[23]!==eK||eT[24]!==e0?(I=e=>{“confirm”===e?(tg(!0),t_({commentId:eG.id,threadId:e0,filePath:ez},{onError:()=>{tc(!1),ta({type:”error”,message:”Failed to delete comment”}),tg(!1)}})):(eK&&eq?.(eK),tc(!1),tg(!1))},eT[18]=ta,eT[19]=eG.id,eT[20]=t_,eT[21]=eq,eT[22]=ez,eT[23]=eK,eT[24]=e0,eT[25]=I):I=eT[25];let tA=I,{mutate:tk}=A(ez,eV);eT[26]!==eG.databaseId||eT[27]!==tk?(R=e=>{if(!eG.databaseId)throw Error(“Comment not found”);tk({commentDatabaseId:eG.databaseId,reason:e},{onError:()=>{th(!1),tD(“Failed to hide comment”)},onSuccess:()=>to(!0)})},eT[26]=eG.databaseId,eT[27]=tk,eT[28]=R):R=eT[28];let tE=R,{mutate:tT}=O(ez,eV);eT[29]!==eG.databaseId||eT[30]!==tT?(T=()=>{if(!eG.databaseId)throw Error(“Comment not found”);tT({commentDatabaseId:eG.databaseId},{onError:()=>{th(!1),tD(“Failed to unhide comment”)},onSuccess:()=>to(!1)})},eT[29]=eG.databaseId,eT[30]=tT,eT[31]=T):T=eT[31];let tO=T,{mutate:tP}=L();eT[32]!==tP?(P=(e,t,n,i,a,r)=>tP({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>tD(“Failed to block user”),onSuccess:()=>{t&&to(!0)}}),eT[32]=tP,eT[33]=P):P=eT[33];let tF=P,{mutate:t$}=E();eT[34]!==t$?(X=(e,t)=>t$({organizationLogin:e,userLogin:t},{onError:()=>tD(“Failed to unblock user”)}),eT[34]=t$,eT[35]=X):X=eT[35];let tM=X,{mutate:tB}=k(ez,eV);eT[36]!==ta||eT[37]!==eG.databaseId||eT[38]!==tB||eT[39]!==e0?(J=(e,t)=>{if(!eG.databaseId)throw Error(“Comment not found”);setTimeout(()=>tS.current?.focus(),0),tB({commentDatabaseId:eG.databaseId,threadId:e0,reaction:e,viewerHasReacted:t},{onError:()=>{th(!1),ta({type:”error”,message:”Failed to react to comment”})}})},eT[36]=ta,eT[37]=eG.databaseId,eT[38]=tB,eT[39]=e0,eT[40]=J):J=eT[40];let tV=J;eT[41]===Symbol.for(“react.memo_cache_sentinel”)?(Y=()=>{ts(!0)},eT[41]=Y):Y=eT[41];let tU=Y;eT[42]!==eG.body||eT[43]!==tC?(ee=()=>{ts(!1),tC(),tm(eG.body)},eT[42]=eG.body,eT[43]=tC,eT[44]=ee):ee=eT[44];let tG=ee;eT[45]!==tj?(et=e=>{tj({text:e}),tm(e),tb(void 0)},eT[45]=tj,eT[46]=et):et=eT[46];let tH=et;eT[47]!==tC?(en=()=>{ts(!1),th(!1),tC()},eT[47]=tC,eT[48]=en):en=eT[48],eT[49]!==ez||eT[50]!==eV||eT[51]!==en?(ei={filePath:ez,lineMarkersKey:eV,onSuccess:en},eT[49]=ez,eT[50]=eV,eT[51]=en,eT[52]=ei):ei=eT[52];let{mutate:tq}=F(ei);eT[53]!==ta||eT[54]!==tu||eT[55]!==eG.bodyVersion||eT[56]!==eG.databaseId||eT[57]!==e2?.sourceContentFromDiffLines||eT[58]!==tq?(ea=()=>{th(!0);let e=(0,V.u)(tu,e2?.sourceContentFromDiffLines??””);if(!e.isValid){tb(e.errorMessage),th(!1);return}tq({commentId:String(eG.databaseId),body:tu,bodyVersion:eG.bodyVersion},{onError:()=>{th(!1),ta({type:”error”,message:”Failed to update comment”})}})},eT[53]=ta,eT[54]=tu,eT[55]=eG.bodyVersion,eT[56]=eG.databaseId,eT[57]=e2?.sourceContentFromDiffLines,eT[58]=tq,eT[59]=ea):ea=eT[59],e2?.sourceContentFromDiffLines;let tz=ea;eT[60]!==eG.databaseId?(er=eG.databaseId?.toString(),eT[60]=eG.databaseId,eT[61]=er):er=eT[61];let tK=er,tW=tK?`${void 0===eU?”r”:eU}${tK}`:void 0;eT[62]!==tW?(es=tW&&h.fV?new URL(`${h.fV.pathname}#${tW}`,h.fV.origin).toString():””,eT[62]=tW,eT[63]=es):es=eT[63];let tZ=es,tQ=(0,y.useRef)(null);eT[64]!==tW||eT[65]!==tK||eT[66]!==e8?(el={isAnchorable:e8,commentId:tK,commentAnchor:tW,containerRef:tQ},eT[64]=tW,eT[65]=tK,eT[66]=e8,eT[67]=el):el=eT[67],(0,M.u)(el);let tX=e9>0,tJ=e9>1,tY=tr?”editing”:tl?”hidden”:”visible”;eT[68]!==ti?(eo={as:ti},eT[68]=ti,eT[69]=eo):eo=eT[69];let t0=eo,t1=eG.author?.avatarUrl??tn.avatarUrl,t2=eG.reference.text??`#${eG.reference.number}`;eT[70]!==eG||eT[71]!==tZ||eT[72]!==t2?(ed={…eG,url:tZ,referenceText:t2},eT[70]=eG,eT[71]=tZ,eT[72]=t2,eT[73]=ed):ed=eT[73];let t3=eG.author?.login??tn.login,t4=eG.reference?.author?.login??””;eT[74]===Symbol.for(“react.memo_cache_sentinel”)?(ec={},eT[74]=ec):ec=eT[74];let t5=”copilot”===eG.reviewVariantType?”copilot-pull-request-reviewer”:void 0,t6=”copilot”===eG.reviewVariantType?l.S.Bot:void 0;eT[75]!==eW||eT[76]!==tl||eT[77]!==eM||eT[78]!==tX||eT[79]!==tF||eT[80]!==tR||eT[81]!==tE||eT[82]!==tt||eT[83]!==tM||eT[84]!==tO||eT[85]!==e6||eT[86]!==t0||eT[87]!==t1||eT[88]!==ed||eT[89]!==t3||eT[90]!==t4||eT[91]!==t5||eT[92]!==t6?(eu={headingProps:t0,avatarUrl:t1,comment:ed,commentRef:tQ,deleteComment:tR,editComment:tU,editHistoryComponent:void 0,hideComment:tE,onBlock:tF,onUnblock:tM,onMinimize:to,onSuccessfulBlock:ey,isMinimized:tl,commentAuthorLogin:t3,navigate:u.l,commentSubjectAuthorLogin:t4,onReplySelect:tt,unhideComment:tO,hideActions:eW,isReply:tX,forceInlineAvatar:!0,containerStyle:ec,originalDiffPathUri:e6,isOutdated:eM,commentAuthorSlug:t5,commentAuthorType:t6},eT[75]=eW,eT[76]=tl,eT[77]=eM,eT[78]=tX,eT[79]=tF,eT[80]=tR,eT[81]=tE,eT[82]=tt,eT[83]=tM,eT[84]=tO,eT[85]=e6,eT[86]=t0,eT[87]=t1,eT[88]=ed,eT[89]=t3,eT[90]=t4,eT[91]=t5,eT[92]=t6,eT[93]=eu):eu=eT[93];let t7=eu;eT[94]!==e9||eT[95]!==tX||eT[96]!==e1?(em=()=>tX?void 0!==e1?`Reply ${e9} to Comment ${e1}`:`Reply ${e9}`:void 0!==e1?`Comment ${e1}`:”Comment”,eT[94]=e9,eT[95]=tX,eT[96]=e1,eT[97]=em):em=eT[97];let t8=em;eT[98]!==eG.body||eT[99]!==tr||eT[100]!==tt?(ef=()=>{if(tr)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;tt((0,eb.E)(tQ?.current,t,eG.body))},eT[98]=eG.body,eT[99]=tr,eT[100]=tt,eT[101]=ef):ef=eT[101];let t9=ef;eT[102]===Symbol.for(“react.memo_cache_sentinel”)?(eh=(0,eg.E7)(),eT[102]=eh):eh=eT[102];let ne=eh;eT[103]!==t9?(ev={“pull-requests-diff-view:quote-reply”:t9},eT[103]=t9,eT[104]=ev):ev=eT[104];let nt=e8?tW:void 0,nn=eF?eQ?0:-1:0,ni=eG.id;eT[105]!==t8||eT[106]!==eQ?(ej=eQ?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:t8()}:{},eT[105]=t8,eT[106]=eQ,eT[107]=ej):ej=eT[107];let na=e8&&H,nr=”hidden”===tY&&”pb-2″;return eT[108]!==na||eT[109]!==nr?(eC=(0,v.$)(G,na,nr),eT[108]=na,eT[109]=nr,eT[110]=eC):eC=eT[110],eT[111]!==tJ||eT[112]!==tX?(ew=tJ&&(0,i.jsx)(“div”,{className:q,”data-is-reply”:tX,children:(0,i.jsx)(“div”,{className:z})}),eT[111]=tJ,eT[112]=tX,eT[113]=ew):ew=eT[113],eT[114]!==t7||eT[115]!==eW?(eN=eW?void 0:(0,i.jsx)($.RelayEnvironmentProvider,{environment:ne,children:(0,i.jsx)(o.p,{…t7})}),eT[114]=t7,eT[115]=eW,eT[116]=eN):eN=eT[116],eT[117]!==eG.body||eT[118]!==t7||eT[119]!==eQ||eT[120]!==eM||eT[121]!==eN||eT[122]!==eY?(eS=(0,i.jsx)(l.v,{…t7,commentBody:eG.body,threadCommentCount:eY,isInDialogMode:eQ,actions:eN,isOutdated:eM}),eT[117]=eG.body,eT[118]=t7,eT[119]=eQ,eT[120]=eM,eT[121]=eN,eT[122]=eY,eT[123]=eS):eS=eT[123],eT[124]!==tJ||eT[125]!==eS?(eL=(0,i.jsx)(“div”,{className:K,”data-is-nested-reply”:tJ,children:eS}),eT[124]=tJ,eT[125]=eS,eT[126]=eL):eL=eT[126],eT[127]!==tL?(eD=tL&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),tL]}),eT[127]=tL,eT[128]=eD):eD=eT[128],eT[129]!==e$||eT[130]!==tX?(eI=tX&&(0,i.jsx)(“div”,{className:W,”data-is-last-child”:e$}),eT[129]=e$,eT[130]=tX,eT[131]=eI):eI=eT[131],eT[132]!==tu||eT[133]!==tY||eT[134]!==tx||eT[135]!==tX||eT[136]!==tf||eT[137]!==tG||eT[138]!==tH||eT[139]!==tz||eT[140]!==e2?(e_=”editing”===tY&&(0,i.jsx)(“div”,{className:(0,v.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,tX?”pl-0″:”pl-2″),children:(0,i.jsxs)(U.S,{ref:tw,label:”Update comment”,value:tu,onChange:tH,onPrimaryAction:tz,suggestedChangesConfig:e2,markdownErrorMessage:tx,children:[(0,i.jsx)(s.xR,{variant:”default”,onClick:tG,children:”Cancel”}),(0,i.jsx)(s.xR,{disabled:tf||!tu.length,loading:tf,variant:”primary”,onClick:tz,children:”Update”})]})}),eT[132]=tu,eT[133]=tY,eT[134]=tx,eT[135]=tX,eT[136]=tf,eT[137]=tG,eT[138]=tH,eT[139]=tz,eT[140]=e2,eT[141]=e_):e_=eT[141],eT[142]!==e3||eT[143]!==eG||eT[144]!==tY||eT[145]!==td||eT[146]!==ez||eT[147]!==tA||eT[148]!==tp||eT[149]!==eM||eT[150]!==tX||eT[151]!==eB||eT[152]!==tV||eT[153]!==e2||eT[154]!==e4?.viewerCanApplySuggestion?(eR=”visible”===tY&&(0,i.jsxs)(“div”,{className:Q,”data-is-reply”:tX,children:[eG.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:tN,className:(0,v.$)(“markdown-body”,Z),”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:tS,reactionGroups:eG.reactionGroups,onReact:tV,canReact:eG.viewerCanReact})})]}),e3&&(0,i.jsx)(ep,{comment:eG,commentBodyRef:tN,filePath:ez,isOutdated:eM,isThreadResolved:eB,databaseId:eG.databaseId,suggestedChangesConfig:e2,applySuggestedChangesValidationData:e3,viewerCanApplySuggestion:e4?.viewerCanApplySuggestion})]}),td&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:tp,onClose:tA,children:”Are you sure you want to delete this comment?”})]}),eT[142]=e3,eT[143]=eG,eT[144]=tY,eT[145]=td,eT[146]=ez,eT[147]=tA,eT[148]=tp,eT[149]=eM,eT[150]=tX,eT[151]=eB,eT[152]=tV,eT[153]=e2,eT[154]=e4?.viewerCanApplySuggestion,eT[155]=eR):eR=eT[155],eT[156]!==tX||eT[157]!==eI||eT[158]!==e_||eT[159]!==eR?(eA=(0,i.jsxs)(“div”,{className:q,”data-is-reply”:tX,children:[eI,e_,eR]}),eT[156]=tX,eT[157]=eI,eT[158]=e_,eT[159]=eR,eT[160]=eA):eA=eT[160],eT[161]!==eG.id||eT[162]!==te||eT[163]!==nt||eT[164]!==nn||eT[165]!==ej||eT[166]!==eC||eT[167]!==ew||eT[168]!==eL||eT[169]!==eD||eT[170]!==eA||eT[171]!==e0?(ek=(0,i.jsxs)(“div”,{ref:tQ,id:nt,tabIndex:nn,”data-first-thread-comment”:te,”data-marker-navigation-comment-thread-id”:e0,”data-marker-navigation-comment-id”:ni,…ej,className:eC,children:[ew,eL,eD,eA]}),eT[161]=eG.id,eT[162]=te,eT[163]=nt,eT[164]=nn,eT[165]=ej,eT[166]=eC,eT[167]=ew,eT[168]=eL,eT[169]=eD,eT[170]=eA,eT[171]=e0,eT[172]=ek):ek=eT[172],eT[173]!==ev||eT[174]!==ek?(eE=(0,i.jsx)(ex.tL,{commands:ev,children:ek}),eT[173]=ev,eT[174]=ek,eT[175]=eE):eE=eT[175],eE}: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:X=!1,isInDialogMode:J,onDeleteLineComment:Y,onQuoteReply:ee=u.l,threadCommentCount:et,threadId:en,threadPositionNumber:ei,suggestedChangesConfig:ea,applySuggestedChangesValidationData:er,viewerData:es,ghostUser:el=d.t.ghostUser,originalDiffPathUri:eo,headingLevel:ed=”h3″}){let{addToast:ec}=(0,p.Y6)(),[eu,em]=(0,y.useState)(!1),[ef,eh]=(0,y.useState)(S.isHidden),[ev,ey]=(0,y.useState)(!1),[ej,eC]=(0,y.useState)(S.body),[ew,eN]=(0,y.useState)(!1),[eS,eL]=(0,y.useState)(!1),[eD,eI]=(0,y.useState)(“”),e_=(0,w.Kp)(),{persistCommentToStorage:eR,removePersistedCommentFromStorage:eA}=(0,B.L)({subjectId:e_,filePath:R,fileLevelComment:”FILE”===S.subjectType,threadId:S.id,handlePersistedCommentExists:({text:e})=>{e&&eC(e)}}),ek=(0,y.useRef)(null),eE=(0,y.useRef)(null),eT=(0,y.useRef)(null),[eO,eP]=(0,y.useState)(“”),eF=()=>{ek.current?.focus()};(0,y.useEffect)(()=>{if(eu){let e=window.setTimeout(eF);return()=>{window.clearTimeout(e)}}},[eu]);let{mutate:e$}=_({filePath:R,lineMarkersKey:C,onSuccess:()=>{ey(!1),eL(!1),Y?.()}}),eM=async()=>{D?.(),ey(!0)},{mutate:eB}=A(R,C),{mutate:eV}=O(R,C),{mutate:eU}=L(),{mutate:eG}=E(),{mutate:eH}=k(R,C),{mutate:eq}=F({filePath:R,lineMarkersKey:C,onSuccess:()=>{em(!1),eN(!1),eA()}}),ez=(0,y.useCallback)(()=>{eN(!0);let e=(0,V.u)(ej,ea?.sourceContentFromDiffLines??””);if(!e.isValid){eI(e.errorMessage),eN(!1);return}eq({commentId:String(S.databaseId),body:ej,bodyVersion:S.bodyVersion},{onError:()=>{eN(!1),ec({type:”error”,message:”Failed to update comment”})}})},[ec,ej,S,ea?.sourceContentFromDiffLines,eq]),eK=S.databaseId?.toString(),eW=eK?`${N}${eK}`:void 0,eZ=eW&&h.fV?new URL(`${h.fV.pathname}#${eW}`,h.fV.origin).toString():””,eQ=(0,y.useRef)(null);(0,M.u)({isAnchorable:e,commentId:eK,commentAnchor:eW,containerRef:eQ});let eX=t>0,eJ=t>1,eY=eu?”editing”:ef?”hidden”:”visible”,e0={headingProps:{as:ed},avatarUrl:S.author?.avatarUrl??el.avatarUrl,comment:{…S,url:eZ,referenceText:S.reference.text??`#${S.reference.number}`},commentRef:eQ,deleteComment:eM,editComment:()=>{em(!0)},editHistoryComponent:void 0,hideComment:e=>{if(!S.databaseId)throw Error(“Comment not found”);eB({commentDatabaseId:S.databaseId,reason:e},{onError:()=>{eN(!1),eP(“Failed to hide comment”)},onSuccess:()=>eh(!0)})},onBlock:(e,t,n,i,a,r)=>eU({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>eP(“Failed to block user”),onSuccess:()=>{t&&eh(!0)}}),onUnblock:(e,t)=>eG({organizationLogin:e,userLogin:t},{onError:()=>eP(“Failed to unblock user”)}),onMinimize:eh,onSuccessfulBlock:()=>{setTimeout(()=>h.cg?.location.reload(),800)},isMinimized:ef,commentAuthorLogin:S.author?.login??el.login,navigate:u.l,commentSubjectAuthorLogin:S.reference?.author?.login??””,onReplySelect:ee,unhideComment:()=>{if(!S.databaseId)throw Error(“Comment not found”);eV({commentDatabaseId:S.databaseId},{onError:()=>{eN(!1),eP(“Failed to unhide comment”)},onSuccess:()=>eh(!1)})},hideActions:P,isReply:eX,forceInlineAvatar:!0,containerStyle:{},originalDiffPathUri:eo,isOutdated:r,commentAuthorSlug:”copilot”===S.reviewVariantType?”copilot-pull-request-reviewer”:void 0,commentAuthorType:”copilot”===S.reviewVariantType?l.S.Bot:void 0},e1=(0,y.useMemo)(()=>(0,eg.E7)(),[]);return(0,i.jsx)(ex.tL,{commands:{“pull-requests-diff-view:quote-reply”:()=>{if(eu)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;ee((0,eb.E)(eQ?.current,t,S.body))}},children:(0,i.jsxs)(“div”,{ref:eQ,id:e?eW:void 0,tabIndex:n?J?0:-1:0,”data-first-thread-comment”:X,”data-marker-navigation-comment-thread-id”:en,”data-marker-navigation-comment-id”:S.id,…J?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:eX?void 0!==ei?`Reply ${t} to Comment ${ei}`:`Reply ${t}`:void 0!==ei?`Comment ${ei}`:”Comment”}:{},className:(0,v.$)(G,e&&H,”hidden”===eY&&”pb-2″),children:[eJ&&(0,i.jsx)(“div”,{className:q,”data-is-reply”:eX,children:(0,i.jsx)(“div”,{className:z})}),(0,i.jsx)(“div”,{className:K,”data-is-nested-reply”:eJ,children:(0,i.jsx)(l.v,{…e0,commentBody:S.body,threadCommentCount:et,isInDialogMode:J,actions:P?void 0:(0,i.jsx)($.RelayEnvironmentProvider,{environment:e1,children:(0,i.jsx)(o.p,{…e0})}),isOutdated:r})}),eO&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),eO]}),(0,i.jsxs)(“div”,{className:q,”data-is-reply”:eX,children:[eX&&(0,i.jsx)(“div”,{className:W,”data-is-last-child”:a}),”editing”===eY&&(0,i.jsx)(“div”,{className:(0,v.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,eX?”pl-0″:”pl-2″),children:(0,i.jsxs)(U.S,{ref:ek,label:”Update comment”,value:ej,onChange:e=>{eR({text:e}),eC(e),eI(void 0)},onPrimaryAction:ez,suggestedChangesConfig:ea,markdownErrorMessage:eD,children:[(0,i.jsx)(s.xR,{variant:”default”,onClick:()=>{em(!1),eA(),eC(S.body)},children:”Cancel”}),(0,i.jsx)(s.xR,{disabled:ew||!ej.length,loading:ew,variant:”primary”,onClick:ez,children:”Update”})]})}),”visible”===eY&&(0,i.jsxs)(“div”,{className:Q,”data-is-reply”:eX,children:[S.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:eE,className:(0,v.$)(“markdown-body”,Z),”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:eT,reactionGroups:S.reactionGroups,onReact:(e,t)=>{if(!S.databaseId)throw Error(“Comment not found”);setTimeout(()=>eT.current?.focus(),0),eH({commentDatabaseId:S.databaseId,threadId:en,reaction:e,viewerHasReacted:t},{onError:()=>{eN(!1),ec({type:”error”,message:”Failed to react to comment”})}})},canReact:S.viewerCanReact})})]}),er&&(0,i.jsx)(ep,{comment:S,commentBodyRef:eE,filePath:R,isOutdated:r,isThreadResolved:j,databaseId:S.databaseId,suggestedChangesConfig:ea,applySuggestedChangesValidationData:er,viewerCanApplySuggestion:es?.viewerCanApplySuggestion})]}),ev&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:eS,onClose:e=>{“confirm”===e?(eL(!0),e$({commentId:S.id,threadId:en,filePath:R},{onError:()=>{ey(!1),ec({type:”error”,message:”Failed to delete comment”}),eL(!1)}})):(T&&I?.(T),ey(!1),eL(!1))},children:”Are you sure you want to delete this comment?”})]})]})]})})};function ey(){setTimeout(ej,800)}function ej(){return h.cg?.location.reload()}try{ev.displayName||(ev.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),A=y||!v.viewerCanDismiss,k=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]!==A||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:A,children:R}),(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[“Dismissing the “,_,” will mark this conversation as resolved.”]})]}),b[5]=N,b[6]=A,b[7]=D,b[8]=_,b[9]=R,b[10]=n):n=b[10],b[11]!==N||b[12]!==k||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:k,children:R})}),b[11]=N,b[12]=k,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}},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),A=y.GF[w.annotationLevel];return C[0]!==A.borderColor?(t=(0,h.$)(“p-1 bgColor-default”,A.borderColor,g),C[0]=A.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(A)},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 A(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:()=>e9,C:()=>tt});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”;var v=n(73017);let y=”container-xl px-3 px-md-4 px-lg-5″,j=”px-3 px-md-4 px-lg-5″,C=(0,a.Z6)()?function(e){let t,n,a,s,l,o,C,w,N,S,L,D,I=(0,r.c)(44),{repository:_,pullRequest:R,pageVariant:A}=e,{isSticky:k,observe:E,unobserve:T}=(0,c.a)(),O=”condensed”===A?y:j,P=k&&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)(v.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?(C=(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]=C):C=I[29],I[30]!==n||I[31]!==a||I[32]!==C?(w=(0,i.jsxs)(d.z.TitleArea,{className:n,children:[a,C]}),I[30]=n,I[31]=a,I[32]=C,I[33]=w):w=I[33],I[34]!==t||I[35]!==w?(N=(0,i.jsx)(d.z,{className:t,children:w}),I[34]=t,I[35]=w,I[36]=N):N=I[36],I[37]===Symbol.for(“react.memo_cache_sentinel”)?(S={visibility:”hidden”,height:”1px”},I[37]=S):S=I[37],I[38]!==E||I[39]!==T?(L=(0,i.jsx)(p.X,{sx:S,onObserve:E,onUnobserve:T}),I[38]=E,I[39]=T,I[40]=L):L=I[40],I[41]!==N||I[42]!==L?(D=(0,i.jsxs)(i.Fragment,{children:[N,L]}),I[41]=N,I[42]=L,I[43]=D):D=I[43],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?y:j,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)(v.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,{sx:{visibility:”hidden”,height:”1px”},onObserve:r,onUnobserve:s})]})};try{C.displayName||(C.displayName=”StickyPullRequestHeader”)}catch{}var w=n(96540),N=n(21373),S=n(26607),L=n(84268),D=n(34261),I=n(11680),_=n(72579);let R=(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)(I.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)(I.l.Description,{children:[“The head ref may contain hidden characters:”,” “,(0,i.jsxs)(_.A,{as:”span”,children:[‘”‘,t,'”‘]})]})}),a[2]=t,a[3]=n):n=a[3],n}:function({pullRequest:e}){return(0,i.jsx)(I.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)(I.l.Description,{children:[“The head ref may contain hidden characters:”,” “,(0,i.jsxs)(_.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{R.displayName||(R.displayName=”PullRequestHiddenCharactersBanner”)}catch{}var k=n(81960),E=n(19415),T=n(97665),O=n(94747),P=n(96379);let F=(0,a.Z6)()?function(){let e,t=(0,r.c)(3),n=(0,D.f)(),i=(0,T.jE)();return t[0]!==n||t[1]!==i?(e={networkMode:”always”,mutationFn:M,onSuccess:()=>{i.setQueryData(n,$)}},t[0]=n,t[1]=i,t[2]=e):e=t[2],(0,O.n)(e)}:function(){let e=(0,D.f)(),t=(0,T.jE)();return(0,O.n)({networkMode:”always”,mutationFn:({dismissPath:e})=>(0,P.Sr)(e,{method:”POST”}),onSuccess:()=>{t.setQueryData(e,e=>{let t={…e};return t.bannersData.banners.dependabotAutomatedSecurityUpdates.showOnboardingPopover=!1,t})}})};function $(e){let t={…e};return t.bannersData.banners.dependabotAutomatedSecurityUpdates.showOnboardingPopover=!1,t}function M(e){let{dismissPath:t}=e;return(0,P.Sr)(t,{method:”POST”})}let B=(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,w.useState)(!0),{mutate:g}=F();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)(k.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)(L.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)(N.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)(L.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)(E.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)(E.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,w.useState)(!0),{mutate:a}=F();return(0,i.jsx)(E.A,{className:”mt-2″,open:t,children:(0,i.jsxs)(E.A.Content,{className:”Popover-message Popover-message–large”,children:[(0,i.jsx)(k.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)(L.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)(N.Q,{block:!1,onClick:()=>{a({dismissPath:e.dismissNoticePath}),n(!1)},children:”Got it!”}),(0,i.jsx)(L.A,{className:”ml-3″,href:e.helpURL,”aria-label”:”Learn more about Dependabot security updates”,children:”Learn more”})]})]})})};try{B.displayName||(B.displayName=”PullRequestAutomatedSecurityOnboarding”)}catch{}var V=n(33578);let U=(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)(v.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)(v.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===V.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 y=s;m[13]!==y||m[14]!==x||m[15]!==b||m[16]!==h.state?(l=()=>h.state===V.Q.Open?x():`This pull request ${b()} ${y()}`,m[13]=y,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)(I.l,{“aria-label”:”Automated Security Update Banner”,variant:”info”,title:”Automated security update”,hideTitle:!0,children:(0,i.jsx)(I.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)(B,{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)(I.l,{“aria-label”:”Automated Security Update Banner”,variant:”info”,title:”Automated security update”,hideTitle:!0,children:(0,i.jsx)(I.l.Description,{children:(()=>{if(t.state!==V.Q.Open)return`This pull request ${t.state===V.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)(v.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)(v.JR,{as:”span”,html:t})}})()})}),e.showOnboardingPopover&&(0,i.jsx)(B,{onBoardingProps:e.onboardingBannerProps})]})};function G(e){return`${e}`}try{U.displayName||(U.displayName=”PullRequestAutomatedSecurityUpdateBanner”)}catch{}var H=n(79634),q=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,H.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,q.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)(L.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)(L.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)(I.l,{className:”d-flex flex-row width-full”,variant:”warning”,title:”Dependabot updates are paused”,children:(0,i.jsx)(I.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,H.X)().helpUrl}/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates#about-automatic-deactivation-of-dependabot-updates`,a=`${(0,q.SHX)({owner:e.ownerLogin,repo:e.name,action:”pulls”})}/app%2Fdependabot`;return(0,i.jsx)(I.l,{className:”d-flex flex-row width-full”,variant:”warning”,title:”Dependabot updates are paused”,children:(0,i.jsx)(I.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)(L.A,{inline:!0,href:a,children:”See open Dependabot pull requests”}),” “,”or”,”\xa0″,(0,i.jsx)(L.A,{inline:!0,href:n,children:”learn more about pausing of activity.”})]})})})};try{z.displayName||(z.displayName=”PullRequestPausedDependabotBanner”)}catch{}let K=(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)(R,{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===V.Q.Open&&(0,i.jsx)(U,{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)(R,{pullRequest:t}),e.banners.pausedDependabotUpdate.render&&(0,i.jsx)(z,{repository:n}),e.banners.dependabotAutomatedSecurityUpdates.render&&t.state===V.Q.Open&&(0,i.jsx)(U,{dependabotUpdates:e.banners.dependabotAutomatedSecurityUpdates,pullRequest:t})]})};try{K.displayName||(K.displayName=”PullRequestBanners”)}catch{}var W=n(86877),Z=n(99511),Q=n(46251);function X(e){let[t,n]=(0,w.useState)(e),i=(0,w.useRef)(t);return i.current=t,[t,(0,w.useCallback)(e=>{e!==i.current&&n(e)},[])]}var J=n(20622),Y=n(53885);let ee=(0,a.Z6)()?function(){let e,t,n,i=(0,r.c)(8),a=(0,T.jE)(),s=(0,Y.e)(J.uT.updateTitle),l=(0,D.f)();return i[0]!==s?(e=e=>{let{id:t,title:n}=e;return(0,P.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,O.n)(n)}:function(){let e=(0,T.jE)(),t=(0,Y.e)(J.uT.updateTitle),n=(0,D.f)();return(0,O.n)({networkMode:”always”,mutationFn:({id:e,title:n})=>(0,P.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 et(e,t){for(let n in e)if(e[n]!==t[n])return!1;return!0}let en=(0,a.Z6)()?function(e,t){let n,i,a,s,l=(0,r.c)(11),o=void 0===t?et:t,[d,c]=(0,w.useState)(!1),u=(0,w.useRef)(e),m=(0,w.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=et){let[n,i]=(0,w.useState)(!1),a=(0,w.useRef)(e),r=(0,w.useRef)(e),s=(0,w.useCallback)(()=>{let e=!t(a.current,r.current);e!==n&&i(e)},[t,n]);return[n,(0,w.useCallback)(e=>{r.current={…r.current,…e},s()},[s]),(0,w.useCallback)(e=>{a.current={…a.current,…e},s()},[s])]},ei=”Title can’t be blank”,ea=”Edit Pull Request Title”;function er(e){return`Title can’t be longer than 256 characters (currently ${e.length} characters)`}function es(e){return e.trim().length>0&&e.length<=256}let el=(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,w.useState)(x),[C,S]=X(!0),[L,D]=(0,w.useState)(null);g[0]!==x?(t={title:x},g[0]=x,g[1]=t):t=g[1];let[I,_]=en(t),R=(0,w.useRef)(null),{mutate:A,isPending:k}=ee();g[2]!==_||g[3]!==S?(n=e=>{j(e.target.value),_({title:e.target.value}),S(es(e.target.value))},g[2]=_,g[3]=S,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]!==A||g[9]!==v||g[10]!==b||g[11]!==y?(s=e=>{(e.preventDefault(),D(null),C)?C&&!I?v():A({id:b,title:y},{onError:e=>T(e.message),onSuccess:()=>v()}):R.current?.focus()},g[6]=I,g[7]=C,g[8]=A,g[9]=v,g[10]=b,g[11]=y,g[12]=s):s=g[12];let O=s,P=!C||k;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)(W.A.Label,{visuallyHidden:!0,children:ea}),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)(Z.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)(eo,{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)(Q.B.Item,{grow:!0,children:(0,i.jsxs)(W.A,{children:[o,d,c]})}),g[23]=d,g[24]=c,g[25]=u):u=g[25],g[26]!==P?(m=(0,i.jsx)(Q.B.Item,{children:(0,i.jsx)(N.Q,{name:”Save”,type:”submit”,disabled:P,children:”Save”})}),g[26]=P,g[27]=m):m=g[27],g[28]!==k||g[29]!==v?(f=(0,i.jsx)(Q.B.Item,{children:(0,i.jsx)(N.Q,{variant:”invisible”,onClick:v,disabled:k,children:”Cancel”})}),g[28]=k,g[29]=v,g[30]=f):f=g[30],g[31]!==m||g[32]!==f?(h=(0,i.jsx)(Q.B.Item,{children:(0,i.jsxs)(Q.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)(Q.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,w.useState)(e),[s,l]=X(!0),[o,d]=(0,w.useState)(null),[c,u]=en({title:e}),m=(0,w.useRef)(null),{mutate:f,isPending:h}=ee(),p=!s||h;return(0,i.jsxs)(Q.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)(Q.B.Item,{grow:!0,children:(0,i.jsxs)(W.A,{children:[(0,i.jsx)(W.A.Label,{visuallyHidden:!0,children:ea}),(0,i.jsx)(Z.A,{autoFocus:!0,block:!0,className:”f4″,contrast:!0,onChange:e=>{r(e.target.value),u({title:e.target.value}),l(es(e.target.value))},ref:m,validationStatus:s?void 0:”error”,value:a}),(0,i.jsx)(eo,{isValid:s,saveErrorMessage:o,title:a})]})}),(0,i.jsx)(Q.B.Item,{children:(0,i.jsxs)(Q.B,{direction:”horizontal”,gap:”condensed”,children:[(0,i.jsx)(Q.B.Item,{children:(0,i.jsx)(N.Q,{name:”Save”,type:”submit”,disabled:p,children:”Save”})}),(0,i.jsx)(Q.B.Item,{children:(0,i.jsx)(N.Q,{variant:”invisible”,onClick:n,disabled:h,children:”Cancel”})})]})})]})},eo=(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?ei:l.length>256?er(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)(W.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)(W.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)(W.A.Validation,{variant:”error”,children:t}):null:(0,i.jsx)(W.A.Validation,{variant:”error”,children:0===n.trim().length?ei:n.length>256?er(n):void 0})};try{el.displayName||(el.displayName=”PullRequestEditTitleForm”)}catch{}try{eo.displayName||(eo.displayName=”DisplayError”)}catch{}var ed=n(38621),ec=n(57478),eu=n(1481),em=n(66108),ef=n(61526),eh=n(69599),ep=n(43073),eg=n(13360),ex=n(97286);let eb=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{basePageDataUrl:n}=(0,s.Yu)(),i=`basePageDataURL:${n}`;return t[0]!==i?(e=[J.uT.tabCounts,i],t[0]=i,t[1]=e):e=t[1],e}:function(){let{basePageDataUrl:e}=(0,s.Yu)();return[J.uT.tabCounts,`basePageDataURL:${e}`]},ev=(0,a.Z6)()?function(e){let t,n,i=(0,r.c)(6),a=(0,Y.e)(J.uT.tabCounts),s=eb();return i[0]!==a?(t=async()=>{let e=await (0,P.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,ex.I)(n)}:function(e){let t=(0,Y.e)(J.uT.tabCounts),n=eb();return(0,ex.I)({queryKey:n,queryFn:async()=>{let e=await (0,P.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})};var ey=n(66446);let ej=”PullRequestHeaderNavigation-module__overrideLineHeight–AJ90h”,eC=”PullRequestHeaderNavigation-module__muteWhenUnselected–F0UGO”,ew=”PullRequestHeaderNavigation-module__counterLoading–K6XhJ”;var eN=n(91747),eS=n(37212),eL=n(72501),eD=n(66559),eI=n(73870);let e_=(0,a.Z6)()?function(e){let t,n=(0,r.c)(8),{pullRequest:a,repository:s,urls:l}=e;if((0,ep.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)(eR,{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,ep.E)()?(0,i.jsx)(eA,{pullRequest:e,repository:t,urls:n}):(0,i.jsx)(eR,{pullRequest:e,repository:t,urls:n})},eR=(0,a.Z6)()?function(e){let t,n=(0,r.c)(5),{pullRequest:a,repository:s,urls:l}=e,{data:o}=ev();return n[0]!==o||n[1]!==a||n[2]!==s||n[3]!==l?(t=(0,i.jsx)(ek,{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}=ev();return(0,i.jsx)(ek,{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,eg.xX)(ey.j,”tabCounts”),d=(0,eN.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)(ek,{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,eg.xX)(ey.j,”tabCounts”),r=(0,eN.u)(“combined_pr_changes_route”);return(0,i.jsx)(ek,{labelCounts:a,pullRequest:e,repository:t,urls:n,combinedPrChangesRoute:r})},ek=(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!==_&&_,A=(0,ef.zy)();N[0]!==A.pathname?(t=e=>A.pathname===e,N[0]=A.pathname,N[1]=t):t=N[1];let k=t;N[2]!==A.pathname?(n=e=>A.pathname===e||A.pathname.startsWith(`${e}/`),N[2]=A.pathname,N[3]=n):n=N[3];let E=n,T=`position-relative px-3 flex-shrink-0 text-normal ${eC} ${ej}`,{commitsCount:O}=S,P=I?””:ew;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,eh.G7)(“hypersight”),N[6]=s):s=N[6];let $=s,M=I?.filesChangedCount??0;N[7]!==F||N[8]!==k||N[9]!==I||N[10]!==S.number||N[11]!==L.name||N[12]!==L.ownerLogin||N[13]!==D.conversation?(l=(0,eh.G7)(“prs_conversations_react”)?(0,i.jsxs)(eu.A.Link,{as:em.N,to:eI.$.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}),selected:k(D.conversation),className:T,children:[(0,i.jsx)(ed.CommentDiscussionIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Conversation”,”number”==typeof I?.conversationCount&&(0,i.jsx)(ec.A,{className:F,children:I.conversationCount})]}):(0,i.jsxs)(eu.A.Link,{href:D.conversation,selected:k(D.conversation),className:T,”data-prefetch”:”eager”,children:[(0,i.jsx)(ed.CommentDiscussionIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Conversation”,”number”==typeof I?.conversationCount&&(0,i.jsx)(ec.A,{className:F,children:I.conversationCount})]}),N[7]=F,N[8]=k,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=eS.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)(ed.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)(ec.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)(eu.A.Link,{as:em.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=k(D.checks);return N[29]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,i.jsx)(ed.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)(ec.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)(eu.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?eD.g.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}):eL.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)(ed.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)(ec.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)(eu.A.Link,{as:em.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]!==k||N[56]!==D.walkthrough?(C=$&&(0,i.jsxs)(eu.A.Link,{href:D.walkthrough,selected:k(D.walkthrough),className:T,”data-prefetch”:”moderate”,children:[(0,i.jsx)(ed.CopilotIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Walkthrough”]}),N[55]=k,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)(eu.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,ef.zy)(),l=(0,w.useCallback)(e=>s.pathname===e,[s]),o=(0,w.useCallback)(e=>s.pathname===e||s.pathname.startsWith(`${e}/`),[s]),d=`position-relative px-3 flex-shrink-0 text-normal ${eC} ${ej}`,{commitsCount:c}=e,u=”fg-muted mr-2 d-none d-sm-inline-block”,m=(0,h.$)(“ml-2″,a?””:ew),f=(0,eh.G7)(“hypersight”),p=a?.filesChangedCount??0;return(0,i.jsxs)(eu.A,{“aria-label”:”Pull request navigation tabs”,”data-turbo”:”false”,children:[(0,eh.G7)(“prs_conversations_react”)?(0,i.jsxs)(eu.A.Link,{as:em.N,to:eI.$.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}),selected:l(n.conversation),className:d,children:[(0,i.jsx)(ed.CommentDiscussionIcon,{className:u}),”Conversation”,”number”==typeof a?.conversationCount&&(0,i.jsx)(ec.A,{className:m,children:a.conversationCount})]}):(0,i.jsxs)(eu.A.Link,{href:n.conversation,selected:l(n.conversation),className:d,”data-prefetch”:”eager”,children:[(0,i.jsx)(ed.CommentDiscussionIcon,{className:u}),”Conversation”,”number”==typeof a?.conversationCount&&(0,i.jsx)(ec.A,{className:m,children:a.conversationCount})]}),(0,i.jsxs)(eu.A.Link,{as:em.N,to:eS.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)(ed.GitCommitIcon,{className:u}),”Commits”,”number”==typeof c&&(0,i.jsx)(ec.A,{className:”ml-2″,children:c})]}),(0,i.jsxs)(eu.A.Link,{href:n.checks,selected:l(n.checks),className:d,”data-prefetch”:”moderate”,children:[(0,i.jsx)(ed.ChecklistIcon,{className:u}),”Checks”,”number”==typeof a?.checksCount&&(0,i.jsx)(ec.A,{className:m,children:a.checksCount})]}),(0,i.jsxs)(eu.A.Link,{as:em.N,id:”prs-files-anchor-tab”,to:r?eD.g.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}):eL.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)(ed.FileDiffIcon,{className:u}),”Files changed”,a&&a.filesChangedCount?(0,i.jsx)(ec.A,{className:m,children:`${p}${a?.filesChangedCountLimitExceeded?”+”:””}`}):null]}),f&&(0,i.jsxs)(eu.A.Link,{href:n.walkthrough,selected:l(n.walkthrough),className:d,”data-prefetch”:”moderate”,children:[(0,i.jsx)(ed.CopilotIcon,{className:u}),”Walkthrough”]})]})};try{e_.displayName||(e_.displayName=”PullRequestHeaderNavigation”)}catch{}try{eR.displayName||(eR.displayName=”PullRequestHeaderNavigationNavigator”)}catch{}try{eA.displayName||(eA.displayName=”PullRequestHeaderNavigationData”)}catch{}try{ek.displayName||(ek.displayName=”PullRequestHeaderNavigationShared”)}catch{}var eE=n(89155),eT=n(5524),eO=n(10095),eP=n(49086),eF=n(26410),e$=n(96459),eM=n(13107);let eB=”PullRequestCodeButton-module__ActionList_Divider–RyrUL”,eV=(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,eM.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)(eU,{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)(eP.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,eM.QS)(r.id,t);return(0,i.jsx)(eP.n,{primary:!1,size:”small”,isEnterprise:n,showCodespacesTab:e,codespacesPath:s,localTab:(0,i.jsx)(eU,{pullNumber:a})})},eU=(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,e$.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)(eO.A,{className:”mr-2″,icon:ed.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)(eF.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)(L.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)(eT.l.Divider,{className:eB}),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)(eO.A,{className:”mr-2″,icon:ed.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)(eT.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)(eT.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,e$.Z)();return(0,i.jsxs)(eT.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)(eO.A,{className:”mr-2″,icon:ed.TerminalIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:n})]}),(0,i.jsx)(eF.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)(L.A,{inline:!0,href:”https://cli.github.com”,target:”_blank”,”aria-label”:”Learn more about the GitHub CLI”,children:”Learn more”})]})]})}),(0,i.jsx)(eT.l.Divider,{className:eB}),(0,i.jsx)(eT.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)(eO.A,{className:”mr-2″,icon:ed.DesktopDownloadIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:”Checkout with GitHub Desktop”})]})})]})};try{eV.displayName||(eV.displayName=”PullRequestCodeButton”)}catch{}try{eU.displayName||(eU.displayName=”LocalTab”)}catch{}var eG=n(91618),eH=n(65510);let eq=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,Y.e)(J.uT.diffstat);return t[0]!==n?(e={queryKey:[J.uT.diffstat,n],queryFn:async()=>{let e=await (0,P.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,eH.U)(e)}:function(){let e=(0,Y.e)(J.uT.diffstat);return(0,eH.U)({queryKey:[J.uT.diffstat,e],queryFn:async()=>{let t=await (0,P.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,ep.E)()){let e;return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(eW,{}),t[0]=e):e=t[0],e}return t[1]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(eK,{}),t[1]=e):e=t[1],e}:function(){return(0,ep.E)()?(0,i.jsx)(eW,{}):(0,i.jsx)(eK,{})},eK=(0,a.Z6)()?function(){let e,t=(0,r.c)(4),{data:n}=eq(),{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}}=eq();return(0,i.jsx)(eG.z,{linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,linesChanged:e.linesChanged})},eW=(0,a.Z6)()?function(){let e,t=(0,r.c)(4),{data:n}=(0,eg.xX)(ey.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,eg.xX)(ey.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{eK.displayName||(eK.displayName=”NavigatorDiffStat”)}catch{}try{eW.displayName||(eW.displayName=”DataRouterDiffStat”)}catch{}let eZ=”PullRequestHeader-module__diffStatesWrapper–fPApA”,eQ=”PullRequestHeader-module__PreviewLabel–kauC0″;var eX=n(31675),eJ=n(81945),eY=n(21067),e0=n(71315);let e1=(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,D.W)(t);return(0,eE.F)(s),a[7]!==f||a[8]!==o?(n=(0,i.jsx)(e2,{…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,D.W)({aliveChannel:e,repository:r,pullRequest:a,bannersData:t,urls:s,user:l});return(0,eE.F)(e),(0,i.jsx)(e2,{…o,isFilesRoute:n})},e2=(0,a.Z6)()?function(e){let t,n,a,s,l,o,c,f,p,g,x,b,y,j,S,L,D,I,_,R=(0,r.c)(81),{bannersData:A,isFilesRoute:k,pullRequest:E,repository:T,urls:O,user:P}=e,[F,$]=(0,w.useState)(!1);R[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,eY.M3)(),R[0]=t):t=R[0];let M=t;R[1]!==k||R[2]!==T||R[3]!==O?(n=k&&(0,i.jsx)(e3,{repository:T,urls:O}),R[1]=k,R[2]=T,R[3]=O,R[4]=n):n=R[4],R[5]!==E.headBranch||R[6]!==E.number||R[7]!==T||R[8]!==P.canEditTitle?(a=M&&(0,i.jsxs)(i.Fragment,{children:[P.canEditTitle&&(0,i.jsx)(N.Q,{onClick:()=>$(!0),size:”small”,children:”Edit”}),(0,i.jsx)(eV,{codespacesEnabled:T.codespacesEnabled,headBranch:E.headBranch,isEnterprise:T.isEnterprise,pullRequestNumber:E.number,repository:T})]}),R[5]=E.headBranch,R[6]=E.number,R[7]=T,R[8]=P.canEditTitle,R[9]=a):a=R[9],R[10]!==n||R[11]!==a?(s=(0,i.jsxs)(i.Fragment,{children:[n,a]}),R[10]=n,R[11]=a,R[12]=s):s=R[12];let B=s;return R[13]!==F||R[14]!==E.number||R[15]!==E.title?(l=F&&(0,i.jsx)(el,{initialTitle:E.title,pullRequestNumber:E.number,onCloseForm:()=>$(!1)}),R[13]=F,R[14]=E.number,R[15]=E.title,R[16]=l):l=R[16],R[17]!==F||R[18]!==B?(o=!F&&(0,i.jsx)(“div”,{className:(0,h.$)(eX.A[“hide-on-desktop”],”pb-2 mb-3 flex-md-order-1 flex-shrink-0 d-flex flex-items-center gap-1″),children:B}),R[17]=F,R[18]=B,R[19]=o):o=R[19],R[20]!==F||R[21]!==E.number||R[22]!==E.title?(c=F&&(0,i.jsx)(“h1″,{className:”sr-only”,children:`${E.title} – #${E.number}`}),R[20]=F,R[21]=E.number,R[22]=E.title,R[23]=c):c=R[23],R[24]!==F||R[25]!==E.number||R[26]!==E.titleHtml||R[27]!==B?(f=!F&&(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)(v.JR,{className:”f1 text-normal markdown-title”,html:E.titleHtml}),(0,i.jsxs)(“span”,{className:”pl-2 fgColor-muted f1-light d-inline”,children:[“#”,E.number]})]})}),(0,i.jsx)(d.z.Actions,{className:(0,h.$)(eX.A[“hide-on-mobile”],”flex-items-center gap-1″),children:B})]}),R[24]=F,R[25]=E.number,R[26]=E.titleHtml,R[27]=B,R[28]=f):f=R[28],R[29]!==E.state?(p=(0,i.jsx)(u.u,{state:E.state}),R[29]=E.state,R[30]=p):p=R[30],R[31]!==F||R[32]!==E.author||R[33]!==E.baseBranch||R[34]!==E.commitsCount||R[35]!==E.headBranch||R[36]!==E.headRepositoryName||R[37]!==E.headRepositoryOwnerLogin||R[38]!==E.id||R[39]!==E.isInAdvisoryRepo||R[40]!==E.mergedBy||R[41]!==E.mergedByName||R[42]!==E.mergedTime||R[43]!==E.number||R[44]!==E.state||R[45]!==T.defaultBranch||R[46]!==T.id||R[47]!==T.name||R[48]!==T.ownerLogin||R[49]!==P.canChangeBase?(g=(0,i.jsx)(“div”,{className:”flex-1″,children:(0,i.jsx)(m.O,{author:E.author,mergedTime:E.mergedTime,baseBranch:E.baseBranch,baseRepositoryDefaultBranch:T.defaultBranch,baseRepositoryName:T.name,baseRepositoryOwnerLogin:T.ownerLogin,canChangeBase:P.canChangeBase,commitsCount:E.commitsCount,headBranch:E.headBranch,headRepositoryOwnerLogin:E.headRepositoryOwnerLogin,headRepositoryName:E.headRepositoryName,isInAdvisoryRepo:E.isInAdvisoryRepo,isEditing:F,mergedBy:E.mergedBy,mergedByName:E.mergedByName,repositoryId:T.id,pullRequestId:E.id,pullRequestNumber:E.number,setIsEditing:$,state:E.state})}),R[31]=F,R[32]=E.author,R[33]=E.baseBranch,R[34]=E.commitsCount,R[35]=E.headBranch,R[36]=E.headRepositoryName,R[37]=E.headRepositoryOwnerLogin,R[38]=E.id,R[39]=E.isInAdvisoryRepo,R[40]=E.mergedBy,R[41]=E.mergedByName,R[42]=E.mergedTime,R[43]=E.number,R[44]=E.state,R[45]=T.defaultBranch,R[46]=T.id,R[47]=T.name,R[48]=T.ownerLogin,R[49]=P.canChangeBase,R[50]=g):g=R[50],R[51]!==g||R[52]!==p?(x=(0,i.jsxs)(“div”,{className:”d-flex flex-column flex-sm-row gap-2 width-full flex-items-start flex-justify-between”,children:[p,g]}),R[51]=g,R[52]=p,R[53]=x):x=R[53],R[54]!==A||R[55]!==E||R[56]!==T?(b=(0,i.jsx)(K,{bannersData:A,pullRequest:E,repository:T}),R[54]=A,R[55]=E,R[56]=T,R[57]=b):b=R[57],R[58]!==x||R[59]!==b?(y=(0,i.jsxs)(d.z.Description,{className:”d-flex flex-column flex-items-start”,children:[x,b]}),R[58]=x,R[59]=b,R[60]=y):y=R[60],R[61]===Symbol.for(“react.memo_cache_sentinel”)?(j=(0,h.$)(eZ,”float-right d-none d-md-block”),R[61]=j):j=R[61],R[62]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,i.jsx)(“div”,{className:j,children:(0,i.jsx)(w.Suspense,{fallback:(0,i.jsx)(eJ.O,{width:”80px”}),children:(0,i.jsx)(ez,{})})}),R[62]=S):S=R[62],R[63]!==E||R[64]!==T||R[65]!==O?(L=(0,i.jsxs)(d.z.Navigation,{className:”pt-3 px-3 ml-n3 mr-n3″,children:[S,(0,i.jsx)(“div”,{className:”flex-auto”,children:(0,i.jsx)(e_,{pullRequest:E,repository:T,urls:O})})]}),R[63]=E,R[64]=T,R[65]=O,R[66]=L):L=R[66],R[67]!==y||R[68]!==L||R[69]!==c||R[70]!==f?(D=(0,i.jsxs)(d.z,{className:”flex-items-center”,children:[c,f,y,L]}),R[67]=y,R[68]=L,R[69]=c,R[70]=f,R[71]=D):D=R[71],R[72]!==k||R[73]!==E||R[74]!==T?(I=!k&&(0,i.jsx)(C,{repository:T,pullRequest:E,pageVariant:”condensed”}),R[72]=k,R[73]=E,R[74]=T,R[75]=I):I=R[75],R[76]!==D||R[77]!==I||R[78]!==l||R[79]!==o?(_=(0,i.jsxs)(i.Fragment,{children:[l,o,D,I]}),R[76]=D,R[77]=I,R[78]=l,R[79]=o,R[80]=_):_=R[80],_}:function({bannersData:e,isFilesRoute:t,pullRequest:n,repository:a,urls:r,user:s}){let[l,o]=(0,w.useState)(!1),c=(0,eY.M3)(),f=(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(e3,{repository:a,urls:r}),c&&(0,i.jsxs)(i.Fragment,{children:[s.canEditTitle&&(0,i.jsx)(N.Q,{onClick:()=>o(!0),size:”small”,children:”Edit”}),(0,i.jsx)(eV,{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)(el,{initialTitle:n.title,pullRequestNumber:n.number,onCloseForm:()=>o(!1)}),!l&&(0,i.jsx)(“div”,{className:(0,h.$)(eX.A[“hide-on-desktop”],”pb-2 mb-3 flex-md-order-1 flex-shrink-0 d-flex flex-items-center gap-1″),children:f}),(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)(v.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.$)(eX.A[“hide-on-mobile”],”flex-items-center gap-1″),children:f})]}),(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)(K,{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.$)(eZ,”float-right d-none d-md-block”),children:(0,i.jsx)(w.Suspense,{fallback:(0,i.jsx)(eJ.O,{width:”80px”}),children:(0,i.jsx)(ez,{})})}),(0,i.jsx)(“div”,{className:”flex-auto”,children:(0,i.jsx)(e_,{pullRequest:n,repository:a,urls:r})})]})]}),!t&&(0,i.jsx)(C,{repository:a,pullRequest:n,pageVariant:”condensed”})]})},e3=(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,P.DI)((0,q.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,eY.M3)(),u[2]=n):n=u[2];let p=n,g=e0.fV.pathname??””,x=e0.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)(S.A,{variant:”success”,className:eQ,children:”Preview”}),u[3]=s):s=u[3],u[4]!==h||u[5]!==a?(l=p&&(0,i.jsx)(L.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)(L.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,P.DI)((0,q.ZD8)({repo:e}),{body:t,method:”POST”})},r=(0,eY.M3)(),s=e0.fV.pathname??””,l=e0.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)(S.A,{variant:”success”,className:eQ,children:”Preview”}),r&&(0,i.jsx)(L.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)(L.A,{href:”https://gh.io/new-files-changed-feedback”,target:”_blank”,rel:”noopener noreferrer”,className:”no-wrap f6 text-normal”,children:”Feedback”})]})};try{e1.displayName||(e1.displayName=”LivePullRequestHeader”)}catch{}try{e2.displayName||(e2.displayName=”PullRequestHeader”)}catch{}try{e3.displayName||(e3.displayName=”FilesChangedFeedback”)}catch{}let e4=”/:owner/:repo/pull/:pr_number/files”,e5=”/:owner/:repo/pull/:pr_number/changes”;var e6=n(24798),e7=n(16795),e8=n(68245);let e9=(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)(te,{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)(te,{children:e.children})})},te=(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,e6.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)(tt,{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,e6.o)();return(0,i.jsx)(tt,{aliveChannel:t,pullRequest:n,bannersData:a,repository:r,urls:s,user:l,children:e.children})},tt=(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,ef.RQ)(`${e4}/*`),x=null!==(0,ef.RQ)(`${e5}/*`),b=g||x,v=b?j:y,C=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)(e7.b.Header,{divider:”none”,padding:”none”,children:(0,i.jsx)(e1,{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)(e7.b.Container,{className:w,children:[t,p]}),o[8]=p,o[9]=w,o[10]=t,o[11]=n):n=o[11],o[12]!==C||o[13]!==n?(a=(0,i.jsx)(e8.z,{value:C,children:n}),o[12]=C,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,ef.RQ)(`${e4}/*`),c=null!==(0,ef.RQ)(`${e5}/*`),u=d||c,m=u?j:y;return(0,i.jsx)(s.Kg,{basePageDataUrl:r.conversation,children:(0,i.jsx)(e8.z,{value:a.userNameDisplayConfiguration||void 0,children:(0,i.jsxs)(e7.b.Container,{className:`mt-4 ${m}`,children:[(0,i.jsx)(e7.b.Header,{divider:”none”,padding:”none”,children:(0,i.jsx)(e1,{aliveChannel:e,bannersData:n,isFilesRoute:u,repository:a,pullRequest:t,urls:r,user:l})}),o]})})})};try{e9.displayName||(e9.displayName=”App”)}catch{}try{te.displayName||(te.displayName=”Layout”)}catch{}try{tt.displayName||(tt.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})}},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=82181-adb105a16fe8.js.map