Manage how GitHub shares your code. Your anonymizations and URLs stay the same.
',2)),e.connectionError?(l(),d("p",hp,c(e.connectionError),1)):p("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",vp,"Loading your connections\u2026")):p("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=s=>e.loadConnections())},"Try again",8,gp)):p("v-if",!0),e.connections?(l(),d("div",yp,[o("div",bp,[e.connections.appEnabled?(l(),d("section",wp,[t[8]||(t[8]=o("div",{class:"connection-top"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",{class:"connection-badge"},"Recommended")],-1)),o("div",kp,[t[3]||(t[3]=o("h2",null,"GitHub App",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[9]||(t[9]=o("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(l(),d("p",Ep,c(e.connections.appError)+". Reconnect to restore access.",1)):p("v-if",!0),o("div",Cp,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",_p,[...t[4]||(t[4]=[b("Manage repository access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),o("a",{class:A(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},c(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[10]||(t[10]=o("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",Sp,[(l(!0),d(X,null,re(e.connections.installations,s=>(l(),d("li",{key:s.id},[o("div",null,[o("strong",null,c(s.account),1),s.suspended?(l(),d("span",Np," \xB7 Suspended")):p("v-if",!0)]),o("a",{target:"_self",href:"/github/app/install?installationId="+s.id},[t[5]||(t[5]=b("Manage access ",-1)),o("span",Rp,"for "+c(s.account),1),t[6]||(t[6]=b(" \u2192",-1))],8,Dp)]))),128))])):p("v-if",!0),o("button",{class:"connection-link",disabled:e.busy,onClick:t[1]||(t[1]=s=>e.loadConnections())},[...t[7]||(t[7]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh access",-1)])],8,Tp)])):p("v-if",!0),o("section",null,[t[13]||(t[13]=o("div",{class:"connection-top"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),o("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),o("div",Ap,[t[11]||(t[11]=o("h2",null,"GitHub OAuth",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=o("p",null,"For existing OAuth anonymizations.",-1)),t[15]||(t[15]=o("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(l(),d("a",Op,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):p("v-if",!0),e.connections.oauthConnected?(l(),d("div",Ip,[e.connections.gistCount?(l(),d("p",Pp,c(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):p("v-if",!0),t[12]||(t[12]=o("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[2]||(t[2]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,Vp)):p("v-if",!0)])):p("v-if",!0)])]),o("section",qp,[o("div",Mp,[t[16]||(t[16]=o("h2",null,"Repository connections",-1)),o("span",$p,c(e.connections.resources?.length||0)+" resources",1)]),t[18]||(t[18]=o("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?p("v-if",!0):(l(),d("div",Lp,[...t[17]||(t[17]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("div",null,[o("h3",null,"No repository connections yet"),o("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),o("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(l(!0),d(X,null,re(e.connections.resources,s=>(l(),d("div",{class:"connection-resource",key:s.type+s.id},[o("div",Up,[o("strong",null,c(s.name||s.id),1),o("small",null,c(s.type)+" \xB7 "+c(s.id),1)]),o("span",{class:A(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},c(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",Fp,[o("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,zp),s.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:r=>e.changeConnection(s,"github-app",!1)},c(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,Hp)):p("v-if",!0),s.eligible===!1?(l(),d("span",Bp,"Access unavailable. Allow this repository on GitHub, then check again.")):p("v-if",!0)])):p("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&s.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:r=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,jp)):p("v-if",!0)]))),128)),t[19]||(t[19]=o("p",{class:"connection-footnote"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):p("v-if",!0)])}var Gp={class:"container paper-page auth-page"},Wp={class:"auth-layout"},Kp={class:"auth-options"},Yp={key:0},Jp={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},Qp={key:1},Xp={key:1},Zp={key:2,class:"auth-legacy"},xp={key:3,role:"status"};function fl(e,t){return l(),d("div",Gp,[t[5]||(t[5]=o("a",{class:"auth-back",href:"/"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-left"})]),b(" Anonymous GitHub")],-1)),o("div",Wp,[t[4]||(t[4]=ce('
Your research, ready for review
Your code. Your identity, protected.Sign in to GitHub
Sign in to create and manage your anonymizations.
',1)),o("div",Kp,[e.accountRecovery?(l(),d("section",Yp,[t[0]||(t[0]=o("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=o("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("a",Jp,"Verify with previous GitHub connection")):(l(),d("p",Qp,"Account verification is currently unavailable. Please try again later."))])):p("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Xp,[...t[2]||(t[2]=[ce('
Read-only access
Continue with GitHub
Connect through the GitHub App with read-only repository access.
You choose which repositories to share
No permission to write to your code
Sign in with GitHub Your existing anonymizations and connections stay with your account.',6)])])):p("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Zp,[...t[3]||(t[3]=[o("div",{class:"connection-title"},[o("h2",null,"Continue with GitHub")],-1),o("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),o("a",{class:"connection-link",target:"_self",href:"/github/login"},[b("Sign in with GitHub "),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-right"})])],-1)])])):p("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",xp,"GitHub sign-in is currently unavailable. Please try again later.")):p("v-if",!0)])])])}var ef={class:"paper-empty"};function ml(e,t){return l(),d("div",ef,[...t[0]||(t[0]=[ce('
Error \xB7 404
This link isn\u2019t here.
The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.
',1)),o("a",sg,[t[40]||(t[40]=o("span",{class:"ov-route-name"},"download",-1)),o("span",ng,c(e.data?.queues?.download?.active),1),o("span",rg,c(e.data?.queues?.download?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),o("a",ig,[t[41]||(t[41]=o("span",{class:"ov-route-name"},"remove",-1)),o("span",ag,c(e.data?.queues?.remove?.active),1),o("span",lg,c(e.data?.queues?.remove?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),o("a",dg,[t[42]||(t[42]=o("span",{class:"ov-route-name"},"cache",-1)),o("span",ug,c(e.data?.queues?.cache?.active),1),o("span",cg,c(e.data?.queues?.cache?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},c(e.data?.queues?.cache?.failed),3)])])])]),p(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",pg,[o("div",fg,[t[45]||(t[45]=o("span",{class:"ov-panel-title"},"Services",-1)),o("span",mg,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),o("div",hg,[o("div",vg,[t[47]||(t[47]=o("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),o("div",gg,[t[46]||(t[46]=o("span",{class:"ov-svc-name"},"web",-1)),o("span",yg,c(e.data?.system?.nodeVersion),1)]),o("span",bg,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),o("div",wg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",kg,[t[48]||(t[48]=o("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",Eg,c(e.queueTotal(e.data?.queues?.download))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.download)?p("v-if",!0):(l(),d("span",Cg,"idle"))])]),o("div",_g,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",Sg,[t[49]||(t[49]=o("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",Ng,c(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.cache)?p("v-if",!0):(l(),d("span",Dg,"idle"))])]),o("div",Rg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",Tg,[t[50]||(t[50]=o("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",Ag,c(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.remove)?p("v-if",!0):(l(),d("span",Og,"idle"))])]),o("div",Ig,[o("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),o("div",Pg,[t[51]||(t[51]=o("span",{class:"ov-svc-name"},"errors",-1)),o("span",Vg,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):p("v-if",!0),o("section",qg,[o("div",Mg,[t[54]||(t[54]=o("div",null,[o("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),o("p",{class:"ov-performance-note"},"Request latency and process health \xB7 refreshes every 30 seconds")],-1)),o("div",$g,[t[53]||(t[53]=o("label",{for:"performance-window"},"Time range",-1)),N(o("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=s=>e.performanceMinutes=s),onChange:t[1]||(t[1]=s=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[52]||(t[52]=[o("option",{value:15},"Last 15 minutes",-1),o("option",{value:60},"Last hour",-1)])],544),[[ta,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",Lg,[t[55]||(t[55]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),o("span",null,c(e.performanceError),1),o("button",{type:"button",class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadPerformance())},"Retry")])):p("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",Ug,"Loading performance monitoring\u2026")):p("v-if",!0),e.performance?.available?(l(),d("div",Fg,[o("div",zg,[o("button",{id:"performance-routes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="routes"}]),role:"tab","aria-selected":e.performanceTab==="routes",tabindex:e.performanceTab==="routes"?0:-1,"aria-controls":"performance-routes",onClick:t[3]||(t[3]=s=>e.performanceTab="routes"),onKeydown:t[4]||(t[4]=s=>e.previewTabKeydown(s))},"Routes",42,Hg),o("button",{id:"performance-processes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="processes"}]),role:"tab","aria-selected":e.performanceTab==="processes",tabindex:e.performanceTab==="processes"?0:-1,"aria-controls":"performance-processes",onClick:t[5]||(t[5]=s=>e.performanceTab="processes"),onKeydown:t[6]||(t[6]=s=>e.previewTabKeydown(s))},"Processes",42,Bg),o("button",{id:"performance-stages-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="stages"}]),role:"tab","aria-selected":e.performanceTab==="stages",tabindex:e.performanceTab==="stages"?0:-1,"aria-controls":"performance-stages",onClick:t[7]||(t[7]=s=>e.performanceTab="stages"),onKeydown:t[8]||(t[8]=s=>e.previewTabKeydown(s))},"Work stages",42,jg)]),N(o("div",Gg,[e.performance.routes?.length?(l(),d("div",Wg,[o("table",Kg,[t[56]||(t[56]=o("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[57]||(t[57]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Route"),o("th",{scope:"col",class:"num"},"Requests"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"First byte p95"),o("th",{scope:"col",class:"num"},"p95"),o("th",{scope:"col",class:"num"},"p99"),o("th",{scope:"col",class:"num"},"Interrupted"),o("th",{scope:"col",class:"num"},"5xx"),o("th",{scope:"col",class:"num"},"Slow")])],-1)),o("tbody",null,[(l(!0),d(X,null,re(e.performance.routes,s=>(l(),d("tr",{key:s.service+s.method+s.route},[o("th",Yg,[o("span",null,c(s.route),1),o("small",null,c(s.service)+" \xB7 "+c(s.method),1)]),o("td",Jg,c(e.fmt.number(s.count)),1),o("td",Qg,c(e.formatMs(s.avgMs)),1),o("td",Xg,c(e.firstByteBound(s)),1),o("td",Zg,c(e.latencyBound(s,"p95UpperMs")),1),o("td",xg,c(e.latencyBound(s,"p99UpperMs")),1),o("td",{class:A(["num",{"ov-metric-warn":s.aborted>0}])},c(e.fmt.number(s.aborted)),3),o("td",{class:A(["num",{"ov-metric-warn":s.errors>0}])},c(e.fmt.number(s.errors)),3),o("td",{class:A(["num",{"ov-metric-warn":s.slow>0}])},c(e.fmt.number(s.slow)),3)]))),128))])])])):(l(),d("p",ey,"No recorded requests in this time range yet."))],512),[[W,e.performanceTab==="routes"]]),N(o("div",ty,[t[61]||(t[61]=o("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(l(),d("div",sy,[o("table",ny,[t[59]||(t[59]=o("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[60]||(t[60]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Process"),o("th",{scope:"col",class:"num"},"RSS / limit"),o("th",{scope:"col",class:"num"},"CPU"),o("th",{scope:"col",class:"num"},"Event loop p95"),o("th",{scope:"col",class:"num"},"Active requests"),o("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),o("th",{scope:"col",class:"num"},"Workers / waiting"),o("th",{scope:"col",class:"num"},"Sample age"),o("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),o("tbody",null,[(l(!0),d(X,null,re(e.performance.instances,s=>(l(),d("tr",{key:s.instance,class:A({"ov-metric-warning-row":e.performanceWarning(s)})},[o("th",ry,[o("span",null,c(s.instance),1),e.performanceWarning(s)?(l(),d("small",iy,[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" Needs attention",-1)])])):p("v-if",!0)]),o("td",ay,[b(c(e.humanBytes(s.memory.rss))+" / "+c(e.humanBytes(s.memoryLimitBytes)),1),o("small",null,"Peak "+c(e.humanBytes(e.peakRss(s))),1)]),o("td",ly,c(s.cpuPercent.toFixed(1))+"%",1),o("td",dy,c(s.eventLoop.p95Ms.toFixed(1))+" ms",1),o("td",uy,c(s.activeRequests),1),o("td",cy,c(s.sockets?.descriptors??"Unavailable")+" / "+c(s.sockets?.closeWait??"Unavailable"),1),o("td",py,c(s.workers?.running??0)+" / "+c(s.workers?.waiting??0),1),o("td",fy,c(e.sampleAge(s))+" s",1),o("td",my,c(s.droppedBatches)+" / "+c(s.droppedMetrics),1)],2))),128))])])])):(l(),d("div",oy,"No recent process samples. Monitoring coverage is incomplete."))],512),[[W,e.performanceTab==="processes"]]),N(o("div",hy,[e.performance.stages?.some(s=>s.metric!=="first_byte")?(l(),d("div",vy,[o("table",gy,[t[62]||(t[62]=o("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[63]||(t[63]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Work stage"),o("th",{scope:"col",class:"num"},"Samples"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"p95")])],-1)),o("tbody",null,[(l(!0),d(X,null,re(e.performance.stages.filter(s=>s.metric!=="first_byte"),s=>(l(),d("tr",{key:s.service+s.metric},[o("th",yy,[o("span",null,c(s.metric),1),o("small",null,c(s.service),1)]),o("td",by,c(e.fmt.number(s.count)),1),o("td",wy,c(e.formatMs(s.avgMs)),1),o("td",ky,c(e.latencyBound(s,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",Ey,"No recorded work stages or cache results in this time range yet."))],512),[[W,e.performanceTab==="stages"]]),t[64]||(t[64]=o("details",{class:"ov-performance-help"},[o("summary",null,"How to read these metrics"),o("p",null,"Latency includes upstream waits and response transfer. Percentiles show histogram bucket upper bounds, not exact timings. Process rows marked \u201CNeeds attention\u201D have stale samples, dropped monitoring data, CLOSE_WAIT sockets, high event loop delay, or high memory usage.")],-1))])):p("v-if",!0)])])}var Cy={class:"container paper-page admin-page"},_y={class:"q-header"},Sy={class:"q-header-actions"},Ny={class:"q-range-btns"},Dy={class:"q-cards"},Ry=["aria-pressed","onKeydown","onClick"],Ty={class:"q-card-head"},Ay=["textContent"],Oy=["textContent"],Iy={class:"q-card-sub"},Py={key:0,class:"q-card-bar"},Vy={key:0,class:"q-detail"},qy={class:"q-throughput"},My={class:"q-section-label"},$y={class:"q-section-right"},Ly={class:"q-stats-panel"},Uy={class:"q-section-label"},Fy={class:"q-stats-grid"},zy={class:"q-stat"},Hy=["textContent"],By={class:"q-stat"},jy=["textContent"],Gy={class:"q-stat"},Wy=["textContent"],Ky={class:"q-stat"},Yy=["textContent"],Jy={class:"q-stat"},Qy=["textContent"],Xy={class:"q-stat"},Zy=["textContent"],xy={class:"q-stats-actions"},eb=["disabled"],tb={class:"q-jobs"},ob={class:"q-jobs-header"},sb={class:"q-section-label"},rb={class:"q-state-filters"},ib={class:"q-state-toggle"},ab={type:"checkbox"},lb={class:"q-search-row"},db={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},ub={class:"q-auto-refresh"},cb={type:"checkbox"},pb={key:0,class:"q-table"},fb=["onClick"],mb={class:"q-cell-state"},hb=["textContent"],vb=["textContent"],gb={class:"q-cell-id"},yb=["textContent","href"],bb={class:"q-cell-payload"},wb=["textContent"],kb={key:0,class:"q-payload-detail"},Eb=["textContent"],Cb=["textContent"],_b={class:"q-cell-progress"},Sb={key:0,class:"q-progress-wrap"},Nb=["textContent"],Db={class:"q-cell-actions"},Rb=["onClick"],Tb=["onClick"],Ab={key:0,class:"q-detail-row"},Ob={colspan:"7"},Ib={class:"q-job-detail"},Pb={class:"q-job-detail-grid"},Vb={class:"q-job-detail-item"},qb={class:"q-job-detail-value"},Mb=["textContent","href"],$b={class:"q-job-detail-item"},Lb={class:"q-job-detail-value"},Ub=["textContent"],Fb={key:0,class:"q-job-detail-item"},zb=["textContent"],Hb={key:1,class:"q-job-detail-item"},Bb=["textContent"],jb={key:2,class:"q-job-detail-item"},Gb={class:"q-job-detail-value"},Wb={key:3,class:"q-job-detail-item"},Kb=["textContent"],Yb={key:4,class:"q-job-detail-item"},Jb=["textContent"],Qb={key:5,class:"q-job-detail-item"},Xb=["textContent"],Zb={key:6,class:"q-job-detail-item"},xb=["textContent"],e1={key:7,class:"q-job-detail-item"},t1=["textContent"],o1={key:0,class:"q-job-detail-error"},s1=["textContent"],n1={key:1},r1=["textContent"],i1={class:"q-job-detail-actions"},a1=["onClick"],l1=["onClick"],d1=["href"],u1={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},c1={key:0},p1={key:1};function yl(e,t){let s=be("field");return l(),d("div",Cy,[t[48]||(t[48]=o("div",{class:"paper-crumbs"},[b("Admin \xA0/\xA0 "),o("span",{class:"here"},"Queues")],-1)),o("div",_y,[t[12]||(t[12]=o("h1",{class:"paper-page-title"},"Queues",-1)),o("div",Sy,[o("div",Ny,[o("button",{class:A(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=r=>e.setRange("1h"))},"1h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=r=>e.setRange("6h"))},"6h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=r=>e.setRange("24h"))},"24h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=r=>e.setRange("7d"))},"7d",2)]),o("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=r=>e.pauseAll())},"Pause all"),o("button",{class:"btn btn-sm btn-danger-soft",onClick:t[5]||(t[5]=r=>e.drainSelected())},"Drain "+c(e.selectedQueue),1)])]),t[49]||(t[49]=ce('',1)),p(" Queue overview cards "),o("div",Dy,[(l(!0),d(X,null,re(e.queueList,(r,n)=>(l(),d("div",{class:A(["q-card",{selected:e.selectedQueue==r?.key,paused:r?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===r.key,onKeydown:[Ro(me(i=>e.selectQueue(r.key),["prevent"]),["enter"]),Ro(me(i=>e.selectQueue(r.key),["prevent"]),["space"])],onClick:i=>e.selectQueue(r.key)},[o("div",Ty,[o("span",{class:A(["q-dot",{"q-dot-red":r?.paused||r?.counts?.failed>0}])},null,2),o("span",{class:"q-card-name",textContent:c(r?.label)},null,8,Ay)]),o("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,Oy),o("div",Iy,[o("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",Py,[o("div",{class:"q-card-bar-fill",style:qe({width:r?.counts?.active/((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0)||1)*100+"%"})},null,4)])):p("v-if",!0)])],42,Ry))),256))]),p(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",Vy,[o("div",qy,[o("div",My,[b(c(e.selectedQueue)+" \xB7 throughput ",1),o("span",$y,[t[13]||(t[13]=o("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=b(" completed ",-1)),t[15]||(t[15]=o("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=b(" failed ",-1)),t[17]||(t[17]=o("span",{class:"q-legend-exec"},"- -",-1)),b(" avg time \xB7 "+c(e.range),1)])]),t[18]||(t[18]=o("div",{class:"q-chart-wrap"},[o("canvas",{id:"q-throughput-chart",height:"180"}),o("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),o("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),o("div",Ly,[o("div",Uy,c(e.selectedQueue)+" \xB7 stats",1),o("div",Fy,[o("div",zy,[t[19]||(t[19]=o("div",{class:"q-stat-label"},"Waiting",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,Hy)]),o("div",By,[t[20]||(t[20]=o("div",{class:"q-stat-label"},"Active",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,jy)]),o("div",Gy,[t[21]||(t[21]=o("div",{class:"q-stat-label"},"Completed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,Wy)]),o("div",Ky,[t[22]||(t[22]=o("div",{class:"q-stat-label"},"Failed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,Yy)]),o("div",Jy,[t[23]||(t[23]=o("div",{class:"q-stat-label"},"Delayed",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,Qy)]),o("div",Xy,[t[24]||(t[24]=o("div",{class:"q-stat-label"},"Workers",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,Zy)])]),o("div",xy,[o("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=r=>e.togglePause())},c(e.selectedStats?.paused?"Resume":"Pause"),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=r=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,eb),o("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=r=>e.emptyQueue())},"Empty")])])])):p("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=r=>e.actionError=null)},[t[25]||(t[25]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),b(" "+c(e.actionError),1)])):p("v-if",!0),p(" Jobs table "),o("div",tb,[o("div",ob,[o("div",sb,"All jobs \xB7 "+c(e.selectedQueue),1),o("div",rb,[(l(!0),d(X,null,re(e.allStates,(r,n)=>(l(),d("label",ib,[N(o("input",ab,null,512),[[s,{state:e.viewState,set:i=>{e.stateFilter[r]=i},value:e.stateFilter[r],form:null,options:{}}]]),o("span",{class:A("q-state-chip q-state-"+r)},c(r),3)]))),256))])]),o("div",lb,[N(o("input",db,null,512),[[s,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),o("label",ub,[N(o("input",cb,null,512),[[s,{state:e.viewState,set:r=>{e.query.autoRefresh=r},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=b(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=r=>e.refreshNow()),"aria-label":"Refresh"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(l(),d("table",pb,[t[46]||(t[46]=o("thead",null,[o("tr",null,[o("th",null,"State"),o("th",null,"Job id"),o("th",null,"Payload"),o("th",null,"Attempts"),o("th",null,"Duration"),o("th",null,"Progress"),o("th")])],-1)),(l(!0),d(X,null,re(e.filteredJobs(),(r,n)=>(l(),d("tbody",null,[o("tr",{style:{cursor:"pointer"},class:A({"q-row-failed":r?._state=="failed","q-row-expanded":e.expanded[r?.id]}),onClick:i=>e.toggleJob(r)},[o("td",mb,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,hb),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,vb)):p("v-if",!0)]),o("td",gb,[(l(),d("svg",{class:A(["ui-icon q-chevron",{"q-chevron-open":e.expanded[r?.id]}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),o("a",{target:"_blank",textContent:c("job:"+e.fmt.limitTo(r?.id,6)),onClick:t[11]||(t[11]=i=>i.stopPropagation()),href:e.safeUrl("/r/"+r?.id)},null,8,yb)]),o("td",bb,[o("span",{textContent:c(r?.name||"anonymize")},null,8,wb),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",kb," \xB7 "+c(r?.data?.repoId),1)):p("v-if",!0)]),o("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,Eb),o("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,Cb),o("td",_b,[e.jobProgressPct(r)!==null?(l(),d("div",Sb,[o("div",{class:"q-progress-bar",style:qe({"--pct":e.jobProgressPct(r)+"%"})},null,4),o("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,Nb)])):p("v-if",!0)]),o("td",Db,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:i=>{e.retryJob(r),i.stopPropagation()},"aria-label":"Retry job"},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])],8,Rb)):p("v-if",!0),o("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:i=>{e.removeJob(r),i.stopPropagation()}},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,Tb)])],10,fb),e.expanded[r?.id]?(l(),d("tr",Ab,[o("td",Ob,[o("div",Ib,[o("div",Pb,[o("div",Vb,[t[31]||(t[31]=o("span",{class:"q-job-detail-label"},"Job id",-1)),o("span",qb,[o("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,Mb)])]),o("div",$b,[t[32]||(t[32]=o("span",{class:"q-job-detail-label"},"State",-1)),o("span",Lb,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,Ub)])]),r?.data?.repoId?(l(),d("div",Fb,[t[33]||(t[33]=o("span",{class:"q-job-detail-label"},"Repo ID",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.data?.repoId)},null,8,zb)])):p("v-if",!0),r?.timestamp?(l(),d("div",Hb,[t[34]||(t[34]=o("span",{class:"q-job-detail-label"},"Created",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.timestamp))},null,8,Bb)])):p("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",jb,[t[35]||(t[35]=o("span",{class:"q-job-detail-label"},"Retry at",-1)),o("span",Gb,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):p("v-if",!0),r?.processedOn?(l(),d("div",Wb,[t[36]||(t[36]=o("span",{class:"q-job-detail-label"},"Processed",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.processedOn))},null,8,Kb)])):p("v-if",!0),r?.finishedOn?(l(),d("div",Yb,[t[37]||(t[37]=o("span",{class:"q-job-detail-label"},"Finished",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.finishedOn))},null,8,Jb)])):p("v-if",!0),r?.attemptsMade?(l(),d("div",Qb,[t[38]||(t[38]=o("span",{class:"q-job-detail-label"},"Attempts",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.attemptsMade)},null,8,Xb)])):p("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",Zb,[t[39]||(t[39]=o("span",{class:"q-job-detail-label"},"Status",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.progress?.status)},null,8,xb)])):p("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",e1,[t[40]||(t[40]=o("span",{class:"q-job-detail-label"},"Progress",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(r)+"%")},null,8,t1)])):p("v-if",!0)]),r?.failedReason?(l(),d("div",o1,[t[41]||(t[41]=o("span",{class:"q-job-detail-label"},"Error",-1)),o("div",{class:"q-error-reason",textContent:c(r?.failedReason)},null,8,s1)])):p("v-if",!0),r?.stacktrace?.length?(l(),d("div",n1,[t[42]||(t[42]=o("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(l(!0),d(X,null,re(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[o("code",{textContent:c(i)},null,8,r1)]))),128))])):p("v-if",!0),o("div",i1,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:i=>e.retryJob(r)},[...t[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Retry",-1)])],8,a1)):p("v-if",!0),o("button",{class:"btn btn-sm",onClick:i=>e.removeJob(r)},[...t[44]||(t[44]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,l1),o("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+r?.id)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1),b(" View repo",-1)])],8,d1)])])])])):p("v-if",!0)]))),256))])):p("v-if",!0),e.filteredJobs().length==0?(l(),d("div",u1,[t[47]||(t[47]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?p("v-if",!0):(l(),d("span",c1,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",p1,"No jobs match the current filters.")):p("v-if",!0)])):p("v-if",!0)])])}var f1={class:"container paper-page admin-page"},m1={class:"admin-summary"},h1={class:"summary-total"},v1={class:"summary-meta"},g1=["aria-pressed"],y1={class:"count"},b1=["aria-pressed"],w1={class:"count"},k1=["aria-pressed"],E1={class:"count"},C1=["aria-pressed"],_1={class:"count"},S1=["aria-pressed"],N1={class:"count"},D1={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},R1={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},T1={class:"admin-filter-row"},A1={class:"search-wrap"},O1={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},I1={key:0,class:"admin-search-hint"},P1={class:"admin-filter-inline"},V1={type:"text",class:"form-control form-control-sm",placeholder:"username"},q1={class:"admin-filter-inline"},M1={type:"text",class:"form-control form-control-sm",placeholder:"ID"},$1={class:"admin-filter-inline","aria-label":"Pagination"},L1=["disabled"],U1={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},F1=["disabled"],z1={key:0,class:"admin-filter-row"},H1={class:"admin-active-chips"},B1={class:"key"},j1=["onClick"],G1={key:1,class:"bulk-bar"},W1={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},K1={class:"paper-table-head",role:"row"},Y1={role:"columnheader",style:{width:"28px"}},J1=["checked"],Q1={role:"columnheader"},X1={role:"columnheader"},Z1={role:"columnheader",class:"num"},x1={role:"columnheader"},ew={role:"cell",style:{width:"28px"}},tw={type:"checkbox","aria-label":"Select repository"},ow={class:"cell-anon",role:"cell"},sw={class:"anon-text"},nw=["textContent","href"],rw={class:"anon-sub"},iw=["textContent","href"],aw={key:0},lw=["textContent","href"],dw={key:1},uw=["textContent","href"],cw={key:2},pw={class:"cell-status",role:"cell"},fw={class:"status-line"},mw=["textContent"],hw=["textContent","title"],vw={class:"cell-views num",role:"cell"},gw=["textContent"],yw={class:"cell-expires",role:"cell"},bw=["textContent"],ww={class:"cell-actions",role:"cell"},kw={class:"dropdown"},Ew={class:"dropdown-menu dropdown-menu-right"},Cw=["href"],_w=["href"],Sw=["href"],Nw=["onClick"],Dw=["onClick"],Rw=["onClick"],Tw=["onClick"],Aw=["onClick"],Ow=["onClick"],Iw={key:0,class:"paper-table-empty"},Pw={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Vw={style:{"font-size":"12px",color:"var(--ink-muted)"}},qw={key:0,class:"pagination-compact"},Mw=["disabled"],$w=["max"],Lw=["disabled"],Uw={class:"admin-filter-inline"},Fw={class:"form-control form-control-sm"};function bl(e,t){let s=be("field"),r=be("form");return l(),d("div",f1,[t[69]||(t[69]=ce('
Admin \xA0/\xA0 Repositories
Repositories
',3)),o("div",m1,[o("span",h1,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("span",v1,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=n=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[18]||(t[18]=b("Ready ",-1)),o("span",y1,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,g1),o("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=n=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[19]||(t[19]=b("Preparing ",-1)),o("span",w1,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,b1),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=n=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[20]||(t[20]=b("Errored ",-1)),o("span",E1,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,k1),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=n=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[21]||(t[21]=b("Expired ",-1)),o("span",_1,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,C1),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=n=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[22]||(t[22]=b("Removed ",-1)),o("span",N1,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,S1)]),e.fetchError?(l(),d("div",D1,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):p("v-if",!0),N((l(),d("form",R1,[p(" Row 1: search + scoped inputs + headline actions "),o("div",T1,[o("div",A1,[N(o("input",O1,null,512),[[s,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",I1,"/"))]),o("span",P1,[t[24]||(t[24]=o("label",null,"Owner",-1)),N(o("input",V1,null,512),[[s,{state:e.viewState,set:n=>{e.query.owner=n},value:e.query?.owner,form:null,options:{}}]])]),o("span",q1,[t[25]||(t[25]=o("label",null,"Conference",-1)),N(o("input",M1,null,512),[[s,{state:e.viewState,set:n=>{e.query.conference=n},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=n=>e.exportCsv())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",$1,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,L1),o("span",U1,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,F1)])]),p(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",z1,[o("div",H1,[(l(!0),d(X,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[o("span",B1,c(n?.label),1),o("span",null,c(n?.value),1),o("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(n.key)},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,j1)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",G1,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=n=>e.bulkRefresh())},[...t[32]||(t[32]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=n=>e.bulkRemoveCache())},[...t[33]||(t[33]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=n=>e.clearSelection())},"Clear")])):p("v-if",!0),o("div",W1,[o("div",K1,[o("div",Y1,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,J1)]),o("div",Q1,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=n=>e.sortBy("source.repositoryName"))},[t[35]||(t[35]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",X1,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=n=>e.sortBy("status"))},[t[37]||(t[37]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",Z1,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=n=>e.sortBy("pageView"))},[t[39]||(t[39]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[38]||(t[38]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",x1,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=n=>e.sortBy("anonymizeDate"))},[t[41]||(t[41]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[40]||(t[40]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[42]||(t[42]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[o("div",ew,[N(o("input",tw,null,512),[[s,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),o("div",ow,[t[47]||(t[47]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",sw,[o("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,nw),o("div",rw,[o("a",{textContent:c(n?.source?.repositoryName),href:e.safeUrl("https://github.com/"+n?.source?.repositoryName+"/")},null,8,iw),n?.options?.update?(l(),d("span",aw,[t[43]||(t[43]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,lw)])):p("v-if",!0),n?.options?.update?p("v-if",!0):(l(),d("span",dw,[t[44]||(t[44]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,uw)])),n?.conference?(l(),d("span",cw,[t[45]||(t[45]=b("\xA0\xB7\xA0",-1)),t[46]||(t[46]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(n?.conference),1)])):p("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" "+c(n?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",pw,[o("span",fw,[o("span",{class:A(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(n?.status))},null,8,mw)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,hw)):p("v-if",!0)]),o("div",vw,[t[48]||(t[48]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[49]||(t[49]=b()),o("span",{textContent:c(e.fmt?.number(n?.pageView||0))},null,8,gw)]),o("div",yw,[t[50]||(t[50]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[51]||(t[51]=b()),o("span",{textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,bw)]),o("div",ww,[o("div",kw,[t[63]||(t[63]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",Ew,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[52]||(t[52]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,Cw),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[53]||(t[53]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,_w),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[54]||(t[54]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,Sw)):p("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.fetchGithubInfo(n),["prevent"])},[...t[55]||(t[55]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,Nw),t[61]||(t[61]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updateRepository(n),["prevent"])},[...t[56]||(t[56]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,Dw),[[W,n?.status=="ready"||n?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updateRepository(n),["prevent"])},[...t[57]||(t[57]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,Rw),[[W,n?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.showStatusMessage(n),["prevent"])},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,Tw),[[W,n?.statusMessage]]),t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.removeCache(n),["prevent"])},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,Aw),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:me(a=>e.removeRepository(n),["prevent"])},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,Ow),[[W,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",Iw,[...t[64]||(t[64]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):p("v-if",!0)]),o("div",Pw,[o("span",Vw,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",qw,[o("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[65]||(t[65]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous ",-1)])],8,Mw),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,$w),[[s,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[66]||(t[66]=[b(" Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Lw)])):p("v-if",!0),o("span",Uw,[t[68]||(t[68]=o("label",null,"Per page",-1)),N((l(),d("select",Fw,[...t[67]||(t[67]=[ce('',5)])])),[[s,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var zw={class:"container paper-page admin-page"},Hw={class:"paper-crumbs"},Bw={class:"here"},jw={class:"paper-page-title"},Gw={key:0,class:"user-detail-card"},Ww={class:"user-header"},Kw=["src"],Yw={class:"status-dot-wrap"},Jw=["textContent"],Qw={key:0,class:"type-badge type-repo"},Xw={class:"user-actions",style:{"margin-top":"4px"}},Zw={class:"user-detail-grid"},xw={class:"detail-value"},ek={class:"detail-value"},tk={key:0,class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},ok={key:1,class:"detail-value text-muted"},sk={class:"detail-value"},nk=["href"],rk={class:"detail-value"},ik={class:"detail-value"},ak={key:0},lk={key:1,class:"text-muted"},dk={class:"detail-value"},uk={key:0,style:{"margin-top":"20px"}},ck={class:"paper-table w-100",style:{"margin-top":"10px"}},pk={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},fk={class:"cell-anon",role:"cell"},mk={class:"anon-text"},hk=["textContent"],vk={class:"cell-expires",role:"cell"},gk={key:1,class:"admin-section-header"},yk={class:"section-count"},bk={key:2,class:"user-detail-card"},wk={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},kk={key:0,class:"alert alert-warning",role:"alert"},Ek={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},Ck={key:1,class:"paper-table w-100"},_k={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},Sk=["textContent"],Nk=["textContent"],Dk={role:"cell"},Rk={key:0},Tk={key:1,class:"text-muted"},Ak={role:"cell"},Ok=["onClick"],Ik={key:2,class:"paper-table-empty"},Pk={class:"admin-section-header"},Vk={class:"section-count"},qk={class:"admin-summary"},Mk={class:"summary-total"},$k=["aria-pressed"],Lk={class:"count"},Uk=["aria-pressed"],Fk={class:"count"},zk=["aria-pressed"],Hk={class:"count"},Bk=["aria-pressed"],jk={class:"count"},Gk=["aria-pressed"],Wk={class:"count"},Kk={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},Yk={class:"admin-filter-row"},Jk={class:"search-wrap"},Qk={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},Xk={key:3,class:"bulk-bar"},Zk={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},xk={class:"paper-table-head",role:"row"},e0={role:"columnheader",style:{width:"28px"}},t0=["checked"],o0={role:"columnheader"},s0={role:"columnheader"},n0={role:"columnheader",class:"num"},r0={role:"columnheader"},i0={role:"cell",style:{width:"28px"}},a0={type:"checkbox","aria-label":"Select repository"},l0={class:"cell-anon",role:"cell"},d0={class:"anon-text"},u0=["textContent","href"],c0={class:"anon-sub"},p0=["textContent","href"],f0={key:0},m0=["textContent","href"],h0={key:1},v0=["textContent","href"],g0={key:2},y0={class:"cell-status",role:"cell"},b0={class:"status-line"},w0=["textContent"],k0=["textContent","title"],E0=["textContent"],C0=["textContent"],_0={class:"cell-actions",role:"cell"},S0={class:"dropdown"},N0={class:"dropdown-menu dropdown-menu-right"},D0=["href"],R0=["href"],T0=["href"],A0=["onClick"],O0=["onClick"],I0=["onClick"],P0=["onClick"],V0=["onClick"],q0=["onClick"],M0={key:0,class:"paper-table-empty"};function wl(e,t){let s=be("field"),r=be("form");return l(),d("div",zw,[o("div",Hw,[t[22]||(t[22]=o("a",{href:"/admin/"},"Admin",-1)),t[23]||(t[23]=b(" \xA0/\xA0 ",-1)),t[24]||(t[24]=o("a",{href:"/admin/users"},"Users",-1)),t[25]||(t[25]=b(" \xA0/\xA0 ",-1)),o("span",Bw,c(e.userInfo?.username||"Profile"),1)]),o("h1",jw,c(e.userInfo?.username||"User"),1),t[87]||(t[87]=ce('',1)),e.userInfo?(l(),d("div",Gw,[o("div",Ww,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,Kw)):p("v-if",!0),o("div",null,[o("h2",null,[b(c(e.userInfo?.username)+" ",1),o("span",Yw,[o("span",{class:A(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),o("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,Jw)]),e.userInfo?.isAdmin?(l(),d("span",Qw,"Admin")):p("v-if",!0)]),o("div",Xw,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=n=>e.banUser())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])])):p("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=n=>e.activateUser())},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])])):p("v-if",!0),e.userInfo?.isAdmin?p("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=n=>e.promoteUser())},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-shield"})],-1),b(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=n=>e.demoteUser())},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-minus"})],-1),b(" Remove admin",-1)])])):p("v-if",!0)])])]),o("div",Zw,[t[32]||(t[32]=o("div",{class:"detail-label"},"ID",-1)),o("div",xw,c(e.userInfo?._id),1),t[33]||(t[33]=o("div",{class:"detail-label"},"Email",-1)),o("div",ek,c(e.userInfo?.emails?.[0]?.email),1),t[34]||(t[34]=o("div",{class:"detail-label"},"Access token",-1)),e.userInfo?.accessTokens?.github?(l(),d("div",tk,c(e.userInfo?.accessTokens?.github),1)):p("v-if",!0),e.userInfo?.accessTokens?.github?p("v-if",!0):(l(),d("div",ok,"None stored")),t[35]||(t[35]=o("div",{class:"detail-label"},"GitHub",-1)),o("div",sk,[o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[30]||(t[30]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(e.userInfo?.username),1)],8,nk)]),t[36]||(t[36]=o("div",{class:"detail-label"},"Created",-1)),o("div",rk,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[37]||(t[37]=o("div",{class:"detail-label"},"Last connection",-1)),o("div",ik,[e.userInfo?.accessTokenDates?.github?(l(),d("span",ak,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):p("v-if",!0),e.userInfo?.accessTokenDates?.github?p("v-if",!0):(l(),d("span",lk,"never"))]),t[38]||(t[38]=o("div",{class:"detail-label"},"GitHub repos",-1)),o("div",dk,[b(c(e.userInfo?.repositories?.length)+" repositories ",1),o("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=n=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),o("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=n=>e.getGitHubRepositories())},[...t[31]||(t[31]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",uk,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),o("div",ck,[(l(!0),d(X,null,re(e.userInfo?.repositories,(n,i)=>(l(),d("div",pk,[o("div",fk,[t[39]||(t[39]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",mk,[o("span",{class:"repo-name",textContent:c(n?.name)},null,8,hk)])]),o("div",vk,[t[40]||(t[40]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-database"})],-1)),b(" "+c(e.fmt?.humanFileSize(n?.size)),1)])]))),256))])])):p("v-if",!0)])):p("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",gk,[t[42]||(t[42]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),b(" API tokens")],-1)),o("span",yk,c(e.tokens?.length),1)])):p("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",bk,[t[48]||(t[48]=o("p",{class:"paper-page-lede"},[b("Personal API tokens for this admin account. Send as "),o("code",null,"Authorization: Bearer "),b(" to authenticate without GitHub OAuth (useful for development).")],-1)),N((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=me(n=>e.submitForm(n,()=>{e.createToken()}),["prevent"]))},[N(o("input",wk,null,512),[[s,{state:e.viewState,set:n=>{e.tokenForm.name=n},value:e.tokenForm?.name,form:null,options:{}}]]),t[43]||(t[43]=o("button",{type:"submit",class:"btn btn-ink"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})]),b(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",kk,[t[44]||(t[44]=o("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),o("pre",Ek,c(e.tokenForm?.plaintext),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=n=>e.tokenForm.plaintext=null)},"Dismiss")])):p("v-if",!0),e.tokens?.length?(l(),d("div",Ck,[t[46]||(t[46]=o("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[o("div",{role:"columnheader"},"Name"),o("div",{role:"columnheader"},"Created"),o("div",{role:"columnheader"},"Last used"),o("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(X,null,re(e.tokens,(n,i)=>(l(),d("div",_k,[o("div",{role:"cell",textContent:c(n?.name)},null,8,Sk),o("div",{role:"cell",textContent:c(e.fmt?.humanTime(n?.createdAt))},null,8,Nk),o("div",Dk,[n?.lastUsedAt?(l(),d("span",Rk,c(e.fmt?.humanTime(n?.lastUsedAt)),1)):p("v-if",!0),n?.lastUsedAt?p("v-if",!0):(l(),d("span",Tk,"never"))]),o("div",Ak,[o("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:a=>e.revokeToken(n)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,Ok)])]))),256))])):p("v-if",!0),e.tokens?.length?p("v-if",!0):(l(),d("div",Ik,[...t[47]||(t[47]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No tokens yet.",-1)])]))])):p("v-if",!0),o("div",Pk,[t[49]||(t[49]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})]),b(" Anonymized repositories")],-1)),o("span",Vk,c(e.repositories?.length),1)]),o("div",qk,[o("span",Mk,c(e.fmt?.number(e.repositories?.length)),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=n=>e.filters.status.ready=!e.filters.status.ready),"aria-pressed":e.filters?.status?.ready===!1},[t[50]||(t[50]=b("Ready ",-1)),o("span",Lk,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,$k),o("button",{type:"button",class:A(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=n=>e.filters.status.preparing=!e.filters.status.preparing),"aria-pressed":e.filters?.status?.preparing===!1},[t[51]||(t[51]=b("Preparing ",-1)),o("span",Fk,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,Uk),o("button",{type:"button",class:A(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=n=>e.filters.status.error=!e.filters.status.error),"aria-pressed":e.filters?.status?.error===!1},[t[52]||(t[52]=b("Errored ",-1)),o("span",Hk,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,zk),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=n=>e.filters.status.expired=!e.filters.status.expired),"aria-pressed":e.filters?.status?.expired===!1},[t[53]||(t[53]=b("Expired ",-1)),o("span",jk,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,Bk),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=n=>e.filters.status.removed=!e.filters.status.removed),"aria-pressed":e.filters?.status?.removed===!1},[t[54]||(t[54]=b("Removed ",-1)),o("span",Wk,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,Gk)]),N((l(),d("form",Kk,[o("div",Yk,[o("div",Jk,[N(o("input",Qk,null,512),[[s,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),t[56]||(t[56]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=n=>e.exportCsv())},[...t[55]||(t[55]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",Xk,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[57]||(t[57]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=n=>e.bulkRefresh())},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=n=>e.bulkRemoveCache())},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=n=>e.clearSelection())},"Clear")])):p("v-if",!0),o("div",Zk,[o("div",xk,[o("div",e0,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,t0)]),o("div",o0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=n=>e.sortBy("source.repositoryName"))},[t[61]||(t[61]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[60]||(t[60]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",s0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=n=>e.sortBy("status"))},[t[63]||(t[63]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[62]||(t[62]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",n0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=n=>e.sortBy("pageView"))},[t[65]||(t[65]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[64]||(t[64]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",r0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=n=>e.sortBy("anonymizeDate"))},[t[67]||(t[67]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[66]||(t[66]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[68]||(t[68]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[o("div",i0,[N(o("input",a0,null,512),[[s,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),o("div",l0,[t[73]||(t[73]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",d0,[o("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,u0),o("div",c0,[o("a",{textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,p0),n?.options?.update?(l(),d("span",f0,[t[69]||(t[69]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,m0)])):p("v-if",!0),n?.options?.update?p("v-if",!0):(l(),d("span",h0,[t[70]||(t[70]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,v0)])),n?.conference?(l(),d("span",g0,[t[71]||(t[71]=b("\xA0\xB7\xA0",-1)),t[72]||(t[72]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(n?.conference),1)])):p("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" "+c(n?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",y0,[o("span",b0,[o("span",{class:A(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(n?.status))},null,8,w0)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,k0)):p("v-if",!0)]),o("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,E0),o("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,C0),o("div",_0,[o("div",S0,[t[85]||(t[85]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",N0,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[74]||(t[74]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,D0),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[75]||(t[75]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,R0),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[76]||(t[76]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,T0)):p("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.fetchGithubInfo(n),["prevent"])},[...t[77]||(t[77]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,A0),t[83]||(t[83]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updateRepository(n),["prevent"])},[...t[78]||(t[78]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,O0),[[W,n?.status=="ready"||n?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updateRepository(n),["prevent"])},[...t[79]||(t[79]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,I0),[[W,n?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.showStatusMessage(n),["prevent"])},[...t[80]||(t[80]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,P0),[[W,n?.statusMessage]]),t[84]||(t[84]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.removeCache(n),["prevent"])},[...t[81]||(t[81]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,V0),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:me(a=>e.removeRepository(n),["prevent"])},[...t[82]||(t[82]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,q0),[[W,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",M0,[...t[86]||(t[86]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):p("v-if",!0)])])}var $0={class:"container paper-page admin-page"},L0={class:"admin-summary"},U0={class:"summary-total"},F0=["aria-pressed"],z0={class:"count"},H0=["aria-pressed"],B0={class:"count"},j0=["aria-pressed"],G0={class:"count"},W0={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},K0={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},Y0={class:"admin-filter-row"},J0={class:"search-wrap"},Q0={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},X0={key:0,class:"admin-search-hint"},Z0={class:"admin-filter-inline"},x0={class:"form-control form-control-sm"},eE={class:"admin-filter-inline","aria-label":"Pagination"},tE=["disabled"],oE={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},sE=["disabled"],nE={key:0,class:"admin-filter-row"},rE={class:"admin-active-chips"},iE={class:"key"},aE=["onClick"],lE={key:1,class:"bulk-bar"},dE={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},uE={class:"paper-table-head admin-users-row",role:"row"},cE={role:"columnheader",style:{width:"28px"}},pE=["checked"],fE={role:"columnheader"},mE={role:"columnheader"},hE={role:"cell",style:{width:"28px"}},vE={type:"checkbox","aria-label":"Select user"},gE={class:"cell-anon",role:"cell"},yE=["src"],bE={class:"anon-text"},wE=["textContent","href"],kE={class:"anon-sub"},EE={key:0},CE=["href"],_E={key:1},SE={class:"cell-views num",role:"cell"},NE=["textContent","href"],DE={class:"cell-status",role:"cell"},RE=["textContent"],TE={class:"cell-status",role:"cell"},AE={key:0,class:"type-badge type-repo"},OE={key:1,class:"empty-dash"},IE={class:"cell-actions",role:"cell"},PE={class:"dropdown"},VE={class:"dropdown-menu dropdown-menu-right"},qE=["href"],ME=["href"],$E=["onClick"],LE=["onClick"],UE={key:0,class:"paper-table-empty"},FE={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},zE={style:{"font-size":"12px",color:"var(--ink-muted)"}},HE={key:0,class:"pagination-compact"},BE=["disabled"],jE=["max"],GE=["disabled"],WE={class:"admin-filter-inline"},KE={class:"form-control form-control-sm"};function kl(e,t){let s=be("field"),r=be("form");return l(),d("div",$0,[t[46]||(t[46]=ce('
Admin \xA0/\xA0 Users
Users
',3)),o("div",L0,[o("span",U0,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=n=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1}),"aria-pressed":e.query?.status=="active"},[t[13]||(t[13]=b("Active ",-1)),o("span",z0,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,F0),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=n=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1}),"aria-pressed":e.query?.status=="banned"},[t[14]||(t[14]=b("Banned ",-1)),o("span",B0,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,H0),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=n=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1}),"aria-pressed":e.query?.status=="removed"},[t[15]||(t[15]=b("Removed ",-1)),o("span",G0,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,j0)]),e.fetchError?(l(),d("div",W0,[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):p("v-if",!0),N((l(),d("form",K0,[o("div",Y0,[o("div",J0,[N(o("input",Q0,null,512),[[s,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",X0,"/"))]),o("span",Z0,[t[18]||(t[18]=o("label",null,"Role",-1)),N((l(),d("select",x0,[...t[17]||(t[17]=[o("option",{value:""},"Any",-1),o("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:n=>{e.query.role=n},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=n=>e.exportCsv())},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",eE,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[4]||(t[4]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,tE),o("span",oE,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,sE)])]),e.chips?.length?(l(),d("div",nE,[o("div",rE,[(l(!0),d(X,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[o("span",iE,c(n?.label),1),o("span",null,c(n?.value),1),o("button",{type:"button",onClick:a=>e.clearFilter(n.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,aE)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",lE,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=b(" selected",-1))]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=n=>e.bulkBan())},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>{e.selected={},e.allSelected=!1})},"Clear")])):p("v-if",!0),o("div",dE,[o("div",uE,[o("div",cE,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,pE)]),o("div",fE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=n=>e.sortBy("username"))},[t[27]||(t[27]=b("User ",-1)),e.sortIcon("username")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",mE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=n=>e.sortBy("status"))},[t[29]||(t[29]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[31]||(t[31]=o("div",{role:"columnheader"},"Role",-1)),t[32]||(t[32]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,re(e.filteredUsers,(n,i)=>(l(),d("div",{class:A(["paper-table-row admin-users-row",{"row-selected":e.selected[n?.username]}]),role:"row"},[o("div",hE,[N(o("input",vE,null,512),[[s,{state:e.viewState,set:a=>{e.selected[n.username]=a},value:e.selected[n?.username],form:null,options:{}}]])]),o("div",gE,[n?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(n?.photo)},null,8,yE)):p("v-if",!0),o("div",bE,[o("a",{class:"repo-name",textContent:c(n?.username),href:e.safeUrl("/admin/users/"+n?.username)},null,8,wE),o("div",kE,[n?.emails?.[0]?.email?(l(),d("span",EE,c(n?.emails?.[0]?.email)+" \xB7 ",1)):p("v-if",!0),o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+n?.username)},[t[33]||(t[33]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(n?.username),1)],8,CE),n?.dateOfEntry?(l(),d("span",_E,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(n?.dateOfEntry)),1)):p("v-if",!0)])])]),o("div",SE,[t[34]||(t[34]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),o("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(n?.repoCount||0)),href:e.safeUrl("/admin/repositories?owner="+n?.username)},null,8,NE)]),o("div",DE,[o("span",{class:A(["status-dot",{"status-ready":n?.status=="active","status-removed":n?.status=="removed"||n?.status=="banned"}])},null,2),o("span",{textContent:c(e.fmt?.title(n?.status))},null,8,RE)]),o("div",TE,[n?.isAdmin?(l(),d("span",AE,"Admin")):p("v-if",!0),n?.isAdmin?p("v-if",!0):(l(),d("span",OE,"\u2014"))]),o("div",IE,[o("div",PE,[t[40]||(t[40]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",VE,[o("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+n?.username)},[...t[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View details",-1)])],8,qE),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+n?.username)},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),b(" View repositories",-1)])],8,ME),t[39]||(t[39]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:me(a=>e.banUser(n),["prevent"])},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])],8,$E),[[W,n?.status=="active"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.activateUser(n),["prevent"])},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])],8,LE),[[W,n?.status=="removed"||n?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",UE,[...t[41]||(t[41]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No users match the current filters.",-1)])])):p("v-if",!0)]),o("div",FE,[o("span",zE,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",HE,[o("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous",-1)])],8,BE),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,jE),[[s,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[43]||(t[43]=[b("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,GE)])):p("v-if",!0),o("span",WE,[t[45]||(t[45]=o("label",null,"Per page",-1)),N((l(),d("select",KE,[...t[44]||(t[44]=[o("option",{value:"10"},"10",-1),o("option",{value:"25"},"25",-1),o("option",{value:"50"},"50",-1),o("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var YE={class:"anonymize-landing"},JE={class:"anonymize-landing-inner"},QE={class:"form-group mt-4 mb-2"},XE={class:"source-url-label-row"},ZE={key:0,class:"repo-access","aria-label":"GitHub access"},xE={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},eC=["aria-pressed","disabled"],tC=["aria-pressed","disabled"],oC={key:1,class:"connection-badge"},sC={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},nC={key:0,class:"draft-status",role:"status"},rC={key:1,class:"text-danger",role:"alert"},iC={key:2,class:"repo-access-details","aria-label":"GitHub access"},aC={class:"repo-access-main"},lC={class:"repo-access-controls"},dC={key:1,class:"connection-link",href:"/connections"},uC={class:"repo-access-note"},cC={key:0},pC={class:"anonymize-workspace"},fC={class:"anonymize-topbar"},mC={class:"anonymize-topbar-inner"},hC={class:"paper-crumbs"},vC={class:"here"},gC={class:"anonymize-topbar-head"},yC={class:"paper-page-title anonymize-topbar-title"},bC={key:0},wC={key:1},kC={key:0,class:"alert alert-info",role:"status"},EC={key:1,class:"alert alert-info",role:"status"},CC={key:1},_C={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},SC=["aria-selected","tabindex"],NC=["aria-selected","tabindex"],DC={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},RC={class:"anonymize-split"},TC=["role","aria-labelledby"],AC={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},OC={class:"paper-settings-section"},IC={class:"form-group"},PC={class:"source-url-label-row"},VC={key:0,class:"repo-access","aria-label":"GitHub access"},qC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},MC=["aria-pressed","disabled"],$C=["aria-pressed","disabled"],LC={key:1,class:"connection-badge"},UC=["disabled"],FC={class:"invalid-feedback"},zC={class:"invalid-feedback"},HC={class:"invalid-feedback"},BC={class:"invalid-feedback"},jC={key:0,class:"repo-access-details","aria-label":"GitHub access"},GC={class:"repo-access-main"},WC={class:"repo-access-controls"},KC={key:1,class:"connection-link",href:"/connections"},YC={class:"repo-access-note"},JC={key:0},QC={key:1,class:"repo-access-details"},XC={key:0,role:"status"},ZC={key:2,class:"form-grid-2"},xC={class:"form-group"},e_={class:"input-group"},t_={class:"form-control",id:"branch",name:"branch"},o_=["textContent","value"],s_={class:"input-group-append"},n_={class:"form-group"},r_=["disabled"],i_={class:"invalid-feedback"},a_={class:"invalid-feedback"},l_={class:"form-check"},d_={class:"form-check-input",type:"checkbox",id:"update",name:"update"},u_={class:"paper-settings-section"},c_={class:"form-group"},p_=["disabled"],f_={class:"form-text text-muted"},m_={class:"invalid-feedback"},h_={class:"form-group"},v_=["disabled"],g_={class:"form-text text-muted"},y_={class:"invalid-feedback"},b_={class:"form-group"},w_=["disabled"],k_={class:"form-text text-muted"},E_={class:"invalid-feedback"},C_={class:"form-group"},__={class:"form-text text-muted"},S_=["href"],N_={class:"invalid-feedback"},D_={class:"form-text text-muted"},R_={class:"paper-settings-section"},T_={class:"form-group"},A_={class:"form-text text-muted"},O_={class:"warning-feedback"},I_={class:"invalid-feedback"},P_={class:"paper-settings-section"},V_={class:"form-check"},q_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},M_={class:"form-check"},$_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},L_={class:"form-check"},U_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},F_={class:"form-check"},z_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},H_={class:"form-check"},B_=["disabled"],j_={key:0,class:"form-text text-muted"},G_={key:1,class:"form-text text-muted"},W_={class:"form-check"},K_={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},Y_={class:"form-check"},J_={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},Q_={class:"form-check"},X_={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},Z_={class:"form-check"},x_={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},e2={class:"form-check"},t2={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},o2={class:"form-check"},s2={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},n2={class:"form-check"},r2={class:"form-check-input",type:"checkbox",id:"title",name:"title"},i2={class:"form-check"},a2={class:"form-check-input",type:"checkbox",id:"body",name:"body"},l2={class:"form-check"},d2={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},u2={class:"form-check"},c2={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},p2={class:"form-check"},f2={class:"form-check-input",type:"checkbox",id:"username",name:"username"},m2={class:"form-check"},h2={class:"form-check-input",type:"checkbox",id:"date",name:"date"},v2={class:"form-check"},g2={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},y2={class:"paper-settings-section"},b2={class:"form-grid-2"},w2={class:"form-group"},k2={class:"form-control",id:"expiration",name:"expiration"},E2={class:"form-group"},C2=["min","max"],_2={class:"invalid-feedback"},S2={class:"invalid-feedback"},N2={class:"paper-settings-section"},D2={class:"form-group"},R2={style:{position:"relative"}},T2={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},A2={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},O2=["onClick"],I2=["src"],P2=["textContent"],V2=["textContent"],q2={class:"coauthor-list"},M2={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},$2=["src"],L2=["textContent","href"],U2=["onClick"],F2={class:"form-text text-muted"},z2=["textContent"],H2={key:1,class:"draft-status",role:"status"},B2={key:2,class:"draft-status"},j2={key:3,class:"anonymize-review-note"},G2={class:"anonymize-submit-bar"},W2=["disabled"],K2=["disabled"],Y2=["disabled"],J2=["disabled"],Q2=["disabled"],X2=["disabled"],Z2=["role","aria-labelledby"],x2={class:"anonymize-preview-head"},eS={class:"anonymize-preview-sub"},tS={key:0,class:"anonymize-preview-status",role:"status"},oS={key:1,class:"anonymize-preview-status",role:"status"},sS={key:2,class:"anonymize-preview-status",role:"alert"},nS={key:3,class:"anonymize-preview-status"},rS=["innerHTML"],iS=["role","aria-labelledby"],aS={class:"anonymize-preview-head"},lS={class:"anonymize-preview-sub"},dS={key:0,class:"anonymize-preview-status",role:"status"},uS={key:1,class:"anonymize-preview-status",role:"status"},cS={key:2,class:"anonymize-preview-status",role:"alert"},pS={key:3,class:"anonymize-preview-body"},fS={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},mS={class:"pr-title mb-1"},hS={key:0},vS=["textContent"],gS={key:0},yS={key:1},bS={key:2},wS={class:"pr-comments mt-3"},kS={class:"pr-comment"},ES={class:"pr-comment-head"},CS=["textContent"],_S={key:0,class:"pr-comment-date"},SS={key:3},NS={class:"pr-comments"},DS={class:"pr-comment"},RS={class:"pr-comment-head"},TS={key:0,class:"pr-comment-author"},AS=["textContent"],OS=["textContent"],IS={key:0,class:"pr-comment-body"},PS=["role","aria-labelledby"],VS={class:"anonymize-preview-head"},qS={class:"anonymize-preview-sub"},MS={key:0,class:"anonymize-preview-status",role:"status"},$S={key:1,class:"anonymize-preview-status",role:"status"},LS={key:2,class:"anonymize-preview-status",role:"alert"},US={key:3,class:"anonymize-preview-body"},FS={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},zS={class:"pr-title mb-1"},HS={key:0},BS=["textContent"],jS={key:0},GS={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},WS={key:2,class:"paper-tabs",role:"tablist"},KS=["aria-selected","tabindex"],YS=["aria-selected","tabindex"],JS=["textContent"],QS={key:3,class:"anonymize-preview-status"},XS={class:"paper-tab-content"},ZS={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},xS=["innerHTML"],eN={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},tN={class:"pr-comments"},oN={class:"pr-comment"},sN={class:"pr-comment-head"},nN={key:0,class:"pr-comment-author"},rN=["textContent"],iN=["textContent"],aN={key:0,class:"pr-comment-body"};function El(e,t){let s=We("gist-file"),r=We("markdown"),n=be("field"),i=be("form");return l(),d("div",{class:A(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview"}])},[p(" ===== STATE 1: No URL \u2014 centered input ===== "),N(o("div",YE,[o("div",JE,[t[36]||(t[36]=o("div",{class:"paper-crumbs"},[b("My work \xA0/\xA0 "),o("span",{class:"here"},"New anonymization")],-1)),t[37]||(t[37]=o("h1",{class:"paper-page-title"},[b("New "),o("em",null,"anonymization")],-1)),t[38]||(t[38]=o("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, redact the terms you choose in text files, and give you a share link. Images and PDFs are served unchanged when enabled. Review them before sharing. ",-1)),o("div",QE,[o("div",XE,[t[32]||(t[32]=o("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",ZE,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",xE,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},[...t[31]||(t[31]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,eC),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,tC)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",oC,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):p("v-if",!0)])):p("v-if",!0)]),N(o("input",sC,null,512),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),e.draftRestored?(l(),d("div",nC,[t[33]||(t[33]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[2]||(t[2]=a=>e.discardDraft())},"Discard draft")])):p("v-if",!0),e.sourceUrlError?(l(),d("p",rC,c(e.sourceUrlError),1)):p("v-if",!0),t[39]||(t[39]=o("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",iC,[o("div",aC,[o("div",lC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=a=>e.grantGitHubAccess())},[...t[34]||(t[34]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",dC,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),o("div",uC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",cC,"Select repositories on GitHub, then return here.")):p("v-if",!0),t[35]||(t[35]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):p("v-if",!0)])],512),[[W,!e.workspaceOpen&&!e.isUpdate]]),p(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),N(o("div",pC,[o("header",fC,[o("div",mC,[o("div",hC,[t[40]||(t[40]=o("a",{href:"/dashboard"},"My work",-1)),t[41]||(t[41]=b(" \xA0/\xA0 ",-1)),o("span",vC,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),o("div",gC,[o("h1",yC,[e.isUpdate?p("v-if",!0):(l(),d("span",bC,[...t[42]||(t[42]=[b("New ",-1),o("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",wC,[...t[43]||(t[43]=[b("Edit ",-1),o("em",null,"anonymization",-1)])])):p("v-if",!0)]),N(o("span",{class:A(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[W,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",kC,[t[44]||(t[44]=o("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),o("button",{type:"button",class:"btn btn-ink",onClick:t[4]||(t[4]=a=>e.connectGistApp())},"Connect GitHub App to access gists")])):p("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",EC,[t[45]||(t[45]=o("p",null,"Connect GitHub OAuth to access gists. Your account and existing anonymizations stay the same, and your draft will be restored when you return.",-1)),t[46]||(t[46]=o("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[5]||(t[5]=a=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(l(),d("p",CC,"GitHub OAuth is currently unavailable. Please try again later."))])):p("v-if",!0),o("nav",_C,[o("button",{id:"workspace-settings-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="settings","aria-controls":"workspace-settings",tabindex:e.mobilePane==="settings"?0:-1,onKeydown:t[6]||(t[6]=a=>e.previewTabKeydown(a)),onClick:t[7]||(t[7]=a=>e.selectMobilePane("settings"))},"Settings",40,SC),o("button",{id:"workspace-preview-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="preview","aria-controls":"workspace-preview",tabindex:e.mobilePane==="preview"?0:-1,onKeydown:t[8]||(t[8]=a=>e.previewTabKeydown(a)),onClick:t[9]||(t[9]=a=>e.selectMobilePane("preview"))},"Reviewer preview",40,NC)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",DC,c(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):p("v-if",!0),o("div",RC,[p(" Form column (left) "),o("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[N((l(),d("form",AC,[o("section",OC,[t[57]||(t[57]=o("div",{class:"paper-section-eyebrow"},"Source",-1)),o("div",IC,[o("div",PC,[t[48]||(t[48]=o("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",VC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",qC,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[10]||(t[10]=a=>e.chooseGitHubConnection("github-app"))},[...t[47]||(t[47]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,MC),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[11]||(t[11]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,$C)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",LC,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):p("v-if",!0)])):p("v-if",!0)]),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,UC),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),N(o("div",FC," Please provide a valid GitHub URL. ",512),[[W,e.anonymize?.sourceUrl?.errors?.github]]),N(o("div",zC," Not accessible. The organization may restrict access. ",512),[[W,e.anonymize?.sourceUrl?.errors?.access]]),N(o("div",HC," Does not exist or is not accessible. ",512),[[W,e.anonymize?.sourceUrl?.errors?.missing]]),N(o("div",BC," Already anonymized. ",512),[[W,e.anonymize?.sourceUrl?.errors?.used]])]),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",jC,[o("div",GC,[o("div",WC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=a=>e.grantGitHubAccess())},[...t[49]||(t[49]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",KC,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),o("div",YC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",JC,"Select repositories on GitHub, then return here.")):p("v-if",!0),t[50]||(t[50]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):p("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",QC,[t[51]||(t[51]=o("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[13]||(t[13]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",XC,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):p("v-if",!0)])):p("v-if",!0),e.detectedType==="repo"?(l(),d("div",ZC,[o("div",xC,[t[53]||(t[53]=o("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),o("div",e_,[N((l(),d("select",t_,[(l(!0),d(X,null,re(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,o_))),256))])),[[n,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),o("div",s_,[o("button",{class:"btn btn-icon",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[14]||(t[14]=a=>e.getBranches(!0)),"aria-label":"Refresh"},[...t[52]||(t[52]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])])]),o("div",n_,[t[54]||(t[54]=o("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,r_),[[n,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),N(o("div",i_," The commit SHA is not valid. ",512),[[W,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),N(o("div",a_," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[W,e.anonymize?.commit?.errors?.exists]])])])):p("v-if",!0),N(o("div",l_,[N(o("input",d_,null,512),[[n,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[55]||(t[55]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[56]||(t[56]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[W,e.detectedType]])]),N(o("section",u_,[t[68]||(t[68]=o("div",{class:"paper-section-eyebrow"},"Identity",-1)),N(o("div",c_,[t[60]||(t[60]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,p_),[[n,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",f_,[t[58]||(t[58]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[59]||(t[59]=b(".",-1))]),N(o("div",m_,"ID can only contain letters and numbers.",512),[[W,e.anonymize?.repoId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[W,e.anonymize?.repoId?.errors?.used]])],512),[[W,e.detectedType==="repo"]]),N(o("div",h_,[t[63]||(t[63]=o("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,v_),[[n,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",g_,[t[61]||(t[61]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[62]||(t[62]=b(".",-1))]),N(o("div",y_,"ID can only contain letters and numbers.",512),[[W,e.anonymize?.pullRequestId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[W,e.anonymize?.pullRequestId?.errors?.used]])],512),[[W,e.detectedType==="pr"]]),N(o("div",b_,[t[66]||(t[66]=o("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,w_),[[n,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",k_,[t[64]||(t[64]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[65]||(t[65]=b(".",-1))]),N(o("div",E_,"ID can only contain letters and numbers.",512),[[W,e.anonymize?.gistId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[W,e.anonymize?.gistId?.errors?.used]])],512),[[W,e.detectedType==="gist"]]),o("div",C_,[t[67]||(t[67]=o("label",{class:"paper-field-label",for:"conference"},[b("Conference "),o("span",{class:"paper-optional"},"(optional)")],-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[n,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(o("small",__,[o("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,S_),b(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[W,e.conference_data]]),N(o("div",N_,"The conference is not activated.",512),[[W,e.anonymize?.conference?.errors?.activated]]),N(o("small",D_,"Link to a conference to apply its shared defaults.",512),[[W,!e.conference_data]])])],512),[[W,e.detectedType]]),N(o("section",R_,[t[76]||(t[76]=o("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),o("div",T_,[t[75]||(t[75]=o("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),N(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[n,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),o("small",A_,[t[69]||(t[69]=b("One term per line (regex allowed). Replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[70]||(t[70]=b(", or use ",-1)),t[71]||(t[71]=o("code",null,"term=>replacement",-1)),t[72]||(t[72]=b(" to pick your own (e.g. ",-1)),t[73]||(t[73]=o("code",null,"Anonymous=>ABC",-1)),t[74]||(t[74]=b(").",-1))]),N(o("div",O_,"Regex characters detected. Escape them if unintentional.",512),[[W,e.termsRegexWarning]]),N(o("div",I_,"Terms are in an invalid format.",512),[[W,e.anonymize?.terms?.errors?.format]])])],512),[[W,e.detectedType]]),N(o("section",P_,[t[97]||(t[97]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),N(o("div",null,[o("div",V_,[N(o("input",q_,null,512),[[n,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[77]||(t[77]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),o("div",M_,[N(o("input",$_,null,512),[[n,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[78]||(t[78]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[79]||(t[79]=o("small",{class:"form-text text-muted"},"Images are served unchanged and may contain names or affiliations.",-1))]),o("div",L_,[N(o("input",U_,null,512),[[n,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[80]||(t[80]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[81]||(t[81]=o("small",{class:"form-text text-muted"},[b("PDF contents and metadata are served unchanged. "),o("a",{href:"/faq#formats"},"About supported formats")],-1))]),o("div",F_,[N(o("input",z_,null,512),[[n,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[82]||(t[82]=o("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),o("div",H_,[N(o("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,B_),[[n,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[83]||(t[83]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?p("v-if",!0):(l(),d("small",j_,c(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(l(),d("small",G_,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):p("v-if",!0)])],512),[[W,e.detectedType==="repo"]]),N(o("div",null,[o("div",W_,[N(o("input",K_,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[84]||(t[84]=o("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),o("div",Y_,[N(o("input",J_,null,512),[[n,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[85]||(t[85]=o("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),o("div",Q_,[N(o("input",X_,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[86]||(t[86]=o("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),o("div",Z_,[N(o("input",x_,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[87]||(t[87]=o("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),o("div",e2,[N(o("input",t2,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[88]||(t[88]=o("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),o("div",o2,[N(o("input",s2,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[89]||(t[89]=o("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[W,e.detectedType==="gist"]]),N(o("div",null,[o("div",n2,[N(o("input",r2,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[90]||(t[90]=o("label",{class:"form-check-label",for:"title"},"PR title",-1))]),o("div",i2,[N(o("input",a2,null,512),[[n,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[91]||(t[91]=o("label",{class:"form-check-label",for:"body"},"PR body",-1))]),o("div",l2,[N(o("input",d2,null,512),[[n,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[92]||(t[92]=o("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),o("div",u2,[N(o("input",c2,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[93]||(t[93]=o("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),o("div",p2,[N(o("input",f2,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[94]||(t[94]=o("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),o("div",m2,[N(o("input",h2,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[95]||(t[95]=o("label",{class:"form-check-label",for:"date"},"Dates",-1))]),o("div",v2,[N(o("input",g2,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[96]||(t[96]=o("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[W,e.detectedType==="pr"]])],512),[[W,e.detectedType]]),N(o("section",y2,[t[101]||(t[101]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",b2,[o("div",w2,[t[99]||(t[99]=o("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),N((l(),d("select",k2,[...t[98]||(t[98]=[o("option",{value:"redirect"},"Redirect to GitHub when expired",-1),o("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),o("div",E2,[t[100]||(t[100]=o("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,C2),[[n,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),N(o("div",_2,"Pick a date in the future.",512),[[W,e.anonymize?.expirationDate?.errors?.min]]),N(o("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[W,e.anonymize?.expirationDate?.errors?.max]]),N(o("div",S2,"Enter a valid expiration date.",512),[[W,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[W,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[W,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[W,e.detectedType]]),N(o("section",N2,[t[105]||(t[105]=o("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[106]||(t[106]=o("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),N(o("div",D2,[t[102]||(t[102]=o("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),o("div",R2,[N(o("input",T2,null,512),[[n,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),N(o("div",A2,[(l(!0),d(X,null,re(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:me(f=>e.addCoauthor(a,f),["prevent"])},[o("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,I2),o("span",{textContent:c(a?.username)},null,8,P2)],8,O2))),256))],512),[[W,e.coauthorResults?.length>0]])]),N(o("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,V2),[[W,e.coauthorError]])],512),[[W,e.role==="owner"||e.role==="admin"]]),o("div",q2,[(l(!0),d(X,null,re(e.coauthors,(a,u)=>(l(),d("div",M2,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,$2)):p("v-if",!0),o("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,L2),t[104]||(t[104]=o("span",{class:"type-badge type-coauthor"},"Co-author",-1)),N(o("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:f=>e.removeCoauthor(a),"aria-label":"Remove co-author"},[...t[103]||(t[103]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,U2),[[W,e.role==="owner"||e.role==="admin"]])]))),256)),N(o("div",F2," No co-authors yet. ",512),[[W,!e.coauthors||e.coauthors?.length===0]])])],512),[[W,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,z2)):p("v-if",!0),e.draftRestored?(l(),d("div",H2,[t[107]||(t[107]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[15]||(t[15]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",B2,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[16]||(t[16]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):p("v-if",!0),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",j2,"Review enabled images and PDFs before sharing. Their contents are not anonymized.")):p("v-if",!0),o("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[17]||(t[17]=a=>e.selectMobilePane("preview"))},[...t[108]||(t[108]=[b("Review preview ",-1),o("span",{"aria-hidden":"true"},"\u2192",-1)])]),N(o("div",G2,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[18]||(t[18]=me(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[109]||(t[109]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Repository ",-1)])],8,W2)):p("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[19]||(t[19]=me(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[110]||(t[110]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Repository ",-1)])],8,K2)):p("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[20]||(t[20]=me(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[111]||(t[111]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Pull Request ",-1)])],8,Y2)):p("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[21]||(t[21]=me(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[112]||(t[112]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Pull Request ",-1)])],8,J2)):p("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[22]||(t[22]=me(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[113]||(t[113]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Gist ",-1)])],8,Q2)):p("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[23]||(t[23]=me(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[114]||(t[114]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Gist ",-1)])],8,X2)):p("v-if",!0)],512),[[W,e.detectedType]])])),[[i,e.viewState]])],8,TC),p(" Preview column (right) "),e.detectedType==="repo"?(l(),d("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",x2,[t[115]||(t[115]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",eS,c(e.previewStatus==="ready"?"README with redactions applied":"README preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",tS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",oS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",sS,[t[116]||(t[116]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[24]||(t[24]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",nS,"No README is available to preview. Review the published files before sharing.")):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",{key:4,class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,rS)):p("v-if",!0)],8,Z2)):p("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",{key:1,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",aS,[t[117]||(t[117]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",lS,c(e.previewStatus==="ready"?"Gist with redactions applied":"Gist preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",dS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",uS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",cS,[t[118]||(t[118]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[25]||(t[25]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",pS,[o("div",fS,[o("h2",mS,[e.options?.title?(l(),d("span",hS,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):p("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,vS)):p("v-if",!0)]),e.options?.origin?(l(),d("small",gS,"Gist ID: "+c(e.details?.source?.gistId),1)):p("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",yS,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):p("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",bS,[o("ul",wS,[(l(!0),d(X,null,re(e.previewGistFiles,(a,u)=>(l(),d("li",kS,[o("div",ES,[o("strong",{textContent:c(a?.filename)},null,8,CS),a?.language?(l(),d("span",_S,c(a?.language),1)):p("v-if",!0)]),Ce(s,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):p("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",SS,[t[121]||(t[121]=o("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),o("ul",NS,[(l(!0),d(X,null,re(e.details?.gist?.comments,(a,u)=>(l(),d("li",DS,[o("div",RS,[e.options?.username?(l(),d("span",TS,[t[119]||(t[119]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[120]||(t[120]=b(" @",-1)),o("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,AS)])):p("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,OS)):p("v-if",!0)]),e.options?.body?(l(),d("div",IS,[Ce(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0)]))),256))])])):p("v-if",!0)])):p("v-if",!0)],8,iS)):p("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",{key:2,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",VS,[t[122]||(t[122]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",qS,c(e.previewStatus==="ready"?"Pull request with redactions applied":"Pull request preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",MS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",$S,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",LS,[t[123]||(t[123]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[26]||(t[26]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",US,[o("div",FS,[o("h2",zS,[e.options?.title?(l(),d("span",HS,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):p("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,BS)):p("v-if",!0)]),e.options?.origin?(l(),d("small",jS,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",GS,[Ce(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",WS,[e.options?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[27]||(t[27]=a=>e.previewTabKeydown(a)),onClick:t[28]||(t[28]=a=>e.prTabState.active="diff")},[...t[124]||(t[124]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,KS)):p("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[29]||(t[29]=a=>e.previewTabKeydown(a)),onClick:t[30]||(t[30]=a=>e.prTabState.active="comments")},[t[125]||(t[125]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,JS)],42,YS)):p("v-if",!0)])):p("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",QS,"Diff and comments are hidden by your display settings.")):p("v-if",!0),o("div",XS,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",ZS,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,xS)])):p("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",eN,[o("ul",tN,[(l(!0),d(X,null,re(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",oN,[o("div",sN,[e.options?.username?(l(),d("span",nN,[t[126]||(t[126]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[127]||(t[127]=b(" @",-1)),o("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,rN)])):p("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,iN)):p("v-if",!0)]),e.options?.body?(l(),d("div",aN,[Ce(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0)]))),256))])])):p("v-if",!0)])])):p("v-if",!0)],8,PS)):p("v-if",!0)])],512),[[W,e.workspaceOpen||e.isUpdate]])],2)}var lN={class:"container-fluid h-100 anonymize-page"},dN={class:"row h-100 flex-column flex-md-row"},uN={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},cN={class:"form-group"},pN={class:"form-group"},fN={class:"form-check"},mN={class:"form-check-input",type:"checkbox",id:"update",name:"update"},hN={class:"form-group"},vN={class:"form-text text-muted"},gN=["href"],yN={class:"invalid-feedback"},bN={class:"form-text text-muted"},wN={class:"form-group"},kN={id:"idHelp",class:"form-text text-muted"},EN={class:"invalid-feedback"},CN={class:"form-group"},_N={class:"invalid-feedback"},SN={class:"form-group"},NN={class:"form-control",id:"expiration",name:"expiration"},DN={class:"form-group",id:"expiration-date-form"},RN={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},TN={class:"accordion mb-3",id:"options"},AN={class:"card"},ON={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},IN={class:"card-body"},PN={class:"form-group mb-0"},VN={class:"form-check"},qN={class:"form-check-input",type:"checkbox",id:"link",name:"link"},MN={class:"form-check"},$N={class:"form-check-input",type:"checkbox",id:"image",name:"image"},LN={class:"form-check"},UN={class:"form-check-input",type:"checkbox",id:"date",name:"date"},FN={class:"form-check"},zN={class:"form-check-input",type:"checkbox",id:"username",name:"username"},HN={class:"form-check"},BN={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},jN={class:"form-check"},GN={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},WN={class:"form-check"},KN={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},YN={class:"form-check"},JN={class:"form-check-input",type:"checkbox",id:"title",name:"title"},QN={class:"form-check"},XN={class:"form-check-input",type:"checkbox",id:"body",name:"body"},ZN=["textContent"],xN={class:"anonymize-submit-bar"},eD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},tD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},oD={class:"pr-title mb-1"},sD={key:0},nD=["textContent"],rD={key:0},iD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},aD={class:"nav nav-tabs",id:"myTab",role:"tablist"},lD={key:0,class:"nav-item",role:"presentation"},dD={key:1,class:"nav-item",role:"presentation"},uD=["textContent"],cD={class:"tab-content",id:"pills-tabContent"},pD={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},fD={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},mD={style:{"overflow-x":"auto"}},hD=["innerHTML"],vD={key:0,class:"pr-comments list-group"},gD={class:"pr-comment list-group-item"},yD={class:"d-flex w-100 justify-content-between flex-wrap"},bD={key:0,class:"mb-1"},wD=["textContent"],kD={class:"mb-1"};function Cl(e,t){let s=We("markdown"),r=be("field"),n=be("form");return l(),d("div",lN,[o("div",dN,[o("div",uN,[o("div",{class:A(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[N((l(),d("form",{class:A(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=ce('
Anonymize \xA0/\xA0 Pull request
Anonymize a pull request
Fill in the details \u2014 it only takes a minute.
Source
',4)),p(" pullRequestUrl "),o("div",cN,[t[2]||(t[2]=o("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[W,e.anonymize?.pullRequestUrl?.errors?.access]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[W,e.anonymize?.pullRequestUrl?.errors?.missing]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[W,e.anonymize?.pullRequestUrl?.errors?.used]])]),N(o("div",null,[o("div",pN,[o("div",fN,[N(o("input",mN,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=o("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})]),b(" Conference ID ")],-1)),p(" Conference "),o("div",hN,[t[5]||(t[5]=o("label",{for:"conference"},[b("Conference ID "),o("span",{class:"text-muted"},"(Optional)")],-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(o("small",vN,[o("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,gN),b(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[W,e.conference_data]]),N(o("div",yN," The conference is not activated. ",512),[[W,e.anonymize?.conference?.errors?.activated]]),N(o("small",bN," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[W,!e.conference_data]])]),t[27]||(t[27]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b(" Anonymization Options ")],-1)),p(" Pull Request ID "),o("div",wN,[t[6]||(t[6]=o("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",kN,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),N(o("div",EN," Repository id can only contain letters and numbers ",512),[[W,e.anonymize?.pullRequestId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[W,e.anonymize?.pullRequestId?.errors?.used]])]),p(" Terms "),o("div",CN,[t[7]||(t[7]=o("label",{for:"terms"},"Terms to anonymize",-1)),N(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=o("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),N(o("div",_N," Terms are in an invalid format ",512),[[W,e.anonymize?.terms?.errors?.format]])]),o("div",SN,[t[10]||(t[10]=o("label",{for:"expiration"},"Expiration strategy",-1)),N((l(),d("select",NN,[...t[9]||(t[9]=[o("option",{value:"never",selected:""},"Never expire",-1),o("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),o("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),N(o("div",DN,[t[12]||(t[12]=o("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),N(o("input",RN,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[W,e.options?.expirationMode=="remove"]]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[W,e.options?.expirationMode=="redirect"]])],512),[[W,e.options?.expirationMode!="never"]]),o("div",TN,[o("div",AN,[t[25]||(t[25]=ce('
',1)),o("div",ON,[o("div",IN,[o("div",PN,[o("div",VN,[N(o("input",qN,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),o("div",MN,[N(o("input",$N,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),o("div",LN,[N(o("input",UN,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=o("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=o("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),o("div",FN,[N(o("input",zN,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"username"},"Display username",-1))]),o("div",HN,[N(o("input",BN,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),o("div",jN,[N(o("input",GN,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),o("div",WN,[N(o("input",KN,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),o("div",YN,[N(o("input",JN,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),o("div",QN,[N(o("input",XN,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[W,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,ZN)):p("v-if",!0),N(o("div",xN,[e.isUpdate?p("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=me(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=me(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update ",-1)])])):p("v-if",!0)],512),[[W,e.pullRequestUrl]])],2)),[[n,e.viewState]])],2)]),e.details?(l(),d("div",eD,[o("div",tD,[o("h2",oD,[e.options?.title?(l(),d("span",sD,c(e.anonymize(e.details?.pullRequest?.title)),1)):p("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,nD)):p("v-if",!0)]),e.options?.origin?(l(),d("small",rD,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",iD,[Ce(s,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0),o("ul",aD,[e.options?.diff?(l(),d("li",lD,[...t[31]||(t[31]=[o("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):p("v-if",!0),e.options?.comments?(l(),d("li",dD,[o("button",{class:A(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,uD)],2)])):p("v-if",!0)]),o("div",cD,[o("div",pD,[e.options?.diff?(l(),d("div",fD,[o("pre",mD,[o("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,hD)])])):p("v-if",!0)]),o("div",{class:A(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",vD,[(l(!0),d(X,null,re(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",gD,[o("div",yD,[e.options?.username?(l(),d("h5",bD," @"+c(e.anonymize(i?.author)),1)):p("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,wD)):p("v-if",!0)]),o("p",kD,[e.options?.body?(l(),Mt(s,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):p("v-if",!0)])]))),256))])):p("v-if",!0)],2)])])):p("v-if",!0)])])}var ED={class:"container paper-page claim-page"},CD={class:"paper-settings-main claim-form"},_D={class:"form-group"},SD={class:"invalid-feedback"},ND={class:"form-group"};function _l(e,t){let s=be("field"),r=be("form");return l(),d("div",ED,[t[6]||(t[6]=ce('
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),o("div",CD,[t[5]||(t[5]=o("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)),N((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=me(n=>e.submitForm(n,()=>{e.claim()}),["prevent"]))},[o("div",_D,[t[1]||(t[1]=o("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),N(o("input",{type:"text",class:A(["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:n=>{e.repoUrl=n},value:e.repoUrl,form:"claimForm",options:{}}]]),N(o("div",SD," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[W,e.claimForm?.repoUrl?.errors?.not_found]])]),o("div",ND,[t[2]||(t[2]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(o("input",{type:"text",class:A(["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:n=>{e.repoId=n},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=o("small",{id:"idHelp",class:"form-text text-muted"},[b("The ID is the last part of the anonymized URL: "),o("code",null,"anonymous.4open.science/r/"),b(".")],-1))]),t[4]||(t[4]=o("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var DD={class:"container page paper-page conference-page"},RD={class:"paper-crumbs"},TD={class:"here"},AD={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},OD=["textContent"],ID={key:0,class:"paper-page-lede"},PD=["textContent","href"],VD={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},qD=["textContent"],MD=["href"],$D={class:"paper-meta-rule"},LD=["textContent"],UD=["textContent"],FD={key:0},zD={class:"search-wrap"},HD={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},BD={class:"dashboard-filter-controls"},jD={class:"dropdown"},GD={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},WD={class:"filter-btn-value"},KD={class:"dropdown-menu","aria-labelledby":"dropdownSort"},YD={class:"form-check dropdown-item"},JD={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},QD={class:"form-check dropdown-item"},XD={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},ZD={class:"form-check dropdown-item"},xD={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},eR={class:"form-check dropdown-item"},tR={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},oR={class:"dropdown"},sR={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},nR={key:0,class:"filter-btn-value"},rR={key:1,class:"filter-btn-value"},iR={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},aR={class:"form-check dropdown-item"},lR=["id"],dR=["for"],uR={class:"dashboard-meta"},cR={class:"dashboard-count"},pR={key:0},fR={key:0},mR={key:1},hR={key:1},vR={key:0,class:"filter-chip"},gR=["onClick","aria-label"],yR={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},bR={class:"cell-anon",role:"cell"},wR={class:"anon-text"},kR=["textContent","href"],ER={class:"anon-sub"},CR={class:"anon-source"},_R=["textContent","href"],SR={key:0},NR=["textContent","href"],DR={key:1},RR=["href"],TR={class:"cell-status",role:"cell"},AR={class:"status-line"},OR=["textContent"],IR={key:0,class:"status-sub"},PR={class:"cell-views num",role:"cell"},VR=["textContent"],qR={class:"cell-expires",role:"cell"},MR={key:0,class:"expires-never"},$R=["textContent"],LR={key:2,class:"expires-past"},UR={key:0},FR={key:3,class:"empty-dash","aria-label":"Not applicable"},zR={class:"cell-actions",role:"cell"},HR={class:"dropdown"},BR=["aria-label"],jR={class:"dropdown-menu dropdown-menu-right"},GR=["href"],WR=["href"],KR={key:0,class:"paper-table-empty"},YR={key:0},JR={key:1},QR={key:2,class:"paper-table-empty-actions"};function Sl(e,t){let s=be("field"),r=be("form");return l(),d("div",DD,[o("div",null,[o("div",RD,[t[2]||(t[2]=o("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=b(" \xA0/\xA0 ",-1)),t[4]||(t[4]=o("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=b(" \xA0/\xA0 ",-1)),o("span",TD,c(e.conference?.conferenceID),1)]),o("div",AD,[o("div",null,[o("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,OD),e.conference?.url?(l(),d("p",ID,[o("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,PD)])):p("v-if",!0)]),o("div",VD,[o("span",{class:A(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[o("span",{class:A(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),o("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,qD)],2),o("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit conference",-1)])],8,MD)])]),o("div",$D,[o("span",null,[t[7]||(t[7]=b("ID ",-1)),o("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,LD)]),o("span",null,[t[8]||(t[8]=b("Review window ",-1)),o("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),o("span",null,[t[9]||(t[9]=b("Repositories ",-1)),o("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),o("span",null,[t[10]||(t[10]=b("Plan ",-1)),o("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,UD)]),e.conference?.price?(l(),d("span",FD,[t[11]||(t[11]=b("Cost so far ",-1)),o("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):p("v-if",!0)]),t[32]||(t[32]=o("div",{class:"paper-section-eyebrow"},"Repositories",-1)),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=me(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[o("div",zD,[N(o("input",HD,null,512),[[s,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),o("div",BD,[o("div",jD,[o("button",GD,[t[12]||(t[12]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",WD,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),o("div",KD,[t[17]||(t[17]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",YD,[N(o("input",JD,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),o("div",QD,[N(o("input",XD,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",ZD,[N(o("input",xD,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",eR,[N(o("input",tR,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=o("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),o("div",oR,[o("button",sR,[t[18]||(t[18]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",nR,"All")):p("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?p("v-if",!0):(l(),d("span",rR,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",iR,[t[19]||(t[19]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(X,null,re(e.statusLabels,(n,i,a)=>(l(),d("div",aR,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,lR),[[s,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+i},c(n),9,dR)]))),256))])])])],32)),[[r,e.viewState]]),o("div",uR,[o("span",cR,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",pR,[b(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",fR,"y")):p("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",mR,"ies")):p("v-if",!0)])):p("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",hR,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):p("v-if",!0)]),(l(!0),d(X,null,re(e.filters?.status,(n,i,a)=>(l(),d(X,null,[n===!1?(l(),d("span",vR,[b(" Hiding "+c(e.statusLabels[i])+" ",1),o("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,gR)])):p("v-if",!0)],64))),256))]),o("div",yR,[t[31]||(t[31]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Repository"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Views"),o("div",{role:"columnheader"},"Expires"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(X,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error"}]),role:"row",key:n?.repoId},[o("div",bR,[t[22]||(t[22]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",wR,[o("a",{class:"repo-name",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId+"/")},null,8,kR),o("div",ER,[o("span",CR,[o("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,_R),n?.options?.update&&n?.source?.branch?(l(),d("span",SR,[t[20]||(t[20]=b(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,NR)])):p("v-if",!0),n?.source?.commit?(l(),d("span",DR,[t[21]||(t[21]=b(" \xB7 ",-1)),o("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,RR)])):p("v-if",!0)])])])]),o("div",TR,[o("div",AR,[o("span",{class:A(["status-dot","status-"+(n?.status=="error"?"error":n?.status=="ready"?"ready":n?.status=="expired"||n?.status=="removed"?n?.status:"progress")]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,OR)]),n?.anonymizeDate?(l(),d("div",IR,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):p("v-if",!0)]),o("div",PR,[t[23]||(t[23]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[24]||(t[24]=b()),o("span",{textContent:c(e.fmt?.number(n?.pageView))},null,8,VR)]),o("div",qR,[t[26]||(t[26]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),n?.status=="ready"&&(n?.options?.expirationMode==="never"||!n?.options?.expirationDate)?(l(),d("span",MR,"Never")):p("v-if",!0),n?.status=="ready"&&n?.options?.expirationMode!=="never"&&n?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?.options?.expirationDate))},null,8,$R)):p("v-if",!0),n?.status=="expired"?(l(),d("span",LR,[t[25]||(t[25]=b("Expired",-1)),n?.options?.expirationDate?(l(),d("span",UR,c(e.fmt?.humanTime(n?.options?.expirationDate)),1)):p("v-if",!0)])):p("v-if",!0),n?.status!="ready"&&n?.status!="expired"?(l(),d("span",FR,"\u2014")):p("v-if",!0)]),o("div",zR,[o("div",HR,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?.repoId},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,BR),o("div",jR,[o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View ",-1)])],8,GR),o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,WR)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",KR,[t[30]||(t[30]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?p("v-if",!0):(l(),d("span",YR,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",JR,"Nothing matches the current filters.")):p("v-if",!0),e.conference?.repositories?.length?(l(),d("div",QR,[o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=n=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):p("v-if",!0)])):p("v-if",!0)])])])}var XR={class:"container page paper-page conferences-page"},ZR={class:"row"},xR={class:"w-100"},eT={class:"search-wrap"},tT={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},oT={class:"dashboard-filter-controls"},sT={class:"dropdown"},nT={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},rT={class:"filter-btn-value"},iT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},aT={class:"form-check dropdown-item"},lT={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},dT={class:"form-check dropdown-item"},uT={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},cT={class:"form-check dropdown-item"},pT={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},fT={class:"dropdown"},mT={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},hT={key:0,class:"filter-btn-value"},vT={key:1,class:"filter-btn-value"},gT={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},yT={class:"form-check dropdown-item"},bT=["id"],wT=["for"],kT={class:"dashboard-meta"},ET={class:"dashboard-count"},CT={key:0},_T={key:0},ST={key:1},NT={key:0,class:"filter-chip"},DT=["onClick","aria-label"],RT={key:0,class:"conference-feedback",role:"alert"},TT={key:1,class:"conference-feedback",role:"status"},AT={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},OT={class:"cell-anon",role:"cell"},IT={class:"anon-text"},PT=["textContent","href"],VT={class:"anon-sub"},qT={class:"anon-source"},MT=["textContent"],$T={key:0},LT=["textContent","href"],UT={class:"cell-status",role:"cell"},FT={class:"status-line"},zT=["textContent"],HT={class:"cell-views num",role:"cell"},BT=["textContent"],jT={class:"cell-expires",role:"cell"},GT={key:0},WT={key:1,class:"empty-dash","aria-label":"No review window"},KT={class:"cell-actions",role:"cell"},YT={class:"dropdown"},JT=["disabled","aria-label"],QT={class:"dropdown-menu dropdown-menu-right"},XT=["href"],ZT=["href"],xT={key:0},eA=["onClick"],tA={key:0,class:"paper-table-empty"},oA={key:0},sA={key:1},nA={class:"paper-table-empty-actions"},rA={key:1,href:"/conference/new",class:"btn btn-ink"};function Nl(e,t){let s=be("field"),r=be("form");return l(),d("div",XR,[o("div",ZR,[o("div",xR,[t[10]||(t[10]=ce('
',1))]),p(" Search + filters "),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=me(i=>e.submitForm(i,()=>{i.preventDefault()}),["prevent"]))},[o("div",bA,[N(o("input",wA,null,512),[[r,{state:e.viewState,set:i=>{e.search=i},value:e.search,form:null,options:{}}]])]),o("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[3]||(t[3]=i=>e.filtersExpanded=!e.filtersExpanded)},[...t[30]||(t[30]=[b("Filters",-1),o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1)])],8,kA),o("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[o("div",EA,[o("button",{type:"button",class:A(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[4]||(t[4]=i=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,CA),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[5]||(t[5]=i=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[31]||(t[31]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("span",{class:"type-filter-label"},"Repos",-1)])],10,_A),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[6]||(t[6]=i=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[32]||(t[32]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-pr"})],-1),o("span",{class:"type-filter-label"},"PRs",-1)])],10,SA),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[7]||(t[7]=i=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[33]||(t[33]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1),o("span",{class:"type-filter-label"},"Gists",-1)])],10,NA)]),o("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[o("div",DA,[o("button",RA,[t[35]||(t[35]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",TA,c(e.sortLabel()),1),(l(),d("svg",{class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)),o("span",AA,c(e.sortDesc()?"descending":"ascending"),1)]),o("div",OA,[t[36]||(t[36]=o("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(X,null,re(e.sortFields,(i,a,u)=>(l(),d("div",IA,[o("input",{class:"form-check-input",type:"radio",name:"sort",onClick:f=>e.setSort(a,i.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+u},null,8,PA),o("label",{class:"form-check-label",for:"sort-"+u},c(i?.label),9,VA)]))),256)),t[37]||(t[37]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item",onClick:t[8]||(t[8]=i=>e.toggleSortDirection())},c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),o("div",qA,[o("button",MA,[t[38]||(t[38]=o("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?p("v-if",!0):(l(),d("span",$A,"All")),e.hasHiddenStatus()?(l(),d("span",LA,c(e.hiddenStatusCount())+" hidden",1)):p("v-if",!0)]),o("div",UA,[t[39]||(t[39]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(X,null,re(e.statusKeyLabels,(i,a,u)=>(l(),d("div",FA,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,zA),[[r,{state:e.viewState,set:f=>{e.filters.status[a]=f},value:e.filters?.status[a],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+a},c(i),9,HA)]))),256))])])],2)],2)],32)),[[n,e.viewState]]),p(" Result count + active filter chips "),e.loading?p("v-if",!0):(l(),d("div",BA,[o("div",jA,[o("button",{type:"button","aria-pressed":e.projectView==="all",onClick:t[10]||(t[10]=i=>e.setProjectView("all")),"aria-label":"All projects"},[...t[40]||(t[40]=[o("span",{class:"dashboard-view-long"},"All projects",-1),o("span",{class:"dashboard-view-short","aria-hidden":"true"},"All",-1)])],8,GA),o("button",{type:"button","aria-pressed":e.projectView==="attention",onClick:t[11]||(t[11]=i=>e.setProjectView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[41]||(t[41]=o("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[42]||(t[42]=o("span",null,"attention",-1)),t[43]||(t[43]=b()),o("span",{class:A(["attention-count",{"has-attention":e.attentionCount()>0}])},c(e.attentionCount()),3)],8,WA)]),o("span",KA,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",YA,[b(c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",JA,"s")):p("v-if",!0)])):(l(),d("span",QA,c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" of "+c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" shown",1))]),o("div",XA,[(l(!0),d(X,null,re(e.filters?.status,(i,a,u)=>(l(),d(X,null,[i===!1?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:f=>e.filters.status[a]=!0,"aria-label":"Show "+e.statusKeyLabels[a]+" again",title:"Show "+e.statusKeyLabels[a]+" again"},[b(c(e.statusKeyLabels[a])+" hidden",1),t[44]||(t[44]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))],8,ZA)):p("v-if",!0)],64))),256)),e.typeFilter!=="all"?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:t[12]||(t[12]=i=>e.typeFilter="all"),"aria-label":"Show all project types"},[b(c(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[45]||(t[45]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))])):p("v-if",!0),e.showClearFilters()?(l(),d("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[13]||(t[13]=i=>e.clearFilters())},"Clear filters")):p("v-if",!0)])]))]),p(" Table "),o("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[o("div",eO,[o("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[14]||(t[14]=i=>e.setSort("_label"))},[t[47]||(t[47]=b(" Project ",-1)),e.isSortedBy("_label")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[46]||(t[46]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,tO),o("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("status")}]),onClick:t[15]||(t[15]=i=>e.setSort("status"))},[t[49]||(t[49]=b(" Status ",-1)),e.isSortedBy("status")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[48]||(t[48]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,oO),o("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[16]||(t[16]=i=>e.setSort("pageView"))},[t[51]||(t[51]=b(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[50]||(t[50]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,sO),o("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[17]||(t[17]=i=>e.setSort("options.expirationDate"))},[t[53]||(t[53]=b(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[52]||(t[52]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,nO),t[54]||(t[54]=o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")],-1))]),p(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(X,null,re([1,2,3,4],(i,a)=>(l(),d(X,null,[e.loading?(l(),d("div",rO,[...t[55]||(t[55]=[o("div",{class:"cell-anon",role:"cell"},[o("span",{class:"skeleton skeleton-badge"}),o("div",{class:"anon-text"},[o("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),o("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),o("div",{class:"cell-status",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),o("div",{class:"cell-views num",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),o("div",{class:"cell-expires",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),o("div",{class:"cell-actions",role:"cell"},null,-1)])])):p("v-if",!0)],64))),64)),(l(!0),d(X,null,re(e.filteredItems,(i,a)=>(l(),d(X,{key:i?._type+":"+(i?._id||a)},[e.loading?p("v-if",!0):(l(),d("div",{key:0,class:A(["paper-table-row",{"repo-inactive":i?._statusKey=="expired"||i?._statusKey=="removed","repo-error":i?.status=="error","row-clickable":!!i?._viewUrl}]),role:"row",onClick:u=>e.openItem(i,u)},[o("div",aO,[o("span",{class:"project-type-icon",role:"img","aria-label":i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist",title:i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist"},[(l(),d("svg",dO,[o("use",{href:"#project-type-"+i._type},null,8,uO)]))],8,lO),o("div",cO,[o("div",pO,[i?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:i._label,textContent:c(i?._label),href:e.safeUrl(i?._viewUrl)},null,8,fO)):p("v-if",!0),i?._viewUrl?p("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(i?._label)},null,8,mO)),i?.role==="coauthor"?(l(),d("span",hO,"Co-author")):p("v-if",!0)]),o("div",vO,[i?._id?(l(),d("code",{key:0,class:"anonymous-id",title:i._id},c(i._id),9,gO)):p("v-if",!0),i?._type==="repo"&&i?.source?.commit?(l(),d("span",{key:1,class:"commit-hash",title:i.source.commit},c(i.source.commit.substring(0,8)),9,yO)):p("v-if",!0),i?.conference?(l(),d("span",{key:2,class:"cell-conf conf-tag",title:i?.conference},[t[56]||(t[56]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),t[57]||(t[57]=b()),o("span",{textContent:c(i?.conference)},null,8,wO)],8,bO)):p("v-if",!0)])])]),o("div",kO,[o("div",EO,[o("div",CO,[o("span",{class:A(["status-dot","status-"+i?._statusKey]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(i?.status))},null,8,_O)]),i?.status=="error"&&i?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(i?.statusMessage)),title:i?.statusMessage},null,8,SO)):p("v-if",!0),i?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(i?.anonymizeDate||i?.lastView)}," Last activity "+c(e.fmt?.humanTime(i?.anonymizeDate||i?.lastView))+" \xB7 may be stuck ",9,NO)):p("v-if",!0),i.status==="error"&&i._editUrl?(l(),d("a",{key:2,class:"project-attention-action",href:e.safeUrl(i._editUrl)},"Fix source",8,DO)):p("v-if",!0),i._stale||i._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:me(u=>e.showProjectDetails(i),["stop"])},c(i._broken?"Review details":"Check progress"),9,RO)):p("v-if",!0),i?.status!="error"&&!i?._stale&&i?.anonymizeDate?(l(),d("div",TO," anonymized "+c(e.fmt?.humanTime(i?.anonymizeDate)),1)):p("v-if",!0)]),o("div",{class:"cell-views num",role:"cell","aria-label":e.fmt.number(i.pageView)+" views"},[t[58]||(t[58]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),o("span",null,c(e.fmt.number(i.pageView)),1)],8,AO),o("div",OO,[t[59]||(t[59]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),i?._expiry?.kind==="never"?(l(),d("span",IO,"Never")):p("v-if",!0),i?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(i?._expiry?.date))},null,8,PO)):p("v-if",!0),i?._expiry?.kind==="expired"&&i?._expiry?.date?(l(),d("span",VO,"Expired "+c(e.fmt?.humanTime(i?._expiry?.date)),1)):p("v-if",!0),i?._expiry?.kind==="expired"&&!i?._expiry?.date?(l(),d("span",qO,"Expired")):p("v-if",!0),i?._expiry?.kind==="none"?(l(),d("span",MO,"\u2014")):p("v-if",!0)])]),o("div",$O,[i._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:me(u=>e.copyLink(i),["stop"]),disabled:!!e.copyingId,title:"Copy anonymous link for "+i._label,"aria-label":"Copy anonymous link for "+i._label},[...t[60]||(t[60]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-copy"})],-1)])],8,LO)):p("v-if",!0),i._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:me(u=>e.showProjectDetails(i),["stop"]),"data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Details",8,UO)):p("v-if",!0),i?._broken?p("v-if",!0):(l(),d("div",FO,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-label":"Actions for "+i?._name},[...t[61]||(t[61]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,zO),o("div",HO,[o("button",{type:"button",class:"dropdown-item",onClick:u=>e.showProjectDetails(i),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Project details & name",8,BO),o("a",{class:"dropdown-item",href:e.safeUrl(i?._viewUrl)}," View ",8,jO),i?._type==="repo"&&i?.options?.page&&i?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+i?.repoId+"/")}," View page ",8,GO)):p("v-if",!0),i?._viewUrl?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:u=>e.copyLink(i),disabled:!!e.copyingId}," Copy anonymous link ",8,WO)):p("v-if",!0),o("a",{class:"dropdown-item",href:e.safeUrl(i?._editUrl)}," Edit ",8,KO),i?.status=="ready"||i?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Force update ",8,YO)):p("v-if",!0),i?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Enable ",8,JO)):p("v-if",!0),i?.status=="expired"?(l(),d("button",{key:4,type:"button",class:"dropdown-item",onClick:u=>e.extendItem(i)}," Extend 6 months ",8,QO)):p("v-if",!0),(i?.status=="ready"||i?.status=="expired"||i?.status=="error")&&i?.role!=="coauthor"?(l(),d("div",XO,[t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeItem(i)}," Remove ",8,ZO)])):p("v-if",!0)])]))])],10,iO)),!e.loading&&e.selectedProject===i?(l(),d("div",xO,[o("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(i),tabindex:"-1",onKeydown:Ro(me(u=>e.closeProjectDetails(i),["stop"]),["esc"])},[o("div",t4,[t[64]||(t[64]=o("h2",null,"Project details",-1)),o("button",{type:"button",class:"project-close",onClick:u=>e.closeProjectDetails(i),"aria-label":"Close project details"},[...t[63]||(t[63]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,o4)]),o("dl",s4,[o("div",null,[t[65]||(t[65]=o("dt",null,"Source",-1)),o("dd",null,c(i._source||"Not available"),1)]),o("div",null,[t[66]||(t[66]=o("dt",null,"Anonymous ID",-1)),o("dd",null,[o("code",null,c(i._id||"Missing identifier"),1)])]),i.source?.commit?(l(),d("div",n4,[t[67]||(t[67]=o("dt",null,"Commit",-1)),o("dd",null,[o("code",null,c(i.source.commit),1)])])):p("v-if",!0),i.conference?(l(),d("div",r4,[t[68]||(t[68]=o("dt",null,"Conference",-1)),o("dd",null,c(i.conference),1)])):p("v-if",!0),o("div",null,[t[69]||(t[69]=o("dt",null,"Status",-1)),o("dd",null,[b(c(e.fmt.statusLabel(i.status)),1),i.statusMessage?(l(),d("span",i4," \xB7 "+c(e.fmt.statusMsg(i.statusMessage)),1)):p("v-if",!0)])]),i.anonymizeDate?(l(),d("div",a4,[t[70]||(t[70]=o("dt",null,"Last anonymized",-1)),o("dd",null,c(e.fmt.humanTime(i.anonymizeDate)),1)])):p("v-if",!0)]),i._stale?(l(),d("p",l4,"This download has not progressed recently. Check the source access and selected branch before retrying.")):p("v-if",!0),i._editUrl?(l(),d("a",{key:1,class:"project-attention-action",href:e.safeUrl(i._editUrl)},c(e.needsAttention(i)?"Check source settings":"Edit anonymization settings"),9,d4)):p("v-if",!0),i._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:me(u=>e.saveProjectName(i),["prevent"])},[o("label",{for:"project-name-"+i._type+"-"+i._id},"Project name",8,c4),o("p",{id:"project-name-help-"+i._type+"-"+i._id},"Only you see this name. Leave it blank to use the default.",8,p4),o("div",f4,[N(o("input",{class:"form-control",type:"text",id:"project-name-"+i._type+"-"+i._id,"aria-describedby":"project-name-help-"+i._type+"-"+i._id,maxlength:"100","onUpdate:modelValue":t[18]||(t[18]=u=>e.projectName=u),disabled:e.nameSaving},null,8,m4),[[ea,e.projectName]]),o("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,h4)]),e.nameError?(l(),d("p",v4,c(e.nameError),1)):p("v-if",!0),e.nameMessage?(l(),d("p",g4,c(e.nameMessage),1)):p("v-if",!0)],40,u4)):p("v-if",!0)],40,e4)])):p("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",y4,[t[72]||(t[72]=o("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?p("v-if",!0):(l(),d("span",b4,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",w4,"Nothing matches the current filters.")):p("v-if",!0),o("div",k4,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=i=>e.clearFilters())},"Clear filters")):p("v-if",!0),e.hasProjects()?p("v-if",!0):(l(),d("a",E4,[...t[71]||(t[71]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),b(" New anonymization",-1)])]))])])):p("v-if",!0)],8,xA)]),e.dashboardCursor||e.dashboardError?(l(),d("div",C4,[e.dashboardError?(l(),d("p",_4,c(e.dashboardError),1)):p("v-if",!0),e.dashboardCursor?(l(),d("button",{key:1,type:"button",class:"btn",onClick:t[20]||(t[20]=i=>e.loadMoreProjects()),disabled:e.loadingMore},c(e.loadingMore?"Loading\u2026":"Load more projects"),9,S4)):p("v-if",!0)])):p("v-if",!0)])}var N4={class:"explorer-page"},D4=["aria-label"],R4={class:"ui-icon","aria-hidden":"true"},T4=["href"],A4=["textContent"],O4={class:"leftCol-head"},I4={class:"leftCol-search"},P4={class:"tree-search-box"},V4=["href"],q4={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},M4={class:"leftCol-project-header"},$4=["textContent","title"],L4={class:"project-file-count"},U4=["title"],F4={class:"leftCol-body"},z4={key:0,class:"paper-inline-warning",role:"alert"},H4={key:1,class:"paper-inline-warning",role:"alert"},B4={class:"leftCol-foot"},j4=["title"],G4=["title"],W4=["title"],K4={key:2,class:"last-update",title:"Older repositories have no recorded publication date. The source commit date does not establish when files became available here."},Y4={class:"explorer-main"},J4={class:"status-bar"},Q4={class:"breadcrumb paths","aria-label":"Path"},X4=["textContent"],Z4={class:"status-bar-actions"},x4=["href"],eI={class:"d-none d-md-inline"},tI={class:"ui-icon","aria-hidden":"true"},oI=["href"],sI={class:"d-none d-md-inline"},nI=["href"],rI=["href"],iI=["href"],aI=["href"],lI={class:"explorer-content"};function Rl(e,t){let s=We("tree"),r=We("partial-view"),n=be("field");return l(),d("div",N4,[N(o("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(l(),d("svg",R4,[o("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,T4)])),o("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,A4)],8,D4),[[W,e.files?.length]]),N(o("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[o("div",O4,[t[7]||(t[7]=o("span",{class:"leftCol-eyebrow"},"Files",-1)),o("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),o("div",I4,[o("div",P4,[(l(),d("svg",{class:A(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[o("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,V4)],2)),N(o("input",q4,null,512),[[n,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),N(o("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[W,!e.fileSearchQuery]]),N(o("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[W,e.fileSearchQuery]])])]),o("div",M4,[o("span",{class:"project-name",textContent:c(e.repoId),title:e.repoId},null,8,$4),o("span",L4,c(e.fileCounts?.[""]||e.files?.length)+" files",1),e.options?.expirationDate?(l(),d("span",{key:0,class:"project-expiry",title:e.options.expirationDate},[t[8]||(t[8]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" Available until "+c(e.fmt?.date(e.options.expirationDate)),1)],8,U4)):p("v-if",!0)]),o("div",F4,[e.options?.truncatedFolders?.length>0?(l(),d("div",z4,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):p("v-if",!0),e.options?.hasSubmodules?(l(),d("div",H4,[t[10]||(t[10]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):p("v-if",!0),Ce(s,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),o("div",B4,[o("span",{class:"last-update",title:e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate},c(e.options?.sourceCommitDate?"Source commit":e.options?.anonymizedAt?"Anonymized":"Updated")+" "+c(e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),9,j4),e.options?.settingsSavedAt?(l(),d("span",{key:0,class:"last-update",title:e.options.settingsSavedAt}," Settings saved "+c(e.fmt?.date(e.options.settingsSavedAt)),9,G4)):p("v-if",!0),e.options?.publishedAt?(l(),d("span",{key:1,class:"last-update",title:e.options.publishedAt}," Snapshot ready "+c(e.fmt?.date(e.options.publishedAt)),9,W4)):p("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",K4," Snapshot ready date not recorded ")):p("v-if",!0)])],2),[[W,e.files?.length]]),N(o("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[W,e.files?.length&&!e.sidebarCollapsed]]),o("div",Y4,[N(o("div",J4,[o("ol",Q4,[(l(!0),d(X,null,re(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,X4))),256))]),o("div",Z4,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[11]||(t[11]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,x4)):p("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:A(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=i=>e.toggleAllowScripts())},[t[12]||(t[12]=o("i",{class:"fab fa-js"},null,-1)),o("span",eI,c(e.allowScripts?"JS on":"JS off"),1)],2)):p("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=i=>e.toggleSource())},[(l(),d("svg",tI,[o("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,oI)])),o("span",sI,c(e.showSource?"Rendered":"Source"),1)])):p("v-if",!0),N(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"View raw current file",title:"View raw file",href:e.safeUrl(e.url)},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1)])],8,nI),[[W,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),N(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"Download current file",title:"Download this file",href:e.safeUrl(e.url+"&download=true")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-download"})],-1)])],8,rI),[[W,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm btn-ink","aria-label":"Download repository as ZIP",title:"Download the whole repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[15]||(t[15]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-archive"})],-1),o("span",{class:"d-none d-md-inline"}," Download repository",-1)])],8,iI)):p("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),o("span",{class:"d-none d-md-inline"}," Website",-1)])],8,aI)):p("v-if",!0)])],512),[[W,e.type!="error"||e.files?.length]]),o("div",lI,[Ce(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var dI={class:"paper-faq"};function Tl(e,t){return l(),d("div",dI,[...t[0]||(t[0]=[ce('
',1),o("div",{class:"paper-faq-body"},[o("aside",{class:"paper-faq-toc"},[o("div",{class:"paper-faq-toc-head"},"Contents"),o("nav",null,[o("a",{href:"#faq-general"},"General"),o("a",{href:"#faq-features"},"Features"),o("a",{href:"#faq-limitations"},"Limitations"),o("a",{href:"#faq-privacy"},"Privacy & Security"),o("a",{href:"#faq-hosting"},"Self-Hosting")])]),o("section",{class:"faq-section","aria-label":"FAQs"},[o("div",null,[p(" General "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b("General ")]),o("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),o("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),o("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),o("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[o("div",{class:"panel-body p-3"},[o("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),o("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),o("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),b(", donating through "),o("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),b(', or by clicking the "Support me" button on the site. ')])])])])]),p(" Features "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})]),b("Features ")]),o("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),o("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub can display and render a wide variety of file types: "),o("ul",null,[o("li",null,[o("strong",null,"Text and source code"),b(" \u2014 displayed with syntax highlighting")]),o("li",null,[o("strong",null,"Markdown"),b(" \u2014 rendered as formatted HTML")]),o("li",null,[o("strong",null,"Images"),b(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),o("li",null,[o("strong",null,"PDFs"),b(" \u2014 rendered directly in the browser")]),o("li",null,[o("strong",null,"Jupyter Notebooks"),b(" \u2014 rendered with code cells and outputs")])]),o("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),o("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),o("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[o("div",{class:"panel-body p-3"},[o("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),o("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[o("div",{class:"panel-body p-3"},[o("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),o("ul",null,[o("li",null,[o("strong",null,"Never expire"),b(" \u2014 the anonymized repository remains accessible indefinitely.")]),o("li",null,[o("strong",null,"Redirect to GitHub"),b(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),o("li",null,[o("strong",null,"Remove content"),b(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),o("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),o("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),o("p",null," A few practical implications worth keeping in mind: "),o("ul",null,[o("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),o("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),o("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),o("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),o("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[o("code",null,`npm install -g @tdurieux/anonymous_github
-anonymous_github`)])])])])]),p(" Limitations "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})]),b("Limitations ")]),o("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),o("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[o("div",{class:"panel-body p-3"},[o("ul",null,[o("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),o("li",null," Files larger than 8 MB are not supported. "),o("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),o("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),p(" Privacy & Security "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b("Privacy & Security ")]),o("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),o("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[o("div",{class:"panel-body p-3"},[o("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),o("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[o("div",{class:"panel-body p-3"},[o("p",null,[b("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),o("a",{href:"/connections"},"GitHub connections"),b(" page.")]),o("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),o("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),o("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[o("div",{class:"panel-body p-3"},[o("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),p(" Self-Hosting "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-storage"})]),b("Self-Hosting ")]),o("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),o("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),b(". ")]),o("p",null," The basic steps are: "),o("ol",null,[o("li",null,"Clone the repository and install dependencies"),o("li",null,[b("Create a "),o("code",null,".env"),b(" file with your GitHub token, OAuth client ID, and client secret")]),o("li",null,[b("Run "),o("code",null,"docker-compose up -d")])])])])])]),o("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[o("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),o("p",{class:"text-muted mb-0"},[b(" Open an issue on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),b(" and we'll be happy to help. ")])])])])],-1)])])}var uI={class:"pr-page"},cI={class:"container paper-page pr-page-inner"},pI={class:"pr-header"},fI={class:"pr-title-row"},mI={class:"paper-page-title pr-title"},hI=["textContent"],vI={key:1,class:"text-muted"},gI=["href"],yI={class:"pr-header-meta"},bI={key:0,class:"pr-meta-item"},wI=["textContent"],kI={key:1,class:"pr-meta-item"},EI=["textContent"],CI={key:2,class:"pr-meta-item"},_I=["textContent"],SI={key:0,class:"paper-tabs",role:"tablist"},NI=["aria-selected","tabindex"],DI=["textContent"],RI=["aria-selected","tabindex"],TI=["textContent"],AI={class:"paper-tab-content"},OI={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},II={class:"pr-comments"},PI={class:"pr-comment"},VI={class:"pr-comment-head"},qI=["textContent"],MI={key:0,class:"pr-comment-date"},$I={key:0,class:"paper-table-empty"},LI={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},UI={class:"pr-comments"},FI={class:"pr-comment"},zI={class:"pr-comment-head"},HI={key:0,class:"pr-comment-author"},BI=["textContent"],jI=["textContent"],GI={key:0,class:"pr-comment-body"},WI={key:0,class:"paper-table-empty"};function Al(e,t){let s=We("gist-file"),r=We("markdown");return l(),d("div",uI,[o("div",cI,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Gist")],-1)),o("header",pI,[o("div",fI,[o("h1",mI,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,hI)):p("v-if",!0),e.details?.description?p("v-if",!0):(l(),d("span",vI,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,gI)):p("v-if",!0)]),o("div",yI,[o("span",{class:A(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",bI,[t[5]||(t[5]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=b(" @",-1)),o("span",{textContent:c(e.details?.ownerLogin)},null,8,wI)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",kI,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,EI)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",CI,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,_I)])):p("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",SI,[e.details?.files?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=n=>e.previewTabKeydown(n)),onClick:t[1]||(t[1]=n=>e.tabState.active="files")},[t[11]||(t[11]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,DI)],42,NI)):p("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=n=>e.previewTabKeydown(n)),onClick:t[3]||(t[3]=n=>e.tabState.active="comments")},[t[12]||(t[12]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,TI)],42,RI)):p("v-if",!0)])):p("v-if",!0),o("div",AI,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",OI,[o("ul",II,[(l(!0),d(X,null,re(e.details?.files,(n,i)=>(l(),d("li",PI,[o("div",VI,[o("strong",{textContent:c(n?.filename)},null,8,qI),n?.language?(l(),d("span",MI,c(n?.language),1)):p("v-if",!0)]),Ce(s,{file:n},null,8,["file"])]))),256)),e.details?.files?.length?p("v-if",!0):(l(),d("li",$I,[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1),o("span",null,"No files in this gist.",-1)])]))])])):p("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",LI,[o("ul",UI,[(l(!0),d(X,null,re(e.details?.comments,(n,i)=>(l(),d("li",FI,[o("div",zI,[n?.author?(l(),d("span",HI,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(n?.author)},null,8,BI)])):p("v-if",!0),n?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(n?.updatedDate))},null,8,jI)):p("v-if",!0)]),n?.body?(l(),d("div",GI,[Ce(r,{content:n?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",WI,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this gist.",-1)])]))])])):p("v-if",!0)])])])}var KI={class:"collapse navbar-collapse",id:"navbarSupportedContent"},YI={class:"navbar-nav mr-auto smooth-scroll"},JI={key:0,class:"nav-item"},QI={key:1,class:"nav-item"},XI={key:2,class:"nav-item"},ZI={key:3,class:"nav-item"},xI={class:"nav-item"},e3={key:4,class:"nav-item"},t3={class:"navbar-nav"},o3={key:0,class:"nav-item"},s3={key:1,class:"nav-item"},n3={key:2,class:"nav-item"},r3={key:3,class:"nav-item"},i3={key:4,class:"nav-item dropdown user-chip-wrap"},a3={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},l3=["src"],d3={class:"user-chip-name"},u3={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},c3={class:"dropdown-header"},p3=["innerHTML"];function Ol(e,t){return l(),d(X,null,[o("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[13]||(t[13]=ce('Anonymous GitHubSupport',3)),o("div",KI,[o("ul",YI,[e.user?p("v-if",!0):(l(),d("li",JI,[o("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",QI,[o("a",{class:A(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[2]||(t[2]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-grid"})],-1),b(" My work ",-1)])],2)])):p("v-if",!0),e.user?(l(),d("li",XI,[o("a",{class:A(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[3]||(t[3]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])],2)])):p("v-if",!0),e.user?(l(),d("li",ZI,[o("a",{class:A(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[4]||(t[4]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1),b(" Conferences ",-1)])],2)])):p("v-if",!0),o("li",xI,[o("a",{class:A(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[5]||(t[5]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-help"})],-1),b("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",e3,[o("a",{class:A(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[6]||(t[6]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1),b(" Admin ",-1)])],2)])):p("v-if",!0)]),o("ul",t3,[e.user||!e.isReviewerRoute?(l(),d("li",o3,[...t[7]||(t[7]=[o("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[o("i",{class:"fab fa-github","aria-hidden":"true"})],-1)])])):p("v-if",!0),p(` "Report a bug" is about this service. Reviewers who land on an
+`+JSON.stringify(t):""}`},[je.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Yc(t)}" via a navigation guard.`},[je.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[je.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[je.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function fo(e,t){return Ae(new Error,{type:e,[Sa]:!0},t)}function Ft(e,t){return e instanceof Error&&Sa in e&&(t==null||!!(e.type&t))}var Kc=["params","query","hash"];function Yc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let n of Kc)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Na(e){let t={};if(e===""||e==="?")return t;let n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&Ys(s)):[r&&Ys(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Da(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=kt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}var Ra=Symbol(""),nr=Symbol(""),ts=Symbol(""),os=Symbol(""),ns=Symbol("");function Po(){let e=[];function t(r){return e.push(r),()=>{let s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Jt(e,t,n,r,s,i=a=>a()){let a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((u,f)=>{let k=m=>{m===!1?f(fo(je.NAVIGATION_ABORTED,{from:n,to:t})):m instanceof Error?f(m):Wc(m)?f(fo(je.NAVIGATION_GUARD_REDIRECT,{from:t,to:m})):(a&&r.enterCallbacks[s]===a&&typeof m=="function"&&a.push(m),u())},h=i(()=>e.call(r&&r.instances[s],t,n,k)),w=Promise.resolve(h);e.length<3&&(w=w.then(k)),w.catch(m=>f(m))})}function ss(e,t,n,r,s=i=>i()){let i=[];for(let a of e)for(let u in a.components){let f=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(ua(f)){let k=(f.__vccOpts||f)[t];k&&i.push(Jt(k,n,r,a,u,s))}else{let k=f();i.push(()=>k.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${u}" at "${a.path}"`);let w=Rc(h)?h.default:h;a.mods[u]=h,a.components[u]=w;let m=(w.__vccOpts||w)[t];return m&&Jt(m,n,r,a,u,s)()}))}}return i}function Ta(e,t){let n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;apo(k,u))?r.push(u):n.push(u));let f=e.matched[a];f&&(t.matched.find(k=>po(k,f))||s.push(f))}return[n,r,s]}var Jc=()=>location.protocol+"//"+location.host;function Fa(e,t){let{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,u=s.slice(a);return u[0]!=="/"&&(u="/"+u),Zs(u,"")}return Zs(n,e)+r+s}function Qc(e,t,n,r){let s=[],i=[],a=null,u=({state:m})=>{let E=Fa(e,location),y=n.value,g=t.value,_=0;if(m){if(n.value=E,t.value=m,a&&a===y){a=null;return}_=g?m.position-g.position:0}else r(E);s.forEach(R=>{R(n.value,y,{delta:_,type:xn.pop,direction:_?_>0?es.forward:es.back:es.unknown})})};function f(){a=n.value}function k(m){s.push(m);let E=()=>{let y=s.indexOf(m);y>-1&&s.splice(y,1)};return i.push(E),E}function h(){if(document.visibilityState==="hidden"){let{history:m}=window;if(!m.state)return;m.replaceState(Ae({},m.state,{scroll:mn()}),"")}}function w(){for(let m of i)m();i=[],window.removeEventListener("popstate",u),window.removeEventListener("pagehide",h),document.removeEventListener("visibilitychange",h)}return window.addEventListener("popstate",u),window.addEventListener("pagehide",h),document.addEventListener("visibilitychange",h),{pauseListeners:f,listen:k,destroy:w}}function Aa(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?mn():null}}function Xc(e){let{history:t,location:n}=window,r={value:Fa(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(f,k,h){let w=e.indexOf("#"),m=w>-1?(n.host&&document.querySelector("base")?e:e.slice(w))+f:Jc()+e+f;try{t[h?"replaceState":"pushState"](k,"",m),s.value=k}catch(E){console.error(E),n[h?"replace":"assign"](m)}}function a(f,k){i(f,Ae({},t.state,Aa(s.value.back,f,s.value.forward,!0),k,{position:s.value.position}),!0),r.value=f}function u(f,k){let h=Ae({},s.value,t.state,{forward:f,scroll:mn()});i(h.current,h,!0),i(f,Ae({},Aa(r.value,f,null),{position:h.position+1},k),!1),r.value=f}return{location:r,state:s,push:u,replace:a}}function za(e){e=wa(e);let t=Xc(e),n=Qc(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}let s=Ae({location:"",base:e,go:r,createHref:ka.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}var ho=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Xe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Xe||{}),Zc={type:ho.Static,value:""},xc=/[a-zA-Z0-9_]/;function ep(e){if(!e)return[[]];if(e==="/")return[[Zc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(E){throw new Error(`ERR (${n})/"${k}": ${E}`)}let n=Xe.Static,r=n,s=[],i;function a(){i&&s.push(i),i=[]}let u=0,f,k="",h="";function w(){k&&(n===Xe.Static?i.push({type:ho.Static,value:k}):n===Xe.Param||n===Xe.ParamRegExp||n===Xe.ParamRegExpEnd?(i.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${k}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ho.Param,value:k,regexp:h,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),k="")}function m(){k+=f}for(;ut.length?t.length===1&&t[0]===it.Static+it.Segment?1:-1:0}function Ha(e,t){let n=0,r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}var rp={strict:!1,end:!0,sensitive:!1};function ip(e,t,n){let r=np(ep(e.path),n),s=Ae(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function ap(e,t){let n=[],r=new Map;t=Qs(rp,t);function s(w){return r.get(w)}function i(w,m,E){let y=!E,g=Va(w);g.aliasOf=E&&E.record;let _=Qs(t,w),R=[g];if("alias"in w){let F=typeof w.alias=="string"?[w.alias]:w.alias;for(let P of F)R.push(Va(Ae({},g,{components:E?E.record.components:g.components,path:P,aliasOf:E?E.record:g})))}let T,I;for(let F of R){let{path:P}=F;if(m&&P[0]!=="/"){let M=m.record.path,se=M[M.length-1]==="/"?"":"/";F.path=m.record.path+(P&&se+P)}if(T=ip(F,m,_),E?E.alias.push(T):(I=I||T,I!==T&&I.alias.push(T),y&&w.name&&!qa(T)&&a(w.name)),Ba(T)&&f(T),g.children){let M=g.children;for(let se=0;se{a(I)}:Io}function a(w){if(tr(w)){let m=r.get(w);m&&(r.delete(w),n.splice(n.indexOf(m),1),m.children.forEach(a),m.alias.forEach(a))}else{let m=n.indexOf(w);m>-1&&(n.splice(m,1),w.record.name&&r.delete(w.record.name),w.children.forEach(a),w.alias.forEach(a))}}function u(){return n}function f(w){let m=up(w,n);n.splice(m,0,w),w.record.name&&!qa(w)&&r.set(w.record.name,w)}function k(w,m){let E,y={},g,_;if("name"in w&&w.name){if(E=r.get(w.name),!E)throw fo(je.MATCHER_NOT_FOUND,{location:w});_=E.record.name,y=Ae(Pa(m.params,E.keys.filter(I=>!I.optional).concat(E.parent?E.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),w.params&&Pa(w.params,E.keys.map(I=>I.name))),g=E.stringify(y)}else if(w.path!=null)g=w.path,E=n.find(I=>I.re.test(g)),E&&(y=E.parse(g),_=E.record.name);else{if(E=m.name?r.get(m.name):n.find(I=>I.re.test(m.path)),!E)throw fo(je.MATCHER_NOT_FOUND,{location:w,currentLocation:m});_=E.record.name,y=Ae({},m.params,w.params),g=E.stringify(y)}let R=[],T=E;for(;T;)R.unshift(T.record),T=T.parent;return{name:_,path:g,params:y,matched:R,meta:dp(R)}}e.forEach(w=>i(w));function h(){n.length=0,r.clear()}return{addRoute:i,resolve:k,removeRoute:a,clearRoutes:h,getRoutes:u,getRecordMatcher:s}}function Pa(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Va(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:lp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function lp(e){let t={},n=e.props||!1;if("component"in e)t.default=n;else for(let r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function qa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dp(e){return e.reduce((t,n)=>Ae(t,n.meta),{})}function up(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ha(e,t[i])<0?r=i:n=i+1}let s=cp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function cp(e){let t=e;for(;t=t.parent;)if(Ba(t)&&Ha(e,t)===0)return t}function Ba({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ma(e){let t=ut(ts),n=ut(os),r=!1,s=null,i=ot(()=>{let h=jt(e.to);return t.resolve(h)}),a=ot(()=>{let{matched:h}=i.value,{length:w}=h,m=h[w-1],E=n.matched;if(!m||!E.length)return-1;let y=E.findIndex(po.bind(null,m));if(y>-1)return y;let g=$a(h[w-2]);return w>1&&$a(m)===g&&E[E.length-1].path!==g?E.findIndex(po.bind(null,h[w-2])):y}),u=ot(()=>a.value>-1&&vp(n.params,i.value.params)),f=ot(()=>a.value>-1&&a.value===n.matched.length-1&&xs(n.params,i.value.params));function k(h={}){if(hp(h)){let w=t[jt(e.replace)?"replace":"push"](jt(e.to)).catch(Io);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>w),w}return Promise.resolve()}return{route:i,href:ot(()=>i.value.href),isActive:u,isExactActive:f,navigate:k}}function pp(e){return e.length===1?e[0]:e}var fp=ln({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ma,setup(e,{slots:t}){let n=ze(Ma(e)),{options:r}=ut(ts),s=ot(()=>({[La(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[La(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{let i=t.default&&pp(t.default(n));return e.custom?i:ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),mp=fp;function hp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function vp(e,t){for(let n in t){let r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!kt(s)||s.length!==r.length||r.some((i,a)=>i.valueOf()!==s[a].valueOf()))return!1}return!0}function $a(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var La=(e,t,n)=>e??t??n,yp=ln({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=ut(ns),s=ot(()=>e.route||r.value),i=ut(nr,0),a=ot(()=>{let k=jt(i),{matched:h}=s.value,w;for(;(w=h[k])&&!w.components;)k++;return k}),u=ot(()=>s.value.matched[a.value]);uo(nr,ot(()=>a.value+1)),uo(Ra,u),uo(ns,s);let f=et();return Be(()=>[f.value,u.value,e.name],([k,h,w],[m,E,y])=>{h&&(h.instances[w]=k,E&&E!==h&&k&&k===m&&(h.leaveGuards.size||(h.leaveGuards=E.leaveGuards),h.updateGuards.size||(h.updateGuards=E.updateGuards))),k&&h&&(!E||!po(h,E)||!m)&&(h.enterCallbacks[w]||[]).forEach(g=>g(k))},{flush:"post"}),()=>{let k=s.value,h=e.name,w=u.value,m=w&&w.components[h];if(!m)return Ua(n.default,{Component:m,route:k});let E=w.props[h],y=E?E===!0?k.params:typeof E=="function"?E(k):E:null,_=ke(m,Ae({},y,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(w.instances[h]=null)},ref:f}));return Ua(n.default,{Component:_,route:k})||_}}});function Ua(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var sr=yp;function ja(e){let t=ap(e.routes,e),n=e.parseQuery||Na,r=e.stringifyQuery||or,s=e.history,i=Po(),a=Po(),u=Po(),f=Tn(Qt),k=Qt;mo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let h=Xn.bind(null,z=>""+z),w=Xn.bind(null,ya),m=Xn.bind(null,Oo);function E(z,ne){let Q,C;return tr(z)?(Q=t.getRecordMatcher(z),C=ne):C=z,t.addRoute(C,Q)}function y(z){let ne=t.getRecordMatcher(z);ne&&t.removeRoute(ne)}function g(){return t.getRoutes().map(z=>z.record)}function _(z){return!!t.getRecordMatcher(z)}function R(z,ne){if(ne=Ae({},ne||f.value),typeof z=="string"){let v=Zn(n,z,ne.path),N=t.resolve({path:v.path},ne),q=s.createHref(v.fullPath);return Ae(v,N,{params:m(N.params),hash:Oo(v.hash),redirectedFrom:void 0,href:q})}let Q;if(z.path!=null)Q=Ae({},z,{path:Zn(n,z.path,ne.path).path});else{let v=Ae({},z.params);for(let N in v)v[N]==null&&delete v[N];Q=Ae({},z,{params:w(v)}),ne.params=w(ne.params)}let C=t.resolve(Q,ne),V=z.hash||"";C.params=h(m(C.params));let B=ga(r,Ae({},z,{hash:va(V),path:C.path})),L=s.createHref(B);return Ae({fullPath:B,hash:V,query:r===or?Da(z.query):z.query||{}},C,{redirectedFrom:void 0,href:L})}function T(z){return typeof z=="string"?Zn(n,z,f.value.path):Ae({},z)}function I(z,ne){if(k!==z)return fo(je.NAVIGATION_CANCELLED,{from:ne,to:z})}function F(z){return se(z)}function P(z){return F(Ae(T(z),{replace:!0}))}function M(z,ne){let Q=z.matched[z.matched.length-1];if(Q&&Q.redirect){let{redirect:C}=Q,V=typeof C=="function"?C(z,ne):C;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=T(V):{path:V},V.params={}),Ae({query:z.query,hash:z.hash,params:V.path!=null?{}:z.params},V)}}function se(z,ne){let Q=k=R(z),C=f.value,V=z.state,B=z.force,L=z.replace===!0,v=M(Q,C);if(v)return se(Ae(T(v),{state:typeof v=="object"?Ae({},V,v.state):V,force:B,replace:L}),ne||Q);let N=Q;N.redirectedFrom=ne;let q;return!B&&ba(r,C,Q)&&(q=fo(je.NAVIGATION_DUPLICATED,{to:N,from:C}),Ue(C,C,!0,!1)),(q?Promise.resolve(q):O(N,C)).catch(H=>Ft(H)?Ft(H,je.NAVIGATION_GUARD_REDIRECT)?H:_e(H):le(H,N,C)).then(H=>{if(H){if(Ft(H,je.NAVIGATION_GUARD_REDIRECT))return se(Ae({replace:L},T(H.to),{state:typeof H.to=="object"?Ae({},V,H.to.state):V,force:B}),ne||N)}else H=Z(N,C,!0,L,V);return Y(N,C,H),H})}function oe(z,ne){let Q=I(z,ne);return Q?Promise.reject(Q):Promise.resolve()}function S(z){let ne=Pe.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(z):z()}function O(z,ne){let Q,[C,V,B]=Ta(z,ne);Q=ss(C.reverse(),"beforeRouteLeave",z,ne);for(let v of C)v.leaveGuards.forEach(N=>{Q.push(Jt(N,z,ne))});let L=oe.bind(null,z,ne);return Q.push(L),Ee(Q).then(()=>{Q=[];for(let v of i.list())Q.push(Jt(v,z,ne));return Q.push(L),Ee(Q)}).then(()=>{Q=ss(V,"beforeRouteUpdate",z,ne);for(let v of V)v.updateGuards.forEach(N=>{Q.push(Jt(N,z,ne))});return Q.push(L),Ee(Q)}).then(()=>{Q=[];for(let v of B)if(v.beforeEnter)if(kt(v.beforeEnter))for(let N of v.beforeEnter)Q.push(Jt(N,z,ne));else Q.push(Jt(v.beforeEnter,z,ne));return Q.push(L),Ee(Q)}).then(()=>(z.matched.forEach(v=>v.enterCallbacks={}),Q=ss(B,"beforeRouteEnter",z,ne,S),Q.push(L),Ee(Q))).then(()=>{Q=[];for(let v of a.list())Q.push(Jt(v,z,ne));return Q.push(L),Ee(Q)}).catch(v=>Ft(v,je.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function Y(z,ne,Q){u.list().forEach(C=>S(()=>C(z,ne,Q)))}function Z(z,ne,Q,C,V){let B=I(z,ne);if(B)return B;let L=ne===Qt,v=mo?history.state:{};Q&&(C||L?s.replace(z.fullPath,Ae({scroll:L&&v&&v.scroll},V)):s.push(z.fullPath,V)),f.value=z,Ue(z,ne,Q,L),_e()}let te;function J(){te||(te=s.listen((z,ne,Q)=>{if(!He.listening)return;let C=R(z),V=M(C,He.currentRoute.value);if(V){se(Ae(V,{replace:!0,force:!0}),C).catch(Io);return}k=C;let B=f.value;mo&&Ca(er(B.fullPath,Q.delta),mn()),O(C,B).catch(L=>Ft(L,je.NAVIGATION_ABORTED|je.NAVIGATION_CANCELLED)?L:Ft(L,je.NAVIGATION_GUARD_REDIRECT)?(se(Ae(T(L.to),{force:!0}),C).then(v=>{Ft(v,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===xn.pop&&s.go(-1,!1)}).catch(Io),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),le(L,C,B))).then(L=>{L=L||Z(C,B,!1),L&&(Q.delta&&!Ft(L,je.NAVIGATION_CANCELLED)?s.go(-Q.delta,!1):Q.type===xn.pop&&Ft(L,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),Y(C,B,L)}).catch(Io)}))}let re=Po(),ce=Po(),fe;function le(z,ne,Q){_e(z);let C=ce.list();return C.length?C.forEach(V=>V(z,ne,Q)):console.error(z),Promise.reject(z)}function Oe(){return fe&&f.value!==Qt?Promise.resolve():new Promise((z,ne)=>{re.add([z,ne])})}function _e(z){return fe||(fe=!z,J(),re.list().forEach(([ne,Q])=>z?Q(z):ne()),re.reset()),z}function Ue(z,ne,Q,C){let{scrollBehavior:V}=e;if(!mo||!V)return Promise.resolve();let B=!Q&&_a(er(z.fullPath,0))||(C||!Q)&&history.state&&history.state.scroll||null;return nt().then(()=>V(z,ne,B)).then(L=>L&&Ea(L)).catch(L=>le(L,z,ne))}let Re=z=>s.go(z),Me,Pe=new Set,He={currentRoute:f,listening:!0,addRoute:E,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:g,resolve:R,options:e,push:F,replace:P,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:ce.add,isReady:Oe,install(z){z.component("RouterLink",mp),z.component("RouterView",sr),z.config.globalProperties.$router=He,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>jt(f)}),mo&&!Me&&f.value===Qt&&(Me=!0,F(s.location).catch(C=>{}));let ne={};for(let C in Qt)Object.defineProperty(ne,C,{get:()=>f.value[C],enumerable:!0});z.provide(ts,He),z.provide(os,Yo(ne)),z.provide(ns,f);let Q=z.unmount;Pe.add(z),z.unmount=function(){Pe.delete(z),Pe.size<1&&(k=Qt,te&&te(),te=null,f.value=Qt,Me=!1,fe=!1),Q()}}};function Ee(z){return z.reduce((ne,Q)=>ne.then(()=>S(Q)),Promise.resolve())}return He}function Ga(e){return ut(os)}function Wa(e,t){return t?.split(".").reduce((n,r)=>n?.[r],e)}function rr(e=null,t=new Map){let n=ze({}),r=[],s=!1,i=new Proxy(n,{get(a,u){return typeof u=="string"&&u.startsWith("__v_")||Reflect.has(a,u)?Reflect.get(a,u):e?.[u]}});return Object.defineProperty(n,"parent",{value:e,configurable:!0}),Object.defineProperty(n,"viewState",{get:()=>i}),i.watch=(a,u,f=!1,k=!0)=>{let h=typeof a=="function"?()=>a(i):()=>Wa(i,a),w=Be(h,u,{deep:f,flush:"post"});return r.push(w),k&&nt(()=>{s||u(h(),h())}),w},i.watchGroup=(a,u,f=!0)=>i.watch(()=>a.map(k=>Wa(i,k)),u,!0,f),i.on=(a,u)=>{if(a==="dispose")return r.push(u),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(u);let f=()=>t.get(a)?.delete(u);return r.push(f),f},i.emit=(a,...u)=>{for(let f of[...t.get(a)||[]])f({},...u)},i.dispose=()=>{s=!0,r.splice(0).reverse().forEach(a=>a())},Wo(i.dispose),i}function ct(){let e=new Set,t=new Set,n=!1,r=(i,a=0)=>{if(n)return;let u=setTimeout(()=>{e.delete(u),i()},a);return e.add(u),u};r.cancel=i=>{clearTimeout(i),e.delete(i)};let s=(i,a)=>{if(n)return;let u=setInterval(i,a);return t.add(u),u};return s.cancel=i=>{clearInterval(i),t.delete(i)},Wo(()=>{n=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:r,interval:s}}function Xt(){let e=new Set;return Wo(()=>{e.forEach(t=>t()),e.clear()}),(t,n,r,s)=>{t.addEventListener(n,r,s);let i=()=>{t.removeEventListener(n,r,s),e.delete(i)};return e.add(i),i}}function ir(e,t,n){let r,s=!1,i="form-draft:"+n,a=()=>Object.fromEntries(t.map(m=>[m,e[m]])),u=()=>JSON.stringify(a()),f=m=>{for(let E of t)Object.prototype.hasOwnProperty.call(m,E)&&(e[E]=m[E]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},k=()=>{try{window.sessionStorage.removeItem(i)}catch{}},h=(m=!1)=>{if(r!==void 0){if(m&&document.querySelectorAll("input, select, textarea").forEach(E=>{E._field?.binding.state===e&&E._field.timer&&E._field.commit()}),e.unsavedChanges=u()!==r,e.draftSaved=!1,!e.unsavedChanges){k();return}try{window.sessionStorage.setItem(i,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:a()})),e.draftSaved=!0}catch{}}},w=()=>h(!0);return e.on("routeLeave",w),window.addEventListener("beforeunload",w),e.on("dispose",()=>window.removeEventListener("beforeunload",w)),{restore(){r=u();let m;try{m=JSON.parse(window.sessionStorage.getItem(i)||"null")}catch{}let E=m&&m.account===(e.user?.username||null)&&Date.now()-m.savedAt<30*6e4&&m.values;return E&&(f(m.values),e.draftRestored=!0),s||(s=!0,e.watch(()=>a(),()=>h(),!0)),e.unsavedChanges=u()!==r,!!E},checkpoint(){return JSON.parse(u())},accept(m){r=JSON.stringify(m),e.draftRestored=!1,h()},discard(){document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state!==e||!m._field.timer||(clearTimeout(m._field.timer),m._field.timer=null,m.value=m._field.binding.value??"")}),r!==void 0&&f(JSON.parse(r)),e.draftRestored=!1,h()},clear(){r=u(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,k()}}}var rs="XXXX",gp=e=>{rs=e||"XXXX"},Ka=(e=rs)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},Ya=(e,t=rs)=>{let n=Ka(t);if(!n||!e||!e.textContent.includes(t))return;let r=e.ownerDocument,s=r.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=[];for(;s.nextNode();)i.push(s.currentNode);for(let a of i){let u=a.nodeValue,f=a.parentElement;if(!u.includes(t)||!f||f.closest("script, style, mark.redaction, .mermaid"))continue;let k=f.closest('code[class*="language-"]');if(k&&!k.contains(e))continue;let h=r.createDocumentFragment(),w=0;for(let m of u.matchAll(n)){h.append(u.slice(w,m.index));let E=r.createElement("mark");E.className="redaction",E.title="Redacted by Anonymous GitHub",E.textContent=m[0],h.append(E),w=m.index+m[0].length}h.append(u.slice(w)),a.replaceWith(h)}},Ja=(e,t=rs)=>{if(!e||!t||!e.includes(t))return e;let n=new DOMParser().parseFromString(""+e+"","text/html");return Ya(n.body,t),n.body.innerHTML};async function Qa(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let n=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),n?.focus()}}function bp(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],n=t.indexOf(e.currentTarget),r=e.key==="Home"?0:e.key==="End"?t.length-1:(n+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[r]?.focus(),t[r]?.click()}var Xa=function(e,t,n,r){e.previewTabKeydown=bp,e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(h){let w=e.toasts.indexOf(h);w!==-1&&e.toasts.splice(w,1)},e.addToast=function(h){return e.toasts.push(h),r(function(){e.removeToast(h)},8e3),h};let s=/^\/(r|repository|pr|gist)\//;e.path=n.url(),e.paths=n.path().substring(1).split("/"),e.isReviewerRoute=s.test(n.path()),e.darkMode=function(h){localStorage.setItem("darkMode",h),e.isDarkMode=h;let w="/css/prism-okaidia.css",m="/css/prism.css";if(h){$("body").addClass("dark-mode");let y=document.createElement("link");y.href=w,y.rel="stylesheet",document.head.append(y),$(`link[href='${m}']`).remove()}else{$("body").removeClass("dark-mode");let y=document.createElement("link");y.href=m,y.rel="stylesheet",document.head.append(y),$(`link[href='${w}']`).remove()}let E=document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");E&&(E.style.backgroundColor=h?"#34312C":"#1A1815",E.style.color="#FAF9F6"),e.emit("dark-mode",h)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let i;e.respondToEmailPrompt=async h=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let w=await t.post("/github/connections/email",{action:h,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});h==="save"&&(e.user.notificationEmail=w.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,i?.focus()}catch(w){e.emailPromptError=w.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function a(){t.get("/api/user").then(h=>{h&&(e.user=h.data),e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(i=document.activeElement,e.emailPromptOpen=!0,r(()=>{let w=document.getElementById("email-prompt");w?.showModal?w.showModal():w?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null})}a();function u(){t.get("/api/options").then(h=>{h&&(e.site_options=h.data),gp(h?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}u();function f(){t.get("/api/message").then(h=>{h&&(e.generalMessage=h.data)},()=>{e.generalMessage=null})}f();function k(h,w){w&&(e.title=w.title),e.path=n.url(),e.paths=n.path().substring(1).split("/"),e.isReviewerRoute=s.test(n.path())}e.on("routeChange",k),e.on("routeUpdate",k)},Za=function(e,t){let n=Xt(),r=ct(),s=()=>{let i=window.location.hash.slice(1),a=document.getElementById(i);if(!a?.classList.contains("panel-collapse"))return;$(a).collapse("show");let u=document.getElementById(a.getAttribute("aria-labelledby"));u?.setAttribute("tabindex","-1"),u?.focus({preventScroll:!0}),u?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>r.timeout(s,0)),n(window,"hashchange",s),r.timeout(s,0)},xa=function(e,t,n,r,s){e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,s.load().then(f=>{e.quota=f},console.error);let i=ir(e,["terms","options"],"profile");e.discardDraft=()=>i.discard();function a(){t.get("/api/user/default").then(f=>{let k=f.data||{};k.terms&&(e.terms=k.terms.join(`
+`)),e.options=Object.assign({},e.options,k.options),i.restore()})}a();let u=null;e.saveDefault=f=>{if(f&&f.preventDefault&&f.preventDefault(),e.saving)return;let k=i.checkpoint(),h={terms:e.terms.split(`
+`).map(w=>w.trim()).filter(w=>w.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",h).then(()=>{i.accept(k),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",u&&r.cancel(u),u=r(()=>{e.message=null},2500)},w=>{e.saving=!1;let m=w&&w.data&&w.data.error,E="Unable to save your defaults. Please try again.";Promise.all([n("ERRORS."+m),n("ERRORS.unknown_error")]).then(([y,g])=>{e.error=m&&y!==g?y:E},()=>{e.error=E})})},e.deleteAccount=()=>{confirm("Delete your account? All your anonymized repositories, gists, and pull requests will be removed, and your personal data will be erased. This cannot be undone.")&&(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},el=function(e,t,n){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(r=>{n.url("/dashboard")},r=>{e.error=r.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},tl=function(e,t,n,r,s){e.user&&!e.user.status&&n.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&n.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(u){e.feature=u},e.featureHref=function(u){return u.needsUser&&!e.user?"/signin":u.href},e.featureTarget=function(u){return u.needsUser&&!e.user?"_self":u.target||void 0},e.featureKeydown=function(u,f){let k={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[u.key];if(k===void 0)return;u.preventDefault();let h=e.features.length,w=k==="first"?0:k==="last"?h-1:(f+k+h)%h;e.feature=e.features[w].key,s(()=>{let m=r.document.getElementById("feature-tab-"+e.feature);m&&m.focus()})},e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}];function i(){t.get("/api/stat/").then(u=>{e.stat=u.data,e.cards[0].total=u.data.nbRepositories,e.cards[1].total=u.data.nbUsers,e.cards[2].total=u.data.nbPageViews,e.cards[3].total=u.data.nbPullRequests})}i();function a(u){let f={series:u,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!u||u.length<2)return f;let k=new Array(u.length-1);for(let g=1;g=2){let g=k[h-2];g&&(f.pctChange=(f.deltaToday-g)/g*100)}return f.pctAbs=Math.round(Math.abs(f.pctChange)),f.isUp=f.pctChange>=0,f}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(u=>{let f=u.data||[];e.history={repositories:a(f.map(k=>k.nbRepositories||0)),users:a(f.map(k=>k.nbUsers||0)),pageViews:a(f.map(k=>k.nbPageViews||0)),pullRequests:a(f.map(k=>k.nbPullRequests||0))}})},ol=function(e,t,n,r,s,i){let a=ct();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,nt(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Xt()(document,"click",S=>{e.quotaExpanded&&!S.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=S=>S.status==="error"||S._broken||f(S.status)==="progress"&&S._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=S=>{e.projectView=S,S==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=S=>"project-details-"+encodeURIComponent(S._type+":"+(S._id||S._source||"unknown")),e.showProjectDetails=async S=>{e.selectedProject=S,e.projectName=S.projectName||"",e.nameError="",e.nameMessage="",await nt();let O=document.getElementById(e.projectDetailsId(S));O?.focus(),O?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=S=>{e.selectedProject=null,nt(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(S._type+":"+S._id)}"]`)?.focus())},e.saveProjectName=async S=>{if(e.nameSaving||!S._id)return;let O=e.projectName.trim();if(O.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let Y=await t.post("/api/user/project-name",{type:S._type,id:S._id,name:O});S.projectName=Y.data.name,S._label=S.projectName||S._fallbackLabel,e.selectedProject===S&&(e.nameMessage=O?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await F(),e.selectedProject===S&&(e.selectedProject=e.items.find(Z=>Z._type===S._type&&Z._id===S._id)||null))}catch{e.selectedProject===S&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async S=>{if(!S._viewUrl||e.copyingId)return;let O=new URL(S._viewUrl,s.location.origin).href;e.copyingId=S._type+":"+S._id;try{await Qa(O),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:O})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"In progress",error:"Error",expired:"Expired",removed:"Removed"};let u=["queue","download","downloaded","preparing","anonymizing"];function f(S){return S==="ready"||S==="error"?S:S==="expired"||S==="expiring"?"expired":S==="removed"||S==="removing"?"removed":(u.indexOf(S)>-1,"progress")}let k=7200*1e3,h="dashboard.filterPrefs",w={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},m=loadFilterPrefs(h)||{};e.typeFilter=m.typeFilter||w.typeFilter,e.filters={status:Object.assign({},w.filters.status,m.filters&&m.filters.status||{})},e.orderBy=m.orderBy||w.orderBy;let E={_name:{label:"Anonymous ID",defaultDesc:!1},_label:{label:"Project",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=E,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let S=E[e.sortField()];return S?S.label:"Custom"},e.isSortedBy=S=>e.sortField()===S,e.setSort=(S,O)=>{typeof O!="boolean"&&(O=e.isSortedBy(S)?!e.sortDesc():!!(E[S]&&E[S].defaultDesc)),e.orderBy=(O?"-":"")+S},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(h,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(h,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),i.load().then(S=>{e.quota=S},console.error);function y(S,O,Y,Z,te,J){S.pageView||(S.pageView=0),S.lastView||(S.lastView=""),S.options=S.options||{},S.options.terms=(S.options.terms||[]).filter(ce=>ce),S._id=O||"",S._source=Z,S._broken=!O,S._name=O||Z||"(unnamed)",S._fallbackLabel=S._type==="gist"?"Gist "+(O||Z||"without an ID"):Z||Y||S._name,S._label=S.projectName||S._fallbackLabel,S._editUrl=O?te:null,S._viewUrl=O?J:null,S._broken&&(S.status="error",S.statusMessage="incomplete_record"),S._statusKey=f(S.status);let re=S.anonymizeDate||S.lastView;return S._stale=S._statusKey==="progress"&&!!re&&Date.now()-new Date(re).getTime()>k,S.status==="expired"||S.status==="expiring"?S._expiry={kind:"expired",date:S.options.expirationDate}:S.status!=="ready"?S._expiry={kind:"none"}:S.options.expirationMode==="never"||!S.options.expirationDate?S._expiry={kind:"never"}:S._expiry={kind:"date",date:S.options.expirationDate},S}function g(S){return t.get(S).then(O=>O.data||[],O=>(console.error(O),[]))}function _(){return e.loading=!0,r.all([g("/api/user/anonymized_repositories"),g("/api/user/anonymized_pull_requests"),g("/api/user/anonymized_gists")]).then(S=>{let O=S[0],Y=S[1],Z=S[2],te=[];O.forEach(J=>{J._type="repo";let re=J.source||{};te.push(y(J,J.repoId,J.repoId,re.fullName,"/anonymize/"+J.repoId,"/r/"+J.repoId+"/"))}),Y.forEach(J=>{J._type="pr";let re=J.source||{};te.push(y(J,J.pullRequestId,J.pullRequestId,re.repositoryFullName?re.repositoryFullName+"#"+re.pullRequestId:void 0,"/pull-request-anonymize/"+J.pullRequestId,"/pr/"+J.pullRequestId+"/"))}),Z.forEach(J=>{J._type="gist";let re=J.source||{};te.push(y(J,J.gistId,J.gistId,re.gistId,"/gist-anonymize/"+J.gistId,"/gist/"+J.gistId+"/"))}),e.items=te,e.loading=!1})}let R=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function I(S){let O=S.source||{};return S._type==="repo"?y(S,S.repoId,S.repoId,O.fullName,"/anonymize/"+S.repoId,"/r/"+S.repoId+"/"):S._type==="pr"?y(S,S.pullRequestId,S.pullRequestId,O.repositoryFullName?O.repositoryFullName+"#"+O.pullRequestId:void 0,"/pull-request-anonymize/"+S.pullRequestId,"/pr/"+S.pullRequestId+"/"):y(S,S.gistId,S.gistId,O.gistId,"/gist-anonymize/"+S.gistId,"/gist/"+S.gistId+"/")}function F(S=!1){if(T)return _();let O=++R;return e.loading=!S,e.loadingMore=S,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(Y=>e.filters.status[Y]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:S?e.dashboardCursor:void 0}}).then(Y=>{if(O===R){if(!Array.isArray(Y.data?.items))return T=!0,_();e.items=(S?e.items:[]).concat(Y.data.items.map(I)),e.dashboardCursor=Y.data.cursor,e.dashboardTotals=Y.data}},Y=>{if(O===R){if(Y.status===404)return T=!0,_();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{O===R&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>F(!0);let P;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(P&&a.timeout.cancel(P),P=a.timeout(()=>F(),150))},!1),e.watch("filters",()=>{T||F()},!0,!1),e.on("dispose",()=>{R++}),F(),e.openItem=(S,O)=>{if(!S._viewUrl)return;let Y=O&&O.target;Y&&Y.closest&&Y.closest("a, button, .dropdown, input")||(s.location.href=S._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(S=>e.filters.status[S]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(S=>e.filters.status[S]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.hiddenStatusCount()>1,e.clearFilters=()=>{e.projectView="all",e.typeFilter="all",e.search="",Object.keys(e.filters.status).forEach(S=>{e.filters.status[S]=!0})};function M(S,O,Y,Z){t.get("/api/repo/"+S).then(async te=>{let J=Z!==void 0&&Z!==te.data.status;for(let re of e.items)if(re._type==="repo"&&re.repoId==S){J=J||re.status!==te.data.status;let ce=e.needsAttention(re);re.status=te.data.status,re.statusMessage=te.data.statusMessage,re._statusKey=f(re.status),re._statusKey!=="progress"&&(re._stale=!1);let fe=e.needsAttention(re);e.dashboardTotals&&ce!==fe&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(fe?1:-1)));break}if(J&&!T){e.dashboardCursor=null;let re=e.selectedProject;await F(),re&&e.selectedProject===re&&(e.selectedProject=e.items.find(ce=>ce._type===re._type&&ce._id===re._id)||null)}if(te.data.status=="ready"||te.data.status=="error"||te.data.status=="removed"||te.data.status=="expired"){O(te.data);return}a.timeout(()=>M(S,O,Y,te.data.status),2500)},Y)}let se=S=>S==="repo"?"repository":S==="gist"?"gist":"pull request",oe=S=>S==="repo"?"/api/repo":S==="gist"?"/api/gist":"/api/pr";e.removeItem=S=>{let O=se(S._type);if(confirm(`Are you sure that you want to remove the ${O} ${S._id}?`)){let Y=ze({title:`Removing ${S._id}...`,date:new Date,body:`The ${O} ${S._id} is going to be removed.`});e.addToast(Y);let Z=`${oe(S._type)}/${S._id}`;t.delete(Z).then(()=>{S._type==="repo"?M(S._id,()=>{Y.title=`${S._id} is removed.`,Y.body=`The ${O} ${S._id} is removed.`},void 0,S.status):(Y.title=`${S._id} is removed.`,Y.body=`The ${O} ${S._id} is removed.`,F())},te=>{Y.title=`Error during the removal of ${S._id}.`,Y.body=te.body,F()})}},e.refreshItem=S=>{let O=se(S._type),Y=ze({title:`Refreshing ${S._id}...`,date:new Date,body:`The ${O} ${S._id} is going to be refreshed.`});e.addToast(Y);let Z=J=>{Y.title=`Error during the refresh of ${S._id}.`,Y.body=J.data?.error||J.body||"The refresh could not be completed. Please try again.",F()},te=`${oe(S._type)}/${S._id}/refresh`;t.post(te).then(()=>{S._type==="repo"?M(S._id,J=>{if(J.status!=="ready"){Z({body:J.statusMessage||`The repository is ${J.status}.`});return}Y.title=`${S._id} is refreshed.`,Y.body=`The ${O} ${S._id} is refreshed.`},Z,S.status):(Y.title=`${S._id} is refreshed.`,Y.body=`The ${O} ${S._id} is refreshed.`,F())},Z)},e.extendItem=S=>{let O=se(S._type),Y=ze({title:`Extending ${S._id}...`,date:new Date,body:`The expiration of ${O} ${S._id} is going to be extended by 6 months.`});e.addToast(Y);let Z=`${oe(S._type)}/${S._id}/extend`;t.post(Z).then(()=>{S._type==="repo"?M(S._id,()=>{Y.title=`${S._id} is extended.`,Y.body=`The expiration of ${O} ${S._id} is extended by 6 months.`},void 0,S.status):(Y.title=`${S._id} is extended.`,Y.body=`The expiration of ${O} ${S._id} is extended by 6 months.`,F())},te=>{Y.title=`Error during the extension of ${S._id}.`,Y.body=te.data&&te.data.error||te.body,F()})},e.itemFilter=S=>{if(e.projectView==="attention"&&!e.needsAttention(S)||e.typeFilter!=="all"&&S._type!==e.typeFilter||e.filters.status[S._statusKey]===!1)return!1;let O=e.search.trim().toLowerCase();return!!(O.length==0||S._label&&String(S._label).toLowerCase().indexOf(O)>-1||S._source&&String(S._source).toLowerCase().indexOf(O)>-1||S._id&&String(S._id).toLowerCase().indexOf(O)>-1||S.conference&&String(S.conference).toLowerCase().indexOf(O)>-1)}};var nl=function(e,t,n){let r=ct();e.repoId=n.repoId,e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="",e.shareUrl=(window.location?.origin||"")+"/r/"+encodeURIComponent(e.repoId)+"/",e.copied=!1;let s=null;e.copyShareUrl=async()=>{try{await Qa(e.shareUrl),e.copied=!0,s&&r.timeout.cancel(s),s=r.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}};var i=null;let a=null,u=!1;function f(h){e.rateLimitResetAt=h,i&&r.interval.cancel(i);function w(){var m=Math.max(0,Math.ceil((h-Date.now())/1e3));if(m<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,r.interval.cancel(i),i=null;else{var E=Math.floor(m/60),y=m%60;e.rateLimitCountdown=E>0?E+"m "+y+"s":y+"s"}}w(),i=r.interval(w,1e3)}e.on("dispose",function(){u=!0,i&&r.interval.cancel(i),a&&r.timeout.cancel(a)});function k(h){if(!h)return h;var w=h.match(/^rate_limited:(\d+)$/);return w?(f(parseInt(w[1],10)),null):(e.rateLimitResetAt=0,h)}e.getStatus=()=>{u||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(h=>{if(!u){e.repo=h.data,h.data.rateLimitResetAt?f(h.data.rateLimitResetAt):e.repo.statusMessage=k(e.repo.statusMessage),e.repo.status=="ready"?e.progress=100:e.repo.status=="queue"?e.progress=10:e.repo.status=="downloaded"?e.progress=50:e.repo.status=="download"||e.repo.status=="preparing"?e.progress=25:e.repo.status=="anonymizing"&&(e.progress=75);var w=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(w=!1),w&&(a=r.timeout(e.getStatus,2e3))}},h=>{e.error=h.data.error})},e.getStatus()},is=function(e,t,n,r,s,i,a){e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let u=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!u?.matches,u?.addEventListener&&Xt()(u,"change",C=>{e.mobileWorkspace=C.matches}),e.selectMobilePane=C=>{e.mobilePane=C};let f=0,k=!1,h=new Set,w=(C,V=!1)=>!k&&C.generation===f&&C.url===e.sourceUrl.trim()&&C.connection===e.githubConnection&&(!V||C.branch===e.source.branch),m=()=>{let C={generation:f,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return h.add(C),e.sourceLoading=!0,C},E=C=>{h.delete(C),k||(e.sourceLoading=[...h].some(V=>w(V)))};e.on("dispose",()=>{k=!0,f++});let y=null,g=C=>C.gistId&&!C.repo?"gist:"+C.gistId.toLowerCase():(C.owner+"/"+C.repo).toLowerCase()+(C.pullRequestId?"/pull/"+C.pullRequestId:""),_=ir(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(s.path?.()||""));e.discardDraft=async()=>{_.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(f++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",re.cancel(),_e.cancel(),Pe.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let R=()=>{let C={};for(let V of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])C[V]=e[V];sessionStorage.setItem("github-access-draft",JSON.stringify({path:s.path(),savedAt:Date.now(),draft:C}))};e.connectGistApp=()=>{R(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(s.path())},e.connectGistOAuth=()=>{R(),window.location.href="/github/login?returnTo="+encodeURIComponent(s.path())},e.grantGitHubAccess=()=>{R();let C=s.path(),V=se(e.sourceUrl)||"",B=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=B+"?returnTo="+encodeURIComponent(C)+"&repository="+encodeURIComponent(V)+"&install=1"},e.chooseGitHubConnection=async C=>{e.githubConnection=C,e.readme="",e.sourceUrl&&await S()},e.detectedType=null,e.repoId="",e.pullRequestId="",e.gistId="",e.terms="",e.defaultTerms="",e.branches=[],e.source={branch:"",commit:""},e.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,content:!0,comments:!0,username:!0,date:!0};function T(){let C=new Date;return C.setMonth(C.getMonth()+6),C}e.options.expirationDate=T();function I(C){let V=C.getFullYear(),B=String(C.getMonth()+1).padStart(2,"0"),L=String(C.getDate()).padStart(2,"0");return`${V}-${B}-${L}`}e.minExpirationDate=I(new Date);let F=new Date;F.setFullYear(F.getFullYear()+1),e.maxExpirationDate=I(F),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1;function P(C){t.get("/api/user/default").then(V=>{let B=V.data;B.terms&&(e.defaultTerms=B.terms.join(`
+`)),e.options=Object.assign({},e.options,B.options),e.options.expirationDate=B.options&&B.options.expirationDate?new Date(B.options.expirationDate):T(),!r.repoId&&!r.pullRequestId&&!r.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),C&&C()})}function M(C,V,B){e.anonymize&&e.anonymize[C]&&e.anonymize[C].setValidity(V,B)}function se(C){try{let V=parseGithubUrl(C);if(V&&V.owner&&V.repo)return V.owner+"/"+V.repo}catch{}return null}e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await Y()}catch{}}};function oe(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:se(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function S(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function O(){let C;try{C=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!C||C.path!==s.path()||Date.now()-C.savedAt>=30*6e4)return _.restore()?(e.sourceUrl&&await S(),!0):!1;_.restore();for(let V of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(C.draft,V)&&(e[V]=C.draft[V]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await S(),sessionStorage.removeItem("github-access-draft"),!0}P(()=>{!r.repoId&&!r.pullRequestId&&!r.gistId&&a(O,0),r.repoId&&r.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=r.repoId,t.get("/api/repo/"+e.repoId).then(async C=>{e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.fullName,e._originalFullName=C.data.source.fullName,e.terms=C.data.options.terms.filter(V=>V).join(`
+`),e.source=C.data.source,e.role=C.data.role||"owner",e.coauthors=C.data.coauthors||[],e._originalBranch=C.data.source.branch,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,e.repositoryID=C.data.source.repositoryID,e._originalRepositoryID=C.data.source.repositoryID,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),y=g(parseGithubUrl(e.sourceUrl)),!await O()&&(await Promise.all([Y(),Z()]),ce())},()=>{s.url("/404")})),r.pullRequestId&&r.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=r.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async C=>{if(e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.repositoryFullName+"/pull/"+C.data.source.pullRequestId,e.terms=C.data.options.terms.filter(V=>V).join(`
+`),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),y=g(parseGithubUrl(e.sourceUrl)),!await O())try{await fe()}catch{}},()=>{s.url("/404")})),r.gistId&&r.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=r.gistId,t.get("/api/gist/"+e.gistId).then(async C=>{e.sourceUrl="https://gist.github.com/"+C.data.source.gistId,e.terms=C.data.options.terms.filter(V=>V).join(`
+`),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),y=g(parseGithubUrl(e.sourceUrl)),!await O()&&await Ue()},()=>{s.url("/404")}))}),t.get("/github/connections").then(C=>{e.githubConnections=C.data,!r.repoId&&!r.pullRequestId&&!r.gistId&&e.githubConnection===void 0&&C.data.appEnabled&&C.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&S())}).catch(()=>{}),e.urlSelected=async(C=!1)=>{let V=++f,B;try{B=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,re.cancel(),_e.cancel(),Pe.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",M("sourceUrl","github",!1);return}let L=g(B),v=C||y===L;y=L,e.sourceUrlError="",M("sourceUrl","github",!0);let N=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,N&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!v&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],v||(e.source={type:"GitHubStream",branch:"",commit:""}),re.cancel(),_e.cancel(),Pe.cancel(),le.clear(),Re.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=v;try{B.gistId&&!B.repo?(e.detectedType="gist",e.source={gistId:B.gistId},await Ue()):B.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:B.owner+"/"+B.repo,pullRequestId:B.pullRequestId},await fe()):(e.detectedType="repo",await Promise.all([Y(),Z()]),ce())}catch{}finally{V===f&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let C=e.branches.filter(B=>B.name==e.source.branch)[0];if(!C)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=C.commit),e.readme=C.readme,await Z(),ce()}),e.getBranches=async C=>{let V=parseGithubUrl(e.sourceUrl),B=m();try{let L=await t.get(`/api/repo/${V.owner}/${V.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&se(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:C===!0||e.reconnectingSource?"1":"0",repositoryID:oe()}});if(!w(B))return;e.branches=L.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let v=e.branches.filter(N=>N.name==e.source.branch);v.length>0&&(!(!e.reconnectingSource&&!C&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=v[0].commit),e.readme=v[0].readme,await Z(C))}catch(L){if(!w(B))return;e.branches=[],e.sourceUnreachable=L&&(L.status===404||L.data&&L.data.error==="repo_not_found");let v=L&&L.data&&L.data.error||(L&&L.status===404?"repo_not_found":"unknown_error");i("ERRORS."+v).then(N=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:N}),e.error=N},console.error),typeof M=="function"&&M("sourceUrl","missing",!1)}finally{E(B)}};async function Y(){let C=parseGithubUrl(e.sourceUrl),V=m();try{z();let B=await t.get(`/api/repo/${C.owner}/${C.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&se(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,repositoryID:oe(),force:"1"}});if(!w(V))return;e.details=B.data,e.reconnectingSource&&(e.reconnectRepositoryId=e.details.externalId),e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches(e.reconnectingSource)}catch(B){if(!w(V))return;throw B.data&&(i("ERRORS."+B.data.error).then(L=>{e.addToast({title:"Error",date:new Date,body:L}),e.error=L},console.error),Q(B.data.error)),M("sourceUrl","missing",!1),B}finally{E(V)}}async function Z(C){if(e.readme&&!C)return e.readme;let V=parseGithubUrl(e.sourceUrl),B=m();try{let L=await t.get(`/api/repo/${V.owner}/${V.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&se(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:C===!0?"1":"0",branch:e.source.branch,repositoryID:oe()}});w(B,!0)&&(e.readme=L.data)}catch{w(B,!0)&&(e.readme="")}finally{E(B)}}function te(){let C={terms:e.terms?e.terms.split(`
+`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(C.branchName=e.source.branch);try{let V=parseGithubUrl(e.sourceUrl);C.repoName=`${V.owner}/${V.repo}`}catch{}return C}function J(C,V,B){let L=null,v=0,N=()=>{if(e.detectedType!==C)return;L&&a.cancel(L);let q=++v;e.previewStatus="loading",L=a(()=>{L=null;let H=V();if(!H){e.previewStatus="idle";return}t.post("/api/anonymize-preview",H).then(j=>{q===v&&(B(j.data,H),e.previewStatus="ready")}).catch(()=>{q===v&&(e.previewStatus="error")})},200)};return N.cancel=()=>{v++,L&&a.cancel(L),L=null},e.on("dispose",N.cancel),N}e.retryPreview=()=>{e.detectedType==="repo"&&re(),e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()};let re=J("repo",()=>e.readme?{content:e.readme,options:te()}:null,C=>{if(typeof C?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=C.content;let V="";try{let L=parseGithubUrl(e.sourceUrl),v=e.source.branch||e.details&&e.details.defaultBranch||"main";V=`https://github.com/${L.owner}/${L.repo}/raw/${v}/`}catch{}let B=renderMD(e.anonymize_readme,V);e.html_readme=B,a(Prism.highlightAll,150)});function ce(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),re())}async function fe(){let C=parseGithubUrl(e.sourceUrl),V=m();try{z();let B=await t.get(`/api/pr/${C.owner}/${C.repo}/${C.pullRequestId}`,{params:{connection:e.githubConnection}});if(!w(V))return;e.details=B.data,e.pullRequestId||(e.pullRequestId=C.repo+"-PR"+C.pullRequestId+"-"+generateRandomId(4))}catch(B){if(!w(V))return;throw B.data&&(i("ERRORS."+B.data.error).then(L=>{e.addToast({title:"Error",date:new Date,body:L}),e.error=L},console.error),Q(B.data.error)),M("sourceUrl","missing",!1),B}finally{E(V)}}let le=ze(new Map);function Oe(){let C=new Set,V=e.details&&e.details.pullRequest;if(!V)return C;typeof V.title=="string"&&C.add(V.title),typeof V.body=="string"&&C.add(V.body),typeof V.diff=="string"&&C.add(V.diff);let B=V.comments||[];for(let L of B)typeof L.author=="string"&&C.add(L.author),typeof L.body=="string"&&C.add(L.body);return C}let _e=J("pr",()=>{let C=Oe(),V=Array.from(C);return V.length===0?null:{contents:V,options:te()}},(C,V)=>{if(!Array.isArray(C?.contents)||C.contents.length!==V.contents.length||C.contents.some(v=>typeof v!="string"))throw Error("Invalid preview response");let B=V.contents,L=new Map;for(let v=0;vle.set(N,v))});e.anonymizePrContent=function(C){return C&&(le.has(C)?le.get(C):"")};async function Ue(){let C=parseGithubUrl(e.sourceUrl),V=m();try{z(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let B=await t.get(`/api/gist/source/${C.gistId}`);if(!w(V))return;e.details=B.data,e.gistId||(e.gistId="gist-"+C.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(B){if(!w(V))return;if(B.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,M("sourceUrl","missing",!1);return}if(B.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,M("sourceUrl","missing",!1);return}throw B.data&&(i("ERRORS."+B.data.error).then(L=>{e.addToast({title:"Error",date:new Date,body:L}),e.error=L},console.error),Q(B.data.error)),M("sourceUrl","missing",!1),B}finally{E(V)}}let Re=ze(new Map);function Me(){let C=new Set,V=e.details&&e.details.gist;if(!V)return C;typeof V.description=="string"&&C.add(V.description),typeof V.ownerLogin=="string"&&C.add(V.ownerLogin);let B=V.files||[];for(let v of B)typeof v.filename=="string"&&C.add(v.filename),typeof v.content=="string"&&C.add(v.content);let L=V.comments||[];for(let v of L)typeof v.author=="string"&&C.add(v.author),typeof v.body=="string"&&C.add(v.body);return C}let Pe=J("gist",()=>{let C=Me(),V=Array.from(C);return V.length===0?null:{contents:V,options:te()}},(C,V)=>{if(!Array.isArray(C?.contents)||C.contents.length!==V.contents.length||C.contents.some(v=>typeof v!="string"))throw Error("Invalid preview response");let B=V.contents,L=new Map;for(let v=0;vRe.set(N,v)),He()});e.anonymizeGistContent=function(C){return C&&(Re.has(C)?Re.get(C):"")},e.previewGistFiles=[];function He(){let C=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=C.map(V=>({filename:e.anonymizeGistContent(V.filename),content:e.anonymizeGistContent(V.content),language:V.language}))}e.watch("details.gist.files",He,!0),e.watch("terms",He);function Ee(){let C=e.conference;if(e.conference_data=null,!C)return;let V=e.isUpdate&&C===e._originalConference;t.get("/api/conferences/"+C).then(B=>{e.conference===C&&(e.conference_data=B.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!V&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===C&&(e.conference_data=null)})}function z(){M("repoId","used",!0),M("repoId","format",!0),M("pullRequestId","used",!0),M("pullRequestId","format",!0),M("gistId","used",!0),M("gistId","format",!0),M("sourceUrl","used",!0),M("sourceUrl","missing",!0),M("sourceUrl","access",!0),M("sourceUrl","github",!0),M("commit","exists",!0),M("conference","activated",!0),M("terms","format",!0),e.termsRegexWarning=!1}function ne(){let C=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||C&&C.invalid?(C&&C.setDirty&&C.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function Q(C){let V=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(C){case"repoId_already_used":M(V,"used",!1);break;case"invalid_repoId":M(V,"format",!1);break;case"options_not_provided":M(V,"format",!1);break;case"repo_already_anonymized":M("sourceUrl","used",!1);break;case"invalid_terms_format":M("terms","format",!1);break;case"repo_not_found":M("sourceUrl","missing",!1);break;case"repo_not_accessible":M("sourceUrl","access",!1);break;case"commit_not_found":M("commit","exists",!1);break;case"conf_not_activated":M("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let C=(e.coauthorSearch||"").trim();if(e.coauthorError="",C.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:C}}).then(V=>{let B=new Set((e.coauthors||[]).map(L=>(L.username||"").toLowerCase()));e.coauthorResults=(V.data||[]).filter(L=>!B.has((L.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(C,V)=>{V&&V.preventDefault(),!(!C||!C.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:C.username}).then(B=>{e.coauthors=B.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},B=>{let L=B&&B.data&&B.data.error||"unknown_error";e.coauthorError=L})},e.removeCoauthor=C=>{!C||!C.username||confirm("Remove co-author "+C.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(C.username)).then(V=>{e.coauthors=V.data||[]},V=>{let B=V&&V.data&&V.data.error||"unknown_error";e.coauthorError=B})},e.anonymizeRepo=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId||ne())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let V=C.currentTarget||C.target.closest?.("button")||C.target;V.disabled=!0;let B=parseGithubUrl(e.sourceUrl),L={repoId:e.repoId,terms:e.terms.trim().split(`
+`).filter(N=>N),connection:e.githubConnection,fullName:`${B.owner}/${B.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(L.options.pageSource=e.details.pageSource),z();let v=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(v,L,{headers:{"Content-Type":"application/json"}}).then(()=>{_.clear(),window.location.href="/status/"+e.repoId},N=>{N.data&&(i("ERRORS."+N.data.error).then(q=>{e.error=q},console.error),Q(N.data.error))}).finally(()=>{V.disabled=!1})},e.anonymizeGist=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ne())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let V=C.currentTarget||C.target.closest?.("button")||C.target;V.disabled=!0;let B=parseGithubUrl(e.sourceUrl),L={gistId:e.gistId,terms:e.terms.trim().split(`
+`).filter(N=>N),source:{gistId:B.gistId},options:e.options,conference:e.conference};z();let v=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(v,L,{headers:{"Content-Type":"application/json"}}).then(()=>{_.clear(),window.location.href="/gist/"+e.gistId},N=>{N.data&&(i("ERRORS."+N.data.error).then(q=>{e.error=q},console.error),Q(N.data.error))}).finally(()=>{V.disabled=!1})},e.anonymizePullRequest=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ne())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let V=C.currentTarget||C.target.closest?.("button")||C.target;V.disabled=!0;let B=parseGithubUrl(e.sourceUrl),L={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
+`).filter(N=>N),source:{repositoryFullName:`${B.owner}/${B.repo}`,pullRequestId:B.pullRequestId},options:e.options,conference:e.conference};z();let v=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(v,L,{headers:{"Content-Type":"application/json"}}).then(()=>{_.clear(),window.location.href="/pr/"+e.pullRequestId},N=>{N.data&&(i("ERRORS."+N.data.error).then(q=>{e.error=q},console.error),Q(N.data.error))}).finally(()=>{V.disabled=!1})},e.watch("conference",()=>{Ee()}),e.watch("terms",()=>{e.detectedType==="repo"&&ce(),e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()}),e.watch("options.image",()=>{e.detectedType==="repo"&&ce(),e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()}),e.watch("options.link",()=>{e.detectedType==="repo"&&ce(),e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()}),e.watch("details",()=>{e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()},!0)},ar=function(e,t,n,r,s,i){let a=ct();window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",O=>Ya(O.element)),window.Prism.redactionHook=!0);let u=Xt();e.on("dark-mode",(O,Y)=>{e.aceOption&&(Y?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let f=0,k=!1;e.on("dispose",()=>{k=!0,f++,h&&h.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,u(document,"keydown",function(O){if((O.metaKey||O.ctrlKey)&&O.key==="k"){O.preventDefault();var Y=document.querySelector(".tree-search-input");Y&&(Y.focus(),Y.select())}});var h=null;e.onFileSearchChange=function(){h&&(h.resolve(),h=null);let O=e.fileSearchQuery;if(!O||O.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let Y=i.defer();h=Y,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(O)}`,{timeout:Y.promise}).then(function(Z){if(!(k||h!==Y)){h=null,e.fileSearchLoading=!1;var te={};e.files.forEach(function(z){te[(z.path||"")+"/"+z.name]=!0});for(var J=[],re={},ce=0;ce0&&e.files.push.apply(e.files,J);for(var Me=[],Pe=0;Pe0&&e.files.push.apply(e.files,Me),e.fileSearchResults=Z.data}},function(){!k&&h===Y&&(h=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let w={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},m=["license","txt"],E=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],y=["wav","mp3","ogg","wma","flac","aac","m4a"],g=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(O,Y){if(e.repoId!=r.repoId)return S();if((r.path||"")!=e.filePath){e.filePath=r.path||"",e.paths=e.filePath.split("/").filter(Z=>Z&&Z.trim().length>0),oe();for(let Z=0;Z0?e.paths.slice(0,Z).join("/"):"";e.files.some(re=>re.path===te)||e.getFiles(te)}}});function _(){if(e.paths[0]!="")return;let O=["readme.md","readme.txt","readme.org","readme.1st","readme"],Y={};for(let te of e.files)te.name.toLowerCase().indexOf("readme")>-1&&(Y[te.name.toLowerCase()]=te.name);let Z=null;for(let te of O)if(Y[te]){Z=te;break}if(!Z&&Object.keys(Y).length>0&&(Z=Object.keys(Y)[0]),Z){let te=n.url();te[te.length-1]!="/"&&(te+="/"),n.url(te+encodePathForUrl(Y[Z]))}}e.fileCounts=null,e.getFiles=function(O){let Y=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(O)}&v=${e.options.lastUpdateDate}`).then(function(Z){if(k||Y!==e.repoId)return[];let te=O||"";return e.files=e.files.filter(J=>J.path!==te),e.files.push(...Z.data),Z.data},function(Z){if(k||Y!==e.repoId)return[];e.type="error",e.content=Z&&Z.data&&Z.data.error||"unknown_error",e.files=[]})};function R(){let O=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(Y){k||O!==e.repoId||(e.fileCounts=Y.data)},function(){e.fileCounts={}})}function T(){return e.files.filter(O=>O.name==e.paths[e.paths.length-1]&&O.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var I=null;e.on("dispose",function(){I&&a.interval.cancel(I)});function F(O){if(k)return;let Y=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(Z=>{if(!(k||Y!==e.repoId)){if(e.options=Z.data,e.options.url){window.location=e.options.url;return}O&&O(Z.data)}},Z=>{if(!(k||Y!==e.repoId)){var te=Z.data||{};if(te.error==="rate_limited"&&te.resetAt){let re=function(){var ce=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(ce<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,I&&(a.interval.cancel(I),I=null),F(O);else{var fe=Math.floor(ce/60),le=ce%60;e.rateLimitCountdown=fe>0?fe+"m "+le+"s":le+"s"}};var J=re;e.type="rate_limited",e.rateLimitResetAt=te.resetAt,I&&a.interval.cancel(I),re(),I=a.interval(re,1e3)}else te.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){F(O)},3e3)):(e.type="error",e.content=te.error)}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function P(O){return w[O]?w[O]:O}function M(O){return O=="pdf"?"pdf":O=="html"||O=="htm"?"html-doc":O=="md"?"md":O=="org"?"org":O=="ipynb"?"IPython":m.indexOf(O)>-1?"text":E.indexOf(O)>-1?"image":g.indexOf(O)>-1?"media":y.indexOf(O)>-1?"audio":"code"}function se(O,Y){let Z=f;if(!O){e.type="error",e.content="no_file_selected";return}let te=e.type;e.type="loading",e.content="loading";let J=Y&&Y.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(O)}?v=`+J,{transformResponse:re=>re}).then(re=>{if(!(k||Z!==f)){if(e.type=te,e.content=re.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(re.data,n.url()+"/../"),e.type="html"),e.type=="org"){let fe=contentAbs2Relative(re.data);var ce=new Org.Parser().parse(fe).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(ce.toString()),e.type="html"}e.type=="code"&&re.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},re=>{if(!(k||Z!==f)){e.type="error",e.content="unknown_error";try{re.data=JSON.parse(re.data),re.data.error?e.content=re.data.error:e.content=re.data}catch{console.log(re),re.status==-1?e.content="request_error":re.status==502&&(e.content="unreachable")}}})}function oe(){f++,e.content="",e.file=T();let O="0";e.file&&e.file.sha&&(O=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${O}`;let Y=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${Y?encodePathForUrl(Y):""}`,e.showSource=!1,e.allowScripts=!1;let Z=e.filePath.toLowerCase(),te=Z.lastIndexOf(".");if(te>-1&&(Z=Z.substring(te+1)),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:P(Z),onLoad:function(J){let re=ace.require("ace/range").Range,ce=null;function fe(Ee,z){ce!==null&&(J.session.removeMarker(ce),ce=null),Ee!=null&&(ce=J.session.addMarker(new re(Ee,0,z,1),"highlighted-line","fullLine"))}function le(Ee){let z=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!z){fe(null);return}let ne=parseInt(z[1])-1,Q=z[2]?parseInt(z[2])-1:ne;fe(ne,Q),Ee&&a.timeout(()=>{J.scrollToLine(ne,!0,!0,function(){})},100)}le(!0);let Oe=null;J.on("guttermousedown",function(Ee){let z=Ee.getDocumentPosition().row,ne=Ee.domEvent&&Ee.domEvent.shiftKey,Q=z,C=z;ne&&Oe!==null?(Q=Math.min(Oe,z),C=Math.max(Oe,z)):Oe=z;let V=Q===C?`#L${Q+1}`:`#L${Q+1}-L${C+1}`,B=window.location.pathname+window.location.search+V;window.history.replaceState(null,"",B),fe(Q,C),Ee.stop()});let _e=u(window,"hashchange",()=>le(!1));J.setFontSize(e.aceOption.fontSize),J.setReadOnly(e.aceOption.readOnly),J.setKeyboardHandler(e.aceOption.keyBinding),J.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),J.setOption("displayIndentGuides",!0),J.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(J.renderer.$cursorLayer.element.style.display="none"),J.setHighlightGutterLine(e.aceOption.highlightGutterLine),J.setShowInvisibles(e.aceOption.showInvisibles),J.setDisplayIndentGuides(e.aceOption.showIndentGuides),J.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),J.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),J.session.setUseSoftTabs(e.aceOption.useSoftTab),J.session.setTabSize(e.aceOption.tabSize);let Ue=window.matchMedia("(max-width: 991px)"),Re=()=>J.session.setUseWrapMode(e.aceOption.useWrapMode&&Ue.matches);Re(),Ue.addEventListener?.("change",Re),J.setBehavioursEnabled(e.aceOption.enableBehaviours),J.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let Me=[],Pe=()=>{Me.forEach(ne=>J.session.removeMarker(ne)),Me=[];let Ee=Ka();if(!Ee)return;J.session.getDocument().getAllLines().forEach((ne,Q)=>{for(let C of ne.matchAll(Ee))Me.push(J.session.addMarker(new re(Q,C.index,Q,C.index+C[0].length),"ace_redaction","text"))})};Pe(),J.session.on("change",()=>a.timeout(Pe,0));let He=e.on("site-options",Pe);return()=>{_e(),He(),Ue.removeEventListener?.("change",Re)}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=M(Z),e.type=="pdf"){e.content="pdf";return}se(e.filePath,e.file)}function S(){f++,e.files=[],e.content=null,e.fileCounts=null,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=r.repoId,e.type="loading",e.filePath=r.path||"",e.paths=e.filePath.split("/");let O=e.repoId;F(function(Y){R();var Z=i.resolve();for(let te=0;te0?e.paths.slice(0,te).join("/"):"";Z=Z.then(function(){return e.getFiles(J)}).then(function(){if(e.type==="error")return i.reject("error")})}Z.then(function(){k||O!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(_(),oe()))})})}S()},sl=function(e,t,n,r,s){async function i(f){t.get(`/api/pr/${e.pullRequestId}/options`).then(k=>{if(e.options=k.data,e.options.url){window.location=e.options.url;return}f&&f(k.data)},k=>{e.type="error",e.content=k.data.error})}async function a(f){t.get(`/api/pr/${e.pullRequestId}/content`).then(k=>{e.details=k.data,e.tabState={active:k.data.diff?"diff":"comments"},f&&f(k.data)},k=>{e.type="error",e.content=k.data.error})}function u(){e.pullRequestId=r.pullRequestId,e.type="loading",i(f=>{a()})}u()},rl=function(e,t,n,r,s){async function i(f){t.get(`/api/gist/${e.gistId}/options`).then(k=>{if(e.options=k.data,e.options.url){window.location=e.options.url;return}f&&f(k.data)},k=>{e.type="error",e.content=k.data.error})}async function a(f){t.get(`/api/gist/${e.gistId}/content`).then(k=>{e.details=k.data;let h=k.data&&k.data.files&&k.data.files.length;e.tabState={active:h?"files":"comments"},f&&f(k.data)},k=>{e.type="error",e.content=k.data.error})}function u(){e.gistId=r.gistId,e.type="loading",i(()=>{a()})}u()},il=function(e,t,n){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let r="conferences.filterPrefs",s={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},i=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},s.filters.status,i.filters&&i.filters.status||{})},e.orderBy=i.orderBy||s.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(a){if(!a.removing&&confirm(`Are you sure that you want to remove the conference ${a.name}? All the repositories linked to this conference will expire.`)){a.removing=!0;let u=ze({title:`Removing ${a.name}...`,date:new Date,body:`The conference ${a.name} is going to be removed.`});e.addToast(u),t.delete(`/api/conferences/${a.conferenceID}`).then(()=>{u.title=`${a.name} is removed.`,u.body=`The conference ${a.name} is removed.`,e.loadConferences()}).catch(()=>{u.title="Unable to remove conference",u.body="Please try again. The conference has not been removed."}).finally(()=>{a.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(a=>{e.conferences=a.data||[]},a=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=a=>{if(e.filters.status[a.status]==!1)return!1;let u=e.search.trim().toLowerCase();return!!(!u||(a.name||"").toLowerCase().includes(u)||(a.conferenceID||"").toLowerCase().includes(u))}},lr=function(e,t,n,r){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.plans=[],e.editionMode=!1,e.saving=!1,e.error="";function s(){t.get("/api/conferences/"+r.conferenceId).then(h=>{e.options={...e.options,...h.data,billing:h.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}r.conferenceId&&(e.editionMode=!0,s());function i(){t.get("/api/conferences/plans").then(h=>{e.plans=h.data,e.plan=e.plans.filter(w=>w.id==e.options.plan.planID)[0]})}i();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let u=new Date(a);u.setMonth(a.getMonth()+7,0),e.options={billing:{},startDate:a,endDate:u,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},e.plan=null,e.watch("options.plan.planID",()=>{e.plan=e.plans.filter(h=>h.id==e.options.plan.planID)[0]});function f(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function k(h){switch(h){case"conf_name_missing":e.conference.name.setValidity("required",!1);break;case"conf_id_missing":e.conference.conferenceID.setValidity("required",!1);break;case"conf_id_format":e.conference.conferenceID.setValidity("pattern",!1);break;case"conf_id_used":e.conference.conferenceID.setValidity("used",!1);break;case"conf_start_date_missing":e.conference.startDate.setValidity("required",!1);break;case"conf_end_date_missing":e.conference.endDate.setValidity("required",!1);break;case"conf_start_date_invalid":e.conference.startDate.setValidity("invalid",!1);break;case"conf_end_date_invalid":e.conference.endDate.setValidity("invalid",!1);break;default:e.conference.setValidity("error",!1);break}}e.submit=function(){if(e.saving)return;e.saving=!0,e.error="";let h=JSON.parse(JSON.stringify(e.options)),w=ze({title:`Creating ${h.name}...`,date:new Date,body:`The conference ${h.conferenceID} is in creation.`});e.editionMode&&(w.title=`Updating ${h.name}...`,w.body=`The conference '${h.conferenceID}' is updating.`),e.addToast(w),f(),t.post("/api/conferences/"+(e.editionMode?h.conferenceID:""),h).then(()=>{e.editionMode?(w.title=`${h.name} updated`,w.body=`The conference '${h.conferenceID}' is updated.`):(w.title=`${h.name} created`,w.body=`The conference '${h.conferenceID}' is created.`),n.url("/conference/"+h.conferenceID)},m=>{k(m.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(w)}).finally(()=>{e.saving=!1})}},al=function(e,t,n,r){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=i=>{if(e.filters.status[i.status]==!1)return!1;let a=e.search.trim().toLowerCase();return!!(!a||(i.source?.fullName||"").toLowerCase().includes(a)||(i.repoId||"").toLowerCase().includes(a))};function s(){t.get("/api/conferences/"+r.conferenceId).then(i=>{e.conference=i.data})}s()},ll=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let n=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=n.data.notificationEmail,e.user&&(e.user.notificationEmail=n.data.notificationEmail),e.emailSaved=!0}catch(n){e.connectionError=n.data?.error||"Unable to save email address."}finally{e.busy=!1}},e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(n=>{e.connections=n.data,e.notificationEmail=n.data.notificationEmail||""}).catch(n=>{e.connectionError=n.data?.error||"Unable to load connections."}),e.changeConnection=async(n,r,s)=>{e.busy=!0,e.connectionError="";try{let i=await t.post("/github/connections/migrate",{type:n.type,id:n.id,connection:r,preview:s},{headers:{"X-CSRF-Token":e.connections.csrf}});s?n.eligible=i.data.eligible:await e.loadConnections()}catch(i){e.connectionError=i.data?.error||"Unable to change connection."}finally{e.busy=!1}},e.disconnectOAuth=async()=>{e.busy=!0;try{await t.post("/github/connections/disconnect-oauth",{},{headers:{"X-CSRF-Token":e.connections.csrf}}),await e.loadConnections()}catch(n){e.connectionError=n.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},dl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(n=>{e.accountRecovery=n.data.required}).catch(()=>{})};var ul=function(e,t,n){let r=ct(),s=Xt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let i=y=>{if(y.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){y.preventDefault();let g=document.querySelector('.admin-filter-toolbar input[type="search"]');g&&g.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=y=>{y==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[y]="",e.query.page=1},e.chips=[];let a=()=>{let y=[];e.query.owner&&y.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&y.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=y};e.showStatusMessage=y=>{let g=y.statusMessage||"(no message)";window.prompt(`Status message for ${y.repoId} (${y.status}):`,g)},e.fetchGithubInfo=y=>{let g=window.open("","_blank");g&&g.document.write("
Manage how GitHub shares your code. Your anonymizations and URLs stay the same.
',2)),e.connectionError?(l(),d("p",Up,c(e.connectionError),1)):p("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",Fp,"Loading your connections\u2026")):p("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=n=>e.loadConnections())},"Try again",8,zp)):p("v-if",!0),e.connections?(l(),d("div",Hp,[e.connections.emailNotificationsEnabled?(l(),d("section",Bp,[t[6]||(t[6]=o("h2",null,"Email alerts",-1)),t[7]||(t[7]=o("p",null,"We will email you if your GitHub connection stops working or a repository becomes inaccessible. Your address is never shown on anonymous pages.",-1)),o("form",{onSubmit:t[2]||(t[2]=de(n=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=o("label",{for:"notification-email"},"Email address",-1)),D(o("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=n=>e.notificationEmail=n),disabled:e.busy},null,8,jp),[[to,e.notificationEmail]]),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,Gp),e.emailSaved?(l(),d("p",Wp,"Email address saved.")):p("v-if",!0)],32)])):p("v-if",!0),o("div",Kp,[e.connections.appEnabled?(l(),d("section",Yp,[t[13]||(t[13]=o("div",{class:"connection-top"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",{class:"connection-badge"},"Recommended")],-1)),o("div",Jp,[t[8]||(t[8]=o("h2",null,"GitHub App",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=o("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(l(),d("p",Qp,c(e.connections.appError)+". Reconnect to restore access.",1)):p("v-if",!0),o("div",Xp,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",Zp,[...t[9]||(t[9]=[b("Manage repository access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),o("a",{class:A(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},c(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[15]||(t[15]=o("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",xp,[(l(!0),d(X,null,ae(e.connections.installations,n=>(l(),d("li",{key:n.id},[o("div",null,[o("strong",null,c(n.account),1),n.suspended?(l(),d("span",ef," \xB7 Suspended")):p("v-if",!0)]),o("a",{target:"_self",href:"/github/app/install?installationId="+n.id},[t[10]||(t[10]=b("Manage access ",-1)),o("span",of,"for "+c(n.account),1),t[11]||(t[11]=b(" \u2192",-1))],8,tf)]))),128))])):p("v-if",!0),o("button",{class:"connection-link",disabled:e.busy,onClick:t[3]||(t[3]=n=>e.loadConnections())},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh access",-1)])],8,nf)])):p("v-if",!0),o("section",null,[t[18]||(t[18]=o("div",{class:"connection-top"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),o("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),o("div",sf,[t[16]||(t[16]=o("h2",null,"GitHub OAuth",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[19]||(t[19]=o("p",null,"For existing OAuth anonymizations.",-1)),t[20]||(t[20]=o("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(l(),d("a",rf,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):p("v-if",!0),e.connections.oauthConnected?(l(),d("div",af,[e.connections.gistCount?(l(),d("p",lf,c(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):p("v-if",!0),t[17]||(t[17]=o("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-danger",disabled:e.busy||e.connections.resources.some(n=>n.connection==="oauth"),onClick:t[4]||(t[4]=n=>e.disconnectOAuth())},"Revoke OAuth access",8,df)):p("v-if",!0)])):p("v-if",!0)])]),o("section",uf,[o("div",cf,[t[21]||(t[21]=o("h2",null,"Repository connections",-1)),o("span",pf,c(e.connections.resources?.length||0)+" resources",1)]),t[23]||(t[23]=o("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?p("v-if",!0):(l(),d("div",ff,[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("div",null,[o("h3",null,"No repository connections yet"),o("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),o("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(l(!0),d(X,null,ae(e.connections.resources,n=>(l(),d("div",{class:"connection-resource",key:n.type+n.id},[o("div",mf,[o("strong",null,c(n.name||n.id),1),o("small",null,c(n.type)+" \xB7 "+c(n.id),1)]),o("span",{class:A(["connection-badge",{"connection-badge-muted":n.connection==="oauth"}])},c(n.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(n.status)&&(n.status!=="download"||n.type==="pull-request"&&(!n.statusDate||new Date(n.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",hf,[o("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!0)},"Check read-only access",8,vf),n.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!1)},c(n.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,yf)):p("v-if",!0),n.eligible===!1?(l(),d("span",gf,"Access unavailable. Allow this repository on GitHub, then check again.")):p("v-if",!0)])):p("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(n.status)&&(n.status!=="download"||n.type==="pull-request"&&(!n.statusDate||new Date(n.statusDate).getTime()<=Date.now()-3e5))&&n.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:r=>e.changeConnection(n,"oauth",!1)},"Use OAuth",8,bf)):p("v-if",!0)]))),128)),t[24]||(t[24]=o("p",{class:"connection-footnote"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):p("v-if",!0)])}var wf={class:"container paper-page auth-page"},kf={class:"auth-layout"},Ef={class:"auth-options"},Cf={key:0},_f={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},Sf={key:1},Nf={key:1},Df={key:2,class:"auth-legacy"},Rf={key:3,role:"status"};function wl(e,t){return l(),d("div",wf,[t[5]||(t[5]=o("a",{class:"auth-back",href:"/"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-left"})]),b(" Anonymous GitHub")],-1)),o("div",kf,[t[4]||(t[4]=pe('
Your research, ready for review
Your code. Your identity, protected.Sign in to GitHub
Sign in to create and manage your anonymizations.
',1)),o("div",Ef,[e.accountRecovery?(l(),d("section",Cf,[t[0]||(t[0]=o("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=o("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("a",_f,"Verify with previous GitHub connection")):(l(),d("p",Sf,"Account verification is currently unavailable. Please try again later."))])):p("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Nf,[...t[2]||(t[2]=[pe('
Read-only access
Continue with GitHub
Connect through the GitHub App with read-only repository access.
You choose which repositories to share
No permission to write to your code
Sign in with GitHub Your existing anonymizations and connections stay with your account.',6)])])):p("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Df,[...t[3]||(t[3]=[o("div",{class:"connection-title"},[o("h2",null,"Continue with GitHub")],-1),o("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),o("a",{class:"connection-link",target:"_self",href:"/github/login"},[b("Sign in with GitHub "),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-right"})])],-1)])])):p("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",Rf,"GitHub sign-in is currently unavailable. Please try again later.")):p("v-if",!0)])])])}var Tf={class:"paper-empty"};function kl(e,t){return l(),d("div",Tf,[...t[0]||(t[0]=[pe('
Error \xB7 404
This link isn\u2019t here.
The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.
',1)),o("a",Oy,[t[40]||(t[40]=o("span",{class:"ov-route-name"},"download",-1)),o("span",Iy,c(e.data?.queues?.download?.active),1),o("span",Py,c(e.data?.queues?.download?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),o("a",Vy,[t[41]||(t[41]=o("span",{class:"ov-route-name"},"remove",-1)),o("span",qy,c(e.data?.queues?.remove?.active),1),o("span",My,c(e.data?.queues?.remove?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),o("a",$y,[t[42]||(t[42]=o("span",{class:"ov-route-name"},"cache",-1)),o("span",Ly,c(e.data?.queues?.cache?.active),1),o("span",Uy,c(e.data?.queues?.cache?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},c(e.data?.queues?.cache?.failed),3)])])])]),p(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",Fy,[o("div",zy,[t[45]||(t[45]=o("span",{class:"ov-panel-title"},"Services",-1)),o("span",Hy,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),o("div",By,[o("div",jy,[t[47]||(t[47]=o("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),o("div",Gy,[t[46]||(t[46]=o("span",{class:"ov-svc-name"},"web",-1)),o("span",Wy,c(e.data?.system?.nodeVersion),1)]),o("span",Ky,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),o("div",Yy,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",Jy,[t[48]||(t[48]=o("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",Qy,c(e.queueTotal(e.data?.queues?.download))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.download)?p("v-if",!0):(l(),d("span",Xy,"idle"))])]),o("div",Zy,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",xy,[t[49]||(t[49]=o("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",eg,c(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.cache)?p("v-if",!0):(l(),d("span",tg,"idle"))])]),o("div",og,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ng,[t[50]||(t[50]=o("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",sg,c(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.remove)?p("v-if",!0):(l(),d("span",rg,"idle"))])]),o("div",ig,[o("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),o("div",ag,[t[51]||(t[51]=o("span",{class:"ov-svc-name"},"errors",-1)),o("span",lg,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):p("v-if",!0),o("section",dg,[o("div",ug,[t[54]||(t[54]=o("div",null,[o("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),o("p",{class:"ov-performance-note"},"Request latency and process health \xB7 refreshes every 30 seconds")],-1)),o("div",cg,[t[53]||(t[53]=o("label",{for:"performance-window"},"Time range",-1)),D(o("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=n=>e.performanceMinutes=n),onChange:t[1]||(t[1]=n=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[52]||(t[52]=[o("option",{value:15},"Last 15 minutes",-1),o("option",{value:60},"Last hour",-1)])],544),[[ia,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",pg,[t[55]||(t[55]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),o("span",null,c(e.performanceError),1),o("button",{type:"button",class:"btn btn-sm",onClick:t[2]||(t[2]=n=>e.loadPerformance())},"Retry")])):p("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",fg,"Loading performance monitoring\u2026")):p("v-if",!0),e.performance?.available?(l(),d("div",mg,[o("div",hg,[o("button",{id:"performance-routes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="routes"}]),role:"tab","aria-selected":e.performanceTab==="routes",tabindex:e.performanceTab==="routes"?0:-1,"aria-controls":"performance-routes",onClick:t[3]||(t[3]=n=>e.performanceTab="routes"),onKeydown:t[4]||(t[4]=n=>e.previewTabKeydown(n))},"Routes",42,vg),o("button",{id:"performance-processes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="processes"}]),role:"tab","aria-selected":e.performanceTab==="processes",tabindex:e.performanceTab==="processes"?0:-1,"aria-controls":"performance-processes",onClick:t[5]||(t[5]=n=>e.performanceTab="processes"),onKeydown:t[6]||(t[6]=n=>e.previewTabKeydown(n))},"Processes",42,yg),o("button",{id:"performance-stages-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="stages"}]),role:"tab","aria-selected":e.performanceTab==="stages",tabindex:e.performanceTab==="stages"?0:-1,"aria-controls":"performance-stages",onClick:t[7]||(t[7]=n=>e.performanceTab="stages"),onKeydown:t[8]||(t[8]=n=>e.previewTabKeydown(n))},"Work stages",42,gg)]),D(o("div",bg,[e.performance.routes?.length?(l(),d("div",wg,[o("table",kg,[t[56]||(t[56]=o("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[57]||(t[57]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Route"),o("th",{scope:"col",class:"num"},"Requests"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"First byte p95"),o("th",{scope:"col",class:"num"},"p95"),o("th",{scope:"col",class:"num"},"p99"),o("th",{scope:"col",class:"num"},"Interrupted"),o("th",{scope:"col",class:"num"},"5xx"),o("th",{scope:"col",class:"num"},"Slow")])],-1)),o("tbody",null,[(l(!0),d(X,null,ae(e.performance.routes,n=>(l(),d("tr",{key:n.service+n.method+n.route},[o("th",Eg,[o("span",null,c(n.route),1),o("small",null,c(n.service)+" \xB7 "+c(n.method),1)]),o("td",Cg,c(e.fmt.number(n.count)),1),o("td",_g,c(e.formatMs(n.avgMs)),1),o("td",Sg,c(e.firstByteBound(n)),1),o("td",Ng,c(e.latencyBound(n,"p95UpperMs")),1),o("td",Dg,c(e.latencyBound(n,"p99UpperMs")),1),o("td",{class:A(["num",{"ov-metric-warn":n.aborted>0}])},c(e.fmt.number(n.aborted)),3),o("td",{class:A(["num",{"ov-metric-warn":n.errors>0}])},c(e.fmt.number(n.errors)),3),o("td",{class:A(["num",{"ov-metric-warn":n.slow>0}])},c(e.fmt.number(n.slow)),3)]))),128))])])])):(l(),d("p",Rg,"No recorded requests in this time range yet."))],512),[[K,e.performanceTab==="routes"]]),D(o("div",Tg,[t[61]||(t[61]=o("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(l(),d("div",Og,[o("table",Ig,[t[59]||(t[59]=o("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[60]||(t[60]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Process"),o("th",{scope:"col",class:"num"},"RSS / limit"),o("th",{scope:"col",class:"num"},"CPU"),o("th",{scope:"col",class:"num"},"Event loop p95"),o("th",{scope:"col",class:"num"},"Active requests"),o("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),o("th",{scope:"col",class:"num"},"Workers / waiting"),o("th",{scope:"col",class:"num"},"Sample age"),o("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),o("tbody",null,[(l(!0),d(X,null,ae(e.performance.instances,n=>(l(),d("tr",{key:n.instance,class:A({"ov-metric-warning-row":e.performanceWarning(n)})},[o("th",Pg,[o("span",null,c(n.instance),1),e.performanceWarning(n)?(l(),d("small",Vg,[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" Needs attention",-1)])])):p("v-if",!0)]),o("td",qg,[b(c(e.humanBytes(n.memory.rss))+" / "+c(e.humanBytes(n.memoryLimitBytes)),1),o("small",null,"Peak "+c(e.humanBytes(e.peakRss(n))),1)]),o("td",Mg,c(n.cpuPercent.toFixed(1))+"%",1),o("td",$g,c(n.eventLoop.p95Ms.toFixed(1))+" ms",1),o("td",Lg,c(n.activeRequests),1),o("td",Ug,c(n.sockets?.descriptors??"Unavailable")+" / "+c(n.sockets?.closeWait??"Unavailable"),1),o("td",Fg,c(n.workers?.running??0)+" / "+c(n.workers?.waiting??0),1),o("td",zg,c(e.sampleAge(n))+" s",1),o("td",Hg,c(n.droppedBatches)+" / "+c(n.droppedMetrics),1)],2))),128))])])])):(l(),d("div",Ag,"No recent process samples. Monitoring coverage is incomplete."))],512),[[K,e.performanceTab==="processes"]]),D(o("div",Bg,[e.performance.stages?.some(n=>n.metric!=="first_byte")?(l(),d("div",jg,[o("table",Gg,[t[62]||(t[62]=o("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[63]||(t[63]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Work stage"),o("th",{scope:"col",class:"num"},"Samples"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"p95")])],-1)),o("tbody",null,[(l(!0),d(X,null,ae(e.performance.stages.filter(n=>n.metric!=="first_byte"),n=>(l(),d("tr",{key:n.service+n.metric},[o("th",Wg,[o("span",null,c(n.metric),1),o("small",null,c(n.service),1)]),o("td",Kg,c(e.fmt.number(n.count)),1),o("td",Yg,c(e.formatMs(n.avgMs)),1),o("td",Jg,c(e.latencyBound(n,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",Qg,"No recorded work stages or cache results in this time range yet."))],512),[[K,e.performanceTab==="stages"]]),t[64]||(t[64]=o("details",{class:"ov-performance-help"},[o("summary",null,"How to read these metrics"),o("p",null,"Latency includes upstream waits and response transfer. Percentiles show histogram bucket upper bounds, not exact timings. Process rows marked \u201CNeeds attention\u201D have stale samples, dropped monitoring data, CLOSE_WAIT sockets, high event loop delay, or high memory usage.")],-1))])):p("v-if",!0)])])}var Xg={class:"container paper-page admin-page"},Zg={class:"q-header"},xg={class:"q-header-actions"},eb={class:"q-range-btns"},tb={class:"q-cards"},ob=["aria-pressed","onKeydown","onClick"],sb={class:"q-card-head"},rb=["textContent"],ib=["textContent"],ab={class:"q-card-sub"},lb={key:0,class:"q-card-bar"},db={key:0,class:"q-detail"},ub={class:"q-throughput"},cb={class:"q-section-label"},pb={class:"q-section-right"},fb={class:"q-stats-panel"},mb={class:"q-section-label"},hb={class:"q-stats-grid"},vb={class:"q-stat"},yb=["textContent"],gb={class:"q-stat"},bb=["textContent"],wb={class:"q-stat"},kb=["textContent"],Eb={class:"q-stat"},Cb=["textContent"],_b={class:"q-stat"},Sb=["textContent"],Nb={class:"q-stat"},Db=["textContent"],Rb={class:"q-stats-actions"},Tb=["disabled"],Ab={class:"q-jobs"},Ob={class:"q-jobs-header"},Ib={class:"q-section-label"},Pb={class:"q-state-filters"},Vb={class:"q-state-toggle"},qb={type:"checkbox"},Mb={class:"q-search-row"},$b={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},Lb={class:"q-auto-refresh"},Ub={type:"checkbox"},Fb={key:0,class:"q-table"},zb=["onClick"],Hb={class:"q-cell-state"},Bb=["textContent"],jb=["textContent"],Gb={class:"q-cell-id"},Wb=["textContent","href"],Kb={class:"q-cell-payload"},Yb=["textContent"],Jb={key:0,class:"q-payload-detail"},Qb=["textContent"],Xb=["textContent"],Zb={class:"q-cell-progress"},xb={key:0,class:"q-progress-wrap"},e1=["textContent"],t1={class:"q-cell-actions"},o1=["onClick"],n1=["onClick"],s1={key:0,class:"q-detail-row"},r1={colspan:"7"},i1={class:"q-job-detail"},a1={class:"q-job-detail-grid"},l1={class:"q-job-detail-item"},d1={class:"q-job-detail-value"},u1=["textContent","href"],c1={class:"q-job-detail-item"},p1={class:"q-job-detail-value"},f1=["textContent"],m1={key:0,class:"q-job-detail-item"},h1=["textContent"],v1={key:1,class:"q-job-detail-item"},y1=["textContent"],g1={key:2,class:"q-job-detail-item"},b1={class:"q-job-detail-value"},w1={key:3,class:"q-job-detail-item"},k1=["textContent"],E1={key:4,class:"q-job-detail-item"},C1=["textContent"],_1={key:5,class:"q-job-detail-item"},S1=["textContent"],N1={key:6,class:"q-job-detail-item"},D1=["textContent"],R1={key:7,class:"q-job-detail-item"},T1=["textContent"],A1={key:0,class:"q-job-detail-error"},O1=["textContent"],I1={key:1},P1=["textContent"],V1={class:"q-job-detail-actions"},q1=["onClick"],M1=["onClick"],$1=["href"],L1={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},U1={key:0},F1={key:1};function Sl(e,t){let n=be("field");return l(),d("div",Xg,[t[48]||(t[48]=o("div",{class:"paper-crumbs"},[b("Admin \xA0/\xA0 "),o("span",{class:"here"},"Queues")],-1)),o("div",Zg,[t[12]||(t[12]=o("h1",{class:"paper-page-title"},"Queues",-1)),o("div",xg,[o("div",eb,[o("button",{class:A(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=r=>e.setRange("1h"))},"1h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=r=>e.setRange("6h"))},"6h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=r=>e.setRange("24h"))},"24h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=r=>e.setRange("7d"))},"7d",2)]),o("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=r=>e.pauseAll())},"Pause all"),o("button",{class:"btn btn-sm btn-danger-soft",onClick:t[5]||(t[5]=r=>e.drainSelected())},"Drain "+c(e.selectedQueue),1)])]),t[49]||(t[49]=pe('',1)),p(" Queue overview cards "),o("div",tb,[(l(!0),d(X,null,ae(e.queueList,(r,s)=>(l(),d("div",{class:A(["q-card",{selected:e.selectedQueue==r?.key,paused:r?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===r.key,onKeydown:[Ao(de(i=>e.selectQueue(r.key),["prevent"]),["enter"]),Ao(de(i=>e.selectQueue(r.key),["prevent"]),["space"])],onClick:i=>e.selectQueue(r.key)},[o("div",sb,[o("span",{class:A(["q-dot",{"q-dot-red":r?.paused||r?.counts?.failed>0}])},null,2),o("span",{class:"q-card-name",textContent:c(r?.label)},null,8,rb)]),o("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,ib),o("div",ab,[o("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",lb,[o("div",{class:"q-card-bar-fill",style:qe({width:r?.counts?.active/((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0)||1)*100+"%"})},null,4)])):p("v-if",!0)])],42,ob))),256))]),p(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",db,[o("div",ub,[o("div",cb,[b(c(e.selectedQueue)+" \xB7 throughput ",1),o("span",pb,[t[13]||(t[13]=o("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=b(" completed ",-1)),t[15]||(t[15]=o("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=b(" failed ",-1)),t[17]||(t[17]=o("span",{class:"q-legend-exec"},"- -",-1)),b(" avg time \xB7 "+c(e.range),1)])]),t[18]||(t[18]=o("div",{class:"q-chart-wrap"},[o("canvas",{id:"q-throughput-chart",height:"180"}),o("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),o("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),o("div",fb,[o("div",mb,c(e.selectedQueue)+" \xB7 stats",1),o("div",hb,[o("div",vb,[t[19]||(t[19]=o("div",{class:"q-stat-label"},"Waiting",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,yb)]),o("div",gb,[t[20]||(t[20]=o("div",{class:"q-stat-label"},"Active",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,bb)]),o("div",wb,[t[21]||(t[21]=o("div",{class:"q-stat-label"},"Completed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,kb)]),o("div",Eb,[t[22]||(t[22]=o("div",{class:"q-stat-label"},"Failed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,Cb)]),o("div",_b,[t[23]||(t[23]=o("div",{class:"q-stat-label"},"Delayed",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,Sb)]),o("div",Nb,[t[24]||(t[24]=o("div",{class:"q-stat-label"},"Workers",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,Db)])]),o("div",Rb,[o("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=r=>e.togglePause())},c(e.selectedStats?.paused?"Resume":"Pause"),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=r=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,Tb),o("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=r=>e.emptyQueue())},"Empty")])])])):p("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=r=>e.actionError=null)},[t[25]||(t[25]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),b(" "+c(e.actionError),1)])):p("v-if",!0),p(" Jobs table "),o("div",Ab,[o("div",Ob,[o("div",Ib,"All jobs \xB7 "+c(e.selectedQueue),1),o("div",Pb,[(l(!0),d(X,null,ae(e.allStates,(r,s)=>(l(),d("label",Vb,[D(o("input",qb,null,512),[[n,{state:e.viewState,set:i=>{e.stateFilter[r]=i},value:e.stateFilter[r],form:null,options:{}}]]),o("span",{class:A("q-state-chip q-state-"+r)},c(r),3)]))),256))])]),o("div",Mb,[D(o("input",$b,null,512),[[n,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),o("label",Lb,[D(o("input",Ub,null,512),[[n,{state:e.viewState,set:r=>{e.query.autoRefresh=r},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=b(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=r=>e.refreshNow()),"aria-label":"Refresh"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(l(),d("table",Fb,[t[46]||(t[46]=o("thead",null,[o("tr",null,[o("th",null,"State"),o("th",null,"Job id"),o("th",null,"Payload"),o("th",null,"Attempts"),o("th",null,"Duration"),o("th",null,"Progress"),o("th")])],-1)),(l(!0),d(X,null,ae(e.filteredJobs(),(r,s)=>(l(),d("tbody",null,[o("tr",{style:{cursor:"pointer"},class:A({"q-row-failed":r?._state=="failed","q-row-expanded":e.expanded[r?.id]}),onClick:i=>e.toggleJob(r)},[o("td",Hb,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,Bb),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,jb)):p("v-if",!0)]),o("td",Gb,[(l(),d("svg",{class:A(["ui-icon q-chevron",{"q-chevron-open":e.expanded[r?.id]}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),o("a",{target:"_blank",textContent:c("job:"+e.fmt.limitTo(r?.id,6)),onClick:t[11]||(t[11]=i=>i.stopPropagation()),href:e.safeUrl("/r/"+r?.id)},null,8,Wb)]),o("td",Kb,[o("span",{textContent:c(r?.name||"anonymize")},null,8,Yb),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",Jb," \xB7 "+c(r?.data?.repoId),1)):p("v-if",!0)]),o("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,Qb),o("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,Xb),o("td",Zb,[e.jobProgressPct(r)!==null?(l(),d("div",xb,[o("div",{class:"q-progress-bar",style:qe({"--pct":e.jobProgressPct(r)+"%"})},null,4),o("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,e1)])):p("v-if",!0)]),o("td",t1,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:i=>{e.retryJob(r),i.stopPropagation()},"aria-label":"Retry job"},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])],8,o1)):p("v-if",!0),o("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:i=>{e.removeJob(r),i.stopPropagation()}},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,n1)])],10,zb),e.expanded[r?.id]?(l(),d("tr",s1,[o("td",r1,[o("div",i1,[o("div",a1,[o("div",l1,[t[31]||(t[31]=o("span",{class:"q-job-detail-label"},"Job id",-1)),o("span",d1,[o("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,u1)])]),o("div",c1,[t[32]||(t[32]=o("span",{class:"q-job-detail-label"},"State",-1)),o("span",p1,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,f1)])]),r?.data?.repoId?(l(),d("div",m1,[t[33]||(t[33]=o("span",{class:"q-job-detail-label"},"Repo ID",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.data?.repoId)},null,8,h1)])):p("v-if",!0),r?.timestamp?(l(),d("div",v1,[t[34]||(t[34]=o("span",{class:"q-job-detail-label"},"Created",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.timestamp))},null,8,y1)])):p("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",g1,[t[35]||(t[35]=o("span",{class:"q-job-detail-label"},"Retry at",-1)),o("span",b1,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):p("v-if",!0),r?.processedOn?(l(),d("div",w1,[t[36]||(t[36]=o("span",{class:"q-job-detail-label"},"Processed",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.processedOn))},null,8,k1)])):p("v-if",!0),r?.finishedOn?(l(),d("div",E1,[t[37]||(t[37]=o("span",{class:"q-job-detail-label"},"Finished",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.finishedOn))},null,8,C1)])):p("v-if",!0),r?.attemptsMade?(l(),d("div",_1,[t[38]||(t[38]=o("span",{class:"q-job-detail-label"},"Attempts",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.attemptsMade)},null,8,S1)])):p("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",N1,[t[39]||(t[39]=o("span",{class:"q-job-detail-label"},"Status",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.progress?.status)},null,8,D1)])):p("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",R1,[t[40]||(t[40]=o("span",{class:"q-job-detail-label"},"Progress",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(r)+"%")},null,8,T1)])):p("v-if",!0)]),r?.failedReason?(l(),d("div",A1,[t[41]||(t[41]=o("span",{class:"q-job-detail-label"},"Error",-1)),o("div",{class:"q-error-reason",textContent:c(r?.failedReason)},null,8,O1)])):p("v-if",!0),r?.stacktrace?.length?(l(),d("div",I1,[t[42]||(t[42]=o("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(l(!0),d(X,null,ae(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[o("code",{textContent:c(i)},null,8,P1)]))),128))])):p("v-if",!0),o("div",V1,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:i=>e.retryJob(r)},[...t[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Retry",-1)])],8,q1)):p("v-if",!0),o("button",{class:"btn btn-sm",onClick:i=>e.removeJob(r)},[...t[44]||(t[44]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,M1),o("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+r?.id)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1),b(" View repo",-1)])],8,$1)])])])])):p("v-if",!0)]))),256))])):p("v-if",!0),e.filteredJobs().length==0?(l(),d("div",L1,[t[47]||(t[47]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?p("v-if",!0):(l(),d("span",U1,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",F1,"No jobs match the current filters.")):p("v-if",!0)])):p("v-if",!0)])])}var z1={class:"container paper-page admin-page"},H1={class:"admin-summary"},B1={class:"summary-total"},j1={class:"summary-meta"},G1=["aria-pressed"],W1={class:"count"},K1=["aria-pressed"],Y1={class:"count"},J1=["aria-pressed"],Q1={class:"count"},X1=["aria-pressed"],Z1={class:"count"},x1=["aria-pressed"],ew={class:"count"},tw={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},ow={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},nw={class:"admin-filter-row"},sw={class:"search-wrap"},rw={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},iw={key:0,class:"admin-search-hint"},aw={class:"admin-filter-inline"},lw={type:"text",class:"form-control form-control-sm",placeholder:"username"},dw={class:"admin-filter-inline"},uw={type:"text",class:"form-control form-control-sm",placeholder:"ID"},cw={class:"admin-filter-inline","aria-label":"Pagination"},pw=["disabled"],fw={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},mw=["disabled"],hw={key:0,class:"admin-filter-row"},vw={class:"admin-active-chips"},yw={class:"key"},gw=["onClick"],bw={key:1,class:"bulk-bar"},ww={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},kw={class:"paper-table-head",role:"row"},Ew={role:"columnheader",style:{width:"28px"}},Cw=["checked"],_w={role:"columnheader"},Sw={role:"columnheader"},Nw={role:"columnheader",class:"num"},Dw={role:"columnheader"},Rw={role:"cell",style:{width:"28px"}},Tw={type:"checkbox","aria-label":"Select repository"},Aw={class:"cell-anon",role:"cell"},Ow={class:"anon-text"},Iw=["textContent","href"],Pw={class:"anon-sub"},Vw=["textContent","href"],qw={key:0},Mw=["textContent","href"],$w={key:1},Lw=["textContent","href"],Uw={key:2},Fw={class:"cell-status",role:"cell"},zw={class:"status-line"},Hw=["textContent"],Bw=["textContent","title"],jw={class:"cell-views num",role:"cell"},Gw=["textContent"],Ww={class:"cell-expires",role:"cell"},Kw=["textContent"],Yw={class:"cell-actions",role:"cell"},Jw={class:"dropdown"},Qw={class:"dropdown-menu dropdown-menu-right"},Xw=["href"],Zw=["href"],xw=["href"],ek=["onClick"],tk=["onClick"],ok=["onClick"],nk=["onClick"],sk=["onClick"],rk=["onClick"],ik={key:0,class:"paper-table-empty"},ak={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},lk={style:{"font-size":"12px",color:"var(--ink-muted)"}},dk={key:0,class:"pagination-compact"},uk=["disabled"],ck=["max"],pk=["disabled"],fk={class:"admin-filter-inline"},mk={class:"form-control form-control-sm"};function Nl(e,t){let n=be("field"),r=be("form");return l(),d("div",z1,[t[69]||(t[69]=pe('
Admin \xA0/\xA0 Repositories
Repositories
',3)),o("div",H1,[o("span",B1,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("span",j1,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=s=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[18]||(t[18]=b("Ready ",-1)),o("span",W1,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,G1),o("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=s=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[19]||(t[19]=b("Preparing ",-1)),o("span",Y1,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,K1),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=s=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[20]||(t[20]=b("Errored ",-1)),o("span",Q1,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,J1),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=s=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[21]||(t[21]=b("Expired ",-1)),o("span",Z1,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,X1),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=s=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[22]||(t[22]=b("Removed ",-1)),o("span",ew,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,x1)]),e.fetchError?(l(),d("div",tw,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):p("v-if",!0),D((l(),d("form",ow,[p(" Row 1: search + scoped inputs + headline actions "),o("div",nw,[o("div",sw,[D(o("input",rw,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",iw,"/"))]),o("span",aw,[t[24]||(t[24]=o("label",null,"Owner",-1)),D(o("input",lw,null,512),[[n,{state:e.viewState,set:s=>{e.query.owner=s},value:e.query?.owner,form:null,options:{}}]])]),o("span",dw,[t[25]||(t[25]=o("label",null,"Conference",-1)),D(o("input",uw,null,512),[[n,{state:e.viewState,set:s=>{e.query.conference=s},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=s=>e.exportCsv())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",cw,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,pw),o("span",fw,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,mw)])]),p(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",hw,[o("div",vw,[(l(!0),d(X,null,ae(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",yw,c(s?.label),1),o("span",null,c(s?.value),1),o("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(s.key)},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,gw)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",bw,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=s=>e.bulkRefresh())},[...t[32]||(t[32]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=s=>e.bulkRemoveCache())},[...t[33]||(t[33]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=s=>e.clearSelection())},"Clear")])):p("v-if",!0),o("div",ww,[o("div",kw,[o("div",Ew,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,Cw)]),o("div",_w,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=s=>e.sortBy("source.repositoryName"))},[t[35]||(t[35]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",Sw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=s=>e.sortBy("status"))},[t[37]||(t[37]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",Nw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=s=>e.sortBy("pageView"))},[t[39]||(t[39]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[38]||(t[38]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",Dw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=s=>e.sortBy("anonymizeDate"))},[t[41]||(t[41]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[40]||(t[40]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[42]||(t[42]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,ae(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[o("div",Rw,[D(o("input",Tw,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",Aw,[t[47]||(t[47]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",Ow,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,Iw),o("div",Pw,[o("a",{textContent:c(s?.source?.repositoryName),href:e.safeUrl("https://github.com/"+s?.source?.repositoryName+"/")},null,8,Vw),s?.options?.update?(l(),d("span",qw,[t[43]||(t[43]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,Mw)])):p("v-if",!0),s?.options?.update?p("v-if",!0):(l(),d("span",$w,[t[44]||(t[44]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(s?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,Lw)])),s?.conference?(l(),d("span",Uw,[t[45]||(t[45]=b("\xA0\xB7\xA0",-1)),t[46]||(t[46]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(s?.conference),1)])):p("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(s?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(s?.options?.terms?.length))+" "+c(s?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",Fw,[o("span",zw,[o("span",{class:A(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,Hw)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,Bw)):p("v-if",!0)]),o("div",jw,[t[48]||(t[48]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[49]||(t[49]=b()),o("span",{textContent:c(e.fmt?.number(s?.pageView||0))},null,8,Gw)]),o("div",Ww,[t[50]||(t[50]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[51]||(t[51]=b()),o("span",{textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,Kw)]),o("div",Yw,[o("div",Jw,[t[63]||(t[63]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",Qw,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[52]||(t[52]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,Xw),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[53]||(t[53]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,Zw),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[54]||(t[54]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,xw)):p("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.fetchGithubInfo(s),["prevent"])},[...t[55]||(t[55]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,ek),t[61]||(t[61]=o("div",{class:"dropdown-divider"},null,-1)),D(o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.updateRepository(s),["prevent"])},[...t[56]||(t[56]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,tk),[[K,s?.status=="ready"||s?.status=="error"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.updateRepository(s),["prevent"])},[...t[57]||(t[57]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,ok),[[K,s?.status=="removed"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.showStatusMessage(s),["prevent"])},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,nk),[[K,s?.statusMessage]]),t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.removeCache(s),["prevent"])},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,sk),D(o("a",{class:"dropdown-item text-danger",href:"#",onClick:de(a=>e.removeRepository(s),["prevent"])},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,rk),[[K,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",ik,[...t[64]||(t[64]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):p("v-if",!0)]),o("div",ak,[o("span",lk,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",dk,[o("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[65]||(t[65]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous ",-1)])],8,uk),D(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,ck),[[n,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[66]||(t[66]=[b(" Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,pk)])):p("v-if",!0),o("span",fk,[t[68]||(t[68]=o("label",null,"Per page",-1)),D((l(),d("select",mk,[...t[67]||(t[67]=[pe('',5)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var hk={class:"container paper-page admin-page"},vk={class:"paper-crumbs"},yk={class:"here"},gk={class:"paper-page-title"},bk={key:0,class:"user-detail-card"},wk={class:"user-header"},kk=["src"],Ek={class:"status-dot-wrap"},Ck=["textContent"],_k={key:0,class:"type-badge type-repo"},Sk={class:"user-actions",style:{"margin-top":"4px"}},Nk={class:"user-detail-grid"},Dk={class:"detail-value"},Rk={class:"detail-value"},Tk={key:0,class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},Ak={key:1,class:"detail-value text-muted"},Ok={class:"detail-value"},Ik=["href"],Pk={class:"detail-value"},Vk={class:"detail-value"},qk={key:0},Mk={key:1,class:"text-muted"},$k={class:"detail-value"},Lk={key:0,style:{"margin-top":"20px"}},Uk={class:"paper-table w-100",style:{"margin-top":"10px"}},Fk={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},zk={class:"cell-anon",role:"cell"},Hk={class:"anon-text"},Bk=["textContent"],jk={class:"cell-expires",role:"cell"},Gk={key:1,class:"admin-section-header"},Wk={class:"section-count"},Kk={key:2,class:"user-detail-card"},Yk={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},Jk={key:0,class:"alert alert-warning",role:"alert"},Qk={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},Xk={key:1,class:"paper-table w-100"},Zk={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},xk=["textContent"],e0=["textContent"],t0={role:"cell"},o0={key:0},n0={key:1,class:"text-muted"},s0={role:"cell"},r0=["onClick"],i0={key:2,class:"paper-table-empty"},a0={class:"admin-section-header"},l0={class:"section-count"},d0={class:"admin-summary"},u0={class:"summary-total"},c0=["aria-pressed"],p0={class:"count"},f0=["aria-pressed"],m0={class:"count"},h0=["aria-pressed"],v0={class:"count"},y0=["aria-pressed"],g0={class:"count"},b0=["aria-pressed"],w0={class:"count"},k0={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},E0={class:"admin-filter-row"},C0={class:"search-wrap"},_0={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},S0={key:3,class:"bulk-bar"},N0={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},D0={class:"paper-table-head",role:"row"},R0={role:"columnheader",style:{width:"28px"}},T0=["checked"],A0={role:"columnheader"},O0={role:"columnheader"},I0={role:"columnheader",class:"num"},P0={role:"columnheader"},V0={role:"cell",style:{width:"28px"}},q0={type:"checkbox","aria-label":"Select repository"},M0={class:"cell-anon",role:"cell"},$0={class:"anon-text"},L0=["textContent","href"],U0={class:"anon-sub"},F0=["textContent","href"],z0={key:0},H0=["textContent","href"],B0={key:1},j0=["textContent","href"],G0={key:2},W0={class:"cell-status",role:"cell"},K0={class:"status-line"},Y0=["textContent"],J0=["textContent","title"],Q0=["textContent"],X0=["textContent"],Z0={class:"cell-actions",role:"cell"},x0={class:"dropdown"},eE={class:"dropdown-menu dropdown-menu-right"},tE=["href"],oE=["href"],nE=["href"],sE=["onClick"],rE=["onClick"],iE=["onClick"],aE=["onClick"],lE=["onClick"],dE=["onClick"],uE={key:0,class:"paper-table-empty"};function Dl(e,t){let n=be("field"),r=be("form");return l(),d("div",hk,[o("div",vk,[t[22]||(t[22]=o("a",{href:"/admin/"},"Admin",-1)),t[23]||(t[23]=b(" \xA0/\xA0 ",-1)),t[24]||(t[24]=o("a",{href:"/admin/users"},"Users",-1)),t[25]||(t[25]=b(" \xA0/\xA0 ",-1)),o("span",yk,c(e.userInfo?.username||"Profile"),1)]),o("h1",gk,c(e.userInfo?.username||"User"),1),t[87]||(t[87]=pe('',1)),e.userInfo?(l(),d("div",bk,[o("div",wk,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,kk)):p("v-if",!0),o("div",null,[o("h2",null,[b(c(e.userInfo?.username)+" ",1),o("span",Ek,[o("span",{class:A(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),o("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,Ck)]),e.userInfo?.isAdmin?(l(),d("span",_k,"Admin")):p("v-if",!0)]),o("div",Sk,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=s=>e.banUser())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])])):p("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=s=>e.activateUser())},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])])):p("v-if",!0),e.userInfo?.isAdmin?p("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.promoteUser())},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-shield"})],-1),b(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=s=>e.demoteUser())},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-minus"})],-1),b(" Remove admin",-1)])])):p("v-if",!0)])])]),o("div",Nk,[t[32]||(t[32]=o("div",{class:"detail-label"},"ID",-1)),o("div",Dk,c(e.userInfo?._id),1),t[33]||(t[33]=o("div",{class:"detail-label"},"Email",-1)),o("div",Rk,c(e.userInfo?.emails?.[0]?.email),1),t[34]||(t[34]=o("div",{class:"detail-label"},"Access token",-1)),e.userInfo?.accessTokens?.github?(l(),d("div",Tk,c(e.userInfo?.accessTokens?.github),1)):p("v-if",!0),e.userInfo?.accessTokens?.github?p("v-if",!0):(l(),d("div",Ak,"None stored")),t[35]||(t[35]=o("div",{class:"detail-label"},"GitHub",-1)),o("div",Ok,[o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[30]||(t[30]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(e.userInfo?.username),1)],8,Ik)]),t[36]||(t[36]=o("div",{class:"detail-label"},"Created",-1)),o("div",Pk,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[37]||(t[37]=o("div",{class:"detail-label"},"Last connection",-1)),o("div",Vk,[e.userInfo?.accessTokenDates?.github?(l(),d("span",qk,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):p("v-if",!0),e.userInfo?.accessTokenDates?.github?p("v-if",!0):(l(),d("span",Mk,"never"))]),t[38]||(t[38]=o("div",{class:"detail-label"},"GitHub repos",-1)),o("div",$k,[b(c(e.userInfo?.repositories?.length)+" repositories ",1),o("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=s=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),o("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=s=>e.getGitHubRepositories())},[...t[31]||(t[31]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",Lk,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),o("div",Uk,[(l(!0),d(X,null,ae(e.userInfo?.repositories,(s,i)=>(l(),d("div",Fk,[o("div",zk,[t[39]||(t[39]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",Hk,[o("span",{class:"repo-name",textContent:c(s?.name)},null,8,Bk)])]),o("div",jk,[t[40]||(t[40]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-database"})],-1)),b(" "+c(e.fmt?.humanFileSize(s?.size)),1)])]))),256))])])):p("v-if",!0)])):p("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",Gk,[t[42]||(t[42]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),b(" API tokens")],-1)),o("span",Wk,c(e.tokens?.length),1)])):p("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",Kk,[t[48]||(t[48]=o("p",{class:"paper-page-lede"},[b("Personal API tokens for this admin account. Send as "),o("code",null,"Authorization: Bearer "),b(" to authenticate without GitHub OAuth (useful for development).")],-1)),D((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=de(s=>e.submitForm(s,()=>{e.createToken()}),["prevent"]))},[D(o("input",Yk,null,512),[[n,{state:e.viewState,set:s=>{e.tokenForm.name=s},value:e.tokenForm?.name,form:null,options:{}}]]),t[43]||(t[43]=o("button",{type:"submit",class:"btn btn-ink"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})]),b(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",Jk,[t[44]||(t[44]=o("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),o("pre",Qk,c(e.tokenForm?.plaintext),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.tokenForm.plaintext=null)},"Dismiss")])):p("v-if",!0),e.tokens?.length?(l(),d("div",Xk,[t[46]||(t[46]=o("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[o("div",{role:"columnheader"},"Name"),o("div",{role:"columnheader"},"Created"),o("div",{role:"columnheader"},"Last used"),o("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(X,null,ae(e.tokens,(s,i)=>(l(),d("div",Zk,[o("div",{role:"cell",textContent:c(s?.name)},null,8,xk),o("div",{role:"cell",textContent:c(e.fmt?.humanTime(s?.createdAt))},null,8,e0),o("div",t0,[s?.lastUsedAt?(l(),d("span",o0,c(e.fmt?.humanTime(s?.lastUsedAt)),1)):p("v-if",!0),s?.lastUsedAt?p("v-if",!0):(l(),d("span",n0,"never"))]),o("div",s0,[o("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:a=>e.revokeToken(s)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,r0)])]))),256))])):p("v-if",!0),e.tokens?.length?p("v-if",!0):(l(),d("div",i0,[...t[47]||(t[47]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No tokens yet.",-1)])]))])):p("v-if",!0),o("div",a0,[t[49]||(t[49]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})]),b(" Anonymized repositories")],-1)),o("span",l0,c(e.repositories?.length),1)]),o("div",d0,[o("span",u0,c(e.fmt?.number(e.repositories?.length)),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=s=>e.filters.status.ready=!e.filters.status.ready),"aria-pressed":e.filters?.status?.ready===!1},[t[50]||(t[50]=b("Ready ",-1)),o("span",p0,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,c0),o("button",{type:"button",class:A(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=s=>e.filters.status.preparing=!e.filters.status.preparing),"aria-pressed":e.filters?.status?.preparing===!1},[t[51]||(t[51]=b("Preparing ",-1)),o("span",m0,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,f0),o("button",{type:"button",class:A(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=s=>e.filters.status.error=!e.filters.status.error),"aria-pressed":e.filters?.status?.error===!1},[t[52]||(t[52]=b("Errored ",-1)),o("span",v0,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,h0),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=s=>e.filters.status.expired=!e.filters.status.expired),"aria-pressed":e.filters?.status?.expired===!1},[t[53]||(t[53]=b("Expired ",-1)),o("span",g0,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,y0),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=s=>e.filters.status.removed=!e.filters.status.removed),"aria-pressed":e.filters?.status?.removed===!1},[t[54]||(t[54]=b("Removed ",-1)),o("span",w0,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,b0)]),D((l(),d("form",k0,[o("div",E0,[o("div",C0,[D(o("input",_0,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),t[56]||(t[56]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=s=>e.exportCsv())},[...t[55]||(t[55]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",S0,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[57]||(t[57]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=s=>e.bulkRefresh())},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=s=>e.bulkRemoveCache())},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=s=>e.clearSelection())},"Clear")])):p("v-if",!0),o("div",N0,[o("div",D0,[o("div",R0,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,T0)]),o("div",A0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=s=>e.sortBy("source.repositoryName"))},[t[61]||(t[61]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[60]||(t[60]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",O0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=s=>e.sortBy("status"))},[t[63]||(t[63]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[62]||(t[62]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",I0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=s=>e.sortBy("pageView"))},[t[65]||(t[65]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[64]||(t[64]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",P0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=s=>e.sortBy("anonymizeDate"))},[t[67]||(t[67]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[66]||(t[66]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[68]||(t[68]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,ae(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[o("div",V0,[D(o("input",q0,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",M0,[t[73]||(t[73]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",$0,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,L0),o("div",U0,[o("a",{textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,F0),s?.options?.update?(l(),d("span",z0,[t[69]||(t[69]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,H0)])):p("v-if",!0),s?.options?.update?p("v-if",!0):(l(),d("span",B0,[t[70]||(t[70]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(s?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,j0)])),s?.conference?(l(),d("span",G0,[t[71]||(t[71]=b("\xA0\xB7\xA0",-1)),t[72]||(t[72]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(s?.conference),1)])):p("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(s?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(s?.options?.terms?.length))+" "+c(s?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",W0,[o("span",K0,[o("span",{class:A(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,Y0)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,J0)):p("v-if",!0)]),o("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(s?.pageView||0))},null,8,Q0),o("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,X0),o("div",Z0,[o("div",x0,[t[85]||(t[85]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",eE,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[74]||(t[74]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,tE),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[75]||(t[75]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,oE),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[76]||(t[76]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,nE)):p("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.fetchGithubInfo(s),["prevent"])},[...t[77]||(t[77]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,sE),t[83]||(t[83]=o("div",{class:"dropdown-divider"},null,-1)),D(o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.updateRepository(s),["prevent"])},[...t[78]||(t[78]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,rE),[[K,s?.status=="ready"||s?.status=="error"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.updateRepository(s),["prevent"])},[...t[79]||(t[79]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,iE),[[K,s?.status=="removed"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.showStatusMessage(s),["prevent"])},[...t[80]||(t[80]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,aE),[[K,s?.statusMessage]]),t[84]||(t[84]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.removeCache(s),["prevent"])},[...t[81]||(t[81]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,lE),D(o("a",{class:"dropdown-item text-danger",href:"#",onClick:de(a=>e.removeRepository(s),["prevent"])},[...t[82]||(t[82]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,dE),[[K,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",uE,[...t[86]||(t[86]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):p("v-if",!0)])])}var cE={class:"container paper-page admin-page"},pE={class:"admin-summary"},fE={class:"summary-total"},mE=["aria-pressed"],hE={class:"count"},vE=["aria-pressed"],yE={class:"count"},gE=["aria-pressed"],bE={class:"count"},wE={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},kE={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},EE={class:"admin-filter-row"},CE={class:"search-wrap"},_E={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},SE={key:0,class:"admin-search-hint"},NE={class:"admin-filter-inline"},DE={class:"form-control form-control-sm"},RE={class:"admin-filter-inline","aria-label":"Pagination"},TE=["disabled"],AE={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},OE=["disabled"],IE={key:0,class:"admin-filter-row"},PE={class:"admin-active-chips"},VE={class:"key"},qE=["onClick"],ME={key:1,class:"bulk-bar"},$E={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},LE={class:"paper-table-head admin-users-row",role:"row"},UE={role:"columnheader",style:{width:"28px"}},FE=["checked"],zE={role:"columnheader"},HE={role:"columnheader"},BE={role:"cell",style:{width:"28px"}},jE={type:"checkbox","aria-label":"Select user"},GE={class:"cell-anon",role:"cell"},WE=["src"],KE={class:"anon-text"},YE=["textContent","href"],JE={class:"anon-sub"},QE={key:0},XE=["href"],ZE={key:1},xE={class:"cell-views num",role:"cell"},eC=["textContent","href"],tC={class:"cell-status",role:"cell"},oC=["textContent"],nC={class:"cell-status",role:"cell"},sC={key:0,class:"type-badge type-repo"},rC={key:1,class:"empty-dash"},iC={class:"cell-actions",role:"cell"},aC={class:"dropdown"},lC={class:"dropdown-menu dropdown-menu-right"},dC=["href"],uC=["href"],cC=["onClick"],pC=["onClick"],fC={key:0,class:"paper-table-empty"},mC={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},hC={style:{"font-size":"12px",color:"var(--ink-muted)"}},vC={key:0,class:"pagination-compact"},yC=["disabled"],gC=["max"],bC=["disabled"],wC={class:"admin-filter-inline"},kC={class:"form-control form-control-sm"};function Rl(e,t){let n=be("field"),r=be("form");return l(),d("div",cE,[t[46]||(t[46]=pe('
Admin \xA0/\xA0 Users
Users
',3)),o("div",pE,[o("span",fE,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=s=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1}),"aria-pressed":e.query?.status=="active"},[t[13]||(t[13]=b("Active ",-1)),o("span",hE,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,mE),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=s=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1}),"aria-pressed":e.query?.status=="banned"},[t[14]||(t[14]=b("Banned ",-1)),o("span",yE,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,vE),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=s=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1}),"aria-pressed":e.query?.status=="removed"},[t[15]||(t[15]=b("Removed ",-1)),o("span",bE,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,gE)]),e.fetchError?(l(),d("div",wE,[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):p("v-if",!0),D((l(),d("form",kE,[o("div",EE,[o("div",CE,[D(o("input",_E,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",SE,"/"))]),o("span",NE,[t[18]||(t[18]=o("label",null,"Role",-1)),D((l(),d("select",DE,[...t[17]||(t[17]=[o("option",{value:""},"Any",-1),o("option",{value:"admin"},"Admin",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.role=s},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=s=>e.exportCsv())},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",RE,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[4]||(t[4]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,TE),o("span",AE,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,OE)])]),e.chips?.length?(l(),d("div",IE,[o("div",PE,[(l(!0),d(X,null,ae(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",VE,c(s?.label),1),o("span",null,c(s?.value),1),o("button",{type:"button",onClick:a=>e.clearFilter(s.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,qE)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",ME,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=b(" selected",-1))]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=s=>e.bulkBan())},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=s=>{e.selected={},e.allSelected=!1})},"Clear")])):p("v-if",!0),o("div",$E,[o("div",LE,[o("div",UE,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,FE)]),o("div",zE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=s=>e.sortBy("username"))},[t[27]||(t[27]=b("User ",-1)),e.sortIcon("username")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",HE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=s=>e.sortBy("status"))},[t[29]||(t[29]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[31]||(t[31]=o("div",{role:"columnheader"},"Role",-1)),t[32]||(t[32]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,ae(e.filteredUsers,(s,i)=>(l(),d("div",{class:A(["paper-table-row admin-users-row",{"row-selected":e.selected[s?.username]}]),role:"row"},[o("div",BE,[D(o("input",jE,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.username]=a},value:e.selected[s?.username],form:null,options:{}}]])]),o("div",GE,[s?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(s?.photo)},null,8,WE)):p("v-if",!0),o("div",KE,[o("a",{class:"repo-name",textContent:c(s?.username),href:e.safeUrl("/admin/users/"+s?.username)},null,8,YE),o("div",JE,[s?.emails?.[0]?.email?(l(),d("span",QE,c(s?.emails?.[0]?.email)+" \xB7 ",1)):p("v-if",!0),o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+s?.username)},[t[33]||(t[33]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(s?.username),1)],8,XE),s?.dateOfEntry?(l(),d("span",ZE,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(s?.dateOfEntry)),1)):p("v-if",!0)])])]),o("div",xE,[t[34]||(t[34]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),o("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(s?.repoCount||0)),href:e.safeUrl("/admin/repositories?owner="+s?.username)},null,8,eC)]),o("div",tC,[o("span",{class:A(["status-dot",{"status-ready":s?.status=="active","status-removed":s?.status=="removed"||s?.status=="banned"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,oC)]),o("div",nC,[s?.isAdmin?(l(),d("span",sC,"Admin")):p("v-if",!0),s?.isAdmin?p("v-if",!0):(l(),d("span",rC,"\u2014"))]),o("div",iC,[o("div",aC,[t[40]||(t[40]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",lC,[o("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+s?.username)},[...t[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View details",-1)])],8,dC),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+s?.username)},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),b(" View repositories",-1)])],8,uC),t[39]||(t[39]=o("div",{class:"dropdown-divider"},null,-1)),D(o("a",{class:"dropdown-item text-danger",href:"#",onClick:de(a=>e.banUser(s),["prevent"])},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])],8,cC),[[K,s?.status=="active"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:de(a=>e.activateUser(s),["prevent"])},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])],8,pC),[[K,s?.status=="removed"||s?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",fC,[...t[41]||(t[41]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No users match the current filters.",-1)])])):p("v-if",!0)]),o("div",mC,[o("span",hC,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",vC,[o("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous",-1)])],8,yC),D(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,gC),[[n,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[43]||(t[43]=[b("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,bC)])):p("v-if",!0),o("span",wC,[t[45]||(t[45]=o("label",null,"Per page",-1)),D((l(),d("select",kC,[...t[44]||(t[44]=[o("option",{value:"10"},"10",-1),o("option",{value:"25"},"25",-1),o("option",{value:"50"},"50",-1),o("option",{value:"100"},"100",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var EC={class:"anonymize-landing"},CC={class:"anonymize-landing-inner"},_C={class:"form-group mt-4 mb-2"},SC={class:"source-url-label-row"},NC={key:0,class:"repo-access","aria-label":"GitHub access"},DC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},RC=["aria-pressed","disabled"],TC=["aria-pressed","disabled"],AC={key:1,class:"connection-badge"},OC={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},IC={key:0,class:"draft-status",role:"status"},PC={key:1,class:"text-danger",role:"alert"},VC={key:2,class:"repo-access-details","aria-label":"GitHub access"},qC={class:"repo-access-main"},MC={class:"repo-access-controls"},$C={key:1,class:"connection-link",href:"/connections"},LC={class:"repo-access-note"},UC={key:0},FC={class:"anonymize-workspace"},zC={class:"anonymize-topbar"},HC={class:"anonymize-topbar-inner"},BC={class:"paper-crumbs"},jC={class:"here"},GC={class:"anonymize-topbar-head"},WC={class:"paper-page-title anonymize-topbar-title"},KC={key:0},YC={key:1},JC={key:0,class:"alert alert-info",role:"status"},QC={key:1,class:"alert alert-info",role:"status"},XC={key:1},ZC={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},xC=["aria-selected","tabindex"],e2=["aria-selected","tabindex"],t2={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},o2={class:"anonymize-split"},n2=["role","aria-labelledby"],s2={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},r2={class:"paper-settings-section"},i2={class:"form-group"},a2={class:"source-url-label-row"},l2={key:0,class:"repo-access","aria-label":"GitHub access"},d2={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},u2=["aria-pressed","disabled"],c2=["aria-pressed","disabled"],p2={key:1,class:"connection-badge"},f2=["disabled"],m2={class:"invalid-feedback"},h2={class:"invalid-feedback"},v2={class:"invalid-feedback"},y2={class:"invalid-feedback"},g2={key:0,class:"repo-access-details","aria-label":"GitHub access"},b2={class:"repo-access-main"},w2={class:"repo-access-controls"},k2={key:1,class:"connection-link",href:"/connections"},E2={class:"repo-access-note"},C2={key:0},_2={key:1,class:"repo-access-details"},S2={key:0,role:"status"},N2={key:2,class:"form-grid-2"},D2={class:"form-group"},R2={class:"input-group"},T2={class:"form-control",id:"branch",name:"branch"},A2=["textContent","value"],O2={class:"input-group-append"},I2={class:"form-group"},P2=["disabled"],V2={class:"invalid-feedback"},q2={class:"invalid-feedback"},M2={class:"form-check"},$2={class:"form-check-input",type:"checkbox",id:"update",name:"update"},L2={class:"paper-settings-section"},U2={class:"form-group"},F2=["disabled"],z2={class:"form-text text-muted"},H2={class:"invalid-feedback"},B2={class:"form-group"},j2=["disabled"],G2={class:"form-text text-muted"},W2={class:"invalid-feedback"},K2={class:"form-group"},Y2=["disabled"],J2={class:"form-text text-muted"},Q2={class:"invalid-feedback"},X2={class:"form-group"},Z2={class:"form-text text-muted"},x2=["href"],e_={class:"invalid-feedback"},t_={class:"form-text text-muted"},o_={class:"paper-settings-section"},n_={class:"form-group"},s_={class:"form-text text-muted"},r_={class:"warning-feedback"},i_={class:"invalid-feedback"},a_={class:"paper-settings-section"},l_={class:"form-check"},d_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},u_={class:"form-check"},c_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},p_={class:"form-check"},f_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},m_={class:"form-check"},h_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},v_={class:"form-check"},y_=["disabled"],g_={key:0,class:"form-text text-muted"},b_={key:1,class:"form-text text-muted"},w_={class:"form-check"},k_={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},E_={class:"form-check"},C_={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},__={class:"form-check"},S_={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},N_={class:"form-check"},D_={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},R_={class:"form-check"},T_={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},A_={class:"form-check"},O_={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},I_={class:"form-check"},P_={class:"form-check-input",type:"checkbox",id:"title",name:"title"},V_={class:"form-check"},q_={class:"form-check-input",type:"checkbox",id:"body",name:"body"},M_={class:"form-check"},$_={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},L_={class:"form-check"},U_={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},F_={class:"form-check"},z_={class:"form-check-input",type:"checkbox",id:"username",name:"username"},H_={class:"form-check"},B_={class:"form-check-input",type:"checkbox",id:"date",name:"date"},j_={class:"form-check"},G_={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},W_={class:"paper-settings-section"},K_={class:"form-grid-2"},Y_={class:"form-group"},J_={class:"form-control",id:"expiration",name:"expiration"},Q_={class:"form-group"},X_=["min","max"],Z_={class:"invalid-feedback"},x_={class:"invalid-feedback"},eS={class:"paper-settings-section"},tS={class:"form-group"},oS={style:{position:"relative"}},nS={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},sS={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},rS=["onClick"],iS=["src"],aS=["textContent"],lS=["textContent"],dS={class:"coauthor-list"},uS={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},cS=["src"],pS=["textContent","href"],fS=["onClick"],mS={class:"form-text text-muted"},hS=["textContent"],vS={key:1,class:"draft-status",role:"status"},yS={key:2,class:"draft-status"},gS={key:3,class:"anonymize-review-note"},bS={class:"anonymize-submit-bar"},wS=["disabled"],kS=["disabled"],ES=["disabled"],CS=["disabled"],_S=["disabled"],SS=["disabled"],NS=["role","aria-labelledby"],DS={class:"anonymize-preview-head"},RS={class:"anonymize-preview-sub"},TS={key:0,class:"anonymize-preview-status",role:"status"},AS={key:1,class:"anonymize-preview-status",role:"status"},OS={key:2,class:"anonymize-preview-status",role:"alert"},IS={key:3,class:"anonymize-preview-status"},PS=["innerHTML"],VS=["role","aria-labelledby"],qS={class:"anonymize-preview-head"},MS={class:"anonymize-preview-sub"},$S={key:0,class:"anonymize-preview-status",role:"status"},LS={key:1,class:"anonymize-preview-status",role:"status"},US={key:2,class:"anonymize-preview-status",role:"alert"},FS={key:3,class:"anonymize-preview-body"},zS={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},HS={class:"pr-title mb-1"},BS={key:0},jS=["textContent"],GS={key:0},WS={key:1},KS={key:2},YS={class:"pr-comments mt-3"},JS={class:"pr-comment"},QS={class:"pr-comment-head"},XS=["textContent"],ZS={key:0,class:"pr-comment-date"},xS={key:3},eN={class:"pr-comments"},tN={class:"pr-comment"},oN={class:"pr-comment-head"},nN={key:0,class:"pr-comment-author"},sN=["textContent"],rN=["textContent"],iN={key:0,class:"pr-comment-body"},aN=["role","aria-labelledby"],lN={class:"anonymize-preview-head"},dN={class:"anonymize-preview-sub"},uN={key:0,class:"anonymize-preview-status",role:"status"},cN={key:1,class:"anonymize-preview-status",role:"status"},pN={key:2,class:"anonymize-preview-status",role:"alert"},fN={key:3,class:"anonymize-preview-body"},mN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},hN={class:"pr-title mb-1"},vN={key:0},yN=["textContent"],gN={key:0},bN={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},wN={key:2,class:"paper-tabs",role:"tablist"},kN=["aria-selected","tabindex"],EN=["aria-selected","tabindex"],CN=["textContent"],_N={key:3,class:"anonymize-preview-status"},SN={class:"paper-tab-content"},NN={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},DN=["innerHTML"],RN={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},TN={class:"pr-comments"},AN={class:"pr-comment"},ON={class:"pr-comment-head"},IN={key:0,class:"pr-comment-author"},PN=["textContent"],VN=["textContent"],qN={key:0,class:"pr-comment-body"};function Tl(e,t){let n=We("gist-file"),r=We("markdown"),s=be("field"),i=be("form");return l(),d("div",{class:A(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview"}])},[p(" ===== STATE 1: No URL \u2014 centered input ===== "),D(o("div",EC,[o("div",CC,[t[36]||(t[36]=o("div",{class:"paper-crumbs"},[b("My work \xA0/\xA0 "),o("span",{class:"here"},"New anonymization")],-1)),t[37]||(t[37]=o("h1",{class:"paper-page-title"},[b("New "),o("em",null,"anonymization")],-1)),t[38]||(t[38]=o("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, redact the terms you choose in text files, and give you a share link. Images and PDFs are served unchanged when enabled. Review them before sharing. ",-1)),o("div",_C,[o("div",SC,[t[32]||(t[32]=o("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",NC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",DC,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},[...t[31]||(t[31]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,RC),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,TC)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",AC,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):p("v-if",!0)])):p("v-if",!0)]),D(o("input",OC,null,512),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),e.draftRestored?(l(),d("div",IC,[t[33]||(t[33]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[2]||(t[2]=a=>e.discardDraft())},"Discard draft")])):p("v-if",!0),e.sourceUrlError?(l(),d("p",PC,c(e.sourceUrlError),1)):p("v-if",!0),t[39]||(t[39]=o("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",VC,[o("div",qC,[o("div",MC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=a=>e.grantGitHubAccess())},[...t[34]||(t[34]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",$C,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),o("div",LC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",UC,"Select repositories on GitHub, then return here.")):p("v-if",!0),t[35]||(t[35]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):p("v-if",!0)])],512),[[K,!e.workspaceOpen&&!e.isUpdate]]),p(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),D(o("div",FC,[o("header",zC,[o("div",HC,[o("div",BC,[t[40]||(t[40]=o("a",{href:"/dashboard"},"My work",-1)),t[41]||(t[41]=b(" \xA0/\xA0 ",-1)),o("span",jC,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),o("div",GC,[o("h1",WC,[e.isUpdate?p("v-if",!0):(l(),d("span",KC,[...t[42]||(t[42]=[b("New ",-1),o("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",YC,[...t[43]||(t[43]=[b("Edit ",-1),o("em",null,"anonymization",-1)])])):p("v-if",!0)]),D(o("span",{class:A(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[K,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",JC,[t[44]||(t[44]=o("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),o("button",{type:"button",class:"btn btn-ink",onClick:t[4]||(t[4]=a=>e.connectGistApp())},"Connect GitHub App to access gists")])):p("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",QC,[t[45]||(t[45]=o("p",null,"Connect GitHub OAuth to access gists. Your account and existing anonymizations stay the same, and your draft will be restored when you return.",-1)),t[46]||(t[46]=o("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[5]||(t[5]=a=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(l(),d("p",XC,"GitHub OAuth is currently unavailable. Please try again later."))])):p("v-if",!0),o("nav",ZC,[o("button",{id:"workspace-settings-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="settings","aria-controls":"workspace-settings",tabindex:e.mobilePane==="settings"?0:-1,onKeydown:t[6]||(t[6]=a=>e.previewTabKeydown(a)),onClick:t[7]||(t[7]=a=>e.selectMobilePane("settings"))},"Settings",40,xC),o("button",{id:"workspace-preview-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="preview","aria-controls":"workspace-preview",tabindex:e.mobilePane==="preview"?0:-1,onKeydown:t[8]||(t[8]=a=>e.previewTabKeydown(a)),onClick:t[9]||(t[9]=a=>e.selectMobilePane("preview"))},"Reviewer preview",40,e2)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",t2,c(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):p("v-if",!0),o("div",o2,[p(" Form column (left) "),o("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[D((l(),d("form",s2,[o("section",r2,[t[57]||(t[57]=o("div",{class:"paper-section-eyebrow"},"Source",-1)),o("div",i2,[o("div",a2,[t[48]||(t[48]=o("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",l2,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",d2,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[10]||(t[10]=a=>e.chooseGitHubConnection("github-app"))},[...t[47]||(t[47]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,u2),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[11]||(t[11]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,c2)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",p2,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):p("v-if",!0)])):p("v-if",!0)]),D(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,f2),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),D(o("div",m2," Please provide a valid GitHub URL. ",512),[[K,e.anonymize?.sourceUrl?.errors?.github]]),D(o("div",h2," Not accessible. The organization may restrict access. ",512),[[K,e.anonymize?.sourceUrl?.errors?.access]]),D(o("div",v2," Does not exist or is not accessible. ",512),[[K,e.anonymize?.sourceUrl?.errors?.missing]]),D(o("div",y2," Already anonymized. ",512),[[K,e.anonymize?.sourceUrl?.errors?.used]])]),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",g2,[o("div",b2,[o("div",w2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=a=>e.grantGitHubAccess())},[...t[49]||(t[49]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",k2,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),o("div",E2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",C2,"Select repositories on GitHub, then return here.")):p("v-if",!0),t[50]||(t[50]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):p("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",_2,[t[51]||(t[51]=o("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[13]||(t[13]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",S2,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):p("v-if",!0)])):p("v-if",!0),e.detectedType==="repo"?(l(),d("div",N2,[o("div",D2,[t[53]||(t[53]=o("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),o("div",R2,[D((l(),d("select",T2,[(l(!0),d(X,null,ae(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,A2))),256))])),[[s,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),o("div",O2,[o("button",{class:"btn btn-icon",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[14]||(t[14]=a=>e.getBranches(!0)),"aria-label":"Refresh"},[...t[52]||(t[52]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])])]),o("div",I2,[t[54]||(t[54]=o("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),D(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,P2),[[s,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),D(o("div",V2," The commit SHA is not valid. ",512),[[K,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),D(o("div",q2," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[K,e.anonymize?.commit?.errors?.exists]])])])):p("v-if",!0),D(o("div",M2,[D(o("input",$2,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[55]||(t[55]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[56]||(t[56]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[K,e.detectedType]])]),D(o("section",L2,[t[68]||(t[68]=o("div",{class:"paper-section-eyebrow"},"Identity",-1)),D(o("div",U2,[t[60]||(t[60]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),D(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,F2),[[s,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",z2,[t[58]||(t[58]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[59]||(t[59]=b(".",-1))]),D(o("div",H2,"ID can only contain letters and numbers.",512),[[K,e.anonymize?.repoId?.errors?.format]]),D(o("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[K,e.anonymize?.repoId?.errors?.used]])],512),[[K,e.detectedType==="repo"]]),D(o("div",B2,[t[63]||(t[63]=o("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),D(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,j2),[[s,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",G2,[t[61]||(t[61]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[62]||(t[62]=b(".",-1))]),D(o("div",W2,"ID can only contain letters and numbers.",512),[[K,e.anonymize?.pullRequestId?.errors?.format]]),D(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[K,e.anonymize?.pullRequestId?.errors?.used]])],512),[[K,e.detectedType==="pr"]]),D(o("div",K2,[t[66]||(t[66]=o("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),D(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,Y2),[[s,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",J2,[t[64]||(t[64]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[65]||(t[65]=b(".",-1))]),D(o("div",Q2,"ID can only contain letters and numbers.",512),[[K,e.anonymize?.gistId?.errors?.format]]),D(o("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[K,e.anonymize?.gistId?.errors?.used]])],512),[[K,e.detectedType==="gist"]]),o("div",X2,[t[67]||(t[67]=o("label",{class:"paper-field-label",for:"conference"},[b("Conference "),o("span",{class:"paper-optional"},"(optional)")],-1)),D(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[s,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),D(o("small",Z2,[o("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,x2),b(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[K,e.conference_data]]),D(o("div",e_,"The conference is not activated.",512),[[K,e.anonymize?.conference?.errors?.activated]]),D(o("small",t_,"Link to a conference to apply its shared defaults.",512),[[K,!e.conference_data]])])],512),[[K,e.detectedType]]),D(o("section",o_,[t[76]||(t[76]=o("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),o("div",n_,[t[75]||(t[75]=o("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),D(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),o("small",s_,[t[69]||(t[69]=b("One term per line (regex allowed). Replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[70]||(t[70]=b(", or use ",-1)),t[71]||(t[71]=o("code",null,"term=>replacement",-1)),t[72]||(t[72]=b(" to pick your own (e.g. ",-1)),t[73]||(t[73]=o("code",null,"Anonymous=>ABC",-1)),t[74]||(t[74]=b(").",-1))]),D(o("div",r_,"Regex characters detected. Escape them if unintentional.",512),[[K,e.termsRegexWarning]]),D(o("div",i_,"Terms are in an invalid format.",512),[[K,e.anonymize?.terms?.errors?.format]])])],512),[[K,e.detectedType]]),D(o("section",a_,[t[97]||(t[97]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),D(o("div",null,[o("div",l_,[D(o("input",d_,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[77]||(t[77]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),o("div",u_,[D(o("input",c_,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[78]||(t[78]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[79]||(t[79]=o("small",{class:"form-text text-muted"},"Images are served unchanged and may contain names or affiliations.",-1))]),o("div",p_,[D(o("input",f_,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[80]||(t[80]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[81]||(t[81]=o("small",{class:"form-text text-muted"},[b("PDF contents and metadata are served unchanged. "),o("a",{href:"/faq#formats"},"About supported formats")],-1))]),o("div",m_,[D(o("input",h_,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[82]||(t[82]=o("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),o("div",v_,[D(o("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,y_),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[83]||(t[83]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?p("v-if",!0):(l(),d("small",g_,c(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(l(),d("small",b_,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):p("v-if",!0)])],512),[[K,e.detectedType==="repo"]]),D(o("div",null,[o("div",w_,[D(o("input",k_,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[84]||(t[84]=o("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),o("div",E_,[D(o("input",C_,null,512),[[s,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[85]||(t[85]=o("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),o("div",__,[D(o("input",S_,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[86]||(t[86]=o("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),o("div",N_,[D(o("input",D_,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[87]||(t[87]=o("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),o("div",R_,[D(o("input",T_,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[88]||(t[88]=o("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),o("div",A_,[D(o("input",O_,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[89]||(t[89]=o("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[K,e.detectedType==="gist"]]),D(o("div",null,[o("div",I_,[D(o("input",P_,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[90]||(t[90]=o("label",{class:"form-check-label",for:"title"},"PR title",-1))]),o("div",V_,[D(o("input",q_,null,512),[[s,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[91]||(t[91]=o("label",{class:"form-check-label",for:"body"},"PR body",-1))]),o("div",M_,[D(o("input",$_,null,512),[[s,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[92]||(t[92]=o("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),o("div",L_,[D(o("input",U_,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[93]||(t[93]=o("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),o("div",F_,[D(o("input",z_,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[94]||(t[94]=o("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),o("div",H_,[D(o("input",B_,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[95]||(t[95]=o("label",{class:"form-check-label",for:"date"},"Dates",-1))]),o("div",j_,[D(o("input",G_,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[96]||(t[96]=o("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[K,e.detectedType==="pr"]])],512),[[K,e.detectedType]]),D(o("section",W_,[t[101]||(t[101]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",K_,[o("div",Y_,[t[99]||(t[99]=o("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),D((l(),d("select",J_,[...t[98]||(t[98]=[o("option",{value:"redirect"},"Redirect to GitHub when expired",-1),o("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),o("div",Q_,[t[100]||(t[100]=o("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),D(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,X_),[[s,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),D(o("div",Z_,"Pick a date in the future.",512),[[K,e.anonymize?.expirationDate?.errors?.min]]),D(o("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[K,e.anonymize?.expirationDate?.errors?.max]]),D(o("div",x_,"Enter a valid expiration date.",512),[[K,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),D(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[K,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),D(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[K,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[K,e.detectedType]]),D(o("section",eS,[t[105]||(t[105]=o("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[106]||(t[106]=o("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),D(o("div",tS,[t[102]||(t[102]=o("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),o("div",oS,[D(o("input",nS,null,512),[[s,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),D(o("div",sS,[(l(!0),d(X,null,ae(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:de(f=>e.addCoauthor(a,f),["prevent"])},[o("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,iS),o("span",{textContent:c(a?.username)},null,8,aS)],8,rS))),256))],512),[[K,e.coauthorResults?.length>0]])]),D(o("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,lS),[[K,e.coauthorError]])],512),[[K,e.role==="owner"||e.role==="admin"]]),o("div",dS,[(l(!0),d(X,null,ae(e.coauthors,(a,u)=>(l(),d("div",uS,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,cS)):p("v-if",!0),o("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,pS),t[104]||(t[104]=o("span",{class:"type-badge type-coauthor"},"Co-author",-1)),D(o("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:f=>e.removeCoauthor(a),"aria-label":"Remove co-author"},[...t[103]||(t[103]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,fS),[[K,e.role==="owner"||e.role==="admin"]])]))),256)),D(o("div",mS," No co-authors yet. ",512),[[K,!e.coauthors||e.coauthors?.length===0]])])],512),[[K,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,hS)):p("v-if",!0),e.draftRestored?(l(),d("div",vS,[t[107]||(t[107]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[15]||(t[15]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",yS,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[16]||(t[16]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):p("v-if",!0),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",gS,"Review enabled images and PDFs before sharing. Their contents are not anonymized.")):p("v-if",!0),o("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[17]||(t[17]=a=>e.selectMobilePane("preview"))},[...t[108]||(t[108]=[b("Review preview ",-1),o("span",{"aria-hidden":"true"},"\u2192",-1)])]),D(o("div",bS,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[18]||(t[18]=de(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[109]||(t[109]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Repository ",-1)])],8,wS)):p("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[19]||(t[19]=de(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[110]||(t[110]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Repository ",-1)])],8,kS)):p("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[20]||(t[20]=de(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[111]||(t[111]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Pull Request ",-1)])],8,ES)):p("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[21]||(t[21]=de(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[112]||(t[112]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Pull Request ",-1)])],8,CS)):p("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[22]||(t[22]=de(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[113]||(t[113]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Gist ",-1)])],8,_S)):p("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[23]||(t[23]=de(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[114]||(t[114]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Gist ",-1)])],8,SS)):p("v-if",!0)],512),[[K,e.detectedType]])])),[[i,e.viewState]])],8,n2),p(" Preview column (right) "),e.detectedType==="repo"?(l(),d("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",DS,[t[115]||(t[115]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",RS,c(e.previewStatus==="ready"?"README with redactions applied":"README preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",TS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",AS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",OS,[t[116]||(t[116]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[24]||(t[24]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",IS,"No README is available to preview. Review the published files before sharing.")):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",{key:4,class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,PS)):p("v-if",!0)],8,NS)):p("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",{key:1,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",qS,[t[117]||(t[117]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",MS,c(e.previewStatus==="ready"?"Gist with redactions applied":"Gist preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",$S,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",LS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",US,[t[118]||(t[118]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[25]||(t[25]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",FS,[o("div",zS,[o("h2",HS,[e.options?.title?(l(),d("span",BS,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):p("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,jS)):p("v-if",!0)]),e.options?.origin?(l(),d("small",GS,"Gist ID: "+c(e.details?.source?.gistId),1)):p("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",WS,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):p("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",KS,[o("ul",YS,[(l(!0),d(X,null,ae(e.previewGistFiles,(a,u)=>(l(),d("li",JS,[o("div",QS,[o("strong",{textContent:c(a?.filename)},null,8,XS),a?.language?(l(),d("span",ZS,c(a?.language),1)):p("v-if",!0)]),Ce(n,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):p("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",xS,[t[121]||(t[121]=o("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),o("ul",eN,[(l(!0),d(X,null,ae(e.details?.gist?.comments,(a,u)=>(l(),d("li",tN,[o("div",oN,[e.options?.username?(l(),d("span",nN,[t[119]||(t[119]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[120]||(t[120]=b(" @",-1)),o("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,sN)])):p("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,rN)):p("v-if",!0)]),e.options?.body?(l(),d("div",iN,[Ce(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0)]))),256))])])):p("v-if",!0)])):p("v-if",!0)],8,VS)):p("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",{key:2,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",lN,[t[122]||(t[122]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",dN,c(e.previewStatus==="ready"?"Pull request with redactions applied":"Pull request preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",uN,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",cN,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",pN,[t[123]||(t[123]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[26]||(t[26]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",fN,[o("div",mN,[o("h2",hN,[e.options?.title?(l(),d("span",vN,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):p("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,yN)):p("v-if",!0)]),e.options?.origin?(l(),d("small",gN,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",bN,[Ce(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",wN,[e.options?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[27]||(t[27]=a=>e.previewTabKeydown(a)),onClick:t[28]||(t[28]=a=>e.prTabState.active="diff")},[...t[124]||(t[124]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,kN)):p("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[29]||(t[29]=a=>e.previewTabKeydown(a)),onClick:t[30]||(t[30]=a=>e.prTabState.active="comments")},[t[125]||(t[125]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,CN)],42,EN)):p("v-if",!0)])):p("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",_N,"Diff and comments are hidden by your display settings.")):p("v-if",!0),o("div",SN,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",NN,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,DN)])):p("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",RN,[o("ul",TN,[(l(!0),d(X,null,ae(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",AN,[o("div",ON,[e.options?.username?(l(),d("span",IN,[t[126]||(t[126]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[127]||(t[127]=b(" @",-1)),o("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,PN)])):p("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,VN)):p("v-if",!0)]),e.options?.body?(l(),d("div",qN,[Ce(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0)]))),256))])])):p("v-if",!0)])])):p("v-if",!0)],8,aN)):p("v-if",!0)])],512),[[K,e.workspaceOpen||e.isUpdate]])],2)}var MN={class:"container-fluid h-100 anonymize-page"},$N={class:"row h-100 flex-column flex-md-row"},LN={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},UN={class:"form-group"},FN={class:"form-group"},zN={class:"form-check"},HN={class:"form-check-input",type:"checkbox",id:"update",name:"update"},BN={class:"form-group"},jN={class:"form-text text-muted"},GN=["href"],WN={class:"invalid-feedback"},KN={class:"form-text text-muted"},YN={class:"form-group"},JN={id:"idHelp",class:"form-text text-muted"},QN={class:"invalid-feedback"},XN={class:"form-group"},ZN={class:"invalid-feedback"},xN={class:"form-group"},eD={class:"form-control",id:"expiration",name:"expiration"},tD={class:"form-group",id:"expiration-date-form"},oD={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},nD={class:"accordion mb-3",id:"options"},sD={class:"card"},rD={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},iD={class:"card-body"},aD={class:"form-group mb-0"},lD={class:"form-check"},dD={class:"form-check-input",type:"checkbox",id:"link",name:"link"},uD={class:"form-check"},cD={class:"form-check-input",type:"checkbox",id:"image",name:"image"},pD={class:"form-check"},fD={class:"form-check-input",type:"checkbox",id:"date",name:"date"},mD={class:"form-check"},hD={class:"form-check-input",type:"checkbox",id:"username",name:"username"},vD={class:"form-check"},yD={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},gD={class:"form-check"},bD={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},wD={class:"form-check"},kD={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},ED={class:"form-check"},CD={class:"form-check-input",type:"checkbox",id:"title",name:"title"},_D={class:"form-check"},SD={class:"form-check-input",type:"checkbox",id:"body",name:"body"},ND=["textContent"],DD={class:"anonymize-submit-bar"},RD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},TD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},AD={class:"pr-title mb-1"},OD={key:0},ID=["textContent"],PD={key:0},VD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},qD={class:"nav nav-tabs",id:"myTab",role:"tablist"},MD={key:0,class:"nav-item",role:"presentation"},$D={key:1,class:"nav-item",role:"presentation"},LD=["textContent"],UD={class:"tab-content",id:"pills-tabContent"},FD={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},zD={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},HD={style:{"overflow-x":"auto"}},BD=["innerHTML"],jD={key:0,class:"pr-comments list-group"},GD={class:"pr-comment list-group-item"},WD={class:"d-flex w-100 justify-content-between flex-wrap"},KD={key:0,class:"mb-1"},YD=["textContent"],JD={class:"mb-1"};function Al(e,t){let n=We("markdown"),r=be("field"),s=be("form");return l(),d("div",MN,[o("div",$N,[o("div",LN,[o("div",{class:A(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[D((l(),d("form",{class:A(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=pe('
Anonymize \xA0/\xA0 Pull request
Anonymize a pull request
Fill in the details \u2014 it only takes a minute.
Source
',4)),p(" pullRequestUrl "),o("div",UN,[t[2]||(t[2]=o("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),D(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),D(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[K,e.anonymize?.pullRequestUrl?.errors?.access]]),D(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[K,e.anonymize?.pullRequestUrl?.errors?.missing]]),D(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[K,e.anonymize?.pullRequestUrl?.errors?.used]])]),D(o("div",null,[o("div",FN,[o("div",zN,[D(o("input",HN,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=o("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})]),b(" Conference ID ")],-1)),p(" Conference "),o("div",BN,[t[5]||(t[5]=o("label",{for:"conference"},[b("Conference ID "),o("span",{class:"text-muted"},"(Optional)")],-1)),D(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),D(o("small",jN,[o("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,GN),b(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[K,e.conference_data]]),D(o("div",WN," The conference is not activated. ",512),[[K,e.anonymize?.conference?.errors?.activated]]),D(o("small",KN," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[K,!e.conference_data]])]),t[27]||(t[27]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b(" Anonymization Options ")],-1)),p(" Pull Request ID "),o("div",YN,[t[6]||(t[6]=o("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),D(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",JN,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),D(o("div",QN," Repository id can only contain letters and numbers ",512),[[K,e.anonymize?.pullRequestId?.errors?.format]]),D(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[K,e.anonymize?.pullRequestId?.errors?.used]])]),p(" Terms "),o("div",XN,[t[7]||(t[7]=o("label",{for:"terms"},"Terms to anonymize",-1)),D(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=o("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),D(o("div",ZN," Terms are in an invalid format ",512),[[K,e.anonymize?.terms?.errors?.format]])]),o("div",xN,[t[10]||(t[10]=o("label",{for:"expiration"},"Expiration strategy",-1)),D((l(),d("select",eD,[...t[9]||(t[9]=[o("option",{value:"never",selected:""},"Never expire",-1),o("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),o("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),D(o("div",tD,[t[12]||(t[12]=o("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),D(o("input",oD,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),D(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[K,e.options?.expirationMode=="remove"]]),D(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[K,e.options?.expirationMode=="redirect"]])],512),[[K,e.options?.expirationMode!="never"]]),o("div",nD,[o("div",sD,[t[25]||(t[25]=pe('
',1)),o("div",rD,[o("div",iD,[o("div",aD,[o("div",lD,[D(o("input",dD,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),o("div",uD,[D(o("input",cD,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),o("div",pD,[D(o("input",fD,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=o("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=o("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),o("div",mD,[D(o("input",hD,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"username"},"Display username",-1))]),o("div",vD,[D(o("input",yD,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),o("div",gD,[D(o("input",bD,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),o("div",wD,[D(o("input",kD,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),o("div",ED,[D(o("input",CD,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),o("div",_D,[D(o("input",SD,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[K,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,ND)):p("v-if",!0),D(o("div",DD,[e.isUpdate?p("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=de(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=de(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update ",-1)])])):p("v-if",!0)],512),[[K,e.pullRequestUrl]])],2)),[[s,e.viewState]])],2)]),e.details?(l(),d("div",RD,[o("div",TD,[o("h2",AD,[e.options?.title?(l(),d("span",OD,c(e.anonymize(e.details?.pullRequest?.title)),1)):p("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,ID)):p("v-if",!0)]),e.options?.origin?(l(),d("small",PD,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",VD,[Ce(n,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0),o("ul",qD,[e.options?.diff?(l(),d("li",MD,[...t[31]||(t[31]=[o("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):p("v-if",!0),e.options?.comments?(l(),d("li",$D,[o("button",{class:A(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,LD)],2)])):p("v-if",!0)]),o("div",UD,[o("div",FD,[e.options?.diff?(l(),d("div",zD,[o("pre",HD,[o("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,BD)])])):p("v-if",!0)]),o("div",{class:A(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",jD,[(l(!0),d(X,null,ae(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",GD,[o("div",WD,[e.options?.username?(l(),d("h5",KD," @"+c(e.anonymize(i?.author)),1)):p("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,YD)):p("v-if",!0)]),o("p",JD,[e.options?.body?(l(),Lt(n,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):p("v-if",!0)])]))),256))])):p("v-if",!0)],2)])])):p("v-if",!0)])])}var QD={class:"container paper-page claim-page"},XD={class:"paper-settings-main claim-form"},ZD={class:"form-group"},xD={class:"invalid-feedback"},eR={class:"form-group"};function Ol(e,t){let n=be("field"),r=be("form");return l(),d("div",QD,[t[6]||(t[6]=pe('
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),o("div",XD,[t[5]||(t[5]=o("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((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=de(s=>e.submitForm(s,()=>{e.claim()}),["prevent"]))},[o("div",ZD,[t[1]||(t[1]=o("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),D(o("input",{type:"text",class:A(["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),[[n,{state:e.viewState,set:s=>{e.repoUrl=s},value:e.repoUrl,form:"claimForm",options:{}}]]),D(o("div",xD," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[K,e.claimForm?.repoUrl?.errors?.not_found]])]),o("div",eR,[t[2]||(t[2]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),D(o("input",{type:"text",class:A(["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),[[n,{state:e.viewState,set:s=>{e.repoId=s},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=o("small",{id:"idHelp",class:"form-text text-muted"},[b("The ID is the last part of the anonymized URL: "),o("code",null,"anonymous.4open.science/r/"),b(".")],-1))]),t[4]||(t[4]=o("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var tR={class:"container page paper-page conference-page"},oR={class:"paper-crumbs"},nR={class:"here"},sR={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},rR=["textContent"],iR={key:0,class:"paper-page-lede"},aR=["textContent","href"],lR={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},dR=["textContent"],uR=["href"],cR={class:"paper-meta-rule"},pR=["textContent"],fR=["textContent"],mR={key:0},hR={class:"search-wrap"},vR={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},yR={class:"dashboard-filter-controls"},gR={class:"dropdown"},bR={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},wR={class:"filter-btn-value"},kR={class:"dropdown-menu","aria-labelledby":"dropdownSort"},ER={class:"form-check dropdown-item"},CR={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},_R={class:"form-check dropdown-item"},SR={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},NR={class:"form-check dropdown-item"},DR={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},RR={class:"form-check dropdown-item"},TR={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},AR={class:"dropdown"},OR={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},IR={key:0,class:"filter-btn-value"},PR={key:1,class:"filter-btn-value"},VR={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},qR={class:"form-check dropdown-item"},MR=["id"],$R=["for"],LR={class:"dashboard-meta"},UR={class:"dashboard-count"},FR={key:0},zR={key:0},HR={key:1},BR={key:1},jR={key:0,class:"filter-chip"},GR=["onClick","aria-label"],WR={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},KR={class:"cell-anon",role:"cell"},YR={class:"anon-text"},JR=["textContent","href"],QR={class:"anon-sub"},XR={class:"anon-source"},ZR=["textContent","href"],xR={key:0},eT=["textContent","href"],tT={key:1},oT=["href"],nT={class:"cell-status",role:"cell"},sT={class:"status-line"},rT=["textContent"],iT={key:0,class:"status-sub"},aT={class:"cell-views num",role:"cell"},lT=["textContent"],dT={class:"cell-expires",role:"cell"},uT={key:0,class:"expires-never"},cT=["textContent"],pT={key:2,class:"expires-past"},fT={key:0},mT={key:3,class:"empty-dash","aria-label":"Not applicable"},hT={class:"cell-actions",role:"cell"},vT={class:"dropdown"},yT=["aria-label"],gT={class:"dropdown-menu dropdown-menu-right"},bT=["href"],wT=["href"],kT={key:0,class:"paper-table-empty"},ET={key:0},CT={key:1},_T={key:2,class:"paper-table-empty-actions"};function Il(e,t){let n=be("field"),r=be("form");return l(),d("div",tR,[o("div",null,[o("div",oR,[t[2]||(t[2]=o("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=b(" \xA0/\xA0 ",-1)),t[4]||(t[4]=o("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=b(" \xA0/\xA0 ",-1)),o("span",nR,c(e.conference?.conferenceID),1)]),o("div",sR,[o("div",null,[o("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,rR),e.conference?.url?(l(),d("p",iR,[o("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,aR)])):p("v-if",!0)]),o("div",lR,[o("span",{class:A(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[o("span",{class:A(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),o("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,dR)],2),o("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit conference",-1)])],8,uR)])]),o("div",cR,[o("span",null,[t[7]||(t[7]=b("ID ",-1)),o("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,pR)]),o("span",null,[t[8]||(t[8]=b("Review window ",-1)),o("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),o("span",null,[t[9]||(t[9]=b("Repositories ",-1)),o("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),o("span",null,[t[10]||(t[10]=b("Plan ",-1)),o("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,fR)]),e.conference?.price?(l(),d("span",mR,[t[11]||(t[11]=b("Cost so far ",-1)),o("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):p("v-if",!0)]),t[32]||(t[32]=o("div",{class:"paper-section-eyebrow"},"Repositories",-1)),D((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=de(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[o("div",hR,[D(o("input",vR,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",yR,[o("div",gR,[o("button",bR,[t[12]||(t[12]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",wR,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),o("div",kR,[t[17]||(t[17]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",ER,[D(o("input",CR,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),o("div",_R,[D(o("input",SR,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",NR,[D(o("input",DR,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",RR,[D(o("input",TR,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=o("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),o("div",AR,[o("button",OR,[t[18]||(t[18]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",IR,"All")):p("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?p("v-if",!0):(l(),d("span",PR,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",VR,[t[19]||(t[19]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(X,null,ae(e.statusLabels,(s,i,a)=>(l(),d("div",qR,[D(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,MR),[[n,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+i},c(s),9,$R)]))),256))])])])],32)),[[r,e.viewState]]),o("div",LR,[o("span",UR,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",FR,[b(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",zR,"y")):p("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",HR,"ies")):p("v-if",!0)])):p("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",BR,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):p("v-if",!0)]),(l(!0),d(X,null,ae(e.filters?.status,(s,i,a)=>(l(),d(X,null,[s===!1?(l(),d("span",jR,[b(" Hiding "+c(e.statusLabels[i])+" ",1),o("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,GR)])):p("v-if",!0)],64))),256))]),o("div",WR,[t[31]||(t[31]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Repository"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Views"),o("div",{role:"columnheader"},"Expires"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(X,null,ae(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error"}]),role:"row",key:s?.repoId},[o("div",KR,[t[22]||(t[22]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",YR,[o("a",{class:"repo-name",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId+"/")},null,8,JR),o("div",QR,[o("span",XR,[o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,ZR),s?.options?.update&&s?.source?.branch?(l(),d("span",xR,[t[20]||(t[20]=b(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,eT)])):p("v-if",!0),s?.source?.commit?(l(),d("span",tT,[t[21]||(t[21]=b(" \xB7 ",-1)),o("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},"@"+c(s?.source?.commit?.substring(0,8)),9,oT)])):p("v-if",!0)])])])]),o("div",nT,[o("div",sT,[o("span",{class:A(["status-dot","status-"+(s?.status=="error"?"error":s?.status=="ready"?"ready":s?.status=="expired"||s?.status=="removed"?s?.status:"progress")]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(s?.status))},null,8,rT)]),s?.anonymizeDate?(l(),d("div",iT,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)):p("v-if",!0)]),o("div",aT,[t[23]||(t[23]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[24]||(t[24]=b()),o("span",{textContent:c(e.fmt?.number(s?.pageView))},null,8,lT)]),o("div",dT,[t[26]||(t[26]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),s?.status=="ready"&&(s?.options?.expirationMode==="never"||!s?.options?.expirationDate)?(l(),d("span",uT,"Never")):p("v-if",!0),s?.status=="ready"&&s?.options?.expirationMode!=="never"&&s?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(s?.options?.expirationDate))},null,8,cT)):p("v-if",!0),s?.status=="expired"?(l(),d("span",pT,[t[25]||(t[25]=b("Expired",-1)),s?.options?.expirationDate?(l(),d("span",fT,c(e.fmt?.humanTime(s?.options?.expirationDate)),1)):p("v-if",!0)])):p("v-if",!0),s?.status!="ready"&&s?.status!="expired"?(l(),d("span",mT,"\u2014")):p("v-if",!0)]),o("div",hT,[o("div",vT,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+s?.repoId},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,yT),o("div",gT,[o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View ",-1)])],8,bT),o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,wT)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",kT,[t[30]||(t[30]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?p("v-if",!0):(l(),d("span",ET,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",CT,"Nothing matches the current filters.")):p("v-if",!0),e.conference?.repositories?.length?(l(),d("div",_T,[o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=s=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):p("v-if",!0)])):p("v-if",!0)])])])}var ST={class:"container page paper-page conferences-page"},NT={class:"row"},DT={class:"w-100"},RT={class:"search-wrap"},TT={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},AT={class:"dashboard-filter-controls"},OT={class:"dropdown"},IT={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},PT={class:"filter-btn-value"},VT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},qT={class:"form-check dropdown-item"},MT={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},$T={class:"form-check dropdown-item"},LT={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},UT={class:"form-check dropdown-item"},FT={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},zT={class:"dropdown"},HT={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},BT={key:0,class:"filter-btn-value"},jT={key:1,class:"filter-btn-value"},GT={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},WT={class:"form-check dropdown-item"},KT=["id"],YT=["for"],JT={class:"dashboard-meta"},QT={class:"dashboard-count"},XT={key:0},ZT={key:0},xT={key:1},eA={key:0,class:"filter-chip"},tA=["onClick","aria-label"],oA={key:0,class:"conference-feedback",role:"alert"},nA={key:1,class:"conference-feedback",role:"status"},sA={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},rA={class:"cell-anon",role:"cell"},iA={class:"anon-text"},aA=["textContent","href"],lA={class:"anon-sub"},dA={class:"anon-source"},uA=["textContent"],cA={key:0},pA=["textContent","href"],fA={class:"cell-status",role:"cell"},mA={class:"status-line"},hA=["textContent"],vA={class:"cell-views num",role:"cell"},yA=["textContent"],gA={class:"cell-expires",role:"cell"},bA={key:0},wA={key:1,class:"empty-dash","aria-label":"No review window"},kA={class:"cell-actions",role:"cell"},EA={class:"dropdown"},CA=["disabled","aria-label"],_A={class:"dropdown-menu dropdown-menu-right"},SA=["href"],NA=["href"],DA={key:0},RA=["onClick"],TA={key:0,class:"paper-table-empty"},AA={key:0},OA={key:1},IA={class:"paper-table-empty-actions"},PA={key:1,href:"/conference/new",class:"btn btn-ink"};function Pl(e,t){let n=be("field"),r=be("form");return l(),d("div",ST,[o("div",NT,[o("div",DT,[t[10]||(t[10]=pe('
',1))]),p(" Search + filters "),D((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=de(i=>e.submitForm(i,()=>{i.preventDefault()}),["prevent"]))},[o("div",KA,[D(o("input",YA,null,512),[[r,{state:e.viewState,set:i=>{e.search=i},value:e.search,form:null,options:{}}]])]),o("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[3]||(t[3]=i=>e.filtersExpanded=!e.filtersExpanded)},[...t[30]||(t[30]=[b("Filters",-1),o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1)])],8,JA),o("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[o("div",QA,[o("button",{type:"button",class:A(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[4]||(t[4]=i=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,XA),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[5]||(t[5]=i=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[31]||(t[31]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("span",{class:"type-filter-label"},"Repos",-1)])],10,ZA),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[6]||(t[6]=i=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[32]||(t[32]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-pr"})],-1),o("span",{class:"type-filter-label"},"PRs",-1)])],10,xA),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[7]||(t[7]=i=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[33]||(t[33]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1),o("span",{class:"type-filter-label"},"Gists",-1)])],10,eO)]),o("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[o("div",tO,[o("button",oO,[t[35]||(t[35]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",nO,c(e.sortLabel()),1),(l(),d("svg",{class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)),o("span",sO,c(e.sortDesc()?"descending":"ascending"),1)]),o("div",rO,[t[36]||(t[36]=o("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(X,null,ae(e.sortFields,(i,a,u)=>(l(),d("div",iO,[o("input",{class:"form-check-input",type:"radio",name:"sort",onClick:f=>e.setSort(a,i.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+u},null,8,aO),o("label",{class:"form-check-label",for:"sort-"+u},c(i?.label),9,lO)]))),256)),t[37]||(t[37]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item",onClick:t[8]||(t[8]=i=>e.toggleSortDirection())},c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),o("div",dO,[o("button",uO,[t[38]||(t[38]=o("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?p("v-if",!0):(l(),d("span",cO,"All")),e.hasHiddenStatus()?(l(),d("span",pO,c(e.hiddenStatusCount())+" hidden",1)):p("v-if",!0)]),o("div",fO,[t[39]||(t[39]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(X,null,ae(e.statusKeyLabels,(i,a,u)=>(l(),d("div",mO,[D(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,hO),[[r,{state:e.viewState,set:f=>{e.filters.status[a]=f},value:e.filters?.status[a],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+a},c(i),9,vO)]))),256))])])],2)],2)],32)),[[s,e.viewState]]),p(" Result count + active filter chips "),e.loading?p("v-if",!0):(l(),d("div",yO,[o("div",gO,[o("button",{type:"button","aria-pressed":e.projectView==="all",onClick:t[10]||(t[10]=i=>e.setProjectView("all")),"aria-label":"All projects"},[...t[40]||(t[40]=[o("span",{class:"dashboard-view-long"},"All projects",-1),o("span",{class:"dashboard-view-short","aria-hidden":"true"},"All",-1)])],8,bO),o("button",{type:"button","aria-pressed":e.projectView==="attention",onClick:t[11]||(t[11]=i=>e.setProjectView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[41]||(t[41]=o("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[42]||(t[42]=o("span",null,"attention",-1)),t[43]||(t[43]=b()),o("span",{class:A(["attention-count",{"has-attention":e.attentionCount()>0}])},c(e.attentionCount()),3)],8,wO)]),o("span",kO,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",EO,[b(c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",CO,"s")):p("v-if",!0)])):(l(),d("span",_O,c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" of "+c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" shown",1))]),o("div",SO,[(l(!0),d(X,null,ae(e.filters?.status,(i,a,u)=>(l(),d(X,null,[i===!1?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:f=>e.filters.status[a]=!0,"aria-label":"Show "+e.statusKeyLabels[a]+" again",title:"Show "+e.statusKeyLabels[a]+" again"},[b(c(e.statusKeyLabels[a])+" hidden",1),t[44]||(t[44]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))],8,NO)):p("v-if",!0)],64))),256)),e.typeFilter!=="all"?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:t[12]||(t[12]=i=>e.typeFilter="all"),"aria-label":"Show all project types"},[b(c(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[45]||(t[45]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))])):p("v-if",!0),e.showClearFilters()?(l(),d("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[13]||(t[13]=i=>e.clearFilters())},"Clear filters")):p("v-if",!0)])]))]),p(" Table "),o("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[o("div",RO,[o("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[14]||(t[14]=i=>e.setSort("_label"))},[t[47]||(t[47]=b(" Project ",-1)),e.isSortedBy("_label")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[46]||(t[46]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,TO),o("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("status")}]),onClick:t[15]||(t[15]=i=>e.setSort("status"))},[t[49]||(t[49]=b(" Status ",-1)),e.isSortedBy("status")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[48]||(t[48]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,AO),o("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[16]||(t[16]=i=>e.setSort("pageView"))},[t[51]||(t[51]=b(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[50]||(t[50]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,OO),o("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[17]||(t[17]=i=>e.setSort("options.expirationDate"))},[t[53]||(t[53]=b(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[52]||(t[52]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,IO),t[54]||(t[54]=o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")],-1))]),p(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(X,null,ae([1,2,3,4],(i,a)=>(l(),d(X,null,[e.loading?(l(),d("div",PO,[...t[55]||(t[55]=[o("div",{class:"cell-anon",role:"cell"},[o("span",{class:"skeleton skeleton-badge"}),o("div",{class:"anon-text"},[o("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),o("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),o("div",{class:"cell-status",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),o("div",{class:"cell-views num",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),o("div",{class:"cell-expires",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),o("div",{class:"cell-actions",role:"cell"},null,-1)])])):p("v-if",!0)],64))),64)),(l(!0),d(X,null,ae(e.filteredItems,(i,a)=>(l(),d(X,{key:i?._type+":"+(i?._id||a)},[e.loading?p("v-if",!0):(l(),d("div",{key:0,class:A(["paper-table-row",{"repo-inactive":i?._statusKey=="expired"||i?._statusKey=="removed","repo-error":i?.status=="error","row-clickable":!!i?._viewUrl}]),role:"row",onClick:u=>e.openItem(i,u)},[o("div",qO,[o("span",{class:"project-type-icon",role:"img","aria-label":i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist",title:i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist"},[(l(),d("svg",$O,[o("use",{href:"#project-type-"+i._type},null,8,LO)]))],8,MO),o("div",UO,[o("div",FO,[i?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:i._label,textContent:c(i?._label),href:e.safeUrl(i?._viewUrl)},null,8,zO)):p("v-if",!0),i?._viewUrl?p("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(i?._label)},null,8,HO)),i?.role==="coauthor"?(l(),d("span",BO,"Co-author")):p("v-if",!0)]),o("div",jO,[i?._id?(l(),d("code",{key:0,class:"anonymous-id",title:i._id},c(i._id),9,GO)):p("v-if",!0),i?._type==="repo"&&i?.source?.commit?(l(),d("span",{key:1,class:"commit-hash",title:i.source.commit},c(i.source.commit.substring(0,8)),9,WO)):p("v-if",!0),i?.conference?(l(),d("span",{key:2,class:"cell-conf conf-tag",title:i?.conference},[t[56]||(t[56]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),t[57]||(t[57]=b()),o("span",{textContent:c(i?.conference)},null,8,YO)],8,KO)):p("v-if",!0)])])]),o("div",JO,[o("div",QO,[o("div",XO,[o("span",{class:A(["status-dot","status-"+i?._statusKey]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(i?.status))},null,8,ZO)]),i?.status=="error"&&i?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(i?.statusMessage)),title:i?.statusMessage},null,8,xO)):p("v-if",!0),i?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(i?.anonymizeDate||i?.lastView)}," Last activity "+c(e.fmt?.humanTime(i?.anonymizeDate||i?.lastView))+" \xB7 may be stuck ",9,e4)):p("v-if",!0),i.status==="error"&&i._editUrl?(l(),d("a",{key:2,class:"project-attention-action",href:e.safeUrl(i._editUrl)},"Fix source",8,t4)):p("v-if",!0),i._stale||i._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:de(u=>e.showProjectDetails(i),["stop"])},c(i._broken?"Review details":"Check progress"),9,o4)):p("v-if",!0),i?.status!="error"&&!i?._stale&&i?.anonymizeDate?(l(),d("div",n4," anonymized "+c(e.fmt?.humanTime(i?.anonymizeDate)),1)):p("v-if",!0)]),o("div",{class:"cell-views num",role:"cell","aria-label":e.fmt.number(i.pageView)+" views"},[t[58]||(t[58]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),o("span",null,c(e.fmt.number(i.pageView)),1)],8,s4),o("div",r4,[t[59]||(t[59]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),i?._expiry?.kind==="never"?(l(),d("span",i4,"Never")):p("v-if",!0),i?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(i?._expiry?.date))},null,8,a4)):p("v-if",!0),i?._expiry?.kind==="expired"&&i?._expiry?.date?(l(),d("span",l4,"Expired "+c(e.fmt?.humanTime(i?._expiry?.date)),1)):p("v-if",!0),i?._expiry?.kind==="expired"&&!i?._expiry?.date?(l(),d("span",d4,"Expired")):p("v-if",!0),i?._expiry?.kind==="none"?(l(),d("span",u4,"\u2014")):p("v-if",!0)])]),o("div",c4,[i._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:de(u=>e.copyLink(i),["stop"]),disabled:!!e.copyingId,title:"Copy anonymous link for "+i._label,"aria-label":"Copy anonymous link for "+i._label},[...t[60]||(t[60]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-copy"})],-1)])],8,p4)):p("v-if",!0),i._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:de(u=>e.showProjectDetails(i),["stop"]),"data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Details",8,f4)):p("v-if",!0),i?._broken?p("v-if",!0):(l(),d("div",m4,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-label":"Actions for "+i?._name},[...t[61]||(t[61]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,h4),o("div",v4,[o("button",{type:"button",class:"dropdown-item",onClick:u=>e.showProjectDetails(i),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Project details & name",8,y4),o("a",{class:"dropdown-item",href:e.safeUrl(i?._viewUrl)}," View ",8,g4),i?._type==="repo"&&i?.options?.page&&i?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+i?.repoId+"/")}," View page ",8,b4)):p("v-if",!0),i?._viewUrl?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:u=>e.copyLink(i),disabled:!!e.copyingId}," Copy anonymous link ",8,w4)):p("v-if",!0),o("a",{class:"dropdown-item",href:e.safeUrl(i?._editUrl)}," Edit ",8,k4),i?.status=="ready"||i?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Force update ",8,E4)):p("v-if",!0),i?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Enable ",8,C4)):p("v-if",!0),i?.status=="expired"?(l(),d("button",{key:4,type:"button",class:"dropdown-item",onClick:u=>e.extendItem(i)}," Extend 6 months ",8,_4)):p("v-if",!0),(i?.status=="ready"||i?.status=="expired"||i?.status=="error")&&i?.role!=="coauthor"?(l(),d("div",S4,[t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeItem(i)}," Remove ",8,N4)])):p("v-if",!0)])]))])],10,VO)),!e.loading&&e.selectedProject===i?(l(),d("div",D4,[o("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(i),tabindex:"-1",onKeydown:Ao(de(u=>e.closeProjectDetails(i),["stop"]),["esc"])},[o("div",T4,[t[64]||(t[64]=o("h2",null,"Project details",-1)),o("button",{type:"button",class:"project-close",onClick:u=>e.closeProjectDetails(i),"aria-label":"Close project details"},[...t[63]||(t[63]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,A4)]),o("dl",O4,[o("div",null,[t[65]||(t[65]=o("dt",null,"Source",-1)),o("dd",null,c(i._source||"Not available"),1)]),o("div",null,[t[66]||(t[66]=o("dt",null,"Anonymous ID",-1)),o("dd",null,[o("code",null,c(i._id||"Missing identifier"),1)])]),i.source?.commit?(l(),d("div",I4,[t[67]||(t[67]=o("dt",null,"Commit",-1)),o("dd",null,[o("code",null,c(i.source.commit),1)])])):p("v-if",!0),i.conference?(l(),d("div",P4,[t[68]||(t[68]=o("dt",null,"Conference",-1)),o("dd",null,c(i.conference),1)])):p("v-if",!0),o("div",null,[t[69]||(t[69]=o("dt",null,"Status",-1)),o("dd",null,[b(c(e.fmt.statusLabel(i.status)),1),i.statusMessage?(l(),d("span",V4," \xB7 "+c(e.fmt.statusMsg(i.statusMessage)),1)):p("v-if",!0)])]),i.anonymizeDate?(l(),d("div",q4,[t[70]||(t[70]=o("dt",null,"Last anonymized",-1)),o("dd",null,c(e.fmt.humanTime(i.anonymizeDate)),1)])):p("v-if",!0)]),i._stale?(l(),d("p",M4,"This download has not progressed recently. Check the source access and selected branch before retrying.")):p("v-if",!0),i._editUrl?(l(),d("a",{key:1,class:"project-attention-action",href:e.safeUrl(i._editUrl)},c(e.needsAttention(i)?"Check source settings":"Edit anonymization settings"),9,$4)):p("v-if",!0),i._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:de(u=>e.saveProjectName(i),["prevent"])},[o("label",{for:"project-name-"+i._type+"-"+i._id},"Project name",8,U4),o("p",{id:"project-name-help-"+i._type+"-"+i._id},"Only you see this name. Leave it blank to use the default.",8,F4),o("div",z4,[D(o("input",{class:"form-control",type:"text",id:"project-name-"+i._type+"-"+i._id,"aria-describedby":"project-name-help-"+i._type+"-"+i._id,maxlength:"100","onUpdate:modelValue":t[18]||(t[18]=u=>e.projectName=u),disabled:e.nameSaving},null,8,H4),[[to,e.projectName]]),o("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,B4)]),e.nameError?(l(),d("p",j4,c(e.nameError),1)):p("v-if",!0),e.nameMessage?(l(),d("p",G4,c(e.nameMessage),1)):p("v-if",!0)],40,L4)):p("v-if",!0)],40,R4)])):p("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",W4,[t[72]||(t[72]=o("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?p("v-if",!0):(l(),d("span",K4,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",Y4,"Nothing matches the current filters.")):p("v-if",!0),o("div",J4,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=i=>e.clearFilters())},"Clear filters")):p("v-if",!0),e.hasProjects()?p("v-if",!0):(l(),d("a",Q4,[...t[71]||(t[71]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),b(" New anonymization",-1)])]))])])):p("v-if",!0)],8,DO)]),e.dashboardCursor||e.dashboardError?(l(),d("div",X4,[e.dashboardError?(l(),d("p",Z4,c(e.dashboardError),1)):p("v-if",!0),e.dashboardCursor?(l(),d("button",{key:1,type:"button",class:"btn",onClick:t[20]||(t[20]=i=>e.loadMoreProjects()),disabled:e.loadingMore},c(e.loadingMore?"Loading\u2026":"Load more projects"),9,x4)):p("v-if",!0)])):p("v-if",!0)])}var eI={class:"explorer-page"},tI=["aria-label"],oI={class:"ui-icon","aria-hidden":"true"},nI=["href"],sI=["textContent"],rI={class:"leftCol-head"},iI={class:"leftCol-search"},aI={class:"tree-search-box"},lI=["href"],dI={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},uI={class:"leftCol-project-header"},cI=["textContent","title"],pI={class:"project-file-count"},fI=["title"],mI={class:"leftCol-body"},hI={key:0,class:"paper-inline-warning",role:"alert"},vI={key:1,class:"paper-inline-warning",role:"alert"},yI={class:"leftCol-foot"},gI=["title"],bI=["title"],wI=["title"],kI={key:2,class:"last-update",title:"Older repositories have no recorded publication date. The source commit date does not establish when files became available here."},EI={class:"explorer-main"},CI={class:"status-bar"},_I={class:"breadcrumb paths","aria-label":"Path"},SI=["textContent"],NI={class:"status-bar-actions"},DI=["href"],RI={class:"d-none d-md-inline"},TI={class:"ui-icon","aria-hidden":"true"},AI=["href"],OI={class:"d-none d-md-inline"},II=["href"],PI=["href"],VI=["href"],qI=["href"],MI={class:"explorer-content"};function ql(e,t){let n=We("tree"),r=We("partial-view"),s=be("field");return l(),d("div",eI,[D(o("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(l(),d("svg",oI,[o("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,nI)])),o("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,sI)],8,tI),[[K,e.files?.length]]),D(o("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[o("div",rI,[t[7]||(t[7]=o("span",{class:"leftCol-eyebrow"},"Files",-1)),o("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),o("div",iI,[o("div",aI,[(l(),d("svg",{class:A(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[o("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,lI)],2)),D(o("input",dI,null,512),[[s,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),D(o("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[K,!e.fileSearchQuery]]),D(o("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[K,e.fileSearchQuery]])])]),o("div",uI,[o("span",{class:"project-name",textContent:c(e.repoId),title:e.repoId},null,8,cI),o("span",pI,c(e.fileCounts?.[""]||e.files?.length)+" files",1),e.options?.expirationDate?(l(),d("span",{key:0,class:"project-expiry",title:e.options.expirationDate},[t[8]||(t[8]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" Available until "+c(e.fmt?.date(e.options.expirationDate)),1)],8,fI)):p("v-if",!0)]),o("div",mI,[e.options?.truncatedFolders?.length>0?(l(),d("div",hI,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):p("v-if",!0),e.options?.hasSubmodules?(l(),d("div",vI,[t[10]||(t[10]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):p("v-if",!0),Ce(n,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),o("div",yI,[o("span",{class:"last-update",title:e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate},c(e.options?.sourceCommitDate?"Source commit":e.options?.anonymizedAt?"Anonymized":"Updated")+" "+c(e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),9,gI),e.options?.settingsSavedAt?(l(),d("span",{key:0,class:"last-update",title:e.options.settingsSavedAt}," Settings saved "+c(e.fmt?.date(e.options.settingsSavedAt)),9,bI)):p("v-if",!0),e.options?.publishedAt?(l(),d("span",{key:1,class:"last-update",title:e.options.publishedAt}," Snapshot ready "+c(e.fmt?.date(e.options.publishedAt)),9,wI)):p("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",kI," Snapshot ready date not recorded ")):p("v-if",!0)])],2),[[K,e.files?.length]]),D(o("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[K,e.files?.length&&!e.sidebarCollapsed]]),o("div",EI,[D(o("div",CI,[o("ol",_I,[(l(!0),d(X,null,ae(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,SI))),256))]),o("div",NI,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[11]||(t[11]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,DI)):p("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:A(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=i=>e.toggleAllowScripts())},[t[12]||(t[12]=o("i",{class:"fab fa-js"},null,-1)),o("span",RI,c(e.allowScripts?"JS on":"JS off"),1)],2)):p("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=i=>e.toggleSource())},[(l(),d("svg",TI,[o("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,AI)])),o("span",OI,c(e.showSource?"Rendered":"Source"),1)])):p("v-if",!0),D(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"View raw current file",title:"View raw file",href:e.safeUrl(e.url)},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1)])],8,II),[[K,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),D(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"Download current file",title:"Download this file",href:e.safeUrl(e.url+"&download=true")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-download"})],-1)])],8,PI),[[K,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm btn-ink","aria-label":"Download repository as ZIP",title:"Download the whole repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[15]||(t[15]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-archive"})],-1),o("span",{class:"d-none d-md-inline"}," Download repository",-1)])],8,VI)):p("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),o("span",{class:"d-none d-md-inline"}," Website",-1)])],8,qI)):p("v-if",!0)])],512),[[K,e.type!="error"||e.files?.length]]),o("div",MI,[Ce(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var $I={class:"paper-faq"};function Ml(e,t){return l(),d("div",$I,[...t[0]||(t[0]=[pe('
',1),o("div",{class:"paper-faq-body"},[o("aside",{class:"paper-faq-toc"},[o("div",{class:"paper-faq-toc-head"},"Contents"),o("nav",null,[o("a",{href:"#faq-general"},"General"),o("a",{href:"#faq-features"},"Features"),o("a",{href:"#faq-limitations"},"Limitations"),o("a",{href:"#faq-privacy"},"Privacy & Security"),o("a",{href:"#faq-hosting"},"Self-Hosting")])]),o("section",{class:"faq-section","aria-label":"FAQs"},[o("div",null,[p(" General "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b("General ")]),o("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),o("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),o("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),o("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[o("div",{class:"panel-body p-3"},[o("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),o("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),o("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),b(", donating through "),o("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),b(', or by clicking the "Support me" button on the site. ')])])])])]),p(" Features "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})]),b("Features ")]),o("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),o("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub can display and render a wide variety of file types: "),o("ul",null,[o("li",null,[o("strong",null,"Text and source code"),b(" \u2014 displayed with syntax highlighting")]),o("li",null,[o("strong",null,"Markdown"),b(" \u2014 rendered as formatted HTML")]),o("li",null,[o("strong",null,"Images"),b(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),o("li",null,[o("strong",null,"PDFs"),b(" \u2014 rendered directly in the browser")]),o("li",null,[o("strong",null,"Jupyter Notebooks"),b(" \u2014 rendered with code cells and outputs")])]),o("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),o("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),o("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[o("div",{class:"panel-body p-3"},[o("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),o("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[o("div",{class:"panel-body p-3"},[o("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),o("ul",null,[o("li",null,[o("strong",null,"Never expire"),b(" \u2014 the anonymized repository remains accessible indefinitely.")]),o("li",null,[o("strong",null,"Redirect to GitHub"),b(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),o("li",null,[o("strong",null,"Remove content"),b(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),o("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),o("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),o("p",null," A few practical implications worth keeping in mind: "),o("ul",null,[o("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),o("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),o("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),o("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),o("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[o("code",null,`npm install -g @tdurieux/anonymous_github
+anonymous_github`)])])])])]),p(" Limitations "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})]),b("Limitations ")]),o("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),o("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[o("div",{class:"panel-body p-3"},[o("ul",null,[o("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),o("li",null," Files larger than 8 MB are not supported. "),o("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),o("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),p(" Privacy & Security "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b("Privacy & Security ")]),o("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),o("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[o("div",{class:"panel-body p-3"},[o("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),o("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[o("div",{class:"panel-body p-3"},[o("p",null,[b("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),o("a",{href:"/connections"},"GitHub connections"),b(" page.")]),o("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),o("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),o("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[o("div",{class:"panel-body p-3"},[o("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),p(" Self-Hosting "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-storage"})]),b("Self-Hosting ")]),o("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),o("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),b(". ")]),o("p",null," The basic steps are: "),o("ol",null,[o("li",null,"Clone the repository and install dependencies"),o("li",null,[b("Create a "),o("code",null,".env"),b(" file with your GitHub token, OAuth client ID, and client secret")]),o("li",null,[b("Run "),o("code",null,"docker-compose up -d")])])])])])]),o("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[o("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),o("p",{class:"text-muted mb-0"},[b(" Open an issue on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),b(" and we'll be happy to help. ")])])])])],-1)])])}var LI={class:"pr-page"},UI={class:"container paper-page pr-page-inner"},FI={class:"pr-header"},zI={class:"pr-title-row"},HI={class:"paper-page-title pr-title"},BI=["textContent"],jI={key:1,class:"text-muted"},GI=["href"],WI={class:"pr-header-meta"},KI={key:0,class:"pr-meta-item"},YI=["textContent"],JI={key:1,class:"pr-meta-item"},QI=["textContent"],XI={key:2,class:"pr-meta-item"},ZI=["textContent"],xI={key:0,class:"paper-tabs",role:"tablist"},e3=["aria-selected","tabindex"],t3=["textContent"],o3=["aria-selected","tabindex"],n3=["textContent"],s3={class:"paper-tab-content"},r3={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},i3={class:"pr-comments"},a3={class:"pr-comment"},l3={class:"pr-comment-head"},d3=["textContent"],u3={key:0,class:"pr-comment-date"},c3={key:0,class:"paper-table-empty"},p3={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},f3={class:"pr-comments"},m3={class:"pr-comment"},h3={class:"pr-comment-head"},v3={key:0,class:"pr-comment-author"},y3=["textContent"],g3=["textContent"],b3={key:0,class:"pr-comment-body"},w3={key:0,class:"paper-table-empty"};function $l(e,t){let n=We("gist-file"),r=We("markdown");return l(),d("div",LI,[o("div",UI,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Gist")],-1)),o("header",FI,[o("div",zI,[o("h1",HI,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,BI)):p("v-if",!0),e.details?.description?p("v-if",!0):(l(),d("span",jI,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,GI)):p("v-if",!0)]),o("div",WI,[o("span",{class:A(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",KI,[t[5]||(t[5]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=b(" @",-1)),o("span",{textContent:c(e.details?.ownerLogin)},null,8,YI)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",JI,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,QI)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",XI,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,ZI)])):p("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",xI,[e.details?.files?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=s=>e.previewTabKeydown(s)),onClick:t[1]||(t[1]=s=>e.tabState.active="files")},[t[11]||(t[11]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,t3)],42,e3)):p("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=s=>e.previewTabKeydown(s)),onClick:t[3]||(t[3]=s=>e.tabState.active="comments")},[t[12]||(t[12]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,n3)],42,o3)):p("v-if",!0)])):p("v-if",!0),o("div",s3,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",r3,[o("ul",i3,[(l(!0),d(X,null,ae(e.details?.files,(s,i)=>(l(),d("li",a3,[o("div",l3,[o("strong",{textContent:c(s?.filename)},null,8,d3),s?.language?(l(),d("span",u3,c(s?.language),1)):p("v-if",!0)]),Ce(n,{file:s},null,8,["file"])]))),256)),e.details?.files?.length?p("v-if",!0):(l(),d("li",c3,[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1),o("span",null,"No files in this gist.",-1)])]))])])):p("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",p3,[o("ul",f3,[(l(!0),d(X,null,ae(e.details?.comments,(s,i)=>(l(),d("li",m3,[o("div",h3,[s?.author?(l(),d("span",v3,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(s?.author)},null,8,y3)])):p("v-if",!0),s?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(s?.updatedDate))},null,8,g3)):p("v-if",!0)]),s?.body?(l(),d("div",b3,[Ce(r,{content:s?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",w3,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this gist.",-1)])]))])])):p("v-if",!0)])])])}var k3={class:"collapse navbar-collapse",id:"navbarSupportedContent"},E3={class:"navbar-nav mr-auto smooth-scroll"},C3={key:0,class:"nav-item"},_3={key:1,class:"nav-item"},S3={key:2,class:"nav-item"},N3={key:3,class:"nav-item"},D3={class:"nav-item"},R3={key:4,class:"nav-item"},T3={class:"navbar-nav"},A3={key:0,class:"nav-item"},O3={key:1,class:"nav-item"},I3={key:2,class:"nav-item"},P3={key:3,class:"nav-item"},V3={key:4,class:"nav-item dropdown user-chip-wrap"},q3={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},M3=["src"],$3={class:"user-chip-name"},L3={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},U3={class:"dropdown-header"},F3=["innerHTML"],z3=["disabled"],H3={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},B3={class:"email-prompt-actions"},j3=["disabled"],G3=["disabled"],W3=["disabled"];function Ll(e,t){return l(),d(X,null,[o("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[18]||(t[18]=pe('Anonymous GitHubSupport',3)),o("div",k3,[o("ul",E3,[e.user?p("v-if",!0):(l(),d("li",C3,[o("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",_3,[o("a",{class:A(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[7]||(t[7]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-grid"})],-1),b(" My work ",-1)])],2)])):p("v-if",!0),e.user?(l(),d("li",S3,[o("a",{class:A(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[8]||(t[8]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])],2)])):p("v-if",!0),e.user?(l(),d("li",N3,[o("a",{class:A(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[9]||(t[9]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1),b(" Conferences ",-1)])],2)])):p("v-if",!0),o("li",D3,[o("a",{class:A(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[10]||(t[10]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-help"})],-1),b("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",R3,[o("a",{class:A(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[11]||(t[11]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1),b(" Admin ",-1)])],2)])):p("v-if",!0)]),o("ul",T3,[e.user||!e.isReviewerRoute?(l(),d("li",A3,[...t[12]||(t[12]=[o("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[o("i",{class:"fab fa-github","aria-hidden":"true"})],-1)])])):p("v-if",!0),p(` "Report a bug" is about this service. Reviewers who land on an
anonymized repository often think it is about the paper, so the
- label names the service and the tooltip says who to contact. `),t[12]||(t[12]=o("li",{class:"nav-item d-none d-lg-block"},[o("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"},[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-bug"})]),b("Report a bug ")])],-1)),e.isDarkMode?p("v-if",!0):(l(),d("li",s3,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=me(s=>{e.darkMode(!0)},["prevent"]))},[...t[8]||(t[8]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(l(),d("li",n3,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=me(s=>{e.darkMode(!1)},["prevent"]))},[...t[9]||(t[9]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-sun"})],-1)])])])):p("v-if",!0),!e.user&&!e.isReviewerRoute?(l(),d("li",r3,[...t[10]||(t[10]=[o("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[o("i",{class:"fab fa-github mr-1"}),b(" Sign in ")],-1)])])):p("v-if",!0),e.user?(l(),d("li",i3,[o("a",a3,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,l3)):p("v-if",!0),o("span",d3,c(e.user?.username),1)]),o("div",u3,[o("h6",c3,"Signed in as @"+c(e.user?.username),1),t[11]||(t[11]=ce('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource codeSupport the projectSign out',9))])])):p("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,p3)):p("v-if",!0)],64)}var f3={class:"paper-landing"},m3={class:"paper-hero"},h3={class:"paper-hero-copy"},v3={class:"paper-cta-row"},g3={key:0,href:"/signin",target:"_self",class:"btn-hero"},y3={key:1,href:"/anonymize",class:"btn-hero"},b3={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},w3={class:"paper-stats-grid"},k3={class:"paper-stat-value"},E3={class:"paper-stat-label"},C3=["viewBox"],_3=["x","y","width","height"],S3={key:1,class:"paper-stat-delta"},N3={class:"paper-features paper-wrap","aria-label":"Product features"},D3={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},R3=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],T3={class:"paper-eyebrow"},A3={class:"paper-feature-title"},O3={class:"paper-feature-more"},I3={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},P3=["href","target"],V3={class:"paper-features-stage"},q3=["id","aria-labelledby"],M3={class:"paper-frame"},$3={class:"paper-frame-bar","aria-hidden":"true"},L3={class:"url"},U3=["src","alt"],F3={class:"paper-footer"},z3={class:"paper-footer-inner"},H3={class:"paper-footer-col"},B3={key:0,href:"/dashboard"},j3={key:1,href:"/conferences"},G3={class:"paper-footer-foot"};function Il(e,t){return l(),d("div",f3,[p(" Hero: copy on the left, the product on the right "),o("section",m3,[o("div",h3,[t[2]||(t[2]=o("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=o("h1",{class:"hero-title"},[b(" Share the code,"),o("br"),o("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=o("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)),o("div",v3,[e.user?p("v-if",!0):(l(),d("a",g3,[...t[0]||(t[0]=[o("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),b("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",y3," Anonymize a repository \u2192 ")):p("v-if",!0),t[1]||(t[1]=o("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[5]||(t[5]=o("ul",{class:"paper-reassure"},[o("li",null,"Free and open source"),o("li",null,"Read-only: never writes to your repos"),o("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=ce('
anonymous.4open.science/anonymize
',1))]),p(" Proof "),t[16]||(t[16]=ce('
Trusted by authors at
ICSE\xB7FSE\xB7OOPSLA
',1)),p(" Live stats "),o("section",b3,[t[7]||(t[7]=o("div",{class:"paper-stats-meta"},[o("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),o("div",{class:"paper-stats-meta-right"},[o("span",{class:"paper-stats-dot","aria-hidden":"true"}),b(" updated daily ")])],-1)),o("div",w3,[(l(!0),d(X,null,re(e.cards,(s,r)=>(l(),d("div",{class:"paper-stat-card",key:s?.key},[o("div",k3,c(e.fmt?.bigNum(s?.total)),1),o("div",E3,c(s?.label),1),e.history[s?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[s?.key].viewW+" 36"},[(l(!0),d(X,null,re(e.history[s?.key].bars,(n,i)=>(l(),d("rect",{key:i,class:A({"is-latest":i===e.history[s.key].bars.length-1}),x:n?.x,y:n?.y,width:n?.w,height:n?.h},null,10,_3))),128))],8,C3)):p("v-if",!0),e.history[s?.key].bars?.length>1?(l(),d("div",S3," +"+c(e.fmt?.number(e.history[s?.key].deltaToday))+" today ",1)):p("v-if",!0)]))),128))])]),p(" Before / after "),t[17]||(t[17]=o("section",{class:"paper-section-head paper-wrap"},[o("div",null,[o("div",{class:"paper-eyebrow"},"Before \xB7 after"),o("h2",null,[b("The same repository, "),o("em",null,"minus you.")])]),o("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),t[18]||(t[18]=o("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"Before \xB7 your repo"),o("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,"Developed by Jane Smith at MIT CSAIL."),o("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),o("div",null,"Contact: jane.smith@mit.edu")])]),o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"After \xB7 anonymous mirror"),o("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,[b("Developed by "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" at "),o("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),b(".")]),o("div",null,[b("See "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),o("div",null,[b("Contact: "),o("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),p(" What you get: one screenshot, three tabs "),t[19]||(t[19]=o("section",{class:"paper-section-head paper-wrap",id:"about"},[o("div",null,[o("div",{class:"paper-eyebrow"},"What you get"),o("h2",null,[b("Anonymize, review, "),o("em",null,"manage.")])]),o("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)),o("section",N3,[o("div",D3,[(l(!0),d(X,null,re(e.features,(s,r)=>(l(),d("div",{class:A(["paper-feature",{"is-on":e.feature===s?.key}]),key:s?.key},[o("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:n=>e.selectFeature(s.key),onKeydown:n=>e.featureKeydown(n,r),id:"feature-tab-"+s?.key,"aria-controls":"feature-panel-"+s?.key,"aria-selected":e.feature===s?.key,tabindex:e.feature===s?.key?0:-1},[o("span",T3,c(s?.num)+" \xB7 "+c(s?.eyebrow),1),o("span",A3,[b(c(s?.title)+" ",1),o("em",null,c(s?.accent),1)])],40,R3),o("div",O3,[o("span",I3,[b(c(s?.title)+" ",1),o("em",null,c(s?.accent),1)]),o("p",null,c(s?.text),1),o("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(s)),target:e.featureTarget(s)},c(s?.cta)+" \u2192",9,P3)])],2))),128))]),o("div",V3,[(l(!0),d(X,null,re(e.features,(s,r)=>N((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:s?.key,id:"feature-panel-"+s?.key,"aria-labelledby":"feature-tab-"+s?.key},[o("div",M3,[o("div",$3,[t[8]||(t[8]=o("span",{class:"dots"},[o("i"),o("i"),o("i")],-1)),o("span",L3,c(s?.url),1)]),o("div",{class:A("paper-crop paper-crop-"+s?.key)},[o("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(s?.img),alt:s?.alt},null,8,U3)],2)])],8,q3)),[[W,e.feature===s?.key]])),128))])]),p(" FAQ teaser "),t[20]||(t[20]=ce('
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.
',1)),o("footer",F3,[o("div",z3,[t[12]||(t[12]=o("div",{class:"paper-footer-brand"},[o("div",{class:"paper-footer-mark"},[b("Anonymous "),o("em",null,"GitHub")]),o("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),o("div",H3,[t[9]||(t[9]=o("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=o("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",B3,"My work")):p("v-if",!0),e.user?(l(),d("a",j3,"Conferences")):p("v-if",!0),t[11]||(t[11]=o("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=ce('',2))]),t[15]||(t[15]=o("div",{class:"paper-footer-rule"},null,-1)),o("div",G3,[o("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[14]||(t[14]=o("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var W3={class:"paper-empty"},K3={class:"paper-empty-inner"},Y3={key:0,class:"paper-eyebrow"},J3={key:1,class:"paper-eyebrow"},Q3={key:2,class:"paper-empty-title"},X3=["textContent"];function Pl(e,t){return l(),d("div",W3,[o("div",K3,[e.error?p("v-if",!0):(l(),d("div",Y3,"Working")),e.error?(l(),d("div",J3,"Error")):p("v-if",!0),e.error?p("v-if",!0):(l(),d("h1",Q3,[...t[0]||(t[0]=[b(" Loading",-1),o("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,X3)):p("v-if",!0)])])}var Z3={class:"container paper-page paper-settings"},x3={class:"paper-crumbs"},eP={class:"here"},tP={class:"paper-page-title"},oP={class:"paper-settings-body"},sP={class:"paper-settings-toc"},nP={href:"#conf-billing"},rP={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},iP={id:"conf-basics",class:"paper-settings-section"},aP={class:"form-group"},lP={class:"invalid-feedback"},dP={class:"invalid-feedback"},uP={class:"form-group"},cP={class:"invalid-feedback"},pP={class:"form-group"},fP={class:"invalid-feedback"},mP={class:"invalid-feedback"},hP={id:"conf-window",class:"paper-settings-section"},vP={class:"form-grid-2"},gP={class:"form-group"},yP={class:"invalid-feedback"},bP={class:"invalid-feedback"},wP={class:"form-group"},kP={class:"invalid-feedback"},EP={class:"invalid-feedback"},CP={id:"conf-rendering",class:"paper-settings-section"},_P={class:"form-check"},SP={class:"form-check-input",type:"checkbox",id:"link",name:"link"},NP={class:"form-check"},DP={class:"form-check-input",type:"checkbox",id:"image",name:"image"},RP={class:"form-check"},TP={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},AP={class:"form-check"},OP={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},IP={id:"conf-features",class:"paper-settings-section"},PP={class:"form-check"},VP={class:"form-check-input",type:"checkbox",id:"update",name:"update"},qP={class:"form-check"},MP={class:"form-check-input",type:"checkbox",id:"page",name:"page"},$P={id:"conf-plan",class:"paper-settings-section"},LP={class:"paper-plan-grid"},UP=["value"],FP=["textContent"],zP={class:"paper-plan-price"},HP=["innerHTML"],BP={key:0,id:"conf-billing",class:"paper-settings-section"},jP={class:"form-group"},GP={class:"form-group"},WP={class:"form-group"},KP={class:"form-group"},YP={class:"form-grid-3"},JP={class:"form-group"},QP={class:"form-group"},XP={class:"form-group"},ZP={class:"form-group"},xP={class:"paper-settings-footer"},eV=["textContent"],tV=["textContent"],oV=["disabled"];function Vl(e,t){let s=be("paper-scrollspy"),r=be("field"),n=be("form");return l(),d("div",Z3,[o("div",x3,[t[1]||(t[1]=o("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=b(" \xA0/\xA0 ",-1)),t[3]||(t[3]=o("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=b(" \xA0/\xA0 ",-1)),o("span",eP,c(e.editionMode?"Edit":"New"),1)]),o("h1",tP,[b(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=o("em",null,"conference",-1))]),t[43]||(t[43]=o("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),o("div",oP,[N((l(),d("aside",sP,[t[7]||(t[7]=o("div",{class:"paper-settings-toc-head"},"On this page",-1)),o("nav",null,[t[6]||(t[6]=ce('BasicsReview windowRendering defaultsFeaturesPlan',5)),N(o("a",nP,"Billing",512),[[W,e.plan?.pricePerRepo>0]])])])),[[s]]),N((l(),d("form",rP,[o("section",iP,[t[12]||(t[12]=o("div",{class:"paper-section-eyebrow"},"Basics",-1)),o("div",aP,[t[8]||(t[8]=o("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),N(o("div",lP," The name of the conference is invalid. ",512),[[W,e.conference?.name?.errors?.invalid]]),N(o("div",dP," The name of the conference is required. ",512),[[W,e.conference?.name?.errors?.required]])]),o("div",uP,[t[9]||(t[9]=o("label",{class:"paper-field-label",for:"url"},"Website",-1)),N(o("input",{type:"url",class:A(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),N(o("div",cP," The url of the conference is invalid. ",512),[[W,e.conference?.url?.errors?.url]])]),o("div",pP,[t[10]||(t[10]=o("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},[b("3\u201310 characters, letters, numbers, "),o("code",null,"-"),b(" and "),o("code",null,"_"),b(". Authors reference this when they anonymize.")],-1)),N(o("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[W,e.conference?.conferenceID?.errors?.used]]),N(o("div",fP," The conference ID is required. ",512),[[W,e.conference?.conferenceID?.errors?.required]]),N(o("div",mP," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[W,e.conference?.conferenceID?.errors?.pattern]])])]),o("section",hP,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Review window",-1)),o("div",vP,[o("div",gP,[t[13]||(t[13]=o("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),N(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),N(o("div",yP," Start date is required. ",512),[[W,e.conference?.startDate?.errors?.required]]),N(o("div",bP," Start date must be before end date. ",512),[[W,e.conference?.startDate?.errors?.invalid]])]),o("div",wP,[t[15]||(t[15]=o("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),N(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),N(o("div",kP," End date is required. ",512),[[W,e.conference?.endDate?.errors?.required]]),N(o("div",EP," End date is invalid. ",512),[[W,e.conference?.endDate?.errors?.invalid]])])])]),o("section",CP,[t[26]||(t[26]=o("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),o("div",_P,[N(o("input",SP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=o("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),o("div",NP,[N(o("input",DP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=o("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),o("div",RP,[N(o("input",TP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=o("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),o("div",AP,[N(o("input",OP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),o("section",IP,[t[31]||(t[31]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",PP,[N(o("input",VP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=o("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),o("div",qP,[N(o("input",MP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),o("section",$P,[t[33]||(t[33]=o("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[34]||(t[34]=o("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),o("div",LP,[(l(!0),d(X,null,re(e.plans,(i,a)=>(l(),d("label",{class:A(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[N(o("input",{type:"radio",name:"planPicker",value:i?.id},null,8,UP),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),o("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,FP),o("div",zP,[b(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[32]||(t[32]=o("span",{class:"paper-plan-per"},"/ repo / month",-1))]),o("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,HP)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",BP,[t[42]||(t[42]=o("div",{class:"paper-section-eyebrow"},"Billing",-1)),o("div",jP,[t[35]||(t[35]=o("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),N(o("input",{type:"text",class:A(["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:{}}]])]),o("div",GP,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"email"},"Email",-1)),N(o("input",{type:"email",class:A(["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:{}}]])]),o("div",WP,[t[37]||(t[37]=o("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),N(o("input",{type:"text",class:A(["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:{}}]])]),o("div",KP,[N(o("input",{type:"text",class:A(["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:{}}]])]),o("div",YP,[o("div",JP,[t[38]||(t[38]=o("label",{class:"paper-field-label",for:"city"},"City",-1)),N(o("input",{type:"text",class:A(["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:{}}]])]),o("div",QP,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"country"},"Country",-1)),N(o("input",{type:"text",class:A(["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:{}}]])]),o("div",XP,[t[40]||(t[40]=o("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),N(o("input",{type:"text",class:A(["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:{}}]])])]),o("div",ZP,[t[41]||(t[41]=o("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),N(o("input",{type:"text",class:A(["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:{}}]])])])):p("v-if",!0),o("div",xP,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,eV)):p("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,tV)):p("v-if",!0),o("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=me(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,oV)])])),[[n,e.viewState]])])])}var sV={key:0},nV=["innerHTML"],rV={key:3},iV=["src"],aV=["src"],lV={key:7},dV={controls:"controls"},uV=["src"],cV={key:8},pV={key:9,class:"file-error container d-flex h-100"},fV={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},mV={class:"paper-error-msg"},hV={key:10,class:"file-error container d-flex h-100"},vV={class:"paper-error-card file-error-card m-auto",role:"alert"},gV=["textContent"],yV={key:11,class:"file-error container d-flex h-100"},bV={key:12,class:"file-error container d-flex h-100"},wV={key:13,class:"file-error container d-flex h-100"},kV={key:14,class:"file-error container d-flex h-100"},EV={class:"paper-empty-title m-auto"},CV=["href"];function ql(e,t){let s=We("html-doc"),r=We("pdfviewer"),n=We("notebook"),i=be("code-editor");return l(),d(X,null,[e.type=="text"?N((l(),d("div",sV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):p("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.highlightRedactions(e.sanitize(e.content))},null,8,nV)):p("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),Mt(s,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):p("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?N((l(),d("div",rV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):p("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,iV)):p("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,aV)):p("v-if",!0),e.type=="pdf"?(l(),Mt(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):p("v-if",!0),e.type=="audio"?(l(),d("div",lV,[o("audio",dV,[o("source",{src:e.safeUrl(e.url)},null,8,uV)])])):p("v-if",!0),e.type=="IPython"?(l(),d("div",cV,[Ce(n,{file:e.url,content:e.content},null,8,["file","content"])])):p("v-if",!0),e.type=="rate_limited"?(l(),d("div",pV,[o("div",fV,[t[2]||(t[2]=ce('
Temporarily paused
GitHub API rate limit reached
',1)),o("p",mV,[t[0]||(t[0]=b("This repository will be available in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[1]||(t[1]=b(". The page will reload automatically.",-1))])])])):p("v-if",!0),e.type=="error"?(l(),d("div",hV,[o("div",vV,[t[3]||(t[3]=o("div",{class:"paper-error-eyebrow"},"Unavailable",-1)),t[4]||(t[4]=o("div",{class:"paper-error-title"},"This content can\u2019t be shown",-1)),o("p",{class:"file-error-msg",textContent:c(e.fmt.translate("ERRORS."+e.content))},null,8,gV),t[5]||(t[5]=o("div",{class:"file-error-actions"},[o("a",{href:"/",class:"btn btn-sm"},"Back to home"),o("a",{href:"/faq",class:"btn btn-sm"},"Read the FAQ")],-1))])])):p("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",yV,[...t[6]||(t[6]=[o("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):p("v-if",!0),e.type=="empty"?(l(),d("div",bV,[...t[7]||(t[7]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"repository"),b(".")],-1)])])):p("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",wV,[...t[8]||(t[8]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"file"),b(".")],-1)])])):p("v-if",!0),e.type=="binary"?(l(),d("div",kV,[o("h1",EV,[t[9]||(t[9]=b("Unsupported ",-1)),t[10]||(t[10]=o("em",null,"binary file",-1)),t[11]||(t[11]=b(". You can ",-1)),o("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,CV),t[12]||(t[12]=b(".",-1))])])):p("v-if",!0)],64)}var _V={class:"container page dashboard-page paper-page"},SV={class:"row"},NV={class:"w-100"},DV={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},RV={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},TV={class:"flex-grow-1"},AV={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},OV={class:"d-flex flex-wrap",style:{gap:"6px"}},IV={class:"dropdown"},PV={class:"dropdown-menu","aria-labelledby":"dropdownSort"},VV={class:"form-check dropdown-item"},qV={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},MV={class:"form-check dropdown-item"},$V={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},LV={class:"form-check dropdown-item"},UV={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},FV={class:"form-check dropdown-item"},zV={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},HV={class:"form-check dropdown-item"},BV={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},jV={class:"dropdown"},GV={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},WV={class:"form-check dropdown-item"},KV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},YV={class:"form-check dropdown-item"},JV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},QV={class:"form-check dropdown-item"},XV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},ZV={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},xV={class:"filter-chip"},e5=["onClick"],t5={class:"repo-list w-100"},o5={class:"repo-list-item-content"},s5={class:"repo-list-item-main"},n5={class:"repo-list-item-header"},r5=["textContent","href"],i5=["textContent"],a5=["textContent"],l5={class:"repo-source"},d5=["href"],u5={class:"repo-date"},c5={class:"repo-meta"},p5={key:0,title:"Conference"},f5=["title"],m5=["title"],h5=["title"],v5={key:1},g5={class:"repo-list-item-actions"},y5={class:"dropdown"},b5={class:"dropdown-menu dropdown-menu-right"},w5=["href"],k5=["onClick"],E5=["onClick"],C5=["onClick"],_5=["href"],S5={key:0,class:"repo-list-empty"};function Ml(e,t){let s=be("field"),r=be("form");return l(),d("div",_V,[o("div",SV,[o("div",NV,[t[12]||(t[12]=ce('
My work \xA0/\xA0 Pull requests
Anonymized pull requests
Track PR mirrors you\u2019ve created and their reviewer traffic.
',2)),p(" Search + filters row "),N((l(),d("form",DV,[o("div",RV,[o("div",TV,[N(o("input",AV,null,512),[[s,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),o("div",OV,[o("div",IV,[t[6]||(t[6]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),o("div",PV,[t[5]||(t[5]=o("h6",{class:"dropdown-header"},"Select order",-1)),o("div",VV,[N(o("input",qV,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=o("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),o("div",MV,[N(o("input",$V,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=o("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),o("div",LV,[N(o("input",UV,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",FV,[N(o("input",zV,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),o("div",HV,[N(o("input",BV,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),o("div",jV,[t[11]||(t[11]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),o("div",GV,[t[10]||(t[10]=o("h6",{class:"dropdown-header"},"Select status",-1)),o("div",WV,[N(o("input",KV,null,512),[[s,{state:e.viewState,set:n=>{e.filters.status.ready=n},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=o("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),o("div",YV,[N(o("input",JV,null,512),[[s,{state:e.viewState,set:n=>{e.filters.status.expired=n},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=o("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),o("div",QV,[N(o("input",XV,null,512),[[s,{state:e.viewState,set:n=>{e.filters.status.removed=n},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=o("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[r,e.viewState]]),p(" Active filter chips "),N(o("div",ZV,[(l(!0),d(X,null,re(e.filters?.status,(n,i,a)=>N((l(),d("span",xV,[b(c(e.fmt?.title(i))+" ",1),o("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:u=>{e.filters.status[i]=!0}}," \xD7 ",8,e5)],512)),[[W,!n]])),256))],512),[[W,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),p(" Pull request list "),o("ul",t5,[(l(!0),d(X,null,re(e.filteredPullRequests,(n,i)=>(l(),d("li",{class:A(["repo-list-item",{"repo-inactive":n?.status=="expired"||n?.status=="removed"||n?.status=="error"}])},[o("div",o5,[o("div",s5,[o("div",n5,[o("a",{class:"repo-name",textContent:c(n?.pullRequestId),href:e.safeUrl("/pr/"+n?.pullRequestId)},null,8,r5),o("span",{class:A(["status-badge",{"status-removed":n?.status=="removed"||n?.status=="expired"||n?.status=="removing"||n?.status=="expiring","status-preparing":n?.status=="preparing"||n?.status=="download","status-ready":n?.status=="ready","status-error":n?.status=="error"}])},[o("span",{textContent:c(e.fmt?.title(n?.status))},null,8,i5),n?.status=="error"?(l(),d("span",{key:0,textContent:c(": "+n?.statusMessage)},null,8,a5)):p("v-if",!0)],2)]),o("div",l5,[o("span",null,[t[13]||(t[13]=o("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),o("a",{href:e.safeUrl("https://github.com/"+n?.source?.repositoryFullName+"/pull/"+n?.source?.pullRequestId)},c(n?.source?.repositoryFullName)+"#"+c(n?.source?.pullRequestId),9,d5)]),o("span",{class:A(["status-badge",{"status-ready":n?.merged,"status-removed":n?.state=="open","status-error":n?.state=="closed"&&!n?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(n?.merged?"merged":n?.state)),3),o("span",u5,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)])]),o("div",c5,[n?.conference?(l(),d("span",p5,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(n?.conference),1)])):p("v-if",!0),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+n?.options?.terms?.join(", ")},[t[15]||(t[15]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),b(" "+c(e.fmt?.number(n?.options?.terms?.length)),1)],8,f5),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(n?.pageView)},[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),b(" "+c(e.fmt?.number(n?.pageView)),1)],8,m5),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(n?.lastView)},[t[17]||(t[17]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-calendar"})],-1)),b(" "+c(e.fmt?.humanTime(n?.lastView)),1)],8,h5),n?.options?.expirationMode!="never"&&n?.status=="ready"?(l(),d("span",v5,[t[18]||(t[18]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" Expire: "+c(e.fmt?.humanTime(n?.options?.expirationDate)),1)])):p("v-if",!0)])]),o("div",g5,[o("div",y5,[t[24]||(t[24]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),o("div",b5,[o("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+n?.pullRequestId)},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,w5),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updatePullRequest(n),["prevent"])},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update ",-1)])],8,k5),[[W,n?.status=="ready"||n?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updatePullRequest(n),["prevent"])},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable ",-1)])],8,E5),[[W,n?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.removePullRequest(n),["prevent"])},[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove ",-1)])],8,C5),[[W,n?.status=="ready"]]),o("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+n?.pullRequestId+"/")},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View PR ",-1)])],8,_5)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",S5,[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No pull requests to display.",-1)])])):p("v-if",!0)])])])}var N5={class:"container paper-page paper-settings"},D5={class:"paper-settings-body"},R5={class:"paper-settings-toc"},T5={class:"paper-settings-main"},A5={id:"settings-quota",class:"paper-settings-section"},O5={key:1,class:"quota-row","aria-hidden":"true"},I5={class:"quota-item"},P5={id:"settings-terms",class:"paper-settings-section"},V5={class:"form-group"},q5={class:"form-control",id:"terms",name:"terms",rows:"4",placeholder:`Jane Smith
+ label names the service and the tooltip says who to contact. `),t[17]||(t[17]=o("li",{class:"nav-item d-none d-lg-block"},[o("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"},[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-bug"})]),b("Report a bug ")])],-1)),e.isDarkMode?p("v-if",!0):(l(),d("li",O3,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=de(n=>{e.darkMode(!0)},["prevent"]))},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(l(),d("li",I3,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=de(n=>{e.darkMode(!1)},["prevent"]))},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-sun"})],-1)])])])):p("v-if",!0),!e.user&&!e.isReviewerRoute?(l(),d("li",P3,[...t[15]||(t[15]=[o("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[o("i",{class:"fab fa-github mr-1"}),b(" Sign in ")],-1)])])):p("v-if",!0),e.user?(l(),d("li",V3,[o("a",q3,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,M3)):p("v-if",!0),o("span",$3,c(e.user?.username),1)]),o("div",L3,[o("h6",U3,"Signed in as @"+c(e.user?.username),1),t[16]||(t[16]=pe('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource codeSupport the projectSign out',9))])])):p("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,F3)):p("v-if",!0),e.emailPromptOpen?(l(),d("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[6]||(t[6]=de(n=>e.respondToEmailPrompt("later"),["prevent"]))},[o("form",{onSubmit:t[5]||(t[5]=de(n=>e.respondToEmailPrompt("save"),["prevent"]))},[t[19]||(t[19]=o("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[20]||(t[20]=o("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[21]||(t[21]=o("label",{for:"email-prompt-address"},"Email address",-1)),D(o("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[2]||(t[2]=n=>e.emailPromptAddress=n),disabled:e.emailPromptBusy},null,8,z3),[[to,e.emailPromptAddress]]),e.emailPromptError?(l(),d("p",H3,c(e.emailPromptError),1)):p("v-if",!0),o("div",B3,[o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[3]||(t[3]=n=>e.respondToEmailPrompt("later"))},"Remind me later",8,j3),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[4]||(t[4]=n=>e.respondToEmailPrompt("never"))},"Never",8,G3),o("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},c(e.emailPromptBusy?"Saving\u2026":"Save"),9,W3)])],32)],32)):p("v-if",!0)],64)}var K3={class:"paper-landing"},Y3={class:"paper-hero"},J3={class:"paper-hero-copy"},Q3={class:"paper-cta-row"},X3={key:0,href:"/signin",target:"_self",class:"btn-hero"},Z3={key:1,href:"/anonymize",class:"btn-hero"},x3={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},eP={class:"paper-stats-grid"},tP={class:"paper-stat-value"},oP={class:"paper-stat-label"},nP=["viewBox"],sP=["x","y","width","height"],rP={key:1,class:"paper-stat-delta"},iP={class:"paper-features paper-wrap","aria-label":"Product features"},aP={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},lP=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],dP={class:"paper-eyebrow"},uP={class:"paper-feature-title"},cP={class:"paper-feature-more"},pP={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},fP=["href","target"],mP={class:"paper-features-stage"},hP=["id","aria-labelledby"],vP={class:"paper-frame"},yP={class:"paper-frame-bar","aria-hidden":"true"},gP={class:"url"},bP=["src","alt"],wP={class:"paper-footer"},kP={class:"paper-footer-inner"},EP={class:"paper-footer-col"},CP={key:0,href:"/dashboard"},_P={key:1,href:"/conferences"},SP={class:"paper-footer-foot"};function Ul(e,t){return l(),d("div",K3,[p(" Hero: copy on the left, the product on the right "),o("section",Y3,[o("div",J3,[t[2]||(t[2]=o("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=o("h1",{class:"hero-title"},[b(" Share the code,"),o("br"),o("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=o("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)),o("div",Q3,[e.user?p("v-if",!0):(l(),d("a",X3,[...t[0]||(t[0]=[o("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),b("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",Z3," Anonymize a repository \u2192 ")):p("v-if",!0),t[1]||(t[1]=o("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[5]||(t[5]=o("ul",{class:"paper-reassure"},[o("li",null,"Free and open source"),o("li",null,"Read-only: never writes to your repos"),o("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=pe('
anonymous.4open.science/anonymize
',1))]),p(" Proof "),t[16]||(t[16]=pe('
Trusted by authors at
ICSE\xB7FSE\xB7OOPSLA
',1)),p(" Live stats "),o("section",x3,[t[7]||(t[7]=o("div",{class:"paper-stats-meta"},[o("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),o("div",{class:"paper-stats-meta-right"},[o("span",{class:"paper-stats-dot","aria-hidden":"true"}),b(" updated daily ")])],-1)),o("div",eP,[(l(!0),d(X,null,ae(e.cards,(n,r)=>(l(),d("div",{class:"paper-stat-card",key:n?.key},[o("div",tP,c(e.fmt?.bigNum(n?.total)),1),o("div",oP,c(n?.label),1),e.history[n?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[n?.key].viewW+" 36"},[(l(!0),d(X,null,ae(e.history[n?.key].bars,(s,i)=>(l(),d("rect",{key:i,class:A({"is-latest":i===e.history[n.key].bars.length-1}),x:s?.x,y:s?.y,width:s?.w,height:s?.h},null,10,sP))),128))],8,nP)):p("v-if",!0),e.history[n?.key].bars?.length>1?(l(),d("div",rP," +"+c(e.fmt?.number(e.history[n?.key].deltaToday))+" today ",1)):p("v-if",!0)]))),128))])]),p(" Before / after "),t[17]||(t[17]=o("section",{class:"paper-section-head paper-wrap"},[o("div",null,[o("div",{class:"paper-eyebrow"},"Before \xB7 after"),o("h2",null,[b("The same repository, "),o("em",null,"minus you.")])]),o("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),t[18]||(t[18]=o("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"Before \xB7 your repo"),o("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,"Developed by Jane Smith at MIT CSAIL."),o("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),o("div",null,"Contact: jane.smith@mit.edu")])]),o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"After \xB7 anonymous mirror"),o("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,[b("Developed by "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" at "),o("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),b(".")]),o("div",null,[b("See "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),o("div",null,[b("Contact: "),o("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),p(" What you get: one screenshot, three tabs "),t[19]||(t[19]=o("section",{class:"paper-section-head paper-wrap",id:"about"},[o("div",null,[o("div",{class:"paper-eyebrow"},"What you get"),o("h2",null,[b("Anonymize, review, "),o("em",null,"manage.")])]),o("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)),o("section",iP,[o("div",aP,[(l(!0),d(X,null,ae(e.features,(n,r)=>(l(),d("div",{class:A(["paper-feature",{"is-on":e.feature===n?.key}]),key:n?.key},[o("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:s=>e.selectFeature(n.key),onKeydown:s=>e.featureKeydown(s,r),id:"feature-tab-"+n?.key,"aria-controls":"feature-panel-"+n?.key,"aria-selected":e.feature===n?.key,tabindex:e.feature===n?.key?0:-1},[o("span",dP,c(n?.num)+" \xB7 "+c(n?.eyebrow),1),o("span",uP,[b(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)])],40,lP),o("div",cP,[o("span",pP,[b(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)]),o("p",null,c(n?.text),1),o("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(n)),target:e.featureTarget(n)},c(n?.cta)+" \u2192",9,fP)])],2))),128))]),o("div",mP,[(l(!0),d(X,null,ae(e.features,(n,r)=>D((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:n?.key,id:"feature-panel-"+n?.key,"aria-labelledby":"feature-tab-"+n?.key},[o("div",vP,[o("div",yP,[t[8]||(t[8]=o("span",{class:"dots"},[o("i"),o("i"),o("i")],-1)),o("span",gP,c(n?.url),1)]),o("div",{class:A("paper-crop paper-crop-"+n?.key)},[o("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(n?.img),alt:n?.alt},null,8,bP)],2)])],8,hP)),[[K,e.feature===n?.key]])),128))])]),p(" FAQ teaser "),t[20]||(t[20]=pe('
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.
',1)),o("footer",wP,[o("div",kP,[t[12]||(t[12]=o("div",{class:"paper-footer-brand"},[o("div",{class:"paper-footer-mark"},[b("Anonymous "),o("em",null,"GitHub")]),o("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),o("div",EP,[t[9]||(t[9]=o("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=o("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",CP,"My work")):p("v-if",!0),e.user?(l(),d("a",_P,"Conferences")):p("v-if",!0),t[11]||(t[11]=o("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=pe('',2))]),t[15]||(t[15]=o("div",{class:"paper-footer-rule"},null,-1)),o("div",SP,[o("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[14]||(t[14]=o("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var NP={class:"paper-empty"},DP={class:"paper-empty-inner"},RP={key:0,class:"paper-eyebrow"},TP={key:1,class:"paper-eyebrow"},AP={key:2,class:"paper-empty-title"},OP=["textContent"];function Fl(e,t){return l(),d("div",NP,[o("div",DP,[e.error?p("v-if",!0):(l(),d("div",RP,"Working")),e.error?(l(),d("div",TP,"Error")):p("v-if",!0),e.error?p("v-if",!0):(l(),d("h1",AP,[...t[0]||(t[0]=[b(" Loading",-1),o("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,OP)):p("v-if",!0)])])}var IP={class:"container paper-page paper-settings"},PP={class:"paper-crumbs"},VP={class:"here"},qP={class:"paper-page-title"},MP={class:"paper-settings-body"},$P={class:"paper-settings-toc"},LP={href:"#conf-billing"},UP={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},FP={id:"conf-basics",class:"paper-settings-section"},zP={class:"form-group"},HP={class:"invalid-feedback"},BP={class:"invalid-feedback"},jP={class:"form-group"},GP={class:"invalid-feedback"},WP={class:"form-group"},KP={class:"invalid-feedback"},YP={class:"invalid-feedback"},JP={id:"conf-window",class:"paper-settings-section"},QP={class:"form-grid-2"},XP={class:"form-group"},ZP={class:"invalid-feedback"},xP={class:"invalid-feedback"},eV={class:"form-group"},tV={class:"invalid-feedback"},oV={class:"invalid-feedback"},nV={id:"conf-rendering",class:"paper-settings-section"},sV={class:"form-check"},rV={class:"form-check-input",type:"checkbox",id:"link",name:"link"},iV={class:"form-check"},aV={class:"form-check-input",type:"checkbox",id:"image",name:"image"},lV={class:"form-check"},dV={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},uV={class:"form-check"},cV={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},pV={id:"conf-features",class:"paper-settings-section"},fV={class:"form-check"},mV={class:"form-check-input",type:"checkbox",id:"update",name:"update"},hV={class:"form-check"},vV={class:"form-check-input",type:"checkbox",id:"page",name:"page"},yV={id:"conf-plan",class:"paper-settings-section"},gV={class:"paper-plan-grid"},bV=["value"],wV=["textContent"],kV={class:"paper-plan-price"},EV=["innerHTML"],CV={key:0,id:"conf-billing",class:"paper-settings-section"},_V={class:"form-group"},SV={class:"form-group"},NV={class:"form-group"},DV={class:"form-group"},RV={class:"form-grid-3"},TV={class:"form-group"},AV={class:"form-group"},OV={class:"form-group"},IV={class:"form-group"},PV={class:"paper-settings-footer"},VV=["textContent"],qV=["textContent"],MV=["disabled"];function zl(e,t){let n=be("paper-scrollspy"),r=be("field"),s=be("form");return l(),d("div",IP,[o("div",PP,[t[1]||(t[1]=o("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=b(" \xA0/\xA0 ",-1)),t[3]||(t[3]=o("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=b(" \xA0/\xA0 ",-1)),o("span",VP,c(e.editionMode?"Edit":"New"),1)]),o("h1",qP,[b(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=o("em",null,"conference",-1))]),t[43]||(t[43]=o("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),o("div",MP,[D((l(),d("aside",$P,[t[7]||(t[7]=o("div",{class:"paper-settings-toc-head"},"On this page",-1)),o("nav",null,[t[6]||(t[6]=pe('BasicsReview windowRendering defaultsFeaturesPlan',5)),D(o("a",LP,"Billing",512),[[K,e.plan?.pricePerRepo>0]])])])),[[n]]),D((l(),d("form",UP,[o("section",FP,[t[12]||(t[12]=o("div",{class:"paper-section-eyebrow"},"Basics",-1)),o("div",zP,[t[8]||(t[8]=o("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),D(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),D(o("div",HP," The name of the conference is invalid. ",512),[[K,e.conference?.name?.errors?.invalid]]),D(o("div",BP," The name of the conference is required. ",512),[[K,e.conference?.name?.errors?.required]])]),o("div",jP,[t[9]||(t[9]=o("label",{class:"paper-field-label",for:"url"},"Website",-1)),D(o("input",{type:"url",class:A(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),D(o("div",GP," The url of the conference is invalid. ",512),[[K,e.conference?.url?.errors?.url]])]),o("div",WP,[t[10]||(t[10]=o("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),D(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},[b("3\u201310 characters, letters, numbers, "),o("code",null,"-"),b(" and "),o("code",null,"_"),b(". Authors reference this when they anonymize.")],-1)),D(o("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[K,e.conference?.conferenceID?.errors?.used]]),D(o("div",KP," The conference ID is required. ",512),[[K,e.conference?.conferenceID?.errors?.required]]),D(o("div",YP," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[K,e.conference?.conferenceID?.errors?.pattern]])])]),o("section",JP,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Review window",-1)),o("div",QP,[o("div",XP,[t[13]||(t[13]=o("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),D(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),D(o("div",ZP," Start date is required. ",512),[[K,e.conference?.startDate?.errors?.required]]),D(o("div",xP," Start date must be before end date. ",512),[[K,e.conference?.startDate?.errors?.invalid]])]),o("div",eV,[t[15]||(t[15]=o("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),D(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),D(o("div",tV," End date is required. ",512),[[K,e.conference?.endDate?.errors?.required]]),D(o("div",oV," End date is invalid. ",512),[[K,e.conference?.endDate?.errors?.invalid]])])])]),o("section",nV,[t[26]||(t[26]=o("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),o("div",sV,[D(o("input",rV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=o("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),o("div",iV,[D(o("input",aV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=o("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),o("div",lV,[D(o("input",dV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=o("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),o("div",uV,[D(o("input",cV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),o("section",pV,[t[31]||(t[31]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",fV,[D(o("input",mV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=o("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),o("div",hV,[D(o("input",vV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),o("section",yV,[t[33]||(t[33]=o("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[34]||(t[34]=o("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),o("div",gV,[(l(!0),d(X,null,ae(e.plans,(i,a)=>(l(),d("label",{class:A(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[D(o("input",{type:"radio",name:"planPicker",value:i?.id},null,8,bV),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),o("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,wV),o("div",kV,[b(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[32]||(t[32]=o("span",{class:"paper-plan-per"},"/ repo / month",-1))]),o("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,EV)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",CV,[t[42]||(t[42]=o("div",{class:"paper-section-eyebrow"},"Billing",-1)),o("div",_V,[t[35]||(t[35]=o("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),D(o("input",{type:"text",class:A(["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:{}}]])]),o("div",SV,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"email"},"Email",-1)),D(o("input",{type:"email",class:A(["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:{}}]])]),o("div",NV,[t[37]||(t[37]=o("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),D(o("input",{type:"text",class:A(["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:{}}]])]),o("div",DV,[D(o("input",{type:"text",class:A(["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:{}}]])]),o("div",RV,[o("div",TV,[t[38]||(t[38]=o("label",{class:"paper-field-label",for:"city"},"City",-1)),D(o("input",{type:"text",class:A(["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:{}}]])]),o("div",AV,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"country"},"Country",-1)),D(o("input",{type:"text",class:A(["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:{}}]])]),o("div",OV,[t[40]||(t[40]=o("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),D(o("input",{type:"text",class:A(["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:{}}]])])]),o("div",IV,[t[41]||(t[41]=o("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),D(o("input",{type:"text",class:A(["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:{}}]])])])):p("v-if",!0),o("div",PV,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,VV)):p("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,qV)):p("v-if",!0),o("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=de(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,MV)])])),[[s,e.viewState]])])])}var $V={key:0},LV=["innerHTML"],UV={key:3},FV=["src"],zV=["src"],HV={key:7},BV={controls:"controls"},jV=["src"],GV={key:8},WV={key:9,class:"file-error container d-flex h-100"},KV={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},YV={class:"paper-error-msg"},JV={key:10,class:"file-error container d-flex h-100"},QV={class:"paper-error-card file-error-card m-auto",role:"alert"},XV=["textContent"],ZV={key:11,class:"file-error container d-flex h-100"},xV={key:12,class:"file-error container d-flex h-100"},e5={key:13,class:"file-error container d-flex h-100"},t5={key:14,class:"file-error container d-flex h-100"},o5={class:"paper-empty-title m-auto"},n5=["href"];function Hl(e,t){let n=We("html-doc"),r=We("pdfviewer"),s=We("notebook"),i=be("code-editor");return l(),d(X,null,[e.type=="text"?D((l(),d("div",$V,null,512)),[[i,{content:e.content,options:e.aceOption}]]):p("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.highlightRedactions(e.sanitize(e.content))},null,8,LV)):p("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),Lt(n,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):p("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?D((l(),d("div",UV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):p("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,FV)):p("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,zV)):p("v-if",!0),e.type=="pdf"?(l(),Lt(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):p("v-if",!0),e.type=="audio"?(l(),d("div",HV,[o("audio",BV,[o("source",{src:e.safeUrl(e.url)},null,8,jV)])])):p("v-if",!0),e.type=="IPython"?(l(),d("div",GV,[Ce(s,{file:e.url,content:e.content},null,8,["file","content"])])):p("v-if",!0),e.type=="rate_limited"?(l(),d("div",WV,[o("div",KV,[t[2]||(t[2]=pe('
Temporarily paused
GitHub API rate limit reached
',1)),o("p",YV,[t[0]||(t[0]=b("This repository will be available in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[1]||(t[1]=b(". The page will reload automatically.",-1))])])])):p("v-if",!0),e.type=="error"?(l(),d("div",JV,[o("div",QV,[t[3]||(t[3]=o("div",{class:"paper-error-eyebrow"},"Unavailable",-1)),t[4]||(t[4]=o("div",{class:"paper-error-title"},"This content can\u2019t be shown",-1)),o("p",{class:"file-error-msg",textContent:c(e.fmt.translate("ERRORS."+e.content))},null,8,XV),t[5]||(t[5]=o("div",{class:"file-error-actions"},[o("a",{href:"/",class:"btn btn-sm"},"Back to home"),o("a",{href:"/faq",class:"btn btn-sm"},"Read the FAQ")],-1))])])):p("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",ZV,[...t[6]||(t[6]=[o("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):p("v-if",!0),e.type=="empty"?(l(),d("div",xV,[...t[7]||(t[7]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"repository"),b(".")],-1)])])):p("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",e5,[...t[8]||(t[8]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"file"),b(".")],-1)])])):p("v-if",!0),e.type=="binary"?(l(),d("div",t5,[o("h1",o5,[t[9]||(t[9]=b("Unsupported ",-1)),t[10]||(t[10]=o("em",null,"binary file",-1)),t[11]||(t[11]=b(". You can ",-1)),o("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,n5),t[12]||(t[12]=b(".",-1))])])):p("v-if",!0)],64)}var s5={class:"container page dashboard-page paper-page"},r5={class:"row"},i5={class:"w-100"},a5={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},l5={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},d5={class:"flex-grow-1"},u5={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},c5={class:"d-flex flex-wrap",style:{gap:"6px"}},p5={class:"dropdown"},f5={class:"dropdown-menu","aria-labelledby":"dropdownSort"},m5={class:"form-check dropdown-item"},h5={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},v5={class:"form-check dropdown-item"},y5={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},g5={class:"form-check dropdown-item"},b5={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},w5={class:"form-check dropdown-item"},k5={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},E5={class:"form-check dropdown-item"},C5={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},_5={class:"dropdown"},S5={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},N5={class:"form-check dropdown-item"},D5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},R5={class:"form-check dropdown-item"},T5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},A5={class:"form-check dropdown-item"},O5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},I5={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},P5={class:"filter-chip"},V5=["onClick"],q5={class:"repo-list w-100"},M5={class:"repo-list-item-content"},$5={class:"repo-list-item-main"},L5={class:"repo-list-item-header"},U5=["textContent","href"],F5=["textContent"],z5=["textContent"],H5={class:"repo-source"},B5=["href"],j5={class:"repo-date"},G5={class:"repo-meta"},W5={key:0,title:"Conference"},K5=["title"],Y5=["title"],J5=["title"],Q5={key:1},X5={class:"repo-list-item-actions"},Z5={class:"dropdown"},x5={class:"dropdown-menu dropdown-menu-right"},eq=["href"],tq=["onClick"],oq=["onClick"],nq=["onClick"],sq=["href"],rq={key:0,class:"repo-list-empty"};function Bl(e,t){let n=be("field"),r=be("form");return l(),d("div",s5,[o("div",r5,[o("div",i5,[t[12]||(t[12]=pe('
My work \xA0/\xA0 Pull requests
Anonymized pull requests
Track PR mirrors you\u2019ve created and their reviewer traffic.
',2)])])),[[r]]),o("div",T5,[p(" Account usage shares the dashboard component. "),o("section",A5,[t[6]||(t[6]=o("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[7]||(t[7]=o("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),Mt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):p("v-if",!0),e.quota?p("v-if",!0):(l(),d("div",O5,[(l(),d(X,null,re([1,2,3],(a,u)=>o("div",I5,[...t[5]||(t[5]=[o("div",{class:"quota-header"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),o("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),o("div",{class:"quota-track"},null,-1)])])),64))]))]),N((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[2]||(t[2]=me(a=>e.submitForm(a,()=>{e.saveDefault(a)}),["prevent"]))},[o("section",P5,[t[13]||(t[13]=o("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[14]||(t[14]=o("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),o("div",V5,[t[12]||(t[12]=o("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),N(o("textarea",q5,null,512),[[n,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),o("small",M5,[t[8]||(t[8]=b(" One term per line (regex allowed). Each match is replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[9]||(t[9]=b(", or use ",-1)),t[10]||(t[10]=o("code",null,"term=>replacement",-1)),t[11]||(t[11]=b(" to pick your own. ",-1))]),N(o("div",$5," Terms are in an invalid format ",512),[[W,e.defaultsForm?.terms?.errors?.format]])])]),o("section",L5,[t[23]||(t[23]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),t[24]||(t[24]=o("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),o("div",U5,[o("div",F5,[N(o("input",z5,null,512),[[n,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),o("div",H5,[N(o("input",B5,null,512),[[n,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[17]||(t[17]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[18]||(t[18]=o("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),o("div",j5,[N(o("input",G5,null,512),[[n,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[20]||(t[20]=o("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),o("div",W5,[N(o("input",K5,null,512),[[n,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[22]||(t[22]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),o("section",Y5,[t[33]||(t[33]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",J5,[o("div",Q5,[N(o("input",X5,null,512),[[n,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[26]||(t[26]=o("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),o("div",Z5,[N(o("input",x5,null,512),[[n,{state:e.viewState,set:a=>{e.options.loc=a},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=o("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[28]||(t[28]=o("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),o("div",eq,[N(o("input",tq,null,512),[[n,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),o("div",oq,[t[32]||(t[32]=o("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),N((l(),d("select",sq,[...t[31]||(t[31]=[o("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),o("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.mode=a},value:e.options?.mode,form:"defaultsForm",options:{}}]]),o("small",nq," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),o("section",rq,[t[37]||(t[37]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",iq,[t[35]||(t[35]=o("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),N((l(),d("select",aq,[...t[34]||(t[34]=[o("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),o("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=o("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),e.draftRestored?(l(),d("div",lq,[t[38]||(t[38]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[0]||(t[0]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",dq,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[1]||(t[1]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):p("v-if",!0),o("div",uq,[e.error?(l(),d("div",cq,[t[39]||(t[39]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[40]||(t[40]=b()),o("span",{textContent:c(e.error)},null,8,pq)])):p("v-if",!0),o("div",fq,[o("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("svg",hq,[...t[41]||(t[41]=[o("use",{href:"#ui-icon-check"},null,-1)])])):p("v-if",!0),b(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,mq),t[42]||(t[42]=o("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[i,e.viewState]]),o("section",vq,[t[50]||(t[50]=o("div",{class:"paper-section-eyebrow"},"Account",-1)),o("div",gq,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,yq)):p("v-if",!0),o("div",bq,[o("div",wq,"@"+c(e.user?.username),1),t[43]||(t[43]=o("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[44]||(t[44]=o("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),t[51]||(t[51]=o("a",{class:"paper-settings-connection-link",href:"/connections"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",null,[b("GitHub connections"),o("small",null,"Manage repository access and legacy OAuth.")]),o("span",{"aria-hidden":"true"},"\u2192")],-1)),o("div",kq,[t[48]||(t[48]=o("div",{class:"paper-danger-head"},"Delete account",-1)),t[49]||(t[49]=o("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",Eq,[t[45]||(t[45]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[46]||(t[46]=b()),o("span",{textContent:c(e.deleteError)},null,8,Cq)])):p("v-if",!0),o("button",{type:"button",class:"btn btn-outline-danger",onClick:t[3]||(t[3]=a=>e.deleteAccount()),disabled:e.deletingAccount},[t[47]||(t[47]=o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)),b(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,_q)])])])])])}var Sq={class:"pr-page"},Nq={class:"container paper-page pr-page-inner"},Dq={class:"pr-header"},Rq={class:"pr-title-row"},Tq={class:"paper-page-title pr-title"},Aq=["textContent"],Oq={key:1,class:"text-muted"},Iq=["href"],Pq={class:"pr-header-meta"},Vq={key:0,class:"pr-meta-item"},qq=["textContent"],Mq={key:1,class:"pr-meta-item"},$q=["textContent"],Lq={key:2,class:"pr-meta-item"},Uq=["textContent"],Fq={key:0,class:"pr-body-card"},zq={key:1,class:"paper-tabs",role:"tablist"},Hq=["aria-selected","tabindex"],Bq=["aria-selected","tabindex"],jq=["textContent"],Gq={class:"paper-tab-content"},Wq={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},Kq=["innerHTML"],Yq={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},Jq={class:"pr-comments"},Qq={class:"pr-comment"},Xq={class:"pr-comment-head"},Zq={key:0,class:"pr-comment-author"},xq=["textContent"],eM=["textContent"],tM={key:0,class:"pr-comment-body"},oM={key:0,class:"paper-table-empty"};function Ll(e,t){let s=We("markdown");return l(),d("div",Sq,[o("div",Nq,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Pull request")],-1)),o("header",Dq,[o("div",Rq,[o("h1",Tq,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,Aq)):p("v-if",!0),e.details?.title?p("v-if",!0):(l(),d("span",Oq,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,Iq)):p("v-if",!0)]),o("div",Pq,[o("span",{class:A(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[o("span",{class:A(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),b(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",Vq,[t[5]||(t[5]=o("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=b()),o("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,qq)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",Mq,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,$q)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",Lq,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,Uq)])):p("v-if",!0)])]),e.details?.body?(l(),d("section",Fq,[t[11]||(t[11]=o("div",{class:"paper-section-eyebrow"},"Description",-1)),Ce(s,{content:e.details?.body},null,8,["content"])])):p("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",zq,[e.details?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=r=>e.previewTabKeydown(r)),onClick:t[1]||(t[1]=r=>e.tabState.active="diff")},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,Hq)):p("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=r=>e.previewTabKeydown(r)),onClick:t[3]||(t[3]=r=>e.tabState.active="comments")},[t[13]||(t[13]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,jq)],42,Bq)):p("v-if",!0)])):p("v-if",!0),o("div",Gq,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",Wq,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,Kq)])):p("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",Yq,[o("ul",Jq,[(l(!0),d(X,null,re(e.details?.comments,(r,n)=>(l(),d("li",Qq,[o("div",Xq,[r?.author?(l(),d("span",Zq,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(r?.author)},null,8,xq)])):p("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,eM)):p("v-if",!0)]),r?.body?(l(),d("div",tM,[Ce(s,{content:r?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",oM,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this pull request.",-1)])]))])])):p("v-if",!0)])])])}var sM={class:"container paper-page status-page"},nM={class:"d-flex align-items-center justify-content-between flex-wrap",style:{gap:"12px"}},rM={class:"paper-page-title"},iM=["textContent"],aM={key:1},lM={class:"paper-settings-section"},dM=["textContent"],uM={key:0,class:"paper-section-copy"},cM={key:1,class:"paper-ratelimit-card",role:"status"},pM={class:"paper-error-msg"},fM=["aria-valuenow"],mM={class:"paper-progress-label"},hM=["textContent"],vM={key:0},gM=["textContent"],yM={class:"paper-progress-pct"},bM={key:3,class:"paper-error-card",role:"alert"},wM={key:0,class:"paper-error-msg"},kM={key:1,class:"paper-error-msg"},EM={class:"paper-error-actions"},CM=["href"],_M={key:4,class:"share-link"},SM={class:"share-link-row"},NM=["value"],DM={class:"ui-icon","aria-hidden":"true"},RM=["href"],TM=["textContent"],AM={class:"share-link-actions"},OM=["href"],IM=["href"];function Ul(e,t){return l(),d("div",sM,[t[16]||(t[16]=o("div",{class:"paper-crumbs"},[b("Anonymization \xA0/\xA0 "),o("span",{class:"here"},"Status")],-1)),o("div",nM,[o("div",null,[o("h1",rM,[t[2]||(t[2]=b("Status of ",-1)),o("em",null,c(e.repoId),1)]),t[3]||(t[3]=o("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),o("span",{class:A(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[o("span",{class:A(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?p("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,iM)),e.rateLimitResetAt?(l(),d("span",aM,"Rate limited")):p("v-if",!0)],2)]),o("section",lM,[o("div",{class:"paper-section-eyebrow",textContent:c(e.repo?.status=="ready"?"Your anonymous link":"Progress")},null,8,dM),e.repo?.status!="ready"?(l(),d("p",uM,[...t[4]||(t[4]=[b(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),o("a",{href:"/faq"},"FAQ",-1),b(" for more information. ",-1)])])):p("v-if",!0),e.rateLimitResetAt?(l(),d("div",cM,[t[7]||(t[7]=ce('
Temporarily paused
GitHub API rate limit reached
',1)),o("p",pM,[t[5]||(t[5]=b("Anonymization will resume automatically in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[6]||(t[6]=b(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):p("v-if",!0),e.repo?.status!="error"&&e.repo?.status!="ready"&&!e.rateLimitResetAt?(l(),d("div",{key:2,class:A(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[o("div",{class:"paper-progress-bar",style:qe("width: "+e.progress+"%;")},null,4),o("div",mM,[o("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,hM),e.repo?.statusMessage?(l(),d("span",vM,[t[8]||(t[8]=b("\xA0\xB7\xA0",-1)),o("span",{textContent:c(e.repo?.statusMessage)},null,8,gM)])):p("v-if",!0),o("span",yM,c(e.progress||0)+"%",1)])],10,fM)):p("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",bM,[t[11]||(t[11]=ce('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(l(),d("p",wM,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):p("v-if",!0),e.repo?.statusMessage?p("v-if",!0):(l(),d("p",kM,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[12]||(t[12]=o("ul",{class:"paper-error-hints"},[o("li",null,"Make sure the source URL points to a repository or pull request you can access."),o("li",null,"Check that the chosen branch and commit still exist on GitHub."),o("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),o("div",EM,[o("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[9]||(t[9]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit anonymization",-1)])],8,CM),t[10]||(t[10]=ce(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):p("v-if",!0),e.repo?.status=="ready"?(l(),d("div",_M,[t[15]||(t[15]=o("p",{class:"paper-section-copy"},"Reviewers can browse the repository at this address without seeing who you are.",-1)),o("div",SM,[o("input",{id:"share-url",class:"form-control share-link-input",readonly:"","aria-label":"Anonymous link",value:e.shareUrl,onFocus:t[0]||(t[0]=s=>s.target.select())},null,40,NM),o("button",{type:"button",class:"btn btn-ink",onClick:t[1]||(t[1]=s=>e.copyShareUrl())},[(l(),d("svg",DM,[o("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,RM)])),o("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,TM)])]),o("div",AM,[o("a",{class:"btn",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" Open repository ",-1)])],8,OM),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" Open GitHub page ",-1)])],8,IM)):p("v-if",!0)])])):p("v-if",!0)]),t[17]||(t[17]=ce('
Support Anonymous GitHub
A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee.
")}return function(r){if(!r)return r;let n=[],i=null,a=0,u=0,f=()=>(i||(i={oldPath:"",newPath:"",lines:[]}),i),v=()=>{i&&(i.lines.length||i.oldPath||i.newPath)&&(s(n,i),i=null)},h=r.split(`
-`);for(let k=0;ke});function zM(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function HM(e){return String(e??"").toUpperCase()}function BM(e,t,s=0){return(e||[]).slice(s,s+t)}function jM(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function GM(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((r,n)=>{for(let i of s){let a=i[0]==="-"?-1:1;i=i.replace(/^[+-]/,"");let u=i.split(".").reduce((v,h)=>v?.[h],r),f=i.split(".").reduce((v,h)=>v?.[h],n);if(typeof u=="string"&&(u=u.toLowerCase()),typeof f=="string"&&(f=f.toLowerCase()),u!==f)return(u==null?-1:f==null?1:ur[n])}function KM(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var ar={ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"Unknown error, contact the admin.",unreachable:"Anonymous GitHub is unreachable, contact the admin.",request_error:"Unable to download the file, check your connection or contact the admin.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"The repository was not found on GitHub. Check the URL and spelling, make sure you are signed in to the account that can see it, and confirm the repo isn't hidden under an org that restricts third-party app access.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",invalid_project_name:"Use a project name of up to 100 characters without line breaks or control characters.",no_file_selected:"Please select a file.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"Your GitHub access token has expired. Please log out and log in again to refresh it.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"Verify your existing account with your previous GitHub connection. Future sign-ins will use the GitHub App.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid."},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};var Gl={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=et(null);return qt(()=>{let r=[t.value][0];r.classList.add("html-doc");function n(){r.innerHTML="";let i=e.content;if(typeof i!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let u=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&u.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",u.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),r.appendChild(a);let f="";e.baseUrl&&(f=''),a.srcdoc=f+i}Be(()=>e.content,n,{immediate:!0}),Be(()=>e.baseUrl,n,{immediate:!0}),Be(()=>e.allowScripts,n,{immediate:!0})}),()=>ke("html-doc",{ref:t})}};var Wl={name:"pdfviewer",props:["src"],setup(e){let t=et(null);return qt(()=>{let s=[t.value],r=400,n=[.5,.75,1,1.25,1.5,2,3],i=1e3,a=s[0];a.classList.add("pdf-viewer");let u=null,f=[],v=!1,h=null,k=1,m=1,E=0,y=0,w=612/792,D=0,R=null,T=new Map,I=0;function H(M){let g=T.get(M);g&&(g.cancelled=!0,g.task?.cancel?.(),T.delete(M));let S=M.querySelector("canvas");S&&(S.width=0,S.height=0),M.innerHTML="",delete M.dataset.state}let q=document.createElement("div");q.className="pdf-toolbar";let U=document.createElement("div");U.className="pdf-pages",U.tabIndex=0,U.setAttribute("aria-label","PDF pages"),a.appendChild(q),a.appendChild(U);function ae(M,g,S){let V=document.createElement("button");return V.type="button",V.className="pdf-toolbar-btn",V.title=g,V.setAttribute("aria-label",g),V.innerHTML='',V.addEventListener("click",S),V}let ie=ae("fa-chevron-up","Previous page",function(){_e(m-1)}),_=ae("fa-chevron-down","Next page",function(){_e(m+1)}),O=document.createElement("input");O.type="text",O.className="pdf-toolbar-page",O.setAttribute("aria-label","Page number"),O.title="Page number \u2014 type a page and press Enter",O.addEventListener("keydown",function(M){M.key==="Enter"&&(_e(parseInt(O.value,10)),O.blur())}),O.addEventListener("blur",function(){O.value=String(m)});let Y=document.createElement("span");Y.className="pdf-toolbar-count";let Z=ae("fa-search-minus","Zoom out",function(){C(n[Math.max(0,pe()-1)])}),te=ae("fa-search-plus","Zoom in",function(){C(n[Math.min(n.length-1,pe()+1)])}),J=document.createElement("button");J.type="button",J.className="pdf-toolbar-btn pdf-toolbar-zoom",J.title="Reset zoom to fit the width",J.setAttribute("aria-label","Reset zoom to fit the width"),J.addEventListener("click",function(){C(1)}),q.appendChild(ie),q.appendChild(_);let se=document.createElement("span");se.className="pdf-toolbar-group",se.appendChild(O),se.appendChild(Y),q.appendChild(se);let ue=document.createElement("span");ue.className="pdf-toolbar-group pdf-toolbar-right",ue.appendChild(Z),ue.appendChild(J),ue.appendChild(te),q.appendChild(ue);function pe(){let M=0;for(let g=0;g=M,J.textContent=Math.round(k*100)+"%",Z.disabled=pe()===0,te.disabled=pe()===n.length-1}function Oe(M){let g=f[M-1];g&&(U.scrollTop+=g.getBoundingClientRect().top-U.getBoundingClientRect().top)}function _e(M){if(!u||isNaN(M))return;let g=Math.min(Math.max(1,M),u.numPages);f[g-1]&&(Oe(g),m=g,E=g,y=Date.now()+800,le(),Ee())}function Ue(){if(!f.length||Date.now(){}),R=null),h&&(clearTimeout(h),h=null),u&&(u.destroy(),u=null),f=[],m=1,U.innerHTML="",le()}function $e(){U.innerHTML="";let M=document.createElement("div");M.className="pdf-viewer-error",M.textContent="This PDF could not be displayed.",U.appendChild(M)}function Pe(){let M=Math.max(120,U.clientWidth-24);return Math.round(Math.min(M,i)*k)}function He(M,g,S){let V=window.devicePixelRatio||1,z=M.getViewport({scale:1}),j=parseFloat(g.style.width);if(!j)return;let L=M.getViewport({scale:j/z.width*V}),G=document.createElement("canvas");return G.width=Math.floor(L.width),G.height=Math.floor(L.height),G.style.width=j+"px",G.style.height=Math.floor(L.height/V)+"px",g.innerHTML="",g.appendChild(G),g.style.height=G.style.height,S.task=M.render({canvasContext:G.getContext("2d"),viewport:L}),S.task.promise}function Ee(){if(!u)return;let M=D,g=U.getBoundingClientRect(),S=g.top-r,V=g.top+U.clientHeight+r,z=f.map((L,G)=>({slot:L,i:G,rect:L.getBoundingClientRect()})).filter(L=>L.rect.top<=V&&L.rect.bottom>=S).sort((L,G)=>Math.abs(L.rect.top-g.top)-Math.abs(G.rect.top-g.top)).slice(0,6),j=new Set(z.map(L=>L.slot));for(let L of T.keys())j.has(L)||H(L);for(let{slot:L,i:G}of z){if(L.dataset.state||I>=2)continue;let ee={cancelled:!1,task:null};T.set(L,ee),I++,L.dataset.state="rendering";let x;u.getPage(G+1).then(K=>{if(x=K,!(ee.cancelled||M!==D))return He(x,L,ee)}).then(()=>{ee.cancelled||M!==D||(L.dataset.state="done",E&&Date.now(){!ee.cancelled&&M===D&&(L.dataset.state="failed")}).finally(()=>{I--,x?.cleanup?.(),u&&Ee()})}}function F(){v||(v=!0,window.requestAnimationFrame(function(){v=!1,Ue(),Ee()}))}function oe(){let M=!1;function g(){M||(M=!0,Ee())}window.requestAnimationFrame(g),window.setTimeout(g,50)}function Q(){D++,f.forEach(H);let M=Pe();f.forEach(function(g){delete g.dataset.state,g.innerHTML="",g.style.width=M+"px",g.style.height=Math.round(M/w)+"px"}),Ee()}function C(M){if(!u||!f.length||M===k)return;let g=m;k=M,le(),Q(),_e(g)}function P(){u&&(h&&clearTimeout(h),h=setTimeout(function(){h=null,u&&f.length&&Q()},250))}function B(M){if(Re(),!M)return;let g=D;R=pdfjsLib.getDocument({url:M,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),R.promise.then(function(S){if(g!==D){S.destroy();return}return u=S,u.getPage(1).then(function(V){if(g!==D)return;let z=V.getViewport({scale:1});z.width&&z.height&&(w=z.width/z.height);let j=Pe();for(let L=1;L<=u.numPages;L++){let G=document.createElement("div");G.className="pdf-viewer-page",G.style.width=j+"px",G.style.height=Math.round(j/w)+"px",U.appendChild(G),f.push(G)}le(),oe()})}).catch(function(){g===D&&$e()})}U.addEventListener("scroll",F,{passive:!0}),$(window).on("resize",P),le(),Be(()=>e.src,B,{immediate:!0}),ao(function(){U.removeEventListener("scroll",F),$(window).off("resize",P),Re()})}),()=>ke("pdfviewer",{ref:t})}};var JM={key:0,class:"quota-row quota-usage"},QM={class:"quota-header"},XM={class:"quota-label"},ZM={class:"project-type-svg","aria-hidden":"true"},xM=["href"],e8={key:0,class:"quota-percent"},t8={key:1,class:"quota-unlimited-tag"},o8={class:"quota-value"},s8={key:0},n8=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],r8={key:1,class:"quota-remaining"},i8={key:2,class:"quota-remaining quota-limit"};function Kl(e,t){return e.quota?(l(),d("div",JM,[(l(),d(X,null,re([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],s=>o("div",{class:A(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[o("div",QM,[o("span",XM,[(l(),d("svg",ZM,[o("use",{href:"#"+s.icon},null,8,xM)])),b(c(s.label),1)]),e.quota[s.key].unlimited?p("v-if",!0):(l(),d("span",e8,c(e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(l(),d("span",t8,"Unlimited")):p("v-if",!0)]),o("div",o8,[o("strong",null,c(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?p("v-if",!0):(l(),d("span",s8," / "+c(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?p("v-if",!0):(l(),d("div",{key:0,class:A(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?p("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:qe({width:e.quota[s.key].percent+"%"})},null,4))],10,n8)),!e.quota[s.key].unlimited&&e.quota[s.key].used=e.quota[s.key].total?(l(),d("p",i8,c(e.quota[s.key].used>e.quota[s.key].total?"Limit exceeded":"Limit reached"),1)):p("v-if",!0)],2)),64))])):p("v-if",!0)}var a8={props:["quota","fmt"],setup(e){return{formatAmount:(t,s)=>s==="bytes"?e.fmt.humanFileSize(t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:Kl},l8=new Set(he),Jl={props:["content","terms","options"],setup(e){let t=et(null),s=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return qt(()=>{s(),Be(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>ke("markdown",{ref:t})}},d8={props:["file","terms","options"],setup(e){let t=et(null),s=()=>st(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return qt(s),Be(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let r=e.file||{},n=(r.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(n)||r.language==="Markdown")return ke("gist-file",{ref:t},ke(Jl,{content:r.content,terms:e.terms,options:e.options}));let i={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(r.language||n||"none").toLowerCase();return ke("gist-file",{ref:t},ke("pre",{class:"line-numbers"},ke("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},u8={props:["file","content"],setup(e){let t=et(null),s=0,r,n=async()=>{let i=++s;r?.abort(),r=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:r.signal}).then(u=>{if(!u.ok)throw Error("Notebook request failed");return u.json()});if(await Xt("notebook"),i!==s)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(u=>window.Prism?.highlightElement(u))}catch(a){i===s&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return qt(()=>{n(),Be(()=>[e.file,e.content],n)}),ao(()=>{s++,r?.abort()}),()=>ke("notebook",{ref:t})}},c8={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,r])=>r.code),s=t.reduce((r,[,n])=>r+n.code,0);return ke("loc",t.map(([r,n])=>ke("div",{class:"lang",title:`${r}: ${n.code.toLocaleString()} lines`,style:{width:n.code*100/s+"%",background:langColors[r]}})))}}},Ql={Markdown:Jl,GistFile:d8,Notebook:u8,Loc:c8,HtmlDoc:Gl,QuotaUsage:a8,Pdfviewer:ci(async()=>(await Xt("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",Wl))},Xl={async mounted(e,{value:t}){e._editorValue=t;try{if(await pr(),e._editorDisposed)return;let s=e._editorValue,r=ace.edit(e);e._editor=r,r.setValue(String(s.content??""),-1),Yl(e,s.options),e._editorCleanup=s.options?.onLoad?.(r)}catch(s){e._editorDisposed||(e.textContent=s.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),Yl(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function Yl(e,t={}){let s=l8.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+s),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Zl={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,r=new IntersectionObserver(n=>{n.forEach(a=>a.isIntersecting?s.add(a.target.id):s.delete(a.target.id));let i=t.find(a=>s.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===i))},{rootMargin:"-20% 0px -60% 0px",threshold:0});st(()=>t.forEach(n=>{let i=document.getElementById(n.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function p8(e){let t={children:[]},s=new Map([["",t]]);function r(n){if(s.has(n))return s.get(n);let i=n.lastIndexOf("/"),a=r(i<0?"":n.slice(0,i)),u={name:n.slice(i+1),children:[]};return s.set(n,u),a.children.push(u),u}for(let n of e||[]){let i=n.path?`${n.path}/${n.name}`:n.name;n.size==null?r(i):r(n.path||"").children.push({...n})}return t.children}var xl={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Ua(),s=et(null),r=ze(Object.create(null)),n=null,i=ot(()=>p8(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");Be(()=>[t.params.repoId,t.params.path],()=>{let m="";a().split("/").filter(Boolean).forEach(E=>{m+="/"+E,r[m]=!0})},{immediate:!0});let u=ot(()=>{if(!e.searchQuery||!e.searchResults)return null;let m=new Set,E=new Set;return e.searchResults.forEach(y=>{m.add(y.path?`${y.path}/${y.name}`:y.name);let w="";(y.path||"").split("/").filter(Boolean).forEach(D=>{w=w?w+"/"+D:D,E.add(w)})}),{files:m,folders:E}}),f=()=>[...s.value.querySelectorAll("li > a")],v=m=>{s.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),m&&(n=m.dataset.path,m.classList.add("tree-focused"),m.scrollIntoView?.({block:"nearest"}),s.value.focus())};function h(m){let E=f(),y=s.value.querySelector(".tree-focused")||E[0],w=E.indexOf(y);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(m.key)||(m.preventDefault(),m.key==="ArrowDown"&&v(E[(w+1)%E.length]),m.key==="ArrowUp"&&v(E[(w-1+E.length)%E.length]),!y))return;let D=y.closest("li");m.key==="ArrowRight"&&D.classList.contains("folder")&&(D.classList.contains("open")?v(D.querySelector(":scope > ul > li > a")):y.click()),m.key==="ArrowLeft"&&(D.classList.contains("folder")&&D.classList.contains("open")?y.click():v(D.parentElement.closest("li.folder")?.querySelector(":scope > a"))),m.key==="Enter"&&y.click()}function k(m,E=""){let y=[...m].sort((w,D)=>+!!D.children-+!!w.children||w.name.localeCompare(D.name));return ke("ul",y.flatMap(w=>{let D=w,R=D.name,T=(E+"/"+R).slice(1);if(u.value&&!u.value.files.has(T)&&!u.value.folders.has(T))return[];for(;D.children?.length===1;)D=D.children[0],R+="/"+D.name;let I=E+"/"+R,H=!!D.children,q=u.value?r[I]!==!1:!!r[I],U=H&&e.page?.options?.truncatedFolders?.includes(I.slice(1)),ae=e.page?.fileCounts?.[I.slice(1)]||0,ie=ke("span",{class:H?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},H?ke("svg",{viewBox:"0 0 14 12",focusable:"false"},ke("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),_=ke("span",{class:"tree-name"},R),O=Z=>{v(Z.currentTarget),H&&(Z.preventDefault(),r[I]=!q,r[I]&&!D.children.length&&e.page.getFiles(I.slice(1)),st(()=>v(f().find(te=>te.dataset.path===n))))},Y=ke("a",{"data-path":I,href:H?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(I)}`,class:{"tree-focused":n===I},onClick:O},[H?ke("span",{class:"tree-toggle"}):E?ke("span",{class:"tree-spacer"}):null,ie,_,U?ke("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},ke("i",{class:"fas fa-exclamation-triangle"})):null,H&&ae?ke("span",{class:"tree-count"},ae):null]);return ke("li",{key:I,class:{file:!0,folder:H,open:q,active:a()===I,truncated:U},title:H?"":`Size: ${humanFileSize(D.size||0)}`},[Y,H&&q?k(D.children,I):null])}))}return()=>ke("tree",{ref:s,tabindex:0,onKeydown:h},e.file?.length?u.value?.files.size===0?ke("div",{class:"tree-search-empty"},"No files found"):k(i.value):"Empty repository")}};function td(){return ze({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function od(e,t){if(!e[t]){let s=td();Object.defineProperty(s,"invalid",{get(){return Object.values(s.errors).some(Boolean)||Object.keys(s).some(r=>r!=="invalid"&&s[r]&&typeof s[r]=="object"&&s[r].invalid)}}),e[t]=s}return e[t]}var sd={beforeMount(e,{value:t}){e._formState=od(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function f8(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function ed(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?f8(t):t??""),lr(e)}function lr(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[r,n]of Object.entries({required:s.valueMissing,pattern:s.patternMismatch,min:s.rangeUnderflow,max:s.rangeOverflow,date:s.badInput,email:s.typeMismatch&&e.type==="email",url:s.typeMismatch&&e.type==="url"}))t.setValidity(r,e.disabled||!n)}var nd={beforeMount(e,{value:t}){var a;let s=t.form&&od(t.state,t.form),r=s&&e.name?s[a=e.name]||(s[a]=td()):null;e._field={binding:t,validation:r,timer:null};let n=()=>{clearTimeout(e._field.timer),e._field.timer=null;let u=e._field.binding,f=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(f=e.value===""?null:Number(e.value)),e.type==="date"&&(f=e.value?new Date(e.value+"T00:00:00"):null),r){r.setDirty();for(let v of Object.keys(r.errors))r.setValidity(v,!0)}u.set(f),lr(e),u.change?.()}};e._field.commit=n;let i=u=>{let f=e._field.binding.options?.debounce||0,v=typeof f=="number"?f:f[u.type]??f.default??0;clearTimeout(e._field.timer),v?e._field.timer=setTimeout(n,v):n()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",i),e.addEventListener("blur",()=>{r&&(r.touched=!0),e._field.timer&&n()})},mounted:ed,updated(e,{value:t}){e._field.binding=t,ed(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:s}=e._field,r=t.form&&t.state[t.form];r&&r[e.name]===s&&delete r[e.name]}};function rd(e,t){let s=e.target.closest("form");if(s?._formState&&(s._formState.submitted=!0),s?.querySelectorAll("input, select, textarea").forEach(r=>{r._field?.timer&&r._field.commit(),r._field&&lr(r)}),s&&!s.checkValidity()){let r=s.querySelector(":invalid");r?.scrollIntoView?.({block:"center"}),r?.focus(),s.reportValidity();return}return t()}var id=Symbol("session"),m8=/^\/(w|api|github)(\/|$)/;function ad(e,t={}){let s=e?.split(".").reduce((r,n)=>r?.[n],ar);return s==null&&e?.startsWith("ERRORS.")&&(s=ar.ERRORS.unknown_error),String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,n)=>t[n]??"")}var h8={...ir,translate:ad};function v8(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function g8(e="#app",t={}){!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let s=new Map,r=Hl(t.fetch),n,i;function a(){let v=ct(),h={url(m){return m===void 0?i.currentRoute.value.fullPath:(i.push(m),h)},path(){return i.currentRoute.value.path},search(){return i.currentRoute.value.query}},k=new Proxy({},{get(m,E){let y=i.currentRoute.value.params[E];return Array.isArray(y)?y.join("/"):y}});return{http:r,...v,location:h,params:k,window,promises:Bl,html:{trustAsHtml:m=>m},translate:(m,E)=>Promise.resolve(ad(m,E)),quotaService:jl(r)}}function u(v){return{name:v.template,setup(){let h=or(ut(id),s);v.setup(h,a()),zl(v.template,h);let k=[];return()=>nn[v.template](h,k)}}}i=La({history:t.history||qa(),routes:cl.map(v=>v.redirect?v:{path:v.path,component:u(v),meta:{title:v.title,preserveExplorer:v.preserveExplorer}})});let f=oa({setup(){n=or(null,s),n.fmt=h8,n.window=window,n.Math=Math,n.sanitize=m=>DOMPurify.sanitize(m??""),n.highlightRedactions=m=>(n.site_options,Ba(m)),n.submitForm=rd,n.safeUrl=v8;let v=a();Ga(n,v.http,v.location,v.timeout),io(id,n),Be(()=>n.title,m=>{document.title=m||"Anonymous GitHub"});let h=[],k=m=>{let E=m.target.closest?.("a[href]");if(m.defaultPrevented||m.button!==0||m.metaKey||m.ctrlKey||m.shiftKey||m.altKey||!E||E.hasAttribute("download")||E.target&&E.target!=="_self"||E.dataset.toggle||E.getAttribute("href").startsWith("#"))return;let w=new URL(E.href,window.location.href);w.origin!==window.location.origin||m8.test(w.pathname)||(m.preventDefault(),i.push(w.pathname+w.search+w.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",k),ao(()=>document.removeEventListener("click",k)),()=>[Fl(n,[]),ke("header",{class:"app-header"},nn["partials/header.htm"](n,h)),ke("main",{class:"app-view align-items-stretch w-100"},ke(tr,null,{default:({Component:m,route:E})=>m?ke(m,{key:E.meta.preserveExplorer?E.matched[0]?.path:E.path}):null})),ke("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},n.toasts.map((m,E)=>ke("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:E},[ke("div",{class:"toast-header"},[ke("strong",{class:"mr-auto"},m.title),ke("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>n.removeToast(m)},"\xD7")]),ke("div",{class:"toast-body"},m.body)])))]}});for(let[v,h]of Object.entries(Ql))f.component(v,h);return f.component("Tree",xl),f.component("PartialView",{props:["name","state"],setup(v){let h=[];return()=>nn[v.name](v.state,h)}}),f.directive("field",nd),f.directive("form",sd),f.directive("code-editor",Xl),f.directive("paper-scrollspy",Zl),f.use(i),i.beforeEach(async v=>{n?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(v.path)&&await Xt("markdown"),/^\/(r|repository)\//.test(v.path)&&await Xt("org")}),i.afterEach(v=>{if(!n)return;n.title=v.meta.title,n.emit("routeChange",{title:v.meta.title}),n.emit("routeUpdate",{title:v.meta.title});let h=document.querySelector(".app-view");!v.meta.preserveExplorer&&h&&(h.scrollTop=0)}),f.mount(e),{app:f,router:i,state:n}}document.querySelector("#app")&&(window.anonymousApp=g8());})();
+jane.smith@example.org`},vq={id:"termsHelp",class:"form-text text-muted"},yq={class:"invalid-feedback"},gq={id:"settings-display",class:"paper-settings-section"},bq={class:"form-group paper-check-list"},wq={class:"form-check"},kq={class:"form-check-input",type:"checkbox",id:"link",name:"link"},Eq={class:"form-check"},Cq={class:"form-check-input",type:"checkbox",id:"image",name:"image"},_q={class:"form-check"},Sq={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},Nq={class:"form-check"},Dq={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},Rq={id:"settings-features",class:"paper-settings-section"},Tq={class:"form-group paper-check-list"},Aq={class:"form-check"},Oq={class:"form-check-input",type:"checkbox",id:"page",name:"page"},Iq={class:"form-check"},Pq={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},Vq={class:"form-check"},qq={class:"form-check-input",type:"checkbox",id:"update",name:"update"},Mq={class:"form-group"},$q={class:"form-control",id:"mode",name:"mode"},Lq={class:"form-text text-muted"},Uq={id:"settings-expiration",class:"paper-settings-section"},Fq={class:"form-group"},zq={class:"form-control",id:"expiration",name:"expiration"},Hq={key:0,class:"draft-status",role:"status"},Bq={key:1,class:"draft-status"},jq={class:"paper-settings-footer"},Gq={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Wq=["textContent"],Kq={class:"paper-settings-actions"},Yq=["disabled"],Jq={key:0,class:"ui-icon mr-1","aria-hidden":"true"},Qq={id:"settings-account",class:"paper-settings-section"},Xq={class:"paper-account-card"},Zq=["src"],xq={class:"paper-account-identity"},eM={class:"paper-account-name"},tM={class:"paper-danger-zone"},oM={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},nM=["textContent"],sM=["disabled"];function jl(e,t){let n=We("quota-usage"),r=be("paper-scrollspy"),s=be("field"),i=be("form");return l(),d("div",iq,[t[52]||(t[52]=pe('
',2)])])),[[r]]),o("div",dq,[p(" Account usage shares the dashboard component. "),o("section",uq,[t[6]||(t[6]=o("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[7]||(t[7]=o("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),Lt(n,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):p("v-if",!0),e.quota?p("v-if",!0):(l(),d("div",cq,[(l(),d(X,null,ae([1,2,3],(a,u)=>o("div",pq,[...t[5]||(t[5]=[o("div",{class:"quota-header"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),o("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),o("div",{class:"quota-track"},null,-1)])])),64))]))]),D((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[2]||(t[2]=de(a=>e.submitForm(a,()=>{e.saveDefault(a)}),["prevent"]))},[o("section",fq,[t[13]||(t[13]=o("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[14]||(t[14]=o("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),o("div",mq,[t[12]||(t[12]=o("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),D(o("textarea",hq,null,512),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),o("small",vq,[t[8]||(t[8]=b(" One term per line (regex allowed). Each match is replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[9]||(t[9]=b(", or use ",-1)),t[10]||(t[10]=o("code",null,"term=>replacement",-1)),t[11]||(t[11]=b(" to pick your own. ",-1))]),D(o("div",yq," Terms are in an invalid format ",512),[[K,e.defaultsForm?.terms?.errors?.format]])])]),o("section",gq,[t[23]||(t[23]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),t[24]||(t[24]=o("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),o("div",bq,[o("div",wq,[D(o("input",kq,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),o("div",Eq,[D(o("input",Cq,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[17]||(t[17]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[18]||(t[18]=o("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),o("div",_q,[D(o("input",Sq,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[20]||(t[20]=o("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),o("div",Nq,[D(o("input",Dq,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[22]||(t[22]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),o("section",Rq,[t[33]||(t[33]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",Tq,[o("div",Aq,[D(o("input",Oq,null,512),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[26]||(t[26]=o("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),o("div",Iq,[D(o("input",Pq,null,512),[[s,{state:e.viewState,set:a=>{e.options.loc=a},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=o("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[28]||(t[28]=o("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),o("div",Vq,[D(o("input",qq,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),o("div",Mq,[t[32]||(t[32]=o("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),D((l(),d("select",$q,[...t[31]||(t[31]=[o("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),o("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.mode=a},value:e.options?.mode,form:"defaultsForm",options:{}}]]),o("small",Lq," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),o("section",Uq,[t[37]||(t[37]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",Fq,[t[35]||(t[35]=o("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),D((l(),d("select",zq,[...t[34]||(t[34]=[o("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),o("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=o("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),e.draftRestored?(l(),d("div",Hq,[t[38]||(t[38]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[0]||(t[0]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",Bq,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[1]||(t[1]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):p("v-if",!0),o("div",jq,[e.error?(l(),d("div",Gq,[t[39]||(t[39]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[40]||(t[40]=b()),o("span",{textContent:c(e.error)},null,8,Wq)])):p("v-if",!0),o("div",Kq,[o("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("svg",Jq,[...t[41]||(t[41]=[o("use",{href:"#ui-icon-check"},null,-1)])])):p("v-if",!0),b(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,Yq),t[42]||(t[42]=o("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[i,e.viewState]]),o("section",Qq,[t[50]||(t[50]=o("div",{class:"paper-section-eyebrow"},"Account",-1)),o("div",Xq,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,Zq)):p("v-if",!0),o("div",xq,[o("div",eM,"@"+c(e.user?.username),1),t[43]||(t[43]=o("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[44]||(t[44]=o("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),t[51]||(t[51]=o("a",{class:"paper-settings-connection-link",href:"/connections"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",null,[b("GitHub connections"),o("small",null,"Manage repository access and legacy OAuth.")]),o("span",{"aria-hidden":"true"},"\u2192")],-1)),o("div",tM,[t[48]||(t[48]=o("div",{class:"paper-danger-head"},"Delete account",-1)),t[49]||(t[49]=o("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",oM,[t[45]||(t[45]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[46]||(t[46]=b()),o("span",{textContent:c(e.deleteError)},null,8,nM)])):p("v-if",!0),o("button",{type:"button",class:"btn btn-outline-danger",onClick:t[3]||(t[3]=a=>e.deleteAccount()),disabled:e.deletingAccount},[t[47]||(t[47]=o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)),b(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,sM)])])])])])}var rM={class:"pr-page"},iM={class:"container paper-page pr-page-inner"},aM={class:"pr-header"},lM={class:"pr-title-row"},dM={class:"paper-page-title pr-title"},uM=["textContent"],cM={key:1,class:"text-muted"},pM=["href"],fM={class:"pr-header-meta"},mM={key:0,class:"pr-meta-item"},hM=["textContent"],vM={key:1,class:"pr-meta-item"},yM=["textContent"],gM={key:2,class:"pr-meta-item"},bM=["textContent"],wM={key:0,class:"pr-body-card"},kM={key:1,class:"paper-tabs",role:"tablist"},EM=["aria-selected","tabindex"],CM=["aria-selected","tabindex"],_M=["textContent"],SM={class:"paper-tab-content"},NM={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},DM=["innerHTML"],RM={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},TM={class:"pr-comments"},AM={class:"pr-comment"},OM={class:"pr-comment-head"},IM={key:0,class:"pr-comment-author"},PM=["textContent"],VM=["textContent"],qM={key:0,class:"pr-comment-body"},MM={key:0,class:"paper-table-empty"};function Gl(e,t){let n=We("markdown");return l(),d("div",rM,[o("div",iM,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Pull request")],-1)),o("header",aM,[o("div",lM,[o("h1",dM,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,uM)):p("v-if",!0),e.details?.title?p("v-if",!0):(l(),d("span",cM,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,pM)):p("v-if",!0)]),o("div",fM,[o("span",{class:A(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[o("span",{class:A(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),b(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",mM,[t[5]||(t[5]=o("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=b()),o("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,hM)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",vM,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,yM)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",gM,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,bM)])):p("v-if",!0)])]),e.details?.body?(l(),d("section",wM,[t[11]||(t[11]=o("div",{class:"paper-section-eyebrow"},"Description",-1)),Ce(n,{content:e.details?.body},null,8,["content"])])):p("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",kM,[e.details?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=r=>e.previewTabKeydown(r)),onClick:t[1]||(t[1]=r=>e.tabState.active="diff")},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,EM)):p("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=r=>e.previewTabKeydown(r)),onClick:t[3]||(t[3]=r=>e.tabState.active="comments")},[t[13]||(t[13]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,_M)],42,CM)):p("v-if",!0)])):p("v-if",!0),o("div",SM,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",NM,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,DM)])):p("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",RM,[o("ul",TM,[(l(!0),d(X,null,ae(e.details?.comments,(r,s)=>(l(),d("li",AM,[o("div",OM,[r?.author?(l(),d("span",IM,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(r?.author)},null,8,PM)])):p("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,VM)):p("v-if",!0)]),r?.body?(l(),d("div",qM,[Ce(n,{content:r?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",MM,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this pull request.",-1)])]))])])):p("v-if",!0)])])])}var $M={class:"container paper-page status-page"},LM={class:"d-flex align-items-center justify-content-between flex-wrap",style:{gap:"12px"}},UM={class:"paper-page-title"},FM=["textContent"],zM={key:1},HM={class:"paper-settings-section"},BM=["textContent"],jM={key:0,class:"paper-section-copy"},GM={key:1,class:"paper-ratelimit-card",role:"status"},WM={class:"paper-error-msg"},KM=["aria-valuenow"],YM={class:"paper-progress-label"},JM=["textContent"],QM={key:0},XM=["textContent"],ZM={class:"paper-progress-pct"},xM={key:3,class:"paper-error-card",role:"alert"},e8={key:0,class:"paper-error-msg"},t8={key:1,class:"paper-error-msg"},o8={class:"paper-error-actions"},n8=["href"],s8={key:4,class:"share-link"},r8={class:"share-link-row"},i8=["value"],a8={class:"ui-icon","aria-hidden":"true"},l8=["href"],d8=["textContent"],u8={class:"share-link-actions"},c8=["href"],p8=["href"];function Wl(e,t){return l(),d("div",$M,[t[16]||(t[16]=o("div",{class:"paper-crumbs"},[b("Anonymization \xA0/\xA0 "),o("span",{class:"here"},"Status")],-1)),o("div",LM,[o("div",null,[o("h1",UM,[t[2]||(t[2]=b("Status of ",-1)),o("em",null,c(e.repoId),1)]),t[3]||(t[3]=o("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),o("span",{class:A(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[o("span",{class:A(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?p("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,FM)),e.rateLimitResetAt?(l(),d("span",zM,"Rate limited")):p("v-if",!0)],2)]),o("section",HM,[o("div",{class:"paper-section-eyebrow",textContent:c(e.repo?.status=="ready"?"Your anonymous link":"Progress")},null,8,BM),e.repo?.status!="ready"?(l(),d("p",jM,[...t[4]||(t[4]=[b(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),o("a",{href:"/faq"},"FAQ",-1),b(" for more information. ",-1)])])):p("v-if",!0),e.rateLimitResetAt?(l(),d("div",GM,[t[7]||(t[7]=pe('
Temporarily paused
GitHub API rate limit reached
',1)),o("p",WM,[t[5]||(t[5]=b("Anonymization will resume automatically in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[6]||(t[6]=b(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):p("v-if",!0),e.repo?.status!="error"&&e.repo?.status!="ready"&&!e.rateLimitResetAt?(l(),d("div",{key:2,class:A(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[o("div",{class:"paper-progress-bar",style:qe("width: "+e.progress+"%;")},null,4),o("div",YM,[o("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,JM),e.repo?.statusMessage?(l(),d("span",QM,[t[8]||(t[8]=b("\xA0\xB7\xA0",-1)),o("span",{textContent:c(e.repo?.statusMessage)},null,8,XM)])):p("v-if",!0),o("span",ZM,c(e.progress||0)+"%",1)])],10,KM)):p("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",xM,[t[11]||(t[11]=pe('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(l(),d("p",e8,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):p("v-if",!0),e.repo?.statusMessage?p("v-if",!0):(l(),d("p",t8,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[12]||(t[12]=o("ul",{class:"paper-error-hints"},[o("li",null,"Make sure the source URL points to a repository or pull request you can access."),o("li",null,"Check that the chosen branch and commit still exist on GitHub."),o("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),o("div",o8,[o("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[9]||(t[9]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit anonymization",-1)])],8,n8),t[10]||(t[10]=pe(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):p("v-if",!0),e.repo?.status=="ready"?(l(),d("div",s8,[t[15]||(t[15]=o("p",{class:"paper-section-copy"},"Reviewers can browse the repository at this address without seeing who you are.",-1)),o("div",r8,[o("input",{id:"share-url",class:"form-control share-link-input",readonly:"","aria-label":"Anonymous link",value:e.shareUrl,onFocus:t[0]||(t[0]=n=>n.target.select())},null,40,i8),o("button",{type:"button",class:"btn btn-ink",onClick:t[1]||(t[1]=n=>e.copyShareUrl())},[(l(),d("svg",a8,[o("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,l8)])),o("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,d8)])]),o("div",u8,[o("a",{class:"btn",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" Open repository ",-1)])],8,c8),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" Open GitHub page ",-1)])],8,p8)):p("v-if",!0)])])):p("v-if",!0)]),t[17]||(t[17]=pe('
Support Anonymous GitHub
A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee.
")}return function(r){if(!r)return r;let s=[],i=null,a=0,u=0,f=()=>(i||(i={oldPath:"",newPath:"",lines:[]}),i),k=()=>{i&&(i.lines.length||i.oldPath||i.newPath)&&(n(s,i),i=null)},h=r.split(`
+`);for(let w=0;we});function k8(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function E8(e){return String(e??"").toUpperCase()}function C8(e,t,n=0){return(e||[]).slice(n,n+t)}function _8(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function S8(e,t){if(!t)return e||[];let n=Array.isArray(t)?t:[t];return[...e||[]].sort((r,s)=>{for(let i of n){let a=i[0]==="-"?-1:1;i=i.replace(/^[+-]/,"");let u=i.split(".").reduce((k,h)=>k?.[h],r),f=i.split(".").reduce((k,h)=>k?.[h],s);if(typeof u=="string"&&(u=u.toLowerCase()),typeof f=="string"&&(f=f.toLowerCase()),u!==f)return(u==null?-1:f==null?1:ur[s])}function D8(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var ur={ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"Unknown error, contact the admin.",unreachable:"Anonymous GitHub is unreachable, contact the admin.",request_error:"Unable to download the file, check your connection or contact the admin.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"The repository was not found on GitHub. Check the URL and spelling, make sure you are signed in to the account that can see it, and confirm the repo isn't hidden under an org that restricts third-party app access.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",invalid_project_name:"Use a project name of up to 100 characters without line breaks or control characters.",no_file_selected:"Please select a file.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"Your GitHub access token has expired. Please log out and log in again to refresh it.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"Verify your existing account with your previous GitHub connection. Future sign-ins will use the GitHub App.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid."},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};var Zl={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=et(null);return $t(()=>{let r=[t.value][0];r.classList.add("html-doc");function s(){r.innerHTML="";let i=e.content;if(typeof i!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let u=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&u.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",u.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),r.appendChild(a);let f="";e.baseUrl&&(f=''),a.srcdoc=f+i}Be(()=>e.content,s,{immediate:!0}),Be(()=>e.baseUrl,s,{immediate:!0}),Be(()=>e.allowScripts,s,{immediate:!0})}),()=>ke("html-doc",{ref:t})}};var xl={name:"pdfviewer",props:["src"],setup(e){let t=et(null);return $t(()=>{let n=[t.value],r=400,s=[.5,.75,1,1.25,1.5,2,3],i=1e3,a=n[0];a.classList.add("pdf-viewer");let u=null,f=[],k=!1,h=null,w=1,m=1,E=0,y=0,g=612/792,_=0,R=null,T=new Map,I=0;function F(L){let v=T.get(L);v&&(v.cancelled=!0,v.task?.cancel?.(),T.delete(L));let N=L.querySelector("canvas");N&&(N.width=0,N.height=0),L.innerHTML="",delete L.dataset.state}let P=document.createElement("div");P.className="pdf-toolbar";let M=document.createElement("div");M.className="pdf-pages",M.tabIndex=0,M.setAttribute("aria-label","PDF pages"),a.appendChild(P),a.appendChild(M);function se(L,v,N){let q=document.createElement("button");return q.type="button",q.className="pdf-toolbar-btn",q.title=v,q.setAttribute("aria-label",v),q.innerHTML='',q.addEventListener("click",N),q}let oe=se("fa-chevron-up","Previous page",function(){_e(m-1)}),S=se("fa-chevron-down","Next page",function(){_e(m+1)}),O=document.createElement("input");O.type="text",O.className="pdf-toolbar-page",O.setAttribute("aria-label","Page number"),O.title="Page number \u2014 type a page and press Enter",O.addEventListener("keydown",function(L){L.key==="Enter"&&(_e(parseInt(O.value,10)),O.blur())}),O.addEventListener("blur",function(){O.value=String(m)});let Y=document.createElement("span");Y.className="pdf-toolbar-count";let Z=se("fa-search-minus","Zoom out",function(){C(s[Math.max(0,fe()-1)])}),te=se("fa-search-plus","Zoom in",function(){C(s[Math.min(s.length-1,fe()+1)])}),J=document.createElement("button");J.type="button",J.className="pdf-toolbar-btn pdf-toolbar-zoom",J.title="Reset zoom to fit the width",J.setAttribute("aria-label","Reset zoom to fit the width"),J.addEventListener("click",function(){C(1)}),P.appendChild(oe),P.appendChild(S);let re=document.createElement("span");re.className="pdf-toolbar-group",re.appendChild(O),re.appendChild(Y),P.appendChild(re);let ce=document.createElement("span");ce.className="pdf-toolbar-group pdf-toolbar-right",ce.appendChild(Z),ce.appendChild(J),ce.appendChild(te),P.appendChild(ce);function fe(){let L=0;for(let v=0;v=L,J.textContent=Math.round(w*100)+"%",Z.disabled=fe()===0,te.disabled=fe()===s.length-1}function Oe(L){let v=f[L-1];v&&(M.scrollTop+=v.getBoundingClientRect().top-M.getBoundingClientRect().top)}function _e(L){if(!u||isNaN(L))return;let v=Math.min(Math.max(1,L),u.numPages);f[v-1]&&(Oe(v),m=v,E=v,y=Date.now()+800,le(),Ee())}function Ue(){if(!f.length||Date.now(){}),R=null),h&&(clearTimeout(h),h=null),u&&(u.destroy(),u=null),f=[],m=1,M.innerHTML="",le()}function Me(){M.innerHTML="";let L=document.createElement("div");L.className="pdf-viewer-error",L.textContent="This PDF could not be displayed.",M.appendChild(L)}function Pe(){let L=Math.max(120,M.clientWidth-24);return Math.round(Math.min(L,i)*w)}function He(L,v,N){let q=window.devicePixelRatio||1,H=L.getViewport({scale:1}),j=parseFloat(v.style.width);if(!j)return;let U=L.getViewport({scale:j/H.width*q}),G=document.createElement("canvas");return G.width=Math.floor(U.width),G.height=Math.floor(U.height),G.style.width=j+"px",G.style.height=Math.floor(U.height/q)+"px",v.innerHTML="",v.appendChild(G),v.style.height=G.style.height,N.task=L.render({canvasContext:G.getContext("2d"),viewport:U}),N.task.promise}function Ee(){if(!u)return;let L=_,v=M.getBoundingClientRect(),N=v.top-r,q=v.top+M.clientHeight+r,H=f.map((U,G)=>({slot:U,i:G,rect:U.getBoundingClientRect()})).filter(U=>U.rect.top<=q&&U.rect.bottom>=N).sort((U,G)=>Math.abs(U.rect.top-v.top)-Math.abs(G.rect.top-v.top)).slice(0,6),j=new Set(H.map(U=>U.slot));for(let U of T.keys())j.has(U)||F(U);for(let{slot:U,i:G}of H){if(U.dataset.state||I>=2)continue;let ee={cancelled:!1,task:null};T.set(U,ee),I++,U.dataset.state="rendering";let x;u.getPage(G+1).then(W=>{if(x=W,!(ee.cancelled||L!==_))return He(x,U,ee)}).then(()=>{ee.cancelled||L!==_||(U.dataset.state="done",E&&Date.now(){!ee.cancelled&&L===_&&(U.dataset.state="failed")}).finally(()=>{I--,x?.cleanup?.(),u&&Ee()})}}function z(){k||(k=!0,window.requestAnimationFrame(function(){k=!1,Ue(),Ee()}))}function ne(){let L=!1;function v(){L||(L=!0,Ee())}window.requestAnimationFrame(v),window.setTimeout(v,50)}function Q(){_++,f.forEach(F);let L=Pe();f.forEach(function(v){delete v.dataset.state,v.innerHTML="",v.style.width=L+"px",v.style.height=Math.round(L/g)+"px"}),Ee()}function C(L){if(!u||!f.length||L===w)return;let v=m;w=L,le(),Q(),_e(v)}function V(){u&&(h&&clearTimeout(h),h=setTimeout(function(){h=null,u&&f.length&&Q()},250))}function B(L){if(Re(),!L)return;let v=_;R=pdfjsLib.getDocument({url:L,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),R.promise.then(function(N){if(v!==_){N.destroy();return}return u=N,u.getPage(1).then(function(q){if(v!==_)return;let H=q.getViewport({scale:1});H.width&&H.height&&(g=H.width/H.height);let j=Pe();for(let U=1;U<=u.numPages;U++){let G=document.createElement("div");G.className="pdf-viewer-page",G.style.width=j+"px",G.style.height=Math.round(j/g)+"px",M.appendChild(G),f.push(G)}le(),ne()})}).catch(function(){v===_&&Me()})}M.addEventListener("scroll",z,{passive:!0}),$(window).on("resize",V),le(),Be(()=>e.src,B,{immediate:!0}),co(function(){M.removeEventListener("scroll",z),$(window).off("resize",V),Re()})}),()=>ke("pdfviewer",{ref:t})}};var T8={key:0,class:"quota-row quota-usage"},A8={class:"quota-header"},O8={class:"quota-label"},I8={class:"project-type-svg","aria-hidden":"true"},P8=["href"],V8={key:0,class:"quota-percent"},q8={key:1,class:"quota-unlimited-tag"},M8={class:"quota-value"},$8={key:0},L8=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],U8={key:1,class:"quota-remaining"},F8={key:2,class:"quota-remaining quota-limit"};function ed(e,t){return e.quota?(l(),d("div",T8,[(l(),d(X,null,ae([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],n=>o("div",{class:A(["quota-item","quota-"+e.quota[n.key].level]),key:n.key},[o("div",A8,[o("span",O8,[(l(),d("svg",I8,[o("use",{href:"#"+n.icon},null,8,P8)])),b(c(n.label),1)]),e.quota[n.key].unlimited?p("v-if",!0):(l(),d("span",V8,c(e.fmt.number(e.quota[n.key].percent,0))+"% used",1)),e.quota[n.key].unlimited?(l(),d("span",q8,"Unlimited")):p("v-if",!0)]),o("div",M8,[o("strong",null,c(e.formatAmount(e.quota[n.key].used,n.kind)),1),e.quota[n.key].unlimited?p("v-if",!0):(l(),d("span",$8," / "+c(e.formatAmount(e.quota[n.key].total,n.kind)),1))]),e.quota[n.key].unlimited?p("v-if",!0):(l(),d("div",{key:0,class:A(["quota-track","quota-"+e.quota[n.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":n.label+" quota","aria-valuenow":Math.min(e.quota[n.key].used,e.quota[n.key].total),"aria-valuemax":e.quota[n.key].total,"aria-valuetext":e.fmt.number(e.quota[n.key].percent,0)+"% used"},[e.quota[n?.key].unlimited?p("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:qe({width:e.quota[n.key].percent+"%"})},null,4))],10,L8)),!e.quota[n.key].unlimited&&e.quota[n.key].used=e.quota[n.key].total?(l(),d("p",F8,c(e.quota[n.key].used>e.quota[n.key].total?"Limit exceeded":"Limit reached"),1)):p("v-if",!0)],2)),64))])):p("v-if",!0)}var z8={props:["quota","fmt"],setup(e){return{formatAmount:(t,n)=>n==="bytes"?e.fmt.humanFileSize(t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:ed},H8=new Set(he),od={props:["content","terms","options"],setup(e){let t=et(null),n=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return $t(()=>{n(),Be(()=>[e.content,e.terms,e.options],n,{deep:!0})}),()=>ke("markdown",{ref:t})}},B8={props:["file","terms","options"],setup(e){let t=et(null),n=()=>nt(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return $t(n),Be(()=>[e.file?.content,e.terms,e.options],n,{deep:!0}),()=>{let r=e.file||{},s=(r.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(s)||r.language==="Markdown")return ke("gist-file",{ref:t},ke(od,{content:r.content,terms:e.terms,options:e.options}));let i={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(r.language||s||"none").toLowerCase();return ke("gist-file",{ref:t},ke("pre",{class:"line-numbers"},ke("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},j8={props:["file","content"],setup(e){let t=et(null),n=0,r,s=async()=>{let i=++n;r?.abort(),r=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:r.signal}).then(u=>{if(!u.ok)throw Error("Notebook request failed");return u.json()});if(await oo("notebook"),i!==n)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(u=>window.Prism?.highlightElement(u))}catch(a){i===n&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return $t(()=>{s(),Be(()=>[e.file,e.content],s)}),co(()=>{n++,r?.abort()}),()=>ke("notebook",{ref:t})}},G8={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,r])=>r.code),n=t.reduce((r,[,s])=>r+s.code,0);return ke("loc",t.map(([r,s])=>ke("div",{class:"lang",title:`${r}: ${s.code.toLocaleString()} lines`,style:{width:s.code*100/n+"%",background:langColors[r]}})))}}},nd={Markdown:od,GistFile:B8,Notebook:j8,Loc:G8,HtmlDoc:Zl,QuotaUsage:z8,Pdfviewer:vi(async()=>(await oo("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",xl))},sd={async mounted(e,{value:t}){e._editorValue=t;try{if(await yr(),e._editorDisposed)return;let n=e._editorValue,r=ace.edit(e);e._editor=r,r.setValue(String(n.content??""),-1),td(e,n.options),e._editorCleanup=n.options?.onLoad?.(r)}catch(n){e._editorDisposed||(e.textContent=n.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),td(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function td(e,t={}){let n=H8.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+n),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var rd={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],n=new Set,r=new IntersectionObserver(s=>{s.forEach(a=>a.isIntersecting?n.add(a.target.id):n.delete(a.target.id));let i=t.find(a=>n.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===i))},{rootMargin:"-20% 0px -60% 0px",threshold:0});nt(()=>t.forEach(s=>{let i=document.getElementById(s.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function W8(e){let t={children:[]},n=new Map([["",t]]);function r(s){if(n.has(s))return n.get(s);let i=s.lastIndexOf("/"),a=r(i<0?"":s.slice(0,i)),u={name:s.slice(i+1),children:[]};return n.set(s,u),a.children.push(u),u}for(let s of e||[]){let i=s.path?`${s.path}/${s.name}`:s.name;s.size==null?r(i):r(s.path||"").children.push({...s})}return t.children}var id={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Ga(),n=et(null),r=ze(Object.create(null)),s=null,i=ot(()=>W8(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");Be(()=>[t.params.repoId,t.params.path],()=>{let m="";a().split("/").filter(Boolean).forEach(E=>{m+="/"+E,r[m]=!0})},{immediate:!0});let u=ot(()=>{if(!e.searchQuery||!e.searchResults)return null;let m=new Set,E=new Set;return e.searchResults.forEach(y=>{m.add(y.path?`${y.path}/${y.name}`:y.name);let g="";(y.path||"").split("/").filter(Boolean).forEach(_=>{g=g?g+"/"+_:_,E.add(g)})}),{files:m,folders:E}}),f=()=>[...n.value.querySelectorAll("li > a")],k=m=>{n.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),m&&(s=m.dataset.path,m.classList.add("tree-focused"),m.scrollIntoView?.({block:"nearest"}),n.value.focus())};function h(m){let E=f(),y=n.value.querySelector(".tree-focused")||E[0],g=E.indexOf(y);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(m.key)||(m.preventDefault(),m.key==="ArrowDown"&&k(E[(g+1)%E.length]),m.key==="ArrowUp"&&k(E[(g-1+E.length)%E.length]),!y))return;let _=y.closest("li");m.key==="ArrowRight"&&_.classList.contains("folder")&&(_.classList.contains("open")?k(_.querySelector(":scope > ul > li > a")):y.click()),m.key==="ArrowLeft"&&(_.classList.contains("folder")&&_.classList.contains("open")?y.click():k(_.parentElement.closest("li.folder")?.querySelector(":scope > a"))),m.key==="Enter"&&y.click()}function w(m,E=""){let y=[...m].sort((g,_)=>+!!_.children-+!!g.children||g.name.localeCompare(_.name));return ke("ul",y.flatMap(g=>{let _=g,R=_.name,T=(E+"/"+R).slice(1);if(u.value&&!u.value.files.has(T)&&!u.value.folders.has(T))return[];for(;_.children?.length===1;)_=_.children[0],R+="/"+_.name;let I=E+"/"+R,F=!!_.children,P=u.value?r[I]!==!1:!!r[I],M=F&&e.page?.options?.truncatedFolders?.includes(I.slice(1)),se=e.page?.fileCounts?.[I.slice(1)]||0,oe=ke("span",{class:F?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},F?ke("svg",{viewBox:"0 0 14 12",focusable:"false"},ke("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),S=ke("span",{class:"tree-name"},R),O=Z=>{k(Z.currentTarget),F&&(Z.preventDefault(),r[I]=!P,r[I]&&!_.children.length&&e.page.getFiles(I.slice(1)),nt(()=>k(f().find(te=>te.dataset.path===s))))},Y=ke("a",{"data-path":I,href:F?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(I)}`,class:{"tree-focused":s===I},onClick:O},[F?ke("span",{class:"tree-toggle"}):E?ke("span",{class:"tree-spacer"}):null,oe,S,M?ke("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},ke("i",{class:"fas fa-exclamation-triangle"})):null,F&&se?ke("span",{class:"tree-count"},se):null]);return ke("li",{key:I,class:{file:!0,folder:F,open:P,active:a()===I,truncated:M},title:F?"":`Size: ${humanFileSize(_.size||0)}`},[Y,F&&P?w(_.children,I):null])}))}return()=>ke("tree",{ref:n,tabindex:0,onKeydown:h},e.file?.length?u.value?.files.size===0?ke("div",{class:"tree-search-empty"},"No files found"):w(i.value):"Empty repository")}};function ld(){return ze({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function dd(e,t){if(!e[t]){let n=ld();Object.defineProperty(n,"invalid",{get(){return Object.values(n.errors).some(Boolean)||Object.keys(n).some(r=>r!=="invalid"&&n[r]&&typeof n[r]=="object"&&n[r].invalid)}}),e[t]=n}return e[t]}var ud={beforeMount(e,{value:t}){e._formState=dd(t,e.name),e.addEventListener("submit",n=>n.preventDefault())}};function K8(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function ad(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?K8(t):t??""),cr(e)}function cr(e){let t=e._field.validation;if(!t)return;let n=e.validity;for(let[r,s]of Object.entries({required:n.valueMissing,pattern:n.patternMismatch,min:n.rangeUnderflow,max:n.rangeOverflow,date:n.badInput,email:n.typeMismatch&&e.type==="email",url:n.typeMismatch&&e.type==="url"}))t.setValidity(r,e.disabled||!s)}var cd={beforeMount(e,{value:t}){var a;let n=t.form&&dd(t.state,t.form),r=n&&e.name?n[a=e.name]||(n[a]=ld()):null;e._field={binding:t,validation:r,timer:null};let s=()=>{clearTimeout(e._field.timer),e._field.timer=null;let u=e._field.binding,f=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(f=e.value===""?null:Number(e.value)),e.type==="date"&&(f=e.value?new Date(e.value+"T00:00:00"):null),r){r.setDirty();for(let k of Object.keys(r.errors))r.setValidity(k,!0)}u.set(f),cr(e),u.change?.()}};e._field.commit=s;let i=u=>{let f=e._field.binding.options?.debounce||0,k=typeof f=="number"?f:f[u.type]??f.default??0;clearTimeout(e._field.timer),k?e._field.timer=setTimeout(s,k):s()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",i),e.addEventListener("blur",()=>{r&&(r.touched=!0),e._field.timer&&s()})},mounted:ad,updated(e,{value:t}){e._field.binding=t,ad(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:n}=e._field,r=t.form&&t.state[t.form];r&&r[e.name]===n&&delete r[e.name]}};function pd(e,t){let n=e.target.closest("form");if(n?._formState&&(n._formState.submitted=!0),n?.querySelectorAll("input, select, textarea").forEach(r=>{r._field?.timer&&r._field.commit(),r._field&&cr(r)}),n&&!n.checkValidity()){let r=n.querySelector(":invalid");r?.scrollIntoView?.({block:"center"}),r?.focus(),n.reportValidity();return}return t()}var fd=Symbol("session"),Y8=/^\/(w|api|github)(\/|$)/;function md(e,t={}){let n=e?.split(".").reduce((r,s)=>r?.[s],ur);return n==null&&e?.startsWith("ERRORS.")&&(n=ur.ERRORS.unknown_error),String(n??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,s)=>t[s]??"")}var J8={...dr,translate:md};function Q8(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function X8(e="#app",t={}){let n=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),r=n&&window.location.pathname==="/review-link"?hr(window):null,s=()=>{let m=r;return r=null,m};!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let i=new Map,a=Jl(t.fetch),u,f;function k(){let m=ct(),E={url(g){return g===void 0?f.currentRoute.value.fullPath:(f.push(g),E)},path(){return f.currentRoute.value.path},search(){return f.currentRoute.value.query}},y=new Proxy({},{get(g,_){let R=f.currentRoute.value.params[_];return Array.isArray(R)?R.join("/"):R}});return{takeReviewHandoff:s,http:a,...m,location:E,params:y,window,promises:Ql,html:{trustAsHtml:g=>g},translate:(g,_)=>Promise.resolve(md(g,_)),quotaService:Xl(a)}}function h(m){return{name:m.template,setup(){let E=rr(ut(fd),i);m.setup(E,k()),Yl(m.template,E);let y=[];return()=>as[m.template](E,y)}}}f=ja({history:t.history||za(),routes:yl.map(m=>m.redirect?m:{path:m.path,component:h(m),meta:{title:m.title,preserveExplorer:m.preserveExplorer}})});let w=la({setup(){u=rr(null,i),u.fmt=J8,u.window=window,u.Math=Math,u.sanitize=g=>DOMPurify.sanitize(g??""),u.highlightRedactions=g=>(u.site_options,Ja(g)),u.submitForm=pd,u.safeUrl=Q8;let m=k();Xa(u,m.http,m.location,m.timeout),uo(fd,u),Be(()=>u.title,g=>{document.title=g||"Anonymous GitHub"});let E=[],y=g=>{let _=g.target.closest?.("a[href]");if(g.defaultPrevented||g.button!==0||g.metaKey||g.ctrlKey||g.shiftKey||g.altKey||!_||_.hasAttribute("download")||_.target&&_.target!=="_self"||_.dataset.toggle||_.getAttribute("href").startsWith("#"))return;let T=new URL(_.href,window.location.href);n||/^\/review-link\/?$/i.test(T.pathname)||T.origin!==window.location.origin||Y8.test(T.pathname)||(g.preventDefault(),f.push(T.pathname+T.search+T.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",y),co(()=>document.removeEventListener("click",y)),()=>[Kl(u,[]),n?null:ke("header",{class:"app-header"},as["partials/header.htm"](u,E)),ke("main",{class:"app-view align-items-stretch w-100"},ke(sr,null,{default:({Component:g,route:_})=>g?ke(g,{key:_.meta.preserveExplorer?_.matched[0]?.path:_.path}):null})),ke("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},u.toasts.map((g,_)=>ke("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:_},[ke("div",{class:"toast-header"},[ke("strong",{class:"mr-auto"},g.title),ke("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>u.removeToast(g)},"\xD7")]),ke("div",{class:"toast-body"},g.body)])))]}});for(let[m,E]of Object.entries(nd))w.component(m,E);return w.component("Tree",id),w.component("PartialView",{props:["name","state"],setup(m){let E=[];return()=>as[m.name](m.state,E)}}),w.directive("field",cd),w.directive("form",ud),w.directive("code-editor",sd),w.directive("paper-scrollspy",rd),w.use(f),f.beforeEach(async m=>{if(m.path==="/review-link"&&!n||n&&m.path!=="/review-link")return window.location.assign(m.fullPath),!1;u?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(m.path)&&await oo("markdown"),/^\/(r|repository)\//.test(m.path)&&await oo("org")}),f.afterEach(m=>{if(!u)return;u.title=m.meta.title,u.emit("routeChange",{title:m.meta.title}),u.emit("routeUpdate",{title:m.meta.title});let E=document.querySelector(".app-view");!m.meta.preserveExplorer&&E&&(E.scrollTop=0)}),w.mount(e),{app:w,router:f,state:u}}document.querySelector("#app")&&(window.anonymousApp=X8());})();
/*! Bundled license information:
@vue/shared/dist/shared.esm-bundler.js:
(**
- * @vue/shared v3.5.42
+ * @vue/shared v3.5.43
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**)
@vue/reactivity/dist/reactivity.esm-bundler.js:
(**
- * @vue/reactivity v3.5.42
+ * @vue/reactivity v3.5.43
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**)
@vue/runtime-core/dist/runtime-core.esm-bundler.js:
(**
- * @vue/runtime-core v3.5.42
+ * @vue/runtime-core v3.5.43
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**)
@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:
(**
- * @vue/runtime-dom v3.5.42
+ * @vue/runtime-dom v3.5.43
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**)
vue/dist/vue.runtime.esm-bundler.js:
(**
- * vue v3.5.42
+ * vue v3.5.43
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**)
diff --git a/src/config.ts b/src/config.ts
index d23a47e..cb171c0 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -2,6 +2,8 @@ import { resolve } from "path";
import { randomBytes } from "crypto";
interface Config {
+ RESEND_API_KEY: string;
+ EMAIL_FROM: string;
GITHUB_APP_ENABLED: boolean;
GITHUB_APP_NEW_CONNECTIONS: boolean;
GITHUB_OAUTH_ENABLED: boolean;
@@ -67,6 +69,8 @@ interface Config {
RATE_LIMIT: number;
}
const config: Config = {
+ RESEND_API_KEY: "",
+ EMAIL_FROM: "",
GITHUB_APP_ENABLED: false,
GITHUB_APP_NEW_CONNECTIONS: true,
GITHUB_OAUTH_ENABLED: true,
diff --git a/src/core/GitHubUtils.ts b/src/core/GitHubUtils.ts
index 84959b7..0a8c79f 100644
--- a/src/core/GitHubUtils.ts
+++ b/src/core/GitHubUtils.ts
@@ -1,4 +1,5 @@
import { refreshLegacyToken } from "./legacy-token-refresh";
+import { notifyOwnerAccessProblem } from "./owner-notifications";
import AnonymizedRepositoryModel from "./model/anonymizedRepositories/anonymizedRepositories.model";
import { isConnected } from "../server/database";
import { githubQuotaKey, githubTokenContext } from "./github-token-context";
@@ -289,7 +290,7 @@ export function octokit(token: string) {
export { waitForTokenGate };
-export async function checkToken(token: string) {
+export async function checkToken(token: string, ownerId?: string) {
const oct = octokit(token);
try {
const context = githubTokenContext(token);
@@ -304,6 +305,9 @@ export async function checkToken(token: string) {
) {
throw err;
}
+ if (ownerId && (err as { status?: number }).status === 401) {
+ void notifyOwnerAccessProblem(ownerId, "token_expired");
+ }
return false;
}
}
@@ -311,7 +315,12 @@ export async function checkToken(token: string) {
const checkedRepositoryTokens = new WeakMap();
export async function getToken(repository: Repository) {
- return measureStage("authorization", () => resolveRepositoryToken(repository));
+ try {
+ return await measureStage("authorization", () => resolveRepositoryToken(repository));
+ } catch (error) {
+ void notifyOwnerAccessProblem(repository.owner.id, error);
+ throw error;
+ }
}
async function resolveRepositoryToken(repository: Repository) {
@@ -344,7 +353,7 @@ async function resolveRepositoryToken(repository: Repository) {
return refreshed;
}
}
- const check = await checkToken(ownerAccessToken);
+ const check = await checkToken(ownerAccessToken, repository.owner.id);
if (check) {
checkedRepositoryTokens.set(repository, ownerAccessToken);
return ownerAccessToken;
diff --git a/src/core/Repository.ts b/src/core/Repository.ts
index b7d37af..969541f 100644
--- a/src/core/Repository.ts
+++ b/src/core/Repository.ts
@@ -1,3 +1,4 @@
+import { notifyOwnerAccessProblem } from "./owner-notifications";
import AnonymizedPathModel from "./model/anonymized-path";
import storage from "./storage";
import { contentGenerationPrefix, contentRetirementMarker } from "./content-generation";
@@ -223,7 +224,10 @@ export default class Repository {
const previousPrefix = contentGenerationPrefix(`${previousGeneration || "legacy"}:${this.model.anonymizeDate?.toISOString() || ""}`);
const streamed = this.model.source.type !== "Zip";
const source = this.source;
- const files = await source.getFiles(opt.progress);
+ const files = await source.getFiles(opt.progress).catch(error => {
+ void notifyOwnerAccessProblem(this.owner.id, error);
+ throw error;
+ });
const sourceWithTruncation = source as unknown as { truncatedFolderList?: string[] };
const truncatedFolders = Array.isArray(sourceWithTruncation.truncatedFolderList)
? [...sourceWithTruncation.truncatedFolderList] : [];
@@ -654,6 +658,9 @@ export default class Repository {
repo: this.source.data.repoName,
repositoryID: this.model.source.repositoryId,
force: true,
+ }).catch(error => {
+ void notifyOwnerAccessProblem(this.owner.id, error);
+ throw error;
});
// update the repository name if it has changed. Persist it
diff --git a/src/core/github-app.ts b/src/core/github-app.ts
index 83d0bea..1fb72eb 100644
--- a/src/core/github-app.ts
+++ b/src/core/github-app.ts
@@ -1,3 +1,4 @@
+import { notifyOwnerAccessProblem } from "./owner-notifications";
import { registerGitHubToken } from "./github-token-context";
import { createSign, randomUUID } from "crypto";
import { readFileSync } from "fs";
@@ -87,6 +88,14 @@ export async function saveAppGrant(ownerId: string, data: AppTokenResponse) {
}
export async function appUserToken(ownerId: string): Promise {
+ try { return await resolveAppUserToken(ownerId); }
+ catch (error) {
+ void notifyOwnerAccessProblem(ownerId, error);
+ throw error;
+ }
+}
+
+async function resolveAppUserToken(ownerId: string): Promise {
if (!config.GITHUB_APP_ENABLED) throw appError("github_app_disabled", 503);
const user = await UserModel.findById(ownerId).select("status externalIDs").lean();
if (!user || user.status === "removed" || user.status === "banned") throw appError();
diff --git a/src/core/model/users/users.schema.ts b/src/core/model/users/users.schema.ts
index e8f28fb..2541642 100644
--- a/src/core/model/users/users.schema.ts
+++ b/src/core/model/users/users.schema.ts
@@ -15,6 +15,8 @@ const UserSchema = new Schema({
type: String,
index: { unique: true },
},
+ emailPromptNever: { type: Boolean, default: false },
+ accessAlertAfter: { type: Date, select: false },
emails: [
{
email: { type: String },
diff --git a/src/core/model/users/users.types.ts b/src/core/model/users/users.types.ts
index ce18cbe..62b4f0d 100644
--- a/src/core/model/users/users.types.ts
+++ b/src/core/model/users/users.types.ts
@@ -20,6 +20,7 @@ export interface IUser {
createdAt?: Date;
lastUsedAt?: Date;
}[];
+ emailPromptNever?: boolean;
emails: {
email: string;
default: boolean;
diff --git a/src/core/owner-notifications.ts b/src/core/owner-notifications.ts
new file mode 100644
index 0000000..cf987eb
--- /dev/null
+++ b/src/core/owner-notifications.ts
@@ -0,0 +1,81 @@
+import config from "../config";
+import UserModel from "./model/users/users.model";
+import { createLogger } from "./logger";
+
+const logger = createLogger("owner-notifications");
+const DAY = 24 * 60 * 60 * 1000;
+const accessErrors = new Set([
+ "token_expired", "github_oauth_required", "github_app_reconnect_required",
+ "github_app_access_required", "repo_not_found", "repository_not_found",
+ "repo_not_accessible", "repo_access_limited", "repo_saml_enforcement",
+]);
+
+export function normalizeEmail(value: unknown): string | null {
+ if (typeof value !== "string") return null;
+ const email = value.trim();
+ // Accept one plain mailbox, never a display name or recipient list.
+ if (email.length > 254 || !/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9.-]*[a-zA-Z0-9])?\.[a-zA-Z]{2,}$/.test(email)) return null;
+ const local = email.split("@")[0];
+ if (local.length > 64 || local.startsWith(".") || local.endsWith(".") || email.includes("..")) return null;
+ return email;
+}
+
+export function notificationEmail(emails?: { email: string; default: boolean }[]): string {
+ return normalizeEmail(emails?.find(e => e.default)?.email) ||
+ emails?.map(e => normalizeEmail(e.email)).find(Boolean) || "";
+}
+
+export function isAccessFailure(error: unknown): boolean {
+ const code = typeof error === "string" ? error : error instanceof Error ? error.message : "";
+ if (!accessErrors.has(code)) return false;
+ if (error instanceof Error) {
+ const upstream = (error as Error & { cause?: { status?: number; httpStatus?: number } }).cause;
+ // Some legacy paths wrap timeouts or 5xx responses as repo_not_found.
+ // Only a confirmed access failure should prompt the owner to reconnect.
+ if (upstream && ![401, 403, 404].includes(upstream.status || upstream.httpStatus || 0)) return false;
+ const status = (error as Error & { httpStatus?: number }).httpStatus;
+ if (status && (status === 429 || status >= 500)) return false;
+ }
+ return true;
+}
+
+/** Best effort; mail and database failures must not change repository behavior. */
+export async function notifyOwnerAccessProblem(ownerId: string, error: unknown): Promise {
+ if (!config.RESEND_API_KEY || !config.EMAIL_FROM || !isAccessFailure(error)) return;
+ try {
+ const now = new Date();
+ // The atomic claim limits all repositories and workers to one email per owner
+ // per day. Claim before sending so concurrent requests cannot flood an inbox.
+ const owner = await UserModel.findOneAndUpdate({
+ _id: ownerId, status: { $nin: ["removed", "banned"] },
+ "emails.0": { $exists: true },
+ $or: [{ accessAlertAfter: { $exists: false } }, { accessAlertAfter: { $lte: now } }],
+ }, { $set: { accessAlertAfter: new Date(now.getTime() + DAY) } }, { new: true }).lean();
+ if (!owner) return;
+ const to = notificationEmail(owner.emails);
+ if (!to) return;
+ const base = /^https?:\/\//.test(config.APP_HOSTNAME) ? config.APP_HOSTNAME : `https://${config.APP_HOSTNAME}`;
+ const url = new URL("/connections", base).href;
+ try {
+ const response = await fetch("https://api.resend.com/emails", {
+ method: "POST",
+ headers: { Authorization: `Bearer ${config.RESEND_API_KEY}`, "Content-Type": "application/json" },
+ signal: AbortSignal.timeout(15000),
+ body: JSON.stringify({
+ from: config.EMAIL_FROM, to: [to],
+ subject: "Your Anonymous GitHub connection needs attention",
+ text: `Anonymous GitHub could not access GitHub using your connection, or could not read a repository.\n\nOpen your connections page to reconnect your account or restore repository access:\n${url}\n\nYou are receiving this email because you own content on Anonymous GitHub. You can change your alert address on the connections page.\n`,
+ }),
+ });
+ if (!response.ok) throw new Error("email_delivery_failed");
+ } catch {
+ // Permit retry on a later access failure, with a short backoff for outages.
+ await UserModel.updateOne({ _id: ownerId, accessAlertAfter: new Date(now.getTime() + DAY) },
+ { $set: { accessAlertAfter: new Date(now.getTime() + 10 * 60000) } });
+ logger.warn("owner access email delivery failed");
+ }
+ } catch {
+ // Do not log provider errors, which can contain credentials or addresses.
+ logger.warn("owner access email unavailable");
+ }
+}
diff --git a/src/core/redact-secrets.ts b/src/core/redact-secrets.ts
index 3f2c1fa..556394d 100644
--- a/src/core/redact-secrets.ts
+++ b/src/core/redact-secrets.ts
@@ -1,4 +1,4 @@
-const sensitive = /^(?:authorization|proxy-authorization|cookie|set-cookie|token|access_?tokens?|refresh_?token|encryptedToken|encryptedRefreshToken|private_?key|GITHUB_APP_PRIVATE_KEY|GITHUB_APP_CLIENT_SECRET|GITHUB_APP_WEBHOOK_SECRET|ciphertext|nonce|tag|password|client_?secret|CREDENTIAL_KEYS)$/i;
+const sensitive = /^(?:authorization|proxy-authorization|cookie|set-cookie|token|access_?tokens?|refresh_?token|encryptedToken|encryptedRefreshToken|private_?key|GITHUB_APP_PRIVATE_KEY|GITHUB_APP_CLIENT_SECRET|GITHUB_APP_WEBHOOK_SECRET|ciphertext|nonce|tag|password|client_?secret|CREDENTIAL_KEYS|RESEND_API_KEY)$/i;
export function redactSecrets(value: unknown, seen = new WeakSet