티스토리 수익 글 보기
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[97633],{1946:(e,t,i)=>{i.d(t,{oj:()=>j,ZH:()=>y});var n=i(28278),r=i(21728),a=i(38621),l=i(59014),o=i(11196),s=i(84268),c=i(60569),d=i(25556),f=i(35311),u=i(78049),m=i(34535),h=i(81355),p=i(71315);let x=(0,l.memo)(function(e){let t,i=(0,r.c)(3),{changeType:a,isSymlink:l}=e;return i[0]!==a||i[1]!==l?(t=(0,n.jsx)(u.E,{status:a,isSymlink:l}),i[0]=a,i[1]=l,i[2]=t):t=i[2],t});x.displayName=”FileStatusIconItem”;let y=(0,l.memo)(function(e){let t,i,d,f,u,h,y,g,v,j,C,S=(0,r.c)(41),{file:N,depth:b,hash:w,onSelect:D}=e,_=(0,l.useRef)(null),I=(0,l.useRef)(null),k=`#diff-${N.diff.pathDigest}`;S[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={focusRowRef:_,mouseRowRef:_},S[0]=t):t=S[0];let P=(0,m.Z)(t),O=N.diff.totalCommentsCount??0,E=N.diff.highestAnnotationLevel,T=N.fileName??”This file”,A=null;switch(O>0&&(T+=` has ${O<10?O:"9+"} ${O>1?”comments”:”comment”}`),E){case”WARNING”:{let e;T+=`${O>0?” and”:””} has warning annotations`,S[1]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,n.jsx)(“div”,{className:”pl-1 fgColor-attention”,children:(0,n.jsx)(a.AlertIcon,{})}),S[1]=e):e=S[1],A=e;break}case”NOTICE”:{let e;T+=`${O>0?” and”:””} has notice annotations`,S[2]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,n.jsx)(“div”,{className:”pl-1 fgColor-default”,children:(0,n.jsx)(a.InfoIcon,{})}),S[2]=e):e=S[2],A=e;break}case”FAILURE”:{let e;T+=`${O>0?” and”:””} has failure annotations`,S[3]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,n.jsx)(“div”,{className:”pl-1 fgColor-danger”,children:(0,n.jsx)(a.XCircleFillIcon,{})}),S[3]=e):e=S[3],A=e}}S[4]!==A||S[5]!==T?(i={screenReaderText:T,annotationElement:A},S[4]=A,S[5]=T,S[6]=i):i=S[6];let{screenReaderText:R,annotationElement:F}=i;S[7]!==N.diff.pathDigest||S[8]!==w?(d=()=>{if(_.current&&N.diff.pathDigest===w){let e=window.setTimeout(()=>{let e=p.XC?.getElementById(“diff_file_tree”)?.parentElement,t=_.current.offsetTop,i=p.cg?.innerHeight??0;e&&(e.scrollTop=t-i/2)},0);return()=>{window.clearTimeout(e)}}},f=[N.diff.pathDigest,w],S[7]=N.diff.pathDigest,S[8]=w,S[9]=d,S[10]=f):(d=S[9],f=S[10]),(0,l.useEffect)(d,f),S[11]!==k?(u=e=>{if(e.metaKey||e.ctrlKey||1===e.button){e.preventDefault(),window.open(k,”_blank”);return}},S[11]=k,S[12]=u):u=S[12];let $=u;S[13]!==$||S[14]!==D?(h=e=>{if(e.nativeEvent instanceof KeyboardEvent){if(_?.current!==document.activeElement)return void e.preventDefault();if(“Enter”===e.key||” “===e.key){e.preventDefault(),D?.(),I?.current?.click();return}}if(e.nativeEvent instanceof MouseEvent){if(e.metaKey||e.ctrlKey||1===e.button){e.preventDefault(),$(e);return}D?.(),I?.current?.click()}},S[13]=$,S[14]=D,S[15]=h):h=S[15];let V=h,U=N.fileName??””;S[16]!==k||S[17]!==U||S[18]!==$?(y=(0,n.jsx)(s.A,{href:k,muted:!0,ref:I,role:”presentation”,className:”fgColor-default”,tabIndex:-1,onClick:$,children:U}),S[16]=k,S[17]=U,S[18]=$,S[19]=y):y=S[19];let H=y,L=N.diff.pathDigest===w;return S[20]!==N.diff.changeType||S[21]!==N.diff.isSymlink?(g=(0,n.jsx)(c.G.LeadingVisual,{children:(0,n.jsx)(x,{changeType:N.diff.changeType,isSymlink:N.diff.isSymlink})}),S[20]=N.diff.changeType,S[21]=N.diff.isSymlink,S[22]=g):g=S[22],S[23]!==H||S[24]!==U||S[25]!==P?(v=P?(0,n.jsx)(o.m,{text:U,direction:”ne”,children:H}):H,S[23]=H,S[24]=U,S[25]=P,S[26]=v):v=S[26],S[27]!==F||S[28]!==E||S[29]!==O?(j=(!!O||E)&&(0,n.jsx)(c.G.TrailingVisual,{children:(0,n.jsxs)(“div”,{className:”d-flex flex-items-center flex-row”,children:[!!O&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.CommentIcon,{}),(0,n.jsx)(“div”,{className:”ml-1 text-bold fgColor-default f6″,children:O<10?O:"9+"})]}),F]})}),S[27]=F,S[28]=E,S[29]=O,S[30]=j):j=S[30],S[31]!==b||S[32]!==N.diff.path||S[33]!==N.diff.pathDigest||S[34]!==V||S[35]!==R||S[36]!==v||S[37]!==j||S[38]!==L||S[39]!==g?(C=(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(c.G.Item,{defaultExpanded:!0,"aria-label":R,"aria-level":b,current:L,id:N.diff.path,onSelect:V,ref:_,className:"DiffFileTree-module__file-tree-row--GJi_6",children:[g,v,j]},N.diff.pathDigest)}),S[31]=b,S[32]=N.diff.path,S[33]=N.diff.pathDigest,S[34]=V,S[35]=R,S[36]=v,S[37]=j,S[38]=L,S[39]=g,S[40]=C):C=S[40],C}),g=(0,l.memo)(function e({directory:t,depth:i=0,leadingPath:r="",sortByDiffOrder:a,onSelect:o,hash:s,fileNodeRenderer:f}){let u=r?`${r}/`:"",h=(0,l.useRef)(null),p=(0,l.useRef)(null),x=(0,m.Z)({focusRowRef:p,mouseRowRef:h});if(!t.files.length&&1===t.directories.length)return(0,n.jsx)(n.Fragment,{children:t.directories.map(r=>(0,n.jsx)(e,{depth:0===i?1:i,directory:r,leadingPath:`${u}${t.name}`,sortByDiffOrder:a,onSelect:o,hash:s,fileNodeRenderer:f},r.path))});function y(){return(0,n.jsx)(v,{directory:t,depth:i,sortByDiffOrder:a,onSelect:o,hash:s,fileNodeRenderer:f})}return 0===i?y():(0,n.jsxs)(c.G.Item,{ref:p,defaultExpanded:!0,id:t.path,children:[(0,n.jsx)(c.G.LeadingVisual,{children:(0,n.jsx)(c.G.DirectoryIcon,{})}),(0,n.jsx)(“span”,{ref:h,children:`${u}${t.name}`}),x&&(0,n.jsx)(d.m,{“data-testid”:`${t.name}-directory-item-tooltip`,id:`${t.name}-directory-item-tooltip`,contentRef:p,”aria-label”:`${u}${t.name}`,open:!0,direction:”ne”}),(0,n.jsx)(c.G.SubTree,{children:y()})]},t.path)}),v=(0,l.memo)(function(e){let t,i,a,l=(0,r.c)(19),{directory:o,fileNodeRenderer:s,sortByDiffOrder:c,depth:d,onSelect:f,hash:u}=e,m=void 0===d?0:d;l[0]!==o.directories||l[1]!==o.files||l[2]!==c?(t=o.files.map(C).concat(o.directories.map(S)),c?t.sort(N):t.sort(b),l[0]=o.directories,l[1]=o.files,l[2]=c,l[3]=t):t=l[3];let h=t;if(l[4]!==m||l[5]!==s||l[6]!==u||l[7]!==h||l[8]!==f||l[9]!==c){let e;l[11]!==m||l[12]!==s||l[13]!==u||l[14]!==f||l[15]!==c?(e=e=>”file”!==e.pathType?(0,n.jsx)(g,{depth:m+1,directory:e.node,fileNodeRenderer:s,sortByDiffOrder:c,onSelect:f,hash:u},e.path):s?s({onSelect:f,hash:u,file:e.node,depth:m+1}):(0,n.jsx)(y,{depth:m+1,file:e.node,onSelect:f,hash:u},e.path),l[11]=m,l[12]=s,l[13]=u,l[14]=f,l[15]=c,l[16]=e):e=l[16],i=h.map(e),l[4]=m,l[5]=s,l[6]=u,l[7]=h,l[8]=f,l[9]=c,l[10]=i}else i=l[10];return l[17]!==i?(a=(0,n.jsx)(n.Fragment,{children:i}),l[17]=i,l[18]=a):a=l[18],a}),j=(0,l.memo)(function(e){let t,i,a,l=(0,r.c)(11),{diffs:o,fileNodeRenderer:s,sortByDiffOrder:d,className:u,onSelect:m}=e;l[0]!==o?(t=(0,f.xY)(o),l[0]=o,l[1]=t):t=l[1];let p=t,{selectedPathDigest:x}=(0,h.U)();return l[2]!==s||l[3]!==p||l[4]!==m||l[5]!==x||l[6]!==d?(i=(0,n.jsx)(g,{directory:p,fileNodeRenderer:s,sortByDiffOrder:d,onSelect:m,hash:x}),l[2]=s,l[3]=p,l[4]=m,l[5]=x,l[6]=d,l[7]=i):i=l[7],l[8]!==u||l[9]!==i?(a=(0,n.jsx)(c.G,{“aria-label”:”File Tree”,className:u,children:i}),l[8]=u,l[9]=i,l[10]=a):a=l[10],a});try{y.displayName||(y.displayName=”File”)}catch{}try{g.displayName||(g.displayName=”Directory”)}catch{}try{v.displayName||(v.displayName=”DirectoryRendering”)}catch{}try{j.displayName||(j.displayName=”DiffFileTree”)}catch{}function C(e){return{path:e.filePath,pathType:”file”,node:e,sortOrder:e.sortOrder}}function S(e){return{path:e.path,pathType:”directory”,node:e,sortOrder:e.sortOrder}}function N(e,t){return e.sortOrder-t.sortOrder}function b(e,t){return(0,f.wH)(e.path,t.path)}},3536:(e,t,i)=>{i.d(t,{I:()=>c,d_:()=>d,wu:()=>s});var n=i(68273),r=i(21728),a=i(96379),l=i(59014),o=i(4095);let s=(0,n.kw)()?function(e,t){let i,n,s=(0,r.c)(5),[c,d]=(0,l.useState)(o.UI);return s[0]!==e?(i=()=>{if(!e)return;let t=!1;return(async()=>{d(o.UI);let i=await (0,a.Sr)(e);if(!t)try{if(i.ok){let e=await i.json();e.loading=!1,e&&d(e)}else d(o.Xx)}catch{d(o.Xx)}})(),function(){t=!0}},s[0]=e,s[1]=i):i=s[1],s[2]!==t||s[3]!==e?(n=[e,t],s[2]=t,s[3]=e,s[4]=n):n=s[4],(0,l.useEffect)(i,n),c}:function(e,t){let[i,n]=(0,l.useState)(o.UI);return(0,l.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{n(o.UI);let i=await (0,a.Sr)(e);if(!t)try{if(i.ok){let e=await i.json();e.loading=!1,e&&n(e)}else n(o.Xx)}catch{n(o.Xx)}})(),function(){t=!0}},[e,t]),i},c=(0,n.kw)()?function(e){let t,i,n=(0,r.c)(3),[o,s]=(0,l.useState)(void 0);return n[0]!==e?(t=()=>{e&&(async()=>{let t=await (0,a.Sr)(e);try{if(t.ok){let e=await t.json();e&&s(e.data)}}catch{}})()},i=[e],n[0]=e,n[1]=t,n[2]=i):(t=n[1],i=n[2]),(0,l.useEffect)(t,i),o}:function(e){let[t,i]=(0,l.useState)(void 0);return(0,l.useEffect)(()=>{e&&(async()=>{let t=await (0,a.Sr)(e);try{if(t.ok){let e=await t.json();e&&i(e.data)}}catch{}})()},[e]),t};function d(e,t,i,n){let[r,s]=(0,l.useState)(o.UI),c=(0,l.useRef)([…Array(i)]),d=(0,l.useRef)(t);return(0,l.useEffect)(()=>{if(!e)return;let i=!1;async function n(t){let r=await (0,a.Sr)(`${e}?start_entry=${t}`);if(!i)try{if(r.ok){let e=await r.json();if(e){let t=0;for(let i=d.current;in(e.nextIndex),0)):(d.current===e.nextIndex?e.error=!0:e.error=!1,s(e))}}else s(e=>({…e,loading:!1,error:!0,extraDiffEntries:c.current}))}catch{s(e=>({…e,loading:!1,deferredCommits:c.current}))}}return n(t),function(){i=!0}},[e,n,t]),(0,l.useEffect)(()=>{c.current=[],d.current=t},[e,n,t]),r}},4095:(e,t,i)=>{i.d(t,{M2:()=>d,NO:()=>f,UI:()=>o,Xx:()=>s,ej:()=>m,xs:()=>u});var n=i(28278),r=i(68273),a=i(21728),l=i(59014);let o={deferredCommits:[],renameHistory:null,loading:!0},s={deferredCommits:[],renameHistory:null,loading:!1},c=(0,l.createContext)(o),d=(0,r.kw)()?function(e){let t,i=(0,a.c)(3),{children:r,deferredData:l}=e;return i[0]!==r||i[1]!==l?(t=(0,n.jsx)(c.Provider,{value:l,children:r}),i[0]=r,i[1]=l,i[2]=t):t=i[2],t}:function({children:e,deferredData:t}){return(0,n.jsx)(c.Provider,{value:t,children:e})},f=(0,r.kw)()?function(e){let t,i=(0,a.c)(5),n=(0,l.useContext)(c),r=n.error;i[0]!==n.deferredCommits||i[1]!==e?(t=n.deferredCommits?.find(t=>t?.oid===e),i[0]=n.deferredCommits,i[1]=e,i[2]=t):t=i[2];let o=t;if(r&&void 0===o){let t;i[3]!==e?(t={oid:e,statusCheckStatus:void 0},i[3]=e,i[4]=t):t=i[4],o=t}return o}:function(e){let t=(0,l.useContext)(c),i=t.error,n=t.deferredCommits?.find(t=>t?.oid===e);return i&&void 0===n&&(n={oid:e,statusCheckStatus:void 0}),n},u=(0,r.kw)()?function(){return(0,l.useContext)(c).loading}:function(){return(0,l.useContext)(c).loading},m=(0,r.kw)()?function(){return(0,l.useContext)(c).renameHistory}:function(){return(0,l.useContext)(c).renameHistory};try{c.displayName||(c.displayName=”DeferredCommitDataContext”)}catch{}try{d.displayName||(d.displayName=”DeferredCommitDataProvider”)}catch{}},8624:(e,t,i)=>{i.d(t,{L:()=>s});var n=i(28278),r=i(21728),a=i(38621),l=i(26108),o=i(34164);let s=i(59014).forwardRef((e,t)=>{let i,s,c,d=(0,r.c)(17),{expanded:f,testid:u,ariaLabel:m,ariaControls:h,onToggleExpanded:p,alignment:x,dataHotkey:y,className:g,size:v,tooltipDirection:j,variant:C}=e,S=f?`collapse-${u}`:`expand-${u}`,N=f?”left”===x?a.SidebarExpandIcon:a.SidebarCollapseIcon:”left”===x?a.SidebarCollapseIcon:a.SidebarExpandIcon;d[0]!==p?(i=e=>{p(e)},d[0]=p,d[1]=i):i=d[1];let b=C??”invisible”;return d[2]!==g?(s=(0,o.$)(g,”fgColor-muted”),d[2]=g,d[3]=s):s=d[3],d[4]!==h||d[5]!==m||d[6]!==y||d[7]!==f||d[8]!==t||d[9]!==v||d[10]!==S||d[11]!==N||d[12]!==i||d[13]!==b||d[14]!==s||d[15]!==j?(c=(0,n.jsx)(l.K,{“aria-label”:m,tooltipDirection:j,ref:t,”data-testid”:S,”aria-expanded”:f,”aria-controls”:h,icon:N,”data-hotkey”:y,onClick:i,variant:b,size:v,className:s}),d[4]=h,d[5]=m,d[6]=y,d[7]=f,d[8]=t,d[9]=v,d[10]=S,d[11]=N,d[12]=i,d[13]=b,d[14]=s,d[15]=j,d[16]=c):c=d[16],c});s.displayName=”ExpandButton”},13071:(e,t,i)=>{i.d(t,{C:()=>o});var n=i(28278),r=i(44185),a=i(81945),l=i(42257);function o({deferredData:e,oid:t,repo:i,helpUrl:o}){let s=void 0===e,c=””;try{c=e?.statusCheckStatus?.short_text?.split(“checks”)[0]?.trim()||””}catch{}return(0,n.jsxs)(n.Fragment,{children:[s&&(0,n.jsx)(a.O,{className:”ml-2″,variant:”rounded”,width:”62px”}),e?.statusCheckStatus&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(“span”,{className:”d-flex ml-2 mr-1″,children:”\xb7″}),(0,n.jsx)(l.d,{oid:t,status:e?.statusCheckStatus?.state,descriptionString:c,repo:i}),e?.signatureInformation&&e?.verifiedStatus!==”unsigned”&&(0,n.jsx)(“span”,{className:”d-flex ml-2″,children:”\xb7″})]}),e?.signatureInformation&&(0,n.jsx)(“div”,{className:”ml-2″,children:(0,n.jsx)(r.h,{commitOid:t,hasSignature:!0,verificationStatus:e.verifiedStatus,signature:{helpUrl:o,…e.signatureInformation}})})]})}try{o.displayName||(o.displayName=”DeferredCommitHeaderData”)}catch{}},16790:(e,t,i)=>{i.d(t,{eX:()=>c,xe:()=>d,zq:()=>s});var n=i(28278),r=i(68273),a=i(21728),l=i(59014);let o=(0,l.createContext)({loggingPayload:void 0,loggingPrefix:void 0}),s=(0,r.kw)()?function(e){let t,i=(0,a.c)(3),{children:r,loggingInfo:l}=e;return i[0]!==r||i[1]!==l?(t=(0,n.jsx)(o.Provider,{value:l,children:r}),i[0]=r,i[1]=l,i[2]=t):t=i[2],t}:function({children:e,loggingInfo:t}){return(0,n.jsx)(o.Provider,{value:t,children:e})},c=(0,r.kw)()?function(){let e=(0,l.useContext)(o);return void 0!==e.loggingPayload&&void 0!==e.loggingPrefix}:function(){let e=(0,l.useContext)(o);return void 0!==e.loggingPayload&&void 0!==e.loggingPrefix},d=(0,r.kw)()?function(){return(0,l.useContext)(o)}:function(){return(0,l.useContext)(o)};try{o.displayName||(o.displayName=”CommitsLoggingContext”)}catch{}try{s.displayName||(s.displayName=”CommitsLoggingInfoProvider”)}catch{}},27028:(e,t,i)=>{i.d(t,{G:()=>$,Q:()=>R});var n=i(28278),r=i(21728),a=i(38621),l=i(5524),o=i(94236),s=i(26108),c=i(21373),d=i(19415),f=i(59014),u=i(21067),m=i(25407),h=i(96379);function p(e,t){let i,n=(0,r.c)(5),a=(t??[]).filter(e=>!e.dismissed);if(n[0]!==a||n[1]!==e){let t;n[3]!==e?(t=t=>t.name===e,n[3]=e,n[4]=t):t=n[4],i=a.filter(t),n[0]=a,n[1]=e,n[2]=i}else i=n[2];return 0===i.length}var x=i(70719),y=i(34164);let g=”compact_diff_lines”;function v(e){let t,i,a,l,o,s,v,S,N,b,w,D,_,I,k,P=(0,r.c)(19),{userNotices:O}=e,E=p(g,O),{dismissNotice:T}=(_=(0,r.c)(5),I=p(g,O),_[0]!==I||_[1]!==g?(w=()=>{(0,u.M3)()&&!I&&(0,h.DI)((0,m.VB1)({noticeName:g}),{method:”POST”})},_[0]=I,_[1]=g,_[2]=w):w=_[2],k=w,_[3]!==k?(D={dismissNotice:k},_[3]=k,_[4]=D):D=_[4],D);P[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:C,onError:j},P[0]=t):t=P[0];let{mutate:A}=(0,x.U)(t),[R,F]=(0,f.useState)(!0);P[1]!==T||P[2]!==A?(i=()=>{A({lineSpacing:”compact”}),F(!1),T()},P[1]=T,P[2]=A,P[3]=i):i=P[3];let $=i;P[4]!==T?(a=()=>{F(!1),T()},P[4]=T,P[5]=a):a=P[5];let V=a;return E?null:(P[6]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,y.$)(“d-flex flex-column gap-2″,”DiffCompactLinesPopover-module__PopoverContent–HUydq”),o=(0,n.jsx)(“h2″,{className:”DiffCompactLinesPopover-module__Heading–hFmwp”,children:”Customizable line height”}),s=(0,n.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.”}),P[6]=l,P[7]=o,P[8]=s):(l=P[6],o=P[7],s=P[8]),P[9]!==$?(v=(0,n.jsx)(c.Q,{onClick:$,children:”Enable compact line height”}),P[9]=$,P[10]=v):v=P[10],P[11]!==V?(S=(0,n.jsx)(c.Q,{onClick:V,variant:”invisible”,children:”Dismiss”}),P[11]=V,P[12]=S):S=P[12],P[13]!==v||P[14]!==S?(N=(0,n.jsxs)(d.A.Content,{className:l,children:[o,s,(0,n.jsxs)(“div”,{className:”d-flex gap-2 flex-row w-full flex-wrap”,children:[v,S]})]}),P[13]=v,P[14]=S,P[15]=N):N=P[15],P[16]!==R||P[17]!==N?(b=(0,n.jsx)(d.A,{open:R,caret:”top-right”,className:”DiffCompactLinesPopover-module__PopoverContainer–A4URR”,children:N}),P[16]=R,P[17]=N,P[18]=b):b=P[18],b)}function j(){}function C(){}try{v.displayName||(v.displayName=”DiffCompactLinesPopover”)}catch{}var S=i(79472);function N(e){let t,i,a,o,s,c=(0,r.c)(16),{whitespacePreferenceAvailable:d,lineSpacingPreferenceAvailable:f,defaultHideWhitespace:u,onUpdateWhitespace:m,reloadOnChange:h}=e,p=void 0===d||d,y=void 0===f||f,{data:g}=(0,S.ID)(),v=(0,S.Qn)(void 0!==u&&u);c[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:w,onError:b},c[0]=t):t=c[0];let{mutate:j}=(0,x.U)(t);c[1]!==v||c[2]!==m||c[3]!==h?(i=()=>{(0,S.bJ)(“w”,v?”0″:”1″),m?.(!v),void 0!==h&&h()},c[1]=v,c[2]=m,c[3]=h,c[4]=i):i=c[4];let C=i;return g&&(p||y)?(c[5]!==v||c[6]!==C||c[7]!==p?(a=p&&(0,n.jsx)(l.l.Item,{selected:v,onSelect:C,children:”Hide whitespace”}),c[5]=v,c[6]=C,c[7]=p,c[8]=a):a=c[8],c[9]!==g||c[10]!==y||c[11]!==j?(o=y&&(0,n.jsx)(l.l.Item,{selected:”compact”===g.lineSpacing,onSelect:()=>j({lineSpacing:”compact”===g.lineSpacing?”relaxed”:”compact”}),children:”Compact line height”}),c[9]=g,c[10]=y,c[11]=j,c[12]=o):o=c[12],c[13]!==a||c[14]!==o?(s=(0,n.jsxs)(l.l.Group,{“aria-label”:”Format”,selectionVariant:”multiple”,variant:”subtle”,children:[a,o]}),c[13]=a,c[14]=o,c[15]=s):s=c[15],s):null}function b(){}function w(){}try{N.displayName||(N.displayName=”DiffLinePresentationToggles”)}catch{}function D(e){let t,i,a,o,s,c,d,f=(0,r.c)(17),{reloadOnChange:u}=e,m=void 0!==u&&u,{data:h}=(0,S.ID)(),p=h?.splitPreference;f[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={onSuccess:I,onError:_},f[0]=t):t=f[0];let{mutate:y}=(0,x.U)(t);f[1]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,n.jsx)(l.l.GroupHeading,{children:”Layout”}),f[1]=i):i=f[1];let g=”unified”===p;f[2]!==m||f[3]!==y?(a=()=>{y({splitPreference:”unified”}),(0,S.bJ)(“diff”,”unified”),m&&window.location.reload()},f[2]=m,f[3]=y,f[4]=a):a=f[4],f[5]!==g||f[6]!==a?(o=(0,n.jsx)(l.l.Item,{selected:g,onSelect:a,children:”Unified”}),f[5]=g,f[6]=a,f[7]=o):o=f[7];let v=”split”===p;return f[8]!==m||f[9]!==y?(s=()=>{y({splitPreference:”split”}),(0,S.bJ)(“diff”,”split”),m&&window.location.reload()},f[8]=m,f[9]=y,f[10]=s):s=f[10],f[11]!==v||f[12]!==s?(c=(0,n.jsx)(l.l.Item,{selected:v,onSelect:s,children:”Split”}),f[11]=v,f[12]=s,f[13]=c):c=f[13],f[14]!==o||f[15]!==c?(d=(0,n.jsxs)(l.l.Group,{selectionVariant:”single”,children:[i,o,c]}),f[14]=o,f[15]=c,f[16]=d):d=f[16],d}function _(){}function I(){}try{D.displayName||(D.displayName=”DiffViewPreferenceToggle”)}catch{}var k=i(18799);function P(){let e,t,i,a=(0,r.c)(7),{data:o}=(0,S.ID)();a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e={onSuccess:E,onError:O},a[0]=e):e=a[0];let{mutate:s}=(0,x.U)(e);if(!o)return null;let c=o.commentsPreference===k.sI.Collapsed;return a[1]!==c||a[2]!==s?(t=()=>s({commentsPreference:c?k.sI.Visible:k.sI.Collapsed}),a[1]=c,a[2]=s,a[3]=t):t=a[3],a[4]!==c||a[5]!==t?(i=(0,n.jsx)(l.l.Group,{“aria-label”:”Comments”,selectionVariant:”single”,children:(0,n.jsx)(l.l.Item,{role:”menuitemcheckbox”,selected:c,onSelect:t,children:”Minimize comments”})}),a[4]=c,a[5]=t,a[6]=i):i=a[6],i}function O(){}function E(){}try{P.displayName||(P.displayName=”DiffCommentsPreferenceToggle”)}catch{}var T=i(30459);let A=[“layout”,”comments”,”whitespace”,”line-spacing”];function R(e){let t,i,a,o,s,c,d,f,u,m=(0,r.c)(29),{additionalPreferences:h,defaultHideWhitespace:p,enabledDiffViewSettings:x,onUpdateWhitespace:y,reloadOnSplitPreferenceChange:g,reloadOnWhitespaceChange:v}=e,j=void 0===x?A:x,C=void 0!==g&&g,S=void 0!==v&&v;m[0]!==j?(t=j.includes(“layout”)&&j.includes(“comments”),m[0]=j,m[1]=t):t=m[1];let b=t;m[2]!==j?(i=j.includes(“line-spacing”)||j.includes(“whitespace”),m[2]=j,m[3]=i):i=m[3];let w=i;m[4]!==j||m[5]!==w?(a=w&&(j.includes(“comments”)||j.includes(“layout”)),m[4]=j,m[5]=w,m[6]=a):a=m[6];let _=a;return m[7]!==j||m[8]!==C?(o=j.includes(“layout”)&&(0,n.jsx)(D,{reloadOnChange:C}),m[7]=j,m[8]=C,m[9]=o):o=m[9],m[10]!==b?(s=b&&(0,n.jsx)(l.l.Divider,{}),m[10]=b,m[11]=s):s=m[11],m[12]!==j?(c=j.includes(“comments”)&&(0,n.jsx)(P,{}),m[12]=j,m[13]=c):c=m[13],m[14]!==_?(d=_&&(0,n.jsx)(l.l.Divider,{}),m[14]=_,m[15]=d):d=m[15],m[16]!==p||m[17]!==j||m[18]!==y||m[19]!==S||m[20]!==w?(f=w?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(N,{defaultHideWhitespace:p,lineSpacingPreferenceAvailable:j.includes(“line-spacing”),whitespacePreferenceAvailable:j.includes(“whitespace”),onUpdateWhitespace:y,reloadOnChange:S?F:void 0})}):null,m[16]=p,m[17]=j,m[18]=y,m[19]=S,m[20]=w,m[21]=f):f=m[21],m[22]!==h||m[23]!==d||m[24]!==f||m[25]!==o||m[26]!==s||m[27]!==c?(u=(0,n.jsxs)(n.Fragment,{children:[o,s,c,d,f,h]}),m[22]=h,m[23]=d,m[24]=f,m[25]=o,m[26]=s,m[27]=c,m[28]=u):u=m[28],u}function F(){return window.location.reload()}function $(e){let t,i,c,d,f,u,m=(0,r.c)(21),{additionalPreferences:h,invisible:p,defaultHideWhitespace:x,enabledDiffViewSettings:y,onUpdateWhitespace:g,reloadOnSplitPreferenceChange:j,reloadOnWhitespaceChange:C,small:S,userNotices:N}=e,b=void 0===y?A:y,w=void 0!==j&&j,D=void 0!==C&&C,{sendAnalyticsEvent:_}=(0,T.s)();m[0]!==_?(t=()=>{_(“diff_view.settings.open”,”DIFF_VIEW_SETTINGS_BUTTON”)},m[0]=_,m[1]=t):t=m[1];let I=t,k=S?”small”:”medium”,P=void 0===p||p?”invisible”:”default”;return m[2]!==I||m[3]!==k||m[4]!==P?(i=(0,n.jsx)(o.W.Anchor,{children:(0,n.jsx)(s.K,{“aria-label”:”Open diff view settings”,icon:a.GearIcon,size:k,variant:P,onClick:I})}),m[2]=I,m[3]=k,m[4]=P,m[5]=i):i=m[5],m[6]!==h||m[7]!==x||m[8]!==b||m[9]!==g||m[10]!==w||m[11]!==D?(c=(0,n.jsx)(o.W.Overlay,{children:(0,n.jsx)(l.l,{children:(0,n.jsx)(R,{additionalPreferences:h,defaultHideWhitespace:x,enabledDiffViewSettings:b,onUpdateWhitespace:g,reloadOnSplitPreferenceChange:w,reloadOnWhitespaceChange:D})})}),m[6]=h,m[7]=x,m[8]=b,m[9]=g,m[10]=w,m[11]=D,m[12]=c):c=m[12],m[13]!==i||m[14]!==c?(d=(0,n.jsxs)(o.W,{children:[i,c]}),m[13]=i,m[14]=c,m[15]=d):d=m[15],m[16]!==N?(f=(0,n.jsx)(v,{userNotices:N}),m[16]=N,m[17]=f):f=m[17],m[18]!==d||m[19]!==f?(u=(0,n.jsxs)(n.Fragment,{children:[d,f]}),m[18]=d,m[19]=f,m[20]=u):u=m[20],u}try{R.displayName||(R.displayName=”DiffViewSettingsMenuContent”)}catch{}try{$.displayName||($.displayName=”DiffViewSettings”)}catch{}},42257:(e,t,i)=>{i.d(t,{d:()=>s});var n=i(28278),r=i(68273),a=i(21728),l=i(99896);let o=”AsyncChecksStatusBadge-module__ChecksStatusBadge–Ddd3K”,s=(0,r.kw)()?function(e){let t,i,r=(0,a.c)(8),{status:s,oid:c,repo:d,badgeProps:f,descriptionString:u}=e;r[0]!==f?(t=void 0===f?{}:f,r[0]=f,r[1]=t):t=r[1];let m=t,h=void 0===u?””:u,[p,x]=(0,l.ym)(c,d);return r[2]!==m||r[3]!==h||r[4]!==p||r[5]!==x||r[6]!==s?(i=s?(0,n.jsx)(l.B6,{disablePopover:!1,size:”small”,statusRollup:s,combinedStatus:p,descriptionText:h,onWillOpenPopup:x,buttonClassName:o,…m}):null,r[2]=m,r[3]=h,r[4]=p,r[5]=x,r[6]=s,r[7]=i):i=r[7],i}:function({status:e,oid:t,repo:i,badgeProps:r={},descriptionString:a=””}){let[s,c]=(0,l.ym)(t,i);return e?(0,n.jsx)(l.B6,{disablePopover:!1,size:”small”,statusRollup:e,combinedStatus:s,descriptionText:a,onWillOpenPopup:c,buttonClassName:o,…r}):null};try{s.displayName||(s.displayName=”AsyncChecksStatusBadge”)}catch{}},43147:(e,t,i)=>{i.d(t,{w:()=>d});var n=i(28278),r=i(68273),a=i(21728),l=i(98755),o=i(30459),s=i(16790),c=i(68534);let d=(0,r.kw)()?function(e){let t,i,r,d,f,u=(0,a.c)(17),{sha:m,direction:h,className:p}=e,x=void 0===h?”s”:h,{sendAnalyticsEvent:y}=(0,o.s)(),{loggingPrefix:g,loggingPayload:v}=(0,s.xe)(),j=(0,s.eX)();u[0]!==v||u[1]!==g||u[2]!==y||u[3]!==j?(t=()=>{j&&y(`${g}click`,”COPY_SHA_CLICKED”,v)},u[0]=v,u[1]=g,u[2]=y,u[3]=j,u[4]=t):t=u[4];let C=t;u[5]!==m?(i=(0,c.F)(m),u[5]=m,u[6]=i):i=u[6];let S=`Copy full SHA for ${i}`;return u[7]!==x?(r={direction:x},u[7]=x,u[8]=r):r=u[8],u[9]!==p||u[10]!==m||u[11]!==S||u[12]!==r?(d=(0,n.jsx)(l.T,{textToCopy:m,ariaLabel:S,tooltipProps:r,size:”small”,className:p}),u[9]=p,u[10]=m,u[11]=S,u[12]=r,u[13]=d):d=u[13],u[14]!==C||u[15]!==d?(f=(0,n.jsx)(“div”,{onClick:C,children:d}),u[14]=C,u[15]=d,u[16]=f):f=u[16],f}:function({sha:e,direction:t=”s”,className:i}){let{sendAnalyticsEvent:r}=(0,o.s)(),{loggingPrefix:a,loggingPayload:d}=(0,s.xe)(),f=(0,s.eX)();return(0,n.jsx)(“div”,{onClick:()=>{f&&r(`${a}click`,”COPY_SHA_CLICKED”,d)},children:(0,n.jsx)(l.T,{textToCopy:e,ariaLabel:`Copy full SHA for ${(0,c.F)(e)}`,tooltipProps:{direction:t},size:”small”,className:i})})};try{d.displayName||(d.displayName=”CopySHA”)}catch{}},48926:(e,t,i)=>{i.d(t,{C:()=>m,j:()=>f});var n=i(28278),r=i(68273),a=i(21728),l=i(61200),o=i(81945),s=i(54571),c=i(62935),d=i(4095);let f=(0,r.kw)()?function(e){let t,i,r,f,m,h=(0,a.c)(19),{commit:p,repo:x,children:y,settings:g,textVariant:v}=e,j=(0,d.NO)(p.oid);h[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],h[0]=t):t=h[0];let[C]=(0,s.I)(u,!0,t),S=j?.onBehalfOf;return h[1]!==g?(i={fontWeight:”normal”,fontColor:”fg.muted”,avatarSize:16,…g},h[1]=g,h[2]=i):i=h[2],h[3]!==p.committedDate||h[4]!==C?(r=!C&&(0,n.jsx)(c.A,{className:”pl-1″,datetime:p.committedDate}),h[3]=p.committedDate,h[4]=C,h[5]=r):r=h[5],h[6]!==C?(f=C&&(0,n.jsx)(o.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”}),h[6]=C,h[7]=f):f=h[7],h[8]!==y||h[9]!==p.authors||h[10]!==p.committer||h[11]!==p.committerAttribution||h[12]!==x||h[13]!==S||h[14]!==i||h[15]!==r||h[16]!==f||h[17]!==v?(m=(0,n.jsxs)(l.jF,{authors:p.authors,committer:p.committer,committerAttribution:p.committerAttribution,onBehalfOf:S,repo:x,includeVerbs:!0,authorSettings:i,textVariant:v,children:[r,f,y]}),h[8]=y,h[9]=p.authors,h[10]=p.committer,h[11]=p.committerAttribution,h[12]=x,h[13]=S,h[14]=i,h[15]=r,h[16]=f,h[17]=v,h[18]=m):m=h[18],m}:function({commit:e,repo:t,children:i,settings:r,textVariant:a}){let f=(0,d.NO)(e.oid),[u]=(0,s.I)(()=>!1,!0,[]);return(0,n.jsxs)(l.jF,{authors:e.authors,committer:e.committer,committerAttribution:e.committerAttribution,onBehalfOf:f?.onBehalfOf,repo:t,includeVerbs:!0,authorSettings:{fontWeight:”normal”,fontColor:”fg.muted”,avatarSize:16,…r},textVariant:a,children:[!u&&(0,n.jsx)(c.A,{className:”pl-1″,datetime:e.committedDate}),u&&(0,n.jsx)(o.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”}),i]})};function u(){return!1}let m=(0,r.kw)()?function(e){let t,i,r,d,f=(0,a.c)(12),{commit:u,repo:m,textVariant:p}=e;f[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],f[0]=t):t=f[0];let[x]=(0,s.I)(h,!0,t);return f[1]!==u.pushedDate||f[2]!==x?(i=!x&&(0,n.jsx)(c.A,{className:”pl-1″,datetime:u.pushedDate}),f[1]=u.pushedDate,f[2]=x,f[3]=i):i=f[3],f[4]!==x?(r=x&&(0,n.jsx)(o.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”}),f[4]=x,f[5]=r):r=f[5],f[6]!==u.pusher||f[7]!==m||f[8]!==i||f[9]!==r||f[10]!==p?(d=(0,n.jsxs)(l.Cf,{pusher:u.pusher,repo:m,textVariant:p,children:[i,r]}),f[6]=u.pusher,f[7]=m,f[8]=i,f[9]=r,f[10]=p,f[11]=d):d=f[11],d}:function({commit:e,repo:t,textVariant:i}){let[r]=(0,s.I)(()=>!1,!0,[]);return(0,n.jsxs)(l.Cf,{pusher:e.pusher,repo:t,textVariant:i,children:[!r&&(0,n.jsx)(c.A,{className:”pl-1″,datetime:e.pushedDate}),r&&(0,n.jsx)(o.O,{variant:”rounded”,className:”d-none d-sm-flex ml-1″,width:”60px”})]})};function h(){return!1}try{f.displayName||(f.displayName=”CommitAttribution”)}catch{}try{m.displayName||(m.displayName=”PushAttribution”)}catch{}},68534:(e,t,i)=>{i.d(t,{F:()=>n});function n(e){return e.slice(0,7)}},70719:(e,t,i)=>{i.d(t,{U:()=>c});var n=i(21728),r=i(96379),a=i(97665),l=i(94747),o=i(79472),s=i(21067);function c(e){let t,i,r,s,c=(0,n.c)(10),{onSuccess:f,onError:u}=e,m=(0,a.jE)();return c[0]!==m?(t=async e=>{m.setQueryData((0,o.w$)(),t=>({…t,…e}))},c[0]=m,c[1]=t):t=c[1],c[2]!==f?(i=()=>{f()},c[2]=f,c[3]=i):i=c[3],c[4]!==u?(r=e=>{u(e)},c[4]=u,c[5]=r):r=c[5],c[6]!==t||c[7]!==i||c[8]!==r?(s={mutationFn:d,onMutate:t,onSuccess:i,onError:r},c[6]=t,c[7]=i,c[8]=r,c[9]=s):s=c[9],(0,l.n)(s)}async function d(e){let{commentsPreference:t,lineSpacing:i,splitPreference:n}=e;if(!(0,s.M3)())return;let a={};t&&(a={…a,commentsPreference:t}),i&&(a={…a,lineSpacing:i}),n&&(a={…a,diff:n});let l=await (0,r.Sr)(“/users/diffview”,{method:”POST”,headers:{Accept:”application/json”},body:a}),o=await l.json();if(l.ok)return o;throw Error(o.error||”Unknown error occurred”,{cause:l.status})}},70843:(e,t,i)=>{i.d(t,{L:()=>a});var n=i(21728),r=i(59014);function a(e){let t,i,a=(0,n.c)(3);a[0]!==e?(t=()=>{if(!e)return;let t=document.querySelector(“.footer”);if(t)return t.hidden=!0,()=>{t.hidden=!1}},i=[e],a[0]=e,a[1]=t,a[2]=i):(t=a[1],i=a[2]),(0,r.useEffect)(t,i)}},71833:(e,t,i)=>{i.d(t,{B:()=>a});var n=i(25407),r=i(96379);async function a(e,t){if(!t)return;let i=new FormData;i.set(“file_tree_visible”,e?”true”:”false”),(0,r.DI)((0,n.h6D)(t),{method:”PUT”,body:i,headers:{Accept:”application/json”}})}},78252:(e,t,i)=>{i.d(t,{$:()=>o});var n=i(28278),r=i(38621),a=i(5524),l=i(34720);let o=e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.l.Divider,{}),(0,n.jsx)(l.t,{eventContext:{prx:!0},leadingVisual:(0,n.jsx)(r.CopilotIcon,{}),fileDiffReference:e.copilotChatReference})]});try{o.displayName||(o.displayName=”CopilotDiffChatBlobActionsMenuItems”)}catch{}},81355:(e,t,i)=>{i.d(t,{U:()=>o});var n=i(21728),r=i(59014),a=i(61583),l=i(71315);function o(){let e,t,i,o,s=(0,n.c)(6),[c,d]=(0,r.useState)(“”);s[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=()=>{d(((0,a.pd)(l.fV.hash??””)??””).replace(“diff-“,””))},s[0]=e):e=s[0];let f=e;s[1]===Symbol.for(“react.memo_cache_sentinel”)?(t=()=>(window.addEventListener(“hashchange”,f),f(),()=>{window.removeEventListener(“hashchange”,f)}),i=[f],s[1]=t,s[2]=i):(t=s[1],i=s[2]),(0,r.useEffect)(t,i);let u=c?`diff-${c}`:””;return s[3]!==c||s[4]!==u?(o={selectedPathDigest:c,selectedFullDiffHash:u,setSelectedHash:d},s[3]=c,s[4]=u,s[5]=o):o=s[5],o}}}]);
//# sourceMappingURL=97633-8a54f8dae11a.js.map