Return here after confirming access on GitHub. Anonymization publishes the configured content, including content from private repositories. Gists currently use OAuth.
Sign in to manage your anonymizations. Both connections use the same Anonymous GitHub account.
-
- If you already have an Anonymous GitHub account, sign in with
- legacy GitHub OAuth
- to keep access to your existing anonymizations. You can connect the read-only GitHub App from GitHub connections after signing in.
-
Your code. Your identity, protected.Sign in to GitHub
+
Sign in to create and manage your anonymizations.
+
+
+
Already have an account? Sign in with legacy GitHub OAuth to keep access to your anonymizations. You can connect the read-only App from GitHub connections after signing in.
+
+
Read-only access
+
Continue with GitHub
+
Connect through the GitHub App with read-only repository access.
Manage how GitHub shares your code. Your anonymizations and URLs stay the same.
',2)),e.connectionError?(l(),d("p",Hc,c(e.connectionError),1)):m("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",Bc,"Loading your connections\u2026")):m("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=o=>e.loadConnections())},"Try again",8,Gc)):m("v-if",!0),e.connections?(l(),d("div",jc,[s("div",Wc,[e.connections.appEnabled?(l(),d("section",Kc,[t[8]||(t[8]=s("div",{class:"connection-top"},[s("i",{class:"fab fa-github","aria-hidden":"true"}),s("span",{class:"connection-badge"},"Recommended")],-1)),s("div",Yc,[t[3]||(t[3]=s("h2",null,"GitHub App",-1)),s("span",{class:O(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[9]||(t[9]=s("p",null,"Read-only access to the repositories you choose.",-1)),e.connections.appError?(l(),d("p",Jc,c(e.connections.appError)+". Reconnect to restore access.",1)):m("v-if",!0),s("div",Qc,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",xc,[...t[4]||(t[4]=[y("Manage repository access ",-1),s("i",{class:"fas fa-external-link-alt","aria-hidden":"true"},null,-1)])])):m("v-if",!0),s("a",{class:O(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},c(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[10]||(t[10]=s("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",Xc,[(l(!0),d(Y,null,oe(e.connections.installations,o=>(l(),d("li",{key:o.id},[s("div",null,[s("strong",null,c(o.account),1),o.suspended?(l(),d("span",Zc," \xB7 Suspended")):m("v-if",!0)]),s("a",{target:"_self",href:"/github/app/install?installationId="+o.id},[t[5]||(t[5]=y("Manage access ",-1)),s("span",tp,"for "+c(o.account),1),t[6]||(t[6]=y(" \u2192",-1))],8,ep)]))),128))])):m("v-if",!0),s("button",{class:"connection-link",disabled:e.busy,onClick:t[1]||(t[1]=o=>e.loadConnections())},[...t[7]||(t[7]=[s("i",{class:"fas fa-sync-alt","aria-hidden":"true"},null,-1),y(" Refresh access",-1)])],8,sp)])):m("v-if",!0),s("section",null,[t[13]||(t[13]=s("div",{class:"connection-top"},[s("i",{class:"fas fa-key","aria-hidden":"true"}),s("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),s("div",np,[t[11]||(t[11]=s("h2",null,"GitHub OAuth",-1)),s("span",{class:O(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=s("p",null,"For existing OAuth anonymizations and gists.",-1)),t[15]||(t[15]=s("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(l(),d("a",op,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):m("v-if",!0),e.connections.oauthConnected?(l(),d("div",rp,[e.connections.gistCount?(l(),d("p",ip,c(e.connections.gistCount)+" gist(s) still require OAuth.",1)):m("v-if",!0),t[12]||(t[12]=s("p",null,"Switch all dependent repositories before revoking access. Gists still require OAuth.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-danger",disabled:e.busy||e.connections.gistCount||e.connections.resources.some(o=>o.connection==="oauth"),onClick:t[2]||(t[2]=o=>e.disconnectOAuth())},"Revoke OAuth access",8,ap)):m("v-if",!0)])):m("v-if",!0)])]),s("section",lp,[s("div",dp,[t[16]||(t[16]=s("h2",null,"Repository connections",-1)),s("span",up,c(e.connections.resources?.length||0)+" resources",1)]),t[18]||(t[18]=s("p",null,"Check access, then switch each resource to the GitHub App.",-1)),e.connections.resources?.length?m("v-if",!0):(l(),d("div",cp,[...t[17]||(t[17]=[s("i",{class:"fas fa-code-branch","aria-hidden":"true"},null,-1),s("div",null,[s("h3",null,"No repository connections yet"),s("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),s("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(l(!0),d(Y,null,oe(e.connections.resources,o=>(l(),d("div",{class:"connection-resource",key:o.type+o.id},[s("div",pp,[s("strong",null,c(o.name||o.id),1),s("small",null,c(o.type)+" \xB7 "+c(o.id),1)]),s("span",{class:O(["connection-badge",{"connection-badge-muted":o.connection==="oauth"}])},c(o.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),o.connection==="oauth"&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",fp,[s("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(o,"github-app",!0)},"Check read-only access",8,mp),o.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:r=>e.changeConnection(o,"github-app",!1)},"Switch to read-only access",8,hp)):m("v-if",!0),o.eligible===!1?(l(),d("span",vp,"Access unavailable. Allow this repository on GitHub, then check again.")):m("v-if",!0)])):m("v-if",!0),o.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:r=>e.changeConnection(o,"oauth",!1)},"Use OAuth",8,yp)):m("v-if",!0)]))),128)),t[19]||(t[19]=s("p",{class:"connection-footnote"},[s("i",{class:"fas fa-info-circle","aria-hidden":"true"}),y(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):m("v-if",!0)])}var gp={class:"container page paper-page"},bp={key:0,class:"alert alert-warning",role:"note"},wp={key:1},kp={key:2},_p={key:3},Ep={key:4};function Wa(e,t){return l(),d("div",gp,[t[3]||(t[3]=s("h1",{class:"paper-page-title"},[y("Connect to "),s("em",null,"GitHub")],-1)),t[4]||(t[4]=s("p",null,"Sign in to manage your anonymizations. Both connections use the same Anonymous GitHub account.",-1)),e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("p",bp,[...t[0]||(t[0]=[y(" If you already have an Anonymous GitHub account, sign in with ",-1),s("a",{class:"alert-link",target:"_self",href:"/github/login"},"legacy GitHub OAuth",-1),y(" to keep access to your existing anonymizations. You can connect the read-only GitHub App from GitHub connections after signing in. ",-1)])])):m("v-if",!0),e.site_options?.GITHUB_APP_ENABLED?(l(),d("p",wp,[...t[1]||(t[1]=[s("a",{class:"btn btn-ink",target:"_self",href:"/github/app/login"},"Continue with read-only GitHub App",-1)])])):m("v-if",!0),e.site_options?.GITHUB_APP_ENABLED?(l(),d("p",kp,"Choose which repositories to allow after signing in. Private repositories are accessed with read-only permissions.")):m("v-if",!0),e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("p",_p,[...t[2]||(t[2]=[s("a",{class:"btn",target:"_self",href:"/github/login"},"Continue with legacy GitHub OAuth",-1)])])):m("v-if",!0),e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("p",Ep,"OAuth supports existing connections and gists. GitHub's private repository OAuth scope includes write access.")):m("v-if",!0)])}var Cp={class:"paper-empty"};function Ka(e,t){return l(),d("div",Cp,[...t[0]||(t[0]=[ke('
Error \xB7 404
This link isn\u2019t here.
The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.
',3)),s("div",Hg,[s("span",Bg,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",Gg,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),s("span",{class:O(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=n=>{e.query.ready=!e.query.ready,e.query.page=1})},[t[18]||(t[18]=y("Ready ",-1)),s("span",jg,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:O(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=n=>{e.query.preparing=!e.query.preparing,e.query.page=1})},[t[19]||(t[19]=y("Preparing ",-1)),s("span",Wg,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],2),s("span",{class:O(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=n=>{e.query.error=!e.query.error,e.query.page=1})},[t[20]||(t[20]=y("Errored ",-1)),s("span",Kg,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:O(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=n=>{e.query.expired=!e.query.expired,e.query.page=1})},[t[21]||(t[21]=y("Expired ",-1)),s("span",Yg,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],2),s("span",{class:O(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=n=>{e.query.removed=!e.query.removed,e.query.page=1})},[t[22]||(t[22]=y("Removed ",-1)),s("span",Jg,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],2)]),e.fetchError?(l(),d("div",Qg,[t[23]||(t[23]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",xg,[m(" Row 1: search + scoped inputs + headline actions "),s("div",Xg,[s("div",Zg,[E(s("input",eb,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",tb,"/"))]),s("span",sb,[t[24]||(t[24]=s("label",null,"Owner",-1)),E(s("input",ob,null,512),[[o,{state:e.viewState,set:n=>{e.query.owner=n},value:e.query?.owner,form:null,options:{}}]])]),s("span",rb,[t[25]||(t[25]=s("label",null,"Conference",-1)),E(s("input",ib,null,512),[[o,{state:e.viewState,set:n=>{e.query.conference=n},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=n=>e.exportCsv())},[...t[26]||(t[26]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",ab,[s("button",{class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[27]||(t[27]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,lb),s("span",db,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[28]||(t[28]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,ub)])]),m(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",cb,[s("div",pb,[(l(!0),d(Y,null,oe(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",fb,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(n.key)},[...t[30]||(t[30]=[s("i",{class:"fas fa-times"},null,-1)])],8,mb)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",hb,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=y(" selected",-1))]),s("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=n=>e.bulkRefresh())},[...t[32]||(t[32]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force refresh",-1)])]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=n=>e.bulkRemoveCache())},[...t[33]||(t[33]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=n=>e.clearSelection())},"Clear")])):m("v-if",!0),s("div",vb,[s("div",yb,[s("div",gb,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,bb)]),s("div",wb,[s("span",{class:O(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=n=>e.sortBy("source.repositoryName"))},[t[34]||(t[34]=y("Repository ",-1)),s("i",{class:O(["fas",e.sortIcon("source.repositoryName")])},null,2)],2)]),s("div",kb,[s("span",{class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=n=>e.sortBy("status"))},[t[35]||(t[35]=y("Status ",-1)),s("i",{class:O(["fas",e.sortIcon("status")])},null,2)],2)]),s("div",_b,[s("span",{class:O(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=n=>e.sortBy("pageView"))},[t[36]||(t[36]=y("Views ",-1)),s("i",{class:O(["fas",e.sortIcon("pageView")])},null,2)],2)]),s("div",Eb,[s("span",{class:O(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=n=>e.sortBy("anonymizeDate"))},[t[37]||(t[37]=y("Anonymized ",-1)),s("i",{class:O(["fas",e.sortIcon("anonymizeDate")])},null,2)],2)]),t[38]||(t[38]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(Y,null,oe(e.filteredRepositories,(n,i)=>(l(),d("div",{class:O(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[s("div",Cb,[E(s("input",Nb,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),s("div",Sb,[t[43]||(t[43]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",Db,[s("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,Rb),s("div",Tb,[s("a",{textContent:c(n?.source?.repositoryName),href:e.safeUrl("https://github.com/"+n?.source?.repositoryName+"/")},null,8,Ob),n?.options?.update?(l(),d("span",Ab,[t[39]||(t[39]=y("\xA0\xB7\xA0",-1)),s("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,Ib)])):m("v-if",!0),n?.options?.update?m("v-if",!0):(l(),d("span",Vb,[t[40]||(t[40]=y("\xA0\xB7\xA0@",-1)),s("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,Pb)])),n?.conference?(l(),d("span",qb,[t[41]||(t[41]=y("\xA0\xB7\xA0",-1)),t[42]||(t[42]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" terms",1)])])]),s("div",Mb,[s("span",$b,[s("span",{class:O(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,Lb)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,Fb)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,Ub),s("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,zb),s("div",Hb,[s("div",Bb,[t[55]||(t[55]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",Gb,[s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[44]||(t[44]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,jb),s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[45]||(t[45]=[s("i",{class:"fa fa-eye"},null,-1),y(" View repo",-1)])],8,Wb),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[46]||(t[46]=[s("i",{class:"fas fa-globe"},null,-1),y(" View page",-1)])],8,Kb)):m("v-if",!0),s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.fetchGithubInfo(n),["prevent"])},[...t[47]||(t[47]=[s("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,Yb),t[53]||(t[53]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.updateRepository(n),["prevent"])},[...t[48]||(t[48]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update",-1)])],8,Jb),[[G,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.updateRepository(n),["prevent"])},[...t[49]||(t[49]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable",-1)])],8,Qb),[[G,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.showStatusMessage(n),["prevent"])},[...t[50]||(t[50]=[s("i",{class:"fas fa-exclamation-triangle"},null,-1),y(" View status message",-1)])],8,xb),[[G,n?.statusMessage]]),t[54]||(t[54]=s("div",{class:"dropdown-divider"},null,-1)),s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.removeCache(n),["prevent"])},[...t[51]||(t[51]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])],8,Xb),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:we(a=>e.removeRepository(n),["prevent"])},[...t[52]||(t[52]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,Zb),[[G,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",e1,[...t[56]||(t[56]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No repositories match the current filters.",-1)])])):m("v-if",!0)]),s("div",t1,[s("span",s1,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",n1,[s("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[57]||(t[57]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous ",-1)])],8,o1),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,r1),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[58]||(t[58]=[y(" Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,i1)])):m("v-if",!0),s("span",a1,[t[60]||(t[60]=s("label",null,"Per page",-1)),E((l(),d("select",l1,[...t[59]||(t[59]=[ke('',5)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var d1={class:"container paper-page admin-page"},u1={class:"paper-crumbs"},c1={class:"here"},p1={class:"paper-page-title"},f1={key:0,class:"user-detail-card"},m1={class:"user-header"},h1=["src"],v1={class:"status-dot-wrap"},y1=["textContent"],g1={key:0,class:"type-badge type-repo"},b1={class:"user-actions",style:{"margin-top":"4px"}},w1={class:"user-detail-grid"},k1={class:"detail-value"},_1={class:"detail-value"},E1={class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},C1={class:"detail-value"},N1=["href"],S1={class:"detail-value"},D1={class:"detail-value"},R1={key:0},T1={key:1,class:"text-muted"},O1={class:"detail-value"},A1={key:0,style:{"margin-top":"20px"}},I1={class:"paper-table w-100",style:{"margin-top":"10px"}},V1={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},P1={class:"cell-anon",role:"cell"},q1={class:"anon-text"},M1=["textContent"],$1={class:"cell-expires",role:"cell"},L1={key:1,class:"admin-section-header"},F1={class:"section-count"},U1={key:2,class:"user-detail-card"},z1={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},H1={key:0,class:"alert alert-warning",role:"alert"},B1={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},G1={key:1,class:"paper-table w-100"},j1={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},W1=["textContent"],K1=["textContent"],Y1={role:"cell"},J1={key:0},Q1={key:1,class:"text-muted"},x1={role:"cell"},X1=["onClick"],Z1={key:2,class:"paper-table-empty"},ew={class:"admin-section-header"},tw={class:"section-count"},sw={class:"admin-summary"},nw={class:"summary-total"},ow={class:"count"},rw={class:"count"},iw={class:"count"},aw={class:"count"},lw={class:"count"},dw={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},uw={class:"admin-filter-row"},cw={class:"search-wrap"},pw={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},fw={key:3,class:"bulk-bar"},mw={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},hw={class:"paper-table-head",role:"row"},vw={role:"columnheader",style:{width:"28px"}},yw=["checked"],gw={role:"columnheader"},bw={role:"columnheader"},ww={role:"columnheader",class:"num"},kw={role:"columnheader"},_w={role:"cell",style:{width:"28px"}},Ew={type:"checkbox","aria-label":"Select repository"},Cw={class:"cell-anon",role:"cell"},Nw={class:"anon-text"},Sw=["textContent","href"],Dw={class:"anon-sub"},Rw=["textContent","href"],Tw={key:0},Ow=["textContent","href"],Aw={key:1},Iw=["textContent","href"],Vw={key:2},Pw={class:"cell-status",role:"cell"},qw={class:"status-line"},Mw=["textContent"],$w=["textContent","title"],Lw=["textContent"],Fw=["textContent"],Uw={class:"cell-actions",role:"cell"},zw={class:"dropdown"},Hw={class:"dropdown-menu dropdown-menu-right"},Bw=["href"],Gw=["href"],jw=["href"],Ww=["onClick"],Kw=["onClick"],Yw=["onClick"],Jw=["onClick"],Qw=["onClick"],xw=["onClick"],Xw={key:0,class:"paper-table-empty"};function Za(e,t){let o=be("field"),r=be("form");return l(),d("div",d1,[s("div",u1,[t[22]||(t[22]=s("a",{href:"/admin/users"},"Users",-1)),t[23]||(t[23]=y(" \xA0/\xA0 ",-1)),s("span",c1,c(e.userInfo?.username||"Profile"),1)]),s("h1",p1,c(e.userInfo?.username||"User"),1),t[81]||(t[81]=ke('',1)),e.userInfo?(l(),d("div",f1,[s("div",m1,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,h1)):m("v-if",!0),s("div",null,[s("h1",null,[y(c(e.userInfo?.username)+" ",1),s("span",v1,[s("span",{class:O(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),s("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,y1)]),e.userInfo?.isAdmin?(l(),d("span",g1,"Admin")):m("v-if",!0)]),s("div",b1,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=n=>e.banUser())},[...t[24]||(t[24]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])])):m("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=n=>e.activateUser())},[...t[25]||(t[25]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Activate",-1)])])):m("v-if",!0),e.userInfo?.isAdmin?m("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=n=>e.promoteUser())},[...t[26]||(t[26]=[s("i",{class:"fas fa-user-shield"},null,-1),y(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=n=>e.demoteUser())},[...t[27]||(t[27]=[s("i",{class:"fas fa-user-minus"},null,-1),y(" Remove admin",-1)])])):m("v-if",!0)])])]),s("div",w1,[t[30]||(t[30]=s("div",{class:"detail-label"},"ID",-1)),s("div",k1,c(e.userInfo?._id),1),t[31]||(t[31]=s("div",{class:"detail-label"},"Email",-1)),s("div",_1,c(e.userInfo?.emails?.[0]?.email),1),t[32]||(t[32]=s("div",{class:"detail-label"},"Access token",-1)),s("div",E1,c(e.userInfo?.accessTokens?.github),1),t[33]||(t[33]=s("div",{class:"detail-label"},"GitHub",-1)),s("div",C1,[s("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[28]||(t[28]=s("i",{class:"fab fa-github"},null,-1)),y(" "+c(e.userInfo?.username),1)],8,N1)]),t[34]||(t[34]=s("div",{class:"detail-label"},"Created",-1)),s("div",S1,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[35]||(t[35]=s("div",{class:"detail-label"},"Last connection",-1)),s("div",D1,[e.userInfo?.accessTokenDates?.github?(l(),d("span",R1,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):m("v-if",!0),e.userInfo?.accessTokenDates?.github?m("v-if",!0):(l(),d("span",T1,"never"))]),t[36]||(t[36]=s("div",{class:"detail-label"},"GitHub repos",-1)),s("div",O1,[y(c(e.userInfo?.repositories?.length)+" repositories ",1),s("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=n=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),s("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=n=>e.getGitHubRepositories())},[...t[29]||(t[29]=[s("i",{class:"fas fa-sync"},null,-1),y(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",A1,[t[39]||(t[39]=s("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),s("div",I1,[(l(!0),d(Y,null,oe(e.userInfo?.repositories,(n,i)=>(l(),d("div",V1,[s("div",P1,[t[37]||(t[37]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",q1,[s("span",{class:"repo-name",textContent:c(n?.name)},null,8,M1)])]),s("div",$1,[t[38]||(t[38]=s("i",{class:"fas fa-database"},null,-1)),y(" "+c(e.fmt?.humanFileSize(n?.size)),1)])]))),256))])])):m("v-if",!0)])):m("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",L1,[t[40]||(t[40]=s("h2",null,[s("i",{class:"fas fa-key"}),y(" API tokens")],-1)),s("span",F1,c(e.tokens?.length),1)])):m("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",U1,[t[46]||(t[46]=s("p",{class:"paper-page-lede"},[y("Personal API tokens for this admin account. Send as "),s("code",null,"Authorization: Bearer "),y(" to authenticate without GitHub OAuth (useful for development).")],-1)),E((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=we(n=>e.submitForm(n,()=>{e.createToken()}),["prevent"]))},[E(s("input",z1,null,512),[[o,{state:e.viewState,set:n=>{e.tokenForm.name=n},value:e.tokenForm?.name,form:null,options:{}}]]),t[41]||(t[41]=s("button",{type:"submit",class:"btn btn-primary"},[s("i",{class:"fas fa-plus"}),y(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",H1,[t[42]||(t[42]=s("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),s("pre",B1,c(e.tokenForm?.plaintext),1),s("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=n=>e.tokenForm.plaintext=null)},"Dismiss")])):m("v-if",!0),e.tokens?.length?(l(),d("div",G1,[t[44]||(t[44]=s("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[s("div",{role:"columnheader"},"Name"),s("div",{role:"columnheader"},"Created"),s("div",{role:"columnheader"},"Last used"),s("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(Y,null,oe(e.tokens,(n,i)=>(l(),d("div",j1,[s("div",{role:"cell",textContent:c(n?.name)},null,8,W1),s("div",{role:"cell",textContent:c(e.fmt?.humanTime(n?.createdAt))},null,8,K1),s("div",Y1,[n?.lastUsedAt?(l(),d("span",J1,c(e.fmt?.humanTime(n?.lastUsedAt)),1)):m("v-if",!0),n?.lastUsedAt?m("v-if",!0):(l(),d("span",Q1,"never"))]),s("div",x1,[s("button",{class:"btn btn-sm text-danger",title:"Revoke",onClick:a=>e.revokeToken(n)},[...t[43]||(t[43]=[s("i",{class:"fas fa-trash-alt"},null,-1)])],8,X1)])]))),256))])):m("v-if",!0),e.tokens?.length?m("v-if",!0):(l(),d("div",Z1,[...t[45]||(t[45]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No tokens yet.",-1)])]))])):m("v-if",!0),s("div",ew,[t[47]||(t[47]=s("h2",null,[s("i",{class:"fas fa-code-branch"}),y(" Anonymized repositories")],-1)),s("span",tw,c(e.repositories?.length),1)]),s("div",sw,[s("span",nw,c(e.fmt?.number(e.repositories?.length)),1),s("span",{class:O(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=n=>e.filters.status.ready=!e.filters.status.ready)},[t[48]||(t[48]=y("Ready ",-1)),s("span",ow,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:O(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=n=>e.filters.status.preparing=!e.filters.status.preparing)},[t[49]||(t[49]=y("Preparing ",-1)),s("span",rw,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],2),s("span",{class:O(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=n=>e.filters.status.error=!e.filters.status.error)},[t[50]||(t[50]=y("Errored ",-1)),s("span",iw,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:O(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=n=>e.filters.status.expired=!e.filters.status.expired)},[t[51]||(t[51]=y("Expired ",-1)),s("span",aw,c(e.fmt?.number(e.statusCountFor("expired"))),1)],2),s("span",{class:O(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=n=>e.filters.status.removed=!e.filters.status.removed)},[t[52]||(t[52]=y("Removed ",-1)),s("span",lw,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),E((l(),d("form",dw,[s("div",uw,[s("div",cw,[E(s("input",pw,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),t[54]||(t[54]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=n=>e.exportCsv())},[...t[53]||(t[53]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",fw,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[55]||(t[55]=y(" selected",-1))]),s("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=n=>e.bulkRefresh())},[...t[56]||(t[56]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force refresh",-1)])]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=n=>e.bulkRemoveCache())},[...t[57]||(t[57]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=n=>e.clearSelection())},"Clear")])):m("v-if",!0),s("div",mw,[s("div",hw,[s("div",vw,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,yw)]),s("div",gw,[s("span",{class:O(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=n=>e.sortBy("source.repositoryName"))},[t[58]||(t[58]=y("Repository ",-1)),s("i",{class:O(["fas",e.sortIcon("source.repositoryName")])},null,2)],2)]),s("div",bw,[s("span",{class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=n=>e.sortBy("status"))},[t[59]||(t[59]=y("Status ",-1)),s("i",{class:O(["fas",e.sortIcon("status")])},null,2)],2)]),s("div",ww,[s("span",{class:O(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=n=>e.sortBy("pageView"))},[t[60]||(t[60]=y("Views ",-1)),s("i",{class:O(["fas",e.sortIcon("pageView")])},null,2)],2)]),s("div",kw,[s("span",{class:O(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=n=>e.sortBy("anonymizeDate"))},[t[61]||(t[61]=y("Anonymized ",-1)),s("i",{class:O(["fas",e.sortIcon("anonymizeDate")])},null,2)],2)]),t[62]||(t[62]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(Y,null,oe(e.filteredRepositories,(n,i)=>(l(),d("div",{class:O(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[s("div",_w,[E(s("input",Ew,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),s("div",Cw,[t[67]||(t[67]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",Nw,[s("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,Sw),s("div",Dw,[s("a",{textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,Rw),n?.options?.update?(l(),d("span",Tw,[t[63]||(t[63]=y("\xA0\xB7\xA0",-1)),s("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,Ow)])):m("v-if",!0),n?.options?.update?m("v-if",!0):(l(),d("span",Aw,[t[64]||(t[64]=y("\xA0\xB7\xA0@",-1)),s("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,Iw)])),n?.conference?(l(),d("span",Vw,[t[65]||(t[65]=y("\xA0\xB7\xA0",-1)),t[66]||(t[66]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" terms",1)])])]),s("div",Pw,[s("span",qw,[s("span",{class:O(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,Mw)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,$w)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,Lw),s("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,Fw),s("div",Uw,[s("div",zw,[t[79]||(t[79]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",Hw,[s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[68]||(t[68]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,Bw),s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[69]||(t[69]=[s("i",{class:"fa fa-eye"},null,-1),y(" View repo",-1)])],8,Gw),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[70]||(t[70]=[s("i",{class:"fas fa-globe"},null,-1),y(" View page",-1)])],8,jw)):m("v-if",!0),s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.fetchGithubInfo(n),["prevent"])},[...t[71]||(t[71]=[s("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,Ww),t[77]||(t[77]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.updateRepository(n),["prevent"])},[...t[72]||(t[72]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update",-1)])],8,Kw),[[G,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.updateRepository(n),["prevent"])},[...t[73]||(t[73]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable",-1)])],8,Yw),[[G,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.showStatusMessage(n),["prevent"])},[...t[74]||(t[74]=[s("i",{class:"fas fa-exclamation-triangle"},null,-1),y(" View status message",-1)])],8,Jw),[[G,n?.statusMessage]]),t[78]||(t[78]=s("div",{class:"dropdown-divider"},null,-1)),s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.removeCache(n),["prevent"])},[...t[75]||(t[75]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])],8,Qw),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:we(a=>e.removeRepository(n),["prevent"])},[...t[76]||(t[76]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,xw),[[G,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",Xw,[...t[80]||(t[80]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No repositories match the current filters.",-1)])])):m("v-if",!0)])])}var Zw={class:"container paper-page admin-page"},ek={class:"admin-summary"},tk={class:"summary-total"},sk={class:"count"},nk={class:"count"},ok={class:"count"},rk={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},ik={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},ak={class:"admin-filter-row"},lk={class:"search-wrap"},dk={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},uk={key:0,class:"admin-search-hint"},ck={class:"admin-filter-inline"},pk={class:"form-control form-control-sm"},fk={class:"admin-filter-inline","aria-label":"Pagination"},mk=["disabled"],hk={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},vk=["disabled"],yk={key:0,class:"admin-filter-row"},gk={class:"admin-active-chips"},bk={class:"key"},wk=["onClick"],kk={key:1,class:"bulk-bar"},_k={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},Ek={class:"paper-table-head admin-users-row",role:"row"},Ck={role:"columnheader",style:{width:"28px"}},Nk=["checked"],Sk={role:"columnheader"},Dk={role:"columnheader"},Rk={role:"cell",style:{width:"28px"}},Tk={type:"checkbox","aria-label":"Select user"},Ok={class:"cell-anon",role:"cell"},Ak=["src"],Ik={class:"anon-text"},Vk=["textContent","href"],Pk={class:"anon-sub"},qk={key:0},Mk={key:1},$k=["href"],Lk={key:2},Fk={class:"cell-views num",role:"cell"},Uk=["textContent","href"],zk={class:"cell-status",role:"cell"},Hk=["textContent"],Bk={class:"cell-status",role:"cell"},Gk={key:0,class:"type-badge type-repo"},jk={key:1,class:"empty-dash"},Wk={class:"cell-actions",role:"cell"},Kk={class:"dropdown"},Yk={class:"dropdown-menu dropdown-menu-right"},Jk=["href"],Qk=["href"],xk=["onClick"],Xk=["onClick"],Zk={key:0,class:"paper-table-empty"},e_={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},t_={style:{"font-size":"12px",color:"var(--ink-muted)"}},s_={key:0,class:"pagination-compact"},n_=["disabled"],o_=["max"],r_=["disabled"],i_={class:"admin-filter-inline"},a_={class:"form-control form-control-sm"};function el(e,t){let o=be("field"),r=be("form");return l(),d("div",Zw,[t[43]||(t[43]=ke('
Admin \xA0/\xA0 Users
Users
',3)),s("div",ek,[s("span",tk,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",{class:O(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=n=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1})},[t[13]||(t[13]=y("Active ",-1)),s("span",sk,c(e.fmt?.number(e.statusCountFor("active"))),1)],2),s("span",{class:O(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=n=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1})},[t[14]||(t[14]=y("Banned ",-1)),s("span",nk,c(e.fmt?.number(e.statusCountFor("banned"))),1)],2),s("span",{class:O(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=n=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1})},[t[15]||(t[15]=y("Removed ",-1)),s("span",ok,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),e.fetchError?(l(),d("div",rk,[t[16]||(t[16]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",ik,[s("div",ak,[s("div",lk,[E(s("input",dk,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",uk,"/"))]),s("span",ck,[t[18]||(t[18]=s("label",null,"Role",-1)),E((l(),d("select",pk,[...t[17]||(t[17]=[s("option",{value:""},"Any",-1),s("option",{value:"admin"},"Admin",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.role=n},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=n=>e.exportCsv())},[...t[19]||(t[19]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",fk,[s("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[20]||(t[20]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,mk),s("span",hk,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[21]||(t[21]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,vk)])]),e.chips?.length?(l(),d("div",yk,[s("div",gk,[(l(!0),d(Y,null,oe(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",bk,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button",onClick:a=>e.clearFilter(n.key)},[...t[23]||(t[23]=[s("i",{class:"fas fa-times"},null,-1)])],8,wk)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",kk,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=y(" selected",-1))]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=n=>e.bulkBan())},[...t[25]||(t[25]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>{e.selected={},e.allSelected=!1})},"Clear")])):m("v-if",!0),s("div",_k,[s("div",Ek,[s("div",Ck,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,Nk)]),s("div",Sk,[s("span",{class:O(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=n=>e.sortBy("username"))},[t[26]||(t[26]=y("User ",-1)),s("i",{class:O(["fas",e.sortIcon("username")])},null,2)],2)]),t[28]||(t[28]=s("div",{role:"columnheader",class:"num"},"Repos",-1)),s("div",Dk,[s("span",{class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=n=>e.sortBy("status"))},[t[27]||(t[27]=y("Status ",-1)),s("i",{class:O(["fas",e.sortIcon("status")])},null,2)],2)]),t[29]||(t[29]=s("div",{role:"columnheader"},"Role",-1)),t[30]||(t[30]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(Y,null,oe(e.filteredUsers,(n,i)=>(l(),d("div",{class:O(["paper-table-row admin-users-row",{"row-selected":e.selected[n?.username]}]),role:"row"},[s("div",Rk,[E(s("input",Tk,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.username]=a},value:e.selected[n?.username],form:null,options:{}}]])]),s("div",Ok,[n?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(n?.photo)},null,8,Ak)):m("v-if",!0),s("div",Ik,[s("a",{class:"repo-name",textContent:c(n?.username),href:e.safeUrl("/admin/users/"+n?.username)},null,8,Vk),s("div",Pk,[n?.emails[0].email?(l(),d("span",qk,c(n?.emails[0].email),1)):m("v-if",!0),n?.emails[0].email?(l(),d("span",Mk,"\xA0\xB7\xA0")):m("v-if",!0),s("a",{target:"_blank",href:e.safeUrl("https://github.com/"+n?.username)},[t[31]||(t[31]=s("i",{class:"fab fa-github"},null,-1)),y(" "+c(n?.username),1)],8,$k),n?.dateOfEntry?(l(),d("span",Lk,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(n?.dateOfEntry)),1)):m("v-if",!0)])])]),s("div",Fk,[s("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(n?.repoCount||0)),href:e.safeUrl("/admin/?owner="+n?.username)},null,8,Uk)]),s("div",zk,[s("span",{class:O(["status-dot",{"status-ready":n?.status=="active","status-removed":n?.status=="removed"||n?.status=="banned"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,Hk)]),s("div",Bk,[n?.isAdmin?(l(),d("span",Gk,"Admin")):m("v-if",!0),n?.isAdmin?m("v-if",!0):(l(),d("span",jk,"\u2014"))]),s("div",Wk,[s("div",Kk,[t[37]||(t[37]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",Yk,[s("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+n?.username)},[...t[32]||(t[32]=[s("i",{class:"far fa-eye"},null,-1),y(" View details",-1)])],8,Jk),s("a",{class:"dropdown-item",href:e.safeUrl("/admin/?owner="+n?.username)},[...t[33]||(t[33]=[s("i",{class:"fas fa-code-branch"},null,-1),y(" View repositories",-1)])],8,Qk),t[36]||(t[36]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:we(a=>e.banUser(n),["prevent"])},[...t[34]||(t[34]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])],8,xk),[[G,n?.status=="active"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.activateUser(n),["prevent"])},[...t[35]||(t[35]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Activate",-1)])],8,Xk),[[G,n?.status=="removed"||n?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",Zk,[...t[38]||(t[38]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No users match the current filters.",-1)])])):m("v-if",!0)]),s("div",e_,[s("span",t_,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",s_,[s("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[39]||(t[39]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous",-1)])],8,n_),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,o_),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[40]||(t[40]=[y("Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,r_)])):m("v-if",!0),s("span",i_,[t[42]||(t[42]=s("label",null,"Per page",-1)),E((l(),d("select",a_,[...t[41]||(t[41]=[s("option",{value:"10"},"10",-1),s("option",{value:"25"},"25",-1),s("option",{value:"50"},"50",-1),s("option",{value:"100"},"100",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var l_={class:"anonymize-page h-100"},d_={key:0,class:"container py-3"},u_={key:0},c_={key:1},p_=["disabled"],f_=["disabled"],m_={class:"anonymize-landing"},h_={class:"anonymize-landing-inner"},v_={class:"form-group mt-4 mb-2"},y_={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},g_={class:"anonymize-workspace"},b_={class:"anonymize-topbar"},w_={class:"anonymize-topbar-inner"},k_={class:"paper-crumbs"},__={class:"here"},E_={class:"anonymize-topbar-head"},C_={class:"paper-page-title anonymize-topbar-title"},N_={key:0},S_={key:1},D_={class:"anonymize-split"},R_={class:"anonymize-form-col overflow-auto"},T_={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},O_={class:"paper-settings-section"},A_={class:"form-group"},I_=["disabled"],V_={class:"invalid-feedback"},P_={class:"invalid-feedback"},q_={class:"invalid-feedback"},M_={class:"invalid-feedback"},$_={key:0,class:"form-grid-2"},L_={class:"form-group"},F_={class:"input-group"},U_={class:"form-control",id:"branch",name:"branch"},z_=["textContent","value"],H_={class:"input-group-append"},B_={class:"form-group"},G_=["disabled"],j_={class:"invalid-feedback"},W_={class:"invalid-feedback"},K_={class:"form-check"},Y_={class:"form-check-input",type:"checkbox",id:"update",name:"update"},J_={class:"paper-settings-section"},Q_={class:"form-group"},x_=["disabled"],X_={class:"form-text text-muted"},Z_={class:"invalid-feedback"},e0={class:"form-group"},t0=["disabled"],s0={class:"form-text text-muted"},n0={class:"invalid-feedback"},o0={class:"form-group"},r0=["disabled"],i0={class:"form-text text-muted"},a0={class:"invalid-feedback"},l0={class:"form-group"},d0={class:"form-text text-muted"},u0=["href"],c0={class:"invalid-feedback"},p0={class:"form-text text-muted"},f0={class:"paper-settings-section"},m0={class:"form-group"},h0={class:"form-text text-muted"},v0={class:"warning-feedback"},y0={class:"invalid-feedback"},g0={class:"paper-settings-section"},b0={class:"form-check"},w0={class:"form-check-input",type:"checkbox",id:"link",name:"link"},k0={class:"form-check"},_0={class:"form-check-input",type:"checkbox",id:"image",name:"image"},E0={class:"form-check"},C0={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},N0={class:"form-check"},S0={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},D0={class:"form-check"},R0=["disabled"],T0={class:"form-check"},O0={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},A0={class:"form-check"},I0={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},V0={class:"form-check"},P0={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},q0={class:"form-check"},M0={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},$0={class:"form-check"},L0={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},F0={class:"form-check"},U0={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},z0={class:"form-check"},H0={class:"form-check-input",type:"checkbox",id:"title",name:"title"},B0={class:"form-check"},G0={class:"form-check-input",type:"checkbox",id:"body",name:"body"},j0={class:"form-check"},W0={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},K0={class:"form-check"},Y0={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},J0={class:"form-check"},Q0={class:"form-check-input",type:"checkbox",id:"username",name:"username"},x0={class:"form-check"},X0={class:"form-check-input",type:"checkbox",id:"date",name:"date"},Z0={class:"form-check"},eE={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},tE={class:"paper-settings-section"},sE={class:"form-grid-2"},nE={class:"form-group"},oE={class:"form-control",id:"expiration",name:"expiration"},rE={class:"form-group"},iE=["min","max"],aE={class:"invalid-feedback"},lE={class:"invalid-feedback"},dE={class:"paper-settings-section"},uE={class:"form-group"},cE={style:{position:"relative"}},pE={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},fE={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},mE=["onClick"],hE=["src"],vE=["textContent"],yE=["textContent"],gE={class:"coauthor-list"},bE={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},wE=["src"],kE=["textContent","href"],_E=["onClick"],EE={class:"form-text text-muted"},CE=["textContent"],NE={class:"anonymize-submit-bar"},SE={key:0,class:"anonymize-preview-col"},DE=["innerHTML"],RE={key:1,class:"anonymize-preview-col"},TE={class:"anonymize-preview-body"},OE={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},AE={class:"pr-title mb-1"},IE={key:0},VE=["textContent"],PE={key:0},qE={key:1},ME={key:2},$E={class:"pr-comments mt-3"},LE={class:"pr-comment"},FE={class:"pr-comment-head"},UE=["textContent"],zE={key:0,class:"pr-comment-date"},HE={key:3},BE={class:"pr-comments"},GE={class:"pr-comment"},jE={class:"pr-comment-head"},WE={key:0,class:"pr-comment-author"},KE=["textContent"],YE=["textContent"],JE={key:0,class:"pr-comment-body"},QE={key:2,class:"anonymize-preview-col"},xE={class:"anonymize-preview-body"},XE={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},ZE={class:"pr-title mb-1"},eC={key:0},tC=["textContent"],sC={key:0},nC={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},oC={key:2,class:"paper-tabs",role:"tablist"},rC=["textContent"],iC={class:"paper-tab-content"},aC={key:0},lC=["innerHTML"],dC={key:1},uC={class:"pr-comments"},cC={class:"pr-comment"},pC={class:"pr-comment-head"},fC={key:0,class:"pr-comment-author"},mC=["textContent"],hC=["textContent"],vC={key:0,class:"pr-comment-body"};function tl(e,t){let o=et("gist-file"),r=et("markdown"),n=be("field"),i=be("form");return l(),d("div",l_,[e.githubConnections?.appEnabled?(l(),d("div",d_,[e.isUpdate?(l(),d("span",u_,[y("Connection: "+c(e.githubConnection==="github-app"?"GitHub App (read-only)":"Legacy OAuth")+". ",1),t[12]||(t[12]=s("a",{href:"/connections"},"Change connection",-1))])):m("v-if",!0),e.isUpdate?m("v-if",!0):(l(),d("span",c_,[t[13]||(t[13]=y("Repository access: ",-1)),s("button",{class:"btn",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},"Read-only GitHub App",8,p_),e.githubConnections?.oauthConnected?(l(),d("button",{key:0,class:"btn",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Use existing OAuth access",8,f_)):m("v-if",!0)])),s("button",{class:"btn btn-ink",onClick:t[2]||(t[2]=a=>e.grantGitHubAccess())},c(e.githubConnections?.appConnected?"Allow repository access on GitHub":"Connect read-only GitHub access"),1),t[14]||(t[14]=s("p",{class:"mb-0"},[s("small",null,"Return here after confirming access on GitHub. Anonymization publishes the configured content, including content from private repositories. Gists currently use OAuth.")],-1))])):m("v-if",!0),m(" ===== STATE 1: No URL \u2014 centered input ===== "),E(s("div",m_,[s("div",h_,[t[16]||(t[16]=s("div",{class:"paper-crumbs"},[y("My work \xA0/\xA0 "),s("span",{class:"here"},"New anonymization")],-1)),t[17]||(t[17]=s("h1",{class:"paper-page-title"},[y("New "),s("em",null,"anonymization")],-1)),t[18]||(t[18]=s("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, strip every trace of identity, and hand you back a stable link. ",-1)),s("div",v_,[t[15]||(t[15]=s("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),E(s("input",y_,null,512),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),t[19]||(t[19]=s("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1))])],512),[[G,!e.sourceUrl]]),m(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),E(s("div",g_,[s("header",b_,[s("div",w_,[s("div",k_,[t[20]||(t[20]=s("a",{href:"/dashboard"},"My work",-1)),t[21]||(t[21]=y(" \xA0/\xA0 ",-1)),s("span",__,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),s("div",E_,[s("h1",C_,[e.isUpdate?m("v-if",!0):(l(),d("span",N_,[...t[22]||(t[22]=[y("New ",-1),s("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",S_,[...t[23]||(t[23]=[y("Edit ",-1),s("em",null,"anonymization",-1)])])):m("v-if",!0)]),E(s("span",{class:O(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[G,e.detectedType]])])])]),s("div",D_,[m(" Form column (left) "),s("div",R_,[E((l(),d("form",T_,[s("section",O_,[t[30]||(t[30]=s("div",{class:"paper-section-eyebrow"},"Source",-1)),s("div",A_,[t[24]||(t[24]=s("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,I_),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),E(s("div",V_," Please provide a valid GitHub URL. ",512),[[G,e.anonymize?.sourceUrl?.errors?.github]]),E(s("div",P_," Not accessible. The organization may restrict access. ",512),[[G,e.anonymize?.sourceUrl?.errors?.access]]),E(s("div",q_," Does not exist or is not accessible. ",512),[[G,e.anonymize?.sourceUrl?.errors?.missing]]),E(s("div",M_," Already anonymized. ",512),[[G,e.anonymize?.sourceUrl?.errors?.used]])]),e.detectedType==="repo"?(l(),d("div",$_,[s("div",L_,[t[26]||(t[26]=s("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),s("div",F_,[E((l(),d("select",U_,[(l(!0),d(Y,null,oe(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,z_))),256))])),[[n,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),s("div",H_,[s("button",{class:"btn",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[3]||(t[3]=a=>e.getBranches(!0))},[...t[25]||(t[25]=[s("i",{class:"fas fa-sync","aria-hidden":"true"},null,-1)])])])])]),s("div",B_,[t[27]||(t[27]=s("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),E(s("input",{class:O(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,G_),[[n,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),E(s("div",j_," The commit SHA is not valid. ",512),[[G,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),E(s("div",W_," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[G,e.anonymize?.commit?.errors?.exists]])])])):m("v-if",!0),E(s("div",K_,[E(s("input",Y_,null,512),[[n,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[28]||(t[28]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[29]||(t[29]=s("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[G,e.detectedType]])]),E(s("section",J_,[t[41]||(t[41]=s("div",{class:"paper-section-eyebrow"},"Identity",-1)),E(s("div",Q_,[t[33]||(t[33]=s("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,x_),[[n,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",X_,[t[31]||(t[31]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[32]||(t[32]=y(".",-1))]),E(s("div",Z_,"ID can only contain letters and numbers.",512),[[G,e.anonymize?.repoId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[G,e.anonymize?.repoId?.errors?.used]])],512),[[G,e.detectedType==="repo"]]),E(s("div",e0,[t[36]||(t[36]=s("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,t0),[[n,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",s0,[t[34]||(t[34]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[35]||(t[35]=y(".",-1))]),E(s("div",n0,"ID can only contain letters and numbers.",512),[[G,e.anonymize?.pullRequestId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[G,e.anonymize?.pullRequestId?.errors?.used]])],512),[[G,e.detectedType==="pr"]]),E(s("div",o0,[t[39]||(t[39]=s("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,r0),[[n,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",i0,[t[37]||(t[37]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[38]||(t[38]=y(".",-1))]),E(s("div",a0,"ID can only contain letters and numbers.",512),[[G,e.anonymize?.gistId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[G,e.anonymize?.gistId?.errors?.used]])],512),[[G,e.detectedType==="gist"]]),s("div",l0,[t[40]||(t[40]=s("label",{class:"paper-field-label",for:"conference"},[y("Conference "),s("span",{class:"paper-optional"},"(optional)")],-1)),E(s("input",{class:O(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[n,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),E(s("small",d0,[s("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,u0),y(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[G,e.conference_data]]),E(s("div",c0,"The conference is not activated.",512),[[G,e.anonymize?.conference?.errors?.activated]]),E(s("small",p0,"Link to a conference to apply its shared defaults.",512),[[G,!e.conference_data]])])],512),[[G,e.detectedType]]),E(s("section",f0,[t[49]||(t[49]=s("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),s("div",m0,[t[48]||(t[48]=s("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),E(s("textarea",{class:O(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[n,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),s("small",h0,[t[42]||(t[42]=y("One term per line (regex allowed). Replaced by ",-1)),s("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[43]||(t[43]=y(", or use ",-1)),t[44]||(t[44]=s("code",null,"term=>replacement",-1)),t[45]||(t[45]=y(" to pick your own (e.g. ",-1)),t[46]||(t[46]=s("code",null,"Anonymous=>ABC",-1)),t[47]||(t[47]=y(").",-1))]),E(s("div",v0,"Regex characters detected. Escape them if unintentional.",512),[[G,e.termsRegexWarning]]),E(s("div",y0,"Terms are in an invalid format.",512),[[G,e.anonymize?.terms?.errors?.format]])])],512),[[G,e.detectedType]]),E(s("section",g0,[t[68]||(t[68]=s("div",{class:"paper-section-eyebrow"},"Display",-1)),E(s("div",null,[s("div",b0,[E(s("input",w0,null,512),[[n,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[50]||(t[50]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),s("div",k0,[E(s("input",_0,null,512),[[n,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[51]||(t[51]=s("label",{class:"form-check-label",for:"image"},"Display images",-1))]),s("div",E0,[E(s("input",C0,null,512),[[n,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[52]||(t[52]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),s("div",N0,[E(s("input",S0,null,512),[[n,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[53]||(t[53]=s("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),s("div",D0,[E(s("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,R0),[[n,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[54]||(t[54]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),E(s("small",{class:"form-text text-muted d-block"},c(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),513),[[G,!e.details?.hasPage]]),E(s("small",{class:"form-text text-muted d-block"},c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),513),[[G,e.details?.hasPage&&e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch]])])],512),[[G,e.detectedType==="repo"]]),E(s("div",null,[s("div",T0,[E(s("input",O0,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[55]||(t[55]=s("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),s("div",A0,[E(s("input",I0,null,512),[[n,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[56]||(t[56]=s("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),s("div",V0,[E(s("input",P0,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[57]||(t[57]=s("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),s("div",q0,[E(s("input",M0,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[58]||(t[58]=s("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),s("div",$0,[E(s("input",L0,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[59]||(t[59]=s("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),s("div",F0,[E(s("input",U0,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[60]||(t[60]=s("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[G,e.detectedType==="gist"]]),E(s("div",null,[s("div",z0,[E(s("input",H0,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[61]||(t[61]=s("label",{class:"form-check-label",for:"title"},"PR title",-1))]),s("div",B0,[E(s("input",G0,null,512),[[n,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[62]||(t[62]=s("label",{class:"form-check-label",for:"body"},"PR body",-1))]),s("div",j0,[E(s("input",W0,null,512),[[n,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[63]||(t[63]=s("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),s("div",K0,[E(s("input",Y0,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[64]||(t[64]=s("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),s("div",J0,[E(s("input",Q0,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[65]||(t[65]=s("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),s("div",x0,[E(s("input",X0,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[66]||(t[66]=s("label",{class:"form-check-label",for:"date"},"Dates",-1))]),s("div",Z0,[E(s("input",eE,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[67]||(t[67]=s("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[G,e.detectedType==="pr"]])],512),[[G,e.detectedType]]),E(s("section",tE,[t[72]||(t[72]=s("div",{class:"paper-section-eyebrow"},"Expiration",-1)),s("div",sE,[s("div",nE,[t[70]||(t[70]=s("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),E((l(),d("select",oE,[...t[69]||(t[69]=[s("option",{value:"redirect"},"Redirect to GitHub when expired",-1),s("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),s("div",rE,[t[71]||(t[71]=s("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),E(s("input",{class:O(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,iE),[[n,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),E(s("div",aE,"Pick a date in the future.",512),[[G,e.anonymize?.expirationDate?.errors?.min]]),E(s("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[G,e.anonymize?.expirationDate?.errors?.max]]),E(s("div",lE,"Enter a valid expiration date.",512),[[G,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[G,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[G,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[G,e.detectedType]]),E(s("section",dE,[t[76]||(t[76]=s("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[77]||(t[77]=s("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),E(s("div",uE,[t[73]||(t[73]=s("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),s("div",cE,[E(s("input",pE,null,512),[[n,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),E(s("div",fE,[(l(!0),d(Y,null,oe(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:we(p=>e.addCoauthor(a,p),["prevent"])},[s("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,hE),s("span",{textContent:c(a?.username)},null,8,vE)],8,mE))),256))],512),[[G,e.coauthorResults?.length>0]])]),E(s("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,yE),[[G,e.coauthorError]])],512),[[G,e.role==="owner"||e.role==="admin"]]),s("div",gE,[(l(!0),d(Y,null,oe(e.coauthors,(a,u)=>(l(),d("div",bE,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,wE)):m("v-if",!0),s("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,kE),t[75]||(t[75]=s("span",{class:"type-badge type-coauthor"},"Co-author",-1)),E(s("button",{type:"button",class:"btn btn-sm",style:{"margin-left":"auto"},title:"Remove co-author",onClick:p=>e.removeCoauthor(a)},[...t[74]||(t[74]=[s("i",{class:"fas fa-times"},null,-1)])],8,_E),[[G,e.role==="owner"||e.role==="admin"]])]))),256)),E(s("div",EE," No co-authors yet. ",512),[[G,!e.coauthors||e.coauthors?.length===0]])])],512),[[G,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,CE)):m("v-if",!0),E(s("div",NE,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",class:"btn btn-ink",onClick:t[4]||(t[4]=we(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[78]||(t[78]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Repository ",-1)])])):m("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",class:"btn btn-ink",onClick:t[5]||(t[5]=we(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[79]||(t[79]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Repository ",-1)])])):m("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",class:"btn btn-ink",onClick:t[6]||(t[6]=we(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[80]||(t[80]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Pull Request ",-1)])])):m("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",class:"btn btn-ink",onClick:t[7]||(t[7]=we(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[81]||(t[81]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Pull Request ",-1)])])):m("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",class:"btn btn-ink",onClick:t[8]||(t[8]=we(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[82]||(t[82]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Gist ",-1)])])):m("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",class:"btn btn-ink",onClick:t[9]||(t[9]=we(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[83]||(t[83]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Gist ",-1)])])):m("v-if",!0)],512),[[G,e.detectedType]])])),[[i,e.viewState]])]),m(" Preview column (right) "),e.detectedType==="repo"&&e.html_readme?(l(),d("div",SE,[t[84]||(t[84]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"README with redactions applied")],-1)),s("div",{class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,DE)])):m("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",RE,[t[88]||(t[88]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"Gist with redactions applied")],-1)),s("div",TE,[s("div",OE,[s("h2",AE,[e.options?.title?(l(),d("span",IE,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):m("v-if",!0),s("span",{class:O(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,VE)):m("v-if",!0)]),e.options?.origin?(l(),d("small",PE,"Gist ID: "+c(e.details?.source?.gistId),1)):m("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",qE,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):m("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",ME,[s("ul",$E,[(l(!0),d(Y,null,oe(e.previewGistFiles,(a,u)=>(l(),d("li",LE,[s("div",FE,[s("strong",{textContent:c(a?.filename)},null,8,UE),a?.language?(l(),d("span",zE,c(a?.language),1)):m("v-if",!0)]),De(o,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):m("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",HE,[t[87]||(t[87]=s("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),s("ul",BE,[(l(!0),d(Y,null,oe(e.details?.gist?.comments,(a,u)=>(l(),d("li",GE,[s("div",jE,[e.options?.username?(l(),d("span",WE,[t[85]||(t[85]=s("i",{class:"far fa-user"},null,-1)),t[86]||(t[86]=y(" @",-1)),s("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,KE)])):m("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,YE)):m("v-if",!0)]),e.options?.body?(l(),d("div",JE,[De(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0)]))),256))])])):m("v-if",!0)])])):m("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",QE,[t[93]||(t[93]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"Pull request with redactions applied")],-1)),s("div",xE,[s("div",XE,[s("h2",ZE,[e.options?.title?(l(),d("span",eC,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):m("v-if",!0),s("span",{class:O(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,tC)):m("v-if",!0)]),e.options?.origin?(l(),d("small",sC,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):m("v-if",!0),e.options?.body?(l(),d("div",nC,[De(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",oC,[e.options?.diff?(l(),d("button",{key:0,class:O(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",onClick:t[10]||(t[10]=a=>e.prTabState.active="diff")},[...t[89]||(t[89]=[s("i",{class:"fas fa-code"},null,-1),y(" Diff ",-1)])],2)):m("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:O(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[11]||(t[11]=a=>e.prTabState.active="comments")},[t[90]||(t[90]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,rC)],2)):m("v-if",!0)])):m("v-if",!0),s("div",iC,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",aC,[s("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,lC)])):m("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",dC,[s("ul",uC,[(l(!0),d(Y,null,oe(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",cC,[s("div",pC,[e.options?.username?(l(),d("span",fC,[t[91]||(t[91]=s("i",{class:"far fa-user"},null,-1)),t[92]||(t[92]=y(" @",-1)),s("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,mC)])):m("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,hC)):m("v-if",!0)]),e.options?.body?(l(),d("div",vC,[De(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0)]))),256))])])):m("v-if",!0)])])])):m("v-if",!0)])],512),[[G,e.sourceUrl]])])}var yC={class:"container-fluid h-100 anonymize-page"},gC={class:"row h-100 flex-column flex-md-row"},bC={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},wC={class:"form-group"},kC={class:"form-group"},_C={class:"form-check"},EC={class:"form-check-input",type:"checkbox",id:"update",name:"update"},CC={class:"form-group"},NC={class:"form-text text-muted"},SC=["href"],DC={class:"invalid-feedback"},RC={class:"form-text text-muted"},TC={class:"form-group"},OC={id:"idHelp",class:"form-text text-muted"},AC={class:"invalid-feedback"},IC={class:"form-group"},VC={class:"invalid-feedback"},PC={class:"form-group"},qC={class:"form-control",id:"expiration",name:"expiration"},MC={class:"form-group",id:"expiration-date-form"},$C={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},LC={class:"accordion mb-3",id:"options"},FC={class:"card"},UC={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},zC={class:"card-body"},HC={class:"form-group mb-0"},BC={class:"form-check"},GC={class:"form-check-input",type:"checkbox",id:"link",name:"link"},jC={class:"form-check"},WC={class:"form-check-input",type:"checkbox",id:"image",name:"image"},KC={class:"form-check"},YC={class:"form-check-input",type:"checkbox",id:"date",name:"date"},JC={class:"form-check"},QC={class:"form-check-input",type:"checkbox",id:"username",name:"username"},xC={class:"form-check"},XC={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},ZC={class:"form-check"},eN={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},tN={class:"form-check"},sN={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},nN={class:"form-check"},oN={class:"form-check-input",type:"checkbox",id:"title",name:"title"},rN={class:"form-check"},iN={class:"form-check-input",type:"checkbox",id:"body",name:"body"},aN=["textContent"],lN={class:"anonymize-submit-bar"},dN={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},uN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},cN={class:"pr-title mb-1"},pN={key:0},fN=["textContent"],mN={key:0},hN={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},vN={class:"nav nav-tabs",id:"myTab",role:"tablist"},yN={key:0,class:"nav-item",role:"presentation"},gN={key:1,class:"nav-item",role:"presentation"},bN=["textContent"],wN={class:"tab-content",id:"pills-tabContent"},kN={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},_N={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},EN={style:{"overflow-x":"auto"}},CN=["innerHTML"],NN={key:0,class:"pr-comments list-group"},SN={class:"pr-comment list-group-item"},DN={class:"d-flex w-100 justify-content-between flex-wrap"},RN={key:0,class:"mb-1"},TN=["textContent"],ON={class:"mb-1"};function sl(e,t){let o=et("markdown"),r=be("field"),n=be("form");return l(),d("div",yC,[s("div",gC,[s("div",bC,[s("div",{class:O(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[E((l(),d("form",{class:O(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=ke('
Anonymize \xA0/\xA0 Pull request
Anonymize a pull request
Fill in the details \u2014 it only takes a minute.
Source
',4)),m(" pullRequestUrl "),s("div",wC,[t[2]||(t[2]=s("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[G,e.anonymize?.pullRequestUrl?.errors?.access]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[G,e.anonymize?.pullRequestUrl?.errors?.missing]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[G,e.anonymize?.pullRequestUrl?.errors?.used]])]),E(s("div",null,[s("div",kC,[s("div",_C,[E(s("input",EC,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=s("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=s("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=s("div",{class:"paper-section-eyebrow anonymize-section-title"},[s("i",{class:"fas fa-chalkboard-teacher"}),y(" Conference ID ")],-1)),m(" Conference "),s("div",CC,[t[5]||(t[5]=s("label",{for:"conference"},[y("Conference ID "),s("span",{class:"text-muted"},"(Optional)")],-1)),E(s("input",{class:O(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),E(s("small",NC,[s("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,SC),y(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[G,e.conference_data]]),E(s("div",DC," The conference is not activated. ",512),[[G,e.anonymize?.conference?.errors?.activated]]),E(s("small",RC," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[G,!e.conference_data]])]),t[27]||(t[27]=s("div",{class:"paper-section-eyebrow anonymize-section-title"},[s("i",{class:"fas fa-shield-alt"}),y(" Anonymization Options ")],-1)),m(" Pull Request ID "),s("div",TC,[t[6]||(t[6]=s("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",OC,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),E(s("div",AC," Repository id can only contain letters and numbers ",512),[[G,e.anonymize?.pullRequestId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[G,e.anonymize?.pullRequestId?.errors?.used]])]),m(" Terms "),s("div",IC,[t[7]||(t[7]=s("label",{for:"terms"},"Terms to anonymize",-1)),E(s("textarea",{class:O(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=s("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),E(s("div",VC," Terms are in an invalid format ",512),[[G,e.anonymize?.terms?.errors?.format]])]),s("div",PC,[t[10]||(t[10]=s("label",{for:"expiration"},"Expiration strategy",-1)),E((l(),d("select",qC,[...t[9]||(t[9]=[s("option",{value:"never",selected:""},"Never expire",-1),s("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),s("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=s("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),E(s("div",MC,[t[12]||(t[12]=s("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),E(s("input",$C,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[G,e.options?.expirationMode=="remove"]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[G,e.options?.expirationMode=="redirect"]])],512),[[G,e.options?.expirationMode!="never"]]),s("div",LC,[s("div",FC,[t[25]||(t[25]=s("div",{class:"card-header",id:"headingOne"},[s("h2",{class:"mb-0"},[s("button",{class:"btn btn-block text-left",type:"button","data-toggle":"collapse","data-target":"#collapseOne","aria-expanded":"true","aria-controls":"collapseOne"},[s("i",{class:"fas fa-cog mr-1"}),y(" Advanced options ")])])],-1)),s("div",UC,[s("div",zC,[s("div",HC,[s("div",BC,[E(s("input",GC,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),s("div",jC,[E(s("input",WC,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),s("div",KC,[E(s("input",YC,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=s("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=s("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),s("div",JC,[E(s("input",QC,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=s("label",{class:"form-check-label",for:"username"},"Display username",-1))]),s("div",xC,[E(s("input",XC,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=s("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),s("div",ZC,[E(s("input",eN,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=s("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),s("div",tN,[E(s("input",sN,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),s("div",nN,[E(s("input",oN,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=s("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),s("div",rN,[E(s("input",iN,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=s("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[G,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,aN)):m("v-if",!0),E(s("div",lN,[e.isUpdate?m("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=we(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=we(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update ",-1)])])):m("v-if",!0)],512),[[G,e.pullRequestUrl]])],2)),[[n,e.viewState]])],2)]),e.details?(l(),d("div",dN,[s("div",uN,[s("h2",cN,[e.options?.title?(l(),d("span",pN,c(e.anonymize(e.details?.pullRequest?.title)),1)):m("v-if",!0),s("span",{class:O(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,fN)):m("v-if",!0)]),e.options?.origin?(l(),d("small",mN,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):m("v-if",!0),e.options?.body?(l(),d("div",hN,[De(o,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0),s("ul",vN,[e.options?.diff?(l(),d("li",yN,[...t[31]||(t[31]=[s("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):m("v-if",!0),e.options?.comments?(l(),d("li",gN,[s("button",{class:O(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[s("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,bN)],2)])):m("v-if",!0)]),s("div",wN,[s("div",kN,[e.options?.diff?(l(),d("div",_N,[s("pre",EN,[s("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,CN)])])):m("v-if",!0)]),s("div",{class:O(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",NN,[(l(!0),d(Y,null,oe(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",SN,[s("div",DN,[e.options?.username?(l(),d("h5",RN," @"+c(e.anonymize(i?.author)),1)):m("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,TN)):m("v-if",!0)]),s("p",ON,[e.options?.body?(l(),ks(o,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):m("v-if",!0)])]))),256))])):m("v-if",!0)],2)])])):m("v-if",!0)])])}var AN={class:"container paper-page"},IN={class:"paper-settings-main claim-form"},VN={class:"form-group"},PN={class:"invalid-feedback"},qN={class:"form-group"};function nl(e,t){let o=be("field"),r=be("form");return l(),d("div",AN,[t[6]||(t[6]=ke('
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),s("div",IN,[t[5]||(t[5]=s("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),E((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=we(n=>e.submitForm(n,()=>{e.claim()}),["prevent"]))},[s("div",VN,[t[1]||(t[1]=s("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",required:""},null,2),[[o,{state:e.viewState,set:n=>{e.repoUrl=n},value:e.repoUrl,form:"claimForm",options:{}}]]),E(s("div",PN," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[G,e.claimForm?.repoUrl?.errors?.not_found]])]),s("div",qN,[t[2]||(t[2]=s("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",required:""},null,2),[[o,{state:e.viewState,set:n=>{e.repoId=n},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=s("small",{id:"idHelp",class:"form-text text-muted"},[y("The ID is the last part of the anonymized URL: "),s("code",null,"anonymous.4open.science/r/"),y(".")],-1))]),t[4]||(t[4]=s("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var MN={class:"container page paper-page"},$N={class:"paper-crumbs"},LN={class:"here"},FN={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},UN=["textContent"],zN={key:0,class:"paper-page-lede"},HN=["textContent","href"],BN={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},GN=["textContent"],jN=["href"],WN={class:"paper-meta-rule"},KN=["textContent"],YN=["textContent"],JN={key:0},QN={class:"search-wrap"},xN={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},XN={class:"dashboard-filter-controls"},ZN={class:"dropdown"},eS={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},tS={class:"filter-btn-value"},sS={class:"dropdown-menu","aria-labelledby":"dropdownSort"},nS={class:"form-check dropdown-item"},oS={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},rS={class:"form-check dropdown-item"},iS={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},aS={class:"form-check dropdown-item"},lS={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},dS={class:"form-check dropdown-item"},uS={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},cS={class:"dropdown"},pS={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},fS={key:0,class:"filter-btn-value"},mS={key:1,class:"filter-btn-value"},hS={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},vS={class:"form-check dropdown-item"},yS=["id"],gS=["for"],bS={class:"dashboard-meta"},wS={class:"dashboard-count"},kS={key:0},_S={key:0},ES={key:1},CS={key:1},NS={key:0,class:"filter-chip"},SS=["onClick","aria-label"],DS={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},RS={class:"cell-anon",role:"cell"},TS={class:"anon-text"},OS=["textContent","href"],AS={class:"anon-sub"},IS={class:"anon-source"},VS=["textContent","href"],PS={key:0},qS=["textContent","href"],MS={key:1},$S=["href"],LS={class:"cell-status",role:"cell"},FS={class:"status-line"},US=["textContent"],zS={key:0,class:"status-sub"},HS=["textContent"],BS={class:"cell-expires",role:"cell"},GS={key:0,class:"expires-never"},jS=["textContent"],WS={key:2,class:"expires-past"},KS={key:0},YS={key:3,class:"empty-dash","aria-label":"Not applicable"},JS={class:"cell-actions",role:"cell"},QS={class:"dropdown"},xS=["aria-label"],XS={class:"dropdown-menu dropdown-menu-right"},ZS=["href"],e2=["href"],t2={key:0,class:"paper-table-empty"},s2={key:0},n2={key:1},o2={key:2,class:"paper-table-empty-actions"};function ol(e,t){let o=be("field"),r=be("form");return l(),d("div",MN,[s("div",null,[s("div",$N,[t[2]||(t[2]=s("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=y(" \xA0/\xA0 ",-1)),t[4]||(t[4]=s("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=y(" \xA0/\xA0 ",-1)),s("span",LN,c(e.conference?.conferenceID),1)]),s("div",FN,[s("div",null,[s("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,UN),e.conference?.url?(l(),d("p",zN,[s("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,HN)])):m("v-if",!0)]),s("div",BN,[s("span",{class:O(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[s("span",{class:O(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),s("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,GN)],2),s("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[s("i",{class:"far fa-edit mr-1","aria-hidden":"true"},null,-1),y(" Edit conference",-1)])],8,jN)])]),s("div",WN,[s("span",null,[t[7]||(t[7]=y("ID ",-1)),s("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,KN)]),s("span",null,[t[8]||(t[8]=y("Review window ",-1)),s("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),s("span",null,[t[9]||(t[9]=y("Repositories ",-1)),s("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),s("span",null,[t[10]||(t[10]=y("Plan ",-1)),s("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,YN)]),e.conference?.price?(l(),d("span",JN,[t[11]||(t[11]=y("Cost so far ",-1)),s("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):m("v-if",!0)]),t[29]||(t[29]=s("div",{class:"paper-section-eyebrow"},"Repositories",-1)),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=we(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",QN,[E(s("input",xN,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",XN,[s("div",ZN,[s("button",eS,[t[12]||(t[12]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",tS,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),s("div",sS,[t[17]||(t[17]=s("h6",{class:"dropdown-header"},"Order by",-1)),s("div",nS,[E(s("input",oS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),s("div",rS,[E(s("input",iS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=s("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),s("div",aS,[E(s("input",lS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),s("div",dS,[E(s("input",uS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=s("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),s("div",cS,[s("button",pS,[t[18]||(t[18]=s("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",fS,"All")):m("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?m("v-if",!0):(l(),d("span",mS,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),s("div",hS,[t[19]||(t[19]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(Y,null,oe(e.statusLabels,(n,i,a)=>(l(),d("div",vS,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,yS),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,gS)]))),256))])])])],32)),[[r,e.viewState]]),s("div",bS,[s("span",wS,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",kS,[y(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",_S,"y")):m("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",ES,"ies")):m("v-if",!0)])):m("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",CS,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(Y,null,oe(e.filters?.status,(n,i,a)=>(l(),d(Y,null,[n===!1?(l(),d("span",NS,[y(" Hiding "+c(e.statusLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,SS)])):m("v-if",!0)],64))),256))]),s("div",DS,[t[28]||(t[28]=s("div",{class:"paper-table-head",role:"row"},[s("div",{role:"columnheader"},"Repository"),s("div",{role:"columnheader"},"Status"),s("div",{role:"columnheader",class:"num"},"Views"),s("div",{role:"columnheader"},"Expires"),s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(Y,null,oe(e.filteredRepositories,(n,i)=>(l(),d("div",{class:O(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error"}]),role:"row",key:n?.repoId},[s("div",RS,[t[22]||(t[22]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",TS,[s("a",{class:"repo-name",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId+"/")},null,8,OS),s("div",AS,[s("span",IS,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,VS),n?.options?.update&&n?.source?.branch?(l(),d("span",PS,[t[20]||(t[20]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,qS)])):m("v-if",!0),n?.source?.commit?(l(),d("span",MS,[t[21]||(t[21]=y(" \xB7 ",-1)),s("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,$S)])):m("v-if",!0)])])])]),s("div",LS,[s("div",FS,[s("span",{class:O(["status-dot","status-"+(n?.status=="error"?"error":n?.status=="ready"?"ready":n?.status=="expired"||n?.status=="removed"?n?.status:"progress")]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,US)]),n?.anonymizeDate?(l(),d("div",zS,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView))},null,8,HS),s("div",BS,[n?.status=="ready"&&(n?.options?.expirationMode==="never"||!n?.options?.expirationDate)?(l(),d("span",GS,"Never")):m("v-if",!0),n?.status=="ready"&&n?.options?.expirationMode!=="never"&&n?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?.options?.expirationDate))},null,8,jS)):m("v-if",!0),n?.status=="expired"?(l(),d("span",WS,[t[23]||(t[23]=y("Expired",-1)),n?.options?.expirationDate?(l(),d("span",KS,c(e.fmt?.humanTime(n?.options?.expirationDate)),1)):m("v-if",!0)])):m("v-if",!0),n?.status!="ready"&&n?.status!="expired"?(l(),d("span",YS,"\u2014")):m("v-if",!0)]),s("div",JS,[s("div",QS,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?.repoId},[...t[24]||(t[24]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,xS),s("div",XS,[s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[25]||(t[25]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,ZS),s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[26]||(t[26]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,e2)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",t2,[t[27]||(t[27]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.conference?.repositories?.length?m("v-if",!0):(l(),d("span",s2,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",n2,"Nothing matches the current filters.")):m("v-if",!0),e.conference?.repositories?.length?(l(),d("div",o2,[s("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=n=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):m("v-if",!0)])):m("v-if",!0)])])])}var r2={class:"container page paper-page"},i2={class:"row"},a2={class:"w-100"},l2={class:"search-wrap"},d2={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},u2={class:"dashboard-filter-controls"},c2={class:"dropdown"},p2={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},f2={class:"filter-btn-value"},m2={class:"dropdown-menu","aria-labelledby":"dropdownSort"},h2={class:"form-check dropdown-item"},v2={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},y2={class:"form-check dropdown-item"},g2={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},b2={class:"form-check dropdown-item"},w2={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},k2={class:"dropdown"},_2={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},E2={key:0,class:"filter-btn-value"},C2={key:1,class:"filter-btn-value"},N2={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},S2={class:"form-check dropdown-item"},D2=["id"],R2=["for"],T2={class:"dashboard-meta"},O2={class:"dashboard-count"},A2={key:0},I2={key:0},V2={key:1},P2={key:0,class:"filter-chip"},q2=["onClick","aria-label"],M2={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},$2={class:"cell-anon",role:"cell"},L2={class:"anon-text"},F2=["textContent","href"],U2={class:"anon-sub"},z2={class:"anon-source"},H2=["textContent"],B2={key:0},G2=["textContent","href"],j2={class:"cell-status",role:"cell"},W2={class:"status-line"},K2=["textContent"],Y2=["textContent"],J2={class:"cell-expires",role:"cell"},Q2={key:0},x2={key:1,class:"empty-dash","aria-label":"No review window"},X2={class:"cell-actions",role:"cell"},Z2={class:"dropdown"},eD=["aria-label"],tD={class:"dropdown-menu dropdown-menu-right"},sD=["href"],nD=["href"],oD={key:0},rD=["onClick"],iD={key:0,class:"paper-table-empty"},aD={key:0},lD={key:1},dD={class:"paper-table-empty-actions"},uD={key:1,href:"/conference/new",class:"btn btn-ink"};function rl(e,t){let o=be("field"),r=be("form");return l(),d("div",r2,[s("div",i2,[s("div",a2,[t[9]||(t[9]=ke('
',2)),m(" Quota "),e.quota?(l(),d("div",mD,[(l(),d(Y,null,oe([{key:"repository",label:"Repositories",kind:"count"},{key:"storage",label:"Storage",kind:"bytes"},{key:"file",label:"Files",kind:"count"}],(n,i)=>s("div",hD,[s("div",vD,[s("span",yD,c(n?.label),1),n?.kind==="count"?(l(),d("span",gD,[y(c(e.fmt?.number(e.quota[n?.key].used)),1),e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("span",bD," / "+c(e.fmt?.number(e.quota[n?.key].total)),1)),e.quota[n?.key].unlimited?(l(),d("span",wD,"Unlimited")):m("v-if",!0)])):m("v-if",!0),n?.kind==="bytes"?(l(),d("span",kD,[y(c(e.fmt?.humanFileSize(e.quota[n?.key].used)),1),e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("span",_D," / "+c(e.fmt?.humanFileSize(e.quota[n?.key].total)),1)),e.quota[n?.key].unlimited?(l(),d("span",ED,"Unlimited")):m("v-if",!0)])):m("v-if",!0)]),s("div",{class:O(["quota-track","quota-"+e.quota[n?.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":n?.label+" quota","aria-valuenow":e.quota[n?.key].used,"aria-valuemax":e.quota[n?.key].unlimited?e.quota[n?.key].used:e.quota[n?.key].total,"aria-valuetext":e.quota[n?.key].unlimited?"unlimited":e.fmt.number(e.quota[n?.key].percent,0)+"% used"},[e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Ve({width:e.quota[n?.key].percent+"%"})},null,4))],10,CD)])),64))])):m("v-if",!0),m(" Search + filters "),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[5]||(t[5]=we(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",ND,[E(s("input",SD,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",DD,[s("div",RD,[s("button",{type:"button",class:O(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[0]||(t[0]=n=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,TD),s("button",{type:"button",class:O(["btn",{"btn-primary":e.typeFilter==="repo"}]),onClick:t[1]||(t[1]=n=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},"Repos",10,OD),s("button",{type:"button",class:O(["btn",{"btn-primary":e.typeFilter==="pr"}]),onClick:t[2]||(t[2]=n=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},"PRs",10,AD),s("button",{type:"button",class:O(["btn",{"btn-primary":e.typeFilter==="gist"}]),onClick:t[3]||(t[3]=n=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},"Gists",10,ID)]),s("div",VD,[s("button",PD,[t[12]||(t[12]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",qD,c(e.sortLabel()),1),s("i",{class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2),s("span",MD,c(e.sortDesc()?"descending":"ascending"),1)]),s("div",$D,[t[14]||(t[14]=s("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(Y,null,oe(e.sortFields,(n,i,a)=>(l(),d("div",LD,[s("input",{class:"form-check-input",type:"radio",name:"sort",onClick:u=>e.setSort(i,n.defaultDesc),checked:e.isSortedBy(i),id:"sort-"+a},null,8,FD),s("label",{class:"form-check-label",for:"sort-"+a},c(n?.label),9,UD)]))),256)),t[15]||(t[15]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item",onClick:t[4]||(t[4]=n=>e.toggleSortDirection())},[t[13]||(t[13]=s("i",{class:"fas fa-exchange-alt fa-rotate-90","aria-hidden":"true"},null,-1)),y(" "+c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])])]),s("div",zD,[s("button",HD,[t[16]||(t[16]=s("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?m("v-if",!0):(l(),d("span",BD,"All")),e.hasHiddenStatus()?(l(),d("span",GD,c(e.hiddenStatusCount())+" hidden",1)):m("v-if",!0)]),s("div",jD,[t[17]||(t[17]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(Y,null,oe(e.statusKeyLabels,(n,i,a)=>(l(),d("div",WD,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,KD),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,YD)]))),256))])])])],32)),[[r,e.viewState]]),m(" Result count + active filter chips "),e.loading?m("v-if",!0):(l(),d("div",JD,[s("span",QD,[e.filteredItems?.length===e.items?.length?(l(),d("span",xD,[y(c(e.fmt?.number(e.items?.length))+" anonymization",1),e.items?.length!==1?(l(),d("span",XD,"s")):m("v-if",!0)])):m("v-if",!0),e.filteredItems?.length!==e.items?.length?(l(),d("span",ZD,c(e.fmt?.number(e.filteredItems?.length))+" of "+c(e.fmt?.number(e.items?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(Y,null,oe(e.filters?.status,(n,i,a)=>(l(),d(Y,null,[n===!1?(l(),d("span",eR,[y(" Hiding "+c(e.statusKeyLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusKeyLabels[i]+" again"},"\xD7",8,tR)])):m("v-if",!0)],64))),256)),e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn-link-inline",onClick:t[6]||(t[6]=n=>e.clearFilters())},"Clear filters")):m("v-if",!0)]))]),m(" Table "),s("div",{class:"paper-table paper-table-dashboard w-100",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[s("div",nR,[s("div",{role:"columnheader","aria-sort":e.isSortedBy("_name")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("_name")}]),onClick:t[7]||(t[7]=n=>e.setSort("_name"))},[t[19]||(t[19]=y(" Anonymization ",-1)),e.isSortedBy("_name")?(l(),d("i",{key:0,class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,oR),s("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("status")}]),onClick:t[8]||(t[8]=n=>e.setSort("status"))},[t[20]||(t[20]=y(" Status ",-1)),e.isSortedBy("status")?(l(),d("i",{key:0,class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,rR),s("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[9]||(t[9]=n=>e.setSort("pageView"))},[t[21]||(t[21]=y(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("i",{key:0,class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,iR),s("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[10]||(t[10]=n=>e.setSort("options.expirationDate"))},[t[22]||(t[22]=y(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("i",{key:0,class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,aR),t[23]||(t[23]=s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")],-1))]),m(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(Y,null,oe([1,2,3,4],(n,i)=>(l(),d(Y,null,[e.loading?(l(),d("div",lR,[...t[24]||(t[24]=[s("div",{class:"cell-anon",role:"cell"},[s("span",{class:"skeleton skeleton-badge"}),s("div",{class:"anon-text"},[s("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),s("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),s("div",{class:"cell-status",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),s("div",{class:"cell-views num",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),s("div",{class:"cell-expires",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),s("div",{class:"cell-actions",role:"cell"},null,-1)])])):m("v-if",!0)],64))),64)),(l(!0),d(Y,null,oe(e.filteredItems,(n,i)=>(l(),d(Y,{key:n?._type+":"+(n?._id||i)},[e.loading?m("v-if",!0):(l(),d("div",{key:0,class:O(["paper-table-row",{"repo-inactive":n?._statusKey=="expired"||n?._statusKey=="removed","repo-error":n?.status=="error","row-clickable":!!n?._viewUrl}]),role:"row",onClick:a=>e.openItem(n,a)},[s("div",uR,[s("span",{class:O(["type-badge",{"type-repo":n?._type==="repo","type-pr":n?._type==="pr","type-gist":n?._type==="gist"}])},c(n?._type==="repo"?"Repo":n?._type==="pr"?"PR":"Gist"),3),s("div",cR,[s("div",pR,[n?._viewUrl?(l(),d("a",{key:0,class:"repo-name",textContent:c(n?._name),href:e.safeUrl(n?._viewUrl)},null,8,fR)):m("v-if",!0),n?._viewUrl?m("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(n?._name)},null,8,mR)),n?.role==="coauthor"?(l(),d("span",hR,"Co-author")):m("v-if",!0)]),!n?._broken||n?.conference?(l(),d("div",vR,[n?._type==="repo"&&n?.source?.fullName&&!n?._broken?(l(),d("span",yR,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,gR),n?.options?.update&&n?.source?.branch?(l(),d("span",bR,[t[25]||(t[25]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,wR)])):m("v-if",!0),n?.source?.commit?(l(),d("span",kR,[t[26]||(t[26]=y(" \xB7 ",-1)),s("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,_R)])):m("v-if",!0)])):m("v-if",!0),n?._type==="pr"&&n?.source?.repositoryFullName&&!n?._broken?(l(),d("span",ER,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?._source),href:e.safeUrl("https://github.com/"+n?.source?.repositoryFullName+"/pull/"+n?.source?.pullRequestId)},null,8,CR)])):m("v-if",!0),n?._type==="gist"&&n?.source?.gistId&&!n?._broken?(l(),d("span",NR,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?._source),href:e.safeUrl("https://gist.github.com/"+n?.source?.gistId)},null,8,SR)])):m("v-if",!0),n?.conference?(l(),d("span",{key:3,class:"cell-conf conf-tag",title:n?.conference},[t[27]||(t[27]=s("i",{class:"fas fa-university","aria-hidden":"true"},null,-1)),t[28]||(t[28]=y()),s("span",{textContent:c(n?.conference)},null,8,RR)],8,DR)):m("v-if",!0)])):m("v-if",!0)])]),s("div",TR,[s("div",OR,[s("span",{class:O(["status-dot","status-"+n?._statusKey]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,AR)]),n?.status=="error"&&n?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,IR)):m("v-if",!0),n?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(n?.anonymizeDate||n?.lastView)}," Last activity "+c(e.fmt?.humanTime(n?.anonymizeDate||n?.lastView))+" \xB7 may be stuck ",9,VR)):m("v-if",!0),n?.status!="error"&&!n?._stale&&n?.anonymizeDate?(l(),d("div",PR," anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView))},null,8,qR),s("div",MR,[n?._expiry?.kind==="never"?(l(),d("span",$R,"Never")):m("v-if",!0),n?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?._expiry?.date))},null,8,LR)):m("v-if",!0),n?._expiry?.kind==="expired"&&n?._expiry?.date?(l(),d("span",FR,"Expired "+c(e.fmt?.humanTime(n?._expiry?.date)),1)):m("v-if",!0),n?._expiry?.kind==="expired"&&!n?._expiry?.date?(l(),d("span",UR,"Expired")):m("v-if",!0),n?._expiry?.kind==="none"?(l(),d("span",zR,"\u2014")):m("v-if",!0)]),s("div",HR,[n?._broken?m("v-if",!0):(l(),d("div",BR,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?._name},[...t[29]||(t[29]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,GR),s("div",jR,[s("a",{class:"dropdown-item",href:e.safeUrl(n?._viewUrl)},[...t[30]||(t[30]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,WR),n?._type==="repo"&&n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[31]||(t[31]=[s("i",{class:"fas fa-globe","aria-hidden":"true"},null,-1),y(" View page ",-1)])],8,KR)):m("v-if",!0),s("a",{class:"dropdown-item",href:e.safeUrl(n?._editUrl)},[...t[32]||(t[32]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,YR),n?.status=="ready"||n?.status=="error"?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:a=>e.refreshItem(n)},[...t[33]||(t[33]=[s("i",{class:"fas fa-sync","aria-hidden":"true"},null,-1),y(" Force update ",-1)])],8,JR)):m("v-if",!0),n?.status=="removed"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:a=>e.refreshItem(n)},[...t[34]||(t[34]=[s("i",{class:"fas fa-check-circle","aria-hidden":"true"},null,-1),y(" Enable ",-1)])],8,QR)):m("v-if",!0),n?.status=="expired"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:a=>e.extendItem(n)},[...t[35]||(t[35]=[s("i",{class:"fas fa-calendar-plus","aria-hidden":"true"},null,-1),y(" Extend 6 months ",-1)])],8,xR)):m("v-if",!0),(n?.status=="ready"||n?.status=="expired"||n?.status=="error")&&n?.role!=="coauthor"?(l(),d("div",XR,[t[37]||(t[37]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeItem(n)},[...t[36]||(t[36]=[s("i",{class:"fas fa-trash-alt","aria-hidden":"true"},null,-1),y(" Remove ",-1)])],8,ZR)])):m("v-if",!0)])]))])],10,dR))],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",eT,[t[39]||(t[39]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.items?.length==0?(l(),d("span",tT,"You have no anonymizations yet.")):m("v-if",!0),e.items?.length>0?(l(),d("span",sT,"Nothing matches the current filters.")):m("v-if",!0),s("div",nT,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[11]||(t[11]=n=>e.clearFilters())},"Clear filters")):m("v-if",!0),e.items?.length==0?(l(),d("a",oT,[...t[38]||(t[38]=[s("i",{class:"fa fa-plus-circle mr-1","aria-hidden":"true"},null,-1),y(" New anonymization",-1)])])):m("v-if",!0)])])):m("v-if",!0)],8,sR)])])}var rT={class:"explorer-page"},iT=["aria-label"],aT=["textContent"],lT={class:"leftCol-head"},dT={class:"leftCol-search"},uT={class:"tree-search-box"},cT={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},pT={class:"leftCol-project-header"},fT=["textContent"],mT={class:"project-file-count"},hT={class:"leftCol-body"},vT={key:0,class:"paper-inline-warning",role:"alert"},yT={key:1,class:"paper-inline-warning",role:"alert"},gT={class:"leftCol-foot"},bT=["title"],wT={class:"explorer-main"},kT={class:"status-bar"},_T={class:"breadcrumb paths","aria-label":"Path"},ET=["textContent"],CT={class:"status-bar-actions"},NT=["href"],ST={class:"d-none d-md-inline"},DT={class:"d-none d-md-inline"},RT=["href"],TT=["href"],OT=["href"],AT=["href"],IT={class:"explorer-content"};function al(e,t){let o=et("tree"),r=et("partial-view"),n=be("field");return l(),d("div",rT,[E(s("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[s("i",{class:O(["fas",e.sidebarCollapsed?"fa-folder-open":"fa-times"])},null,2),s("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,aT)],8,iT),[[G,e.files?.length]]),E(s("div",{class:O(["leftCol",{collapsed:e.sidebarCollapsed}])},[s("div",lT,[t[7]||(t[7]=s("span",{class:"leftCol-eyebrow"},"Files",-1)),s("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[s("i",{class:"fas fa-times"},null,-1)])])]),s("div",dT,[s("div",uT,[s("i",{class:O(["fas tree-search-icon",e.fileSearchLoading?"fa-spinner fa-spin":"fa-search"])},null,2),E(s("input",cT,null,512),[[n,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),E(s("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[G,!e.fileSearchQuery]]),E(s("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[G,e.fileSearchQuery]])])]),s("div",pT,[s("span",{class:"project-name",textContent:c(e.repoId)},null,8,fT),s("span",mT,c(e.fileCounts?.[""]||e.files?.length)+" files",1)]),s("div",hT,[e.options?.truncatedFolders?.length>0?(l(),d("div",vT,[t[8]||(t[8]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):m("v-if",!0),e.options?.hasSubmodules?(l(),d("div",yT,[t[9]||(t[9]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):m("v-if",!0),De(o,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),s("div",gT,[s("span",{class:"last-update","data-toggle":"tooltip","data-placement":"top",title:e.options?.lastUpdateDate}," Updated "+c(e.fmt?.date(e.options?.lastUpdateDate)),9,bT)])],2),[[G,e.files?.length]]),E(s("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[G,e.files?.length&&!e.sidebarCollapsed]]),s("div",wT,[s("div",kT,[s("ol",_T,[(l(!0),d(Y,null,oe(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,ET))),256))]),s("div",CT,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[10]||(t[10]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,NT)):m("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:O(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=i=>e.toggleAllowScripts())},[t[11]||(t[11]=s("i",{class:"fab fa-js"},null,-1)),s("span",ST,c(e.allowScripts?"JS on":"JS off"),1)],2)):m("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=i=>e.toggleSource())},[s("i",{class:O(["fas",e.showSource?"fa-eye":"fa-code"])},null,2),s("span",DT,c(e.showSource?"Rendered":"Source"),1)])):m("v-if",!0),E(s("a",{target:"_self",class:"btn btn-sm","aria-label":"View raw current file",title:"View the raw content of the current file",href:e.safeUrl(e.url)},[...t[12]||(t[12]=[s("i",{class:"fas fa-file-alt"},null,-1),s("span",{class:"d-none d-md-inline"}," Raw",-1)])],8,RT),[[G,e.content!=null]]),E(s("a",{target:"_self",class:"btn btn-sm","aria-label":"Download current file",title:"Download the current file",href:e.safeUrl(e.url+"&download=true")},[...t[13]||(t[13]=[s("i",{class:"fas fa-download"},null,-1),s("span",{class:"d-none d-md-inline"}," Download",-1)])],8,TT),[[G,e.content!=null]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Download full repository as ZIP",title:"Download the full repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[14]||(t[14]=[s("i",{class:"fas fa-file-archive"},null,-1),s("span",{class:"d-none d-md-inline"}," Full repo ZIP",-1)])],8,OT)):m("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[15]||(t[15]=[s("i",{class:"fas fa-globe"},null,-1),s("span",{class:"d-none d-md-inline"}," Website",-1)])],8,AT)):m("v-if",!0)])]),s("div",IT,[De(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var VT={class:"paper-faq"};function ll(e,t){return l(),d("div",VT,[...t[0]||(t[0]=[ke('
',1),s("div",{class:"paper-faq-body"},[s("aside",{class:"paper-faq-toc"},[s("div",{class:"paper-faq-toc-head"},"Contents"),s("nav",null,[s("a",{href:"#faq-general"},"General"),s("a",{href:"#faq-features"},"Features"),s("a",{href:"#faq-limitations"},"Limitations"),s("a",{href:"#faq-privacy"},"Privacy & Security"),s("a",{href:"#faq-hosting"},"Self-Hosting")])]),s("section",{class:"faq-section","aria-label":"FAQs"},[s("div",null,[m(" General "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-info-circle mr-2"}),y("General ")]),s("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),s("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),s("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),s("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[s("div",{class:"panel-body p-3"},[s("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),s("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[s("div",{class:"panel-body p-3"},[s("p",null,[y(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),s("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),y(", donating through "),s("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),y(', or by clicking the "Support me" button on the site. ')])])])])]),m(" Features "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-cogs mr-2"}),y("Features ")]),s("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),s("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub can display and render a wide variety of file types: "),s("ul",null,[s("li",null,[s("strong",null,"Text and source code"),y(" \u2014 displayed with syntax highlighting")]),s("li",null,[s("strong",null,"Markdown"),y(" \u2014 rendered as formatted HTML")]),s("li",null,[s("strong",null,"Images"),y(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),s("li",null,[s("strong",null,"PDFs"),y(" \u2014 rendered directly in the browser")]),s("li",null,[s("strong",null,"Jupyter Notebooks"),y(" \u2014 rendered with code cells and outputs")])]),s("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),s("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),s("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[s("div",{class:"panel-body p-3"},[s("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),s("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[s("div",{class:"panel-body p-3"},[s("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),s("ul",null,[s("li",null,[s("strong",null,"Never expire"),y(" \u2014 the anonymized repository remains accessible indefinitely.")]),s("li",null,[s("strong",null,"Redirect to GitHub"),y(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),s("li",null,[s("strong",null,"Remove content"),y(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),s("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),s("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),s("p",null," A few practical implications worth keeping in mind: "),s("ul",null,[s("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),s("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),s("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),s("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),s("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[s("code",null,`npm install -g @tdurieux/anonymous_github
-anonymous_github`)])])])])]),m(" Limitations "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-exclamation-triangle mr-2"}),y("Limitations ")]),s("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),s("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[s("div",{class:"panel-body p-3"},[s("ul",null,[s("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),s("li",null," Files larger than 8 MB are not supported. "),s("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),s("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),m(" Privacy & Security "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-shield-alt mr-2"}),y("Privacy & Security ")]),s("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),s("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[s("div",{class:"panel-body p-3"},[s("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),s("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub only reads your repositories \u2014 it never pushes commits, opens issues, modifies settings, or deletes anything. From your perspective as a user, the service is read-only. "),s("p",null,[y(" However, GitHub's OAuth scopes do not offer a read-only option for private repositories: the only scope that grants access to private repos is "),s("code",null,"repo"),y(", which is documented as full read/write access. To support users who want to anonymize a private repository, Anonymous GitHub must request that scope, and GitHub then displays the broader permission text at sign-in. The application itself only ever performs read operations against the GitHub API. ")]),s("p",null,[y(" If you only anonymize public repositories, the source code is open and can be audited on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),y(", or you can self-host your own instance. ")])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),s("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[s("div",{class:"panel-body p-3"},[s("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),m(" Self-Hosting "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-server mr-2"}),y("Self-Hosting ")]),s("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),s("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[s("div",{class:"panel-body p-3"},[s("p",null,[y(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),y(". ")]),s("p",null," The basic steps are: "),s("ol",null,[s("li",null,"Clone the repository and install dependencies"),s("li",null,[y("Create a "),s("code",null,".env"),y(" file with your GitHub token, OAuth client ID, and client secret")]),s("li",null,[y("Run "),s("code",null,"docker-compose up -d")])])])])])]),s("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[s("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),s("p",{class:"text-muted mb-0"},[y(" Open an issue on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),y(" and we'll be happy to help. ")])])])])],-1)])])}var PT={class:"pr-page"},qT={class:"container paper-page pr-page-inner"},MT={class:"pr-header"},$T={class:"paper-page-title pr-title"},LT=["textContent"],FT={key:1,class:"text-muted"},UT=["href"],zT={class:"pr-header-meta"},HT={key:0,class:"pr-meta-item"},BT=["textContent"],GT={key:1,class:"pr-meta-item"},jT=["textContent"],WT={key:2,class:"pr-meta-item"},KT=["textContent"],YT={key:0,class:"paper-tabs",role:"tablist"},JT=["textContent"],QT=["textContent"],xT={class:"paper-tab-content"},XT={key:0},ZT={class:"pr-comments"},eO={class:"pr-comment"},tO={class:"pr-comment-head"},sO=["textContent"],nO={key:0,class:"pr-comment-date"},oO={key:0,class:"paper-table-empty"},rO={key:1},iO={class:"pr-comments"},aO={class:"pr-comment"},lO={class:"pr-comment-head"},dO={key:0,class:"pr-comment-author"},uO=["textContent"],cO=["textContent"],pO={key:0,class:"pr-comment-body"},fO={key:0,class:"paper-table-empty"};function dl(e,t){let o=et("gist-file"),r=et("markdown");return l(),d("div",PT,[s("div",qT,[t[15]||(t[15]=s("div",{class:"paper-crumbs"},[s("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),s("span",{class:"here"},"Gist")],-1)),s("header",MT,[s("h1",$T,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,LT)):m("v-if",!0),e.details?.description?m("v-if",!0):(l(),d("span",FT,"Untitled gist")),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:2,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[2]||(t[2]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,UT)):m("v-if",!0)]),s("div",zT,[s("span",{class:O(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",HT,[t[3]||(t[3]=s("i",{class:"far fa-user"},null,-1)),t[4]||(t[4]=y(" @",-1)),s("span",{textContent:c(e.details?.ownerLogin)},null,8,BT)])):m("v-if",!0),e.details?.updatedDate?(l(),d("span",GT,[t[5]||(t[5]=s("i",{class:"far fa-clock"},null,-1)),t[6]||(t[6]=y()),s("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,jT)])):m("v-if",!0),e.details?.anonymizeDate?(l(),d("span",WT,[t[7]||(t[7]=s("i",{class:"fas fa-user-secret"},null,-1)),t[8]||(t[8]=y(" Anonymized ",-1)),s("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,KT)])):m("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",YT,[e.details?.files?(l(),d("button",{key:0,class:O(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",onClick:t[0]||(t[0]=n=>e.tabState.active="files")},[t[9]||(t[9]=s("i",{class:"fas fa-file-code"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,JT)],2)):m("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:O(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[1]||(t[1]=n=>e.tabState.active="comments")},[t[10]||(t[10]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,QT)],2)):m("v-if",!0)])):m("v-if",!0),s("div",xT,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",XT,[s("ul",ZT,[(l(!0),d(Y,null,oe(e.details?.files,(n,i)=>(l(),d("li",eO,[s("div",tO,[s("strong",{textContent:c(n?.filename)},null,8,sO),n?.language?(l(),d("span",nO,c(n?.language),1)):m("v-if",!0)]),De(o,{file:n},null,8,["file"])]))),256)),e.details?.files?.length?m("v-if",!0):(l(),d("li",oO,[...t[11]||(t[11]=[s("i",{class:"fas fa-file"},null,-1),s("span",null,"No files in this gist.",-1)])]))])])):m("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",rO,[s("ul",iO,[(l(!0),d(Y,null,oe(e.details?.comments,(n,i)=>(l(),d("li",aO,[s("div",lO,[n?.author?(l(),d("span",dO,[t[12]||(t[12]=s("i",{class:"far fa-user"},null,-1)),t[13]||(t[13]=y(" @",-1)),s("span",{textContent:c(n?.author)},null,8,uO)])):m("v-if",!0),n?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(n?.updatedDate))},null,8,cO)):m("v-if",!0)]),n?.body?(l(),d("div",pO,[De(r,{content:n?.body},null,8,["content"])])):m("v-if",!0)]))),256)),e.details?.comments?.length?m("v-if",!0):(l(),d("li",fO,[...t[14]||(t[14]=[s("i",{class:"far fa-comment-dots"},null,-1),s("span",null,"No comments on this gist.",-1)])]))])])):m("v-if",!0)])])])}var mO={class:"collapse navbar-collapse",id:"navbarSupportedContent"},hO={class:"navbar-nav mr-auto smooth-scroll"},vO={key:0,class:"nav-item"},yO={key:1,class:"nav-item"},gO={key:2,class:"nav-item"},bO={key:3,class:"nav-item"},wO={class:"nav-item"},kO={key:4,class:"nav-item"},_O={class:"navbar-nav"},EO={key:0,class:"nav-item"},CO={key:1,class:"nav-item"},NO={key:2,class:"nav-item"},SO={key:3,class:"nav-item dropdown user-chip-wrap"},DO={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},RO=["src"],TO={class:"user-chip-name"},OO={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},AO={class:"dropdown-header"},IO=["innerHTML"];function ul(e,t){return l(),d(Y,null,[s("nav",{class:O(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[13]||(t[13]=s("a",{class:"navbar-brand",href:"/"},[y("Anonymous "),s("em",null,"GitHub")],-1)),t[14]||(t[14]=s("button",{class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[s("span",{class:"navbar-toggler-icon"})],-1)),s("div",mO,[s("ul",hO,[e.user?m("v-if",!0):(l(),d("li",vO,[s("a",{class:O(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",yO,[s("a",{class:O(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[2]||(t[2]=[s("i",{class:"fas fa-th-large d-lg-none mr-1"},null,-1),y(" My work ",-1)])],2)])):m("v-if",!0),e.user?(l(),d("li",gO,[s("a",{class:O(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[3]||(t[3]=[s("i",{class:"fas fa-user-secret d-lg-none mr-1"},null,-1),y(" Anonymize ",-1)])],2)])):m("v-if",!0),e.user?(l(),d("li",bO,[s("a",{class:O(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[4]||(t[4]=[s("i",{class:"fas fa-chalkboard-teacher d-lg-none mr-1"},null,-1),y(" Conferences ",-1)])],2)])):m("v-if",!0),s("li",wO,[s("a",{class:O(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[5]||(t[5]=[s("i",{class:"fas fa-question-circle d-lg-none mr-1"},null,-1),y("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",kO,[s("a",{class:O(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[6]||(t[6]=[s("i",{class:"fas fa-cog d-lg-none mr-1"},null,-1),y(" Admin ",-1)])],2)])):m("v-if",!0)]),s("ul",_O,[t[11]||(t[11]=s("li",{class:"nav-item"},[s("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[s("i",{class:"fab fa-github","aria-hidden":"true"})])],-1)),m(` "Report a bug" is about this service. Reviewers who land on an
+`)}function h(N){let D=[],I="",C=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,A=0,q;for(;q=C.exec(N);)I+=N.slice(A,q.index),A=C.lastIndex,D.push({key:q[1],op:q[2]||"=",val:q[3]});return I+=N.slice(A),{filters:D,free:I.trim().toLowerCase()}}function v(N,D){for(let I of D.filters){let C=(q,Z,X)=>{let K=parseFloat(q),U=parseFloat(Z);return X==="="?String(q)===String(Z):X==="!="?String(q)!==String(Z):X===">="?K>=U:X==="<="?K<=U:X===">"?K>U:X==="<"?KD&&A._bucket!==D?!1:v(A,N)),C=e.query.group;if(C){let A=X=>C==="module"?X.module:X.displayMessage||X.message||"_",q=new Map;for(let X of I){let K=A(X);if(q.has(K)){let U=q.get(K);U.count++,U._related.push(X),new Date(X.ts)>new Date(U.ts)&&(U.ts=X.ts,U._url=X._url,U._status=X._status),new Date(X.ts)new Date(K.ts).getTime()>=Z).length;I=Array.from(q.values())}else I=I.map((A,q)=>(A._key="row:"+q+":"+A.ts,A._related=[A],A._firstSeen=A.ts,A._lastHourCount=0,A.count=1,A));e.query.sort==="count"?I.sort((A,q)=>q.count-A.count||new Date(q.ts)-new Date(A.ts)):I.sort((A,q)=>new Date(q.ts)-new Date(A.ts)),e.visible=I}function f(N){let D=N?e.entries.length:0,I=N?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:D,limit:I}}).then(C=>{let A=(C.data.entries||[]).map(u);e.entries=N?e.entries.concat(A):A,e.available=!!C.data.available,e.cap=C.data.max||e.cap,e.total=C.data.total||e.entries.length,g()},C=>console.error(C))}e.loadMore=()=>f(!0),e.canLoadMore=()=>e.entries.length{let D=N.data||{},I=D.prev24h?Math.round((D.last24h-D.prev24h)/D.prev24h*100):0;e.stats={last24h:D.last24h||0,prev24h:D.prev24h||0,delta:I,severity:D.severity||{error:0,warn:0,info:0},unique:D.unique||{error:0,warn:0,info:0},buckets:D.buckets||[],dropped:D.dropped||0}},N=>console.error(N))}function k(){f(),w()}e.barPx=(N,D)=>{let I=e.stats.buckets||[],C=0;for(let X of I)C=Math.max(C,(X.error||0)+(X.warn||0)+(X.info||0));if(!C)return 0;let A=(N.error||0)+(N.warn||0)+(N.info||0);if(!A)return 0;let q=Math.round(A/C*60),Z=N[D]||0;return Math.round(Z/A*q)},e.bucketTitle=N=>`${new Date(N.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${N.error||0} err \xB7 ${N.warn||0} warn \xB7 ${N.info||0} info`,e.toggle=N=>{e.expanded[N._key]=!e.expanded[N._key]},e.setBucket=N=>{e.query.bucket=N},e.refreshNow=k,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(k,N=>console.error(N))},e.exportCsv=()=>{let N=["ts","level","module","displayMessage","_status","_url","_repoId"],D=[N.join(",")];for(let q of e.visible)D.push(N.map(Z=>{let X=q[Z]==null?"":String(q[Z]);return/[",\n]/.test(X)?`"${X.replace(/"/g,'""')}"`:X}).join(","));let I=new Blob([D.join(`
+`)],{type:"text/csv;charset=utf-8"}),C=URL.createObjectURL(I),A=document.createElement("a");A.href=C,A.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(A),A.click(),document.body.removeChild(A),URL.revokeObjectURL(C)};function b(N){e.copyHint=`${N} copied`,n.timeout(()=>{e.copyHint=""},1500)}e.copyJson=N=>{navigator.clipboard.writeText(N._detailJson).then(()=>b("JSON"))},e.copyCurl=N=>{if(!N._url)return;let I=`curl -X ${N._method||"GET"} '${window.location.origin}${N._url}'`;navigator.clipboard.writeText(I).then(()=>b("curl"))},k();let T=r(()=>{e.query.autoRefresh&&k()},15e3);e.on("dispose",()=>r.cancel(T)),e.watch("query.search",g),e.watch("query.bucket",g),e.watch("query.sort",g),e.watch("query.group",g)},Ba=function(e,t,o,r){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null){o.url("/");return}e.data=null,e.loading=!0,e.error=null;function n(f){if(f==null)return"\u2014";for(var w=["B","KB","MB","GB","TB"],k=0,b=f;b>=1024&&k0?1:0)+" "+w[k]}e.humanBytes=n;function i(f){if(!f)return"\u2014";var w=Math.floor(f/86400),k=Math.floor(f%86400/3600),b=Math.floor(f%3600/60);return w>0?w+"d "+(k<10?"0":"")+k+"h":k>0?k+"h "+(b<10?"0":"")+b+"m":b+"m"}e.humanDuration=i;function a(f){return f==null?"\u2014":f>=1e6?(f/1e6).toFixed(1)+"M":f>=1e3?(f/1e3).toFixed(1)+"K":String(f)}e.humanNum=a,e.queueTotal=function(f){return f?(f.waiting||0)+(f.active||0)+(f.delayed||0)+(f.failed||0):0},e.statusCount=function(f){if(!e.data||!e.data.repos)return 0;for(var w=e.data.repos.statusBreakdown||[],k=0;kh[k])&&(h[k]=w[k])})})},function(f){e.loading=!1,e.error=f.data&&f.data.error||"Failed to load overview"})}v();var g=r(v,3e4);e.on("dispose",function(){r.cancel(g)})};var Ga=[{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ma(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>Ta(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Oa(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yn(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yn(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yn(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Aa(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Pa(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Jo(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Jo(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>qa(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Sa(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Da(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ra(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ia(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Va(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Yo(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Yo(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ba(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>$a(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>La(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Fa(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ua(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>za(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ha(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var zc={class:"container paper-page connections-page"},Hc={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Bc={key:1,role:"status"},Gc=["disabled"],jc={key:3},Wc={class:"connections-grid"},Kc={key:0},Yc={class:"connection-title"},Jc={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Qc={class:"connection-actions"},Xc={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},xc={key:1,class:"connection-installations"},Zc={key:0},ep=["href"],tp={class:"sr-only"},sp=["disabled"],np={class:"connection-title"},op={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},rp={key:1,class:"connection-revoke"},ip={key:0},ap=["disabled"],lp={class:"connection-resources"},dp={class:"connection-title"},up={class:"connection-count"},cp={key:0,class:"connection-empty"},pp={class:"connection-resource-name"},fp={key:0,class:"connection-resource-actions"},mp=["disabled","onClick"],hp=["disabled","onClick"],vp={key:1,class:"connection-help",role:"status"},yp=["disabled","onClick"];function ja(e,t){return l(),d("div",zc,[t[20]||(t[20]=ge('
Manage how GitHub shares your code. Your anonymizations and URLs stay the same.
',2)),e.connectionError?(l(),d("p",Hc,c(e.connectionError),1)):m("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",Bc,"Loading your connections\u2026")):m("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=o=>e.loadConnections())},"Try again",8,Gc)):m("v-if",!0),e.connections?(l(),d("div",jc,[s("div",Wc,[e.connections.appEnabled?(l(),d("section",Kc,[t[8]||(t[8]=s("div",{class:"connection-top"},[s("i",{class:"fab fa-github","aria-hidden":"true"}),s("span",{class:"connection-badge"},"Recommended")],-1)),s("div",Yc,[t[3]||(t[3]=s("h2",null,"GitHub App",-1)),s("span",{class:O(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[9]||(t[9]=s("p",null,"Read-only access to the repositories you choose.",-1)),e.connections.appError?(l(),d("p",Jc,c(e.connections.appError)+". Reconnect to restore access.",1)):m("v-if",!0),s("div",Qc,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",Xc,[...t[4]||(t[4]=[y("Manage repository access ",-1),s("i",{class:"fas fa-external-link-alt","aria-hidden":"true"},null,-1)])])):m("v-if",!0),s("a",{class:O(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},c(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[10]||(t[10]=s("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",xc,[(l(!0),d(Y,null,oe(e.connections.installations,o=>(l(),d("li",{key:o.id},[s("div",null,[s("strong",null,c(o.account),1),o.suspended?(l(),d("span",Zc," \xB7 Suspended")):m("v-if",!0)]),s("a",{target:"_self",href:"/github/app/install?installationId="+o.id},[t[5]||(t[5]=y("Manage access ",-1)),s("span",tp,"for "+c(o.account),1),t[6]||(t[6]=y(" \u2192",-1))],8,ep)]))),128))])):m("v-if",!0),s("button",{class:"connection-link",disabled:e.busy,onClick:t[1]||(t[1]=o=>e.loadConnections())},[...t[7]||(t[7]=[s("i",{class:"fas fa-sync-alt","aria-hidden":"true"},null,-1),y(" Refresh access",-1)])],8,sp)])):m("v-if",!0),s("section",null,[t[13]||(t[13]=s("div",{class:"connection-top"},[s("i",{class:"fas fa-key","aria-hidden":"true"}),s("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),s("div",np,[t[11]||(t[11]=s("h2",null,"GitHub OAuth",-1)),s("span",{class:O(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=s("p",null,"For existing OAuth anonymizations and gists.",-1)),t[15]||(t[15]=s("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(l(),d("a",op,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):m("v-if",!0),e.connections.oauthConnected?(l(),d("div",rp,[e.connections.gistCount?(l(),d("p",ip,c(e.connections.gistCount)+" gist(s) still require OAuth.",1)):m("v-if",!0),t[12]||(t[12]=s("p",null,"Switch all dependent repositories before revoking access. Gists still require OAuth.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-danger",disabled:e.busy||e.connections.gistCount||e.connections.resources.some(o=>o.connection==="oauth"),onClick:t[2]||(t[2]=o=>e.disconnectOAuth())},"Revoke OAuth access",8,ap)):m("v-if",!0)])):m("v-if",!0)])]),s("section",lp,[s("div",dp,[t[16]||(t[16]=s("h2",null,"Repository connections",-1)),s("span",up,c(e.connections.resources?.length||0)+" resources",1)]),t[18]||(t[18]=s("p",null,"Check access, then switch each resource to the GitHub App.",-1)),e.connections.resources?.length?m("v-if",!0):(l(),d("div",cp,[...t[17]||(t[17]=[s("i",{class:"fas fa-code-branch","aria-hidden":"true"},null,-1),s("div",null,[s("h3",null,"No repository connections yet"),s("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),s("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(l(!0),d(Y,null,oe(e.connections.resources,o=>(l(),d("div",{class:"connection-resource",key:o.type+o.id},[s("div",pp,[s("strong",null,c(o.name||o.id),1),s("small",null,c(o.type)+" \xB7 "+c(o.id),1)]),s("span",{class:O(["connection-badge",{"connection-badge-muted":o.connection==="oauth"}])},c(o.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),o.connection==="oauth"&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",fp,[s("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(o,"github-app",!0)},"Check read-only access",8,mp),o.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:r=>e.changeConnection(o,"github-app",!1)},"Switch to read-only access",8,hp)):m("v-if",!0),o.eligible===!1?(l(),d("span",vp,"Access unavailable. Allow this repository on GitHub, then check again.")):m("v-if",!0)])):m("v-if",!0),o.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:r=>e.changeConnection(o,"oauth",!1)},"Use OAuth",8,yp)):m("v-if",!0)]))),128)),t[19]||(t[19]=s("p",{class:"connection-footnote"},[s("i",{class:"fas fa-info-circle","aria-hidden":"true"}),y(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):m("v-if",!0)])}var gp={class:"container paper-page auth-page"},bp={class:"auth-layout"},wp={class:"auth-options"},kp={key:0,class:"auth-existing",role:"note"},_p={key:1},Ep={key:2,class:"auth-legacy"},Cp={key:3,role:"status"};function Wa(e,t){return l(),d("div",gp,[t[4]||(t[4]=s("a",{class:"auth-back",href:"/"},[s("i",{class:"fas fa-arrow-left","aria-hidden":"true"}),y(" Anonymous GitHub")],-1)),s("div",bp,[t[3]||(t[3]=ge('
Your research, ready for review
Your code. Your identity, protected.Sign in to GitHub
Sign in to create and manage your anonymizations.
',1)),s("div",wp,[e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("p",kp,[...t[0]||(t[0]=[y("Already have an account? Sign in with ",-1),s("a",{target:"_self",href:"/github/login"},"legacy GitHub OAuth",-1),y(" to keep access to your anonymizations. You can connect the read-only App from GitHub connections after signing in.",-1)])])):m("v-if",!0),e.site_options?.GITHUB_APP_ENABLED?(l(),d("section",_p,[...t[1]||(t[1]=[ge('
Read-only access
Continue with GitHub
Connect through the GitHub App with read-only repository access.
You choose which repositories to share
No permission to write to your code
Sign in with GitHub Select your repositories after signing in.',6)])])):m("v-if",!0),e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("section",Ep,[...t[2]||(t[2]=[s("div",{class:"connection-title"},[s("h2",null,"Legacy OAuth"),s("span",{class:"connection-badge connection-badge-muted"},"For gists & existing accounts")],-1),s("p",null,"Use this connection for gists or your existing OAuth setup. GitHub's private repository scope includes write access.",-1),s("a",{class:"connection-link",target:"_self",href:"/github/login"},[y("Continue with OAuth "),s("i",{class:"fas fa-arrow-right","aria-hidden":"true"})],-1)])])):m("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",Cp,"GitHub sign-in is currently unavailable. Please try again later.")):m("v-if",!0)])])])}var Np={class:"paper-empty"};function Ka(e,t){return l(),d("div",Np,[...t[0]||(t[0]=[ge('
Error \xB7 404
This link isn\u2019t here.
The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.
',3)),s("div",Bg,[s("span",Gg,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",jg,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),s("span",{class:O(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=n=>{e.query.ready=!e.query.ready,e.query.page=1})},[t[18]||(t[18]=y("Ready ",-1)),s("span",Wg,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:O(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=n=>{e.query.preparing=!e.query.preparing,e.query.page=1})},[t[19]||(t[19]=y("Preparing ",-1)),s("span",Kg,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],2),s("span",{class:O(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=n=>{e.query.error=!e.query.error,e.query.page=1})},[t[20]||(t[20]=y("Errored ",-1)),s("span",Yg,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:O(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=n=>{e.query.expired=!e.query.expired,e.query.page=1})},[t[21]||(t[21]=y("Expired ",-1)),s("span",Jg,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],2),s("span",{class:O(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=n=>{e.query.removed=!e.query.removed,e.query.page=1})},[t[22]||(t[22]=y("Removed ",-1)),s("span",Qg,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],2)]),e.fetchError?(l(),d("div",Xg,[t[23]||(t[23]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",xg,[m(" Row 1: search + scoped inputs + headline actions "),s("div",Zg,[s("div",eb,[E(s("input",tb,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",sb,"/"))]),s("span",ob,[t[24]||(t[24]=s("label",null,"Owner",-1)),E(s("input",rb,null,512),[[o,{state:e.viewState,set:n=>{e.query.owner=n},value:e.query?.owner,form:null,options:{}}]])]),s("span",ib,[t[25]||(t[25]=s("label",null,"Conference",-1)),E(s("input",ab,null,512),[[o,{state:e.viewState,set:n=>{e.query.conference=n},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=n=>e.exportCsv())},[...t[26]||(t[26]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",lb,[s("button",{class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[27]||(t[27]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,db),s("span",ub,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[28]||(t[28]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,cb)])]),m(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",pb,[s("div",fb,[(l(!0),d(Y,null,oe(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",mb,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(n.key)},[...t[30]||(t[30]=[s("i",{class:"fas fa-times"},null,-1)])],8,hb)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",vb,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=y(" selected",-1))]),s("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=n=>e.bulkRefresh())},[...t[32]||(t[32]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force refresh",-1)])]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=n=>e.bulkRemoveCache())},[...t[33]||(t[33]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=n=>e.clearSelection())},"Clear")])):m("v-if",!0),s("div",yb,[s("div",gb,[s("div",bb,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,wb)]),s("div",kb,[s("span",{class:O(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=n=>e.sortBy("source.repositoryName"))},[t[34]||(t[34]=y("Repository ",-1)),s("i",{class:O(["fas",e.sortIcon("source.repositoryName")])},null,2)],2)]),s("div",_b,[s("span",{class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=n=>e.sortBy("status"))},[t[35]||(t[35]=y("Status ",-1)),s("i",{class:O(["fas",e.sortIcon("status")])},null,2)],2)]),s("div",Eb,[s("span",{class:O(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=n=>e.sortBy("pageView"))},[t[36]||(t[36]=y("Views ",-1)),s("i",{class:O(["fas",e.sortIcon("pageView")])},null,2)],2)]),s("div",Cb,[s("span",{class:O(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=n=>e.sortBy("anonymizeDate"))},[t[37]||(t[37]=y("Anonymized ",-1)),s("i",{class:O(["fas",e.sortIcon("anonymizeDate")])},null,2)],2)]),t[38]||(t[38]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(Y,null,oe(e.filteredRepositories,(n,i)=>(l(),d("div",{class:O(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[s("div",Nb,[E(s("input",Sb,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),s("div",Db,[t[43]||(t[43]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",Rb,[s("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,Tb),s("div",Ob,[s("a",{textContent:c(n?.source?.repositoryName),href:e.safeUrl("https://github.com/"+n?.source?.repositoryName+"/")},null,8,Ab),n?.options?.update?(l(),d("span",Ib,[t[39]||(t[39]=y("\xA0\xB7\xA0",-1)),s("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,Vb)])):m("v-if",!0),n?.options?.update?m("v-if",!0):(l(),d("span",Pb,[t[40]||(t[40]=y("\xA0\xB7\xA0@",-1)),s("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,qb)])),n?.conference?(l(),d("span",Mb,[t[41]||(t[41]=y("\xA0\xB7\xA0",-1)),t[42]||(t[42]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" terms",1)])])]),s("div",$b,[s("span",Lb,[s("span",{class:O(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,Fb)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,Ub)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,zb),s("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,Hb),s("div",Bb,[s("div",Gb,[t[55]||(t[55]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",jb,[s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[44]||(t[44]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,Wb),s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[45]||(t[45]=[s("i",{class:"fa fa-eye"},null,-1),y(" View repo",-1)])],8,Kb),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[46]||(t[46]=[s("i",{class:"fas fa-globe"},null,-1),y(" View page",-1)])],8,Yb)):m("v-if",!0),s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.fetchGithubInfo(n),["prevent"])},[...t[47]||(t[47]=[s("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,Jb),t[53]||(t[53]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.updateRepository(n),["prevent"])},[...t[48]||(t[48]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update",-1)])],8,Qb),[[G,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.updateRepository(n),["prevent"])},[...t[49]||(t[49]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable",-1)])],8,Xb),[[G,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.showStatusMessage(n),["prevent"])},[...t[50]||(t[50]=[s("i",{class:"fas fa-exclamation-triangle"},null,-1),y(" View status message",-1)])],8,xb),[[G,n?.statusMessage]]),t[54]||(t[54]=s("div",{class:"dropdown-divider"},null,-1)),s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.removeCache(n),["prevent"])},[...t[51]||(t[51]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])],8,Zb),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:ke(a=>e.removeRepository(n),["prevent"])},[...t[52]||(t[52]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,e1),[[G,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",t1,[...t[56]||(t[56]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No repositories match the current filters.",-1)])])):m("v-if",!0)]),s("div",s1,[s("span",n1,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",o1,[s("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[57]||(t[57]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous ",-1)])],8,r1),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,i1),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[58]||(t[58]=[y(" Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,a1)])):m("v-if",!0),s("span",l1,[t[60]||(t[60]=s("label",null,"Per page",-1)),E((l(),d("select",d1,[...t[59]||(t[59]=[ge('',5)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var u1={class:"container paper-page admin-page"},c1={class:"paper-crumbs"},p1={class:"here"},f1={class:"paper-page-title"},m1={key:0,class:"user-detail-card"},h1={class:"user-header"},v1=["src"],y1={class:"status-dot-wrap"},g1=["textContent"],b1={key:0,class:"type-badge type-repo"},w1={class:"user-actions",style:{"margin-top":"4px"}},k1={class:"user-detail-grid"},_1={class:"detail-value"},E1={class:"detail-value"},C1={class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},N1={class:"detail-value"},S1=["href"],D1={class:"detail-value"},R1={class:"detail-value"},T1={key:0},O1={key:1,class:"text-muted"},A1={class:"detail-value"},I1={key:0,style:{"margin-top":"20px"}},V1={class:"paper-table w-100",style:{"margin-top":"10px"}},P1={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},q1={class:"cell-anon",role:"cell"},M1={class:"anon-text"},$1=["textContent"],L1={class:"cell-expires",role:"cell"},F1={key:1,class:"admin-section-header"},U1={class:"section-count"},z1={key:2,class:"user-detail-card"},H1={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},B1={key:0,class:"alert alert-warning",role:"alert"},G1={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},j1={key:1,class:"paper-table w-100"},W1={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},K1=["textContent"],Y1=["textContent"],J1={role:"cell"},Q1={key:0},X1={key:1,class:"text-muted"},x1={role:"cell"},Z1=["onClick"],ew={key:2,class:"paper-table-empty"},tw={class:"admin-section-header"},sw={class:"section-count"},nw={class:"admin-summary"},ow={class:"summary-total"},rw={class:"count"},iw={class:"count"},aw={class:"count"},lw={class:"count"},dw={class:"count"},uw={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},cw={class:"admin-filter-row"},pw={class:"search-wrap"},fw={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},mw={key:3,class:"bulk-bar"},hw={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},vw={class:"paper-table-head",role:"row"},yw={role:"columnheader",style:{width:"28px"}},gw=["checked"],bw={role:"columnheader"},ww={role:"columnheader"},kw={role:"columnheader",class:"num"},_w={role:"columnheader"},Ew={role:"cell",style:{width:"28px"}},Cw={type:"checkbox","aria-label":"Select repository"},Nw={class:"cell-anon",role:"cell"},Sw={class:"anon-text"},Dw=["textContent","href"],Rw={class:"anon-sub"},Tw=["textContent","href"],Ow={key:0},Aw=["textContent","href"],Iw={key:1},Vw=["textContent","href"],Pw={key:2},qw={class:"cell-status",role:"cell"},Mw={class:"status-line"},$w=["textContent"],Lw=["textContent","title"],Fw=["textContent"],Uw=["textContent"],zw={class:"cell-actions",role:"cell"},Hw={class:"dropdown"},Bw={class:"dropdown-menu dropdown-menu-right"},Gw=["href"],jw=["href"],Ww=["href"],Kw=["onClick"],Yw=["onClick"],Jw=["onClick"],Qw=["onClick"],Xw=["onClick"],xw=["onClick"],Zw={key:0,class:"paper-table-empty"};function Za(e,t){let o=we("field"),r=we("form");return l(),d("div",u1,[s("div",c1,[t[22]||(t[22]=s("a",{href:"/admin/users"},"Users",-1)),t[23]||(t[23]=y(" \xA0/\xA0 ",-1)),s("span",p1,c(e.userInfo?.username||"Profile"),1)]),s("h1",f1,c(e.userInfo?.username||"User"),1),t[81]||(t[81]=ge('',1)),e.userInfo?(l(),d("div",m1,[s("div",h1,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,v1)):m("v-if",!0),s("div",null,[s("h1",null,[y(c(e.userInfo?.username)+" ",1),s("span",y1,[s("span",{class:O(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),s("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,g1)]),e.userInfo?.isAdmin?(l(),d("span",b1,"Admin")):m("v-if",!0)]),s("div",w1,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=n=>e.banUser())},[...t[24]||(t[24]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])])):m("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=n=>e.activateUser())},[...t[25]||(t[25]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Activate",-1)])])):m("v-if",!0),e.userInfo?.isAdmin?m("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=n=>e.promoteUser())},[...t[26]||(t[26]=[s("i",{class:"fas fa-user-shield"},null,-1),y(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=n=>e.demoteUser())},[...t[27]||(t[27]=[s("i",{class:"fas fa-user-minus"},null,-1),y(" Remove admin",-1)])])):m("v-if",!0)])])]),s("div",k1,[t[30]||(t[30]=s("div",{class:"detail-label"},"ID",-1)),s("div",_1,c(e.userInfo?._id),1),t[31]||(t[31]=s("div",{class:"detail-label"},"Email",-1)),s("div",E1,c(e.userInfo?.emails?.[0]?.email),1),t[32]||(t[32]=s("div",{class:"detail-label"},"Access token",-1)),s("div",C1,c(e.userInfo?.accessTokens?.github),1),t[33]||(t[33]=s("div",{class:"detail-label"},"GitHub",-1)),s("div",N1,[s("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[28]||(t[28]=s("i",{class:"fab fa-github"},null,-1)),y(" "+c(e.userInfo?.username),1)],8,S1)]),t[34]||(t[34]=s("div",{class:"detail-label"},"Created",-1)),s("div",D1,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[35]||(t[35]=s("div",{class:"detail-label"},"Last connection",-1)),s("div",R1,[e.userInfo?.accessTokenDates?.github?(l(),d("span",T1,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):m("v-if",!0),e.userInfo?.accessTokenDates?.github?m("v-if",!0):(l(),d("span",O1,"never"))]),t[36]||(t[36]=s("div",{class:"detail-label"},"GitHub repos",-1)),s("div",A1,[y(c(e.userInfo?.repositories?.length)+" repositories ",1),s("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=n=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),s("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=n=>e.getGitHubRepositories())},[...t[29]||(t[29]=[s("i",{class:"fas fa-sync"},null,-1),y(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",I1,[t[39]||(t[39]=s("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),s("div",V1,[(l(!0),d(Y,null,oe(e.userInfo?.repositories,(n,i)=>(l(),d("div",P1,[s("div",q1,[t[37]||(t[37]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",M1,[s("span",{class:"repo-name",textContent:c(n?.name)},null,8,$1)])]),s("div",L1,[t[38]||(t[38]=s("i",{class:"fas fa-database"},null,-1)),y(" "+c(e.fmt?.humanFileSize(n?.size)),1)])]))),256))])])):m("v-if",!0)])):m("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",F1,[t[40]||(t[40]=s("h2",null,[s("i",{class:"fas fa-key"}),y(" API tokens")],-1)),s("span",U1,c(e.tokens?.length),1)])):m("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",z1,[t[46]||(t[46]=s("p",{class:"paper-page-lede"},[y("Personal API tokens for this admin account. Send as "),s("code",null,"Authorization: Bearer "),y(" to authenticate without GitHub OAuth (useful for development).")],-1)),E((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ke(n=>e.submitForm(n,()=>{e.createToken()}),["prevent"]))},[E(s("input",H1,null,512),[[o,{state:e.viewState,set:n=>{e.tokenForm.name=n},value:e.tokenForm?.name,form:null,options:{}}]]),t[41]||(t[41]=s("button",{type:"submit",class:"btn btn-primary"},[s("i",{class:"fas fa-plus"}),y(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",B1,[t[42]||(t[42]=s("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),s("pre",G1,c(e.tokenForm?.plaintext),1),s("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=n=>e.tokenForm.plaintext=null)},"Dismiss")])):m("v-if",!0),e.tokens?.length?(l(),d("div",j1,[t[44]||(t[44]=s("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[s("div",{role:"columnheader"},"Name"),s("div",{role:"columnheader"},"Created"),s("div",{role:"columnheader"},"Last used"),s("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(Y,null,oe(e.tokens,(n,i)=>(l(),d("div",W1,[s("div",{role:"cell",textContent:c(n?.name)},null,8,K1),s("div",{role:"cell",textContent:c(e.fmt?.humanTime(n?.createdAt))},null,8,Y1),s("div",J1,[n?.lastUsedAt?(l(),d("span",Q1,c(e.fmt?.humanTime(n?.lastUsedAt)),1)):m("v-if",!0),n?.lastUsedAt?m("v-if",!0):(l(),d("span",X1,"never"))]),s("div",x1,[s("button",{class:"btn btn-sm text-danger",title:"Revoke",onClick:a=>e.revokeToken(n)},[...t[43]||(t[43]=[s("i",{class:"fas fa-trash-alt"},null,-1)])],8,Z1)])]))),256))])):m("v-if",!0),e.tokens?.length?m("v-if",!0):(l(),d("div",ew,[...t[45]||(t[45]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No tokens yet.",-1)])]))])):m("v-if",!0),s("div",tw,[t[47]||(t[47]=s("h2",null,[s("i",{class:"fas fa-code-branch"}),y(" Anonymized repositories")],-1)),s("span",sw,c(e.repositories?.length),1)]),s("div",nw,[s("span",ow,c(e.fmt?.number(e.repositories?.length)),1),s("span",{class:O(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=n=>e.filters.status.ready=!e.filters.status.ready)},[t[48]||(t[48]=y("Ready ",-1)),s("span",rw,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:O(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=n=>e.filters.status.preparing=!e.filters.status.preparing)},[t[49]||(t[49]=y("Preparing ",-1)),s("span",iw,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],2),s("span",{class:O(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=n=>e.filters.status.error=!e.filters.status.error)},[t[50]||(t[50]=y("Errored ",-1)),s("span",aw,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:O(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=n=>e.filters.status.expired=!e.filters.status.expired)},[t[51]||(t[51]=y("Expired ",-1)),s("span",lw,c(e.fmt?.number(e.statusCountFor("expired"))),1)],2),s("span",{class:O(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=n=>e.filters.status.removed=!e.filters.status.removed)},[t[52]||(t[52]=y("Removed ",-1)),s("span",dw,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),E((l(),d("form",uw,[s("div",cw,[s("div",pw,[E(s("input",fw,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),t[54]||(t[54]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=n=>e.exportCsv())},[...t[53]||(t[53]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",mw,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[55]||(t[55]=y(" selected",-1))]),s("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=n=>e.bulkRefresh())},[...t[56]||(t[56]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force refresh",-1)])]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=n=>e.bulkRemoveCache())},[...t[57]||(t[57]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=n=>e.clearSelection())},"Clear")])):m("v-if",!0),s("div",hw,[s("div",vw,[s("div",yw,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,gw)]),s("div",bw,[s("span",{class:O(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=n=>e.sortBy("source.repositoryName"))},[t[58]||(t[58]=y("Repository ",-1)),s("i",{class:O(["fas",e.sortIcon("source.repositoryName")])},null,2)],2)]),s("div",ww,[s("span",{class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=n=>e.sortBy("status"))},[t[59]||(t[59]=y("Status ",-1)),s("i",{class:O(["fas",e.sortIcon("status")])},null,2)],2)]),s("div",kw,[s("span",{class:O(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=n=>e.sortBy("pageView"))},[t[60]||(t[60]=y("Views ",-1)),s("i",{class:O(["fas",e.sortIcon("pageView")])},null,2)],2)]),s("div",_w,[s("span",{class:O(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=n=>e.sortBy("anonymizeDate"))},[t[61]||(t[61]=y("Anonymized ",-1)),s("i",{class:O(["fas",e.sortIcon("anonymizeDate")])},null,2)],2)]),t[62]||(t[62]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(Y,null,oe(e.filteredRepositories,(n,i)=>(l(),d("div",{class:O(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[s("div",Ew,[E(s("input",Cw,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),s("div",Nw,[t[67]||(t[67]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",Sw,[s("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,Dw),s("div",Rw,[s("a",{textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,Tw),n?.options?.update?(l(),d("span",Ow,[t[63]||(t[63]=y("\xA0\xB7\xA0",-1)),s("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,Aw)])):m("v-if",!0),n?.options?.update?m("v-if",!0):(l(),d("span",Iw,[t[64]||(t[64]=y("\xA0\xB7\xA0@",-1)),s("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,Vw)])),n?.conference?(l(),d("span",Pw,[t[65]||(t[65]=y("\xA0\xB7\xA0",-1)),t[66]||(t[66]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" terms",1)])])]),s("div",qw,[s("span",Mw,[s("span",{class:O(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,$w)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,Lw)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,Fw),s("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,Uw),s("div",zw,[s("div",Hw,[t[79]||(t[79]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",Bw,[s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[68]||(t[68]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,Gw),s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[69]||(t[69]=[s("i",{class:"fa fa-eye"},null,-1),y(" View repo",-1)])],8,jw),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[70]||(t[70]=[s("i",{class:"fas fa-globe"},null,-1),y(" View page",-1)])],8,Ww)):m("v-if",!0),s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.fetchGithubInfo(n),["prevent"])},[...t[71]||(t[71]=[s("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,Kw),t[77]||(t[77]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.updateRepository(n),["prevent"])},[...t[72]||(t[72]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update",-1)])],8,Yw),[[G,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.updateRepository(n),["prevent"])},[...t[73]||(t[73]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable",-1)])],8,Jw),[[G,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.showStatusMessage(n),["prevent"])},[...t[74]||(t[74]=[s("i",{class:"fas fa-exclamation-triangle"},null,-1),y(" View status message",-1)])],8,Qw),[[G,n?.statusMessage]]),t[78]||(t[78]=s("div",{class:"dropdown-divider"},null,-1)),s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.removeCache(n),["prevent"])},[...t[75]||(t[75]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])],8,Xw),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:ke(a=>e.removeRepository(n),["prevent"])},[...t[76]||(t[76]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,xw),[[G,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",Zw,[...t[80]||(t[80]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No repositories match the current filters.",-1)])])):m("v-if",!0)])])}var ek={class:"container paper-page admin-page"},tk={class:"admin-summary"},sk={class:"summary-total"},nk={class:"count"},ok={class:"count"},rk={class:"count"},ik={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},ak={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},lk={class:"admin-filter-row"},dk={class:"search-wrap"},uk={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},ck={key:0,class:"admin-search-hint"},pk={class:"admin-filter-inline"},fk={class:"form-control form-control-sm"},mk={class:"admin-filter-inline","aria-label":"Pagination"},hk=["disabled"],vk={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},yk=["disabled"],gk={key:0,class:"admin-filter-row"},bk={class:"admin-active-chips"},wk={class:"key"},kk=["onClick"],_k={key:1,class:"bulk-bar"},Ek={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},Ck={class:"paper-table-head admin-users-row",role:"row"},Nk={role:"columnheader",style:{width:"28px"}},Sk=["checked"],Dk={role:"columnheader"},Rk={role:"columnheader"},Tk={role:"cell",style:{width:"28px"}},Ok={type:"checkbox","aria-label":"Select user"},Ak={class:"cell-anon",role:"cell"},Ik=["src"],Vk={class:"anon-text"},Pk=["textContent","href"],qk={class:"anon-sub"},Mk={key:0},$k={key:1},Lk=["href"],Fk={key:2},Uk={class:"cell-views num",role:"cell"},zk=["textContent","href"],Hk={class:"cell-status",role:"cell"},Bk=["textContent"],Gk={class:"cell-status",role:"cell"},jk={key:0,class:"type-badge type-repo"},Wk={key:1,class:"empty-dash"},Kk={class:"cell-actions",role:"cell"},Yk={class:"dropdown"},Jk={class:"dropdown-menu dropdown-menu-right"},Qk=["href"],Xk=["href"],xk=["onClick"],Zk=["onClick"],e_={key:0,class:"paper-table-empty"},t_={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},s_={style:{"font-size":"12px",color:"var(--ink-muted)"}},n_={key:0,class:"pagination-compact"},o_=["disabled"],r_=["max"],i_=["disabled"],a_={class:"admin-filter-inline"},l_={class:"form-control form-control-sm"};function el(e,t){let o=we("field"),r=we("form");return l(),d("div",ek,[t[43]||(t[43]=ge('
Admin \xA0/\xA0 Users
Users
',3)),s("div",tk,[s("span",sk,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",{class:O(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=n=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1})},[t[13]||(t[13]=y("Active ",-1)),s("span",nk,c(e.fmt?.number(e.statusCountFor("active"))),1)],2),s("span",{class:O(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=n=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1})},[t[14]||(t[14]=y("Banned ",-1)),s("span",ok,c(e.fmt?.number(e.statusCountFor("banned"))),1)],2),s("span",{class:O(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=n=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1})},[t[15]||(t[15]=y("Removed ",-1)),s("span",rk,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),e.fetchError?(l(),d("div",ik,[t[16]||(t[16]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",ak,[s("div",lk,[s("div",dk,[E(s("input",uk,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",ck,"/"))]),s("span",pk,[t[18]||(t[18]=s("label",null,"Role",-1)),E((l(),d("select",fk,[...t[17]||(t[17]=[s("option",{value:""},"Any",-1),s("option",{value:"admin"},"Admin",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.role=n},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=n=>e.exportCsv())},[...t[19]||(t[19]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",mk,[s("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[20]||(t[20]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,hk),s("span",vk,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[21]||(t[21]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,yk)])]),e.chips?.length?(l(),d("div",gk,[s("div",bk,[(l(!0),d(Y,null,oe(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",wk,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button",onClick:a=>e.clearFilter(n.key)},[...t[23]||(t[23]=[s("i",{class:"fas fa-times"},null,-1)])],8,kk)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",_k,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=y(" selected",-1))]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=n=>e.bulkBan())},[...t[25]||(t[25]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>{e.selected={},e.allSelected=!1})},"Clear")])):m("v-if",!0),s("div",Ek,[s("div",Ck,[s("div",Nk,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,Sk)]),s("div",Dk,[s("span",{class:O(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=n=>e.sortBy("username"))},[t[26]||(t[26]=y("User ",-1)),s("i",{class:O(["fas",e.sortIcon("username")])},null,2)],2)]),t[28]||(t[28]=s("div",{role:"columnheader",class:"num"},"Repos",-1)),s("div",Rk,[s("span",{class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=n=>e.sortBy("status"))},[t[27]||(t[27]=y("Status ",-1)),s("i",{class:O(["fas",e.sortIcon("status")])},null,2)],2)]),t[29]||(t[29]=s("div",{role:"columnheader"},"Role",-1)),t[30]||(t[30]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(Y,null,oe(e.filteredUsers,(n,i)=>(l(),d("div",{class:O(["paper-table-row admin-users-row",{"row-selected":e.selected[n?.username]}]),role:"row"},[s("div",Tk,[E(s("input",Ok,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.username]=a},value:e.selected[n?.username],form:null,options:{}}]])]),s("div",Ak,[n?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(n?.photo)},null,8,Ik)):m("v-if",!0),s("div",Vk,[s("a",{class:"repo-name",textContent:c(n?.username),href:e.safeUrl("/admin/users/"+n?.username)},null,8,Pk),s("div",qk,[n?.emails[0].email?(l(),d("span",Mk,c(n?.emails[0].email),1)):m("v-if",!0),n?.emails[0].email?(l(),d("span",$k,"\xA0\xB7\xA0")):m("v-if",!0),s("a",{target:"_blank",href:e.safeUrl("https://github.com/"+n?.username)},[t[31]||(t[31]=s("i",{class:"fab fa-github"},null,-1)),y(" "+c(n?.username),1)],8,Lk),n?.dateOfEntry?(l(),d("span",Fk,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(n?.dateOfEntry)),1)):m("v-if",!0)])])]),s("div",Uk,[s("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(n?.repoCount||0)),href:e.safeUrl("/admin/?owner="+n?.username)},null,8,zk)]),s("div",Hk,[s("span",{class:O(["status-dot",{"status-ready":n?.status=="active","status-removed":n?.status=="removed"||n?.status=="banned"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,Bk)]),s("div",Gk,[n?.isAdmin?(l(),d("span",jk,"Admin")):m("v-if",!0),n?.isAdmin?m("v-if",!0):(l(),d("span",Wk,"\u2014"))]),s("div",Kk,[s("div",Yk,[t[37]||(t[37]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",Jk,[s("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+n?.username)},[...t[32]||(t[32]=[s("i",{class:"far fa-eye"},null,-1),y(" View details",-1)])],8,Qk),s("a",{class:"dropdown-item",href:e.safeUrl("/admin/?owner="+n?.username)},[...t[33]||(t[33]=[s("i",{class:"fas fa-code-branch"},null,-1),y(" View repositories",-1)])],8,Xk),t[36]||(t[36]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:ke(a=>e.banUser(n),["prevent"])},[...t[34]||(t[34]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])],8,xk),[[G,n?.status=="active"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ke(a=>e.activateUser(n),["prevent"])},[...t[35]||(t[35]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Activate",-1)])],8,Zk),[[G,n?.status=="removed"||n?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",e_,[...t[38]||(t[38]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No users match the current filters.",-1)])])):m("v-if",!0)]),s("div",t_,[s("span",s_,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",n_,[s("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[39]||(t[39]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous",-1)])],8,o_),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,r_),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[40]||(t[40]=[y("Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,i_)])):m("v-if",!0),s("span",a_,[t[42]||(t[42]=s("label",null,"Per page",-1)),E((l(),d("select",l_,[...t[41]||(t[41]=[s("option",{value:"10"},"10",-1),s("option",{value:"25"},"25",-1),s("option",{value:"50"},"50",-1),s("option",{value:"100"},"100",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var d_={class:"anonymize-page h-100"},u_={key:0,class:"repo-access","aria-label":"GitHub access"},c_={class:"repo-access-main"},p_={class:"repo-access-heading"},f_={class:"repo-access-controls"},m_={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},h_=["aria-pressed","disabled"],v_=["aria-pressed","disabled"],y_={key:1,class:"connection-badge"},g_={key:3,class:"connection-link",href:"/connections"},b_={class:"repo-access-note"},w_={key:0},k_={class:"anonymize-landing"},__={class:"anonymize-landing-inner"},E_={class:"form-group mt-4 mb-2"},C_={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},N_={class:"anonymize-workspace"},S_={class:"anonymize-topbar"},D_={class:"anonymize-topbar-inner"},R_={class:"paper-crumbs"},T_={class:"here"},O_={class:"anonymize-topbar-head"},A_={class:"paper-page-title anonymize-topbar-title"},I_={key:0},V_={key:1},P_={class:"anonymize-split"},q_={class:"anonymize-form-col overflow-auto"},M_={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},$_={class:"paper-settings-section"},L_={class:"form-group"},F_=["disabled"],U_={class:"invalid-feedback"},z_={class:"invalid-feedback"},H_={class:"invalid-feedback"},B_={class:"invalid-feedback"},G_={key:0,class:"form-grid-2"},j_={class:"form-group"},W_={class:"input-group"},K_={class:"form-control",id:"branch",name:"branch"},Y_=["textContent","value"],J_={class:"input-group-append"},Q_={class:"form-group"},X_=["disabled"],x_={class:"invalid-feedback"},Z_={class:"invalid-feedback"},e0={class:"form-check"},t0={class:"form-check-input",type:"checkbox",id:"update",name:"update"},s0={class:"paper-settings-section"},n0={class:"form-group"},o0=["disabled"],r0={class:"form-text text-muted"},i0={class:"invalid-feedback"},a0={class:"form-group"},l0=["disabled"],d0={class:"form-text text-muted"},u0={class:"invalid-feedback"},c0={class:"form-group"},p0=["disabled"],f0={class:"form-text text-muted"},m0={class:"invalid-feedback"},h0={class:"form-group"},v0={class:"form-text text-muted"},y0=["href"],g0={class:"invalid-feedback"},b0={class:"form-text text-muted"},w0={class:"paper-settings-section"},k0={class:"form-group"},_0={class:"form-text text-muted"},E0={class:"warning-feedback"},C0={class:"invalid-feedback"},N0={class:"paper-settings-section"},S0={class:"form-check"},D0={class:"form-check-input",type:"checkbox",id:"link",name:"link"},R0={class:"form-check"},T0={class:"form-check-input",type:"checkbox",id:"image",name:"image"},O0={class:"form-check"},A0={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},I0={class:"form-check"},V0={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},P0={class:"form-check"},q0=["disabled"],M0={class:"form-check"},$0={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},L0={class:"form-check"},F0={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},U0={class:"form-check"},z0={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},H0={class:"form-check"},B0={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},G0={class:"form-check"},j0={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},W0={class:"form-check"},K0={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},Y0={class:"form-check"},J0={class:"form-check-input",type:"checkbox",id:"title",name:"title"},Q0={class:"form-check"},X0={class:"form-check-input",type:"checkbox",id:"body",name:"body"},x0={class:"form-check"},Z0={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},eE={class:"form-check"},tE={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},sE={class:"form-check"},nE={class:"form-check-input",type:"checkbox",id:"username",name:"username"},oE={class:"form-check"},rE={class:"form-check-input",type:"checkbox",id:"date",name:"date"},iE={class:"form-check"},aE={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},lE={class:"paper-settings-section"},dE={class:"form-grid-2"},uE={class:"form-group"},cE={class:"form-control",id:"expiration",name:"expiration"},pE={class:"form-group"},fE=["min","max"],mE={class:"invalid-feedback"},hE={class:"invalid-feedback"},vE={class:"paper-settings-section"},yE={class:"form-group"},gE={style:{position:"relative"}},bE={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},wE={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},kE=["onClick"],_E=["src"],EE=["textContent"],CE=["textContent"],NE={class:"coauthor-list"},SE={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},DE=["src"],RE=["textContent","href"],TE=["onClick"],OE={class:"form-text text-muted"},AE=["textContent"],IE={class:"anonymize-submit-bar"},VE={key:0,class:"anonymize-preview-col"},PE=["innerHTML"],qE={key:1,class:"anonymize-preview-col"},ME={class:"anonymize-preview-body"},$E={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},LE={class:"pr-title mb-1"},FE={key:0},UE=["textContent"],zE={key:0},HE={key:1},BE={key:2},GE={class:"pr-comments mt-3"},jE={class:"pr-comment"},WE={class:"pr-comment-head"},KE=["textContent"],YE={key:0,class:"pr-comment-date"},JE={key:3},QE={class:"pr-comments"},XE={class:"pr-comment"},xE={class:"pr-comment-head"},ZE={key:0,class:"pr-comment-author"},eC=["textContent"],tC=["textContent"],sC={key:0,class:"pr-comment-body"},nC={key:2,class:"anonymize-preview-col"},oC={class:"anonymize-preview-body"},rC={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},iC={class:"pr-title mb-1"},aC={key:0},lC=["textContent"],dC={key:0},uC={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},cC={key:2,class:"paper-tabs",role:"tablist"},pC=["textContent"],fC={class:"paper-tab-content"},mC={key:0},hC=["innerHTML"],vC={key:1},yC={class:"pr-comments"},gC={class:"pr-comment"},bC={class:"pr-comment-head"},wC={key:0,class:"pr-comment-author"},kC=["textContent"],_C=["textContent"],EC={key:0,class:"pr-comment-body"};function tl(e,t){let o=et("gist-file"),r=et("markdown"),n=we("field"),i=we("form");return l(),d("div",d_,[e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",u_,[s("div",c_,[s("div",p_,[t[12]||(t[12]=s("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),s("div",null,[s("h2",null,c(e.detectedType==="gist"?"Gist access":"Repository access"),1),s("p",null,c(e.detectedType==="gist"?"Gists use your OAuth connection.":"Choose how we read your source code."),1)])]),s("div",f_,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",m_,[s("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},[...t[13]||(t[13]=[s("i",{class:"fas fa-shield-alt","aria-hidden":"true"},null,-1),y(" Read-only GitHub App",-1)])],8,h_),s("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,v_)])):m("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",y_,c(e.detectedType!=="gist"&&e.githubConnection==="github-app"?"Read-only GitHub App":"Legacy OAuth"),1)):m("v-if",!0),e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:2,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=a=>e.grantGitHubAccess())},[...t[14]||(t[14]=[y("Manage access ",-1),s("i",{class:"fas fa-external-link-alt","aria-hidden":"true"},null,-1)])])):m("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",g_,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):m("v-if",!0)])]),s("div",b_,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",w_,"Select repositories on GitHub, then return here.")):m("v-if",!0),t[15]||(t[15]=s("span",null,[s("i",{class:"fas fa-info-circle","aria-hidden":"true"}),y(" Selected content will be published, including content from private repositories.")],-1))])])):m("v-if",!0),m(" ===== STATE 1: No URL \u2014 centered input ===== "),E(s("div",k_,[s("div",__,[t[17]||(t[17]=s("div",{class:"paper-crumbs"},[y("My work \xA0/\xA0 "),s("span",{class:"here"},"New anonymization")],-1)),t[18]||(t[18]=s("h1",{class:"paper-page-title"},[y("New "),s("em",null,"anonymization")],-1)),t[19]||(t[19]=s("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, strip every trace of identity, and hand you back a stable link. ",-1)),s("div",E_,[t[16]||(t[16]=s("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),E(s("input",C_,null,512),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),t[20]||(t[20]=s("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1))])],512),[[G,!e.sourceUrl]]),m(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),E(s("div",N_,[s("header",S_,[s("div",D_,[s("div",R_,[t[21]||(t[21]=s("a",{href:"/dashboard"},"My work",-1)),t[22]||(t[22]=y(" \xA0/\xA0 ",-1)),s("span",T_,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),s("div",O_,[s("h1",A_,[e.isUpdate?m("v-if",!0):(l(),d("span",I_,[...t[23]||(t[23]=[y("New ",-1),s("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",V_,[...t[24]||(t[24]=[y("Edit ",-1),s("em",null,"anonymization",-1)])])):m("v-if",!0)]),E(s("span",{class:O(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[G,e.detectedType]])])])]),s("div",P_,[m(" Form column (left) "),s("div",q_,[E((l(),d("form",M_,[s("section",$_,[t[31]||(t[31]=s("div",{class:"paper-section-eyebrow"},"Source",-1)),s("div",L_,[t[25]||(t[25]=s("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,F_),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),E(s("div",U_," Please provide a valid GitHub URL. ",512),[[G,e.anonymize?.sourceUrl?.errors?.github]]),E(s("div",z_," Not accessible. The organization may restrict access. ",512),[[G,e.anonymize?.sourceUrl?.errors?.access]]),E(s("div",H_," Does not exist or is not accessible. ",512),[[G,e.anonymize?.sourceUrl?.errors?.missing]]),E(s("div",B_," Already anonymized. ",512),[[G,e.anonymize?.sourceUrl?.errors?.used]])]),e.detectedType==="repo"?(l(),d("div",G_,[s("div",j_,[t[27]||(t[27]=s("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),s("div",W_,[E((l(),d("select",K_,[(l(!0),d(Y,null,oe(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,Y_))),256))])),[[n,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),s("div",J_,[s("button",{class:"btn",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[3]||(t[3]=a=>e.getBranches(!0))},[...t[26]||(t[26]=[s("i",{class:"fas fa-sync","aria-hidden":"true"},null,-1)])])])])]),s("div",Q_,[t[28]||(t[28]=s("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),E(s("input",{class:O(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,X_),[[n,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),E(s("div",x_," The commit SHA is not valid. ",512),[[G,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),E(s("div",Z_," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[G,e.anonymize?.commit?.errors?.exists]])])])):m("v-if",!0),E(s("div",e0,[E(s("input",t0,null,512),[[n,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[29]||(t[29]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[30]||(t[30]=s("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[G,e.detectedType]])]),E(s("section",s0,[t[42]||(t[42]=s("div",{class:"paper-section-eyebrow"},"Identity",-1)),E(s("div",n0,[t[34]||(t[34]=s("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,o0),[[n,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",r0,[t[32]||(t[32]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[33]||(t[33]=y(".",-1))]),E(s("div",i0,"ID can only contain letters and numbers.",512),[[G,e.anonymize?.repoId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[G,e.anonymize?.repoId?.errors?.used]])],512),[[G,e.detectedType==="repo"]]),E(s("div",a0,[t[37]||(t[37]=s("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,l0),[[n,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",d0,[t[35]||(t[35]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[36]||(t[36]=y(".",-1))]),E(s("div",u0,"ID can only contain letters and numbers.",512),[[G,e.anonymize?.pullRequestId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[G,e.anonymize?.pullRequestId?.errors?.used]])],512),[[G,e.detectedType==="pr"]]),E(s("div",c0,[t[40]||(t[40]=s("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,p0),[[n,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",f0,[t[38]||(t[38]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[39]||(t[39]=y(".",-1))]),E(s("div",m0,"ID can only contain letters and numbers.",512),[[G,e.anonymize?.gistId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[G,e.anonymize?.gistId?.errors?.used]])],512),[[G,e.detectedType==="gist"]]),s("div",h0,[t[41]||(t[41]=s("label",{class:"paper-field-label",for:"conference"},[y("Conference "),s("span",{class:"paper-optional"},"(optional)")],-1)),E(s("input",{class:O(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[n,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),E(s("small",v0,[s("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,y0),y(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[G,e.conference_data]]),E(s("div",g0,"The conference is not activated.",512),[[G,e.anonymize?.conference?.errors?.activated]]),E(s("small",b0,"Link to a conference to apply its shared defaults.",512),[[G,!e.conference_data]])])],512),[[G,e.detectedType]]),E(s("section",w0,[t[50]||(t[50]=s("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),s("div",k0,[t[49]||(t[49]=s("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),E(s("textarea",{class:O(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[n,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),s("small",_0,[t[43]||(t[43]=y("One term per line (regex allowed). Replaced by ",-1)),s("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[44]||(t[44]=y(", or use ",-1)),t[45]||(t[45]=s("code",null,"term=>replacement",-1)),t[46]||(t[46]=y(" to pick your own (e.g. ",-1)),t[47]||(t[47]=s("code",null,"Anonymous=>ABC",-1)),t[48]||(t[48]=y(").",-1))]),E(s("div",E0,"Regex characters detected. Escape them if unintentional.",512),[[G,e.termsRegexWarning]]),E(s("div",C0,"Terms are in an invalid format.",512),[[G,e.anonymize?.terms?.errors?.format]])])],512),[[G,e.detectedType]]),E(s("section",N0,[t[69]||(t[69]=s("div",{class:"paper-section-eyebrow"},"Display",-1)),E(s("div",null,[s("div",S0,[E(s("input",D0,null,512),[[n,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[51]||(t[51]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),s("div",R0,[E(s("input",T0,null,512),[[n,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[52]||(t[52]=s("label",{class:"form-check-label",for:"image"},"Display images",-1))]),s("div",O0,[E(s("input",A0,null,512),[[n,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[53]||(t[53]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),s("div",I0,[E(s("input",V0,null,512),[[n,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[54]||(t[54]=s("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),s("div",P0,[E(s("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,q0),[[n,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[55]||(t[55]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),E(s("small",{class:"form-text text-muted d-block"},c(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),513),[[G,!e.details?.hasPage]]),E(s("small",{class:"form-text text-muted d-block"},c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),513),[[G,e.details?.hasPage&&e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch]])])],512),[[G,e.detectedType==="repo"]]),E(s("div",null,[s("div",M0,[E(s("input",$0,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[56]||(t[56]=s("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),s("div",L0,[E(s("input",F0,null,512),[[n,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[57]||(t[57]=s("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),s("div",U0,[E(s("input",z0,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[58]||(t[58]=s("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),s("div",H0,[E(s("input",B0,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[59]||(t[59]=s("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),s("div",G0,[E(s("input",j0,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[60]||(t[60]=s("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),s("div",W0,[E(s("input",K0,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[61]||(t[61]=s("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[G,e.detectedType==="gist"]]),E(s("div",null,[s("div",Y0,[E(s("input",J0,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[62]||(t[62]=s("label",{class:"form-check-label",for:"title"},"PR title",-1))]),s("div",Q0,[E(s("input",X0,null,512),[[n,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[63]||(t[63]=s("label",{class:"form-check-label",for:"body"},"PR body",-1))]),s("div",x0,[E(s("input",Z0,null,512),[[n,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[64]||(t[64]=s("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),s("div",eE,[E(s("input",tE,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[65]||(t[65]=s("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),s("div",sE,[E(s("input",nE,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[66]||(t[66]=s("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),s("div",oE,[E(s("input",rE,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[67]||(t[67]=s("label",{class:"form-check-label",for:"date"},"Dates",-1))]),s("div",iE,[E(s("input",aE,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[68]||(t[68]=s("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[G,e.detectedType==="pr"]])],512),[[G,e.detectedType]]),E(s("section",lE,[t[73]||(t[73]=s("div",{class:"paper-section-eyebrow"},"Expiration",-1)),s("div",dE,[s("div",uE,[t[71]||(t[71]=s("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),E((l(),d("select",cE,[...t[70]||(t[70]=[s("option",{value:"redirect"},"Redirect to GitHub when expired",-1),s("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),s("div",pE,[t[72]||(t[72]=s("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),E(s("input",{class:O(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,fE),[[n,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),E(s("div",mE,"Pick a date in the future.",512),[[G,e.anonymize?.expirationDate?.errors?.min]]),E(s("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[G,e.anonymize?.expirationDate?.errors?.max]]),E(s("div",hE,"Enter a valid expiration date.",512),[[G,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[G,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[G,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[G,e.detectedType]]),E(s("section",vE,[t[77]||(t[77]=s("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[78]||(t[78]=s("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),E(s("div",yE,[t[74]||(t[74]=s("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),s("div",gE,[E(s("input",bE,null,512),[[n,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),E(s("div",wE,[(l(!0),d(Y,null,oe(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:ke(p=>e.addCoauthor(a,p),["prevent"])},[s("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,_E),s("span",{textContent:c(a?.username)},null,8,EE)],8,kE))),256))],512),[[G,e.coauthorResults?.length>0]])]),E(s("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,CE),[[G,e.coauthorError]])],512),[[G,e.role==="owner"||e.role==="admin"]]),s("div",NE,[(l(!0),d(Y,null,oe(e.coauthors,(a,u)=>(l(),d("div",SE,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,DE)):m("v-if",!0),s("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,RE),t[76]||(t[76]=s("span",{class:"type-badge type-coauthor"},"Co-author",-1)),E(s("button",{type:"button",class:"btn btn-sm",style:{"margin-left":"auto"},title:"Remove co-author",onClick:p=>e.removeCoauthor(a)},[...t[75]||(t[75]=[s("i",{class:"fas fa-times"},null,-1)])],8,TE),[[G,e.role==="owner"||e.role==="admin"]])]))),256)),E(s("div",OE," No co-authors yet. ",512),[[G,!e.coauthors||e.coauthors?.length===0]])])],512),[[G,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,AE)):m("v-if",!0),E(s("div",IE,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",class:"btn btn-ink",onClick:t[4]||(t[4]=ke(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[79]||(t[79]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Repository ",-1)])])):m("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",class:"btn btn-ink",onClick:t[5]||(t[5]=ke(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[80]||(t[80]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Repository ",-1)])])):m("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",class:"btn btn-ink",onClick:t[6]||(t[6]=ke(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[81]||(t[81]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Pull Request ",-1)])])):m("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",class:"btn btn-ink",onClick:t[7]||(t[7]=ke(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[82]||(t[82]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Pull Request ",-1)])])):m("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",class:"btn btn-ink",onClick:t[8]||(t[8]=ke(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[83]||(t[83]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Gist ",-1)])])):m("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",class:"btn btn-ink",onClick:t[9]||(t[9]=ke(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[84]||(t[84]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Gist ",-1)])])):m("v-if",!0)],512),[[G,e.detectedType]])])),[[i,e.viewState]])]),m(" Preview column (right) "),e.detectedType==="repo"&&e.html_readme?(l(),d("div",VE,[t[85]||(t[85]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"README with redactions applied")],-1)),s("div",{class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,PE)])):m("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",qE,[t[89]||(t[89]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"Gist with redactions applied")],-1)),s("div",ME,[s("div",$E,[s("h2",LE,[e.options?.title?(l(),d("span",FE,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):m("v-if",!0),s("span",{class:O(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,UE)):m("v-if",!0)]),e.options?.origin?(l(),d("small",zE,"Gist ID: "+c(e.details?.source?.gistId),1)):m("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",HE,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):m("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",BE,[s("ul",GE,[(l(!0),d(Y,null,oe(e.previewGistFiles,(a,u)=>(l(),d("li",jE,[s("div",WE,[s("strong",{textContent:c(a?.filename)},null,8,KE),a?.language?(l(),d("span",YE,c(a?.language),1)):m("v-if",!0)]),De(o,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):m("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",JE,[t[88]||(t[88]=s("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),s("ul",QE,[(l(!0),d(Y,null,oe(e.details?.gist?.comments,(a,u)=>(l(),d("li",XE,[s("div",xE,[e.options?.username?(l(),d("span",ZE,[t[86]||(t[86]=s("i",{class:"far fa-user"},null,-1)),t[87]||(t[87]=y(" @",-1)),s("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,eC)])):m("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,tC)):m("v-if",!0)]),e.options?.body?(l(),d("div",sC,[De(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0)]))),256))])])):m("v-if",!0)])])):m("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",nC,[t[94]||(t[94]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"Pull request with redactions applied")],-1)),s("div",oC,[s("div",rC,[s("h2",iC,[e.options?.title?(l(),d("span",aC,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):m("v-if",!0),s("span",{class:O(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,lC)):m("v-if",!0)]),e.options?.origin?(l(),d("small",dC,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):m("v-if",!0),e.options?.body?(l(),d("div",uC,[De(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",cC,[e.options?.diff?(l(),d("button",{key:0,class:O(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",onClick:t[10]||(t[10]=a=>e.prTabState.active="diff")},[...t[90]||(t[90]=[s("i",{class:"fas fa-code"},null,-1),y(" Diff ",-1)])],2)):m("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:O(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[11]||(t[11]=a=>e.prTabState.active="comments")},[t[91]||(t[91]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,pC)],2)):m("v-if",!0)])):m("v-if",!0),s("div",fC,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",mC,[s("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,hC)])):m("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",vC,[s("ul",yC,[(l(!0),d(Y,null,oe(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",gC,[s("div",bC,[e.options?.username?(l(),d("span",wC,[t[92]||(t[92]=s("i",{class:"far fa-user"},null,-1)),t[93]||(t[93]=y(" @",-1)),s("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,kC)])):m("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,_C)):m("v-if",!0)]),e.options?.body?(l(),d("div",EC,[De(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0)]))),256))])])):m("v-if",!0)])])])):m("v-if",!0)])],512),[[G,e.sourceUrl]])])}var CC={class:"container-fluid h-100 anonymize-page"},NC={class:"row h-100 flex-column flex-md-row"},SC={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},DC={class:"form-group"},RC={class:"form-group"},TC={class:"form-check"},OC={class:"form-check-input",type:"checkbox",id:"update",name:"update"},AC={class:"form-group"},IC={class:"form-text text-muted"},VC=["href"],PC={class:"invalid-feedback"},qC={class:"form-text text-muted"},MC={class:"form-group"},$C={id:"idHelp",class:"form-text text-muted"},LC={class:"invalid-feedback"},FC={class:"form-group"},UC={class:"invalid-feedback"},zC={class:"form-group"},HC={class:"form-control",id:"expiration",name:"expiration"},BC={class:"form-group",id:"expiration-date-form"},GC={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},jC={class:"accordion mb-3",id:"options"},WC={class:"card"},KC={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},YC={class:"card-body"},JC={class:"form-group mb-0"},QC={class:"form-check"},XC={class:"form-check-input",type:"checkbox",id:"link",name:"link"},xC={class:"form-check"},ZC={class:"form-check-input",type:"checkbox",id:"image",name:"image"},eN={class:"form-check"},tN={class:"form-check-input",type:"checkbox",id:"date",name:"date"},sN={class:"form-check"},nN={class:"form-check-input",type:"checkbox",id:"username",name:"username"},oN={class:"form-check"},rN={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},iN={class:"form-check"},aN={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},lN={class:"form-check"},dN={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},uN={class:"form-check"},cN={class:"form-check-input",type:"checkbox",id:"title",name:"title"},pN={class:"form-check"},fN={class:"form-check-input",type:"checkbox",id:"body",name:"body"},mN=["textContent"],hN={class:"anonymize-submit-bar"},vN={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},yN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},gN={class:"pr-title mb-1"},bN={key:0},wN=["textContent"],kN={key:0},_N={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},EN={class:"nav nav-tabs",id:"myTab",role:"tablist"},CN={key:0,class:"nav-item",role:"presentation"},NN={key:1,class:"nav-item",role:"presentation"},SN=["textContent"],DN={class:"tab-content",id:"pills-tabContent"},RN={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},TN={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},ON={style:{"overflow-x":"auto"}},AN=["innerHTML"],IN={key:0,class:"pr-comments list-group"},VN={class:"pr-comment list-group-item"},PN={class:"d-flex w-100 justify-content-between flex-wrap"},qN={key:0,class:"mb-1"},MN=["textContent"],$N={class:"mb-1"};function sl(e,t){let o=et("markdown"),r=we("field"),n=we("form");return l(),d("div",CC,[s("div",NC,[s("div",SC,[s("div",{class:O(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[E((l(),d("form",{class:O(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=ge('
Anonymize \xA0/\xA0 Pull request
Anonymize a pull request
Fill in the details \u2014 it only takes a minute.
Source
',4)),m(" pullRequestUrl "),s("div",DC,[t[2]||(t[2]=s("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[G,e.anonymize?.pullRequestUrl?.errors?.access]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[G,e.anonymize?.pullRequestUrl?.errors?.missing]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[G,e.anonymize?.pullRequestUrl?.errors?.used]])]),E(s("div",null,[s("div",RC,[s("div",TC,[E(s("input",OC,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=s("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=s("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=s("div",{class:"paper-section-eyebrow anonymize-section-title"},[s("i",{class:"fas fa-chalkboard-teacher"}),y(" Conference ID ")],-1)),m(" Conference "),s("div",AC,[t[5]||(t[5]=s("label",{for:"conference"},[y("Conference ID "),s("span",{class:"text-muted"},"(Optional)")],-1)),E(s("input",{class:O(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),E(s("small",IC,[s("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,VC),y(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[G,e.conference_data]]),E(s("div",PC," The conference is not activated. ",512),[[G,e.anonymize?.conference?.errors?.activated]]),E(s("small",qC," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[G,!e.conference_data]])]),t[27]||(t[27]=s("div",{class:"paper-section-eyebrow anonymize-section-title"},[s("i",{class:"fas fa-shield-alt"}),y(" Anonymization Options ")],-1)),m(" Pull Request ID "),s("div",MC,[t[6]||(t[6]=s("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",$C,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),E(s("div",LC," Repository id can only contain letters and numbers ",512),[[G,e.anonymize?.pullRequestId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[G,e.anonymize?.pullRequestId?.errors?.used]])]),m(" Terms "),s("div",FC,[t[7]||(t[7]=s("label",{for:"terms"},"Terms to anonymize",-1)),E(s("textarea",{class:O(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=s("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),E(s("div",UC," Terms are in an invalid format ",512),[[G,e.anonymize?.terms?.errors?.format]])]),s("div",zC,[t[10]||(t[10]=s("label",{for:"expiration"},"Expiration strategy",-1)),E((l(),d("select",HC,[...t[9]||(t[9]=[s("option",{value:"never",selected:""},"Never expire",-1),s("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),s("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=s("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),E(s("div",BC,[t[12]||(t[12]=s("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),E(s("input",GC,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[G,e.options?.expirationMode=="remove"]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[G,e.options?.expirationMode=="redirect"]])],512),[[G,e.options?.expirationMode!="never"]]),s("div",jC,[s("div",WC,[t[25]||(t[25]=s("div",{class:"card-header",id:"headingOne"},[s("h2",{class:"mb-0"},[s("button",{class:"btn btn-block text-left",type:"button","data-toggle":"collapse","data-target":"#collapseOne","aria-expanded":"true","aria-controls":"collapseOne"},[s("i",{class:"fas fa-cog mr-1"}),y(" Advanced options ")])])],-1)),s("div",KC,[s("div",YC,[s("div",JC,[s("div",QC,[E(s("input",XC,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),s("div",xC,[E(s("input",ZC,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),s("div",eN,[E(s("input",tN,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=s("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=s("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),s("div",sN,[E(s("input",nN,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=s("label",{class:"form-check-label",for:"username"},"Display username",-1))]),s("div",oN,[E(s("input",rN,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=s("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),s("div",iN,[E(s("input",aN,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=s("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),s("div",lN,[E(s("input",dN,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),s("div",uN,[E(s("input",cN,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=s("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),s("div",pN,[E(s("input",fN,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=s("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[G,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,mN)):m("v-if",!0),E(s("div",hN,[e.isUpdate?m("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ke(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ke(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update ",-1)])])):m("v-if",!0)],512),[[G,e.pullRequestUrl]])],2)),[[n,e.viewState]])],2)]),e.details?(l(),d("div",vN,[s("div",yN,[s("h2",gN,[e.options?.title?(l(),d("span",bN,c(e.anonymize(e.details?.pullRequest?.title)),1)):m("v-if",!0),s("span",{class:O(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,wN)):m("v-if",!0)]),e.options?.origin?(l(),d("small",kN,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):m("v-if",!0),e.options?.body?(l(),d("div",_N,[De(o,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0),s("ul",EN,[e.options?.diff?(l(),d("li",CN,[...t[31]||(t[31]=[s("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):m("v-if",!0),e.options?.comments?(l(),d("li",NN,[s("button",{class:O(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[s("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,SN)],2)])):m("v-if",!0)]),s("div",DN,[s("div",RN,[e.options?.diff?(l(),d("div",TN,[s("pre",ON,[s("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,AN)])])):m("v-if",!0)]),s("div",{class:O(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",IN,[(l(!0),d(Y,null,oe(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",VN,[s("div",PN,[e.options?.username?(l(),d("h5",qN," @"+c(e.anonymize(i?.author)),1)):m("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,MN)):m("v-if",!0)]),s("p",$N,[e.options?.body?(l(),ks(o,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):m("v-if",!0)])]))),256))])):m("v-if",!0)],2)])])):m("v-if",!0)])])}var LN={class:"container paper-page"},FN={class:"paper-settings-main claim-form"},UN={class:"form-group"},zN={class:"invalid-feedback"},HN={class:"form-group"};function nl(e,t){let o=we("field"),r=we("form");return l(),d("div",LN,[t[6]||(t[6]=ge('
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),s("div",FN,[t[5]||(t[5]=s("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),E((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=ke(n=>e.submitForm(n,()=>{e.claim()}),["prevent"]))},[s("div",UN,[t[1]||(t[1]=s("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",required:""},null,2),[[o,{state:e.viewState,set:n=>{e.repoUrl=n},value:e.repoUrl,form:"claimForm",options:{}}]]),E(s("div",zN," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[G,e.claimForm?.repoUrl?.errors?.not_found]])]),s("div",HN,[t[2]||(t[2]=s("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",required:""},null,2),[[o,{state:e.viewState,set:n=>{e.repoId=n},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=s("small",{id:"idHelp",class:"form-text text-muted"},[y("The ID is the last part of the anonymized URL: "),s("code",null,"anonymous.4open.science/r/"),y(".")],-1))]),t[4]||(t[4]=s("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var BN={class:"container page paper-page"},GN={class:"paper-crumbs"},jN={class:"here"},WN={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},KN=["textContent"],YN={key:0,class:"paper-page-lede"},JN=["textContent","href"],QN={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},XN=["textContent"],xN=["href"],ZN={class:"paper-meta-rule"},eS=["textContent"],tS=["textContent"],sS={key:0},nS={class:"search-wrap"},oS={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},rS={class:"dashboard-filter-controls"},iS={class:"dropdown"},aS={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},lS={class:"filter-btn-value"},dS={class:"dropdown-menu","aria-labelledby":"dropdownSort"},uS={class:"form-check dropdown-item"},cS={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},pS={class:"form-check dropdown-item"},fS={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},mS={class:"form-check dropdown-item"},hS={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},vS={class:"form-check dropdown-item"},yS={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},gS={class:"dropdown"},bS={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},wS={key:0,class:"filter-btn-value"},kS={key:1,class:"filter-btn-value"},_S={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},ES={class:"form-check dropdown-item"},CS=["id"],NS=["for"],SS={class:"dashboard-meta"},DS={class:"dashboard-count"},RS={key:0},TS={key:0},OS={key:1},AS={key:1},IS={key:0,class:"filter-chip"},VS=["onClick","aria-label"],PS={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},qS={class:"cell-anon",role:"cell"},MS={class:"anon-text"},$S=["textContent","href"],LS={class:"anon-sub"},FS={class:"anon-source"},US=["textContent","href"],zS={key:0},HS=["textContent","href"],BS={key:1},GS=["href"],jS={class:"cell-status",role:"cell"},WS={class:"status-line"},KS=["textContent"],YS={key:0,class:"status-sub"},JS=["textContent"],QS={class:"cell-expires",role:"cell"},XS={key:0,class:"expires-never"},xS=["textContent"],ZS={key:2,class:"expires-past"},e2={key:0},t2={key:3,class:"empty-dash","aria-label":"Not applicable"},s2={class:"cell-actions",role:"cell"},n2={class:"dropdown"},o2=["aria-label"],r2={class:"dropdown-menu dropdown-menu-right"},i2=["href"],a2=["href"],l2={key:0,class:"paper-table-empty"},d2={key:0},u2={key:1},c2={key:2,class:"paper-table-empty-actions"};function ol(e,t){let o=we("field"),r=we("form");return l(),d("div",BN,[s("div",null,[s("div",GN,[t[2]||(t[2]=s("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=y(" \xA0/\xA0 ",-1)),t[4]||(t[4]=s("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=y(" \xA0/\xA0 ",-1)),s("span",jN,c(e.conference?.conferenceID),1)]),s("div",WN,[s("div",null,[s("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,KN),e.conference?.url?(l(),d("p",YN,[s("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,JN)])):m("v-if",!0)]),s("div",QN,[s("span",{class:O(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[s("span",{class:O(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),s("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,XN)],2),s("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[s("i",{class:"far fa-edit mr-1","aria-hidden":"true"},null,-1),y(" Edit conference",-1)])],8,xN)])]),s("div",ZN,[s("span",null,[t[7]||(t[7]=y("ID ",-1)),s("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,eS)]),s("span",null,[t[8]||(t[8]=y("Review window ",-1)),s("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),s("span",null,[t[9]||(t[9]=y("Repositories ",-1)),s("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),s("span",null,[t[10]||(t[10]=y("Plan ",-1)),s("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,tS)]),e.conference?.price?(l(),d("span",sS,[t[11]||(t[11]=y("Cost so far ",-1)),s("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):m("v-if",!0)]),t[29]||(t[29]=s("div",{class:"paper-section-eyebrow"},"Repositories",-1)),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ke(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",nS,[E(s("input",oS,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",rS,[s("div",iS,[s("button",aS,[t[12]||(t[12]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",lS,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),s("div",dS,[t[17]||(t[17]=s("h6",{class:"dropdown-header"},"Order by",-1)),s("div",uS,[E(s("input",cS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),s("div",pS,[E(s("input",fS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=s("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),s("div",mS,[E(s("input",hS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),s("div",vS,[E(s("input",yS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=s("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),s("div",gS,[s("button",bS,[t[18]||(t[18]=s("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",wS,"All")):m("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?m("v-if",!0):(l(),d("span",kS,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),s("div",_S,[t[19]||(t[19]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(Y,null,oe(e.statusLabels,(n,i,a)=>(l(),d("div",ES,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,CS),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,NS)]))),256))])])])],32)),[[r,e.viewState]]),s("div",SS,[s("span",DS,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",RS,[y(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",TS,"y")):m("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",OS,"ies")):m("v-if",!0)])):m("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",AS,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(Y,null,oe(e.filters?.status,(n,i,a)=>(l(),d(Y,null,[n===!1?(l(),d("span",IS,[y(" Hiding "+c(e.statusLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,VS)])):m("v-if",!0)],64))),256))]),s("div",PS,[t[28]||(t[28]=s("div",{class:"paper-table-head",role:"row"},[s("div",{role:"columnheader"},"Repository"),s("div",{role:"columnheader"},"Status"),s("div",{role:"columnheader",class:"num"},"Views"),s("div",{role:"columnheader"},"Expires"),s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(Y,null,oe(e.filteredRepositories,(n,i)=>(l(),d("div",{class:O(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error"}]),role:"row",key:n?.repoId},[s("div",qS,[t[22]||(t[22]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",MS,[s("a",{class:"repo-name",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId+"/")},null,8,$S),s("div",LS,[s("span",FS,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,US),n?.options?.update&&n?.source?.branch?(l(),d("span",zS,[t[20]||(t[20]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,HS)])):m("v-if",!0),n?.source?.commit?(l(),d("span",BS,[t[21]||(t[21]=y(" \xB7 ",-1)),s("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,GS)])):m("v-if",!0)])])])]),s("div",jS,[s("div",WS,[s("span",{class:O(["status-dot","status-"+(n?.status=="error"?"error":n?.status=="ready"?"ready":n?.status=="expired"||n?.status=="removed"?n?.status:"progress")]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,KS)]),n?.anonymizeDate?(l(),d("div",YS,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView))},null,8,JS),s("div",QS,[n?.status=="ready"&&(n?.options?.expirationMode==="never"||!n?.options?.expirationDate)?(l(),d("span",XS,"Never")):m("v-if",!0),n?.status=="ready"&&n?.options?.expirationMode!=="never"&&n?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?.options?.expirationDate))},null,8,xS)):m("v-if",!0),n?.status=="expired"?(l(),d("span",ZS,[t[23]||(t[23]=y("Expired",-1)),n?.options?.expirationDate?(l(),d("span",e2,c(e.fmt?.humanTime(n?.options?.expirationDate)),1)):m("v-if",!0)])):m("v-if",!0),n?.status!="ready"&&n?.status!="expired"?(l(),d("span",t2,"\u2014")):m("v-if",!0)]),s("div",s2,[s("div",n2,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?.repoId},[...t[24]||(t[24]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,o2),s("div",r2,[s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[25]||(t[25]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,i2),s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[26]||(t[26]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,a2)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",l2,[t[27]||(t[27]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.conference?.repositories?.length?m("v-if",!0):(l(),d("span",d2,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",u2,"Nothing matches the current filters.")):m("v-if",!0),e.conference?.repositories?.length?(l(),d("div",c2,[s("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=n=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):m("v-if",!0)])):m("v-if",!0)])])])}var p2={class:"container page paper-page"},f2={class:"row"},m2={class:"w-100"},h2={class:"search-wrap"},v2={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},y2={class:"dashboard-filter-controls"},g2={class:"dropdown"},b2={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},w2={class:"filter-btn-value"},k2={class:"dropdown-menu","aria-labelledby":"dropdownSort"},_2={class:"form-check dropdown-item"},E2={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},C2={class:"form-check dropdown-item"},N2={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},S2={class:"form-check dropdown-item"},D2={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},R2={class:"dropdown"},T2={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},O2={key:0,class:"filter-btn-value"},A2={key:1,class:"filter-btn-value"},I2={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},V2={class:"form-check dropdown-item"},P2=["id"],q2=["for"],M2={class:"dashboard-meta"},$2={class:"dashboard-count"},L2={key:0},F2={key:0},U2={key:1},z2={key:0,class:"filter-chip"},H2=["onClick","aria-label"],B2={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},G2={class:"cell-anon",role:"cell"},j2={class:"anon-text"},W2=["textContent","href"],K2={class:"anon-sub"},Y2={class:"anon-source"},J2=["textContent"],Q2={key:0},X2=["textContent","href"],x2={class:"cell-status",role:"cell"},Z2={class:"status-line"},eD=["textContent"],tD=["textContent"],sD={class:"cell-expires",role:"cell"},nD={key:0},oD={key:1,class:"empty-dash","aria-label":"No review window"},rD={class:"cell-actions",role:"cell"},iD={class:"dropdown"},aD=["aria-label"],lD={class:"dropdown-menu dropdown-menu-right"},dD=["href"],uD=["href"],cD={key:0},pD=["onClick"],fD={key:0,class:"paper-table-empty"},mD={key:0},hD={key:1},vD={class:"paper-table-empty-actions"},yD={key:1,href:"/conference/new",class:"btn btn-ink"};function rl(e,t){let o=we("field"),r=we("form");return l(),d("div",p2,[s("div",f2,[s("div",m2,[t[9]||(t[9]=ge('
',2)),m(" Quota "),e.quota?(l(),d("div",kD,[(l(),d(Y,null,oe([{key:"repository",label:"Repositories",kind:"count"},{key:"storage",label:"Storage",kind:"bytes"},{key:"file",label:"Files",kind:"count"}],(n,i)=>s("div",_D,[s("div",ED,[s("span",CD,c(n?.label),1),n?.kind==="count"?(l(),d("span",ND,[y(c(e.fmt?.number(e.quota[n?.key].used)),1),e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("span",SD," / "+c(e.fmt?.number(e.quota[n?.key].total)),1)),e.quota[n?.key].unlimited?(l(),d("span",DD,"Unlimited")):m("v-if",!0)])):m("v-if",!0),n?.kind==="bytes"?(l(),d("span",RD,[y(c(e.fmt?.humanFileSize(e.quota[n?.key].used)),1),e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("span",TD," / "+c(e.fmt?.humanFileSize(e.quota[n?.key].total)),1)),e.quota[n?.key].unlimited?(l(),d("span",OD,"Unlimited")):m("v-if",!0)])):m("v-if",!0)]),s("div",{class:O(["quota-track","quota-"+e.quota[n?.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":n?.label+" quota","aria-valuenow":e.quota[n?.key].used,"aria-valuemax":e.quota[n?.key].unlimited?e.quota[n?.key].used:e.quota[n?.key].total,"aria-valuetext":e.quota[n?.key].unlimited?"unlimited":e.fmt.number(e.quota[n?.key].percent,0)+"% used"},[e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Ve({width:e.quota[n?.key].percent+"%"})},null,4))],10,AD)])),64))])):m("v-if",!0),m(" Search + filters "),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[5]||(t[5]=ke(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",ID,[E(s("input",VD,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",PD,[s("div",qD,[s("button",{type:"button",class:O(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[0]||(t[0]=n=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,MD),s("button",{type:"button",class:O(["btn",{"btn-primary":e.typeFilter==="repo"}]),onClick:t[1]||(t[1]=n=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},"Repos",10,$D),s("button",{type:"button",class:O(["btn",{"btn-primary":e.typeFilter==="pr"}]),onClick:t[2]||(t[2]=n=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},"PRs",10,LD),s("button",{type:"button",class:O(["btn",{"btn-primary":e.typeFilter==="gist"}]),onClick:t[3]||(t[3]=n=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},"Gists",10,FD)]),s("div",UD,[s("button",zD,[t[12]||(t[12]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",HD,c(e.sortLabel()),1),s("i",{class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2),s("span",BD,c(e.sortDesc()?"descending":"ascending"),1)]),s("div",GD,[t[14]||(t[14]=s("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(Y,null,oe(e.sortFields,(n,i,a)=>(l(),d("div",jD,[s("input",{class:"form-check-input",type:"radio",name:"sort",onClick:u=>e.setSort(i,n.defaultDesc),checked:e.isSortedBy(i),id:"sort-"+a},null,8,WD),s("label",{class:"form-check-label",for:"sort-"+a},c(n?.label),9,KD)]))),256)),t[15]||(t[15]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item",onClick:t[4]||(t[4]=n=>e.toggleSortDirection())},[t[13]||(t[13]=s("i",{class:"fas fa-exchange-alt fa-rotate-90","aria-hidden":"true"},null,-1)),y(" "+c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])])]),s("div",YD,[s("button",JD,[t[16]||(t[16]=s("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?m("v-if",!0):(l(),d("span",QD,"All")),e.hasHiddenStatus()?(l(),d("span",XD,c(e.hiddenStatusCount())+" hidden",1)):m("v-if",!0)]),s("div",xD,[t[17]||(t[17]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(Y,null,oe(e.statusKeyLabels,(n,i,a)=>(l(),d("div",ZD,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,eR),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,tR)]))),256))])])])],32)),[[r,e.viewState]]),m(" Result count + active filter chips "),e.loading?m("v-if",!0):(l(),d("div",sR,[s("span",nR,[e.filteredItems?.length===e.items?.length?(l(),d("span",oR,[y(c(e.fmt?.number(e.items?.length))+" anonymization",1),e.items?.length!==1?(l(),d("span",rR,"s")):m("v-if",!0)])):m("v-if",!0),e.filteredItems?.length!==e.items?.length?(l(),d("span",iR,c(e.fmt?.number(e.filteredItems?.length))+" of "+c(e.fmt?.number(e.items?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(Y,null,oe(e.filters?.status,(n,i,a)=>(l(),d(Y,null,[n===!1?(l(),d("span",aR,[y(" Hiding "+c(e.statusKeyLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusKeyLabels[i]+" again"},"\xD7",8,lR)])):m("v-if",!0)],64))),256)),e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn-link-inline",onClick:t[6]||(t[6]=n=>e.clearFilters())},"Clear filters")):m("v-if",!0)]))]),m(" Table "),s("div",{class:"paper-table paper-table-dashboard w-100",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[s("div",uR,[s("div",{role:"columnheader","aria-sort":e.isSortedBy("_name")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("_name")}]),onClick:t[7]||(t[7]=n=>e.setSort("_name"))},[t[19]||(t[19]=y(" Anonymization ",-1)),e.isSortedBy("_name")?(l(),d("i",{key:0,class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,cR),s("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("status")}]),onClick:t[8]||(t[8]=n=>e.setSort("status"))},[t[20]||(t[20]=y(" Status ",-1)),e.isSortedBy("status")?(l(),d("i",{key:0,class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,pR),s("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[9]||(t[9]=n=>e.setSort("pageView"))},[t[21]||(t[21]=y(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("i",{key:0,class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,fR),s("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[10]||(t[10]=n=>e.setSort("options.expirationDate"))},[t[22]||(t[22]=y(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("i",{key:0,class:O(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,mR),t[23]||(t[23]=s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")],-1))]),m(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(Y,null,oe([1,2,3,4],(n,i)=>(l(),d(Y,null,[e.loading?(l(),d("div",hR,[...t[24]||(t[24]=[s("div",{class:"cell-anon",role:"cell"},[s("span",{class:"skeleton skeleton-badge"}),s("div",{class:"anon-text"},[s("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),s("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),s("div",{class:"cell-status",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),s("div",{class:"cell-views num",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),s("div",{class:"cell-expires",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),s("div",{class:"cell-actions",role:"cell"},null,-1)])])):m("v-if",!0)],64))),64)),(l(!0),d(Y,null,oe(e.filteredItems,(n,i)=>(l(),d(Y,{key:n?._type+":"+(n?._id||i)},[e.loading?m("v-if",!0):(l(),d("div",{key:0,class:O(["paper-table-row",{"repo-inactive":n?._statusKey=="expired"||n?._statusKey=="removed","repo-error":n?.status=="error","row-clickable":!!n?._viewUrl}]),role:"row",onClick:a=>e.openItem(n,a)},[s("div",yR,[s("span",{class:O(["type-badge",{"type-repo":n?._type==="repo","type-pr":n?._type==="pr","type-gist":n?._type==="gist"}])},c(n?._type==="repo"?"Repo":n?._type==="pr"?"PR":"Gist"),3),s("div",gR,[s("div",bR,[n?._viewUrl?(l(),d("a",{key:0,class:"repo-name",textContent:c(n?._name),href:e.safeUrl(n?._viewUrl)},null,8,wR)):m("v-if",!0),n?._viewUrl?m("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(n?._name)},null,8,kR)),n?.role==="coauthor"?(l(),d("span",_R,"Co-author")):m("v-if",!0)]),!n?._broken||n?.conference?(l(),d("div",ER,[n?._type==="repo"&&n?.source?.fullName&&!n?._broken?(l(),d("span",CR,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,NR),n?.options?.update&&n?.source?.branch?(l(),d("span",SR,[t[25]||(t[25]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,DR)])):m("v-if",!0),n?.source?.commit?(l(),d("span",RR,[t[26]||(t[26]=y(" \xB7 ",-1)),s("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,TR)])):m("v-if",!0)])):m("v-if",!0),n?._type==="pr"&&n?.source?.repositoryFullName&&!n?._broken?(l(),d("span",OR,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?._source),href:e.safeUrl("https://github.com/"+n?.source?.repositoryFullName+"/pull/"+n?.source?.pullRequestId)},null,8,AR)])):m("v-if",!0),n?._type==="gist"&&n?.source?.gistId&&!n?._broken?(l(),d("span",IR,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?._source),href:e.safeUrl("https://gist.github.com/"+n?.source?.gistId)},null,8,VR)])):m("v-if",!0),n?.conference?(l(),d("span",{key:3,class:"cell-conf conf-tag",title:n?.conference},[t[27]||(t[27]=s("i",{class:"fas fa-university","aria-hidden":"true"},null,-1)),t[28]||(t[28]=y()),s("span",{textContent:c(n?.conference)},null,8,qR)],8,PR)):m("v-if",!0)])):m("v-if",!0)])]),s("div",MR,[s("div",$R,[s("span",{class:O(["status-dot","status-"+n?._statusKey]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,LR)]),n?.status=="error"&&n?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,FR)):m("v-if",!0),n?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(n?.anonymizeDate||n?.lastView)}," Last activity "+c(e.fmt?.humanTime(n?.anonymizeDate||n?.lastView))+" \xB7 may be stuck ",9,UR)):m("v-if",!0),n?.status!="error"&&!n?._stale&&n?.anonymizeDate?(l(),d("div",zR," anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView))},null,8,HR),s("div",BR,[n?._expiry?.kind==="never"?(l(),d("span",GR,"Never")):m("v-if",!0),n?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?._expiry?.date))},null,8,jR)):m("v-if",!0),n?._expiry?.kind==="expired"&&n?._expiry?.date?(l(),d("span",WR,"Expired "+c(e.fmt?.humanTime(n?._expiry?.date)),1)):m("v-if",!0),n?._expiry?.kind==="expired"&&!n?._expiry?.date?(l(),d("span",KR,"Expired")):m("v-if",!0),n?._expiry?.kind==="none"?(l(),d("span",YR,"\u2014")):m("v-if",!0)]),s("div",JR,[n?._broken?m("v-if",!0):(l(),d("div",QR,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?._name},[...t[29]||(t[29]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,XR),s("div",xR,[s("a",{class:"dropdown-item",href:e.safeUrl(n?._viewUrl)},[...t[30]||(t[30]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,ZR),n?._type==="repo"&&n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[31]||(t[31]=[s("i",{class:"fas fa-globe","aria-hidden":"true"},null,-1),y(" View page ",-1)])],8,eT)):m("v-if",!0),s("a",{class:"dropdown-item",href:e.safeUrl(n?._editUrl)},[...t[32]||(t[32]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,tT),n?.status=="ready"||n?.status=="error"?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:a=>e.refreshItem(n)},[...t[33]||(t[33]=[s("i",{class:"fas fa-sync","aria-hidden":"true"},null,-1),y(" Force update ",-1)])],8,sT)):m("v-if",!0),n?.status=="removed"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:a=>e.refreshItem(n)},[...t[34]||(t[34]=[s("i",{class:"fas fa-check-circle","aria-hidden":"true"},null,-1),y(" Enable ",-1)])],8,nT)):m("v-if",!0),n?.status=="expired"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:a=>e.extendItem(n)},[...t[35]||(t[35]=[s("i",{class:"fas fa-calendar-plus","aria-hidden":"true"},null,-1),y(" Extend 6 months ",-1)])],8,oT)):m("v-if",!0),(n?.status=="ready"||n?.status=="expired"||n?.status=="error")&&n?.role!=="coauthor"?(l(),d("div",rT,[t[37]||(t[37]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeItem(n)},[...t[36]||(t[36]=[s("i",{class:"fas fa-trash-alt","aria-hidden":"true"},null,-1),y(" Remove ",-1)])],8,iT)])):m("v-if",!0)])]))])],10,vR))],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",aT,[t[39]||(t[39]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.items?.length==0?(l(),d("span",lT,"You have no anonymizations yet.")):m("v-if",!0),e.items?.length>0?(l(),d("span",dT,"Nothing matches the current filters.")):m("v-if",!0),s("div",uT,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[11]||(t[11]=n=>e.clearFilters())},"Clear filters")):m("v-if",!0),e.items?.length==0?(l(),d("a",cT,[...t[38]||(t[38]=[s("i",{class:"fa fa-plus-circle mr-1","aria-hidden":"true"},null,-1),y(" New anonymization",-1)])])):m("v-if",!0)])])):m("v-if",!0)],8,dR)])])}var pT={class:"explorer-page"},fT=["aria-label"],mT=["textContent"],hT={class:"leftCol-head"},vT={class:"leftCol-search"},yT={class:"tree-search-box"},gT={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},bT={class:"leftCol-project-header"},wT=["textContent"],kT={class:"project-file-count"},_T={class:"leftCol-body"},ET={key:0,class:"paper-inline-warning",role:"alert"},CT={key:1,class:"paper-inline-warning",role:"alert"},NT={class:"leftCol-foot"},ST=["title"],DT={class:"explorer-main"},RT={class:"status-bar"},TT={class:"breadcrumb paths","aria-label":"Path"},OT=["textContent"],AT={class:"status-bar-actions"},IT=["href"],VT={class:"d-none d-md-inline"},PT={class:"d-none d-md-inline"},qT=["href"],MT=["href"],$T=["href"],LT=["href"],FT={class:"explorer-content"};function al(e,t){let o=et("tree"),r=et("partial-view"),n=we("field");return l(),d("div",pT,[E(s("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[s("i",{class:O(["fas",e.sidebarCollapsed?"fa-folder-open":"fa-times"])},null,2),s("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,mT)],8,fT),[[G,e.files?.length]]),E(s("div",{class:O(["leftCol",{collapsed:e.sidebarCollapsed}])},[s("div",hT,[t[7]||(t[7]=s("span",{class:"leftCol-eyebrow"},"Files",-1)),s("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[s("i",{class:"fas fa-times"},null,-1)])])]),s("div",vT,[s("div",yT,[s("i",{class:O(["fas tree-search-icon",e.fileSearchLoading?"fa-spinner fa-spin":"fa-search"])},null,2),E(s("input",gT,null,512),[[n,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),E(s("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[G,!e.fileSearchQuery]]),E(s("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[G,e.fileSearchQuery]])])]),s("div",bT,[s("span",{class:"project-name",textContent:c(e.repoId)},null,8,wT),s("span",kT,c(e.fileCounts?.[""]||e.files?.length)+" files",1)]),s("div",_T,[e.options?.truncatedFolders?.length>0?(l(),d("div",ET,[t[8]||(t[8]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):m("v-if",!0),e.options?.hasSubmodules?(l(),d("div",CT,[t[9]||(t[9]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):m("v-if",!0),De(o,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),s("div",NT,[s("span",{class:"last-update","data-toggle":"tooltip","data-placement":"top",title:e.options?.lastUpdateDate}," Updated "+c(e.fmt?.date(e.options?.lastUpdateDate)),9,ST)])],2),[[G,e.files?.length]]),E(s("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[G,e.files?.length&&!e.sidebarCollapsed]]),s("div",DT,[s("div",RT,[s("ol",TT,[(l(!0),d(Y,null,oe(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,OT))),256))]),s("div",AT,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[10]||(t[10]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,IT)):m("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:O(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=i=>e.toggleAllowScripts())},[t[11]||(t[11]=s("i",{class:"fab fa-js"},null,-1)),s("span",VT,c(e.allowScripts?"JS on":"JS off"),1)],2)):m("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=i=>e.toggleSource())},[s("i",{class:O(["fas",e.showSource?"fa-eye":"fa-code"])},null,2),s("span",PT,c(e.showSource?"Rendered":"Source"),1)])):m("v-if",!0),E(s("a",{target:"_self",class:"btn btn-sm","aria-label":"View raw current file",title:"View the raw content of the current file",href:e.safeUrl(e.url)},[...t[12]||(t[12]=[s("i",{class:"fas fa-file-alt"},null,-1),s("span",{class:"d-none d-md-inline"}," Raw",-1)])],8,qT),[[G,e.content!=null]]),E(s("a",{target:"_self",class:"btn btn-sm","aria-label":"Download current file",title:"Download the current file",href:e.safeUrl(e.url+"&download=true")},[...t[13]||(t[13]=[s("i",{class:"fas fa-download"},null,-1),s("span",{class:"d-none d-md-inline"}," Download",-1)])],8,MT),[[G,e.content!=null]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Download full repository as ZIP",title:"Download the full repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[14]||(t[14]=[s("i",{class:"fas fa-file-archive"},null,-1),s("span",{class:"d-none d-md-inline"}," Full repo ZIP",-1)])],8,$T)):m("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[15]||(t[15]=[s("i",{class:"fas fa-globe"},null,-1),s("span",{class:"d-none d-md-inline"}," Website",-1)])],8,LT)):m("v-if",!0)])]),s("div",FT,[De(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var UT={class:"paper-faq"};function ll(e,t){return l(),d("div",UT,[...t[0]||(t[0]=[ge('
',1),s("div",{class:"paper-faq-body"},[s("aside",{class:"paper-faq-toc"},[s("div",{class:"paper-faq-toc-head"},"Contents"),s("nav",null,[s("a",{href:"#faq-general"},"General"),s("a",{href:"#faq-features"},"Features"),s("a",{href:"#faq-limitations"},"Limitations"),s("a",{href:"#faq-privacy"},"Privacy & Security"),s("a",{href:"#faq-hosting"},"Self-Hosting")])]),s("section",{class:"faq-section","aria-label":"FAQs"},[s("div",null,[m(" General "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-info-circle mr-2"}),y("General ")]),s("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),s("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),s("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),s("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[s("div",{class:"panel-body p-3"},[s("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),s("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[s("div",{class:"panel-body p-3"},[s("p",null,[y(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),s("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),y(", donating through "),s("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),y(', or by clicking the "Support me" button on the site. ')])])])])]),m(" Features "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-cogs mr-2"}),y("Features ")]),s("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),s("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub can display and render a wide variety of file types: "),s("ul",null,[s("li",null,[s("strong",null,"Text and source code"),y(" \u2014 displayed with syntax highlighting")]),s("li",null,[s("strong",null,"Markdown"),y(" \u2014 rendered as formatted HTML")]),s("li",null,[s("strong",null,"Images"),y(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),s("li",null,[s("strong",null,"PDFs"),y(" \u2014 rendered directly in the browser")]),s("li",null,[s("strong",null,"Jupyter Notebooks"),y(" \u2014 rendered with code cells and outputs")])]),s("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),s("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),s("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[s("div",{class:"panel-body p-3"},[s("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),s("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[s("div",{class:"panel-body p-3"},[s("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),s("ul",null,[s("li",null,[s("strong",null,"Never expire"),y(" \u2014 the anonymized repository remains accessible indefinitely.")]),s("li",null,[s("strong",null,"Redirect to GitHub"),y(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),s("li",null,[s("strong",null,"Remove content"),y(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),s("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),s("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),s("p",null," A few practical implications worth keeping in mind: "),s("ul",null,[s("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),s("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),s("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),s("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),s("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[s("code",null,`npm install -g @tdurieux/anonymous_github
+anonymous_github`)])])])])]),m(" Limitations "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-exclamation-triangle mr-2"}),y("Limitations ")]),s("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),s("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[s("div",{class:"panel-body p-3"},[s("ul",null,[s("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),s("li",null," Files larger than 8 MB are not supported. "),s("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),s("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),m(" Privacy & Security "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-shield-alt mr-2"}),y("Privacy & Security ")]),s("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),s("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[s("div",{class:"panel-body p-3"},[s("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),s("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub only reads your repositories \u2014 it never pushes commits, opens issues, modifies settings, or deletes anything. From your perspective as a user, the service is read-only. "),s("p",null,[y(" However, GitHub's OAuth scopes do not offer a read-only option for private repositories: the only scope that grants access to private repos is "),s("code",null,"repo"),y(", which is documented as full read/write access. To support users who want to anonymize a private repository, Anonymous GitHub must request that scope, and GitHub then displays the broader permission text at sign-in. The application itself only ever performs read operations against the GitHub API. ")]),s("p",null,[y(" If you only anonymize public repositories, the source code is open and can be audited on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),y(", or you can self-host your own instance. ")])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),s("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[s("div",{class:"panel-body p-3"},[s("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),m(" Self-Hosting "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-server mr-2"}),y("Self-Hosting ")]),s("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),s("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[s("div",{class:"panel-body p-3"},[s("p",null,[y(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),y(". ")]),s("p",null," The basic steps are: "),s("ol",null,[s("li",null,"Clone the repository and install dependencies"),s("li",null,[y("Create a "),s("code",null,".env"),y(" file with your GitHub token, OAuth client ID, and client secret")]),s("li",null,[y("Run "),s("code",null,"docker-compose up -d")])])])])])]),s("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[s("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),s("p",{class:"text-muted mb-0"},[y(" Open an issue on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),y(" and we'll be happy to help. ")])])])])],-1)])])}var zT={class:"pr-page"},HT={class:"container paper-page pr-page-inner"},BT={class:"pr-header"},GT={class:"paper-page-title pr-title"},jT=["textContent"],WT={key:1,class:"text-muted"},KT=["href"],YT={class:"pr-header-meta"},JT={key:0,class:"pr-meta-item"},QT=["textContent"],XT={key:1,class:"pr-meta-item"},xT=["textContent"],ZT={key:2,class:"pr-meta-item"},eO=["textContent"],tO={key:0,class:"paper-tabs",role:"tablist"},sO=["textContent"],nO=["textContent"],oO={class:"paper-tab-content"},rO={key:0},iO={class:"pr-comments"},aO={class:"pr-comment"},lO={class:"pr-comment-head"},dO=["textContent"],uO={key:0,class:"pr-comment-date"},cO={key:0,class:"paper-table-empty"},pO={key:1},fO={class:"pr-comments"},mO={class:"pr-comment"},hO={class:"pr-comment-head"},vO={key:0,class:"pr-comment-author"},yO=["textContent"],gO=["textContent"],bO={key:0,class:"pr-comment-body"},wO={key:0,class:"paper-table-empty"};function dl(e,t){let o=et("gist-file"),r=et("markdown");return l(),d("div",zT,[s("div",HT,[t[15]||(t[15]=s("div",{class:"paper-crumbs"},[s("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),s("span",{class:"here"},"Gist")],-1)),s("header",BT,[s("h1",GT,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,jT)):m("v-if",!0),e.details?.description?m("v-if",!0):(l(),d("span",WT,"Untitled gist")),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:2,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[2]||(t[2]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,KT)):m("v-if",!0)]),s("div",YT,[s("span",{class:O(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",JT,[t[3]||(t[3]=s("i",{class:"far fa-user"},null,-1)),t[4]||(t[4]=y(" @",-1)),s("span",{textContent:c(e.details?.ownerLogin)},null,8,QT)])):m("v-if",!0),e.details?.updatedDate?(l(),d("span",XT,[t[5]||(t[5]=s("i",{class:"far fa-clock"},null,-1)),t[6]||(t[6]=y()),s("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,xT)])):m("v-if",!0),e.details?.anonymizeDate?(l(),d("span",ZT,[t[7]||(t[7]=s("i",{class:"fas fa-user-secret"},null,-1)),t[8]||(t[8]=y(" Anonymized ",-1)),s("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,eO)])):m("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",tO,[e.details?.files?(l(),d("button",{key:0,class:O(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",onClick:t[0]||(t[0]=n=>e.tabState.active="files")},[t[9]||(t[9]=s("i",{class:"fas fa-file-code"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,sO)],2)):m("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:O(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[1]||(t[1]=n=>e.tabState.active="comments")},[t[10]||(t[10]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,nO)],2)):m("v-if",!0)])):m("v-if",!0),s("div",oO,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",rO,[s("ul",iO,[(l(!0),d(Y,null,oe(e.details?.files,(n,i)=>(l(),d("li",aO,[s("div",lO,[s("strong",{textContent:c(n?.filename)},null,8,dO),n?.language?(l(),d("span",uO,c(n?.language),1)):m("v-if",!0)]),De(o,{file:n},null,8,["file"])]))),256)),e.details?.files?.length?m("v-if",!0):(l(),d("li",cO,[...t[11]||(t[11]=[s("i",{class:"fas fa-file"},null,-1),s("span",null,"No files in this gist.",-1)])]))])])):m("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",pO,[s("ul",fO,[(l(!0),d(Y,null,oe(e.details?.comments,(n,i)=>(l(),d("li",mO,[s("div",hO,[n?.author?(l(),d("span",vO,[t[12]||(t[12]=s("i",{class:"far fa-user"},null,-1)),t[13]||(t[13]=y(" @",-1)),s("span",{textContent:c(n?.author)},null,8,yO)])):m("v-if",!0),n?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(n?.updatedDate))},null,8,gO)):m("v-if",!0)]),n?.body?(l(),d("div",bO,[De(r,{content:n?.body},null,8,["content"])])):m("v-if",!0)]))),256)),e.details?.comments?.length?m("v-if",!0):(l(),d("li",wO,[...t[14]||(t[14]=[s("i",{class:"far fa-comment-dots"},null,-1),s("span",null,"No comments on this gist.",-1)])]))])])):m("v-if",!0)])])])}var kO={class:"collapse navbar-collapse",id:"navbarSupportedContent"},_O={class:"navbar-nav mr-auto smooth-scroll"},EO={key:0,class:"nav-item"},CO={key:1,class:"nav-item"},NO={key:2,class:"nav-item"},SO={key:3,class:"nav-item"},DO={class:"nav-item"},RO={key:4,class:"nav-item"},TO={class:"navbar-nav"},OO={key:0,class:"nav-item"},AO={key:1,class:"nav-item"},IO={key:2,class:"nav-item"},VO={key:3,class:"nav-item dropdown user-chip-wrap"},PO={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},qO=["src"],MO={class:"user-chip-name"},$O={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},LO={class:"dropdown-header"},FO=["innerHTML"];function ul(e,t){return l(),d(Y,null,[s("nav",{class:O(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[13]||(t[13]=s("a",{class:"navbar-brand",href:"/"},[y("Anonymous "),s("em",null,"GitHub")],-1)),t[14]||(t[14]=s("button",{class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[s("span",{class:"navbar-toggler-icon"})],-1)),s("div",kO,[s("ul",_O,[e.user?m("v-if",!0):(l(),d("li",EO,[s("a",{class:O(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",CO,[s("a",{class:O(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[2]||(t[2]=[s("i",{class:"fas fa-th-large d-lg-none mr-1"},null,-1),y(" My work ",-1)])],2)])):m("v-if",!0),e.user?(l(),d("li",NO,[s("a",{class:O(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[3]||(t[3]=[s("i",{class:"fas fa-user-secret d-lg-none mr-1"},null,-1),y(" Anonymize ",-1)])],2)])):m("v-if",!0),e.user?(l(),d("li",SO,[s("a",{class:O(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[4]||(t[4]=[s("i",{class:"fas fa-chalkboard-teacher d-lg-none mr-1"},null,-1),y(" Conferences ",-1)])],2)])):m("v-if",!0),s("li",DO,[s("a",{class:O(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[5]||(t[5]=[s("i",{class:"fas fa-question-circle d-lg-none mr-1"},null,-1),y("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",RO,[s("a",{class:O(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[6]||(t[6]=[s("i",{class:"fas fa-cog d-lg-none mr-1"},null,-1),y(" Admin ",-1)])],2)])):m("v-if",!0)]),s("ul",TO,[t[11]||(t[11]=s("li",{class:"nav-item"},[s("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[s("i",{class:"fab fa-github","aria-hidden":"true"})])],-1)),m(` "Report a bug" is about this service. Reviewers who land on an
anonymized repository often think it is about the paper, so the
- label names the service and the tooltip says who to contact. `),t[12]||(t[12]=s("li",{class:"nav-item d-none d-lg-block"},[s("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[s("i",{class:"fas fa-bug d-lg-none mr-1","aria-hidden":"true"}),y("Report a bug ")])],-1)),e.isDarkMode?m("v-if",!0):(l(),d("li",EO,[s("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=we(o=>{e.darkMode(!0)},["prevent"]))},[...t[7]||(t[7]=[s("i",{class:"fas fa-moon","aria-hidden":"true"},null,-1)])])])),e.isDarkMode?(l(),d("li",CO,[s("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=we(o=>{e.darkMode(!1)},["prevent"]))},[...t[8]||(t[8]=[s("i",{class:"fas fa-sun","aria-hidden":"true"},null,-1)])])])):m("v-if",!0),e.user?m("v-if",!0):(l(),d("li",NO,[...t[9]||(t[9]=[s("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[s("i",{class:"fab fa-github mr-1"}),y(" Sign in ")],-1)])])),e.user?(l(),d("li",SO,[s("a",DO,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,RO)):m("v-if",!0),s("span",TO,c(e.user?.username),1)]),s("div",OO,[s("h6",AO,"Signed in as @"+c(e.user?.username),1),t[10]||(t[10]=ke('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource codeSign out',8))])])):m("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,IO)):m("v-if",!0)],64)}var VO={class:"paper-landing"},PO={class:"paper-hero"},qO={class:"paper-hero-copy"},MO={class:"paper-cta-row"},$O={key:0,href:"/signin",target:"_self",class:"btn-hero"},LO={key:1,href:"/anonymize",class:"btn-hero"},FO={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},UO={class:"paper-stats-grid"},zO={class:"paper-stat-value"},HO={class:"paper-stat-label"},BO=["viewBox"],GO=["x","y","width","height"],jO={key:1,class:"paper-stat-delta"},WO={class:"paper-features paper-wrap","aria-label":"Product features"},KO={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},YO=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],JO={class:"paper-eyebrow"},QO={class:"paper-feature-title"},xO={class:"paper-feature-more"},XO={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},ZO=["href","target"],eA={class:"paper-features-stage"},tA=["id","aria-labelledby"],sA={class:"paper-frame"},nA={class:"paper-frame-bar","aria-hidden":"true"},oA={class:"url"},rA=["src","alt"],iA={class:"paper-footer"},aA={class:"paper-footer-inner"},lA={class:"paper-footer-col"},dA={key:0,href:"/dashboard"},uA={key:1,href:"/conferences"},cA={class:"paper-footer-foot"};function cl(e,t){return l(),d("div",VO,[m(" Hero: copy on the left, the product on the right "),s("section",PO,[s("div",qO,[t[2]||(t[2]=s("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=s("h1",{class:"hero-title"},[y(" Share the code,"),s("br"),s("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=s("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist with every trace of identity removed, so you can attach a link to your submission without breaking anonymity. ",-1)),s("div",MO,[e.user?m("v-if",!0):(l(),d("a",$O,[...t[0]||(t[0]=[s("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),y("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",LO," Anonymize a repository \u2192 ")):m("v-if",!0),t[1]||(t[1]=s("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[5]||(t[5]=s("ul",{class:"paper-reassure"},[s("li",null,"Free and open source"),s("li",null,"Read-only: never writes to your repos"),s("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=ke('
anonymous.4open.science/anonymize
',1))]),m(" Proof "),t[16]||(t[16]=ke('
Trusted by authors at
ICSE\xB7FSE\xB7OOPSLA
',1)),m(" Live stats "),s("section",FO,[t[7]||(t[7]=s("div",{class:"paper-stats-meta"},[s("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),s("div",{class:"paper-stats-meta-right"},[s("span",{class:"paper-stats-dot","aria-hidden":"true"}),y(" updated daily ")])],-1)),s("div",UO,[(l(!0),d(Y,null,oe(e.cards,(o,r)=>(l(),d("div",{class:"paper-stat-card",key:o?.key},[s("div",zO,c(e.fmt?.bigNum(o?.total)),1),s("div",HO,c(o?.label),1),e.history[o?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[o?.key].viewW+" 36"},[(l(!0),d(Y,null,oe(e.history[o?.key].bars,(n,i)=>(l(),d("rect",{key:i,class:O({"is-latest":i===e.history[o.key].bars.length-1}),x:n?.x,y:n?.y,width:n?.w,height:n?.h},null,10,GO))),128))],8,BO)):m("v-if",!0),e.history[o?.key].bars?.length>1?(l(),d("div",jO," +"+c(e.fmt?.number(e.history[o?.key].deltaToday))+" today ",1)):m("v-if",!0)]))),128))])]),m(" Before / after "),t[17]||(t[17]=s("section",{class:"paper-section-head paper-wrap"},[s("div",null,[s("div",{class:"paper-eyebrow"},"Before \xB7 after"),s("h2",null,[y("The same repository, "),s("em",null,"minus you.")])]),s("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),t[18]||(t[18]=s("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[s("div",{class:"pane"},[s("div",{class:"pane-header"},[s("span",{class:"pane-label"},"Before \xB7 your repo"),s("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),s("div",{class:"pane-body"},[s("div",null,[s("span",{class:"tok"},"#"),y(),s("strong",null,"DeepLearnUtils")]),s("div",null,"Developed by Jane Smith at MIT CSAIL."),s("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),s("div",null,"Contact: jane.smith@mit.edu")])]),s("div",{class:"pane"},[s("div",{class:"pane-header"},[s("span",{class:"pane-label"},"After \xB7 anonymous mirror"),s("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),s("div",{class:"pane-body"},[s("div",null,[s("span",{class:"tok"},"#"),y(),s("strong",null,"DeepLearnUtils")]),s("div",null,[y("Developed by "),s("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" at "),s("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),y(".")]),s("div",null,[y("See "),s("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),s("div",null,[y("Contact: "),s("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),m(" What you get: one screenshot, three tabs "),t[19]||(t[19]=s("section",{class:"paper-section-head paper-wrap",id:"about"},[s("div",null,[s("div",{class:"paper-eyebrow"},"What you get"),s("h2",null,[y("Anonymize, review, "),s("em",null,"manage.")])]),s("p",null," Every mirror is read-only and passes through the same filter, from the README to a PDF's link targets. Monitor it, update it, or remove it the day the decision is out. ")],-1)),s("section",WO,[s("div",KO,[(l(!0),d(Y,null,oe(e.features,(o,r)=>(l(),d("div",{class:O(["paper-feature",{"is-on":e.feature===o?.key}]),key:o?.key},[s("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:n=>e.selectFeature(o.key),onKeydown:n=>e.featureKeydown(n,r),id:"feature-tab-"+o?.key,"aria-controls":"feature-panel-"+o?.key,"aria-selected":e.feature===o?.key,tabindex:e.feature===o?.key?0:-1},[s("span",JO,c(o?.num)+" \xB7 "+c(o?.eyebrow),1),s("span",QO,[y(c(o?.title)+" ",1),s("em",null,c(o?.accent),1)])],40,YO),s("div",xO,[s("span",XO,[y(c(o?.title)+" ",1),s("em",null,c(o?.accent),1)]),s("p",null,c(o?.text),1),s("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(o)),target:e.featureTarget(o)},c(o?.cta)+" \u2192",9,ZO)])],2))),128))]),s("div",eA,[(l(!0),d(Y,null,oe(e.features,(o,r)=>E((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:o?.key,id:"feature-panel-"+o?.key,"aria-labelledby":"feature-tab-"+o?.key},[s("div",sA,[s("div",nA,[t[8]||(t[8]=s("span",{class:"dots"},[s("i"),s("i"),s("i")],-1)),s("span",oA,c(o?.url),1)]),s("div",{class:O("paper-crop paper-crop-"+o?.key)},[s("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(o?.img),alt:o?.alt},null,8,rA)],2)])],8,tA)),[[G,e.feature===o?.key]])),128))])]),m(" FAQ teaser "),t[20]||(t[20]=ke('
GitHub's OAuth scopes have no read-only option for private repositories. Anonymous GitHub only ever reads your repositories; it never pushes, modifies, or deletes anything.
Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Everything passes through the same redaction filter.
You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.
',1)),s("footer",iA,[s("div",aA,[t[12]||(t[12]=s("div",{class:"paper-footer-brand"},[s("div",{class:"paper-footer-mark"},[y("Anonymous "),s("em",null,"GitHub")]),s("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-blind peer review. ")],-1)),s("div",lA,[t[9]||(t[9]=s("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=s("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",dA,"My work")):m("v-if",!0),e.user?(l(),d("a",uA,"Conferences")):m("v-if",!0),t[11]||(t[11]=s("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=ke('',2))]),t[15]||(t[15]=s("div",{class:"paper-footer-rule"},null,-1)),s("div",cA,[s("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 MIT licensed",1),t[14]||(t[14]=s("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var pA={class:"paper-empty"},fA={class:"paper-empty-inner"},mA={key:0,class:"paper-eyebrow"},hA={key:1,class:"paper-eyebrow"},vA={key:2,class:"paper-empty-title"},yA=["textContent"];function pl(e,t){return l(),d("div",pA,[s("div",fA,[e.error?m("v-if",!0):(l(),d("div",mA,"Working")),e.error?(l(),d("div",hA,"Error")):m("v-if",!0),e.error?m("v-if",!0):(l(),d("h1",vA,[...t[0]||(t[0]=[y(" Loading",-1),s("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,yA)):m("v-if",!0)])])}var gA={class:"container paper-page paper-settings"},bA={class:"paper-crumbs"},wA={class:"here"},kA={class:"paper-page-title"},_A={class:"paper-settings-body"},EA={class:"paper-settings-toc"},CA={href:"#conf-billing"},NA={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},SA={id:"conf-basics",class:"paper-settings-section"},DA={class:"form-group"},RA={class:"invalid-feedback"},TA={class:"invalid-feedback"},OA={class:"form-group"},AA={class:"invalid-feedback"},IA={class:"form-group"},VA={class:"invalid-feedback"},PA={class:"invalid-feedback"},qA={id:"conf-window",class:"paper-settings-section"},MA={class:"form-grid-2"},$A={class:"form-group"},LA={class:"invalid-feedback"},FA={class:"invalid-feedback"},UA={class:"form-group"},zA={class:"invalid-feedback"},HA={class:"invalid-feedback"},BA={id:"conf-rendering",class:"paper-settings-section"},GA={class:"form-check"},jA={class:"form-check-input",type:"checkbox",id:"link",name:"link"},WA={class:"form-check"},KA={class:"form-check-input",type:"checkbox",id:"image",name:"image"},YA={class:"form-check"},JA={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},QA={class:"form-check"},xA={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},XA={id:"conf-features",class:"paper-settings-section"},ZA={class:"form-check"},eI={class:"form-check-input",type:"checkbox",id:"update",name:"update"},tI={class:"form-check"},sI={class:"form-check-input",type:"checkbox",id:"page",name:"page"},nI={id:"conf-plan",class:"paper-settings-section"},oI={class:"paper-plan-grid"},rI=["value"],iI=["textContent"],aI={class:"paper-plan-price"},lI=["innerHTML"],dI={key:0,id:"conf-billing",class:"paper-settings-section"},uI={class:"form-group"},cI={class:"form-group"},pI={class:"form-group"},fI={class:"form-group"},mI={class:"form-grid-3"},hI={class:"form-group"},vI={class:"form-group"},yI={class:"form-group"},gI={class:"form-group"},bI={class:"paper-settings-footer"},wI=["textContent"],kI=["textContent"];function fl(e,t){let o=be("paper-scrollspy"),r=be("field"),n=be("form");return l(),d("div",gA,[s("div",bA,[t[1]||(t[1]=s("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=y(" \xA0/\xA0 ",-1)),t[3]||(t[3]=s("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=y(" \xA0/\xA0 ",-1)),s("span",wA,c(e.editionMode?"Edit":"New"),1)]),s("h1",kA,[y(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=s("em",null,"conference",-1))]),t[42]||(t[42]=s("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),s("div",_A,[E((l(),d("aside",EA,[t[7]||(t[7]=s("div",{class:"paper-settings-toc-head"},"On this page",-1)),s("nav",null,[t[6]||(t[6]=ke('BasicsReview windowRendering defaultsFeaturesPlan',5)),E(s("a",CA,"Billing",512),[[G,e.plan?.pricePerRepo>0]])])])),[[o]]),E((l(),d("form",NA,[s("section",SA,[t[12]||(t[12]=s("div",{class:"paper-section-eyebrow"},"Basics",-1)),s("div",DA,[t[8]||(t[8]=s("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),E(s("div",RA," The name of the conference is invalid. ",512),[[G,e.conference?.name?.errors?.invalid]]),E(s("div",TA," The name of the conference is required. ",512),[[G,e.conference?.name?.errors?.required]])]),s("div",OA,[t[9]||(t[9]=s("label",{class:"paper-field-label",for:"url"},"Website",-1)),E(s("input",{type:"url",class:O(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),E(s("div",AA," The url of the conference is invalid. ",512),[[G,e.conference?.url?.errors?.invalid]])]),s("div",IA,[t[10]||(t[10]=s("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=s("small",{class:"form-text text-muted"},[y("3\u201310 characters, letters, numbers, "),s("code",null,"-"),y(" and "),s("code",null,"_"),y(". Authors reference this when they anonymize.")],-1)),E(s("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[G,e.conference?.conferenceID?.errors?.used]]),E(s("div",VA," The conference ID is required. ",512),[[G,e.conference?.conferenceID?.errors?.required]]),E(s("div",PA," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[G,e.conference?.conferenceID?.errors?.pattern]])])]),s("section",qA,[t[17]||(t[17]=s("div",{class:"paper-section-eyebrow"},"Review window",-1)),s("div",MA,[s("div",$A,[t[13]||(t[13]=s("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),E(s("input",{type:"date",class:O(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),E(s("div",LA," Start date is required. ",512),[[G,e.conference?.startDate?.errors?.required]]),E(s("div",FA," Start date must be before end date. ",512),[[G,e.conference?.startDate?.errors?.invalid]])]),s("div",UA,[t[15]||(t[15]=s("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),E(s("input",{type:"date",class:O(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),E(s("div",zA," End date is required. ",512),[[G,e.conference?.endDate?.errors?.required]]),E(s("div",HA," End date is invalid. ",512),[[G,e.conference?.endDate?.errors?.invalid]])])])]),s("section",BA,[t[25]||(t[25]=s("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),s("div",GA,[E(s("input",jA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=s("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),s("div",WA,[E(s("input",KA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=s("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),s("div",YA,[E(s("input",JA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=s("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),s("div",QA,[E(s("input",xA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=s("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))])]),s("section",XA,[t[30]||(t[30]=s("div",{class:"paper-section-eyebrow"},"Features",-1)),s("div",ZA,[E(s("input",eI,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[26]||(t[26]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[27]||(t[27]=s("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),s("div",tI,[E(s("input",sI,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[28]||(t[28]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[29]||(t[29]=s("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),s("section",nI,[t[32]||(t[32]=s("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[33]||(t[33]=s("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),s("div",oI,[(l(!0),d(Y,null,oe(e.plans,(i,a)=>(l(),d("label",{class:O(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[E(s("input",{type:"radio",name:"planPicker",value:i?.id},null,8,rI),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),s("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,iI),s("div",aI,[y(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[31]||(t[31]=s("span",{class:"paper-plan-per"},"/ repo / month",-1))]),s("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,lI)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",dI,[t[41]||(t[41]=s("div",{class:"paper-section-eyebrow"},"Billing",-1)),s("div",uI,[t[34]||(t[34]=s("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.name=i},value:e.options?.billing?.name,form:"conference",options:{}}]])]),s("div",cI,[t[35]||(t[35]=s("label",{class:"paper-field-label",for:"email"},"Email",-1)),E(s("input",{type:"email",class:O(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.email=i},value:e.options?.billing?.email,form:"conference",options:{}}]])]),s("div",pI,[t[36]||(t[36]=s("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address=i},value:e.options?.billing?.address,form:"conference",options:{}}]])]),s("div",fI,[E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address2=i},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),s("div",mI,[s("div",hI,[t[37]||(t[37]=s("label",{class:"paper-field-label",for:"city"},"City",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.city=i},value:e.options?.billing?.city,form:"conference",options:{}}]])]),s("div",vI,[t[38]||(t[38]=s("label",{class:"paper-field-label",for:"country"},"Country",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.country=i},value:e.options?.billing?.country,form:"conference",options:{}}]])]),s("div",yI,[t[39]||(t[39]=s("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.zip=i},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),s("div",gI,[t[40]||(t[40]=s("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.vat=i},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):m("v-if",!0),s("div",bI,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,wI)):m("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,kI)):m("v-if",!0),s("button",{id:"send",type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=we(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.editionMode?"Update":"Create")+" conference ",1)])])),[[n,e.viewState]])])])}var _I={key:0},EI=["innerHTML"],CI={key:3},NI=["src"],SI=["src"],DI={key:7},RI={controls:"controls"},TI=["src"],OI={key:8},AI={key:9,class:"file-error container d-flex h-100"},II={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},VI={class:"paper-error-msg"},PI={key:10,class:"file-error container d-flex h-100"},qI=["textContent"],MI={key:11,class:"file-error container d-flex h-100"},$I={key:12,class:"file-error container d-flex h-100"},LI={key:13,class:"file-error container d-flex h-100"},FI={key:14,class:"file-error container d-flex h-100"},UI={class:"paper-empty-title m-auto"},zI=["href"];function ml(e,t){let o=et("html-doc"),r=et("pdfviewer"),n=et("notebook"),i=be("code-editor");return l(),d(Y,null,[e.type=="text"?E((l(),d("div",_I,null,512)),[[i,{content:e.content,options:e.aceOption}]]):m("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.sanitize(e.content)},null,8,EI)):m("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),ks(o,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):m("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?E((l(),d("div",CI,null,512)),[[i,{content:e.content,options:e.aceOption}]]):m("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,NI)):m("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,SI)):m("v-if",!0),e.type=="pdf"?(l(),ks(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):m("v-if",!0),e.type=="audio"?(l(),d("div",DI,[s("audio",RI,[s("source",{src:e.safeUrl(e.url)},null,8,TI)])])):m("v-if",!0),e.type=="IPython"?(l(),d("div",OI,[De(n,{file:e.url,content:e.content},null,8,["file","content"])])):m("v-if",!0),e.type=="rate_limited"?(l(),d("div",AI,[s("div",II,[t[2]||(t[2]=s("div",{class:"paper-ratelimit-head"},[s("i",{class:"fas fa-hourglass-half"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Temporarily paused"),s("div",{class:"paper-error-title"},"GitHub API rate limit reached")])],-1)),s("p",VI,[t[0]||(t[0]=y("This repository will be available in ",-1)),s("strong",null,c(e.rateLimitCountdown),1),t[1]||(t[1]=y(". The page will reload automatically.",-1))])])])):m("v-if",!0),e.type=="error"?(l(),d("div",PI,[s("h1",{class:"paper-empty-title m-auto",textContent:c(e.fmt.translate("ERRORS."+e.content))},null,8,qI)])):m("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",MI,[...t[3]||(t[3]=[s("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):m("v-if",!0),e.type=="empty"?(l(),d("div",$I,[...t[4]||(t[4]=[s("h1",{class:"paper-empty-title m-auto"},[y("Empty "),s("em",null,"repository"),y(".")],-1)])])):m("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",LI,[...t[5]||(t[5]=[s("h1",{class:"paper-empty-title m-auto"},[y("Empty "),s("em",null,"file"),y(".")],-1)])])):m("v-if",!0),e.type=="binary"?(l(),d("div",FI,[s("h1",UI,[t[6]||(t[6]=y("Unsupported ",-1)),t[7]||(t[7]=s("em",null,"binary file",-1)),t[8]||(t[8]=y(". You can ",-1)),s("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,zI),t[9]||(t[9]=y(".",-1))])])):m("v-if",!0)],64)}var HI={class:"container page dashboard-page paper-page"},BI={class:"row"},GI={class:"w-100"},jI={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},WI={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},KI={class:"flex-grow-1"},YI={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},JI={class:"d-flex flex-wrap",style:{gap:"6px"}},QI={class:"dropdown"},xI={class:"dropdown-menu","aria-labelledby":"dropdownSort"},XI={class:"form-check dropdown-item"},ZI={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},eV={class:"form-check dropdown-item"},tV={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},sV={class:"form-check dropdown-item"},nV={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},oV={class:"form-check dropdown-item"},rV={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},iV={class:"form-check dropdown-item"},aV={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},lV={class:"dropdown"},dV={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},uV={class:"form-check dropdown-item"},cV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},pV={class:"form-check dropdown-item"},fV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},mV={class:"form-check dropdown-item"},hV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},vV={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},yV={class:"filter-chip"},gV=["onClick"],bV={class:"repo-list w-100"},wV={class:"repo-list-item-content"},kV={class:"repo-list-item-main"},_V={class:"repo-list-item-header"},EV=["textContent","href"],CV=["textContent"],NV=["textContent"],SV={class:"repo-source"},DV=["href"],RV={class:"repo-date"},TV={class:"repo-meta"},OV={key:0,title:"Conference"},AV=["title"],IV=["title"],VV=["title"],PV={key:1},qV={class:"repo-list-item-actions"},MV={class:"dropdown"},$V={class:"dropdown-menu dropdown-menu-right"},LV=["href"],FV=["onClick"],UV=["onClick"],zV=["onClick"],HV=["href"],BV={key:0,class:"repo-list-empty"};function hl(e,t){let o=be("field"),r=be("form");return l(),d("div",HI,[s("div",BI,[s("div",GI,[t[12]||(t[12]=ke('
My work \xA0/\xA0 Pull requests
Anonymized pull requests
Track PR mirrors you\u2019ve created and their reviewer traffic.
',2)),m(" Search + filters row "),E((l(),d("form",jI,[s("div",WI,[s("div",KI,[E(s("input",YI,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",JI,[s("div",QI,[t[6]||(t[6]=s("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),s("div",xI,[t[5]||(t[5]=s("h6",{class:"dropdown-header"},"Select order",-1)),s("div",XI,[E(s("input",ZI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=s("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),s("div",eV,[E(s("input",tV,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=s("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),s("div",sV,[E(s("input",nV,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=s("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),s("div",oV,[E(s("input",rV,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=s("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),s("div",iV,[E(s("input",aV,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=s("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),s("div",lV,[t[11]||(t[11]=s("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),s("div",dV,[t[10]||(t[10]=s("h6",{class:"dropdown-header"},"Select status",-1)),s("div",uV,[E(s("input",cV,null,512),[[o,{state:e.viewState,set:n=>{e.filters.status.ready=n},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=s("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),s("div",pV,[E(s("input",fV,null,512),[[o,{state:e.viewState,set:n=>{e.filters.status.expired=n},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=s("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),s("div",mV,[E(s("input",hV,null,512),[[o,{state:e.viewState,set:n=>{e.filters.status.removed=n},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=s("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[r,e.viewState]]),m(" Active filter chips "),E(s("div",vV,[(l(!0),d(Y,null,oe(e.filters?.status,(n,i,a)=>E((l(),d("span",yV,[y(c(e.fmt?.title(i))+" ",1),s("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:u=>{e.filters.status[i]=!0}}," \xD7 ",8,gV)],512)),[[G,!n]])),256))],512),[[G,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),m(" Pull request list "),s("ul",bV,[(l(!0),d(Y,null,oe(e.filteredPullRequests,(n,i)=>(l(),d("li",{class:O(["repo-list-item",{"repo-inactive":n?.status=="expired"||n?.status=="removed"||n?.status=="error"}])},[s("div",wV,[s("div",kV,[s("div",_V,[s("a",{class:"repo-name",textContent:c(n?.pullRequestId),href:e.safeUrl("/pr/"+n?.pullRequestId)},null,8,EV),s("span",{class:O(["status-badge",{"status-removed":n?.status=="removed"||n?.status=="expired"||n?.status=="removing"||n?.status=="expiring","status-preparing":n?.status=="preparing"||n?.status=="download","status-ready":n?.status=="ready","status-error":n?.status=="error"}])},[s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,CV),n?.status=="error"?(l(),d("span",{key:0,textContent:c(": "+n?.statusMessage)},null,8,NV)):m("v-if",!0)],2)]),s("div",SV,[s("span",null,[t[13]||(t[13]=s("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),s("a",{href:e.safeUrl("https://github.com/"+n?.source?.repositoryFullName+"/pull/"+n?.source?.pullRequestId)},c(n?.source?.repositoryFullName)+"#"+c(n?.source?.pullRequestId),9,DV)]),s("span",{class:O(["status-badge",{"status-ready":n?.merged,"status-removed":n?.state=="open","status-error":n?.state=="closed"&&!n?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(n?.merged?"merged":n?.state)),3),s("span",RV,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)])]),s("div",TV,[n?.conference?(l(),d("span",OV,[t[14]||(t[14]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+n?.options?.terms?.join(", ")},[t[15]||(t[15]=s("i",{class:"fas fa-shield-alt"},null,-1)),y(" "+c(e.fmt?.number(n?.options?.terms?.length)),1)],8,AV),s("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(n?.pageView)},[t[16]||(t[16]=s("i",{class:"far fa-eye"},null,-1)),y(" "+c(e.fmt?.number(n?.pageView)),1)],8,IV),s("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(n?.lastView)},[t[17]||(t[17]=s("i",{class:"far fa-calendar-alt"},null,-1)),y(" "+c(e.fmt?.humanTime(n?.lastView)),1)],8,VV),n?.options?.expirationMode!="never"&&n?.status=="ready"?(l(),d("span",PV,[t[18]||(t[18]=s("i",{class:"far fa-clock"},null,-1)),y(" Expire: "+c(e.fmt?.humanTime(n?.options?.expirationDate)),1)])):m("v-if",!0)])]),s("div",qV,[s("div",MV,[t[24]||(t[24]=s("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),s("div",$V,[s("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+n?.pullRequestId)},[...t[19]||(t[19]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,LV),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.updatePullRequest(n),["prevent"])},[...t[20]||(t[20]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update ",-1)])],8,FV),[[G,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.updatePullRequest(n),["prevent"])},[...t[21]||(t[21]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable ",-1)])],8,UV),[[G,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:we(a=>e.removePullRequest(n),["prevent"])},[...t[22]||(t[22]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove ",-1)])],8,zV),[[G,n?.status=="ready"]]),s("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+n?.pullRequestId+"/")},[...t[23]||(t[23]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View PR ",-1)])],8,HV)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",BV,[...t[25]||(t[25]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No pull requests to display.",-1)])])):m("v-if",!0)])])])}var GV={class:"container paper-page paper-settings"},jV={class:"paper-settings-body"},WV={class:"paper-settings-toc"},KV={class:"paper-settings-main"},YV={id:"settings-quota",class:"paper-settings-section"},JV={key:0,class:"quota-row"},QV={class:"quota-item"},xV={class:"quota-header"},XV={class:"quota-label"},ZV={key:0,class:"quota-value"},eP={key:0},tP={key:1,class:"quota-unlimited-tag"},sP={key:1,class:"quota-value"},nP={key:0},oP={key:1,class:"quota-unlimited-tag"},rP=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],iP={key:1,class:"quota-row","aria-hidden":"true"},aP={class:"quota-item"},lP={id:"settings-terms",class:"paper-settings-section"},dP={class:"form-group"},uP={class:"form-control",id:"terms",name:"terms",rows:"4",placeholder:`Jane Smith
+ label names the service and the tooltip says who to contact. `),t[12]||(t[12]=s("li",{class:"nav-item d-none d-lg-block"},[s("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[s("i",{class:"fas fa-bug d-lg-none mr-1","aria-hidden":"true"}),y("Report a bug ")])],-1)),e.isDarkMode?m("v-if",!0):(l(),d("li",OO,[s("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=ke(o=>{e.darkMode(!0)},["prevent"]))},[...t[7]||(t[7]=[s("i",{class:"fas fa-moon","aria-hidden":"true"},null,-1)])])])),e.isDarkMode?(l(),d("li",AO,[s("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=ke(o=>{e.darkMode(!1)},["prevent"]))},[...t[8]||(t[8]=[s("i",{class:"fas fa-sun","aria-hidden":"true"},null,-1)])])])):m("v-if",!0),e.user?m("v-if",!0):(l(),d("li",IO,[...t[9]||(t[9]=[s("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[s("i",{class:"fab fa-github mr-1"}),y(" Sign in ")],-1)])])),e.user?(l(),d("li",VO,[s("a",PO,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,qO)):m("v-if",!0),s("span",MO,c(e.user?.username),1)]),s("div",$O,[s("h6",LO,"Signed in as @"+c(e.user?.username),1),t[10]||(t[10]=ge('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource codeSign out',8))])])):m("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,FO)):m("v-if",!0)],64)}var UO={class:"paper-landing"},zO={class:"paper-hero"},HO={class:"paper-hero-copy"},BO={class:"paper-cta-row"},GO={key:0,href:"/signin",target:"_self",class:"btn-hero"},jO={key:1,href:"/anonymize",class:"btn-hero"},WO={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},KO={class:"paper-stats-grid"},YO={class:"paper-stat-value"},JO={class:"paper-stat-label"},QO=["viewBox"],XO=["x","y","width","height"],xO={key:1,class:"paper-stat-delta"},ZO={class:"paper-features paper-wrap","aria-label":"Product features"},eA={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},tA=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],sA={class:"paper-eyebrow"},nA={class:"paper-feature-title"},oA={class:"paper-feature-more"},rA={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},iA=["href","target"],aA={class:"paper-features-stage"},lA=["id","aria-labelledby"],dA={class:"paper-frame"},uA={class:"paper-frame-bar","aria-hidden":"true"},cA={class:"url"},pA=["src","alt"],fA={class:"paper-footer"},mA={class:"paper-footer-inner"},hA={class:"paper-footer-col"},vA={key:0,href:"/dashboard"},yA={key:1,href:"/conferences"},gA={class:"paper-footer-foot"};function cl(e,t){return l(),d("div",UO,[m(" Hero: copy on the left, the product on the right "),s("section",zO,[s("div",HO,[t[2]||(t[2]=s("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=s("h1",{class:"hero-title"},[y(" Share the code,"),s("br"),s("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=s("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist with every trace of identity removed, so you can attach a link to your submission without breaking anonymity. ",-1)),s("div",BO,[e.user?m("v-if",!0):(l(),d("a",GO,[...t[0]||(t[0]=[s("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),y("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",jO," Anonymize a repository \u2192 ")):m("v-if",!0),t[1]||(t[1]=s("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[5]||(t[5]=s("ul",{class:"paper-reassure"},[s("li",null,"Free and open source"),s("li",null,"Read-only: never writes to your repos"),s("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=ge('
anonymous.4open.science/anonymize
',1))]),m(" Proof "),t[16]||(t[16]=ge('
Trusted by authors at
ICSE\xB7FSE\xB7OOPSLA
',1)),m(" Live stats "),s("section",WO,[t[7]||(t[7]=s("div",{class:"paper-stats-meta"},[s("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),s("div",{class:"paper-stats-meta-right"},[s("span",{class:"paper-stats-dot","aria-hidden":"true"}),y(" updated daily ")])],-1)),s("div",KO,[(l(!0),d(Y,null,oe(e.cards,(o,r)=>(l(),d("div",{class:"paper-stat-card",key:o?.key},[s("div",YO,c(e.fmt?.bigNum(o?.total)),1),s("div",JO,c(o?.label),1),e.history[o?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[o?.key].viewW+" 36"},[(l(!0),d(Y,null,oe(e.history[o?.key].bars,(n,i)=>(l(),d("rect",{key:i,class:O({"is-latest":i===e.history[o.key].bars.length-1}),x:n?.x,y:n?.y,width:n?.w,height:n?.h},null,10,XO))),128))],8,QO)):m("v-if",!0),e.history[o?.key].bars?.length>1?(l(),d("div",xO," +"+c(e.fmt?.number(e.history[o?.key].deltaToday))+" today ",1)):m("v-if",!0)]))),128))])]),m(" Before / after "),t[17]||(t[17]=s("section",{class:"paper-section-head paper-wrap"},[s("div",null,[s("div",{class:"paper-eyebrow"},"Before \xB7 after"),s("h2",null,[y("The same repository, "),s("em",null,"minus you.")])]),s("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),t[18]||(t[18]=s("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[s("div",{class:"pane"},[s("div",{class:"pane-header"},[s("span",{class:"pane-label"},"Before \xB7 your repo"),s("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),s("div",{class:"pane-body"},[s("div",null,[s("span",{class:"tok"},"#"),y(),s("strong",null,"DeepLearnUtils")]),s("div",null,"Developed by Jane Smith at MIT CSAIL."),s("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),s("div",null,"Contact: jane.smith@mit.edu")])]),s("div",{class:"pane"},[s("div",{class:"pane-header"},[s("span",{class:"pane-label"},"After \xB7 anonymous mirror"),s("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),s("div",{class:"pane-body"},[s("div",null,[s("span",{class:"tok"},"#"),y(),s("strong",null,"DeepLearnUtils")]),s("div",null,[y("Developed by "),s("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" at "),s("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),y(".")]),s("div",null,[y("See "),s("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),s("div",null,[y("Contact: "),s("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),m(" What you get: one screenshot, three tabs "),t[19]||(t[19]=s("section",{class:"paper-section-head paper-wrap",id:"about"},[s("div",null,[s("div",{class:"paper-eyebrow"},"What you get"),s("h2",null,[y("Anonymize, review, "),s("em",null,"manage.")])]),s("p",null," Every mirror is read-only and passes through the same filter, from the README to a PDF's link targets. Monitor it, update it, or remove it the day the decision is out. ")],-1)),s("section",ZO,[s("div",eA,[(l(!0),d(Y,null,oe(e.features,(o,r)=>(l(),d("div",{class:O(["paper-feature",{"is-on":e.feature===o?.key}]),key:o?.key},[s("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:n=>e.selectFeature(o.key),onKeydown:n=>e.featureKeydown(n,r),id:"feature-tab-"+o?.key,"aria-controls":"feature-panel-"+o?.key,"aria-selected":e.feature===o?.key,tabindex:e.feature===o?.key?0:-1},[s("span",sA,c(o?.num)+" \xB7 "+c(o?.eyebrow),1),s("span",nA,[y(c(o?.title)+" ",1),s("em",null,c(o?.accent),1)])],40,tA),s("div",oA,[s("span",rA,[y(c(o?.title)+" ",1),s("em",null,c(o?.accent),1)]),s("p",null,c(o?.text),1),s("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(o)),target:e.featureTarget(o)},c(o?.cta)+" \u2192",9,iA)])],2))),128))]),s("div",aA,[(l(!0),d(Y,null,oe(e.features,(o,r)=>E((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:o?.key,id:"feature-panel-"+o?.key,"aria-labelledby":"feature-tab-"+o?.key},[s("div",dA,[s("div",uA,[t[8]||(t[8]=s("span",{class:"dots"},[s("i"),s("i"),s("i")],-1)),s("span",cA,c(o?.url),1)]),s("div",{class:O("paper-crop paper-crop-"+o?.key)},[s("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(o?.img),alt:o?.alt},null,8,pA)],2)])],8,lA)),[[G,e.feature===o?.key]])),128))])]),m(" FAQ teaser "),t[20]||(t[20]=ge('
GitHub's OAuth scopes have no read-only option for private repositories. Anonymous GitHub only ever reads your repositories; it never pushes, modifies, or deletes anything.
Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Everything passes through the same redaction filter.
You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.
',1)),s("footer",fA,[s("div",mA,[t[12]||(t[12]=s("div",{class:"paper-footer-brand"},[s("div",{class:"paper-footer-mark"},[y("Anonymous "),s("em",null,"GitHub")]),s("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-blind peer review. ")],-1)),s("div",hA,[t[9]||(t[9]=s("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=s("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",vA,"My work")):m("v-if",!0),e.user?(l(),d("a",yA,"Conferences")):m("v-if",!0),t[11]||(t[11]=s("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=ge('',2))]),t[15]||(t[15]=s("div",{class:"paper-footer-rule"},null,-1)),s("div",gA,[s("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 MIT licensed",1),t[14]||(t[14]=s("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var bA={class:"paper-empty"},wA={class:"paper-empty-inner"},kA={key:0,class:"paper-eyebrow"},_A={key:1,class:"paper-eyebrow"},EA={key:2,class:"paper-empty-title"},CA=["textContent"];function pl(e,t){return l(),d("div",bA,[s("div",wA,[e.error?m("v-if",!0):(l(),d("div",kA,"Working")),e.error?(l(),d("div",_A,"Error")):m("v-if",!0),e.error?m("v-if",!0):(l(),d("h1",EA,[...t[0]||(t[0]=[y(" Loading",-1),s("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,CA)):m("v-if",!0)])])}var NA={class:"container paper-page paper-settings"},SA={class:"paper-crumbs"},DA={class:"here"},RA={class:"paper-page-title"},TA={class:"paper-settings-body"},OA={class:"paper-settings-toc"},AA={href:"#conf-billing"},IA={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},VA={id:"conf-basics",class:"paper-settings-section"},PA={class:"form-group"},qA={class:"invalid-feedback"},MA={class:"invalid-feedback"},$A={class:"form-group"},LA={class:"invalid-feedback"},FA={class:"form-group"},UA={class:"invalid-feedback"},zA={class:"invalid-feedback"},HA={id:"conf-window",class:"paper-settings-section"},BA={class:"form-grid-2"},GA={class:"form-group"},jA={class:"invalid-feedback"},WA={class:"invalid-feedback"},KA={class:"form-group"},YA={class:"invalid-feedback"},JA={class:"invalid-feedback"},QA={id:"conf-rendering",class:"paper-settings-section"},XA={class:"form-check"},xA={class:"form-check-input",type:"checkbox",id:"link",name:"link"},ZA={class:"form-check"},eI={class:"form-check-input",type:"checkbox",id:"image",name:"image"},tI={class:"form-check"},sI={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},nI={class:"form-check"},oI={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},rI={id:"conf-features",class:"paper-settings-section"},iI={class:"form-check"},aI={class:"form-check-input",type:"checkbox",id:"update",name:"update"},lI={class:"form-check"},dI={class:"form-check-input",type:"checkbox",id:"page",name:"page"},uI={id:"conf-plan",class:"paper-settings-section"},cI={class:"paper-plan-grid"},pI=["value"],fI=["textContent"],mI={class:"paper-plan-price"},hI=["innerHTML"],vI={key:0,id:"conf-billing",class:"paper-settings-section"},yI={class:"form-group"},gI={class:"form-group"},bI={class:"form-group"},wI={class:"form-group"},kI={class:"form-grid-3"},_I={class:"form-group"},EI={class:"form-group"},CI={class:"form-group"},NI={class:"form-group"},SI={class:"paper-settings-footer"},DI=["textContent"],RI=["textContent"];function fl(e,t){let o=we("paper-scrollspy"),r=we("field"),n=we("form");return l(),d("div",NA,[s("div",SA,[t[1]||(t[1]=s("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=y(" \xA0/\xA0 ",-1)),t[3]||(t[3]=s("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=y(" \xA0/\xA0 ",-1)),s("span",DA,c(e.editionMode?"Edit":"New"),1)]),s("h1",RA,[y(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=s("em",null,"conference",-1))]),t[42]||(t[42]=s("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),s("div",TA,[E((l(),d("aside",OA,[t[7]||(t[7]=s("div",{class:"paper-settings-toc-head"},"On this page",-1)),s("nav",null,[t[6]||(t[6]=ge('BasicsReview windowRendering defaultsFeaturesPlan',5)),E(s("a",AA,"Billing",512),[[G,e.plan?.pricePerRepo>0]])])])),[[o]]),E((l(),d("form",IA,[s("section",VA,[t[12]||(t[12]=s("div",{class:"paper-section-eyebrow"},"Basics",-1)),s("div",PA,[t[8]||(t[8]=s("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),E(s("div",qA," The name of the conference is invalid. ",512),[[G,e.conference?.name?.errors?.invalid]]),E(s("div",MA," The name of the conference is required. ",512),[[G,e.conference?.name?.errors?.required]])]),s("div",$A,[t[9]||(t[9]=s("label",{class:"paper-field-label",for:"url"},"Website",-1)),E(s("input",{type:"url",class:O(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),E(s("div",LA," The url of the conference is invalid. ",512),[[G,e.conference?.url?.errors?.invalid]])]),s("div",FA,[t[10]||(t[10]=s("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=s("small",{class:"form-text text-muted"},[y("3\u201310 characters, letters, numbers, "),s("code",null,"-"),y(" and "),s("code",null,"_"),y(". Authors reference this when they anonymize.")],-1)),E(s("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[G,e.conference?.conferenceID?.errors?.used]]),E(s("div",UA," The conference ID is required. ",512),[[G,e.conference?.conferenceID?.errors?.required]]),E(s("div",zA," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[G,e.conference?.conferenceID?.errors?.pattern]])])]),s("section",HA,[t[17]||(t[17]=s("div",{class:"paper-section-eyebrow"},"Review window",-1)),s("div",BA,[s("div",GA,[t[13]||(t[13]=s("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),E(s("input",{type:"date",class:O(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),E(s("div",jA," Start date is required. ",512),[[G,e.conference?.startDate?.errors?.required]]),E(s("div",WA," Start date must be before end date. ",512),[[G,e.conference?.startDate?.errors?.invalid]])]),s("div",KA,[t[15]||(t[15]=s("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),E(s("input",{type:"date",class:O(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),E(s("div",YA," End date is required. ",512),[[G,e.conference?.endDate?.errors?.required]]),E(s("div",JA," End date is invalid. ",512),[[G,e.conference?.endDate?.errors?.invalid]])])])]),s("section",QA,[t[25]||(t[25]=s("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),s("div",XA,[E(s("input",xA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=s("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),s("div",ZA,[E(s("input",eI,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=s("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),s("div",tI,[E(s("input",sI,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=s("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),s("div",nI,[E(s("input",oI,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=s("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))])]),s("section",rI,[t[30]||(t[30]=s("div",{class:"paper-section-eyebrow"},"Features",-1)),s("div",iI,[E(s("input",aI,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[26]||(t[26]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[27]||(t[27]=s("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),s("div",lI,[E(s("input",dI,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[28]||(t[28]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[29]||(t[29]=s("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),s("section",uI,[t[32]||(t[32]=s("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[33]||(t[33]=s("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),s("div",cI,[(l(!0),d(Y,null,oe(e.plans,(i,a)=>(l(),d("label",{class:O(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[E(s("input",{type:"radio",name:"planPicker",value:i?.id},null,8,pI),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),s("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,fI),s("div",mI,[y(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[31]||(t[31]=s("span",{class:"paper-plan-per"},"/ repo / month",-1))]),s("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,hI)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",vI,[t[41]||(t[41]=s("div",{class:"paper-section-eyebrow"},"Billing",-1)),s("div",yI,[t[34]||(t[34]=s("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.name=i},value:e.options?.billing?.name,form:"conference",options:{}}]])]),s("div",gI,[t[35]||(t[35]=s("label",{class:"paper-field-label",for:"email"},"Email",-1)),E(s("input",{type:"email",class:O(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.email=i},value:e.options?.billing?.email,form:"conference",options:{}}]])]),s("div",bI,[t[36]||(t[36]=s("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address=i},value:e.options?.billing?.address,form:"conference",options:{}}]])]),s("div",wI,[E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address2=i},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),s("div",kI,[s("div",_I,[t[37]||(t[37]=s("label",{class:"paper-field-label",for:"city"},"City",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.city=i},value:e.options?.billing?.city,form:"conference",options:{}}]])]),s("div",EI,[t[38]||(t[38]=s("label",{class:"paper-field-label",for:"country"},"Country",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.country=i},value:e.options?.billing?.country,form:"conference",options:{}}]])]),s("div",CI,[t[39]||(t[39]=s("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.zip=i},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),s("div",NI,[t[40]||(t[40]=s("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),E(s("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.vat=i},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):m("v-if",!0),s("div",SI,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,DI)):m("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,RI)):m("v-if",!0),s("button",{id:"send",type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ke(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.editionMode?"Update":"Create")+" conference ",1)])])),[[n,e.viewState]])])])}var TI={key:0},OI=["innerHTML"],AI={key:3},II=["src"],VI=["src"],PI={key:7},qI={controls:"controls"},MI=["src"],$I={key:8},LI={key:9,class:"file-error container d-flex h-100"},FI={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},UI={class:"paper-error-msg"},zI={key:10,class:"file-error container d-flex h-100"},HI=["textContent"],BI={key:11,class:"file-error container d-flex h-100"},GI={key:12,class:"file-error container d-flex h-100"},jI={key:13,class:"file-error container d-flex h-100"},WI={key:14,class:"file-error container d-flex h-100"},KI={class:"paper-empty-title m-auto"},YI=["href"];function ml(e,t){let o=et("html-doc"),r=et("pdfviewer"),n=et("notebook"),i=we("code-editor");return l(),d(Y,null,[e.type=="text"?E((l(),d("div",TI,null,512)),[[i,{content:e.content,options:e.aceOption}]]):m("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.sanitize(e.content)},null,8,OI)):m("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),ks(o,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):m("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?E((l(),d("div",AI,null,512)),[[i,{content:e.content,options:e.aceOption}]]):m("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,II)):m("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,VI)):m("v-if",!0),e.type=="pdf"?(l(),ks(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):m("v-if",!0),e.type=="audio"?(l(),d("div",PI,[s("audio",qI,[s("source",{src:e.safeUrl(e.url)},null,8,MI)])])):m("v-if",!0),e.type=="IPython"?(l(),d("div",$I,[De(n,{file:e.url,content:e.content},null,8,["file","content"])])):m("v-if",!0),e.type=="rate_limited"?(l(),d("div",LI,[s("div",FI,[t[2]||(t[2]=s("div",{class:"paper-ratelimit-head"},[s("i",{class:"fas fa-hourglass-half"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Temporarily paused"),s("div",{class:"paper-error-title"},"GitHub API rate limit reached")])],-1)),s("p",UI,[t[0]||(t[0]=y("This repository will be available in ",-1)),s("strong",null,c(e.rateLimitCountdown),1),t[1]||(t[1]=y(". The page will reload automatically.",-1))])])])):m("v-if",!0),e.type=="error"?(l(),d("div",zI,[s("h1",{class:"paper-empty-title m-auto",textContent:c(e.fmt.translate("ERRORS."+e.content))},null,8,HI)])):m("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",BI,[...t[3]||(t[3]=[s("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):m("v-if",!0),e.type=="empty"?(l(),d("div",GI,[...t[4]||(t[4]=[s("h1",{class:"paper-empty-title m-auto"},[y("Empty "),s("em",null,"repository"),y(".")],-1)])])):m("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",jI,[...t[5]||(t[5]=[s("h1",{class:"paper-empty-title m-auto"},[y("Empty "),s("em",null,"file"),y(".")],-1)])])):m("v-if",!0),e.type=="binary"?(l(),d("div",WI,[s("h1",KI,[t[6]||(t[6]=y("Unsupported ",-1)),t[7]||(t[7]=s("em",null,"binary file",-1)),t[8]||(t[8]=y(". You can ",-1)),s("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,YI),t[9]||(t[9]=y(".",-1))])])):m("v-if",!0)],64)}var JI={class:"container page dashboard-page paper-page"},QI={class:"row"},XI={class:"w-100"},xI={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},ZI={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},eV={class:"flex-grow-1"},tV={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},sV={class:"d-flex flex-wrap",style:{gap:"6px"}},nV={class:"dropdown"},oV={class:"dropdown-menu","aria-labelledby":"dropdownSort"},rV={class:"form-check dropdown-item"},iV={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},aV={class:"form-check dropdown-item"},lV={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},dV={class:"form-check dropdown-item"},uV={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},cV={class:"form-check dropdown-item"},pV={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},fV={class:"form-check dropdown-item"},mV={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},hV={class:"dropdown"},vV={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},yV={class:"form-check dropdown-item"},gV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},bV={class:"form-check dropdown-item"},wV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},kV={class:"form-check dropdown-item"},_V={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},EV={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},CV={class:"filter-chip"},NV=["onClick"],SV={class:"repo-list w-100"},DV={class:"repo-list-item-content"},RV={class:"repo-list-item-main"},TV={class:"repo-list-item-header"},OV=["textContent","href"],AV=["textContent"],IV=["textContent"],VV={class:"repo-source"},PV=["href"],qV={class:"repo-date"},MV={class:"repo-meta"},$V={key:0,title:"Conference"},LV=["title"],FV=["title"],UV=["title"],zV={key:1},HV={class:"repo-list-item-actions"},BV={class:"dropdown"},GV={class:"dropdown-menu dropdown-menu-right"},jV=["href"],WV=["onClick"],KV=["onClick"],YV=["onClick"],JV=["href"],QV={key:0,class:"repo-list-empty"};function hl(e,t){let o=we("field"),r=we("form");return l(),d("div",JI,[s("div",QI,[s("div",XI,[t[12]||(t[12]=ge('
My work \xA0/\xA0 Pull requests
Anonymized pull requests
Track PR mirrors you\u2019ve created and their reviewer traffic.
',2)])])),[[o]]),s("div",KV,[m(" Quota: same markup as the dashboard, driven by quotaService "),s("section",YV,[t[4]||(t[4]=s("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[5]||(t[5]=s("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),d("div",JV,[(l(),d(Y,null,oe([{key:"repository",label:"Repositories",kind:"count"},{key:"storage",label:"Storage",kind:"bytes"},{key:"file",label:"Files",kind:"count"}],(i,a)=>s("div",QV,[s("div",xV,[s("span",XV,c(i?.label),1),i?.kind==="count"?(l(),d("span",ZV,[y(c(e.fmt?.number(e.quota[i?.key].used)),1),e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("span",eP," / "+c(e.fmt?.number(e.quota[i?.key].total)),1)),e.quota[i?.key].unlimited?(l(),d("span",tP,"Unlimited")):m("v-if",!0)])):m("v-if",!0),i?.kind==="bytes"?(l(),d("span",sP,[y(c(e.fmt?.humanFileSize(e.quota[i?.key].used)),1),e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("span",nP," / "+c(e.fmt?.humanFileSize(e.quota[i?.key].total)),1)),e.quota[i?.key].unlimited?(l(),d("span",oP,"Unlimited")):m("v-if",!0)])):m("v-if",!0)]),s("div",{class:O(["quota-track","quota-"+e.quota[i?.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":i?.label+" quota","aria-valuenow":e.quota[i?.key].used,"aria-valuemax":e.quota[i?.key].unlimited?e.quota[i?.key].used:e.quota[i?.key].total,"aria-valuetext":e.quota[i?.key].unlimited?"unlimited":e.fmt.number(e.quota[i?.key].percent,0)+"% used"},[e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Ve({width:e.quota[i?.key].percent+"%"})},null,4))],10,rP)])),64))])):m("v-if",!0),e.quota?m("v-if",!0):(l(),d("div",iP,[(l(),d(Y,null,oe([1,2,3],(i,a)=>s("div",aP,[...t[3]||(t[3]=[s("div",{class:"quota-header"},[s("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),s("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),s("div",{class:"quota-track"},null,-1)])])),64))]))]),E((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[0]||(t[0]=we(i=>e.submitForm(i,()=>{e.saveDefault(i)}),["prevent"]))},[s("section",lP,[t[11]||(t[11]=s("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[12]||(t[12]=s("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),s("div",dP,[t[10]||(t[10]=s("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),E(s("textarea",uP,null,512),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),s("small",cP,[t[6]||(t[6]=y(" One term per line (regex allowed). Each match is replaced by ",-1)),s("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[7]||(t[7]=y(", or use ",-1)),t[8]||(t[8]=s("code",null,"term=>replacement",-1)),t[9]||(t[9]=y(" to pick your own. ",-1))]),E(s("div",pP," Terms are in an invalid format ",512),[[G,e.defaultsForm?.terms?.errors?.format]])])]),s("section",fP,[t[21]||(t[21]=s("div",{class:"paper-section-eyebrow"},"Display",-1)),t[22]||(t[22]=s("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),s("div",mP,[s("div",hP,[E(s("input",vP,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),s("div",yP,[E(s("input",gP,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),s("div",bP,[E(s("input",wP,null,512),[[r,{state:e.viewState,set:i=>{e.options.pdf=i},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[17]||(t[17]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[18]||(t[18]=s("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),s("div",kP,[E(s("input",_P,null,512),[[r,{state:e.viewState,set:i=>{e.options.notebook=i},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=s("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[20]||(t[20]=s("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),s("section",EP,[t[31]||(t[31]=s("div",{class:"paper-section-eyebrow"},"Features",-1)),s("div",CP,[s("div",NP,[E(s("input",SP,null,512),[[r,{state:e.viewState,set:i=>{e.options.page=i},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[24]||(t[24]=s("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),s("div",DP,[E(s("input",RP,null,512),[[r,{state:e.viewState,set:i=>{e.options.loc=i},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=s("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[26]||(t[26]=s("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),s("div",TP,[E(s("input",OP,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=s("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),s("div",AP,[t[30]||(t[30]=s("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),E((l(),d("select",IP,[...t[29]||(t[29]=[s("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),s("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.mode=i},value:e.options?.mode,form:"defaultsForm",options:{}}]]),s("small",VP," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),s("section",PP,[t[35]||(t[35]=s("div",{class:"paper-section-eyebrow"},"Expiration",-1)),s("div",qP,[t[33]||(t[33]=s("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),E((l(),d("select",MP,[...t[32]||(t[32]=[s("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),s("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[34]||(t[34]=s("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),s("div",$P,[e.error?(l(),d("div",LP,[t[36]||(t[36]=s("i",{class:"fas fa-exclamation-circle","aria-hidden":"true"},null,-1)),t[37]||(t[37]=y()),s("span",{textContent:c(e.error)},null,8,FP)])):m("v-if",!0),s("div",UP,[s("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("i",HP)):m("v-if",!0),y(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,zP),t[38]||(t[38]=s("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[n,e.viewState]]),s("section",BP,[t[46]||(t[46]=s("div",{class:"paper-section-eyebrow"},"Account",-1)),s("div",GP,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,jP)):m("v-if",!0),s("div",WP,[s("div",KP,"@"+c(e.user?.username),1),t[39]||(t[39]=s("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[40]||(t[40]=s("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),t[47]||(t[47]=s("a",{class:"paper-settings-connection-link",href:"/connections"},[s("i",{class:"fab fa-github","aria-hidden":"true"}),s("span",null,[y("GitHub connections"),s("small",null,"Manage repository access and legacy OAuth.")]),s("span",{"aria-hidden":"true"},"\u2192")],-1)),s("div",YP,[t[44]||(t[44]=s("div",{class:"paper-danger-head"},"Delete account",-1)),t[45]||(t[45]=s("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",JP,[t[41]||(t[41]=s("i",{class:"fas fa-exclamation-circle","aria-hidden":"true"},null,-1)),t[42]||(t[42]=y()),s("span",{textContent:c(e.deleteError)},null,8,QP)])):m("v-if",!0),s("button",{type:"button",class:"btn btn-outline-danger",onClick:t[1]||(t[1]=i=>e.deleteAccount()),disabled:e.deletingAccount},[t[43]||(t[43]=s("i",{class:"fas fa-trash-alt mr-1","aria-hidden":"true"},null,-1)),y(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,xP)])])])])])}var XP={class:"pr-page"},ZP={class:"container paper-page pr-page-inner"},e3={class:"pr-header"},t3={class:"paper-page-title pr-title"},s3=["textContent"],n3={key:1,class:"text-muted"},o3=["href"],r3={class:"pr-header-meta"},i3={key:0,class:"pr-meta-item"},a3=["textContent"],l3={key:1,class:"pr-meta-item"},d3=["textContent"],u3={key:2,class:"pr-meta-item"},c3=["textContent"],p3={key:0,class:"pr-body-card"},f3={key:1,class:"paper-tabs",role:"tablist"},m3=["textContent"],h3={class:"paper-tab-content"},v3={key:0},y3=["innerHTML"],g3={key:1},b3={class:"pr-comments"},w3={class:"pr-comment"},k3={class:"pr-comment-head"},_3={key:0,class:"pr-comment-author"},E3=["textContent"],C3=["textContent"],N3={key:0,class:"pr-comment-body"},S3={key:0,class:"paper-table-empty"};function yl(e,t){let o=et("markdown");return l(),d("div",XP,[s("div",ZP,[t[15]||(t[15]=s("div",{class:"paper-crumbs"},[s("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),s("span",{class:"here"},"Pull request")],-1)),s("header",e3,[s("h1",t3,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,s3)):m("v-if",!0),e.details?.title?m("v-if",!0):(l(),d("span",n3,"Untitled pull request")),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:2,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[2]||(t[2]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,o3)):m("v-if",!0)]),s("div",r3,[s("span",{class:O(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[s("span",{class:O(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),y(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",i3,[t[3]||(t[3]=s("i",{class:"fab fa-github"},null,-1)),t[4]||(t[4]=y()),s("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,a3)])):m("v-if",!0),e.details?.updatedDate?(l(),d("span",l3,[t[5]||(t[5]=s("i",{class:"far fa-clock"},null,-1)),t[6]||(t[6]=y()),s("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,d3)])):m("v-if",!0),e.details?.anonymizeDate?(l(),d("span",u3,[t[7]||(t[7]=s("i",{class:"fas fa-user-secret"},null,-1)),t[8]||(t[8]=y(" Anonymized ",-1)),s("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,c3)])):m("v-if",!0)])]),e.details?.body?(l(),d("section",p3,[t[9]||(t[9]=s("div",{class:"paper-section-eyebrow"},"Description",-1)),De(o,{content:e.details?.body},null,8,["content"])])):m("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",f3,[e.details?.diff?(l(),d("button",{key:0,class:O(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",onClick:t[0]||(t[0]=r=>e.tabState.active="diff")},[...t[10]||(t[10]=[s("i",{class:"fas fa-code"},null,-1),y(" Diff ",-1)])],2)):m("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:O(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[1]||(t[1]=r=>e.tabState.active="comments")},[t[11]||(t[11]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,m3)],2)):m("v-if",!0)])):m("v-if",!0),s("div",h3,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",v3,[s("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,y3)])):m("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",g3,[s("ul",b3,[(l(!0),d(Y,null,oe(e.details?.comments,(r,n)=>(l(),d("li",w3,[s("div",k3,[r?.author?(l(),d("span",_3,[t[12]||(t[12]=s("i",{class:"far fa-user"},null,-1)),t[13]||(t[13]=y(" @",-1)),s("span",{textContent:c(r?.author)},null,8,E3)])):m("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,C3)):m("v-if",!0)]),r?.body?(l(),d("div",N3,[De(o,{content:r?.body},null,8,["content"])])):m("v-if",!0)]))),256)),e.details?.comments?.length?m("v-if",!0):(l(),d("li",S3,[...t[14]||(t[14]=[s("i",{class:"far fa-comment-dots"},null,-1),s("span",null,"No comments on this pull request.",-1)])]))])])):m("v-if",!0)])])])}var D3={class:"container paper-page"},R3={class:"d-flex align-items-end justify-content-between flex-wrap",style:{gap:"12px"}},T3={class:"paper-page-title"},O3=["textContent"],A3={key:1},I3={class:"paper-settings-section"},V3={key:0,class:"paper-ratelimit-card",role:"status"},P3={class:"paper-error-msg"},q3=["aria-valuenow"],M3={class:"paper-progress-label"},$3=["textContent"],L3={key:0},F3=["textContent"],U3={class:"paper-progress-pct"},z3={key:2,class:"paper-error-card",role:"alert"},H3={key:0,class:"paper-error-msg"},B3={key:1,class:"paper-error-msg"},G3={class:"paper-error-actions"},j3=["href"],W3={class:"paper-detail-grid"},K3={class:"detail-value"},Y3=["href"],J3={key:0,class:"detail-label"},Q3={key:1,class:"detail-value"},x3=["href"],X3={key:3,class:"anonymize-submit-bar"},Z3=["href"],eq=["href"];function gl(e,t){return l(),d("div",D3,[t[16]||(t[16]=s("div",{class:"paper-crumbs"},[y("Anonymization \xA0/\xA0 "),s("span",{class:"here"},"Status")],-1)),s("div",R3,[s("div",null,[s("h1",T3,[t[0]||(t[0]=y("Status of ",-1)),s("em",null,c(e.repoId),1)]),t[1]||(t[1]=s("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),s("span",{class:O(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[s("span",{class:O(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?m("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,O3)),e.rateLimitResetAt?(l(),d("span",A3,"Rate limited")):m("v-if",!0)],2)]),s("section",I3,[t[14]||(t[14]=s("div",{class:"paper-section-eyebrow"},"Progress",-1)),t[15]||(t[15]=s("p",{class:"paper-section-copy"},[y(" The repository will take a few minutes to get ready, depending on its size. Visit the "),s("a",{href:"/faq"},"FAQ"),y(" for more information. ")],-1)),e.rateLimitResetAt?(l(),d("div",V3,[t[4]||(t[4]=s("div",{class:"paper-ratelimit-head"},[s("i",{class:"fas fa-hourglass-half"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Temporarily paused"),s("div",{class:"paper-error-title"},"GitHub API rate limit reached")])],-1)),s("p",P3,[t[2]||(t[2]=y("Anonymization will resume automatically in ",-1)),s("strong",null,c(e.rateLimitCountdown),1),t[3]||(t[3]=y(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):m("v-if",!0),e.repo?.status!="error"&&!e.rateLimitResetAt?(l(),d("div",{key:1,class:O(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[s("div",{class:"paper-progress-bar",style:Ve("width: "+e.progress+"%;")},null,4),s("div",M3,[s("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,$3),e.repo?.statusMessage?(l(),d("span",L3,[t[5]||(t[5]=y("\xA0\xB7\xA0",-1)),s("span",{textContent:c(e.repo?.statusMessage)},null,8,F3)])):m("v-if",!0),s("span",U3,c(e.progress||0)+"%",1)])],10,q3)):m("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",z3,[t[9]||(t[9]=s("div",{class:"paper-error-head"},[s("i",{class:"fas fa-exclamation-triangle"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Anonymization failed"),s("div",{class:"paper-error-title"},"Something went wrong while preparing this repository.")])],-1)),e.repo?.statusMessage?(l(),d("p",H3,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):m("v-if",!0),e.repo?.statusMessage?m("v-if",!0):(l(),d("p",B3,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[10]||(t[10]=s("ul",{class:"paper-error-hints"},[s("li",null,"Make sure the source URL points to a repository or pull request you can access."),s("li",null,"Check that the chosen branch and commit still exist on GitHub."),s("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),s("div",G3,[s("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[6]||(t[6]=[s("i",{class:"far fa-edit mr-1"},null,-1),y(" Edit anonymization",-1)])],8,j3),t[7]||(t[7]=s("a",{class:"btn",href:"/faq"},[s("i",{class:"far fa-question-circle mr-1"}),y(" Read the FAQ")],-1)),t[8]||(t[8]=s("a",{class:"btn",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[s("i",{class:"fas fa-bug mr-1","aria-hidden":"true"}),y(" Report a bug in Anonymous GitHub")],-1))])])):m("v-if",!0),s("div",W3,[t[11]||(t[11]=s("div",{class:"detail-label"},"Repository",-1)),s("div",K3,[s("a",{target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},"/r/"+c(e.repoId)+"/",9,Y3)]),e.repo?.options?.page?(l(),d("div",J3,"GitHub Page")):m("v-if",!0),e.repo?.options?.page?(l(),d("div",Q3,[s("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"/w/"+c(e.repoId)+"/",9,x3)])):m("v-if",!0)]),e.repo?.status=="ready"?(l(),d("div",X3,[s("a",{class:"btn btn-ink",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[12]||(t[12]=[s("i",{class:"far fa-eye mr-1"},null,-1),y(" Go to anonymized repository ",-1)])],8,Z3),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[13]||(t[13]=[s("i",{class:"fas fa-globe mr-1"},null,-1),y(" Go to anonymized GitHub page ",-1)])],8,eq)):m("v-if",!0)])):m("v-if",!0)]),t[17]||(t[17]=ke('
Support Anonymous GitHub
A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee.
r[n])}function mq(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var El={ERRORS:{repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"Unknown error, contact the admin.",unreachable:"Anonymous GitHub is unreachable, contact the admin.",request_error:"Unable to download the file, check your connection or contact the admin.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"The repository was not found on GitHub. Check the URL and spelling, make sure you are signed in to the account that can see it, and confirm the repo isn't hidden under an org that restricts third-party app access.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",no_file_selected:"Please select a file.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"Your GitHub access token has expired. Please log out and log in again to refresh it.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"This username belongs to an existing account. Sign in with legacy GitHub OAuth to keep access to your existing anonymizations, then connect the read-only GitHub App from GitHub connections.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid."},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};var Cl={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=Xe(null);return It(()=>{let r=[t.value][0];r.classList.add("html-doc");function n(){r.innerHTML="";let i=e.content;if(typeof i!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let u=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&u.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",u.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),r.appendChild(a);let p="";e.baseUrl&&(p=''),a.srcdoc=p+i}He(()=>e.content,n,{immediate:!0}),He(()=>e.baseUrl,n,{immediate:!0}),He(()=>e.allowScripts,n,{immediate:!0})}),()=>Ne("html-doc",{ref:t})}};var Nl={name:"pdfviewer",props:["src"],setup(e){let t=Xe(null);return It(()=>{let o=[t.value],r=400,n=[.5,.75,1,1.25,1.5,2,3],i=1e3,a=o[0];a.classList.add("pdf-viewer");let u=null,p=[],h=!1,v=null,g=1,f=1,w=0,k=0,b=612/792,T=0,N=document.createElement("div");N.className="pdf-toolbar";let D=document.createElement("div");D.className="pdf-pages",D.tabIndex=0,D.setAttribute("aria-label","PDF pages"),a.appendChild(N),a.appendChild(D);function I(F,W,fe){let Ce=document.createElement("button");return Ce.type="button",Ce.className="pdf-toolbar-btn",Ce.title=W,Ce.setAttribute("aria-label",W),Ce.innerHTML='',Ce.addEventListener("click",fe),Ce}let C=I("fa-chevron-up","Previous page",function(){ge(f-1)}),A=I("fa-chevron-down","Next page",function(){ge(f+1)}),q=document.createElement("input");q.type="text",q.className="pdf-toolbar-page",q.setAttribute("aria-label","Page number"),q.title="Page number \u2014 type a page and press Enter",q.addEventListener("keydown",function(F){F.key==="Enter"&&(ge(parseInt(q.value,10)),q.blur())}),q.addEventListener("blur",function(){q.value=String(f)});let Z=document.createElement("span");Z.className="pdf-toolbar-count";let x=I("fa-search-minus","Zoom out",function(){qe(n[Math.max(0,re()-1)])}),K=I("fa-search-plus","Zoom in",function(){qe(n[Math.min(n.length-1,re()+1)])}),U=document.createElement("button");U.type="button",U.className="pdf-toolbar-btn pdf-toolbar-zoom",U.title="Reset zoom to fit the width",U.setAttribute("aria-label","Reset zoom to fit the width"),U.addEventListener("click",function(){qe(1)}),N.appendChild(C),N.appendChild(A);let ue=document.createElement("span");ue.className="pdf-toolbar-group",ue.appendChild(q),ue.appendChild(Z),N.appendChild(ue);let te=document.createElement("span");te.className="pdf-toolbar-group pdf-toolbar-right",te.appendChild(x),te.appendChild(U),te.appendChild(K),N.appendChild(te);function re(){let F=0;for(let W=0;W=F,U.textContent=Math.round(g*100)+"%",x.disabled=re()===0,K.disabled=re()===n.length-1}function me(F){let W=p[F-1];W&&(D.scrollTop+=W.getBoundingClientRect().top-D.getBoundingClientRect().top)}function ge(F){if(!u||isNaN(F))return;let W=Math.min(Math.max(1,F),u.numPages);p[W-1]&&(me(W),f=W,w=W,k=Date.now()+800,pe(),V())}function he(){if(!p.length||Date.now()Ce||S.bottome.src,ne,{immediate:!0}),ss(function(){D.removeEventListener("scroll",H),$(window).off("resize",L),le()})}),()=>Ne("pdfviewer",{ref:t})}};var Dl={props:["content","terms","options"],setup(e){let t=Xe(null),o=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return It(()=>{o(),He(()=>[e.content,e.terms,e.options],o,{deep:!0})}),()=>Ne("markdown",{ref:t})}},vq={props:["file","terms","options"],setup(e){let t=Xe(null),o=()=>_t(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return It(o),He(()=>[e.file?.content,e.terms,e.options],o,{deep:!0}),()=>{let r=e.file||{},n=(r.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(n)||r.language==="Markdown")return Ne("gist-file",{ref:t},Ne(Dl,{content:r.content,terms:e.terms,options:e.options}));let i={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(r.language||n||"none").toLowerCase();return Ne("gist-file",{ref:t},Ne("pre",{class:"line-numbers"},Ne("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},yq={props:["file","content"],setup(e){let t=Xe(null),o=0,r,n=async()=>{let i=++o;r?.abort(),r=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:r.signal}).then(u=>{if(!u.ok)throw Error("Notebook request failed");return u.json()});if(await Wt("notebook"),i!==o)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(u=>window.Prism?.highlightElement(u))}catch(a){i===o&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return It(()=>{n(),He(()=>[e.file,e.content],n)}),ss(()=>{o++,r?.abort()}),()=>Ne("notebook",{ref:t})}},gq={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,r])=>r.code),o=t.reduce((r,[,n])=>r+n.code,0);return Ne("loc",t.map(([r,n])=>Ne("div",{class:"lang",title:`${r}: ${n.code.toLocaleString()} lines`,style:{width:n.code*100/o+"%",background:langColors[r]}})))}}},Rl={Markdown:Dl,GistFile:vq,Notebook:yq,Loc:gq,HtmlDoc:Cl,Pdfviewer:Zr(async()=>(await Wt("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",Nl))},Tl={async mounted(e,{value:t}){e._editorValue=t;try{if(await tr(),e._editorDisposed)return;let o=e._editorValue,r=ace.edit(e);e._editor=r,r.setValue(String(o.content??""),-1),Sl(e,o.options),o.options?.onLoad?.(r)}catch(o){e._editorDisposed||(e.textContent=o.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),Sl(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editor?.destroy()}};function Sl(e,t={}){t.mode&&e._editor.session.setMode("ace/mode/"+t.mode),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Ol={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],o=new Set,r=new IntersectionObserver(n=>{n.forEach(a=>a.isIntersecting?o.add(a.target.id):o.delete(a.target.id));let i=t.find(a=>o.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===i))},{rootMargin:"-20% 0px -60% 0px",threshold:0});_t(()=>t.forEach(n=>{let i=document.getElementById(n.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function bq(e){let t={children:[]},o=new Map([["",t]]);function r(n){if(o.has(n))return o.get(n);let i=n.lastIndexOf("/"),a=r(i<0?"":n.slice(0,i)),u={name:n.slice(i+1),children:[]};return o.set(n,u),a.children.push(u),u}for(let n of e||[]){let i=n.path?`${n.path}/${n.name}`:n.name;n.size==null?r(i):r(n.path||"").children.push({...n})}return t.children}var Al={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Ea(),o=Xe(null),r=ze(Object.create(null)),n=null,i=tt(()=>bq(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");He(()=>[t.params.repoId,t.params.path],()=>{let f="";a().split("/").filter(Boolean).forEach(w=>{f+="/"+w,r[f]=!0})},{immediate:!0});let u=tt(()=>{if(!e.searchQuery||!e.searchResults)return null;let f=new Set,w=new Set;return e.searchResults.forEach(k=>{f.add(k.path?`${k.path}/${k.name}`:k.name);let b="";(k.path||"").split("/").filter(Boolean).forEach(T=>{b=b?b+"/"+T:T,w.add(b)})}),{files:f,folders:w}}),p=()=>[...o.value.querySelectorAll("li > a")],h=f=>{o.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),f&&(n=f.dataset.path,f.classList.add("tree-focused"),f.scrollIntoView?.({block:"nearest"}),o.value.focus())};function v(f){let w=p(),k=o.value.querySelector(".tree-focused")||w[0],b=w.indexOf(k);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(f.key)||(f.preventDefault(),f.key==="ArrowDown"&&h(w[(b+1)%w.length]),f.key==="ArrowUp"&&h(w[(b-1+w.length)%w.length]),!k))return;let T=k.closest("li");f.key==="ArrowRight"&&T.classList.contains("folder")&&(T.classList.contains("open")?h(T.querySelector(":scope > ul > li > a")):k.click()),f.key==="ArrowLeft"&&(T.classList.contains("folder")&&T.classList.contains("open")?k.click():h(T.parentElement.closest("li.folder")?.querySelector(":scope > a"))),f.key==="Enter"&&k.click()}function g(f,w=""){let k=[...f].sort((b,T)=>+!!T.children-+!!b.children||b.name.localeCompare(T.name));return Ne("ul",k.flatMap(b=>{let T=b,N=T.name,D=(w+"/"+N).slice(1);if(u.value&&!u.value.files.has(D)&&!u.value.folders.has(D))return[];for(;T.children?.length===1;)T=T.children[0],N+="/"+T.name;let I=w+"/"+N,C=!!T.children,A=u.value?r[I]!==!1:!!r[I],q=C&&e.page?.options?.truncatedFolders?.includes(I.slice(1)),Z=e.page?.fileCounts?.[I.slice(1)]||0,x=Ne("span",{class:C?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},C?Ne("svg",{viewBox:"0 0 14 12",focusable:"false"},Ne("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),K=Ne("span",{class:"tree-name"},N),U=te=>{h(te.currentTarget),C&&(te.preventDefault(),r[I]=!A,r[I]&&!T.children.length&&e.page.getFiles(I.slice(1)),_t(()=>h(p().find(re=>re.dataset.path===n))))},ue=Ne("a",{"data-path":I,href:C?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(I)}`,class:{"tree-focused":n===I},onClick:U},[C?Ne("span",{class:"tree-toggle"}):w?Ne("span",{class:"tree-spacer"}):null,x,K,q?Ne("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},Ne("i",{class:"fas fa-exclamation-triangle"})):null,C&&Z?Ne("span",{class:"tree-count"},Z):null]);return Ne("li",{key:I,class:{file:!0,folder:C,open:A,active:a()===I,truncated:q},title:C?"":`Size: ${humanFileSize(T.size||0)}`},[ue,C&&A?g(T.children,I):null])}))}return()=>Ne("tree",{ref:o,tabindex:0,onKeydown:v},e.file?.length?u.value?.files.size===0?Ne("div",{class:"tree-search-empty"},"No files found"):g(i.value):"Empty repository")}};function Vl(){return ze({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function Pl(e,t){if(!e[t]){let o=Vl();Object.defineProperty(o,"invalid",{get(){return Object.values(o.errors).some(Boolean)||Object.keys(o).some(r=>r!=="invalid"&&o[r]&&typeof o[r]=="object"&&o[r].invalid)}}),e[t]=o}return e[t]}var ql={beforeMount(e,{value:t}){e._formState=Pl(t,e.name),e.addEventListener("submit",o=>o.preventDefault())}};function wq(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function Il(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?wq(t):t??""),xo(e)}function xo(e){let t=e._field.validation;if(!t)return;let o=e.validity;for(let[r,n]of Object.entries({required:o.valueMissing,pattern:o.patternMismatch,min:o.rangeUnderflow,max:o.rangeOverflow,date:o.badInput,email:o.typeMismatch&&e.type==="email",url:o.typeMismatch&&e.type==="url"}))t.setValidity(r,e.disabled||!n)}var Ml={beforeMount(e,{value:t}){var a;let o=t.form&&Pl(t.state,t.form),r=o&&e.name?o[a=e.name]||(o[a]=Vl()):null;e._field={binding:t,validation:r,timer:null};let n=()=>{clearTimeout(e._field.timer),e._field.timer=null;let u=e._field.binding,p=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(p=e.value===""?null:Number(e.value)),e.type==="date"&&(p=e.value?new Date(e.value+"T00:00:00"):null),r){r.setDirty();for(let h of Object.keys(r.errors))r.setValidity(h,!0)}u.set(p),xo(e),u.change?.()}};e._field.commit=n;let i=u=>{let p=e._field.binding.options?.debounce||0,h=typeof p=="number"?p:p[u.type]??p.default??0;clearTimeout(e._field.timer),h?e._field.timer=setTimeout(n,h):n()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",i),e.addEventListener("blur",()=>{r&&(r.touched=!0),e._field.timer&&n()})},mounted:Il,updated(e,{value:t}){e._field.binding=t,Il(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:o}=e._field,r=t.form&&t.state[t.form];r&&r[e.name]===o&&delete r[e.name]}};function $l(e,t){let o=e.target.closest("form");if(o?._formState&&(o._formState.submitted=!0),o?.querySelectorAll("input, select, textarea").forEach(r=>{r._field?.timer&&r._field.commit(),r._field&&xo(r)}),o&&!o.checkValidity()){let r=o.querySelector(":invalid");r?.scrollIntoView?.({block:"center"}),r?.focus(),o.reportValidity();return}return t()}var Ll=Symbol("session"),kq=/^\/(w|api|github)(\/|$)/;function Fl(e,t={}){let o=e?.split(".").reduce((r,n)=>r?.[n],El);return String(o??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,n)=>t[n]??"")}var _q={...Qo,translate:Fl};function Eq(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function Cq(e="#app",t={}){let o=new Map,r=wl(t.fetch),n,i;function a(){let h=mt(),v={url(f){return f===void 0?i.currentRoute.value.fullPath:(i.push(f),v)},path(){return i.currentRoute.value.path},search(){return i.currentRoute.value.query}},g=new Proxy({},{get(f,w){let k=i.currentRoute.value.params[w];return Array.isArray(k)?k.join("/"):k}});return{http:r,...h,location:v,params:g,window,promises:kl,html:{trustAsHtml:f=>f},translate:(f,w)=>Promise.resolve(Fl(f,w)),quotaService:_l(r)}}function u(h){return{name:h.template,setup(){let v=Ko(lt(Ll),o);h.setup(v,a()),bl(h.template,v);let g=[];return()=>Jn[h.template](v,g)}}}i=_a({history:t.history||ba(),routes:Ga.map(h=>h.redirect?h:{path:h.path,component:u(h),meta:{title:h.title,preserveExplorer:h.preserveExplorer}})});let p=Ui({setup(){n=Ko(null,o),n.fmt=_q,n.window=window,n.Math=Math,n.sanitize=f=>DOMPurify.sanitize(f??""),n.submitForm=$l,n.safeUrl=Eq;let h=a();Na(n,h.http,h.location,h.timeout),ts(Ll,n),He(()=>n.title,f=>{document.title=f||"Anonymous GitHub"});let v=[],g=f=>{let w=f.target.closest?.("a[href]");if(f.defaultPrevented||f.button!==0||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||!w||w.hasAttribute("download")||w.target&&w.target!=="_self"||w.dataset.toggle||w.getAttribute("href").startsWith("#"))return;let b=new URL(w.href,window.location.href);b.origin!==window.location.origin||kq.test(b.pathname)||(f.preventDefault(),i.push(b.pathname+b.search+b.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",g),ss(()=>document.removeEventListener("click",g)),()=>[Ne("header",{class:"app-header"},Jn["partials/header.htm"](n,v)),Ne("main",{class:"app-view align-items-stretch w-100"},Ne(Wo,null,{default:({Component:f,route:w})=>f?Ne(f,{key:w.meta.preserveExplorer?w.matched[0]?.path:w.path}):null})),Ne("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},n.toasts.map((f,w)=>Ne("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:w},[Ne("div",{class:"toast-header"},[Ne("strong",{class:"mr-auto"},f.title),Ne("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>n.removeToast(f)},"\xD7")]),Ne("div",{class:"toast-body"},f.body)])))]}});for(let[h,v]of Object.entries(Rl))p.component(h,v);return p.component("Tree",Al),p.component("PartialView",{props:["name","state"],setup(h){let v=[];return()=>Jn[h.name](h.state,v)}}),p.directive("field",Ml),p.directive("form",ql),p.directive("code-editor",Tl),p.directive("paper-scrollspy",Ol),p.use(i),i.beforeEach(async h=>{n?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(h.path)&&await Wt("markdown"),/^\/(r|repository)\//.test(h.path)&&await Wt("org")}),i.afterEach(h=>{if(!n)return;n.title=h.meta.title,n.emit("routeChange",{title:h.meta.title}),n.emit("routeUpdate",{title:h.meta.title});let v=document.querySelector(".app-view");!h.meta.preserveExplorer&&v&&(v.scrollTop=0)}),p.mount(e),{app:p,router:i,state:n}}document.querySelector("#app")&&(window.anonymousApp=Cq());})();
+jane.smith@example.org`},gP={id:"termsHelp",class:"form-text text-muted"},bP={class:"invalid-feedback"},wP={id:"settings-display",class:"paper-settings-section"},kP={class:"form-group paper-check-list"},_P={class:"form-check"},EP={class:"form-check-input",type:"checkbox",id:"link",name:"link"},CP={class:"form-check"},NP={class:"form-check-input",type:"checkbox",id:"image",name:"image"},SP={class:"form-check"},DP={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},RP={class:"form-check"},TP={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},OP={id:"settings-features",class:"paper-settings-section"},AP={class:"form-group paper-check-list"},IP={class:"form-check"},VP={class:"form-check-input",type:"checkbox",id:"page",name:"page"},PP={class:"form-check"},qP={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},MP={class:"form-check"},$P={class:"form-check-input",type:"checkbox",id:"update",name:"update"},LP={class:"form-group"},FP={class:"form-control",id:"mode",name:"mode"},UP={class:"form-text text-muted"},zP={id:"settings-expiration",class:"paper-settings-section"},HP={class:"form-group"},BP={class:"form-control",id:"expiration",name:"expiration"},GP={class:"paper-settings-footer"},jP={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},WP=["textContent"],KP={class:"paper-settings-actions"},YP=["disabled"],JP={key:0,class:"fas fa-check mr-1","aria-hidden":"true"},QP={id:"settings-account",class:"paper-settings-section"},XP={class:"paper-account-card"},xP=["src"],ZP={class:"paper-account-identity"},e3={class:"paper-account-name"},t3={class:"paper-danger-zone"},s3={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},n3=["textContent"],o3=["disabled"];function vl(e,t){let o=we("paper-scrollspy"),r=we("field"),n=we("form");return l(),d("div",XV,[t[48]||(t[48]=ge('
',2)])])),[[o]]),s("div",eP,[m(" Quota: same markup as the dashboard, driven by quotaService "),s("section",tP,[t[4]||(t[4]=s("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[5]||(t[5]=s("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),d("div",sP,[(l(),d(Y,null,oe([{key:"repository",label:"Repositories",kind:"count"},{key:"storage",label:"Storage",kind:"bytes"},{key:"file",label:"Files",kind:"count"}],(i,a)=>s("div",nP,[s("div",oP,[s("span",rP,c(i?.label),1),i?.kind==="count"?(l(),d("span",iP,[y(c(e.fmt?.number(e.quota[i?.key].used)),1),e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("span",aP," / "+c(e.fmt?.number(e.quota[i?.key].total)),1)),e.quota[i?.key].unlimited?(l(),d("span",lP,"Unlimited")):m("v-if",!0)])):m("v-if",!0),i?.kind==="bytes"?(l(),d("span",dP,[y(c(e.fmt?.humanFileSize(e.quota[i?.key].used)),1),e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("span",uP," / "+c(e.fmt?.humanFileSize(e.quota[i?.key].total)),1)),e.quota[i?.key].unlimited?(l(),d("span",cP,"Unlimited")):m("v-if",!0)])):m("v-if",!0)]),s("div",{class:O(["quota-track","quota-"+e.quota[i?.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":i?.label+" quota","aria-valuenow":e.quota[i?.key].used,"aria-valuemax":e.quota[i?.key].unlimited?e.quota[i?.key].used:e.quota[i?.key].total,"aria-valuetext":e.quota[i?.key].unlimited?"unlimited":e.fmt.number(e.quota[i?.key].percent,0)+"% used"},[e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Ve({width:e.quota[i?.key].percent+"%"})},null,4))],10,pP)])),64))])):m("v-if",!0),e.quota?m("v-if",!0):(l(),d("div",fP,[(l(),d(Y,null,oe([1,2,3],(i,a)=>s("div",mP,[...t[3]||(t[3]=[s("div",{class:"quota-header"},[s("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),s("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),s("div",{class:"quota-track"},null,-1)])])),64))]))]),E((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[0]||(t[0]=ke(i=>e.submitForm(i,()=>{e.saveDefault(i)}),["prevent"]))},[s("section",hP,[t[11]||(t[11]=s("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[12]||(t[12]=s("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),s("div",vP,[t[10]||(t[10]=s("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),E(s("textarea",yP,null,512),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),s("small",gP,[t[6]||(t[6]=y(" One term per line (regex allowed). Each match is replaced by ",-1)),s("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[7]||(t[7]=y(", or use ",-1)),t[8]||(t[8]=s("code",null,"term=>replacement",-1)),t[9]||(t[9]=y(" to pick your own. ",-1))]),E(s("div",bP," Terms are in an invalid format ",512),[[G,e.defaultsForm?.terms?.errors?.format]])])]),s("section",wP,[t[21]||(t[21]=s("div",{class:"paper-section-eyebrow"},"Display",-1)),t[22]||(t[22]=s("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),s("div",kP,[s("div",_P,[E(s("input",EP,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),s("div",CP,[E(s("input",NP,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),s("div",SP,[E(s("input",DP,null,512),[[r,{state:e.viewState,set:i=>{e.options.pdf=i},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[17]||(t[17]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[18]||(t[18]=s("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),s("div",RP,[E(s("input",TP,null,512),[[r,{state:e.viewState,set:i=>{e.options.notebook=i},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=s("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[20]||(t[20]=s("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),s("section",OP,[t[31]||(t[31]=s("div",{class:"paper-section-eyebrow"},"Features",-1)),s("div",AP,[s("div",IP,[E(s("input",VP,null,512),[[r,{state:e.viewState,set:i=>{e.options.page=i},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[24]||(t[24]=s("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),s("div",PP,[E(s("input",qP,null,512),[[r,{state:e.viewState,set:i=>{e.options.loc=i},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=s("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[26]||(t[26]=s("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),s("div",MP,[E(s("input",$P,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=s("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),s("div",LP,[t[30]||(t[30]=s("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),E((l(),d("select",FP,[...t[29]||(t[29]=[s("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),s("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.mode=i},value:e.options?.mode,form:"defaultsForm",options:{}}]]),s("small",UP," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),s("section",zP,[t[35]||(t[35]=s("div",{class:"paper-section-eyebrow"},"Expiration",-1)),s("div",HP,[t[33]||(t[33]=s("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),E((l(),d("select",BP,[...t[32]||(t[32]=[s("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),s("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[34]||(t[34]=s("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),s("div",GP,[e.error?(l(),d("div",jP,[t[36]||(t[36]=s("i",{class:"fas fa-exclamation-circle","aria-hidden":"true"},null,-1)),t[37]||(t[37]=y()),s("span",{textContent:c(e.error)},null,8,WP)])):m("v-if",!0),s("div",KP,[s("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("i",JP)):m("v-if",!0),y(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,YP),t[38]||(t[38]=s("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[n,e.viewState]]),s("section",QP,[t[46]||(t[46]=s("div",{class:"paper-section-eyebrow"},"Account",-1)),s("div",XP,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,xP)):m("v-if",!0),s("div",ZP,[s("div",e3,"@"+c(e.user?.username),1),t[39]||(t[39]=s("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[40]||(t[40]=s("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),t[47]||(t[47]=s("a",{class:"paper-settings-connection-link",href:"/connections"},[s("i",{class:"fab fa-github","aria-hidden":"true"}),s("span",null,[y("GitHub connections"),s("small",null,"Manage repository access and legacy OAuth.")]),s("span",{"aria-hidden":"true"},"\u2192")],-1)),s("div",t3,[t[44]||(t[44]=s("div",{class:"paper-danger-head"},"Delete account",-1)),t[45]||(t[45]=s("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",s3,[t[41]||(t[41]=s("i",{class:"fas fa-exclamation-circle","aria-hidden":"true"},null,-1)),t[42]||(t[42]=y()),s("span",{textContent:c(e.deleteError)},null,8,n3)])):m("v-if",!0),s("button",{type:"button",class:"btn btn-outline-danger",onClick:t[1]||(t[1]=i=>e.deleteAccount()),disabled:e.deletingAccount},[t[43]||(t[43]=s("i",{class:"fas fa-trash-alt mr-1","aria-hidden":"true"},null,-1)),y(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,o3)])])])])])}var r3={class:"pr-page"},i3={class:"container paper-page pr-page-inner"},a3={class:"pr-header"},l3={class:"paper-page-title pr-title"},d3=["textContent"],u3={key:1,class:"text-muted"},c3=["href"],p3={class:"pr-header-meta"},f3={key:0,class:"pr-meta-item"},m3=["textContent"],h3={key:1,class:"pr-meta-item"},v3=["textContent"],y3={key:2,class:"pr-meta-item"},g3=["textContent"],b3={key:0,class:"pr-body-card"},w3={key:1,class:"paper-tabs",role:"tablist"},k3=["textContent"],_3={class:"paper-tab-content"},E3={key:0},C3=["innerHTML"],N3={key:1},S3={class:"pr-comments"},D3={class:"pr-comment"},R3={class:"pr-comment-head"},T3={key:0,class:"pr-comment-author"},O3=["textContent"],A3=["textContent"],I3={key:0,class:"pr-comment-body"},V3={key:0,class:"paper-table-empty"};function yl(e,t){let o=et("markdown");return l(),d("div",r3,[s("div",i3,[t[15]||(t[15]=s("div",{class:"paper-crumbs"},[s("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),s("span",{class:"here"},"Pull request")],-1)),s("header",a3,[s("h1",l3,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,d3)):m("v-if",!0),e.details?.title?m("v-if",!0):(l(),d("span",u3,"Untitled pull request")),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:2,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[2]||(t[2]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,c3)):m("v-if",!0)]),s("div",p3,[s("span",{class:O(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[s("span",{class:O(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),y(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",f3,[t[3]||(t[3]=s("i",{class:"fab fa-github"},null,-1)),t[4]||(t[4]=y()),s("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,m3)])):m("v-if",!0),e.details?.updatedDate?(l(),d("span",h3,[t[5]||(t[5]=s("i",{class:"far fa-clock"},null,-1)),t[6]||(t[6]=y()),s("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,v3)])):m("v-if",!0),e.details?.anonymizeDate?(l(),d("span",y3,[t[7]||(t[7]=s("i",{class:"fas fa-user-secret"},null,-1)),t[8]||(t[8]=y(" Anonymized ",-1)),s("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,g3)])):m("v-if",!0)])]),e.details?.body?(l(),d("section",b3,[t[9]||(t[9]=s("div",{class:"paper-section-eyebrow"},"Description",-1)),De(o,{content:e.details?.body},null,8,["content"])])):m("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",w3,[e.details?.diff?(l(),d("button",{key:0,class:O(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",onClick:t[0]||(t[0]=r=>e.tabState.active="diff")},[...t[10]||(t[10]=[s("i",{class:"fas fa-code"},null,-1),y(" Diff ",-1)])],2)):m("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:O(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[1]||(t[1]=r=>e.tabState.active="comments")},[t[11]||(t[11]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,k3)],2)):m("v-if",!0)])):m("v-if",!0),s("div",_3,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",E3,[s("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,C3)])):m("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",N3,[s("ul",S3,[(l(!0),d(Y,null,oe(e.details?.comments,(r,n)=>(l(),d("li",D3,[s("div",R3,[r?.author?(l(),d("span",T3,[t[12]||(t[12]=s("i",{class:"far fa-user"},null,-1)),t[13]||(t[13]=y(" @",-1)),s("span",{textContent:c(r?.author)},null,8,O3)])):m("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,A3)):m("v-if",!0)]),r?.body?(l(),d("div",I3,[De(o,{content:r?.body},null,8,["content"])])):m("v-if",!0)]))),256)),e.details?.comments?.length?m("v-if",!0):(l(),d("li",V3,[...t[14]||(t[14]=[s("i",{class:"far fa-comment-dots"},null,-1),s("span",null,"No comments on this pull request.",-1)])]))])])):m("v-if",!0)])])])}var P3={class:"container paper-page"},q3={class:"d-flex align-items-end justify-content-between flex-wrap",style:{gap:"12px"}},M3={class:"paper-page-title"},$3=["textContent"],L3={key:1},F3={class:"paper-settings-section"},U3={key:0,class:"paper-ratelimit-card",role:"status"},z3={class:"paper-error-msg"},H3=["aria-valuenow"],B3={class:"paper-progress-label"},G3=["textContent"],j3={key:0},W3=["textContent"],K3={class:"paper-progress-pct"},Y3={key:2,class:"paper-error-card",role:"alert"},J3={key:0,class:"paper-error-msg"},Q3={key:1,class:"paper-error-msg"},X3={class:"paper-error-actions"},x3=["href"],Z3={class:"paper-detail-grid"},eq={class:"detail-value"},tq=["href"],sq={key:0,class:"detail-label"},nq={key:1,class:"detail-value"},oq=["href"],rq={key:3,class:"anonymize-submit-bar"},iq=["href"],aq=["href"];function gl(e,t){return l(),d("div",P3,[t[16]||(t[16]=s("div",{class:"paper-crumbs"},[y("Anonymization \xA0/\xA0 "),s("span",{class:"here"},"Status")],-1)),s("div",q3,[s("div",null,[s("h1",M3,[t[0]||(t[0]=y("Status of ",-1)),s("em",null,c(e.repoId),1)]),t[1]||(t[1]=s("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),s("span",{class:O(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[s("span",{class:O(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?m("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,$3)),e.rateLimitResetAt?(l(),d("span",L3,"Rate limited")):m("v-if",!0)],2)]),s("section",F3,[t[14]||(t[14]=s("div",{class:"paper-section-eyebrow"},"Progress",-1)),t[15]||(t[15]=s("p",{class:"paper-section-copy"},[y(" The repository will take a few minutes to get ready, depending on its size. Visit the "),s("a",{href:"/faq"},"FAQ"),y(" for more information. ")],-1)),e.rateLimitResetAt?(l(),d("div",U3,[t[4]||(t[4]=s("div",{class:"paper-ratelimit-head"},[s("i",{class:"fas fa-hourglass-half"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Temporarily paused"),s("div",{class:"paper-error-title"},"GitHub API rate limit reached")])],-1)),s("p",z3,[t[2]||(t[2]=y("Anonymization will resume automatically in ",-1)),s("strong",null,c(e.rateLimitCountdown),1),t[3]||(t[3]=y(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):m("v-if",!0),e.repo?.status!="error"&&!e.rateLimitResetAt?(l(),d("div",{key:1,class:O(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[s("div",{class:"paper-progress-bar",style:Ve("width: "+e.progress+"%;")},null,4),s("div",B3,[s("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,G3),e.repo?.statusMessage?(l(),d("span",j3,[t[5]||(t[5]=y("\xA0\xB7\xA0",-1)),s("span",{textContent:c(e.repo?.statusMessage)},null,8,W3)])):m("v-if",!0),s("span",K3,c(e.progress||0)+"%",1)])],10,H3)):m("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",Y3,[t[9]||(t[9]=s("div",{class:"paper-error-head"},[s("i",{class:"fas fa-exclamation-triangle"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Anonymization failed"),s("div",{class:"paper-error-title"},"Something went wrong while preparing this repository.")])],-1)),e.repo?.statusMessage?(l(),d("p",J3,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):m("v-if",!0),e.repo?.statusMessage?m("v-if",!0):(l(),d("p",Q3,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[10]||(t[10]=s("ul",{class:"paper-error-hints"},[s("li",null,"Make sure the source URL points to a repository or pull request you can access."),s("li",null,"Check that the chosen branch and commit still exist on GitHub."),s("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),s("div",X3,[s("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[6]||(t[6]=[s("i",{class:"far fa-edit mr-1"},null,-1),y(" Edit anonymization",-1)])],8,x3),t[7]||(t[7]=s("a",{class:"btn",href:"/faq"},[s("i",{class:"far fa-question-circle mr-1"}),y(" Read the FAQ")],-1)),t[8]||(t[8]=s("a",{class:"btn",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[s("i",{class:"fas fa-bug mr-1","aria-hidden":"true"}),y(" Report a bug in Anonymous GitHub")],-1))])])):m("v-if",!0),s("div",Z3,[t[11]||(t[11]=s("div",{class:"detail-label"},"Repository",-1)),s("div",eq,[s("a",{target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},"/r/"+c(e.repoId)+"/",9,tq)]),e.repo?.options?.page?(l(),d("div",sq,"GitHub Page")):m("v-if",!0),e.repo?.options?.page?(l(),d("div",nq,[s("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"/w/"+c(e.repoId)+"/",9,oq)])):m("v-if",!0)]),e.repo?.status=="ready"?(l(),d("div",rq,[s("a",{class:"btn btn-ink",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[12]||(t[12]=[s("i",{class:"far fa-eye mr-1"},null,-1),y(" Go to anonymized repository ",-1)])],8,iq),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[13]||(t[13]=[s("i",{class:"fas fa-globe mr-1"},null,-1),y(" Go to anonymized GitHub page ",-1)])],8,aq)):m("v-if",!0)])):m("v-if",!0)]),t[17]||(t[17]=ge('
Support Anonymous GitHub
A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee.
r[n])}function kq(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var El={ERRORS:{repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"Unknown error, contact the admin.",unreachable:"Anonymous GitHub is unreachable, contact the admin.",request_error:"Unable to download the file, check your connection or contact the admin.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"The repository was not found on GitHub. Check the URL and spelling, make sure you are signed in to the account that can see it, and confirm the repo isn't hidden under an org that restricts third-party app access.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",no_file_selected:"Please select a file.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"Your GitHub access token has expired. Please log out and log in again to refresh it.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"This username belongs to an existing account. Sign in with legacy GitHub OAuth to keep access to your existing anonymizations, then connect the read-only GitHub App from GitHub connections.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid."},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};var Cl={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=xe(null);return It(()=>{let r=[t.value][0];r.classList.add("html-doc");function n(){r.innerHTML="";let i=e.content;if(typeof i!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let u=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&u.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",u.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),r.appendChild(a);let p="";e.baseUrl&&(p=''),a.srcdoc=p+i}He(()=>e.content,n,{immediate:!0}),He(()=>e.baseUrl,n,{immediate:!0}),He(()=>e.allowScripts,n,{immediate:!0})}),()=>Ne("html-doc",{ref:t})}};var Nl={name:"pdfviewer",props:["src"],setup(e){let t=xe(null);return It(()=>{let o=[t.value],r=400,n=[.5,.75,1,1.25,1.5,2,3],i=1e3,a=o[0];a.classList.add("pdf-viewer");let u=null,p=[],h=!1,v=null,g=1,f=1,w=0,k=0,b=612/792,T=0,N=document.createElement("div");N.className="pdf-toolbar";let D=document.createElement("div");D.className="pdf-pages",D.tabIndex=0,D.setAttribute("aria-label","PDF pages"),a.appendChild(N),a.appendChild(D);function I(F,W,fe){let Ce=document.createElement("button");return Ce.type="button",Ce.className="pdf-toolbar-btn",Ce.title=W,Ce.setAttribute("aria-label",W),Ce.innerHTML='',Ce.addEventListener("click",fe),Ce}let C=I("fa-chevron-up","Previous page",function(){be(f-1)}),A=I("fa-chevron-down","Next page",function(){be(f+1)}),q=document.createElement("input");q.type="text",q.className="pdf-toolbar-page",q.setAttribute("aria-label","Page number"),q.title="Page number \u2014 type a page and press Enter",q.addEventListener("keydown",function(F){F.key==="Enter"&&(be(parseInt(q.value,10)),q.blur())}),q.addEventListener("blur",function(){q.value=String(f)});let Z=document.createElement("span");Z.className="pdf-toolbar-count";let X=I("fa-search-minus","Zoom out",function(){qe(n[Math.max(0,re()-1)])}),K=I("fa-search-plus","Zoom in",function(){qe(n[Math.min(n.length-1,re()+1)])}),U=document.createElement("button");U.type="button",U.className="pdf-toolbar-btn pdf-toolbar-zoom",U.title="Reset zoom to fit the width",U.setAttribute("aria-label","Reset zoom to fit the width"),U.addEventListener("click",function(){qe(1)}),N.appendChild(C),N.appendChild(A);let ue=document.createElement("span");ue.className="pdf-toolbar-group",ue.appendChild(q),ue.appendChild(Z),N.appendChild(ue);let te=document.createElement("span");te.className="pdf-toolbar-group pdf-toolbar-right",te.appendChild(X),te.appendChild(U),te.appendChild(K),N.appendChild(te);function re(){let F=0;for(let W=0;W=F,U.textContent=Math.round(g*100)+"%",X.disabled=re()===0,K.disabled=re()===n.length-1}function me(F){let W=p[F-1];W&&(D.scrollTop+=W.getBoundingClientRect().top-D.getBoundingClientRect().top)}function be(F){if(!u||isNaN(F))return;let W=Math.min(Math.max(1,F),u.numPages);p[W-1]&&(me(W),f=W,w=W,k=Date.now()+800,pe(),V())}function he(){if(!p.length||Date.now()Ce||S.bottome.src,ne,{immediate:!0}),ss(function(){D.removeEventListener("scroll",H),$(window).off("resize",L),le()})}),()=>Ne("pdfviewer",{ref:t})}};var Dl={props:["content","terms","options"],setup(e){let t=xe(null),o=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return It(()=>{o(),He(()=>[e.content,e.terms,e.options],o,{deep:!0})}),()=>Ne("markdown",{ref:t})}},Eq={props:["file","terms","options"],setup(e){let t=xe(null),o=()=>_t(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return It(o),He(()=>[e.file?.content,e.terms,e.options],o,{deep:!0}),()=>{let r=e.file||{},n=(r.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(n)||r.language==="Markdown")return Ne("gist-file",{ref:t},Ne(Dl,{content:r.content,terms:e.terms,options:e.options}));let i={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(r.language||n||"none").toLowerCase();return Ne("gist-file",{ref:t},Ne("pre",{class:"line-numbers"},Ne("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},Cq={props:["file","content"],setup(e){let t=xe(null),o=0,r,n=async()=>{let i=++o;r?.abort(),r=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:r.signal}).then(u=>{if(!u.ok)throw Error("Notebook request failed");return u.json()});if(await Wt("notebook"),i!==o)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(u=>window.Prism?.highlightElement(u))}catch(a){i===o&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return It(()=>{n(),He(()=>[e.file,e.content],n)}),ss(()=>{o++,r?.abort()}),()=>Ne("notebook",{ref:t})}},Nq={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,r])=>r.code),o=t.reduce((r,[,n])=>r+n.code,0);return Ne("loc",t.map(([r,n])=>Ne("div",{class:"lang",title:`${r}: ${n.code.toLocaleString()} lines`,style:{width:n.code*100/o+"%",background:langColors[r]}})))}}},Rl={Markdown:Dl,GistFile:Eq,Notebook:Cq,Loc:Nq,HtmlDoc:Cl,Pdfviewer:Zr(async()=>(await Wt("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",Nl))},Tl={async mounted(e,{value:t}){e._editorValue=t;try{if(await tr(),e._editorDisposed)return;let o=e._editorValue,r=ace.edit(e);e._editor=r,r.setValue(String(o.content??""),-1),Sl(e,o.options),o.options?.onLoad?.(r)}catch(o){e._editorDisposed||(e.textContent=o.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),Sl(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editor?.destroy()}};function Sl(e,t={}){t.mode&&e._editor.session.setMode("ace/mode/"+t.mode),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Ol={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],o=new Set,r=new IntersectionObserver(n=>{n.forEach(a=>a.isIntersecting?o.add(a.target.id):o.delete(a.target.id));let i=t.find(a=>o.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===i))},{rootMargin:"-20% 0px -60% 0px",threshold:0});_t(()=>t.forEach(n=>{let i=document.getElementById(n.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function Sq(e){let t={children:[]},o=new Map([["",t]]);function r(n){if(o.has(n))return o.get(n);let i=n.lastIndexOf("/"),a=r(i<0?"":n.slice(0,i)),u={name:n.slice(i+1),children:[]};return o.set(n,u),a.children.push(u),u}for(let n of e||[]){let i=n.path?`${n.path}/${n.name}`:n.name;n.size==null?r(i):r(n.path||"").children.push({...n})}return t.children}var Al={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Ea(),o=xe(null),r=ze(Object.create(null)),n=null,i=tt(()=>Sq(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");He(()=>[t.params.repoId,t.params.path],()=>{let f="";a().split("/").filter(Boolean).forEach(w=>{f+="/"+w,r[f]=!0})},{immediate:!0});let u=tt(()=>{if(!e.searchQuery||!e.searchResults)return null;let f=new Set,w=new Set;return e.searchResults.forEach(k=>{f.add(k.path?`${k.path}/${k.name}`:k.name);let b="";(k.path||"").split("/").filter(Boolean).forEach(T=>{b=b?b+"/"+T:T,w.add(b)})}),{files:f,folders:w}}),p=()=>[...o.value.querySelectorAll("li > a")],h=f=>{o.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),f&&(n=f.dataset.path,f.classList.add("tree-focused"),f.scrollIntoView?.({block:"nearest"}),o.value.focus())};function v(f){let w=p(),k=o.value.querySelector(".tree-focused")||w[0],b=w.indexOf(k);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(f.key)||(f.preventDefault(),f.key==="ArrowDown"&&h(w[(b+1)%w.length]),f.key==="ArrowUp"&&h(w[(b-1+w.length)%w.length]),!k))return;let T=k.closest("li");f.key==="ArrowRight"&&T.classList.contains("folder")&&(T.classList.contains("open")?h(T.querySelector(":scope > ul > li > a")):k.click()),f.key==="ArrowLeft"&&(T.classList.contains("folder")&&T.classList.contains("open")?k.click():h(T.parentElement.closest("li.folder")?.querySelector(":scope > a"))),f.key==="Enter"&&k.click()}function g(f,w=""){let k=[...f].sort((b,T)=>+!!T.children-+!!b.children||b.name.localeCompare(T.name));return Ne("ul",k.flatMap(b=>{let T=b,N=T.name,D=(w+"/"+N).slice(1);if(u.value&&!u.value.files.has(D)&&!u.value.folders.has(D))return[];for(;T.children?.length===1;)T=T.children[0],N+="/"+T.name;let I=w+"/"+N,C=!!T.children,A=u.value?r[I]!==!1:!!r[I],q=C&&e.page?.options?.truncatedFolders?.includes(I.slice(1)),Z=e.page?.fileCounts?.[I.slice(1)]||0,X=Ne("span",{class:C?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},C?Ne("svg",{viewBox:"0 0 14 12",focusable:"false"},Ne("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),K=Ne("span",{class:"tree-name"},N),U=te=>{h(te.currentTarget),C&&(te.preventDefault(),r[I]=!A,r[I]&&!T.children.length&&e.page.getFiles(I.slice(1)),_t(()=>h(p().find(re=>re.dataset.path===n))))},ue=Ne("a",{"data-path":I,href:C?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(I)}`,class:{"tree-focused":n===I},onClick:U},[C?Ne("span",{class:"tree-toggle"}):w?Ne("span",{class:"tree-spacer"}):null,X,K,q?Ne("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},Ne("i",{class:"fas fa-exclamation-triangle"})):null,C&&Z?Ne("span",{class:"tree-count"},Z):null]);return Ne("li",{key:I,class:{file:!0,folder:C,open:A,active:a()===I,truncated:q},title:C?"":`Size: ${humanFileSize(T.size||0)}`},[ue,C&&A?g(T.children,I):null])}))}return()=>Ne("tree",{ref:o,tabindex:0,onKeydown:v},e.file?.length?u.value?.files.size===0?Ne("div",{class:"tree-search-empty"},"No files found"):g(i.value):"Empty repository")}};function Vl(){return ze({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function Pl(e,t){if(!e[t]){let o=Vl();Object.defineProperty(o,"invalid",{get(){return Object.values(o.errors).some(Boolean)||Object.keys(o).some(r=>r!=="invalid"&&o[r]&&typeof o[r]=="object"&&o[r].invalid)}}),e[t]=o}return e[t]}var ql={beforeMount(e,{value:t}){e._formState=Pl(t,e.name),e.addEventListener("submit",o=>o.preventDefault())}};function Dq(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function Il(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?Dq(t):t??""),Xo(e)}function Xo(e){let t=e._field.validation;if(!t)return;let o=e.validity;for(let[r,n]of Object.entries({required:o.valueMissing,pattern:o.patternMismatch,min:o.rangeUnderflow,max:o.rangeOverflow,date:o.badInput,email:o.typeMismatch&&e.type==="email",url:o.typeMismatch&&e.type==="url"}))t.setValidity(r,e.disabled||!n)}var Ml={beforeMount(e,{value:t}){var a;let o=t.form&&Pl(t.state,t.form),r=o&&e.name?o[a=e.name]||(o[a]=Vl()):null;e._field={binding:t,validation:r,timer:null};let n=()=>{clearTimeout(e._field.timer),e._field.timer=null;let u=e._field.binding,p=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(p=e.value===""?null:Number(e.value)),e.type==="date"&&(p=e.value?new Date(e.value+"T00:00:00"):null),r){r.setDirty();for(let h of Object.keys(r.errors))r.setValidity(h,!0)}u.set(p),Xo(e),u.change?.()}};e._field.commit=n;let i=u=>{let p=e._field.binding.options?.debounce||0,h=typeof p=="number"?p:p[u.type]??p.default??0;clearTimeout(e._field.timer),h?e._field.timer=setTimeout(n,h):n()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",i),e.addEventListener("blur",()=>{r&&(r.touched=!0),e._field.timer&&n()})},mounted:Il,updated(e,{value:t}){e._field.binding=t,Il(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:o}=e._field,r=t.form&&t.state[t.form];r&&r[e.name]===o&&delete r[e.name]}};function $l(e,t){let o=e.target.closest("form");if(o?._formState&&(o._formState.submitted=!0),o?.querySelectorAll("input, select, textarea").forEach(r=>{r._field?.timer&&r._field.commit(),r._field&&Xo(r)}),o&&!o.checkValidity()){let r=o.querySelector(":invalid");r?.scrollIntoView?.({block:"center"}),r?.focus(),o.reportValidity();return}return t()}var Ll=Symbol("session"),Rq=/^\/(w|api|github)(\/|$)/;function Fl(e,t={}){let o=e?.split(".").reduce((r,n)=>r?.[n],El);return String(o??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,n)=>t[n]??"")}var Tq={...Qo,translate:Fl};function Oq(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function Aq(e="#app",t={}){let o=new Map,r=wl(t.fetch),n,i;function a(){let h=mt(),v={url(f){return f===void 0?i.currentRoute.value.fullPath:(i.push(f),v)},path(){return i.currentRoute.value.path},search(){return i.currentRoute.value.query}},g=new Proxy({},{get(f,w){let k=i.currentRoute.value.params[w];return Array.isArray(k)?k.join("/"):k}});return{http:r,...h,location:v,params:g,window,promises:kl,html:{trustAsHtml:f=>f},translate:(f,w)=>Promise.resolve(Fl(f,w)),quotaService:_l(r)}}function u(h){return{name:h.template,setup(){let v=Ko(lt(Ll),o);h.setup(v,a()),bl(h.template,v);let g=[];return()=>Jn[h.template](v,g)}}}i=_a({history:t.history||ba(),routes:Ga.map(h=>h.redirect?h:{path:h.path,component:u(h),meta:{title:h.title,preserveExplorer:h.preserveExplorer}})});let p=Ui({setup(){n=Ko(null,o),n.fmt=Tq,n.window=window,n.Math=Math,n.sanitize=f=>DOMPurify.sanitize(f??""),n.submitForm=$l,n.safeUrl=Oq;let h=a();Na(n,h.http,h.location,h.timeout),ts(Ll,n),He(()=>n.title,f=>{document.title=f||"Anonymous GitHub"});let v=[],g=f=>{let w=f.target.closest?.("a[href]");if(f.defaultPrevented||f.button!==0||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||!w||w.hasAttribute("download")||w.target&&w.target!=="_self"||w.dataset.toggle||w.getAttribute("href").startsWith("#"))return;let b=new URL(w.href,window.location.href);b.origin!==window.location.origin||Rq.test(b.pathname)||(f.preventDefault(),i.push(b.pathname+b.search+b.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",g),ss(()=>document.removeEventListener("click",g)),()=>[Ne("header",{class:"app-header"},Jn["partials/header.htm"](n,v)),Ne("main",{class:"app-view align-items-stretch w-100"},Ne(Wo,null,{default:({Component:f,route:w})=>f?Ne(f,{key:w.meta.preserveExplorer?w.matched[0]?.path:w.path}):null})),Ne("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},n.toasts.map((f,w)=>Ne("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:w},[Ne("div",{class:"toast-header"},[Ne("strong",{class:"mr-auto"},f.title),Ne("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>n.removeToast(f)},"\xD7")]),Ne("div",{class:"toast-body"},f.body)])))]}});for(let[h,v]of Object.entries(Rl))p.component(h,v);return p.component("Tree",Al),p.component("PartialView",{props:["name","state"],setup(h){let v=[];return()=>Jn[h.name](h.state,v)}}),p.directive("field",Ml),p.directive("form",ql),p.directive("code-editor",Tl),p.directive("paper-scrollspy",Ol),p.use(i),i.beforeEach(async h=>{n?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(h.path)&&await Wt("markdown"),/^\/(r|repository)\//.test(h.path)&&await Wt("org")}),i.afterEach(h=>{if(!n)return;n.title=h.meta.title,n.emit("routeChange",{title:h.meta.title}),n.emit("routeUpdate",{title:h.meta.title});let v=document.querySelector(".app-view");!h.meta.preserveExplorer&&v&&(v.scrollTop=0)}),p.mount(e),{app:p,router:i,state:n}}document.querySelector("#app")&&(window.anonymousApp=Aq());})();
/*! Bundled license information:
@vue/shared/dist/shared.esm-bundler.js:
diff --git a/test/vue-ui.test.js b/test/vue-ui.test.js
index be80d61..85b3d78 100644
--- a/test/vue-ui.test.js
+++ b/test/vue-ui.test.js
@@ -121,9 +121,17 @@ describe("Vue 3 UI", function () {
});
+ for (const [appConnected, oauthConnected] of [[true, false], [false, true], [false, false], [true, true]]) {
+ it(`shows the access chooser only for two connections: ${appConnected}/${oauthConnected}`, async () => {
+ ui = await browser("/anonymize", { "/github/connections": { appEnabled: true, appConnected, oauthConnected } });
+ expect(Boolean(ui.window.document.querySelector(".repo-access"))).to.equal(appConnected && oauthConnected);
+ expect(ui.errors).to.deep.equal([]);
+ });
+ }
+
it("preserves redactions, identifiers and pinned commits when switching connections", async () => {
ui = await browser("/anonymize", {
- "/github/connections": { appEnabled: true, oauthConnected: true },
+ "/github/connections": { appEnabled: true, appConnected: true, oauthConnected: true },
"/api/repo/owner/repo/": { defaultBranch: "main", repo: "repo" },
"/api/repo/owner/repo/branches": [{ name: "main", commit: "abcdef123" }],
"/api/repo/owner/repo/readme": "",