diff --git a/public/asset-manifest.json b/public/asset-manifest.json index 4c31d86..1c24d08 100644 --- a/public/asset-manifest.json +++ b/public/asset-manifest.json @@ -1,6 +1,6 @@ { "core.min.js": "core.d23af1c652.min.js", - "vendor.min.js": "vendor.7c77f371e2.min.js", + "vendor.min.js": "vendor.d309b9ae87.min.js", "mermaid.min.js": "mermaid.a7356d5ed1.min.js", "all.min.css": "all.581d0765db.min.css", "markdown.min.js": "markdown.6c8dfb7b1d.min.js", diff --git a/public/partials/gist.htm b/public/partials/gist.htm index 7bd8812..e067559 100644 --- a/public/partials/gist.htm +++ b/public/partials/gist.htm @@ -57,7 +57,7 @@
This is a binary file. Download it to open it on your computer.
- +Binary files other than images can carry author details that anonymization can't remove, so anonymized gists don't include them.
| {{ line.oldNo || '' }} | -{{ line.newNo || '' }} | -{{ line.kind === 'add' ? '+' : line.kind === 'remove' ? 'โ' : '' }} | -{{ seg.n }}{{ seg.t }} | -
| - | |||
| '+(o.oldNo||"")+' | '+(o.newNo||"")+' | '+(o.kind==="add"?"+":o.kind==="remove"?"-":"")+' | '+e(o.text)+" |
Loading GitHub info for "+C.repoId+"..."),t.get("/api/admin/repos/"+C.repoId+"/github").then(b=>{N&&(N.document.open(),N.document.write('
'+JSON.stringify(b.data,null,2).replace(/[<>]/g,P=>P==="<"?"<":">")+""),N.document.close())},b=>{let P=b&&b.data?JSON.stringify(b.data,null,2):String(b);N&&(N.document.body.innerHTML='
'+P+"")})},e.statusCountFor=C=>{let N=(e.statusCounts||[]).find(b=>b._id===C);return N?N.count:0},e.statusStorageFor=C=>{let N=(e.statusCounts||[]).find(b=>b._id===C);return N?N.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=C=>{e.query.sort===C?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=C,e.query.direction="desc"),e.query.page=1},e.sortIcon=C=>e.query.sort===C?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",c={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let h=s.search();h.owner&&(e.query.owner=h.owner),h.conference&&(e.query.conference=h.conference),h.search&&(e.query.search=h.search);let y="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let C=window.prompt("Preset name:");if(!C)return;let N=Object.assign({},e.query);delete N.page,e.presets=(e.presets||[]).filter(b=>b.name!==C),e.presets.push({name:C,query:N}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=C=>{Object.assign(e.query,C.query,{page:1})},e.deletePreset=C=>{e.presets=(e.presets||[]).filter(N=>N.name!==C.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(C=>{e.selected[C.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(C=>e.selected[C.repoId]),e.bulkRefresh=()=>{let C=e.selectedRepos();C.length&&confirm(`Force refresh ${C.length} repositories?`)&&C.forEach(N=>e.updateRepository(N))},e.bulkRemoveCache=()=>{let C=e.selectedRepos();C.length&&confirm(`Purge cache for ${C.length} repositories?`)&&C.forEach(N=>e.removeCache(N))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let C=new URLSearchParams(Object.entries(e.query).filter(([,N])=>N!==""&&N!==!1&&N!=null));C.set("format","csv"),C.set("limit","10000"),window.open("/api/admin/repos?"+C.toString(),"_blank")},e.removeCache=C=>{confirm("Remove cached files for "+C.repoId+"?")&&t.delete("/api/admin/repos/"+C.repoId).then(()=>g(),N=>console.error(N))},e.removeRepository=C=>{confirm("Remove repository "+C.repoId+"?")&&t.delete("/api/repo/"+C.repoId+"/").then(()=>g(),N=>console.error(N))},e.updateRepository=C=>{let N=at({title:`Refreshing ${C.repoId}...`,date:new Date,body:`The repository ${C.repoId} is going to be refreshed.`});e.toasts.push(N),t.post(`/api/repo/${C.repoId}/refresh`).then(b=>{b.data.status=="ready"?N.title=`${C.repoId} is refreshed.`:N.title=`Refreshing of ${C.repoId}.`},b=>{N.title=`Error during the refresh of ${C.repoId}.`,N.body=b.body})},e.filtersOpen=!1,e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(C=>{e.total=C.data.total,e.totalPage=Math.ceil(C.data.total/e.query.limit),e.repositories=C.data.results,e.allSelected=!1},C=>{e.fetchError=C&&C.data&&C.data.error||"Failed to load repositories",console.error(C)})}function k(){let C=Object.assign({},e.query,{page:1,limit:1,ready:!0,expired:!0,removed:!0,error:!0,preparing:!0});t.get("/api/admin/repos",{params:C}).then(N=>{e.statusCounts=N.data.statusCounts||[],e.totalSize=N.data.totalSize||0},()=>{})}e.showAllStatuses=()=>Object.assign(e.query,{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0,page:1}),fr(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:C=>C==="preparing"?e.statusCountFor("preparing")+e.statusCountFor("download"):C==="expired"?e.statusCountFor("expired")+e.statusCountFor("expiring"):C==="removed"?e.statusCountFor("removed")+e.statusCountFor("removing"):e.statusCountFor(C),onChange:()=>{e.query.page=1}}),g(),k();let w=null;e.watch("query",()=>{i.timeout.cancel(w),w=i.timeout(()=>{g(),k()},500);let{page:C,search:N,...b}=e.query;saveFilterPrefs(p,b),d()},!0),d()},uc=function(e,t,s){let i=bt(),o=Ot();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let r=g=>{if(g.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){g.preventDefault();let k=document.querySelector('.admin-filter-toolbar input[type="search"]');k&&k.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=g=>{g==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[g]="",e.query.page=1},e.chips=[];let d=()=>{let g=[];e.query.role&&g.push({key:"role",label:"Role",value:e.query.role}),e.chips=g};e.statusCountFor=g=>{let k=(e.statusCounts||[]).find(w=>w._id===g);return k?k.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.query.page=1},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.users.filterPrefs",c={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(g=>{e.selected[g.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(g=>e.selected[g.username]),e.banUser=g=>{confirm(`Ban user ${g.username}?`)&&t.post(`/api/admin/users/${g.username}/ban`).then(h,k=>console.error(k))},e.activateUser=g=>{t.post(`/api/admin/users/${g.username}/activate`).then(h,k=>console.error(k))},e.bulkBan=()=>{let g=e.selectedUsers();g.length&&confirm(`Ban ${g.length} users?`)&&g.forEach(k=>e.banUser(k))},e.exportCsv=()=>{let g=new URLSearchParams(Object.entries(e.query).filter(([,k])=>k!==""&&k!==!1&&k!=null));g.set("format","csv"),g.set("limit","10000"),window.open("/api/admin/users?"+g.toString(),"_blank")},e.fetchError=null;function h(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(g=>{e.total=g.data.total,e.totalPage=Math.ceil(g.data.total/e.query.limit),e.users=g.data.results,e.statusCounts=g.data.statusCounts||[],e.allSelected=!1},g=>{e.fetchError=g&&g.data&&g.data.error||"Failed to load users",console.error(g)})}h();let y=null;e.watch("query",()=>{i.timeout.cancel(y),y=i.timeout(h,500);let{page:g,search:k,...w}=e.query;saveFilterPrefs(p,w),d()},!0),d()},cc=function(e,t,s,i){let o=bt();gc(o,Ot()),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let r="admin.user.filterPrefs",d={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},p=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},d.filters.status,p.filters&&p.filters.status||{})},e.query={sort:p.sort||d.sort,direction:p.direction||d.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=g=>(e.repositories||[]).filter(k=>pr(k.status)===g).length,fr(e,{flags:()=>e.filters.status,keys:["ready","preparing","error","expired","removed"],count:g=>e.statusCountFor(g)}),e.repoFiler=g=>e.filters.status[pr(g.status)]==!1?!1:!!(e.search.trim().length==0||g.source.fullName.indexOf(e.search)>-1||g.repoId.indexOf(e.search)>-1||g.statusMessage&&g.statusMessage.indexOf(e.search)>-1||g.conference&&g.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(g=>{e.selected[g.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(g=>e.selected[g.repoId]),e.bulkRefresh=()=>{let g=e.selectedRepos();g.length&&confirm(`Force refresh ${g.length} repositories?`)&&g.forEach(k=>e.updateRepository(k))},e.bulkRemoveCache=()=>{let g=e.selectedRepos();g.length&&confirm(`Purge cache for ${g.length} repositories?`)&&g.forEach(k=>e.removeCache(k))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let g=e.filteredRepositories||e.repositories,w=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),C=g.map(P=>[P.repoId,P.status,P.statusMessage||"",P.pageView||0,P.anonymizeDate||"",P.source&&P.source.fullName||"",P.conference||"",P.size&&P.size.storage||0].map(M=>{let _=String(M??"");return/[",\n\r]/.test(_)?'"'+_.replace(/"/g,'""')+'"':_}).join(",")),N=new Blob([w+` +`&&d++,r.push(s),o.push(r),r=[],s=""):s+=p}return(s!==""||r.length)&&(r.push(s),o.push(r)),o.filter(d=>d.length>1||d[0]!=="")},Go=e=>Math.min(((e||"").match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length+4,24),Ug=(function(){let e=o=>o.replace(/&/g,"&").replace(//g,">"),t=o=>{let r=['
| '+(s.oldNo||"")+' | '+(s.newNo||"")+' | '+(s.kind==="add"?"+":s.kind==="remove"?"-":"")+' | '+e(s.text)+" |
Loading GitHub info for "+C.repoId+"..."),t.get("/api/admin/repos/"+C.repoId+"/github").then(b=>{N&&(N.document.open(),N.document.write('
'+JSON.stringify(b.data,null,2).replace(/[<>]/g,P=>P==="<"?"<":">")+""),N.document.close())},b=>{let P=b&&b.data?JSON.stringify(b.data,null,2):String(b);N&&(N.document.body.innerHTML='
'+P+"")})},e.statusCountFor=C=>{let N=(e.statusCounts||[]).find(b=>b._id===C);return N?N.count:0},e.statusStorageFor=C=>{let N=(e.statusCounts||[]).find(b=>b._id===C);return N?N.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=C=>{e.query.sort===C?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=C,e.query.direction="desc"),e.query.page=1},e.sortIcon=C=>e.query.sort===C?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",c={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let m=o.search();m.owner&&(e.query.owner=m.owner),m.conference&&(e.query.conference=m.conference),m.search&&(e.query.search=m.search);let y="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let C=window.prompt("Preset name:");if(!C)return;let N=Object.assign({},e.query);delete N.page,e.presets=(e.presets||[]).filter(b=>b.name!==C),e.presets.push({name:C,query:N}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=C=>{Object.assign(e.query,C.query,{page:1})},e.deletePreset=C=>{e.presets=(e.presets||[]).filter(N=>N.name!==C.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(C=>{e.selected[C.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(C=>e.selected[C.repoId]),e.bulkRefresh=()=>{let C=e.selectedRepos();C.length&&confirm(`Force refresh ${C.length} repositories?`)&&C.forEach(N=>e.updateRepository(N))},e.bulkRemoveCache=()=>{let C=e.selectedRepos();C.length&&confirm(`Purge cache for ${C.length} repositories?`)&&C.forEach(N=>e.removeCache(N))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let C=new URLSearchParams(Object.entries(e.query).filter(([,N])=>N!==""&&N!==!1&&N!=null));C.set("format","csv"),C.set("limit","10000"),window.open("/api/admin/repos?"+C.toString(),"_blank")},e.removeCache=C=>{confirm("Remove cached files for "+C.repoId+"?")&&t.delete("/api/admin/repos/"+C.repoId).then(()=>g(),N=>console.error(N))},e.removeRepository=C=>{confirm("Remove repository "+C.repoId+"?")&&t.delete("/api/repo/"+C.repoId+"/").then(()=>g(),N=>console.error(N))},e.updateRepository=C=>{let N=at({title:`Refreshing ${C.repoId}...`,date:new Date,body:`The repository ${C.repoId} is going to be refreshed.`});e.toasts.push(N),t.post(`/api/repo/${C.repoId}/refresh`).then(b=>{b.data.status=="ready"?N.title=`${C.repoId} is refreshed.`:N.title=`Refreshing of ${C.repoId}.`},b=>{N.title=`Error during the refresh of ${C.repoId}.`,N.body=b.body})},e.filtersOpen=!1,e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(C=>{e.total=C.data.total,e.totalPage=Math.ceil(C.data.total/e.query.limit),e.repositories=C.data.results,e.allSelected=!1},C=>{e.fetchError=C&&C.data&&C.data.error||"Failed to load repositories",console.error(C)})}function k(){let C=Object.assign({},e.query,{page:1,limit:1,ready:!0,expired:!0,removed:!0,error:!0,preparing:!0});t.get("/api/admin/repos",{params:C}).then(N=>{e.statusCounts=N.data.statusCounts||[],e.totalSize=N.data.totalSize||0},()=>{})}e.showAllStatuses=()=>Object.assign(e.query,{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0,page:1}),fr(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:C=>C==="preparing"?e.statusCountFor("preparing")+e.statusCountFor("download"):C==="expired"?e.statusCountFor("expired")+e.statusCountFor("expiring"):C==="removed"?e.statusCountFor("removed")+e.statusCountFor("removing"):e.statusCountFor(C),onChange:()=>{e.query.page=1}}),g(),k();let w=null;e.watch("query",()=>{r.timeout.cancel(w),w=r.timeout(()=>{g(),k()},500);let{page:C,search:N,...b}=e.query;saveFilterPrefs(p,b),d()},!0),d()},uc=function(e,t,o){let r=bt(),s=Ot();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let i=g=>{if(g.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){g.preventDefault();let k=document.querySelector('.admin-filter-toolbar input[type="search"]');k&&k.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=g=>{g==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[g]="",e.query.page=1},e.chips=[];let d=()=>{let g=[];e.query.role&&g.push({key:"role",label:"Role",value:e.query.role}),e.chips=g};e.statusCountFor=g=>{let k=(e.statusCounts||[]).find(w=>w._id===g);return k?k.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.query.page=1},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.users.filterPrefs",c={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(g=>{e.selected[g.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(g=>e.selected[g.username]),e.banUser=g=>{confirm(`Ban user ${g.username}?`)&&t.post(`/api/admin/users/${g.username}/ban`).then(m,k=>console.error(k))},e.activateUser=g=>{t.post(`/api/admin/users/${g.username}/activate`).then(m,k=>console.error(k))},e.bulkBan=()=>{let g=e.selectedUsers();g.length&&confirm(`Ban ${g.length} users?`)&&g.forEach(k=>e.banUser(k))},e.exportCsv=()=>{let g=new URLSearchParams(Object.entries(e.query).filter(([,k])=>k!==""&&k!==!1&&k!=null));g.set("format","csv"),g.set("limit","10000"),window.open("/api/admin/users?"+g.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(g=>{e.total=g.data.total,e.totalPage=Math.ceil(g.data.total/e.query.limit),e.users=g.data.results,e.statusCounts=g.data.statusCounts||[],e.allSelected=!1},g=>{e.fetchError=g&&g.data&&g.data.error||"Failed to load users",console.error(g)})}m();let y=null;e.watch("query",()=>{r.timeout.cancel(y),y=r.timeout(m,500);let{page:g,search:k,...w}=e.query;saveFilterPrefs(p,w),d()},!0),d()},cc=function(e,t,o,r){let s=bt();gc(s,Ot()),e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let i="admin.user.filterPrefs",d={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},p=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},d.filters.status,p.filters&&p.filters.status||{})},e.query={sort:p.sort||d.sort,direction:p.direction||d.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=g=>(e.repositories||[]).filter(k=>pr(k.status)===g).length,fr(e,{flags:()=>e.filters.status,keys:["ready","preparing","error","expired","removed"],count:g=>e.statusCountFor(g)}),e.repoFiler=g=>e.filters.status[pr(g.status)]==!1?!1:!!(e.search.trim().length==0||g.source.fullName.indexOf(e.search)>-1||g.repoId.indexOf(e.search)>-1||g.statusMessage&&g.statusMessage.indexOf(e.search)>-1||g.conference&&g.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(g=>{e.selected[g.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(g=>e.selected[g.repoId]),e.bulkRefresh=()=>{let g=e.selectedRepos();g.length&&confirm(`Force refresh ${g.length} repositories?`)&&g.forEach(k=>e.updateRepository(k))},e.bulkRemoveCache=()=>{let g=e.selectedRepos();g.length&&confirm(`Purge cache for ${g.length} repositories?`)&&g.forEach(k=>e.removeCache(k))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let g=e.filteredRepositories||e.repositories,w=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),C=g.map(P=>[P.repoId,P.status,P.statusMessage||"",P.pageView||0,P.anonymizeDate||"",P.source&&P.source.fullName||"",P.conference||"",P.size&&P.size.storage||0].map(M=>{let _=String(M??"");return/[",\n\r]/.test(_)?'"'+_.replace(/"/g,'""')+'"':_}).join(",")),N=new Blob([w+` `+C.join(` -`)],{type:"text/csv"}),b=document.createElement("a");b.href=URL.createObjectURL(N),b.download=i.username+"-repositories.csv",b.click()},e.showStatusMessage=g=>{let k=g.statusMessage||"(no message)";window.prompt(`Status message for ${g.repoId} (${g.status}):`,k)},e.fetchGithubInfo=g=>{let k=window.open("","_blank");k&&k.document.write("
Loading GitHub info for "+g.repoId+"..."),t.get("/api/admin/repos/"+g.repoId+"/github").then(w=>{k&&(k.document.open(),k.document.write('
'+JSON.stringify(w.data,null,2).replace(/[<>]/g,C=>C==="<"?"<":">")+""),k.document.close())},w=>{let C=w&&w.data?JSON.stringify(w.data,null,2):String(w);k&&(k.document.body.innerHTML='
'+C+"")})};function c(g){t.get("/api/admin/users/"+g+"/repos",{}).then(k=>{e.repositories=k.data},k=>{console.error(k)})}function v(g){t.get("/api/admin/users/"+g,{}).then(k=>{e.userInfo=k.data},k=>{console.error(k)})}v(i.username),c(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>v(i.username),g=>console.error(g))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>v(i.username),g=>console.error(g))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>v(i.username),g=>console.error(g))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>v(i.username),g=>console.error(g))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function h(){t.get("/api/admin/tokens").then(g=>{e.tokens=g.data||[]},g=>{g.status!==401&&g.status!==403&&console.error(g)})}h(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(g=>{e.tokenForm.plaintext=g.data.token,e.tokenForm.name="",h()},g=>console.error(g))},e.revokeToken=g=>{confirm(`Revoke token "${g.name}"?`)&&t.delete("/api/admin/tokens/"+g.id).then(()=>h(),k=>console.error(k))},e.removeCache=g=>{confirm("Remove cached files for "+g.repoId+"?")&&t.delete("/api/admin/repos/"+g.repoId).then(()=>c(i.username),k=>console.error(k))},e.removeRepository=g=>{confirm("Remove repository "+g.repoId+"?")&&t.delete("/api/repo/"+g.repoId+"/").then(()=>c(i.username),k=>console.error(k))},e.updateRepository=g=>{let k=at({title:`Refreshing ${g.repoId}...`,date:new Date,body:`The repository ${g.repoId} is going to be refreshed.`});e.toasts.push(k),t.post(`/api/repo/${g.repoId}/refresh`).then(w=>{w.data.status=="ready"?k.title=`${g.repoId} is refreshed.`:k.title=`Refreshing of ${g.repoId}.`},w=>{k.title=`Error during the refresh of ${g.repoId}.`,k.body=w.body})},e.getGitHubRepositories=g=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(k=>{e.userInfo.repositories=k.data})};let y=null;e.watch("query",()=>{o.timeout.cancel(y),y=o.timeout(()=>{c(i.username)},500)},!0)},pc=function(e,t,s){let i=bt(),o=Ot();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let r=w=>{if(w.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){w.preventDefault();let C=document.querySelector('.admin-filter-toolbar input[type="search"]');C&&C.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=w=>{w==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[w]="",e.query.page=1},e.chips=[];let d=()=>{let w=[];(e.query.dateFrom||e.query.dateTo)&&w.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=w};e.statusCountFor=w=>{let C=(e.statusCounts||[]).find(N=>N._id===w);return C?C.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",c={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let h=s.search();h.search&&(e.query.search=h.search);let y="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let w=window.prompt("Preset name:");if(!w)return;let C=Object.assign({},e.query);delete C.page,e.presets=(e.presets||[]).filter(N=>N.name!==w),e.presets.push({name:w,query:C}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=w=>{Object.assign(e.query,w.query,{page:1})},e.deletePreset=w=>{e.presets=(e.presets||[]).filter(C=>C.name!==w.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.removeConference=w=>{confirm("Remove conference "+w.conferenceID+"?")&&t.delete("/api/admin/conferences/"+w.conferenceID).then(()=>g(),C=>console.error(C))},e.exportCsv=()=>{let w=new URLSearchParams(Object.entries(e.query).filter(([,C])=>C!==""&&C!==!1&&C!=null));w.set("format","csv"),w.set("limit","10000"),window.open("/api/admin/conferences?"+w.toString(),"_blank")},e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(w=>{e.total=w.data.total,e.totalPage=Math.ceil(w.data.total/e.query.limit),e.conferences=w.data.results,e.statusCounts=w.data.statusCounts||[]},w=>{e.fetchError=w&&w.data&&w.data.error||"Failed to load conferences",console.error(w)})}fr(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:w=>e.statusCountFor(w),onChange:()=>{e.query.page=1}}),g();let k=null;e.watch("query",()=>{i.timeout.cancel(k),k=i.timeout(g,500);let{page:w,search:C,...N}=e.query;saveFilterPrefs(p,N),d()},!0),d()},fc=function(e,t,s,i,o){let r=bt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},fr(e,{flags:()=>e.stateFilter,keys:e.allStates,count:N=>(e.jobs||[]).filter(b=>b._state===N).length}),e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(N=>e.stateFilter[N._state]),e.jobProgressPct=N=>N?._state==="completed"?100:N&&N.progress&&typeof N.progress=="object"&&typeof N.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(N.progress.percent))):typeof N.progress=="number"?Math.max(0,Math.min(100,Math.round(N.progress))):null;let d={get_files:"Fetching files",download:"Downloading",downloading:"Downloading",anonymize:"Anonymizing",anonymizing:"Anonymizing",ready:"Ready",removing:"Removing",preparing:"Preparing"};e.jobDetail=N=>{if(N?._state==="failed")return rr(N.failedReason||"")||"Failed";let b=N?.progress&&typeof N.progress=="object"?N.progress.status:null;return N?._state==="active"&&b?d[b]||rr(b):"\u2014"},e.jobDuration=N=>{if(!N.processedOn)return"\u2014";let b=N.finishedOn||Date.now();return Un(b-N.processedOn)},e.metricsPoints=[],e.selectQueue=N=>{e.selectedQueue=N,p(),c()},e.setRange=N=>{e.range=N,c()};function p(){let N={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:N}).then(b=>{e.queueList=b.data.queues||[],e.jobs=b.data.jobs||[],e.selectedStats=e.queueList.find(P=>P.key===e.selectedQueue)||e.queueList[0]||null},b=>console.error(b))}function c(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(N=>{e.metricsPoints=N.data.points||[],o(k,0)},N=>console.error(N))}p(),c();let v=i(()=>{e.query.autoRefresh&&(p(),c())},15e3);e.on("dispose",()=>i.cancel(v)),e.refreshNow=function(){p(),c()};function h(N){let b=N&&N.data&&(N.data.message||N.data.error)||"Request failed";e.actionError=b,o(()=>{e.actionError=null},5e3),console.error(N)}e.actionError=null,e.removeJob=N=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,h)},e.retryJob=N=>{t.post(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,h)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(p,N=>console.error(N))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(p,N=>console.error(N))},e.togglePause=()=>{let N=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${N}`).then(p,b=>console.error(b))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(p,N=>console.error(N))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(p,N=>console.error(N))};let y=null;e.watch("query.search",()=>{r.timeout.cancel(y),y=r.timeout(p,350)}),e.expanded={},e.toggleJob=N=>{e.expanded[N.id]=!e.expanded[N.id]},e.humanTime=N=>{if(!N)return"";let b=new Date(N);return b.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+b.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=N=>{if(!N)return"";var b=Math.max(0,Math.ceil((N-Date.now())/1e3));if(b<=0)return"resuming soon";var P=Math.floor(b/60),M=b%60;return"in "+(P>0?P+"m "+M+"s":M+"s")};function g(N){if(N<=0)return{ticks:[0],niceMax:1};let b=Math.pow(10,Math.floor(Math.log10(N))),P=b;N/P<2?P=b/2:N/P>5&&(P=b*2);let M=Math.ceil(N/P)*P,_=[];for(let j=0;j<=M;j+=P)_.push(j);return{ticks:_,niceMax:M}}function k(){var N=document.getElementById("q-throughput-chart");if(!N)return;var b=N.getContext("2d"),P=window.devicePixelRatio||1,M=N.parentElement.getBoundingClientRect(),_=44,j=44,ne=22,q=Math.max(200,Math.round(M.width)),z=Math.max(180,Math.min(420,Math.round(M.height)||180)),O=q-_-j,L=z-ne;N.width=q*P,N.height=z*P,N.style.width=q+"px",N.style.height=z+"px",b.setTransform(P,0,0,P,0,0);var E=document.body.classList.contains("dark-mode"),F="#8A857C",Y=E?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",G=E?"#6FBF8A":"#2F7D4F",Z=E?"rgba(111,191,138,0.12)":"rgba(47,125,79,0.08)",ie=E?"#F08A82":"#B42318",x=E?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",fe=getComputedStyle(document.body).getPropertyValue("--q-time-series").trim()||(E?"#E0A94A":"#946512"),ve=e.metricsPoints||[];if(ve.length===0){b.fillStyle=F,b.font="13px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No metrics data yet",q/2,z/2),w=null;return}var Be=ve.map(function(Ce){return Ce.completed}),He=ve.map(function(Ce){return Ce.failed}),Ze=ve.map(function(Ce){return Ce.avgMs});if(!Be.some(Boolean)&&!He.some(Boolean)){b.strokeStyle=E?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.12)",b.beginPath(),b.moveTo(0,z-18.5),b.lineTo(q,z-18.5),b.stroke(),b.fillStyle=E?"#CFC8BD":"#4F4A42",b.font="500 14px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No jobs processed in this window",q/2,z/2-6),b.fillStyle=F,b.font="12.5px Inter, system-ui, sans-serif",b.fillText("Completed and failed jobs will chart here",q/2,z/2+16),w=null;return}var Ne=ve.length,tt=O/(Ne-1||1),Re=Math.max(1,Math.max.apply(null,Be),Math.max.apply(null,He)),qe=g(Re),X=Math.max.apply(null,Ze),ce=X>0?g(X):{ticks:[0],niceMax:1},ue=function(Ce){return L-Ce/qe.niceMax*(L-10)},me=function(Ce){return L-Ce/ce.niceMax*(L-10)},be=function(Ce){return _+Ce*tt};b.textAlign="right",b.textBaseline="middle",b.font="11px Inter, system-ui, sans-serif",qe.ticks.forEach(function(Ce){var Fe=ue(Ce);b.strokeStyle=Y,b.lineWidth=1,b.beginPath(),b.moveTo(_,Fe),b.lineTo(q-j,Fe),b.stroke(),b.fillStyle=F,Ce!==0&&b.fillText(Ce>=1e3?(Ce/1e3).toFixed(1)+"k":String(Ce),_-6,Fe)}),X>0&&(b.textAlign="left",ce.ticks.forEach(function(Ce){var Fe=me(Ce);b.fillStyle=fe,Ce!==0&&b.fillText(Un(Ce),q-j+6,Fe)}));var Ve=ve[Ne-1].ts,A=ve[0].ts,I=Math.max(0,(Ve-A)/6e4),U=[1,2,5,10,15,30,60,120,180,360,720,1440,2880,10080],J=U.find(function(Ce){return I/Ce<=4})||U[U.length-1],W=function(Ce){return Ce<60?Ce+"m":Ce<1440?Ce/60+"h":Ce/1440+"d"},ee=function(Ce){for(var Fe=0,it=1;it
Loading GitHub info for "+g.repoId+"..."),t.get("/api/admin/repos/"+g.repoId+"/github").then(w=>{k&&(k.document.open(),k.document.write('
'+JSON.stringify(w.data,null,2).replace(/[<>]/g,C=>C==="<"?"<":">")+""),k.document.close())},w=>{let C=w&&w.data?JSON.stringify(w.data,null,2):String(w);k&&(k.document.body.innerHTML='
'+C+"")})};function c(g){t.get("/api/admin/users/"+g+"/repos",{}).then(k=>{e.repositories=k.data},k=>{console.error(k)})}function v(g){t.get("/api/admin/users/"+g,{}).then(k=>{e.userInfo=k.data},k=>{console.error(k)})}v(r.username),c(r.username),e.banUser=()=>{confirm(`Ban user ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/ban`).then(()=>v(r.username),g=>console.error(g))},e.activateUser=()=>{t.post(`/api/admin/users/${r.username}/activate`).then(()=>v(r.username),g=>console.error(g))},e.promoteUser=()=>{confirm(`Promote ${r.username} to admin?`)&&t.post(`/api/admin/users/${r.username}/promote`).then(()=>v(r.username),g=>console.error(g))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/demote`).then(()=>v(r.username),g=>console.error(g))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function m(){t.get("/api/admin/tokens").then(g=>{e.tokens=g.data||[]},g=>{g.status!==401&&g.status!==403&&console.error(g)})}m(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(g=>{e.tokenForm.plaintext=g.data.token,e.tokenForm.name="",m()},g=>console.error(g))},e.revokeToken=g=>{confirm(`Revoke token "${g.name}"?`)&&t.delete("/api/admin/tokens/"+g.id).then(()=>m(),k=>console.error(k))},e.removeCache=g=>{confirm("Remove cached files for "+g.repoId+"?")&&t.delete("/api/admin/repos/"+g.repoId).then(()=>c(r.username),k=>console.error(k))},e.removeRepository=g=>{confirm("Remove repository "+g.repoId+"?")&&t.delete("/api/repo/"+g.repoId+"/").then(()=>c(r.username),k=>console.error(k))},e.updateRepository=g=>{let k=at({title:`Refreshing ${g.repoId}...`,date:new Date,body:`The repository ${g.repoId} is going to be refreshed.`});e.toasts.push(k),t.post(`/api/repo/${g.repoId}/refresh`).then(w=>{w.data.status=="ready"?k.title=`${g.repoId} is refreshed.`:k.title=`Refreshing of ${g.repoId}.`},w=>{k.title=`Error during the refresh of ${g.repoId}.`,k.body=w.body})},e.getGitHubRepositories=g=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(k=>{e.userInfo.repositories=k.data})};let y=null;e.watch("query",()=>{s.timeout.cancel(y),y=s.timeout(()=>{c(r.username)},500)},!0)},pc=function(e,t,o){let r=bt(),s=Ot();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let i=w=>{if(w.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){w.preventDefault();let C=document.querySelector('.admin-filter-toolbar input[type="search"]');C&&C.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=w=>{w==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[w]="",e.query.page=1},e.chips=[];let d=()=>{let w=[];(e.query.dateFrom||e.query.dateTo)&&w.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=w};e.statusCountFor=w=>{let C=(e.statusCounts||[]).find(N=>N._id===w);return C?C.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",c={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let m=o.search();m.search&&(e.query.search=m.search);let y="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let w=window.prompt("Preset name:");if(!w)return;let C=Object.assign({},e.query);delete C.page,e.presets=(e.presets||[]).filter(N=>N.name!==w),e.presets.push({name:w,query:C}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=w=>{Object.assign(e.query,w.query,{page:1})},e.deletePreset=w=>{e.presets=(e.presets||[]).filter(C=>C.name!==w.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.removeConference=w=>{confirm("Remove conference "+w.conferenceID+"?")&&t.delete("/api/admin/conferences/"+w.conferenceID).then(()=>g(),C=>console.error(C))},e.exportCsv=()=>{let w=new URLSearchParams(Object.entries(e.query).filter(([,C])=>C!==""&&C!==!1&&C!=null));w.set("format","csv"),w.set("limit","10000"),window.open("/api/admin/conferences?"+w.toString(),"_blank")},e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(w=>{e.total=w.data.total,e.totalPage=Math.ceil(w.data.total/e.query.limit),e.conferences=w.data.results,e.statusCounts=w.data.statusCounts||[]},w=>{e.fetchError=w&&w.data&&w.data.error||"Failed to load conferences",console.error(w)})}fr(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:w=>e.statusCountFor(w),onChange:()=>{e.query.page=1}}),g();let k=null;e.watch("query",()=>{r.timeout.cancel(k),k=r.timeout(g,500);let{page:w,search:C,...N}=e.query;saveFilterPrefs(p,N),d()},!0),d()},fc=function(e,t,o,r,s){let i=bt();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},fr(e,{flags:()=>e.stateFilter,keys:e.allStates,count:N=>(e.jobs||[]).filter(b=>b._state===N).length}),e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(N=>e.stateFilter[N._state]),e.jobProgressPct=N=>N?._state==="completed"?100:N&&N.progress&&typeof N.progress=="object"&&typeof N.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(N.progress.percent))):typeof N.progress=="number"?Math.max(0,Math.min(100,Math.round(N.progress))):null;let d={get_files:"Fetching files",download:"Downloading",downloading:"Downloading",anonymize:"Anonymizing",anonymizing:"Anonymizing",ready:"Ready",removing:"Removing",preparing:"Preparing"};e.jobDetail=N=>{if(N?._state==="failed")return ar(N.failedReason||"")||"Failed";let b=N?.progress&&typeof N.progress=="object"?N.progress.status:null;return N?._state==="active"&&b?d[b]||ar(b):"\u2014"},e.jobDuration=N=>{if(!N.processedOn)return"\u2014";let b=N.finishedOn||Date.now();return Un(b-N.processedOn)},e.metricsPoints=[],e.selectQueue=N=>{e.selectedQueue=N,p(),c()},e.setRange=N=>{e.range=N,c()};function p(){let N={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:N}).then(b=>{e.queueList=b.data.queues||[],e.jobs=b.data.jobs||[],e.selectedStats=e.queueList.find(P=>P.key===e.selectedQueue)||e.queueList[0]||null},b=>console.error(b))}function c(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(N=>{e.metricsPoints=N.data.points||[],s(k,0)},N=>console.error(N))}p(),c();let v=r(()=>{e.query.autoRefresh&&(p(),c())},15e3);e.on("dispose",()=>r.cancel(v)),e.refreshNow=function(){p(),c()};function m(N){let b=N&&N.data&&(N.data.message||N.data.error)||"Request failed";e.actionError=b,s(()=>{e.actionError=null},5e3),console.error(N)}e.actionError=null,e.removeJob=N=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,m)},e.retryJob=N=>{t.post(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,m)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(p,N=>console.error(N))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(p,N=>console.error(N))},e.togglePause=()=>{let N=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${N}`).then(p,b=>console.error(b))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(p,N=>console.error(N))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(p,N=>console.error(N))};let y=null;e.watch("query.search",()=>{i.timeout.cancel(y),y=i.timeout(p,350)}),e.expanded={},e.toggleJob=N=>{e.expanded[N.id]=!e.expanded[N.id]},e.humanTime=N=>{if(!N)return"";let b=new Date(N);return b.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+b.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=N=>{if(!N)return"";var b=Math.max(0,Math.ceil((N-Date.now())/1e3));if(b<=0)return"resuming soon";var P=Math.floor(b/60),M=b%60;return"in "+(P>0?P+"m "+M+"s":M+"s")};function g(N){if(N<=0)return{ticks:[0],niceMax:1};let b=Math.pow(10,Math.floor(Math.log10(N))),P=b;N/P<2?P=b/2:N/P>5&&(P=b*2);let M=Math.ceil(N/P)*P,_=[];for(let H=0;H<=M;H+=P)_.push(H);return{ticks:_,niceMax:M}}function k(){var N=document.getElementById("q-throughput-chart");if(!N)return;var b=N.getContext("2d"),P=window.devicePixelRatio||1,M=N.parentElement.getBoundingClientRect(),_=44,H=44,ne=22,q=Math.max(200,Math.round(M.width)),z=Math.max(180,Math.min(420,Math.round(M.height)||180)),O=q-_-H,L=z-ne;N.width=q*P,N.height=z*P,N.style.width=q+"px",N.style.height=z+"px",b.setTransform(P,0,0,P,0,0);var E=document.body.classList.contains("dark-mode"),F="#8A857C",Y=E?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",G=E?"#6FBF8A":"#2F7D4F",Z=E?"rgba(111,191,138,0.12)":"rgba(47,125,79,0.08)",ie=E?"#F08A82":"#B42318",x=E?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",fe=getComputedStyle(document.body).getPropertyValue("--q-time-series").trim()||(E?"#E0A94A":"#946512"),ve=e.metricsPoints||[];if(ve.length===0){b.fillStyle=F,b.font="13px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No metrics data yet",q/2,z/2),w=null;return}var Be=ve.map(function(Se){return Se.completed}),He=ve.map(function(Se){return Se.failed}),Ze=ve.map(function(Se){return Se.avgMs});if(!Be.some(Boolean)&&!He.some(Boolean)){b.strokeStyle=E?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.12)",b.beginPath(),b.moveTo(0,z-18.5),b.lineTo(q,z-18.5),b.stroke(),b.fillStyle=E?"#CFC8BD":"#4F4A42",b.font="500 14px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No jobs processed in this window",q/2,z/2-6),b.fillStyle=F,b.font="12.5px Inter, system-ui, sans-serif",b.fillText("Completed and failed jobs will chart here",q/2,z/2+16),w=null;return}var Ne=ve.length,tt=O/(Ne-1||1),Re=Math.max(1,Math.max.apply(null,Be),Math.max.apply(null,He)),qe=g(Re),X=Math.max.apply(null,Ze),ce=X>0?g(X):{ticks:[0],niceMax:1},ue=function(Se){return L-Se/qe.niceMax*(L-10)},me=function(Se){return L-Se/ce.niceMax*(L-10)},we=function(Se){return _+Se*tt};b.textAlign="right",b.textBaseline="middle",b.font="11px Inter, system-ui, sans-serif",qe.ticks.forEach(function(Se){var Fe=ue(Se);b.strokeStyle=Y,b.lineWidth=1,b.beginPath(),b.moveTo(_,Fe),b.lineTo(q-H,Fe),b.stroke(),b.fillStyle=F,Se!==0&&b.fillText(Se>=1e3?(Se/1e3).toFixed(1)+"k":String(Se),_-6,Fe)}),X>0&&(b.textAlign="left",ce.ticks.forEach(function(Se){var Fe=me(Se);b.fillStyle=fe,Se!==0&&b.fillText(Un(Se),q-H+6,Fe)}));var Ve=ve[Ne-1].ts,A=ve[0].ts,I=Math.max(0,(Ve-A)/6e4),U=[1,2,5,10,15,30,60,120,180,360,720,1440,2880,10080],J=U.find(function(Se){return I/Se<=4})||U[U.length-1],W=function(Se){return Se<60?Se+"m":Se<1440?Se/60+"h":Se/1440+"d"},ee=function(Se){for(var Fe=0,it=1;it
Manage how GitHub shares your code. Your anonymizations and URLs stay the same.
Sign in to create and manage your anonymizations.
Connect through the GitHub App with read-only repository access.
Sign in with GitHubYour existing anonymizations and connections stay with your account.',5)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(a(),l("section",S1,[...t[3]||(t[3]=[n("div",{class:"connection-title"},[n("h2",null,"Continue with GitHub")],-1),n("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),n("a",{class:"connection-link",target:"_self",href:"/github/login"},[m("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(a(),l("p",E1,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])]),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}function Sp(e,t){let s=Ye("partial-view");return a(),l(T,null,[t[0]||(t[0]=ke('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.
Paste a repository, pull request, or gist URL, or pick one of your repositories. You\u2019ll choose the terms to redact next.
Manage how GitHub shares your code. Your anonymizations and URLs stay the same.
Sign in to create and manage your anonymizations.
Connect through the GitHub App with read-only repository access.
Sign in with GitHubYour existing anonymizations and connections stay with your account.',5)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(a(),l("section",E1,[...t[3]||(t[3]=[n("div",{class:"connection-title"},[n("h2",null,"Continue with GitHub")],-1),n("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),n("a",{class:"connection-link",target:"_self",href:"/github/login"},[h("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(a(),l("p",N1,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])]),Me(o,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}function Sp(e,t){let o=Ke("partial-view");return a(),l(T,null,[t[0]||(t[0]=Ce('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.
Paste a repository, pull request, or gist URL, or pick one of your repositories. You\u2019ll choose the terms to redact next.
Fill in the details \u2014 it only takes a minute.
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),n("div",OL,[t[5]||(t[5]=n("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)),D((a(),l("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=re(o=>e.submitForm(o,()=>{e.claim()}),["prevent"]))},[n("div",ML,[t[1]||(t[1]=n("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),D(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoUrl=o},value:e.repoUrl,form:"claimForm",options:{}}]]),D(n("div",VL," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[Q,e.claimForm?.repoUrl?.errors?.not_found]])]),n("div",qL,[t[2]||(t[2]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),D(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoId=o},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=n("small",{id:"idHelp",class:"form-text text-muted"},[m("The ID is the last part of the anonymized URL: "),n("code",null,"anonymous.4open.science/r/Fill in the details \u2014 it only takes a minute.
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),n("div",ML,[t[5]||(t[5]=n("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)),D((a(),l("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=re(s=>e.submitForm(s,()=>{e.claim()}),["prevent"]))},[n("div",VL,[t[1]||(t[1]=n("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),D(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[o,{state:e.viewState,set:s=>{e.repoUrl=s},value:e.repoUrl,form:"claimForm",options:{}}]]),D(n("div",qL," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[Q,e.claimForm?.repoUrl?.errors?.not_found]])]),n("div",LL,[t[2]||(t[2]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),D(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[o,{state:e.viewState,set:s=>{e.repoId=s},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=n("small",{id:"idHelp",class:"form-text text-muted"},[h("The ID is the last part of the anonymized URL: "),n("code",null,"anonymous.4open.science/r/1# Training loop for DeepLearnUtils + label names the service and the tooltip says who to contact. `),n("li",{class:R(["nav-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[19]||(t[19]=[n("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"},[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug ")],-1)])],2),n("li",{class:R(["nav-item nav-support-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[20]||(t[20]=[n("a",{class:"nav-link nav-support-inline",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs"},[n("svg",{class:"ui-icon nav-heart","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),h("Support ")],-1)])],2),e.isDarkMode?f("v-if",!0):(a(),l("li",mH,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to dark mode","aria-label":"Switch to dark mode",onClick:t[1]||(t[1]=o=>{e.darkMode(!0)})},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(a(),l("li",hH,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to light mode","aria-label":"Switch to light mode",onClick:t[2]||(t[2]=o=>{e.darkMode(!1)})},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(a(),l("li",gH,[...t[23]||(t[23]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),h(" Sign in ")],-1)])])):f("v-if",!0),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(a(),l("li",vH,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[3]||(t[3]=re(o=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):f("v-if",!0),e.user?(a(),l("li",yH,[n("a",bH,[e.user?.photo?(a(),l("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,wH)):f("v-if",!0),n("span",kH,u(e.user?.username),1)]),n("div",CH,[n("h6",SH,"Signed in as @"+u(e.user?.username),1),t[25]||(t[25]=Ce('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource code',6)),e.headerShowSupport?(a(),l("a",EH,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",null,"Support the project",-1)])])):f("v-if",!0),t[26]||(t[26]=n("div",{class:"dropdown-divider"},null,-1)),t[27]||(t[27]=n("a",{class:"dropdown-item",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),n("span",null,"Sign out")],-1))])])):f("v-if",!0)])])],2),e.generalMessage?(a(),l("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,NH)):f("v-if",!0),e.emailPromptOpen?(a(),l("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[8]||(t[8]=re(o=>e.respondToEmailPrompt("later"),["prevent"]))},[n("form",{onSubmit:t[7]||(t[7]=re(o=>e.respondToEmailPrompt("save"),["prevent"]))},[t[30]||(t[30]=n("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[31]||(t[31]=n("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[32]||(t[32]=n("label",{for:"email-prompt-address"},"Email address",-1)),D(n("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[4]||(t[4]=o=>e.emailPromptAddress=o),disabled:e.emailPromptBusy},null,8,RH),[[ot,e.emailPromptAddress]]),e.emailPromptError?(a(),l("p",TH,u(e.emailPromptError),1)):f("v-if",!0),n("div",PH,[n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[5]||(t[5]=o=>e.respondToEmailPrompt("later"))},"Remind me later",8,DH),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[6]||(t[6]=o=>e.respondToEmailPrompt("never"))},"Never",8,AH),n("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},u(e.emailPromptBusy?"Saving\u2026":"Save"),9,IH)])],32)],32)):f("v-if",!0)],64)}var OH={class:"paper-landing"},MH={class:"paper-hero"},VH={class:"paper-hero-copy"},qH={class:"paper-cta-row"},LH={key:0,href:"/signin",target:"_self",class:"btn-hero"},FH={key:1,href:"/anonymize",class:"btn-hero"},_H={class:"paper-stats-meta"},$H={key:0,class:"paper-stats-meta-left"},UH={key:0,class:"paper-stats-grid"},BH={class:"paper-stat-label"},zH={key:0,class:"paper-stat-delta"},HH={class:"demo paper-wrap","aria-label":"Try redaction"},jH={class:"demo-terms"},GH={class:"demo-panes"},WH={class:"pane"},KH={class:"demo-input-wrap"},YH={class:"pane-body demo-backdrop","aria-hidden":"true"},JH={key:0,class:"demo-match"},XH={class:"pane pane-after"},QH={class:"pane-header"},ZH={class:"pane-url"},xH={class:"meta-redact"},ej={class:"pane-body demo-output","aria-live":"polite"},tj=["title"],nj={class:"paper-features paper-wrap","aria-label":"Product features"},oj={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},sj=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],ij={class:"paper-eyebrow"},rj={class:"pf-num"},aj={class:"pf-name"},lj={class:"paper-feature-title"},dj={key:0,class:"serif-hy"},uj={class:"paper-feature-more"},cj={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},pj={key:0,class:"serif-hy"},fj=["href","target"],mj={class:"paper-features-stage"},hj=["id","aria-labelledby"],gj={class:"paper-frame"},vj={class:"paper-frame-bar","aria-hidden":"true"},yj={class:"url"},bj=["aria-label"],wj={key:0,class:"fm-form"},kj={key:1,class:"fm-viewer"},Cj={key:2,class:"fm-dash"};function Bp(e,t){let o=Ke("partial-view");return a(),l("div",OH,[f(" Hero: copy on the left, the product on the right "),n("section",MH,[n("div",VH,[t[5]||(t[5]=n("div",{class:"paper-eyebrow"},"For double-anonymous peer review",-1)),t[6]||(t[6]=n("h1",{class:"hero-title"},[h(" Share the code,"),n("br"),n("span",{class:"accent"},"not the author.")],-1)),t[7]||(t[7]=n("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist. It redacts the terms you choose in text files, so reviewers can browse your artifact through an anonymous link. ",-1)),n("div",qH,[e.user?f("v-if",!0):(a(),l("a",LH,[...t[3]||(t[3]=[n("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),h("Sign in with GitHub ",-1)])])),e.user?(a(),l("a",FH," Anonymize a repository \u2192 ")):f("v-if",!0),t[4]||(t[4]=n("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[8]||(t[8]=n("ul",{class:"paper-reassure"},[n("li",null,"Free, open source"),n("li",null,"Read-only access"),n("li",null,"Set an expiry date")],-1)),t[9]||(t[9]=n("p",{class:"paper-proof-mobile"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),t[10]||(t[10]=n("div",{class:"paper-hero-shot"},[n("div",{class:"paper-frame"},[n("div",{class:"paper-frame-bar","aria-hidden":"true"},[n("span",{class:"dots"},[n("i"),n("i"),n("i")]),n("span",{class:"url"},"anonymous.4open.science/r/paper-7f2a")]),n("div",{class:"hero-mock",role:"img","aria-label":"A reviewer browsing an anonymized repository: the author, affiliation, and email in the README are replaced by anonymous terms"},[n("div",{class:"hero-mock-tree","aria-hidden":"true"},[n("div",{class:"hero-mock-tree-title"},"Files"),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("data")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("experiments")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("src")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("LICENSE")]),n("div",{class:"hero-mock-row is-active"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("README.md")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("requirements.txt")])]),n("div",{class:"hero-mock-doc","aria-hidden":"true"},[n("div",{class:"hero-mock-doc-bar"},[n("strong",null,"README.md"),n("span",{class:"hero-mock-count"},"3 redacted")]),n("div",{class:"hero-mock-doc-body"},[n("div",{class:"hero-mock-h1"},"DeepLearnUtils"),n("p",null,[h("Developed by "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 1"},[n("i",null,"1")]),h(" at "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 2"},[n("i",null,"2")]),h(".")]),n("p",{class:"hm-opt"},"Utilities for reproducing the paper\u2019s experiments."),n("div",{class:"hero-mock-h2 hm-opt"},"Quick start"),n("pre",{class:"hm-opt"},`pip install -r requirements.txt +python experiments/run.py`),n("p",null,[h("Contact: "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 3"},[n("i",null,"3")])])])])])])],-1))]),f(" Live stats "),n("section",{class:R(["paper-stats paper-wrap",{"is-empty":e.statsEmpty()}]),id:"metrics","aria-label":"Usage over the last 60 days"},[n("div",_H,[e.statsEmpty()?f("v-if",!0):(a(),l("div",$H,[...t[11]||(t[11]=[n("span",{class:"paper-stats-dot","aria-hidden":"true"},null,-1),h(),n("span",null,[h("Live \xB7 last 60 days"),n("span",{class:"paper-stats-daily"}," \xB7 updated daily")],-1)])])),t[12]||(t[12]=n("div",{class:"paper-stats-meta-right"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),e.statsEmpty()?f("v-if",!0):(a(),l("div",UH,[(a(!0),l(T,null,j(e.cards,(r,s)=>(a(),l("div",{class:"paper-stat-card",key:r?.key},[n("div",{class:R(["paper-stat-value",{"is-pending":!e.stat}])},u(e.stat?e.fmt?.bigNum(r?.total):"\u2014"),3),n("div",BH,u(r?.label),1),e.history[r?.key].bars?.length>1&&e.history[r?.key].deltaToday>0?(a(),l("div",zH," +"+u(e.fmt?.number(e.history[r?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))]))],2),f(" Before / after "),t[22]||(t[22]=n("section",{class:"paper-section-head paper-wrap"},[n("div",null,[n("div",{class:"paper-eyebrow"},"Try it"),n("h2",null,[h("The same repository, "),n("em",null,"minus you.")])]),n("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)),n("div",HH,[n("div",jH,[t[13]||(t[13]=n("label",{for:"demo-terms"},[h("Terms to redact "),n("span",null,[h("comma-separated"),n("span",{class:"dt-try"},", try adding your own")])],-1)),D(n("textarea",{id:"demo-terms",class:"demo-terms-input",rows:"1","onUpdate:modelValue":t[0]||(t[0]=r=>e.demoTerms=r),spellcheck:"false",autocomplete:"off",onKeydown:t[1]||(t[1]=_t(re(()=>{},["prevent"]),["enter"]))},null,544),[[ot,e.demoTerms]])]),n("div",GH,[n("div",WH,[t[15]||(t[15]=n("div",{class:"pane-header"},[n("span",{class:"pane-label"},[h("Your repository "),n("span",{class:"pane-edit-hint"},"\xB7 editable")]),n("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")],-1)),n("div",KH,[n("div",YH,[(a(!0),l(T,null,j(e.demoParts(),(r,s)=>(a(),l(T,{key:s},[r.redacted?(a(),l("mark",JH,u(r.original),1)):(a(),l(T,{key:1},[h(u(r.text),1)],64))],64))),128)),t[14]||(t[14]=h("\u200B",-1))]),D(n("textarea",{class:"pane-body demo-input","onUpdate:modelValue":t[2]||(t[2]=r=>e.demoText=r),spellcheck:"false","aria-label":"Sample README to anonymize"},null,512),[[ot,e.demoText]])])]),n("div",XH,[n("div",QH,[t[16]||(t[16]=n("span",{class:"pane-label"},"What reviewers see",-1)),n("span",ZH,[n("span",xH,u(e.demoCount())+" redacted",1)])]),n("div",ej,[(a(!0),l(T,null,j(e.demoParts(),(r,s)=>(a(),l(T,{key:s},[r.redacted?(a(),l("span",{key:0,class:"redact-chip",title:"Replaces \u201C"+r.original+"\u201D"},u(r.text),9,tj)):(a(),l(T,{key:1},[h(u(r.text),1)],64))],64))),128))])])])]),f(" What you get: one screenshot, three tabs "),t[23]||(t[23]=n("section",{class:"paper-section-head paper-wrap",id:"about"},[n("div",null,[n("div",{class:"paper-eyebrow"},"What you get"),n("h2",null,"Anonymize, review, manage.")]),n("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),n("section",nj,[n("div",oj,[(a(!0),l(T,null,j(e.features,(r,s)=>(a(),l("div",{class:R(["paper-feature",{"is-on":e.feature===r?.key}]),key:r?.key},[n("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:i=>e.selectFeature(r.key),onKeydown:i=>e.featureKeydown(i,s),id:"feature-tab-"+r?.key,"aria-controls":"feature-panel-"+r?.key,"aria-selected":e.feature===r?.key,tabindex:e.feature===r?.key?0:-1},[n("span",ij,[n("span",rj,u(r?.num),1),t[17]||(t[17]=n("span",{class:"pf-sep"}," \xB7 ",-1)),n("span",aj,u(r?.eyebrow),1)]),n("span",lj,[h(u(r?.title.split("-")[0]),1),r?.title.includes("-")?(a(),l("span",dj,"-")):f("v-if",!0),h(u(r?.title.split("-").slice(1).join("-"))+" "+u(r?.accent),1)])],40,sj),n("div",uj,[n("span",cj,[h(u(r?.title.split("-")[0]),1),r?.title.includes("-")?(a(),l("span",pj,"-")):f("v-if",!0),h(u(r?.title.split("-").slice(1).join("-"))+" "+u(r?.accent),1)]),n("p",null,u(r?.text),1),n("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(r)),target:e.featureTarget(r)},u(r?.cta)+" \u2192",9,fj)])],2))),128))]),n("div",mj,[(a(!0),l(T,null,j(e.features,(r,s)=>D((a(),l("div",{class:"paper-feature-panel",role:"tabpanel",key:r?.key,id:"feature-panel-"+r?.key,"aria-labelledby":"feature-tab-"+r?.key},[n("div",gj,[n("div",vj,[t[18]||(t[18]=n("span",{class:"dots"},[n("i"),n("i"),n("i")],-1)),n("span",yj,u(r?.url),1)]),n("div",{class:R(["feat-mock","is-"+r?.key]),role:"img","aria-label":r?.alt},[r?.key==="anonymize"?(a(),l("div",wj,[...t[19]||(t[19]=[Ce('GitHub repositorygithub.com/jane-smith/DeepLearnUtilsTerms to redactJane SmithMIT CSAILjane.smith@mit.edu+ Add termReviewers can seeImagesPDFsLinksNotebooksExpiresMar 31, 2027anonymous.4open.science/r/paper-7f2aAnonymize repository',6)])])):r?.key==="review"?(a(),l("div",kj,[...t[20]||(t[20]=[Ce(`datasrctrain.pyREADME.mdLICENSE`,2)])])):(a(),l("div",Sj,[...t[21]||(t[21]=[ke('1# Training loop for DeepLearnUtils 2# Author: XXXX-1, XXXX-2 3import torch 4from utils import load_config @@ -60,18 +60,18 @@ python experiments/run.py`),n("p",null,[m("Contact: "),n("span",{class:"redact", 7 model = build_model(config) 8 for epoch in range(config.epochs): 9 loss = step(model) -10 log("epoch %d: %.3f", epoch, loss)ProjectStatusViewsExpiresDeepLearnUtilspaper-7f2a \xB7 ICSE 2027Ready41Mar 31, 2027vision-bench#212pull request \xB7 FSE 2027Ready12Nevergraph-repairgr-91abUpdating5Jan 5, 2027JarSiftOOPSLA 2025Expired72Sep 28, 2026',5)])]))],10,wj)])],8,gj)),[[Q,e.feature===i?.key]])),128))])]),f(" FAQ teaser "),t[24]||(t[24]=ke(' Read the full FAQ \u2192Before you sign inThe questions that come up most.
What access does GitHub sign-in require?The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.
Which file formats are supported?Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.
What happens when an anonymized repository expires?You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.
',2)),Me(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])])}var Ej={class:"paper-empty"},Nj={class:"paper-empty-inner"},Rj={key:0,class:"paper-eyebrow"},Tj={key:1,class:"paper-eyebrow"},Pj={key:2,class:"paper-empty-title"},Dj=["textContent"];function zp(e,t){return a(),l("div",Ej,[n("div",Nj,[e.error?f("v-if",!0):(a(),l("div",Rj,"Working")),e.error?(a(),l("div",Tj,"Error")):f("v-if",!0),e.error?f("v-if",!0):(a(),l("h1",Pj,[...t[0]||(t[0]=[m(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(a(),l("h1",{key:3,class:"paper-empty-title",textContent:u(e.fmt.translate(e.error))},null,8,Dj)):f("v-if",!0)])])}var Aj={class:"container paper-page paper-settings"},Ij={class:"paper-crumbs"},Oj={class:"here"},Mj={class:"paper-page-title"},Vj={class:"paper-settings-body"},qj={class:"paper-settings-toc"},Lj={href:"#conf-billing"},Fj={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},_j={id:"conf-basics",class:"paper-settings-section"},$j={class:"form-group"},Uj={class:"invalid-feedback"},Bj={class:"invalid-feedback"},zj={class:"form-group"},Hj={class:"invalid-feedback"},jj={class:"form-group"},Gj={class:"invalid-feedback"},Wj={class:"invalid-feedback"},Kj={id:"conf-window",class:"paper-settings-section"},Yj={class:"form-grid-2"},Jj={class:"form-group"},Xj={class:"invalid-feedback"},Qj={class:"invalid-feedback"},Zj={class:"form-group"},xj={class:"invalid-feedback"},eG={class:"invalid-feedback"},tG={id:"conf-rendering",class:"paper-settings-section"},nG={class:"form-check"},oG={class:"form-check-input",type:"checkbox",id:"link",name:"link"},sG={class:"form-check"},iG={class:"form-check-input",type:"checkbox",id:"image",name:"image"},rG={class:"form-check"},aG={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},lG={class:"form-check"},dG={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},uG={id:"conf-features",class:"paper-settings-section"},cG={class:"form-check"},pG={class:"form-check-input",type:"checkbox",id:"update",name:"update"},fG={class:"form-check"},mG={class:"form-check-input",type:"checkbox",id:"page",name:"page"},hG={id:"conf-plan",class:"paper-settings-section"},gG={key:0,class:"paper-section-copy"},vG={class:"conference-tiers",role:"radiogroup","aria-label":"Review package size"},yG=["value","checked","onChange"],bG={class:"conference-tier-head"},wG={key:0,class:"conference-tier-pill"},kG={class:"conference-tier-who"},CG={key:0,class:"conference-tier-price"},SG={class:"conference-tier-size"},EG={key:1,class:"conference-tier-per"},NG={key:2,class:"paper-plan-grid"},RG=["value"],TG=["textContent"],PG={class:"paper-plan-price"},DG=["innerHTML"],AG={key:3,class:"settings-notice",role:"status"},IG={key:0,id:"conf-billing",class:"paper-settings-section"},OG={class:"form-group"},MG={class:"form-group"},VG={class:"form-group"},qG={class:"form-group"},LG={class:"form-grid-3"},FG={class:"form-group"},_G={class:"form-group"},$G={class:"form-group"},UG={class:"form-group"},BG={class:"paper-settings-footer"},zG=["textContent"],HG=["textContent"],jG=["disabled"];function Hp(e,t){let s=De("paper-scrollspy"),i=De("field"),o=De("form");return a(),l("div",Aj,[n("div",Ij,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=m(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=m(" \xA0/\xA0 ",-1)),n("span",Oj,u(e.editionMode?"Edit":"New"),1)]),n("h1",Mj,[m(u(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[44]||(t[44]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue. One payment hosts every submission, so authors don't pay during the review window. ",-1)),n("div",Vj,[D((a(),l("aside",qj,[t[7]||(t[7]=n("div",{class:"paper-settings-toc-head"},"On this page",-1)),n("nav",null,[t[6]||(t[6]=ke('BasicsReview windowRendering defaultsFeaturesPlan',5)),D(n("a",Lj,"Billing",512),[[Q,e.plan?.pricePerRepo>0]])])])),[[s]]),D((a(),l("form",Fj,[n("section",_j,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",$j,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),D(n("input",{type:"text",class:R(["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),[[i,{state:e.viewState,set:r=>{e.options.name=r},value:e.options?.name,form:"conference",options:{}}]]),D(n("div",Uj," The name of the conference is invalid. ",512),[[Q,e.conference?.name?.errors?.invalid]]),D(n("div",Bj," The name of the conference is required. ",512),[[Q,e.conference?.name?.errors?.required]])]),n("div",zj,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),D(n("input",{type:"url",class:R(["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),[[i,{state:e.viewState,set:r=>{e.options.url=r},value:e.options?.url,form:"conference",options:{}}]]),D(n("div",Hj," The url of the conference is invalid. ",512),[[Q,e.conference?.url?.errors?.url]])]),n("div",jj,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),D(n("input",{type:"text",class:R(["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),[[i,{state:e.viewState,set:r=>{e.options.conferenceID=r},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[m("3\u201310 characters, letters, numbers, "),n("code",null,"-"),m(" and "),n("code",null,"_"),m(". Authors reference this when they anonymize.")],-1)),D(n("div",{class:"invalid-feedback"}," The conference ID '"+u(e.options?.conferenceID)+"' is already used. ",513),[[Q,e.conference?.conferenceID?.errors?.used]]),D(n("div",Gj," The conference ID is required. ",512),[[Q,e.conference?.conferenceID?.errors?.required]]),D(n("div",Wj," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[Q,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",Kj,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",Yj,[n("div",Jj,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),D(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.startDate=r},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),D(n("div",Xj," Start date is required. ",512),[[Q,e.conference?.startDate?.errors?.required]]),D(n("div",Qj," Start date must be before end date. ",512),[[Q,e.conference?.startDate?.errors?.invalid]])]),n("div",Zj,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),D(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.endDate=r},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),D(n("div",xj," End date is required. ",512),[[Q,e.conference?.endDate?.errors?.required]]),D(n("div",eG," End date is invalid. ",512),[[Q,e.conference?.endDate?.errors?.invalid]])])])]),n("section",tG,[t[26]||(t[26]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",nG,[D(n("input",oG,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.link=r},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",sG,[D(n("input",iG,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.image=r},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",rG,[D(n("input",aG,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.pdf=r},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",lG,[D(n("input",dG,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.notebook=r},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=n("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),n("section",uG,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",cG,[D(n("input",pG,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.update=r},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",fG,[D(n("input",mG,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.page=r},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",hG,[t[35]||(t[35]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),e.editionMode?(a(),l("p",gG,u(e.conferencePlanName(e.options?.plan?.planID))+". The plan and review dates can't change after creation.",1)):e.conferenceTiers().length?(a(),l(T,{key:1},[t[33]||(t[33]=n("p",{class:"paper-section-copy"},"Pick the package that fits the number of submissions you expect. One payment hosts every submission, so authors don't pay.",-1)),n("div",vG,[(a(!0),l(T,null,H(e.conferenceTiers(),r=>(a(),l("label",{class:R(["conference-tier",{"is-selected":e.options?.plan?.planID===r.id}]),key:r.id},[n("input",{type:"radio",name:"planPicker",value:r.id,checked:e.options?.plan?.planID===r.id,onChange:d=>e.options.plan.planID=r.id},null,40,yG),n("span",bG,[n("strong",null,u(r.name),1),r.id==="conference"&&e.conferenceTiers().length>1?(a(),l("span",wG,"Most common")):f("v-if",!0)]),n("span",kG,u(e.conferenceAudience(r.id)),1),r.amount!=null?(a(),l("span",CG,[n("strong",null,u(e.conferenceAmount(r)),1),t[32]||(t[32]=m(" once",-1))])):f("v-if",!0),n("span",SG,"Up to "+u(r.repositories)+" papers \xB7 "+u(e.conferenceBytes(r.storage)),1),r.amount!=null&&r.repositories?(a(),l("span",EG,"About "+u(e.conferenceAmount(r,r.amount/r.repositories))+" per paper",1)):f("v-if",!0)],2))),128))]),t[34]||(t[34]=ke(' Ready for review?
Create an anonymous mirror in a couple of minutes. Reviewers just open the link.
Every package includes
- A review window of up to 180 days
- Automatic updates for every submission
- Links stay online until the review window ends
- A dashboard of every submission for chairs
Nothing renews \xB7 Tax shown at checkout \xB7 Expecting more submissions? Email tdurieux@anonymous.4open.science
Create the conference, then pay from its page. Authors can submit once the payment is confirmed.
',2))],64)):e.plans.length?(a(),l("div",NG,[(a(!0),l(T,null,H(e.plans,r=>(a(),l("label",{class:R(["paper-plan-card",{selected:e.options?.plan?.planID==r?.id}]),key:r.id},[D(n("input",{type:"radio",name:"planPicker",value:r?.id},null,8,RG),[[i,{state:e.viewState,set:d=>{e.options.plan.planID=d},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:u(r?.name)},null,8,TG),n("div",PG,u(r.pricePerRepo>0?e.fmt?.number(r.pricePerRepo,2)+" \u20AC per repository":"Free"),1),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(r?.description)},null,8,DG)],2))),128))])):e.plansLoaded?(a(),l("p",AG,"New conferences are unavailable right now. Please try again later.")):f("v-if",!0)]),e.plan?.pricePerRepo>0?(a(),l("section",IG,[t[43]||(t[43]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",OG,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),D(n("input",{type:"text",class:R(["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),[[i,{state:e.viewState,set:r=>{e.options.billing.name=r},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",MG,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),D(n("input",{type:"email",class:R(["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),[[i,{state:e.viewState,set:r=>{e.options.billing.email=r},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",VG,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),D(n("input",{type:"text",class:R(["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),[[i,{state:e.viewState,set:r=>{e.options.billing.address=r},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",qG,[D(n("input",{type:"text",class:R(["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),[[i,{state:e.viewState,set:r=>{e.options.billing.address2=r},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",LG,[n("div",FG,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),D(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.city=r},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",_G,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),D(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.country=r},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",$G,[t[41]||(t[41]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),D(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.zip=r},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",UG,[t[42]||(t[42]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),D(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.vat=r},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),n("div",BG,[e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,zG)):f("v-if",!0),e.message?(a(),l("div",{key:1,class:"alert alert-success",role:"alert",textContent:u(e.message)},null,8,HG)):f("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=re(r=>e.submitForm(r,()=>{e.submit(r)}),["prevent"]))},u(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,jG)])])),[[o,e.viewState]])])])}var GG={key:0,class:"dir-card","aria-label":"Repository files"},WG=["onClick"],KG={class:"dir-name"},YG=["href"],JG={class:"dir-name"},XG={class:"dir-meta"},QG={class:"file-card-head"},ZG={class:"file-card-path"},xG={class:"breadcrumb paths","aria-label":"Path"},eW={class:"breadcrumb-item breadcrumb-root"},tW=["href","title","textContent"],nW=["aria-current"],oW=["aria-label"],sW={class:"mobile-sub ms"},iW=["title"],rW={class:"ms-item"},aW={key:1,class:"ms-item"},lW={key:2,class:"ms-item"},dW=["aria-label","title"],uW={class:"ui-icon","aria-hidden":"true"},cW=["href"],pW={key:0,class:"file-card-meta"},fW=["title"],mW={class:"meta-extra"},hW={key:1,class:"file-card-meta"},gW=["title"],vW={class:"file-card-actions"},yW={key:0,class:"csv-toggle seg-filter",role:"radiogroup","aria-label":"CSV view"},bW=["aria-checked"],wW=["aria-checked"],kW={key:1,class:"symbols"},CW=["aria-expanded"],SW={key:0,class:"symbols-menu",role:"menu"},EW={class:"symbols-head"},NW=["onClick"],RW={class:"symbols-name"},TW={class:"symbols-line"},PW=["title"],DW={key:3,class:"tb-view",role:"group","aria-label":"View tools"},AW=["title"],IW=["aria-pressed"],OW=["title"],MW={key:4,class:"tb-file",role:"group","aria-label":"File actions"},VW=["target","title","href"],qW=["aria-label","title"],LW={class:"ui-icon","aria-hidden":"true"},FW=["href"],_W=["target","href","download"],$W=["aria-label"],UW={class:"ui-icon","aria-hidden":"true"},BW=["href"],zW={key:6,class:"tb-toc-m"},HW=["aria-expanded"],jW=["aria-label"],GW=["aria-current","onClick"],WW=["aria-label"],KW={class:"tb-more"},YW=["aria-expanded"],JW={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},XW={key:0,class:"tb-menu-note"},QW={key:1,class:"tb-menu-note tb-menu-meta"},ZW={key:2,class:"tb-menu-sep"},xW={key:4,class:"tb-menu-sep"},eK=["aria-checked"],tK={key:0,class:"tb-menu-check"},nK={class:"ui-icon","aria-hidden":"true"},oK=["href"],sK={key:9,class:"tb-menu-sep"},iK=["target","href"],rK=["target","href"],aK=["target","href","download"],lK=["target","href"],dK=["href"],uK=["target","href"],cK=["placeholder","aria-invalid"],pK=["aria-label"],fK={class:"csv-table"},mK=["aria-label"],hK={class:"csv-rownum"},gK=["aria-label"],vK={key:1,class:"file-card-body"},yK={key:2,class:"md-find-bar",role:"search"},bK=["value"],wK={class:"md-find-nav"},kK=["disabled"],CK=["disabled"],SK={class:"md-find-count","aria-live":"polite"},EK=["aria-pressed"],NK={key:3,class:"reading-layout"},RK=["innerHTML"],TK={key:0,class:"readme-toc","aria-label":"On this page"},PK={class:"toc-rail"},DK=["aria-label"],AK=["href","aria-current","onClick"],IK=["aria-label"],OK={class:"file-card-head"},MK={class:"file-card-path"},VK={class:"breadcrumb paths","aria-label":"Path"},qK={class:"breadcrumb-item breadcrumb-root"},LK=["href","title","textContent"],FK=["aria-current"],_K=["aria-label"],$K={class:"mobile-sub ms"},UK=["title"],BK={class:"ms-item"},zK={key:1,class:"ms-item"},HK={key:2,class:"ms-item"},jK=["aria-label","title"],GK={class:"ui-icon","aria-hidden":"true"},WK=["href"],KK={class:"file-card-meta"},YK=["title"],JK={class:"file-card-actions"},XK={key:0,class:"file-card-state",title:"Files over the size limit can't be previewed or downloaded from this link"},QK={key:1,class:"tb-file",role:"group","aria-label":"File actions"},ZK=["target","title","href"],xK=["target","href","download"],eY={class:"tb-more"},tY=["aria-expanded"],nY={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},oY={key:0,class:"tb-menu-note"},sY={key:1,class:"tb-menu-sep"},iY=["target","href"],rY=["target","href","download"],aY=["target","href"],lY={key:0,class:"media-stage"},dY=["src","alt"],uY={key:1,class:"media-stage"},cY=["src"],pY={key:2,class:"media-stage is-audio"},fY=["src"],mY={key:4,class:"notebook-body"},hY={key:5,class:"file-state"},gY={class:"file-state-msg"},vY={key:0,class:"file-state-actions"},yY=["target","href","download"],bY={key:6,class:"file-state",role:"alert"},wY={class:"file-state-title"},kY={key:0,class:"file-state-msg"},CY={key:1,class:"file-state-msg"},SY={key:2,class:"file-state-actions"},EY=["href"],NY={key:7,class:"file-state"},RY={key:4,class:"file-error container d-flex h-100"},TY={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},PY={class:"paper-error-msg"},DY={key:5,class:"file-error container d-flex h-100"},AY={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},IY={id:"viewer-error-title",class:"paper-empty-title"},OY={class:"paper-error-actions"},MY={key:0,href:"/",class:"btn btn-sm"},VY={key:1,href:"/faq",class:"btn btn-sm"},qY={key:2,class:"btn btn-outline-ink",href:"/dashboard"},LY={key:6,class:"viewer-loading","aria-busy":"true"},FY={class:"viewer-loading-status",role:"status","aria-live":"polite"},_Y={class:"viewer-loading-name sr-only"},$Y={key:0},UY={class:"viewer-loading-lines","aria-hidden":"true"},BY={key:7,class:"file-error container d-flex h-100"},zY={key:8,class:"file-error container d-flex h-100"};function jp(e,t){let s=Ye("html-doc"),i=Ye("pdfviewer"),o=Ye("notebook"),r=De("code-editor");return a(),l(T,null,[e.sidebarHidden&&e.type=="html"&&e.content!=null&&e.paths?.length===1&&/^readme/i.test(e.paths[0]||"")&&e.files?.length?(a(),l("section",GG,[t[46]||(t[46]=n("header",{class:"dir-card-head"},[n("span",{class:"dir-card-title"},"Files"),n("span",{class:"dir-card-sub"},"Snapshot of the repository at review time")],-1)),n("ul",{class:R(["dir-list",{"is-expanded":e.dirExpanded}])},[(a(!0),l(T,null,H(e.rootEntries(),d=>(a(),l("li",{key:d.name},[d.size==null?(a(),l("button",{key:0,type:"button",class:"dir-row",onClick:p=>e.revealFolder(d.name)},[t[43]||(t[43]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})],-1)),n("span",KG,u(d.name),1),t[44]||(t[44]=n("span",{class:"dir-meta"},"Folder",-1))],8,WG)):(a(),l("a",{key:1,class:R(["dir-row",{"is-current":d.name===e.paths[0]}]),href:e.safeUrl("/r/"+e.repoId+"/"+encodeURIComponent(d.name))},[t[45]||(t[45]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})],-1)),n("span",JG,u(d.name),1),n("span",XG,u(e.formatSize(d.size)),1)],10,YG))]))),128))],2),!e.dirExpanded&&e.files.length>8?(a(),l("button",{key:0,type:"button",class:"dir-more",onClick:t[0]||(t[0]=d=>e.dirExpanded=!0)},"Show all "+u(e.files.length)+" items",1)):f("v-if",!0)])):f("v-if",!0),(e.type=="text"||e.type=="code"||e.type=="html"||e.type=="html-doc"&&e.showSource)&&e.content!=null?(a(),l("section",{key:1,class:R(["file-card",{"is-code":e.type!="html","no-wrap":!e.wrapLines}])},[n("header",QG,[n("div",ZG,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[1]||(t[1]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",xG,[n("li",eW,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:u(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,tW)]),(a(!0),l(T,null,H(e.paths,(d,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(T,null,H(e.redactParts(d),(c,v)=>(a(),l(T,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,u(c.n),1)],8,oW)):(a(),l(T,{key:1},[m(u(c.t),1)],64))],64))),128))],8,nW))),256))]),n("span",sW,[e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[m(u(e.redactionCount()),1),t[48]||(t[48]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,iW)):f("v-if",!0),n("span",rW,u(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.fileSize(e.filePath)!=null?(a(),l("span",aW,u(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0),e.type!="html"&&typeof e.content=="string"?(a(),l("span",lW,u(e.fmt?.number(e.content.split(` -`).length))+" lines",1)):f("v-if",!0)]),D(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=d=>e.copyPath())},[(a(),l("svg",uW,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,cW)]))],8,dW),[[Q,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(a(),l("span",pW,[e.redactionCount()?(a(),l(T,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[m(u(e.redactionCount()),1),t[49]||(t[49]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,fW),t[50]||(t[50]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),m(u(e.languageName||"Text"),1),n("span",mW,[t[51]||(t[51]=n("span",{class:"sep"},"\xB7",-1)),m(u(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),t[52]||(t[52]=n("span",{class:"sep"},"\xB7",-1)),m(u(e.fmt?.number(e.content.split(` -`).length))+" lines",1)])):f("v-if",!0),e.type=="html"?(a(),l("span",hW,[e.redactionCount()?(a(),l(T,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[m(u(e.redactionCount()),1),t[53]||(t[53]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,gW),t[54]||(t[54]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),t[56]||(t[56]=m("Markdown",-1)),e.fileSize(e.filePath)!=null?(a(),l(T,{key:1},[t[55]||(t[55]=n("span",{class:"sep"},"\xB7",-1)),m(u(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)])):f("v-if",!0),e.preview&&e.previewPreserved()?(a(),l("button",{key:2,type:"button",class:"rp-preserved-tag",onClick:t[3]||(t[3]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",vW,[e.isCsv()?(a(),l("div",yW,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="table"}]),"aria-checked":e.csvView==="table",onClick:t[4]||(t[4]=d=>e.csvView="table")},"Table",10,bW),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="raw"}]),"aria-checked":e.csvView==="raw",onClick:t[5]||(t[5]=d=>e.csvView="raw"),title:"Show the file as text with line numbers"},"Text",10,wW)])):f("v-if",!0),e.type!="html"&&e.symbols().length>1?(a(),l("div",kW,[n("button",{type:"button",class:R(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[6]||(t[6]=d=>e.symbolsOpen=!e.symbolsOpen)},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,CW),e.symbolsOpen?(a(),l("div",SW,[n("div",EW,u(e.symbols().length)+" "+u(e.symbols().length===1?"symbol":"symbols"),1),(a(!0),l(T,null,H(e.symbols(),d=>(a(),l("button",{type:"button",class:"symbols-item",role:"menuitem",key:d.line+d.name,onClick:p=>e.goToSymbol(d.line)},[n("span",{class:R(["symbols-kind","is-"+d.kind])},u(d.kind==="class"?"C":d.kind==="function"?"\u0192":"v"),3),n("span",RW,u(d.name),1),n("span",TW,u(d.line),1)],8,NW))),128))])):f("v-if",!0)])):f("v-if",!0),e.type=="html"?(a(),l("button",{key:2,type:"button",class:R(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[7]||(t[7]=d=>e.toggleMdFind())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,PW)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?(a(),l("div",DW,[e.type!="html"?(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[8]||(t[8]=d=>e.gotoLine())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,AW)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:1,type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap lines",title:"Wrap lines (Alt+Z)",onClick:t[9]||(t[9]=d=>e.toggleWrap())},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,IW)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[10]||(t[10]=d=>e.findInFile())},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,OW)):f("v-if",!0)])):f("v-if",!0),!e.preview||e.url?(a(),l("div",MW,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,VW),typeof e.content=="string"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[11]||(t[11]=d=>e.copyContent())},[(a(),l("svg",LW,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,FW)]))],8,qW)):f("v-if",!0),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,_W)])):f("v-if",!0),typeof e.content=="string"?(a(),l("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied":"Copy file contents",onClick:t[12]||(t[12]=d=>e.copyContent())},[(a(),l("svg",UW,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,BW)]))],8,$W)):f("v-if",!0),e.type=="html"&&e.tocCount()>=3?(a(),l("div",zW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-toc-btn",{"is-on":e.tocOpen}]),"aria-label":"On this page",title:"On this page","aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[13]||(t[13]=re(d=>{e.tocOpen=!e.tocOpen,e.moreOpen=!1},["stop"]))},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)])],10,HW),e.tocOpen?(a(),l("div",{key:0,class:"tb-menu tb-toc-menu",role:"menu",onClick:t[15]||(t[15]=d=>e.tocOpen=!1)},[t[64]||(t[64]=n("div",{class:"tb-menu-label"},"On this page",-1)),n("button",{type:"button",role:"menuitem",class:R(["tb-menu-toc","lvl-2","toc-title",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[14]||(t[14]=d=>e.scrollToHeading(null))},[e.tocTitle()?(a(!0),l(T,{key:0},H(e.tocTitle().parts,(d,p)=>(a(),l(T,{key:p},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,u(d.n),1)],8,jW)):(a(),l(T,{key:1},[m(u(d.t),1)],64))],64))),128)):(a(),l(T,{key:1},[m("Introduction")],64))],2),(a(!0),l(T,null,H(e.readmeToc(),d=>(a(),l("button",{type:"button",role:"menuitem",key:"m-"+d.id,class:R(["tb-menu-toc","lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:p=>e.scrollToHeading(d.id)},[(a(!0),l(T,null,H(d.parts,(p,c)=>(a(),l(T,{key:c},[p.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+p.n},[n("i",null,u(p.n),1)],8,WW)):(a(),l(T,{key:1},[m(u(p.t),1)],64))],64))),128))],10,GW))),128))])):f("v-if",!0)])):f("v-if",!0),n("div",KW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[16]||(t[16]=re(d=>{e.tocOpen=!1,e.moreOpen=!e.moreOpen},["stop"]))},[(a(),l("svg",JW,[...t[65]||(t[65]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,YW),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[23]||(t[23]=d=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",XW,[t[66]||(t[66]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m("Snapshot \xB7 "+u(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),typeof e.content=="string"?(a(),l("div",QW,[m(u(e.type=="html"?"Markdown":e.languageName||"Text")+" \xB7 "+u(e.type=="html"&&e.fileSize(e.filePath)!=null?e.formatSize(e.fileSize(e.filePath)):e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1),e.type!="html"?(a(),l(T,{key:0},[m(" \xB7 "+u(e.fmt?.number(e.content.split(` -`).length))+" lines",1)],64)):f("v-if",!0)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",ZW)):f("v-if",!0),e.type=="html"?(a(),l("button",{key:3,type:"button",role:"menuitem",onClick:t[17]||(t[17]=d=>e.toggleMdFind())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),m("Find in file",-1)])])):f("v-if",!0),e.type=="html"?(a(),l("div",xW)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:5,type:"button",role:"menuitem",onClick:t[18]||(t[18]=d=>e.findInFile())},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),m("Find in file",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:6,type:"button",role:"menuitem",onClick:t[19]||(t[19]=d=>e.gotoLine())},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),m("Go to line",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[20]||(t[20]=d=>e.toggleWrap())},[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[71]||(t[71]=m("Wrap lines",-1)),e.wrapLines?(a(),l("span",tK,"\u2713")):f("v-if",!0)],8,eK)):f("v-if",!0),e.isCsv()?(a(),l("button",{key:8,type:"button",role:"menuitem",class:"tb-csv-view",onClick:t[21]||(t[21]=d=>{e.csvView=e.csvView==="table"?"raw":"table",e.moreOpen=!1})},[(a(),l("svg",nK,[n("use",{href:e.csvView==="table"?"#ui-icon-code":"#ui-icon-list"},null,8,oK)])),m(u(e.csvView==="table"?"Show as text":"Show as table"),1)])):f("v-if",!0),e.type!="html"?(a(),l("div",sK)):f("v-if",!0),e.type=="html"&&(!e.preview||e.url)?(a(),l("a",{key:10,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m("View raw",-1)])],8,iK)):f("v-if",!0),e.type!="html"&&(!e.preview||e.url)?(a(),l("a",{key:11,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),m("View raw",-1)])],8,rK)):f("v-if",!0),!e.preview||e.url?(a(),l("a",{key:12,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),m("Download file",-1)])],8,aK)):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:13,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),m("Open website",-1)])],8,lK)):f("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:14,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m("Edit anonymization",-1)])],8,dK)):f("v-if",!0),e.options?.download?(a(),l("a",{key:15,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),m("Download ZIP",-1)])],8,uK)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[22]||(t[22]=d=>e.copyPath())},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),m("Copy file path",-1)])]),t[79]||(t[79]=n("div",{class:"tb-menu-sep"},null,-1)),t[80]||(t[80]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),m("FAQ")],-1)),t[81]||(t[81]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),m("Report a bug")],-1))])):f("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(a(),l("form",{key:3,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[26]||(t[26]=re(d=>e.submitGoto(),["prevent"]))},[t[82]||(t[82]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),D(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(` -`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=d=>e.gotoValue=d),onKeydown:t[25]||(t[25]=_t(re(d=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,cK),[[ot,e.gotoValue]]),n("span",{class:R(["goto-hint",{"is-error":e.gotoError}])},u(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView==="table"?(a(),l("div",{key:0,class:"csv-table-wrap",tabindex:"0",role:"region","aria-label":"Table view of "+(e.paths?.[e.paths.length-1]||"file")},[n("table",fK,[n("thead",null,[n("tr",null,[t[83]||(t[83]=n("th",{class:"csv-rownum",scope:"col"},[n("span",{class:"sr-only"},"Row")],-1)),(a(!0),l(T,null,H(e.csvRows()[0]||[],(d,p)=>(a(),l("th",{scope:"col",key:p,class:R({"is-num":e.csvNumCol(p)})},[(a(!0),l(T,null,H(e.redactParts(d),(c,v)=>(a(),l(T,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,u(c.n),1)],8,mK)):(a(),l(T,{key:1},[m(u(c.t),1)],64))],64))),128))],2))),128))])]),n("tbody",null,[(a(!0),l(T,null,H(e.csvRows().slice(1),(d,p)=>(a(),l("tr",{key:p},[n("td",hK,u(p+1),1),(a(!0),l(T,null,H(d,(c,v)=>(a(),l("td",{key:v,class:R({"is-num":e.csvNumCol(v)})},[(a(!0),l(T,null,H(e.redactParts(c),(h,y)=>(a(),l(T,{key:y},[h.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+h.n},[n("i",null,u(h.n),1)],8,gK)):(a(),l(T,{key:1},[m(u(h.t),1)],64))],64))),128))],2))),128))]))),128))])])],8,pK)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?D((a(),l("div",vK,null,512)),[[r,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",yK,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=d=>{e.mdFindQuery=d.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=_t(re(d=>d.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=_t(re(d=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,bK),n("span",wK,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=d=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,kK),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=d=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,CK)]),n("span",SK,u(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:R(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=d=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,EK),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=d=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",NK,[n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,RK),e.tocCount()>=3?(a(),l("aside",TK,[t[86]||(t[86]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",PK,[n("a",{href:"#",class:R(["lvl-2 toc-top",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[34]||(t[34]=re(d=>e.scrollToHeading(null),["prevent"]))},[e.tocTitle()?(a(!0),l(T,{key:0},H(e.tocTitle().parts,(d,p)=>(a(),l(T,{key:p},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,u(d.n),1)],8,DK)):(a(),l(T,{key:1},[m(u(d.t),1)],64))],64))),128)):(a(),l(T,{key:1},[m("Introduction")],64))],2),(a(!0),l(T,null,H(e.readmeToc(),(d,p)=>(a(),l("a",{key:d.id,href:"#"+d.id,class:R(["lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:re(c=>e.scrollToHeading(d.id),["prevent"])},[(a(!0),l(T,null,H(d.parts,(c,v)=>(a(),l(T,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,u(c.n),1)],8,IK)):(a(),l(T,{key:1},[m(u(c.t),1)],64))],64))),128))],10,AK))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Tt(s,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:R(["file-card file-card-media","view-"+e.type])},[n("header",OK,[n("div",MK,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",VK,[n("li",qK,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:u(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,LK)]),(a(!0),l(T,null,H(e.paths,(d,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(T,null,H(e.redactParts(d),(c,v)=>(a(),l(T,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,u(c.n),1)],8,_K)):(a(),l(T,{key:1},[m(u(c.t),1)],64))],64))),128))],8,FK))),256))]),n("span",$K,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[m(u(e.redactionCount()),1),t[88]||(t[88]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,UK)):f("v-if",!0),n("span",BK,u(e.fileKind()),1),e.imageSize?(a(),l("span",zK,u(e.imageSize),1)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l("span",HK,u(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0)]),D(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[36]||(t[36]=d=>e.copyPath())},[(a(),l("svg",GK,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,WK)]))],8,jK),[[Q,e.filePath]])]),n("span",KK,[e.type=="IPython"&&e.redactionCount()?(a(),l(T,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[m(u(e.redactionCount()),1),t[89]||(t[89]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,YK),t[90]||(t[90]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),m(u(e.fileKind()),1),e.imageSize?(a(),l(T,{key:1},[t[91]||(t[91]=n("span",{class:"sep"},"\xB7",-1)),m(u(e.imageSize),1)],64)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l(T,{key:2},[t[92]||(t[92]=n("span",{class:"sep"},"\xB7",-1)),m(u(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)]),e.preview&&e.previewPreserved()?(a(),l("button",{key:0,type:"button",class:"rp-preserved-tag",onClick:t[37]||(t[37]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",JK,[e.type=="error"&&e.content==="file_too_big"?(a(),l("span",XK,[...t[93]||(t[93]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),m("Over the size limit",-1)])])):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("div",QK,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="IPython"?"Open the notebook JSON":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,ZK),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[94]||(t[94]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,xK)])):f("v-if",!0),n("div",eY,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[38]||(t[38]=re(d=>e.moreOpen=!e.moreOpen,["stop"]))},[(a(),l("svg",nY,[...t[95]||(t[95]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,tY),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[40]||(t[40]=d=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",oY,[t[96]||(t[96]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m("Snapshot \xB7 "+u(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",sY)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:2,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[t[97]||(t[97]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),m(u(e.type=="IPython"?"View notebook JSON":"View raw"),1)],8,iY)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:3,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[98]||(t[98]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),m("Download file",-1)])],8,rY)):f("v-if",!0),e.options?.download?(a(),l("a",{key:4,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),m("Download ZIP",-1)])],8,aY)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[39]||(t[39]=d=>e.copyPath())},[...t[100]||(t[100]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),m("Copy file path",-1)])]),t[101]||(t[101]=n("div",{class:"tb-menu-sep"},null,-1)),t[102]||(t[102]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),m("FAQ")],-1)),t[103]||(t[103]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),m("Report a bug")],-1))])):f("v-if",!0)])])]),e.type=="image"?(a(),l("div",lY,[n("img",{class:"image-content",src:e.safeUrl(e.url),alt:e.paths[e.paths.length-1],onLoad:t[41]||(t[41]=d=>e.onImageLoad(d))},null,40,dY)])):f("v-if",!0),e.type=="media"?(a(),l("div",uY,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.url)},null,8,cY)])):f("v-if",!0),e.type=="audio"?(a(),l("div",pY,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.url)},null,8,fY)])):f("v-if",!0),e.type=="pdf"?(a(),Tt(i,{key:3,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="IPython"?(a(),l("div",mY,[Me(o,{class:"markdown-body",file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="binary"?(a(),l("div",hY,[t[105]||(t[105]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),t[106]||(t[106]=n("h2",{class:"file-state-title"},"No preview for this file",-1)),n("p",gY,u(e.preview?"Reviewers can open this file; it is not previewed here.":"This is a binary file. Download it to open it on your computer."),1),e.preview?f("v-if",!0):(a(),l("div",vY,[n("a",{target:e.preview?"_blank":"_self",class:"btn btn-primary",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[104]||(t[104]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),m("Download file",-1)])],8,yY)]))])):f("v-if",!0),e.type=="error"?(a(),l("div",bY,[t[108]||(t[108]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("h2",wY,u(e.content==="file_too_big"?"This file is too large to preview":"This file can't be shown"),1),e.content==="file_too_big"?(a(),l("p",kY,u(e.preview?"Reviewers can open this file; it is not previewed here. Files over 1 MB are only shown on the reviewer page.":"It is over the size limit for anonymized files, so it can't be previewed or downloaded from this link."),1)):(a(),l("p",CY,u(e.fmt.translate("ERRORS."+e.content)),1)),e.preview?f("v-if",!0):(a(),l("div",SY,[n("a",{class:"btn btn-primary",href:e.safeUrl("/r/"+e.repoId+"/")},"Back to the repository",8,EY),t[107]||(t[107]=n("a",{class:"btn btn-outline-ink",href:"/faq#formats"},"Supported files",-1))]))])):f("v-if",!0),e.content==null&&e.type!="error"?(a(),l("div",NY,[...t[109]||(t[109]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h2",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])])):f("v-if",!0)],2)):f("v-if",!0),e.type=="rate_limited"?(a(),l("div",RY,[n("div",TY,[t[112]||(t[112]=ke('',1)),n("p",PY,[t[110]||(t[110]=m("This repository will be available in ",-1)),n("strong",null,u(e.rateLimitCountdown),1),t[111]||(t[111]=m(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"&&!e.fileFrame()?(a(),l("div",DY,[n("section",AY,[n("h1",IY,u(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),n("p",null,u(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(a(),l(T,{key:0},[n("p",null,u(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),n("p",null,u(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),n("div",OY,[e.isSourceAccessError()?f("v-if",!0):(a(),l("a",MY,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(a(),l("a",VY,"Read the FAQ")),n("button",{type:"button",class:"btn btn-primary",onClick:t[42]||(t[42]=d=>e.retryContent())},u(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(a(),l("a",qY,u(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(a(),l("section",LY,[n("div",FY,[n("strong",null,u(e.fmt.translate(e.fileReceivedBytes?"VIEWER_LOADING.receiving":"VIEWER_LOADING.loading")),1),n("span",_Y,u(e.filePath),1),e.fileLoadingSlow?(a(),l("p",$Y,u(e.fmt.translate("VIEWER_LOADING.slow")),1)):f("v-if",!0)]),n("div",UY,[(a(),l(T,null,H(10,d=>n("span",{key:d})),64))])])):f("v-if",!0),e.type=="empty"?(a(),l("div",BY,[...t[113]||(t[113]=[n("h1",{class:"paper-empty-title m-auto"},[m("Empty "),n("em",null,"repository"),m(".")],-1)])])):f("v-if",!0),e.content==null&&!["empty","loading","error","rate_limited"].includes(e.type)&&!e.fileFrame()?(a(),l("div",zY,[...t[114]||(t[114]=[n("h1",{class:"paper-empty-title m-auto"},[m("Empty "),n("em",null,"file"),m(".")],-1)])])):f("v-if",!0)],64)}var HY={class:"container page dashboard-page paper-page"},jY={class:"row"},GY={class:"w-100"},WY={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},KY={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},YY={class:"flex-grow-1"},JY={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},XY={class:"d-flex flex-wrap",style:{gap:"6px"}},QY={class:"dropdown"},ZY={class:"dropdown-menu","aria-labelledby":"dropdownSort"},xY={class:"form-check dropdown-item"},eJ={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},tJ={class:"form-check dropdown-item"},nJ={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},oJ={class:"form-check dropdown-item"},sJ={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},iJ={class:"form-check dropdown-item"},rJ={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},aJ={class:"form-check dropdown-item"},lJ={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},dJ={class:"dropdown"},uJ={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},cJ={class:"form-check dropdown-item"},pJ={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},fJ={class:"form-check dropdown-item"},mJ={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},hJ={class:"form-check dropdown-item"},gJ={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},vJ={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},yJ={class:"filter-chip"},bJ=["onClick"],wJ={class:"repo-list w-100"},kJ={class:"repo-list-item-content"},CJ={class:"repo-list-item-main"},SJ={class:"repo-list-item-header"},EJ=["textContent","href"],NJ=["textContent"],RJ=["textContent"],TJ={class:"repo-source"},PJ=["href"],DJ={class:"repo-date"},AJ={class:"repo-meta"},IJ={key:0,title:"Conference"},OJ=["title"],MJ=["title"],VJ=["title"],qJ={key:1},LJ={class:"repo-list-item-actions"},FJ={class:"dropdown"},_J={class:"dropdown-menu dropdown-menu-right"},$J=["href"],UJ=["onClick"],BJ=["onClick"],zJ=["onClick"],HJ=["href"],jJ={key:0,class:"repo-list-empty"};function Gp(e,t){let s=De("field"),i=De("form");return a(),l("div",HY,[n("div",jY,[n("div",GY,[t[12]||(t[12]=ke('Temporarily pausedGitHub API rate limit reachedMy work \xA0/\xA0 Pull requests',2)),f(" Search + filters row "),D((a(),l("form",WY,[n("div",KY,[n("div",YY,[D(n("input",JY,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",XY,[n("div",QY,[t[6]||(t[6]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),n("div",ZY,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",xY,[D(n("input",eJ,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",tJ,[D(n("input",nJ,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",oJ,[D(n("input",sJ,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",iJ,[D(n("input",rJ,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",aJ,[D(n("input",lJ,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",dJ,[t[11]||(t[11]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),n("div",uJ,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",cJ,[D(n("input",pJ,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.ready=o},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",fJ,[D(n("input",mJ,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.expired=o},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",hJ,[D(n("input",gJ,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.removed=o},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),f(" Active filter chips "),D(n("div",vJ,[(a(!0),l(T,null,H(e.filters?.status,(o,r,d)=>D((a(),l("span",yJ,[m(u(e.fmt?.title(r))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:p=>{e.filters.status[r]=!0}}," \xD7 ",8,bJ)],512)),[[Q,!o]])),256))],512),[[Q,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),n("ul",wJ,[(a(!0),l(T,null,H(e.filteredPullRequests,(o,r)=>(a(),l("li",{class:R(["repo-list-item",{"repo-inactive":o?.status=="expired"||o?.status=="removed"||o?.status=="error"}])},[n("div",kJ,[n("div",CJ,[n("div",SJ,[n("a",{class:"repo-name",textContent:u(o?.pullRequestId),href:e.safeUrl("/pr/"+o?.pullRequestId)},null,8,EJ),n("span",{class:R(["status-badge",{"status-removed":o?.status=="removed"||o?.status=="expired"||o?.status=="removing"||o?.status=="expiring","status-preparing":o?.status=="preparing"||o?.status=="download","status-ready":o?.status=="ready","status-error":o?.status=="error"}])},[n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,NJ),o?.status=="error"?(a(),l("span",{key:0,textContent:u(": "+o?.statusMessage)},null,8,RJ)):f("v-if",!0)],2)]),n("div",TJ,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+o?.source?.repositoryFullName+"/pull/"+o?.source?.pullRequestId)},u(o?.source?.repositoryFullName)+"#"+u(o?.source?.pullRequestId),9,PJ)]),n("span",{class:R(["status-badge",{"status-ready":o?.merged,"status-removed":o?.state=="open","status-error":o?.state=="closed"&&!o?.merged}]),style:{"font-size":"10px"}},u(e.fmt?.title(o?.merged?"merged":o?.state)),3),n("span",DJ,"anonymized "+u(e.fmt?.humanTime(o?.anonymizeDate)),1)])]),n("div",AJ,[o?.conference?(a(),l("span",IJ,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),m(" "+u(o?.conference),1)])):f("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+o?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),m(" "+u(e.fmt?.number(o?.options?.terms?.length)),1)],8,OJ),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(o?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),m(" "+u(e.fmt?.number(o?.pageView)),1)],8,MJ),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(o?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),m(" "+u(e.fmt?.humanTime(o?.lastView)),1)],8,VJ),o?.options?.expirationMode!="never"&&o?.status=="ready"?(a(),l("span",qJ,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),m(" Expire: "+u(e.fmt?.humanTime(o?.options?.expirationDate)),1)])):f("v-if",!0)])]),n("div",LJ,[n("div",FJ,[t[24]||(t[24]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),n("div",_J,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+o?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),m(" Edit ",-1)])],8,$J),D(n("a",{class:"dropdown-item",href:"#",onClick:re(d=>e.updatePullRequest(o),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),m(" Force update ",-1)])],8,UJ),[[Q,o?.status=="ready"||o?.status=="error"]]),D(n("a",{class:"dropdown-item",href:"#",onClick:re(d=>e.updatePullRequest(o),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),m(" Enable ",-1)])],8,BJ),[[Q,o?.status=="removed"]]),D(n("a",{class:"dropdown-item",href:"#",onClick:re(d=>e.removePullRequest(o),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),m(" Remove ",-1)])],8,zJ),[[Q,o?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+o?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),m(" View PR ",-1)])],8,HJ)])])])],2))),256)),e.filteredPullRequests?.length==0?(a(),l("li",jJ,[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No pull requests to display.",-1)])])):f("v-if",!0)])])])}var GJ={class:"container paper-page user-settings"},WJ={class:"settings-nav","aria-label":"Settings"},KJ=["aria-current","onClick"],YJ={class:"settings-row"},JJ=["rows"],XJ={class:"settings-syntax"},QJ={class:"invalid-feedback"},ZJ={class:"settings-row"},xJ={class:"settings-checks"},eX={class:"settings-check"},tX={class:"form-check-input",type:"checkbox",id:"link",name:"link"},nX={class:"settings-check"},oX={class:"form-check-input",type:"checkbox",id:"image",name:"image"},sX={class:"settings-check"},iX={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},rX={class:"settings-check"},aX={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},lX={class:"settings-check"},dX={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},uX={class:"settings-check"},cX={class:"form-check-input",type:"checkbox",id:"page",name:"page"},pX={class:"settings-row"},fX={class:"settings-check"},mX={class:"form-check-input",type:"checkbox",id:"update",name:"update"},hX={class:"settings-row"},gX={class:"form-control",id:"expiration",name:"expiration"},vX={class:"settings-help"},yX={class:"settings-save"},bX={class:"settings-save-status draft-status",role:"status"},wX={key:0},kX={key:1},CX={key:2},SX=["disabled"],EX={key:1,class:"settings-save-error",role:"alert"},NX=["aria-busy"],RX={key:0,role:"status"},TX={key:1,class:"settings-notice",role:"alert"},PX=["disabled"],DX={key:2,class:"settings-notice",role:"status"},AX={key:3,class:"settings-notice",role:"status"},IX=["disabled"],OX={class:"billing-summary"},MX={class:"billing-summary-head"},VX={class:"billing-plan-name"},qX={key:0,class:"billing-plan-meta"},LX={key:1,class:"billing-plan-meta"},FX={key:0,class:"billing-summary-actions"},_X=["disabled"],$X={id:"settings-quota"},UX={key:1,role:"status"},BX={key:0,class:"settings-notice"},zX={key:1,class:"settings-notice"},HX={key:2,class:"settings-notice"},jX={key:4,class:"billing-section","aria-labelledby":"settings-plan-comparison"},GX={key:0,class:"billing-offers"},WX={key:0,class:"billing-offer is-recommended"},KX={class:"billing-offer-price"},YX={class:"billing-offer-list"},JX=["disabled"],XX={key:1,class:"billing-offer"},QX={class:"billing-offer-head"},ZX={class:"billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},xX=["aria-checked","onClick"],eQ={key:0,class:"billing-toggle-save"},tQ={class:"billing-offer-price"},nQ={class:"billing-offer-list"},oQ=["disabled"],sQ={key:1,class:"billing-addons"},iQ={class:"billing-addon-rows"},rQ={class:"billing-addon-price"},aQ=["onClick","disabled"],lQ={key:2,class:"billing-buy",id:"settings-addons-title",tabindex:"-1"},dQ={class:"billing-buy-info"},uQ={class:"billing-offer-price"},cQ={class:"billing-offer-list"},pQ={class:"billing-buy-form"},fQ=["value"],mQ=["disabled"],hQ={key:1,class:"billing-buy-desc"},gQ={key:2,class:"billing-footnote"},vQ={class:"billing-compare"},yQ={class:"billing-compare-card"},bQ={class:"settings-comparison"},wQ={key:0,scope:"col",class:"is-recommended"},kQ={key:1,scope:"col"},CQ={key:0,class:"is-recommended"},SQ={key:1},EQ={key:0,class:"is-recommended"},NQ={key:1},RQ={key:0,class:"is-recommended"},TQ={key:1},PQ={key:0,class:"is-recommended"},DQ={key:1},AQ={key:0,class:"is-recommended"},IQ={key:1},OQ={key:0,class:"is-recommended"},MQ={key:1},VQ={key:3,class:"billing-footnote"},qQ={key:5,class:"billing-section"},LQ={class:"billing-section-head"},FQ=["disabled"],_Q={key:0,class:"billing-empty"},$Q={key:1,class:"billing-history-head","aria-hidden":"true"},UQ={key:2,class:"billing-history"},BQ={class:"billing-history-main"},zQ=["href"],HQ=["href"],jQ={class:"billing-history-term"},GQ={class:"billing-history-paid"},WQ={class:"billing-history-status"},KQ={class:"billing-manage"},YQ={key:0},JQ={key:1},XQ=["disabled"],QQ={class:"billing-conference"},ZQ={id:"settings-account",class:"settings-account-panel"},xQ={class:"paper-account-card"},eZ=["src"],tZ={class:"paper-account-identity"},nZ={class:"paper-account-name"},oZ=["disabled"],sZ={key:0,role:"status"},iZ={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},rZ=["disabled"],aZ={key:3,role:"status"},lZ={class:"paper-danger-zone"},dZ={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},uZ=["textContent"],cZ=["disabled"],pZ={key:1,class:"settings-delete-confirm"},fZ={for:"delete-username"},mZ={class:"settings-actions"},hZ=["disabled"],gZ=["disabled"];function Wp(e,t){let s=Ye("quota-usage"),i=De("field"),o=De("form");return a(),l("div",GJ,[t[107]||(t[107]=n("header",{class:"settings-title page-head page-head-main"},[n("h1",null,"Settings"),n("p",{class:"paper-page-lede"},"Defaults for new anonymizations, hosting and your account.")],-1)),n("nav",WJ,[(a(),l(T,null,H([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],r=>n("button",{type:"button","aria-current":e.settingsTab===r.id?"page":null,onClick:d=>e.settingsTab=r.id},u(r.label),9,KJ)),64))]),D(n("div",null,[t[41]||(t[41]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),D((a(),l("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onInput:t[1]||(t[1]=r=>e.unsavedChanges=!0),onSubmit:t[2]||(t[2]=re(r=>e.submitForm(r,()=>{e.saveDefault(r)}),["prevent"]))},[n("section",YJ,[t[26]||(t[26]=n("div",null,[n("label",{class:"settings-label",for:"terms"},"Terms to redact"),n("p",{class:"settings-help"},"One term per line.")],-1)),n("div",null,[D(n("textarea",{class:"form-control",id:"terms",name:"terms",rows:Math.min(14,Math.max(3,String(e.terms||"").split(` +10 log("epoch %d: %.3f", epoch, loss)Anonymized pull requests
Track PR mirrors you\u2019ve created and their reviewer traffic.
The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.
Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.
You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.
Create an anonymous mirror in a couple of minutes. Reviewers just open the link.
Nothing renews \xB7 Tax shown at checkout \xB7 Expecting more submissions? Email tdurieux@anonymous.4open.science
Create the conference, then pay from its page. Authors can submit once the payment is confirmed.
',2))],64)):e.plans.length?(a(),l("div",EG,[(a(!0),l(T,null,j(e.plans,i=>(a(),l("label",{class:R(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}]),key:i.id},[D(n("input",{type:"radio",name:"planPicker",value:i?.id},null,8,NG),[[r,{state:e.viewState,set:d=>{e.options.plan.planID=d},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:u(i?.name)},null,8,RG),n("div",TG,u(i.pricePerRepo>0?e.fmt?.number(i.pricePerRepo,2)+" \u20AC per repository":"Free"),1),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,PG)],2))),128))])):e.plansLoaded?(a(),l("p",DG,"New conferences are unavailable right now. Please try again later.")):f("v-if",!0)]),e.plan?.pricePerRepo>0?(a(),l("section",AG,[t[43]||(t[43]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",IG,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),D(n("input",{type:"text",class:R(["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:{}}]])]),n("div",OG,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),D(n("input",{type:"email",class:R(["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:{}}]])]),n("div",MG,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),D(n("input",{type:"text",class:R(["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:{}}]])]),n("div",VG,[D(n("input",{type:"text",class:R(["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:{}}]])]),n("div",qG,[n("div",LG,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),D(n("input",{type:"text",class:R(["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:{}}]])]),n("div",FG,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),D(n("input",{type:"text",class:R(["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:{}}]])]),n("div",_G,[t[41]||(t[41]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),D(n("input",{type:"text",class:R(["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:{}}]])])]),n("div",$G,[t[42]||(t[42]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),D(n("input",{type:"text",class:R(["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:{}}]])])])):f("v-if",!0),n("div",UG,[e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,BG)):f("v-if",!0),e.message?(a(),l("div",{key:1,class:"alert alert-success",role:"alert",textContent:u(e.message)},null,8,zG)):f("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=re(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},u(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,HG)])])),[[s,e.viewState]])])])}var jG={key:0,class:"dir-card","aria-label":"Repository files"},GG=["onClick"],WG={class:"dir-name"},KG=["href"],YG={class:"dir-name"},JG={class:"dir-meta"},XG={class:"file-card-head"},QG={class:"file-card-path"},ZG={class:"breadcrumb paths","aria-label":"Path"},xG={class:"breadcrumb-item breadcrumb-root"},eW=["href","title","textContent"],tW=["aria-current"],nW=["aria-label"],oW={class:"mobile-sub ms"},sW=["title"],iW={class:"ms-item"},rW={key:1,class:"ms-item"},aW={key:2,class:"ms-item"},lW=["aria-label","title"],dW={class:"ui-icon","aria-hidden":"true"},uW=["href"],cW={key:0,class:"file-card-meta"},pW=["title"],fW={class:"meta-extra"},mW={key:1,class:"file-card-meta"},hW=["title"],gW={class:"file-card-actions"},vW={key:0,class:"csv-toggle seg-filter",role:"radiogroup","aria-label":"CSV view"},yW=["aria-checked"],bW=["aria-checked"],wW={key:1,class:"symbols"},kW=["aria-expanded"],CW={key:0,class:"symbols-menu",role:"menu"},SW={class:"symbols-head"},EW=["onClick"],NW={class:"symbols-name"},RW={class:"symbols-line"},TW=["title"],PW={key:3,class:"tb-view",role:"group","aria-label":"View tools"},DW=["title"],AW=["aria-pressed"],IW=["title"],OW={key:4,class:"tb-file",role:"group","aria-label":"File actions"},MW=["target","title","href"],VW=["aria-label","title"],qW={class:"ui-icon","aria-hidden":"true"},LW=["href"],FW=["target","href","download"],_W=["aria-label"],$W={class:"ui-icon","aria-hidden":"true"},UW=["href"],BW={key:6,class:"tb-toc-m"},zW=["aria-expanded"],HW=["aria-label"],jW=["aria-current","onClick"],GW=["aria-label"],WW={class:"tb-more"},KW=["aria-expanded"],YW={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},JW={key:0,class:"tb-menu-note"},XW={key:1,class:"tb-menu-note tb-menu-meta"},QW={key:2,class:"tb-menu-sep"},ZW={key:4,class:"tb-menu-sep"},xW=["aria-checked"],eK={key:0,class:"tb-menu-check"},tK={class:"ui-icon","aria-hidden":"true"},nK=["href"],oK={key:9,class:"tb-menu-sep"},sK=["target","href"],iK=["target","href"],rK=["target","href","download"],aK=["target","href"],lK=["href"],dK=["target","href"],uK=["placeholder","aria-invalid"],cK=["aria-label"],pK={class:"csv-table"},fK=["aria-label"],mK={class:"csv-rownum"},hK=["aria-label"],gK={key:1,class:"file-card-body"},vK={key:2,class:"md-find-bar",role:"search"},yK=["value"],bK={class:"md-find-nav"},wK=["disabled"],kK=["disabled"],CK={class:"md-find-count","aria-live":"polite"},SK=["aria-pressed"],EK={key:3,class:"reading-layout"},NK=["innerHTML"],RK={key:0,class:"readme-toc","aria-label":"On this page"},TK={class:"toc-rail"},PK=["aria-label"],DK=["href","aria-current","onClick"],AK=["aria-label"],IK={class:"file-card-head"},OK={class:"file-card-path"},MK={class:"breadcrumb paths","aria-label":"Path"},VK={class:"breadcrumb-item breadcrumb-root"},qK=["href","title","textContent"],LK=["aria-current"],FK=["aria-label"],_K={class:"mobile-sub ms"},$K=["title"],UK={class:"ms-item"},BK={key:1,class:"ms-item"},zK={key:2,class:"ms-item"},HK=["aria-label","title"],jK={class:"ui-icon","aria-hidden":"true"},GK=["href"],WK={class:"file-card-meta"},KK=["title"],YK={class:"file-card-actions"},JK={key:0,class:"file-card-state",title:"Files over the size limit can't be previewed or downloaded from this link"},XK={key:1,class:"tb-file",role:"group","aria-label":"File actions"},QK=["target","title","href"],ZK=["target","href","download"],xK={class:"tb-more"},eY=["aria-expanded"],tY={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},nY={key:0,class:"tb-menu-note"},oY={key:1,class:"tb-menu-sep"},sY=["target","href"],iY=["target","href","download"],rY=["target","href"],aY={key:0,class:"media-stage"},lY=["src","alt"],dY={key:1,class:"media-stage"},uY=["src"],cY={key:2,class:"media-stage is-audio"},pY=["src"],fY={key:4,class:"notebook-body"},mY={key:5,class:"file-state"},hY={class:"file-state-msg"},gY={key:0,class:"file-state-actions"},vY=["target","href","download"],yY={key:6,class:"file-state",role:"alert"},bY={class:"file-state-title"},wY={key:0,class:"file-state-msg"},kY={key:1,class:"file-state-msg"},CY={key:2,class:"file-state-actions"},SY=["href"],EY={key:7,class:"file-state"},NY={key:4,class:"file-error container d-flex h-100"},RY={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},TY={class:"paper-error-msg"},PY={key:5,class:"file-error container d-flex h-100"},DY={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},AY={id:"viewer-error-title",class:"paper-empty-title"},IY={class:"paper-error-actions"},OY={key:0,href:"/",class:"btn btn-sm"},MY={key:1,href:"/faq",class:"btn btn-sm"},VY={key:2,class:"btn btn-outline-ink",href:"/dashboard"},qY={key:6,class:"viewer-loading","aria-busy":"true"},LY={class:"viewer-loading-status",role:"status","aria-live":"polite"},FY={class:"viewer-loading-name sr-only"},_Y={key:0},$Y={class:"viewer-loading-lines","aria-hidden":"true"},UY={key:7,class:"file-error container d-flex h-100"},BY={key:8,class:"file-error container d-flex h-100"};function jp(e,t){let o=Ke("html-doc"),r=Ke("pdfviewer"),s=Ke("notebook"),i=De("code-editor");return a(),l(T,null,[e.sidebarHidden&&e.type=="html"&&e.content!=null&&e.paths?.length===1&&/^readme/i.test(e.paths[0]||"")&&e.files?.length?(a(),l("section",jG,[t[46]||(t[46]=n("header",{class:"dir-card-head"},[n("span",{class:"dir-card-title"},"Files"),n("span",{class:"dir-card-sub"},"Snapshot of the repository at review time")],-1)),n("ul",{class:R(["dir-list",{"is-expanded":e.dirExpanded}])},[(a(!0),l(T,null,j(e.rootEntries(),d=>(a(),l("li",{key:d.name},[d.size==null?(a(),l("button",{key:0,type:"button",class:"dir-row",onClick:p=>e.revealFolder(d.name)},[t[43]||(t[43]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})],-1)),n("span",WG,u(d.name),1),t[44]||(t[44]=n("span",{class:"dir-meta"},"Folder",-1))],8,GG)):(a(),l("a",{key:1,class:R(["dir-row",{"is-current":d.name===e.paths[0]}]),href:e.safeUrl("/r/"+e.repoId+"/"+encodeURIComponent(d.name))},[t[45]||(t[45]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})],-1)),n("span",YG,u(d.name),1),n("span",JG,u(e.formatSize(d.size)),1)],10,KG))]))),128))],2),!e.dirExpanded&&e.files.length>8?(a(),l("button",{key:0,type:"button",class:"dir-more",onClick:t[0]||(t[0]=d=>e.dirExpanded=!0)},"Show all "+u(e.files.length)+" items",1)):f("v-if",!0)])):f("v-if",!0),(e.type=="text"||e.type=="code"||e.type=="html"||e.type=="html-doc"&&e.showSource)&&e.content!=null?(a(),l("section",{key:1,class:R(["file-card",{"is-code":e.type!="html","no-wrap":!e.wrapLines}])},[n("header",XG,[n("div",QG,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[1]||(t[1]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",ZG,[n("li",xG,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:u(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,eW)]),(a(!0),l(T,null,j(e.paths,(d,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(T,null,j(e.redactParts(d),(c,v)=>(a(),l(T,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,u(c.n),1)],8,nW)):(a(),l(T,{key:1},[h(u(c.t),1)],64))],64))),128))],8,tW))),256))]),n("span",oW,[e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(u(e.redactionCount()),1),t[48]||(t[48]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,sW)):f("v-if",!0),n("span",iW,u(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.fileSize(e.filePath)!=null?(a(),l("span",rW,u(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0),e.type!="html"&&typeof e.content=="string"?(a(),l("span",aW,u(e.fmt?.number(e.content.split(` +`).length))+" lines",1)):f("v-if",!0)]),D(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=d=>e.copyPath())},[(a(),l("svg",dW,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,uW)]))],8,lW),[[Q,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(a(),l("span",cW,[e.redactionCount()?(a(),l(T,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(u(e.redactionCount()),1),t[49]||(t[49]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,pW),t[50]||(t[50]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(u(e.languageName||"Text"),1),n("span",fW,[t[51]||(t[51]=n("span",{class:"sep"},"\xB7",-1)),h(u(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),t[52]||(t[52]=n("span",{class:"sep"},"\xB7",-1)),h(u(e.fmt?.number(e.content.split(` +`).length))+" lines",1)])):f("v-if",!0),e.type=="html"?(a(),l("span",mW,[e.redactionCount()?(a(),l(T,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(u(e.redactionCount()),1),t[53]||(t[53]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,hW),t[54]||(t[54]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),t[56]||(t[56]=h("Markdown",-1)),e.fileSize(e.filePath)!=null?(a(),l(T,{key:1},[t[55]||(t[55]=n("span",{class:"sep"},"\xB7",-1)),h(u(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)])):f("v-if",!0),e.preview&&e.previewPreserved()?(a(),l("button",{key:2,type:"button",class:"rp-preserved-tag",onClick:t[3]||(t[3]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",gW,[e.isCsv()?(a(),l("div",vW,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="table"}]),"aria-checked":e.csvView==="table",onClick:t[4]||(t[4]=d=>e.csvView="table")},"Table",10,yW),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="raw"}]),"aria-checked":e.csvView==="raw",onClick:t[5]||(t[5]=d=>e.csvView="raw"),title:"Show the file as text with line numbers"},"Text",10,bW)])):f("v-if",!0),e.type!="html"&&e.symbols().length>1?(a(),l("div",wW,[n("button",{type:"button",class:R(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[6]||(t[6]=d=>e.symbolsOpen=!e.symbolsOpen)},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,kW),e.symbolsOpen?(a(),l("div",CW,[n("div",SW,u(e.symbols().length)+" "+u(e.symbols().length===1?"symbol":"symbols"),1),(a(!0),l(T,null,j(e.symbols(),d=>(a(),l("button",{type:"button",class:"symbols-item",role:"menuitem",key:d.line+d.name,onClick:p=>e.goToSymbol(d.line)},[n("span",{class:R(["symbols-kind","is-"+d.kind])},u(d.kind==="class"?"C":d.kind==="function"?"\u0192":"v"),3),n("span",NW,u(d.name),1),n("span",RW,u(d.line),1)],8,EW))),128))])):f("v-if",!0)])):f("v-if",!0),e.type=="html"?(a(),l("button",{key:2,type:"button",class:R(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[7]||(t[7]=d=>e.toggleMdFind())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,TW)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?(a(),l("div",PW,[e.type!="html"?(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[8]||(t[8]=d=>e.gotoLine())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,DW)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:1,type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap lines",title:"Wrap lines (Alt+Z)",onClick:t[9]||(t[9]=d=>e.toggleWrap())},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,AW)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[10]||(t[10]=d=>e.findInFile())},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,IW)):f("v-if",!0)])):f("v-if",!0),!e.preview||e.url?(a(),l("div",OW,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,MW),typeof e.content=="string"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[11]||(t[11]=d=>e.copyContent())},[(a(),l("svg",qW,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,LW)]))],8,VW)):f("v-if",!0),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,FW)])):f("v-if",!0),typeof e.content=="string"?(a(),l("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied":"Copy file contents",onClick:t[12]||(t[12]=d=>e.copyContent())},[(a(),l("svg",$W,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,UW)]))],8,_W)):f("v-if",!0),e.type=="html"&&e.tocCount()>=3?(a(),l("div",BW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-toc-btn",{"is-on":e.tocOpen}]),"aria-label":"On this page",title:"On this page","aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[13]||(t[13]=re(d=>{e.tocOpen=!e.tocOpen,e.moreOpen=!1},["stop"]))},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)])],10,zW),e.tocOpen?(a(),l("div",{key:0,class:"tb-menu tb-toc-menu",role:"menu",onClick:t[15]||(t[15]=d=>e.tocOpen=!1)},[t[64]||(t[64]=n("div",{class:"tb-menu-label"},"On this page",-1)),n("button",{type:"button",role:"menuitem",class:R(["tb-menu-toc","lvl-2","toc-title",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[14]||(t[14]=d=>e.scrollToHeading(null))},[e.tocTitle()?(a(!0),l(T,{key:0},j(e.tocTitle().parts,(d,p)=>(a(),l(T,{key:p},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,u(d.n),1)],8,HW)):(a(),l(T,{key:1},[h(u(d.t),1)],64))],64))),128)):(a(),l(T,{key:1},[h("Introduction")],64))],2),(a(!0),l(T,null,j(e.readmeToc(),d=>(a(),l("button",{type:"button",role:"menuitem",key:"m-"+d.id,class:R(["tb-menu-toc","lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:p=>e.scrollToHeading(d.id)},[(a(!0),l(T,null,j(d.parts,(p,c)=>(a(),l(T,{key:c},[p.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+p.n},[n("i",null,u(p.n),1)],8,GW)):(a(),l(T,{key:1},[h(u(p.t),1)],64))],64))),128))],10,jW))),128))])):f("v-if",!0)])):f("v-if",!0),n("div",WW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[16]||(t[16]=re(d=>{e.tocOpen=!1,e.moreOpen=!e.moreOpen},["stop"]))},[(a(),l("svg",YW,[...t[65]||(t[65]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,KW),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[23]||(t[23]=d=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",JW,[t[66]||(t[66]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+u(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),typeof e.content=="string"?(a(),l("div",XW,[h(u(e.type=="html"?"Markdown":e.languageName||"Text")+" \xB7 "+u(e.type=="html"&&e.fileSize(e.filePath)!=null?e.formatSize(e.fileSize(e.filePath)):e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1),e.type!="html"?(a(),l(T,{key:0},[h(" \xB7 "+u(e.fmt?.number(e.content.split(` +`).length))+" lines",1)],64)):f("v-if",!0)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",QW)):f("v-if",!0),e.type=="html"?(a(),l("button",{key:3,type:"button",role:"menuitem",onClick:t[17]||(t[17]=d=>e.toggleMdFind())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type=="html"?(a(),l("div",ZW)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:5,type:"button",role:"menuitem",onClick:t[18]||(t[18]=d=>e.findInFile())},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:6,type:"button",role:"menuitem",onClick:t[19]||(t[19]=d=>e.gotoLine())},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),h("Go to line",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[20]||(t[20]=d=>e.toggleWrap())},[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[71]||(t[71]=h("Wrap lines",-1)),e.wrapLines?(a(),l("span",eK,"\u2713")):f("v-if",!0)],8,xW)):f("v-if",!0),e.isCsv()?(a(),l("button",{key:8,type:"button",role:"menuitem",class:"tb-csv-view",onClick:t[21]||(t[21]=d=>{e.csvView=e.csvView==="table"?"raw":"table",e.moreOpen=!1})},[(a(),l("svg",tK,[n("use",{href:e.csvView==="table"?"#ui-icon-code":"#ui-icon-list"},null,8,nK)])),h(u(e.csvView==="table"?"Show as text":"Show as table"),1)])):f("v-if",!0),e.type!="html"?(a(),l("div",oK)):f("v-if",!0),e.type=="html"&&(!e.preview||e.url)?(a(),l("a",{key:10,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,sK)):f("v-if",!0),e.type!="html"&&(!e.preview||e.url)?(a(),l("a",{key:11,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,iK)):f("v-if",!0),!e.preview||e.url?(a(),l("a",{key:12,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,rK)):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:13,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h("Open website",-1)])],8,aK)):f("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:14,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h("Edit anonymization",-1)])],8,lK)):f("v-if",!0),e.options?.download?(a(),l("a",{key:15,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,dK)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[22]||(t[22]=d=>e.copyPath())},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[79]||(t[79]=n("div",{class:"tb-menu-sep"},null,-1)),t[80]||(t[80]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[81]||(t[81]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(a(),l("form",{key:3,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[26]||(t[26]=re(d=>e.submitGoto(),["prevent"]))},[t[82]||(t[82]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),D(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(` +`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=d=>e.gotoValue=d),onKeydown:t[25]||(t[25]=_t(re(d=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,uK),[[ot,e.gotoValue]]),n("span",{class:R(["goto-hint",{"is-error":e.gotoError}])},u(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView==="table"?(a(),l("div",{key:0,class:"csv-table-wrap",tabindex:"0",role:"region","aria-label":"Table view of "+(e.paths?.[e.paths.length-1]||"file")},[n("table",pK,[n("thead",null,[n("tr",null,[t[83]||(t[83]=n("th",{class:"csv-rownum",scope:"col"},[n("span",{class:"sr-only"},"Row")],-1)),(a(!0),l(T,null,j(e.csvRows()[0]||[],(d,p)=>(a(),l("th",{scope:"col",key:p,class:R({"is-num":e.csvNumCol(p)})},[(a(!0),l(T,null,j(e.redactParts(d),(c,v)=>(a(),l(T,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,u(c.n),1)],8,fK)):(a(),l(T,{key:1},[h(u(c.t),1)],64))],64))),128))],2))),128))])]),n("tbody",null,[(a(!0),l(T,null,j(e.csvRows().slice(1),(d,p)=>(a(),l("tr",{key:p},[n("td",mK,u(p+1),1),(a(!0),l(T,null,j(d,(c,v)=>(a(),l("td",{key:v,class:R({"is-num":e.csvNumCol(v)})},[(a(!0),l(T,null,j(e.redactParts(c),(m,y)=>(a(),l(T,{key:y},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,u(m.n),1)],8,hK)):(a(),l(T,{key:1},[h(u(m.t),1)],64))],64))),128))],2))),128))]))),128))])])],8,cK)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?D((a(),l("div",gK,null,512)),[[i,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",vK,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=d=>{e.mdFindQuery=d.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=_t(re(d=>d.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=_t(re(d=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,yK),n("span",bK,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=d=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,wK),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=d=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,kK)]),n("span",CK,u(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:R(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=d=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,SK),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=d=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",EK,[n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,NK),e.tocCount()>=3?(a(),l("aside",RK,[t[86]||(t[86]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",TK,[n("a",{href:"#",class:R(["lvl-2 toc-top",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[34]||(t[34]=re(d=>e.scrollToHeading(null),["prevent"]))},[e.tocTitle()?(a(!0),l(T,{key:0},j(e.tocTitle().parts,(d,p)=>(a(),l(T,{key:p},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,u(d.n),1)],8,PK)):(a(),l(T,{key:1},[h(u(d.t),1)],64))],64))),128)):(a(),l(T,{key:1},[h("Introduction")],64))],2),(a(!0),l(T,null,j(e.readmeToc(),(d,p)=>(a(),l("a",{key:d.id,href:"#"+d.id,class:R(["lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:re(c=>e.scrollToHeading(d.id),["prevent"])},[(a(!0),l(T,null,j(d.parts,(c,v)=>(a(),l(T,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,u(c.n),1)],8,AK)):(a(),l(T,{key:1},[h(u(c.t),1)],64))],64))),128))],10,DK))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Tt(o,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:R(["file-card file-card-media","view-"+e.type])},[n("header",IK,[n("div",OK,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",MK,[n("li",VK,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:u(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,qK)]),(a(!0),l(T,null,j(e.paths,(d,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(T,null,j(e.redactParts(d),(c,v)=>(a(),l(T,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,u(c.n),1)],8,FK)):(a(),l(T,{key:1},[h(u(c.t),1)],64))],64))),128))],8,LK))),256))]),n("span",_K,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(u(e.redactionCount()),1),t[88]||(t[88]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,$K)):f("v-if",!0),n("span",UK,u(e.fileKind()),1),e.imageSize?(a(),l("span",BK,u(e.imageSize),1)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l("span",zK,u(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0)]),D(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[36]||(t[36]=d=>e.copyPath())},[(a(),l("svg",jK,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,GK)]))],8,HK),[[Q,e.filePath]])]),n("span",WK,[e.type=="IPython"&&e.redactionCount()?(a(),l(T,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(u(e.redactionCount()),1),t[89]||(t[89]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,KK),t[90]||(t[90]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(u(e.fileKind()),1),e.imageSize?(a(),l(T,{key:1},[t[91]||(t[91]=n("span",{class:"sep"},"\xB7",-1)),h(u(e.imageSize),1)],64)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l(T,{key:2},[t[92]||(t[92]=n("span",{class:"sep"},"\xB7",-1)),h(u(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)]),e.preview&&e.previewPreserved()?(a(),l("button",{key:0,type:"button",class:"rp-preserved-tag",onClick:t[37]||(t[37]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",YK,[e.type=="error"&&e.content==="file_too_big"?(a(),l("span",JK,[...t[93]||(t[93]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),h("Over the size limit",-1)])])):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("div",XK,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="IPython"?"Open the notebook JSON":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,QK),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[94]||(t[94]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,ZK)])):f("v-if",!0),n("div",xK,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[38]||(t[38]=re(d=>e.moreOpen=!e.moreOpen,["stop"]))},[(a(),l("svg",tY,[...t[95]||(t[95]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,eY),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[40]||(t[40]=d=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",nY,[t[96]||(t[96]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+u(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",oY)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:2,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[t[97]||(t[97]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),h(u(e.type=="IPython"?"View notebook JSON":"View raw"),1)],8,sY)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:3,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[98]||(t[98]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,iY)):f("v-if",!0),e.options?.download?(a(),l("a",{key:4,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,rY)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[39]||(t[39]=d=>e.copyPath())},[...t[100]||(t[100]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[101]||(t[101]=n("div",{class:"tb-menu-sep"},null,-1)),t[102]||(t[102]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[103]||(t[103]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])])]),e.type=="image"?(a(),l("div",aY,[n("img",{class:"image-content",src:e.safeUrl(e.url),alt:e.paths[e.paths.length-1],onLoad:t[41]||(t[41]=d=>e.onImageLoad(d))},null,40,lY)])):f("v-if",!0),e.type=="media"?(a(),l("div",dY,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.url)},null,8,uY)])):f("v-if",!0),e.type=="audio"?(a(),l("div",cY,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.url)},null,8,pY)])):f("v-if",!0),e.type=="pdf"?(a(),Tt(r,{key:3,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="IPython"?(a(),l("div",fY,[Me(s,{class:"markdown-body",file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="binary"?(a(),l("div",mY,[t[105]||(t[105]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),t[106]||(t[106]=n("h2",{class:"file-state-title"},"No preview for this file",-1)),n("p",hY,u(e.preview?"Reviewers can open this file; it is not previewed here.":"This is a binary file. Download it to open it on your computer."),1),e.preview?f("v-if",!0):(a(),l("div",gY,[n("a",{target:e.preview?"_blank":"_self",class:"btn btn-primary",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[104]||(t[104]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,vY)]))])):f("v-if",!0),e.type=="error"?(a(),l("div",yY,[t[108]||(t[108]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("h2",bY,u(e.content==="file_too_big"?"This file is too large to preview":"This file can't be shown"),1),e.content==="file_too_big"?(a(),l("p",wY,u(e.preview?"Reviewers can open this file; it is not previewed here. Files over 1 MB are only shown on the reviewer page.":"It is over the size limit for anonymized files, so it can't be previewed or downloaded from this link."),1)):(a(),l("p",kY,u(e.fmt.translate("ERRORS."+e.content)),1)),e.preview?f("v-if",!0):(a(),l("div",CY,[n("a",{class:"btn btn-primary",href:e.safeUrl("/r/"+e.repoId+"/")},"Back to the repository",8,SY),t[107]||(t[107]=n("a",{class:"btn btn-outline-ink",href:"/faq#formats"},"Supported files",-1))]))])):f("v-if",!0),e.content==null&&e.type!="error"?(a(),l("div",EY,[...t[109]||(t[109]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h2",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])])):f("v-if",!0)],2)):f("v-if",!0),e.type=="rate_limited"?(a(),l("div",NY,[n("div",RY,[t[112]||(t[112]=Ce('Track PR mirrors you\u2019ve created and their reviewer traffic.