performance.mark("js-parse-end:43690-1bf96b09b51e3cc0.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["43690"],{84989(e,t,n){n.d(t,{A:()=>i,s:()=>o});let l=!0;function o(e){l=e}function i(){return l}},50822(e,t,n){n.d(t,{N:()=>l});class l{#e=void 0;#t=void 0;onResponse;#n;#l;#o;#i;constructor(e,t=200,n){this.#l=e,this.#o=t,this.#i=n,this.#l.onmessage=({data:e})=>{this.onResponse&&this.onResponse(e),this.#t?(this.#r(this.#t),this.#t=void 0):this.#e=void 0}}post(e){if(this.#i&&this.#i(e))return this.#n&&clearTimeout(this.#n),this.#r(e);this.idle()?(this.#n&&clearTimeout(this.#n),this.#n=setTimeout(()=>{this.#r(e)},this.#o)):this.#t=e}#r(e){this.#e=e,this.#l.postMessage(e)}idle(){return!this.#e}terminate(){this.#l.terminate()}}},15885(e,t,n){function l(e){return"blob"in e}function o(e){return l(e)&&"blame"in e}n.d(t,{K:()=>o,m:()=>l})},31145(e,t,n){n.d(t,{i:()=>l});function l(e){return"deleteInfo"in e&&"webCommitInfo"in e}},19201(e,t,n){n.d(t,{N:()=>h,q:()=>m});var l=n(74848),o=n(16522),i=n(95136),r=n(54242),a=n(36594),s=n(65594),c=n(31854),d=n(88134),u=n(96540);function m(e){let t,n=(0,o.c)(4),{children:i}=e,r=(0,s.B)(),[a]=u.useState(r?.repo);return n[0]!==i||n[1]!==r||n[2]!==a?(t=(0,l.jsx)(h,{payload:r,repo:a,children:i}),n[0]=i,n[1]=r,n[2]=a,n[3]=t):t=n[3],t}function h(e){let t,n,s,m,h,p,f=(0,o.c)(11),{children:b,payload:x,repo:y}=e,[g]=u.useState(x?.currentUser);f[0]===Symbol.for("react.memo_cache_sentinel")?(t={},f[0]=t):t=f[0];let j=t;return f[1]===Symbol.for("react.memo_cache_sentinel")?(n=[],f[1]=n):n=f[1],(0,u.useEffect)(_,n),f[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)("meta",{name:"github-code-view-meta-stats",id:"github-code-view-meta-stats","data-hydrostats":"publish"}),f[2]=s):s=f[2],f[3]!==b?(m=(0,l.jsx)(d.cp,{children:b}),f[3]=b,f[4]=m):m=f[4],f[5]!==y||f[6]!==m?(h=(0,l.jsx)(r.d,{repository:y,children:m}),f[5]=y,f[6]=m,f[7]=h):h=f[7],f[8]!==h||f[9]!==g?(p=(0,l.jsxs)(l.Fragment,{children:[s,(0,l.jsx)(c.LB,{initialValue:c.Gy.xxxlarge,children:(0,l.jsx)(i.y,{appName:"react-code-view",category:"",metadata:j,children:(0,l.jsx)(a.Q,{user:g,children:h})})})]}),f[8]=h,f[9]=g,f[10]=p):p=f[10],p}function _(){let e=document.querySelector(".footer");e&&(e.querySelector(".mt-6")?.classList.replace("tmp-mt-6","mt-0"),e.querySelector(".border-top")?.classList.remove("border-top"))}m.displayName="App",h.displayName="AppWrapper"},22462(e,t,n){n.d(t,{C:()=>lf});var l=n(74848),o=n(16522),i=n(18660),r=n(94352),a=n(20790),s=n(31595),c=n(23082),d=n(7231),u=n(63253),m=n(66743),h=n(31854),_=n(26316),p=n(88134),f=n(51336),b=n(68541),x=n(6406),y=n(50822),g=n(9421);function j({data:e}){let{query:t,lines:n,currentCodeReferences:l}=e;return{ranges:l?(0,g.KY)(l,n,(0,g.tz)(t)):(0,g.Kv)(n,(0,g.tz)(t)),query:t}}var v=n(96540),N=n(41431),w=n(34164),k=n(29952),S=n(90441),C=n(98667),I=n(33710),T=n(62269),B=n(54242),A=n(36594),L=n(5063),D=n(88015),O=n(22520),R=n(49782);let F=[],E=[];var P=n(38841);let $="code_view_update_sticky_header_height_event",z=null,H=null,M=null;function V(e){e&&H!==e&&(H=e,null===z?z=new ResizeObserver(e=>{for(let t of e)t.contentRect.height!==M&&(M=t.contentRect.height,window.dispatchEvent(new CustomEvent($,{detail:t.contentRect.height})))}):z.disconnect(),z.observe(e))}function U(){let e,t,n=(0,o.c)(2),[l,i]=(0,v.useState)(void 0);return(n[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=function(e){i(e.detail)};return window.addEventListener($,e),H&&V(H),()=>{window.removeEventListener($,e)}},t=[],n[0]=e,n[1]=t):(e=n[0],t=n[1]),(0,v.useEffect)(e,t),void 0!==l)?l:102}function W(){return new Map}var q=n(78485),G=n(5191),K=n(83223),Q=n(68360),Y=n(77879),X=n(28741),Z=n(79250),J=n(62682),ee=n(97313),et=n(19490);function en(e){let t,n,i,r=(0,o.c)(5),a=(0,v.useRef)(null);return r[0]!==e?(t=(0,l.jsx)(ee.s,{...e,ref:a}),r[0]=e,r[1]=t):t=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(et.A,{containerRef:a}),r[2]=n):n=r[2],r[3]!==t?(i=(0,l.jsxs)(l.Fragment,{children:[t,n]}),r[3]=t,r[4]=i):i=r[4],i}en.displayName="MarkdownContent";var el=n(25781),eo=n(95173),ei=n(23054),er=n(35205),ea=n(19519),es=n(87763),ec=n(73342),ed=n(70170),eu=n(25649),em=n(82307),eh=n(65938),e_=n(36899),ep=n(206),ef=n(95126),eb=n(23666),ex=n(77236),ey=n(16497),eg=n(94709);let ej=[.007,.014,.03,.049,.084,.14,.23,.38,.62,Number.MAX_VALUE],ev={"scale.orange.0":"#ffdfb6","scale.orange.1":"#ffc680","scale.orange.2":"#f0883e","scale.orange.3":"#f0883e","scale.orange.4":"#db6d28","scale.orange.5":"#bd561d","scale.orange.6":"#9b4215","scale.orange.7":"#762d0a","scale.orange.8":"#5a1e02","scale.orange.9":"#3d1300"};function eN(e,t){return ev[`scale.orange.${t}`]}function ew(e,t){return ev[`scale.orange.${9-t}`]}var ek=n(38621),eS=n(62935),eC=n(55717),eI=n(51220),eT=n(46996),eB=n(22776),eA=n(95630);function eL(e){let t,n=(0,o.c)(13),{copilotAccessAllowed:i,linesData:r,colorizedLines:a,tabSize:s,onLineNumberClick:c}=e,d=(0,v.useRef)(null),u=(0,S.O)();if(n[0]!==u||n[1]!==a||n[2]!==i||n[3]!==r||n[4]!==c||n[5]!==s){let e,o,m=eF(u,r);n[7]!==s?(e={tabSize:s},n[7]=s,n[8]=e):e=n[8],n[9]!==a||n[10]!==i||n[11]!==c?(o=(e,t)=>(0,l.jsx)(eR,{...e,colorizedLines:a,index:t,copilotAccessAllowed:i,onLineNumberClick:c},`blame-for-segment-${e.range?.start??e.linesData[0].lineNumber}`),n[9]=a,n[10]=i,n[11]=c,n[12]=o):o=n[12],t=(0,l.jsx)("div",{className:"d-flex flex-column",style:e,ref:d,"data-hpc":!0,children:m.map(o)}),n[0]=u,n[1]=a,n[2]=i,n[3]=r,n[4]=c,n[5]=s,n[6]=t}else t=n[6];return t}function eD(e){let t,n,i,r,a,s,c,d,u=(0,o.c)(23),{copilotAccessAllowed:m,linesData:_,colorizedLines:p,tabSize:f,materializeAllLines:b,onLineNumberClick:x,ref:y}=e,g=(0,v.useRef)(null),j=(0,S.O)(),{screenSize:N}=(0,h.lm)(),[w,k]=(0,v.useState)(0);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{k(g.current?.offsetTop??0)},n=[],u[0]=t,u[1]=n):(t=u[0],n=u[1]),(0,v.useLayoutEffect)(t,n);let C=N>=h.Gy.medium;u[2]!==j?.ranges||u[3]!==C||u[4]!==_?(i=e=>{let t=_[e],n=j?.ranges[t.lineNumber];return n&&n.end===n.start?C?31:41:20},u[2]=j?.ranges,u[3]=C,u[4]=_,u[5]=i):i=u[5];let I=i,T=b?Number.MAX_SAFE_INTEGER:100;u[6]!==I||u[7]!==_.length||u[8]!==w||u[9]!==T?(r={count:_.length,overscan:T,estimateSize:I,scrollMargin:w},u[6]=I,u[7]=_.length,u[8]=w,u[9]=T,u[10]=r):r=u[10];let B=(0,eI.XW)(r);u[11]!==_||u[12]!==B.options?(a=e=>({..._[e.index],virtualOffset:e.start-B.options.scrollMargin}),u[11]=_,u[12]=B.options,u[13]=a):a=u[13];let A=B.getVirtualItems().map(a);u[14]!==B?(s=()=>({scrollToTop:()=>{(0,O.si)(0)||B.scrollToIndex(0,{align:"start"})},scrollToLine:e=>{(0,O.si)(e)||B.scrollToIndex(e,{align:"center"})}}),u[14]=B,u[15]=s):s=u[15],(0,v.useImperativeHandle)(y,s);let L=eF(j,A),D=L.length;return u[16]!==B?(c=B.getTotalSize(),u[16]=B,u[17]=c):c=u[17],u[18]!==p||u[19]!==m||u[20]!==x||u[21]!==N?(d=(e,t)=>{let n=e.linesData[0].virtualOffset??0;return N(0,l.jsxs)("div",{className:"d-flex flex-row",children:[(0,l.jsx)("div",{className:`react-line-numbers ${d.length>1?"":"react-blame-no-line-data"}`,children:(0,l.jsx)(eA.Kn,{codeLineData:e,onClick:h},`line-number-${e.lineNumber}-content-${e.rawText?.substring(0,100)}`)}),(0,l.jsx)("div",{className:`react-code-line ${d.length>1?"":"react-blame-no-line-data"}`,children:(0,l.jsx)(eB.S,{stylingDirectivesLine:e.stylingDirectivesLine,id:`LC${e.lineNumber}`,codeLineData:e,copilotAccessAllowed:m,shouldUseInert:!1,colorizedLine:u?.[e.lineNumber-1]},`code-line=${e.lineNumber}-content-${e.rawText?.substring(0,100)}`)})]},`line-pair-${e.lineNumber}`),a[8]=u,a[9]=m,a[10]=d.length,a[11]=h,a[12]=e):e=a[12],n=d.map(e),a[3]=u,a[4]=m,a[5]=d,a[6]=h,a[7]=n}else n=a[7];return a[13]!==n?(i=(0,l.jsx)("div",{className:"react-line-code-pairs d-flex flex-column",children:n}),a[13]=n,a[14]=i):i=a[14],a[15]!==t||a[16]!==i?(r=(0,l.jsxs)(l.Fragment,{children:[t,i]}),a[15]=t,a[16]=i,a[17]=r):r=a[17],r}eL.displayName="BlameLinesSSR",eD.displayName="BlameLines",eO.displayName="BlameSegmentContent";let eR=v.memo(function(e){let t,n,i,r=(0,o.c)(12),{range:a,commit:s,linesData:c,colorizedLines:d,virtualOffset:u,copilotAccessAllowed:m,onLineNumberClick:h}=e;return r[0]!==u?(t=void 0!==u?{transform:`translateY(${u}px)`,position:"absolute",top:0}:void 0,r[0]=u,r[1]=t):t=r[1],r[2]!==d||r[3]!==s||r[4]!==m||r[5]!==c||r[6]!==h||r[7]!==a?(n=(0,l.jsx)(eO,{range:a,commit:s,linesData:c,copilotAccessAllowed:m,colorizedLines:d,onLineNumberClick:h}),r[2]=d,r[3]=s,r[4]=m,r[5]=c,r[6]=h,r[7]=a,r[8]=n):n=r[8],r[9]!==t||r[10]!==n?(i=(0,l.jsx)("div",{className:"react-blame-segment-wrapper",style:t,children:n}),r[9]=t,r[10]=n,r[11]=i):i=r[11],i},(e,t)=>e.range===t.range&&e.commit===t.commit&&e.virtualOffset===t.virtualOffset&&(0,eT.A)(e.linesData,t.linesData)&&(0,eT.A)(e.colorizedLines,t.colorizedLines));function eF(e,t){if(!e)return[{linesData:t}];let n=[],l=null,o=!0;for(let i of t){l||(l={linesData:[]});let t=o?Object.values(e?.ranges??{}).find(e=>e.start<=i.lineNumber&&e.end>=i.lineNumber):e?.ranges[i.lineNumber];t&&(l.range=t,l.commit=e.commits[t.commitOid]),l.linesData.push(i),l.range?.end===i.lineNumber&&(n.push(l),l=null),o=!1}return l&&(n.push(l),l=null),n}eR.displayName="BlameSegment";let eE=v.memo(eP);function eP(e){let t,n,i,r,a,s,c,d,u,m,h,_,p,f=(0,o.c)(37),{range:b,commit:x}=e,y=(0,B.t)(),g=(0,ef.yY)();f[0]!==x.committedDate?(t=new Date(x.committedDate),f[0]=x.committedDate,f[1]=t):t=f[1];let j=t;f[2]!==y.createdAt?(n=new Date(y.createdAt),f[2]=y.createdAt,f[3]=n):n=f[3];let v=n;f[4]!==j?(i=(0,l.jsx)("div",{className:"timestamp-ago",children:(0,l.jsx)(eS.A,{date:j,tense:"past",className:"Blame-module__RelativeTime__tfjRN"})}),f[4]=j,f[5]=i):i=f[5];let N=i;f[6]!==j||f[7]!==v?(r=(0,l.jsx)("div",{"aria-hidden":!0,className:"age-indicator",children:(0,l.jsx)(ez,{commitDate:j,repoCreationDate:v})}),f[6]=j,f[7]=v,f[8]=r):r=f[8],f[9]!==N?(a=(0,l.jsx)("div",{className:"pt-1 timestamp-wrapper-desktop",children:N}),f[9]=N,f[10]=a):a=f[10],f[11]!==x.authorAvatarUrl?(s=x.authorAvatarUrl&&(0,l.jsx)(ep.r,{src:x.authorAvatarUrl,size:18}),f[11]=x.authorAvatarUrl,f[12]=s):s=f[12],f[13]!==s?(c=(0,l.jsx)("div",{className:"author-avatar-wrapper",children:s}),f[13]=s,f[14]=c):c=f[14];let w=x.shortMessageHtmlLink;return f[15]!==x.oid||f[16]!==g||f[17]!==y.name||f[18]!==y.ownerLogin?(d=g("commit",{owner:y.ownerLogin,repo:y.name,commitish:x.oid}),f[15]=x.oid,f[16]=g,f[17]=y.name,f[18]=y.ownerLogin,f[19]=d):d=f[19],f[20]!==x.shortMessageHtmlLink||f[21]!==d?(u=(0,l.jsx)("div",{className:"Blame-module__commitMessageWrapper__C0mLM",children:(0,l.jsx)("div",{className:"d-flex",children:(0,l.jsx)(ey.JR,{html:w,className:"Blame-module__commitMessage__I5mwd",...d})})}),f[20]=x.shortMessageHtmlLink,f[21]=d,f[22]=u):u=f[22],f[23]!==N?(m=(0,l.jsx)("div",{className:"pt-1 pr-pr-3 timestamp-wrapper-mobile",children:N}),f[23]=N,f[24]=m):m=f[24],f[25]!==x||f[26]!==b?(h=(0,l.jsx)(e$,{range:b,commit:x}),f[25]=x,f[26]=b,f[27]=h):h=f[27],f[28]!==m||f[29]!==h?(_=(0,l.jsxs)("div",{className:"Blame-module__reblameWrapper__myduy",children:[m,h]}),f[28]=m,f[29]=h,f[30]=_):_=f[30],f[31]!==u||f[32]!==_||f[33]!==r||f[34]!==a||f[35]!==c?(p=(0,l.jsxs)("div",{className:"react-blame-for-range d-flex",children:[r,a,c,u,_]}),f[31]=u,f[32]=_,f[33]=r,f[34]=a,f[35]=c,f[36]=p):p=f[36],p}function e$(e){let t,n,i,r,a,s,c=(0,o.c)(19),{range:d,commit:u}=e,m=(0,B.t)();if(!d.reblamePath)return null;c[0]!==u.firstParentOid||c[1]!==d.reblamePath||c[2]!==m.name||c[3]!==m.ownerLogin?(t=(0,eb.buO)({owner:m.ownerLogin,repo:m.name,commitish:u.firstParentOid,filePath:d.reblamePath}),c[0]=u.firstParentOid,c[1]=d.reblamePath,c[2]=m.name,c[3]=m.ownerLogin,c[4]=t):t=c[4];let h=t;if(c[5]!==u.committedDate||c[6]!==u.oid){let e,t=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric"});c[9]!==u.oid?(e=u.oid.slice(0,7),c[9]=u.oid,c[10]=e):e=c[10],n=e,i=t.format(new Date(u.committedDate)),c[5]=u.committedDate,c[6]=u.oid,c[7]=n,c[8]=i}else n=c[7],i=c[8];let _=i,p=`Blame prior to change ${n}, made on ${_}`,f=`reblame-${n}`;return c[11]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(ek.VersionsIcon,{}),c[11]=r):r=c[11],c[12]!==h||c[13]!==f?(a=(0,l.jsx)(ex.N,{"aria-labelledby":f,to:h,className:"Button Button--iconOnly Button--invisible Button--small",children:r}),c[12]=h,c[13]=f,c[14]=a):a=c[14],c[15]!==p||c[16]!==f||c[17]!==a?(s=(0,l.jsx)(eC.m,{text:p,type:"label",id:f,children:a}),c[15]=p,c[16]=f,c[17]=a,c[18]=s):s=c[18],s}function ez(e){let t,n=(0,o.c)(2),{commitDate:i,repoCreationDate:r}=e,a=function(e,t){let n,l=(0,o.c)(4),{resolvedColorScheme:i}=(0,eg.DP)(),r=i?.startsWith("dark"),a=r?ev["scale.orange.9"]:ev["scale.orange.0"];if(e(0,l.jsx)(eA.Kn,{codeLineData:e,onClick:f,ownedCodeSections:b,onLineStickOrUnstick:y,onCollapseToggle:N},`line-number-${e.lineNumber}-content:${e.rawText?.substring(0,100)}`),h[12]=b,h[13]=N,h[14]=f,h[15]=y,h[16]=e):e=h[16],r=_.map(e),h[6]=b,h[7]=_,h[8]=N,h[9]=f,h[10]=y,h[11]=r}else r=h[11];if(h[17]!==r?(a=(0,l.jsx)("div",{className:"react-line-numbers",style:i,children:r}),h[17]=r,h[18]=a):a=h[18],h[19]!==x||h[20]!==v||h[21]!==_||h[22]!==N||h[23]!==y){let e;h[25]!==x||h[26]!==v||h[27]!==N||h[28]!==y?(e=e=>(0,l.jsx)(eB.S,{codeLineData:e,codeLineClassName:e.codeLineClassName,stylingDirectivesLine:e.stylingDirectivesLine,id:`LC${e.lineNumber}`,onLineStickOrUnstick:y,setIsCollapsed:N,codeLineToSectionMap:x,copilotAccessAllowed:v,measureRef:void 0,shouldUseInert:!1},`line-data-${e.lineNumber}-content:${e.rawText?.substring(0,100)}`),h[25]=x,h[26]=v,h[27]=N,h[28]=y,h[29]=e):e=h[29],s=_.map(e),h[19]=x,h[20]=v,h[21]=_,h[22]=N,h[23]=y,h[24]=s}else s=h[24];return h[30]!==s?(c=(0,l.jsx)("div",{className:"react-code-lines",children:s}),h[30]=s,h[31]=c):c=h[31],h[32]!==n||h[33]!==a||h[34]!==c||h[35]!==g?(d=(0,l.jsxs)("div",{className:t,role:"presentation","aria-hidden":!0,"data-tab-size":g,"data-paste-markdown-skip":!0,style:n,"data-hpc":!0,children:[a,c]}),h[32]=n,h[33]=a,h[34]=c,h[35]=g,h[36]=d):d=h[36],h[37]!==_.length||h[38]!==S?(u=1e3===_.length&&(0,l.jsx)("div",{className:"CodeLinesSSR-module__viewRemainderLink__pd3EU",children:(0,l.jsx)(K.A,{href:S,children:"View remainder of file in raw view"})}),h[37]=_.length,h[38]=S,h[39]=u):u=h[39],h[40]!==u||h[41]!==d?(m=(0,l.jsxs)(l.Fragment,{children:[d,u]}),h[40]=u,h[41]=d,h[42]=m):m=h[42],m}eV.displayName="CodeLinesSSR",eU.displayName="CodeLinesSSRUnmemoized";var eW=n(3633),eq=n(67572),eG=n(41559),eK=n(40772);let eQ=v.memo(eY);function eY(e){let t,n,i,r,a,s,c,d,u,m,h,_=(0,o.c)(36),{linesData:f,onLineNumberClick:b,codeSections:x,nonTruncatedLinesData:y,colorizedLines:g,onLineStickOrUnstick:j,tabSize:v,contentWidth:N,copilotAccessAllowed:k,onCollapseToggle:S}=e,C=(0,p.ud)().codeWrappingOption.enabled,{rawBlobUrl:I}=(0,Y.A)();_[0]!==f.length?(t=[...Array(Math.floor(f.length/eM.kd)+1).keys()],_[0]=f.length,_[1]=t):t=_[1];let T=t;_[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,w.$)("react-code-file-contents","CodeLinesSSRNoVirtualization-module__codeFileContents__BHJ0j"),_[2]=n):n=_[2];let B=C?"100%":"unset";return _[3]!==N||_[4]!==B||_[5]!==v?(i={tabSize:v,width:N,maxWidth:B},_[3]=N,_[4]=B,_[5]=v,_[6]=i):i=_[6],_[7]===Symbol.for("react.memo_cache_sentinel")?(r={pointerEvents:"auto",position:"relative",zIndex:2},_[7]=r):r=_[7],_[8]!==x||_[9]!==T||_[10]!==f||_[11]!==S||_[12]!==b||_[13]!==j?(a=(0,l.jsx)("div",{className:"react-line-numbers-no-virtualization",style:r,children:T.map(e=>{let t=f.slice(e*eM.kd,Math.min(e*eM.kd+eM.kd,f.length));return(0,l.jsx)("div",{className:"react-no-virtualization-wrapper-lines-ssr",children:t.map(e=>(0,l.jsx)(eG.m,{codeLineData:e,onClick:b,ownedCodeSections:x,onLineStickOrUnstick:j,onCollapseToggle:S},`line-number-${e.lineNumber}`))},`line-number-wrapper-${e}-content:${t[0]?.rawText?.substring(0,100)}`)})}),_[8]=x,_[9]=T,_[10]=f,_[11]=S,_[12]=b,_[13]=j,_[14]=a):a=_[14],_[15]!==f?(s=(0,l.jsx)(eq.R,{linesData:f}),_[15]=f,_[16]=s):s=_[16],_[17]!==k||_[18]!==f?(c=(0,l.jsx)(eW.n,{linesData:f,copilotAccessAllowed:k}),_[17]=k,_[18]=f,_[19]=c):c=_[19],_[20]!==g||_[21]!==y?(d=(0,l.jsx)(eK.Bg,{linesData:y,colorizedLines:g}),_[20]=g,_[21]=y,_[22]=d):d=_[22],_[23]!==f.length||_[24]!==I?(u=1e3===f.length&&(0,l.jsx)("div",{className:"CodeLinesSSRNoVirtualization-module__viewRemainderLink__AfKEx",children:(0,l.jsx)(K.A,{href:I,children:"View remainder of file in raw view"})}),_[23]=f.length,_[24]=I,_[25]=u):u=_[25],_[26]!==u||_[27]!==s||_[28]!==c||_[29]!==d?(m=(0,l.jsxs)("div",{className:"react-code-lines",children:[s,c,d,u]}),_[26]=u,_[27]=s,_[28]=c,_[29]=d,_[30]=m):m=_[30],_[31]!==m||_[32]!==i||_[33]!==a||_[34]!==v?(h=(0,l.jsxs)("div",{className:n,role:"presentation","aria-hidden":!0,"data-tab-size":v,"data-paste-markdown-skip":!0,style:i,"data-hpc":!0,children:[a,m]}),_[31]=m,_[32]=i,_[33]=a,_[34]=v,_[35]=h):h=_[35],h}eQ.displayName="CodeLinesSSRNoVirtualization",eY.displayName="CodeLinesSSRNoVirtualizationUnmemoized";var eX=n(5672);function eZ(e,t){return t+1}var eJ=n(25445),e0=n(56792);function e1({linesData:e,onCodeNavTokenSelected:t,onLineNumberClick:n,isBlame:o,isCursorVisible:r,isVirtualized:a,textAreaRef:d,shouldRenderOverlay:u,tabSize:m,optionalTestLeftOffsetFunction:h,textSelection:_,onCollapseToggle:p,onLineStickOrUnstick:f,optionalTestTopOffsetFunction:x,additionalTextAreaInstructions:y}){let g,[j,N]=(0,v.useState)(0),[k,S]=(0,v.useState)(0),[C,I]=(0,v.useState)(!1),A=(0,v.useRef)(""),L=(0,v.useRef)(null),R=(0,B.t)(),F=(0,s.l)(),E=(0,b.z)(),{canEdit:P}=(0,e0.M)(),{cursorNavigationHighlightLine:$,expandAndFocusLineContextMenu:z,cursorNavigationEnter:H,searchShortcut:M,cursorNavigationPageDown:V,cursorNavigationPageUp:U}=(0,c.wk)(),W=(0,D.zy)();(0,v.useEffect)(()=>{N(0),S(0)},[W.key]),(0,v.useEffect)(()=>{function e(e){A.current=e.key}return window.oncontextmenu=function(e){if("ContextMenu"===A.current&&-1===e.button&&document.activeElement?.className.indexOf(e_.Dp)!==-1)return A.current="",e?.preventDefault(),e?.stopPropagation(),!1},window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e),window.oncontextmenu=null}},[]);let q=o?Z.cH:Z.M_,G=(0,v.useRef)(null),{onEnter:K,updateUrlForLineNumber:Q,onPageUp:Y,onPageDown:X,currentStartLine:J,currentStartChar:ee,currentEndLine:et,currentEndChar:en,determineAndSetTextAreaCursorPosition:el,getCorrectLineNumberWithCollapsedSections:eo}=(0,Z.M1)(G,t,h??N,x??S,e,a,o,n,d,m,y,_),ei=(0,v.useRef)(!1);(0,v.useEffect)(()=>{ei.current=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},[]);let er=(0,es.o)("react-line-numbers"),ea=r?{height:`${er}px`,visibility:ei.current?"hidden":"visible"}:void 0;return g=J.current===et.current&&ee.current===en.current?`#L${J.current+1}C${ee.current}`:`#${(0,T.Kn)({start:{line:J.current+1,column:ee.current},end:{line:et.current+1,column:en.current}})}`,(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{"aria-hidden":!0,style:{top:k,left:q+j,...ea},ref:G,"data-testid":"navigation-cursor",className:(0,w.$)("code-navigation-cursor",r&&"NavigationCursor-module__navigationCursor__r8QJd"),children:" "}),u&&(0,l.jsx)("div",{style:{top:k+er,left:q+j,zIndex:2},className:"position-absolute border rounded-2 color-bg-subtle tmp-px-3 py-2",children:(0,l.jsxs)("span",{style:{pointerEvents:"auto"},children:["Code view is read-only."," ",P&&(0,l.jsx)(ex.N,{to:(0,eb.Nyd)({owner:R.ownerLogin,repo:R.name,filePath:F,commitish:E.name,hash:g}),children:"Switch to the editor."})]})}),C&&(0,l.jsx)(e_.Ay,{ref:L,rowBeginId:`LG${eo(J.current)}`,rowBeginNumber:eo(J.current),rowEndNumber:eo(et.current),rowEndId:`LG${eo(et.current)}`,openOnLoad:!0,cursorRef:G,onCollapseToggle:p,onLineStickOrUnstick:f,lineData:function(){if(J.current!==et.current)return null;let t=e[J.current];if(!t)return null;if(t.isStartLine)return t;if(""===t.codeLineClassName)return null;let n=t.codeLineClassName?.split("child-of-line-");if(!n||t.codeLineClassName?.indexOf("child-of-line-")===-1)return null;let l=parseInt(n[n.length-1]?.trim()??"undefined");return l&&!Number.isNaN(l)?e[l-1]&&e[l-1]?.lineNumber===l?e[l-1]:e[(0,O.N9)(l,e)]:null}(),onMenuClose:function(e,t){I(e),setTimeout(()=>{t&&el(),d?.current?.focus()},300)}}),(0,l.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorEnter","data-hotkey":H.hotkey,onClick:K,"data-hotkey-scope":O.wQ}),(0,l.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorSetHighlightedLine","data-hotkey":$.hotkey,onClick:Q,"data-hotkey-scope":O.wQ}),(0,l.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorSetHighlightAndExpandMenu","data-hotkey":z.hotkey,onClick:e=>(e.preventDefault(),e.stopPropagation(),I(!0),setTimeout(()=>{L.current?.setAnchor(G.current)},0),!1),"data-hotkey-scope":O.wQ}),(0,l.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorPageDown","data-hotkey":V.hotkey,onClick:X,"data-hotkey-scope":O.wQ}),(0,l.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorPageUp","data-hotkey":U.hotkey,onClick:Y,"data-hotkey-scope":O.wQ}),(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:M.hotkey,onButtonClick:()=>{(0,eJ.Z)({retainScrollPosition:!0,returnTarget:d?.current??void 0})},onlyAddHotkeyScopeButton:!0})]})}e1.displayName="NavigationCursor";var e2=n(23827),e3=n(49481),e4=n(58846),e5=n(61398),e6=n(40961);function e8(e){let t,n,i,r,a,s=(0,o.c)(13),{onDismiss:d}=e,{expandAndFocusLineContextMenu:u,cursorNavigationEnter:m,cursorNavigationHighlightLine:h}=(0,c.wk)();return s[0]!==h.text?(t=(0,l.jsxs)("div",{className:"p-1",children:["Select the line the cursor is on ",(0,l.jsx)("kbd",{children:h.text})]}),s[0]=h.text,s[1]=t):t=s[1],s[2]!==m.text?(n=(0,l.jsxs)("div",{className:"p-1",children:["Select the symbol under the cursor ",(0,l.jsx)("kbd",{children:m.text})]}),s[2]=m.text,s[3]=n):n=s[3],s[4]!==u.text?(i=(0,l.jsxs)("div",{className:"p-1",children:["Move focus to the highlighted line menu ",(0,l.jsx)("kbd",{children:u.text})]}),s[4]=u.text,s[5]=i):i=s[5],s[6]!==t||s[7]!==n||s[8]!==i?(r=(0,l.jsx)("div",{children:(0,l.jsxs)("div",{children:[t,n,i]})}),s[6]=t,s[7]=n,s[8]=i,s[9]=r):r=s[9],s[10]!==d||s[11]!==r?(a=(0,e6.createPortal)((0,l.jsx)(e5.l,{width:"large","aria-label":"Code Blob Focused Hotkeys",onClose:d,title:"Code Blob Focused Hotkeys",children:r}),document.body),s[10]=d,s[11]=r,s[12]=a):a=s[12],a}function e7({textAreaRef:e,setTextOverlayShouldBeVisible:t,setTextSelection:n,setAdditionalTextAreaInstructions:o,cursorClickStartRef:r,parentRef:a,tabSize:s,plainTextLinesAsString:d,numLines:u,setIsTextAreaFocused:m}){let _=(0,Z.fY)(),f=(0,p.ud)().codeWrappingOption,b=(0,c.V3)(),x=(0,c._y)(),y=(0,es.o)("react-line-numbers"),[g,j]=(0,v.useState)(!1),{cursorNavigationOpenHelpDialog:N}=(0,c.wk)(),{colorMode:w,dayScheme:k,nightScheme:S}=(0,e4.A)(),C=("night"===w?S:k)?.endsWith("high_contrast");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("textarea",{id:O.wQ,"data-testid":O.wQ,ref:e,onMouseUp:l=>(function(e,t,n,l,o,i,r,a){if(i&&!e.defaultPrevented&&o){if(2===e.button)e.preventDefault(),e.stopPropagation();else if(0===e.button){n(!1);let i=window.matchMedia(`(max-width: ${h.Gy.medium-1}px)`).matches,s=r.current?.getBoundingClientRect(),c=s?.top?window.scrollY+s.top:i?423:354;if(r.current&&e.pageY>c+r.current?.clientHeight){o.current={startX:-2,startY:-2};return}let d=(0,O.t1)(e.pageY,c,a),u=s?.left||0,m=e.clientX-u-Z.M_,_=!1;(d{t&&t.current&&l({start:t.current.selectionStart,end:t.current.selectionEnd,keyboard:!1,displayStart:_})})}}})(l,e,t,n,r,_,a,y),onMouseDown:e=>(function(e,t,n,l,o){if(n&&!e.defaultPrevented&&l){if(2===e.button){e.preventDefault(),e.stopPropagation();return}else if(0===e.button){if(e.ctrlKey){e.preventDefault(),e.stopPropagation();return}let n=window.matchMedia(`(max-width: ${h.Gy.medium-1}px)`).matches,i=t.current?.getBoundingClientRect(),r=i?.top?window.scrollY+i.top:n?423:354;if(t.current&&e.pageY>r+t.current?.clientHeight){l.current={startX:-2,startY:-2};return}let a=(0,O.t1)(e.pageY,r,o),s=i?.left||0;l.current={startX:e.clientX-s-Z.M_,startY:a}}}})(e,a,_,r,y),"aria-label":"file content","aria-readonly":!0,inputMode:"none",tabIndex:0,"aria-multiline":!0,"aria-haspopup":!1,"data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",style:{resize:"none",marginTop:-2,paddingLeft:Z.M_,paddingRight:Z.di,display:"hidden",width:"100%",backgroundColor:"unset",boxSizing:"border-box",color:"transparent",position:"absolute",border:"none",tabSize:s,outline:"none",overflowX:"auto",height:y*(u+1),fontSize:"12px",lineHeight:"20px",overflowY:"hidden",overflowWrap:f.enabled?"anywhere":"normal",overscrollBehaviorX:"none",whiteSpace:f.enabled?"pre-wrap":"pre",zIndex:1},value:d,onKeyDown:function(l){if(b.includes(l.key)||x.includes(l.key)&&(l.getModifierState("Control")||l.getModifierState("Alt")||l.getModifierState("Shift")||l.getModifierState("Meta")))" "===l.key&&(l.preventDefault(),l.shiftKey?o(`PageUp${Date.now()}`):o(`PageDown${Date.now()}`)),l.altKey&&l.ctrlKey&&"\u02D9"===l.key&&j(!0),t(!1),requestAnimationFrame(()=>{e.current&&n({start:e.current.selectionStart,end:e.current.selectionEnd,keyboard:!0,displayStart:!1})});else{var i,r;let e;!(!l.ctrlKey&&!l.metaKey&&!l.altKey&&!l.shiftKey&&(i=/[a-zA-Z0-9-_ ]{1,1}/,r=l.key,(e=i.exec(r))&&e[0]===r||"Backspace"===l.key||"Enter"===l.key))||((0,e3.i)("Code view is read only."),t(!0),l.preventDefault())}},spellCheck:!1,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off","data-ms-editor":"false",onDrop:e=>{let t=e.dataTransfer.getData("Text");try{let e=new URL(t);window.open(e,"_blank")?.focus()}catch{}return!1},onPaste:e=>(e.preventDefault(),!1),onChange:()=>{},className:`react-blob-textarea react-blob-print-hide${C?" select-contrast":""}`,onFocus:()=>{m(!0)}}),g&&(0,l.jsx)(e8,{onDismiss:()=>{j(!1)}}),(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:N.hotkey,onButtonClick:()=>{j(!0)},onlyAddHotkeyScopeButton:!0})]})}e8.displayName="TextAreaHelpDialog",e7.displayName="TextArea";let e9=(0,er.A)("localStorage");function te({blobLinesHandle:e,onCodeNavTokenSelected:t,codeSections:n,codeLineToSectionMap:i,validCodeNav:r,onLineStickOrUnstick:a,searchResults:c,focusedSearchResult:d}){var u,m;let h,_,f,x,y,g,j,N,k,B,{rawLines:A,colorizedLines:L,stylingDirectives:F}=(0,I.$)(),{tabSize:E}=(0,Y.A)(),P=!!(0,S.O)(),[$,z]=(0,v.useState)(!1),H=(0,Z.fY)(),M=(0,es.o)("react-line-numbers"),[V,W]=(0,v.useState)(void 0),[q,K]=(0,v.useState)({start:-1,end:-1,keyboard:!0,displayStart:!1}),[X,J]=(0,v.useState)(""),[ee,et]=(0,v.useState)(!1),en=(0,v.useRef)(null),[el,er]=(0,v.useState)(!1),ep=(0,v.useRef)({startX:0,startY:0}),{hash:ef}=(0,D.zy)(),eb=(0,s.l)(),{copilotAccessAllowed:ex}=(0,eo.w)(),ey=(0,b.z)(),eg=(0,v.useRef)(null),[ej,ev]=(0,v.useState)(void 0),{isServer:eN}=(0,ea.V)(),ew=(0,v.useRef)(null),ek=(0,p.ud)().codeWrappingOption.enabled,eS=function(){let e,t,n=(0,o.c)(2);n[0]===Symbol.for("react.memo_cache_sentinel")?(e={},n[0]=e):e=n[0];let[,l]=(0,v.useState)(e);return n[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>l({}),n[1]=t):t=n[1],t}(),eC=(0,C.YP)(),eI=U(),eT=(0,ec.z)(!0,eI,a),eB=(0,v.useCallback)(()=>{W((0,T.$c)(window.location.hash)?.blobRange)},[]),{findInFileOpen:eA,setFindInFileOpen:eO}=(0,Q.k)(),eR=(0,ei.v)(),{lines:eF,plainTextLinesAsString:eE,nonTruncatedLinesData:eP}=(h=function(e,t,n,l,i){let r,a=(0,o.c)(13),{isServer:s}=(0,ea.V)(),c=s?Math.min(e.length,1e3):e.length;if(a[0]!==i||a[1]!==n||a[2]!==c||a[3]!==e||a[4]!==l||a[5]!==t){let o,s=Array(c).fill(null).map(eZ);a[7]!==i||a[8]!==n||a[9]!==e||a[10]!==l||a[11]!==t?(o=o=>{let r,a=t?.[o-1],s=!1,c=!1;for(let e of n?.get(o)??[])e.startLine===o&&(s=!0,r=e),e.endLine===o&&(c=!0);let d=e[o-1]?.replace(/[\n\r]/g,"")??"",u=i&&i.get(o)||[],m=(0,O.Bn)(u,o,c,n);return{stylingDirectivesLine:a,lineNumber:o,codeLineClassName:m,isStartLine:s,isEndLine:c,ownedSection:r,rawText:d,hiddenUnicode:(0,em.Y)(d),codeownersLineError:l?.find(e=>e.line===o)}},a[7]=i,a[8]=n,a[9]=e,a[10]=l,a[11]=t,a[12]=o):o=a[12],r=s.map(o),a[0]=i,a[1]=n,a[2]=c,a[3]=e,a[4]=l,a[5]=t,a[6]=r}else r=a[6];return r}(A??[],F??null,u=n??null,eR,i),_=(0,em.bp)(),f=(0,v.useRef)(""),(0,O.Wb)(e=>{let t;return(t=[...e]).sort(),f.current=t.join(",")}),y=(x=(0,v.useMemo)(()=>(function(e,t){let n=new Set;for(let l=0;l!n.has(e.lineNumber))})(h,u),[h,u,f.current])).map(e=>_&&e.rawText?(0,em.TA)(e.rawText):e.rawText).join("\n"),{lines:x,plainTextLinesAsString:y,nonTruncatedLinesData:h}),e$=(0,eM.G)(eP.length)&&L&&0!==L.length,ez=(0,v.useRef)(eF);ez.current=eF,(0,v.useEffect)(()=>{(0,O.X5)()},[ey.currentOid,eb]),(0,v.useEffect)(()=>{window.onbeforeprint=()=>z(!0),window.onafterprint=()=>z(!1)},[]);let eU=(0,v.useEffectEvent)(()=>{(0,G.Q)(null,null,ek)});(0,v.useEffect)(()=>{eU()},[]),(0,v.useEffect)(()=>{"true"!==e9.getItem("heardHelpAnnouncement")&&((0,O.kY)("While the code is focused, press Alt+F1 for a menu of operations.",2e3),e9.setItem("heardHelpAnnouncement","true"))},[]),m=(0,v.useCallback)(e=>{if(e&&e?.node&&!P){if(!e.node.textContent||e.node.textContent.length<3)return;let n=e.node;!n||!n.hasAttribute||n.hasAttribute("clickadded")||(n.classList.add("pl-token"),n.setAttribute("clickadded","true"),n.addEventListener("click",function(n){let l=n.target.textContent?n.target.textContent:"";t&&e&&(t({selectedText:l,lineNumber:e.lineNumber,offset:e.offset}),eA&&eO(!1))}))}},[eA,P,eO,t]),N=(0,o.c)(6),k=!!(0,S.O)(),B=(0,Z.fY)(),N[0]!==B||N[1]!==k||N[2]!==m||N[3]!==r?(g=()=>{let e;if(k||!r||B)return;let t=(0,ed.s)(t=>{clearTimeout(e),e=setTimeout(()=>{!function(e,t){let n=function(e,t,n){let l,o;if(document.caretPositionFromPoint){let e=document.caretPositionFromPoint(t,n);e&&(l=e.offsetNode,o=e.offset)}else if(document.caretRangeFromPoint){let e=document.caretRangeFromPoint(t,n);e&&(l=e.startContainer,o=e.startOffset)}if(!l||"number"!=typeof o||l.nodeType!==Node.TEXT_NODE||!l.textContent)return null;let i=function(e,t,n){let l,o=null;for(;l=t.exec(e);){if(t.lastIndex===o){(0,eu.N7)(Error("regexp did not advance in findNearestMatch()"));break}o=t.lastIndex;let e=l.index+l[0].length;if(l.index<=n&&n<=e)return[l[0],l.index,e]}return null}(l.textContent,e,o);if(!i)return null;let r=document.createRange();return r.setStart(l,i[1]),r.setEnd(l,i[2]),r}(/\w+[!?]?/g,e.clientX,e.clientY);if(!n)return;let l=n.commonAncestorContainer.parentElement;if(l)for(let e of l.classList){if(["pl-token","pl-c","pl-s","pl-k"].includes(e))return null;let l=n.toString();if(!l||l.match(/\n|\s|[();&.=",]/))return null;let{lineNumber:o,offset:i,node:r}=function(e){let t=e.startContainer,n=e.startOffset;for(;;){let e=t.previousSibling;for(;e;)n+=(e.textContent||"").length,e=e.previousSibling;let l=t.parentElement;if(!l)return{lineNumber:0,offset:0,node:null};if(l.classList.contains("react-file-line"))return{lineNumber:parseInt(l.getAttribute("data-line-number")||"1",10),offset:n,node:t};t=l}}(n);if(0===o&&0===i||!r)return null;return t({lineNumber:o,offset:i,node:r})}}(t,m)},15)},5);return window.addEventListener("mousemove",t),()=>{window.removeEventListener("mousemove",t)}},j=[m,k,r,B],N[0]=B,N[1]=k,N[2]=m,N[3]=r,N[4]=g,N[5]=j):(g=N[4],j=N[5]),(0,v.useEffect)(g,j);let eW=({line:t,column:n})=>{if(t<10)e.current?.scrollToTop();else if(e.current){if(-1===(0,O.N9)(t,eF)){for(let e of i?.get(t)??[])e&&e.collapsed&&(e.collapsed=!1,(0,O.ny)(e?.startLine));eS()}setTimeout(()=>{let l=(0,O.N9)(t,ez.current);e.current?.scrollToLine(l,n)},0),eC&&!(0,O.si)(t)&&(a(null,!0),(0,O.CZ)(eC,t,i,a))}};(0,v.useEffect)(()=>{let e=(0,T.$c)(ef);e.blobRange?.start?.line?W(e.blobRange):W(void 0)},[eb,ef,eF.length]);let eq=(0,v.useEffectEvent)(()=>{let e=(0,T.$c)(ef);if(!e.blobRange?.start?.line)return;let t=window.setTimeout(()=>eW({line:e.blobRange.start.line}),0);return()=>{window.clearTimeout(t)}});return(0,v.useEffect)(()=>eq(),[eb,P]),(0,v.useEffect)(()=>{let e=eg.current;if(!e||!H)return void ev(void 0);ev(e.scrollWidth>e.clientWidth?e.scrollWidth:void 0);let t=new ResizeObserver(e=>{for(let{target:t}of e)ev(t.scrollWidth>t.clientWidth?t.scrollWidth:void 0)});return t.observe(e),()=>{t.disconnect()}},[H,eb]),(0,R.g)(eW),(0,l.jsx)(e2.gt,{searchResults:c,focusedSearchResult:d,children:(0,l.jsxs)(eX.iU,{highlightedLines:V,children:[eF.some(e=>e.hiddenUnicode)&&(0,l.jsx)(em.om,{}),(0,l.jsx)("div",{className:"CodeBlob-module__codeBlobWrapper__RS6In",style:{paddingTop:P?0:"8px",paddingBottom:P?0:"8px"},children:(0,l.jsx)(e_.AG,{children:(0,l.jsx)(eh.eT,{children:(0,l.jsxs)("div",{className:(0,w.$)("CodeBlob-module__codeBlobInner__tfjuQ",P&&"CodeBlob-module__codeBlobInnerBlame__CKJdc"),ref:en,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||et(!1)},children:[H&&(0,l.jsx)("div",{ref:ew,className:"CodeBlob-module__cursorContainer__tiLPm",children:(0,l.jsx)("div",{style:{width:ej,height:M*eF.length},children:(0,l.jsx)(e1,{linesData:eF,isBlame:!1,onCodeNavTokenSelected:t,onLineNumberClick:eB,isCursorVisible:!!ee,isVirtualized:!0,textAreaRef:eg,onCollapseToggle:eS,onLineStickOrUnstick:a,tabSize:E,textSelection:q,shouldRenderOverlay:!!el,additionalTextAreaInstructions:X??""})})}),H&&(0,l.jsx)(e7,{textAreaRef:eg,setTextOverlayShouldBeVisible:er,setTextSelection:K,setAdditionalTextAreaInstructions:J,cursorClickStartRef:ep,parentRef:en,tabSize:E,plainTextLinesAsString:eE,numLines:eF.length,setIsTextAreaFocused:et}),P?eN?(0,l.jsx)(eL,{linesData:eF,colorizedLines:L||void 0,tabSize:E,copilotAccessAllowed:ex,onLineNumberClick:eB}):(0,l.jsx)(eD,{ref:e,linesData:eF,colorizedLines:L||void 0,tabSize:E,copilotAccessAllowed:ex,onLineNumberClick:eB}):eN?e$?(0,l.jsx)(eQ,{linesData:eF,nonTruncatedLinesData:eP,onLineNumberClick:eB,colorizedLines:L,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:a,tabSize:E,contentWidth:ej,copilotAccessAllowed:ex,onCollapseToggle:eS}):(0,l.jsx)(eV,{linesData:eF,onLineNumberClick:eB,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:a,tabSize:E,contentWidth:ej,copilotAccessAllowed:ex,onCollapseToggle:eS}):e$?(0,l.jsx)(eM.P9,{ref:e,linesData:eF,nonTruncatedLinesData:eP,onLineNumberClick:eB,colorizedLines:L,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:a,sharedLineObserver:eT,tabSize:E,textAreaRef:eg,cursorContainerRef:ew,contentWidth:ej??eg.current?.clientWidth,onCollapseToggle:eS,materializeAllLines:$,copilotAccessAllowed:ex}):(0,l.jsx)(eH.FL,{ref:e,linesData:eF,onLineNumberClick:eB,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:a,sharedLineObserver:eT,tabSize:E,contentWidth:ej,cursorContainerRef:ew,onCollapseToggle:eS,textAreaRef:eg,materializeAllLines:$,copilotAccessAllowed:ex})]})})})})]})})}function tt(e){let t,n,i=(0,o.c)(4),{displayName:r,displayUrl:a}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t={maxWidth:"100%"},i[0]=t):t=i[0],i[1]!==r||i[2]!==a?(n=(0,l.jsx)("div",{className:"d-flex flex-justify-center width-full",children:(0,l.jsx)("img",{alt:r,src:a,"data-hpc":!0,style:t})}),i[1]=r,i[2]=a,i[3]=n):n=i[3],n}te.displayName="CodeBlob",tt.displayName="ImageBlob";var tn=n(6877),tl=n(67323),to=n(18990),ti=n(38750),tr=n(65820),ta=n(64451),ts=n(7624),tc=n(85965),td=n(21373);let tu="issue";function tm(e){let t,n,i,r,a,s,c,d,u,m,h,_,p,f,b,x=(0,o.c)(42),{issueTemplate:y,type:g}=e;return x[0]!==g?(t=g===tu?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t_,{header:!0,children:"Name"}),(0,l.jsx)(t_,{header:!0,children:"About"})]}):(0,l.jsx)(t_,{header:!0,children:"Title"}),x[0]=g,x[1]=t):t=x[1],x[2]!==y.type?(n=y.type&&(0,l.jsx)(t_,{header:!0,children:"Type"}),x[2]=y.type,x[3]=n):n=x[3],x[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(t_,{header:!0,children:"Labels"}),x[4]=i):i=x[4],x[5]!==y.projects?(r=y.projects&&(0,l.jsx)(t_,{header:!0,children:"Projects"}),x[5]=y.projects,x[6]=r):r=x[6],x[7]!==g?(a=g===tu&&(0,l.jsx)(t_,{header:!0,children:"Assignees"}),x[7]=g,x[8]=a):a=x[8],x[9]!==t||x[10]!==n||x[11]!==r||x[12]!==a?(s=(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[t,n,i,r,a]})}),x[9]=t,x[10]=n,x[11]=r,x[12]=a,x[13]=s):s=x[13],x[14]!==y.about||x[15]!==y.name||x[16]!==y.title||x[17]!==g?(c=g===tu?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t_,{children:y.name}),(0,l.jsx)(t_,{children:y.about})]}):(0,l.jsx)(t_,{children:y.title}),x[14]=y.about,x[15]=y.name,x[16]=y.title,x[17]=g,x[18]=c):c=x[18],x[19]!==y.type?(d=y.type&&(0,l.jsx)(t_,{children:y.type}),x[19]=y.type,x[20]=d):d=x[20],x[21]!==y.labels?(u=(0,l.jsx)(t_,{children:y.labels}),x[21]=y.labels,x[22]=u):u=x[22],x[23]!==y.projects?(m=y.projects&&(0,l.jsx)(t_,{children:y.projects}),x[23]=y.projects,x[24]=m):m=x[24],x[25]!==y.assignees||x[26]!==g?(h=g===tu&&(0,l.jsx)(t_,{children:y.assignees}),x[25]=y.assignees,x[26]=g,x[27]=h):h=x[27],x[28]!==m||x[29]!==h||x[30]!==c||x[31]!==d||x[32]!==u?(_=(0,l.jsx)("tbody",{children:(0,l.jsxs)("tr",{children:[c,d,u,m,h]})}),x[28]=m,x[29]=h,x[30]=c,x[31]=d,x[32]=u,x[33]=_):_=x[33],x[34]!==_||x[35]!==s?(p=(0,l.jsxs)("table",{className:"YamlTemplateContent-module__metadataTable__dALN6",children:[s,_]}),x[34]=_,x[35]=s,x[36]=p):p=x[36],x[37]!==y.inputs?(f=y.inputs.map(th),x[37]=y.inputs,x[38]=f):f=x[38],x[39]!==p||x[40]!==f?(b=(0,l.jsxs)("div",{className:"YamlTemplateContent-module__templateWrapper__pqxiJ",children:[p,f]}),x[39]=p,x[40]=f,x[41]=b):b=x[41],b}function th(e,t){return(0,l.jsx)(tp,{input:e},t)}function t_(e){let t,n=(0,o.c)(3),{children:i,header:r}=e,a=r?"th":"td";return n[0]!==a||n[1]!==i?(t=(0,l.jsx)(a,{className:"YamlTemplateContent-module__tableCell__k8szg",children:i}),n[0]=a,n[1]=i,n[2]=t):t=n[2],t}function tp(e){let t=(0,o.c)(13),{input:n}=e,i=(0,tn.u)("issue_form_upload_field");switch(n.type){case"markdown":{let e;return t[0]!==n?(e=(0,l.jsx)(tf,{input:n}),t[0]=n,t[1]=e):e=t[1],e}case"dropdown":{let e;return t[2]!==n?(e=(0,l.jsx)(tb,{input:n}),t[2]=n,t[3]=e):e=t[3],e}case"input":{let e;return t[4]!==n?(e=(0,l.jsx)(tx,{input:n}),t[4]=n,t[5]=e):e=t[5],e}case"textarea":{let e;return t[6]!==n?(e=(0,l.jsx)(ty,{input:n}),t[6]=n,t[7]=e):e=t[7],e}case"checkboxes":{let e;return t[8]!==n?(e=(0,l.jsx)(tg,{input:n}),t[8]=n,t[9]=e):e=t[9],e}case"upload":{let e;return t[10]!==n||t[11]!==i?(e=i?(0,l.jsx)(tv,{input:n}):null,t[10]=n,t[11]=i,t[12]=e):e=t[12],e}default:return null}}function tf(e){let t,n=(0,o.c)(2),{input:i}=e;return i.value?(n[0]!==i.value?(t=(0,l.jsx)(ey.vb,{html:i.value}),n[0]=i.value,n[1]=t):t=n[1],t):null}function tb(e){let t,n,i,r,a,s,c,d,u,m,h,_,p,f,b=(0,o.c)(31),{input:x}=e;if(b[0]!==x){let e=x.options?.slice();x.required||e?.unshift("None");let o=x.multiple?"Selections: ":"Selection: ";x.value&&(o+=x.value),r=tN,u=x,b[11]===Symbol.for("react.memo_cache_sentinel")?(m={alignItems:"start"},b[11]=m):m=b[11],i=tl.W,b[12]!==o?(d=(0,l.jsx)(tl.W.Button,{children:o}),b[12]=o,b[13]=d):d=b[13],n=tl.W.Overlay,c="medium",t=to.l,a=x.multiple?"multiple":"single",s=e?.map((e,t)=>(0,l.jsx)(to.l.Item,{selected:e===x.value,disabled:!0,children:e},t)),b[0]=x,b[1]=t,b[2]=n,b[3]=i,b[4]=r,b[5]=a,b[6]=s,b[7]=c,b[8]=d,b[9]=u,b[10]=m}else t=b[1],n=b[2],i=b[3],r=b[4],a=b[5],s=b[6],c=b[7],d=b[8],u=b[9],m=b[10];return b[14]!==t||b[15]!==a||b[16]!==s?(h=(0,l.jsx)(t,{selectionVariant:a,children:s}),b[14]=t,b[15]=a,b[16]=s,b[17]=h):h=b[17],b[18]!==n||b[19]!==c||b[20]!==h?(_=(0,l.jsx)(n,{width:c,children:h}),b[18]=n,b[19]=c,b[20]=h,b[21]=_):_=b[21],b[22]!==i||b[23]!==d||b[24]!==_?(p=(0,l.jsxs)(i,{children:[d,_]}),b[22]=i,b[23]=d,b[24]=_,b[25]=p):p=b[25],b[26]!==r||b[27]!==u||b[28]!==m||b[29]!==p?(f=(0,l.jsx)(r,{input:u,style:m,children:p}),b[26]=r,b[27]=u,b[28]=m,b[29]=p,b[30]=f):f=b[30],f}function tx(e){let t,n,i=(0,o.c)(6),{input:r}=e,a=r.value??"";return i[0]!==r.placeholder||i[1]!==a?(t=(0,l.jsx)(ti.A,{placeholder:r.placeholder,value:a}),i[0]=r.placeholder,i[1]=a,i[2]=t):t=i[2],i[3]!==r||i[4]!==t?(n=(0,l.jsx)(tN,{input:r,children:t}),i[3]=r,i[4]=t,i[5]=n):n=i[5],n}function ty(e){let t,n,i,r=(0,o.c)(9),{input:a}=e,s=a.value??"";return r[0]!==a.render?(t=a.render?{fontFamily:"mono"}:{},r[0]=a.render,r[1]=t):t=r[1],r[2]!==a.placeholder||r[3]!==s||r[4]!==t?(n=(0,l.jsx)(tr.Ay,{placeholder:a.placeholder,value:s,style:t}),r[2]=a.placeholder,r[3]=s,r[4]=t,r[5]=n):n=r[5],r[6]!==a||r[7]!==n?(i=(0,l.jsx)(tN,{input:a,children:n}),r[6]=a,r[7]=n,r[8]=i):i=r[8],i}function tg(e){let t,n,i,r,a=(0,o.c)(10),{input:s}=e;return s.checkboxes?(a[0]!==s.label?(t=(0,l.jsx)(ta.A.Label,{className:"YamlTemplateContent-module__CheckboxGroup_Label__yneNK",children:s.label}),a[0]=s.label,a[1]=t):t=a[1],a[2]!==s.description?(n=s.description&&(0,l.jsx)(ta.A.Caption,{className:"YamlTemplateContent-module__CheckboxGroup_Caption__IpnLb",children:(0,l.jsx)(ey.vb,{html:s.description})}),a[2]=s.description,a[3]=n):n=a[3],a[4]!==s.checkboxes?(i=s.checkboxes.map(tj),a[4]=s.checkboxes,a[5]=i):i=a[5],a[6]!==t||a[7]!==n||a[8]!==i?(r=(0,l.jsxs)(ta.A,{disabled:!0,className:"YamlTemplateContent-module__CheckboxGroup__D_oRM",children:[t,n,i]}),a[6]=t,a[7]=n,a[8]=i,a[9]=r):r=a[9],r):null}function tj(e,t){return(0,l.jsxs)(ts.A,{disabled:!0,required:e.required,children:[(0,l.jsx)(tc.A,{}),(0,l.jsx)(ts.A.Label,{children:e.label})]},t)}function tv(e){let t,n,i=(0,o.c)(3),{input:r}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(td.Q,{disabled:!0,leadingVisual:ek.UploadIcon,children:"Upload files"}),i[0]=t):t=i[0],i[1]!==r?(n=(0,l.jsx)(tN,{input:r,children:t}),i[1]=r,i[2]=n):n=i[2],n}function tN(e){let t,n,i,r,a=(0,o.c)(12),{children:s,input:c,style:d}=e;return a[0]!==d?(t={marginLeft:"15px",marginRight:"15px",...d},a[0]=d,a[1]=t):t=a[1],a[2]!==c.label?(n=(0,l.jsx)(ts.A.Label,{className:"YamlTemplateContent-module__FormControl_Label__P42WU",children:c.label}),a[2]=c.label,a[3]=n):n=a[3],a[4]!==c.description?(i=c.description&&(0,l.jsx)(ts.A.Caption,{children:(0,l.jsx)(ey.vb,{html:c.description})}),a[4]=c.description,a[5]=i):i=a[5],a[6]!==s||a[7]!==c.required||a[8]!==t||a[9]!==n||a[10]!==i?(r=(0,l.jsxs)(ts.A,{disabled:!0,required:c.required,style:t,children:[n,i,s]}),a[6]=s,a[7]=c.required,a[8]=t,a[9]=n,a[10]=i,a[11]=r):r=a[11],r}tm.displayName="YamlTemplateContent",t_.displayName="MarkdownTableCell",tp.displayName="TemplateInput",tf.displayName="MarkdownInput",tb.displayName="DropdownInput",tx.displayName="InputInput",ty.displayName="TextareaInput",tg.displayName="CheckboxesInput",tv.displayName="UploadInput",tN.displayName="InputWrapper";let tw=(0,v.lazy)(()=>n.e("31917").then(n.bind(n,25308)));tw.displayName="CSVBlob";let tk=(0,v.lazy)(()=>n.e("2375").then(n.bind(n,49242)));function tS(e){let t,n,r,a,s,u,m,h,_=(0,o.c)(32),{setOpenPanel:p,codeNavInfo:f,validCodeNav:b,onCodeNavTokenSelected:x,onLineStickOrUnstick:y,searchResults:g,blobLinesHandle:j,focusedSearchResult:N}=e,C=!!(0,S.O)(),{rawLines:T}=(0,I.$)(),{sendRepoKeyDownEvent:B}=(0,d.T)(),{findInFileShortcut:A}=(0,c.wk)(),L=(0,k.Gj)(),D=(0,X.e)(),{setFindInFileOpen:R}=(0,Q.k)(),F=D===X.y.Code,E=F&&null!=T&&b?A.hotkey:"",P=(0,Z.fY)();_[0]!==F||_[1]!==p?(t=()=>{F||p(void 0)},n=[F,p],_[0]=F,_[1]=p,_[2]=t,_[3]=n):(t=_[2],n=_[3]),(0,v.useEffect)(t,n),_[4]!==B||_[5]!==R||_[6]!==L?(r=function(){R(!0),B("BLOB_FIND_IN_FILE_MENU.OPEN");let e=window.getSelection()?.toString();e&&L(e)},_[4]=B,_[5]=R,_[6]=L,_[7]=r):r=_[7];let $=r,z=!F&&D!==X.y.CSV&&D!==X.y.Markdown,H=D===X.y.Markdown&&"BlobContent-module__blobContentSectionMarkdown__mPLOK",M=z&&"BlobContent-module__blobContentSectionOverflow__PbNqU";_[8]!==H||_[9]!==M?(a=(0,w.$)("BlobContent-module__blobContentSection__VOgZq",H,M),_[8]=H,_[9]=M,_[10]=a):a=_[10];let V=C?"92px":"46px";_[11]!==V?(s={marginTop:V},_[11]=V,_[12]=s):s=_[12];let U=C?void 0:f?.codeSections,W=f?f.lineToSectionMap:void 0;return _[13]!==j||_[14]!==N||_[15]!==x||_[16]!==y||_[17]!==g||_[18]!==W||_[19]!==U||_[20]!==b?(u=(0,l.jsx)(tC,{blobLinesHandle:j,onCodeNavTokenSelected:x,codeSections:U,codeLineToSectionMap:W,validCodeNav:b,onLineStickOrUnstick:y,searchResults:g,focusedSearchResult:N}),_[13]=j,_[14]=N,_[15]=x,_[16]=y,_[17]=g,_[18]=W,_[19]=U,_[20]=b,_[21]=u):u=_[21],_[22]!==P||_[23]!==E||_[24]!==F||_[25]!==$?(m=F&&!P&&(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:E,onButtonClick:$,buttonTestLabel:"hotkey-button"}),_[22]=P,_[23]=E,_[24]=F,_[25]=$,_[26]=m):m=_[26],_[27]!==u||_[28]!==m||_[29]!==a||_[30]!==s?(h=(0,l.jsxs)("section",{"aria-labelledby":"file-name-id-wide file-name-id-mobile",className:a,style:s,children:[u,m]}),_[27]=u,_[28]=m,_[29]=a,_[30]=s,_[31]=h):h=_[31],h}tk.displayName="FileRendererBlob",tS.displayName="BlobContent";let tC=v.memo(function(e){let t=(0,o.c)(33),{onCodeNavTokenSelected:n,codeSections:i,codeLineToSectionMap:r,validCodeNav:a,onLineStickOrUnstick:s,searchResults:c,blobLinesHandle:d,focusedSearchResult:u}=e,m=(0,Y.A)(),h=(0,X.e)();switch(h){case X.y.TooLargeError:{let e,n,o;return t[0]!==m.rawBlobUrl?(e=(0,l.jsx)(K.A,{href:m.rawBlobUrl,children:"View raw"}),t[0]=m.rawBlobUrl,t[1]=e):e=t[1],t[2]!==m.large?(n=m.large&&(0,l.jsx)("p",{children:"(Sorry about that, but we can\u2019t show files that are this big right now.)"}),t[2]=m.large,t[3]=n):n=t[3],t[4]!==e||t[5]!==n?(o=(0,l.jsxs)("div",{className:"BlobContent-module__tooLargeError__n0H_w","data-hpc":!0,children:[e,n]}),t[4]=e,t[5]=n,t[6]=o):o=t[6],o}case X.y.Code:{let e;return t[7]!==d||t[8]!==r||t[9]!==i||t[10]!==u||t[11]!==n||t[12]!==s||t[13]!==c||t[14]!==a?(e=(0,l.jsx)(te,{blobLinesHandle:d,onCodeNavTokenSelected:n,codeSections:i,codeLineToSectionMap:r,validCodeNav:a,onLineStickOrUnstick:s,searchResults:c,focusedSearchResult:u}),t[7]=d,t[8]=r,t[9]=i,t[10]=u,t[11]=n,t[12]=s,t[13]=c,t[14]=a,t[15]=e):e=t[15],e}case X.y.Markdown:{let e;return t[16]!==m.richText?(e=(0,l.jsx)(en,{richText:m.richText,className:"BlobContent-module__markdownBlob__T8jpG"}),t[16]=m.richText,t[17]=e):e=t[17],e}case X.y.CSV:{let e,n;return t[18]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(el.f,{}),t[18]=e):e=t[18],t[19]!==m.csv?(n=(0,l.jsx)(v.Suspense,{fallback:e,children:(0,l.jsx)(tw,{csv:m.csv})}),t[19]=m.csv,t[20]=n):n=t[20],n}case X.y.FileRenderer:{let e,n;return t[21]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(el.f,{}),t[21]=e):e=t[21],t[22]!==m.displayUrl||t[23]!==m.renderedFileInfo.identityUUID||t[24]!==m.renderedFileInfo.renderFileType||t[25]!==m.renderedFileInfo.size?(n=(0,l.jsx)(v.Suspense,{fallback:e,children:(0,l.jsx)(tk,{identityUuid:m.renderedFileInfo.identityUUID,size:m.renderedFileInfo.size,type:m.renderedFileInfo.renderFileType,url:m.displayUrl},m.renderedFileInfo.identityUUID)}),t[22]=m.displayUrl,t[23]=m.renderedFileInfo.identityUUID,t[24]=m.renderedFileInfo.renderFileType,t[25]=m.renderedFileInfo.size,t[26]=n):n=t[26],n}case X.y.Image:{let e;return t[27]!==m.displayName||t[28]!==m.displayUrl?(e=(0,l.jsx)(tt,{displayName:m.displayName,displayUrl:m.displayUrl}),t[27]=m.displayName,t[28]=m.displayUrl,t[29]=e):e=t[29],e}case X.y.IssueTemplate:{let e,n=m.issueTemplate?m.issueTemplate:m.discussionTemplate,o=m.issueTemplate?tu:"discussion";return t[30]!==n||t[31]!==o?(e=(0,l.jsx)(tm,{issueTemplate:n,type:o,"data-hpc":!0}),t[30]=n,t[31]=o,t[32]=e):e=t[32],e}default:(0,J.x)(h)}});tC.displayName="Blob";var tI=n(76071),tT=n(12191),tB=n(9926),tA=n(93607),tL=n(26108),tD=n(78597),tO=n(34019),tR=n(46251),tF=n(7394),tE=n(2733),tP=n(35366),t$=n(97665),tz=n(94747),tH=n(20573);let tM=e=>{let t=(0,t$.jE)(),{mutateAsync:n,...l}=(0,tz.n)({onSuccess:async()=>{t.invalidateQueries({queryKey:tP.O6}),e&&await t.invalidateQueries({queryKey:(0,tP.dp)(e)}),await Promise.all(["starred","user_owned","org_owned","shared_with_user"].map(e=>t.invalidateQueries({queryKey:(0,tP.X_)(e)}))),await t.invalidateQueries({queryKey:tP.Ku})},mutationFn:async t=>{let n=e?(0,tO.fn)(e):"/custom_copilots",l={custom_copilot:{name:t.name,owner_id:t.owner_id,owner_type:t.owner_type,resources_attributes:t.resources?.map(e=>({id:e.databaseId,copilot_chat_attachment_id:e.copilotChatAttachmentId,resource_type:e.type,_destroy:e.markedForDestroy,metadata:(0,tH.M)(e)}))}},o=await (0,tD.lS)(n,{method:e?"PUT":"POST",body:l}),i=await o.json();if(!o.ok)throw i.errorMessages;return i}});return{upsertCopilotSpace:n,...l}};function tV({closeDialog:e,currentFile:t,returnFocusRef:n}){let o=(0,v.useRef)(null),[i,r]=(0,v.useState)(""),[a,s]=(0,v.useState)({}),{upsertCopilotSpace:c,isPending:d}=tM(),[u,h]=(0,v.useState)(null),_=(0,v.useCallback)(e=>h(e),[]),p=(0,v.useCallback)(e=>{let t={...a};for(let n of e)t[n]&&delete t[n];s(t)},[a]),f=async()=>{if(!d)try{let n=[];t&&n.push({id:"",repositoryId:t.repoID,nwo:`${t.repoOwner}/${t.repoName}`,filePath:t.path,sha:t.commitOID,fileExists:!0,type:"github_file",markedForDestroy:!1});let l={name:i,owner_id:u?.id,owner_type:u?.type,resources:n};await c(l),s({}),e(),(0,m.BI)("copilot_spaces.code_view",{target:"COPILOT_SPACES_CODE_VIEW_MENU_SPACE_CREATED"})}catch(e){s(e??{})}},b=()=>{e()};return(0,l.jsx)(e5.l,{position:{narrow:"fullscreen"},title:"Create a new Space",onClose:e,width:"large","aria-label":"Create a new Space",returnFocusRef:n,renderFooter:()=>(0,l.jsx)(tF.m,{onCancel:b,onSave:f,isLoading:d,saveButtonText:"Create"}),children:(0,l.jsx)("form",{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),await f()},children:(0,l.jsxs)(tR.B,{children:[(0,l.jsxs)(ts.A,{children:[(0,l.jsx)(ts.A.Label,{required:!0,children:"Name"}),(0,l.jsx)(ti.A,{ref:o,autoFocus:!0,block:!0,"data-testid":"copilot-space-name-input",name:"copilot-space-name",maxLength:255,value:i,onChange:e=>{r(e.target.value),p(["name","slug"])}}),(0,l.jsxs)(ts.A.Caption,{children:[i.length,"/",255]}),a.name?(0,l.jsx)(ts.A.Validation,{variant:"error",children:(0,l.jsxs)("span",{children:["Name ",a.name]})}):a.slug?(0,l.jsx)(ts.A.Validation,{variant:"error",children:(0,l.jsx)("span",{children:tO.j0})}):null]}),(0,l.jsx)(tE.E,{onSelect:_,repoId:t?.repoID})]})})})}tV.displayName="SpacesSelectionCreateSpaceDialog";var tU=n(39869),tW=n(10506);function tq({repository:e,currentFile:t,onBannerChange:n}){let[o,i]=(0,v.useState)(!1),r=(0,v.useRef)(!1),a=(0,v.useRef)(null),[s,c]=(0,v.useState)(""),[d,u]=(0,v.useState)(""),[h,_]=(0,v.useState)(!1),[p,f]=(0,v.useState)([]),[b,x]=(0,v.useState)([]),[y,g]=(0,v.useState)(!1),[j,N]=(0,v.useState)(!1),[w,k]=(0,v.useState)(void 0),[S,C]=(0,v.useState)(!1),{upsertCopilotSpace:I}=tM(w),T=(0,v.useMemo)(()=>{let e=t.path.split("/").pop()||"",n=e.lastIndexOf("."),l=n>0?e.slice(n+1):"";return""===l||Object.values(tU.r4).some(e=>e.extensions?.includes(`.${l}`))},[t.path]);(0,v.useEffect)(()=>{if(!r.current||!w)return;let e={id:"",repositoryId:t.repoID,nwo:`${t.repoOwner}/${t.repoName}`,filePath:t.path,sha:t.commitOID,fileExists:!0,type:"github_file",markedForDestroy:!1};(async()=>{try{if(await I({resources:[e]}),C(!1),i(!1),n&&w){let e=(0,tO.Cb)({id:w.id,owner:w.owner});n({variant:"success",onDismiss:()=>n(null),title:"none",description:(0,l.jsxs)(l.Fragment,{children:["File added to"," ",(0,l.jsx)(K.A,{href:e,inline:!0,children:w.name})," ","successfully"]}),hideTitle:!0,style:{marginBottom:"16px"}})}c(""),u(""),setTimeout(()=>(0,e3.i)(`File added to ${w.name} successfully.`),250)}catch{C(!0),n&&(n({variant:"critical",onDismiss:()=>n(null),title:"none",description:"There was an error adding the file to the space.",hideTitle:!0,style:{marginBottom:"16px"}}),setTimeout(()=>(0,e3.i)("There was an error adding the file to the space"),250))}finally{r.current=!1}})()},[w,I,t,n]);let B=(0,v.useCallback)(async()=>{try{let t=new URLSearchParams({q:d,owner:e.private?e.ownerLogin:"",editable_only:"true"}),n=await (0,tD.lS)(`/github-copilot/chat/custom_copilots/search?${t.toString()}`);if(!n.ok)throw Error("Failed to fetch spaces");return await n.json()}catch{return[]}},[d,e.private,e.ownerLogin]),A=(0,v.useCallback)(()=>{let t=tW.Jt.getLastSelectedSpace(),n=b;if(t){if(t.ownerIsOrg&&t.owner!==e.ownerLogin&&e.private){tW.Jt.setLastSelectedSpace(void 0),f(b);return}(n=n.filter(e=>e.id!==t.id||e.owner!==t.owner)).length===b.length&&n.pop(),n=[t,...n]}f(n)},[b,e.ownerLogin,e.private]);(0,v.useEffect)(()=>{let e=!1;return(async()=>{if(!1===o)return;if(_(!0),""===d&&y){e||(A(),_(!1));return}let t=await B();e||(f(t),y||(x(t),g(!0)),_(!1))})(),()=>{e=!0}},[B,d,y,o,A]),(0,v.useEffect)(()=>()=>{O.current&&clearTimeout(O.current)},[]);let L=p.map(e=>({id:`${e.owner}-${e.id}`,key:`${e.owner}-${e.id}`,text:e.name,description:e.owner,descriptionVariant:"inline",value:`${e.owner}-${e.id}`,trailingVisual:e.starred?()=>(0,l.jsx)(ek.StarFillIcon,{className:"SpacesSelectionMenu-module__starButton__jfA3O"}):void 0})),D=()=>{N(!0),(0,m.BI)("copilot_spaces.code_view",{target:"COPILOT_SPACES_CODE_VIEW_MENU_CREATE_SPACE_CLICKED"}),i(!1)},O=(0,v.useRef)(null);return T?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tA.X,{title:"Select a space",onCancel:()=>i(!1),anchorRef:a,renderAnchor:e=>(0,l.jsx)(tL.K,{icon:ek.SpaceIcon,size:"small","aria-label":"Add to space",tooltipDirection:"n",...e}),open:o,onOpenChange:e=>{!e&&(S||r.current)||(i(e),e?((0,m.BI)("copilot_spaces.code_view",{target:"COPILOT_SPACES_CODE_VIEW_MENU_OPENED"}),C(!1)):(c(""),u("")))},loading:h,items:L,filterValue:s,onFilterChange:e=>{c(e),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{u(e)},350)},...{selected:void 0,onSelectedChange:e=>{let t;return C(!1),void(k(t=p.find(t=>`${t.owner}-${t.id}`===e?.id)),tW.Jt.setLastSelectedSpace(t),r.current=!0,(0,m.BI)("copilot_spaces.code_view",{target:"COPILOT_SPACES_CODE_VIEW_MENU_SPACE_SELECTED"}))}},overlayProps:{height:"auto",width:"large"},message:0!==p.length||h?void 0:{title:"No spaces found",body:"You can create a new space to get started.",variant:"empty",action:(0,l.jsx)(td.Q,{variant:"default",size:"small",leadingVisual:ek.PlusIcon,onClick:D,children:"Create a new space"})},secondaryAction:p.length>0?(0,l.jsx)(tA.X.SecondaryActionButton,{onClick:D,children:"Create a space"}):void 0}),j&&(0,l.jsx)(tV,{closeDialog:()=>N(!1),currentFile:t,returnFocusRef:a})]}):null}tq.displayName="SpacesSelectionMenu";var tG=n(99637),tK=n(73537),tQ=n(32442),tY=n(14350),tX=n(40914),tZ=n(78919),tJ=n(75238),t0=n(47819),t1=n(73077),t2=n(17430),t3=n(81634);function t4(e){let t,n,i,r,a=(0,o.c)(8);a[0]!==e?({disabled:t,...n}=e,a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==t?(i=t?{"aria-disabled":!0,onClick:t5}:{},a[3]=t,a[4]=i):i=a[4];let s=i;return a[5]!==s||a[6]!==n?(r=(0,l.jsx)(tL.K,{size:"small",...n,...s}),a[5]=s,a[6]=n,a[7]=r):r=a[7],r}function t5(e){return e.preventDefault()}t4.displayName="AccessibleIconButton";var t6=n(4925),t8=n(10095);let t7="FindInFilePopover-module__navButton__cAdJg",t9=(0,v.lazy)(()=>n.e("88185").then(n.bind(n,43008)));function ne(e){let t,n,r,a,s,u,m,h,_,p,f,b,x,y,g,j,N,S,C,I,T,B,A,L,D,F,E,P,$,z,H,M=(0,o.c)(88),{stickied:V,searchResults:U,focusedSearchResult:W,setFocusedSearchResult:q,onClose:G}=e,K=(0,k.w0)(),Q=(0,k.Gj)(),Y=(0,Z.fY)(),X=(0,v.useRef)(null),{findInFileShortcut:J,findSelectionShortcut:ee,findNextShortcut:et,findPrevShortcut:en}=(0,c.wk)(),[el,eo]=(0,v.useState)(!0);M[0]!==q||M[1]!==Q?(t=()=>{Q(""),q(0)},M[0]=q,M[1]=Q,M[2]=t):t=M[2];let ei=t,{sendRepoKeyDownEvent:er}=(0,d.T)();M[3]!==ei||M[4]!==W||M[5]!==q||M[6]!==Q?(n=e=>{e.target.value?(eo(!1),Q(e.target.value),void 0===W&&q(0)):(eo(!0),ei())},M[3]=ei,M[4]=W,M[5]=q,M[6]=Q,M[7]=n):n=M[7];let ea=n;M[8]!==W||M[9]!==U.length||M[10]!==q?(r=e=>{void 0===W?q(0):1===e?q(W===U.length-1?0:W+1):q(0===W?U.length-1:W-1)},M[8]=W,M[9]=U.length,M[10]=q,M[11]=r):r=M[11];let es=r;M[12]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{X.current?.focus(),X.current?.select()},s=[],M[12]=a,M[13]=s):(a=M[12],s=M[13]),(0,v.useEffect)(a,s),M[14]!==er||M[15]!==q||M[16]!==Q?(u=()=>{let e=window.getSelection()?.toString();e?.length&&(Q(e),q(0),er("BLOB_FIND_IN_FILE_MENU.FIND_IN_FILE_FROM_SELECTION")),X.current?.focus(),X.current?.select()},M[14]=er,M[15]=q,M[16]=Q,M[17]=u):u=M[17];let ec=u;if(M[18]!==W||M[19]!==U?(m=()=>{U.length>0&&void 0!==W&&(0,R.f)({line:U[W].lineNumber,column:U[W].ident.start.column})},h=[U,W],M[18]=W,M[19]=U,M[20]=m,M[21]=h):(m=M[20],h=M[21]),(0,v.useEffect)(m,h),Y)return null;let ed=`find-in-file-popover ${V?"find-in-file-popover-stickied":"find-in-file-popover-not-stickied"}`;M[22]===Symbol.for("react.memo_cache_sentinel")?(_=(0,l.jsx)("h5",{className:"FindInFilePopover-module__findHeading__xcCg1",children:"Find"}),M[22]=_):_=M[22];let eu=!el&&"FindInFilePopover-module__helpTextHidden__YBz7i";M[23]!==eu?(p=(0,w.$)("find-text-help-tooltip","FindInFilePopover-module__helpText__f5Ax5",eu),M[23]=eu,M[24]=p):p=M[24],M[25]!==J.text?(f=(0,l.jsx)(t6.A,{children:J.text}),M[25]=J.text,M[26]=f):f=M[26],M[27]!==p||M[28]!==f?(b=(0,l.jsxs)("div",{className:"FindInFilePopover-module__headerLeft__YPbKX",children:[_,(0,l.jsxs)("span",{className:p,children:["Press ",f," again to open the browser's find menu"]})]}),M[27]=p,M[28]=f,M[29]=b):b=M[29],M[30]===Symbol.for("react.memo_cache_sentinel")?(x=(0,l.jsx)("div",{className:"FindInFilePopover-module__spacer__oMai4"}),M[30]=x):x=M[30],M[31]!==G?(y=(0,l.jsx)(tL.K,{variant:"invisible",size:"small",onClick:G,icon:ek.XIcon,className:"FindInFilePopover-module__closeButton__lJ8N4","aria-label":"Close find in file"}),M[31]=G,M[32]=y):y=M[32],M[33]!==b||M[34]!==y?(g=(0,l.jsxs)("div",{className:"FindInFilePopover-module__headerRow__hRqzN",children:[b,x,y]}),M[33]=b,M[34]=y,M[35]=g):g=M[35];let em=U.length>1e3?"error":void 0;M[36]===Symbol.for("react.memo_cache_sentinel")?(j=(0,w.$)("text-small","FindInFilePopover-module__resultCount__waFJv"),M[36]=j):j=M[36];let eh=0===U.length||void 0===W?0:W+1;return M[37]!==U.length||M[38]!==eh?(N=(0,l.jsxs)("span",{className:j,children:[eh,"/",U.length]}),M[37]=U.length,M[38]=eh,M[39]=N):N=M[39],M[40]!==es?(S=(0,l.jsx)(tL.K,{size:"small",variant:"invisible",onClick:()=>{es(-1)},icon:ek.ChevronUpIcon,"aria-label":"Up","data-testid":"up-search",className:t7}),M[40]=es,M[41]=S):S=M[41],M[42]!==es?(C=(0,l.jsx)(tL.K,{size:"small",variant:"invisible",onClick:()=>{es(1)},icon:ek.ChevronDownIcon,"aria-label":"Down","data-testid":"down-search",className:t7}),M[42]=es,M[43]=C):C=M[43],M[44]!==N||M[45]!==S||M[46]!==C?(I=(0,l.jsxs)("div",{className:"FindInFilePopover-module__trailingActions__QxKQY",children:[N,S,C]}),M[44]=N,M[45]=S,M[46]=C,M[47]=I):I=M[47],M[48]!==el||M[49]!==es||M[50]!==G||M[51]!==er?(T=e=>{"Enter"===e.code||"NumpadEnter"===e.code?e.shiftKey?es(-1):es(1):(e.metaKey||e.ctrlKey)&&("g"===e.key||"G"===e.key)?(e.preventDefault(),e.shiftKey?es(-1):es(1)):(e.metaKey||e.ctrlKey)&&("f"===e.key||"F"===e.key)?el?(er("BLOB_FIND_IN_FILE_MENU.FALLBACK_TO_BROWSER_SEARCH"),G()):(eo(!0),e.preventDefault(),X.current?.focus(),X.current?.select()):"Escape"===e.key&&G()},M[48]=el,M[49]=es,M[50]=G,M[51]=er,M[52]=T):T=M[52],M[53]!==ea||M[54]!==K||M[55]!==em||M[56]!==I||M[57]!==T?(B=(0,l.jsx)(ti.A,{ref:X,className:"FindInFilePopover-module__textInput__OCfSS",validationStatus:em,type:"text",leadingVisual:nt,"aria-labelledby":"find-in-file-label","aria-expanded":"true",autoComplete:"off",name:"Find in file input",placeholder:"Search this file",value:K,block:!0,onChange:ea,trailingAction:I,onKeyDown:T}),M[53]=ea,M[54]=K,M[55]=em,M[56]=I,M[57]=T,M[58]=B):B=M[58],M[59]!==J.hotkey||M[60]!==ec?(A=(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:J.hotkey,onButtonClick:ec,buttonTestLabel:"hotkey-button"}),M[59]=J.hotkey,M[60]=ec,M[61]=A):A=M[61],M[62]!==ee.hotkey||M[63]!==ec?(L=(0,l.jsx)("button",{hidden:!0,"data-hotkey":ee.hotkey,onClick:ec,"data-testid":"selection-hotkey"}),M[62]=ee.hotkey,M[63]=ec,M[64]=L):L=M[64],M[65]!==es?(D=()=>es(1),M[65]=es,M[66]=D):D=M[66],M[67]!==et.hotkey||M[68]!==D?(F=(0,l.jsx)("button",{hidden:!0,"data-hotkey":et.hotkey,onClick:D,"data-testid":"find-next-button"}),M[67]=et.hotkey,M[68]=D,M[69]=F):F=M[69],M[70]!==es?(E=()=>es(-1),M[70]=es,M[71]=E):E=M[71],M[72]!==en.hotkey||M[73]!==E?(P=(0,l.jsx)("button",{hidden:!0,"data-hotkey":en.hotkey,onClick:E,"data-testid":"find-prev-button"}),M[72]=en.hotkey,M[73]=E,M[74]=P):P=M[74],M[75]!==U?($=(0,l.jsx)(v.Suspense,{fallback:null,children:(0,l.jsx)(t9,{definitionsOrReferences:U})}),M[75]=U,M[76]=$):$=M[76],M[77]!==B||M[78]!==A||M[79]!==L||M[80]!==F||M[81]!==P||M[82]!==$?(z=(0,l.jsxs)("div",{className:"FindInFilePopover-module__inputWrapper__esIpf",children:[B,A,L,F,P,$]}),M[77]=B,M[78]=A,M[79]=L,M[80]=F,M[81]=P,M[82]=$,M[83]=z):z=M[83],M[84]!==g||M[85]!==z||M[86]!==ed?(H=(0,l.jsxs)("div",{className:ed,children:[g,z]}),M[84]=g,M[85]=z,M[86]=ed,M[87]=H):H=M[87],H}function nt(){return(0,l.jsx)(t8.A,{icon:ek.SearchIcon,"aria-hidden":"true"})}t9.displayName="ScrollMarks",ne.displayName="FindInFilePopover";var nn=n(94348),nl=n(53035),no=n(12939),ni=n(51705),nr=n(7771),na=n(39775),ns=n(46360);function nc(e){let t,n=(0,o.c)(3),{showTitle:i}=e,r=void 0===i||i,a=(0,nl.E)();return n[0]!==a||n[1]!==r?(t=a?(0,l.jsx)(nu,{showTitle:r}):(0,l.jsx)(nd,{showTitle:r}),n[0]=a,n[1]=r,n[2]=t):t=n[2],t}function nd(e){let t,n=(0,o.c)(5),{showTitle:i}=e,r=(0,B.t)(),a=(0,s.l)(),c=(0,b.z)(),{contributors:d,loading:u,error:m}=(0,no.u)(r.ownerLogin,r.name,c.name,a);return n[0]!==d||n[1]!==m||n[2]!==u||n[3]!==i?(t=(0,l.jsx)(nm,{showTitle:i,contributors:d,loading:u,error:m}),n[0]=d,n[1]=m,n[2]=u,n[3]=i,n[4]=t):t=n[4],t}function nu(e){let t,n=(0,o.c)(5),{showTitle:i}=e,{contributors:r,loading:a,error:s}=(0,ns.P)(),c=!!s;return n[0]!==r||n[1]!==a||n[2]!==i||n[3]!==c?(t=(0,l.jsx)(nm,{showTitle:i,contributors:r,loading:a,error:c}),n[0]=r,n[1]=a,n[2]=i,n[3]=c,n[4]=t):t=n[4],t}function nm(e){let t,n,i,r,a,s,c,u,m,h,_=(0,o.c)(32),{showTitle:p,contributors:f,loading:b,error:x}=e,y=void 0===p||p,{sendRepoClickEvent:g}=(0,d.T)(),[j,N]=(0,v.useState)(!1),k=(0,ef.yY)();if(x){let e;return _[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(nf,{}),_[0]=e):e=_[0],e}if(b){let e;return _[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(nn.r,{width:100,"data-testid":"contributors-skeleton"}),_[1]=e):e=_[1],e}if(!f||!f?.users.length)return null;let{users:S,totalCount:C}=f;_[2]!==C?(t=np(C," contributor","contributors"),_[2]=C,_[3]=t):t=_[3];let I=t;if(_[4]!==k||_[5]!==S){let e;_[7]!==k?(e=(e,t)=>(0,l.jsx)(ep.r,{className:t>5?"AvatarShowLarge":"AvatarShowMedium",src:e.primaryAvatarUrl,alt:e.login,"data-testid":"contributor-avatar",...k("user",{login:e.login})},e.login),_[7]=k,_[8]=e):e=_[8],n=S.slice(0,10).map(e),_[4]=k,_[5]=S,_[6]=n}else n=_[6];_[9]!==n?(i=(0,l.jsx)("div",{className:"Contributors-module__avatarStackWrapper__Q1DTQ",children:(0,l.jsx)(ni.A,{children:n})}),_[9]=n,_[10]=i):i=_[10];let T=`Show ${I}"`;return _[11]!==g?(r=()=>{N(!0),g("CONTRIBUTORS.LIST.OPEN")},_[11]=g,_[12]=r):r=_[12],_[13]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(t8.A,{icon:ek.PeopleIcon}),_[13]=a):a=_[13],_[14]!==y?(s=y&&(0,l.jsx)("span",{className:(0,w.$)("react-contributors-title","Contributors-module__contributorsTitle__QsBTp"),children:"Contributors"}),_[14]=y,_[15]=s):s=_[15],_[16]!==C?(c=(0,l.jsx)(nr.A,{className:"Contributors-module__counterLabel__UiObH",children:C}),_[16]=C,_[17]=c):c=_[17],_[18]!==T||_[19]!==r||_[20]!==s||_[21]!==c?(u=(0,l.jsxs)(K.A,{as:"button","aria-label":T,onClick:r,"data-testid":"contributors-count-button",className:"Contributors-module__contributorsButton__N6BTf",children:[a,s,c]}),_[18]=T,_[19]=r,_[20]=s,_[21]=c,_[22]=u):u=_[22],_[23]!==f.totalCount||_[24]!==I||_[25]!==j||_[26]!==S?(m=j&&(0,l.jsx)(e5.l,{title:I,onClose:()=>N(!1),width:"medium",height:f.totalCount>=12?"small":"auto",renderBody:()=>(0,l.jsx)(to.l,{className:"Contributors-module__contributorDialogList__IqQSq","data-testid":"contributor-dialog-list",children:S.map(nh)})}),_[23]=f.totalCount,_[24]=I,_[25]=j,_[26]=S,_[27]=m):m=_[27],_[28]!==u||_[29]!==m||_[30]!==i?(h=(0,l.jsxs)("div",{className:"Contributors-module__contributorsRow__Knve2",children:[i,u,m]}),_[28]=u,_[29]=m,_[30]=i,_[31]=h):h=_[31],h}function nh(e){return(0,l.jsx)(n_,{user:e},e.login)}function n_(e){let t,n,i,r,a,c,u,m,h,_,p,f=(0,o.c)(34),{user:x}=e,{sendRepoClickEvent:y}=(0,d.T)(),g=(0,s.l)(),j=(0,b.z)(),v=(0,B.t)();f[0]!==y?(t=()=>y("CONTRIBUTORS.LIST.USER"),f[0]=y,f[1]=t):t=f[1],f[2]!==y?(n=()=>y("CONTRIBUTORS.LIST.USER"),f[2]=y,f[3]=n):n=f[3],f[4]!==x.login||f[5]!==x.primaryAvatarUrl?(i=(0,l.jsx)(ep.r,{src:x.primaryAvatarUrl,alt:x.login,className:"Contributors-module__contributorAvatar__t3rP1","aria-hidden":"true"}),f[4]=x.login,f[5]=x.primaryAvatarUrl,f[6]=i):i=f[6],f[7]!==x.login?(r=(0,l.jsx)(na.A,{inline:!0,title:x.login,children:x.login}),f[7]=x.login,f[8]=r):r=f[8],f[9]!==n||f[10]!==i||f[11]!==r||f[12]!==x.profileLink?(a=(0,l.jsxs)(K.A,{as:ex.N,className:"Contributors-module__contributorLink__qFXnI",muted:!0,to:x.profileLink,onClick:n,children:[i,r]}),f[9]=n,f[10]=i,f[11]=r,f[12]=x.profileLink,f[13]=a):a=f[13],f[14]!==g||f[15]!==j.name||f[16]!==v||f[17]!==x.login?(c=(0,eb.MtY)({repo:v,branch:j.name,path:g,author:x.login}),f[14]=g,f[15]=j.name,f[16]=v,f[17]=x.login,f[18]=c):c=f[18],f[19]!==y?(u=()=>y("CONTRIBUTORS.LIST.COMMITS"),f[19]=y,f[20]=u):u=f[20],f[21]!==x.commitsCount?(m=np(x.commitsCount,"commit","commits"),f[21]=x.commitsCount,f[22]=m):m=f[22];let N=`${m} by ${x.login}`;return f[23]!==x.commitsCount?(h=np(x.commitsCount,"commit","commits"),f[23]=x.commitsCount,f[24]=h):h=f[24],f[25]!==h||f[26]!==c||f[27]!==u||f[28]!==N?(_=(0,l.jsx)(to.l.TrailingVisual,{children:(0,l.jsx)(K.A,{as:ex.N,muted:!0,to:c,onClick:u,"aria-label":N,"data-testid":"commit-link",children:h})}),f[25]=h,f[26]=c,f[27]=u,f[28]=N,f[29]=_):_=f[29],f[30]!==t||f[31]!==_||f[32]!==a?(p=(0,l.jsxs)(to.l.Item,{className:"Contributors-module__contributorRow__gkKq0","data-testid":"contributor-dialog-row",onSelect:t,children:[a,_]}),f[30]=t,f[31]=_,f[32]=a,f[33]=p):p=f[33],p}function np(e,t,n){return`${e} ${1===e?t:n}`}function nf(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsxs)("span",{className:"Contributors-module__errorText__MS2kT",children:[(0,l.jsx)(t8.A,{icon:ek.AlertFillIcon}),"\xa0Cannot retrieve contributors info at this time."]}),t[0]=e):e=t[0],e}nc.displayName="ContributorAvatars",nd.displayName="ContributorAvatarsWithHook",nu.displayName="ContributorAvatarsWithProvider",nm.displayName="ContributorAvatarsInternal",n_.displayName="ContributorRow",nf.displayName="ContributorsError";var nb=n(14967);let nx=v.memo(ny);function ny(){let e,t,n,i,r=(0,o.c)(6),a=function(){let e=(0,o.c)(2),{resolvedColorScheme:t}=(0,eg.DP)();if(t?.startsWith("dark")){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Array(10).fill(null).map(ew),e[0]=t):t=e[0],t}{let t;return e[1]===Symbol.for("react.memo_cache_sentinel")?(t=Array(10).fill(null).map(eN),e[1]=t):t=e[1],t}}();return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("span",{className:"BlameAgeLegend-module__Text__I2ym9",children:"Older"}),r[0]=e):e=r[0],r[1]!==a?(t=a.map(ng),r[1]=a,r[2]=t):t=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)("span",{className:"BlameAgeLegend-module__Text_1__OmU21",children:"Newer"}),r[3]=n):n=r[3],r[4]!==t?(i=(0,l.jsxs)("div",{"aria-hidden":!0,className:"BlameAgeLegend-module__Box__B4W67",children:[e,t,n]}),r[4]=t,r[5]=i):i=r[5],i}function ng(e,t){return(0,l.jsx)("div",{style:{backgroundColor:e},className:"BlameAgeLegend-module__Box_1__NJDCG"},`blame-recency-color-${t}`)}ny.displayName="BlameAgeLegend";var nj=n(89823);function nv(){let e,t,n,r,a,s,d,u,m,h,_,p,f,b,x,y,g=(0,o.c)(52),{headerInfo:j,renderedFileInfo:N,image:w,isIssueTemplate:k,isDiscussionTemplate:C,viewable:I}=(0,Y.A)(),{isCSV:T,isRichtext:B,shortPath:A}=j,L=(0,S.O)(),[R]=(0,D.ok)(),F="1"===R.get("plain")||!!R.get("short_path")?.length,E=N&&!I||w,P=B||k||C||T||N,$=N?`short_path=${A}`:"plain=1",{getUrl:z}=(0,tT.Z)(),H=!P||F||L?L?2:1:0,[M,V]=(0,v.useState)(H);g[0]!==H?(e=()=>{V(H)},t=[H],g[0]=H,g[1]=e,g[2]=t):(e=g[1],t=g[2]),(0,v.useLayoutEffect)(e,t);let U=(0,D.Zp)(),{viewCodeShortcut:W,viewPreviewShortcut:q,viewBlameShortcut:G}=(0,c.wk)();g[3]!==z||g[4]!==P||g[5]!==U||g[6]!==$||g[7]!==M?(n=e=>{if(P||(e+=1),V(e),M!==e)switch(e){case 0:U(z({action:"blob",params:"",hash:""}));break;case 1:U(z({action:"blob",params:P?$:"",hash:location.hash?.substring(1)??void 0}));break;case 2:U(z({action:"blame",params:"",hash:location.hash?.substring(1)??void 0}))}},g[3]=z,g[4]=P,g[5]=U,g[6]=$,g[7]=M,g[8]=n):n=g[8];let K=n;if(E)return null;let Q=1===M;g[9]!==Q||g[10]!==W.hotkey?(r=(0,l.jsx)(nj.I.Button,{selected:Q,"data-hotkey":W.hotkey,children:"Code"},"raw"),g[9]=Q,g[10]=W.hotkey,g[11]=r):r=g[11];let X=2===M;g[12]!==X||g[13]!==G.hotkey?(a=(0,l.jsx)(nj.I.Button,{selected:X,"data-hotkey":G.hotkey,children:"Blame"},"blame"),g[12]=X,g[13]=G.hotkey,g[14]=a):a=g[14],g[15]!==r||g[16]!==a?(s=[r,a],g[15]=r,g[16]=a,g[17]=s):s=g[17];let Z=s,J=0===M;g[18]!==J||g[19]!==q.hotkey?(d=(0,l.jsx)(nj.I.Button,{selected:J,"data-hotkey":q.hotkey,children:"Preview"},"preview'"),g[18]=J,g[19]=q.hotkey,g[20]=d):d=g[20];let ee=d;g[21]!==K||g[22]!==P?(u=()=>(0,v.startTransition)(()=>K(+!!P)),g[21]=K,g[22]=P,g[23]=u):u=g[23],g[24]!==u||g[25]!==W.hotkey?(m=(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:W.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:u}),g[24]=u,g[25]=W.hotkey,g[26]=m):m=g[26],g[27]!==K||g[28]!==P?(h=()=>(0,v.startTransition)(()=>K(P?2:1)),g[27]=K,g[28]=P,g[29]=h):h=g[29],g[30]!==h||g[31]!==G.hotkey?(_=(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:G.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:h}),g[30]=h,g[31]=G.hotkey,g[32]=_):_=g[32],g[33]!==K||g[34]!==P||g[35]!==q.hotkey?(p=P&&(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:q.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,v.startTransition)(()=>K(0))}),g[33]=K,g[34]=P,g[35]=q.hotkey,g[36]=p):p=g[36],g[37]!==m||g[38]!==_||g[39]!==p?(f=(0,l.jsxs)(l.Fragment,{children:[m,_,p]}),g[37]=m,g[38]=_,g[39]=p,g[40]=f):f=g[40];let et=f;g[41]!==Z||g[42]!==E||g[43]!==P||g[44]!==ee?(b=P?E?[ee]:[ee,...Z]:[...Z],g[41]=Z,g[42]=E,g[43]=P,g[44]=ee,g[45]=b):b=g[45];let en=b;return g[46]!==en||g[47]!==K?(x=(0,l.jsx)(nj.I,{"aria-label":"File view",size:"small",onChange:K,className:"BlobTabButtons-module__SegmentedControl__jen2u",children:en}),g[46]=en,g[47]=K,g[48]=x):x=g[48],g[49]!==et||g[50]!==x?(y=(0,l.jsxs)(l.Fragment,{children:[x,et]}),g[49]=et,g[50]=x,g[51]=y):y=g[51],y}nv.displayName="BlobTabButtons";var nN=n(4978),nw=n(61968);let nk="CodeSizeDetails-module__Text__k8GnB",nS="CodeSizeDetails-module__codeOwnerAccent__CHusQ";function nC(e){let t,n,i,r,a,c,d,u,m,h=(0,o.c)(33),{className:_}=e,{codeownerInfo:p}=(0,nw.Y_)(),{helpUrl:x}=(0,f.s)(),y=(0,Y.A)(),{rawLines:g}=(0,I.$)(),j=(0,s.l)(),v=(0,b.z)(),N=(0,B.t)(),k=(0,S.O)(),{headerInfo:C,viewable:T}=y,{blobSize:A,isGitLfs:L,lineInfo:D,mode:O}=C,{truncatedLoc:R,truncatedSloc:F}=D;h[0]!==k||h[1]!==O||h[2]!==j||h[3]!==g||h[4]!==v||h[5]!==N?(t="symbolic link"===O?function({rawLines:e,blame:t,repo:n,refInfo:l,path:o}){if(!e||!e[0])return null;let i=e[0];i.startsWith("/")||/^[a-zA-Z]:\\/.test(i)||(i=`${o}/../${i}`);let r={owner:n.ownerLogin,repo:n.name,commitish:l.name,filePath:i};return t?(0,eb.buO)(r):(0,eb.nD_)(r)}({rawLines:g,blame:k,repo:N,refInfo:v,path:j}):void 0,h[0]=k,h[1]=O,h[2]=j,h[3]=g,h[4]=v,h[5]=N,h[6]=t):t=h[6];let E=t;return h[7]!==_?(n=(0,w.$)(_,"CodeSizeDetails-module__Box__VcD6l"),h[7]=_,h[8]=n):n=h[8],h[9]===Symbol.for("react.memo_cache_sentinel")?(i=(0,w.$)("text-mono","CodeSizeDetails-module__Box_1__GVxQL"),h[9]=i):i=h[9],h[10]!==O||h[11]!==E||h[12]!==T?(r="file"!==O&&!E&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(na.A,{title:O,inline:!0,className:"CodeSizeDetails-module__Truncate__Ttm43",children:(0,l.jsx)("span",{children:O})}),T&&(0,l.jsx)("span",{className:nk,children:"\xb7"})]}),h[10]=O,h[11]=E,h[12]=T,h[13]=r):r=h[13],h[14]!==A||h[15]!==E||h[16]!==R||h[17]!==F||h[18]!==T?(a=T?(0,l.jsxs)(l.Fragment,{children:[E&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(K.A,{as:ex.N,muted:!0,to:E,className:"CodeSizeDetails-module__PrimerLink__vIZVf",children:"Symbolic Link"}),(0,l.jsx)("span",{className:nk,children:"\xb7"})]}),(0,l.jsx)(na.A,{maxWidth:"100%",title:A,inline:!0,"data-testid":"blob-size",className:"CodeSizeDetails-module__Truncate_1__lE93V",children:(0,l.jsx)("span",{children:`${R} lines (${F} loc) \xb7 ${A}`})})]}):(0,l.jsx)("span",{children:A}),h[14]=A,h[15]=E,h[16]=R,h[17]=F,h[18]=T,h[19]=a):a=h[19],h[20]!==p?(c=p&&(0,l.jsx)(nI,{codeownerInfo:p}),h[20]=p,h[21]=c):c=h[21],h[22]!==x||h[23]!==L?(d=L&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"file-info-divider"}),(0,l.jsx)(K.A,{muted:!0,href:`${x}/articles/versioning-large-files/`,"aria-label":"Learn more about Git LFS",className:"CodeSizeDetails-module__PrimerLink_1__BAlVW",children:(0,l.jsx)(t8.A,{icon:ek.QuestionIcon})}),(0,l.jsx)("span",{children:" Stored with Git LFS"})]}),h[22]=x,h[23]=L,h[24]=d):d=h[24],h[25]!==r||h[26]!==a||h[27]!==c||h[28]!==d?(u=(0,l.jsxs)("div",{className:i,children:[r,a,c,d]}),h[25]=r,h[26]=a,h[27]=c,h[28]=d,h[29]=u):u=h[29],h[30]!==u||h[31]!==n?(m=(0,l.jsx)("div",{className:n,children:u}),h[30]=u,h[31]=n,h[32]=m):m=h[32],m}function nI(e){var t,n,i;let r,a,s,c,d,u=(0,o.c)(11),{codeownerInfo:m}=e,{codeownerPath:h,ownedByCurrentUser:_,ownersForFile:p,ruleForPathLine:f}=m;if(!(_||p))return null;u[0]!==_||u[1]!==p||u[2]!==f?(t=_,n=p,i=f,r="Owned by ",t&&(r+="you",n&&(r+=" along with ")),r+=n,i&&(r+=` (from CODEOWNERS line ${i})`),a=r,u[0]=_,u[1]=p,u[2]=f,u[3]=a):a=u[3];let b=a;return u[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)("span",{className:"CodeSizeDetails-module__Text_1__gnzKX",children:" \xb7 "}),u[4]=s):s=u[4],u[5]!==h||u[6]!==_?(c=h?(0,l.jsx)(K.A,{"aria-labelledby":"codeowners-tooltip",href:h,muted:!_,className:_?nS:void 0,children:(0,l.jsx)(t8.A,{icon:ek.ShieldLockIcon})}):(0,l.jsx)(t8.A,{icon:ek.ShieldLockIcon,className:_?nS:void 0}),u[5]=h,u[6]=_,u[7]=c):c=u[7],u[8]!==c||u[9]!==b?(d=(0,l.jsxs)(l.Fragment,{children:[s,(0,l.jsx)(nN.A,{id:"codeowners-tooltip","aria-label":b,wrap:!0,className:"CodeSizeDetails-module__Tooltip__bZZyY",children:c})]}),u[8]=c,u[9]=b,u[10]=d):d=u[10],d}nC.displayName="CodeSizeDetails",nI.displayName="CodeOwnersBadge";var nT=n(69184),nB=n(15393);function nA(e){let t,n,i,r,a,s=(0,o.c)(15),{editEnabled:u,githubDevUrl:m,ghDesktopPath:h,onBranch:_}=e,{sendRepoClickEvent:p}=(0,d.T)();s[0]===Symbol.for("react.memo_cache_sentinel")?(t=["windows","mac"],s[0]=t):t=s[0];let f=(0,nB.X)(t),{openWithGitHubDevShortcut:b}=(0,c.wk)();return s[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(to.l.GroupHeading,{children:"Open with..."}),s[1]=n):n=s[1],s[2]!==u||s[3]!==m||s[4]!==b||s[5]!==p?(i=m?(0,l.jsxs)(to.l.LinkItem,{onClick:()=>p("BLOB_EDIT_DROPDOWN.DEV_LINK",{edit_enabled:u}),className:"js-blob-dropdown-click js-github-dev-shortcut",href:m,"data-hotkey":b.hotkey,children:["github.dev",(0,l.jsx)(to.l.TrailingVisual,{"aria-hidden":"true",children:(0,l.jsx)(nT.E,{children:(0,l.jsx)("kbd",{children:"."})})})]}):null,s[2]=u,s[3]=m,s[4]=b,s[5]=p,s[6]=i):i=s[6],s[7]!==h||s[8]!==f||s[9]!==_||s[10]!==p?(r=_&&f&&h?(0,l.jsx)(to.l.LinkItem,{onClick:()=>p("BLOB_EDIT_DROPDOWN.DESKTOP"),href:h,children:"GitHub Desktop"}):null,s[7]=h,s[8]=f,s[9]=_,s[10]=p,s[11]=r):r=s[11],s[12]!==i||s[13]!==r?(a=(0,l.jsxs)(to.l.Group,{children:[n,i,r]}),s[12]=i,s[13]=r,s[14]=a):a=s[14],a}function nL(e,t,n){let l,i=(0,o.c)(1);i[0]===Symbol.for("react.memo_cache_sentinel")?(l=["windows","mac"],i[0]=l):l=i[0];let r=(0,nB.X)(l);return!!(e||t&&r&&n)}function nD(e){let t,n,i,r,a=(0,o.c)(19),{editAllowed:s,hasOpenWithItem:c}=e,u=(0,Y.A)(),{name:m}=(0,b.z)(),{canEdit:h,canEditOnDefaultBranch:_}=(0,e0.M)(),{githubDevUrl:p}=(0,f.s)(),{sendRepoClickEvent:x}=(0,d.T)(),{getUrl:y}=(0,tT.Z)(),{defaultBranch:g}=(0,B.t)(),{headerInfo:j}=u,{ghDesktopPath:v,onBranch:N}=j,w=m===g,k=!!_&&!w;return a[0]!==g||a[1]!==s||a[2]!==y||a[3]!==x||a[4]!==k?(t=s&&(0,l.jsxs)(to.l.Group,{children:[(0,l.jsx)(to.l.GroupHeading,{children:"Edit file..."}),k?(0,l.jsxs)(to.l.LinkItem,{onClick:()=>x("BLOB_EDIT_DROPDOWN.ON_DEFAULT_BRANCH"),href:y({action:"edit",commitish:g}),children:["On ",(0,l.jsx)("code",{children:g})," branch"]}):(0,l.jsxs)(to.l.LinkItem,{onClick:()=>x("BLOB_EDIT_DROPDOWN.IN_PLACE"),href:y({action:"edit"}),"data-hotkey":"e",children:["In place",(0,l.jsx)(to.l.TrailingVisual,{"aria-hidden":"true",children:(0,l.jsx)(nT.E,{children:(0,l.jsx)("kbd",{children:"e"})})})]})]}),a[0]=g,a[1]=s,a[2]=y,a[3]=x,a[4]=k,a[5]=t):t=a[5],a[6]!==s||a[7]!==c?(n=s&&c&&(0,l.jsx)(to.l.Divider,{}),a[6]=s,a[7]=c,a[8]=n):n=a[8],a[9]!==h||a[10]!==v||a[11]!==p||a[12]!==c||a[13]!==N?(i=c&&(0,l.jsx)(nA,{editEnabled:h,githubDevUrl:p,ghDesktopPath:v,onBranch:N}),a[9]=h,a[10]=v,a[11]=p,a[12]=c,a[13]=N,a[14]=i):i=a[14],a[15]!==t||a[16]!==n||a[17]!==i?(r=(0,l.jsxs)(l.Fragment,{children:[t,n,i]}),a[15]=t,a[16]=n,a[17]=i,a[18]=r):r=a[18],r}nA.displayName="OpenWithActionItems",nD.displayName="EditMenuActionItems";var nO=n(8905),nR=n(7958),nF=n(52934);function nE(e){let t,n,i,r,a,s=(0,o.c)(11),{currentStickyLines:c,colorizedLines:d}=e;s[0]!==c?(t=Array.from(c.values()),s[0]=c,s[1]=t):t=s[1];let u=t;return s[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,w.$)("react-line-numbers","StickyLinesHeader-module__Box_1__IFVoy"),s[2]=n):n=s[2],s[3]!==u?(i=(0,l.jsx)("div",{className:n,children:u.map(nP)}),s[3]=u,s[4]=i):i=s[4],s[5]!==d||s[6]!==u?(r=(0,l.jsx)("div",{className:"react-code-lines",children:u.map(e=>d&&d[e.lineNumber-1]?(0,l.jsx)(ey.$6,{className:"react-code-text react-code-line-contents-no-virtualization react-file-line html-div",style:{paddingLeft:"18px"},html:d[e.lineNumber-1],onClick:()=>(0,R.f)({line:e.lineNumber})},`sticky-header-line-${e.lineNumber}`):(0,l.jsx)(eB.S,{codeLineData:e,stylingDirectivesLine:e.stylingDirectivesLine,codeLineToSectionMap:void 0,copilotAccessAllowed:!1,onClick:()=>(0,R.f)({line:e.lineNumber}),shouldUseInert:!1},`sticky-header-line-${e.lineNumber}`))}),s[5]=d,s[6]=u,s[7]=r):r=s[7],s[8]!==i||s[9]!==r?(a=(0,l.jsxs)("div",{className:"StickyLinesHeader-module__Box__LVvtT",children:[i,r]}),s[8]=i,s[9]=r,s[10]=a):a=s[10],a}function nP(e){return(0,l.jsx)(eA.Kn,{codeLineData:e},`sticky-header-line-number-${e.lineNumber}`)}function n$(e){let t,n,i,r,a,m,h,p,x,y,g,j,N,C,I,T,A,L,D,O,R,F,E,P,$,z,H,M,W,q,K,Z,J,ee,et,en,el,ei,er=(0,o.c)(133),{openPanel:es,setOpenPanel:ec,showTree:ed,validCodeNav:eu,treeToggleElement:em,currentStickyLines:eh,focusedSearchResult:e_,setFocusedSearchResult:ep,searchResults:ef,searchingText:eb,stickyHeaderElement:ex,copilotInfo:ey,colorizedLines:eg,onBannerChange:ej}=e,ev=(0,k.Gj)(),eN=(0,Y.A)(),ew=eN.symbolsEnabled,{isSticky:eS}=(0,tJ.z)(ex),eC=(0,s.l)(),{copilotAccessAllowed:eI,copilotSpacesEnabled:eT}=(0,eo.w)(),eB=(0,b.z)(),{canEdit:eA,canEditOnDefaultBranch:eL}=(0,e0.M)(),eD=(0,X.e)(),{sendRepoClickEvent:eO}=(0,d.T)(),eR=U(),{copyFilePathShortcut:eF}=(0,c.wk)(),{copyPermalinkShortcut:eE}=(0,c.wk)(),eP=(0,B.t)();er[0]!==eN.copilotSWEAgentEnabled?(t=(0,tK.G7)("copilot_agent_tasks_btn_code_view")&&eN.copilotSWEAgentEnabled,er[0]=eN.copilotSWEAgentEnabled,er[1]=t):t=er[1];let e$=t;er[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,tK.G7)("copilot_mission_control_decoupled_mode"),er[2]=n):n=er[2];let ez=n,{githubDevUrl:eH}=(0,f.s)(),{headerInfo:eM,viewable:eV}=eN,{toc:eU,onBranch:eW,ghDesktopPath:eq}=eM,eG=nL(eH,eW,eq),eK=(0,S.O)(),eQ=(0,t2.y)(),{createPermalink:eY}=(0,tT.Z)(),{addToast:eX}=(0,tX.Y6)(),{findInFileOpen:eZ,setFindInFileOpen:eJ}=(0,Q.k)(),e1=(0,v.useRef)(null);er[3]===Symbol.for("react.memo_cache_sentinel")?(i={direction:"nw"},er[3]=i):i=er[3];let[e2,e3,e4]=(0,tZ.F)("raw-actions-message-tooltip",e1,i),{getUrl:e5}=(0,tT.Z)(),e6=e5(),{isServer:e8}=(0,ea.V)(),e7=e8?e6:_.fV.origin+e6,e9=eP.id,te=eP.ownerLogin,tt=eP.name,tn=eB.refType??"branch";er[4]!==eB.name||er[5]!==tn?(r=(0,nO.D)(eB.name,tn),er[4]=eB.name,er[5]=tn,er[6]=r):r=er[6],er[7]!==e7||er[8]!==eC||er[9]!==eB.currentOid||er[10]!==eP.id||er[11]!==eP.name||er[12]!==eP.ownerLogin||er[13]!==r?(a={type:"file",url:e7,path:eC,repoID:e9,repoOwner:te,repoName:tt,ref:r,commitOID:eB.currentOid},er[7]=e7,er[8]=eC,er[9]=eB.currentOid,er[10]=eP.id,er[11]=eP.name,er[12]=eP.ownerLogin,er[13]=r,er[14]=a):a=er[14];let ti=a,tr=eV&&eL;er[15]!==eS||er[16]!==ed||er[17]!==em?(m=(0,l.jsx)("div",{className:"react-blob-sticky-header",children:(0,l.jsx)(nb.A,{isStickied:eS,showTree:ed,treeToggleElement:em})}),er[15]=eS,er[16]=ed,er[17]=em,er[18]=m):m=er[18];let ta=eS&&"BlobViewHeader-module__Box_1_stickied__L3NvW";er[19]!==ta?(h=(0,w.$)("BlobViewHeader-module__Box_1__VEmuQ",ta),er[19]=ta,er[20]=h):h=er[20],er[21]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(tY.W,{as:"h2",text:"File metadata and controls"}),er[21]=p):p=er[21],er[22]===Symbol.for("react.memo_cache_sentinel")?(x=(0,l.jsx)(nv,{}),y=(0,l.jsx)(nC,{className:"react-code-size-details-in-header"}),er[22]=x,er[23]=y):(x=er[22],y=er[23]);let ts=eK?"blame":"preview";return er[24]!==ey||er[25]!==ts?(g=(0,l.jsxs)("div",{className:"BlobViewHeader-module__Box_2__icUs2",children:[x,y,(0,l.jsx)(u.E,{copilotInfo:ey,className:"react-code-size-details-in-header",view:ts})]}),er[24]=ey,er[25]=ts,er[26]=g):g=er[26],er[27]!==eX||er[28]!==eF.hotkey||er[29]!==eC?(j=eF.hotkey&&(0,l.jsx)(nV,{hotkey:eF.hotkey,onActivate:()=>{(0,tG.D)(eC),eX({type:"success",message:"Path copied!"})}}),er[27]=eX,er[28]=eF.hotkey,er[29]=eC,er[30]=j):j=er[30],er[31]!==eX||er[32]!==eE.hotkey||er[33]!==eY?(N=eE.hotkey&&(0,l.jsx)(nV,{hotkey:eE.hotkey,onActivate:()=>{(0,tG.D)(eY({absolute:!0})),eX({type:"success",message:"Permalink copied!"})}}),er[31]=eX,er[32]=eE.hotkey,er[33]=eY,er[34]=N):N=er[34],er[35]!==eI||er[36]!==eT||er[37]!==ti||er[38]!==ej||er[39]!==eP?(C=eI&&eT&&(0,l.jsx)(tq,{repository:eP,currentFile:ti,onBannerChange:ej}),er[35]=eI,er[36]=eT,er[37]=ti,er[38]=ej,er[39]=eP,er[40]=C):C=er[40],er[41]!==eI||er[42]!==ti?(I=(0,l.jsx)(tB.Ay,{copilotAccessAllowed:eI,messageReference:ti,hideDropdown:!0,id:"blob-view-header-copilot-icon",decoupledModeEnabled:ez}),er[41]=eI,er[42]=ti,er[43]=I):I=er[43],er[44]!==eC||er[45]!==eP||er[46]!==e$?(T=e$&&(0,l.jsx)(tQ.V,{isIconButton:!0,size:"small",tooltipDirection:"n",currentRepo:eP,currentReference:{path:eC},hideRepoSelector:!0,eventType:"new_agent_task_button_codeview",decoupledModeEnabled:ez}),er[44]=eC,er[45]=eP,er[46]=e$,er[47]=T):T=er[47],er[48]===Symbol.for("react.memo_cache_sentinel")?(A=(0,w.$)("react-blob-header-edit-and-raw-actions","BlobViewHeader-module__Box_4__J4Y4W"),er[48]=A):A=er[48],er[49]!==eQ||er[50]!==eN.displayName?(L=(0,l.jsx)(nH,{onCopy:eQ,fileName:eN.displayName}),er[49]=eQ,er[50]=eN.displayName,er[51]=L):L=er[51],er[52]===Symbol.for("react.memo_cache_sentinel")?(D=(0,l.jsx)(nz,{}),er[52]=D):D=er[52],er[53]!==L?(O=(0,l.jsxs)("div",{className:A,children:[L,D]}),er[53]=L,er[54]=O):O=er[54],er[55]!==eK||er[56]!==eD||er[57]!==es||er[58]!==eb||er[59]!==eO||er[60]!==ec||er[61]!==ew||er[62]!==eu?(R=eD===X.y.Code&&!eK&&eu&&ew&&(0,l.jsx)(nM,{isCodeNavOpen:"codeNav"===es,setCodeNavOpen:e=>{e&&eO("BLOB_SYMBOLS_MENU.OPEN");let t=e?"codeNav":"";requestIdleCallback(()=>localStorage.setItem("codeNavOpen",t)),(0,G.Q)(null,e,null),ec(e?"codeNav":void 0)},size:"small",searchingText:eb.selectedText}),er[55]=eK,er[56]=eD,er[57]=es,er[58]=eb,er[59]=eO,er[60]=ec,er[61]=ew,er[62]=eu,er[63]=R):R=er[63],er[64]!==eK||er[65]!==es||er[66]!==ec||er[67]!==eU?(F=!eK&&(0,l.jsx)(nF.A,{toc:eU,openPanel:es,setOpenPanel:ec}),er[64]=eK,er[65]=es,er[66]=ec,er[67]=eU,er[68]=F):F=er[68],er[69]===Symbol.for("react.memo_cache_sentinel")?(E=(0,w.$)("js-blob-dropdown-click","BlobViewHeader-module__IconButton__XrMQY"),er[69]=E):E=er[69],er[70]!==e3?(P=(0,l.jsx)(tl.W.Anchor,{children:(0,l.jsx)(tL.K,{icon:ek.KebabHorizontalIcon,tooltipDirection:"nw","aria-label":"Edit and raw actions",className:E,size:"small",title:"More file actions",variant:"invisible","data-testid":"more-file-actions-button",onBlur:e3})}),er[70]=e3,er[71]=P):P=er[71],er[72]===Symbol.for("react.memo_cache_sentinel")?($=(0,w.$)("react-blob-header-edit-and-raw-actions-combined","BlobViewHeader-module__ActionMenu_Overlay__BIxWI"),er[72]=$):$=er[72],er[73]!==eA||er[74]!==tr||er[75]!==eG||er[76]!==eV?(z=(eA&&eV||tr||eG)&&(0,l.jsxs)("div",{className:"react-navigation-menu-edit-and-raw-actions",children:[(0,l.jsx)(nD,{editAllowed:!!(eV&&eA)||!!tr,hasOpenWithItem:eG}),(0,l.jsx)(to.l.Divider,{})]}),er[73]=eA,er[74]=tr,er[75]=eG,er[76]=eV,er[77]=z):z=er[77],er[78]!==eQ||er[79]!==eN.displayName||er[80]!==e2||er[81]!==eV?(H=(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(nR.A,{viewable:eV,onCopy:eQ,name:eN.displayName,updateTooltipMessage:e2,all:!0})}),er[78]=eQ,er[79]=eN.displayName,er[80]=e2,er[81]=eV,er[82]=H):H=er[82],er[83]!==z||er[84]!==H?(M=(0,l.jsx)(tl.W.Overlay,{className:$,width:"small",children:(0,l.jsxs)(to.l,{children:[z,H]})}),er[83]=z,er[84]=H,er[85]=M):M=er[85],er[86]!==P||er[87]!==M?(W=(0,l.jsxs)(tl.W,{anchorRef:e1,children:[P,M]}),er[86]=P,er[87]=M,er[88]=W):W=er[88],er[89]!==e4||er[90]!==W?(q=(0,l.jsxs)("div",{className:"react-blob-header-edit-and-raw-actions-combined",children:[e4,W]}),er[89]=e4,er[90]=W,er[91]=q):q=er[91],er[92]!==j||er[93]!==N||er[94]!==C||er[95]!==I||er[96]!==T||er[97]!==O||er[98]!==R||er[99]!==F||er[100]!==q?(K=(0,l.jsxs)("div",{className:"BlobViewHeader-module__Box_3__ng6v2",children:[j,N,C,I,T,O,R,F,q]}),er[92]=j,er[93]=N,er[94]=C,er[95]=I,er[96]=T,er[97]=O,er[98]=R,er[99]=F,er[100]=q,er[101]=K):K=er[101],er[102]!==h||er[103]!==g||er[104]!==K?(Z=(0,l.jsxs)("div",{className:h,children:[p,g,K]}),er[102]=h,er[103]=g,er[104]=K,er[105]=Z):Z=er[105],er[106]!==eK?(J=eK&&(0,l.jsxs)("div",{className:"BlobViewHeader-module__Box_5__sY5vc",children:[(0,l.jsx)(nx,{}),(0,l.jsx)(nc,{})]}),er[106]=eK,er[107]=J):J=er[107],er[108]!==m||er[109]!==Z||er[110]!==J?(ee=(0,l.jsxs)("div",{ref:V,className:"BlobViewHeader-module__Box__yhm9u",children:[m,Z,J]}),er[108]=m,er[109]=Z,er[110]=J,er[111]=ee):ee=er[111],er[112]!==eZ||er[113]!==e_||er[114]!==eS||er[115]!==es||er[116]!==ef||er[117]!==eb||er[118]!==eJ||er[119]!==ep||er[120]!==ev?(et=eZ&&(0,l.jsx)(ne,{stickied:eS,focusedSearchResult:e_,setFocusedSearchResult:ep,searchResults:ef,onClose:()=>{eJ(!1),"codeNav"===es&&ev(eb.selectedText)}}),er[112]=eZ,er[113]=e_,er[114]=eS,er[115]=es,er[116]=ef,er[117]=eb,er[118]=eJ,er[119]=ep,er[120]=ev,er[121]=et):et=er[121],er[122]!==eK||er[123]!==eg||er[124]!==eh||er[125]!==eR?(en=!eK&&eh.size>0&&(0,l.jsx)("div",{style:{top:eR},className:"BlobViewHeader-module__Box_6__zrxVJ",children:(0,l.jsx)(nE,{currentStickyLines:eh,colorizedLines:eg})}),er[122]=eK,er[123]=eg,er[124]=eh,er[125]=eR,er[126]=en):en=er[126],er[127]!==en?(el=(0,l.jsx)("div",{children:en}),er[127]=en,er[128]=el):el=er[128],er[129]!==ee||er[130]!==et||er[131]!==el?(ei=(0,l.jsxs)(l.Fragment,{children:[ee,et,el]}),er[129]=ee,er[130]=et,er[131]=el,er[132]=ei):ei=er[132],ei}function nz(){let e,t,n,r,a,s,u,m,h,_,p,b,x=(0,o.c)(38),y=(0,Y.A)(),{getUrl:g}=(0,tT.Z)(),{canEdit:j,canEditOnDefaultBranch:v}=(0,e0.M)(),{sendRepoClickEvent:N}=(0,d.T)(),{githubDevUrl:w}=(0,f.s)(),k=(0,D.Zp)(),{editFileShortcut:S,openWithGitHubDevShortcut:C,openWithGitHubDevInNewWindowShortcut:I}=(0,c.wk)(),{headerInfo:T}=y,{editTooltip:B,ghDesktopPath:A,onBranch:L}=T,R=nL(w,L,A);if(!j&&!R)return null;x[0]!==g||x[1]!==k?(e=()=>{k(g({action:"edit"}))},x[0]=g,x[1]=k,x[2]=e):e=x[2];let F=e;x[3]!==w?(t=()=>{window.open(w,"_blank")},x[3]=w,x[4]=t):t=x[4];let E=t;x[5]!==w||x[6]!==k?(n=()=>{k(w+window.location.pathname.substring(1))},x[5]=w,x[6]=k,x[7]=n):n=x[7];let P=n;x[8]!==w||x[9]!==E||x[10]!==P||x[11]!==I||x[12]!==C?(r=w&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(K.A,{className:"js-github-dev-shortcut d-none","data-hotkey":C.hotkey,href:w}),(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:C.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:P}),(0,l.jsx)(K.A,{className:"js-github-dev-new-tab-shortcut d-none","data-hotkey":I.hotkey,href:w,target:"_blank"}),(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:I.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:E})]}),x[8]=w,x[9]=E,x[10]=P,x[11]=I,x[12]=C,x[13]=r):r=x[13],x[14]!==j||x[15]!==S||x[16]!==B||x[17]!==g?(a=j?(0,l.jsx)(tL.K,{as:ex.N,tooltipDirection:"nw","aria-label":B,"data-hotkey":S.hotkey,icon:ek.PencilIcon,to:g({action:"edit"}),size:"small",className:tI.A.linkButton,"data-testid":"edit-button"}):(0,l.jsx)(t4,{icon:ek.PencilIcon,"aria-label":B,disabled:!0}),x[14]=j,x[15]=S,x[16]=B,x[17]=g,x[18]=a):a=x[18],x[19]!==N?(s=e=>e&&N("BLOB_EDIT_DROPDOWN"),x[19]=N,x[20]=s):s=x[20],x[21]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(tl.W.Anchor,{children:(0,l.jsx)(tL.K,{tooltipDirection:"nw",icon:ek.TriangleDownIcon,size:"small","aria-label":"More edit options","data-testid":"more-edit-button"})}),x[21]=u):u=x[21];let $=j||!!v;return x[22]!==R||x[23]!==$?(m=(0,l.jsx)(tl.W.Overlay,{align:"end",children:(0,l.jsx)(to.l,{children:(0,l.jsx)(nD,{editAllowed:$,hasOpenWithItem:R})})}),x[22]=R,x[23]=$,x[24]=m):m=x[24],x[25]!==s||x[26]!==m?(h=(0,l.jsxs)(tl.W,{onOpenChange:s,children:[u,m]}),x[25]=s,x[26]=m,x[27]=h):h=x[27],x[28]!==h||x[29]!==a?(_=(0,l.jsxs)(t0.A,{children:[a,h]}),x[28]=h,x[29]=a,x[30]=_):_=x[30],x[31]!==j||x[32]!==F?(p=j&&(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:"e,Shift+E",onlyAddHotkeyScopeButton:!0,onButtonClick:F}),x[31]=j,x[32]=F,x[33]=p):p=x[33],x[34]!==_||x[35]!==p||x[36]!==r?(b=(0,l.jsxs)(l.Fragment,{children:[r,_,p]}),x[34]=_,x[35]=p,x[36]=r,x[37]=b):b=x[37],b}function nH(e){let t,n,r,a,s=(0,o.c)(32),{onCopy:d,fileName:u}=e,{viewRawContentShortcut:m,copyRawContentShortcut:h,downloadRawContentShortcut:p}=(0,c.wk)(),{renderImageOrRaw:f,renderedFileInfo:b,viewable:x,image:y,rawBlobUrl:g,headerInfo:j}=(0,Y.A)(),{isGitLfs:N}=j,k=(0,D.Zp)(),{addToast:S}=(0,tX.Y6)(),C=(0,v.useRef)(null),[I,T,B]=(0,tZ.F)("raw-copy-message-tooltip",C),A=!N&&(b&&!x||y);s[0]!==u||s[1]!==g?(t=async()=>{await (0,nR.P)(g,u)},s[0]=u,s[1]=g,s[2]=t):t=s[2];let L=t;s[3]!==k||s[4]!==g?(n=()=>k(g),s[3]=k,s[4]=g,s[5]=n):n=s[5];let R=n;s[6]!==d||s[7]!==I?(r=async()=>{let e=await d(),{ariaLabel:t}=(0,t3.t0)(e);I(t)},s[6]=d,s[7]=I,s[8]=r):r=s[8];let F=r;if(s[9]!==S||s[10]!==T||s[11]!==F||s[12]!==h||s[13]!==p.hotkey||s[14]!==L||s[15]!==u||s[16]!==N||s[17]!==A||s[18]!==R||s[19]!==d||s[20]!==B||s[21]!==g||s[22]!==f||s[23]!==m){let e,t,n=new URL(g,_.fV.origin);n.searchParams.set("download",""),s[25]!==u||s[26]!==N||s[27]!==g?(e=async()=>{N||await (0,nR.P)(g,u)},s[25]=u,s[26]=N,s[27]=g,s[28]=e):e=s[28],s[29]!==p.hotkey||s[30]!==e?(t={"aria-label":"Download raw file",tooltipDirection:"n",icon:ek.DownloadIcon,size:"small",onClick:e,"data-testid":"download-raw-button","data-hotkey":p.hotkey,className:"BlobViewHeader-module__downloadButton__ef459"},s[29]=p.hotkey,s[30]=e,s[31]=t):t=s[31];let o=t;a=A?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tL.K,{"aria-label":"Download raw file",tooltipDirection:"n",icon:ek.DownloadIcon,size:"small",onClick:L,"data-testid":"download-raw-button","data-hotkey":p.hotkey}),(0,l.jsx)(i._,{buttonTestLabel:"download-raw-button-shortcut",buttonFocusId:O.wQ,buttonHotkey:p.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:L})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(t0.A,{children:[(0,l.jsx)(t1.z,{href:g,download:f?"true":void 0,size:"small","data-testid":"raw-button","data-hotkey":m.hotkey,className:(0,w.$)(tI.A.linkButton,"BlobViewHeader-module__LinkButton__X9kx2"),children:"Raw"}),!N&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tL.K,{ref:C,"aria-label":"Copy raw file",tooltipDirection:"n",icon:ek.CopyIcon,size:"small",onMouseLeave:T,onClick:F,"data-testid":"copy-raw-button","data-hotkey":h.hotkey,onBlur:T}),B]}),N?(0,l.jsx)(tL.K,{as:"a","data-turbo":"false",href:n.toString(),...o}):(0,l.jsx)(tL.K,{...o})]}),(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:m.hotkey,buttonTestLabel:"raw-button-shortcut",onlyAddHotkeyScopeButton:!0,onButtonClick:R}),!N&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i._,{buttonTestLabel:"copy-raw-button-shortcut",buttonFocusId:O.wQ,buttonHotkey:h.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:async()=>{let e=await d(),{ariaLabel:t,content:n}=(0,t3.t0)(e);S({message:t,icon:n})}}),(0,l.jsx)(i._,{buttonTestLabel:"download-raw-button-shortcut",buttonFocusId:O.wQ,buttonHotkey:p.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:async()=>{await (0,nR.P)(g,u)}})]})]}),s[9]=S,s[10]=T,s[11]=F,s[12]=h,s[13]=p.hotkey,s[14]=L,s[15]=u,s[16]=N,s[17]=A,s[18]=R,s[19]=d,s[20]=B,s[21]=g,s[22]=f,s[23]=m,s[24]=a}else a=s[24];return a}function nM(e){let t,n,i,r=(0,o.c)(12),{isCodeNavOpen:a,setCodeNavOpen:s,size:d,searchingText:u}=e,{toggleSymbolsShortcut:m}=(0,c.wk)(),h=!(0,p.ud)().openSymbolsOption.enabled&&!a;r[0]!==a||r[1]!==s?(t=()=>{(0,Z.Ov)(!0),s(!a)},r[0]=a,r[1]=s,r[2]=t):t=r[2];let _=t,f=a?"Close symbols panel":"Open symbols panel",b=h&&u?"react-button-with-indicator":"";return r[3]!==b?(n=(0,w.$)(b,"BlobViewHeader-module__IconButton_2__RyjZg"),r[3]=b,r[4]=n):n=r[4],r[5]!==a||r[6]!==d||r[7]!==f||r[8]!==n||r[9]!==_||r[10]!==m.hotkey?(i=(0,l.jsx)(tL.K,{"aria-label":f,tooltipDirection:"nw","aria-pressed":a,"aria-expanded":a,"aria-controls":"symbols-pane",icon:ek.CodeSquareIcon,className:n,"data-hotkey":m.hotkey,onClick:_,variant:"invisible","data-testid":"symbols-button",id:"symbols-button",size:d}),r[5]=a,r[6]=d,r[7]=f,r[8]=n,r[9]=_,r[10]=m.hotkey,r[11]=i):i=r[11],i}function nV(e){let t,n=(0,o.c)(3),{hotkey:r,onActivate:a}=e;return n[0]!==r||n[1]!==a?(t=(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:r,onButtonClick:a}),n[0]=r,n[1]=a,n[2]=t):t=n[2],t}nE.displayName="StickyLinesHeader",n$.displayName="BlobViewHeader",nz.displayName="EditMenu",nH.displayName="RawGroup",nM.displayName="SymbolsButton",nV.displayName="KeyboardShortcut";var nU=n(23708),nW=n(34349),nq=n(44241),nG=n(7478);let nK={definitions:void 0,localReferences:void 0,crossReferences:void 0,error:!1};var nQ=n(35228),nY=n(24987),nX=n(90224);function nZ(e){let t,n,i,r,a,s,c,d,u,m,h,_,p,f,b,x=(0,o.c)(41),{reference:y,isHighlighted:g,href:j,onClick:N,role:k,ariaLevel:S,symbol:C,index:I,focusElement:T}=e,[B,A]=(0,v.useState)(null);x[0]!==y||x[1]!==C?(t=function(e,t){let n=34-e.length,l=t.bodyText.slice(0,t.ident.start.column);if(n<=0)return l;n=Math.max(n/2,n-t.bodyText.slice(t.ident.start.column+e.length).trimEnd().length);let o=l.split(" "),i=[];for(let e=o.length-1;e>=0;e--){let t=o[e];if(i.unshift(t),i.join(" ").length<=n)o.pop();else break}let r=o.join(" "),a=(l.slice(r.length).match(/^[ \t]*/)||[])[0]??"";return`${o.join(" ")}${a}`}(C,y),x[0]=y,x[1]=C,x[2]=t):t=x[2];let L=t;x[3]!==L?(n=()=>{A((0,nY.J)(L))},i=[L],x[3]=L,x[4]=n,x[5]=i):(n=x[4],i=x[5]),(0,v.useLayoutEffect)(n,i),x[6]!==T||x[7]!==I?(r=()=>{if(T){let e=document.getElementById(`find-in-file-item-${I}`);e&&e.focus()}},a=[T,I],x[6]=T,x[7]=I,x[8]=r,x[9]=a):(r=x[8],a=x[9]),(0,v.useEffect)(r,a);let{tabSize:D}=(0,Y.A)();x[10]===Symbol.for("react.memo_cache_sentinel")?(s=(0,em.bp)(),x[10]=s):s=x[10];let O=s,R=(0,nQ.W)(y.highlightedText,y.stylingDirectives,y.bodyText,"plain",D,O);x[11]!==N?(c=e=>{e.ctrlKey||e.metaKey||N?.()},x[11]=N,x[12]=c):c=x[12];let F=c,E=`find-in-file-item-${I}`,P=g?"location":void 0,$=g&&"CodeNavCell-module__cellInnerHighlighted__q9WcJ";return x[13]!==$?(d=(0,w.$)("CodeNavCell-module__cellInner__cD7u4",$),x[13]=$,x[14]=d):d=x[14],x[15]===Symbol.for("react.memo_cache_sentinel")?(u=(0,w.$)("text-small blob-num color-fg-muted","CodeNavCell-module__blobNum__bd6u3"),x[15]=u):u=x[15],x[16]!==y.lineNumber?(m=(0,l.jsx)("div",{className:u,children:y.lineNumber}),x[16]=y.lineNumber,x[17]=m):m=x[17],x[18]!==R||x[19]!==g||x[20]!==B||x[21]!==y||x[22]!==C?(h=null!==B&&(0,l.jsxs)("div",{id:`offset-${y.href(!1)}`,style:{marginLeft:-B},children:[C.length>0&&(0,l.jsx)(nX.U,{symbols:[y],lineNumber:y.lineNumber,style:{overflow:"initial"},isNotUsingWhitespace:!0}),(0,l.jsx)(ey.JR,{className:"CodeNavCell-module__verifiedHtml__lV5cz",html:R,"aria-current":g?"location":void 0})]}),x[18]=R,x[19]=g,x[20]=B,x[21]=y,x[22]=C,x[23]=h):h=x[23],x[24]!==h?(_=(0,l.jsx)("div",{className:"CodeNavCell-module__codeContainer__w5JDb",children:h}),x[24]=h,x[25]=_):_=x[25],x[26]!==m||x[27]!==_?(p=(0,l.jsxs)("div",{className:"d-flex",children:[m,_]}),x[26]=m,x[27]=_,x[28]=p):p=x[28],x[29]!==d||x[30]!==p?(f=(0,l.jsx)("div",{className:d,children:p}),x[29]=d,x[30]=p,x[31]=f):f=x[31],x[32]!==S||x[33]!==j||x[34]!==N||x[35]!==F||x[36]!==k||x[37]!==f||x[38]!==E||x[39]!==P?(b=(0,l.jsx)(K.A,{as:ex.N,to:j,role:k,className:"CodeNavCell-module__cellLink__OR2j1",onClick:F,onSelect:N,id:E,"aria-current":P,"aria-level":S,onKeyDown:nJ,children:f}),x[32]=S,x[33]=j,x[34]=N,x[35]=F,x[36]=k,x[37]=f,x[38]=E,x[39]=P,x[40]=b):b=x[40],b}function nJ(e){"ArrowDown"===e.key?(n0("nextElementSibling"),e.preventDefault()):"ArrowUp"===e.key&&(n0("previousElementSibling"),e.preventDefault())}function n0(e){let{activeElement:t}=document,n=t?.[e];if(n)if("treeitem"!==n.role&&"nextElementSibling"===e){let e=n.querySelector('[role="treeitem"]');e?.focus()}else n.focus()}nZ.displayName="CodeNavCellInner";let n1=v.memo(nZ);n1.displayName="CodeNavCell";function n2(e){let t,n,i,r,a,c,u,m,h,_,p,f,b,x,y,g,j,N=(0,o.c)(53),{results:k,repo:C,filePath:I,highlightedIndex:T,isDefinition:A,onClick:L,offset:D,initiallyExpanded:R,enableExpandCollapse:F,symbol:E,setFocusOnFile:P}=e,$=!!(0,S.O)(),[z,H]=(0,v.useState)(R),M=(0,B.t)(),V=(0,s.l)(),U=v.useRef(null),[W,q]=(0,v.useState)(!1),G=(0,Z.DC)(),K=k.slice(0,10),Q=k.length>10?k.slice(10):[],{sendRepoClickEvent:Y}=(0,d.T)(),X=M.ownerLogin===C.ownerLogin&&M.name===C.name;N[0]!==z?(t=e=>{"Enter"===e.key||" "===e.key?(H(!z),e.preventDefault()):"ArrowLeft"===e.key?H(!1):"ArrowRight"===e.key?(H(!0),z&&U.current?.focus()):"ArrowDown"===e.key?(n0("nextElementSibling"),e.preventDefault()):"ArrowUp"===e.key&&(n0("previousElementSibling"),e.preventDefault())},N[0]=z,N[1]=t):t=N[1];let J=t;N[2]!==T||N[3]!==D?(n=()=>{T&&T>=10+D&&q(!0)},i=[T,D],N[2]=T,N[3]=D,N[4]=n,N[5]=i):(n=N[4],i=N[5]),(0,v.useEffect)(n,i),N[6]!==G||N[7]!==P?(r=()=>{P&&G&&U.current?.focus()},a=[P,G],N[6]=G,N[7]=P,N[8]=r,N[9]=a):(r=N[8],a=N[9]),(0,v.useEffect)(r,a),N[10]!==G?(c=()=>{G||document.getElementById(O.wQ)?.focus()},u=[G],N[10]=G,N[11]=c,N[12]=u):(c=N[11],u=N[12]),(0,v.useEffect)(c,u);let ee=`${I}-${A?"definition":"reference"}-group`,et=F&&"CodeNavFileInformation-module__fileHeaderExpandable__a4Bxh";N[13]!==et?(m=(0,w.$)("CodeNavFileInformation-module__fileHeader__doFlu",et),N[13]=et,N[14]=m):m=N[14],N[15]!==F||N[16]!==z?(h=F?()=>H(!z):void 0,N[15]=F,N[16]=z,N[17]=h):h=N[17];let en=F?"button":void 0;N[18]!==M.id||N[19]!==A||N[20]!==C.id||N[21]!==C.name||N[22]!==C.ownerAvatar?(_=A&&M.id!==C.id&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ep.r,{square:!0,src:C.ownerAvatar,className:"CodeNavFileInformation-module__repoAvatar__DJmya",size:16}),(0,l.jsx)("div",{className:"CodeNavFileInformation-module__repoName__qzX4e",children:C.name})]}),N[18]=M.id,N[19]=A,N[20]=C.id,N[21]=C.name,N[22]=C.ownerAvatar,N[23]=_):_=N[23],N[24]!==F||N[25]!==z?(p=F&&(0,l.jsx)(t8.A,{"aria-hidden":"true",icon:z?ek.ChevronDownIcon:ek.ChevronRightIcon}),N[24]=F,N[25]=z,N[26]=p):p=N[26];let el=`${A?"Definitions":"References"} in ${I!==V?I:"this file"}`,eo=X&&I===V?"In this file":I;N[27]!==I||N[28]!==el||N[29]!==eo?(f=(0,l.jsx)("div",{className:"CodeNavFileInformation-module__tableWrapper__eFmGF",children:(0,l.jsxs)(na.A,{"aria-label":el,title:I,className:"CodeNavFileInformation-module__truncatedPath__U_CQU",children:["\u200E",eo,"\u200E"]})}),N[27]=I,N[28]=el,N[29]=eo,N[30]=f):f=N[30],N[31]!==ee||N[32]!==z||N[33]!==p||N[34]!==f?(b=(0,l.jsxs)("button",{"aria-expanded":z,"aria-controls":ee,className:"CodeNavFileInformation-module__expandButton__eMckM",children:[p,f]}),N[31]=ee,N[32]=z,N[33]=p,N[34]=f,N[35]=b):b=N[35],N[36]!==_||N[37]!==b?(x=(0,l.jsxs)("div",{className:"CodeNavFileInformation-module__flexRow__IRGOs",children:[_,b]}),N[36]=_,N[37]=b,N[38]=x):x=N[38],N[39]!==z||N[40]!==k?(y=k&&!z&&(0,l.jsx)(nr.A,{className:"CodeNavFileInformation-module__counterLabel__EU757",children:k.length}),N[39]=z,N[40]=k,N[41]=y):y=N[41],N[42]!==J||N[43]!==h||N[44]!==en||N[45]!==x||N[46]!==y||N[47]!==m?(g=(0,l.jsxs)("div",{className:m,onClick:h,onKeyDown:J,ref:U,role:en,tabIndex:0,children:[x,y]}),N[42]=J,N[43]=h,N[44]=en,N[45]=x,N[46]=y,N[47]=m,N[48]=g):g=N[48];let ei=z&&(0,l.jsxs)("div",{"aria-label":`Results in ${I!==V?I:"this file"}`,id:ee,className:(0,w.$)("CodeNavFileInformation-module__resultsGroup__ZOT8v","code-nav-file-information"),role:"group",children:[K.map((e,t)=>(0,l.jsx)(n1,{reference:e,isHighlighted:T===t+D,href:e.href($),onClick:()=>{L&&L(t+D),Y("BLOB_SYMBOLS_MENU.SYMBOL_DEFINITION_CLICK")},symbol:E,index:t+D},`codeNavigation${t+D}`)),W&&Q.map((e,t)=>(0,l.jsx)(n1,{reference:e,isHighlighted:T===t+D+10,href:e.href($),onClick:()=>{L&&L(t+D+10),Y("BLOB_SYMBOLS_MENU.SYMBOL_DEFINITION_CLICK")},symbol:E,index:t+D+10,focusElement:0===t},`codeNavigation${t+D+10}`)),Q.length>0&&(0,l.jsx)("div",{className:"CodeNavFileInformation-module__showMoreWrapper__LmEDM",children:(0,l.jsx)(td.Q,{leadingVisual:W?ek.FoldIcon:ek.UnfoldIcon,onClick:()=>q(!W),className:"CodeNavFileInformation-module__showMoreButton__goaIx",variant:"invisible",size:"small","aria-selected":!1,children:W?"Show less":"Show more"})})]});return N[49]!==I||N[50]!==g||N[51]!==ei?(j=(0,l.jsxs)("div",{children:[g,ei]},I),N[49]=I,N[50]=g,N[51]=ei,N[52]=j):j=N[52],j}function n3(e){let t,n,i=(0,o.c)(12),{definitions:r,references:a,highlightedIndex:s,initiallyExpanded:c,enableExpandCollapse:d,onClick:u,symbol:m,setFocusOnFile:h}=e;if(i[0]!==r||i[1]!==a){if(t={},r)for(let e of r){let n=e.pathKey();t[n]||(t[n]=[]),t[n].push(e)}else if(a)for(let e of a){let n=e.pathKey();t[n]||(t[n]=[]),t[n].push(e)}i[0]=r,i[1]=a,i[2]=t}else t=i[2];let _=t;if(i[3]!==r||i[4]!==d||i[5]!==s||i[6]!==c||i[7]!==u||i[8]!==_||i[9]!==h||i[10]!==m){let e=0;n=(0,l.jsx)(l.Fragment,{children:Object.keys(_).map((t,n)=>{let o=_[t],i=(0,l.jsx)(n2,{repo:o[0].repo,filePath:o[0].path,results:o,highlightedIndex:s,isDefinition:void 0!==r&&r.length>0,onClick:u,offset:e,initiallyExpanded:c,enableExpandCollapse:d,symbol:m,setFocusOnFile:0===n&&h},t);return e+=o.length,i})}),i[3]=r,i[4]=d,i[5]=s,i[6]=c,i[7]=u,i[8]=_,i[9]=h,i[10]=m,i[11]=n}else n=i[11];return n}n2.displayName="CodeNavFileInformation",n3.displayName="CodeNavInfoPanelData";let n4="CodeNavSymbolDetails-module__sectionHeader__uNtsL",n5="CodeNavSymbolDetails-module__emptyState__qeWsd";var n6=n(57920);let n8=/(\W+)/,n7=/^\W+$/,n9=(0,v.lazy)(()=>n.e("88185").then(n.bind(n,43008)));function le(e){let t,n,i,r,a,s,d,u,m,h,_,p,f,b,x,y,g,j,N,w,k,C,I,T,A,L,O,F,E,$,z,H,M,V,U,W,q=(0,o.c)(138),{codeNavInfo:G,selectedText:Q,lineNumber:X,offset:Z,onClose:J,onBackToSymbol:ee,onSymbolSelect:et,isLoading:en,setSearchResults:el,setFocusedSearchResult:ei}=e,{findNextShortcut:er,findPrevShortcut:ea}=(0,c.wk)(),es=!!(0,S.O)(),{definitions:ec,localReferences:ed,crossReferences:eu,error:em}=function(e,t,n,l){let[o,i]=(0,v.useState)(nK);return(0,v.useEffect)(()=>{(async()=>{if(n<0||l<0)return;let{definitions:o,localReferences:r,crossReferences:a,setLoading:s}=e.getDefinitionsAndReferences(t,n,l);i(nK);try{let e=await o;i({definitions:e,localReferences:void 0,crossReferences:void 0,error:!1}),s(!1);let[t,n]=await Promise.all([r,a]);i({definitions:e,localReferences:t,crossReferences:n,error:!1})}catch{i({...nK,error:!0})}finally{s(!1)}})()},[e,t,n,l]),o}(G,Q,X,Z),{copilotAccessAllowed:eh}=(0,eo.w)(),[e_,ep]=(0,v.useState)(-1),[ef,ex]=(0,v.useState)(!1),ey=(0,B.t)();ec?.definitions,q[0]!==ec?.definitions?(t=ec?.definitions||[],q[0]=ec?.definitions,q[1]=t):t=q[1];let eg=t;q[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,tK.G7)("copilot_mission_control_decoupled_mode"),q[2]=n):n=q[2];let ej=n;q[3]!==ed?.references?(i=ed?.references||[],q[3]=ed?.references,q[4]=i):i=q[4];let ev=i;q[5]!==eu?.references?(r=()=>eu?.references||[],q[5]=eu?.references,q[6]=r):r=q[6],eu?.references,q[7]!==r?(a=r(),q[7]=r,q[8]=a):a=q[8];let eN=a,ew=eg.length,eS=ev.length+eN.length,eC=(0,D.Zp)(),eI=eg.length>0?eg[0]:void 0;q[9]!==eN?(s=eN.map(li).filter(lo),q[9]=eN,q[10]=s):s=q[10];let eT=s,eB=ef?eS:ev.length,eA=(0,v.useRef)(null),{language:eL,languageID:eD}=(0,Y.A)();q[11]!==eg?(d=eg.map(ll),q[11]=eg,q[12]=d):d=q[12],q[13]!==eN||q[14]!==ev?(u=[...ev.map(ln),...eN.map(lt)],q[13]=eN,q[14]=ev,q[15]=u):u=q[15],q[16]!==eL||q[17]!==eD||q[18]!==Q||q[19]!==d||q[20]!==u?(m={type:"symbol",kind:"codeNavSymbol",name:Q,languageID:eD,languageName:eL,codeNavDefinitions:d,codeNavReferences:u},q[16]=eL,q[17]=eD,q[18]=Q,q[19]=d,q[20]=u,q[21]=m):m=q[21];let eO=m;q[22]!==G.path||q[23]!==G.repo.name||q[24]!==eI||q[25]!==eO||q[26]!==ev||q[27]!==ei||q[28]!==el?(h=()=>{eI&&eI.repo.name===G.repo.name&&eI.path===G.path?el([eI,...ev]):el(ev),ei(void 0),window.dispatchEvent(new nW.Xr(eO))},q[22]=G.path,q[23]=G.repo.name,q[24]=eI,q[25]=eO,q[26]=ev,q[27]=ei,q[28]=el,q[29]=h):h=q[29],q[30]!==G.path||q[31]!==G.repo.name||q[32]!==eI||q[33]!==eO||q[34]!==ev||q[35]!==Q||q[36]!==ei||q[37]!==el?(_=[G.path,G.repo.name,eI,ev,Q,el,ei,eO],q[30]=G.path,q[31]=G.repo.name,q[32]=eI,q[33]=eO,q[34]=ev,q[35]=Q,q[36]=ei,q[37]=el,q[38]=_):_=q[38],(0,v.useEffect)(h,_),q[39]===Symbol.for("react.memo_cache_sentinel")?(p=e=>{e||eA.current?.focus()},q[39]=p):p=q[39],(0,P.Gp)(p),q[40]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{ep(-1)},q[40]=f):f=q[40],q[41]!==Q?(b=[Q],q[41]=Q,q[42]=b):b=q[42],(0,v.useEffect)(f,b),q[43]!==eT.length?(x=()=>{ex(eT.length>0&&eT.length<=5)},y=[eT.length],q[43]=eT.length,q[44]=x,q[45]=y):(x=q[44],y=q[45]),(0,v.useEffect)(x,y),q[46]!==eg||q[47]!==es||q[48]!==e_||q[49]!==eC||q[50]!==ev||q[51]!==ew?(g=e=>{let{index:t,direction:n,navigate:l}=e;if(void 0!==t){let e=t>=ew?ev[t-ew]:eg[t];ep(t),l&&eC(e.href(es)),(0,R.f)({line:e.lineNumber,column:e.ident.start.column})}if(void 0!==n){let e=Math.max(ew,e_+n),t=ev[e-ew];e0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(lr,{headerText:eg.length>1?"Definitions":"Definition",searchType:ec?.backend==="precise"?"Precise":"Search"}),(0,l.jsx)("div",{children:eg&&(0,l.jsx)(n3,{definitions:eg,onClick:e=>{eR({index:e})},highlightedIndex:e_,initiallyExpanded:!0,enableExpandCollapse:eg.length>1,symbol:Q,setFocusOnFile:!0},"definitions")})]}):null,q[73]=eg,q[74]=ec?.backend,q[75]=em,q[76]=e_,q[77]=en,q[78]=eR,q[79]=Q,q[80]=A):A=q[80],q[81]!==eN.length||q[82]!==eg.length||q[83]!==er||q[84]!==ea||q[85]!==e_||q[86]!==en||q[87]!==eR||q[88]!==ev.length||q[89]!==eB?(L=!en&&(ev.length>0||eN.length>0)&&(0,l.jsx)(lr,{headerText:`${eB} ${eB>1?"References":"Reference"}`,searchType:"Search",className:n4,extraStyle:{justifyContent:"space-between"},children:(0,l.jsxs)("div",{className:"CodeNavSymbolDetails-module__navButtonWrapper__M4ayM",children:[(0,l.jsx)(tL.K,{unsafeDisableTooltip:!0,"aria-label":"Previous reference","data-hotkey":ea.hotkey,onClick:()=>eR({direction:-1,navigate:!0}),className:"CodeNavSymbolDetails-module__navButtonPrev__bD7DD",disabled:e_<=eg.length,icon:ek.ChevronUpIcon,variant:"invisible",size:"small"}),(0,l.jsx)(tL.K,{unsafeDisableTooltip:!0,"aria-label":"Next reference","data-hotkey":er.hotkey,onClick:()=>eR({direction:1,navigate:!0}),className:"CodeNavSymbolDetails-module__navButtonNext__KcvEh",disabled:e_>=ev.length+eg.length-1,icon:ek.ChevronDownIcon,variant:"invisible",size:"small"}),(0,l.jsx)("button",{hidden:!0,"data-hotkey":er.hotkey,onClick:()=>eR({direction:1,navigate:!0}),"data-testid":"find-next-button"}),(0,l.jsx)("button",{hidden:!0,"data-hotkey":ea.hotkey,onClick:()=>eR({direction:-1,navigate:!0}),"data-testid":"find-prev-button"})]})}),q[81]=eN.length,q[82]=eg.length,q[83]=er,q[84]=ea,q[85]=e_,q[86]=en,q[87]=eR,q[88]=ev.length,q[89]=eB,q[90]=L):L=q[90],q[91]!==em?(O=em&&(0,l.jsx)("div",{className:n5,children:"No references found"}),q[91]=em,q[92]=O):O=q[92],q[93]!==eg||q[94]!==e_||q[95]!==en||q[96]!==eR||q[97]!==ev||q[98]!==Q||q[99]!==ew?(F=!en&&ev.length>0&&(0,l.jsx)(n3,{initiallyExpanded:!0,enableExpandCollapse:!0,references:ev,highlightedIndex:e_-ew,onClick:e=>{eR({index:ew+e})},symbol:Q,setFocusOnFile:!(eg&&eg.length>0)},"referencesInfoBox"),q[93]=eg,q[94]=e_,q[95]=en,q[96]=eR,q[97]=ev,q[98]=Q,q[99]=ew,q[100]=F):F=q[100],q[101]!==eN||q[102]!==en||q[103]!==Q||q[104]!==ef?(E=!en&&ef&&(0,l.jsx)(n3,{initiallyExpanded:!1,enableExpandCollapse:!0,references:eN,symbol:Q},"crossReferencesInfoBox"),q[101]=eN,q[102]=en,q[103]=Q,q[104]=ef,q[105]=E):E=q[105],q[106]!==eg.length||q[107]!==em||q[108]!==en||q[109]!==ev.length?($=0===ev.length&&0===eg.length&&!em&&!en&&(0,l.jsx)("div",{className:n5,children:"No definitions or references found"}),q[106]=eg.length,q[107]=em,q[108]=en,q[109]=ev.length,q[110]=$):$=q[110],q[111]!==eT.length||q[112]!==ef?(z=eT.length>5&&(0,l.jsx)(td.Q,{leadingVisual:ef?ek.FoldIcon:ek.UnfoldIcon,className:"CodeNavSymbolDetails-module__showMoreButton__C95KC",variant:"invisible",size:"small",onClick:()=>ex(!ef),children:ef?"Show less":"Show more"}),q[111]=eT.length,q[112]=ef,q[113]=z):z=q[113],q[114]!==ey.name||q[115]!==ey.ownerLogin||q[116]!==Q?(H=(0,eb.Y8Y)({owner:ey.ownerLogin,repo:ey.name,searchTerm:Q}),q[114]=ey.name,q[115]=ey.ownerLogin,q[116]=Q,q[117]=H):H=q[117],q[118]!==H?(M=(0,l.jsx)(td.Q,{as:K.A,leadingVisual:ek.SearchIcon,className:"CodeNavSymbolDetails-module__searchButton__EuX7P",variant:"invisible",size:"small",href:H,children:"Search for this symbol"}),q[118]=H,q[119]=M):M=q[119],q[120]!==z||q[121]!==M?(V=(0,l.jsxs)("div",{className:"CodeNavSymbolDetails-module__footer__wilZl",children:[z,M]}),q[120]=z,q[121]=M,q[122]=V):V=q[122],q[123]!==eg||q[124]!==ev?(U=(0,l.jsx)(v.Suspense,{fallback:null,children:(0,l.jsx)(n9,{definitionsOrReferences:[...eg,...ev]})}),q[123]=eg,q[124]=ev,q[125]=U):U=q[125],q[126]!==k||q[127]!==I||q[128]!==T||q[129]!==A||q[130]!==L||q[131]!==O||q[132]!==F||q[133]!==E||q[134]!==$||q[135]!==V||q[136]!==U?(W=(0,l.jsxs)("div",{children:[k,I,T,A,L,O,F,E,$,V,U]}),q[126]=k,q[127]=I,q[128]=T,q[129]=A,q[130]=L,q[131]=O,q[132]=F,q[133]=E,q[134]=$,q[135]=V,q[136]=U,q[137]=W):W=q[137],W}function lt(e){return{ident:e.ident,path:e.path,ref:ls(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin}}function ln(e){return{ident:e.ident,path:e.path,ref:ls(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin}}function ll(e){return{ident:e.ident,extent:e.extent,kind:e.kind.fullName,fullyQualifiedName:e.fullyQualifiedName,ref:ls(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin,path:e.path}}function lo(e,t,n){return n.indexOf(e)===t}function li(e){return e.path}function lr(e){let t,n,i,r,a=(0,o.c)(12),{headerText:s,searchType:c,className:d,extraStyle:u,children:m}=e;return a[0]!==d?(t=(0,w.$)(n4,d),a[0]=d,a[1]=t):t=a[1],a[2]!==c?(n=(0,l.jsx)("span",{className:"CodeNavSymbolDetails-module__sectionSearchType__LsXV7",children:c}),a[2]=c,a[3]=n):n=a[3],a[4]!==s||a[5]!==n?(i=(0,l.jsxs)("h3",{className:"CodeNavSymbolDetails-module__sectionHeading__GLeav",children:[s,n]}),a[4]=s,a[5]=n,a[6]=i):i=a[6],a[7]!==m||a[8]!==u||a[9]!==t||a[10]!==i?(r=(0,l.jsxs)("div",{className:t,style:u,children:[i,m]}),a[7]=m,a[8]=u,a[9]=t,a[10]=i,a[11]=r):r=a[11],r}function la(e){let t,n,i,r,a,s,c,d,u,m,h,_=(0,o.c)(35),{currentSymbol:p,selectedText:f,codeNavInfo:b,onSymbolSelect:x,children:y}=e,g=p?.fullyQualifiedName??f;if(_[0]!==y||_[1]!==b||_[2]!==p||_[3]!==g||_[4]!==x){let e,o,m=g.split(n8);_[14]!==b?(e=e=>{let t=n7.test(e),n=t?[]:b.getLocalDefinitions(e,!0),l=1===n.length?n[0]:void 0,o=l?.kind.plColor;return{text:e,symbol:l,symbolColor:o,isSeparator:t}},_[14]=b,_[15]=e):e=_[15];let h=m.map(e);c="CodeNavSymbolDetails-module__definitionHeader__DC_KB";let f=`${p?.kind.fullName||""} ${g}`;_[16]!==f?(d=f.trimStart(),_[16]=f,_[17]=d):d=_[17],_[18]!==y||_[19]!==p?(u=p&&(0,l.jsxs)("div",{className:"CodeNavSymbolDetails-module__symbolIndicatorRow__g_VZZ",children:[(0,l.jsx)(n6.e,{symbolKind:p.kind,showFullSymbol:!0}),y]}),_[18]=y,_[19]=p,_[20]=u):u=_[20],t=na.A,n=g,i="CodeNavSymbolDetails-module__symbolTruncate__aQsej",r=!0,a="\u200E",_[21]!==x?(o=(e,t)=>(0,l.jsx)("span",{role:"button",tabIndex:e.isSeparator?-1:0,className:(0,w.$)("CodeNavSymbolDetails-module__symbolSegment__b_jlq",e.symbol&&"CodeNavSymbolDetails-module__symbolSegmentClickable__q6uhQ"),style:{color:e.symbolColor},onClick:()=>e.symbol?x(e.symbol):void 0,onKeyDown:t=>{e.symbol&&["Enter","Space"].includes(t.code)&&x(e.symbol)},children:e.text},`${e.text}-${t}`),_[21]=x,_[22]=o):o=_[22],s=h.map(o),_[0]=y,_[1]=b,_[2]=p,_[3]=g,_[4]=x,_[5]=t,_[6]=n,_[7]=i,_[8]=r,_[9]=a,_[10]=s,_[11]=c,_[12]=d,_[13]=u}else t=_[5],n=_[6],i=_[7],r=_[8],a=_[9],s=_[10],c=_[11],d=_[12],u=_[13];return _[23]!==t||_[24]!==n||_[25]!==i||_[26]!==r||_[27]!==a||_[28]!==s?(m=(0,l.jsxs)(t,{title:n,className:i,inline:r,children:[a,s,"\u200E"]}),_[23]=t,_[24]=n,_[25]=i,_[26]=r,_[27]=a,_[28]=s,_[29]=m):m=_[29],_[30]!==c||_[31]!==d||_[32]!==u||_[33]!==m?(h=(0,l.jsxs)("h3",{className:c,"aria-label":d,children:[u,m]}),_[30]=c,_[31]=d,_[32]=u,_[33]=m,_[34]=h):h=_[34],h}function ls(e){return e.name===e.currentOid?e.currentOid:"tree"===e.refType?`refs/heads/${e.name}`:(0,nq.D7)(e.name,e.refType??"branch")}n9.displayName="ScrollMarks",le.displayName="CodeNavSymbolDetails",lr.displayName="CodeNavSymbolSectionHeader",la.displayName="CodeNavSymbolDefinitionHeader";var lc=n(33346);function ld(e){let t,n,i,r,a,c,d,u,m,h,_=(0,o.c)(42),{selectedText:p,showCodeNavWithSymbol:f,lineNumber:x,offset:y,onClose:g,onClear:j,codeNavInfo:N,isLoading:w,setSearchResults:k,setFocusedSearchResult:S,autoFocusSearch:C}=e,I=(0,v.useRef)(f);_[0]!==f?(t=()=>{I.current=f},n=[f],_[0]=f,_[1]=t,_[2]=n):(t=_[1],n=_[2]),(0,v.useEffect)(t,n);let[T,A]=(0,v.useState)(!p);_[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{I.current(e),A(!1)},_[3]=i):i=_[3];let L=i;_[4]!==j||_[5]!==k?(r=e=>{e&&(j(),(0,v.startTransition)(()=>A(!0)),k([]))},_[4]=j,_[5]=k,_[6]=r):r=_[6],(0,P.Gp)(r);let D=(0,s.l)(),O=(0,b.z)(),R=(0,B.t)(),{language:F,languageID:E,displayUrl:$}=(0,Y.A)(),z=O.refType;_[7]!==O.name||_[8]!==z?(a=(0,nq.D7)(O.name,z),_[7]=O.name,_[8]=z,_[9]=a):a=_[9],_[10]!==$||_[11]!==F||_[12]!==E||_[13]!==D||_[14]!==O.currentOid||_[15]!==R.id||_[16]!==R.name||_[17]!==R.ownerLogin||_[18]!==a?(c={type:"file",languageID:E,languageName:F,path:D,ref:a,commitOID:O.currentOid,repoID:R.id,repoName:R.name,repoOwner:R.ownerLogin,url:$},_[10]=$,_[11]=F,_[12]=E,_[13]=D,_[14]=O.currentOid,_[15]=R.id,_[16]=R.name,_[17]=R.ownerLogin,_[18]=a,_[19]=c):c=_[19];let H=c;_[20]!==H||_[21]!==p||_[22]!==T?(d=()=>{p?A(!1):T||(window.dispatchEvent(new nW.Xr(H)),A(!0))},_[20]=H,_[21]=p,_[22]=T,_[23]=d):d=_[23];let M=(0,v.useEffectEvent)(d);return _[24]!==M?(u=()=>{M()},_[24]=M,_[25]=u):u=_[25],_[26]!==N||_[27]!==p?(m=[p,N],_[26]=N,_[27]=p,_[28]=m):m=_[28],(0,v.useEffect)(u,m),_[29]!==C||_[30]!==N||_[31]!==H||_[32]!==w||_[33]!==x||_[34]!==y||_[35]!==j||_[36]!==g||_[37]!==p||_[38]!==S||_[39]!==k||_[40]!==T?(h=(0,l.jsx)("div",{id:"symbols-pane",children:T?N?(0,l.jsx)(lc.v,{treeSymbols:N.symbolTree,onSymbolSelect:L,codeSymbols:N.symbols,onClose:g,autoFocusSearch:C}):(0,l.jsx)("div",{children:"Click on a symbol to see code navigation data"}):(0,l.jsx)(le,{codeNavInfo:N,selectedText:p,lineNumber:x,offset:y,onBackToSymbol:()=>{j(),(0,v.startTransition)(()=>A(!0)),k([]),window.dispatchEvent(new nW.Xr(H))},onClose:()=>{g(),j(),k([]),window.dispatchEvent(new nW.Xr(H))},onSymbolSelect:L,isLoading:w,setSearchResults:k,setFocusedSearchResult:S})}),_[29]=C,_[30]=N,_[31]=H,_[32]=w,_[33]=x,_[34]=y,_[35]=j,_[36]=g,_[37]=p,_[38]=S,_[39]=k,_[40]=T,_[41]=h):h=_[41],h}ld.displayName="CodeNavInfoPanel";var lu=n(84763);let lm=v.memo(lh);function lh(e){let t,n,i,r,a,s,c=(0,o.c)(14);c[0]!==e?({...t}=e,c[0]=e,c[1]=t):t=c[1];let[d,u]=v.useState(!1),{screenSize:m}=(0,h.lm)();return c[2]!==m?(n=()=>{u(mt.setOpenPanel(void 0),renderHeader:l_,renderBody:()=>lp({...t})}),c[8]=t,c[9]=d,c[10]=a):a=c[10],c[11]!==r||c[12]!==a?(s=(0,l.jsxs)(l.Fragment,{children:[r,a]}),c[11]=r,c[12]=a,c[13]=s):s=c[13],s}function l_(){return null}function lp(e){let t,n,i,r,a=(0,o.c)(21),{stickyStyle:s,stickyHeaderElement:c,openPanel:d,isCodeNavLoading:u,codeNavInfo:m,setOpenPanel:h,showCodeNavWithSymbol:_,searchingText:p,setSearchingText:f,setSearchResults:b,setFocusedSearchResult:x,autoFocusSearch:y,className:g}=e,{headerInfo:j}=(0,Y.A)(),{toc:v}=j,N=(0,tJ.z)(c);a[0]!==N?(t=N?{borderRadius:"0px 0px 6px 6px",borderTop:0}:{},a[0]=N,a[1]=t):t=a[1];let w=t;a[2]!==w||a[3]!==s?(n={...s,...w},a[2]=w,a[3]=s,a[4]=n):n=a[4];let k=`panel-content-narrow-styles ${g||""}`;return a[5]!==y||a[6]!==m||a[7]!==u||a[8]!==d||a[9]!==p||a[10]!==x||a[11]!==h||a[12]!==b||a[13]!==f||a[14]!==_||a[15]!==v?(i="toc"===d?(0,l.jsx)(nU.A,{toc:v,onClose:()=>{h(void 0)}}):"codeNav"===d&&(0,l.jsx)(ld,{codeNavInfo:m,showCodeNavWithSymbol:_,selectedText:p.selectedText,lineNumber:p.lineNumber-1,offset:p.offset,onClose:()=>{h(void 0),localStorage.setItem("codeNavOpen",""),(0,G.Q)(null,!1,null),document.getElementById("symbols-button")?.focus()},isLoading:u,onClear:()=>f({selectedText:"",lineNumber:0,offset:-1}),setSearchResults:b,setFocusedSearchResult:x,autoFocusSearch:y}),a[5]=y,a[6]=m,a[7]=u,a[8]=d,a[9]=p,a[10]=x,a[11]=h,a[12]=b,a[13]=f,a[14]=_,a[15]=v,a[16]=i):i=a[16],a[17]!==n||a[18]!==k||a[19]!==i?(r=(0,l.jsx)(lu.Z,{style:n,className:k,children:i}),a[17]=n,a[18]=k,a[19]=i,a[20]=r):r=a[20],r}function lf({blame:e,blob:t,symbolsExpanded:n,setValidCodeNav:i,showTree:c,treeToggleElement:$,validCodeNav:z,copilotInfo:H}){let M=(0,k.w0)(),V=(0,k.Gj)(),U=(0,s.l)(),K=t.symbolsEnabled,[Q,Y]=(0,v.useState)(null),X=(0,q.n)(),[Z,J]=(0,v.useState)(!1),[ee,et]=(0,v.useState)(null),{openPanel:en,setOpenPanel:el}=(0,a.Ak)(),eo=(0,v.useRef)(null),ei=(0,p.ud)().openSymbolsOption.enabled&&K,{stylingDirectives:er,rawLines:ea,colorizedLines:es}=(0,I.$)(),{screenSize:ec}=(0,h.lm)();(0,P.Gp)(e=>{e&&J(!0)});let{sendRepoClickEvent:ed}=(0,d.T)(),eu=(0,v.useRef)(!0),em=(0,v.useEffectEvent)(()=>{eu.current?(eu.current=!1,ev.selectedText&&!en&&ei&&n&&eb()):(ef(null,!0),V(""),J(!1),eN({selectedText:"",lineNumber:-1,offset:0}))});(0,v.useEffect)(()=>{em()},[U]);let eh=(0,v.useEffectEvent)(()=>{window.scrollY<300&&ef(null,!0)});(0,v.useEffect)(()=>{let e=!1,t=()=>{e||(requestAnimationFrame(()=>{eh(),e=!1}),e=!0)};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[]);let e_=!!(0,S.O)(),{currentStickyLines:ep,setStickyLines:ef}=function(){let e,t,n=(0,o.c)(3),[l,i]=(0,v.useState)(W);n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(e,t)=>{i(n=>{if(null===e&&0===n.size)return n;if(null===e&&t)return 0===n.size?n:new Map;if(!e)return n;let l=e.lineNumber,o=new Map(n);if(t?o.delete(l):o.set(l,e),o.get(l))for(let[e,t]of o)e!==l&&(!t.ownedSection||t.ownedSection.endLine{!e_&&ei&&(el("codeNav"),ed("BLOB_SYMBOLS_MENU.OPEN_WITH_SYMBOL"),requestIdleCallback(()=>localStorage.setItem("codeNavOpen","codeNav")),(0,G.Q)(null,!0,null))},[e_,ei,el,ed]),{isCodeNavLoading:ex,codeNavInfo:ey,showCodeNavWithSymbol:eg,showCodeNavForToken:ej,searchingText:ev,setSearchingText:eN}=function(e,t,n,l,o){let i=(0,D.Zp)(),r=(0,B.t)(),a=(0,A.i)(),c=(0,s.l)(),d=(0,b.z)(),{stylingDirectives:u,rawLines:m}=(0,I.$)(),[h,_]=(0,v.useState)(!1),p=(0,v.useMemo)(()=>u?.map(e=>(0,L.M)(e)),[u]),[f]=(0,D.ok)(),x="1"===f.get("plain"),y=e.symbols?.symbols??F,j=(0,v.useMemo)(()=>{try{return new g.Op(r,d,c,!!a,m||E,y,p,e.language,x,_)}catch{return}},[r,d,c,a,m,y,e.language,p,x]);(0,v.useEffect)(()=>{n(void 0!==j)},[j,n]);let[N,w]=(0,v.useState)(()=>{let e=(0,T.$c)(l);if(!e.blobRange?.start?.line)return{selectedText:"",lineNumber:-1,offset:0};if(!o&&e.blobRange.start.line===e.blobRange.end.line&&null!==e.blobRange.start.column&&null!==e.blobRange.end.column&&e.blobRange.end.column-e.blobRange.start.column>2&&u&&u[e.blobRange.start.line-1]?.length&&j?.blobLines[e.blobRange.start.line-1]){let t=j.blobLines[e.blobRange.start.line-1]?.substring(e.blobRange.start.column-1,e.blobRange.end.column-1),n=p[e.blobRange.start.line-1]?.find(t=>t.s===e.blobRange.start.column-1&&t.e===e.blobRange.end.column-1);return t&&n&&(0,O.Bm)(t,n.c)?{selectedText:t,lineNumber:e.blobRange.start.line,offset:e.blobRange.start.column}:{selectedText:"",lineNumber:-1,offset:0}}if(!l||!j||o)return{selectedText:"",lineNumber:-1,offset:0};{let e=j.getSymbolOnLine(Number(l.substring(2)));return e?{selectedText:e.name,lineNumber:e.lineNumber,offset:e.ident.start.column}:{selectedText:"",lineNumber:-1,offset:0}}});return{isCodeNavLoading:h,codeNavInfo:j,showCodeNavWithSymbol:(0,v.useCallback)(e=>{w({selectedText:e.name,lineNumber:e.lineNumber,offset:e.ident.start.column}),t(),i(e.href()),(0,R.f)({line:e.lineNumber})},[t,i]),showCodeNavForToken:(0,v.useCallback)(e=>{w(e),t()},[t]),setSearchingText:w,searchingText:N}}(t,eb,i,_.fV.hash,e_),{searchStatus:ew,searchResults:ek,setSearchResults:eS,focusedSearchResult:eC,setFocusedSearchResult:eI}=function(e,t){let{findInFileWorkerPath:n}=(0,f.s)(),[l,o]=(0,v.useState)([]),[i,r]=(0,v.useState)(void 0),[a,c]=(0,v.useState)("done"),d=v.useRef(null),u=(0,s.l)(),m=(0,b.z)();!d.current&&t&&(d.current=new y.N(new x.z(n,j),200,e=>1!==e.query.length));let h=(0,v.useRef)(t);h.current=t;let _=(0,v.useRef)("");(0,v.useEffect)(()=>function(){d.current?.terminate()},[]);let p=(0,v.useRef)(void 0);return d.current&&e!==p.current&&(d.current.onResponse=t=>{t.query===h.current&&(r(0),o(e?.createReferences(t.ranges)||[]),c("done"),_.current=h.current)},p.current=e),(0,v.useEffect)(()=>{if(!e||!d.current||!_.current||""===_.current){o([]),r(0),c("done");return}o([]),r(0),c("pending"),d.current.post({query:_.current,lines:e.blobLines,currentCodeReferences:void 0})},[m.name,u]),(0,v.useEffect)(()=>{if(e&&d.current)if(""===t)o([]),r(0),c("done"),_.current="";else{var n;if(_.current===t||!((n=t).length>0&&n.length<=1e3))return;c("pending");let o=_.current.length>0&&t.startsWith(_.current);d.current.post({query:t,lines:e.blobLines,currentCodeReferences:o?l:void 0})}},[t]),{focusedSearchResult:i,setFocusedSearchResult:r,searchResults:l,setSearchResults:o,searchStatus:a}}(ey,M),{headerInfo:{toc:eT}}=t,eB=(0,v.useMemo)(()=>({value:!1}),[ey]);eB.value=!en||eB.value;let eA=void 0!==en&&ey&&z&&!(0===ey.symbols.length&&"codeNav"===en&&!eB.value)&&!(!eT&&"toc"===en)&&"edit"!==en&&!(!K&&"codeNav"===en),eL=eA?en:void 0;return(0,v.useEffect)(()=>{en&&!eA&&el(void 0)},[en,el,eA]),(0,v.useEffect)(()=>{try{(0,m.BI)("blob-size",{lines:er?.length,truncatedSloc:t.headerInfo?.lineInfo.truncatedSloc,truncatedLoc:t.headerInfo?.lineInfo.truncatedLoc,length:ea?.reduce((e,t)=>e+t.length,0)??0,humanLength:t.headerInfo?.blobSize})}catch{}},[t,er,ea]),(0,l.jsxs)(C.EN,{children:[ey&&(0,l.jsx)(lb,{codeNavInfo:ey}),(0,l.jsx)(r.D,{}),ee&&(0,l.jsx)("div",{className:"pr-mb-3",children:(0,l.jsx)(N.l,{...ee})}),(0,l.jsxs)("div",{className:"d-flex flex-row",children:[(0,l.jsxs)("div",{className:(0,w.$)("container","BlobViewContent-module__blobContainer__DtH2d",eL&&ey&&ec>h.Gy.medium&&"BlobViewContent-module__blobContainerWithPanel__bcTSz"),children:[(0,l.jsxs)("div",{className:(0,w.$)("react-code-size-details-banner","BlobViewContent-module__codeSizeDetails__e5sUw"),children:[(0,l.jsx)(nC,{className:"react-code-size-details-banner"}),(0,l.jsx)(u.E,{copilotInfo:H,className:"react-code-size-details-banner",view:e?"blame":"preview"})]}),(0,l.jsx)("div",{className:(0,w.$)("react-blob-view-header-sticky","BlobViewContent-module__stickyHeader__VwxB5"),id:"repos-sticky-header",ref:Y,children:(0,l.jsx)(n$,{currentStickyLines:ep,focusedSearchResult:eC,openPanel:eL,searchingText:ev,searchResults:ek,setFocusedSearchResult:eI,setOpenPanel:el,showTree:c,stickyHeaderElement:Q,treeToggleElement:$,validCodeNav:z,copilotInfo:H,colorizedLines:es,onBannerChange:et})}),(0,l.jsx)("div",{className:"BlobViewContent-module__blobContentWrapper__JS0W6",children:(0,l.jsx)(tS,{blobLinesHandle:eo,setOpenPanel:el,validCodeNav:z,codeNavInfo:ey,onCodeNavTokenSelected:ej,onLineStickOrUnstick:ef,searchResults:ek,focusedSearchResult:eC})})]}),eL&&ey?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"BlobViewContent-module__symbolsPanelSpacer__Vuo_9"}),(0,l.jsx)(lm,{stickyStyle:X,stickyHeaderElement:Q,openPanel:eL,isCodeNavLoading:ex,codeNavInfo:ey,setOpenPanel:el,showCodeNavWithSymbol:eg,searchingText:ev,setSearchingText:eN,searchResults:ek,searchStatus:ew,setSearchResults:eS,setFocusedSearchResult:eI,autoFocusSearch:Z})]}):null]})]})}function lb(e){let t,n,r=(0,o.c)(6),{codeNavInfo:s}=e,{sendRepoKeyDownEvent:u}=(0,d.T)(),{findSymbolShortcut:m}=(0,c.wk)(),h=(0,a.aT)();return 0===s.symbols.length?null:(r[0]!==u||r[1]!==h?(t=()=>{h("codeNav"),(0,P.DE)(),u("FIND_SYMBOL")},r[0]=u,r[1]=h,r[2]=t):t=r[2],r[3]!==m.hotkey||r[4]!==t?(n=(0,l.jsx)(i._,{buttonFocusId:O.wQ,buttonHotkey:m.hotkey,onButtonClick:t}),r[3]=m.hotkey,r[4]=t,r[5]=n):n=r[5],n)}lm.displayName="PanelContent",lh.displayName="PanelContentUnmemoized",lp.displayName="InnerPanelContent",lf.displayName="BlobViewContent",lb.displayName="FindSymbolShortcut"},69625(e,t,n){n.d(t,{Fs:()=>eb,Ql:()=>ep,Ay:()=>eh});var l=n(74848),o=n(16522),i=n(5825),r=n(28547),a=n(69901),s=n(97810),c=n(15885),d=n(59134),u=n(77879),m=n(22520),h=n(39944),_=n(83914),p=n(41594),f=n(51336),b=n(31595),x=n(68541),y=n(54242),g=n(36594),j=n(16497),v=n(83223);let N="BlobLowerBanners-module__Flash__ZaXrD";var w=n(38621),k=n(10095);function S(e){let t,n,i,r,a,s=(0,o.c)(13),{errors:c}=e;if(!c||0===c.length)return null;s[0]!==c?(t=[],1===c.length?t.push("Learn more about this error."):c.map((e,n)=>{t.push(`Learn more about error ${n+1}.`)}),s[0]=c,s[1]=t):t=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(k.A,{icon:w.AlertIcon}),s[2]=n):n=s[2];let u=1===c.length?"is a problem":"are some problems";if(s[3]!==u?(i=(0,l.jsxs)("p",{children:[n,(0,l.jsxs)("strong",{children:["There ",u," with this template"]})]}),s[3]=u,s[4]=i):i=s[4],s[5]!==t||s[6]!==c){let e;s[8]!==t?(e=(e,n)=>(0,l.jsxs)("p",{children:[(0,l.jsx)(j.JR,{html:e.message}),". ",(0,l.jsx)(v.A,{href:e.link,target:"_blank",children:t[n]})]},`error-${n}`),s[8]=t,s[9]=e):e=s[9],r=c.map(e),s[5]=t,s[6]=c,s[7]=r}else r=s[7];return s[10]!==i||s[11]!==r?(a=(0,l.jsxs)(d.A,{variant:"danger",className:"DiscussionTemplateBanner-module__Flash__WVvtx",children:[i,r]}),s[10]=i,s[11]=r,s[12]=a):a=s[12],a}S.displayName="DiscussionTemplateBanner";var C=n(73537),I=n(26933),T=n(4925),B=n(41431);let A="IssueTemplateBanner-module__Banner__aGV8E";function L(e){let t,n,i,r,a,s=(0,o.c)(26),{issueTemplate:c,showIssueFormWarning:d,isValidLegacyIssueTemplate:u,helpUrl:m,isLoggedIn:h}=e;if(!h||!c&&!u&&!d)return null;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,C.G7)("lifecycle_label_name_updates"),s[0]=t):t=s[0];let _=t,p=null,f="Info";if(s[1]!==c||s[2]!==d){let e=[];if(c)if(!1===c.valid){let t,n,o;a="critical",f="Critical",c.errors&&(1===c.errors.length?e.push("Learn more about this error."):c.errors.map((t,n)=>{e.push(`Learn more about error ${n+1}.`)})),s[6]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(k.A,{icon:w.AlertIcon}),s[6]=t):t=s[6];let i=c.errors?.length===1?"is a problem":"are some problems";s[7]!==i?(n=(0,l.jsxs)("p",{children:[t,(0,l.jsxs)("strong",{children:["There ",i," with this template"]})]}),s[7]=i,s[8]=n):n=s[8];let r=c.errors?.map((t,n)=>(0,l.jsxs)("p",{children:[(0,l.jsx)(j.JR,{html:t.message}),". ",(0,l.jsx)(v.A,{href:t.link,target:"_blank",children:e[n]})]},`error-${n}`));s[9]!==n||s[10]!==r?(o=(0,l.jsxs)(l.Fragment,{children:[n,r]}),s[9]=n,s[10]=r,s[11]=o):o=s[11],p=o}else if(c.structured){let e,t;s[12]===Symbol.for("react.memo_cache_sentinel")?(e=_?(0,l.jsx)(I.X,{className:"mr-2"}):(0,l.jsx)(T.A,{variant:"success",className:"IssueTemplateBanner-module__Label__KSG6l",children:"Beta"}),s[12]=e):e=s[12],s[13]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsxs)(l.Fragment,{children:[e,"This file is used as an Issue Form template."," ",(0,l.jsx)("a",{href:"https://github.com/orgs/community/discussions/categories/projects-and-issues",children:"Give Feedback."})]}),s[13]=t):t=s[13],p=t}else p="This file is used as a markdown issue template.";else d&&(p="Issue form templates are not supported on private repositories.",a="warning",f="Warning");s[1]=c,s[2]=d,s[3]=a,s[4]=f,s[5]=p}else a=s[3],f=s[4],p=s[5];return s[14]!==f||s[15]!==a||s[16]!==p||s[17]!==c||s[18]!==d?(n=(c||d)&&(0,l.jsx)(B.l,{title:f,variant:a,className:A,children:p}),s[14]=f,s[15]=a,s[16]=p,s[17]=c,s[18]=d,s[19]=n):n=s[19],s[20]!==m||s[21]!==u?(i=u&&(0,l.jsx)(D,{helpUrl:m}),s[20]=m,s[21]=u,s[22]=i):i=s[22],s[23]!==n||s[24]!==i?(r=(0,l.jsxs)(l.Fragment,{children:[n,i]}),s[23]=n,s[24]=i,s[25]=r):r=s[25],r}function D(e){let t,n=(0,o.c)(2),{helpUrl:i}=e,r=`${i}/articles/about-issue-and-pull-request-templates`;return n[0]!==r?(t=(0,l.jsxs)(B.l,{title:"Warning",variant:"warning",className:A,children:["You are using an old version of issue templates. Please update to the new issue template workflow."," ",(0,l.jsx)(v.A,{href:r,target:"_blank",inline:!0,children:"Learn more about issue templates."})]}),n[0]=r,n[1]=t):t=n[1],t}function O(){let e,t,n,i,r,a,s,c=(0,o.c)(26),d=(0,y.t)(),m=(0,g.i)(),h=(0,b.l)(),j=(0,x.z)(),{helpUrl:v}=(0,f.s)(),{csvError:N,isCodeownersFile:w,publishBannersInfo:k,discussionTemplate:C,issueTemplate:I,showIssueFormWarning:T,isValidLegacyIssueTemplate:B}=(0,u.A)(),{showPublishActionBanner:A,releasePath:D,dismissActionNoticePath:O}=k,E=w&&d.currentUserCanPush;c[0]!==O||c[1]!==D||c[2]!==A?(e=(0,l.jsx)(p.A,{showPublishActionBanner:A,releasePath:D,dismissActionNoticePath:O}),c[0]=O,c[1]=D,c[2]=A,c[3]=e):e=c[3];let P=!!m;return c[4]!==v||c[5]!==B||c[6]!==I||c[7]!==T||c[8]!==P?(t=(0,l.jsx)(L,{issueTemplate:I,showIssueFormWarning:T,isValidLegacyIssueTemplate:B,isLoggedIn:P,helpUrl:v}),c[4]=v,c[5]=B,c[6]=I,c[7]=T,c[8]=P,c[9]=t):t=c[9],c[10]!==C?(n=C?.errors&&C.errors.length>0&&(0,l.jsx)(S,{...C}),c[10]=C,c[11]=n):n=c[11],c[12]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(R,{}),c[12]=i):i=c[12],c[13]!==h||c[14]!==j.name||c[15]!==d||c[16]!==E?(r=(0,l.jsx)(_.nB,{filePath:h,forceRender:E,refName:j.name,repo:d}),c[13]=h,c[14]=j.name,c[15]=d,c[16]=E,c[17]=r):r=c[17],c[18]!==N?(a=N&&(0,l.jsx)(F,{csvError:N}),c[18]=N,c[19]=a):a=c[19],c[20]!==e||c[21]!==t||c[22]!==n||c[23]!==r||c[24]!==a?(s=(0,l.jsxs)(l.Fragment,{children:[e,t,n,i,r,a]}),c[20]=e,c[21]=t,c[22]=n,c[23]=r,c[24]=a,c[25]=s):s=c[25],s}function R(){let e,t=(0,o.c)(6),{truncated:n,large:i,image:r,renderedFileInfo:a,rawBlobUrl:s}=(0,u.A)();return t[0]!==r||t[1]!==i||t[2]!==s||t[3]!==a||t[4]!==n?(e=!n||i||r||a?null:(0,l.jsxs)(d.A,{className:N,children:["This file has been truncated, but you can"," ",(0,l.jsx)(v.A,{inline:!0,href:s,children:"view the full file"}),"."]}),t[0]=r,t[1]=i,t[2]=s,t[3]=a,t[4]=n,t[5]=e):e=t[5],e}function F(e){let t,n=(0,o.c)(2),{csvError:i}=e;return n[0]!==i?(t=(0,l.jsx)(d.A,{variant:"warning",className:N,children:(0,l.jsx)(j.vb,{html:i})}),n[0]=i,n[1]=t):t=n[1],t}L.displayName="IssueTemplateBanner",D.displayName="LegacyIssueTemplateBanner",O.displayName="BlobLowerBanners",R.displayName="TruncatedBanner",F.displayName="CSVErrorBanner";var E=n(61968),P=n(34164);function $(){let e,t,n,i,r,a,s,c,d,u,m=(0,o.c)(36),{license:h}=(0,E.Y_)(),_=(0,y.t)(),{helpUrl:p}=(0,f.s)();if(m[0]!==h||m[1]!==_){a=Symbol.for("react.early_return_sentinel");e:{let o,s,c,d,u,p={permissions:{icon:w.CheckIcon,className:"BlobLicenseBanner-module__permissionIcon__K35r5"},limitations:{icon:w.XIcon,className:"BlobLicenseBanner-module__limitationIcon__DPSxr"},conditions:{icon:w.InfoIcon,className:"BlobLicenseBanner-module__conditionIcon__ruz2Z"}};if(!h){a=null;break e}r="BlobLicenseBanner-module__Box__GzABe",m[8]===Symbol.for("react.memo_cache_sentinel")?(n=(0,P.$)("blob-license-banner-outer","BlobLicenseBanner-module__Box_1__k06HE"),m[8]=n):n=m[8],m[9]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsx)(k.A,{icon:w.LawIcon,size:32}),m[9]=o):o=m[9];let f=`${_.ownerLogin}/${_.name} is licensed under`,b=h.name.toLowerCase().startsWith("the ")?"":" the";m[10]!==f||m[11]!==b?(s=(0,l.jsxs)("div",{className:"BlobLicenseBanner-module__Box_5__ZFHMZ",children:[f," ",b]}),m[10]=f,m[11]=b,m[12]=s):s=m[12],m[13]!==h.name?(c=(0,l.jsx)("h3",{children:h.name}),m[13]=h.name,m[14]=c):c=m[14],m[15]!==c||m[16]!==s?(d=(0,l.jsxs)("div",{className:"BlobLicenseBanner-module__Box_3__WJ1zs",children:[o,(0,l.jsxs)("div",{className:"BlobLicenseBanner-module__Box_4__uj9Qo",children:[s,c]})]}),m[15]=c,m[16]=s,m[17]=d):d=m[17],m[18]!==h.description?(u=(0,l.jsx)(j.vb,{html:h.description,className:"BlobLicenseBanner-module__VerifiedHTMLBox__q27sv"}),m[18]=h.description,m[19]=u):u=m[19],m[20]!==d||m[21]!==u?(i=(0,l.jsxs)("div",{className:"BlobLicenseBanner-module__Box_2__TVkQC",children:[d,u]}),m[20]=d,m[21]=u,m[22]=i):i=m[22],e="BlobLicenseBanner-module__Box_6__v_7QZ",t=Object.keys(h.rules).map((e,t)=>(0,l.jsxs)("div",{className:"BlobLicenseBanner-module__Box_7__GKMaA",children:[(0,l.jsx)("h5",{className:"BlobLicenseBanner-module__Box_8__okWnT",children:e.charAt(0).toUpperCase()+e.substring(1)}),h.rules[e].map(t=>(0,l.jsxs)("div",{className:"BlobLicenseBanner-module__Box_9__T5Ecp",children:[(0,l.jsx)(k.A,{icon:p[e].icon,size:13,className:(0,P.$)("BlobLicenseBanner-module__Octicon__TedzT",p[e].className)}),t.label]},t.tag))]},t))}m[0]=h,m[1]=_,m[2]=e,m[3]=t,m[4]=n,m[5]=i,m[6]=r,m[7]=a}else e=m[2],t=m[3],n=m[4],i=m[5],r=m[6],a=m[7];if(a!==Symbol.for("react.early_return_sentinel"))return a;m[23]!==e||m[24]!==t?(s=(0,l.jsx)("div",{className:e,children:t}),m[23]=e,m[24]=t,m[25]=s):s=m[25],m[26]!==n||m[27]!==i||m[28]!==s?(c=(0,l.jsxs)("div",{className:n,children:[i,s]}),m[26]=n,m[27]=i,m[28]=s,m[29]=c):c=m[29];let b=`${p}/articles/licensing-a-repository/#disclaimer`;return m[30]!==b?(d=(0,l.jsxs)("div",{className:"BlobLicenseBanner-module__Box_10__CVRqA",children:["This is not legal advice.\xa0",(0,l.jsx)(v.A,{inline:!0,href:b,children:"Learn more about repository licenses"})]}),m[30]=b,m[31]=d):d=m[31],m[32]!==r||m[33]!==c||m[34]!==d?(u=(0,l.jsxs)("div",{className:r,children:[c,d]}),m[32]=r,m[33]=c,m[34]=d,m[35]=u):u=m[35],u}$.displayName="BlobLicenseBanner";function z(e){let t,n,i=(0,o.c)(3),{citationHelpUrl:r}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)("strong",{children:"CITATION.cff"}),i[0]=t):t=i[0],i[1]!==r?(n=(0,l.jsxs)(d.A,{variant:"warning",className:"InvalidCitationWarning-module__Flash__TFzHv",children:["Your ",t,"file cannot be parsed. Make sure the formatting is correct."," ",(0,l.jsx)(v.A,{inline:!0,href:r,children:"Learn more about CITATION files."})]}),i[1]=r,i[2]=n):n=i[2],n}z.displayName="InvalidCitationWarning";function H(e){let t,n,i,r=(0,o.c)(4),{globalPreferredFundingPath:a}=e;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)("code",{children:"FUNDING.yml"}),r[0]=t):t=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)("code",{children:"FUNDING.yml"}),r[1]=n):n=r[1];let s=a??void 0;return r[2]!==s?(i=(0,l.jsxs)(d.A,{className:"OverridingGlobalFundingFileWarning-module__Flash__M27zG",children:["This file is overriding the organization-wide ",t,"file. Removing ",n,"in this repository will use the organization default.",(0,l.jsxs)(v.A,{inline:!0,href:s,children:[" ","View organization funding file."]})]}),r[2]=s,r[3]=i):i=r[3],i}function M(){let e,t,n,r,a,s=(0,o.c)(13),{topBannersInfo:c}=(0,u.A)(),{overridingGlobalFundingFile:d,globalPreferredFundingPath:m,showInvalidCitationWarning:h,citationHelpUrl:_}=c,{showLicenseMeta:p}=(0,E.Y_)();return s[0]!==p?(e=p&&(0,l.jsx)($,{}),s[0]=p,s[1]=e):e=s[1],s[2]!==_||s[3]!==h?(t=h&&(0,l.jsx)(z,{citationHelpUrl:_}),s[2]=_,s[3]=h,s[4]=t):t=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(i.I6,{}),s[5]=n):n=s[5],s[6]!==m||s[7]!==d?(r=d&&(0,l.jsx)(H,{globalPreferredFundingPath:m}),s[6]=m,s[7]=d,s[8]=r):r=s[8],s[9]!==e||s[10]!==t||s[11]!==r?(a=(0,l.jsxs)(l.Fragment,{children:[e,t,n,r]}),s[9]=e,s[10]=t,s[11]=r,s[12]=a):a=s[12],a}H.displayName="OverridingGlobalFundingFileWarning",M.displayName="BlobMidBanners";var V=n(23666),U=n(78597),W=n(21373),q=n(83369);let G="DependabotConfigurationBanner-module__Text_1__KLkkW";function K(){let e,t=(0,o.c)(2),{defaultBranch:n}=(0,y.t)(),{name:i}=(0,x.z)(),{dependabotInfo:r}=(0,u.A)(),{showConfigurationBanner:a}=r;if(!a)return null;let s=n===i;return t[0]!==s?(e=s?(0,l.jsx)(Q,{}):(0,l.jsx)(Y,{}),t[0]=s,t[1]=e):e=t[1],e}function Q(){let e,t,n,i,r,a,s,c,d=(0,o.c)(16),{dependabotInfo:m}=(0,u.A)(),{configFilePath:h,networkDependabotPath:_,dismissConfigurationNoticePath:p,configurationNoticeDismissed:f}=m;d[0]!==p?(e=()=>(0,U.DI)(p,{method:"POST"}),d[0]=p,d[1]=e):e=d[1];let b=e;return f?null:(d[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)("h5",{className:"DependabotConfigurationBanner-module__Text__JyAND",children:"Dependabot"}),n=(0,l.jsx)("p",{className:G,children:"Dependabot creates pull requests to keep your dependencies secure and up-to-date."}),d[2]=t,d[3]=n):(t=d[2],n=d[3]),d[4]!==h?(i=(0,l.jsxs)("p",{className:G,children:["You can opt out at any time by removing the ",(0,l.jsx)("code",{children:h})," config file."]}),d[4]=h,d[5]=i):i=d[5],d[6]!==_?(r=(0,l.jsx)(W.Q,{as:"a",href:_,children:"View update status"}),d[6]=_,d[7]=r):r=d[7],d[8]!==b?(a=(0,l.jsx)(W.Q,{variant:"invisible",onClick:b,className:"DependabotConfigurationBanner-module__Button__JJLfU",children:"Dismiss"}),d[8]=b,d[9]=a):a=d[9],d[10]!==r||d[11]!==a?(s=(0,l.jsxs)("div",{className:"DependabotConfigurationBanner-module__Box_1__GOnNY",children:[r,a]}),d[10]=r,d[11]=a,d[12]=s):s=d[12],d[13]!==i||d[14]!==s?(c=(0,l.jsx)("div",{className:"DependabotConfigurationBanner-module__Box__c9JH9",children:(0,l.jsx)(q.A,{caret:"top",open:!0,children:(0,l.jsxs)(q.A.Content,{children:[t,n,i,s]})})}),d[13]=i,d[14]=s,d[15]=c):c=d[15],c)}function Y(){let e,t,n,i=(0,o.c)(8),{defaultBranch:r,name:a,ownerLogin:s}=(0,y.t)(),c=(0,b.l)();i[0]!==r||i[1]!==a||i[2]!==s||i[3]!==c?(e=(0,V.nD_)({owner:s,repo:a,commitish:r,filePath:c}),i[0]=r,i[1]=a,i[2]=s,i[3]=c,i[4]=e):e=i[4];let u=e;return i[5]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsxs)("h5",{children:[(0,l.jsx)(w.AlertIcon,{}),"Cannot configure Dependabot from this branch"]}),i[5]=t):t=i[5],i[6]!==u?(n=(0,l.jsxs)(d.A,{variant:"warning",children:[t,(0,l.jsxs)("p",{children:["To configure Dependabot, you must use"," ",(0,l.jsx)(v.A,{inline:!0,href:u,children:"this repository's default branch"})]})]}),i[6]=u,i[7]=n):n=i[7],n}K.displayName="DependabotConfigurationBanner",Q.displayName="DefaultBranchDependabotConfigurationBanner",Y.displayName="DirectionsForNonDefaultBranch";var X=n(76071),Z=n(31854),J=n(26316),ee=n(30022),et=n(73077);let en="OrgOnboardingTip-module__Text_1__er24J";function el(e){let t,n,i,r,a,s,c,d,u,m=(0,o.c)(24),{children:h,mediaUrl:_,mediaPreviewSrc:p,iconSvg:f,taskTitle:b,taskPath:x,org:y}=e;return m[0]!==f?(t=(0,l.jsx)(eo,{iconSvg:f}),m[0]=f,m[1]=t):t=m[1],m[2]!==y?(n=(0,V.p3r)({owner:y}),m[2]=y,m[3]=n):n=m[3],m[4]!==n?(i=(0,l.jsx)(ee.A.Item,{href:n,children:"Tasks"}),m[4]=n,m[5]=i):i=m[5],m[6]!==x||m[7]!==b?(r=(0,l.jsx)(ee.A.Item,{href:x,className:"OrgOnboardingTip-module__Breadcrumbs_Item__mttEl",children:b}),m[6]=x,m[7]=b,m[8]=r):r=m[8],m[9]!==i||m[10]!==r?(a=(0,l.jsxs)(ee.A,{children:[i,r]}),m[9]=i,m[10]=r,m[11]=a):a=m[11],m[12]!==h||m[13]!==a?(s=(0,l.jsxs)("div",{className:"OrgOnboardingTip-module__Box_2__GUhfF",children:[a,h]}),m[12]=h,m[13]=a,m[14]=s):s=m[14],m[15]!==t||m[16]!==s?(c=(0,l.jsxs)("div",{className:"OrgOnboardingTip-module__Box_1__gKNAO",children:[t,s]}),m[15]=t,m[16]=s,m[17]=c):c=m[17],m[18]!==p||m[19]!==_?(d=(0,l.jsx)(er,{mediaPreviewSrc:p,mediaUrl:_}),m[18]=p,m[19]=_,m[20]=d):d=m[20],m[21]!==c||m[22]!==d?(u=(0,l.jsxs)("section",{className:"OrgOnboardingTip-module__Box__dDVrd",children:[c,d]}),m[21]=c,m[22]=d,m[23]=u):u=m[23],u}function eo(e){let t,n,i,r,a,s=(0,o.c)(7),{iconSvg:c}=e;return s[0]!==c?(t=(0,l.jsx)(j.vb,{html:c,className:"OrgOnboardingTip-module__VerifiedHTMLBox__IvGFX"}),s[0]=c,s[1]=t):t=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(ei,{size:6,color:"#6c84e9",bottom:-7,left:-7}),i=(0,l.jsx)(ei,{size:4,color:"#9e7bff",top:-4,right:4}),r=(0,l.jsx)(ei,{size:6,color:"#6c84e9",top:-7,right:-8}),s[2]=n,s[3]=i,s[4]=r):(n=s[2],i=s[3],r=s[4]),s[5]!==t?(a=(0,l.jsxs)("div",{className:"OrgOnboardingTip-module__Box_3__lCLoy",children:[t,n,i,r]}),s[5]=t,s[6]=a):a=s[6],a}function ei(e){let t,n=(0,o.c)(7),{size:i,color:r,left:a,right:s,top:c,bottom:d}=e,u=`${a}px`,m=`${s}px`,h=`${c}px`,_=`${d}px`;return n[0]!==r||n[1]!==i||n[2]!==u||n[3]!==m||n[4]!==h||n[5]!==_?(t=(0,l.jsx)("div",{style:{width:i,height:i,left:u,right:m,top:h,bottom:_,backgroundColor:r},className:"OrgOnboardingTip-module__Box_4__Kct0m"}),n[0]=r,n[1]=i,n[2]=u,n[3]=m,n[4]=h,n[5]=_,n[6]=t):t=n[6],t}function er(e){let t,n,i,r,a=(0,o.c)(7),{mediaUrl:s,mediaPreviewSrc:c}=e;return!((J.cg?.innerWidth??0){location.href=d},i[0]=d,i[1]=t):t=i[1],i[2]!==r||i[3]!==u||i[4]!==t?(n=(0,l.jsx)(W.Q,{...r,"data-ga-click":u,onClick:t,children:"Upgrade now"}),i[2]=r,i[3]=u,i[4]=t,i[5]=n):n=i[5],n}function em(){let e,t,n,i,r=(0,o.c)(9),{planSupportInfo:a,topBannersInfo:s}=(0,u.A)(),{actionsOnboardingTip:c}=s,d=(0,y.t)();return r[0]!==a?(e=(0,l.jsx)(ed,{...a,feature:"codeowners",featureName:"CODEOWNERS"}),r[0]=a,r[1]=e):e=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(K,{}),r[2]=t):t=r[2],r[3]!==c||r[4]!==d?(n=c&&(0,l.jsx)(el,{iconSvg:c.iconSvg,mediaPreviewSrc:c.mediaPreviewSrc,mediaUrl:c.mediaUrl,taskTitle:c.taskTitle,taskPath:c.taskPath,org:c.orgName,children:(0,l.jsx)(ea,{owner:d.ownerLogin,repo:d.name})}),r[3]=c,r[4]=d,r[5]=n):n=r[5],r[6]!==e||r[7]!==n?(i=(0,l.jsxs)("div",{className:"BlobTopBanners-module__Box__v_nvx",children:[e,t,n]}),r[6]=e,r[7]=n,r[8]=i):i=r[8],i}function eh(e){let t=(0,o.c)(4),{payload:n}=e;if((0,s.H)(n)){let e;return t[0]!==n.tree?(e=(0,l.jsx)(e_,{tree:n.tree}),t[0]=n.tree,t[1]=e):e=t[1],e}if((0,c.m)(n)){let e;return t[2]!==n?(e=(0,l.jsx)(ef,{blob:n.blob,payload:n}),t[2]=n,t[3]=e):e=t[3],e}return null}function e_(e){let t,n,i=(0,o.c)(3),{tree:r}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(ep,{}),i[0]=t):t=i[0],i[1]!==r?(n=(0,l.jsx)(a.X,{payload:r,children:t}),i[1]=r,i[2]=n):n=i[2],n}function ep(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.I6,{}),(0,l.jsx)(ex,{}),(0,l.jsx)(ey,{})]}),t[0]=e):e=t[0],e}function ef(e){let t,n,i,r=(0,o.c)(6),{blob:a,payload:s}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(eb,{}),r[0]=t):t=r[0],r[1]!==s?(n=(0,l.jsx)(h.U,{payload:s}),r[1]=s,r[2]=n):n=r[2],r[3]!==a||r[4]!==n?(i=(0,l.jsxs)(u.s,{blob:a,children:[t,n]}),r[3]=a,r[4]=n,r[5]=i):i=r[5],i}function eb(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(em,{}),(0,l.jsx)(M,{}),(0,l.jsx)(O,{}),(0,l.jsx)(ey,{})]}),t[0]=e):e=t[0],e}function ex(){let e,t=(0,o.c)(3),{items:n,totalCount:i}=(0,a.d)(),r=i-n.length;return t[0]!==n.length||t[1]!==r?(e=r>0?(0,l.jsxs)(d.A,{variant:"warning","data-testid":"repo-truncation-warning",className:"pr-mt-3",children:["Sorry, we had to truncate this directory to ",n.length.toLocaleString()," files. ",r.toLocaleString()," ",1===r?"entry was":"entries were"," omitted from the list. Latest commit info may be omitted."]}):null,t[0]=n.length,t[1]=r,t[2]=e):e=t[2],e}function ey(){let e,t,n=(0,o.c)(4),i=(0,r.x7)(),a="";for(let e of i)a+=e.message;return(0,m.kY)(a),n[0]!==i?(e=i.map(eg),n[0]=i,n[1]=e):e=n[1],n[2]!==e?(t=(0,l.jsx)(l.Fragment,{children:e}),n[2]=e,n[3]=t):t=n[3],t}function eg(e,t){return(0,l.jsx)(d.A,{variant:e.variant,className:"pr-mt-3",children:e.message},t)}ed.displayName="PlanSupportBanner",eu.displayName="UpgradeButton",em.displayName="BlobTopBanners",eh.displayName="CodeViewBanners",e_.displayName="TreeBannersLegacy",ep.displayName="TreeBanners",ef.displayName="BlobBannersLegacy",eb.displayName="BlobBanners",ex.displayName="TruncatedTreeBanner",ey.displayName="CodeViewContextBanners"},36040(e,t,n){n.d(t,{A:()=>T});var l=n(74848),o=n(16522),i=n(43305),r=n(53257),a=n(94352),s=n(69901),c=n(20790),d=n(36010),u=n(20049),m=n(7257),h=n(23708),_=n(56792),p=n(31595),f=n(68541),b=n(54242),x=n(23666),y=n(46249),g=n(83223),j=n(34164),v=n(52934),N=n(84763);function w(e){let t,n,i,r,a,s,c,d,w,k,S=(0,o.c)(36),{openPanel:C,readme:I,setOpenPanel:T,stickyHeaderHeight:B}=e,{displayName:A,errorMessage:L,richText:D,headerInfo:O,timedOut:R}=I;S[0]!==O?(t=O||{},S[0]=O,S[1]=t):t=S[1];let{toc:F}=t,E=(0,b.t)(),P=(0,p.l)(),$=(0,f.z)(),{canEdit:z}=(0,_.M)(),H=P&&"/"!==P?`${P}/${A}`:A,M="toc"===C?"DirectoryReadmePreview-module__readmeContainerWithToc__GvBhb":"DirectoryReadmePreview-module__readmeContainerFull__ji2VC";return S[2]!==M?(n=(0,j.$)("DirectoryReadmePreview-module__readmeContainer__VMuXm",M),S[2]=M,S[3]=n):n=S[3],S[4]!==A?(i=(0,l.jsx)(y.A,{as:"h2",className:"DirectoryReadmePreview-module__readmeHeading__FYAO8",children:(0,l.jsx)(g.A,{className:"DirectoryReadmePreview-module__readmeLink__JEGBK",href:"#readme",children:A})}),S[4]=A,S[5]=i):i=S[5],S[6]!==z||S[7]!==H||S[8]!==$||S[9]!==E?(r=z&&(0,l.jsx)(m.l,{editPath:(0,x.IO9)({repo:E,commitish:$.name,action:"edit",path:H}),editTooltip:"Edit README"}),S[6]=z,S[7]=H,S[8]=$,S[9]=E,S[10]=r):r=S[10],S[11]!==C||S[12]!==T||S[13]!==F?(a=(0,l.jsx)(v.A,{toc:F,openPanel:C,setOpenPanel:T,isDirectoryReadme:!0}),S[11]=C,S[12]=T,S[13]=F,S[14]=a):a=S[14],S[15]!==i||S[16]!==r||S[17]!==a?(s=(0,l.jsxs)("div",{className:"DirectoryReadmePreview-module__readmeHeader__WzCAR",children:[i,r,a]}),S[15]=i,S[16]=r,S[17]=a,S[18]=s):s=S[18],S[19]!==L||S[20]!==H||S[21]!==D||S[22]!==B||S[23]!==R?(c=(0,l.jsx)(u.e,{richText:D,errorMessage:L,path:H,stickyHeaderHeight:B,timedOut:R}),S[19]=L,S[20]=H,S[21]=D,S[22]=B,S[23]=R,S[24]=c):c=S[24],S[25]!==n||S[26]!==s||S[27]!==c?(d=(0,l.jsxs)("div",{id:"readme",className:n,children:[s,c]}),S[25]=n,S[26]=s,S[27]=c,S[28]=d):d=S[28],S[29]!==C||S[30]!==T||S[31]!==F?(w="toc"===C&&(0,l.jsx)(N.Z,{style:{height:"fit-content",width:"35%"},children:(0,l.jsx)(h.A,{onClose:()=>{T(void 0)},toc:F})}),S[29]=C,S[30]=T,S[31]=F,S[32]=w):w=S[32],S[33]!==w||S[34]!==d?(k=(0,l.jsxs)("div",{className:"DirectoryReadmePreview-module__readmeWrapper__vQ3UR",children:[d,w]}),S[33]=w,S[34]=d,S[35]=k):k=S[35],k}w.displayName="DirectoryReadmePreview";var k=n(75238),S=n(78485),C=n(14967);function I(e){let t,n,i,r,a,s=(0,o.c)(16),{showTree:c,treeToggleElement:d}=e,{isSticky:u,sentinelRef:m}=(0,k.z)(),h=(0,S.n)(),_=u?"FolderViewHeader-module__outerWrapperStickied__bsXRA":"FolderViewHeader-module__outerWrapper__fj8g_";s[0]!==_?(t=(0,j.$)("react-blob-view-header-sticky",_),s[0]=_,s[1]=t):t=s[1];let p=u?"FolderViewHeader-module__innerWrapperStickied__iljy9":"FolderViewHeader-module__innerWrapperNotStickied__sdhul";return s[2]!==p?(n=(0,j.$)("FolderViewHeader-module__innerWrapper__R8Bfv",p),s[2]=p,s[3]=n):n=s[3],s[4]!==u||s[5]!==c||s[6]!==d?(i=(0,l.jsx)(C.A,{isStickied:u,showTree:c,treeToggleElement:d}),s[4]=u,s[5]=c,s[6]=d,s[7]=i):i=s[7],s[8]!==n||s[9]!==i?(r=(0,l.jsx)("div",{className:n,children:i}),s[8]=n,s[9]=i,s[10]=r):r=s[10],s[11]!==m||s[12]!==h||s[13]!==t||s[14]!==r?(a=(0,l.jsx)("div",{className:t,style:h,ref:m,children:r}),s[11]=m,s[12]=h,s[13]=t,s[14]=r,s[15]=a):a=s[15],a}function T(e){let t,n,u,m,h,_,p,f=(0,o.c)(18),{tree:b,showTree:x,treeToggleElement:y}=e,{openPanel:g,setOpenPanel:j}=(0,c.Ak)();return f[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(a.D,{}),f[0]=t):t=f[0],f[1]!==b.showBranchInfobar?(n=b.showBranchInfobar&&(0,l.jsx)(d.t,{fallback:(0,l.jsx)(i.o,{}),children:(0,l.jsx)(i.k,{})}),f[1]=b.showBranchInfobar,f[2]=n):n=f[2],f[3]!==x||f[4]!==y?(u=(0,l.jsx)(I,{showTree:x,treeToggleElement:y}),f[3]=x,f[4]=y,f[5]=u):u=f[5],f[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(r.t,{}),f[6]=m):m=f[6],f[7]!==g||f[8]!==j||f[9]!==b.readme?(h=b.readme&&(0,l.jsx)(w,{openPanel:g,setOpenPanel:j,readme:b.readme,stickyHeaderHeight:50}),f[7]=g,f[8]=j,f[9]=b.readme,f[10]=h):h=f[10],f[11]!==h?(_=(0,l.jsxs)("div",{className:"d-flex flex-column gap-3",children:[m,h]}),f[11]=h,f[12]=_):_=f[12],f[13]!==n||f[14]!==u||f[15]!==_||f[16]!==b?(p=(0,l.jsxs)(s.X,{payload:b,children:[t,n,u,_]}),f[13]=n,f[14]=u,f[15]=_,f[16]=b,f[17]=p):p=f[17],p}I.displayName="FolderViewHeader",T.displayName="FileTreeViewContent"},84763(e,t,n){n.d(t,{Z:()=>r});var l=n(74848),o=n(16522),i=n(34164);let r=e=>{let t,n,r,a,s,c=(0,o.c)(10);return c[0]!==e?({children:t,className:n,...r}=e,c[0]=e,c[1]=t,c[2]=n,c[3]=r):(t=c[1],n=c[2],r=c[3]),c[4]!==n?(a=(0,i.$)("Panel-module__Box__AdYCI",n),c[4]=n,c[5]=a):a=c[5],c[6]!==t||c[7]!==r||c[8]!==a?(s=(0,l.jsx)("div",{className:a,...r,children:t}),c[6]=t,c[7]=r,c[8]=a,c[9]=s):s=c[9],s};r.displayName="Panel"},6278(e,t,n){n.d(t,{U:()=>d});var l=n(74848),o=n(16522),i=n(18660),r=n(23082),a=n(12191),s=n(56341),c=n(22520);function d(){let e,t,n=(0,o.c)(7),d=(0,a.Z)(),{permalinkShortcut:m}=(0,r.wk)();if(d.isCurrentPagePermalink()){let e;return n[0]!==m.hotkey?(e=(0,l.jsx)(i._,{buttonFocusId:c.wQ,buttonHotkey:m.hotkey,buttonTestLabel:"header-permalink-button",onlyAddHotkeyScopeButton:!0,onButtonClick:u}),n[0]=m.hotkey,n[1]=e):e=n[1],e}return n[2]!==d?(e=()=>{let e=d.createPermalink();0>window.location.href.indexOf(e)&&(0,s.kd)(e)},n[2]=d,n[3]=e):e=n[3],n[4]!==m.hotkey||n[5]!==e?(t=(0,l.jsx)(i._,{buttonFocusId:c.wQ,buttonHotkey:m.hotkey,buttonTestLabel:"header-permalink-button",onButtonClick:e}),n[4]=m.hotkey,n[5]=e,n[6]=t):t=n[6],t}function u(){}d.displayName="PermalinkShortcut"},25781(e,t,n){n.d(t,{f:()=>r});var l=n(74848),o=n(16522),i=n(7478);let r=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("div",{className:"d-flex flex-column flex-items-center pr-py-3",children:(0,l.jsx)(i.A,{"aria-label":"Loading"})}),t[0]=e):e=t[0],e};r.displayName="LoadingFallback"},58125(e,t,n){n.d(t,{T:()=>b});var l=n(74848),o=n(16522),i=n(26316),r=n(40914),a=n(88015),s=n(78597),c=n(38621),d=n(83223),u=n(41431),m=n(21373),h=n(10095);let _="EditIssues-module__Banner__NNIEO",p="EditIssues-module__BannerDescription__O1gmU",f=e=>{let t,n,i=(0,o.c)(7),{webCommitInfo:r,repositoryName:a}=e,s=r.pullRequestEnabled??!0;i[0]!==a||i[1]!==r.supportFileUrl?(t=r.supportFileUrl?(0,l.jsxs)(l.Fragment,{children:[" ","If you need help, view the ",(0,l.jsx)("b",{children:a})," ",(0,l.jsx)(d.A,{inline:!0,href:r.supportFileUrl,children:"support resources"}),"."]}):null,i[0]=a,i[1]=r.supportFileUrl,i[2]=t):t=i[2];let c=t;if(s){let e;return i[3]!==c?(e=(0,l.jsx)(u.l,{className:_,title:"You are not authorized to create pull requests in this repository",description:(0,l.jsxs)("p",{className:p,children:["The repository owner has restricted who can propose changes.",c]})}),i[3]=c,i[4]=e):e=i[4],e}return i[5]!==c?(n=(0,l.jsx)(u.l,{className:_,title:"Pull requests cannot be created in this repository",description:(0,l.jsxs)("p",{className:p,children:["The repository owner has disabled pull requests.",c]})}),i[5]=c,i[6]=n):n=i[6],n};function b(e){let t,n,u,_,p,b,x,y,g,j,v=(0,o.c)(38),{binary:N,helpUrl:w,webCommitInfo:k,repositoryName:S}=e,{shouldFork:C,lockedOnMigration:I,shouldUpdate:T,userOverRepositoryLimit:B}=k,A=i.fV.pathname;if(A.endsWith("/")){let e;v[0]===Symbol.for("react.memo_cache_sentinel")?(e=A.slice(0,-1),v[0]=e):e=v[0],A=e}let L=(0,a.Zp)(),{addToast:D}=(0,r.Y6)(),O=A+i.fV.search;v[1]!==D||v[2]!==L?(t=async e=>{e.preventDefault();try{(await (0,s.DI)(O,{method:"POST",headers:{Accept:"application/json"}})).ok?L(O):D({type:"error",message:"An unexpected error occurred. Please try again."})}catch{D({type:"error",message:"An unexpected error occurred. Please try again."})}},v[1]=D,v[2]=L,v[3]=t):t=v[3];let R=t;v[4]!==N||v[5]!==I||v[6]!==C||v[7]!==T||v[8]!==B?(n=I?{message:"This repository is currently being migrated.",description:"Sorry, you\u2019re not able to edit this repository while the migration is in progress.",icon:c.LockIcon}:C?B?{message:"You are over your repository limit",description:"Sorry, you\u2019re not able to fork this repository.",icon:c.AlertIcon}:{message:"You need to fork this repository to propose changes.",description:"Sorry, you\u2019re not able to edit this repository directly\u2014you need to fork it and propose your changes from there instead.",icon:c.GitBranchIcon}:T?{message:"Sorry, it looks like your fork is outdated!",description:"You\u2019ll have to bring it up to date before you can propose changes.",icon:c.AlertIcon}:N?{message:"Binary file content is not editable.",description:"But you can still rename or move it.",icon:c.PencilIcon}:null,v[4]=N,v[5]=I,v[6]=C,v[7]=T,v[8]=B,v[9]=n):n=v[9];let F=n;if(!F)return null;let E=k.canCreatePullRequest??!0;return v[10]!==E||v[11]!==S||v[12]!==k?(u=!E&&(0,l.jsx)(f,{webCommitInfo:k,repositoryName:S}),v[10]=E,v[11]=S,v[12]=k,v[13]=u):u=v[13],v[14]!==F.icon?(_=(0,l.jsx)(h.A,{icon:F.icon,size:"medium",className:"EditIssues-module__Octicon__eyfxj"}),v[14]=F.icon,v[15]=_):_=v[15],v[16]!==F.message?(p=(0,l.jsx)("h3",{className:"EditIssues-module__Text__hMbmM",children:F.message}),v[16]=F.message,v[17]=p):p=v[17],v[18]!==F.description?(b=(0,l.jsx)("span",{className:"EditIssues-module__Text_1__pHLrN",children:F.description}),v[18]=F.description,v[19]=b):b=v[19],v[20]!==R||v[21]!==C||v[22]!==T||v[23]!==B?(x=(C&&!B||T)&&(0,l.jsx)("form",{onSubmit:R,"data-turbo":"false",method:"post",action:O,"data-testid":"edit-issues-form",children:(0,l.jsx)(m.Q,{type:"submit",variant:"primary",children:C?"Fork this repository":"Update your fork"})}),v[20]=R,v[21]=C,v[22]=T,v[23]=B,v[24]=x):x=v[24],v[25]!==w||v[26]!==C||v[27]!==B?(y=C&&B?(0,l.jsx)(d.A,{href:`${w}/repositories/creating-and-managing-repositories/repository-limits`,children:"Learn more repository limits"}):(0,l.jsx)(d.A,{href:`${w}/articles/fork-a-repo`,children:"Learn more about forks"}),v[25]=w,v[26]=C,v[27]=B,v[28]=y):y=v[28],v[29]!==_||v[30]!==p||v[31]!==b||v[32]!==x||v[33]!==y?(g=(0,l.jsxs)("div",{className:"EditIssues-module__Box__JB8C6",children:[_,p,b,x,y]}),v[29]=_,v[30]=p,v[31]=b,v[32]=x,v[33]=y,v[34]=g):g=v[34],v[35]!==u||v[36]!==g?(j=(0,l.jsxs)(l.Fragment,{children:[u,g]}),v[35]=u,v[36]=g,v[37]=j):j=v[37],j}f.displayName="PullRequestInfoBanner",b.displayName="EditIssues"},98296(e,t,n){n.d(t,{r:()=>r});var l=n(74848),o=n(16522),i=n(59134);function r(e){let t,n,r=(0,o.c)(5),{forkName:a,forkOwner:s,canCreatePullRequest:c}=e,d=`${s}/${a}`;r[0]!==d?(t=(0,l.jsx)("b",{children:d}),r[0]=d,r[1]=t):t=r[1];let u=c??!0?", so you can send a pull request":"";return r[2]!==t||r[3]!==u?(n=(0,l.jsxs)(i.A,{"aria-live":"polite",className:"EditingForkBanner-module__Flash__xcvcE",children:["You\u2019re making changes in a project you don\u2019t have write access to. Submitting a change will write it to a new branch in your fork ",t,u,"."]}),r[2]=t,r[3]=u,r[4]=n):n=r[4],n}r.displayName="EditingForkBanner"},39944(e,t,n){n.d(t,{U:()=>b,J:()=>x});var l=n(74848),o=n(16522),i=n(68541),r=n(54242),a=n(23666),s=n(77236),c=n(38621),d=n(59134),u=n(10095),m=n(96540),h=n(90441),_=n(62682);let p="BlameBanners-module__Flash___ifEP",f="BlameBanners-module__Box__Qb4ov";function b(e){let t,n,i=(0,o.c)(3),{payload:r}=e,a="blame"in r?r.blame:void 0;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(x,{}),i[0]=t):t=i[0],i[1]!==a?(n=(0,l.jsx)(h.k,{blame:a,children:t}),i[1]=a,i[2]=n):n=i[2],n}function x(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y,{}),(0,l.jsx)(j,{})]}),t[0]=e):e=t[0],e}function y(){let e,t,n,_=(0,o.c)(11),b=(0,r.t)(),x=(0,i.z)().name,y=(0,h.O)(),[j,v]=m.useState(!0);if(!y)return null;let N=y?.ignoreRevs,w=y?.errorType;if(!w)return null;_[0]!==N.path||_[1]!==x||_[2]!==b.name||_[3]!==b.ownerLogin?(e=()=>(0,l.jsx)(s.N,{to:(0,a.nD_)({repo:b.name,owner:b.ownerLogin,commitish:x,filePath:N.path}),children:N.path}),_[0]=N.path,_[1]=x,_[2]=b.name,_[3]=b.ownerLogin,_[4]=e):e=_[4];let k=e;return _[5]!==w||_[6]!==k||_[7]!==j?(t=j&&(0,l.jsxs)(d.A,{variant:"warning",className:p,children:[(0,l.jsx)(u.A,{icon:c.InfoIcon}),(0,l.jsx)(g,{blameErrorType:w,renderIgnoreRefsLink:k}),(0,l.jsx)("div",{onClick:()=>v(!1),className:f,children:(0,l.jsx)(u.A,{icon:c.XIcon})})]}),_[5]=w,_[6]=k,_[7]=j,_[8]=t):t=_[8],_[9]!==t?(n=(0,l.jsx)(l.Fragment,{children:t}),_[9]=t,_[10]=n):n=_[10],n}function g(e){let t=(0,o.c)(10),{blameErrorType:n,renderIgnoreRefsLink:i}=e;switch(n){case"invalid_ignore_revs":{let e,n;return t[0]!==i?(e=i(),t[0]=i,t[1]=e):e=t[1],t[2]!==e?(n=(0,l.jsxs)("span",{children:["Your ",e," file is invalid."]}),t[2]=e,t[3]=n):n=t[3],n}case"ignore_revs_too_big":{let e,n;return t[4]!==i?(e=i(),t[4]=i,t[5]=e):e=t[5],t[6]!==e?(n=(0,l.jsxs)("span",{children:["Your ",e," file is too large."]}),t[6]=e,t[7]=n):n=t[7],n}case"symlink_disallowed":{let e;return t[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("span",{children:"Symlinks are not supported."}),t[8]=e):e=t[8],e}case"blame_timeout":{let e;return t[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("span",{children:"Your blame took too long to compute."}),t[9]=e):e=t[9],e}default:(0,_.x)(n)}}function j(){let e,t,n,_,b=(0,o.c)(14),x=(0,r.t)(),y=(0,i.z)().name,g=(0,h.O)()?.ignoreRevs,[j,v]=m.useState(!0);if(!g?.present)return null;b[0]!==g.path||b[1]!==y||b[2]!==x.name||b[3]!==x.ownerLogin?(e=(0,a.nD_)({repo:x.name,owner:x.ownerLogin,commitish:y,filePath:g.path}),b[0]=g.path,b[1]=y,b[2]=x.name,b[3]=x.ownerLogin,b[4]=e):e=b[4],b[5]!==g.path||b[6]!==e?(t=(0,l.jsx)(s.N,{to:e,children:g.path}),b[5]=g.path,b[6]=e,b[7]=t):t=b[7];let N=t;return b[8]!==g.timedOut||b[9]!==N||b[10]!==j?(n=j&&(0,l.jsxs)(d.A,{className:p,children:[(0,l.jsx)(u.A,{icon:c.InfoIcon}),g.timedOut?(0,l.jsxs)("span",{children:["Failed to ignore revisions in ",N,"."]}):(0,l.jsxs)("span",{children:["Ignoring revisions in ",N,"."]}),(0,l.jsx)("div",{onClick:()=>v(!1),className:f,children:(0,l.jsx)(u.A,{icon:c.XIcon})})]}),b[8]=g.timedOut,b[9]=N,b[10]=j,b[11]=n):n=b[11],b[12]!==n?(_=(0,l.jsx)(l.Fragment,{children:n}),b[12]=n,b[13]=_):_=b[13],_}b.displayName="BlameBannersLegacy",x.displayName="BlameBanners",y.displayName="BlameErrorBanner",g.displayName="BlameErrorText",j.displayName="IgnoreRevsBanner"},33346(e,t,n){n.d(t,{M:()=>P,v:()=>$});var l=n(74848),o=n(16522),i=n(70170),r=n(69184),a=n(7231),s=n(825),c=n(29829),d=n(38621),u=n(26108),m=n(38750),h=n(10095),_=n(96540),p=n(38841),f=n(4625),b=n(39775),x=n(57920);let y=_.memo(function(e){let t,n,i,r=(0,o.c)(10),{treeSymbols:a,onTreeSymbolSelect:s}=e;r[0]!==a?(t=a.some(v),r[0]=a,r[1]=t):t=r[1];let c=!t;if(r[2]!==s||r[3]!==a){let e;r[5]!==s?(e=(e,t)=>(0,l.jsx)(j,{id:`${t}${e.symbol.name}`,symbol:e,depth:e.isParent?1:2,onSelect:s},`${t}${e.symbol.name}`),r[5]=s,r[6]=e):e=r[6],n=a.map(e),r[2]=s,r[3]=a,r[4]=n}else n=r[4];return r[7]!==c||r[8]!==n?(i=(0,l.jsx)("div",{id:"filter-results",className:"CodeNavSymbolTree-module__filterResults__tenjX",children:(0,l.jsx)(f.G,{"aria-label":"Code Navigation",flat:c,children:n})}),r[7]=c,r[8]=n,r[9]=i):i=r[9],i});function g(e){let t,n,i,r,a=(0,o.c)(10),{symbol:s}=e;return a[0]!==s.symbol.kind?(t=(0,l.jsx)(x.e,{symbolKind:s.symbol.kind}),a[0]=s.symbol.kind,a[1]=t):t=a[1],a[2]!==s.symbol.name?(n=(0,l.jsx)("span",{children:s.symbol.name}),a[2]=s.symbol.name,a[3]=n):n=a[3],a[4]!==s.symbol.name||a[5]!==n?(i=(0,l.jsx)(b.A,{title:s.symbol.name,className:"CodeNavSymbolTree-module__truncate__GO8ge",children:n}),a[4]=s.symbol.name,a[5]=n,a[6]=i):i=a[6],a[7]!==t||a[8]!==i?(r=(0,l.jsxs)("div",{className:"CodeNavSymbolTree-module__treeContent__opWeK",children:[t," ",i]}),a[7]=t,a[8]=i,a[9]=r):r=a[9],r}function j(e){let t,n,i,r,a,s=(0,o.c)(19),{symbol:c,depth:d,onSelect:u,id:m}=e,[h,p]=(0,_.useState)(d<=7);return s[0]!==u||s[1]!==c.symbol?(t=()=>u(c.symbol),s[0]=u,s[1]=c.symbol,s[2]=t):t=s[2],s[3]!==h?(n=()=>p(!h),s[3]=h,s[4]=n):n=s[4],s[5]!==c?(i=(0,l.jsx)(g,{symbol:c}),s[5]=c,s[6]=i):i=s[6],s[7]!==d||s[8]!==u||s[9]!==c.children||s[10]!==c.isParent?(r=c.isParent&&c.children.length>0&&(0,l.jsx)(f.G.SubTree,{children:c.children.map((e,t)=>(0,l.jsx)(j,{symbol:e,depth:e.isParent?d+1:d,onSelect:u,id:`${t}${e.symbol.name}`},`${t}${e.symbol.name}`))}),s[7]=d,s[8]=u,s[9]=c.children,s[10]=c.isParent,s[11]=r):r=s[11],s[12]!==m||s[13]!==h||s[14]!==t||s[15]!==n||s[16]!==i||s[17]!==r?(a=(0,l.jsxs)(f.G.Item,{onSelect:t,expanded:h,onExpandedChange:n,id:m,children:[i,r]}),s[12]=m,s[13]=h,s[14]=t,s[15]=n,s[16]=i,s[17]=r,s[18]=a):a=s[18],a}function v(e){return e.isParent||e.children.length>0}y.displayName="CodeNavSymbolTree",g.displayName="CodeNavTreeContent",j.displayName="CodeNavTreeItem";var N=n(49481),w=n(29941),k=n(45800),S=n(18990),C=n(29368),I=n(83223),T=n(34164);let B=_.memo(function(e){let t,n,i,r,a,s,c,d,u,m,h=(0,o.c)(27),{symbol:_,filterText:p,onSelect:f,focused:b,index:y}=e,g=`jump-to-item-${y}`,j=b&&"JumpToItem-module__jumpToItemFocused__qwxm8";return h[0]!==j?(t=(0,T.$)("JumpToItem-module__jumpToItem__ctO6c",j),h[0]=j,h[1]=t):t=h[1],h[2]!==f||h[3]!==_?(n=()=>f(_),h[2]=f,h[3]=_,h[4]=n):n=h[4],h[5]!==_?(i=_.href(),h[5]=_,h[6]=i):i=h[6],h[7]===Symbol.for("react.memo_cache_sentinel")?(r={display:"flex"},h[7]=r):r=h[7],h[8]!==_.kind?(a=(0,l.jsx)(x.e,{symbolKind:_.kind}),h[8]=_.kind,h[9]=a):a=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",minWidth:0,alignItems:"flex-end"},h[10]=s):s=h[10],h[11]!==p||h[12]!==_.fullyQualifiedName||h[13]!==_.name?(c=(0,l.jsx)("div",{style:s,children:(0,l.jsx)(C.z,{search:p,text:_.name,overflowWidth:175,hideOverflow:!0},_.fullyQualifiedName)}),h[11]=p,h[12]=_.fullyQualifiedName,h[13]=_.name,h[14]=c):c=h[14],h[15]!==a||h[16]!==c?(d=(0,l.jsxs)("div",{style:r,children:[a," ",c]}),h[15]=a,h[16]=c,h[17]=d):d=h[17],h[18]!==d||h[19]!==i?(u=(0,l.jsx)(I.A,{href:i,className:"JumpToItem-module__jumpToLink__DK4xw",children:d}),h[18]=d,h[19]=i,h[20]=u):u=h[20],h[21]!==b||h[22]!==g||h[23]!==u||h[24]!==t||h[25]!==n?(m=(0,l.jsx)(S.l.Item,{role:"option",id:g,"aria-selected":b,className:t,onSelect:n,children:u}),h[21]=b,h[22]=g,h[23]=u,h[24]=t,h[25]=n,h[26]=m):m=h[26],m});function A(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,l.jsx)(L,{...e}),n[0]=e,n[1]=t):t=n[1],t}function L(e){let t,n,i,r,a,s,c=(0,o.c)(18),{codeSymbols:d,filterText:u,onSelect:m,focusedIndex:h}=e,p=(0,_.useRef)(d.length),f=(0,_.useRef)("");c[0]===Symbol.for("react.memo_cache_sentinel")?(t={bindKeys:w.z0.ArrowVertical|w.z0.HomeAndEnd},c[0]=t):t=c[0];let{containerRef:b}=(0,k.G)(t);if(c[1]!==d.length?(n=()=>{d.length===p.current&&(f.current=f.current+"\u200B");let e=1===d.length?"symbol":"symbols";(0,N.i)(`${d.length} ${e} found${f.current}`),p.current=d.length},c[1]=d.length,c[2]=n):n=c[2],c[3]!==d?(i=[d],c[3]=d,c[4]=i):i=c[4],(0,_.useEffect)(n,i),c[5]===Symbol.for("react.memo_cache_sentinel")?(r={maxHeight:"68vh",overflowY:"auto"},c[5]=r):r=c[5],c[6]!==d||c[7]!==u||c[8]!==h||c[9]!==m){let e;c[11]!==u||c[12]!==h||c[13]!==m?(e=(e,t)=>{let{name:n,lineNumber:o}=e;return(0,l.jsx)(B,{symbol:e,filterText:u,onSelect:m,focused:t===h,index:t},`${n}_${o}`)},c[11]=u,c[12]=h,c[13]=m,c[14]=e):e=c[14],a=d.map(e),c[6]=d,c[7]=u,c[8]=h,c[9]=m,c[10]=a}else a=c[10];return c[15]!==b||c[16]!==a?(s=(0,l.jsx)(S.l,{ref:b,role:"listbox",id:"filter-results","aria-orientation":"vertical",style:r,children:a}),c[15]=b,c[16]=a,c[17]=s):s=c[17],s}B.displayName="JumpToItem",A.displayName="JumpToItemList",L.displayName="FullJumpToItemList";var D=n(54242),O=n(23666);function R(e){let t,n,i,r,a,s,c,u=(0,o.c)(18),{filterText:m,isFindInFile:p}=e,[f,b]=(0,_.useState)(p?"No matches found":"No symbols found"),x=(0,D.t)(),y=(0,_.useRef)(!0);u[0]!==f?(t=()=>{if(y.current){y.current=!1;return}b(`${f}\u200B`)},u[0]=f,u[1]=t):t=u[1];let g=(0,_.useEffectEvent)(t);return u[2]!==g?(n=()=>{g()},u[2]=g,u[3]=n):n=u[3],u[4]!==m?(i=[m],u[4]=m,u[5]=i):i=u[5],(0,_.useEffect)(n,i),u[6]!==m?(r=""===m&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"SymbolZeroState-module__emptyStateCard__e5E1e",children:(0,l.jsxs)("div",{className:"SymbolZeroState-module__emptyStateCardContent__RbEbR",children:[(0,l.jsx)("h3",{className:"SymbolZeroState-module__emptyStateHeading__JaYE9",children:"Symbol outline not available for this file"}),(0,l.jsx)("div",{className:"SymbolZeroState-module__emptyStateDescription__vH8Ue",children:"To inspect a symbol, try clicking on the symbol directly in the code view."})]})}),(0,l.jsxs)("div",{className:"SymbolZeroState-module__languageSupportNote__vcV7X",children:[" ","Code navigation supports a limited number of languages."," ",(0,l.jsx)(I.A,{inline:!0,href:"https://docs.github.com/repositories/working-with-files/using-files/navigating-code-on-github",children:"See which languages are supported."})]})]}),u[6]=m,u[7]=r):r=u[7],u[8]!==m||u[9]!==f?(a=m&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.A,{icon:d.SearchIcon,size:24}),(0,l.jsx)("h3",{className:"SymbolZeroState-module__filterResultHeading__zP8aN",role:"alert","aria-relevant":"all",children:f})]}),u[8]=m,u[9]=f,u[10]=a):a=u[10],u[11]!==m||u[12]!==x?(s=m&&(0,l.jsxs)("span",{id:"filter-zero-state",className:"SymbolZeroState-module__filterZeroState__BFsRe",children:["No lines in this file contain that string.",(0,l.jsx)("br",{}),"Search in"," ",(0,l.jsxs)(I.A,{href:(0,O.Y8Y)({owner:x.ownerLogin,repo:x.name,searchTerm:m}),inline:!0,children:[x.ownerLogin,"/",x.name]})," ","or"," ",(0,l.jsx)(I.A,{href:(0,O.GGt)({searchTerm:m}),inline:!0,children:"all of GitHub"})]}),u[11]=m,u[12]=x,u[13]=s):s=u[13],u[14]!==r||u[15]!==a||u[16]!==s?(c=(0,l.jsxs)("div",{className:"SymbolZeroState-module__container__He2Pg",children:[r,a,s]}),u[14]=r,u[15]=a,u[16]=s,u[17]=c):c=u[17],c}R.displayName="SymbolZeroState";let F=_.memo(A);function E(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(h.A,{"aria-hidden":"true",icon:d.FilterIcon}),t[0]=e):e=t[0],e}F.displayName="MemoizedJumpToItemList",E.displayName="FilterIconVisual";let P="symbols-pane-header";function $(e){let t,n,i,r,a,d,u,m,h,p,f,b,x,g,j,v,N,w=(0,o.c)(45),{codeSymbols:k,onSymbolSelect:S,treeSymbols:C,autoFocusSearch:I,onClose:T}=e,[B,A]=(0,_.useState)(""),L=(0,_.useDeferredValue)(B),[D,O]=(0,_.useState)(-1);e:{var E,$;let e,n;if(""===L){t=k;break e}w[0]!==k||w[1]!==L?(E=L,$=k,n=E.replace(/\s/g,""),e=(0,s.d)($,e=>{let t=(0,c.dt)(e.name,n);return t>0?{score:t,text:e.name}:null},c.UD),w[0]=k,w[1]=L,w[2]=e):e=w[2],t=e}let H=t,M=H?.length>0,U=k?.length>0,W=C.length>0,q=U||W,G=!W||""!==B,K=!M&&G?"filter-zero-state":"filter-results",Q=-1===D?void 0:`jump-to-item-${D}`;w[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{A(""),O(-1)},w[3]=n):n=w[3];let Y=n;w[4]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{A(e),O(-1)},w[4]=i):i=w[4];let X=i,Z=(0,_.useRef)(S);w[5]!==S?(r=()=>{Z.current=S},a=[S],w[5]=S,w[6]=r,w[7]=a):(r=w[6],a=w[7]),(0,_.useEffect)(r,a),w[8]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{Z.current(e)},w[8]=d):d=w[8];let J=d,ee=(0,_.useRef)(T);w[9]!==T?(u=()=>{ee.current=T},m=[T],w[9]=T,w[10]=u,w[11]=m):(u=w[10],m=w[11]),(0,_.useEffect)(u,m),w[12]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{ee.current()},w[12]=h):h=w[12];let et=h;w[13]!==H||w[14]!==D?(p=e=>{"ArrowDown"===e.key||("N"===e.key||"n"===e.key)&&e.ctrlKey?O(Math.min(D+1,H.length-1)):"ArrowUp"===e.key||("P"===e.key||"p"===e.key)&&e.ctrlKey?O(Math.max(D-1,0)):"Enter"===e.key&&H[D]?J(H[D]):"Escape"===e.key&&et()},w[13]=H,w[14]=D,w[15]=p):p=w[15];let en=p;return w[16]===Symbol.for("react.memo_cache_sentinel")?(f=(0,l.jsx)(z,{onClose:et}),w[16]=f):f=w[16],w[17]!==q?(b=q&&(0,l.jsx)("p",{className:"CodeNavSymbolNavigation-module__description__n1e85",children:"Find definitions and references for functions and other symbols in this file by clicking a symbol below or in the code."}),w[17]=q,w[18]=b):b=w[18],w[19]!==Q||w[20]!==K||w[21]!==I||w[22]!==B||w[23]!==en||w[24]!==U?(x=(U||""!==B)&&(0,l.jsx)(V,{filterText:B,ariaControls:K,ariaActivedescendant:Q,autoFocusSearch:I,onClear:Y,onChange:X,onKeyDown:en}),w[19]=Q,w[20]=K,w[21]=I,w[22]=B,w[23]=en,w[24]=U,w[25]=x):x=w[25],w[26]!==G||w[27]!==C?(g=!G&&(0,l.jsx)("div",{className:"CodeNavSymbolNavigation-module__treeWrapper__b4i2M",children:(0,l.jsx)(y,{treeSymbols:C,onTreeSymbolSelect:J})}),w[26]=G,w[27]=C,w[28]=g):g=w[28],w[29]!==L||w[30]!==H||w[31]!==D||w[32]!==M||w[33]!==G?(j=M&&G&&(0,l.jsx)(F,{codeSymbols:H,filterText:L,onSelect:J,focusedIndex:D}),w[29]=L,w[30]=H,w[31]=D,w[32]=M,w[33]=G,w[34]=j):j=w[34],w[35]!==B||w[36]!==M||w[37]!==G?(v=!M&&G&&(0,l.jsx)("span",{className:"CodeNavSymbolNavigation-module__zeroStateWrapper__u5FBT",children:(0,l.jsx)(R,{filterText:B})}),w[35]=B,w[36]=M,w[37]=G,w[38]=v):v=w[38],w[39]!==b||w[40]!==x||w[41]!==g||w[42]!==j||w[43]!==v?(N=(0,l.jsxs)("div",{className:"CodeNavSymbolNavigation-module__container__kfSZY","aria-labelledby":P,children:[f,b,x,g,j,v]}),w[39]=b,w[40]=x,w[41]=g,w[42]=j,w[43]=v,w[44]=N):N=w[44],N}$.displayName="CodeNavSymbolNavigation";let z=_.memo(function(e){let t,n,i=(0,o.c)(3),{onClose:r}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)("h2",{className:"CodeNavSymbolNavigation-module__headerTitle__e4wuX",id:P,tabIndex:-1,children:"Symbols"}),i[0]=t):t=i[0],i[1]!==r?(n=(0,l.jsxs)("div",{className:"CodeNavSymbolNavigation-module__headerRow__HVKGZ",children:[t,(0,l.jsx)(u.K,{"aria-label":"Close symbols",tooltipDirection:"w","data-hotkey":"Escape",icon:d.XIcon,className:"CodeNavSymbolNavigation-module__closeButton__XOIhD",onClick:r,variant:"invisible"})]}),i[1]=r,i[2]=n):n=i[2],n});function H(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(r.E,{children:(0,l.jsx)("span",{className:"CodeNavSymbolNavigation-module__shortcutsBox__oT2Mn",children:(0,l.jsx)("kbd",{children:"r"})})}),t[0]=e):e=t[0],e}function M(e){let t,n,r,s,c,u,h,f,b,x=(0,o.c)(23),{filterText:y,ariaControls:g,ariaActivedescendant:j,autoFocusSearch:v,onClear:N,onChange:w,onKeyDown:k}=e,S=(0,_.useRef)(null),{sendRepoKeyDownEvent:C}=(0,a.T)();x[0]!==v?(t=()=>{v&&S.current?.focus()},n=[v],x[0]=v,x[1]=t,x[2]=n):(t=x[1],n=x[2]),(0,_.useEffect)(t,n),x[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{S.current?.focus()},x[3]=r):r=x[3],(0,p.Gp)(r),x[4]!==C?(s=(0,i.s)(()=>{C("BLOB_SYMBOLS_MENU.FILTER_SYMBOLS")},400),x[4]=C,x[5]=s):s=x[5];let I=s;x[6]!==I?(c=()=>()=>{I.cancel()},u=[I],x[6]=I,x[7]=c,x[8]=u):(c=x[7],u=x[8]),(0,_.useEffect)(c,u);let T=""!==y;x[9]!==T||x[10]!==N?(h=T?(0,l.jsx)(m.A.Action,{onClick:N,icon:d.XCircleFillIcon,"aria-label":"Clear input","data-testid":"clear-search",className:"CodeNavSymbolNavigation-module__TextInput_Action__RxjJa"}):(0,l.jsx)(l.Fragment,{}),x[9]=T,x[10]=N,x[11]=h):h=x[11];let B=h,A=T?void 0:H;x[12]!==I||x[13]!==w?(f=e=>{w(e.target.value),I()},x[12]=I,x[13]=w,x[14]=f):f=x[14];let L=f;return x[15]!==j||x[16]!==g||x[17]!==y||x[18]!==L||x[19]!==k||x[20]!==B||x[21]!==A?(b=(0,l.jsx)(m.A,{block:!0,leadingVisual:E,ref:S,trailingAction:B,trailingVisual:A,className:"CodeNavSymbolNavigation-module__filterInput__DQChX",placeholder:"Filter symbols",value:y,name:"Filter symbols","aria-label":"Filter symbols","aria-controls":g,"aria-expanded":"true","aria-autocomplete":"list","aria-activedescendant":j,onKeyDown:k,role:"combobox",onChange:L}),x[15]=j,x[16]=g,x[17]=y,x[18]=L,x[19]=k,x[20]=B,x[21]=A,x[22]=b):b=x[22],b}z.displayName="SymbolPaneHeader",H.displayName="Shortcuts",M.displayName="SymbolFilterInput";let V=_.memo(M);V.displayName="MemoizedSymbolFilterInput"},7679(e,t,n){n.d(t,{a:()=>i,t:()=>r});var l=n(74848),o=n(16522);let i="find-result-marks-container";function r(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("div",{className:"ScrollMarksContainer-module__scrollMarksContainer__Eu7uU",id:i}),t[0]=e):e=t[0],e}r.displayName="ScrollMarksContainer"},57920(e,t,n){n.d(t,{e:()=>r});var l=n(74848),o=n(16522),i=n(34164);function r(e){let t,n,r,a,s,c,d=(0,o.c)(16),{symbolKind:u,showFullSymbol:m}=e;if(!u)return null;let h=!m&&"SymbolIndicator-module__symbolWrapperCompact__UNWj3";d[0]!==h?(t=(0,i.$)("SymbolIndicator-module__symbolWrapper__mSRj8",h),d[0]=h,d[1]=t):t=d[1],d[2]!==u.plColor?(n=(0,l.jsx)("div",{className:"SymbolIndicator-module__symbolBackground__tphNO",style:{backgroundColor:u.plColor}}),d[2]=u.plColor,d[3]=n):n=d[3];let _=m?"SymbolIndicator-module__symbolLabelMedium__Mm88t":"SymbolIndicator-module__symbolLabelSmall__rzeMO";d[4]!==_?(r=(0,i.$)("SymbolIndicator-module__symbolLabel__qg6oQ",_),d[4]=_,d[5]=r):r=d[5],d[6]!==u.plColor?(a={color:u.plColor},d[6]=u.plColor,d[7]=a):a=d[7];let p=m?u.fullName:u.shortName;return d[8]!==r||d[9]!==a||d[10]!==p?(s=(0,l.jsx)("div",{className:r,style:a,children:p}),d[8]=r,d[9]=a,d[10]=p,d[11]=s):s=d[11],d[12]!==t||d[13]!==n||d[14]!==s?(c=(0,l.jsxs)("div",{className:t,children:[n,s]}),d[12]=t,d[13]=n,d[14]=s,d[15]=c):c=d[15],c}r.displayName="SymbolIndicator"},37681(e,t,n){n.d(t,{W:()=>g,k:()=>y});var l=n(74848),o=n(62269),i=n(31595),r=n(68541),a=n(76071),s=n(54242),c=n(23666),d=n(88015),u=n(38750),m=n(73077),h=n(49305),_=n(96540),p=n(40961),f=n(77879),b=n(79250),x=n(49782);function y(){return(0,f.A)().workflowRedirectUrl}function g({onBlamePage:e,onDismiss:t,maxLineNumber:n}){let f=(0,d.Zp)(),y=(0,b.fY)(),j=(0,b.aM)(),v=(0,b.ue)(),N=(0,_.useRef)(y?j:1),w=(0,_.useRef)(!0),[k,S]=(0,_.useState)(!0),C=(0,_.useRef)(j!==v&&y?v:null),I=(0,i.l)(),T=(0,r.z)(),B=(0,s.t)(),A=(0,_.useRef)(null),L=(0,_.useRef)(N.current?`#L${N.current}${C.current?`-L${C.current}`:""}`:""),D=e?(0,c.buO)({repo:B.name,owner:B.ownerLogin,filePath:I,commitish:T.name}):(0,c.nD_)({repo:B.name,owner:B.ownerLogin,filePath:I,commitish:T.name}),O=(0,_.useEffectEvent)(()=>{A&&A.current&&(A.current.value=y?`${j}${v!==j?`-${v}`:""}`:"1",A.current.focus())});(0,_.useEffect)(()=>{O()},[]);let R=(e,n)=>{f(`${e}${n}`);let l=(0,o.$c)(n);if(!l.blobRange?.start?.line||!w.current){S(w.current),setTimeout(()=>{A.current?.focus()},25);return}(0,x.f)({line:l.blobRange.start.line}),t()};return(0,p.createPortal)((0,l.jsxs)(h.A,{isOpen:!0,onDismiss:t,children:[(0,l.jsx)(h.A.Header,{children:"Jump to line"}),(0,l.jsxs)("div",{className:"BlobNavigationButtons-module__dialogBody__H6PGV",style:{paddingBottom:k?"16px":0},children:[(0,l.jsx)("div",{className:"BlobNavigationButtons-module__inputWrapper__RsDO_",children:(0,l.jsx)(u.A,{ref:A,"aria-invalid":!k,"aria-describedby":k?"":"goToLineErrorValidation",className:"BlobNavigationButtons-module__lineInput__iSNSE",placeholder:"Jump to line...",onChange:e=>{let t=e.target.value;A&&A.current&&(A.current.value=t),function(e){let t=!0;if(""===e.trim()&&(N.current=1),e.startsWith("-")&&n){let l=parseInt(e,10);if(!Number.isNaN(l)&&l<0){let e=n+l+1;e<=0&&(e=1,t=!1),N.current=e}}else if(e.includes("-")){let[l,o]=e.split("-"),i=parseInt(l,10),r=parseInt(o,10);!Number.isNaN(i)&&i>0&&(N.current=n?Math.min(i,n):i,t=void 0!==n&&i<=n),!Number.isNaN(r)&&r>0&&(C.current=n?Math.min(r,n):r,t=t&&void 0!==n&&r<=n)}else{let l=parseInt(e,10);!Number.isNaN(l)&&l>0?(N.current=n?Math.min(l,n):l,t=void 0!==n&&l<=n):t=""===e}w.current=t,t&&!k&&S(!0),L.current=`#L${N.current}${C.current?`-L${C.current}`:""}`}(t)},onFocus:()=>{A&&A.current&&A.current.select()},onKeyDown:e=>{if("Enter"===e.key){if("Enter"===e.key&&!w.current){S(w.current),setTimeout(()=>{A.current?.focus()},25);return}R(D,L.current)}}})}),(0,l.jsx)(m.z,{href:k?D+L.current:void 0,onClick:e=>{e.preventDefault(),R(D,L.current)},className:a.A.linkButton,children:"Go"})]}),!k&&(0,l.jsx)("div",{role:"alert",id:"goToLineErrorValidation",className:"BlobNavigationButtons-module__errorAlert__R_kfL",children:"Invalid line number"})]}),document.body)}g.displayName="GoToLineDialog"},44808(e,t,n){n.d(t,{k:()=>w});var l=n(74848),o=n(16522),i=n(51336),r=n(31595),a=n(54242),s=n(24016),c=n(46249),d=n(59134),u=n(98296),m=n(58125),h=n(45360),_=n(40846),p=n(16497),f=n(38621),b=n(26108),x=n(83223),y=n(7478),g=n(34164),j=n(96540);function v(e){let t,n,i,r,a,c,d,u,m,g,v=(0,o.c)(34),{diff:w,index:k}=e,[S,C]=(0,j.useState)(!1),[I,T]=(0,j.useState)(!1),[B,A]=(0,j.useState)(!1);if(v[0]!==w.deletions){t=[];for(let e=0;e<5;e++)w.deletions>e?t.push("deletion"):t.push("neutral");v[0]=w.deletions,v[1]=t}else t=v[1];if(w.diffHTML){let e;return v[2]!==w.diffHTML?(e=(0,l.jsx)("div",{id:"readme",className:"readme prose-diff html-blob blob",children:(0,l.jsx)(p.vb,{html:w.diffHTML,className:"markdown-body container-lg"})}),v[2]=w.diffHTML,v[3]=e):e=v[3],e}let L=`diff-entry-${k}`,D=S?"Expand diff":"Collapse diff",O=S?f.ChevronRightIcon:f.ChevronDownIcon;v[4]!==S?(n=()=>C(!S),v[4]=S,v[5]=n):n=v[5],v[6]!==D||v[7]!==O||v[8]!==n?(i=(0,l.jsx)(b.K,{"aria-label":D,icon:O,size:"small",tooltipDirection:"s",variant:"invisible",onClick:n}),v[6]=D,v[7]=O,v[8]=n,v[9]=i):i=v[9],v[10]!==w.deletions?(r=(0,l.jsx)("span",{className:"color-fg-muted",children:w.deletions}),v[10]=w.deletions,v[11]=r):r=v[11],v[12]!==t?(a=(0,l.jsx)(s.uP,{squares:t}),v[12]=t,v[13]=a):a=v[13];let R=`#diff-entry-${k}`;return v[14]!==w.path||v[15]!==R?(c=(0,l.jsx)(x.A,{href:R,className:"color-fg-default",children:w.path}),v[14]=w.path,v[15]=R,v[16]=c):c=v[16],v[17]!==w.path?(d=(0,l.jsx)(h.T,{textToCopy:w.path,ariaLabel:"Copy path to clipboard"}),v[17]=w.path,v[18]=d):d=v[18],v[19]!==d||v[20]!==i||v[21]!==r||v[22]!==a||v[23]!==c?(u=(0,l.jsxs)("div",{className:"DeleteViewEntry-module__diffHeader__m2JeV",children:[i,r,a,c,d]}),v[19]=d,v[20]=i,v[21]=r,v[22]=a,v[23]=c,v[24]=u):u=v[24],v[25]!==S||v[26]!==w.loadDiffPath||v[27]!==B||v[28]!==I?(m=S?null:(0,l.jsx)("div",{className:I?"DeleteViewEntry-module__diffContentCollapsed__C_Yd2":"DeleteViewEntry-module__diffContent__uowND",tabIndex:-1,children:I?(0,l.jsx)(_.x,{"data-testid":"delete-diff-fragment",src:w.loadDiffPath,onLoad:()=>A(!0),children:!B&&(0,l.jsx)("div",{className:"DeleteViewEntry-module__loadingSpinner__B6s1I",children:(0,l.jsx)(y.A,{})})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N,{}),(0,l.jsxs)("div",{className:"DeleteViewEntry-module__diffOverlay__CKyQ4",children:[(0,l.jsx)(x.A,{as:"button",onClick:()=>T(!0),inline:!0,children:"Load diff"}),"This file was deleted."]})]})}),v[25]=S,v[26]=w.loadDiffPath,v[27]=B,v[28]=I,v[29]=m):m=v[29],v[30]!==L||v[31]!==u||v[32]!==m?(g=(0,l.jsxs)("div",{className:"DeleteViewEntry-module__diffEntry__PYxaY",id:L,children:[u,m]}),v[30]=L,v[31]=u,v[32]=m,v[33]=g):g=v[33],g}function N(){let e,t,n=(0,o.c)(2);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,g.$)("width-full","DeleteViewEntry-module__placeholderSvg__uyOlT"),n[0]=e):e=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 340 84",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{className:(0,g.$)("js-diff-placeholder","DeleteViewEntry-module__placeholderPath__Py0LH"),clipPath:"url(#diff-placeholder)",d:"M0 0h340v84H0z",fillRule:"evenodd"})}),n[1]=t):t=n[1],t}function w(e){let t,n,h,_,p,f,b=(0,o.c)(19),{deleteInfo:x,webCommitInfo:y}=e,g=(0,r.l)(),{helpUrl:j}=(0,i.s)(),v=(0,a.t)();if(y.shouldFork||y.shouldUpdate||y.lockedOnMigration){let e;return b[0]!==j||b[1]!==v.name||b[2]!==y?(e=(0,l.jsx)(m.T,{binary:!1,helpUrl:j,webCommitInfo:y,repositoryName:v.name}),b[0]=j,b[1]=v.name,b[2]=y,b[3]=e):e=b[3],e}let N=`Deleting ${x.isBlob?"":"directory "}${v.name}/${g}. Commit changes to save.`;return b[4]!==N?(t=(0,l.jsx)(c.A,{as:"h1",className:"sr-only",children:N}),b[4]=N,b[5]=t):t=b[5],b[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(s.nq,{}),b[6]=n):n=b[6],b[7]!==y.canCreatePullRequest||b[8]!==y.forkedRepo?(h=y.forkedRepo&&(0,l.jsx)(u.r,{forkName:y.forkedRepo.name,forkOwner:y.forkedRepo.owner,canCreatePullRequest:y.canCreatePullRequest}),b[7]=y.canCreatePullRequest,b[8]=y.forkedRepo,b[9]=h):h=b[9],b[10]!==x.truncated?(_=x.truncated&&(0,l.jsx)(d.A,{variant:"warning",className:"mb-2",children:"The diff you're trying to view is too large. We only load the first 1000 changed files."}),b[10]=x.truncated,b[11]=_):_=b[11],b[12]!==x.diffs?(p=x.diffs.map(k),b[12]=x.diffs,b[13]=p):p=b[13],b[14]!==t||b[15]!==h||b[16]!==_||b[17]!==p?(f=(0,l.jsxs)("div",{className:"container-xl mx-auto",children:[t,n,h,_,p]}),b[14]=t,b[15]=h,b[16]=_,b[17]=p,b[18]=f):f=b[18],f}function k(e,t){return(0,l.jsx)(v,{diff:e,index:t},t)}v.displayName="DiffEntry",N.displayName="DiffPlaceholderSvg",w.displayName="DeleteViewContent"},57566(e,t,n){n.d(t,{Sz:()=>es,Ew:()=>ei,T2:()=>ec,Ay:()=>en,zv:()=>ee});var l=n(74848),o=n(16522),i=n(67070),r=n(18660),a=n(82175),s=n(98779),c=n(95173),d=n(56792),u=n(51336),m=n(31595),h=n(68541),_=n(23082),p=n(7231),f=n(12191),b=n(15885),x=n(97810),y=n(31145),g=n(99637),j=n(54242),v=n(73537),N=n(32442),w=n(53181),k=n(23666),S=n(77236),C=n(70760),I=n(14350),T=n(40914),B=n(78919),A=n(88134),L=n(38621),D=n(21373),O=n(83223),R=n(67323),F=n(26108),E=n(18990),P=n(34164),$=n(96540),z=n(49012),H=n(9496),M=n(77879),V=n(17430),U=n(23366),W=n(22520),q=n(37681);function G(){let e,t,n,i=(0,o.c)(7),r=(0,j.t)(),a=(0,m.l)(),s=(0,h.z)(),{canEdit:c}=(0,d.M)();return c?(i[0]!==a||i[1]!==s.name||i[2]!==r?(e=(0,k.IO9)({repo:r,path:a,commitish:s.name,action:"tree/delete"}),i[0]=a,i[1]=s.name,i[2]=r,i[3]=e):e=i[3],i[4]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)("span",{className:"color-fg-danger",children:"Delete directory"}),i[4]=t):t=i[4],i[5]!==e?(n=(0,l.jsx)(E.l.LinkItem,{as:S.N,to:e,children:t}),i[5]=e,i[6]=n):n=i[6],n):null}G.displayName="DeleteDirectoryItem";let K="CodeViewHeader-module__FileResultsList__JDzUy",Q="CodeViewHeader-module__Box_7___0R6c";var Y=n(72316),X=n(8905),Z=n(75863),J=n(50567);function ee(e){let t,n,i,r,a=(0,o.c)(16),{wideActions:s,narrowActions:c,modelsRepoIntegrationEnabled:d,commitish:u,path:m}=e,{isTreeExpanded:h,treeToggleElement:_}=(0,H.H)(),p=(0,j.t)();a[0]!==u||a[1]!==d||a[2]!==m||a[3]!==p?(t=d&&m?.match(/\.prompt\.(yml|yaml)$/)?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(D.Q,{as:S.N,to:(0,w.af)({repo:p,path:m,commitish:u,action:"edit"}),children:"Edit prompt"})}):null,a[0]=u,a[1]=d,a[2]=m,a[3]=p,a[4]=t):t=a[4];let f=t;return a[5]!==f||a[6]!==s?(n=(0,l.jsxs)(l.Fragment,{children:[s,f]}),a[5]=f,a[6]=s,a[7]=n):n=a[7],a[8]!==f||a[9]!==c?(i=(0,l.jsxs)(l.Fragment,{children:[c,f]}),a[8]=f,a[9]=c,a[10]=i):i=a[10],a[11]!==h||a[12]!==n||a[13]!==i||a[14]!==_?(r=(0,l.jsx)(et,{showTree:h,treeToggleElement:_,wideActions:n,narrowActions:i}),a[11]=h,a[12]=n,a[13]=i,a[14]=_,a[15]=r):r=a[15],r}function et(e){let t,n,i,r,a,c=(0,o.c)(13),{showTree:d,treeToggleElement:u,wideActions:m,narrowActions:h}=e,{codeCenterOption:_}=(0,A.ud)();return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,P.$)("container","CodeViewHeader-module__Box__JkPOb"),c[0]=t):t=c[0],c[1]!==_||c[2]!==d||c[3]!==u?(n=d?(0,l.jsx)("div",{className:"CodeViewHeader-module__Box_6__qKUtX",children:(0,l.jsx)(J.C,{id:"repos-header-breadcrumb--wide",fileNameId:"file-name-id-wide",showCopyPathButton:!0})}):(0,l.jsxs)("div",{className:(0,P.$)("react-code-view-header-wrap--narrow","CodeViewHeader-module__Box_3__q1zUL"),children:[(0,l.jsx)("div",{className:(0,P.$)("CodeViewHeader-module__treeToggleWrapper__RQ__9",_.enabled&&"CodeViewHeader-module__treeToggleWrapperHideOnWide__PDHgP"),children:u}),(0,l.jsx)("div",{className:"react-code-view-header-mb--narrow mr-2",children:(0,l.jsx)(s.R,{buttonClassName:"ref-selector-class",idEnding:"repos-header-ref-selector-wide"})}),(0,l.jsx)("div",{className:(0,P.$)("react-code-view-header-mb--narrow","CodeViewHeader-module__Box_5__MQ0hL"),children:(0,l.jsx)(J.C,{id:"repos-header-breadcrumb",fileNameId:"file-name-id",showCopyPathButton:!0})})]}),c[1]=_,c[2]=d,c[3]=u,c[4]=n):n=c[4],c[5]!==m?(i=(0,l.jsx)("div",{className:"react-code-view-header-element--wide",children:(0,l.jsx)("div",{className:Q,children:(0,l.jsx)("div",{className:"d-flex gap-2",children:m})})}),c[5]=m,c[6]=i):i=c[6],c[7]!==h?(r=(0,l.jsx)("div",{className:"react-code-view-header-element--narrow",children:(0,l.jsx)("div",{className:Q,children:(0,l.jsx)("div",{className:"d-flex gap-2",children:h})})}),c[7]=h,c[8]=r):r=c[8],c[9]!==n||c[10]!==i||c[11]!==r?(a=(0,l.jsx)("div",{className:t,children:(0,l.jsx)("div",{className:"tmp-px-3 tmp-pt-3 pb-0",id:"StickyHeader",children:(0,l.jsx)("div",{className:"CodeViewHeader-module__Box_1__SbNDV",children:(0,l.jsxs)("div",{className:"CodeViewHeader-module__Box_2__TB46f",children:[n,i,r]})})})}),c[9]=n,c[10]=i,c[11]=r,c[12]=a):a=c[12],a}function en(e){let t,n,i,r=(0,o.c)(11),{payload:a,showTree:s,treeToggleElement:c,validCodeNav:d,onFindFilesShortcut:u}=e;return r[0]!==u||r[1]!==a||r[2]!==s||r[3]!==d?(t=(0,l.jsx)(el,{payload:a,onFindFilesShortcut:u,narrow:!1,showTree:s,validCodeNav:d}),n=(0,l.jsx)(el,{payload:a,onFindFilesShortcut:u,narrow:!0,showTree:s,validCodeNav:d}),r[0]=u,r[1]=a,r[2]=s,r[3]=d,r[4]=t,r[5]=n):(t=r[4],n=r[5]),r[6]!==s||r[7]!==t||r[8]!==n||r[9]!==c?(i=(0,l.jsx)(et,{showTree:s,treeToggleElement:c,wideActions:t,narrowActions:n}),r[6]=s,r[7]=t,r[8]=n,r[9]=c,r[10]=i):i=r[10],i}function el(e){let t,n,r,s,d,p,f,g,k=(0,o.c)(36),{payload:T,onFindFilesShortcut:B,narrow:A,showTree:L,validCodeNav:R}=e,F=(0,V.y)(),{findFileWorkerPath:E,githubDevUrl:P}=(0,u.s)(),z=(0,j.t)(),H=(0,m.l)(),{modelsRepoIntegrationEnabled:U}=(0,c.w)(),q=(0,h.z)(),{openWithGitHubDevShortcut:G,openWithGitHubDevInNewWindowShortcut:Q}=(0,_.wk)(),Z=(0,$.useRef)(null);k[0]!==T?(t=(0,v.G7)("copilot_agent_tasks_btn_code_nav")&&(T.copilotSWEAgentEnabled??!1),k[0]=T,k[1]=t):t=k[1];let J=t;k[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.G7)("copilot_mission_control_decoupled_mode"),k[2]=n):n=k[2];let ee=n;k[3]!==E||k[4]!==B||k[5]!==q||k[6]!==L?(r=!L&&(0,l.jsxs)("div",{children:[(0,l.jsx)(a.default,{commitOid:q.currentOid,findFileWorkerPath:E,searchBoxRef:Z,config:{enableOverlay:!0},className:K}),(0,l.jsx)(C.H,{inputRef:Z,onFindFilesShortcut:B,textAreaId:W.wQ})]}),k[3]=E,k[4]=B,k[5]=q,k[6]=L,k[7]=r):r=k[7];let et=r;return k[8]!==et||k[9]!==A||k[10]!==F||k[11]!==T||k[12]!==R?(s=(0,b.m)(T)&&(0,l.jsxs)(M.s,{blob:T.blob,children:[!A&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(er,{}),et]}),(0,l.jsx)(X.A,{onCopy:F,narrow:A,validCodeNav:R,copilotAccessAllowed:T.copilotAccessAllowed??!1})]}),k[8]=et,k[9]=A,k[10]=F,k[11]=T,k[12]=R,k[13]=s):s=k[13],k[14]!==U||k[15]!==T||k[16]!==q||k[17]!==z?(d=U&&T.path?.match(/\.prompt\.(yml|yaml)$/)&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(D.Q,{as:S.N,to:(0,w.af)({repo:z,path:T.path,commitish:q.name,action:"edit"}),children:"Edit prompt"})}),k[14]=U,k[15]=T,k[16]=q,k[17]=z,k[18]=d):d=k[18],k[19]!==P||k[20]!==et||k[21]!==A||k[22]!==Q||k[23]!==G||k[24]!==H||k[25]!==T||k[26]!==z||k[27]!==J?(p=(0,x.H)(T)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I.W,{as:"h2",text:"Directory actions"}),!A&&(0,l.jsxs)(l.Fragment,{children:[et,(0,l.jsx)(i.L,{}),J&&(0,l.jsx)(N.V,{isIconButton:!0,currentRepo:z,currentReference:{path:H},hideRepoSelector:!0,eventType:"new_agent_task_button_codenav",decoupledModeEnabled:ee})]}),(0,l.jsx)(eo,{narrow:A}),(0,l.jsx)(O.A,{className:"js-github-dev-shortcut d-none","data-hotkey":G.hotkey,href:P}),(0,l.jsx)(O.A,{className:"js-github-dev-new-tab-shortcut d-none","data-hotkey":Q.hotkey,href:P,target:"_blank"})]}),k[19]=P,k[20]=et,k[21]=A,k[22]=Q,k[23]=G,k[24]=H,k[25]=T,k[26]=z,k[27]=J,k[28]=p):p=k[28],k[29]!==T?(f=(0,y.i)(T)&&(0,l.jsx)(Y.S,{webCommitInfo:T.webCommitInfo,isBlob:T.deleteInfo.isBlob}),k[29]=T,k[30]=f):f=k[30],k[31]!==s||k[32]!==d||k[33]!==p||k[34]!==f?(g=(0,l.jsxs)(l.Fragment,{children:[s,d,p,f]}),k[31]=s,k[32]=d,k[33]=p,k[34]=f,k[35]=g):g=k[35],g}function eo(e){let t,n,i,a,s,c,u,b,x,y,v,N,w,C,D,O,P=(0,o.c)(45),{narrow:z}=e,H=(0,m.l)(),M=(0,h.z)(),{canEdit:V}=(0,d.M)(),U=(0,j.t)(),{sendRepoClickEvent:q}=(0,p.T)(),{addToast:K}=(0,T.Y6)(),{createPermalink:Q}=(0,f.Z)(),{copyFilePathShortcut:Y,copyPermalinkShortcut:X}=(0,_.wk)(),{codeCenterOption:J}=(0,A.ud)(),ee=(0,$.useRef)(null);P[0]===Symbol.for("react.memo_cache_sentinel")?(t={direction:"nw"},P[0]=t):t=P[0];let[et,en,el]=(0,B.F)("raw-copy-message-tooltip",ee,t);return P[1]!==K||P[2]!==Y.hotkey||P[3]!==H?(n=Y.hotkey&&(0,l.jsx)(r._,{buttonFocusId:W.wQ,buttonHotkey:Y.hotkey,onButtonClick:()=>{(0,g.D)(H),K({type:"success",message:"Path copied!"})}}),P[1]=K,P[2]=Y.hotkey,P[3]=H,P[4]=n):n=P[4],P[5]!==K||P[6]!==X.hotkey||P[7]!==Q?(i=X.hotkey&&(0,l.jsx)(r._,{buttonFocusId:W.wQ,buttonHotkey:X.hotkey,onButtonClick:()=>{(0,g.D)(Q({absolute:!0})),K({type:"success",message:"Permalink copied!"})}}),P[5]=K,P[6]=X.hotkey,P[7]=Q,P[8]=i):i=P[8],P[9]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(I.W,{as:"h2",text:"More options"}),P[9]=a):a=P[9],P[10]!==q?(s=e=>e&&q("MORE_OPTIONS_DROPDOWN"),P[10]=q,P[11]=s):s=P[11],P[12]!==en?(c=(0,l.jsx)(R.W.Anchor,{children:(0,l.jsx)(F.K,{icon:L.KebabHorizontalIcon,"aria-label":"More options",size:"medium",title:"More options","data-testid":"tree-overflow-menu-anchor",onBlur:en,className:"CodeViewHeader-module__IconButton__PYSHU"})}),P[12]=en,P[13]=c):c=P[13],P[14]!==V||P[15]!==z||P[16]!==H||P[17]!==M||P[18]!==U||P[19]!==q?(u=z&&V&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(E.l.LinkItem,{as:S.N,onClick:()=>q("NEW_FILE_BUTTON"),to:(0,k.IO9)({repo:U,path:H,commitish:M.name,action:"new"}),children:[(0,l.jsx)(E.l.LeadingVisual,{children:(0,l.jsx)(L.PlusIcon,{})}),"Create new file"]}),(0,l.jsxs)(E.l.LinkItem,{onClick:()=>q("UPLOAD_FILES_BUTTON"),href:(0,k.IO9)({repo:U,path:H,commitish:M.name,action:"upload"}),children:[(0,l.jsx)(E.l.LeadingVisual,{children:(0,l.jsx)(L.UploadIcon,{})}),"Upload files"]}),(0,l.jsx)(E.l.Divider,{})]}),P[14]=V,P[15]=z,P[16]=H,P[17]=M,P[18]=U,P[19]=q,P[20]=u):u=P[20],P[21]!==H||P[22]!==et?(b=(0,l.jsx)(ei,{path:H,updateTooltipMessage:et}),P[21]=H,P[22]=et,P[23]=b):b=P[23],P[24]!==V?(x=V&&(0,l.jsx)(E.l.Divider,{}),P[24]=V,P[25]=x):x=P[25],P[26]===Symbol.for("react.memo_cache_sentinel")?(y=(0,l.jsx)(G,{}),v=(0,l.jsx)(E.l.Divider,{}),P[26]=y,P[27]=v):(y=P[26],v=P[27]),P[28]===Symbol.for("react.memo_cache_sentinel")?(N=(0,l.jsx)(E.l.GroupHeading,{children:"View options"}),P[28]=N):N=P[28],P[29]!==J?(w=(0,l.jsxs)(E.l.Group,{selectionVariant:"multiple",children:[N,(0,l.jsx)(Z.T,{option:J})]}),P[29]=J,P[30]=w):w=P[30],P[31]!==w||P[32]!==u||P[33]!==b||P[34]!==x?(C=(0,l.jsx)(R.W.Overlay,{width:"small",children:(0,l.jsxs)(E.l,{children:[u,b,x,y,v,w]})}),P[31]=w,P[32]=u,P[33]=b,P[34]=x,P[35]=C):C=P[35],P[36]!==C||P[37]!==s||P[38]!==c?(D=(0,l.jsxs)(R.W,{onOpenChange:s,anchorRef:ee,children:[c,C]}),P[36]=C,P[37]=s,P[38]=c,P[39]=D):D=P[39],P[40]!==el||P[41]!==D||P[42]!==n||P[43]!==i?(O=(0,l.jsxs)(l.Fragment,{children:[n,i,a,el,D]}),P[40]=el,P[41]=D,P[42]=n,P[43]=i,P[44]=O):O=P[44],O}function ei(e){let t,n,i,r,a,s,c,d=(0,o.c)(21),{path:u,updateTooltipMessage:m}=e,{copyFilePathShortcut:h}=(0,_.wk)(),{copyPermalinkShortcut:b}=(0,_.wk)(),{sendRepoClickEvent:x}=(0,p.T)(),{createPermalink:y}=(0,f.Z)();return d[0]!==u||d[1]!==x||d[2]!==m?(t=()=>{x("MORE_OPTIONS_DROPDOWN.COPY_PATH"),(0,g.D)(u),m("Path copied!")},d[0]=u,d[1]=x,d[2]=m,d[3]=t):t=d[3],d[4]!==h?(n=h.hotkey&&(0,l.jsx)(E.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,l.jsx)(U.q,{shortcut:h})}),d[4]=h,d[5]=n):n=d[5],d[6]!==t||d[7]!==n?(i=(0,l.jsxs)(E.l.Item,{onSelect:t,children:["Copy path",n]}),d[6]=t,d[7]=n,d[8]=i):i=d[8],d[9]!==y||d[10]!==x||d[11]!==m?(r=()=>{x("MORE_OPTIONS_DROPDOWN.COPY_PERMALINK"),(0,g.D)(y({absolute:!0})),m("Permalink copied!")},d[9]=y,d[10]=x,d[11]=m,d[12]=r):r=d[12],d[13]!==b?(a=b.hotkey&&(0,l.jsx)(E.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,l.jsx)(U.q,{shortcut:b})}),d[13]=b,d[14]=a):a=d[14],d[15]!==r||d[16]!==a?(s=(0,l.jsxs)(E.l.Item,{onSelect:r,children:["Copy permalink",a]}),d[15]=r,d[16]=a,d[17]=s):s=d[17],d[18]!==i||d[19]!==s?(c=(0,l.jsxs)(l.Fragment,{children:[i,s]}),d[18]=i,d[19]=s,d[20]=c):c=d[20],c}function er(){let e,t=(0,o.c)(2),n=(0,q.k)();return n?(t[0]!==n?(e=(0,l.jsx)(D.Q,{as:S.N,to:n,children:"View Runs"}),t[0]=n,t[1]=e):e=t[1],e):null}function ea(e){let t,n,i,r,s=(0,o.c)(9),{payload:c}=e,{isTreeExpanded:d,onFindFilesShortcut:m}=(0,H.H)(),{findFileWorkerPath:h}=(0,u.s)(),_=(0,$.useRef)(null);return d?null:(s[0]===Symbol.for("react.memo_cache_sentinel")?(t={enableOverlay:!0},s[0]=t):t=s[0],s[1]!==h||s[2]!==c.refInfo.currentOid?(n=(0,l.jsx)(a.default,{commitOid:c.refInfo.currentOid,findFileWorkerPath:h,searchBoxRef:_,config:t,className:K}),s[1]=h,s[2]=c.refInfo.currentOid,s[3]=n):n=s[3],s[4]!==m?(i=(0,l.jsx)(C.H,{inputRef:_,onFindFilesShortcut:m,textAreaId:W.wQ}),s[4]=m,s[5]=i):i=s[5],s[6]!==n||s[7]!==i?(r=(0,l.jsxs)("div",{children:[n,i]}),s[6]=n,s[7]=i,s[8]=r):r=s[8],r)}function es(e){let t,n,i,r=(0,o.c)(11),{payload:a,narrow:s}=e,c=(0,V.y)(),{validCodeNav:d}=(0,z.O)();r[0]!==s||r[1]!==a?(t=!s&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(er,{}),(0,l.jsx)(ea,{payload:a})]}),r[0]=s,r[1]=a,r[2]=t):t=r[2];let u=a.copilotAccessAllowed??!1;return r[3]!==s||r[4]!==c||r[5]!==u||r[6]!==d?(n=(0,l.jsx)(X.A,{onCopy:c,narrow:s,validCodeNav:d,copilotAccessAllowed:u}),r[3]=s,r[4]=c,r[5]=u,r[6]=d,r[7]=n):n=r[7],r[8]!==t||r[9]!==n?(i=(0,l.jsxs)(l.Fragment,{children:[t,n]}),r[8]=t,r[9]=n,r[10]=i):i=r[10],i}function ec(e){let t,n,r,a,s,c,d,m,h=(0,o.c)(23),{narrow:p,payload:f,path:b}=e,{githubDevUrl:x}=(0,u.s)(),y=(0,j.t)();h[0]!==f?(t=(0,v.G7)("copilot_agent_tasks_btn_code_nav")&&(f.copilotSWEAgentEnabled??!1),h[0]=f,h[1]=t):t=h[1];let g=t,{openWithGitHubDevShortcut:w,openWithGitHubDevInNewWindowShortcut:k}=(0,_.wk)();h[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,v.G7)("copilot_mission_control_decoupled_mode"),h[2]=n):n=h[2];let S=n;return h[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(I.W,{as:"h2",text:"Directory actions"}),h[3]=r):r=h[3],h[4]!==p||h[5]!==b||h[6]!==f||h[7]!==y||h[8]!==g?(a=!p&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ea,{payload:f}),(0,l.jsx)(i.L,{}),g&&(0,l.jsx)(N.V,{isIconButton:!0,currentRepo:y,currentReference:{path:b},hideRepoSelector:!0,eventType:"new_agent_task_button_codenav",decoupledModeEnabled:S})]}),h[4]=p,h[5]=b,h[6]=f,h[7]=y,h[8]=g,h[9]=a):a=h[9],h[10]!==p?(s=(0,l.jsx)(eo,{narrow:p}),h[10]=p,h[11]=s):s=h[11],h[12]!==x||h[13]!==w.hotkey?(c=(0,l.jsx)(O.A,{className:"js-github-dev-shortcut d-none","data-hotkey":w.hotkey,href:x}),h[12]=x,h[13]=w.hotkey,h[14]=c):c=h[14],h[15]!==x||h[16]!==k.hotkey?(d=(0,l.jsx)(O.A,{className:"js-github-dev-new-tab-shortcut d-none","data-hotkey":k.hotkey,href:x,target:"_blank"}),h[15]=x,h[16]=k.hotkey,h[17]=d):d=h[17],h[18]!==a||h[19]!==s||h[20]!==c||h[21]!==d?(m=(0,l.jsxs)(l.Fragment,{children:[r,a,s,c,d]}),h[18]=a,h[19]=s,h[20]=c,h[21]=d,h[22]=m):m=h[22],m}ee.displayName="CodeViewHeaderDataRouter",et.displayName="CodeViewHeaderWrapper",en.displayName="CodeViewHeader",el.displayName="PageActions",eo.displayName="TreeOverflowMenu",ei.displayName="CopyPathsActionItems",er.displayName="ViewRunsButton",ea.displayName="GoToFileInput",es.displayName="BlobHeaderActions",ec.displayName="TreeHeaderActions"},14967(e,t,n){n.d(t,{A:()=>h});var l=n(74848),o=n(16522),i=n(98779),r=n(38621),a=n(21373),s=n(34164);let c="FileNameStickyHeader-module__GoToTopButton__nxAFn";var d=n(50567);let u=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(d.C,{id:"sticky-breadcrumb",fileNameId:"sticky-file-name-id",size:"md"}),t[0]=e):e=t[0],e};u.displayName="StickyReposHeaderBreadcrumb";let m=e=>{let t,n,i=(0,o.c)(4),{className:c}=e;return i[0]!==c?(t=(0,s.$)("FileNameStickyHeader-module__Button__LSEU_",c),i[0]=c,i[1]=t):t=i[1],i[2]!==t?(n=(0,l.jsx)(a.Q,{leadingVisual:r.ArrowUpIcon,variant:"invisible",size:"small",onClick:_,className:t,children:"Top"}),i[2]=t,i[3]=n):n=i[3],n};function h(e){let t,n,r,a=(0,o.c)(10),{isStickied:d,showTree:h,treeToggleElement:_}=e,p=d?"FileNameStickyHeader-module__outerWrapperVisible__eXVyN":"FileNameStickyHeader-module__outerWrapperHidden__Zpynk",f=d&&"FileNameStickyHeader-module__outerWrapperStickied__XqSue";return a[0]!==p||a[1]!==f?(t=(0,s.$)("FileNameStickyHeader-module__outerWrapper__ZL4Xc",p,f),a[0]=p,a[1]=f,a[2]=t):t=a[2],a[3]!==d||a[4]!==h||a[5]!==_?(n=h?(0,l.jsxs)("div",{className:"FileNameStickyHeader-module__Box_5__dmNXA",children:[(0,l.jsx)(u,{}),(0,l.jsx)(m,{className:c})]}):(0,l.jsxs)("div",{className:"FileNameStickyHeader-module__Box_1__Hazu5",children:[(0,l.jsxs)("div",{className:"FileNameStickyHeader-module__Box_2__hoolP",children:[d&&_,(0,l.jsx)("div",{className:"FileNameStickyHeader-module__Box_3__MVKsk",children:(0,l.jsx)(i.R,{buttonClassName:"ref-selector-class"})}),(0,l.jsx)("div",{className:"FileNameStickyHeader-module__Box_4__FLhtt",children:(0,l.jsx)(u,{})})]}),(0,l.jsx)(m,{className:c})]}),a[3]=d,a[4]=h,a[5]=_,a[6]=n):n=a[6],a[7]!==t||a[8]!==n?(r=(0,l.jsx)("div",{className:t,children:n}),a[7]=t,a[8]=n,a[9]=r):r=a[9],r}function _(e){e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})}m.displayName="GoToTopButton",h.displayName="FileNameStickyHeader"},50567(e,t,n){n.d(t,{C:()=>d});var l=n(74848),o=n(16522),i=n(27678),r=n(31595),a=n(68541),s=n(54242),c=n(16176);function d(e){let t,n=(0,o.c)(9),{fileNameId:d,id:u,size:m,showCopyPathButton:h}=e,_=void 0===d?"file-name-id":d,p=(0,s.t)(),f=(0,r.l)(),b=(0,i.y)(),x=(0,a.z)(),y="tree"===b,g=h&&""!==f&&"/"!==f;return n[0]!==_||n[1]!==u||n[2]!==f||n[3]!==x.name||n[4]!==p||n[5]!==m||n[6]!==y||n[7]!==g?(t=(0,l.jsx)(c.Q,{path:f,repo:p,commitish:x.name,isFolder:y,fileNameId:_,id:u,size:m,showCopyPathButton:g}),n[0]=_,n[1]=u,n[2]=f,n[3]=x.name,n[4]=p,n[5]=m,n[6]=y,n[7]=g,n[8]=t):t=n[8],t}d.displayName="ReposHeaderBreadcrumb"},72316(e,t,n){n.d(t,{S:()=>_});var l=n(74848),o=n(16522),i=n(51336),r=n(31595),a=n(68541),s=n(54242),c=n(23666),d=n(77236),u=n(21373),m=n(96540);let h=(0,m.lazy)(()=>Promise.all([n.e("90225"),n.e("51210"),n.e("83843"),n.e("28663"),n.e("61283"),n.e("75327")]).then(n.bind(n,39232)));function _(e){let t,n,_,p,f,b=(0,o.c)(20),{webCommitInfo:x,isBlob:y}=e,[g,j]=(0,m.useState)("closed"),v="pending"===g||"saving"===g,N=(0,m.useRef)(null),w=(0,s.t)(),k=(0,r.l)(),S=(0,a.z)(),{helpUrl:C}=(0,i.s)(),I=y?"blob":"tree";b[0]!==k||b[1]!==S.name||b[2]!==w||b[3]!==I?(t=(0,c.IO9)({repo:w,commitish:S.name,action:I,path:k}),b[0]=k,b[1]=S.name,b[2]=w,b[3]=I,b[4]=t):t=b[4];let T=t;return x.shouldFork||x.shouldUpdate||x.lockedOnMigration?null:(b[5]!==T?(n=(0,l.jsx)(u.Q,{as:d.N,to:T,children:"Cancel changes"}),b[5]=T,b[6]=n):n=b[6],b[7]===Symbol.for("react.memo_cache_sentinel")?(_=(0,l.jsx)(u.Q,{variant:"primary",ref:N,onClick:()=>{(0,m.startTransition)(()=>{j("pending")})},children:"Commit changes..."}),b[7]=_):_=b[7],b[8]!==v||b[9]!==C||b[10]!==y||b[11]!==k||b[12]!==S.name||b[13]!==w||b[14]!==g||b[15]!==x?(p=v&&(0,l.jsx)(m.Suspense,{fallback:null,children:(0,l.jsx)(h,{isNewFile:!1,isDelete:!0,helpUrl:C,ownerName:w.ownerLogin,dialogState:g,setDialogState:j,refName:S.name,placeholderMessage:`Delete ${k}${y?"":" directory"}`,webCommitInfo:x,returnFocusRef:N})}),b[8]=v,b[9]=C,b[10]=y,b[11]=k,b[12]=S.name,b[13]=w,b[14]=g,b[15]=x,b[16]=p):p=b[16],b[17]!==n||b[18]!==p?(f=(0,l.jsxs)("div",{className:"DeleteHeaderButtons-module__Box__lSluH",children:[n,_,p]}),b[17]=n,b[18]=p,b[19]=f):f=b[19],f)}h.displayName="WebCommitDialog",_.displayName="DeleteHeaderButtons"},8905(e,t,n){n.d(t,{A:()=>M,D:()=>W});var l=n(74848),o=n(16522),i=n(69184),r=n(18660),a=n(27678),s=n(56792),c=n(51336),d=n(31595),u=n(68541),m=n(23082),h=n(7231),_=n(12191),p=n(54242),f=n(36594),b=n(77236),x=n(88015),y=n(26316),g=n(19519),j=n(78919),v=n(38621),N=n(67323),w=n(26108),k=n(18990),S=n(21373),C=n(34164),I=n(96540),T=n(68360),B=n(77879),A=n(33710),L=n(28741),D=n(79250),O=n(23366),R=n(22520),F=n(37681),E=n(57566),P=n(9926);function $(e){let t,n=(0,o.c)(2),{fileReference:i}=e;return n[0]!==i?(t=(0,l.jsx)(k.l.Item,{"data-testid":"copilot-menu-items",onSelect:()=>(0,P.Xu)(i),children:"Ask about this file"}),n[0]=i,n[1]=t):t=n[1],t}$.displayName="CopilotMenuItems";var z=n(7958),H=n(75863);function M({onCopy:e,validCodeNav:t,narrow:n,copilotAccessAllowed:o}){let b=(0,B.A)(),{rawLines:S}=(0,A.$)(),P=b.symbolsEnabled,q=(0,d.l)(),G=(0,a.y)(),{currentOid:K,name:Q,refType:Y}=(0,u.z)(),{canEdit:X}=(0,s.M)(),{githubDevUrl:Z}=(0,c.s)(),{sendRepoClickEvent:J}=(0,h.T)(),[ee,et]=(0,I.useState)(!1),en=(0,F.k)(),{search:el}=(0,x.zy)(),eo=new URLSearchParams(el),{setFindInFileOpen:ei}=(0,T.k)(),er=(0,D.fY)(),ea=!(b.richText&&"1"!==eo.get("plain")||b.renderImageOrRaw||b.renderedFileInfo&&!eo.get("short_path")||b.issueTemplate?.structured&&b.issueTemplate.valid),{headerInfo:{deleteTooltip:es,onBranch:ec,siteNavLoginPath:ed,lineInfo:{truncatedLoc:eu}},viewable:em}=b,eh=(0,f.i)(),{getUrl:e_}=(0,_.Z)(),ep=(0,L.e)(),ef=(0,I.useRef)("");(0,I.useEffect)(()=>{ef.current=e_({action:"blame"})},[e_]);let{goToLineShortcut:eb,findInFileShortcut:ex,alternativeGoToLineShortcut:ey}=(0,m.wk)(),eg=(0,I.useRef)(null),[ej,ev,eN]=(0,j.F)("raw-copy-message-tooltip",eg,{direction:"nw"}),ew=(0,p.t)(),ek=e_(),{isBrowser:eS}=(0,g.V)(),eC=eS?(y.fV?.origin??"")+ek:ek,eI=(0,I.useMemo)(()=>({type:"file",url:eC,path:q,repoID:ew.id,repoOwner:ew.ownerLogin,repoName:ew.name,ref:W(Q,Y??"branch"),commitOID:K}),[eC,q,ew.id,ew.ownerLogin,ew.name,Q,Y,K]);return(0,l.jsxs)(l.Fragment,{children:[ea&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r._,{buttonFocusId:R.wQ,buttonHotkey:eb.hotkey,onButtonClick:()=>et(!0)}),(0,l.jsx)(r._,{buttonFocusId:R.wQ,buttonHotkey:ey.hotkey,onButtonClick:()=>et(!0)})]}),(0,l.jsx)(V,{blameUrl:ef.current,viewable:em,hidden:!0}),eN,(0,l.jsxs)(N.W,{onOpenChange:e=>e&&J("MORE_OPTIONS_DROPDOWN",{edit_enabled:X,github_dev_enabled:!!Z}),anchorRef:eg,children:[(0,l.jsx)(N.W.Anchor,{children:(0,l.jsx)(w.K,{icon:v.KebabHorizontalIcon,"aria-label":"More file actions",tooltipDirection:"nw",className:(0,C.$)("js-blob-dropdown-click","NavigationMenu-module__IconButton__HpX3G"),size:"medium",variant:"default","data-testid":`more-file-actions-button-nav-menu-${n?"narrow":"wide"}`,onBlur:ev})}),(0,l.jsx)(N.W.Overlay,{width:"small",className:"NavigationMenu-module__ActionMenu_Overlay__iaiOT",children:(0,l.jsxs)(k.l,{children:[n&&null!==en&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(k.l.LinkItem,{href:en,children:"View Runs"}),(0,l.jsx)(k.l.Divider,{})]}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(z.A,{viewable:em,onCopy:e,name:b.displayName,updateTooltipMessage:ej}),(0,l.jsx)(k.l.Divider,{})]}),(0,l.jsxs)(k.l.Group,{children:[ea&&(0,l.jsxs)(k.l.Item,{onSelect:()=>{J("MORE_OPTIONS_DROPDOWN.GO_TO_LINE"),et(!0)},"aria-keyshortcuts":eb.hotkey,children:["Jump to line",(0,l.jsx)(k.l.TrailingVisual,{"aria-hidden":"true",children:(0,l.jsx)(i.E,{children:(0,l.jsx)("kbd",{children:eb.text})})})]}),ep===L.y.Code&&null!==S&&t&&!er&&(0,l.jsxs)(k.l.Item,{onSelect:()=>{J("BLOB_FIND_IN_FILE_MENU.OPEN"),ei(!0)},"aria-keyshortcuts":ex.ariaKeyShortcuts,children:["Find in file",(0,l.jsx)(k.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,l.jsx)(O.q,{shortcut:ex})})]})]}),(ea||ep===L.y.Code&&null!==S&&t)&&(0,l.jsx)(k.l.Divider,{}),(0,l.jsx)(E.Ew,{path:q,updateTooltipMessage:ej}),(0,l.jsx)(k.l.Divider,{}),o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(k.l.Group,{children:[(0,l.jsx)(k.l.GroupHeading,{children:"Copilot"}),(0,l.jsx)($,{fileReference:eI})]}),(0,l.jsx)(k.l.Divider,{})]}),(0,l.jsxs)(k.l.Group,{selectionVariant:"multiple",children:[(0,l.jsx)(k.l.GroupHeading,{children:"View options"}),(0,l.jsx)(H.A,{symbolsEnabled:P})]}),(X&&ec||!em&&ec)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(k.l.Divider,{}),(0,l.jsx)(U,{deleteTooltip:es,loggedIn:!!eh,siteNavLoginPath:ed})]})]})})]}),ee&&(0,l.jsx)(F.W,{onBlamePage:"blame"===G,onDismiss:()=>{et(!1),setTimeout(()=>{let e=document.getElementById(R.wQ);e?.focus()},0)},maxLineNumber:parseInt(eu,10)??void 0})]})}function V(e){let t,n=(0,o.c)(5),{blameUrl:i,viewable:a,hidden:s}=e,{hash:c}=(0,x.zy)(),d=(0,x.Gy)(i+c),{viewBlameShortcut:u}=(0,m.wk)();return n[0]!==s||n[1]!==d||n[2]!==u||n[3]!==a?(t=a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S.Q,{"data-hotkey":u.hotkey,style:s?{display:"none"}:void 0,onClick:d,className:"NavigationMenu-module__Button__LpKgm",children:"Blame"}),(0,l.jsx)(r._,{buttonFocusId:R.wQ,buttonHotkey:u.hotkey,onButtonClick:d,onlyAddHotkeyScopeButton:!0})]}):null,n[0]=s,n[1]=d,n[2]=u,n[3]=a,n[4]=t):t=n[4],t}function U(e){let t,n,i=(0,o.c)(7),{deleteTooltip:r,loggedIn:a,siteNavLoginPath:s}=e,{getUrl:c}=(0,_.Z)();return i[0]!==c||i[1]!==a||i[2]!==s?(t=a?c({action:"delete"}):s,i[0]=c,i[1]=a,i[2]=s,i[3]=t):t=i[3],i[4]!==r||i[5]!==t?(n=(0,l.jsx)(k.l.LinkItem,{as:b.N,"aria-label":r,to:t,variant:"danger",children:"Delete file"}),i[4]=r,i[5]=t,i[6]=n):n=i[6],n}M.displayName="NavigationMenu",V.displayName="BlameButton",U.displayName="DeleteActionItem";let W=(e,t)=>"branch"===t?`refs/heads/${e}`:"tag"===t?`refs/tags/${e}`:e},7958(e,t,n){n.d(t,{A:()=>u,P:()=>m});var l=n(74848),o=n(16522),i=n(23082),r=n(7231),a=n(18990),s=n(77879),c=n(81634),d=n(23366);function u(e){let t,n,c,u,p,f,b,x=(0,o.c)(22),{viewable:y,onCopy:g,name:j,updateTooltipMessage:v,all:N}=e,{sendRepoClickEvent:w}=(0,r.T)(),{rawBlobUrl:k}=(0,s.A)(),{downloadRawContentShortcut:S}=(0,i.wk)();x[0]!==j||x[1]!==k?(t=async()=>await m(k,j),x[0]=j,x[1]=k,x[2]=t):t=x[2];let C=t;return x[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(a.l.GroupHeading,{children:"Raw file content"}),x[3]=n):n=x[3],x[4]!==N||x[5]!==g||x[6]!==v||x[7]!==y?(c=N&&(0,l.jsx)(h,{viewable:y,onCopy:g,updateTooltipMessage:v}),x[4]=N,x[5]=g,x[6]=v,x[7]=y,x[8]=c):c=x[8],x[9]!==N||x[10]!==k||x[11]!==w?(u=N&&(0,l.jsx)(_,{onClick:()=>w("BLOB_RAW_DROPDOWN.VIEW"),rawHref:k}),x[9]=N,x[10]=k,x[11]=w,x[12]=u):u=x[12],x[13]!==S?(p=S.text&&(0,l.jsx)(a.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,l.jsx)(d.q,{shortcut:S})}),x[13]=S,x[14]=p):p=x[14],x[15]!==C||x[16]!==p?(f=(0,l.jsxs)(a.l.LinkItem,{onClick:C,children:["Download",p]}),x[15]=C,x[16]=p,x[17]=f):f=x[17],x[18]!==c||x[19]!==u||x[20]!==f?(b=(0,l.jsxs)(a.l.Group,{children:[n,c,u,f]}),x[18]=c,x[19]=u,x[20]=f,x[21]=b):b=x[21],b}async function m(e,t){let n=await fetch(e,{method:"get"}),l=await n.blob(),o=document.createElement("a");o.setAttribute("download",t);let i=URL.createObjectURL(l);o.href=i,o.setAttribute("target","_blank"),o.click(),URL.revokeObjectURL(i)}function h(e){let t,n=(0,o.c)(5),{viewable:r,onCopy:s,updateTooltipMessage:u}=e,{copyRawContentShortcut:m}=(0,i.wk)();return n[0]!==m||n[1]!==s||n[2]!==u||n[3]!==r?(t=r?(0,l.jsxs)(a.l.Item,{onSelect:async()=>{let e=await s(),{ariaLabel:t}=(0,c.t0)(e);u(t)},children:["Copy",m.text&&(0,l.jsx)(a.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,l.jsx)(d.q,{shortcut:m})})]}):null,n[0]=m,n[1]=s,n[2]=u,n[3]=r,n[4]=t):t=n[4],t}function _(e){let t,n,r=(0,o.c)(6),{onClick:s,rawHref:c}=e,{viewRawContentShortcut:u}=(0,i.wk)();return r[0]!==u?(t=u.text&&(0,l.jsx)(a.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,l.jsx)(d.q,{shortcut:u})}),r[0]=u,r[1]=t):t=r[1],r[2]!==s||r[3]!==c||r[4]!==t?(n=(0,l.jsxs)(a.l.LinkItem,{onClick:s,href:c,children:["View",t]}),r[2]=s,r[3]=c,r[4]=t,r[5]=n):n=r[5],n}u.displayName="RawMenuActionItems",h.displayName="CopyActionItem",_.displayName="RawActionItem"},75863(e,t,n){n.d(t,{A:()=>u,T:()=>m});var l=n(74848),o=n(16522),i=n(35205),r=n(88134),a=n(18990),s=n(96540),c=n(5191);let d=(0,i.A)("localStorage");function u(e){let t,n,i,a,s,c=(0,o.c)(14),{symbolsEnabled:d}=e,{codeFoldingOption:u,codeWrappingOption:h,codeCenterOption:_,openSymbolsOption:p}=(0,r.ud)();return c[0]!==u?(t=(0,l.jsx)(m,{option:u}),c[0]=u,c[1]=t):t=c[1],c[2]!==h?(n=(0,l.jsx)(m,{option:h}),c[2]=h,c[3]=n):n=c[3],c[4]!==_?(i=(0,l.jsx)(m,{option:_}),c[4]=_,c[5]=i):i=c[5],c[6]!==p||c[7]!==d?(a=d&&(0,l.jsx)(m,{option:p}),c[6]=p,c[7]=d,c[8]=a):a=c[8],c[9]!==t||c[10]!==n||c[11]!==i||c[12]!==a?(s=(0,l.jsxs)(l.Fragment,{children:[t,n,i,a]}),c[9]=t,c[10]=n,c[11]=i,c[12]=a,c[13]=s):s=c[13],s}function m(e){let t,n,i=(0,o.c)(7),{option:u}=e;i[0]!==u?(t=()=>{(0,s.startTransition)(()=>u.setEnabled(!u.enabled));let e=String(!u.enabled);requestIdleCallback(()=>d.setItem(u.name,e)),u.name===r.T2&&(0,c.Q)(null,null,!u.enabled)},i[0]=u,i[1]=t):t=i[1];let m=t;return i[2]!==m||i[3]!==u.enabled||i[4]!==u.label||i[5]!==u.name?(n=(0,l.jsx)(a.l.Item,{selected:u.enabled,onSelect:m,children:u.label},u.name),i[2]=m,i[3]=u.enabled,i[4]=u.label,i[5]=u.name,i[6]=n):n=i[6],n}u.displayName="SettingsMenuItems",m.displayName="OptionsElement"},52934(e,t,n){n.d(t,{A:()=>c});var l=n(74848),o=n(16522),i=n(38621),r=n(26108),a=n(34164),s=n(96540);function c(e){var t;let n,c=(0,o.c)(5),{toc:d,openPanel:u,setOpenPanel:m,isDirectoryReadme:h}=e,_=s.useRef(null);return c[0]!==h||c[1]!==u||c[2]!==m||c[3]!==d?(n=(t=d)&&t.length>=2?(0,l.jsx)(r.K,{ref:_,tooltipDirection:"n",className:(0,a.$)(!h&&"pr-mr-2","TableOfContents-module__IconButton__jrlNM"),icon:i.ListUnorderedIcon,variant:"invisible","aria-label":"Outline","aria-pressed":"toc"===u,onClick:()=>{m?.("toc"===u?void 0:"toc",_.current)},size:"small"}):null,c[0]=h,c[1]=u,c[2]=m,c[3]=d,c[4]=n):n=c[4],n}c.displayName="TableOfContents"},49012(e,t,n){n.d(t,{C:()=>a,O:()=>s});var l=n(74848),o=n(16522),i=n(96540);let r=(0,i.createContext)(null);function a(e){let t,n,a=(0,o.c)(5),{children:s}=e,[c,d]=(0,i.useState)(!0);a[0]!==c?(t={validCodeNav:c,setValidCodeNav:d},a[0]=c,a[1]=t):t=a[1];let u=t;return a[2]!==s||a[3]!==u?(n=(0,l.jsx)(r,{value:u,children:s}),a[2]=s,a[3]=u,a[4]=n):n=a[4],n}function s(){let e=(0,i.use)(r);if(!e)throw Error("useCodeNav must be used within a CodeNavProvider");return e}r.displayName="CodeNavContext",a.displayName="CodeNavProvider"},46360(e,t,n){n.d(t,{P:()=>s,c:()=>a});var l=n(74848),o=n(16522),i=n(96540);let r=i.createContext({contributors:void 0,error:void 0,loading:!1});function a(e){let t,n,i=(0,o.c)(7),{children:a,contributors:s,error:c,loading:d}=e;i[0]!==s||i[1]!==c||i[2]!==d?(t={contributors:s,error:c,loading:d},i[0]=s,i[1]=c,i[2]=d,i[3]=t):t=i[3];let u=t;return i[4]!==a||i[5]!==u?(n=(0,l.jsx)(r,{value:u,children:a}),i[4]=a,i[5]=u,i[6]=n):n=i[6],n}function s(){return i.use(r)}r.displayName="ContributorsContext",a.displayName="ContributorsProvider"},68360(e,t,n){n.d(t,{k:()=>d,w:()=>c});var l=n(74848),o=n(16522),i=n(96540),r=n(79250),a=n(29952);let s=(0,i.createContext)({findInFileOpen:!1,setFindInFileOpen:()=>void 0,searchTerm:"",setSearchTerm:()=>void 0});function c(e){let t,n,c,d=(0,o.c)(11),{children:u,isBlame:m}=e,h=(0,a.w0)(),_=(0,a.Gj)(),p=(0,r.fY)(m),f=(0,i.useRef)(""),[b,x]=(0,i.useState)(!1);d[0]!==h||d[1]!==_?(t=e=>{e&&""===h&&""!==f.current?_(f.current):e||""===h||(f.current=h,_("")),x(e)},d[0]=h,d[1]=_,d[2]=t):t=d[2];let y=t,g=!p&&b;d[3]!==h||d[4]!==y||d[5]!==_||d[6]!==g?(n={findInFileOpen:g,setFindInFileOpen:y,setSearchTerm:_,searchTerm:h},d[3]=h,d[4]=y,d[5]=_,d[6]=g,d[7]=n):n=d[7];let j=n;return d[8]!==u||d[9]!==j?(c=(0,l.jsx)(s,{value:j,children:u}),d[8]=u,d[9]=j,d[10]=c):c=d[10],c}function d(){return(0,i.use)(s)}s.displayName="FindInFileOpenContext",c.displayName="FindInFileOpenProvider"},29952(e,t,n){n.d(t,{Gj:()=>d,mx:()=>s,w0:()=>c});var l=n(74848),o=n(16522),i=n(96540);let r=(0,i.createContext)("");r.displayName="SearchTermStateContext";let a=(0,i.createContext)(()=>void 0);function s(e){let t,n,s=(0,o.c)(5),{children:c}=e,[d,u]=(0,i.useState)("");return s[0]!==c?(t=(0,l.jsx)(a,{value:u,children:c}),s[0]=c,s[1]=t):t=s[1],s[2]!==d||s[3]!==t?(n=(0,l.jsx)(r,{value:d,children:t}),s[2]=d,s[3]=t,s[4]=n):n=s[4],n}function c(){return(0,i.use)(r)}function d(){return(0,i.use)(a)}a.displayName="SearchTermDispatchContext",s.displayName="SearchTermProvider"},9496(e,t,n){n.d(t,{H:()=>s,Y:()=>a});var l=n(74848),o=n(16522),i=n(96540);let r=(0,i.createContext)(null);function a(e){let t,n,i=(0,o.c)(11),{children:a,treePaneState:s,onFindFilesShortcut:c}=e,{isTreeExpanded:d,expandTree:u,collapseTree:m,treeToggleElement:h,treeToggleRef:_,searchBoxRef:p}=s;i[0]!==m||i[1]!==u||i[2]!==d||i[3]!==c||i[4]!==p||i[5]!==h||i[6]!==_?(t={isTreeExpanded:d,expandTree:u,collapseTree:m,treeToggleElement:h,treeToggleRef:_,searchBoxRef:p,onFindFilesShortcut:c},i[0]=m,i[1]=u,i[2]=d,i[3]=c,i[4]=p,i[5]=h,i[6]=_,i[7]=t):t=i[7];let f=t;return i[8]!==a||i[9]!==f?(n=(0,l.jsx)(r,{value:f,children:a}),i[8]=a,i[9]=f,i[10]=n):n=i[10],n}function s(){let e=(0,i.use)(r);if(!e)throw Error("useTreePaneContext must be used within TreePaneProvider");return e}r.displayName="TreePaneContext",a.displayName="TreePaneProvider"},33710(e,t,n){n.d(t,{$:()=>c,h:()=>s});var l=n(74848),o=n(16522),i=n(96540);let r=i.createContext({});r.displayName="CurrentStyledBlobContext";let a={colorizedLines:null,rawLines:null,stylingDirectives:void 0};function s(e){let t,n=(0,o.c)(3),{blob:i,children:s}=e,c=i??a;return n[0]!==s||n[1]!==c?(t=(0,l.jsxs)(r,{value:c,children:[" ",s," "]}),n[0]=s,n[1]=c,n[2]=t):t=n[2],t}function c(){return i.use(r)}s.displayName="CurrentStyledBlobProvider"},28741(e,t,n){n.d(t,{e:()=>r,y:()=>i});var l=n(90441),o=n(77879);let i={FileRenderer:"FileRenderer",Image:"Image",TooLargeError:"TooLargeError",CSV:"CSV",Markdown:"Markdown",IssueTemplate:"IssueTemplate",Code:"Code"};function r(){let e=(0,o.A)(),t=(0,l.O)();if(e.renderedFileInfo&&!e.shortPath&&!t)return i.FileRenderer;if(e.renderImageOrRaw)if(e.image)return i.Image;else return i.TooLargeError;if(e.csv&&!t)return i.CSV;if(e.richText&&!t)return i.Markdown;if((e.issueTemplate?.structured&&e.issueTemplate.valid||e.discussionTemplate&&e.discussionTemplate.valid)&&!t&&!e.isPlain)return i.IssueTemplate;else return i.Code}},49782(e,t,n){n.d(t,{f:()=>a,g:()=>r});var l=n(16522),o=n(96540);let i="react_blob_view_scroll_line_into_view";function r(e){let t,n,r=(0,l.c)(3),a=(0,o.useEffectEvent)(e);r[0]!==a?(t=()=>{let e=e=>a(e.detail);return window.addEventListener(i,e),()=>{window.removeEventListener(i,e)}},r[0]=a,r[1]=t):t=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],r[2]=n):n=r[2],(0,o.useEffect)(t,n)}function a(e){window.dispatchEvent(new CustomEvent(i,{detail:e}))}},78485(e,t,n){n.d(t,{n:()=>o});var l=n(16522);function o(){let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={top:"0px",zIndex:4,background:"var(--bgColor-default, var(--color-canvas-default))",position:"sticky"},t[0]=e):e=t[0],e}},5191(e,t,n){n.d(t,{Q:()=>i});var l=n(7909),o=n(78597);async function i(e,t,n){if(!(0,l.M3)())return;let i=new FormData;i.set("tree_view_expanded_preference",null===e?"":e?"true":"false"),i.set("symbols_view_expanded_preference",null===t?"":t?"true":"false"),i.set("code_line_wrap_enabled",null===n?"":n?"true":"false"),(0,o.DI)("/repos/preferences",{method:"PUT",body:i,headers:{Accept:"application/json"}})}},23366(e,t,n){n.d(t,{q:()=>i});var l=n(74848),o=n(16522);function i(e){let t,n,i=(0,o.c)(4),{shortcut:a}=e;return i[0]!==a.text?(t=a.text?.split(" ").map(r),i[0]=a.text,i[1]=t):t=i[1],i[2]!==t?(n=(0,l.jsx)("span",{className:"d-flex gap-1",children:t}),i[2]=t,i[3]=n):n=i[3],n}function r(e,t){return(0,l.jsx)("kbd",{children:e},`${e}-${t}`)}i.displayName="KeyboardVisual"},62682(e,t,n){n.d(t,{x:()=>l});function l(e){throw Error(`Unexpected object: ${e}`)}},63253(e,t,n){n.d(t,{E:()=>j});var l=n(74848),o=n(16522),i=n(54242),r=n(16887),a=n(33542),s=n(51581),c=n(78597),d=n(38621),u=n(83223),m=n(73077),h=n(21373),_=n(83369),p=n(66818),f=n(34164),b=n(96540),x=n(36594);let y={ORG_ADMIN:`For an organization, developers writing less boilerplate code means more productivity, while learning new technologies means delivering better customers solutions. Try it in Codespaces or your file editor.`,ORG_MEMBER:`We noticed that you're personally paying for GitHub Copilot. Instead, ask your organization admin to purchase the business version of GitHub Copilot.`,STANDARD:`Spend less time creating boilerplate and repetitive code patterns, and more time building great software. Try it in Codespaces or your favorite file editor.`},g=e=>{let t,n=(0,o.c)(5),{featureRequestInfo:i,inProgress:a,toggleFeatureRequest:s,requested:c}=e;return i?.showFeatureRequest?(n[0]!==i?.featureName||n[1]!==a||n[2]!==c||n[3]!==s?(t=c?(0,l.jsx)(r.c9,{inProgress:a,toggleFeatureRequest:s}):(0,l.jsx)(r.iU,{inProgress:a,toggleFeatureRequest:s,featureName:i?.featureName}),n[0]=i?.featureName,n[1]=a,n[2]=c,n[3]=s,n[4]=t):t=n[4],t):null};g.displayName="FeatureRequest";let j=e=>{let t,n,j,v,N,w,k,S,C,I,T,B,A,L,D,O,R,F,E,P,$,z,H,M,V,U,W,q,G,K,Q,Y,X,Z,J=(0,o.c)(121),{view:ee,copilotInfo:et,className:en}=e;J[0]!==et?(t=et??{},J[0]=et,J[1]=t):t=J[1];let{documentationUrl:el,notices:eo,userAccess:ei}=t;J[2]!==ei?(n=ei??{},J[2]=ei,J[3]=n):n=J[3];let{business:er,orgHasCFBAccess:ea,userHasCFIAccess:es,userHasOrgs:ec,userIsOrgAdmin:ed,userIsOrgMember:eu,featureRequestInfo:em}=n;J[4]!==eo?(j=eo??{},J[4]=eo,J[5]=j):j=J[5];let{codeViewPopover:eh}=j,{sendClickAnalyticsEvent:e_}=(0,s.S)(),ep=(0,x.i)(),{isOrgOwned:ef,ownerLogin:eb}=(0,i.t)(),{inProgress:ex,requested:ey,dismissed:eg,dismissedAt:ej,toggleFeatureRequest:ev}=(0,r.tV)(em),[eN,ew]=(0,b.useState)(!1),[ek,eS]=(0,b.useState)(!1);J[6]===Symbol.for("react.memo_cache_sentinel")?(v=()=>ew(!0),J[6]=v):v=J[6];let eC=v;J[7]===Symbol.for("react.memo_cache_sentinel")?(N=()=>ew(!1),J[7]=N):N=J[7];let eI=N;J[8]!==ea||J[9]!==ef||J[10]!==ei||J[11]!==es||J[12]!==ed||J[13]!==eu?(w=()=>ei&&ef&&eu&&!ed&&(!ea||es)?"Your organization can pay for GitHub Copilot":"Code 55% faster with GitHub Copilot",J[8]=ea,J[9]=ef,J[10]=ei,J[11]=es,J[12]=ed,J[13]=eu,J[14]=w):w=J[14];let eT=w;J[15]!==eg||J[16]!==ef||J[17]!==ei||J[18]!==es||J[19]!==ed||J[20]!==eu?(k=()=>{if(eg)return"";if(ei&&ef){if(ed)return y.ORG_ADMIN;else if(eu&&es)return y.ORG_MEMBER}return y.STANDARD},J[15]=eg,J[16]=ef,J[17]=ei,J[18]=es,J[19]=ed,J[20]=eu,J[21]=k):k=J[21];let eB=k;if(J[22]!==ep||J[23]!==ej||J[24]!==eb||J[25]!==ef||J[26]!==e_||J[27]!==ei?.userHasOrgs||J[28]!==ed||J[29]!==eu||J[30]!==ee){let e,t,n,o;S=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("p",{children:["Your request for Copilot Business was declined by an admin on ",ej,"."]}),(0,l.jsxs)("p",{className:"mb-0",children:[(0,l.jsx)(u.A,{...(0,a.G)("contact-admin-link"),"aria-label":"Click this link to contact your admin.",target:"_blank",href:`/orgs/${eb}/people?query=role:owner`,onClick:()=>C(),children:"Contact your admin"}),""," for more details around their decision."]})]}),J[36]!==ep||J[37]!==eb||J[38]!==ed||J[39]!==eu?(e=()=>ep&&eb===ep.login?"owner":ed?"admin":eu?"member":"personal",J[36]=ep,J[37]=eb,J[38]=ed,J[39]=eu,J[40]=e):e=J[40];let i=e;J[41]!==ep||J[42]!==i||J[43]!==eb||J[44]!==e_||J[45]!==ee?(t=()=>{ep&&e_({category:"copilot_popover_code_view",action:`click_to_open_popover_${ee}`,label:`ref_cta:open_copilot_popover;owner:${eb};relationship:${i()}`})},J[41]=ep,J[42]=i,J[43]=eb,J[44]=e_,J[45]=ee,J[46]=t):t=J[46],I=t,J[47]!==e_||J[48]!==ee?(n=(e,t)=>{e_({category:"copilot_popover_code_view",action:e,label:`ref_cta:${t};ref_loc:code_view_${ee}`})},J[47]=e_,J[48]=ee,J[49]=n):n=J[49],T=n,J[50]!==ef||J[51]!==e_||J[52]!==ed||J[53]!==ee?(o=()=>{let e=`${ef?"org_":""}code_view_${ee}${ed?"_org_admin":""}`;e_({category:"copilot_popover_code_view",action:"click_to_dismiss_copilot_popover_forever",label:`ref_cta:dont_show_again;ref_loc:${e}`})},J[50]=ef,J[51]=e_,J[52]=ed,J[53]=ee,J[54]=o):o=J[54],B=o,C=()=>{let e=ei?.userHasOrgs??!1;e_({category:"copilot_popover_code_view",action:`click_to_go_to_copilot_for_${e?"business":"individuals"}_info`,label:"ref_cta:learn_more;ref_loc:code_view"})},J[22]=ep,J[23]=ej,J[24]=eb,J[25]=ef,J[26]=e_,J[27]=ei?.userHasOrgs,J[28]=ed,J[29]=eu,J[30]=ee,J[31]=S,J[32]=C,J[33]=I,J[34]=T,J[35]=B}else S=J[31],C=J[32],I=J[33],T=J[34],B=J[35];J[55]!==er||J[56]!==eg||J[57]!==em||J[58]!==ex||J[59]!==ea||J[60]!==eb||J[61]!==ef||J[62]!==ey||J[63]!==T||J[64]!==ev||J[65]!==es||J[66]!==ec||J[67]!==ed||J[68]!==eu?(A=()=>er||es||ef&&(!ef||eu)?eu&&!ea&&ed?(0,l.jsx)(m.z,{type:"button",href:`/github-copilot/business_signup/organization/payment?org=${eb}`,onClick:()=>T("click_to_buy_copilot_for_business","get_github_copilot"),children:"Get GitHub Copilot"}):em&&!eg?(0,l.jsx)(g,{requested:ey,featureRequestInfo:em,inProgress:ex,toggleFeatureRequest:ev}):null:ec?(0,l.jsx)(m.z,{type:"button",href:"/settings/copilot",onClick:()=>T("click_to_go_to_copilot_settings","get_github_copilot"),children:"Get GitHub Copilot"}):(0,l.jsx)(m.z,{type:"button",href:"/github-copilot/signup",onClick:()=>T("click_to_go_to_copilot_trial_signup","start_a_free_trial"),children:"Start a free trial"}),J[55]=er,J[56]=eg,J[57]=em,J[58]=ex,J[59]=ea,J[60]=eb,J[61]=ef,J[62]=ey,J[63]=T,J[64]=ev,J[65]=es,J[66]=ec,J[67]=ed,J[68]=eu,J[69]=A):A=J[69];let eA=A;J[70]!==eh||J[71]!==B||J[72]!==eu?(L=()=>{eh&&((0,c.DI)(eh.dismissPath,{method:eu?"DELETE":"POST"}),B(),eS(!0))},J[70]=eh,J[71]=B,J[72]=eu,J[73]=L):L=J[73];let eL=L;J[74]!==el||J[75]!==C?(D=()=>(0,l.jsx)(u.A,{...(0,a.G)("copilot-popover-content-learn-more"),"aria-label":"Click this link to learn more about copilot. This action opens in a new tab.",target:"_blank",href:el,onClick:()=>C(),className:"CopilotPopover-module__learnMoreLink__rCInH",children:"Learn more"}),J[74]=el,J[75]=C,J[76]=D):D=J[76];let eD=D;if(ek||!et)return null;J[77]===Symbol.for("react.memo_cache_sentinel")?(O={role:"dialog",style:{overflow:"inherit"}},R={disabled:!0},J[77]=O,J[78]=R):(O=J[77],R=J[78]),J[79]!==eT||J[80]!==eN||J[81]!==I?(F=e=>(0,l.jsx)(h.Q,{...e,...(0,a.G)("copilot-popover-button"),leadingVisual:d.CopilotIcon,"aria-label":eT(),onClick:()=>{ew(!eN),I()},size:"small",className:"CopilotPopover-module__copilotButton__Ruc0t",variant:"invisible"}),J[79]=eT,J[80]=eN,J[81]=I,J[82]=F):F=J[82],J[83]===Symbol.for("react.memo_cache_sentinel")?(E=(0,a.G)("copilot-popover-content"),J[83]=E):E=J[83],J[84]===Symbol.for("react.memo_cache_sentinel")?(P=(0,l.jsx)("h2",{className:"CopilotPopover-module__popoverHeading__MZlTE",children:"Code 55% faster with GitHub Copilot"}),J[84]=P):P=J[84],J[85]===Symbol.for("react.memo_cache_sentinel")?($=(0,a.G)("copilot-popover-body-text"),J[85]=$):$=J[85],J[86]!==eB?(z=eB(),J[86]=eB,J[87]=z):z=J[87],J[88]!==z?(H=(0,l.jsx)("span",{...$,children:z}),J[88]=z,J[89]=H):H=J[89],J[90]!==eg||J[91]!==S||J[92]!==eD?(M=eg?S():eD(),J[90]=eg,J[91]=S,J[92]=eD,J[93]=M):M=J[93],J[94]!==H||J[95]!==M?(V=(0,l.jsxs)("div",{className:"CopilotPopover-module__popoverBodyText__TfIzF",children:[H,M]}),J[94]=H,J[95]=M,J[96]=V):V=J[96],J[97]!==eA?(U=eA(),J[97]=eA,J[98]=U):U=J[98],J[99]===Symbol.for("react.memo_cache_sentinel")?(W=(0,a.G)("copilot-popover-dismiss-button"),J[99]=W):W=J[99];let eO=eg?"CopilotPopover-module__dismissLinkNoMargin___lLS5":"CopilotPopover-module__dismissLink__TslZu";return J[100]!==eO?(q=(0,f.$)(eO),J[100]=eO,J[101]=q):q=J[101],J[102]!==eL||J[103]!==q?(G=(0,l.jsx)(u.A,{...W,onClick:eL,className:q,children:"Don't show again"}),J[102]=eL,J[103]=q,J[104]=G):G=J[104],J[105]!==U||J[106]!==G?(K=(0,l.jsxs)("div",{className:"CopilotPopover-module__popoverActionsContainer__BwCiK",children:[U,G]}),J[105]=U,J[106]=G,J[107]=K):K=J[107],J[108]!==V||J[109]!==K?(Q=(0,l.jsxs)(_.A.Content,{className:"CopilotPopover-module__PopoverContent__gY_w0",children:[P,V,K]}),J[108]=V,J[109]=K,J[110]=Q):Q=J[110],J[111]!==eN||J[112]!==Q?(Y=(0,l.jsx)(_.A,{"aria-label":"GitHub Copilot",open:eN,...E,caret:"top",children:Q}),J[111]=eN,J[112]=Q,J[113]=Y):Y=J[113],J[114]!==eN||J[115]!==F||J[116]!==Y?(X=(0,l.jsx)(p.T,{onOpen:eC,onClose:eI,open:eN,overlayProps:O,focusZoneSettings:R,renderAnchor:F,children:Y}),J[114]=eN,J[115]=F,J[116]=Y,J[117]=X):X=J[117],J[118]!==en||J[119]!==X?(Z=(0,l.jsx)("div",{className:en,children:X}),J[118]=en,J[119]=X,J[120]=Z):Z=J[120],Z};j.displayName="CopilotPopover"},16887(e,t,n){n.d(t,{c9:()=>j,tV:()=>x,_$:()=>y,iU:()=>g});var l=n(74848),o=n(16522),i=n(21373),r=n(83223),a=n(10095),s=n(38621),c=n(33542),d=n(51581),u=n(96540),m=n(40914),h=n(78597);let _=async(e,t,n)=>{try{return(await (0,h.DI)(e,{method:t,body:n})).ok}catch{return!1}},p=(e,t)=>_(e,"DELETE",b(t)),f=(e,t)=>_(e,"POST",b(t)),b=e=>{let t=new FormData;return t.append("feature",e),t};function x(e){let t,n,l,i=(0,o.c)(13);i[0]!==e?(t=e??{},i[0]=e,i[1]=t):t=i[1];let{alreadyRequested:r,dismissed:a,dismissedAt:s,featureName:c,requestPath:d}=t,h=void 0!==a&&a,_=void 0===s?"":s,b=void 0===c?"":c,x=void 0===d?"":d,[y,g]=(0,u.useState)(!1),[j,v]=(0,u.useState)(void 0!==r&&r),{addToast:N}=(0,m.Y6)();i[2]!==N||i[3]!==b||i[4]!==x||i[5]!==j?(n=async()=>{g(!0);let e=j?p:f;await e(x,b)?v(!j):N({type:"error",message:"Something went wrong. Please try again later."}),g(!1)},i[2]=N,i[3]=b,i[4]=x,i[5]=j,i[6]=n):n=i[6];let w=n;return i[7]!==h||i[8]!==_||i[9]!==y||i[10]!==j||i[11]!==w?(l={inProgress:y,requested:j,dismissed:h,dismissedAt:_,toggleFeatureRequest:w},i[7]=h,i[8]=_,i[9]=y,i[10]=j,i[11]=w,i[12]=l):l=i[12],l}function y(e){let t,n=(0,o.c)(10),{featureRequestInfo:i,learnMorePath:r,requestMessage:a,requestedMessage:s}=e,{inProgress:c,requested:d,toggleFeatureRequest:u}=x(i);return i.showFeatureRequest?(n[0]!==i.billingEntityId||n[1]!==i.featureName||n[2]!==i.isEnterpriseRequest||n[3]!==c||n[4]!==r||n[5]!==a||n[6]!==d||n[7]!==s||n[8]!==u?(t=d?(0,l.jsx)(j,{inProgress:c,toggleFeatureRequest:u,requestedMessage:s}):(0,l.jsx)(g,{inProgress:c,toggleFeatureRequest:u,isEnterpriseRequest:i.isEnterpriseRequest,featureName:i.featureName,billingEntityId:i.billingEntityId,learnMorePath:r,requestMessage:a}),n[0]=i.billingEntityId,n[1]=i.featureName,n[2]=i.isEnterpriseRequest,n[3]=c,n[4]=r,n[5]=a,n[6]=d,n[7]=s,n[8]=u,n[9]=t):t=n[9],t):null}y.displayName="FeatureRequest";let g=e=>{let t,n,i,r,a,s,c=(0,o.c)(22),{inProgress:u,toggleFeatureRequest:m,billingEntityId:h,isEnterpriseRequest:_,featureName:p,learnMorePath:f,requestMessage:b}=e,x=void 0===h?"":h,y=void 0!==_&&_,{sendClickAnalyticsEvent:g}=(0,d.S)();c[0]!==x||c[1]!==p||c[2]!==y||c[3]!==g||c[4]!==m?(t=()=>{m();let e=y&&x?`ref_cta:ask_enterprise_owners_for_access;ref_loc:${p};enterprise_id:${x};`:`ref_cta:ask_admin_for_access;ref_loc:${p};`;g({category:"member_feature_request",action:`action.${p}`,label:e})},c[0]=x,c[1]=p,c[2]=y,c[3]=g,c[4]=m,c[5]=t):t=c[5];let j=t;c[6]!==p||c[7]!==g?(n=()=>{g({category:"suggestion",action:"click_to_read_docs",label:`ref_cta:learn_more;ref_loc:${p};`})},c[6]=p,c[7]=g,c[8]=n):n=c[8];let k=n;return c[9]!==u||c[10]!==y||c[11]!==j?(i=(0,l.jsx)(v,{onClick:j,inProgress:u,isEnterpriseRequest:y}),c[9]=u,c[10]=y,c[11]=j,c[12]=i):i=c[12],c[13]!==b?(r=b&&(0,l.jsx)(w,{message:b}),c[13]=b,c[14]=r):r=c[14],c[15]!==k||c[16]!==f?(a=f&&(0,l.jsx)(N,{onClick:k,path:f}),c[15]=k,c[16]=f,c[17]=a):a=c[17],c[18]!==i||c[19]!==r||c[20]!==a?(s=(0,l.jsxs)(l.Fragment,{children:[i,r,a]}),c[18]=i,c[19]=r,c[20]=a,c[21]=s):s=c[21],s};g.displayName="RequestFeature";let j=e=>{let t,n,i,r=(0,o.c)(8),{inProgress:a,toggleFeatureRequest:s,requestedMessage:c}=e;return r[0]!==c?(t=c&&(0,l.jsx)(k,{message:c}),r[0]=c,r[1]=t):t=r[1],r[2]!==s||r[3]!==a?(n=(0,l.jsx)(S,{onClick:s,inProgress:a}),r[2]=s,r[3]=a,r[4]=n):n=r[4],r[5]!==t||r[6]!==n?(i=(0,l.jsxs)(l.Fragment,{children:[t,n]}),r[5]=t,r[6]=n,r[7]=i):i=r[7],i};j.displayName="CancelFeatureRequest";let v=e=>{let t,n,r=(0,o.c)(5),{onClick:a,inProgress:s,isEnterpriseRequest:d}=e;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,c.G)("feature-request-request-button"),r[0]=t):t=r[0];let u=s?"Requesting...":d?"Ask enterprise owners for access":"Ask admin for access";return r[1]!==s||r[2]!==a||r[3]!==u?(n=(0,l.jsx)(i.Q,{onClick:a,variant:"primary",disabled:s,...t,children:u}),r[1]=s,r[2]=a,r[3]=u,r[4]=n):n=r[4],n};v.displayName="RequestCTA";let N=e=>{let t,n,i=(0,o.c)(4),{onClick:a,path:s}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,c.G)("feature-request-learn-more-link"),i[0]=t):t=i[0],i[1]!==a||i[2]!==s?(n=(0,l.jsx)(r.A,{href:s,onClick:a,...t,children:"Learn more"}),i[1]=a,i[2]=s,i[3]=n):n=i[3],n};N.displayName="LearnMore";let w=e=>{let t,n=(0,o.c)(2),{message:i}=e;return n[0]!==i?(t=(0,l.jsx)("span",{children:i}),n[0]=i,n[1]=t):t=n[1],t};w.displayName="RequestMessage";let k=e=>{let t,n,i=(0,o.c)(3),{message:r}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(a.A,{icon:s.CheckIcon}),i[0]=t):t=i[0],i[1]!==r?(n=(0,l.jsxs)("span",{className:"d-inline-block color-fg-subtle mr-1",children:[t,r]}),i[1]=r,i[2]=n):n=i[2],n};k.displayName="RequestedMessage";let S=e=>{let t,n,i=(0,o.c)(5),{onClick:a,inProgress:s}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,c.G)("feature-request-cancel-link"),i[0]=t):t=i[0];let d=s?"Cancelling...":"Remove request";return i[1]!==s||i[2]!==a||i[3]!==d?(n=(0,l.jsx)(r.A,{className:"color-fg-danger text-semibold",as:"button",onClick:a,disabled:s,...t,children:d}),i[1]=s,i[2]=a,i[3]=d,i[4]=n):n=i[4],n};S.displayName="RemoveRequestCTA"},40846(e,t,n){n.d(t,{x:()=>a});var l=n(74848),o=n(16522),i=n(381),r=n(19519);function a(e){let t,n,a,s,c,d,u=(0,o.c)(13);u[0]!==e?({ref:a,children:t,src:s,...n}=e,u[0]=e,u[1]=t,u[2]=n,u[3]=a,u[4]=s):(t=u[1],n=u[2],a=u[3],s=u[4]);let{isServer:m}=(0,r.V)();return u[5]!==m||u[6]!==s?(c=m?{}:{src:s,"data-nonce":(0,i.M1)()},u[5]=m,u[6]=s,u[7]=c):c=u[7],u[8]!==t||u[9]!==n||u[10]!==a||u[11]!==c?(d=(0,l.jsx)("include-fragment",{...n,ref:a,...c,children:t}),u[8]=t,u[9]=n,u[10]=a,u[11]=c,u[12]=d):d=u[12],d}a.displayName="IncludeFragment"},16176(e,t,n){n.d(t,{Q:()=>p,w:()=>x});var l=n(74848),o=n(16522),i=n(45360),r=n(23666),a=n(77236),s=n(14350),c=n(83223),d=n(46249);let u="Breadcrumb-module__md__Wb1Gs",m="Breadcrumb-module__lg__Rjz0A",h="Breadcrumb-module__listItem__Ib0x_";var _=n(53035);function p(e){let t,n,r,a,c,d,_,p,g,j,v,N,w=(0,o.c)(44),{id:k,fileNameId:S,path:C,repo:I,commitish:T,isFolder:B,size:A,showCopyPathButton:L}=e,D=void 0===k?"breadcrumb":k,O=void 0===A?"lg":A;w[0]!==C?(n={fileName:(t=C.split("/")).pop()||"",segments:t.map((e,n)=>({directoryName:e,directoryPath:t.slice(0,n+1).join("/")}))},w[0]=C,w[1]=n):n=w[1];let{fileName:R,segments:F}=n,E=!C,P=B&&"/"===C,$="md"===O?u:m,z=`Breadcrumb-module__container__Vxvev ${$}`,H=`${D}-heading`,M=`${D}-heading`;if(w[2]!==M?(r=(0,l.jsx)(s.W,{id:M,as:"h2",text:"Breadcrumbs"}),w[2]=M,w[3]=r):r=w[3],w[4]!==T||w[5]!==I?(a=(0,l.jsx)(f,{repo:I,commitish:T}),w[4]=T,w[5]=I,w[6]=a):a=w[6],w[7]!==I||w[8]!==P?(c=P&&(0,l.jsx)(s.W,{as:"h1",text:I.name}),w[7]=I,w[8]=P,w[9]=c):c=w[9],w[10]!==a||w[11]!==c?(d=(0,l.jsxs)("li",{className:h,children:[a,c]}),w[10]=a,w[11]=c,w[12]=d):d=w[12],w[13]!==T||w[14]!==I||w[15]!==F||w[16]!==O){let e;w[18]!==T||w[19]!==I||w[20]!==O?(e=e=>{let{directoryName:t,directoryPath:n}=e;return(0,l.jsxs)("li",{className:h,children:[(0,l.jsx)(x,{size:O}),t?(0,l.jsx)(b,{path:n,directoryName:t,repo:I,commitish:T}):null]},n)},w[18]=T,w[19]=I,w[20]=O,w[21]=e):e=w[21],_=F.map(e),w[13]=T,w[14]=I,w[15]=F,w[16]=O,w[17]=_}else _=w[17];return w[22]!==d||w[23]!==_?(p=(0,l.jsxs)("ol",{className:"Breadcrumb-module__list__ZH6zr",children:[d,_]}),w[22]=d,w[23]=_,w[24]=p):p=w[24],w[25]!==D||w[26]!==p||w[27]!==H||w[28]!==r?(g=(0,l.jsxs)("nav",{"data-testid":"breadcrumbs","aria-labelledby":H,id:D,className:"Breadcrumb-module__nav__rQFDj",children:[r,p]}),w[25]=D,w[26]=p,w[27]=H,w[28]=r,w[29]=g):g=w[29],w[30]!==R||w[31]!==S||w[32]!==B||w[33]!==E||w[34]!==O?(j=R&&(0,l.jsxs)("div",{"data-testid":"breadcrumbs-filename",className:"Breadcrumb-module__filename__equZR",children:[(0,l.jsx)(x,{size:O}),(0,l.jsx)(y,{value:R,id:S,size:O}),!E&&B&&(0,l.jsx)(x,{size:O})]},R),w[30]=R,w[31]=S,w[32]=B,w[33]=E,w[34]=O,w[35]=j):j=w[35],w[36]!==C||w[37]!==L?(v=L&&(0,l.jsx)(i.T,{ariaLabel:"Copy path",textToCopy:C,tooltipProps:{direction:"nw"},size:"small",className:"ml-2"}),w[36]=C,w[37]=L,w[38]=v):v=w[38],w[39]!==g||w[40]!==j||w[41]!==v||w[42]!==z?(N=(0,l.jsxs)("div",{className:z,children:[g,j,v]}),w[39]=g,w[40]=j,w[41]=v,w[42]=z,w[43]=N):N=w[43],N}function f(e){let t,n,i=(0,o.c)(7),{repo:s,commitish:d}=e,u=(0,_.E)();i[0]!==d||i[1]!==s?(t=(0,r.IO9)({repo:s,commitish:d,action:"tree"}),i[0]=d,i[1]=s,i[2]=t):t=i[2];let m=!u;return i[3]!==s.name||i[4]!==t||i[5]!==m?(n=(0,l.jsx)(c.A,{as:a.N,className:"Breadcrumb-module__repoLink__O2Nbs",to:t,"data-testid":"breadcrumbs-repo-link",reloadDocument:m,children:s.name}),i[3]=s.name,i[4]=t,i[5]=m,i[6]=n):n=i[6],n}function b(e){let t,n,i=(0,o.c)(7),{directoryName:s,path:d,repo:u,commitish:m}=e;return i[0]!==m||i[1]!==d||i[2]!==u?(t=(0,r.IO9)({repo:u,commitish:m,path:d,action:"tree"}),i[0]=m,i[1]=d,i[2]=u,i[3]=t):t=i[3],i[4]!==s||i[5]!==t?(n=(0,l.jsx)(c.A,{as:a.N,to:t,className:"Breadcrumb-module__directoryLink__kQy_t",children:s}),i[4]=s,i[5]=t,i[6]=n):n=i[6],n}function x(e){let t,n=(0,o.c)(2),{size:i}=e,r=`Breadcrumb-module__separator__eNwsI ${"md"===(void 0===i?"lg":i)?u:m}`;return n[0]!==r?(t=(0,l.jsx)("span",{className:r,"aria-hidden":"true",children:"/"}),n[0]=r,n[1]=t):t=n[1],t}function y(e){let t,n=(0,o.c)(4),{value:i,id:r,size:a}=e,s=`Breadcrumb-module__filenameHeading__MNMtw ${"md"===(void 0===a?"lg":a)?u:m}`;return n[0]!==r||n[1]!==s||n[2]!==i?(t=(0,l.jsx)(d.A,{as:"h1",tabIndex:-1,className:s,id:r,children:i}),n[0]=r,n[1]=s,n[2]=i,n[3]=t):t=n[3],t}p.displayName="Breadcrumb",f.displayName="RepoLink",b.displayName="DirectoryLink",x.displayName="Separator",y.displayName="FileName"},78919(e,t,n){n.d(t,{F:()=>a});var l=n(74848),o=n(16522),i=n(76331),r=n(96540);function a(e,t,n){let i,a,c,d,u=(0,o.c)(11),[m,h]=(0,r.useState)("");u[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{h("")},u[0]=i):i=u[0];let _=i;u[1]!==t?(a=e=>{h(e),t.current!==document.activeElement&&setTimeout(_,3e3)},u[1]=t,u[2]=a):a=u[2];let p=a;return u[3]!==t||u[4]!==e||u[5]!==m||u[6]!==n?(c=(0,l.jsx)(s,{message:m,id:e,contentRef:t,clearMessage:_,portalTooltipProps:n},e),u[3]=t,u[4]=e,u[5]=m,u[6]=n,u[7]=c):c=u[7],u[8]!==c||u[9]!==p?(d=[p,_,c],u[8]=c,u[9]=p,u[10]=d):d=u[10],d}function s(e){let t,n=(0,o.c)(6),{message:r,id:a,contentRef:s,clearMessage:c,portalTooltipProps:d}=e;return n[0]!==c||n[1]!==s||n[2]!==a||n[3]!==r||n[4]!==d?(t=r?(0,l.jsx)(i.m,{id:a,contentRef:s,"aria-label":r,open:!!r,onMouseLeave:c,"aria-live":"assertive",...d}):null,n[0]=c,n[1]=s,n[2]=a,n[3]=r,n[4]=d,n[5]=t):t=n[5],t}s.displayName="AlertTooltip"},63155(e,t,n){n.d(t,{t:()=>r});var l=n(16522),o=n(96540),i=n(84989);function r(){let e,t=(0,l.c)(1);t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0],(0,o.useLayoutEffect)(a,e)}function a(){return(0,i.s)(!1),s}function s(){(0,i.s)(!0)}},93973(e,t,n){n.d(t,{L:()=>i});var l=n(16522),o=n(96540);function i(e){let t,n,i=(0,l.c)(3);i[0]!==e?(t=()=>{if(!e)return;let t=document.querySelector(".footer");if(t)return t.hidden=!0,()=>{t.hidden=!1}},n=[e],i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,o.useEffect)(t,n)}},75238(e,t,n){n.d(t,{z:()=>r});var l=n(16522),o=n(96540);let i={threshold:[1],rootMargin:"-1px 0px 0px 0px"};function r(e){let t,n,r,a,s=(0,l.c)(10),c=0==arguments.length,[d,u]=(0,o.useState)(!1);s[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{let t=e[e.length-1];t&&u(t.intersectionRatio<1)},s[0]=t):t=s[0];let m=(0,o.useEffectEvent)(t),[h,_]=(0,o.useState)(null),p=c?h:e??null;if(s[1]!==m||s[2]!==p?(n=()=>{if(!p)return;let e=new IntersectionObserver(e=>m(e),i);return e.observe(p),()=>e.disconnect()},s[1]=m,s[2]=p,s[3]=n):n=s[3],s[4]!==p?(r=[p],s[4]=p,s[5]=r):r=s[5],(0,o.useEffect)(n,r),c){let e;return s[6]!==d?(e={isSticky:d,sentinelRef:_},s[6]=d,s[7]=e):e=s[7],e}return s[8]!==d?(a={isSticky:d},s[8]=d,s[9]=a):a=s[9],a}}}]); //# sourceMappingURL=43690-1bf96b09b51e3cc0-39f8d6b4aec8220c.js.map