티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“lazy-react-partial-actions-survey”,”lazy-react-partial-demo-repo-tour”,”lazy-react-partial-ref-selector-partial”,”react-code-view”],{1476:(e,t,n)=>{var i=n(70103),a=n(40548),o=n(74848),r=n(57224),s=n(78314),l=n(35898),c=n(19357),d=n(76648),u=n(94195),m=n(64830),h=n(96540);function p({children:e}){let t=(0,d.B)(),[n]=h.useState(t?.repo),[i]=h.useState(t?.currentUser),a=(0,h.useMemo)(()=>({}),[]);return(0,h.useEffect)(()=>{let e=document.querySelector(“.footer”);e&&(e.querySelector(“.mt-6”)?.classList.replace(“mt-6″,”mt-0”),e.querySelector(“.border-top”)?.classList.remove(“border-top”))},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“meta”,{“data-hydrostats”:”publish”}),(0,o.jsx)(u.LB,{initialValue:u.Gy.xxxlarge,children:(0,o.jsx)(r.y,{appName:”react-code-view”,category:””,metadata:a,children:(0,o.jsx)(l.Q,{user:i,children:(0,o.jsx)(s.d,{repository:n,children:(0,o.jsx)(m.cp,{children:(0,o.jsx)(c.i,{children:e})})})})})})]})}try{p.displayName||(p.displayName=”App”)}catch{}var x=n(79739),f=n(12748),y=n(64375),b=n(26619),g=n(31078),_=n(53552),j=n(46209),v=n(80780),N=n(50731),w=n(13364),k=n(19189),C=n(17038),B=n(41617),S=n(53627),I=n(17182),T=n(86131),L=n(70843),A=n(87555),D=n(21998),O=n(70170),R=n(37272),E=n(6665),z=n(14343),F=n(84331),P=n(38621),$=n(10095),M=n(76455);let H={TextInput_Action:”CodeNavSymbolNavigation-module__TextInput_Action–hHTCj”};var W=n(40480);function G({symbolKind:e,showFullSymbol:t}){return e?(0,o.jsxs)(D.az,{sx:{display:”flex”,flexDirection:”row”,position:”relative”,…t?{}:{mr:2}},children:[(0,o.jsx)(D.az,{sx:{backgroundColor:e.plColor,opacity:.1,position:”absolute”,borderRadius:5,alignItems:”stretch”,display:”flex”,width:”100%”,height:”100%”}}),(0,o.jsx)(D.az,{sx:{color:e.plColor,borderRadius:5,fontWeight:600,…t?{fontSize:”small”,px:2,py:”1px”,mt:”2px”}:{fontSize:”smaller”,px:1,py:”1px”}},children:t?e.fullName:e.shortName})]}):null}try{G.displayName||(G.displayName=”SymbolIndicator”)}catch{}let U=h.memo(function({treeSymbols:e,onTreeSymbolSelect:t}){let n=!e.some(e=>e.isParent||e.children.length>0);return(0,o.jsx)(D.az,{id:”filter-results”,sx:{mb:-2,overflowY:”auto”,maxHeight:”calc(100vh – 237px)”,pl:3,pb:2,pt:1},children:(0,o.jsx)(W.G,{“aria-label”:”Code Navigation”,flat:n,children:e.map((e,n)=>(0,o.jsx)(q,{id:`${n}${e.symbol.name}`,symbol:e,depth:e.isParent?1:2,onSelect:t},`${n}${e.symbol.name}`))})})});function V({symbol:e}){return(0,o.jsxs)(D.az,{sx:{display:”flex”},children:[(0,o.jsx)(G,{symbolKind:e.symbol.kind}),” “,(0,o.jsx)(D.PA,{title:e.symbol.name,sx:{maxWidth:180,display:”block”},children:(0,o.jsx)(“span”,{children:e.symbol.name})})]})}function q({symbol:e,depth:t,onSelect:n,id:i}){let[a,r]=(0,h.useState)(t<=7);return(0,o.jsxs)(W.G.Item,{onSelect:()=>n(e.symbol),expanded:a,onExpandedChange:()=>r(!a),id:i,children:[(0,o.jsx)(V,{symbol:e}),e.isParent&&e.children.length>0&&(0,o.jsx)(W.G.SubTree,{children:e.children.map((e,i)=>(0,o.jsx)(q,{symbol:e,depth:e.isParent?t+1:t,onSelect:n,id:`${i}${e.symbol.name}`},`${i}${e.symbol.name}`))})]})}try{U.displayName||(U.displayName=”CodeNavSymbolTree”)}catch{}try{V.displayName||(V.displayName=”CodeNavTreeContent”)}catch{}try{q.displayName||(q.displayName=”CodeNavTreeItem”)}catch{}var Y=n(4559),K=n(11683),Q=n(45800),X=n(38077);let Z=h.memo(function({symbol:e,filterText:t,onSelect:n,focused:i,index:a}){return(0,o.jsx)(D.lF.Item,{role:”option”,id:`jump-to-item-${a}`,”aria-selected”:i,sx:{minWidth:0,…i?{backgroundColor:”var(–bgColor-muted, var(–color-canvas-subtle)) !important”}:{}},onSelect:()=>n(e),children:(0,o.jsx)(D.N_,{href:e.href(),sx:{“:hover”:{textDecoration:”none”}},children:(0,o.jsxs)(“div”,{style:{display:”flex”},children:[(0,o.jsx)(G,{symbolKind:e.kind}),” “,(0,o.jsx)(“div”,{style:{display:”flex”,minWidth:0,alignItems:”flex-end”},children:(0,o.jsx)(X.z,{search:t,text:e.name,overflowWidth:175,hideOverflow:!0},e.fullyQualifiedName)})]})})})});try{Z.displayName||(Z.displayName=”JumpToItem”)}catch{}function J(e){return(0,o.jsx)(ee,{…e})}function ee({codeSymbols:e,filterText:t,onSelect:n,focusedIndex:i}){let a=(0,h.useRef)(e.length),r=(0,h.useRef)(“”),{containerRef:s}=(0,Q.G)({bindKeys:K.z0.ArrowVertical|K.z0.HomeAndEnd});return(0,h.useEffect)(()=>{e.length===a.current&&(r.current+=”\u200B”);let t=1===e.length?”symbol”:”symbols”;(0,Y.i)(`${e.length} ${t} found${r.current}`),a.current=e.length},[e]),(0,o.jsx)(D.lF,{ref:s,role:”listbox”,id:”filter-results”,”aria-orientation”:”vertical”,sx:{maxHeight:”68vh”,overflowY:”auto”},children:e.map((e,a)=>{let{name:r,lineNumber:s}=e;return(0,o.jsx)(Z,{symbol:e,filterText:t,onSelect:n,focused:a===i,index:a},`${r}_${s}`)})})}try{J.displayName||(J.displayName=”JumpToItemList”)}catch{}try{ee.displayName||(ee.displayName=”FullJumpToItemList”)}catch{}var et=n(25407),en=n(1805);function ei({filterText:e,isFindInFile:t}){let[n,i]=(0,h.useState)(t?”No matches found”:”No symbols found”),a=(0,s.t)(),r=(0,h.useRef)(!0);return(0,h.useEffect)(()=>{if(r.current){r.current=!1;return}i(`${n}\u200B`)},[e]),(0,o.jsxs)(D.az,{sx:{justifyContent:”center”,alignItems:”center”,display:”flex”,flexDirection:”column”,pb:2},children:[“”===e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.az,{sx:{bg:”canvas.subtle”,borderRadius:6,p:”16px”},children:(0,o.jsxs)(D.az,{sx:{textAlign:”center”},children:[(0,o.jsx)(D.DZ,{as:”h3″,sx:{fontSize:0,marginBottom:”4px”},children:”Symbol outline not available for this file”}),(0,o.jsx)(D.az,{sx:{justifyContent:”center”,alignItems:”center”,display:”flex”,fontSize:”12px”,color:”fg.muted”},children:”To inspect a symbol, try clicking on the symbol directly in the code view.”})]})}),(0,o.jsxs)(D.az,{sx:{mt:”8px”,fontSize:0,textAlign:”center”,color:”fg.muted”},children:[” “,”Code navigation supports a limited number of languages.”,” “,(0,o.jsx)(en.A,{inline:!0,href:”https://docs.github.com/repositories/working-with-files/using-files/navigating-code-on-github”,children:”See which languages are supported.”})]})]}),e&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)($.A,{icon:P.SearchIcon,size:24}),(0,o.jsx)(D.EY,{as:”h3″,sx:{textAlign:”center”,fontWeight:600,fontSize:3,py:2},role:”alert”,”aria-relevant”:”all”,children:n})]}),e&&(0,o.jsxs)(D.EY,{id:”filter-zero-state”,sx:{textAlign:”center”,px:3,mt:2,fontSize:0,color:”fg.subtle”},children:[“No lines in this file contain that string.”,(0,o.jsx)(“br”,{}),”Search in”,” “,(0,o.jsxs)(en.A,{href:(0,et.Y8Y)({owner:a.ownerLogin,repo:a.name,searchTerm:e}),inline:!0,children:[a.ownerLogin,”/”,a.name]}),” “,”or”,” “,(0,o.jsx)(en.A,{href:(0,et.GGt)({searchTerm:e}),inline:!0,children:”all of GitHub”})]})]})}try{ei.displayName||(ei.displayName=”SymbolZeroState”)}catch{}let ea=”symbols-pane-header”;function eo({codeSymbols:e,onSymbolSelect:t,treeSymbols:n,autoFocusSearch:i,onClose:a}){let[r,s]=(0,h.useState)(“”),[l,c]=(0,h.useState)(e);return(0,h.useEffect)(()=>{if(“”===r)return void c(e);c(function(e,t){let n=e.replace(/\s/g,””);return(0,z.d)(t,e=>{let t=(0,F.dt)(e.name,n);return t>0?{score:t,text:e.name}:null},F.UD)}(r,e))},[r,e]),(0,o.jsx)(er,{treeSymbols:n,codeSymbols:l,filterText:r,setFilterText:s,onSymbolSelect:t,autoFocusSearch:i,onClose:a})}function er({codeSymbols:e,setFilterText:t,filterText:n,onSymbolSelect:i,treeSymbols:a,autoFocusSearch:r,onClose:s}){let l=e?.length>0,c=a.length>0,d=l||c,[u,m]=(0,h.useState)(-1),{sendRepoKeyDownEvent:p}=(0,E.T)(),x=(0,h.useRef)(null),f=!c||””!==n;(0,h.useEffect)(()=>{r&&x.current?.focus()},[r]),(0,M.Gp)(()=>{x.current?.focus()});let y=(0,h.useMemo)(()=>(0,O.s)(()=>{p(“BLOB_SYMBOLS_MENU.FILTER_SYMBOLS”)},400),[p]);return(0,o.jsxs)(D.az,{sx:{py:2,px:3},”aria-labelledby”:ea,children:[(0,o.jsxs)(D.az,{sx:{display:”flex”,flexDirection:”row”,justifyContent:”space-between”},children:[(0,o.jsx)(D.az,{as:”h2″,sx:{fontSize:1,order:1,display:”flex”,flexDirection:”row”,justifyContent:”center”,alignItems:”center”,fontWeight:600},id:ea,tabIndex:-1,children:”Symbols”}),(0,o.jsx)(D.K0,{“aria-label”:”Close symbols”,tooltipDirection:”w”,”data-hotkey”:”Escape”,icon:P.XIcon,sx:{order:3,color:”fg.default”,mr:-2},onClick:s,variant:”invisible”})]}),d&&(0,o.jsx)(D.az,{sx:{fontSize:0,color:”fg.muted”,pt:2},children:”Find definitions and references for functions and other symbols in this file by clicking a symbol below or in the code.”}),(l||””!==n)&&(0,o.jsx)(D.ks,{block:!0,leadingVisual:()=>(0,o.jsx)($.A,{“aria-hidden”:”true”,icon:P.FilterIcon}),ref:x,trailingAction:n?(0,o.jsx)(D.ks.Action,{onClick:()=>{t(“”),m(-1)},icon:P.XCircleFillIcon,”aria-label”:”Clear input”,”data-testid”:”clear-search”,className:H.TextInput_Action}):(0,o.jsx)(o.Fragment,{}),trailingVisual:n?void 0:()=>(0,o.jsx)(R.E,{children:(0,o.jsx)(D.az,{sx:{mr:”6px”},children:(0,o.jsx)(“kbd”,{children:”r”})})}),sx:{mt:2,borderRadius:2},placeholder:”Filter symbols”,value:n,name:”Filter symbols”,”aria-label”:”Filter symbols”,”aria-controls”:!l&&f?”filter-zero-state”:”filter-results”,”aria-expanded”:”true”,”aria-autocomplete”:”list”,”aria-activedescendant”:-1===u?void 0:`jump-to-item-${u}`,onKeyDown:t=>{“ArrowDown”===t.key||(“N”===t.key||”n”===t.key)&&t.ctrlKey?m(Math.min(u+1,e.length-1)):”ArrowUp”===t.key||(“P”===t.key||”p”===t.key)&&t.ctrlKey?m(Math.max(u-1,0)):”Enter”===t.key&&e[u]?i(e[u]):”Escape”===t.key&&s()},role:”combobox”,onChange:e=>{t(e.target.value),y(),m(-1)}}),!f&&(0,o.jsx)(D.az,{sx:{ml:-3,mb:-2},children:(0,o.jsx)(U,{treeSymbols:a,onTreeSymbolSelect:i})}),l&&f&&(0,o.jsx)(J,{codeSymbols:e,filterText:n,onSelect:i,focusedIndex:u}),!l&&f&&(0,o.jsx)(D.EY,{sx:{display:”flex”,alignItems:”center”,justifyContent:”center”,mt:2},children:(0,o.jsx)(ei,{filterText:n})})]})}try{eo.displayName||(eo.displayName=”CodeNavSymbolNavigation”)}catch{}try{er.displayName||(er.displayName=”JumpToActionList”)}catch{}var es=n(27942),el=n(6426),ec=n(66561),ed=n(53419),eu=n(71315),em=n(87613),eh=n(70395),ep=n(68239),ex=n(17363),ef=n(27473),ey=n(96459),eb=n(60619),eg=n(29806),e_=n(18752),ej=n(7808),ev=n(4788);function eN({data:e}){let{query:t,lines:n,currentCodeReferences:i}=e;return{ranges:i?(0,ex.KY)(i,n,(0,ex.tz)(t)):(0,ex.Kv)(n,(0,ex.tz)(t)),query:t}}var ew=n(80166);function ek(e){let[t,n]=(0,h.useState)(!1),i=(0,h.useCallback)(e=>{let i=e[e.length-1].intersectionRatio<1;i!==t&&n(i)},[t,n]);return(0,h.useEffect)(()=>{let t=e.current,n=new IntersectionObserver(i,{threshold:[1],rootMargin:”-1px 0px 0px 0px”});return e.current&&n.observe(e.current),()=>{t&&n.unobserve(t)}},[e,i]),t}function eC(){return h.useMemo(()=>({top:”0px”,zIndex:4,background:”var(–bgColor-default, var(–color-canvas-default))”,position:”sticky”}),[!0])}var eB=n(21067),eS=n(96379);async function eI(e,t,n){if(!(0,eB.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,eS.DI)(“/repos/preferences”,{method:”PUT”,body:i,headers:{Accept:”application/json”}})}var eT=n(75408);let eL=(0,h.createContext)({findInFileOpen:!1,setFindInFileOpen:()=>void 0});function eA({children:e,searchTerm:t,setSearchTerm:n,isBlame:i}){let a=(0,eT.fY)(i),r=(0,h.useRef)(“”),[s,l]=(0,h.useState)(!1),c=(0,h.useCallback)(e=>{e&&””===t&&””!==r.current?n(r.current):e||””===t||(r.current=t,n(“”)),l(e)},[t,n]),d=(0,h.useMemo)(()=>({findInFileOpen:!a&&s,setFindInFileOpen:c}),[s,c,a]);return(0,o.jsx)(eL.Provider,{value:d,children:e})}function eD(){return(0,h.useContext)(eL)}try{eL.displayName||(eL.displayName=”FindInFileOpenContext”)}catch{}try{eA.displayName||(eA.displayName=”FindInFileOpenProvider”)}catch{}let eO={FileRenderer:”FileRenderer”,Image:”Image”,TooLargeError:”TooLargeError”,CSV:”CSV”,Markdown:”Markdown”,IssueTemplate:”IssueTemplate”,Code:”Code”};function eR(){let e=(0,eh.A)(),t=(0,em.O)();if(e.renderedFileInfo&&!e.shortPath&&!t)return eO.FileRenderer;if(e.renderImageOrRaw)if(e.image)return eO.Image;else return eO.TooLargeError;if(e.csv&&!t)return eO.CSV;if(e.richText&&!t)return eO.Markdown;if((e.issueTemplate?.structured&&e.issueTemplate.valid||e.discussionTemplate&&e.discussionTemplate.valid)&&!t&&!e.isPlain)return eO.IssueTemplate;else return eO.Code}function eE(e){throw Error(`Unexpected object: ${e}`)}var ez=n(59775),eF=n(30022);function eP(e){let t=(0,h.useRef)(null);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ez.s,{…e,ref:t}),(0,o.jsx)(eF.A,{containerRef:t})]})}try{eP.displayName||(eP.displayName=”MarkdownContent”)}catch{}var e$=n(20265),eM=n(13017),eH=n(82075),eW=n(54571);let eG=(0,h.createContext)([]);try{eG.displayName||(eG.displayName=”SplitCodeownersErrorsContext”)}catch{}var eU=n(96657),eV=n(29110),eq=n(38102),eY=n(94001),eK=n(58150),eQ=n(4446),eX=n(77430),eZ=n(66108),eJ=n(73017),e0=n(65591),e1=n(62935),e2=n(11196),e3=n(46996);let e4=[.007,.014,.03,.049,.084,.14,.23,.38,.62,Number.MAX_VALUE],e5={“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″},e6={RelativeTime:”Blame-module__RelativeTime–Rq9oy”};var e7=n(68657),e8=n(5625);let e9=h.forwardRef(tt);function te({copilotAccessAllowed:e,linesData:t,tabSize:n,onLineNumberClick:i}){let a=(0,h.useRef)(null),r=ta((0,em.O)(),t);return(0,o.jsx)(“div”,{className:”d-flex flex-column”,style:{tabSize:n},ref:a,”data-hpc”:!0,children:r.map((t,n)=>(0,o.jsx)(ti,{…t,index:n,copilotAccessAllowed:e,onLineNumberClick:i},`blame-for-segment-${t.range?.start??t.linesData[0].lineNumber}`))})}function tt({copilotAccessAllowed:e,linesData:t,tabSize:n,materializeAllLines:i,onLineNumberClick:a},r){let s=(0,h.useRef)(null),l=(0,em.O)(),{screenSize:c}=(0,u.lm)();(0,h.useImperativeHandle)(r,()=>({scrollToTop:()=>{(0,eg.si)(0)||m.scrollToIndex(0,{align:”start”})},scrollToLine:e=>{(0,eg.si)(e)||m.scrollToIndex(e,{align:”center”})}}));let d=(0,h.useCallback)(e=>{let n=t[e],i=l?.ranges[n.lineNumber];return i&&i.end===i.start?window.innerWidth>u.Gy.medium?31:41:20},[t,l]),m=(0,e0.hf)({parentRef:s,size:t.length,overscan:i?Number.MAX_SAFE_INTEGER:100,estimateSize:d}),p=ta(l,m.virtualItems.map(e=>({…t[e.index],virtualOffset:e.start})));return(0,o.jsx)(“div”,{style:{“–blame-segments-count”:p.length,”–blame-virt-total-size”:`${m.totalSize}px`,tabSize:n},className:”virtual-blame-wrapper”,ref:s,”data-hpc”:!0,children:p.map((t,n)=>{let i=t.linesData[0].virtualOffset??0;return c(0,o.jsxs)(“div”,{className:”d-flex flex-row”,children:[(0,o.jsx)(“div”,{className:`react-line-numbers ${n.length>1?””:”react-blame-no-line-data”}`,children:(0,o.jsx)(e8.Kn,{codeLineData:e,onClick:a},`line-number-${e.lineNumber}-content-${e.rawText?.substring(0,100)}`)}),(0,o.jsx)(“div”,{className:`react-code-line ${n.length>1?””:”react-blame-no-line-data”}`,children:(0,o.jsx)(e7.S,{stylingDirectivesLine:e.stylingDirectivesLine,id:`LC${e.lineNumber}`,codeLineData:e,copilotAccessAllowed:i,shouldUseInert:!1},`code-line=${e.lineNumber}-content-${e.rawText?.substring(0,100)}`)})]},`line-pair-${e.lineNumber}`))})]})}let ti=h.memo(function({range:e,commit:t,linesData:n,virtualOffset:i,copilotAccessAllowed:a,onLineNumberClick:r}){return(0,o.jsx)(“div”,{className:”react-blame-segment-wrapper”,style:void 0!==i?{transform:`translateY(${i}px)`,position:”absolute”,top:0}:void 0,children:(0,o.jsx)(tn,{range:e,commit:t,linesData:n,copilotAccessAllowed:a,onLineNumberClick:r})})},(e,t)=>e.range===t.range&&e.commit===t.commit&&e.virtualOffset===t.virtualOffset&&(0,e3.A)(e.linesData,t.linesData));function ta(e,t){if(!e)return[{linesData:t}];let n=[],i=null,a=!0;for(let o of t){i||(i={linesData:[]});let t=a?Object.values(e?.ranges??{}).find(e=>e.start<=o.lineNumber&&e.end>=o.lineNumber):e?.ranges[o.lineNumber];t&&(i.range=t,i.commit=e.commits[t.commitOid]),i.linesData.push(o),i.range?.end===o.lineNumber&&(n.push(i),i=null),a=!1}return i&&(n.push(i),i=null),n}let to=h.memo(tr);function tr({range:e,commit:t}){let n=(0,s.t)(),i=new Date(t.committedDate),a=new Date(n.createdAt),r=(0,o.jsx)(“div”,{className:”timestamp-ago”,children:(0,o.jsx)(e1.A,{date:i,tense:”past”,className:e6.RelativeTime})});return(0,o.jsxs)(“div”,{className:”react-blame-for-range d-flex”,children:[(0,o.jsx)(“div”,{“aria-hidden”:!0,className:”age-indicator”,children:(0,o.jsx)(tl,{commitDate:i,repoCreationDate:a})}),(0,o.jsx)(“div”,{className:”pt-1 timestamp-wrapper-desktop”,children:r}),(0,o.jsx)(“div”,{className:”author-avatar-wrapper”,children:t.authorAvatarUrl&&(0,o.jsx)(eX.r,{src:t.authorAvatarUrl,size:18})}),(0,o.jsx)(D.az,{sx:{verticalAlign:”top”,pt:[2,2,”6px”],pb:[2,2,0],minWidth:[0,0,170],flexGrow:[1,1,1]},children:(0,o.jsx)(“div”,{className:”d-flex”,children:(0,o.jsx)(eJ.JR,{html:t.shortMessageHtmlLink,sx:{whiteSpace:”nowrap”,ml:2,overflowX:”hidden”,textOverflow:”ellipsis”,maxWidth:”100%”,fontSize:[1,1,0]},”data-hovercard-url”:(0,et.fQd)({owner:n.ownerLogin,repo:n.name,commitish:t.oid})})})}),(0,o.jsxs)(D.az,{sx:{display:”flex”,alignContent:”flex-start”,justifySelf:”flex-end”,verticalAlign:”top”,pl:2,pt:[“2px”,”2px”,”1px”],pb:[1,1,0],width:[150,150,34],pr:[2,2,0]},children:[(0,o.jsx)(“div”,{className:”pt-1 pr-3 timestamp-wrapper-mobile”,children:r}),(0,o.jsx)(ts,{range:e,commit:t})]})]})}function ts({range:e,commit:t}){let n=(0,s.t)();if(!e.reblamePath)return null;let i=(0,et.buO)({owner:n.ownerLogin,repo:n.name,commitish:t.firstParentOid,filePath:e.reblamePath}),a=new Intl.DateTimeFormat(void 0,{year:”numeric”,month:”short”,day:”numeric”}),r=t.oid.slice(0,7),l=a.format(new Date(t.committedDate)),c=`Blame prior to change ${r}, made on ${l}`,d=`reblame-${r}`;return(0,o.jsx)(e2.m,{text:c,type:”label”,id:d,children:(0,o.jsx)(eZ.N,{“aria-labelledby”:d,to:i,className:”Button Button–iconOnly Button–invisible Button–small”,children:(0,o.jsx)(P.VersionsIcon,{})})})}function tl({commitDate:e,repoCreationDate:t}){let n=function(e,t){let{resolvedColorScheme:n}=(0,D.DP)(),i=n?.startsWith(“dark”),a=i?e5[“scale.orange.9”]:e5[“scale.orange.0”];if(e(0,o.jsx)(e8.Kn,{codeLineData:e,onClick:t,ownedCodeSections:n,onLineStickOrUnstick:a,onCollapseToggle:c},`line-number-${e.lineNumber}-content:${e.rawText?.substring(0,100)}`))}),(0,o.jsx)(“div”,{className:”react-code-lines”,children:e.map(e=>(0,o.jsx)(e7.S,{codeLineData:e,codeLineClassName:e.codeLineClassName,stylingDirectivesLine:e.stylingDirectivesLine,id:`LC${e.lineNumber}`,onLineStickOrUnstick:a,setIsCollapsed:c,codeLineToSectionMap:i,copilotAccessAllowed:l,measureRef:void 0,shouldUseInert:!1},`line-data-${e.lineNumber}-content:${e.rawText?.substring(0,100)}`))})]}),1e3===e.length&&(0,o.jsx)(D.az,{sx:{justifyContent:”center”,display:”flex”},children:(0,o.jsx)(en.A,{href:u,children:”View remainder of file in raw view”})})]})}try{tu.displayName||(tu.displayName=”CodeLinesSSR”)}catch{}try{tm.displayName||(tm.displayName=”CodeLinesSSRUnmemoized”)}catch{}var th=n(18666),tp=n(48064),tx=n(57555),tf=n(57472);let ty=h.memo(tb);function tb({linesData:e,onLineNumberClick:t,codeSections:n,nonTruncatedLinesData:i,colorizedLines:a,onLineStickOrUnstick:r,tabSize:s,contentWidth:l,copilotAccessAllowed:c,onCollapseToggle:d}){let u=(0,m.ud)().codeWrappingOption.enabled,{rawBlobUrl:h}=(0,eh.A)(),p=[…Array(Math.floor(e.length/td.kd)+1).keys()];return(0,o.jsxs)(D.az,{className:”react-code-file-contents”,role:”presentation”,”aria-hidden”:!0,”data-tab-size”:s,”data-paste-markdown-skip”:!0,sx:{tabSize:s,isolation:”isolate”,position:”relative”,width:l,overflow:”auto”,maxWidth:u?”100%”:”unset”},”data-hpc”:!0,children:[(0,o.jsx)(“div”,{className:”react-line-numbers-no-virtualization”,style:{pointerEvents:”auto”,position:”relative”,zIndex:2},children:p.map(i=>{let a=e.slice(i*td.kd,Math.min(i*td.kd+td.kd,e.length));return(0,o.jsx)(“div”,{className:”react-no-virtualization-wrapper-lines-ssr”,children:a.map(e=>(0,o.jsx)(tx.m,{codeLineData:e,onClick:t,ownedCodeSections:n,onLineStickOrUnstick:r,onCollapseToggle:d},`line-number-${e.lineNumber}`))},`line-number-wrapper-${i}-content:${a[0]?.rawText?.substring(0,100)}`)})}),(0,o.jsxs)(“div”,{className:”react-code-lines”,children:[(0,o.jsx)(tp.R,{linesData:e}),(0,o.jsx)(th.n,{linesData:e,copilotAccessAllowed:c}),(0,o.jsx)(tf.Bg,{linesData:i,colorizedLines:a}),1e3===e.length&&(0,o.jsx)(D.az,{sx:{justifyContent:”center”,display:”flex”},children:(0,o.jsx)(en.A,{href:h,children:”View remainder of file in raw view”})})]})]})}try{ty.displayName||(ty.displayName=”CodeLinesSSRNoVirtualization”)}catch{}try{tb.displayName||(tb.displayName=”CodeLinesSSRNoVirtualizationUnmemoized”)}catch{}var tg=n(68340),t_=n(23451);function tj({linesData:e,onCodeNavTokenSelected:t,onLineNumberClick:n,isBlame:i,isCursorVisible:a,isVirtualized:r,textAreaRef:l,shouldRenderOverlay:c,tabSize:d,optionalTestLeftOffsetFunction:u,textSelection:m,onCollapseToggle:p,onLineStickOrUnstick:x,optionalTestTopOffsetFunction:y,additionalTextAreaInstructions:b}){let g,[j,N]=(0,h.useState)(0),[w,k]=(0,h.useState)(0),[C,B]=(0,h.useState)(!1),S=(0,h.useRef)(“”),I=(0,h.useRef)(null),T=(0,s.t)(),{refInfo:L,path:A}=(0,_.eu)(),{cursorNavigationHighlightLine:O,expandAndFocusLineContextMenu:R,cursorNavigationEnter:E,searchShortcut:z,cursorNavigationPageDown:F,cursorNavigationPageUp:P}=(0,v.wk)(),$=(0,eM.zy)();(0,h.useEffect)(()=>{N(0),k(0)},[$.key]),(0,h.useEffect)(()=>{function e(e){S.current=e.key}return window.oncontextmenu=function(e){if(“ContextMenu”===S.current&&-1===e.button&&document.activeElement?.className.indexOf(eQ.Dp)!==-1)return S.current=””,e?.preventDefault(),e?.stopPropagation(),!1},window.addEventListener(“keydown”,e),()=>{window.removeEventListener(“keydown”,e),window.oncontextmenu=null}},[]);let M=i?eT.cH:eT.M_,H=(0,h.useRef)(null),{onEnter:W,updateUrlForLineNumber:G,onPageUp:U,onPageDown:V,currentStartLine:q,currentStartChar:Y,currentEndLine:K,currentEndChar:Q,determineAndSetTextAreaCursorPosition:X,getCorrectLineNumberWithCollapsedSections:Z}=(0,eT.M1)(H,t,u??N,y??k,e,r,i,n,l,d,b,m),J=(0,h.useRef)(!1);(0,h.useEffect)(()=>{J.current=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},[]);let ee=(0,eU.o)(“react-line-numbers”),en=a?{height:`${ee}px`,width:”1.5px”,backgroundColor:”fg.default”,position:”absolute”,visibility:J.current?”hidden”:”visible”,zIndex:2}:{};return g=q.current===K.current&&Y.current===Q.current?`#L${q.current+1}C${Y.current}`:`#${(0,eb.Kn)({start:{line:q.current+1,column:Y.current},end:{line:K.current+1,column:Q.current}})}`,(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.az,{“aria-hidden”:!0,style:{top:w,left:M+j},sx:en,ref:H,”data-testid”:”navigation-cursor”,className:”code-navigation-cursor”,children:” “}),c&&(0,o.jsx)(“div”,{style:{top:w+ee,left:M+j,zIndex:2},className:”position-absolute border rounded-2 color-bg-subtle px-3 py-2″,children:(0,o.jsxs)(D.EY,{sx:{pointerEvents:”auto”},children:[“Code view is read-only.”,” “,L.canEdit&&(0,o.jsx)(eZ.N,{to:(0,et.Nyd)({owner:T.ownerLogin,repo:T.name,filePath:A,commitish:L.name,hash:g}),children:”Switch to the editor.”})]})}),C&&(0,o.jsx)(eQ.Ay,{ref:I,rowBeginId:`LG${Z(q.current)}`,rowBeginNumber:Z(q.current),rowEndNumber:Z(K.current),rowEndId:`LG${Z(K.current)}`,openOnLoad:!0,cursorRef:H,onCollapseToggle:p,onLineStickOrUnstick:x,lineData:function(){if(q.current!==K.current)return null;let t=e[q.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 i=parseInt(n[n.length-1]?.trim()??”undefined”);return i&&!Number.isNaN(i)?e[i-1]&&e[i-1]?.lineNumber===i?e[i-1]:e[(0,eg.N9)(i,e)]:null}(),onMenuClose:function(e,t){B(e),setTimeout(()=>{t&&X(),l?.current?.focus()},300)}}),(0,o.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorEnter”,”data-hotkey”:E.hotkey,onClick:W,”data-hotkey-scope”:eg.wQ}),(0,o.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorSetHighlightedLine”,”data-hotkey”:O.hotkey,onClick:G,”data-hotkey-scope”:eg.wQ}),(0,o.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorSetHighlightAndExpandMenu”,”data-hotkey”:R.hotkey,onClick:e=>(e.preventDefault(),e.stopPropagation(),B(!0),setTimeout(()=>{I.current?.setAnchor(H.current)},0),!1),”data-hotkey-scope”:eg.wQ}),(0,o.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorPageDown”,”data-hotkey”:F.hotkey,onClick:V,”data-hotkey-scope”:eg.wQ}),(0,o.jsx)(“button”,{hidden:!0,”data-testid”:”NavigationCursorPageUp”,”data-hotkey”:P.hotkey,onClick:U,”data-hotkey-scope”:eg.wQ}),(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:z.hotkey,onButtonClick:()=>{(0,t_.Z)({retainScrollPosition:!0,returnTarget:l?.current??void 0})},onlyAddHotkeyScopeButton:!0})]})}try{tj.displayName||(tj.displayName=”NavigationCursor”)}catch{}var tv=n(911),tN=n(15042),tw=n(40961);function tk({onDismiss:e}){let{expandAndFocusLineContextMenu:t,cursorNavigationEnter:n,cursorNavigationHighlightLine:i}=(0,v.wk)();return(0,tw.createPortal)((0,o.jsx)(tN.l,{width:”large”,”aria-label”:”Code Blob Focused Hotkeys”,onClose:e,title:”Code Blob Focused Hotkeys”,children:(0,o.jsx)(“div”,{children:(0,o.jsxs)(“div”,{children:[(0,o.jsxs)(“div”,{className:”p-1″,children:[“Select the line the cursor is on “,(0,o.jsx)(“kbd”,{children:i.text})]}),(0,o.jsxs)(“div”,{className:”p-1″,children:[“Select the symbol under the cursor “,(0,o.jsx)(“kbd”,{children:n.text})]}),(0,o.jsxs)(“div”,{className:”p-1″,children:[“Move focus to the highlighted line menu “,(0,o.jsx)(“kbd”,{children:t.text})]})]})})}),document.body)}try{tk.displayName||(tk.displayName=”TextAreaHelpDialog”)}catch{}function tC({textAreaRef:e,setTextOverlayShouldBeVisible:t,setTextSelection:n,setAdditionalTextAreaInstructions:i,cursorClickStartRef:a,parentRef:r,tabSize:s,plainTextLinesAsString:l,numLines:c,setIsTextAreaFocused:d}){let p=(0,eT.fY)(),x=(0,m.ud)().codeWrappingOption,y=(0,v.V3)(),b=(0,v._y)(),g=(0,eU.o)(“react-line-numbers”),[_,j]=(0,h.useState)(!1),{cursorNavigationOpenHelpDialog:N}=(0,v.wk)(),w=(0,D.DP)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“textarea”,{id:eg.wQ,”data-testid”:eg.wQ,ref:e,onMouseUp:i=>(function(e,t,n,i,a,o,r,s){if(o&&!e.defaultPrevented&&a){if(2===e.button)e.preventDefault(),e.stopPropagation();else if(0===e.button){n(!1);let o=(0,u.nn)(window.innerWidth)l+r.current?.clientHeight){a.current={startX:-2,startY:-2};return}let c=(0,eg.t1)(e.pageY,l,s),d=r.current?.getBoundingClientRect().left||0,m=e.clientX-d-eT.M_,h=!1;(c{t&&t.current&&i({start:t.current.selectionStart,end:t.current.selectionEnd,keyboard:!1,displayStart:h})},0)}}})(i,e,t,n,a,p,r,g),onMouseDown:e=>(function(e,t,n,i,a){if(n&&!e.defaultPrevented&&i){if(2===e.button){e.preventDefault(),e.stopPropagation();return}else if(0===e.button){if(e.ctrlKey){e.preventDefault(),e.stopPropagation();return}let n=(0,u.nn)(window.innerWidth)o+t.current?.clientHeight){i.current={startX:-2,startY:-2};return}let r=(0,eg.t1)(e.pageY,o,a),s=t.current?.getBoundingClientRect().left||0;i.current={startX:e.clientX-s-eT.M_,startY:r}}}})(e,r,p,a,g),”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:eT.M_,paddingRight:eT.di,display:”hidden”,width:”100%”,backgroundColor:”unset”,boxSizing:”border-box”,color:”transparent”,position:”absolute”,border:”none”,tabSize:s,outline:”none”,overflowX:”auto”,height:g*(c+1),fontSize:”12px”,lineHeight:”20px”,overflowY:”hidden”,overflowWrap:x.enabled?”anywhere”:”normal”,overscrollBehaviorX:”none”,whiteSpace:x.enabled?”pre-wrap”:”pre”,zIndex:1},value:l,onKeyDown:function(a){y.includes(a.key)||b.includes(a.key)&&(a.getModifierState(“Control”)||a.getModifierState(“Alt”)||a.getModifierState(“Shift”)||a.getModifierState(“Meta”))?(” “===a.key&&(a.preventDefault(),a.shiftKey?i(`PageUp${Date.now()}`):i(`PageDown${Date.now()}`)),a.altKey&&a.ctrlKey&&”\u02D9″===a.key&&j(!0),t(!1),setTimeout(()=>{e.current&&n({start:e.current.selectionStart,end:e.current.selectionEnd,keyboard:!0,displayStart:!1})},5)):!a.ctrlKey&&!a.metaKey&&!a.altKey&&!a.shiftKey&&(function(e,t){let n=e.exec(t);return n&&n[0]===t}(/[a-zA-Z0-9-_ ]{1,1}/,a.key)||”Backspace”===a.key||”Enter”===a.key)&&((0,Y.i)(“Code view is read only.”),t(!0),a.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${w.resolvedColorScheme?.endsWith(“contrast”)?” select-contrast”:””}`,onFocus:()=>{d(!0)}}),_&&(0,o.jsx)(tk,{onDismiss:()=>{j(!1)}}),(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:N.hotkey,onButtonClick:()=>{j(!0)},onlyAddHotkeyScopeButton:!0})]})}try{tC.displayName||(tC.displayName=”TextArea”)}catch{}let tB=(0,eH.A)(“localStorage”);function tS({blobLinesHandle:e,onCodeNavTokenSelected:t,codeSections:n,codeLineToSectionMap:i,validCodeNav:a,onLineStickOrUnstick:r,searchResults:s,focusedSearchResult:l}){let{rawLines:c,colorizedLines:d,stylingDirectives:u,tabSize:p}=(0,eh.A)(),x=!!(0,em.O)(),[f,y]=(0,h.useState)(!1),b=(0,eT.fY)(),g=(0,eU.o)(“react-line-numbers”),[j,v]=(0,h.useState)(void 0),[N,w]=(0,h.useState)({start:-1,end:-1,keyboard:!0,displayStart:!1}),[k,C]=(0,h.useState)(“”),[B,S]=(0,h.useState)(!1),I=(0,h.useRef)(null),[T,L]=(0,h.useState)(!1),A=(0,h.useRef)({startX:0,startY:0}),{hash:R}=(0,eM.zy)(),{refInfo:E,path:z,copilotAccessAllowed:F}=(0,_.eu)(),P=(0,h.useRef)(null),[$,M]=(0,h.useState)(void 0),[H]=(0,eW.I)(()=>!1,!0,[]),W=(0,h.useRef)(null),G=(0,m.ud)().codeWrappingOption.enabled,U=(0,eV.u)(),V=(0,ep.YP)(),q=(0,h.useCallback)(()=>{v((0,eb.$c)(window.location.hash)?.blobRange)},[]),{findInFileOpen:Y,setFindInFileOpen:K}=eD(),{lines:Q,plainTextLinesAsString:X,nonTruncatedLinesData:Z}=function(e,t,n,i,a){let o=function(e,t,n,i,a){let[o]=(0,eW.I)(()=>e.length,Math.min(e.length,1e3),[e]);return(0,h.useMemo)(()=>Array(o).fill(null).map((e,t)=>t+1).map(o=>{let r,s=t?.[o-1],l=!1,c=!1;for(let e of n?.get(o)??[])e.startLine===o&&(l=!0,r=e),e.endLine===o&&(c=!0);let d=e[o-1]?.replace(/[\n\r]/g,””)??””,u=a&&a.get(o)||[],m=(0,eg.Bn)(u,o,c,n);return{stylingDirectivesLine:s,lineNumber:o,codeLineClassName:m,isStartLine:l,isEndLine:c,ownedSection:r,rawText:d,hiddenUnicode:(0,eY.Y)(d),codeownersLineError:i?.find(e=>e.line===o)}}),[o,t,e,a,n,i])}(e,t,n,i,a),r=(0,eY.bp)(),s=(0,h.useRef)(“”);(0,eg.Wb)(e=>s.current=function(e){let t=[…e];return t.sort(),t.join(“,”)}(e));let l=(0,h.useMemo)(()=>(function(e,t){let n=new Set;for(let i=0;i!n.has(e.lineNumber))})(o,n),[o,n,s.current]),c=l.map(e=>r&&e.rawText?(0,eY.TA)(e.rawText):e.rawText).join(` `);return{lines:l,plainTextLinesAsString:c,nonTruncatedLinesData:o}}(c??[],u??null,n??null,(0,h.useContext)(eG),i),J=(0,td.G)(Z.length)&&d&&0!==d.length,ee=(0,h.useRef)(Q);ee.current=Q,(0,h.useEffect)(()=>{(0,eg.X5)()},[E.currentOid,z]),(0,h.useEffect)(()=>{window.onbeforeprint=()=>y(!0),window.onafterprint=()=>y(!1)},[]),(0,h.useEffect)(()=>{eI(null,null,G)},[]),(0,h.useEffect)(()=>{“true”!==tB.getItem(“heardHelpAnnouncement”)&&((0,eg.kY)(“While the code is focused, press Alt+F1 for a menu of operations.”,2e3),tB.setItem(“heardHelpAnnouncement”,”true”))},[]);var et=(0,h.useCallback)(e=>{if(e&&e?.node&&!x){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 i=n.target.textContent?n.target.textContent:"";t&&e&&(t({selectedText:i,lineNumber:e.lineNumber,offset:e.offset}),Y&&K(!1))}))}},[Y,x,K,t]);let en=!!(0,em.O)(),ei=(0,eT.fY)();(0,h.useEffect)(()=>{let e;if(en||!a||ei)return;let t=(0,O.s)(t=>{clearTimeout(e),e=setTimeout(()=>{!function(e,t){let n=function(e,t,n){let i,a;if(document.caretPositionFromPoint){let e=document.caretPositionFromPoint(t,n);e&&(i=e.offsetNode,a=e.offset)}else if(document.caretRangeFromPoint){let e=document.caretRangeFromPoint(t,n);e&&(i=e.startContainer,a=e.startOffset)}if(!i||”number”!=typeof a||i.nodeType!==Node.TEXT_NODE||!i.textContent)return null;let o=function(e,t,n){let i,a=null;for(;i=t.exec(e);){if(t.lastIndex===a){(0,eq.N7)(Error(“regexp did not advance in findNearestMatch()”));break}a=t.lastIndex;let e=i.index+i[0].length;if(i.index<=n&&n<=e)return[i[0],i.index,e]}return null}(i.textContent,e,a);if(!o)return null;let r=document.createRange();return r.setStart(i,o[1]),r.setEnd(i,o[2]),r}(/\w+[!?]?/g,e.clientX,e.clientY);if(!n)return;let i=n.commonAncestorContainer.parentElement;if(i)for(let e of i.classList){if(["pl-token","pl-c","pl-s","pl-k"].includes(e))return null;let i=n.toString();if(!i||i.match(/\n|\s|[();&.=",]/))return null;let{lineNumber:a,offset:o,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 i=t.parentElement;if(!i)return{lineNumber:0,offset:0,node:null};if(i.classList.contains("react-file-line"))return{lineNumber:parseInt(i.getAttribute("data-line-number")||"1",10),offset:n,node:t};t=i}}(n);if(0===a&&0===o||!r)return null;return t({lineNumber:a,offset:o,node:r})}}(t,et)},15)},5);return window.addEventListener("mousemove",t),()=>{window.removeEventListener(“mousemove”,t)}},[et,en,a,ei]);let ea=({line:t,column:n})=>{if(t<10)e.current?.scrollToTop();else if(e.current){if(-1===(0,eg.N9)(t,Q)){for(let e of i?.get(t)??[])e&&e.collapsed&&(e.collapsed=!1,(0,eg.ny)(e?.startLine));U()}setTimeout(()=>{let i=(0,eg.N9)(t,ee.current);e.current?.scrollToLine(i,n)},0),V&&!(0,eg.si)(t)&&(r(null,!0),(0,eg.CZ)(V,t,i,r))}};return(0,h.useEffect)(()=>{let e=(0,eb.$c)(R);if(!e.blobRange?.start?.line)return void v(void 0);v(e.blobRange)},[z,R,Q.length]),(0,h.useEffect)(()=>{let e=(0,eb.$c)(R);if(!e.blobRange?.start?.line)return;let t=window.setTimeout(()=>ea({line:e.blobRange.start.line}),0);return()=>{window.clearTimeout(t)}},[z,x]),(0,h.useEffect)(()=>{let e=P.current;if(!e||!b)return void M(void 0);M(e.scrollWidth>e.clientWidth?e.scrollWidth:void 0);let t=new ResizeObserver(e=>{for(let{target:t}of e)M(t.scrollWidth>t.clientWidth?t.scrollWidth:void 0)});return t.observe(e),()=>{t.disconnect()}},[b,z]),(0,e_.g)(ea),(0,o.jsx)(tv.gt,{searchResults:s,focusedSearchResult:l,children:(0,o.jsxs)(tg.iU,{highlightedLines:j,children:[Q.some(e=>e.hiddenUnicode)&&(0,o.jsx)(eY.om,{}),(0,o.jsx)(D.az,{sx:{display:”flex”,flex:1,py:2*!x,flexDirection:”column”,justifyContent:”space-between”,minWidth:0,position:”relative”},children:(0,o.jsx)(eQ.AG,{children:(0,o.jsx)(eK.eT,{children:(0,o.jsxs)(D.az,{sx:{flex:1,position:”relative”,minWidth:0,overflowX:x?”auto”:void 0,overflowY:x?”hidden”:void 0},ref:I,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||S(!1)},children:[b&&(0,o.jsx)(D.az,{ref:W,sx:{position:”absolute”,width:”100%”,overflow:”hidden”},children:(0,o.jsx)(D.az,{sx:{width:$,height:g*Q.length},children:(0,o.jsx)(tj,{linesData:Q,isBlame:!1,onCodeNavTokenSelected:t,onLineNumberClick:q,isCursorVisible:!!B,isVirtualized:!0,textAreaRef:P,onCollapseToggle:U,onLineStickOrUnstick:r,tabSize:p,textSelection:N,shouldRenderOverlay:!!T,additionalTextAreaInstructions:k??””})})}),b&&(0,o.jsx)(tC,{textAreaRef:P,setTextOverlayShouldBeVisible:L,setTextSelection:w,setAdditionalTextAreaInstructions:C,cursorClickStartRef:A,parentRef:I,tabSize:p,plainTextLinesAsString:X,numLines:Q.length,setIsTextAreaFocused:S}),x?H?(0,o.jsx)(te,{linesData:Q,tabSize:p,copilotAccessAllowed:F,onLineNumberClick:q}):(0,o.jsx)(e9,{ref:e,linesData:Q,tabSize:p,copilotAccessAllowed:F,onLineNumberClick:q}):H?J?(0,o.jsx)(ty,{linesData:Q,nonTruncatedLinesData:Z,onLineNumberClick:q,colorizedLines:d,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:r,tabSize:p,contentWidth:$,copilotAccessAllowed:F,onCollapseToggle:U}):(0,o.jsx)(tu,{linesData:Q,onLineNumberClick:q,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:r,tabSize:p,contentWidth:$,copilotAccessAllowed:F,onCollapseToggle:U}):J?(0,o.jsx)(td.P9,{ref:e,linesData:Q,nonTruncatedLinesData:Z,onLineNumberClick:q,colorizedLines:d,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:r,tabSize:p,textAreaRef:P,cursorContainerRef:W,contentWidth:$??P.current?.clientWidth,onCollapseToggle:U,materializeAllLines:f,copilotAccessAllowed:F}):(0,o.jsx)(tc.FL,{ref:e,linesData:Q,onLineNumberClick:q,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:r,tabSize:p,contentWidth:$,cursorContainerRef:W,onCollapseToggle:U,textAreaRef:P,materializeAllLines:f,copilotAccessAllowed:F})]})})})})]})})}try{tS.displayName||(tS.displayName=”CodeBlob”)}catch{}function tI({displayName:e,displayUrl:t}){return(0,o.jsx)(D.az,{sx:{display:”flex”,justifyContent:”center”,width:”100%”},children:(0,o.jsx)(D.az,{as:”img”,alt:e,src:t,”data-hpc”:!0,sx:{maxWidth:”100%”}})})}try{tI.displayName||(tI.displayName=”ImageBlob”)}catch{}var tT=n(1992),tL=n(5524),tA=n(99511),tD=n(64451),tO=n(88432);let tR={CheckboxGroup_Caption:”YamlTemplateContent-module__CheckboxGroup_Caption–ZQKpF”,CheckboxGroup_Label:”YamlTemplateContent-module__CheckboxGroup_Label–dcg2n”,CheckboxGroup:”YamlTemplateContent-module__CheckboxGroup–SE9my”},tE={Issue:”issue”,Discussion:”discussion”};function tz({issueTemplate:e,type:t}){return(0,o.jsxs)(D.az,{sx:{borderBottomLeftRadius:”6px”,borderBottomRightRadius:”6px”,p:5},children:[(0,o.jsxs)(D.az,{as:”table”,sx:{mb:3},children:[(0,o.jsx)(“thead”,{children:(0,o.jsxs)(“tr”,{children:[t===tE.Issue?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tF,{header:!0,children:”Name”}),(0,o.jsx)(tF,{header:!0,children:”About”})]}):(0,o.jsx)(tF,{header:!0,children:”Title”}),e.type&&(0,o.jsx)(tF,{header:!0,children:”Type”}),(0,o.jsx)(tF,{header:!0,children:”Labels”}),e.projects&&(0,o.jsx)(tF,{header:!0,children:”Projects”}),t===tE.Issue&&(0,o.jsx)(tF,{header:!0,children:”Assignees”})]})}),(0,o.jsx)(“tbody”,{children:(0,o.jsxs)(“tr”,{children:[t===tE.Issue?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tF,{children:e.name}),(0,o.jsx)(tF,{children:e.about})]}):(0,o.jsx)(tF,{children:e.title}),e.type&&(0,o.jsx)(tF,{children:e.type}),(0,o.jsx)(tF,{children:e.labels}),e.projects&&(0,o.jsx)(tF,{children:e.projects}),t===tE.Issue&&(0,o.jsx)(tF,{children:e.assignees})]})})]}),e.inputs.map((e,t)=>(0,o.jsx)(tP,{input:e},t))]})}function tF({children:e,header:t}){return(0,o.jsx)(D.az,{as:t?”th”:”td”,sx:{p:”6px 13px”,border:”1px solid var(–borderColor-default, var(–color-border-default))”},children:e})}function tP({input:e}){switch(e.type){case”markdown”:return(0,o.jsx)(t$,{input:e});case”dropdown”:return(0,o.jsx)(tM,{input:e});case”input”:return(0,o.jsx)(tH,{input:e});case”textarea”:return(0,o.jsx)(tW,{input:e});case”checkboxes”:return(0,o.jsx)(tG,{input:e});default:return null}}function t$({input:e}){return e.value?(0,o.jsx)(eJ.vb,{html:e.value}):null}function tM({input:e}){let t=e.options?.slice();e.required||t?.unshift(“None”);let n=e.multiple?”Selections: “:”Selection: “;return e.value&&(n+=e.value),(0,o.jsx)(tU,{input:e,sx:{alignItems:”start”},children:(0,o.jsxs)(tT.W,{children:[(0,o.jsx)(tT.W.Button,{children:n}),(0,o.jsx)(tT.W.Overlay,{width:”medium”,children:(0,o.jsx)(tL.l,{selectionVariant:e.multiple?”multiple”:”single”,children:t?.map((t,n)=>(0,o.jsx)(tL.l.Item,{selected:t===e.value,disabled:!0,children:t},n))})})]})})}function tH({input:e}){return(0,o.jsx)(tU,{input:e,children:(0,o.jsx)(tA.A,{placeholder:e.placeholder,value:e.value??””})})}function tW({input:e}){return(0,o.jsx)(tU,{input:e,children:(0,o.jsx)(D.TM,{placeholder:e.placeholder,value:e.value??””,sx:e.render?{fontFamily:”mono”}:{}})})}function tG({input:e}){return e.checkboxes?(0,o.jsxs)(tD.A,{disabled:!0,className:tR.CheckboxGroup,children:[(0,o.jsx)(tD.A.Label,{className:tR.CheckboxGroup_Label,children:e.label}),e.description&&(0,o.jsx)(tD.A.Caption,{className:tR.CheckboxGroup_Caption,children:(0,o.jsx)(eJ.vb,{html:e.description})}),e.checkboxes.map((e,t)=>(0,o.jsxs)(D.MJ,{disabled:!0,required:e.required,children:[(0,o.jsx)(tO.A,{}),(0,o.jsx)(D.MJ.Label,{children:e.label})]},t))]}):null}function tU({children:e,input:t,sx:n}){return(0,o.jsxs)(D.MJ,{disabled:!0,required:t.required,sx:{my:”15px”,…n},children:[(0,o.jsx)(D.MJ.Label,{sx:{color:”var(–fgColor-default, var(–color-fg-default))”,fontSize:[“18px”,”18x”,”20px”],”> span > span:last-of-type”:{color:”var(–fgColor-danger, var(–color-danger-fg))”}},children:t.label}),t.description&&(0,o.jsx)(D.MJ.Caption,{children:(0,o.jsx)(eJ.vb,{html:t.description})}),e]})}try{tz.displayName||(tz.displayName=”YamlTemplateContent”)}catch{}try{tF.displayName||(tF.displayName=”MarkdownTableCell”)}catch{}try{tP.displayName||(tP.displayName=”TemplateInput”)}catch{}try{t$.displayName||(t$.displayName=”MarkdownInput”)}catch{}try{tM.displayName||(tM.displayName=”DropdownInput”)}catch{}try{tH.displayName||(tH.displayName=”InputInput”)}catch{}try{tW.displayName||(tW.displayName=”TextareaInput”)}catch{}try{tG.displayName||(tG.displayName=”CheckboxesInput”)}catch{}try{tU.displayName||(tU.displayName=”InputWrapper”)}catch{}let tV=(0,h.lazy)(()=>n.e(“app_assets_modules_react-code-view_components_blob_BlobContent_CSV_CSVBlob_tsx”).then(n.bind(n,53318))),tq=(0,h.lazy)(()=>n.e(“packages_file-renderer-blob_FileRendererBlob_tsx”).then(n.bind(n,33671)));function tY({setOpenPanel:e,codeNavInfo:t,validCodeNav:n,onCodeNavTokenSelected:i,onLineStickOrUnstick:a,searchResults:r,setSearchTerm:s,blobLinesHandle:l,focusedSearchResult:c}){let d=!!(0,em.O)(),{rawLines:u}=(0,eh.A)(),{sendRepoKeyDownEvent:m}=(0,E.T)(),{findInFileShortcut:p}=(0,v.wk)(),x=eR(),{setFindInFileOpen:y}=eD(),b=x===eO.Code,g=b&&null!=u&&n?p.hotkey:””,_=(0,eT.fY)();(0,h.useEffect)(()=>{b||e(void 0)},[b,e]);let j=b||x===eO.CSV||x===eO.Markdown?{}:{overflow:”auto”},N=x===eO.Markdown?{justifyContent:”center”}:{};return(0,o.jsxs)(D.az,{as:”section”,”aria-labelledby”:”file-name-id-wide file-name-id-mobile”,sx:{backgroundColor:”var(–bgColor-default, var(–color-canvas-default))”,border:”0px”,borderWidth:0,borderRadius:”0px 0px 6px 6px”,p:0,minWidth:0,mt:d?”92px”:”46px”,…N,…j},children:[(0,o.jsx)(tK,{blobLinesHandle:l,onCodeNavTokenSelected:i,codeSections:d?void 0:t?.codeSections,codeLineToSectionMap:t?t.lineToSectionMap:void 0,validCodeNav:n,onLineStickOrUnstick:a,searchResults:r,focusedSearchResult:c}),b&&!_&&(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:g,onButtonClick:function(){y(!0),m(“BLOB_FIND_IN_FILE_MENU.OPEN”);let e=window.getSelection()?.toString();e&&s(e)},buttonTestLabel:”hotkey-button”})]})}let tK=h.memo(function({onCodeNavTokenSelected:e,codeSections:t,codeLineToSectionMap:n,validCodeNav:i,onLineStickOrUnstick:a,searchResults:r,blobLinesHandle:s,focusedSearchResult:l}){let c=(0,eh.A)(),d=eR();switch(d){case eO.TooLargeError:return(0,o.jsxs)(D.az,{sx:{textAlign:”center”},”data-hpc”:!0,children:[(0,o.jsx)(en.A,{href:c.rawBlobUrl,children:”View raw”}),c.large&&(0,o.jsx)(“p”,{children:”(Sorry about that, but we can\u2019t show files that are this big right now.)”})]});case eO.Code:return(0,o.jsx)(tS,{blobLinesHandle:s,onCodeNavTokenSelected:e,codeSections:t,codeLineToSectionMap:n,validCodeNav:i,onLineStickOrUnstick:a,searchResults:r,focusedSearchResult:l});case eO.Markdown:return(0,o.jsx)(eP,{richText:c.richText,sx:{borderBottomLeftRadius:”6px”,borderBottomRightRadius:”6px”,p:5,minWidth:0}});case eO.CSV:return(0,o.jsx)(h.Suspense,{fallback:(0,o.jsx)(e$.f,{}),children:(0,o.jsx)(tV,{csv:c.csv})});case eO.FileRenderer:return(0,o.jsx)(h.Suspense,{fallback:(0,o.jsx)(e$.f,{}),children:(0,o.jsx)(tq,{identityUuid:c.renderedFileInfo.identityUUID,size:c.renderedFileInfo.size,type:c.renderedFileInfo.renderFileType,url:c.displayUrl},c.renderedFileInfo.identityUUID)});case eO.Image:return(0,o.jsx)(tI,{displayName:c.displayName,displayUrl:c.displayUrl});case eO.IssueTemplate:return(0,o.jsx)(tz,{issueTemplate:c.issueTemplate?c.issueTemplate:c.discussionTemplate,type:c.issueTemplate?tE.Issue:tE.Discussion,”data-hpc”:!0});default:eE(d)}});try{tV.displayName||(tV.displayName=”CSVBlob”)}catch{}try{tq.displayName||(tq.displayName=”FileRendererBlob”)}catch{}try{tY.displayName||(tY.displayName=”BlobContent”)}catch{}try{tK.displayName||(tK.displayName=”Blob”)}catch{}var tQ=n(41461),tX=n(49884),tZ=n(69599),tJ=n(61282),t0=n(41462),t1=n(43258),t2=n(73783),t3=n(34164),t4=n(80427),t5=n(25556);function t6(e,t,n){let[i,a]=(0,h.useState)(“”),r=(0,h.useCallback)(()=>{a(“”)},[]);return[(0,h.useCallback)(e=>{a(e),t.current!==document.activeElement&&setTimeout(r,3e3)},[r,t]),r,(0,o.jsx)(t7,{message:i,id:e,contentRef:t,clearMessage:r,portalTooltipProps:n},e)]}function t7({message:e,id:t,contentRef:n,clearMessage:i,portalTooltipProps:a}){return e?(0,o.jsx)(t5.m,{id:t,contentRef:n,”aria-label”:e,open:!!e,onMouseLeave:i,”aria-live”:”assertive”,…a}):null}try{t7.displayName||(t7.displayName=”AlertTooltip”)}catch{}var t8=n(15360),t9=n(25102),ne=n(26108);function nt({disabled:e,…t}){let n=e?{“aria-disabled”:!0,onClick:e=>e.preventDefault()}:{};return(0,o.jsx)(ne.K,{size:”small”,…t,…n})}try{nt.displayName||(nt.displayName=”AccessibleIconButton”)}catch{}var nn=n(26607);let ni=(0,h.lazy)(()=>n.e(“app_assets_modules_react-code-view_components_blob_BlobContent_CodeNav_ScrollMarks_tsx”).then(n.bind(n,27538)));function na({stickied:e,searchTerm:t,searchResults:n,setSearchTerm:i,focusedSearchResult:a,setFocusedSearchResult:r,onClose:s}){let l=(0,eT.fY)(),c=(0,h.useRef)(null),{findInFileShortcut:d,findSelectionShortcut:u,findNextShortcut:m,findPrevShortcut:p}=(0,v.wk)(),[x,y]=(0,h.useState)(!0),{sendRepoKeyDownEvent:b}=(0,E.T)(),g=e=>{if(void 0===a)return void r(0);1===e?r(a===n.length-1?0:a+1):r(0===a?n.length-1:a-1)};(0,h.useEffect)(()=>{c.current?.focus(),c.current?.select()},[]);let _=()=>{let e=window.getSelection()?.toString();e?.length&&(i(e),r(0),b(“BLOB_FIND_IN_FILE_MENU.FIND_IN_FILE_FROM_SELECTION”)),c.current?.focus(),c.current?.select()};return((0,h.useEffect)(()=>{n.length>0&&void 0!==a&&(0,e_.f)({line:n[a].lineNumber,column:n[a].ident.start.column})},[n,a]),l)?null:(0,o.jsxs)(“div”,{className:`find-in-file-popover ${e?”find-in-file-popover-stickied”:”find-in-file-popover-not-stickied”}`,children:[(0,o.jsxs)(D.az,{sx:{fontSize:0,py:2,pl:3,pr:2,borderBottom:”1px solid var(–borderColor-default, var(–color-border-default))”,display:”flex”,flexDirection:”row”,justifyContent:”center”,alignItems:”center”},children:[(0,o.jsxs)(D.az,{sx:{display:”flex”,flexDirection:”row”,alignItems:”baseline”},children:[(0,o.jsx)(D.EY,{as:”h5″,sx:{color:”fg.default”,pr:2,fontWeight:”bold”},children:”Find”}),(0,o.jsxs)(D.EY,{className:”find-text-help-tooltip”,sx:{color:”fg.subtle”,visibility:x?”visible”:”hidden”},children:[“Press “,(0,o.jsx)(nn.A,{children:d.text}),” again to open the browser’s find menu”]})]}),(0,o.jsx)(D.az,{sx:{flex:1}}),(0,o.jsx)(D.K0,{variant:”invisible”,size:”small”,onClick:s,icon:P.XIcon,sx:{color:”fg.subtle”},”aria-label”:”Close find in file”})]}),(0,o.jsxs)(D.az,{sx:{px:2,py:”6px”},children:[(0,o.jsx)(D.ks,{ref:c,sx:{pl:1,border:”none”,boxShadow:”none”},validationStatus:n.length>1e3?”error”:void 0,type:”text”,leadingVisual:()=>(0,o.jsx)($.A,{icon:P.SearchIcon,”aria-hidden”:”true”}),”aria-labelledby”:”find-in-file-label”,”aria-expanded”:”true”,autoComplete:”off”,name:”Find in file input”,placeholder:”Search this file”,value:t,block:!0,onChange:e=>{e.target.value?(y(!1),i(e.target.value),void 0===a&&r(0)):(y(!0),i(“”),r(0))},trailingAction:(0,o.jsxs)(D.az,{sx:{display:”flex”,flexDirection:”row”,justifyContent:”center”,alignItems:”center”},children:[(0,o.jsxs)(D.EY,{className:”text-small”,sx:{textAlign:”center”,color:”fg.subtle”,m:2},children:[0===n.length||void 0===a?0:a+1,”/”,n.length]}),(0,o.jsx)(D.K0,{size:”small”,variant:”invisible”,onClick:()=>{g(-1)},icon:P.ChevronUpIcon,”aria-label”:”Up”,”data-testid”:”up-search”,sx:{color:”fg.subtle”}}),(0,o.jsx)(D.K0,{size:”small”,variant:”invisible”,onClick:()=>{g(1)},icon:P.ChevronDownIcon,”aria-label”:”Down”,”data-testid”:”down-search”,sx:{color:”fg.subtle”}})]}),onKeyDown:e=>{“Enter”===e.code||”NumpadEnter”===e.code?e.shiftKey?g(-1):g(1):(e.metaKey||e.ctrlKey)&&(“g”===e.key||”G”===e.key)?(e.preventDefault(),e.shiftKey?g(-1):g(1)):(e.metaKey||e.ctrlKey)&&(“f”===e.key||”F”===e.key)?x?(b(“BLOB_FIND_IN_FILE_MENU.FALLBACK_TO_BROWSER_SEARCH”),s()):(y(!0),e.preventDefault(),c.current?.focus(),c.current?.select()):”Escape”===e.key&&s()}}),(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:d.hotkey,onButtonClick:_,buttonTestLabel:”hotkey-button”}),(0,o.jsx)(“button”,{hidden:!0,”data-hotkey”:u.hotkey,onClick:_,”data-testid”:”selection-hotkey”}),(0,o.jsx)(“button”,{hidden:!0,”data-hotkey”:m.hotkey,onClick:()=>g(1),”data-testid”:”find-next-button”}),(0,o.jsx)(“button”,{hidden:!0,”data-hotkey”:p.hotkey,onClick:()=>g(-1),”data-testid”:”find-prev-button”}),(0,o.jsx)(h.Suspense,{fallback:null,children:(0,o.jsx)(ni,{definitionsOrReferences:n})})]})]})}try{ni.displayName||(ni.displayName=”ScrollMarks”)}catch{}try{na.displayName||(na.displayName=”FindInFilePopover”)}catch{}var no=n(49799),nr=n(45385),ns=n(94602),nl=n(69497);function nc({showTitle:e=!0}){let{sendRepoClickEvent:t}=(0,E.T)(),[n,i]=(0,h.useState)(!1),a=(0,s.t)(),{refInfo:r,path:l}=(0,_.eu)(),{contributors:c,loading:d,error:u}=(0,nr.u)(a.ownerLogin,a.name,r.name,l);if(u)return(0,o.jsx)(nm,{});if(d)return(0,o.jsx)(no.r,{width:100,”data-testid”:”contributors-skeleton”});if(!c||!c?.users.length)return null;let{users:m,totalCount:p}=c,x=nu(p,” contributor”,”contributors”);return(0,o.jsxs)(D.az,{sx:{display:”flex”,flexDirection:”row”,alignItems:”center”},children:[(0,o.jsx)(D.az,{sx:{display:”flex”,flexDirection:”row”},children:(0,o.jsx)(ns.A,{children:m.slice(0,10).map((e,t)=>(0,o.jsx)(eX.r,{className:t>5?”AvatarShowLarge”:”AvatarShowMedium”,src:e.primaryAvatarUrl,alt:e.login,”data-testid”:”contributor-avatar”,”data-hovercard-url”:(0,et.dCN)({owner:e.login})},e.login))})}),(0,o.jsxs)(D.N_,{as:”button”,”aria-label”:`Show ${x}”`,onClick:()=>{i(!0),t(“CONTRIBUTORS.LIST.OPEN”)},”data-testid”:”contributors-count-button”,sx:{ml:2,color:”fg.default”},children:[(0,o.jsx)($.A,{icon:P.PeopleIcon}),e&&(0,o.jsx)(D.EY,{className:”react-contributors-title”,sx:{mx:1,fontSize:0},children:”Contributors”}),(0,o.jsx)(D.$c,{sx:{mx:1,px:2,py:1},children:p})]}),n&&(0,o.jsx)(tN.l,{title:x,onClose:()=>i(!1),width:”medium”,height:c.totalCount>=12?”small”:”auto”,renderBody:()=>(0,o.jsx)(D.lF,{sx:{overflowY:”auto”,py:2},”data-testid”:”contributor-dialog-list”,children:m.map(e=>(0,o.jsx)(nd,{user:e},e.login))})})]})}function nd({user:e}){let{sendRepoClickEvent:t}=(0,E.T)(),{path:n,refInfo:i}=(0,_.eu)(),a=(0,s.t)();return(0,o.jsxs)(D.lF.Item,{sx:{display:”flex”,flexDirection:”row”,fontSize:1,py:2,color:”fg.default”,”&:hover”:{backgroundColor:”canvas.subtle”}},”data-testid”:”contributor-dialog-row”,onSelect:()=>t(“CONTRIBUTORS.LIST.USER”),children:[(0,o.jsxs)(D.N_,{as:eZ.N,sx:{flex:1},muted:!0,to:e.profileLink,onClick:()=>t(“CONTRIBUTORS.LIST.USER”),children:[(0,o.jsx)(eX.r,{src:e.primaryAvatarUrl,alt:e.login,sx:{mr:2},”aria-hidden”:”true”}),(0,o.jsx)(nl.A,{inline:!0,title:e.login,children:e.login})]}),(0,o.jsx)(D.lF.TrailingVisual,{children:(0,o.jsx)(D.N_,{as:eZ.N,muted:!0,to:(0,et.MtY)({repo:a,branch:i.name,path:n,author:e.login}),onClick:()=>t(“CONTRIBUTORS.LIST.COMMITS”),”aria-label”:`${nu(e.commitsCount,”commit”,”commits”)} by ${e.login}`,”data-testid”:”commit-link”,children:nu(e.commitsCount,”commit”,”commits”)})})]})}function nu(e,t,n){return`${e} ${1===e?t:n}`}function nm(){return(0,o.jsxs)(D.EY,{sx:{color:”danger.fg”},children:[(0,o.jsx)($.A,{icon:P.AlertFillIcon}),”\xa0Cannot retrieve contributors info at this time.”]})}try{nc.displayName||(nc.displayName=”ContributorAvatars”)}catch{}try{nd.displayName||(nd.displayName=”ContributorRow”)}catch{}try{nm.displayName||(nm.displayName=”ContributorsError”)}catch{}let nh={Box:”BlobViewHeader-module__Box–pvsIA”,Box_1:”BlobViewHeader-module__Box_1–PPihg”,Box_2:”BlobViewHeader-module__Box_2–G_jCG”,Box_3:”BlobViewHeader-module__Box_3–Kvpex”,Box_4:”BlobViewHeader-module__Box_4–vFP89″,IconButton:”BlobViewHeader-module__IconButton–uO1fA”,ActionMenu_Overlay:”BlobViewHeader-module__ActionMenu_Overlay–NLYvM”,Box_5:”BlobViewHeader-module__Box_5–jot5O”,Box_6:”BlobViewHeader-module__Box_6–gPoMf”,IconButton_1:”BlobViewHeader-module__IconButton_1–MzNlL”,LinkButton:”BlobViewHeader-module__LinkButton–DMph4″,IconButton_2:”BlobViewHeader-module__IconButton_2–KDy6i”};var np=n(93753);let nx={Button:”FileNameStickyHeader-module__Button–SaiiH”,Box_1:”FileNameStickyHeader-module__Box_1–HSpOJ”,Box_2:”FileNameStickyHeader-module__Box_2–_pDx6″,Box_3:”FileNameStickyHeader-module__Box_3–AsYoJ”,Box_4:”FileNameStickyHeader-module__Box_4–IyPx8″,GoToTopButton:”FileNameStickyHeader-module__GoToTopButton–9lB4x”,Box_5:”FileNameStickyHeader-module__Box_5–xBJ2J”};var nf=n(39803);function ny({fileNameId:e=”file-name-id”,id:t,fontSize:n,showCopyPathButton:i}){let a=(0,s.t)(),{refInfo:r,path:l,action:c}=(0,_.eu)();return(0,o.jsx)(nf.Q,{path:l,repo:a,commitish:r.name,isFolder:”tree”===c,fileNameId:e,id:t,fontSize:n,showCopyPathButton:i&&””!==l&&”/”!==l})}try{ny.displayName||(ny.displayName=”ReposHeaderBreadcrumb”)}catch{}let nb=()=>(0,o.jsx)(ny,{id:”sticky-breadcrumb”,fileNameId:”sticky-file-name-id”,fontSize:1}),ng=({sx:e,className:t})=>(0,o.jsx)(D.$n,{leadingVisual:P.ArrowUpIcon,variant:”invisible”,size:”small”,sx:e,onClick:e=>{e.preventDefault(),window.scrollTo({top:0,behavior:”smooth”})},className:(0,t3.$)(nx.Button,t),children:”Top”});function n_({isStickied:e,showTree:t,treeToggleElement:n}){return(0,o.jsx)(D.az,{sx:{display:e?”flex”:”none”,minWidth:0,py:2,…e?{backgroundColor:”canvas.subtle”,borderLeft:”1px solid var(–borderColor-default, var(–color-border-default))”,borderRight:”1px solid var(–borderColor-default, var(–color-border-default))”}:{}},children:t?(0,o.jsxs)(“div”,{className:nx.Box_5,children:[(0,o.jsx)(nb,{}),(0,o.jsx)(ng,{className:nx.GoToTopButton})]}):(0,o.jsxs)(“div”,{className:nx.Box_1,children:[(0,o.jsxs)(“div”,{className:nx.Box_2,children:[e&&n,(0,o.jsx)(“div”,{className:nx.Box_3,children:(0,o.jsx)(np.R,{buttonClassName:”ref-selector-class”})}),(0,o.jsx)(“div”,{className:nx.Box_4,children:(0,o.jsx)(nb,{})})]}),(0,o.jsx)(ng,{className:nx.GoToTopButton})]})})}try{nb.displayName||(nb.displayName=”StickyReposHeaderBreadcrumb”)}catch{}try{ng.displayName||(ng.displayName=”GoToTopButton”)}catch{}try{n_.displayName||(n_.displayName=”FileNameStickyHeader”)}catch{}let nj={Box:”BlameAgeLegend-module__Box–dTotP”,Text:”BlameAgeLegend-module__Text–qfxJQ”,Box_1:”BlameAgeLegend-module__Box_1–n0gaX”,Text_1:”BlameAgeLegend-module__Text_1–Ifgnh”},nv=h.memo(nN);function nN(){let e=function(){let{resolvedColorScheme:e}=(0,D.DP)();return e?.startsWith(“dark”)?Array(10).fill(null).map((e,t)=>e5[`scale.orange.${9-t}`]):Array(10).fill(null).map((e,t)=>e5[`scale.orange.${t}`])}();return(0,o.jsxs)(“div”,{“aria-hidden”:!0,className:nj.Box,children:[(0,o.jsx)(“span”,{className:nj.Text,children:”Older”}),e.map((e,t)=>(0,o.jsx)(D.az,{sx:{backgroundColor:e},className:nj.Box_1},`blame-recency-color-${t}`)),(0,o.jsx)(“span”,{className:nj.Text_1,children:”Newer”})]})}try{nN.displayName||(nN.displayName=”BlameAgeLegend”)}catch{}var nw=n(88431),nk=n(59121);let nC={SegmentedControl:”BlobTabButtons-module__SegmentedControl–JMGov”};function nB(){let{headerInfo:{isCSV:e,isRichtext:t,shortPath:n},renderedFileInfo:i,image:a,issueTemplate:r,discussionTemplate:s,viewable:l}=(0,eh.A)(),c=(0,em.O)(),[d]=(0,ey.o)(),u=”1″===d.get(“plain”)||!!d.get(“short_path”)?.length,m=i&&!l||a,p=t||r||s||e||i,x=i?`short_path=${n}`:”plain=1″,{getUrl:y}=(0,k.Z)(),b=!p||u||c?c?2:1:0,[g,_]=(0,h.useState)(b);(0,nw.N)(()=>{_(b)},[b]);let j=(0,ey.Z)(),{viewCodeShortcut:N,viewPreviewShortcut:w,viewBlameShortcut:C}=(0,v.wk)(),B=e=>{if(p||(e+=1),_(e),g!==e)switch(e){case 0:j(y({action:”blob”,params:””,hash:””}));break;case 1:j(y({action:”blob”,params:p?x:””,hash:location.hash?.substring(1)??void 0}));break;case 2:j(y({action:”blame”,params:””,hash:location.hash?.substring(1)??void 0}))}};if(m)return null;let S=[(0,o.jsx)(nk.I.Button,{selected:1===g,”data-hotkey”:N.hotkey,children:”Code”},”raw”),(0,o.jsx)(nk.I.Button,{selected:2===g,”data-hotkey”:C.hotkey,children:”Blame”},”blame”)],I=(0,o.jsx)(nk.I.Button,{selected:0===g,”data-hotkey”:w.hotkey,children:”Preview”},”preview'”),T=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:N.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,h.startTransition)(()=>B(+!!p))}),(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:C.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,h.startTransition)(()=>B(p?2:1))}),p&&(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:w.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,h.startTransition)(()=>B(0))})]}),L=p?m?[I]:[I,…S]:[…S];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nk.I,{“aria-label”:”File view”,size:”small”,onChange:B,className:nC.SegmentedControl,children:L}),T]})}try{nB.displayName||(nB.displayName=”BlobTabButtons”)}catch{}var nS=n(74079),nI=n(15668);let nT={Box:”CodeSizeDetails-module__Box–QdxnQ”,Box_1:”CodeSizeDetails-module__Box_1–_uFDs”,Truncate:”CodeSizeDetails-module__Truncate–crycx”,Text:”CodeSizeDetails-module__Text–j_Gbp”,PrimerLink:”CodeSizeDetails-module__PrimerLink–Rhviw”,Truncate_1:”CodeSizeDetails-module__Truncate_1–er0Uk”,PrimerLink_1:”CodeSizeDetails-module__PrimerLink_1–ASUIG”,Text_1:”CodeSizeDetails-module__Text_1–K8OQg”,Tooltip:”CodeSizeDetails-module__Tooltip–wbw9i”};function nL({className:e}){let{codeownerInfo:t}=(0,nI.Y_)(),{helpUrl:n}=(0,_.sq)(),i=(0,eh.A)(),{path:a,refInfo:r}=(0,_.eu)(),l=(0,s.t)(),c=(0,em.O)(),{headerInfo:{blobSize:d,isGitLfs:u,lineInfo:{truncatedLoc:m,truncatedSloc:h},mode:p},viewable:x,rawLines:f}=i,y=”symbolic link”===p?function({rawLines:e,blame:t,repo:n,refInfo:i,path:a}){if(!e||!e[0])return null;let o=e[0];o.startsWith(“/”)||/^[a-zA-Z]:\\/.test(o)||(o=`${a}/../${o}`);let r={owner:n.ownerLogin,repo:n.name,commitish:i.name,filePath:o};return t?(0,et.buO)(r):(0,et.nD_)(r)}({rawLines:f,blame:c,repo:l,refInfo:r,path:a}):void 0;return(0,o.jsx)(“div”,{className:(0,t3.$)(e,nT.Box),children:(0,o.jsxs)(“div”,{className:(0,t3.$)(“text-mono”,nT.Box_1),children:[“file”!==p&&!y&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nl.A,{title:p,inline:!0,className:nT.Truncate,children:(0,o.jsx)(“span”,{children:p})}),x&&(0,o.jsx)(“span”,{className:nT.Text,children:”\xb7″})]}),x?(0,o.jsxs)(o.Fragment,{children:[y&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.N_,{as:eZ.N,muted:!0,to:y,className:nT.PrimerLink,children:”Symbolic Link”}),(0,o.jsx)(“span”,{className:nT.Text,children:”\xb7″})]}),(0,o.jsx)(nl.A,{maxWidth:”100%”,title:d,inline:!0,”data-testid”:”blob-size”,className:nT.Truncate_1,children:(0,o.jsx)(“span”,{children:`${m} lines (${h} loc) \xb7 ${d}`})})]}):(0,o.jsx)(“span”,{children:d}),t&&(0,o.jsx)(nA,{codeownerInfo:t}),u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“span”,{className:”file-info-divider”}),(0,o.jsx)(D.N_,{muted:!0,href:`${n}/articles/versioning-large-files/`,”aria-label”:”Learn more about Git LFS”,className:nT.PrimerLink_1,children:(0,o.jsx)($.A,{icon:P.QuestionIcon})}),(0,o.jsx)(“span”,{children:” Stored with Git LFS”})]})]})})}function nA({codeownerInfo:{codeownerPath:e,ownedByCurrentUser:t,ownersForFile:n,ruleForPathLine:i}}){var a,r,s;let l;if(!(t||n))return null;let c=(a=t,r=n,s=i,l=”Owned by “,a&&(l+=”you”,r&&(l+=” along with “)),l+=r,s&&(l+=` (from CODEOWNERS line ${s})`),l),d=t?{color:”var(–fgColor-accent, var(–color-accent-fg))”}:{};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(“span”,{className:nT.Text_1,children:” \xb7 “}),(0,o.jsx)(nS.A,{id:”codeowners-tooltip”,”aria-label”:c,wrap:!0,className:nT.Tooltip,children:e?(0,o.jsx)(D.N_,{“aria-labelledby”:”codeowners-tooltip”,href:e,muted:!t,sx:d,children:(0,o.jsx)($.A,{icon:P.ShieldLockIcon})}):(0,o.jsx)($.A,{icon:P.ShieldLockIcon,sx:d})})]})}try{nL.displayName||(nL.displayName=”CodeSizeDetails”)}catch{}try{nA.displayName||(nA.displayName=”CodeOwnersBadge”)}catch{}var nD=n(39111);function nO({editEnabled:e,githubDevUrl:t,ghDesktopPath:n,onBranch:i}){let{sendRepoClickEvent:a}=(0,E.T)(),r=(0,nD.X)([“windows”,”mac”]),{openWithGitHubDevShortcut:s}=(0,v.wk)();return(0,o.jsxs)(tL.l.Group,{children:[(0,o.jsx)(tL.l.GroupHeading,{children:”Open with…”}),t?(0,o.jsxs)(tL.l.LinkItem,{onClick:()=>a(“BLOB_EDIT_DROPDOWN.DEV_LINK”,{edit_enabled:e}),className:”js-blob-dropdown-click js-github-dev-shortcut”,href:t,”data-hotkey”:s.hotkey,children:[“github.dev”,(0,o.jsx)(tL.l.TrailingVisual,{“aria-hidden”:”true”,children:(0,o.jsx)(R.E,{children:(0,o.jsx)(“kbd”,{children:”.”})})})]}):null,i&&r&&n?(0,o.jsx)(tL.l.LinkItem,{onClick:()=>a(“BLOB_EDIT_DROPDOWN.DESKTOP”),href:n,children:”GitHub Desktop”}):null]})}function nR(e,t,n){let i=(0,nD.X)([“windows”,”mac”]);return!!(e||t&&i&&n)}try{nO.displayName||(nO.displayName=”OpenWithActionItems”)}catch{}function nE({editAllowed:e,hasOpenWithItem:t}){let n=(0,eh.A)(),{refInfo:i}=(0,_.eu)(),{canEdit:a}=i,{githubDevUrl:r}=(0,_.sq)(),{sendRepoClickEvent:l}=(0,E.T)(),{getUrl:c}=(0,k.Z)(),{defaultBranch:d}=(0,s.t)(),{headerInfo:{ghDesktopPath:u,onBranch:m}}=n,h=i.name===d,p=!!i.canEditOnDefaultBranch&&!h;return(0,o.jsxs)(o.Fragment,{children:[e&&(0,o.jsxs)(tL.l.Group,{children:[(0,o.jsx)(tL.l.GroupHeading,{children:”Edit file…”}),p?(0,o.jsxs)(tL.l.LinkItem,{onClick:()=>l(“BLOB_EDIT_DROPDOWN.ON_DEFAULT_BRANCH”),href:c({action:”edit”,commitish:d}),children:[“On “,(0,o.jsx)(“code”,{children:d}),” branch”]}):(0,o.jsxs)(tL.l.LinkItem,{onClick:()=>l(“BLOB_EDIT_DROPDOWN.IN_PLACE”),href:c({action:”edit”}),”data-hotkey”:”e”,children:[“In place”,(0,o.jsx)(tL.l.TrailingVisual,{“aria-hidden”:”true”,children:(0,o.jsx)(R.E,{children:(0,o.jsx)(“kbd”,{children:”e”})})})]})]}),e&&t&&(0,o.jsx)(tL.l.Divider,{}),t&&(0,o.jsx)(nO,{editEnabled:a,githubDevUrl:r,ghDesktopPath:u,onBranch:m})]})}try{nE.displayName||(nE.displayName=”EditMenuActionItems”)}catch{}function nz({shortcut:e}){return(0,o.jsx)(o.Fragment,{children:e.text?.split(” “).map(e=>(0,o.jsxs)(h.Fragment,{children:[(0,o.jsx)(“kbd”,{children:e}),” “]},e))})}try{nz.displayName||(nz.displayName=”KeyboardVisual”)}catch{}var nF=n(99906);function nP(){return(0,eh.A)().workflowRedirectUrl}function n$({onBlamePage:e,onDismiss:t,maxLineNumber:n}){let i=(0,ey.Z)(),a=(0,eT.fY)(),r=(0,eT.aM)(),l=(0,eT.ue)(),c=(0,h.useRef)(a?r:1),d=(0,h.useRef)(!0),[u,m]=(0,h.useState)(!0),p=(0,h.useRef)(r!==l&&a?l:null),{refInfo:x,path:f}=(0,_.eu)(),y=(0,s.t)(),b=(0,h.useRef)(null),g=(0,h.useRef)(c.current?`#L${c.current}${p.current?`-L${p.current}`:””}`:””),j=e?(0,et.buO)({repo:y.name,owner:y.ownerLogin,filePath:f,commitish:x.name}):(0,et.nD_)({repo:y.name,owner:y.ownerLogin,filePath:f,commitish:x.name});(0,h.useEffect)(()=>{b&&b.current&&(b.current.value=a?`${r}${l!==r?`-${l}`:””}`:”1″,b.current.focus())},[]);let v=(e,n)=>{i(`${e}${n}`);let a=(0,eb.$c)(n);if(!a.blobRange?.start?.line||!d.current){m(d.current),setTimeout(()=>{b.current?.focus()},25);return}(0,e_.f)({line:a.blobRange.start.line}),t()};return(0,tw.createPortal)((0,o.jsxs)(nF.A,{isOpen:!0,onDismiss:t,children:[(0,o.jsx)(nF.A.Header,{children:”Jump to line”}),(0,o.jsxs)(D.az,{sx:{display:”flex”,pl:3,pr:3,pt:3,pb:3*!!u},children:[(0,o.jsx)(D.az,{sx:{display:”flex”,flexGrow:1,mr:2},children:(0,o.jsx)(D.ks,{ref:b,”aria-invalid”:!u,”aria-describedby”:u?””:”goToLineErrorValidation”,sx:{flexGrow:1,pr:2},placeholder:”Jump to line…”,onChange:e=>{let t=e.target.value;b&&b.current&&(b.current.value=t),function(e){let t=!0;if(“”===e.trim()&&(c.current=1),e.startsWith(“-“)&&n){let i=parseInt(e,10);if(!Number.isNaN(i)&&i<0){let e=n+i+1;e<=0&&(e=1,t=!1),c.current=e}}else if(e.includes("-")){let[i,a]=e.split("-"),o=parseInt(i,10),r=parseInt(a,10);!Number.isNaN(o)&&o>0&&(c.current=n?Math.min(o,n):o,t=void 0!==n&&o<=n),!Number.isNaN(r)&&r>0&&(p.current=n?Math.min(r,n):r,t=t&&void 0!==n&&r<=n)}else{let i=parseInt(e,10);!Number.isNaN(i)&&i>0?(c.current=n?Math.min(i,n):i,t=void 0!==n&&i<=n):t=""===e}d.current=t,t&&!u&&m(!0),g.current=`#L${c.current}${p.current?`-L${p.current}`:""}`}(t)},onFocus:()=>{b&&b.current&&b.current.select()},onKeyDown:e=>{if(“Enter”===e.key){if(“Enter”===e.key&&!d.current){m(d.current),setTimeout(()=>{b.current?.focus()},25);return}v(j,g.current)}}})}),(0,o.jsx)(D.z9,{href:u?j+g.current:void 0,onClick:e=>{e.preventDefault(),v(j,g.current)},sx:tQ.E,children:”Go”})]}),!u&&(0,o.jsx)(D.az,{role:”alert”,id:”goToLineErrorValidation”,sx:{display:”flex”,p:2,justifyContent:”center”,color:”red”},children:”Invalid line number”})]}),document.body)}try{n$.displayName||(n$.displayName=”GoToLineDialog”)}catch{}var nM=n(60971),nH=n(6873),nW=n(21373);function nG(){let e=(0,s.t)(),{path:t,refInfo:n}=(0,_.eu)();return n.canEdit?(0,o.jsx)(tL.l.LinkItem,{as:eZ.N,to:(0,et.IO9)({repo:e,path:t,commitish:n.name,action:”tree/delete”}),children:(0,o.jsx)(D.EY,{sx:{color:”danger.fg”},children:”Delete directory”})}):null}try{nG.displayName||(nG.displayName=”DeleteDirectoryItem”)}catch{}let nU={Box:”CodeViewHeader-module__Box–PofRM”,Box_1:”CodeViewHeader-module__Box_1–KpLzV”,Box_2:”CodeViewHeader-module__Box_2–xzDOt”,Box_3:”CodeViewHeader-module__Box_3–WnQ2n”,Box_5:”CodeViewHeader-module__Box_5–KeXxF”,Box_6:”CodeViewHeader-module__Box_6–iStzT”,FileResultsList:”CodeViewHeader-module__FileResultsList–bglyC”,Box_7:”CodeViewHeader-module__Box_7–FZfkg”,IconButton:”CodeViewHeader-module__IconButton–EbF1J”},nV={Box:”DeleteHeaderButtons-module__Box–GOfJ9″},nq=(0,h.lazy)(()=>Promise.all([n.e(“vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52”),n.e(“vendors-node_modules_tanstack_react-query_build_modern_useQuery_js-node_modules_diff_lib_index_mjs”),n.e(“vendors-node_modules_github_text-expander-element_dist_index_js”),n.e(“packages_web-commit-dialog_WebCommitDialog_tsx”),n.e(“app_assets_modules_react-code-view_components_blob-edit_WebCommitDialog_tsx”),n.e(“packages_flash-error_FlashError_module_css-packages_text-expander_TextExpander_module_css-pac-a35192”)]).then(n.bind(n,17584)));function nY({webCommitInfo:e,isBlob:t}){let[n,i]=(0,h.useState)(“closed”),a=(0,h.useRef)(null),r=(0,s.t)(),{refInfo:l,path:c}=(0,_.eu)(),{helpUrl:d}=(0,_.sq)(),u=(0,et.IO9)({repo:r,commitish:l.name,action:t?”blob”:”tree”,path:c});return e.shouldFork||e.shouldUpdate||e.lockedOnMigration?null:(0,o.jsxs)(“div”,{className:nV.Box,children:[(0,o.jsx)(nW.Q,{as:eZ.N,to:u,children:”Cancel changes”}),(0,o.jsx)(nW.Q,{variant:”primary”,ref:a,onClick:()=>{(0,h.startTransition)(()=>{i(“pending”)})},children:”Commit changes…”}),(“pending”===n||”saving”===n)&&(0,o.jsx)(h.Suspense,{fallback:null,children:(0,o.jsx)(nq,{isNewFile:!1,isDelete:!0,helpUrl:d,ownerName:r.ownerLogin,dialogState:n,setDialogState:i,refName:l.name,placeholderMessage:`Delete ${c}${t?””:” directory”}`,webCommitInfo:e,returnFocusRef:a})})]})}try{nq.displayName||(nq.displayName=”WebCommitDialog”)}catch{}try{nY.displayName||(nY.displayName=”DeleteHeaderButtons”)}catch{}let nK=(0,eH.A)(“localStorage”);function nQ({symbolsEnabled:e}){let{codeFoldingOption:t,codeWrappingOption:n,codeCenterOption:i,openSymbolsOption:a}=(0,m.ud)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nX,{option:t}),(0,o.jsx)(nX,{option:n}),(0,o.jsx)(nX,{option:i}),e&&(0,o.jsx)(nX,{option:a})]})}function nX({option:e}){let t=(0,h.useCallback)(()=>{(0,h.startTransition)(()=>e.setEnabled(!e.enabled)),nK.setItem(e.name,String(!e.enabled)),e.name===m.T2&&eI(null,null,!e.enabled)},[e]);return(0,o.jsxs)(tL.l.Item,{role:”menuitemcheckbox”,”aria-checked”:e.enabled,onSelect:t,children:[(0,o.jsx)(tL.l.LeadingVisual,{children:e.enabled&&(0,o.jsx)(P.CheckIcon,{})}),e.label]},e.name)}try{nQ.displayName||(nQ.displayName=”SettingsMenuItems”)}catch{}try{nX.displayName||(nX.displayName=”OptionsElement”)}catch{}function nZ({payload:e,showTree:t,treeToggleElement:n,validCodeNav:i,onFindFilesShortcut:a}){let{codeCenterOption:r}=(0,m.ud)();return(0,o.jsx)(“div”,{className:(0,t3.$)(“container”,nU.Box),children:(0,o.jsx)(“div”,{className:”px-3 pt-3 pb-0″,id:”StickyHeader”,children:(0,o.jsx)(“div”,{className:nU.Box_1,children:(0,o.jsxs)(“div”,{className:nU.Box_2,children:[t?(0,o.jsx)(“div”,{className:nU.Box_6,children:(0,o.jsx)(ny,{id:”repos-header-breadcrumb–wide”,fileNameId:”file-name-id-wide”,showCopyPathButton:!0})}):(0,o.jsxs)(“div”,{className:(0,t3.$)(“react-code-view-header-wrap–narrow”,nU.Box_3),children:[(0,o.jsx)(D.az,{sx:{display:”block”,”@media screen and (min-width: 1360px)”:{display:r.enabled?”none”:”block”},mr:2},children:n}),(0,o.jsx)(“div”,{className:”react-code-view-header-mb–narrow mr-2″,children:(0,o.jsx)(np.R,{buttonClassName:”ref-selector-class”,idEnding:”repos-header-ref-selector-wide”})}),(0,o.jsx)(“div”,{className:(0,t3.$)(“react-code-view-header-mb–narrow”,nU.Box_5),children:(0,o.jsx)(ny,{id:”repos-header-breadcrumb”,fileNameId:”file-name-id”,showCopyPathButton:!0})})]}),(0,o.jsx)(“div”,{className:”react-code-view-header-element–wide”,children:(0,o.jsx)(nJ,{payload:e,onFindFilesShortcut:a,narrow:!1,showTree:t,validCodeNav:i})}),(0,o.jsx)(“div”,{className:”react-code-view-header-element–narrow”,children:(0,o.jsx)(nJ,{payload:e,onFindFilesShortcut:a,narrow:!0,showTree:t,validCodeNav:i})})]})})})})}function nJ({payload:e,onFindFilesShortcut:t,narrow:n,showTree:i,validCodeNav:a}){let r=(0,t8.y)(),{findFileWorkerPath:l,githubDevUrl:c}=(0,_.sq)(),d=(0,s.t)(),{refInfo:u,modelsRepoIntegrationEnabled:m,path:p}=(0,_.eu)(),{openWithGitHubDevShortcut:x,openWithGitHubDevInNewWindowShortcut:f}=(0,v.wk)(),y=(0,h.useRef)(null),b=(0,tZ.G7)(“copilot_agent_tasks_btn_code_nav”)&&(e.copilotSWEAgentEnabled??!1),g=!i&&(0,o.jsxs)(“div”,{children:[(0,o.jsx)(nH.default,{commitOid:u.currentOid,findFileWorkerPath:l,searchBoxRef:y,config:{enableOverlay:!0},className:nU.FileResultsList}),(0,o.jsx)(I.H,{inputRef:y,onFindFilesShortcut:t,textAreaId:eg.wQ})]});return(0,o.jsx)(“div”,{className:nU.Box_7,children:(0,o.jsxs)(“div”,{className:”d-flex gap-2″,children:[(0,B.mM)(e)&&(0,o.jsxs)(eh.s,{blob:e.blob,children:[!n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n2,{}),g]}),(0,o.jsx)(n9,{onCopy:r,narrow:n,validCodeNav:a,copilotAccessAllowed:e.copilotAccessAllowed??!1})]}),m&&e.path?.match(/\.prompt\.(yml|yaml)$/)&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(nW.Q,{as:eZ.N,to:(0,et.afT)({repo:d,path:e.path,commitish:u.name,action:”edit”}),children:”Edit prompt”})}),(0,B.Hf)(e)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t0.W,{as:”h2″,text:”Directory actions”}),!n&&(0,o.jsxs)(o.Fragment,{children:[g,(0,o.jsx)(nM.L,{}),b&&(0,o.jsx)(tJ.V,{isIconButton:!0,currentRepo:d,currentReference:{path:p},hideRepoSelector:!0,eventType:”new_agent_task_button_codenav”})]}),(0,o.jsx)(n0,{narrow:n}),(0,o.jsx)(en.A,{className:”js-github-dev-shortcut d-none”,”data-hotkey”:x.hotkey,href:c}),(0,o.jsx)(en.A,{className:”js-github-dev-new-tab-shortcut d-none”,”data-hotkey”:f.hotkey,href:c,target:”_blank”})]}),(0,B.iS)(e)&&(0,o.jsx)(nY,{webCommitInfo:e.webCommitInfo,isBlob:e.deleteInfo.isBlob})]})})}function n0({narrow:e}){let{refInfo:t,path:n}=(0,_.eu)(),i=(0,s.t)(),{sendRepoClickEvent:a}=(0,E.T)(),{addToast:r}=(0,t1.Y6)(),{createPermalink:l}=(0,k.Z)(),{copyFilePathShortcut:c,copyPermalinkShortcut:d}=(0,v.wk)(),{codeCenterOption:u}=(0,m.ud)(),p=(0,h.useRef)(null),[x,y,b]=t6(“raw-copy-message-tooltip”,p,{direction:”nw”});return(0,o.jsxs)(o.Fragment,{children:[c.hotkey&&(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:c.hotkey,onButtonClick:()=>{(0,t4.D)(n),r({type:”success”,message:”Path copied!”})}}),d.hotkey&&(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:d.hotkey,onButtonClick:()=>{(0,t4.D)(l({absolute:!0})),r({type:”success”,message:”Permalink copied!”})}}),(0,o.jsx)(t0.W,{as:”h2″,text:”More options”}),b,(0,o.jsxs)(tT.W,{onOpenChange:e=>e&&a(“MORE_OPTIONS_DROPDOWN”),anchorRef:p,children:[(0,o.jsx)(tT.W.Anchor,{children:(0,o.jsx)(ne.K,{icon:P.KebabHorizontalIcon,”aria-label”:”More options”,size:”medium”,title:”More options”,”data-testid”:”tree-overflow-menu-anchor”,onBlur:y,className:nU.IconButton})}),(0,o.jsx)(tT.W.Overlay,{width:”small”,children:(0,o.jsxs)(tL.l,{children:[e&&t.canEdit&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(tL.l.LinkItem,{as:eZ.N,onClick:()=>a(“NEW_FILE_BUTTON”),to:(0,et.IO9)({repo:i,path:n,commitish:t.name,action:”new”}),children:[(0,o.jsx)(tL.l.LeadingVisual,{children:(0,o.jsx)(P.PlusIcon,{})}),”Create new file”]}),(0,o.jsxs)(tL.l.LinkItem,{onClick:()=>a(“UPLOAD_FILES_BUTTON”),href:(0,et.IO9)({repo:i,path:n,commitish:t.name,action:”upload”}),children:[(0,o.jsx)(tL.l.LeadingVisual,{children:(0,o.jsx)(P.UploadIcon,{})}),”Upload files”]}),(0,o.jsx)(tL.l.Divider,{})]}),(0,o.jsx)(n1,{path:n,updateTooltipMessage:x}),t.canEdit&&(0,o.jsx)(tL.l.Divider,{}),(0,o.jsx)(nG,{}),(0,o.jsx)(tL.l.Divider,{}),(0,o.jsxs)(tL.l.Group,{children:[(0,o.jsx)(tL.l.GroupHeading,{children:”View options”}),(0,o.jsx)(nX,{option:u})]})]})})]})]})}function n1({path:e,updateTooltipMessage:t}){let{copyFilePathShortcut:n}=(0,v.wk)(),{copyPermalinkShortcut:i}=(0,v.wk)(),{sendRepoClickEvent:a}=(0,E.T)(),{createPermalink:r}=(0,k.Z)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(tL.l.Item,{onSelect:()=>{a(“MORE_OPTIONS_DROPDOWN.COPY_PATH”),(0,t4.D)(e),t(“Path copied!”)},children:[“Copy path”,n.hotkey&&(0,o.jsx)(tL.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,o.jsx)(nz,{shortcut:n})})]}),(0,o.jsxs)(tL.l.Item,{onSelect:()=>{a(“MORE_OPTIONS_DROPDOWN.COPY_PERMALINK”),(0,t4.D)(r({absolute:!0})),t(“Permalink copied!”)},children:[“Copy permalink”,i.hotkey&&(0,o.jsx)(tL.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,o.jsx)(nz,{shortcut:i})})]})]})}function n2(){let e=nP();return e?(0,o.jsx)(nW.Q,{as:eZ.N,to:e,children:”View Runs”}):null}try{nZ.displayName||(nZ.displayName=”CodeViewHeader”)}catch{}try{nJ.displayName||(nJ.displayName=”PageActions”)}catch{}try{n0.displayName||(n0.displayName=”TreeOverflowMenu”)}catch{}try{n1.displayName||(n1.displayName=”CopyPathsActionItems”)}catch{}try{n2.displayName||(n2.displayName=”ViewRunsButton”)}catch{}function n3({fileReference:e}){return(0,o.jsx)(tL.l.Item,{“data-testid”:”copilot-menu-items”,onSelect:()=>(0,tX.Xu)(e),children:”Ask about this file”})}try{n3.displayName||(n3.displayName=”CopilotMenuItems”)}catch{}let n4={IconButton:”NavigationMenu-module__IconButton–NqJ_L”,ActionMenu_Overlay:”NavigationMenu-module__ActionMenu_Overlay–OQ__q”,Button:”NavigationMenu-module__Button–SJihq”,ActionList_LinkItem:”NavigationMenu-module__ActionList_LinkItem–qaeAe”};function n5({viewable:e,onCopy:t,name:n,updateTooltipMessage:i,all:a}){let{sendRepoClickEvent:r}=(0,E.T)(),{rawBlobUrl:s}=(0,eh.A)(),{downloadRawContentShortcut:l}=(0,v.wk)(),c=(0,h.useCallback)(async()=>await n6(s,n),[n,s]);return(0,o.jsxs)(tL.l.Group,{children:[(0,o.jsx)(tL.l.GroupHeading,{children:”Raw file content”}),a&&(0,o.jsx)(n7,{viewable:e,onCopy:t,updateTooltipMessage:i}),a&&(0,o.jsx)(n8,{onClick:()=>r(“BLOB_RAW_DROPDOWN.VIEW”),rawHref:s}),(0,o.jsxs)(tL.l.LinkItem,{onClick:c,children:[“Download”,l.text&&(0,o.jsx)(tL.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,o.jsx)(nz,{shortcut:l})})]})]})}async function n6(e,t){let n=await fetch(e,{method:”get”}),i=await n.blob(),a=document.createElement(“a”);a.setAttribute(“download”,t);let o=URL.createObjectURL(i);a.href=o,a.setAttribute(“target”,”_blank”),a.click(),URL.revokeObjectURL(o)}function n7({viewable:e,onCopy:t,updateTooltipMessage:n}){let{copyRawContentShortcut:i}=(0,v.wk)();return e?(0,o.jsxs)(tL.l.Item,{onSelect:async()=>{let e=await t(),{ariaLabel:i}=(0,t9.t0)(e);n(i)},children:[“Copy”,i.text&&(0,o.jsx)(tL.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,o.jsx)(nz,{shortcut:i})})]}):null}function n8({onClick:e,rawHref:t}){let{viewRawContentShortcut:n}=(0,v.wk)();return(0,o.jsxs)(tL.l.LinkItem,{onClick:e,href:t,children:[“View”,n.text&&(0,o.jsx)(tL.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,o.jsx)(nz,{shortcut:n})})]})}try{n5.displayName||(n5.displayName=”RawMenuActionItems”)}catch{}try{n7.displayName||(n7.displayName=”CopyActionItem”)}catch{}try{n8.displayName||(n8.displayName=”RawActionItem”)}catch{}function n9({onCopy:e,validCodeNav:t,narrow:n,copilotAccessAllowed:i}){let a=(0,eh.A)(),r=a.symbolsEnabled,{action:c,path:d,refInfo:{canEdit:u,currentOid:m,name:p,refType:x}}=(0,_.eu)(),{githubDevUrl:y}=(0,_.sq)(),{sendRepoClickEvent:b}=(0,E.T)(),[g,j]=(0,h.useState)(!1),N=nP(),{search:w}=(0,eM.zy)(),C=new URLSearchParams(w),{setFindInFileOpen:B}=eD(),S=(0,eT.fY)(),I=!(a.richText&&”1″!==C.get(“plain”)||a.renderImageOrRaw||a.renderedFileInfo&&!C.get(“short_path”)||a.issueTemplate?.structured&&a.issueTemplate.valid),{headerInfo:{deleteTooltip:T,onBranch:L,siteNavLoginPath:A,lineInfo:{truncatedLoc:D}},viewable:O}=a,z=(0,l.i)(),{getUrl:F}=(0,k.Z)(),$=eR(),M=(0,h.useRef)(“”);(0,h.useEffect)(()=>{M.current=F({action:”blame”})},[F]);let{goToLineShortcut:H,findInFileShortcut:W,alternativeGoToLineShortcut:G}=(0,v.wk)(),U=(0,h.useRef)(null),[V,q,Y]=t6(“raw-copy-message-tooltip”,U,{direction:”nw”}),K=(0,s.t)(),Q=F(),[X]=(0,eW.I)(()=>window.location.origin+Q,Q),Z=(0,h.useMemo)(()=>({type:”file”,url:X,path:d,repoID:K.id,repoOwner:K.ownerLogin,repoName:K.name,ref:ii(p,x??”branch”),commitOID:m}),[X,d,K.id,K.ownerLogin,K.name,p,x,m]);return(0,o.jsxs)(o.Fragment,{children:[I&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:H.hotkey,onButtonClick:()=>j(!0)}),(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:G.hotkey,onButtonClick:()=>j(!0)})]}),(0,o.jsx)(ie,{blameUrl:M.current,viewable:O,hidden:!0}),Y,(0,o.jsxs)(tT.W,{onOpenChange:e=>e&&b(“MORE_OPTIONS_DROPDOWN”,{edit_enabled:u,github_dev_enabled:!!y}),anchorRef:U,children:[(0,o.jsx)(tT.W.Anchor,{children:(0,o.jsx)(ne.K,{icon:P.KebabHorizontalIcon,”aria-label”:”More file actions”,tooltipDirection:”nw”,className:(0,t3.$)(“js-blob-dropdown-click”,n4.IconButton),size:”medium”,variant:”default”,”data-testid”:`more-file-actions-button-nav-menu-${n?”narrow”:”wide”}`,onBlur:q})}),(0,o.jsx)(tT.W.Overlay,{width:”small”,className:n4.ActionMenu_Overlay,children:(0,o.jsxs)(tL.l,{children:[n&&null!==N&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tL.l.LinkItem,{href:N,children:”View Runs”}),(0,o.jsx)(tL.l.Divider,{})]}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n5,{viewable:O,onCopy:e,name:a.displayName,updateTooltipMessage:V}),(0,o.jsx)(tL.l.Divider,{})]}),(0,o.jsxs)(tL.l.Group,{children:[I&&(0,o.jsxs)(tL.l.Item,{onSelect:()=>{b(“MORE_OPTIONS_DROPDOWN.GO_TO_LINE”),j(!0)},”aria-keyshortcuts”:H.hotkey,children:[“Jump to line”,(0,o.jsx)(tL.l.TrailingVisual,{“aria-hidden”:”true”,children:(0,o.jsx)(R.E,{children:(0,o.jsx)(“kbd”,{children:H.text})})})]}),$===eO.Code&&null!==a.rawLines&&t&&!S&&(0,o.jsxs)(tL.l.Item,{onSelect:()=>{b(“BLOB_FIND_IN_FILE_MENU.OPEN”),B(!0)},”aria-keyshortcuts”:W.ariaKeyShortcuts,children:[“Find in file”,(0,o.jsx)(tL.l.TrailingVisual,{“aria-hidden”:”true”,className:”d-flex”,children:(0,o.jsx)(nz,{shortcut:W})})]})]}),(I||$===eO.Code&&null!==a.rawLines&&t)&&(0,o.jsx)(tL.l.Divider,{}),(0,o.jsx)(n1,{path:d,updateTooltipMessage:V}),(0,o.jsx)(tL.l.Divider,{}),i&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(tL.l.Group,{children:[(0,o.jsx)(tL.l.GroupHeading,{children:”Copilot”}),(0,o.jsx)(n3,{fileReference:Z})]}),(0,o.jsx)(tL.l.Divider,{})]}),(0,o.jsxs)(tL.l.Group,{children:[(0,o.jsx)(tL.l.GroupHeading,{children:”View options”}),(0,o.jsx)(nQ,{symbolsEnabled:r})]}),(u&&L||!O&&L)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tL.l.Divider,{}),(0,o.jsx)(it,{deleteTooltip:T,loggedIn:!!z,siteNavLoginPath:A})]})]})})]}),g&&(0,o.jsx)(n$,{onBlamePage:”blame”===c,onDismiss:()=>{j(!1),setTimeout(()=>{let e=document.getElementById(eg.wQ);e?.focus()},0)},maxLineNumber:parseInt(D,10)??void 0})]})}function ie({blameUrl:e,viewable:t,hidden:n}){let{hash:i}=(0,eM.zy)(),a=(0,eM.Gy)(e+i),{viewBlameShortcut:r}=(0,v.wk)();return t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.$n,{“data-hotkey”:r.hotkey,sx:{…n?{display:”none”}:void 0},onClick:a,className:n4.Button,children:”Blame”}),(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:r.hotkey,onButtonClick:a,onlyAddHotkeyScopeButton:!0})]}):null}function it({deleteTooltip:e,loggedIn:t,siteNavLoginPath:n}){let{getUrl:i}=(0,k.Z)();return(0,o.jsx)(tL.l.LinkItem,{as:eZ.N,”aria-label”:e,to:t?i({action:”delete”}):n,className:n4.ActionList_LinkItem,children:”Delete file”})}let ii=(e,t)=>”branch”===t?`refs/heads/${e}`:”tag”===t?`refs/tags/${e}`:e;try{n9.displayName||(n9.displayName=”NavigationMenu”)}catch{}try{ie.displayName||(ie.displayName=”BlameButton”)}catch{}try{it.displayName||(it.displayName=”DeleteActionItem”)}catch{}let ia={IconButton:”TableOfContents-module__IconButton–RCaNg”};function io({toc:e,openPanel:t,setOpenPanel:n,isDirectoryReadme:i}){var a;let r=h.useRef(null);return(a=e)&&a.length>=2?(0,o.jsx)(D.K0,{ref:r,tooltipDirection:”n”,sx:{mr:2*!i},icon:P.ListUnorderedIcon,variant:”invisible”,”aria-label”:”Outline”,”aria-pressed”:”toc”===t,onClick:()=>{n?.(“toc”===t?void 0:”toc”,r.current)},size:”small”,className:ia.IconButton}):null}try{io.displayName||(io.displayName=”TableOfContents”)}catch{}let ir={Box:”StickyLinesHeader-module__Box–X3qoe”,Box_1:”StickyLinesHeader-module__Box_1–IClTl”};function is({currentStickyLines:e,colorizedLines:t}){let n=Array.from(e.values());return(0,o.jsxs)(“div”,{className:ir.Box,children:[(0,o.jsx)(“div”,{className:(0,t3.$)(“react-line-numbers”,ir.Box_1),children:n.map(e=>(0,o.jsx)(e8.Kn,{codeLineData:e},`sticky-header-line-number-${e.lineNumber}`))}),(0,o.jsx)(“div”,{className:”react-code-lines”,children:n.map(e=>t&&t[e.lineNumber-1]?(0,o.jsx)(eJ.$6,{className:”react-code-text react-code-line-contents-no-virtualization react-file-line html-div”,style:{paddingLeft:”18px”},html:t[e.lineNumber-1],onClick:()=>(0,e_.f)({line:e.lineNumber})},`sticky-header-line-${e.lineNumber}`):(0,o.jsx)(e7.S,{codeLineData:e,stylingDirectivesLine:e.stylingDirectivesLine,codeLineToSectionMap:void 0,copilotAccessAllowed:!1,onClick:()=>(0,e_.f)({line:e.lineNumber}),shouldUseInert:!1},`sticky-header-line-${e.lineNumber}`))})]})}try{is.displayName||(is.displayName=”StickyLinesHeader”)}catch{}function il({openPanel:e,setOpenPanel:t,showTree:n,validCodeNav:i,treeToggleElement:a,searchTerm:r,setSearchTerm:l,currentStickyLines:c,focusedSearchResult:d,setFocusedSearchResult:u,searchResults:m,searchingText:p,stickyHeaderRef:x,copilotInfo:f,colorizedLines:y}){let b=(0,eh.A)(),g=b.symbolsEnabled,j=ek(x),{copilotAccessAllowed:N,refInfo:w,path:C}=(0,_.eu)(),B=eR(),{sendRepoClickEvent:S}=(0,E.T)(),I=(0,ew.ds)(),{copyFilePathShortcut:T}=(0,v.wk)(),{copyPermalinkShortcut:L}=(0,v.wk)(),A=(0,s.t)(),O=(0,tZ.G7)(“copilot_agent_tasks_btn_code_view”)&&b.copilotSWEAgentEnabled,{githubDevUrl:R}=(0,_.sq)(),{headerInfo:{toc:z,onBranch:F,ghDesktopPath:$},viewable:M}=b,H=nR(R,F,$),W=(0,em.O)(),G=(0,t8.y)(),{createPermalink:U}=(0,k.Z)(),{addToast:V}=(0,t1.Y6)(),{findInFileOpen:q,setFindInFileOpen:Y}=eD(),K=(0,h.useRef)(null),[Q,X,Z]=t6(“raw-actions-message-tooltip”,K,{direction:”nw”}),{getUrl:J}=(0,k.Z)(),ee=J(),[et]=(0,eW.I)(()=>window.location.origin+ee,ee),en=(0,h.useMemo)(()=>({type:”file”,url:et,path:C,repoID:A.id,repoOwner:A.ownerLogin,repoName:A.name,ref:ii(w.name,w.refType??”branch”),commitOID:w.currentOid}),[et,C,A.id,A.ownerLogin,A.name,w.name,w.refType,w.currentOid]),ei=M&&w.canEditOnDefaultBranch;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(“div”,{ref:ew.oM,className:nh.Box,children:[(0,o.jsx)(“div”,{className:”react-blob-sticky-header”,children:(0,o.jsx)(n_,{isStickied:j,showTree:n,treeToggleElement:a})}),(0,o.jsxs)(D.az,{sx:{borderRadius:j?”0px”:”6px 6px 0px 0px”},className:nh.Box_1,children:[(0,o.jsx)(t0.W,{as:”h2″,text:”File metadata and controls”}),(0,o.jsxs)(“div”,{className:nh.Box_2,children:[(0,o.jsx)(nB,{}),(0,o.jsx)(nL,{className:”react-code-size-details-in-header”}),(0,o.jsx)(ec.E,{copilotInfo:f,className:”react-code-size-details-in-header”,view:W?”blame”:”preview”})]}),(0,o.jsxs)(“div”,{className:nh.Box_3,children:[T.hotkey&&(0,o.jsx)(im,{hotkey:T.hotkey,onActivate:()=>{(0,t4.D)(C),V({type:”success”,message:”Path copied!”})}}),L.hotkey&&(0,o.jsx)(im,{hotkey:L.hotkey,onActivate:()=>{(0,t4.D)(U({absolute:!0})),V({type:”success”,message:”Permalink copied!”})}}),(0,o.jsx)(tX.Ay,{copilotAccessAllowed:N,messageReference:en,hideDropdown:!0,id:”blob-view-header-copilot-icon”}),O&&(0,o.jsx)(tJ.V,{isIconButton:!0,size:”small”,tooltipDirection:”n”,currentRepo:A,currentReference:{path:C},hideRepoSelector:!0,eventType:”new_agent_task_button_codeview”}),(0,o.jsxs)(“div”,{className:(0,t3.$)(“react-blob-header-edit-and-raw-actions”,nh.Box_4),children:[(0,o.jsx)(id,{onCopy:G,fileName:b.displayName}),(0,o.jsx)(ic,{})]}),B===eO.Code&&!W&&i&&g&&(0,o.jsx)(iu,{isCodeNavOpen:”codeNav”===e,setCodeNavOpen:e=>{e&&S(“BLOB_SYMBOLS_MENU.OPEN”),localStorage.setItem(“codeNavOpen”,e?”codeNav”:””),eI(null,e,null),t(e?”codeNav”:void 0)},size:”small”,searchingText:p.selectedText}),!W&&(0,o.jsx)(io,{toc:z,openPanel:e,setOpenPanel:t}),(0,o.jsxs)(“div”,{className:”react-blob-header-edit-and-raw-actions-combined”,children:[Z,(0,o.jsxs)(tT.W,{anchorRef:K,children:[(0,o.jsx)(tT.W.Anchor,{children:(0,o.jsx)(D.K0,{icon:P.KebabHorizontalIcon,tooltipDirection:”nw”,”aria-label”:”Edit and raw actions”,className:(0,t3.$)(“js-blob-dropdown-click”,nh.IconButton),size:”small”,title:”More file actions”,variant:”invisible”,”data-testid”:”more-file-actions-button”,onBlur:X})}),(0,o.jsx)(tT.W.Overlay,{className:(0,t3.$)(“react-blob-header-edit-and-raw-actions-combined”,nh.ActionMenu_Overlay),width:”small”,children:(0,o.jsxs)(tL.l,{children:[(w.canEdit&&M||ei||H)&&(0,o.jsxs)(“div”,{className:”react-navigation-menu-edit-and-raw-actions”,children:[(0,o.jsx)(nE,{editAllowed:!!(M&&w.canEdit)||!!ei,hasOpenWithItem:H}),(0,o.jsx)(tL.l.Divider,{})]}),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(n5,{viewable:M,onCopy:G,name:b.displayName,updateTooltipMessage:Q,all:!0})})]})})]})]})]})]}),W&&(0,o.jsxs)(“div”,{className:nh.Box_5,children:[(0,o.jsx)(nv,{}),(0,o.jsx)(nc,{})]})]}),q&&(0,o.jsx)(na,{stickied:j,searchTerm:r,focusedSearchResult:d,setFocusedSearchResult:u,setSearchTerm:l,searchResults:m,onClose:()=>{Y(!1),”codeNav”===e&&l(p.selectedText)}}),(0,o.jsx)(“div”,{children:!W&&c.size>0&&(0,o.jsx)(D.az,{sx:{top:I},className:nh.Box_6,children:(0,o.jsx)(is,{currentStickyLines:c,colorizedLines:y})})})]})}function ic(){let e=(0,eh.A)(),{getUrl:t}=(0,k.Z)(),{refInfo:n}=(0,_.eu)(),{canEdit:i}=n,{sendRepoClickEvent:a}=(0,E.T)(),{githubDevUrl:r}=(0,_.sq)(),s=(0,ey.Z)(),{editFileShortcut:l,openWithGitHubDevShortcut:c,openWithGitHubDevInNewWindowShortcut:d}=(0,v.wk)(),u=!!n.canEditOnDefaultBranch,{headerInfo:{editTooltip:m,ghDesktopPath:h,onBranch:p}}=e,x=nR(r,p,h);return i||x?(0,o.jsxs)(o.Fragment,{children:[r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(en.A,{className:”js-github-dev-shortcut d-none”,”data-hotkey”:c.hotkey,href:r}),(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:c.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{s(r+window.location.pathname.substring(1))}}),(0,o.jsx)(en.A,{className:”js-github-dev-new-tab-shortcut d-none”,”data-hotkey”:d.hotkey,href:r,target:”_blank”}),(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:d.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{window.open(r,”_blank”)}})]}),(0,o.jsxs)(t2.A,{children:[i?(0,o.jsx)(D.K0,{as:eZ.N,tooltipDirection:”nw”,”aria-label”:m,”data-hotkey”:l.hotkey,icon:P.PencilIcon,to:t({action:”edit”}),size:”small”,sx:{…tQ.E},”data-testid”:”edit-button”,className:nh.IconButton_1}):(0,o.jsx)(nt,{icon:P.PencilIcon,”aria-label”:m,disabled:!0,className:nh.IconButton_1}),(0,o.jsxs)(tT.W,{onOpenChange:e=>e&&a(“BLOB_EDIT_DROPDOWN”),children:[(0,o.jsx)(tT.W.Anchor,{children:(0,o.jsx)(D.K0,{tooltipDirection:”nw”,icon:P.TriangleDownIcon,size:”small”,”aria-label”:”More edit options”,”data-testid”:”more-edit-button”})}),(0,o.jsx)(tT.W.Overlay,{align:”end”,children:(0,o.jsx)(tL.l,{children:(0,o.jsx)(nE,{editAllowed:i||u,hasOpenWithItem:x})})})]})]}),i&&(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:”e,Shift+E”,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{s(t({action:”edit”}))}})]}):null}function id({onCopy:e,fileName:t}){let{viewRawContentShortcut:n,copyRawContentShortcut:i,downloadRawContentShortcut:a}=(0,v.wk)(),{renderImageOrRaw:r,renderedFileInfo:s,viewable:l,image:c,rawBlobUrl:d,headerInfo:{isGitLfs:u}}=(0,eh.A)(),m=(0,ey.Z)(),{addToast:p}=(0,t1.Y6)(),x=(0,h.useRef)(null),[y,b,g]=t6(“raw-copy-message-tooltip”,x),_=async()=>{await n6(d,t)},j=async()=>{let t=await e(),{ariaLabel:n}=(0,t9.t0)(t);y(n)},N=new URL(d,eu.fV.origin);N.searchParams.set(“download”,””);let w={“aria-label”:”Download raw file”,tooltipDirection:”n”,icon:P.DownloadIcon,size:”small”,onClick:async()=>{u||await n6(d,t)},”data-testid”:”download-raw-button”,”data-hotkey”:a.hotkey,sx:{borderTopLeftRadius:0,borderBottomLeftRadius:0}};return!u&&(s&&!l||c)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.K0,{“aria-label”:”Download raw file”,tooltipDirection:”n”,icon:P.DownloadIcon,size:”small”,onClick:_,”data-testid”:”download-raw-button”,”data-hotkey”:a.hotkey}),(0,o.jsx)(f._,{buttonTestLabel:”download-raw-button-shortcut”,buttonFocusId:eg.wQ,buttonHotkey:a.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:_})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(t2.A,{children:[(0,o.jsx)(D.z9,{href:d,download:r?”true”:void 0,size:”small”,sx:{linkButtonSx:tQ.E},”data-testid”:”raw-button”,”data-hotkey”:n.hotkey,className:nh.LinkButton,children:”Raw”}),!u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.K0,{ref:x,”aria-label”:”Copy raw file”,tooltipDirection:”n”,icon:P.CopyIcon,size:”small”,onMouseLeave:b,onClick:j,”data-testid”:”copy-raw-button”,”data-hotkey”:i.hotkey,onBlur:b}),g]}),u?(0,o.jsx)(D.K0,{as:”a”,”data-turbo”:”false”,href:N.toString(),…w}):(0,o.jsx)(D.K0,{…w})]}),(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:n.hotkey,buttonTestLabel:”raw-button-shortcut”,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>m(d)}),!u&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f._,{buttonTestLabel:”copy-raw-button-shortcut”,buttonFocusId:eg.wQ,buttonHotkey:i.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:async()=>{let t=await e(),{ariaLabel:n,content:i}=(0,t9.t0)(t);p({message:n,icon:i})}}),(0,o.jsx)(f._,{buttonTestLabel:”download-raw-button-shortcut”,buttonFocusId:eg.wQ,buttonHotkey:a.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:async()=>{await n6(d,t)}})]})]})}function iu({isCodeNavOpen:e,setCodeNavOpen:t,size:n,searchingText:i}){let{toggleSymbolsShortcut:a}=(0,v.wk)(),r=!(0,m.ud)().openSymbolsOption.enabled&&!e;return(0,o.jsx)(D.K0,{“aria-label”:e?”Close symbols panel”:”Open symbols panel”,tooltipDirection:”nw”,”aria-pressed”:e,”aria-expanded”:e,”aria-controls”:”symbols-pane”,icon:P.CodeSquareIcon,className:(0,t3.$)(r&&i?”react-button-with-indicator”:””,nh.IconButton_2),”data-hotkey”:a.hotkey,onClick:()=>{(0,eT.Ov)(!0),t(!e)},variant:”invisible”,”data-testid”:”symbols-button”,id:”symbols-button”,size:n})}function im({hotkey:e,onActivate:t}){return(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:e,onButtonClick:t})}try{il.displayName||(il.displayName=”BlobViewHeader”)}catch{}try{ic.displayName||(ic.displayName=”EditMenu”)}catch{}try{id.displayName||(id.displayName=”RawGroup”)}catch{}try{iu.displayName||(iu.displayName=”SymbolsButton”)}catch{}try{im.displayName||(im.displayName=”KeyboardShortcut”)}catch{}var ih=n(67941),ip=n(39619),ix=n(68911),iy=n(69726);let ib={definitions:void 0,localReferences:void 0,crossReferences:void 0,error:!1};var ig=n(73342),i_=n(56677);function ij({reference:e,isHighlighted:t,href:n,onClick:i,role:a,ariaLevel:r,symbol:s,index:l,focusElement:c}){let[d,u]=(0,h.useState)(null);(0,h.useEffect)(()=>{if(c){let e=document.getElementById(`find-in-file-item-${l}`);e&&e.focus()}},[c,l]);let{tabSize:m}=(0,eh.A)(),p=(0,eY.bp)(),x=(0,ig.W)(e.highlightedText,e.stylingDirectives,e.bodyText,”plain”,m,p);return(0,o.jsx)(D.N_,{as:eZ.N,to:n,role:a,sx:{display:”block”,p:0,fontWeight:400,fontSize:”12px”,”:hover:not([disabled])”:{bg:”canvas.default”},”:hover”:{textDecoration:”none”},'[data-component=”text”]’:{gridArea:”auto”},gridTemplateAreas:”text”,whiteSpace:”break-spaces”,verticalAlign:”top”,lineHeight:”20px”,position:”relative”,overflowWrap:”anywhere”,fontFamily:”mono”,overflow:”visible”},onClick:e=>{e.ctrlKey||e.metaKey||i?.()},onSelect:i,id:`find-in-file-item-${l}`,”aria-current”:t?”location”:void 0,”aria-level”:r,onKeyDown:e=>{“ArrowDown”===e.key?(iv(“nextElementSibling”),e.preventDefault()):”ArrowUp”===e.key&&(iv(“previousElementSibling”),e.preventDefault())},children:(0,o.jsx)(D.az,{sx:{p:1,py:”5px”,…t?{background:”var(–bgColor-attention-muted, var(–color-attention-subtle))”,boxShadow:”inset 2px 0 0 var(–bgColor-attention-emphasis, var(–color-attention-fg))”}:{}},children:(0,o.jsxs)(“div”,{className:”d-flex”,children:[(0,o.jsx)(D.az,{className:”text-small blob-num color-fg-muted”,sx:{width:”auto”,minWidth:”auto”},children:e.lineNumber}),(0,o.jsxs)(D.az,{sx:{overflow:”hidden”,whiteSpace:”pre”,position:”relative”},children:[null!==d&&(0,o.jsxs)(“div”,{id:`offset-${e.href(!1)}`,style:{marginLeft:-d},children:[s.length>0&&(0,o.jsx)(i_.U,{symbols:[e],lineNumber:e.lineNumber,sx:{overflow:”initial”},isNotUsingWhitespace:!0}),(0,o.jsx)(eJ.JR,{sx:{position:”relative”,width:”100%”,overflow:”hidden”},html:x,”aria-current”:t?”location”:void 0})]}),(0,o.jsx)(“span”,{ref:e=>{u(e?.offsetWidth??null)},style:{visibility:”hidden”,position:”absolute”,whiteSpace:”pre”},children:function(e,t){let n=34-e.length,i=t.bodyText.slice(0,t.ident.start.column);if(n<=0)return i;n=Math.max(n/2,n-t.bodyText.slice(t.ident.start.column+e.length).trimEnd().length);let a=i.split(" "),o=[];for(let e=a.length-1;e>=0;e–){let t=a[e];if(o.unshift(t),o.join(” “).length<=n)a.pop();else break}let r=a.join(" "),s=(i.slice(r.length).match(/^[ \t]*/)||[])[0]??"";return`${a.join(" ")}${s}`}(s,e)})]})]})})})}function iv(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()}try{ij.displayName||(ij.displayName="CodeNavCell")}catch{}function iN({results:e,repo:t,filePath:n,highlightedIndex:i,isDefinition:a,onClick:r,offset:l,initiallyExpanded:c,enableExpandCollapse:d,symbol:u,setFocusOnFile:m}){let p=!!(0,em.O)(),[x,f]=(0,h.useState)(c),y=(0,s.t)(),{path:b}=(0,_.eu)(),g=h.useRef(null),[j,v]=(0,h.useState)(!1),N=(0,eT.DC)(),w=e.slice(0,10),k=e.length>10?e.slice(10):[],{sendRepoClickEvent:C}=(0,E.T)(),B=y.ownerLogin===t.ownerLogin&&y.name===t.name,S=(0,h.useCallback)(e=>{“Enter”===e.key||” “===e.key?(f(!x),e.preventDefault()):”ArrowLeft”===e.key?f(!1):”ArrowRight”===e.key?(f(!0),x&&g.current?.focus()):”ArrowDown”===e.key?(iv(“nextElementSibling”),e.preventDefault()):”ArrowUp”===e.key&&(iv(“previousElementSibling”),e.preventDefault())},[x]);(0,h.useEffect)(()=>{i&&i>=10+l&&v(!0)},[i,l]),(0,h.useEffect)(()=>{m&&N&&g.current?.focus()},[m,N]),(0,h.useEffect)(()=>{N||document.getElementById(eg.wQ)?.focus()},[N]);let I=`${n}-${a?”definition”:”reference”}-group`;return(0,o.jsxs)(“div”,{children:[(0,o.jsxs)(D.az,{sx:{fontSize:0,px:3,py:2,display:”flex”,justifyContent:”space-between”,borderTop:”1px solid”,borderColor:”border.muted”,cursor:d?”pointer”:”auto”},onClick:d?()=>f(!x):void 0,onKeyDown:S,ref:g,children:[(0,o.jsxs)(D.az,{sx:{display:”flex”},children:[a&&y.id!==t.id&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eX.r,{square:!0,src:t.ownerAvatar,sx:{mr:2,backgroundColor:”#FFFFFF”},size:16}),(0,o.jsx)(D.az,{sx:{fontWeight:”600″,mr:1},children:t.name})]}),(0,o.jsxs)(D.az,{as:”button”,”aria-expanded”:x,”aria-controls”:I,sx:{fontWeight:”400″,color:”fg.muted”,display:”flex”,flexDirection:”row”,backgroundColor:”canvas.default”,border:”none”,padding:0},children:[d&&(0,o.jsx)($.A,{“aria-hidden”:”true”,icon:x?P.ChevronDownIcon:P.ChevronRightIcon}),(0,o.jsx)(D.az,{sx:{display:”table”,width:”100%”,tableLayout:”fixed”},children:(0,o.jsxs)(D.PA,{“aria-label”:`${a?”Definitions”:”References”} in ${n!==b?n:”this file”}`,title:n,sx:{direction:”rtl”,maxWidth:”100%”,pl:2,display:”table-cell”,textAlign:”left”},children:[“\u200E”,B&&n===b?”In this file”:n,”\u200E”]})})]})]}),e&&!x&&(0,o.jsx)(D.$c,{sx:{ml:2},children:e.length})]}),x&&(0,o.jsxs)(D.az,{“aria-label”:`Results in ${n!==b?n:”this file”}`,id:I,sx:{overflowX:”hidden”},role:”group”,className:”code-nav-file-information”,children:[w.map((e,t)=>(0,o.jsx)(ij,{reference:e,isHighlighted:i===t+l,href:e.href(p),onClick:()=>{r&&r(t+l),C(“BLOB_SYMBOLS_MENU.SYMBOL_DEFINITION_CLICK”)},symbol:u,index:t+l},`codeNavigation${t+l}`)),j&&k.map((e,t)=>(0,o.jsx)(ij,{reference:e,isHighlighted:i===t+l+10,href:e.href(p),onClick:()=>{r&&r(t+l+10),C(“BLOB_SYMBOLS_MENU.SYMBOL_DEFINITION_CLICK”)},symbol:u,index:t+l+10,focusElement:0===t},`codeNavigation${t+l+10}`)),k.length>0&&(0,o.jsx)(D.az,{sx:{px:3,pt:1,pb:2,fontSize:0,color:”fg.muted”,borderColor:”border.muted”},children:(0,o.jsx)(D.$n,{leadingVisual:j?P.FoldIcon:P.UnfoldIcon,onClick:()=>v(!j),sx:{color:”fg.default”},variant:”invisible”,size:”small”,”aria-selected”:!1,children:j?”Show less”:”Show more”})})]})]},n)}try{iN.displayName||(iN.displayName=”CodeNavFileInformation”)}catch{}function iw({definitions:e,references:t,highlightedIndex:n,initiallyExpanded:i,enableExpandCollapse:a,onClick:r,symbol:s,setFocusOnFile:l}){let c=(0,h.useMemo)(()=>{let n={};if(e)for(let t of e){let e=t.pathKey();n[e]||(n[e]=[]),n[e].push(t)}else if(t)for(let e of t){let t=e.pathKey();n[t]||(n[t]=[]),n[t].push(e)}return n},[e,t]),d=0;return(0,o.jsx)(o.Fragment,{children:Object.keys(c).map((t,u)=>{let m=c[t],h=(0,o.jsx)(iN,{repo:m[0].repo,filePath:m[0].path,results:m,highlightedIndex:n,isDefinition:void 0!==e&&e.length>0,onClick:r,offset:d,initiallyExpanded:i,enableExpandCollapse:a,symbol:s,setFocusOnFile:0===u&&l},t);return d+=m.length,h})})}try{iw.displayName||(iw.displayName=”CodeNavInfoPanelData”)}catch{}let ik=(0,h.lazy)(()=>n.e(“app_assets_modules_react-code-view_components_blob_BlobContent_CodeNav_ScrollMarks_tsx”).then(n.bind(n,27538)));function iC({codeNavInfo:e,selectedText:t,lineNumber:n,offset:i,onClose:a,onBackToSymbol:r,onSymbolSelect:l,isLoading:c,setSearchResults:d,setFocusedSearchResult:u}){let{findNextShortcut:m,findPrevShortcut:p}=(0,v.wk)(),x=!!(0,em.O)(),{definitions:f,localReferences:y,crossReferences:b,error:g}=function(e,t,n,i){let[a,o]=(0,h.useState)(ib);return(0,h.useEffect)(()=>{(async()=>{if(n<0||i<0)return;let{definitions:a,localReferences:r,crossReferences:s,setLoading:l}=e.getDefinitionsAndReferences(t,n,i);o(ib);try{let e=await a;o({definitions:e,localReferences:void 0,crossReferences:void 0,error:!1}),l(!1);let[t,n]=await Promise.all([r,s]);o({definitions:e,localReferences:t,crossReferences:n,error:!1})}catch{o({...ib,error:!0})}finally{l(!1)}})()},[e,t,n,i]),a}(e,t,n,i),{copilotAccessAllowed:j}=(0,_.eu)(),[N,w]=(0,h.useState)(-1),[k,C]=(0,h.useState)(!1),B=(0,s.t)(),S=(0,h.useMemo)(()=>f?.definitions||[],[f?.definitions]),I=(0,h.useMemo)(()=>y?.references||[],[y]),T=(0,h.useMemo)(()=>b?.references||[],[b?.references]),L=S.length,A=I.length+T.length,O=(0,ey.Z)(),R=S.length>0?S[0]:void 0,E=T.map(e=>e.path).filter((e,t,n)=>n.indexOf(e)===t),z=k?A:I.length,F=(0,h.useRef)(null),{language:H,languageID:W}=(0,eh.A)(),G=(0,h.useMemo)(()=>({type:”symbol”,kind:”codeNavSymbol”,name:t,languageID:W,languageName:H,codeNavDefinitions:S.map(e=>({ident:e.ident,extent:e.extent,kind:e.kind.fullName,fullyQualifiedName:e.fullyQualifiedName,ref:iI(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin,path:e.path})),codeNavReferences:[…I.map(e=>({ident:e.ident,path:e.path,ref:iI(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin})),…T.map(e=>({ident:e.ident,path:e.path,ref:iI(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin}))]}),[T,S,H,W,I,t]);(0,h.useEffect)(()=>{R&&R.repo.name===e.repo.name&&R.path===e.path?d([R,…I]):d(I),u(void 0),window.dispatchEvent(new ip.Xr(G))},[e.path,e.repo.name,R,I,t,d,u,G]),(0,M.Gp)(e=>{e||F.current?.focus()}),(0,h.useEffect)(()=>{w(-1)},[t]),(0,h.useEffect)(()=>{C(E.length>0&&E.length<=5)},[E.length]);let U=({index:e,direction:t,navigate:n})=>{if(void 0!==e){let t=e>=L?I[e-L]:S[e];w(e),n&&O(t.href(x)),(0,e_.f)({line:t.lineNumber,column:t.ident.start.column})}if(void 0!==t){let e=Math.max(L,N+t),i=I[e-L];e0?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(iB,{headerText:S.length>1?”Definitions”:”Definition”,searchType:f?.backend===”precise”?”Precise”:”Search”}),(0,o.jsx)(“div”,{children:S&&(0,o.jsx)(iw,{definitions:S,onClick:e=>{U({index:e})},highlightedIndex:N,initiallyExpanded:!0,enableExpandCollapse:S.length>1,symbol:t,setFocusOnFile:!0},”definitions”)})]}):null,!c&&(I.length>0||T.length>0)&&(0,o.jsx)(iB,{headerText:`${z} ${z>1?”References”:”Reference”}`,searchType:”Search”,sx:{justifyContent:”space-between”},children:(0,o.jsxs)(D.az,{sx:{display:”float”,float:”right”,mr:”-6px”},children:[(0,o.jsx)(D.K0,{unsafeDisableTooltip:!0,”aria-label”:”Previous reference”,”data-hotkey”:p.hotkey,onClick:()=>U({direction:-1,navigate:!0}),sx:{mr:2,cursor:”pointer”,color:”fg.muted”},disabled:N<=S.length,icon:P.ChevronUpIcon,variant:"invisible",size:"small"}),(0,o.jsx)(D.K0,{unsafeDisableTooltip:!0,"aria-label":"Next reference","data-hotkey":m.hotkey,onClick:()=>U({direction:1,navigate:!0}),sx:{cursor:”pointer”,color:”fg.muted”},disabled:N>=I.length+S.length-1,icon:P.ChevronDownIcon,variant:”invisible”,size:”small”}),(0,o.jsx)(“button”,{hidden:!0,”data-hotkey”:m.hotkey,onClick:()=>U({direction:1,navigate:!0}),”data-testid”:”find-next-button”}),(0,o.jsx)(“button”,{hidden:!0,”data-hotkey”:p.hotkey,onClick:()=>U({direction:-1,navigate:!0}),”data-testid”:”find-prev-button”})]})}),g&&(0,o.jsx)(D.az,{sx:{p:3,fontWeight:”400″,color:”fg.muted”},children:”No references found”}),!c&&I.length>0&&(0,o.jsx)(iw,{initiallyExpanded:!0,enableExpandCollapse:!0,references:I,highlightedIndex:N-L,onClick:e=>{U({index:L+e})},symbol:t,setFocusOnFile:!(S&&S.length>0)},”referencesInfoBox”),!c&&k&&(0,o.jsx)(iw,{initiallyExpanded:!1,enableExpandCollapse:!0,references:T,symbol:t},”crossReferencesInfoBox”),0===I.length&&0===S.length&&!g&&!c&&(0,o.jsx)(D.az,{sx:{p:3,fontWeight:”400″,color:”fg.muted”},children:”No definitions or references found”}),(0,o.jsxs)(D.az,{sx:{px:2,py:2,fontSize:0,color:”fg.muted”,borderTop:”1px solid”,borderColor:”border.muted”},children:[E.length>5&&(0,o.jsx)(D.$n,{leadingVisual:k?P.FoldIcon:P.UnfoldIcon,sx:{color:”fg.default”,mb:2},variant:”invisible”,size:”small”,onClick:()=>C(!k),children:k?”Show less”:”Show more”}),(0,o.jsx)(D.$n,{as:en.A,leadingVisual:P.SearchIcon,sx:{color:”fg.default”},variant:”invisible”,size:”small”,href:(0,et.Y8Y)({owner:B.ownerLogin,repo:B.name,searchTerm:t}),children:”Search for this symbol”})]}),(0,o.jsx)(h.Suspense,{fallback:null,children:(0,o.jsx)(ik,{definitionsOrReferences:[…S,…I]})})]})}function iB({headerText:e,searchType:t,sx:n,children:i}){return(0,o.jsxs)(D.az,{sx:{fontSize:”14px”,px:3,py:2,fontWeight:”600″,backgroundColor:”canvas.subtle”,borderTop:”1px solid”,borderColor:”border.muted”,height:”36px”,display:”flex”,flexDirection:”row”,alignItems:”center”,…n},children:[(0,o.jsxs)(D.DZ,{as:”h3″,sx:{fontSize:”12px”,fontWeight:”semibold”,color:”fg.muted”},children:[e,(0,o.jsx)(D.EY,{sx:{ml:2,fontWeight:”light”},children:t})]}),i]})}function iS({currentSymbol:e,selectedText:t,codeNavInfo:n,onSymbolSelect:i,children:a}){let r=e?.fullyQualifiedName??t,s=r.split(/(\W+)/).map(e=>{let t=/^\W+$/.test(e),i=t?[]:n.getLocalDefinitions(e,!0),a=1===i.length?i[0]:void 0,o=a?.kind.plColor;return{text:e,symbol:a,symbolColor:o,isSeparator:t}});return(0,o.jsxs)(D.az,{as:”h3″,sx:{display:”flex”,flexDirection:”column”,flexGrow:1,alignContent:”start”,fontWeight:400,fontSize:1,fontFamily:”mono”,flexWrap:”wrap”,minWidth:0,verticalAlign:”center”,gap:2,px:3},”aria-label”:`${e?.kind.fullName||””} ${r}`.trimStart(),children:[e&&(0,o.jsxs)(D.az,{sx:{display:”flex”,alignItems:”center”,justifyContent:”space-between”,flexGrow:1,width:”100%”},children:[(0,o.jsx)(G,{symbolKind:e.kind,showFullSymbol:!0}),a]}),(0,o.jsxs)(D.PA,{title:r,sx:{maxWidth:290,mt:”3px”,direction:”rtl”,alignSelf:”start”},inline:!0,children:[“\u200E”,s.map((e,t)=>{let n=e.symbol?{all:”unset”,cursor:”pointer”,”&:hover”:{backgroundColor:”attention.muted”}}:{};return(0,o.jsx)(D.az,{as:”span”,role:”button”,tabIndex:e.isSeparator?-1:0,sx:{…n,color:e.symbolColor,direction:”ltr”},onClick:()=>e.symbol?i(e.symbol):void 0,onKeyDown:t=>{e.symbol&&[“Enter”,”Space”].includes(t.code)&&i(e.symbol)},children:e.text},`${e.text}-${t}`)}),”\u200E”]})]})}function iI(e){return e.name===e.currentOid?e.currentOid:”tree”===e.refType?`refs/heads/${e.name}`:(0,ix.D7)(e.name,e.refType??”branch”)}try{ik.displayName||(ik.displayName=”ScrollMarks”)}catch{}try{iC.displayName||(iC.displayName=”CodeNavSymbolDetails”)}catch{}try{iB.displayName||(iB.displayName=”CodeNavSymbolSectionHeader”)}catch{}try{iS.displayName||(iS.displayName=”CodeNavSymbolDefinitionHeader”)}catch{}function iT({selectedText:e,showCodeNavWithSymbol:t,lineNumber:n,offset:i,onClose:a,onClear:r,codeNavInfo:l,isLoading:c,setSearchResults:d,setFocusedSearchResult:u,autoFocusSearch:m}){function p(e){t(e),f(!1)}let[x,f]=(0,h.useState)(!e);(0,M.Gp)(e=>{e&&(r(),f(!0),d([]))});let{refInfo:y,path:b}=(0,_.eu)(),g=(0,s.t)(),{language:j,languageID:v,displayUrl:N}=(0,eh.A)(),w=(0,h.useMemo)(()=>({type:”file”,languageID:v,languageName:j,path:b,ref:(0,ix.D7)(y.name,y.refType),commitOID:y.currentOid,repoID:g.id,repoName:g.name,repoOwner:g.ownerLogin,url:N}),[v,j,b,y.name,y.refType,y.currentOid,g.id,g.name,g.ownerLogin,N]);return(0,h.useEffect)(()=>{e?f(!1):x||(window.dispatchEvent(new ip.Xr(w)),f(!0))},[e,l]),(0,o.jsx)(“div”,{id:”symbols-pane”,children:x?l?(0,o.jsx)(eo,{treeSymbols:l.symbolTree,onSymbolSelect:p,codeSymbols:l.symbols,onClose:a,autoFocusSearch:m}):(0,o.jsx)(“div”,{children:”Click on a symbol to see code navigation data”}):(0,o.jsx)(iC,{codeNavInfo:l,selectedText:e,lineNumber:n,offset:i,onBackToSymbol:()=>{r(),f(!0),d([]),window.dispatchEvent(new ip.Xr(w))},onClose:()=>{a(),r(),d([]),window.dispatchEvent(new ip.Xr(w))},onSymbolSelect:p,isLoading:c,setSearchResults:d,setFocusedSearchResult:u})})}try{iT.displayName||(iT.displayName=”CodeNavInfoPanel”)}catch{}var iL=n(40023);let iA=h.memo(iD);function iD(e){let{…t}=e,[n,i]=h.useState(!1),{screenSize:a}=(0,u.lm)();return h.useEffect(()=>{i(at.setOpenPanel(void 0),renderHeader:()=>null,renderBody:()=>iO({…t})})]})}function iO({stickySx:e,stickyHeaderRef:t,openPanel:n,isCodeNavLoading:i,codeNavInfo:a,setOpenPanel:r,showCodeNavWithSymbol:s,searchingText:l,setSearchingText:c,setSearchTerm:d,setSearchResults:u,setFocusedSearchResult:m,autoFocusSearch:h,className:p}){let{headerInfo:{toc:x}}=(0,eh.A)(),f=ek(t);return(0,o.jsx)(iL.Z,{sx:{…e,…f?{borderRadius:”0px 0px 6px 6px”,borderTop:0}:{}},className:`panel-content-narrow-styles ${p||””}`,children:”toc”===n?(0,o.jsx)(ih.A,{toc:x,onClose:()=>{r(void 0)}}):”codeNav”===n&&(0,o.jsx)(iT,{codeNavInfo:a,showCodeNavWithSymbol:s,selectedText:l.selectedText,lineNumber:l.lineNumber-1,offset:l.offset,onClose:()=>{r(void 0),localStorage.setItem(“codeNavOpen”,””),eI(null,!1,null),document.getElementById(“symbols-button”)?.focus()},isLoading:i,onClear:()=>c({selectedText:””,lineNumber:0,offset:-1}),setSearchTerm:d,setSearchResults:u,setFocusedSearchResult:m,autoFocusSearch:h})})}try{iA.displayName||(iA.displayName=”PanelContent”)}catch{}try{iD.displayName||(iD.displayName=”PanelContentUnmemoized”)}catch{}try{iO.displayName||(iO.displayName=”InnerPanelContent”)}catch{}function iR({blame:e,blob:t,searchTerm:n,setSearchTerm:i,symbolsExpanded:a,setValidCodeNav:r,showTree:c,treeToggleElement:d,validCodeNav:p,copilotInfo:x}){let{path:f}=(0,_.eu)(),y=t.symbolsEnabled,b=(0,h.useRef)(null),g=eC(),[v,N]=(0,h.useState)(!1),{openPanel:w,setOpenPanel:k}=(0,j.Ak)(),C=(0,h.useRef)(null),B=(0,m.ud)().openSymbolsOption.enabled&&y,{screenSize:S}=(0,u.lm)();(0,M.Gp)(e=>{e&&N(!0)});let{sendRepoClickEvent:I}=(0,E.T)(),T=(0,h.useRef)(!0);function L(){window.scrollY<300&&R(null,!0)}(0,h.useEffect)(()=>{T.current?(T.current=!1,W.selectedText&&!w&&B&&a&&z()):(R(null,!0),i(“”),N(!1),G({selectedText:””,lineNumber:-1,offset:0}))},[f]),(0,h.useEffect)(()=>(window.addEventListener(“scroll”,L),()=>{window.removeEventListener(“scroll”,L)}),[]);let A=!!(0,em.O)(),{currentStickyLines:O,setStickyLines:R}=function(){let[e,t]=(0,h.useState)(()=>new Map),n=(0,h.useCallback)((n,i)=>{let a=!1;if(null===n&&0===e.size)return;if(null===n&&i){e.clear(),t(new Map(e));return}if(!n)return;let o=n.lineNumber;if(i&&e.has(o)?(e.delete(o),a=!0):i||e.has(o)||(e.set(o,n),a=!0),e.has(o))for(let[t]of e){let n=e.get(t);(!n.ownedSection||n.ownedSection.endLine{!A&&B&&(k(“codeNav”),I(“BLOB_SYMBOLS_MENU.OPEN_WITH_SYMBOL”),localStorage.setItem(“codeNavOpen”,”codeNav”),eI(null,!0,null))},[A,B,k,I]),{isCodeNavLoading:F,codeNavInfo:P,showCodeNavWithSymbol:$,showCodeNavForToken:H,searchingText:W,setSearchingText:G}=function(e,t,n,i,a){let o=(0,ey.Z)(),r=(0,s.t)(),c=(0,l.i)(),{refInfo:d,path:u}=(0,_.eu)(),[m,p]=(0,h.useState)(!1),x=(0,h.useMemo)(()=>e.stylingDirectives?.map(e=>(0,ef.M)(e)),[e.stylingDirectives]),[f]=(0,ey.o)(),y=”1″===f.get(“plain”),b=(0,h.useMemo)(()=>{n(!0);try{return new ex.Op(r,d,u,!!c,e.rawLines||[],e.symbols?.symbols??[],x,e.language,y,p)}catch{n(!1)}},[n,r,d,u,c,e.rawLines,e.symbols?.symbols,e.language,x,y]),[g,j]=(0,h.useState)(()=>{let t=(0,eb.$c)(i);if(!t.blobRange?.start?.line)return{selectedText:””,lineNumber:-1,offset:0};if(!a&&t.blobRange.start.line===t.blobRange.end.line&&null!==t.blobRange.start.column&&null!==t.blobRange.end.column&&t.blobRange.end.column-t.blobRange.start.column>2&&e.stylingDirectives&&e.stylingDirectives[t.blobRange.start.line-1]?.length&&b?.blobLines[t.blobRange.start.line-1]){let e=b.blobLines[t.blobRange.start.line-1]?.substring(t.blobRange.start.column-1,t.blobRange.end.column-1),n=x[t.blobRange.start.line-1]?.find(e=>e.s===t.blobRange.start.column-1&&e.e===t.blobRange.end.column-1);return e&&n&&(0,eg.Bm)(e,n.c)?{selectedText:e,lineNumber:t.blobRange.start.line,offset:t.blobRange.start.column}:{selectedText:””,lineNumber:-1,offset:0}}if(!i||!b||a)return{selectedText:””,lineNumber:-1,offset:0};{let e=b.getSymbolOnLine(Number(i.substring(2)));return e?{selectedText:e.name,lineNumber:e.lineNumber,offset:e.ident.start.column}:{selectedText:””,lineNumber:-1,offset:0}}});return{isCodeNavLoading:m,codeNavInfo:b,showCodeNavWithSymbol:(0,h.useCallback)(e=>{j({selectedText:e.name,lineNumber:e.lineNumber,offset:e.ident.start.column}),t(),o(e.href()),(0,e_.f)({line:e.lineNumber})},[t,o]),showCodeNavForToken:(0,h.useCallback)(e=>{j(e),t()},[t]),setSearchingText:j,searchingText:g}}(t,z,r,eu.fV.hash,A),{searchStatus:U,searchResults:V,setSearchResults:q,focusedSearchResult:Y,setFocusedSearchResult:K}=function(e,t){let{findInFileWorkerPath:n}=(0,_.sq)(),[i,a]=(0,h.useState)([]),[o,r]=(0,h.useState)(void 0),[s,l]=(0,h.useState)(“done”),c=h.useRef(),{refInfo:d,path:u}=(0,_.eu)();!c.current&&t&&(c.current=new ev.N(new ej.z(n,eN),200,e=>1!==e.query.length));let m=(0,h.useRef)(t);m.current=t;let p=(0,h.useRef)(“”);(0,h.useEffect)(()=>function(){c.current?.terminate()},[]);let x=(0,h.useRef)(void 0);return c.current&&e!==x.current&&(c.current.onResponse=t=>{t.query===m.current&&(r(0),a(e?.createReferences(t.ranges)||[]),l(“done”),p.current=m.current)},x.current=e),(0,h.useEffect)(()=>{if(!e||!c.current||!p.current||””===p.current){a([]),r(0),l(“done”);return}a([]),r(0),l(“pending”),c.current.post({query:p.current,lines:e.blobLines,currentCodeReferences:void 0})},[d.name,u]),(0,h.useEffect)(()=>{if(e&&c.current)if(“”===t)a([]),r(0),l(“done”),p.current=””;else{var n;if(p.current===t||!((n=t).length>0&&n.length<=1e3))return;l("pending");let a=p.current.length>0&&t.startsWith(p.current);c.current.post({query:t,lines:e.blobLines,currentCodeReferences:a?i:void 0})}},[t]),{focusedSearchResult:o,setFocusedSearchResult:r,searchResults:i,setSearchResults:a,searchStatus:s}}(P,n),{headerInfo:{toc:Q}}=t,X=(0,h.useMemo)(()=>({value:!1}),[P]);X.value=!w||X.value;let Z=void 0!==w&&P&&p&&!(0===P.symbols.length&&”codeNav”===w&&!X.value)&&!(!Q&&”toc”===w)&&”edit”!==w&&!(!y&&”codeNav”===w),J=Z?w:void 0;return(0,h.useEffect)(()=>{w&&!Z&&k(void 0)},[w,k,Z]),(0,h.useEffect)(()=>{try{(0,ed.BI)(“blob-size”,{lines:t.stylingDirectives?.length,truncatedSloc:t.headerInfo?.lineInfo.truncatedSloc,truncatedLoc:t.headerInfo?.lineInfo.truncatedLoc,length:t.rawLines?.reduce((e,t)=>e+t.length,0)??0,humanLength:t.headerInfo?.blobSize})}catch{}},[t]),(0,o.jsx)(eh.s,{blob:t,children:(0,o.jsx)(em.k,{blame:e,children:(0,o.jsxs)(ep.EN,{children:[P&&(0,o.jsx)(iE,{codeNavInfo:P}),(0,o.jsx)(el.D,{}),(0,o.jsxs)(D.az,{sx:{display:”flex”,flexDirection:”row”},children:[(0,o.jsxs)(D.az,{className:”container”,sx:{width:”100%”,height:”fit-content”,minWidth:0,mr:J&&P&&S>u.Gy.medium?3:0},children:[(0,o.jsxs)(D.az,{sx:{height:”40px”,pl:1,pb:3},className:”react-code-size-details-banner”,children:[(0,o.jsx)(nL,{className:”react-code-size-details-banner”}),(0,o.jsx)(ec.E,{copilotInfo:x,className:”react-code-size-details-banner”,view:e?”blame”:”preview”})]}),(0,o.jsx)(D.az,{className:”react-blob-view-header-sticky”,sx:g,id:ew.Us,ref:b,children:(0,o.jsx)(il,{currentStickyLines:O,focusedSearchResult:Y,openPanel:J,searchingText:W,searchResults:V,searchTerm:n,setFocusedSearchResult:K,setOpenPanel:k,setSearchTerm:i,showTree:c,stickyHeaderRef:b,treeToggleElement:d,validCodeNav:p,copilotInfo:x,colorizedLines:t.colorizedLines})}),(0,o.jsx)(D.az,{sx:{border:”1px solid”,borderTop:”none”,borderColor:”border.default”,borderRadius:”0px 0px 6px 6px”,minWidth:”273px”},children:(0,o.jsx)(tY,{blobLinesHandle:C,setOpenPanel:k,validCodeNav:p,codeNavInfo:P,onCodeNavTokenSelected:H,onLineStickOrUnstick:R,searchResults:V,setSearchTerm:i,focusedSearchResult:Y})})]}),J&&P?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D.az,{sx:{pb:”33px”}}),(0,o.jsx)(iA,{stickySx:g,stickyHeaderRef:b,openPanel:J,isCodeNavLoading:F,codeNavInfo:P,setOpenPanel:k,showCodeNavWithSymbol:$,searchingText:W,setSearchingText:G,searchTerm:n,searchResults:V,searchStatus:U,setSearchResults:q,setSearchTerm:i,setFocusedSearchResult:K,autoFocusSearch:v})]}):null]})]})})})}function iE({codeNavInfo:e}){let{sendRepoKeyDownEvent:t}=(0,E.T)(),{findSymbolShortcut:n}=(0,v.wk)(),{setOpenPanel:i}=(0,j.Ak)();return 0===e.symbols.length?null:(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:n.hotkey,onButtonClick:()=>{i(“codeNav”),(0,M.DE)(),t(“FIND_SYMBOL”)}})}try{iR.displayName||(iR.displayName=”BlobViewContent”)}catch{}try{iE.displayName||(iE.displayName=”FindSymbolShortcut”)}catch{}var iz=n(74459),iF=n(10677),iP=n(72511);let i$={Flash:”BlameBanners-module__Flash–uicsZ”,Box:”BlameBanners-module__Box–m11g9″};function iM(){let e=(0,d.B)(),t=”blame”in e?e.blame:void 0;return(0,o.jsxs)(em.k,{blame:t,children:[(0,o.jsx)(iH,{}),(0,o.jsx)(iG,{})]})}function iH(){let e=(0,s.t)(),t=(0,_.eu)().refInfo.name,n=(0,em.O)(),[i,a]=h.useState(!0);if(!n)return null;let r=n?.ignoreRevs,l=n?.errorType;return l?(0,o.jsx)(o.Fragment,{children:i&&(0,o.jsxs)(iP.A,{variant:”warning”,className:i$.Flash,children:[(0,o.jsx)($.A,{icon:P.InfoIcon}),(0,o.jsx)(iW,{blameErrorType:l,renderIgnoreRefsLink:()=>(0,o.jsx)(eZ.N,{to:(0,et.nD_)({repo:e.name,owner:e.ownerLogin,commitish:t,filePath:r.path}),children:r.path})}),(0,o.jsx)(“div”,{onClick:()=>a(!1),className:i$.Box,children:(0,o.jsx)($.A,{icon:P.XIcon})})]})}):null}function iW({blameErrorType:e,renderIgnoreRefsLink:t}){switch(e){case”invalid_ignore_revs”:return(0,o.jsxs)(“span”,{children:[“Your “,t(),” file is invalid.”]});case”ignore_revs_too_big”:return(0,o.jsxs)(“span”,{children:[“Your “,t(),” file is too large.”]});case”symlink_disallowed”:return(0,o.jsx)(“span”,{children:”Symlinks are not supported.”});case”blame_timeout”:return(0,o.jsx)(“span”,{children:”Your blame took too long to compute.”});default:eE(e)}}function iG(){let e=(0,s.t)(),t=(0,_.eu)().refInfo.name,n=(0,em.O)()?.ignoreRevs,[i,a]=h.useState(!0);if(!n?.present)return null;let r=(0,o.jsx)(eZ.N,{to:(0,et.nD_)({repo:e.name,owner:e.ownerLogin,commitish:t,filePath:n.path}),children:n.path});return(0,o.jsx)(o.Fragment,{children:i&&(0,o.jsxs)(iP.A,{className:i$.Flash,children:[(0,o.jsx)($.A,{icon:P.InfoIcon}),n.timedOut?(0,o.jsxs)(“span”,{children:[“Failed to ignore revisions in “,r,”.”]}):(0,o.jsxs)(“span”,{children:[“Ignoring revisions in “,r,”.”]}),(0,o.jsx)(“div”,{onClick:()=>a(!1),className:i$.Box,children:(0,o.jsx)($.A,{icon:P.XIcon})})]})})}try{iM.displayName||(iM.displayName=”BlameBanners”)}catch{}try{iH.displayName||(iH.displayName=”BlameErrorBanner”)}catch{}try{iW.displayName||(iW.displayName=”BlameErrorText”)}catch{}try{iG.displayName||(iG.displayName=”IgnoreRevsBanner”)}catch{}var iU=n(71467);let iV={Flash:”BlobLowerBanners-module__Flash–idYKd”};var iq=n(87011);let iY={Flash:”DiscussionTemplateBanner-module__Flash–SIEaS”};function iK({errors:e}){if(!e||0===e.length)return null;let t=[];return 1===e.length?t.push(“Learn more about this error.”):e.map((e,n)=>{t.push(`Learn more about error ${n+1}.`)}),(0,o.jsxs)(iP.A,{variant:”danger”,className:iY.Flash,children:[(0,o.jsxs)(“p”,{children:[(0,o.jsx)($.A,{icon:P.AlertIcon}),(0,o.jsxs)(“strong”,{children:[“There “,1===e.length?”is a problem”:”are some problems”,” with this template”]})]}),e.map((e,n)=>(0,o.jsxs)(“p”,{children:[(0,o.jsx)(eJ.JR,{html:e.message}),”. “,(0,o.jsx)(en.A,{href:e.link,target:”_blank”,children:t[n]})]},`error-${n}`))]})}try{iK.displayName||(iK.displayName=”DiscussionTemplateBanner”)}catch{}var iQ=n(54589),iX=n(97949);let iZ={Label:”IssueTemplateBanner-module__Label–GTasc”,Banner:”IssueTemplateBanner-module__Banner–kvXxt”};function iJ(e){let t,{issueTemplate:n,showIssueFormWarning:i,isValidLegacyIssueTemplate:a,helpUrl:r,isLoggedIn:s}=e;if(!s||!n&&!a&&!i)return null;let l=(0,tZ.G7)(“lifecycle_label_name_updates”),c=null,d=”Info”,u=[];return n?!1===n.valid?(t=”critical”,d=”Critical”,n.errors&&(1===n.errors.length?u.push(“Learn more about this error.”):n.errors.map((e,t)=>{u.push(`Learn more about error ${t+1}.`)})),c=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(“p”,{children:[(0,o.jsx)($.A,{icon:P.AlertIcon}),(0,o.jsxs)(“strong”,{children:[“There “,n.errors?.length===1?”is a problem”:”are some problems”,” with this template”]})]}),n.errors?.map((e,t)=>(0,o.jsxs)(“p”,{children:[(0,o.jsx)(eJ.JR,{html:e.message}),”. “,(0,o.jsx)(en.A,{href:e.link,target:”_blank”,children:u[t]})]},`error-${t}`))]})):c=n.structured?(0,o.jsxs)(o.Fragment,{children:[l?(0,o.jsx)(iQ.X,{className:”mr-2″}):(0,o.jsx)(nn.A,{variant:”success”,className:iZ.Label,children:”Beta”}),”This file is used as an Issue Form template.”,” “,(0,o.jsx)(“a”,{href:”https://github.com/orgs/community/discussions/categories/projects-and-issues”,children:”Give Feedback.”})]}):”This file is used as a markdown issue template.”:i&&(c=”Issue form templates are not supported on private repositories.”,t=”warning”,d=”Warning”),(0,o.jsxs)(o.Fragment,{children:[(n||i)&&(0,o.jsx)(iX.l,{title:d,variant:t,className:iZ.Banner,children:c}),a&&(0,o.jsx)(i0,{helpUrl:r})]})}function i0({helpUrl:e}){return(0,o.jsxs)(iX.l,{title:”Warning”,variant:”warning”,className:iZ.Banner,children:[“You are using an old version of issue templates. Please update to the new issue template workflow.”,” “,(0,o.jsx)(en.A,{href:`${e}/articles/about-issue-and-pull-request-templates`,target:”_blank”,inline:!0,children:”Learn more about issue templates.”})]})}try{iJ.displayName||(iJ.displayName=”IssueTemplateBanner”)}catch{}try{i0.displayName||(i0.displayName=”LegacyIssueTemplateBanner”)}catch{}function i1(){let e=(0,s.t)(),t=(0,l.i)(),{refInfo:n,path:i}=(0,_.eu)(),{helpUrl:a}=(0,_.sq)(),{csvError:r,isCodeownersFile:c,publishBannersInfo:{showPublishActionBanner:d,releasePath:u,dismissActionNoticePath:m},discussionTemplate:p,issueTemplate:x,showIssueFormWarning:f,isValidLegacyIssueTemplate:y}=(0,eh.A)(),[b,g]=(0,h.useState)([]),[j,v]=(0,h.useState)(iq.bN.LOADING),N=(0,h.useRef)(0);return(0,h.useEffect)(()=>{if(!e.currentUserCanPush)return;N.current++;let t=async()=>{try{let t=N.current,a=await (0,iq.kz)(e,n,i);if(t(0,iq.Ke)(e))),v(iq.bN.VALIDATED)}else v(iq.bN.ERROR)}catch{v(iq.bN.ERROR)}};c&&t()},[c,e,n,i]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(iU.A,{showPublishActionBanner:d,releasePath:u,dismissActionNoticePath:m}),(0,o.jsx)(iJ,{issueTemplate:x,showIssueFormWarning:f,isValidLegacyIssueTemplate:y,isLoggedIn:!!t,helpUrl:a}),p?.errors&&p.errors.length>0&&(0,o.jsx)(iK,{…p}),(0,o.jsx)(i2,{}),c&&e.currentUserCanPush&&(0,o.jsx)(eG.Provider,{value:b,children:(0,o.jsx)(iq.$4,{errors:b,state:j})}),r&&(0,o.jsx)(i3,{csvError:r})]})}function i2(){let{truncated:e,large:t,image:n,renderedFileInfo:i,rawBlobUrl:a}=(0,eh.A)();return!e||t||n||i?null:(0,o.jsxs)(iP.A,{className:iV.Flash,children:[“This file has been truncated, but you can”,” “,(0,o.jsx)(en.A,{inline:!0,href:a,children:”view the full file”}),”.”]})}function i3({csvError:e}){return(0,o.jsx)(iP.A,{variant:”warning”,className:iV.Flash,children:(0,o.jsx)(eJ.vb,{html:e})})}try{i1.displayName||(i1.displayName=”BlobLowerBanners”)}catch{}try{i2.displayName||(i2.displayName=”TruncatedBanner”)}catch{}try{i3.displayName||(i3.displayName=”CSVErrorBanner”)}catch{}let i4={Box:”BlobLicenseBanner-module__Box–F040L”,Box_1:”BlobLicenseBanner-module__Box_1–NN6Gf”,Box_2:”BlobLicenseBanner-module__Box_2–hiAjc”,Box_3:”BlobLicenseBanner-module__Box_3–pQEZh”,Box_4:”BlobLicenseBanner-module__Box_4–yVICK”,Box_5:”BlobLicenseBanner-module__Box_5–cMmmH”,VerifiedHTMLBox:”BlobLicenseBanner-module__VerifiedHTMLBox–qII3b”,Box_6:”BlobLicenseBanner-module__Box_6–H28JJ”,Box_7:”BlobLicenseBanner-module__Box_7–sz0ej”,Box_8:”BlobLicenseBanner-module__Box_8–cq6OB”,Box_9:”BlobLicenseBanner-module__Box_9–UXpn4″,Octicon:”BlobLicenseBanner-module__Octicon–oXn77″,Box_10:”BlobLicenseBanner-module__Box_10–qbVGR”};function i5(){let{license:e}=(0,nI.Y_)(),t=(0,s.t)(),{helpUrl:n}=(0,_.sq)(),i={permissions:{icon:P.CheckIcon,color:”success.fg”},limitations:{icon:P.XIcon,color:”danger.fg”},conditions:{icon:P.InfoIcon,color:”accent.fg”}};return e?(0,o.jsxs)(“div”,{className:i4.Box,children:[(0,o.jsxs)(“div”,{className:(0,t3.$)(“blob-license-banner-outer”,i4.Box_1),children:[(0,o.jsxs)(“div”,{className:i4.Box_2,children:[(0,o.jsxs)(“div”,{className:i4.Box_3,children:[(0,o.jsx)($.A,{icon:P.LawIcon,size:32}),(0,o.jsxs)(“div”,{className:i4.Box_4,children:[(0,o.jsxs)(“div”,{className:i4.Box_5,children:[`${t.ownerLogin}/${t.name} is licensed under`,” “,e.name.toLowerCase().startsWith(“the “)?””:” the”]}),(0,o.jsx)(“h3”,{children:e.name})]})]}),(0,o.jsx)(eJ.vb,{html:e.description,className:i4.VerifiedHTMLBox})]}),(0,o.jsx)(“div”,{className:i4.Box_6,children:Object.keys(e.rules).map((t,n)=>(0,o.jsxs)(“div”,{className:i4.Box_7,children:[(0,o.jsx)(“h5”,{className:i4.Box_8,children:t.charAt(0).toUpperCase()+t.substring(1)}),e.rules[t].map(e=>(0,o.jsxs)(“div”,{className:i4.Box_9,children:[(0,o.jsx)($.A,{icon:i[t].icon,size:13,sx:{color:i[t].color},className:i4.Octicon}),e.label]},e.tag))]},n))})]}),(0,o.jsxs)(“div”,{className:i4.Box_10,children:[“This is not legal advice.\xa0″,(0,o.jsx)(en.A,{inline:!0,href:`${n}/articles/licensing-a-repository/#disclaimer`,children:”Learn more about repository licenses”})]})]}):null}try{i5.displayName||(i5.displayName=”BlobLicenseBanner”)}catch{}let i6={Flash:”InvalidCitationWarning-module__Flash–k8ISS”};function i7({citationHelpUrl:e}){return(0,o.jsxs)(iP.A,{variant:”warning”,className:i6.Flash,children:[“Your “,(0,o.jsx)(“strong”,{children:”CITATION.cff”}),”file cannot be parsed. Make sure the formatting is correct.”,” “,(0,o.jsx)(en.A,{inline:!0,href:e,children:”Learn more about CITATION files.”})]})}try{i7.displayName||(i7.displayName=”InvalidCitationWarning”)}catch{}let i8={Flash:”OverridingGlobalFundingFileWarning-module__Flash–nU7J4″};function i9({globalPreferredFundingPath:e}){return(0,o.jsxs)(iP.A,{className:i8.Flash,children:[“This file is overriding the organization-wide “,(0,o.jsx)(“code”,{children:”FUNDING.yml”}),”file. Removing “,(0,o.jsx)(“code”,{children:”FUNDING.yml”}),”in this repository will use the organization default.”,(0,o.jsxs)(en.A,{inline:!0,href:e??void 0,children:[” “,”View organization funding file.”]})]})}try{i9.displayName||(i9.displayName=”OverridingGlobalFundingFileWarning”)}catch{}function ae(){let{topBannersInfo:{overridingGlobalFundingFile:e,globalPreferredFundingPath:t,showInvalidCitationWarning:n,citationHelpUrl:i}}=(0,eh.A)(),{showLicenseMeta:a}=(0,nI.Y_)();return(0,o.jsxs)(o.Fragment,{children:[a&&(0,o.jsx)(i5,{}),n&&(0,o.jsx)(i7,{citationHelpUrl:i}),(0,o.jsx)(iz.I6,{}),e&&(0,o.jsx)(i9,{globalPreferredFundingPath:t})]})}try{ae.displayName||(ae.displayName=”BlobMidBanners”)}catch{}let at={Box:”BlobTopBanners-module__Box–g_bGk”};var an=n(29295);let ai={Box:”DependabotConfigurationBanner-module__Box–vpfzX”,Text:”DependabotConfigurationBanner-module__Text–oG7Go”,Text_1:”DependabotConfigurationBanner-module__Text_1–P_iN0″,Box_1:”DependabotConfigurationBanner-module__Box_1–EeKqW”,Button:”DependabotConfigurationBanner-module__Button–N3lHP”};function aa(){let{defaultBranch:e}=(0,s.t)(),{refInfo:{name:t}}=(0,_.eu)(),{dependabotInfo:{showConfigurationBanner:n}}=(0,eh.A)();return n?e===t?(0,o.jsx)(ao,{}):(0,o.jsx)(ar,{}):null}function ao(){let{dependabotInfo:{configFilePath:e,networkDependabotPath:t,dismissConfigurationNoticePath:n,configurationNoticeDismissed:i}}=(0,eh.A)(),a=(0,h.useCallback)(()=>(0,eS.DI)(n,{method:”POST”}),[n]);return i?null:(0,o.jsx)(“div”,{className:ai.Box,children:(0,o.jsx)(an.A,{caret:”top”,open:!0,children:(0,o.jsxs)(an.A.Content,{children:[(0,o.jsx)(“h5″,{className:ai.Text,children:”Dependabot”}),(0,o.jsx)(“p”,{className:ai.Text_1,children:”Dependabot creates pull requests to keep your dependencies secure and up-to-date.”}),(0,o.jsxs)(“p”,{className:ai.Text_1,children:[“You can opt out at any time by removing the “,(0,o.jsx)(“code”,{children:e}),” config file.”]}),(0,o.jsxs)(“div”,{className:ai.Box_1,children:[(0,o.jsx)(nW.Q,{as:”a”,href:t,children:”View update status”}),(0,o.jsx)(nW.Q,{variant:”invisible”,onClick:a,className:ai.Button,children:”Dismiss”})]})]})})})}function ar(){let{defaultBranch:e,name:t,ownerLogin:n}=(0,s.t)(),{path:i}=(0,_.eu)(),a=(0,et.nD_)({owner:n,repo:t,commitish:e,filePath:i});return(0,o.jsxs)(iP.A,{variant:”warning”,children:[(0,o.jsxs)(“h5″,{children:[(0,o.jsx)(P.AlertIcon,{}),”Cannot configure Dependabot from this branch”]}),(0,o.jsxs)(“p”,{children:[“To configure Dependabot, you must use”,” “,(0,o.jsx)(en.A,{inline:!0,href:a,children:”this repository’s default branch”})]})]})}try{aa.displayName||(aa.displayName=”DependabotConfigurationBanner”)}catch{}try{ao.displayName||(ao.displayName=”DefaultBranchDependabotConfigurationBanner”)}catch{}try{ar.displayName||(ar.displayName=”DirectionsForNonDefaultBranch”)}catch{}var as=n(35405);let al={Box:”OrgOnboardingTip-module__Box–Pk3N1″,Box_1:”OrgOnboardingTip-module__Box_1–f_CUO”,Box_2:”OrgOnboardingTip-module__Box_2–ownDi”,Breadcrumbs_Item:”OrgOnboardingTip-module__Breadcrumbs_Item–Fr7wA”,Box_3:”OrgOnboardingTip-module__Box_3–JX0Hy”,VerifiedHTMLBox:”OrgOnboardingTip-module__VerifiedHTMLBox–JF5OH”,Box_4:”OrgOnboardingTip-module__Box_4–geNrU”,Box_5:”OrgOnboardingTip-module__Box_5–_7M4f”,Link:”OrgOnboardingTip-module__Link–VIyoj”,Text:”OrgOnboardingTip-module__Text–Lzw1f”,Box_6:”OrgOnboardingTip-module__Box_6–Wo1hi”,Text_1:”OrgOnboardingTip-module__Text_1–_Ahmq”,Box_7:”OrgOnboardingTip-module__Box_7–taCFv”,Link_1:”OrgOnboardingTip-module__Link_1–Xsk1N”,Octicon:”OrgOnboardingTip-module__Octicon–uIRNM”};function ac({children:e,mediaUrl:t,mediaPreviewSrc:n,iconSvg:i,taskTitle:a,taskPath:r,org:s}){return(0,o.jsxs)(“section”,{className:al.Box,children:[(0,o.jsxs)(“div”,{className:al.Box_1,children:[(0,o.jsx)(ad,{iconSvg:i}),(0,o.jsxs)(“div”,{className:al.Box_2,children:[(0,o.jsxs)(as.A,{children:[(0,o.jsx)(as.A.Item,{href:(0,et.p3r)({owner:s}),children:”Tasks”}),(0,o.jsx)(as.A.Item,{href:r,className:al.Breadcrumbs_Item,children:a})]}),e]})]}),(0,o.jsx)(am,{mediaPreviewSrc:n,mediaUrl:t})]})}function ad({iconSvg:e}){return(0,o.jsxs)(“div”,{className:al.Box_3,children:[(0,o.jsx)(eJ.vb,{html:e,className:al.VerifiedHTMLBox}),(0,o.jsx)(au,{size:6,color:”#6c84e9″,bottom:-7,left:-7}),(0,o.jsx)(au,{size:4,color:”#9e7bff”,top:-4,right:4}),(0,o.jsx)(au,{size:6,color:”#6c84e9″,top:-7,right:-8})]})}function au({size:e,color:t,left:n,right:i,top:a,bottom:r}){return(0,o.jsx)(D.az,{sx:{width:e,height:e,left:`${n}px`,right:`${i}px`,top:`${a}px`,bottom:`${r}px`,backgroundColor:t},className:al.Box_4})}function am({mediaUrl:e,mediaPreviewSrc:t}){return!((eu.cg?.innerWidth??0){location.href=a},children:”Upgrade now”})}try{ax.displayName||(ax.displayName=”PlanSupportBanner”)}catch{}try{af.displayName||(af.displayName=”UpgradeButton”)}catch{}function ay(){let{planSupportInfo:e,topBannersInfo:t}=(0,eh.A)(),{actionsOnboardingTip:n}=t,i=(0,s.t)();return(0,o.jsxs)(“div”,{className:at.Box,children:[(0,o.jsx)(ax,{…e,feature:”codeowners”,featureName:”CODEOWNERS”}),(0,o.jsx)(aa,{}),n&&(0,o.jsx)(ac,{iconSvg:n.iconSvg,mediaPreviewSrc:n.mediaPreviewSrc,mediaUrl:n.mediaUrl,taskTitle:n.taskTitle,taskPath:n.taskPath,org:n.orgName,children:(0,o.jsx)(ah,{owner:i.ownerLogin,repo:i.name})})]})}try{ay.displayName||(ay.displayName=”BlobTopBanners”)}catch{}function ab({payload:e}){return(0,B.Hf)(e)?(0,o.jsx)(ag,{tree:e.tree}):(0,B.mM)(e)?(0,o.jsx)(a_,{blob:e.blob}):null}function ag({tree:e}){return(0,o.jsxs)(iF.X,{payload:e,children:[(0,o.jsx)(iz.I6,{}),(0,o.jsx)(aj,{}),(0,o.jsx)(av,{})]})}function a_({blob:e}){return(0,o.jsxs)(eh.s,{blob:e,children:[(0,o.jsx)(ay,{}),(0,o.jsx)(ae,{}),(0,o.jsx)(i1,{}),(0,o.jsx)(iM,{}),(0,o.jsx)(av,{})]})}function aj(){let{items:e,totalCount:t}=(0,iF.d)(),n=t-e.length;return n>0?(0,o.jsxs)(D.Hx,{variant:”warning”,”data-testid”:”repo-truncation-warning”,sx:{mt:3},children:[“Sorry, we had to truncate this directory to “,e.length.toLocaleString(),” files. “,n.toLocaleString(),” “,1===n?”entry was”:”entries were”,” omitted from the list. Latest commit info may be omitted.”]}):null}function av(){let e=(0,b.x7)(),t=””;for(let n of e)t+=n.message;return(0,eg.kY)(t),(0,o.jsx)(o.Fragment,{children:e.map((e,t)=>(0,o.jsx)(D.Hx,{variant:e.variant,sx:{mt:3},children:e.message},t))})}try{ab.displayName||(ab.displayName=”CodeViewBanners”)}catch{}try{ag.displayName||(ag.displayName=”TreeBanners”)}catch{}try{a_.displayName||(a_.displayName=”BlobBanners”)}catch{}try{aj.displayName||(aj.displayName=”TruncatedTreeBanner”)}catch{}try{av.displayName||(av.displayName=”CodeViewContextBanners”)}catch{}var aN=n(19976),aw=n(81960),ak=n(62138),aC=n(98312),aB=n(98755),aS=n(8934);function aI({diff:e,index:t}){let[n,i]=(0,h.useState)(!1),[a,r]=(0,h.useState)(!1),[s,l]=(0,h.useState)(!1),c=[];for(let t=0;t<5;t++)e.deletions>t?c.push(“deletion”):c.push(“neutral”);return e.diffHTML?(0,o.jsx)(“div”,{id:”readme”,className:”readme prose-diff html-blob blob”,children:(0,o.jsx)(eJ.vb,{html:e.diffHTML,className:”markdown-body container-lg”})}):(0,o.jsxs)(D.az,{sx:{border:”1px solid”,borderColor:”border.default”,borderRadius:”6px”,mt:3},id:`diff-entry-${t}`,children:[(0,o.jsxs)(D.az,{sx:{backgroundColor:”canvas.subtle”,borderBottom:”1px solid”,borderColor:”border.default”,display:”flex”,py:1,px:2,alignItems:”center”,gap:2},children:[(0,o.jsx)(ne.K,{“aria-label”:n?”Expand diff”:”Collapse diff”,icon:n?P.ChevronRightIcon:P.ChevronDownIcon,size:”small”,tooltipDirection:”s”,variant:”invisible”,onClick:()=>i(!n)}),(0,o.jsx)(D.EY,{sx:{color:”fg.muted”},children:e.deletions}),(0,o.jsx)(aN.uP,{squares:c}),(0,o.jsx)(D.N_,{sx:{color:”fg.default”,cursor:”pointer”},underline:!1,href:`#diff-entry-${t}`,children:e.path}),(0,o.jsx)(aB.T,{textToCopy:e.path,ariaLabel:”Copy path to clipboard”})]}),n?null:(0,o.jsx)(D.az,{sx:{px:3*!a,py:4*!a,position:”relative”},tabIndex:-1,children:a?(0,o.jsx)(aS.x,{“data-testid”:”delete-diff-fragment”,src:e.loadDiffPath,onLoad:()=>l(!0),children:!s&&(0,o.jsx)(D.az,{sx:{display:”flex”,alignItems:”center”,justifyContent:”center”,height:”137px”},children:(0,o.jsx)(iy.A,{})})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(aT,{}),(0,o.jsxs)(D.az,{sx:{position:”absolute”,display:”flex”,flexDirection:”column”,alignItems:”center”,justifyContent:”center”,top:0,left:0,height:”100%”,width:”100%”},children:[(0,o.jsx)(D.N_,{onClick:()=>r(!0),sx:{cursor:”pointer”},children:”Load diff”}),”This file was deleted.”]})]})})]})}function aT(){return(0,o.jsx)(D.az,{as:”svg”,”aria-hidden”:”true”,className:”width-full”,viewBox:”0 0 340 84″,xmlns:”http://www.w3.org/2000/svg”,sx:{height:”84″,maxWidth:”340px”},children:(0,o.jsx)(D.az,{as:”path”,className:”js-diff-placeholder”,clipPath:”url(#diff-placeholder)”,d:”M0 0h340v84H0z”,fillRule:”evenodd”,sx:{fill:”canvas.subtle”}})})}try{aI.displayName||(aI.displayName=”DiffEntry”)}catch{}try{aT.displayName||(aT.displayName=”DiffPlaceholderSvg”)}catch{}function aL({deleteInfo:e,webCommitInfo:t}){let{path:n}=(0,_.eu)(),{helpUrl:i}=(0,_.sq)(),a=(0,s.t)();return t.shouldFork||t.shouldUpdate||t.lockedOnMigration?(0,o.jsx)(aC.T,{binary:!1,helpUrl:i,webCommitInfo:t}):(0,o.jsxs)(D.az,{sx:{maxWidth:”1280px”,mx:”auto”},children:[(0,o.jsx)(aw.A,{as:”h1″,className:”sr-only”,children:`Deleting ${e.isBlob?””:”directory “}${a.name}/${n}. Commit changes to save.`}),(0,o.jsx)(aN.nq,{}),t.forkedRepo&&(0,o.jsx)(ak.r,{forkName:t.forkedRepo.name,forkOwner:t.forkedRepo.owner}),e.truncated&&(0,o.jsx)(iP.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.”}),e.diffs.map((e,t)=>(0,o.jsx)(aI,{diff:e,index:t},t))]})}try{aL.displayName||(aL.displayName=”DeleteViewContent”)}catch{}var aA=n(5205),aD=n(79059),aO=n(75202),aR=n(34424),aE=n(83025);function az({openPanel:e,readme:t,setOpenPanel:n,stickyHeaderHeight:i}){let{displayName:a,errorMessage:r,richText:l,headerInfo:c,timedOut:d}=t,{toc:u}=c||{},m=(0,s.t)(),{refInfo:h,path:p}=(0,_.eu)(),x=p&&”/”!==p?`${p}/${a}`:a;return(0,o.jsxs)(D.az,{sx:{minWidth:0,display:”flex”,flexDirection:”row”,justifyContent:”space-between”,gap:3},children:[(0,o.jsxs)(D.az,{id:”readme”,sx:{borderColor:”border.default”,borderWidth:1,borderStyle:”solid”,borderRadius:2,width:”toc”===e?”65%”:”100%”},children:[(0,o.jsxs)(D.az,{sx:{display:”flex”,flexDirection:”row”,alignItems:”center”,gap:2,pr:2,pl:3,py:2,borderBottom:”1px solid”,borderColor:”border.default”},children:[(0,o.jsx)(D.DZ,{as:”h2″,sx:{fontSize:1,flexGrow:1},children:(0,o.jsx)(D.N_,{sx:{color:”fg.default”,”&:hover”:{color:”accent.fg”}},href:”#readme”,children:a})}),h.canEdit&&(0,o.jsx)(aE.l,{editPath:(0,et.IO9)({repo:m,commitish:h.name,action:”edit”,path:x}),editTooltip:”Edit README”}),(0,o.jsx)(io,{toc:u,openPanel:e,setOpenPanel:n,isDirectoryReadme:!0})]}),(0,o.jsx)(aR.e,{richText:l,errorMessage:r,path:x,stickyHeaderHeight:i,timedOut:d})]}),”toc”===e&&(0,o.jsx)(iL.Z,{sx:{height:”fit-content”,width:”35%”},children:(0,o.jsx)(ih.A,{onClose:()=>{n(void 0)},toc:u})})]})}try{az.displayName||(az.displayName=”DirectoryReadmePreview”)}catch{}function aF({showTree:e,treeToggleElement:t}){let n=(0,h.useRef)(null),i=ek(n),a=eC();return(0,o.jsx)(D.az,{className:”react-blob-view-header-sticky”,sx:{…a,zIndex:+!!i},ref:n,children:(0,o.jsx)(D.az,{sx:{display:”flex”,flexDirection:”column”,backgroundColor:”canvas.subtle”,borderBottom:i?”1px solid var(–borderColor-default, var(–color-border-default))”:”none”,overflow:”hidden”},children:(0,o.jsx)(n_,{isStickied:i,showTree:e,treeToggleElement:t})})})}try{aF.displayName||(aF.displayName=”FolderViewHeader”)}catch{}function aP({tree:e,showTree:t,treeToggleElement:n}){let{openPanel:i,setOpenPanel:a}=(0,j.Ak)();return(0,o.jsxs)(iF.X,{payload:e,children:[(0,o.jsx)(el.D,{}),e.showBranchInfobar&&(0,o.jsx)(aO.t,{fallback:(0,o.jsx)(aA.o,{}),children:(0,o.jsx)(aA.k,{})}),(0,o.jsx)(aF,{showTree:t,treeToggleElement:n}),(0,o.jsxs)(D.az,{sx:{display:”flex”,flexDirection:”column”,gap:3},children:[(0,o.jsx)(aD.t,{}),e.readme&&(0,o.jsx)(az,{openPanel:i,setOpenPanel:a,readme:e.readme,stickyHeaderHeight:50})]})]})}try{aP.displayName||(aP.displayName=”FileTreeViewContent”)}catch{}var a$=n(77031);let aM={SplitPageLayout_Content:”CodeView-module__SplitPageLayout_Content–qxR1C”},aH=(0,h.lazy)(()=>Promise.all([n.e(“vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52”),n.e(“vendors-node_modules_github_selector-observer_dist_index_esm_js”),n.e(“vendors-node_modules_tanstack_react-query_build_modern_useQuery_js-node_modules_diff_lib_index_mjs”),n.e(“vendors-node_modules_codemirror_language_dist_index_js”),n.e(“vendors-node_modules_lit-html_lit-html_js”),n.e(“vendors-node_modules_codemirror_autocomplete_dist_index_js-node_modules_codemirror_search_dis-aafe81”),n.e(“vendors-node_modules_buffer_index_js”),n.e(“vendors-node_modules_codemirror_lib_codemirror_js”),n.e(“vendors-node_modules_js-yaml_dist_js-yaml_mjs”),n.e(“vendors-node_modules_github_text-expander-element_dist_index_js”),n.e(“vendors-node_modules_jsonc-parser_lib_esm_main_js”),n.e(“vendors-node_modules_cronstrue_dist_cronstrue_js”),n.e(“vendors-node_modules_codemirror_lint_dist_index_js”),n.e(“vendors-node_modules_github_file-attachment-element_dist_index_js-node_modules_swc_helpers_es-2b8e5c”),n.e(“packages_web-commit-dialog_WebCommitDialog_tsx”),n.e(“app_assets_modules_github_editor_codemirror-linter-util_ts-app_assets_modules_github_editor_y-89a4a6”),n.e(“app_assets_modules_github_editor_yaml-editors_workflow_workflow-rules_ts”),n.e(“app_assets_modules_react-code-view_components_blob-edit_WebCommitDialog_tsx”),n.e(“app_assets_modules_github_editor_yaml-editors_dependabot_dependabot-rules_ts”),n.e(“app_assets_modules_react-code-view_components_blob-edit_BlobEditor_tsx-packages_flash-error_F-707476″)]).then(n.bind(n,97789)));function aW({initialPayload:e}){let t,n=(0,w.P)(e),i=(0,s.t)(),{findFileWorkerPath:a}=(0,_.sq)(),{path:r}=n,l=(0,N.p)(n.refInfo),c=(0,B.di)(n),d=(0,B.mM)(n),p=(0,B.KR)(n),k=(0,B.iS)(n),[S,O]=(0,h.useState)(null),R=(0,nI.U6)(i,l,r,n.error?.httpStatus===404),E=(0,a$.TX)(i,l,r,n.error?.httpStatus===404,d||p?n.blob.rawLines?.length??1e5:1e5),z=h.useRef(null),F=h.useRef(!1),P=h.useRef(!1),$=h.useRef(null),M=h.useRef(null),H=”repos-file-tree”,W=h.useRef(),[G,U]=(0,h.useState)(“”),{toggleFocusedPaneShortcut:V}=(0,v.wk)();(0,T.s)(!1),(0,h.useEffect)(()=>()=>(0,T.s)(!0),[]),(0,L.L)(!0);let q=h.useMemo(()=>(0,C.aO)(n),[n.path,n.refInfo.currentOid]),Y=(0,h.useCallback)(e=>{eI(e,null,null)},[]),{isTreeExpanded:K,collapseTree:Q,expandTree:X,treeToggleElement:Z,treeToggleRef:J,searchBoxRef:ee}=(0,I.qn)(H,W,n.treeExpanded,eg.wQ,Y),et=(0,h.useCallback)(()=>{window.innerWidth{if(!window.location.hash&&window.scrollY>0){let e=document.querySelector(“#StickyHeader”);e&&(e.style.position=”relative”,e.scrollIntoView(),e.style.position=”sticky”)}},[n.path]);let{codeCenterOption:eo}=(0,m.ud)(),er=h.useCallback(()=>{window.innerWidth(function(){let e=document.getElementById(ea),t=document.getElementById(eg.wQ);if(document.activeElement?.id===eg.wQ&&(P.current=!0),S?.contains(document.activeElement)&&!P.current?F.current=!0:z.current?.contains(document.activeElement)&&(F.current=!1),F.current||P.current)if(P.current){let t=$.current||e||S;F.current=!0,P.current=!1,t?.focus()}else{let e=M.current||z.current;$.current=S?.contains(document.activeElement)?document.activeElement:null,F.current=!1,P.current=!1,e?.focus()}else{let e=t||S;M.current=z.current?.contains(document.activeElement)?document.activeElement:null,F.current=!1,e?.focus()}})()})]})]})})})})})}function aG(){let e=(0,k.Z)(),{permalinkShortcut:t}=(0,v.wk)();return e.isCurrentPagePermalink()?(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:t.hotkey,buttonTestLabel:”header-permalink-button”,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{}}):(0,o.jsx)(f._,{buttonFocusId:eg.wQ,buttonHotkey:t.hotkey,buttonTestLabel:”header-permalink-button”,onButtonClick:()=>{let t=e.createPermalink();0>window.location.href.indexOf(t)&&(0,S.kd)(t)}})}try{aH.displayName||(aH.displayName=”BlobEditor”)}catch{}try{aW.displayName||(aW.displayName=”CodeView”)}catch{}try{aG.displayName||(aG.displayName=”PermalinkShortcut”)}catch{}(0,a.o)(“react-code-view”,()=>({App:p,routes:[(0,i.a)({path:”/:owner/:repo/tree/:branch/:path/*”,Component:aW,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/blob/:branch/:path/*”,Component:aW,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/blame/:branch/:path/*”,Component:aW,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/edit/:branch/:path/*”,Component:aW,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/new/:branch/:path/*”,Component:aW,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/new/:branch/*”,Component:aW,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/tree/delete/:branch/:path/*”,Component:aW,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/delete/:branch/:path/*”,Component:aW,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo”,Component:aW,shouldNavigateOnError:!0}),(0,i.a)({path:”/:owner/:repo/tree/:branch/*”,Component:aW,shouldNavigateOnError:!0})]}))},18752:(e,t,n)=>{n.d(t,{f:()=>r,g:()=>o});var i=n(96540);let a=”react_blob_view_scroll_line_into_view”;function o(e){let t=(0,i.useRef)(e);(0,i.useEffect)(()=>{t.current=e},[e]),(0,i.useEffect)(()=>{let e=e=>t.current(e.detail);return window.addEventListener(a,e),()=>{window.removeEventListener(a,e)}},[])}function r(e){window.dispatchEvent(new CustomEvent(a,{detail:e}))}},86131:(e,t,n)=>{n.d(t,{A:()=>o,s:()=>a});let i=!0;function a(e){i=e}function o(){return i}},54030:(e,t,n)=>{n.d(t,{o:()=>u});var i=n(5225),a=n(78314),o=n(25407),r=n(96379),s=n(96540);async function l(e){let t=await (0,r.lS)(e);return t.ok?await t.json():void 0}let c=new Map,d=(0,i.A)(l,{cache:c});function u(e,t,n){let i=(0,a.t)(),[r,l]=(0,s.useState)({list:[],directories:[],loading:!0}),c=(0,o.ClY)({repo:i,commitOid:e,includeDirectories:!n});return(0,s.useEffect)(()=>{let e=!1,n=async()=>{l({list:[],directories:[],loading:!0});let t=await d(c);if(e)return;let n=t?.paths||[],i=t?.directories||[];l({list:n.concat(i).sort(),directories:i,error:!t})};return t&&n(),function(){e=!0}},[c,t,n]),r}},64642:(e,t,n)=>{n.d(t,{j:()=>r});var i=n(5225),a=n(91385);let o=(0,i.A)(a.fN);function r({data:e}){let{query:t,baseList:n,startTime:i}=e,r=t.replaceAll(“\\”,””);return{query:t,list:n.filter(e=>{var t,n;return t=e,””===(n=r)||(0,a.qA)(n,t)&&o(n,t)>0}).sort((e,t)=>o(r,t)-o(r,e)),baseCount:n.length,startTime:i}}},65787:(e,t,n)=>{n.d(t,{U:()=>o});let i=e=>{let t=getComputedStyle(e,null);return[“overflow”,”overflow-y”,”overflow-x”].some(e=>{let n=t.getPropertyValue(e);return”auto”===n||”scroll”===n})},a=(e,t)=>e&&null!==e.parentNode?a(e.parentNode,t.concat([e])):t;function o(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(let t of a(e.parentNode,[]))if((t instanceof HTMLElement||t instanceof SVGElement)&&i(t))return t;return document.scrollingElement||document.documentElement}}},29731:(e,t,n)=>{n.d(t,{G:()=>i});let i=e=>({})},45385:(e,t,n)=>{n.d(t,{u:()=>r});var i=n(25407),a=n(96379),o=n(96540);function r(e,t,n,r){let[s,l]=(0,o.useState)({loading:!0}),c=t&&e&&n&&r?(0,i.IO9)({repo:{name:t,ownerLogin:e},commitish:n,action:”file-contributors”,path:r}):null;return(0,o.useEffect)(()=>{if(!c)return;let e=!1;return(async()=>{l({loading:!0});let t=await (0,a.lS)(c);if(!e)try{t.ok?l({contributors:await t.json()}):l({error:!0})}catch{l({error:!0})}})(),function(){e=!0}},[c]),s}},70843:(e,t,n)=>{n.d(t,{L:()=>a});var i=n(96540);function a(e){(0,i.useEffect)(()=>{if(!e)return;let t=document.querySelector(“.footer”);if(t)return t.hidden=!0,()=>{t.hidden=!1}},[e])}},40023:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(74848),a=n(21998),o=n(34164);let r={Box:”Panel-module__Box–lC3LD”},s=({children:e,sx:t,className:n,…s})=>(0,i.jsx)(a.az,{sx:t,className:(0,o.$)(r.Box,n),…s,children:e});try{s.displayName||(s.displayName=”Panel”)}catch{}},20265:(e,t,n)=>{n.d(t,{f:()=>r});var i=n(74848),a=n(69726),o=n(21998);let r=()=>(0,i.jsx)(o.az,{sx:{display:”flex”,flexDirection:”column”,alignItems:”center”,py:3},children:(0,i.jsx)(a.A,{“aria-label”:”Loading”})});try{r.displayName||(r.displayName=”LoadingFallback”)}catch{}},98312:(e,t,n)=>{n.d(t,{T:()=>u});var i=n(74848),a=n(71315),o=n(10925),r=n(38621),s=n(21373),l=n(1805),c=n(10095);let d={Box:”EditIssues-module__Box–fgd2d”,Octicon:”EditIssues-module__Octicon–LlC7t”,Text:”EditIssues-module__Text–zkCQm”,Text_1:”EditIssues-module__Text_1–tjv7I”};function u({binary:e,helpUrl:t,webCommitInfo:n}){let{shouldFork:u,lockedOnMigration:m,shouldUpdate:h,userOverRepositoryLimit:p}=n,x=a.fV.pathname;x.endsWith(“/”)&&(x=x.slice(0,-1));let f=x+a.fV.search,y=(0,o.H)(f,”post”),b=m?{message:”This repository is currently being migrated.”,description:”Sorry, you\u2019re not able to edit this repository while the migration is in progress.”,icon:r.LockIcon}:u?p?{message:”You are over your repository limit”,description:”Sorry, you\u2019re not able to fork this repository.”,icon:r.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:r.GitBranchIcon}:h?{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:r.AlertIcon}:e?{message:”Binary file content is not editable.”,description:”But you can still rename or move it.”,icon:r.PencilIcon}:null;return b?(0,i.jsxs)(“div”,{className:d.Box,children:[(0,i.jsx)(c.A,{icon:b.icon,size:”medium”,className:d.Octicon}),(0,i.jsx)(“h3”,{className:d.Text,children:b.message}),(0,i.jsx)(“span”,{className:d.Text_1,children:b.description}),(u&&!p||h)&&(0,i.jsxs)(“form”,{“data-turbo”:”false”,method:”post”,action:f,”data-testid”:”edit-issues-form”,children:[(0,i.jsx)(“input”,{hidden:!0,name:”authenticity_token”,value:y,readOnly:!0}),(0,i.jsx)(s.Q,{type:”submit”,variant:”primary”,children:u?”Fork this repository”:”Update your fork”})]}),u&&p?(0,i.jsx)(l.A,{href:`${t}/repositories/creating-and-managing-repositories/repository-limits`,children:”Learn more repository limits”}):(0,i.jsx)(l.A,{href:`${t}/articles/fork-a-repo`,children:”Learn more about forks”})]}):null}try{u.displayName||(u.displayName=”EditIssues”)}catch{}},62138:(e,t,n)=>{n.d(t,{r:()=>r});var i=n(74848),a=n(72511);let o={Flash:”EditingForkBanner-module__Flash–BmTUB”};function r({forkName:e,forkOwner:t}){return(0,i.jsxs)(a.A,{“aria-live”:”polite”,className:o.Flash,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 “,(0,i.jsx)(“b”,{children:`${t}/${e}`}),”, so you can send a pull request.”]})}try{r.displayName||(r.displayName=”EditingForkBanner”)}catch{}},27942:(e,t,n)=>{n.d(t,{a:()=>o,t:()=>r});var i=n(74848),a=n(21998);let o=”find-result-marks-container”;function r(){return(0,i.jsx)(a.az,{sx:{position:”fixed”,top:0,right:0,height:”100%”,width:”15px”,transition:”transform 0.3s”,”&:hover”:{transform:”scaleX(1.5)”},zIndex:1},id:o})}try{r.displayName||(r.displayName=”ScrollMarksContainer”)}catch{}},39803:(e,t,n)=>{n.d(t,{Q:()=>d,w:()=>h});var i=n(74848),a=n(98755),o=n(25407),r=n(66108),s=n(41462),l=n(21998),c=n(96540);function d({id:e=”breadcrumb”,fileNameId:t,path:n,repo:o,commitish:r,isFolder:d,fontSize:x,showCopyPathButton:f}){let{fileName:y,segments:b}=(0,c.useMemo)(()=>(function(e){let t=e.split(“/”);return{fileName:t.pop(),segments:t.map((e,n)=>({directoryName:e,directoryPath:t.slice(0,n+1).join(“/”)}))}})(n),[n]),g=!n,_=d&&”/”===n;return(0,i.jsxs)(l.az,{sx:{display:”flex”,flexDirection:”row”,fontSize:x??2,minWidth:0,flexShrink:1,flexWrap:”wrap”,maxWidth:”100%”,alignItems:”center”},children:[(0,i.jsxs)(l.az,{as:”nav”,”data-testid”:”breadcrumbs”,”aria-labelledby”:`${e}-heading`,id:e,sx:{maxWidth:”100%”},children:[(0,i.jsx)(s.W,{id:`${e}-heading`,as:”h2″,text:”Breadcrumbs”}),(0,i.jsxs)(l.az,{as:”ol”,sx:{maxWidth:”100%”,listStyle:”none”,display:”inline-block”},children:[(0,i.jsxs)(l.az,{as:”li”,sx:{display:”inline-block”,maxWidth:”100%”},children:[(0,i.jsx)(u,{repo:o,commitish:r}),_&&(0,i.jsx)(s.W,{as:”h1″,text:o.name})]}),b.map(({directoryName:e,directoryPath:t})=>(0,i.jsxs)(l.az,{as:”li”,sx:{display:”inline-block”,maxWidth:”100%”},children:[(0,i.jsx)(h,{fontSize:x}),e?(0,i.jsx)(m,{path:t,directoryName:e,repo:o,commitish:r}):null]},t))]})]}),y&&(0,i.jsxs)(l.az,{“data-testid”:”breadcrumbs-filename”,sx:{display:”inline-block”,maxWidth:”100%”},children:[(0,i.jsx)(h,{fontSize:x}),(0,i.jsx)(p,{value:y,id:t,fontSize:x}),!g&&d&&(0,i.jsx)(h,{})]},y),f&&(0,i.jsx)(a.T,{ariaLabel:”Copy path”,textToCopy:n,tooltipProps:{direction:”nw”},size:”small”,className:”ml-2″})]})}function u({repo:e,commitish:t}){return(0,i.jsx)(l.N_,{as:r.N,sx:{fontWeight:”bold”},to:(0,o.IO9)({repo:e,commitish:t,action:”tree”}),”data-testid”:”breadcrumbs-repo-link”,reloadDocument:!0,children:e.name})}function m({directoryName:e,path:t,repo:n,commitish:a}){return(0,i.jsx)(l.N_,{as:r.N,to:(0,o.IO9)({repo:n,commitish:a,path:t,action:”tree”}),sx:{fontWeight:400},children:e})}function h({fontSize:e}){return(0,i.jsx)(l.EY,{sx:{px:1,fontWeight:400,color:”fg.muted”,fontSize:e??2},”aria-hidden”:”true”,children:”/”})}function p({value:e,id:t,fontSize:n}){return(0,i.jsx)(l.DZ,{as:”h1″,tabIndex:-1,sx:{fontWeight:600,display:”inline-block”,maxWidth:”100%”,fontSize:n??2},id:t,children:e})}try{d.displayName||(d.displayName=”Breadcrumb”)}catch{}try{u.displayName||(u.displayName=”RepoLink”)}catch{}try{m.displayName||(m.displayName=”DirectoryLink”)}catch{}try{h.displayName||(h.displayName=”Separator”)}catch{}try{p.displayName||(p.displayName=”FileName”)}catch{}},66561:(e,t,n)=>{n.d(t,{E:()=>g});var i=n(74848),a=n(78314),o=n(1868),r=n(29731),s=n(30459),l=n(96379),c=n(38621),d=n(73077),u=n(31604),m=n(29295),h=n(21998),p=n(96540),x=n(35898);let f={PopoverContent:”CopilotPopover-module__PopoverContent–vIHIX”},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.`},b=({featureRequestInfo:e,inProgress:t,toggleFeatureRequest:n,requested:a})=>e?.showFeatureRequest?a?(0,i.jsx)(o.c9,{inProgress:t,toggleFeatureRequest:n}):(0,i.jsx)(o.iU,{inProgress:t,toggleFeatureRequest:n,featureName:e?.featureName}):null,g=({view:e,copilotInfo:t,className:n})=>{let{documentationUrl:g,notices:_,userAccess:j}=t??{},{business:v,orgHasCFBAccess:N,userHasCFIAccess:w,userHasOrgs:k,userIsOrgAdmin:C,userIsOrgMember:B,featureRequestInfo:S}=j??{},{codeViewPopover:I}=_??{},{sendClickAnalyticsEvent:T}=(0,s.S)(),L=(0,x.i)(),{isOrgOwned:A,ownerLogin:D}=(0,a.t)(),{inProgress:O,requested:R,dismissed:E,dismissedAt:z,toggleFeatureRequest:F}=(0,o.tV)(S),[P,$]=(0,p.useState)(!1),[M,H]=(0,p.useState)(!1),W=(0,p.useCallback)(()=>$(!0),[$]),G=(0,p.useCallback)(()=>$(!1),[$]),U=(0,p.useCallback)(()=>j&&A&&B&&!C&&(!N||w)?”Your organization can pay for GitHub Copilot”:”Code 55% faster with GitHub Copilot”,[N,A,j,w,C,B]),V=(t,n)=>{T({category:”copilot_popover_code_view”,action:t,label:`ref_cta:${n};ref_loc:code_view_${e}`})},q=()=>{let e=j?.userHasOrgs??!1;T({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”})};return M||!t?null:(0,i.jsx)(“div”,{className:n,children:(0,i.jsx)(u.T,{onOpen:W,onClose:G,open:P,overlayProps:{role:”dialog”,style:{overflow:”inherit”}},focusZoneSettings:{disabled:!0},renderAnchor:t=>(0,i.jsx)(h.$n,{…t,…(0,r.G)(“copilot-popover-button”),leadingVisual:c.CopilotIcon,”aria-label”:U(),onClick:()=>{$(!P),L&&T({category:”copilot_popover_code_view”,action:`click_to_open_popover_${e}`,label:`ref_cta:open_copilot_popover;owner:${D};relationship:${L&&D===L.login?”owner”:C?”admin”:B?”member”:”personal”}`})},size:”small”,sx:{color:”fg.default”,display:[“none”,”none”,”none”,”none”,”block”]},variant:”invisible”}),children:(0,i.jsx)(m.A,{“aria-label”:”GitHub Copilot”,open:P,…(0,r.G)(“copilot-popover-content”),caret:”top”,children:(0,i.jsxs)(m.A.Content,{className:f.PopoverContent,children:[(0,i.jsx)(h.DZ,{as:”h2″,sx:{fontSize:1,fontWeight:”bold”,pb:3},children:”Code 55% faster with GitHub Copilot”}),(0,i.jsxs)(h.az,{sx:{fontSize:1,fontWeight:”normal”,pb:3},children:[(0,i.jsx)(“span”,{…(0,r.G)(“copilot-popover-body-text”),children:(()=>{if(E)return””;if(j&&A){if(C)return y.ORG_ADMIN;else if(B&&w)return y.ORG_MEMBER}return y.STANDARD})()}),E?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(“p”,{children:[“Your request for Copilot Business was declined by an admin on “,z,”.”]}),(0,i.jsxs)(“p”,{className:”mb-0″,children:[(0,i.jsx)(h.N_,{…(0,r.G)(“contact-admin-link”),”aria-label”:”Click this link to contact your admin.”,target:”_blank”,href:`/orgs/${D}/people?query=role:owner`,onClick:()=>q(),children:”Contact your admin”}),””,” for more details around their decision.”]})]}):(0,i.jsx)(h.N_,{…(0,r.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:g,onClick:()=>q(),sx:{marginLeft:”8px”},children:”Learn more”})]}),(0,i.jsxs)(h.az,{sx:{alignItems:”center”,display:”flex”,flexDirection:”row”},children:[v||w||A&&(!A||B)?B&&!N&&C?(0,i.jsx)(d.z,{type:”button”,href:`/github-copilot/business_signup/organization/payment?org=${D}`,onClick:()=>V(“click_to_buy_copilot_for_business”,”get_github_copilot”),children:”Get GitHub Copilot”}):S&&!E?(0,i.jsx)(b,{requested:R,featureRequestInfo:S,inProgress:O,toggleFeatureRequest:F}):null:k?(0,i.jsx)(d.z,{type:”button”,href:”/settings/copilot”,onClick:()=>V(“click_to_go_to_copilot_settings”,”get_github_copilot”),children:”Get GitHub Copilot”}):(0,i.jsx)(d.z,{type:”button”,href:”/github-copilot/signup”,onClick:()=>V(“click_to_go_to_copilot_trial_signup”,”start_a_free_trial”),children:”Start a free trial”}),(0,i.jsx)(h.N_,{…(0,r.G)(“copilot-popover-dismiss-button”),onClick:()=>{I&&((0,l.DI)(I.dismissPath,{method:B?”DELETE”:”POST”}),(()=>{let t=`${A?”org_”:””}code_view_${e}${C?”_org_admin”:””}`;T({category:”copilot_popover_code_view”,action:”click_to_dismiss_copilot_popover_forever”,label:`ref_cta:dont_show_again;ref_loc:${t}`})})(),H(!0))},sx:{cursor:”pointer”,fontSize:1,textDecorationLine:”none”,marginLeft:E?0:”16px”},children:”Don’t show again”})]})]})})})})};try{b.displayName||(b.displayName=”FeatureRequest”)}catch{}try{g.displayName||(g.displayName=”CopilotPopover”)}catch{}},1868:(e,t,n)=>{n.d(t,{c9:()=>b,_$:()=>f,iU:()=>y,tV:()=>x});var i=n(74848),a=n(21373),o=n(1805),r=n(10095),s=n(38621),l=n(29731),c=n(30459),d=n(96540),u=n(43258),m=n(96379);let h=async(e,t,n)=>{try{return(await (0,m.DI)(e,{method:t,body:n})).ok}catch{return!1}},p=e=>{let t=new FormData;return t.append(“feature”,e),t};function x(e){let{alreadyRequested:t=!1,dismissed:n=!1,dismissedAt:i=””,featureName:a=””,requestPath:o=””}=e??{},[r,s]=(0,d.useState)(!1),[l,c]=(0,d.useState)(t),{addToast:m}=(0,u.Y6)(),x=async()=>{s(!0),await (l?(e,t)=>h(e,”DELETE”,p(t)):(e,t)=>h(e,”POST”,p(t)))(o,a)?c(!l):m({type:”error”,message:”Something went wrong. Please try again later.”}),s(!1)};return{inProgress:r,requested:l,dismissed:n,dismissedAt:i,toggleFeatureRequest:x}}function f({featureRequestInfo:e,learnMorePath:t,requestMessage:n,requestedMessage:a}){let{inProgress:o,requested:r,toggleFeatureRequest:s}=x(e);return e.showFeatureRequest?r?(0,i.jsx)(b,{inProgress:o,toggleFeatureRequest:s,requestedMessage:a}):(0,i.jsx)(y,{inProgress:o,toggleFeatureRequest:s,isEnterpriseRequest:e.isEnterpriseRequest,featureName:e.featureName,billingEntityId:e.billingEntityId,learnMorePath:t,requestMessage:n}):null}let y=({inProgress:e,toggleFeatureRequest:t,billingEntityId:n=””,isEnterpriseRequest:a=!1,featureName:o,learnMorePath:r,requestMessage:s})=>{let{sendClickAnalyticsEvent:l}=(0,c.S)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{onClick:()=>{t();let e=a&&n?`ref_cta:ask_enterprise_owners_for_access;ref_loc:${o};enterprise_id:${n};`:`ref_cta:ask_admin_for_access;ref_loc:${o};`;l({category:”member_feature_request”,action:`action.${o}`,label:e})},inProgress:e,isEnterpriseRequest:a}),s&&(0,i.jsx)(j,{message:s}),r&&(0,i.jsx)(_,{onClick:()=>{l({category:”suggestion”,action:”click_to_read_docs”,label:`ref_cta:learn_more;ref_loc:${o};`})},path:r})]})},b=({inProgress:e,toggleFeatureRequest:t,requestedMessage:n})=>(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(v,{message:n}),(0,i.jsx)(N,{onClick:t,inProgress:e})]}),g=({onClick:e,inProgress:t,isEnterpriseRequest:n})=>(0,i.jsx)(a.Q,{onClick:e,variant:”primary”,disabled:t,…(0,l.G)(“feature-request-request-button”),children:t?”Requesting…”:n?”Ask enterprise owners for access”:”Ask admin for access”}),_=({onClick:e,path:t})=>(0,i.jsx)(o.A,{href:t,onClick:e,…(0,l.G)(“feature-request-learn-more-link”),children:”Learn more”}),j=({message:e})=>(0,i.jsx)(“span”,{children:e}),v=({message:e})=>(0,i.jsxs)(“span”,{className:”d-inline-block color-fg-subtle mr-1″,children:[(0,i.jsx)(r.A,{icon:s.CheckIcon}),e]}),N=({onClick:e,inProgress:t})=>(0,i.jsx)(o.A,{className:”color-fg-danger text-semibold”,as:”button”,onClick:e,disabled:t,…(0,l.G)(“feature-request-cancel-link”),children:t?”Cancelling…”:”Remove request”});try{f.displayName||(f.displayName=”FeatureRequest”)}catch{}try{y.displayName||(y.displayName=”RequestFeature”)}catch{}try{b.displayName||(b.displayName=”CancelFeatureRequest”)}catch{}try{g.displayName||(g.displayName=”RequestCTA”)}catch{}try{_.displayName||(_.displayName=”LearnMore”)}catch{}try{j.displayName||(j.displayName=”RequestMessage”)}catch{}try{v.displayName||(v.displayName=”RequestedMessage”)}catch{}try{N.displayName||(N.displayName=”RemoveRequestCTA”)}catch{}},8934:(e,t,n)=>{n.d(t,{x:()=>l});var i=n(74848),a=n(21728),o=n(13523),r=n(96540),s=n(54571);let l=(0,r.forwardRef)(function(e,t){let n,r,l,d,u,m,h=(0,a.c)(13);h[0]!==e?({children:n,src:l,…r}=e,h[0]=e,h[1]=n,h[2]=r,h[3]=l):(n=h[1],r=h[2],l=h[3]),h[4]===Symbol.for(“react.memo_cache_sentinel”)?(d=[],h[4]=d):d=h[4];let[p]=(0,s.I)(c,!0,d);return h[5]!==p||h[6]!==l?(u=p?{}:{src:l,”data-nonce”:(0,o.M1)()},h[5]=p,h[6]=l,h[7]=u):u=h[7],h[8]!==n||h[9]!==r||h[10]!==t||h[11]!==u?(m=(0,i.jsx)(“include-fragment”,{…r,ref:t,…u,children:n}),h[8]=n,h[9]=r,h[10]=t,h[11]=u,h[12]=m):m=h[12],m});try{l.displayName||(l.displayName=”IncludeFragment”)}catch{}function c(){return!1}},10242:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(74848),a=n(1805);let o={link:”FeedbackLink-module__link–Ga4DP”},r=({feedbackUrl:e})=>(0,i.jsx)(a.A,{className:o.link,href:e,children:”Give feedback”});try{r.displayName||(r.displayName=”FeedbackLink”)}catch{}},84174:(e,t,n)=>{n.d(t,{V:()=>o});var i=n(74848),a=n(46251);let o=({label:e,link:t,className:n})=>t?(0,i.jsxs)(a.B,{direction:”horizontal”,gap:”condensed”,align:”baseline”,className:n,children:[e,” “,t]}):n?(0,i.jsx)(“span”,{className:n,children:e}):(0,i.jsx)(i.Fragment,{children:e});try{o.displayName||(o.displayName=”LabelWithLink”)}catch{}},25556:(e,t,n)=>{n.d(t,{m:()=>x});var i=n(74848),a=n(11683),o=n(96540),r=n(56149),s=n(21998),l=n(34164);let c=n(38267).Ay.span.withConfig({displayName:”ControlledTooltip__TooltipBase”,componentId:”sc-a45d872d-0″})([“&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 “,”;-webkit-font-smoothing:subpixel-antialiased;color:”,”;text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(data-visible-text);background:”,”;border-radius:”,”;opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&.tooltipped-open,&:hover,&:active,&:focus{&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0s;}}&.tooltipped-no-delay.tooltipped-open,&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus{&::after{animation-delay:0s;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-“,”;}}&.tooltipped-sw::after{margin-right:-“,”;}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-“,”;}}&.tooltipped-nw::after{margin-right:-“,”;}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}”,”;”],(0,s.yB)(“fonts.normal”),(0,s.yB)(“colors.fg.onEmphasis”),(0,s.yB)(“colors.neutral.emphasisPlus”),(0,s.yB)(“radii.2”),(0,s.yB)(“space.3”),(0,s.yB)(“space.3”),(0,s.yB)(“space.3”),(0,s.yB)(“space.3″),s.sx),d=()=>()=>void 0,u=()=>!1,m=()=>!0,h=(0,o.forwardRef)(function({direction:e=”n”,className:t,text:n,noDelay:a,align:s,wrap:h,open:p=!1,portalProps:x={},…f},y){let b=(0,o.useSyncExternalStore)(d,m,u),g=(0,l.$)(t,`tooltipped-${e}`,s&&`tooltipped-align-${s}-2`,a&&”tooltipped-no-delay”,h&&”tooltipped-multiline”,p&&”tooltipped-open”);return b?(0,i.jsx)(r.ZL,{…x,children:(0,i.jsx)(c,{ref:y,role:”tooltip”,”aria-label”:n,”data-visible-text”:n||f[“aria-label”],…f,sx:{position:”fixed”,zIndex:1,…f.sx},className:g})}):null});try{h.displayName||(h.displayName=”ControlledTooltip”)}catch{}var p=n(65787);let x=(0,o.forwardRef)(function({contentRef:e,open:t,anchoredPositionAlignment:n,anchorSide:r,anchorOffset:s,alignmentOffset:l,allowOutOfBounds:c,…d},u){let m=(0,o.useRef)(null);(0,o.useImperativeHandle)(u,()=>m.current);let x=(0,o.useRef)({left:0,top:0}),f=(0,o.useSyncExternalStore)((0,o.useCallback)(n=>{if(!m.current||!e.current||!t)return()=>void 0;let i=(0,p.U)(e.current);return i?.addEventListener(“scroll”,n),()=>{i?.removeEventListener(“scroll”,n)}},[e,t]),(0,o.useCallback)(()=>{if(!m.current||!e.current)return x.current;let t=(0,a.uG)(m.current,e.current,{align:n??”center”,side:r??”outside-top”,alignmentOffset:l??0,anchorOffset:s??0,allowOutOfBounds:c});return(t.left!==x.current.left||t.top!==x.current.top)&&(x.current=t),x.current},[e,l,s,n,r,c]),(0,o.useCallback)(()=>x.current,[]));return(0,i.jsx)(h,{…d,ref:m,open:t,style:{position:”absolute”,…f,…d.style}})});try{x.displayName||(x.displayName=”PortalTooltip”)}catch{}}},e=>{e.O(0,[“primer-react”,”react-core”,”react-lib”,”octicons-react”,”vendors-node_modules_oddbird_popover-polyfill_dist_popover-fn_js”,”vendors-node_modules_stacktrace-parser_dist_stack-trace-parser_esm_js-node_modules_github_bro-2f4e04″,”vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-1fff13″,”vendors-node_modules_tanstack_query-core_build_modern_mutation_js-node_modules_tanstack_query-9bf7e4″,”vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_github_hydro-analytics-c-c228f9″,”vendors-node_modules_swc_helpers_esm__class_private_method_get_js-node_modules_swc_helpers_es-d6b1a6″,”vendors-node_modules_primer_behaviors_dist_esm_index_mjs”,”vendors-node_modules_dompurify_dist_purify_es_mjs”,”vendors-node_modules_github_relative-time-element_dist_index_js”,”vendors-node_modules_lodash-es__Stack_js-node_modules_lodash-es__Uint8Array_js-node_modules_l-4faaa6″,”vendors-node_modules_github_hydro-analytics-client_dist_analytics-client_js-node_modules_gith-c7919d”,”vendors-node_modules_tanstack_react-virtual_dist_esm_index_js”,”vendors-node_modules_github_catalyst_lib_index_js-node_modules_primer_styled-react_dist_index-d380a0″,”vendors-node_modules_focus-visible_dist_focus-visible_js-node_modules_fzy_js_index_js-node_mo-3ac6ae”,”packages_document-metadata_document-metadata_ts-packages_failbot_failbot_ts”,”packages_paths_index_ts”,”packages_fetch-headers_fetch-headers_ts-packages_history_history_ts-packages_promise-with-res-c5198c”,”packages_ref-selector_RefSelector_tsx”,”packages_commit-attribution_index_ts-packages_commit-checks-status_index_ts-packages_current–18e2dc”,”packages_code-view-shared_hooks_use-canonical-object_ts-packages_code-view-shared_hooks_use-f-37800a”,”packages_app-uuid_app-uuid_ts-packages_repos-file-tree-view_repos-file-tree-view_ts”,”app_assets_modules_react-code-view_utilities_lines_ts”,”packages_code-view-shared_utilities_web-worker_ts-packages_code-view-shared_worker-jobs_debou-1b7752″,”packages_code-nav_code-nav_ts-packages_filter-sort_filter-sort_ts-packages_fuzzy-filter_fuzzy-03fd45″],()=>e(e.s=1476)),e.O()}]); //# sourceMappingURL=react-code-view-65b3e688eea6.js.map