티스토리 수익 글 보기

티스토리 수익 글 보기

“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,30678,31146,34313,35168,36820,37402,37415,38074,41357,45338,48221,48727,49940,50531,52296,53345,54501,57293,57431,58281,59485,60229,64492,65404,65995,71282,71556,73369,73560,73575,74327,75057,76326,76413,76512,77589,78927,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,{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,{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:()=>f,Ls:()=>N,Mk:()=>x,Po:()=>u,S4:()=>j,Yf:()=>D,a1:()=>w,a2:()=>l,dT:()=>S,dv:()=>h,j2:()=>y,oH:()=>o,qK:()=>m,qX:()=>d,u6:()=>c,x_:()=>p});var i=n(13083),a=n(61583),r=n(66358),s=n(36729);function l(e,t,n){return”left”===n?!u(e)&&e.left===t:!u(e)&&(0,i.XU)(e.type)===n&&e.right===t}function o(e,t){return”LEFT”===t?`L${e}`:`R${e}`}function d(e,t,n){let i=`-${u(t)||”number”!=typeof t.left?”empty”:t.left}`,a=n?`-${u(n)||”number”!=typeof n.right?”empty”:n.right}`:””;return`${e}${i}${a}`}function c(e,t){return`${e}-${t}`}function u(e){return void 0===e||!!e&&e===s.Vv}function m(e){return!!e&&e!==s.Vv}function f(e){return”CONTEXT”===e.type}function h(e,t){return t===r.w$.Empty||t===r.w$.Hunk?[e,void 0]:g(e,r.JF[t])}function p(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 g(e,n)}function g(e,t){if(!t||!e.startsWith(t))return[e,void 0];let n=e[0];return[e.substring(1),n]}function x(e){let t=[],n=[],i=()=>{for(;t.length=r?(0,a.j$)(t):function(e,t){let n=b(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(u(e)||!e)return!1;let n=t.leftLines.concat(t.rightLines),i=n.filter(e=>!u(e)).map(e=>e.key),a=e.key;return n.length>0&&i.includes(a)?n.every(e=>!!u(e)||C.includes(e.type)):!!u(e)||C.includes(e.type)},N=e=>e?e.filter(e=>!u(e)).map(e=>{var t;let[n]=p((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(!u(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;if(n)return””;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 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})},3536:(e,t,n)=>{n.d(t,{I:()=>d,d_:()=>c,wu:()=>o});var i=n(68273),a=n(16522),r=n(96379),s=n(96540),l=n(4095);let o=(0,i.kw)()?function(e,t){let n,i,o=(0,a.c)(5),[d,c]=(0,s.useState)(l.UI);return o[0]!==e?(n=()=>{if(!e)return;let t=!1;return(async()=>{c(l.UI);let n=await (0,r.Sr)(e);if(!t)try{if(n.ok){let e=await n.json();e.loading=!1,e&&c(e)}else c(l.Xx)}catch{c(l.Xx)}})(),function(){t=!0}},o[0]=e,o[1]=n):n=o[1],o[2]!==t||o[3]!==e?(i=[e,t],o[2]=t,o[3]=e,o[4]=i):i=o[4],(0,s.useEffect)(n,i),d}:function(e,t){let[n,i]=(0,s.useState)(l.UI);return(0,s.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{i(l.UI);let n=await (0,r.Sr)(e);if(!t)try{if(n.ok){let e=await n.json();e.loading=!1,e&&i(e)}else i(l.Xx)}catch{i(l.Xx)}})(),function(){t=!0}},[e,t]),n},d=(0,i.kw)()?function(e){let t,n,i=(0,a.c)(3),[l,o]=(0,s.useState)(void 0);return i[0]!==e?(t=()=>{e&&(async()=>{let t=await (0,r.Sr)(e);try{if(t.ok){let e=await t.json();e&&o(e.data)}}catch{}})()},n=[e],i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,s.useEffect)(t,n),l}:function(e){let[t,n]=(0,s.useState)(void 0);return(0,s.useEffect)(()=>{e&&(async()=>{let t=await (0,r.Sr)(e);try{if(t.ok){let e=await t.json();e&&n(e.data)}}catch{}})()},[e]),t};function c(e,t,n,i){let[a,o]=(0,s.useState)(l.UI),d=(0,s.useRef)([…Array(n)]),c=(0,s.useRef)(t);return(0,s.useEffect)(()=>{if(!e)return;let n=!1;async function i(t){let a=await (0,r.Sr)(`${e}?start_entry=${t}`);if(!n)try{if(a.ok){let e=await a.json();if(e){let t=0;for(let n=c.current;ni(e.nextIndex),0)):(c.current===e.nextIndex?e.error=!0:e.error=!1,o(e))}}else o(e=>({…e,loading:!1,error:!0,extraDiffEntries:d.current}))}catch{o(e=>({…e,loading:!1,deferredCommits:d.current}))}}return i(t),function(){n=!0}},[e,i,t]),(0,s.useEffect)(()=>{d.current=[],c.current=t},[e,i,t]),a}},4095:(e,t,n)=>{n.d(t,{M2:()=>c,NO:()=>u,UI:()=>l,Xx:()=>o,ej:()=>f,xs:()=>m});var i=n(74848),a=n(68273),r=n(16522),s=n(96540);let l={deferredCommits:[],renameHistory:null,loading:!0},o={deferredCommits:[],renameHistory:null,loading:!1},d=(0,s.createContext)(l),c=(0,a.kw)()?function(e){let t,n=(0,r.c)(3),{children:a,deferredData:s}=e;return n[0]!==a||n[1]!==s?(t=(0,i.jsx)(d,{value:s,children:a}),n[0]=a,n[1]=s,n[2]=t):t=n[2],t}:function({children:e,deferredData:t}){return(0,i.jsx)(d,{value:t,children:e})},u=(0,a.kw)()?function(e){let t,n=(0,r.c)(5),i=(0,s.useContext)(d),a=i.error;n[0]!==i.deferredCommits||n[1]!==e?(t=i.deferredCommits?.find(t=>t?.oid===e),n[0]=i.deferredCommits,n[1]=e,n[2]=t):t=n[2];let l=t;if(a&&void 0===l){let t;n[3]!==e?(t={oid:e,statusCheckStatus:void 0},n[3]=e,n[4]=t):t=n[4],l=t}return l}:function(e){let t=(0,s.useContext)(d),n=t.error,i=t.deferredCommits?.find(t=>t?.oid===e);return n&&void 0===i&&(i={oid:e,statusCheckStatus:void 0}),i},m=(0,a.kw)()?function(){return(0,s.useContext)(d).loading}:function(){return(0,s.useContext)(d).loading},f=(0,a.kw)()?function(){return(0,s.useContext)(d).renameHistory}:function(){return(0,s.useContext)(d).renameHistory};try{d.displayName||(d.displayName=”DeferredCommitDataContext”)}catch{}try{c.displayName||(c.displayName=”DeferredCommitDataProvider”)}catch{}},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”}},8624:(e,t,n)=>{n.d(t,{L:()=>o});var i=n(74848),a=n(16522),r=n(38621),s=n(26108),l=n(34164);n(96540);let o=e=>{let t,n,o,d=(0,a.c)(17),{ref:c,expanded:u,testid:m,ariaLabel:f,ariaControls:h,onToggleExpanded:p,alignment:g,dataHotkey:x,className:b,size:y,tooltipDirection:j,variant:C}=e,w=u?`collapse-${m}`:`expand-${m}`,N=u?”left”===g?r.SidebarExpandIcon:r.SidebarCollapseIcon:”left”===g?r.SidebarCollapseIcon:r.SidebarExpandIcon;d[0]!==p?(t=e=>{p(e)},d[0]=p,d[1]=t):t=d[1];let S=C??”invisible”;return d[2]!==b?(n=(0,l.$)(b,”fgColor-muted”),d[2]=b,d[3]=n):n=d[3],d[4]!==h||d[5]!==f||d[6]!==x||d[7]!==u||d[8]!==c||d[9]!==y||d[10]!==w||d[11]!==N||d[12]!==t||d[13]!==S||d[14]!==n||d[15]!==j?(o=(0,i.jsx)(s.K,{“aria-label”:f,tooltipDirection:j,ref:c,”data-testid”:w,”aria-expanded”:u,”aria-controls”:h,icon:N,”data-hotkey”:x,onClick:t,variant:S,size:y,className:n}),d[4]=h,d[5]=f,d[6]=x,d[7]=u,d[8]=c,d[9]=y,d[10]=w,d[11]=N,d[12]=t,d[13]=S,d[14]=n,d[15]=j,d[16]=o):o=d[16],o};o.displayName=”ExpandButton”},13071:(e,t,n)=>{n.d(t,{C:()=>l});var i=n(74848),a=n(44185),r=n(81945),s=n(42257);function l({deferredData:e,oid:t,repo:n,helpUrl:l}){let o=void 0===e,d=””;try{d=e?.statusCheckStatus?.short_text?.split(“checks”)[0]?.trim()||””}catch{}return(0,i.jsxs)(i.Fragment,{children:[o&&(0,i.jsx)(r.O,{className:”ml-2″,variant:”rounded”,width:”62px”}),e?.statusCheckStatus&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“span”,{className:”d-flex ml-2 mr-1″,children:”\xb7″}),(0,i.jsx)(s.d,{oid:t,status:e?.statusCheckStatus?.state,descriptionString:d,repo:n}),e?.signatureInformation&&e?.verifiedStatus!==”unsigned”&&(0,i.jsx)(“span”,{className:”d-flex ml-2″,children:”\xb7″})]}),e?.signatureInformation&&(0,i.jsx)(“div”,{className:”ml-2″,children:(0,i.jsx)(a.h,{commitOid:t,hasSignature:!0,verificationStatus:e.verifiedStatus,signature:{helpUrl:l,…e.signatureInformation}})})]})}try{l.displayName||(l.displayName=”DeferredCommitHeaderData”)}catch{}},13107:(e,t,n)=>{n.d(t,{NF:()=>b,QS:()=>f,VO:()=>g,wW:()=>y});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 y(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{y.displayName||(y.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:()=>S});var i=n(74848),a=n(16522),r=n(5524),s=n(96540);let l=e=>{let t,n,s,l,o,d,c,u,m,f,h,p,g,x,b=(0,a.c)(27);if(b[0]!==e){s=Symbol.for(“react.early_return_sentinel”);e:{let{ref:a,selected:g,…x}=e;if(x.renderItem){s=x.renderItem({selected:g,…x});break e}let{label:b,id:y,description:j,descriptionVariant:C,onSelect:w,renderDescription:N,className:S,trailingVisual:L,disabled:D}=x;p=L,t=r.l.Item,n=y,l=”option”,o=()=>{w({label:b,id:y,selected:g,description:j,descriptionVariant:C})},d=g,c=a,u=S,m=D,f=b,h=(j||N)&&(0,i.jsx)(r.l.Description,{variant:C,children:N?N():j})}b[0]=e,b[1]=t,b[2]=n,b[3]=s,b[4]=l,b[5]=o,b[6]=d,b[7]=c,b[8]=u,b[9]=m,b[10]=f,b[11]=h,b[12]=p}else t=b[1],n=b[2],s=b[3],l=b[4],o=b[5],d=b[6],c=b[7],u=b[8],m=b[9],f=b[10],h=b[11],p=b[12];return s!==Symbol.for(“react.early_return_sentinel”)?s:(b[13]!==p?(g=p?(0,i.jsx)(r.l.TrailingVisual,{children:p}):null,b[13]=p,b[14]=g):g=b[14],b[15]!==t||b[16]!==n||b[17]!==g||b[18]!==l||b[19]!==o||b[20]!==d||b[21]!==c||b[22]!==u||b[23]!==m||b[24]!==f||b[25]!==h?(x=(0,i.jsxs)(t,{role:l,onSelect:o,selected:d,ref:c,className:u,disabled:m,children:[f,h,g]},n),b[15]=t,b[16]=n,b[17]=g,b[18]=l,b[19]=o,b[20]=d,b[21]=c,b[22]=u,b[23]=m,b[24]=f,b[25]=h,b[26]=x):x=b[26],x)};l.displayName=”SelectItem”;let o=e=>{let t,n,l,o=(0,a.c)(18),{ref:h,selectionVariant:p,items:g,onSelect:x,controlled:b,showGroupHeading:y}=e;o[0]!==g?(t=()=>g.filter(c),o[0]=g,o[1]=t):t=o[1];let[j,C]=(0,s.useState)(t);o[2]!==g?(n=g.find(u),o[2]=g,o[3]=n):n=o[3];let w=n;if(o[4]!==b||o[5]!==w||o[6]!==g||o[7]!==x||o[8]!==h||o[9]!==j||o[10]!==p||o[11]!==y){let e,t=w?g.reduce(m,{}):null,n=g.filter(f),a=t&&Object.entries(t);o[13]!==b||o[14]!==x||o[15]!==j||o[16]!==p?(e=e=>{let{id:t}=e;if(x&&x(e),b)if(j.find(e=>e.id===t)){let e=j.filter(e=>e.id!==t);C(e),b(e)}else{let t=”multiple”===p?[…j,e]:[e];C(t),b(t)}},o[13]=b,o[14]=x,o[15]=j,o[16]=p,o[17]=e):e=o[17];let c=e;l=(0,i.jsx)(i.Fragment,{children:t?(0,i.jsxs)(i.Fragment,{children:[a?a.map((e,t)=>{let[n,l]=e;return(0,i.jsxs)(s.Fragment,{children:[(0,i.jsxs)(r.l.Group,{“aria-label”:l[0]?.groupTitle||`Group ${n}`,selectionVariant:p,children:[y?(0,i.jsx)(r.l.GroupHeading,{variant:”filled”,children:l[0]?.groupTitle||`Group ${n}`}):null,l.map((e,n)=>(0,i.jsx)(d,{selectedItems:j,onSelectToggle:c,controlled:b,ref:0===n&&0===t?h:void 0,…e},e.id))]},n),a.length>1&&t!==a.length-1?(0,i.jsx)(r.l.Divider,{}):null]},n)}):null,n.map(e=>(0,i.jsx)(d,{selectedItems:j,onSelectToggle:c,controlled:b,…e},e.id))]}):(0,i.jsx)(i.Fragment,{children:g.map((e,t)=>(0,i.jsx)(d,{selectedItems:j,onSelectToggle:c,controlled:b,ref:0===t?h:null,…e},e.id))})}),o[4]=b,o[5]=w,o[6]=g,o[7]=x,o[8]=h,o[9]=j,o[10]=p,o[11]=y,o[12]=l}else l=o[12];return l},d=e=>{let t,n,r,s,o,d,c,u,m,f,h,p,g,x=(0,a.c)(36);x[0]!==e?({ref:u,id:r,label:s,description:n,selectedItems:f,onSelectToggle:d,onSelect:o,controlled:t,selected:m,…c}=e,x[0]=e,x[1]=t,x[2]=n,x[3]=r,x[4]=s,x[5]=o,x[6]=d,x[7]=c,x[8]=u,x[9]=m,x[10]=f):(t=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=x[10]),x[11]!==n||x[12]!==r||x[13]!==s||x[14]!==d||x[15]!==c.descriptionVariant||x[16]!==m?(h=()=>{d({label:s,id:r,selected:m,description:n,descriptionVariant:c.descriptionVariant})},x[11]=n,x[12]=r,x[13]=s,x[14]=d,x[15]=c.descriptionVariant,x[16]=m,x[17]=h):h=x[17];let b=h;x[18]!==t||x[19]!==r||x[20]!==m||x[21]!==f?(p=t?f.some(e=>e.id===r):!!m,x[18]=t,x[19]=r,x[20]=m,x[21]=f,x[22]=p):p=x[22];let y=o||b;return x[23]!==n||x[24]!==r||x[25]!==s||x[26]!==c.className||x[27]!==c.descriptionVariant||x[28]!==c.disabled||x[29]!==c.renderDescription||x[30]!==c.renderItem||x[31]!==c.trailingVisual||x[32]!==u||x[33]!==p||x[34]!==y?(g=(0,i.jsx)(l,{label:s,id:r,description:n,descriptionVariant:c.descriptionVariant,selected:p,onSelect:y,className:c.className,renderItem:c.renderItem,ref:u,trailingVisual:c.trailingVisual,disabled:c.disabled,renderDescription:c.renderDescription}),x[23]=n,x[24]=r,x[25]=s,x[26]=c.className,x[27]=c.descriptionVariant,x[28]=c.disabled,x[29]=c.renderDescription,x[30]=c.renderItem,x[31]=c.trailingVisual,x[32]=u,x[33]=p,x[34]=y,x[35]=g):g=x[35],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 y=t?.cancel,j=t?.cancel?.content||”Cancel”;m[8]!==b||m[9]!==y||m[10]!==j?(o=(0,i.jsx)(h.Q,{onClick:b,…y,children:j}),m[8]=b,m[9]=y,m[10]=j,m[11]=o):o=m[11];let C=t?.save,w=t?.save?.content||”Save”;return m[12]!==p||m[13]!==C||m[14]!==w?(d=(0,i.jsx)(h.Q,{variant:”primary”,onClick:p,…C,children:w}),m[12]=p,m[13]=C,m[14]=w,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),y=n(81960),j=n(26108);let C=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)(y.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)(j.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{C.displayName||(C.displayName=”SelectHeader”)}catch{}var w=n(31604),N=n(57387);function S(e){let t,n,l,d,c,u,m,f,g,x,y,j,w,N,S,A,E=(0,a.c)(76),{variant:T,items:O,label:P,title:F,selectionVariant:$,onSelect:M,renderText:B,onSave:V,onCancel:U,selectable:H,buttonProps:G,outsideClick:q,onEscape:z,focusTarget:K,dialogProps:W,footerButtons:Z}=e,Q=void 0===T?”overlay”:T,X=void 0===F?”Select an item”:F,J=void 0===q?”save”:q,Y=void 0===z?”save”:z,ee=void 0===K?”first-target”:K,[et,en]=(0,s.useState)(!1),[ei,ea]=(0,s.useState)();E[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],E[0]=t):t=E[0];let[er,es]=(0,s.useState)(t),el=(0,s.useRef)(null),eo=(0,s.useId)(),ed=H?er:O.filter(k),ec=(0,s.useRef)(null);ei||(ea(O),es(O.filter(_))),E[1]!==O||E[2]!==U||E[3]!==V||E[4]!==er||E[5]!==H||E[6]!==ei?(n=(e,t)=>{if(“save”===e&&(V||H)){let e=H?t||er:O.filter(I),n=O.map(t=>e.find(e=>e.id===t.id)?{…t,selected:!0}:{…t,selected:!1});ea(n),V&&V(n)}else”cancel”===e&&U?U(ei||O):”cancel”===e&&H&&es(ei?.filter(D)||[]);en(!1)},E[1]=O,E[2]=U,E[3]=V,E[4]=er,E[5]=H,E[6]=ei,E[7]=n):n=E[7];let eu=n;E[8]!==eu?(l=()=>eu(“save”),E[8]=eu,E[9]=l):l=E[9];let em=l;E[10]!==eu?(d=()=>eu(“cancel”),E[10]=eu,E[11]=d):d=E[11];let ef=d;E[12]!==eu||E[13]!==er||E[14]!==H||E[15]!==$?(c=e=>{es(e),er&&H?.(e),”single”===$&&eu(“save”,e)},E[12]=eu,E[13]=er,E[14]=H,E[15]=$,E[16]=c):c=E[16];let eh=c;E[17]!==eu||E[18]!==Y||E[19]!==J||E[20]!==er?(u=e=>{“click-outside”===e||”anchor-click”===e||”close-button”===e?eu(J):”escape”===e&&eu(Y,er)},E[17]=eu,E[18]=Y,E[19]=J,E[20]=er,E[21]=u):u=E[21];let ep=u,eg=h.Q,ex=”overlay”===Q?b.TriangleDownIcon:null;E[22]!==et?(m=()=>en(!et),E[22]=et,E[23]=m):m=E[23];let eb=B?B():`${P}${!ed.length?””:`: ${ed.map(L).join(“, “)}`}`;E[24]!==eg||E[25]!==G||E[26]!==et||E[27]!==ex||E[28]!==m||E[29]!==eb?(f=(0,i.jsx)(eg,{trailingAction:ex,ref:ec,variant:”default”,onClick:m,”aria-haspopup”:”dialog”,”aria-expanded”:et,…G,children:eb}),E[24]=eg,E[25]=G,E[26]=et,E[27]=ex,E[28]=m,E[29]=eb,E[30]=f):f=E[30],E[31]!==eo||E[32]!==ef||E[33]!==X||E[34]!==Q?(g=”overlay”===Q?(0,i.jsx)(C,{id:eo,title:X,onClose:ef}):null,E[31]=eo,E[32]=ef,E[33]=X,E[34]=Q,E[35]=g):g=E[35];let ev=H&&ei?ei:O;E[36]!==V||E[37]!==M||E[38]!==H||E[39]!==$?(x=”single”!==$||V||H?M:e=>{M?.(e),en(!1)},E[36]=V,E[37]=M,E[38]=H,E[39]=$,E[40]=x):x=E[40];let ey=H?eh:void 0,ej=”first-item”===ee?el:null;return E[41]!==$||E[42]!==ev||E[43]!==x||E[44]!==ey||E[45]!==ej?(y=(0,i.jsx)(o,{selectionVariant:$,items:ev,onSelect:x,controlled:ey,ref:ej}),E[41]=$,E[42]=ev,E[43]=x,E[44]=ey,E[45]=ej,E[46]=y):y=E[46],E[47]!==$||E[48]!==y?(j=(0,i.jsx)(“div”,{className:”SimpleSelect-module__SelectBodyWrapper–Dre5i”,children:(0,i.jsx)(r.l,{role:”listbox”,selectionVariant:$,”aria-label”:”Selection”,children:y})}),E[47]=$,E[48]=y,E[49]=j):j=E[49],E[50]!==Z||E[51]!==V||E[52]!==ef||E[53]!==em||E[54]!==Q?(w=V&&”modal”!==Q?(0,i.jsx)(p,{onSave:em,onCancel:ef,footerButtons:Z}):null,E[50]=Z,E[51]=V,E[52]=ef,E[53]=em,E[54]=Q,E[55]=w):w=E[55],E[56]!==g||E[57]!==j||E[58]!==w||E[59]!==Q?(N=(0,i.jsxs)(“div”,{“data-container”:Q,className:”SimpleSelect-module__Wrapper–cFdti”,children:[g,j,w]}),E[56]=g,E[57]=j,E[58]=w,E[59]=Q,E[60]=N):N=E[60],E[61]!==W||E[62]!==ee||E[63]!==Z||E[64]!==eo||E[65]!==ep||E[66]!==et||E[67]!==ef||E[68]!==em||E[69]!==N||E[70]!==X||E[71]!==Q?(S=(0,i.jsx)(R,{headingId:eo,open:et,anchorRef:ec,onClose:ep,variant:Q,dialogProps:W,title:X,selectSave:em,selectCancel:ef,footerButtons:Z,focusTarget:ee,firstItem:el,children:N}),E[61]=W,E[62]=ee,E[63]=Z,E[64]=eo,E[65]=ep,E[66]=et,E[67]=ef,E[68]=em,E[69]=N,E[70]=X,E[71]=Q,E[72]=S):S=E[72],E[73]!==f||E[74]!==S?(A=(0,i.jsxs)(i.Fragment,{children:[f,S]}),E[73]=f,E[74]=S,E[75]=A):A=E[75],A}function L(e){return e.label}function D(e){return e.selected}function I(e){return e.selected}function _(e){return e.selected}function k(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:y}=e;return n[0]!==s||n[1]!==u||n[2]!==f||n[3]!==d||n[4]!==o||n[5]!==y||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)(w.T,{open:r,anchorRef:s,renderAnchor:null,overlayProps:{role:”dialog”,”aria-labelledby”:l,maxHeight:”large”,maxWidth:”medium”},focusZoneSettings:y||{disabled:!0},focusTrapSettings:{initialFocusRef:”first-item”===o?d:void 0},onClose:c,children:u}):(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(N.l,{renderBody:()=>(0,i.jsx)(N.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]=y,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{S.displayName||(S.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})},16549:(e,t,n)=>{n.d(t,{oO:()=>r7,Ao:()=>r6,Yf:()=>T.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),y=n(50625),j=n(93642);let C=”AddCommentEditor-module__AddCommentEditor–JFfip”,w=”AddCommentEditor-module__ConversationCommentBox–Q4U7y”,N=”AddCommentEditor-module__hideMarkdownFooter–sfStq”,S=”AddCommentEditor-module__showMarkdownFooter–ZyiXk”,L=”AddCommentEditor-module__isReplying–DYCp6″,D=”AddCommentEditor-module__condensed–cPcHQ”;var I=n(70109),_=n(27011),k=n(71323),R=n(97283),A=n(87134),E=n(13083),T=n(3038);function O({selectedLineRange:e,leftLines:t,rightLines:n}){let i=!!n,{startOrientation:a,endOrientation:r}=e,s=c(a).findIndex(t=>(0,T.a2)(t,e.startLineNumber,e.startOrientation)),l=c(r).findIndex(t=>(0,T.a2)(t,e.endLineNumber,e.endOrientation)),o=s>=0&&l>=0;function d(e){if(!o||(0,T.Po)(e))return!1;let t=c((0,E.XU)(e.type)).indexOf(e);return t>=s&&t<=l}function c(e){var a;return i&&"left"!==("string"==typeof(a=e)?a:(0,E.XU)(a.type))?n:t}let u=c("left").filter(e=>d(e));return{selectedRightLines:c(“right”).filter(e=>d(e)),selectedLeftLines:u}}var P=n(61583);let F=/^b:\d+-l:(?:\d+|null)-r:(?:\d+|null)$/;function $(e){return null!=e&&F.test(e)}function M(e){return`b:${e.blobLineNumber}-l:${e.left}-r:${e.right}`}function B({diffAnchor:e,diffLines:t,isSplitView:n,lineRange:i}){let a,r=new Set([]);if(0===t.length)return{selectedLineKeys:r};if(!i)return{selectedLineKeys:new Set([])};let{startLineNumber:s,startOrientation:l,endLineNumber:o,endOrientation:d}=i,c=t;if(n){let e=(0,T.Mk)(t);c=e.leftLines,a=e.rightLines}let u={diffAnchor:e,endLineNumber:o??s,endOrientation:d??l,startLineNumber:s,startOrientation:l},m=O({selectedLineRange:u,leftLines:c,rightLines:a});for(let e=0;e{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=K(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)(G,{value:n.current,children:e})},K=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)=>(t.key&&(e[t.key]=t),e),{}),{selectedLineKeys:o,selectedLineRange:d,startOrientation:c}=B({diffAnchor:e,diffLines:n,isSplitView:a,lineRange:function(e){let t=(0,P.EW)(g.fV.hash);if(!t||t[1]!==e)return;let n=t[2]?”L”===t[2]?”left”:”right”:void 0,i=t[3]?parseInt(t[3]):void 0,a=t[4]?”L”===t[4]?”left”:”right”:void 0,r=t[5]?parseInt(t[5]):void 0;if(n&&i)return{diffAnchor:e,endOrientation:a??n,endLineNumber:r??i,startOrientation:n,startLineNumber:i}}(e)}),u=U(o),m=V(o),f=n.reduce((e,t)=>{let n=t.key;return n&&o.has(n)&&(e[n]={isSelected:!0,isFirstSelected:u===n,isLastSelected:m===n}),e},{}),h=null;if(u){let e=l[u];if(e&&e.key&&c){let t=”left”===c?e.left:e.right;t&&(h={lineNumber:t,orientation:c,shouldStartConversation:!1,lineKey:e.key})}}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,T.Mk)(s().diffLines._diffLines);return O({selectedLineRange:e,leftLines:t.leftLines,rightLines:t.rightLines})},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)=>(t.key&&(e[t.key]=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;l=!function({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)}({current:o,currentOrientation:i,previous:s().diffLines._diffLinesHash[c.lineKey],previousOrientation:c.orientation})?{…u,startLineNumber:c.lineNumber,startOrientation:c.orientation,endLineNumber:(“left”===i?o?.left:o?.right)??-1,endOrientation:i}:{…u,startLineNumber:(“left”===i?o?.left:o?.right)??-1,startOrientation:i,endLineNumber:c.lineNumber,endOrientation:c.orientation};let{selectedLineKeys:m,selectedLineRange:f}=B({diffAnchor:e,diffLines:s().diffLines._diffLines,isSplitView:s().diffLines.isSplitView,lineRange:l}),h=U(m),p=V(m),x=Array.from(m).reduce((e,t)=>(e[t]={isFirstSelected:t===h,isLastSelected:t===p,isSelected:!0},e),{});if(!f?.endLineNumber||!f?.startLineNumber)return;let b=new H.J(f,t);g.cg?.dispatchEvent(b),r(e=>({diffLines:{…e.diffLines,selectedLineKeys:m,selectedLinesInfo:x,selectedLineRange:f}}),void 0,”addLineToSelection”),a(f)},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;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 H.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}=B({diffAnchor:e,diffLines:s().diffLines._diffLines,isSplitView:s().diffLines.isSplitView,lineRange:m}),p=U(f),x=V(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 y=new H.J(h,t);g.cg?.dispatchEvent(y),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{G.displayName||(G.displayName=”DiffStoreContext”)}catch{}try{z.displayName||(z.displayName=”DiffStoreProvider”)}catch{}let W=(0,a.GV)()?()=>q(em):()=>q(e=>e.diffLines.getSplitDiffLinesFromLineRange),Z=(0,a.GV)()?()=>q(ef):()=>q(e=>e.diffLines.getSelectedDiffLines),Q=(0,a.GV)()?()=>q(eh):()=>q(e=>e.diffLines.getDiffLinesInfo),X=(0,a.GV)()?()=>q(ep):()=>q(e=>e.diffLines.getfirstLineSelectionOnDrag),J=(0,a.GV)()?()=>q(eg):()=>q(e=>e.diffLines.getSelectedLineRange),Y=(0,a.GV)()?()=>q(ex):()=>q(e=>e.diffLines.hasSelectedLines),ee=(0,a.GV)()?()=>q(eb):()=>q(e=>e.hiddenFeatures),et=(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],q(t)}:e=>q(t=>!!e&&t.dialogMode.activeGridCellId===e),en=(0,a.GV)()?()=>q(ev):()=>q(e=>e.dialogModeActions),ei=(0,a.GV)()?()=>q(ey):()=>q(e=>e.diffLines.diffAnchor),ea=(0,a.GV)()?()=>q(ej):()=>q(e=>e.diffLines.fileLineCount),er={isSelected:!1,isFirstSelected:!1,isLastSelected:!1},es=(0,a.GV)()?e=>{let t,n=(0,r.c)(2);return n[0]!==e?(t=t=>e&&t.diffLines.selectedLinesInfo[e]||er,n[0]=e,n[1]=t):t=n[1],q(t)}:e=>q(t=>e&&t.diffLines.selectedLinesInfo[e]||er),el=(0,a.GV)()?()=>q(eC):()=>q(e=>e.diffLinesActions),eo=(0,a.GV)()?()=>q(ew):()=>q(e=>e.injectedContextLinesActions),ed=(0,a.GV)()?()=>q(eN):()=>q(e=>e.treeEntries),ec=(0,a.GV)()?()=>q(eS):()=>q(e=>e.getMoveNewCommentDataForLine),eu=(0,a.GV)()?()=>q(eL):()=>q(e=>e.addStartNewCommentOnLine);function em(e){return e.diffLines.getSplitDiffLinesFromLineRange}function ef(e){return e.diffLines.getSelectedDiffLines}function eh(e){return e.diffLines.getDiffLinesInfo}function ep(e){return e.diffLines.getfirstLineSelectionOnDrag}function eg(e){return e.diffLines.getSelectedLineRange}function ex(e){return e.diffLines.hasSelectedLines}function eb(e){return e.hiddenFeatures}function ev(e){return e.dialogModeActions}function ey(e){return e.diffLines.diffAnchor}function ej(e){return e.diffLines.fileLineCount}function eC(e){return e.diffLinesActions}function ew(e){return e.injectedContextLinesActions}function eN(e){return e.treeEntries}function eS(e){return e.getMoveNewCommentDataForLine}function eL(e){return e.addStartNewCommentOnLine}var eD=n(4559);function eI(){(0,eD.i)(“Selection Cleared”)}function e_({diffAnchor:e,endLineNumber:t,endOrientation:n,startLineNumber:i,startOrientation:a}){if(i&&t){var r;(0,P.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,eD.i)(`${“left”===r.startOrientation?”L”:”R”}${r.startLineNumber} selected.`):(0,eD.i)(`${“left”===r.startOrientation?”L”:”R”}${r.startLineNumber} to ${“left”===r.endOrientation?”L”:”R”}${r.endLineNumber} selected.`)}}var ek=n(3252),eR=n(71317);let eA=”comment”,eE=”review”,eT=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f,h,k,R,A,E,T,O,P,F,$,M=(0,r.c)(78),{batchingEnabled:B,condensed:V,fileLevelComment:U,filePath:H,focusOnMount:G,isReplying:q,lineNumber:z,onAddComment:K,onCancelComment:W,onPersistedCommentExists:Z,quotedText:Q,side:X,startLineNumber:J,threadId:Y,suggestedChangesConfig:ee,commentLineChangeConfig:et}=e,en=void 0===Q?””:Q,[ei,ea]=(0,l.useState)(en),[er,es]=(0,l.useState)(null),eo=(0,l.useRef)(en),[ed,ec]=(0,l.useState)(),eu=(0,l.useRef)(null),em=(0,l.useRef)(null),ef=(0,_.it)(),eh=(0,l.useRef)(void 0),{selectMultipleLines:ep,clearSelectedLines:eg}=el();M[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=e=>{(0,eR.k)(e??””,100),ec(e)},M[0]=t):t=M[0];let ex=t,eb=null!==er,ev=(0,_.Kp)(),{persistCommentToStorage:ey,removePersistedCommentFromStorage:ej,persistCommentOnGivenLineToStorage:eC}=(0,y.L)({diffSide:X,filePath:H,line:z,subjectId:ev,threadId:Y,handlePersistedCommentExists:e=>{let{text:t,shouldFocus:n,startLine:i,startSide:a,startLineKey:r,endLineKey:s}=e;if(t){if(ea(t),n&&eu.current&&(eu.current.focus(),eu.current.moveCursorToEnd(),ew({text:t,startLine:i,startSide:a,startLineKey:r,endLineKey:s}),i)){let e=”LEFT”===X?”left”:”right”;ep({endLineKey:s,endOrientation:e,startLineKey:r,startOrientation:e,firstLineSelectionOnDrag:{lineKey:r??”b:0-l:0-r:0″,lineNumber:z??0,orientation:e,shouldStartConversation:!1}},e_)}Z?.()}},fileLevelComment:!!U}),ew=ey;if(M[1]!==en?(n=()=>{en!==eo.current&&(eo.current=en,ea(en))},a=[en],M[1]=en,M[2]=n,M[3]=a):(n=M[2],a=M[3]),(0,l.useEffect)(n,a),M[4]!==eg||M[5]!==et||M[6]!==ei||M[7]!==H||M[8]!==z||M[9]!==W||M[10]!==eC||M[11]!==ej||M[12]!==ep||M[13]!==X?(s=()=>{if(et){if(null!==(0,ek.T)(ei))return void et.setErrorMessage(“Changing the line number of a comment with a suggested change is not supported.”);if(et.closeLineMovingDialog(),eC({text:ei,givenLineDiffSide:et.diffSide,givenFilePath:H,givenLine:et.endLineNumber,shouldBeFileLevelComment:et.isFileLevelComment,startLine:et.startLineNumber,startLineKey:et.startDiffLineKey,endLineKey:et.endDiffLineKey}),ej(),z!==et.endLineNumber||et.isFileLevelComment)et.startConversationOnNewLine(),W?.(!1);else if(et.endDiffLineKey&&et.startDiffLineKey&&eh.current!==et){eh.current=et;let e=”LEFT”===X?”left”:”right”;ep({endLineKey:et.endDiffLineKey,endOrientation:e,startLineKey:et.startDiffLineKey,startOrientation:e,firstLineSelectionOnDrag:{lineKey:et.startDiffLineKey??”b:0-l:0-r:0″,lineNumber:z??0,orientation:e,shouldStartConversation:!1}},e_)}else et.startDiffLineKey||eg()}},o=[eg,et,ei,H,z,W,eC,ej,ep,X],M[4]=eg,M[5]=et,M[6]=ei,M[7]=H,M[8]=z,M[9]=W,M[10]=eC,M[11]=ej,M[12]=ep,M[13]=X,M[14]=s,M[15]=o):(s=M[14],o=M[15]),(0,l.useEffect)(s,o),M[16]!==G?(c=()=>{if(G){let e=setTimeout(()=>{if(g.XC&&g.cg){if(em.current){let e=em.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"})}}eu.current&&(eu.current.focus(),eu.current.moveCursorToEnd())}},100);return()=>{window.clearTimeout(e)}}},d=[G],M[16]=G,M[17]=d,M[18]=c):(d=M[17],c=M[18]),(0,l.useEffect)(c,d),M[19]!==ei||M[20]!==eb||M[21]!==K||M[22]!==W||M[23]!==ej||M[24]!==ee?.sourceContentFromDiffLines){let e,t=e=>{let{submitBatch:t,action:n}=e,i=”Failed to save comment”;if(eb)return;if(!ei.trim())return void ex(`${i}: Body can’t be blank`);es(n),ec(void 0),ex(void 0);let a=(0,j.u)(ei,ee?.sourceContentFromDiffLines??””);if(!a.isValid){ex(a.errorMessage),ec(a.errorMessage),es(null);return}K?.({commentText:ei,onCompleted(){es(null),u()},onError(e){es(null),e.message&&(i=`${i}: ${e.message}`),ex(i)},submitBatch:t})};m=()=>{t({submitBatch:!1,action:eE})},f=()=>{t({submitBatch:!0,action:eA})},M[28]!==W||M[29]!==ej?(e=()=>{ej(),ea(“”),W?.()},M[28]=W,M[29]=ej,M[30]=e):e=M[30],u=e,M[19]=ei,M[20]=eb,M[21]=K,M[22]=W,M[23]=ej,M[24]=ee?.sourceContentFromDiffLines,M[25]=u,M[26]=m,M[27]=f}else u=M[25],m=M[26],f=M[27];M[31]!==ew||M[32]!==X||M[33]!==J?(h=e=>{ex(void 0),ew({text:e,startLine:J,startSide:J?X:void 0}),ea(e)},M[31]=ew,M[32]=X,M[33]=J,M[34]=h):h=M[34];let eN=h;M[35]!==f?(k={“pull-requests-conversations:submit-comment-and-review”:f},M[35]=f,M[36]=k):k=M[36],M[37]!==u||M[38]!==ei?(R=e=>{“Escape”!==e.key||ei.trim()?e.stopPropagation():(e.preventDefault(),u())},M[37]=u,M[38]=ei,M[39]=R):R=M[39];let eS=B?m:f,eL=V||q?N:S,eD=q&&L,eI=V&&D;return M[40]!==eL||M[41]!==eD||M[42]!==eI?(A=(0,b.$)(w,eL,eD,eI),M[40]=eL,M[41]=eD,M[42]=eI,M[43]=A):A=M[43],M[44]!==u||M[45]!==W?(E=W&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”default”,onClick:u,children:”Cancel”}),M[44]=u,M[45]=W,M[46]=E):E=M[46],M[47]!==B||M[48]!==ef||M[49]!==f||M[50]!==q||M[51]!==er?(T=!ef&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:B?”default”:”primary”,onClick:f,ref:em,loading:er===eA,children:q?”Reply”:”Comment”}),M[47]=B,M[48]=ef,M[49]=f,M[50]=q,M[51]=er,M[52]=T):T=M[52],M[53]!==B||M[54]!==ef||M[55]!==m||M[56]!==er?(O=B&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”primary”,onClick:m,loading:er===eE,children:ef?”Add review comment”:”Start a review”}),M[53]=B,M[54]=ef,M[55]=m,M[56]=er,M[57]=O):O=M[57],M[58]!==ei||M[59]!==ed||M[60]!==H||M[61]!==eN||M[62]!==eb||M[63]!==z||M[64]!==J||M[65]!==ee||M[66]!==eS||M[67]!==A||M[68]!==E||M[69]!==T||M[70]!==O?(P=(0,i.jsxs)(I.S,{ref:eu,label:”Add diff comment”,value:ei,onChange:eN,onPrimaryAction:eS,suggestedChangesConfig:ee,markdownErrorMessage:ed,lineNumber:z,filePath:H,startLineNumber:J,disabled:eb,className:A,children:[E,T,O]}),M[58]=ei,M[59]=ed,M[60]=H,M[61]=eN,M[62]=eb,M[63]=z,M[64]=J,M[65]=ee,M[66]=eS,M[67]=A,M[68]=E,M[69]=T,M[70]=O,M[71]=P):P=M[71],M[72]!==R||M[73]!==P?(F=(0,i.jsx)(“div”,{className:C,onKeyDown:R,children:P}),M[72]=R,M[73]=P,M[74]=F):F=M[74],M[75]!==k||M[76]!==F?($=(0,i.jsx)(x.tL,{commands:k,children:F}),M[75]=k,M[76]=F,M[77]=$):$=M[77],$}: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:k,suggestedChangesConfig:R,commentLineChangeConfig:A}){let[E,T]=(0,l.useState)(m),[O,P]=(0,l.useState)(null),F=(0,l.useRef)(m),[$,M]=(0,l.useState)(),B=(0,l.useRef)(null),V=(0,l.useRef)(null),U=(0,_.it)(),H=(0,l.useRef)(void 0),{selectMultipleLines:G,clearSelectedLines:q}=el(),z=(0,l.useCallback)(e=>{(0,eR.k)(e??””,100),M(e)},[M]),K=null!==O,W=(0,_.Kp)(),{persistCommentToStorage:Z,removePersistedCommentFromStorage:Q,persistCommentOnGivenLineToStorage:X}=(0,y.L)({diffSide:f,filePath:a,line:o,subjectId:W,threadId:k,handlePersistedCommentExists:({text:e,shouldFocus:t,startLine:n,startSide:i,startLineKey:a,endLineKey:r})=>{if(e){if(T(e),t&&B.current&&(B.current.focus(),B.current.moveCursorToEnd(),Z({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}},e_)}u?.()}},fileLevelComment:!!n});(0,l.useEffect)(()=>{m!==F.current&&(F.current=m,T(m))},[m]),(0,l.useEffect)(()=>{if(A){if(null!==(0,ek.T)(E))return void A.setErrorMessage(“Changing the line number of a comment with a suggested change is not supported.”);if(A.closeLineMovingDialog(),X({text:E,givenLineDiffSide:A.diffSide,givenFilePath:a,givenLine:A.endLineNumber,shouldBeFileLevelComment:A.isFileLevelComment,startLine:A.startLineNumber,startLineKey:A.startDiffLineKey,endLineKey:A.endDiffLineKey}),Q(),o!==A.endLineNumber||A.isFileLevelComment)A.startConversationOnNewLine(),c?.(!1);else if(A.endDiffLineKey&&A.startDiffLineKey&&H.current!==A){H.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}},e_)}else A.startDiffLineKey||q()}},[q,A,E,a,o,c,X,Q,G,f]),(0,l.useEffect)(()=>{if(r){let e=setTimeout(()=>{if(g.XC&&g.cg){if(V.current){let e=V.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"})}}B.current&&(B.current.focus(),B.current.moveCursorToEnd())}},100);return()=>{window.clearTimeout(e)}}},[r]);let J=({submitBatch:e,action:t})=>{let n=”Failed to save comment”;if(K)return;if(!E.trim())return void z(`${n}: Body can’t be blank`);P(t),M(void 0),z(void 0);let i=(0,j.u)(E,R?.sourceContentFromDiffLines??””);if(!i.isValid){z(i.errorMessage),M(i.errorMessage),P(null);return}d?.({commentText:E,onCompleted(){P(null),et()},onError(e){P(null),e.message&&(n=`${n}: ${e.message}`),z(n)},submitBatch:e})},Y=()=>{J({submitBatch:!1,action:eE})},ee=()=>{J({submitBatch:!0,action:eA})},et=(0,l.useCallback)(()=>{Q(),T(“”),c?.()},[c,Q]);return(0,i.jsx)(x.tL,{commands:{“pull-requests-conversations:submit-comment-and-review”:ee},children:(0,i.jsx)(“div”,{className:C,onKeyDown:e=>{“Escape”!==e.key||E.trim()?e.stopPropagation():(e.preventDefault(),et())},children:(0,i.jsxs)(I.S,{ref:B,label:”Add diff comment”,value:E,onChange:e=>{z(void 0),Z({text:e,startLine:h,startSide:h?f:void 0}),T(e)},onPrimaryAction:e?Y:ee,suggestedChangesConfig:R,markdownErrorMessage:$,lineNumber:o,filePath:a,startLineNumber:h,disabled:K,className:(0,b.$)(w,t||s?N:S,s&&L,t&&D),children:[c&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”default”,onClick:et,children:”Cancel”}),!U&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:e?”default”:”primary”,onClick:ee,ref:V,loading:O===eA,children:s?”Reply”:”Comment”}),e&&(0,i.jsx)(p.x,{className:”py-1 px-2″,variant:”primary”,onClick:Y,loading:O===eE,children:U?”Add review comment”:”Start a review”})]})})})};try{eT.displayName||(eT.displayName=”AddCommentEditor”)}catch{}var eO=n(21373),eP=n(57387),eF=n(15837),e$=n(86877),eM=n(33989),eB=n(30093),eV=n(94236),eU=n(5524);let eH=(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,y]=(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[j,C]=(0,l.useState)(t),[w,N]=(0,l.useState)(“LEFT”===g),[S,L]=(0,l.useState)(x?String(x):””),[D,I]=(0,l.useState)(p?String(p):””),[_,k]=(0,l.useState)(“”),R=ec(),A=(0,l.useRef)(null);u[3]!==D||u[4]!==R||u[5]!==w||u[6]!==j||u[7]!==h||u[8]!==S?(n=()=>{let e=R(eK(w,Number(D),”file”===j)),t=R(eK(w,Number(S),”file”===j)),n=e?.startNewComment,i=e?.diffLineKey,a=t?.diffLineKey;(eZ(“lineRange”===j?S:void 0,D)||”file”===j)&&n&&i?h(eW({isLeftSide:w,startLineNumber:”lineRange”===j?Number(S):void 0,endDiffLineKey:i,endLineNumber:Number(D),isFileLevelComment:”file”===j,startDiffLineKey:”lineRange”===j?a:void 0,startConversationOnNewLine:n,closeLineMovingDialog:()=>y(!1),setErrorMessage:e=>k(e)})):k(“Please enter a valid line number or range.”)},u[3]=D,u[4]=R,u[5]=w,u[6]=j,u[7]=h,u[8]=S,u[9]=n):n=u[9];let E=n;return u[10]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>y(!0),u[10]=a):a=u[10],u[11]!==m||u[12]!==f?(s=(0,i.jsx)(eO.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]!==D||u[15]!==_||u[16]!==b||u[17]!==w||u[18]!==j||u[19]!==S||u[20]!==E?(o=b&&(0,i.jsx)(eP.l,{onClose:()=>y(!1),returnFocusRef:A,title:”Add comment on”,width:”medium”,footerButtons:[{buttonType:”default”,content:”Cancel”,onClick:()=>{y(!1)}},{buttonType:”primary”,content:”Save”,onClick:E}],children:(0,i.jsxs)(eF.A,{name:”line-number-selection”,onChange:e=>{C(e)},children:[(0,i.jsx)(eF.A.Label,{}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eM.A,{value:”line”,defaultChecked:”line”===j}),(0,i.jsx)(e$.A.Label,{children:”Line number”}),”line”===j&&(0,i.jsxs)(e$.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(ez,{isLeftSelected:w,setIsLeftSelected:N}),(0,i.jsx)(eB.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:D,onChange:e=>I(e.target.value),onKeyDown:e=>{“Enter”===e.key&&E()}})]})]}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eM.A,{value:”lineRange”,defaultChecked:”lineRange”===j}),(0,i.jsx)(e$.A.Label,{children:”Line range”}),”lineRange”===j&&(0,i.jsxs)(e$.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(ez,{isLeftSelected:w,setIsLeftSelected:N}),(0,i.jsx)(eB.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:S,onChange:e=>L(e.target.value),onKeyDown:e=>{“Enter”===e.key&&E()}}),(0,i.jsx)(c.ArrowRightIcon,{className:”mt-2 mx-2″}),(0,i.jsx)(eB.A,{autoComplete:”off”,className:”ml-1″,”aria-label”:”Line number”,name:”lineNumber”,value:D,onChange:e=>I(e.target.value),onKeyDown:e=>{“Enter”===e.key&&E()}})]})]}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eM.A,{value:”file”,defaultChecked:”file”===j}),(0,i.jsx)(e$.A.Label,{children:”File”})]}),_&&(0,i.jsx)(eF.A.Validation,{variant:”error”,children:_})]})}),u[14]=D,u[15]=_,u[16]=b,u[17]=w,u[18]=j,u[19]=S,u[20]=E,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):””),[y,j]=(0,l.useState)(“”),C=ec(),w=(0,l.useRef)(null),N=(0,l.useCallback)(()=>{let e=C(eK(f,Number(x),”file”===u)),t=C(eK(f,Number(p),”file”===u)),i=e?.startNewComment,a=e?.diffLineKey,r=t?.diffLineKey;(eZ(“lineRange”===u?p:void 0,x)||”file”===u)&&i&&a?n(eW({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=>j(e)})):j(“Please enter a valid line number or range.”)},[C,f,x,u,p,n]);return(0,i.jsxs)(“div”,{className:”ml-1″,children:[(0,i.jsx)(eO.Q,{“aria-labelledby”:e,”aria-description”:”Select to change location”,ref:w,type:”button”,size:”small”,onClick:()=>d(!0),trailingAction:c.TriangleDownIcon,children:t}),o&&(0,i.jsx)(eP.l,{onClose:()=>d(!1),returnFocusRef:w,title:”Add comment on”,width:”medium”,footerButtons:[{buttonType:”default”,content:”Cancel”,onClick:()=>{d(!1)}},{buttonType:”primary”,content:”Save”,onClick:N}],children:(0,i.jsxs)(eF.A,{name:”line-number-selection”,onChange:e=>{m(e)},children:[(0,i.jsx)(eF.A.Label,{}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eM.A,{value:”line”,defaultChecked:”line”===u}),(0,i.jsx)(e$.A.Label,{children:”Line number”}),”line”===u&&(0,i.jsxs)(e$.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(ez,{isLeftSelected:f,setIsLeftSelected:h}),(0,i.jsx)(eB.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&&N()}})]})]}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eM.A,{value:”lineRange”,defaultChecked:”lineRange”===u}),(0,i.jsx)(e$.A.Label,{children:”Line range”}),”lineRange”===u&&(0,i.jsxs)(e$.A.Caption,{className:”d-flex align-items-center”,children:[(0,i.jsx)(ez,{isLeftSelected:f,setIsLeftSelected:h}),(0,i.jsx)(eB.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&&N()}}),(0,i.jsx)(c.ArrowRightIcon,{className:”mt-2 mx-2″}),(0,i.jsx)(eB.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&&N()}})]})]}),(0,i.jsxs)(e$.A,{children:[(0,i.jsx)(eM.A,{value:”file”,defaultChecked:”file”===u}),(0,i.jsx)(e$.A.Label,{children:”File”})]}),y&&(0,i.jsx)(eF.A.Validation,{variant:”error”,children:y})]})})]})},eG=”Left (L)”,eq=”Right (R)”,ez=(0,a.GV)()?function(e){let t,n,a,s,l,o=(0,r.c)(12),{isLeftSelected:d,setIsLeftSelected:c}=e,u=d?eG:eq;return o[0]!==u?(t=(0,i.jsx)(eV.W.Button,{children:u}),o[0]=u,o[1]=t):t=o[1],o[2]!==c?(n=(0,i.jsx)(eU.l.Item,{onSelect:()=>{c(!0)},children:eG}),o[2]=c,o[3]=n):n=o[3],o[4]!==c?(a=(0,i.jsx)(eU.l.Item,{onSelect:()=>{c(!1)},children:eq}),o[4]=c,o[5]=a):a=o[5],o[6]!==n||o[7]!==a?(s=(0,i.jsx)(eV.W.Overlay,{children:(0,i.jsxs)(eU.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)(eV.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?eG:eq;return(0,i.jsxs)(eV.W,{children:[(0,i.jsx)(eV.W.Button,{children:n}),(0,i.jsx)(eV.W.Overlay,{children:(0,i.jsxs)(eU.l,{children:[(0,i.jsx)(eU.l.Item,{onSelect:()=>{t(!0)},children:eG}),(0,i.jsx)(eU.l.Item,{onSelect:()=>{t(!1)},children:eq})]})})]})};function eK(e,t,n){return n?”F0″:`${e?”L”:”R”}${t}`}function eW(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 eZ(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{eH.displayName||(eH.displayName="ChangeCommentLineNumberButton")}catch{}try{ez.displayName||(ez.displayName="MoveCommentLineNumberDropdown")}catch{}var eQ=n(91747);let eX="diff-comment-positioning-",eJ=(0,a.GV)()?function(e){let t,n,a,s,o,f,p,g,x,b,y,j,C,w,N,S,L,D,I,_,k,R=(0,r.c)(56);if(R[0]!==e){let{addCommentDialogTitle:i,isLeftSide:r,fileLevelComment:l,filePath:d,focusOnMount:c,lineNumber:u,onAddComment:m,onClose:h,viewerData:j,threadsConnectionId:C,showOnCloseIcon:w,...N}=e;t=i,s=r,n=l,a=d,x=c,o=u,f=m,p=h,y=j,b=w,g=N,R[0]=e,R[1]=t,R[2]=n,R[3]=a,R[4]=s,R[5]=o,R[6]=f,R[7]=p,R[8]=g,R[9]=x,R[10]=b,R[11]=y}else t=R[1],n=R[2],a=R[3],s=R[4],o=R[5],f=R[6],p=R[7],g=R[8],x=R[9],b=R[10],y=R[11];let A=void 0===x||x,E=void 0===b||b,[T,O]=(0,l.useState)(void 0),P=(0,eQ.u)("move_new_comments_ui"),{disableDialogMode:F}=en();R[12]!==f?(j=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})},R[12]=f,R[13]=j):j=R[13];let $=j;R[14]!==F||R[15]!==p?(C=()=>{p?.(),F()},R[14]=F,R[15]=p,R[16]=C):C=R[16];let M=C,B=`${eX}${(0,l.useId)()}`,V=y.avatarUrl||””;R[17]!==V||R[18]!==y.login?(w=(0,i.jsx)(d.r,{alt:y.login,size:24,src:V,className:”mr-2″}),R[17]=V,R[18]=y.login,R[19]=w):w=R[19],R[20]!==t||R[21]!==n||R[22]!==P?(N=!P&&(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”})),R[20]=t,R[21]=n,R[22]=P,R[23]=N):N=R[23],R[24]!==t||R[25]!==B||R[26]!==n||R[27]!==s||R[28]!==o||R[29]!==P||R[30]!==g?(S=P&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,id:B,children:[(0,i.jsxs)(“div”,{className:”pt-1″,children:[“Add “,n?””:”a”,” comment on “]}),(0,i.jsx)(eH,{ariaLabelId:B,currentLineNumberText:n?”file”:t??””,baseEndLineNumber:o,baseStartLineNumber:g.startLineNumber,diffSide:s?”LEFT”:”RIGHT”,setCommentLineChangeConfig:O})]}),R[24]=t,R[25]=B,R[26]=n,R[27]=s,R[28]=o,R[29]=P,R[30]=g,R[31]=S):S=R[31],R[32]!==w||R[33]!==N||R[34]!==S?(L=(0,i.jsxs)(u.A,{as:”h4″,className:”f5 ml-1 pt-1 pb-2 d-flex”,children:[w,N,S]}),R[32]=w,R[33]=N,R[34]=S,R[35]=L):L=R[35],R[36]!==p||R[37]!==M||R[38]!==E?(D=p&&E&&(0,i.jsx)(m.K,{variant:”invisible”,icon:c.XIcon,onClick:M,”aria-label”:”Cancel”}),R[36]=p,R[37]=M,R[38]=E,R[39]=D):D=R[39],R[40]!==D||R[41]!==L?(I=(0,i.jsxs)(“div”,{className:”d-flex flex-justify-between flex-items-center”,children:[L,D]}),R[40]=D,R[41]=L,R[42]=I):I=R[42];let U=n??!1,H=s?”LEFT”:”RIGHT”;return R[43]!==T||R[44]!==a||R[45]!==A||R[46]!==$||R[47]!==o||R[48]!==M||R[49]!==g||R[50]!==U||R[51]!==H?(_=(0,i.jsx)(eT,{focusOnMount:A,condensed:!1,fileLevelComment:U,filePath:a,lineNumber:o,onAddComment:$,onCancelComment:M,commentLineChangeConfig:T,side:H,…g}),R[43]=T,R[44]=a,R[45]=A,R[46]=$,R[47]=o,R[48]=M,R[49]=g,R[50]=U,R[51]=H,R[52]=_):_=R[52],R[53]!==I||R[54]!==_?(k=(0,i.jsxs)(“div”,{className:”px-2 pb-2 pt-1″,children:[I,_]}),R[53]=I,R[54]=_,R[55]=k):k=R[55],k}: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[y,j]=(0,l.useState)(void 0),C=(0,eQ.u)(“move_new_comments_ui”),{disableDialogMode:w}=en(),N=()=>{f?.(),w()},S=`${eX}${(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″}),!C&&(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”})),C&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,id:S,children:[(0,i.jsxs)(“div”,{className:”pt-1″,children:[“Add “,n?””:”a”,” comment on “]}),(0,i.jsx)(eH,{ariaLabelId:S,currentLineNumberText:n?”file”:e??””,baseEndLineNumber:s,baseStartLineNumber:b.startLineNumber,diffSide:t?”LEFT”:”RIGHT”,setCommentLineChangeConfig:j})]})]}),f&&x&&(0,i.jsx)(m.K,{variant:”invisible”,icon:c.XIcon,onClick:N,”aria-label”:”Cancel”})]}),(0,i.jsx)(eT,{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:N,commentLineChangeConfig:y,side:t?”LEFT”:”RIGHT”,…b})]})};try{eJ.displayName||(eJ.displayName=”StartThreadComment”)}catch{}var eY=n(33671),e0=n(8934),e1=n(97286),e2=n(73017),e3=n(69726);let e4=”RichDiff-module__fileRendererViewport–EBwd1″,e5=”RichDiff-module__fileRendererIframe–svTsY”,e6=(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,e1.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:y,dependencyDiffPath:j}=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)(e3.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)(e2.vb,{html:b})}),d[21]=b,d[22]=e):e=d[22],e}if(y){let e;return d[23]!==y?(e=(0,i.jsx)(eY.default,{…y,viewportClassName:e4,iframeClassName:e5}),d[23]=y,d[24]=e):e=d[24],e}if(j){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)(e3.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]!==j?(t=(0,i.jsx)(“div”,{children:(0,i.jsx)(e0.x,{src:j,children:e})}),d[26]=j,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,e1.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)(e3.A,{size:”large”})}):l?(0,i.jsx)(“div”,{className:”prose-diff position-relative”,children:(0,i.jsx)(e2.vb,{html:l})}):o?(0,i.jsx)(eY.default,{…o,viewportClassName:e4,iframeClassName:e5}):d?(0,i.jsx)(“div”,{children:(0,i.jsx)(e0.x,{src:d,children:(0,i.jsxs)(“div”,{className:”text-center py-3″,children:[(0,i.jsx)(e3.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{e6.displayName||(e6.displayName=”RichDiff”)}catch{}var e7=n(59523),e8=n(19976),e9=n(84268),te=n(69599);let tt=”HiddenDiffPatch-module__gridColumnTemplate–gSfuk”,tn=(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:y,onLoadDiff:j,diffAnchor:C}=e,w=y&&x,[N,S]=(0,l.useState)(“initial”);p[0]!==j?(t=async()=>{try{S(“loading”),await j()}catch{S(“error”)}},p[0]=j,p[1]=t):t=p[1];let L=t;return p[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,b.$)(tt),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]!==N?(o=”loading”===N&&(0,i.jsx)(e3.A,{size:”medium”}),p[5]=N,p[6]=o):o=p[6],p[7]!==N?(d=”error”===N&&(0,i.jsx)(c.AlertIcon,{size:24}),p[7]=N,p[8]=d):d=p[8],p[9]!==N||p[10]!==L?(u=”initial”===N&&(0,i.jsx)(eO.Q,{className:”h4 mx-auto fgColor-accent”,variant:”invisible”,onClick:()=>{L(),S(“loading”)},children:”Load Diff”}),p[9]=N,p[10]=L,p[11]=u):u=p[11],p[12]!==g||p[13]!==x||p[14]!==y||p[15]!==N||p[16]!==L||p[17]!==w?(m=”error”===N?(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[“The contents of the file couldn’t be loaded.”,” “,(0,i.jsx)(e9.A,{inline:!0,as:”button”,onClick:()=>{L(),S(“loading”)},children:”Retry”})]}):(0,i.jsxs)(“span”,{className:”fgColor-muted mt-1″,children:[g,w&&(0,i.jsx)(e9.A,{inline:!0,href:y,children:x})]}),p[12]=g,p[13]=x,p[14]=y,p[15]=N,p[16]=L,p[17]=w,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]!==C||p[25]!==f?(h=(0,i.jsx)(“div”,{className:”px-3 py-4 fgColor-muted”,”data-diff-anchor”:C,children:f}),p[24]=C,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.$)(tt),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)(e3.A,{size:”medium”}),”error”===o&&(0,i.jsx)(c.AlertIcon,{size:24}),”initial”===o&&(0,i.jsx)(eO.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)(e9.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)(e9.A,{inline:!0,href:n,children:t})]})]})]})})};try{tn.displayName||(tn.displayName=”HiddenDiffPatch”)}catch{}let ti=”final-hunk-header-line”;function ta(e,t){return e.startBlobLineNumber-t.startBlobLineNumber}function tr(e,t){if(“HUNK”===e.type&&e.__id===ti)return{currentHunk:t[t.length-1],previousHunk:t[t.length-2]};let n=t.sort(ta).findIndex(t=>t.startBlobLineNumber<=e.blobLineNumber&&t.endBlobLineNumber>=e.blobLineNumber);return{currentHunk:t[n],nextHunk:t[n+1],previousHunk:t[n-1]}}function ts(e){let t,n=[],i=0;for(let a=1;a=0;)t=(0,tu._)(this,ty,tk).call(this,{rowIndex:e,columnIndex:s}),e–}if(“ArrowDown”===e){let e=r+1;for(;!t&&e<(0,to._)(this,th).length;)t=(0,tu._)(this,ty,tk).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,to._)(this,tp).get(this.focusedGridCell.cellId)?.[0];if(e)return this.focusedGridCell.columnIndex<=1&&!(0,to._)(this,tv)?(0,to._)(this,th)[e]?.[this.focusedGridCell.columnIndex+1]:this.focusedGridCell.columnIndex<2&&(0,to._)(this,tv)?(0,to._)(this,th)[e]?.[this.focusedGridCell.columnIndex+2]:(0,to._)(this,th)[e]?.[this.focusedGridCell.columnIndex-2]}clearLastSelectedCell(){this.lastSelectedGridCell=void 0}getFirstCodeCell(){let e=(0,to._)(this,th).find(e=>e[0]&&!e[0].isHunk);return e?.find(e=>!e.isEmpty)}getLastCodeCell(){let e=(0,to._)(this,th).slice().reverse().find(e=>e[0]&&!e[0].isHunk);return e?.slice().reverse().find(e=>!e.isEmpty)}hasLine(e,t,n){let i=(0,T.qX)((0,to._)(this,tb),e,t),a=(0,T.u6)(i,0),r=(0,to._)(this,tp).get(a);if(!r)return!1;let[s]=r;return!!n===(0,tu._)(this,tL,tP).call(this,s)}constructor(e,t,n,i,a){(0,tm._)(this,ty),(0,tm._)(this,tj),(0,tm._)(this,tC),(0,tm._)(this,tw),(0,tm._)(this,tN),(0,tm._)(this,tS),(0,tm._)(this,tL),(0,tm._)(this,tD),(0,tm._)(this,tI),(0,tm._)(this,t_),(0,td._)(this,th,{writable:!0,value:[]}),(0,td._)(this,tp,{writable:!0,value:new Map}),(0,td._)(this,tg,{writable:!0,value:new Set}),(0,tf._)(this,”focusedGridCell”,void 0),(0,tf._)(this,”lastSelectedGridCell”,void 0),(0,td._)(this,tx,{writable:!0,value:void 0}),(0,td._)(this,tb,{writable:!0,value:void 0}),(0,td._)(this,tv,{writable:!0,value:void 0}),(0,tc._)(this,tb,e),(0,tc._)(this,tv,t),(0,tu._)(this,tw,tE).call(this,n,i),this.focusFirstGridCell(a)}};function tk({rowIndex:e,columnIndex:t}){let n=(0,to._)(this,th)[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,to._)(this,tv):return n?.[t-2];case i?.orientation===”right”&&i.isEmpty&&!(0,to._)(this,tv):return n?.[t+1];default:return n?.[t]}}function tR(e){return Array.from((0,to._)(this,tg)).sort((e,t)=>e-t).find(t=>t>e)}function tA(e){return Array.from((0,to._)(this,tg)).sort((e,t)=>e-t).reverse().find(t=>t{0!==e.tabIndex&&(e.tabIndex=0)})}function tV(e,t,n){let i=[];for(let a=0;a{if(a&&document.activeElement){let r=tV(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,T.Po)(o)&&”HUNK”===o.type&&(i=(0,T.u6)((0,T.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,T.u6)((0,T.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),tB(a))}else if(“BUTTON”===document.activeElement.tagName)tB(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=tV(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,T.Po)(o)&&”HUNK”===o.type&&(i=(0,T.u6)((0,T.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,T.u6)((0,T.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),tB(a))}else if(“BUTTON”===document.activeElement.tagName)tB(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 tH=n(97068);let tG={ArrowLeft:tH.z0.ArrowHorizontal,ArrowDown:tH.z0.ArrowVertical,ArrowUp:tH.z0.ArrowVertical,ArrowRight:tH.z0.ArrowHorizontal,h:tH.z0.HL,j:tH.z0.JK,k:tH.z0.JK,l:tH.z0.HL,a:tH.z0.AD,s:tH.z0.WS,w:tH.z0.WS,d:tH.z0.AD,Tab:tH.z0.Tab,Home:tH.z0.HomeAndEnd,End:tH.z0.HomeAndEnd,PageUp:tH.z0.PageUpDown,PageDown:tH.z0.PageUpDown,Backspace:tH.z0.Backspace},tq=tH.z0.ArrowAll|tH.z0.PageUpDown|tH.z0.HomeAndEnd|tH.z0.AD,tz={avatarUrl:”https://avatars.githubusercontent.com/ghost”,id:”ghost”,login:”ghost”,url:”/ghost”,__typename:”Author”},tK=(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 tW(e){return e in tG&&(tG[e]&tq)>0}function tZ({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]),tU(i,s,m,n,u.current,o),tK(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}},e_),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},e_):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}},e_),tQ(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},e_):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}},e_),tQ(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,tl.G)({containerRef:n,bindKeys:tq,getNextFocusable:f,focusableElementFilter:e=>”TD”===e.tagName&&”gridcell”===e.getAttribute(“role”),focusInStrategy:”previous”,disabled:c},[f]),{gridNavigator:m}}function tQ(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 tX=n(21537),tJ=n(30459),tY=n(50899),t0=n(54571);let t1=(0,a.GV)()?function(e,t){let n,i,a,s,l,o=(0,r.c)(17),{sendAnalyticsEvent:d}=(0,tJ.s)(),c=W(),u=(0,_.ww)(),m=J();o[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],o[0]=n):n=o[0];let[f]=(0,t0.I)(t3,!0,n);o[1]!==c||o[2]!==e?(i=function(t){var n;let i;if(!t||t.startLineNumber===t.endLineNumber&&t.startOrientation===t.endOrientation)return"DELETION"!==e.type;let a="right"===t.startOrientation&&"right"===t.endOrientation,r=c(t)?.selectedRightLines[0],s=r&&(0,T.qK)(r)&&(0,T.Ji)(r);return!!a&&!s||(n=t,!(i=c(n)?.selectedLeftLines)||!(i.length>0)||i.every(t2))},o[1]=c,o[2]=e,o[3]=i):i=o[3],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,T.Ls)(n);if(!e)return””;let[i]=(0,T.dv)(e.text,e.type);return i},o[4]=c,o[5]=f,o[6]=e,o[7]=a):a=o[7];let h=a;o[8]!==h||o[9]!==u||o[10]!==i||o[11]!==d?(s=function(e,t){let n=!!(i(e)&&!u);return{isValidSuggestionRange:n,showSuggestChangesButton:n,sourceContentFromDiffLines:n?h(e):void 0,onInsertSuggestedChange:()=>{d(“diff.add_suggested_change”,”ADD_SUGGESTED_CHANGE_BUTTON”)},shouldInsertSuggestedChange:t}},o[8]=h,o[9]=u,o[10]=i,o[11]=d,o[12]=s):s=o[12];let p=(0,tY.K)(s);return o[13]!==p||o[14]!==m||o[15]!==t?(l={getSelectedLineRange:m,configureSuggestedChangesFromLineRange:p,shouldStartNewConversationWithSuggestedChange:t},o[13]=p,o[14]=m,o[15]=t,o[16]=l):l=o[16],l}:function(e,t){let{sendAnalyticsEvent:n}=(0,tJ.s)(),i=W(),a=(0,_.ww)(),r=J(),[s]=(0,t0.I)(()=>!1,!0,[]),o=(0,tY.K)(function(t,r){let l=!!(function(t){var n;let a;if(!t||t.startLineNumber===t.endLineNumber&&t.startOrientation===t.endOrientation)return”DELETION”!==e.type;let r=”right”===t.startOrientation&&”right”===t.endOrientation,s=i(t)?.selectedRightLines[0],l=s&&(0,T.qK)(s)&&(0,T.Ji)(s);return!!r&&!l||(n=t,!(a=i(n)?.selectedLeftLines)||!(a.length>0)||a.every(e=>”empty-diff-line”!==e&&”DELETION”!==e.type))}(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,T.Ls)(n);if(!e)return””;let[a]=(0,T.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 t2(e){return”empty-diff-line”!==e&&”DELETION”!==e.type}function t3(){return!1}var t4=n(20622),t5=n(48845),t6=n(97665),t7=n(94747),t8=n(96379),t9=n(69510),ne=n(43362);let nt=(0,a.Z6)()?function(){let e,t,n,i=(0,r.c)(12),a=(0,_.Kp)(),s=(0,t6.jE)(),l=`${a}/page_data/${t4.uT.createReviewComment}`,{updateThread:d}=(0,_.an)(),{onCommentThreadAdded:c}=(0,_.Ud)(),{addPendingComment:u,clearPendingReview:m}=(0,_._N)();return i[0]!==l?(e=async e=>{let t=await (0,t8.Sr)(`${l}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),n=await (0,t5.hp)(t);return(0,t5.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,ne.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,t9.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,t7.n)(n)}:function(){let e=(0,_.Kp)(),t=(0,t6.jE)(),n=`${e}/page_data/${t4.uT.createReviewComment}`,{updateThread:i}=(0,_.an)(),{onCommentThreadAdded:a}=(0,_.Ud)(),{addPendingComment:r,clearPendingReview:s}=(0,_._N)();return(0,t7.n)({mutationFn:async e=>{let t=await (0,t8.Sr)(`${n}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),i=await (0,t5.hp)(t);return(0,t5.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,ne.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,t9.XG)(e)})}})};var nn=new WeakMap,ni=new WeakMap,na=new WeakMap,nr=new WeakMap,ns=new WeakMap,nl=new WeakMap,no=new WeakMap,nd=new WeakSet,nc=new WeakSet,nu=new WeakSet;let ReviewCommentFactory=class ReviewCommentFactory{fileRequestData(){return{…(0,tu._)(this,nu,nh).call(this),path:(0,to._)(this,ni),subjectType:o.Wr.File}}lineRequestData(e,t){let n=t&&!(0,T.Ji)(e)?”left”:”right”;return{…(0,tu._)(this,nu,nh).call(this),line:e.blobLineNumber,path:(0,tu._)(this,nd,nm).call(this,n),positioning:{type:o.Wr.Line,baseCommitOid:(0,to._)(this,nn),headCommitOid:(0,to._)(this,na),path:(0,tu._)(this,nd,nm).call(this,n),line:e.blobLineNumber,commitOid:(0,tu._)(this,nc,nf).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,tu._)(this,nu,nh).call(this),line:t,path:(0,tu._)(this,nd,nm).call(this,r),positioning:{baseCommitOid:(0,to._)(this,nn),headCommitOid:(0,to._)(this,na),type:o.Wr.Multiline,startPath:(0,tu._)(this,nd,nm).call(this,s),startLine:i,startCommitOid:(0,tu._)(this,nc,nf).call(this,s),endPath:(0,tu._)(this,nd,nm).call(this,r),endLine:t,endCommitOid:(0,tu._)(this,nc,nf).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,tm._)(this,nd),(0,tm._)(this,nc),(0,tm._)(this,nu),(0,td._)(this,nn,{writable:!0,value:void 0}),(0,td._)(this,ni,{writable:!0,value:void 0}),(0,td._)(this,na,{writable:!0,value:void 0}),(0,td._)(this,nr,{writable:!0,value:void 0}),(0,td._)(this,ns,{writable:!0,value:void 0}),(0,td._)(this,nl,{writable:!0,value:void 0}),(0,td._)(this,no,{writable:!0,value:void 0}),(0,tc._)(this,nn,i.baseOid),(0,tc._)(this,ni,e),(0,tc._)(this,na,i.headOid),(0,tc._)(this,nr,t),(0,tc._)(this,ns,n),(0,tc._)(this,nl,a),(0,tc._)(this,no,r)}};function nm(e){return”left”===e&&(0,to._)(this,ns)?.path&&(0,to._)(this,nr)?.path&&(0,to._)(this,ns).path!==(0,to._)(this,nr).path?(0,to._)(this,ns).path:(0,to._)(this,ni)}function nf(e){return”left”===e?(0,to._)(this,nn):(0,to._)(this,na)}function nh(){return{comparisonEndOid:(0,to._)(this,na),comparisonStartOid:(0,to._)(this,nn),text:(0,to._)(this,no),submitBatch:(0,to._)(this,nl)}}let np=(e,t)=>!!e&&!!t.startLineNumber&&!!t.endLineNumber&&t.startLineNumber!==t.endLineNumber,ng=(0,a.GV)()?function(e,t,n){let i,a=(0,r.c)(4),s=J();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,T.Ji)(e)?”L”:”R”;l=` line ${n}${e.blobLineNumber}`}i=l}return i}:function(e,t,n){let i=J();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,T.Ji)(e)?”L”:”R”;r+=` line ${n}${e.blobLineNumber}`}return r},[e,t,n,i])},nx=(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:y}=(0,tJ.s)(),j=(0,l.useRef)(null),C=J(),w=t1(t,c),{newTreeEntry:N,oldTreeEntry:S}=ed(),{effectiveRange:L}=(0,_.L3)(),{baseOid:D,headOid:I}=(0,_.E4)(),k=(0,eQ.u)(“cotd_ui”),R=t?.type===”DELETION”,A=ng(t,!!R,!1),{mutate:E}=nt();b[9]!==k||b[10]!==E||b[11]!==t||b[12]!==L||b[13]!==I||b[14]!==C||b[15]!==R||b[16]!==N||b[17]!==S||b[18]!==d||b[19]!==D?(m=e=>{let{onCompleted:n,onError:i,submitBatch:a,text:r}=e;if(!t)return;let s=C();if(k){let e=new ReviewCommentFactory({filePath:d.filePath,newTreeEntry:N,oldTreeEntry:S,effectiveDiffRange:L,submitBatch:a,text:r});E(s&&np(!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,T.Ji)(t)?”left”:”right”;E({text:r,line:o,path:d.filePath,side:c,startSide:l,submitBatch:a,startLine:e,comparisonEndOid:I,comparisonStartOid:D},{onError:i,onSuccess:e=>{n?.(e.thread.id,e.comment?.databaseId)}})}},b[9]=k,b[10]=E,b[11]=t,b[12]=L,b[13]=I,b[14]=C,b[15]=R,b[16]=N,b[17]=S,b[18]=d,b[19]=D,b[20]=m):m=b[20];let O=m;e:{if(a&&w?.configureSuggestedChangesFromLineRange){let e;if(b[21]!==C||b[22]!==w){let t=C();e=w.configureSuggestedChangesFromLineRange(t,w?.shouldStartNewConversationWithSuggestedChange),b[21]=C,b[22]=w,b[23]=e}else e=b[23];f=e;break e}f=void 0}let P=f;if(!a)return null;b[24]===Symbol.for(“react.memo_cache_sentinel”)?(h=e=>{e.target===j.current&&j.current.querySelector(“textarea”)?.focus()},b[24]=h):h=b[24];let F=h,$=n?0:-1;b[25]!==o||b[26]!==y?(p=e=>{o(e),y(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”)},b[25]=o,b[26]=y,b[27]=p):p=b[27];let M=s||O,B=u??void 0;return b[28]!==A||b[29]!==P||b[30]!==d||b[31]!==p||b[32]!==M||b[33]!==B?(g=(0,i.jsx)(eJ,{onClose:p,showOnCloseIcon:!1,suggestedChangesConfig:P,onAddComment:M,addCommentDialogTitle:A,startLineNumber:B,…d}),b[28]=A,b[29]=P,b[30]=d,b[31]=p,b[32]=M,b[33]=B,b[34]=g):g=b[34],b[35]!==$||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:j,tabIndex:$,onFocus:F,children:g}),b[35]=$,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,tJ.s)(),m=(0,l.useRef)(null),f=J(),h=t1(o,d),{newTreeEntry:p,oldTreeEntry:g}=ed(),{effectiveRange:x}=(0,_.L3)(),{baseOid:b,headOid:y}=(0,_.E4)(),j=(0,eQ.u)(“cotd_ui”),C=o?.type===”DELETION”,w=ng(o,!!C,!1),N=(0,l.useMemo)(()=>{},[f,!1]),{mutate:S}=nt(),L=(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)(eJ,{onClose:e=>{a(e),u(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”)},showOnCloseIcon:!1,suggestedChangesConfig:L,onAddComment:r||(({onCompleted:e,onError:t,submitBatch:n,text:i})=>{if(!o)return;let a=f();if(j){let r=new ReviewCommentFactory({filePath:c.filePath,newTreeEntry:p,oldTreeEntry:g,effectiveDiffRange:x,submitBatch:n,text:i});S(a&&np(!1,a)?r.multilineRequestData(a):r.lineRequestData(o,C),{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=C&&!(0,T.Ji)(o)?”left”:”right”;S({text:i,line:d,path:c.filePath,side:u,startSide:s,submitBatch:n,startLine:r,comparisonEndOid:y,comparisonStartOid:b},{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment?.databaseId)}})}}),addCommentDialogTitle:w,startLineNumber:s??N,…c})}):null};try{nx.displayName||(nx.displayName=”StartConversation”)}catch{}var nb=n(2265);let nv=tH.z0.ArrowAll;tH.z0.ArrowHorizontal,tH.z0.ArrowVertical,tH.z0.ArrowVertical,tH.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,tf._)(this,”markers”,void 0),(0,tf._)(this,”markerComments”,null),(0,tf._)(this,”currentMarkerPosition”,null),(0,tf._)(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 ny({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=!nj(t)&&!nC(t)&&!nL(t)&&!nw(t);switch(!0){case a&&(“ArrowUp”===i||”ArrowDown”===i||”ArrowRight”===i||”ArrowLeft”===i):return nS(t)||nN(t)||void 0;case”ArrowUp”===i||”ArrowDown”===i:if(r.current&&nj(t)){let e=r.current.moveToNextMarker(i,nN(t));if(e)return document.querySelector(`[data-marker-id=”${e.id}”]`)||void 0;return t}if(r.current&&nw(t)){let e=r.current.moveToNextMarker(i,nw(t));if(e)return document.querySelector(`[data-marker-id=”${e.id}”]`)||void 0;return t}if(r.current&&nL(t)){let e=r.current.moveToNextMarkerItem(i,nL(t));if(e)return document.querySelector(`[data-marker-navigation-comment-id=”${e.id}”]`)||void 0;return t}if(r.current&&nC(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(nC(t))return nS(t);if(nj(t))return t?.querySelector(‘[data-first-thread-comment=”true”]’)||void 0;return t;case”ArrowLeft”===i:if(nj(t))return nN(t);if(nw(t))return nw(t);if(nL(t))return nL(t);if(nC(t))return t?.closest(“[data-marker-id]”)||void 0;return t;default:return t??void 0}},[r]);return(0,tl.G)({containerRef:e,bindKeys:nv,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 nj(e){return!!e?.hasAttribute(“data-marker-id”)}function nC(e){return!!e?.hasAttribute(“data-marker-navigation-comment-id”)}function nw(e){return e?.closest(“[data-marker-navigation-new-thread]”)??void 0}function nN(e){return e?.closest(“[data-marker-id]”)??void 0}function nS(e){return e?.closest(“[data-marker-navigation-comment-id]”)??void 0}function nL(e){return e?.closest(“[data-marker-navigation-thread-reply]”)??void 0}var nD=n(48505);let nI=”a, audio, button, details, embed, iframe, img, input, keygen, label, object, select, textarea, video”;function n_(e){e?.setAttribute(“aria-hidden”,”true”),!function t(n=0){setTimeout(()=>{let n=Array.from(e?.querySelectorAll(“*”)??[]),i=Array.from(e?.querySelectorAll(nI)??[]);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 nk(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(nI)??[]))t.setAttribute(“tabindex”,”0″)}let nR=(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=et(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(()=>{nk(o.current)},100):nk(o.current):n_(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=et(t);(0,l.useEffect)(()=>{let t=null;if(!i||a)return r?”commit”===e?t=setTimeout(()=>{nk(n.current)},100):nk(n.current):n_(n.current),()=>{t&&clearTimeout(t)}},[r,e,n,i,a])};var nA=n(86909);let nE=”InlineAnnotation-module__inlineAnnotation–bVDzc”,nT=(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=et(c);o[0]!==c?(t={commentSubjectType:”pull request”,gridCellId:c,markerRef:m},o[0]=c,o[1]=t):t=o[1],nR(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,nE),o[2]=p,o[3]=n):n=o[3];let g=`annotation-${d.id}`,x=`${d.id}`,y=f?0:-1;return o[4]!==d?(a=(0,i.jsx)(nA.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]!==y||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:y,children:a}),o[6]=d.annotationLevel,o[7]=h,o[8]=n,o[9]=g,o[10]=x,o[11]=y,o[12]=a,o[13]=s):s=o[13],s}:function({annotation:e,gridCellId:t,isFirstMarker:n}){let a=(0,l.useRef)(null),r=et(t);return nR({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″,nE),”data-level”:e.annotationLevel,”data-testid”:`annotation-${e.id}`,”data-marker-id”:`${e.id}`,tabIndex:r?0:-1,children:(0,i.jsx)(nA.YH,{annotation:e})})};try{nT.displayName||(nT.displayName=”InlineAnnotation”)}catch{}let nO=”InlineMarkers-module__closeMarkersDialogButton–wdW2G”,nP=”InlineMarkers-module__markersWrapper–Fw1hl”,nF=”InlineMarkers-module__fileMarkersWrapper–rXaAB”,n$=”InlineMarkers-module__markersDialogActive–v0PSm”;var nM=n(33643),nB=n(75202),nV=n(82075),nU=n(26607),nH=n(72511),nG=n(76720);let nq=(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)(nG.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)(nG.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)(nG.E,{border:!0,children:[e,t,(0,i.jsx)(“div”,{className:”mb-n2″,children:(0,i.jsx)(nG.E.Description,{children:”Refresh the page or try again later”})}),(0,i.jsx)(nG.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)(nG.E,{border:!0,children:[(0,i.jsx)(nG.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:24,className:”fgColor-muted mt-3 mb-3″})}),(0,i.jsx)(nG.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)(nG.E.Description,{children:”Refresh the page or try again later”})}),(0,i.jsx)(nG.E.SecondaryAction,{href:”https://www.githubstatus.com/”,children:”GitHub status”})]})})};try{nq.displayName||(nq.displayName=”CommentErrorFallback”)}catch{}let nz=”InlineReviewThread-module__inlineReviewThreadHeading–CBLMR”,nK=”InlineReviewThread-module__ReviewThreadContainer–MW9GI”,nW=”InlineReviewThread-module__ResolvableContainer–FkZ8G”,nZ=”InlineReviewThread-module__ThreadLoading–UIhR9″;var nQ=n(11738),nX=n(96760),nJ=n(11680);let nY=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(13),l=(0,_.Kp)(),o=(0,t6.jE)(),d=`${l}/page_data/${t4.uT.createReviewComment}`,{updateThread:c}=(0,_.an)(),{addPendingComment:u,clearPendingReview:m}=(0,_._N)();return s[0]!==d?(n=async e=>{let t=await (0,t8.Sr)(`${d}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),n=await (0,t5.hp)(t);return(0,t5.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,t9.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,t7.n)(a)}:function(e,t){let n=(0,_.Kp)(),i=(0,t6.jE)(),a=`${n}/page_data/${t4.uT.createReviewComment}`,{updateThread:r}=(0,_.an)(),{addPendingComment:s,clearPendingReview:l}=(0,_._N)();return(0,t7.n)({mutationFn:async e=>{let t=await (0,t8.Sr)(`${a}`,{method:”POST”,headers:{Accept:”application/json”},body:e}),n=await (0,t5.hp)(t);return(0,t5.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,t9.XG)(n)}))})};var n0=n(80081),n1=n(95542);let n2=”ReviewThread-module__ReviewThreadContainer–s6e8A”;var n3=n(61219);let n4=(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:y,disableDialogMode:j,enableDialogMode:C,filePath:w,gridCellId:N,isInlineComment:S,isInDialogMode:L,onDeleteLineComment:D,thread:I,threadPositionNumber:k,shouldLimitHeight:R,suggestedChangesConfig:A,viewerData:E,ghostUser:T}=e,O=void 0===R||R,[P,F]=(0,l.useState)(!1),[$,M]=(0,l.useState)(void 0),{sendAnalyticsEvent:B}=(0,tJ.s)(),V=(0,_.Kp)(),U=(0,l.useRef)(null),H=(0,l.useRef)(null),{mutate:G}=nY(w,y),{baseOid:q,headOid:z}=(0,_.E4)();p[0]!==G||p[1]!==z||p[2]!==w||p[3]!==B||p[4]!==q||p[5]!==I.commentsData?.comments?(t=e=>{let{commentText:t,onCompleted:n,onError:i,submitBatch:a}=e,r=I.commentsData?.comments[I.commentsData?.comments.length-1];G({text:t,submitBatch:a,inReplyTo:r?.databaseId,path:w,comparisonEndOid:z,comparisonStartOid:q},{onError:i,onSuccess:e=>{var t;(t=e.comment.databaseId)&&h(t.toString()),n?.()}}),B(“comments.add”,”ADD_COMMENT_BUTTON”)},p[0]=G,p[1]=z,p[2]=w,p[3]=B,p[4]=q,p[5]=I.commentsData?.comments,p[6]=t):t=p[6];let K=t;p[7]!==B?(n=()=>{F(!1),M(void 0),B(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”),g.cg?.requestAnimationFrame(()=>U.current?.focus())},p[7]=B,p[8]=n):n=p[8];let W=n;p[9]===Symbol.for(“react.memo_cache_sentinel”)?(a=e=>{M(e),F(!0)},p[9]=a):a=p[9];let Z=a;if(!I.commentsData||null===I.commentsData.comments||I.commentsData.comments.length<1)return null;p[10]!==I?(s=(0,n0.Lm)(I),p[10]=I,p[11]=s):s=p[11];let Q=s;p[12]!==Q||p[13]!==I.subjectType?(o=I.subjectType?.toLowerCase()==="line"?{lineRange:Q}:void 0,p[12]=Q,p[13]=I.subjectType,p[14]=o):o=p[14];let X=o;p[15]!==P?(d=e=>{H.current===e.target&&(P?H.current?.querySelector(“textarea”)?.focus():U.current?.focus())},p[15]=P,p[16]=d):d=p[16];let J=d;if(p[17]!==X||p[18]!==V||p[19]!==b||p[20]!==j||p[21]!==C||p[22]!==w||p[23]!==T||p[24]!==N||p[25]!==L||p[26]!==S||p[27]!==y||p[28]!==D||p[29]!==A||p[30]!==I.commentsData.__id||p[31]!==I.commentsData.comments||p[32]!==I.id||p[33]!==I.isResolved||p[34]!==I.positioning?.isOutdated||p[35]!==k||p[36]!==E){let e;p[38]!==X||p[39]!==V||p[40]!==b||p[41]!==j||p[42]!==C||p[43]!==w||p[44]!==T||p[45]!==N||p[46]!==L||p[47]!==S||p[48]!==y||p[49]!==D||p[50]!==A||p[51]!==I.commentsData.__id||p[52]!==I.commentsData.comments.length||p[53]!==I.id||p[54]!==I.isResolved||p[55]!==I.positioning?.isOutdated||p[56]!==k||p[57]!==E?(e=(e,t)=>(function(e,t){return e.reviewVariantType===nD.hH.Automated&&0===t})(e,t)?(0,i.jsx)(nB.t,{fallback:(0,i.jsx)(n1.k,{}),boundaryName:”AutomatedReviewThreadComment”,children:(0,i.jsx)(n1.y,{anchorPrefix:b,basePath:V,comment:e,isAnchorable:!0,isInDialogMode:L,isOutdated:I.positioning?.isOutdated,onQuoteReply:Z,threadId:I.id,threadPositionNumber:k},e.id)},e.id):(0,i.jsx)(n3.U,{lineMarkersKey:y,isAnchorable:!0,index:t,threadPositionNumber:k,isFirstComment:0===t,isInlineComment:S,isLastChild:t===(I.commentsData?.comments.length??0)-1,anchorPrefix:b,comment:e,commentConnectionId:I.commentsData?.__id,disableDialogMode:j,enableDialogMode:C,filePath:w,gridCellId:N,isInDialogMode:L,isOutdated:I.positioning?.isOutdated,threadId:I.id,onDeleteLineComment:D,onQuoteReply:Z,threadCommentCount:I.commentsData?.comments.length,isThreadResolved:!!I.isResolved,suggestedChangesConfig:A,applySuggestedChangesValidationData:X,viewerData:E,ghostUser:T},e.id),p[38]=X,p[39]=V,p[40]=b,p[41]=j,p[42]=C,p[43]=w,p[44]=T,p[45]=N,p[46]=L,p[47]=S,p[48]=y,p[49]=D,p[50]=A,p[51]=I.commentsData.__id,p[52]=I.commentsData.comments.length,p[53]=I.id,p[54]=I.isResolved,p[55]=I.positioning?.isOutdated,p[56]=k,p[57]=E,p[58]=e):e=p[58],c=I.commentsData.comments.map(e),p[17]=X,p[18]=V,p[19]=b,p[20]=j,p[21]=C,p[22]=w,p[23]=T,p[24]=N,p[25]=L,p[26]=S,p[27]=y,p[28]=D,p[29]=A,p[30]=I.commentsData.__id,p[31]=I.commentsData.comments,p[32]=I.id,p[33]=I.isResolved,p[34]=I.positioning?.isOutdated,p[35]=k,p[36]=E,p[37]=c}else c=p[37];return p[59]!==I.reviewCommentsLimit||p[60]!==I.reviewCommentsLimitExceeded?(u=I.reviewCommentsLimitExceeded&&(0,i.jsx)(nJ.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:`Only the first ${(I.reviewCommentsLimit||0)-1} replies are currently being shown.`,className:”m-3″}),p[59]=I.reviewCommentsLimit,p[60]=I.reviewCommentsLimitExceeded,p[61]=u):u=p[61],p[62]!==K||p[63]!==x||p[64]!==W||p[65]!==w||p[66]!==J||p[67]!==L||p[68]!==P||p[69]!==Q?.endLineNumber||p[70]!==Q?.startLineNumber||p[71]!==$||p[72]!==B||p[73]!==A||p[74]!==I.id||p[75]!==I.viewerCanReply?(m=I.viewerCanReply&&(0,i.jsxs)(“div”,{id:nX.Bq.issueCommentComposer,className:”rounded-bottom-2 p-2 bgColor-inset”,”data-marker-navigation-comment-thread-id”:I.id,”data-marker-navigation-comment-id”:`${I.id}-reply-comment`,”data-marker-navigation-thread-reply”:!0,tabIndex:L?0:-1,onFocus:J,ref:H,children:[P&&(0,i.jsx)(eT,{startLineNumber:Q?.startLineNumber,lineNumber:Q?.endLineNumber,batchingEnabled:x,condensed:!1,fileLevelComment:!0,filePath:w,focusOnMount:!0,isReplying:!0,onCancelComment:W,quotedText:$,threadId:I.id,onAddComment:K,suggestedChangesConfig:A}),!P&&(0,i.jsx)(nQ.z,{ref:U,onClick:()=>{B(“comments.start_thread_reply”,”REPLY_TO_THREAD_INPUT_BUTTON”),F(!0)},children:”Write a reply”})]}),p[62]=K,p[63]=x,p[64]=W,p[65]=w,p[66]=J,p[67]=L,p[68]=P,p[69]=Q?.endLineNumber,p[70]=Q?.startLineNumber,p[71]=$,p[72]=B,p[73]=A,p[74]=I.id,p[75]=I.viewerCanReply,p[76]=m):m=p[76],p[77]!==O||p[78]!==m||p[79]!==c||p[80]!==u?(f=(0,i.jsx)(“div”,{“data-testid”:”review-thread”,children:(0,i.jsxs)(“div”,{className:n2,”data-limit-height”:O,children:[c,u,m]})}),p[77]=O,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:y}){let[j,C]=(0,l.useState)(!1),[w,N]=(0,l.useState)(void 0),{sendAnalyticsEvent:S}=(0,tJ.s)(),L=(0,_.Kp)(),D=(0,l.useRef)(null),I=(0,l.useRef)(null),{mutate:k}=nY(s,n),{baseOid:R,headOid:A}=(0,_.E4)(),E=e=>{N(e),C(!0)};if(!m.commentsData||null===m.commentsData.comments||m.commentsData.comments.length<1)return null;let T=(0,n0.Lm)(m),O=m.subjectType?.toLowerCase()==="line"?{lineRange:T}:void 0;return(0,i.jsx)("div",{"data-testid":"review-thread",children:(0,i.jsxs)("div",{className:n2,"data-limit-height":p,children:[m.commentsData.comments.map((e,l)=>e.reviewVariantType===nD.hH.Automated&&0===l?(0,i.jsx)(nB.t,{fallback:(0,i.jsx)(n1.k,{}),boundaryName:”AutomatedReviewThreadComment”,children:(0,i.jsx)(n1.y,{anchorPrefix:t,basePath:L,comment:e,isAnchorable:!0,isInDialogMode:c,isOutdated:m.positioning?.isOutdated,onQuoteReply:E,threadId:m.id,threadPositionNumber:f},e.id)},e.id):(0,i.jsx)(n3.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:E,threadCommentCount:m.commentsData?.comments.length,isThreadResolved:!!m.isResolved,suggestedChangesConfig:x,applySuggestedChangesValidationData:O,viewerData:b,ghostUser:y},e.id)),m.reviewCommentsLimitExceeded&&(0,i.jsx)(nJ.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:nX.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=>{I.current===e.target&&(j?I.current?.querySelector(“textarea”)?.focus():D.current?.focus())},ref:I,children:[j&&(0,i.jsx)(eT,{startLineNumber:T?.startLineNumber,lineNumber:T?.endLineNumber,batchingEnabled:e,condensed:!1,fileLevelComment:!0,filePath:s,focusOnMount:!0,isReplying:!0,onCancelComment:()=>{C(!1),N(void 0),S(“comments.cancel_thread_reply”,”CANCEL_REVIEW_THREAD_BUTTON”),g.cg?.requestAnimationFrame(()=>D.current?.focus())},quotedText:w,threadId:m.id,onAddComment:({commentText:e,onCompleted:t,onError:n,submitBatch:i})=>{let a=m.commentsData?.comments[m.commentsData?.comments.length-1];k({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?.()}}),S(“comments.add”,”ADD_COMMENT_BUTTON”)},suggestedChangesConfig:x}),!j&&(0,i.jsx)(nQ.z,{ref:D,onClick:()=>{S(“comments.start_thread_reply”,”REPLY_TO_THREAD_INPUT_BUTTON”),C(!0)},children:”Write a reply”})]})]})})};try{n4.displayName||(n4.displayName=”ReviewThread”)}catch{}var n5=n(97695),n6=n(39698),n7=n(25407),n8=n(21067);let n9=(0,a.Z6)()?function(e,t){let n,i,a,s,l=(0,r.c)(12),o=(0,_.Kp)();l[0]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,n8.cj)(),l[0]=n):n=l[0];let d=n,c=(0,t6.jE)(),{updateThread:u}=(0,_.an)();return l[1]!==o?(i=async e=>{let{automatedReviewCommentId:t,reason:n,resolutionNote:i}=e,a=(0,n7.L7I)({basePath:o,automatedReviewCommentId:t}),r=await (0,t5.q$)(a,{method:”PUT”,body:{reason:n,resolution_note:i}});(0,t5.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,t9.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,t7.n)(s)}:function(e,t){let n=(0,_.Kp)(),i=(0,n8.cj)(),a=(0,t6.jE)(),{updateThread:r}=(0,_.an)();return(0,t7.n)({mutationFn:async({automatedReviewCommentId:e,reason:t,resolutionNote:i})=>{let a=(0,n7.L7I)({basePath:n,automatedReviewCommentId:e}),r=await (0,t5.q$)(a,{method:”PUT”,body:{reason:t,resolution_note:i}});(0,t5.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,t9.XG)(n)})}})},ie=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(11),l=(0,_.Kp)(),o=(0,t6.jE)(),{updateThread:d}=(0,_.an)();return s[0]!==l?(n=async e=>{let{automatedReviewCommentId:t}=e,n=(0,n7.Aav)({basePath:l,automatedReviewCommentId:t}),i=await (0,t5.q$)(n,{method:”PUT”});(0,t5.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,it),o.invalidateQueries({queryKey:(0,t9.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,t7.n)(a)}:function(e,t){let n=(0,_.Kp)(),i=(0,t6.jE)(),{updateThread:a}=(0,_.an)();return(0,t7.n)({mutationFn:async({automatedReviewCommentId:e})=>{let t=(0,n7.Aav)({basePath:n,automatedReviewCommentId:e}),i=await (0,t5.q$)(t,{method:”PUT”});(0,t5.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,t9.XG)(n)})}})};function it(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 ii=n(73262);let ia=(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}=n9(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:y}=ie(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 j=n,C=p||y;return s[14]!==l||s[15]!==g||s[16]!==x||s[17]!==j||s[18]!==C?(a=(0,i.jsx)(ii.K,{automatedComment:l,dismissError:g,isButtonDisabled:C,onDismiss:x,onReopen:j,className:”p-2 border-top”}),s[14]=l,s[15]=g,s[16]=x,s[17]=j,s[18]=C,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}=n9(n,a),{mutate:u,isPending:m}=ie(n,a);return(0,i.jsx)(ii.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{ia.displayName||(ia.displayName=”InlineAutomatedReviewThreadActions”)}catch{}let ir=(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 is({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?io({positioning:t}):il({positioning:t}):null}let il=(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:nz,children:[“Comment on line”,” “,(0,i.jsxs)(ir,{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:nz,children:[“Comment on line”,” “,(0,i.jsxs)(ir,{children:[t,e.endLine??””]})]})},io=(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)(ir,{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)(ir,{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:nz,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:nz,children:[“Comment on lines”,” “,(0,i.jsxs)(ir,{children:[t,e.startLine??””]}),” “,”to”,” “,(0,i.jsxs)(ir,{children:[n,e.endLine??””]})]})},id=(0,a.GV)()?function(e){let t,n,a,s,o,d,u,f,h,p,g,x,y,j,C,w,N,S,L,D,I,k,R,A,E,T,O,P,F,$,M,B,V=(0,r.c)(99);V[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,V[0]=e,V[1]=t,V[2]=n,V[3]=a,V[4]=s,V[5]=o,V[6]=d,V[7]=u,V[8]=f,V[9]=h,V[10]=p,V[11]=g,V[12]=x):(t=V[1],n=V[2],a=V[3],s=V[4],o=V[5],d=V[6],u=V[7],f=V[8],h=V[9],p=V[10],g=V[11],x=V[12]);let U=(0,_._W)(p,n,d),{mutate:H}=(0,n5.H)(n,d),G=()=>{U&&(H({threadId:U.id},{onError:()=>Q(“Failed to resolve thread”),onSuccess:()=>{Y(!0),z.removeItem(`reviewThreadIsCollapsed_${p}`)}}),eo(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},q=(0,l.useRef)(null),z=(0,nV.A)(“localStorage”),K=U?.isResolved,[W,Z]=(0,l.useState)(“”),Q=Z,[X,J]=(0,l.useState)(K??!1),Y=J,ee=et(s),{disableDialogMode:ei,enableDialogMode:ea}=en();V[13]!==K||V[14]!==p?(y=[K,p],V[13]=K,V[14]=p,V[15]=y):y=V[15],(0,l.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${p}`);null!==e?Y(JSON.parse(e)):K&&Y(!0)},y);let er=()=>{window.requestAnimationFrame(()=>{z.setItem(`reviewThreadIsCollapsed_${p}`,JSON.stringify(!X))}),Y(iu)};V[16]!==s||V[17]!==U?(j={commentSubjectType:”pull request”,gridCellId:s,markerRef:q,isThread:!0,thread:U},V[16]=s,V[17]=U,V[18]=j):j=V[18],nR(j);e:{let e=U?.positioning??U?.subject;if(!e){C=void 0;break e}if(t&&U&&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(V[19]!==t||V[20]!==e.endLine||V[21]!==i||V[22]!==h||V[23]!==r||V[24]!==s||V[25]!==l){let a={diffAnchor:t,endLineNumber:e.endLine,endOrientation:r,startLineNumber:i,startOrientation:s,firstSelectedLineNumber:i,firstSelectedOrientation:l};n=h?.configureSuggestedChangesFromLineRange(a),V[19]=t,V[20]=e.endLine,V[21]=i,V[22]=h,V[23]=r,V[24]=s,V[25]=l,V[26]=n}else n=V[26];C=n;break e}C=void 0}let es=C,{sendAnalyticsEvent:el}=(0,tJ.s)(),eo=el,{mutate:ed}=(0,n6.i)(n,d);V[27]!==z||V[28]!==eo||V[29]!==Q||V[30]!==Y||V[31]!==U||V[32]!==ed?(w=()=>{U&&(ed({threadId:U.id},{onError:()=>Q(“Failed to unresolve thread”),onSuccess:()=>{Y(!1),z.removeItem(`reviewThreadIsCollapsed_${U.id}`)}}),eo(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},V[27]=z,V[28]=eo,V[29]=Q,V[30]=Y,V[31]=U,V[32]=ed,V[33]=w):w=V[33];let ec=w,eu=U?.commentsData?.comments[0]?.reviewVariantType===nD.hH.Automated,em=eu?U.commentsData?.comments[0]?.automatedComment:null,ef=em&&em.dismissable,eh=em&&em.source===nD.vk.LicenseCompliance;if(!U||!((U.commentsData?.comments?.length??0)>0))return null;let ep=!!U.isResolved;V[34]===Symbol.for(“react.memo_cache_sentinel”)?(N=(0,n8.M3)(),V[34]=N):N=V[34];let eg=N;V[35]!==U.commentsData?.comments?(S=eg&&U.commentsData?.comments?.some(ic),V[35]=U.commentsData?.comments,V[36]=S):S=V[36];let ex=S,eb=U.commentsData?.comments?.[0]?.createdAt,ev=U.commentsData?.comments?.[0]?.author?.login??”Unknown Author”,ey=`${K?”Unresolve”:”Resolve”} comment`;if(eb){let e;V[37]!==eb?(e=(0,nM.C)(new Date(eb)),V[37]=eb,V[38]=e):e=V[38];let t=e;ey=`${K?”Unresolve”:”Resolve”} ${ev}’s comment, ${t}`}V[39]===Symbol.for(“react.memo_cache_sentinel”)?(L=(0,i.jsx)(nq,{}),V[39]=L):L=V[39],V[40]===Symbol.for(“react.memo_cache_sentinel”)?(D=(0,b.$)(“px-1″,nK),V[40]=D):D=V[40];let ej=X?”Expand comment”:”Collapse comment”,eC=X?c.ChevronRightIcon:c.ChevronDownIcon;return V[41]!==er||V[42]!==o||V[43]!==ej||V[44]!==eC?(I=(0,i.jsx)(m.K,{“aria-label”:ej,icon:eC,size:”small”,variant:”invisible”,onClick:er,”data-is-first-collapse-button”:o}),V[41]=er,V[42]=o,V[43]=ej,V[44]=eC,V[45]=I):I=V[45],V[46]!==U?(k=(0,i.jsx)(is,{thread:U}),V[46]=U,V[47]=k):k=V[47],V[48]!==U.positioning?.isOutdated?(R=U.positioning?.isOutdated&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Outdated”}),V[48]=U.positioning?.isOutdated,V[49]=R):R=V[49],V[50]!==eu||V[51]!==ep?(A=ep&&!eu&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Resolved”}),V[50]=eu,V[51]=ep,V[52]=A):A=V[52],V[53]!==em?.isDismissed?(E=em?.isDismissed&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Dismissed”}),V[53]=em?.isDismissed,V[54]=E):E=V[54],V[55]!==R||V[56]!==A||V[57]!==E?(T=(0,i.jsxs)(“div”,{className:nW,children:[R,A,E]}),V[55]=R,V[56]=A,V[57]=E,V[58]=T):T=V[58],V[59]!==I||V[60]!==k||V[61]!==T?(O=(0,i.jsxs)(“div”,{className:D,children:[I,k,T]}),V[59]=I,V[60]=k,V[61]=T,V[62]=O):O=V[62],V[63]===Symbol.for(“react.memo_cache_sentinel”)?(P=(0,i.jsxs)(“div”,{className:nZ,children:[(0,i.jsx)(e3.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),V[63]=P):P=V[63],V[64]!==W?(F=W&&(0,i.jsxs)(nH.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),W]}),V[64]=W,V[65]=F):F=V[65],V[66]!==em||V[67]!==es||V[68]!==ei||V[69]!==ef||V[70]!==ea||V[71]!==n||V[72]!==a||V[73]!==s||V[74]!==G||V[75]!==ec||V[76]!==X||V[77]!==ee||V[78]!==ex||V[79]!==K||V[80]!==ep||V[81]!==eh||V[82]!==d||V[83]!==u||V[84]!==ey||V[85]!==f||V[86]!==z||V[87]!==Q||V[88]!==Y||V[89]!==U||V[90]!==g||V[91]!==x?($=!X&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n4,{lineMarkersKey:d,disableDialogMode:ei,enableDialogMode:ea,filePath:n,gridCellId:s,onDeleteLineComment:u,isInlineComment:!0,isInDialogMode:ee,thread:U,threadPositionNumber:g,threadsConnectionId:x,suggestedChangesConfig:es,shouldLimitHeight:!1,…f,ghostUser:a}),ex&&!ef&&!eh&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eO.Q,{“aria-label”:ey,onClick:ep?ec:G,className:”mr-2″,children:K?”Unresolve comment”:”Resolve comment”}),ep&&U.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:U.resolvedBy}),” marked this comment as resolved”]})]}),ef&&(0,i.jsx)(ia,{automatedComment:em,thread:U,filePath:n,lineMarkersKey:d,setErrorMessage:Q,setIsCollapsed:Y,safeLocalStorage:z})]}),V[66]=em,V[67]=es,V[68]=ei,V[69]=ef,V[70]=ea,V[71]=n,V[72]=a,V[73]=s,V[74]=G,V[75]=ec,V[76]=X,V[77]=ee,V[78]=ex,V[79]=K,V[80]=ep,V[81]=eh,V[82]=d,V[83]=u,V[84]=ey,V[85]=f,V[86]=z,V[87]=Q,V[88]=Y,V[89]=U,V[90]=g,V[91]=x,V[92]=$):$=V[92],V[93]!==F||V[94]!==$?(M=(0,i.jsxs)(l.Suspense,{fallback:P,children:[F,$]}),V[93]=F,V[94]=$,V[95]=M):M=V[95],V[96]!==O||V[97]!==M?(B=(0,i.jsx)(nB.t,{fallback:L,children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:q,children:[O,M]})}),V[96]=O,V[97]=M,V[98]=B):B=V[98],B}: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,_._W)(r,t,o),{mutate:x}=(0,n5.H)(t,o),y=(0,l.useRef)(null),j=(0,nV.A)(“localStorage”),C=g?.isResolved,[w,N]=(0,l.useState)(“”),[S,L]=(0,l.useState)(C??!1),D=et(n),{disableDialogMode:I,enableDialogMode:k}=en();(0,l.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${r}`);null!==e?L(JSON.parse(e)):C&&L(!0)},[C,r]),nR({commentSubjectType:”pull request”,gridCellId:n,markerRef:y,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,tJ.s)(),{mutate:E}=(0,n6.i)(t,o),T=g?.commentsData?.comments[0]?.reviewVariantType===nD.hH.Automated,O=T?g.commentsData?.comments[0]?.automatedComment:null,P=O&&O.dismissable,F=O&&O.source===nD.vk.LicenseCompliance;if(!g||!((g.commentsData?.comments?.length??0)>0))return null;let $=!!g.isResolved,M=(0,n8.M3)()&&g.commentsData?.comments?.some(e=>e.state?.toUpperCase()!==”PENDING”),B=g.commentsData?.comments?.[0]?.createdAt,V=g.commentsData?.comments?.[0]?.author?.login??”Unknown Author”,U=`${C?”Unresolve”:”Resolve”} comment`;if(B){let e=(0,nM.C)(new Date(B));U=`${C?”Unresolve”:”Resolve”} ${V}’s comment, ${e}`}return(0,i.jsx)(nB.t,{fallback:(0,i.jsx)(nq,{}),children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:y,children:[(0,i.jsxs)(“div”,{className:(0,b.$)(“px-1”,nK),children:[(0,i.jsx)(m.K,{“aria-label”:S?”Expand comment”:”Collapse comment”,icon:S?c.ChevronRightIcon:c.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:()=>{window.requestAnimationFrame(()=>{j.setItem(`reviewThreadIsCollapsed_${r}`,JSON.stringify(!S))}),L(e=>!e)},”data-is-first-collapse-button”:u}),(0,i.jsx)(is,{thread:g}),(0,i.jsxs)(“div”,{className:nW,children:[g.positioning?.isOutdated&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Outdated”}),$&&!T&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Resolved”}),O?.isDismissed&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Dismissed”})]})]}),(0,i.jsxs)(l.Suspense,{fallback:(0,i.jsxs)(“div”,{className:nZ,children:[(0,i.jsx)(e3.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),children:[w&&(0,i.jsxs)(nH.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),w]}),!S&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n4,{lineMarkersKey:o,disableDialogMode:I,enableDialogMode:k,filePath:t,gridCellId:n,onDeleteLineComment:a,isInlineComment:!0,isInDialogMode:D,thread:g,threadPositionNumber:s,threadsConnectionId:d,suggestedChangesConfig:R,shouldLimitHeight:!1,…p,ghostUser:f}),M&&!P&&!F&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eO.Q,{“aria-label”:U,onClick:$?()=>{g&&(E({threadId:g.id},{onError:()=>N(“Failed to unresolve thread”),onSuccess:()=>{L(!1),j.removeItem(`reviewThreadIsCollapsed_${g.id}`)}}),A(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))}:()=>{g&&(x({threadId:g.id},{onError:()=>N(“Failed to resolve thread”),onSuccess:()=>{L(!0),j.removeItem(`reviewThreadIsCollapsed_${r}`)}}),A(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},className:”mr-2″,children:C?”Unresolve comment”:”Resolve comment”}),$&&g.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:g.resolvedBy}),” marked this comment as resolved”]})]}),P&&(0,i.jsx)(ia,{automatedComment:O,thread:g,filePath:t,lineMarkersKey:o,setErrorMessage:N,setIsCollapsed:L,safeLocalStorage:j})]})]})]})})};function ic(e){return e.state?.toUpperCase()!==”PENDING”}function iu(e){return!e}try{ir.displayName||(ir.displayName=”Emphasis”)}catch{}try{is.displayName||(is.displayName=”ThreadBanner”)}catch{}try{il.displayName||(il.displayName=”SingleLineThreadBanner”)}catch{}try{io.displayName||(io.displayName=”MultineLineThreadBanner”)}catch{}try{id.displayName||(id.displayName=”InlineReviewThread”)}catch{}let im=(0,a.GV)()?function(e,t,n){let i,a=(0,r.c)(5),{enableDialogMode:s}=en();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}=en();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])},ih={[nD.UZ.Failure]:0,[nD.UZ.Warning]:1,[nD.UZ.Notice]:2},ip=(0,a.GV)()?function(e){let t,n=(0,r.c)(2);return n[0]!==e?(t=(0,i.jsx)(nb.j,{children:(0,i.jsx)(ig,{…e})}),n[0]=e,n[1]=t):t=n[1],t}:function(e){return(0,i.jsx)(nb.j,{children:(0,i.jsx)(ig,{…e})})},ig=(0,a.GV)()?function(e){let t,n,a,s,o,d,u,f,h,p,x,y,j,C,w,N,S,L,D,I,k,R,A,T,O,P,F,$,M,B,V,U,H,G,q,z,K,W,Z=(0,r.c)(113);if(Z[0]!==e){let{annotations:i,cellRef:r,diffLine:l,dispatchMarkersStatus:c,children:m,conversationListThreads:g,inlineMarkersRef:b,isRowSelected:_,lineMarkersKey:k,fileAnchor:R,filePath:A,gridCellId:E,gutterSizeOffset:T,lineType:O,onCloseConversationList:P,onCloseFocusMode:F,onDeleteLineComment:$,threadsConnectionId:M,shouldStartNewConversationWithSuggestedChange:B,ghostUser:V,shouldListenForEscapeKey:U,…H}=e;t=i,n=r,o=l,d=c,a=m,s=g,y=b,j=_,C=k,u=R,f=A,p=E,x=T,w=F,N=$,I=M,D=B,h=V,L=U,S=H,Z[0]=e,Z[1]=t,Z[2]=n,Z[3]=a,Z[4]=s,Z[5]=o,Z[6]=d,Z[7]=u,Z[8]=f,Z[9]=h,Z[10]=p,Z[11]=x,Z[12]=y,Z[13]=j,Z[14]=C,Z[15]=w,Z[16]=N,Z[17]=S,Z[18]=L,Z[19]=D,Z[20]=I}else t=Z[1],n=Z[2],a=Z[3],s=Z[4],o=Z[5],d=Z[6],u=Z[7],f=Z[8],h=Z[9],p=Z[10],x=Z[11],y=Z[12],j=Z[13],C=Z[14],w=Z[15],N=Z[16],S=Z[17],L=Z[18],D=Z[19],I=Z[20];let Q=et(p),{disableDialogMode:X,enableDialogMode:J}=en(),Y=im(p,n,d),ee=o?.type??”ADDITION”;Z[21]!==j||Z[22]!==ee?(k=(0,E.gK)(ee,!1,j),Z[21]=j,Z[22]=ee,Z[23]=k):k=Z[23];let ei=k,ea=t1(o,D),er=(0,l.useRef)(null);Z[24]!==t?(R=[…t].sort(iy),Z[24]=t,Z[25]=R):R=Z[25];let es=R;e:{let e;if(a){let e,t;Z[26]===Symbol.for(“react.memo_cache_sentinel”)?(e={id:”new-comment”},Z[26]=e):e=Z[26],Z[27]!==s||Z[28]!==es?(t=[…s,e,…es],Z[27]=s,Z[28]=es,Z[29]=t):t=Z[29],A=t;break e}Z[30]!==s||Z[31]!==es?(e=[…s,…es],Z[30]=s,Z[31]=es,Z[32]=e):e=Z[32],A=e}let el=A,eo=iv;Z[33]!==X||Z[34]!==p||Z[35]!==w||Z[36]!==L?(T=e=>{let t=e.target,n=e.target,i=n.closest(`[data-grid-cell-id=${p}]`);if(L&&i?.contains(t)&&e?.key===”Escape”){w(),X(),i?.focus();return}if(i?.contains(t)&&”true”===n.getAttribute(“data-exit-dialog-mode-button”)&&!e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),i?.querySelector(‘[data-is-first-collapse-button=”true”]’)?.focus();return}if(i?.contains(t)&&”true”===n.getAttribute(“data-is-first-collapse-button”)&&e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),i?.querySelector(‘[data-exit-dialog-mode-button=”true”]’)?.focus();return}},Z[33]=X,Z[34]=p,Z[35]=w,Z[36]=L,Z[37]=T):T=Z[37];let ed=T;Z[38]!==J||Z[39]!==p||Z[40]!==Q?(O=e=>{eo(e),Q||J(p)},Z[38]=J,Z[39]=p,Z[40]=Q,Z[41]=O):O=Z[41];let ec=O;Z[42]!==X||Z[43]!==Q?(P=e=>{e.target&&Q&&(e.target.closest(“[data-inline-markers]”)||X())},Z[42]=X,Z[43]=Q,Z[44]=P):P=Z[44];let eu=P;Z[45]!==eu?(F=()=>(g.XC?.addEventListener(“mousedown”,eu),()=>g.XC?.removeEventListener(“mousedown”,eu)),$=[eu],Z[45]=eu,Z[46]=F,Z[47]=$):(F=Z[46],$=Z[47]),(0,l.useEffect)(F,$);let em=(0,_.mF)();Z[48]!==t||Z[49]!==s||Z[50]!==Y||Z[51]!==em?(M=()=>{if(em){let e=s.map(ib),n=t.map(ix);(e.includes(em)||n.includes(em))&&Y({shouldFocusFirstMarker:!1},em)}},B=[em,Y,s,t],Z[48]=t,Z[49]=s,Z[50]=Y,Z[51]=em,Z[52]=M,Z[53]=B):(M=Z[52],B=Z[53]),(0,l.useEffect)(M,B);let ef=!Q;Z[54]!==el||Z[55]!==ef?(V={containerRef:er,markers:el,disabled:ef},Z[54]=el,Z[55]=ef,Z[56]=V):V=Z[56],ny(V);let eh=Q?n$:””;Z[57]!==eh?(U=(0,b.$)(“d-flex pt-1″,eh),Z[57]=eh,Z[58]=U):U=Z[58],Z[59]!==ei||Z[60]!==x||Z[61]!==Q?(H=Q?{marginRight:`-${x}`,backgroundColor:ei}:{marginRight:`-${x}`},Z[59]=ei,Z[60]=x,Z[61]=Q,Z[62]=H):H=Z[62];let ep=Q?”false”:”true”;if(Z[63]!==s||Z[64]!==u||Z[65]!==f||Z[66]!==h||Z[67]!==p||Z[68]!==Q||Z[69]!==C||Z[70]!==el||Z[71]!==N||Z[72]!==S||Z[73]!==ea||Z[74]!==I){let e;Z[76]!==u||Z[77]!==f||Z[78]!==h||Z[79]!==p||Z[80]!==Q||Z[81]!==C||Z[82]!==el||Z[83]!==N||Z[84]!==S||Z[85]!==ea||Z[86]!==I?(e=(e,t)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,t===el.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===t,”data-marker-id”:`${e.id}`,tabIndex:Q?0:-1,children:(0,i.jsx)(id,{threadPositionNumber:t+1,isFirstThread:0===t,filePath:f,lineMarkersKey:C,fileAnchor:u,gridCellId:p,onDeleteLineComment:N,threadId:e.id,threadsConnectionId:I,suggestedChangesConfig:ea,ghostUser:h,…S})},`review-thread-${e.id}`),Z[76]=u,Z[77]=f,Z[78]=h,Z[79]=p,Z[80]=Q,Z[81]=C,Z[82]=el,Z[83]=N,Z[84]=S,Z[85]=ea,Z[86]=I,Z[87]=e):e=Z[87],G=s.map(e),Z[63]=s,Z[64]=u,Z[65]=f,Z[66]=h,Z[67]=p,Z[68]=Q,Z[69]=C,Z[70]=el,Z[71]=N,Z[72]=S,Z[73]=ea,Z[74]=I,Z[75]=G}else G=Z[75];if(Z[88]!==p||Z[89]!==el||Z[90]!==es){let e;Z[92]!==p||Z[93]!==el?(e=(e,t)=>{let n=0===t&&e===el[0];return(0,i.jsx)(nT,{annotation:e,gridCellId:p,isFirstMarker:n},`annotation-${e.id}`)},Z[92]=p,Z[93]=el,Z[94]=e):e=Z[94],q=es.map(e),Z[88]=p,Z[89]=el,Z[90]=es,Z[91]=q}else q=Z[91];return Z[95]!==a||Z[96]!==G||Z[97]!==q?(z=(0,i.jsxs)(“div”,{className:nP,ref:er,children:[G,a,q]}),Z[95]=a,Z[96]=G,Z[97]=q,Z[98]=z):z=Z[98],Z[99]!==s.length||Z[100]!==X||Z[101]!==Q||Z[102]!==w?(K=Q&&(0,i.jsx)(m.K,{icon:c.UndoIcon,className:(0,b.$)(nO,”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:()=>{w(),X()},onKeyDown:e=>{(“Enter”===e.key||”Space”===e.code)&&(w(),X())}}),Z[99]=s.length,Z[100]=X,Z[101]=Q,Z[102]=w,Z[103]=K):K=Z[103],Z[104]!==ec||Z[105]!==ed||Z[106]!==y||Z[107]!==U||Z[108]!==H||Z[109]!==ep||Z[110]!==z||Z[111]!==K?(W=(0,i.jsxs)(“div”,{className:U,style:H,”aria-hidden”:ep,onFocus:ec,onClick:eo,onKeyDown:ed,onKeyUp:eo,onMouseDown:eo,onMouseUp:eo,”data-inline-markers”:!0,ref:y,children:[z,K]}),Z[104]=ec,Z[105]=ed,Z[106]=y,Z[107]=U,Z[108]=H,Z[109]=ep,Z[110]=z,Z[111]=K,Z[112]=W):W=Z[112],W}: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:y,onCloseConversationList:j,onCloseFocusMode:C,onDeleteLineComment:w,threadsConnectionId:N,shouldStartNewConversationWithSuggestedChange:S,ghostUser:L,shouldListenForEscapeKey:D,…I}){let k=et(p),{disableDialogMode:R,enableDialogMode:A}=en(),T=im(p,t,a),O=(0,E.gK)(n?.type??”ADDITION”,!1,d),P=t1(n,S),F=(0,l.useRef)(null),$=(0,l.useMemo)(()=>[…e].sort((e,t)=>ih[e.annotationLevel]-ih[t.annotationLevel]),[e]),M=(0,l.useMemo)(()=>r?[…s,{id:”new-comment”},…$]:[…s,…$],[r,s,$]),B=e=>e.stopPropagation(),V=(0,l.useCallback)(e=>{e.target&&k&&(e.target.closest(“[data-inline-markers]”)||R())},[R,k]);(0,l.useEffect)(()=>(g.XC?.addEventListener(“mousedown”,V),()=>g.XC?.removeEventListener(“mousedown”,V)),[V]);let U=(0,_.mF)();return(0,l.useEffect)(()=>{if(U){let t=s.map(e=>e.id),n=e.map(e=>e.id);(t.includes(U)||n.includes(U))&&T({shouldFocusFirstMarker:!1},U)}},[U,T,s,e]),ny({containerRef:F,markers:M,disabled:!k}),(0,i.jsxs)(“div”,{className:(0,b.$)(“d-flex pt-1″,k?n$:””),style:k?{marginRight:`-${x}`,backgroundColor:O}:{marginRight:`-${x}`},”aria-hidden”:k?”false”:”true”,onFocus:e=>{B(e),k||A(p)},onClick:B,onKeyDown:e=>{let t=e.target,n=e.target,i=n.closest(`[data-grid-cell-id=${p}]`);if(D&&i?.contains(t)&&e?.key===”Escape”){C(),R(),i?.focus();return}if(i?.contains(t)&&”true”===n.getAttribute(“data-exit-dialog-mode-button”)&&!e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),i?.querySelector(‘[data-is-first-collapse-button=”true”]’)?.focus();return}if(i?.contains(t)&&”true”===n.getAttribute(“data-is-first-collapse-button”)&&e?.shiftKey&&e?.key===”Tab”){e.preventDefault(),i?.querySelector(‘[data-exit-dialog-mode-button=”true”]’)?.focus();return}},onKeyUp:B,onMouseDown:B,onMouseUp:B,”data-inline-markers”:!0,ref:o,children:[(0,i.jsxs)(“div”,{className:nP,ref:F,children:[s.map((e,t)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,t===M.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===t,”data-marker-id”:`${e.id}`,tabIndex:k?0:-1,children:(0,i.jsx)(id,{threadPositionNumber:t+1,isFirstThread:0===t,filePath:h,lineMarkersKey:u,fileAnchor:f,gridCellId:p,onDeleteLineComment:w,threadId:e.id,threadsConnectionId:N,suggestedChangesConfig:P,ghostUser:L,…I})},`review-thread-${e.id}`)),r,$.map((e,t)=>{let n=0===t&&e===M[0];return(0,i.jsx)(nT,{annotation:e,gridCellId:p,isFirstMarker:n},`annotation-${e.id}`)})]}),k&&(0,i.jsx)(m.K,{icon:c.UndoIcon,className:(0,b.$)(nO,”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(),R()},onKeyDown:e=>{(“Enter”===e.key||”Space”===e.code)&&(C(),R())}})]})};function ix(e){return e.id}function ib(e){return e.id}function iv(e){return e.stopPropagation()}function iy(e,t){return ih[e.annotationLevel]-ih[t.annotationLevel]}try{ip.displayName||(ip.displayName=”InlineMarkers”)}catch{}try{ig.displayName||(ig.displayName=”InlineMarkersInternal”)}catch{}var ij=n(18799),iC=n(40260);async function iw({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=iS(e);break;case a:s=iL({diffLines:t,diffOrientation:r?"left":"right",getSelectedLineRange:i});break;default:s=iN({diffLines:t,getSelectedLineRange:i})}await (0,iC.D)(s)}let iN=({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,T.Ls)(e.slice(l,o+1))},iS=e=>(0,T.Po)(e)||!e?””:(0,T.Ls)([e]),iL=({diffLines:e,diffOrientation:t,getSelectedLineRange:n})=>{if(void 0===t)return””;let i=n();if(!i)return””;let a=(0,T.Mk)(e),{selectedRightLines:r,selectedLeftLines:s}=O({selectedLineRange:i,leftLines:a.leftLines,rightLines:a.rightLines});return”left”===t?(0,T.Ls)(s):(0,T.Ls)(r)},iD=(0,l.createContext)(null),iI=(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,y]=(0,l.useState)(),[j,C]=(0,l.useState)(),w=!!h||!!g||!!b||!!j;c[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>{f(!0)},c[0]=t):t=c[0];let N=t;c[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=()=>{f(!1)},c[1]=n):n=c[1];let S=n;c[2]===Symbol.for(“react.memo_cache_sentinel”)?(a=(e,t,n)=>{switch(e){case”context-menu”:p(t),C(void 0),y(void 0),x(void 0);break;case”new-conversation”:C({cellId:t,withSuggestedChange:n?.withSuggestedChange}),p(void 0),y(void 0),x(void 0);break;case”marker-details”:y(t),p(void 0),x(void 0),C(void 0);break;case”marker-list”:x(t),p(void 0),C(void 0),y(void 0)}},c[2]=a):a=c[2];let L=a;c[3]===Symbol.for(“react.memo_cache_sentinel”)?(s=e=>{switch(e){case”context-menu”:p(void 0);break;case”new-conversation”:C(void 0);break;case”marker-details”:y(void 0);break;case”marker-list”:x(void 0)}},c[3]=s):s=c[3];let D=s;c[4]!==w||c[5]!==m||c[6]!==h||c[7]!==b||c[8]!==g||c[9]!==j?(o={isActionBarVisible:m,showActionBar:N,hideActionBar:S,closeDialog:D,openDialog:L,anyMenuOpen:w,openContextMenuCell:h,openMarkersListCell:g,openMarkerDetailsCell:b,openNewConversationCell:j},c[4]=w,c[5]=m,c[6]=h,c[7]=b,c[8]=g,c[9]=j,c[10]=o):o=c[10];let I=o;return c[11]!==u||c[12]!==I?(d=(0,i.jsx)(iD,{value:I,children:u}),c[11]=u,c[12]=I,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)(iD,{value:b,children:e})},i_=(0,a.GV)()?function(){let e=(0,l.useContext)(iD);if(!e)throw Error(“useMarkersDialogContext must be used within a MarkersDialogContextProvider”);return e}:function(){let e=(0,l.useContext)(iD);if(!e)throw Error(“useMarkersDialogContext must be used within a MarkersDialogContextProvider”);return e};try{iD.displayName||(iD.displayName=”MarkersDialogContext”)}catch{}try{iI.displayName||(iI.displayName=”MarkersDialogContextProvider”)}catch{}let ik=(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}=i_(),y=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 j=t;c[3]!==m||c[4]!==j?(n=()=>{h(m),j()},c[3]=m,c[4]=j,c[5]=n):n=c[5];let C=n;c[6]!==g?(i=()=>{g(“context-menu”)},c[6]=g,c[7]=i):i=c[7];let w=i;c[8]!==w||c[9]!==y||c[10]!==j?(a=()=>{y?w():j()},c[8]=w,c[9]=y,c[10]=j,c[11]=a):a=c[11];let N=a;c[12]!==m||c[13]!==N?(s=()=>{h(m),N()},c[12]=m,c[13]=N,c[14]=s):s=c[14];let S=s;c[15]!==g?(o=()=>{g(“marker-list”)},c[15]=g,c[16]=o):o=c[16];let L=o;return c[17]!==b||c[18]!==w||c[19]!==L||c[20]!==y||c[21]!==j||c[22]!==C||c[23]!==f||c[24]!==N||c[25]!==S?(d={isContextMenuOpen:y,openContextMenu:j,openContextMenuFromActionBar:C,closeContextMenu:w,toggleContextMenu:N,toggleContextMenuFromActionBar:S,closeMarkerListDialog:L,returnFocusRef:f,anyMenuOpen:b},c[17]=b,c[18]=w,c[19]=L,c[20]=y,c[21]=j,c[22]=C,c[23]=f,c[24]=N,c[25]=S,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}=i_(),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}},iR=(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}=i_(),{sendAnalyticsEvent:f}=(0,tJ.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,y=m?.withSuggestedChange;return l[11]!==b||l[12]!==h||l[13]!==y||l[14]!==g||l[15]!==x?(s={isNewConversationDialogOpen:h,startNewConversation:g,startNewConversationWithSuggestedChange:x,closeNewConversation:b,shouldStartNewConversationWithSuggestedChange:y},l[11]=b,l[12]=h,l[13]=y,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}=i_(),{sendAnalyticsEvent:r}=(0,tJ.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])}},iA=(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}=i_(),[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 y=n;u[6]!==f?(i=()=>{f()},u[6]=f,u[7]=i):i=u[7];let j=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 C=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 w=s;u[16]!==p?(o=e=>{p||(e.stopPropagation(),x(!0))},u[16]=p,u[17]=o):o=u[17];let N=o;u[18]!==p?(d=e=>{!p&&tW(e.key)&&e.stopPropagation()},u[18]=p,u[19]=d):d=u[19];let S=d;return u[20]!==w||u[21]!==N||u[22]!==S||u[23]!==y||u[24]!==b||u[25]!==j||u[26]!==C||u[27]!==g?(c={isActionBarFocused:g,handleCellBlur:y,handleCellFocus:b,handleCellMouseEnter:j,handleCellMouseLeave:C,handleActionBarBlur:w,handleActionBarFocusCapture:N,handleActionBarKeydownCapture:S},u[20]=w,u[21]=N,u[22]=S,u[23]=y,u[24]=b,u[25]=j,u[26]=C,u[27]=g,u[28]=c):c=u[28],c}:function({cellRef:e}){let{showActionBar:t,hideActionBar:n,anyMenuOpen:i}=i_(),[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&&tW(e.key)&&e.stopPropagation()},[i])}};var iE=n(21513),iT=n(73783),iO=n(24494),iP=n(79036);let iF={compact:{avatarSize:18},relaxed:{avatarSize:20}};function i$({shouldAnimateRef:e,lineSpacingPreference:t=”relaxed”,threads:n,annotations:a}){(0,l.useEffect)(()=>{e?.current&&(e.current=!1)},[e]);let{avatarSize:r}=iF[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:tz?.login&&(o[tz.login]=tz)}));let u=[…c.sort((e,t)=>(iP.GF[e.level]?.priority||0)<(iP.GF[t.level]?.priority||0)?-1:1).map(t=>e?.current?(0,i.jsx)(iP.S,{annotationLevel:t.level},t.id):(0,i.jsx)(iP.Xh,{annotationLevel:t.level},t.id)),…Object.keys(o).map(e=>{let t=o[e]?.login,n=o[e]?.avatarUrl??(tz?.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)(iO.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{i$.displayName||(i$.displayName=”CommentIndicator”)}catch{}var iM=n(89141);let iB=(0,a.GV)()?function(e){let t,n,i,a,s=(0,r.c)(18),{currentHunk:l,nextHunk:o,previousHunk:d}=e,{addInjectedContextLines:c}=eo(),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}=eo(),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 iV=n(29255);let iU={left:”L”,right:”R”},iH=”Add comment”,iG=”Suggest change”;function iq(e,t,n){let i=n&&!(0,T.Ji)(t)?iU.left:iU.right;return`${e} on line ${i}${t.blobLineNumber}`}function iz(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 iK(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 iW=(0,a.GV)()?function(e){let t,n,a,s,l,o,d,u,m,f,h,p,g,x,b,y,j,C,w,N,S,L=(0,r.c)(72),{diffLine:D,handleStartConversationWithSuggestedChange:I,handleStartConversation:_,isLeftSide:k,isSplit:R}=e,{selectMultipleLines:A}=el(),E=Z(),O=J();L[0]!==O?(t=O(),L[0]=O,L[1]=t):t=L[1];let P=t;L[2]!==E?(n=(0,T.Mk)(E()),L[2]=E,L[3]=n):n=L[3];let F=n;L[4]!==F.leftLines?(a=F.leftLines.find(i4),L[4]=F.leftLines,L[5]=a):a=L[5];let $=a;L[6]!==F.leftLines?(s=F.leftLines.filter(i3),L[6]=F.leftLines,L[7]=s):s=L[7];let M=s,B=M[M.length-1];L[8]!==F.leftLines?(l=F.leftLines.filter(i2).every(i1),L[8]=F.leftLines,L[9]=l):l=L[9];let V=l;L[10]!==F.rightLines?(o=F.rightLines.find(i0),L[10]=F.rightLines,L[11]=o):o=L[11];let U=o;L[12]!==F.rightLines?(d=F.rightLines.filter(iY),L[12]=F.rightLines,L[13]=d):d=L[13];let H=d,G=H[H.length-1];L[14]!==F.rightLines?(u=F.rightLines.filter(iJ),L[14]=F.rightLines,L[15]=u):u=L[15];let q=0===u.length;L[16]!==F.leftLines?(m=F.leftLines.filter(iX),L[16]=F.leftLines,L[17]=m):m=L[17];let z=0===m.length;e:{if(F.leftLines.find(iQ)||F.rightLines.find(iZ)){f=!1;break e}f=!0}let K=f;L[18]!==$||L[19]!==_||L[20]!==I||L[21]!==B||L[22]!==A||L[23]!==P?(h=(e,t)=>{!(!P||!B||!$||(0,T.Po)(B)||(0,T.Po)($))&&$.left&&B.left&&$.key&&(A({endLineKey:B.key,endOrientation:”left”,startLineKey:$.key,startOrientation:”left”,firstLineSelectionOnDrag:{lineKey:$.key,lineNumber:$.left,orientation:”left”,shouldStartConversation:!1}},e_),t?.withSuggestedChange?I():_())},L[18]=$,L[19]=_,L[20]=I,L[21]=B,L[22]=A,L[23]=P,L[24]=h):h=L[24];let W=h;L[25]!==U||L[26]!==_||L[27]!==I||L[28]!==G||L[29]!==A||L[30]!==P?(p=(e,t)=>{!(!P||!G||!U||(0,T.Po)(G)||(0,T.Po)(U))&&U.right&&G.right&&U.key&&(A({endLineKey:G.key,endOrientation:”right”,startLineKey:U.key,startOrientation:”right”,firstLineSelectionOnDrag:{lineKey:U.key,lineNumber:U.right,orientation:”right”,shouldStartConversation:!1}},e_),t?.withSuggestedChange?I():_())},L[25]=U,L[26]=_,L[27]=I,L[28]=G,L[29]=A,L[30]=P,L[31]=p):p=L[31];let Q=p,X=”DELETION”!==D.type;t:{if(!P){g=!1;break t}if(P.startOrientation!==P.endOrientation||P.startLineNumber!==P.endLineNumber){g=!0;break t}g=!1}let Y=g,ee=!1,et=!1;if(P&&Y){let e,t=iU[P.startOrientation],n=iU[P.endOrientation];if(y=` on lines ${t}${P.startLineNumber}-${n}${P.endLineNumber}`,!(0,T.Po)($)&&!(0,T.Po)(B)&&$&&B){let e;ee=!0,L[32]!==$||L[33]!==B||L[34]!==q?(e=iK($,B,q),L[32]=$,L[33]=B,L[34]=q,L[35]=e):e=L[35],x=e}if(!(0,T.Po)(U)&&!(0,T.Po)(G)&&U&&G){let e;et=!0,L[36]!==K||L[37]!==U||L[38]!==R||L[39]!==G||L[40]!==z?(e=iz(U,G,z,R,K),L[36]=K,L[37]=U,L[38]=R,L[39]=G,L[40]=z,L[41]=e):e=L[41],b=e}return L[42]!==K||L[43]!==V||L[44]!==X||L[45]!==_||L[46]!==I||L[47]!==Q||L[48]!==W||L[49]!==R||L[50]!==q||L[51]!==b||L[52]!==x||L[53]!==et||L[54]!==ee||L[55]!==y?(e=(0,i.jsx)(i.Fragment,{children:R?(0,i.jsx)(i.Fragment,{children:K?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eU.l.Item,{onSelect:Q,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iH+b,(0,i.jsx)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eU.l.Item,{onSelect:e=>Q(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iG+b]})]}):(0,i.jsxs)(i.Fragment,{children:[ee?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eU.l.Item,{onSelect:W,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iH+x,(0,i.jsx)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:q?”Alt+n”:”Alt+Shift+N”})})]}),V&&(0,i.jsxs)(eU.l.Item,{onSelect:e=>W(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iG+x]})]}):null,et?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eU.l.Item,{onSelect:Q,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iH+b,(0,i.jsx)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eU.l.Item,{onSelect:e=>Q(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iG+b]})]}):null]})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eU.l.Item,{onSelect:_,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iH+y]}),X&&V&&(0,i.jsxs)(eU.l.Item,{onSelect:I,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iG+y]})]})}),L[42]=K,L[43]=V,L[44]=X,L[45]=_,L[46]=I,L[47]=Q,L[48]=W,L[49]=R,L[50]=q,L[51]=b,L[52]=x,L[53]=et,L[54]=ee,L[55]=y,L[56]=e):e=L[56],e}return L[57]===Symbol.for(“react.memo_cache_sentinel”)?(j=(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),L[57]=j):j=L[57],L[58]!==k||L[59]!==D?(C=iq(iH,D,k),L[58]=k,L[59]=D,L[60]=C):C=L[60],L[61]!==_||L[62]!==C?(w=(0,i.jsxs)(eU.l.Item,{onSelect:_,children:[j,C]}),L[61]=_,L[62]=C,L[63]=w):w=L[63],L[64]!==X||L[65]!==I||L[66]!==k||L[67]!==D?(N=X&&(0,i.jsxs)(eU.l.Item,{onSelect:I,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iq(iG,D,k)]}),L[64]=X,L[65]=I,L[66]=k,L[67]=D,L[68]=N):N=L[68],L[69]!==w||L[70]!==N?(S=(0,i.jsxs)(i.Fragment,{children:[w,N]}),L[69]=w,L[70]=N,L[71]=S):S=L[71],S}:function({diffLine:e,handleStartConversationWithSuggestedChange:t,handleStartConversation:n,isLeftSide:a,isSplit:r}){let s,o,d,{selectMultipleLines:u}=el(),m=Z(),f=J()(),h=(0,l.useMemo)(()=>(0,T.Mk)(m()),[m]),p=(0,l.useMemo)(()=>h.leftLines.find(e=>!(0,T.Po)(e)),[h.leftLines]),g=(0,l.useMemo)(()=>{let e=h.leftLines.filter(e=>!(0,T.Po)(e));return e[e.length-1]},[h.leftLines]),x=(0,l.useMemo)(()=>h.leftLines.filter(e=>!(0,T.Po)(e)).every(e=>”DELETION”!==e.type),[h.leftLines]),b=(0,l.useMemo)(()=>h.rightLines.find(e=>!(0,T.Po)(e)),[h.rightLines]),y=(0,l.useMemo)(()=>{let e=h.rightLines.filter(e=>!(0,T.Po)(e));return e[e.length-1]},[h.rightLines]),j=(0,l.useMemo)(()=>0===h.rightLines.filter(e=>!(0,T.Po)(e)).length,[h.rightLines]),C=(0,l.useMemo)(()=>0===h.leftLines.filter(e=>!(0,T.Po)(e)).length,[h.leftLines]),w=(0,l.useMemo)(()=>!(h.leftLines.find(e=>!(0,T.Po)(e)&&!(0,T.Ji)(e)&&”INJECTED_CONTEXT”!==e.type)||h.rightLines.find(e=>!(0,T.Po)(e)&&!(0,T.Ji)(e)&&”INJECTED_CONTEXT”!==e.type)),[h.leftLines,h.rightLines]),N=(0,l.useCallback)((e,i)=>{!(!f||!g||!p||(0,T.Po)(g)||(0,T.Po)(p))&&p.left&&g.left&&p.key&&(u({endLineKey:g.key,endOrientation:”left”,startLineKey:p.key,startOrientation:”left”,firstLineSelectionOnDrag:{lineKey:p.key,lineNumber:p.left,orientation:”left”,shouldStartConversation:!1}},e_),i?.withSuggestedChange?t():n())},[f,g,p,u,t,n]),S=(0,l.useCallback)((e,i)=>{!(!f||!y||!b||(0,T.Po)(y)||(0,T.Po)(b))&&b.right&&y.right&&b.key&&(u({endLineKey:y.key,endOrientation:”right”,startLineKey:b.key,startOrientation:”right”,firstLineSelectionOnDrag:{lineKey:b.key,lineNumber:b.right,orientation:”right”,shouldStartConversation:!1}},e_),i?.withSuggestedChange?t():n())},[f,y,b,u,t,n]),L=”DELETION”!==e.type,D=(0,l.useMemo)(()=>!!f&&(f.startOrientation!==f.endOrientation||f.startLineNumber!==f.endLineNumber),[f]),I=!1,_=!1;if(f&&D){let e=iU[f.startOrientation],a=iU[f.endOrientation];return d=` on lines ${e}${f.startLineNumber}-${a}${f.endLineNumber}`,!(0,T.Po)(p)&&!(0,T.Po)(g)&&p&&g&&(I=!0,s=iK(p,g,j)),!(0,T.Po)(b)&&!(0,T.Po)(y)&&b&&y&&(_=!0,o=iz(b,y,C,r,w)),(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(i.Fragment,{children:w?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eU.l.Item,{onSelect:S,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iH+o,(0,i.jsx)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eU.l.Item,{onSelect:e=>S(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iG+o]})]}):(0,i.jsxs)(i.Fragment,{children:[I?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eU.l.Item,{onSelect:N,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iH+s,(0,i.jsx)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:j?”Alt+n”:”Alt+Shift+N”})})]}),x&&(0,i.jsxs)(eU.l.Item,{onSelect:e=>N(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iG+s]})]}):null,_?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eU.l.Item,{onSelect:S,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iH+o,(0,i.jsx)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Alt+n”})})]}),(0,i.jsxs)(eU.l.Item,{onSelect:e=>S(e,{withSuggestedChange:!0}),children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iG+o]})]}):null]})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eU.l.Item,{onSelect:n,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iH+d]}),L&&x&&(0,i.jsxs)(eU.l.Item,{onSelect:t,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iG+d]})]})})}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eU.l.Item,{onSelect:n,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusIcon,{})}),iq(iH,e,a)]}),L&&(0,i.jsxs)(eU.l.Item,{onSelect:t,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.PlusCircleIcon,{})}),iq(iG,e,a)]})]})};function iZ(e){return!(0,T.Po)(e)&&!(0,T.Ji)(e)&&”INJECTED_CONTEXT”!==e.type}function iQ(e){return!(0,T.Po)(e)&&!(0,T.Ji)(e)&&”INJECTED_CONTEXT”!==e.type}function iX(e){return!(0,T.Po)(e)}function iJ(e){return!(0,T.Po)(e)}function iY(e){return!(0,T.Po)(e)}function i0(e){return!(0,T.Po)(e)}function i1(e){return”DELETION”!==e.type}function i2(e){return!(0,T.Po)(e)}function i3(e){return!(0,T.Po)(e)}function i4(e){return!(0,T.Po)(e)}try{iW.displayName||(iW.displayName=”StartConversationContextMenuItems”)}catch{}var i5=n(66358);let i6=(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)(at,{…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)(i9,{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)(as,{handleCopyCode:e.handleCopyCode}),c[8]=e.handleCopyCode,c[9]=a):a=c[9],c[10]!==e.diffAnchor?(s=(0,i.jsx)(ae,{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)(i7,{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)(ao,{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)(at,{…e}),e.viewerData.shouldDisplayComments&&(0,i.jsx)(i9,{diffAnchor:e.diffAnchor,diffLine:e.diffLine,fileDiffReference:e.copilotChatReference,isLeftSide:e.isLeftSide}),(0,i.jsx)(as,{handleCopyCode:e.handleCopyCode}),(0,i.jsx)(ae,{diffAnchor:e.diffAnchor}),e.viewerData.shouldDisplayComments&&(0,i.jsx)(i7,{diffAnchor:e.diffAnchor,diffLine:e.diffLine}),(0,i.jsx)(ao,{currentHunk:e.currentHunk,diffAnchor:e.diffAnchor,nextHunk:e.nextHunk,previousHunk:e.previousHunk})]})},i7=(0,a.GV)()?function(e){let t,n,a,s,l=(0,r.c)(8),{diffLine:o,diffAnchor:d}=e,u=J();l[0]!==d||l[1]!==u||l[2]!==o?(t=()=>{let e=u(),t=(0,T.j2)({line:o,range:e,fileAnchor:d});t&&(0,iC.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)(eU.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)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Mod+Alt+y”})}),l[5]=a):a=l[5],l[6]!==m?(s=(0,i.jsxs)(eU.l.Item,{onSelect:m,onMouseDown:i8,children:[n,”Copy link”,a]}),l[6]=m,l[7]=s):s=l[7],s}:function({diffLine:e,diffAnchor:t}){let n=J(),a=(0,l.useCallback)(()=>{let i=n(),a=(0,T.j2)({line:e,range:i,fileAnchor:t});a&&(0,iC.D)(a)},[t,n,e]);return(0,i.jsxs)(eU.l.Item,{onSelect:a,onMouseDown:e=>{window.getSelection()?.toString()!==””&&e.preventDefault()},children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.LinkIcon,{})}),”Copy link”,(0,i.jsx)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Mod+Alt+y”})})]})};function i8(e){window.getSelection()?.toString()!==””&&e.preventDefault()}let i9=(0,a.GV)()?e=>{let t,n,a=(0,r.c)(8),s=J();if(a[0]!==s||a[1]!==e.diffAnchor||a[2]!==e.diffLine||a[3]!==e.isLeftSide){let n=s();t=(0,T.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)(iM.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=J()(),n=(0,T.Av)(t,e.diffLine,e.isLeftSide,e.diffAnchor);return e.fileDiffReference?(0,i.jsx)(iM.w,{showDivider:!0,selectedRange:n,fileDiffReference:e.fileDiffReference}):null},ae=(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)(eU.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)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Mod+a”})}),l[3]=a):a=l[3],l[4]!==d?(s=(0,i.jsxs)(eU.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)(eU.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)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.MultiSelectIcon,{})}),”Select all”,(0,i.jsx)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Mod+a”})})]})},at=(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,y=x.length>0;return f||g||y?(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)(iW,{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)(an,{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)(eU.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)(iW,{diffLine:e,handleStartConversation:l,handleStartConversationWithSuggestedChange:o,isLeftSide:n,isSplit:a}),(0,i.jsx)(an,{threads:d,annotations:c,diffLine:e,handleViewMarkersSelection:t,isLeftSide:n,isSplit:a,shouldDisplayCollapseComments:r,viewerData:u}),(0,i.jsx)(eU.l.Divider,{})]}):null},an=(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===ij.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)(aa,{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)(ai,{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===ij.sI.Visible?null:a?(0,i.jsx)(ai,{threads:r,annotations:s,handleViewMarkersSelection:t,isLeftSide:n,shouldDisplayCollapseComments:l}):(0,i.jsx)(aa,{threads:r,annotations:s,diffLine:e,onSelect:()=>t(),shouldDisplayCollapseComments:l})},ai=(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)(ar,{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)(ar,{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)(ar,{text:n?”Collapse comments”:”Expand comments”,onSelect:()=>e(“LEFT”)})}):(0,i.jsx)(i.Fragment,{children:(s||l)&&(0,i.jsx)(ar,{text:n?”Collapse comments”:”Expand comments”,onSelect:()=>e(“RIGHT”)})})},aa=(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)(ar,{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)(ar,{text:r?”Collapse comments”:”Expand comments”,onSelect:()=>t()}):null},ar=(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)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.CommentDiscussionIcon,{})}),a[0]=t):t=a[0],a[1]!==s||a[2]!==l?(n=(0,i.jsxs)(eU.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)(eU.l.Item,{onSelect:e,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.CommentDiscussionIcon,{})}),t]})},as=(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)(eU.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)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Mod+c”})}),s[1]=n):n=s[1],s[2]!==l?(a=(0,i.jsxs)(eU.l.Item,{onSelect:l,onMouseDown:al,children:[t,”Copy”,n]}),s[2]=l,s[3]=a):a=s[3],a}:function({handleCopyCode:e}){return(0,i.jsxs)(eU.l.Item,{onSelect:e,onMouseDown:e=>{window.getSelection()?.toString()!==””&&e.preventDefault()},children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.CopyIcon,{})}),”Copy”,(0,i.jsx)(eU.l.TrailingVisual,{children:(0,i.jsx)(iV.U,{keys:”Mod+c”})})]})};function al(e){window.getSelection()?.toString()!==””&&e.preventDefault()}let ao=(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=ee();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}=iB(t);return h||p||m||u?(o[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(eU.l.Divider,{}),o[4]=n):n=o[4],o[5]!==d||o[6]!==f||o[7]!==u||o[8]!==m?(a=f.has(i5.YR.expandLines)?null:(0,i.jsx)(ad,{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)(ac,{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=ee(),{canExpandStartOfHunk:s,canExpandEndOfHunk:l}=iB({currentHunk:e,nextHunk:n,previousHunk:a});return s||l||a||n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eU.l.Divider,{}),r.has(i5.YR.expandLines)?null:(0,i.jsx)(ad,{currentHunk:e,nextHunk:n,previousHunk:a}),(0,i.jsx)(ac,{diffAnchor:t,nextHunk:n,previousHunk:a})]}):null},ad=(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}=iB(t);return l[4]!==m||l[5]!==h?(n=m&&(0,i.jsxs)(eU.l.Item,{onSelect:h,children:[(0,i.jsx)(eU.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)(eU.l.Item,{onSelect:f,children:[(0,i.jsx)(eU.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}=iB({currentHunk:e,nextHunk:t,previousHunk:n});return(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsxs)(eU.l.Item,{onSelect:s,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.FoldUpIcon,{})}),”Expand above”]}),l&&(0,i.jsxs)(eU.l.Item,{onSelect:r,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.FoldDownIcon,{})}),”Expand below”]})]})},ac=(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)(eU.l.Item,{“aria-keyshortcuts”:”PageDown”,onSelect:p,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToBottomIcon,{})}),”Go to next hunk”,(0,i.jsx)(eU.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)(eU.l.Item,{“aria-keyshortcuts”:”PageUp”,onSelect:g,children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToTopIcon,{})}),”Go to previous hunk”,(0,i.jsx)(eU.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)(eU.l.Item,{“aria-keyshortcuts”:”PageDown”,onSelect:()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${e}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageDown”}))})},children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToBottomIcon,{})}),”Go to next hunk”,(0,i.jsx)(eU.l.TrailingVisual,{children:”Page Down”})]}):null,n?(0,i.jsxs)(eU.l.Item,{“aria-keyshortcuts”:”PageUp”,onSelect:()=>{setTimeout(()=>{document.querySelector(`table[data-diff-anchor=”${e}”]`)?.dispatchEvent(new KeyboardEvent(“keydown”,{key:”PageUp”}))})},children:[(0,i.jsx)(eU.l.LeadingVisual,{children:(0,i.jsx)(c.MoveToTopIcon,{})}),”Go to previous hunk”,(0,i.jsx)(eU.l.TrailingVisual,{children:”Page Up”})]}):null]})};try{i6.displayName||(i6.displayName=”CellContextMenu”)}catch{}try{i7.displayName||(i7.displayName=”CopyAnchorLink”)}catch{}try{ae.displayName||(ae.displayName=”SelectAllListItem”)}catch{}try{at.displayName||(at.displayName=”MarkerListItems”)}catch{}try{an.displayName||(an.displayName=”ViewMarkerListItems”)}catch{}try{ai.displayName||(ai.displayName=”SplitDiffMarkersListItems”)}catch{}try{aa.displayName||(aa.displayName=”UnifiedDiffMarkerListItem”)}catch{}try{ar.displayName||(ar.displayName=”MarkerListItem”)}catch{}try{as.displayName||(as.displayName=”CopyContentListItems”)}catch{}try{ao.displayName||(ao.displayName=”HunkListItems”)}catch{}try{ad.displayName||(ad.displayName=”ExpandHunksListItems”)}catch{}try{ac.displayName||(ac.displayName=”JumpToHunkListItems”)}catch{}var au=n(17998);let am=”InProgressCommentIndicator-module__statusAvatarBackground–xzHl8″,af=”InProgressCommentIndicator-module__statusAvatar–BNNHX”,ah=(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)(au.k,{altText:d,icon:c.DotFillIcon,iconColor:”var(–fgColor-attention, var(–color-attention-fg))”,square:!1,size:o,src:a,backgroundClassName:am,className:af}),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)(au.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:am,className:af})};try{ah.displayName||(ah.displayName=”InProgressCommentIndicator”)}catch{}let ap=”ActionBar-module__action-bar-position–cMcOj”,ag=”ActionBar-module__addCommentButton–gIYSg”,ax=”ActionBar-module__addCommentButtonDraftCompact–HKIKU”,ab=”ActionBar-module__addCommentButtonDraftRelaxed–_qJPM”,av=”ActionBar-module__addCommentButtonNew–j1kFj”,ay=”ActionBar-module__actionBarArrowSizing–L93H4″,aj=”ActionBar-module__actionBarHeight–wiyuB”,aC=”ActionBar-module__actionBarStartCommentWidth–TTHf8″,aw=”ActionBar-module__action-bar-button-group–G1uFN”;var aN=n(85933),aS=n(82518);function aL({ref:e=null,annotations:t,authorAvatarUrl:n,authorLogin:a,cellId:r,cellRef:s,copilotChatReference:o,currentHunk:d,diffAnchor:u,diffLine:m,enterDialogMode:f,hasDraftComment:h,handleCopyCode:p,isLeftSide:g,isSplit:x,nextHunk:y,onMouseDownAddCommentButton:j,onMouseLeaveAddCommentButton:C,previousHunk:w,shouldDisplayCollapseComments:N,shouldDisplayMinimizedComments:S,showStartConversation:L,threads:D,toggleViewingMarkers:I,viewerData:_}){let k=(0,l.useRef)(null),R=(0,l.useRef)(null),{lineSpacingPreference:A,commentsPreference:E}=_,T=(0,l.useRef)(null),{sendAnalyticsEvent:O}=(0,tJ.s)(),P=k.current?k:R;(0,iE.T)(e,P);let F=D.reduce((e,t)=>e+(t.commentsData?.comments.length??0),0),$=t.length,{isActionBarFocused:M,handleActionBarBlur:B,handleActionBarFocusCapture:V,handleActionBarKeydownCapture:U}=iA({cellRef:s}),{isContextMenuOpen:H,anyMenuOpen:G,toggleContextMenu:q,toggleContextMenuFromActionBar:z}=ik({cellId:r,actionBarRef:T}),{startNewConversation:K,startNewConversationWithSuggestedChange:W}=iR({cellId:r,onOpenDialog:f}),Z=(0,l.useCallback)(e=>{(0,aN.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{O(“diff-lines.inp_interaction”,”CELL_ADD_COMMENT_BUTTON”,{latency:e.latency}),(0,aS.au)({name:”PRS_ADD_COMMENT_BUTTON_CLICK”,tags:{diffType:”v1″},value:e.latency})}}),e.stopPropagation(),K()},[K,O]),Q=F+$>0&&E===ij.sI.Collapsed,X={onBlur:B,onFocusCapture:V,onKeyDownCapture:U},J=(0,l.useCallback)(e=>{(1===D.length||1===t.length)&&e.preventDefault(),I?.()},[t.length,D.length,I]);return(0,i.jsxs)(i.Fragment,{children:[L&&(0,i.jsx)(“div”,{“aria-hidden”:!M,className:(0,b.$)(“d-flex”,”flex-row”,ag),children:(0,i.jsx)(i.Fragment,{children:h?(0,i.jsx)(eO.Q,{“aria-label”:”Continue comment in progress”,size:”small”,className:(0,b.$)(“py-0″,”compact”===A?ax:ab,aj),onClick:K,…X,children:(0,i.jsx)(ah,{lineSpacingPreference:A,authorAvatarUrl:n,authorLogin:a})}):(0,i.jsx)(eO.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″,av,aj,aC),onClick:Z,onMouseDown:j,onMouseLeave:C,…X})})}),(0,i.jsx)(“div”,{“aria-hidden”:!M,className:(0,b.$)(“d-flex”,”flex-row”,ap),children:(0,i.jsxs)(iT.A,{className:aw,…X,children:[Q&&S&&(0,i.jsx)(eO.Q,{ref:k,”aria-expanded”:G,”aria-label”:”View comments”,size:”small”,className:(0,b.$)(“py-0″,”px-1″,aj),onClick:J,children:(0,i.jsx)(i$,{threads:D,annotations:t,lineSpacingPreference:A})}),(0,i.jsxs)(eV.W,{anchorRef:T,open:H,onOpenChange:q,children:[(0,i.jsx)(eV.W.Anchor,{children:(0,i.jsx)(eO.Q,{ref:T,”aria-haspopup”:”true”,”aria-label”:”More actions”,icon:c.TriangleDownIcon,size:”small”,className:(0,b.$)(“fgColor-muted”,ay),onClick:z})}),(0,i.jsx)(eV.W.Overlay,{width:”medium”,children:(0,i.jsx)(eU.l,{children:(0,i.jsx)(i6,{threads:D,annotations:t,currentHunk:d,diffAnchor:u,diffLine:m,shouldDisplayCollapseComments:N,copilotChatReference:o,showStartConversation:L,handleCopyCode:p,handleViewMarkersSelection:I,isLeftSide:g,isSplit:x,nextHunk:y,previousHunk:w,startConversationCurrentLine:K,startConversationWithSuggestedChange:W,viewerData:_})})})]})]})})]})}function aD(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””}}aL.displayName=”ActionBar”;let aI=(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=aD(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=aD(e,t);return n?(0,i.jsx)(“span”,{className:”sr-only user-select-none”,children:n}):null};try{aI.displayName||(aI.displayName=”DiffLineScreenReaderSummary”)}catch{}let a_=”ContentCell-module__comment-indicator–Avv5C”,ak=”ContentCell-module__in-progress-comment-indicator–Onob7″,aR=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f,h,p,g,x,b,y,j,C,w,N,S,L,D,I,_,k,R,A,E,O=(0,r.c)(64);if(O[0]!==e){let{ref:i,cellId:r,children:l,className:S,columnIndex:L,diffLine:D,diffAnchor:I,handleDiffCellMouseDown:_,handleExitDialogMode:k,handleHideMarkersFromFocus:R,handleDiffSideCellSelectionBlocking:A,handleStartConversation:E,handleUserClosedMarkersDialog:T,isLeftSide:P,isRowSelected:F,isSplit:$,lineAnchor:M,commentDialogOpen:B,enterDialogMode:V,hasThreads:U,role:H,…G}=e;u=i,t=r,n=l,a=S,s=L,d=D,o=I,m=_,h=k,f=A,p=E,g=T,b=P,N=F,y=$,j=M,c=V,x=U,w=H,C=G,O[0]=e,O[1]=t,O[2]=n,O[3]=a,O[4]=s,O[5]=o,O[6]=d,O[7]=c,O[8]=u,O[9]=m,O[10]=f,O[11]=h,O[12]=p,O[13]=g,O[14]=x,O[15]=b,O[16]=y,O[17]=j,O[18]=C,O[19]=w,O[20]=N}else t=O[1],n=O[2],a=O[3],s=O[4],o=O[5],d=O[6],c=O[7],u=O[8],m=O[9],f=O[10],h=O[11],p=O[12],g=O[13],x=O[14],b=O[15],y=O[16],j=O[17],C=O[18],w=O[19],N=O[20];let P=void 0!==N&&N,F=d,$=(0,l.useRef)(null),M=J(),{sendAnalyticsEvent:B}=(0,tJ.s)();O[21]===Symbol.for(“react.memo_cache_sentinel”)?(S=()=>$.current,L=[],O[21]=S,O[22]=L):(S=O[21],L=O[22]),(0,l.useImperativeHandle)(u,S,L);let{disableDialogMode:V}=en();O[23]!==o||O[24]!==M||O[25]!==F?(D=()=>{let e=M(),t=(0,T.j2)({line:F,range:e,fileAnchor:o});t&&(0,iC.D)(t)},O[23]=o,O[24]=M,O[25]=F,O[26]=D):D=O[26];let U=D,H=X(),{clearFirstLineSelectionOnDrag:G}=el();O[27]!==G||O[28]!==H||O[29]!==p||O[30]!==B?(I=e=>{(0,aN.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{B(“diff-lines.inp_interaction”,”CELL_MULTI_SELECT”,{latency:e.latency})}});let t=H();t?.shouldStartConversation&&p?.(),G()},O[27]=G,O[28]=H,O[29]=p,O[30]=B,O[31]=I):I=O[31];let q=I;O[32]!==m||O[33]!==f?(_=e=>{e.shiftKey&&e.preventDefault(),m?.(e),f?.(e)},O[32]=m,O[33]=f,O[34]=_):_=O[34];let z=_;O[35]!==V||O[36]!==h||O[37]!==g?(k=()=>{$.current?.focus(),V(),h?.(),g?.()},O[35]=V,O[36]=h,O[37]=g,O[38]=k):k=O[38];let K=k,W=Z(),Y=Q();O[39]!==U||O[40]!==d||O[41]!==c||O[42]!==K||O[43]!==Y||O[44]!==W||O[45]!==M||O[46]!==p||O[47]!==x||O[48]!==b||O[49]!==y?(R=async e=>{if(e.target===$.current&&(e?.metaKey||e?.ctrlKey)&&”c”===e.key){e.preventDefault();let t=Y();await iw({diffLine:d,diffLines:t,getSelectedDiffLines:W,getSelectedLineRange:M,isSplit:y,isLeftSide:b});return}e.target===$.current&&(e?.metaKey||e?.ctrlKey)&&e.altKey&&”y”===e.key?U():$.current?.contains(e.target)&&e?.key===”Escape”?K():e.target===$.current&&”Enter”===e.key&&(c?.(),!1===x&&p?.(),e.preventDefault())},O[39]=U,O[40]=d,O[41]=c,O[42]=K,O[43]=Y,O[44]=W,O[45]=M,O[46]=p,O[47]=x,O[48]=b,O[49]=y,O[50]=R):R=O[50];let ee=R,et=`Cell-left:${F.left}-right:${F.right}-leftSide:${b}`,ei=!!P,ea=w??”gridcell”;O[51]===Symbol.for(“react.memo_cache_sentinel”)?(A={userSelect:”none”,position:”relative”},O[51]=A):A=O[51];let er=a?`focusable-grid-cell ${a} ${s<3?"left-side":""}`:"focusable-grid-cell";return O[52]!==t||O[53]!==n||O[54]!==z||O[55]!==q||O[56]!==ee||O[57]!==et||O[58]!==j||O[59]!==C||O[60]!==ea||O[61]!==er||O[62]!==ei?(E=(0,i.jsx)("td",{ref:$,"data-grid-cell-id":t,"data-line-anchor":j,"data-selected":ei,role:ea,style:A,tabIndex:-1,valign:"top",className:er,onKeyDown:ee,onMouseDown:z,onMouseUp:q,...C,children:n},et),O[52]=t,O[53]=n,O[54]=z,O[55]=q,O[56]=ee,O[57]=et,O[58]=j,O[59]=C,O[60]=ea,O[61]=er,O[62]=ei,O[63]=E):E=O[63],E}:function({ref:e,cellId:t,children:n,className:a,columnIndex:r,diffLine:s,diffAnchor:o,handleDiffCellMouseDown:d,handleExitDialogMode:c,handleHideMarkersFromFocus:u,handleDiffSideCellSelectionBlocking:m,handleStartConversation:f,handleUserClosedMarkersDialog:h,isLeftSide:p,isRowSelected:g=!1,isSplit:x,lineAnchor:b,commentDialogOpen:y,enterDialogMode:j,hasThreads:C,role:w,...N}){let S=(0,l.useRef)(null),L=J(),{sendAnalyticsEvent:D}=(0,tJ.s)();(0,l.useImperativeHandle)(e,()=>S.current,[]);let{disableDialogMode:I}=en(),_=(0,l.useCallback)(()=>{let e=L(),t=(0,T.j2)({line:s,range:e,fileAnchor:o});t&&(0,iC.D)(t)},[o,L,s]),k=X(),{clearFirstLineSelectionOnDrag:R}=el(),A=(0,l.useCallback)(e=>{(0,aN.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{D(“diff-lines.inp_interaction”,”CELL_MULTI_SELECT”,{latency:e.latency})}});let t=k();t?.shouldStartConversation&&f?.(),R()},[R,k,f,D]),E=(0,l.useCallback)(e=>{e.shiftKey&&e.preventDefault(),d?.(e),m?.(e)},[d,m]),O=(0,l.useCallback)(()=>{S.current?.focus(),I(),c?.(),h?.()},[I,c,h]),P=Z(),F=Q(),$=(0,l.useCallback)(async e=>{if(e.target===S.current&&(e?.metaKey||e?.ctrlKey)&&”c”===e.key){e.preventDefault();let t=F();await iw({diffLine:s,diffLines:t,getSelectedDiffLines:P,getSelectedLineRange:L,isSplit:x,isLeftSide:p});return}e.target===S.current&&(e?.metaKey||e?.ctrlKey)&&e.altKey&&”y”===e.key?_():S.current?.contains(e.target)&&e?.key===”Escape”?O():e.target===S.current&&”Enter”===e.key&&(j?.(),!1===C&&f?.(),e.preventDefault())},[F,s,P,L,x,p,_,O,j,C,f]),M=`Cell-left:${s.left}-right:${s.right}-leftSide:${p}`;return(0,i.jsx)(“td”,{ref:S,”data-grid-cell-id”:t,”data-line-anchor”:b,”data-selected”:!!g,role:w??”gridcell”,style:{userSelect:”none”,position:”relative”},tabIndex:-1,valign:”top”,className:a?`focusable-grid-cell ${a} ${r<3?"left-side":""}`:"focusable-grid-cell",onKeyDown:$,onMouseDown:E,onMouseUp:A,...N,children:n},M)};try{aR.displayName||(aR.displayName="Cell")}catch{}let aA=new Set,aE=!1,aT=e=>{let t=e.target instanceof Node?e.target:null;for(let e of aA){let{element:n,shouldIgnore:i,onPointerExit:a}=e;if(!n.isConnected){aA.delete(e);continue}if(t&&n.contains(t)){e.pendingExit=!1;continue}e.pendingExit=!0,i?.()||(e.pendingExit=!1,a())}0===aA.size&&aO()},aO=()=>{aE&&g.XC&&!(aA.size>0)&&(g.XC.removeEventListener(“pointermove”,aT),aE=!1)};function aP(e){let{element:t}=e;if(!t)return()=>{};let n={…e,pendingExit:!1};return aA.add(n),!aE&&g.XC&&(g.XC.addEventListener(“pointermove”,aT),aE=!0),()=>{aA.delete(n),aO()}}let aF=”diff-“;function a$(e){return”string”==typeof e&&e.startsWith(aF)?e.slice(aF.length):””}let aM=(0,a.GV)()?function(e){let t,n,a,s,o,d,u,m,f,h,p,x,j,C,w,N,S,L,D,I,k,R,A,E,O,P,F,$,M,B,V,U,G,q,z,K,W,Y,ee,en,ei,ea,er,es,eo,ec,em,ef,eh,ep,eg,ex,eb,ev=(0,r.c)(282),{ref:ey,annotationsAtPosition:ej,columnIndex:eC,commentsPreference:ew,copilotChatReference:eN,currentHunk:eS,diffAnchor:eL,diffLine:eD,dispatchMarkersStatus:eI,filePath:ek,handleDiffSideCellSelectionBlocking:eR,isLeftSide:eA,isRowSelected:eE,isSplit:eT,lineAnchor:eO,markersStatus:eP,nextHunk:eF,previousHunk:e$,rowId:eM,subjectId:eB,threadsAtPosition:eV,viewerData:eU}=e;ev[0]!==eD.html||ev[1]!==eD.type?(t=(0,T.x_)(eD.html,eD.type),ev[0]=eD.html,ev[1]=eD.type,ev[2]=t):t=ev[2];let[eH,eG]=t;ev[3]!==eG?(n=eG&&[“+”,”-“].includes(eG),ev[3]=eG,ev[4]=n):n=ev[4];let eq=n,{isActionBarVisible:ez,hideActionBar:eK,anyMenuOpen:eW}=i_(),eZ=(0,eQ.u)(“move_new_comments_ui”),eX=eA?”LEFT”:”RIGHT”;ev[5]!==ek||ev[6]!==eD.blobLineNumber||ev[7]!==eB||ev[8]!==eX?(a={diffSide:eX,filePath:ek,line:eD.blobLineNumber,subjectId:eB,fileLevelComment:!1},ev[5]=ek,ev[6]=eD.blobLineNumber,ev[7]=eB,ev[8]=eX,ev[9]=a):a=ev[9];let{hasPersistedComment:eJ}=(0,y.L)(a);ev[10]!==ew||ev[11]!==eU?(s={…eU,commentsPreference:ew},ev[10]=ew,ev[11]=eU,ev[12]=s):s=ev[12];let eY=s;ev[13]!==eC||ev[14]!==eM?(o=(0,T.u6)(eM,eC),ev[13]=eC,ev[14]=eM,ev[15]=o):o=ev[15];let e0=o,e1=et(e0),e3=eA?”LEFT”:”RIGHT”,e4=”RIGHT”===e3?eD.right:eD.left;ev[16]!==e4||ev[17]!==e3?(d=(0,T.oH)(e4,e3),ev[16]=e4,ev[17]=e3,ev[18]=d):d=ev[18];let e5=d,e6=eV.length,e7=ej.length,e8=(0,l.useRef)(null),e9=(0,l.useRef)(null);(ev[19]===Symbol.for(“react.memo_cache_sentinel”)?(u=()=>e9.current,m=[],ev[19]=u,ev[20]=m):(u=ev[19],m=ev[20]),(0,l.useImperativeHandle)(ey,u,m),ev[21]!==e7||ev[22]!==ew||ev[23]!==e6)?(f=0!==e6+e7,h=(0,T.S4)({hasThreads:f&&ew===ij.sI.Collapsed}),ev[21]=e7,ev[22]=ew,ev[23]=e6,ev[24]=f,ev[25]=h):(f=ev[24],h=ev[25]);let te=h;ev[26]===Symbol.for(“react.memo_cache_sentinel”)?(p={cellRef:e9},ev[26]=p):p=ev[26];let{handleCellBlur:tt,handleCellFocus:tn,handleCellMouseEnter:ti,handleCellMouseLeave:ta}=iA(p);ev[27]!==eW||ev[28]!==eK||ev[29]!==ez?(x=()=>{if(ez&&e9.current)return aP({element:e9.current,shouldIgnore:()=>{let e,t;return eW||(e=g.XC?.activeElement,!!(t=e9.current)&&!!e&&(t===e||t.contains(e)))},onPointerExit:eK})},j=[eW,eK,ez],ev[27]=eW,ev[28]=eK,ev[29]=ez,ev[30]=x,ev[31]=j):(x=ev[30],j=ev[31]),(0,l.useEffect)(x,j);let tr=(0,l.useRef)(null),ts=im(e0,e9,eI),tl=Q(),to=Z(),td=eu(),tc=J(),tu=(0,eQ.u)(“cotd_ui”);ev[32]!==eI?(C=e=>{(void 0===e||e)&&requestAnimationFrame(()=>e9.current?.focus()),eI(“USER_MINIMIZED_MARKERS”)},ev[32]=eI,ev[33]=C):C=ev[33];let tm=C;ev[34]!==tm||ev[35]!==ew||ev[36]!==ts||ev[37]!==eP.showMarkers?(w=()=>{ew===ij.sI.Collapsed&&eP.showMarkers?tm():ts()},ev[34]=tm,ev[35]=ew,ev[36]=ts,ev[37]=eP.showMarkers,ev[38]=w):w=ev[38];let tf=w;ev[39]!==e0?(N={cellId:e0,actionBarRef:e8},ev[39]=e0,ev[40]=N):N=ev[40];let{closeMarkerListDialog:th,isContextMenuOpen:tp}=ik(N);ev[41]!==eL||ev[42]!==ts||ev[43]!==ek||ev[44]!==tc||ev[45]!==eK||ev[46]!==eA||ev[47]!==eD.blobLineNumber||ev[48]!==eU.shouldDisplayComments?(S=()=>{ts(),eU.shouldDisplayComments||eK();let e=tc();e||(e={startLineNumber:eD.blobLineNumber,endLineNumber:eD.blobLineNumber,startOrientation:eA?”left”:”right”,endOrientation:eA?”left”:”right”,diffAnchor:eL});let t=new H.L(e,ek);g.cg?.dispatchEvent(t)},ev[41]=eL,ev[42]=ts,ev[43]=ek,ev[44]=tc,ev[45]=eK,ev[46]=eA,ev[47]=eD.blobLineNumber,ev[48]=eU.shouldDisplayComments,ev[49]=S):S=ev[49];let tg=S;ev[50]!==e0||ev[51]!==tg?(L={cellId:e0,onOpenDialog:tg},ev[50]=e0,ev[51]=tg,ev[52]=L):L=ev[52];let{isNewConversationDialogOpen:tx,shouldStartNewConversationWithSuggestedChange:tb,startNewConversation:tv,closeNewConversation:ty}=iR(L);e:{if(!ez){D=!1;break e}if(!eU.shouldDisplayComments)if(tu){let e;ev[53]!==eD?(e=(0,T.Po)(eD),ev[53]=eD,ev[54]=e):e=ev[54],D=!e;break e}else{let e;ev[55]!==to||ev[56]!==eD?(e=(0,T.a1)(eD,(0,T.Mk)(to())),ev[55]=to,ev[56]=eD,ev[57]=e):e=ev[57],D=e;break e}if(tx||!eU.viewerCanComment){D=!1;break e}if(tu){let e;ev[58]!==eD?(e=(0,T.Po)(eD),ev[58]=eD,ev[59]=e):e=ev[59],D=!e}else{let e;ev[60]!==to||ev[61]!==eD?(e=(0,T.a1)(eD,(0,T.Mk)(to())),ev[60]=to,ev[61]=eD,ev[62]=e):e=ev[62],D=e}}let tj=D,{baseOid:tC,headOid:tw}=(0,_.E4)(),{mutate:tN}=nt(),{effectiveRange:tS}=(0,_.L3)(),{newTreeEntry:tL,oldTreeEntry:tD}=ed();ev[63]!==tu||ev[64]!==tN||ev[65]!==tS||ev[66]!==tw||ev[67]!==ts||ev[68]!==ek||ev[69]!==tc||ev[70]!==eA||ev[71]!==eE||ev[72]!==eD||ev[73]!==tL||ev[74]!==tD||ev[75]!==tC?(I=e=>{let{onCompleted:t,onError:n,submitBatch:i,text:a}=e;if(!eD)return;let r=tc();if(tu){let e=new ReviewCommentFactory({filePath:ek,newTreeEntry:tL,oldTreeEntry:tD,effectiveDiffRange:tS,submitBatch:i,text:a});tN(r&&np(eE,r)?e.multilineRequestData(r):e.lineRequestData(eD,eA),{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment?.databaseId),ts()}})}else{let e,s,l=!!r&&r.startLineNumber!==r.endLineNumber,o=eD.blobLineNumber,d=eA&&!(0,T.Ji)(eD)?”left”:”right”;r&&l&&eE&&(d=”left”===r.endOrientation?”left”:”right”,s=”left”===r.startOrientation?”left”:”right”,o=r.endLineNumber,e=r.startLineNumber),tN({text:a,line:o,path:ek,side:d,startSide:s,submitBatch:i,startLine:e,comparisonEndOid:tw,comparisonStartOid:tC},{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment?.databaseId),ts()}})}},ev[63]=tu,ev[64]=tN,ev[65]=tS,ev[66]=tw,ev[67]=ts,ev[68]=ek,ev[69]=tc,ev[70]=eA,ev[71]=eE,ev[72]=eD,ev[73]=tL,ev[74]=tD,ev[75]=tC,ev[76]=I):I=ev[76];let tI=I;ev[77]!==eV.length?(k=()=>{eV.length<=1&&setTimeout(()=>e9.current?.focus())},ev[77]=eV.length,ev[78]=k):k=ev[78];let t_=k;ev[79]!==ts||ev[80]!==tv?(R=()=>{ts?.(),tv?.()},ev[79]=ts,ev[80]=tv,ev[81]=R):R=ev[81];let tk=R;ev[82]!==td||ev[83]!==tk||ev[84]!==eD.key||ev[85]!==e5||ev[86]!==eZ?(A=()=>{eZ&&eD.key&&td(e5,tk,eD.key)},ev[82]=td,ev[83]=tk,ev[84]=eD.key,ev[85]=e5,ev[86]=eZ,ev[87]=A):A=ev[87],ev[88]!==td||ev[89]!==tk||ev[90]!==eD||ev[91]!==e5||ev[92]!==eZ?(E=[td,tk,eD,e5,eZ],ev[88]=td,ev[89]=tk,ev[90]=eD,ev[91]=e5,ev[92]=eZ,ev[93]=E):E=ev[93],(0,l.useEffect)(A,E);let tR=(0,l.useRef)(!0);t:{if(!eU.shouldDisplayComments||!ew){O=!1;break t}if(f&&ew===ij.sI.Collapsed){O=!eP.userMinimized;break t}if(!tx&&!f){O=!1;break t}if(ew===ij.sI.Collapsed&&(tx||e1)||ew===ij.sI.Visible&&(f||tx||eP.showMarkers)){O=!0;break t}O=!1}let tA=O,tE=(0,T.dT)(eD),{addLineToSelection:tT,clearSelectedLines:tO,selectLine:tP}=el(),tF=X();ev[94]!==ew||ev[95]!==tk||ev[96]!==eJ?(P=()=>{eJ&&ew===ij.sI.Visible&&tk()},F=[eJ,tk,ew],ev[94]=ew,ev[95]=tk,ev[96]=eJ,ev[97]=P,ev[98]=F):(P=ev[97],F=ev[98]),(0,l.useEffect)(P,F),ev[99]!==tc||ev[100]!==eA||ev[101]!==eD.left||ev[102]!==eD.right?($=()=>{let e=tc();return!!e&&(“right”===e.endOrientation&&!eA&&e.endLineNumber===eD.right||!!e&&”left”===e.endOrientation&&!!eA&&e.endLineNumber===eD.left)},ev[99]=tc,ev[100]=eA,ev[101]=eD.left,ev[102]=eD.right,ev[103]=$):$=ev[103];let t$=$;ev[104]!==tO||ev[105]!==t$?(M=()=>{t$()||tO()},ev[104]=tO,ev[105]=t$,ev[106]=M):M=ev[106];let tM=M,tB=(0,_.gW)();ev[107]!==tT||ev[108]!==eL||ev[109]!==ta||ev[110]!==t$||ev[111]!==eA||ev[112]!==eE||ev[113]!==eD.key||ev[114]!==eD.left||ev[115]!==eD.right||ev[116]!==tP||ev[117]!==tB?(B=e=>{if(1!==e.buttons)return;ta();let t=eA?eD.left:eD.right,n=eD.key;n&&(eE||!t||t$()?tT({lineKey:n,orientation:eA?”left”:”right”},e_):(tP({lineKey:n,firstLineSelectionOnDrag:{lineNumber:t,orientation:eA?”left”:”right”,lineKey:n,shouldStartConversation:!0}},e_),tB(a$(eL))))},ev[107]=tT,ev[108]=eL,ev[109]=ta,ev[110]=t$,ev[111]=eA,ev[112]=eE,ev[113]=eD.key,ev[114]=eD.left,ev[115]=eD.right,ev[116]=tP,ev[117]=tB,ev[118]=B):B=ev[118];let tV=B;ev[119]!==tT||ev[120]!==tF||ev[121]!==ti||ev[122]!==eA||ev[123]!==eD.key?(V=e=>{let t=tF();1===e.buttons&&t&&eD.key&&tT({lineKey:eD.key,orientation:eA?”left”:”right”},e_),ti()},ev[119]=tT,ev[120]=tF,ev[121]=ti,ev[122]=eA,ev[123]=eD.key,ev[124]=V):V=ev[124];let tU=V;ev[125]!==tc||ev[126]!==tF||ev[127]!==ta||ev[128]!==eK||ev[129]!==tp||ev[130]!==eA||ev[131]!==eD.left||ev[132]!==eD.right||ev[133]!==eU.shouldDisplayComments?(U=()=>{let e=tF();if(!e){eU.shouldDisplayComments||tp||eK(),ta();return}let t=tc(),n=t?.startOrientation===”right”&&”right”===e.orientation&&!eA&&eD.right===e.lineNumber,i=t?.startOrientation===”left”&&”left”===e.orientation&&eA&&eD.left===e.lineNumber;n||i||ta()},ev[125]=tc,ev[126]=tF,ev[127]=ta,ev[128]=eK,ev[129]=tp,ev[130]=eA,ev[131]=eD.left,ev[132]=eD.right,ev[133]=eU.shouldDisplayComments,ev[134]=U):U=ev[134];let tH=U;ev[135]!==eI?(G=()=>{eI(“USER_EXITED_MARKERS_DIALOG”)},ev[135]=eI,ev[136]=G):G=ev[136];let tG=G;ev[137]!==eI?(q=()=>{eI(“USER_MINIMIZED_MARKERS”)},ev[137]=eI,ev[138]=q):q=ev[138];let tq=q;ev[139]!==tm||ev[140]!==ty?(z=e=>{tm(void 0===e||e),ty()},ev[139]=tm,ev[140]=ty,ev[141]=z):z=ev[141];let tK=z;ev[142]!==eD||ev[143]!==tl||ev[144]!==to||ev[145]!==tc||ev[146]!==eA||ev[147]!==eT?(K=async()=>{let e=tl();await iw({diffLine:eD,diffLines:e,getSelectedDiffLines:to,getSelectedLineRange:tc,isSplit:eT,isLeftSide:eA})},ev[142]=eD,ev[143]=tl,ev[144]=to,ev[145]=tc,ev[146]=eA,ev[147]=eT,ev[148]=K):K=ev[148];let tW=K,tZ=`ContentCell-left:${eD.left}-right:${eD.right}-leftSide:${eA}`,tQ=`inline-dialog-heading-${(0,l.useId)()}`;n:{let e;if(!eE){W=eD.blobLineNumber;break n}ev[149]!==tc?(e=tc(),ev[149]=tc,ev[150]=e):e=ev[150];let t=e;W=t?.endLineNumber??eD.blobLineNumber}let tX=W;i:{let e;if(!eE){Y=void 0;break i}ev[151]!==tc?(e=tc(),ev[151]=tc,ev[152]=e):e=ev[152];let t=e;Y=t?.startLineNumber}let tJ=Y,tY=`diff-text-cell ${eA?”left-side-diff-cell”:”right-side-diff-cell”} ${tE?”pt-4″:””}`,t0=eA&&”HUNK”!==eD.type;ev[153]!==tY||ev[154]!==t0?(ee=(0,b.$)(tY,{“border-right”:t0}),ev[153]=tY,ev[154]=t0,ev[155]=ee):ee=ev[155],ev[156]!==eE||ev[157]!==eD.type?(en=(0,T.Yf)(eD.type,!1,eE),ev[156]=eE,ev[157]=eD.type,ev[158]=en):en=ev[158],ev[159]!==te||ev[160]!==en?(ei={backgroundColor:en,paddingRight:te},ev[159]=te,ev[160]=en,ev[161]=ei):ei=ev[161];let t1=e1?tQ:void 0,t2=e1?”dialog”:”gridcell”;ev[162]!==tQ||ev[163]!==e1?(ea=e1&&(0,i.jsx)(“h1″,{id:tQ,className:”sr-only”,children:”Comment view”}),ev[162]=tQ,ev[163]=e1,ev[164]=ea):ea=ev[164];let t3=”ADDITION”===eD.type,t4=”DELETION”===eD.type;ev[165]!==t3||ev[166]!==t4?(er=(0,b.$)(“diff-text syntax-highlighted-line”,{addition:t3,deletion:t4}),ev[165]=t3,ev[166]=t4,ev[167]=er):er=ev[167],ev[168]!==eG||ev[169]!==eq?(es=eq&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:eG}),ev[168]=eG,ev[169]=eq,ev[170]=es):es=ev[170];let t5=”HUNK”===eD.type;return ev[171]!==t5?(eo=(0,b.$)(“diff-text-inner”,{“color-fg-muted”:t5}),ev[171]=t5,ev[172]=eo):eo=ev[172],ev[173]!==eH||ev[174]!==eo?(ec=(0,i.jsx)(e2.$6,{html:eH,className:eo}),ev[173]=eH,ev[174]=eo,ev[175]=ec):ec=ev[175],ev[176]!==er||ev[177]!==es||ev[178]!==ec?(em=(0,i.jsxs)(“code”,{className:er,children:[es,ec]}),ev[176]=er,ev[177]=es,ev[178]=ec,ev[179]=em):em=ev[179],ev[180]!==eD.displayNoNewLineWarning?(ef=eD.displayNoNewLineWarning&&(0,i.jsx)(c.NoEntryIcon,{size:16,className:”fgColor-danger”}),ev[180]=eD.displayNoNewLineWarning,ev[181]=ef):ef=ev[181],ev[182]!==ej||ev[183]!==e0||ev[184]!==eN||ev[185]!==eS||ev[186]!==eL||ev[187]!==eD||ev[188]!==tc||ev[189]!==tW||ev[190]!==tM||ev[191]!==tV||ev[192]!==eJ||ev[193]!==ez||ev[194]!==eA||ev[195]!==eT||ev[196]!==eD.isLastSelected||ev[197]!==eD.left||ev[198]!==eD.right||ev[199]!==eP.showMarkers||ev[200]!==eF||ev[201]!==tg||ev[202]!==e$||ev[203]!==tj||ev[204]!==eV||ev[205]!==tf||ev[206]!==eU.avatarUrl||ev[207]!==eU.login||ev[208]!==eU.shouldDisplayComments||ev[209]!==eY?(eh=(ez||eD.isLastSelected&&eA&&tc()?.endOrientation===”left”&&eD.left===tc()?.endLineNumber||!eA&&tc()?.endOrientation===”right”&&eD.right===tc()?.endLineNumber)&&(0,i.jsx)(aL,{authorAvatarUrl:eU.avatarUrl,authorLogin:eU.login,ref:e8,cellId:e0,cellRef:e9,copilotChatReference:eN,currentHunk:eS,diffAnchor:eL,diffLine:eD,threads:eV,annotations:ej,enterDialogMode:tg,handleCopyCode:tW,hasDraftComment:eJ,isLeftSide:eA,isSplit:eT,nextHunk:eF,onMouseDownAddCommentButton:tM,onMouseLeaveAddCommentButton:tV,previousHunk:e$,showStartConversation:tj,shouldDisplayMinimizedComments:eU.shouldDisplayComments,shouldDisplayCollapseComments:eP.showMarkers,toggleViewingMarkers:tf,viewerData:eY}),ev[182]=ej,ev[183]=e0,ev[184]=eN,ev[185]=eS,ev[186]=eL,ev[187]=eD,ev[188]=tc,ev[189]=tW,ev[190]=tM,ev[191]=tV,ev[192]=eJ,ev[193]=ez,ev[194]=eA,ev[195]=eT,ev[196]=eD.isLastSelected,ev[197]=eD.left,ev[198]=eD.right,ev[199]=eP.showMarkers,ev[200]=eF,ev[201]=tg,ev[202]=e$,ev[203]=tj,ev[204]=eV,ev[205]=tf,ev[206]=eU.avatarUrl,ev[207]=eU.login,ev[208]=eU.shouldDisplayComments,ev[209]=eY,ev[210]=eh):eh=ev[210],ev[211]!==ej||ev[212]!==e0||ev[213]!==tm||ev[214]!==th||ev[215]!==te||ev[216]!==ew||ev[217]!==eL||ev[218]!==eI||ev[219]!==ek||ev[220]!==tI||ev[221]!==t_||ev[222]!==eJ||ev[223]!==e1||ev[224]!==eA||ev[225]!==tx||ev[226]!==eE||ev[227]!==eD||ev[228]!==e5||ev[229]!==tK||ev[230]!==tb||ev[231]!==tA||ev[232]!==tX||ev[233]!==tJ||ev[234]!==eV||ev[235]!==eY?(ep=tA?(0,i.jsx)(ip,{gridCellId:e0,gutterSizeOffset:te,inlineMarkersRef:tr,cellRef:e9,dispatchMarkersStatus:eI,lineMarkersKey:e5,annotations:ej,batchingEnabled:!0,conversationListThreads:eV,fileAnchor:eL,filePath:ek,onCloseFocusMode:tm,isRowSelected:eE,lineType:eD.type,diffLine:eD,shouldStartNewConversationWithSuggestedChange:tb,onCloseConversationList:th,onDeleteLineComment:t_,viewerData:eY,ghostUser:tz,children:tx&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(eV.length,”mt-2 mb-1″)),children:(0,i.jsx)(nx,{diffLine:eD,diffAnchor:eL,batchingEnabled:!0,filePath:ek,focusOnMount:!(eJ&&ew===ij.sI.Visible),isLeftSide:!!eA,isInDialogMode:e1,isOpen:tx,lineNumber:tX,startLineNumber:tJ,shouldStartNewConversationWithSuggestedChange:tb,viewerData:eY,onAddComment:tI,onCloseCommentDialog:tK})})}):null,ev[211]=ej,ev[212]=e0,ev[213]=tm,ev[214]=th,ev[215]=te,ev[216]=ew,ev[217]=eL,ev[218]=eI,ev[219]=ek,ev[220]=tI,ev[221]=t_,ev[222]=eJ,ev[223]=e1,ev[224]=eA,ev[225]=tx,ev[226]=eE,ev[227]=eD,ev[228]=e5,ev[229]=tK,ev[230]=tb,ev[231]=tA,ev[232]=tX,ev[233]=tJ,ev[234]=eV,ev[235]=eY,ev[236]=ep):ep=ev[236],ev[237]!==ej||ev[238]!==ew||ev[239]!==eJ||ev[240]!==ez||ev[241]!==eV||ev[242]!==eU.avatarUrl||ev[243]!==eU.lineSpacingPreference||ev[244]!==eU.login||ev[245]!==eU.shouldDisplayComments?(eg=!ez&&ew===ij.sI.Collapsed&&eU.shouldDisplayComments&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“div”,{“aria-hidden”:”true”,style:{left:”compact”===eU.lineSpacingPreference?”-8px”:”-9px”},className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,ak),children:eJ&&(0,i.jsx)(ah,{lineSpacingPreference:eU.lineSpacingPreference,authorAvatarUrl:eU.avatarUrl,authorLogin:eU.login})}),(0,i.jsx)(“div”,{“aria-hidden”:”true”,className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,a_),children:(0,i.jsx)(i$,{threads:eV,annotations:ej,shouldAnimateRef:tR,lineSpacingPreference:eU.lineSpacingPreference})})]}),ev[237]=ej,ev[238]=ew,ev[239]=eJ,ev[240]=ez,ev[241]=eV,ev[242]=eU.avatarUrl,ev[243]=eU.lineSpacingPreference,ev[244]=eU.login,ev[245]=eU.shouldDisplayComments,ev[246]=eg):eg=ev[246],ev[247]!==e7||ev[248]!==e6?(ex=(0,i.jsx)(aI,{annotationCount:e7,threadCount:e6}),ev[247]=e7,ev[248]=e6,ev[249]=ex):ex=ev[249],ev[250]!==e0||ev[251]!==eC||ev[252]!==eL||ev[253]!==eD||ev[254]!==ts||ev[255]!==tt||ev[256]!==tn||ev[257]!==eR||ev[258]!==tG||ev[259]!==tU||ev[260]!==tH||ev[261]!==tk||ev[262]!==tq||ev[263]!==f||ev[264]!==eA||ev[265]!==tx||ev[266]!==eE||ev[267]!==eT||ev[268]!==tZ||ev[269]!==eO||ev[270]!==ee||ev[271]!==ei||ev[272]!==t1||ev[273]!==t2||ev[274]!==ea||ev[275]!==em||ev[276]!==ef||ev[277]!==eh||ev[278]!==ep||ev[279]!==eg||ev[280]!==ex?(eb=(0,i.jsxs)(aR,{ref:e9,cellId:e0,columnIndex:eC,commentDialogOpen:tx,diffAnchor:eL,diffLine:eD,enterDialogMode:ts,handleDiffSideCellSelectionBlocking:eR,handleExitDialogMode:tG,handleUserClosedMarkersDialog:tq,lineAnchor:eO,handleStartConversation:tk,hasThreads:f,isLeftSide:eA,isRowSelected:eE,isSplit:eT,className:ee,style:ei,onBlur:tt,onFocus:tn,onMouseEnter:tU,onMouseLeave:tH,”aria-labelledby”:t1,role:t2,children:[ea,em,ef,eh,ep,eg,ex]},tZ),ev[250]=e0,ev[251]=eC,ev[252]=eL,ev[253]=eD,ev[254]=ts,ev[255]=tt,ev[256]=tn,ev[257]=eR,ev[258]=tG,ev[259]=tU,ev[260]=tH,ev[261]=tk,ev[262]=tq,ev[263]=f,ev[264]=eA,ev[265]=tx,ev[266]=eE,ev[267]=eT,ev[268]=tZ,ev[269]=eO,ev[270]=ee,ev[271]=ei,ev[272]=t1,ev[273]=t2,ev[274]=ea,ev[275]=em,ev[276]=ef,ev[277]=eh,ev[278]=ep,ev[279]=eg,ev[280]=ex,ev[281]=eb):eb=ev[281],eb}:function({ref:e,annotationsAtPosition:t,columnIndex:n,commentsPreference:a,copilotChatReference:r,currentHunk:s,diffAnchor:o,diffLine:d,dispatchMarkersStatus:u,filePath:m,handleDiffSideCellSelectionBlocking:f,isLeftSide:h,isRowSelected:p,isSplit:x,lineAnchor:j,markersStatus:C,nextHunk:w,previousHunk:N,rowId:S,subjectId:L,threadsAtPosition:D,viewerData:I}){let[k,R]=(0,T.x_)(d.html,d.type),A=R&&[“+”,”-“].includes(R),{isActionBarVisible:E,hideActionBar:O,anyMenuOpen:P}=i_(),F=(0,eQ.u)(“move_new_comments_ui”),{hasPersistedComment:$}=(0,y.L)({diffSide:h?”LEFT”:”RIGHT”,filePath:m,line:d.blobLineNumber,subjectId:L,fileLevelComment:!1}),M={…I,commentsPreference:a},B=(0,T.u6)(S,n),V=et(B),U=h?”LEFT”:”RIGHT”,G=”RIGHT”===U?d.right:d.left,q=(0,T.oH)(G,U),z=D.length,K=t.length,W=(0,l.useRef)(null),Y=(0,l.useRef)(null);(0,l.useImperativeHandle)(e,()=>Y.current,[]);let ee=0!==z+K,en=(0,T.S4)({hasThreads:ee&&a===ij.sI.Collapsed}),{handleCellBlur:ei,handleCellFocus:ea,handleCellMouseEnter:er,handleCellMouseLeave:es}=iA({cellRef:Y});(0,l.useEffect)(()=>{if(E&&Y.current)return aP({element:Y.current,shouldIgnore:()=>{let e,t;return P||(e=g.XC?.activeElement,!!(t=Y.current)&&!!e&&(t===e||t.contains(e)))},onPointerExit:O})},[P,O,E]);let eo=(0,l.useRef)(null),ec=im(B,Y,u),em=Q(),ef=Z(),eh=eu(),ep=J(),eg=(0,eQ.u)(“cotd_ui”),ex=(0,l.useCallback)((e=!0)=>{e&&requestAnimationFrame(()=>Y.current?.focus()),u(“USER_MINIMIZED_MARKERS”)},[u]),eb=(0,l.useCallback)(()=>{a===ij.sI.Collapsed&&C.showMarkers?ex():ec()},[ex,ec,C.showMarkers,a]),{closeMarkerListDialog:ev,isContextMenuOpen:ey}=ik({cellId:B,actionBarRef:W}),ej=(0,l.useCallback)(()=>{ec(),I.shouldDisplayComments||O();let e=ep();e||(e={startLineNumber:d.blobLineNumber,endLineNumber:d.blobLineNumber,startOrientation:h?”left”:”right”,endOrientation:h?”left”:”right”,diffAnchor:o});let t=new H.L(e,m);g.cg?.dispatchEvent(t)},[ec,I.shouldDisplayComments,ep,m,O,d.blobLineNumber,h,o]),{isNewConversationDialogOpen:eC,shouldStartNewConversationWithSuggestedChange:ew,startNewConversation:eN,closeNewConversation:eS}=iR({cellId:B,onOpenDialog:ej}),eL=(0,l.useMemo)(()=>{if(!E)return!1;if(!I.shouldDisplayComments)if(eg)return!(0,T.Po)(d);else return(0,T.a1)(d,(0,T.Mk)(ef()));return!eC&&!!I.viewerCanComment&&(eg?!(0,T.Po)(d):(0,T.a1)(d,(0,T.Mk)(ef())))},[E,eC,I.shouldDisplayComments,I.viewerCanComment,eg,d,ef]),{baseOid:eD,headOid:eI}=(0,_.E4)(),{mutate:ek}=nt(),{effectiveRange:eR}=(0,_.L3)(),{newTreeEntry:eA,oldTreeEntry:eE}=ed(),eT=(0,l.useCallback)(()=>{ec?.(),eN?.()},[ec,eN]);(0,l.useEffect)(()=>{F&&d.key&&eh(q,eT,d.key)},[eh,eT,d,q,F]);let eO=(0,l.useRef)(!0),eP=(0,l.useMemo)(()=>!!I.shouldDisplayComments&&!!a&&(ee&&a===ij.sI.Collapsed?!C.userMinimized:(!!eC||!!ee)&&(a===ij.sI.Collapsed&&(!!eC||!!V)||a===ij.sI.Visible&&(!!ee||!!eC||!!C.showMarkers)||!1)),[ee,V,eC,C.showMarkers,C.userMinimized,a,I.shouldDisplayComments]),eF=(0,l.useMemo)(()=>(0,T.dT)(d),[d]),{addLineToSelection:e$,clearSelectedLines:eM,selectLine:eB}=el(),eV=X();(0,l.useEffect)(()=>{$&&a===ij.sI.Visible&&eT()},[$,eT,a]);let eU=(0,l.useCallback)(()=>{let e=ep();return!!e&&(“right”===e.endOrientation&&!h&&e.endLineNumber===d.right||!!e&&”left”===e.endOrientation&&!!h&&e.endLineNumber===d.left)},[ep,h,d.left,d.right]),eH=(0,l.useCallback)(()=>{eU()||eM()},[eM,eU]),eG=(0,_.gW)(),eq=(0,l.useCallback)(e=>{if(1!==e.buttons)return;es();let t=h?d.left:d.right,n=d.key;n&&(p||!t||eU()?e$({lineKey:n,orientation:h?”left”:”right”},e_):(eB({lineKey:n,firstLineSelectionOnDrag:{lineNumber:t,orientation:h?”left”:”right”,lineKey:n,shouldStartConversation:!0}},e_),eG(a$(o))))},[e$,o,es,eU,h,p,d,eB,eG]),ez=(0,l.useCallback)(e=>{let t=eV();1===e.buttons&&t&&d.key&&e$({lineKey:d.key,orientation:h?”left”:”right”},e_),er()},[e$,eV,er,h,d]),eK=(0,l.useCallback)(()=>{let e=eV();if(!e){I.shouldDisplayComments||ey||O(),es();return}let t=ep(),n=t?.startOrientation===”right”&&”right”===e.orientation&&!h&&d.right===e.lineNumber,i=t?.startOrientation===”left”&&”left”===e.orientation&&h&&d.left===e.lineNumber;n||i||es()},[eV,ep,h,d.right,d.left,I.shouldDisplayComments,ey,es,O]),eW=(0,l.useCallback)(()=>{u(“USER_EXITED_MARKERS_DIALOG”)},[u]),eZ=(0,l.useCallback)(()=>{u(“USER_MINIMIZED_MARKERS”)},[u]),eX=(0,l.useCallback)((e=!0)=>{ex(e),eS()},[ex,eS]),eJ=async()=>{let e=em();await iw({diffLine:d,diffLines:e,getSelectedDiffLines:ef,getSelectedLineRange:ep,isSplit:x,isLeftSide:h})},eY=`ContentCell-left:${d.left}-right:${d.right}-leftSide:${h}`,e0=`inline-dialog-heading-${(0,l.useId)()}`,e1=(0,l.useMemo)(()=>{if(!p)return d.blobLineNumber;let e=ep();return e?.endLineNumber??d.blobLineNumber},[ep,p,d.blobLineNumber]),e3=(0,l.useMemo)(()=>{if(!p)return;let e=ep();return e?.startLineNumber},[ep,p]);return(0,i.jsxs)(aR,{ref:Y,cellId:B,columnIndex:n,commentDialogOpen:eC,diffAnchor:o,diffLine:d,enterDialogMode:ec,handleDiffSideCellSelectionBlocking:f,handleExitDialogMode:eW,handleUserClosedMarkersDialog:eZ,lineAnchor:j,handleStartConversation:eT,hasThreads:ee,isLeftSide:h,isRowSelected:p,isSplit:x,className:(0,b.$)(`diff-text-cell ${h?”left-side-diff-cell”:”right-side-diff-cell”} ${eF?”pt-4″:””}`,{“border-right”:h&&”HUNK”!==d.type}),style:{backgroundColor:(0,T.Yf)(d.type,!1,p),paddingRight:en},onBlur:ei,onFocus:ea,onMouseEnter:ez,onMouseLeave:eK,”aria-labelledby”:V?e0:void 0,role:V?”dialog”:”gridcell”,children:[V&&(0,i.jsx)(“h1″,{id:e0,className:”sr-only”,children:”Comment view”}),(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===d.type,deletion:”DELETION”===d.type}),children:[A&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:R}),(0,i.jsx)(e2.$6,{html:k,className:(0,b.$)(“diff-text-inner”,{“color-fg-muted”:”HUNK”===d.type})})]}),d.displayNoNewLineWarning&&(0,i.jsx)(c.NoEntryIcon,{size:16,className:”fgColor-danger”}),(E||d.isLastSelected&&h&&ep()?.endOrientation===”left”&&d.left===ep()?.endLineNumber||!h&&ep()?.endOrientation===”right”&&d.right===ep()?.endLineNumber)&&(0,i.jsx)(aL,{authorAvatarUrl:I.avatarUrl,authorLogin:I.login,ref:W,cellId:B,cellRef:Y,copilotChatReference:r,currentHunk:s,diffAnchor:o,diffLine:d,threads:D,annotations:t,enterDialogMode:ej,handleCopyCode:eJ,hasDraftComment:$,isLeftSide:h,isSplit:x,nextHunk:w,onMouseDownAddCommentButton:eH,onMouseLeaveAddCommentButton:eq,previousHunk:N,showStartConversation:eL,shouldDisplayMinimizedComments:I.shouldDisplayComments,shouldDisplayCollapseComments:C.showMarkers,toggleViewingMarkers:eb,viewerData:M}),eP?(0,i.jsx)(ip,{gridCellId:B,gutterSizeOffset:en,inlineMarkersRef:eo,cellRef:Y,dispatchMarkersStatus:u,lineMarkersKey:q,annotations:t,batchingEnabled:!0,conversationListThreads:D,fileAnchor:o,filePath:m,onCloseFocusMode:ex,isRowSelected:p,lineType:d.type,diffLine:d,shouldStartNewConversationWithSuggestedChange:ew,onCloseConversationList:ev,onDeleteLineComment:()=>{D.length<=1&&setTimeout(()=>Y.current?.focus())},viewerData:M,ghostUser:tz,children:eC&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(D.length,”mt-2 mb-1″)),children:(0,i.jsx)(nx,{diffLine:d,diffAnchor:o,batchingEnabled:!0,filePath:m,focusOnMount:!($&&a===ij.sI.Visible),isLeftSide:!!h,isInDialogMode:V,isOpen:eC,lineNumber:e1,startLineNumber:e3,shouldStartNewConversationWithSuggestedChange:ew,viewerData:M,onAddComment:({onCompleted:e,onError:t,submitBatch:n,text:i})=>{if(!d)return;let a=ep();if(eg){let r=new ReviewCommentFactory({filePath:m,newTreeEntry:eA,oldTreeEntry:eE,effectiveDiffRange:eR,submitBatch:n,text:i});ek(a&&np(p,a)?r.multilineRequestData(a):r.lineRequestData(d,h),{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment?.databaseId),ec()}})}else{let r,s,l=!!a&&a.startLineNumber!==a.endLineNumber,o=d.blobLineNumber,c=h&&!(0,T.Ji)(d)?”left”:”right”;a&&l&&p&&(c=”left”===a.endOrientation?”left”:”right”,s=”left”===a.startOrientation?”left”:”right”,o=a.endLineNumber,r=a.startLineNumber),ek({text:i,line:o,path:m,side:c,startSide:s,submitBatch:n,startLine:r,comparisonEndOid:eI,comparisonStartOid:eD},{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment?.databaseId),ec()}})}},onCloseCommentDialog:eX})})}):null,!E&&a===ij.sI.Collapsed&&I.shouldDisplayComments&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“div”,{“aria-hidden”:”true”,style:{left:”compact”===I.lineSpacingPreference?”-8px”:”-9px”},className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,ak),children:$&&(0,i.jsx)(ah,{lineSpacingPreference:I.lineSpacingPreference,authorAvatarUrl:I.avatarUrl,authorLogin:I.login})}),(0,i.jsx)(“div”,{“aria-hidden”:”true”,className:(0,b.$)(“position-absolute top-0 d-flex user-select-none”,a_),children:(0,i.jsx)(i$,{threads:D,annotations:t,shouldAnimateRef:eO,lineSpacingPreference:I.lineSpacingPreference})})]}),(0,i.jsx)(aI,{annotationCount:K,threadCount:z})]},eY)},aB=(0,l.memo)(aM);try{aM.displayName||(aM.displayName=”ContentCellUnmemoized”)}catch{}try{aB.displayName||(aB.displayName=”ContentCell”)}catch{}let aV=[“CONTEXT”,”INJECTED_CONTEXT”];function aU(e,t,n,i){return(“CONTEXT”!==e.type||!t||!n)&&i>0}let aH=(0,l.memo)(aq),aG=(0,a.GV)();function aq(e){return aG?function(e){let t,n,a,s,o,d,c,u,m,f,h,p,g,x,y,j,C,w,N,S,L,D,I,k,R,A,E=(0,r.c)(74);if(E[0]!==e){let{children:i,columnIndex:r,diffAnchor:l,diffLine:b,handleDiffSideCellSelectionBlocking:j,isLeftSide:C,isRowSelected:w,isSplit:N,filePath:S,copilotChatReference:L,contentRef:D,contentColumnIndex:I,dispatchMarkersStatus:_,rowId:k,threadsAtPosition:R,annotationsAtPosition:A,…T}=e;n=i,a=r,d=l,c=b,m=j,f=C,h=w,p=N,o=D,s=I,u=_,x=k,y=R,t=A,g=T,E[0]=e,E[1]=t,E[2]=n,E[3]=a,E[4]=s,E[5]=o,E[6]=d,E[7]=c,E[8]=u,E[9]=m,E[10]=f,E[11]=h,E[12]=p,E[13]=g,E[14]=x,E[15]=y}else t=E[1],n=E[2],a=E[3],s=E[4],o=E[5],d=E[6],c=E[7],u=E[8],m=E[9],f=E[10],h=E[11],p=E[12],g=E[13],x=E[14],y=E[15];let O=(0,l.useRef)(null),P=c,F=X(),{addLineToSelection:$}=el(),M=(0,_.gW)();E[16]!==$||E[17]!==F||E[18]!==f||E[19]!==P.key?(j=e=>{1!==e.buttons||F()&&P.key&&$({lineKey:P.key,orientation:f?”left”:”right”},e_)},E[16]=$,E[17]=F,E[18]=f,E[19]=P.key,E[20]=j):j=E[20];let B=j,{selectLine:V}=el(),U=J();E[21]!==$||E[22]!==d||E[23]!==U||E[24]!==f||E[25]!==P.key||E[26]!==P.left||E[27]!==P.right||E[28]!==V||E[29]!==M?(C=e=>{if(U()&&e.shiftKey)return void $({lineKey:P.key,orientation:f?”left”:”right”},e_);let t=f?P.left:P.right;t&&P.key&&(V({lineKey:P.key,firstLineSelectionOnDrag:{orientation:f?”left”:”right”,lineNumber:t,shouldStartConversation:!1,lineKey:P.key}},e_),M(a$(d)))},E[21]=$,E[22]=d,E[23]=U,E[24]=f,E[25]=P.key,E[26]=P.left,E[27]=P.right,E[28]=V,E[29]=M,E[30]=C):C=E[30];let H=C,G=`LineNumberCell-left:${P.left}-right:${P.right}-leftSide:${f}`;E[31]!==s||E[32]!==x?(w=(0,T.u6)(x,s),E[31]=s,E[32]=x,E[33]=w):w=E[33];let q=w,z=im(q,o,u);E[34]!==q||E[35]!==z?(N={cellId:q,onOpenDialog:z},E[34]=q,E[35]=z,E[36]=N):N=E[36];let{startNewConversation:K}=iR(N);E[37]!==a||E[38]!==x?(S=(0,T.u6)(x,a),E[37]=a,E[38]=x,E[39]=S):S=E[39];let W=S;E[40]!==P.type?(L=(0,b.$)(“diff-line-number position-relative”,aV.includes(P.type)&&”diff-line-number-neutral”),E[40]=P.type,E[41]=L):L=E[41];let Z=!p&&0===a,Q=y.length+t.length;return E[42]!==f||E[43]!==p||E[44]!==P||E[45]!==Q?(D=aU(P,f,p,Q),E[42]=f,E[43]=p,E[44]=P,E[45]=Q,E[46]=D):D=E[46],E[47]!==h||E[48]!==P.type?(I=(0,T.Yf)(P.type,!0,h),E[47]=h,E[48]=P.type,E[49]=I):I=E[49],E[50]!==I?(k={backgroundColor:I,textAlign:”center”},E[50]=I,E[51]=k):k=E[51],E[52]!==n?(R=(0,i.jsx)(“code”,{children:n}),E[52]=n,E[53]=R):R=E[53],E[54]!==W||E[55]!==a||E[56]!==d||E[57]!==c||E[58]!==z||E[59]!==m||E[60]!==H||E[61]!==B||E[62]!==f||E[63]!==h||E[64]!==p||E[65]!==G||E[66]!==g||E[67]!==K||E[68]!==k||E[69]!==R||E[70]!==L||E[71]!==Z||E[72]!==D?(A=(0,i.jsx)(aR,{ref:O,cellId:W,className:L,columnIndex:a,diffAnchor:d,diffLine:c,”data-first-unified-line-number-cell”:Z,enterDialogMode:z,handleDiffSideCellSelectionBlocking:m,hasThreads:D,style:k,handleDiffCellMouseDown:H,handleStartConversation:K,isLeftSide:f,isRowSelected:h,isSplit:p,onMouseEnter:B,…g,children:R},G),E[54]=W,E[55]=a,E[56]=d,E[57]=c,E[58]=z,E[59]=m,E[60]=H,E[61]=B,E[62]=f,E[63]=h,E[64]=p,E[65]=G,E[66]=g,E[67]=K,E[68]=k,E[69]=R,E[70]=L,E[71]=Z,E[72]=D,E[73]=A):A=E[73],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,…y}){let j=(0,l.useRef)(null),C=X(),{addLineToSelection:w}=el(),N=(0,_.gW)(),S=(0,l.useCallback)(e=>{1!==e.buttons||C()&&a.key&&w({lineKey:a.key,orientation:s?”left”:”right”},e_)},[C,w,a,s]),{selectLine:L}=el(),D=J(),I=`LineNumberCell-left:${a.left}-right:${a.right}-leftSide:${s}`,k=(0,T.u6)(p,f),R=im(k,m,h),{startNewConversation:A}=iR({cellId:k,onOpenDialog:R}),E=(0,T.u6)(p,t);return(0,i.jsx)(aR,{ref:j,cellId:E,className:(0,b.$)(“diff-line-number position-relative”,aV.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:aU(a,s,d,g.length+x.length),style:{backgroundColor:(0,T.Yf)(a.type,!0,o),textAlign:”center”},handleDiffCellMouseDown:e=>{if(D()&&e.shiftKey)return void w({lineKey:a.key,orientation:s?”left”:”right”},e_);let t=s?a.left:a.right;t&&a.key&&(L({lineKey:a.key,firstLineSelectionOnDrag:{orientation:s?”left”:”right”,lineNumber:t,shouldStartConversation:!1,lineKey:a.key}},e_),N(a$(n)))},handleStartConversation:A,isLeftSide:s,isRowSelected:o,isSplit:d,onMouseEnter:S,…y,children:(0,i.jsx)(“code”,{children:e})},I)}(e)}try{aH.displayName||(aH.displayName=”LineNumberCell”)}catch{}try{aq.displayName||(aq.displayName=”LineNumberCellUnmemoized”)}catch{}let az=(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)(aR,{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)(aR,{className:(0,b.$)(“empty-diff-line”,{“border-right”:s}),columnIndex:e,diffAnchor:t,diffLine:n,isLeftSide:a,isSplit:r})};try{az.displayName||(az.displayName=”EmptyCell”)}catch{}function aK(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 aW=(0,a.GV)()?function(e){let t,n,i,a,s=(0,r.c)(7),o=e===ij.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)(aK,t),u=(0,l.useRef)(e);return s[2]!==e?(n=()=>{u.current!==e&&(u.current=e,e===ij.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)(aK,{userMinimized:e===ij.sI.Collapsed,showMarkers:!1}),i=(0,l.useRef)(e);return(0,l.useEffect)(()=>{i.current!==e&&(i.current=e,e===ij.sI.Visible?n(“SHOW_MARKERS”):n(“USER_MINIMIZED_MARKERS”))},[e,n]),[t,n]};var aZ=n(87825);let aQ=(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:y,hasHiddenUnicodeCharacters:j,isLeftSide:C,isRowSelected:w,isSplit:N,nextHunk:S,previousHunk:L,rowId:D,subjectId:I,threadsAtPosition:_,viewerData:k}=e,R=(0,l.useRef)(null),A=”ADDITION”!==g.type,E=!N||C,T=”DELETION”!==g.type,O=!N||!C;c[0]!==y?(t=()=>{y&&y(“left”)},c[0]=y,c[1]=t):t=c[1];let P=t;c[2]!==y?(n=()=>{y&&y(“right”)},c[2]=y,c[3]=n):n=c[3];let F=n,$=N?C?1:3:2,[M,B]=aW(m??ij.sI.Visible);c[4]!==u||c[5]!==$||c[6]!==f||c[7]!==p||c[8]!==g||c[9]!==B||c[10]!==x||c[11]!==F||c[12]!==j||c[13]!==C||c[14]!==w||c[15]!==N||c[16]!==g.left||c[17]!==D||c[18]!==A||c[19]!==E||c[20]!==T||c[21]!==_?(a=E&&(0,i.jsxs)(aH,{threadsAtPosition:_,annotationsAtPosition:u,copilotChatReference:f,columnIndex:0,contentColumnIndex:$,contentRef:R,diffAnchor:p,diffLine:g,dispatchMarkersStatus:B,filePath:x,handleDiffSideCellSelectionBlocking:F,isLeftSide:C,isRowSelected:w,isSplit:N,rowId:D,children:[j&&!T&&(0,i.jsx)(aJ,{children:(0,i.jsx)(aZ.o,{})}),A&&g.left]}),c[4]=u,c[5]=$,c[6]=f,c[7]=p,c[8]=g,c[9]=B,c[10]=x,c[11]=F,c[12]=j,c[13]=C,c[14]=w,c[15]=N,c[16]=g.left,c[17]=D,c[18]=A,c[19]=E,c[20]=T,c[21]=_,c[22]=a):a=c[22],c[23]!==u||c[24]!==$||c[25]!==f||c[26]!==p||c[27]!==g||c[28]!==B||c[29]!==x||c[30]!==P||c[31]!==j||c[32]!==C||c[33]!==w||c[34]!==N||c[35]!==g.right||c[36]!==D||c[37]!==T||c[38]!==O||c[39]!==_?(s=O&&(0,i.jsxs)(aH,{annotationsAtPosition:u,copilotChatReference:f,columnIndex:N?2:1,contentColumnIndex:$,contentRef:R,diffAnchor:p,diffLine:g,dispatchMarkersStatus:B,filePath:x,handleDiffSideCellSelectionBlocking:P,isLeftSide:C,isRowSelected:w,isSplit:N,rowId:D,threadsAtPosition:_,children:[j&&T&&(0,i.jsx)(aJ,{children:(0,i.jsx)(aZ.o,{})}),T&&g.right]}),c[23]=u,c[24]=$,c[25]=f,c[26]=p,c[27]=g,c[28]=B,c[29]=x,c[30]=P,c[31]=j,c[32]=C,c[33]=w,c[34]=N,c[35]=g.right,c[36]=D,c[37]=T,c[38]=O,c[39]=_,c[40]=s):s=c[40];let V=C?F:P;return c[41]!==u||c[42]!==m||c[43]!==$||c[44]!==f||c[45]!==h||c[46]!==p||c[47]!==g||c[48]!==B||c[49]!==x||c[50]!==C||c[51]!==w||c[52]!==N||c[53]!==b||c[54]!==M||c[55]!==S||c[56]!==L||c[57]!==D||c[58]!==I||c[59]!==V||c[60]!==_||c[61]!==k?(o=(0,i.jsx)(aB,{annotationsAtPosition:u,commentsPreference:m,copilotChatReference:f,columnIndex:$,currentHunk:h,diffAnchor:p,diffLine:g,dispatchMarkersStatus:B,filePath:x,lineAnchor:b,handleDiffSideCellSelectionBlocking:V,isLeftSide:C,isRowSelected:w,isSplit:N,markersStatus:M,nextHunk:S,previousHunk:L,ref:R,rowId:D,subjectId:I,threadsAtPosition:_,viewerData:k}),c[41]=u,c[42]=m,c[43]=$,c[44]=f,c[45]=h,c[46]=p,c[47]=g,c[48]=B,c[49]=x,c[50]=C,c[51]=w,c[52]=N,c[53]=b,c[54]=M,c[55]=S,c[56]=L,c[57]=D,c[58]=I,c[59]=V,c[60]=_,c[61]=k,c[62]=o):o=c[62],c[63]!==a||c[64]!==s||c[65]!==o?(d=(0,i.jsxs)(iI,{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:y,viewerData:j})=>{let C=(0,l.useRef)(null),w=”ADDITION”!==s.type,N=!h||m,S=”DELETION”!==s.type,L=!h||!m,D=(0,l.useCallback)(()=>{c&&c(“left”)},[c]),I=(0,l.useCallback)(()=>{c&&c(“right”)},[c]),_=h?m?1:3:2,[k,R]=aW(t??ij.sI.Visible);return(0,i.jsxs)(iI,{children:[N&&(0,i.jsxs)(aH,{threadsAtPosition:y,annotationsAtPosition:e,copilotChatReference:n,columnIndex:0,contentColumnIndex:_,contentRef:C,diffAnchor:r,diffLine:s,dispatchMarkersStatus:R,filePath:o,handleDiffSideCellSelectionBlocking:I,isLeftSide:m,isRowSelected:f,isSplit:h,rowId:x,children:[u&&!S&&(0,i.jsx)(aJ,{children:(0,i.jsx)(aZ.o,{})}),w&&s.left]}),L&&(0,i.jsxs)(aH,{annotationsAtPosition:e,copilotChatReference:n,columnIndex:h?2:1,contentColumnIndex:_,contentRef:C,diffAnchor:r,diffLine:s,dispatchMarkersStatus:R,filePath:o,handleDiffSideCellSelectionBlocking:D,isLeftSide:m,isRowSelected:f,isSplit:h,rowId:x,threadsAtPosition:y,children:[u&&S&&(0,i.jsx)(aJ,{children:(0,i.jsx)(aZ.o,{})}),S&&s.right]}),(0,i.jsx)(aB,{annotationsAtPosition:e,commentsPreference:t,copilotChatReference:n,columnIndex:_,currentHunk:a,diffAnchor:r,diffLine:s,dispatchMarkersStatus:R,filePath:o,lineAnchor:d,handleDiffSideCellSelectionBlocking:m?I:D,isLeftSide:m,isRowSelected:f,isSplit:h,markersStatus:k,nextHunk:p,previousHunk:g,ref:C,rowId:x,subjectId:b,threadsAtPosition:y,viewerData:j})]})},aX=(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:y,subjectId:j,threadsAtPosition:C,viewerData:w}=e;if((0,T.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)(az,{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)(az,{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,E.XU)(d.type),i=”left”===e?d.left:d.right;t=(0,E.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 N=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]!==N||n[34]!==x||n[35]!==b||n[36]!==y||n[37]!==j||n[38]!==C||n[39]!==w?(e=(0,i.jsx)(a0,{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:N,nextHunk:x,previousHunk:b,rowId:y,subjectId:j,threadsAtPosition:C,viewerData:w}),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]=N,n[34]=x,n[35]=b,n[36]=y,n[37]=j,n[38]=C,n[39]=w,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,T.Po)(r))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(az,{columnIndex:2*!c,diffAnchor:s,diffLine:r,isLeftSide:c,isSplit:m}),(0,i.jsx)(az,{columnIndex:c?1:3,diffAnchor:s,diffLine:r,isLeftSide:c,isSplit:m})]});let y=c?”left”:(0,E.XU)(r.type),j=”left”===y?r.left:r.right,C=(0,E.IQ)(s,y,j??0);switch(r.type){case”HUNK”:return null;case”ADDITION”:case”DELETION”:case”CONTEXT”:case”INJECTED_CONTEXT”:return(0,i.jsx)(a0,{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:C,nextHunk:f,previousHunk:h,rowId:p,subjectId:g,threadsAtPosition:x,viewerData:b});default:throw Error(`cannot handle type ${r.type}`)}},aJ=(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})},aY=l.memo(aX),a0=l.memo(aQ);try{aQ.displayName||(aQ.displayName=”CodeDiffLineUnmemoized”)}catch{}try{aX.displayName||(aX.displayName=”DiffLineSideUnmemoized”)}catch{}try{aJ.displayName||(aJ.displayName=”DiffCodeAlert”)}catch{}try{aY.displayName||(aY.displayName=”DiffLineSide”)}catch{}try{a0.displayName||(a0.displayName=”CodeDiffLine”)}catch{}let a1=(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{a1.displayName||(a1.displayName=”HunkKebabIcon”)}catch{}let a2=(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 y=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 j=s,C=!f;c[10]!==p||c[11]!==b||c[12]!==C?(o={“aria-hidden”:C,tabIndex:p,onBlur:b,onFocusCapture:y,onKeyDownCapture:a3},c[10]=p,c[11]=b,c[12]=C,c[13]=o):o=c[13];let w=o;return c[14]!==w||c[15]!==j?(d=[j,w],c[14]=w,c[15]=j,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=>{tW(e.key)&&e.stopPropagation()},[])}]};function a3(e){tW(e.key)&&e.stopPropagation()}let a4=(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]=a2(p);if((0,T.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)(a1,{isSplit:f}),d[1]=x,d[2]=f,d[3]=h,d[4]=n):n=d[4];let y=u.html;return d[5]!==y?(a=(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(e2.$6,{className:”diff-text-inner color-fg-muted”,html:y})}),d[5]=y,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)(aR,{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]=a2(s);if((0,T.Po)(t))return null;let c=`HunkCell-left:${t.left}-right:${t.right}`;return(0,i.jsx)(aR,{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)(a1,{isSplit:a}),(0,i.jsx)(“code”,{className:”diff-text-cell hunk”,children:(0,i.jsx)(e2.$6,{className:”diff-text-inner color-fg-muted”,html:t.html})})]})},c)};try{a4.displayName||(a4.displayName=”HunkCell”)}catch{}let a5=”ExpandableHunkHeaderDiffLine-module__expand-button-line–CbsbZ”,a6=”ExpandableHunkHeaderDiffLine-module__expand-up-and-down–amzYl”,a7=”ExpandableHunkHeaderDiffLine-module__expand-button-unified–pt9f0″,a8=(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,tJ.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&&a7;p[12]!==s||p[13]!==x?(m=(0,b.$)(“Button Button–iconOnly Button–invisible”,a5,x,s),p[12]=s,p[13]=x,p[14]=m):m=p[14];let y=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]!==y||p[22]!==f?(h=(0,i.jsx)(“button”,{onClick:u,className:m,”aria-label”:y,”data-direction”:l,…n,children:f}),p[17]=n,p[18]=l,p[19]=u,p[20]=m,p[21]=y,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,tJ.s)();return(0,i.jsx)(“button”,{onClick:()=>{r(),d(“file_entry.expand_hunk”,”FILE_EXPANDER_BUTTON”)},className:(0,b.$)(“Button Button–iconOnly Button–invisible”,a5,!n&&a7,l),”aria-label”:s??a,”data-direction”:e,…o,children:(0,i.jsx)(t,{})})},a9=(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,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}=iB(t),I=0===b.position&&0!==b.blobLineNumber||!S,_=!w,k=0===b.blobLineNumber,R=ea(),A=I||_,E=_&&S?.blobLineNumber===R;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 T=n;t:{if(A||E){a=!1;break t}if(b.blobLineNumber-S.blobLineNumber>20){a=!0;break t}a=!1}let O=a;n:{if(b.blobLineNumber<=0||k){s=!1;break n}if(I){s=!0;break n}s=!1}let P=s;i:{if(I||E){l=!1;break i}if(_){l=!0;break i}l=!1}let F=l;a:{switch(!0){case T:o="expand-all";break a;case O:o="expand-up-and-down";break a;case P:o="expand-up";break a;case F:o="expand-down";break a}o=void 0}let $=o;p[4]!==L?(d=()=>L(),p[4]=L,p[5]=d):d=p[5];let M=d;p[6]!==D?(u=()=>D(),p[6]=D,p[7]=u):u=p[7];let B=u;p[8]!==L?(m=()=>L(),p[8]=L,p[9]=m):m=p[9];let V=m,U=ee();p[10]!==$||p[11]!==M||p[12]!==V||p[13]!==B||p[14]!==U||p[15]!==j||p[16]!==w?.blobLineNumber||p[17]!==S?.blobLineNumber?(f=e=>{if(U.has(i5.YR.expandLines))return null;switch($){case”expand-all”:return(0,i.jsx)(a8,{…e,direction:”all”,icon:c.UnfoldIcon,isSplit:j,label:`Expand file from line ${S?.blobLineNumber||””} to line ${w?.blobLineNumber||””}`,onClick:V});case”expand-up-and-down”:return(0,i.jsxs)(“div”,{className:”d-flex flex-column”,children:[(0,i.jsx)(a8,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:j,label:`Expand file down from line ${S?.blobLineNumber||””}`,className:a6,onClick:B}),(0,i.jsx)(a8,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:j,label:`Expand file up from line ${w?.blobLineNumber||””}`,className:a6,onClick:M})]});case”expand-up”:return(0,i.jsx)(a8,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:j,label:`Expand file up from line ${w?.blobLineNumber||””}`,onClick:M});case”expand-down”:return(0,i.jsx)(a8,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:j,label:`Expand file down from line ${S?.blobLineNumber||””}`,onClick:B});default:return null}},p[10]=$,p[11]=M,p[12]=V,p[13]=B,p[14]=U,p[15]=j,p[16]=w?.blobLineNumber,p[17]=S?.blobLineNumber,p[18]=f):f=p[18];let H=f;return p[19]!==x||p[20]!==b||p[21]!==y||p[22]!==j||p[23]!==H?(h=(0,i.jsx)(a4,{renderHunkButton:H,diffAnchor:x,diffLine:b,isLeftSide:y,isSplit:j}),p[19]=x,p[20]=b,p[21]=y,p[22]=j,p[23]=H,p[24]=h):h=p[24],h}:function({currentHunk:e,diffAnchor:t,diffLine:n,isLeftSide:a,isSplit:r,nextHunk:s,nextLine:o,previousHunk:d,prevLine:u}){let{expandStartOfHunk:m,expandEndOfPreviousHunk:f}=iB({currentHunk:e,nextHunk:s,previousHunk:d}),h=0===n.position&&0!==n.blobLineNumber||!u,p=!o,g=0===n.blobLineNumber,x=ea(),b=h||p,y=p&&u?.blobLineNumber===x,j=(0,l.useMemo)(()=>!b&&!(n.blobLineNumber<=0)&&(!!(n.blobLineNumber-u.blobLineNumber<=20)||!!(o.blobLineNumber-n.blobLineNumber>=20)),[b,n,o,u]),C=(0,l.useMemo)(()=>!b&&!y&&n.blobLineNumber-u.blobLineNumber>20,[b,y,n,u]),w=(0,l.useMemo)(()=>!(n.blobLineNumber<=0)&&!g&&!!h,[h,g,n]),N=(0,l.useMemo)(()=>!h&&!y&&!!p,[h,p,y]),S=(0,l.useMemo)(()=>{switch(!0){case j:return”expand-all”;case C:return”expand-up-and-down”;case w:return”expand-up”;case N:return”expand-down”}},[j,C,w,N]),L=()=>m(),D=()=>f(),I=()=>m(),_=ee();return(0,i.jsx)(a4,{renderHunkButton:e=>{if(_.has(i5.YR.expandLines))return null;switch(S){case”expand-all”:return(0,i.jsx)(a8,{…e,direction:”all”,icon:c.UnfoldIcon,isSplit:r,label:`Expand file from line ${u?.blobLineNumber||””} to line ${o?.blobLineNumber||””}`,onClick:I});case”expand-up-and-down”:return(0,i.jsxs)(“div”,{className:”d-flex flex-column”,children:[(0,i.jsx)(a8,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:r,label:`Expand file down from line ${u?.blobLineNumber||””}`,className:a6,onClick:D}),(0,i.jsx)(a8,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:r,label:`Expand file up from line ${o?.blobLineNumber||””}`,className:a6,onClick:L})]});case”expand-up”:return(0,i.jsx)(a8,{…e,direction:”up”,icon:c.FoldUpIcon,isSplit:r,label:`Expand file up from line ${o?.blobLineNumber||””}`,onClick:L});case”expand-down”:return(0,i.jsx)(a8,{…e,direction:”down”,icon:c.FoldDownIcon,isSplit:r,label:`Expand file down from line ${u?.blobLineNumber||””}`,onClick:D});default:return null}},diffAnchor:t,diffLine:n,isLeftSide:a,isSplit:r})};try{a8.displayName||(a8.displayName=”ExpandButtonLine”)}catch{}try{a9.displayName||(a9.displayName=”ExpandableHunkHeaderDiffLine”)}catch{}var re=n(12918);let rt=(0,l.memo)((0,a.GV)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,h=(0,r.c)(53),{copilotChatReference:p,diffHasHiddenUnicodeCharacters:g,filePath:x,handleDiffSideCellSelectionBlocking:b,hunksData:y,leftDiffLine:j,nextDiffLine:C,prevDiffLine:w,rightDiffLine:N,showHiddenUnicode:S,subjectId:L,viewerData:D}=e,I=ei();h[0]!==g||h[1]!==S?(t=e=>{let t=!1;return g&&!(0,T.Po)(e)&&(t=(0,tX.Y)(e.text),S&&t&&(e=e.html?{…e,html:(0,re.Gx)(e.html)??e.html}:{…e,text:(0,tX.TA)(e.text)})),[e,t]},h[0]=g,h[1]=S,h[2]=t):t=h[2];let k=t,[R,A]=k(j),[E,O]=k(N),P=es((0,T.Po)(R)?void 0:R.key),F=es((0,T.Po)(E)?void 0:E.key);e:{let e;if((0,T.Po)(R)){n=R;break e}h[3]!==R||h[4]!==P?(e={…R,…P},h[3]=R,h[4]=P,h[5]=e):e=h[5],n=e}let $=n;t:{let e;if((0,T.Po)(E)){a=E;break t}h[6]!==E||h[7]!==F?(e={…E,…F},h[6]=E,h[7]=F,h[8]=e):e=h[8],a=e}let M=a;h[9]!==$?(s=(0,T.qK)($)&&”HUNK”===$.type,h[9]=$,h[10]=s):s=h[10];let B=s;h[11]!==I||h[12]!==j||h[13]!==N?(l=(0,T.qX)(I,j,N),h[11]=I,h[12]=j,h[13]=N,h[14]=l):l=h[14];let V=l;h[15]!==$||h[16]!==M?(o=(0,T.Po)($)?(0,T.Po)(M)?void 0:M:$,h[15]=$,h[16]=M,h[17]=o):o=h[17];let U=o;h[18]!==R?(d=(0,T.Po)(R)?void 0:(0,T.oH)(R.left,”LEFT”),h[18]=R,h[19]=d):d=h[19];let H=d,{threads:G,annotations:q,commentsPreference:z}=(0,_.rP)(x,H??””);h[20]!==E?(c=(0,T.Po)(E)?void 0:(0,T.oH)(E.right,”RIGHT”),h[20]=E,h[21]=c):c=h[21];let K=c,{threads:W,annotations:Z,commentsPreference:Q}=(0,_.rP)(x,K??””),X=z===ij.sI.Collapsed||Q===ij.sI.Collapsed?ij.sI.Collapsed:ij.sI.Visible,J=!(((0,T.Po)($)||!$.isSelected)&&((0,T.Po)(M)||!M.isSelected));if(!U)return null;h[22]!==U||h[23]!==y?(u=tr(U,y),h[22]=U,h[23]=y,h[24]=u):u=h[24];let{currentHunk:Y,nextHunk:ee,previousHunk:et}=u;return $?(h[25]!==p||h[26]!==X||h[27]!==Y||h[28]!==I||h[29]!==x||h[30]!==b||h[31]!==B||h[32]!==J||h[33]!==q||h[34]!==j||h[35]!==A||h[36]!==$||h[37]!==G||h[38]!==C||h[39]!==ee||h[40]!==w||h[41]!==et||h[42]!==Z||h[43]!==O||h[44]!==M||h[45]!==W||h[46]!==V||h[47]!==L||h[48]!==D?(m=B?(0,i.jsx)(a9,{currentHunk:Y,diffAnchor:I,diffLine:j,isLeftSide:!0,isSplit:!0,nextHunk:ee,nextLine:C,previousHunk:et,prevLine:w}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(aY,{annotationsAtPosition:q,commentsPreference:X,copilotChatReference:p,currentHunk:Y,diffLine:$,diffAnchor:I,filePath:x,handleDiffSideCellSelectionBlocking:b,hasHiddenUnicodeCharacters:A,isLeftSide:!0,isRowSelected:J,isSplit:!0,nextHunk:ee,previousHunk:et,rowId:V,subjectId:L,threadsAtPosition:G,viewerData:D}),(0,i.jsx)(aY,{threadsAtPosition:W,annotationsAtPosition:Z,commentsPreference:X,copilotChatReference:p,currentHunk:Y,diffLine:M,diffAnchor:I,filePath:x,handleDiffSideCellSelectionBlocking:b,hasHiddenUnicodeCharacters:O,isLeftSide:!1,isRowSelected:J,isSplit:!0,nextHunk:ee,previousHunk:et,rowId:V,subjectId:L,viewerData:D})]}),h[25]=p,h[26]=X,h[27]=Y,h[28]=I,h[29]=x,h[30]=b,h[31]=B,h[32]=J,h[33]=q,h[34]=j,h[35]=A,h[36]=$,h[37]=G,h[38]=C,h[39]=ee,h[40]=w,h[41]=et,h[42]=Z,h[43]=O,h[44]=M,h[45]=W,h[46]=V,h[47]=L,h[48]=D,h[49]=m):m=h[49],h[50]!==V||h[51]!==m?(f=(0,i.jsx)(“tr”,{className:”diff-line-row”,children:m},V),h[50]=V,h[51]=m,h[52]=f):f=h[52],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=ei(),p=e=>{let n=!1;return t&&!(0,T.Po)(e)&&(n=(0,tX.Y)(e.text),u&&n&&(e=e.html?{…e,html:(0,re.Gx)(e.html)??e.html}:{…e,text:(0,tX.TA)(e.text)})),[e,n]},[g,x]=p(s),[b,y]=p(c),j=es((0,T.Po)(g)?void 0:g.key),C=es((0,T.Po)(b)?void 0:b.key),w=(0,l.useMemo)(()=>(0,T.Po)(g)?g:{…g,…j},[g,j]),N=(0,l.useMemo)(()=>(0,T.Po)(b)?b:{…b,…C},[b,C]),S=(0,T.qK)(w)&&”HUNK”===w.type,L=(0,T.qX)(h,s,c),D=(0,T.Po)(w)?(0,T.Po)(N)?void 0:N:w,I=(0,T.Po)(g)?void 0:(0,T.oH)(g.left,”LEFT”),{threads:k,annotations:R,commentsPreference:A}=(0,_.rP)(n,I??””),E=(0,T.Po)(b)?void 0:(0,T.oH)(b.right,”RIGHT”),{threads:O,annotations:P,commentsPreference:F}=(0,_.rP)(n,E??””),$=A===ij.sI.Collapsed||F===ij.sI.Collapsed?ij.sI.Collapsed:ij.sI.Visible,M=(0,l.useMemo)(()=>!(((0,T.Po)(w)||!w.isSelected)&&((0,T.Po)(N)||!N.isSelected)),[w,N]);if(!D)return null;let{currentHunk:B,nextHunk:V,previousHunk:U}=tr(D,r);return w?(0,i.jsx)(“tr”,{className:”diff-line-row”,children:S?(0,i.jsx)(a9,{currentHunk:B,diffAnchor:h,diffLine:s,isLeftSide:!0,isSplit:!0,nextHunk:V,nextLine:o,previousHunk:U,prevLine:d}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(aY,{annotationsAtPosition:R,commentsPreference:$,copilotChatReference:e,currentHunk:B,diffLine:w,diffAnchor:h,filePath:n,handleDiffSideCellSelectionBlocking:a,hasHiddenUnicodeCharacters:x,isLeftSide:!0,isRowSelected:M,isSplit:!0,nextHunk:V,previousHunk:U,rowId:L,subjectId:m,threadsAtPosition:k,viewerData:f}),(0,i.jsx)(aY,{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{rt.displayName||(rt.displayName=”SplitDiffRow”)}catch{}function rn(e){let t=[],n=[],i=()=>{for(;t.lengthrn(e),[e]);return{leftLines:t,rightLines:n}},ra=(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:y}=ri(d);l[0]!==b?(t=ts(b),l[0]=b,l[1]=t):t=l[1];let j=t,{addLineToSelection:C,clearSelectedLines:w,selectMultipleLines:N}=el(),S=X();return l[2]!==C||l[3]!==w||l[4]!==c||l[5]!==S||l[6]!==b||l[7]!==y||l[8]!==N||l[9]!==h?(n={addLineToSelection:C,clearSelectedLines:w,containerRef:h,fileAnchor:c,getfirstLineSelectionOnDrag:S,isSplitDiff:!0,leftLines:b,selectMultipleLines:N,rightLines:y,disabled:!1},l[2]=C,l[3]=w,l[4]=c,l[5]=S,l[6]=b,l[7]=y,l[8]=N,l[9]=h,l[10]=n):n=l[10],tZ(n),l[11]!==p||l[12]!==o||l[13]!==u||l[14]!==m||l[15]!==j||l[16]!==b||l[17]!==y||l[18]!==f||l[19]!==g||l[20]!==x?(a=b.map((e,t)=>{let n=b[t],a=y[t],r=b[t-1],s=(0,T.Po)(b[t+1])?y[t+1]:b[t+1],l=`${(0,T.Po)(n)||!n?`empty-left-diff-${t}`:n.blobLineNumber}-${(0,T.Po)(a)||!a?`empty-right-diff-${t}`:a.blobLineNumber}`;return(0,i.jsx)(rt,{copilotChatReference:p,diffHasHiddenUnicodeCharacters:o,filePath:u,handleDiffSideCellSelectionBlocking:m,hunksData:j,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]=j,l[16]=b,l[17]=y,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}=ri(t),h=(0,l.useMemo)(()=>ts(m),[m]),{addLineToSelection:p,clearSelectedLines:g,selectMultipleLines:x}=el();return tZ({addLineToSelection:p,clearSelectedLines:g,containerRef:o,fileAnchor:n,getfirstLineSelectionOnDrag:X(),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,T.Po)(m[n+1])?f[n+1]:m[n+1],x=`${(0,T.Po)(l)||!l?`empty-left-diff-${n}`:l.blobLineNumber}-${(0,T.Po)(o)||!o?`empty-right-diff-${n}`:o.blobLineNumber}`;return(0,i.jsx)(rt,{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{ra.displayName||(ra.displayName=”SplitDiffLines”)}catch{}let rr=(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=ei(),f=es(r.key),h=(0,l.useMemo)(()=>({…r,…f}),[r,f]),p=(0,l.useMemo)(()=>!!h.isSelected,[h.isSelected]),g=”DELETION”!==r.type?”RIGHT”:”LEFT”,x=”RIGHT”===g?r.right:r.left,b=(0,T.oH)(x,g),{threads:y,annotations:j,commentsPreference:C}=(0,_.rP)(n,b??””),w=”HUNK”===h.type,N=(0,E.IQ)(m,(0,E.XU)(h.type),h.blobLineNumber),{currentHunk:S,nextHunk:L,previousHunk:D}=tr(h,a),I=(0,T.qX)(m,h,h),k=t&&(0,tX.Y)(h.text);d&&k&&(h=h.html?{…h,html:(0,re.Gx)(h.html)??h.html}:{…h,text:(0,tX.TA)(h.text)});let R=”DELETION”===h.type;return(0,i.jsx)(“tr”,{className:”diff-line-row”,children:w?(0,i.jsx)(a9,{currentHunk:S,diffAnchor:m,diffLine:h,isLeftSide:R,isSplit:!1,nextHunk:L,nextLine:s,previousHunk:D,prevLine:o}):(0,i.jsx)(a0,{annotationsAtPosition:j,commentsPreference:C,copilotChatReference:e,currentHunk:S,diffAnchor:m,diffLine:h,filePath:n,hasHiddenUnicodeCharacters:k,isLeftSide:R,isRowSelected:p,isSplit:!1,lineAnchor:N,nextHunk:L,previousHunk:D,rowId:I,subjectId:c,threadsAtPosition:y,viewerData:u})},I)});try{rr.displayName||(rr.displayName=”UnifiedDiffRow”)}catch{}let rs=(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=ts(d.map(rl)),l[0]=d,l[1]=t):t=l[1];let x=t,{addLineToSelection:b,clearSelectedLines:y,selectMultipleLines:j}=el(),C=X();return l[2]!==b||l[3]!==y||l[4]!==c||l[5]!==C||l[6]!==j||l[7]!==d||l[8]!==m?(n={addLineToSelection:b,clearSelectedLines:y,containerRef:m,fileAnchor:c,getfirstLineSelectionOnDrag:C,isSplitDiff:!1,leftLines:d,selectMultipleLines:j,disabled:!1},l[2]=b,l[3]=y,l[4]=c,l[5]=C,l[6]=j,l[7]=d,l[8]=m,l[9]=n):n=l[9],tZ(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)(rr,{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)(()=>ts(t.map(e=>e)),[t]),{addLineToSelection:m,clearSelectedLines:f,selectMultipleLines:h}=el();return tZ({addLineToSelection:m,clearSelectedLines:f,containerRef:r,fileAnchor:n,getfirstLineSelectionOnDrag:X(),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)(rr,{copilotChatReference:o,diffHasHiddenUnicodeCharacters:e,filePath:a,hunksData:u,currentDiffLine:n,nextDiffLine:l,prevDiffLine:m,showHiddenUnicode:s,subjectId:d,viewerData:c},f)})})});try{rs.displayName||(rs.displayName=”UnifiedDiffLines”)}catch{}function rl(e){return e}let ro=”DiffLines-module__tableLayoutFixed–UBX7h”,rd=”DiffLines-module__compact–wxqBo”;var rc=n(60745),ru=n(73189);let rm=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(8),{hasDraftComment:s,lineSpacingPreference:l,openStartConversationDialog:o,authorLogin:d,authorAvatarUrl:u}=e,{sendAnalyticsEvent:m}=(0,tJ.s)();return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,b.$)(“d-flex”,”flex-row”,ag),a[0]=t):t=a[0],a[1]!==u||a[2]!==d||a[3]!==s||a[4]!==l||a[5]!==o||a[6]!==m?(n=(0,i.jsx)(“div”,{“aria-hidden”:!1,className:t,children:s?(0,i.jsx)(eO.Q,{“aria-label”:”Continue comment in progress”,size:”small”,className:(0,b.$)(“py-0”,”compact”===l?ax:ab,aj),onClick:e=>{(0,aN.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{m(“diff-lines.inp_interaction”,”CELL_ADD_COMMENT_BUTTON”,{latency:e.latency}),(0,aS.au)({name:”PRS_ADD_COMMENT_BUTTON_CLICK”,tags:{diffType:”v2″},value:e.latency})}}),o()},children:(0,i.jsx)(ah,{lineSpacingPreference:l,authorAvatarUrl:u,authorLogin:d})}):(0,i.jsx)(eO.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″,av,aj,aC),onClick:o})}),a[1]=u,a[2]=d,a[3]=s,a[4]=l,a[5]=o,a[6]=m,a[7]=n):n=a[7],n}:function({hasDraftComment:e,lineSpacingPreference:t,openStartConversationDialog:n,authorLogin:a,authorAvatarUrl:r}){let{sendAnalyticsEvent:s}=(0,tJ.s)();return(0,i.jsx)(“div”,{“aria-hidden”:!1,className:(0,b.$)(“d-flex”,”flex-row”,ag),children:e?(0,i.jsx)(eO.Q,{“aria-label”:”Continue comment in progress”,size:”small”,className:(0,b.$)(“py-0”,”compact”===t?ax:ab,aj),onClick:e=>{(0,aN.X)()?.registerCallback({event:e.nativeEvent,cb:e=>{s(“diff-lines.inp_interaction”,”CELL_ADD_COMMENT_BUTTON”,{latency:e.latency}),(0,aS.au)({name:”PRS_ADD_COMMENT_BUTTON_CLICK”,tags:{diffType:”v2″},value:e.latency})}}),n()},children:(0,i.jsx)(ah,{lineSpacingPreference:t,authorAvatarUrl:r,authorLogin:a})}):(0,i.jsx)(eO.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″,av,aj,aC),onClick:n})})};try{rm.displayName||(rm.displayName=”SimpleAddCommentButton”)}catch{}let rf=(0,a.GV)()?function(e){let t,n,a,s,o,d,u,m,f,h,p=(0,r.c)(53),{showStartConversation:g,viewerData:x,openStartConversationDialog:y,threads:j,annotations:C,shouldDisplayMinimizedComments:w,diffAnchor:N,diffLine:S,isLeftSide:L,isSplit:D,nextHunk:I,previousHunk:_,currentHunk:k,copilotChatReference:R,shouldDisplayCollapseComments:A,toggleViewingMarkers:E,setShouldStartNewConversationWithSuggestedChange:T,setIsContextMenuOpen:O,contextMenuOpen:P}=e,F=(0,l.useRef)(null),$=j.reduce(rh,0),M=C.length,{commentsPreference:B,lineSpacingPreference:V}=x,U=Q(),H=Z(),G=J();p[0]!==S||p[1]!==U||p[2]!==H||p[3]!==G||p[4]!==L||p[5]!==D?(t=async()=>{let e=U();await iw({diffLine:S,diffLines:e,getSelectedDiffLines:H,getSelectedLineRange:G,isSplit:D,isLeftSide:L})},p[0]=S,p[1]=U,p[2]=H,p[3]=G,p[4]=L,p[5]=D,p[6]=t):t=p[6];let q=t,z=$+M>0&&B===ij.sI.Collapsed;p[7]!==C.length||p[8]!==j.length||p[9]!==E?(n=e=>{(1===j.length||1===C.length)&&e.preventDefault(),E?.()},p[7]=C.length,p[8]=j.length,p[9]=E,p[10]=n):n=p[10];let K=n;return p[11]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,b.$)(“d-flex”,”flex-row”,ap),p[11]=a):a=p[11],p[12]!==C||p[13]!==P||p[14]!==K||p[15]!==V||p[16]!==w||p[17]!==j||p[18]!==z?(s=z&&w&&(0,i.jsx)(eO.Q,{“aria-expanded”:P,”aria-label”:”View comments”,size:”small”,className:(0,b.$)(“py-0″,”px-1”,aj),onClick:K,children:(0,i.jsx)(i$,{threads:j,annotations:C,lineSpacingPreference:V})}),p[12]=C,p[13]=P,p[14]=K,p[15]=V,p[16]=w,p[17]=j,p[18]=z,p[19]=s):s=p[19],p[20]!==P||p[21]!==O?(o=()=>O(!P),p[20]=P,p[21]=O,p[22]=o):o=p[22],p[23]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,b.$)(“fgColor-muted”,ay),p[23]=d):d=p[23],p[24]!==P||p[25]!==O?(u=(0,i.jsx)(eV.W.Anchor,{children:(0,i.jsx)(eO.Q,{ref:F,”aria-haspopup”:”true”,”aria-label”:”More actions”,icon:c.TriangleDownIcon,size:”small”,className:d,onClick:()=>O(!P)})}),p[24]=P,p[25]=O,p[26]=u):u=p[26],p[27]!==C||p[28]!==R||p[29]!==k||p[30]!==N||p[31]!==S||p[32]!==q||p[33]!==L||p[34]!==D||p[35]!==I||p[36]!==y||p[37]!==_||p[38]!==T||p[39]!==A||p[40]!==g||p[41]!==j||p[42]!==E||p[43]!==x?(m=(0,i.jsx)(eV.W.Overlay,{width:”medium”,children:(0,i.jsx)(eU.l,{children:(0,i.jsx)(i6,{threads:j,annotations:C,currentHunk:k,diffAnchor:N,diffLine:S,shouldDisplayCollapseComments:A,copilotChatReference:R,showStartConversation:g,handleCopyCode:q,handleViewMarkersSelection:E,isLeftSide:L,isSplit:D,nextHunk:I,previousHunk:_,startConversationCurrentLine:y,startConversationWithSuggestedChange:T,viewerData:x})})}),p[27]=C,p[28]=R,p[29]=k,p[30]=N,p[31]=S,p[32]=q,p[33]=L,p[34]=D,p[35]=I,p[36]=y,p[37]=_,p[38]=T,p[39]=A,p[40]=g,p[41]=j,p[42]=E,p[43]=x,p[44]=m):m=p[44],p[45]!==P||p[46]!==o||p[47]!==u||p[48]!==m?(f=(0,i.jsxs)(eV.W,{anchorRef:F,open:P,onOpenChange:o,children:[u,m]}),p[45]=P,p[46]=o,p[47]=u,p[48]=m,p[49]=f):f=p[49],p[50]!==s||p[51]!==f?(h=(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(“div”,{“aria-hidden”:!1,className:a,children:(0,i.jsxs)(iT.A,{className:aw,children:[s,f]})})}),p[50]=s,p[51]=f,p[52]=h):h=p[52],h}: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,shouldDisplayCollapseComments:x,toggleViewingMarkers:y,setShouldStartNewConversationWithSuggestedChange:j,setIsContextMenuOpen:C,contextMenuOpen:w}){let N=(0,l.useRef)(null),S=a.reduce((e,t)=>e+(t.commentsData?.comments.length??0),0),L=r.length,{commentsPreference:D,lineSpacingPreference:I}=t,_=Q(),k=Z(),R=J(),A=async()=>{let e=_();await iw({diffLine:d,diffLines:e,getSelectedDiffLines:k,getSelectedLineRange:R,isSplit:m,isLeftSide:u})},E=S+L>0&&D===ij.sI.Collapsed,T=(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”,ap),children:(0,i.jsxs)(iT.A,{className:aw,children:[E&&s&&(0,i.jsx)(eO.Q,{“aria-expanded”:w,”aria-label”:”View comments”,size:”small”,className:(0,b.$)(“py-0″,”px-1″,aj),onClick:T,children:(0,i.jsx)(i$,{threads:a,annotations:r,lineSpacingPreference:I})}),(0,i.jsxs)(eV.W,{anchorRef:N,open:w,onOpenChange:()=>C(!w),children:[(0,i.jsx)(eV.W.Anchor,{children:(0,i.jsx)(eO.Q,{ref:N,”aria-haspopup”:”true”,”aria-label”:”More actions”,icon:c.TriangleDownIcon,size:”small”,className:(0,b.$)(“fgColor-muted”,ay),onClick:()=>C(!w)})}),(0,i.jsx)(eV.W.Overlay,{width:”medium”,children:(0,i.jsx)(eU.l,{children:(0,i.jsx)(i6,{threads:a,annotations:r,currentHunk:p,diffAnchor:o,diffLine:d,shouldDisplayCollapseComments:x,copilotChatReference:g,showStartConversation:e,handleCopyCode:A,handleViewMarkersSelection:y,isLeftSide:u,isSplit:m,nextHunk:f,previousHunk:h,startConversationCurrentLine:n,startConversationWithSuggestedChange:j,viewerData:t})})})]})]})})})};function rh(e,t){return e+(t.commentsData?.comments.length??0)}try{rf.displayName||(rf.displayName=”SimpleContextMenu”)}catch{}let rp=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f=(0,r.c)(46),{ref:h,annotations:p,authorAvatarUrl:x,authorLogin:b,copilotChatReference:y,currentHunk:j,diffAnchor:C,diffLine:w,hasDraftComment:N,isLeftSide:S,isSplit:L,nextHunk:D,previousHunk:I,shouldDisplayCollapseComments:_,shouldDisplayMinimizedComments:k,shouldDisplayComments:R,threads:A,toggleViewingMarkers:E,viewerData:T,openStartConversationDialog:O,setIsContextMenuOpen:P,setIsActionBarVisible:F,filePath:$,contextMenuOpen:M}=e,B=J();e:{if(!R){t=!0;break e}if(!T.viewerCanComment){t=!1;break e}t=!0}let V=t;f[0]!==h||f[1]!==M||f[2]!==F?(n=()=>{if(h?.current)return aP({element:h?.current,shouldIgnore:()=>M,onPointerExit:()=>F(!1)})},a=[h,M,F],f[0]=h,f[1]=M,f[2]=F,f[3]=n,f[4]=a):(n=f[3],a=f[4]),(0,l.useEffect)(n,a),f[5]!==C||f[6]!==w||f[7]!==$||f[8]!==B||f[9]!==S?(s=()=>{let e=B();e||(e={startLineNumber:w.blobLineNumber,endLineNumber:w.blobLineNumber,startOrientation:S?”left”:”right”,endOrientation:S?”left”:”right”,diffAnchor:C});let t=new H.L(e,$);g.cg?.dispatchEvent(t)},f[5]=C,f[6]=w,f[7]=$,f[8]=B,f[9]=S,f[10]=s):s=f[10];let U=s;f[11]!==x||f[12]!==b||f[13]!==N||f[14]!==U||f[15]!==O||f[16]!==V||f[17]!==T.lineSpacingPreference?(o=V&&(0,i.jsx)(rm,{hasDraftComment:N,lineSpacingPreference:T.lineSpacingPreference,openStartConversationDialog:()=>{O(!1),U()},authorLogin:b,authorAvatarUrl:x}),f[11]=x,f[12]=b,f[13]=N,f[14]=U,f[15]=O,f[16]=V,f[17]=T.lineSpacingPreference,f[18]=o):o=f[18],f[19]!==U||f[20]!==O?(d=()=>{O(!1),U()},c=()=>{O(!0),U()},f[19]=U,f[20]=O,f[21]=d,f[22]=c):(d=f[21],c=f[22]);let G=k??!1;return f[23]!==p||f[24]!==M||f[25]!==y||f[26]!==j||f[27]!==C||f[28]!==w||f[29]!==S||f[30]!==L||f[31]!==D||f[32]!==I||f[33]!==P||f[34]!==_||f[35]!==V||f[36]!==d||f[37]!==c||f[38]!==G||f[39]!==A||f[40]!==E||f[41]!==T?(u=(0,i.jsx)(rf,{showStartConversation:V,viewerData:T,openStartConversationDialog:d,setShouldStartNewConversationWithSuggestedChange:c,setIsContextMenuOpen:P,contextMenuOpen:M,threads:A,annotations:p,shouldDisplayMinimizedComments:G,diffAnchor:C,diffLine:w,isLeftSide:S,isSplit:L,nextHunk:D,previousHunk:I,currentHunk:j,copilotChatReference:y,shouldDisplayCollapseComments:_,toggleViewingMarkers:E}),f[23]=p,f[24]=M,f[25]=y,f[26]=j,f[27]=C,f[28]=w,f[29]=S,f[30]=L,f[31]=D,f[32]=I,f[33]=P,f[34]=_,f[35]=V,f[36]=d,f[37]=c,f[38]=G,f[39]=A,f[40]=E,f[41]=T,f[42]=u):u=f[42],f[43]!==o||f[44]!==u?(m=(0,i.jsxs)(i.Fragment,{children:[o,u]}),f[43]=o,f[44]=u,f[45]=m):m=f[45],m}:function({ref:e,annotations:t,authorAvatarUrl:n,authorLogin:a,copilotChatReference:r,currentHunk:s,diffAnchor:o,diffLine:d,hasDraftComment:c,isLeftSide:u,isSplit:m,nextHunk:f,previousHunk:h,shouldDisplayCollapseComments:p,shouldDisplayMinimizedComments:x,shouldDisplayComments:b,threads:y,toggleViewingMarkers:j,viewerData:C,openStartConversationDialog:w,setIsContextMenuOpen:N,setIsActionBarVisible:S,filePath:L,contextMenuOpen:D}){let I=J(),_=(0,l.useMemo)(()=>!b||!!C.viewerCanComment,[b,C.viewerCanComment]);(0,l.useEffect)(()=>{if(e?.current)return aP({element:e?.current,shouldIgnore:()=>D,onPointerExit:()=>S(!1)})},[e,D,S]);let k=()=>{let e=I();e||(e={startLineNumber:d.blobLineNumber,endLineNumber:d.blobLineNumber,startOrientation:u?”left”:”right”,endOrientation:u?”left”:”right”,diffAnchor:o});let t=new H.L(e,L);g.cg?.dispatchEvent(t)};return(0,i.jsxs)(i.Fragment,{children:[_&&(0,i.jsx)(rm,{hasDraftComment:c,lineSpacingPreference:C.lineSpacingPreference,openStartConversationDialog:()=>{w(!1),k()},authorLogin:a,authorAvatarUrl:n}),(0,i.jsx)(rf,{showStartConversation:_,viewerData:C,openStartConversationDialog:()=>{w(!1),k()},setShouldStartNewConversationWithSuggestedChange:()=>{w(!0),k()},setIsContextMenuOpen:N,contextMenuOpen:D,threads:y,annotations:t,shouldDisplayMinimizedComments:x??!1,diffAnchor:o,diffLine:d,isLeftSide:u,isSplit:m,nextHunk:f,previousHunk:h,currentHunk:s,copilotChatReference:r,shouldDisplayCollapseComments:p,toggleViewingMarkers:j})]})};rp.displayName=”ActionBar”;let rg=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f,h=(0,r.c)(68),{diffLine:p,nextDiffLine:g,prevDiffLine:x,filePath:y,avatarURL:j,userLogin:C,viewerCanApplySuggestion:w,handleMouseDownOnNumberCell:N,handleMouseEnterCell:S,hunksData:L,viewerCanComment:D,shouldDisplayComments:I}=e,k=”HUNK”===p.type,R=”ADDITION”!==p.type,A=”DELETION”!==p.type,E=es(p.key),O=ei();if(h[0]!==O||h[1]!==p){let e=(0,T.qX)(O,p,p);t=(0,T.u6)(e,2),h[0]=O,h[1]=p,h[2]=t}else t=h[2];let P=t,F=j??””,$=C??””,M=w??!1,B=D??!1;h[3]!==F||h[4]!==$||h[5]!==M||h[6]!==B?(n={avatarUrl:F,login:$,viewerCanApplySuggestion:M,viewerCanComment:B},h[3]=F,h[4]=$,h[5]=M,h[6]=B,h[7]=n):n=h[7];let V=n;h[8]!==p.type||h[9]!==E.isSelected?(a=(0,T.Yf)(p.type,!0,E.isSelected),h[8]=p.type,h[9]=E.isSelected,h[10]=a):a=h[10];let U=a;h[11]!==p.type||h[12]!==E.isSelected?(s=(0,T.Yf)(p.type,!1,E.isSelected),h[11]=p.type,h[12]=E.isSelected,h[13]=s):s=h[13];let H=s;h[14]!==p.html||h[15]!==p.type?(o=(0,T.x_)(p.html,p.type),h[14]=p.html,h[15]=p.type,h[16]=o):o=h[16];let[G,q]=o;h[17]!==q?(d=q&&[“+”,”-“].includes(q),h[17]=q,h[18]=d):d=h[18];let z=d,[K,W]=(0,l.useState)(!1),[Z,Q]=(0,l.useState)(!1),[X,J]=(0,l.useState)(!1),[Y,ee]=(0,l.useState)(!1);h[19]!==p||h[20]!==L?(c=tr(p,L),h[19]=p,h[20]=L,h[21]=c):c=h[21];let{currentHunk:en,nextHunk:ea,previousHunk:er}=c,el=`inline-dialog-heading-${(0,l.useId)()}`,eo=et(P),ed=”DELETION”!==p.type?”RIGHT”:”LEFT”,ec=”RIGHT”===ed?p.right:p.left;h[22]!==ec||h[23]!==ed?(u=(0,T.oH)(ec,ed),h[22]=ec,h[23]=ed,h[24]=u):u=h[24];let eu=u,{threads:em,annotations:ef,commentsPreference:eh}=(0,_.rP)(y,eu??””),ep=em.length+ef.length!==0,eg=ep&&eh===ij.sI.Collapsed;h[25]!==eg?(m=(0,T.S4)({hasThreads:eg}),h[25]=eg,h[26]=m):m=h[26];let ex=m,eb=(0,l.useRef)(null),ev=(0,l.useRef)(null),[ey,ej]=(0,l.useState)(em.length>0||ef.length>0),eC=”DELETION”===p.type;return h[27]!==ef||h[28]!==j||h[29]!==P||h[30]!==H||h[31]!==ex||h[32]!==en||h[33]!==O||h[34]!==p||h[35]!==E.isSelected||h[36]!==y||h[37]!==N||h[38]!==S||h[39]!==ep||h[40]!==el||h[41]!==Z||h[42]!==X||h[43]!==k||h[44]!==eo||h[45]!==eC||h[46]!==K||h[47]!==G||h[48]!==eu||h[49]!==U||h[50]!==ed||h[51]!==q||h[52]!==g||h[53]!==ea||h[54]!==x||h[55]!==er||h[56]!==I||h[57]!==Y||h[58]!==ey||h[59]!==R||h[60]!==z||h[61]!==A||h[62]!==em||h[63]!==C||h[64]!==w||h[65]!==D||h[66]!==V?(f=(0,i.jsx)(“tr”,{className:”diff-line-row”,children:k?(0,i.jsx)(a9,{currentHunk:en,diffAnchor:O,diffLine:p,isLeftSide:eC,isSplit:!1,nextHunk:ea,nextLine:g,previousHunk:er,prevLine:x}):(0,i.jsxs)(i.Fragment,{children:[R?(0,i.jsx)(“td”,{className:”new-diff-line-number”,”data-diff-side”:”left”,”data-diff-line-key”:p.key,”data-line-number”:p.left,”data-selected”:E.isSelected,style:{backgroundColor:U},onMouseDown:N,onMouseEnter:S,children:p.left}):(0,i.jsx)(“td”,{style:{backgroundColor:U},”data-selected”:E.isSelected,className:”new-diff-line-number empty-diff-line”}),A?(0,i.jsx)(“td”,{className:”new-diff-line-number”,”data-diff-side”:”right”,”data-diff-line-key”:p.key,”data-line-number”:p.right,”data-selected”:E.isSelected,style:{backgroundColor:U},onMouseDown:N,onMouseEnter:S,children:p.right}):(0,i.jsx)(“td”,{style:{backgroundColor:U},”data-selected”:E.isSelected,className:”new-diff-line-number empty-diff-line”}),(0,i.jsxs)(“td”,{“data-grid-cell-id”:P,className:”diff-text-cell”,style:{backgroundColor:H},”data-selected”:E.isSelected,onMouseEnter:()=>Q(!0),”aria-labelledby”:eo?el:void 0,role:eo?”dialog”:”gridcell”,ref:e=>{Z?eb.current=e:eb.current=null},children:[eo&&(0,i.jsx)(“h1″,{id:el,className:”sr-only”,children:”Comment view”}),(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===p.type,deletion:”DELETION”===p.type}),children:[z&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:q}),(0,i.jsx)(e2.$6,{html:G,className:”diff-text-inner”})]}),(ey||ep)&&I?(0,i.jsx)(ip,{diffLine:p,gridCellId:P,gutterSizeOffset:ex,inlineMarkersRef:ev,cellRef:eb,fileAnchor:O,dispatchMarkersStatus:ru.l,shouldListenForEscapeKey:!0,lineMarkersKey:eu,annotations:ef,conversationListThreads:em,filePath:y,onCloseFocusMode:ru.l,isRowSelected:!1,lineType:p.type,shouldStartNewConversationWithSuggestedChange:Y,viewerData:V,onCloseConversationList:()=>{W(!1),ej(!1),ee(!1)},onDeleteLineComment:()=>{W(!1),ej(!1),ee(!1)},children:K&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(em.length,”mt-2 mb-1″)),children:(0,i.jsx)(nx,{diffLine:p,diffAnchor:O,batchingEnabled:!0,filePath:y,focusOnMount:!0,isLeftSide:”LEFT”===ed,isInDialogMode:!1,isOpen:K,lineNumber:p.blobLineNumber,shouldStartNewConversationWithSuggestedChange:Y,viewerData:V,onCloseCommentDialog:()=>{W(!1),ej(!1),ee(!1)}})})}):null,(Z||X)&&(0,i.jsx)(rp,{openStartConversationDialog:e=>{ee(e),W(!0),ej(!0)},authorAvatarUrl:j??””,authorLogin:C??””,ref:eb,copilotChatReference:void 0,currentHunk:en,diffAnchor:O,diffLine:p,threads:em,annotations:ef,hasDraftComment:!1,isLeftSide:”LEFT”===ed,isSplit:!1,filePath:y,nextHunk:ea,previousHunk:er,shouldDisplayComments:I,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,setIsContextMenuOpen:J,setIsActionBarVisible:Q,contextMenuOpen:X,toggleViewingMarkers:ru.l,viewerData:{avatarUrl:j??””,diffViewPreference:”unified”,lineSpacingPreference:”compact”,login:C??””,shouldDisplayComments:I??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:D??!1,viewerCanApplySuggestion:w??!1}})]})]})}),h[27]=ef,h[28]=j,h[29]=P,h[30]=H,h[31]=ex,h[32]=en,h[33]=O,h[34]=p,h[35]=E.isSelected,h[36]=y,h[37]=N,h[38]=S,h[39]=ep,h[40]=el,h[41]=Z,h[42]=X,h[43]=k,h[44]=eo,h[45]=eC,h[46]=K,h[47]=G,h[48]=eu,h[49]=U,h[50]=ed,h[51]=q,h[52]=g,h[53]=ea,h[54]=x,h[55]=er,h[56]=I,h[57]=Y,h[58]=ey,h[59]=R,h[60]=z,h[61]=A,h[62]=em,h[63]=C,h[64]=w,h[65]=D,h[66]=V,h[67]=f):f=h[67],f}:function({diffLine:e,nextDiffLine:t,prevDiffLine:n,filePath:a,avatarURL:r,userLogin:s,viewerCanApplySuggestion:o,handleMouseDownOnNumberCell:d,handleMouseEnterCell:c,hunksData:u,viewerCanComment:m,shouldDisplayComments:f}){let h=”HUNK”===e.type,p=”ADDITION”!==e.type,g=”DELETION”!==e.type,x=es(e.key),y=ei(),j=(0,T.qX)(y,e,e),C=(0,T.u6)(j,2),w={avatarUrl:r??””,login:s??””,viewerCanApplySuggestion:o??!1,viewerCanComment:m??!1},N=(0,T.Yf)(e.type,!0,x.isSelected),S=(0,T.Yf)(e.type,!1,x.isSelected),[L,D]=(0,T.x_)(e.html,e.type),I=D&&[“+”,”-“].includes(D),[k,R]=(0,l.useState)(!1),[A,E]=(0,l.useState)(!1),[O,P]=(0,l.useState)(!1),[F,$]=(0,l.useState)(!1),{currentHunk:M,nextHunk:B,previousHunk:V}=tr(e,u),U=`inline-dialog-heading-${(0,l.useId)()}`,H=et(C),G=”DELETION”!==e.type?”RIGHT”:”LEFT”,q=”RIGHT”===G?e.right:e.left,z=(0,T.oH)(q,G),{threads:K,annotations:W,commentsPreference:Z}=(0,_.rP)(a,z??””),Q=K.length+W.length!==0,X=(0,T.S4)({hasThreads:Q&&Z===ij.sI.Collapsed}),J=(0,l.useRef)(null),Y=(0,l.useRef)(null),[ee,en]=(0,l.useState)(K.length>0||W.length>0),ea=”DELETION”===e.type;return(0,i.jsx)(“tr”,{className:”diff-line-row”,children:h?(0,i.jsx)(a9,{currentHunk:M,diffAnchor:y,diffLine:e,isLeftSide:ea,isSplit:!1,nextHunk:B,nextLine:t,previousHunk:V,prevLine:n}):(0,i.jsxs)(i.Fragment,{children:[p?(0,i.jsx)(“td”,{className:”new-diff-line-number”,”data-diff-side”:”left”,”data-diff-line-key”:e.key,”data-line-number”:e.left,”data-selected”:x.isSelected,style:{backgroundColor:N},onMouseDown:d,onMouseEnter:c,children:e.left}):(0,i.jsx)(“td”,{style:{backgroundColor:N},”data-selected”:x.isSelected,className:”new-diff-line-number empty-diff-line”}),g?(0,i.jsx)(“td”,{className:”new-diff-line-number”,”data-diff-side”:”right”,”data-diff-line-key”:e.key,”data-line-number”:e.right,”data-selected”:x.isSelected,style:{backgroundColor:N},onMouseDown:d,onMouseEnter:c,children:e.right}):(0,i.jsx)(“td”,{style:{backgroundColor:N},”data-selected”:x.isSelected,className:”new-diff-line-number empty-diff-line”}),(0,i.jsxs)(“td”,{“data-grid-cell-id”:C,className:”diff-text-cell”,style:{backgroundColor:S},”data-selected”:x.isSelected,onMouseEnter:()=>E(!0),”aria-labelledby”:H?U:void 0,role:H?”dialog”:”gridcell”,ref:e=>{A?J.current=e:J.current=null},children:[H&&(0,i.jsx)(“h1″,{id:U,className:”sr-only”,children:”Comment view”}),(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===e.type,deletion:”DELETION”===e.type}),children:[I&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:D}),(0,i.jsx)(e2.$6,{html:L,className:”diff-text-inner”})]}),(ee||Q)&&f?(0,i.jsx)(ip,{diffLine:e,gridCellId:C,gutterSizeOffset:X,inlineMarkersRef:Y,cellRef:J,fileAnchor:y,dispatchMarkersStatus:ru.l,shouldListenForEscapeKey:!0,lineMarkersKey:z,annotations:W,conversationListThreads:K,filePath:a,onCloseFocusMode:ru.l,isRowSelected:!1,lineType:e.type,shouldStartNewConversationWithSuggestedChange:F,viewerData:w,onCloseConversationList:()=>{R(!1),en(!1),$(!1)},onDeleteLineComment:()=>{R(!1),en(!1),$(!1)},children:k&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,(K.length,”mt-2 mb-1″)),children:(0,i.jsx)(nx,{diffLine:e,diffAnchor:y,batchingEnabled:!0,filePath:a,focusOnMount:!0,isLeftSide:”LEFT”===G,isInDialogMode:!1,isOpen:k,lineNumber:e.blobLineNumber,shouldStartNewConversationWithSuggestedChange:F,viewerData:w,onCloseCommentDialog:()=>{R(!1),en(!1),$(!1)}})})}):null,(A||O)&&(0,i.jsx)(rp,{openStartConversationDialog:e=>{$(e),R(!0),en(!0)},authorAvatarUrl:r??””,authorLogin:s??””,ref:J,copilotChatReference:void 0,currentHunk:M,diffAnchor:y,diffLine:e,threads:K,annotations:W,hasDraftComment:!1,isLeftSide:”LEFT”===G,isSplit:!1,filePath:a,nextHunk:B,previousHunk:V,shouldDisplayComments:f,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,setIsContextMenuOpen:P,setIsActionBarVisible:E,contextMenuOpen:O,toggleViewingMarkers:ru.l,viewerData:{avatarUrl:r??””,diffViewPreference:”unified”,lineSpacingPreference:”compact”,login:s??””,shouldDisplayComments:f??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:m??!1,viewerCanApplySuggestion:o??!1}})]})]})})};try{rg.displayName||(rg.displayName=”SimpleUnifiedDiffRow”)}catch{}let rx=(0,l.memo)(function({diffLines:e,filePath:t,avatarURL:n,userLogin:a,viewerCanApplySuggestion:r,handleMouseDownOnNumberCell:s,handleMouseEnterCell:l,viewerCanComment:o,shouldDisplayComments:d}){let c=ts(e.map(e=>e));return e.map((u,m)=>{let f=`unified-diff-row-l:${u.left}-r:${u.right}-b:${u.blobLineNumber}`,h=e[m+1],p=e[m-1];return(0,i.jsx)(rg,{hunksData:c,diffLine:u,nextDiffLine:h,prevDiffLine:p,filePath:t,handleMouseDownOnNumberCell:s,handleMouseEnterCell:l,avatarURL:n,userLogin:a,viewerCanApplySuggestion:r,viewerCanComment:o,shouldDisplayComments:d},f)})});try{rx.displayName||(rx.displayName=”SimpleUnifiedDiffLines”)}catch{}let rb=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u,m,f,h,p,g,x,y,j,C,w=(0,r.c)(96),{leftDiffLine:N,rightDiffLine:S,nextDiffLine:L,prevDiffLine:D,filePath:I,handleMouseDownOnNumberCell:k,handleMouseEnterCell:R,avatarURL:A,userLogin:E,viewerCanApplySuggestion:O,hunksData:P,viewerCanComment:F,shouldDisplayComments:$}=e,M=N?.type===”HUNK”,B=ei(),V=es(N?.key),U=es(S?.key);if(w[0]!==B||w[1]!==N||w[2]!==S){let e=(0,T.qX)(B,N??”empty-diff-line”,S);t=(0,T.u6)(e,1),n=(0,T.u6)(e,3),w[0]=B,w[1]=N,w[2]=S,w[3]=t,w[4]=n}else t=w[3],n=w[4];let H=n,G=V.isSelected||U.isSelected;w[5]!==G||w[6]!==N?(a=N?(0,T.Yf)(N.type,!0,G):””,w[5]=G,w[6]=N,w[7]=a):a=w[7];let q=a;w[8]!==G||w[9]!==S?(s=S?(0,T.Yf)(S.type,!0,G):””,w[8]=G,w[9]=S,w[10]=s):s=w[10];let z=s;w[11]!==G||w[12]!==N?(o=N?(0,T.Yf)(N.type,!1,G):””,w[11]=G,w[12]=N,w[13]=o):o=w[13];let K=o;w[14]!==G||w[15]!==S?(d=S?(0,T.Yf)(S.type,!1,G):””,w[14]=G,w[15]=S,w[16]=d):d=w[16];let W=d,Z=`inline-dialog-heading-${(0,l.useId)()}`,Q=et(t),X=et(H);w[17]!==N?(c=N?(0,T.x_)(N.html,N.type):[void 0,void 0],w[17]=N,w[18]=c):c=w[18];let[J,Y]=c;w[19]!==Y?(u=Y&&[“+”,”-“].includes(Y),w[19]=Y,w[20]=u):u=w[20];let ee=u;w[21]!==S?(m=S?(0,T.x_)(S.html,S.type):[void 0,void 0],w[21]=S,w[22]=m):m=w[22];let[en,ea]=m;w[23]!==ea?(f=ea&&[“+”,”-“].includes(ea),w[23]=ea,w[24]=f):f=w[24];let er=f;w[25]!==N?(h=N?(0,T.oH)(N.left,”LEFT”):void 0,w[25]=N,w[26]=h):h=w[26];let el=h,{threads:eo,annotations:ed}=(0,_.rP)(I,el??””),ec=A??””,eu=E??””,em=O??!1,ef=F??!1;w[27]!==ec||w[28]!==eu||w[29]!==em||w[30]!==ef?(p={avatarUrl:ec,login:eu,viewerCanApplySuggestion:em,viewerCanComment:ef},w[27]=ec,w[28]=eu,w[29]=em,w[30]=ef,w[31]=p):p=w[31];let eh=p;w[32]!==S?(g=S?(0,T.oH)(S.right,”RIGHT”):void 0,w[32]=S,w[33]=g):g=w[33];let ep=g,{threads:eg,annotations:ex,commentsPreference:eb}=(0,_.rP)(I,ep??””),[ev,ey]=(0,l.useState)(!1),[ej,eC]=(0,l.useState)(!1),[ew,eN]=(0,l.useState)(!1),[eS,eL]=(0,l.useState)(!1),[eD,eI]=(0,l.useState)(!1),[e_,ek]=(0,l.useState)(!1),[eR,eA]=(0,l.useState)(!1),[eE,eT]=(0,l.useState)(!1),[eO,eP]=(0,l.useState)(eo.length>0||ed.length>0),[eF,e$]=(0,l.useState)(eg.length>0||ex.length>0),eM=eo.length+ed.length!==0,eB=eg.length+ex.length!==0,eV=eM&&eb===ij.sI.Collapsed;w[34]!==eV?(x=(0,T.S4)({hasThreads:eV}),w[34]=eV,w[35]=x):x=w[35];let eU=x,eH=eB&&eb===ij.sI.Collapsed;w[36]!==eH?(y=(0,T.S4)({hasThreads:eH}),w[36]=eH,w[37]=y):y=w[37];let eG=y,eq=(0,T.Po)(N)?(0,T.Po)(S)?void 0:S:N,ez=(0,l.useRef)(null),eK=(0,l.useRef)(null),eW=(0,l.useRef)(null);if(!eq)return null;w[38]!==eq||w[39]!==P?(j=tr(eq,P),w[38]=eq,w[39]=P,w[40]=j):j=w[40];let{currentHunk:eZ,nextHunk:eQ,previousHunk:eX}=j;return w[41]!==A||w[42]!==eZ||w[43]!==B||w[44]!==I||w[45]!==k||w[46]!==R||w[47]!==eM||w[48]!==eB||w[49]!==Z||w[50]!==M||w[51]!==ej||w[52]!==ew||w[53]!==Q||w[54]!==ev||w[55]!==e_||w[56]!==eR||w[57]!==X||w[58]!==eD||w[59]!==G||w[60]!==ed||w[61]!==t||w[62]!==K||w[63]!==eU||w[64]!==N||w[65]!==J||w[66]!==el||w[67]!==q||w[68]!==Y||w[69]!==eo||w[70]!==L||w[71]!==eQ||w[72]!==D||w[73]!==eX||w[74]!==ex||w[75]!==H||w[76]!==W||w[77]!==eG||w[78]!==S||w[79]!==en||w[80]!==ep||w[81]!==z||w[82]!==ea||w[83]!==eg||w[84]!==$||w[85]!==eS||w[86]!==eE||w[87]!==eO||w[88]!==ee||w[89]!==eF||w[90]!==er||w[91]!==E||w[92]!==O||w[93]!==F||w[94]!==eh?(C=(0,i.jsx)(“tr”,{className:”diff-line-row”,children:M?(0,i.jsx)(a9,{currentHunk:eZ,diffAnchor:B,diffLine:N,isLeftSide:!0,isSplit:!0,nextHunk:eQ,nextLine:L,previousHunk:eX,prevLine:D}):(0,i.jsxs)(i.Fragment,{children:[N?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”new-diff-line-number”,”data-diff-side”:”left”,”data-diff-line-key”:N.key,”data-line-number”:N.left,”data-selected”:G,onMouseDown:k,onMouseEnter:R,style:{backgroundColor:q},children:N.left}),(0,i.jsxs)(“td”,{className:”diff-text-cell v-align-top”,”data-grid-cell-id”:t,”data-selected”:G,style:{backgroundColor:K},onMouseEnter:()=>eC(!0),onMouseLeave:()=>eC(!1),”aria-labelledby”:Q?Z:void 0,role:Q?”dialog”:”gridcell”,ref:e=>{ej?eK.current=e:eK.current=null},children:[Q&&(0,i.jsx)(“h1″,{id:Z,className:”sr-only”,children:”Comment view”}),(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===N.type,deletion:”DELETION”===N.type}),children:[ee&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:Y}),(0,i.jsx)(e2.$6,{html:J,className:”diff-text-inner”})]}),(eO||eM)&&$&&(0,i.jsx)(ip,{diffLine:N,gridCellId:t,shouldListenForEscapeKey:!0,gutterSizeOffset:eU,inlineMarkersRef:ez,cellRef:eK,fileAnchor:B,dispatchMarkersStatus:ru.l,lineMarkersKey:el,annotations:ed,conversationListThreads:eo,filePath:I,onCloseFocusMode:ru.l,isRowSelected:!1,lineType:N.type,onCloseConversationList:()=>{ey(!1),eP(!1),eL(!1)},onDeleteLineComment:()=>{ey(!1),eP(!1),eL(!1)},viewerData:eh,children:ev&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nx,{diffLine:N,diffAnchor:B,batchingEnabled:!0,filePath:I,focusOnMount:!0,isLeftSide:!0,isInDialogMode:!1,isOpen:!0,lineNumber:N.left??void 0,viewerData:eh,shouldStartNewConversationWithSuggestedChange:eS,onCloseCommentDialog:()=>{ey(!1),eP(!1),eL(!1)}})})}),(ej||ew)&&(0,i.jsx)(rp,{openStartConversationDialog:e=>{eL(e),ey(!0),eP(!0)},authorAvatarUrl:A??””,authorLogin:E??””,ref:eK,copilotChatReference:void 0,currentHunk:eZ,diffAnchor:B,diffLine:N,threads:eo,annotations:ed,hasDraftComment:!1,isLeftSide:!0,isSplit:!0,contextMenuOpen:ew,setIsContextMenuOpen:eN,setIsActionBarVisible:eC,nextHunk:eQ,previousHunk:eX,shouldDisplayComments:$,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,filePath:I,toggleViewingMarkers:ru.l,viewerData:{avatarUrl:A??””,diffViewPreference:”split”,lineSpacingPreference:”compact”,login:E??””,shouldDisplayComments:$??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:F??!1,viewerCanApplySuggestion:O??!1}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”new-diff-line-number empty-diff-line”}),(0,i.jsx)(“td”,{className:”new-diff-line-number empty-diff-line”})]}),S?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”new-diff-line-number”,”data-diff-side”:”right”,”data-diff-line-key”:S.key,”data-line-number”:S.right,”data-selected”:G,onMouseDown:k,onMouseEnter:R,style:{backgroundColor:z},children:S.right}),(0,i.jsxs)(“td”,{className:”diff-text-cell v-align-top”,”data-grid-cell-id”:H,”data-selected”:G,style:{backgroundColor:W},onMouseEnter:()=>ek(!0),onMouseLeave:()=>ek(!1),”aria-labelledby”:X?Z:void 0,role:X?”dialog”:”gridcell”,ref:e=>{e_?eW.current=e:eW.current=null},children:[X&&(0,i.jsx)(“h1″,{id:Z,className:”sr-only”,children:”Comment view”}),(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===S.type,deletion:”DELETION”===S.type}),children:[er&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:ea}),(0,i.jsx)(e2.$6,{html:en,className:”diff-text-inner”})]}),(eF||eB)&&$&&(0,i.jsx)(ip,{diffLine:S,gridCellId:H,shouldListenForEscapeKey:!0,gutterSizeOffset:eG,inlineMarkersRef:ez,cellRef:eW,fileAnchor:B,dispatchMarkersStatus:ru.l,lineMarkersKey:ep,annotations:ex,conversationListThreads:eg,filePath:I,viewerData:eh,onCloseFocusMode:ru.l,isRowSelected:!1,lineType:S.type,onCloseConversationList:()=>{eI(!1),e$(!1),eT(!1)},onDeleteLineComment:()=>{eI(!1),e$(!1),eT(!1)},children:eD&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nx,{diffLine:S,diffAnchor:B,batchingEnabled:!0,filePath:I,focusOnMount:!0,isLeftSide:!1,isInDialogMode:!1,isOpen:!0,shouldStartNewConversationWithSuggestedChange:eE,lineNumber:S.right??void 0,viewerData:eh,onCloseCommentDialog:()=>{eI(!1),e$(!1),eT(!1)}})})}),(e_||eR)&&(0,i.jsx)(rp,{openStartConversationDialog:e=>{eT(e),eI(!0),e$(!0)},authorAvatarUrl:A??””,authorLogin:E??””,ref:eW,copilotChatReference:void 0,currentHunk:eZ,diffAnchor:B,diffLine:S,threads:eg,contextMenuOpen:eR,setIsContextMenuOpen:eA,setIsActionBarVisible:ek,annotations:ex,hasDraftComment:!1,isLeftSide:!1,isSplit:!0,nextHunk:eQ,previousHunk:eX,filePath:I,shouldDisplayComments:$,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:ru.l,viewerData:{avatarUrl:A??””,diffViewPreference:”split”,lineSpacingPreference:”compact”,login:E??””,shouldDisplayComments:$??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:F??!1,viewerCanApplySuggestion:O??!1}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”new-diff-line-number empty-diff-line”}),(0,i.jsx)(“td”,{className:”new-diff-line-number empty-diff-line”})]})]})}),w[41]=A,w[42]=eZ,w[43]=B,w[44]=I,w[45]=k,w[46]=R,w[47]=eM,w[48]=eB,w[49]=Z,w[50]=M,w[51]=ej,w[52]=ew,w[53]=Q,w[54]=ev,w[55]=e_,w[56]=eR,w[57]=X,w[58]=eD,w[59]=G,w[60]=ed,w[61]=t,w[62]=K,w[63]=eU,w[64]=N,w[65]=J,w[66]=el,w[67]=q,w[68]=Y,w[69]=eo,w[70]=L,w[71]=eQ,w[72]=D,w[73]=eX,w[74]=ex,w[75]=H,w[76]=W,w[77]=eG,w[78]=S,w[79]=en,w[80]=ep,w[81]=z,w[82]=ea,w[83]=eg,w[84]=$,w[85]=eS,w[86]=eE,w[87]=eO,w[88]=ee,w[89]=eF,w[90]=er,w[91]=E,w[92]=O,w[93]=F,w[94]=eh,w[95]=C):C=w[95],C}:function({leftDiffLine:e,rightDiffLine:t,nextDiffLine:n,prevDiffLine:a,filePath:r,handleMouseDownOnNumberCell:s,handleMouseEnterCell:o,avatarURL:d,userLogin:c,viewerCanApplySuggestion:u,hunksData:m,viewerCanComment:f,shouldDisplayComments:h}){let p=e?.type===”HUNK”,g=ei(),x=es(e?.key),y=es(t?.key),j=(0,T.qX)(g,e??”empty-diff-line”,t),C=(0,T.u6)(j,1),w=(0,T.u6)(j,3),N=x.isSelected||y.isSelected,S=e?(0,T.Yf)(e.type,!0,N):””,L=t?(0,T.Yf)(t.type,!0,N):””,D=e?(0,T.Yf)(e.type,!1,N):””,I=t?(0,T.Yf)(t.type,!1,N):””,k=`inline-dialog-heading-${(0,l.useId)()}`,R=et(C),A=et(w),[E,O]=e?(0,T.x_)(e.html,e.type):[void 0,void 0],P=O&&[“+”,”-“].includes(O),[F,$]=t?(0,T.x_)(t.html,t.type):[void 0,void 0],M=$&&[“+”,”-“].includes($),B=e?(0,T.oH)(e.left,”LEFT”):void 0,{threads:V,annotations:U}=(0,_.rP)(r,B??””),H={avatarUrl:d??””,login:c??””,viewerCanApplySuggestion:u??!1,viewerCanComment:f??!1},G=t?(0,T.oH)(t.right,”RIGHT”):void 0,{threads:q,annotations:z,commentsPreference:K}=(0,_.rP)(r,G??””),[W,Z]=(0,l.useState)(!1),[Q,X]=(0,l.useState)(!1),[J,Y]=(0,l.useState)(!1),[ee,en]=(0,l.useState)(!1),[ea,er]=(0,l.useState)(!1),[el,eo]=(0,l.useState)(!1),[ed,ec]=(0,l.useState)(!1),[eu,em]=(0,l.useState)(!1),[ef,eh]=(0,l.useState)(V.length>0||U.length>0),[ep,eg]=(0,l.useState)(q.length>0||z.length>0),ex=V.length+U.length!==0,eb=q.length+z.length!==0,ev=(0,T.S4)({hasThreads:ex&&K===ij.sI.Collapsed}),ey=(0,T.S4)({hasThreads:eb&&K===ij.sI.Collapsed}),ej=(0,T.Po)(e)?(0,T.Po)(t)?void 0:t:e,eC=(0,l.useRef)(null),ew=(0,l.useRef)(null),eN=(0,l.useRef)(null);if(!ej)return null;let{currentHunk:eS,nextHunk:eL,previousHunk:eD}=tr(ej,m);return(0,i.jsx)(“tr”,{className:”diff-line-row”,children:p?(0,i.jsx)(a9,{currentHunk:eS,diffAnchor:g,diffLine:e,isLeftSide:!0,isSplit:!0,nextHunk:eL,nextLine:n,previousHunk:eD,prevLine:a}):(0,i.jsxs)(i.Fragment,{children:[e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”new-diff-line-number”,”data-diff-side”:”left”,”data-diff-line-key”:e.key,”data-line-number”:e.left,”data-selected”:N,onMouseDown:s,onMouseEnter:o,style:{backgroundColor:S},children:e.left}),(0,i.jsxs)(“td”,{className:”diff-text-cell v-align-top”,”data-grid-cell-id”:C,”data-selected”:N,style:{backgroundColor:D},onMouseEnter:()=>X(!0),onMouseLeave:()=>X(!1),”aria-labelledby”:R?k:void 0,role:R?”dialog”:”gridcell”,ref:e=>{Q?ew.current=e:ew.current=null},children:[R&&(0,i.jsx)(“h1″,{id:k,className:”sr-only”,children:”Comment view”}),(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===e.type,deletion:”DELETION”===e.type}),children:[P&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:O}),(0,i.jsx)(e2.$6,{html:E,className:”diff-text-inner”})]}),(ef||ex)&&h&&(0,i.jsx)(ip,{diffLine:e,gridCellId:C,shouldListenForEscapeKey:!0,gutterSizeOffset:ev,inlineMarkersRef:eC,cellRef:ew,fileAnchor:g,dispatchMarkersStatus:ru.l,lineMarkersKey:B,annotations:U,conversationListThreads:V,filePath:r,onCloseFocusMode:ru.l,isRowSelected:!1,lineType:e.type,onCloseConversationList:()=>{Z(!1),eh(!1),en(!1)},onDeleteLineComment:()=>{Z(!1),eh(!1),en(!1)},viewerData:H,children:W&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nx,{diffLine:e,diffAnchor:g,batchingEnabled:!0,filePath:r,focusOnMount:!0,isLeftSide:!0,isInDialogMode:!1,isOpen:!0,lineNumber:e.left??void 0,viewerData:H,shouldStartNewConversationWithSuggestedChange:ee,onCloseCommentDialog:()=>{Z(!1),eh(!1),en(!1)}})})}),(Q||J)&&(0,i.jsx)(rp,{openStartConversationDialog:e=>{en(e),Z(!0),eh(!0)},authorAvatarUrl:d??””,authorLogin:c??””,ref:ew,copilotChatReference:void 0,currentHunk:eS,diffAnchor:g,diffLine:e,threads:V,annotations:U,hasDraftComment:!1,isLeftSide:!0,isSplit:!0,contextMenuOpen:J,setIsContextMenuOpen:Y,setIsActionBarVisible:X,nextHunk:eL,previousHunk:eD,shouldDisplayComments:h,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,filePath:r,toggleViewingMarkers:ru.l,viewerData:{avatarUrl:d??””,diffViewPreference:”split”,lineSpacingPreference:”compact”,login:c??””,shouldDisplayComments:h??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:f??!1,viewerCanApplySuggestion:u??!1}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”new-diff-line-number empty-diff-line”}),(0,i.jsx)(“td”,{className:”new-diff-line-number empty-diff-line”})]}),t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”new-diff-line-number”,”data-diff-side”:”right”,”data-diff-line-key”:t.key,”data-line-number”:t.right,”data-selected”:N,onMouseDown:s,onMouseEnter:o,style:{backgroundColor:L},children:t.right}),(0,i.jsxs)(“td”,{className:”diff-text-cell v-align-top”,”data-grid-cell-id”:w,”data-selected”:N,style:{backgroundColor:I},onMouseEnter:()=>eo(!0),onMouseLeave:()=>eo(!1),”aria-labelledby”:A?k:void 0,role:A?”dialog”:”gridcell”,ref:e=>{el?eN.current=e:eN.current=null},children:[A&&(0,i.jsx)(“h1″,{id:k,className:”sr-only”,children:”Comment view”}),(0,i.jsxs)(“code”,{className:(0,b.$)(“diff-text syntax-highlighted-line”,{addition:”ADDITION”===t.type,deletion:”DELETION”===t.type}),children:[M&&(0,i.jsx)(“span”,{className:”diff-text-marker”,children:$}),(0,i.jsx)(e2.$6,{html:F,className:”diff-text-inner”})]}),(ep||eb)&&h&&(0,i.jsx)(ip,{diffLine:t,gridCellId:w,shouldListenForEscapeKey:!0,gutterSizeOffset:ey,inlineMarkersRef:eC,cellRef:eN,fileAnchor:g,dispatchMarkersStatus:ru.l,lineMarkersKey:G,annotations:z,conversationListThreads:q,filePath:r,viewerData:H,onCloseFocusMode:ru.l,isRowSelected:!1,lineType:t.type,onCloseConversationList:()=>{er(!1),eg(!1),em(!1)},onDeleteLineComment:()=>{er(!1),eg(!1),em(!1)},children:ea&&(0,i.jsx)(“div”,{className:(0,b.$)(” border rounded-2 color-border-default”,”mt-2 mb-1″),children:(0,i.jsx)(nx,{diffLine:t,diffAnchor:g,batchingEnabled:!0,filePath:r,focusOnMount:!0,isLeftSide:!1,isInDialogMode:!1,isOpen:!0,shouldStartNewConversationWithSuggestedChange:eu,lineNumber:t.right??void 0,viewerData:H,onCloseCommentDialog:()=>{er(!1),eg(!1),em(!1)}})})}),(el||ed)&&(0,i.jsx)(rp,{openStartConversationDialog:e=>{em(e),er(!0),eg(!0)},authorAvatarUrl:d??””,authorLogin:c??””,ref:eN,copilotChatReference:void 0,currentHunk:eS,diffAnchor:g,diffLine:t,threads:q,contextMenuOpen:ed,setIsContextMenuOpen:ec,setIsActionBarVisible:eo,annotations:z,hasDraftComment:!1,isLeftSide:!1,isSplit:!0,nextHunk:eL,previousHunk:eD,filePath:r,shouldDisplayComments:h,shouldDisplayMinimizedComments:!1,shouldDisplayCollapseComments:!0,toggleViewingMarkers:ru.l,viewerData:{avatarUrl:d??””,diffViewPreference:”split”,lineSpacingPreference:”compact”,login:c??””,shouldDisplayComments:h??!0,shouldDisplayEditOptions:!0,tabSizePreference:8,viewerCanComment:f??!1,viewerCanApplySuggestion:u??!1}})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“td”,{className:”new-diff-line-number empty-diff-line”}),(0,i.jsx)(“td”,{className:”new-diff-line-number empty-diff-line”})]})]})})};try{rb.displayName||(rb.displayName=”SimpleSplitDiffRow”)}catch{}function rv(e){let t=[],n=[],i=()=>{for(;t.lengthrv(e),[e]);return{leftLines:t,rightLines:n}},rj=(0,l.memo)((0,a.GV)()?function(e){let t,n,a=(0,r.c)(14),{diffLines:s,filePath:l,avatarURL:o,userLogin:d,viewerCanApplySuggestion:c,handleMouseDownOnNumberCell:u,handleMouseEnterCell:m,viewerCanComment:f,shouldDisplayComments:h}=e,{leftLines:p,rightLines:g}=ry(s);a[0]!==s?(t=ts(s.map(rC)),a[0]=s,a[1]=t):t=a[1];let x=t;return a[2]!==o||a[3]!==l||a[4]!==u||a[5]!==m||a[6]!==x||a[7]!==p||a[8]!==g||a[9]!==h||a[10]!==d||a[11]!==c||a[12]!==f?(n=p.map((e,t)=>{let n=p[t],a=g[t],r=p[t-1],s=(0,T.Po)(p[t+1])?g[t+1]:p[t+1],b=`${(0,T.Po)(n)||!n?`empty-left-diff-${t}`:n.blobLineNumber}-${(0,T.Po)(a)||!a?`empty-right-diff-${t}`:a.blobLineNumber}`;return(0,i.jsx)(rb,{hunksData:x,leftDiffLine:n,rightDiffLine:a,prevDiffLine:r,nextDiffLine:s,filePath:l,handleMouseDownOnNumberCell:u,handleMouseEnterCell:m,avatarURL:o,userLogin:d,viewerCanApplySuggestion:c,viewerCanComment:f,shouldDisplayComments:h},b)}),a[2]=o,a[3]=l,a[4]=u,a[5]=m,a[6]=x,a[7]=p,a[8]=g,a[9]=h,a[10]=d,a[11]=c,a[12]=f,a[13]=n):n=a[13],n}:function({diffLines:e,filePath:t,avatarURL:n,userLogin:a,viewerCanApplySuggestion:r,handleMouseDownOnNumberCell:s,handleMouseEnterCell:l,viewerCanComment:o,shouldDisplayComments:d}){let{leftLines:c,rightLines:u}=ry(e),m=ts(e.map(e=>e));return c.map((e,f)=>{let h=c[f],p=u[f],g=c[f-1],x=(0,T.Po)(c[f+1])?u[f+1]:c[f+1],b=`${(0,T.Po)(h)||!h?`empty-left-diff-${f}`:h.blobLineNumber}-${(0,T.Po)(p)||!p?`empty-right-diff-${f}`:p.blobLineNumber}`;return(0,i.jsx)(rb,{hunksData:m,leftDiffLine:h,rightDiffLine:p,prevDiffLine:g,nextDiffLine:x,filePath:t,handleMouseDownOnNumberCell:s,handleMouseEnterCell:l,avatarURL:n,userLogin:a,viewerCanApplySuggestion:r,viewerCanComment:o,shouldDisplayComments:d},b)})});try{rj.displayName||(rj.displayName=”SimpleSplitDiffLines”)}catch{}function rC(e){return e}let rw=(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})},rN=(0,l.memo)((0,a.GV)()?function(e){let t,n=(0,r.c)(40),{diffEntryData:a,diffLinesManuallyUnhidden:s,baseHelpUrl:l,onHandleLoadDiff:o,copilotChatReference:d,hasExpandedAllRanges:c,isSplitView:u,subjectId:m,tableAriaLabel:f,viewerData:h}=e,p=`diff-${a.pathDigest}`;if(a.isBinary){let e;return n[0]!==p?(e=(0,i.jsx)(rw,{diffAnchor:p,children:”Binary file not shown.”}),n[0]=p,n[1]=e):e=n[1],e}if((0,e7.dK)(a)){let e;return n[2]!==p?(e=(0,i.jsx)(rw,{diffAnchor:p,children:”File renamed without changes.”}),n[2]=p,n[3]=e):e=n[3],e}if((0,e7.Jc)(a)){let e;return n[4]!==p?(e=(0,i.jsx)(rw,{diffAnchor:p,children:”File copied without changes.”}),n[4]=p,n[5]=e):e=n[5],e}if((0,e7.Sn)(a,a.status,a.oldTreeEntry?.mode,a.newTreeEntry?.mode)){let e;return n[6]!==p?(e=(0,i.jsx)(rw,{diffAnchor:p,children:”File mode changed.”}),n[6]=p,n[7]=e):e=n[7],e}if(!s&&(0,e7.HI)(a)){let e,t,r=a.truncatedReason;return n[8]!==r?(e=(0,e7.l_)(r),n[8]=r,n[9]=e):e=n[9],n[10]!==p||n[11]!==o||n[12]!==e?(t=(0,i.jsx)(tn,{diffAnchor:p,onLoadDiff:o,children:e}),n[10]=p,n[11]=o,n[12]=e,n[13]=t):t=n[13],t}if((0,e7.s8)(a)){let e;return n[14]!==p?(e=(0,i.jsx)(rw,{diffAnchor:p,children:”Whitespace-only changes.”}),n[14]=p,n[15]=e):e=n[15],e}if(!s&&(0,e7.lO)(a)){let e;return n[16]!==p||n[17]!==o?(e=(0,i.jsx)(tn,{diffAnchor:p,onLoadDiff:o,children:”This file was deleted.”}),n[16]=p,n[17]=o,n[18]=e):e=n[18],e}if(!s&&(0,e7.xW)(a)){let e,t=`${l}/github/administering-a-repository/customizing-how-changed-files-appear-on-github`;return n[19]!==p||n[20]!==o||n[21]!==t?(e=(0,i.jsxs)(tn,{diffAnchor:p,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]=p,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)(e9.A,{inline:!0,href:a,children:”check out this pull request locally.”}),n[23]=a,n[24]=e):e=n[24],n[25]!==p||n[26]!==e?(t=(0,i.jsxs)(rw,{diffAnchor:p,children:[“Diff is too big to render. To view,”,” “,e]}),n[25]=p,n[26]=e,n[27]=t):t=n[27],t}else{let e;return n[28]!==p||n[29]!==o?(e=(0,i.jsx)(tn,{diffAnchor:p,onLoadDiff:o,children:”Large diffs are not rendered by default.”}),n[28]=p,n[29]=o,n[30]=e):e=n[30],e}return a.diffLines?(n[31]!==d||n[32]!==p||n[33]!==a||n[34]!==c||n[35]!==u||n[36]!==m||n[37]!==f||n[38]!==h?(t=(0,i.jsx)(rS,{diffAnchor:p,diffEntryData:a,viewerData:h,copilotChatReference:d,hasExpandedAllRanges:c,isSplitView:u,subjectId:m,tableAriaLabel:f}),n[31]=d,n[32]=p,n[33]=a,n[34]=c,n[35]=u,n[36]=m,n[37]=f,n[38]=h,n[39]=t):t=n[39],t):null}:function({diffEntryData:e,diffLinesManuallyUnhidden:t,baseHelpUrl:n,onHandleLoadDiff:a,copilotChatReference:r,hasExpandedAllRanges:s,isSplitView:l,subjectId:o,tableAriaLabel:d,viewerData:c}){let u=`diff-${e.pathDigest}`;if(e.isBinary)return(0,i.jsx)(rw,{diffAnchor:u,children:”Binary file not shown.”});if((0,e7.dK)(e))return(0,i.jsx)(rw,{diffAnchor:u,children:”File renamed without changes.”});if((0,e7.Jc)(e))return(0,i.jsx)(rw,{diffAnchor:u,children:”File copied without changes.”});if((0,e7.Sn)(e,e.status,e.oldTreeEntry?.mode,e.newTreeEntry?.mode))return(0,i.jsx)(rw,{diffAnchor:u,children:”File mode changed.”});if(!t&&(0,e7.HI)(e))return(0,i.jsx)(tn,{diffAnchor:u,onLoadDiff:a,children:(0,e7.l_)(e.truncatedReason)});if((0,e7.s8)(e))return(0,i.jsx)(rw,{diffAnchor:u,children:”Whitespace-only changes.”});if(!t&&(0,e7.lO)(e))return(0,i.jsx)(tn,{diffAnchor:u,onLoadDiff:a,children:”This file was deleted.”});if(!t&&(0,e7.xW)(e))return(0,i.jsxs)(tn,{diffAnchor:u,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)(rw,{diffAnchor:u,children:[“Diff is too big to render. To view,”,” “,(0,i.jsx)(e9.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)(tn,{diffAnchor:u,onLoadDiff:a,children:”Large diffs are not rendered by default.”});return e.diffLines?(0,i.jsx)(rS,{diffAnchor:u,diffEntryData:e,viewerData:c,copilotChatReference:r,hasExpandedAllRanges:s,isSplitView:l,subjectId:o,tableAriaLabel:d}):null}),rS=(0,a.GV)()?function(e){let t,n,a,s,d,c,u,m,f,h,p,g,x,y,j,C,w,N,S=(0,r.c)(73),{diffAnchor:L,viewerData:D,diffEntryData:I,copilotChatReference:k,hasExpandedAllRanges:R,isSplitView:A,subjectId:T,tableAriaLabel:O}=e,P=(0,l.useRef)(null),{clearSelectedLines:F}=el(),[M,B]=(0,l.useState)(null),[V,U]=(0,l.useState)(!1),H=I.newTreeEntry?.lineCount??I.oldTreeEntry?.lineCount??0;S[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,te.G7)(“pr_simple_diffs”),S[0]=t):t=S[0];let G=t;e:{let e=I.diffLines[I.diffLines.length-1];if(e?.blobLineNumber&&e.blobLineNumber{!Z&&W()&&(F(),eI())},s=[F,W,Z],S[4]=F,S[5]=W,S[6]=Z,S[7]=a,S[8]=s):(a=S[7],s=S[8]),(0,l.useEffect)(a,s),S[9]!==q?(d=(0,E.c7)(q),S[9]=q,S[10]=d):d=S[10];let Q=d;S[11]===Symbol.for(“react.memo_cache_sentinel”)?(c=e=>{B(e)},S[11]=c):c=S[11];let ee=c;S[12]!==I.path||S[13]!==R?(u=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=”${I.path}”]`);e?.dispatchEvent(new MouseEvent(“click”,{bubbles:!0,cancelable:!0}))}},S[12]=I.path,S[13]=R,S[14]=u):u=S[14];let et=u;S[15]!==M||S[16]!==A?(m=e=>{let t=document.getSelection();if(t){let n=[];for(let e=0;e{let t=e.target,n=t.getAttribute(“data-diff-line-key”),i=t.getAttribute(“data-diff-side”);if(!$(n)||!(0,o.e)(i))return;if(er()&&e.shiftKey)return void es({lineKey:n,orientation:i},e_);let a=t.getAttribute(“data-line-number”);a&&(eo({lineKey:n,firstLineSelectionOnDrag:{orientation:i,lineNumber:parseInt(a),shouldStartConversation:!1,lineKey:n}},e_),ed(I.pathDigest))},S[30]=es,S[31]=I.pathDigest,S[32]=er,S[33]=eo,S[34]=ed,S[35]=p):p=S[35];let ec=p,eu=X();S[36]!==es||S[37]!==eu?(g=e=>{if(1!==e.buttons)return;let t=e.target,n=t.getAttribute(“data-diff-line-key”),i=t.getAttribute(“data-diff-side”);$(n)&&(0,o.e)(i)&&eu()&&es({lineKey:n,orientation:i},e_)},S[36]=es,S[37]=eu,S[38]=g):g=S[38];let em=g;S[39]!==ei||S[40]!==V?(x=ei&&(0,i.jsx)(rc.a,{isShown:V,toggleShowHiddenCharacters:()=>U(!V)}),S[39]=ei,S[40]=V,S[41]=x):x=S[41];let ef=”compact”===z;S[42]!==ef?(y=(0,b.$)(“tab-size”,”width-full”,ro,{[rd]:ef}),S[42]=ef,S[43]=y):y=S[43];let eh=`${Q}px`,ep=`${2*parseFloat(Q)}px`;return S[44]!==eh||S[45]!==ep?(j={“–line-number-cell-width”:eh,”–line-number-cell-width-unified”:ep},S[44]=eh,S[45]=ep,S[46]=j):j=S[46],S[47]!==I.path||S[48]!==q||S[49]!==ea||S[50]!==ec||S[51]!==em||S[52]!==A||S[53]!==Q||S[54]!==D.avatarUrl||S[55]!==D.login||S[56]!==D.shouldDisplayComments||S[57]!==D.viewerCanApplySuggestion||S[58]!==D.viewerCanComment?(C=A?(0,i.jsx)(e8.wj,{lineWidth:Q,children:G?(0,i.jsx)(rj,{diffLines:q,filePath:I.path,handleMouseDownOnNumberCell:ec,handleMouseEnterCell:em,avatarURL:D.avatarUrl,userLogin:D.login,viewerCanApplySuggestion:D.viewerCanApplySuggestion,viewerCanComment:D.viewerCanComment,shouldDisplayComments:D.shouldDisplayComments}):(0,i.jsx)(ra,{…ea})}):(0,i.jsx)(e8.Qe,{lineWidth:Q,children:G?(0,i.jsx)(rx,{diffLines:q,filePath:I.path,handleMouseDownOnNumberCell:ec,handleMouseEnterCell:em,avatarURL:D.avatarUrl,userLogin:D.login,viewerCanApplySuggestion:D.viewerCanApplySuggestion,viewerCanComment:D.viewerCanComment,shouldDisplayComments:D.shouldDisplayComments}):(0,i.jsx)(rs,{…ea})}),S[47]=I.path,S[48]=q,S[49]=ea,S[50]=ec,S[51]=em,S[52]=A,S[53]=Q,S[54]=D.avatarUrl,S[55]=D.login,S[56]=D.shouldDisplayComments,S[57]=D.viewerCanApplySuggestion,S[58]=D.viewerCanComment,S[59]=C):C=S[59],S[60]!==L||S[61]!==M||S[62]!==et||S[63]!==en||S[64]!==y||S[65]!==j||S[66]!==C||S[67]!==K||S[68]!==O?(w=(0,i.jsx)(“table”,{“aria-label”:O,onKeyDown:et,ref:P,className:y,”data-block-diff-cell-selection”:M,”data-diff-anchor”:L,”data-tab-size”:K,”data-paste-markdown-skip”:!0,onCopy:en,role:”grid”,style:j,children:C}),S[60]=L,S[61]=M,S[62]=et,S[63]=en,S[64]=y,S[65]=j,S[66]=C,S[67]=K,S[68]=O,S[69]=w):w=S[69],S[70]!==x||S[71]!==w?(N=(0,i.jsxs)(i.Fragment,{children:[x,w]}),S[70]=x,S[71]=w,S[72]=N):N=S[72],N}:function({diffAnchor:e,viewerData:t,diffEntryData:n,copilotChatReference:a,hasExpandedAllRanges:r,isSplitView:s,subjectId:d,tableAriaLabel:c}){let u=(0,l.useRef)(null),{clearSelectedLines:m}=el(),[f,h]=(0,l.useState)(null),[p,g]=(0,l.useState)(!1),x=n.newTreeEntry?.lineCount??n.oldTreeEntry?.lineCount??0,y=(0,te.G7)(“pr_simple_diffs”),j=(0,l.useMemo)(()=>{let e=n.diffLines[n.diffLines.length-1];return e?.blobLineNumber&&e.blobLineNumber{!S&&N()&&(m(),eI())},[m,N,S]);let L=(0,E.c7)(j),D=(0,l.useCallback)(e=>{h(e)},[h]),I=(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]),k=(0,l.useCallback)(e=>{let t=document.getSelection();if(t){let n=[];for(let e=0;ej.some(e=>(0,tX.Y)(e.text)),[j]),A={diffHasHiddenUnicodeCharacters:R,diffLines:j,fileAnchor:e,fileLineCount:x,filePath:n.path,handleDiffSideCellSelectionBlocking:D,showHiddenUnicode:p,tableRef:u,copilotChatReference:a,subjectId:d,viewerData:t},T=J(),{addLineToSelection:O,selectLine:P}=el(),F=(0,_.gW)(),M=(0,l.useCallback)(e=>{let t=e.target,i=t.getAttribute(“data-diff-line-key”),a=t.getAttribute(“data-diff-side”);if(!$(i)||!(0,o.e)(a))return;if(T()&&e.shiftKey)return void O({lineKey:i,orientation:a},e_);let r=t.getAttribute(“data-line-number”);r&&(P({lineKey:i,firstLineSelectionOnDrag:{orientation:a,lineNumber:parseInt(r),shouldStartConversation:!1,lineKey:i}},e_),F(n.pathDigest))},[O,n.pathDigest,T,P,F]),B=X(),V=(0,l.useCallback)(e=>{if(1!==e.buttons)return;let t=e.target,n=t.getAttribute(“data-diff-line-key”),i=t.getAttribute(“data-diff-side”);$(n)&&(0,o.e)(i)&&B()&&O({lineKey:n,orientation:i},e_)},[B,O]);return(0,i.jsxs)(i.Fragment,{children:[R&&(0,i.jsx)(rc.a,{isShown:p,toggleShowHiddenCharacters:()=>g(!p)}),(0,i.jsx)(“table”,{“aria-label”:c,onKeyDown:I,ref:u,className:(0,b.$)(“tab-size”,”width-full”,ro,{[rd]:”compact”===C}),”data-block-diff-cell-selection”:f,”data-diff-anchor”:e,”data-tab-size”:w,”data-paste-markdown-skip”:!0,onCopy:k,role:”grid”,style:{“–line-number-cell-width”:`${L}px`,”–line-number-cell-width-unified”:`${2*parseFloat(L)}px`},children:s?(0,i.jsx)(e8.wj,{lineWidth:L,children:y?(0,i.jsx)(rj,{diffLines:j,filePath:n.path,handleMouseDownOnNumberCell:M,handleMouseEnterCell:V,avatarURL:t.avatarUrl,userLogin:t.login,viewerCanApplySuggestion:t.viewerCanApplySuggestion,viewerCanComment:t.viewerCanComment,shouldDisplayComments:t.shouldDisplayComments}):(0,i.jsx)(ra,{…A})}):(0,i.jsx)(e8.Qe,{lineWidth:L,children:y?(0,i.jsx)(rx,{diffLines:j,filePath:n.path,handleMouseDownOnNumberCell:M,handleMouseEnterCell:V,avatarURL:t.avatarUrl,userLogin:t.login,viewerCanApplySuggestion:t.viewerCanApplySuggestion,viewerCanComment:t.viewerCanComment,shouldDisplayComments:t.shouldDisplayComments}):(0,i.jsx)(rs,{…A})})})]})};function rL(e){return(0,tX.Y)(e.text)}try{rw.displayName||(rw.displayName=”PlainTextStatus”)}catch{}try{rN.displayName||(rN.displayName=”DiffLines”)}catch{}try{rS.displayName||(rS.displayName=”CodeDiffLines”)}catch{}var rD=n(8431),rI=n(46251),r_=n(78049);let rk=”SubmoduleDiff-module__filesActionList–sbPQt”,rR=”SubmoduleDiff-module__fileRowLinkItem–Z1ES5″,rA=”SubmoduleDiff-module__path–hB1wm”,rE=”SubmoduleDiff-module__fileRow–Y9n2E”,rT=”SubmoduleDiff-module__linesAdded–tJqtP”,rO=”SubmoduleDiff-module__linesDeleted–nr9cp”,rP=(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,y=u.summary.length>0&&u.contentsUrl&&”MODIFIED”===x;switch(x){case”ADDED”:{let e;d[0]!==h||d[1]!==p?(e=(0,i.jsx)(rM,{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)(rM,{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)(rB,{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 j=t,C=`px-3 py-2 ${y?”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)(rF,{basePath:m,submoduleUrl:b}),d[12]=m,d[13]=b,d[14]=a):a=d[14],d[15]!==j||d[16]!==C||d[17]!==a?(s=(0,i.jsxs)(“div”,{className:C,children:[n,a,j]}),d[15]=j,d[16]=C,d[17]=a,d[18]=s):s=d[18],d[19]!==h||d[20]!==p||d[21]!==g||d[22]!==y||d[23]!==u.summary?(l=y&&(0,i.jsx)(eU.l,{className:rk,showDividers:!0,variant:”full”,children:u.summary.map(e=>(0,i.jsx)(rV,{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]=y,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)(rM,{commitOid:r,contentsUrl:a,type:”added”});case”DELETED”:case”REMOVED”:return(0,i.jsx)(rM,{commitOid:s,contentsUrl:a,type:”deleted”});default:return(0,i.jsx)(rB,{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)(rF,{basePath:t,submoduleUrl:d}),m]}),u&&(0,i.jsx)(eU.l,{className:rk,showDividers:!0,variant:”full”,children:e.summary.map(e=>(0,i.jsx)(rV,{compareUrl:`${a}/compare/${s}…${r}`,linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,path:e.path,pathDigest:e.pathDigest,status:e.status},e.pathDigest))})]})},rF=(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)(e9.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)(e9.A,{inline:!0,href:t,children:e}):e,” “]})};function r$(e){return e.slice(0,7)}let rM=(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=r$(l),t[0]=l,t[1]=e):e=t[1],t[2]!==s||t[3]!==e?(n=(0,i.jsx)(e9.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=r$(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)(e9.A,{inline:!0,href:`${t}/tree/${e}`,children:r$(e)})]}):(0,i.jsxs)(i.Fragment,{children:[a,” “,r$(e)]})},rB=(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 ${r$(m)} to ${r$(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)(e9.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 ${r$(t)} to ${r$(e)}`;return(0,i.jsxs)(i.Fragment,{children:[“updated”,” “,a?(0,i.jsx)(e9.A,{inline:!0,href:`${a}/compare/${t}…${e}`,children:r}):r]})},rV=(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)(r_.E,{status:g}),c[0]=g,c[1]=t):t=c[1],c[2]!==h?(n=(0,i.jsx)(“span”,{className:rA,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:rT,children:m>0&&(0,i.jsxs)(s.C,{isAddition:!0,children:[“+”,rU(m)]})}),(0,i.jsx)(“div”,{className:rO,children:f>0&&(0,i.jsxs)(s.C,{isAddition:!1,children:[“-“,rU(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)(rI.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rE,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)(eU.l.LinkItem,{href:x,className:rR,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)(eU.l.LinkItem,{href:`${e}#diff-${r}`,className:rR,children:(0,i.jsxs)(rI.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rE,children:[(0,i.jsx)(r_.E,{status:l}),(0,i.jsxs)(“div”,{className:”d-flex gap-1 flex-justify-between width-full”,children:[(0,i.jsx)(“span”,{className:rA,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:rT,children:t>0&&(0,i.jsxs)(s.C,{isAddition:!0,children:[“+”,rU(t)]})}),(0,i.jsx)(“div”,{className:rO,children:n>0&&(0,i.jsxs)(s.C,{isAddition:!1,children:[“-“,rU(n)]})})]})]})]})})};function rU(e){return e>999?`${(e/1e3).toFixed(1)}k`:e.toLocaleString()}try{rP.displayName||(rP.displayName=”SubmoduleDiff”)}catch{}try{rF.displayName||(rF.displayName=”SubmodulePath”)}catch{}try{rM.displayName||(rM.displayName=”SubmoduleCommitChange”)}catch{}try{rB.displayName||(rB.displayName=”SubmoduleModified”)}catch{}try{rV.displayName||(rV.displayName=”SubmoduleFileRow”)}catch{}let rH=({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,rG=({newCommitOid:e,newTreeEntry:t,oldCommitOid:n,oldTreeEntry:i,path:a,pathDigest:r,repository:s})=>{let l=n&&e?(0,n7.IO9)({repo:s,commitish:n,action:”raw”,path:a}):””;return{baseFile:rq({path:i?.path,oid:n,repository:s}),headFile:rq({path:t?.path,oid:e,repository:s}),baseBranchRef:n,id:`#diff-${r}`,type:”file-diff”,url:l}},rq=({path:e,oid:t,repository:n})=>e&&t?{type:”file”,url:(0,n7.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,rz=(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(!rH({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=rG({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(rH({isBinary:e,isSubmodule:t,path:n,status:i,repository:a,hasCopilotAccess:u}))return rG({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])},rK=”FileReviewThread-module__ReviewThreadContainer–InwxI”,rW=”FileReviewThread-module__ReviewThreadHeading–oFg3s”,rZ=”FileReviewThread-module__ReviewThreadInnerContainer–jYE3S”,rQ=”FileReviewThread-module__SpinnerWrapper–zQOoj”,rX=(0,a.GV)()?function(e){let t,n,a,s,d,u,f,h,p,g,x,y,j,C,w,N,S,L,D,I,_,k,R,A,E,T,O=(0,r.c)(69);if(O[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,O[0]=e,O[1]=t,O[2]=n,O[3]=a,O[4]=s,O[5]=d}else t=O[1],n=O[2],a=O[3],s=O[4],d=O[5];let P=(0,l.useRef)(null);O[6]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,nV.A)(“localStorage”),O[6]=u):u=O[6];let F=u,$=d?.isResolved,[M,B]=(0,l.useState)(“”),[V,U]=(0,l.useState)($??!1);O[7]!==$||O[8]!==d.id?(f=()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${d.id}`);null!==e?U(JSON.parse(e)):$&&U(!0)},h=[$,d.id],O[7]=$,O[8]=d.id,O[9]=f,O[10]=h):(f=O[9],h=O[10]),(0,l.useEffect)(f,h),O[11]!==V||O[12]!==d.id?(p=()=>{window.requestAnimationFrame(()=>{F.setItem(`reviewThreadIsCollapsed_${d.id}`,JSON.stringify(!V))}),U(rY)},O[11]=V,O[12]=d.id,O[13]=p):p=O[13];let H=p,{sendAnalyticsEvent:G}=(0,tJ.s)(),{mutate:q}=(0,n5.H)(t,o.zW);O[14]!==q||O[15]!==G||O[16]!==d?(g=()=>{d&&!d.isResolved&&(q({threadId:d.id},{onError:()=>B(“Failed to resolve thread”),onSuccess:()=>{U(!0),F.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),G(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},O[14]=q,O[15]=G,O[16]=d,O[17]=g):g=O[17];let z=g,{mutate:K}=(0,n6.i)(t,o.zW);O[18]!==G||O[19]!==d||O[20]!==K?(x=()=>{d&&(K({threadId:d.id},{onError:()=>B(“Failed to unresolve thread”),onSuccess:()=>{U(!1),F.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),G(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},O[18]=G,O[19]=d,O[20]=K,O[21]=x):x=O[21];let W=x;if(!d||!(d.commentsData?.comments&&d.commentsData.comments.length>0))return null;let Z=d?.commentsData?.comments[0]?.reviewVariantType===nD.hH.Automated?d.commentsData?.comments[0]?.automatedComment:null,Q=Z&&Z.dismissable,X=Z&&Z.source===nD.vk.LicenseCompliance,J=!!d.isResolved;O[22]===Symbol.for(“react.memo_cache_sentinel”)?(y=(0,n8.M3)(),O[22]=y):y=O[22];let Y=y;O[23]!==d.commentsData?.comments?(j=Y&&d.commentsData?.comments?.some(rJ),O[23]=d.commentsData?.comments,O[24]=j):j=O[24];let ee=j,et=d.commentsData?.comments[0]?.createdAt,en=d.commentsData?.comments[0]?.author?.login??”Unknown Author”,ei=`${$?”Unresolve”:”Resolve”} comment`;if(et){let e;O[25]!==et?(e=(0,nM.C)(new Date(et)),O[25]=et,O[26]=e):e=O[26];let t=e;ei=`${$?”Unresolve”:”Resolve”} ${en}’s comment, ${t}`}O[27]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,i.jsx)(nq,{}),O[27]=C):C=O[27],O[28]===Symbol.for(“react.memo_cache_sentinel”)?(w=(0,b.$)(“px-1″,rK),O[28]=w):w=O[28];let ea=V?”Expand comment”:”Collapse comment”,er=V?c.ChevronRightIcon:c.ChevronDownIcon;return O[29]!==H||O[30]!==a||O[31]!==ea||O[32]!==er?(N=(0,i.jsx)(m.K,{“aria-label”:ea,icon:er,size:”small”,variant:”invisible”,onClick:H,”data-is-first-collapse-button”:a}),O[29]=H,O[30]=a,O[31]=ea,O[32]=er,O[33]=N):N=O[33],O[34]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,i.jsx)(“h2″,{className:rW,children:”Comment on file”}),O[34]=S):S=O[34],O[35]!==d.positioning?.isOutdated?(L=d.positioning?.isOutdated&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Outdated”}),O[35]=d.positioning?.isOutdated,O[36]=L):L=O[36],O[37]!==J?(D=J&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Resolved”}),O[37]=J,O[38]=D):D=O[38],O[39]!==L||O[40]!==D?(I=(0,i.jsxs)(“div”,{className:rZ,children:[L,D]}),O[39]=L,O[40]=D,O[41]=I):I=O[41],O[42]!==N||O[43]!==I?(_=(0,i.jsxs)(“div”,{className:w,children:[N,S,I]}),O[42]=N,O[43]=I,O[44]=_):_=O[44],O[45]===Symbol.for(“react.memo_cache_sentinel”)?(k=(0,i.jsxs)(“div”,{className:rQ,children:[(0,i.jsx)(e3.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),O[45]=k):k=O[45],O[46]!==M?(R=M&&(0,i.jsxs)(nH.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),M]}),O[46]=M,O[47]=R):R=O[47],O[48]!==Z||O[49]!==Q||O[50]!==t||O[51]!==n||O[52]!==z||O[53]!==W||O[54]!==V||O[55]!==ee||O[56]!==$||O[57]!==J||O[58]!==X||O[59]!==ei||O[60]!==s||O[61]!==d?(A=!V&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n4,{lineMarkersKey:o.zW,batchingEnabled:!0,filePath:t,gridCellId:`${t}-file-level-markers`,isInlineComment:!1,thread:d,shouldLimitHeight:!1,…s,ghostUser:n}),ee&&!Q&&!X&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eO.Q,{“aria-label”:ei,onClick:J?W:z,className:”mr-2″,children:$?”Unresolve comment”:”Resolve comment”}),J&&d.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:d.resolvedBy}),” marked this comment as resolved”]})]}),Q&&(0,i.jsx)(ia,{automatedComment:Z,thread:d,filePath:t,lineMarkersKey:o.zW,setErrorMessage:B,setIsCollapsed:U,safeLocalStorage:F})]}),O[48]=Z,O[49]=Q,O[50]=t,O[51]=n,O[52]=z,O[53]=W,O[54]=V,O[55]=ee,O[56]=$,O[57]=J,O[58]=X,O[59]=ei,O[60]=s,O[61]=d,O[62]=A):A=O[62],O[63]!==R||O[64]!==A?(E=(0,i.jsxs)(l.Suspense,{fallback:k,children:[R,A]}),O[63]=R,O[64]=A,O[65]=E):E=O[65],O[66]!==_||O[67]!==E?(T=(0,i.jsx)(nB.t,{fallback:C,children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:P,children:[_,E]})}),O[66]=_,O[67]=E,O[68]=T):T=O[68],T}:function({fileAnchor:e,filePath:t,thread:n,isFirstThread:a,ghostUser:r,manuallyUpdateCommentsWithThisThreadId:s,…d}){let u=(0,l.useRef)(null),f=(0,nV.A)(“localStorage”),h=n?.isResolved,[p,g]=(0,l.useState)(“”),[x,y]=(0,l.useState)(h??!1);(0,l.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${n.id}`);null!==e?y(JSON.parse(e)):h&&y(!0)},[h,n.id]);let{sendAnalyticsEvent:j}=(0,tJ.s)(),{mutate:C}=(0,n5.H)(t,o.zW),{mutate:w}=(0,n6.i)(t,o.zW);if(!n||!(n.commentsData?.comments&&n.commentsData.comments.length>0))return null;let N=n?.commentsData?.comments[0]?.reviewVariantType===nD.hH.Automated?n.commentsData?.comments[0]?.automatedComment:null,S=N&&N.dismissable,L=N&&N.source===nD.vk.LicenseCompliance,D=!!n.isResolved,I=(0,n8.M3)()&&n.commentsData?.comments?.some(e=>e.state?.toUpperCase()!==”PENDING”),_=n.commentsData?.comments[0]?.createdAt,k=n.commentsData?.comments[0]?.author?.login??”Unknown Author”,R=`${h?”Unresolve”:”Resolve”} comment`;if(_){let e=(0,nM.C)(new Date(_));R=`${h?”Unresolve”:”Resolve”} ${k}’s comment, ${e}`}return(0,i.jsx)(nB.t,{fallback:(0,i.jsx)(nq,{}),children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:u,children:[(0,i.jsxs)(“div”,{className:(0,b.$)(“px-1”,rK),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))}),y(e=>!e)},”data-is-first-collapse-button”:a}),(0,i.jsx)(“h2″,{className:rW,children:”Comment on file”}),(0,i.jsxs)(“div”,{className:rZ,children:[n.positioning?.isOutdated&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Outdated”}),D&&(0,i.jsx)(nU.A,{variant:”secondary”,children:”Resolved”})]})]}),(0,i.jsxs)(l.Suspense,{fallback:(0,i.jsxs)(“div”,{className:rQ,children:[(0,i.jsx)(e3.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),children:[p&&(0,i.jsxs)(nH.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)(n4,{lineMarkersKey:o.zW,batchingEnabled:!0,filePath:t,gridCellId:`${t}-file-level-markers`,isInlineComment:!1,thread:n,shouldLimitHeight:!1,…d,ghostUser:r}),I&&!S&&!L&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eO.Q,{“aria-label”:R,onClick:D?()=>{n&&(w({threadId:n.id},{onError:()=>g(“Failed to unresolve thread”),onSuccess:()=>{y(!1),f.removeItem(`reviewThreadIsCollapsed_${n.id}`)}}),j(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))}:()=>{n&&!n.isResolved&&(C({threadId:n.id},{onError:()=>g(“Failed to resolve thread”),onSuccess:()=>{y(!0),f.removeItem(`reviewThreadIsCollapsed_${n.id}`)}}),j(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},className:”mr-2″,children:h?”Unresolve comment”:”Resolve comment”}),D&&n.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:n.resolvedBy}),” marked this comment as resolved”]})]}),S&&(0,i.jsx)(ia,{automatedComment:N,thread:n,filePath:t,lineMarkersKey:o.zW,setErrorMessage:g,setIsCollapsed:y,safeLocalStorage:f})]})]})]})})};function rJ(e){return e.state?.toUpperCase()!==”PENDING”}function rY(e){return!e}try{rX.displayName||(rX.displayName=”FileReviewThread”)}catch{}let r0=(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],ny(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)(rX,{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:nF,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 ny({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:nF,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)(rX,{viewerData:r.viewerData,filePath:t,thread:n,ghostUser:a},n.id)},`review-thread-${n.id}`))})})};try{r0.displayName||(r0.displayName=”FileMarkers”)}catch{}let r1=new Set,r2=”b:0-l:null-r:null”;function r3(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 r4=(0,a.GV)()?function(e){let t,n,a,d,u,m,f,h,p,x,y,j,C,w,N,S,L,D,I,k,R,A,E=(0,r.c)(140),{ref:T,addFileCommentButtonRef:O,collapsed:P,currentUser:F,diffLines:$,diffManuallyExpanded:M,diffSize:B,helpUrl:V,estimatedDiffHeight:U,fileComments:H,headerStickyOffset:G,hiddenFeatures:q,isAddingFileComment:K,isBinary:W,isSelected:Z,isSubmodule:Q,isTooBig:X,leftSideContent:J,linesAdded:Y,linesChanged:ee,linesDeleted:et,newTreeEntry:en,newCommitOid:ei,objectId:ea,oldTreeEntry:er,oldCommitOid:es,onToggleCollapse:el,path:eo,pathDigest:ed,pullRequestGlobalRelayId:ec,repository:eu,richDiffState:em,rightSideContent:ef,setIsAddingFileComment:eh,hasExpandedAllRanges:ep,expandAllContextLines:eg,canExpandOrCollapseLines:ex,status:eb,submodule:ev,truncatedReason:ey,addInjectedContextLines:ej,loadDiff:eC}=e,ew=void 0===U?0:U,eN=void 0===q?r1:q,eS=void 0!==Z&&Z,eL=Q&&!!ev,eD=!eL&&!em?.showRichDiff,[eI,e_]=(0,l.useState)(M),ek=(0,_.j5)(),{comparisonView:eR}=(0,_.L3)();E[0]!==$?(t=$.map(r5),E[0]=$,E[1]=t):t=E[1];let eA=t;E[2]!==F.hasCopilotAccess||E[3]!==W||E[4]!==Q||E[5]!==ei||E[6]!==en||E[7]!==es||E[8]!==er||E[9]!==eo||E[10]!==ed||E[11]!==eu||E[12]!==eb?(n={isBinary:W,isSubmodule:Q,path:eo,status:eb,repository:eu,newCommitOid:ei,newTreeEntry:en,oldCommitOid:es,oldTreeEntry:er,pathDigest:ed,hasCopilotAccess:F.hasCopilotAccess},E[2]=F.hasCopilotAccess,E[3]=W,E[4]=Q,E[5]=ei,E[6]=en,E[7]=es,E[8]=er,E[9]=eo,E[10]=ed,E[11]=eu,E[12]=eb,E[13]=n):n=E[13];let eE=rz(n);E[14]!==eC?(a=async()=>{await eC(),e_(!0)},E[14]=eC,E[15]=a):a=E[15];let eT=a,{baseOid:eO,headOid:eP}=(0,_.E4)(),eF=(0,eQ.u)(“cotd_ui”);E[16]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,te.G7)(“pr_simple_diffs”),E[16]=d):d=E[16];let e$=d,{effectiveRange:eM}=(0,_.L3)(),{mutate:eB}=nt();E[17]!==eh?(u=()=>{eh(!0)},E[17]=eh,E[18]=u):u=E[18];let eV=u;E[19]!==eV?(m={F0:{startNewComment:eV,diffLineKey:r2}},E[19]=eV,E[20]=m):m=E[20];let eU=m;E[21]!==eF||E[22]!==eB||E[23]!==eM||E[24]!==eP||E[25]!==eo||E[26]!==eh||E[27]!==eO?(f=e=>{let{onCompleted:t,onError:n,submitBatch:i,text:a}=e;eF?eB(new ReviewCommentFactory({filePath:eo,effectiveDiffRange:eM,submitBatch:i,text:a}).fileRequestData(),{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment.databaseId),eh(!1)}}):eB({text:a,path:eo,submitBatch:i,subjectType:o.Wr.File,comparisonEndOid:eP,comparisonStartOid:eO},{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment.databaseId),eh(!1)}})},E[21]=eF,E[22]=eB,E[23]=eM,E[24]=eP,E[25]=eo,E[26]=eh,E[27]=eO,E[28]=f):f=E[28];let eH=f;E[29]!==O||E[30]!==eh?(h=()=>{eh(!1),O?.current?.focus()},E[29]=O,E[30]=eh,E[31]=h):h=E[31];let eG=h,eq=F?.avatarURL??””,ez=F?.splitPreference,eK=F?.login??””,eW=F?.lineSpacing,eZ=F?.shouldDisplayComments,eX=F?.shouldDisplayEditOptions,eY=F?.tabSize??4,e0=F?.canComment,e1=F?.canApplySuggestion;E[32]!==eq||E[33]!==ez||E[34]!==eK||E[35]!==eW||E[36]!==eZ||E[37]!==eX||E[38]!==eY||E[39]!==e0||E[40]!==e1?(p={avatarUrl:eq,diffViewPreference:ez,login:eK,lineSpacingPreference:eW,shouldDisplayComments:eZ,shouldDisplayEditOptions:eX,tabSizePreference:eY,viewerCanComment:e0,viewerCanApplySuggestion:e1},E[32]=eq,E[33]=ez,E[34]=eK,E[35]=eW,E[36]=eZ,E[37]=eX,E[38]=eY,E[39]=e0,E[40]=e1,E[41]=p):p=E[41];let e2=p,e3=(0,l.useId)(),e4=`heading-${e3}`;e:{if(“split”===new URLSearchParams(g.cg?.location.search).get(“diff”)){x=!0;break e}x=”split”===F.splitPreference}let e5=x,e7=en?.lineCount??er?.lineCount??0;er?.path,en?.path;t:{let e,t=er?.path,n=en?.path;if(!t&&!n){y=void 0;break t}e=”RENAMED”===eb?`${t} renamed to ${n}`:”DELETED”===eb||”REMOVED”===eb?t:n,y=`Diff for: ${e}`}let e8=y;E[42]!==eA||E[43]!==W||E[44]!==X||E[45]!==ee||E[46]!==ei||E[47]!==en||E[48]!==ea||E[49]!==es||E[50]!==er||E[51]!==eo||E[52]!==ed||E[53]!==eb||E[54]!==ey?(j={diffLines:eA,isBinary:W,isTooBig:X,linesChanged:ee,newTreeEntry:en,newCommitOid:ei,objectId:ea,oldTreeEntry:er,oldCommitOid:es,path:eo,pathDigest:ed,status:eb,truncatedReason:ey},E[42]=eA,E[43]=W,E[44]=X,E[45]=ee,E[46]=ei,E[47]=en,E[48]=ea,E[49]=es,E[50]=er,E[51]=eo,E[52]=ed,E[53]=eb,E[54]=ey,E[55]=j):j=E[55];let e9=j,tt=`diff-${ed}`,tn=`diff-${ed}`;E[56]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,b.$)(rD.A.diffTargetable,rD.A.diff),E[56]=C):C=E[56];let ti=`${ed}_${eA.length}`;E[57]!==ew?(w=e$?{contentVisibility:”auto”,containIntrinsicSize:`auto ${ew}px`}:void 0,E[57]=ew,E[58]=w):w=E[58];let ta=`${void 0===G?0:G}px`;E[59]!==ta?(N={“–header-sticky-offset”:ta},E[59]=ta,E[60]=N):N=E[60];let tr=`#diff-${ed}`,ts=em?.richDiff?.canToggleRichDiff,tl=en?.mode,to=en?.path,td=er?.mode,tc=er?.path;E[61]!==P||E[62]!==el?(S=e=>el(e,!P),E[61]=P,E[62]=el,E[63]=S):S=E[63];let tu=em?.onToggleRichDiff,tm=em?.showRichDiff;return E[64]!==ex||E[65]!==P||E[66]!==B||E[67]!==eg||E[68]!==ep||E[69]!==e4||E[70]!==eN||E[71]!==W||E[72]!==ek||E[73]!==J||E[74]!==Y||E[75]!==ee||E[76]!==et||E[77]!==eo||E[78]!==ef||E[79]!==eb||E[80]!==tr||E[81]!==ts||E[82]!==tl||E[83]!==to||E[84]!==td||E[85]!==tc||E[86]!==S||E[87]!==tu||E[88]!==tm?(L=(0,i.jsx)(s.B,{headingId:e4,hiddenFeatures:eN,areLinesExpanded:ep,canExpandOrCollapseLines:ex,fileLinkHref:tr,isCollapsed:P,isBinary:W,size:B,canToggleRichDiff:ts,linesAdded:Y,linesChanged:ee,linesDeleted:et,newMode:tl,newPath:to,oldMode:td,oldPath:tc,patchStatus:eb,path:eo,onToggleExpandAllLines:eg,onToggleFileCollapsed:S,onToggleDiffDisplay:tu,additionalLeftSideContent:J,rightSideContent:ef,showRichDiff:tm,isInSingleFileMode:ek}),E[64]=ex,E[65]=P,E[66]=B,E[67]=eg,E[68]=ep,E[69]=e4,E[70]=eN,E[71]=W,E[72]=ek,E[73]=J,E[74]=Y,E[75]=ee,E[76]=et,E[77]=eo,E[78]=ef,E[79]=eb,E[80]=tr,E[81]=ts,E[82]=tl,E[83]=to,E[84]=td,E[85]=tc,E[86]=S,E[87]=tu,E[88]=tm,E[89]=L):L=E[89],E[90]!==N||E[91]!==L?(D=(0,i.jsx)(“div”,{className:rD.A.diffHeaderWrapper,style:N,children:L}),E[90]=N,E[91]=L,E[92]=D):D=E[92],E[93]!==P||E[94]!==eE||E[95]!==e9||E[96]!==H||E[97]!==eH||E[98]!==ep||E[99]!==V||E[100]!==K||E[101]!==e5||E[102]!==eI||E[103]!==eG||E[104]!==eT||E[105]!==eo||E[106]!==ec||E[107]!==em||E[108]!==eD||E[109]!==eL||E[110]!==ev||E[111]!==e8||E[112]!==e2?(I=P?null:(0,i.jsxs)(“div”,{className:”border position-relative rounded-bottom-2″,children:[(0,i.jsxs)(i.Fragment,{children:[H.length>0&&(0,i.jsx)(r0,{conversationListThreads:H,filePath:eo}),K&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,rD.A.diffAddFileThread),children:(0,i.jsx)(eJ,{batchingEnabled:!0,filePath:eo,fileLevelComment:!0,isLeftSide:void 0,viewerData:e2,onAddComment:eH,onClose:eG})})]}),eL&&(0,i.jsx)(rP,{submodule:ev}),em?.showRichDiff&&(0,i.jsx)(e6,{queryConfig:em.queryConfig,initialData:em.richDiff}),eD&&(0,i.jsx)(rN,{hasExpandedAllRanges:ep,copilotChatReference:eE,diffEntryData:e9,baseHelpUrl:V,subjectId:ec||””,viewerData:e2,isSplitView:e5,diffLinesManuallyUnhidden:eI,onHandleLoadDiff:eT,tableAriaLabel:e8})]}),E[93]=P,E[94]=eE,E[95]=e9,E[96]=H,E[97]=eH,E[98]=ep,E[99]=V,E[100]=K,E[101]=e5,E[102]=eI,E[103]=eG,E[104]=eT,E[105]=eo,E[106]=ec,E[107]=em,E[108]=eD,E[109]=eL,E[110]=ev,E[111]=e8,E[112]=e2,E[113]=I):I=E[113],E[114]!==ew||E[115]!==e4||E[116]!==eS||E[117]!==T||E[118]!==tn||E[119]!==ti||E[120]!==w||E[121]!==D||E[122]!==I?(k=(0,i.jsxs)(“div”,{“data-estimated-height”:ew,role:”region”,ref:T,”aria-labelledby”:e4,id:tn,className:C,”data-targeted”:eS,style:w,children:[D,I]},ti),E[114]=ew,E[115]=e4,E[116]=eS,E[117]=T,E[118]=tn,E[119]=ti,E[120]=w,E[121]=D,E[122]=I,E[123]=k):k=E[123],E[124]!==eR||E[125]!==ek?(R=ek&&(0,i.jsxs)(“div”,{className:rD.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:r3(eR)})]}),E[124]=eR,E[125]=ek,E[126]=R):R=E[126],E[127]!==ej||E[128]!==eA||E[129]!==e7||E[130]!==eN||E[131]!==e5||E[132]!==en||E[133]!==er||E[134]!==eo||E[135]!==eU||E[136]!==tt||E[137]!==k||E[138]!==R?(A=(0,i.jsxs)(z,{addInjectedContextLines:ej,diffAnchor:tt,diffLines:eA,fileLineCount:e7,path:eo,startNewConversationForLineOrFileMap:eU,hiddenFeatures:eN,isSplitView:e5,oldTreeEntry:er,newTreeEntry:en,children:[k,R]}),E[127]=ej,E[128]=eA,E[129]=e7,E[130]=eN,E[131]=e5,E[132]=en,E[133]=er,E[134]=eo,E[135]=eU,E[136]=tt,E[137]=k,E[138]=R,E[139]=A):A=E[139],A}:function({ref:e,addFileCommentButtonRef:t,collapsed:n,currentUser:a,diffLines:r,diffManuallyExpanded:d,diffSize:u,helpUrl:m,estimatedDiffHeight:f=0,fileComments:h,headerStickyOffset:p=0,hiddenFeatures:x=r1,isAddingFileComment:y,isBinary:j,isSelected:C=!1,isSubmodule:w,isTooBig:N,leftSideContent:S,linesAdded:L,linesChanged:D,linesDeleted:I,newTreeEntry:k,newCommitOid:R,objectId:A,oldTreeEntry:E,oldCommitOid:T,onToggleCollapse:O,path:P,pathDigest:F,pullRequestGlobalRelayId:$,repository:B,richDiffState:V,rightSideContent:U,setIsAddingFileComment:H,hasExpandedAllRanges:G,expandAllContextLines:q,canExpandOrCollapseLines:K,status:W,submodule:Z,truncatedReason:Q,addInjectedContextLines:X,loadDiff:J}){let Y=w&&!!Z,ee=!Y&&!V?.showRichDiff,[et,en]=(0,l.useState)(d),ei=(0,_.j5)(),{comparisonView:ea}=(0,_.L3)(),er=(0,l.useMemo)(()=>r.map(e=>({…e,key:M(e)})),[r]),es=rz({isBinary:j,isSubmodule:w,path:P,status:W,repository:B,newCommitOid:R,newTreeEntry:k,oldCommitOid:T,oldTreeEntry:E,pathDigest:F,hasCopilotAccess:a.hasCopilotAccess}),el=(0,l.useCallback)(async()=>{await J(),en(!0)},[J]),{baseOid:eo,headOid:ed}=(0,_.E4)(),ec=(0,eQ.u)(“cotd_ui”),eu=(0,te.G7)(“pr_simple_diffs”),{effectiveRange:em}=(0,_.L3)(),{mutate:ef}=nt(),eh=(0,l.useCallback)(()=>{H(!0)},[H]),ep=(0,l.useMemo)(()=>({F0:{startNewComment:eh,diffLineKey:r2}}),[eh]),eg=(0,l.useMemo)(()=>({avatarUrl:a?.avatarURL??””,diffViewPreference:a?.splitPreference,login:a?.login??””,lineSpacingPreference:a?.lineSpacing,shouldDisplayComments:a?.shouldDisplayComments,shouldDisplayEditOptions:a?.shouldDisplayEditOptions,tabSizePreference:a?.tabSize??4,viewerCanComment:a?.canComment,viewerCanApplySuggestion:a?.canApplySuggestion}),[a.avatarURL,a.canApplySuggestion,a.canComment,a.lineSpacing,a.login,a.shouldDisplayComments,a.shouldDisplayEditOptions,a.splitPreference,a.tabSize]),ex=(0,l.useId)(),eb=`heading-${ex}`,ev=(0,l.useMemo)(()=>”split”===new URLSearchParams(g.cg?.location.search).get(“diff”)||”split”===a.splitPreference,[a.splitPreference]),ey=k?.lineCount??E?.lineCount??0,ej=(0,l.useMemo)(()=>{let e,t=E?.path,n=k?.path;if(t||n)return e=”RENAMED”===W?`${t} renamed to ${n}`:”DELETED”===W||”REMOVED”===W?t:n,`Diff for: ${e}`},[W,E?.path,k?.path]),eC=(0,l.useMemo)(()=>({diffLines:er,isBinary:j,isTooBig:N,linesChanged:D,newTreeEntry:k,newCommitOid:R,objectId:A,oldTreeEntry:E,oldCommitOid:T,path:P,pathDigest:F,status:W,truncatedReason:Q}),[er,j,N,D,R,k,A,T,E,P,F,W,Q]);return(0,i.jsxs)(z,{addInjectedContextLines:X,diffAnchor:`diff-${F}`,diffLines:er,fileLineCount:ey,path:P,startNewConversationForLineOrFileMap:ep,hiddenFeatures:x,isSplitView:ev,oldTreeEntry:E,newTreeEntry:k,children:[(0,i.jsxs)(“div”,{“data-estimated-height”:f,role:”region”,ref:e,”aria-labelledby”:eb,id:`diff-${F}`,className:(0,b.$)(rD.A.diffTargetable,rD.A.diff),”data-targeted”:C,style:eu?{contentVisibility:”auto”,containIntrinsicSize:`auto ${f}px`}:void 0,children:[(0,i.jsx)(“div”,{className:rD.A.diffHeaderWrapper,style:{“–header-sticky-offset”:`${p}px`},children:(0,i.jsx)(s.B,{headingId:eb,hiddenFeatures:x,areLinesExpanded:G,canExpandOrCollapseLines:K,fileLinkHref:`#diff-${F}`,isCollapsed:n,isBinary:j,size:u,canToggleRichDiff:V?.richDiff?.canToggleRichDiff,linesAdded:L,linesChanged:D,linesDeleted:I,newMode:k?.mode,newPath:k?.path,oldMode:E?.mode,oldPath:E?.path,patchStatus:W,path:P,onToggleExpandAllLines:q,onToggleFileCollapsed:e=>O(e,!n),onToggleDiffDisplay:V?.onToggleRichDiff,additionalLeftSideContent:S,rightSideContent:U,showRichDiff:V?.showRichDiff,isInSingleFileMode:ei})}),n?null:(0,i.jsxs)(“div”,{className:”border position-relative rounded-bottom-2″,children:[(0,i.jsxs)(i.Fragment,{children:[h.length>0&&(0,i.jsx)(r0,{conversationListThreads:h,filePath:P}),y&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,rD.A.diffAddFileThread),children:(0,i.jsx)(eJ,{batchingEnabled:!0,filePath:P,fileLevelComment:!0,isLeftSide:void 0,viewerData:eg,onAddComment:({onCompleted:e,onError:t,submitBatch:n,text:i})=>{ec?ef(new ReviewCommentFactory({filePath:P,effectiveDiffRange:em,submitBatch:n,text:i}).fileRequestData(),{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment.databaseId),H(!1)}}):ef({text:i,path:P,submitBatch:n,subjectType:o.Wr.File,comparisonEndOid:ed,comparisonStartOid:eo},{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment.databaseId),H(!1)}})},onClose:()=>{H(!1),t?.current?.focus()}})})]}),Y&&(0,i.jsx)(rP,{submodule:Z}),V?.showRichDiff&&(0,i.jsx)(e6,{queryConfig:V.queryConfig,initialData:V.richDiff}),ee&&(0,i.jsx)(rN,{hasExpandedAllRanges:G,copilotChatReference:es,diffEntryData:eC,baseHelpUrl:m,subjectId:$||””,viewerData:eg,isSplitView:ev,diffLinesManuallyUnhidden:et,onHandleLoadDiff:el,tableAriaLabel:ej})]})]},`${F}_${er.length}`),ei&&(0,i.jsxs)(“div”,{className:rD.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:r3(ea)})]})]})};function r5(e){return{…e,key:M(e)}}let r6=(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:y,status:j}=e,C=(0,l.useId)(),w=`heading-${C}`,[N,S]=(0,l.useState)(!1),L=`diff-${f}`;u[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,b.$)(rD.A.diffTargetable,rD.A.diff),u[0]=t):t=u[0];let D=`${f}_error`,I=y?.mode,_=y?.path,k=x?.mode,R=x?.path;return u[1]!==N?(n=()=>S(!N),u[1]=N,u[2]=n):n=u[2],u[3]!==w||u[4]!==N||u[5]!==h||u[6]!==p||u[7]!==g||u[8]!==m||u[9]!==j||u[10]!==I||u[11]!==_||u[12]!==k||u[13]!==R||u[14]!==n?(a=(0,i.jsx)(“div”,{className:rD.A.diffHeaderWrapper,children:(0,i.jsx)(s.B,{headingId:w,isCollapsed:N,isBinary:!1,linesAdded:h,linesChanged:p,linesDeleted:g,newMode:I,newPath:_,oldMode:k,oldPath:R,patchStatus:j,path:m,onToggleFileCollapsed:n})}),u[3]=w,u[4]=N,u[5]=h,u[6]=p,u[7]=g,u[8]=m,u[9]=j,u[10]=I,u[11]=_,u[12]=k,u[13]=R,u[14]=n,u[15]=a):a=u[15],u[16]!==N?(o=!N&&(0,i.jsx)(“div”,{className:”border position-relative rounded-bottom-2″,children:(0,i.jsxs)(nG.E,{children:[(0,i.jsx)(nG.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:”medium”,className:”fgColor-muted”})}),(0,i.jsx)(nG.E.Heading,{as:”h4″,children:”There was an issue loading this file”}),(0,i.jsxs)(nG.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]=N,u[17]=o):o=u[17],u[18]!==w||u[19]!==L||u[20]!==o||u[21]!==D||u[22]!==a?(d=(0,i.jsxs)(“div”,{role:”region”,”aria-labelledby”:w,id:L,className:t,children:[a,o]},D),u[18]=w,u[19]=L,u[20]=o,u[21]=D,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.$)(rD.A.diffTargetable,rD.A.diff),children:[(0,i.jsx)(“div”,{className:rD.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)(nG.E,{children:[(0,i.jsx)(nG.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:”medium”,className:”fgColor-muted”})}),(0,i.jsx)(nG.E.Heading,{as:”h4″,children:”There was an issue loading this file”}),(0,i.jsxs)(nG.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`)},r7=(0,l.memo)(r4);try{r4.displayName||(r4.displayName=”DiffUnmemoized”)}catch{}try{r6.displayName||(r6.displayName=”DiffErrorFallback”)}catch{}try{r7.displayName||(r7.displayName=”Diff”)}catch{}},16790:(e,t,n)=>{n.d(t,{eX:()=>d,xe:()=>c,zq:()=>o});var i=n(74848),a=n(68273),r=n(16522),s=n(96540);let l=(0,s.createContext)({loggingPayload:void 0,loggingPrefix:void 0}),o=(0,a.kw)()?function(e){let t,n=(0,r.c)(3),{children:a,loggingInfo:s}=e;return n[0]!==a||n[1]!==s?(t=(0,i.jsx)(l,{value:s,children:a}),n[0]=a,n[1]=s,n[2]=t):t=n[2],t}:function({children:e,loggingInfo:t}){return(0,i.jsx)(l,{value:t,children:e})},d=(0,a.kw)()?function(){let e=(0,s.useContext)(l);return void 0!==e.loggingPayload&&void 0!==e.loggingPrefix}:function(){let e=(0,s.useContext)(l);return void 0!==e.loggingPayload&&void 0!==e.loggingPrefix},c=(0,a.kw)()?function(){return(0,s.useContext)(l)}:function(){return(0,s.useContext)(l)};try{l.displayName||(l.displayName=”CommitsLoggingContext”)}catch{}try{o.displayName||(o.displayName=”CommitsLoggingInfoProvider”)}catch{}},18373:(e,t,n)=>{n.d(t,{U:()=>y});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(10576),f=n(46251),h=n(33989),p=n(57387),g=n(38621),x=n(55127),b=n.n(x);function y(e){let t,n,h,x,y,C,w,N,S,L,D,I,_,k,R,A,E,T,O,P,F=(0,a.c)(60),{setOpen:$,count:M,dismissalOptions:B,error:V,isPending:U,delegatedAlertDismissalEnabled:H,codeSecurity:G,onSubmit:q}=e,[z,K]=(0,r.useState)(“”),[W,Z]=(0,r.useState)(“”),[Q,X]=(0,r.useState)(!1);F[0]!==H||F[1]!==W?(t=!H||!!W.trim(),F[0]=H,F[1]=W,F[2]=t):t=F[2];let J=t,Y=!!z&&J;F[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{K(e??””)},F[3]=n):n=F[3];let ee=n,et=G?”alert”:”finding”;if(F[4]!==M||F[5]!==et){let e,t,n,i,a,r,s;e=b()(et,M),t=M>1,n=`Dismiss ${e}`,i=`Select a reason to dismiss ${b()(“this”,M)} ${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`}},F[4]=M,F[5]=et,F[6]=h}else h=F[6];let{title:en,subtitle:ei,submitButtonLabel:ea,delegatedAlertDismissal:er,reasons:es}=h;F[7]!==es.falsePositiveDescription?(x={value:”FALSE_POSITIVE”,label:”False positive”,description:es.falsePositiveDescription},F[7]=es.falsePositiveDescription,F[8]=x):x=F[8],F[9]!==es.usedInTestsDescription?(y={value:”USED_IN_TESTS”,label:”Used in tests”,description:es.usedInTestsDescription},F[9]=es.usedInTestsDescription,F[10]=y):y=F[10],F[11]!==es.wontFixDescription?(C={value:”WONT_FIX”,label:”Won’t fix”,description:es.wontFixDescription},F[11]=es.wontFixDescription,F[12]=C):C=F[12],F[13]!==x||F[14]!==y||F[15]!==C?(w=[x,y,C],F[13]=x,F[14]=y,F[15]=C,F[16]=w):w=F[16];let el=w,eo=B?.length?B:el;F[17]!==W||F[18]!==Y||F[19]!==q||F[20]!==z?(N=async()=>{Y?(X(!1),q({resolution:z,dismissalComment:W})):X(!0)},F[17]=W,F[18]=Y,F[19]=q,F[20]=z,F[21]=N):N=F[21];let ed=N;F[22]!==$?(S=()=>$(!1),F[22]=$,F[23]=S):S=F[23];let ec=H?er.title:en,eu=H?er.subtitle:ei;return F[24]!==M||F[25]!==er||F[26]!==H||F[27]!==U||F[28]!==Y||F[29]!==ed||F[30]!==$||F[31]!==ea?(L=()=>(0,i.jsxs)(p.l.Footer,{children:[(0,i.jsx)(l.Q,{onClick:()=>$(!1),children:”Cancel”}),(0,i.jsxs)(l.Q,{variant:”primary”,onClick:ed,disabled:!Y||U,leadingVisual:U?g.SyncIcon:null,children:[(0,i.jsx)(“span”,{children:H?er.submitButtonLabel:ea}),M>1&&(0,i.jsx)(o.A,{scheme:”primary”,className:”ml-2″,children:(0,s.ai)(M)})]})]}),F[24]=M,F[25]=er,F[26]=H,F[27]=U,F[28]=Y,F[29]=ed,F[30]=$,F[31]=ea,F[32]=L):L=F[32],F[33]!==V?(D=V&&(0,i.jsx)(d.A,{variant:”danger”,children:V.message}),F[33]=V,F[34]=D):D=F[34],F[35]===Symbol.for(“react.memo_cache_sentinel”)?(I=(0,i.jsx)(c.A.Label,{visuallyHidden:!0,children:”Dismissal reason”}),F[35]=I):I=F[35],F[36]!==eo?(_=eo.map(j),F[36]=eo,F[37]=_):_=F[37],F[38]!==U||F[39]!==_?(k=(0,i.jsxs)(c.A,{name:”resolution”,onChange:ee,disabled:U,children:[I,_]}),F[38]=U,F[39]=_,F[40]=k):k=F[40],F[41]!==H?(R=(0,i.jsx)(u.A.Label,{required:H,children:”Comment”}),F[41]=H,F[42]=R):R=F[42],F[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=>Z(e.target.value),className:”BaseSharedDismissalDialog-module__dismissalCommentTextarea–xxBPO”}),F[43]=A):A=F[43],F[44]!==Q?(E=Q&&(0,i.jsx)(u.A.Validation,{variant:”error”,children:”This field is required”}),F[44]=Q,F[45]=E):E=F[45],F[46]!==U||F[47]!==R||F[48]!==E?(T=(0,i.jsx)(“div”,{children:(0,i.jsxs)(u.A,{disabled:U,children:[R,A,E]})}),F[46]=U,F[47]=R,F[48]=E,F[49]=T):T=F[49],F[50]!==D||F[51]!==k||F[52]!==T?(O=(0,i.jsxs)(f.B,{gap:”normal”,children:[D,k,T]}),F[50]=D,F[51]=k,F[52]=T,F[53]=O):O=F[53],F[54]!==ec||F[55]!==eu||F[56]!==L||F[57]!==O||F[58]!==S?(P=(0,i.jsx)(p.l,{width:”large”,height:”auto”,onClose:S,title:ec,subtitle:eu,renderFooter:L,children:O}),F[54]=ec,F[55]=eu,F[56]=L,F[57]=O,F[58]=S,F[59]=P):P=F[59],P}function j(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{y.displayName||(y.displayName=”BaseSharedDismissalDialog”)}catch{}},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:()=>F});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),y=n(79431),j=n(11196),C=n(97665),w=n(33578),N=n(90891),S=n(20622),L=n(53885),D=n(96379),I=n(94747);let _=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,L.e)(S.uT.changeBase);return t[0]!==n?(e={mutationFn:e=>{let{newBaseBranch:t}=e,i=btoa(t);return(0,D.Sr)(n,{method:”PATCH”,body:{new_base_binary:i}})},onSuccess:k},t[0]=n,t[1]=e):e=t[1],(0,I.n)(e)}:function(){let e=(0,L.e)(S.uT.changeBase);return(0,I.n)({mutationFn:({newBaseBranch:t})=>{let n=btoa(t);return(0,D.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,N.Ee)(t.orchestration.url,{headers:{accept:”application/json”}})).json();if(n.orchestration.error_message)throw Error(n.orchestration.error_message)}})};async function k(e){let t=await e.json();if(t.error)throw Error(t.error);let n=await (await (0,N.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),E=n(95807),T=n(99223),O=n(69599),P=n(37212);function F({author:e,baseBranch:t,baseRepositoryDefaultBranch:n=””,baseRepositoryName:a=””,baseRepositoryOwnerLogin:r=””,canChangeBase:p=!1,commitsCount:j,headBranch:N,headRepositoryOwnerLogin:S=””,headRepositoryName:L=””,isInAdvisoryRepo:D,isEditing:I=!1,mergedBy:k,mergedByName:R,mergedTime:F,pullRequestId:M,pullRequestNumber:B,repositoryId:V,setIsEditing:U,state:H}){var G,q,z;let K,W=(0,C.jE)(),{refListCacheKey:Z}=(0,b.X)(),[Q,X]=(0,s.useState)(!1),[J,Y]=(0,s.useState)(!1),[ee,et]=(0,s.useState)(“”),[en,ei]=(0,s.useState)(“”),ea=(0,O.G7)(“render_user_display_name”),er=(0,A.f)(),es=(0,P.NP)(),{mutate:el}=_(),eo=e=>{Y(!1),et(e)},ed=J?()=>(0,i.jsx)(c.A,{size:”small”}):null,ec=S&&S!==r?`${r}:${t}`:t,eu=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,S,L,N,D),em=H===w.Q.Merged?k?{login:k,displayName:R}:null:e,ef=(G=H,q=j,z=em?.login,K=`${q} ${q>1?”commits”:”commit”}`,G!==w.Q.Merged?`wants to merge ${K} into`:z?`merged ${K} into`:`${K} merged into`);return(0,i.jsxs)(“span”,{className:”fgColor-muted d-flex flex-items-center overflow-hidden PullRequestHeaderSummary-module__summaryContainer–iNR1T”,children:[em?(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:em.login}),href:`/${em.login}`,children:ea?(0,i.jsx)(d.v,{login:em.login,profileName:em.displayName,isAgent:!1}):em.login}),” “]}):null,ef,p&&I?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.PI,{cacheKey:Z,canCreate:!1,closeOnSelect:!0,currentCommitish:t,defaultBranch:n,hideShowAll:!0,owner:r,repo:a,types:[“branch”],onSelectItem:e=>{X(!0),ei(e)}}),(0,i.jsx)(m.ZL,{children:(0,i.jsxs)(g.A,{“aria-labelledby”:”confirm-change-base-branch”,isOpen:Q,onDismiss:()=>{X(!1),ei(“”),et(“”)},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.”}),ee&&(0,i.jsx)(y.v,{className:”mt-2″,variant:”critical”,children:ee}),(0,i.jsx)(“span”,{className:”sr-only”,”aria-live”:”polite”,children:J?”Base branch update in progress.”:””}),(0,i.jsx)(f.Q,{alignContent:”center”,”aria-disabled”:J?”true”:void 0,block:!0,className:”mt-3″,disabled:J,leadingVisual:ed,onClick:()=>{Y(!0),el({newBaseBranch:en},{onError:e=>eo(e.message),onSuccess:async()=>{try{await Promise.all([W.refetchQueries({queryKey:er},{throwOnError:!0}),W.refetchQueries({queryKey:es},{throwOnError:!0})]),Y(!1),U?.(!1),X(!1)}catch{eo(“Unable to refetch commits. Please refresh the page.”)}}})},variant:”primary”,children:J?null:”Change base”})]})]})})]}):(0,i.jsx)($,{branch:t,branchText:ec,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)($,{branch:N,branchText:eu,repositoryName:L,repositoryOwner:S}),(0,i.jsx)(l.T,{ariaLabel:”Copy head branch name to clipboard”,size:”small”,textToCopy:S?eu:N})]}),H===w.Q.Merged&&(0,i.jsx)(h.A,{datetime:F}),H===w.Q.Open&&!(0,T.k)()&&(0,i.jsx)(E.i,{processingIndicatorUrl:(0,o.CZ9)({owner:r,repo:a,number:B}),repositoryId:V,pullRequestId:M})]})}let $=(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)(j.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)(j.m,{text:`${t}/${n}:${a}`,children:(0,i.jsx)(p.A,{href:r,className:R,children:e})})}};try{F.displayName||(F.displayName=”PullRequestHeaderSummary”)}catch{}try{$.displayName||($.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(97068),r=n(96540),s=n(56149),l=n(12683),o=n(34164);let d=n(38267).Ay.span.withConfig({displayName:”ControlledTooltip__TooltipBase”,componentId:”sc-4009498c-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;function f({ref:e,direction:t=”n”,className:n,text:a,noDelay:l,align:f,wrap:h,open:p=!1,portalProps:g={},…x}){let b=(0,r.useSyncExternalStore)(c,m,u),y=(0,o.$)(n,`tooltipped-${t}`,f&&`tooltipped-align-${f}-2`,l&&”tooltipped-no-delay”,h&&”tooltipped-multiline”,p&&”tooltipped-open”);return b?(0,i.jsx)(s.ZL,{…g,children:(0,i.jsx)(d,{ref:e,role:”tooltip”,”aria-label”:a,”data-visible-text”:a||x[“aria-label”],…x,sx:{position:”fixed”,zIndex:1,…x.sx},className:y})}):null}try{f.displayName||(f.displayName=”ControlledTooltip”)}catch{}var h=n(65787);function p({ref:e,contentRef:t,open:n,anchoredPositionAlignment:s,anchorSide:l,anchorOffset:o,alignmentOffset:d,allowOutOfBounds:c,…u}){let m=(0,r.useRef)(null);(0,r.useImperativeHandle)(e,()=>m.current);let p=(0,r.useRef)({left:0,top:0}),g=(0,r.useSyncExternalStore)((0,r.useCallback)(e=>{if(!m.current||!t.current||!n)return()=>void 0;let i=(0,h.U)(t.current);return i?.addEventListener(“scroll”,e),()=>{i?.removeEventListener(“scroll”,e)}},[t,n]),(0,r.useCallback)(()=>{if(!m.current||!t.current)return p.current;let e=(0,a.uG)(m.current,t.current,{align:s??”center”,side:l??”outside-top”,alignmentOffset:d??0,anchorOffset:o??0,allowOutOfBounds:c});return(e.left!==p.current.left||e.top!==p.current.top)&&(p.current=e),p.current},[t,d,o,s,l,c]),(0,r.useCallback)(()=>p.current,[]));return(0,i.jsx)(f,{…u,ref:m,open:n,style:{position:”absolute”,…g,…u.style}})}try{p.displayName||(p.displayName=”PortalTooltip”)}catch{}},26410:(e,t,n)=>{n.d(t,{J:()=>y,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:j,ghCliUrl:C,newSshKeyUrl:w,setProtocolPath:N}=e.protocolInfo,{defaultProtocol:S}=e.protocolInfo,[L,D]=(0,a.useState)(S),[I,_]=(0,a.useState)(“”),{cloneUrl:k,visualStudioCloneUrl:R,showVisualStudioCloneButton:A,showXcodeCloneButton:E,xcodeCloneUrl:T,zipballUrl:O}=e.platformInfo,P=(0,r.X)([“windows”,”mac”]),F=(0,r.X)([“mac”]),$=(0,s.Z)(),M=”mt-2 fgColor-muted text-normal”,B=(0,a.useCallback)(e=>{if(L!==e){D(e);let t=new FormData;t.set(“protocol_selector”,e),(0,l.DI)(N,{method:”post”,body:t})}},[L,D,N]),V=(0,a.useMemo)(()=>{let e=[];return t&&e.push({protocol:”http”,displayName:”HTTPS”,ariaLabel:”Clone with HTTPS”,handler:()=>B(“http”)}),n&&e.push({protocol:”ssh”,displayName:”SSH”,ariaLabel:”Clone with SSH”,handler:()=>B(“ssh”)}),e.push({protocol:”gh_cli”,displayName:”GitHub CLI”,ariaLabel:”Clone with GitHub CLI”,handler:()=>B(“gh_cli”)}),e},[t,B,n]),U=(0,a.useMemo)(()=>{let e=[];return P&&e.push({name:”githubDesktop”,text:”Open with GitHub Desktop”,url:k,icon:p.DesktopDownloadIcon}),P&&A&&e.push({name:”visualStudio”,text:”Open with Visual Studio”,url:R}),F&&E&&e.push({name:”xcode”,text:”Open with Xcode”,url:T}),e.push({name:”zip”,text:”Download ZIP”,url:O,icon:p.FileZipIcon}),e},[k,F,P,A,E,R,T,O]);return(0,i.jsx)(“div”,{children:”githubDesktop”===I?(0,i.jsx)(b,{platform:”GitHub Desktop”,href:”https://desktop.github.com/”}):”visualStudio”===I?(0,i.jsx)(b,{platform:”Visual Studio”}):”xcode”===I?(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:V.map(e=>(0,i.jsx)(d.O.Item,{“aria-current”:L===e.protocol?”page”:void 0,”aria-label”:e.ariaLabel,onClick:e.handler,children:e.displayName},e.protocol))}),”http”===L?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y,{inputId:”clone-with-https”,inputLabel:”Clone with HTTPS url”,url:m}),(0,i.jsx)(“p”,{className:M,children:”Clone using the web URL.”})]}):”ssh”===L?(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:w,children:”add a new public key”}),”, or try cloning this repository via HTTPS.”]}),(0,i.jsx)(y,{inputId:”clone-with-ssh”,inputLabel:”Clone with SSH url”,url:g}),(0,i.jsx)(“p”,{className:M,children:x?”Use a password-protected SSH certificate.”:j?”Use a password-protected SSH key or certificate.”:”Use a password-protected SSH key.”})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y,{buttonAriaLabel:”Copy command to clipboard”,inputId:”clone-with-gh-cli”,inputLabel:”Clone with GitHub CLI command”,url:C}),(0,i.jsxs)(“p”,{className:M,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:U.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=>{_(e.name),t.preventDefault(),$(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 y({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{y.displayName||(y.displayName=”CloneUrl”)}catch{}},27011:(e,t,n)=>{n.d(t,{JA:()=>J,YL:()=>Y,qL:()=>eg,wI:()=>X,gt:()=>es,xW:()=>et,wL:()=>ea,a_:()=>ei,TV:()=>en,iY:()=>ee,wh:()=>ey,kN:()=>eC,JR:()=>ej,L3:()=>j,yo:()=>C,HZ:()=>eS,$W:()=>eD,jT:()=>eN,QV:()=>eL,or:()=>ek,I8:()=>e_,l0:()=>k,Ud:()=>E,uh:()=>T,Fm:()=>O,qg:()=>A,mU:()=>P,y:()=>ew,GR:()=>q,qX:()=>M,SM:()=>eu,ww:()=>N,it:()=>ev,q6:()=>eR,Py:()=>U,j5:()=>w,RH:()=>eF,Fl:()=>er,Lh:()=>H,ne:()=>eo,an:()=>ep,rP:()=>ef,_N:()=>ex,ys:()=>eb,pV:()=>eI,mY:()=>F,Yp:()=>D,Kp:()=>I,r$:()=>L,GK:()=>_,zK:()=>G,mF:()=>z,m9:()=>$,E4:()=>S,CQ:()=>eA,WA:()=>el,WK:()=>eO,xJ:()=>eP,Nk:()=>e$,_W:()=>em,Qb:()=>eh,BI:()=>ec,gW:()=>B,E5:()=>V,Mv:()=>eE,gi:()=>eT});var i=n(68273),a=n(16522),r=n(96540),s=n(70466),l=n(59914),o=n(83873),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=[],y={threads:x,annotations:b,commentsPreference:p.sI.Visible},j=(0,i.Z6)()?()=>(0,o.n)(eM):()=>(0,o.n)(e=>e.comparisonInfo),C=(0,i.Z6)()?()=>(0,o.n)(eB):()=>(0,o.n)(e=>e.comparisonInfoActions),w=(0,i.Z6)()?()=>(0,o.n)(eV):()=>(0,o.n)(e=>e.isSingleFileMode),N=(0,i.Z6)()?()=>(0,o.n)(eU):()=>(0,o.n)(e=>”FULL”!==e.comparisonInfo.comparisonView),S=(0,i.Z6)()?()=>(0,o.n)(eH):()=>(0,o.n)(e=>e.comparisonInfo.selectedRange||g),L=(0,i.Z6)()?()=>(0,o.n)(eG):()=>(0,o.n)(e=>e.pullRequest.id),D=(0,i.Z6)()?()=>(0,o.n)(eq):()=>(0,o.n)(e=>e.pullRequest),I=(0,i.Z6)()?()=>(0,o.n)(ez):()=>(0,o.n)(e=>e.pullRequest.basePath);(0,i.Z6)()||(()=>(0,o.n)(e=>e.pullRequestActions));let _=(0,i.Z6)()?()=>(0,o.n)(eK):()=>(0,o.n)(e=>e.repository),k=(0,i.Z6)()?()=>(0,o.n)(eW):()=>(0,o.n)(e=>e.diffSummaries),R=Z([e=>e.diffSummaries],e=>Object.values(e),s.x),A=(0,i.Z6)()?()=>(0,o.n)(eZ):()=>(0,o.n)(e=>R(e).length),E=(0,i.Z6)()?()=>(0,o.n)(eQ):()=>(0,o.n)(e=>e.diffSummariesActions);(0,i.Z6)()||(()=>(0,o.n)((0,l.k)(e=>R(e).map(e=>e.path))));let T=((0,i.Z6)(),()=>(0,o.n)(R)),O=(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)(),()=>W().hiddenFiles;let P=((0,i.Z6)(),()=>W().filteredDiffSummaries),F=(0,i.Z6)()?()=>(0,o.n)(eX):()=>(0,o.n)(e=>e.entries),$=(0,i.Z6)()?()=>(0,o.n)(eJ):()=>(0,o.n)(e=>e.selectedPathDigest),M=(0,i.Z6)()?()=>(0,o.n)(eY):()=>(0,o.n)(e=>e.getSelectedPathDigest),B=(0,i.Z6)()?()=>(0,o.n)(e0):()=>(0,o.n)(e=>e.progressiveDiffsActions.updateSelectedPathDigest),V=(0,i.Z6)()?()=>(0,o.n)(e1):()=>(0,o.n)(e=>e.progressiveDiffsActions.updateSelectedPathDigestAndFetch),U=(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),H=(0,i.Z6)()?()=>(0,o.n)(e2):()=>(0,o.n)(e=>e.markerAndDiffNavigationActions),G=(0,i.Z6)()?()=>(0,o.n)(e3):()=>(0,o.n)(e=>e.markerAndDiffNavigation.commentId);(0,i.Z6)()||(()=>(0,o.n)(e=>e.markerAndDiffNavigation.getCommentId));let q=(0,i.Z6)()?()=>(0,o.n)(e4):()=>(0,o.n)(e=>e.markerAndDiffNavigation.getMarkerId),z=(0,i.Z6)()?()=>(0,o.n)(e5):()=>(0,o.n)(e=>e.markerAndDiffNavigation.markerId),K=Z([R,e=>e.codeowners,e=>e.diffFilter.state,e=>e.changeGroupGeneration.changeGroups],(e,t,n,i)=>{let a=new Map,r=[],s=i.find(e=>e.id===n.activeChangeGroupId),l=s?.hunkPositions?new Set(Object.keys(s.hunkPositions)):void 0;for(let i of e){var o,c,m,f;let e=(0,d.hG)({diffPath:i.path,codeownersData:t}).isOwnedByViewer;(o=i,c=n,m=e,(!(f=l)||f.has(o.path))&&o.path.toLowerCase().includes(c.filterText.toLowerCase())&&!c.unselectedFileExtensions.has((0,u.QC)(o.path))&&(c.showDeletedFiles||”REMOVED”!==o.changeType&&”DELETED”!==o.changeType)&&(!c.showOnlyManifestFiles||o.isManifestFile)&&(!c.showOnlyOwnedFiles||m)&&(c.showViewedFiles||!o.markedAsViewed)&&(c.showVendoredFiles||!o.isVendored))?(r.push(i),a.set(i.path,!1)):a.set(i.path,!0)}return{hiddenFiles:a,filteredDiffSummaries:r}},s.x),W=(0,i.Z6)()?()=>{let e,t,n=(0,a.c)(4),i=(0,o.n)(K),s=(0,o.n)(e6),l=i.filteredDiffSummaries.length;return n[0]!==l||n[1]!==s?(e=()=>{if(s){let e=`${l} file${1===l?””:”s”} remain${1===l?”s”:””}`;(0,c.k)(e,150)}},t=[s,l],n[0]=l,n[1]=s,n[2]=e,n[3]=t):(e=n[2],t=n[3]),(0,r.useEffect)(e,t),i}:()=>{let e=(0,o.n)(K),t=(0,o.n)(e=>e.diffFilter.filtersInteractedWith),n=e.filteredDiffSummaries.length;return(0,r.useEffect)(()=>{if(t){let e=`${n} file${1===n?””:”s”} remain${1===n?”s”:””}`;(0,c.k)(e,150)}},[t,n]),e};function Z(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 Q=Z([e=>e.markers],e=>Object.values(e||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??b)),s.x),X=((0,i.Z6)(),()=>(0,o.n)(Q)),J=(0,i.Z6)()?()=>(0,o.n)(e7):()=>(0,o.n)(e=>{let t=e.diffFilter.state.activeChangeGroupId;if(t)return e.changeGroupGeneration.changeGroups.find(e=>e.id===t)}),Y=(0,i.Z6)()?()=>(0,o.n)(e8):()=>(0,o.n)(e=>e.diffFilter.state.activeChangeGroupId),ee=(0,i.Z6)()?()=>(0,o.n)(e9):()=>(0,o.n)(e=>e.changeGroupGeneration.changeGroups),et=(0,i.Z6)()?()=>(0,o.n)(te):()=>(0,o.n)(e=>e.changeGroupGeneration),en=(0,i.Z6)()?()=>(0,o.n)(tt):()=>(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),ei=(0,i.Z6)()?()=>(0,o.n)(tn):()=>(0,o.n)(e=>e.changeGroupGeneration.changeGroupGenerationChannel),ea=(0,i.Z6)()?()=>(0,o.n)(ti):()=>(0,o.n)(e=>e.changeGroupGenerationActions),er=(0,i.Z6)()?()=>(0,o.n)(ta):()=>(0,o.n)(e=>e.changeGroupGeneration.latestChangeGroupOrchestration),es=(0,i.Z6)()?()=>(0,o.n)(tr):()=>(0,o.n)(e=>e.changeGroupGeneration.canAccessChangeGroups),el=(0,i.Z6)()?()=>(0,o.n)(ts):()=>(0,o.n)(e=>e.showChangeGroupPreference),eo=(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])),ed=Z([e=>e.markers],e=>Object.values(e||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??x)),s.x),ec=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>{let n=ed(t);if(!e)return n;let i=new Set(e);return n.filter(e=>i.has(Number(e.id)))},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=ed(t);if(!e)return n;let i=new Set(e);return n.filter(e=>i.has(Number(e.id)))})),eu=(0,i.Z6)()?()=>(0,o.n)(tl):()=>(0,o.n)(e=>e.getThread),em=(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)),ef=(0,i.Z6)()?(e,t)=>{let n,i=(0,a.c)(3);return i[0]!==e||i[1]!==t?(n=n=>{let i=n.markers?.[e]?.[t],a=i?.threads??x,r=i?.annotations??b,s=n.commentsPreference;return a.length||r.length?{threads:a,annotations:r,commentsPreference:s}:y},i[0]=e,i[1]=t,i[2]=n):n=i[2],(0,o.n)((0,l.k)(n))}:(e,t)=>(0,o.n)((0,l.k)(n=>{let i=n.markers?.[e]?.[t],a=i?.threads??x,r=i?.annotations??b,s=n.commentsPreference;return a.length||r.length?{threads:a,annotations:r,commentsPreference:s}:y})),eh=(0,i.Z6)()?e=>{let t,n=(0,a.c)(2);return n[0]!==e?(t=t=>{let n=ed(t),i=e?new Set(e):null,a=0;for(let e of n)e&&(!i||i.has(parseInt(e.id)))&&(e.isResolved||e.positioning?.isOutdated||(a+=e.commentsData?.comments?.length??0));return a},n[0]=e,n[1]=t):t=n[1],(0,o.n)(t)}:e=>(0,o.n)(t=>{let n=ed(t),i=e?new Set(e):null,a=0;for(let e of n)e&&(!i||i.has(parseInt(e.id)))&&(e.isResolved||e.positioning?.isOutdated||(a+=e.commentsData?.comments?.length??0));return a}),ep=(0,i.Z6)()?()=>(0,o.n)(to):()=>(0,o.n)(e=>e.markersActions),eg=(0,i.Z6)()?()=>(0,o.n)(td):()=>(0,o.n)(e=>e.markers),ex=(0,i.Z6)()?()=>(0,o.n)(tc):()=>(0,o.n)(e=>e.pendingReviewActions),eb=(0,i.Z6)()?()=>(0,o.n)(tu):()=>(0,o.n)(e=>e.pendingReview),ev=(0,i.Z6)()?()=>(0,o.n)(tm):()=>(0,o.n)(e=>(e.pendingReview?.pendingReviewIDs?.length??0)>0),ey=(0,i.Z6)()?()=>(0,o.n)(tf):()=>(0,o.n)(e=>e.codeownersActions),ej=(0,i.Z6)()?()=>(0,o.n)(th):()=>(0,o.n)(e=>e.filesCollapsedStatusActions),eC=(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),ew=(0,i.Z6)()?()=>(0,o.n)(tp):()=>(0,o.n)(e=>e.getCollapsedDiffStatus),eN=(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),eS=(0,i.Z6)()?()=>(0,o.n)(tg):()=>(0,o.n)(e=>e.diffEntries);(0,i.Z6)()||(()=>(0,o.n)(e=>Object.keys(e.diffEntries).length));let eL=(0,i.Z6)()?()=>(0,o.n)(tx):()=>(0,o.n)(e=>e.diffEntriesActions),eD=(0,i.Z6)()?e=>{let t,n,i=(0,a.c)(4);i[0]!==e?(t=new Set(e.map(tb)),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))))},eI=(0,i.Z6)()?()=>(0,o.n)(tv):()=>(0,o.n)(e=>e.progressiveDiffsActions),e_=(0,i.Z6)()?()=>(0,o.n)(ty):()=>(0,o.n)(e=>e.diffFilter.state),ek=(0,i.Z6)()?()=>(0,o.n)(tj):()=>(0,o.n)(e=>e.diffFilterActions),eR=(0,i.Z6)()?()=>(0,o.n)(tC):()=>(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}),eA=(0,i.Z6)()?()=>(0,o.n)(tw):()=>(0,o.n)(e=>e.settingsActions),eE=(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),eT=(0,i.Z6)()?()=>(0,o.n)(tN):()=>(0,o.n)(e=>e.summariesViewedCount),eO=(0,i.Z6)()?()=>(0,o.n)(tS):()=>(0,o.n)(e=>e.suggestionBatch),eP=(0,i.Z6)()?()=>(0,o.n)(tL):()=>(0,o.n)(e=>e.suggestionBatchActions),eF=(0,i.Z6)()?()=>(0,o.n)(tD):()=>(0,o.n)(e=>e.suggestionBatch.isSuggestionBatchPending),e$=(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 eM(e){return e.comparisonInfo}function eB(e){return e.comparisonInfoActions}function eV(e){return e.isSingleFileMode}function eU(e){return”FULL”!==e.comparisonInfo.comparisonView}function eH(e){return e.comparisonInfo.selectedRange||g}function eG(e){return e.pullRequest.id}function eq(e){return e.pullRequest}function ez(e){return e.pullRequest.basePath}function eK(e){return e.repository}function eW(e){return e.diffSummaries}function eZ(e){return R(e).length}function eQ(e){return e.diffSummariesActions}function eX(e){return e.entries}function eJ(e){return e.selectedPathDigest}function eY(e){return e.getSelectedPathDigest}function e0(e){return e.progressiveDiffsActions.updateSelectedPathDigest}function e1(e){return e.progressiveDiffsActions.updateSelectedPathDigestAndFetch}function e2(e){return e.markerAndDiffNavigationActions}function e3(e){return e.markerAndDiffNavigation.commentId}function e4(e){return e.markerAndDiffNavigation.getMarkerId}function e5(e){return e.markerAndDiffNavigation.markerId}function e6(e){return e.diffFilter.filtersInteractedWith}function e7(e){let t=e.diffFilter.state.activeChangeGroupId;if(t)return e.changeGroupGeneration.changeGroups.find(e=>e.id===t)}function e8(e){return e.diffFilter.state.activeChangeGroupId}function e9(e){return e.changeGroupGeneration.changeGroups}function te(e){return e.changeGroupGeneration}function tt(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 tn(e){return e.changeGroupGeneration.changeGroupGenerationChannel}function ti(e){return e.changeGroupGenerationActions}function ta(e){return e.changeGroupGeneration.latestChangeGroupOrchestration}function tr(e){return e.changeGroupGeneration.canAccessChangeGroups}function ts(e){return e.showChangeGroupPreference}function tl(e){return e.getThread}function to(e){return e.markersActions}function td(e){return e.markers}function tc(e){return e.pendingReviewActions}function tu(e){return e.pendingReview}function tm(e){return(e.pendingReview?.pendingReviewIDs?.length??0)>0}function tf(e){return e.codeownersActions}function th(e){return e.filesCollapsedStatusActions}function tp(e){return e.getCollapsedDiffStatus}function tg(e){return e.diffEntries}function tx(e){return e.diffEntriesActions}function tb(e){return e.path}function tv(e){return e.progressiveDiffsActions}function ty(e){return e.diffFilter.state}function tj(e){return e.diffFilterActions}function tC(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 tw(e){return e.settingsActions}function tN(e){return e.summariesViewedCount}function tS(e){return e.suggestionBatch}function tL(e){return e.suggestionBatchActions}function tD(e){return e.suggestionBatch.isSuggestionBatchPending}},27028:(e,t,n)=>{n.d(t,{G:()=>$,Q:()=>P});var i=n(74848),a=n(16522),r=n(38621),s=n(5524),l=n(94236),o=n(26108),d=n(21373),c=n(19415),u=n(96540),m=n(21067),f=n(25407),h=n(96379);function p(e,t){let n,i=(0,a.c)(5),r=(t??[]).filter(e=>!e.dismissed);if(i[0]!==r||i[1]!==e){let t;i[3]!==e?(t=t=>t.name===e,i[3]=e,i[4]=t):t=i[4],n=r.filter(t),i[0]=r,i[1]=e,i[2]=n}else n=i[2];return 0===n.length}var g=n(70719),x=n(34164);let b=”compact_diff_lines”;function y(e){let t,n,r,s,l,o,y,w,N,S,L,D,I,_,k,R=(0,a.c)(19),{userNotices:A}=e,E=p(b,A),{dismissNotice:T}=(I=(0,a.c)(5),_=p(b,A),I[0]!==_||I[1]!==b?(L=()=>{(0,m.M3)()&&!_&&(0,h.DI)((0,f.VB1)({noticeName:b}),{method:”POST”})},I[0]=_,I[1]=b,I[2]=L):L=I[2],k=L,I[3]!==k?(D={dismissNotice:k},I[3]=k,I[4]=D):D=I[4],D);R[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:C,onError:j},R[0]=t):t=R[0];let{mutate:O}=(0,g.U)(t),[P,F]=(0,u.useState)(!0);R[1]!==T||R[2]!==O?(n=()=>{O({lineSpacing:”compact”}),F(!1),T()},R[1]=T,R[2]=O,R[3]=n):n=R[3];let $=n;R[4]!==T?(r=()=>{F(!1),T()},R[4]=T,R[5]=r):r=R[5];let M=r;return E?null:(R[6]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,x.$)(“d-flex flex-column gap-2″,”DiffCompactLinesPopover-module__PopoverContent–HUydq”),l=(0,i.jsx)(“h2″,{className:”DiffCompactLinesPopover-module__Heading–hFmwp”,children:”Customizable line height”}),o=(0,i.jsx)(“p”,{children:”The default line height has been increased for improved accessibility. You can choose to enable a more compact line height from the view settings menu.”}),R[6]=s,R[7]=l,R[8]=o):(s=R[6],l=R[7],o=R[8]),R[9]!==$?(y=(0,i.jsx)(d.Q,{onClick:$,children:”Enable compact line height”}),R[9]=$,R[10]=y):y=R[10],R[11]!==M?(w=(0,i.jsx)(d.Q,{onClick:M,variant:”invisible”,children:”Dismiss”}),R[11]=M,R[12]=w):w=R[12],R[13]!==y||R[14]!==w?(N=(0,i.jsxs)(c.A.Content,{className:s,children:[l,o,(0,i.jsxs)(“div”,{className:”d-flex gap-2 flex-row w-full flex-wrap”,children:[y,w]})]}),R[13]=y,R[14]=w,R[15]=N):N=R[15],R[16]!==P||R[17]!==N?(S=(0,i.jsx)(c.A,{open:P,caret:”top-right”,className:”DiffCompactLinesPopover-module__PopoverContainer–A4URR”,children:N}),R[16]=P,R[17]=N,R[18]=S):S=R[18],S)}function j(){}function C(){}try{y.displayName||(y.displayName=”DiffCompactLinesPopover”)}catch{}var w=n(79472);function N(e){let t,n,r,l,o,d=(0,a.c)(16),{whitespacePreferenceAvailable:c,lineSpacingPreferenceAvailable:u,defaultHideWhitespace:m,onUpdateWhitespace:f,reloadOnChange:h}=e,p=void 0===c||c,x=void 0===u||u,{data:b}=(0,w.ID)(),y=(0,w.Qn)(void 0!==m&&m);d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:L,onError:S},d[0]=t):t=d[0];let{mutate:j}=(0,g.U)(t);d[1]!==y||d[2]!==f||d[3]!==h?(n=()=>{(0,w.bJ)(“w”,y?”0″:”1″),f?.(!y),void 0!==h&&h()},d[1]=y,d[2]=f,d[3]=h,d[4]=n):n=d[4];let C=n;return b&&(p||x)?(d[5]!==y||d[6]!==C||d[7]!==p?(r=p&&(0,i.jsx)(s.l.Item,{selected:y,onSelect:C,children:”Hide whitespace”}),d[5]=y,d[6]=C,d[7]=p,d[8]=r):r=d[8],d[9]!==b||d[10]!==x||d[11]!==j?(l=x&&(0,i.jsx)(s.l.Item,{selected:”compact”===b.lineSpacing,onSelect:()=>j({lineSpacing:”compact”===b.lineSpacing?”relaxed”:”compact”}),children:”Compact line height”}),d[9]=b,d[10]=x,d[11]=j,d[12]=l):l=d[12],d[13]!==r||d[14]!==l?(o=(0,i.jsxs)(s.l.Group,{“aria-label”:”Format”,selectionVariant:”multiple”,variant:”subtle”,children:[r,l]}),d[13]=r,d[14]=l,d[15]=o):o=d[15],o):null}function S(){}function L(){}try{N.displayName||(N.displayName=”DiffLinePresentationToggles”)}catch{}function D(e){let t,n,r,l,o,d,c,u=(0,a.c)(17),{reloadOnChange:m}=e,f=void 0!==m&&m,{data:h}=(0,w.ID)(),p=h?.splitPreference;u[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:_,onError:I},u[0]=t):t=u[0];let{mutate:x}=(0,g.U)(t);u[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(s.l.GroupHeading,{children:”Layout”}),u[1]=n):n=u[1];let b=”unified”===p;u[2]!==f||u[3]!==x?(r=()=>{x({splitPreference:”unified”}),(0,w.bJ)(“diff”,”unified”),f&&window.location.reload()},u[2]=f,u[3]=x,u[4]=r):r=u[4],u[5]!==b||u[6]!==r?(l=(0,i.jsx)(s.l.Item,{selected:b,onSelect:r,children:”Unified”}),u[5]=b,u[6]=r,u[7]=l):l=u[7];let y=”split”===p;return u[8]!==f||u[9]!==x?(o=()=>{x({splitPreference:”split”}),(0,w.bJ)(“diff”,”split”),f&&window.location.reload()},u[8]=f,u[9]=x,u[10]=o):o=u[10],u[11]!==y||u[12]!==o?(d=(0,i.jsx)(s.l.Item,{selected:y,onSelect:o,children:”Split”}),u[11]=y,u[12]=o,u[13]=d):d=u[13],u[14]!==l||u[15]!==d?(c=(0,i.jsxs)(s.l.Group,{selectionVariant:”single”,children:[n,l,d]}),u[14]=l,u[15]=d,u[16]=c):c=u[16],c}function I(){}function _(){}try{D.displayName||(D.displayName=”DiffViewPreferenceToggle”)}catch{}var k=n(18799);function R(){let e,t,n,r=(0,a.c)(7),{data:l}=(0,w.ID)();r[0]===Symbol.for(“react.memo_cache_sentinel”)?(e={onSuccess:E,onError:A},r[0]=e):e=r[0];let{mutate:o}=(0,g.U)(e);if(!l)return null;let d=l.commentsPreference===k.sI.Collapsed;return r[1]!==d||r[2]!==o?(t=()=>o({commentsPreference:d?k.sI.Visible:k.sI.Collapsed}),r[1]=d,r[2]=o,r[3]=t):t=r[3],r[4]!==d||r[5]!==t?(n=(0,i.jsx)(s.l.Group,{“aria-label”:”Comments”,selectionVariant:”single”,children:(0,i.jsx)(s.l.Item,{role:”menuitemcheckbox”,selected:d,onSelect:t,children:”Minimize comments”})}),r[4]=d,r[5]=t,r[6]=n):n=r[6],n}function A(){}function E(){}try{R.displayName||(R.displayName=”DiffCommentsPreferenceToggle”)}catch{}var T=n(30459);let O=[“layout”,”comments”,”whitespace”,”line-spacing”];function P(e){let t,n,r,l,o,d,c,u,m,f=(0,a.c)(29),{additionalPreferences:h,defaultHideWhitespace:p,enabledDiffViewSettings:g,onUpdateWhitespace:x,reloadOnSplitPreferenceChange:b,reloadOnWhitespaceChange:y}=e,j=void 0===g?O:g,C=void 0!==b&&b,w=void 0!==y&&y;f[0]!==j?(t=j.includes(“layout”)&&j.includes(“comments”),f[0]=j,f[1]=t):t=f[1];let S=t;f[2]!==j?(n=j.includes(“line-spacing”)||j.includes(“whitespace”),f[2]=j,f[3]=n):n=f[3];let L=n;f[4]!==j||f[5]!==L?(r=L&&(j.includes(“comments”)||j.includes(“layout”)),f[4]=j,f[5]=L,f[6]=r):r=f[6];let I=r;return f[7]!==j||f[8]!==C?(l=j.includes(“layout”)&&(0,i.jsx)(D,{reloadOnChange:C}),f[7]=j,f[8]=C,f[9]=l):l=f[9],f[10]!==S?(o=S&&(0,i.jsx)(s.l.Divider,{}),f[10]=S,f[11]=o):o=f[11],f[12]!==j?(d=j.includes(“comments”)&&(0,i.jsx)(R,{}),f[12]=j,f[13]=d):d=f[13],f[14]!==I?(c=I&&(0,i.jsx)(s.l.Divider,{}),f[14]=I,f[15]=c):c=f[15],f[16]!==p||f[17]!==j||f[18]!==x||f[19]!==w||f[20]!==L?(u=L?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(N,{defaultHideWhitespace:p,lineSpacingPreferenceAvailable:j.includes(“line-spacing”),whitespacePreferenceAvailable:j.includes(“whitespace”),onUpdateWhitespace:x,reloadOnChange:w?F:void 0})}):null,f[16]=p,f[17]=j,f[18]=x,f[19]=w,f[20]=L,f[21]=u):u=f[21],f[22]!==h||f[23]!==c||f[24]!==u||f[25]!==l||f[26]!==o||f[27]!==d?(m=(0,i.jsxs)(i.Fragment,{children:[l,o,d,c,u,h]}),f[22]=h,f[23]=c,f[24]=u,f[25]=l,f[26]=o,f[27]=d,f[28]=m):m=f[28],m}function F(){return window.location.reload()}function $(e){let t,n,d,c,u,m,f=(0,a.c)(21),{additionalPreferences:h,invisible:p,defaultHideWhitespace:g,enabledDiffViewSettings:x,onUpdateWhitespace:b,reloadOnSplitPreferenceChange:j,reloadOnWhitespaceChange:C,small:w,userNotices:N}=e,S=void 0===x?O:x,L=void 0!==j&&j,D=void 0!==C&&C,{sendAnalyticsEvent:I}=(0,T.s)();f[0]!==I?(t=()=>{I(“diff_view.settings.open”,”DIFF_VIEW_SETTINGS_BUTTON”)},f[0]=I,f[1]=t):t=f[1];let _=t,k=w?”small”:”medium”,R=void 0===p||p?”invisible”:”default”;return f[2]!==_||f[3]!==k||f[4]!==R?(n=(0,i.jsx)(l.W.Anchor,{children:(0,i.jsx)(o.K,{“aria-label”:”Open diff view settings”,icon:r.GearIcon,size:k,variant:R,onClick:_})}),f[2]=_,f[3]=k,f[4]=R,f[5]=n):n=f[5],f[6]!==h||f[7]!==g||f[8]!==S||f[9]!==b||f[10]!==L||f[11]!==D?(d=(0,i.jsx)(l.W.Overlay,{children:(0,i.jsx)(s.l,{children:(0,i.jsx)(P,{additionalPreferences:h,defaultHideWhitespace:g,enabledDiffViewSettings:S,onUpdateWhitespace:b,reloadOnSplitPreferenceChange:L,reloadOnWhitespaceChange:D})})}),f[6]=h,f[7]=g,f[8]=S,f[9]=b,f[10]=L,f[11]=D,f[12]=d):d=f[12],f[13]!==n||f[14]!==d?(c=(0,i.jsxs)(l.W,{children:[n,d]}),f[13]=n,f[14]=d,f[15]=c):c=f[15],f[16]!==N?(u=(0,i.jsx)(y,{userNotices:N}),f[16]=N,f[17]=u):u=f[17],f[18]!==c||f[19]!==u?(m=(0,i.jsxs)(i.Fragment,{children:[c,u]}),f[18]=c,f[19]=u,f[20]=m):m=f[20],m}try{P.displayName||(P.displayName=”DiffViewSettingsMenuContent”)}catch{}try{$.displayName||($.displayName=”DiffViewSettings”)}catch{}},28199:(e,t,n)=>{n.d(t,{a:()=>r});var i=n(96540),a=n(2694);function r(e){let[t,n]=(0,i.useState)(!1),[r,s]=(0,i.useState)(!1),l={root:null,rootMargin:”0px”,threshold:[0,1],…e},o=(0,i.useCallback)(e=>{let[t]=e;s(1>(t?.intersectionRatio||0)),n((t?.rootBounds?.height??0)>0)},[s]),[d,c]=(0,a.B)(o,l);return{isSticky:r,hasRoots:t,observe:d,unobserve:c}}},31675:(e,t,n)=>{n.d(t,{A:()=>i});let i={“hide-on-mobile”:”responsive-module__hide-on-mobile–lWlU1″,”hide-on-desktop”:”responsive-module__hide-on-desktop–op38F”,”hide-on-small”:”responsive-module__hide-on-small–oDr47″,”hide-on-medium-up”:”responsive-module__hide-on-medium-up–imsgz”}},33195:(e,t,n)=>{n.d(t,{u:()=>u});var i=n(74848),a=n(68273),r=n(16522),s=n(46589),l=n(96540),o=n(34164);let d=”PullRequestStateLabel-module__unlisted–pcrfP”;var c=n(33578);let u=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(7),{className:l,state:u}=e,f=c.a[u];if(u===c.Q.Unlisted){let e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“span”,{className:d,children:[(0,i.jsx)(m,{}),” Unlisted”]}),a[0]=e):e=a[0],e}a[1]!==l?(t=(0,o.$)(“flex-self-start”,l),a[1]=l,a[2]=t):t=a[2];let h=f.status;return a[3]!==f.description||a[4]!==t||a[5]!==h?(n=(0,i.jsx)(s.A,{className:t,status:h,children:f.description}),a[3]=f.description,a[4]=t,a[5]=h,a[6]=n):n=a[6],n}:function({className:e,state:t}){let n=(0,l.useMemo)(()=>c.a[t],[t]);return t===c.Q.Unlisted?(0,i.jsxs)(“span”,{className:d,children:[(0,i.jsx)(m,{}),” Unlisted”]}):(0,i.jsx)(s.A,{className:(0,o.$)(“flex-self-start”,e),status:n.status,children:n.description})},m=(0,a.Z6)()?function(){let e,t=(0,r.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“svg”,{width:”16″,height:”16″,viewBox:”0 0 16 16″,xmlns:”http://www.w3.org/2000/svg”,”aria-hidden”:”true”,fill:”currentColor”,children:[(0,i.jsx)(“path”,{fillRule:”evenodd”,clipRule:”evenodd”,d:”M2.5 3.25C2.5 2.83579 2.83579 2.5 3.25 2.5C3.66421 2.5 4 2.83579 4 3.25C4 3.66421 3.66421 4 3.25 4C2.83579 4 2.5 3.66421 2.5 3.25ZM3.25 1C2.00736 1 1 2.00736 1 3.25C1 4.22966 1.62611 5.06309 2.5 5.37197V10.628C1.62611 10.9369 1 11.7703 1 12.75C1 13.9926 2.00736 15 3.25 15C4.49264 15 5.5 13.9926 5.5 12.75C5.5 11.7703 4.87389 10.9369 4 10.628V5.37197C4.87389 5.06309 5.5 4.22966 5.5 3.25C5.5 2.00736 4.49264 1 3.25 1ZM3.25 12C2.83579 12 2.5 12.3358 2.5 12.75C2.5 13.1642 2.83579 13.5 3.25 13.5C3.66421 13.5 4 13.1642 4 12.75C4 12.3358 3.66421 12 3.25 12Z”}),(0,i.jsx)(“path”,{d:”M14 7.5C14 8.19036 13.3844 8.75 12.625 8.75C11.8656 8.75 11.25 8.19036 11.25 7.5C11.25 6.80964 11.8656 6.25 12.625 6.25C13.3844 6.25 14 6.80964 14 7.5Z”}),(0,i.jsx)(“path”,{d:”M14 2.75C14 3.44036 13.3844 4 12.625 4C11.8656 4 11.25 3.44036 11.25 2.75C11.25 2.05964 11.8656 1.5 12.625 1.5C13.3844 1.5 14 2.05964 14 2.75Z”}),(0,i.jsx)(“path”,{d:”M10.2197 10.7197C10.5126 10.4268 10.9874 10.4268 11.2803 10.7197L14.2803 13.7197C14.5732 14.0126 14.5732 14.4874 14.2803 14.7803C13.9874 15.0732 13.5126 15.0732 13.2197 14.7803L10.2197 11.7803C9.92683 11.4874 9.92683 11.0126 10.2197 10.7197Z”})]}),t[0]=e):e=t[0],e}:function(){return(0,i.jsxs)(“svg”,{width:”16″,height:”16″,viewBox:”0 0 16 16″,xmlns:”http://www.w3.org/2000/svg”,”aria-hidden”:”true”,fill:”currentColor”,children:[(0,i.jsx)(“path”,{fillRule:”evenodd”,clipRule:”evenodd”,d:”M2.5 3.25C2.5 2.83579 2.83579 2.5 3.25 2.5C3.66421 2.5 4 2.83579 4 3.25C4 3.66421 3.66421 4 3.25 4C2.83579 4 2.5 3.66421 2.5 3.25ZM3.25 1C2.00736 1 1 2.00736 1 3.25C1 4.22966 1.62611 5.06309 2.5 5.37197V10.628C1.62611 10.9369 1 11.7703 1 12.75C1 13.9926 2.00736 15 3.25 15C4.49264 15 5.5 13.9926 5.5 12.75C5.5 11.7703 4.87389 10.9369 4 10.628V5.37197C4.87389 5.06309 5.5 4.22966 5.5 3.25C5.5 2.00736 4.49264 1 3.25 1ZM3.25 12C2.83579 12 2.5 12.3358 2.5 12.75C2.5 13.1642 2.83579 13.5 3.25 13.5C3.66421 13.5 4 13.1642 4 12.75C4 12.3358 3.66421 12 3.25 12Z”}),(0,i.jsx)(“path”,{d:”M14 7.5C14 8.19036 13.3844 8.75 12.625 8.75C11.8656 8.75 11.25 8.19036 11.25 7.5C11.25 6.80964 11.8656 6.25 12.625 6.25C13.3844 6.25 14 6.80964 14 7.5Z”}),(0,i.jsx)(“path”,{d:”M14 2.75C14 3.44036 13.3844 4 12.625 4C11.8656 4 11.25 3.44036 11.25 2.75C11.25 2.05964 11.8656 1.5 12.625 1.5C13.3844 1.5 14 2.05964 14 2.75Z”}),(0,i.jsx)(“path”,{d:”M10.2197 10.7197C10.5126 10.4268 10.9874 10.4268 11.2803 10.7197L14.2803 13.7197C14.5732 14.0126 14.5732 14.4874 14.2803 14.7803C13.9874 15.0732 13.5126 15.0732 13.2197 14.7803L10.2197 11.7803C9.92683 11.4874 9.92683 11.0126 10.2197 10.7197Z”})]})};try{u.displayName||(u.displayName=”PullRequestStateLabel”)}catch{}try{m.displayName||(m.displayName=”GitPullRequestUnlistedSvg”)}catch{}},33578:(e,t,n)=>{n.d(t,{Q:()=>i,a:()=>a});let i={Open:”OPEN”,Closed:”CLOSED”,Merged:”MERGED”,Queued:”QUEUED”,Draft:”DRAFT”,Unlisted:”UNLISTED”},a={[i.Open]:{description:”Open”,status:”pullOpened”},[i.Closed]:{description:”Closed”,status:”pullClosed”},[i.Queued]:{description:”Queued”,status:”pullQueued”},[i.Merged]:{description:”Merged”,status:”pullMerged”},[i.Draft]:{description:”Draft”,status:”draft”},[i.Unlisted]:{description:”Unlisted”,status:”unlisted”}}},33644:(e,t,n)=>{n.d(t,{A:()=>i});let i={stickyHeader:”use-sticky-header-module__stickyHeader–UQFpz”}},34261:(e,t,n)=>{n.d(t,{W:()=>u,f:()=>c});var i=n(68273),a=n(16522),r=n(65510),s=n(20622),l=n(53885),o=n(96379),d=n(50129);let c=(0,i.Z6)()?function(){let e,t=(0,a.c)(2),{basePageDataUrl:n}=(0,d.Yu)(),i=`basePageDataURL:${n}`;return t[0]!==i?(e=[s.uT.header,i],t[0]=i,t[1]=e):e=t[1],e}:function(){let{basePageDataUrl:e}=(0,d.Yu)();return[s.uT.header,`basePageDataURL:${e}`]},u=(0,i.Z6)()?function(e){let t,n,i=(0,a.c)(6),d=(0,l.e)(s.uT.header),u=c();return i[0]!==d?(t=async()=>{let e=await (0,o.QJ)(d);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},i[0]=d,i[1]=t):t=i[1],i[2]!==e||i[3]!==u||i[4]!==t?(n={queryKey:u,queryFn:t,initialData:e,staleTime:1/0},i[2]=e,i[3]=u,i[4]=t,i[5]=n):n=i[5],(0,r.U)(n)}:function(e){let t=(0,l.e)(s.uT.header),n=c();return(0,r.U)({queryKey:n,queryFn:async()=>{let e=await (0,o.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})}},34535:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(68273),a=n(16522),r=n(96540);let s=(0,i.xS)()?function(e){let t,n,i=(0,a.c)(4),{focusRowRef:s,mouseRowRef:l}=e,[o,d]=(0,r.useState)(!1);return i[0]!==s||i[1]!==l?(t=()=>{let e=s.current,t=l.current;if(!e||!t)return;let n=()=>{let t=e.querySelector(“.PRIVATE_TreeView-item-content-text”);t?.scrollWidth!==t?.offsetWidth&&d(!0)},i=()=>n(),a=()=>d(!1),r=()=>n(),o=()=>d(!1);return e.addEventListener(“focus”,i),e.addEventListener(“blur”,a),t.addEventListener(“mouseenter”,r),t.addEventListener(“mouseleave”,o),()=>{e.removeEventListener(“focus”,i),e.removeEventListener(“blur”,a),t.removeEventListener(“mouseenter”,r),t.removeEventListener(“mouseleave”,o)}},n=[s,l],i[0]=s,i[1]=l,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,r.useEffect)(t,n),o}:function({focusRowRef:e,mouseRowRef:t}){let[n,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let n=e.current,a=t.current;if(!n||!a)return;let r=()=>{let e=n.querySelector(“.PRIVATE_TreeView-item-content-text”);e?.scrollWidth!==e?.offsetWidth&&i(!0)},s=()=>r(),l=()=>i(!1),o=()=>r(),d=()=>i(!1);return n.addEventListener(“focus”,s),n.addEventListener(“blur”,l),a.addEventListener(“mouseenter”,o),a.addEventListener(“mouseleave”,d),()=>{n.removeEventListener(“focus”,s),n.removeEventListener(“blur”,l),a.removeEventListener(“mouseenter”,o),a.removeEventListener(“mouseleave”,d)}},[e,t]),n}},36729:(e,t,n)=>{n.d(t,{Vv:()=>r,Wr:()=>s,e:()=>a,zW:()=>i});let i=”FILE”;function a(e){return”left”===e||”right”===e}let r=”empty-diff-line”,s={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”)}},37732:(e,t,n)=>{n.d(t,{a:()=>s});let i=new Set([“children”,”localName”,”ref”,”style”,”className”]),a=new WeakMap,r=(e,t,n,i,r)=>{let s,l,o=null==r?void 0:r[t];void 0===o||n===i?null==n&&t in HTMLElement.prototype?e.removeAttribute(t):e[t]=n:(void 0===(s=a.get(e))&&a.set(e,s=new Map),l=s.get(o),void 0!==n?void 0===l?(s.set(o,l={handleEvent:n}),e.addEventListener(o,l)):l.handleEvent=n:void 0!==l&&(s.delete(o),e.removeEventListener(o,l)))};function s(e=window.React,t,n,a,l){let o,d,c;void 0===t?({tagName:d,elementClass:c,events:a,displayName:l}=e,o=e.react):(o=e,c=n,d=t);let u=o.Component,m=o.createElement,f=new Set(Object.keys(null!=a?a:{}));let v=class v extends u{constructor(){super(…arguments),this.o=null}t(e){if(null!==this.o)for(let t in this.i)r(this.o,t,this.props[t],e?e[t]:void 0,a)}componentDidMount(){var e;this.t(),null==(e=this.o)||e.removeAttribute(“defer-hydration”)}componentDidUpdate(e){this.t(e)}render(){let{_$Gl:e,…t}=this.props;this.h!==e&&(this.u=t=>{null!==e&&(“function”==typeof e?e(t):e.current=t),this.o=t,this.h=e}),this.i={};let n={ref:this.u};for(let[e,a]of Object.entries(t))i.has(e)?n[“className”===e?”class”:e]=a:f.has(e)||e in c.prototype?this.i[e]=a:n[e]=a;return n.suppressHydrationWarning=!0,m(d,n)}};v.displayName=null!=l?l:c.name;let h=o.forwardRef((e,t)=>m(v,{…e,_$Gl:t},null==e?void 0:e.children));return h.displayName=v.displayName,h}},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}},39467:(e,t,n)=>{n.d(t,{Gy:()=>L,LB:()=>k,nn:()=>R,lm:()=>_});var i=n(74848),a=n(96540),r=n(35750),s=n(18150),l=n(85242),o=n(88243),d=n(16213),c=n(50467),u=new WeakMap,m=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,g=new WeakMap,x=new WeakSet,b=new WeakSet,y=new WeakSet,j=new WeakSet;let ScreenSizeStore=class ScreenSizeStore{computeSize(e){return(0,o._)(this,x,C).call(this,e)}constructor(e,t){(0,d._)(this,x),(0,d._)(this,b),(0,d._)(this,y),(0,d._)(this,j),(0,s._)(this,u,{writable:!0,value:null}),(0,s._)(this,m,{writable:!0,value:null}),(0,s._)(this,f,{writable:!0,value:new Set}),(0,s._)(this,h,{writable:!0,value:void 0}),(0,s._)(this,p,{writable:!0,value:void 0}),(0,c._)(this,”subscribe”,e=>{if(“undefined”==typeof document)throw Error(“ScreenSizeStore.subscribe() cannot be called on the server”);return(0,r._)(this,f).add(e),(0,o._)(this,y,N).call(this),()=>{(0,r._)(this,f).delete(e),(0,o._)(this,j,S).call(this)}}),(0,c._)(this,”getSnapshot”,()=>{if(“undefined”==typeof document)throw Error(“ScreenSizeStore.getSnapshot() cannot be called on the server”);return null===(0,r._)(this,u)?(0,o._)(this,b,w).call(this):(0,r._)(this,u)}),(0,s._)(this,g,{writable:!0,value:e=>{let t=e[0];if(!t)return;let n=(0,o._)(this,x,C).call(this,t.contentRect.width);if(null===(0,r._)(this,u)||n!==(0,r._)(this,u))for(let e of((0,l._)(this,u,n),(0,r._)(this,f)))e()}}),(0,l._)(this,h,[…e].sort((e,t)=>t-e)),(0,l._)(this,p,t)}};function C(e){for(let t of(0,r._)(this,h))if(e>=t)return t;return(0,r._)(this,p)}function w(){if(“undefined”==typeof document||!document.documentElement)return(0,l._)(this,u,(0,r._)(this,p)),(0,r._)(this,p);let e=document.documentElement.clientWidth;0===e&&”undefined”!=typeof window&&”number”==typeof window.innerWidth&&(e=window.innerWidth);let t=(0,o._)(this,x,C).call(this,e);return(0,l._)(this,u,t),t}function N(){(0,r._)(this,m)||((0,l._)(this,m,new ResizeObserver((0,r._)(this,g))),(0,r._)(this,m).observe(document.documentElement),null===(0,r._)(this,u)&&(0,o._)(this,b,w).call(this))}function S(){0===(0,r._)(this,f).size&&(0,r._)(this,m)&&((0,r._)(this,m).disconnect(),(0,l._)(this,m,null))}let L={small:1,medium:544,large:768,xlarge:1012,xxlarge:1280,xxxlarge:1350,xxxxlarge:1440},D=new ScreenSizeStore([L.xxxxlarge,L.xxxlarge,L.xxlarge,L.xlarge,L.large,L.medium,L.small],L.small),I=a.createContext({screenSize:L.small});function _(){return a.useContext(I)}function k({children:e,initialValue:t=L.small}){let n=(0,a.useSyncExternalStore)(D.subscribe,D.getSnapshot,()=>t),r=(0,a.useMemo)(()=>({screenSize:n}),[n]);return(0,i.jsx)(I,{value:r,children:e})}function R(e){return D.computeSize(e)}try{I.displayName||(I.displayName=”ScreenContext”)}catch{}try{k.displayName||(k.displayName=”ScreenSizeProvider”)}catch{}},39595:(e,t,n)=>{let i;n.d(t,{CF:()=>p,p_:()=>R,FB:()=>u,Se:()=>S,aC:()=>_,zV:()=>k});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){I(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=I(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,y=new Promise(e=>{“loading”!==document.readyState?e():document.addEventListener(“readystatechange”,()=>e(),{once:!0})}),j=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)}),C={ready:()=>y,firstInteraction:()=>j,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)})},w=new WeakMap;function N(e){cancelAnimationFrame(w.get(e)||0),w.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 C?C[i]:C.ready;for(let e of b.get(t)||[])a(t).then(e);b.delete(t),w.delete(e)}}}))}function S(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);L(document)}function L(e){i||(i=new MutationObserver(e=>{if(b.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&N(e)})),N(e),i.observe(e,{subtree:!0,childList:!0})}let D=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:()=>[…I(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),L(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 I(e,t){if(!Object.prototype.hasOwnProperty.call(e,D)){let t=e[D],n=e[D]=new Map;if(t)for(let[e,i]of t)n.set(e,new Set(i))}let n=e[D];return n.has(t)||n.set(t,new Set),n.get(t)}function _(e,t){I(e,”target”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){return u(this,t)}})}function k(e,t){I(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)}},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}}},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”}},42257:(e,t,n)=>{n.d(t,{d:()=>o});var i=n(74848),a=n(68273),r=n(16522),s=n(99896);let l=”AsyncChecksStatusBadge-module__ChecksStatusBadge–Ddd3K”,o=(0,a.kw)()?function(e){let t,n,a=(0,r.c)(8),{status:o,oid:d,repo:c,badgeProps:u,descriptionString:m}=e;a[0]!==u?(t=void 0===u?{}:u,a[0]=u,a[1]=t):t=a[1];let f=t,h=void 0===m?””:m,[p,g]=(0,s.ym)(d,c);return a[2]!==f||a[3]!==h||a[4]!==p||a[5]!==g||a[6]!==o?(n=o?(0,i.jsx)(s.B6,{disablePopover:!1,size:”small”,statusRollup:o,combinedStatus:p,descriptionText:h,onWillOpenPopup:g,buttonClassName:l,…f}):null,a[2]=f,a[3]=h,a[4]=p,a[5]=g,a[6]=o,a[7]=n):n=a[7],n}:function({status:e,oid:t,repo:n,badgeProps:a={},descriptionString:r=””}){let[o,d]=(0,s.ym)(t,n);return e?(0,i.jsx)(s.B6,{disablePopover:!1,size:”small”,statusRollup:e,combinedStatus:o,descriptionText:r,onWillOpenPopup:d,buttonClassName:l,…a}):null};try{o.displayName||(o.displayName=”AsyncChecksStatusBadge”)}catch{}},43147:(e,t,n)=>{n.d(t,{w:()=>c});var i=n(74848),a=n(68273),r=n(16522),s=n(98755),l=n(30459),o=n(16790),d=n(68534);let c=(0,a.kw)()?function(e){let t,n,a,c,u,m=(0,r.c)(17),{sha:f,direction:h,className:p}=e,g=void 0===h?”s”:h,{sendAnalyticsEvent:x}=(0,l.s)(),{loggingPrefix:b,loggingPayload:y}=(0,o.xe)(),j=(0,o.eX)();m[0]!==y||m[1]!==b||m[2]!==x||m[3]!==j?(t=()=>{j&&x(`${b}click`,”COPY_SHA_CLICKED”,y)},m[0]=y,m[1]=b,m[2]=x,m[3]=j,m[4]=t):t=m[4];let C=t;m[5]!==f?(n=(0,d.F)(f),m[5]=f,m[6]=n):n=m[6];let w=`Copy full SHA for ${n}`;return m[7]!==g?(a={direction:g},m[7]=g,m[8]=a):a=m[8],m[9]!==p||m[10]!==f||m[11]!==w||m[12]!==a?(c=(0,i.jsx)(s.T,{textToCopy:f,ariaLabel:w,tooltipProps:a,size:”small”,className:p}),m[9]=p,m[10]=f,m[11]=w,m[12]=a,m[13]=c):c=m[13],m[14]!==C||m[15]!==c?(u=(0,i.jsx)(“div”,{onClick:C,children:c}),m[14]=C,m[15]=c,m[16]=u):u=m[16],u}:function({sha:e,direction:t=”s”,className:n}){let{sendAnalyticsEvent:a}=(0,l.s)(),{loggingPrefix:r,loggingPayload:c}=(0,o.xe)(),u=(0,o.eX)();return(0,i.jsx)(“div”,{onClick:()=>{u&&a(`${r}click`,”COPY_SHA_CLICKED”,c)},children:(0,i.jsx)(s.T,{textToCopy:e,ariaLabel:`Copy full SHA for ${(0,d.F)(e)}`,tooltipProps:{direction:t},size:”small”,className:n})})};try{c.displayName||(c.displayName=”CopySHA”)}catch{}},43362:(e,t,n)=>{n.d(t,{Be:()=>r,Sl:()=>l,Wp:()=>a,YY:()=>d,jH:()=>o,wm:()=>s});var i=n(36729);function a(e){return e.reduce((e,t)=>(e[t.path]=t,e),{})}function r(e){return e.reduce((e,t)=>(e[t.path]=!!t.markedAsViewed,e),{})}function s(e){let t=e.comments.map(e=>parseInt(e.threadId));return{id:e.id,pendingReviewIDs:t,comments:e.comments}}function l(e){return e.reduce((e,t)=>(e[t.path]=t,e),{})}function o(e,t){if(!e)return;let n={};if(!t)return n;for(let a of t){if(!a.markersMap||0===Object.keys(a.markersMap).length)continue;let t=a.path,r={};for(let t in a.markersMap){let n=a.markersMap[t];if(!n?.threads&&!n?.annotations)continue;let s={threads:[],annotations:[]};if(n.annotations)for(let t of n.annotations){let n=e.annotations[Number(t.id)];n&&s.annotations.push(n)}if(n.threads)for(let i of n.threads){let n=function(e,t){if(“FILE”===e)return;let n=e[0];if(!u(n))return;let i=Number(e.slice(1)),a=-1,r=”R”;if(t.start){a=parseInt(t.start.slice(1));let e=t.start[0];u(e)&&(r=e)}else a=i,r=n;return{endLine:i,endDiffSide:c[n],startLine:a,startDiffSide:c[r],isOutdated:!!t.outdatedReason}}(t,i),a=e.threads[Number(i.id)];a&&n&&(a={…a,positioning:n,subject:n}),a&&s.threads.push(a)}”FILE”===t?r[i.zW]=s:r[t]=s}n[t]=r}return n}function d(e){return{endLine:e.line,endDiffSide:e.side?.toLowerCase()===”right”?”RIGHT”:”LEFT”,startLine:e.startLine??e.line,startDiffSide:e.startSide?e.startSide?.toLowerCase()===”right”?”RIGHT”:”LEFT”:e.side?.toLowerCase()===”right”?”RIGHT”:”LEFT”,isOutdated:!1}}let c={L:”LEFT”,R:”RIGHT”};function u(e){return”L”===e||”R”===e}},43883:(e,t,n)=>{n.d(t,{Gl:()=>r,TC:()=>d,ai:()=>s,eh:()=>o});var i=n(21067);let a={};function r(e,t){let n=t?.currency??”USD”;return(a[n]||(a[n]=new Intl.NumberFormat((0,i.JK)(),{currency:n,style:”currency”}))).format(e)}function s(e,t){return new Intl.NumberFormat((0,i.JK)(),{maximumFractionDigits:t?.precision}).format(e)}let l=[“k”,”m”,”b”];function o(e,t){let{suffix:n=!0,capping:i=1/0,precision:a=1}=t??{},r=””,o=Math.min(i,e);if(n){let e=c(o);r=l[e-1]||””,o/=1e3**e}let d=s(o,{precision:a})+r;return e>i?`${d}+`:d}function d(e){if(e<=1e4)return 1;let t=c(e);return e/1e3**t>=10?0:1}function c(e){let t=Math.floor(Math.log(Math.max(Math.abs(e),1))/Math.log(1e3));return Math.min(l.length,t)}},44953:(e,t,n)=>{n.d(t,{_:()=>i});function i(e,t){if(void 0===e)throw TypeError(“attempted to “+t+” private static field before its declaration”)}},48926:(e,t,n)=>{n.d(t,{C:()=>f,j:()=>u});var i=n(74848),a=n(68273),r=n(16522),s=n(61200),l=n(81945),o=n(54571),d=n(62935),c=n(4095);let u=(0,a.kw)()?function(e){let t,n,a,u,f,h=(0,r.c)(19),{commit:p,repo:g,children:x,settings:b,textVariant:y}=e,j=(0,c.NO)(p.oid);h[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],h[0]=t):t=h[0];let[C]=(0,o.I)(m,!0,t),w=j?.onBehalfOf;return h[1]!==b?(n={fontWeight:”normal”,fontColor:”fg.muted”,avatarSize:16,…b},h[1]=b,h[2]=n):n=h[2],h[3]!==p.committedDate||h[4]!==C?(a=!C&&(0,i.jsx)(d.A,{className:”pl-1″,datetime:p.committedDate}),h[3]=p.committedDate,h[4]=C,h[5]=a):a=h[5],h[6]!==C?(u=C&&(0,i.jsx)(l.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”}),h[6]=C,h[7]=u):u=h[7],h[8]!==x||h[9]!==p.authors||h[10]!==p.committer||h[11]!==p.committerAttribution||h[12]!==g||h[13]!==w||h[14]!==n||h[15]!==a||h[16]!==u||h[17]!==y?(f=(0,i.jsxs)(s.jF,{authors:p.authors,committer:p.committer,committerAttribution:p.committerAttribution,onBehalfOf:w,repo:g,includeVerbs:!0,authorSettings:n,textVariant:y,children:[a,u,x]}),h[8]=x,h[9]=p.authors,h[10]=p.committer,h[11]=p.committerAttribution,h[12]=g,h[13]=w,h[14]=n,h[15]=a,h[16]=u,h[17]=y,h[18]=f):f=h[18],f}:function({commit:e,repo:t,children:n,settings:a,textVariant:r}){let u=(0,c.NO)(e.oid),[m]=(0,o.I)(()=>!1,!0,[]);return(0,i.jsxs)(s.jF,{authors:e.authors,committer:e.committer,committerAttribution:e.committerAttribution,onBehalfOf:u?.onBehalfOf,repo:t,includeVerbs:!0,authorSettings:{fontWeight:”normal”,fontColor:”fg.muted”,avatarSize:16,…a},textVariant:r,children:[!m&&(0,i.jsx)(d.A,{className:”pl-1″,datetime:e.committedDate}),m&&(0,i.jsx)(l.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”}),n]})};function m(){return!1}let f=(0,a.kw)()?function(e){let t,n,a,c,u=(0,r.c)(12),{commit:m,repo:f,textVariant:p}=e;u[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],u[0]=t):t=u[0];let[g]=(0,o.I)(h,!0,t);return u[1]!==m.pushedDate||u[2]!==g?(n=!g&&(0,i.jsx)(d.A,{className:”pl-1″,datetime:m.pushedDate}),u[1]=m.pushedDate,u[2]=g,u[3]=n):n=u[3],u[4]!==g?(a=g&&(0,i.jsx)(l.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”}),u[4]=g,u[5]=a):a=u[5],u[6]!==m.pusher||u[7]!==f||u[8]!==n||u[9]!==a||u[10]!==p?(c=(0,i.jsxs)(s.Cf,{pusher:m.pusher,repo:f,textVariant:p,children:[n,a]}),u[6]=m.pusher,u[7]=f,u[8]=n,u[9]=a,u[10]=p,u[11]=c):c=u[11],c}:function({commit:e,repo:t,textVariant:n}){let[a]=(0,o.I)(()=>!1,!0,[]);return(0,i.jsxs)(s.Cf,{pusher:e.pusher,repo:t,textVariant:n,children:[!a&&(0,i.jsx)(d.A,{className:”pl-1″,datetime:e.pushedDate}),a&&(0,i.jsx)(l.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”})]})};function h(){return!1}try{u.displayName||(u.displayName=”CommitAttribution”)}catch{}try{f.displayName||(f.displayName=”PushAttribution”)}catch{}},49086:(e,t,n)=>{n.d(t,{n:()=>D});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),y=n(94236),j=n(38621);let C=({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)(j.CodeIcon,{className:”hide-sm”}),trailingVisual:()=>(0,i.jsx)(j.TriangleDownIcon,{}),size:n||”medium”,children:”Code”}),children:t}):(0,i.jsxs)(y.W,{children:[(0,i.jsx)(y.W.Button,{variant:e?”primary”:void 0,leadingVisual:()=>(0,i.jsx)(j.CodeIcon,{className:”hide-sm”}),size:n||”medium”,children:”Code”}),(0,i.jsx)(y.W.Overlay,{width:”auto”,align:”end”,children:t})]})};try{C.displayName||(C.displayName=”CodeMenuButton”)}catch{}var w=n(40493);let N=(0,a.A)(“localStorage”),S=”local”,L=”cloud”;function D(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,y]=(0,l.useState)(S),j=(0,l.useCallback)(e=>{y(L),N.setItem(x,L),e?.preventDefault()},[]),D=(0,l.useCallback)(e=>{y(S),N.setItem(x,S),e?.preventDefault()},[]);(0,l.useEffect)(()=>{N.getItem(x)===L&&u&&j()},[]);let _=!m&&u;return(0,i.jsxs)(C,{size:c,isPrimary:a,children:[_&&(0,i.jsxs)(s.A,{className:w.A.TabNav,children:[(0,i.jsx)(s.A.Link,{as:r.Q,selected:b===S,onClick:D,className:w.A.NavItem,children:”Local”}),!m&&u&&(0,i.jsx)(s.A.Link,{as:r.Q,selected:b===L,onClick:j,className:w.A.NavItem,children:”Codespaces”})]}),(0,i.jsxs)(“div”,{className:”react-overview-code-button-action-list py-0″,children:[b===S&&(f||((t=p)?(0,i.jsx)(d.F,{…t}):null)),b===L&&(h||((n=g)?(0,i.jsx)(o.VO,{children:(0,i.jsx)(I,{codespacesPath:n})}):null))]})]})}function I(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{D.displayName||(D.displayName=”CodeDropdownButton”)}catch{}try{I.displayName||(I.displayName=”SuspendedCodespacesTab”)}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:y}=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 j=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 C=i;return s[11]!==b||s[12]!==C||s[13]!==j||s[14]!==y?(r={hasPersistedComment:b,persistCommentToStorage:j,persistCommentOnGivenLineToStorage:C,removePersistedCommentFromStorage:y},s[11]=b,s[12]=C,s[13]=j,s[14]=y,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}}},52475:(e,t,n)=>{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)},56092:(e,t,n)=>{n.d(t,{H:()=>l});var i=n(96540);let a=”undefined”!=typeof globalThis&&void 0!==globalThis.window,r=”undefined”!=typeof process&&!1,s={timeout:150,useIdleCallback:!0};function l(e,t={}){let{timeout:n,useIdleCallback:o}={…s,…t};if(!a||r)return void e();let d=()=>{“function”==typeof i.startTransition?(0,i.startTransition)(e):e()},c=globalThis;o&&”function”==typeof c.requestIdleCallback?c.requestIdleCallback(d,{timeout:n}):setTimeout(d,0)}},59432:(e,t,n)=>{n.d(t,{b:()=>rN});var i,a,r,s,l,o=n(74848),d=n(68273),c=n(16522),u=n(70719),m=n(79472),f=n(18799),h=n(69599),p=n(83494),g=n(70843),x=n(57387),b=n(87555),y=n(34164),j=n(96540),C=n(70170),w=n(56051),N=n(5524),S=n(57478),L=n(96459),D=n(53627),I=n(82603),_=n(27011);let k=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x,b,y=(0,c.c)(62),{ref:k,basePath:A,fileFilterMenuOptions:E,fileFilterState:T,filterSize:O,viewerLogin:P,setFileFilterState:F}=e,[$]=(0,L.o)();y[0]!==A?(t={basePath:A},y[0]=A,y[1]=t):t=y[1];let{data:M}=(0,I.dG)(t),B=(0,j.useRef)(null);y[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=()=>({focus:()=>{B.current?.focus()}}),y[2]=n):n=y[2],(0,j.useImperativeHandle)(k,n),y[3]!==T?(i={…T},y[3]=T,y[4]=i):i=y[4];let{filterText:V,fileExtensions:U,unselectedFileExtensions:H,showOnlyOwnedFiles:G,showDeletedFiles:q,showOnlyManifestFiles:z,showVendoredFiles:K,showViewedFiles:W}=i,{canSeeDeletedFilesFilter:Z,canSeeOnlyManifestFilesFilter:Q,canSeeVendorFilesFilter:X}=E,J=(0,_.q6)(),{clearAllFilters:Y}=(0,_.or)(),{canSeeCodeownersFilter:ee}=E,et=0;if(M){let e;ee=M.isViewerOneOfMultipleCodeowners,y[5]!==M.ownershipByPath?(e=Object.values(M.ownershipByPath).filter(R),y[5]=M.ownershipByPath,y[6]=e):e=y[6],et=e.length}let en=(0,j.useRef)((0,C.s)(e=>ea({filterText:e}),250)),ei=(e,t)=>{let n=H;”selectFileExtension”===e?n=new Set([…H].filter(e=>e!==t.extension)):”unselectFileExtension”===e&&(n=new Set([…H,t.extension]));let i=Object.keys(U).filter(e=>!n.has(e)),a=new URLSearchParams($);a.delete(“file-filters[]”),i.map(e=>{a.append(“file-filters[]”,e)}),ea({unselectedFileExtensions:n},a)};y[7]!==F?(a=(e,t)=>{t&&(0,D.MM)(t),F({…e})},y[7]=F,y[8]=a):a=y[8];let ea=a;y[9]!==Y||y[10]!==$?(r=()=>{let e=new URLSearchParams($);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,D.MM)(e),Y()},y[9]=Y,y[10]=$,y[11]=r):r=y[11];let er=r;return y[12]!==en?(s=e=>en.current(e),y[12]=en,y[13]=s):s=y[13],y[14]!==ee||y[15]!==et||y[16]!==ea||y[17]!==$||y[18]!==G||y[19]!==P?(l=ee&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.l.Divider,{}),(0,o.jsx)(N.l.Group,{selectionVariant:”single”,children:(0,o.jsx)(N.l.Item,{selected:G,onSelect:()=>{if(!P)return;let e=new URLSearchParams($);G?e.delete(“owned-by[]”,P):e.set(“owned-by[]”,P),ea({showOnlyOwnedFiles:!G},e)},children:(0,o.jsxs)(o.Fragment,{children:[“Only files owned by you “,(0,o.jsx)(S.A,{children:et})]})})})]}),y[14]=ee,y[15]=et,y[16]=ea,y[17]=$,y[18]=G,y[19]=P,y[20]=l):l=y[20],y[21]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,o.jsx)(N.l.Divider,{}),y[21]=d):d=y[21],y[22]!==Q||y[23]!==ea||y[24]!==$||y[25]!==z?(u=Q&&(0,o.jsx)(N.l.Item,{selected:z,onSelect:()=>{let e=new URLSearchParams($);e.set(“manifests”,`${!z}`),ea({showOnlyManifestFiles:!z},e)},children:”Only manifest files”}),y[22]=Q,y[23]=ea,y[24]=$,y[25]=z,y[26]=u):u=y[26],y[27]!==Z||y[28]!==ea||y[29]!==$||y[30]!==q?(m=Z&&(0,o.jsx)(N.l.Item,{selected:q,onSelect:()=>{let e=new URLSearchParams($);e.set(“show-deleted-files”,`${!q}`),ea({showDeletedFiles:!q},e)},children:”Deleted files”}),y[27]=Z,y[28]=ea,y[29]=$,y[30]=q,y[31]=m):m=y[31],y[32]!==X||y[33]!==ea||y[34]!==$||y[35]!==K?(f=X&&(0,o.jsx)(N.l.Item,{selected:K,onSelect:()=>{let e=new URLSearchParams($);e.set(“show-vendored-files”,`${!K}`),ea({showVendoredFiles:!K},e)},children:”Vendored files”}),y[32]=X,y[33]=ea,y[34]=$,y[35]=K,y[36]=f):f=y[36],y[37]!==ea||y[38]!==$||y[39]!==W?(h=()=>{let e=new URLSearchParams($);e.set(“show-viewed-files”,`${!W}`),ea({showViewedFiles:!W},e)},y[37]=ea,y[38]=$,y[39]=W,y[40]=h):h=y[40],y[41]!==W||y[42]!==h?(p=(0,o.jsx)(N.l.Item,{selected:W,onSelect:h,children:”Viewed files”}),y[41]=W,y[42]=h,y[43]=p):p=y[43],y[44]!==m||y[45]!==f||y[46]!==p||y[47]!==u?(g=(0,o.jsxs)(N.l.Group,{“aria-label”:”More”,selectionVariant:”multiple”,children:[u,m,f,p]}),y[44]=m,y[45]=f,y[46]=p,y[47]=u,y[48]=g):g=y[48],y[49]!==g||y[50]!==l?(x=(0,o.jsxs)(o.Fragment,{children:[l,d,g]}),y[49]=g,y[50]=l,y[51]=x):x=y[51],y[52]!==U||y[53]!==O||y[54]!==V||y[55]!==J||y[56]!==er||y[57]!==ei||y[58]!==x||y[59]!==s||y[60]!==H?(b=(0,o.jsx)(w.kF,{filterSize:O,filterText:V,fileExtensions:U,unselectedFileExtensions:H,onFilterTextChange:s,onFilterChange:ei,onClearAllFilters:er,isFilteringActive:J,additionalFilterGroups:x,ref:B}),y[52]=U,y[53]=O,y[54]=V,y[55]=J,y[56]=er,y[57]=ei,y[58]=x,y[59]=s,y[60]=H,y[61]=b):b=y[61],b}:function({ref:e,basePath:t,fileFilterMenuOptions:n,fileFilterState:i,filterSize:a,viewerLogin:r,setFileFilterState:s}){let[l]=(0,L.o)(),{data:d}=(0,I.dG)({basePath:t}),c=(0,j.useRef)(null);(0,j.useImperativeHandle)(e,()=>({focus:()=>{c.current?.focus()}}));let{filterText:u,fileExtensions:m,unselectedFileExtensions:f,showOnlyOwnedFiles:h,showDeletedFiles:p,showOnlyManifestFiles:g,showVendoredFiles:x,showViewedFiles:b}={…i},{canSeeDeletedFilesFilter:y,canSeeOnlyManifestFilesFilter:k,canSeeVendorFilesFilter:R}=n,A=(0,_.q6)(),{clearAllFilters:E}=(0,_.or)(),{canSeeCodeownersFilter:T}=n,O=0;d&&(T=d.isViewerOneOfMultipleCodeowners,O=Object.values(d.ownershipByPath).filter(e=>e.isOwnedByViewer).length);let P=(0,j.useRef)((0,C.s)(e=>F({filterText:e}),250)),F=(0,j.useCallback)((e,t)=>{t&&(0,D.MM)(t),s({…e})},[s]),$=(0,j.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,D.MM)(e),E()},[l,E]);return(0,o.jsx)(w.kF,{filterSize:a,filterText:u,fileExtensions:m,unselectedFileExtensions:f,onFilterTextChange:e=>P.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)}),F({unselectedFileExtensions:n},a)},onClearAllFilters:$,isFilteringActive:A,additionalFilterGroups:(0,o.jsxs)(o.Fragment,{children:[T&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.l.Divider,{}),(0,o.jsx)(N.l.Group,{selectionVariant:”single”,children:(0,o.jsx)(N.l.Item,{selected:h,onSelect:()=>{if(!r)return;let e=new URLSearchParams(l);h?e.delete(“owned-by[]”,r):e.set(“owned-by[]”,r),F({showOnlyOwnedFiles:!h},e)},children:(0,o.jsxs)(o.Fragment,{children:[“Only files owned by you “,(0,o.jsx)(S.A,{children:O})]})})})]}),(0,o.jsx)(N.l.Divider,{}),(0,o.jsxs)(N.l.Group,{“aria-label”:”More”,selectionVariant:”multiple”,children:[k&&(0,o.jsx)(N.l.Item,{selected:g,onSelect:()=>{let e=new URLSearchParams(l);e.set(“manifests”,`${!g}`),F({showOnlyManifestFiles:!g},e)},children:”Only manifest files”}),y&&(0,o.jsx)(N.l.Item,{selected:p,onSelect:()=>{let e=new URLSearchParams(l);e.set(“show-deleted-files”,`${!p}`),F({showDeletedFiles:!p},e)},children:”Deleted files”}),R&&(0,o.jsx)(N.l.Item,{selected:x,onSelect:()=>{let e=new URLSearchParams(l);e.set(“show-vendored-files”,`${!x}`),F({showVendoredFiles:!x},e)},children:”Vendored files”}),(0,o.jsx)(N.l.Item,{selected:b,onSelect:()=>{let e=new URLSearchParams(l);e.set(“show-viewed-files”,`${!b}`),F({showViewedFiles:!b},e)},children:”Viewed files”})]})]}),ref:c})};function R(e){return e.isOwnedByViewer}try{k.displayName||(k.displayName=”FileFilter”)}catch{}var A=n(38621),E=n(11196),T=n(84268),O=n(60569),P=n(25556),F=n(35311),$=n(78049),M=n(34535),B=n(71315),V=n(77046);function U(e){if(!e||!B.cg)return;let t=B.cg.scrollY??0,n=e.getBoundingClientRect().top+t-10-60;B.cg.scrollTo({top:n,left:0}),e.focus()}let H=(0,j.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)($.E,{status:i,isSymlink:a}),n[0]=i,n[1]=a,n[2]=t):t=n[2],t});H.displayName=”FileStatusIconItem”;let G=(0,j.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,j.useRef)(null),b=(0,j.useRef)(null),y=`#diff-${h.diff.pathDigest}`;f[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={focusRowRef:x,mouseRowRef:x},f[0]=t):t=f[0];let C=(0,M.Z)(t),w=h.diff.totalCommentsCount??0,N=h.diff.highestAnnotationLevel,S=(0,_.E5)(),L=(0,_.Py)(h.diff.pathDigest),I=h.fileName??”This file”,k=null;switch(w>0&&(I+=` has ${w<10?w:"9+"} ${w>1?”comments”:”comment”}`),N){case”WARNING”:{let e;I+=`${w>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],k=e;break}case”NOTICE”:{let e;I+=`${w>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],k=e;break}case”FAILURE”:{let e;I+=`${w>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],k=e}}f[4]!==k||f[5]!==I?(n={screenReaderText:I,annotationElement:k},f[4]=k,f[5]=I,f[6]=n):n=f[6];let{screenReaderText:R,annotationElement:P}=n;f[7]!==L?(i=()=>{if(x.current&&L){let e=window.setTimeout(()=>{let e=B.XC?.getElementById(“diff_file_tree”)?.parentElement,t=x.current.offsetTop,n=B.cg?.innerHeight??0;e&&(e.scrollTop=t-n/2)},0);return()=>{window.clearTimeout(e)}}},f[7]=L,f[8]=i):i=f[8],f[9]!==h.diff.pathDigest||f[10]!==L?(a=[h.diff.pathDigest,L],f[9]=h.diff.pathDigest,f[10]=L,f[11]=a):a=f[11],(0,j.useEffect)(i,a),f[12]!==y||f[13]!==h.diff.pathDigest||f[14]!==g||f[15]!==S?(r=e=>{if(e.nativeEvent instanceof KeyboardEvent){if(x?.current!==document.activeElement)return void e.preventDefault();if(“Enter”===e.key||” “===e.key){e.preventDefault(),S(h.diff.pathDigest),(0,D.Zu)(`diff-${h.diff.pathDigest}`),(0,D.kd)(window.location.href),g?.(),B.cg?.requestAnimationFrame(()=>{U(document.getElementById(`diff-${h.diff.pathDigest}`))});return}}if(e.nativeEvent instanceof MouseEvent){if(e.metaKey||e.ctrlKey||1===e.button){e.preventDefault(),window.open(y,”_blank”);return}S(h.diff.pathDigest),(0,D.Zu)(`diff-${h.diff.pathDigest}`),(0,D.kd)(window.location.href),g?.(),B.cg?.requestAnimationFrame(()=>{U(document.getElementById(`diff-${h.diff.pathDigest}`))})}},f[12]=y,f[13]=h.diff.pathDigest,f[14]=g,f[15]=S,f[16]=r):r=f[16];let F=r,$=h.fileName??””;f[17]!==y||f[18]!==$?(s=(0,o.jsx)(T.A,{href:y,muted:!0,ref:b,role:”presentation”,className:”fgColor-default”,tabIndex:-1,onClick:W,children:$}),f[17]=y,f[18]=$,f[19]=s):s=f[19];let G=s;return f[20]!==h.diff.changeType||f[21]!==h.diff.isSymlink?(l=(0,o.jsx)(O.G.LeadingVisual,{children:(0,o.jsx)(H,{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[25]!==C?(d=C?(0,o.jsx)(E.m,{text:$,direction:”ne”,children:G}):G,f[23]=G,f[24]=$,f[25]=C,f[26]=d):d=f[26],f[27]!==P||f[28]!==N||f[29]!==w?(u=(!!w||N)&&(0,o.jsx)(O.G.TrailingVisual,{children:(0,o.jsxs)(“div”,{className:”d-flex flex-items-center flex-row”,children:[!!w&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.CommentIcon,{}),(0,o.jsx)(“div”,{className:”ml-1 text-bold fgColor-default f6″,children:w<10?w:"9+"})]}),P]})}),f[27]=P,f[28]=N,f[29]=w,f[30]=u):u=f[30],f[31]!==p||f[32]!==h.diff.path||f[33]!==h.diff.pathDigest||f[34]!==L||f[35]!==F||f[36]!==R||f[37]!==l||f[38]!==d||f[39]!==u?(m=(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(O.G.Item,{defaultExpanded:!0,"aria-label":R,"aria-level":p,current:L,id:h.diff.path,onSelect:F,ref:x,className:V.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]=L,f[35]=F,f[36]=R,f[37]=l,f[38]=d,f[39]=u,f[40]=m):m=f[40],m}),q=(0,j.memo)(function e({directory:t,depth:n=0,leadingPath:i="",sortByDiffOrder:a,onSelect:r,fileNodeRenderer:s}){let l=i?`${i}/`:"",d=(0,j.useRef)(null),c=(0,j.useRef)(null),u=(0,M.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)(z,{directory:t,depth:n,sortByDiffOrder:a,onSelect:r,fileNodeRenderer:s})}return 0===n?m():(0,o.jsxs)(O.G.Item,{ref:c,defaultExpanded:!0,id:t.path,children:[(0,o.jsx)(O.G.LeadingVisual,{children:(0,o.jsx)(O.G.DirectoryIcon,{})}),(0,o.jsx)(“span”,{ref:d,children:`${l}${t.name}`}),u&&(0,o.jsx)(P.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)(O.G.SubTree,{children:m()})]},t.path)}),z=(0,j.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(Z).concat(r.directories.map(Q)),l?t.sort(X):t.sort(J),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)(q,{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}),K=(0,j.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,F.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)(q,{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)(O.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{q.displayName||(q.displayName=”Directory”)}catch{}try{z.displayName||(z.displayName=”DirectoryRendering”)}catch{}try{K.displayName||(K.displayName=”PullRequestDiffFileTree”)}catch{}function W(e){return e.preventDefault()}function Z(e){return{path:e.filePath,pathType:”file”,node:e,sortOrder:e.sortOrder}}function Q(e){return{path:e.path,pathType:”directory”,node:e,sortOrder:e.sortOrder}}function X(e,t){return e.sortOrder-t.sortOrder}function J(e,t){return(0,F.wH)(e.path,t.path)}var Y=n(75202),ee=n(81960),et=n(69726);let en=”GroupsList-module__GroupsListContainer–x6dMy”,ei=”GroupsList-module__GroupsListItemsShiftLeft–PGMNM”,ea=”GroupsList-module__GroupItem–vAFCe”,er=”GroupsList-module__GroupsListToggle–KO5Om”;var es=n(82130);let el=(0,d.Z6)()?function(){let e,t,n=(0,c.c)(5),{sendPullRequestAnalyticsEvent:i}=(0,es.q)(),a=(0,_.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,es.q)(),t=(0,_.JA)();return{sendChangeGroupsPresentedEvent:(0,j.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 eo=n(26108),ed=n(64451),ec=n(86877),eu=n(46720),em=n(10576),ef=n(21373);let eh=(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,j.useState)(!1);r[0]!==f?(t=f?[“OTHER”]:[],r[0]=f,r[1]=t):t=r[1];let[g,b]=(0,j.useState)(t),[y,C]=(0,j.useState)(“”);r[2]!==g||r[3]!==l||r[4]!==y?(n=e=>{e.preventDefault(),p(!0),g.length&&l({type:”NEGATIVE”,feedbackChoice:g,textResponse:y})},r[2]=g,r[3]=l,r[4]=y,r[5]=n):n=r[5];let w=n;return r[6]!==h||r[7]!==g||r[8]!==u||r[9]!==w||r[10]!==y?(i=()=>(0,o.jsxs)(“form”,{onSubmit:w,children:[(0,o.jsxs)(x.l.Body,{children:[(0,o.jsx)(“div”,{className:”mb-3″,children:(0,o.jsxs)(ed.A,{onChange:b,required:!0,children:[(0,o.jsx)(ed.A.Label,{children:”Category”}),u.map(e=>(0,o.jsxs)(ec.A,{id:`feedback_choice_${e.value}`,children:[(0,o.jsx)(eu.A,{value:e.value,checked:g.includes(e.value)}),(0,o.jsx)(ec.A.Label,{children:e.label})]},e.value)),h&&!g.length&&(0,o.jsx)(ed.A.Validation,{variant:”error”,children:”Please select a feedback category”})]})}),(0,o.jsxs)(ec.A,{id:”text_response”,children:[(0,o.jsx)(ec.A.Label,{children:”How should we improve this response?”}),(0,o.jsx)(em.Ay,{block:!0,rows:2,wrap:”wrap”,name:”text_response”,value:y,resize:”vertical”,onChange:e=>C(e.currentTarget.value)})]})]}),(0,o.jsx)(x.l.Footer,{children:(0,o.jsx)(ef.Q,{type:”submit”,disabled:h&&(!y||!g),children:”Submit”})})]}),r[6]=h,r[7]=g,r[8]=u,r[9]=w,r[10]=y,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,j.useState)(!1),[l,d]=(0,j.useState)(a?[“OTHER”]:[]),[c,u]=(0,j.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)(ed.A,{onChange:d,required:!0,children:[(0,o.jsx)(ed.A.Label,{children:”Category”}),i.map(e=>(0,o.jsxs)(ec.A,{id:`feedback_choice_${e.value}`,children:[(0,o.jsx)(eu.A,{value:e.value,checked:l.includes(e.value)}),(0,o.jsx)(ec.A.Label,{children:e.label})]},e.value)),r&&!l.length&&(0,o.jsx)(ed.A.Validation,{variant:”error”,children:”Please select a feedback category”})]})}),(0,o.jsxs)(ec.A,{id:”text_response”,children:[(0,o.jsx)(ec.A.Label,{children:”How should we improve this response?”}),(0,o.jsx)(em.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)(ef.Q,{type:”submit”,disabled:r&&(!c||!l),children:”Submit”})})]})})};try{eh.displayName||(eh.displayName=”NegativeFeedbackForm”)}catch{}let ep=(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)(eo.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)(eo.K,{size:”small”,variant:”invisible”,disabled:e,icon:A.ThumbsupIcon,”aria-label”:”Positive feedback”,onClick:()=>t({type:”POSITIVE”})})},eg=(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,j.useState)(!1),h=(0,j.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)(eh,{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)(eo.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,j.useState)(!1),r=(0,j.useRef)(null);return(0,o.jsxs)(o.Fragment,{children:[i&&(0,o.jsx)(eh,{onClose:()=>a(!1),onSubmit:e=>{t(e),a(!1)},returnFocusRef:r,feedbackOptions:n}),(0,o.jsx)(eo.K,{ref:r,size:”small”,variant:”invisible”,disabled:e,icon:A.ThumbsdownIcon,”aria-label”:”Negative feedback”,onClick:()=>a(!0)})]})};try{ep.displayName||(ep.displayName=”PositiveFeedbackButton”)}catch{}try{eg.displayName||(eg.displayName=”NegativeFeedbackButton”)}catch{}var ex=n(20622),eb=n(53885),ev=n(94747),ey=n(48845);let ej=(0,d.Z6)()?function(){let e,t=(0,c.c)(2),n=(0,eb.e)(ex.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,ey.q$)(n,{method:”POST”,headers:{Accept:”application/json”},body:r}),l=await (0,ey.hp)(s);return(0,ey.R)(s,l),l}},t[0]=n,t[1]=e):e=t[1],(0,ev.n)(e)}:function(){let e=(0,eb.e)(ex.uT.submitCopilotGroupsFeedback);return(0,ev.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,ey.q$)(e,{method:”POST”,headers:{Accept:”application/json”},body:a}),s=await (0,ey.hp)(r);return(0,ey.R)(r,s),s}})},eC=(0,d.Z6)()?e=>{let t,n,i,a,r,s=(0,c.c)(15),{onNegativeFeedbackSubmit:l}=e,[d,u]=(0,j.useState)(),{mutate:m}=ej(),f=(0,_.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)(ep,{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)(eg,{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,j.useState)(),{mutate:i}=ej(),a=(0,_.xW)().changeGroupFeedbackOptions,r=e=>{n(e.type),i(e)};return(0,o.jsxs)(“div”,{className:”d-flex”,children:[“NEGATIVE”!==t&&(0,o.jsx)(ep,{disabled:!!t,onSubmit:r}),”POSITIVE”!==t&&(0,o.jsx)(eg,{disabled:!!t,onSubmit:t=>{e(),r(t)},feedbackOptions:a})]})},ew=(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)(Y.t,{fallback:null,children:(0,o.jsx)(eC,{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)(Y.t,{fallback:null,children:(0,o.jsx)(eC,{onNegativeFeedbackSubmit:t})})});try{eC.displayName||(eC.displayName=”Feedback”)}catch{}try{ew.displayName||(ew.displayName=”GroupsFeedback”)}catch{}var eN=n(70263),eS=n(40235),eL=n(97286),eD=n(96379);function eI(e){switch(e){case”CREATED”:case”RUNNING”:case”STARTED”:case”WAITING”:return!1;default:return!0}}function e_(e){switch(e){case”ABANDONED”:case”FAILED”:case”SKIPPED”:return!0;default:return!1}}function ek({baseSha:e,headSha:t,changeGroupsURL:n}){return[ex.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,eb.e)(ex.uT.changeGroups);l[0]!==t||l[1]!==o||l[2]!==e?(n=ek({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,_.wL)(),m=(0,_.xW)();l[4]!==m?(i=()=>{let e=m.latestChangeGroupOrchestration?.state;if(e&&eI(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,eD.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,eL.I)(s)}:function(e,t){let n=(0,eb.e)(ex.uT.changeGroups),i=ek({headSha:e,baseSha:t,changeGroupsURL:n}),{updateChangeGroupGeneration:a}=(0,_.wL)(),r=(0,_.xW)(),s=(0,j.useCallback)(()=>{let e=r.latestChangeGroupOrchestration?.state;if(e&&eI(e))return r},[r]);return(0,eL.I)({queryKey:i,queryFn:async()=>{let e=await (0,eD.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,eN.A)(),{refetch:l}=eR(n,t);r[0]!==s||r[1]!==l?(i=(0,C.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,eS.x)(e,d)}:function(e,t,n){let i=(0,eN.A)(),{refetch:a}=eR(n,t),r=(0,j.useMemo)(()=>(0,C.n)(()=>{i()&&a()},2e3),[i,a]),s=(0,j.useMemo)(()=>e=>{e?.base_commit_oid===t&&e?.head_commit_oid===n&&window.setTimeout(()=>r(),e.wait||0)},[t,n,r]);(0,eS.x)(e,s)};function eE(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 eT=n(82075);let eO=(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:C}=e,{sendPullRequestAnalyticsEvent:w}=(0,es.q)(),{sendChangeGroupsPresentedEvent:L}=el(),{fullDiff:D}=(0,_.L3)(),I=(0,_.a_)(),k=(0,_.TV)(),R=(0,_.r$)(),E=(0,j.useRef)(null),{error:T}=eR(D.headOid,D.baseOid),O=!!T&&!C;eA(I,D.baseOid,D.headOid),h[0]!==p.length||h[1]!==C||h[2]!==L||h[3]!==O||h[4]!==k?(t=()=>{C||(O||k?L({isErrorState:!0,unavailableReason:k||void 0}):p.length>0?L({isErrorState:!1,hasGroups:!0}):L({isErrorState:!1,hasGroups:!1}))},h[0]=p.length,h[1]=C,h[2]=L,h[3]=O,h[4]=k,h[5]=t):t=h[5],h[6]!==p||h[7]!==C||h[8]!==L||h[9]!==O||h[10]!==k?(n=[p,C,O,k,L],h[6]=p,h[7]=C,h[8]=L,h[9]=O,h[10]=k,h[11]=n):n=h[11],(0,j.useEffect)(t,n),h[12]!==b||h[13]!==w?(i=()=>{w(“groups_list.clear_group”,”GROUPS_LIST_ITEM”),b()},h[12]=b,h[13]=w,h[14]=i):i=h[14];let P=i;h[15]!==P?(a=()=>{P(),requestAnimationFrame(()=>{E.current?.focus()})},h[15]=P,h[16]=a):a=h[16];let F=a,$=p.length>0,{isCollapsed:M,handleToggleCollapsed:B}=eB(R);h[17]!==B?(r=()=>{B(),requestAnimationFrame(()=>{E.current?.focus()})},h[17]=B,h[18]=r):r=h[18];let V=r;h[19]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(ee.A,{as:”h2″,className:”h6″,children:”Groups by Copilot”}),h[19]=s):s=h[19];let U=s;return h[20]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,y.$)(en),h[20]=l):l=h[20],h[21]!==p.length||h[22]!==B||h[23]!==$||h[24]!==M||h[25]!==C?(d=C?(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center fgColor-muted pt-2 px-2 pb-1″,children:[U,(0,o.jsx)(“span”,{className:”ml-auto d-flex flex-items-center”,children:(0,o.jsx)(et.A,{size:”small”,”aria-label”:”Loading change groups”})})]}):(0,o.jsxs)(“button”,{className:(0,y.$)(“d-flex flex-row flex-items-center fgColor-muted”,er),onClick:B,”aria-expanded”:!M,ref:E,children:[U,M&&$&&(0,o.jsx)(S.A,{scheme:”secondary”,className:”mx-2″,children:p.length}),M?(0,o.jsx)(A.ChevronDownIcon,{className:”ml-auto”}):(0,o.jsx)(A.ChevronUpIcon,{className:”ml-auto”})]}),h[21]=p.length,h[22]=B,h[23]=$,h[24]=M,h[25]=C,h[26]=d):d=h[26],h[27]!==g||h[28]!==p||h[29]!==P||h[30]!==F||h[31]!==$||h[32]!==M||h[33]!==x||h[34]!==V?(u=$&&(0,o.jsxs)(“div”,{className:(0,y.$)(“mt-n2”,ei),children:[M&&!g?(0,o.jsx)(“div”,{className:”pb-2″}):(0,o.jsxs)(N.l,{children:[!M&&(0,o.jsx)(N.l.Item,{active:void 0===g,onSelect:P,children:”All files”},”All files”),p.toSorted(eP).map(e=>(0,o.jsx)(e$,{group:e,activeGroupId:g,onSelectGroup:x,isListCollapsed:M,onClickGroupWhenCollapsed:F},e.id)).filter(Boolean)]}),!M&&(0,o.jsx)(ew,{className:”ml-2″,onNegativeFeedbackSubmit:V})]}),h[27]=g,h[28]=p,h[29]=P,h[30]=F,h[31]=$,h[32]=M,h[33]=x,h[34]=V,h[35]=u):u=h[35],h[36]!==$||h[37]!==M||h[38]!==C||h[39]!==O||h[40]!==k?(m=!M&&!$&&!C&&(0,o.jsx)(“div”,{className:”px-2 pb-2 pt-0 f6 fgColor-muted”,children:k?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“p”,{className:”mb-0 d-inline”,children:eE(k)}),” “,(0,o.jsx)(eF,{})]}):O&&(0,o.jsx)(“p”,{className:”mb-0″,children:”No groups created”})}),h[36]=$,h[37]=M,h[38]=C,h[39]=O,h[40]=k,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,es.q)(),{sendChangeGroupsPresentedEvent:s}=el(),{fullDiff:l}=(0,_.L3)(),d=(0,_.a_)(),c=(0,_.TV)(),u=(0,_.r$)(),m=(0,j.useRef)(null),{error:f}=eR(l.headOid,l.baseOid),h=!!f&&!a;eA(d,l.baseOid,l.headOid),(0,j.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:C}=eB(u),w=(0,o.jsx)(ee.A,{as:”h2″,className:”h6″,children:”Groups by Copilot”});return(0,o.jsxs)(“div”,{className:(0,y.$)(en),children:[a?(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center fgColor-muted pt-2 px-2 pb-1″,children:[w,(0,o.jsx)(“span”,{className:”ml-auto d-flex flex-items-center”,children:(0,o.jsx)(et.A,{size:”small”,”aria-label”:”Loading change groups”})})]}):(0,o.jsxs)(“button”,{className:(0,y.$)(“d-flex flex-row flex-items-center fgColor-muted”,er),onClick:C,”aria-expanded”:!b,ref:m,children:[w,b&&x&&(0,o.jsx)(S.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,y.$)(“mt-n2”,ei),children:[b&&!t?(0,o.jsx)(“div”,{className:”pb-2″}):(0,o.jsxs)(N.l,{children:[!b&&(0,o.jsx)(N.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)(e$,{group:e,activeGroupId:t,onSelectGroup:n,isListCollapsed:b,onClickGroupWhenCollapsed:g},e.id)).filter(Boolean)]}),!b&&(0,o.jsx)(ew,{className:”ml-2″,onNegativeFeedbackSubmit:()=>{C(),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:eE(c)}),” “,(0,o.jsx)(eF,{})]}):h&&(0,o.jsx)(“p”,{className:”mb-0″,children:”No groups created”})})]})};function eP(e,t){return t.priority-e.priority}let eF=(0,d.Z6)()?function(){let e,t,n,i,a=(0,c.c)(9),r=(0,j.useRef)(null),{mutate:s}=ej(),[l,d]=(0,j.useState)(!1),u=(0,_.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)(T.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)(eh,{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,j.useRef)(null),{mutate:t}=ej(),[n,i]=(0,j.useState)(!1),a=(0,_.xW)().changeGroupFeedbackOptions;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.A,{className:”d-inline”,as:”button”,ref:e,inline:!0,muted:!0,onClick:()=>i(!0),children:”Give feedback”}),n&&(0,o.jsx)(eh,{feedbackOptions:a,onSubmit:e=>{t(e),i(!1)},onClose:()=>i(!1),returnFocusRef:e,precheckOther:!0})]})},e$=(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,es.q)(),g=(0,j.useRef)(null);l[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={focusRowRef:g,mouseRowRef:g},l[0]=t):t=l[0];let x=(0,M.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,C=u===d.id;if(m&&!C)return null;let w=`${d.name}-${m?”collapsed”:”expanded”}`,S=m?void 0:b;l[5]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,y.$)(ea,”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)(N.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]!==C||l[12]!==w||l[13]!==S||l[14]!==a||l[15]!==r?(s=(0,o.jsxs)(N.l.Item,{active:C,onSelect:S,ref:g,children:[a,r]},w),l[11]=C,l[12]=w,l[13]=S,l[14]=a,l[15]=r,l[16]=s):s=l[16];let L=s;if(x){let e;return l[17]!==d.name||l[18]!==L?(e=(0,o.jsx)(E.m,{text:d.name,direction:”ne”,children:L}),l[17]=d.name,l[18]=L,l[19]=e):e=l[19],e}return L}:function({group:e,activeGroupId:t,isListCollapsed:n,onSelectGroup:i,onClickGroupWhenCollapsed:a}){let{sendPullRequestAnalyticsEvent:r}=(0,es.q)(),s=(0,j.useRef)(null),l=(0,M.Z)({focusRowRef:s,mouseRowRef:s}),d=t===e.id;if(n&&!d)return null;let c=(0,o.jsxs)(N.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,y.$)(ea,”PRIVATE_TreeView-item-content-text”),children:e.name}),n?(0,o.jsx)(N.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)(E.m,{text:e.name,direction:”ne”,children:c}):c};function eM(e){return`GroupsListIsCollapsed_${e}`}function eB(e){let t=(0,eT.A)(“localStorage”),[n,i]=(0,j.useState)(!1),{sendPullRequestAnalyticsEvent:a}=(0,es.q)();return(0,j.useEffect)(()=>{let n=t.getItem(eM(e));null!==n&&i(JSON.parse(n))},[]),{isCollapsed:n,handleToggleCollapsed:()=>{let r=!n;B.cg?.requestAnimationFrame(()=>{t.setItem(eM(e),JSON.stringify(r))}),i(()=>r),a(“groups_list.toggle_collapse”,”GROUPS_LIST_TOGGLE”,{is_collapsed:r})}}}try{eO.displayName||(eO.displayName=”GroupsList”)}catch{}try{eF.displayName||(eF.displayName=”FeedbackButton”)}catch{}try{e$.displayName||(e$.displayName=”GroupItem”)}catch{}let eV=”PullRequestFileTree-module__sidebar–A_ZKx”,eU=”PullRequestFileTree-module__FileTreeScrollable–tm_BE”,eH=”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:C,onFileSelected:w,onSetFilterState:N,allowPullRequestGroups:S}=e,L=void 0!==S&&S,D=(0,_.iY)(),I=(0,_.YL)(),k=(0,_.ww)(),R=(0,_.Fl)(),A=(0,_.WA)(),{sendChangeGroupsPresentedEvent:E}=el();g[0]!==R?(t=R&&!eI(R.state),g[0]=R,g[1]=t):t=g[1];let T=t,O=(0,_.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 P=n&&(“TOO_FEW_GROUPS”===O||”DIFF_TOO_SMALL”===O||”NOT_GENERATED_YET”===O);return g[3]!==L||g[4]!==D.length||g[5]!==k||g[6]!==E||g[7]!==A?(i=()=>{L&&D.length>0&&!k&&!A&&E({isErrorState:!1,userPreferenceDisabled:!0,hasGroups:!0})},a=[L,k,A,E,D.length],g[3]=L,g[4]=D.length,g[5]=k,g[6]=E,g[7]=A,g[8]=i,g[9]=a):(i=g[8],a=g[9]),(0,j.useEffect)(i,a),g[10]!==I||g[11]!==L||g[12]!==D||g[13]!==k||g[14]!==T||g[15]!==N||g[16]!==P||g[17]!==A?(r=L&&!k&&A&&!P&&(0,o.jsx)(eO,{activeGroupId:I,groups:D,onClearActiveGroup:()=>{N({activeChangeGroupId:void 0})},onSelectGroup:e=>{N({activeChangeGroupId:e})},isLoadingState:T||!1}),g[10]=I,g[11]=L,g[12]=D,g[13]=k,g[14]=T,g[15]=N,g[16]=P,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,y.$)(“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]!==C||g[26]!==w?(m=(0,o.jsxs)(“div”,{className:eU,children:[u,(0,o.jsx)(K,{diffs:C,fileNodeRenderer:eq,sortByDiffOrder:!0,onSelect:w,className:”pr-lg-3″})]}),g[25]=C,g[26]=w,g[27]=m):m=g[27],g[28]!==m||g[29]!==l||g[30]!==d?(f=(0,o.jsx)(Y.t,{fallback:s,children:(0,o.jsxs)(“div”,{className:l,id:eH,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,j.useCallback)(e=>(0,o.jsx)(ez,{…e},e.file.filePath),[]),l=(0,_.iY)(),d=(0,_.YL)(),c=(0,_.ww)(),u=(0,_.Fl)(),m=(0,_.WA)(),{sendChangeGroupsPresentedEvent:f}=el(),p=u&&!eI(u.state),g=(0,_.TV)(),x=(0,h.G7)(“hide_groups_list_for_few_groups”);return(0,j.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)(eO,{activeGroupId:d,groups:l,onClearActiveGroup:()=>{a({activeChangeGroupId:void 0})},onSelectGroup:e=>{a({activeChangeGroupId:e})},isLoadingState:p||!1}),(0,o.jsx)(Y.t,{fallback:(0,o.jsx)(“span”,{children:”File tree failed to load.”}),children:(0,o.jsxs)(“div”,{className:(0,y.$)(“d-flex flex-column min-height-0”,e),id:eH,children:[(0,o.jsx)(“div”,{className:”pb-3 pr-lg-3″,children:t}),(0,o.jsxs)(“div”,{className:eU,children:[(0,o.jsx)(“h2″,{className:”sr-only”,children:”File tree”}),(0,o.jsx)(K,{diffs:n,fileNodeRenderer:s,sortByDiffOrder:!0,onSelect:i,className:”pr-lg-3″})]})]})})]})};function eq(e){return(0,o.jsx)(ez,{…e},e.file.filePath)}let ez=(0,j.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(eW),l[3]=t.diff,l[4]=i):i=l[4];let d=i,u=(0,_.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,j.useMemo)(()=>Object.values(e.diff?.markersMap??{}).flatMap(e=>e.threads.map(e=>e.id)),[e.diff]),i=(0,_.Qb)(n),a=(0,j.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{ez.displayName||(ez.displayName=”PullRequestFile”)}catch{}function eK(e){return e.id}function eW(e){return e.threads.map(eK)}var eZ=n(11680),eQ=n(25407);let eX=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(17),{pageLimits:s,repository:l,urls:d,isDiffVirtualizationEnabled:u}=e,m=s.filesLimitExceeded||s.reviewThreadsLimitExceeded||s.annotationsLimitExceeded;r[0]!==s.annotationsLimit||r[1]!==s.annotationsLimitExceeded||r[2]!==s.filesLimit||r[3]!==s.filesLimitExceeded||r[4]!==s.reviewThreadsLimit||r[5]!==s.reviewThreadsLimitExceeded?(t=()=>{let e=[];s.filesLimitExceeded&&e.push(`${s.filesLimit} files`),s.reviewThreadsLimitExceeded&&e.push(`${s.reviewThreadsLimit} comments`),s.annotationsLimitExceeded&&e.push(`${s.annotationsLimit} alerts`);let t=””;return 1===e.length?t=`${e[0]}`:2===e.length?t=`${e[0]} and ${e[1]}`:3===e.length&&(t=`${e[0]}, ${e[1]}, and ${e[2]}`),”Only the first “+t+” are currently being shown.”},r[0]=s.annotationsLimit,r[1]=s.annotationsLimitExceeded,r[2]=s.filesLimit,r[3]=s.filesLimitExceeded,r[4]=s.reviewThreadsLimit,r[5]=s.reviewThreadsLimitExceeded,r[6]=t):t=r[6];let f=t;r[7]!==l?(n=async function(){let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,eD.DI)((0,eQ.ZD8)({repo:l}),{body:e,method:”POST”})},r[7]=l,r[8]=n):n=r[8];let h=n;r[9]!==h||r[10]!==u||r[11]!==f||r[12]!==m||r[13]!==d.files?(i=function(){return!m&&u?(0,o.jsxs)(o.Fragment,{children:[“Virtualization has been enabled to improve performance.”,” “,(0,o.jsx)(T.A,{inline:!0,href:`${d.files}?new_files_changed=false`,onClick:h,rel:”noreferrer”,children:”Switch back”}),” “,”to the classic page.”]}):(0,o.jsxs)(o.Fragment,{children:[u&&(0,o.jsxs)(“span”,{children:[“Virtualization has been enabled to improve performance.”,” “]}),(0,o.jsxs)(“span”,{children:[f(),” To see more,”,” “,(0,o.jsx)(T.A,{inline:!0,href:`${d.files}?new_files_changed=false`,onClick:h,rel:”noreferrer”,children:”switch back”}),” “,”to the classic page.”]})]})},r[9]=h,r[10]=u,r[11]=f,r[12]=m,r[13]=d.files,r[14]=i):i=r[14];let p=i;return m||u?(r[15]!==p?(a=(0,o.jsx)(eZ.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:p(),className:”mb-3″}),r[15]=p,r[16]=a):a=r[16],a):null}:function({pageLimits:e,repository:t,urls:n,isDiffVirtualizationEnabled:i}){let a,r,s,l=e.filesLimitExceeded||e.reviewThreadsLimitExceeded||e.annotationsLimitExceeded;async function d(){let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,eD.DI)((0,eQ.ZD8)({repo:t}),{body:e,method:”POST”})}return l||i?(0,o.jsx)(eZ.l,{“aria-label”:”Warning”,title:”Warning”,variant:”warning”,hideTitle:!0,description:(s=”Virtualization has been enabled to improve performance.”,!l&&i?(0,o.jsxs)(o.Fragment,{children:[s,” “,(0,o.jsx)(T.A,{inline:!0,href:`${n.files}?new_files_changed=false`,onClick:d,rel:”noreferrer”,children:”Switch back”}),” “,”to the classic page.”]}):(0,o.jsxs)(o.Fragment,{children:[i&&(0,o.jsxs)(“span”,{children:[s,” “]}),(0,o.jsxs)(“span”,{children:[(a=[],e.filesLimitExceeded&&a.push(`${e.filesLimit} files`),e.reviewThreadsLimitExceeded&&a.push(`${e.reviewThreadsLimit} comments`),e.annotationsLimitExceeded&&a.push(`${e.annotationsLimit} alerts`),r=””,1===a.length?r=`${a[0]}`:2===a.length?r=`${a[0]} and ${a[1]}`:3===a.length&&(r=`${a[0]}, ${a[1]}, and ${a[2]}`),”Only the first “+r+” are currently being shown.”),” To see more,”,” “,(0,o.jsx)(T.A,{inline:!0,href:`${n.files}?new_files_changed=false`,onClick:d,rel:”noreferrer”,children:”switch back”}),” “,”to the classic page.”]})]})),className:”mb-3″}):null};try{eX.displayName||(eX.displayName=”PageLimitsBanner”)}catch{}let eJ=”ViewedFileProgress-module__ProgressContainer–ZQ1e8″,eY=”ViewedFileProgress-module__FilesCountText–q4rKx”,e0=”ViewedFileProgress-module__ViewedText–vvFsM”,e1=(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”}})]}),e2=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(14),{totalFilesCount:u}=e,m=(0,_.gi)();if(0===u)return null;let f=(m??0)/u||0;return d[0]!==f?(t=(0,o.jsx)(e1,{progress:f}),d[0]=f,d[1]=t):t=d[1],d[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,y.$)(“ml-1”,eJ),d[2]=n):n=d[2],d[3]!==m?(i=(0,o.jsx)(“span”,{className:eY,children:m}),d[3]=m,d[4]=i):i=d[4],d[5]!==u?(a=(0,o.jsx)(“span”,{className:eY,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:e0,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,_.gi)();return 0===e?null:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center”,children:[(0,o.jsx)(e1,{progress:(t??0)/e||0}),(0,o.jsxs)(“span”,{className:(0,y.$)(“ml-1”,eJ),children:[(0,o.jsx)(“span”,{className:eY,children:t}),” /”,” “,(0,o.jsx)(“span”,{className:eY,children:e}),” “,(0,o.jsx)(“span”,{className:e0,children:”viewed”})]})]})};try{e1.displayName||(e1.displayName=”ProgressIcon”)}catch{}try{e2.displayName||(e2.displayName=”ViewedFileProgress”)}catch{}function e3(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 e4=n(30093),e5=n(94236),e6=n(77430);function e7(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 e8={filterText:””,showResolvedThreads:!0,showOutdatedThreads:!0},e9=(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:j,className:C,filterState:w,onFilterStateChange:S}=e;b[0]!==w||b[1]!==S?(t=e=>{S({…w,filterText:e})},b[0]=w,b[1]=S,b[2]=t):t=b[2];let L=t;b[3]!==w||b[4]!==S?(n=()=>{S({…w,showResolvedThreads:!w.showResolvedThreads})},b[3]=w,b[4]=S,b[5]=n):n=b[5];let D=n;b[6]!==w||b[7]!==S?(i=()=>{S({…w,showOutdatedThreads:!w.showOutdatedThreads})},b[6]=w,b[7]=S,b[8]=i):i=b[8];let I=i;b[9]!==w||b[10]!==S?(a=e=>{if(w.selectedAuthor===e)return S({…w,selectedAuthor:void 0});S({…w,selectedAuthor:e})},b[9]=w,b[10]=S,b[11]=a):a=b[11];let _=a;return b[12]!==C?(r=(0,y.$)(“d-flex flex-row gap-2 flex-nowrap”,C),b[12]=C,b[13]=r):r=b[13],b[14]!==L?(s=e=>L(e.target.value),b[14]=L,b[15]=s):s=b[15],b[16]!==w.filterText||b[17]!==s?(l=(0,o.jsx)(e4.A,{block:!0,”aria-label”:”Filter comments”,leadingVisual:A.SearchIcon,placeholder:”Filter comments”,value:w.filterText,onChange:s}),b[16]=w.filterText,b[17]=s,b[18]=l):l=b[18],b[19]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,o.jsx)(e5.W.Anchor,{children:(0,o.jsx)(ef.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]!==D?(u=()=>D(),b[20]=D,b[21]=u):u=b[21],b[22]!==w.showResolvedThreads||b[23]!==u?(m=(0,o.jsx)(N.l.Item,{selected:w.showResolvedThreads,onSelect:u,children:”Show resolved comments”}),b[22]=w.showResolvedThreads,b[23]=u,b[24]=m):m=b[24],b[25]!==I?(f=()=>I(),b[25]=I,b[26]=f):f=b[26],b[27]!==w.showOutdatedThreads||b[28]!==f?(h=(0,o.jsx)(N.l.Item,{selected:w.showOutdatedThreads,onSelect:f,children:”Show outdated comments”}),b[27]=w.showOutdatedThreads,b[28]=f,b[29]=h):h=b[29],b[30]!==j||b[31]!==w.selectedAuthor||b[32]!==_?(p=j.length>1&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.l.Divider,{}),(0,o.jsxs)(N.l.Group,{children:[(0,o.jsx)(N.l.GroupHeading,{children:”Filter by”}),j.map(e=>(0,o.jsxs)(N.l.Item,{selected:w.selectedAuthor===e.login,onSelect:()=>_(e.login),children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(e6.r,{src:e.avatarUrl})}),e.login]},e.login))]})]}),b[30]=j,b[31]=w.selectedAuthor,b[32]=_,b[33]=p):p=b[33],b[34]!==m||b[35]!==h||b[36]!==p?(g=(0,o.jsxs)(e5.W,{children:[d,(0,o.jsx)(e5.W.Overlay,{width:”small”,children:(0,o.jsxs)(N.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,y.$)(“d-flex flex-row gap-2 flex-nowrap”,t),children:[(0,o.jsx)(e4.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)(e5.W,{children:[(0,o.jsx)(e5.W.Anchor,{children:(0,o.jsx)(ef.Q,{“aria-label”:”Additional comment filters”,className:”flex-shink-0″,leadingVisual:A.FilterIcon,trailingAction:A.TriangleDownIcon,children:”Filter”})}),(0,o.jsx)(e5.W.Overlay,{width:”small”,children:(0,o.jsxs)(N.l,{selectionVariant:”single”,children:[(0,o.jsx)(N.l.Item,{selected:n.showResolvedThreads,onSelect:()=>void i({…n,showResolvedThreads:!n.showResolvedThreads}),children:”Show resolved comments”}),(0,o.jsx)(N.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)(N.l.Divider,{}),(0,o.jsxs)(N.l.Group,{children:[(0,o.jsx)(N.l.GroupHeading,{children:”Filter by”}),e.map(e=>(0,o.jsxs)(N.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)(N.l.LeadingVisual,{children:(0,o.jsx)(e6.r,{src:e.avatarUrl})}),e.login]},e.login))]})]})]})})]})]})};try{e9.displayName||(e9.displayName=”CommentsFilter”)}catch{}var te=n(61219),tt=n(98091),tn=n(58615),ti=n(72511),ta=n(26607);let tr=”ConversationHeader-module__file-name-overflow–Ymb0e”,ts=(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:C,isCollapsed:w,isOutdated:N,isResolved:S,line:L,onToggleCollapsed:D,onNavigateToDiffComment:I,path:_,rightSideContent:k,threadId:R,headingLevel:O}=e,P=void 0===O?”h3″:O;b[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,eT.A)(“localStorage”),b[0]=t):t=b[0];let F=t,[$,M]=(0,j.useState)(w);b[1]!==R?(n=()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${R}`);null!==e&&M(JSON.parse(e))},b[1]=R,b[2]=n):n=b[2],b[3]!==$||b[4]!==R?(i=[$,R],b[3]=$,b[4]=R,b[5]=i):i=b[5],(0,j.useEffect)(n,i),b[6]!==$||b[7]!==D||b[8]!==R?(a=()=>{F.setItem(`reviewThreadIsCollapsed_${R}`,JSON.stringify(!$)),M(tl),D()},b[6]=$,b[7]=D,b[8]=R,b[9]=a):a=b[9];let B=a,V=$&&”rounded-2″,U=$&&”border-bottom-0″;b[10]!==V||b[11]!==U?(r=(0,y.$)(“d-flex flex-row flex-items-center px-2 py-1 bgColor-muted rounded-top-2 border-bottom”,V,U),b[10]=V,b[11]=U,b[12]=r):r=b[12];let H=$?”Open review comment”:”Close review comment”,G=$?A.ChevronRightIcon:A.ChevronDownIcon;b[13]!==B||b[14]!==G||b[15]!==H?(s=(0,o.jsx)(eo.K,{“aria-label”:H,icon:G,size:”small”,variant:”invisible”,onClick:B}),b[13]=B,b[14]=G,b[15]=H,b[16]=s):s=b[16],b[17]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,y.$)(tr,”d-inline text-mono no-wrap overflow-hidden direction-rtl fgColor-default”),b[17]=l):l=b[17];let q=`#r${C}`;b[18]!==I||b[19]!==_||b[20]!==q?(d=(0,o.jsxs)(T.A,{className:l,onClick:I,href:q,muted:!0,children:[“\u200E”,_,”\u200E”]}),b[18]=I,b[19]=_,b[20]=q,b[21]=d):d=b[21],b[22]!==_||b[23]!==d?(u=(0,o.jsx)(E.m,{direction:”n”,text:_,type:”label”,children:d}),b[22]=_,b[23]=d,b[24]=u):u=b[24],b[25]!==L?(m=!!L&&(0,o.jsxs)(“span”,{className:”f6 fgColor-muted text-normal no-wrap ml-2″,children:[“Line “,L]}),b[25]=L,b[26]=m):m=b[26],b[27]!==P||b[28]!==u||b[29]!==m?(f=(0,o.jsxs)(ee.A,{as:P,className:”d-flex flex-items-center flex-1 min-width-0 mr-2 ml-1 f6 text-semibold”,children:[u,m]}),b[27]=P,b[28]=u,b[29]=m,b[30]=f):f=b[30],b[31]!==S?(h=S&&(0,o.jsx)(ta.A,{size:”large”,className:”mx-1″,variant:”secondary”,children:”Resolved”}),b[31]=S,b[32]=h):h=b[32],b[33]!==N||b[34]!==S?(p=N&&!S&&(0,o.jsx)(ta.A,{size:”large”,className:”mx-1″,variant:”attention”,children:”Outdated”}),b[33]=N,b[34]=S,b[35]=p):p=b[35];let z=`#r${C}`;return b[36]!==I||b[37]!==z?(g=(0,o.jsx)(eo.K,{as:”a”,”aria-label”:”Jump to the comment in the diff”,tooltipDirection:”se”,icon:A.FileSymlinkFileIcon,variant:”invisible”,href:z,onClick:I}),b[36]=I,b[37]=z,b[38]=g):g=b[38],b[39]!==k||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,k]}),b[39]=k,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,eT.A)(“localStorage”),[f,h]=(0,j.useState)(t);return(0,j.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${c}`);null!==e&&h(JSON.parse(e))},[f,c]),(0,o.jsxs)(“div”,{className:(0,y.$)(“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)(eo.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)(ee.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)(E.m,{direction:”n”,text:l,type:”label”,children:(0,o.jsxs)(T.A,{className:(0,y.$)(tr,”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)(ta.A,{size:”large”,className:”mx-1″,variant:”secondary”,children:”Resolved”}),n&&!i&&(0,o.jsx)(ta.A,{size:”large”,className:”mx-1″,variant:”attention”,children:”Outdated”}),(0,o.jsx)(eo.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 tl(e){return!e}try{ts.displayName||(ts.displayName=”ConversationHeader”)}catch{}let to=”ThreadHeader-module__ThreadHeaderIconButton–RGjVM”;var td=n(97695),tc=n(39698),tu=n(21067);let tm=(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:y}=e,{sendPullRequestAnalyticsEvent:C}=(0,es.q)(),[w,N]=(0,j.useState)(void 0),S=p.previewInfo,{line:L}=S;d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,tu.M3)(),d[0]=t):t=d[0];let D=t,{mutate:I}=(0,td.H)(S.path,y);d[1]!==m||d[2]!==x||d[3]!==f||d[4]!==S.threadId||d[5]!==I?(n=()=>{x||I({threadId:S.threadId},{onError:()=>N(“Failed to resolve thread”),onSuccess:()=>{m||f()}})},d[1]=m,d[2]=x,d[3]=f,d[4]=S.threadId,d[5]=I,d[6]=n):n=d[6];let _=n,{mutate:k}=(0,tc.i)(S.path,y);d[7]!==m||d[8]!==x||d[9]!==f||d[10]!==C||d[11]!==p||d[12]!==k?(i=async()=>{!p||x&&(k({threadId:p.previewInfo.threadId},{onError:()=>N(“Failed to unresolve thread”),onSuccess:()=>{m&&f()}}),C(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},d[7]=m,d[8]=x,d[9]=f,d[10]=C,d[11]=p,d[12]=k,d[13]=i):i=d[13];let R=i;return d[14]!==_||d[15]!==R||d[16]!==x?(a=D?(0,o.jsx)(eo.K,{“aria-label”:x?”Unresolve conversation”:”Resolve conversation”,tooltipDirection:”sw”,icon:x?A.CheckCircleFillIcon:A.CheckCircleIcon,”data-thread-resolved”:x,className:to,variant:”invisible”,onClick:x?R:_}):null,d[14]=_,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]!==L||d[24]!==h||d[25]!==f||d[26]!==S.path||d[27]!==S.threadId||d[28]!==a?(r=(0,o.jsx)(ts,{firstCommentId:u,isCollapsed:m,isOutdated:b,isResolved:x,line:L,path:S.path,rightSideContent:a,onNavigateToDiffComment:h,onToggleCollapsed:f,threadId:S.threadId,headingLevel:g}),d[18]=u,d[19]=g,d[20]=m,d[21]=b,d[22]=x,d[23]=L,d[24]=h,d[25]=f,d[26]=S.path,d[27]=S.threadId,d[28]=a,d[29]=r):r=d[29],d[30]!==w?(s=w&&(0,o.jsxs)(ti.A,{variant:”danger”,className:”m-2″,children:[(0,o.jsx)(A.StopIcon,{className:”mr-2″}),w]}),d[30]=w,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,es.q)(),[u,m]=(0,j.useState)(void 0),f=a.previewInfo,{line:h}=f,p=(0,tu.M3)(),{mutate:g}=(0,td.H)(f.path,d),{mutate:x}=(0,tc.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)(ts,{firstCommentId:e,isCollapsed:t,isOutdated:l,isResolved:s,line:h,path:f.path,rightSideContent:p?(0,o.jsx)(eo.K,{“aria-label”:s?”Unresolve conversation”:”Resolve conversation”,tooltipDirection:”sw”,icon:s?A.CheckCircleFillIcon:A.CheckCircleIcon,”data-thread-resolved”:s,className:to,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)(ti.A,{variant:”danger”,className:”m-2″,children:[(0,o.jsx)(A.StopIcon,{className:”mr-2″}),u]})]})};try{tm.displayName||(tm.displayName=”ThreadHeader”)}catch{}var tf=n(24494);let th=(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(tp),i[0]=a,i[1]=t):t=i[1],i[2]!==t?(n=(0,o.jsx)(tf.A,{children:t}),i[2]=t,i[3]=n):n=i[3],n)}:function({commentAuthors:e}){return e.length<1?null:(0,o.jsx)(tf.A,{children:e.map(({login:e,avatarUrl:t})=>(0,o.jsx)(e6.r,{alt:e,size:18,src:t},e))})};function tp(e){let{login:t,avatarUrl:n}=e;return(0,o.jsx)(e6.r,{alt:t,size:18,src:n},t)}try{th.displayName||(th.displayName=”PreviewAuthors”)}catch{}var tg=n(36729),tx=n(73017);let tb=”PendingCommentPreview-module__commentBody–hkwI8″,tv=(0,j.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d=(0,c.c)(30),{commentPreview:u,onNavigateToDiffComment:m,tabSize:f}=e,[h,p]=(0,j.useState)(!1),g=u.commentId,{navigateToSelectedComment:x}=(0,_.Lh)();d[0]!==u.commentsData?(t=u.commentsData??{comments:[]},d[0]=u.commentsData,d[1]=t):t=d[1],d[2]!==g||d[3]!==t?(n=ty(g,t),d[2]=g,d[3]=t,d[4]=n):n=d[4];let b=n,C=u.threadPreviewComments.length,w=`${C} previous ${1===C?”comment”:”comments”}`;d[5]!==g||d[6]!==x||d[7]!==m?(i=()=>{let e=parseInt(g);x(e);let t=window.location.pathname+window.location.search;(0,D.kd)(`${t}#r${e}`),m(g)},d[5]=g,d[6]=x,d[7]=m,d[8]=i):i=d[8];let N=i,S=u.isOutdated||!1,L=u.isResolved||!1,I=u.line,k=u.path;d[9]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>p(tC),d[9]=a):a=d[9];let R=u.threadId,E=parseInt(u.commentId);return d[10]!==u.line||d[11]!==u.path||d[12]!==u.threadId||d[13]!==h||d[14]!==N||d[15]!==E||d[16]!==S||d[17]!==L?(r=(0,o.jsx)(ts,{isCollapsed:h,isOutdated:S,isResolved:L,line:I,path:k,onNavigateToDiffComment:N,onToggleCollapsed:a,threadId:R,firstCommentId:E}),d[10]=u.line,d[11]=u.path,d[12]=u.threadId,d[13]=h,d[14]=N,d[15]=E,d[16]=S,d[17]=L,d[18]=r):r=d[18],d[19]!==b||d[20]!==u||d[21]!==h||d[22]!==N||d[23]!==C||d[24]!==w||d[25]!==f?(s=!h&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,o.jsx)(tt.i,{diffTableClassName:”border-0″,diffLines:u.subject?.diffLines,className:”m-0 border-0″,tabSize:f||4})}),C>0&&(0,o.jsx)(“div”,{className:”my-2 px-2″,children:(0,o.jsx)(ef.Q,{“aria-label”:”View comment in diff”,size:”small”,trailingVisual:A.ChevronRightIcon,variant:”invisible”,onClick:N,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,o.jsx)(“span”,{children:w}),(0,o.jsx)(th,{commentAuthors:b})]})})}),(0,o.jsx)(tx.$6,{className:(0,y.$)(“markdown-body”,tb),html:tj(u)})]}),d[19]=b,d[20]=u,d[21]=h,d[22]=N,d[23]=C,d[24]=w,d[25]=f,d[26]=s):s=d[26],d[27]!==r||d[28]!==s?(l=(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[r,s]}),d[27]=r,d[28]=s,d[29]=l):l=d[29],l}:function({commentPreview:e,onNavigateToDiffComment:t,tabSize:n}){let[i,a]=(0,j.useState)(!1),r=e.commentId,{navigateToSelectedComment:s}=(0,_.Lh)(),l=ty(r,e.commentsData??{comments:[]}),d=e.threadPreviewComments.length,c=`${d} previous ${1===d?”comment”:”comments”}`,u=(0,j.useCallback)(()=>{let e=parseInt(r);s(e);let n=window.location.pathname+window.location.search;(0,D.kd)(`${n}#r${e}`),t(r)},[r,s,t]);return(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[(0,o.jsx)(ts,{isCollapsed:i,isOutdated:e.isOutdated||!1,isResolved:e.isResolved||!1,line:e.line,path:e.path,onNavigateToDiffComment:u,onToggleCollapsed:()=>a(e=>!e),threadId:e.threadId,firstCommentId:parseInt(e.commentId)}),!i&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,o.jsx)(tt.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)(ef.Q,{“aria-label”:”View comment in diff”,size:”small”,trailingVisual:A.ChevronRightIcon,variant:”invisible”,onClick:u,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,o.jsx)(“span”,{children:c}),(0,o.jsx)(th,{commentAuthors:l})]})})}),(0,o.jsx)(tx.$6,{className:(0,y.$)(“markdown-body”,tb),html:tj(e)})]})]})});function ty(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 tj(e){let t=(e.commentsData?.comments??[]).find(t=>t&&String(t.databaseId)===e.commentId);return t?.bodyHTML??””}try{tv.displayName||(tv.displayName=”PendingCommentPreview”)}catch{}function tC(e){return!e}function tw(e){return`panel-thread-collapsed-state-${e}`}let tN=(0,j.memo)((0,d.Z6)()?function(e){let t,n,i,a,r,s,l=(0,c.c)(39),{onNavigateToDiffComment:d,tabSize:u,threadPreview:m,headingLevel:f}=e,{previewInfo:h}=m,{threadId:p,firstComment:g}=h,x=g?.id,b=h.path,{navigateToSelectedComment:y}=(0,_.Lh)(),j=(0,_.SM)(),C=h.subject?.endDiffSide===”RIGHT”?”R”:”L”,w=h.subject?.originalEndLine?`${C}${h.subject.originalEndLine}`:tg.zW,N=j(Number(h.threadId),h.path,w),S=N?.isResolved||!1,L=h.isOutdated||!1;l[0]!==g?.databaseId||l[1]!==L||l[2]!==y||l[3]!==d||l[4]!==h.originalDiffPathUri?(t=()=>{let e=g?.databaseId;if(e){if(L&&h.originalDiffPathUri){let e=new URL(h.originalDiffPathUri);e.searchParams.set(“new_files_changed”,”true”),window.location.href=e.toString()}else{y(e);let t=window.location.pathname+window.location.search;(0,D.kd)(`${t}#r${e}`)}d()}},l[0]=g?.databaseId,l[1]=L,l[2]=y,l[3]=d,l[4]=h.originalDiffPathUri,l[5]=t):t=l[5];let I=t;l[6]!==p?(n=tw(p),l[6]=p,l[7]=n):n=l[7];let[k,R]=(0,tn.M)(n,!1),E=h.threadPreviewComments.length,T=0===E?”No replies”:`${E} ${1===E?”reply”:”replies”}`,O={…N,id:N?.id??””,commentsData:{comments:[]}};if(!g||!O)return null;let P=ty(h.commentId,N?.commentsData??{comments:[]}),F=g?.databaseId;return l[8]!==k||l[9]!==R?(i=()=>R(!k),l[8]=k,l[9]=R,l[10]=i):i=l[10],l[11]!==f||l[12]!==k||l[13]!==L||l[14]!==S||l[15]!==w||l[16]!==I||l[17]!==F||l[18]!==i||l[19]!==m?(a=(0,o.jsx)(tm,{firstCommentId:F,isCollapsed:k,threadPreview:m,onNavigateToDiffComment:I,onToggleCollapsed:i,headingLevel:f,isResolved:S,isOutdated:L,lineKey:w}),l[11]=f,l[12]=k,l[13]=L,l[14]=S,l[15]=w,l[16]=I,l[17]=F,l[18]=i,l[19]=m,l[20]=a):a=l[20],l[21]!==P||l[22]!==x||l[23]!==b||l[24]!==g||l[25]!==k||l[26]!==L||l[27]!==S||l[28]!==w||l[29]!==I||l[30]!==h.originalDiffPathUri||l[31]!==h.subject?.diffLines||l[32]!==T||l[33]!==u||l[34]!==p?(r=!k&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,o.jsx)(tt.i,{diffTableClassName:”border-0″,diffLines:h?.subject?.diffLines,className:”m-0 border-0″,tabSize:u||4})}),(0,o.jsx)(“div”,{children:(0,o.jsx)(te.U,{lineMarkersKey:w,hideActions:!0,isInlineComment:!1,comment:g,filePath:b,index:0,isAnchorable:!1,isOutdated:L,isThreadResolved:S,threadId:p,originalDiffPathUri:h.originalDiffPathUri,headingLevel:”h3″},x)}),(0,o.jsx)(“div”,{className:”mb-2 px-2″,children:(0,o.jsx)(ef.Q,{“aria-label”:`View ${T}`,size:”small”,trailingVisual:A.ChevronRightIcon,variant:”invisible”,onClick:I,children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-start flex-items-center gap-2″,children:[(0,o.jsx)(“span”,{children:T}),(0,o.jsx)(th,{commentAuthors:P})]})})})]}),l[21]=P,l[22]=x,l[23]=b,l[24]=g,l[25]=k,l[26]=L,l[27]=S,l[28]=w,l[29]=I,l[30]=h.originalDiffPathUri,l[31]=h.subject?.diffLines,l[32]=T,l[33]=u,l[34]=p,l[35]=r):r=l[35],l[36]!==a||l[37]!==r?(s=(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[a,r]}),l[36]=a,l[37]=r,l[38]=s):s=l[38],s}:function({onNavigateToDiffComment:e,tabSize:t,threadPreview:n,headingLevel:i}){let{previewInfo:a}=n,{threadId:r,firstComment:s}=a,l=s?.id,d=a.path,{navigateToSelectedComment:c}=(0,_.Lh)(),u=(0,_.SM)(),m=a.subject?.endDiffSide===”RIGHT”?”R”:”L”,f=a.subject?.originalEndLine?`${m}${a.subject.originalEndLine}`:tg.zW,h=u(Number(a.threadId),a.path,f),p=h?.isResolved||!1,g=a.isOutdated||!1,x=()=>{let t=s?.databaseId;if(t){if(g&&a.originalDiffPathUri){let e=new URL(a.originalDiffPathUri);e.searchParams.set(“new_files_changed”,”true”),window.location.href=e.toString()}else{c(t);let e=window.location.pathname+window.location.search;(0,D.kd)(`${e}#r${t}`)}e()}},[b,y]=(0,tn.M)(tw(r),!1),j=a.threadPreviewComments.length,C=0===j?”No replies”:`${j} ${1===j?”reply”:”replies”}`,w={…h,id:h?.id??””,commentsData:{comments:[]}};if(!s||!w)return null;let N=ty(a.commentId,h?.commentsData??{comments:[]});return(0,o.jsxs)(“div”,{className:”border rounded-2 d-flex flex-column”,children:[(0,o.jsx)(tm,{firstCommentId:s?.databaseId,isCollapsed:b,threadPreview:n,onNavigateToDiffComment:x,onToggleCollapsed:()=>y(!b),headingLevel:i,isResolved:p,isOutdated:g,lineKey:f}),!b&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“div”,{className:”border-bottom borderColor-muted overflow-x-auto”,children:(0,o.jsx)(tt.i,{diffTableClassName:”border-0″,diffLines:a?.subject?.diffLines,className:”m-0 border-0″,tabSize:t||4})}),(0,o.jsx)(“div”,{children:(0,o.jsx)(te.U,{lineMarkersKey:f,hideActions:!0,isInlineComment:!1,comment:s,filePath:d,index:0,isAnchorable:!1,isOutdated:g,isThreadResolved:p,threadId:r,originalDiffPathUri:a.originalDiffPathUri,headingLevel:”h3″},l)}),(0,o.jsx)(“div”,{className:”mb-2 px-2″,children:(0,o.jsx)(ef.Q,{“aria-label”:`View ${C}`,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:C}),(0,o.jsx)(th,{commentAuthors:N})]})})})]})]})});try{tN.displayName||(tN.displayName=”ThreadPreview”)}catch{}var tS=n(4559),tL=n(76720);let tD=(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)(tL.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)(tL.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)(tL.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)(tL.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)(tL.E,{children:[(0,o.jsx)(tL.E.Visual,{children:(0,o.jsx)(n,{size:”medium”})}),(0,o.jsx)(tL.E.Heading,{as:i,children:e}),t&&(0,o.jsx)(tL.E.Description,{children:t})]})};try{tD.displayName||(tD.displayName=”ZeroState”)}catch{}var tI=n(69510);let t_=(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:y,tabSize:w}=e;f[0]!==x?(t={pathName:x},f[0]=x,f[1]=t):t=f[1];let{data:N}=(0,tI._l)(t),S=void 0===N?[]:N;(0,j.useEffect)(()=>{y(S)},[S,y]);let L=(0,j.useRef)(null);f[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,C.s)(tS.i,300),f[2]=n):n=f[2];let D=n,I=S.length>0;f[3]!==p?(i=()=>{p()},f[3]=p,f[4]=i):i=f[4];let _=i;f[5]!==h||f[6]!==_||f[7]!==w?(a=e=>e&&h.has(e.previewInfo.threadId)?(0,o.jsx)(tN,{tabSize:w,threadPreview:e,onNavigateToDiffComment:_,headingLevel:”h2″},e.previewInfo.threadId):null,f[5]=h,f[6]=_,f[7]=w,f[8]=a):a=f[8];let k=S.map(a).filter(Boolean);return f[9]!==D||f[10]!==b||f[11]!==k.length?(r=()=>{b&&D(k.length>0?`${k.length} ${1===k.length?”comment”:”comments”}`:”No comments found”,{element:L.current})},f[9]=D,f[10]=b,f[11]=k.length,f[12]=r):r=f[12],f[13]!==D||f[14]!==b||f[15]!==k?(s=[b,D,k],f[13]=D,f[14]=b,f[15]=k,f[16]=s):s=f[16],(0,j.useEffect)(r,s),f[17]!==g.reviewThreadsLimit||f[18]!==g.reviewThreadsLimitExceeded?(l=g.reviewThreadsLimitExceeded&&(0,o.jsx)(eZ.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]!==I||f[21]!==k?(d=k.length>0?(0,o.jsx)(j.Suspense,{fallback:(0,o.jsx)(et.A,{}),children:(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)(tD,{description:”Comments will show up here as soon as there are some.”,heading:I?”No comments match the current filter”:”No comments on changes yet”,icon:A.CommentIcon,headingLevel:”h2″})}),f[20]=I,f[21]=k,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:L}),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,tI._l)({pathName:i});(0,j.useEffect)(()=>{r(l)},[l,r]);let d=(0,j.useRef)(null),c=(0,j.useMemo)(()=>(0,C.s)(tS.i,300),[]),u=l.length>0,m=(0,j.useCallback)(()=>{t()},[t]),f=l.map(t=>t&&e.has(t.previewInfo.threadId)?(0,o.jsx)(tN,{tabSize:s,threadPreview:t,onNavigateToDiffComment:m,headingLevel:”h2″},t.previewInfo.threadId):null).filter(Boolean);return(0,j.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)(eZ.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)(j.Suspense,{fallback:(0,o.jsx)(et.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)(tD,{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})]})},tk=(0,j.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,j.useState)(a),[b,y]=(0,j.useState)(tR);h[5]!==b||h[6]!==p?(r=e7(p,b),h[5]=b,h[6]=p,h[7]=r):r=h[7];let C=r,w=(0,j.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 N=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]!==N||h[12]!==b||h[13]!==n.onClose?(d=e=>{let{dialogLabelId:t}=e;return(0,o.jsxs)(x.l.Header,{children:[(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-between flex-items-center width-full pl-2″,children:[(0,o.jsx)(x.l.Title,{id:t,children:”Comments”}),(0,o.jsx)(eo.K,{ref:w,”aria-label”:”Close comments panel”,icon:A.XIcon,variant:”invisible”,onClick:n.onClose})]}),(0,o.jsx)(e9,{authorList:N,className:”mt-2 width-full”,filterState:b,onFilterStateChange:y})]})},h[11]=N,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)(et.A,{})}),h[15]=u):u=h[15],h[16]!==C||h[17]!==t||h[18]!==n?(m=(0,o.jsx)(j.Suspense,{fallback:u,children:(0,o.jsx)(t_,{…n,filteredThreadIds:C,pathName:t,setThreadPreviews:g})}),h[16]=C,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:w,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,j.useState)([]),[s,l]=(0,j.useState)(()=>({…e8})),d=e7(a,s),c=(0,j.useRef)(null),u=(0,j.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,{children:[(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-between flex-items-center width-full pl-2″,children:[(0,o.jsx)(x.l.Title,{id:e,children:”Comments”}),(0,o.jsx)(eo.K,{ref:c,”aria-label”:”Close comments panel”,icon:A.XIcon,variant:”invisible”,onClick:i.onClose})]}),(0,o.jsx)(e9,{authorList:u,className:”mt-2 width-full”,filterState:s,onFilterStateChange:l})]}),children:(0,o.jsx)(j.Suspense,{fallback:(0,o.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,o.jsx)(et.A,{})}),children:(0,o.jsx)(t_,{…i,filteredThreadIds:d,pathName:t,setThreadPreviews:r})})}):null});try{t_.displayName||(t_.displayName=”CommentsSidePanelContent”)}catch{}try{tk.displayName||(tk.displayName=”CommentsSidePanel”)}catch{}function tR(){return{…e8}}let tA=(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,j.useState)(!1),x=(0,j.useRef)(null),b=(0,_.Qb)(),{sendPullRequestAnalyticsEvent:y}=(0,es.q)();return d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(ef.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]!==y?(n=()=>{y(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e3(),g(!0)},d[1]=y,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)(ef.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)(tk,{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)(Y.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,j.useState)(!1),s=(0,j.useRef)(null),l=(0,_.Qb)(),{sendPullRequestAnalyticsEvent:d}=(0,es.q)();return(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsxs)(Y.t,{fallback:(0,o.jsx)(ef.Q,{“aria-label”:”The comments side panel cannot currently be opened.”,leadingVisual:A.CommentDiscussionIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(ef.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”),e3(),r(!0)},children:e&&(0,o.jsx)(“span”,{className:”d-none d-xl-block”,children:”Comments”})}),(0,o.jsx)(tk,{isOpen:a,pageLimits:t,pathName:n.pathName,tabSize:i,toggleSidesheetRef:s,onClose:()=>r(!1)})]})})};try{tA.displayName||(tA.displayName=”OpenCommentsSidePanelButton”)}catch{}var tE=n(86909);function tT(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 tO=(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)(e4.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)(e4.A,{block:!0,”aria-label”:”Filter alerts\u2026″,leadingVisual:A.SearchIcon,placeholder:”Filter alerts\u2026″,value:t,onChange:e=>n(e.target.value)})})};try{tO.displayName||(tO.displayName=”AlertsFilter”)}catch{}let tP=”AlertsSidePanel-module__annotationsHeaderFileName–JzcsF”,tF=(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,j=g?”Expand annotation”:”Collapse annotation”,C=g?A.ChevronRightIcon:A.ChevronDownIcon;u[0]!==j||u[1]!==C||u[2]!==p?(t=(0,o.jsx)(eo.K,{“aria-label”:j,icon:C,size:”small”,variant:”invisible”,className:”mr-1″,onClick:p}),u[0]=j,u[1]=C,u[2]=p,u[3]=t):t=u[3];let w=tE.Gt[b];u[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,y.$)(“overflow-hidden text-mono text-semibold f6 no-wrap”,tP),u[4]=n):n=u[4];let N=`#annotation_${m}`;u[5]!==x||u[6]!==h||u[7]!==N?(i=(0,o.jsxs)(T.A,{className:n,href:N,onClick:x,muted:!0,children:[“\u200E”,h]}),u[5]=x,u[6]=h,u[7]=N,u[8]=i):i=u[8],u[9]!==h||u[10]!==i?(a=(0,o.jsx)(E.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]!==w||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,w,a,r]}),u[14]=t,u[15]=w,u[16]=a,u[17]=r,u[18]=s):s=u[18];let S=`#annotation_${m}`;return u[19]!==x||u[20]!==S?(l=(0,o.jsx)(eo.K,{as:”a”,”aria-label”:”Jump to the alert in the diff”,tooltipDirection:”se”,icon:A.FileSymlinkFileIcon,variant:”invisible”,href:S,onClick:x}),u[19]=x,u[20]=S,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)(eo.K,{“aria-label”:a?”Expand annotation”:”Collapse annotation”,icon:a?A.ChevronRightIcon:A.ChevronDownIcon,size:”small”,variant:”invisible”,className:”mr-1″,onClick:i}),tE.Gt[s],(0,o.jsx)(E.m,{direction:”n”,text:n,type:”label”,children:(0,o.jsxs)(T.A,{className:(0,y.$)(“overflow-hidden text-mono text-semibold f6 no-wrap”,tP),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)(eo.K,{as:”a”,”aria-label”:”Jump to the alert in the diff”,tooltipDirection:”se”,icon:A.FileSymlinkFileIcon,variant:”invisible”,href:`#annotation_${e}`,onClick:r})]})},t$=(0,j.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:y}=e,[w,N]=(0,j.useState)(“”),S=tT(h,w),L=(0,j.useRef)(null),D=h.length>0,I=(0,_.j5)(),{navigateToSelectedAnnotation:k}=(0,_.Lh)();f[0]!==I||f[1]!==k||f[2]!==p?(t=e=>{I&&k(e),p()},f[0]=I,f[1]=k,f[2]=p,f[3]=t):t=f[3];let R=t,E=h.map(e=>e&&S.has(e.id)?(0,o.jsx)(tM,{annotation:e,handleNavigateToAnnotation:R},e.id):null).filter(Boolean),T=(0,j.useRef)(null);f[4]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,C.s)(tS.i,300),f[4]=n):n=f[4];let O=n;return(f[5]!==E||f[6]!==g?(i=()=>{g&&O(E.length>0?`${E.length} ${1===E.length?”alert”:”alerts”}`:”No alerts found”,{element:T.current})},a=[g,O,E],f[5]=E,f[6]=g,f[7]=i,f[8]=a):(i=f[7],a=f[8]),(0,j.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]!==w||f[11]!==p?(s=e=>{let{dialogLabelId:t}=e;return(0,o.jsxs)(x.l.Header,{children:[(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center flex-justify-between width-full pl-2″,children:[(0,o.jsx)(ee.A,{as:”h1″,className:”f4 text-bold”,id:t,children:”Alerts”}),(0,o.jsx)(eo.K,{ref:L,”aria-label”:”Close alerts panel”,icon:A.XIcon,variant:”invisible”,onClick:p})]}),(0,o.jsx)(tO,{className:”mt-2 width-full”,filteredText:w,onFilteredTextChange:N})]})},f[10]=w,f[11]=p,f[12]=s):s=f[12],f[13]!==b.annotationsLimit||f[14]!==b.annotationsLimitExceeded?(l=b.annotationsLimitExceeded&&(0,o.jsx)(eZ.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]!==E||f[17]!==D?(d=E.length>0?(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full gap-3″,children:E}):(0,o.jsx)(“div”,{className:”d-flex flex-column position-relative width-full height-full flex-justify-center”,children:(0,o.jsx)(tD,{heading:D?”No alerts match the current filter”:”No alerts on changes yet”,icon:A.AlertIcon})}),f[16]=E,f[17]=D,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:T}),f[19]=u):u=f[19],f[20]!==p||f[21]!==y||f[22]!==s||f[23]!==l||f[24]!==d?(m=(0,o.jsxs)(x.l,{initialFocusRef:L,onClose:p,position:r,returnFocusRef:y,renderHeader:s,children:[l,d,u]}),f[20]=p,f[21]=y,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,j.useState)(“”),l=tT(e,r),d=(0,j.useRef)(null),c=e.length>0,u=(0,_.j5)(),{navigateToSelectedAnnotation:m}=(0,_.Lh)(),f=(0,j.useCallback)(e=>{u&&m(e),t()},[t,u,m]),h=e.map(e=>e&&l.has(e.id)?(0,o.jsx)(tM,{annotation:e,handleNavigateToAnnotation:f},e.id):null).filter(Boolean),p=(0,j.useRef)(null),g=(0,j.useMemo)(()=>(0,C.s)(tS.i,300),[]);return((0,j.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,{children:[(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-items-center flex-justify-between width-full pl-2″,children:[(0,o.jsx)(ee.A,{as:”h1″,className:”f4 text-bold”,id:e,children:”Alerts”}),(0,o.jsx)(eo.K,{ref:d,”aria-label”:”Close alerts panel”,icon:A.XIcon,variant:”invisible”,onClick:t})]}),(0,o.jsx)(tO,{className:”mt-2 width-full”,filteredText:r,onFilteredTextChange:s})]}),children:[i.annotationsLimitExceeded&&(0,o.jsx)(eZ.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)(tD,{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}),tM=(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,tE.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)(tF,{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)(tE.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,tE.Vv)(e);return(0,o.jsxs)(“div”,{className:”border rounded-2 bgColor-default overflow-hidden”,children:[(0,o.jsx)(tF,{databaseId:e.databaseId,lineNumber:e.endLine,annotationLevel:e.annotationLevel,path:e.path,toggleCollapsed:i,isCollapsed:n,onNavigateToAnnotation:()=>t(e.databaseId)}),!n&&(0,o.jsx)(tE.YH,{annotation:e,inSidePanel:!0})]},e.id)};try{tF.displayName||(tF.displayName=”AnnotationHeader”)}catch{}try{t$.displayName||(t$.displayName=”AlertsSidePanel”)}catch{}try{tM.displayName||(tM.displayName=”SidePanelAlert”)}catch{}let tB=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(11),{isFileTreeExpanded:r,pageLimits:s,className:l}=e,[d,u]=(0,j.useState)(!1),m=(0,j.useRef)(null);a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>u(!1),a[0]=t):t=a[0];let f=t,h=(0,_.wI)(),{sendPullRequestAnalyticsEvent:p}=(0,es.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)(Y.t,{fallback:(0,o.jsx)(eo.K,{inactive:!0,”aria-label”:”The alerts side panel cannot currently be opened.”,icon:A.AlertIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(ef.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”),e3(),u(!0)},children:r&&(0,o.jsx)(“span”,{className:”d-none d-xl-block”,children:”Alerts”})}),(0,o.jsx)(t$,{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,j.useState)(!1),r=(0,j.useRef)(null),s=(0,j.useCallback)(()=>a(!1),[]),l=(0,_.wI)(),{sendPullRequestAnalyticsEvent:d}=(0,es.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)(Y.t,{fallback:(0,o.jsx)(eo.K,{inactive:!0,”aria-label”:”The alerts side panel cannot currently be opened.”,icon:A.AlertIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(ef.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”),e3(),a(!0)},children:e&&(0,o.jsx)(“span”,{className:”d-none d-xl-block”,children:”Alerts”})}),(0,o.jsx)(t$,{annotations:c,isOpen:i,pageLimits:t,returnFocusRef:r,onClose:s})]})}):null};try{tB.displayName||(tB.displayName=”OpenAlertsPanelButton”)}catch{}var tV=n(70109),tU=n(42255),tH=n(46251),tG=n(31604),tq=n(33578);let tz={approve:”approve”,comment:”comment”,requestChanges:”request changes”},tK=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(10),{onSuccess:s,onError:l}=e,o=(0,eb.e)(ex.uT.submitReview);return r[0]!==o?(t=async e=>{let{body:t,event:n,headSha:i}=e;return(0,eD.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,ev.n)(a)}:function({onSuccess:e,onError:t}){let n=(0,eb.e)(ex.uT.submitReview);return(0,ev.n)({mutationFn:async({body:e,event:t,headSha:i})=>(0,eD.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)}})},tW=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(10),{onSuccess:s,onError:l}=e,o=(0,eb.e)(ex.uT.abandonReview);return r[0]!==o?(t=async()=>(0,eD.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,ev.n)(a)}:function({onSuccess:e,onError:t}){let n=(0,eb.e)(ex.uT.abandonReview);return(0,ev.n)({mutationFn:async()=>(0,eD.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 tZ=n(46747);let{getItem:tQ,removeItem:tX,setItem:tJ}=(0,eT.D)(“localStorage”),tY=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(11),[s,l]=(0,j.useState)(!1),o=`Review:${e}`;r[0]!==o?(t=tQ(o),r[0]=o,r[1]=t):t=r[1];let d=t;r[2]!==o?(n=()=>{tX(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{tJ(o,{event:e,text:t})}catch{l(!0)}},r[4]=s,r[5]=o,r[6]=i):i=r[6];let m=(0,tZ.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,j.useState)(!1),i=(0,j.useMemo)(()=>`Review:${e}`,[e]);return{persistedReview:tQ(i),persistReviewToStorage:(0,tZ.d)((e,a)=>{if(!t)try{tJ(i,{event:e,text:a})}catch{n(!0)}},1e3),removePersistedReviewFromStorage:()=>{tX(i)}}},t0=”ReviewMenuButton-module__ReviewMenuButton–uK7FN”,t1=”ReviewMenuButton-module__CommentBoxContainer–Un2Pq”,t2=”ReviewMenuButton-module__SubmitReviewButton–ZSu4L”,t3=”ReviewMenuButton-module__ErrorMessage–bglZe”,t4=”ReviewMenuButton-module__ExpandSection–sAB8o”,t5=”ReviewMenuButton-module__AnchoredReviewBody–nirqE”,t6=[];function t7(e,t){let n=(0,_.BI)(e),i=(0,_.l0)();return(0,j.useMemo)(()=>{let a=e??t6;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 t8=n(29255),t9=n(55461),ne=n(15837),nt=n(33989),nn=n(55255);let ni=”ReviewMenu-module__Radio–i3DSd”,na=”ReviewMenu-module__RadioGroup–uQwUG”,nr=”ReviewMenu-module__RadioText–dXY49″,ns=(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)(nl,{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)(nl,{reviewEvent:t,viewerAllowedNonCommentReviewTypes:n,viewerCanWriteToRepo:i,viewerHasViolatedPushPolicy:a,viewerIsAuthor:r,viewerIsCopilotAttributed:s,onReviewEventChange:l})}):null},nl=(0,j.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:y,viewerCanWriteToRepo:j,viewerHasViolatedPushPolicy:C,viewerIsAuthor:w,viewerIsCopilotAttributed:N}=e;g[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(ne.A.Label,{visuallyHidden:!0,children:”Review Event”}),g[0]=t):t=g[0];let S=b===tz.comment;g[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,t9.ZH)(tz.comment),g[1]=n):n=g[1],g[2]!==S?(i=(0,o.jsx)(no,{checked:S,label:n,subLabel:”Submit general feedback without explicit approval.”,value:tz.comment}),g[2]=S,g[3]=i):i=g[3];let L=b===tz.approve;g[4]!==y?(a=y.includes(“APPROVE”),g[4]=y,g[5]=a):a=g[5];let D=!a;g[6]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,t9.ZH)(tz.approve),g[6]=r):r=g[6],g[7]!==N?(s=nu(N),g[7]=N,g[8]=s):s=g[8];let I=!!C;g[9]!==I||g[10]!==y||g[11]!==w?(l=nd(w,I,y),g[9]=I,g[10]=y,g[11]=w,g[12]=l):l=g[12],g[13]!==l||g[14]!==L||g[15]!==D||g[16]!==s?(d=(0,o.jsx)(no,{checked:L,disabled:D,label:r,subLabel:s,value:tz.approve,disabledTooltip:l}),g[13]=l,g[14]=L,g[15]=D,g[16]=s,g[17]=d):d=g[17];let _=b===tz.requestChanges;g[18]!==y?(u=y.includes(“REQUEST_CHANGES”),g[18]=y,g[19]=u):u=g[19];let k=!u;g[20]!==y||g[21]!==w?(m=nc(w,y),g[20]=y,g[21]=w,g[22]=m):m=g[22],g[23]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,t9.ZH)(tz.requestChanges),g[23]=f):f=g[23];let R=j?”Submit feedback that must be addressed before merging.”:”Submit feedback suggesting changes.”;return g[24]!==_||g[25]!==k||g[26]!==m||g[27]!==R?(h=(0,o.jsx)(no,{checked:_,disabled:k,disabledTooltip:m,label:f,value:tz.requestChanges,subLabel:R}),g[24]=_,g[25]=k,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)(ne.A,{name:”reviewEvent”,onChange:x,className:na,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)(ne.A,{name:”reviewEvent”,onChange:e,className:na,children:[(0,o.jsx)(ne.A.Label,{visuallyHidden:!0,children:”Review Event”}),(0,o.jsx)(no,{checked:t===tz.comment,label:(0,t9.ZH)(tz.comment),subLabel:”Submit general feedback without explicit approval.”,value:tz.comment}),(0,o.jsx)(no,{checked:t===tz.approve,disabled:!n.includes(“APPROVE”),label:(0,t9.ZH)(tz.approve),subLabel:nu(s),value:tz.approve,disabledTooltip:nd(r,!!a,n)}),(0,o.jsx)(no,{checked:t===tz.requestChanges,disabled:!n.includes(“REQUEST_CHANGES”),disabledTooltip:nc(r,n),label:(0,t9.ZH)(tz.requestChanges),value:tz.requestChanges,subLabel:i?”Submit feedback that must be addressed before merging.”:”Submit feedback suggesting changes.”})]})}),no=(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)(nt.A,{checked:d,value:p,className:ni}),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:nr,children:h}),l[5]=h,l[6]=i):i=l[6],l[7]!==n||l[8]!==i?(a=(0,o.jsxs)(ec.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)(ec.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)(nn.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)(ec.A,{disabled:t,children:[(0,o.jsx)(nt.A,{checked:e,value:r,className:ni}),(0,o.jsxs)(ec.A.Label,{className:”d-flex flex-column”,children:[(0,o.jsx)(“span”,{className:”text-bold”,children:i}),(0,o.jsx)(“span”,{className:nr,children:a})]})]});return t&&n?(0,o.jsx)(nn.A,{text:n,children:s}):s};function nd(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 nc(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 nu(e){return e?”Only users who did not collaborate with Copilot will satisfy review requirements.”:”Submit feedback and approve merging these changes.”}try{ns.displayName||(ns.displayName=”ReviewTypeSelector”)}catch{}try{nl.displayName||(nl.displayName=”ReviewRadioButtons”)}catch{}try{no.displayName||(no.displayName=”RadioButton”)}catch{}var nm=n(4908),nf=n(23398);let nh=(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,nm.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)(ee.A,{as:”h2″,className:”f5″,children:[“Pending comments “,(0,o.jsx)(S.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)(nf.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)(et.A,{}),f[13]=l):l=f[13],f[14]!==p||f[15]!==g?(d=p?.map(e=>(0,o.jsx)(tv,{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)(j.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)(nf.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,nm.A)({defaultOpen:!0,closeOnOutsideClick:!1});return e?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(nf.A,{…i(),children:[(0,o.jsx)(nf.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)(ee.A,{as:”h2″,className:”f5″,children:[“Pending comments “,(0,o.jsx)(S.A,{children:e})]})]})}),(0,o.jsx)(j.Suspense,{fallback:(0,o.jsx)(et.A,{}),children:(0,o.jsx)(“div”,{className:”d-flex flex-column gap-3″,children:t?.map(e=>(0,o.jsx)(tv,{commentPreview:e,onNavigateToDiffComment:n},e.threadId))})})]})}):null};try{nh.displayName||(nh.displayName=”ReviewCommentsSection”)}catch{}var np=n(56149);let ng=(0,d.Z6)()?e=>{let t,n,i,a=(0,c.c)(4),{portalName:r}=e,s=(0,j.useRef)(null);return a[0]!==r?(t=()=>{s.current&&(0,np.cw)(s.current,r)},n=[r],a[0]=r,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,j.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,j.useRef)(null);return(0,j.useEffect)(()=>{t.current&&(0,np.cw)(t.current,e)},[e]),(0,o.jsx)(“div”,{ref:t,className:”position-absolute”})};try{ng.displayName||(ng.displayName=”OverlayPortalContainer”)}catch{}let nx=”review-menu-portal-root”;function nb({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 nv=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,b,y,C,w,N,S,L,D,I,k,R,E,T,O,P,F,$,M,B,V=(0,c.c)(123),{currentUserLogin:U,pullRequest:H,repository:G,redirectOnMutation:q}=e,z=void 0===q||q,{author:K,pathName:W,state:Z,viewerAllowedNonCommentReviewTypes:Q,viewerHasViolatedPushPolicy:X,viewerIsCopilotAttributed:J,comparison:Y}=H,et=(0,_.ys)(),en=(0,_.HZ)(),{persistedReview:ei,persistReviewToStorage:ea,removePersistedReviewFromStorage:er}=tY(W),el=t7(et?.pendingReviewIDs,en),ed=el?.length??0,ec=K?.login===U,eu=Z!==tq.Q.Closed&&Z!==tq.Q.Merged,em=”WRITE”===G.viewerPermission||”ADMIN”===G.viewerPermission,eh=Y.headOid,[ep,eg]=(0,tU.A)(“none”),[ex,eb]=(0,tU.A)(“idle”),[ev,ey]=(0,tU.A)(),[ej,eC]=(0,tU.A)(ei?.event??tz.comment);V[0]!==et?.pendingReviewIDs?(t=et?.pendingReviewIDs??[],V[0]=et?.pendingReviewIDs,V[1]=t):t=V[1];let ew=t.length>0,eN=(0,j.useRef)(null),eS=ei?.text??””,eL=(0,j.useRef)(eS),[eD,eI]=(0,tU.A)(!!ei?.text),e_=”submitting”===ex||!eD&&ej===tz.comment&&!ed,{sendPullRequestAnalyticsEvent:ek}=(0,es.q)();V[2]!==ea||V[3]!==ej||V[4]!==eI?(n=e=>{eL.current=e,eI(!!e.trim()),ea(ej,e)},V[2]=ea,V[3]=ej,V[4]=eI,V[5]=n):n=V[5];let eR=n;V[6]!==ea||V[7]!==eC?(i=e=>{Object.values(tz).includes(e)&&(eC(e),ea(e,eL.current))},V[6]=ea,V[7]=eC,V[8]=i):i=V[8];let eA=i;V[9]!==z||V[10]!==er?(a=e=>{let{redirectUrl:t}=e;er(),z&&(window.location.href=t)},V[9]=z,V[10]=er,V[11]=a):a=V[11],V[12]!==ey||V[13]!==eb?(r=e=>{eb(“idle”),ey(e.message)},V[12]=ey,V[13]=eb,V[14]=r):r=V[14],V[15]!==a||V[16]!==r?(s={onSuccess:a,onError:r},V[15]=a,V[16]=r,V[17]=s):s=V[17];let{mutate:eE}=tK(s);V[18]!==z||V[19]!==er?(l=e=>{let{redirectUrl:t}=e;er(),z&&(window.location.href=t)},V[18]=z,V[19]=er,V[20]=l):l=V[20],V[21]!==ey||V[22]!==eb?(d=e=>{eb(“idle”),ey(e.message)},V[21]=ey,V[22]=eb,V[23]=d):d=V[23],V[24]!==l||V[25]!==d?(u={onSuccess:l,onError:d},V[24]=l,V[25]=d,V[26]=u):u=V[26];let{mutate:eT}=tW(u);V[27]!==ev||V[28]!==eh||V[29]!==ej||V[30]!==ek||V[31]!==ey||V[32]!==eb||V[33]!==e_||V[34]!==eE?(m=()=>{e_||(ev&&ey(void 0),eb(“submitting”),ek(“submit_review_dialog.submit”,”SUBMIT_REVIEW_BUTTON”),eE({body:eL.current,event:ej,headSha:eh}))},V[27]=ev,V[28]=eh,V[29]=ej,V[30]=ek,V[31]=ey,V[32]=eb,V[33]=e_,V[34]=eE,V[35]=m):m=V[35];let eO=m;V[36]!==eT||V[37]!==ev||V[38]!==et?.pendingReviewIDs||V[39]!==ek||V[40]!==ey||V[41]!==eb?(f=()=>{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”),ek(“submit_review_dialog.cancel”,”CANCEL_REVIEW_BUTTON”),eT())},V[36]=eT,V[37]=ev,V[38]=et?.pendingReviewIDs,V[39]=ek,V[40]=ey,V[41]=eb,V[42]=f):f=V[42],et?.pendingReviewIDs;let eP=f;V[43]!==eu||V[44]!==Q||V[45]!==ec?(h=nb({isPROpen:eu,viewerAllowedNonCommentReviewTypes:Q,viewerIsAuthor:ec}),V[43]=eu,V[44]=Q,V[45]=ec,V[46]=h):h=V[46];let eF=h;V[47]!==ek||V[48]!==eg?(p=()=>{window.innerWidth<768?eg("dialog"):eg("anchored"),ek("submit_review_dialog.open","REVIEW_CHANGES_BUTTON")},V[47]=ek,V[48]=eg,V[49]=p):p=V[49];let e$=p;V[50]!==eg?(g=()=>{eg(“none”)},V[50]=eg,V[51]=g):g=V[51];let eM=g;V[52]!==eg?(b=()=>{eg(“none”)},V[52]=eg,V[53]=b):b=V[53];let eB=b;V[54]!==eM||V[55]!==e$||V[56]!==ep?(y=()=>{“none”===ep?e$():eM()},V[54]=eM,V[55]=e$,V[56]=ep,V[57]=y):y=V[57];let eV=y;V[58]!==el||V[59]!==eB||V[60]!==eA||V[61]!==eO||V[62]!==eS||V[63]!==eu||V[64]!==eR||V[65]!==ej||V[66]!==ed||V[67]!==Q||V[68]!==em||V[69]!==X||V[70]!==ec||V[71]!==J?(C=(0,o.jsx)(nC,{initialReviewBody:eS,isPROpen:eu,onReviewBodyChange:eR,reviewEvent:ej,viewerAllowedNonCommentReviewTypes:Q,viewerCanWriteToRepo:em,viewerHasViolatedPushPolicy:X,viewerIsAuthor:ec,viewerIsCopilotAttributed:J,commentsList:el,totalPendingComments:ed,handleNavigateToDiffComment:eB,handleReviewSubmit:eO,handleReviewEventChange:eA}),V[58]=el,V[59]=eB,V[60]=eA,V[61]=eO,V[62]=eS,V[63]=eu,V[64]=eR,V[65]=ej,V[66]=ed,V[67]=Q,V[68]=em,V[69]=X,V[70]=ec,V[71]=J,V[72]=C):C=V[72];let eU=C;if(eF.isHidden)return null;V[73]!==ev||V[74]!==eM||V[75]!==eP||V[76]!==eO||V[77]!==ew||V[78]!==eF||V[79]!==ex||V[80]!==e_?(w=()=>(0,o.jsx)(nj,{errorMessage:ev,hasPendingReviews:ew,reviewSubmissionState:ex,handleReviewCancel:eP,handleCloseReviewDialog:eM,handleReviewSubmit:eO,submitDisabled:e_,reviewMenuButtonDisplayState:eF}),V[73]=ev,V[74]=eM,V[75]=eP,V[76]=eO,V[77]=ew,V[78]=eF,V[79]=ex,V[80]=e_,V[81]=w):w=V[81];let eH=w,eG=ed||void 0;V[82]!==eV||V[83]!==eF.text||V[84]!==eG?(N=(0,o.jsxs)(ef.Q,{count:eG,className:t0,trailingAction:A.TriangleDownIcon,variant:”primary”,onClick:eV,size:”small”,ref:eN,children:[“Submit “,eF.text]}),V[82]=eV,V[83]=eF.text,V[84]=eG,V[85]=N):N=V[85],V[86]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,o.jsx)(ng,{portalName:nx}),V[86]=S):S=V[86];let eq=”anchored”===ep;return V[87]===Symbol.for(“react.memo_cache_sentinel”)?(L={regular:”anchored”,narrow:”fullscreen”},V[87]=L):L=V[87],V[88]===Symbol.for(“react.memo_cache_sentinel”)?(D={disabled:!0},I={role:”dialog”,”aria-labelledby”:”anchored-review-title”,”aria-modal”:”true”,portalContainerName:nx},V[88]=D,V[89]=I):(D=V[88],I=V[89]),V[90]!==eF.text?(k=(0,o.jsxs)(ee.A,{as:”h1″,className:”flex-1 f5″,variant:”small”,id:”anchored-review-title”,children:[“Finish your “,eF.text]}),V[90]=eF.text,V[91]=k):k=V[91],V[92]!==ew||V[93]!==eg?(R=ew&&(0,o.jsx)(eo.K,{icon:A.MaximizeIcon,className:t4,variant:”invisible”,”aria-label”:”Expand this section”,onClick:()=>eg(“dialog”)}),V[92]=ew,V[93]=eg,V[94]=R):R=V[94],V[95]!==eM?(E=(0,o.jsx)(eo.K,{icon:A.XIcon,variant:”invisible”,”aria-label”:”Close”,onClick:eM}),V[95]=eM,V[96]=E):E=V[96],V[97]!==R||V[98]!==E?(T=(0,o.jsxs)(tH.B,{direction:”horizontal”,align:”center”,gap:”none”,children:[R,E]}),V[97]=R,V[98]=E,V[99]=T):T=V[99],V[100]!==k||V[101]!==T?(O=(0,o.jsxs)(tH.B,{direction:”horizontal”,align:”center”,justify:”space-between”,className:”py-2 border-bottom pl-3 pr-2″,children:[k,T]}),V[100]=k,V[101]=T,V[102]=O):O=V[102],V[103]!==eU?(P=(0,o.jsx)(“div”,{className:t5,children:eU}),V[103]=eU,V[104]=P):P=V[104],V[105]!==eH?(F=(0,o.jsx)(“div”,{className:”p-3 border-top”,children:(0,o.jsx)(eH,{})}),V[105]=eH,V[106]=F):F=V[106],V[107]!==eM||V[108]!==eq||V[109]!==O||V[110]!==P||V[111]!==F?($=(0,o.jsxs)(tG.T,{open:eq,anchorRef:eN,width:”xlarge”,onClose:eM,displayCloseButton:!1,variant:L,renderAnchor:null,focusZoneSettings:D,overlayProps:I,children:[O,P,F]}),V[107]=eM,V[108]=eq,V[109]=O,V[110]=P,V[111]=F,V[112]=$):$=V[112],V[113]!==eU||V[114]!==eH||V[115]!==eM||V[116]!==ep||V[117]!==eF.text?(M=”dialog”===ep&&(0,o.jsx)(x.l,{onClose:eM,returnFocusRef:eN,”aria-label”:”Review changes”,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},title:`Finish your ${eF.text}`,renderFooter:()=>(0,o.jsx)(x.l.Footer,{children:(0,o.jsx)(eH,{})}),children:eU}),V[113]=eU,V[114]=eH,V[115]=eM,V[116]=ep,V[117]=eF.text,V[118]=M):M=V[118],V[119]!==N||V[120]!==$||V[121]!==M?(B=(0,o.jsxs)(o.Fragment,{children:[N,S,$,M]}),V[119]=N,V[120]=$,V[121]=M,V[122]=B):B=V[122],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,_.ys)(),f=(0,_.HZ)(),{persistedReview:h,persistReviewToStorage:p,removePersistedReviewFromStorage:g}=tY(r),b=t7(m?.pendingReviewIDs,f),y=b?.length??0,C=a?.login===e,w=s!==tq.Q.Closed&&s!==tq.Q.Merged,N=”WRITE”===n.viewerPermission||”ADMIN”===n.viewerPermission,S=u.headOid,[L,D]=(0,tU.A)(“none”),[I,k]=(0,tU.A)(“idle”),[R,E]=(0,tU.A)(),[T,O]=(0,tU.A)(h?.event??tz.comment),P=(m?.pendingReviewIDs??[]).length>0,F=(0,j.useRef)(null),$=h?.text??””,M=(0,j.useRef)($),[B,V]=(0,tU.A)(!!h?.text),U=”submitting”===I||!B&&T===tz.comment&&!y,{sendPullRequestAnalyticsEvent:H}=(0,es.q)(),G=(0,j.useCallback)(e=>{M.current=e,V(!!e.trim()),p(T,e)},[p,T,V]),q=(0,j.useCallback)(e=>{Object.values(tz).includes(e)&&(O(e),p(e,M.current))},[p,O]),{mutate:z}=tK({onSuccess:({redirectUrl:e})=>{g(),i&&(window.location.href=e)},onError:e=>{k(“idle”),E(e.message)}}),{mutate:K}=tW({onSuccess:({redirectUrl:e})=>{g(),i&&(window.location.href=e)},onError:e=>{k(“idle”),E(e.message)}}),W=(0,j.useCallback)(()=>{U||(R&&E(void 0),k(“submitting”),H(“submit_review_dialog.submit”,”SUBMIT_REVIEW_BUTTON”),z({body:M.current,event:T,headSha:S}))},[R,S,T,H,E,k,U,z]),Z=(0,j.useCallback)(()=>{0===(m?.pendingReviewIDs??[]).length||confirm(“Are you sure you want to cancel? You will lose all your pending comments.”)&&(R&&E(void 0),k(“canceling”),H(“submit_review_dialog.cancel”,”CANCEL_REVIEW_BUTTON”),K())},[K,R,m?.pendingReviewIDs,H,E,k]),Q=(0,j.useMemo)(()=>nb({isPROpen:w,viewerAllowedNonCommentReviewTypes:l,viewerIsAuthor:C}),[l,C,w]),X=(0,j.useCallback)(()=>{window.innerWidth<768?D("dialog"):D("anchored"),H("submit_review_dialog.open","REVIEW_CHANGES_BUTTON")},[H,D]),J=(0,j.useCallback)(()=>{D(“none”)},[D]),Y=(0,j.useCallback)(()=>{D(“none”)},[D]),et=(0,j.useCallback)(()=>{“none”===L?X():J()},[J,X,L]),en=(0,j.useMemo)(()=>(0,o.jsx)(nC,{initialReviewBody:$,isPROpen:w,onReviewBodyChange:G,reviewEvent:T,viewerAllowedNonCommentReviewTypes:l,viewerCanWriteToRepo:N,viewerHasViolatedPushPolicy:d,viewerIsAuthor:C,viewerIsCopilotAttributed:c,commentsList:b,totalPendingComments:y,handleNavigateToDiffComment:Y,handleReviewSubmit:W,handleReviewEventChange:q}),[b,Y,q,W,$,w,G,T,y,l,N,d,C,c]);if(Q.isHidden)return null;let ei=()=>(0,o.jsx)(nj,{errorMessage:R,hasPendingReviews:P,reviewSubmissionState:I,handleReviewCancel:Z,handleCloseReviewDialog:J,handleReviewSubmit:W,submitDisabled:U,reviewMenuButtonDisplayState:Q});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(ef.Q,{count:y||void 0,className:t0,trailingAction:A.TriangleDownIcon,variant:”primary”,onClick:et,size:”small”,ref:F,children:[“Submit “,Q.text]}),(0,o.jsx)(ng,{portalName:nx}),(0,o.jsxs)(tG.T,{open:”anchored”===L,anchorRef:F,width:”xlarge”,onClose:J,displayCloseButton:!1,variant:{regular:”anchored”,narrow:”fullscreen”},renderAnchor:null,focusZoneSettings:{disabled:!0},overlayProps:{role:”dialog”,”aria-labelledby”:”anchored-review-title”,”aria-modal”:”true”,portalContainerName:nx},children:[(0,o.jsxs)(tH.B,{direction:”horizontal”,align:”center”,justify:”space-between”,className:”py-2 border-bottom pl-3 pr-2″,children:[(0,o.jsxs)(ee.A,{as:”h1″,className:”flex-1 f5″,variant:”small”,id:”anchored-review-title”,children:[“Finish your “,Q.text]}),(0,o.jsxs)(tH.B,{direction:”horizontal”,align:”center”,gap:”none”,children:[P&&(0,o.jsx)(eo.K,{icon:A.MaximizeIcon,className:t4,variant:”invisible”,”aria-label”:”Expand this section”,onClick:()=>D(“dialog”)}),(0,o.jsx)(eo.K,{icon:A.XIcon,variant:”invisible”,”aria-label”:”Close”,onClick:J})]})]}),(0,o.jsx)(“div”,{className:t5,children:en}),(0,o.jsx)(“div”,{className:”p-3 border-top”,children:(0,o.jsx)(ei,{})})]}),”dialog”===L&&(0,o.jsx)(x.l,{onClose:J,returnFocusRef:F,”aria-label”:”Review changes”,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},title:`Finish your ${Q.text}`,renderFooter:()=>(0,o.jsx)(x.l.Footer,{children:(0,o.jsx)(ei,{})}),children:en})]})},ny=(0,d.Z6)()?e=>{let t,n,i,a,r,s,l=(0,c.c)(13);l[0]!==e?({ref:a,initialValue:t,onChange:n,…i}=e,l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=a):(t=l[1],n=l[2],i=l[3],a=l[4]);let[d,u]=(0,tU.A)(t);l[5]!==n||l[6]!==u?(r=e=>{u(e),n(e)},l[5]=n,l[6]=u,l[7]=r):r=l[7];let m=r;return l[8]!==m||l[9]!==i||l[10]!==a||l[11]!==d?(s=(0,o.jsx)(tV.S,{…i,value:d,onChange:m,ref:a}),l[8]=m,l[9]=i,l[10]=a,l[11]=d,l[12]=s):s=l[12],s}:({ref:e,initialValue:t,onChange:n,…i})=>{let[a,r]=(0,tU.A)(t),s=(0,j.useCallback)(e=>{r(e),n(e)},[r,n]);return(0,o.jsx)(tV.S,{…i,value:a,onChange:s,ref:e})};ny.displayName=”ControlledCommentBox”;let nj=(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:y,reviewSubmissionState:j}=e,C=”canceling”===j,w=”submitting”===j;m[0]!==f?(t=f&&(0,o.jsxs)(ti.A,{className:t3,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]!==C||m[5]!==w||m[6]!==y.text?(n=x?(0,o.jsx)(ef.Q,{disabled:C||w,loading:C,onClick:h,tabIndex:0,variant:”danger”,children:(0,o.jsxs)(tH.B,{direction:”horizontal”,align:”center”,children:[“Discard “,y.text]})}):(0,o.jsx)(“div”,{}),m[2]=h,m[3]=x,m[4]=C,m[5]=w,m[6]=y.text,m[7]=n):n=m[7];let N=C||w;m[8]!==p||m[9]!==N?(i=(0,o.jsx)(ef.Q,{onClick:p,disabled:N,children:”Cancel”}),m[8]=p,m[9]=N,m[10]=i):i=m[10];let S=b||w;return m[11]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,o.jsx)(t8.U,{keys:”Mod+enter”}),m[11]=a):a=m[11],m[12]!==y.text?(r=(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-center”,children:[“Submit “,y.text]}),m[12]=y.text,m[13]=r):r=m[13],m[14]!==g||m[15]!==w||m[16]!==S||m[17]!==r?(s=(0,o.jsx)(ef.Q,{disabled:S,variant:”primary”,onClick:g,loading:w,className:t2,trailingVisual:a,children:r}),m[14]=g,m[15]=w,m[16]=S,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)(ti.A,{className:t3,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)(ef.Q,{disabled:d||c,loading:d,onClick:t,tabIndex:0,variant:”danger”,children:(0,o.jsxs)(tH.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)(ef.Q,{onClick:n,disabled:d||c,children:”Cancel”}),(0,o.jsx)(ef.Q,{disabled:r||c,variant:”primary”,onClick:i,loading:c,className:t2,trailingVisual:(0,o.jsx)(t8.U,{keys:”Mod+enter”}),children:(0,o.jsxs)(“div”,{className:”d-flex flex-row flex-justify-center”,children:[“Submit “,s.text]})})]})]})]})},nC=(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:y,totalPendingComments:C,handleNavigateToDiffComment:w,handleReviewSubmit:N,handleReviewEventChange:S}=e,L=(0,j.useRef)(null);return l[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>{let e=window.setTimeout(()=>L.current?.focus());return()=>{window.clearTimeout(e)}},n=[],l[0]=t,l[1]=n):(t=l[0],n=l[1]),(0,j.useEffect)(t,n),l[2]!==N||l[3]!==d||l[4]!==m?(i=(0,o.jsx)(ny,{ref:L,label:”Add review comment”,placeholder:”Leave a comment”,className:t1,initialValue:d,onChange:m,onPrimaryAction:N}),l[2]=N,l[3]=d,l[4]=m,l[5]=i):i=l[5],l[6]!==S||l[7]!==N||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)(ns,{isPROpen:u,reviewEvent:f,viewerAllowedNonCommentReviewTypes:h,viewerCanWriteToRepo:p,viewerHasViolatedPushPolicy:g,viewerIsAuthor:x,viewerIsCopilotAttributed:b,handleReviewEventChange:S,handleReviewSubmit:N}),l[6]=S,l[7]=N,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]!==y||l[17]!==w||l[18]!==C?(r=(0,o.jsx)(nh,{totalPendingComments:C,commentsList:y,handleNavigateToDiffComment:w}),l[16]=y,l[17]=w,l[18]=C,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,j.useRef)(null);return(0,j.useEffect)(()=>{let e=window.setTimeout(()=>p.current?.focus());return()=>{window.clearTimeout(e)}},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ny,{ref:p,label:”Add review comment”,placeholder:”Leave a comment”,className:t1,initialValue:e,onChange:n,onPrimaryAction:f}),(0,o.jsx)(ns,{isPROpen:t,reviewEvent:i,viewerAllowedNonCommentReviewTypes:a,viewerCanWriteToRepo:r,viewerHasViolatedPushPolicy:s,viewerIsAuthor:l,viewerIsCopilotAttributed:d,handleReviewEventChange:h,handleReviewSubmit:f}),(0,o.jsx)(nh,{totalPendingComments:u,commentsList:c,handleNavigateToDiffComment:m})]})};try{nv.displayName||(nv.displayName=”ReviewMenuButton”)}catch{}try{(i=ReviewMenuBody).displayName||(i.displayName=”ReviewMenuBody”)}catch{}try{(a=ReviewMenuFooter).displayName||(a.displayName=”ReviewMenuFooter”)}catch{}try{nj.displayName||(nj.displayName=”ReviewMenuFooterComponent”)}catch{}try{nC.displayName||(nC.displayName=”ReviewMenuBodyComponent”)}catch{}var nw=n(27028),nN=n(39029);let nS=”RefreshButton-module__refresh–gOrN1″;var nL=n(91747),nD=n(43073),nI=n(3433);let n_=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(6),{aliveChannel:r,pathName:s}=e,[l,d]=(0,j.useState)(!1),u=(0,nD.E)(),m=(0,nL.u)(“combined_pr_changes_route”)?`${s}/changes`:`${s}/files`,{markComparisonOutdated:f}=(0,_.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,nN.G)(r,h,n),!l)return null;if(u){let e;return a[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(nR,{}),a[3]=e):e=a[3],e}return a[4]!==m?(i=(0,o.jsx)(nk,{refreshUrl:m}),a[4]=m,a[5]=i):i=a[5],i}:function({aliveChannel:e,pathName:t}){let[n,i]=(0,j.useState)(!1),a=(0,nD.E)(),r=(0,nL.u)(“combined_pr_changes_route”)?`${t}/changes`:`${t}/files`,{markComparisonOutdated:s}=(0,_.yo)();return((0,nN.G)(e,()=>{s(),i(!0)},{git_updated:!0}),n)?a?(0,o.jsx)(nR,{}):(0,o.jsx)(nk,{refreshUrl:r}):null},nk=(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)(ef.Q,{as:T.A,variant:”invisible”,href:a,className:nS,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)(ef.Q,{as:T.A,variant:”invisible”,href:e,className:nS,leadingVisual:A.SyncIcon,size:”small”,onClick:t=>{t.preventDefault(),window.location.href=e},children:”Refresh”})},nR=(0,d.Z6)()?function(){let e,t,n=(0,c.c)(4),i=(0,nI.zy)(),[a,r]=(0,j.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)(ef.Q,{as:nI.N_,to:i.pathname,variant:”invisible”,className:nS,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,nI.zy)(),[t,n]=(0,j.useState)(!1),i=async()=>{n(!0)};return(0,o.jsx)(ef.Q,{as:nI.N_,to:e.pathname,variant:”invisible”,className:nS,leadingVisual:A.SyncIcon,size:”small”,onClick:i,loading:t,preventScrollReset:!0,children:”Refresh”})};try{n_.displayName||(n_.displayName=”RefreshButton”)}catch{}try{nk.displayName||(nk.displayName=”NavigatorRefreshButton”)}catch{}try{nR.displayName||(nR.displayName=”DataRouterRefreshButton”)}catch{}var nA=n(40523),nE=n(68874),nT=n(14808);function nO(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x,b,y,C,w,S,L,D,I,_,k=(0,c.c)(77),{ref:R,items:A,onMultiSelect:E,onSingleSelect:T,onApply:O,onCancel:P,buttonProps:F,anchorLabel:$,variant:M,title:B,dialogProps:V}=e,U=void 0===M?”overlay”:M,H=(0,j.useRef)(null),[G,q]=(0,j.useState)(!1),[z,K]=(0,j.useState)();k[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>({open:()=>q(!0)}),k[0]=t):t=k[0],(0,j.useImperativeHandle)(R,t),k[1]!==A?(n=A.reduce(nV,{single:[],multiple:[]}),k[1]=A,k[2]=n):n=k[2];let W=n;k[3]!==W?(i=()=>W,k[3]=W,k[4]=i):i=k[4];let[Z,Q]=(0,j.useState)(i);k[5]!==Z?.multiple||k[6]!==Z?.single?(a=e=>{Q({single:Z?.single.map(t=>t.id===e.id?{…t,selected:!t.selected}:t.selected?{…t,selected:!1}:t)||[],multiple:Z?.multiple||[]})},k[5]=Z?.multiple,k[6]=Z?.single,k[7]=a):a=k[7];let X=a;k[8]!==Z?.multiple||k[9]!==Z?.single?(r=e=>{let t=Z?.multiple.map(t=>t.id===e.id?{…t,selected:!t.selected}:t)||[];Q({single:Z?.single||[],multiple:t})},k[8]=Z?.multiple,k[9]=Z?.single,k[10]=r):r=k[10];let J=r;k[11]!==Z?.multiple||k[12]!==E||k[13]!==W?.multiple?(s=E?W?.multiple.filter(nM).length:Z?.multiple.filter(nB).length||0,k[11]=Z?.multiple,k[12]=E,k[13]=W?.multiple,k[14]=s):s=k[14];let Y=s;k[15]!==z?.multiple?(l=z?.multiple.filter(n$).length||0,k[15]=z?.multiple,k[16]=l):l=k[16];let ee=l,et=Y&&0!==ee?`${ee} commit${ee>1?”s”:””} selected`:”Select commits”;k[17]!==Z||k[18]!==O?(d=()=>{K(Z),q(!1),O&&O(Z?.multiple.filter(nF)||[])},k[17]=Z,k[18]=O,k[19]=d):d=k[19];let en=d;k[20]!==P||k[21]!==W?(u=()=>{Q(W),K(W),P?.()},k[20]=P,k[21]=W,k[22]=u):u=k[22];let ei=u;k[23]!==G?(m=()=>q(!G),k[23]=G,k[24]=m):m=k[24];let ea=$||et;k[25]!==F||k[26]!==m||k[27]!==ea?(f=(0,o.jsx)(ef.Q,{ref:H,onClick:m,…F,children:ea}),k[25]=F,k[26]=m,k[27]=ea,k[28]=f):f=k[28],k[29]!==Z?.single||k[30]!==z?.multiple||k[31]!==W?(h=()=>{Q({single:Z?.single||[],multiple:z?.multiple||W.multiple}),q(!1)},k[29]=Z?.single,k[30]=z?.multiple,k[31]=W,k[32]=h):h=k[32],k[33]===Symbol.for(“react.memo_cache_sentinel”)?(p={focusOutBehavior:”wrap”,focusableElementFilter:nP},k[33]=p):p=k[33],k[34]!==ei?(g=()=>{ei(),q(!1)},k[34]=ei,k[35]=g):g=k[35],k[36]!==Z?.single||k[37]!==T||k[38]!==W?(x=T?W.single:Z?.single||[],k[36]=Z?.single,k[37]=T,k[38]=W,k[39]=x):x=k[39],k[40]!==X||k[41]!==T||k[42]!==U?(b=e=>{T?T(e):X(e),”modal”!==U&&q(!1)},k[40]=X,k[41]=T,k[42]=U,k[43]=b):b=k[43],k[44]!==x||k[45]!==b?(y=(0,o.jsx)(nU,{selectionVariant:”single”,items:x,onSelect:b,showGroupHeading:!1}),k[44]=x,k[45]=b,k[46]=y):y=k[46],k[47]!==Z?.multiple||k[48]!==E||k[49]!==W?(C=E?W.multiple:Z?.multiple||[],k[47]=Z?.multiple,k[48]=E,k[49]=W,k[50]=C):C=k[50];let er=E??J;return k[51]!==C||k[52]!==er?(w=(0,o.jsx)(nU,{selectionVariant:”multiple”,items:C,onSelect:er}),k[51]=C,k[52]=er,k[53]=w):w=k[53],k[54]!==y||k[55]!==w?(S=(0,o.jsx)(“div”,{className:”CommitSelector-module__CommitSelectorContainer–_atPn”,children:(0,o.jsxs)(N.l,{role:”listbox”,selectionVariant:”single”,”aria-label”:”Selection”,children:[y,w]})}),k[54]=y,k[55]=w,k[56]=S):S=k[56],k[57]!==ei||k[58]!==Y||k[59]!==en||k[60]!==U?(L=Y&&”modal”!==U?(0,o.jsx)(nT.G9,{footerButtons:[{content:”Apply”,onClick:en,action:”save”},{content:”Clear”,onClick:ei,action:”cancel”}]}):null,k[57]=ei,k[58]=Y,k[59]=en,k[60]=U,k[61]=L):L=k[61],k[62]!==S||k[63]!==L?(D=(0,o.jsxs)(“div”,{className:”CommitSelector-module__CommitSelectorWrapper–Wp_n9″,children:[S,L]}),k[62]=S,k[63]=L,k[64]=D):D=k[64],k[65]!==V||k[66]!==G||k[67]!==en||k[68]!==h||k[69]!==g||k[70]!==D||k[71]!==B||k[72]!==U?(I=(0,o.jsx)(nT.KA,{open:G,anchorRef:H,headingId:”select-label”,onClose:h,variant:U,focusZoneSettings:p,title:B,dialogProps:V,selectSave:en,selectCancel:g,children:D}),k[65]=V,k[66]=G,k[67]=en,k[68]=h,k[69]=g,k[70]=D,k[71]=B,k[72]=U,k[73]=I):I=k[73],k[74]!==f||k[75]!==I?(_=(0,o.jsxs)(o.Fragment,{children:[f,I]}),k[74]=f,k[75]=I,k[76]=_):_=k[76],_}function nP(e){return”BUTTON”!==e.tagName}function nF(e){return e.selected}function n$(e){return e.selected}function nM(e){return e.selected}function nB(e){return e.selected}function nV(e,t){return”single”===t.selectionVariant?{…e,single:[…e.single,t]}:”multiple”===t.selectionVariant?{…e,multiple:[…e.multiple,t]}:e}function nU(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)(nT.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{nO.displayName||(nO.displayName=”CommitSelector”)}catch{}try{nU.displayName||(nU.displayName=”CommitSelectorBody”)}catch{}function nH({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 nG=n(68534);let nq=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,g,x,b,y,C,w,N=(0,c.c)(71),{ownerLogin:S,repositoryName:L,pullRequestNumber:D,commits:I,lastReviewOid:k,variant:R}=e,E=void 0===R?”default”:R,{baseOid:T,headOid:O}=(0,_.E4)(),P=(0,_.ww)(),{fullDiff:F}=(0,_.L3)(),{baseOid:$}=F,M=(0,nL.u)(“combined_pr_changes_route”);N[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,h.G7)(“verbose_commit_selector_announcements”),N[0]=t):t=N[0];let B=t,V=(0,j.useRef)(null);N[1]!==I?(n=I.map(nz),N[1]=I,N[2]=n):n=N[2];let U=n;e:{if(!T){i=void 0;break e}if(T===$){i=U[0];break e}let e=U.findIndex(e=>e===T);if(e<0){i=void 0;break e}i=U[e+1]}let H=i;N[3]!==O||N[4]!==H||N[5]!==T?(a=nH({endOid:O,startOid:T,firstCommitInRange:H}),N[3]=O,N[4]=H,N[5]=T,N[6]=a):a=N[6];let G=a;t:{let e,t;if(!T||!O){r=void 0;break t}let n=T?U.indexOf(T)+1:-1;N[7]!==U||N[8]!==O?(e=O?U.indexOf(O):-1,N[7]=U,N[8]=O,N[9]=e):e=N[9];let i=e;if(n<0||i<0){r=void 0;break t}N[10]!==i||N[11]!==n?(t={start:n,end:i},N[10]=i,N[11]=n,N[12]=t):t=N[12],r=t}let q=r;N[13]!==q?(s=()=>q,N[13]=q,N[14]=s):s=N[14];let[z,K]=(0,j.useState)(s);n:{let e;if(!z){let e;N[15]===Symbol.for(“react.memo_cache_sentinel”)?(e=new Set,N[15]=e):e=N[15],l=e;break n}N[16]!==U||N[17]!==z.end||N[18]!==z.start?(e=new Set(U.slice(z.start,z.end+1)),N[16]=U,N[17]=z.end,N[18]=z.start,N[19]=e):e=N[19],l=e}let W=l;if(N[20]!==U||N[21]!==I||N[22]!==O||N[23]!==P||N[24]!==k||N[25]!==W||N[26]!==T){let e,t,n;d=[];let i=`${I.length} commit${1!==I.length?”s”:””}`,a=!P;N[28]!==i||N[29]!==a?(e={id:”all-commits”,label:”All commits”,description:i,descriptionVariant:”block”,selectionVariant:”single”,selected:a},N[28]=i,N[29]=a,N[30]=e):e=N[30],d.push(e);let r=I[I.length-1]?.oid,s=!1,l=!1;if(k)if(r)if(k===r)t=”No new commits since last review”,s=!0;else{let e=U.indexOf(k),n=e>=0?U.length-e-1:I.length;t=`${n} commit${1!==n?”s”:””}`,l=T===k&&O===r}else t=”No commits available”,s=!0;else t=”No previous review found”,s=!0;for(let[e,i]of(N[31]!==l||N[32]!==t||N[33]!==s?(n={id:”changes-since-review”,label:”Changes since your last review”,description:t,descriptionVariant:”block”,selectionVariant:”single”,selected:l,disabled:s},N[31]=l,N[32]=t,N[33]=s,N[34]=n):n=N[34],d.push(n),I.entries()))d.push({id:i.oid,label:i.messageHeadline,description:`${i.actorLogin} committed ${(0,nE.V)(new Date(i.createdAt))}`,descriptionVariant:”block”,selectionVariant:”multiple”,selected:W.has(i.oid),groupId:1,groupTitle:0===e?”Select a range of commits”:void 0,trailingVisual:i.shortOid});N[20]=U,N[21]=I,N[22]=O,N[23]=P,N[24]=k,N[25]=W,N[26]=T,N[27]=d}else d=N[27];let Z=d;N[35]!==M||N[36]!==S||N[37]!==D||N[38]!==L?(u=e=>{let t;if(M)if(“unfiltered”===e.type)t=(0,eQ.tvs)({owner:S,repo:L,number:D});else if(“range”===e.type){let n=e.fromPRBase?”BASE”:e.baseOid;t=(0,eQ.zLJ)({owner:S,repo:L,number:D,base:n,head:e.endOid})}else t=(0,eQ.zLJ)({owner:S,repo:L,number:D,head:e.oid});else if(“unfiltered”===e.type)t=(0,eQ.jrm)({owner:S,repo:L,number:D});else if(“range”===e.type){let n=e.fromPRBase?void 0:e.baseOid;t=(0,eQ.nSV)({owner:S,repo:L,number:D,base:n,head:e.endOid})}else t=(0,eQ.yIb)({owner:S,repo:L,number:D,commit:e.oid});window.location.href=t},N[35]=M,N[36]=S,N[37]=D,N[38]=L,N[39]=u):u=N[39];let Q=u;N[40]!==$||N[41]!==I||N[42]!==k||N[43]!==Q?(m=e=>{if(“all-commits”===e.id)Q({type:”unfiltered”});else if(“changes-since-review”===e.id&&k){let e=I[I.length-1]?.oid;e&&Q({type:”range”,fromPRBase:k===$,baseOid:k,endOid:e})}},N[40]=$,N[41]=I,N[42]=k,N[43]=Q,N[44]=m):m=N[44];let X=m;N[45]!==U||N[46]!==W||N[47]!==z?(f=e=>{let t,n=U.indexOf(e.id),i=W.has(e.id)?”removed”:”added”;if(z){if(z.start!==z.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,z.start,z.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=U[t.start];if(n){let t=(0,nG.F)(n),i=B?`Commit ${t} selected`:`Commit ${e} selected`;(0,tS.i)(i)}}else if(void 0!==t.start&&void 0!==t.end){let e=t.start+1,n=t.end+1,i=U[t.start],a=U[t.end];if(i&&a){let t=(0,nG.F)(i),r=(0,nG.F)(a),s=B?`Commits ${t} to ${r} selected`:`Commits ${e} to ${n} selected`;(0,tS.i)(s)}}}else(0,tS.i)(“No commits selected”);K(t)},N[45]=U,N[46]=W,N[47]=z,N[48]=f):f=N[48];let J=f;N[49]!==$||N[50]!==U||N[51]!==q?.end||N[52]!==q?.start||N[53]!==Q||N[54]!==z?(g=()=>{let e,t;z&&(z.start!==q?.start||z.end!==q?.end)&&((z.start>0||z.end0?U[z.start-1]:$,t=U[z.end]),e&&t?z.start===z.end?Q({type:”single”,oid:t}):Q({type:”range”,fromPRBase:e===$,baseOid:e,endOid:t}):Q({type:”unfiltered”}))},N[49]=$,N[50]=U,N[51]=q?.end,N[52]=q?.start,N[53]=Q,N[54]=z,N[55]=g):g=N[55],q?.start,q?.end;let Y=g;N[56]!==q?(x=()=>{K(q)},N[56]=q,N[57]=x):x=N[57];let ee=x;N[58]===Symbol.for(“react.memo_cache_sentinel”)?(b=(0,o.jsx)(p.ak,{commands:{“pull-request-files-changed:open-commits-list”:()=>{V.current?.open()}}}),N[58]=b):b=N[58];let et=”condensed”===E?void 0:A.VersionsIcon,en=”condensed”===E?”invisible”:”default”;return N[59]!==et||N[60]!==en?(y={id:”changes-selector-button”,size:”small”,leadingVisual:et,variant:en,trailingAction:A.TriangleDownIcon},N[59]=et,N[60]=en,N[61]=y):y=N[61],N[62]===Symbol.for(“react.memo_cache_sentinel”)?(C={height:”large”},N[62]=C):C=N[62],N[63]!==G||N[64]!==Z||N[65]!==Y||N[66]!==ee||N[67]!==J||N[68]!==X||N[69]!==y?(w=(0,o.jsxs)(o.Fragment,{children:[b,(0,o.jsx)(nO,{buttonProps:y,anchorLabel:G,ref:V,dialogProps:C,items:Z,onSingleSelect:X,onMultiSelect:J,onApply:Y,onCancel:ee,variant:”modal”,title:”Select commits to view”})]}),N[63]=G,N[64]=Z,N[65]=Y,N[66]=ee,N[67]=J,N[68]=X,N[69]=y,N[70]=w):w=N[70],w}:function({ownerLogin:e,repositoryName:t,pullRequestNumber:n,commits:i,lastReviewOid:a,variant:r=”default”}){let{baseOid:s,headOid:l}=(0,_.E4)(),d=(0,_.ww)(),{fullDiff:{baseOid:c}}=(0,_.L3)(),u=(0,nL.u)(“combined_pr_changes_route”),m=(0,h.G7)(“verbose_commit_selector_announcements”),f=(0,j.useRef)(null),g=(0,j.useMemo)(()=>i.map(e=>e.oid),[i]),x=(0,j.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=nH({endOid:l,startOid:s,firstCommitInRange:x}),y=(0,j.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]),[C,w]=(0,j.useState)(()=>y),N=(0,j.useMemo)(()=>C?new Set(g.slice(C.start,C.end+1)):new Set,[C,g]),S=(0,j.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,nE.V)(new Date(a.createdAt))}`,descriptionVariant:”block”,selectionVariant:”multiple”,selected:N.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,N,g]),L=(0,j.useCallback)(i=>{let a;if(u)if(“unfiltered”===i.type)a=(0,eQ.tvs)({owner:e,repo:t,number:n});else if(“range”===i.type){let r=i.fromPRBase?”BASE”:i.baseOid;a=(0,eQ.zLJ)({owner:e,repo:t,number:n,base:r,head:i.endOid})}else a=(0,eQ.zLJ)({owner:e,repo:t,number:n,head:i.oid});else if(“unfiltered”===i.type)a=(0,eQ.jrm)({owner:e,repo:t,number:n});else if(“range”===i.type){let r=i.fromPRBase?void 0:i.baseOid;a=(0,eQ.nSV)({owner:e,repo:t,number:n,base:r,head:i.endOid})}else a=(0,eQ.yIb)({owner:e,repo:t,number:n,commit:i.oid});window.location.href=a},[e,t,n,u]),D=(0,j.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}},[]),I=(0,j.useCallback)(e=>{let t,n=g.indexOf(e.id),i=N.has(e.id)?”removed”:”added”;if(C){if(C.start!==C.end||”removed”!==i){let{newStartIndex:e,newEndIndex:a}=D(n,C.start,C.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,nG.F)(n),i=m?`Commit ${t} selected`:`Commit ${e} selected`;(0,tS.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,nG.F)(i),r=(0,nG.F)(a),s=m?`Commits ${t} to ${r} selected`:`Commits ${e} to ${n} selected`;(0,tS.i)(s)}}}else(0,tS.i)(“No commits selected”);w(t)},[g,N,C,D,w,m]),k=(0,j.useCallback)(()=>{let e,t;C&&(C.start!==y?.start||C.end!==y?.end)&&((C.start>0||C.end0?g[C.start-1]:c,t=g[C.end]),e&&t?C.start===C.end?L({type:”single”,oid:t}):L({type:”range”,fromPRBase:e===c,baseOid:e,endOid:t}):L({type:”unfiltered”}))},[C,y?.start,y?.end,g,c,L]),R=(0,j.useCallback)(()=>{w(y)},[w,y]);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)(nO,{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:S,onSingleSelect:e=>{if(“all-commits”===e.id)L({type:”unfiltered”});else if(“changes-since-review”===e.id&&a){let e=i[i.length-1]?.oid;e&&L({type:”range”,fromPRBase:a===c,baseOid:a,endOid:e})}},onMultiSelect:I,onApply:k,onCancel:R,variant:”modal”,title:”Select commits to view”})]})};function nz(e){return e.oid}try{nq.displayName||(nq.displayName=”ChangesSelector”)}catch{}var nK=n(33644),nW=n(2694),nZ=n(81070),nQ=n(33195);let nX=”PullRequestFilesToolbar-module__is-stuck–pCXhL”,nJ=”PullRequestFilesToolbar-module__show-when-stuck–ONyyF”,nY=”PullRequestFilesToolbar-module__hide-when-stuck-large–jRjpF”,n0=”PullRequestFilesToolbar-module__pr-title-details–NZamC”,n1=”PullRequestFilesToolbar-module__pr-sticky-title–Fu24T”,n2=”PullRequestFilesToolbar-module__file-controls–XN2fA”,n3=”PullRequestFilesToolbar-module__file-controls-navigation–Ti_xo”,n4=”PullRequestFilesToolbar-module__file-controls-divider–oWuSw”,n5=”PullRequestFilesToolbar-module__toolbar–bXrnB”,n6=”PullRequestFilesToolbar-module__simple-toolbar–q_1hU”,n7=”PullRequestFilesToolbar-module__stickyHeaderActivationThreshold–hlyC0″;var n8=n(21968),n9=n(34261),ie=n(89155);let it=(0,d.Z6)()?function(){let e,t,n,i=(0,c.c)(7),a=(0,_.Kp)(),{updateWhitespace:r}=(0,_.yo)();return i[0]!==a?(e=async e=>{let{hideWhitespace:t}=e,n=`${a}/page_data/${ex.uT.updateWhitespacePreference}`,i=await (0,ey.q$)(n,{method:”POST”,body:{w:+!!t}}),r=await (0,ey.hp)(i);return(0,ey.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,ev.n)(n)}:function(){let e=(0,_.Kp)(),{updateWhitespace:t}=(0,_.yo)();return(0,ev.n)({mutationFn:async({hideWhitespace:t})=>{let n=`${e}/page_data/${ex.uT.updateWhitespacePreference}`,i=await (0,ey.q$)(n,{method:”POST”,body:{w:+!!t}}),a=await (0,ey.hp)(i);return(0,ey.R)(i,a),a},onSuccess:e=>{t(e.ignoreWhitespace)}})};var ii=n(73783),ia=n(61583);let ir=(0,d.Z6)()?function(){let e,t,n,i=(0,c.c)(9),a=(0,_.mU)(),r=(0,_.$W)(a),s=(0,_.qX)(),l=is;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,_.mU)(),t=(0,_.$W)(e),n=(0,_.qX)(),i=(0,j.useCallback)(e=>{(0,ia.pk)(`diff-${e}`),(0,D.kd)(window.location.href)},[]);return{navigateToPrevious:(0,j.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,j.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 is(e){(0,ia.pk)(`diff-${e}`),(0,D.kd)(window.location.href)}var il=n(19415);let io="SingleFileModeOnboardingPopover-module__PopoverContainer--wtwv5",id="SingleFileModeOnboardingPopover-module__PopoverContent--zQnno",ic="SingleFileModeOnboardingPopover-module__Heading--BRcrc";function iu(e){return(e??[]).filter(e=>!e.dismissed)}let im=(0,d.Z6)()?function(e,t){let n,i=(0,c.c)(5),a=iu(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===iu(t).filter(t=>t.name===e).length},ih=(0,d.Z6)()?function(e,t){let n,i,a=(0,c.c)(5),r=im(e,t);a[0]!==r||a[1]!==e?(n=()=>{(0,tu.M3)()&&!r&&(0,eD.DI)((0,eQ.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=im(e,t);return{dismissNotice:(0,j.useCallback)(()=>{(0,tu.M3)()&&!n&&(0,eD.DI)((0,eQ.VB1)({noticeName:e}),{method:”POST”})},[n,e])}},ip=”single_file_mode”,ig=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u=(0,c.c)(12),{userNotices:m}=e,f=im(ip,m),h=(0,_.j5)(),[p,g]=(0,j.useState)(!0),{dismissNotice:x}=ih(ip,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,y.$)(“d-flex flex-column gap-2″,id),i=(0,o.jsx)(ee.A,{as:”h3″,variant:”small”,className:ic,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)(il.A.Content,{className:n,children:[i,a,s,(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsx)(ef.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)(il.A,{className:io,open:p,children:l}),u[9]=p,u[10]=l,u[11]=d):d=u[11],d)}:function({userNotices:e}){let t=im(ip,e),n=(0,_.j5)(),[i,a]=(0,j.useState)(!0),{dismissNotice:r}=ih(ip,e);return!n||t?null:(0,o.jsx)(il.A,{className:io,open:i,children:(0,o.jsxs)(il.A.Content,{className:(0,y.$)(“d-flex flex-column gap-2″,id),children:[(0,o.jsx)(ee.A,{as:”h3″,variant:”small”,className:ic,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)(ef.Q,{onClick:()=>{r(),a(!1)},children:”OK, got it”})})]})})};try{ig.displayName||(ig.displayName=”SingleFileModeOnboardingPopover”)}catch{}var ix=n(44569);let ib=(0,d.Z6)()?function(e){let t,n,i,a,r,s=(0,c.c)(12),{userNotices:l}=e,d=(0,ix.zw)(),{navigateToPrevious:u,navigateToNext:m}=ir();return s[0]!==u?(t=(0,o.jsx)(eo.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)(eo.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)(ii.A,{children:[t,n]}),s[4]=t,s[5]=n,s[6]=i):i=s[6],s[7]!==l?(a=(0,o.jsx)(ig,{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,ix.zw)(),{navigateToPrevious:n,navigateToNext:i}=ir();return(0,o.jsxs)(“div”,{className:”position-relative”,children:[(0,o.jsxs)(ii.A,{children:[(0,o.jsx)(eo.K,{icon:A.ChevronUpIcon,”aria-label”:t?”Previous file (K)”:”Previous file”,size:”small”,onClick:n,”data-hotkey”:”k”}),(0,o.jsx)(eo.K,{icon:A.ChevronDownIcon,”aria-label”:t?”Next file (J)”:”Next file”,size:”small”,onClick:i,”data-hotkey”:”j”})]}),(0,o.jsx)(ig,{userNotices:e})]})};try{ib.displayName||(ib.displayName=”ReviewNavigationButtonGroup”)}catch{}let iv=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x,b,y,C,w,S,L=(0,c.c)(49),{pageLimits:D,pullRequest:I,hideWhitespace:k,onUpdateWhitespace:R,additionalPreferences:E}=e,[T,O]=(0,j.useState)(!1),[P,F]=(0,j.useState)(!1),[$,M]=(0,j.useState)(!1),[B,V]=(0,j.useState)(!1),U=(0,j.useRef)(null),H=(0,_.wI)(),G=(0,_.Qb)(),{sendPullRequestAnalyticsEvent:q}=(0,es.q)();L[0]!==H?(t=H?Object.values(H):[],L[0]=H,L[1]=t):t=L[1];let z=t,K=z.length;L[2]!==q?(n=()=>{q(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e3(),O(!0),M(!1)},L[2]=q,L[3]=n):n=L[3];let W=n;L[4]!==q?(i=()=>{q(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e3(),F(!0),M(!1)},L[4]=q,L[5]=i):i=L[5];let Z=i;return L[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,o.jsx)(e5.W.Anchor,{children:(0,o.jsx)(eo.K,{ref:U,icon:A.KebabHorizontalIcon,variant:”default”,size:”small”,”aria-label”:”More options”})}),L[6]=a):a=L[6],L[7]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.CommentDiscussionIcon,{})}),L[7]=r):r=L[7],L[8]!==G?(s=G>0&&(0,o.jsx)(N.l.TrailingVisual,{children:G}),L[8]=G,L[9]=s):s=L[9],L[10]!==W||L[11]!==s?(l=(0,o.jsxs)(N.l.Item,{onSelect:W,children:[r,”Comments”,s]}),L[10]=W,L[11]=s,L[12]=l):l=L[12],L[13]!==Z||L[14]!==K?(d=K>0&&(0,o.jsxs)(N.l.Item,{onSelect:Z,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.AlertIcon,{})}),”Alerts”,(0,o.jsx)(N.l.TrailingVisual,{children:K})]}),L[13]=Z,L[14]=K,L[15]=d):d=L[15],L[16]!==l||L[17]!==d?(u=(0,o.jsxs)(N.l.Group,{children:[l,d]}),L[16]=l,L[17]=d,L[18]=u):u=L[18],L[19]===Symbol.for(“react.memo_cache_sentinel”)?(m=(0,o.jsx)(N.l.Divider,{}),L[19]=m):m=L[19],L[20]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.GearIcon,{})}),L[20]=f):f=L[20],L[21]===Symbol.for(“react.memo_cache_sentinel”)?(h=(0,o.jsx)(e5.W.Anchor,{children:(0,o.jsxs)(N.l.Item,{children:[f,”Settings”,(0,o.jsx)(N.l.TrailingVisual,{children:(0,o.jsx)(A.ChevronRightIcon,{})})]})}),L[21]=h):h=L[21],L[22]!==E||L[23]!==k||L[24]!==R?(p=(0,o.jsx)(e5.W.Overlay,{side:”outside-bottom”,align:”end”,children:(0,o.jsx)(N.l,{children:(0,o.jsx)(nw.Q,{reloadOnWhitespaceChange:!0,onUpdateWhitespace:R,defaultHideWhitespace:k,additionalPreferences:E})})}),L[22]=E,L[23]=k,L[24]=R,L[25]=p):p=L[25],L[26]!==B||L[27]!==p?(g=(0,o.jsx)(N.l.Group,{children:(0,o.jsxs)(e5.W,{open:B,onOpenChange:V,children:[h,p]})}),L[26]=B,L[27]=p,L[28]=g):g=L[28],L[29]!==g||L[30]!==u?(x=(0,o.jsx)(e5.W.Overlay,{align:”end”,children:(0,o.jsxs)(N.l,{children:[u,m,g]})}),L[29]=g,L[30]=u,L[31]=x):x=L[31],L[32]!==$||L[33]!==x?(b=(0,o.jsxs)(e5.W,{open:$,onOpenChange:M,children:[a,x]}),L[32]=$,L[33]=x,L[34]=b):b=L[34],L[35]===Symbol.for(“react.memo_cache_sentinel”)?(y=()=>O(!1),L[35]=y):y=L[35],L[36]!==T||L[37]!==D||L[38]!==I.pathName?(C=(0,o.jsx)(tk,{isOpen:T,pageLimits:D,pathName:I.pathName,toggleSidesheetRef:U,onClose:y}),L[36]=T,L[37]=D,L[38]=I.pathName,L[39]=C):C=L[39],L[40]!==P||L[41]!==z||L[42]!==D||L[43]!==K?(w=K>0&&(0,o.jsx)(t$,{annotations:z,isOpen:P,pageLimits:D,returnFocusRef:U,onClose:()=>F(!1)}),L[40]=P,L[41]=z,L[42]=D,L[43]=K,L[44]=w):w=L[44],L[45]!==b||L[46]!==C||L[47]!==w?(S=(0,o.jsxs)(o.Fragment,{children:[b,C,w]}),L[45]=b,L[46]=C,L[47]=w,L[48]=S):S=L[48],S}:function({pageLimits:e,pullRequest:t,hideWhitespace:n,onUpdateWhitespace:i,additionalPreferences:a}){let[r,s]=(0,j.useState)(!1),[l,d]=(0,j.useState)(!1),[c,u]=(0,j.useState)(!1),[m,f]=(0,j.useState)(!1),h=(0,j.useRef)(null),p=(0,_.wI)(),g=(0,_.Qb)(),{sendPullRequestAnalyticsEvent:x}=(0,es.q)(),b=p?Object.values(p):[],y=b.length,C=(0,j.useCallback)(()=>{x(“comments_side_panel.open”,”COMMENTS_SIDE_PANEL_BUTTON”),e3(),s(!0),u(!1)},[x]),w=(0,j.useCallback)(()=>{x(“alerts_side_panel.open”,”ALERTS_SIDE_PANEL_BUTTON”),e3(),d(!0),u(!1)},[x]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(e5.W,{open:c,onOpenChange:u,children:[(0,o.jsx)(e5.W.Anchor,{children:(0,o.jsx)(eo.K,{ref:h,icon:A.KebabHorizontalIcon,variant:”default”,size:”small”,”aria-label”:”More options”})}),(0,o.jsx)(e5.W.Overlay,{align:”end”,children:(0,o.jsxs)(N.l,{children:[(0,o.jsxs)(N.l.Group,{children:[(0,o.jsxs)(N.l.Item,{onSelect:C,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.CommentDiscussionIcon,{})}),”Comments”,g>0&&(0,o.jsx)(N.l.TrailingVisual,{children:g})]}),y>0&&(0,o.jsxs)(N.l.Item,{onSelect:w,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.AlertIcon,{})}),”Alerts”,(0,o.jsx)(N.l.TrailingVisual,{children:y})]})]}),(0,o.jsx)(N.l.Divider,{}),(0,o.jsx)(N.l.Group,{children:(0,o.jsxs)(e5.W,{open:m,onOpenChange:f,children:[(0,o.jsx)(e5.W.Anchor,{children:(0,o.jsxs)(N.l.Item,{children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.GearIcon,{})}),”Settings”,(0,o.jsx)(N.l.TrailingVisual,{children:(0,o.jsx)(A.ChevronRightIcon,{})})]})}),(0,o.jsx)(e5.W.Overlay,{side:”outside-bottom”,align:”end”,children:(0,o.jsx)(N.l,{children:(0,o.jsx)(nw.Q,{reloadOnWhitespaceChange:!0,onUpdateWhitespace:i,defaultHideWhitespace:n,additionalPreferences:a})})})]})})]})})]}),(0,o.jsx)(tk,{isOpen:r,pageLimits:e,pathName:t.pathName,toggleSidesheetRef:h,onClose:()=>s(!1)}),y>0&&(0,o.jsx)(t$,{annotations:b,isOpen:l,pageLimits:e,returnFocusRef:h,onClose:()=>d(!1)})]})};try{iv.displayName||(iv.displayName=”ToolbarMoreMenu”)}catch{}let iy=(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,es.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)(N.l.Divider,{}),r[4]=n):n=r[4],r[5]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,o.jsx)(N.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)(N.l.Group,{“aria-label”:”Change Groups”,selectionVariant:”single”,children:(0,o.jsxs)(N.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,es.q)();if(e)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.l.Divider,{}),(0,o.jsx)(N.l.Group,{“aria-label”:”Change Groups”,selectionVariant:”single”,children:(0,o.jsxs)(N.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)(N.l.Description,{variant:”block”,children:”Organize changes into groups with Copilot”})]})})]})};try{iy.displayName||(iy.displayName=”ChangeGroupsPreferences”)}catch{}var ij=n(3585);function iC(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 iw(e,t){if(!e||0===t.length)return[];let n=iC(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 iN=n(3252);function iS(e,t){if(!e||0===t.length)return[];let n=iC(e),i=[];for(let e of t){let t=n.get(e.commentDatabaseId);if(!t)continue;let{comment:a,path:r}=t,s=(0,iN.T)(a.body);s&&!(e.suggestionIndex>=s.length)&&i.push({threadId:String(e.commentDatabaseId),path:r,suggestion:s})}return i}var iL=n(88008);let iD=(0,d.Z6)()?function(e,t){let n,i,a,r=(0,c.c)(11),s=(0,eb.e)(ex.uT.submitSuggestedChanges),l=(0,_.WK)(),o=(0,_.qL)(),{clearSuggestionBatch:d}=(0,_.xJ)();return r[0]!==s||r[1]!==o||r[2]!==l?(n=async e=>{let{currentOid:t,message:n}=e,i=iS(o,l.activeBatch);if(0===i.length)throw Error(“No valid suggestions found in batch”);let a=await (0,eD.Sr)(s,{method:”POST”,headers:{Accept:”application/json”},body:{changes:i,currentOid:t,message:n}}),r=await (0,ey.hp)(a);return(0,ey.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,iL.hW)(e,t),B.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,ev.n)(a)}:function(e,t){let n=(0,eb.e)(ex.uT.submitSuggestedChanges),i=(0,_.WK)(),a=(0,_.qL)(),{clearSuggestionBatch:r}=(0,_.xJ)();return(0,ev.n)({mutationFn:async({currentOid:e,message:t})=>{let r=iS(a,i.activeBatch);if(0===r.length)throw Error(“No valid suggestions found in batch”);let s=await (0,eD.Sr)(n,{method:”POST”,headers:{Accept:”application/json”},body:{changes:r,currentOid:e,message:t}}),l=await (0,ey.hp)(s);return(0,ey.R)(s,l),l},onSuccess:()=>{r(),(0,iL.hW)(e,t),B.cg?.location.reload()}})},iI=(0,d.Z6)()?function(){let e,t,n,i=(0,c.c)(8),a=(0,_.Kp)(),{updateChangeGroupPreference:r}=(0,_.wL)(),{updateDiffFilter:s}=(0,_.or)();return i[0]!==a?(e=async e=>{let{showChangeGroups:t}=e,n=`${a}/page_data/${ex.uT.updateShowChangeGroupsPreference}`,i=await (0,ey.q$)(n,{method:”POST”,headers:{“Content-Type”:”application/json”},body:{show_change_groups:t?”true”:”false”}}),r=await (0,ey.hp)(i);return(0,ey.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,ev.n)(n)}:function(){let e=(0,_.Kp)(),{updateChangeGroupPreference:t}=(0,_.wL)(),{updateDiffFilter:n}=(0,_.or)();return(0,ev.n)({mutationFn:async({showChangeGroups:t})=>{let n=`${e}/page_data/${ex.uT.updateShowChangeGroupsPreference}`,i=await (0,ey.q$)(n,{method:”POST”,headers:{“Content-Type”:”application/json”},body:{show_change_groups:t?”true”:”false”}}),a=await (0,ey.hp)(i);return(0,ey.R)(i,a),a},onMutate:({showChangeGroups:e})=>{t(e),e||n({activeChangeGroupId:void 0})}})};var i_=n(39837);let ik=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(10),{bodyHtml:s,isLoading:l,onClose:d}=e,u=(0,j.useRef)(null),m=(0,j.useRef)(null);r[0]!==s?(t=s.includes(“No description provided.”),r[0]=s,r[1]=t):t=r[1];let f=t;return r[2]===Symbol.for(“react.memo_cache_sentinel”)?(n={narrow:”fullscreen”,regular:”right”,wide:”right”},r[2]=n):n=r[2],r[3]!==s||r[4]!==f||r[5]!==l?(i=l?(0,o.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,o.jsx)(et.A,{})}):(0,o.jsx)(i_.A,{verifiedHTML:s,className:f?”fgColor-muted”:void 0}),r[3]=s,r[4]=f,r[5]=l,r[6]=i):i=r[6],r[7]!==d||r[8]!==i?(a=(0,o.jsx)(x.l,{title:”Overview”,initialFocusRef:u,position:n,returnFocusRef:m,onClose:d,children:i}),r[7]=d,r[8]=i,r[9]=a):a=r[9],a}:function({bodyHtml:e,isLoading:t,onClose:n}){let i=(0,j.useRef)(null),a=(0,j.useRef)(null),r=e.includes(“No description provided.”);return(0,o.jsx)(x.l,{title:”Overview”,initialFocusRef:i,position:{narrow:”fullscreen”,regular:”right”,wide:”right”},returnFocusRef:a,onClose:n,children:t?(0,o.jsx)(“div”,{className:”d-flex flex-justify-center”,children:(0,o.jsx)(et.A,{})}):(0,o.jsx)(i_.A,{verifiedHTML:e,className:r?”fgColor-muted”:void 0})})};try{ik.displayName||(ik.displayName=”OverviewSidePanel”)}catch{}let iR=(0,d.Z6)()?function(){let e,t=(0,c.c)(2),n=(0,eb.e)(ex.uT.description);return t[0]!==n?(e={queryKey:[ex.uT.description,n],queryFn:async()=>{let e=await (0,eD.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,eL.I)(e)}:function(){let e=(0,eb.e)(ex.uT.description);return(0,eL.I)({queryKey:[ex.uT.description,e],queryFn:async()=>{let t=await (0,eD.QJ)(e);if(!t.ok)throw Error(`HTTP ${t.status}`);return await t.json()},staleTime:1/0})},iA=(0,d.Z6)()?function(e){let t,n=(0,c.c)(1),{refetch:i}=iR();n[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={body_updated:!0},n[0]=t):t=n[0],(0,nN.og)(e,i,t)}:function(e){let{refetch:t}=iR();(0,nN.og)(e,t,{body_updated:!0})},iE=(0,d.Z6)()?function(e){let t,n,i,a,r=(0,c.c)(10),{aliveChannel:s}=e,[l,d]=(0,j.useState)(!1),u=(0,j.useRef)(null),{sendPullRequestAnalyticsEvent:m}=(0,es.q)(),{data:f,isLoading:h}=iR();iA(s);let p=f?.bodyHtml||’

No description provided.

‘;return r[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(eo.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)(eo.K,{ref:u,”aria-label”:”Open overview side panel”,icon:A.InfoIcon,size:”small”,onClick:()=>{m(“overview_side_panel.open”,”OVERVIEW_SIDE_PANEL_BUTTON”),e3(),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)(ik,{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)(Y.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,j.useState)(!1),i=(0,j.useRef)(null),{sendPullRequestAnalyticsEvent:a}=(0,es.q)(),{data:r,isLoading:s}=iR();iA(e);let l=r?.bodyHtml||’

No description provided.

‘;return(0,o.jsx)(“div”,{className:”d-flex flex-items-center”,children:(0,o.jsxs)(Y.t,{fallback:(0,o.jsx)(eo.K,{inactive:!0,”aria-label”:”The overview side panel cannot currently be opened.”,icon:A.InfoIcon,size:”small”,variant:”invisible”}),children:[(0,o.jsx)(eo.K,{ref:i,”aria-label”:”Open overview side panel”,icon:A.InfoIcon,size:”small”,onClick:()=>{a(“overview_side_panel.open”,”OVERVIEW_SIDE_PANEL_BUTTON”),e3(),n(!0)}}),t&&(0,o.jsx)(ik,{bodyHtml:l,isLoading:s,onClose:()=>n(!1)})]})})};try{iE.displayName||(iE.displayName=”OpenOverviewSidePanelButton”)}catch{}let iT=(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,n9.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,n9.W)(u),(0,ie.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)(iO,{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,n9.W)();(0,n9.W)({aliveChannel:e,repository:t,pullRequest:n,bannersData:i,urls:a,user:r}),(0,ie.F)(e);let c={…n,…d};return(0,o.jsx)(iO,{repository:t,pullRequest:c,userNotices:s,…l})},iO=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x,b,C,w,N,L,D,I,k,R,A,T,O,P,F,$,M,B,V,U,H,G,q,z,K,W,Z,Q=(0,c.c)(148),{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,nL.u)(“batch_suggested_changes”),eu=(0,nL.u)(“pull_request_overview_panel”),{mutate:em}=it(),{clearSuggestionBatch:eh,removeSuggestionFromBatch:ep}=(0,_.xJ)(),{mutate:eg}=iD(ea.pathName,ea.comparison.headOid),{mutate:ex}=iI(),eb=(0,_.WA)(),ev=ea.pathName,{hideWhitespace:ey,fullDiff:ej}=(0,_.L3)(),[eC,ew]=(0,j.useState)(!1),eN=es||!et,[eS,eL]=(0,j.useState)(!1),eD=(0,_.j5)(),eI=(0,_.RH)(),e_=(0,_.WK)(),ek=(0,_.qL)(),[eR,eA]=(0,j.useState)(!1),eE=(0,_.Kp)(),eT=(0,_.L3)(),eO=iw(ek,e_.activeBatch),eP=eO.length;Q[0]!==em?(t=e=>{em({hideWhitespace:e})},Q[0]=em,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,nW.B)(n);Q[3]!==eT.fullDiff.headOid||Q[4]!==eE||Q[5]!==ep||Q[6]!==e_.activeBatch?(i=e=>{ep(e),(0,iL.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=()=>{eA(!0)},Q[8]=a):a=Q[8];let eV=a;Q[9]===Symbol.for(“react.memo_cache_sentinel”)?(r=()=>{eA(!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 eH=s;Q[11]===Symbol.for(“react.memo_cache_sentinel”)?(l=()=>{eL(!1)},Q[11]=l):l=Q[11];let eG=l;Q[12]!==eh||Q[13]!==eT.fullDiff.headOid||Q[14]!==eU||Q[15]!==eE?(d=()=>{eh(),(0,iL.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(iP);Q[23]!==e$||Q[24]!==eM?(f=(0,o.jsx)(nZ.X,{className:n7,onObserve:e$,onUnobserve:eM}),Q[23]=e$,Q[24]=eM,Q[25]=f):f=Q[25];let eZ=eC&&nX;Q[26]!==eZ?(h=(0,y.$)(nK.A.stickyHeader,n5,eZ),Q[26]=eZ,Q[27]=h):h=Q[27],Q[28]===Symbol.for(“react.memo_cache_sentinel”)?(p=(0,o.jsx)(“h2″,{className:”sr-only”,children:”Pull Request Toolbar”}),Q[28]=p):p=Q[28],Q[29]!==eo?(g=(0,o.jsx)(“div”,{children:eo}),Q[29]=eo,Q[30]=g):g=Q[30],Q[31]!==ea.state?(x=(0,o.jsx)(“div”,{className:nJ,children:(0,o.jsx)(nQ.u,{state:ea.state})}),Q[31]=ea.state,Q[32]=x):x=Q[32],Q[33]!==J||Q[34]!==en||Q[35]!==ea.number||Q[36]!==er.name||Q[37]!==er.ownerLogin?(b=(0,o.jsx)(“div”,{className:nY,children:(0,o.jsx)(nq,{commits:J,lastReviewOid:en,ownerLogin:er.ownerLogin,pullRequestNumber:ea.number,repositoryName:er.name})}),Q[33]=J,Q[34]=en,Q[35]=ea.number,Q[36]=er.name,Q[37]=er.ownerLogin,Q[38]=b):b=Q[38],Q[39]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,y.$)(nJ,”min-width-0″),w=(0,y.$)(“d-flex mb-n1”,n0),Q[39]=C,Q[40]=w):(C=Q[39],w=Q[40]);let eQ=ea.title;Q[41]===Symbol.for(“react.memo_cache_sentinel”)?(N=(0,y.$)(“f5 text-bold overflow-hidden no-wrap”,n1),Q[41]=N):N=Q[41],Q[42]!==ea.title?(L=(0,o.jsx)(“a”,{href:”#top”,className:”d-flex overflow-hidden fgColor-default”,children:(0,o.jsx)(“bdi”,{className:N,children:ea.title})}),Q[42]=ea.title,Q[43]=L):L=Q[43],Q[44]!==ea.title||Q[45]!==L?(D=(0,o.jsx)(E.m,{type:”label”,direction:”s”,text:eQ,children:L}),Q[44]=ea.title,Q[45]=L,Q[46]=D):D=Q[46],Q[47]!==ea.number?(I=(0,o.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,ea.number]}),Q[47]=ea.number,Q[48]=I):I=Q[48],Q[49]!==D||Q[50]!==I?(k=(0,o.jsxs)(“div”,{className:w,children:[D,I]}),Q[49]=D,Q[50]=I,Q[51]=k):k=Q[51],Q[52]!==J||Q[53]!==en||Q[54]!==ea.number||Q[55]!==er.name||Q[56]!==er.ownerLogin?(R=(0,o.jsx)(nq,{commits:J,lastReviewOid:en,ownerLogin:er.ownerLogin,pullRequestNumber:ea.number,repositoryName:er.name,variant:”condensed”}),Q[52]=J,Q[53]=en,Q[54]=ea.number,Q[55]=er.name,Q[56]=er.ownerLogin,Q[57]=R):R=Q[57],Q[58]===Symbol.for(“react.memo_cache_sentinel”)?(A=(0,y.$)(“d-none d-lg-flex flex-items-center min-width-0”,n0),Q[58]=A):A=Q[58],Q[59]===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[59]=T):T=Q[59],Q[60]!==ea.author||Q[61]!==ea.baseBranch||Q[62]!==ea.commitsCount||Q[63]!==ea.headBranch||Q[64]!==ea.headRepositoryName||Q[65]!==ea.headRepositoryOwnerLogin||Q[66]!==ea.id||Q[67]!==ea.isInAdvisoryRepo||Q[68]!==ea.mergedBy||Q[69]!==ea.mergedByName||Q[70]!==ea.number||Q[71]!==ea.state||Q[72]!==er.id||Q[73]!==er.name||Q[74]!==er.ownerLogin?(O=(0,o.jsxs)(“div”,{className:A,children:[T,(0,o.jsx)(n8.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[60]=ea.author,Q[61]=ea.baseBranch,Q[62]=ea.commitsCount,Q[63]=ea.headBranch,Q[64]=ea.headRepositoryName,Q[65]=ea.headRepositoryOwnerLogin,Q[66]=ea.id,Q[67]=ea.isInAdvisoryRepo,Q[68]=ea.mergedBy,Q[69]=ea.mergedByName,Q[70]=ea.number,Q[71]=ea.state,Q[72]=er.id,Q[73]=er.name,Q[74]=er.ownerLogin,Q[75]=O):O=Q[75],Q[76]!==R||Q[77]!==O?(P=(0,o.jsxs)(“div”,{className:”f6 text-normal d-flex flex-items-center ml-n2″,children:[R,O]}),Q[76]=R,Q[77]=O,Q[78]=P):P=Q[78],Q[79]!==k||Q[80]!==P?(F=(0,o.jsxs)(tH.B,{direction:”vertical”,gap:”none”,className:C,children:[k,P]}),Q[79]=k,Q[80]=P,Q[81]=F):F=Q[81],Q[82]!==g||Q[83]!==x||Q[84]!==b||Q[85]!==F?($=(0,o.jsxs)(tH.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:[g,x,b,F]}),Q[82]=g,Q[83]=x,Q[84]=b,Q[85]=F,Q[86]=$):$=Q[86],Q[87]!==ev||Q[88]!==ea.aliveChannel?(M=(0,o.jsx)(n_,{aliveChannel:ea.aliveChannel,pathName:ev}),Q[87]=ev,Q[88]=ea.aliveChannel,Q[89]=M):M=Q[89],Q[90]!==es||Q[91]!==el?(B=es&&(0,o.jsx)(e2,{totalFilesCount:el}),Q[90]=es,Q[91]=el,Q[92]=B):B=Q[92];let eX=!et&ⅇreturn Q[93]!==eD||Q[94]!==el||Q[95]!==ed?(V=eD&&el>1&&(0,o.jsx)(“div”,{className:n3,children:(0,o.jsx)(ib,{userNotices:ed})}),Q[93]=eD,Q[94]=el,Q[95]=ed,Q[96]=V):V=Q[96],Q[97]!==B||Q[98]!==eX||Q[99]!==V?(U=(0,o.jsxs)(“div”,{className:n2,children:[B,eX,V]}),Q[97]=B,Q[98]=eX,Q[99]=V,Q[100]=U):U=Q[100],Q[101]!==eN?(H=eN&&(0,o.jsx)(“div”,{className:n4,”data-testid”:”file-controls-divider”}),Q[101]=eN,Q[102]=H):H=Q[102],Q[103]!==ec||Q[104]!==X||Q[105]!==Y||Q[106]!==eV||Q[107]!==eH||Q[108]!==ey||Q[109]!==et||Q[110]!==eI||Q[111]!==eK||Q[112]!==eF||Q[113]!==eu||Q[114]!==ei||Q[115]!==ea||Q[116]!==er||Q[117]!==eb||Q[118]!==eP||Q[119]!==ed?(G=eI&&ec?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ef.Q,{variant:”danger”,size:”small”,onClick:eH,children:”Discard batch”}),(0,o.jsxs)(ef.Q,{variant:”primary”,size:”small”,onClick:eV,children:[“Commit suggestions “,(0,o.jsx)(S.A,{className:”ml-1 color-fg-inherit”,children:eP})]})]}):(0,o.jsxs)(o.Fragment,{children:[eu&&(0,o.jsx)(iE,{aliveChannel:ea.aliveChannel}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(tA,{pageLimits:ei,pullRequest:ea,isFileTreeExpanded:et})}),(0,o.jsx)(tB,{className:”d-none d-sm-flex”,pageLimits:ei,isFileTreeExpanded:et}),Y&&(0,o.jsx)(nv,{currentUserLogin:Y,pullRequest:ea,repository:er}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(nw.G,{invisible:!1,reloadOnWhitespaceChange:!0,onUpdateWhitespace:eF,defaultHideWhitespace:ey,small:!0,userNotices:ed,additionalPreferences:(0,o.jsx)(iy,{changeGroupsPreferenceAvailable:X,showChangeGroups:eb,onShowChangeGroupsChange:eK})})}),(0,o.jsx)(“div”,{className:”d-flex d-sm-none”,children:(0,o.jsx)(iv,{pageLimits:ei,pullRequest:ea,hideWhitespace:ey,onUpdateWhitespace:eF,additionalPreferences:(0,o.jsx)(iy,{changeGroupsPreferenceAvailable:X,showChangeGroups:eb,onShowChangeGroupsChange:eK})})})]}),Q[103]=ec,Q[104]=X,Q[105]=Y,Q[106]=eV,Q[107]=eH,Q[108]=ey,Q[109]=et,Q[110]=eI,Q[111]=eK,Q[112]=eF,Q[113]=eu,Q[114]=ei,Q[115]=ea,Q[116]=er,Q[117]=eb,Q[118]=eP,Q[119]=ed,Q[120]=G):G=Q[120],Q[121]!==M||Q[122]!==U||Q[123]!==H||Q[124]!==G?(q=(0,o.jsxs)(tH.B,{direction:”horizontal”,align:”center”,children:[M,U,H,G]}),Q[121]=M,Q[122]=U,Q[123]=H,Q[124]=G,Q[125]=q):q=Q[125],Q[126]!==h||Q[127]!==$||Q[128]!==q?(z=(0,o.jsxs)(tH.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:h,children:[p,$,q]}),Q[126]=h,Q[127]=$,Q[128]=q,Q[129]=z):z=Q[129],Q[130]!==ez||Q[131]!==eU||Q[132]!==eq||Q[133]!==eB||Q[134]!==eR||Q[135]!==e_.activeBatch.length||Q[136]!==eW?(K=eR&&eW.length>0&&(0,o.jsx)(ij.$,{authorLogins:[],batchSize:e_.activeBatch.length,onClose:eU,onCommit:ez,defaultCommitMessage:”Apply suggestions from code review”,suggestions:eW,onRemoveSuggestion:eB,onDiscardBatch:eq}),Q[130]=ez,Q[131]=eU,Q[132]=eq,Q[133]=eB,Q[134]=eR,Q[135]=e_.activeBatch.length,Q[136]=eW,Q[137]=K):K=Q[137],Q[138]!==eq||Q[139]!==eG||Q[140]!==eS||Q[141]!==eP?(W=(0,o.jsx)(nA.G,{isOpen:eS,onConfirm:eq,onCancel:eG,suggestionsCount:eP}),Q[138]=eq,Q[139]=eG,Q[140]=eS,Q[141]=eP,Q[142]=W):W=Q[142],Q[143]!==f||Q[144]!==z||Q[145]!==K||Q[146]!==W?(Z=(0,o.jsxs)(o.Fragment,{children:[f,z,K,W]}),Q[143]=f,Q[144]=z,Q[145]=K,Q[146]=W,Q[147]=Z):Z=Q[147],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,nL.u)(“batch_suggested_changes”),p=(0,nL.u)(“pull_request_overview_panel”),{mutate:g}=it(),{clearSuggestionBatch:x,removeSuggestionFromBatch:b}=(0,_.xJ)(),{mutate:C}=iD(l.pathName,l.comparison.headOid),{mutate:w}=iI(),N=(0,_.WA)(),L=l.pathName,{hideWhitespace:D,fullDiff:I}=(0,_.L3)(),[k,R]=(0,j.useState)(!1),A=c||!a,[T,O]=(0,j.useState)(!1),P=(0,_.j5)(),F=(0,_.RH)(),$=(0,_.WK)(),M=(0,_.qL)(),[B,V]=(0,j.useState)(!1),U=(0,_.Kp)(),H=(0,_.L3)(),G=iw(M,$.activeBatch),q=G.length,z=e=>{g({hideWhitespace:e})},[K,W]=(0,nW.B)(e=>{e[0]&&R(!e[0].isIntersecting)}),Z=(0,j.useCallback)(e=>{b(e),(0,iL.CE)(U,H.fullDiff.headOid,$.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex))},[b,$,U,H]),Q=(0,j.useCallback)(()=>{V(!0)},[]),X=(0,j.useCallback)(()=>{V(!1)},[]),J=(0,j.useCallback)(()=>{O(!0)},[]),Y=(0,j.useCallback)(()=>{O(!1)},[]),ee=(0,j.useCallback)(()=>{x(),(0,iL.hW)(U,H.fullDiff.headOid),X(),O(!1)},[x,U,H,X]),et=(0,j.useCallback)((e,t,n)=>{C({message:e,currentOid:I.headOid},{onSuccess:()=>{X(),n()},onError:e=>{t(e)}})},[I,C,X]),en=e=>{w({showChangeGroups:e})},ei=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,{className:n7,onObserve:K,onUnobserve:W}),(0,o.jsxs)(tH.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:(0,y.$)(nK.A.stickyHeader,n5,k&&nX),children:[(0,o.jsx)(“h2″,{className:”sr-only”,children:”Pull Request Toolbar”}),(0,o.jsxs)(tH.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:[(0,o.jsx)(“div”,{children:m}),(0,o.jsx)(“div”,{className:nJ,children:(0,o.jsx)(nQ.u,{state:l.state})}),(0,o.jsx)(“div”,{className:nY,children:(0,o.jsx)(nq,{commits:t,lastReviewOid:r,ownerLogin:d.ownerLogin,pullRequestNumber:l.number,repositoryName:d.name})}),(0,o.jsxs)(tH.B,{direction:”vertical”,gap:”none”,className:(0,y.$)(nJ,”min-width-0″),children:[(0,o.jsxs)(“div”,{className:(0,y.$)(“d-flex mb-n1″,n0),children:[(0,o.jsx)(E.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,y.$)(“f5 text-bold overflow-hidden no-wrap”,n1),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)(nq,{commits:t,lastReviewOid:r,ownerLogin:d.ownerLogin,pullRequestNumber:l.number,repositoryName:d.name,variant:”condensed”}),(0,o.jsxs)(“div”,{className:(0,y.$)(“d-none d-lg-flex flex-items-center min-width-0”,n0),children:[(0,o.jsx)(“div”,{className:”border-left mx-1 pr-1 d-block”,style:{width:”1px”,height:”16px”}}),(0,o.jsx)(n8.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)(tH.B,{direction:”horizontal”,align:”center”,children:[(0,o.jsx)(n_,{aliveChannel:l.aliveChannel,pathName:L}),(0,o.jsxs)(“div”,{className:n2,children:[c&&(0,o.jsx)(e2,{totalFilesCount:u}),!a&&i,P&&u>1&&(0,o.jsx)(“div”,{className:n3,children:(0,o.jsx)(ib,{userNotices:f})})]}),A&&(0,o.jsx)(“div”,{className:n4,”data-testid”:”file-controls-divider”}),F&&h?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ef.Q,{variant:”danger”,size:”small”,onClick:J,children:”Discard batch”}),(0,o.jsxs)(ef.Q,{variant:”primary”,size:”small”,onClick:Q,children:[“Commit suggestions “,(0,o.jsx)(S.A,{className:”ml-1 color-fg-inherit”,children:q})]})]}):(0,o.jsxs)(o.Fragment,{children:[p&&(0,o.jsx)(iE,{aliveChannel:l.aliveChannel}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(tA,{pageLimits:s,pullRequest:l,isFileTreeExpanded:a})}),(0,o.jsx)(tB,{className:”d-none d-sm-flex”,pageLimits:s,isFileTreeExpanded:a}),n&&(0,o.jsx)(nv,{currentUserLogin:n,pullRequest:l,repository:d}),(0,o.jsx)(“div”,{className:”d-none d-sm-flex”,children:(0,o.jsx)(nw.G,{invisible:!1,reloadOnWhitespaceChange:!0,onUpdateWhitespace:z,defaultHideWhitespace:D,small:!0,userNotices:f,additionalPreferences:(0,o.jsx)(iy,{changeGroupsPreferenceAvailable:e,showChangeGroups:N,onShowChangeGroupsChange:en})})}),(0,o.jsx)(“div”,{className:”d-flex d-sm-none”,children:(0,o.jsx)(iv,{pageLimits:s,pullRequest:l,hideWhitespace:D,onUpdateWhitespace:z,additionalPreferences:(0,o.jsx)(iy,{changeGroupsPreferenceAvailable:e,showChangeGroups:N,onShowChangeGroupsChange:en})})})]})]})]}),B&&ei.length>0&&(0,o.jsx)(ij.$,{authorLogins:[],batchSize:$.activeBatch.length,onClose:X,onCommit:et,defaultCommitMessage:”Apply suggestions from code review”,suggestions:ei,onRemoveSuggestion:Z,onDiscardBatch:ee}),(0,o.jsx)(nA.G,{isOpen:T,onConfirm:ee,onCancel:Y,suggestionsCount:q})]})};function iP(e){return{commentDatabaseId:e.commentDatabaseId,suggestionIndex:e.suggestionIndex,path:e.path,bodyHTML:e.bodyHTML}}try{iT.displayName||(iT.displayName=”LivePullRequestFilesToolbar”)}catch{}try{iO.displayName||(iO.displayName=”PullRequestFilesToolbar”)}catch{}function iF(e,t){(0,j.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(!iM(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];iM(e)&&(r=e)}else a=i,r=n;return{endLine:i,endDiffSide:i$[n],startLine:a,startDiffSide:i$[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 i$={L:”LEFT”,R:”RIGHT”};function iM(e){return”L”===e||”R”===e}let iB=”DiffComparisonViewer-module__Container–nndHZ”,iV=”DiffComparisonViewer-module__HiddenPane–pMKU7″,iU=”DiffComparisonViewer-module__PaneContain–PQMad”,iH=”DiffComparisonViewer-module__PaneOverflowVisible–fmHF4″,iG=”DiffComparisonViewer-module__RegularTreeToggle–_Zt7h”,iq=”DiffComparisonViewer-module__MobileTreeToggle–lAOrS”,iz=”DiffComparisonViewer-module__Pane–FbQgQ”,iK=”DiffComparisonViewer-module__WideExpanded–a6hBe”,iW=”DiffComparisonViewer-module__WideCollapsed–nAjUj”,iZ=”DiffComparisonViewer-module__CompactHidden–NQ1CL”,iQ=”DiffComparisonViewer-module__CompactOverlay–ZnZLv”,iX=”DiffComparisonViewer-module__CompactInline–jndVg”,iJ=”DiffComparisonViewer-module__Content–Cv2ab”,iY=”DiffComparisonViewer-module__SkeletonWrapper–eZhhq”,i0=”DiffComparisonViewer-module__SkeletonIconWrapper–e2YmQ”;var i1=n(83873),i2=n(24798),i3=n(50129);function i4({basePath:e,selectedRange:t}){return[ex.uT.baseComparisonInfo,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`]}let i5=(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=ex.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=i4({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,eD.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,eL.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/${ex.uT.baseComparisonInfo}?${a.toString()}`,s=i4({basePath:e,selectedRange:{baseOid:n??”base-sha-not-provided”,headOid:t}});return(0,eL.I)({queryKey:s,queryFn:async()=>{if(!t)return;let e=await (0,eD.QJ)(r);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()??void 0},staleTime:1/0,enabled:i})},i6=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,p,g,x=(0,c.c)(36),{fileFilter:b,isFileTreeExpanded:C,shouldShowViewedFilesCount:w,totalFilesCount:N,treeToggleElement:S,userNotices:L}=e;x[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[“line-spacing”],x[0]=t):t=x[0];let D=t,[I,k]=(0,j.useState)(!1),R=(0,_.j5)(),A=w||!C;x[1]===Symbol.for(“react.memo_cache_sentinel”)?(n=e=>{e[0]&&k(!e[0].isIntersecting)},x[1]=n):n=x[1];let[E,T]=(0,nW.B)(n);x[2]!==E||x[3]!==T?(i=(0,o.jsx)(nZ.X,{className:n7,onObserve:E,onUnobserve:T}),x[2]=E,x[3]=T,x[4]=i):i=x[4];let O=I&&nX;x[5]!==O?(a=(0,y.$)(nK.A.stickyHeader,n6,O),x[5]=O,x[6]=a):a=x[6],x[7]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,o.jsx)(“h2″,{className:”sr-only”,children:”Diff Comparison Toolbar”}),x[7]=r):r=x[7],x[8]!==S?(s=(0,o.jsx)(tH.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:(0,o.jsx)(“div”,{children:S})}),x[8]=S,x[9]=s):s=x[9],x[10]!==w||x[11]!==N?(l=w&&(0,o.jsx)(e2,{totalFilesCount:N}),x[10]=w,x[11]=N,x[12]=l):l=x[12];let P=!C&&b;return x[13]!==R||x[14]!==N||x[15]!==L?(d=R&&N>1&&(0,o.jsx)(“div”,{className:n3,children:(0,o.jsx)(ib,{userNotices:L})}),x[13]=R,x[14]=N,x[15]=L,x[16]=d):d=x[16],x[17]!==d||x[18]!==l||x[19]!==P?(u=(0,o.jsxs)(“div”,{className:n2,children:[l,P,d]}),x[17]=d,x[18]=l,x[19]=P,x[20]=u):u=x[20],x[21]!==A?(m=A&&(0,o.jsx)(“div”,{className:n4,”data-testid”:”file-controls-divider”}),x[21]=A,x[22]=m):m=x[22],x[23]!==L?(f=(0,o.jsx)(nw.G,{invisible:!1,small:!0,enabledDiffViewSettings:D,userNotices:L}),x[23]=L,x[24]=f):f=x[24],x[25]!==u||x[26]!==m||x[27]!==f?(h=(0,o.jsxs)(tH.B,{direction:”horizontal”,align:”center”,children:[u,m,f]}),x[25]=u,x[26]=m,x[27]=f,x[28]=h):h=x[28],x[29]!==h||x[30]!==a||x[31]!==s?(p=(0,o.jsxs)(tH.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:a,children:[r,s,h]}),x[29]=h,x[30]=a,x[31]=s,x[32]=p):p=x[32],x[33]!==p||x[34]!==i?(g=(0,o.jsxs)(o.Fragment,{children:[i,p]}),x[33]=p,x[34]=i,x[35]=g):g=x[35],g}:function({fileFilter:e,isFileTreeExpanded:t,shouldShowViewedFilesCount:n,totalFilesCount:i,treeToggleElement:a,userNotices:r}){let[s,l]=(0,j.useState)(!1),d=(0,_.j5)(),c=n||!t,[u,m]=(0,nW.B)(e=>{e[0]&&l(!e[0].isIntersecting)});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nZ.X,{className:n7,onObserve:u,onUnobserve:m}),(0,o.jsxs)(tH.B,{as:”section”,direction:”horizontal”,justify:”space-between”,gap:”condensed”,align:”center”,className:(0,y.$)(nK.A.stickyHeader,n6,s&&nX),children:[(0,o.jsx)(“h2″,{className:”sr-only”,children:”Diff Comparison Toolbar”}),(0,o.jsx)(tH.B,{direction:”horizontal”,gap:”condensed”,align:”center”,className:”min-width-0″,children:(0,o.jsx)(“div”,{children:a})}),(0,o.jsxs)(tH.B,{direction:”horizontal”,align:”center”,children:[(0,o.jsxs)(“div”,{className:n2,children:[n&&(0,o.jsx)(e2,{totalFilesCount:i}),!t&&e,d&&i>1&&(0,o.jsx)(“div”,{className:n3,children:(0,o.jsx)(ib,{userNotices:r})})]}),c&&(0,o.jsx)(“div”,{className:n4,”data-testid”:”file-controls-divider”}),(0,o.jsx)(nw.G,{invisible:!1,small:!0,enabledDiffViewSettings:[“line-spacing”],userNotices:r})]})]})]})};try{i6.displayName||(i6.displayName=”BasicDiffComparisonViewToolbar”)}catch{}var i7=n(8624),i8=n(39467),i9=n(54571),ae=n(71833);let at=”diff-comparison-viewer-container”,an=(0,d.Z6)()?function(e,t,n,i){let a,r,s,l,d,u,m,f,h,p,g,x,b,y=(0,c.c)(40);y[0]===Symbol.for(“react.memo_cache_sentinel”)?(a=[],y[0]=a):a=y[0];let[C]=(0,i9.I)(ar,!0,a),w=(0,j.useRef)(null),N=(0,j.useRef)(null),S=t?”expanded”:”collapsed”;y[1]!==S?(r={wideMode:S,compactMode:”none”},y[1]=S,y[2]=r):r=y[2];let[L,D]=(0,j.useState)(r);y[3]!==i?(s=()=>{D(aa),(0,ae.B)(!0,i),requestAnimationFrame(()=>w.current?.focus())},y[3]=i,y[4]=s):s=y[4];let I=s;y[5]!==i?(l=()=>{D({wideMode:”collapsed”,compactMode:”none”}),(0,ae.B)(!1,i),requestAnimationFrame(()=>w.current?.focus())},y[5]=i,y[6]=l):l=y[6];let _=l;y[7]!==n?(d=()=>{let e=”overlay”;if(n){let t=window.innerWidth;(0,i8.nn)(t)>i8.Gy.large&&(e=”inline”)}D(t=>({…t,compactMode:e})),requestAnimationFrame(()=>N.current?.focus())},y[7]=n,y[8]=d):d=y[8];let k=d;y[9]===Symbol.for(“react.memo_cache_sentinel”)?(u=()=>{D(ai),requestAnimationFrame(()=>N.current?.focus())},y[9]=u):u=y[9];let R=u;y[10]!==k||y[11]!==I||y[12]!==L.compactMode||y[13]!==L.wideMode?(m=()=>{let e=!1,t=document.getElementById(at);if(t){let n=t.getBoundingClientRect().width;e=0===n&&B.cg?B.cg.innerWidth>=1012:n>=1012}else B.cg&&(e=B.cg.innerWidth>=1012);e?”collapsed”===L.wideMode&&I():”none”===L.compactMode&&k()},y[10]=k,y[11]=I,y[12]=L.compactMode,y[13]=L.wideMode,y[14]=m):m=y[14];let A=m,E=”expanded”===L.wideMode,T=”expanded”===L.wideMode?”Collapse file tree”:”Expand file tree”;y[15]!==_||y[16]!==I||y[17]!==L.wideMode?(f=()=>{“expanded”===L.wideMode?_():I()},y[15]=_,y[16]=I,y[17]=L.wideMode,y[18]=f):f=y[18],y[19]!==e||y[20]!==f||y[21]!==E||y[22]!==T?(h=(0,o.jsx)(i7.L,{expanded:E,alignment:”left”,ariaLabel:T,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:w,className:iG,onToggleExpanded:f,size:”small”}),y[19]=e,y[20]=f,y[21]=E,y[22]=T,y[23]=h):h=y[23];let O=h,P=”none”!==L.compactMode,F=”none”!==L.compactMode?”Collapse file tree”:”Expand file tree”;y[24]!==k||y[25]!==L.compactMode?(p=()=>{“none”!==L.compactMode?R():k()},y[24]=k,y[25]=L.compactMode,y[26]=p):p=y[26],y[27]!==e||y[28]!==P||y[29]!==F||y[30]!==p?(g=(0,o.jsx)(i7.L,{expanded:P,alignment:”left”,ariaLabel:F,tooltipDirection:”se”,testid:”file-tree-button”,ariaControls:e,ref:N,className:iq,onToggleExpanded:p,size:”small”}),y[27]=e,y[28]=P,y[29]=F,y[30]=p,y[31]=g):g=y[31];let $=g;y[32]!==$||y[33]!==O?(x=(0,o.jsxs)(o.Fragment,{children:[$,O]}),y[32]=$,y[33]=O,y[34]=x):x=y[34];let M=x,V=C&&!t;return y[35]!==A||y[36]!==V||y[37]!==M||y[38]!==L?(b={splitPagePaneHidden:V,treeViewState:L,collapseMobileTree:R,expandTree:A,treeToggleElement:M},y[35]=A,y[36]=V,y[37]=M,y[38]=L,y[39]=b):b=y[39],b}:function(e,t,n,i){let[a]=(0,i9.I)(()=>!1,!0,[]),r=(0,j.useRef)(null),s=(0,j.useRef)(null),[l,d]=(0,j.useState)({wideMode:t?”expanded”:”collapsed”,compactMode:”none”}),c=(0,j.useCallback)(()=>{d(e=>({…e,wideMode:”expanded”})),(0,ae.B)(!0,i),requestAnimationFrame(()=>r.current?.focus())},[i]),u=(0,j.useCallback)(()=>{d({wideMode:”collapsed”,compactMode:”none”}),(0,ae.B)(!1,i),requestAnimationFrame(()=>r.current?.focus())},[i]),m=(0,j.useCallback)(()=>{let e=”overlay”;if(n){let t=window.innerWidth;(0,i8.nn)(t)>i8.Gy.large&&(e=”inline”)}d(t=>({…t,compactMode:e})),requestAnimationFrame(()=>s.current?.focus())},[n]),f=(0,j.useCallback)(()=>{d(e=>({…e,compactMode:”none”})),requestAnimationFrame(()=>s.current?.focus())},[]),h=(0,j.useCallback)(()=>{let e=!1,t=document.getElementById(at);if(t){let n=t.getBoundingClientRect().width;e=0===n&&B.cg?B.cg.innerWidth>=1012:n>=1012}else B.cg&&(e=B.cg.innerWidth>=1012);e?”collapsed”===l.wideMode&&c():”none”===l.compactMode&&m()},[l.wideMode,l.compactMode,c,m]),p=(0,j.useMemo)(()=>(0,o.jsx)(i7.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:iG,onToggleExpanded:()=>{“expanded”===l.wideMode?u():c()},size:”small”}),[l.wideMode,e,u,c]),g=(0,j.useMemo)(()=>(0,o.jsx)(i7.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:iq,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,j.useMemo)(()=>(0,o.jsxs)(o.Fragment,{children:[g,p]}),[g,p])}};function ai(e){return{…e,compactMode:”none”}}function aa(e){return{…e,wideMode:”expanded”}}function ar(){return!1}let as=(0,d.Z6)()?function(){let e,t,n,i=(0,c.c)(7),a=(0,eb.e)(ex.uT.generateChangeGroups),{updateChangeGroupGeneration:r}=(0,_.wL)();return i[0]!==a?(e=async()=>{let e=await (0,ey.q$)(a,{method:”POST”}),t=await (0,ey.hp)(e);return(0,ey.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,ev.n)(n)}:function(){let e=(0,eb.e)(ex.uT.generateChangeGroups),{updateChangeGroupGeneration:t}=(0,_.wL)();return(0,ev.n)({mutationFn:async()=>{let t=await (0,ey.q$)(e,{method:”POST”}),n=await (0,ey.hp)(t);return(0,ey.R)(t,n),n},onSuccess:e=>{t(e)}})},al=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(11),{changeGroupsEnabled:r}=e,s=(0,_.gt)(),l=(0,_.iY)(),o=!!(l&&l.length>0),d=(0,nL.u)(“generate_groups_on_files_view”),{mutate:u}=as(),m=(0,_.Fl)();a[0]!==m?(t=m&&(e_(m.state)||!eI(m.state)),a[0]=m,a[1]=t):t=a[1];let f=t,h=(0,_.ww)(),p=(0,j.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,j.useEffect)(n,i)}:function({changeGroupsEnabled:e}){let t=(0,_.gt)(),n=(0,_.iY)(),i=!!(n&&n.length>0),a=(0,nL.u)(“generate_groups_on_files_view”),{mutate:r}=as(),s=(0,_.Fl)(),l=s&&(e_(s.state)||!eI(s.state)),o=(0,_.ww)(),d=(0,j.useRef)(!1);(0,j.useEffect)(()=>{d.current||!a||!e||!t||i||o||l||(r(),d.current=!0)},[t,a,r,i,l,o,e])};var ao=n(81945);let ad=(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)(ao.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(ac)})]}),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)(ao.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)(ao.O,{height:”sm”,variant:”rounded”,width:”random”},`loading-skeleton-${t}`))})]})};function ac(e,t){return(0,o.jsx)(ao.O,{height:”sm”,variant:”rounded”,width:”random”},`loading-skeleton-${t}`)}try{ad.displayName||(ad.displayName=”EntireDiffLoadingSkeleton”)}catch{}var au=n(19976);let am=(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)(tL.E,{border:!1,spacious:!0,children:(0,o.jsx)(tL.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)(tL.E,{border:!1,spacious:!0,children:(0,o.jsx)(tL.E.Heading,{children:”No files matched your search”})})})};try{am.displayName||(am.displayName=”FilesChangedFilterBlankSlate”)}catch{}var af=n(59523),ah=n(16549),ap=n(66358);let ag=(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,j.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,I.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=ax(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)(T.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)(E.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,j.useId)(),r=(0,I.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=ax(s,l,d,i);return(0,o.jsx)(E.m,{id:a,”aria-label”:u,text:u,children:c?(0,o.jsx)(T.A,{“aria-labelledby”:a,href:c,className:t,muted:!s,children:(0,o.jsx)(A.ShieldLockIcon,{})}):(0,o.jsx)(A.ShieldLockIcon,{className:t})})};function ax(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{ag.displayName||(ag.displayName=”CodeownersBadge”)}catch{}var ab=n(78252),av=n(31675);let ay=”BlobActionsMenu-module__hiddenIcon–EJrTU”,aj=(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:y,branchName:j,isViewable:C,isDeleteable:w,isEditable:S,shouldShowEditOptions:L,copilotDiffChatProps:D,returnToPullRequestPath:I,onCommentOnFile:_,onCopyPath:k,onExpandLines:R,areLinesExpanded:E,richDiffToggle:T,codeownersText:O,codeownersUrl:P}=e,F=void 0===w||w,$=void 0===S||S,M=void 0===L||L;g[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,o.jsx)(e5.W.Anchor,{children:(0,o.jsx)(eo.K,{icon:A.KebabHorizontalIcon,”aria-label”:”More options”,variant:”invisible”,size:”small”})}),g[0]=t):t=g[0],g[1]!==T?(n=T?.richDiff?.canToggleRichDiff&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-medium-up”],onSelect:T.onToggle,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:T.isRichDiff?ay:void 0,children:(0,o.jsx)(A.CheckIcon,{})})}),”Source diff”]}),(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-medium-up”],onSelect:T.onToggle,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:T.isRichDiff?void 0:ay,children:(0,o.jsx)(A.CheckIcon,{})})}),”Rich diff”]}),(0,o.jsx)(N.l.Divider,{className:av.A[“hide-on-medium-up”]})]}),g[1]=T,g[2]=n):n=g[2],g[3]!==D?(i=D&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ab.$,{…D}),(0,o.jsx)(N.l.Divider,{})]}),g[3]=D,g[4]=i):i=g[4],g[5]!==_?(a=_&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-desktop”],onSelect:_,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.CommentIcon,{})}),”Comment on this file”]}),(0,o.jsx)(N.l.Divider,{className:av.A[“hide-on-desktop”]})]}),g[5]=_,g[6]=a):a=g[6],g[7]!==k?(r=k&&(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-desktop”],onSelect:k,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.CopyIcon,{})}),”Copy file name”]}),g[7]=k,g[8]=r):r=g[8],g[9]!==E||g[10]!==R?(s=R&&(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-desktop”],onSelect:R,children:[(0,o.jsx)(N.l.LeadingVisual,{children:E?(0,o.jsx)(A.FoldIcon,{}):(0,o.jsx)(A.UnfoldIcon,{})}),(0,o.jsx)(“span”,{children:E?”Collapse non-diff lines”:”Expand all lines”})]}),g[9]=E,g[10]=R,g[11]=s):s=g[11],g[12]!==k||g[13]!==R?(l=(k||R)&&(0,o.jsx)(N.l.Divider,{className:av.A[“hide-on-desktop”]}),g[12]=k,g[13]=R,g[14]=l):l=g[14],g[15]!==x||g[16]!==b||g[17]!==y.name||g[18]!==y.ownerLogin?(d=(0,eQ.nD_)({repo:y.name,owner:y.ownerLogin,filePath:b,commitish:x}),g[15]=x,g[16]=b,g[17]=y.name,g[18]=y.ownerLogin,g[19]=d):d=g[19];let B=void 0===C||C?void 0:”Action unavailable”;return g[20]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.EyeIcon,{})}),g[20]=u):u=g[20],g[21]!==d||g[22]!==B?(m=(0,o.jsxs)(N.l.LinkItem,{href:d,inactiveText:B,children:[u,”View file”]}),g[21]=d,g[22]=B,g[23]=m):m=g[23],g[24]!==j||g[25]!==F||g[26]!==$||g[27]!==b||g[28]!==y.name||g[29]!==y.ownerLogin||g[30]!==I||g[31]!==M?(f=j&&M&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(N.l.LinkItem,{href:(0,eQ.Nyd)({repo:y.name,owner:y.ownerLogin,filePath:b,commitish:j,returnToPrPath:I}),inactiveText:$?void 0:”Action unavailable”,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.PencilIcon,{})}),”Edit file”]}),(0,o.jsxs)(N.l.LinkItem,{variant:”danger”,href:(0,eQ.Y65)({repo:y.name,owner:y.ownerLogin,filePath:b,commitish:j}),inactiveText:F?void 0:”Action unavailable”,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.TrashIcon,{})}),”Delete file”]})]}),g[24]=j,g[25]=F,g[26]=$,g[27]=b,g[28]=y.name,g[29]=y.ownerLogin,g[30]=I,g[31]=M,g[32]=f):f=g[32],g[33]!==O||g[34]!==P?(h=O&&P&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.l.Divider,{className:av.A[“hide-on-desktop”]}),(0,o.jsxs)(N.l.LinkItem,{className:av.A[“hide-on-desktop”],href:P,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.ShieldLockIcon,{})}),O]})]}),g[33]=O,g[34]=P,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)(e5.W,{children:[t,(0,o.jsx)(e5.W.Overlay,{children:(0,o.jsxs)(N.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)(e5.W,{children:[(0,o.jsx)(e5.W.Anchor,{children:(0,o.jsx)(eo.K,{icon:A.KebabHorizontalIcon,”aria-label”:”More options”,variant:”invisible”,size:”small”})}),(0,o.jsx)(e5.W.Overlay,{children:(0,o.jsxs)(N.l,{children:[p?.richDiff?.canToggleRichDiff&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-medium-up”],onSelect:p.onToggle,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:p.isRichDiff?ay:void 0,children:(0,o.jsx)(A.CheckIcon,{})})}),”Source diff”]}),(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-medium-up”],onSelect:p.onToggle,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(“span”,{className:p.isRichDiff?void 0:ay,children:(0,o.jsx)(A.CheckIcon,{})})}),”Rich diff”]}),(0,o.jsx)(N.l.Divider,{className:av.A[“hide-on-medium-up”]})]}),d&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ab.$,{…d}),(0,o.jsx)(N.l.Divider,{})]}),u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-desktop”],onSelect:u,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.CommentIcon,{})}),”Comment on this file”]}),(0,o.jsx)(N.l.Divider,{className:av.A[“hide-on-desktop”]})]}),m&&(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-desktop”],onSelect:m,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.CopyIcon,{})}),”Copy file name”]}),f&&(0,o.jsxs)(N.l.Item,{className:av.A[“hide-on-desktop”],onSelect:f,children:[(0,o.jsx)(N.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)(N.l.Divider,{className:av.A[“hide-on-desktop”]}),(0,o.jsxs)(N.l.LinkItem,{href:(0,eQ.nD_)({repo:n.name,owner:n.ownerLogin,filePath:t,commitish:e}),inactiveText:a?void 0:”Action unavailable”,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.EyeIcon,{})}),”View file”]}),i&&l&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(N.l.LinkItem,{href:(0,eQ.Nyd)({repo:n.name,owner:n.ownerLogin,filePath:t,commitish:i,returnToPrPath:c}),inactiveText:s?void 0:”Action unavailable”,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.PencilIcon,{})}),”Edit file”]}),(0,o.jsxs)(N.l.LinkItem,{variant:”danger”,href:(0,eQ.Y65)({repo:n.name,owner:n.ownerLogin,filePath:t,commitish:i}),inactiveText:r?void 0:”Action unavailable”,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.TrashIcon,{})}),”Delete file”]})]}),g&&x&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N.l.Divider,{className:av.A[“hide-on-desktop”]}),(0,o.jsxs)(N.l.LinkItem,{className:av.A[“hide-on-desktop”],href:x,children:[(0,o.jsx)(N.l.LeadingVisual,{children:(0,o.jsx)(A.ShieldLockIcon,{})}),g]})]})]})})]})};try{aj.displayName||(aj.displayName=”BlobActionsMenu”)}catch{}let aC=”MarkAsViewedButton-module__viewed–czELS”,aw=”MarkAsViewedButton-module__iconOnly–tQ1ah”,aN=(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,eD.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,ev.n)(r)}:function(e,{onSuccess:t,onError:n}){let i=`${e}/file_review`;return(0,ev.n)({mutationFn:async({viewedStatus:e,path:t})=>{let n=await (0,eD.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)}})},aS=(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,_.Mv)(h);d[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:aD,onError:aL},d[0]=t):t=d[0];let{mutate:b}=aN(u,t),{setDiffViewed:j}=(0,_.Ud)(),C=(0,_.j5)(),{navigateToNext:w}=ir();d[1]!==g||d[2]!==C||d[3]!==x||d[4]!==w||d[5]!==h||d[6]!==j||d[7]!==p||d[8]!==b?(n=()=>{g||(b({viewedStatus:!x,path:h}),j(h,!x),C?w():p(!x))},d[1]=g,d[2]=C,d[3]=x,d[4]=w,d[5]=h,d[6]=j,d[7]=p,d[8]=b,d[9]=n):n=d[9];let N=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 S=i,L=x?”Viewed”:”Not Viewed”;d[12]!==S?(a=()=>S,d[12]=S,d[13]=a):a=d[13];let D=x&&aC;d[14]!==D?(r=(0,y.$)(D,aw),d[14]=D,d[15]=r):r=d[15],d[16]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(“span”,{className:av.A[“hide-on-mobile”],children:”Viewed”}),d[16]=s):s=d[16],d[17]!==N||d[18]!==g||d[19]!==x||d[20]!==L||d[21]!==a||d[22]!==r?(l=(0,o.jsx)(ef.Q,{“aria-pressed”:x,”aria-label”:L,inactive:g,size:”small”,variant:”default”,leadingVisual:a,className:r,onClick:N,children:s}),d[17]=N,d[18]=g,d[19]=x,d[20]=L,d[21]=a,d[22]=r,d[23]=l):l=d[23];let I=l;if(!g||!f)return I;{let e;return d[24]!==I||d[25]!==f?(e=(0,o.jsx)(E.m,{text:f,children:I}),d[24]=I,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,_.Mv)(i),{mutate:s}=aN(e,{onSuccess:()=>{},onError:()=>{}}),{setDiffViewed:l}=(0,_.Ud)(),d=(0,_.j5)(),{navigateToNext:c}=ir(),u=(0,j.useCallback)(()=>{t||(s({viewedStatus:!r,path:i}),l(i,!r),d?c():a(!r))},[s,t,r,i,l,d,c,a]),m=(0,j.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)(ef.Q,{“aria-pressed”:r,”aria-label”:r?”Viewed”:”Not Viewed”,inactive:t,size:”small”,variant:”default”,leadingVisual:()=>m,className:(0,y.$)(r&&aC,aw),onClick:u,children:(0,o.jsx)(“span”,{className:av.A[“hide-on-mobile”],children:”Viewed”})});return t&&n?(0,o.jsx)(E.m,{text:n,children:f}):f};function aL(){}function aD(){}try{aS.displayName||(aS.displayName=”MarkAsViewedButton”)}catch{}var aI=n(79634);function a_({basePath:e,effectiveRange:t,path:n}){return[ex.uT.richDiff,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`,`path:${n}`]}let ak=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(11),{basePath:r,path:s}=e,l=(0,_.L3)();a[0]!==r||a[1]!==l||a[2]!==s?(t=a_({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:aR,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,_.L3)();return{fetcher:aR,key:a_({basePath:e,path:t,…n}),args:{path:t,basePath:e,…n,signal:void 0}}};async function aR({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/${ex.uT.richDiff}?${r.toString()}`;try{let e=await (0,eD.Sr)(s,{signal:a});if(a?.aborted)return;let t=await (0,ey.hp)(e);return(0,ey.R)(e,t),t??void 0}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw e}}var aA=n(15697);function aE(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 aT({diffSummary:e,commentPreference:t,lineSpacingPreference:n,isCollapsed:i}){let a=n===f.Ud.Compact?20:25;if(i)return 42;if(e?.linesChanged&&e.linesChanged>400)return 175;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 aO({diffManuallyExpanded:e,headBranchName:t,headRepoName:n,headRepoOwner:i,diffLines:a,path:r,isSelected:s=!1,reviewed:l,…d}){let c=(0,_.Kp)(),u=(0,_.JA)(),{fetchContextLines:m}=(0,_.QV)(),f=(0,_.L3)(),p=f.hideWhitespace?”1″:”0″,g=ak({basePath:c,path:r}),x=(0,j.useRef)(null),b=(0,j.useRef)(null),{helpUrl:C}=(0,aI.X)(),w=(0,_.kN)(r),{updateAllFilesCollapsedStatus:N,updateFileCollapsedStatus:S}=(0,_.JR)(),L=(0,_.GR)(),[k,R]=(0,j.useState)(!1),[E,T]=(0,j.useState)(d.richDiff?.defaultToRichDiff??!1),O=(0,h.G7)(“pr_simple_diffs”),P=(0,_.Fm)(r),F=(0,j.useMemo)(()=>{if(O)return aT({diffSummary:P,commentPreference:d.currentUser.commentsPreference,lineSpacingPreference:d.currentUser.lineSpacing,isCollapsed:w})},[d.currentUser.commentsPreference,d.currentUser.lineSpacing,P,w,O]),$=(0,_.ne)(r),M=(0,I.dG)({basePath:c}),V=(0,I.hG)({diffPath:r,codeownersData:M?.data}),U=(0,j.useMemo)(()=>$?$[tg.zW]?.threads??[]:[],[$]),H=(0,j.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),aE(t,s.endLine)&&(l=!1,!(s=a[++r])))break}else aE(t,s.startLine)&&(l=!0,i.push(s.headerLine),i.push(t));return i}(a,u,r):a,[u,r,a]),G=(0,j.useCallback)(()=>{S(r,!1)},[r,S]),q=(0,j.useRef)(!0),z=(0,j.useCallback)(()=>{let e=L();e&&w&&$&&Object.values($).some(t=>t.threads.some(t=>String(t.id)===String(e))||t.annotations.some(t=>String(t.id)===String(e)))&&G()},[w,G,L,$]),K=(0,j.useCallback)(()=>{(0,D.K3)(),z()},[z]),W=(0,j.useCallback)(()=>{(0,ia.o9)()===d.pathDigest&&w&&G()},[d.pathDigest,G,w]),Z=(0,j.useCallback)(()=>{z(),W(),q.current=!1},[z,W]);(0,j.useEffect)(()=>{Z()},[]),(0,j.useEffect)(()=>{if(!s){q.current=!0;return}q.current&&(W(),q.current=!1)},[W,s]),(0,j.useEffect)(()=>(B.cg?.addEventListener(“hashchange”,Z),()=>{B.cg?.removeEventListener(“hashchange”,Z)}),[Z]);let Q=(0,j.useCallback)((e,t,n)=>{if(n&&n.altKey)N(e);else{if(S(t,e),!e)return;B.cg?.requestAnimationFrame(()=>{let e=x.current?.getBoundingClientRect();!e||e.top<60&&B.cg?.scrollTo({top:e.top+B.cg.scrollY-60})})}},[N,S]),X=(0,j.useRef)((0,aA.B)({diffSummary:P})),[J,Y]=(0,j.useState)(!1),ee=(0,j.useCallback)(async e=>{K(),X.current.push(e),m({contextLineRanges:X.current,path:r,w:p})},[K,m,r,p]),et=(0,j.useCallback)(async()=>{await m({contextLineRanges:[],path:r})},[m,r]),en=(0,j.useMemo)(()=>{if(d.isBinary||d.isSubmodule||d.isTooBig||(0,af.dK)({linesChanged:d.linesChanged,newTreeEntry:d.newTreeEntry,oldTreeEntry:d.oldTreeEntry,status:d.status,truncatedReason:d.truncatedReason}))return!1;if(J)return!0;if(0===H.length)return!1;if((H[1]?.blobLineNumber||0)>1)return!0;let e=H.length,t=H[e-1]?.blobLineNumber||0,n=d.newTreeEntry?.lineCount||0;return!!(t{let e,t;X.current=[],J||X.current.push({start:1,end:Math.max(d.oldTreeEntry?.lineCount??0,d.newTreeEntry?.lineCount??0)});let n=document.activeElement;await m({contextLineRanges:X.current,path:r,w:p}),Y(!J),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))},[J,d.oldTreeEntry?.lineCount,d.newTreeEntry?.lineCount,m,r,p]),ea=(0,j.useCallback)(()=>T(!E),[E]),er=(0,j.useMemo)(()=>d.richDiff?.canToggleRichDiff?{richDiff:d.richDiff,isRichDiff:E,onToggle:ea}:void 0,[d.richDiff,E,ea]),es=(0,j.useMemo)(()=>V&&(V.isOwnedByViewer||V.owners.length>0)?ax(V.isOwnedByViewer,V.owners,void 0,d.currentUser.login):void 0,[V,d.currentUser.login]),el=(0,j.useMemo)(()=>V?.ruleUrl,[V]),ed=(0,j.useMemo)(()=>d.currentUser.canComment?()=>R(!0):void 0,[d.currentUser.canComment]),ec=(0,j.useCallback)(()=>navigator.clipboard?.writeText(r),[r]),eu=(0,j.useMemo)(()=>en?ei:void 0,[en,ei]),em=(0,j.useMemo)(()=>({richDiff:d.richDiff,showRichDiff:E,onToggleRichDiff:T,queryConfig:g}),[d.richDiff,E,g]),ef=(0,j.useMemo)(()=>{let e=new Set([]);return u&&e.add(ap.YR.diffStats).add(ap.YR.expandLines),f.fullDiff.headOid!==f.effectiveRange.headOid&&e.add(ap.YR.markAsViewed),e},[u,f.effectiveRange.headOid,f.fullDiff.headOid]),{disabledFeatures:eh,disabledReasons:ep}=(0,j.useMemo)(()=>{let e=new Set([]),t=new Map;return u&&(e.add(ap.YR.markAsViewed),t.set(ap.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)(ah.oO,{loadDiff:et,…d,addFileCommentButtonRef:b,diffManuallyExpanded:e,estimatedDiffHeight:F,fileComments:U,hiddenFeatures:ef,isAddingFileComment:k,isSelected:s,leftSideContent:(0,o.jsx)(j.Suspense,{children:(0,o.jsx)(ag,{className:(0,y.$)(“px-1 flex-items-center flex-order-2 flex-sm-order-1”,av.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:[!ef.has(ap.YR.markAsViewed)&&(0,o.jsx)(aS,{path:r,basePath:c,inactive:eh.has(ap.YR.markAsViewed)||!!u,inactiveTooltip:ep.get(ap.YR.markAsViewed),setIsCollapsed:e=>Q(e,r)}),d.currentUser.canComment&&(0,o.jsx)(eo.K,{ref:b,icon:A.CommentIcon,”aria-label”:”Comment on this file”,”aria-expanded”:k,variant:”invisible”,size:”small”,onClick:e=>{w&&Q(!1,r),R(!0),e.stopPropagation()},className:av.A[“hide-on-mobile”]}),(0,o.jsx)(aj,{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:ed,onCopyPath:ec,onExpandLines:eu,areLinesExpanded:J,richDiffToggle:er,codeownersText:es,codeownersUrl:el})]}),canExpandOrCollapseLines:en,expandAllContextLines:ei,hasExpandedAllRanges:J,addInjectedContextLines:ee,onToggleCollapse:(e,t)=>Q(t,r,e),path:r,ref:x,setIsAddingFileComment:R,collapsed:w,helpUrl:C,linesAdded:P?.linesAdded||d.linesAdded||0,linesChanged:P?.linesChanged||d.linesChanged||0,linesDeleted:P?.linesDeleted||d.linesDeleted||0,diffLines:H,richDiffState:em})}try{aO.displayName||(aO.displayName=”PullRequestDiff”)}catch{}var aP=n(29731),aF=n(8431);let a$=(0,j.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)(),y=b?.lineSpacing===”compact”?20:25,j=x??y*(void 0===g?5:g);return u[0]!==h?(t=(0,aP.G)(h),u[0]=h,u[1]=t):t=u[1],u[2]!==j?(n={minHeight:j},u[2]=j,u[3]=n):n=u[3],u[4]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,o.jsx)(ao.O,{height:”sm”,variant:”rounded”,width:”random”}),a=(0,o.jsx)(ao.O,{height:”sm”,variant:”rounded”,width:”random”}),r=(0,o.jsx)(ao.O,{height:”sm”,variant:”rounded”,width:”random”}),s=(0,o.jsx)(ao.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:aF.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:aF.A.diffTargetable,role:”region”,”aria-label”:e,…(0,aP.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)(ao.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,o.jsx)(ao.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,o.jsx)(ao.O,{height:”sm”,variant:”rounded”,width:”random”}),(0,o.jsx)(ao.O,{height:”sm”,variant:”rounded”,width:”random”})]})})})});try{a$.displayName||(a$.displayName=”DiffEntryLoadingSkeleton”)}catch{}let aM=(0,j.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,_.pV)(),m=(0,nL.u)(“pulls-files-skip-prefer-any-solo-entry”),[f,h]=(0,j.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,nW.B)(t,n),x=`Loading ${s.path}`,b=`lazy-load-${s.path}`,y=`diff-${s.pathDigest}`;return r[6]!==d||r[7]!==x||r[8]!==b||r[9]!==y?(i=(0,o.jsx)(a$,{ariaLabel:x,testId:b,id:y,approximateLineCount:d}),r[6]=d,r[7]=x,r[8]=b,r[9]=y,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,_.pV)(),i=(0,nL.u)(“pulls-files-skip-prefer-any-solo-entry”),[a,r]=(0,j.useState)(!1),[s,l]=(0,nW.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)(a$,{ariaLabel:`Loading ${e.path}`,testId:`lazy-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})})});try{aM.displayName||(aM.displayName=”LazyDiffEntryLoadingSkeleton”)}catch{}let aB=(0,j.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,_.pV)(),u=(0,nL.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,j.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)(a$,{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,_.pV)(),i=(0,nL.u)(“pulls-files-skip-prefer-any-solo-entry”);return(0,j.useEffect)(()=>{n(e,{preferAnySoloEntry:!i})},[n,e,i]),(0,o.jsx)(a$,{ariaLabel:`Loading ${e.path}`,testId:`eager-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})});try{aB.displayName||(aB.displayName=”EagerDiffEntryLoadingSkeleton”)}catch{}let aV=(0,j.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)(ah.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)(ah.Ao,{linesAdded:e,linesChanged:t,linesDeleted:n,newTreeEntry:i,oldTreeEntry:a,path:r,pathDigest:s,status:l})});try{aV.displayName||(aV.displayName=”PullRequestDiffEntryErrorFallback”)}catch{}var aU=n(90047),aH=n(73189);let aG=(0,j.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)(a$,{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)(a$,{ariaLabel:`Loading ${e.path}`,testId:`hidden-load-${e.path}`,id:`diff-${e.pathDigest}`,approximateLineCount:t})});try{aG.displayName||(aG.displayName=”HiddenDiffEntryLoadingSkeleton”)}catch{}let aq=(0,j.memo)(aK,(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),az=(0,d.Z6)();function aK(e){return az?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,C=(0,_.Py)(p.pathDigest),w=(0,_.jT)(p.path),N=(0,_.Fm)(p.path),S=(0,_.j5)();b&&b();let L=(0,j.useRef)(!1);s[0]!==C||s[1]!==h||s[2]!==p.pathDigest||s[3]!==p.renderMode?(t=()=>{if(L.current)return;let e=B.fV.hash??””,t=(0,ia.pd)(e)??””;if((t=t.replace(“diff-“,””).replace(“#”,””))!==p.pathDigest&&(L.current=!0),!(C&&[“LAZY_AUTO_LOAD”,”EAGER_AUTO_LOAD”].includes(p.renderMode))){if(C&&”HIDE”!==p.renderMode){let e=B.cg?.location.hash.substring(1)??””;if(!(0,ia.yI)(e)||”RENDER”===p.renderMode){let e=B.cg?.document.activeElement;if(e?.closest(“#diff-file-tree-filter”))return;h(p.pathDigest)}}L.current=!0}},s[0]=C,s[1]=h,s[2]=p.pathDigest,s[3]=p.renderMode,s[4]=t):t=s[4];let D=p?.renderMode;if(s[5]!==C||s[6]!==h||s[7]!==p.pathDigest||s[8]!==D?(n=[C,h,p.pathDigest,D],s[5]=C,s[6]=h,s[7]=p.pathDigest,s[8]=D,s[9]=n):n=s[9],(0,j.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=N?.linesChanged??5;if((N?.changeType===”REMOVED”||N?.changeType===”DELETED”)&&(r=5),”HIDE”===p.renderMode){let e;s[11]!==r||s[12]!==p?(e=(0,o.jsx)(aG,{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)(aM,{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)(aB,{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,y.$)(aF.A.diffTargetable,aF.A.diff),s[20]=t):t=s[20];let d=`${p.pathDigest}_${p.path}`,c=`#diff-${p.pathDigest}`,u=N?.linesAdded??0,m=N?.linesChanged??0,f=N?.linesDeleted??0;return s[21]!==S||s[22]!==p.path||s[23]!==m||s[24]!==f||s[25]!==c||s[26]!==u?(n=(0,o.jsx)(“div”,{className:aF.A.diffHeaderWrapper,children:(0,o.jsx)(aU.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:c,canToggleRichDiff:!1,linesAdded:u,linesChanged:m,linesDeleted:f,newPath:p.path,patchStatus:””,path:p.path,onToggleExpandAllLines:aH.l,onToggleFileCollapsed:aH.l,onToggleDiffDisplay:aH.l,isInSingleFileMode:S})}),s[21]=S,s[22]=p.path,s[23]=m,s[24]=f,s[25]=c,s[26]=u,s[27]=n):n=s[27],s[28]!==C||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”:C,children:[n,a]},d),s[28]=C,s[29]=a,s[30]=n,s[31]=l,s[32]=d,s[33]=i):i=s[33],i}if(!w){let e;return s[34]!==p.path||s[35]!==p.pathDigest?(e=(0,o.jsx)(aV,{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]!==w?(i=(0,o.jsx)(aV,{…w}),s[37]=w,s[38]=i):i=s[38];let I=w.reviewed??!1;return s[39]!==l||s[40]!==w.diffLines||s[41]!==w.diffSize||s[42]!==w.helpUrl||s[43]!==w.isBinary||s[44]!==w.isSubmodule||s[45]!==w.isTooBig||s[46]!==w.linesAdded||s[47]!==w.linesChanged||s[48]!==w.linesDeleted||s[49]!==w.newCommitOid||s[50]!==w.newTreeEntry||s[51]!==w.objectId||s[52]!==w.oldCommitOid||s[53]!==w.oldTreeEntry||s[54]!==w.path||s[55]!==w.pathDigest||s[56]!==w.richDiff||s[57]!==w.status||s[58]!==w.submodule||s[59]!==w.truncatedReason||s[60]!==d||s[61]!==u||s[62]!==m||s[63]!==f||s[64]!==C||s[65]!==g||s[66]!==x||s[67]!==I?(a=(0,o.jsx)(aO,{changeType:w.status,currentUser:l,diffLines:w.diffLines,diffManuallyExpanded:d,diffSize:w.diffSize,headBranchName:u,headRepoName:m,headRepoOwner:f,helpUrl:w.helpUrl,isBinary:w.isBinary,isSelected:C,isSubmodule:w.isSubmodule,isTooBig:w.isTooBig,linesAdded:w.linesAdded,linesChanged:w.linesChanged,linesDeleted:w.linesDeleted,newCommitOid:w.newCommitOid,newTreeEntry:w.newTreeEntry,objectId:w.objectId,oldCommitOid:w.oldCommitOid,oldTreeEntry:w.oldTreeEntry,path:w.path,pathDigest:w.pathDigest,pullRequestGlobalRelayId:g,repository:x,reviewed:I,richDiff:w.richDiff,status:w.status,submodule:w.submodule,truncatedReason:w.truncatedReason}),s[39]=l,s[40]=w.diffLines,s[41]=w.diffSize,s[42]=w.helpUrl,s[43]=w.isBinary,s[44]=w.isSubmodule,s[45]=w.isTooBig,s[46]=w.linesAdded,s[47]=w.linesChanged,s[48]=w.linesDeleted,s[49]=w.newCommitOid,s[50]=w.newTreeEntry,s[51]=w.objectId,s[52]=w.oldCommitOid,s[53]=w.oldTreeEntry,s[54]=w.path,s[55]=w.pathDigest,s[56]=w.richDiff,s[57]=w.status,s[58]=w.submodule,s[59]=w.truncatedReason,s[60]=d,s[61]=u,s[62]=m,s[63]=f,s[64]=C,s[65]=g,s[66]=x,s[67]=I,s[68]=a):a=s[68],s[69]!==i||s[70]!==a?(r=(0,o.jsx)(Y.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,_.Py)(s.pathDigest),m=(0,_.jT)(s.path),f=(0,_.Fm)(s.path),h=(0,_.j5)();c&&c();let p=(0,j.useRef)(!1);if((0,j.useEffect)(()=>{if(p.current)return;let e=B.fV.hash??””,t=(0,ia.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=B.cg?.location.hash.substring(1)??””;if(!(0,ia.yI)(e)||”RENDER”===s.renderMode){let e=B.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)(aG,{progressiveDiffEntry:s,approximateLineCount:t}):”LAZY_AUTO_LOAD”===s.renderMode?e=(0,o.jsx)(aM,{progressiveDiffEntry:s,approximateLineCount:t}):”EAGER_AUTO_LOAD”===s.renderMode&&(e=(0,o.jsx)(aB,{progressiveDiffEntry:s,approximateLineCount:t})),(0,o.jsxs)(“div”,{role:”region”,id:`diff-${s.pathDigest}`,className:(0,y.$)(aF.A.diffTargetable,aF.A.diff),”data-targeted”:u,children:[(0,o.jsx)(“div”,{className:aF.A.diffHeaderWrapper,children:(0,o.jsx)(aU.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:aH.l,onToggleFileCollapsed:aH.l,onToggleDiffDisplay:aH.l,isInSingleFileMode:h})}),e]},`${s.pathDigest}_${s.path}`)}return m?(0,o.jsx)(Y.t,{fallback:(0,o.jsx)(aV,{…m}),children:(0,o.jsx)(aO,{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)(aV,{linesAdded:0,linesChanged:0,linesDeleted:0,path:s.path,pathDigest:s.pathDigest,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”})}(e)}try{aq.displayName||(aq.displayName=”ProgressivePullRequestDiffEntry”)}catch{}try{aK.displayName||(aK.displayName=”ProgressivePullRequestDiffEntryUnmemoized”)}catch{}let aW=(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)(tL.E,{border:!1,spacious:!0,children:[(0,o.jsx)(tL.E.Heading,{children:”No changes to show”}),(0,o.jsx)(tL.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)(tL.E,{border:!1,spacious:!0,children:[(0,o.jsx)(tL.E.Heading,{children:”No changes to show”}),(0,o.jsx)(tL.E.Description,{children:”This commit does not include any file changes”})]})})};try{aW.displayName||(aW.displayName=”EmptyPullRequestBlankSlate”)}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,j.useRef)(null),f=(0,j.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,y.$)(aX,aY),ref:m}),d[2]=t):t=d[2],d[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,y.$)(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,y.$)(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,j.useRef)(null),n=(0,j.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,y.$)(aX,aY),ref:t}),(0,o.jsx)(“img”,{src:a2,alt:”Two octocats”,className:(0,y.$)(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,y.$)(aX,a0)})]}),(0,o.jsx)(“span”,{className:”fgColor-muted”,children:”You made it to the end!”})]})},a6=(0,j.memo)(a5);try{a5.displayName||(a5.displayName=”PullRequestDiffsAnimationComponent”)}catch{}try{a6.displayName||(a6.displayName=”PullRequestDiffsAnimation”)}catch{}let a7=(0,d.Z6)()?function(){let e,t,n,i,a=(0,c.c)(4),r=(0,j.useRef)(!0);a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=new Map,a[0]=e):e=a[0];let s=(0,j.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=B.cg?.location.hash.substring(1)??””;if((0,ia.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=B.cg?.scrollY??0,t=a.getBoundingClientRect().top+e-57-60;B.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,j.useRef)(!0),t=(0,j.useRef)(new Map),n=(0,j.useCallback)(()=>t.current,[]);return{onScrollToAndFocusEntry:(0,j.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=B.cg?.location.hash.substring(1)??””;if((0,ia.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=B.cg?.scrollY??0,t=r.getBoundingClientRect().top+e-57-60;B.cg?.scrollTo({top:t,left:0})}s&&s.focus(),e.current=!1},[n]),getTargetableEntriesMap:n}},a8=(0,j.memo)(re),a9=(0,d.Z6)();function re(e){return a9?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:y}=e,[C]=(0,j.useState)(!1),w=(0,j.useRef)(null),N=(0,_.$W)(m),S=(0,_.JA)(),{startQueue:L}=(0,_.pV)();d[0]!==L?(t=()=>{L()},n=[L],d[0]=L,d[1]=t,d[2]=n):(t=d[1],n=d[2]),(0,j.useEffect)(t,n);let{onScrollToAndFocusEntry:D,getTargetableEntriesMap:I}=a7(),k=(0,_.qg)(),R=N.length>=15;if(0===k){let e;return d[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(aW,{}),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)(am,{}),d[4]=e):e=d[4],e}if(d[5]!==S||d[6]!==g||d[7]!==y?(i=y&&S?(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)(T.A,{href:””,onClick:e=>{e.preventDefault(),g({activeChangeGroupId:void 0})},children:”All files”})}),” “,(0,o.jsx)(“span”,{className:”fgColor-muted text-normal”,children:”/”}),” “,S.name]}),S.description?.trim()?(0,o.jsx)(“p”,{children:S.description}):null]}):null,d[5]=S,d[6]=g,d[7]=y,d[8]=i):i=d[8],d[9]!==u||d[10]!==N||d[11]!==C||d[12]!==I||d[13]!==f||d[14]!==h||d[15]!==p||d[16]!==D||d[17]!==x||d[18]!==b){let e;d[20]!==u||d[21]!==C||d[22]!==I||d[23]!==f||d[24]!==h||d[25]!==p||d[26]!==D||d[27]!==x||d[28]!==b?(e=e=>(0,o.jsx)(“div”,{ref:t=>{let n=I();t?n.set(e.pathDigest,t):n.delete(e.pathDigest)},children:(0,o.jsx)(aq,{currentUser:u,diffManuallyExpanded:C,headBranchName:f,headRepoName:h,headRepoOwner:p,pullRequestGlobalRelayId:x,onScrollToAndFocusEntry:D,progressiveDiffEntry:e,repository:b})},e.pathDigest),d[20]=u,d[21]=C,d[22]=I,d[23]=f,d[24]=h,d[25]=p,d[26]=D,d[27]=x,d[28]=b,d[29]=e):e=d[29],a=N.map(e),d[9]=u,d[10]=N,d[11]=C,d[12]=I,d[13]=f,d[14]=h,d[15]=p,d[16]=D,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)(au.nq,{}),d[32]=s):s=d[32],d[33]!==i||d[34]!==a||d[35]!==r?(l=(0,o.jsxs)(“div”,{ref:w,”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,j.useState)(!1),m=(0,j.useRef)(null),f=(0,_.$W)(t),h=(0,_.JA)(),{startQueue:p}=(0,_.pV)();(0,j.useEffect)(()=>{p()},[p]);let{onScrollToAndFocusEntry:g,getTargetableEntriesMap:x}=a7(),b=(0,_.qg)(),y=f.length;return 0===b?(0,o.jsx)(aW,{}):0===t.length?(0,o.jsx)(am,{}):(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)(T.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)(aq,{currentUser:e,diffManuallyExpanded:c,headBranchName:n,headRepoName:i,headRepoOwner:a,pullRequestGlobalRelayId:s,onScrollToAndFocusEntry:g,progressiveDiffEntry:t,repository:l})},t.pathDigest)),y>=15&&(0,o.jsx)(a6,{}),(0,o.jsx)(au.nq,{})]})}(e)}try{a8.displayName||(a8.displayName=”PullRequestDiffsList”)}catch{}try{re.displayName||(re.displayName=”PullRequestDiffsListUnmemoized”)}catch{}var rt=n(38943),rn=n(51220);let ri=”PullRequestVirtualizedDiffRow-module__virtualizedDiffRow–mhuB6″,ra=(0,j.memo)((0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(56),{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,y=(0,_.y)(),j=(0,_.Py)(l?.pathDigest);if(!s)return null;let C=`translateY(${r.start-u}px)`;a[0]!==C?(t={transform:C},a[0]=C,a[1]=t):t=a[1];let w=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]!==y||a[6]!==i){let t=y(i);e=aT({diffSummary:d,commentPreference:f.commentsPreference,lineSpacingPreference:f.lineSpacing,isCollapsed:t}),a[2]=f.commentsPreference,a[3]=f.lineSpacing,a[4]=d,a[5]=y,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)(a$,{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]!==l||a[14]!==m||a[15]!==t||a[16]!==r.index||a[17]!==w||a[18]!==s.pathDigest?(n=(0,o.jsx)(“div”,{style:w,className:ri,ref:m,”data-index”:r.index,”data-path-digest”:s.pathDigest,”data-estimated-height”:l,children:t}),a[13]=l,a[14]=m,a[15]=t,a[16]=r.index,a[17]=w,a[18]=s.pathDigest,a[19]=n):n=a[19],n}if(!l)return null;let N=-(r.start-u),S=l.reviewed??!1;return a[20]!==f||a[21]!==l.diffLines||a[22]!==l.diffSize||a[23]!==l.helpUrl||a[24]!==l.isBinary||a[25]!==l.isSubmodule||a[26]!==l.isTooBig||a[27]!==l.linesAdded||a[28]!==l.linesChanged||a[29]!==l.linesDeleted||a[30]!==l.newCommitOid||a[31]!==l.newTreeEntry||a[32]!==l.objectId||a[33]!==l.oldCommitOid||a[34]!==l.oldTreeEntry||a[35]!==l.path||a[36]!==l.pathDigest||a[37]!==l.richDiff||a[38]!==l.status||a[39]!==l.submodule||a[40]!==l.truncatedReason||a[41]!==h||a[42]!==p||a[43]!==g||a[44]!==j||a[45]!==x||a[46]!==b||a[47]!==N||a[48]!==S?(n=(0,o.jsx)(aO,{changeType:l.status,currentUser:f,diffLines:l.diffLines,diffManuallyExpanded:!1,diffSize:l.diffSize,headerStickyOffset:N,headBranchName:h,headRepoName:p,headRepoOwner:g,helpUrl:l.helpUrl,isBinary:l.isBinary,isSelected:j,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:S,richDiff:l.richDiff,status:l.status,submodule:l.submodule,truncatedReason:l.truncatedReason}),a[20]=f,a[21]=l.diffLines,a[22]=l.diffSize,a[23]=l.helpUrl,a[24]=l.isBinary,a[25]=l.isSubmodule,a[26]=l.isTooBig,a[27]=l.linesAdded,a[28]=l.linesChanged,a[29]=l.linesDeleted,a[30]=l.newCommitOid,a[31]=l.newTreeEntry,a[32]=l.objectId,a[33]=l.oldCommitOid,a[34]=l.oldTreeEntry,a[35]=l.path,a[36]=l.pathDigest,a[37]=l.richDiff,a[38]=l.status,a[39]=l.submodule,a[40]=l.truncatedReason,a[41]=h,a[42]=p,a[43]=g,a[44]=j,a[45]=x,a[46]=b,a[47]=N,a[48]=S,a[49]=n):n=a[49],a[50]!==l.pathDigest||a[51]!==m||a[52]!==n||a[53]!==r.index||a[54]!==w?(i=(0,o.jsx)(“div”,{style:w,className:ri,ref:m,”data-index”:r.index,”data-path-digest”:l.pathDigest,children:n}),a[50]=l.pathDigest,a[51]=m,a[52]=n,a[53]=r.index,a[54]=w,a[55]=i):i=a[55],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,_.y)(),h=(0,_.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=aT({diffSummary:i,commentPreference:s.commentsPreference,lineSpacingPreference:s.lineSpacing,isCollapsed:n});return(0,o.jsx)(“div”,{style:p,className:ri,ref:r,”data-index”:e.index,”data-path-digest”:t.pathDigest,”data-estimated-height”:a,children:(0,o.jsx)(a$,{ariaLabel:`Loading ${t.path}`,testId:`lazy-load-${t.path}`,id:`diff-${t.pathDigest}`,approximateDiffHeight:a})})}return n?(0,o.jsx)(“div”,{style:p,className:ri,ref:r,”data-index”:e.index,”data-path-digest”:n.pathDigest,children:(0,o.jsx)(aO,{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{ra.displayName||(ra.displayName=”MemoizedVirtualizedDiffRow”)}catch{}var rr=n(56092);function rs({currentUser:e,filteredDiffSummaries:t,headBranchName:n,headRepoName:i,headRepoOwner:a,onSetFilterState:r,pullRequestGlobalRelayId:s,repository:l,showPullRequestGroups:d}){let c=(0,j.useRef)(null),[u,m]=(0,j.useState)(0),p=(0,_.$W)(t),g=(0,_.JA)(),{startQueue:x,loadMore:b}=(0,_.pV)(),y=(0,_.qg)(),C=(0,_.l0)(),w=(0,_.HZ)(),N=p.length,S=(0,_.y)(),L=(0,_.m9)();(0,j.useEffect)(()=>{x()},[x]);let D=(0,j.useCallback)(t=>{let n=p[t];if(!n)return 0;let i=C[n.path??””],a=S(n.path??””);return aT({diffSummary:i,commentPreference:e?.commentsPreference??f.sI.Visible,lineSpacingPreference:e?.lineSpacing??f.Ud.Relaxed,isCollapsed:a})},[p,C,S,e?.commentsPreference,e?.lineSpacing]),I=(0,j.useCallback)(e=>p[e]?.pathDigest??e,[p]);(0,j.useEffect)(()=>{x()},[x]),(0,j.useEffect)(()=>{c.current&&m(c.current.offsetTop)},[]);let k=(0,h.G7)(“pull_request_files_debug_virtualization”),[R]=(0,nI.ok)(),A=R.get(“_overscan”),E=A?parseInt(A,10):null,O=k&&E&&!isNaN(E)&&E>0?E:5,P=(0,j.useMemo)(()=>{let e=new Map;for(let[t,n]of p.entries())e.set(n.pathDigest,t);return e},[p]),F=(0,j.useCallback)(e=>{let t=document.querySelector(“[data-path-digest]:focus-within”)?.getAttribute(“data-path-digest”),n=t?P.get(t)??-1:-1,i=L?P.get(L)??-1:-1;return n<0&&i<0?(0,rt.vp)(e):Array.from(new Set([...(0,rt.vp)(e),...[n,i].filter(e=>e>-1)])).sort((e,t)=>e-t)},[P,L]),$=(0,rn.XW)({count:p.length,estimateSize:D,getItemKey:I,overscan:O,scrollMargin:u,gap:16,rangeExtractor:F,debug:k}),M=$.getVirtualItems(),B=(0,j.useMemo)(()=>{for(let e of M){let t=p[e.index];if(t?.loadingStatus===”NotLoaded”)return e.index}return -1},[M,p]),V=(0,j.useRef)(null);return((0,j.useEffect)(()=>{if(!L){V.current=null;return}if(V.current===L)return;let e=P.get(L);if(void 0===e)return;let t=p[e];t?.loadingStatus===”NotLoaded”?b(t):((0,rr.H)(()=>{$.scrollToIndex(e)}),V.current=L)},[L,P,p,b,$]),(0,j.useEffect)(()=>{if(-1===B)return;let e=p[B];e&&b(e)},[B,p,b]),0===y)?(0,o.jsx)(aW,{}):0===p.length?(0,o.jsx)(am,{}):(0,o.jsxs)(“div”,{ref:c,”data-hpc”:!0,”data-testid”:”virtualized-diffs-list”,className:”d-flex flex-column gap-3″,children:[d&&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)(T.A,{href:””,onClick:e=>{e.preventDefault(),r({activeChangeGroupId:void 0})},children:”All files”})}),” “,(0,o.jsx)(“span”,{className:”fgColor-muted text-normal”,children:”/”}),” “,g.name]}),g.description?.trim()?(0,o.jsx)(“p”,{children:g.description}):null]}):null,(0,o.jsx)(“div”,{className:”PullRequestVirtualizedDiffsList-module__virtualized-diff-row–khMB_”,style:{height:`${$.getTotalSize()}px`},children:M.map(t=>{let r=p[t.index];return(0,o.jsx)(ra,{virtualRow:t,virtualizedDiffEntry:r,diffEntry:w[r?.path??””],diffSummary:C[r?.path??””],scrollMargin:$.options.scrollMargin,measureElement:$.measureElement,currentUser:e,headBranchName:n,headRepoName:i,headRepoOwner:a,pullRequestGlobalRelayId:s,repository:l},t.key)})}),N>=15&&(0,o.jsx)(a6,{}),(0,o.jsx)(au.nq,{})]})}try{rs.displayName||(rs.displayName=”PullRequestVirtualizedDiffsList”)}catch{}var rl=n(48926),ro=n(43147),rd=n(13071),rc=n(3536),ru=n(66108);let rm=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,u,m,f,h,g,x,b,y,j,C,w,N,S,D,I,_,k=(0,c.c)(79),{commit:R,pullRequest:E,commits:O,repository:P}=e;k[0]!==O?(t=void 0===O?[]:O,k[0]=O,k[1]=t):t=k[1];let F=t,{helpUrl:$}=(0,aI.X)();e:{let e,t,i;if(0===F.length){let e;k[2]===Symbol.for(“react.memo_cache_sentinel”)?(e={prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1},k[2]=e):e=k[2],n=e;break e}let a=R.oid,r=F.findIndex(e=>e.oid===a);if(-1===r){let e;k[3]===Symbol.for(“react.memo_cache_sentinel”)?(e={prevCommitUrl:null,nextCommitUrl:null,canNavigate:!1},k[3]=e):e=k[3],n=e;break e}let s=r>0?F[r-1]:null,l=rM&&U(M),”pull-request-files-changed:go-to-next-commit”:()=>B&&U(B)}}),k[70]=V,k[71]=U,k[72]=B,k[73]=M,k[74]=I):I=k[74],k[75]!==f||k[76]!==D||k[77]!==I?(_=(0,o.jsxs)(“div”,{className:”d-flex flex-column border rounded-2 overflow-hidden mb-3″,children:[f,D,I]}),k[75]=f,k[76]=D,k[77]=I,k[78]=_):_=k[78],_}:function({commit:e,pullRequest:t,commits:n=[],repository:i}){let{helpUrl:a}=(0,aI.X)(),{prevCommitUrl:r,nextCommitUrl:s,canNavigate:l}=(0,j.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{rm.displayName||(rm.displayName=”PullRequestCommitHeader”)}catch{}let rf=(0,d.Z6)()?function(){let e,t,n=(0,c.c)(3),{handleHashUpdate:i}=(0,_.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,j.useEffect)(e,t)}:function(){let{handleHashUpdate:e}=(0,_.Lh)();(0,j.useEffect)(()=>{let t=()=>{e()};return e(),window.addEventListener(“hashchange”,t),()=>{window.removeEventListener(“hashchange”,t)}},[e])};var rh=n(21132);let rp=(0,j.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:C,onScrollToAndFocusEntry:w}=e,N=(0,_.m9)()||u,S=(0,_.mY)();if(d[0]!==N||d[1]!==S){let e;d[3]!==N?(e=e=>e.pathDigest===N,d[3]=N,d[4]=e):e=d[4],t=S.find(e),d[0]=N,d[1]=S,d[2]=t}else t=d[2];let L=t,D=(0,_.Fm)(L?.path||””),I=L?.path||””,k=(0,_.jT)(I),R=(0,_.j5)(),A=(0,j.useRef)(!1);d[5]!==w||d[6]!==L?.loadingStatus||d[7]!==N?(n=()=>{A.current||L?.loadingStatus===rh.s.Loaded&&(w(N,{focusPathName:!0}),A.current=!0)},d[5]=w,d[6]=L?.loadingStatus,d[7]=N,d[8]=n):n=d[8];let E=L?.loadingStatus;if(d[9]!==w||d[10]!==N||d[11]!==E?(i=[w,E,N],d[9]=w,d[10]=N,d[11]=E,d[12]=i):i=d[12],(0,j.useEffect)(n,i),!h.some(e=>e.path===I)){let e;return d[13]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,o.jsx)(am,{}),d[13]=e):e=d[13],e}if(L&&L.loadingStatus!==rh.s.Loaded){let e,t,n,i,a=`Loading ${I}`,r=`eager-load-${I}`,s=`diff-${I}`;d[14]!==a||d[15]!==r||d[16]!==s?(e=(0,o.jsx)(a$,{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-${I}`;d[18]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,y.$)(aF.A.diffTargetable,aF.A.diff),d[18]=t):t=d[18];let u=`${N}_${I}`,m=`#diff-${N}`,f=D?.linesAdded??0,h=D?.linesChanged??0,p=D?.linesDeleted??0;return d[19]!==I||d[20]!==R||d[21]!==m||d[22]!==f||d[23]!==h||d[24]!==p?(n=(0,o.jsx)(“div”,{className:aF.A.diffHeaderWrapper,children:(0,o.jsx)(aU.B,{areLinesExpanded:!1,canExpandOrCollapseLines:!1,fileLinkHref:m,canToggleRichDiff:!1,linesAdded:f,linesChanged:h,linesDeleted:p,newPath:I,patchStatus:””,path:I,onToggleExpandAllLines:aH.l,onToggleFileCollapsed:aH.l,onToggleDiffDisplay:aH.l,isInSingleFileMode:R})}),d[19]=I,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(!k){let e;return d[31]!==I||d[32]!==u?(e=(0,o.jsx)(aV,{linesAdded:0,linesChanged:0,linesDeleted:0,path:I,pathDigest:u,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”}),d[31]=I,d[32]=u,d[33]=e):e=d[33],e}d[34]!==k?(a=(0,o.jsx)(aV,{…k}),d[34]=k,d[35]=a):a=d[35];let T=k.reviewed??!1;return d[36]!==k.diffLines||d[37]!==k.diffSize||d[38]!==k.helpUrl||d[39]!==k.isBinary||d[40]!==k.isTooBig||d[41]!==k.linesAdded||d[42]!==k.linesChanged||d[43]!==k.linesDeleted||d[44]!==k.newCommitOid||d[45]!==k.newTreeEntry||d[46]!==k.objectId||d[47]!==k.oldCommitOid||d[48]!==k.oldTreeEntry||d[49]!==k.path||d[50]!==k.pathDigest||d[51]!==k.richDiff||d[52]!==k.status||d[53]!==k.submodule||d[54]!==k.truncatedReason||d[55]!==m||d[56]!==f||d[57]!==p||d[58]!==g||d[59]!==x||d[60]!==b||d[61]!==C||d[62]!==T?(r=(0,o.jsx)(aO,{changeType:k.status,currentUser:m,diffLines:k.diffLines,diffManuallyExpanded:f,diffSize:k.diffSize,headBranchName:p,headRepoName:g,headRepoOwner:x,helpUrl:k.helpUrl,isBinary:k.isBinary,isSelected:!1,isTooBig:k.isTooBig,linesAdded:k.linesAdded,linesChanged:k.linesChanged,linesDeleted:k.linesDeleted,newCommitOid:k.newCommitOid,newTreeEntry:k.newTreeEntry,objectId:k.objectId,oldCommitOid:k.oldCommitOid,oldTreeEntry:k.oldTreeEntry,path:k.path,pathDigest:k.pathDigest,pullRequestGlobalRelayId:b,repository:C,reviewed:T,richDiff:k.richDiff,status:k.status,submodule:k.submodule,truncatedReason:k.truncatedReason}),d[36]=k.diffLines,d[37]=k.diffSize,d[38]=k.helpUrl,d[39]=k.isBinary,d[40]=k.isTooBig,d[41]=k.linesAdded,d[42]=k.linesChanged,d[43]=k.linesDeleted,d[44]=k.newCommitOid,d[45]=k.newTreeEntry,d[46]=k.objectId,d[47]=k.oldCommitOid,d[48]=k.oldTreeEntry,d[49]=k.path,d[50]=k.pathDigest,d[51]=k.richDiff,d[52]=k.status,d[53]=k.submodule,d[54]=k.truncatedReason,d[55]=m,d[56]=f,d[57]=p,d[58]=g,d[59]=x,d[60]=b,d[61]=C,d[62]=T,d[63]=r):r=d[63],d[64]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,o.jsx)(au.nq,{}),d[64]=s):s=d[64],d[65]!==a||d[66]!==r?(l=(0,o.jsxs)(Y.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,_.m9)()||e,m=(0,_.mY)().find(e=>e.pathDigest===u),f=(0,_.Fm)(m?.path||””),h=m?.path||””,p=(0,_.jT)(h),g=(0,_.j5)(),x=(0,j.useRef)(!1);if((0,j.useEffect)(()=>{x.current||m?.loadingStatus===rh.s.Loaded&&(c(u,{focusPathName:!0}),x.current=!0)},[c,m?.loadingStatus,u]),!i.some(e=>e.path===h))return(0,o.jsx)(am,{});if(m&&m.loadingStatus!==rh.s.Loaded){let e=(0,o.jsx)(a$,{ariaLabel:`Loading ${h}`,testId:`eager-load-${h}`,approximateLineCount:5,id:`diff-${h}`});return(0,o.jsxs)(“div”,{role:”region”,id:`diff-${h}`,className:(0,y.$)(aF.A.diffTargetable,aF.A.diff),”data-targeted”:!1,”data-hpc”:!0,children:[(0,o.jsx)(“div”,{className:aF.A.diffHeaderWrapper,children:(0,o.jsx)(aU.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:aH.l,onToggleFileCollapsed:aH.l,onToggleDiffDisplay:aH.l,isInSingleFileMode:g})}),e]},`${u}_${h}`)}return p?(0,o.jsxs)(Y.t,{fallback:(0,o.jsx)(aV,{…p}),children:[(0,o.jsx)(aO,{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)(au.nq,{})]}):(0,o.jsx)(aV,{linesAdded:0,linesChanged:0,linesDeleted:0,path:h,pathDigest:e,newTreeEntry:void 0,oldTreeEntry:void 0,status:”MODIFIED”})});try{rp.displayName||(rp.displayName=”SingleFileModePullRequestDiffEntry”)}catch{}let rg=(0,j.memo)(function({currentUser:e,filteredDiffSummaries:t,headBranchName:n,headRepoName:i,headRepoOwner:a,pullRequestGlobalRelayId:r,repository:s}){let l=(0,_.HZ)(),d=(0,j.useMemo)(()=>Object.values(l??{}).filter(e=>null!==e),[l])[0],c=(0,_.m9)(),{onScrollToAndFocusEntry:u,getTargetableEntriesMap:m}=a7(),f=(0,_.qg)(),h=(0,_.uh)()[0],p=(0,_.zK)(),g=(0,_.mF)(),{navigateToSelectedComment:x,navigateToSelectedAnnotation:b}=(0,_.Lh)(),y=(0,j.useRef)(!0),C=(0,_.mY)().find(e=>e.pathDigest===c),{loadMore:w}=(0,_.pV)(),N=(0,j.useCallback)(()=>{p?x(p):g&&!isNaN(Number(g))?b(Number(g)):c&&C?w(C):!c&&h?.pathDigest&&(0,D.Zu)(`diff-${h.pathDigest}`)},[h?.pathDigest,w,b,x,g,p,c,C]);if((0,j.useEffect)(()=>{y.current&&(N(),y.current=!1)},[]),0===f)return(0,o.jsx)(aW,{});if(0===t.length)return(0,o.jsx)(am,{});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)(rp,{diffEntryPathDigest:S,currentUser:e,diffManuallyExpanded:!1,filteredDiffSummaries:t,headBranchName:n,headRepoName:i,headRepoOwner:a,pullRequestGlobalRelayId:r,repository:s,onScrollToAndFocusEntry:u})}):null});try{rg.displayName||(rg.displayName=”SingleFileModeDiffEntryNavigator”)}catch{}let rx=(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:y,useBasicToolbar:j}=e,C=p??!1,w=g??!1,N=x??!1,S=b??!1,L=y??!1,D=j??!1,I=h??!0,_=l??!1,k=m??!1,R=f??!1;a[0]!==C||a[1]!==R||a[2]!==w||a[3]!==N||a[4]!==S||a[5]!==L||a[6]!==D||a[7]!==I||a[8]!==_||a[9]!==k?(t={useChangeGroups:C,useInlineComments:w,useEditOptions:N,useFileTree:S,useAdvancedToolbar:L,useBasicToolbar:D,userCanComment:I,forceUnifiedView:_,treeCollapsedByDefault:k,treeEnableInlineCompactMode:R},a[0]=C,a[1]=R,a[2]=w,a[3]=N,a[4]=S,a[5]=L,a[6]=D,a[7]=I,a[8]=_,a[9]=k,a[10]=t):t=a[10];let A=t,E=u?u.pullRequest.comparison.headOid:d,T=u?u.pullRequest.comparison.baseOid:s;if(!E)throw Error(“DiffComparisonViewer: headSha is required if initialData is not provided”);let O=!u;a[11]!==r||a[12]!==T||a[13]!==E||a[14]!==O?(n={basePath:r,headSha:E,baseSha:T,shouldFetch:O},a[11]=r,a[12]=T,a[13]=E,a[14]=O,a[15]=n):n=a[15];let{data:P,isLoading:F}=i5(n),$=u??P;return a[16]!==A||a[17]!==$||a[18]!==F?(i=(0,o.jsx)(o.Fragment,{children:$&&!F?(0,o.jsx)(i3.Kg,{basePageDataUrl:$.pullRequest.pathName,children:(0,o.jsx)(i1.v,{initData:$,children:(0,o.jsx)(rb,{…$,configOpts:A})})}):(0,o.jsxs)(“div”,{className:”width-full”,children:[(0,o.jsx)(“div”,{className:iY,children:(0,o.jsx)(“div”,{className:i0,children:(0,o.jsx)(ao.O,{width:”lg”,height:”lg”,variant:”rounded”})})}),(0,o.jsxs)(“div”,{className:”d-flex flex-column gap-3 p-3″,children:[(0,o.jsx)(ad,{lines:4}),(0,o.jsx)(ad,{lines:8}),(0,o.jsx)(ad,{lines:5})]})]})}),a[16]=A,a[17]=$,a[18]=F,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,j.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:y}=i5({basePath:e,headSha:g,baseSha:x,shouldFetch:!a}),C=a??b;return(0,o.jsx)(o.Fragment,{children:C&&!y?(0,o.jsx)(i3.Kg,{basePageDataUrl:C.pullRequest.pathName,children:(0,o.jsx)(i1.v,{initData:C,children:(0,o.jsx)(rb,{…C,configOpts:p})})}):(0,o.jsxs)(“div”,{className:”width-full”,children:[(0,o.jsx)(“div”,{className:iY,children:(0,o.jsx)(“div”,{className:i0,children:(0,o.jsx)(ao.O,{width:”lg”,height:”lg”,variant:”rounded”})})}),(0,o.jsxs)(“div”,{className:”d-flex flex-column gap-3 p-3″,children:[(0,o.jsx)(ad,{lines:4}),(0,o.jsx)(ad,{lines:8}),(0,o.jsx)(ad,{lines:5})]})]})})},rb=(0,d.Z6)()?function(e){let t,n,i,a,r,s,l,d,C,w,N,S,L,D,R,A,E,T,O,P,F,$,M,B,V,U,H,G=(0,c.c)(123),{codeowners:q,commit:z,commits:K,configOpts:W,diffSummaries:Z,fileFilter:Q,pullRequest:X,repository:J,markers:Y,pageLimits:ee,urls:et,user:en,isSingleFileMode:ei,virtualizeDiffEntries:ea}=e;iF(Y,Z),(0,g.L)(!0),rf();let er=rC(en);G[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,h.G7)(“pull_request_files_virtualization_without_min_threshold”),G[0]=t):t=G[0];let es=t;G[1]===Symbol.for(“react.memo_cache_sentinel”)?(n={onSuccess:rj,onError:ry},G[1]=n):n=G[1];let{mutate:el}=(0,u.U)(n),{data:eo}=(0,m.ID)(er);G[2]!==eo?.commentsPreference||G[3]!==el?(i=()=>{el({commentsPreference:eo?.commentsPreference===f.sI.Visible?f.sI.Collapsed:f.sI.Visible})},G[2]=eo?.commentsPreference,G[3]=el,G[4]=i):i=G[4],eo?.commentsPreference;let ed=i;eo?.commentsPreference,eo?.lineSpacing,eo?.splitPreference;let ec=en.currentUserAvatarUrl||””,eu=en.currentUserLogin||””,em=W.forceUnifiedView?”unified”:eo?.splitPreference??”unified”,ef=W.useInlineComments??!1,eh=W.useEditOptions??!1,ep=eo?.lineSpacing??”relaxed”,eg=W.userCanComment&&en.canComment,ex=eo?.commentsPreference??”visible”;G[5]!==eg||G[6]!==ex||G[7]!==ec||G[8]!==eu||G[9]!==em||G[10]!==ef||G[11]!==eh||G[12]!==ep||G[13]!==en.canApplySuggestion||G[14]!==en.hasCopilotAccess||G[15]!==en.tabSize?(a={avatarURL:ec,login:eu,tabSize:en.tabSize,splitPreference:em,shouldDisplayComments:ef,shouldDisplayEditOptions:eh,lineSpacing:ep,canComment:eg,canApplySuggestion:en.canApplySuggestion,commentsPreference:ex,hasCopilotAccess:en.hasCopilotAccess},G[5]=eg,G[6]=ex,G[7]=ec,G[8]=eu,G[9]=em,G[10]=ef,G[11]=eh,G[12]=ep,G[13]=en.canApplySuggestion,G[14]=en.hasCopilotAccess,G[15]=en.tabSize,G[16]=a):a=G[16];let eb=a,{updateCommentsPreference:ev}=(0,_.CQ)();G[17]!==eo?.commentsPreference||G[18]!==ev?(r=()=>{ev(eo?.commentsPreference??f.sI.Visible)},G[17]=eo?.commentsPreference,G[18]=ev,G[19]=r):r=G[19];let ey=eo?.commentsPreference;G[20]!==ey||G[21]!==ev?(s=[ey,ev],G[20]=ey,G[21]=ev,G[22]=s):s=G[22],(0,j.useEffect)(r,s);let{splitPagePaneHidden:ej,treeViewState:eC,treeToggleElement:ew,collapseMobileTree:eN,expandTree:eS}=an(eH,en.isFileTreeExpanded&&!W.treeCollapsedByDefault,W.treeEnableInlineCompactMode,eb);G[23]!==q||G[24]!==X.pathName?(l={basePath:X.pathName},q&&(l.initialData=q),G[23]=q,G[24]=X.pathName,G[25]=l):l=G[25];let{data:eL}=(0,I.dG)(l),{setCodeowners:eD}=(0,_.wh)();G[26]!==eL||G[27]!==eD?(d=()=>{eD(eL)},C=[eL,eD],G[26]=eL,G[27]=eD,G[28]=d,G[29]=C):(d=G[28],C=G[29]),(0,j.useEffect)(d,C);let eI=(0,_.qg)();G[30]===Symbol.for(“react.memo_cache_sentinel”)?(w=[],G[30]=w):w=G[30];let[e_]=(0,i9.I)(rv,!0,w),ek=es||ea,eR=(0,_.I8)(),{updateDiffFilter:eA}=(0,_.or)();G[31]!==Q.initialState||G[32]!==eA?(N=()=>{eA({…Q.initialState,unselectedFileExtensions:new Set(Q.initialState.unselectedFileExtensions)})},S=[eA,Q.initialState],G[31]=Q.initialState,G[32]=eA,G[33]=N,G[34]=S):(N=G[33],S=G[34]),(0,j.useEffect)(N,S);let eE=(0,_.mU)();G[35]!==eA?(L=e=>{eA(e,!0)},G[35]=eA,G[36]=L):L=G[36];let eT=L;G[37]!==eN||G[38]!==eC.compactMode?(D=()=>{“none”!==eC.compactMode&&eN()},G[37]=eN,G[38]=eC.compactMode,G[39]=D):D=G[39];let eO=D,eP=(0,j.useRef)(null),eF=”expanded”!==eC.wideMode?”small”:”medium”;G[40]!==eb.login||G[41]!==eR||G[42]!==Q.menuOptions||G[43]!==eT||G[44]!==X.pathName||G[45]!==eF?(R=(0,o.jsx)(k,{ref:eP,basePath:X.pathName,fileFilterMenuOptions:Q.menuOptions,fileFilterState:eR,setFileFilterState:eT,viewerLogin:eb.login,filterSize:eF}),G[40]=eb.login,G[41]=eR,G[42]=Q.menuOptions,G[43]=eT,G[44]=X.pathName,G[45]=eF,G[46]=R):R=G[46];let e$=R,eM=(0,_.gt)(),eB=Z.length>0,eU=W.useChangeGroups&&eM&&eB;G[47]!==eU?(A={changeGroupsEnabled:eU},G[47]=eU,G[48]=A):A=G[48],al(A);let{aliveChannel:eq,bannersData:ez}=(0,i2.o)();G[49]!==eS?(E=()=>{eS(),window.requestAnimationFrame(()=>{eP.current?.focus()})},G[49]=eS,G[50]=E):E=G[50];let eK=E;G[51]!==eK||G[52]!==ed?(T=(0,o.jsx)(p.ak,{commands:{“pull-request-files-changed:collapse-expand-comments”:ed,”pull-request-files-changed:focus-file-tree-filter”:eK}}),G[51]=eK,G[52]=ed,G[53]=T):T=G[53],G[54]!==e$||G[55]!==eq||G[56]!==eU||G[57]!==ez||G[58]!==eN||G[59]!==K||G[60]!==W.useAdvancedToolbar||G[61]!==W.useBasicToolbar||G[62]!==eI||G[63]!==eE||G[64]!==eO||G[65]!==eT||G[66]!==ee||G[67]!==X||G[68]!==J||G[69]!==ew||G[70]!==eC.compactMode||G[71]!==eC.wideMode||G[72]!==et||G[73]!==en?(O=W.useAdvancedToolbar||W.useBasicToolbar?(0,o.jsxs)(o.Fragment,{children:[W.useAdvancedToolbar&&(0,o.jsx)(iT,{changeGroupsPreferenceAvailable:eU,commits:K,currentUserLogin:en.currentUserLogin,fileFilter:e$,isFileTreeExpanded:”expanded”===eC.wideMode,lastReviewOid:en.lastReviewOid,pageLimits:ee,pullRequest:X,repository:J,shouldShowViewedFilesCount:en.shouldShowViewedFilesCount,totalFilesCount:eI,treeToggleElement:ew,bannersData:ez,urls:et,user:en,aliveChannel:eq}),W.useBasicToolbar&&(0,o.jsx)(i6,{fileFilter:e$,isFileTreeExpanded:”expanded”===eC.wideMode,shouldShowViewedFilesCount:en.shouldShowViewedFilesCount,totalFilesCount:eI,treeToggleElement:ew,userNotices:en.userNotices}),”overlay”===eC.compactMode&&(0,o.jsx)(x.l,{onClose:()=>eN(),position:{narrow:”fullscreen”,regular:”left”,wide:”left”},title:”Files”,className:”p-0″,children:(0,o.jsx)(eG,{allowPullRequestGroups:eU,fileFilter:e$,filteredDiffs:eE,onFileSelected:eO,onSetFilterState:eT})})]}):null,G[54]=e$,G[55]=eq,G[56]=eU,G[57]=ez,G[58]=eN,G[59]=K,G[60]=W.useAdvancedToolbar,G[61]=W.useBasicToolbar,G[62]=eI,G[63]=eE,G[64]=eO,G[65]=eT,G[66]=ee,G[67]=X,G[68]=J,G[69]=ew,G[70]=eC.compactMode,G[71]=eC.wideMode,G[72]=et,G[73]=en,G[74]=O):O=G[74],G[75]!==e$||G[76]!==eU||G[77]!==W.useBasicToolbar||G[78]!==W.useFileTree||G[79]!==eE||G[80]!==eO||G[81]!==eT||G[82]!==ej||G[83]!==eC.compactMode||G[84]!==eC.wideMode?(P=W.useFileTree?(0,o.jsx)(b.O7.Pane,{position:”start”,sticky:!0,offsetHeader:W.useBasicToolbar?”50px”:”60px”,”aria-label”:”File tree”,padding:”none”,className:(0,y.$)(iz,ej&&iV,”expanded”===eC.wideMode&&iK,”collapsed”===eC.wideMode&&iW,”none”===eC.compactMode&&iZ,”overlay”===eC.compactMode&&iQ,”inline”===eC.compactMode&&iX,iH),divider:{regular:”inline”===eC.compactMode?”none”:”line”,narrow:”none”},widthStorageKey:”diff-tree-pane-width”,resizable:”inline”!==eC.compactMode,children:(0,o.jsx)(eG,{allowPullRequestGroups:eU,className:(0,y.$)(eV,iU),fileFilter:e$,filteredDiffs:eE,onFileSelected:eO,onSetFilterState:eT})}):null,G[75]=e$,G[76]=eU,G[77]=W.useBasicToolbar,G[78]=W.useFileTree,G[79]=eE,G[80]=eO,G[81]=eT,G[82]=ej,G[83]=eC.compactMode,G[84]=eC.wideMode,G[85]=P):P=G[85];let eW=”inline”===eC.compactMode;G[86]!==eW?(F={narrow:!1,regular:eW},G[86]=eW,G[87]=F):F=G[87];let eZ=”expanded”===eC.wideMode&&iK;return G[88]!==eZ?($=(0,y.$)(iJ,eZ),G[88]=eZ,G[89]=$):$=G[89],G[90]!==z||G[91]!==K||G[92]!==X||G[93]!==J?(M=z&&(0,o.jsx)(rm,{commit:z,pullRequest:X,commits:K,repository:J}),G[90]=z,G[91]=K,G[92]=X,G[93]=J,G[94]=M):M=G[94],G[95]!==ek||G[96]!==ee||G[97]!==J||G[98]!==et?(B=(0,o.jsx)(eX,{pageLimits:ee,repository:J,urls:et,isDiffVirtualizationEnabled:ek}),G[95]=ek,G[96]=ee,G[97]=J,G[98]=et,G[99]=B):B=G[99],G[100]!==eb||G[101]!==eE||G[102]!==eT||G[103]!==ek||G[104]!==e_||G[105]!==ei||G[106]!==X.globalRelayId||G[107]!==X.headBranch||G[108]!==X.headRepositoryName||G[109]!==X.headRepositoryOwnerLogin||G[110]!==J?(V=ek&&!e_?(0,o.jsx)(rs,{currentUser:eb,headBranchName:X.headBranch,headRepoName:X.headRepositoryName,headRepoOwner:X.headRepositoryOwnerLogin,onSetFilterState:eT,pullRequestGlobalRelayId:X.globalRelayId,filteredDiffSummaries:eE,repository:J,showPullRequestGroups:!0}):(0,o.jsx)(o.Fragment,{children:ei?(0,o.jsx)(rg,{currentUser:eb,filteredDiffSummaries:eE,headBranchName:X.headBranch,headRepoName:X.headRepositoryName,headRepoOwner:X.headRepositoryOwnerLogin,pullRequestGlobalRelayId:X.globalRelayId,repository:J}):(0,o.jsx)(a8,{currentUser:eb,headBranchName:X.headBranch,headRepoName:X.headRepositoryName,headRepoOwner:X.headRepositoryOwnerLogin,onSetFilterState:eT,pullRequestGlobalRelayId:X.globalRelayId,filteredDiffSummaries:eE,repository:J,showPullRequestGroups:!0})}),G[100]=eb,G[101]=eE,G[102]=eT,G[103]=ek,G[104]=e_,G[105]=ei,G[106]=X.globalRelayId,G[107]=X.headBranch,G[108]=X.headRepositoryName,G[109]=X.headRepositoryOwnerLogin,G[110]=J,G[111]=V):V=G[111],G[112]!==F||G[113]!==$||G[114]!==M||G[115]!==B||G[116]!==V?(U=(0,o.jsxs)(b.O7.Content,{as:”div”,width:”full”,hidden:F,padding:”none”,className:$,children:[M,B,V]}),G[112]=F,G[113]=$,G[114]=M,G[115]=B,G[116]=V,G[117]=U):U=G[117],G[118]!==T||G[119]!==O||G[120]!==P||G[121]!==U?(H=(0,o.jsxs)(o.Fragment,{children:[T,O,P,U]}),G[118]=T,G[119]=O,G[120]=P,G[121]=U,G[122]=H):H=G[122],H}:function({codeowners:e,commit:t,commits:n,configOpts:i,diffSummaries:a,fileFilter:r,pullRequest:s,repository:l,markers:d,pageLimits:c,urls:C,user:w,isSingleFileMode:N,virtualizeDiffEntries:S}){iF(d,a),(0,g.L)(!0),rf();let L=rC(w),D=(0,h.G7)(“pull_request_files_virtualization_without_min_threshold”),{mutate:R}=(0,u.U)({onSuccess:()=>{},onError:()=>{}}),{data:A}=(0,m.ID)(L),E=(0,j.useCallback)(()=>{R({commentsPreference:A?.commentsPreference===f.sI.Visible?f.sI.Collapsed:f.sI.Visible})},[A?.commentsPreference,R]),T=(0,j.useMemo)(()=>({avatarURL:w.currentUserAvatarUrl||””,login:w.currentUserLogin||””,tabSize:w.tabSize,splitPreference:i.forceUnifiedView?”unified”:A?.splitPreference??”unified”,shouldDisplayComments:i.useInlineComments??!1,shouldDisplayEditOptions:i.useEditOptions??!1,lineSpacing:A?.lineSpacing??”relaxed”,canComment:i.userCanComment&&w.canComment,canApplySuggestion:w.canApplySuggestion,commentsPreference:A?.commentsPreference??”visible”,hasCopilotAccess:w.hasCopilotAccess}),[i.forceUnifiedView,i.useEditOptions,i.useInlineComments,i.userCanComment,A?.commentsPreference,A?.lineSpacing,A?.splitPreference,w.canApplySuggestion,w.canComment,w.currentUserAvatarUrl,w.currentUserLogin,w.hasCopilotAccess,w.tabSize]),{updateCommentsPreference:O}=(0,_.CQ)();(0,j.useEffect)(()=>{O(A?.commentsPreference??f.sI.Visible)},[A?.commentsPreference,O]);let{splitPagePaneHidden:P,treeViewState:F,treeToggleElement:$,collapseMobileTree:M,expandTree:B}=an(eH,w.isFileTreeExpanded&&!i.treeCollapsedByDefault,i.treeEnableInlineCompactMode,T),V={basePath:s.pathName};e&&(V.initialData=e);let{data:U}=(0,I.dG)(V),{setCodeowners:H}=(0,_.wh)();(0,j.useEffect)(()=>{H(U)},[U,H]);let G=(0,_.qg)(),[q]=(0,i9.I)(()=>!1,!0,[]),z=D||S,K=(0,_.I8)(),{updateDiffFilter:W}=(0,_.or)();(0,j.useEffect)(()=>{W({…r.initialState,unselectedFileExtensions:new Set(r.initialState.unselectedFileExtensions)})},[W,r.initialState]);let Z=(0,_.mU)(),Q=(0,j.useCallback)(e=>{W(e,!0)},[W]),X=(0,j.useCallback)(()=>{“none”!==F.compactMode&&M()},[M,F.compactMode]),J=(0,j.useRef)(null),Y=(0,j.useMemo)(()=>(0,o.jsx)(k,{ref:J,basePath:s.pathName,fileFilterMenuOptions:r.menuOptions,fileFilterState:K,setFileFilterState:Q,viewerLogin:T.login,filterSize:”expanded”!==F.wideMode?”small”:”medium”}),[s.pathName,r.menuOptions,K,Q,T.login,F.wideMode]),ee=(0,_.gt)(),et=a.length>0,en=i.useChangeGroups&&ee&&et;al({changeGroupsEnabled:en});let{aliveChannel:ei,bannersData:ea}=(0,i2.o)(),er=(0,j.useCallback)(()=>{B(),window.requestAnimationFrame(()=>{J.current?.focus()})},[B]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.ak,{commands:{“pull-request-files-changed:collapse-expand-comments”:E,”pull-request-files-changed:focus-file-tree-filter”:er}}),i.useAdvancedToolbar||i.useBasicToolbar?(0,o.jsxs)(o.Fragment,{children:[i.useAdvancedToolbar&&(0,o.jsx)(iT,{changeGroupsPreferenceAvailable:en,commits:n,currentUserLogin:w.currentUserLogin,fileFilter:Y,isFileTreeExpanded:”expanded”===F.wideMode,lastReviewOid:w.lastReviewOid,pageLimits:c,pullRequest:s,repository:l,shouldShowViewedFilesCount:w.shouldShowViewedFilesCount,totalFilesCount:G,treeToggleElement:$,bannersData:ea,urls:C,user:w,aliveChannel:ei}),i.useBasicToolbar&&(0,o.jsx)(i6,{fileFilter:Y,isFileTreeExpanded:”expanded”===F.wideMode,shouldShowViewedFilesCount:w.shouldShowViewedFilesCount,totalFilesCount:G,treeToggleElement:$,userNotices:w.userNotices}),”overlay”===F.compactMode&&(0,o.jsx)(x.l,{onClose:()=>M(),position:{narrow:”fullscreen”,regular:”left”,wide:”left”},title:”Files”,className:”p-0″,children:(0,o.jsx)(eG,{allowPullRequestGroups:en,fileFilter:Y,filteredDiffs:Z,onFileSelected:X,onSetFilterState:Q})})]}):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,y.$)(iz,P&&iV,”expanded”===F.wideMode&&iK,”collapsed”===F.wideMode&&iW,”none”===F.compactMode&&iZ,”overlay”===F.compactMode&&iQ,”inline”===F.compactMode&&iX,iH),divider:{regular:”inline”===F.compactMode?”none”:”line”,narrow:”none”},widthStorageKey:”diff-tree-pane-width”,resizable:”inline”!==F.compactMode,children:(0,o.jsx)(eG,{allowPullRequestGroups:en,className:(0,y.$)(eV,iU),fileFilter:Y,filteredDiffs:Z,onFileSelected:X,onSetFilterState:Q})}):null,(0,o.jsxs)(b.O7.Content,{as:”div”,width:”full”,hidden:{narrow:!1,regular:”inline”===F.compactMode},padding:”none”,className:(0,y.$)(iJ,”expanded”===F.wideMode&&iK),children:[t&&(0,o.jsx)(rm,{commit:t,pullRequest:s,commits:n,repository:l}),(0,o.jsx)(eX,{pageLimits:c,repository:l,urls:C,isDiffVirtualizationEnabled:z}),z&&!q?(0,o.jsx)(rs,{currentUser:T,headBranchName:s.headBranch,headRepoName:s.headRepositoryName,headRepoOwner:s.headRepositoryOwnerLogin,onSetFilterState:Q,pullRequestGlobalRelayId:s.globalRelayId,filteredDiffSummaries:Z,repository:l,showPullRequestGroups:!0}):(0,o.jsx)(o.Fragment,{children:N?(0,o.jsx)(rg,{currentUser:T,filteredDiffSummaries:Z,headBranchName:s.headBranch,headRepoName:s.headRepositoryName,headRepoOwner:s.headRepositoryOwnerLogin,pullRequestGlobalRelayId:s.globalRelayId,repository:l}):(0,o.jsx)(a8,{currentUser:T,headBranchName:s.headBranch,headRepoName:s.headRepositoryName,headRepoOwner:s.headRepositoryOwnerLogin,onSetFilterState:Q,pullRequestGlobalRelayId:s.globalRelayId,filteredDiffSummaries:Z,repository:l,showPullRequestGroups:!0})})]})]})};function rv(){return!1}function ry(){}function rj(){}let rC=(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,j.useMemo)(()=>({hideWhitespace:n,splitPreference:t,lineSpacing:e.viewSettings.lineSpacing,commentsPreference:e.viewSettings.commentsPreference}),[e.viewSettings.commentsPreference,e.viewSettings.lineSpacing,t,n])},rw=(0,d.Z6)()?function(e){let t,n,i,a=(0,c.c)(7);return a[0]!==e.className?(t=(0,y.$)(iB,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:at,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:at,className:(0,y.$)(iB,e.className),children:(0,o.jsx)(b.O7,{children:e.children})})},rN=Object.assign({},{Container:rw,Header:b.O7.Header,Viewer:rx});try{(r=Some).displayName||(r.displayName=”Some”)}catch{}try{(s=Some).displayName||(s.displayName=”Some”)}catch{}try{rx.displayName||(rx.displayName=”BaseDiffComparisonViewer”)}catch{}try{rb.displayName||(rb.displayName=”InternalDiffComparisonViewer”)}catch{}try{(l=FilterFilterComponent).displayName||(l.displayName=”FilterFilterComponent”)}catch{}try{rw.displayName||(rw.displayName=”Container”)}catch{}try{rN.displayName||(rN.displayName=”DiffComparisonViewer”)}catch{}},61219:(e,t,n)=>{n.d(t,{U:()=>ey});var i=n(74848),a=n(68273),r=n(16522),s=n(42118),l=n(26156),o=n(18559),d=n(81156),c=n(63352),u=n(73189),m=n(78809),f=n(73017),h=n(71315),p=n(43258),g=n(38621),x=n(72511),b=n(31021),y=n(34164),j=n(96540),C=n(25407),w=n(94747),N=n(27011),S=n(1932),L=n(96379);let D=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{updateThreads:n}=(0,N.an)();return t[0]!==n?(e={mutationFn:I,onSuccess:(e,t)=>{n((0,S.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,w.n)(e)}:function(){let{updateThreads:e}=(0,N.an)();return(0,w.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,L.DI)((0,C.ggd)({owner:n}),{method:”POST”,body:s,redirect:”manual”})},onSuccess:(t,n)=>{e((0,S.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 I(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,L.DI)((0,C.ggd)({owner:i}),{method:”POST”,body:l,redirect:”manual”})}var _=n(48845);let k=(0,a.Z6)()?function(e){let t,n,i,a=(0,r.c)(15),{filePath:s,lineMarkersKey:l,onSuccess:o}=e,d=(0,N.Kp)(),{deleteThreadComment:c}=(0,N.an)(),{onCommentThreadDeleted:u}=(0,N.Ud)(),m=(0,N.SM)(),{removePendingComment:f}=(0,N._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,_.q$)(`${a}`,{method:”DELETE”});if(204===r.status||200===r.status)return;let o=await (0,_.hp)(r);(0,_.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,w.n)(i)}:function({filePath:e,lineMarkersKey:t,onSuccess:n}){let i=(0,N.Kp)(),{deleteThreadComment:a}=(0,N.an)(),{onCommentThreadDeleted:r}=(0,N.Ud)(),s=(0,N.SM)(),{removePendingComment:l}=(0,N._N)();return(0,w.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,_.q$)(`${l}`,{method:”DELETE”});if(204===o.status||200===o.status)return;let d=await (0,_.hp)(o);(0,_.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,N.Kp)(),o=`${l}/page_data/${R.uT.hideComment}`,{updateThreadComment:d}=(0,N.an)();return s[0]!==o?(n=async e=>{let{commentDatabaseId:t,reason:n}=e,i=await (0,_.q$)(o,{method:”POST”,body:{classifier:n,commentId:t}}),a=await (0,_.hp)(i);return(0,_.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,w.n)(a)}:function(e,t){let n=(0,N.Kp)(),i=`${n}/page_data/${R.uT.hideComment}`,{updateThreadComment:a}=(0,N.an)();return(0,w.n)({mutationFn:async({commentDatabaseId:e,reason:t})=>{let n=await (0,_.q$)(i,{method:”POST”,body:{classifier:t,commentId:e}}),a=await (0,_.hp)(n);return(0,_.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}}})}})},E=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(9),l=(0,N.Kp)(),{updateThreadComment:o}=(0,N.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,_.q$)(a,{method:”POST”,body:{reaction:n,commentId:t}}),s=await (0,_.hp)(r);return(0,_.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,w.n)(a)}:function(e,t){let n=(0,N.Kp)(),{updateThreadComment:i}=(0,N.an)();return(0,w.n)({mutationFn:async({commentDatabaseId:e,reaction:t,viewerHasReacted:i})=>{let a=`${n}/page_data/${i?R.uT.removeCommentReaction:R.uT.addCommentReaction}`,r=await (0,_.q$)(a,{method:”POST”,body:{reaction:t,commentId:e}}),s=await (0,_.hp)(r);return(0,_.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}}})}})},T=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{updateThreads:n}=(0,N.an)();return t[0]!==n?(e={mutationFn:O,onSuccess:(e,t)=>{n((0,S.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,w.n)(e)}:function(){let{updateThreads:e}=(0,N.an)();return(0,w.n)({mutationFn:async({organizationLogin:e,userLogin:t})=>{await (0,_.q$)(`${(0,C.ggd)({owner:e})}/${(0,C.QU3)(t)}`,{method:”DELETE”,redirect:”manual”})},onSuccess:(t,n)=>{e((0,S.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 O(e){let{organizationLogin:t,userLogin:n}=e;await (0,_.q$)(`${(0,C.ggd)({owner:t})}/${(0,C.QU3)(n)}`,{method:”DELETE”,redirect:”manual”})}let P=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(9),l=(0,N.Kp)(),o=`${l}/page_data/${R.uT.unhideComment}`,{updateThreadComment:d}=(0,N.an)();return s[0]!==o?(n=async e=>{let{commentDatabaseId:t}=e,n=await (0,_.q$)(o,{method:”POST”,body:{commentId:t}}),i=await (0,_.hp)(n);return(0,_.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:F})},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,w.n)(a)}:function(e,t){let n=(0,N.Kp)(),i=`${n}/page_data/${R.uT.unhideComment}`,{updateThreadComment:a}=(0,N.an)();return(0,w.n)({mutationFn:async({commentDatabaseId:e})=>{let t=await (0,_.q$)(i,{method:”POST”,body:{commentId:e}}),n=await (0,_.hp)(t);return(0,_.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 F(e){if(e)return{…e,isHidden:!1,minimizedReason:null}}let $=(0,a.Z6)()?function(e){let t,n,i,a=(0,r.c)(10),{filePath:s,lineMarkersKey:l,onSuccess:o}=e,d=(0,N.Kp)(),c=`${d}/page_data/${R.uT.updateReviewComment}`,{updateThreadComment:u}=(0,N.an)();return a[0]!==c?(t=async e=>{let{commentId:t,bodyVersion:n,body:i}=e,a=await (0,_.q$)(`${c}${n?`?body_version=${n}`:””}`,{method:”PUT”,body:{body:i,commentId:t}}),r=await (0,_.hp)(a);return(0,_.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,w.n)(i)}:function({filePath:e,lineMarkersKey:t,onSuccess:n}){let i=(0,N.Kp)(),a=`${i}/page_data/${R.uT.updateReviewComment}`,{updateThreadComment:r}=(0,N.an)();return(0,w.n)({mutationFn:async({commentId:e,bodyVersion:t,body:n})=>{let i=await (0,_.q$)(`${a}${t?`?body_version=${t}`:””}`,{method:”PUT”,body:{body:n,commentId:e}}),r=await (0,_.hp)(i);return(0,_.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 M=n(34784),B=n(8748),V=n(50625),U=n(93642),H=n(70109);let G=”ReviewThreadComment-module__ReviewThreadContainer–mI1dg”,q=”ReviewThreadComment-module__anchorable–bXoU8″,z=”ReviewThreadComment-module__ReviewThreadWrapper–zXqpP”,K=”ReviewThreadComment-module__ReviewThreadBox–Ddyuz”,W=”ReviewThreadComment-module__ReviewThreadInnerContainer–xw85s”,Z=”ReviewThreadComment-module__ReplyWrapper–yIUaX”,Q=”ReviewThreadComment-module__SafeHTMLBox–SVSQJ”,X=”ReviewThreadComment-module__SafeHTMLBoxWrapped–NYuTu”,J=”ReviewThreadComment-module__BodyHTMLContainer–O6lsx”;var Y=n(40961),ee=n(80081),et=n(3252);let en=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,N.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,_.q$)(i,{method:”POST”,body:{changes:t,currentOid:n,message:a}}),s=await (0,_.hp)(r);return(0,_.R)(r,s),s},onSuccess:ei},t[0]=i,t[1]=e):e=t[1],(0,w.n)(e)}:function(){let e=(0,N.Kp)(),t=`${e}/page_data/${R.uT.submitSuggestedChanges}`;return(0,w.n)({mutationFn:async({changes:e,currentOid:n,message:i})=>{let a=await (0,_.q$)(t,{method:”POST”,body:{changes:e,currentOid:n,message:i}}),r=await (0,_.hp)(a);return(0,_.R)(a,r),r},onSuccess:()=>{h.cg?.location.reload()}})};function ei(){h.cg?.location.reload()}var ea=n(91747),er=n(2265),es=n(30459),el=n(26607),eo=n(21373),ed=n(88008);let ec=(0,a.GV)()?function(e){let t,n,a,s,l,o=(0,r.c)(28),{onOpenDialog:d,suggestedChange:c}=e,{sendAnalyticsEvent:u}=(0,es.s)(),m=(0,j.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,N.Nk)(t),p=(0,N.RH)(),g=(0,ea.u)(“batch_suggested_changes”),{addSuggestionToBatch:x,removeSuggestionFromBatch:b}=(0,N.xJ)(),y=(0,N.WK)(),C=(0,N.Kp)(),w=(0,N.L3)();o[3]!==x||o[4]!==w||o[5]!==C||o[6]!==u||o[7]!==c.commentDatabaseId||o[8]!==c.suggestionIndex||o[9]!==y?(n=()=>{if(!c.commentDatabaseId)return;let e={commentDatabaseId:c.commentDatabaseId,suggestionIndex:c.suggestionIndex};x(e),(0,ed.CE)(C,w.fullDiff.headOid,[…y.activeBatch,e]),u(“comments.add_suggested_change_to_batch”,”ADD_SUGGESTED_CHANGE_TO_BATCH_BUTTON”)},o[3]=x,o[4]=w,o[5]=C,o[6]=u,o[7]=c.commentDatabaseId,o[8]=c.suggestionIndex,o[9]=y,o[10]=n):n=o[10];let S=n;o[11]!==w||o[12]!==C||o[13]!==b||o[14]!==u||o[15]!==c.commentDatabaseId||o[16]!==c.suggestionIndex||o[17]!==y?(a=()=>{if(!c.commentDatabaseId)return;let e={commentDatabaseId:c.commentDatabaseId,suggestionIndex:c.suggestionIndex};b(e),(0,ed.CE)(C,w.fullDiff.headOid,y.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]=w,o[12]=C,o[13]=b,o[14]=u,o[15]=c.commentDatabaseId,o[16]=c.suggestionIndex,o[17]=y,o[18]=a):a=o[18];let L=a;o[19]!==d?(s=()=>{d(m)},o[19]=d,o[20]=s):s=o[20];let D=s;return o[21]!==g||o[22]!==S||o[23]!==D||o[24]!==L||o[25]!==h||o[26]!==p?(l=(0,i.jsx)(“div”,{className:”d-flex flex-row flex-items-center”,children:g&&h?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(eo.Q,{variant:”danger”,onClick:L,children:”Remove from batch”})})]}):(0,i.jsxs)(“div”,{className:”d-flex gap-2 ml-auto flex-wrap-reverse”,children:[!p&&(0,i.jsx)(eo.Q,{variant:”default”,onClick:D,ref:m,children:”Apply suggestion”}),g&&(0,i.jsx)(eo.Q,{variant:”primary”,onClick:S,children:”Add suggestion to batch”})]})}),o[21]=g,o[22]=S,o[23]=D,o[24]=L,o[25]=h,o[26]=p,o[27]=l):l=o[27],l}:function({onOpenDialog:e,suggestedChange:t}){let{sendAnalyticsEvent:n}=(0,es.s)(),a=(0,j.useRef)(null),r=(0,N.Nk)({commentDatabaseId:t.commentDatabaseId||0,suggestionIndex:t.suggestionIndex}),s=(0,N.RH)(),l=(0,ea.u)(“batch_suggested_changes”),{addSuggestionToBatch:o,removeSuggestionFromBatch:d}=(0,N.xJ)(),c=(0,N.WK)(),u=(0,N.Kp)(),m=(0,N.L3)(),f=(0,j.useCallback)(()=>{if(!t.commentDatabaseId)return;let e={commentDatabaseId:t.commentDatabaseId,suggestionIndex:t.suggestionIndex};o(e),(0,ed.CE)(u,m.fullDiff.headOid,[…c.activeBatch,e]),n(“comments.add_suggested_change_to_batch”,”ADD_SUGGESTED_CHANGE_TO_BATCH_BUTTON”)},[o,t.commentDatabaseId,t.suggestionIndex,c,u,m,n]),h=(0,j.useCallback)(()=>{if(!t.commentDatabaseId)return;let e={commentDatabaseId:t.commentDatabaseId,suggestionIndex:t.suggestionIndex};d(e),(0,ed.CE)(u,m.fullDiff.headOid,c.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex)),n(“comments.remove_suggested_change_from_batch”,”REMOVE_SUGGESTED_CHANGE_FROM_BATCH_BUTTON”)},[d,t.commentDatabaseId,t.suggestionIndex,c,u,m,n]),p=(0,j.useCallback)(()=>{e(a)},[e]);return(0,i.jsx)(“div”,{className:”d-flex flex-row flex-items-center”,children:l&&r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(eo.Q,{variant:”danger”,onClick:h,children:”Remove from batch”})})]}):(0,i.jsxs)(“div”,{className:”d-flex gap-2 ml-auto flex-wrap-reverse”,children:[!s&&(0,i.jsx)(eo.Q,{variant:”default”,onClick:p,ref:a,children:”Apply suggestion”}),l&&(0,i.jsx)(eo.Q,{variant:”primary”,onClick:f,children:”Add suggestion to batch”})]})})};try{ec.displayName||(ec.displayName=”ApplyOrAddToBatch”)}catch{}var eu=n(3585);let em=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{reason:s,className:l}=e,o=void 0===l?”m-2″:l;return a[0]!==s?(t=(0,i.jsx)(“small”,{className:”fgColor-muted”,children:s}),a[0]=s,a[1]=t):t=a[1],a[2]!==o||a[3]!==t?(n=(0,i.jsx)(“div”,{className:o,children:t}),a[2]=o,a[3]=t,a[4]=n):n=a[4],n}:function({reason:e,className:t=”m-2″}){return(0,i.jsx)(“div”,{className:t,children:(0,i.jsx)(“small”,{className:”fgColor-muted”,children:e})})};try{em.displayName||(em.displayName=”CodeSuggestionUnavailable”)}catch{}let ef=(0,a.GV)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,h,p=(0,r.c)(38),{suggestedChange:g}=e,{setIsDialogOpen:x}=(0,er.W)(),[b,y]=(0,j.useState)(!1),C=(0,j.useRef)(void 0),w=(0,ea.u)(“batch_suggested_changes”),S=(0,N.WK)();p[0]!==w||p[1]!==g||p[2]!==S?(t=w&&void 0!==g.commentDatabaseId&&null!==g.commentDatabaseId&&S.activeBatch.some(e=>e.commentDatabaseId===g.commentDatabaseId&&e.suggestionIndex===g.suggestionIndex),p[0]=w,p[1]=g,p[2]=S,p[3]=t):t=p[3];let L=t;p[4]!==g?(n=(0,ee.EJ)(g,[]),p[4]=g,p[5]=n):n=p[5];let{isValid:D,reason:I}=n;p[6]!==g?(a=[g],p[6]=g,p[7]=a):a=p[7];let _=a;p[8]!==_?(s=_.map(eh),p[8]=_,p[9]=s):s=p[9];let k=s;p[10]!==x?(l=e=>{y(e),x?.(e)},p[10]=x,p[11]=l):l=p[11];let R=l;p[12]!==R?(o=()=>{if(R(!1),C.current){let e=C.current.current;setTimeout(()=>e?.focus())}},p[12]=R,p[13]=o):o=p[13];let A=o;p[14]!==R?(d=e=>{R(!0),C.current=e},p[14]=R,p[15]=d):d=p[15];let E=d,{mutate:T}=en(),{fullDiff:O}=(0,N.L3)(),{headOid:P}=O;p[16]!==_||p[17]!==A||p[18]!==P||p[19]!==T?(c=(e,t,n)=>{T({changes:_,message:e,currentOid:P},{onSuccess:()=>{A(),n()},onError:e=>{t(e,”submitSuggestedChanges”,”Failed to submit suggested changes”)}})},p[16]=_,p[17]=A,p[18]=P,p[19]=T,p[20]=c):c=p[20];let F=c;return p[21]!==E||p[22]!==g?(u=(0,i.jsx)(ec,{suggestedChange:g,onOpenDialog:E}),p[21]=E,p[22]=g,p[23]=u):u=p[23],p[24]!==L||p[25]!==D||p[26]!==I?(m=!L&&!D&&I&&(0,i.jsx)(em,{reason:I,className:”m-0″}),p[24]=L,p[25]=D,p[26]=I,p[27]=m):m=p[27],p[28]!==k||p[29]!==_.length||p[30]!==A||p[31]!==F||p[32]!==b?(f=b&&(0,i.jsx)(eu.$,{authorLogins:k,batchSize:_.length,onClose:A,onCommit:F}),p[28]=k,p[29]=_.length,p[30]=A,p[31]=F,p[32]=b,p[33]=f):f=p[33],p[34]!==u||p[35]!==m||p[36]!==f?(h=(0,i.jsxs)(“div”,{className:”border-top p-2″,children:[u,m,f]}),p[34]=u,p[35]=m,p[36]=f,p[37]=h):h=p[37],h}:function({suggestedChange:e}){let{setIsDialogOpen:t}=(0,er.W)(),[n,a]=(0,j.useState)(!1),r=(0,j.useRef)(void 0),s=(0,ea.u)(“batch_suggested_changes”),l=(0,N.WK)(),o=s&&void 0!==e.commentDatabaseId&&null!==e.commentDatabaseId&&l.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex),{isValid:d,reason:c}=(0,ee.EJ)(e,[]),u=(0,j.useMemo)(()=>[e],[e]),m=u.map(e=>e.authorLogin),f=(0,j.useCallback)(e=>{a(e),t?.(e)},[t]),h=(0,j.useCallback)(()=>{if(f(!1),r.current){let e=r.current.current;setTimeout(()=>e?.focus())}},[f]),p=(0,j.useCallback)(e=>{f(!0),r.current=e},[f,r]),{mutate:g}=en(),{fullDiff:{headOid:x}}=(0,N.L3)(),b=(0,j.useCallback)((e,t,n)=>{g({changes:u,message:e,currentOid:x},{onSuccess:()=>{h(),n()},onError:e=>{t(e,”submitSuggestedChanges”,”Failed to submit suggested changes”)}})},[u,h,x,g]);return(0,i.jsxs)(“div”,{className:”border-top p-2″,children:[(0,i.jsx)(ec,{suggestedChange:e,onOpenDialog:p}),!o&&!d&&c&&(0,i.jsx)(em,{reason:c,className:”m-0″}),n&&(0,i.jsx)(eu.$,{authorLogins:m,batchSize:u.length,onClose:h,onCommit:b})]})};function eh(e){return e.authorLogin}try{ef.displayName||(ef.displayName=”CodeSuggestionActions”)}catch{}let ep=(0,a.GV)()?function(e,t,n,i,a){let s,l,o=(0,r.c)(19),[d,c]=(0,j.useState)();o[0]!==a.lineRange||o[1]!==t.author?.login||o[2]!==t.databaseId||o[3]!==t.id||o[4]!==t.subjectType||o[5]!==e||o[6]!==n||o[7]!==i?(s=()=>{if(!e.current||t.subjectType?.toUpperCase()!==”LINE”)return;let r=[…e.current.getElementsByClassName(“js-apply-changes”)];if(r.length>0){let e=[];for(let s=0;s{if(!e.current||t.subjectType?.toUpperCase()!==”LINE”)return;let r=[…e.current.getElementsByClassName(“js-apply-changes”)];if(r.length>0){let e=[];for(let s=0;s{let{isValid:t,reason:n}=(0,ee.o_)({suggestedChange:e,hasCommitRange:g,isOutdated:c,isPending:”PENDING”===l.state.toUpperCase(),isResolved:u,pullRequestIsClosed:void 0===p||”CLOSED”===p||”MERGED”===p,pullRequestIsInMergeQueue:”QUEUED”===p,userCanApplySuggestion:!!h,applySuggestedChangesValidationData:s,suggestedChangesConfig:m});return!t&&n?(0,Y.createPortal)((0,i.jsx)(em,{reason:n}),e.ref):(0,Y.createPortal)((0,i.jsx)(ef,{suggestedChange:e}),e.ref)}):null,a[0]=s,a[1]=l,a[2]=g,a[3]=c,a[4]=u,a[5]=p,a[6]=x,a[7]=m,a[8]=h,a[9]=t):t=a[9],a[10]!==t?(n=(0,i.jsx)(i.Fragment,{children:t}),a[10]=t,a[11]=n):n=a[11],n}:function({applySuggestedChangesValidationData:e,comment:t,commentBodyRef:n,filePath:a,isOutdated:r,isThreadResolved:s,suggestedChangesConfig:l,databaseId:o,viewerCanApplySuggestion:d}){let{state:c}=(0,N.Yp)(),u=(0,N.ww)(),m=ep(n,t,a,o,e);return(0,i.jsx)(i.Fragment,{children:m?.length?m.map(n=>{let{isValid:a,reason:o}=(0,ee.o_)({suggestedChange:n,hasCommitRange:u,isOutdated:r,isPending:”PENDING”===t.state.toUpperCase(),isResolved:s,pullRequestIsClosed:void 0===c||”CLOSED”===c||”MERGED”===c,pullRequestIsInMergeQueue:”QUEUED”===c,userCanApplySuggestion:!!d,applySuggestedChangesValidationData:e,suggestedChangesConfig:l});return!a&&o?(0,Y.createPortal)((0,i.jsx)(em,{reason:o}),n.ref):(0,Y.createPortal)((0,i.jsx)(ef,{suggestedChange:n}),n.ref)}):null})};try{eg.displayName||(eg.displayName=”SuggestedChangeView”)}catch{}var ex=n(30721),eb=n(83494),ev=n(20459);let ey=(0,a.GV)()?function(e){let t,n,a,C,w,S,L,I,_,R,O,F,Y,ee,et,en,ei,ea,er,es,el,eo,ed,ec,eu,em,ef,eh,ep,ey,eC,ew,eN,eS,eL,eD,eI,e_,ek,eR,eA,eE,eT,eO,eP=(0,r.c)(176),{isAnchorable:eF,index:e$,isInlineComment:eM,isLastChild:eB,isOutdated:eV,isThreadResolved:eU,lineMarkersKey:eH,anchorPrefix:eG,comment:eq,disableDialogMode:ez,enableDialogMode:eK,filePath:eW,gridCellId:eZ,hideActions:eQ,isFirstComment:eX,isInDialogMode:eJ,onDeleteLineComment:eY,onQuoteReply:e0,threadCommentCount:e1,threadId:e2,threadPositionNumber:e3,suggestedChangesConfig:e4,applySuggestedChangesValidationData:e5,viewerData:e6,ghostUser:e7,originalDiffPathUri:e8,headingLevel:e9}=e,te=void 0!==eF&&eF,tt=void 0===e$?0:e$,tn=void 0!==eX&&eX,ti=void 0===e0?u.l:e0,ta=void 0===e7?d.t.ghostUser:e7,tr=void 0===e9?”h3″:e9,{addToast:ts}=(0,p.Y6)(),[tl,to]=(0,j.useState)(!1),[td,tc]=(0,j.useState)(eq.isHidden),[tu,tm]=(0,j.useState)(!1),[tf,th]=(0,j.useState)(eq.body),[tp,tg]=(0,j.useState)(!1),[tx,tb]=(0,j.useState)(!1),[tv,ty]=(0,j.useState)(“”),tj=(0,N.Kp)(),tC=”FILE”===eq.subjectType;eP[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=e=>{let{text:t}=e;t&&th(t)},eP[0]=t):t=eP[0],eP[1]!==tj||eP[2]!==eq.id||eP[3]!==eW||eP[4]!==tC?(n={subjectId:tj,filePath:eW,fileLevelComment:tC,threadId:eq.id,handlePersistedCommentExists:t},eP[1]=tj,eP[2]=eq.id,eP[3]=eW,eP[4]=tC,eP[5]=n):n=eP[5];let{persistCommentToStorage:tw,removePersistedCommentFromStorage:tN}=(0,V.L)(n),tS=(0,j.useRef)(null),tL=(0,j.useRef)(null),tD=(0,j.useRef)(null),[tI,t_]=(0,j.useState)(“”);eP[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>{tS.current?.focus()},eP[6]=a):a=eP[6];let tk=a;eP[7]!==tl?(C=()=>{if(tl){let e=window.setTimeout(tk);return()=>{window.clearTimeout(e)}}},w=[tl],eP[7]=tl,eP[8]=C,eP[9]=w):(C=eP[8],w=eP[9]),(0,j.useEffect)(C,w),eP[10]!==eY?(S=()=>{tm(!1),tb(!1),eY?.()},eP[10]=eY,eP[11]=S):S=eP[11],eP[12]!==eW||eP[13]!==eH||eP[14]!==S?(L={filePath:eW,lineMarkersKey:eH,onSuccess:S},eP[12]=eW,eP[13]=eH,eP[14]=S,eP[15]=L):L=eP[15];let{mutate:tR}=k(L);eP[16]!==ez?(I=async()=>{ez?.(),tm(!0)},eP[16]=ez,eP[17]=I):I=eP[17];let tA=I;eP[18]!==ts||eP[19]!==eq.id||eP[20]!==tR||eP[21]!==eK||eP[22]!==eW||eP[23]!==eZ||eP[24]!==e2?(_=e=>{“confirm”===e?(tb(!0),tR({commentId:eq.id,threadId:e2,filePath:eW},{onError:()=>{tm(!1),ts({type:”error”,message:”Failed to delete comment”}),tb(!1)}})):(eZ&&eK?.(eZ),tm(!1),tb(!1))},eP[18]=ts,eP[19]=eq.id,eP[20]=tR,eP[21]=eK,eP[22]=eW,eP[23]=eZ,eP[24]=e2,eP[25]=_):_=eP[25];let tE=_,{mutate:tT}=A(eW,eH);eP[26]!==eq.databaseId||eP[27]!==tT?(R=e=>{if(!eq.databaseId)throw Error(“Comment not found”);tT({commentDatabaseId:eq.databaseId,reason:e},{onError:()=>{tg(!1),t_(“Failed to hide comment”)},onSuccess:()=>tc(!0)})},eP[26]=eq.databaseId,eP[27]=tT,eP[28]=R):R=eP[28];let tO=R,{mutate:tP}=P(eW,eH);eP[29]!==eq.databaseId||eP[30]!==tP?(O=()=>{if(!eq.databaseId)throw Error(“Comment not found”);tP({commentDatabaseId:eq.databaseId},{onError:()=>{tg(!1),t_(“Failed to unhide comment”)},onSuccess:()=>tc(!1)})},eP[29]=eq.databaseId,eP[30]=tP,eP[31]=O):O=eP[31];let tF=O,{mutate:t$}=D();eP[32]!==t$?(F=(e,t,n,i,a,r)=>t$({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>t_(“Failed to block user”),onSuccess:()=>{t&&tc(!0)}}),eP[32]=t$,eP[33]=F):F=eP[33];let tM=F,{mutate:tB}=T();eP[34]!==tB?(Y=(e,t)=>tB({organizationLogin:e,userLogin:t},{onError:()=>t_(“Failed to unblock user”)}),eP[34]=tB,eP[35]=Y):Y=eP[35];let tV=Y,{mutate:tU}=E(eW,eH);eP[36]!==ts||eP[37]!==eq.databaseId||eP[38]!==tU||eP[39]!==e2?(ee=(e,t)=>{if(!eq.databaseId)throw Error(“Comment not found”);setTimeout(()=>tD.current?.focus(),0),tU({commentDatabaseId:eq.databaseId,threadId:e2,reaction:e,viewerHasReacted:t},{onError:()=>{tg(!1),ts({type:”error”,message:”Failed to react to comment”})}})},eP[36]=ts,eP[37]=eq.databaseId,eP[38]=tU,eP[39]=e2,eP[40]=ee):ee=eP[40];let tH=ee;eP[41]===Symbol.for(“react.memo_cache_sentinel”)?(et=()=>{to(!0)},eP[41]=et):et=eP[41];let tG=et;eP[42]!==eq.body||eP[43]!==tN?(en=()=>{to(!1),tN(),th(eq.body)},eP[42]=eq.body,eP[43]=tN,eP[44]=en):en=eP[44];let tq=en;eP[45]!==tw?(ei=e=>{tw({text:e}),th(e),ty(void 0)},eP[45]=tw,eP[46]=ei):ei=eP[46];let tz=ei;eP[47]!==tN?(ea=()=>{to(!1),tg(!1),tN()},eP[47]=tN,eP[48]=ea):ea=eP[48],eP[49]!==eW||eP[50]!==eH||eP[51]!==ea?(er={filePath:eW,lineMarkersKey:eH,onSuccess:ea},eP[49]=eW,eP[50]=eH,eP[51]=ea,eP[52]=er):er=eP[52];let{mutate:tK}=$(er);eP[53]!==ts||eP[54]!==tf||eP[55]!==eq.bodyVersion||eP[56]!==eq.databaseId||eP[57]!==e4?.sourceContentFromDiffLines||eP[58]!==tK?(es=()=>{tg(!0);let e=(0,U.u)(tf,e4?.sourceContentFromDiffLines??””);if(!e.isValid){ty(e.errorMessage),tg(!1);return}tK({commentId:String(eq.databaseId),body:tf,bodyVersion:eq.bodyVersion},{onError:()=>{tg(!1),ts({type:”error”,message:”Failed to update comment”})}})},eP[53]=ts,eP[54]=tf,eP[55]=eq.bodyVersion,eP[56]=eq.databaseId,eP[57]=e4?.sourceContentFromDiffLines,eP[58]=tK,eP[59]=es):es=eP[59],e4?.sourceContentFromDiffLines;let tW=es;eP[60]!==eq.databaseId?(el=eq.databaseId?.toString(),eP[60]=eq.databaseId,eP[61]=el):el=eP[61];let tZ=el,tQ=tZ?`${void 0===eG?”r”:eG}${tZ}`:void 0;eP[62]!==tQ?(eo=tQ&&h.fV?new URL(`${h.fV.pathname}#${tQ}`,h.fV.origin).toString():””,eP[62]=tQ,eP[63]=eo):eo=eP[63];let tX=eo,tJ=(0,j.useRef)(null);eP[64]!==tQ||eP[65]!==tZ||eP[66]!==te?(ed={isAnchorable:te,commentId:tZ,commentAnchor:tQ,containerRef:tJ},eP[64]=tQ,eP[65]=tZ,eP[66]=te,eP[67]=ed):ed=eP[67],(0,B.u)(ed);let tY=tt>0,t0=tt>1,t1=tl?”editing”:td?”hidden”:”visible”;eP[68]!==tr?(ec={as:tr},eP[68]=tr,eP[69]=ec):ec=eP[69];let t2=ec,t3=eq.author?.avatarUrl??ta.avatarUrl,t4=eq.reference.text??`#${eq.reference.number}`;eP[70]!==eq||eP[71]!==tX||eP[72]!==t4?(eu={…eq,url:tX,referenceText:t4},eP[70]=eq,eP[71]=tX,eP[72]=t4,eP[73]=eu):eu=eP[73];let t5=eq.author?.login??ta.login,t6=eq.reference?.author?.login??””;eP[74]===Symbol.for(“react.memo_cache_sentinel”)?(em={},eP[74]=em):em=eP[74];let t7=”copilot”===eq.reviewVariantType?”copilot-pull-request-reviewer”:void 0,t8=”copilot”===eq.reviewVariantType?l.S.Bot:void 0;eP[75]!==eQ||eP[76]!==td||eP[77]!==eV||eP[78]!==tY||eP[79]!==tM||eP[80]!==tA||eP[81]!==tO||eP[82]!==ti||eP[83]!==tV||eP[84]!==tF||eP[85]!==e8||eP[86]!==t2||eP[87]!==t3||eP[88]!==eu||eP[89]!==t5||eP[90]!==t6||eP[91]!==t7||eP[92]!==t8?(ef={headingProps:t2,avatarUrl:t3,comment:eu,commentRef:tJ,deleteComment:tA,editComment:tG,editHistoryComponent:void 0,hideComment:tO,onBlock:tM,onUnblock:tV,onMinimize:tc,onSuccessfulBlock:ej,isMinimized:td,commentAuthorLogin:t5,navigate:u.l,commentSubjectAuthorLogin:t6,onReplySelect:ti,unhideComment:tF,hideActions:eQ,isReply:tY,forceInlineAvatar:!0,containerStyle:em,originalDiffPathUri:e8,isOutdated:eV,commentAuthorSlug:t7,commentAuthorType:t8},eP[75]=eQ,eP[76]=td,eP[77]=eV,eP[78]=tY,eP[79]=tM,eP[80]=tA,eP[81]=tO,eP[82]=ti,eP[83]=tV,eP[84]=tF,eP[85]=e8,eP[86]=t2,eP[87]=t3,eP[88]=eu,eP[89]=t5,eP[90]=t6,eP[91]=t7,eP[92]=t8,eP[93]=ef):ef=eP[93];let t9=ef;eP[94]!==tt||eP[95]!==tY||eP[96]!==e3?(eh=()=>tY?void 0!==e3?`Reply ${tt} to Comment ${e3}`:`Reply ${tt}`:void 0!==e3?`Comment ${e3}`:”Comment”,eP[94]=tt,eP[95]=tY,eP[96]=e3,eP[97]=eh):eh=eP[97];let ne=eh;eP[98]!==eq.body||eP[99]!==tl||eP[100]!==ti?(ep=()=>{if(tl)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;ti((0,ev.E)(tJ?.current,t,eq.body))},eP[98]=eq.body,eP[99]=tl,eP[100]=ti,eP[101]=ep):ep=eP[101];let nt=ep;eP[102]===Symbol.for(“react.memo_cache_sentinel”)?(ey=(0,ex.E7)(),eP[102]=ey):ey=eP[102];let nn=ey;eP[103]!==nt?(eC={“pull-requests-diff-view:quote-reply”:nt},eP[103]=nt,eP[104]=eC):eC=eP[104];let ni=te?tQ:void 0,na=eM?eJ?0:-1:0,nr=eq.id;eP[105]!==ne||eP[106]!==eJ?(ew=eJ?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:ne()}:{},eP[105]=ne,eP[106]=eJ,eP[107]=ew):ew=eP[107];let ns=te&&q,nl=”hidden”===t1&&”pb-2″;return eP[108]!==ns||eP[109]!==nl?(eN=(0,y.$)(G,ns,nl),eP[108]=ns,eP[109]=nl,eP[110]=eN):eN=eP[110],eP[111]!==t0||eP[112]!==tY?(eS=t0&&(0,i.jsx)(“div”,{className:z,”data-is-reply”:tY,children:(0,i.jsx)(“div”,{className:K})}),eP[111]=t0,eP[112]=tY,eP[113]=eS):eS=eP[113],eP[114]!==t9||eP[115]!==eQ?(eL=eQ?void 0:(0,i.jsx)(M.RelayEnvironmentProvider,{environment:nn,children:(0,i.jsx)(o.p,{…t9})}),eP[114]=t9,eP[115]=eQ,eP[116]=eL):eL=eP[116],eP[117]!==eq.body||eP[118]!==t9||eP[119]!==eJ||eP[120]!==eV||eP[121]!==eL||eP[122]!==e1?(eD=(0,i.jsx)(l.v,{…t9,commentBody:eq.body,threadCommentCount:e1,isInDialogMode:eJ,actions:eL,isOutdated:eV}),eP[117]=eq.body,eP[118]=t9,eP[119]=eJ,eP[120]=eV,eP[121]=eL,eP[122]=e1,eP[123]=eD):eD=eP[123],eP[124]!==t0||eP[125]!==eD?(eI=(0,i.jsx)(“div”,{className:W,”data-is-nested-reply”:t0,children:eD}),eP[124]=t0,eP[125]=eD,eP[126]=eI):eI=eP[126],eP[127]!==tI?(e_=tI&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),tI]}),eP[127]=tI,eP[128]=e_):e_=eP[128],eP[129]!==eB||eP[130]!==tY?(ek=tY&&(0,i.jsx)(“div”,{className:Z,”data-is-last-child”:eB}),eP[129]=eB,eP[130]=tY,eP[131]=ek):ek=eP[131],eP[132]!==tf||eP[133]!==t1||eP[134]!==tv||eP[135]!==tY||eP[136]!==tp||eP[137]!==tq||eP[138]!==tz||eP[139]!==tW||eP[140]!==e4?(eR=”editing”===t1&&(0,i.jsx)(“div”,{className:(0,y.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,tY?”pl-0″:”pl-2″),children:(0,i.jsxs)(H.S,{ref:tS,label:”Update comment”,value:tf,onChange:tz,onPrimaryAction:tW,suggestedChangesConfig:e4,markdownErrorMessage:tv,children:[(0,i.jsx)(s.xR,{variant:”default”,onClick:tq,children:”Cancel”}),(0,i.jsx)(s.xR,{disabled:tp||!tf.length,loading:tp,variant:”primary”,onClick:tW,children:”Update”})]})}),eP[132]=tf,eP[133]=t1,eP[134]=tv,eP[135]=tY,eP[136]=tp,eP[137]=tq,eP[138]=tz,eP[139]=tW,eP[140]=e4,eP[141]=eR):eR=eP[141],eP[142]!==e5||eP[143]!==eq||eP[144]!==t1||eP[145]!==tu||eP[146]!==eW||eP[147]!==tE||eP[148]!==tx||eP[149]!==eV||eP[150]!==tY||eP[151]!==eU||eP[152]!==tH||eP[153]!==e4||eP[154]!==e6?.viewerCanApplySuggestion?(eA=”visible”===t1&&(0,i.jsxs)(“div”,{className:J,”data-is-reply”:tY,children:[eq.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:tL,className:(0,y.$)(“markdown-body”,Q,X),”comment-testid”:`Comment body html for comment ${eq.id}`,html:eq.bodyHTML}),”copilot”===eq.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”===eq.reviewVariantType&&(0,i.jsx)(“div”,{className:”mt-2″,children:(0,i.jsx)(c.Z,{commentUrl:eq.url,commentId:eq.databaseId?.toString()??””})}),eq.reactionGroups&&(0,i.jsx)(“div”,{className:”d-flex flex-direction-column mt-2″,children:(0,i.jsx)(m.P,{ref:tD,reactionGroups:eq.reactionGroups,onReact:tH,canReact:eq.viewerCanReact})})]}),e5&&(0,i.jsx)(eg,{comment:eq,commentBodyRef:tL,filePath:eW,isOutdated:eV,isThreadResolved:eU,databaseId:eq.databaseId,suggestedChangesConfig:e4,applySuggestedChangesValidationData:e5,viewerCanApplySuggestion:e6?.viewerCanApplySuggestion})]}),tu&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:tx,onClose:tE,children:”Are you sure you want to delete this comment?”})]}),eP[142]=e5,eP[143]=eq,eP[144]=t1,eP[145]=tu,eP[146]=eW,eP[147]=tE,eP[148]=tx,eP[149]=eV,eP[150]=tY,eP[151]=eU,eP[152]=tH,eP[153]=e4,eP[154]=e6?.viewerCanApplySuggestion,eP[155]=eA):eA=eP[155],eP[156]!==tY||eP[157]!==ek||eP[158]!==eR||eP[159]!==eA?(eE=(0,i.jsxs)(“div”,{className:z,”data-is-reply”:tY,children:[ek,eR,eA]}),eP[156]=tY,eP[157]=ek,eP[158]=eR,eP[159]=eA,eP[160]=eE):eE=eP[160],eP[161]!==eq.id||eP[162]!==tn||eP[163]!==ni||eP[164]!==na||eP[165]!==ew||eP[166]!==eN||eP[167]!==eS||eP[168]!==eI||eP[169]!==e_||eP[170]!==eE||eP[171]!==e2?(eT=(0,i.jsxs)(“div”,{ref:tJ,id:ni,tabIndex:na,”data-first-thread-comment”:tn,”data-marker-navigation-comment-thread-id”:e2,”data-marker-navigation-comment-id”:nr,…ew,className:eN,children:[eS,eI,e_,eE]}),eP[161]=eq.id,eP[162]=tn,eP[163]=ni,eP[164]=na,eP[165]=ew,eP[166]=eN,eP[167]=eS,eP[168]=eI,eP[169]=e_,eP[170]=eE,eP[171]=e2,eP[172]=eT):eT=eP[172],eP[173]!==eC||eP[174]!==eT?(eO=(0,i.jsx)(eb.tL,{commands:eC,children:eT}),eP[173]=eC,eP[174]=eT,eP[175]=eO):eO=eP[175],eO}:function({isAnchorable:e=!1,index:t=0,isInlineComment:n,isLastChild:a,isOutdated:r,isThreadResolved:C,lineMarkersKey:w,anchorPrefix:S=”r”,comment:L,disableDialogMode:I,enableDialogMode:_,filePath:R,gridCellId:O,hideActions:F,isFirstComment:Y=!1,isInDialogMode:ee,onDeleteLineComment:et,onQuoteReply:en=u.l,threadCommentCount:ei,threadId:ea,threadPositionNumber:er,suggestedChangesConfig:es,applySuggestedChangesValidationData:el,viewerData:eo,ghostUser:ed=d.t.ghostUser,originalDiffPathUri:ec,headingLevel:eu=”h3″}){let{addToast:em}=(0,p.Y6)(),[ef,eh]=(0,j.useState)(!1),[ep,ey]=(0,j.useState)(L.isHidden),[ej,eC]=(0,j.useState)(!1),[ew,eN]=(0,j.useState)(L.body),[eS,eL]=(0,j.useState)(!1),[eD,eI]=(0,j.useState)(!1),[e_,ek]=(0,j.useState)(“”),eR=(0,N.Kp)(),{persistCommentToStorage:eA,removePersistedCommentFromStorage:eE}=(0,V.L)({subjectId:eR,filePath:R,fileLevelComment:”FILE”===L.subjectType,threadId:L.id,handlePersistedCommentExists:({text:e})=>{e&&eN(e)}}),eT=(0,j.useRef)(null),eO=(0,j.useRef)(null),eP=(0,j.useRef)(null),[eF,e$]=(0,j.useState)(“”),eM=()=>{eT.current?.focus()};(0,j.useEffect)(()=>{if(ef){let e=window.setTimeout(eM);return()=>{window.clearTimeout(e)}}},[ef]);let{mutate:eB}=k({filePath:R,lineMarkersKey:w,onSuccess:()=>{eC(!1),eI(!1),et?.()}}),eV=async()=>{I?.(),eC(!0)},{mutate:eU}=A(R,w),{mutate:eH}=P(R,w),{mutate:eG}=D(),{mutate:eq}=T(),{mutate:ez}=E(R,w),{mutate:eK}=$({filePath:R,lineMarkersKey:w,onSuccess:()=>{eh(!1),eL(!1),eE()}}),eW=(0,j.useCallback)(()=>{eL(!0);let e=(0,U.u)(ew,es?.sourceContentFromDiffLines??””);if(!e.isValid){ek(e.errorMessage),eL(!1);return}eK({commentId:String(L.databaseId),body:ew,bodyVersion:L.bodyVersion},{onError:()=>{eL(!1),em({type:”error”,message:”Failed to update comment”})}})},[em,ew,L,es?.sourceContentFromDiffLines,eK]),eZ=L.databaseId?.toString(),eQ=eZ?`${S}${eZ}`:void 0,eX=eQ&&h.fV?new URL(`${h.fV.pathname}#${eQ}`,h.fV.origin).toString():””,eJ=(0,j.useRef)(null);(0,B.u)({isAnchorable:e,commentId:eZ,commentAnchor:eQ,containerRef:eJ});let eY=t>0,e0=t>1,e1=ef?”editing”:ep?”hidden”:”visible”,e2={headingProps:{as:eu},avatarUrl:L.author?.avatarUrl??ed.avatarUrl,comment:{…L,url:eX,referenceText:L.reference.text??`#${L.reference.number}`},commentRef:eJ,deleteComment:eV,editComment:()=>{eh(!0)},editHistoryComponent:void 0,hideComment:e=>{if(!L.databaseId)throw Error(“Comment not found”);eU({commentDatabaseId:L.databaseId,reason:e},{onError:()=>{eL(!1),e$(“Failed to hide comment”)},onSuccess:()=>ey(!0)})},onBlock:(e,t,n,i,a,r)=>eG({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>e$(“Failed to block user”),onSuccess:()=>{t&&ey(!0)}}),onUnblock:(e,t)=>eq({organizationLogin:e,userLogin:t},{onError:()=>e$(“Failed to unblock user”)}),onMinimize:ey,onSuccessfulBlock:()=>{setTimeout(()=>h.cg?.location.reload(),800)},isMinimized:ep,commentAuthorLogin:L.author?.login??ed.login,navigate:u.l,commentSubjectAuthorLogin:L.reference?.author?.login??””,onReplySelect:en,unhideComment:()=>{if(!L.databaseId)throw Error(“Comment not found”);eH({commentDatabaseId:L.databaseId},{onError:()=>{eL(!1),e$(“Failed to unhide comment”)},onSuccess:()=>ey(!1)})},hideActions:F,isReply:eY,forceInlineAvatar:!0,containerStyle:{},originalDiffPathUri:ec,isOutdated:r,commentAuthorSlug:”copilot”===L.reviewVariantType?”copilot-pull-request-reviewer”:void 0,commentAuthorType:”copilot”===L.reviewVariantType?l.S.Bot:void 0},e3=(0,j.useMemo)(()=>(0,ex.E7)(),[]);return(0,i.jsx)(eb.tL,{commands:{“pull-requests-diff-view:quote-reply”:()=>{if(ef)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;en((0,ev.E)(eJ?.current,t,L.body))}},children:(0,i.jsxs)(“div”,{ref:eJ,id:e?eQ:void 0,tabIndex:n?ee?0:-1:0,”data-first-thread-comment”:Y,”data-marker-navigation-comment-thread-id”:ea,”data-marker-navigation-comment-id”:L.id,…ee?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:eY?void 0!==er?`Reply ${t} to Comment ${er}`:`Reply ${t}`:void 0!==er?`Comment ${er}`:”Comment”}:{},className:(0,y.$)(G,e&&q,”hidden”===e1&&”pb-2″),children:[e0&&(0,i.jsx)(“div”,{className:z,”data-is-reply”:eY,children:(0,i.jsx)(“div”,{className:K})}),(0,i.jsx)(“div”,{className:W,”data-is-nested-reply”:e0,children:(0,i.jsx)(l.v,{…e2,commentBody:L.body,threadCommentCount:ei,isInDialogMode:ee,actions:F?void 0:(0,i.jsx)(M.RelayEnvironmentProvider,{environment:e3,children:(0,i.jsx)(o.p,{…e2})}),isOutdated:r})}),eF&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),eF]}),(0,i.jsxs)(“div”,{className:z,”data-is-reply”:eY,children:[eY&&(0,i.jsx)(“div”,{className:Z,”data-is-last-child”:a}),”editing”===e1&&(0,i.jsx)(“div”,{className:(0,y.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,eY?”pl-0″:”pl-2″),children:(0,i.jsxs)(H.S,{ref:eT,label:”Update comment”,value:ew,onChange:e=>{eA({text:e}),eN(e),ek(void 0)},onPrimaryAction:eW,suggestedChangesConfig:es,markdownErrorMessage:e_,children:[(0,i.jsx)(s.xR,{variant:”default”,onClick:()=>{eh(!1),eE(),eN(L.body)},children:”Cancel”}),(0,i.jsx)(s.xR,{disabled:eS||!ew.length,loading:eS,variant:”primary”,onClick:eW,children:”Update”})]})}),”visible”===e1&&(0,i.jsxs)(“div”,{className:J,”data-is-reply”:eY,children:[L.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:eO,className:(0,y.$)(“markdown-body”,Q,X),”comment-testid”:`Comment body html for comment ${L.id}`,html:L.bodyHTML}),”copilot”===L.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”===L.reviewVariantType&&(0,i.jsx)(“div”,{className:”mt-2″,children:(0,i.jsx)(c.Z,{commentUrl:L.url,commentId:L.databaseId?.toString()??””})}),L.reactionGroups&&(0,i.jsx)(“div”,{className:”d-flex flex-direction-column mt-2″,children:(0,i.jsx)(m.P,{ref:eP,reactionGroups:L.reactionGroups,onReact:(e,t)=>{if(!L.databaseId)throw Error(“Comment not found”);setTimeout(()=>eP.current?.focus(),0),ez({commentDatabaseId:L.databaseId,threadId:ea,reaction:e,viewerHasReacted:t},{onError:()=>{eL(!1),em({type:”error”,message:”Failed to react to comment”})}})},canReact:L.viewerCanReact})})]}),el&&(0,i.jsx)(eg,{comment:L,commentBodyRef:eO,filePath:R,isOutdated:r,isThreadResolved:C,databaseId:L.databaseId,suggestedChangesConfig:es,applySuggestedChangesValidationData:el,viewerCanApplySuggestion:eo?.viewerCanApplySuggestion})]}),ej&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:eD,onClose:e=>{“confirm”===e?(eI(!0),eB({commentId:L.id,threadId:ea,filePath:R},{onError:()=>{eC(!1),em({type:”error”,message:”Failed to delete comment”}),eI(!1)}})):(O&&_?.(O),eC(!1),eI(!1))},children:”Are you sure you want to delete this comment?”})]})]})]})})};function ej(){setTimeout(eC,800)}function eC(){return h.cg?.location.reload()}try{ey.displayName||(ey.displayName=”ReviewThreadComment”)}catch{}},65787:(e,t,n)=>{n.d(t,{U:()=>r});let i=e=>{let t=getComputedStyle(e,null);return!!t&&”function”==typeof t.getPropertyValue&&[“overflow”,”overflow-y”,”overflow-x”].some(e=>{let n=t.getPropertyValue(e);return”auto”===n||”scroll”===n})},a=(e,t)=>e&&null!==e.parentNode?a(e.parentNode,t.concat([e])):t;function r(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(let t of a(e.parentNode,[]))if((t instanceof HTMLElement||t instanceof SVGElement)&&i(t))return t;return document.scrollingElement||document.documentElement}}},65821:(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{}},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)()]})},68534:(e,t,n)=>{n.d(t,{F:()=>i});function i(e){return e.slice(0,7)}},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})}},70109:(e,t,n)=>{n.d(t,{S:()=>o});var i=n(74848),a=n(68273),r=n(16522),s=n(42118),l=n(27011);let o=(0,a.GV)()?e=>{let t,n,a,o,d,c,u,m,f=(0,r.c)(22);f[0]!==e?({ref:n,children:t,…a}=e,f[0]=e,f[1]=t,f[2]=n,f[3]=a):(t=f[1],n=f[2],a=f[3]);let h=(0,l.Yp)(),{baseRepository:p}=(0,l.GK)(),g=(0,l.L3)();f[4]!==h.id?(o={id:h.id},f[4]=h.id,f[5]=o):o=f[5];let x=`${p.ownerLogin}/${p.name}`;f[6]!==p.id||f[7]!==x?(d={databaseId:p.id,nwo:x,slashCommandsEnabled:!1},f[6]=p.id,f[7]=x,f[8]=d):d=f[8],f[9]!==g.effectiveRange.baseOid||f[10]!==g.effectiveRange.headOid?(c={startCommitOid:g.effectiveRange.baseOid,endCommitOid:g.effectiveRange.headOid},f[9]=g.effectiveRange.baseOid,f[10]=g.effectiveRange.headOid,f[11]=c):c=f[11],f[12]!==h.number||f[13]!==o||f[14]!==d||f[15]!==c?(u={type:”pull_request”,id:o,pullRequestNumber:h.number,repository:d,comparison:c},f[12]=h.number,f[13]=o,f[14]=d,f[15]=c,f[16]=u):u=f[16];let b=u;return f[17]!==t||f[18]!==n||f[19]!==a||f[20]!==b?(m=(0,i.jsx)(s.hF,{…a,ref:n,placeholder:”Leave a comment”,actions:t,subject:b,showLabel:!1}),f[17]=t,f[18]=n,f[19]=a,f[20]=b,f[21]=m):m=f[21],m}:({ref:e,children:t,…n})=>{let a=(0,l.Yp)(),{baseRepository:r}=(0,l.GK)(),o=(0,l.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:o.effectiveRange.baseOid,endCommitOid:o.effectiveRange.headOid}};return(0,i.jsx)(s.hF,{…n,ref:e,placeholder:”Leave a comment”,actions:t,subject:d,showLabel:!1})};o.displayName=”ConversationCommentBox”},70719:(e,t,n)=>{n.d(t,{U:()=>d});var i=n(16522),a=n(96379),r=n(97665),s=n(94747),l=n(79472),o=n(21067);function d(e){let t,n,a,o,d=(0,i.c)(10),{onSuccess:u,onError:m}=e,f=(0,r.jE)();return d[0]!==f?(t=async e=>{f.setQueryData((0,l.w$)(),t=>({…t,…e}))},d[0]=f,d[1]=t):t=d[1],d[2]!==u?(n=()=>{u()},d[2]=u,d[3]=n):n=d[3],d[4]!==m?(a=e=>{m(e)},d[4]=m,d[5]=a):a=d[5],d[6]!==t||d[7]!==n||d[8]!==a?(o={mutationFn:c,onMutate:t,onSuccess:n,onError:a},d[6]=t,d[7]=n,d[8]=a,d[9]=o):o=d[9],(0,s.n)(o)}async function c(e){let{commentsPreference:t,lineSpacing:n,splitPreference:i}=e;if(!(0,o.M3)())return;let r={};t&&(r={…r,commentsPreference:t}),n&&(r={…r,lineSpacing:n}),i&&(r={…r,diff:i});let s=await (0,a.Sr)(“/users/diffview”,{method:”POST”,headers:{Accept:”application/json”},body:r}),l=await s.json();if(s.ok)return l;throw Error(l.error||”Unknown error occurred”,{cause:s.status})}},70843:(e,t,n)=>{n.d(t,{L:()=>r});var i=n(16522),a=n(96540);function r(e){let t,n,r=(0,i.c)(3);r[0]!==e?(t=()=>{if(!e)return;let t=document.querySelector(“.footer”);if(t)return t.hidden=!0,()=>{t.hidden=!1}},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,a.useEffect)(t,n)}},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)}},71833:(e,t,n)=>{n.d(t,{B:()=>r});var i=n(25407),a=n(96379);async function r(e,t){if(!t)return;let n=new FormData;n.set(“file_tree_visible”,e?”true”:”false”),(0,a.DI)((0,i.h6D)(t),{method:”PUT”,body:n,headers:{Accept:”application/json”}})}},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:y,isButtonDisabled:j,dismissError:C,onDismiss:w,onReopen:N,className:S}=e,[L,D]=(0,r.useState)(!1),{isDismissable:I,isReopenable:_,resourceName:k,toggleButtonLabel:R}=(f=(0,a.c)(6),p=!(h=y.isDismissed),g=”alert”,y.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=j||!y.viewerCanDismiss,E=j||!y.viewerCanReopen;return b[0]!==y||b[1]!==L||b[2]!==C||b[3]!==w?(t=L&&(0,i.jsx)(d.U,{setOpen:D,count:1,error:C,dismissalOptions:y.dismissalOptions,onSubmit:e=>{let{resolution:t,dismissalComment:n}=e;return w({reason:t,resolutionNote:n},{onSuccess:()=>D(!1)})},delegatedAlertDismissalEnabled:!1,codeSecurity:y.source===o.vk.CodeScanning}),b[0]=y,b[1]=L,b[2]=C,b[3]=w,b[4]=t):t=b[4],b[5]!==S||b[6]!==A||b[7]!==I||b[8]!==k||b[9]!==R?(n=I&&(0,i.jsxs)(“div”,{className:(0,l.$)(“d-flex flex-items-center flex-wrap”,S),children:[(0,i.jsx)(s.Q,{“aria-label”:R,className:”mr-2″,onClick:()=>D(!0),disabled:A,children:R}),(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[“Dismissing the “,k,” will mark this conversation as resolved.”]})]}),b[5]=S,b[6]=A,b[7]=I,b[8]=k,b[9]=R,b[10]=n):n=b[10],b[11]!==S||b[12]!==E||b[13]!==_||b[14]!==N||b[15]!==R?(c=_&&(0,i.jsx)(“div”,{className:(0,l.$)(“d-flex flex-items-center flex-wrap”,S),children:(0,i.jsx)(s.Q,{“aria-label”:R,onClick:N,disabled:E,children:R})}),b[11]=S,b[12]=E,b[13]=_,b[14]=N,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,{$:()=>l,g:()=>o});var i=n(55514),a=n(99279),r=n(86320),s=n(86596);let l=a.G.createQueryRouteConfig(“pullRequestsConversationsRoute”,{path:”/:owner/:repo/pull/:pr_number”,queries:[(0,r.Y)(),(0,i.D)({partialName:”Body”,queryDeps:({pathname:e})=>({pathname:`${e}/partials/body`})}),(0,i.D)({partialName:”Timeline”,queryDeps:({pathname:e})=>({pathname:`${e}/partials/timeline`}),type:s.g.Deferred}),(0,i.D)({partialName:”Sidebar”,queryDeps:({pathname:e})=>({pathname:`${e}/partials/sidebar`}),type:s.g.Deferred}),(0,i.D)({partialName:”TimelineActions”,queryDeps:({pathname:e})=>({pathname:`${e}/partials/timeline_actions`})})],index:!0}),o=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}},77046:(e,t,n)=>{n.d(t,{A:()=>i});let i={“file-tree-row”:”DiffFileTree-module__file-tree-row–GJi_6″}},78252:(e,t,n)=>{n.d(t,{$:()=>l});var i=n(74848),a=n(38621),r=n(5524),s=n(34720);let l=e=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.l.Divider,{}),(0,i.jsx)(s.t,{eventContext:{prx:!0},leadingVisual:(0,i.jsx)(a.CopilotIcon,{}),fileDiffReference:e.copilotChatReference})]});try{l.displayName||(l.displayName=”CopilotDiffChatBlobActionsMenuItems”)}catch{}},79036:(e,t,n)=>{n.d(t,{S:()=>c,Xh:()=>d,GF:()=>u});var i=n(74848),a=n(68273),r=n(16522),s=n(34164),l=n(48505);let o=”AnnotationIcon-module__AnimatedAnnotationIcon–rXSEJ”;function d({annotationLevel:e,…t}){let{icon:n,…a}=u[e];return function({fill:e,stroke:t,ariaLabel:n,svgHtml:a,className:r}){return(0,i.jsx)(“svg”,{“aria-label”:n,className:r,fill:e,height:”24″,stroke:t,strokeLinecap:”round”,strokeLinejoin:”round”,strokeWidth:”2″,style:{boxShadow:”none”},viewBox:”0 0 24 24″,width:”24″,xmlns:”http://www.w3.org/2000/svg”,children:a})}({…n,…a,…t})}let c=(0,a.GV)()?function(e){let t,n,a,l,c=(0,r.c)(8);return c[0]!==e?({className:t,…n}=e,c[0]=e,c[1]=t,c[2]=n):(t=c[1],n=c[2]),c[3]!==t?(a=(0,s.$)(o,t),c[3]=t,c[4]=a):a=c[4],c[5]!==n||c[6]!==a?(l=(0,i.jsx)(d,{…n,className:a}),c[5]=n,c[6]=a,c[7]=l):l=c[7],l}:function({className:e,…t}){return(0,i.jsx)(d,{…t,className:(0,s.$)(o,e)})},u={[l.UZ.Failure]:{priority:1,ariaLabel:”Check failure”,primaryColor:”danger.fg”,primaryColorClass:”fgColor-danger”,borderColor:”borderColor-danger-emphasis”,icon:{fill:”var(–bgColor-danger-emphasis, var(–color-danger-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”15″,x2:”9″,y1:”9″,y2:”15″}),(0,i.jsx)(“line”,{x1:”9″,x2:”15″,y1:”9″,y2:”15″})]})}},[l.UZ.Warning]:{priority:2,ariaLabel:”Check warning”,primaryColor:”attention.fg”,primaryColorClass:”fgColor-attention”,borderColor:”borderColor-attention-emphasis”,icon:{fill:”var(–bgColor-attention-emphasis, var(–color-attention-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”8″,y2:”12″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”16″,y2:”16″})]})}},[l.UZ.Notice]:{priority:3,ariaLabel:”Check notice”,primaryColor:”fg.muted”,primaryColorClass:”fgColor-muted”,borderColor:”fgColor-muted”,icon:{fill:”var(–bgColor-neutral-emphasis, var(–color-neutral-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”16″,y2:”12″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”8″,y2:”8″})]})}}};try{d.displayName||(d.displayName=”AnnotationIcon”)}catch{}try{c.displayName||(c.displayName=”AnimatedAnnotationIcon”)}catch{}},80081:(e,t,n)=>{n.d(t,{EJ:()=>a,Lm:()=>r,o_:()=>i});function i({suggestedChange:e,hasCommitRange:t,isOutdated:n,isPending:i,isResolved:a,pullRequestIsClosed:r,pullRequestIsInMergeQueue:s,userCanApplySuggestion:l,applySuggestedChangesValidationData:o,suggestedChangesConfig:d}){let{lineRange:c}=o;if(n)return{isValid:!1,reason:”This suggestion is outdated and cannot be applied.”};if(i)return{isValid:!1,reason:”This suggestion is part of a pending comment and cannot be applied.”};if(a)return{isValid:!1,reason:”This suggestion is part of a resolved comment and cannot be applied.”};if(r)return{isValid:!1,reason:”This suggestion cannot be applied because the pull request is closed.”};if(s)return{isValid:!1,reason:”This suggestion cannot be applied because the pull request is queued to merge.”};if(!l)return{isValid:!1,reason:”You do not have permission to apply this suggestion.”};if(!c)return{isValid:!1,reason:”This suggestion does not have a valid line range.”};if(t)return{isValid:!1,reason:”Unable to apply suggestions when viewing a specific commit range.”};if(!d)return{isValid:!1,reason:”Unable to determine the validity of this suggestion.”};if(!d?.isValidSuggestionRange)return{isValid:!1,reason:”Unable to apply suggestions on deleted lines.”};let u=d?.sourceContentFromDiffLines,m=e.suggestion.join(` `);return 0!==e.suggestion.length&&m===u?{isValid:!1,reason:”This suggestion is invalid because no changes were made to the code.”}:{isValid:!0}}function a(e,t){return t.length>=50?{isValid:!1,reason:”Unable to commit due to too many changes in the batch.”}:t.find(t=>t.threadId===e.threadId)||function(e,t){for(let a of t)if(e.path===a.path){var n,i;return n=e.lineRange,i=a.lineRange,n.endLineNumber>=i.startLineNumber&&n.startLineNumber<=i.endLineNumber}return!1}(e,t)?{isValid:!1,reason:"Unable to commit due to other pending changes affecting this line."}:{isValid:!0}}function r(e){if(!e||e.subjectType?.toUpperCase()!=="LINE")return;let t=e.positioning??e.subject;if(!t)return;let n=t.startDiffSide??t.endDiffSide;if(!n||"isOutdated"in t&&t.isOutdated||!t.endLine||!t.endDiffSide)return;let i=t.startLine??t.endLine;return{endLineNumber:t.endLine,endOrientation:t.endDiffSide,startLineNumber:i,startOrientation:n||"RIGHT"}}},81070:(e,t,n)=>{n.d(t,{X:()=>s});var i=n(74848),a=n(12683),r=n(96540);function s({children:e,onObserve:t,onUnobserve:n,sx:s,…l}){let o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(o.current){let e=o.current;return t?.(e),()=>n?.(e)}},[o,t,n]),(0,i.jsx)(a.az,{sx:s,…l,ref:o,children:e})}try{s.displayName||(s.displayName=”ObservableBox”)}catch{}},81075:(e,t,n)=>{n.d(t,{_:()=>s});var i=n(50894),a=n(37351),r=n(44953);function s(e,t,n){return(0,a._)(e,t),(0,r._)(n,”get”),(0,i._)(e,n)}},82130:(e,t,n)=>{n.d(t,{q:()=>l});var i=n(68273),a=n(16522),r=n(30459),s=n(96540);let l=(0,i.Z6)()?function(){let e,t,n=(0,a.c)(4),{sendAnalyticsEvent:i}=(0,r.s)();n[0]!==i?(e=(e,t,n)=>{i(e,t,void 0===n?{}:n)},n[0]=i,n[1]=e):e=n[1];let s=e;return n[2]!==s?(t={sendPullRequestAnalyticsEvent:s},n[2]=s,n[3]=t):t=n[3],t}:function(){let{sendAnalyticsEvent:e}=(0,r.s)();return{sendPullRequestAnalyticsEvent:(0,s.useCallback)((t,n,i={})=>{e(t,n,i)},[e])}}},82603:(e,t,n)=>{n.d(t,{dG:()=>u,hG:()=>h,o5:()=>m});var i=n(68273),a=n(16522),r=n(96540),s=n(97286),l=n(65510),o=n(96379),d=n(20622);function c(e){return{queryKey:[d.uT.codeowners,e],queryFn:async()=>{let t=`${e}/page_data/${d.uT.codeowners}`,n=await (0,o.QJ)(t);if(!n.ok)throw Error(`HTTP ${n.status}`);return await n.json()},staleTime:1/0}}let u=(0,i.Z6)()?function(e){let t,n,i=(0,a.c)(6),{basePath:r,initialData:l}=e;i[0]!==r?(t=c(r),i[0]=r,i[1]=t):t=i[1];let{queryFn:o,queryKey:d}=t;return i[2]!==l||i[3]!==o||i[4]!==d?(n={queryKey:d,queryFn:o,initialData:l,staleTime:1/0},i[2]=l,i[3]=o,i[4]=d,i[5]=n):n=i[5],(0,s.I)(n)}:function({basePath:e,initialData:t}){let{queryFn:n,queryKey:i}=c(e);return(0,s.I)({queryKey:i,queryFn:n,initialData:t,staleTime:1/0})},m=(0,i.Z6)()?function(e){let t,n,i,r=(0,a.c)(8),{basePath:s,diffPath:o}=e;r[0]!==s?(t=c(s),r[0]=s,r[1]=t):t=r[1];let{queryFn:d,queryKey:u}=t;r[2]!==o?(n=e=>h({codeownersData:e,diffPath:o}),r[2]=o,r[3]=n):n=r[3];let m=n;return r[4]!==d||r[5]!==u||r[6]!==m?(i={queryKey:u,queryFn:d,staleTime:1/0,select:m},r[4]=d,r[5]=u,r[6]=m,r[7]=i):i=r[7],(0,l.U)(i)}:function({basePath:e,diffPath:t}){let{queryFn:n,queryKey:i}=c(e);return(0,l.U)({queryKey:i,queryFn:n,staleTime:1/0,select:(0,r.useCallback)(e=>h({codeownersData:e,diffPath:t}),[t])})},f={isOwnedByViewer:!1,owners:[],ruleLineNumber:void 0,ruleUrl:void 0};function h({diffPath:e,codeownersData:t}){if(!t)return f;let n=t.ownershipByPath[e];return n?{isOwnedByViewer:n.isOwnedByViewer,owners:n.owners||[],ruleLineNumber:n.ruleLineNumber,ruleUrl:n.ruleUrl}:f}},83873:(e,t,n)=>{n.d(t,{v:()=>O,n:()=>T});var i=n(74848),a=n(68273),r=n(96540),s=n(71323),l=n(97283),o=n(87134),d=n(1932),c=n(21132),u=n(15697);function m({diffSummaries:e,diffSummariesArray:t,loadedPathDigests:n,loadingPathDigests:i,selectedPathDigest:a}){let r=!0,s=t??Object.values(e),l=s.findIndex(e=>e.pathDigest===a);return s.map(({path:e,pathDigest:t},a)=>{let s,o;switch(!0){case n.has(t):s=c.s.Loaded;break;case i.has(t):s=c.s.Loading;break;default:s=c.s.NotLoaded}let d=!1;return s===c.s.Loaded?(o=”RENDER”,d=!1):(a===l?(o=”EAGER_AUTO_LOAD”,d=!0):(o=ae.loadSolo&&e.loadingStatus===c.s.NotLoaded);if(t)return[t]}let i=t?e.findIndex(e=>e.pathDigest===t.pathDigest):e.findIndex(e=>e.loadingStatus===c.s.NotLoaded);if(-1===i)return[];let a=e[i];if(a&&a.loadSolo&&a.loadingStatus===c.s.NotLoaded)return[a];let r=[];for(let t=i;t=4))break}return r}var h=n(70170),p=n(56092),g=n(91747),x=n(61583),b=n(79472),y=n(43362),j=n(48845),C=n(20622),w=n(96379),N=n(16235),S=n(69599);function L({basePath:e,effectiveRange:t,hideWhitespace:n}){return[C.uT.diffEntries,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`,`hideWhitespace:${n}`]}async function D(e){let t=(0,N.S)(),n=L(e),i=await _(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 I(e){let t,n=(0,N.S)(),i=L(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 _({…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 _({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/${C.uT.diffEntries}?${o.toString()}`;try{let e=await (0,w.Sr)(c,{signal:r});if(r?.aborted)return;let t=await (0,j.hp)(e);return(0,j.R)(e,t),t??void 0}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw e}}function k(e,t,n,i){return[C.uT.diffContextLines,e,t,n,i]}async function R({contextLineRanges:e,basePath:t,path:n,w:i=”0″,fullDiff:a,effectiveRange:r}){let s=new URLSearchParams;for(let t of(s.append(“path”,n),e))s.append(“context_line_ranges[]”,JSON.stringify(t));s.append(“w”,i),r.baseOid===a.baseOid?s.append(“range”,r.headOid):s.append(“range”,`${r.baseOid}..${r.headOid}`);let l=`${t}/page_data/${C.uT.diffContextLines}?${s.toString()}`,o=await (0,w.QJ)(l);if(o.ok)return await o.json()??void 0}var A=n(88008);let E=(0,r.createContext)(null),T=(0,a.Z6)()?function(e){let t=(0,r.useContext)(E);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,s.P)(t,e)}:function(e){let t=(0,r.useContext)(E);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,s.P)(t,e)},O=({initData:e,children:t})=>{var n,a,s,l,o,d;let c,u,m=(0,r.useRef)(null),f=(0,g.u)(“prx_files_lite_throttle”),h=(0,g.u)(“prx_files_medium_throttle”),p=(0,b.Qn)(e.user.viewSettings.hideWhitespace),j=e.user.viewSettings.commentsPreference,C=(0,y.Wp)(e.diffSummaries),w=(0,y.Be)(e.diffSummaries),S=(0,y.wm)(e.viewerPendingReview),D=(0,y.Sl)(e.diffContents),I=(0,y.jH)(e.markers,e.diffSummaries),_=(0,A.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,N.S)(),u=L({basePath:s,effectiveRange:{baseOid:n??o.baseOid,headOid:a??o.headOid},hideWhitespace:d}),c.setQueryData(u,l),m.current=P({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:w,initialSummariesViewedStatus:w,initialSummariesViewedCount:e.user.viewedFilesCount,diffEntries:D,commentsPreference:j,initialDiffSummaries:C,initialLoadedPathDigests:new Set(e.diffContents.map(e=>e.pathDigest)),markers:I,basePath:e.pullRequest.pathName,pendingReview:S,prxFilesLiteThrottle:f,prxFilesMediumThrottle:h,pullRequest:e.pullRequest,baseRepository:e.repository,selectedPathDigest:(0,x.jU)((0,x.o9)()),initialActiveBatch:_.length>0?_:void 0,showChangeGroupPreference:e.user.viewSettings.showChangeGroups})),(0,i.jsx)(E,{value:m.current,children:t})},P=e=>(0,l.y)()((0,o.lt)((…t)=>({…(({changeGroupGeneration:{canAccessChangeGroups:e,changeGroups:t,changeGroupFeedbackOptions:n,latestChangeGroupOrchestration:i,changeGroupGenerationChannel:a,unavailableReason:r},showChangeGroupPreference:s})=>l=>({changeGroupGeneration:{canAccessChangeGroups:e,changeGroups:t,changeGroupFeedbackOptions:n,latestChangeGroupOrchestration:i,changeGroupGenerationChannel:a,unavailableReason:r},showChangeGroupPreference:s,changeGroupGenerationActions:{updateChangeGroupGeneration:e=>l(t=>({changeGroupGeneration:{…t.changeGroupGeneration,…e},showChangeGroupPreference:t.showChangeGroupPreference}),void 0,”updateChangeGroupGeneration”),updateChangeGroupPreference:e=>l(t=>({changeGroupGeneration:t.changeGroupGeneration,showChangeGroupPreference:e}),void 0,”updateChangeGroupPreference”)}}))(e)(…t),…((e,t)=>({codeowners:void 0,codeownersActions:{setCodeowners:t=>{e({codeowners:t},void 0,”updateCodeowners”)}}}))(…t),…(({baseOid:e,headOid:t,selectedCommitRange:n,comparisonView:i,hideWhitespace:a})=>r=>({comparisonInfo:{fullDiff:{baseOid:e,headOid:t},selectedRange:n,effectiveRange:n??{baseOid:e,headOid:t},hideWhitespace:a,comparisonView:i},isComparisonOutdated:!1,comparisonInfoActions:{updateWhitespace:e=>r(t=>({comparisonInfo:{…t.comparisonInfo,hideWhitespace:e}}),void 0,”comparisonInfo#updateWhitespace”),markComparisonOutdated:()=>r(()=>({isComparisonOutdated:!0}),void 0,”comparisonInfo#markComparisonOutdated”)}}))(e)(…t),…((e,t)=>({diffFilter:{state:{activeChangeGroupId:void 0,filterText:””,fileExtensions:{},unselectedFileExtensions:new Set,showDeletedFiles:!0,showOnlyManifestFiles:!1,showOnlyOwnedFiles:!1,showVendoredFiles:!0,showViewedFiles:!0},filtersInteractedWith:!1},diffFilterActions:{updateDiffFilter:(n,i)=>{e({diffFilter:{…t().diffFilter,state:{…t().diffFilter.state,…n},filtersInteractedWith:t().diffFilter.filtersInteractedWith||!!i}},void 0,”updateFilters”)},clearAllFilters:()=>{e({diffFilter:{…t().diffFilter,state:{…t().diffFilter.state,filterText:””,unselectedFileExtensions:new Set,showOnlyOwnedFiles:!1,showDeletedFiles:!0,showOnlyManifestFiles:!1,showVendoredFiles:!0,showViewedFiles:!0},filtersInteractedWith:!0}},void 0,”clearAllFilters”)}}}))(…t),…(({initialDiffSummaries:e,initialSummariesViewedStatus:t,initialSummariesViewedCount:n})=>(i,a)=>({diffSummaries:e,summariesViewedCount:n,summariesViewedStatus:t,codeowners:void 0,getPathDigestFromThreadID:e=>{for(let t of Object.values(a().diffSummaries))if(t.markersMap){for(let[n,i]of Object.entries(t.markersMap))if(i.threads.some(t=>Number(t.id)===Number(e)))return t.pathDigest}},getPathDigestFromAnnotationID:e=>{for(let t of Object.values(a().diffSummaries))if(t.markersMap){for(let[n,i]of Object.entries(t.markersMap))if(i.annotations.some(t=>t.id===e))return t.pathDigest}},diffSummariesActions:{setDiffSummaries:e=>{i({diffSummaries:e},void 0,”updateDiffSummaries”)},setDiffViewed:(e,t)=>{i(n=>n.diffSummaries?{summariesViewedStatus:(0,d.jM)(n.summariesViewedStatus,n=>{n[e]=t}),summariesViewedCount:n.summariesViewedCount+(t?1:-1),diffSummaries:(0,d.jM)(n.diffSummaries,n=>{n[e]&&(n[e].markedAsViewed=t)})}:n)},onCommentThreadAdded:({path:e,diffLineKey:t,startPosition:n,threadID:a})=>{i((0,d.jM)(i=>{if(!i.diffSummaries)return;let r=i.diffSummaries[e];if(!r)return;let s=r.markersMap??{};s[t]||(s[t]={threads:[],annotations:[]}),s[t].threads.push({id:parseInt(a),start:n}),r.totalCommentsCount=(r.totalCommentsCount||0)+1}),void 0,”commentAddedForDiffSummary”)},onCommentThreadDeleted:({path:e,threadID:t})=>{i((0,d.jM)(n=>{if(!n.diffSummaries)return;let i=n.diffSummaries[e];if(i&&i?.totalCommentsCount&&i?.markersMap)for(let[e,n]of Object.entries(i.markersMap))n.threads=n.threads.filter(e=>e.id!==parseInt(t)),0===n.threads.length&&0===n.annotations.length&&delete i.markersMap[e]}),void 0,”commentDeletedForDiffSummary”)}}}))(e)(…t),…(({markers:e})=>(t,n)=>({markers:e,getThread:(e,t,i)=>{let a=n().markers;if(a)return a[t]?.[i]?.threads?.find(t=>Number(t.id)===e)},getThreadFromCommentID:e=>{let t=n().markers;if(!t)return;let i=Object.values(t).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??[]));if(i){for(let t of Object.values(i))if(t?.commentsData?.comments.some(t=>t.databaseId===e))return t}},getAnnotationFromID:e=>{let t=n().markers;if(!t)return;let i=Object.values(t).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??[]));if(i){for(let t of Object.values(i))if(t.databaseId===e)return t}},markersActions:{updateThread:(e,i,a,r)=>{let s=n().markers;if(!s)return;let l=r(s[i]?.[a]?.threads?.find(t=>Number(t.id)===e));l&&t({markers:(0,d.jM)(s,t=>{let n=t[i]?.[a]?.threads?.findIndex(t=>Number(t.id)===e);if(void 0===n||-1===n)t[i]||(t[i]={}),t[i][a]||(t[i][a]={threads:[],annotations:[]}),t[i][a].threads.push(l);else if(t[i]&&t[i][a]&&-1!==n){let e=l.positioning??t[i][a].threads[n]?.positioning,r=l.subject??t[i][a].threads[n]?.subject,s={…l,positioning:e,subject:r};t[i][a].threads[n]=s}})},void 0,”updateThread”)},updateThreads:e=>{let i=n().markers;i&&t({markers:(0,d.jM)(i,t=>{for(let n of Object.keys(i)){let i=t[n];if(i)for(let t of Object.keys(i)){let n=i[t];if(!n)continue;let a=n.threads;a&&(n.threads=e(a))}}})})},deleteThreadComment:(e,i,a,r)=>{let s=”not_found”,l=n().markers;return l&&t({markers:(0,d.jM)(l,t=>{let n=t[a]?.[r]?.threads?.find(t=>Number(t.id)===e);if(!n){s=”not_found”;return}let l=n.commentsData,o=l?.comments.filter(e=>e.id!==i)??[];if(!l||l.comments.length===o.length){s=”not_found”;return}if(0===o.length){s=”thread_deleted”;let n=t[a]?.[r]?.threads;if(n){let t=n.findIndex(t=>Number(t.id)===e);-1!==t&&n.splice(t,1)}}else s=”comment_deleted”,l&&(l.comments=o)})},void 0,”deleteThreadComment”),s},updateThreadComment:({threadID:e,filePath:i,lineMarkersKey:a,match:r,transform:s})=>{let l=n().markers;l&&t({markers:(0,d.jM)(l,t=>{let n,l=t[i]?.[a]?.threads?.find(t=>Number(t.id)===e);if(!l)return;let o=l.commentsData,d=o?.comments.findIndex(r);”number”==typeof d&&-1!==d&&(n=o?.comments[d]);let c=s(n);c&&(-1===d||”number”!=typeof d?o?.comments.push(c):o&&o.comments&&(o.comments[d]=c))})},void 0,”updateThreadComment”)}}}))(e)(…t),…(({prxFilesLiteThrottle:e,prxFilesMediumThrottle:t,initialDiffSummaries:n,initialLoadedPathDigests:i,selectedPathDigest:a})=>(r,s)=>{let l;return l=t?100:50*!!e,{entries:m({diffSummaries:n,loadedPathDigests:i,loadingPathDigests:new Set,selectedPathDigest:a}),selectedPathDigest:a,getSelectedPathDigest:()=>s().selectedPathDigest,progressiveDiffQueue:[],queueRunning:!1,internalProgressiveDiffsActions:{loadSelectedEntries:(0,h.n)(async e=>{if(0===e.length)return;let t=e.map(e=>e.path),n=e.map(e=>e.pathDigest),i=s().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),a=s().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);r(e=>({entries:m({diffSummaries:e.diffSummaries,loadedPathDigests:new Set(i),loadingPathDigests:new Set([…a,…n]),selectedPathDigest:e.selectedPathDigest})}),void 0,”loadSelectedEntries#preFetch”);let{loadDiffEntries:l}=s().diffEntriesActions,o=(0,u.i)({paths:new Set(t),diffSummaries:s().diffSummaries}),d=await l({paths:t,contextRanges:o});if(!d||0===d.length){let e=[…s().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest)],t=s().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);return r({entries:m({diffSummaries:s().diffSummaries,loadedPathDigests:new Set(e),loadingPathDigests:new Set(t),selectedPathDigest:s().selectedPathDigest})},void 0,”loadSelectedEntries#postFetch#noAPIData”)}let f=d.map(e=>e.pathDigest),h=[…s().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),…f],p=s().entries.filter(e=>e.loadingStatus===c.s.Loading).filter(e=>!f.includes(e.pathDigest)).map(e=>e.pathDigest);r(e=>({…e,entries:m({diffSummaries:s().diffSummaries,loadedPathDigests:new Set(h),loadingPathDigests:new Set(p),selectedPathDigest:s().selectedPathDigest})}),void 0,”loadSelectedEntries#postFetch”)},l),enqueue:e=>{r(t=>({…t,progressiveDiffQueue:[…t.progressiveDiffQueue,e]}),void 0,”enqueue”)},processQueue:async()=>{let e=()=>(0,p.H)(()=>s().internalProgressiveDiffsActions.processQueue(),{timeout:20}),t=s().progressiveDiffQueue;if(0===t.length)return s().entries?.some(e=>e.loadingStatus===c.s.Loading||e.loadingStatus===c.s.NotLoaded)?e():r(e=>({…e,queueRunning:!1}),void 0,”stopQueue”);let[n,…i]=t.filter((e,t,n)=>t===n.findIndex(t=>t.startingAt.path===e.startingAt.path));r(e=>({…e,progressiveDiffQueue:i}),void 0,”processQueue#cleanQueue”);let a=f({progressiveDiffEntries:s().entries,startingAt:n?.startingAt,preferAnySoloEntry:n?.preferAnySoloEntry});return await s().internalProgressiveDiffsActions.loadSelectedEntries(a),e()}},progressiveDiffsActions:{startQueue:()=>{s().queueRunning||(r(e=>({…e,queueRunning:!0}),void 0,”startQueue”),s().internalProgressiveDiffsActions.processQueue())},loadMore:async(e,{preferAnySoloEntry:t}={})=>{if(e)return s().internalProgressiveDiffsActions.enqueue({startingAt:e,preferAnySoloEntry:t});let n=f({progressiveDiffEntries:s().entries,startingAt:e,preferAnySoloEntry:t});return s().internalProgressiveDiffsActions.loadSelectedEntries(n)},updateSelectedPathDigest:e=>{r(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigest”)},updateSelectedPathDigestAndFetch:e=>{r(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigestAndFetch”);let t=s().entries.find(t=>t.pathDigest===e);if(t&&t.loadingStatus!==c.s.Loaded)return s().internalProgressiveDiffsActions.loadSelectedEntries([t])}}}})(e)(…t),…(({collapsedFilesMap:e})=>(t,n)=>({collapsedFilesMap:e,getCollapsedDiffStatus:e=>n().collapsedFilesMap?.[e]??!1,filesCollapsedStatusActions:{updateFileCollapsedStatus:(e,i)=>{let a=n().collapsedFilesMap;a&&t({collapsedFilesMap:(0,d.jM)(a,t=>{t[e]=i})},void 0,”updateFileCollapsedStatus”)},updateAllFilesCollapsedStatus:e=>{let i=n().collapsedFilesMap;i&&t({collapsedFilesMap:(0,d.jM)(i,t=>{for(let n of Object.keys(t))t[n]=e})},void 0,”updateAllFilesCollapsedStatus”)}}}))(e)(…t),…(({pendingReview:e})=>(t,n)=>({pendingReview:e,pendingReviewActions:{addPendingComment:e=>{let i=n().pendingReview;i&&t({pendingReview:(0,d.jM)(i,t=>{t.pendingReviewIDs||(t.pendingReviewIDs=[]),t.pendingReviewIDs.push(e)})},void 0,”addPendingComment”)},removePendingComment:e=>{let i=n().pendingReview;i&&t({pendingReview:(0,d.jM)(i,t=>{let n=t.pendingReviewIDs?.filter(t=>t!==e);t.pendingReviewIDs=n})},void 0,”removePendingComment”)},clearPendingReview:()=>{let e=n().pendingReview;e&&t({pendingReview:(0,d.jM)(e,e=>{e.id=void 0,e.pendingReviewIDs=[],e.comments=[]})},void 0,”clearPendingReview”)}}}))(e)(…t),…(({basePath:e,diffEntries:t,baseOid:n,headOid:i,selectedCommitRange:a})=>(r,s)=>{let l=a??{baseOid:n,headOid:i},o=(0,N.S)();for(let[n,i]of Object.entries(t)){let t=k(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=k(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,S.G7)(“pr_sfv_new_diff_fetch”)?I(n):D(n));return i&&0!==i.length?(s().diffEntriesActions.updateDiffEntries(i),i):[]},fetchContextLines:async({path:t,contextLineRanges:n,w:i=”0″})=>{let a=k(e,t,s().comparisonInfo.effectiveRange.baseOid,s().comparisonInfo.effectiveRange.headOid),l=s().diffEntries[t];l&&await o.fetchQuery({queryKey:a,queryFn:async()=>{let d=await R({contextLineRanges:n,basePath:e,path:t,w:i,…s().comparisonInfo}),c=l.diffLines,u=o.setQueryData(a,e=>c=function(e,t){let n=new Map;for(let t of e){let e=`${t.left}-${t.right}`;n.set(e,t)}return t.map(e=>{let t=`${e.left}-${e.right}`,i=n.get(t);return i?{…e,position:i.position,displayNoNewLineWarning:i.displayNoNewLineWarning}:{…e,position:null,threadsData:void 0}})}(e??l.diffLines,d?.diffEntryLines??[]));return r(e=>({…e,diffEntries:{…e.diffEntries,[t]:{…l,diffLines:c}}}),void 0,”addContextLinesToDiffEntry”),u}})}}}})(e)(…t),…(({markers:e})=>(t,n)=>{let i,a,r=(0,x.Gl)(),s=(0,x.e3)();if(e){if(r){let t=Object.values(e||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??[]));if(t){let e=Number(r);for(let n of Object.values(t)){let t=n?.commentsData?.comments;if(n&&t)for(let r of t)Number(r.databaseId)===e&&(i=n.id,a=e)}}}else if(s){let t=Object.values(e).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??[]));if(t){let e=Number(s);for(let n of Object.values(t))Number(n.databaseId)===e&&(i=n.id)}}}return{markerAndDiffNavigation:{markerId:i,commentId:a,getCommentId:()=>n().markerAndDiffNavigation.commentId,getMarkerId:()=>n().markerAndDiffNavigation.markerId},markerAndDiffNavigationActions:{navigateToSelectedComment:e=>{let i=n().getThreadFromCommentID(e);if(i){let a=n().getPathDigestFromThreadID(i.id);n().progressiveDiffsActions.updateSelectedPathDigestAndFetch(a),t(t=>({markerAndDiffNavigation:{…t.markerAndDiffNavigation,commentId:e,markerId:i?.id}}))}},navigateToSelectedAnnotation:e=>{let i=n().getAnnotationFromID(e);if(i){let a=n().getPathDigestFromAnnotationID(e);n().progressiveDiffsActions.updateSelectedPathDigestAndFetch(a),t(e=>({markerAndDiffNavigation:{…e.markerAndDiffNavigation,commentId:void 0,markerId:i.id}}))}},handleHashUpdate:()=>{let e=(0,x.Gl)(),t=(0,x.e3)(),i=(0,x.jU)(window.location.hash),a=n(),r=a.markerAndDiffNavigation.commentId,s=a.markerAndDiffNavigation.markerId,l=a.selectedPathDigest;if(e&&e!==r)a.markerAndDiffNavigationActions.navigateToSelectedComment(e);else if(t){let e=a.getAnnotationFromID(t),n=e?.id;n&&n!==s&&a.markerAndDiffNavigationActions.navigateToSelectedAnnotation(t)}else i&&i!==l?a.progressiveDiffsActions.updateSelectedPathDigestAndFetch(i):e||t||i||!l||a.progressiveDiffsActions.updateSelectedPathDigestAndFetch(void 0)}}}})(e)(…t),…(({isSingleFileMode:e,commentsPreference:t})=>n=>({isSingleFileMode:e,commentsPreference:t,settingsActions:{updateCommentsPreference:e=>{n(()=>({commentsPreference:e}))}}}))(e)(…t),…(({pullRequest:e})=>(t,n)=>({pullRequest:{state:e.state,basePath:e.pathName,id:e.id,number:e.number},pullRequestActions:{updatePullRequestState:e=>{t({pullRequest:{…n().pullRequest,state:e}},void 0,”pullRequest#updatePullRequestState”)}}}))(e)(…t),…(({baseRepository:e})=>()=>({repository:{baseRepository:{id:e.id,ownerLogin:e.ownerLogin,name:e.name}}}))(e)(…t),…(t=>({suggestionBatch:{activeBatch:e.initialActiveBatch??[],isSuggestionBatchPending:(e.initialActiveBatch?.length??0)>0},suggestionBatchActions:{addSuggestionToBatch:e=>t(t=>{if(t.suggestionBatch.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex))return t;let n=[…t.suggestionBatch.activeBatch,e];return{suggestionBatch:{…t.suggestionBatch,activeBatch:n,isSuggestionBatchPending:n.length>0}}}),removeSuggestionFromBatch:e=>t(t=>{let n=t.suggestionBatch.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex);return{suggestionBatch:{…t.suggestionBatch,activeBatch:n,isSuggestionBatchPending:n.length>0}}}),clearSuggestionBatch:()=>t(e=>({suggestionBatch:{…e.suggestionBatch,activeBatch:[],isSuggestionBatchPending:!1}})),loadActiveBatchFromStorage:e=>t(t=>({suggestionBatch:{…t.suggestionBatch,activeBatch:e,isSuggestionBatchPending:e.length>0}}))}}))(…t)}),{name:”pull-request-store”}));try{E.displayName||(E.displayName=”PullRequestStoreContext”)}catch{}try{O.displayName||(O.displayName=”PullRequestStoreProvider”)}catch{}},85933:(e,t,n)=>{function i(){return!!document.querySelector(‘react-app[data-lazy=”true”]’)}function a(){return!!document.querySelector(‘react-app[data-alternate=”true”]’)}function r(){return!!document.querySelector(“header.AppHeader”)}function s(){return performance.getEntriesByType(“resource”).some(e=>”fetch”===e.initiatorType&&e.name.includes(“_graphql?”))}function l(){return performance.getEntriesByType(“resource”).some(e=>”script”===e.initiatorType)}n.d(t,{Dk:()=>r,NT:()=>c,X:()=>d,_:()=>i,aE:()=>s,u$:()=>a,xF:()=>l}),n(69599);let o=null;function d(){return o}function c(e){o=e}},86909:(e,t,n)=>{n.d(t,{YH:()=>L,Gt:()=>S,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”,y=”Annotation-module__inlineReviewThreadHeading–Qj9j8″;var j=n(79036),C=n(96540),w=n(82075),N=n(71315);let S={[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″})},L=(0,r.GV)()?function(e){let t,n,i,r,p,y,C,w=(0,s.c)(31),{annotation:N,inSidePanel:S}=e,L=S?”h3″:”h2″,{isCollapsed:D,handleToggleCollapsed:k}=R(N),A=j.GF[N.annotationLevel];return w[0]!==A.borderColor?(t=(0,h.$)(“p-1 bgColor-default”,A.borderColor,g),w[0]=A.borderColor,w[1]=t):t=w[1],w[2]!==k||w[3]!==S||w[4]!==D?(n=!S&&(0,a.jsx)(c.K,{“aria-label”:D?”Expand annotation”:”Collapse annotation”,icon:D?d.ChevronRightIcon:d.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:k}),w[2]=k,w[3]=S,w[4]=D,w[5]=n):n=w[5],w[6]!==N||w[7]!==S?(i=!S&&(0,a.jsx)(I,{annotation:N}),w[6]=N,w[7]=S,w[8]=i):i=w[8],w[9]!==N||w[10]!==S?(r=S&&(0,a.jsx)(_,{annotation:N}),w[9]=N,w[10]=S,w[11]=r):r=w[11],w[12]!==n||w[13]!==i||w[14]!==r?(p=(0,a.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[n,i,r]}),w[12]=n,w[13]=i,w[14]=r,w[15]=p):p=w[15],w[16]!==L||w[17]!==N.annotationLevel||w[18]!==N.appAvatarAltText||w[19]!==N.appAvatarUrl||w[20]!==N.checkRun||w[21]!==N.checkSuiteName||w[22]!==N.message||w[23]!==N.title||w[24]!==S||w[25]!==D?(y=(!D||S)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(“div”,{className:”ml-4 mt-2″,children:N.title&&(0,a.jsx)(u.A,{weight:”semibold”,size:”medium”,className:j.GF[N.annotationLevel].primaryColorClass,children:N.title})}),(0,a.jsxs)(L,{className:”sr-only”,children:[j.GF[N.annotationLevel].ariaLabel,”: “,N.title]}),(0,a.jsx)(“div”,{className:”mb-3 mt-1 ml-4″,children:N.message&&(0,a.jsx)(o.$6,{html:N.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:N.appAvatarUrl,alt:N.appAvatarAltText}),(0,a.jsxs)(m.A,{className:”ml-2″,maxWidth:”300px”,inline:!0,title:`${N.checkSuiteName} / ${N.checkRun.name}`,children:[(0,a.jsx)(u.A,{weight:”semibold”,size:”small”,children:N.checkSuiteName}),” “,”/ “,(0,a.jsx)(u.A,{size:”small”,children:N.checkRun.name})]})]}),N.checkRun.detailsUrl&&(0,a.jsx)(f.Q,{as:”a”,href:N.checkRun.detailsUrl,size:”small”,children:”View details”})]})]}),w[16]=L,w[17]=N.annotationLevel,w[18]=N.appAvatarAltText,w[19]=N.appAvatarUrl,w[20]=N.checkRun,w[21]=N.checkSuiteName,w[22]=N.message,w[23]=N.title,w[24]=S,w[25]=D,w[26]=y):y=w[26],w[27]!==t||w[28]!==p||w[29]!==y?(C=(0,a.jsxs)(“div”,{className:t,children:[p,y]}),w[27]=t,w[28]=p,w[29]=y,w[30]=C):C=w[30],C}:function({annotation:e,inSidePanel:t}){let n=(0,C.useMemo)(()=>t?”h3″:”h2″,[t]),{isCollapsed:i,handleToggleCollapsed:r}=R(e);return(0,a.jsxs)(“div”,{className:(0,h.$)(“p-1 bgColor-default”,j.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)(I,{annotation:e}),t&&(0,a.jsx)(_,{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:j.GF[e.annotationLevel].primaryColorClass,children:e.title})}),(0,a.jsxs)(n,{className:”sr-only”,children:[j.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”})]})]})]})},D=(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})},I=(0,r.GV)()?function(e){let t,n,i=(0,s.c)(6),{annotation:r}=e,l=S[r.annotationLevel],o=j.GF[r.annotationLevel];return i[0]!==r.endLine?(t=(0,a.jsxs)(D,{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:y,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:y,children:[S[e.annotationLevel],j.GF[e.annotationLevel].ariaLabel,” on line”,” “,(0,a.jsxs)(D,{children:[“R”,e.endLine]})]})},_=(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.$)(y,”ml-4″,”pt-1″,”pl-0″),i[0]=t):t=i[0];let l=j.GF[r.annotationLevel];return i[1]!==l.ariaLabel?(n=(0,a.jsx)(“div”,{className:t,children:(0,a.jsx)(D,{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.$)(y,”ml-4″,”pt-1″,”pl-0″),children:(0,a.jsx)(D,{children:j.GF[e.annotationLevel].ariaLabel})})};function k(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,w.A)(“localStorage”),l[0]=t):t=l[0];let o=t,[d,c]=(0,C.useState)(!1);l[1]!==e?(n=()=>{let t=localStorage.getItem(k(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,C.useEffect)(n,i),l[4]!==e||l[5]!==d?(a=()=>{N.cg?.requestAnimationFrame(()=>{o.setItem(k(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,w.A)(“localStorage”),[n,i]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{let t=localStorage.getItem(k(e));null!==t&&i(JSON.parse(t))},[e]),{isCollapsed:n,handleToggleCollapsed:()=>{N.cg?.requestAnimationFrame(()=>{t.setItem(k(e),JSON.stringify(!n))}),i(e=>!e)}}};function A(e){return!e}try{L.displayName||(L.displayName=”Annotation”)}catch{}try{(i=AnnotationHeadingTag).displayName||(i.displayName=”AnnotationHeadingTag”)}catch{}try{D.displayName||(D.displayName=”Emphasis”)}catch{}try{I.displayName||(I.displayName=”AnnotationBanner”)}catch{}try{_.displayName||(_.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:()=>tt,C:()=>ti});var i=n(74848),a=n(68273),r=n(16522),s=n(50129),l=n(75202),o=n(65821),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”,y=”StickyPullRequestHeader-module__stickyHeaderActivationThreshold–t5sQ5″;var j=n(73017);let C=”container-xl px-3 px-md-4 px-lg-5″,w=”px-3 px-md-4 px-lg-5″,N=(0,a.Z6)()?function(e){let t,n,a,s,l,o,N,S,L,D,I,_=(0,r.c)(43),{repository:k,pullRequest:R,pageVariant:A}=e,{isSticky:E,observe:T,unobserve:O}=(0,c.a)(),P=”condensed”===A?C:w,F=E&&x;return _[0]!==F?(t=(0,h.$)(f.A.stickyHeader,g,F,”color-shadow-small”),_[0]=F,_[1]=t):t=_[1],_[2]!==P?(n=(0,h.$)(“flex-items-center justify-center”,P,b),_[2]=P,_[3]=n):n=_[3],_[4]!==R.state?(a=(0,i.jsx)(d.z.LeadingVisual,{children:(0,i.jsx)(u.u,{state:R.state})}),_[4]=R.state,_[5]=a):a=_[5],_[6]!==R.titleHtml?(s=(0,i.jsx)(“a”,{href:”#top”,className:”fgColor-default”,children:(0,i.jsx)(j.JR,{className:”f5 text-bold markdown-title”,html:R.titleHtml})}),_[6]=R.titleHtml,_[7]=s):s=_[7],_[8]!==R.number?(l=(0,i.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,R.number]}),_[8]=R.number,_[9]=l):l=_[9],_[10]!==R.author||_[11]!==R.baseBranch||_[12]!==R.commitsCount||_[13]!==R.headBranch||_[14]!==R.headRepositoryName||_[15]!==R.headRepositoryOwnerLogin||_[16]!==R.id||_[17]!==R.isInAdvisoryRepo||_[18]!==R.mergedBy||_[19]!==R.mergedByName||_[20]!==R.number||_[21]!==R.state||_[22]!==k.id||_[23]!==k.name||_[24]!==k.ownerLogin?(o=(0,i.jsx)(“div”,{className:”f6 text-normal”,children:(0,i.jsx)(m.O,{author:R.author,baseBranch:R.baseBranch,baseRepositoryOwnerLogin:k.ownerLogin,baseRepositoryName:k.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:k.id,state:R.state})}),_[10]=R.author,_[11]=R.baseBranch,_[12]=R.commitsCount,_[13]=R.headBranch,_[14]=R.headRepositoryName,_[15]=R.headRepositoryOwnerLogin,_[16]=R.id,_[17]=R.isInAdvisoryRepo,_[18]=R.mergedBy,_[19]=R.mergedByName,_[20]=R.number,_[21]=R.state,_[22]=k.id,_[23]=k.name,_[24]=k.ownerLogin,_[25]=o):o=_[25],_[26]!==s||_[27]!==l||_[28]!==o?(N=(0,i.jsx)(d.z.Title,{className:”lh-condensed”,children:(0,i.jsxs)(“div”,{children:[s,l,o]})}),_[26]=s,_[27]=l,_[28]=o,_[29]=N):N=_[29],_[30]!==n||_[31]!==a||_[32]!==N?(S=(0,i.jsxs)(d.z.TitleArea,{className:n,children:[a,N]}),_[30]=n,_[31]=a,_[32]=N,_[33]=S):S=_[33],_[34]!==t||_[35]!==S?(L=(0,i.jsx)(d.z,{className:t,children:S}),_[34]=t,_[35]=S,_[36]=L):L=_[36],_[37]!==T||_[38]!==O?(D=(0,i.jsx)(p.X,{className:y,onObserve:T,onUnobserve:O}),_[37]=T,_[38]=O,_[39]=D):D=_[39],_[40]!==L||_[41]!==D?(I=(0,i.jsxs)(i.Fragment,{children:[L,D]}),_[40]=L,_[41]=D,_[42]=I):I=_[42],I}: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?C:w,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)(j.JR,{className:”f5 text-bold markdown-title”,html:t.titleHtml})}),(0,i.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,t.number]}),(0,i.jsx)(“div”,{className:”f6 text-normal”,children:(0,i.jsx)(m.O,{author:t.author,baseBranch:t.baseBranch,baseRepositoryOwnerLogin:e.ownerLogin,baseRepositoryName:e.name,commitsCount:t.commitsCount,headBranch:t.headBranch,headRepositoryOwnerLogin:t.headRepositoryOwnerLogin,headRepositoryName:t.headRepositoryName,isInAdvisoryRepo:t.isInAdvisoryRepo,mergedBy:t.mergedBy,mergedByName:t.mergedByName,pullRequestId:t.id,pullRequestNumber:t.number,repositoryId:e.id,state:t.state})})]})})]})}),(0,i.jsx)(p.X,{className:y,onObserve:r,onUnobserve:s})]})};try{N.displayName||(N.displayName=”StickyPullRequestHeader”)}catch{}var S=n(96540),L=n(21373),D=n(26607),I=n(84268),_=n(34261),k=n(11680),R=n(72579);let A=(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,E)}(s.headBranch),a[0]=s.headBranch,a[1]=t):t=a[1],a[2]!==t?(n=(0,i.jsx)(k.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)(k.l.Description,{children:[“The head ref may contain hidden characters:”,” “,(0,i.jsxs)(R.A,{as:”span”,children:[‘”‘,t,'”‘]})]})}),a[2]=t,a[3]=n):n=a[3],n}:function({pullRequest:e}){return(0,i.jsx)(k.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)(k.l.Description,{children:[“The head ref may contain hidden characters:”,” “,(0,i.jsxs)(R.A,{as:”span”,children:[‘”‘,e.headBranch.replace(/[\u007F-\uFFFF]/g,e=>`\\u${`0000${e.charCodeAt(0).toString(16)}`.substr(-4)}`),'”‘]})]})})};function E(e){return`\\u${`0000${e.charCodeAt(0).toString(16)}`.substr(-4)}`}try{A.displayName||(A.displayName=”PullRequestHiddenCharactersBanner”)}catch{}var T=n(81960),O=n(19415),P=n(97665),F=n(94747),$=n(96379);let M=(0,a.Z6)()?function(){let e,t=(0,r.c)(3),n=(0,_.f)(),i=(0,P.jE)();return t[0]!==n||t[1]!==i?(e={networkMode:”always”,mutationFn:V,onSuccess:()=>{i.setQueryData(n,B)}},t[0]=n,t[1]=i,t[2]=e):e=t[2],(0,F.n)(e)}:function(){let e=(0,_.f)(),t=(0,P.jE)();return(0,F.n)({networkMode:”always”,mutationFn:({dismissPath:e})=>(0,$.Sr)(e,{method:”POST”}),onSuccess:()=>{t.setQueryData(e,e=>{let t={…e};return t.bannersData.banners.dependabotAutomatedSecurityUpdates.showOnboardingPopover=!1,t})}})};function B(e){let t={…e};return t.bannersData.banners.dependabotAutomatedSecurityUpdates.showOnboardingPopover=!1,t}function V(e){let{dismissPath:t}=e;return(0,$.Sr)(t,{method:”POST”})}let U=(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,S.useState)(!0),{mutate:g}=M();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)(T.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)(I.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)(L.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)(I.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)(O.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)(O.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,S.useState)(!0),{mutate:a}=M();return(0,i.jsx)(O.A,{className:”mt-2″,open:t,children:(0,i.jsxs)(O.A.Content,{className:”Popover-message Popover-message–large”,children:[(0,i.jsx)(T.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)(I.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)(L.Q,{block:!1,onClick:()=>{a({dismissPath:e.dismissNoticePath}),n(!1)},children:”Got it!”}),(0,i.jsx)(I.A,{className:”ml-3″,href:e.helpURL,”aria-label”:”Learn more about Dependabot security updates”,children:”Learn more”})]})]})})};try{U.displayName||(U.displayName=”PullRequestAutomatedSecurityOnboarding”)}catch{}var H=n(33578);let G=(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=q;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)(j.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)(j.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===H.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===H.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 C=l;return m[18]!==C?(o=C(),m[18]=C,m[19]=o):o=m[19],m[20]!==o?(d=(0,i.jsx)(k.l,{“aria-label”:”Automated Security Update Banner”,variant:”info”,title:”Automated security update”,hideTitle:!0,children:(0,i.jsx)(k.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)(U,{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)(k.l,{“aria-label”:”Automated Security Update Banner”,variant:”info”,title:”Automated security update”,hideTitle:!0,children:(0,i.jsx)(k.l.Description,{children:(()=>{if(t.state!==H.Q.Open)return`This pull request ${t.state===H.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)(j.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)(j.JR,{as:”span”,html:t})}})()})}),e.showOnboardingPopover&&(0,i.jsx)(U,{onBoardingProps:e.onboardingBannerProps})]})};function q(e){return`${e}`}try{G.displayName||(G.displayName=”PullRequestAutomatedSecurityUpdateBanner”)}catch{}var z=n(79634),K=n(25407);let W=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d=(0,r.c)(12),{repository:c}=e,u=`${(0,z.X)().helpUrl}/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates#about-automatic-deactivation-of-dependabot-updates`;d[0]!==c.name||d[1]!==c.ownerLogin?(t=(0,K.SHX)({owner:c.ownerLogin,repo:c.name,action:”pulls”}),d[0]=c.name,d[1]=c.ownerLogin,d[2]=t):t=d[2];let m=`${t}/app%2Fdependabot`;return d[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(“br”,{}),d[3]=n):n=d[3],d[4]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(“b”,{children:”@dependabot rebase.”}),d[4]=a):a=d[4],d[5]!==m?(s=(0,i.jsx)(I.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)(I.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)(k.l,{className:”d-flex flex-row width-full”,variant:”warning”,title:”Dependabot updates are paused”,children:(0,i.jsx)(k.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,z.X)().helpUrl}/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates#about-automatic-deactivation-of-dependabot-updates`,a=`${(0,K.SHX)({owner:e.ownerLogin,repo:e.name,action:”pulls”})}/app%2Fdependabot`;return(0,i.jsx)(k.l,{className:”d-flex flex-row width-full”,variant:”warning”,title:”Dependabot updates are paused”,children:(0,i.jsx)(k.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)(I.A,{inline:!0,href:a,children:”See open Dependabot pull requests”}),” “,”or”,”\xa0″,(0,i.jsx)(I.A,{inline:!0,href:n,children:”learn more about pausing of activity.”})]})})})};try{W.displayName||(W.displayName=”PullRequestPausedDependabotBanner”)}catch{}let Z=(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)(A,{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)(W,{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===H.Q.Open&&(0,i.jsx)(G,{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)(A,{pullRequest:t}),e.banners.pausedDependabotUpdate.render&&(0,i.jsx)(W,{repository:n}),e.banners.dependabotAutomatedSecurityUpdates.render&&t.state===H.Q.Open&&(0,i.jsx)(G,{dependabotUpdates:e.banners.dependabotAutomatedSecurityUpdates,pullRequest:t})]})};try{Z.displayName||(Z.displayName=”PullRequestBanners”)}catch{}var Q=n(86877),X=n(30093),J=n(46251);function Y(e){let[t,n]=(0,S.useState)(e),i=(0,S.useRef)(t);return i.current=t,[t,(0,S.useCallback)(e=>{e!==i.current&&n(e)},[])]}var ee=n(20622),et=n(53885);let en=(0,a.Z6)()?function(){let e,t,n,i=(0,r.c)(8),a=(0,P.jE)(),s=(0,et.e)(ee.uT.updateTitle),l=(0,_.f)();return i[0]!==s?(e=e=>{let{id:t,title:n}=e;return(0,$.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,F.n)(n)}:function(){let e=(0,P.jE)(),t=(0,et.e)(ee.uT.updateTitle),n=(0,_.f)();return(0,F.n)({networkMode:”always”,mutationFn:({id:e,title:n})=>(0,$.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 ei(e,t){for(let n in e)if(e[n]!==t[n])return!1;return!0}let ea=(0,a.Z6)()?function(e,t){let n,i,a,s,l=(0,r.c)(11),o=void 0===t?ei:t,[d,c]=(0,S.useState)(!1),u=(0,S.useRef)(e),m=(0,S.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=ei){let[n,i]=(0,S.useState)(!1),a=(0,S.useRef)(e),r=(0,S.useRef)(e),s=(0,S.useCallback)(()=>{let e=!t(a.current,r.current);e!==n&&i(e)},[t,n]);return[n,(0,S.useCallback)(e=>{r.current={…r.current,…e},s()},[s]),(0,S.useCallback)(e=>{a.current={…a.current,…e},s()},[s])]},er=”Title can’t be blank”,es=”Edit Pull Request Title”;function el(e){return`Title can’t be longer than 256 characters (currently ${e.length} characters)`}function eo(e){return e.trim().length>0&&e.length<=256}let ed=(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:y}=e,[j,C]=(0,S.useState)(x),[w,N]=Y(!0),[D,I]=(0,S.useState)(null);g[0]!==x?(t={title:x},g[0]=x,g[1]=t):t=g[1];let[_,k]=ea(t),R=(0,S.useRef)(null),{mutate:A,isPending:E}=en();g[2]!==k||g[3]!==N?(n=e=>{C(e.target.value),k({title:e.target.value}),N(eo(e.target.value))},g[2]=k,g[3]=N,g[4]=n):n=g[4];let T=n;g[5]===Symbol.for(“react.memo_cache_sentinel”)?(a=e=>{I(e),R.current?.focus()},g[5]=a):a=g[5];let O=a;g[6]!==_||g[7]!==w||g[8]!==A||g[9]!==y||g[10]!==b||g[11]!==j?(s=e=>{(e.preventDefault(),I(null),w)?w&&!_?y():A({id:b,title:j},{onError:e=>O(e.message),onSuccess:()=>y()}):R.current?.focus()},g[6]=_,g[7]=w,g[8]=A,g[9]=y,g[10]=b,g[11]=j,g[12]=s):s=g[12];let P=s,F=!w||E;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)(Q.A.Label,{visuallyHidden:!0,children:es}),g[14]=o):o=g[14];let $=w?void 0:”error”;return g[15]!==T||g[16]!==$||g[17]!==j?(d=(0,i.jsx)(X.A,{autoFocus:!0,block:!0,className:”f4″,contrast:!0,onChange:T,ref:R,validationStatus:$,value:j}),g[15]=T,g[16]=$,g[17]=j,g[18]=d):d=g[18],g[19]!==w||g[20]!==D||g[21]!==j?(c=(0,i.jsx)(ec,{isValid:w,saveErrorMessage:D,title:j}),g[19]=w,g[20]=D,g[21]=j,g[22]=c):c=g[22],g[23]!==d||g[24]!==c?(u=(0,i.jsx)(J.B.Item,{grow:!0,children:(0,i.jsxs)(Q.A,{children:[o,d,c]})}),g[23]=d,g[24]=c,g[25]=u):u=g[25],g[26]!==F?(m=(0,i.jsx)(J.B.Item,{children:(0,i.jsx)(L.Q,{name:”Save”,type:”submit”,disabled:F,children:”Save”})}),g[26]=F,g[27]=m):m=g[27],g[28]!==E||g[29]!==y?(f=(0,i.jsx)(J.B.Item,{children:(0,i.jsx)(L.Q,{variant:”invisible”,onClick:y,disabled:E,children:”Cancel”})}),g[28]=E,g[29]=y,g[30]=f):f=g[30],g[31]!==m||g[32]!==f?(h=(0,i.jsx)(J.B.Item,{children:(0,i.jsxs)(J.B,{direction:”horizontal”,gap:”condensed”,children:[m,f]})}),g[31]=m,g[32]=f,g[33]=h):h=g[33],g[34]!==P||g[35]!==u||g[36]!==h?(p=(0,i.jsxs)(J.B,{direction:l,gap:”condensed”,as:”form”,onSubmit:P,children:[u,h]}),g[34]=P,g[35]=u,g[36]=h,g[37]=p):p=g[37],p}:function({initialTitle:e,pullRequestNumber:t,onCloseForm:n}){let[a,r]=(0,S.useState)(e),[s,l]=Y(!0),[o,d]=(0,S.useState)(null),[c,u]=ea({title:e}),m=(0,S.useRef)(null),{mutate:f,isPending:h}=en(),p=!s||h;return(0,i.jsxs)(J.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)(J.B.Item,{grow:!0,children:(0,i.jsxs)(Q.A,{children:[(0,i.jsx)(Q.A.Label,{visuallyHidden:!0,children:es}),(0,i.jsx)(X.A,{autoFocus:!0,block:!0,className:”f4″,contrast:!0,onChange:e=>{r(e.target.value),u({title:e.target.value}),l(eo(e.target.value))},ref:m,validationStatus:s?void 0:”error”,value:a}),(0,i.jsx)(ec,{isValid:s,saveErrorMessage:o,title:a})]})}),(0,i.jsx)(J.B.Item,{children:(0,i.jsxs)(J.B,{direction:”horizontal”,gap:”condensed”,children:[(0,i.jsx)(J.B.Item,{children:(0,i.jsx)(L.Q,{name:”Save”,type:”submit”,disabled:p,children:”Save”})}),(0,i.jsx)(J.B.Item,{children:(0,i.jsx)(L.Q,{variant:”invisible”,onClick:n,disabled:h,children:”Cancel”})})]})})]})},ec=(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?er:l.length>256?el(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)(Q.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)(Q.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)(Q.A.Validation,{variant:”error”,children:t}):null:(0,i.jsx)(Q.A.Validation,{variant:”error”,children:0===n.trim().length?er:n.length>256?el(n):void 0})};try{ed.displayName||(ed.displayName=”PullRequestEditTitleForm”)}catch{}try{ec.displayName||(ec.displayName=”DisplayError”)}catch{}var eu=n(38621),em=n(57478),ef=n(1481),eh=n(66108),ep=n(3433),eg=n(69599),ex=n(43073),eb=n(13360),ev=n(97286);let ey=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{basePageDataUrl:n}=(0,s.Yu)(),i=`basePageDataURL:${n}`;return t[0]!==i?(e=[ee.uT.tabCounts,i],t[0]=i,t[1]=e):e=t[1],e}:function(){let{basePageDataUrl:e}=(0,s.Yu)();return[ee.uT.tabCounts,`basePageDataURL:${e}`]},ej=(0,a.Z6)()?function(e){let t,n,i=(0,r.c)(6),a=(0,et.e)(ee.uT.tabCounts),s=ey();return i[0]!==a?(t=async()=>{let e=await (0,$.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,ev.I)(n)}:function(e){let t=(0,et.e)(ee.uT.tabCounts),n=ey();return(0,ev.I)({queryKey:n,queryFn:async()=>{let e=await (0,$.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})};var eC=n(66446);let ew=”PullRequestHeaderNavigation-module__overrideLineHeight–AJ90h”,eN=”PullRequestHeaderNavigation-module__muteWhenUnselected–F0UGO”,eS=”PullRequestHeaderNavigation-module__counterLoading–K6XhJ”;var eL=n(91747),eD=n(37212),eI=n(72501),e_=n(66559),ek=n(73870);let eR=(0,a.Z6)()?function(e){let t,n=(0,r.c)(8),{pullRequest:a,repository:s,urls:l}=e;if((0,ex.E)()){let e;return n[0]!==a||n[1]!==s||n[2]!==l?(e=(0,i.jsx)(eE,{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)(eA,{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,ex.E)()?(0,i.jsx)(eE,{pullRequest:e,repository:t,urls:n}):(0,i.jsx)(eA,{pullRequest:e,repository:t,urls:n})},eA=(0,a.Z6)()?function(e){let t,n=(0,r.c)(5),{pullRequest:a,repository:s,urls:l}=e,{data:o}=ej();return n[0]!==o||n[1]!==a||n[2]!==s||n[3]!==l?(t=(0,i.jsx)(eT,{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}=ej();return(0,i.jsx)(eT,{labelCounts:a,pullRequest:e,repository:t,urls:n})},eE=(0,a.Z6)()?function(e){let t,n=(0,r.c)(6),{pullRequest:a,repository:s,urls:l}=e,{data:o}=(0,eb.xX)(eC.j,”tabCounts”),d=(0,eL.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)(eT,{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,eb.xX)(eC.j,”tabCounts”),r=(0,eL.u)(“combined_pr_changes_route”);return(0,i.jsx)(eT,{labelCounts:a,pullRequest:e,repository:t,urls:n,combinedPrChangesRoute:r})},eT=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,p,g,x,b,y,j,C,w,N,S=(0,r.c)(64),{pullRequest:L,repository:D,urls:I,labelCounts:_,combinedPrChangesRoute:k}=e,R=void 0!==k&&k,A=(0,ep.zy)();S[0]!==A.pathname?(t=e=>A.pathname===e,S[0]=A.pathname,S[1]=t):t=S[1];let E=t;S[2]!==A.pathname?(n=e=>A.pathname===e||A.pathname.startsWith(`${e}/`),S[2]=A.pathname,S[3]=n):n=S[3];let T=n,O=`position-relative px-3 flex-shrink-0 text-normal ${eN} ${ew}`,{commitsCount:P}=L,F=_?””:eS;S[4]!==F?(a=(0,h.$)(“ml-2”,F),S[4]=F,S[5]=a):a=S[5];let $=a;S[6]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,eg.G7)(“hypersight”),S[6]=s):s=S[6];let M=s,B=_?.filesChangedCount??0;S[7]!==$||S[8]!==E||S[9]!==_||S[10]!==L.number||S[11]!==D.name||S[12]!==D.ownerLogin||S[13]!==I.conversation?(l=(0,eg.G7)(“prs_conversations_react”)?(0,i.jsxs)(ef.A.Link,{as:eh.N,to:ek.$.generatePath({owner:D.ownerLogin,repo:D.name,pr_number:L.number.toString()}),selected:E(I.conversation),className:O,children:[(0,i.jsx)(eu.CommentDiscussionIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Conversation”,”number”==typeof _?.conversationCount&&(0,i.jsx)(em.A,{className:$,children:_.conversationCount})]}):(0,i.jsxs)(ef.A.Link,{href:I.conversation,selected:E(I.conversation),className:O,”data-prefetch”:”eager”,children:[(0,i.jsx)(eu.CommentDiscussionIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Conversation”,”number”==typeof _?.conversationCount&&(0,i.jsx)(em.A,{className:$,children:_.conversationCount})]}),S[7]=$,S[8]=E,S[9]=_,S[10]=L.number,S[11]=D.name,S[12]=D.ownerLogin,S[13]=I.conversation,S[14]=l):l=S[14],S[15]!==L.number||S[16]!==D.name||S[17]!==D.ownerLogin?(o=eD.Bz.generatePath({owner:D.ownerLogin,repo:D.name,pr_number:L.number.toString()}),S[15]=L.number,S[16]=D.name,S[17]=D.ownerLogin,S[18]=o):o=S[18],S[19]!==T||S[20]!==I.commits?(d=T(I.commits),S[19]=T,S[20]=I.commits,S[21]=d):d=S[21],S[22]===Symbol.for(“react.memo_cache_sentinel”)?(c=(0,i.jsx)(eu.GitCommitIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),S[22]=c):c=S[22],S[23]!==P?(u=”number”==typeof P&&(0,i.jsx)(em.A,{className:”ml-2″,children:P}),S[23]=P,S[24]=u):u=S[24],S[25]!==u||S[26]!==o||S[27]!==d?(m=(0,i.jsxs)(ef.A.Link,{as:eh.N,to:o,selected:d,className:O,id:”prs-commits-anchor-tab”,children:[c,”Commits”,u]}),S[25]=u,S[26]=o,S[27]=d,S[28]=m):m=S[28];let V=I.checks,U=E(I.checks);return S[29]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,i.jsx)(eu.ChecklistIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),S[29]=f):f=S[29],S[30]!==$||S[31]!==_?(p=”number”==typeof _?.checksCount&&(0,i.jsx)(em.A,{className:$,children:_.checksCount}),S[30]=$,S[31]=_,S[32]=p):p=S[32],S[33]!==U||S[34]!==p||S[35]!==I.checks?(g=(0,i.jsxs)(ef.A.Link,{href:V,selected:U,className:O,”data-prefetch”:”moderate”,children:[f,”Checks”,p]}),S[33]=U,S[34]=p,S[35]=I.checks,S[36]=g):g=S[36],S[37]!==R||S[38]!==L.number||S[39]!==D.name||S[40]!==D.ownerLogin?(x=R?e_.g.generatePath({owner:D.ownerLogin,repo:D.name,pr_number:L.number.toString()}):eI.c.generatePath({owner:D.ownerLogin,repo:D.name,pr_number:L.number.toString()}),S[37]=R,S[38]=L.number,S[39]=D.name,S[40]=D.ownerLogin,S[41]=x):x=S[41],S[42]!==T||S[43]!==I.changes||S[44]!==I.files?(b=T(I.files)||T(I.changes),S[42]=T,S[43]=I.changes,S[44]=I.files,S[45]=b):b=S[45],S[46]===Symbol.for(“react.memo_cache_sentinel”)?(y=(0,i.jsx)(eu.FileDiffIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),S[46]=y):y=S[46],S[47]!==$||S[48]!==B||S[49]!==_?(j=_&&_.filesChangedCount?(0,i.jsx)(em.A,{className:$,children:`${B}${_?.filesChangedCountLimitExceeded?”+”:””}`}):null,S[47]=$,S[48]=B,S[49]=_,S[50]=j):j=S[50],S[51]!==x||S[52]!==b||S[53]!==j?(C=(0,i.jsxs)(ef.A.Link,{as:eh.N,id:”prs-files-anchor-tab”,to:x,selected:b,className:O,children:[y,”Files changed”,j]}),S[51]=x,S[52]=b,S[53]=j,S[54]=C):C=S[54],S[55]!==E||S[56]!==I.walkthrough?(w=M&&(0,i.jsxs)(ef.A.Link,{href:I.walkthrough,selected:E(I.walkthrough),className:O,”data-prefetch”:”moderate”,children:[(0,i.jsx)(eu.CopilotIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Walkthrough”]}),S[55]=E,S[56]=I.walkthrough,S[57]=w):w=S[57],S[58]!==m||S[59]!==g||S[60]!==C||S[61]!==w||S[62]!==l?(N=(0,i.jsxs)(ef.A,{“aria-label”:”Pull request navigation tabs”,”data-turbo”:”false”,children:[l,m,g,C,w]}),S[58]=m,S[59]=g,S[60]=C,S[61]=w,S[62]=l,S[63]=N):N=S[63],N}:function({pullRequest:e,repository:t,urls:n,labelCounts:a,combinedPrChangesRoute:r=!1}){let s=(0,ep.zy)(),l=(0,S.useCallback)(e=>s.pathname===e,[s]),o=(0,S.useCallback)(e=>s.pathname===e||s.pathname.startsWith(`${e}/`),[s]),d=`position-relative px-3 flex-shrink-0 text-normal ${eN} ${ew}`,{commitsCount:c}=e,u=”fg-muted mr-2 d-none d-sm-inline-block”,m=(0,h.$)(“ml-2″,a?””:eS),f=(0,eg.G7)(“hypersight”),p=a?.filesChangedCount??0;return(0,i.jsxs)(ef.A,{“aria-label”:”Pull request navigation tabs”,”data-turbo”:”false”,children:[(0,eg.G7)(“prs_conversations_react”)?(0,i.jsxs)(ef.A.Link,{as:eh.N,to:ek.$.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}),selected:l(n.conversation),className:d,children:[(0,i.jsx)(eu.CommentDiscussionIcon,{className:u}),”Conversation”,”number”==typeof a?.conversationCount&&(0,i.jsx)(em.A,{className:m,children:a.conversationCount})]}):(0,i.jsxs)(ef.A.Link,{href:n.conversation,selected:l(n.conversation),className:d,”data-prefetch”:”eager”,children:[(0,i.jsx)(eu.CommentDiscussionIcon,{className:u}),”Conversation”,”number”==typeof a?.conversationCount&&(0,i.jsx)(em.A,{className:m,children:a.conversationCount})]}),(0,i.jsxs)(ef.A.Link,{as:eh.N,to:eD.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)(eu.GitCommitIcon,{className:u}),”Commits”,”number”==typeof c&&(0,i.jsx)(em.A,{className:”ml-2″,children:c})]}),(0,i.jsxs)(ef.A.Link,{href:n.checks,selected:l(n.checks),className:d,”data-prefetch”:”moderate”,children:[(0,i.jsx)(eu.ChecklistIcon,{className:u}),”Checks”,”number”==typeof a?.checksCount&&(0,i.jsx)(em.A,{className:m,children:a.checksCount})]}),(0,i.jsxs)(ef.A.Link,{as:eh.N,id:”prs-files-anchor-tab”,to:r?e_.g.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}):eI.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)(eu.FileDiffIcon,{className:u}),”Files changed”,a&&a.filesChangedCount?(0,i.jsx)(em.A,{className:m,children:`${p}${a?.filesChangedCountLimitExceeded?”+”:””}`}):null]}),f&&(0,i.jsxs)(ef.A.Link,{href:n.walkthrough,selected:l(n.walkthrough),className:d,”data-prefetch”:”moderate”,children:[(0,i.jsx)(eu.CopilotIcon,{className:u}),”Walkthrough”]})]})};try{eR.displayName||(eR.displayName=”PullRequestHeaderNavigation”)}catch{}try{eA.displayName||(eA.displayName=”PullRequestHeaderNavigationNavigator”)}catch{}try{eE.displayName||(eE.displayName=”PullRequestHeaderNavigationData”)}catch{}try{eT.displayName||(eT.displayName=”PullRequestHeaderNavigationShared”)}catch{}var eO=n(89155),eP=n(5524),eF=n(10095),e$=n(49086),eM=n(26410),eB=n(96459),eV=n(13107);let eU=”PullRequestCodeButton-module__ActionList_Divider–RyrUL”,eH=(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,eV.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)(eG,{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)(e$.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,eV.QS)(r.id,t);return(0,i.jsx)(e$.n,{primary:!1,size:”small”,isEnterprise:n,showCodespacesTab:e,codespacesPath:s,localTab:(0,i.jsx)(eG,{pullNumber:a})})},eG=(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,eB.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)(eF.A,{className:”mr-2″,icon:eu.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)(eM.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)(I.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)(eP.l.Divider,{className:eU}),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)(eF.A,{className:”mr-2″,icon:eu.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)(eP.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)(eP.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,eB.Z)();return(0,i.jsxs)(eP.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)(eF.A,{className:”mr-2″,icon:eu.TerminalIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:n})]}),(0,i.jsx)(eM.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)(I.A,{inline:!0,href:”https://cli.github.com”,target:”_blank”,”aria-label”:”Learn more about the GitHub CLI”,children:”Learn more”})]})]})}),(0,i.jsx)(eP.l.Divider,{className:eU}),(0,i.jsx)(eP.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)(eF.A,{className:”mr-2″,icon:eu.DesktopDownloadIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:”Checkout with GitHub Desktop”})]})})]})};try{eH.displayName||(eH.displayName=”PullRequestCodeButton”)}catch{}try{eG.displayName||(eG.displayName=”LocalTab”)}catch{}var eq=n(91618),ez=n(65510);let eK=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,et.e)(ee.uT.diffstat);return t[0]!==n?(e={queryKey:[ee.uT.diffstat,n],queryFn:async()=>{let e=await (0,$.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,ez.U)(e)}:function(){let e=(0,et.e)(ee.uT.diffstat);return(0,ez.U)({queryKey:[ee.uT.diffstat,e],queryFn:async()=>{let t=await (0,$.QJ)(e);if(!t.ok)throw Error(`HTTP ${t.status}`);return await t.json()},staleTime:1/0})},eW=(0,a.Z6)()?function(){let e,t=(0,r.c)(2);if((0,ex.E)()){let e;return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(eQ,{}),t[0]=e):e=t[0],e}return t[1]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(eZ,{}),t[1]=e):e=t[1],e}:function(){return(0,ex.E)()?(0,i.jsx)(eQ,{}):(0,i.jsx)(eZ,{})},eZ=(0,a.Z6)()?function(){let e,t=(0,r.c)(4),{data:n}=eK(),{diffstat:a}=n;return t[0]!==a.linesAdded||t[1]!==a.linesChanged||t[2]!==a.linesDeleted?(e=(0,i.jsx)(eq.z,{linesAdded:a.linesAdded,linesDeleted:a.linesDeleted,linesChanged:a.linesChanged}),t[0]=a.linesAdded,t[1]=a.linesChanged,t[2]=a.linesDeleted,t[3]=e):e=t[3],e}:function(){let{data:{diffstat:e}}=eK();return(0,i.jsx)(eq.z,{linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,linesChanged:e.linesChanged})},eQ=(0,a.Z6)()?function(){let e,t=(0,r.c)(4),{data:n}=(0,eb.xX)(eC.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)(eq.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,eb.xX)(eC.j,”diffstat”);if(!e||!e.diffstat)return null;let{diffstat:t}=e;return(0,i.jsx)(eq.z,{linesAdded:t.linesAdded,linesDeleted:t.linesDeleted,linesChanged:t.linesChanged})};try{eW.displayName||(eW.displayName=”DiffStat”)}catch{}try{eZ.displayName||(eZ.displayName=”NavigatorDiffStat”)}catch{}try{eQ.displayName||(eQ.displayName=”DataRouterDiffStat”)}catch{}let eX=”PullRequestHeader-module__diffStatesWrapper–fPApA”,eJ=”PullRequestHeader-module__PreviewLabel–kauC0″;var eY=n(31675),e0=n(81945),e1=n(21067),e2=n(71315);let e3=(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,_.W)(t);return(0,eO.F)(s),a[7]!==f||a[8]!==o?(n=(0,i.jsx)(e4,{…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,_.W)({aliveChannel:e,repository:r,pullRequest:a,bannersData:t,urls:s,user:l});return(0,eO.F)(e),(0,i.jsx)(e4,{…o,isFilesRoute:n})},e4=(0,a.Z6)()?function(e){let t,n,a,s,l,o,c,f,p,g,x,b,y,C,w,D,I,_,k,R,A=(0,r.c)(84),{bannersData:E,isFilesRoute:T,pullRequest:O,repository:P,urls:F,user:$}=e,[M,B]=(0,S.useState)(!1);A[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,e1.M3)(),A[0]=t):t=A[0];let V=t,U=O.state!==H.Q.Closed&&O.state!==H.Q.Merged?”true”:”false”;A[1]!==U?(n=(0,i.jsx)(“div”,{className:”js-pull-header-details”,”data-pull-is-open”:U,hidden:!0}),A[1]=U,A[2]=n):n=A[2],A[3]!==T||A[4]!==P||A[5]!==F?(a=T&&(0,i.jsx)(e5,{repository:P,urls:F}),A[3]=T,A[4]=P,A[5]=F,A[6]=a):a=A[6],A[7]!==O.headBranch||A[8]!==O.number||A[9]!==P||A[10]!==$.canEditTitle?(s=V&&(0,i.jsxs)(i.Fragment,{children:[$.canEditTitle&&(0,i.jsx)(L.Q,{onClick:()=>B(!0),size:”small”,children:”Edit”}),(0,i.jsx)(eH,{codespacesEnabled:P.codespacesEnabled,headBranch:O.headBranch,isEnterprise:P.isEnterprise,pullRequestNumber:O.number,repository:P})]}),A[7]=O.headBranch,A[8]=O.number,A[9]=P,A[10]=$.canEditTitle,A[11]=s):s=A[11],A[12]!==n||A[13]!==a||A[14]!==s?(l=(0,i.jsxs)(i.Fragment,{children:[n,a,s]}),A[12]=n,A[13]=a,A[14]=s,A[15]=l):l=A[15];let G=l;return A[16]!==M||A[17]!==O.number||A[18]!==O.title?(o=M&&(0,i.jsx)(ed,{initialTitle:O.title,pullRequestNumber:O.number,onCloseForm:()=>B(!1)}),A[16]=M,A[17]=O.number,A[18]=O.title,A[19]=o):o=A[19],A[20]!==M||A[21]!==G?(c=!M&&(0,i.jsx)(“div”,{className:(0,h.$)(eY.A[“hide-on-desktop”],”pb-2 mb-3 flex-md-order-1 flex-shrink-0 d-flex flex-items-center gap-1″),children:G}),A[20]=M,A[21]=G,A[22]=c):c=A[22],A[23]!==M||A[24]!==O.number||A[25]!==O.title?(f=M&&(0,i.jsx)(“h1″,{className:”sr-only”,children:`${O.title} – #${O.number}`}),A[23]=M,A[24]=O.number,A[25]=O.title,A[26]=f):f=A[26],A[27]!==M||A[28]!==O.number||A[29]!==O.titleHtml||A[30]!==G?(p=!M&&(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)(j.JR,{className:”f1 text-normal markdown-title”,html:O.titleHtml}),(0,i.jsxs)(“span”,{className:”pl-2 fgColor-muted f1-light d-inline”,children:[“#”,O.number]})]})}),(0,i.jsx)(d.z.Actions,{className:(0,h.$)(eY.A[“hide-on-mobile”],”flex-items-center gap-1″),children:G})]}),A[27]=M,A[28]=O.number,A[29]=O.titleHtml,A[30]=G,A[31]=p):p=A[31],A[32]!==O.state?(g=(0,i.jsx)(u.u,{state:O.state}),A[32]=O.state,A[33]=g):g=A[33],A[34]!==M||A[35]!==O.author||A[36]!==O.baseBranch||A[37]!==O.commitsCount||A[38]!==O.headBranch||A[39]!==O.headRepositoryName||A[40]!==O.headRepositoryOwnerLogin||A[41]!==O.id||A[42]!==O.isInAdvisoryRepo||A[43]!==O.mergedBy||A[44]!==O.mergedByName||A[45]!==O.mergedTime||A[46]!==O.number||A[47]!==O.state||A[48]!==P.defaultBranch||A[49]!==P.id||A[50]!==P.name||A[51]!==P.ownerLogin||A[52]!==$.canChangeBase?(x=(0,i.jsx)(“div”,{className:”flex-1″,children:(0,i.jsx)(m.O,{author:O.author,mergedTime:O.mergedTime,baseBranch:O.baseBranch,baseRepositoryDefaultBranch:P.defaultBranch,baseRepositoryName:P.name,baseRepositoryOwnerLogin:P.ownerLogin,canChangeBase:$.canChangeBase,commitsCount:O.commitsCount,headBranch:O.headBranch,headRepositoryOwnerLogin:O.headRepositoryOwnerLogin,headRepositoryName:O.headRepositoryName,isInAdvisoryRepo:O.isInAdvisoryRepo,isEditing:M,mergedBy:O.mergedBy,mergedByName:O.mergedByName,repositoryId:P.id,pullRequestId:O.id,pullRequestNumber:O.number,setIsEditing:B,state:O.state})}),A[34]=M,A[35]=O.author,A[36]=O.baseBranch,A[37]=O.commitsCount,A[38]=O.headBranch,A[39]=O.headRepositoryName,A[40]=O.headRepositoryOwnerLogin,A[41]=O.id,A[42]=O.isInAdvisoryRepo,A[43]=O.mergedBy,A[44]=O.mergedByName,A[45]=O.mergedTime,A[46]=O.number,A[47]=O.state,A[48]=P.defaultBranch,A[49]=P.id,A[50]=P.name,A[51]=P.ownerLogin,A[52]=$.canChangeBase,A[53]=x):x=A[53],A[54]!==g||A[55]!==x?(b=(0,i.jsxs)(“div”,{className:”d-flex flex-column flex-sm-row gap-2 width-full flex-items-start flex-justify-between”,children:[g,x]}),A[54]=g,A[55]=x,A[56]=b):b=A[56],A[57]!==E||A[58]!==O||A[59]!==P?(y=(0,i.jsx)(Z,{bannersData:E,pullRequest:O,repository:P}),A[57]=E,A[58]=O,A[59]=P,A[60]=y):y=A[60],A[61]!==b||A[62]!==y?(C=(0,i.jsxs)(d.z.Description,{className:”d-flex flex-column flex-items-start”,children:[b,y]}),A[61]=b,A[62]=y,A[63]=C):C=A[63],A[64]===Symbol.for(“react.memo_cache_sentinel”)?(w=(0,h.$)(eX,”float-right d-none d-md-block”),A[64]=w):w=A[64],A[65]===Symbol.for(“react.memo_cache_sentinel”)?(D=(0,i.jsx)(“div”,{className:w,children:(0,i.jsx)(S.Suspense,{fallback:(0,i.jsx)(e0.O,{width:”80px”}),children:(0,i.jsx)(eW,{})})}),A[65]=D):D=A[65],A[66]!==O||A[67]!==P||A[68]!==F?(I=(0,i.jsxs)(d.z.Navigation,{className:”pt-3 px-3 ml-n3 mr-n3″,children:[D,(0,i.jsx)(“div”,{className:”flex-auto”,children:(0,i.jsx)(eR,{pullRequest:O,repository:P,urls:F})})]}),A[66]=O,A[67]=P,A[68]=F,A[69]=I):I=A[69],A[70]!==p||A[71]!==C||A[72]!==I||A[73]!==f?(_=(0,i.jsxs)(d.z,{className:”flex-items-center”,children:[f,p,C,I]}),A[70]=p,A[71]=C,A[72]=I,A[73]=f,A[74]=_):_=A[74],A[75]!==T||A[76]!==O||A[77]!==P?(k=!T&&(0,i.jsx)(N,{repository:P,pullRequest:O,pageVariant:”condensed”}),A[75]=T,A[76]=O,A[77]=P,A[78]=k):k=A[78],A[79]!==_||A[80]!==k||A[81]!==o||A[82]!==c?(R=(0,i.jsxs)(i.Fragment,{children:[o,c,_,k]}),A[79]=_,A[80]=k,A[81]=o,A[82]=c,A[83]=R):R=A[83],R}:function({bannersData:e,isFilesRoute:t,pullRequest:n,repository:a,urls:r,user:s}){let[l,o]=(0,S.useState)(!1),c=(0,e1.M3)(),f=n.state!==H.Q.Closed&&n.state!==H.Q.Merged,p=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“div”,{className:”js-pull-header-details”,”data-pull-is-open”:f?”true”:”false”,hidden:!0}),t&&(0,i.jsx)(e5,{repository:a,urls:r}),c&&(0,i.jsxs)(i.Fragment,{children:[s.canEditTitle&&(0,i.jsx)(L.Q,{onClick:()=>o(!0),size:”small”,children:”Edit”}),(0,i.jsx)(eH,{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)(ed,{initialTitle:n.title,pullRequestNumber:n.number,onCloseForm:()=>o(!1)}),!l&&(0,i.jsx)(“div”,{className:(0,h.$)(eY.A[“hide-on-desktop”],”pb-2 mb-3 flex-md-order-1 flex-shrink-0 d-flex flex-items-center gap-1″),children:p}),(0,i.jsxs)(d.z,{className:”flex-items-center”,children:[l&&(0,i.jsx)(“h1″,{className:”sr-only”,children:`${n.title} – #${n.number}`}),!l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.z.TitleArea,{children:(0,i.jsxs)(d.z.Title,{as:”h1″,className:”lh-condensed”,children:[(0,i.jsx)(j.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.$)(eY.A[“hide-on-mobile”],”flex-items-center gap-1″),children:p})]}),(0,i.jsxs)(d.z.Description,{className:”d-flex flex-column flex-items-start”,children:[(0,i.jsxs)(“div”,{className:”d-flex flex-column flex-sm-row gap-2 width-full flex-items-start flex-justify-between”,children:[(0,i.jsx)(u.u,{state:n.state}),(0,i.jsx)(“div”,{className:”flex-1″,children:(0,i.jsx)(m.O,{author:n.author,mergedTime:n.mergedTime,baseBranch:n.baseBranch,baseRepositoryDefaultBranch:a.defaultBranch,baseRepositoryName:a.name,baseRepositoryOwnerLogin:a.ownerLogin,canChangeBase:s.canChangeBase,commitsCount:n.commitsCount,headBranch:n.headBranch,headRepositoryOwnerLogin:n.headRepositoryOwnerLogin,headRepositoryName:n.headRepositoryName,isInAdvisoryRepo:n.isInAdvisoryRepo,isEditing:l,mergedBy:n.mergedBy,mergedByName:n.mergedByName,repositoryId:a.id,pullRequestId:n.id,pullRequestNumber:n.number,setIsEditing:o,state:n.state})})]}),(0,i.jsx)(Z,{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.$)(eX,”float-right d-none d-md-block”),children:(0,i.jsx)(S.Suspense,{fallback:(0,i.jsx)(e0.O,{width:”80px”}),children:(0,i.jsx)(eW,{})})}),(0,i.jsx)(“div”,{className:”flex-auto”,children:(0,i.jsx)(eR,{pullRequest:n,repository:a,urls:r})})]})]}),!t&&(0,i.jsx)(N,{repository:a,pullRequest:n,pageVariant:”condensed”})]})},e5=(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,$.DI)((0,K.ZD8)({repo:m}),{body:e,method:”POST”})},u[0]=m,u[1]=t):t=u[1];let h=t;u[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,e1.M3)(),u[2]=n):n=u[2];let p=n,g=e2.fV.pathname??””,x=e2.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)(D.A,{variant:”success”,className:eJ,children:”Preview”}),u[3]=s):s=u[3],u[4]!==h||u[5]!==a?(l=p&&(0,i.jsx)(I.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)(I.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,$.DI)((0,K.ZD8)({repo:e}),{body:t,method:”POST”})},r=(0,e1.M3)(),s=e2.fV.pathname??””,l=e2.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)(D.A,{variant:”success”,className:eJ,children:”Preview”}),r&&(0,i.jsx)(I.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)(I.A,{href:”https://gh.io/new-files-changed-feedback”,target:”_blank”,rel:”noopener noreferrer”,className:”no-wrap f6 text-normal”,children:”Feedback”})]})};try{e3.displayName||(e3.displayName=”LivePullRequestHeader”)}catch{}try{e4.displayName||(e4.displayName=”PullRequestHeader”)}catch{}try{e5.displayName||(e5.displayName=”FilesChangedFeedback”)}catch{}let e6=”/:owner/:repo/pull/:pr_number/files”,e7=”/:owner/:repo/pull/:pr_number/changes”;var e8=n(24798),e9=n(59432),te=n(68245);let tt=(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)(tn,{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)(tn,{children:e.children})})},tn=(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,e8.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)(ti,{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,e8.o)();return(0,i.jsx)(ti,{aliveChannel:t,pullRequest:n,bannersData:a,repository:r,urls:s,user:l,children:e.children})},ti=(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,ep.RQ)(`${e6}/*`),x=null!==(0,ep.RQ)(`${e7}/*`),b=g||x,y=b?w:C,j=m.userNameDisplayConfiguration||void 0,N=`mt-4 ${y}`;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)(e9.b.Header,{divider:”none”,padding:”none”,children:(0,i.jsx)(e3,{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]!==N||o[10]!==t?(n=(0,i.jsxs)(e9.b.Container,{className:N,children:[t,p]}),o[8]=p,o[9]=N,o[10]=t,o[11]=n):n=o[11],o[12]!==j||o[13]!==n?(a=(0,i.jsx)(te.z,{value:j,children:n}),o[12]=j,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,ep.RQ)(`${e6}/*`),c=null!==(0,ep.RQ)(`${e7}/*`),u=d||c,m=u?w:C;return(0,i.jsx)(s.Kg,{basePageDataUrl:r.conversation,children:(0,i.jsx)(te.z,{value:a.userNameDisplayConfiguration||void 0,children:(0,i.jsxs)(e9.b.Container,{className:`mt-4 ${m}`,children:[(0,i.jsx)(e9.b.Header,{divider:”none”,padding:”none”,children:(0,i.jsx)(e3,{aliveChannel:e,bannersData:n,isFilesRoute:u,repository:a,pullRequest:t,urls:r,user:l})}),o]})})})};try{tt.displayName||(tt.displayName=”App”)}catch{}try{tn.displayName||(tn.displayName=”Layout”)}catch{}try{ti.displayName||(ti.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})},95807:(e,t,n)=>{n.d(t,{i:()=>y});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 y({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)(j,{pullRequestId:n,repositoryId:t,stale:d,latest_unsynced_push_to_head_ref_at:u})})})}let j=(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{y.displayName||(y.displayName=”PullRequestsProcessingIndicatorWithDataFetching”)}catch{}try{j.displayName||(j.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:y}=(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]!==y?(m=(n,i)=>(y(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]=y,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=30678-d93eb1ee50d5.js.map