performance.mark("js-parse-end:54709-d12bc8cff82dc5d7.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["54709"],{76071(e,t,n){n.d(t,{A:()=>a});let a={linkButton:"LinkButton-module__linkButton__nFnov"}},95136(e,t,n){n.d(t,{y:()=>i});var a=n(74848),r=n(16522),l=n(8470);function i(e){let t,n,i=(0,r.c)(7),{children:o,appName:s,category:c,metadata:d}=e;i[0]!==s||i[1]!==c||i[2]!==d?(t={appName:s,category:c,metadata:d},i[0]=s,i[1]=c,i[2]=d,i[3]=t):t=i[3];let m=t;return i[4]!==o||i[5]!==m?(n=(0,a.jsx)(l.I,{value:m,children:o}),i[4]=o,i[5]=m,i[6]=n):n=i[6],n}i.displayName="AnalyticsProvider"},85190(e,t,n){n.d(t,{A:()=>i});var a=n(74848),r=n(16522);function l(e){let t,n,l,i,o,s,c,d,m,u,h,f,x=(0,r.c)(26);if(x[0]!==e){let{size:a,as:r,icon:d,bg:m,"aria-label":u,style:h,className:f,...p}=e;c=a,t=d,l=m,n=u,s=h,i=f,o=p,x[0]=e,x[1]=t,x[2]=n,x[3]=l,x[4]=i,x[5]=o,x[6]=s,x[7]=c}else t=x[1],n=x[2],l=x[3],i=x[4],o=x[5],s=x[6],c=x[7];let p=void 0===c?32:c;return x[8]!==l||x[9]!==p?(d={backgroundColor:l,overflow:"hidden",borderWidth:0,borderRadius:"50%",borderStyle:"solid",borderColor:"var(--borderColor-default)",width:p,height:p},x[8]=l,x[9]=p,x[10]=d):d=x[10],x[11]!==p||x[12]!==s?(m={display:"flex",width:p,height:p,alignItems:"center",justifyContent:"center",...s},x[11]=p,x[12]=s,x[13]=m):m=x[13],x[14]!==t||x[15]!==n||x[16]!==p?(u=(0,a.jsx)(t,{size:p,"aria-label":n}),x[14]=t,x[15]=n,x[16]=p,x[17]=u):u=x[17],x[18]!==i||x[19]!==o||x[20]!==m||x[21]!==u?(h=(0,a.jsx)("div",{style:m,className:i,...o,children:u}),x[18]=i,x[19]=o,x[20]=m,x[21]=u,x[22]=h):h=x[22],x[23]!==d||x[24]!==h?(f=(0,a.jsx)("div",{style:d,children:h}),x[23]=d,x[24]=h,x[25]=f):f=x[25],f}l.displayName="CircleOcticon";let i=l},67070(e,t,n){n.d(t,{L:()=>j});var a=n(74848),r=n(16522),l=n(54242),i=n(23666),o=n(77236),s=n(14350),c=n(38621),d=n(56149),m=n(67323),u=n(21373),h=n(18990),f=n(96540),x=n(56792),p=n(31595),y=n(68541),b=n(7231);let _="add-file-dropdown-portal-root";function j(e){let t,n,j,g,N,v,C,w,k,S,T,A,B,L,I,R,D=(0,r.c)(36),{useDynamicSizing:E}=e,O=(0,p.l)(),F=(0,y.z)(),{canEdit:P}=(0,x.M)(),H=(0,l.t)(),{sendRepoClickEvent:$}=(0,b.T)(),M=(0,f.useRef)(null);if(D[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{M.current&&(0,d.cw)(M.current,_)},D[0]=t):t=D[0],(0,f.useEffect)(t),!P)return null;D[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(s.W,{as:"h2",text:"Add file"}),D[1]=n):n=D[1];let z=E?"react-directory-add-file-button":void 0;return D[2]===Symbol.for("react.memo_cache_sentinel")?(j=(0,a.jsx)(c.TriangleDownIcon,{}),D[2]=j):j=D[2],D[3]!==z?(g=(0,a.jsxs)("span",{className:z,children:["Add file",j]}),D[3]=z,D[4]=g):g=D[4],D[5]!==E?(N=E&&(0,a.jsx)(c.PlusIcon,{className:"react-directory-add-file-icon"}),D[5]=E,D[6]=N):N=D[6],D[7]!==g||D[8]!==N?(v=(0,a.jsx)(m.W.Anchor,{children:(0,a.jsxs)(u.Q,{"aria-label":"Add file",children:[g,N]})}),D[7]=g,D[8]=N,D[9]=v):v=D[9],D[10]!==$?(C=()=>$("NEW_FILE_BUTTON"),D[10]=$,D[11]=C):C=D[11],D[12]!==O||D[13]!==F.name||D[14]!==H?(w=(0,i.IO9)({repo:H,path:O,commitish:F.name,action:"new"}),D[12]=O,D[13]=F.name,D[14]=H,D[15]=w):w=D[15],D[16]===Symbol.for("react.memo_cache_sentinel")?(k=(0,a.jsx)(h.l.LeadingVisual,{children:(0,a.jsx)(c.PlusIcon,{})}),D[16]=k):k=D[16],D[17]!==C||D[18]!==w?(S=(0,a.jsxs)(h.l.LinkItem,{as:o.N,onClick:C,to:w,children:[k,"Create new file"]}),D[17]=C,D[18]=w,D[19]=S):S=D[19],D[20]!==$?(T=()=>$("UPLOAD_FILES_BUTTON"),D[20]=$,D[21]=T):T=D[21],D[22]!==O||D[23]!==F.name||D[24]!==H?(A=(0,i.IO9)({repo:H,path:O,commitish:F.name,action:"upload"}),D[22]=O,D[23]=F.name,D[24]=H,D[25]=A):A=D[25],D[26]===Symbol.for("react.memo_cache_sentinel")?(B=(0,a.jsx)(h.l.LeadingVisual,{children:(0,a.jsx)(c.UploadIcon,{})}),D[26]=B):B=D[26],D[27]!==T||D[28]!==A?(L=(0,a.jsxs)(h.l.LinkItem,{onClick:T,href:A,children:[B,"Upload files"]}),D[27]=T,D[28]=A,D[29]=L):L=D[29],D[30]!==S||D[31]!==L?(I=(0,a.jsx)(m.W.Overlay,{className:"AddFileDropdownButton-module__ActionMenu_Overlay__l0CIW",portalContainerName:_,children:(0,a.jsxs)(h.l,{children:[S,L]})}),D[30]=S,D[31]=L,D[32]=I):I=D[32],D[33]!==I||D[34]!==v?(R=(0,a.jsxs)("div",{ref:M,children:[n,(0,a.jsxs)(m.W,{children:[v,I]})]}),D[33]=I,D[34]=v,D[35]=R):R=D[35],R}j.displayName="AddFileDropdownButton"},52656(e,t,n){n.d(t,{D:()=>p});var a=n(74848),r=n(16522),l=n(31595),i=n(68541),o=n(54242),s=n(23666),c=n(38621),d=n(73077),m=n(5095),u=n(83223),h=n(10095),f=n(76071),x=n(34164);function p(e){let t,n,m,u,p=(0,r.c)(10),b=(0,o.t)(),_=(0,l.l)(),j=(0,i.z)();return p[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(h.A,{icon:c.AlertIcon,className:"fgColor-muted mb-2",size:20}),p[0]=t):t=p[0],p[1]!==e?(n=(0,a.jsx)(y,{...e}),p[1]=e,p[2]=n):n=p[2],p[3]!==_||p[4]!==j||p[5]!==b?(m=(_||!j.currentOid)&&(0,a.jsx)(d.z,{type:"button",className:(0,x.$)("tmp-mt-4",f.A.linkButton),variant:"primary","aria-label":j.currentOid?"go to Overview":"go to default branch",href:j.currentOid?(0,s.Do2)(b):(0,s.xlN)(b),children:j.currentOid?"Return to the repository overview":"Go to default branch"}),p[3]=_,p[4]=j,p[5]=b,p[6]=m):m=p[6],p[7]!==n||p[8]!==m?(u=(0,a.jsx)("div",{className:"CodeViewError-module__Box__RpqYX",children:(0,a.jsxs)("div",{className:"d-flex flex-column flex-justify-center flex-items-center border rounded-2 tmp-px-6 tmp-py-7",children:[t,n,m]})}),p[7]=n,p[8]=m,p[9]=u):u=p[9],u}function y(e){let t,n,l,i=(0,r.c)(8),{httpStatus:o,type:s}=e,c=404===o?"404 - page not found":"Error loading page";return i[0]!==c?(t=(0,a.jsx)("div",{className:"f2 fgColor-default text-bold",children:c}),i[0]=c,i[1]=t):t=i[1],i[2]!==o||i[3]!==s?(n=404===o?(0,a.jsx)(b,{}):(0,a.jsx)(_,{httpStatus:o,type:s}),i[2]=o,i[3]=s,i[4]=n):n=i[4],i[5]!==t||i[6]!==n?(l=(0,a.jsxs)("div",{className:"d-flex flex-column flex-items-center gap-1 text-center",children:[t,n]}),i[5]=t,i[6]=n,i[7]=l):l=i[7],l}function b(){let e,t,n,s,c=(0,r.c)(12),d=(0,o.t)(),u=(0,l.l)(),h=(0,i.z)();if(!h.currentOid){let e;return c[0]!==h.name?(e=(0,a.jsxs)("div",{className:"d-flex flex-wrap flex-justify-center fgColor-muted","data-testid":"error-404-description",children:["Cannot find a valid ref in\xa0",(0,a.jsx)(m.A,{as:"p",className:"mb-0",children:h.name})]}),c[0]=h.name,c[1]=e):e=c[1],e}return c[2]!==h.name?(e=(0,a.jsx)(m.A,{as:"p",className:"mb-0",children:h.name}),c[2]=h.name,c[3]=e):e=c[3],c[4]!==d.name?(t=(0,a.jsx)("p",{className:"text-bold mb-0",children:d.name}),c[4]=d.name,c[5]=t):t=c[5],c[6]!==u?(n=(0,a.jsxs)("p",{className:"text-bold mb-0",children:[u,"."]}),c[6]=u,c[7]=n):n=c[7],c[8]!==e||c[9]!==t||c[10]!==n?(s=(0,a.jsxs)("div",{className:"d-flex flex-wrap flex-justify-center fgColor-muted","data-testid":"eror-404-description",children:["The\xa0",e,"\xa0branch of\xa0",t,"\xa0does not contain the path\xa0",n]}),c[8]=e,c[9]=t,c[10]=n,c[11]=s):s=c[11],s}function _(e){let t,n,l=(0,r.c)(4),{httpStatus:i,type:o}=e,s=i?` ${i} error`:"error";if("fetchError"===o){let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("div",{className:"f5 fgColor-muted","data-testid":"fetch-error-description",children:"It looks like your internet connection is down. Please check it."}),l[0]=e):e=l[0],e}return l[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.A,{inline:!0,onClick:j,children:"\xa0reloading the page."},"reload-page"),l[1]=t):t=l[1],l[2]!==s?(n=(0,a.jsxs)("div",{className:"f5 fgColor-muted","data-testid":"default-error-description",children:["An unexpected ",s," occured. Try",t]}),l[2]=s,l[3]=n):n=l[3],n}function j(){return window.location.reload()}p.displayName="CodeViewError",y.displayName="ErrorText",b.displayName="DescriptionText404",_.displayName="DefaultDescriptionText"},7257(e,t,n){n.d(t,{l:()=>c});var a=n(74848),r=n(16522),l=n(88015),i=n(38621),o=n(94709),s=n(23082);function c(e){let t,n,c,d=(0,r.c)(10),{editPath:m,editTooltip:u,customSx:h}=e,{editFileShortcut:f}=(0,s.wk)(),x=(0,l.Zp)();return m?(d[0]!==h?(t={...h},d[0]=h,d[1]=t):t=d[1],d[2]!==m||d[3]!==x?(n=()=>{x(m)},d[2]=m,d[3]=x,d[4]=n):n=d[4],d[5]!==f.hotkey||d[6]!==u||d[7]!==t||d[8]!==n?(c=(0,a.jsx)(o.K0,{icon:i.PencilIcon,sx:t,"aria-label":u,onClick:n,"data-hotkey":f.hotkey,size:"small",variant:"invisible"}),d[5]=f.hotkey,d[6]=u,d[7]=t,d[8]=n,d[9]=c):c=d[9],c):null}c.displayName="EditButton"},94352(e,t,n){n.d(t,{S:()=>R,D:()=>I});var a=n(74848),r=n(16522),l=n(94348),i=n(31595),o=n(68541),s=n(7231),c=n(36570),d=n(54242),m=n(95126),u=n(23666),h=n(77236),f=n(16497),x=n(19503),p=n(14350),y=n(60213),b=n(38621),_=n(62935),j=n(83223),g=n(55717),N=n(73077),v=n(26108),C=n(96540),w=n(51068);function k(e){let t,n=(0,r.c)(4),{status:l,oid:i}=e,o=(0,d.t)(),[s,c]=(0,w.ym)(i,o);return n[0]!==s||n[1]!==c||n[2]!==l?(t=l?(0,a.jsx)(w.B6,{statusRollup:l,combinedStatus:s,onWillOpenPopup:c,size:"small"}):null,n[0]=s,n[1]=c,n[2]=l,n[3]=t):t=n[3],t}k.displayName="ReposChecksStatusBadge";var S=n(76071),T=n(34164),A=n(10095),B=n(53035),L=n(52318);function I(e){let t,n=(0,r.c)(2),{commitCount:l}=e;return n[0]!==l?(t=(0,a.jsx)("div",{className:"d-flex flex-column border rounded-2 tmp-mb-3 pl-1",children:(0,a.jsx)(R,{commitCount:l})}),n[0]=l,n[1]=t):t=n[1],t}function R(e){let t,n=(0,r.c)(3),{commitCount:l}=e,i=(0,B.E)();return n[0]!==l||n[1]!==i?(t=i?(0,a.jsx)(D,{commitCount:l}):(0,a.jsx)(E,{commitCount:l}),n[0]=l,n[1]=i,n[2]=t):t=n[2],t}function D(e){let t,n=(0,r.c)(5),{commitCount:l}=e,{latestCommit:i,isLoading:o,error:s}=(0,L.h)(),c=!!s;return n[0]!==l||n[1]!==o||n[2]!==i||n[3]!==c?(t=(0,a.jsx)(O,{latestCommit:i,loading:o,error:c,commitCount:l}),n[0]=l,n[1]=o,n[2]=i,n[3]=c,n[4]=t):t=n[4],t}function E(e){let t,n=(0,r.c)(5),{commitCount:l}=e,s=(0,d.t)(),c=(0,i.l)(),m=(0,o.z)(),[u,h,f]=(0,y.E)(s.ownerLogin,s.name,m.name,c);return n[0]!==l||n[1]!==f||n[2]!==u||n[3]!==h?(t=(0,a.jsx)(O,{latestCommit:u,loading:h,error:f,commitCount:l}),n[0]=l,n[1]=f,n[2]=u,n[3]=h,n[4]=t):t=n[4],t}function O(e){let t,n,i,o,s,c,m,u,h=(0,r.c)(27),{latestCommit:f,loading:x,error:y,commitCount:b}=e,_=(0,d.t)(),[j,g]=(0,C.useState)(!1);return h[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(p.W,{as:"h2",text:"Latest commit"}),h[0]=t):t=h[0],h[1]!==j||h[2]!==y||h[3]!==f||h[4]!==x||h[5]!==_?(n=y?(0,a.jsx)(F,{}):x?(0,a.jsx)(l.r,{width:120,"data-testid":"loading"}):f?(0,a.jsx)(P,{commit:f,detailsOpen:j,setDetailsOpen:g,repo:_}):null,h[1]=j,h[2]=y,h[3]=f,h[4]=x,h[5]=_,h[6]=n):n=h[6],h[7]!==f||h[8]!==_?(i=(0,a.jsx)(H,{commit:f,repo:_}),h[7]=f,h[8]=_,h[9]=i):i=h[9],h[10]!==b||h[11]!==j||h[12]!==f?(o=(0,a.jsx)($,{commit:f,commitCount:b,detailsOpen:j,setDetailsOpen:g}),h[10]=b,h[11]=j,h[12]=f,h[13]=o):o=h[13],h[14]!==i||h[15]!==o?(s=(0,a.jsxs)("div",{className:"d-flex flex-shrink-0 gap-2",children:[i,o]}),h[14]=i,h[15]=o,h[16]=s):s=h[16],h[17]!==n||h[18]!==s?(c=(0,a.jsxs)("div",{className:"LatestCommit-module__Box__B25ZT",children:[t,n,s]}),h[17]=n,h[18]=s,h[19]=c):c=h[19],h[20]!==j||h[21]!==f||h[22]!==_?(m=j&&f&&(0,a.jsx)("div",{className:f.bodyMessageHtml?"d-flex":"d-flex d-sm-none",children:(0,a.jsx)(W,{commit:f,repo:_})}),h[20]=j,h[21]=f,h[22]=_,h[23]=m):m=h[23],h[24]!==c||h[25]!==m?(u=(0,a.jsxs)(a.Fragment,{children:[c,m]}),h[24]=c,h[25]=m,h[26]=u):u=h[26],u}function F(){let e,t=(0,r.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("span",{className:"fgColor-attention","data-testid":"latest-commit-error-message",children:[(0,a.jsx)(A.A,{icon:b.AlertFillIcon}),"\xa0Cannot retrieve latest commit at this time."]}),t[0]=e):e=t[0],e}function P(e){let t,n,l,i,o,s,d,m,h,f,p,y=(0,r.c)(36),{commit:b,detailsOpen:j,setDetailsOpen:g,repo:N}=e;y[0]!==b.oid||y[1]!==N.name||y[2]!==N.ownerLogin?(t=(0,u.fQd)({owner:N.ownerLogin,repo:N.name,commitish:b.oid}),y[0]=b.oid,y[1]=N.name,y[2]=N.ownerLogin,y[3]=t):t=y[3];let v=`data-hovercard-url=${t} `;y[4]!==b.shortMessageHtmlLink||y[5]!==v?(n=function(e,t){let n="";if(e){for(let a of e.split("0?(0,a.jsx)(c.jF,{authors:b.authors,repo:N,includeVerbs:!1,committer:b.committer,committerAttribution:b.committerAttribution}):(0,a.jsx)(c.h1,{author:b.author,repo:N}),y[7]=b.author,y[8]=b.authors,y[9]=b.committer,y[10]=b.committerAttribution,y[11]=N,y[12]=l):l=y[12],y[13]===Symbol.for("react.memo_cache_sentinel")?(i=(0,T.$)("d-none d-sm-flex","LatestCommit-module__Box_2__pSPKJ"),y[13]=i):i=y[13],y[14]!==b.shortMessageHtmlLink||y[15]!==C?(o=b.shortMessageHtmlLink&&(0,a.jsx)(x.BC,{className:"Truncate-text","data-testid":"latest-commit-html",html:C}),y[14]=b.shortMessageHtmlLink,y[15]=C,y[16]=o):o=y[16],y[17]!==o?(s=(0,a.jsx)("div",{className:"Truncate flex-items-center f5",children:o}),y[17]=o,y[18]=s):s=y[18],y[19]!==b.bodyMessageHtml||y[20]!==j||y[21]!==g?(d=b.bodyMessageHtml&&(0,a.jsx)(U,{detailsOpen:j,setDetailsOpen:g}),y[19]=b.bodyMessageHtml,y[20]=j,y[21]=g,y[22]=d):d=y[22],y[23]!==b.oid||y[24]!==b.status?(m=(0,a.jsx)(k,{oid:b.oid,status:b.status}),y[23]=b.oid,y[24]=b.status,y[25]=m):m=y[25],y[26]!==s||y[27]!==d||y[28]!==m?(h=(0,a.jsxs)("div",{className:i,children:[s,d,m]}),y[26]=s,y[27]=d,y[28]=m,y[29]=h):h=y[29],y[30]!==b.date?(f=Number.isNaN(Date.parse(b.date))?null:(0,a.jsx)("span",{className:"d-flex d-sm-none fgColor-muted f6",children:(0,a.jsx)(_.A,{datetime:b.date,tense:"past"})}),y[30]=b.date,y[31]=f):f=y[31],y[32]!==f||y[33]!==l||y[34]!==h?(p=(0,a.jsxs)("div",{"data-testid":"latest-commit",className:"LatestCommit-module__Box_1__YkEgg",children:[l,h,f]}),y[32]=f,y[33]=l,y[34]=h,y[35]=p):p=y[35],p}I.displayName="LatestCommitSingleLine",R.displayName="LatestCommitContent",D.displayName="LatestCommitContentWithProvider",E.displayName="LatestCommitContentWithFetch",O.displayName="LatestCommitContentInternal",F.displayName="CommitErrorMessage",P.displayName="CommitSummary";let H=(0,C.memo)(function(e){let t,n,l,i=(0,r.c)(9),{commit:o,repo:s}=e,c=(0,m.yY)();i[0]!==o?.oid?(t=o?.oid.slice(0,7),i[0]=o?.oid,i[1]=t):t=i[1];let d=t;return i[2]!==d||i[3]!==o||i[4]!==c||i[5]!==s?(n=o&&(0,a.jsxs)("span",{className:"d-flex flex-nowrap fgColor-muted f6",children:[(0,a.jsx)(j.A,{as:h.N,to:o.url,className:"Link--secondary","aria-label":`Commit ${d}`,...c("commit",{owner:s.ownerLogin,repo:s.name,commitish:o.oid}),children:d}),"\xa0\xb7\xa0",Number.isNaN(Date.parse(o.date))?null:(0,a.jsx)(_.A,{datetime:o.date,tense:"past"})]}),i[2]=d,i[3]=o,i[4]=c,i[5]=s,i[6]=n):n=i[6],i[7]!==n?(l=(0,a.jsx)("div",{"data-testid":"latest-commit-details",className:"d-none d-sm-flex flex-items-center",children:n}),i[7]=n,i[8]=l):l=i[8],l});function $(e){let t,n,l,i,o,s,c,d,m,u=(0,r.c)(21),{commit:h,commitCount:f,detailsOpen:x,setDetailsOpen:y}=e;return u[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(p.W,{as:"h2",text:"History"}),u[0]=t):t=u[0],u[1]!==f?(n=M(f),u[1]=f,u[2]=n):n=u[2],u[3]!==n?(l=(0,a.jsx)(z,{className:"d-none d-lg-flex",leadingVisual:b.HistoryIcon,children:(0,a.jsx)("span",{className:"fgColor-default",children:n})}),u[3]=n,u[4]=l):l=u[4],u[5]!==h?.bodyMessageHtml||u[6]!==h?.shortMessageHtmlLink||u[7]!==x||u[8]!==y?(i=(h?.shortMessageHtmlLink||h?.bodyMessageHtml)&&(0,a.jsx)(U,{detailsOpen:x,setDetailsOpen:y}),u[5]=h?.bodyMessageHtml,u[6]=h?.shortMessageHtmlLink,u[7]=x,u[8]=y,u[9]=i):i=u[9],u[10]!==i?(o=(0,a.jsx)("div",{className:"d-sm-none",children:i}),u[10]=i,u[11]=o):o=u[11],u[12]!==f?(s=M(f),u[12]=f,u[13]=s):s=u[13],u[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)(z,{leadingVisual:b.HistoryIcon,"aria-label":"View commit history for this file."}),u[14]=c):c=u[14],u[15]!==s?(d=(0,a.jsx)("div",{className:"d-flex d-lg-none",children:(0,a.jsx)(g.m,{text:s,children:c})}),u[15]=s,u[16]=d):d=u[16],u[17]!==l||u[18]!==o||u[19]!==d?(m=(0,a.jsxs)("div",{className:"d-flex gap-2",children:[t,l,o,d]}),u[17]=l,u[18]=o,u[19]=d,u[20]=m):m=u[20],m}function M(e){return e?"1"===e?"1 Commit":`${e} Commits`:"History"}function z(e){let t,n,l,c,m,h,f,x,p,y=(0,r.c)(23);y[0]!==e?({children:t,className:n,leadingVisual:l,ref:m,...c}=e,y[0]=e,y[1]=t,y[2]=n,y[3]=l,y[4]=c,y[5]=m):(t=y[1],n=y[2],l=y[3],c=y[4],m=y[5]);let{sendRepoClickEvent:b}=(0,s.T)(),_=(0,i.l)(),j=(0,o.z)(),g=(0,d.t)();return y[6]!==n?(h=(0,T.$)(n,S.A.linkButton,"flex-items-center fgColor-default"),y[6]=n,y[7]=h):h=y[7],y[8]!==b?(f=()=>b("HISTORY_BUTTON"),y[8]=b,y[9]=f):f=y[9],y[10]!==_||y[11]!==j.name||y[12]!==g.name||y[13]!==g.ownerLogin?(x=(0,u.GpY)({owner:g.ownerLogin,repo:g.name,ref:j.name,path:_}),y[10]=_,y[11]=j.name,y[12]=g.name,y[13]=g.ownerLogin,y[14]=x):x=y[14],y[15]!==t||y[16]!==l||y[17]!==c||y[18]!==m||y[19]!==h||y[20]!==f||y[21]!==x?(p=(0,a.jsx)(N.z,{ref:m,...c,className:h,onClick:f,href:x,variant:"invisible",size:"small",leadingVisual:l,children:t}),y[15]=t,y[16]=l,y[17]=c,y[18]=m,y[19]=h,y[20]=f,y[21]=x,y[22]=p):p=y[22],p}function U(e){let t,n,l=(0,r.c)(6),{detailsOpen:i,setDetailsOpen:o}=e;return l[0]!==i||l[1]!==o?(t=()=>o(!i),l[0]=i,l[1]=o,l[2]=t):t=l[2],l[3]!==i||l[4]!==t?(n=(0,a.jsx)(v.K,{"aria-label":"Open commit details",icon:b.EllipsisIcon,onClick:t,variant:"invisible","aria-pressed":i,"aria-expanded":i,"data-testid":"latest-commit-details-toggle",size:"small",className:"LatestCommit-module__IconButton__mkJr_"}),l[3]=i,l[4]=t,l[5]=n):n=l[5],n}function W(e){let t,n,l,i,o,s,c,d,u,x,p=(0,r.c)(31),{commit:y,repo:b}=e,_=(0,m.yY)();p[0]!==y.oid?(t=y?.oid.slice(0,7),p[0]=y.oid,p[1]=t):t=p[1];let g=t;p[2]!==y.shortMessageHtmlLink?(n=y.shortMessageHtmlLink&&(0,a.jsx)(f.JR,{className:(0,T.$)("Truncate-text","LatestCommit-module__VerifiedHTMLText__w5eqj"),"data-testid":"latest-commit-html",html:y.shortMessageHtmlLink}),p[2]=y.shortMessageHtmlLink,p[3]=n):n=p[3],p[4]!==y.oid||p[5]!==y.status?(l=(0,a.jsx)(k,{oid:y.oid,status:y.status}),p[4]=y.oid,p[5]=y.status,p[6]=l):l=p[6],p[7]!==n||p[8]!==l?(i=(0,a.jsxs)("div",{className:"LatestCommit-module__Box_3__Jxx8S",children:[n,l]}),p[7]=n,p[8]=l,p[9]=i):i=p[9];let N=y.url,v=`Commit ${g}`;return p[10]!==y.oid||p[11]!==_||p[12]!==b.name||p[13]!==b.ownerLogin?(o=_("commit",{owner:b.ownerLogin,repo:b.name,commitish:y.oid}),p[10]=y.oid,p[11]=_,p[12]=b.name,p[13]=b.ownerLogin,p[14]=o):o=p[14],p[15]!==g||p[16]!==y.url||p[17]!==v||p[18]!==o?(s=(0,a.jsx)(j.A,{as:h.N,to:N,className:"Link--secondary","aria-label":v,...o,children:g}),p[15]=g,p[16]=y.url,p[17]=v,p[18]=o,p[19]=s):s=p[19],p[20]!==y.bodyMessageHtml?(c=y.bodyMessageHtml&&(0,a.jsx)("br",{}),p[20]=y.bodyMessageHtml,p[21]=c):c=p[21],p[22]!==i||p[23]!==s||p[24]!==c?(d=(0,a.jsxs)("div",{className:"d-flex d-sm-none flex-column",children:[i,s,c]}),p[22]=i,p[23]=s,p[24]=c,p[25]=d):d=p[25],p[26]!==y.bodyMessageHtml?(u=y.bodyMessageHtml&&(0,a.jsx)("div",{className:"mt-2 mt-sm-0 fgColor-muted",children:(0,a.jsx)(f.JR,{className:(0,T.$)("Truncate-text","LatestCommit-module__VerifiedHTMLText_1__IpJ2d"),"data-testid":"latest-commit-html",html:y.bodyMessageHtml})}),p[26]=y.bodyMessageHtml,p[27]=u):u=p[27],p[28]!==d||p[29]!==u?(x=(0,a.jsxs)("div",{className:"bgColor-muted border-top rounded-bottom-2 tmp-px-3 py-2 flex-1",children:[d,u]}),p[28]=d,p[29]=u,p[30]=x):x=p[30],x}H.displayName="LastCommitTimestamp",$.displayName="HistoryLink",z.displayName="HistoryLinkButton",U.displayName="CommitDetailsButton",W.displayName="CommitDetails"},41594(e,t,n){n.d(t,{A:()=>h});var a=n(74848),r=n(16522),l=n(78597),i=n(38621),o=n(59134),s=n(73077),c=n(26108),d=n(96540),m=n(76071),u=n(34164);function h(e){let t,n,h=(0,r.c)(8),{showPublishActionBanner:x,releasePath:p,dismissActionNoticePath:y,className:b}=e,[_,j]=(0,d.useState)(!1);h[0]!==y?(t=()=>{(0,l.DI)(y,{method:"POST"}),j(!0)},h[0]=y,h[1]=t):t=h[1];let g=t;return h[2]!==b||h[3]!==_||h[4]!==g||h[5]!==p||h[6]!==x?(n=x?(0,a.jsxs)(o.A,{hidden:_,className:(0,u.$)(b,"PublishBanners-module__Flash__ze07q"),children:[x&&(0,a.jsx)("div",{className:"flex-1",children:"You can publish this Action to the GitHub Marketplace"}),(0,a.jsx)(s.z,{href:p,className:(0,u.$)(m.A.linkButton,"f6 mr-2"),children:"Draft a release"}),(0,a.jsx)(c.K,{icon:i.XIcon,tooltipDirection:"s","aria-label":"Dismiss",className:"bgColor-transparent border-0 pr-0",onClick:x?g:f})]}):null,h[2]=b,h[3]=_,h[4]=g,h[5]=p,h[6]=x,h[7]=n):n=h[7],n}function f(){}h.displayName="PublishBanners"},97313(e,t,n){n.d(t,{s:()=>d,e:()=>m});var a=n(74848),r=n(16522),l=n(54242),i=n(40367),o=n(16497),s=n(88015),c=n(96540);let d=(0,c.memo)(function(e){let t,n,d,u,h,f,x,p,y=(0,r.c)(21),{ref:b,onAnchorClick:_,richText:j,stickyHeaderHeight:g,sx:N,suppressHydrationWarning:v,className:C}=e,{hash:w}=(0,s.zy)(),k=(0,l.t)(),S=(0,s.Zp)(),T=(0,c.useRef)(null);y[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>T.current,y[0]=t):t=y[0],(0,c.useImperativeHandle)(b,t),y[1]!==g?(n=()=>{m(window.location.hash,g)},y[1]=g,y[2]=n):n=y[2];let A=(0,c.useEffectEvent)(n);y[3]!==A?(d=()=>{let e=()=>{A()};return window.addEventListener("load",e),window.addEventListener("hashchange",e),()=>{window.removeEventListener("load",e),window.removeEventListener("hashchange",e)}},y[3]=A,y[4]=d):d=y[4],y[5]===Symbol.for("react.memo_cache_sentinel")?(u=[],y[5]=u):u=y[5],(0,c.useEffect)(d,u),y[6]!==A?(h=()=>{T?.current&&A()},y[6]=A,y[7]=h):h=y[7],y[8]!==w?(f=[w],y[8]=w,y[9]=f):f=y[9],(0,c.useLayoutEffect)(h,f);let B=`js-snippet-clipboard-copy-unpositioned ${C}`;return y[10]!==k||y[11]!==S||y[12]!==_||y[13]!==g?(x=e=>{let t=e.metaKey||e.ctrlKey,n=e.target.closest("a");if(n&&n.href){if(!t){let t,a=n.href;try{t=new URL(a,window.location.origin)}catch{return}(0,i.A)(window.location.href,a)?(m(t.hash,g),window.location.hash===t.hash&&e.preventDefault()):a.startsWith(`${window.location.origin}/${k.ownerLogin}/${k.name}/`)&&(S(t.pathname+t.search+t.hash),e.preventDefault())}_?.(e)}},y[10]=k,y[11]=S,y[12]=_,y[13]=g,y[14]=x):x=y[14],y[15]!==j||y[16]!==v||y[17]!==N||y[18]!==B||y[19]!==x?(p=(0,a.jsx)(o.vb,{ref:T,className:B,html:j,sx:N,suppressHydrationWarning:v,"data-hpc":!0,onClick:x}),y[15]=j,y[16]=v,y[17]=N,y[18]=B,y[19]=x,y[20]=p):p=y[20],p});function m(e,t=125){var n;if(!e)return;let a=(function(e){try{return decodeURIComponent(e.slice(1))}catch{return""}})(e).toLowerCase(),r=a.startsWith("user-content-")?a:`user-content-${a}`,l=(n=document,""===r?null:n.getElementById(r)||n.getElementsByName(r)[0]||null);l&&document&&document.defaultView&&setTimeout(()=>{window.requestAnimationFrame(()=>{let e=l.getBoundingClientRect().top,n=document.body.getBoundingClientRect().top;window.scrollTo({top:e-n-t});let a=l.closest("h1,h2,h3,h4,h5,h6,li,span");a&&(a.focus(),a.setAttribute("data-react-autofocus","true"))})},1)}d.displayName="SharedMarkdownContent"},94348(e,t,n){n.d(t,{r:()=>l});var a=n(74848),r=n(16522);function l(e){let t,n,l,i,o=(0,r.c)(8);return o[0]!==e?({width:n,...t}=e,o[0]=e,o[1]=t,o[2]=n):(t=o[1],n=o[2]),o[3]!==n?(l={width:n},o[3]=n,o[4]=l):l=o[4],o[5]!==t||o[6]!==l?(i=(0,a.jsx)("div",{style:l,className:"Skeleton Skeleton--text",...t,children:"\xa0"}),o[5]=t,o[6]=l,o[7]=i):i=o[7],i}l.displayName="SkeletonText"},5825(e,t,n){n.d(t,{I6:()=>x,IL:()=>b,QU:()=>_});var a=n(74848),r=n(16522),l=n(31595),i=n(68541),o=n(54242),s=n(60213),c=n(38621),d=n(59134),m=n(10095);let u="SpoofedCommitWarning-module__SpoofedCommitWarningBanner__QoJup";var h=n(53035),f=n(52318);function x(){let e,t=(0,r.c)(2),n=(0,h.E)();return t[0]!==n?(e=n?(0,a.jsx)(p,{}):(0,a.jsx)(y,{}),t[0]=n,t[1]=e):e=t[1],e}function p(){let e,t=(0,r.c)(1),{latestCommit:n}=(0,f.h)();return n?.isSpoofed?(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(b,{className:u}),t[0]=e):e=t[0],e):null}function y(){let e,t=(0,r.c)(1);return _()?(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(b,{className:u}),t[0]=e):e=t[0],e):null}function b(e){let t,n,l,i=(0,r.c)(4),{className:o}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(m.A,{icon:c.AlertIcon}),n=(0,a.jsx)("span",{children:"This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository."}),i[0]=t,i[1]=n):(t=i[0],n=i[1]),i[2]!==o?(l=(0,a.jsxs)(d.A,{variant:"warning",className:o,"data-testid":"spoofed-commit-warning-banner",children:[t,n]}),i[2]=o,i[3]=l):l=i[3],l}function _(){let e=(0,o.t)(),t=(0,l.l)(),n=(0,i.z)(),[a]=(0,s.E)(e.ownerLogin,e.name,n.name,t);return a?.isSpoofed??!1}x.displayName="SpoofedCommitWarning",p.displayName="SpoofedCommitWarningDataRouter",y.displayName="SpoofedCommitWarningInternal",b.displayName="SpoofedCommitWarningBanner"},23708(e,t,n){n.d(t,{A:()=>f});var a=n(74848),r=n(16522),l=n(16497),i=n(38621),o=n(32694),s=n(26108),c=n(38750),d=n(96540),m=n(97313);let u={1:"TableOfContentsPanel-module__TocLevel1__z1o7j",2:"TableOfContentsPanel-module__TocLevel2__Lx5Tj",3:"TableOfContentsPanel-module__TocLevel3__B1BYv",4:"TableOfContentsPanel-module__TocLevel4__KyBGj",5:"TableOfContentsPanel-module__TocLevel5__GnAYf",6:"TableOfContentsPanel-module__TocLevel6__FOGQz"},h=d.memo(function(e){let t,n,i,s=(0,r.c)(12),{htmlText:c,anchor:d,level:h,hash:f,index:x}=e,p=`#${d}`,y=f===p,b=u[Math.max(1,Math.min(6,h))];s[0]!==p||s[1]!==y?(t=e=>{1===e.button||e.metaKey||e.ctrlKey||(y||(location.href=p),(0,m.e)(p),e.preventDefault())},s[0]=p,s[1]=y,s[2]=t):t=s[2];let _=t,j=`outline-${d}-${x}`,g=y?"page":void 0;return s[3]!==c||s[4]!==b?(n=(0,a.jsx)(l.vb,{className:b,html:c}),s[3]=c,s[4]=b,s[5]=n):n=s[5],s[6]!==_||s[7]!==p||s[8]!==j||s[9]!==g||s[10]!==n?(i=(0,a.jsx)(o.c.Item,{"aria-current":g,href:p,onClick:_,children:n},j),s[6]=_,s[7]=p,s[8]=j,s[9]=g,s[10]=n,s[11]=i):i=s[11],i});function f(e){let t,n,l,m,u,f,x,p,y,b,_=(0,r.c)(23),{onClose:j,toc:g}=e,[N,v]=(0,d.useState)(""),C=(0,d.useDeferredValue)(N),[w,k]=(0,d.useState)(""),S=(0,d.useRef)(null);_[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{S.current?.focus()},n=[],_[0]=t,_[1]=n):(t=_[0],n=_[1]),(0,d.useEffect)(t,n),_[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let e=()=>{window.location.hash&&k(window.location.hash)};return e(),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},m=[],_[2]=l,_[3]=m):(l=_[2],m=_[3]),(0,d.useEffect)(l,m);e:{let e;if(!g){let e;_[4]===Symbol.for("react.memo_cache_sentinel")?(e=[],_[4]=e):e=_[4],u=e;break e}if(!C){u=g;break e}if(_[5]!==C||_[6]!==g){let t=C.toLowerCase();e=g.filter(e=>{let{htmlText:n}=e;return n&&n.toLowerCase().includes(t)}),_[5]=C,_[6]=g,_[7]=e}else e=_[7];u=e}let T=u;if(!g)return null;if(_[8]!==j?(f=j?(0,a.jsxs)("div",{className:"d-flex flex-justify-between flex-items-center",children:[(0,a.jsx)("h3",{id:"outline-id",ref:S,className:"d-flex flex-justify-between flex-items-center f5 text-bold px-2",tabIndex:-1,children:"Outline"}),(0,a.jsx)(s.K,{"aria-label":"Close outline",tooltipDirection:"sw",className:"fgColor-muted",icon:i.XIcon,onClick:j,variant:"invisible"})]}):null,_[8]=j,_[9]=f):f=_[9],_[10]!==g.length?(x=g.length>=8?(0,a.jsx)("div",{className:"tmp-pt-3 px-2",children:(0,a.jsx)(c.A,{leadingVisual:i.FilterIcon,placeholder:"Filter headings","aria-label":"Filter headings",className:"width-full",onChange:e=>{v(e.target.value)}})}):null,_[10]=g.length,_[11]=x):x=_[11],_[12]!==T||_[13]!==w){let e;_[15]!==w?(e=(e,t)=>(0,a.jsx)(h,{anchor:e.anchor,htmlText:e.htmlText,level:e.level,hash:w,index:t},`outline-${e.anchor}-${t}`),_[15]=w,_[16]=e):e=_[16],p=T.map(e),_[12]=T,_[13]=w,_[14]=p}else p=_[14];return _[17]!==p?(y=(0,a.jsx)(o.c,{className:"TableOfContentsPanel-module__NavList__CeWP9",children:p}),_[17]=p,_[18]=y):y=_[18],_[19]!==f||_[20]!==x||_[21]!==y?(b=(0,a.jsxs)("section",{"aria-labelledby":"outline-id",className:"TableOfContentsPanel-module__Box__ysjRa",children:[f,x,y]}),_[19]=f,_[20]=x,_[21]=y,_[22]=b):b=_[22],b}h.displayName="TocItem",f.displayName="TableOfContentsPanel"},43305(e,t,n){n.d(t,{o:()=>q,k:()=>K});var a=n(74848),r=n(16522),l=n(54242),i=n(59134),o=n(94709),s=n(94348),c=n(31595),d=n(68541),m=n(23666),u=n(78597),h=n(96540),f=n(7231),x=n(38621),p=n(67323),y=n(21373),b=n(5095),_=n(73077),j=n(85190),g=n(34164);function N(e){let t,n,l=(0,r.c)(3),{children:i}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,g.$)("popover-container-width","InfobarPopover-module__Box__KDoFn"),l[0]=t):t=l[0],l[1]!==i?(n=(0,a.jsx)("div",{className:t,children:i}),l[1]=i,l[2]=n):n=l[2],n}function v(e){let t,n,l,i,o,s=(0,r.c)(13),{icon:c,header:d,content:m,headerRef:u}=e;return s[0]!==c?(t=(0,a.jsx)("div",{className:"mr-2",children:c}),s[0]=c,s[1]=t):t=s[1],s[2]!==d||s[3]!==u?(n=(0,a.jsx)("h2",{ref:u,tabIndex:-1,className:"f5 mb-1",children:d}),s[2]=d,s[3]=u,s[4]=n):n=s[4],s[5]!==m?(l=(0,a.jsx)("span",{className:"fgColor-muted f6",children:m}),s[5]=m,s[6]=l):l=s[6],s[7]!==n||s[8]!==l?(i=(0,a.jsxs)("div",{children:[n,l]}),s[7]=n,s[8]=l,s[9]=i):i=s[9],s[10]!==t||s[11]!==i?(o=(0,a.jsxs)("div",{className:"d-flex tmp-p-3",children:[t,i]}),s[10]=t,s[11]=i,s[12]=o):o=s[12],o}function C(e){let t,n,l,i=(0,r.c)(7),{icon:o,success:s}=e;i[0]!==o?(t=()=>(0,a.jsx)(o,{size:16}),i[0]=o,i[1]=t):t=i[1];let c=s&&"InfobarPopover-module__success__JEzuA";return i[2]!==c?(n=(0,g.$)("InfobarPopover-module__CircleOcticon__rzFFE",c),i[2]=c,i[3]=n):n=i[3],i[4]!==t||i[5]!==n?(l=(0,a.jsx)(j.A,{size:30,icon:t,className:n}),i[4]=t,i[5]=n,i[6]=l):l=i[6],l}function w(e){let t,n=(0,r.c)(2),{children:l}=e;return n[0]!==l?(t=(0,a.jsx)("div",{className:"d-flex flex-wrap flex-justify-between tmp-p-3 gap-3 border-top borderColor-muted",children:l}),n[0]=l,n[1]=t):t=n[1],t}function k(e){return`${e} ${1===e?"commit":"commits"}`}function S(e){let t,n,l,i,o=(0,r.c)(60),{comparison:s,repo:c,linkify:d}=e,u=void 0!==d&&d,{sendRepoClickEvent:h}=(0,f.T)(),{ahead:x,behind:p,baseBranch:y,baseBranchRange:_,currentRef:j}=s;o[0]!==_||o[1]!==j||o[2]!==c?(t=(0,m.bSP)({repo:c,base:_,head:j}),o[0]=_,o[1]=j,o[2]=c,o[3]=t):t=o[3];let g=t;o[4]!==_||o[5]!==j||o[6]!==c?(n=(0,m.bSP)({repo:c,base:j,head:_}),o[4]=_,o[5]=j,o[6]=c,o[7]=n):n=o[7];let N=n;o[8]!==c.isFork||o[9]!==h?(l=()=>h("AHEAD_BEHIND_LINK",{category:"Branch Infobar",action:"Ahead Compare",label:`ref_loc:bar;is_fork:${c.isFork}`}),o[8]=c.isFork,o[9]=h,o[10]=l):l=o[10];let v=l;o[11]!==c.isFork||o[12]!==h?(i=()=>h("AHEAD_BEHIND_LINK",{category:"Branch Infobar",action:"Behind Compare",label:`ref_loc:bar;is_fork:${c.isFork}`}),o[11]=c.isFork,o[12]=h,o[13]=i):i=o[13];let C=i;if(0===x&&0===p){let e;return o[14]!==y?(e=(0,a.jsxs)("span",{children:["This branch is up to date with ",(0,a.jsx)(b.A,{as:"span",children:y}),"."]}),o[14]=y,o[15]=e):e=o[15],e}if(x>0&&p>0){let e,t,n,r,l,i;return o[16]!==x?(e=k(x),o[16]=x,o[17]=e):e=o[17],o[18]!==g||o[19]!==u||o[20]!==v||o[21]!==e?(t=(0,a.jsxs)(T,{linkify:u,href:g,onClick:v,children:[e," ahead of"]}),o[18]=g,o[19]=u,o[20]=v,o[21]=e,o[22]=t):t=o[22],o[23]!==p?(n=k(p),o[23]=p,o[24]=n):n=o[24],o[25]!==N||o[26]!==u||o[27]!==C||o[28]!==n?(r=(0,a.jsxs)(T,{linkify:u,href:N,onClick:C,children:[n," behind"]}),o[25]=N,o[26]=u,o[27]=C,o[28]=n,o[29]=r):r=o[29],o[30]!==y?(l=(0,a.jsx)(b.A,{as:"span",children:y}),o[30]=y,o[31]=l):l=o[31],o[32]!==l||o[33]!==t||o[34]!==r?(i=(0,a.jsxs)("span",{children:["This branch is"," ",t," and ",r," ",l,"."]}),o[32]=l,o[33]=t,o[34]=r,o[35]=i):i=o[35],i}if(x>0){let e,t,n,r;return o[36]!==x?(e=k(x),o[36]=x,o[37]=e):e=o[37],o[38]!==g||o[39]!==u||o[40]!==v||o[41]!==e?(t=(0,a.jsxs)(T,{linkify:u,href:g,onClick:v,children:[e," ahead of"]}),o[38]=g,o[39]=u,o[40]=v,o[41]=e,o[42]=t):t=o[42],o[43]!==y?(n=(0,a.jsx)(b.A,{as:"span",children:y}),o[43]=y,o[44]=n):n=o[44],o[45]!==t||o[46]!==n?(r=(0,a.jsxs)("span",{children:["This branch is"," ",t," ",n,"."]}),o[45]=t,o[46]=n,o[47]=r):r=o[47],r}{let e,t,n,r;return o[48]!==p?(e=k(p),o[48]=p,o[49]=e):e=o[49],o[50]!==N||o[51]!==u||o[52]!==C||o[53]!==e?(t=(0,a.jsxs)(T,{linkify:u,href:N,onClick:C,children:[e," behind"]}),o[50]=N,o[51]=u,o[52]=C,o[53]=e,o[54]=t):t=o[54],o[55]!==y?(n=(0,a.jsx)(b.A,{as:"span",children:y}),o[55]=y,o[56]=n):n=o[56],o[57]!==t||o[58]!==n?(r=(0,a.jsxs)("span",{children:["This branch is"," ",t," ",n,"."]}),o[57]=t,o[58]=n,o[59]=r):r=o[59],r}}function T(e){let t,n,l,i,s,c,d=(0,r.c)(13);if(d[0]!==e?({sx:s,href:n,linkify:l,children:t,...i}=e,d[0]=e,d[1]=t,d[2]=n,d[3]=l,d[4]=i,d[5]=s):(t=d[1],n=d[2],l=d[3],i=d[4],s=d[5]),l){let e;return d[6]!==t||d[7]!==n||d[8]!==i||d[9]!==s?(e=(0,a.jsx)(o.N_,{sx:s,href:n,...i,children:t}),d[6]=t,d[7]=n,d[8]=i,d[9]=s,d[10]=e):e=d[10],e}return d[11]!==t?(c=(0,a.jsx)("span",{children:t}),d[11]=t,d[12]=c):c=d[12],c}N.displayName="PopoverContainer",v.displayName="PopoverContent",C.displayName="PopoverIcon",w.displayName="PopoverActions",S.displayName="RefComparisonText",T.displayName="LinkOrText";var A=n(76071);function B(e){let t,n,i,o,s,c,d,u=(0,r.c)(21),{comparison:h}=e,f=(0,l.t)(),p=h.ahead>0;u[0]!==h.baseBranchRange||u[1]!==h.currentRef||u[2]!==f?(t=(0,m.bSP)({repo:f,base:h.baseBranchRange,head:h.currentRef}),u[0]=h.baseBranchRange,u[1]=h.currentRef,u[2]=f,u[3]=t):t=u[3];let y=t;u[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(C,{icon:x.GitPullRequestIcon}),u[4]=n):n=u[4],u[5]!==h||u[6]!==p||u[7]!==f?(i=p?(0,a.jsx)(S,{repo:f,comparison:{...h,behind:0}}):(0,a.jsxs)("span",{children:["This branch is not ahead of the upstream ",(0,a.jsx)(b.A,{as:"span",children:h.baseBranch}),"."]}),u[5]=h,u[6]=p,u[7]=f,u[8]=i):i=u[8];let j=p?"Open a pull request to contribute your changes upstream.":"No new commits yet. Enjoy your day!";return u[9]!==j?(o=(0,a.jsx)("p",{children:j}),u[9]=j,u[10]=o):o=u[10],u[11]!==i||u[12]!==o?(s=(0,a.jsx)(v,{icon:n,header:i,content:o}),u[11]=i,u[12]=o,u[13]=s):s=u[13],u[14]!==y||u[15]!==p||u[16]!==f?(c=p&&(0,a.jsxs)(w,{children:[!f.isFork&&(0,a.jsx)(_.z,{className:(0,g.$)(A.A.linkButton,"flex-1"),href:y,"data-testid":"compare-button",children:"Compare"}),(0,a.jsx)(_.z,{className:(0,g.$)(A.A.linkButton,"flex-1"),href:`${y}?expand=1`,variant:"primary","data-testid":"open-pr-button",children:"Open pull request"})]}),u[14]=y,u[15]=p,u[16]=f,u[17]=c):c=u[17],u[18]!==s||u[19]!==c?(d=(0,a.jsxs)(a.Fragment,{children:[s,c]}),u[18]=s,u[19]=c,u[20]=d):d=u[20],d}function L(e){let t,n,l,i,o=(0,r.c)(8),{comparison:s}=e,{sendRepoClickEvent:c}=(0,f.T)();return o[0]!==c?(t=e=>e&&c("CONTRIBUTE_BUTTON",{category:"Branch Infobar",action:"Open Contribute dropdown",label:"ref_loc:contribute_dropdown"}),o[0]=c,o[1]=t):t=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(p.W.Anchor,{children:(0,a.jsx)(y.Q,{leadingVisual:x.GitPullRequestIcon,trailingVisual:x.TriangleDownIcon,children:"Contribute"})}),o[2]=n):n=o[2],o[3]!==s?(l=(0,a.jsx)(p.W.Overlay,{align:"end",className:"mt-2",children:(0,a.jsx)(N,{children:(0,a.jsx)(B,{comparison:s})})}),o[3]=s,o[4]=l):l=o[4],o[5]!==t||o[6]!==l?(i=(0,a.jsxs)(p.W,{onOpenChange:t,children:[n,l]}),o[5]=t,o[6]=l,o[7]=i):i=o[7],i}B.displayName="ContributePopoverContent",L.displayName="ContributeButton";var I=n(7478),R=n(83223);function D(e,t,n){let a,l,i=(0,r.c)(6),[o,s]=(0,h.useState)(!1),c=o?t:e;return i[0]!==n?(a=async()=>{s(!0),await n(),s(!1)},i[0]=n,i[1]=a):a=i[1],i[2]!==o||i[3]!==c||i[4]!==a?(l={disabled:o,label:c,action:a},i[2]=o,i[3]=c,i[4]=a,i[5]=l):l=i[5],l}let E={category:"Branch Infobar",label:"ref_loc:fetch_upstream_dropdown"};var O=n(51336);function F(e){let t,n,i,o,s,c,d,u,p,b,_,j,N=(0,r.c)(36),{comparison:S,discard:T,update:B}=e,L=(0,l.t)(),{helpUrl:I}=(0,O.s)(),{sendRepoClickEvent:F}=(0,f.T)(),M=`${I}/github/collaborating-with-issues-and-pull-requests/syncing-a-fork`;N[0]!==S.baseBranchRange||N[1]!==S.currentRef||N[2]!==L?(t=(0,m.bSP)({repo:L,base:S.baseBranchRange,head:S.currentRef}),N[0]=S.baseBranchRange,N[1]=S.currentRef,N[2]=L,N[3]=t):t=N[3];let z=t;N[4]!==S?(n=P(S),N[4]=S,N[5]=n):n=N[5];let U=n,W=S.behind>0;N[6]!==S.ahead?(i=k(S.ahead),N[6]=S.ahead,N[7]=i):i=N[7];let K=D(`Discard ${i}`,"Discarding changes...",T),V=D("Update branch","Updating...",B),q="behind"===U,G="behind-and-ahead"===U&&S.isTrackingBranch;N[8]===Symbol.for("react.memo_cache_sentinel")?(o=["behind","behind-and-ahead"],N[8]=o):o=N[8];let Q=o.includes(U);N[9]!==q||N[10]!==G||N[11]!==Q?(s={compare:q,discard:G,update:Q},N[9]=q,N[10]=G,N[11]=Q,N[12]=s):s=N[12];let Y=s,X=Object.values(Y).some(Boolean),J=(0,h.useRef)(null);N[13]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{let e=window.setTimeout(()=>J.current?.focus());return()=>{window.clearTimeout(e)}},N[13]=c):c=N[13],(0,h.useEffect)(c);let Z=W?x.GitMergeIcon:x.CheckIcon,ee=!W;return N[14]!==Z||N[15]!==ee?(d=(0,a.jsx)(C,{icon:Z,success:ee}),N[14]=Z,N[15]=ee,N[16]=d):d=N[16],N[17]!==S?(u=(0,a.jsx)(H,{comparison:S}),N[17]=S,N[18]=u):u=N[18],N[19]!==S||N[20]!==M?(p=(0,a.jsx)($,{comparison:S,helpUrl:M}),N[19]=S,N[20]=M,N[21]=p):p=N[21],N[22]!==d||N[23]!==u||N[24]!==p?(b=(0,a.jsx)(v,{icon:d,headerRef:J,header:u,content:p}),N[22]=d,N[23]=u,N[24]=p,N[25]=b):b=N[25],N[26]!==z||N[27]!==K||N[28]!==X||N[29]!==F||N[30]!==V||N[31]!==Y?(_=X&&(0,a.jsxs)(w,{children:[Y.compare&&(0,a.jsx)(y.Q,{as:R.A,className:(0,g.$)(A.A.linkButton,"flex-1"),href:z,onClick:()=>F("SYNC_FORK.COMPARE",{...E,action:"Compare"}),"data-testid":"compare-button",children:"Compare"}),Y.discard&&(0,a.jsx)(y.Q,{onClick:K.action,className:"flex-1","data-testid":"discard-button",variant:"danger",disabled:K.disabled,children:K.label}),Y.update&&(0,a.jsx)(y.Q,{onClick:V.action,disabled:V.disabled,className:"flex-1",variant:"primary","data-testid":"update-branch-button",children:V.label})]}),N[26]=z,N[27]=K,N[28]=X,N[29]=F,N[30]=V,N[31]=Y,N[32]=_):_=N[32],N[33]!==b||N[34]!==_?(j=(0,a.jsxs)(a.Fragment,{children:[b,_]}),N[33]=b,N[34]=_,N[35]=j):j=N[35],j}function P({behind:e,ahead:t}){return 0===e&&0===t?"sync":e>0&&t>0?"behind-and-ahead":e>0?"behind":"ahead"}function H(e){let t=(0,r.c)(3),{comparison:n}=e;switch(P(n)){case"behind":case"behind-and-ahead":{let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("span",{children:"This branch is out-of-date"}),t[0]=e):e=t[0],e}default:{let e;return t[1]!==n.baseBranch?(e=(0,a.jsxs)("span",{children:["This branch is not behind the upstream ",(0,a.jsx)(b.A,{as:"span",children:n.baseBranch}),"."]}),t[1]=n.baseBranch,t[2]=e):e=t[2],e}}}function $(e){let t=(0,r.c)(14),{comparison:n,helpUrl:l}=e;switch(P(n)){case"sync":case"ahead":{let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("p",{children:"No new commits to fetch. Enjoy your day!"}),t[0]=e):e=t[0],e}case"behind":{let e,r,i,o;return t[1]!==n.behind?(e=k(n.behind),t[1]=n.behind,t[2]=e):e=t[2],t[3]!==e?(r=(0,a.jsxs)("p",{children:["Update branch to keep this branch up-to-date by syncing ",e," from the upstream repository."]}),t[3]=e,t[4]=r):r=t[4],t[5]!==l?(i=(0,a.jsx)("p",{children:(0,a.jsx)(R.A,{href:l,target:"_blank",rel:"noopener noreferrer",children:"Learn more about syncing a fork"})}),t[5]=l,t[6]=i):i=t[6],t[7]!==r||t[8]!==i?(o=(0,a.jsxs)(a.Fragment,{children:[r,i]}),t[7]=r,t[8]=i,t[9]=o):o=t[9],o}case"behind-and-ahead":{let e;return t[10]!==n.ahead||t[11]!==n.isTrackingBranch||t[12]!==l?(e=n.isTrackingBranch?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:"Update branch to merge the latest changes from the upstream repository into this branch."}),(0,a.jsxs)("p",{children:["Discard ",k(n.ahead)," to make this branch match the upstream repository."," ",k(n.ahead)," will be removed from this branch."]}),(0,a.jsx)("p",{children:(0,a.jsx)(R.A,{href:l,target:"_blank",rel:"noopener noreferrer",children:"Learn more about syncing a fork"})})]}):(0,a.jsx)("p",{children:"Update branch to merge the latest changes from the upstream repository into this branch."}),t[10]=n.ahead,t[11]=n.isTrackingBranch,t[12]=l,t[13]=e):e=t[13],e}}}function M(e){let t,n,i,o,s,c,d,u,h,p,b,_,j=(0,r.c)(27),{comparison:N,discard:S}=e,T=(0,l.t)(),{sendRepoClickEvent:B}=(0,f.T)();j[0]!==N.currentRef||j[1]!==T?(t=(0,m.w7M)({repo:T,refName:N.currentRef}),j[0]=N.currentRef,j[1]=T,j[2]=t):t=j[2];let L=t;j[3]!==N.ahead?(n=k(N.ahead),j[3]=N.ahead,j[4]=n):n=j[4];let I=n,O=D(`Discard ${I}`,"Discarding changes...",S);return j[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(C,{icon:x.AlertIcon}),j[5]=i):i=j[5],j[6]!==I?(o=(0,a.jsxs)("p",{children:["Discard ",I," to make this branch match the upstream repository. ",I," will be removed from this branch."]}),j[6]=I,j[7]=o):o=j[7],j[8]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)("p",{children:"You can resolve merge conflicts using the command line and a text editor."}),j[8]=s):s=j[8],j[9]!==o?(c=(0,a.jsx)(v,{icon:i,header:"This branch has conflicts that must be resolved",content:(0,a.jsxs)(a.Fragment,{children:[o,s]})}),j[9]=o,j[10]=c):c=j[10],j[11]!==O.action||j[12]!==O.disabled||j[13]!==O.label?(d=(0,a.jsx)(y.Q,{className:"flex-1",onClick:O.action,disabled:O.disabled,"data-testid":"discard-button",variant:"danger",children:O.label}),j[11]=O.action,j[12]=O.disabled,j[13]=O.label,j[14]=d):d=j[14],j[15]===Symbol.for("react.memo_cache_sentinel")?(u=(0,g.$)(A.A.linkButton,"flex-1"),j[15]=u):u=j[15],j[16]!==B?(h=()=>B("SYNC_FORK.OPEN_PR",{...E,action:"Open pull request"}),j[16]=B,j[17]=h):h=j[17],j[18]!==L||j[19]!==h?(p=(0,a.jsx)(y.Q,{as:R.A,className:u,href:L,variant:"primary","data-testid":"open-pr-button",onClick:h,children:"Open pull request"}),j[18]=L,j[19]=h,j[20]=p):p=j[20],j[21]!==p||j[22]!==d?(b=(0,a.jsxs)(w,{children:[d,p]}),j[21]=p,j[22]=d,j[23]=b):b=j[23],j[24]!==b||j[25]!==c?(_=(0,a.jsxs)(a.Fragment,{children:[c,b]}),j[24]=b,j[25]=c,j[26]=_):_=j[26],_}function z(e){let t,n,i,o,s=(0,r.c)(21),{comparison:c}=e;s[0]!==c.baseBranchRange||s[1]!==c.currentRef?(t={base:c.currentRef,head:c.baseBranchRange},s[0]=c.baseBranchRange,s[1]=c.currentRef,s[2]=t):t=s[2];let[x,p,y]=function(e){let t,n,a,i,o=(0,r.c)(11),{head:s,base:c}=e,[d,f]=(0,h.useState)(),[x,p]=(0,h.useState)(!0),[y,b]=(0,h.useState)(),_=(0,l.t)();o[0]!==c||o[1]!==s||o[2]!==_?(t=(0,m.a3t)({repo:_,head:s,base:c}),o[0]=c,o[1]=s,o[2]=_,o[3]=t):t=o[3];let j=t;return o[4]!==j?(n=()=>{(async()=>{p(!0),f(void 0);let e=await (0,u.lS)(j);try{e.ok?f((await e.json()).state):b(e.statusText)}catch(e){b(e?.message||e?.toString())}p(!1)})()},a=[j],o[4]=j,o[5]=n,o[6]=a):(n=o[5],a=o[6]),(0,h.useEffect)(n,a),o[7]!==d||o[8]!==y||o[9]!==x?(i=[d,x,y],o[7]=d,o[8]=y,o[9]=x,o[10]=i):i=o[10],i}(t),{sendRepoClickEvent:b}=(0,f.T)(),{discardChanges:_,updateBranch:j}=function(){let e,t,n,a,i,o=(0,r.c)(13),s=(0,l.t)(),{name:c}=(0,d.z)();o[0]!==c||o[1]!==s?(e=(0,m.X6K)({repo:s,refName:c,discard:!0}),o[0]=c,o[1]=s,o[2]=e):e=o[2];let h=e;o[3]!==c||o[4]!==s?(t=(0,m.X6K)({repo:s,refName:c,discard:!1}),o[3]=c,o[4]=s,o[5]=t):t=o[5];let f=t;o[6]!==f?(n=()=>(0,u.DI)(f,{method:"POST"}),o[6]=f,o[7]=n):n=o[7];let x=n;o[8]!==h?(a=()=>(0,u.DI)(h,{method:"POST"}),o[8]=h,o[9]=a):a=o[9];let p=a;return o[10]!==p||o[11]!==x?(i={updateBranch:x,discardChanges:p},o[10]=p,o[11]=x,o[12]=i):i=o[12],i}();s[3]!==_||s[4]!==b?(n=async()=>{b("SYNC_FORK.DISCARD",{...E,action:"Discard Conflicts"});let e=await _();e.ok&&e.url&&(window.location.href=e.url)},s[3]=_,s[4]=b,s[5]=n):n=s[5];let g=n;s[6]!==b||s[7]!==j?(i=async()=>{b("SYNC_FORK.UPDATE",{...E,action:"Fetch and merge"});let e=await j();e.ok&&e.url&&(window.location.href=e.url)},s[6]=b,s[7]=j,s[8]=i):i=s[8];let N=i;if(0===c.behind){let e;return s[9]!==c||s[10]!==g||s[11]!==N?(e=(0,a.jsx)(F,{update:N,discard:g,comparison:c}),s[9]=c,s[10]=g,s[11]=N,s[12]=e):e=s[12],e}if(p||y){let e;return s[13]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("div",{className:"tmp-p-4 d-flex flex-justify-center",children:(0,a.jsx)(I.A,{})}),s[13]=e):e=s[13],e}if("clean"===x){let e;return s[14]!==c||s[15]!==g||s[16]!==N?(e=(0,a.jsx)(F,{update:N,discard:g,comparison:c}),s[14]=c,s[15]=g,s[16]=N,s[17]=e):e=s[17],e}return s[18]!==c||s[19]!==g?(o=(0,a.jsx)(M,{discard:g,comparison:c}),s[18]=c,s[19]=g,s[20]=o):o=s[20],o}function U(e){let t,n,l,i,o=(0,r.c)(9),{comparison:s}=e,{sendRepoClickEvent:c}=(0,f.T)();return o[0]!==s||o[1]!==c?(t=e=>e&&c("SYNC_FORK_BUTTON",{category:"Branch Infobar",action:"Open Fetch upstream dropdown",label:"ref_loc:fetch_upstream_dropdown",ahead:s.ahead,behind:s.behind}),o[0]=s,o[1]=c,o[2]=t):t=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(p.W.Anchor,{children:(0,a.jsx)(y.Q,{leadingVisual:x.SyncIcon,trailingAction:x.TriangleDownIcon,children:"Sync fork"})}),o[3]=n):n=o[3],o[4]!==s?(l=(0,a.jsx)(p.W.Overlay,{align:"end",className:"mt-2",children:(0,a.jsx)(N,{children:(0,a.jsx)(z,{comparison:s})})}),o[4]=s,o[5]=l):l=o[5],o[6]!==t||o[7]!==l?(i=(0,a.jsxs)(p.W,{onOpenChange:t,children:[n,l]}),o[6]=t,o[7]=l,o[8]=i):i=o[8],i}F.displayName="FetchUpstreamPopoverContent",H.displayName="HeaderText",$.displayName="ContentText",M.displayName="FetchUpstreamWithConflictsPopoverContent",z.displayName="FetchPopoverContainer",U.displayName="FetchUpstreamButton";function W(e){let t,n,l,i=(0,r.c)(7),{repo:o,pullRequestNumber:s}=e;return i[0]!==s||i[1]!==o?(t=(0,m.oDn)({repo:o,number:s}),i[0]=s,i[1]=o,i[2]=t):t=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(x.GitPullRequestIcon,{size:16}),i[3]=n):n=i[3],i[4]!==s||i[5]!==t?(l=(0,a.jsxs)(R.A,{href:t,className:"PullRequestLink-module__Link__gmWy7",children:[n,"#",s]}),i[4]=s,i[5]=t,i[6]=l):l=i[6],l}W.displayName="PullRequestLink";function K(e){let t,n,i=(0,r.c)(16),{sx:o}=e,[f,x]=function(){let[e,t]=(0,h.useState)(),[n,a]=(0,h.useState)(),r=(0,c.l)(),i=(0,d.z)(),o=(0,l.t)(),s=(0,m.IO9)({repo:o,action:"branch-infobar",commitish:i.name,path:r});return(0,h.useEffect)(()=>{(async()=>{t(void 0);let e=await (0,u.lS)(s);try{e.ok?t(await e.json()):a(422===e.status?"timeout":e.statusText)}catch(e){a(e?.message||e?.toString())}})()},[s]),[e,n]}(),p=(0,l.t)();if("timeout"===x){let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(a.Fragment,{children:"Sorry, getting ahead/behind information for this branch is taking too long."}),i[0]=e):e=i[0],t=e}else if(f)if(f.refComparison){let e,n,r;i[3]!==f.refComparison||i[4]!==p?(e=(0,a.jsx)(S,{linkify:!0,repo:p,comparison:f.refComparison}),i[3]=f.refComparison,i[4]=p,i[5]=e):e=i[5],i[6]!==f.pullRequestNumber||i[7]!==f.refComparison||i[8]!==p?(n=(0,a.jsx)("div",{className:"d-flex gap-2",children:f.pullRequestNumber?(0,a.jsx)(W,{repo:p,pullRequestNumber:f.pullRequestNumber}):(0,a.jsxs)(a.Fragment,{children:[p.currentUserCanPush&&(0,a.jsx)(L,{comparison:f.refComparison}),p.isFork&&p.currentUserCanPush&&(0,a.jsx)(U,{comparison:f.refComparison})]})}),i[6]=f.pullRequestNumber,i[7]=f.refComparison,i[8]=p,i[9]=n):n=i[9],i[10]!==e||i[11]!==n?(r=(0,a.jsxs)(a.Fragment,{children:[e,n]}),i[10]=e,i[11]=n,i[12]=r):r=i[12],t=r}else{let e;i[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(a.Fragment,{children:"Cannot retrieve ahead/behind information for this branch."}),i[2]=e):e=i[2],t=e}else{let e;i[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.r,{width:"40%"}),(0,a.jsx)(s.r,{width:"30%"})]}),i[1]=e):e=i[1],t=e}return i[13]!==t||i[14]!==o?(n=(0,a.jsx)(V,{sx:o,className:"BranchInfoBar-module__BranchInfoBarContainer__xZHyz",children:t}),i[13]=t,i[14]=o,i[15]=n):n=i[15],n}function V(e){let t,n,l=(0,r.c)(6),{children:i,sx:s,className:c}=e;return l[0]!==c?(t=(0,g.$)("BranchInfoBar-module__Box__JQ0ic",c),l[0]=c,l[1]=t):t=l[1],l[2]!==i||l[3]!==s||l[4]!==t?(n=(0,a.jsx)(o.az,{"data-testid":"branch-info-bar","aria-live":"polite",sx:s,className:t,children:i}),l[2]=i,l[3]=s,l[4]=t,l[5]=n):n=l[5],n}function q(){let e,t=(0,r.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(i.A,{variant:"warning",className:"tmp-my-3",children:(0,a.jsx)("span",{children:"Cannot retrieve comparison with upstream repository."})}),t[0]=e):e=t[0],e}K.displayName="BranchInfoBar",V.displayName="BranchInfoBarContainer",q.displayName="BranchInfoBarErrorBanner"},53257(e,t,n){n.d(t,{t:()=>G});var a=n(74848),r=n(16522),l=n(69901),i=n(31595),o=n(68541),s=n(54242),c=n(23666),d=n(14350),m=n(31854),u=n(88015),h=n(38621),f=n(39775),x=n(59134),p=n(83223),y=n(10095),b=n(96540),_=n(73973),j=n(28547),g=n(78597),N=n(12191),v=n(94352);function C(e){let t,n,l=(0,r.c)(3),{uploadUrl:i}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("div",{className:"repo-file-upload-outline",children:(0,a.jsxs)("div",{className:"repo-file-upload-slate",children:[(0,a.jsx)("div",{className:"fgColor-muted",children:(0,a.jsx)(h.FileIcon,{size:32})}),(0,a.jsx)("h2",{"aria-hidden":"true",children:"Drop to upload your files"})]})}),l[0]=t):t=l[0],l[1]!==i?(n=(0,a.jsx)("document-dropzone",{children:(0,a.jsx)("div",{className:"repo-file-upload-tree-target js-upload-manifest-tree-view","data-testid":"dragzone","data-drop-url":i,"data-target":"document-dropzone.dropContainer",children:t})}),l[1]=i,l[2]=n):n=l[2],n}C.displayName="Dropzone";var w=n(77236),k=n(94348),S=n(16497),T=n(62935);let A={directory:"Directory",submodule:"Submodule",symlink_directory:"Symlink to directory",symlink_file:"Symlink to file"};function B(e){let t=(0,r.c)(5),{item:n}=e;switch(n.contentType){case"directory":{let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(h.FileDirectoryFillIcon,{className:"icon-directory"}),t[0]=e):e=t[0],e}case"submodule":{let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(h.FileSubmoduleIcon,{className:"icon-directory"}),t[1]=e):e=t[1],e}case"symlink_directory":{let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(h.FileSubmoduleIcon,{className:"icon-directory"}),t[2]=e):e=t[2],e}case"symlink_file":{let e;return t[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(h.FileSymlinkFileIcon,{className:"icon-directory"}),t[3]=e):e=t[3],e}default:{let e;return t[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(h.FileIcon,{className:"color-fg-muted"}),t[4]=e):e=t[4],e}}}function L(e){let t,n,l,i,o=(0,r.c)(17),{initialFocus:s,item:c,getItemUrl:d,onNavigate:m}=e;o[0]!==d||o[1]!==c?(t=d(c),o[0]=d,o[1]=c,o[2]=t):t=o[2];let u=t,h=c.hasSimplifiedPath?"This path skips through empty directories":c.name;if("submodule"===c.contentType){let e;u=c.submoduleUrl??u,o[3]!==c.submoduleUrl?(e=e=>{e.preventDefault(),c.submoduleUrl&&(window.location.href=c.submoduleUrl)},o[3]=c.submoduleUrl,o[4]=e):e=o[4],m=e}let f=c.name;o[5]!==c?(n=function({contentType:e}){return`(${A[e]||"File"})`}(c),o[5]=c,o[6]=n):n=o[6];let x=`${f}, ${n}`,p="symlink_directory"!==c.contentType&&"symlink_file"!==c.contentType?"Link--primary":void 0,y=!!s||null;return o[7]!==c?(l=(0,a.jsx)(I,{item:c}),o[7]=c,o[8]=l):l=o[8],o[9]!==u||o[10]!==m||o[11]!==x||o[12]!==p||o[13]!==y||o[14]!==l||o[15]!==h?(i=(0,a.jsx)("div",{className:"overflow-hidden",children:(0,a.jsx)("div",{className:"react-directory-filename-cell",children:(0,a.jsx)("div",{className:"react-directory-truncate",children:(0,a.jsx)(w.N,{title:h,"aria-label":x,className:p,"data-react-autofocus":y,onClick:m,to:u,children:l})})})}),o[9]=u,o[10]=m,o[11]=x,o[12]=p,o[13]=y,o[14]=l,o[15]=h,o[16]=i):i=o[16],i}function I(e){let t,n=(0,r.c)(7),{item:l}=e;if(l.hasSimplifiedPath){let e,t;return n[0]!==l.name?(e=l.name.split("/").map(R),n[0]=l.name,n[1]=e):e=n[1],n[2]!==e?(t=(0,a.jsx)(a.Fragment,{children:e}),n[2]=e,n[3]=t):t=n[3],t}return n[4]!==l.name||n[5]!==l.submoduleDisplayName?(t=l.submoduleDisplayName?(0,a.jsx)("span",{style:{color:"var(--fgColor-accent, var(--color-accent-fg))"},children:l.submoduleDisplayName}):(0,a.jsx)(a.Fragment,{children:l.name}),n[4]=l.name,n[5]=l.submoduleDisplayName,n[6]=t):t=n[6],t}function R(e,t,n){let r=t===n.length-1;return(0,a.jsx)("span",{className:r?"":"react-directory-default-color","data-testid":"path-name-segment",children:`${e}${r?"":"/"}`},t)}function D(e){let t,n=(0,r.c)(4),{commit:l}=e;if(!l){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(k.r,{}),n[0]=e):e=n[0],e}return n[1]!==l.shortMessageHtmlLink||n[2]!==l.url?(t=l.shortMessageHtmlLink?(0,a.jsx)("div",{children:(0,a.jsx)(S.$6,{className:"react-directory-commit-message",html:l.shortMessageHtmlLink})}):(0,a.jsx)(p.A,{className:"Link--secondary",href:l.url,children:"No commit message"}),n[1]=l.shortMessageHtmlLink,n[2]=l.url,n[3]=t):t=n[3],t}function E(e){let t,n=(0,r.c)(2),{commit:l}=e;return n[0]!==l?(t=l?.date?(0,a.jsx)("div",{className:"react-directory-commit-age",children:Number.isNaN(Date.parse(l.date))?"Invalid date":(0,a.jsx)(T.A,{datetime:l.date,tense:"past"})}):(0,a.jsx)(k.r,{}),n[0]=l,n[1]=t):t=n[1],t}B.displayName="IconCell",L.displayName="NameCell",I.displayName="ItemPathName",D.displayName="CommitMessageCell",E.displayName="CommitAgeCell";var O=n(34164);function F(e){let t,n,l,i,o,s=(0,r.c)(10);return s[0]!==e?({children:t,className:n,...l}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=l):(t=s[1],n=s[2],l=s[3]),s[4]!==n?(i=(0,O.$)("Table-module__Box__HZKiQ",n),s[4]=n,s[5]=i):i=s[5],s[6]!==t||s[7]!==l||s[8]!==i?(o=(0,a.jsx)("table",{className:i,...l,children:t}),s[6]=t,s[7]=l,s[8]=i,s[9]=o):o=s[9],o}F.displayName="Table";let P=e=>{let t,n,l,i=(0,r.c)(7),{children:o,className:s}=e;return i[0]!==s?(t=(0,O.$)(s,"Table-module__Box_1__VacXC"),i[0]=s,i[1]=t):t=i[1],i[2]!==o?(n=(0,a.jsx)("tr",{className:"Table-module__Box_2__PBp9s",children:o}),i[2]=o,i[3]=n):n=i[3],i[4]!==t||i[5]!==n?(l=(0,a.jsx)("thead",{className:t,children:n}),i[4]=t,i[5]=n,i[6]=l):l=i[6],l};P.displayName="HeaderRow";let H=e=>{let t,n=(0,r.c)(5),{children:l,onClick:i,index:o,id:s}=e;return n[0]!==l||n[1]!==s||n[2]!==o||n[3]!==i?(t=(0,a.jsx)("tr",{onClick:i,"data-index":o,id:s,className:"Table-module__Box_3__d9lz1",children:l}),n[0]=l,n[1]=s,n[2]=o,n[3]=i,n[4]=t):t=n[4],t};H.displayName="Row";let $=e=>{let t,n=(0,r.c)(2),{children:l}=e;return n[0]!==l?(t=(0,a.jsx)("tfoot",{className:"Table-module__Box_4__hvL1K",children:l}),n[0]=l,n[1]=t):t=n[1],t};$.displayName="TableFooter";let M=e=>{let t,n,l,i,o,s,c,d,m,u=(0,r.c)(31),{className:h,onClickHandler:f,index:x,item:p,initialFocus:y,getItemUrl:b,onNavigate:_,commit:j}=e,g=`react-directory-row ${h}`,N=`folder-row-${x}`;return u[0]!==p?(t=(0,a.jsx)(B,{item:p}),u[0]=p,u[1]=t):t=u[1],u[2]!==b||u[3]!==y||u[4]!==p||u[5]!==_?(n=(0,a.jsx)(L,{initialFocus:y,item:p,getItemUrl:b,onNavigate:_}),u[2]=b,u[3]=y,u[4]=p,u[5]=_,u[6]=n):n=u[6],u[7]!==t||u[8]!==n?(l=(0,a.jsx)("td",{className:"react-directory-row-name-cell-small-screen",colSpan:2,children:(0,a.jsxs)("div",{className:"react-directory-filename-column",children:[t,n]})}),u[7]=t,u[8]=n,u[9]=l):l=u[9],u[10]!==p?(i=(0,a.jsx)(B,{item:p}),u[10]=p,u[11]=i):i=u[11],u[12]!==b||u[13]!==y||u[14]!==p||u[15]!==_?(o=(0,a.jsx)(L,{initialFocus:y,item:p,getItemUrl:b,onNavigate:_}),u[12]=b,u[13]=y,u[14]=p,u[15]=_,u[16]=o):o=u[16],u[17]!==i||u[18]!==o?(s=(0,a.jsx)("td",{className:"react-directory-row-name-cell-large-screen",colSpan:1,children:(0,a.jsxs)("div",{className:"react-directory-filename-column",children:[i,o]})}),u[17]=i,u[18]=o,u[19]=s):s=u[19],u[20]!==j?(d=(0,a.jsx)("td",{className:"react-directory-row-commit-cell",children:(0,a.jsx)(D,{commit:j})}),c=(0,a.jsx)("td",{children:(0,a.jsx)(E,{commit:j})}),u[20]=j,u[21]=c,u[22]=d):(c=u[21],d=u[22]),u[23]!==f||u[24]!==g||u[25]!==c||u[26]!==N||u[27]!==l||u[28]!==s||u[29]!==d?(m=(0,a.jsxs)("tr",{className:g,onClick:f,id:N,children:[l,s,d,c]}),u[23]=f,u[24]=g,u[25]=c,u[26]=N,u[27]=l,u[28]=s,u[29]=d,u[30]=m):m=u[30],m};function z(e){let t,n,l=(0,r.c)(13),{initialFocus:i,item:o,commit:s,onNavigate:c,getItemUrl:d,navigate:u,index:h,className:f}=e;l[0]!==d||l[1]!==o||l[2]!==u?(t=e=>{if(window.matchMedia(`(max-width: ${m.Gy.small-1}px)`).matches&&!e.defaultPrevented)if("submodule"===o.contentType){let e=o.submoduleUrl;e&&(0,b.startTransition)(()=>u(e))}else(0,b.startTransition)(()=>u(d(o)))},l[0]=d,l[1]=o,l[2]=u,l[3]=t):t=l[3];let x=t;return l[4]!==f||l[5]!==s||l[6]!==d||l[7]!==h||l[8]!==i||l[9]!==o||l[10]!==x||l[11]!==c?(n=(0,a.jsx)(M,{className:f,onClickHandler:x,index:h,item:o,initialFocus:i,getItemUrl:d,onNavigate:c,commit:s}),l[4]=f,l[5]=s,l[6]=d,l[7]=h,l[8]=i,l[9]=o,l[10]=x,l[11]=c,l[12]=n):n=l[12],n}M.displayName="RowContent",z.displayName="WrappedDirectoryRow";let U=b.memo(z);function W(e){let t,n,l,o,s,c,u=(0,r.c)(15),{initialFocus:f,linkTo:x,linkRef:j,navigate:g}=e,N=(0,i.l)();u[0]!==x||u[1]!==g?(t=()=>{window.matchMedia(`(max-width: ${m.Gy.medium-1}px)`).matches&&(0,b.startTransition)(()=>g(x))},u[0]=x,u[1]=g,u[2]=t):t=u[2];let v=t;u[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(d.W,{as:"h3",text:"parent directory"}),u[3]=n):n=u[3];let C=!!f||null;return u[4]!==N?(l=()=>(0,_.KE)(N),u[4]=N,u[5]=l):l=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.jsxs)("div",{className:(0,O.$)("width-full","DirectoryRow-module__Box__hrMJ9"),children:[(0,a.jsx)(y.A,{icon:h.FileDirectoryFillIcon,size:"small",className:"DirectoryRow-module__Octicon__mOawz"}),".."]}),u[6]=o):o=u[6],u[7]!==j||u[8]!==x||u[9]!==C||u[10]!==l?(s=(0,a.jsxs)("td",{colSpan:3,className:"f5 text-normal tmp-px-3",children:[n,(0,a.jsx)(p.A,{"aria-label":"Parent directory","data-react-autofocus":C,"data-testid":"up-tree",as:w.N,muted:!0,onClick:l,ref:j,rel:"nofollow",to:x,className:"DirectoryRow-module__PrimerLink__COEaW",children:o})]}),u[7]=j,u[8]=x,u[9]=C,u[10]=l,u[11]=s):s=u[11],u[12]!==v||u[13]!==s?(c=(0,a.jsx)(H,{onClick:v,id:"folder-row-0",children:s}),u[12]=v,u[13]=s,u[14]=c):c=u[14],c}U.displayName="DirectoryRow",W.displayName="GoDirectoryUpRowInner";let K=b.memo(W);K.displayName="GoDirectoryUpRow";var V=n(53035),q=n(83233);function G(e){let t,n=(0,r.c)(3),{overview:l}=e,i=(0,V.E)();return n[0]!==i||n[1]!==l?(t=i?(0,a.jsx)(Y,{overview:l}):(0,a.jsx)(Q,{overview:l}),n[0]=i,n[1]=l,n[2]=t):t=n[2],t}function Q(e){let t,n=(0,r.c)(3),{overview:l}=e,{commitInfo:d}=function(){let e,t,n,a=(0,r.c)(8),l=(0,i.l)(),d=(0,o.z)(),m=(0,s.t)();a[0]===Symbol.for("react.memo_cache_sentinel")?(e={loading:!0},a[0]=e):e=a[0];let[u,h]=(0,b.useState)(e),f=(0,j.Xl)(),x=m.name,p=m.ownerLogin,y=d.name;return a[1]!==f||a[2]!==l||a[3]!==y||a[4]!==x||a[5]!==p?(t=()=>{let e=(0,c.IO9)({repo:{name:x,ownerLogin:p},action:"tree-commit-info",commitish:y,path:l}),t=!1;return(async()=>{h({loading:!0});let n=await (0,g.lS)(e);if(!t)try{n.ok?h({commitInfo:await n.json()}):(f({variant:"warning",message:"Failed to load latest commit information."}),h({error:!0}))}catch{h({error:!0})}})(),function(){t=!0}},n=[f,l,y,x,p],a[1]=f,a[2]=l,a[3]=y,a[4]=x,a[5]=p,a[6]=t,a[7]=n):(t=a[6],n=a[7]),(0,b.useEffect)(t,n),u}();return n[0]!==d||n[1]!==l?(t=(0,a.jsx)(X,{overview:l,commitInfo:d}),n[0]=d,n[1]=l,n[2]=t):t=n[2],t}function Y(e){let t,n=(0,r.c)(3),{overview:l}=e,{commitInfo:i}=(0,q.C)();return n[0]!==i||n[1]!==l?(t=(0,a.jsx)(X,{overview:l,commitInfo:i}),n[0]=i,n[1]=l,n[2]=t):t=n[2],t}function X(e){let t,n,j,g,w,k,S,T,A,B,L,I,R,D,E,M,z,W,V,q,G,Q,Y,X,J,Z=(0,r.c)(71),{overview:ee,commitInfo:et}=e,en=(0,s.t)(),ea=(0,i.l)(),er=(0,o.z)(),{items:el,templateDirectorySuggestionUrl:ei,totalCount:eo}=(0,l.d)(),{items:es}=function(e){let t,n,a,l,i=(0,r.c)(10),o=e.length>100,[s,c]=(0,b.useState)(o);i[0]!==s?(t=()=>{s&&(0,b.startTransition)(()=>{c(!1)})},n=[s],i[0]=s,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,b.useEffect)(t,n),i[3]!==e||100!==i[4]||i[5]!==s?(a=s?e.slice(0,100):e,i[3]=e,i[4]=100,i[5]=s,i[6]=a):a=i[6];let d=a;return i[7]!==d||i[8]!==s?(l={truncated:s,items:d},i[7]=d,i[8]=s,i[9]=l):l=i[9],l}(el),[ec,ed]=b.useState(!!ee),em=eo-el.length,eu=ea.length>1;if(Z[0]!==ea||Z[1]!==er.name||Z[2]!==en){let e=(0,c.ylB)(ea);t=(0,c.IO9)({repo:en,action:"tree",commitish:er.name,path:e}),Z[0]=ea,Z[1]=er.name,Z[2]=en,Z[3]=t}else t=Z[3];let eh=t;Z[4]!==ea||Z[5]!==er.name||Z[6]!==en?(n=(0,c.IO9)({repo:en,commitish:er.name,path:ea,action:"upload"}),Z[4]=ea,Z[5]=er.name,Z[6]=en,Z[7]=n):n=Z[7];let ef=n,ex=b.useRef(null),{getItemUrl:ep}=(0,N.Z)(),ey=(0,u.Zp)(),{focusHint:eb}=(0,_.xu)(),e_=b.useRef(-1);Z[8]===Symbol.for("react.memo_cache_sentinel")?(j=e=>{0===e.screenX&&0===e.screenY&&ex.current?.focus()},Z[8]=j):j=Z[8];let ej=j;Z[9]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{ed(!1)},Z[9]=g):g=Z[9];let eg=g;Z[10]===Symbol.for("react.memo_cache_sentinel")?(w=e=>{let t;e_.current=e;let n=document.getElementById(`folder-row-${e}`);(t=window.matchMedia(`(max-width: ${m.Gy.medium}px)`).matches?n?.querySelector(".react-directory-row-name-cell-small-screen"):n?.querySelector(".react-directory-row-name-cell-large-screen"))||(t=n),t?.getElementsByTagName("a")[0]?.focus()},Z[10]=w):w=Z[10];let eN=w;Z[11]!==eu||Z[12]!==es.length?(k=(0,a.jsx)("button",{hidden:!0,"data-testid":"focus-next-element-button","data-hotkey":"j",onClick:()=>{eN(Math.min(e_.current+1,eu?es.length:es.length-1))}}),Z[11]=eu,Z[12]=es.length,Z[13]=k):k=Z[13],Z[14]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)("button",{hidden:!0,"data-testid":"focus-previous-element-button","data-hotkey":"k",onClick:()=>{eN(Math.max(e_.current-1,0))}}),T=(0,a.jsx)(d.W,{as:"h2",text:"Folders and files",id:"folders-and-files"}),Z[14]=S,Z[15]=T):(S=Z[14],T=Z[15]);let ev=ee&&"DirectoryContent-module__OverviewHeaderRow__hOrKy";if(Z[16]!==ev?(A=(0,O.$)(ev),Z[16]=ev,Z[17]=A):A=Z[17],Z[18]===Symbol.for("react.memo_cache_sentinel")?(B=(0,a.jsx)("th",{colSpan:2,className:"DirectoryContent-module__Box__iC_5e",children:(0,a.jsx)("span",{className:"text-bold",children:"Name"})}),Z[18]=B):B=Z[18],Z[19]===Symbol.for("react.memo_cache_sentinel")?(L=(0,a.jsx)("th",{colSpan:1,className:"DirectoryContent-module__Box_1__fuSBO",children:(0,a.jsx)("span",{className:"text-bold",children:"Name"})}),Z[19]=L):L=Z[19],Z[20]===Symbol.for("react.memo_cache_sentinel")?(I=(0,a.jsx)("th",{className:"hide-sm",children:(0,a.jsx)(f.A,{inline:!0,title:"Last commit message",className:"width-fit",children:(0,a.jsx)("span",{className:"text-bold",children:"Last commit message"})})}),Z[20]=I):I=Z[20],Z[21]===Symbol.for("react.memo_cache_sentinel")?(R=(0,a.jsx)("th",{colSpan:1,className:"DirectoryContent-module__Box_2__Ccrx7",children:(0,a.jsx)(f.A,{inline:!0,title:"Last commit date",className:"width-fit",children:(0,a.jsx)("span",{className:"text-bold",children:"Last commit date"})})}),Z[21]=R):R=Z[21],Z[22]!==A?(D=(0,a.jsxs)(P,{className:A,children:[B,L,I,R]}),Z[22]=A,Z[23]=D):D=Z[23],Z[24]!==em||Z[25]!==ee?(E=!!ee&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("tr",{className:"DirectoryContent-module__Box_3__gl6dE",children:(0,a.jsx)("td",{colSpan:3,className:"bgColor-muted p-1 rounded-top-2",children:(0,a.jsx)(v.S,{commitCount:ee?.commitCount})})}),em>0?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:3,children:(0,a.jsxs)(x.A,{variant:"warning",className:"rounded-0",children:[(0,a.jsx)(y.A,{icon:h.AlertIcon}),"Sorry, we had to truncate this directory to 1,000 files. ",em," entries were omitted from the list."]})})}):null]}),Z[24]=em,Z[25]=ee,Z[26]=E):E=Z[26],Z[27]!==eb||Z[28]!==eu||Z[29]!==es||Z[30]!==ey||Z[31]!==eh?(M=eu&&(0,a.jsx)(K,{initialFocus:!eb||!es.some(e=>e.path===eb),linkTo:eh,linkRef:ex,navigate:ey}),Z[27]=eb,Z[28]=eu,Z[29]=es,Z[30]=ey,Z[31]=eh,Z[32]=M):M=Z[32],Z[33]!==et||Z[34]!==eb||Z[35]!==ep||Z[36]!==eu||Z[37]!==es||Z[38]!==ey||Z[39]!==ec){let e;Z[41]!==et||Z[42]!==eb||Z[43]!==ep||Z[44]!==eu||Z[45]!==ey||Z[46]!==ec?(e=(e,t)=>(0,a.jsx)(U,{initialFocus:e.path===eb,item:e,commit:(et||{})[e.name],onNavigate:ej,getItemUrl:ep,navigate:ey,className:ec&&t>=10?"truncate-for-mobile":void 0,index:eu?t+1:t},e.name),Z[41]=et,Z[42]=eb,Z[43]=ep,Z[44]=eu,Z[45]=ey,Z[46]=ec,Z[47]=e):e=Z[47],z=es.map(e),Z[33]=et,Z[34]=eb,Z[35]=ep,Z[36]=eu,Z[37]=es,Z[38]=ey,Z[39]=ec,Z[40]=z}else z=Z[40];let eC=ec&&es.length>10?"show-for-mobile":"d-none";return Z[48]!==eC?(W=(0,O.$)(eC,"DirectoryContent-module__Box_4__RhIsE"),Z[48]=eC,Z[49]=W):W=Z[49],Z[50]===Symbol.for("react.memo_cache_sentinel")?(V=(0,a.jsx)("td",{colSpan:3,onClick:eg,className:"DirectoryContent-module__Box_5__GaE8N",children:(0,a.jsx)("div",{children:(0,a.jsx)(p.A,{as:"button",onClick:eg,children:"View all files"})})}),Z[50]=V):V=Z[50],Z[51]!==W?(q=(0,a.jsx)("tr",{className:W,"data-testid":"view-all-files-row",children:V}),Z[51]=W,Z[52]=q):q=Z[52],Z[53]!==E||Z[54]!==M||Z[55]!==z||Z[56]!==q?(G=(0,a.jsxs)("tbody",{children:[E,M,z,q]}),Z[53]=E,Z[54]=M,Z[55]=z,Z[56]=q,Z[57]=G):G=Z[57],Z[58]!==ei?(Q=ei&&(0,a.jsx)($,{children:(0,a.jsx)(H,{children:(0,a.jsxs)("td",{colSpan:3,children:["Customize the issue creation experience with a ",(0,a.jsx)("code",{children:"config.yml"})," file."," ",(0,a.jsx)(p.A,{inline:!0,href:ei,children:"Learn more about configuring a template chooser."})]})})}),Z[58]=ei,Z[59]=Q):Q=Z[59],Z[60]!==D||Z[61]!==G||Z[62]!==Q?(Y=(0,a.jsxs)(F,{"aria-labelledby":"folders-and-files",children:[D,G,Q]}),Z[60]=D,Z[61]=G,Z[62]=Q,Z[63]=Y):Y=Z[63],Z[64]!==en.currentUserCanPush||Z[65]!==ef?(X=en.currentUserCanPush&&(0,a.jsx)(C,{uploadUrl:ef}),Z[64]=en.currentUserCanPush,Z[65]=ef,Z[66]=X):X=Z[66],Z[67]!==Y||Z[68]!==X||Z[69]!==k?(J=(0,a.jsxs)("div",{"data-hpc":!0,children:[k,S,T,Y,X]}),Z[67]=Y,Z[68]=X,Z[69]=k,Z[70]=J):J=Z[70],J}G.displayName="DirectoryContent",Q.displayName="DirectoryContentWithHook",Y.displayName="DirectoryContentWithProvider",X.displayName="DirectoryContentInternal"},20049(e,t,n){n.d(t,{e:()=>h});var a=n(74848),r=n(16522),l=n(68541),i=n(54242),o=n(23666),s=n(38621),c=n(83223),d=n(96540),m=n(10095),u=n(97313);let h=(0,d.memo)(function(e){let t=(0,r.c)(17),{errorMessage:n,onAnchorClick:d,path:h,richText:f,stickyHeaderHeight:x,timedOut:p}=e,y=(0,i.t)(),b=(0,l.z)();if(n){let e,r,l,i;return t[0]!==p?(e=p&&(0,a.jsx)(m.A,{icon:s.HourglassIcon,size:32}),t[0]=p,t[1]=e):e=t[1],t[2]!==n?(r=(0,a.jsx)("div",{"data-testid":"directory-richtext-error-message",children:n}),t[2]=n,t[3]=r):r=t[3],t[4]!==h||t[5]!==b||t[6]!==y||t[7]!==p?(l=p&&(0,a.jsxs)("div",{children:["But you can view the"," ",(0,a.jsx)(c.A,{inline:!0,href:(0,o.IO9)({repo:y,commitish:b.name,action:"raw",path:h}),"data-testid":"directory-richtext-timeout-raw-link",children:"raw file"}),"."]}),t[4]=h,t[5]=b,t[6]=y,t[7]=p,t[8]=l):l=t[8],t[9]!==e||t[10]!==r||t[11]!==l?(i=(0,a.jsxs)("div",{className:"tmp-py-6 tmp-px-3 text-center",children:[e,r,l]}),t[9]=e,t[10]=r,t[11]=l,t[12]=i):i=t[12],i}if(f){let e;return t[13]!==d||t[14]!==f||t[15]!==x?(e=(0,a.jsx)(u.s,{onAnchorClick:d,richText:f,stickyHeaderHeight:x,className:"DirectoryRichtextContent-module__SharedMarkdownContent__hHXUL"}),t[13]=d,t[14]=f,t[15]=x,t[16]=e):e=t[16],e}return null});h.displayName="DirectoryRichtextContent"},28547(e,t,n){n.d(t,{Xl:()=>c,lG:()=>m,x7:()=>s,yY:()=>d});var a=n(74848),r=n(16522),l=n(96540),i=n(88015);let o=(0,l.createContext)({banners:[],addBanner:()=>void 0,addQueuedBanner:()=>void 0});function s(){return(0,l.use)(o).banners}function c(){return(0,l.use)(o).addBanner}function d(){return(0,l.use)(o).addQueuedBanner}function m(e){let t,n,s,c,d,m,u,h,f,x=(0,r.c)(15),{children:p}=e,y=(0,i.zy)();x[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],x[0]=t):t=x[0];let[b,_]=(0,l.useState)(t);x[1]===Symbol.for("react.memo_cache_sentinel")?(n=[],x[1]=n):n=x[1];let[j,g]=(0,l.useState)(n);x[2]===Symbol.for("react.memo_cache_sentinel")?(s=e=>_(t=>[...t,e]),x[2]=s):s=x[2];let N=s;x[3]===Symbol.for("react.memo_cache_sentinel")?(c=e=>g(t=>[...t,e]),x[3]=c):c=x[3];let v=c;x[4]!==b?(d={banners:b,addBanner:N,addQueuedBanner:v},x[4]=b,x[5]=d):d=x[5];let C=d;x[6]!==j?(m=()=>{_(j),g([])},x[6]=j,x[7]=m):m=x[7];let w=(0,l.useEffectEvent)(m);return x[8]!==w?(u=()=>{w()},x[8]=w,x[9]=u):u=x[9],x[10]!==y.key?(h=[y.key],x[10]=y.key,x[11]=h):h=x[11],(0,l.useEffect)(u,h),x[12]!==p||x[13]!==C?(f=(0,a.jsx)(o,{value:C,children:p}),x[12]=p,x[13]=C,x[14]=f):f=x[14],f}o.displayName="CodeViewBannersContext",m.displayName="CodeViewBannersProvider"},83233(e,t,n){n.d(t,{C:()=>s,f:()=>o});var a=n(74848),r=n(16522),l=n(96540);let i=l.createContext({commitInfo:void 0,error:void 0,loading:!1});function o(e){let t,n,l=(0,r.c)(7),{children:o,commitInfo:s,error:c,loading:d}=e;l[0]!==s||l[1]!==c||l[2]!==d?(t={commitInfo:s,error:c,loading:d},l[0]=s,l[1]=c,l[2]=d,l[3]=t):t=l[3];let m=t;return l[4]!==o||l[5]!==m?(n=(0,a.jsx)(i,{value:m,children:o}),l[4]=o,l[5]=m,l[6]=n):n=l[6],n}function s(){return l.use(i)}i.displayName="CommitInfoContext",o.displayName="CommitInfoProvider"},69901(e,t,n){n.d(t,{X:()=>s,d:()=>o});var a=n(74848),r=n(16522),l=n(96540);let i=l.createContext({});function o(){return l.use(i)}function s(e){let t,n,l=(0,r.c)(9),{payload:o,children:s}=e,{items:c,readme:d,totalCount:m,templateDirectorySuggestionUrl:u,showBranchInfobar:h}=o;l[0]!==c||l[1]!==d||l[2]!==h||l[3]!==u||l[4]!==m?(t={items:c,readme:d,totalCount:m,templateDirectorySuggestionUrl:u,showBranchInfobar:h},l[0]=c,l[1]=d,l[2]=h,l[3]=u,l[4]=m,l[5]=t):t=l[5];let f=t;return l[6]!==s||l[7]!==f?(n=(0,a.jsx)(i,{value:f,children:s}),l[6]=s,l[7]=f,l[8]=n):n=l[8],n}i.displayName="TreeContext",s.displayName="CurrentTreeProvider"},51336(e,t,n){n.d(t,{s:()=>r});var a=n(50964);function r(){return(0,a.X)()}},52318(e,t,n){n.d(t,{S:()=>o,h:()=>s});var a=n(74848),r=n(16522),l=n(96540);let i=l.createContext({latestCommit:void 0,error:null,isLoading:!1});function o(e){let t,n,l=(0,r.c)(7),{children:o,latestCommit:s,error:c,isLoading:d}=e;l[0]!==c||l[1]!==d||l[2]!==s?(t={latestCommit:s,error:c,isLoading:d},l[0]=c,l[1]=d,l[2]=s,l[3]=t):t=l[3];let m=t;return l[4]!==o||l[5]!==m?(n=(0,a.jsx)(i,{value:m,children:o}),l[4]=o,l[5]=m,l[6]=n):n=l[6],n}function s(){return l.use(i)}i.displayName="LatestCommitContext",o.displayName="LatestCommitProvider"},11337(e,t,n){n.d(t,{p:()=>r});var a=n(96540);function r(e){let[t,n]=(0,a.useState)(e),[r,l]=(0,a.useState)(e);return e===t||e===r||(n(e),function e(t,n){if(t===n)return!0;if("object"!=typeof t||typeof t!=typeof n||!t||!n)return!1;if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(let a=0;af});var a=n(74848),r=n(16522),l=n(19129),i=n(38621),o=n(26108),s=n(80117),c=n(55717),d=n(96540),m=n(34164),u=n(15582),h=n(933);function f(e){let t,n,f,x,p,y,b,_,j,g,N,v,C,w,k=(0,r.c)(33);k[0]!==e?({icon:y,size:b,onCopy:p,textToCopy:j,tooltipProps:g,variant:_,ariaLabel:t,className:n,disabled:f,...x}=e,k[0]=e,k[1]=t,k[2]=n,k[3]=f,k[4]=x,k[5]=p,k[6]=y,k[7]=b,k[8]=_,k[9]=j,k[10]=g):(t=k[1],n=k[2],f=k[3],x=k[4],p=k[5],y=k[6],b=k[7],_=k[8],j=k[9],g=k[10]);let S=void 0===y?i.CopyIcon:y,T=void 0===b?"medium":b,A=void 0===_?"invisible":_,[B,L]=d.useState(!1),I=(0,l.A)();k[11]!==I||k[12]!==p||k[13]!==j?(N=()=>{L(!0),(0,u.D)(j),p?.(),setTimeout(()=>I()&&L(!1),2e3)},k[11]=I,k[12]=p,k[13]=j,k[14]=N):N=k[14];let R=N,D=t??`Copy "${j}" to clipboard`,E=B?"Copied!":D,O=B?i.CheckIcon:S,F=B?"color-fg-success":void 0;k[15]!==n||k[16]!==F?(v=(0,m.$)(F,n),k[15]=n,k[16]=F,k[17]=v):v=k[17],k[18]!==x||k[19]!==R||k[20]!==T||k[21]!==O||k[22]!==v||k[23]!==A?(C={size:T,variant:A,onClick:R,icon:O,className:v,...x},k[18]=x,k[19]=R,k[20]=T,k[21]=O,k[22]=v,k[23]=A,k[24]=C):C=k[24];let P=C,H=(0,d.useId)();return k[25]!==B||k[26]!==f||k[27]!==D||k[28]!==P||k[29]!==H||k[30]!==g||k[31]!==E?(w=f?(0,a.jsx)(o.K,{...P,"aria-label":D,disabled:!0}):(0,a.jsxs)(a.Fragment,{children:[B&&(0,a.jsx)(s.s,{children:(0,a.jsx)(h.e,{children:"Copied!"})}),(0,a.jsx)(c.m,{text:E,"aria-label":D,type:"label",id:H,"aria-hidden":!0,...g,className:(0,m.$)("CopyToClipboardButton-module__tooltip__BhMvU",g?.className),children:(0,a.jsx)(o.K,{...P,"aria-labelledby":H})})]}),k[25]=B,k[26]=f,k[27]=D,k[28]=P,k[29]=H,k[30]=g,k[31]=E,k[32]=w):w=k[32],w}f.displayName="CopyToClipboardButton"},15582(e,t,n){n.d(t,{D:()=>a});function a(e){let t;if("clipboard"in navigator)return navigator.clipboard.writeText(e);let n=document.body;if(!n)return Promise.reject(Error());let a=((t=document.createElement("pre")).style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="5px",t.textContent=e,t);return n.appendChild(a),!function(e){if("clipboard"in navigator)return navigator.clipboard.writeText(e.textContent||"");let t=getSelection();if(null==t)return Promise.reject(Error());t.removeAllRanges();let n=document.createRange();n.selectNodeContents(e),t.addRange(n),document.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}(a),n.removeChild(a),Promise.resolve()}},73973(e,t,n){n.d(t,{KE:()=>s,xu:()=>c});var a=n(16522),r=n(88015),l=n(96540);let i=0,o=null;function s(e,t){o={id:++i,hint:e,context:t,setAt:"u"{o&&o.id===d&&o.setAt!==c&&(null===o.consumedAt?o.consumedAt=c:o.consumedAt!==c&&(o=null))},t=[c,d],i[0]=c,i[1]=e,i[2]=t):(e=i[1],t=i[2]),(0,l.useEffect)(e,t),!o){let e;return i[3]===Symbol.for("react.memo_cache_sentinel")?(e={focusHint:null,context:void 0},i[3]=e):e=i[3],e}if(o.setAt===c){let e;return i[4]===Symbol.for("react.memo_cache_sentinel")?(e={focusHint:null,context:void 0},i[4]=e):e=i[4],e}if(null!==o.consumedAt&&o.consumedAt!==c){let e;return i[5]===Symbol.for("react.memo_cache_sentinel")?(e={focusHint:null,context:void 0},i[5]=e):e=i[5],e}return i[6]===Symbol.for("react.memo_cache_sentinel")?(n={focusHint:o.hint,context:o.context},i[6]=n):n=i[6],n}},32442(e,t,n){n.d(t,{V:()=>h});var a=n(74848),r=n(16522),l=n(96540),i=n(38621),o=n(26108),s=n(21373),c=n(7478),d=n(61398),m=n(19519);let u=(0,l.lazy)(()=>Promise.all([n.e("59299"),n.e("83465"),n.e("90225"),n.e("98131"),n.e("7463"),n.e("15272"),n.e("41167"),n.e("41013"),n.e("78885"),n.e("89996"),n.e("79039"),n.e("82681"),n.e("62094"),n.e("46903"),n.e("26371"),n.e("87221"),n.e("32285"),n.e("46287"),n.e("86065"),n.e("91894"),n.e("17513"),n.e("15696"),n.e("36600"),n.e("32296"),n.e("33684"),n.e("66231"),n.e("76241"),n.e("18222"),n.e("96755"),n.e("4916"),n.e("6478"),n.e("62874"),n.e("44880"),n.e("9991"),n.e("41998"),n.e("80022"),n.e("50304"),n.e("17363"),n.e("9292"),n.e("74703"),n.e("2630"),n.e("5401"),n.e("88164"),n.e("97290"),n.e("96086"),n.e("47341"),n.e("21105")]).then(n.bind(n,74659)).then(e=>({default:e.NewAgentTaskButtonContent})));function h(e){let t,n,c,h,x,p=(0,r.c)(26),{isIconButton:y,icon:b,label:_,onOpen:j,onClose:g,setContentOpen:N,open:v,currentRepo:C,currentReference:w,hideRepoSelector:k,eventType:S,size:T,tooltipDirection:A,variant:B,decoupledModeEnabled:L}=e,I=void 0===b?i.AgentIcon:b,R=void 0===_?"New agent session":_,[D,E]=(0,l.useState)(!!v),{isServer:O}=(0,m.V)(),F=(0,l.useRef)(null);p[0]!==j?(t=()=>{E(!0),j?.()},p[0]=j,p[1]=t):t=p[1];let P=t;p[2]!==g||p[3]!==N?(n=()=>{E(!1),g?.(),N?.(!1)},p[2]=g,p[3]=N,p[4]=n):n=p[4];let H=n,$=C?`${R} in ${C.ownerLogin}/${C.name}`:R;return p[5]!==P||p[6]!==I||p[7]!==y||p[8]!==R||p[9]!==T||p[10]!==A||p[11]!==B?(c=y?(0,a.jsx)(o.K,{ref:F,icon:I,"aria-label":R,size:T,tooltipDirection:A,variant:B,onClick:P}):(0,a.jsx)(s.Q,{ref:F,onClick:P,leadingVisual:I,size:T,children:R}),p[5]=P,p[6]=I,p[7]=y,p[8]=R,p[9]=T,p[10]=A,p[11]=B,p[12]=c):c=p[12],p[13]!==w||p[14]!==C||p[15]!==L||p[16]!==$||p[17]!==S||p[18]!==H||p[19]!==k||p[20]!==D||p[21]!==O?(h=D&&!O&&(0,a.jsx)(d.l,{title:$,onClose:H,returnFocusRef:F,position:{narrow:"fullscreen"},children:(0,a.jsx)(d.l.Body,{className:"p-0",children:(0,a.jsx)(l.Suspense,{fallback:(0,a.jsx)(f,{}),children:(0,a.jsx)(u,{currentRepo:C,currentReference:w,hideRepoSelector:k,setOpen:H,eventType:S,decoupledModeEnabled:L})})})}),p[13]=w,p[14]=C,p[15]=L,p[16]=$,p[17]=S,p[18]=H,p[19]=k,p[20]=D,p[21]=O,p[22]=h):h=p[22],p[23]!==c||p[24]!==h?(x=(0,a.jsxs)(a.Fragment,{children:[c,h]}),p[23]=c,p[24]=h,p[25]=x):x=p[25],x}function f(){let e,t=(0,r.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("div",{className:"d-flex flex-column flex-items-center tmp-p-6",children:(0,a.jsx)(c.A,{srText:"Loading\u2026"})}),t[0]=e):e=t[0],e}u.displayName="LazyNewAgentTaskButtonContent",h.displayName="NewAgentTaskButton",f.displayName="FallbackContent"},30012(e,t,n){n.d(t,{v:()=>o});var a=n(74848),r=n(16522),l=n(96540),i=n(56205);function o(e){let t,n=(0,r.c)(7),{login:o,profileName:s,isAgent:c}=e,d=(0,l.use)(i._);if(c){let e;return n[0]!==o?(e=(0,a.jsx)(a.Fragment,{children:o}),n[0]=o,n[1]=e):e=n[1],e}if("name_handle"===d&&s?.trim()){let e;return n[2]!==o||n[3]!==s?(e=(0,a.jsxs)(a.Fragment,{children:[s," (",o,")"]}),n[2]=o,n[3]=s,n[4]=e):e=n[4],e}return n[5]!==o?(t=(0,a.jsx)(a.Fragment,{children:o}),n[5]=o,n[6]=t):t=n[6],t}o.displayName="ProfileReference"},56205(e,t,n){n.d(t,{_:()=>l,z:()=>o});var a=n(74848),r=n(16522);let l=(0,n(96540).createContext)("handle");l.displayName="UserNameDisplayContext";let i={NAME_HANDLE:"name_handle",NAME_AND_HANDLE:"name_handle",HANDLE:"handle"};function o(e){let t,n=(0,r.c)(3),{value:o,children:s}=e,c=o&&i[o.toUpperCase()]||"handle";return n[0]!==s||n[1]!==c?(t=(0,a.jsx)(l,{value:c,children:s}),n[0]=s,n[1]=c,n[2]=t):t=n[2],t}o.displayName="UserNameDisplayContextProvider"},14350(e,t,n){n.d(t,{W:()=>i});var a=n(74848),r=n(16522),l=n(46249);function i(e){let t,n,i,o,s=(0,r.c)(8);return s[0]!==e?({as:t,text:i,...n}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=i):(t=s[1],n=s[2],i=s[3]),s[4]!==t||s[5]!==n||s[6]!==i?(o=(0,a.jsx)(l.A,{as:t,className:"sr-only ScreenReaderHeading-module__userSelectNone__rwWIk","data-testid":"screen-reader-heading",...n,children:i}),s[4]=t,s[5]=n,s[6]=i,s[7]=o):o=s[7],o}i.displayName="ScreenReaderHeading"},60213(e,t,n){n.d(t,{E:()=>h,q:()=>u});var a=n(16522),r=n(5225),l=n(23666),i=n(40109),o=n(78597),s=n(96540);async function c(e){let t=await (0,o.lS)(e);return t.ok?await t.json():void 0}let d=new Map,m=(0,r.A)(c,{cache:d});function u(){d.clear()}function h(e,t,n,r){let i,o,c,d,u,h=(0,a.c)(15),[x,p]=(0,s.useState)(),[y,b]=(0,s.useState)(!1),[_,j]=(0,s.useState)(!0);h[0]!==n||h[1]!==r||h[2]!==t||h[3]!==e?(i=t&&e&&n&&r?(0,l.IO9)({repo:{name:t,ownerLogin:e},commitish:n,action:"latest-commit",path:r}):null,h[0]=n,h[1]=r,h[2]=t,h[3]=e,h[4]=i):i=h[4];let g=i;return h[5]===Symbol.for("react.memo_cache_sentinel")?(o=[],h[5]=o):o=h[5],(0,s.useEffect)(f,o),h[6]!==g?(c=()=>{let e=!1;return(async()=>{if(!g)return;b(!1),j(!0),p(void 0);let t=await m(g);if(!e){try{t?p(t):b(!0)}catch{b(!0)}j(!1)}})(),function(){e=!0}},h[6]=g,h[7]=c):c=h[7],h[8]!==g||h[9]!==n?(d=[g,n],h[8]=g,h[9]=n,h[10]=d):d=h[10],(0,s.useEffect)(c,d),h[11]!==y||h[12]!==x||h[13]!==_?(u=[x,_,y],h[11]=y,h[12]=x,h[13]=_,h[14]=u):u=h[14],u}function f(){let e=new AbortController;return document.addEventListener(i.z.START,u,{signal:e.signal}),()=>{e.abort()}}},64979(e,t,n){n.d(t,{R:()=>l});var a=n(16522),r=n(96540);function l(e,t){let n,l=(0,a.c)(3);l[0]!==t||l[1]!==e?(n=()=>{let n=`web-vitals:${e}`;return document.addEventListener(n,t),()=>{document.removeEventListener(n,t)}},l[0]=t,l[1]=e,l[2]=n):n=l[2],(0,r.useEffect)(n)}}}]); //# sourceMappingURL=54709-d12bc8cff82dc5d7-d4915f520ff435a0.js.map