"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["ui_packages_commit-attribution_index_ts-ui_packages_commit-checks-status_index_ts-ui_packages-c2bab3"],{53924:(e,t,r)=>{r.d(t,{D:()=>b,C:()=>$});var n=r(85893),o=r(79804),i=r(22326),a=r(42483),l=r(73290),s=r(97011);function c(e){return e.path?.startsWith("/apps/")??!1}var d=r(41436);function u({renderTooltip:e,author:t,children:r}){return!1===e?(0,n.jsx)(n.Fragment,{children:r}):(0,n.jsx)(d.u,{text:`commits by ${t.login}`,direction:"se",children:r})}try{u.displayName||(u.displayName="AuthorTooltip")}catch{}var h=r(9996),f=r.n(h),p=r(67294);let x={fontWeight:"bold",fontColor:"fg.default",includeTooltip:!1,avatarSize:void 0},m=(0,p.createContext)(x);function g({authorSettings:e,children:t}){let r=f()(x,e??{});return(0,n.jsx)(m.Provider,{value:r,children:t})}function y(){return(0,p.useContext)(m)||x}try{m.displayName||(m.displayName="AuthorSettingsContext")}catch{}try{g.displayName||(g.displayName="AuthorSettingsProvider")}catch{}function b({author:e,repo:t,sx:r={}}){let d=y();if(!e)return null;let h=(0,n.jsx)(o.O,{"aria-label":`${e.login||"author"}`,src:e.avatarUrl,alt:`${e.login||"author"}`,sx:{mr:2,mt:"-1px",ml:"1px"},size:d.avatarSize,square:c(e)});return(0,n.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"row",alignItems:"center",...r},"data-testid":"author-avatar",children:[e.path?(0,n.jsx)(l.Z,{href:e.path,"data-testid":"avatar-icon-link","data-hovercard-url":e.login?(0,i.zP)({owner:e.login}):void 0,children:h}):h,e.login?(0,n.jsx)(u,{author:e,renderTooltip:d.includeTooltip,children:(0,n.jsx)(l.Z,{muted:!0,href:(0,i.OI)({repo:t,author:e.login}),"aria-label":`commits by ${e.login}`,"data-hovercard-url":(0,i.zP)({owner:e.login}),sx:{fontWeight:d.fontWeight,whiteSpace:"nowrap",color:d.fontColor,"&:hover":{color:d.fontColor,textDecoration:"underline"}},children:e.login})}):(0,n.jsx)(s.Z,{sx:{fontWeight:d.fontWeight,whiteSpace:"nowrap",color:d.fontColor},children:e.displayName})]})}try{b.displayName||(b.displayName="AuthorAvatar")}catch{}var v=r(52516),j=r(79902),w=r(59148);function C({authors:e,repo:t}){let r=e.length,[o,i]=(0,p.useState)(!1),a=(0,p.useRef)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.Z,{as:"button","aria-label":`Show ${r} authors`,"data-testid":"authors-dialog-anchor",onClick:()=>{i(!0)},sx:{mx:1},ref:a,muted:!0,children:[r," ","people"]}),o&&(0,n.jsx)(w.V,{title:`${r} authors`,onClose:()=>{i(!1),setTimeout(()=>a.current?.focus(),25)},width:"medium",height:r>=12?"small":"auto",renderBody:()=>(0,n.jsx)(v.S,{sx:{overflowY:"auto",py:2},"data-testid":"contributor-dialog-list",children:e.map((e,r)=>(0,n.jsx)(N,{author:e,repo:t},`${e.login}_${r}`))})})]})}function N({author:e,repo:t}){return(0,n.jsxs)(v.S.LinkItem,{sx:{display:"flex",flexDirection:"row",fontSize:1,py:2,color:"fg.default","&:hover":{backgroundColor:"canvas.subtle"}},"data-testid":"contributor-dialog-row",href:(0,i.OI)({repo:t,author:e.login??""}),children:[(0,n.jsx)(o.O,{src:e.avatarUrl,alt:e.login??e.displayName,sx:{mr:2},"aria-hidden":"true",square:c(e)}),(0,n.jsx)(j.Z,{inline:!0,title:e.login??e.displayName??"",children:e.login??e.displayName})]})}try{C.displayName||(C.displayName="AuthorsDialog")}catch{}try{N.displayName||(N.displayName="AuthorRow")}catch{}var S=r(90836);function k({authors:e}){let t=y();return(0,n.jsx)(S.Z,{children:e.slice(0,5).map((e,r)=>(0,n.jsx)(o.O,{"data-testid":"commit-stack-avatar",src:e.avatarUrl,alt:e.login??e.displayName,"data-hovercard-url":(0,i.zP)({owner:e.login??""}),square:c(e),size:t.avatarSize},`${e.login}_${r}`))})}try{k.displayName||(k.displayName="CommitAuthorStack")}catch{}function E({author:e,repo:t,sx:r={}}){let o=y();return e?(0,n.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",alignItems:"center",...r},"data-testid":"author-link",children:e.login?(0,n.jsx)(u,{author:e,renderTooltip:o.includeTooltip,children:(0,n.jsx)(l.Z,{muted:!0,href:(0,i.OI)({repo:t,author:e.login}),"aria-label":`commits by ${e.login}`,"data-hovercard-url":(0,i.zP)({owner:e.login}),sx:{fontWeight:o.fontWeight,whiteSpace:"nowrap",color:o.fontColor,"&:hover":{color:o.fontColor,textDecoration:"underline"}},children:e.login})}):(0,n.jsx)(s.Z,{sx:{fontWeight:o.fontWeight,whiteSpace:"nowrap",color:o.fontColor},children:e.displayName})}):null}try{E.displayName||(E.displayName="AuthorLink")}catch{}function I({author:e,repo:t}){return(0,n.jsx)(b,{author:e,repo:t})}function D({author:e,committer:t,repo:r}){let o=[e];return t&&o.push(t),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k,{authors:o}),(0,n.jsx)(E,{author:e,repo:r,sx:{pl:1}})]})}function T({authors:e,repo:t}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k,{authors:e}),e.map((r,o)=>(0,n.jsxs)(p.Fragment,{children:[(0,n.jsx)(E,{author:r,repo:t,sx:{pl:1}}),o!==e.length-1&&(0,n.jsx)("span",{className:"pl-1",children:"and"})]},`${r.login}_${o}`))]})}function L({authors:e,repo:t}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k,{authors:e}),(0,n.jsx)(C,{authors:e,repo:t})]})}function $({authors:e,committer:t,committerAttribution:r,repo:o,children:i,includeVerbs:l=!0,authorSettings:s}){let c=1===e.length&&!r,d=1===e.length&&r,u=2===e.length&&!r,h=l?{pl:1}:{};return(0,n.jsx)(a.Z,{sx:{display:"flex",flexDirection:"row",flexWrap:["wrap","wrap","wrap","nowrap"],alignItems:"center"},children:(0,n.jsxs)(g,{authorSettings:s,children:[c&&(0,n.jsx)(I,{author:e[0],repo:o}),d&&(0,n.jsx)(D,{author:e[0],committer:t,repo:o}),u&&(0,n.jsx)(T,{authors:e,repo:o}),!c&&!d&&!u&&(0,n.jsx)(L,{authors:e,repo:o}),r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"pl-1",children:l?"authored and":"and"}),(0,n.jsx)(E,{author:t,repo:o,sx:{pl:1}}),(0,n.jsx)(a.Z,{as:"span",sx:h,children:l&&"committed"})]}):(0,n.jsx)(a.Z,{as:"span",sx:h,children:l&&"committed"}),i]})})}try{I.displayName||(I.displayName="SingleAuthor")}catch{}try{D.displayName||(D.displayName="AuthorAndCommitter")}catch{}try{T.displayName||(T.displayName="TwoAuthors")}catch{}try{L.displayName||(L.displayName="MultipleAuthors")}catch{}try{$.displayName||($.displayName="CommitAttribution")}catch{}},20756:(e,t,r)=>{r.d(t,{AF:()=>b,vC:()=>w,fQ:()=>S});var n=r(85893),o=r(85529),i=r(98833),a=r(97011),l=r(88216),s=r(65379),c=r(50919),d=r(67294),u=r(42483),h=r(74121),f=r(59148),p=r(79804),x=r(73290);function m({checkRun:e}){let{icon:t,iconColor:r}=function(e){switch(e){case"check":return{icon:o.CheckIcon,iconColor:"success.fg"};case"dot-fill":return{icon:o.DotFillIcon,iconColor:"attention.fg"};case"stop":return{icon:o.StopIcon,iconColor:"muted.fg"};case"issue-reopened":return{icon:o.IssueReopenedIcon,iconColor:"muted.fg"};case"clock":return{icon:o.ClockIcon,iconColor:"attention.fg"};case"square-fill":return{icon:o.SquareFillIcon,iconColor:"fg.default"};case"skip":return{icon:o.SkipIcon,iconColor:"muted.fg"};case"alert":return{icon:o.AlertIcon,iconColor:"danger.fg"};default:return{icon:o.XIcon,iconColor:"danger.fg"}}}(e.icon),l="in_progress"===e.state;return(0,n.jsxs)(u.Z,{"data-testid":"check-run-item",as:"li",sx:{display:"flex",borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"border.default",backgroundColor:"canvas.subtle",py:2,pr:3,pl:"12px",alignItems:"center"},children:[(0,n.jsxs)(u.Z,{sx:{alignSelf:"center",display:"flex"},children:[l?(0,n.jsx)(u.Z,{sx:{height:"16px",width:"16px",minWidth:"16px",alignSelf:"center",mx:"7px"},children:(0,n.jsxs)("svg",{fill:"none",viewBox:"0 0 16 16",className:"anim-rotate","aria-hidden":"true",role:"img",children:[(0,n.jsx)("path",{opacity:".5",d:"M8 15A7 7 0 108 1a7 7 0 000 14v0z",stroke:"#dbab0a",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M15 8a7 7 0 01-7 7",stroke:"#dbab0a",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M8 12a4 4 0 100-8 4 4 0 000 8z",fill:"#dbab0a"})]})}):(0,n.jsx)(i.Z,{icon:t,sx:{color:r,margin:"0px 7px",alignSelf:"center"}}),(0,n.jsx)(s.Z,{"aria-label":e.avatarDescription,direction:"e",children:(0,n.jsx)(x.Z,{href:e.avatarUrl,sx:{mr:2},"aria-label":"Avatar",children:(0,n.jsx)(p.O,{square:!0,src:e.avatarLogo,sx:{backgroundColor:e.avatarBackgroundColor}})})})]}),(0,n.jsxs)(a.Z,{sx:{fontSize:"13px",color:"fg.muted"},children:[(0,n.jsxs)(a.Z,{sx:{fontWeight:"bold",color:"fg.default",mr:"2px"},children:[e.name," "]}),e.pending?(0,n.jsx)(a.Z,{sx:{fontStyle:"italic"},children:e.additionalContext}):e.additionalContext,e.description&&(0,n.jsxs)(a.Z,{children:[" ","- ",e.pending?(0,n.jsx)(a.Z,{sx:{fontStyle:"italic"},children:e.description}):e.description]})]}),(0,n.jsx)(x.Z,{href:e.targetUrl,sx:{pl:"12px",fontSize:"13px",marginLeft:"auto"},children:"Details"})]})}try{m.displayName||(m.displayName="CheckRunItem")}catch{}function g({checkRuns:e}){return(0,n.jsx)(u.Z,{as:"ul",sx:{display:"flex",flexDirection:"column",maxHeight:["230px","380px"],overflow:"auto"},children:e.map((e,t)=>(0,n.jsx)(m,{checkRun:e},t))})}try{g.displayName||(g.displayName="ChecksStatusBadgeFooter")}catch{}function y({checksHeaderState:e}){switch(e){case"SUCCEEDED":return(0,n.jsx)(a.Z,{sx:{fontWeight:"bold",fontSize:2},children:"All checks have passed"});case"FAILED":return(0,n.jsx)(a.Z,{sx:{color:"var(--fgColor-danger, var(--color-danger-fg))",fontWeight:"bold",fontSize:2},children:"All checks have failed"});case"PENDING":return(0,n.jsx)(a.Z,{sx:{color:"var(--fgColor-attention, var(--color-attention-fg))",fontWeight:"bold",fontSize:2},children:"Some checks haven\u2019t completed yet"});default:return(0,n.jsx)(a.Z,{sx:{color:"var(--fgColor-danger, var(--color-danger-fg))",fontWeight:"bold",fontSize:2},children:"Some checks were not successful"})}}try{y.displayName||(y.displayName="HeaderState")}catch{}function b(e){let{combinedStatus:t,isOpen:r,onDismiss:o}=e,i=t?(0,n.jsx)(y,{checksHeaderState:t.checksHeaderState}):"Loading...";return r?(0,n.jsx)(f.V,{onClose:o,sx:{overflowY:"auto",backgroundColor:"canvas.default",boxShadow:"none",border:"1px solid",borderColor:"border.default",borderBottom:0},title:i,subtitle:t?t.checksStatusSummary:void 0,width:"xlarge",renderBody:()=>(0,n.jsx)(f.V.Body,{sx:{padding:0},children:t?(0,n.jsx)(g,{checkRuns:t.checkRuns}):(0,n.jsx)(u.Z,{sx:{display:"flex",justifyContent:"center",p:2},children:(0,n.jsx)(h.Z,{size:"medium"})})})}):null}try{b.displayName||(b.displayName="CheckStatusDialog")}catch{}let v={success:{circled:o.CheckCircleIcon,filled:o.CheckCircleFillIcon,default:o.CheckIcon,color:"var(--bgColor-success-emphasis, var(--color-success-emphasis))"},pending:{circled:o.CircleIcon,filled:o.DotFillIcon,default:o.DotFillIcon,color:"var(--bgColor-attention-emphasis, var(--color-scale-yellow-4))"},error:{circled:o.XCircleIcon,filled:o.XCircleFillIcon,default:o.XIcon,color:"var(--bgColor-danger-emphasis, var(--color-scale-red-4))"}};function j({descriptionText:e,icon:t,iconColor:r}){return(0,n.jsxs)("span",{"data-testid":"checks-status-badge-icon-only",children:[(0,n.jsx)(i.Z,{icon:t,"aria-label":"See all checks",sx:{color:r}}),e&&(0,n.jsxs)(a.Z,{children:[" ",e]})]})}function w(e){let{statusRollup:t,combinedStatus:r,variant:o="default",disablePopover:i,buttonSx:a,size:u="medium",descriptionText:h="",onWillOpenPopup:f}=e,[p,x]=(0,d.useState)(!1),m=(0,d.useId)(),g=(0,d.useRef)(null),y=v[t],{icon:w,iconColor:C}={icon:y?.[o]||v.error[o],iconColor:y?.color||v.error.color};return i?(0,n.jsx)(j,{descriptionText:h,icon:w,iconColor:C}):(0,n.jsxs)(n.Fragment,{children:[h?(0,n.jsx)(l.r,{"data-testid":"checks-status-badge-button",leadingVisual:w,variant:"invisible",size:u,"aria-label":r?.checksStatusSummary??`Status checks: ${t}`,sx:{p:1,color:"fg.default",fontWeight:"normal",svg:{color:C},...a},ref:g,onClick:()=>{f?.(),x(!0)},children:h}):(0,n.jsx)(s.Z,{id:m,"aria-label":r?.checksStatusSummary??t,direction:"se",sx:{mr:2},children:(0,n.jsx)(c.h,{"data-testid":"checks-status-badge-icon",icon:w,variant:"invisible",size:u,"aria-labelledby":m,sx:{py:0,px:0,svg:{color:C},":hover:not([disabled])":{bg:"pageHeaderBg"},...a},ref:g,onClick:()=>{f?.(),x(!0)}})}),p&&(0,n.jsx)(b,{combinedStatus:r,isOpen:p,onDismiss:()=>{x(!1),setTimeout(()=>{g.current?.focus()},0)}})]})}try{j.displayName||(j.displayName="IconOnlyStatus")}catch{}try{w.displayName||(w.displayName="ChecksStatusBadge")}catch{}var C=r(22326),N=r(87623);function S(e,t){let[r,n]=(0,d.useState)(),[o,i]=(0,d.useState)(),a=(0,d.useCallback)(async()=>{if(o!==e&&(i(e),n(void 0),e)){let r=(0,C.S$)(t,e),o=await (0,N.v)(r);n(await o.json())}},[e,o,t]);return[r,a]}},51927:(e,t,r)=>{r.d(t,{$1:()=>s,Aq:()=>l,L4:()=>n,YZ:()=>i,aF:()=>SymbolChangedEvent,cw:()=>o,d0:()=>a});let OpenCopilotChatEvent=class OpenCopilotChatEvent extends Event{constructor(e){super("open-copilot-chat",{bubbles:!1,cancelable:!0}),this.payload=e}};let AddCopilotChatReferenceEvent=class AddCopilotChatReferenceEvent extends Event{constructor(e,t=!1,r){super("add-copilot-chat-reference",{bubbles:!1,cancelable:!0}),this.reference=e,this.openPanel=t,this.id=r}};let SymbolChangedEvent=class SymbolChangedEvent extends Event{constructor(e){super("symbol-changed",{bubbles:!1,cancelable:!0}),this.context=e}};function n(e){window.dispatchEvent(new OpenCopilotChatEvent(e))}function o(e,t=!1,r){window.dispatchEvent(new AddCopilotChatReferenceEvent(e,t,r))}function i(e){return window.addEventListener("open-copilot-chat",e),()=>{window.removeEventListener("open-copilot-chat",e)}}function a(e){return window.addEventListener("add-copilot-chat-reference",e),()=>{window.removeEventListener("add-copilot-chat-reference",e)}}function l(e){return window.addEventListener("search-copilot-chat",e),()=>{window.removeEventListener("search-copilot-chat",e)}}function s(e){return window.addEventListener("symbol-changed",e),()=>{window.removeEventListener("symbol-changed",e)}}},85355:(e,t,r)=>{r.d(t,{A9:()=>n,cR:()=>i,uF:()=>o});let n={explain:"explain",conversation:"conversation",suggest:"suggest",askDocs:"ask-docs",discussFileDiff:"discuss-file-diff",explainFileDiff:"explain-file-diff",reviewPr:"review-pull-request"},o=["exception","filtered","contentTooLarge","rateLimit","agentUnauthorized","networkError"],i=["bing-search","codesearch","pathsearch","show-symbol-definition","getissue"]},46455:(e,t,r)=>{function n(e){return`line-${e}`}function o(e,t,r){return`${e}${"left"===t?"L":"R"}${r}`}function i(e){return"DELETION"===e?"left":"right"}function a(e,t=!1,r=!1){if(r)return"var(--bgColor-attention-muted, var(--color-attention-subtle))";switch(e){case"ADDITION":return t?"var(--diffBlob-addition-bgColor-num, var(--color-diff-blob-addition-num-bg))":"var(--diffBlob-addition-bgColor-line, var(--color-diff-blob-addition-line-bg))";case"DELETION":return t?"var(--diffBlob-deletion-bgColor-num, var(--color-diff-blob-deletion-num-bg))":"var(--diffBlob-deletion-bgColor-line, var(--color-diff-blob-deletion-line-bg))";case"HUNK":case"EMPTY":return t?"var(--diffBlob-hunk-bgColor-num, var(--color-diff-blob-hunk-num-bg))":"var(--bgColor-accent-muted, var(--color-accent-subtle))";default:return}}function l(e){let t=0;if(e)for(let r of e)t=Math.max(t,r?.left??0,r?.right??0);let r=8*t.toString().length+20;return Math.max(r,40).toString()}r.d(t,{Gi:()=>l,Jn:()=>i,_N:()=>o,dF:()=>a,x1:()=>n})},6975:(e,t,r)=>{r.d(t,{Yj:()=>c,G7:()=>u,Sv:()=>f,Gt:()=>g,Cp:()=>x,fx:()=>m,iZ:()=>y,wj:()=>b,pE:()=>v,_2:()=>w});var n=r(85893),o=r(86010),i=r(75299),a=r(46455);let l=e=>{let{dragging:t,isHighlighted:r,isLeftColumn:l,colSpan:s,line:c,lineAnchor:d}=e,u=c.html,h="";return["ADDITION","DELETION"].includes(c.type)&&["+","-"].includes(u[0])&&(h=u[0],u=u.slice(1)),(0,n.jsx)("td",{className:(0,o.W)("diff-text-cell",{"border-left color-border-accent-emphasis":t&&r,"border-right":l&&"HUNK"!==c.type}),colSpan:s,id:d?(0,a.x1)(d):void 0,style:{backgroundColor:(0,a.dF)(c.type,!1,r)},children:(0,n.jsxs)("code",{"data-code-marker":h,className:(0,o.W)("diff-text syntax-highlighted-line",{addition:"ADDITION"===c.type,deletion:"DELETION"===c.type}),children:[e.lineChild,(0,n.jsx)(i.sF,{className:(0,o.W)("diff-text-inner",{"color-fg-muted":"HUNK"===c.type}),html:u,style:{marginLeft:"CONTEXT"===c.type?"-7px":void 0}})]})})};try{l.displayName||(l.displayName="DiffText")}catch{}let s=({ariaLabel:e,children:t,hasExpanderButton:r,lineType:i,colSpan:l,interactiveProps:s,isHighlighted:c,...d})=>{let u=(0,n.jsx)("code",{className:"pr-2",children:t});return s&&(u=(0,n.jsx)("button",{className:"diff-line-number-button",...s,"aria-label":e,children:u})),(0,n.jsx)("td",{"aria-label":s?void 0:e,"data-line-number":!0,className:(0,o.W)("diff-line-number",{"has-expander":r,clickable:!!s}),colSpan:l||1,style:{backgroundColor:(0,a.dF)(i,!0,c)},...d,children:u})};try{s.displayName||(s.displayName="LineNumber")}catch{}let c=({dragging:e,isHighlighted:t,isLeftColumn:r,isSplit:o,lineAnchor:i,line:a,lineChild:c,onLineNumberClick:d})=>{let u="CONTEXT"===a.type||"INJECTED_CONTEXT"===a.type,h="ADDITION"!==a.type,f="DELETION"!==a.type,p=o&&u?r?a.left:a.right:a.left;return(0,n.jsxs)(n.Fragment,{children:[(h||!o)&&(0,n.jsx)(s,{ariaLabel:`Line ${h?a.left?.toString():a.right?.toString()}`,lineType:a.type,interactiveProps:d?{onClick:d}:null,isHighlighted:t,children:h&&p}),(f&&!u||!o)&&(0,n.jsx)(s,{ariaLabel:`Line ${f?a.right?.toString():a.left?.toString()}`,lineType:a.type,interactiveProps:d?{onClick:d}:null,isHighlighted:t,children:f&&a.right}),(0,n.jsx)(l,{dragging:e,isHighlighted:t,isLeftColumn:r,line:a,lineAnchor:i,lineChild:c})]})};try{c.displayName||(c.displayName="DiffLinePart")}catch{}var d=r(42483);function u(){return(0,n.jsx)(d.Z,{"aria-hidden":"true",as:"svg",version:"1.1",viewBox:"0 0 340 84",xmlns:"http://www.w3.org/2000/svg",sx:{bottom:"0 !important",clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"84px",position:"absolute",width:"320px"},children:(0,n.jsxs)("defs",{children:[(0,n.jsxs)("clipPath",{id:"diff-placeholder",children:[(0,n.jsx)("rect",{height:"11.9298746",rx:"2",width:"67.0175439",x:"0",y:"0"}),(0,n.jsx)("rect",{height:"11.9298746",rx:"2",width:"100.701754",x:"18.9473684",y:"47.7194983"}),(0,n.jsx)("rect",{height:"11.9298746",rx:"2",width:"37.8947368",x:"0",y:"71.930126"}),(0,n.jsx)("rect",{height:"11.9298746",rx:"2",width:"53.3333333",x:"127.017544",y:"48.0703769"}),(0,n.jsx)("rect",{height:"11.9298746",rx:"2",width:"72.9824561",x:"187.719298",y:"48.0703769"}),(0,n.jsx)("rect",{height:"11.9298746",rx:"2",width:"140.350877",x:"76.8421053",y:"0"}),(0,n.jsx)("rect",{height:"11.9298746",rx:"2",width:"140.350877",x:"17.8947368",y:"23.8597491"}),(0,n.jsx)("rect",{height:"11.9298746",rx:"2",width:"173.684211",x:"166.315789",y:"23.8597491"})]}),(0,n.jsxs)("linearGradient",{id:"animated-diff-gradient",spreadMethod:"reflect",x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,n.jsx)("stop",{offset:"0",stopColor:"#eee"}),(0,n.jsx)("stop",{offset:"0.2",stopColor:"#eee"}),(0,n.jsx)("stop",{offset:"0.5",stopColor:"#ddd"}),(0,n.jsx)("stop",{offset:"0.8",stopColor:"#eee"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#eee"}),(0,n.jsx)("animateTransform",{attributeName:"y1",dur:"1s",repeatCount:"3",values:"0%; 100%; 0"}),(0,n.jsx)("animateTransform",{attributeName:"y2",dur:"1s",repeatCount:"3",values:"100%; 200%; 0"})]})]})})}try{u.displayName||(u.displayName="DiffPlaceholder")}catch{}let h={addition:"diffstat.additionBg",deletion:"danger.emphasis",neutral:"neutral.bg"};function f({squares:e}){return(0,n.jsx)(d.Z,{sx:{display:"flex"},children:e.map((e,t)=>(0,n.jsx)(d.Z,{"data-testid":`${e} diffstat`,sx:{backgroundColor:h[e],width:"8px",height:"8px",marginLeft:"1px",outlineOffset:"-1px",borderStyle:"solid",borderColor:"border.subtle",borderWidth:"1px"}},t))})}try{f.displayName||(f.displayName="DiffSquares")}catch{}var p=r(85529);function x({currentLine:e,hunkButton:t,isLeftColumn:r,isSplit:o}){return o&&!r?null:(0,n.jsxs)(n.Fragment,{children:[t?(0,n.jsx)(s,{colSpan:o?1:2,hasExpanderButton:!0,lineType:e.type,children:t}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s,{lineType:e.type,children:(0,n.jsx)(p.KebabHorizontalIcon,{})}),!o&&(0,n.jsx)(s,{lineType:e.type,children:(0,n.jsx)(p.KebabHorizontalIcon,{})})]}),(0,n.jsx)(l,{isHighlighted:!1,isLeftColumn:!0,colSpan:o?3:void 0,line:e})]})}try{x.displayName||(x.displayName="HunkHeaderDiffLine")}catch{}function m(){return(0,n.jsx)("div",{className:"hunk-kebab-icon pr-2 pb-1",children:(0,n.jsx)(p.KebabHorizontalIcon,{})})}try{m.displayName||(m.displayName="HunkKebabIcon")}catch{}function g({isLeftColumn:e}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s,{lineType:"EMPTY"}),(0,n.jsx)("td",{className:(0,o.W)("empty-diff-line",{"border-right":e}),colSpan:1})]})}try{g.displayName||(g.displayName="EmptyDiffLine")}catch{}function y(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("thead",{hidden:!0,children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"col",children:"Original file line number"}),(0,n.jsx)("th",{scope:"col",children:"Original file line"}),(0,n.jsx)("th",{scope:"col",children:"Diff line number"}),(0,n.jsx)("th",{scope:"col",children:"Diff line change"})]})}),(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{width:e.lineWidth}),(0,n.jsx)("col",{}),(0,n.jsx)("col",{width:e.lineWidth}),(0,n.jsx)("col",{})]}),(0,n.jsx)("tbody",{children:e.children})]})}try{y.displayName||(y.displayName="SplitDiffTable")}catch{}function b(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("thead",{hidden:!0,children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"col",children:"Original file line number"}),(0,n.jsx)("th",{scope:"col",children:"Diff line number"}),(0,n.jsx)("th",{scope:"col",children:"Diff line change"})]})}),(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{width:e.lineWidth}),(0,n.jsx)("col",{width:e.lineWidth}),(0,n.jsx)("col",{width:"100%"})]}),(0,n.jsx)("tbody",{children:e.children})]})}try{b.displayName||(b.displayName="UnifiedDiffTable")}catch{}function v(e,t){let r,n,o;let i=e.slice(1).search(/\S/)||0;return e.includes(" ")&&(r=e.split(RegExp(" ")).length-1),{getPaddingLeft:function(){return n||(n=r?`${t*r*7}px`:i<1?"0px":`${7*i}px`)},getTextIndent:function(){return o||(o=r?`-${t*r*7+t}px`:i<1?"0px":`-${7*i+.5}px`)}}}function j(e){return"LEFT"===e?"-":"RIGHT"===e?"+":""}function w({startDiffSide:e,endDiffSide:t,originalStartLine:r,originalEndLine:n}){return e&&t&&"number"==typeof r&&"number"==typeof n?0===r&&1===n&&e===t?"-1 to +1":e===t&&r===n?`${j(e)}${r}`:`${j(e)}${r} to ${j(t)}${n}`:""}},65809:(e,t,r)=>{r.d(t,{eK:()=>m});var n=r(82918),o=r(21630),i=r(28382);function a(e){let t=document.querySelectorAll(e);if(t.length>0)return t[t.length-1]}var l=r(54508),s=r(71207),c=r(18515),d=r(58374);let u=!1,h=0,f=Date.now(),p=new Set(["Failed to fetch","NetworkError when attempting to fetch resource."]);function x(e){return!!("AbortError"===e.name||"TypeError"===e.name&&p.has(e.message)||e.name.startsWith("ApiError")&&p.has(e.message))}function m(e,t={}){if((0,c.c)("FAILBOT_HANDLE_NON_ERRORS")){if(!(e instanceof Error||"object"==typeof e&&null!==e&&"name"in e&&"string"==typeof e.name&&"message"in e&&"string"==typeof e.message)){if(function(e){if(!e||"boolean"==typeof e||"number"==typeof e)return!0;if("string"==typeof e){if(C.some(t=>e.includes(t)))return!0}else if("object"==typeof e&&"string"==typeof e.message&&"number"==typeof e.code)return!0;return!1}(e))return;let r=Error(),n=function(e){try{return JSON.stringify(e)}catch{return"Unserializable"}}(e),o={type:"UnknownError",value:`Unable to report error, due to a thrown non-Error type: ${typeof e}, with value ${n}`,stacktrace:v(r),catalogService:void 0};g(b(o,t));return}x(e)||g(b(y(e),t))}else x(e)||g(b(y(e),t))}async function g(e){if(!(!w&&!u&&h<10&&(0,o.Gb)()))return;let t=document.head?.querySelector('meta[name="browser-errors-url"]')?.content;if(t){if(e.error.stacktrace.some(e=>j.test(e.filename)||j.test(e.function))){u=!0;return}h++;try{await fetch(t,{method:"post",body:JSON.stringify(e)})}catch{}}}function y(e){return{type:e.name,value:e.message,stacktrace:v(e),catalogService:e.catalogService}}function b(e,t={}){return Object.assign({error:e,sanitizedUrl:`${window.location.protocol}//${window.location.host}${function(){let e=a("meta[name=analytics-location]");return e?e.content:window.location.pathname}()+function(){let e=a("meta[name=analytics-location-query-strip]"),t="";e||(t=window.location.search);let r=a("meta[name=analytics-location-params]");for(let e of(r&&(t+=(t?"&":"?")+r.content),document.querySelectorAll("meta[name=analytics-param-rename]"))){let r=e.content.split(":",2);t=t.replace(RegExp(`(^|[?&])${r[0]}($|=)`,"g"),`$1${r[1]}$2`)}return t}()}`||window.location.href,readyState:document.readyState,referrer:(0,d.wP)(),timeSinceLoad:Math.round(Date.now()-f),user:function(){let e=document.head?.querySelector('meta[name="user-login"]')?.content;if(e)return e;let t=(0,n.b)();return`anonymous-${t}`}()||void 0,bundler:l.A,ui:!!document.querySelector('meta[name="ui"]')},t)}function v(e){return(0,i.Q)(e.stack||"").map(e=>({filename:e.file||"",function:String(e.methodName),lineno:(e.lineNumber||0).toString(),colno:(e.column||0).toString()}))}let j=/(chrome|moz|safari)-extension:\/\//,w=!1;if(s.iG?.addEventListener("pageshow",()=>w=!1),s.iG?.addEventListener("pagehide",()=>w=!0),"function"==typeof BroadcastChannel){let e=new BroadcastChannel("shared-worker-error");e.addEventListener("message",e=>{m(e.data.error)})}let C=["Object Not Found Matching Id","Not implemented on this platform","provider because it's not your default extension"]},91534:(e,t,r)=>{r.d(t,{Z:()=>n});let n=(e,t)=>{let r=new URL(e,window.location.origin),n=new URL(t,window.location.origin),o=n.href.includes("#");return o&&r.host===n.host&&r.pathname===n.pathname&&r.search===n.search}},29065:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(67294);function o({focusRowRef:e,mouseRowRef:t}){let[r,o]=n.useState(!1);return n.useEffect(()=>{if(e.current&&t.current){let r=()=>{let t=e.current?.querySelector(".PRIVATE_TreeView-item-content-text");t?.scrollWidth!==t?.offsetWidth&&o(!0)};e.current.onfocus=()=>{r()},e.current.onblur=()=>{o(!1)},t.current.onmouseenter=()=>{r()},t.current.onmouseleave=()=>{o(!1)}}},[e,t]),r}},85193:(e,t,r)=>{r.d(t,{l:()=>h,s:()=>u});var n=r(67294),o=r(89250),i=r(12599),a=r(79655),l=r(91534),s=r(40940),c=r(10394),d=r(42439);let u=()=>{let{routes:e,history:t}=n.useContext(s.I),a=(0,o.s0)();return n.useCallback((n,o)=>{let s=(0,i.i3)(n).pathname,u=!(0,i.fp)(e,s);if(u){let e=t.createHref(n);(async()=>{let{softNavigate:t}=await Promise.all([r.e("vendors-node_modules_github_turbo_dist_turbo_es2017-esm_js"),r.e("ui_packages_soft-navigate_soft-navigate_ts")]).then(r.bind(r,12272));t(e)})()}else(0,l.Z)(location.href,n.toString())||(0,c.LD)("react"),(0,d.X)(()=>{a(n,o);let{turbo:e,...t}=window.history.state;window.history.replaceState({...t,skipTurbo:!0},"",location.href)})},[t,a,e])},h=()=>{let[e]=(0,a.lr)(),t=u(),{pathname:r}=(0,o.TH)(),i=n.useCallback((n,o)=>{let i=(0,a.fW)("function"==typeof n?n(e):n);t({pathname:r,search:i.toString()},o)},[e,t,r]);return[e,i]}},34603:(e,t,r)=>{r.d(t,{A:()=>a,F:()=>s});var n=r(67294),o=r(78720);let i=e=>e;function a(e){let t=n.useRef({}),r=n.useRef({}),a=(e,r)=>{t.current[e](r)},l=n.useRef(a);l.current=a;let s=n.useRef(new ResizeObserver(e=>{for(let t of e){let e=t.target,r="data-key",n=e.getAttribute(r);if(null===n)throw Error(`Value not found, for '${r}' attribute`);l.current(n,e)}}));n.useEffect(()=>{let e=s.current;return()=>{e.disconnect()}},[]);let{size:c,keyExtractor:d=i}=e,u=n.useMemo(()=>{let e=e=>t=>{r.current[e]&&s.current.unobserve(r.current[e]),t&&(l.current(e,t),s.current.observe(t)),r.current[e]=t},t={};for(let r=0;r(t.current[e.key]=e.measureRef,{...e,measureRef:u[e.key]}));return{...h,virtualItems:f}}var l=r(63451);function s({additionalScrollOffset:e=0,scrollToFn:t,horizontal:r,parentRef:i,useVirtualImpl:a=o.o,...s}){let c=(0,n.useRef)(window),d=(0,n.useCallback)(()=>{let e=i.current?.getBoundingClientRect(),t=e?.top??0,n=e?.left??0;return r?-1*n:-1*t},[r,i]),u=(0,n.useCallback)(t=>{let n=(i.current?.getBoundingClientRect().top??0)+window.scrollY,o=t+n+e;c.current?.scroll({top:r?0:o,left:r?o:0})},[e,r,i]);return a({...s,horizontal:r,parentRef:i,scrollToFn:t||u,onScrollElement:c,scrollOffsetFn:d,useObserver:()=>(function(e){let[t,r]=(0,n.useState)({height:0,width:0}),o=e.current;return(0,l.b)(()=>{if(!o)return;let e=()=>{let e={height:o.innerHeight,width:o.innerWidth};r(t=>t.height!==e.height||t.width!==e.width?e:t)};return e(),o.addEventListener("resize",e),()=>{o.removeEventListener("resize",e)}},[o]),t})(c)})}},77461:(e,t,r)=>{r.d(t,{r:()=>c});var n=r(85893),o=r(67294),i=r(12599),a=r(79655),l=r(40940),s=r(71207);let c=o.forwardRef(({to:e,reloadDocument:t,...r},c)=>{let{routes:d}=o.useContext(l.I),u=(0,i.i3)(e,s.ssrSafeLocation.pathname).pathname;return t=t??!(0,i.fp)(d,u),(0,n.jsx)(a.rU,{to:e,...r,reloadDocument:t,ref:c})});c.displayName="Link"},51952:(e,t,r)=>{r.d(t,{ZV:()=>u,_G:()=>n,eI:()=>c,xp:()=>d});var n,o=r(85893),i=r(46263),a=r(67294);!function(e){e[e.small=1]="small",e[e.medium=544]="medium",e[e.large=768]="large",e[e.xlarge=1012]="xlarge",e[e.xxlarge=1280]="xxlarge",e[e.xxxlarge=1350]="xxxlarge",e[e.xxxxlarge=1440]="xxxxlarge"}(n||(n={}));let l=[1440,1350,1280,1012,768,544,1],s=a.createContext({screenSize:1});function c(){return a.useContext(s)}function d({children:e,initialValue:t}){let r=(0,a.useSyncExternalStore)(()=>()=>{},()=>t??u(window.innerWidth),()=>t??1),n=(0,a.useRef)(r),[l,c]=(0,a.useState)(r),d=(0,a.useCallback)(()=>{let e=u(window.innerWidth);n.current!==e&&(n.current=e,c(e))},[]);(0,a.useEffect)(()=>{let e=new ResizeObserver((0,i.D)(d));return e.observe(document.documentElement),()=>e.disconnect()},[d]);let h=(0,a.useMemo)(()=>({screenSize:l}),[l]);return(0,o.jsx)(s.Provider,{value:h,children:e})}function u(e){for(let t of l)if(e>=t)return t;return 1}try{s.displayName||(s.displayName="ScreenContext")}catch{}try{d.displayName||(d.displayName="ScreenSizeProvider")}catch{}}}]); //# sourceMappingURL=ui_packages_commit-attribution_index_ts-ui_packages_commit-checks-status_index_ts-ui_packages-c2bab3-19b72abad68a.js.map