diff --git a/public/script/app.js b/public/script/app.js
index 9920698..dab5c40 100644
--- a/public/script/app.js
+++ b/public/script/app.js
@@ -1380,6 +1380,33 @@ export const anonymizeController = function (state, http, html, params, location
state.html_readme = "";
state.isUpdate = false;
+ state.previousConfigurations = [];
+ state.previousConfigurationId = "";
+ let previousRepositories;
+ const normalizedRepositoryName = name => String(name || "").replace(/\/$/, "").replace(/\.git$/i, "").toLowerCase();
+ async function findPreviousConfigurations() {
+ if (state.isUpdate || params.repoId || params.pullRequestId || params.gistId) return;
+ const request = { generation: sourceGeneration, url: state.sourceUrl.trim(), connection: state.githubConnection };
+ try {
+ // This endpoint only returns repositories the signed-in user can manage.
+ previousRepositories ||= http.get("/api/user/anonymized_repositories").then(res => res.data);
+ const repositories = await previousRepositories;
+ if (!isCurrentSource(request)) return;
+ const name = normalizedRepositoryName(parseRepoFullName(request.url));
+ state.previousConfigurations = repositories.filter(repo => repo.repoId && repo.options
+ && normalizedRepositoryName(repo.source?.fullName) === name)
+ .sort((a, b) => (Date.parse(b.anonymizeDate) || 0) - (Date.parse(a.anonymizeDate) || 0));
+ state.previousConfigurationId = state.previousConfigurations[0]?.repoId || "";
+ } catch (_) {
+ // A suggestion failure must not prevent creating a repository. Retry on the next URL selection.
+ previousRepositories = undefined;
+ }
+ }
+ state.existingConfigurationUrl = () => {
+ const previous = state.previousConfigurations.find(repo => repo.repoId === state.previousConfigurationId);
+ return previous ? "/anonymize/" + encodeURIComponent(previous.repoId) : null;
+ };
+
function getDefault(cb) {
http.get("/api/user/default").then((res) => {
const data = res.data;
@@ -1601,6 +1628,8 @@ export const anonymizeController = function (state, http, html, params, location
// Keep the same input focused until a complete GitHub URL can be loaded.
state.urlSelected = async (preserveDraft = false) => {
const generation = ++sourceGeneration;
+ state.previousConfigurations = [];
+ state.previousConfigurationId = "";
let o;
try { o = parseGithubUrl(state.sourceUrl.trim()); }
catch (_) {
@@ -1656,6 +1685,7 @@ export const anonymizeController = function (state, http, html, params, location
await getPrDetails();
} else {
state.detectedType = "repo";
+ void findPreviousConfigurations();
await Promise.all([getRepoDetails(), getReadme()]);
anonymizeReadme();
}
diff --git a/public/script/vendor.min.js b/public/script/vendor.min.js
index 92f36d4..0935a3d 100644
--- a/public/script/vendor.min.js
+++ b/public/script/vendor.min.js
@@ -1,30 +1,30 @@
-"use strict";(()=>{var kd=Object.defineProperty;var Ed=(e,t)=>{for(var n in t)kd(e,n,{get:t[n],enumerable:!0})};var me=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var he={notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js",markdown:"/script/markdown.44f2e93820.min.js",editor:"/script/editor.4f142d3adc.min.js"};function gr(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let n=new URLSearchParams(t);if([...n.keys()].length!==3||[...n.keys()].some(a=>!["clientId","intentId","token"].includes(a)))return null;let r=n.get("clientId"),s=n.get("intentId"),i=n.get("token");return!/^[a-f0-9]{32}$/.test(r||"")||!/^[a-f0-9]{32}$/.test(s||"")||!/^[a-f0-9]{64}$/.test(i||"")?null:{contract:"4open.artifacts/1",clientId:r,intentId:s,token:i}}function br(e,t){let{http:n,promises:r,window:s}=t,i=t.takeReviewHandoff(),a=i?{clientId:i.clientId,intentId:i.intentId}:null,u,f,w,h,k,m=!0,C,y=r.defer(),g=()=>[...s.crypto.getRandomValues(new Uint8Array(16))].map(L=>L.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:i?"":"Open a new artifact link from your submission. This link is missing or invalid."});let S=()=>m&&e.user?.username===k;function R(){m=!1,i=u=f=void 0,y.resolve(),s.clearTimeout(C)}e.on("dispose",R),e.on("routeLeave",R),e.watch(()=>e.user?.username,L=>{!k&&L?k=L:k&&L!==k&&(R(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let T=()=>({timeout:y.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":f}}),P=L=>L?.status===404?"Artifact linking is not available on this server.":L?.status===401?"Sign in, then open a new artifact link from your submission.":L?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!m||!i||e.busy||e.uncertain||e.saved||!e.user?.username)return;k=e.user.username;let L=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(L)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,u=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,s.clearTimeout(C),h||(h=g());try{let V=(await n.get("/api/review-consent/csrf",{timeout:y.promise})).data;if(!S())return;if(f=V.csrf,e.handoffEnabled=V.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(f||""))throw new Error("invalid_csrf");let M=(await n.post("/api/review-consent/preview",{repositoryId:L,intent:{...i,requestId:h}},T())).data;if(!S())return;if(!M||typeof M.ticket!="string"||!M.ticket||M.ticket.length>8192||typeof M.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(M.policy?.access)||!Number.isSafeInteger(M.policy.version)||!Number.isFinite(Date.parse(M.policy.retainUntil))||!Number.isFinite(Date.parse(M.expiresAt))||Date.parse(M.expiresAt)<=Date.now()||Date.parse(M.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");u=M.ticket,w=g(),e.preview={repositoryName:M.repositoryName,policy:{...M.policy},expiresAt:M.expiresAt},C=s.setTimeout(()=>{m&&(e.expired=!0)},Math.max(0,Date.parse(M.expiresAt)-Date.now()))}catch(V){S()&&(e.error=P(V))}finally{S()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!S()||e.busy||e.saved||!u||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let L=(await n.post("/api/review-consent/confirm",{ticket:u,requestId:w,acceptAccess:!0,acceptRetention:!0},T())).data;if(!S())return;if(L?.requestId!==w||!Number.isFinite(Date.parse(L.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,i=void 0,e.handoffEnabled||(u=void 0)}catch{S()&&(e.uncertain=!0,e.error="The confirmation was not verified. Retry with the same approval, or return to your submission to check its status.")}finally{S()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!S()||e.busy||!e.saved||!e.handoffEnabled||!u||!a)return;e.busy=!0,e.error="";let L,V=()=>{L?.remove(),s.removeEventListener("securitypolicyviolation",M)},M=se=>{se.violatedDirective?.startsWith("form-action")&&(V(),S()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let se=(await n.post("/api/review-consent/handoff",{ticket:u},T())).data;if(!S())return;let te=se?.completion,N=new URL(se?.callbackUrl);if(!te||Object.keys(te).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||te.contract!=="4open.artifacts/1"||te.clientId!==a.clientId||te.intentId!==a.intentId||!/^[a-f0-9]{64}$/.test(te.code||"")||!Number.isFinite(Date.parse(te.expiresAt))||Date.parse(te.expiresAt)<=Date.now()||Date.parse(te.expiresAt)>Date.now()+3e5||N.protocol!=="https:"||N.href!==se.callbackUrl||N.username||N.password||se.callbackUrl.includes("?")||se.callbackUrl.includes("#"))throw new Error("invalid_handoff");L=s.document.createElement("form"),L.method="POST",L.action=N.href;let I=s.document.createElement("input");I.type="hidden",I.name="completion",I.value=JSON.stringify(te),L.appendChild(I),s.document.body.appendChild(L),s.addEventListener("securitypolicyviolation",M),e.on("dispose",V),L.submit()}catch{V(),S()&&(e.busy=!1,e.error="The return to review could not be prepared. Retry from this page, or return to your submission to check its status.")}}}var yn=new Map,Sd=he;function oo(e){if(!yn.has(e)){let t=document.createElement("script");t.src=Sd[e];let n=new Promise((r,s)=>{t.onload=r,t.onerror=()=>{yn.delete(e),t.remove(),s(new Error(`Unable to load ${e}. Please retry.`))}});yn.set(e,n),document.head.appendChild(t)}return yn.get(e)}async function wr(){await oo("editor"),ace.config.set("basePath","/script/external/ace/")}function vo(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}var Oe={},xt=[],it=()=>{},ds=()=>!1,yo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),go=e=>e.startsWith("onUpdate:"),je=Object.assign,Vo=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},Nd=Object.prototype.hasOwnProperty,_e=(e,t)=>Nd.call(e,t),ve=Array.isArray,Bt=e=>qo(e)==="[object Map]",Et=e=>qo(e)==="[object Set]",kr=e=>qo(e)==="[object Date]";var be=e=>typeof e=="function",Fe=e=>typeof e=="string",ft=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",us=e=>(Re(e)||be(e))&&be(e.then)&&be(e.catch),Sr=Object.prototype.toString,qo=e=>Sr.call(e),cs=e=>qo(e).slice(8,-1),gn=e=>qo(e)==="[object Object]",bn=e=>Fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bo=vo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var wn=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Dd=/-\w/g,Ye=wn(e=>e.replace(Dd,t=>t.slice(1).toUpperCase())),Rd=/\B([A-Z])/g,At=wn(e=>e.replace(Rd,"-$1").toLowerCase()),no=wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mo=wn(e=>e?`on${no(e)}`:""),yt=(e,t)=>!Object.is(e,t),wo=(e,...t)=>{for(let n=0;n
{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ko=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var Er,$o=()=>Er||(Er=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ve(e){if(ve(e)){let t={};for(let n=0;nn.startsWith("/*")?"":n).split(Td).forEach(n=>{if(n){let r=n.split(Ad);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function A(e){let t="";if(Fe(e))t=e;else if(ve(e))for(let n=0;nCt(n,t))}var Rr=e=>!!(e&&e.__v_isRef===!0),c=e=>Fe(e)?e:e==null?"":ve(e)||Re(e)&&(e.toString===Sr||!be(e.toString))?Rr(e)?c(e.value):JSON.stringify(e,Tr,2):String(e),Tr=(e,t)=>Rr(t)?Tr(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[ls(r,i)+" =>"]=s,n),{})}:Et(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ls(n))}:ft(t)?ls(t):Re(t)&&!ve(t)&&!gn(t)?String(t):t,ls=(e,t="")=>{var n;return ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Md(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Je,zo=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Je&&(Je.active?(this.parent=Je,this.index=(Je.scopes||(Je.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){let r=this.scopes.slice();for(t=0,n=r.length;t0&&--this._on===0){if(Je===this)Je=this.prevScope;else{let t=Je;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(Fo){let t=Fo;for(Fo=void 0;t;){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Uo;){let t=Uo;for(Uo=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Mr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $r(e){let t,n=e.depsTail,r=n;for(;r;){let s=r.prevDep;r.version===-1?(r===n&&(n=s),Ss(r),$d(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function hs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Lr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Lr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ho)||(e.globalVersion=Ho,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!hs(e))))return;e.flags|=2;let t=e.dep,n=$e,r=_t;$e=e,_t=!0;try{Mr(e);let s=e.fn(e._value);(t.version===0||yt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{$e=n,_t=r,$r(e),e.flags&=-3}}function Ss(e,t=!1){let{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ss(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $d(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var _t=!0,Ur=[];function St(){Ur.push(_t),_t=!1}function Nt(){let e=Ur.pop();_t=e===void 0?!0:e}function Ar(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=$e;$e=void 0;try{t()}finally{$e=n}}}var Ho=0,vs=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Bo=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$e||!_t||$e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$e)n=this.activeLink=new vs($e,this),$e.deps?(n.prevDep=$e.depsTail,$e.depsTail.nextDep=n,$e.depsTail=n):$e.deps=$e.depsTail=n,Fr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=$e.depsTail,n.nextDep=void 0,$e.depsTail.nextDep=n,$e.depsTail=n,$e.deps===n&&($e.deps=r)}return n}trigger(t){this.version++,Ho++,this.notify(t)}notify(t){Cs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{_s()}}};function Fr(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Fr(r)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var ys=new WeakMap,ro=Symbol(""),gs=Symbol(""),jo=Symbol("");function Ze(e,t,n){if(_t&&$e){let r=ys.get(e);r||ys.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Bo),s.map=r,s.key=n),s.track()}}function It(e,t,n,r,s,i){let a=ys.get(e);if(!a){Ho++;return}let u=f=>{f&&f.trigger()};if(Cs(),t==="clear")a.forEach(u);else{let f=ve(e),w=f&&bn(n);if(f&&n==="length"){let h=Number(r);a.forEach((k,m)=>{(m==="length"||m===jo||!ft(m)&&m>=h)&&u(k)})}else switch((n!==void 0||a.has(void 0))&&u(a.get(n)),w&&u(a.get(jo)),t){case"add":f?w&&u(a.get("length")):(u(a.get(ro)),Bt(e)&&u(a.get(gs)));break;case"delete":f||(u(a.get(ro)),Bt(e)&&u(a.get(gs)));break;case"set":Bt(e)&&u(a.get(ro));break}}_s()}function Eo(e){let t=Ne(e);return t===e||(Ze(t,"iterate",jo),at(e))?t:gt(e)?Vt(e)?t.map(n=>Gt(mt(n))):t.map(Gt):t.map(mt)}function Wo(e){return Ze(e=Ne(e),"iterate",jo),e}function Ot(e,t){return gt(e)?Gt(Vt(e)?mt(t):t):mt(t)}var Ld={__proto__:null,[Symbol.iterator](){return fs(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return Eo(this).concat(...e.map(t=>ve(t)?Eo(t):t))},entries(){return fs(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return jt(this,"every",e,t,void 0,arguments)},filter(e,t){return jt(this,"filter",e,t,n=>n.map(r=>Ot(this,r)),arguments)},find(e,t){return jt(this,"find",e,t,n=>Ot(this,n),arguments)},findIndex(e,t){return jt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jt(this,"findLast",e,t,n=>Ot(this,n),arguments)},findLastIndex(e,t){return jt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ms(this,"includes",e)},indexOf(...e){return ms(this,"indexOf",e)},join(e){return Eo(this).join(e)},lastIndexOf(...e){return ms(this,"lastIndexOf",e)},map(e,t){return jt(this,"map",e,t,void 0,arguments)},pop(){return Lo(this,"pop")},push(...e){return Lo(this,"push",e)},reduce(e,...t){return Ir(this,"reduce",e,t)},reduceRight(e,...t){return Ir(this,"reduceRight",e,t)},shift(){return Lo(this,"shift")},some(e,t){return jt(this,"some",e,t,void 0,arguments)},splice(...e){return Lo(this,"splice",e)},toReversed(){return Eo(this).toReversed()},toSorted(e){return Eo(this).toSorted(e)},toSpliced(...e){return Eo(this).toSpliced(...e)},unshift(...e){return Lo(this,"unshift",e)},values(){return fs(this,"values",e=>Ot(this,e))}};function fs(e,t,n){let r=Wo(e),s=r[t],i=s.call(r);if(r!==e&&!at(e)){if(i[Symbol.toStringTag]==="Array Iterator"){let a=Object.create(Object.getPrototypeOf(i));return a.next=()=>Or(i.next(),n),s!==zr[t]&&Object.defineProperties(a,{return:{get(){let u=i.return;return typeof u=="function"?u.bind(i):u}},throw:{get(){let u=i.throw;return typeof u=="function"?u.bind(i):u}}}),a}i._next=i.next,i.next=()=>Or(i._next(),n)}return i}function Or(e,t){return e.done||(e.value=t(e.value)),e}var zr=Array.prototype;function jt(e,t,n,r,s,i){let a=Wo(e),u=a!==e&&!at(e),f=a[t];if(f!==zr[t]){let k=f.apply(e,i);return u?mt(k):k}let w=n;a!==e&&(u?w=function(k,m){return n.call(this,Ot(e,k),m,e)}:n.length>2&&(w=function(k,m){return n.call(this,k,m,e)}));let h=f.call(a,w,r);return u&&s?s(h):h}function Ir(e,t,n,r){let s=Wo(e),i=s!==e&&!at(e),a=n,u=!1;s!==e&&(i?(u=r.length===0,a=function(w,h,k){return u&&(u=!1,w=Ot(e,w)),n.call(this,w,Ot(e,h),k,e)}):n.length>3&&(a=function(w,h,k){return n.call(this,w,h,k,e)}));let f=s[t](a,...r);return u?Ot(e,f):f}function ms(e,t,n){let r=Ne(e);Ze(r,"iterate",jo);let s=r[t](...n);return(s===-1||s===!1)&&Yo(n[0])?(n[0]=Ne(n[0]),r[t](...n)):s}function Lo(e,t,n=[]){St(),Cs();let r=Ne(e)[t].apply(e,n);return _s(),Nt(),r}var Ud=vo("__proto__,__v_isRef,__isVue"),Hr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ft));function Fd(e){ft(e)||(e=String(e));let t=Ne(this);return Ze(t,"has",e),t.hasOwnProperty(e)}var Dn=class{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;let s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Jd:Gr:i?jr:Br).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let a=ve(t);if(!s){let f;if(a&&(f=Ld[n]))return f;if(n==="hasOwnProperty")return Fd}let u=Reflect.get(t,n,Xe(t)?t:r);if((ft(n)?Hr.has(n):Ud(n))||(s||Ze(t,"get",n),i))return u;if(Xe(u)){let f=a&&bn(n)?u:u.value;return s&&Re(f)?Tn(f):f}return Re(u)?s?Tn(u):ze(u):u}},Rn=class extends Dn{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n],a=ve(t)&&bn(n);if(!this._isShallow){let w=gt(i);if(!at(r)&&!gt(r)&&(i=Ne(i),r=Ne(r)),!a&&Xe(i)&&!Xe(r))return w||(i.value=r),!0}let u=a?Number(n)e,_n=e=>Reflect.getPrototypeOf(e);function jd(e,t,n){return function(...r){let s=this.__v_raw,i=Ne(s),a=Bt(i),u=e==="entries"||e===Symbol.iterator&&a,f=e==="keys"&&a,w=s[e](...r),h=n?ws:t?Gt:mt;return!t&&Ze(i,"iterate",f?gs:ro),je(Object.create(w),{next(){let{value:k,done:m}=w.next();return m?{value:k,done:m}:{value:u?[h(k[0]),h(k[1])]:h(k),done:m}}})}}function Sn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Gd(e,t){let n={get(s){let i=this.__v_raw,a=Ne(i),u=Ne(s);e||(yt(s,u)&&Ze(a,"get",s),Ze(a,"get",u));let{has:f}=_n(a),w=t?ws:e?Gt:mt;if(f.call(a,s))return w(i.get(s));if(f.call(a,u))return w(i.get(u));i!==a&&i.get(s)},get size(){let s=this.__v_raw;return!e&&Ze(Ne(s),"iterate",ro),s.size},has(s){let i=this.__v_raw,a=Ne(i),u=Ne(s);return e||(yt(s,u)&&Ze(a,"has",s),Ze(a,"has",u)),s===u?i.has(s):i.has(s)||i.has(u)},forEach(s,i){let a=this,u=a.__v_raw,f=Ne(u),w=t?ws:e?Gt:mt;return!e&&Ze(f,"iterate",ro),u.forEach((h,k)=>s.call(i,w(h),w(k),a))}};return je(n,e?{add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear")}:{add(s){let i=Ne(this),a=_n(i),u=Ne(s),f=!t&&!at(s)&&!gt(s)?u:s;return a.has.call(i,f)||yt(s,f)&&a.has.call(i,s)||yt(u,f)&&a.has.call(i,u)||(i.add(f),It(i,"add",f,f)),this},set(s,i){!t&&!at(i)&&!gt(i)&&(i=Ne(i));let a=Ne(this),{has:u,get:f}=_n(a),w=u.call(a,s);w||(s=Ne(s),w=u.call(a,s));let h=f.call(a,s);return a.set(s,i),w?yt(i,h)&&It(a,"set",s,i,h):It(a,"add",s,i),this},delete(s){let i=Ne(this),{has:a,get:u}=_n(i),f=a.call(i,s);f||(s=Ne(s),f=a.call(i,s));let w=u?u.call(i,s):void 0,h=i.delete(s);return f&&It(i,"delete",s,void 0,w),h},clear(){let s=Ne(this),i=s.size!==0,a=void 0,u=s.clear();return i&&It(s,"clear",void 0,void 0,a),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jd(s,e,t)}),n}function Ns(e,t){let n=Gd(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_isShallow"?t:s==="__v_raw"?r:Reflect.get(_e(n,s)&&s in r?n:r,s,i)}var Wd={get:Ns(!1,!1)},Kd={get:Ns(!1,!0)},Yd={get:Ns(!0,!1)};var Br=new WeakMap,jr=new WeakMap,Gr=new WeakMap,Jd=new WeakMap;function Qd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ze(e){return gt(e)?e:Ds(e,!1,zd,Wd,Br)}function Ko(e){return Ds(e,!1,Bd,Kd,jr)}function Tn(e){return Ds(e,!0,Hd,Yd,Gr)}function Ds(e,t,n,r,s){if(!Re(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let i=s.get(e);if(i)return i;let a=Qd(cs(e));if(a===0)return e;let u=new Proxy(e,a===2?r:n);return s.set(e,u),u}function Vt(e){return gt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function at(e){return!!(e&&e.__v_isShallow)}function Yo(e){return e?!!e.__v_raw:!1}function Ne(e){let t=e&&e.__v_raw;return t?Ne(t):e}function Rs(e){return!_e(e,"__v_skip")&&Object.isExtensible(e)&&kn(e,"__v_skip",!0),e}var mt=e=>Re(e)?ze(e):e,Gt=e=>Re(e)?Tn(e):e;function Xe(e){return e?e.__v_isRef===!0:!1}function xe(e){return Wr(e,!1)}function On(e){return Wr(e,!0)}function Wr(e,t){return Xe(e)?e:new ks(e,t)}var ks=class{constructor(t,n){this.dep=new Bo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ne(t),this._value=n?t:mt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){let n=this._rawValue,r=this.__v_isShallow||at(t)||gt(t);t=r?t:Ne(t),yt(t,n)&&(this._rawValue=t,this._value=r?t:mt(t),this.dep.trigger())}};function Wt(e){return Xe(e)?e.value:e}var Xd={get:(e,t,n)=>t==="__v_raw"?e:Wt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let s=e[t];return Xe(s)&&!Xe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function In(e){return Vt(e)?e:new Proxy(e,Xd)}var Es=class{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ho-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return qr(this,!0),!0}get value(){let t=this.dep.track();return Lr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Kr(e,t,n=!1){let r,s;return be(e)?r=e:(r=e.get,s=e.set),new Es(r,s,n)}var Nn={},An=new WeakMap,so;function Yr(e,t=!1,n=so){if(n){let r=An.get(n);r||An.set(n,r=[]),r.push(e)}}function Jr(e,t,n=Oe){let{immediate:r,deep:s,once:i,scheduler:a,augmentJob:u,call:f}=n,w=V=>{(n.onWarn||Md)("Invalid watch source: ",V,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},h=V=>s?V:at(V)||s===!1||s===0?Pt(V,1):Pt(V),k,m,C,y,g=!1,S=!1;if(Xe(e)?(m=()=>e.value,g=at(e)):Vt(e)?(m=()=>h(e),g=!0):ve(e)?(S=!0,g=e.some(V=>Vt(V)||at(V)),m=()=>e.map(V=>{if(Xe(V))return V.value;if(Vt(V))return h(V);if(be(V))return f?f(V,2):V()})):be(e)?t?m=f?()=>f(e,2):e:m=()=>{if(C){St();try{C()}finally{Nt()}}let V=so;so=k;try{return f?f(e,3,[y]):e(y)}finally{so=V}}:m=it,t&&s){let V=m,M=s===!0?1/0:s;m=()=>Pt(V(),M)}let R=Pr(),T=()=>{k.stop(),R&&R.active&&Vo(R.effects,k)};if(i&&t){let V=t;t=(...M)=>{try{return V(...M)}finally{T()}}}let P=S?new Array(e.length).fill(Nn):Nn,L=V=>{if(!(!(k.flags&1)||!k.dirty&&!V))if(t){let M=k.run();if(V||s||g||(S?M.some((se,te)=>yt(se,P[te])):yt(M,P))){let se=so;St();try{C&&C(),so=k;let te=[M,P===Nn?void 0:S&&P[0]===Nn?[]:P,y];P=M,f?f(t,3,te):t(...te)}finally{so=se,Nt()}}}else k.run()};return u&&u(L),k=new Co(m),k.scheduler=a?()=>a(L,!1):L,y=V=>Yr(V,!1,k),C=k.onStop=()=>{let V=An.get(k);if(V){if(f)f(V,4);else for(let M of V)M();An.delete(k)}},t?r?L(!0):P=k.run():a?a(L.bind(null,!0),!0):k.run(),T.pause=k.pause.bind(k),T.resume=k.resume.bind(k),T.stop=T,T}function Pt(e,t=1/0,n){if(t<=0||!Re(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Xe(e))Pt(e.value,t,n);else if(ve(e))for(let r=0;r{Pt(r,t,n)});else if(gn(e)){for(let r in e)Pt(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Pt(e[r],t,n)}return e}function an(e,t,n,r){try{return r?e(...r):e()}catch(s){ln(s,t,n)}}function bt(e,t,n,r){if(be(e)){let s=an(e,t,n,r);return s&&us(s)&&s.catch(i=>{ln(i,t,n)}),s}if(ve(e)){let s=[];for(let i=0;i>>1,s=st[r],i=tn(s);i=tn(n)?st.push(e):st.splice(ou(t),0,e),e.flags|=1,pi()}}function pi(){qn||(qn=ci.then(vi))}function fi(e){if(!ve(e))eo&&e.id===-1?eo.splice(_o+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1);else for(let t=0;t=t))continue;st.splice(r,1),r=e?r-1:Dt,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function hi(e,t,n=0){if(Mt.length){let r=Mt,s=0;if(t){r=[];for(let a=0;atn(a)-tn(u));if(Mt.length=s,eo){for(let a=0;ae.id==null?e.flags&2?-1:1/0:e.id;function vi(e){let t=it;try{for(Dt=0;Dt{r._d&&Un(-1);let i=Mn(t),a=lo.length,u;try{u=e(...s)}finally{for(let f=lo.length;f>a;f--)Wi();Mn(i),r._d&&Un(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function D(e,t){if(ht===null)return e;let n=Kn(ht),r=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&be(t)?t.call(r&&r.proxy):t}}var ru=Symbol.for("v-scx"),iu=()=>{{let e=dt(ru);return e}};function He(e,t,n){return gi(e,t,n)}function gi(e,t,n=Oe){let{immediate:r,deep:s,flush:i,once:a}=n,u=je({},n),f=t&&r||!t&&i!=="post",w;if(Do){if(i==="sync"){let C=iu();w=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){let C=()=>{};return C.stop=it,C.resume=it,C.pause=it,C}}let h=et;u.call=(C,y,g)=>bt(C,h,y,g);let k=!1;i==="post"?u.scheduler=C=>{C.i=h,lt(C,h&&h.suspense)}:i!=="sync"&&(k=!0,u.scheduler=(C,y)=>{y?C():Fs(C)}),u.augmentJob=C=>{t&&(C.flags|=4),k&&(C.flags|=2,h&&(C.id=h.uid,C.i=h))};let m=Jr(e,t,u);return Do&&(w?w.push(m):f&&m()),m}function au(e,t,n){let r=this.proxy,s=Fe(e)?e.includes(".")?bi(r,e):()=>r[e]:e.bind(r,r),i;be(t)?i=t:(i=t.handler,n=t);let a=cn(this),u=gi(s,i.bind(r),n);return a(),u}function bi(e,t){let n=t.split(".");return()=>{let r=e;for(let s=0;se.__isTeleport;var As=Symbol("_leaveCb");function du(e){let t=e[0];if(e.length>1){let n=!1;for(let r of e)if(r.type!==Rt){t=r,n=!0;break}}return t}function wi(e){if(!Bn(e))return Hn(e.type)&&e.children?du(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&be(n.default))return n.default()}}function on(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;on(Hn(n.type)&&wi(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===Q&&ve(e.children)){let n=Ii(e.children,!1);n&&on(n,t)}}function Vs(e){if(e.component)return Vs(e.component.subTree);if(e.type===Q){let t=ve(e.children)&&Ii(e.children,!1);return t?Vs(t):void 0}if(e.type!==Rt)return e}function dn(e,t){return be(e)?je({name:e.name},t,{setup:e}):e}function zs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Qr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var $n=new WeakMap;function Xo(e,t,n,r,s=!1){if(ve(e)){e.forEach((g,S)=>Xo(g,t&&(ve(t)?t[S]:t),n,r,s));return}if(Zo(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Xo(e,t,n,r.component.subTree);return}let i=r.shapeFlag&4?Kn(r.component):r.el,a=s?null:i,{i:u,r:f}=e,w=t&&t.r,h=u.refs===Oe?u.refs={}:u.refs,k=u.setupState,m=Ne(k),C=k===Oe?ds:g=>Qr(h,g)?!1:_e(m,g),y=(g,S)=>!(S&&Qr(h,S));if(w!=null&&w!==f){if(Xr(t),Fe(w))h[w]=null,C(w)&&(k[w]=null);else if(Xe(w)){let g=t;y(w,g.k)&&(w.value=null),g.k&&(h[g.k]=null)}}if(be(f))an(f,u,12,[a,h]);else{let g=Fe(f),S=Xe(f);if(g||S){let R=()=>{if(e.f){let T=g?C(f)?k[f]:h[f]:y(f)||!e.k?f.value:h[e.k];if(s)ve(T)&&Vo(T,i);else if(ve(T))T.includes(i)||T.push(i);else if(g)h[f]=[i],C(f)&&(k[f]=h[f]);else{let P=[i];y(f,e.k)&&(f.value=P),e.k&&(h[e.k]=P)}}else g?(h[f]=a,C(f)&&(k[f]=a)):S&&(y(f,e.k)&&(f.value=a),e.k&&(h[e.k]=a))};if(a){let T=()=>{R(),$n.delete(e)};T.id=-1,$n.set(e,T),lt(T,n)}else Xr(e),R()}}}function Xr(e){let t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}var Zr=e=>e.nodeType===8;var n$=$o().requestIdleCallback||(e=>setTimeout(e,1)),s$=$o().cancelIdleCallback||(e=>clearTimeout(e));function uu(e,t){if(Zr(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Zr(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}var Zo=e=>!!e.type.__asyncLoader;function ki(e){be(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:a,suspensible:u=!0,onError:f}=e,w=null,h,k=0,m=()=>(k++,w=null,C()),C=()=>{let y;return w||(y=w=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),f)return new Promise((S,R)=>{f(g,()=>S(m()),()=>R(g),k+1)});throw g}).then(g=>y!==w&&w?w:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),h=g,g)))};return dn({name:"AsyncComponentWrapper",__asyncLoader:C,__asyncHydrate(y,g,S){let R=y.isConnected,T=!1;(g.bu||(g.bu=[])).push(()=>T=!0);let P=()=>{T||!y.parentNode||R&&!y.isConnected||S()},L=i?()=>{let V=i(P,M=>uu(y,M));V&&(g.bum||(g.bum=[])).push(V)}:P;h?L():C().then(()=>!g.isUnmounted&&L())},get __asyncResolved(){return h},setup(){let y=et;if(zs(y),h)return()=>Pn(h,y);let g=V=>{w=null,ln(V,y,13,!r)};if(u&&y.suspense||Do)return C().then(V=>()=>Pn(V,y)).catch(V=>(g(V),()=>r?Ce(r,{error:V}):null));let S=xe(!1),R=xe(),T=xe(!!s),P,L;return un(()=>{P!=null&&clearTimeout(P),L!=null&&clearTimeout(L)}),s&&(L=setTimeout(()=>{y.isUnmounted||(T.value=!1)},s)),a!=null&&(P=setTimeout(()=>{if(!y.isUnmounted&&!S.value&&!R.value){let V=new Error(`Async component timed out after ${a}ms.`);g(V),R.value=V}},a)),C().then(()=>{y.isUnmounted||(S.value=!0,y.parent&&Bn(y.parent.vnode)&&y.parent.update())}).catch(V=>{if(y.isUnmounted){w=null;return}g(V),R.value=V}),()=>{if(S.value&&h)return Pn(h,y);if(R.value&&r)return Ce(r,{error:R.value});if(n&&!T.value)return Pn(n,y)}}})}function Pn(e,t){let{ref:n,props:r,children:s,ce:i}=t.vnode,a=Ce(e,r,s);return a.ref=n,a.ce=i,delete t.vnode.ce,a}var Bn=e=>e.type.__isKeepAlive;function Ei(e,t){_i(e,"a",t)}function Ci(e,t){_i(e,"da",t)}function _i(e,t,n=et){let r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(jn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Bn(s.parent.vnode)&&cu(r,t,n,s),s=s.parent}}function cu(e,t,n,r){let s=jn(t,e,r,!0);un(()=>{Vo(r[t],s)},n)}function jn(e,t,n=et,r=!1){if(n){let s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{St();let u=cn(n),f=bt(t,n,e,a);return u(),Nt(),f});return r?s.unshift(i):s.push(i),i}}var Yt=e=>(t,n=et)=>{(!Do||e==="sp")&&jn(e,(...r)=>t(...r),n)},pu=Yt("bm"),Lt=Yt("m"),Si=Yt("bu"),Ni=Yt("u"),co=Yt("bum"),un=Yt("um"),fu=Yt("sp"),mu=Yt("rtg"),hu=Yt("rtc");function vu(e,t=et){jn("ec",e,t)}var Di="components",yu="directives";function Ge(e,t){return Ri(Di,e,!0,t)||e}var gu=Symbol.for("v-ndc");function ge(e){return Ri(yu,e)}function Ri(e,t,n=!0,r=!1){let s=ht||et;if(s){let i=s.type;if(e===Di){let u=tc(i,!1);if(u&&(u===t||u===Ye(t)||u===no(Ye(t))))return i}let a=xr(s[e]||i[e],t)||xr(s.appContext[e],t);return!a&&r?i:a}}function xr(e,t){return e&&(e[t]||e[Ye(t)]||e[no(Ye(t))])}function re(e,t,n,r){let s,i=n&&n[r],a=ve(e);if(a||Fe(e)){let u=a&&Vt(e),f=!1,w=!1;u&&(f=!at(e),w=gt(e),e=Wo(e)),s=new Array(e.length);for(let h=0,k=e.length;ht(u,f,void 0,i&&i[f]));else{let u=Object.keys(e);s=new Array(u.length);for(let f=0,w=u.length;fe?Qi(e)?Kn(e):qs(e.parent):null;var xo=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>qs(e.parent),$root:e=>qs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hs(e),$forceUpdate:e=>e.f||(e.f=()=>{Fs(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>au.bind(e)});var Os=(e,t)=>e!==Oe&&!e.__isScriptSetup&&_e(e,t),bu={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:n,setupState:r,data:s,props:i,accessCache:a,type:u,appContext:f}=e;if(t[0]!=="$"){let m=a[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Os(r,t))return a[t]=1,r[t];if(s!==Oe&&_e(s,t))return a[t]=2,s[t];if(_e(i,t))return a[t]=3,i[t];if(n!==Oe&&_e(n,t))return a[t]=4,n[t];Ms&&(a[t]=0)}}let w=xo[t],h,k;if(w)return t==="$attrs"&&Ze(e.attrs,"get",""),w(e);if((h=u.__cssModules)&&(h=h[t]))return h;if(n!==Oe&&_e(n,t))return a[t]=4,n[t];if(k=f.config.globalProperties,_e(k,t))return k[t]},set({_:e},t,n){let{data:r,setupState:s,ctx:i}=e;return Os(s,t)?(s[t]=n,!0):r!==Oe&&_e(r,t)?(r[t]=n,!0):_e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:a}},u){let f;return!!(n[u]||e!==Oe&&u[0]!=="$"&&_e(e,u)||Os(t,u)||_e(i,u)||_e(r,u)||_e(xo,u)||_e(s.config.globalProperties,u)||(f=a.__cssModules)&&f[u])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_e(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ei(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}var Ms=!0;function wu(e){let t=Hs(e),n=e.proxy,r=e.ctx;Ms=!1,t.beforeCreate&&ti(t.beforeCreate,e,"bc");let{data:s,computed:i,methods:a,watch:u,provide:f,inject:w,created:h,beforeMount:k,mounted:m,beforeUpdate:C,updated:y,activated:g,deactivated:S,beforeDestroy:R,beforeUnmount:T,destroyed:P,unmounted:L,render:V,renderTracked:M,renderTriggered:se,errorCaptured:te,serverPrefetch:N,expose:I,inheritAttrs:Y,components:Z,directives:ee,filters:J}=t;if(w&&ku(w,r,null),a)for(let fe in a){let ae=a[fe];be(ae)&&(r[fe]=ae.bind(n))}if(s){let fe=s.call(n,n);Re(fe)&&(e.data=ze(fe))}if(Ms=!0,i)for(let fe in i){let ae=i[fe],Ae=be(ae)?ae.bind(n,n):be(ae.get)?ae.get.bind(n,n):it,Se=!be(ae)&&be(ae.set)?ae.set.bind(n):it,Le=tt({get:Ae,set:Se});Object.defineProperty(r,fe,{enumerable:!0,configurable:!0,get:()=>Le.value,set:De=>Le.value=De})}if(u)for(let fe in u)Ti(u[fe],r,n,fe);if(f){let fe=be(f)?f.call(n):f;Reflect.ownKeys(fe).forEach(ae=>{uo(ae,fe[ae])})}h&&ti(h,e,"c");function pe(fe,ae){ve(ae)?ae.forEach(Ae=>fe(Ae.bind(n))):ae&&fe(ae.bind(n))}if(pe(pu,k),pe(Lt,m),pe(Si,C),pe(Ni,y),pe(Ei,g),pe(Ci,S),pe(vu,te),pe(hu,M),pe(mu,se),pe(co,T),pe(un,L),pe(fu,N),ve(I))if(I.length){let fe=e.exposed||(e.exposed={});I.forEach(ae=>{Object.defineProperty(fe,ae,{get:()=>n[ae],set:Ae=>n[ae]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});V&&e.render===it&&(e.render=V),Y!=null&&(e.inheritAttrs=Y),Z&&(e.components=Z),ee&&(e.directives=ee),N&&zs(e)}function ku(e,t,n=it){ve(e)&&(e=$s(e));for(let r in e){let s=e[r],i;Re(s)?"default"in s?i=dt(s.from||r,s.default,!0):i=dt(s.from||r):i=dt(s),Xe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function ti(e,t,n){bt(ve(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ti(e,t,n,r){let s=r.includes(".")?bi(n,r):()=>n[r];if(Fe(e)){let i=t[e];be(i)&&He(s,i)}else if(be(e))He(s,e.bind(n));else if(Re(e))if(ve(e))e.forEach(i=>Ti(i,t,n,r));else{let i=be(e.handler)?e.handler.bind(n):t[e.handler];be(i)&&He(s,i,e)}}function Hs(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t),f;return u?f=u:!s.length&&!n&&!r?f=t:(f={},s.length&&s.forEach(w=>Ln(f,w,a,!0)),Ln(f,t,a)),Re(t)&&i.set(t,f),f}function Ln(e,t,n,r=!1){let{mixins:s,extends:i}=t;i&&Ln(e,i,n,!0),s&&s.forEach(a=>Ln(e,a,n,!0));for(let a in t)if(!(r&&a==="expose")){let u=Eu[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var Eu={data:oi,props:ni,emits:ni,methods:Qo,computed:Qo,beforeCreate:nt,created:nt,beforeMount:nt,mounted:nt,beforeUpdate:nt,updated:nt,beforeDestroy:nt,beforeUnmount:nt,destroyed:nt,unmounted:nt,activated:nt,deactivated:nt,errorCaptured:nt,serverPrefetch:nt,components:Qo,directives:Qo,watch:_u,provide:oi,inject:Cu};function oi(e,t){return t?e?function(){return je(be(e)?e.call(this,this):e,be(t)?t.call(this,this):t)}:t:e}function Cu(e,t){return Qo($s(e),$s(t))}function $s(e){if(ve(e)){let t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${At(t)}Modifiers`];function Ru(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||Oe,s=n,i=t.startsWith("update:"),a=i&&Du(r,t.slice(7));a&&(a.trim&&(s=n.map(h=>Fe(h)?h.trim():h)),a.number&&(s=s.map(ko)));let u,f=r[u=Mo(t)]||r[u=Mo(Ye(t))];!f&&i&&(f=r[u=Mo(At(t))]),f&&bt(f,e,6,s);let w=r[u+"Once"];if(w){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,bt(w,e,6,s)}}var Tu=new WeakMap;function Oi(e,t,n=!1){let r=n?Tu:t.emitsCache,s=r.get(e);if(s!==void 0)return s;let i=e.emits,a={},u=!1;if(!be(e)){let f=w=>{let h=Oi(w,t,!0);h&&(u=!0,je(a,h))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!u?(Re(e)&&r.set(e,null),null):(ve(i)?i.forEach(f=>a[f]=null):je(a,i),Re(e)&&r.set(e,a),a)}function Gn(e,t){return!e||!yo(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),_e(e,t[0].toLowerCase()+t.slice(1))||_e(e,At(t))||_e(e,t))}function Is(e){let{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:a,attrs:u,emit:f,render:w,renderCache:h,props:k,data:m,setupState:C,ctx:y,inheritAttrs:g}=e,S=Mn(e),R,T;try{if(n.shapeFlag&4){let V=s||r,M=V;R=$t(w.call(M,V,h,k,C,m,y)),T=u}else{let V=t;R=$t(V.length>1?V(k,{attrs:u,slots:a,emit:f}):V(k,null)),T=t.props?u:Au(u)}}catch(V){lo.length=0,ln(V,e,1),R=Ce(Rt)}let P=R,L;if(T&&g!==!1){let V=Object.keys(T),{shapeFlag:M}=P;V.length&&M&7&&(i&&V.some(go)&&(T=Ou(T,i)),P=No(P,T,!1,!0))}if(n.dirs&&(P=No(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition){let V=Hn(P.type)&&wi(P)||P;on(V,n.transition)}return R=P,Mn(S),R}function Ii(e,t=!0){let n;for(let r=0;r{let t;for(let n in e)(n==="class"||n==="style"||yo(n))&&((t||(t={}))[n]=e[n]);return t},Ou=(e,t)=>{let n={};for(let r in e)(!go(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Iu(e,t,n){let{props:r,children:s,component:i}=e,{props:a,children:u,patchFlag:f}=t,w=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?si(r,a,w):!!a;if(f&8){let h=t.dynamicProps;for(let k=0;kObject.create(Vi),Mi=e=>Object.getPrototypeOf(e)===Vi;function Vu(e,t,n,r=!1){let s={},i=qi();e.propsDefaults=Object.create(null),$i(e,t,s,i);for(let a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:Ko(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function qu(e,t,n,r){let{props:s,attrs:i,vnode:{patchFlag:a}}=e,u=Ne(s),[f]=e.propsOptions,w=!1;if((r||a>0)&&!(a&16)){if(a&8){let h=e.vnode.dynamicProps;for(let k=0;k{f=!0;let[m,C]=Li(k,t,!0);je(a,m),C&&u.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!i&&!f)return Re(e)&&r.set(e,xt),xt;if(ve(i))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",js=e=>ve(e)?e.map($t):[$t(e)],$u=(e,t,n)=>{if(t._n)return t;let r=su((...s)=>js(t(...s)),n);return r._c=!1,r},Ui=(e,t,n)=>{let r=e._ctx;for(let s in e){if(Bs(s))continue;let i=e[s];if(be(i))t[s]=$u(s,i,r);else if(i!=null){let a=js(i);t[s]=()=>a}}},Fi=(e,t)=>{let n=js(t);e.slots.default=()=>n},zi=(e,t,n)=>{for(let r in t)(n||!Bs(r))&&(e[r]=t[r])},Lu=(e,t,n)=>{let r=e.slots=qi();if(e.vnode.shapeFlag&32){let s=t._;s?(zi(r,t,n),n&&kn(r,"_",s,!0)):Ui(t,r)}else t&&Fi(e,t)},Uu=(e,t,n)=>{let{vnode:r,slots:s}=e,i=!0,a=Oe;if(r.shapeFlag&32){let u=t._;u?n&&u===1?i=!1:zi(s,t,n):(i=!t.$stable,Ui(t,s)),a=t}else t&&(Fi(e,t),a={default:1});if(i)for(let u in s)!Bs(u)&&a[u]==null&&delete s[u]};function Fu(){let e=[]}var lt=ju;function Hi(e){return zu(e)}function zu(e,t){Fu();let n=$o();n.__VUE__=!0;let{insert:r,remove:s,patchProp:i,createElement:a,createText:u,createComment:f,setText:w,setElementText:h,parentNode:k,nextSibling:m,setScopeId:C=it,insertStaticContent:y}=e,g=(v,E,O,H=null,F=null,j=null,z=void 0,G=null,x=!!E.dynamicChildren)=>{if(v===E)return;v&&!Jo(v,E)&&(H=oe(v),qe(v,F,j,!0),v=null),E.patchFlag===-2&&(x=!1,E.dynamicChildren=null),E.dynamicChildren&&v&&v.dynamicChildren&&v.dynamicChildren.hasOnce&&(E.dynamicChildren===xt&&(E.dynamicChildren=[]),E.dynamicChildren.hasOnce=!0);let{type:W,ref:ue,shapeFlag:ne}=E;switch(W){case Wn:S(v,E,O,H);break;case Rt:R(v,E,O,H);break;case en:v==null&&T(E,O,H,z);break;case Q:ee(v,E,O,H,F,j,z,G,x);break;default:ne&1?M(v,E,O,H,F,j,z,G,x):ne&6?J(v,E,O,H,F,j,z,G,x):(ne&64||ne&128)&&W.process(v,E,O,H,F,j,z,G,x,_)}ue!=null&&F?Xo(ue,v&&v.ref,j,E||v,!E):ue==null&&v&&v.ref!=null&&Xo(v.ref,null,j,v,!0)},S=(v,E,O,H)=>{if(v==null)r(E.el=u(E.children),O,H);else{let F=E.el=v.el;E.children!==v.children&&w(F,E.children)}},R=(v,E,O,H)=>{v==null?r(E.el=f(E.children||""),O,H):E.el=v.el},T=(v,E,O,H)=>{[v.el,v.anchor]=y(v.children,E,O,H,v.el,v.anchor)},P=(v,E,O,H)=>{if(E.children!==v.children){let F=m(v.anchor);V(v),[E.el,E.anchor]=y(E.children,O,F,H)}else E.el=v.el,E.anchor=v.anchor},L=({el:v,anchor:E},O,H)=>{let F;for(;v&&v!==E;)F=m(v),r(v,O,H),v=F;r(E,O,H)},V=({el:v,anchor:E})=>{let O;for(;v&&v!==E;)O=m(v),s(v),v=O;s(E)},M=(v,E,O,H,F,j,z,G,x)=>{if(E.type==="svg"?z="svg":E.type==="math"&&(z="mathml"),v==null)se(E,O,H,F,j,z,G,x);else{let W=v.el&&v.el._isVueCE?v.el:null;try{W&&W._beginPatch(),I(v,E,F,j,z,G,x)}finally{W&&W._endPatch()}}},se=(v,E,O,H,F,j,z,G)=>{let x,W,{props:ue,shapeFlag:ne,transition:de,dirs:ye}=v;if(x=v.el=a(v.type,j,ue&&ue.is,ue),ne&8?h(x,v.children):ne&16&&N(v.children,x,null,H,F,Ps(v,j),z,G),ye&&io(v,null,H,"created"),te(x,v,v.scopeId,z,H),ue){for(let Me in ue)Me!=="value"&&!bo(Me)&&i(x,Me,null,ue[Me],j,H);"value"in ue&&i(x,"value",null,ue.value,j),(W=ue.onVnodeBeforeMount)&&qt(W,H,v)}ye&&io(v,null,H,"beforeMount");let ke=Hu(F,de);ke&&de.beforeEnter(x),r(x,E,O),((W=ue&&ue.onVnodeMounted)||ke||ye)&<(()=>{let Pe;W&&qt(W,H,v),ke&&de.enter(x),ye&&io(v,null,H,"mounted")},F)},te=(v,E,O,H,F)=>{if(O&&C(v,O),H)for(let j=0;j{for(let W=x;W{let G=E.el=v.el,{patchFlag:x,dynamicChildren:W,dirs:ue}=E;x|=v.patchFlag&16;let ne=v.props||Oe,de=E.props||Oe,ye;if(O&&ao(O,!1),(ye=de.onVnodeBeforeUpdate)&&qt(ye,O,E,v),ue&&io(E,v,O,"beforeUpdate"),O&&ao(O,!0),W&&(!v.dynamicChildren||v.dynamicChildren.length!==W.length)&&(x=0,z=!1,W=null),(ne.innerHTML&&de.innerHTML==null||ne.textContent&&de.textContent==null)&&h(G,""),W?Y(v.dynamicChildren,W,G,O,H,Ps(E,F),j):z||Ae(v,E,G,null,O,H,Ps(E,F),j,!1),x>0){if(x&16)Z(G,ne,de,O,F);else if(x&2&&ne.class!==de.class&&i(G,"class",null,de.class,F),x&4&&i(G,"style",ne.style,de.style,F),x&8){let ke=E.dynamicProps;for(let Me=0;Me{ye&&qt(ye,O,E,v),ue&&io(E,v,O,"updated")},H)},Y=(v,E,O,H,F,j,z)=>{for(let G=0;G{if(E!==O){if(E!==Oe)for(let j in E)!bo(j)&&!(j in O)&&i(v,j,E[j],null,F,H);for(let j in O){if(bo(j))continue;let z=O[j],G=E[j];z!==G&&j!=="value"&&i(v,j,G,z,F,H)}"value"in O&&i(v,"value",E.value,O.value,F)}},ee=(v,E,O,H,F,j,z,G,x)=>{let W=E.el=v?v.el:u(""),ue=E.anchor=v?v.anchor:u(""),{patchFlag:ne,dynamicChildren:de,slotScopeIds:ye}=E;ye&&(G=G?G.concat(ye):ye),v==null?(r(W,O,H),r(ue,O,H),N(E.children||[],O,ue,F,j,z,G,x)):ne>0&&ne&64&&de&&v.dynamicChildren&&v.dynamicChildren.length===de.length?(Y(v.dynamicChildren,de,O,F,j,z,G),(E.key!=null||F&&E===F.subTree)&&Bi(v,E,!0)):Ae(v,E,O,ue,F,j,z,G,x)},J=(v,E,O,H,F,j,z,G,x)=>{E.slotScopeIds=G,v==null?E.shapeFlag&512?F.ctx.activate(E,O,H,z,x):ie(E,O,H,F,j,z,x):pe(v,E,x)},ie=(v,E,O,H,F,j,z)=>{let G=v.component=Qu(v,H,F);if(Bn(v)&&(G.ctx.renderer=_),Xu(G,!1,z),G.asyncDep){if(F&&F.registerDep(G,fe,z,j),!v.el){let x=G.subTree=Ce(Rt);R(null,x,E,O),v.placeholder=x.el}}else fe(G,v,E,O,F,j,z)},pe=(v,E,O)=>{let H=E.component=v.component;if(Iu(v,E,O))if(H.asyncDep&&!H.asyncResolved){E.el=v.el,E.placeholder=v.placeholder,ae(H,E,O);return}else H.next=E,H.update();else E.el=v.el,E.placeholder=v.placeholder,H.vnode=E},fe=(v,E,O,H,F,j,z)=>{let G=()=>{if(v.isMounted){let{next:ne,bu:de,u:ye,parent:ke,vnode:Me}=v;{let ct=ji(v);if(ct){ne&&(ne.el=Me.el,ae(v,ne,z)),ct.asyncDep.then(()=>{lt(()=>{v.isUnmounted||W()},F)});return}}let Pe=ne,We;ao(v,!1),ne?(ne.el=Me.el,ae(v,ne,z)):ne=Me,de&&wo(de),(We=ne.props&&ne.props.onVnodeBeforeUpdate)&&qt(We,ke,ne,Me),ao(v,!0);let Ke=Is(v),kt=v.subTree;v.subTree=Ke,g(kt,Ke,k(kt.el),oe(kt),v,F,j),ne.el=Ke.el,Pe===null&&Pu(v,Ke.el),ye&<(ye,F),(We=ne.props&&ne.props.onVnodeUpdated)&<(()=>qt(We,ke,ne,Me),F)}else{let ne,{el:de,props:ye}=E,{bm:ke,m:Me,parent:Pe,root:We,type:Ke}=v,kt=Zo(E);if(ao(v,!1),ke&&wo(ke),!kt&&(ne=ye&&ye.onVnodeBeforeMount)&&qt(ne,Pe,E),ao(v,!0),de&&B){let ct=()=>{v.subTree=Is(v),B(de,v.subTree,v,F,null)};kt&&Ke.__asyncHydrate?Ke.__asyncHydrate(de,v,ct):ct()}else{We.ce&&We.ce._hasShadowRoot()&&We.ce._injectChildStyle(Ke,v.parent?v.parent.type:void 0);let ct=v.subTree=Is(v);g(null,ct,O,H,v,F,j),E.el=ct.el}if(Me&<(Me,F),!kt&&(ne=ye&&ye.onVnodeMounted)){let ct=E;lt(()=>qt(ne,Pe,ct),F)}(E.shapeFlag&256||Pe&&Zo(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&v.a&<(v.a,F),v.isMounted=!0,E=O=H=null}};v.scope.on();let x=v.effect=new Co(G);v.scope.off();let W=v.update=x.run.bind(x),ue=v.job=x.runIfDirty.bind(x);ue.i=v,ue.id=v.uid,x.scheduler=()=>Fs(ue),ao(v,!0),W()},ae=(v,E,O)=>{E.component=v;let H=v.vnode.props;v.vnode=E,v.next=null,qu(v,E.props,H,O),Uu(v,E.children,O),St(),mi(v),Nt()},Ae=(v,E,O,H,F,j,z,G,x=!1)=>{let W=v&&v.children,ue=v?v.shapeFlag:0,ne=E.children,{patchFlag:de,shapeFlag:ye}=E;if(de>0){if(de&128){Le(W,ne,O,H,F,j,z,G,x);return}else if(de&256){Se(W,ne,O,H,F,j,z,G,x);return}}ye&8?(ue&16&&U(W,F,j),ne!==W&&h(O,ne)):ue&16?ye&16?Le(W,ne,O,H,F,j,z,G,x):U(W,F,j,!0):(ue&8&&h(O,""),ye&16&&N(ne,O,H,F,j,z,G,x))},Se=(v,E,O,H,F,j,z,G,x)=>{v=v||xt,E=E||xt;let W=v.length,ue=E.length,ne=Math.min(W,ue),de;for(de=0;deue?U(v,F,j,!0,!1,ne):N(E,O,H,F,j,z,G,x,ne)},Le=(v,E,O,H,F,j,z,G,x)=>{let W=0,ue=E.length,ne=v.length-1,de=ue-1;for(;W<=ne&&W<=de;){let ye=v[W],ke=E[W]=x?Kt(E[W]):$t(E[W]);if(Jo(ye,ke))g(ye,ke,O,null,F,j,z,G,x);else break;W++}for(;W<=ne&&W<=de;){let ye=v[ne],ke=E[de]=x?Kt(E[de]):$t(E[de]);if(Jo(ye,ke))g(ye,ke,O,null,F,j,z,G,x);else break;ne--,de--}if(W>ne){if(W<=de){let ye=de+1,ke=yede)for(;W<=ne;)qe(v[W],F,j,!0),W++;else{let ye=W,ke=W,Me=new Map;for(W=ke;W<=de;W++){let pt=E[W]=x?Kt(E[W]):$t(E[W]);pt.key!=null&&Me.set(pt.key,W)}let Pe,We=0,Ke=de-ke+1,kt=!1,ct=0,Po=new Array(Ke);for(W=0;W=Ke){qe(pt,F,j,!0);continue}let Tt;if(pt.key!=null)Tt=Me.get(pt.key);else for(Pe=ke;Pe<=de;Pe++)if(Po[Pe-ke]===0&&Jo(pt,E[Pe])){Tt=Pe;break}Tt===void 0?qe(pt,F,j,!0):(Po[Tt-ke]=W+1,Tt>=ct?ct=Tt:kt=!0,g(pt,E[Tt],O,null,F,j,z,G,x),We++)}let hr=kt?Bu(Po):xt;for(Pe=hr.length-1,W=Ke-1;W>=0;W--){let pt=ke+W,Tt=E[pt],vr=E[pt+1],yr=pt+1{let{el:j,type:z,transition:G,children:x,shapeFlag:W}=v;if(W&6){De(v.component.subTree,E,O,H);return}if(W&128){v.suspense.move(E,O,H);return}if(W&64){z.move(v,E,O,_);return}if(z===Q){r(j,E,O);for(let ne=0;neG.enter(j),F));else{let{leave:ne,delayLeave:de,afterLeave:ye}=G,ke=()=>{v.ctx.isUnmounted?s(j):r(j,E,O)},Me=()=>{let Pe=j._isLeaving||!!j[As];j._isLeaving&&j[As](!0),G.persisted&&!Pe?ke():ne(j,()=>{ke(),ye&&ye()})};de?de(j,ke,Me):Me()}else r(j,E,O)},qe=(v,E,O,H=!1,F=!1)=>{let{type:j,props:z,ref:G,children:x,dynamicChildren:W,shapeFlag:ue,patchFlag:ne,dirs:de,cacheIndex:ye,memo:ke}=v;if((ne===-2||W&&W.hasOnce)&&(F=!1),G!=null&&(St(),Xo(G,null,O,v,!0),Nt()),ye!=null&&(!v.ctx||v.ctx===E)&&(E.renderCache[ye]=void 0),ue&256){E.ctx.deactivate(v);return}let Me=ue&1&&de,Pe=!Zo(v),We;if(Pe&&(We=z&&z.onVnodeBeforeUnmount)&&qt(We,E,v),ue&6)Ee(v.component,O,H);else{if(ue&128){v.suspense.unmount(O,H);return}Me&&io(v,null,E,"beforeUnmount"),ue&64?v.type.remove(v,E,O,_,H):W&&!W.hasOnce&&(j!==Q||ne>0&&ne&64)?U(W,E,O,!1,!0):(j===Q&&ne&384||!F&&ue&16)&&U(x,E,O),H&&Ie(v)}let Ke=ke!=null&&ye==null;(Pe&&(We=z&&z.onVnodeUnmounted)||Me||Ke)&<(()=>{We&&qt(We,E,v),Me&&io(v,null,E,"unmounted"),Ke&&(v.el=null)},O)},Ie=v=>{let{type:E,el:O,anchor:H,transition:F}=v,j=E===Q;if(j&&!F){Ue(O,H);return}if(E===en){V(v),F&&!F.persisted&&F.afterLeave&&F.afterLeave();return}let z=j?Vs(v):v,G=()=>{j?k(O)&&Ue(O,H):s(O),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(z&&z.shapeFlag&1&&F&&!F.persisted){let{leave:x,delayLeave:W}=F,ue=z.el,ne=()=>x(ue,G);W?W(ue,G,ne):ne()}else G()},Ue=(v,E)=>{let O;for(;v!==E;)O=m(v),s(v),v=O;s(E)},Ee=(v,E,O)=>{let{bum:H,scope:F,job:j,subTree:z,um:G,m:x,a:W}=v;ii(x),ii(W),H&&wo(H),F.stop(),j?(j.flags|=8,qe(z,v,E,O)):v.vnode.el&&z&&(z.transition=v.vnode.transition,qe(z,v,E,O)),G&<(G,E),lt(()=>{v.isUnmounted=!0},E)},U=(v,E,O,H=!1,F=!1,j=0)=>{for(let z=j;z{if(v.shapeFlag&6)return oe(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();let E=m(v.anchor||v.el),O=E&&E[lu];return O?m(O):E},X=(v,E,O)=>{let H=v&&E._vnode?void 0:v&&v.component?v.component.uid:Ju();nu(()=>{v==null?E._vnode&&qe(E._vnode,null,null,!0):g(E._vnode||null,v,E,null,null,null,O),E._vnode=v},H)},_={p:g,um:qe,m:De,r:Ie,mt:ie,mc:N,pc:Ae,pbc:Y,n:oe,o:e},q,B;return t&&([q,B]=t(_)),{render:X,hydrate:q,createApp:Nu(X,q)}}function Ps({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ao({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Bi(e,t,n=!1){let r=e.children,s=t.children;if(ve(r)&&ve(s))for(let i=0;i>1,e[n[u]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function ji(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ji(t)}function ii(e){if(e)for(let t=0;te.__isSuspense;function ju(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):fi(e)}var Q=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),Rt=Symbol.for("v-cmt"),en=Symbol.for("v-stc"),lo=[],vt=null;function l(e=!1){lo.push(vt=e?null:[])}function Wi(){lo.pop(),vt=lo[lo.length-1]||null}var nn=1;function Un(e,t=!1){nn+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function Ki(e){return e.dynamicChildren=nn>0?vt||xt:null,Wi(),nn>0&&vt&&vt.push(e),e}function d(e,t,n,r,s,i){return Ki(o(e,t,n,r,s,i,!0))}function Ut(e,t,n,r,s){return Ki(Ce(e,t,n,r,s,!0))}function sn(e){return e?e.__v_isVNode===!0:!1}function Jo(e,t){return e.type===t.type&&e.key===t.key}var Yi=({key:e})=>e??null,Vn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Fe(e)||Xe(e)||be(e)?{i:ht,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,r=0,s=null,i=e===Q?0:1,a=!1,u=!1){let f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yi(t),ref:t&&Vn(t),scopeId:yi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ht};return u?(Fn(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=Fe(n)?8:16),nn>0&&!a&&vt&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&vt.push(f),f}var Ce=Gu;function Gu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===gu)&&(e=Rt),sn(e)){let u=No(e,t,!0);return n&&Fn(u,n),nn>0&&!i&&vt&&(u.shapeFlag&6?vt[vt.indexOf(e)]=u:vt.push(u)),u.patchFlag=-2,u}if(oc(e)&&(e=e.__vccOpts),t){t=Wu(t);let{class:u,style:f}=t;u&&!Fe(u)&&(t.class=A(u)),Re(f)&&(Yo(f)&&!ve(f)&&(f=je({},f)),t.style=Ve(f))}let a=Fe(e)?1:Gi(e)?128:Hn(e)?64:Re(e)?4:be(e)?2:0;return o(e,t,n,r,s,a,i,!0)}function Wu(e){return e?Yo(e)||Mi(e)?je({},e):e:null}function No(e,t,n=!1,r=!1){let{props:s,ref:i,patchFlag:a,children:u,transition:f}=e,w=t?Ku(s||{},t):s,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:w,key:w&&Yi(w),ref:t&&t.ref?n&&i?ve(i)?i.concat(Vn(t)):[i,Vn(t)]:Vn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Q?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&No(e.ssContent),ssFallback:e.ssFallback&&No(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return f&&r&&on(h,f.clone(h)),h}function b(e=" ",t=0){return Ce(Wn,null,e,t)}function ce(e,t){let n=Ce(en,null,e);return n.staticCount=t,n}function p(e="",t=!1){return t?(l(),Ut(Rt,null,e)):Ce(Rt,null,e)}function $t(e){return e==null||typeof e=="boolean"?Ce(Rt):ve(e)?Ce(Q,null,e.slice()):sn(e)?Kt(e):Ce(Wn,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:No(e)}function Fn(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(r&65){let s=t.default;s&&(s._c&&(s._d=!1),Fn(e,s()),s._c&&(s._d=!0));return}else{n=32;let s=t._;!s&&!Mi(t)?t._ctx=ht:s===3&&ht&&(ht.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(be(t)){if(r&65){Fn(e,{default:t});return}t={default:t,_ctx:ht},n=32}else t=String(t),r&64?(n=16,t=[b(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ku(...e){let t={};for(let n=0;net||ht,zn,rn;{let e=$o(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(a=>a(i)):s[0](i)}};zn=t("__VUE_INSTANCE_SETTERS__",n=>et=n),rn=t("__VUE_SSR_SETTERS__",n=>Do=n)}var cn=e=>{let t=et;return zn(e),e.scope.on(),()=>{e.scope.off(),zn(t)}},ai=()=>{et&&et.scope.off(),zn(null)};function Qi(e){return e.vnode.shapeFlag&4}var Do=!1;function Xu(e,t=!1,n=!1){t&&rn(t);let{props:r,children:s}=e.vnode,i=Qi(e);Vu(e,r,i,t),Lu(e,s,n||t);let a=i?Zu(e,t):void 0;return t&&rn(!1),a}function Zu(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bu);let{setup:r}=n;if(r){St();let s=e.setupContext=r.length>1?ec(e):null,i=cn(e),a=an(r,e,0,[e.props,s]),u=us(a);if(Nt(),i(),(u||e.sp)&&!Zo(e)&&zs(e),u){if(a.then(ai,ai),t)return a.then(f=>{rn(!0);try{li(e,f,t)}finally{rn(!1)}}).catch(f=>{ln(f,e,0)});e.asyncDep=a}else li(e,a,t)}else Xi(e,t)}function li(e,t,n){be(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Re(t)&&(e.setupState=In(t)),Xi(e,n)}var di,ui;function Xi(e,t,n){let r=e.type;if(!e.render){if(!t&&di&&!r.render){let s=r.template||Hs(e).template;if(s){let{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:f}=r,w=je(je({isCustomElement:i,delimiters:u},a),f);r.render=di(s,w)}}e.render=r.render||it,ui&&ui(e)}{let s=cn(e);St();try{wu(e)}finally{Nt(),s()}}}var xu={get(e,t){return Ze(e,"get",""),e[t]}};function ec(e){let t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xu),slots:e.slots,emit:e.emit,expose:t}}function Kn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(In(Rs(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xo)return xo[n](e)},has(t,n){return n in t||n in xo}})):e.proxy}function tc(e,t=!0){return be(e)?e.displayName||e.name:e.name||t&&e.__name}function oc(e){return be(e)&&"__vccOpts"in e}var tt=(e,t)=>Kr(e,t,Do);function we(e,t,n){try{Un(-1);let r=arguments.length;return r===2?Re(t)&&!ve(t)?sn(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&sn(n)&&(n=[n]),Ce(e,t,n))}finally{Un(1)}}var nc="3.5.44";var Js,Zi=typeof window<"u"&&window.trustedTypes;if(Zi)try{Js=Zi.createPolicy("vue",{createHTML:e=>e})}catch{}var ua=Js?e=>Js.createHTML(e):e=>e,sc="http://www.w3.org/2000/svg",rc="http://www.w3.org/1998/Math/MathML",Jt=typeof document<"u"?document:null,xi=Jt&&Jt.createElement("template"),ic={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let s=t==="svg"?Jt.createElementNS(sc,e):t==="mathml"?Jt.createElementNS(rc,e):n?Jt.createElement(e,{is:n}):Jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Jt.createTextNode(e),createComment:e=>Jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){let a=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{xi.innerHTML=ua(r==="svg"?``:r==="mathml"?``:e);let u=xi.content;if(r==="svg"||r==="mathml"){let f=u.firstChild;for(;f.firstChild;)u.appendChild(f.firstChild);u.removeChild(f)}t.insertBefore(u,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};var ac=Symbol("_vtc");function lc(e,t,n){let r=e[ac];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}var Qn=Symbol("_vod"),ca=Symbol("_vsh"),K={name:"show",beforeMount(e,{value:t},{transition:n}){e[Qn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):pn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),pn(e,!0),r.enter(e)):r.leave(e,()=>{pn(e,!1)}):pn(e,t))},beforeUnmount(e,{value:t}){pn(e,t)}};function pn(e,t){e.style.display=t?e[Qn]:"none",e[ca]=!t}var dc=Symbol("");var uc=/(?:^|;)\s*display\s*:/;function cc(e,t,n){let r=e.style,s=Fe(n),i=!1;if(n&&!s){if(t)if(Fe(t))for(let a of t.split(";")){let u=a.slice(0,a.indexOf(":")).trim();n[u]==null&&fn(r,u,"")}else for(let a in t)n[a]==null&&fn(r,a,"");for(let a in n){a==="display"&&(i=!0);let u=n[a];u!=null?fc(e,a,!Fe(t)&&t?t[a]:void 0,u)||fn(r,a,u):fn(r,a,"")}}else if(s){if(t!==n){let a=r[dc];a&&(n+=";"+a),r.cssText=n,i=uc.test(n)}}else t&&e.removeAttribute("style");Qn in e&&((!s||t!==n)&&(e[Qn]=i?r.display:""),e[ca]&&(r.display="none"))}var Yn=/\s*!important$/;function fn(e,t,n){if(ve(n))n.forEach(r=>fn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))Yn.test(n)?e.setProperty(t,n.replace(Yn,""),"important"):e.setProperty(t,n);else{let r=pc(e,t);Yn.test(n)?e.setProperty(At(r),n.replace(Yn,""),"important"):e[r]=n}}var ea=["Webkit","Moz","ms"],Ws={};function pc(e,t){let n=Ws[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return Ws[t]=r;r=no(r);for(let s=0;sKs||(bc.then(()=>Ks=0),Ks=Date.now());function kc(e,t){let n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;let s=n.value;if(ve(s)){let i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};let a=s.slice(),u=[r];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ec=(e,t,n,r,s,i)=>{let a=s==="svg";t==="class"?lc(e,r,a):t==="style"?cc(e,n,r):yo(t)?go(t)||hc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cc(e,t,r,a))?(na(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&oa(e,t,r,a,i,t!=="value")):e._isVueCE&&(_c(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Fe(r)))?na(e,Ye(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),oa(e,t,r,a))};function Cc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ra(t)&&be(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ra(t)&&Fe(n)?!1:t in e}function _c(e,t){let n=e._def.props;if(!n)return!1;let r=Ye(t);return Array.isArray(n)?n.some(s=>Ye(s)===r):Object.keys(n).some(s=>Ye(s)===r)}var Ro=e=>{let t=e.props["onUpdate:modelValue"]||!1;return ve(t)?n=>wo(t,n):t};function Sc(e){e.target.composing=!0}function ia(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var Ft=Symbol("_assign"),Jn=Symbol("_initialValue");function Ys(e,t,n){return t&&(e=e.trim()),n&&(e=ko(e)),e}var zt={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e.parentNode&&(e.type==="text"?e[Jn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Jn]=e.defaultValue.replace(/\r\n?/g,`
-`))),e[Ft]=Ro(s);let i=r||s.props&&s.props.type==="number";to(e,t?"change":"input",a=>{a.target.composing||e[Ft](Ys(e.value,n,i))}),(n||i)&&to(e,"change",()=>{e.value=Ys(e.value,n,i)}),t||(to(e,"compositionstart",Sc),to(e,"compositionend",ia),to(e,"change",ia))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let s=t??"",i=e[Jn];delete e[Jn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ft](Ys(e.value,n,r)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},a){if(e[Ft]=Ro(a),e.composing)return;let u=(i||e.type==="number")&&!/^0\d/.test(e.value)?ko(e.value):e.value,f=t??"";if(u===f)return;let w=e.getRootNode();(w instanceof Document||w instanceof ShadowRoot)&&w.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===f)||(e.value=f)}},Qs={deep:!0,created(e,t,n){e[Ft]=Ro(n),to(e,"change",()=>{let r=e._modelValue,s=mn(e),i=e.checked,a=e[Ft];if(ve(r)){let u=Cn(r,s),f=u!==-1;if(i&&!f)a(r.concat(s));else if(!i&&f){let w=[...r];w.splice(u,1),a(w)}}else if(Et(r)){let u=new Set(r);i?u.add(s):u.delete(s),a(u)}else a(fa(e,i))})},mounted:aa,beforeUpdate(e,t,n){e[Ft]=Ro(n),aa(e,t,n)}};function aa(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(ve(t))s=Cn(t,r.props.value)>-1;else if(Et(t))s=t.has(r.props.value);else{if(t===n)return;s=Ct(t,fa(e,!0))}e.checked!==s&&(e.checked=s)}var pa={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,to(e,"change",()=>{let s=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>n?ko(mn(f)):mn(f)),i=e.multiple,a=i?Et(e._modelValue)?new Set(s):s:s[0],u=e._pendingValue=[i,i?ve(a)?s.slice():s:a];try{e[Ft](a)}finally{ot(()=>{e._pendingValue===u&&(e._pendingValue=void 0)})}}),e[Ft]=Ro(r)},mounted(e,{value:t}){la(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Ft]=Ro(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Nc(t,n[1],n[0]))&&la(e,t)}};function Nc(e,t,n){if(!n)return Ct(e,t);if(ve(e))return Ct(e,t);if(Et(e)){if(e.size!==t.length)return!1;for(let r of t)if(!e.has(r))return!1;return!0}return!1}function la(e,t){let n=e.multiple,r=ve(t);if(!(n&&!r&&!Et(t))){for(let s=0,i=e.options.length;sString(w)===String(u)):a.selected=Cn(t,u)>-1}else a.selected=t.has(u);else if(Ct(mn(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function mn(e){return"_value"in e?e._value:e.value}function fa(e,t){let n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}var Dc=["ctrl","shift","alt","meta"],Rc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Dc.some(n=>e[`${n}Key`]&&!t.includes(n))},le=(e,t)=>{if(!e)return e;let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let a=0;a{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;let i=At(s.key);if(t.some(a=>a===i||Tc[a]===i))return e(s)}))},Ac=je({patchProp:Ec},ic),da;function Oc(){return da||(da=Hi(Ac))}var ma=((...e)=>{let t=Oc().createApp(...e),{mount:n}=t;return t.mount=r=>{let s=Pc(r);if(!s)return;let i=t._component;!be(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");let a=n(s,!1,Ic(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function Ic(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Pc(e){return Fe(e)?document.querySelector(e):e}var mo=typeof document<"u";function va(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&va(e.default)}var Te=Object.assign;function Xn(e,t){let n={};for(let r in t){let s=t[r];n[r]=wt(s)?s.map(e):e(s)}return n}var Oo=()=>{},wt=Array.isArray;function xs(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var ya=/#/g,qc=/&/g,Mc=/\//g,$c=/=/g,Lc=/\?/g,ga=/\+/g,Uc=/%5B/g,Fc=/%5D/g,ba=/%5E/g,zc=/%60/g,wa=/%7B/g,Hc=/%7C/g,ka=/%7D/g,Bc=/%20/g;function er(e){return e==null?"":encodeURI(""+e).replace(Hc,"|").replace(Uc,"[").replace(Fc,"]")}function Ea(e){return er(e).replace(wa,"{").replace(ka,"}").replace(ba,"^")}function Xs(e){return er(e).replace(ga,"%2B").replace(Bc,"+").replace(ya,"%23").replace(qc,"%26").replace(zc,"`").replace(wa,"{").replace(ka,"}").replace(ba,"^")}function jc(e){return Xs(e).replace($c,"%3D")}function Gc(e){return er(e).replace(ya,"%23").replace(Lc,"%3F")}function Ca(e){return Gc(e).replace(Mc,"%2F")}function Ao(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Wc=/\/$/,Kc=e=>e.replace(Wc,"");function Zn(e,t,n="/"){let r,s={},i="",a="",u=t.indexOf("#"),f=t.indexOf("?");return f=u>=0&&f>u?-1:f,f>=0&&(r=t.slice(0,f),i=t.slice(f,u>0?u:t.length),s=e(i.slice(1))),u>=0&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=Jc(r??t,n),{fullPath:r+i+a,path:r,query:s,hash:Ao(a)}}function _a(e,t){let n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function tr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Sa(e,t,n){let r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&po(t.matched[r],n.matched[s])&&or(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function or(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Yc(e[n],t[n]))return!1;return!0}function Yc(e,t){return wt(e)?ha(e,t):wt(t)?ha(t,e):e?.valueOf()===t?.valueOf()}function ha(e,t){return wt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jc(e,t){if(e.startsWith("/"))return e;if(!e)return t;let n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,a,u;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}var Xt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xn=(function(e){return e.pop="pop",e.push="push",e})({}),es=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Na(e){if(!e)if(mo){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Kc(e)}var Qc=/^[^#]+#/;function Da(e,t){return e.replace(Qc,"#")+t}function Xc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var hn=()=>({left:window.scrollX,top:window.scrollY});function Ra(e){let t;if("el"in e){let n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Xc(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nr(e,t){return(history.state?history.state.position-t:-1)+e}var Zs=new Map;function Ta(e,t){Zs.set(e,t)}function Aa(e){let t=Zs.get(e);return Zs.delete(e),t}function Zc(e){return typeof e=="string"||e&&typeof e=="object"}function sr(e){return typeof e=="string"||typeof e=="symbol"}var Be=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),Oa=Symbol("");var q$={[Be.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for
+"use strict";(()=>{var kd=Object.defineProperty;var Ed=(e,t)=>{for(var n in t)kd(e,n,{get:t[n],enumerable:!0})};var pe=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var fe={notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",editor:"/script/editor.4f142d3adc.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js",markdown:"/script/markdown.44f2e93820.min.js"};function br(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let n=new URLSearchParams(t);if([...n.keys()].length!==3||[...n.keys()].some(a=>!["clientId","intentId","token"].includes(a)))return null;let r=n.get("clientId"),s=n.get("intentId"),i=n.get("token");return!/^[a-f0-9]{32}$/.test(r||"")||!/^[a-f0-9]{32}$/.test(s||"")||!/^[a-f0-9]{64}$/.test(i||"")?null:{contract:"4open.artifacts/1",clientId:r,intentId:s,token:i}}function wr(e,t){let{http:n,promises:r,window:s}=t,i=t.takeReviewHandoff(),a=i?{clientId:i.clientId,intentId:i.intentId}:null,u,m,k,y,E,h=!0,C,g=r.defer(),b=()=>[...s.crypto.getRandomValues(new Uint8Array(16))].map(M=>M.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:i?"":"Open a new artifact link from your submission. This link is missing or invalid."});let S=()=>h&&e.user?.username===E;function R(){h=!1,i=u=m=void 0,g.resolve(),s.clearTimeout(C)}e.on("dispose",R),e.on("routeLeave",R),e.watch(()=>e.user?.username,M=>{!E&&M?E=M:E&&M!==E&&(R(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let T=()=>({timeout:g.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":m}}),q=M=>M?.status===404?"Artifact linking is not available on this server.":M?.status===401?"Sign in, then open a new artifact link from your submission.":M?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!h||!i||e.busy||e.uncertain||e.saved||!e.user?.username)return;E=e.user.username;let M=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(M)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,u=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,s.clearTimeout(C),y||(y=b());try{let V=(await n.get("/api/review-consent/csrf",{timeout:g.promise})).data;if(!S())return;if(m=V.csrf,e.handoffEnabled=V.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(m||""))throw new Error("invalid_csrf");let z=(await n.post("/api/review-consent/preview",{repositoryId:M,intent:{...i,requestId:y}},T())).data;if(!S())return;if(!z||typeof z.ticket!="string"||!z.ticket||z.ticket.length>8192||typeof z.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(z.policy?.access)||!Number.isSafeInteger(z.policy.version)||!Number.isFinite(Date.parse(z.policy.retainUntil))||!Number.isFinite(Date.parse(z.expiresAt))||Date.parse(z.expiresAt)<=Date.now()||Date.parse(z.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");u=z.ticket,k=b(),e.preview={repositoryName:z.repositoryName,policy:{...z.policy},expiresAt:z.expiresAt},C=s.setTimeout(()=>{h&&(e.expired=!0)},Math.max(0,Date.parse(z.expiresAt)-Date.now()))}catch(V){S()&&(e.error=q(V))}finally{S()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!S()||e.busy||e.saved||!u||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let M=(await n.post("/api/review-consent/confirm",{ticket:u,requestId:k,acceptAccess:!0,acceptRetention:!0},T())).data;if(!S())return;if(M?.requestId!==k||!Number.isFinite(Date.parse(M.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,i=void 0,e.handoffEnabled||(u=void 0)}catch{S()&&(e.uncertain=!0,e.error="The confirmation was not verified. Retry with the same approval, or return to your submission to check its status.")}finally{S()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!S()||e.busy||!e.saved||!e.handoffEnabled||!u||!a)return;e.busy=!0,e.error="";let M,V=()=>{M?.remove(),s.removeEventListener("securitypolicyviolation",z)},z=ne=>{ne.violatedDirective?.startsWith("form-action")&&(V(),S()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let ne=(await n.post("/api/review-consent/handoff",{ticket:u},T())).data;if(!S())return;let ee=ne?.completion,_=new URL(ne?.callbackUrl);if(!ee||Object.keys(ee).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||ee.contract!=="4open.artifacts/1"||ee.clientId!==a.clientId||ee.intentId!==a.intentId||!/^[a-f0-9]{64}$/.test(ee.code||"")||!Number.isFinite(Date.parse(ee.expiresAt))||Date.parse(ee.expiresAt)<=Date.now()||Date.parse(ee.expiresAt)>Date.now()+3e5||_.protocol!=="https:"||_.href!==ne.callbackUrl||_.username||_.password||ne.callbackUrl.includes("?")||ne.callbackUrl.includes("#"))throw new Error("invalid_handoff");M=s.document.createElement("form"),M.method="POST",M.action=_.href;let P=s.document.createElement("input");P.type="hidden",P.name="completion",P.value=JSON.stringify(ee),M.appendChild(P),s.document.body.appendChild(M),s.addEventListener("securitypolicyviolation",z),e.on("dispose",V),M.submit()}catch{V(),S()&&(e.busy=!1,e.error="The return to review could not be prepared. Retry from this page, or return to your submission to check its status.")}}}var yn=new Map,Sd=fe;function oo(e){if(!yn.has(e)){let t=document.createElement("script");t.src=Sd[e];let n=new Promise((r,s)=>{t.onload=r,t.onerror=()=>{yn.delete(e),t.remove(),s(new Error(`Unable to load ${e}. Please retry.`))}});yn.set(e,n),document.head.appendChild(t)}return yn.get(e)}async function kr(){await oo("editor"),ace.config.set("basePath","/script/external/ace/")}function vo(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}var Ae={},xt=[],it=()=>{},us=()=>!1,yo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),go=e=>e.startsWith("onUpdate:"),je=Object.assign,Vo=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},Nd=Object.prototype.hasOwnProperty,Ne=(e,t)=>Nd.call(e,t),me=Array.isArray,Bt=e=>qo(e)==="[object Map]",Et=e=>qo(e)==="[object Set]",Er=e=>qo(e)==="[object Date]";var ge=e=>typeof e=="function",Le=e=>typeof e=="string",ft=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",cs=e=>(Re(e)||ge(e))&&ge(e.then)&&ge(e.catch),Nr=Object.prototype.toString,qo=e=>Nr.call(e),ps=e=>qo(e).slice(8,-1),gn=e=>qo(e)==="[object Object]",bn=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bo=vo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var wn=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Dd=/-\w/g,Ye=wn(e=>e.replace(Dd,t=>t.slice(1).toUpperCase())),Rd=/\B([A-Z])/g,At=wn(e=>e.replace(Rd,"-$1").toLowerCase()),no=wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mo=wn(e=>e?`on${no(e)}`:""),yt=(e,t)=>!Object.is(e,t),wo=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ko=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var Cr,Uo=()=>Cr||(Cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ie(e){if(me(e)){let t={};for(let n=0;nn.startsWith("/*")?"":n).split(Td).forEach(n=>{if(n){let r=n.split(Ad);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function A(e){let t="";if(Le(e))t=e;else if(me(e))for(let n=0;nCt(n,t))}var Tr=e=>!!(e&&e.__v_isRef===!0),c=e=>Le(e)?e:e==null?"":me(e)||Re(e)&&(e.toString===Nr||!ge(e.toString))?Tr(e)?c(e.value):JSON.stringify(e,Ar,2):String(e),Ar=(e,t)=>Tr(t)?Ar(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[ds(r,i)+" =>"]=s,n),{})}:Et(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ds(n))}:ft(t)?ds(t):Re(t)&&!me(t)&&!gn(t)?String(t):t,ds=(e,t="")=>{var n;return ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Md(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Je,zo=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Je&&(Je.active?(this.parent=Je,this.index=(Je.scopes||(Je.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){let r=this.scopes.slice();for(t=0,n=r.length;t0&&--this._on===0){if(Je===this)Je=this.prevScope;else{let t=Je;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(Fo){let t=Fo;for(Fo=void 0;t;){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Lo;){let t=Lo;for(Lo=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ur(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $r(e){let t,n=e.depsTail,r=n;for(;r;){let s=r.prevDep;r.version===-1?(r===n&&(n=s),Ns(r),Ud(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Lr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Lr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ho)||(e.globalVersion=Ho,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vs(e))))return;e.flags|=2;let t=e.dep,n=$e,r=_t;$e=e,_t=!0;try{Ur(e);let s=e.fn(e._value);(t.version===0||yt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{$e=n,_t=r,$r(e),e.flags&=-3}}function Ns(e,t=!1){let{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ns(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ud(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var _t=!0,Fr=[];function St(){Fr.push(_t),_t=!1}function Nt(){let e=Fr.pop();_t=e===void 0?!0:e}function Or(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=$e;$e=void 0;try{t()}finally{$e=n}}}var Ho=0,ys=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Bo=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$e||!_t||$e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$e)n=this.activeLink=new ys($e,this),$e.deps?(n.prevDep=$e.depsTail,$e.depsTail.nextDep=n,$e.depsTail=n):$e.deps=$e.depsTail=n,zr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=$e.depsTail,n.nextDep=void 0,$e.depsTail.nextDep=n,$e.depsTail=n,$e.deps===n&&($e.deps=r)}return n}trigger(t){this.version++,Ho++,this.notify(t)}notify(t){_s();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ss()}}};function zr(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zr(r)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var gs=new WeakMap,ro=Symbol(""),bs=Symbol(""),jo=Symbol("");function Ze(e,t,n){if(_t&&$e){let r=gs.get(e);r||gs.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Bo),s.map=r,s.key=n),s.track()}}function It(e,t,n,r,s,i){let a=gs.get(e);if(!a){Ho++;return}let u=m=>{m&&m.trigger()};if(_s(),t==="clear")a.forEach(u);else{let m=me(e),k=m&&bn(n);if(m&&n==="length"){let y=Number(r);a.forEach((E,h)=>{(h==="length"||h===jo||!ft(h)&&h>=y)&&u(E)})}else switch((n!==void 0||a.has(void 0))&&u(a.get(n)),k&&u(a.get(jo)),t){case"add":m?k&&u(a.get("length")):(u(a.get(ro)),Bt(e)&&u(a.get(bs)));break;case"delete":m||(u(a.get(ro)),Bt(e)&&u(a.get(bs)));break;case"set":Bt(e)&&u(a.get(ro));break}}Ss()}function Eo(e){let t=De(e);return t===e||(Ze(t,"iterate",jo),at(e))?t:gt(e)?Vt(e)?t.map(n=>Gt(mt(n))):t.map(Gt):t.map(mt)}function Wo(e){return Ze(e=De(e),"iterate",jo),e}function Ot(e,t){return gt(e)?Gt(Vt(e)?mt(t):t):mt(t)}var $d={__proto__:null,[Symbol.iterator](){return ms(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return Eo(this).concat(...e.map(t=>me(t)?Eo(t):t))},entries(){return ms(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return jt(this,"every",e,t,void 0,arguments)},filter(e,t){return jt(this,"filter",e,t,n=>n.map(r=>Ot(this,r)),arguments)},find(e,t){return jt(this,"find",e,t,n=>Ot(this,n),arguments)},findIndex(e,t){return jt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jt(this,"findLast",e,t,n=>Ot(this,n),arguments)},findLastIndex(e,t){return jt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jt(this,"forEach",e,t,void 0,arguments)},includes(...e){return hs(this,"includes",e)},indexOf(...e){return hs(this,"indexOf",e)},join(e){return Eo(this).join(e)},lastIndexOf(...e){return hs(this,"lastIndexOf",e)},map(e,t){return jt(this,"map",e,t,void 0,arguments)},pop(){return $o(this,"pop")},push(...e){return $o(this,"push",e)},reduce(e,...t){return Pr(this,"reduce",e,t)},reduceRight(e,...t){return Pr(this,"reduceRight",e,t)},shift(){return $o(this,"shift")},some(e,t){return jt(this,"some",e,t,void 0,arguments)},splice(...e){return $o(this,"splice",e)},toReversed(){return Eo(this).toReversed()},toSorted(e){return Eo(this).toSorted(e)},toSpliced(...e){return Eo(this).toSpliced(...e)},unshift(...e){return $o(this,"unshift",e)},values(){return ms(this,"values",e=>Ot(this,e))}};function ms(e,t,n){let r=Wo(e),s=r[t],i=s.call(r);if(r!==e&&!at(e)){if(i[Symbol.toStringTag]==="Array Iterator"){let a=Object.create(Object.getPrototypeOf(i));return a.next=()=>Ir(i.next(),n),s!==Hr[t]&&Object.defineProperties(a,{return:{get(){let u=i.return;return typeof u=="function"?u.bind(i):u}},throw:{get(){let u=i.throw;return typeof u=="function"?u.bind(i):u}}}),a}i._next=i.next,i.next=()=>Ir(i._next(),n)}return i}function Ir(e,t){return e.done||(e.value=t(e.value)),e}var Hr=Array.prototype;function jt(e,t,n,r,s,i){let a=Wo(e),u=a!==e&&!at(e),m=a[t];if(m!==Hr[t]){let E=m.apply(e,i);return u?mt(E):E}let k=n;a!==e&&(u?k=function(E,h){return n.call(this,Ot(e,E),h,e)}:n.length>2&&(k=function(E,h){return n.call(this,E,h,e)}));let y=m.call(a,k,r);return u&&s?s(y):y}function Pr(e,t,n,r){let s=Wo(e),i=s!==e&&!at(e),a=n,u=!1;s!==e&&(i?(u=r.length===0,a=function(k,y,E){return u&&(u=!1,k=Ot(e,k)),n.call(this,k,Ot(e,y),E,e)}):n.length>3&&(a=function(k,y,E){return n.call(this,k,y,E,e)}));let m=s[t](a,...r);return u?Ot(e,m):m}function hs(e,t,n){let r=De(e);Ze(r,"iterate",jo);let s=r[t](...n);return(s===-1||s===!1)&&Yo(n[0])?(n[0]=De(n[0]),r[t](...n)):s}function $o(e,t,n=[]){St(),_s();let r=De(e)[t].apply(e,n);return Ss(),Nt(),r}var Ld=vo("__proto__,__v_isRef,__isVue"),Br=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ft));function Fd(e){ft(e)||(e=String(e));let t=De(this);return Ze(t,"has",e),t.hasOwnProperty(e)}var Dn=class{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;let s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Jd:Wr:i?Gr:jr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let a=me(t);if(!s){let m;if(a&&(m=$d[n]))return m;if(n==="hasOwnProperty")return Fd}let u=Reflect.get(t,n,Xe(t)?t:r);if((ft(n)?Br.has(n):Ld(n))||(s||Ze(t,"get",n),i))return u;if(Xe(u)){let m=a&&bn(n)?u:u.value;return s&&Re(m)?Tn(m):m}return Re(u)?s?Tn(u):Fe(u):u}},Rn=class extends Dn{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n],a=me(t)&&bn(n);if(!this._isShallow){let k=gt(i);if(!at(r)&&!gt(r)&&(i=De(i),r=De(r)),!a&&Xe(i)&&!Xe(r))return k||(i.value=r),!0}let u=a?Number(n)e,_n=e=>Reflect.getPrototypeOf(e);function jd(e,t,n){return function(...r){let s=this.__v_raw,i=De(s),a=Bt(i),u=e==="entries"||e===Symbol.iterator&&a,m=e==="keys"&&a,k=s[e](...r),y=n?ks:t?Gt:mt;return!t&&Ze(i,"iterate",m?bs:ro),je(Object.create(k),{next(){let{value:E,done:h}=k.next();return h?{value:E,done:h}:{value:u?[y(E[0]),y(E[1])]:y(E),done:h}}})}}function Sn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Gd(e,t){let n={get(s){let i=this.__v_raw,a=De(i),u=De(s);e||(yt(s,u)&&Ze(a,"get",s),Ze(a,"get",u));let{has:m}=_n(a),k=t?ks:e?Gt:mt;if(m.call(a,s))return k(i.get(s));if(m.call(a,u))return k(i.get(u));i!==a&&i.get(s)},get size(){let s=this.__v_raw;return!e&&Ze(De(s),"iterate",ro),s.size},has(s){let i=this.__v_raw,a=De(i),u=De(s);return e||(yt(s,u)&&Ze(a,"has",s),Ze(a,"has",u)),s===u?i.has(s):i.has(s)||i.has(u)},forEach(s,i){let a=this,u=a.__v_raw,m=De(u),k=t?ks:e?Gt:mt;return!e&&Ze(m,"iterate",ro),u.forEach((y,E)=>s.call(i,k(y),k(E),a))}};return je(n,e?{add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear")}:{add(s){let i=De(this),a=_n(i),u=De(s),m=!t&&!at(s)&&!gt(s)?u:s;return a.has.call(i,m)||yt(s,m)&&a.has.call(i,s)||yt(u,m)&&a.has.call(i,u)||(i.add(m),It(i,"add",m,m)),this},set(s,i){!t&&!at(i)&&!gt(i)&&(i=De(i));let a=De(this),{has:u,get:m}=_n(a),k=u.call(a,s);k||(s=De(s),k=u.call(a,s));let y=m.call(a,s);return a.set(s,i),k?yt(i,y)&&It(a,"set",s,i,y):It(a,"add",s,i),this},delete(s){let i=De(this),{has:a,get:u}=_n(i),m=a.call(i,s);m||(s=De(s),m=a.call(i,s));let k=u?u.call(i,s):void 0,y=i.delete(s);return m&&It(i,"delete",s,void 0,k),y},clear(){let s=De(this),i=s.size!==0,a=void 0,u=s.clear();return i&&It(s,"clear",void 0,void 0,a),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jd(s,e,t)}),n}function Ds(e,t){let n=Gd(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_isShallow"?t:s==="__v_raw"?r:Reflect.get(Ne(n,s)&&s in r?n:r,s,i)}var Wd={get:Ds(!1,!1)},Kd={get:Ds(!1,!0)},Yd={get:Ds(!0,!1)};var jr=new WeakMap,Gr=new WeakMap,Wr=new WeakMap,Jd=new WeakMap;function Qd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fe(e){return gt(e)?e:Rs(e,!1,zd,Wd,jr)}function Ko(e){return Rs(e,!1,Bd,Kd,Gr)}function Tn(e){return Rs(e,!0,Hd,Yd,Wr)}function Rs(e,t,n,r,s){if(!Re(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let i=s.get(e);if(i)return i;let a=Qd(ps(e));if(a===0)return e;let u=new Proxy(e,a===2?r:n);return s.set(e,u),u}function Vt(e){return gt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function at(e){return!!(e&&e.__v_isShallow)}function Yo(e){return e?!!e.__v_raw:!1}function De(e){let t=e&&e.__v_raw;return t?De(t):e}function Ts(e){return!Ne(e,"__v_skip")&&Object.isExtensible(e)&&kn(e,"__v_skip",!0),e}var mt=e=>Re(e)?Fe(e):e,Gt=e=>Re(e)?Tn(e):e;function Xe(e){return e?e.__v_isRef===!0:!1}function xe(e){return Kr(e,!1)}function On(e){return Kr(e,!0)}function Kr(e,t){return Xe(e)?e:new Es(e,t)}var Es=class{constructor(t,n){this.dep=new Bo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:De(t),this._value=n?t:mt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){let n=this._rawValue,r=this.__v_isShallow||at(t)||gt(t);t=r?t:De(t),yt(t,n)&&(this._rawValue=t,this._value=r?t:mt(t),this.dep.trigger())}};function Wt(e){return Xe(e)?e.value:e}var Xd={get:(e,t,n)=>t==="__v_raw"?e:Wt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let s=e[t];return Xe(s)&&!Xe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function In(e){return Vt(e)?e:new Proxy(e,Xd)}var Cs=class{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ho-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return Mr(this,!0),!0}get value(){let t=this.dep.track();return Lr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Yr(e,t,n=!1){let r,s;return ge(e)?r=e:(r=e.get,s=e.set),new Cs(r,s,n)}var Nn={},An=new WeakMap,so;function Jr(e,t=!1,n=so){if(n){let r=An.get(n);r||An.set(n,r=[]),r.push(e)}}function Qr(e,t,n=Ae){let{immediate:r,deep:s,once:i,scheduler:a,augmentJob:u,call:m}=n,k=V=>{(n.onWarn||Md)("Invalid watch source: ",V,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},y=V=>s?V:at(V)||s===!1||s===0?Pt(V,1):Pt(V),E,h,C,g,b=!1,S=!1;if(Xe(e)?(h=()=>e.value,b=at(e)):Vt(e)?(h=()=>y(e),b=!0):me(e)?(S=!0,b=e.some(V=>Vt(V)||at(V)),h=()=>e.map(V=>{if(Xe(V))return V.value;if(Vt(V))return y(V);if(ge(V))return m?m(V,2):V()})):ge(e)?t?h=m?()=>m(e,2):e:h=()=>{if(C){St();try{C()}finally{Nt()}}let V=so;so=E;try{return m?m(e,3,[g]):e(g)}finally{so=V}}:h=it,t&&s){let V=h,z=s===!0?1/0:s;h=()=>Pt(V(),z)}let R=Vr(),T=()=>{E.stop(),R&&R.active&&Vo(R.effects,E)};if(i&&t){let V=t;t=(...z)=>{try{return V(...z)}finally{T()}}}let q=S?new Array(e.length).fill(Nn):Nn,M=V=>{if(!(!(E.flags&1)||!E.dirty&&!V))if(t){let z=E.run();if(V||s||b||(S?z.some((ne,ee)=>yt(ne,q[ee])):yt(z,q))){let ne=so;St();try{C&&C(),so=E;let ee=[z,q===Nn?void 0:S&&q[0]===Nn?[]:q,g];q=z,m?m(t,3,ee):t(...ee)}finally{so=ne,Nt()}}}else E.run()};return u&&u(M),E=new Co(h),E.scheduler=a?()=>a(M,!1):M,g=V=>Jr(V,!1,E),C=E.onStop=()=>{let V=An.get(E);if(V){if(m)m(V,4);else for(let z of V)z();An.delete(E)}},t?r?M(!0):q=E.run():a?a(M.bind(null,!0),!0):E.run(),T.pause=E.pause.bind(E),T.resume=E.resume.bind(E),T.stop=T,T}function Pt(e,t=1/0,n){if(t<=0||!Re(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Xe(e))Pt(e.value,t,n);else if(me(e))for(let r=0;r{Pt(r,t,n)});else if(gn(e)){for(let r in e)Pt(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Pt(e[r],t,n)}return e}function an(e,t,n,r){try{return r?e(...r):e()}catch(s){ln(s,t,n)}}function bt(e,t,n,r){if(ge(e)){let s=an(e,t,n,r);return s&&cs(s)&&s.catch(i=>{ln(i,t,n)}),s}if(me(e)){let s=[];for(let i=0;i>>1,s=st[r],i=tn(s);i=tn(n)?st.push(e):st.splice(ou(t),0,e),e.flags|=1,fi()}}function fi(){qn||(qn=pi.then(yi))}function mi(e){if(!me(e))eo&&e.id===-1?eo.splice(_o+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1);else for(let t=0;t=t))continue;st.splice(r,1),r=e?r-1:Dt,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function vi(e,t,n=0){if(Mt.length){let r=Mt,s=0;if(t){r=[];for(let a=0;atn(a)-tn(u));if(Mt.length=s,eo){for(let a=0;ae.id==null?e.flags&2?-1:1/0:e.id;function yi(e){let t=it;try{for(Dt=0;Dt{r._d&&Ln(-1);let i=Mn(t),a=lo.length,u;try{u=e(...s)}finally{for(let m=lo.length;m>a;m--)Ki();Mn(i),r._d&&Ln(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function N(e,t){if(ht===null)return e;let n=Kn(ht),r=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&ge(t)?t.call(r&&r.proxy):t}}var ru=Symbol.for("v-scx"),iu=()=>{{let e=dt(ru);return e}};function He(e,t,n){return bi(e,t,n)}function bi(e,t,n=Ae){let{immediate:r,deep:s,flush:i,once:a}=n,u=je({},n),m=t&&r||!t&&i!=="post",k;if(Do){if(i==="sync"){let C=iu();k=C.__watcherHandles||(C.__watcherHandles=[])}else if(!m){let C=()=>{};return C.stop=it,C.resume=it,C.pause=it,C}}let y=et;u.call=(C,g,b)=>bt(C,y,g,b);let E=!1;i==="post"?u.scheduler=C=>{C.i=y,lt(C,y&&y.suspense)}:i!=="sync"&&(E=!0,u.scheduler=(C,g)=>{g?C():zs(C)}),u.augmentJob=C=>{t&&(C.flags|=4),E&&(C.flags|=2,y&&(C.id=y.uid,C.i=y))};let h=Qr(e,t,u);return Do&&(k?k.push(h):m&&h()),h}function au(e,t,n){let r=this.proxy,s=Le(e)?e.includes(".")?wi(r,e):()=>r[e]:e.bind(r,r),i;ge(t)?i=t:(i=t.handler,n=t);let a=cn(this),u=bi(s,i.bind(r),n);return a(),u}function wi(e,t){let n=t.split(".");return()=>{let r=e;for(let s=0;se.__isTeleport;var Os=Symbol("_leaveCb");function du(e){let t=e[0];if(e.length>1){let n=!1;for(let r of e)if(r.type!==Rt){t=r,n=!0;break}}return t}function ki(e){if(!Bn(e))return Hn(e.type)&&e.children?du(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ge(n.default))return n.default()}}function on(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;on(Hn(n.type)&&ki(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===K&&me(e.children)){let n=Pi(e.children,!1);n&&on(n,t)}}function qs(e){if(e.component)return qs(e.component.subTree);if(e.type===K){let t=me(e.children)&&Pi(e.children,!1);return t?qs(t):void 0}if(e.type!==Rt)return e}function dn(e,t){return ge(e)?je({name:e.name},t,{setup:e}):e}function Hs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Un=new WeakMap;function Xo(e,t,n,r,s=!1){if(me(e)){e.forEach((b,S)=>Xo(b,t&&(me(t)?t[S]:t),n,r,s));return}if(Zo(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Xo(e,t,n,r.component.subTree);return}let i=r.shapeFlag&4?Kn(r.component):r.el,a=s?null:i,{i:u,r:m}=e,k=t&&t.r,y=u.refs===Ae?u.refs={}:u.refs,E=u.setupState,h=De(E),C=E===Ae?us:b=>Xr(y,b)?!1:Ne(h,b),g=(b,S)=>!(S&&Xr(y,S));if(k!=null&&k!==m){if(Zr(t),Le(k))y[k]=null,C(k)&&(E[k]=null);else if(Xe(k)){let b=t;g(k,b.k)&&(k.value=null),b.k&&(y[b.k]=null)}}if(ge(m))an(m,u,12,[a,y]);else{let b=Le(m),S=Xe(m);if(b||S){let R=()=>{if(e.f){let T=b?C(m)?E[m]:y[m]:g(m)||!e.k?m.value:y[e.k];if(s)me(T)&&Vo(T,i);else if(me(T))T.includes(i)||T.push(i);else if(b)y[m]=[i],C(m)&&(E[m]=y[m]);else{let q=[i];g(m,e.k)&&(m.value=q),e.k&&(y[e.k]=q)}}else b?(y[m]=a,C(m)&&(E[m]=a)):S&&(g(m,e.k)&&(m.value=a),e.k&&(y[e.k]=a))};if(a){let T=()=>{R(),Un.delete(e)};T.id=-1,Un.set(e,T),lt(T,n)}else Zr(e),R()}}}function Zr(e){let t=Un.get(e);t&&(t.flags|=8,Un.delete(e))}var xr=e=>e.nodeType===8;var dU=Uo().requestIdleCallback||(e=>setTimeout(e,1)),uU=Uo().cancelIdleCallback||(e=>clearTimeout(e));function uu(e,t){if(xr(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(xr(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}var Zo=e=>!!e.type.__asyncLoader;function Ei(e){ge(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:a,suspensible:u=!0,onError:m}=e,k=null,y,E=0,h=()=>(E++,k=null,C()),C=()=>{let g;return k||(g=k=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),m)return new Promise((S,R)=>{m(b,()=>S(h()),()=>R(b),E+1)});throw b}).then(b=>g!==k&&k?k:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),y=b,b)))};return dn({name:"AsyncComponentWrapper",__asyncLoader:C,__asyncHydrate(g,b,S){let R=g.isConnected,T=!1;(b.bu||(b.bu=[])).push(()=>T=!0);let q=()=>{T||!g.parentNode||R&&!g.isConnected||S()},M=i?()=>{let V=i(q,z=>uu(g,z));V&&(b.bum||(b.bum=[])).push(V)}:q;y?M():C().then(()=>!b.isUnmounted&&M())},get __asyncResolved(){return y},setup(){let g=et;if(Hs(g),y)return()=>Pn(y,g);let b=V=>{k=null,ln(V,g,13,!r)};if(u&&g.suspense||Do)return C().then(V=>()=>Pn(V,g)).catch(V=>(b(V),()=>r?Ce(r,{error:V}):null));let S=xe(!1),R=xe(),T=xe(!!s),q,M;return un(()=>{q!=null&&clearTimeout(q),M!=null&&clearTimeout(M)}),s&&(M=setTimeout(()=>{g.isUnmounted||(T.value=!1)},s)),a!=null&&(q=setTimeout(()=>{if(!g.isUnmounted&&!S.value&&!R.value){let V=new Error(`Async component timed out after ${a}ms.`);b(V),R.value=V}},a)),C().then(()=>{g.isUnmounted||(S.value=!0,g.parent&&Bn(g.parent.vnode)&&g.parent.update())}).catch(V=>{if(g.isUnmounted){k=null;return}b(V),R.value=V}),()=>{if(S.value&&y)return Pn(y,g);if(R.value&&r)return Ce(r,{error:R.value});if(n&&!T.value)return Pn(n,g)}}})}function Pn(e,t){let{ref:n,props:r,children:s,ce:i}=t.vnode,a=Ce(e,r,s);return a.ref=n,a.ce=i,delete t.vnode.ce,a}var Bn=e=>e.type.__isKeepAlive;function Ci(e,t){Si(e,"a",t)}function _i(e,t){Si(e,"da",t)}function Si(e,t,n=et){let r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(jn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Bn(s.parent.vnode)&&cu(r,t,n,s),s=s.parent}}function cu(e,t,n,r){let s=jn(t,e,r,!0);un(()=>{Vo(r[t],s)},n)}function jn(e,t,n=et,r=!1){if(n){let s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{St();let u=cn(n),m=bt(t,n,e,a);return u(),Nt(),m});return r?s.unshift(i):s.push(i),i}}var Yt=e=>(t,n=et)=>{(!Do||e==="sp")&&jn(e,(...r)=>t(...r),n)},pu=Yt("bm"),$t=Yt("m"),Ni=Yt("bu"),Di=Yt("u"),co=Yt("bum"),un=Yt("um"),fu=Yt("sp"),mu=Yt("rtg"),hu=Yt("rtc");function vu(e,t=et){jn("ec",e,t)}var Ri="components",yu="directives";function Ge(e,t){return Ti(Ri,e,!0,t)||e}var gu=Symbol.for("v-ndc");function ve(e){return Ti(yu,e)}function Ti(e,t,n=!0,r=!1){let s=ht||et;if(s){let i=s.type;if(e===Ri){let u=tc(i,!1);if(u&&(u===t||u===Ye(t)||u===no(Ye(t))))return i}let a=ei(s[e]||i[e],t)||ei(s.appContext[e],t);return!a&&r?i:a}}function ei(e,t){return e&&(e[t]||e[Ye(t)]||e[no(Ye(t))])}function oe(e,t,n,r){let s,i=n&&n[r],a=me(e);if(a||Le(e)){let u=a&&Vt(e),m=!1,k=!1;u&&(m=!at(e),k=gt(e),e=Wo(e)),s=new Array(e.length);for(let y=0,E=e.length;yt(u,m,void 0,i&&i[m]));else{let u=Object.keys(e);s=new Array(u.length);for(let m=0,k=u.length;me?Xi(e)?Kn(e):Ms(e.parent):null;var xo=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ms(e.parent),$root:e=>Ms(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bs(e),$forceUpdate:e=>e.f||(e.f=()=>{zs(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>au.bind(e)});var Is=(e,t)=>e!==Ae&&!e.__isScriptSetup&&Ne(e,t),bu={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:n,setupState:r,data:s,props:i,accessCache:a,type:u,appContext:m}=e;if(t[0]!=="$"){let h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Is(r,t))return a[t]=1,r[t];if(s!==Ae&&Ne(s,t))return a[t]=2,s[t];if(Ne(i,t))return a[t]=3,i[t];if(n!==Ae&&Ne(n,t))return a[t]=4,n[t];Us&&(a[t]=0)}}let k=xo[t],y,E;if(k)return t==="$attrs"&&Ze(e.attrs,"get",""),k(e);if((y=u.__cssModules)&&(y=y[t]))return y;if(n!==Ae&&Ne(n,t))return a[t]=4,n[t];if(E=m.config.globalProperties,Ne(E,t))return E[t]},set({_:e},t,n){let{data:r,setupState:s,ctx:i}=e;return Is(s,t)?(s[t]=n,!0):r!==Ae&&Ne(r,t)?(r[t]=n,!0):Ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:a}},u){let m;return!!(n[u]||e!==Ae&&u[0]!=="$"&&Ne(e,u)||Is(t,u)||Ne(i,u)||Ne(r,u)||Ne(xo,u)||Ne(s.config.globalProperties,u)||(m=a.__cssModules)&&m[u])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ti(e){return me(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}var Us=!0;function wu(e){let t=Bs(e),n=e.proxy,r=e.ctx;Us=!1,t.beforeCreate&&oi(t.beforeCreate,e,"bc");let{data:s,computed:i,methods:a,watch:u,provide:m,inject:k,created:y,beforeMount:E,mounted:h,beforeUpdate:C,updated:g,activated:b,deactivated:S,beforeDestroy:R,beforeUnmount:T,destroyed:q,unmounted:M,render:V,renderTracked:z,renderTriggered:ne,errorCaptured:ee,serverPrefetch:_,expose:P,inheritAttrs:G,components:J,directives:X,filters:W}=t;if(k&&ku(k,r,null),a)for(let de in a){let re=a[de];ge(re)&&(r[de]=re.bind(n))}if(s){let de=s.call(n,n);Re(de)&&(e.data=Fe(de))}if(Us=!0,i)for(let de in i){let re=i[de],_e=ge(re)?re.bind(n,n):ge(re.get)?re.get.bind(n,n):it,qe=!ge(re)&&ge(re.set)?re.set.bind(n):it,Me=tt({get:_e,set:qe});Object.defineProperty(r,de,{enumerable:!0,configurable:!0,get:()=>Me.value,set:Pe=>Me.value=Pe})}if(u)for(let de in u)Ai(u[de],r,n,de);if(m){let de=ge(m)?m.call(n):m;Reflect.ownKeys(de).forEach(re=>{uo(re,de[re])})}y&&oi(y,e,"c");function ce(de,re){me(re)?re.forEach(_e=>de(_e.bind(n))):re&&de(re.bind(n))}if(ce(pu,E),ce($t,h),ce(Ni,C),ce(Di,g),ce(Ci,b),ce(_i,S),ce(vu,ee),ce(hu,z),ce(mu,ne),ce(co,T),ce(un,M),ce(fu,_),me(P))if(P.length){let de=e.exposed||(e.exposed={});P.forEach(re=>{Object.defineProperty(de,re,{get:()=>n[re],set:_e=>n[re]=_e,enumerable:!0})})}else e.exposed||(e.exposed={});V&&e.render===it&&(e.render=V),G!=null&&(e.inheritAttrs=G),J&&(e.components=J),X&&(e.directives=X),_&&Hs(e)}function ku(e,t,n=it){me(e)&&(e=$s(e));for(let r in e){let s=e[r],i;Re(s)?"default"in s?i=dt(s.from||r,s.default,!0):i=dt(s.from||r):i=dt(s),Xe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function oi(e,t,n){bt(me(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ai(e,t,n,r){let s=r.includes(".")?wi(n,r):()=>n[r];if(Le(e)){let i=t[e];ge(i)&&He(s,i)}else if(ge(e))He(s,e.bind(n));else if(Re(e))if(me(e))e.forEach(i=>Ai(i,t,n,r));else{let i=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(i)&&He(s,i,e)}}function Bs(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t),m;return u?m=u:!s.length&&!n&&!r?m=t:(m={},s.length&&s.forEach(k=>$n(m,k,a,!0)),$n(m,t,a)),Re(t)&&i.set(t,m),m}function $n(e,t,n,r=!1){let{mixins:s,extends:i}=t;i&&$n(e,i,n,!0),s&&s.forEach(a=>$n(e,a,n,!0));for(let a in t)if(!(r&&a==="expose")){let u=Eu[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var Eu={data:ni,props:si,emits:si,methods:Qo,computed:Qo,beforeCreate:nt,created:nt,beforeMount:nt,mounted:nt,beforeUpdate:nt,updated:nt,beforeDestroy:nt,beforeUnmount:nt,destroyed:nt,unmounted:nt,activated:nt,deactivated:nt,errorCaptured:nt,serverPrefetch:nt,components:Qo,directives:Qo,watch:_u,provide:ni,inject:Cu};function ni(e,t){return t?e?function(){return je(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Cu(e,t){return Qo($s(e),$s(t))}function $s(e){if(me(e)){let t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${At(t)}Modifiers`];function Ru(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||Ae,s=n,i=t.startsWith("update:"),a=i&&Du(r,t.slice(7));a&&(a.trim&&(s=n.map(y=>Le(y)?y.trim():y)),a.number&&(s=s.map(ko)));let u,m=r[u=Mo(t)]||r[u=Mo(Ye(t))];!m&&i&&(m=r[u=Mo(At(t))]),m&&bt(m,e,6,s);let k=r[u+"Once"];if(k){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,bt(k,e,6,s)}}var Tu=new WeakMap;function Ii(e,t,n=!1){let r=n?Tu:t.emitsCache,s=r.get(e);if(s!==void 0)return s;let i=e.emits,a={},u=!1;if(!ge(e)){let m=k=>{let y=Ii(k,t,!0);y&&(u=!0,je(a,y))};!n&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}return!i&&!u?(Re(e)&&r.set(e,null),null):(me(i)?i.forEach(m=>a[m]=null):je(a,i),Re(e)&&r.set(e,a),a)}function Gn(e,t){return!e||!yo(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,At(t))||Ne(e,t))}function Ps(e){let{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:a,attrs:u,emit:m,render:k,renderCache:y,props:E,data:h,setupState:C,ctx:g,inheritAttrs:b}=e,S=Mn(e),R,T;try{if(n.shapeFlag&4){let V=s||r,z=V;R=Ut(k.call(z,V,y,E,C,h,g)),T=u}else{let V=t;R=Ut(V.length>1?V(E,{attrs:u,slots:a,emit:m}):V(E,null)),T=t.props?u:Au(u)}}catch(V){lo.length=0,ln(V,e,1),R=Ce(Rt)}let q=R,M;if(T&&b!==!1){let V=Object.keys(T),{shapeFlag:z}=q;V.length&&z&7&&(i&&V.some(go)&&(T=Ou(T,i)),q=No(q,T,!1,!0))}if(n.dirs&&(q=No(q,null,!1,!0),q.dirs=q.dirs?q.dirs.concat(n.dirs):n.dirs),n.transition){let V=Hn(q.type)&&ki(q)||q;on(V,n.transition)}return R=q,Mn(S),R}function Pi(e,t=!0){let n;for(let r=0;r{let t;for(let n in e)(n==="class"||n==="style"||yo(n))&&((t||(t={}))[n]=e[n]);return t},Ou=(e,t)=>{let n={};for(let r in e)(!go(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Iu(e,t,n){let{props:r,children:s,component:i}=e,{props:a,children:u,patchFlag:m}=t,k=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&m>=0){if(m&1024)return!0;if(m&16)return r?ri(r,a,k):!!a;if(m&8){let y=t.dynamicProps;for(let E=0;EObject.create(qi),Ui=e=>Object.getPrototypeOf(e)===qi;function Vu(e,t,n,r=!1){let s={},i=Mi();e.propsDefaults=Object.create(null),$i(e,t,s,i);for(let a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:Ko(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function qu(e,t,n,r){let{props:s,attrs:i,vnode:{patchFlag:a}}=e,u=De(s),[m]=e.propsOptions,k=!1;if((r||a>0)&&!(a&16)){if(a&8){let y=e.vnode.dynamicProps;for(let E=0;E{m=!0;let[h,C]=Li(E,t,!0);je(a,h),C&&u.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(y),e.extends&&y(e.extends),e.mixins&&e.mixins.forEach(y)}if(!i&&!m)return Re(e)&&r.set(e,xt),xt;if(me(i))for(let y=0;ye==="_"||e==="_ctx"||e==="$stable",Gs=e=>me(e)?e.map(Ut):[Ut(e)],Uu=(e,t,n)=>{if(t._n)return t;let r=su((...s)=>Gs(t(...s)),n);return r._c=!1,r},Fi=(e,t,n)=>{let r=e._ctx;for(let s in e){if(js(s))continue;let i=e[s];if(ge(i))t[s]=Uu(s,i,r);else if(i!=null){let a=Gs(i);t[s]=()=>a}}},zi=(e,t)=>{let n=Gs(t);e.slots.default=()=>n},Hi=(e,t,n)=>{for(let r in t)(n||!js(r))&&(e[r]=t[r])},$u=(e,t,n)=>{let r=e.slots=Mi();if(e.vnode.shapeFlag&32){let s=t._;s?(Hi(r,t,n),n&&kn(r,"_",s,!0)):Fi(t,r)}else t&&zi(e,t)},Lu=(e,t,n)=>{let{vnode:r,slots:s}=e,i=!0,a=Ae;if(r.shapeFlag&32){let u=t._;u?n&&u===1?i=!1:Hi(s,t,n):(i=!t.$stable,Fi(t,s)),a=t}else t&&(zi(e,t),a={default:1});if(i)for(let u in s)!js(u)&&a[u]==null&&delete s[u]};function Fu(){let e=[]}var lt=ju;function Bi(e){return zu(e)}function zu(e,t){Fu();let n=Uo();n.__VUE__=!0;let{insert:r,remove:s,patchProp:i,createElement:a,createText:u,createComment:m,setText:k,setElementText:y,parentNode:E,nextSibling:h,setScopeId:C=it,insertStaticContent:g}=e,b=(p,v,D,O=null,I=null,U=null,L=void 0,H=null,Y=!!v.dynamicChildren)=>{if(p===v)return;p&&!Jo(p,v)&&(O=Z(p),Se(p,I,U,!0),p=null),v.patchFlag===-2&&(Y=!1,v.dynamicChildren=null),v.dynamicChildren&&p&&p.dynamicChildren&&p.dynamicChildren.hasOnce&&(v.dynamicChildren===xt&&(v.dynamicChildren=[]),v.dynamicChildren.hasOnce=!0);let{type:B,ref:le,shapeFlag:x}=v;switch(B){case Wn:S(p,v,D,O);break;case Rt:R(p,v,D,O);break;case en:p==null&&T(v,D,O,L);break;case K:X(p,v,D,O,I,U,L,H,Y);break;default:x&1?z(p,v,D,O,I,U,L,H,Y):x&6?W(p,v,D,O,I,U,L,H,Y):(x&64||x&128)&&B.process(p,v,D,O,I,U,L,H,Y,te)}le!=null&&I?Xo(le,p&&p.ref,U,v||p,!v):le==null&&p&&p.ref!=null&&Xo(p.ref,null,U,p,!0)},S=(p,v,D,O)=>{if(p==null)r(v.el=u(v.children),D,O);else{let I=v.el=p.el;v.children!==p.children&&k(I,v.children)}},R=(p,v,D,O)=>{p==null?r(v.el=m(v.children||""),D,O):v.el=p.el},T=(p,v,D,O)=>{[p.el,p.anchor]=g(p.children,v,D,O,p.el,p.anchor)},q=(p,v,D,O)=>{if(v.children!==p.children){let I=h(p.anchor);V(p),[v.el,v.anchor]=g(v.children,D,I,O)}else v.el=p.el,v.anchor=p.anchor},M=({el:p,anchor:v},D,O)=>{let I;for(;p&&p!==v;)I=h(p),r(p,D,O),p=I;r(v,D,O)},V=({el:p,anchor:v})=>{let D;for(;p&&p!==v;)D=h(p),s(p),p=D;s(v)},z=(p,v,D,O,I,U,L,H,Y)=>{if(v.type==="svg"?L="svg":v.type==="math"&&(L="mathml"),p==null)ne(v,D,O,I,U,L,H,Y);else{let B=p.el&&p.el._isVueCE?p.el:null;try{B&&B._beginPatch(),P(p,v,I,U,L,H,Y)}finally{B&&B._endPatch()}}},ne=(p,v,D,O,I,U,L,H)=>{let Y,B,{props:le,shapeFlag:x,transition:ae,dirs:he}=p;if(Y=p.el=a(p.type,U,le&&le.is,le),x&8?y(Y,p.children):x&16&&_(p.children,Y,null,O,I,Vs(p,U),L,H),he&&io(p,null,O,"created"),ee(Y,p,p.scopeId,L,O),le){for(let Ve in le)Ve!=="value"&&!bo(Ve)&&i(Y,Ve,null,le[Ve],U,O);"value"in le&&i(Y,"value",null,le.value,U),(B=le.onVnodeBeforeMount)&&qt(B,O,p)}he&&io(p,null,O,"beforeMount");let we=Hu(I,ae);we&&ae.beforeEnter(Y),r(Y,v,D),((B=le&&le.onVnodeMounted)||we||he)&<(()=>{let Oe;B&&qt(B,O,p),we&&ae.enter(Y),he&&io(p,null,O,"mounted")},I)},ee=(p,v,D,O,I)=>{if(D&&C(p,D),O)for(let U=0;U{for(let B=Y;B{let H=v.el=p.el,{patchFlag:Y,dynamicChildren:B,dirs:le}=v;Y|=p.patchFlag&16;let x=p.props||Ae,ae=v.props||Ae,he;if(D&&ao(D,!1),(he=ae.onVnodeBeforeUpdate)&&qt(he,D,v,p),le&&io(v,p,D,"beforeUpdate"),D&&ao(D,!0),B&&(!p.dynamicChildren||p.dynamicChildren.length!==B.length)&&(Y=0,L=!1,B=null),(x.innerHTML&&ae.innerHTML==null||x.textContent&&ae.textContent==null)&&y(H,""),B?G(p.dynamicChildren,B,H,D,O,Vs(v,I),U):L||_e(p,v,H,null,D,O,Vs(v,I),U,!1),Y>0){if(Y&16)J(H,x,ae,D,I);else if(Y&2&&x.class!==ae.class&&i(H,"class",null,ae.class,I),Y&4&&i(H,"style",x.style,ae.style,I),Y&8){let we=v.dynamicProps;for(let Ve=0;Ve{he&&qt(he,D,v,p),le&&io(v,p,D,"updated")},O)},G=(p,v,D,O,I,U,L)=>{for(let H=0;H{if(v!==D){if(v!==Ae)for(let U in v)!bo(U)&&!(U in D)&&i(p,U,v[U],null,I,O);for(let U in D){if(bo(U))continue;let L=D[U],H=v[U];L!==H&&U!=="value"&&i(p,U,H,L,I,O)}"value"in D&&i(p,"value",v.value,D.value,I)}},X=(p,v,D,O,I,U,L,H,Y)=>{let B=v.el=p?p.el:u(""),le=v.anchor=p?p.anchor:u(""),{patchFlag:x,dynamicChildren:ae,slotScopeIds:he}=v;he&&(H=H?H.concat(he):he),p==null?(r(B,D,O),r(le,D,O),_(v.children||[],D,le,I,U,L,H,Y)):x>0&&x&64&&ae&&p.dynamicChildren&&p.dynamicChildren.length===ae.length?(G(p.dynamicChildren,ae,D,I,U,L,H),(v.key!=null||I&&v===I.subTree)&&ji(p,v,!0)):_e(p,v,D,le,I,U,L,H,Y)},W=(p,v,D,O,I,U,L,H,Y)=>{v.slotScopeIds=H,p==null?v.shapeFlag&512?I.ctx.activate(v,D,O,L,Y):se(v,D,O,I,U,L,Y):ce(p,v,Y)},se=(p,v,D,O,I,U,L)=>{let H=p.component=Qu(p,O,I);if(Bn(p)&&(H.ctx.renderer=te),Xu(H,!1,L),H.asyncDep){if(I&&I.registerDep(H,de,L,U),!p.el){let Y=H.subTree=Ce(Rt);R(null,Y,v,D),p.placeholder=Y.el}}else de(H,p,v,D,I,U,L)},ce=(p,v,D)=>{let O=v.component=p.component;if(Iu(p,v,D))if(O.asyncDep&&!O.asyncResolved){v.el=p.el,v.placeholder=p.placeholder,re(O,v,D);return}else O.next=v,O.update();else v.el=p.el,v.placeholder=p.placeholder,O.vnode=v},de=(p,v,D,O,I,U,L)=>{let H=()=>{if(p.isMounted){let{next:x,bu:ae,u:he,parent:we,vnode:Ve}=p;{let ct=Gi(p);if(ct){x&&(x.el=Ve.el,re(p,x,L)),ct.asyncDep.then(()=>{lt(()=>{p.isUnmounted||B()},I)});return}}let Oe=x,We;ao(p,!1),x?(x.el=Ve.el,re(p,x,L)):x=Ve,ae&&wo(ae),(We=x.props&&x.props.onVnodeBeforeUpdate)&&qt(We,we,x,Ve),ao(p,!0);let Ke=Ps(p),kt=p.subTree;p.subTree=Ke,b(kt,Ke,E(kt.el),Z(kt),p,I,U),x.el=Ke.el,Oe===null&&Pu(p,Ke.el),he&<(he,I),(We=x.props&&x.props.onVnodeUpdated)&<(()=>qt(We,we,x,Ve),I)}else{let x,{el:ae,props:he}=v,{bm:we,m:Ve,parent:Oe,root:We,type:Ke}=p,kt=Zo(v);if(ao(p,!1),we&&wo(we),!kt&&(x=he&&he.onVnodeBeforeMount)&&qt(x,Oe,v),ao(p,!0),ae&&Ee){let ct=()=>{p.subTree=Ps(p),Ee(ae,p.subTree,p,I,null)};kt&&Ke.__asyncHydrate?Ke.__asyncHydrate(ae,p,ct):ct()}else{We.ce&&We.ce._hasShadowRoot()&&We.ce._injectChildStyle(Ke,p.parent?p.parent.type:void 0);let ct=p.subTree=Ps(p);b(null,ct,D,O,p,I,U),v.el=ct.el}if(Ve&<(Ve,I),!kt&&(x=he&&he.onVnodeMounted)){let ct=v;lt(()=>qt(x,Oe,ct),I)}(v.shapeFlag&256||Oe&&Zo(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&p.a&<(p.a,I),p.isMounted=!0,v=D=O=null}};p.scope.on();let Y=p.effect=new Co(H);p.scope.off();let B=p.update=Y.run.bind(Y),le=p.job=Y.runIfDirty.bind(Y);le.i=p,le.id=p.uid,Y.scheduler=()=>zs(le),ao(p,!0),B()},re=(p,v,D)=>{v.component=p;let O=p.vnode.props;p.vnode=v,p.next=null,qu(p,v.props,O,D),Lu(p,v.children,D),St(),hi(p),Nt()},_e=(p,v,D,O,I,U,L,H,Y=!1)=>{let B=p&&p.children,le=p?p.shapeFlag:0,x=v.children,{patchFlag:ae,shapeFlag:he}=v;if(ae>0){if(ae&128){Me(B,x,D,O,I,U,L,H,Y);return}else if(ae&256){qe(B,x,D,O,I,U,L,H,Y);return}}he&8?(le&16&&F(B,I,U),x!==B&&y(D,x)):le&16?he&16?Me(B,x,D,O,I,U,L,H,Y):F(B,I,U,!0):(le&8&&y(D,""),he&16&&_(x,D,O,I,U,L,H,Y))},qe=(p,v,D,O,I,U,L,H,Y)=>{p=p||xt,v=v||xt;let B=p.length,le=v.length,x=Math.min(B,le),ae;for(ae=0;aele?F(p,I,U,!0,!1,x):_(v,D,O,I,U,L,H,Y,x)},Me=(p,v,D,O,I,U,L,H,Y)=>{let B=0,le=v.length,x=p.length-1,ae=le-1;for(;B<=x&&B<=ae;){let he=p[B],we=v[B]=Y?Kt(v[B]):Ut(v[B]);if(Jo(he,we))b(he,we,D,null,I,U,L,H,Y);else break;B++}for(;B<=x&&B<=ae;){let he=p[x],we=v[ae]=Y?Kt(v[ae]):Ut(v[ae]);if(Jo(he,we))b(he,we,D,null,I,U,L,H,Y);else break;x--,ae--}if(B>x){if(B<=ae){let he=ae+1,we=heae)for(;B<=x;)Se(p[B],I,U,!0),B++;else{let he=B,we=B,Ve=new Map;for(B=we;B<=ae;B++){let pt=v[B]=Y?Kt(v[B]):Ut(v[B]);pt.key!=null&&Ve.set(pt.key,B)}let Oe,We=0,Ke=ae-we+1,kt=!1,ct=0,Po=new Array(Ke);for(B=0;B=Ke){Se(pt,I,U,!0);continue}let Tt;if(pt.key!=null)Tt=Ve.get(pt.key);else for(Oe=we;Oe<=ae;Oe++)if(Po[Oe-we]===0&&Jo(pt,v[Oe])){Tt=Oe;break}Tt===void 0?Se(pt,I,U,!0):(Po[Tt-we]=B+1,Tt>=ct?ct=Tt:kt=!0,b(pt,v[Tt],D,null,I,U,L,H,Y),We++)}let vr=kt?Bu(Po):xt;for(Oe=vr.length-1,B=Ke-1;B>=0;B--){let pt=we+B,Tt=v[pt],yr=v[pt+1],gr=pt+1{let{el:U,type:L,transition:H,children:Y,shapeFlag:B}=p;if(B&6){Pe(p.component.subTree,v,D,O);return}if(B&128){p.suspense.move(v,D,O);return}if(B&64){L.move(p,v,D,te);return}if(L===K){r(U,v,D);for(let x=0;xH.enter(U),I));else{let{leave:x,delayLeave:ae,afterLeave:he}=H,we=()=>{p.ctx.isUnmounted?s(U):r(U,v,D)},Ve=()=>{let Oe=U._isLeaving||!!U[Os];U._isLeaving&&U[Os](!0),H.persisted&&!Oe?we():x(U,()=>{we(),he&&he()})};ae?ae(U,we,Ve):Ve()}else r(U,v,D)},Se=(p,v,D,O=!1,I=!1)=>{let{type:U,props:L,ref:H,children:Y,dynamicChildren:B,shapeFlag:le,patchFlag:x,dirs:ae,cacheIndex:he,memo:we}=p;if((x===-2||B&&B.hasOnce)&&(I=!1),H!=null&&(St(),Xo(H,null,D,p,!0),Nt()),he!=null&&(!p.ctx||p.ctx===v)&&(v.renderCache[he]=void 0),le&256){v.ctx.deactivate(p);return}let Ve=le&1&&ae,Oe=!Zo(p),We;if(Oe&&(We=L&&L.onVnodeBeforeUnmount)&&qt(We,v,p),le&6)ke(p.component,D,O);else{if(le&128){p.suspense.unmount(D,O);return}Ve&&io(p,null,v,"beforeUnmount"),le&64?p.type.remove(p,v,D,te,O):B&&!B.hasOnce&&(U!==K||x>0&&x&64)?F(B,v,D,!1,!0):(U===K&&x&384||!I&&le&16)&&F(Y,v,D),O&&ze(p)}let Ke=we!=null&&he==null;(Oe&&(We=L&&L.onVnodeUnmounted)||Ve||Ke)&<(()=>{We&&qt(We,v,p),Ve&&io(p,null,v,"unmounted"),Ke&&(p.el=null)},D)},ze=p=>{let{type:v,el:D,anchor:O,transition:I}=p,U=v===K;if(U&&!I){Ue(D,O);return}if(v===en){V(p),I&&!I.persisted&&I.afterLeave&&I.afterLeave();return}let L=U?qs(p):p,H=()=>{U?E(D)&&Ue(D,O):s(D),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(L&&L.shapeFlag&1&&I&&!I.persisted){let{leave:Y,delayLeave:B}=I,le=L.el,x=()=>Y(le,H);B?B(le,H,x):x()}else H()},Ue=(p,v)=>{let D;for(;p!==v;)D=h(p),s(p),p=D;s(v)},ke=(p,v,D)=>{let{bum:O,scope:I,job:U,subTree:L,um:H,m:Y,a:B}=p;ai(Y),ai(B),O&&wo(O),I.stop(),U?(U.flags|=8,Se(L,p,v,D)):p.vnode.el&&L&&(L.transition=p.vnode.transition,Se(L,p,v,D)),H&<(H,v),lt(()=>{p.isUnmounted=!0},v)},F=(p,v,D,O=!1,I=!1,U=0)=>{for(let L=U;L{if(p.shapeFlag&6)return Z(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();let v=h(p.anchor||p.el),D=v&&v[lu];return D?h(D):v},Q=(p,v,D)=>{let O=p&&v._vnode?void 0:p&&p.component?p.component.uid:Ju();nu(()=>{p==null?v._vnode&&Se(v._vnode,null,null,!0):b(v._vnode||null,p,v,null,null,null,D),v._vnode=p},O)},te={p:b,um:Se,m:Pe,r:ze,mt:se,mc:_,pc:_e,pbc:G,n:Z,o:e},ye,Ee;return t&&([ye,Ee]=t(te)),{render:Q,hydrate:ye,createApp:Nu(Q,ye)}}function Vs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ao({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ji(e,t,n=!1){let r=e.children,s=t.children;if(me(r)&&me(s))for(let i=0;i>1,e[n[u]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Gi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gi(t)}function ai(e){if(e)for(let t=0;te.__isSuspense;function ju(e,t){t&&t.pendingBranch?me(e)?t.effects.push(...e):t.effects.push(e):mi(e)}var K=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),Rt=Symbol.for("v-cmt"),en=Symbol.for("v-stc"),lo=[],vt=null;function l(e=!1){lo.push(vt=e?null:[])}function Ki(){lo.pop(),vt=lo[lo.length-1]||null}var nn=1;function Ln(e,t=!1){nn+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function Yi(e){return e.dynamicChildren=nn>0?vt||xt:null,Ki(),nn>0&&vt&&vt.push(e),e}function d(e,t,n,r,s,i){return Yi(o(e,t,n,r,s,i,!0))}function Lt(e,t,n,r,s){return Yi(Ce(e,t,n,r,s,!0))}function sn(e){return e?e.__v_isVNode===!0:!1}function Jo(e,t){return e.type===t.type&&e.key===t.key}var Ji=({key:e})=>e??null,Vn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||Xe(e)||ge(e)?{i:ht,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,r=0,s=null,i=e===K?0:1,a=!1,u=!1){let m={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ji(t),ref:t&&Vn(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ht};return u?(Fn(m,n),i&128&&e.normalize(m)):n&&(m.shapeFlag|=Le(n)?8:16),nn>0&&!a&&vt&&(m.patchFlag>0||i&6)&&m.patchFlag!==32&&vt.push(m),m}var Ce=Gu;function Gu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===gu)&&(e=Rt),sn(e)){let u=No(e,t,!0);return n&&Fn(u,n),nn>0&&!i&&vt&&(u.shapeFlag&6?vt[vt.indexOf(e)]=u:vt.push(u)),u.patchFlag=-2,u}if(oc(e)&&(e=e.__vccOpts),t){t=Wu(t);let{class:u,style:m}=t;u&&!Le(u)&&(t.class=A(u)),Re(m)&&(Yo(m)&&!me(m)&&(m=je({},m)),t.style=Ie(m))}let a=Le(e)?1:Wi(e)?128:Hn(e)?64:Re(e)?4:ge(e)?2:0;return o(e,t,n,r,s,a,i,!0)}function Wu(e){return e?Yo(e)||Ui(e)?je({},e):e:null}function No(e,t,n=!1,r=!1){let{props:s,ref:i,patchFlag:a,children:u,transition:m}=e,k=t?Ku(s||{},t):s,y={__v_isVNode:!0,__v_skip:!0,type:e.type,props:k,key:k&&Ji(k),ref:t&&t.ref?n&&i?me(i)?i.concat(Vn(t)):[i,Vn(t)]:Vn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:m,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&No(e.ssContent),ssFallback:e.ssFallback&&No(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return m&&r&&on(y,m.clone(y)),y}function w(e=" ",t=0){return Ce(Wn,null,e,t)}function ue(e,t){let n=Ce(en,null,e);return n.staticCount=t,n}function f(e="",t=!1){return t?(l(),Lt(Rt,null,e)):Ce(Rt,null,e)}function Ut(e){return e==null||typeof e=="boolean"?Ce(Rt):me(e)?Ce(K,null,e.slice()):sn(e)?Kt(e):Ce(Wn,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:No(e)}function Fn(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(me(t))n=16;else if(typeof t=="object")if(r&65){let s=t.default;s&&(s._c&&(s._d=!1),Fn(e,s()),s._c&&(s._d=!0));return}else{n=32;let s=t._;!s&&!Ui(t)?t._ctx=ht:s===3&&ht&&(ht.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ge(t)){if(r&65){Fn(e,{default:t});return}t={default:t,_ctx:ht},n=32}else t=String(t),r&64?(n=16,t=[w(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ku(...e){let t={};for(let n=0;net||ht,zn,rn;{let e=Uo(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(a=>a(i)):s[0](i)}};zn=t("__VUE_INSTANCE_SETTERS__",n=>et=n),rn=t("__VUE_SSR_SETTERS__",n=>Do=n)}var cn=e=>{let t=et;return zn(e),e.scope.on(),()=>{e.scope.off(),zn(t)}},li=()=>{et&&et.scope.off(),zn(null)};function Xi(e){return e.vnode.shapeFlag&4}var Do=!1;function Xu(e,t=!1,n=!1){t&&rn(t);let{props:r,children:s}=e.vnode,i=Xi(e);Vu(e,r,i,t),$u(e,s,n||t);let a=i?Zu(e,t):void 0;return t&&rn(!1),a}function Zu(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bu);let{setup:r}=n;if(r){St();let s=e.setupContext=r.length>1?ec(e):null,i=cn(e),a=an(r,e,0,[e.props,s]),u=cs(a);if(Nt(),i(),(u||e.sp)&&!Zo(e)&&Hs(e),u){if(a.then(li,li),t)return a.then(m=>{rn(!0);try{di(e,m,t)}finally{rn(!1)}}).catch(m=>{ln(m,e,0)});e.asyncDep=a}else di(e,a,t)}else Zi(e,t)}function di(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Re(t)&&(e.setupState=In(t)),Zi(e,n)}var ui,ci;function Zi(e,t,n){let r=e.type;if(!e.render){if(!t&&ui&&!r.render){let s=r.template||Bs(e).template;if(s){let{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:m}=r,k=je(je({isCustomElement:i,delimiters:u},a),m);r.render=ui(s,k)}}e.render=r.render||it,ci&&ci(e)}{let s=cn(e);St();try{wu(e)}finally{Nt(),s()}}}var xu={get(e,t){return Ze(e,"get",""),e[t]}};function ec(e){let t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xu),slots:e.slots,emit:e.emit,expose:t}}function Kn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(In(Ts(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xo)return xo[n](e)},has(t,n){return n in t||n in xo}})):e.proxy}function tc(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function oc(e){return ge(e)&&"__vccOpts"in e}var tt=(e,t)=>Yr(e,t,Do);function be(e,t,n){try{Ln(-1);let r=arguments.length;return r===2?Re(t)&&!me(t)?sn(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&sn(n)&&(n=[n]),Ce(e,t,n))}finally{Ln(1)}}var nc="3.5.44";var Qs,xi=typeof window<"u"&&window.trustedTypes;if(xi)try{Qs=xi.createPolicy("vue",{createHTML:e=>e})}catch{}var ca=Qs?e=>Qs.createHTML(e):e=>e,sc="http://www.w3.org/2000/svg",rc="http://www.w3.org/1998/Math/MathML",Jt=typeof document<"u"?document:null,ea=Jt&&Jt.createElement("template"),ic={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let s=t==="svg"?Jt.createElementNS(sc,e):t==="mathml"?Jt.createElementNS(rc,e):n?Jt.createElement(e,{is:n}):Jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Jt.createTextNode(e),createComment:e=>Jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){let a=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{ea.innerHTML=ca(r==="svg"?``:r==="mathml"?``:e);let u=ea.content;if(r==="svg"||r==="mathml"){let m=u.firstChild;for(;m.firstChild;)u.appendChild(m.firstChild);u.removeChild(m)}t.insertBefore(u,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};var ac=Symbol("_vtc");function lc(e,t,n){let r=e[ac];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}var Qn=Symbol("_vod"),pa=Symbol("_vsh"),j={name:"show",beforeMount(e,{value:t},{transition:n}){e[Qn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):pn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),pn(e,!0),r.enter(e)):r.leave(e,()=>{pn(e,!1)}):pn(e,t))},beforeUnmount(e,{value:t}){pn(e,t)}};function pn(e,t){e.style.display=t?e[Qn]:"none",e[pa]=!t}var dc=Symbol("");var uc=/(?:^|;)\s*display\s*:/;function cc(e,t,n){let r=e.style,s=Le(n),i=!1;if(n&&!s){if(t)if(Le(t))for(let a of t.split(";")){let u=a.slice(0,a.indexOf(":")).trim();n[u]==null&&fn(r,u,"")}else for(let a in t)n[a]==null&&fn(r,a,"");for(let a in n){a==="display"&&(i=!0);let u=n[a];u!=null?fc(e,a,!Le(t)&&t?t[a]:void 0,u)||fn(r,a,u):fn(r,a,"")}}else if(s){if(t!==n){let a=r[dc];a&&(n+=";"+a),r.cssText=n,i=uc.test(n)}}else t&&e.removeAttribute("style");Qn in e&&((!s||t!==n)&&(e[Qn]=i?r.display:""),e[pa]&&(r.display="none"))}var Yn=/\s*!important$/;function fn(e,t,n){if(me(n))n.forEach(r=>fn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))Yn.test(n)?e.setProperty(t,n.replace(Yn,""),"important"):e.setProperty(t,n);else{let r=pc(e,t);Yn.test(n)?e.setProperty(At(r),n.replace(Yn,""),"important"):e[r]=n}}var ta=["Webkit","Moz","ms"],Ks={};function pc(e,t){let n=Ks[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return Ks[t]=r;r=no(r);for(let s=0;sYs||(bc.then(()=>Ys=0),Ys=Date.now());function kc(e,t){let n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;let s=n.value;if(me(s)){let i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};let a=s.slice(),u=[r];for(let m=0;me.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ec=(e,t,n,r,s,i)=>{let a=s==="svg";t==="class"?lc(e,r,a):t==="style"?cc(e,n,r):yo(t)?go(t)||hc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cc(e,t,r,a))?(sa(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&na(e,t,r,a,i,t!=="value")):e._isVueCE&&(_c(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Le(r)))?sa(e,Ye(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),na(e,t,r,a))};function Cc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ia(t)&&ge(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ia(t)&&Le(n)?!1:t in e}function _c(e,t){let n=e._def.props;if(!n)return!1;let r=Ye(t);return Array.isArray(n)?n.some(s=>Ye(s)===r):Object.keys(n).some(s=>Ye(s)===r)}var Ro=e=>{let t=e.props["onUpdate:modelValue"]||!1;return me(t)?n=>wo(t,n):t};function Sc(e){e.target.composing=!0}function aa(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var Ft=Symbol("_assign"),Jn=Symbol("_initialValue");function Js(e,t,n){return t&&(e=e.trim()),n&&(e=ko(e)),e}var zt={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e.parentNode&&(e.type==="text"?e[Jn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Jn]=e.defaultValue.replace(/\r\n?/g,`
+`))),e[Ft]=Ro(s);let i=r||s.props&&s.props.type==="number";to(e,t?"change":"input",a=>{a.target.composing||e[Ft](Js(e.value,n,i))}),(n||i)&&to(e,"change",()=>{e.value=Js(e.value,n,i)}),t||(to(e,"compositionstart",Sc),to(e,"compositionend",aa),to(e,"change",aa))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let s=t??"",i=e[Jn];delete e[Jn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ft](Js(e.value,n,r)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},a){if(e[Ft]=Ro(a),e.composing)return;let u=(i||e.type==="number")&&!/^0\d/.test(e.value)?ko(e.value):e.value,m=t??"";if(u===m)return;let k=e.getRootNode();(k instanceof Document||k instanceof ShadowRoot)&&k.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===m)||(e.value=m)}},Xs={deep:!0,created(e,t,n){e[Ft]=Ro(n),to(e,"change",()=>{let r=e._modelValue,s=mn(e),i=e.checked,a=e[Ft];if(me(r)){let u=Cn(r,s),m=u!==-1;if(i&&!m)a(r.concat(s));else if(!i&&m){let k=[...r];k.splice(u,1),a(k)}}else if(Et(r)){let u=new Set(r);i?u.add(s):u.delete(s),a(u)}else a(fa(e,i))})},mounted:la,beforeUpdate(e,t,n){e[Ft]=Ro(n),la(e,t,n)}};function la(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(me(t))s=Cn(t,r.props.value)>-1;else if(Et(t))s=t.has(r.props.value);else{if(t===n)return;s=Ct(t,fa(e,!0))}e.checked!==s&&(e.checked=s)}var Xn={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,to(e,"change",()=>{let s=Array.prototype.filter.call(e.options,m=>m.selected).map(m=>n?ko(mn(m)):mn(m)),i=e.multiple,a=i?Et(e._modelValue)?new Set(s):s:s[0],u=e._pendingValue=[i,i?me(a)?s.slice():s:a];try{e[Ft](a)}finally{ot(()=>{e._pendingValue===u&&(e._pendingValue=void 0)})}}),e[Ft]=Ro(r)},mounted(e,{value:t}){da(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Ft]=Ro(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Nc(t,n[1],n[0]))&&da(e,t)}};function Nc(e,t,n){if(!n)return Ct(e,t);if(me(e))return Ct(e,t);if(Et(e)){if(e.size!==t.length)return!1;for(let r of t)if(!e.has(r))return!1;return!0}return!1}function da(e,t){let n=e.multiple,r=me(t);if(!(n&&!r&&!Et(t))){for(let s=0,i=e.options.length;sString(k)===String(u)):a.selected=Cn(t,u)>-1}else a.selected=t.has(u);else if(Ct(mn(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function mn(e){return"_value"in e?e._value:e.value}function fa(e,t){let n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}var Dc=["ctrl","shift","alt","meta"],Rc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Dc.some(n=>e[`${n}Key`]&&!t.includes(n))},ie=(e,t)=>{if(!e)return e;let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let a=0;a{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;let i=At(s.key);if(t.some(a=>a===i||Tc[a]===i))return e(s)}))},Ac=je({patchProp:Ec},ic),ua;function Oc(){return ua||(ua=Bi(Ac))}var ma=((...e)=>{let t=Oc().createApp(...e),{mount:n}=t;return t.mount=r=>{let s=Pc(r);if(!s)return;let i=t._component;!ge(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");let a=n(s,!1,Ic(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function Ic(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Pc(e){return Le(e)?document.querySelector(e):e}var mo=typeof document<"u";function va(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&va(e.default)}var Te=Object.assign;function Zn(e,t){let n={};for(let r in t){let s=t[r];n[r]=wt(s)?s.map(e):e(s)}return n}var Oo=()=>{},wt=Array.isArray;function er(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var ya=/#/g,qc=/&/g,Mc=/\//g,Uc=/=/g,$c=/\?/g,ga=/\+/g,Lc=/%5B/g,Fc=/%5D/g,ba=/%5E/g,zc=/%60/g,wa=/%7B/g,Hc=/%7C/g,ka=/%7D/g,Bc=/%20/g;function tr(e){return e==null?"":encodeURI(""+e).replace(Hc,"|").replace(Lc,"[").replace(Fc,"]")}function Ea(e){return tr(e).replace(wa,"{").replace(ka,"}").replace(ba,"^")}function Zs(e){return tr(e).replace(ga,"%2B").replace(Bc,"+").replace(ya,"%23").replace(qc,"%26").replace(zc,"`").replace(wa,"{").replace(ka,"}").replace(ba,"^")}function jc(e){return Zs(e).replace(Uc,"%3D")}function Gc(e){return tr(e).replace(ya,"%23").replace($c,"%3F")}function Ca(e){return Gc(e).replace(Mc,"%2F")}function Ao(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Wc=/\/$/,Kc=e=>e.replace(Wc,"");function xn(e,t,n="/"){let r,s={},i="",a="",u=t.indexOf("#"),m=t.indexOf("?");return m=u>=0&&m>u?-1:m,m>=0&&(r=t.slice(0,m),i=t.slice(m,u>0?u:t.length),s=e(i.slice(1))),u>=0&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=Jc(r??t,n),{fullPath:r+i+a,path:r,query:s,hash:Ao(a)}}function _a(e,t){let n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function or(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Sa(e,t,n){let r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&po(t.matched[r],n.matched[s])&&nr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Yc(e[n],t[n]))return!1;return!0}function Yc(e,t){return wt(e)?ha(e,t):wt(t)?ha(t,e):e?.valueOf()===t?.valueOf()}function ha(e,t){return wt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jc(e,t){if(e.startsWith("/"))return e;if(!e)return t;let n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,a,u;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}var Xt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},es=(function(e){return e.pop="pop",e.push="push",e})({}),ts=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Na(e){if(!e)if(mo){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Kc(e)}var Qc=/^[^#]+#/;function Da(e,t){return e.replace(Qc,"#")+t}function Xc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var hn=()=>({left:window.scrollX,top:window.scrollY});function Ra(e){let t;if("el"in e){let n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Xc(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function sr(e,t){return(history.state?history.state.position-t:-1)+e}var xs=new Map;function Ta(e,t){xs.set(e,t)}function Aa(e){let t=xs.get(e);return xs.delete(e),t}function Zc(e){return typeof e=="string"||e&&typeof e=="object"}function rr(e){return typeof e=="string"||typeof e=="symbol"}var Be=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),Oa=Symbol("");var zU={[Be.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for
${JSON.stringify(e)}${t?`
while being at
-`+JSON.stringify(t):""}`},[Be.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ep(t)}" via a navigation guard.`},[Be.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[Be.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[Be.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function fo(e,t){return Te(new Error,{type:e,[Oa]:!0},t)}function Ht(e,t){return e instanceof Error&&Oa in e&&(t==null||!!(e.type&t))}var xc=["params","query","hash"];function ep(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let n of xc)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ia(e){let t={};if(e===""||e==="?")return t;let n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&Xs(s)):[r&&Xs(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Pa(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=wt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}var Va=Symbol(""),ir=Symbol(""),ts=Symbol(""),os=Symbol(""),ns=Symbol("");function Io(){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 Qt(e,t,n,r,s,i=a=>a()){let a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((u,f)=>{let w=m=>{m===!1?f(fo(Be.NAVIGATION_ABORTED,{from:n,to:t})):m instanceof Error?f(m):Zc(m)?f(fo(Be.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,w)),k=Promise.resolve(h);e.length<3&&(k=k.then(w)),k.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(va(f)){let w=(f.__vccOpts||f)[t];w&&i.push(Qt(w,n,r,a,u,s))}else{let w=f();i.push(()=>w.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${u}" at "${a.path}"`);let k=Vc(h)?h.default:h;a.mods[u]=h,a.components[u]=k;let m=(k.__vccOpts||k)[t];return m&&Qt(m,n,r,a,u,s)()}))}}return i}function qa(e,t){let n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;apo(w,u))?r.push(u):n.push(u));let f=e.matched[a];f&&(t.matched.find(w=>po(w,f))||s.push(f))}return[n,r,s]}var tp=()=>location.protocol+"//"+location.host;function Wa(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),tr(u,"")}return tr(n,e)+r+s}function op(e,t,n,r){let s=[],i=[],a=null,u=({state:m})=>{let C=Wa(e,location),y=n.value,g=t.value,S=0;if(m){if(n.value=C,t.value=m,a&&a===y){a=null;return}S=g?m.position-g.position:0}else r(C);s.forEach(R=>{R(n.value,y,{delta:S,type:xn.pop,direction:S?S>0?es.forward:es.back:es.unknown})})};function f(){a=n.value}function w(m){s.push(m);let C=()=>{let y=s.indexOf(m);y>-1&&s.splice(y,1)};return i.push(C),C}function h(){if(document.visibilityState==="hidden"){let{history:m}=window;if(!m.state)return;m.replaceState(Te({},m.state,{scroll:hn()}),"")}}function k(){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:w,destroy:k}}function Ma(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?hn():null}}function np(e){let{history:t,location:n}=window,r={value:Wa(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,w,h){let k=e.indexOf("#"),m=k>-1?(n.host&&document.querySelector("base")?e:e.slice(k))+f:tp()+e+f;try{t[h?"replaceState":"pushState"](w,"",m),s.value=w}catch(C){console.error(C),n[h?"replace":"assign"](m)}}function a(f,w){i(f,Te({},t.state,Ma(s.value.back,f,s.value.forward,!0),w,{position:s.value.position}),!0),r.value=f}function u(f,w){let h=Te({},s.value,t.state,{forward:f,scroll:hn()});i(h.current,h,!0),i(f,Te({},Ma(r.value,f,null),{position:h.position+1},w),!1),r.value=f}return{location:r,state:s,push:u,replace:a}}function Ka(e){e=Na(e);let t=np(e),n=op(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}let s=Te({location:"",base:e,go:r,createHref:Da.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})({}),Qe=(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})(Qe||{}),sp={type:ho.Static,value:""},rp=/[a-zA-Z0-9_]/;function ip(e){if(!e)return[[]];if(e==="/")return[[sp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${n})/"${w}": ${C}`)}let n=Qe.Static,r=n,s=[],i;function a(){i&&s.push(i),i=[]}let u=0,f,w="",h="";function k(){w&&(n===Qe.Static?i.push({type:ho.Static,value:w}):n===Qe.Param||n===Qe.ParamRegExp||n===Qe.ParamRegExpEnd?(i.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${w}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ho.Param,value:w,regexp:h,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),w="")}function m(){w+=f}for(;ut.length?t.length===1&&t[0]===rt.Static+rt.Segment?1:-1:0}function Ya(e,t){let n=0,r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}var cp={strict:!1,end:!0,sensitive:!1};function pp(e,t,n){let r=dp(ip(e.path),n),s=Te(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function fp(e,t){let n=[],r=new Map;t=xs(cp,t);function s(k){return r.get(k)}function i(k,m,C){let y=!C,g=Fa(k);g.aliasOf=C&&C.record;let S=xs(t,k),R=[g];if("alias"in k){let L=typeof k.alias=="string"?[k.alias]:k.alias;for(let V of L)R.push(Fa(Te({},g,{components:C?C.record.components:g.components,path:V,aliasOf:C?C.record:g})))}let T,P;for(let L of R){let{path:V}=L;if(m&&V[0]!=="/"){let M=m.record.path,se=M[M.length-1]==="/"?"":"/";L.path=m.record.path+(V&&se+V)}if(T=pp(L,m,S),C?C.alias.push(T):(P=P||T,P!==T&&P.alias.push(T),y&&k.name&&!za(T)&&a(k.name)),Ja(T)&&f(T),g.children){let M=g.children;for(let se=0;se{a(P)}:Oo}function a(k){if(sr(k)){let m=r.get(k);m&&(r.delete(k),n.splice(n.indexOf(m),1),m.children.forEach(a),m.alias.forEach(a))}else{let m=n.indexOf(k);m>-1&&(n.splice(m,1),k.record.name&&r.delete(k.record.name),k.children.forEach(a),k.alias.forEach(a))}}function u(){return n}function f(k){let m=vp(k,n);n.splice(m,0,k),k.record.name&&!za(k)&&r.set(k.record.name,k)}function w(k,m){let C,y={},g,S;if("name"in k&&k.name){if(C=r.get(k.name),!C)throw fo(Be.MATCHER_NOT_FOUND,{location:k});S=C.record.name,y=Te(Ua(m.params,C.keys.filter(P=>!P.optional).concat(C.parent?C.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),k.params&&Ua(k.params,C.keys.map(P=>P.name))),g=C.stringify(y)}else if(k.path!=null)g=k.path,C=n.find(P=>P.re.test(g)),C&&(y=C.parse(g),S=C.record.name);else{if(C=m.name?r.get(m.name):n.find(P=>P.re.test(m.path)),!C)throw fo(Be.MATCHER_NOT_FOUND,{location:k,currentLocation:m});S=C.record.name,y=Te({},m.params,k.params),g=C.stringify(y)}let R=[],T=C;for(;T;)R.unshift(T.record),T=T.parent;return{name:S,path:g,params:y,matched:R,meta:hp(R)}}e.forEach(k=>i(k));function h(){n.length=0,r.clear()}return{addRoute:i,resolve:w,removeRoute:a,clearRoutes:h,getRoutes:u,getRecordMatcher:s}}function Ua(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Fa(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mp(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 mp(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 za(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hp(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function vp(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ya(e,t[i])<0?r=i:n=i+1}let s=yp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function yp(e){let t=e;for(;t=t.parent;)if(Ja(t)&&Ya(e,t)===0)return t}function Ja({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ha(e){let t=dt(ts),n=dt(os),r=!1,s=null,i=tt(()=>{let h=Wt(e.to);return t.resolve(h)}),a=tt(()=>{let{matched:h}=i.value,{length:k}=h,m=h[k-1],C=n.matched;if(!m||!C.length)return-1;let y=C.findIndex(po.bind(null,m));if(y>-1)return y;let g=Ba(h[k-2]);return k>1&&Ba(m)===g&&C[C.length-1].path!==g?C.findIndex(po.bind(null,h[k-2])):y}),u=tt(()=>a.value>-1&&Ep(n.params,i.value.params)),f=tt(()=>a.value>-1&&a.value===n.matched.length-1&&or(n.params,i.value.params));function w(h={}){if(kp(h)){let k=t[Wt(e.replace)?"replace":"push"](Wt(e.to)).catch(Oo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>k),k}return Promise.resolve()}return{route:i,href:tt(()=>i.value.href),isActive:u,isExactActive:f,navigate:w}}function gp(e){return e.length===1?e[0]:e}var bp=dn({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:Ha,setup(e,{slots:t}){let n=ze(Ha(e)),{options:r}=dt(ts),s=tt(()=>({[ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{let i=t.default&&gp(t.default(n));return e.custom?i:we("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),wp=bp;function kp(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 Ep(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(!wt(s)||s.length!==r.length||r.some((i,a)=>i.valueOf()!==s[a].valueOf()))return!1}return!0}function Ba(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var ja=(e,t,n)=>e??t??n,Cp=dn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=dt(ns),s=tt(()=>e.route||r.value),i=dt(ir,0),a=tt(()=>{let w=Wt(i),{matched:h}=s.value,k;for(;(k=h[w])&&!k.components;)w++;return w}),u=tt(()=>s.value.matched[a.value]);uo(ir,tt(()=>a.value+1)),uo(Va,u),uo(ns,s);let f=xe();return He(()=>[f.value,u.value,e.name],([w,h,k],[m,C,y])=>{h&&(h.instances[k]=w,C&&C!==h&&w&&w===m&&(h.leaveGuards.size||(h.leaveGuards=C.leaveGuards),h.updateGuards.size||(h.updateGuards=C.updateGuards))),w&&h&&(!C||!po(h,C)||!m)&&(h.enterCallbacks[k]||[]).forEach(g=>g(w))},{flush:"post"}),()=>{let w=s.value,h=e.name,k=u.value,m=k&&k.components[h];if(!m)return Ga(n.default,{Component:m,route:w});let C=k.props[h],y=C?C===!0?w.params:typeof C=="function"?C(w):C:null,S=we(m,Te({},y,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(k.instances[h]=null)},ref:f}));return Ga(n.default,{Component:S,route:w})||S}}});function Ga(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var ar=Cp;function Qa(e){let t=fp(e.routes,e),n=e.parseQuery||Ia,r=e.stringifyQuery||rr,s=e.history,i=Io(),a=Io(),u=Io(),f=On(Xt),w=Xt;mo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let h=Xn.bind(null,U=>""+U),k=Xn.bind(null,Ca),m=Xn.bind(null,Ao);function C(U,oe){let X,_;return sr(U)?(X=t.getRecordMatcher(U),_=oe):_=U,t.addRoute(_,X)}function y(U){let oe=t.getRecordMatcher(U);oe&&t.removeRoute(oe)}function g(){return t.getRoutes().map(U=>U.record)}function S(U){return!!t.getRecordMatcher(U)}function R(U,oe){if(oe=Te({},oe||f.value),typeof U=="string"){let E=Zn(n,U,oe.path),O=t.resolve({path:E.path},oe),H=s.createHref(E.fullPath);return Te(E,O,{params:m(O.params),hash:Ao(E.hash),redirectedFrom:void 0,href:H})}let X;if(U.path!=null)X=Te({},U,{path:Zn(n,U.path,oe.path).path});else{let E=Te({},U.params);for(let O in E)E[O]==null&&delete E[O];X=Te({},U,{params:k(E)}),oe.params=k(oe.params)}let _=t.resolve(X,oe),q=U.hash||"";_.params=h(m(_.params));let B=_a(r,Te({},U,{hash:Ea(q),path:_.path})),v=s.createHref(B);return Te({fullPath:B,hash:q,query:r===rr?Pa(U.query):U.query||{}},_,{redirectedFrom:void 0,href:v})}function T(U){return typeof U=="string"?Zn(n,U,f.value.path):Te({},U)}function P(U,oe){if(w!==U)return fo(Be.NAVIGATION_CANCELLED,{from:oe,to:U})}function L(U){return se(U)}function V(U){return L(Te(T(U),{replace:!0}))}function M(U,oe){let X=U.matched[U.matched.length-1];if(X&&X.redirect){let{redirect:_}=X,q=typeof _=="function"?_(U,oe):_;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=T(q):{path:q},q.params={}),Te({query:U.query,hash:U.hash,params:q.path!=null?{}:U.params},q)}}function se(U,oe){let X=w=R(U),_=f.value,q=U.state,B=U.force,v=U.replace===!0,E=M(X,_);if(E)return se(Te(T(E),{state:typeof E=="object"?Te({},q,E.state):q,force:B,replace:v}),oe||X);let O=X;O.redirectedFrom=oe;let H;return!B&&Sa(r,_,X)&&(H=fo(Be.NAVIGATION_DUPLICATED,{to:O,from:_}),Le(_,_,!0,!1)),(H?Promise.resolve(H):I(O,_)).catch(F=>Ht(F)?Ht(F,Be.NAVIGATION_GUARD_REDIRECT)?F:Se(F):ae(F,O,_)).then(F=>{if(F){if(Ht(F,Be.NAVIGATION_GUARD_REDIRECT))return se(Te({replace:v},T(F.to),{state:typeof F.to=="object"?Te({},q,F.to.state):q,force:B}),oe||O)}else F=Z(O,_,!0,v,q);return Y(O,_,F),F})}function te(U,oe){let X=P(U,oe);return X?Promise.reject(X):Promise.resolve()}function N(U){let oe=Ie.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(U):U()}function I(U,oe){let X,[_,q,B]=qa(U,oe);X=ss(_.reverse(),"beforeRouteLeave",U,oe);for(let E of _)E.leaveGuards.forEach(O=>{X.push(Qt(O,U,oe))});let v=te.bind(null,U,oe);return X.push(v),Ee(X).then(()=>{X=[];for(let E of i.list())X.push(Qt(E,U,oe));return X.push(v),Ee(X)}).then(()=>{X=ss(q,"beforeRouteUpdate",U,oe);for(let E of q)E.updateGuards.forEach(O=>{X.push(Qt(O,U,oe))});return X.push(v),Ee(X)}).then(()=>{X=[];for(let E of B)if(E.beforeEnter)if(wt(E.beforeEnter))for(let O of E.beforeEnter)X.push(Qt(O,U,oe));else X.push(Qt(E.beforeEnter,U,oe));return X.push(v),Ee(X)}).then(()=>(U.matched.forEach(E=>E.enterCallbacks={}),X=ss(B,"beforeRouteEnter",U,oe,N),X.push(v),Ee(X))).then(()=>{X=[];for(let E of a.list())X.push(Qt(E,U,oe));return X.push(v),Ee(X)}).catch(E=>Ht(E,Be.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function Y(U,oe,X){u.list().forEach(_=>N(()=>_(U,oe,X)))}function Z(U,oe,X,_,q){let B=P(U,oe);if(B)return B;let v=oe===Xt,E=mo?history.state:{};X&&(_||v?s.replace(U.fullPath,Te({scroll:v&&E&&E.scroll},q)):s.push(U.fullPath,q)),f.value=U,Le(U,oe,X,v),Se()}let ee;function J(){ee||(ee=s.listen((U,oe,X)=>{if(!Ue.listening)return;let _=R(U),q=M(_,Ue.currentRoute.value);if(q){se(Te(q,{replace:!0,force:!0}),_).catch(Oo);return}w=_;let B=f.value;mo&&Ta(nr(B.fullPath,X.delta),hn()),I(_,B).catch(v=>Ht(v,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?v:Ht(v,Be.NAVIGATION_GUARD_REDIRECT)?(se(Te(T(v.to),{force:!0}),_).then(E=>{Ht(E,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!X.delta&&X.type===xn.pop&&s.go(-1,!1)}).catch(Oo),Promise.reject()):(X.delta&&s.go(-X.delta,!1),ae(v,_,B))).then(v=>{v=v||Z(_,B,!1),v&&(X.delta&&!Ht(v,Be.NAVIGATION_CANCELLED)?s.go(-X.delta,!1):X.type===xn.pop&&Ht(v,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),Y(_,B,v)}).catch(Oo)}))}let ie=Io(),pe=Io(),fe;function ae(U,oe,X){Se(U);let _=pe.list();return _.length?_.forEach(q=>q(U,oe,X)):console.error(U),Promise.reject(U)}function Ae(){return fe&&f.value!==Xt?Promise.resolve():new Promise((U,oe)=>{ie.add([U,oe])})}function Se(U){return fe||(fe=!U,J(),ie.list().forEach(([oe,X])=>U?X(U):oe()),ie.reset()),U}function Le(U,oe,X,_){let{scrollBehavior:q}=e;if(!mo||!q)return Promise.resolve();let B=!X&&Aa(nr(U.fullPath,0))||(_||!X)&&history.state&&history.state.scroll||null;return ot().then(()=>q(U,oe,B)).then(v=>v&&Ra(v)).catch(v=>ae(v,U,oe))}let De=U=>s.go(U),qe,Ie=new Set,Ue={currentRoute:f,listening:!0,addRoute:C,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:g,resolve:R,options:e,push:L,replace:V,go:De,back:()=>De(-1),forward:()=>De(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:pe.add,isReady:Ae,install(U){U.component("RouterLink",wp),U.component("RouterView",ar),U.config.globalProperties.$router=Ue,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>Wt(f)}),mo&&!qe&&f.value===Xt&&(qe=!0,L(s.location).catch(_=>{}));let oe={};for(let _ in Xt)Object.defineProperty(oe,_,{get:()=>f.value[_],enumerable:!0});U.provide(ts,Ue),U.provide(os,Ko(oe)),U.provide(ns,f);let X=U.unmount;Ie.add(U),U.unmount=function(){Ie.delete(U),Ie.size<1&&(w=Xt,ee&&ee(),ee=null,f.value=Xt,qe=!1,fe=!1),X()}}};function Ee(U){return U.reduce((oe,X)=>oe.then(()=>N(X)),Promise.resolve())}return Ue}function Xa(e){return dt(os)}function Za(e,t){return t?.split(".").reduce((n,r)=>n?.[r],e)}function lr(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,w=!0)=>{let h=typeof a=="function"?()=>a(i):()=>Za(i,a),k=He(h,u,{deep:f,flush:"post"});return r.push(k),w&&ot(()=>{s||u(h(),h())}),k},i.watchGroup=(a,u,f=!0)=>i.watch(()=>a.map(w=>Za(i,w)),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())},Go(i.dispose),i}function ut(){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)},Go(()=>{n=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:r,interval:s}}function Zt(){let e=new Set;return Go(()=>{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 dr(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 C of t)Object.prototype.hasOwnProperty.call(m,C)&&(e[C]=m[C]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},w=()=>{try{window.sessionStorage.removeItem(i)}catch{}},h=(m=!1)=>{if(r!==void 0){if(m&&document.querySelectorAll("input, select, textarea").forEach(C=>{C._field?.binding.state===e&&C._field.timer&&C._field.commit()}),e.unsavedChanges=u()!==r,e.draftSaved=!1,!e.unsavedChanges){w();return}try{window.sessionStorage.setItem(i,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:a()})),e.draftSaved=!0}catch{}}},k=()=>h(!0);return e.on("routeLeave",k),window.addEventListener("beforeunload",k),e.on("dispose",()=>window.removeEventListener("beforeunload",k)),{restore(){r=u();let m;try{m=JSON.parse(window.sessionStorage.getItem(i)||"null")}catch{}let C=m&&m.account===(e.user?.username||null)&&Date.now()-m.savedAt<30*6e4&&m.values;return C&&(f(m.values),e.draftRestored=!0),s||(s=!0,e.watch(()=>a(),()=>h(),!0)),e.unsavedChanges=u()!==r,!!C},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,w()}}}var vn={VIEWER_ERRORS:{title:"Content could not be loaded",access_title:"GitHub access needs attention",reader_help:"Reading this repository? You do not need to sign in. Try again after the owner restores access, or let them know this anonymous link is unavailable.",owner_help:"Own this repository? If your GitHub account was suspended or recently recovered, sign in to Anonymous GitHub again and check the GitHub connection and repository permissions in your dashboard. Then retry this page. Keep the existing anonymous URL; do not delete the repository to restore access.",retry:"Try again",dashboard:"Open owner dashboard"},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:"We could not load this content. Try again. If it still fails, contact support with the anonymous URL and the time of the error.",unreachable:"The service could not complete this request. Wait a moment and try again.",request_error:"The connection was interrupted. Check your internet connection and try again.",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:"Anonymous GitHub cannot access the source repository on GitHub. It may be private, unavailable, or require the owner to reconnect GitHub.",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:"The repository owner needs to renew their GitHub connection before this content can be loaded.",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."}};function ur(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(vn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var rs="XXXX",Sp=e=>{rs=e||"XXXX"},xa=(e=rs)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},el=(e,t=rs)=>{let n=xa(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 w=f.closest('code[class*="language-"]');if(w&&!w.contains(e))continue;let h=r.createDocumentFragment(),k=0;for(let m of u.matchAll(n)){h.append(u.slice(k,m.index));let C=r.createElement("mark");C.className="redaction",C.title="Redacted by Anonymous GitHub",C.textContent=m[0],h.append(C),k=m.index+m[0].length}h.append(u.slice(k)),a.replaceWith(h)}},tl=(e,t=rs)=>{if(!e||!t||!e.includes(t))return e;let n=new DOMParser().parseFromString(""+e+"","text/html");return el(n.body,t),n.body.innerHTML};async function ol(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 Np(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 nl=function(e,t,n,r){e.previewTabKeydown=Np,e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(h){let k=e.toasts.indexOf(h);k!==-1&&e.toasts.splice(k,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 k="/css/prism-okaidia.css",m="/css/prism.css";if(h){$("body").addClass("dark-mode");let y=document.createElement("link");y.href=k,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='${k}']`).remove()}let C=document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");C&&(C.style.backgroundColor=h?"#34312C":"#1A1815",C.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 k=await t.post("/github/connections/email",{action:h,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});h==="save"&&(e.user.notificationEmail=k.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,i?.focus()}catch(k){e.emailPromptError=k.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 k=document.getElementById("email-prompt");k?.showModal?k.showModal():k?.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),Sp(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 w(h,k){k&&(e.title=k.title),e.path=n.url(),e.paths=n.path().substring(1).split("/"),e.isReviewerRoute=s.test(n.path())}e.on("routeChange",w),e.on("routeUpdate",w)},sl=function(e,t){let n=Zt(),r=ut(),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)},rl=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,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let i="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let w=await t.get("/github/connections/email");e.accountEmail=w.data.notificationEmail||"",i=w.data.csrf,e.emailCSRFReady=!!i}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!i)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let w=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":i}});e.accountEmail=w.data.notificationEmail,e.user&&(e.user.notificationEmail=w.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),s.load().then(w=>{e.quota=w},console.error);let a=dr(e,["terms","options"],"profile");e.discardDraft=()=>a.discard();function u(){t.get("/api/user/default").then(w=>{let h=w.data||{};h.terms&&(e.terms=h.terms.join(`
-`)),e.options=Object.assign({},e.options,h.options),a.restore()})}u();let f=null;e.saveDefault=w=>{if(w&&w.preventDefault&&w.preventDefault(),e.saving)return;let h=a.checkpoint(),k={terms:e.terms.split(`
-`).map(m=>m.trim()).filter(m=>m.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",k).then(()=>{a.accept(h),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",f&&r.cancel(f),f=r(()=>{e.message=null},2500)},m=>{e.saving=!1;let C=m&&m.data&&m.data.error,y="Unable to save your defaults. Please try again.";Promise.all([n("ERRORS."+C),n("ERRORS.unknown_error")]).then(([g,S])=>{e.error=C&&g!==S?g:y},()=>{e.error=y})})},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."}))}},il=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)})}},al=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 w={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[u.key];if(w===void 0)return;u.preventDefault();let h=e.features.length,k=w==="first"?0:w==="last"?h-1:(f+w+h)%h;e.feature=e.features[k].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 w=new Array(u.length-1);for(let g=1;g=2){let g=w[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(w=>w.nbRepositories||0)),users:a(f.map(w=>w.nbUsers||0)),pageViews:a(f.map(w=>w.nbPageViews||0)),pullRequests:a(f.map(w=>w.nbPullRequests||0))}})},ll=function(e,t,n,r,s,i){let a=ut();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,ot(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Zt()(document,"click",N=>{e.quotaExpanded&&!N.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=N=>N.status==="error"||N._broken||f(N.status)==="progress"&&N._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=N=>{e.projectView=N,N==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=N=>"project-details-"+encodeURIComponent(N._type+":"+(N._id||N._source||"unknown")),e.showProjectDetails=async N=>{e.selectedProject=N,e.projectName=N.projectName||"",e.nameError="",e.nameMessage="",await ot();let I=document.getElementById(e.projectDetailsId(N));I?.focus(),I?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=N=>{e.selectedProject=null,ot(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(N._type+":"+N._id)}"]`)?.focus())},e.saveProjectName=async N=>{if(e.nameSaving||!N._id)return;let I=e.projectName.trim();if(I.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:N._type,id:N._id,name:I});N.projectName=Y.data.name,N._label=N.projectName||N._fallbackLabel,e.selectedProject===N&&(e.nameMessage=I?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await L(),e.selectedProject===N&&(e.selectedProject=e.items.find(Z=>Z._type===N._type&&Z._id===N._id)||null))}catch{e.selectedProject===N&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async N=>{if(!N._viewUrl||e.copyingId)return;let I=new URL(N._viewUrl,s.location.origin).href;e.copyingId=N._type+":"+N._id;try{await ol(I),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:I})}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(N){return N==="ready"||N==="error"?N:N==="expired"||N==="expiring"?"expired":N==="removed"||N==="removing"?"removed":(u.indexOf(N)>-1,"progress")}let w=7200*1e3,h="dashboard.filterPrefs",k={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},m=loadFilterPrefs(h)||{};e.typeFilter=m.typeFilter||k.typeFilter,e.filters={status:Object.assign({},k.filters.status,m.filters&&m.filters.status||{})},e.orderBy=m.orderBy||k.orderBy;let C={_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=C,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let N=C[e.sortField()];return N?N.label:"Custom"},e.isSortedBy=N=>e.sortField()===N,e.setSort=(N,I)=>{typeof I!="boolean"&&(I=e.isSortedBy(N)?!e.sortDesc():!!(C[N]&&C[N].defaultDesc)),e.orderBy=(I?"-":"")+N},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(N=>{e.quota=N},console.error);function y(N,I,Y,Z,ee,J){N.pageView||(N.pageView=0),N.lastView||(N.lastView=""),N.options=N.options||{},N.options.terms=(N.options.terms||[]).filter(pe=>pe),N._id=I||"",N._source=Z,N._broken=!I,N._name=I||Z||"(unnamed)",N._fallbackLabel=N._type==="gist"?"Gist "+(I||Z||"without an ID"):Z||Y||N._name,N._label=N.projectName||N._fallbackLabel,N._editUrl=I?ee:null,N._viewUrl=I?J:null,N._broken&&(N.status="error",N.statusMessage="incomplete_record"),N._statusKey=f(N.status);let ie=N.anonymizeDate||N.lastView;return N._stale=N._statusKey==="progress"&&!!ie&&Date.now()-new Date(ie).getTime()>w,N.status==="expired"||N.status==="expiring"?N._expiry={kind:"expired",date:N.options.expirationDate}:N.status!=="ready"?N._expiry={kind:"none"}:N.options.expirationMode==="never"||!N.options.expirationDate?N._expiry={kind:"never"}:N._expiry={kind:"date",date:N.options.expirationDate},N}function g(N){return t.get(N).then(I=>I.data||[],I=>(console.error(I),[]))}function S(){return e.loading=!0,r.all([g("/api/user/anonymized_repositories"),g("/api/user/anonymized_pull_requests"),g("/api/user/anonymized_gists")]).then(N=>{let I=N[0],Y=N[1],Z=N[2],ee=[];I.forEach(J=>{J._type="repo";let ie=J.source||{};ee.push(y(J,J.repoId,J.repoId,ie.fullName,"/anonymize/"+J.repoId,"/r/"+J.repoId+"/"))}),Y.forEach(J=>{J._type="pr";let ie=J.source||{};ee.push(y(J,J.pullRequestId,J.pullRequestId,ie.repositoryFullName?ie.repositoryFullName+"#"+ie.pullRequestId:void 0,"/pull-request-anonymize/"+J.pullRequestId,"/pr/"+J.pullRequestId+"/"))}),Z.forEach(J=>{J._type="gist";let ie=J.source||{};ee.push(y(J,J.gistId,J.gistId,ie.gistId,"/gist-anonymize/"+J.gistId,"/gist/"+J.gistId+"/"))}),e.items=ee,e.loading=!1})}let R=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function P(N){let I=N.source||{};return N._type==="repo"?y(N,N.repoId,N.repoId,I.fullName,"/anonymize/"+N.repoId,"/r/"+N.repoId+"/"):N._type==="pr"?y(N,N.pullRequestId,N.pullRequestId,I.repositoryFullName?I.repositoryFullName+"#"+I.pullRequestId:void 0,"/pull-request-anonymize/"+N.pullRequestId,"/pr/"+N.pullRequestId+"/"):y(N,N.gistId,N.gistId,I.gistId,"/gist-anonymize/"+N.gistId,"/gist/"+N.gistId+"/")}function L(N=!1){if(T)return S();let I=++R;return e.loading=!N,e.loadingMore=N,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:N?e.dashboardCursor:void 0}}).then(Y=>{if(I===R){if(!Array.isArray(Y.data?.items))return T=!0,S();e.items=(N?e.items:[]).concat(Y.data.items.map(P)),e.dashboardCursor=Y.data.cursor,e.dashboardTotals=Y.data}},Y=>{if(I===R){if(Y.status===404)return T=!0,S();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{I===R&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>L(!0);let V;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(V&&a.timeout.cancel(V),V=a.timeout(()=>L(),150))},!1),e.watch("filters",()=>{T||L()},!0,!1),e.on("dispose",()=>{R++}),L(),e.openItem=(N,I)=>{if(!N._viewUrl)return;let Y=I&&I.target;Y&&Y.closest&&Y.closest("a, button, .dropdown, input")||(s.location.href=N._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(N=>e.filters.status[N]===!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(N=>e.filters.status[N]===!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(N=>{e.filters.status[N]=!0})};function M(N,I,Y,Z){t.get("/api/repo/"+N).then(async ee=>{let J=Z!==void 0&&Z!==ee.data.status;for(let ie of e.items)if(ie._type==="repo"&&ie.repoId==N){J=J||ie.status!==ee.data.status;let pe=e.needsAttention(ie);ie.status=ee.data.status,ie.statusMessage=ee.data.statusMessage,ie._statusKey=f(ie.status),ie._statusKey!=="progress"&&(ie._stale=!1);let fe=e.needsAttention(ie);e.dashboardTotals&&pe!==fe&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(fe?1:-1)));break}if(J&&!T){e.dashboardCursor=null;let ie=e.selectedProject;await L(),ie&&e.selectedProject===ie&&(e.selectedProject=e.items.find(pe=>pe._type===ie._type&&pe._id===ie._id)||null)}if(ee.data.status=="ready"||ee.data.status=="error"||ee.data.status=="removed"||ee.data.status=="expired"){I(ee.data);return}a.timeout(()=>M(N,I,Y,ee.data.status),2500)},Y)}let se=N=>N==="repo"?"repository":N==="gist"?"gist":"pull request",te=N=>N==="repo"?"/api/repo":N==="gist"?"/api/gist":"/api/pr";e.removeItem=N=>{let I=se(N._type);if(confirm(`Are you sure that you want to remove the ${I} ${N._id}?`)){let Y=ze({title:`Removing ${N._id}...`,date:new Date,body:`The ${I} ${N._id} is going to be removed.`});e.addToast(Y);let Z=`${te(N._type)}/${N._id}`;t.delete(Z).then(()=>{N._type==="repo"?M(N._id,()=>{Y.title=`${N._id} is removed.`,Y.body=`The ${I} ${N._id} is removed.`},void 0,N.status):(Y.title=`${N._id} is removed.`,Y.body=`The ${I} ${N._id} is removed.`,L())},ee=>{Y.title=`Error during the removal of ${N._id}.`,Y.body=ee.body,L()})}},e.refreshItem=N=>{let I=se(N._type),Y=ze({title:`Refreshing ${N._id}...`,date:new Date,body:`The ${I} ${N._id} is going to be refreshed.`});e.addToast(Y);let Z=J=>{Y.title=`Error during the refresh of ${N._id}.`,Y.body=J.data?.error||J.body||"The refresh could not be completed. Please try again.",L()},ee=`${te(N._type)}/${N._id}/refresh`;t.post(ee).then(()=>{N._type==="repo"?M(N._id,J=>{if(J.status!=="ready"){Z({body:J.statusMessage||`The repository is ${J.status}.`});return}Y.title=`${N._id} is refreshed.`,Y.body=`The ${I} ${N._id} is refreshed.`},Z,N.status):(Y.title=`${N._id} is refreshed.`,Y.body=`The ${I} ${N._id} is refreshed.`,L())},Z)},e.extendItem=N=>{let I=se(N._type),Y=ze({title:`Extending ${N._id}...`,date:new Date,body:`The expiration of ${I} ${N._id} is going to be extended by 6 months.`});e.addToast(Y);let Z=`${te(N._type)}/${N._id}/extend`;t.post(Z).then(()=>{N._type==="repo"?M(N._id,()=>{Y.title=`${N._id} is extended.`,Y.body=`The expiration of ${I} ${N._id} is extended by 6 months.`},void 0,N.status):(Y.title=`${N._id} is extended.`,Y.body=`The expiration of ${I} ${N._id} is extended by 6 months.`,L())},ee=>{Y.title=`Error during the extension of ${N._id}.`,Y.body=ee.data&&ee.data.error||ee.body,L()})},e.itemFilter=N=>{if(e.projectView==="attention"&&!e.needsAttention(N)||e.typeFilter!=="all"&&N._type!==e.typeFilter||e.filters.status[N._statusKey]===!1)return!1;let I=e.search.trim().toLowerCase();return!!(I.length==0||N._label&&String(N._label).toLowerCase().indexOf(I)>-1||N._source&&String(N._source).toLowerCase().indexOf(I)>-1||N._id&&String(N._id).toLowerCase().indexOf(I)>-1||N.conference&&String(N.conference).toLowerCase().indexOf(I)>-1)}};var dl=function(e,t,n){let r=ut();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 ol(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 k(){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 C=Math.floor(m/60),y=m%60;e.rateLimitCountdown=C>0?C+"m "+y+"s":y+"s"}}k(),i=r.interval(k,1e3)}e.on("dispose",function(){u=!0,i&&r.interval.cancel(i),a&&r.timeout.cancel(a)});function w(h){if(!h)return h;var k=h.match(/^rate_limited:(\d+)$/);return k?(f(parseInt(k[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=w(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 k=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(k=!1),k&&(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&&Zt()(u,"change",_=>{e.mobileWorkspace=_.matches}),e.selectMobilePane=_=>{e.mobilePane=_};let f=0,w=!1,h=new Set,k=(_,q=!1)=>!w&&_.generation===f&&_.url===e.sourceUrl.trim()&&_.connection===e.githubConnection&&(!q||_.branch===e.source.branch),m=()=>{let _={generation:f,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return h.add(_),e.sourceLoading=!0,_},C=_=>{h.delete(_),w||(e.sourceLoading=[...h].some(q=>k(q)))};e.on("dispose",()=>{w=!0,f++});let y=null,g=_=>_.gistId&&!_.repo?"gist:"+_.gistId.toLowerCase():(_.owner+"/"+_.repo).toLowerCase()+(_.pullRequestId?"/pull/"+_.pullRequestId:""),S=dr(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(s.path?.()||""));e.discardDraft=async()=>{S.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="",ie.cancel(),Se.cancel(),Ie.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let R=()=>{let _={};for(let q of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])_[q]=e[q];sessionStorage.setItem("github-access-draft",JSON.stringify({path:s.path(),savedAt:Date.now(),draft:_}))};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 _=s.path(),q=se(e.sourceUrl)||"",B=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=B+"?returnTo="+encodeURIComponent(_)+"&repository="+encodeURIComponent(q)+"&install=1"},e.chooseGitHubConnection=async _=>{e.githubConnection=_,e.readme="",e.sourceUrl&&await N()},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 _=new Date;return _.setMonth(_.getMonth()+6),_}e.options.expirationDate=T();function P(_){let q=_.getFullYear(),B=String(_.getMonth()+1).padStart(2,"0"),v=String(_.getDate()).padStart(2,"0");return`${q}-${B}-${v}`}e.minExpirationDate=P(new Date);let L=new Date;L.setFullYear(L.getFullYear()+1),e.maxExpirationDate=P(L),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1;function V(_){t.get("/api/user/default").then(q=>{let B=q.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),_&&_()})}function M(_,q,B){e.anonymize&&e.anonymize[_]&&e.anonymize[_].setValidity(q,B)}function se(_){try{let q=parseGithubUrl(_);if(q&&q.owner&&q.repo)return q.owner+"/"+q.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!r.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||se(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let _=m();try{let q=await t.get("/github/connections");if(e.githubConnections=q.data,!q.data.appEnabled)return;let B=await t.post("/github/connections/migrate",{type:"repository",id:r.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":q.data.csrf}});if(!k(_))return;e.error=null,B.data.fullName&&(e._originalFullName=B.data.fullName,e.source.fullName=B.data.fullName,e.sourceUrl="https://github.com/"+B.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{k(_)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,C(_)}},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 te(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:se(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function N(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function I(){let _;try{_=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!_||_.path!==s.path()||Date.now()-_.savedAt>=30*6e4)return S.restore()?(e.sourceUrl&&await N(),!0):!1;S.restore();for(let q of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(_.draft,q)&&(e[q]=_.draft[q]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await N(),sessionStorage.removeItem("github-access-draft"),!0}V(()=>{!r.repoId&&!r.pullRequestId&&!r.gistId&&a(I,0),r.repoId&&r.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=r.repoId,t.get("/api/repo/"+e.repoId).then(async _=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(_.data.status),e.githubConnection=_.data.connection||"oauth",e.sourceUrl="https://github.com/"+_.data.source.fullName,e._originalFullName=_.data.source.fullName,e.terms=_.data.options.terms.filter(q=>q).join(`
-`),e.source=_.data.source,e.role=_.data.role||"owner",e.coauthors=_.data.coauthors||[],e._originalBranch=_.data.source.branch,e.options=Object.assign({},e.options,_.data.options),e.conference=_.data.conference,e._originalConference=_.data.conference,e.repositoryID=_.data.source.repositoryID,e._originalRepositoryID=_.data.source.repositoryID,_.data.options.expirationDate&&(e.options.expirationDate=new Date(_.data.options.expirationDate)),y=g(parseGithubUrl(e.sourceUrl)),!await I()&&(await Promise.all([Y(),Z()]),pe())},()=>{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 _=>{if(e.githubConnection=_.data.connection||"oauth",e.sourceUrl="https://github.com/"+_.data.source.repositoryFullName+"/pull/"+_.data.source.pullRequestId,e.terms=_.data.options.terms.filter(q=>q).join(`
-`),e.source=_.data.source,e.options=Object.assign({},e.options,_.data.options),e.conference=_.data.conference,e._originalConference=_.data.conference,_.data.options.expirationDate&&(e.options.expirationDate=new Date(_.data.options.expirationDate)),y=g(parseGithubUrl(e.sourceUrl)),!await I())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 _=>{e.sourceUrl="https://gist.github.com/"+_.data.source.gistId,e.terms=_.data.options.terms.filter(q=>q).join(`
-`),e.source=_.data.source,e.options=Object.assign({},e.options,_.data.options),e.conference=_.data.conference,e._originalConference=_.data.conference,_.data.options.expirationDate&&(e.options.expirationDate=new Date(_.data.options.expirationDate)),y=g(parseGithubUrl(e.sourceUrl)),!await I()&&await Le()},()=>{s.url("/404")}))}),t.get("/github/connections").then(_=>{e.githubConnections=_.data,!r.repoId&&!r.pullRequestId&&!r.gistId&&e.githubConnection===void 0&&_.data.appEnabled&&_.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&N())}).catch(()=>{}),e.urlSelected=async(_=!1)=>{let q=++f,B;try{B=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,ie.cancel(),Se.cancel(),Ie.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",M("sourceUrl","github",!1);return}let v=g(B),E=_||y===v;y=v,e.sourceUrlError="",M("sourceUrl","github",!0);let O=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,O&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!E&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],E||(e.source={type:"GitHubStream",branch:"",commit:""}),ie.cancel(),Se.cancel(),Ie.cancel(),ae.clear(),De.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=E;try{B.gistId&&!B.repo?(e.detectedType="gist",e.source={gistId:B.gistId},await Le()):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()]),pe())}catch{}finally{q===f&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let _=e.branches.filter(B=>B.name==e.source.branch)[0];if(!_)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=_.commit),e.readme=_.readme,await Z(),pe()}),e.getBranches=async _=>{let q=parseGithubUrl(e.sourceUrl),B=m();try{let v=await t.get(`/api/repo/${q.owner}/${q.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:_===!0||e.reconnectingSource?"1":"0",repositoryID:te()}});if(!k(B))return;e.branches=v.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let E=e.branches.filter(O=>O.name==e.source.branch);E.length>0&&(!(!e.reconnectingSource&&!_&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=E[0].commit),e.readme=E[0].readme,await Z(_))}catch(v){if(!k(B))return;e.branches=[],e.sourceUnreachable=v&&(v.status===404||v.data&&v.data.error==="repo_not_found");let E=v&&v.data&&v.data.error||(v&&v.status===404?"repo_not_found":"unknown_error");i("ERRORS."+E).then(O=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),typeof M=="function"&&M("sourceUrl","missing",!1)}finally{C(B)}};async function Y(){let _=parseGithubUrl(e.sourceUrl),q=m();try{U();let B=await t.get(`/api/repo/${_.owner}/${_.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:te(),force:"1"}});if(!k(q))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(!k(q))return;throw B.data&&(i("ERRORS."+B.data.error).then(v=>{e.addToast({title:"Error",date:new Date,body:v}),e.error=v},console.error),X(B.data.error)),M("sourceUrl","missing",!1),B}finally{C(q)}}async function Z(_){if(e.readme&&!_)return e.readme;let q=parseGithubUrl(e.sourceUrl),B=m();try{let v=await t.get(`/api/repo/${q.owner}/${q.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:_===!0?"1":"0",branch:e.source.branch,repositoryID:te()}});k(B,!0)&&(e.readme=v.data)}catch{k(B,!0)&&(e.readme="")}finally{C(B)}}function ee(){let _={terms:e.terms?e.terms.split(`
-`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(_.branchName=e.source.branch);try{let q=parseGithubUrl(e.sourceUrl);_.repoName=`${q.owner}/${q.repo}`}catch{}return _}function J(_,q,B){let v=null,E=0,O=()=>{if(e.detectedType!==_)return;v&&a.cancel(v);let H=++E;e.previewStatus="loading",v=a(()=>{v=null;let F=q();if(!F){e.previewStatus="idle";return}t.post("/api/anonymize-preview",F).then(j=>{H===E&&(B(j.data,F),e.previewStatus="ready")}).catch(()=>{H===E&&(e.previewStatus="error")})},200)};return O.cancel=()=>{E++,v&&a.cancel(v),v=null},e.on("dispose",O.cancel),O}e.retryPreview=()=>{e.detectedType==="repo"&&ie(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&Ie()};let ie=J("repo",()=>e.readme?{content:e.readme,options:ee()}:null,_=>{if(typeof _?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=_.content;let q="";try{let v=parseGithubUrl(e.sourceUrl),E=e.source.branch||e.details&&e.details.defaultBranch||"main";q=`https://github.com/${v.owner}/${v.repo}/raw/${E}/`}catch{}let B=renderMD(e.anonymize_readme,q);e.html_readme=B,a(Prism.highlightAll,150)});function pe(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),ie())}async function fe(){let _=parseGithubUrl(e.sourceUrl),q=m();try{U();let B=await t.get(`/api/pr/${_.owner}/${_.repo}/${_.pullRequestId}`,{params:{connection:e.githubConnection}});if(!k(q))return;e.details=B.data,e.pullRequestId||(e.pullRequestId=_.repo+"-PR"+_.pullRequestId+"-"+generateRandomId(4))}catch(B){if(!k(q))return;throw B.data&&(i("ERRORS."+B.data.error).then(v=>{e.addToast({title:"Error",date:new Date,body:v}),e.error=v},console.error),X(B.data.error)),M("sourceUrl","missing",!1),B}finally{C(q)}}let ae=ze(new Map);function Ae(){let _=new Set,q=e.details&&e.details.pullRequest;if(!q)return _;typeof q.title=="string"&&_.add(q.title),typeof q.body=="string"&&_.add(q.body),typeof q.diff=="string"&&_.add(q.diff);let B=q.comments||[];for(let v of B)typeof v.author=="string"&&_.add(v.author),typeof v.body=="string"&&_.add(v.body);return _}let Se=J("pr",()=>{let _=Ae(),q=Array.from(_);return q.length===0?null:{contents:q,options:ee()}},(_,q)=>{if(!Array.isArray(_?.contents)||_.contents.length!==q.contents.length||_.contents.some(E=>typeof E!="string"))throw Error("Invalid preview response");let B=q.contents,v=new Map;for(let E=0;Eae.set(O,E))});e.anonymizePrContent=function(_){return _&&(ae.has(_)?ae.get(_):"")};async function Le(){let _=parseGithubUrl(e.sourceUrl),q=m();try{U(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let B=await t.get(`/api/gist/source/${_.gistId}`);if(!k(q))return;e.details=B.data,e.gistId||(e.gistId="gist-"+_.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(B){if(!k(q))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(v=>{e.addToast({title:"Error",date:new Date,body:v}),e.error=v},console.error),X(B.data.error)),M("sourceUrl","missing",!1),B}finally{C(q)}}let De=ze(new Map);function qe(){let _=new Set,q=e.details&&e.details.gist;if(!q)return _;typeof q.description=="string"&&_.add(q.description),typeof q.ownerLogin=="string"&&_.add(q.ownerLogin);let B=q.files||[];for(let E of B)typeof E.filename=="string"&&_.add(E.filename),typeof E.content=="string"&&_.add(E.content);let v=q.comments||[];for(let E of v)typeof E.author=="string"&&_.add(E.author),typeof E.body=="string"&&_.add(E.body);return _}let Ie=J("gist",()=>{let _=qe(),q=Array.from(_);return q.length===0?null:{contents:q,options:ee()}},(_,q)=>{if(!Array.isArray(_?.contents)||_.contents.length!==q.contents.length||_.contents.some(E=>typeof E!="string"))throw Error("Invalid preview response");let B=q.contents,v=new Map;for(let E=0;EDe.set(O,E)),Ue()});e.anonymizeGistContent=function(_){return _&&(De.has(_)?De.get(_):"")},e.previewGistFiles=[];function Ue(){let _=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=_.map(q=>({filename:e.anonymizeGistContent(q.filename),content:e.anonymizeGistContent(q.content),language:q.language}))}e.watch("details.gist.files",Ue,!0),e.watch("terms",Ue);function Ee(){let _=e.conference;if(e.conference_data=null,!_)return;let q=e.isUpdate&&_===e._originalConference;t.get("/api/conferences/"+_).then(B=>{e.conference===_&&(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),!q&&(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===_&&(e.conference_data=null)})}function U(){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 oe(){let _=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||_&&_.invalid?(_&&_.setDirty&&_.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function X(_){let q=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(_){case"repoId_already_used":M(q,"used",!1);break;case"invalid_repoId":M(q,"format",!1);break;case"options_not_provided":M(q,"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 _=(e.coauthorSearch||"").trim();if(e.coauthorError="",_.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:_}}).then(q=>{let B=new Set((e.coauthors||[]).map(v=>(v.username||"").toLowerCase()));e.coauthorResults=(q.data||[]).filter(v=>!B.has((v.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(_,q)=>{q&&q.preventDefault(),!(!_||!_.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:_.username}).then(B=>{e.coauthors=B.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},B=>{let v=B&&B.data&&B.data.error||"unknown_error";e.coauthorError=v})},e.removeCoauthor=_=>{!_||!_.username||confirm("Remove co-author "+_.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(_.username)).then(q=>{e.coauthors=q.data||[]},q=>{let B=q&&q.data&&q.data.error||"unknown_error";e.coauthorError=B})},e.anonymizeRepo=_=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId||oe())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let q=_.currentTarget||_.target.closest?.("button")||_.target;q.disabled=!0;let B=parseGithubUrl(e.sourceUrl),v={repoId:e.repoId,terms:e.terms.trim().split(`
-`).filter(O=>O),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&&(v.options.pageSource=e.details.pageSource),U();let E=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(E,v,{headers:{"Content-Type":"application/json"}}).then(()=>{S.clear(),window.location.href="/status/"+e.repoId},O=>{O.data&&(i("ERRORS."+O.data.error).then(H=>{e.error=H},console.error),X(O.data.error))}).finally(()=>{q.disabled=!1})},e.anonymizeGist=_=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(oe())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let q=_.currentTarget||_.target.closest?.("button")||_.target;q.disabled=!0;let B=parseGithubUrl(e.sourceUrl),v={gistId:e.gistId,terms:e.terms.trim().split(`
-`).filter(O=>O),source:{gistId:B.gistId},options:e.options,conference:e.conference};U();let E=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(E,v,{headers:{"Content-Type":"application/json"}}).then(()=>{S.clear(),window.location.href="/gist/"+e.gistId},O=>{O.data&&(i("ERRORS."+O.data.error).then(H=>{e.error=H},console.error),X(O.data.error))}).finally(()=>{q.disabled=!1})},e.anonymizePullRequest=_=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(oe())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let q=_.currentTarget||_.target.closest?.("button")||_.target;q.disabled=!0;let B=parseGithubUrl(e.sourceUrl),v={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
-`).filter(O=>O),source:{repositoryFullName:`${B.owner}/${B.repo}`,pullRequestId:B.pullRequestId},options:e.options,conference:e.conference};U();let E=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(E,v,{headers:{"Content-Type":"application/json"}}).then(()=>{S.clear(),window.location.href="/pr/"+e.pullRequestId},O=>{O.data&&(i("ERRORS."+O.data.error).then(H=>{e.error=H},console.error),X(O.data.error))}).finally(()=>{q.disabled=!1})},e.watch("conference",()=>{Ee()}),e.watch("terms",()=>{e.detectedType==="repo"&&pe(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&Ie()}),e.watch("options.image",()=>{e.detectedType==="repo"&&pe(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&Ie()}),e.watch("options.link",()=>{e.detectedType==="repo"&&pe(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&Ie()}),e.watch("details",()=>{e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&Ie()},!0)},cr=function(e,t,n,r,s,i){let a=ut();window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",I=>el(I.element)),window.Prism.redactionHook=!0);let u=Zt();e.on("dark-mode",(I,Y)=>{e.aceOption&&(Y?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let f=0,w=!1;e.on("dispose",()=>{w=!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(I){if((I.metaKey||I.ctrlKey)&&I.key==="k"){I.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 I=e.fileSearchQuery;if(!I||I.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(I)}`,{timeout:Y.promise}).then(function(Z){if(!(w||h!==Y)){h=null,e.fileSearchLoading=!1;var ee={};e.files.forEach(function(U){ee[(U.path||"")+"/"+U.name]=!0});for(var J=[],ie={},pe=0;pe0&&e.files.push.apply(e.files,J);for(var qe=[],Ie=0;Ie0&&e.files.push.apply(e.files,qe),e.fileSearchResults=Z.data}},function(){!w&&h===Y&&(h=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let k={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},m=["license","txt"],C=["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(I,Y){if(e.repoId!=r.repoId)return N();if((r.path||"")!=e.filePath){e.filePath=r.path||"",e.paths=e.filePath.split("/").filter(Z=>Z&&Z.trim().length>0),te();for(let Z=0;Z0?e.paths.slice(0,Z).join("/"):"";e.files.some(ie=>ie.path===ee)||e.getFiles(ee)}}});function S(){if(e.paths[0]!="")return;let I=["readme.md","readme.txt","readme.org","readme.1st","readme"],Y={};for(let ee of e.files)ee.name.toLowerCase().indexOf("readme")>-1&&(Y[ee.name.toLowerCase()]=ee.name);let Z=null;for(let ee of I)if(Y[ee]){Z=ee;break}if(!Z&&Object.keys(Y).length>0&&(Z=Object.keys(Y)[0]),Z){let ee=n.url();ee[ee.length-1]!="/"&&(ee+="/"),n.url(ee+encodePathForUrl(Y[Z]))}}e.fileCounts=null,e.getFiles=function(I){let Y=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(I)}&v=${e.options.lastUpdateDate}`).then(function(Z){if(w||Y!==e.repoId)return[];let ee=I||"";return e.files=e.files.filter(J=>J.path!==ee),e.files.push(...Z.data),Z.data},function(Z){if(w||Y!==e.repoId)return[];e.type="error",e.content=ur(Z),e.files=[]})};function R(){let I=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(Y){w||I!==e.repoId||(e.fileCounts=Y.data)},function(){e.fileCounts={}})}function T(){return e.files.filter(I=>I.name==e.paths[e.paths.length-1]&&I.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var P=null;e.on("dispose",function(){P&&a.interval.cancel(P)});function L(I){if(w)return;let Y=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(Z=>{if(!(w||Y!==e.repoId)){if(e.options=Z.data,e.options.url){window.location=e.options.url;return}I&&I(Z.data)}},Z=>{if(!(w||Y!==e.repoId)){var ee=Z.data||{};if(ee.error==="rate_limited"&&ee.resetAt){let ie=function(){var pe=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(pe<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,P&&(a.interval.cancel(P),P=null),L(I);else{var fe=Math.floor(pe/60),ae=pe%60;e.rateLimitCountdown=fe>0?fe+"m "+ae+"s":ae+"s"}};var J=ie;e.type="rate_limited",e.rateLimitResetAt=ee.resetAt,P&&a.interval.cancel(P),ie(),P=a.interval(ie,1e3)}else ee.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){L(I)},3e3)):(e.type="error",e.content=ur(Z))}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function V(I){return k[I]?k[I]:I}function M(I){return I=="pdf"?"pdf":I=="html"||I=="htm"?"html-doc":I=="md"?"md":I=="org"?"org":I=="ipynb"?"IPython":m.indexOf(I)>-1?"text":C.indexOf(I)>-1?"image":g.indexOf(I)>-1?"media":y.indexOf(I)>-1?"audio":"code"}function se(I,Y){let Z=f;if(!I){e.type="error",e.content="no_file_selected";return}let ee=e.type;e.type="loading",e.content="loading";let J=Y&&Y.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(I)}?v=`+J,{transformResponse:ie=>ie}).then(ie=>{if(!(w||Z!==f)){if(e.type=ee,e.content=ie.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(ie.data,n.url()+"/../"),e.type="html"),e.type=="org"){let fe=contentAbs2Relative(ie.data);var pe=new Org.Parser().parse(fe).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(pe.toString()),e.type="html"}e.type=="code"&&ie.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},ie=>{w||Z!==f||(e.type="error",e.content=ur(ie))})}function te(){f++,e.content="",e.file=T();let I="0";e.file&&e.file.sha&&(I=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${I}`;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(),ee=Z.lastIndexOf(".");if(ee>-1&&(Z=Z.substring(ee+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:V(Z),onLoad:function(J){let ie=ace.require("ace/range").Range,pe=null;function fe(Ee,U){pe!==null&&(J.session.removeMarker(pe),pe=null),Ee!=null&&(pe=J.session.addMarker(new ie(Ee,0,U,1),"highlighted-line","fullLine"))}function ae(Ee){let U=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!U){fe(null);return}let oe=parseInt(U[1])-1,X=U[2]?parseInt(U[2])-1:oe;fe(oe,X),Ee&&a.timeout(()=>{J.scrollToLine(oe,!0,!0,function(){})},100)}ae(!0);let Ae=null;J.on("guttermousedown",function(Ee){let U=Ee.getDocumentPosition().row,oe=Ee.domEvent&&Ee.domEvent.shiftKey,X=U,_=U;oe&&Ae!==null?(X=Math.min(Ae,U),_=Math.max(Ae,U)):Ae=U;let q=X===_?`#L${X+1}`:`#L${X+1}-L${_+1}`,B=window.location.pathname+window.location.search+q;window.history.replaceState(null,"",B),fe(X,_),Ee.stop()});let Se=u(window,"hashchange",()=>ae(!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 Le=window.matchMedia("(max-width: 991px)"),De=()=>J.session.setUseWrapMode(e.aceOption.useWrapMode&&Le.matches);De(),Le.addEventListener?.("change",De),J.setBehavioursEnabled(e.aceOption.enableBehaviours),J.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let qe=[],Ie=()=>{qe.forEach(oe=>J.session.removeMarker(oe)),qe=[];let Ee=xa();if(!Ee)return;J.session.getDocument().getAllLines().forEach((oe,X)=>{for(let _ of oe.matchAll(Ee))qe.push(J.session.addMarker(new ie(X,_.index,X,_.index+_[0].length),"ace_redaction","text"))})};Ie(),J.session.on("change",()=>a.timeout(Ie,0));let Ue=e.on("site-options",Ie);return()=>{Se(),Ue(),Le.removeEventListener?.("change",De)}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=M(Z),e.type=="pdf"){e.content="pdf";return}se(e.filePath,e.file)}e.isSourceAccessError=()=>["repo_not_found","token_expired","github_app_access_required","github_app_reconnect_required","repo_saml_enforcement","repo_access_limited"].includes(e.content),e.retryContent=()=>N();function N(){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 I=e.repoId;L(function(Y){R();var Z=i.resolve();for(let ee=0;ee0?e.paths.slice(0,ee).join("/"):"";Z=Z.then(function(){return e.getFiles(J)}).then(function(){if(e.type==="error")return i.reject("error")})}Z.then(function(){w||I!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(S(),te()))})})}N()},ul=function(e,t,n,r,s){async function i(f){t.get(`/api/pr/${e.pullRequestId}/options`).then(w=>{if(e.options=w.data,e.options.url){window.location=e.options.url;return}f&&f(w.data)},w=>{e.type="error",e.content=w.data.error})}async function a(f){t.get(`/api/pr/${e.pullRequestId}/content`).then(w=>{e.details=w.data,e.tabState={active:w.data.diff?"diff":"comments"},f&&f(w.data)},w=>{e.type="error",e.content=w.data.error})}function u(){e.pullRequestId=r.pullRequestId,e.type="loading",i(f=>{a()})}u()},cl=function(e,t,n,r,s){async function i(f){t.get(`/api/gist/${e.gistId}/options`).then(w=>{if(e.options=w.data,e.options.url){window.location=e.options.url;return}f&&f(w.data)},w=>{e.type="error",e.content=w.data.error})}async function a(f){t.get(`/api/gist/${e.gistId}/content`).then(w=>{e.details=w.data;let h=w.data&&w.data.files&&w.data.files.length;e.tabState={active:h?"files":"comments"},f&&f(w.data)},w=>{e.type="error",e.content=w.data.error})}function u(){e.gistId=r.gistId,e.type="loading",i(()=>{a()})}u()},pl=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))}},pr=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(k=>k.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 w(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)),k=ze({title:`Creating ${h.name}...`,date:new Date,body:`The conference ${h.conferenceID} is in creation.`});e.editionMode&&(k.title=`Updating ${h.name}...`,k.body=`The conference '${h.conferenceID}' is updating.`),e.addToast(k),f(),t.post("/api/conferences/"+(e.editionMode?h.conferenceID:""),h).then(()=>{e.editionMode?(k.title=`${h.name} updated`,k.body=`The conference '${h.conferenceID}' is updated.`):(k.title=`${h.name} created`,k.body=`The conference '${h.conferenceID}' is created.`),n.url("/conference/"+h.conferenceID)},m=>{w(m.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(k)}).finally(()=>{e.saving=!1})}},fl=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()},ml=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()},hl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(n=>{e.accountRecovery=n.data.required}).catch(()=>{})};var vl=function(e,t,n){let r=ut(),s=Zt();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("Loading GitHub info for "+y.repoId+"...
"),t.get("/api/admin/repos/"+y.repoId+"/github").then(S=>{g&&(g.document.open(),g.document.write(''+JSON.stringify(S.data,null,2).replace(/[<>]/g,R=>R==="<"?"<":">")+"
"),g.document.close())},S=>{let R=S&&S.data?JSON.stringify(S.data,null,2):String(S);g&&(g.document.body.innerHTML=''+R+"
")})},e.statusCountFor=y=>{let g=(e.statusCounts||[]).find(S=>S._id===y);return g?g.count:0},e.statusStorageFor=y=>{let g=(e.statusCounts||[]).find(S=>S._id===y);return g?g.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=y=>{e.query.sort===y?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=y,e.query.direction="desc"),e.query.page=1},e.sortIcon=y=>e.query.sort===y?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.repos.filterPrefs",f={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},w=loadFilterPrefs(u)||{};e.query=Object.assign({},f,w,{page:1,search:""});let h=n.search();h.owner&&(e.query.owner=h.owner),h.conference&&(e.query.conference=h.conference),h.search&&(e.query.search=h.search);let k="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let y=window.prompt("Preset name:");if(!y)return;let g=Object.assign({},e.query);delete g.page,e.presets=(e.presets||[]).filter(S=>S.name!==y),e.presets.push({name:y,query:g}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=y=>{Object.assign(e.query,y.query,{page:1})},e.deletePreset=y=>{e.presets=(e.presets||[]).filter(g=>g.name!==y.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(y=>{e.selected[y.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(y=>e.selected[y.repoId]),e.bulkRefresh=()=>{let y=e.selectedRepos();y.length&&confirm(`Force refresh ${y.length} repositories?`)&&y.forEach(g=>e.updateRepository(g))},e.bulkRemoveCache=()=>{let y=e.selectedRepos();y.length&&confirm(`Purge cache for ${y.length} repositories?`)&&y.forEach(g=>e.removeCache(g))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let y=new URLSearchParams(Object.entries(e.query).filter(([,g])=>g!==""&&g!==!1&&g!=null));y.set("format","csv"),y.set("limit","10000"),window.open("/api/admin/repos?"+y.toString(),"_blank")},e.removeCache=y=>{confirm("Remove cached files for "+y.repoId+"?")&&t.delete("/api/admin/repos/"+y.repoId).then(()=>m(),g=>console.error(g))},e.removeRepository=y=>{confirm("Remove repository "+y.repoId+"?")&&t.delete("/api/repo/"+y.repoId+"/").then(()=>m(),g=>console.error(g))},e.updateRepository=y=>{let g=ze({title:`Refreshing ${y.repoId}...`,date:new Date,body:`The repository ${y.repoId} is going to be refreshed.`});e.toasts.push(g),t.post(`/api/repo/${y.repoId}/refresh`).then(S=>{S.data.status=="ready"?g.title=`${y.repoId} is refreshed.`:g.title=`Refreshing of ${y.repoId}.`},S=>{g.title=`Error during the refresh of ${y.repoId}.`,g.body=S.body})},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(y=>{e.total=y.data.total,e.totalPage=Math.ceil(y.data.total/e.query.limit),e.repositories=y.data.results,e.statusCounts=y.data.statusCounts||[],e.totalSize=y.data.totalSize||0,e.allSelected=!1},y=>{e.fetchError=y&&y.data&&y.data.error||"Failed to load repositories",console.error(y)})}m();let C=null;e.watch("query",()=>{r.timeout.cancel(C),C=r.timeout(m,500);let{page:y,search:g,...S}=e.query;saveFilterPrefs(u,S),a()},!0),a()},yl=function(e,t,n){let r=ut(),s=Zt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let i=m=>{if(m.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){m.preventDefault();let C=document.querySelector('.admin-filter-toolbar input[type="search"]');C&&C.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=m=>{m==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[m]="",e.query.page=1},e.chips=[];let a=()=>{let m=[];e.query.role&&m.push({key:"role",label:"Role",value:e.query.role}),e.chips=m};e.statusCountFor=m=>{let C=(e.statusCounts||[]).find(y=>y._id===m);return C?C.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.query.page=1},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.users.filterPrefs",f={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},w=loadFilterPrefs(u)||{};e.query=Object.assign({},f,w,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(m=>{e.selected[m.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(m=>e.selected[m.username]),e.banUser=m=>{confirm(`Ban user ${m.username}?`)&&t.post(`/api/admin/users/${m.username}/ban`).then(h,C=>console.error(C))},e.activateUser=m=>{t.post(`/api/admin/users/${m.username}/activate`).then(h,C=>console.error(C))},e.bulkBan=()=>{let m=e.selectedUsers();m.length&&confirm(`Ban ${m.length} users?`)&&m.forEach(C=>e.banUser(C))},e.exportCsv=()=>{let m=new URLSearchParams(Object.entries(e.query).filter(([,C])=>C!==""&&C!==!1&&C!=null));m.set("format","csv"),m.set("limit","10000"),window.open("/api/admin/users?"+m.toString(),"_blank")},e.fetchError=null;function h(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(m=>{e.total=m.data.total,e.totalPage=Math.ceil(m.data.total/e.query.limit),e.users=m.data.results,e.statusCounts=m.data.statusCounts||[],e.allSelected=!1},m=>{e.fetchError=m&&m.data&&m.data.error||"Failed to load users",console.error(m)})}h();let k=null;e.watch("query",()=>{r.timeout.cancel(k),k=r.timeout(h,500);let{page:m,search:C,...y}=e.query;saveFilterPrefs(u,y),a()},!0),a()},gl=function(e,t,n,r){let s=ut();e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let i="admin.user.filterPrefs",a={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},u=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},a.filters.status,u.filters&&u.filters.status||{})},e.query={sort:u.sort||a.sort,direction:u.direction||a.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=m=>(e.repositories||[]).filter(C=>C.status===m).length,e.repoFiler=m=>e.filters.status[m.status]==!1?!1:!!(e.search.trim().length==0||m.source.fullName.indexOf(e.search)>-1||m.repoId.indexOf(e.search)>-1||m.statusMessage&&m.statusMessage.indexOf(e.search)>-1||m.conference&&m.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(m=>{e.selected[m.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(m=>e.selected[m.repoId]),e.bulkRefresh=()=>{let m=e.selectedRepos();m.length&&confirm(`Force refresh ${m.length} repositories?`)&&m.forEach(C=>e.updateRepository(C))},e.bulkRemoveCache=()=>{let m=e.selectedRepos();m.length&&confirm(`Purge cache for ${m.length} repositories?`)&&m.forEach(C=>e.removeCache(C))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let m=e.filteredRepositories||e.repositories,y=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),g=m.map(T=>[T.repoId,T.status,T.statusMessage||"",T.pageView||0,T.anonymizeDate||"",T.source&&T.source.fullName||"",T.conference||"",T.size&&T.size.storage||0].map(P=>{let L=String(P??"");return/[",\n\r]/.test(L)?'"'+L.replace(/"/g,'""')+'"':L}).join(",")),S=new Blob([y+`
-`+g.join(`
-`)],{type:"text/csv"}),R=document.createElement("a");R.href=URL.createObjectURL(S),R.download=r.username+"-repositories.csv",R.click()},e.showStatusMessage=m=>{let C=m.statusMessage||"(no message)";window.prompt(`Status message for ${m.repoId} (${m.status}):`,C)},e.fetchGithubInfo=m=>{let C=window.open("","_blank");C&&C.document.write("Loading GitHub info for "+m.repoId+"...
"),t.get("/api/admin/repos/"+m.repoId+"/github").then(y=>{C&&(C.document.open(),C.document.write(''+JSON.stringify(y.data,null,2).replace(/[<>]/g,g=>g==="<"?"<":">")+"
"),C.document.close())},y=>{let g=y&&y.data?JSON.stringify(y.data,null,2):String(y);C&&(C.document.body.innerHTML=''+g+"
")})};function f(m){t.get("/api/admin/users/"+m+"/repos",{}).then(C=>{e.repositories=C.data},C=>{console.error(C)})}function w(m){t.get("/api/admin/users/"+m,{}).then(C=>{e.userInfo=C.data},C=>{console.error(C)})}w(r.username),f(r.username),e.banUser=()=>{confirm(`Ban user ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/ban`).then(()=>w(r.username),m=>console.error(m))},e.activateUser=()=>{t.post(`/api/admin/users/${r.username}/activate`).then(()=>w(r.username),m=>console.error(m))},e.promoteUser=()=>{confirm(`Promote ${r.username} to admin?`)&&t.post(`/api/admin/users/${r.username}/promote`).then(()=>w(r.username),m=>console.error(m))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/demote`).then(()=>w(r.username),m=>console.error(m))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function h(){t.get("/api/admin/tokens").then(m=>{e.tokens=m.data||[]},m=>{m.status!==401&&m.status!==403&&console.error(m)})}h(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(m=>{e.tokenForm.plaintext=m.data.token,e.tokenForm.name="",h()},m=>console.error(m))},e.revokeToken=m=>{confirm(`Revoke token "${m.name}"?`)&&t.delete("/api/admin/tokens/"+m.id).then(()=>h(),C=>console.error(C))},e.removeCache=m=>{confirm("Remove cached files for "+m.repoId+"?")&&t.delete("/api/admin/repos/"+m.repoId).then(()=>f(r.username),C=>console.error(C))},e.removeRepository=m=>{confirm("Remove repository "+m.repoId+"?")&&t.delete("/api/repo/"+m.repoId+"/").then(()=>f(r.username),C=>console.error(C))},e.updateRepository=m=>{let C=ze({title:`Refreshing ${m.repoId}...`,date:new Date,body:`The repository ${m.repoId} is going to be refreshed.`});e.toasts.push(C),t.post(`/api/repo/${m.repoId}/refresh`).then(y=>{y.data.status=="ready"?C.title=`${m.repoId} is refreshed.`:C.title=`Refreshing of ${m.repoId}.`},y=>{C.title=`Error during the refresh of ${m.repoId}.`,C.body=y.body})},e.getGitHubRepositories=m=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(C=>{e.userInfo.repositories=C.data})};let k=null;e.watch("query",()=>{s.timeout.cancel(k),k=s.timeout(()=>{f(r.username)},500)},!0)},bl=function(e,t,n){let r=ut(),s=Zt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];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.dateFrom||e.query.dateTo)&&y.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=y};e.statusCountFor=y=>{let g=(e.statusCounts||[]).find(S=>S._id===y);return g?g.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=y=>{e.query.sort===y?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=y,e.query.direction="desc"),e.query.page=1},e.sortIcon=y=>e.query.sort===y?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.conferences.filterPrefs",f={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},w=loadFilterPrefs(u)||{};e.query=Object.assign({},f,w,{page:1,search:""});let h=n.search();h.search&&(e.query.search=h.search);let k="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let y=window.prompt("Preset name:");if(!y)return;let g=Object.assign({},e.query);delete g.page,e.presets=(e.presets||[]).filter(S=>S.name!==y),e.presets.push({name:y,query:g}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=y=>{Object.assign(e.query,y.query,{page:1})},e.deletePreset=y=>{e.presets=(e.presets||[]).filter(g=>g.name!==y.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.removeConference=y=>{confirm("Remove conference "+y.conferenceID+"?")&&t.delete("/api/admin/conferences/"+y.conferenceID).then(()=>m(),g=>console.error(g))},e.exportCsv=()=>{let y=new URLSearchParams(Object.entries(e.query).filter(([,g])=>g!==""&&g!==!1&&g!=null));y.set("format","csv"),y.set("limit","10000"),window.open("/api/admin/conferences?"+y.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(y=>{e.total=y.data.total,e.totalPage=Math.ceil(y.data.total/e.query.limit),e.conferences=y.data.results,e.statusCounts=y.data.statusCounts||[]},y=>{e.fetchError=y&&y.data&&y.data.error||"Failed to load conferences",console.error(y)})}m();let C=null;e.watch("query",()=>{r.timeout.cancel(C),C=r.timeout(m,500);let{page:y,search:g,...S}=e.query;saveFilterPrefs(u,S),a()},!0),a()},wl=function(e,t,n,r,s){let i=ut();e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(g=>e.stateFilter[g._state]),e.jobProgressPct=g=>g&&g.progress&&typeof g.progress=="object"&&typeof g.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(g.progress.percent))):typeof g.progress=="number"?Math.max(0,Math.min(100,Math.round(g.progress))):null,e.jobDuration=g=>{if(!g.processedOn)return"-";let R=(g.finishedOn||Date.now())-g.processedOn;return R<1e3?R+"ms":(R/1e3).toFixed(1)+"s"},e.metricsPoints=[],e.selectQueue=g=>{e.selectedQueue=g,a(),u()},e.setRange=g=>{e.range=g,u()};function a(){let g={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:g}).then(S=>{e.queueList=S.data.queues||[],e.jobs=S.data.jobs||[],e.selectedStats=e.queueList.find(R=>R.key===e.selectedQueue)||e.queueList[0]||null},S=>console.error(S))}function u(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(g=>{e.metricsPoints=g.data.points||[],s(m,0)},g=>console.error(g))}a(),u();let f=r(()=>{e.query.autoRefresh&&(a(),u())},15e3);e.on("dispose",()=>r.cancel(f)),e.refreshNow=function(){a(),u()};function w(g){let S=g&&g.data&&(g.data.message||g.data.error)||"Request failed";e.actionError=S,s(()=>{e.actionError=null},5e3),console.error(g)}e.actionError=null,e.removeJob=g=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${g.id}`).then(a,w)},e.retryJob=g=>{t.post(`/api/admin/queue/${e.selectedQueue}/${g.id}`).then(a,w)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(a,g=>console.error(g))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(a,g=>console.error(g))},e.togglePause=()=>{let g=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${g}`).then(a,S=>console.error(S))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(a,g=>console.error(g))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(a,g=>console.error(g))};let h=null;e.watch("query.search",()=>{i.timeout.cancel(h),h=i.timeout(a,350)}),e.expanded={},e.toggleJob=g=>{e.expanded[g.id]=!e.expanded[g.id]},e.humanTime=g=>{if(!g)return"";let S=new Date(g);return S.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+S.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=g=>{if(!g)return"";var S=Math.max(0,Math.ceil((g-Date.now())/1e3));if(S<=0)return"resuming soon";var R=Math.floor(S/60),T=S%60;return"in "+(R>0?R+"m "+T+"s":T+"s")};function k(g){if(g<=0)return{ticks:[0],niceMax:1};let S=Math.pow(10,Math.floor(Math.log10(g))),R=S;g/R<2?R=S/2:g/R>5&&(R=S*2);let T=Math.ceil(g/R)*R,P=[];for(let L=0;L<=T;L+=R)P.push(L);return{ticks:P,niceMax:T}}function m(){var g=document.getElementById("q-throughput-chart");if(!g)return;var S=g.getContext("2d"),R=window.devicePixelRatio||1,T=g.parentElement.getBoundingClientRect(),P=44,L=50,V=20,M=T.width-40,se=180,te=M-P-L,N=se-V;g.width=M*R,g.height=se*R,g.style.width=M+"px",g.style.height=se+"px",S.setTransform(R,0,0,R,0,0);var I=document.body.classList.contains("dark-mode"),Y="#8A857C",Z=I?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",ee=I?"#A7B2FF":"#3B4AD6",J=I?"rgba(167,178,255,0.12)":"rgba(59,74,214,0.08)",ie=I?"#F08A82":"#B42318",pe=I?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",fe=I?"#F5C842":"#B8860B",ae=e.metricsPoints||[];if(ae.length===0){S.fillStyle=Y,S.font="12px monospace",S.textAlign="center",S.fillText("No metrics data yet",M/2,se/2),C=null;return}var Ae=ae.map(function(z){return z.completed}),Se=ae.map(function(z){return z.failed}),Le=ae.map(function(z){return z.avgMs}),De=ae.length,qe=te/(De-1||1),Ie=Math.max(1,Math.max.apply(null,Ae),Math.max.apply(null,Se)),Ue=k(Ie),Ee=Math.max.apply(null,Le),U=Ee>0?k(Ee):{ticks:[0],niceMax:1},oe=function(z){return N-z/Ue.niceMax*(N-10)},X=function(z){return N-z/U.niceMax*(N-10)},_=function(z){return P+z*qe};S.textAlign="right",S.textBaseline="middle",S.font="10px monospace",Ue.ticks.forEach(function(z){var G=oe(z);S.strokeStyle=Z,S.lineWidth=1,S.beginPath(),S.moveTo(P,G),S.lineTo(M-L,G),S.stroke(),S.fillStyle=Y,S.fillText(z>=1e3?(z/1e3).toFixed(1)+"k":String(z),P-6,G)}),Ee>0&&(S.textAlign="left",U.ticks.forEach(function(z){var G=X(z);S.fillStyle=fe,S.fillText(z>=1e3?(z/1e3).toFixed(1)+"s":z+"ms",M-L+6,G)}));var q=Date.now(),B=Math.min(6,De);S.textAlign="center",S.textBaseline="top";for(var v=0;v0&&(S.beginPath(),Le.forEach(function(z,G){var x=_(G),W=X(z);if(G===0)S.moveTo(x,W);else{var ue=(_(G-1)+x)/2;S.bezierCurveTo(ue,X(Le[G-1]),ue,W,x,W)}}),S.strokeStyle=fe,S.lineWidth=1,S.setLineDash([4,3]),S.stroke(),S.setLineDash([])),C={pts:ae,maxLen:De,marginLeft:P,step:qe,totalW:M,toX:_}}var C=null;function y(){var g=document.getElementById("q-throughput-chart");if(!(!g||g._tipBound)){g._tipBound=!0;var S=document.getElementById("q-chart-tooltip"),R=document.getElementById("q-chart-crosshair");g.addEventListener("mousemove",function(T){if(!(!C||!S||!R)){var P=C,L=g.getBoundingClientRect(),V=T.clientX-L.left,M=Math.round((V-P.marginLeft)/P.step);if(M<0||M>=P.maxLen){S.style.display="none",R.style.display="none";return}var se=P.pts[M],te=Date.now(),N=Math.round((te-se.ts)/6e4),I;if(N<=0)I="now";else if(N<60)I=N+"m ago";else if(N<1440){var Y=Math.floor(N/60),Z=N%60;I=Y+"h"+(Z?" "+Z+"m":"")+" ago"}else I=Math.round(N/1440)+"d ago";var ee=''+I+'
● completed: '+se.completed+'/min
● failed: '+se.failed+"/min
";if(se.avgMs>0){var J=se.avgMs>=1e3?(se.avgMs/1e3).toFixed(1)+"s":se.avgMs+"ms";ee+='● avg time: '+J+"
"}S.innerHTML=ee;var ie=P.toX(M),pe=S.offsetWidth,fe=ie+10;fe+pe>P.totalW&&(fe=ie-pe-10),S.style.display="block",S.style.left=fe+"px",S.style.top="8px",R.style.display="block",R.style.left=ie+"px"}}),g.addEventListener("mouseleave",function(){S&&(S.style.display="none"),R&&(R.style.display="none")})}}e.watch("metricsPoints",function(){s(y,50)})},kl=function(e,t,n,r){let s=ut();e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.entries=[],e.visible=[],e.available=!0,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=R=>{if(!R)return"";let T=new Date(R).getTime();if(isNaN(T))return R;let P=Math.max(0,Date.now()-T),L=Math.floor(P/1e3);if(L<5)return"just now";if(L<60)return`${L}s ago`;let V=Math.floor(L/60);if(V<60)return`${V}m ago`;let M=Math.floor(V/60);if(M<24)return`${M}h ago`;let se=Math.floor(M/24);return se<7?`${se}d ago`:new Date(R).toLocaleDateString()},e.absTime=R=>{if(!R)return"";let T=new Date(R);return isNaN(T.getTime())?R:T.toLocaleString()},e.absTimeShort=R=>{if(!R)return"";let T=new Date(R);return isNaN(T.getTime())?R:T.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let i=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function a(R,T){let P=R&&(R.httpStatus||R.status)||null;if(typeof P=="number"){if(P>=500)return"error";if(P===401||P===403||P===404)return"info";if(P>=400)return"warn"}return T==="error"?"error":T==="warn"?"warn":"info"}function u(R){let T=(R.raw||[]).find(M=>M&&typeof M=="object"&&!Array.isArray(M));if(T){T.message&&i.test(T.message)?(R.displayMessage=T.message,R.displayContext=R.message):T.code&&i.test(String(T.code))?(R.displayMessage=String(T.code),R.displayContext=R.message):T.name&&T.name!=="AnonymousError"&&T.name!=="Error"?(R.displayMessage=T.name,R.displayContext=T.message||R.message):R.displayMessage=R.message,R._status=T.httpStatus||T.status||null,R._url=T.url||null,R._method=T.method||null,R._repoId=T.repoId||T.detail||null,R._detail=T.detail&&T.detail!==R._repoId?T.detail:null;let M=typeof T.stack=="string"?T.stack:null;for(var P=[T.cause,T.err].filter(Boolean),L=0;!M&&L{N==null||N===""||P.push([te,N])};L("name",T&&T.name),L("code",R.displayMessage||T&&T.message),R._bucket&&L("kind",R._bucket),L("httpStatus",T&&T.httpStatus),T&&T.status&&!T.httpStatus&&L("status",T.status),L("module",R.module);let V=T&&T.detail;if(typeof V=="string"){let te=V.trim();if(te[0]==="{"||te[0]==="[")try{V=JSON.parse(V)}catch{}}if(L("detail",V),L("repoId",T&&T.repoId),L("filePath",T&&T.filePath),L("upstreamStatus",T&&T.upstreamStatus),L("upstreamBody",T&&T.upstreamBody),L("url",R._url),L("err",T&&T.err),L("cause",T&&!T.err&&T.cause),L("ts",R.ts),!P.length)return JSON.stringify(R,null,2);let M=P.reduce((te,N)=>Math.max(te,N[0].length),0),se=["{"];return P.forEach(([te,N],I)=>{let Z=` ${`"${te}":`.padEnd(M+3," ")} `,ee=Ife===0?pe:ie+pe).join(`
-`)}else typeof N=="number"||typeof N=="boolean"?J=String(N):J=JSON.stringify(N);se.push(`${Z}${J}${ee}`)}),se.push("}"),se.join(`
-`)}function w(R){let T=[],P="",L=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,V=0,M;for(;M=L.exec(R);)P+=R.slice(V,M.index),V=L.lastIndex,T.push({key:M[1],op:M[2]||"=",val:M[3]});return P+=R.slice(V),{filters:T,free:P.trim().toLowerCase()}}function h(R,T){for(let P of T.filters){let L=(M,se,te)=>{let N=parseFloat(M),I=parseFloat(se);return te==="="?String(M)===String(se):te==="!="?String(M)!==String(se):te===">="?N>=I:te==="<="?N<=I:te===">"?N>I:te==="<"?NT&&V._bucket!==T?!1:h(V,R)),L=e.query.group;if(L){let V=te=>L==="module"?te.module:te.displayMessage||te.message||"_",M=new Map;for(let te of P){let N=V(te);if(M.has(N)){let I=M.get(N);I.count++,I._related.push(te),new Date(te.ts)>new Date(I.ts)&&(I.ts=te.ts,I._url=te._url,I._status=te._status),new Date(te.ts)new Date(N.ts).getTime()>=se).length;P=Array.from(M.values())}else P=P.map((V,M)=>(V._key="row:"+M+":"+V.ts,V._related=[V],V._firstSeen=V.ts,V._lastHourCount=0,V.count=1,V));e.query.sort==="count"?P.sort((V,M)=>M.count-V.count||new Date(M.ts)-new Date(V.ts)):P.sort((V,M)=>new Date(M.ts)-new Date(V.ts)),e.visible=P}function m(R){let T=R?e.entries.length:0,P=R?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:T,limit:P}}).then(L=>{let V=(L.data.entries||[]).map(u);e.entries=R?e.entries.concat(V):V,e.available=!!L.data.available,e.cap=L.data.max||e.cap,e.total=L.data.total||e.entries.length,k()},L=>console.error(L))}e.loadMore=()=>m(!0),e.canLoadMore=()=>e.entries.length{let T=R.data||{},P=T.prev24h?Math.round((T.last24h-T.prev24h)/T.prev24h*100):0;e.stats={last24h:T.last24h||0,prev24h:T.prev24h||0,delta:P,severity:T.severity||{error:0,warn:0,info:0},unique:T.unique||{error:0,warn:0,info:0},buckets:T.buckets||[],dropped:T.dropped||0}},R=>console.error(R))}function y(){m(),C()}e.barPx=(R,T)=>{let P=e.stats.buckets||[],L=0;for(let te of P)L=Math.max(L,(te.error||0)+(te.warn||0)+(te.info||0));if(!L)return 0;let V=(R.error||0)+(R.warn||0)+(R.info||0);if(!V)return 0;let M=Math.round(V/L*60),se=R[T]||0;return Math.round(se/V*M)},e.bucketTitle=R=>`${new Date(R.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${R.error||0} err \xB7 ${R.warn||0} warn \xB7 ${R.info||0} info`,e.toggle=R=>{e.expanded[R._key]=!e.expanded[R._key]},e.setBucket=R=>{e.query.bucket=R},e.refreshNow=y,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(y,R=>console.error(R))},e.exportCsv=()=>{let R=["ts","level","module","displayMessage","_status","_url","_repoId"],T=[R.join(",")];for(let M of e.visible)T.push(R.map(se=>{let te=M[se]==null?"":String(M[se]);return/[",\n]/.test(te)?`"${te.replace(/"/g,'""')}"`:te}).join(","));let P=new Blob([T.join(`
-`)],{type:"text/csv;charset=utf-8"}),L=URL.createObjectURL(P),V=document.createElement("a");V.href=L,V.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(V),V.click(),document.body.removeChild(V),URL.revokeObjectURL(L)};function g(R){e.copyHint=`${R} copied`,s.timeout(()=>{e.copyHint=""},1500)}e.copyJson=R=>{navigator.clipboard.writeText(R._detailJson).then(()=>g("JSON"))},e.copyCurl=R=>{if(!R._url)return;let P=`curl -X ${R._method||"GET"} '${window.location.origin}${R._url}'`;navigator.clipboard.writeText(P).then(()=>g("curl"))},y();let S=r(()=>{e.query.autoRefresh&&y()},15e3);e.on("dispose",()=>r.cancel(S)),e.watch("query.search",k),e.watch("query.bucket",k),e.watch("query.sort",k),e.watch("query.group",k)},El=function(e,t,n,r){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null){n.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.performanceError=null,e.formatMs=function(y){return y==null?"":y<1e3?y+" ms":+(y/1e3).toFixed(1)+" s"},e.latencyBound=function(y,g){return y.count?y[g]==null?"> 60 s":"\u2264 "+e.formatMs(y[g]):"No samples"},e.firstByteBound=function(y){return e.latencyBound({count:y.firstByteCount,p95UpperMs:y.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(y){return Math.max(0,Math.round((Date.now()-y.sampledAt)/1e3))},e.peakRss=function(y){return(e.performance.runtimeSeries||[]).filter(function(g){return g.instance===y.instance}).reduce(function(g,S){return Math.max(g,S.rss)},y.memory.rss)},e.performanceWarning=function(y){return e.sampleAge(y)>45||y.droppedBatches||y.droppedMetrics||y.sockets?.closeWait>0||y.eventLoop.p95Ms>100||y.memoryLimitBytes&&y.memory.rss>y.memoryLimitBytes*.8};var s=!1;e.loadPerformance=function(){var y=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==y&&(e.performance=null),!s&&(s=!0,t.get("/api/admin/performance",{params:{minutes:y}}).then(function(g){y===e.performanceMinutes&&(e.performance=g.data,e.performanceError=g.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){y===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){s=!1,y!==e.performanceMinutes&&e.loadPerformance()}))};function i(y){if(y==null)return"\u2014";for(var g=["B","KB","MB","GB","TB"],S=0,R=y;R>=1024&&S0?1:0)+" "+g[S]}e.humanBytes=i;function a(y){if(!y)return"\u2014";var g=Math.floor(y/86400),S=Math.floor(y%86400/3600),R=Math.floor(y%3600/60);return g>0?g+"d "+(S<10?"0":"")+S+"h":S>0?S+"h "+(R<10?"0":"")+R+"m":R+"m"}e.humanDuration=a;function u(y){return y==null?"\u2014":y>=1e6?(y/1e6).toFixed(1)+"M":y>=1e3?(y/1e3).toFixed(1)+"K":String(y)}e.humanNum=u,e.queueTotal=function(y){return y?(y.waiting||0)+(y.active||0)+(y.delayed||0)+(y.failed||0):0},e.statusCount=function(y){if(!e.data||!e.data.repos)return 0;for(var g=e.data.repos.statusBreakdown||[],S=0;Sh[S])&&(h[S]=g[S]),(k[S]==null||g[S]br(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ml(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>hl(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>al(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ll(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>is(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>is(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>is(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dl(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>pl(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>pr(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>pr(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>fl(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>sl(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>rl(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>il(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ul(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>cl(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>cr(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>cr(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>El(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>vl(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>yl(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>gl(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>bl(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>wl(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>kl(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Tp={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},Ap={key:0},Op={key:1,role:"alert"},Ip={key:2,role:"status"},Pp={key:0},Vp={key:1},qp=["disabled"],Mp=["disabled"],$p=["disabled"],Lp={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},Up={id:"review-policy-title"},Fp={key:0,role:"alert"},zp=["disabled"],Hp=["disabled"],Bp=["disabled"],jp={key:6,role:"status"};function _l(e,t){return l(),d("section",Tp,[t[12]||(t[12]=o("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=o("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=o("p",null,"This records your approval as the repository owner or an authorized coauthor.",-1)),e.user?.username?p("v-if",!0):(l(),d("p",Ap,[...t[6]||(t[6]=[b("Sign in first, then reopen the artifact link from your submission. ",-1),o("a",{href:"/signin"},"Sign in",-1)])])),e.error?(l(),d("p",Op,c(e.error),1)):p("v-if",!0),e.saved?(l(),d("p",Ip,[t[7]||(t[7]=b("Consent recorded. ",-1)),e.handoffEnabled?(l(),d("span",Pp,"Continue to review to finish linking.")):(l(),d("span",Vp,"Artifact linking is not complete. Return to your submission to check its status."))])):p("v-if",!0),e.saved&&e.handoffEnabled?(l(),d("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...n)=>e.continueReview&&e.continueReview(...n)),disabled:e.busy},"Continue to review",8,qp)):p("v-if",!0),e.user?.username&&!e.saved?(l(),d("form",{key:4,onSubmit:t[2]||(t[2]=le((...n)=>e.loadPreview&&e.loadPreview(...n),["prevent"]))},[t[8]||(t[8]=o("label",{for:"review-repository"},"Anonymous repository ID",-1)),D(o("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=n=>e.repositoryId=n),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,Mp),[[zt,e.repositoryId]]),t[9]||(t[9]=o("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),o("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,$p)],32)):p("v-if",!0),e.preview&&!e.saved?(l(),d("section",Lp,[o("h2",Up,c(e.preview.repositoryName),1),o("p",null,"Access: "+c(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),o("p",null,"Retain until "+c(e.preview.policy.retainUntil)+". Policy version "+c(e.preview.policy.version)+".",1),e.expired?(l(),d("p",Fp,"This preview expired. Open a new artifact link from your submission.")):p("v-if",!0),o("div",null,[o("label",null,[D(o("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=n=>e.acceptAccess=n),disabled:e.busy||e.uncertain||e.expired},null,8,zp),[[Qs,e.acceptAccess]]),t[10]||(t[10]=b(" I approve the access policy above.",-1))])]),o("div",null,[o("label",null,[D(o("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=n=>e.acceptRetention=n),disabled:e.busy||e.uncertain||e.expired},null,8,Hp),[[Qs,e.acceptRetention]]),t[11]||(t[11]=b(" I approve retention until the date above.",-1))])]),o("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...n)=>e.confirmConsent&&e.confirmConsent(...n)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},c(e.uncertain?"Retry confirmation":"Confirm consent"),9,Bp)])):p("v-if",!0),e.busy?(l(),d("p",jp,"Waiting for the server\u2026")):p("v-if",!0)])}var Gp={class:"container paper-page connections-page"},Wp={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Kp={key:1,role:"status"},Yp=["disabled"],Jp={key:3},Qp={key:0,class:"connection-resources"},Xp=["disabled"],Zp=["disabled"],xp={key:0,role:"status"},ef={class:"connections-grid"},tf={key:0},of={class:"connection-title"},nf={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},sf={class:"connection-actions"},rf={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},af={key:1,class:"connection-installations"},lf={key:0},df=["href"],uf={class:"sr-only"},cf=["disabled"],pf={class:"connection-title"},ff={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},mf={key:1,class:"connection-revoke"},hf={key:0},vf=["disabled"],yf={class:"connection-resources"},gf={class:"connection-title"},bf={class:"connection-count"},wf={key:0,class:"connection-empty"},kf={class:"connection-resource-name"},Ef={key:0,class:"connection-resource-actions"},Cf=["disabled","onClick"],_f=["disabled","onClick"],Sf={key:1,class:"connection-help",role:"status"},Nf=["disabled","onClick"];function Sl(e,t){return l(),d("div",Gp,[t[25]||(t[25]=ce('',2)),e.connectionError?(l(),d("p",Wp,c(e.connectionError),1)):p("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",Kp,"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,Yp)):p("v-if",!0),e.connections?(l(),d("div",Jp,[e.connections.emailNotificationsEnabled?(l(),d("section",Qp,[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]=le(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,Xp),[[zt,e.notificationEmail]]),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,Zp),e.emailSaved?(l(),d("p",xp,"Email address saved.")):p("v-if",!0)],32)])):p("v-if",!0),o("div",ef,[e.connections.appEnabled?(l(),d("section",tf,[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",of,[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",nf,c(e.connections.appError)+". Reconnect to restore access.",1)):p("v-if",!0),o("div",sf,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",rf,[...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",af,[(l(!0),d(Q,null,re(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",lf," \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",uf,"for "+c(n.account),1),t[11]||(t[11]=b(" \u2192",-1))],8,df)]))),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,cf)])):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",pf,[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",ff,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):p("v-if",!0),e.connections.oauthConnected?(l(),d("div",mf,[e.connections.gistCount?(l(),d("p",hf,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,vf)):p("v-if",!0)])):p("v-if",!0)])]),o("section",yf,[o("div",gf,[t[21]||(t[21]=o("h2",null,"Repository connections",-1)),o("span",bf,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",wf,[...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(Q,null,re(e.connections.resources,n=>(l(),d("div",{class:"connection-resource",key:n.type+n.id},[o("div",kf,[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",Ef,[o("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!0)},"Check read-only access",8,Cf),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,_f)):p("v-if",!0),n.eligible===!1?(l(),d("span",Sf,"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,Nf)):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 Df={class:"container paper-page auth-page"},Rf={class:"auth-layout"},Tf={class:"auth-options"},Af={key:0},Of={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},If={key:1},Pf={key:1},Vf={key:2,class:"auth-legacy"},qf={key:3,role:"status"};function Nl(e,t){return l(),d("div",Df,[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",Rf,[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",Tf,[e.accountRecovery?(l(),d("section",Af,[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",Of,"Verify with previous GitHub connection")):(l(),d("p",If,"Account verification is currently unavailable. Please try again later."))])):p("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Pf,[...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",Vf,[...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",qf,"GitHub sign-in is currently unavailable. Please try again later.")):p("v-if",!0)])])])}var Mf={class:"paper-empty"};function Dl(e,t){return l(),d("div",Mf,[...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)])])}var $f={class:"container paper-page admin-page"},Lf={class:"admin-summary"},Uf={class:"summary-total"},Ff=["aria-pressed"],zf={class:"count"},Hf=["aria-pressed"],Bf={class:"count"},jf=["aria-pressed"],Gf={class:"count"},Wf=["aria-pressed"],Kf={class:"count"},Yf=["aria-pressed"],Jf={class:"count"},Qf={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},Xf={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},Zf={class:"admin-filter-row"},xf={class:"search-wrap"},em={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},tm={key:0,class:"admin-search-hint"},om={class:"admin-filter-inline","aria-label":"Pagination"},nm=["disabled"],sm={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},rm=["disabled"],im={key:0,class:"admin-filter-row"},am={class:"admin-active-chips"},lm={class:"key"},dm=["onClick"],um={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},cm={class:"paper-table-head",role:"row"},pm={role:"columnheader"},fm={role:"columnheader"},mm={role:"columnheader"},hm={class:"paper-table-row",role:"row"},vm={class:"cell-anon",role:"cell"},ym={class:"anon-text"},gm=["textContent","href"],bm={class:"anon-sub"},wm={class:"cell-status",role:"cell"},km=["textContent"],Em={class:"cell-views num",role:"cell"},Cm=["textContent","href"],_m={class:"cell-expires",role:"cell"},Sm={class:"cell-actions",role:"cell"},Nm={class:"dropdown"},Dm={class:"dropdown-menu dropdown-menu-right"},Rm=["href"],Tm=["href"],Am=["href"],Om=["onClick"],Im={key:0,class:"paper-table-empty"},Pm={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Vm={style:{"font-size":"12px",color:"var(--ink-muted)"}},qm={key:0,class:"pagination-compact"},Mm=["disabled"],$m=["max"],Lm=["disabled"],Um={class:"admin-filter-inline"},Fm={class:"form-control form-control-sm"};function Rl(e,t){let n=ge("field"),r=ge("form");return l(),d("div",$f,[t[47]||(t[47]=ce('Admin \xA0/\xA0 Conferences
Conferences
',3)),o("div",Lf,[o("span",Uf,c(e.total>=0?e.fmt.number(e.total):"\u2026"),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[13]||(t[13]=b("Ready ",-1)),o("span",zf,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Ff),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[14]||(t[14]=b("Preparing ",-1)),o("span",Bf,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,Hf),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[15]||(t[15]=b("Errored ",-1)),o("span",Gf,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,jf),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[16]||(t[16]=b("Expired ",-1)),o("span",Kf,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,Wf),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[17]||(t[17]=b("Removed ",-1)),o("span",Jf,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,Yf)]),e.fetchError?(l(),d("div",Qf,[t[18]||(t[18]=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",Xf,[o("div",Zf,[o("div",xf,[D(o("input",em,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",tm,"/"))]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=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",om,[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[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,nm),o("span",sm,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[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,rm)])]),e.chips?.length?(l(),d("div",im,[o("div",am,[(l(!0),d(Q,null,re(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",lm,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,dm)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),o("div",um,[o("div",cm,[o("div",pm,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="name"}]),onClick:t[8]||(t[8]=s=>e.sortBy("name"))},[t[25]||(t[25]=b("Conference ",-1)),e.sortIcon("name")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[24]||(t[24]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",fm,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[9]||(t[9]=s=>e.sortBy("status"))},[t[27]||(t[27]=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[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",mm,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[10]||(t[10]=s=>e.sortBy("startDate"))},[t[29]||(t[29]=b("Window ",-1)),e.sortIcon("startDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="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","aria-label":"Actions"},null,-1))]),(l(!0),d(Q,null,re(e.filteredConferences,(s,i)=>(l(),d("div",hm,[o("div",vm,[t[33]||(t[33]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[o("use",{href:"#project-icon-conference"})],-1)),o("div",ym,[o("a",{class:"repo-name",textContent:c(s?.name),href:e.safeUrl("/conference/"+s?.conferenceID)},null,8,gm),o("div",bm,[o("span",null,c(s?.conferenceID),1),t[32]||(t[32]=b("\xA0\xB7\xA0",-1)),o("span",null,c(e.fmt?.number(s?.price||0))+" \u20AC",1)])])]),o("div",wm,[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,km)]),o("div",Em,[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 repositories in this conference",textContent:c(e.fmt?.number(s?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+s?.conferenceID)},null,8,Cm)]),o("div",_m,[t[35]||(t[35]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" "+c(e.fmt?.date(s?.startDate))+" \u2013 "+c(e.fmt?.date(s?.endDate)),1)]),o("div",Sm,[o("div",Nm,[t[41]||(t[41]=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",Dm,[o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/edit")},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,Rm),o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/")},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View",-1)])],8,Tm),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+s?.conferenceID)},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),b(" View repositories",-1)])],8,Am),t[40]||(t[40]=o("div",{class:"dropdown-divider"},null,-1)),D(o("a",{class:"dropdown-item text-danger",href:"#",onClick:le(a=>e.removeConference(s),["prevent"])},[...t[39]||(t[39]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,Om),[[K,s?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(l(),d("div",Im,[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No conferences match the current filters.",-1)])])):p("v-if",!0)]),o("div",Pm,[o("span",Vm,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",qm,[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[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous",-1)])],8,Mm),D(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,$m),[[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[44]||(t[44]=[b("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Lm)])):p("v-if",!0),o("span",Um,[t[46]||(t[46]=o("label",null,"Per page",-1)),D((l(),d("select",Fm,[...t[45]||(t[45]=[ce('',5)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var zm={class:"container paper-page admin-page errors-page"},Hm={class:"errors-header"},Bm={class:"errors-actions"},jm={class:"kpi-grid"},Gm={class:"kpi-card"},Wm={class:"kpi-value"},Km={key:0},Ym={key:1},Jm={class:"kpi-card kpi-error"},Qm={class:"kpi-value"},Xm={class:"kpi-sub"},Zm={class:"kpi-card kpi-warn"},xm={class:"kpi-value"},eh={class:"kpi-sub"},th={class:"kpi-card kpi-info"},oh={class:"kpi-value"},nh={class:"kpi-sub"},sh={class:"kpi-value"},rh={class:"kpi-sub"},ih={key:0,class:"dropped-warn"},ah={class:"volume-chart"},lh={class:"volume-bars"},dh=["title"],uh={class:"errors-toolbar","aria-label":"Error filters"},ch={class:"seg-tabs"},ph={class:"search-wrap"},fh={type:"search",class:"form-control",placeholder:"code:repo_not_found module:route status:>=400",autocomplete:"off"},mh={key:0,class:"filter-count"},hh={class:"select-wrap"},vh={class:"form-control form-control-sm"},yh={class:"select-wrap"},gh={class:"form-control form-control-sm"},bh={class:"autoref"},wh={type:"checkbox"},kh={key:0,class:"admin-empty"},Eh={key:1,class:"errors-pager"},Ch={key:2,class:"errors-list"},_h=["onClick"],Sh={class:"col-when"},Nh={class:"when-rel"},Dh={class:"when-abs"},Rh={class:"col-sev"},Th={class:"sev-label"},Ah={class:"col-mod"},Oh={class:"pill pill-module"},Ih={class:"col-msg"},Ph={class:"msg-code"},Vh={key:0,class:"msg-context"},qh={key:1,class:"msg-detail"},Mh={key:2,class:"msg-url"},$h={class:"col-count"},Lh={key:0,class:"count-pill"},Uh={key:1,class:"count-pill count-pill-muted"},Fh={class:"col-status"},zh={key:0,class:"errors-row-detail"},Hh={class:"detail-tabs"},Bh=["onClick"],jh=["onClick"],Gh=["onClick"],Wh={class:"detail-body"},Kh={class:"detail-main"},Yh={key:0},Jh={key:1,class:"stack-pre"},Qh={key:2,class:"related-list"},Xh={class:"when-abs"},Zh={class:"msg-url"},xh={class:"detail-actions"},ev=["onClick"],tv=["onClick"],ov={key:0,class:"copy-hint"},nv={class:"detail-aside"},sv={class:"aside-block"},rv=["title"],iv={class:"aside-block"},av=["title"],lv={class:"aside-block"},dv={class:"aside-value"},uv={key:0,class:"aside-sub"},cv={key:0,class:"aside-block"},pv=["href"],fv={key:1,class:"aside-block"},mv={class:"aside-value mono"};function Tl(e,t){let n=ge("field"),r=ge("form");return l(),d("div",zm,[t[32]||(t[32]=o("div",{class:"paper-crumbs"},[b("Admin \xA0/\xA0 "),o("span",{class:"here"},"Errors")],-1)),o("header",Hm,[t[10]||(t[10]=o("h1",{class:"paper-page-title"},"Errors",-1)),o("div",Bm,[o("button",{class:"btn btn-sm",type:"button",onClick:t[0]||(t[0]=s=>e.exportCsv())},[...t[8]||(t[8]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export CSV",-1)])]),o("button",{class:"btn btn-sm btn-danger-soft",type:"button",onClick:t[1]||(t[1]=s=>e.clearAll())},[...t[9]||(t[9]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Clear all",-1)])])])]),t[33]||(t[33]=ce('',1)),o("section",jm,[o("div",Gm,[t[11]||(t[11]=o("div",{class:"kpi-label"},"Last 24h",-1)),o("div",Wm,c(e.stats?.last24h),1),o("div",{class:A(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h?(l(),d("span",Km,c(e.stats?.delta>0?"+":"")+c(e.stats?.delta)+"% vs yesterday",1)):p("v-if",!0),e.stats?.prev24h?p("v-if",!0):(l(),d("span",Ym,"no prior baseline"))],2)]),o("div",Jm,[t[12]||(t[12]=o("div",{class:"kpi-label"},"Errors (5xx)",-1)),o("div",Qm,c(e.stats?.severity?.error),1),o("div",Xm,c(e.stats?.unique?.error)+" unique",1)]),o("div",Zm,[t[13]||(t[13]=o("div",{class:"kpi-label"},"Warnings (4xx)",-1)),o("div",xm,c(e.stats?.severity?.warn),1),o("div",eh,c(e.stats?.unique?.warn)+" unique",1)]),o("div",th,[t[14]||(t[14]=o("div",{class:"kpi-label"},"Info (auth, 404)",-1)),o("div",oh,c(e.stats?.severity?.info),1),o("div",nh,c(e.stats?.unique?.info)+" unique",1)]),o("div",{class:A(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[15]||(t[15]=o("div",{class:"kpi-label"},"Captured",-1)),o("div",sh,c(e.total),1),o("div",rh,[b(" cap "+c(e.cap)+" \xB7 "+c(e.available?"live":"redis off")+" ",1),e.stats?.dropped>0?(l(),d("span",ih," \xB7 "+c(e.stats?.dropped)+" dropped",1)):p("v-if",!0)])],2)]),o("section",ah,[t[16]||(t[16]=ce('Volume \xB7 24h \xB7 1h bucketserror warn info
',1)),o("div",lh,[(l(!0),d(Q,null,re(e.stats?.buckets,(s,i)=>(l(),d("div",{class:"volume-bar",key:i,title:e.bucketTitle(s)},[o("span",{class:"seg seg-error",style:Ve({height:e.barPx(s,"error")+"px"})},null,4),o("span",{class:"seg seg-warn",style:Ve({height:e.barPx(s,"warn")+"px"})},null,4),o("span",{class:"seg seg-info",style:Ve({height:e.barPx(s,"info")+"px"})},null,4)],8,dh))),128))])]),D((l(),d("form",uh,[o("div",ch,[o("button",{type:"button",class:A({active:e.query?.bucket===""}),onClick:t[2]||(t[2]=s=>e.setBucket(""))},"All",2),o("button",{type:"button",class:A({active:e.query?.bucket==="error"}),onClick:t[3]||(t[3]=s=>e.setBucket("error"))},"5xx",2),o("button",{type:"button",class:A({active:e.query?.bucket==="warn"}),onClick:t[4]||(t[4]=s=>e.setBucket("warn"))},"4xx",2),o("button",{type:"button",class:A({active:e.query?.bucket==="info"}),onClick:t[5]||(t[5]=s=>e.setBucket("info"))},"Info",2)]),o("div",ph,[t[17]||(t[17]=o("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-search"})],-1)),D(o("input",fh,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(l(),d("span",mh,c(e.parsedFilterCount)+" filter"+c(e.parsedFilterCount>1?"s":""),1)):p("v-if",!0)]),o("div",hh,[t[19]||(t[19]=o("label",null,"Sort",-1)),D((l(),d("select",vh,[...t[18]||(t[18]=[o("option",{value:"recent"},"Most recent",-1),o("option",{value:"count"},"Most frequent",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.sort=s},value:e.query?.sort,form:null,options:{}}]])]),o("div",yh,[t[21]||(t[21]=o("label",null,"Group",-1)),D((l(),d("select",gh,[...t[20]||(t[20]=[o("option",{value:""},"Off",-1),o("option",{value:"code"},"By code",-1),o("option",{value:"module"},"By module",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.group=s},value:e.query?.group,form:null,options:{}}]])]),o("label",bh,[D(o("input",wh,null,512),[[n,{state:e.viewState,set:s=>{e.query.autoRefresh=s},value:e.query?.autoRefresh,form:null,options:{}}]]),t[22]||(t[22]=b(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[6]||(t[6]=s=>e.refreshNow()),"aria-label":"Refresh"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])),[[r,e.viewState]]),e.visible?.length?p("v-if",!0):(l(),d("div",kh,"No errors captured.")),e.canLoadMore()&&e.visible?.length?(l(),d("div",Eh,[o("span",null,"Showing "+c(e.entries?.length)+" of "+c(e.total)+" captured",1),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=s=>e.loadMore())},"Load older")])):p("v-if",!0),e.visible?.length?(l(),d("div",Ch,[t[31]||(t[31]=ce('WhenSeverityModuleMessageCountStatus
',1)),(l(!0),d(Q,null,re(e.visible,(s,i)=>(l(),d("div",{class:A(["errors-row",{open:e.expanded[s?._key]}]),key:s?._key},[o("div",{class:"errors-row-main",onClick:a=>e.toggle(s)},[o("div",Sh,[o("div",Nh,c(e.relTime(s?.ts)),1),o("div",Dh,c(e.absTimeShort(s?.ts)),1)]),o("div",Rh,[o("span",{class:A(["sev-dot","sev-"+s?._bucket])},null,2),o("span",Th,c(e.fmt?.title(s?._bucket)),1)]),o("div",Ah,[o("span",Oh,c(s?.module),1)]),o("div",Ih,[o("strong",Ph,c(s?.displayMessage),1),s?.displayContext&&s?.displayContext!==s?.displayMessage?(l(),d("span",Vh,c(s?.displayContext),1)):p("v-if",!0),s?._detail?(l(),d("span",qh,c(s?._detail),1)):p("v-if",!0),s?._url?(l(),d("div",Mh,c(s?._url),1)):p("v-if",!0)]),o("div",$h,[s?.count>1?(l(),d("span",Lh,"\xD7"+c(s?.count),1)):p("v-if",!0),s?.count===1?(l(),d("span",Uh,"\xD71")):p("v-if",!0)]),o("div",Fh,[s?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+s?._bucket])},c(s?._status),3)):p("v-if",!0)])],8,_h),e.expanded[s?._key]?(l(),d("div",zh,[o("div",Hh,[o("button",{type:"button",class:A({active:e.detailTab[s?._key]==="raw"||!e.detailTab[s?._key]}),onClick:a=>e.detailTab[s._key]="raw"},"Raw",10,Bh),s?._stack?(l(),d("button",{key:0,type:"button",class:A({active:e.detailTab[s?._key]==="stack"}),onClick:a=>e.detailTab[s._key]="stack"},"Stack",10,jh)):p("v-if",!0),s?.count>1?(l(),d("button",{key:1,type:"button",class:A({active:e.detailTab[s?._key]==="related"}),onClick:a=>e.detailTab[s._key]="related"},"Related ("+c(s?.count)+")",11,Gh)):p("v-if",!0)]),o("div",Wh,[o("div",Kh,[(e.detailTab[s?._key]||"raw")==="raw"?(l(),d("pre",Yh,c(s?._detailJson),1)):p("v-if",!0),e.detailTab[s?._key]==="stack"?(l(),d("pre",Jh,c(s?._stack),1)):p("v-if",!0),e.detailTab[s?._key]==="related"?(l(),d("div",Qh,[(l(!0),d(Q,null,re(s?._related,(a,u)=>(l(),d("div",{class:"related-row",key:u},[o("span",Xh,c(e.absTimeShort(a?.ts)),1),o("span",Zh,c(a?._url),1),a?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+a?._bucket])},c(a?._status),3)):p("v-if",!0)]))),128))])):p("v-if",!0),o("div",xh,[o("button",{class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:a=>e.copyCurl(s)},[...t[24]||(t[24]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Copy curl",-1)])],8,ev),o("button",{class:"btn btn-sm",type:"button",onClick:a=>e.copyJson(s)},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-clipboard"})],-1),b(" Copy JSON",-1)])],8,tv),e.copyHint?(l(),d("span",ov,c(e.copyHint),1)):p("v-if",!0)])]),o("aside",nv,[o("div",sv,[t[26]||(t[26]=o("div",{class:"aside-label"},"First seen",-1)),o("div",{class:"aside-value",title:e.absTime(s?._firstSeen)},c(e.relTime(s?._firstSeen)),9,rv)]),o("div",iv,[t[27]||(t[27]=o("div",{class:"aside-label"},"Last seen",-1)),o("div",{class:"aside-value",title:e.absTime(s?.ts)},c(e.relTime(s?.ts)),9,av)]),o("div",lv,[t[28]||(t[28]=o("div",{class:"aside-label"},"Occurrences",-1)),o("div",dv,[b(c(s?.count),1),s?._lastHourCount?(l(),d("span",uv," \xB7 "+c(s?._lastHourCount)+" this hour",1)):p("v-if",!0)])]),s?._repoId?(l(),d("div",cv,[t[29]||(t[29]=o("div",{class:"aside-label"},"Repository",-1)),o("a",{class:"aside-value",href:e.safeUrl("/r/"+s?._repoId)},c(s?._repoId),9,pv)])):p("v-if",!0),s?._url?(l(),d("div",fv,[t[30]||(t[30]=o("div",{class:"aside-label"},"URL",-1)),o("div",mv,c(s?._url),1)])):p("v-if",!0)])])])):p("v-if",!0)],2))),128))])):p("v-if",!0)])}var hv={class:"container paper-page admin-page overview-page"},vv={key:0,class:"admin-empty"},yv={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},gv={key:2},bv={class:"ov-kpi-row"},wv={class:"ov-kpi-card"},kv={class:"ov-kpi-value"},Ev={class:"ov-kpi-sub"},Cv={class:"ov-kpi-card"},_v={class:"ov-kpi-sub"},Sv={class:"ov-kpi-card"},Nv={class:"ov-kpi-sub"},Dv={class:"ov-kpi-card"},Rv={class:"ov-kpi-sub"},Tv={class:"ov-kpi-card"},Av={class:"ov-kpi-value"},Ov={class:"ov-kpi-sub"},Iv={class:"ov-daily-row"},Pv={class:"ov-daily-card"},Vv={class:"ov-daily-value"},qv={class:"ov-daily-card"},Mv={class:"ov-daily-value"},$v={class:"ov-daily-sub"},Lv={class:"ov-daily-card"},Uv={class:"ov-daily-value"},Fv={class:"ov-chart-row"},zv={class:"ov-chart-card"},Hv={key:0,class:"ov-spark-bars"},Bv=["data-tip","aria-label"],jv={key:1,class:"ov-spark-x"},Gv={class:"ov-chart-card"},Wv={key:0,class:"ov-spark-bars"},Kv=["data-tip","aria-label"],Yv={key:1,class:"ov-spark-x"},Jv={class:"ov-chart-card"},Qv={class:"ov-chart-head"},Xv={class:"ov-chart-legend"},Zv={key:0,class:"ov-spark-bars"},xv=["data-tip","aria-label"],ey={key:1,class:"ov-spark-x"},ty={class:"ov-chart-card"},oy={key:0,class:"ov-spark-bars"},ny=["data-tip","aria-label"],sy={key:1,class:"ov-spark-x"},ry={class:"ov-triple-row"},iy={class:"ov-panel-card"},ay={class:"ov-panel-head"},ly={class:"ov-panel-meta"},dy={class:"ov-stacked-bar"},uy={class:"ov-bar-legend"},cy={href:"/admin/repositories",class:"ov-legend-item"},py={class:"ov-legend-n"},fy={href:"/admin/repositories",class:"ov-legend-item"},my={class:"ov-legend-n"},hy={href:"/admin/repositories",class:"ov-legend-item"},vy={class:"ov-legend-n"},yy={href:"/admin/repositories",class:"ov-legend-item"},gy={class:"ov-legend-n"},by={href:"/admin/repositories",class:"ov-legend-item"},wy={class:"ov-legend-n"},ky={class:"ov-panel-card"},Ey={class:"ov-panel-head"},Cy={class:"ov-panel-meta"},_y={class:"ov-error-bars"},Sy={class:"ov-ebar-row"},Ny={class:"ov-ebar-track"},Dy={class:"ov-ebar-n"},Ry={class:"ov-ebar-row"},Ty={class:"ov-ebar-track"},Ay={class:"ov-ebar-n"},Oy={class:"ov-ebar-row"},Iy={class:"ov-ebar-track"},Py={class:"ov-ebar-n"},Vy={key:0,class:"ov-panel-foot"},qy={href:"/admin/errors"},My={class:"ov-panel-card"},$y={class:"ov-routes-table"},Ly={class:"ov-route-row",href:"/admin/queues"},Uy={class:"ov-route-n"},Fy={class:"ov-route-n"},zy={class:"ov-route-row",href:"/admin/queues"},Hy={class:"ov-route-n"},By={class:"ov-route-n"},jy={class:"ov-route-row",href:"/admin/queues"},Gy={class:"ov-route-n"},Wy={class:"ov-route-n"},Ky={class:"ov-services-card"},Yy={class:"ov-services-head"},Jy={class:"ov-panel-meta"},Qy={class:"ov-services-grid"},Xy={class:"ov-svc"},Zy={class:"ov-svc-info"},xy={class:"ov-svc-meta"},eg={class:"ov-svc-detail"},tg={class:"ov-svc"},og={class:"ov-svc-info"},ng={key:0,class:"ov-svc-meta"},sg={key:1,class:"ov-svc-meta"},rg={class:"ov-svc"},ig={class:"ov-svc-info"},ag={key:0,class:"ov-svc-meta"},lg={key:1,class:"ov-svc-meta"},dg={class:"ov-svc"},ug={class:"ov-svc-info"},cg={key:0,class:"ov-svc-meta"},pg={key:1,class:"ov-svc-meta"},fg={class:"ov-svc"},mg={class:"ov-svc-info"},hg={class:"ov-svc-meta"},vg={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},yg={class:"ov-panel-head ov-performance-head"},gg={class:"ov-performance-window"},bg={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},wg={key:1,class:"ov-performance-empty",role:"status"},kg={key:2},Eg={class:"paper-tabs ov-performance-tabs",role:"tablist","aria-label":"Performance metrics"},Cg=["aria-selected","tabindex"],_g=["aria-selected","tabindex"],Sg=["aria-selected","tabindex"],Ng={id:"performance-routes",role:"tabpanel","aria-labelledby":"performance-routes-tab"},Dg={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},Rg={class:"ov-metrics-table"},Tg={scope:"row",class:"ov-metric-name"},Ag={class:"num"},Og={class:"num"},Ig={class:"num"},Pg={class:"num"},Vg={class:"num"},qg={key:1,class:"ov-performance-empty"},Mg={id:"performance-processes",role:"tabpanel","aria-labelledby":"performance-processes-tab"},$g={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},Lg={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},Ug={class:"ov-metrics-table"},Fg={scope:"row",class:"ov-metric-name"},zg={key:0,class:"ov-metric-warn"},Hg={class:"num"},Bg={class:"num"},jg={class:"num"},Gg={class:"num"},Wg={class:"num"},Kg={class:"num"},Yg={class:"num"},Jg={class:"num"},Qg={id:"performance-stages",role:"tabpanel","aria-labelledby":"performance-stages-tab"},Xg={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},Zg={class:"ov-metrics-table"},xg={scope:"row",class:"ov-metric-name"},eb={class:"num"},tb={class:"num"},ob={class:"num"},sb={key:1,class:"ov-performance-empty"};function Al(e,t){return l(),d("div",hv,[t[65]||(t[65]=ce('Admin \xA0/\xA0 Overview
',3)),e.loading?(l(),d("div",vv,"Loading overview\u2026")):p("v-if",!0),e.error?(l(),d("div",yv,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.error),1)])):p("v-if",!0),e.data?(l(),d("div",gv,[p(" \u2500\u2500 Top KPI row \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\u2500 "),o("section",bv,[o("div",wv,[t[10]||(t[10]=o("div",{class:"ov-kpi-label"},[b("Repositories "),o("span",{class:"ov-dot ov-dot-ok"})],-1)),o("div",kv,c(e.humanNum(e.data?.repos?.total)),1),o("div",Ev,"+"+c(e.data?.repos?.newRepos24h)+" \xB7 last 24h",1)]),o("div",Cv,[t[11]||(t[11]=o("div",{class:"ov-kpi-label"},"CPU",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>80}])},c(e.data?.system?.cpuPercent)+"%",3),o("div",_v,c(e.data?.system?.cpuCount)+" cores \xB7 load "+c(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)]),o("div",Sv,[t[12]||(t[12]=o("div",{class:"ov-kpi-label"},"Memory",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>85}])},c(e.data?.system?.memPercent)+"%",3),o("div",Nv,c(e.humanBytes(e.data?.system?.memUsed))+" / "+c(e.humanBytes(e.data?.system?.memTotal)),1)]),o("div",Dv,[t[13]||(t[13]=o("div",{class:"ov-kpi-label"},"Disk",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>85}])},c(e.data?.system?.diskPercent)+"%",3),o("div",Rv,c(e.humanBytes(e.data?.system?.diskUsed))+" / "+c(e.humanBytes(e.data?.system?.diskTotal))+" \xB7 "+c(e.data?.system?.diskMount),1)]),o("div",Tv,[t[14]||(t[14]=o("div",{class:"ov-kpi-label"},"Uptime",-1)),o("div",Av,c(e.humanDuration(e.data?.system?.uptime)),1),o("div",Ov,c(e.data?.system?.nodeVersion)+" \xB7 "+c(e.data?.system?.platform),1)])]),p(" \u2500\u2500 Daily activity highlights \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",Iv,[o("div",Pv,[t[15]||(t[15]=o("div",{class:"ov-daily-label"},"New repos today",-1)),o("div",Vv,"+"+c(e.fmt?.number(e.data?.daily?.today?.repositories)),1),t[16]||(t[16]=o("div",{class:"ov-daily-sub"},"since yesterday",-1))]),o("div",qv,[t[17]||(t[17]=o("div",{class:"ov-daily-label"},"New users today",-1)),o("div",Mv,"+"+c(e.fmt?.number(e.data?.daily?.today?.users)),1),o("div",$v,c(e.fmt?.number(e.data?.users?.total))+" total users",1)]),o("div",Lv,[t[18]||(t[18]=o("div",{class:"ov-daily-label"},"Page views today",-1)),o("div",Uv,"+"+c(e.fmt?.number(e.data?.daily?.today?.pageViews)),1),t[19]||(t[19]=o("div",{class:"ov-daily-sub"},"since yesterday",-1))])]),p(" \u2500\u2500 Daily charts \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",Fv,[o("div",zv,[t[20]||(t[20]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"Daily page views \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-accent"}),b("views/day")])],-1)),e.data?.history?.length?(l(),d("div",Hv,[(l(!0),d(Q,null,re(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyPageViews)+" views","aria-label":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyPageViews)+" views"},[o("span",{class:"ov-spark-fill",style:Ve({height:e.historyBarH(n,"dailyPageViews")+"px"})},null,4)],8,Bv))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",jv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)]),o("div",Gv,[t[21]||(t[21]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"New repos \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-ok-fill"}),b("repos/day")])],-1)),e.data?.history?.length?(l(),d("div",Wv,[(l(!0),d(Q,null,re(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyRepositories)+" repos","aria-label":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyRepositories)+" repos"},[o("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Ve({height:e.historyBarH(n,"dailyRepositories")+"px"})},null,4)],8,Kv))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",Yv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)]),o("div",Jv,[o("div",Qv,[t[23]||(t[23]=o("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),o("span",Xv,[t[22]||(t[22]=o("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),b("total users \xB7 "+c(e.fmt?.number(e.historyRange("nbUsers").min))+"\u2013"+c(e.fmt?.number(e.historyRange("nbUsers").max)),1)])]),e.data?.history?.length?(l(),d("div",Zv,[(l(!0),d(Q,null,re(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": "+e.fmt?.number(n?.nbUsers)+" users","aria-label":e.historyLabel(n)+": "+e.fmt?.number(n?.nbUsers)+" users"},[o("span",{class:"ov-spark-fill ov-spark-fill-user",style:Ve({height:e.historyRangeH(n,"nbUsers")+"px"})},null,4)],8,xv))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",ey,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)]),o("div",ty,[t[24]||(t[24]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"New users \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-new-user-fill"}),b("users/day")])],-1)),e.data?.history?.length?(l(),d("div",oy,[(l(!0),d(Q,null,re(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyUsers)+" users","aria-label":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyUsers)+" users"},[o("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Ve({height:e.historyBarH(n,"dailyUsers")+"px"})},null,4)],8,ny))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",sy,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)])]),p(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",ry,[p(" Repo status breakdown "),o("div",iy,[o("div",ay,[t[25]||(t[25]=o("span",{class:"ov-panel-title"},"Repo status",-1)),o("span",ly,c(e.fmt?.number(e.data?.repos?.total))+" total",1)]),o("div",dy,[o("span",{class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Ve({width:e.barPct("ready")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Ve({width:e.barPct("preparing")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-error",title:"Error",style:Ve({width:e.barPct("error")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-expired",title:"Expired",style:Ve({width:e.barPct("expired")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-removed",title:"Removed",style:Ve({width:e.barPct("removed")+"%"})},null,4)]),o("div",uy,[o("a",cy,[t[26]||(t[26]=o("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[27]||(t[27]=b(" ready ",-1)),o("span",py,c(e.fmt?.number(e.statusCount("ready"))),1)]),o("a",fy,[t[28]||(t[28]=o("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[29]||(t[29]=b(" preparing ",-1)),o("span",my,c(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),o("a",hy,[t[30]||(t[30]=o("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[31]||(t[31]=b(" error ",-1)),o("span",vy,c(e.fmt?.number(e.statusCount("error"))),1)]),o("a",yy,[t[32]||(t[32]=o("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[33]||(t[33]=b(" expired ",-1)),o("span",gy,c(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),o("a",by,[t[34]||(t[34]=o("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[35]||(t[35]=b(" removed ",-1)),o("span",wy,c(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),p(" Error breakdown "),o("div",ky,[o("div",Ey,[t[36]||(t[36]=o("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),o("span",Cy,c(e.data?.errors?.last24h)+" total",1)]),o("div",_y,[o("div",Sy,[t[37]||(t[37]=o("span",{class:"ov-ebar-label"},"5xx",-1)),o("span",Ny,[o("span",{class:"ov-ebar-fill ov-ebar-error",style:Ve({width:e.errPct("error")+"%"})},null,4)]),o("span",Dy,c(e.data?.errors?.severity?.error),1)]),o("div",Ry,[t[38]||(t[38]=o("span",{class:"ov-ebar-label"},"4xx",-1)),o("span",Ty,[o("span",{class:"ov-ebar-fill ov-ebar-warn",style:Ve({width:e.errPct("warn")+"%"})},null,4)]),o("span",Ay,c(e.data?.errors?.severity?.warn),1)]),o("div",Oy,[t[39]||(t[39]=o("span",{class:"ov-ebar-label"},"Info",-1)),o("span",Iy,[o("span",{class:"ov-ebar-fill ov-ebar-info",style:Ve({width:e.errPct("info")+"%"})},null,4)]),o("span",Py,c(e.data?.errors?.severity?.info),1)])]),e.data?.repos?.recentErrors24h?(l(),d("div",Vy,[o("a",qy,c(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):p("v-if",!0)]),p(" Top routes / queues "),o("div",My,[t[44]||(t[44]=o("div",{class:"ov-panel-head"},[o("span",{class:"ov-panel-title"},"Queues"),o("span",{class:"ov-panel-meta"},"by state")],-1)),o("div",$y,[t[43]||(t[43]=ce('QueueActiveWaitFailed
',1)),o("a",Ly,[t[40]||(t[40]=o("span",{class:"ov-route-name"},"download",-1)),o("span",Uy,c(e.data?.queues?.download?.active),1),o("span",Fy,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",zy,[t[41]||(t[41]=o("span",{class:"ov-route-name"},"remove",-1)),o("span",Hy,c(e.data?.queues?.remove?.active),1),o("span",By,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",jy,[t[42]||(t[42]=o("span",{class:"ov-route-name"},"cache",-1)),o("span",Gy,c(e.data?.queues?.cache?.active),1),o("span",Wy,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",Ky,[o("div",Yy,[t[45]||(t[45]=o("span",{class:"ov-panel-title"},"Services",-1)),o("span",Jy,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),o("div",Qy,[o("div",Xy,[t[47]||(t[47]=o("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),o("div",Zy,[t[46]||(t[46]=o("span",{class:"ov-svc-name"},"web",-1)),o("span",xy,c(e.data?.system?.nodeVersion),1)]),o("span",eg,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),o("div",tg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",og,[t[48]||(t[48]=o("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",ng,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",sg,"idle"))])]),o("div",rg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ig,[t[49]||(t[49]=o("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",ag,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",lg,"idle"))])]),o("div",dg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ug,[t[50]||(t[50]=o("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",cg,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",pg,"idle"))])]),o("div",fg,[o("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),o("div",mg,[t[51]||(t[51]=o("span",{class:"ov-svc-name"},"errors",-1)),o("span",hg,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):p("v-if",!0),o("section",vg,[o("div",yg,[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",gg,[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),[[pa,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",bg,[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",wg,"Loading performance monitoring\u2026")):p("v-if",!0),e.performance?.available?(l(),d("div",kg,[o("div",Eg,[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,Cg),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,_g),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,Sg)]),D(o("div",Ng,[e.performance.routes?.length?(l(),d("div",Dg,[o("table",Rg,[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(Q,null,re(e.performance.routes,n=>(l(),d("tr",{key:n.service+n.method+n.route},[o("th",Tg,[o("span",null,c(n.route),1),o("small",null,c(n.service)+" \xB7 "+c(n.method),1)]),o("td",Ag,c(e.fmt.number(n.count)),1),o("td",Og,c(e.formatMs(n.avgMs)),1),o("td",Ig,c(e.firstByteBound(n)),1),o("td",Pg,c(e.latencyBound(n,"p95UpperMs")),1),o("td",Vg,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",qg,"No recorded requests in this time range yet."))],512),[[K,e.performanceTab==="routes"]]),D(o("div",Mg,[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",Lg,[o("table",Ug,[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(Q,null,re(e.performance.instances,n=>(l(),d("tr",{key:n.instance,class:A({"ov-metric-warning-row":e.performanceWarning(n)})},[o("th",Fg,[o("span",null,c(n.instance),1),e.performanceWarning(n)?(l(),d("small",zg,[...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",Hg,[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",Bg,c(n.cpuPercent.toFixed(1))+"%",1),o("td",jg,c(n.eventLoop.p95Ms.toFixed(1))+" ms",1),o("td",Gg,c(n.activeRequests),1),o("td",Wg,c(n.sockets?.descriptors??"Unavailable")+" / "+c(n.sockets?.closeWait??"Unavailable"),1),o("td",Kg,c(n.workers?.running??0)+" / "+c(n.workers?.waiting??0),1),o("td",Yg,c(e.sampleAge(n))+" s",1),o("td",Jg,c(n.droppedBatches)+" / "+c(n.droppedMetrics),1)],2))),128))])])])):(l(),d("div",$g,"No recent process samples. Monitoring coverage is incomplete."))],512),[[K,e.performanceTab==="processes"]]),D(o("div",Qg,[e.performance.stages?.some(n=>n.metric!=="first_byte")?(l(),d("div",Xg,[o("table",Zg,[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(Q,null,re(e.performance.stages.filter(n=>n.metric!=="first_byte"),n=>(l(),d("tr",{key:n.service+n.metric},[o("th",xg,[o("span",null,c(n.metric),1),o("small",null,c(n.service),1)]),o("td",eb,c(e.fmt.number(n.count)),1),o("td",tb,c(e.formatMs(n.avgMs)),1),o("td",ob,c(e.latencyBound(n,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",sb,"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 rb={class:"container paper-page admin-page"},ib={class:"q-header"},ab={class:"q-header-actions"},lb={class:"q-range-btns"},db={class:"q-cards"},ub=["aria-pressed","onKeydown","onClick"],cb={class:"q-card-head"},pb=["textContent"],fb=["textContent"],mb={class:"q-card-sub"},hb={key:0,class:"q-card-bar"},vb={key:0,class:"q-detail"},yb={class:"q-throughput"},gb={class:"q-section-label"},bb={class:"q-section-right"},wb={class:"q-stats-panel"},kb={class:"q-section-label"},Eb={class:"q-stats-grid"},Cb={class:"q-stat"},_b=["textContent"],Sb={class:"q-stat"},Nb=["textContent"],Db={class:"q-stat"},Rb=["textContent"],Tb={class:"q-stat"},Ab=["textContent"],Ob={class:"q-stat"},Ib=["textContent"],Pb={class:"q-stat"},Vb=["textContent"],qb={class:"q-stats-actions"},Mb=["disabled"],$b={class:"q-jobs"},Lb={class:"q-jobs-header"},Ub={class:"q-section-label"},Fb={class:"q-state-filters"},zb={class:"q-state-toggle"},Hb={type:"checkbox"},Bb={class:"q-search-row"},jb={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},Gb={class:"q-auto-refresh"},Wb={type:"checkbox"},Kb={key:0,class:"q-table"},Yb=["onClick"],Jb={class:"q-cell-state"},Qb=["textContent"],Xb=["textContent"],Zb={class:"q-cell-id"},xb=["textContent","href"],e1={class:"q-cell-payload"},t1=["textContent"],o1={key:0,class:"q-payload-detail"},n1=["textContent"],s1=["textContent"],r1={class:"q-cell-progress"},i1={key:0,class:"q-progress-wrap"},a1=["textContent"],l1={class:"q-cell-actions"},d1=["onClick"],u1=["onClick"],c1={key:0,class:"q-detail-row"},p1={colspan:"7"},f1={class:"q-job-detail"},m1={class:"q-job-detail-grid"},h1={class:"q-job-detail-item"},v1={class:"q-job-detail-value"},y1=["textContent","href"],g1={class:"q-job-detail-item"},b1={class:"q-job-detail-value"},w1=["textContent"],k1={key:0,class:"q-job-detail-item"},E1=["textContent"],C1={key:1,class:"q-job-detail-item"},_1=["textContent"],S1={key:2,class:"q-job-detail-item"},N1={class:"q-job-detail-value"},D1={key:3,class:"q-job-detail-item"},R1=["textContent"],T1={key:4,class:"q-job-detail-item"},A1=["textContent"],O1={key:5,class:"q-job-detail-item"},I1=["textContent"],P1={key:6,class:"q-job-detail-item"},V1=["textContent"],q1={key:7,class:"q-job-detail-item"},M1=["textContent"],$1={key:0,class:"q-job-detail-error"},L1=["textContent"],U1={key:1},F1=["textContent"],z1={class:"q-job-detail-actions"},H1=["onClick"],B1=["onClick"],j1=["href"],G1={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},W1={key:0},K1={key:1};function Ol(e,t){let n=ge("field");return l(),d("div",rb,[t[48]||(t[48]=o("div",{class:"paper-crumbs"},[b("Admin \xA0/\xA0 "),o("span",{class:"here"},"Queues")],-1)),o("div",ib,[t[12]||(t[12]=o("h1",{class:"paper-page-title"},"Queues",-1)),o("div",ab,[o("div",lb,[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",db,[(l(!0),d(Q,null,re(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:[To(le(i=>e.selectQueue(r.key),["prevent"]),["enter"]),To(le(i=>e.selectQueue(r.key),["prevent"]),["space"])],onClick:i=>e.selectQueue(r.key)},[o("div",cb,[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,pb)]),o("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,fb),o("div",mb,[o("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",hb,[o("div",{class:"q-card-bar-fill",style:Ve({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,ub))),256))]),p(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",vb,[o("div",yb,[o("div",gb,[b(c(e.selectedQueue)+" \xB7 throughput ",1),o("span",bb,[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",wb,[o("div",kb,c(e.selectedQueue)+" \xB7 stats",1),o("div",Eb,[o("div",Cb,[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,_b)]),o("div",Sb,[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,Nb)]),o("div",Db,[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,Rb)]),o("div",Tb,[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,Ab)]),o("div",Ob,[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,Ib)]),o("div",Pb,[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,Vb)])]),o("div",qb,[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,Mb),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",$b,[o("div",Lb,[o("div",Ub,"All jobs \xB7 "+c(e.selectedQueue),1),o("div",Fb,[(l(!0),d(Q,null,re(e.allStates,(r,s)=>(l(),d("label",zb,[D(o("input",Hb,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",Bb,[D(o("input",jb,null,512),[[n,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),o("label",Gb,[D(o("input",Wb,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",Kb,[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(Q,null,re(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",Jb,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,Qb),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,Xb)):p("v-if",!0)]),o("td",Zb,[(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,xb)]),o("td",e1,[o("span",{textContent:c(r?.name||"anonymize")},null,8,t1),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",o1," \xB7 "+c(r?.data?.repoId),1)):p("v-if",!0)]),o("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,n1),o("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,s1),o("td",r1,[e.jobProgressPct(r)!==null?(l(),d("div",i1,[o("div",{class:"q-progress-bar",style:Ve({"--pct":e.jobProgressPct(r)+"%"})},null,4),o("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,a1)])):p("v-if",!0)]),o("td",l1,[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,d1)):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,u1)])],10,Yb),e.expanded[r?.id]?(l(),d("tr",c1,[o("td",p1,[o("div",f1,[o("div",m1,[o("div",h1,[t[31]||(t[31]=o("span",{class:"q-job-detail-label"},"Job id",-1)),o("span",v1,[o("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,y1)])]),o("div",g1,[t[32]||(t[32]=o("span",{class:"q-job-detail-label"},"State",-1)),o("span",b1,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,w1)])]),r?.data?.repoId?(l(),d("div",k1,[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,E1)])):p("v-if",!0),r?.timestamp?(l(),d("div",C1,[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,_1)])):p("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",S1,[t[35]||(t[35]=o("span",{class:"q-job-detail-label"},"Retry at",-1)),o("span",N1,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):p("v-if",!0),r?.processedOn?(l(),d("div",D1,[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,R1)])):p("v-if",!0),r?.finishedOn?(l(),d("div",T1,[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,A1)])):p("v-if",!0),r?.attemptsMade?(l(),d("div",O1,[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,I1)])):p("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",P1,[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,V1)])):p("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",q1,[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,M1)])):p("v-if",!0)]),r?.failedReason?(l(),d("div",$1,[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,L1)])):p("v-if",!0),r?.stacktrace?.length?(l(),d("div",U1,[t[42]||(t[42]=o("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(l(!0),d(Q,null,re(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[o("code",{textContent:c(i)},null,8,F1)]))),128))])):p("v-if",!0),o("div",z1,[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,H1)):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,B1),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,j1)])])])])):p("v-if",!0)]))),256))])):p("v-if",!0),e.filteredJobs().length==0?(l(),d("div",G1,[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",W1,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",K1,"No jobs match the current filters.")):p("v-if",!0)])):p("v-if",!0)])])}var Y1={class:"container paper-page admin-page"},J1={class:"admin-summary"},Q1={class:"summary-total"},X1={class:"summary-meta"},Z1=["aria-pressed"],x1={class:"count"},ew=["aria-pressed"],tw={class:"count"},ow=["aria-pressed"],nw={class:"count"},sw=["aria-pressed"],rw={class:"count"},iw=["aria-pressed"],aw={class:"count"},lw={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},dw={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},uw={class:"admin-filter-row"},cw={class:"search-wrap"},pw={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},fw={key:0,class:"admin-search-hint"},mw={class:"admin-filter-inline"},hw={type:"text",class:"form-control form-control-sm",placeholder:"username"},vw={class:"admin-filter-inline"},yw={type:"text",class:"form-control form-control-sm",placeholder:"ID"},gw={class:"admin-filter-inline","aria-label":"Pagination"},bw=["disabled"],ww={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},kw=["disabled"],Ew={key:0,class:"admin-filter-row"},Cw={class:"admin-active-chips"},_w={class:"key"},Sw=["onClick"],Nw={key:1,class:"bulk-bar"},Dw={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},Rw={class:"paper-table-head",role:"row"},Tw={role:"columnheader",style:{width:"28px"}},Aw=["checked"],Ow={role:"columnheader"},Iw={role:"columnheader"},Pw={role:"columnheader",class:"num"},Vw={role:"columnheader"},qw={role:"cell",style:{width:"28px"}},Mw={type:"checkbox","aria-label":"Select repository"},$w={class:"cell-anon",role:"cell"},Lw={class:"anon-text"},Uw=["textContent","href"],Fw={class:"anon-sub"},zw=["textContent","href"],Hw={key:0},Bw=["textContent","href"],jw={key:1},Gw=["textContent","href"],Ww={key:2},Kw={class:"cell-status",role:"cell"},Yw={class:"status-line"},Jw=["textContent"],Qw=["textContent","title"],Xw={class:"cell-views num",role:"cell"},Zw=["textContent"],xw={class:"cell-expires",role:"cell"},ek=["textContent"],tk={class:"cell-actions",role:"cell"},ok={class:"dropdown"},nk={class:"dropdown-menu dropdown-menu-right"},sk=["href"],rk=["href"],ik=["href"],ak=["onClick"],lk=["onClick"],dk=["onClick"],uk=["onClick"],ck=["onClick"],pk=["onClick"],fk={key:0,class:"paper-table-empty"},mk={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},hk={style:{"font-size":"12px",color:"var(--ink-muted)"}},vk={key:0,class:"pagination-compact"},yk=["disabled"],gk=["max"],bk=["disabled"],wk={class:"admin-filter-inline"},kk={class:"form-control form-control-sm"};function Il(e,t){let n=ge("field"),r=ge("form");return l(),d("div",Y1,[t[69]||(t[69]=ce('Admin \xA0/\xA0 Repositories
Repositories
',3)),o("div",J1,[o("span",Q1,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("span",X1,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",x1,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Z1),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",tw,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,ew),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",nw,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,ow),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",rw,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,sw),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",aw,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,iw)]),e.fetchError?(l(),d("div",lw,[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",dw,[p(" Row 1: search + scoped inputs + headline actions "),o("div",uw,[o("div",cw,[D(o("input",pw,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",fw,"/"))]),o("span",mw,[t[24]||(t[24]=o("label",null,"Owner",-1)),D(o("input",hw,null,512),[[n,{state:e.viewState,set:s=>{e.query.owner=s},value:e.query?.owner,form:null,options:{}}]])]),o("span",vw,[t[25]||(t[25]=o("label",null,"Conference",-1)),D(o("input",yw,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",gw,[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,bw),o("span",ww,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,kw)])]),p(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",Ew,[o("div",Cw,[(l(!0),d(Q,null,re(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",_w,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,Sw)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",Nw,[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",Dw,[o("div",Rw,[o("div",Tw,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,Aw)]),o("div",Ow,[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",Iw,[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",Pw,[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",Vw,[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(Q,null,re(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",qw,[D(o("input",Mw,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",$w,[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",Lw,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,Uw),o("div",Fw,[o("a",{textContent:c(s?.source?.repositoryName),href:e.safeUrl("https://github.com/"+s?.source?.repositoryName+"/")},null,8,zw),s?.options?.update?(l(),d("span",Hw,[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,Bw)])):p("v-if",!0),s?.options?.update?p("v-if",!0):(l(),d("span",jw,[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,Gw)])),s?.conference?(l(),d("span",Ww,[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",Kw,[o("span",Yw,[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,Jw)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,Qw)):p("v-if",!0)]),o("div",Xw,[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,Zw)]),o("div",xw,[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,ek)]),o("div",tk,[o("div",ok,[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",nk,[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,sk),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,rk),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,ik)):p("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:le(a=>e.fetchGithubInfo(s),["prevent"])},[...t[55]||(t[55]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,ak),t[61]||(t[61]=o("div",{class:"dropdown-divider"},null,-1)),D(o("a",{class:"dropdown-item",href:"#",onClick:le(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,lk),[[K,s?.status=="ready"||s?.status=="error"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:le(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,dk),[[K,s?.status=="removed"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:le(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,uk),[[K,s?.statusMessage]]),t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:le(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,ck),D(o("a",{class:"dropdown-item text-danger",href:"#",onClick:le(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,pk),[[K,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",fk,[...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",mk,[o("span",hk,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",vk,[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,yk),D(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,gk),[[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,bk)])):p("v-if",!0),o("span",wk,[t[68]||(t[68]=o("label",null,"Per page",-1)),D((l(),d("select",kk,[...t[67]||(t[67]=[ce('',5)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var Ek={class:"container paper-page admin-page"},Ck={class:"paper-crumbs"},_k={class:"here"},Sk={class:"paper-page-title"},Nk={key:0,class:"user-detail-card"},Dk={class:"user-header"},Rk=["src"],Tk={class:"status-dot-wrap"},Ak=["textContent"],Ok={key:0,class:"type-badge type-repo"},Ik={class:"user-actions",style:{"margin-top":"4px"}},Pk={class:"user-detail-grid"},Vk={class:"detail-value"},qk={class:"detail-value"},Mk={key:0,class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},$k={key:1,class:"detail-value text-muted"},Lk={class:"detail-value"},Uk=["href"],Fk={class:"detail-value"},zk={class:"detail-value"},Hk={key:0},Bk={key:1,class:"text-muted"},jk={class:"detail-value"},Gk={key:0,style:{"margin-top":"20px"}},Wk={class:"paper-table w-100",style:{"margin-top":"10px"}},Kk={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},Yk={class:"cell-anon",role:"cell"},Jk={class:"anon-text"},Qk=["textContent"],Xk={class:"cell-expires",role:"cell"},Zk={key:1,class:"admin-section-header"},xk={class:"section-count"},e0={key:2,class:"user-detail-card"},t0={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},o0={key:0,class:"alert alert-warning",role:"alert"},n0={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},s0={key:1,class:"paper-table w-100"},r0={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},i0=["textContent"],a0=["textContent"],l0={role:"cell"},d0={key:0},u0={key:1,class:"text-muted"},c0={role:"cell"},p0=["onClick"],f0={key:2,class:"paper-table-empty"},m0={class:"admin-section-header"},h0={class:"section-count"},v0={class:"admin-summary"},y0={class:"summary-total"},g0=["aria-pressed"],b0={class:"count"},w0=["aria-pressed"],k0={class:"count"},E0=["aria-pressed"],C0={class:"count"},_0=["aria-pressed"],S0={class:"count"},N0=["aria-pressed"],D0={class:"count"},R0={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},T0={class:"admin-filter-row"},A0={class:"search-wrap"},O0={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},I0={key:3,class:"bulk-bar"},P0={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},V0={class:"paper-table-head",role:"row"},q0={role:"columnheader",style:{width:"28px"}},M0=["checked"],$0={role:"columnheader"},L0={role:"columnheader"},U0={role:"columnheader",class:"num"},F0={role:"columnheader"},z0={role:"cell",style:{width:"28px"}},H0={type:"checkbox","aria-label":"Select repository"},B0={class:"cell-anon",role:"cell"},j0={class:"anon-text"},G0=["textContent","href"],W0={class:"anon-sub"},K0=["textContent","href"],Y0={key:0},J0=["textContent","href"],Q0={key:1},X0=["textContent","href"],Z0={key:2},x0={class:"cell-status",role:"cell"},eE={class:"status-line"},tE=["textContent"],oE=["textContent","title"],nE=["textContent"],sE=["textContent"],rE={class:"cell-actions",role:"cell"},iE={class:"dropdown"},aE={class:"dropdown-menu dropdown-menu-right"},lE=["href"],dE=["href"],uE=["href"],cE=["onClick"],pE=["onClick"],fE=["onClick"],mE=["onClick"],hE=["onClick"],vE=["onClick"],yE={key:0,class:"paper-table-empty"};function Pl(e,t){let n=ge("field"),r=ge("form");return l(),d("div",Ek,[o("div",Ck,[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",_k,c(e.userInfo?.username||"Profile"),1)]),o("h1",Sk,c(e.userInfo?.username||"User"),1),t[87]||(t[87]=ce('',1)),e.userInfo?(l(),d("div",Nk,[o("div",Dk,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,Rk)):p("v-if",!0),o("div",null,[o("h2",null,[b(c(e.userInfo?.username)+" ",1),o("span",Tk,[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,Ak)]),e.userInfo?.isAdmin?(l(),d("span",Ok,"Admin")):p("v-if",!0)]),o("div",Ik,[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",Pk,[t[32]||(t[32]=o("div",{class:"detail-label"},"ID",-1)),o("div",Vk,c(e.userInfo?._id),1),t[33]||(t[33]=o("div",{class:"detail-label"},"Email",-1)),o("div",qk,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",Mk,c(e.userInfo?.accessTokens?.github),1)):p("v-if",!0),e.userInfo?.accessTokens?.github?p("v-if",!0):(l(),d("div",$k,"None stored")),t[35]||(t[35]=o("div",{class:"detail-label"},"GitHub",-1)),o("div",Lk,[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,Uk)]),t[36]||(t[36]=o("div",{class:"detail-label"},"Created",-1)),o("div",Fk,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[37]||(t[37]=o("div",{class:"detail-label"},"Last connection",-1)),o("div",zk,[e.userInfo?.accessTokenDates?.github?(l(),d("span",Hk,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):p("v-if",!0),e.userInfo?.accessTokenDates?.github?p("v-if",!0):(l(),d("span",Bk,"never"))]),t[38]||(t[38]=o("div",{class:"detail-label"},"GitHub repos",-1)),o("div",jk,[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",Gk,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),o("div",Wk,[(l(!0),d(Q,null,re(e.userInfo?.repositories,(s,i)=>(l(),d("div",Kk,[o("div",Yk,[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",Jk,[o("span",{class:"repo-name",textContent:c(s?.name)},null,8,Qk)])]),o("div",Xk,[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",Zk,[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",xk,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",e0,[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]=le(s=>e.submitForm(s,()=>{e.createToken()}),["prevent"]))},[D(o("input",t0,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",o0,[t[44]||(t[44]=o("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),o("pre",n0,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",s0,[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(Q,null,re(e.tokens,(s,i)=>(l(),d("div",r0,[o("div",{role:"cell",textContent:c(s?.name)},null,8,i0),o("div",{role:"cell",textContent:c(e.fmt?.humanTime(s?.createdAt))},null,8,a0),o("div",l0,[s?.lastUsedAt?(l(),d("span",d0,c(e.fmt?.humanTime(s?.lastUsedAt)),1)):p("v-if",!0),s?.lastUsedAt?p("v-if",!0):(l(),d("span",u0,"never"))]),o("div",c0,[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,p0)])]))),256))])):p("v-if",!0),e.tokens?.length?p("v-if",!0):(l(),d("div",f0,[...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",m0,[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",h0,c(e.repositories?.length),1)]),o("div",v0,[o("span",y0,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",b0,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,g0),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",k0,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,w0),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",C0,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,E0),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",S0,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,_0),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",D0,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,N0)]),D((l(),d("form",R0,[o("div",T0,[o("div",A0,[D(o("input",O0,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",I0,[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",P0,[o("div",V0,[o("div",q0,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,M0)]),o("div",$0,[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",L0,[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",U0,[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",F0,[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(Q,null,re(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",z0,[D(o("input",H0,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",B0,[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",j0,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,G0),o("div",W0,[o("a",{textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,K0),s?.options?.update?(l(),d("span",Y0,[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,J0)])):p("v-if",!0),s?.options?.update?p("v-if",!0):(l(),d("span",Q0,[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,X0)])),s?.conference?(l(),d("span",Z0,[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",x0,[o("span",eE,[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,tE)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,oE)):p("v-if",!0)]),o("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(s?.pageView||0))},null,8,nE),o("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,sE),o("div",rE,[o("div",iE,[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",aE,[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,lE),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,dE),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,uE)):p("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:le(a=>e.fetchGithubInfo(s),["prevent"])},[...t[77]||(t[77]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,cE),t[83]||(t[83]=o("div",{class:"dropdown-divider"},null,-1)),D(o("a",{class:"dropdown-item",href:"#",onClick:le(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,pE),[[K,s?.status=="ready"||s?.status=="error"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:le(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,fE),[[K,s?.status=="removed"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:le(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,mE),[[K,s?.statusMessage]]),t[84]||(t[84]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:le(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,hE),D(o("a",{class:"dropdown-item text-danger",href:"#",onClick:le(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,vE),[[K,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",yE,[...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 gE={class:"container paper-page admin-page"},bE={class:"admin-summary"},wE={class:"summary-total"},kE=["aria-pressed"],EE={class:"count"},CE=["aria-pressed"],_E={class:"count"},SE=["aria-pressed"],NE={class:"count"},DE={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},RE={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},TE={class:"admin-filter-row"},AE={class:"search-wrap"},OE={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},IE={key:0,class:"admin-search-hint"},PE={class:"admin-filter-inline"},VE={class:"form-control form-control-sm"},qE={class:"admin-filter-inline","aria-label":"Pagination"},ME=["disabled"],$E={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},LE=["disabled"],UE={key:0,class:"admin-filter-row"},FE={class:"admin-active-chips"},zE={class:"key"},HE=["onClick"],BE={key:1,class:"bulk-bar"},jE={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},GE={class:"paper-table-head admin-users-row",role:"row"},WE={role:"columnheader",style:{width:"28px"}},KE=["checked"],YE={role:"columnheader"},JE={role:"columnheader"},QE={role:"cell",style:{width:"28px"}},XE={type:"checkbox","aria-label":"Select user"},ZE={class:"cell-anon",role:"cell"},xE=["src"],eC={class:"anon-text"},tC=["textContent","href"],oC={class:"anon-sub"},nC={key:0},sC=["href"],rC={key:1},iC={class:"cell-views num",role:"cell"},aC=["textContent","href"],lC={class:"cell-status",role:"cell"},dC=["textContent"],uC={class:"cell-status",role:"cell"},cC={key:0,class:"type-badge type-repo"},pC={key:1,class:"empty-dash"},fC={class:"cell-actions",role:"cell"},mC={class:"dropdown"},hC={class:"dropdown-menu dropdown-menu-right"},vC=["href"],yC=["href"],gC=["onClick"],bC=["onClick"],wC={key:0,class:"paper-table-empty"},kC={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},EC={style:{"font-size":"12px",color:"var(--ink-muted)"}},CC={key:0,class:"pagination-compact"},_C=["disabled"],SC=["max"],NC=["disabled"],DC={class:"admin-filter-inline"},RC={class:"form-control form-control-sm"};function Vl(e,t){let n=ge("field"),r=ge("form");return l(),d("div",gE,[t[46]||(t[46]=ce('Admin \xA0/\xA0 Users
Users
',3)),o("div",bE,[o("span",wE,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",EE,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,kE),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",_E,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,CE),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",NE,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,SE)]),e.fetchError?(l(),d("div",DE,[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",RE,[o("div",TE,[o("div",AE,[D(o("input",OE,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",IE,"/"))]),o("span",PE,[t[18]||(t[18]=o("label",null,"Role",-1)),D((l(),d("select",VE,[...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",qE,[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,ME),o("span",$E,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,LE)])]),e.chips?.length?(l(),d("div",UE,[o("div",FE,[(l(!0),d(Q,null,re(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",zE,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,HE)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",BE,[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",jE,[o("div",GE,[o("div",WE,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,KE)]),o("div",YE,[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",JE,[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(Q,null,re(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",QE,[D(o("input",XE,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.username]=a},value:e.selected[s?.username],form:null,options:{}}]])]),o("div",ZE,[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,xE)):p("v-if",!0),o("div",eC,[o("a",{class:"repo-name",textContent:c(s?.username),href:e.safeUrl("/admin/users/"+s?.username)},null,8,tC),o("div",oC,[s?.emails?.[0]?.email?(l(),d("span",nC,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,sC),s?.dateOfEntry?(l(),d("span",rC,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(s?.dateOfEntry)),1)):p("v-if",!0)])])]),o("div",iC,[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,aC)]),o("div",lC,[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,dC)]),o("div",uC,[s?.isAdmin?(l(),d("span",cC,"Admin")):p("v-if",!0),s?.isAdmin?p("v-if",!0):(l(),d("span",pC,"\u2014"))]),o("div",fC,[o("div",mC,[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",hC,[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,vC),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,yC),t[39]||(t[39]=o("div",{class:"dropdown-divider"},null,-1)),D(o("a",{class:"dropdown-item text-danger",href:"#",onClick:le(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,gC),[[K,s?.status=="active"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:le(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,bC),[[K,s?.status=="removed"||s?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",wC,[...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",kC,[o("span",EC,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",CC,[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,_C),D(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,SC),[[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,NC)])):p("v-if",!0),o("span",DC,[t[45]||(t[45]=o("label",null,"Per page",-1)),D((l(),d("select",RC,[...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 TC={class:"anonymize-landing"},AC={class:"anonymize-landing-inner"},OC={class:"form-group mt-4 mb-2"},IC={class:"source-url-label-row"},PC={key:0,class:"repo-access","aria-label":"GitHub access"},VC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},qC=["aria-pressed","disabled"],MC=["aria-pressed","disabled"],$C={key:1,class:"connection-badge"},LC={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},UC={key:0,class:"draft-status",role:"status"},FC={key:1,class:"text-danger",role:"alert"},zC={key:2,class:"repo-access-details","aria-label":"GitHub access"},HC={class:"repo-access-main"},BC={class:"repo-access-controls"},jC={key:1,class:"connection-link",href:"/connections"},GC={class:"repo-access-note"},WC={key:0},KC={class:"anonymize-workspace"},YC={class:"anonymize-topbar"},JC={class:"anonymize-topbar-inner"},QC={class:"paper-crumbs"},XC={class:"here"},ZC={class:"anonymize-topbar-head"},xC={class:"paper-page-title anonymize-topbar-title"},e2={key:0},t2={key:1},o2={key:0,class:"alert alert-info",role:"status"},n2={key:1,class:"alert alert-info",role:"status"},s2={key:1},r2={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},i2=["aria-selected","tabindex"],a2=["aria-selected","tabindex"],l2={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},d2={class:"anonymize-split"},u2=["role","aria-labelledby"],c2={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},p2={class:"paper-settings-section"},f2={class:"form-group"},m2={class:"source-url-label-row"},h2={key:0,class:"repo-access","aria-label":"GitHub access"},v2={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},y2=["aria-pressed","disabled"],g2=["aria-pressed","disabled"],b2={key:1,class:"connection-badge"},w2=["disabled"],k2={class:"invalid-feedback"},E2={class:"invalid-feedback"},C2={class:"invalid-feedback"},_2={class:"invalid-feedback"},S2={key:0,class:"repo-access-details","aria-label":"GitHub access"},N2={class:"repo-access-main"},D2={class:"repo-access-controls"},R2={key:1,class:"connection-link",href:"/connections"},T2={class:"repo-access-note"},A2={key:0},O2={key:1,class:"repo-access-details"},I2=["disabled"],P2={key:0,role:"status"},V2={key:2,class:"repo-access-details"},q2={key:0,role:"status"},M2={key:3,class:"form-grid-2"},$2={class:"form-group"},L2={class:"input-group"},U2={class:"form-control",id:"branch",name:"branch"},F2=["textContent","value"],z2={class:"input-group-append"},H2={class:"form-group"},B2=["disabled"],j2={class:"invalid-feedback"},G2={class:"invalid-feedback"},W2={class:"form-check"},K2={class:"form-check-input",type:"checkbox",id:"update",name:"update"},Y2={class:"paper-settings-section"},J2={class:"form-group"},Q2=["disabled"],X2={class:"form-text text-muted"},Z2={class:"invalid-feedback"},x2={class:"form-group"},e_=["disabled"],t_={class:"form-text text-muted"},o_={class:"invalid-feedback"},n_={class:"form-group"},s_=["disabled"],r_={class:"form-text text-muted"},i_={class:"invalid-feedback"},a_={class:"form-group"},l_={class:"form-text text-muted"},d_=["href"],u_={class:"invalid-feedback"},c_={class:"form-text text-muted"},p_={class:"paper-settings-section"},f_={class:"form-group"},m_={class:"form-text text-muted"},h_={class:"warning-feedback"},v_={class:"invalid-feedback"},y_={class:"paper-settings-section"},g_={class:"form-check"},b_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},w_={class:"form-check"},k_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},E_={class:"form-check"},C_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},__={class:"form-check"},S_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},N_={class:"form-check"},D_=["disabled"],R_={key:0,class:"form-text text-muted"},T_={key:1,class:"form-text text-muted"},A_={class:"form-check"},O_={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},I_={class:"form-check"},P_={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},V_={class:"form-check"},q_={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},M_={class:"form-check"},$_={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},L_={class:"form-check"},U_={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},F_={class:"form-check"},z_={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},H_={class:"form-check"},B_={class:"form-check-input",type:"checkbox",id:"title",name:"title"},j_={class:"form-check"},G_={class:"form-check-input",type:"checkbox",id:"body",name:"body"},W_={class:"form-check"},K_={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},Y_={class:"form-check"},J_={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},Q_={class:"form-check"},X_={class:"form-check-input",type:"checkbox",id:"username",name:"username"},Z_={class:"form-check"},x_={class:"form-check-input",type:"checkbox",id:"date",name:"date"},eS={class:"form-check"},tS={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},oS={class:"paper-settings-section"},nS={class:"form-grid-2"},sS={class:"form-group"},rS={class:"form-control",id:"expiration",name:"expiration"},iS={class:"form-group"},aS=["min","max"],lS={class:"invalid-feedback"},dS={class:"invalid-feedback"},uS={class:"paper-settings-section"},cS={class:"form-group"},pS={style:{position:"relative"}},fS={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},mS={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},hS=["onClick"],vS=["src"],yS=["textContent"],gS=["textContent"],bS={class:"coauthor-list"},wS={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},kS=["src"],ES=["textContent","href"],CS=["onClick"],_S={class:"form-text text-muted"},SS=["textContent"],NS={key:1,class:"draft-status",role:"status"},DS={key:2,class:"draft-status"},RS={key:3,class:"anonymize-review-note"},TS={class:"anonymize-submit-bar"},AS=["disabled"],OS=["disabled"],IS=["disabled"],PS=["disabled"],VS=["disabled"],qS=["disabled"],MS=["role","aria-labelledby"],$S={class:"anonymize-preview-head"},LS={class:"anonymize-preview-sub"},US={key:0,class:"anonymize-preview-status",role:"status"},FS={key:1,class:"anonymize-preview-status",role:"status"},zS={key:2,class:"anonymize-preview-status",role:"alert"},HS={key:3,class:"anonymize-preview-status"},BS=["innerHTML"],jS=["role","aria-labelledby"],GS={class:"anonymize-preview-head"},WS={class:"anonymize-preview-sub"},KS={key:0,class:"anonymize-preview-status",role:"status"},YS={key:1,class:"anonymize-preview-status",role:"status"},JS={key:2,class:"anonymize-preview-status",role:"alert"},QS={key:3,class:"anonymize-preview-body"},XS={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},ZS={class:"pr-title mb-1"},xS={key:0},eN=["textContent"],tN={key:0},oN={key:1},nN={key:2},sN={class:"pr-comments mt-3"},rN={class:"pr-comment"},iN={class:"pr-comment-head"},aN=["textContent"],lN={key:0,class:"pr-comment-date"},dN={key:3},uN={class:"pr-comments"},cN={class:"pr-comment"},pN={class:"pr-comment-head"},fN={key:0,class:"pr-comment-author"},mN=["textContent"],hN=["textContent"],vN={key:0,class:"pr-comment-body"},yN=["role","aria-labelledby"],gN={class:"anonymize-preview-head"},bN={class:"anonymize-preview-sub"},wN={key:0,class:"anonymize-preview-status",role:"status"},kN={key:1,class:"anonymize-preview-status",role:"status"},EN={key:2,class:"anonymize-preview-status",role:"alert"},CN={key:3,class:"anonymize-preview-body"},_N={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},SN={class:"pr-title mb-1"},NN={key:0},DN=["textContent"],RN={key:0},TN={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},AN={key:2,class:"paper-tabs",role:"tablist"},ON=["aria-selected","tabindex"],IN=["aria-selected","tabindex"],PN=["textContent"],VN={key:3,class:"anonymize-preview-status"},qN={class:"paper-tab-content"},MN={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},$N=["innerHTML"],LN={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},UN={class:"pr-comments"},FN={class:"pr-comment"},zN={class:"pr-comment-head"},HN={key:0,class:"pr-comment-author"},BN=["textContent"],jN=["textContent"],GN={key:0,class:"pr-comment-body"};function ql(e,t){let n=Ge("gist-file"),r=Ge("markdown"),s=ge("field"),i=ge("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",TC,[o("div",AC,[t[38]||(t[38]=o("div",{class:"paper-crumbs"},[b("My work \xA0/\xA0 "),o("span",{class:"here"},"New anonymization")],-1)),t[39]||(t[39]=o("h1",{class:"paper-page-title"},[b("New "),o("em",null,"anonymization")],-1)),t[40]||(t[40]=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",OC,[o("div",IC,[t[34]||(t[34]=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",PC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",VC,[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[33]||(t[33]=[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,qC),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,MC)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",$C,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",LC,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",UC,[t[35]||(t[35]=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",FC,c(e.sourceUrlError),1)):p("v-if",!0),t[41]||(t[41]=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?(l(),d("aside",zC,[o("div",HC,[o("div",BC,[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[36]||(t[36]=[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",jC,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),o("div",GC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",WC,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):p("v-if",!0),t[37]||(t[37]=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",KC,[o("header",YC,[o("div",JC,[o("div",QC,[t[42]||(t[42]=o("a",{href:"/dashboard"},"My work",-1)),t[43]||(t[43]=b(" \xA0/\xA0 ",-1)),o("span",XC,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),o("div",ZC,[o("h1",xC,[e.isUpdate?p("v-if",!0):(l(),d("span",e2,[...t[44]||(t[44]=[b("New ",-1),o("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",t2,[...t[45]||(t[45]=[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",o2,[t[46]||(t[46]=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",n2,[t[47]||(t[47]=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[48]||(t[48]=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",s2,"GitHub OAuth is currently unavailable. Please try again later."))])):p("v-if",!0),o("nav",r2,[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,i2),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,a2)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",l2,c(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):p("v-if",!0),o("div",d2,[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",c2,[o("section",p2,[t[60]||(t[60]=o("div",{class:"paper-section-eyebrow"},"Source",-1)),o("div",f2,[o("div",m2,[t[50]||(t[50]=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",h2,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",v2,[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[49]||(t[49]=[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,y2),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,g2)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",b2,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,w2),[[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",k2," Please provide a valid GitHub URL. ",512),[[K,e.anonymize?.sourceUrl?.errors?.github]]),D(o("div",E2," Not accessible. The organization may restrict access. ",512),[[K,e.anonymize?.sourceUrl?.errors?.access]]),D(o("div",C2," Does not exist or is not accessible. ",512),[[K,e.anonymize?.sourceUrl?.errors?.missing]]),D(o("div",_2," Already anonymized. ",512),[[K,e.anonymize?.sourceUrl?.errors?.used]])]),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",S2,[o("div",N2,[o("div",D2,[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[51]||(t[51]=[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",R2,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),o("div",T2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",A2,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):p("v-if",!0),t[52]||(t[52]=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.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",O2,[t[53]||(t[53]=o("p",null,"If this repository became private or its App installation changed, repair its access here. This keeps the same anonymous URL and published commit.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[13]||(t[13]=a=>e.repairGitHubAccess())},"Repair GitHub access",8,I2),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[14]||(t[14]=a=>e.grantGitHubAccess())},"Manage access"),e.accessRepairMessage?(l(),d("p",P2,c(e.accessRepairMessage),1)):p("v-if",!0)])):p("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",V2,[t[54]||(t[54]=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[15]||(t[15]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",q2,"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",M2,[o("div",$2,[t[56]||(t[56]=o("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),o("div",L2,[D((l(),d("select",U2,[(l(!0),d(Q,null,re(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,F2))),256))])),[[s,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),o("div",z2,[o("button",{class:"btn btn-icon",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[16]||(t[16]=a=>e.getBranches(!0)),"aria-label":"Refresh"},[...t[55]||(t[55]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])])]),o("div",H2,[t[57]||(t[57]=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,B2),[[s,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),D(o("div",j2," The commit SHA is not valid. ",512),[[K,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),D(o("div",G2," 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",W2,[D(o("input",K2,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[58]||(t[58]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[59]||(t[59]=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",Y2,[t[71]||(t[71]=o("div",{class:"paper-section-eyebrow"},"Identity",-1)),D(o("div",J2,[t[63]||(t[63]=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,Q2),[[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",X2,[t[61]||(t[61]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[62]||(t[62]=b(".",-1))]),D(o("div",Z2,"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",x2,[t[66]||(t[66]=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,e_),[[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",t_,[t[64]||(t[64]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[65]||(t[65]=b(".",-1))]),D(o("div",o_,"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",n_,[t[69]||(t[69]=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,s_),[[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",r_,[t[67]||(t[67]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[68]||(t[68]=b(".",-1))]),D(o("div",i_,"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",a_,[t[70]||(t[70]=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",l_,[o("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,d_),b(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[K,e.conference_data]]),D(o("div",u_,"The conference is not activated.",512),[[K,e.anonymize?.conference?.errors?.activated]]),D(o("small",c_,"Link to a conference to apply its shared defaults.",512),[[K,!e.conference_data]])])],512),[[K,e.detectedType]]),D(o("section",p_,[t[79]||(t[79]=o("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),o("div",f_,[t[78]||(t[78]=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",m_,[t[72]||(t[72]=b("One term per line (regex allowed). Replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[73]||(t[73]=b(", or use ",-1)),t[74]||(t[74]=o("code",null,"term=>replacement",-1)),t[75]||(t[75]=b(" to pick your own (e.g. ",-1)),t[76]||(t[76]=o("code",null,"Anonymous=>ABC",-1)),t[77]||(t[77]=b(").",-1))]),D(o("div",h_,"Regex characters detected. Escape them if unintentional.",512),[[K,e.termsRegexWarning]]),D(o("div",v_,"Terms are in an invalid format.",512),[[K,e.anonymize?.terms?.errors?.format]])])],512),[[K,e.detectedType]]),D(o("section",y_,[t[100]||(t[100]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),D(o("div",null,[o("div",g_,[D(o("input",b_,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[80]||(t[80]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),o("div",w_,[D(o("input",k_,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[81]||(t[81]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[82]||(t[82]=o("small",{class:"form-text text-muted"},"Images are served unchanged and may contain names or affiliations.",-1))]),o("div",E_,[D(o("input",C_,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[83]||(t[83]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[84]||(t[84]=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",__,[D(o("input",S_,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[85]||(t[85]=o("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),o("div",N_,[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,D_),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[86]||(t[86]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?p("v-if",!0):(l(),d("small",R_,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",T_,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",A_,[D(o("input",O_,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[87]||(t[87]=o("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),o("div",I_,[D(o("input",P_,null,512),[[s,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[88]||(t[88]=o("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),o("div",V_,[D(o("input",q_,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[89]||(t[89]=o("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),o("div",M_,[D(o("input",$_,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[90]||(t[90]=o("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),o("div",L_,[D(o("input",U_,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[91]||(t[91]=o("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),o("div",F_,[D(o("input",z_,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[92]||(t[92]=o("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[K,e.detectedType==="gist"]]),D(o("div",null,[o("div",H_,[D(o("input",B_,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[93]||(t[93]=o("label",{class:"form-check-label",for:"title"},"PR title",-1))]),o("div",j_,[D(o("input",G_,null,512),[[s,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[94]||(t[94]=o("label",{class:"form-check-label",for:"body"},"PR body",-1))]),o("div",W_,[D(o("input",K_,null,512),[[s,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[95]||(t[95]=o("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),o("div",Y_,[D(o("input",J_,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[96]||(t[96]=o("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),o("div",Q_,[D(o("input",X_,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[97]||(t[97]=o("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),o("div",Z_,[D(o("input",x_,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[98]||(t[98]=o("label",{class:"form-check-label",for:"date"},"Dates",-1))]),o("div",eS,[D(o("input",tS,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[99]||(t[99]=o("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[K,e.detectedType==="pr"]])],512),[[K,e.detectedType]]),D(o("section",oS,[t[104]||(t[104]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",nS,[o("div",sS,[t[102]||(t[102]=o("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),D((l(),d("select",rS,[...t[101]||(t[101]=[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",iS,[t[103]||(t[103]=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,aS),[[s,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),D(o("div",lS,"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",dS,"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",uS,[t[108]||(t[108]=o("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[109]||(t[109]=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",cS,[t[105]||(t[105]=o("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),o("div",pS,[D(o("input",fS,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",mS,[(l(!0),d(Q,null,re(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:le(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,vS),o("span",{textContent:c(a?.username)},null,8,yS)],8,hS))),256))],512),[[K,e.coauthorResults?.length>0]])]),D(o("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,gS),[[K,e.coauthorError]])],512),[[K,e.role==="owner"||e.role==="admin"]]),o("div",bS,[(l(!0),d(Q,null,re(e.coauthors,(a,u)=>(l(),d("div",wS,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,kS)):p("v-if",!0),o("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,ES),t[107]||(t[107]=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[106]||(t[106]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,CS),[[K,e.role==="owner"||e.role==="admin"]])]))),256)),D(o("div",_S," 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,SS)):p("v-if",!0),e.draftRestored?(l(),d("div",NS,[t[110]||(t[110]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[17]||(t[17]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",DS,[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[18]||(t[18]=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",RS,"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[19]||(t[19]=a=>e.selectMobilePane("preview"))},[...t[111]||(t[111]=[b("Review preview ",-1),o("span",{"aria-hidden":"true"},"\u2192",-1)])]),D(o("div",TS,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[20]||(t[20]=le(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[112]||(t[112]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Repository ",-1)])],8,AS)):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[21]||(t[21]=le(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[113]||(t[113]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Repository ",-1)])],8,OS)):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[22]||(t[22]=le(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[114]||(t[114]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Pull Request ",-1)])],8,IS)):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[23]||(t[23]=le(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[115]||(t[115]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Pull Request ",-1)])],8,PS)):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[24]||(t[24]=le(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[116]||(t[116]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Gist ",-1)])],8,VS)):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[25]||(t[25]=le(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[117]||(t[117]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Gist ",-1)])],8,qS)):p("v-if",!0)],512),[[K,e.detectedType]])])),[[i,e.viewState]])],8,u2),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",$S,[t[118]||(t[118]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",LS,c(e.previewStatus==="ready"?"README with redactions applied":"README preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",US,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",FS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",zS,[t[119]||(t[119]=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.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",HS,"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,BS)):p("v-if",!0)],8,MS)):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",GS,[t[120]||(t[120]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",WS,c(e.previewStatus==="ready"?"Gist with redactions applied":"Gist preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",KS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",YS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",JS,[t[121]||(t[121]=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[27]||(t[27]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",QS,[o("div",XS,[o("h2",ZS,[e.options?.title?(l(),d("span",xS,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,eN)):p("v-if",!0)]),e.options?.origin?(l(),d("small",tN,"Gist ID: "+c(e.details?.source?.gistId),1)):p("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",oN,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):p("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",nN,[o("ul",sN,[(l(!0),d(Q,null,re(e.previewGistFiles,(a,u)=>(l(),d("li",rN,[o("div",iN,[o("strong",{textContent:c(a?.filename)},null,8,aN),a?.language?(l(),d("span",lN,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",dN,[t[124]||(t[124]=o("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),o("ul",uN,[(l(!0),d(Q,null,re(e.details?.gist?.comments,(a,u)=>(l(),d("li",cN,[o("div",pN,[e.options?.username?(l(),d("span",fN,[t[122]||(t[122]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[123]||(t[123]=b(" @",-1)),o("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,mN)])):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,hN)):p("v-if",!0)]),e.options?.body?(l(),d("div",vN,[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,jS)):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",gN,[t[125]||(t[125]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",bN,c(e.previewStatus==="ready"?"Pull request with redactions applied":"Pull request preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",wN,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",kN,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",EN,[t[126]||(t[126]=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[28]||(t[28]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",CN,[o("div",_N,[o("h2",SN,[e.options?.title?(l(),d("span",NN,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,DN)):p("v-if",!0)]),e.options?.origin?(l(),d("small",RN,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",TN,[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",AN,[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[29]||(t[29]=a=>e.previewTabKeydown(a)),onClick:t[30]||(t[30]=a=>e.prTabState.active="diff")},[...t[127]||(t[127]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,ON)):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[31]||(t[31]=a=>e.previewTabKeydown(a)),onClick:t[32]||(t[32]=a=>e.prTabState.active="comments")},[t[128]||(t[128]=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,PN)],42,IN)):p("v-if",!0)])):p("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",VN,"Diff and comments are hidden by your display settings.")):p("v-if",!0),o("div",qN,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",MN,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,$N)])):p("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",LN,[o("ul",UN,[(l(!0),d(Q,null,re(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",FN,[o("div",zN,[e.options?.username?(l(),d("span",HN,[t[129]||(t[129]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[130]||(t[130]=b(" @",-1)),o("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,BN)])):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,jN)):p("v-if",!0)]),e.options?.body?(l(),d("div",GN,[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,yN)):p("v-if",!0)])],512),[[K,e.workspaceOpen||e.isUpdate]])],2)}var WN={class:"container-fluid h-100 anonymize-page"},KN={class:"row h-100 flex-column flex-md-row"},YN={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},JN={class:"form-group"},QN={class:"form-group"},XN={class:"form-check"},ZN={class:"form-check-input",type:"checkbox",id:"update",name:"update"},xN={class:"form-group"},eD={class:"form-text text-muted"},tD=["href"],oD={class:"invalid-feedback"},nD={class:"form-text text-muted"},sD={class:"form-group"},rD={id:"idHelp",class:"form-text text-muted"},iD={class:"invalid-feedback"},aD={class:"form-group"},lD={class:"invalid-feedback"},dD={class:"form-group"},uD={class:"form-control",id:"expiration",name:"expiration"},cD={class:"form-group",id:"expiration-date-form"},pD={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},fD={class:"accordion mb-3",id:"options"},mD={class:"card"},hD={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},vD={class:"card-body"},yD={class:"form-group mb-0"},gD={class:"form-check"},bD={class:"form-check-input",type:"checkbox",id:"link",name:"link"},wD={class:"form-check"},kD={class:"form-check-input",type:"checkbox",id:"image",name:"image"},ED={class:"form-check"},CD={class:"form-check-input",type:"checkbox",id:"date",name:"date"},_D={class:"form-check"},SD={class:"form-check-input",type:"checkbox",id:"username",name:"username"},ND={class:"form-check"},DD={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},RD={class:"form-check"},TD={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},AD={class:"form-check"},OD={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},ID={class:"form-check"},PD={class:"form-check-input",type:"checkbox",id:"title",name:"title"},VD={class:"form-check"},qD={class:"form-check-input",type:"checkbox",id:"body",name:"body"},MD=["textContent"],$D={class:"anonymize-submit-bar"},LD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},UD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},FD={class:"pr-title mb-1"},zD={key:0},HD=["textContent"],BD={key:0},jD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},GD={class:"nav nav-tabs",id:"myTab",role:"tablist"},WD={key:0,class:"nav-item",role:"presentation"},KD={key:1,class:"nav-item",role:"presentation"},YD=["textContent"],JD={class:"tab-content",id:"pills-tabContent"},QD={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},XD={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},ZD={style:{"overflow-x":"auto"}},xD=["innerHTML"],eR={key:0,class:"pr-comments list-group"},tR={class:"pr-comment list-group-item"},oR={class:"d-flex w-100 justify-content-between flex-wrap"},nR={key:0,class:"mb-1"},sR=["textContent"],rR={class:"mb-1"};function Ml(e,t){let n=Ge("markdown"),r=ge("field"),s=ge("form");return l(),d("div",WN,[o("div",KN,[o("div",YN,[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]=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",JN,[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",QN,[o("div",XN,[D(o("input",ZN,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",xN,[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",eD,[o("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,tD),b(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[K,e.conference_data]]),D(o("div",oD," The conference is not activated. ",512),[[K,e.anonymize?.conference?.errors?.activated]]),D(o("small",nD," 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",sD,[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",rD,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),D(o("div",iD," 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",aD,[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",lD," Terms are in an invalid format ",512),[[K,e.anonymize?.terms?.errors?.format]])]),o("div",dD,[t[10]||(t[10]=o("label",{for:"expiration"},"Expiration strategy",-1)),D((l(),d("select",uD,[...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",cD,[t[12]||(t[12]=o("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),D(o("input",pD,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",fD,[o("div",mD,[t[25]||(t[25]=ce('',1)),o("div",hD,[o("div",vD,[o("div",yD,[o("div",gD,[D(o("input",bD,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",wD,[D(o("input",kD,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",ED,[D(o("input",CD,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",_D,[D(o("input",SD,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",ND,[D(o("input",DD,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",RD,[D(o("input",TD,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",AD,[D(o("input",OD,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",ID,[D(o("input",PD,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",VD,[D(o("input",qD,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,MD)):p("v-if",!0),D(o("div",$D,[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]=le(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]=le(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",LD,[o("div",UD,[o("h2",FD,[e.options?.title?(l(),d("span",zD,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,HD)):p("v-if",!0)]),e.options?.origin?(l(),d("small",BD,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",jD,[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",GD,[e.options?.diff?(l(),d("li",WD,[...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",KD,[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,YD)],2)])):p("v-if",!0)]),o("div",JD,[o("div",QD,[e.options?.diff?(l(),d("div",XD,[o("pre",ZD,[o("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,xD)])])):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",eR,[(l(!0),d(Q,null,re(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",tR,[o("div",oR,[e.options?.username?(l(),d("h5",nR," @"+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,sR)):p("v-if",!0)]),o("p",rR,[e.options?.body?(l(),Ut(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 iR={class:"container paper-page claim-page"},aR={class:"paper-settings-main claim-form"},lR={class:"form-group"},dR={class:"invalid-feedback"},uR={class:"form-group"};function $l(e,t){let n=ge("field"),r=ge("form");return l(),d("div",iR,[t[6]||(t[6]=ce('Claim an anonymization
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),o("div",aR,[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]=le(s=>e.submitForm(s,()=>{e.claim()}),["prevent"]))},[o("div",lR,[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",dR," 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",uR,[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 cR={class:"container page paper-page conference-page"},pR={class:"paper-crumbs"},fR={class:"here"},mR={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},hR=["textContent"],vR={key:0,class:"paper-page-lede"},yR=["textContent","href"],gR={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},bR=["textContent"],wR=["href"],kR={class:"paper-meta-rule"},ER=["textContent"],CR=["textContent"],_R={key:0},SR={class:"search-wrap"},NR={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},DR={class:"dashboard-filter-controls"},RR={class:"dropdown"},TR={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},AR={class:"filter-btn-value"},OR={class:"dropdown-menu","aria-labelledby":"dropdownSort"},IR={class:"form-check dropdown-item"},PR={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},VR={class:"form-check dropdown-item"},qR={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},MR={class:"form-check dropdown-item"},$R={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},LR={class:"form-check dropdown-item"},UR={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},FR={class:"dropdown"},zR={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},HR={key:0,class:"filter-btn-value"},BR={key:1,class:"filter-btn-value"},jR={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},GR={class:"form-check dropdown-item"},WR=["id"],KR=["for"],YR={class:"dashboard-meta"},JR={class:"dashboard-count"},QR={key:0},XR={key:0},ZR={key:1},xR={key:1},eT={key:0,class:"filter-chip"},tT=["onClick","aria-label"],oT={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},nT={class:"cell-anon",role:"cell"},sT={class:"anon-text"},rT=["textContent","href"],iT={class:"anon-sub"},aT={class:"anon-source"},lT=["textContent","href"],dT={key:0},uT=["textContent","href"],cT={key:1},pT=["href"],fT={class:"cell-status",role:"cell"},mT={class:"status-line"},hT=["textContent"],vT={key:0,class:"status-sub"},yT={class:"cell-views num",role:"cell"},gT=["textContent"],bT={class:"cell-expires",role:"cell"},wT={key:0,class:"expires-never"},kT=["textContent"],ET={key:2,class:"expires-past"},CT={key:0},_T={key:3,class:"empty-dash","aria-label":"Not applicable"},ST={class:"cell-actions",role:"cell"},NT={class:"dropdown"},DT=["aria-label"],RT={class:"dropdown-menu dropdown-menu-right"},TT=["href"],AT=["href"],OT={key:0,class:"paper-table-empty"},IT={key:0},PT={key:1},VT={key:2,class:"paper-table-empty-actions"};function Ll(e,t){let n=ge("field"),r=ge("form");return l(),d("div",cR,[o("div",null,[o("div",pR,[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",fR,c(e.conference?.conferenceID),1)]),o("div",mR,[o("div",null,[o("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,hR),e.conference?.url?(l(),d("p",vR,[o("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,yR)])):p("v-if",!0)]),o("div",gR,[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,bR)],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,wR)])]),o("div",kR,[o("span",null,[t[7]||(t[7]=b("ID ",-1)),o("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,ER)]),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,CR)]),e.conference?.price?(l(),d("span",_R,[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]=le(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[o("div",SR,[D(o("input",NR,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",DR,[o("div",RR,[o("button",TR,[t[12]||(t[12]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",AR,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),o("div",OR,[t[17]||(t[17]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",IR,[D(o("input",PR,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",VR,[D(o("input",qR,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",MR,[D(o("input",$R,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",LR,[D(o("input",UR,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",FR,[o("button",zR,[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",HR,"All")):p("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?p("v-if",!0):(l(),d("span",BR,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",jR,[t[19]||(t[19]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(Q,null,re(e.statusLabels,(s,i,a)=>(l(),d("div",GR,[D(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,WR),[[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,KR)]))),256))])])])],32)),[[r,e.viewState]]),o("div",YR,[o("span",JR,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",QR,[b(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",XR,"y")):p("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",ZR,"ies")):p("v-if",!0)])):p("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",xR,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(Q,null,re(e.filters?.status,(s,i,a)=>(l(),d(Q,null,[s===!1?(l(),d("span",eT,[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,tT)])):p("v-if",!0)],64))),256))]),o("div",oT,[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(Q,null,re(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",nT,[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",sT,[o("a",{class:"repo-name",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId+"/")},null,8,rT),o("div",iT,[o("span",aT,[o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,lT),s?.options?.update&&s?.source?.branch?(l(),d("span",dT,[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,uT)])):p("v-if",!0),s?.source?.commit?(l(),d("span",cT,[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,pT)])):p("v-if",!0)])])])]),o("div",fT,[o("div",mT,[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,hT)]),s?.anonymizeDate?(l(),d("div",vT,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)):p("v-if",!0)]),o("div",yT,[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,gT)]),o("div",bT,[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",wT,"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,kT)):p("v-if",!0),s?.status=="expired"?(l(),d("span",ET,[t[25]||(t[25]=b("Expired",-1)),s?.options?.expirationDate?(l(),d("span",CT,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",_T,"\u2014")):p("v-if",!0)]),o("div",ST,[o("div",NT,[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,DT),o("div",RT,[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,TT),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,AT)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",OT,[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",IT,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",PT,"Nothing matches the current filters.")):p("v-if",!0),e.conference?.repositories?.length?(l(),d("div",VT,[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 qT={class:"container page paper-page conferences-page"},MT={class:"row"},$T={class:"w-100"},LT={class:"search-wrap"},UT={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},FT={class:"dashboard-filter-controls"},zT={class:"dropdown"},HT={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},BT={class:"filter-btn-value"},jT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},GT={class:"form-check dropdown-item"},WT={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},KT={class:"form-check dropdown-item"},YT={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},JT={class:"form-check dropdown-item"},QT={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},XT={class:"dropdown"},ZT={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},xT={key:0,class:"filter-btn-value"},eA={key:1,class:"filter-btn-value"},tA={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},oA={class:"form-check dropdown-item"},nA=["id"],sA=["for"],rA={class:"dashboard-meta"},iA={class:"dashboard-count"},aA={key:0},lA={key:0},dA={key:1},uA={key:0,class:"filter-chip"},cA=["onClick","aria-label"],pA={key:0,class:"conference-feedback",role:"alert"},fA={key:1,class:"conference-feedback",role:"status"},mA={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},hA={class:"cell-anon",role:"cell"},vA={class:"anon-text"},yA=["textContent","href"],gA={class:"anon-sub"},bA={class:"anon-source"},wA=["textContent"],kA={key:0},EA=["textContent","href"],CA={class:"cell-status",role:"cell"},_A={class:"status-line"},SA=["textContent"],NA={class:"cell-views num",role:"cell"},DA=["textContent"],RA={class:"cell-expires",role:"cell"},TA={key:0},AA={key:1,class:"empty-dash","aria-label":"No review window"},OA={class:"cell-actions",role:"cell"},IA={class:"dropdown"},PA=["disabled","aria-label"],VA={class:"dropdown-menu dropdown-menu-right"},qA=["href"],MA=["href"],$A={key:0},LA=["onClick"],UA={key:0,class:"paper-table-empty"},FA={key:0},zA={key:1},HA={class:"paper-table-empty-actions"},BA={key:1,href:"/conference/new",class:"btn btn-ink"};function Ul(e,t){let n=ge("field"),r=ge("form");return l(),d("div",qT,[o("div",MT,[o("div",$T,[t[10]||(t[10]=ce('Your conferences
Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.
New conference ',2)),D((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=le(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[o("div",LT,[D(o("input",UT,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",FT,[o("div",zT,[o("button",HT,[t[3]||(t[3]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",BT,c({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),o("div",jT,[t[7]||(t[7]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",GT,[D(o("input",WT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),o("div",KT,[D(o("input",YT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[5]||(t[5]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",JT,[D(o("input",QT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),o("div",XT,[o("button",ZT,[t[8]||(t[8]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",xT,"All")):p("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?p("v-if",!0):(l(),d("span",eA,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",tA,[t[9]||(t[9]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(Q,null,re(e.statusLabels,(s,i,a)=>(l(),d("div",oA,[D(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,nA),[[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,sA)]))),256))])])])],32)),[[r,e.viewState]]),o("div",rA,[o("span",iA,[e.filteredConferences?.length===e.conferences?.length?(l(),d("span",aA,[b(c(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(l(),d("span",lA,"s")):p("v-if",!0)])):p("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(l(),d("span",dA,c(e.fmt?.number(e.filteredConferences?.length))+" of "+c(e.fmt?.number(e.conferences?.length))+" shown",1)):p("v-if",!0)]),(l(!0),d(Q,null,re(e.filters?.status,(s,i,a)=>(l(),d(Q,null,[s===!1?(l(),d("span",uA,[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,cA)])):p("v-if",!0)],64))),256))])]),e.error?(l(),d("div",pA,[o("span",null,c(e.error),1),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=s=>e.loadConferences())},"Retry")])):p("v-if",!0),e.loading?(l(),d("div",fA,"Loading conferences\u2026")):p("v-if",!0),o("div",mA,[t[24]||(t[24]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Conference"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Repos"),o("div",{role:"columnheader"},"Review window"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(Q,null,re(e.filteredConferences,(s,i)=>(l(),d("div",{class:A(["paper-table-row row-clickable",{"repo-inactive":s?.status=="expired"||s?.status=="removed"}]),role:"row",key:s?.conferenceID},[o("div",hA,[t[13]||(t[13]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[o("use",{href:"#project-icon-conference"})],-1)),o("div",vA,[o("a",{class:"repo-name",textContent:c(s?.name),href:e.safeUrl("/conference/"+s?.conferenceID)},null,8,yA),o("div",gA,[o("span",bA,[t[12]||(t[12]=b("ID ",-1)),o("span",{class:"commit-hash",textContent:c(s?.conferenceID)},null,8,wA),s?.url?(l(),d("span",kA,[t[11]||(t[11]=b(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(e.fmt?.limitTo(s?.url,60)),href:e.safeUrl(s?.url)},null,8,EA)])):p("v-if",!0)])])])]),o("div",CA,[o("div",_A,[o("span",{class:A(["status-dot","status-"+s?.status]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(s?.status))},null,8,SA)])]),o("div",NA,[t[14]||(t[14]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),t[15]||(t[15]=b()),o("span",{textContent:c(e.fmt?.number(s?.nbRepositories||0))},null,8,DA)]),o("div",RA,[t[16]||(t[16]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),s?.startDate?(l(),d("span",TA,c(e.fmt?.date(s?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(s?.endDate,"mediumDate")),1)):p("v-if",!0),s?.startDate?p("v-if",!0):(l(),d("span",AA,"\u2014"))]),o("div",OA,[o("div",IA,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:s?.removing,"aria-label":"Actions for "+s?.name},[...t[17]||(t[17]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,PA),o("div",VA,[o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/")},[...t[18]||(t[18]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View ",-1)])],8,qA),o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/edit")},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,MA),s?.status!="removed"?(l(),d("div",$A,[t[21]||(t[21]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeConference(s)},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove ",-1)])],8,LA)])):p("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(l(),d("div",UA,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conferences?.length==0?(l(),d("span",FA,"You have not created a conference yet.")):p("v-if",!0),e.conferences?.length>0?(l(),d("span",zA,"Nothing matches the current filters.")):p("v-if",!0),o("div",HA,[e.conferences?.length>0?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=s=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):p("v-if",!0),e.conferences?.length==0?(l(),d("a",BA,[...t[22]||(t[22]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),b(" New conference",-1)])])):p("v-if",!0)])])):p("v-if",!0)])])])}var jA={class:"container page dashboard-page paper-page"},GA={class:"row"},WA={class:"w-100"},KA={class:"dashboard-heading"},YA=["open"],JA=["aria-expanded"],QA=["stroke-dasharray"],XA={key:1,d:"M7 12c0-4 4-4 5 0s5 4 5 0-4-4-5 0-5 4-5 0",class:"quota-ring-unlimited"},ZA={key:0,class:"quota-summary-value"},xA={key:0},eO={class:"quota-panel",id:"dashboard-usage"},tO={class:"quota-panel-heading"},oO={key:1,class:"quota-loading",role:"status"},nO={class:"search-wrap"},sO={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects, IDs, or conferences\u2026",autocomplete:"off"},rO=["aria-expanded"],iO={class:"btn-group",role:"group","aria-label":"Type"},aO=["aria-pressed"],lO=["aria-pressed"],dO=["aria-pressed"],uO=["aria-pressed"],cO={class:"dropdown"},pO={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},fO={class:"filter-btn-value"},mO={class:"sr-only"},hO={class:"dropdown-menu","aria-labelledby":"dropdownSort"},vO={class:"form-check dropdown-item"},yO=["onClick","checked","id"],gO=["for"],bO={class:"dropdown"},wO={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},kO={key:0,class:"filter-btn-value"},EO={key:1,class:"filter-btn-value"},CO={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},_O={class:"form-check dropdown-item"},SO=["id"],NO=["for"],DO={key:0,class:"dashboard-meta"},RO={class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},TO=["aria-pressed"],AO=["aria-pressed","aria-label"],OO={class:"dashboard-count"},IO={key:0},PO={key:0},VO={key:1},qO={class:"dashboard-active-filters"},MO=["onClick","aria-label","title"],$O=["aria-busy"],LO={class:"paper-table-head",role:"row"},UO=["aria-sort"],FO=["aria-sort"],zO=["aria-sort"],HO=["aria-sort"],BO={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},jO=["onClick"],GO={class:"cell-anon",role:"cell"},WO=["aria-label","title"],KO={class:"project-type-svg","aria-hidden":"true"},YO=["href"],JO={class:"anon-text"},QO={class:"anon-title"},XO=["title","textContent","href"],ZO=["textContent"],xO={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},eI={class:"anon-sub"},tI=["title"],oI=["title"],nI=["title"],sI=["textContent"],rI={class:"dashboard-row-meta",role:"presentation"},iI={class:"cell-status",role:"cell"},aI={class:"status-line"},lI=["textContent"],dI=["textContent","title"],uI=["title"],cI=["href"],pI=["onClick"],fI={key:4,class:"status-sub status-sub-date"},mI=["aria-label"],hI={class:"cell-expires",role:"cell"},vI={key:0,class:"expires-never"},yI=["textContent"],gI={key:2,class:"expires-past"},bI={key:3,class:"expires-past"},wI={key:4,class:"empty-dash","aria-label":"Not applicable"},kI={class:"cell-actions",role:"cell"},EI=["onClick","disabled","title","aria-label"],CI=["onClick","data-project-actions","aria-controls","aria-expanded"],_I={key:2,class:"dropdown"},SI=["data-project-actions","aria-label"],NI={class:"dropdown-menu dropdown-menu-right"},DI=["onClick","aria-controls","aria-expanded"],RI=["href"],TI=["href"],AI=["onClick","disabled"],OI=["href"],II=["onClick"],PI=["onClick"],VI=["onClick"],qI={key:5},MI=["onClick"],$I={key:1,class:"project-details-row",role:"row"},LI=["id","onKeydown"],UI={class:"project-details-heading"},FI=["onClick"],zI={class:"project-details-list"},HI={key:0},BI={key:1},jI={key:0},GI={key:2},WI={key:0,class:"project-progress-help"},KI=["href"],YI=["onSubmit"],JI=["for"],QI=["id"],XI={class:"project-name-controls"},ZI=["id","aria-describedby","disabled"],xI=["disabled"],e4={key:0,class:"project-name-error",role:"alert"},t4={key:1,role:"status"},o4={key:0,class:"paper-table-empty"},n4={key:0},s4={key:1},r4={class:"paper-table-empty-actions"},i4={key:1,href:"/anonymize",class:"btn btn-ink"},a4={key:0,class:"dashboard-pagination"},l4={key:0,role:"alert"},d4=["disabled"];function Fl(e,t){let n=Ge("quota-usage"),r=ge("field"),s=ge("form");return l(),d("div",jA,[o("div",GA,[o("div",WA,[o("div",KA,[o("div",null,[t[27]||(t[27]=o("h1",{class:"paper-page-title"},"Projects",-1)),t[28]||(t[28]=o("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1)),o("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=i=>e.quotaExpanded=i.target.open),onKeydown:t[2]||(t[2]=To(le(i=>e.closeQuota(),["prevent","stop"]),["esc"]))},[o("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded},[(l(),d("svg",{class:A(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[21]||(t[21]=o("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(l(),d("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,QA)):p("v-if",!0),e.quota?.repository.unlimited?(l(),d("path",XA)):p("v-if",!0)],2)),t[23]||(t[23]=o("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(l(),d("span",ZA,[b(c(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?p("v-if",!0):(l(),d("span",xA," / "+c(e.fmt.number(e.quota.repository.total)),1)),t[22]||(t[22]=b(" repos",-1))])):p("v-if",!0),t[24]||(t[24]=o("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[o("use",{href:"#project-icon-chevron"})],-1))],8,JA),o("div",eO,[o("div",tO,[t[26]||(t[26]=o("h2",null,"Account usage",-1)),o("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=i=>e.closeQuota())},[...t[25]||(t[25]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(l(),Ut(n,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",oO,"Loading usage\u2026"))])],40,YA)]),t[29]||(t[29]=ce('',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]=le(i=>e.submitForm(i,()=>{i.preventDefault()}),["prevent"]))},[o("div",nO,[D(o("input",sO,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,rO),o("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[o("div",iO,[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,aO),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,lO),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,dO),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,uO)]),o("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[o("div",cO,[o("button",pO,[t[35]||(t[35]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",fO,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",mO,c(e.sortDesc()?"descending":"ascending"),1)]),o("div",hO,[t[36]||(t[36]=o("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(Q,null,re(e.sortFields,(i,a,u)=>(l(),d("div",vO,[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,yO),o("label",{class:"form-check-label",for:"sort-"+u},c(i?.label),9,gO)]))),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",bO,[o("button",wO,[t[38]||(t[38]=o("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?p("v-if",!0):(l(),d("span",kO,"All")),e.hasHiddenStatus()?(l(),d("span",EO,c(e.hiddenStatusCount())+" hidden",1)):p("v-if",!0)]),o("div",CO,[t[39]||(t[39]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(Q,null,re(e.statusKeyLabels,(i,a,u)=>(l(),d("div",_O,[D(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,SO),[[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,NO)]))),256))])])],2)],2)],32)),[[s,e.viewState]]),p(" Result count + active filter chips "),e.loading?p("v-if",!0):(l(),d("div",DO,[o("div",RO,[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,TO),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,AO)]),o("span",OO,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",IO,[b(c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",PO,"s")):p("v-if",!0)])):(l(),d("span",VO,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",qO,[(l(!0),d(Q,null,re(e.filters?.status,(i,a,u)=>(l(),d(Q,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,MO)):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",LO,[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,UO),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,FO),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,zO),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,HO),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(Q,null,re([1,2,3,4],(i,a)=>(l(),d(Q,null,[e.loading?(l(),d("div",BO,[...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(Q,null,re(e.filteredItems,(i,a)=>(l(),d(Q,{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",GO,[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",KO,[o("use",{href:"#project-type-"+i._type},null,8,YO)]))],8,WO),o("div",JO,[o("div",QO,[i?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:i._label,textContent:c(i?._label),href:e.safeUrl(i?._viewUrl)},null,8,XO)):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,ZO)),i?.role==="coauthor"?(l(),d("span",xO,"Co-author")):p("v-if",!0)]),o("div",eI,[i?._id?(l(),d("code",{key:0,class:"anonymous-id",title:i._id},c(i._id),9,tI)):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,oI)):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,sI)],8,nI)):p("v-if",!0)])])]),o("div",rI,[o("div",iI,[o("div",aI,[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,lI)]),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,dI)):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,uI)):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,cI)):p("v-if",!0),i._stale||i._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:le(u=>e.showProjectDetails(i),["stop"])},c(i._broken?"Review details":"Check progress"),9,pI)):p("v-if",!0),i?.status!="error"&&!i?._stale&&i?.anonymizeDate?(l(),d("div",fI," 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,mI),o("div",hI,[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",vI,"Never")):p("v-if",!0),i?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(i?._expiry?.date))},null,8,yI)):p("v-if",!0),i?._expiry?.kind==="expired"&&i?._expiry?.date?(l(),d("span",gI,"Expired "+c(e.fmt?.humanTime(i?._expiry?.date)),1)):p("v-if",!0),i?._expiry?.kind==="expired"&&!i?._expiry?.date?(l(),d("span",bI,"Expired")):p("v-if",!0),i?._expiry?.kind==="none"?(l(),d("span",wI,"\u2014")):p("v-if",!0)])]),o("div",kI,[i._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:le(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,EI)):p("v-if",!0),i._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:le(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,CI)):p("v-if",!0),i?._broken?p("v-if",!0):(l(),d("div",_I,[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,SI),o("div",NI,[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,DI),o("a",{class:"dropdown-item",href:e.safeUrl(i?._viewUrl)}," View ",8,RI),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,TI)):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,AI)):p("v-if",!0),o("a",{class:"dropdown-item",href:e.safeUrl(i?._editUrl)}," Edit ",8,OI),i?.status=="ready"||i?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Force update ",8,II)):p("v-if",!0),i?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Enable ",8,PI)):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,VI)):p("v-if",!0),(i?.status=="ready"||i?.status=="expired"||i?.status=="error")&&i?.role!=="coauthor"?(l(),d("div",qI,[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,MI)])):p("v-if",!0)])]))])],10,jO)),!e.loading&&e.selectedProject===i?(l(),d("div",$I,[o("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(i),tabindex:"-1",onKeydown:To(le(u=>e.closeProjectDetails(i),["stop"]),["esc"])},[o("div",UI,[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,FI)]),o("dl",zI,[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",HI,[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",BI,[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",jI," \xB7 "+c(e.fmt.statusMsg(i.statusMessage)),1)):p("v-if",!0)])]),i.anonymizeDate?(l(),d("div",GI,[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",WI,"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,KI)):p("v-if",!0),i._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:le(u=>e.saveProjectName(i),["prevent"])},[o("label",{for:"project-name-"+i._type+"-"+i._id},"Project name",8,JI),o("p",{id:"project-name-help-"+i._type+"-"+i._id},"Only you see this name. Leave it blank to use the default.",8,QI),o("div",XI,[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,ZI),[[zt,e.projectName]]),o("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,xI)]),e.nameError?(l(),d("p",e4,c(e.nameError),1)):p("v-if",!0),e.nameMessage?(l(),d("p",t4,c(e.nameMessage),1)):p("v-if",!0)],40,YI)):p("v-if",!0)],40,LI)])):p("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",o4,[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",n4,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",s4,"Nothing matches the current filters.")):p("v-if",!0),o("div",r4,[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",i4,[...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,$O)]),e.dashboardCursor||e.dashboardError?(l(),d("div",a4,[e.dashboardError?(l(),d("p",l4,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,d4)):p("v-if",!0)])):p("v-if",!0)])}var u4={class:"explorer-page"},c4=["aria-label"],p4={class:"ui-icon","aria-hidden":"true"},f4=["href"],m4=["textContent"],h4={class:"leftCol-head"},v4={class:"leftCol-search"},y4={class:"tree-search-box"},g4=["href"],b4={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},w4={class:"leftCol-project-header"},k4=["textContent","title"],E4={class:"project-file-count"},C4=["title"],_4={class:"leftCol-body"},S4={key:0,class:"paper-inline-warning",role:"alert"},N4={key:1,class:"paper-inline-warning",role:"alert"},D4={class:"leftCol-foot"},R4=["title"],T4=["title"],A4=["title"],O4={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."},I4={class:"explorer-main"},P4={class:"status-bar"},V4={class:"breadcrumb paths","aria-label":"Path"},q4=["textContent"],M4={class:"status-bar-actions"},$4=["href"],L4={class:"d-none d-md-inline"},U4={class:"ui-icon","aria-hidden":"true"},F4=["href"],z4={class:"d-none d-md-inline"},H4=["href"],B4=["href"],j4=["href"],G4=["href"],W4={class:"explorer-content"};function zl(e,t){let n=Ge("tree"),r=Ge("partial-view"),s=ge("field");return l(),d("div",u4,[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",p4,[o("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,f4)])),o("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,m4)],8,c4),[[K,e.files?.length]]),D(o("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[o("div",h4,[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",v4,[o("div",y4,[(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,g4)],2)),D(o("input",b4,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",w4,[o("span",{class:"project-name",textContent:c(e.repoId),title:e.repoId},null,8,k4),o("span",E4,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,C4)):p("v-if",!0)]),o("div",_4,[e.options?.truncatedFolders?.length>0?(l(),d("div",S4,[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",N4,[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",D4,[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,R4),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,T4)):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,A4)):p("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",O4," 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",I4,[D(o("div",P4,[o("ol",V4,[(l(!0),d(Q,null,re(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,q4))),256))]),o("div",M4,[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,$4)):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",L4,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",U4,[o("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,F4)])),o("span",z4,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,H4),[[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,B4),[[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,j4)):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,G4)):p("v-if",!0)])],512),[[K,e.type!="error"||e.files?.length]]),o("div",W4,[Ce(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var K4={class:"paper-faq"};function Hl(e,t){return l(),d("div",K4,[...t[0]||(t[0]=[ce('Help
Answers to the questions that come up most.
If something's missing, write to us \u2014 report a bug on GitHub.
',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 Y4={class:"pr-page"},J4={class:"container paper-page pr-page-inner"},Q4={class:"pr-header"},X4={class:"pr-title-row"},Z4={class:"paper-page-title pr-title"},x4=["textContent"],e3={key:1,class:"text-muted"},t3=["href"],o3={class:"pr-header-meta"},n3={key:0,class:"pr-meta-item"},s3=["textContent"],r3={key:1,class:"pr-meta-item"},i3=["textContent"],a3={key:2,class:"pr-meta-item"},l3=["textContent"],d3={key:0,class:"paper-tabs",role:"tablist"},u3=["aria-selected","tabindex"],c3=["textContent"],p3=["aria-selected","tabindex"],f3=["textContent"],m3={class:"paper-tab-content"},h3={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},v3={class:"pr-comments"},y3={class:"pr-comment"},g3={class:"pr-comment-head"},b3=["textContent"],w3={key:0,class:"pr-comment-date"},k3={key:0,class:"paper-table-empty"},E3={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},C3={class:"pr-comments"},_3={class:"pr-comment"},S3={class:"pr-comment-head"},N3={key:0,class:"pr-comment-author"},D3=["textContent"],R3=["textContent"],T3={key:0,class:"pr-comment-body"},A3={key:0,class:"paper-table-empty"};function Bl(e,t){let n=Ge("gist-file"),r=Ge("markdown");return l(),d("div",Y4,[o("div",J4,[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",Q4,[o("div",X4,[o("h1",Z4,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,x4)):p("v-if",!0),e.details?.description?p("v-if",!0):(l(),d("span",e3,"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,t3)):p("v-if",!0)]),o("div",o3,[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",n3,[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,s3)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",r3,[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,i3)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",a3,[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,l3)])):p("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",d3,[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,c3)],42,u3)):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,f3)],42,p3)):p("v-if",!0)])):p("v-if",!0),o("div",m3,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",h3,[o("ul",v3,[(l(!0),d(Q,null,re(e.details?.files,(s,i)=>(l(),d("li",y3,[o("div",g3,[o("strong",{textContent:c(s?.filename)},null,8,b3),s?.language?(l(),d("span",w3,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",k3,[...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",E3,[o("ul",C3,[(l(!0),d(Q,null,re(e.details?.comments,(s,i)=>(l(),d("li",_3,[o("div",S3,[s?.author?(l(),d("span",N3,[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,D3)])):p("v-if",!0),s?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(s?.updatedDate))},null,8,R3)):p("v-if",!0)]),s?.body?(l(),d("div",T3,[Ce(r,{content:s?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",A3,[...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 O3={class:"collapse navbar-collapse",id:"navbarSupportedContent"},I3={class:"navbar-nav mr-auto smooth-scroll"},P3={key:0,class:"nav-item"},V3={key:1,class:"nav-item"},q3={key:2,class:"nav-item"},M3={key:3,class:"nav-item"},$3={class:"nav-item"},L3={key:4,class:"nav-item"},U3={class:"navbar-nav"},F3={key:0,class:"nav-item"},z3={key:1,class:"nav-item"},H3={key:2,class:"nav-item"},B3={key:3,class:"nav-item"},j3={key:4,class:"nav-item dropdown user-chip-wrap"},G3={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},W3=["src"],K3={class:"user-chip-name"},Y3={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},J3={class:"dropdown-header"},Q3=["innerHTML"],X3=["disabled"],Z3={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},x3={class:"email-prompt-actions"},eP=["disabled"],tP=["disabled"],oP=["disabled"];function jl(e,t){return l(),d(Q,null,[o("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[18]||(t[18]=ce('Anonymous GitHubSupport',3)),o("div",O3,[o("ul",I3,[e.user?p("v-if",!0):(l(),d("li",P3,[o("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",V3,[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",q3,[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",M3,[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",$3,[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",L3,[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",U3,[e.user||!e.isReviewerRoute?(l(),d("li",F3,[...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
+`+JSON.stringify(t):""}`},[Be.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ep(t)}" via a navigation guard.`},[Be.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[Be.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[Be.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function fo(e,t){return Te(new Error,{type:e,[Oa]:!0},t)}function Ht(e,t){return e instanceof Error&&Oa in e&&(t==null||!!(e.type&t))}var xc=["params","query","hash"];function ep(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let n of xc)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ia(e){let t={};if(e===""||e==="?")return t;let n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&Zs(s)):[r&&Zs(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Pa(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=wt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}var Va=Symbol(""),ar=Symbol(""),os=Symbol(""),ns=Symbol(""),ss=Symbol("");function Io(){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 Qt(e,t,n,r,s,i=a=>a()){let a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((u,m)=>{let k=h=>{h===!1?m(fo(Be.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?m(h):Zc(h)?m(fo(Be.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(a&&r.enterCallbacks[s]===a&&typeof h=="function"&&a.push(h),u())},y=i(()=>e.call(r&&r.instances[s],t,n,k)),E=Promise.resolve(y);e.length<3&&(E=E.then(k)),E.catch(h=>m(h))})}function rs(e,t,n,r,s=i=>i()){let i=[];for(let a of e)for(let u in a.components){let m=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(va(m)){let k=(m.__vccOpts||m)[t];k&&i.push(Qt(k,n,r,a,u,s))}else{let k=m();i.push(()=>k.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${u}" at "${a.path}"`);let E=Vc(y)?y.default:y;a.mods[u]=y,a.components[u]=E;let h=(E.__vccOpts||E)[t];return h&&Qt(h,n,r,a,u,s)()}))}}return i}function qa(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 m=e.matched[a];m&&(t.matched.find(k=>po(k,m))||s.push(m))}return[n,r,s]}var tp=()=>location.protocol+"//"+location.host;function Wa(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),or(u,"")}return or(n,e)+r+s}function op(e,t,n,r){let s=[],i=[],a=null,u=({state:h})=>{let C=Wa(e,location),g=n.value,b=t.value,S=0;if(h){if(n.value=C,t.value=h,a&&a===g){a=null;return}S=b?h.position-b.position:0}else r(C);s.forEach(R=>{R(n.value,g,{delta:S,type:es.pop,direction:S?S>0?ts.forward:ts.back:ts.unknown})})};function m(){a=n.value}function k(h){s.push(h);let C=()=>{let g=s.indexOf(h);g>-1&&s.splice(g,1)};return i.push(C),C}function y(){if(document.visibilityState==="hidden"){let{history:h}=window;if(!h.state)return;h.replaceState(Te({},h.state,{scroll:hn()}),"")}}function E(){for(let h of i)h();i=[],window.removeEventListener("popstate",u),window.removeEventListener("pagehide",y),document.removeEventListener("visibilitychange",y)}return window.addEventListener("popstate",u),window.addEventListener("pagehide",y),document.addEventListener("visibilitychange",y),{pauseListeners:m,listen:k,destroy:E}}function Ma(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?hn():null}}function np(e){let{history:t,location:n}=window,r={value:Wa(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(m,k,y){let E=e.indexOf("#"),h=E>-1?(n.host&&document.querySelector("base")?e:e.slice(E))+m:tp()+e+m;try{t[y?"replaceState":"pushState"](k,"",h),s.value=k}catch(C){console.error(C),n[y?"replace":"assign"](h)}}function a(m,k){i(m,Te({},t.state,Ma(s.value.back,m,s.value.forward,!0),k,{position:s.value.position}),!0),r.value=m}function u(m,k){let y=Te({},s.value,t.state,{forward:m,scroll:hn()});i(y.current,y,!0),i(m,Te({},Ma(r.value,m,null),{position:y.position+1},k),!1),r.value=m}return{location:r,state:s,push:u,replace:a}}function Ka(e){e=Na(e);let t=np(e),n=op(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}let s=Te({location:"",base:e,go:r,createHref:Da.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})({}),Qe=(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})(Qe||{}),sp={type:ho.Static,value:""},rp=/[a-zA-Z0-9_]/;function ip(e){if(!e)return[[]];if(e==="/")return[[sp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${n})/"${k}": ${C}`)}let n=Qe.Static,r=n,s=[],i;function a(){i&&s.push(i),i=[]}let u=0,m,k="",y="";function E(){k&&(n===Qe.Static?i.push({type:ho.Static,value:k}):n===Qe.Param||n===Qe.ParamRegExp||n===Qe.ParamRegExpEnd?(i.length>1&&(m==="*"||m==="+")&&t(`A repeatable param (${k}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ho.Param,value:k,regexp:y,repeatable:m==="*"||m==="+",optional:m==="*"||m==="?"})):t("Invalid state to consume buffer"),k="")}function h(){k+=m}for(;ut.length?t.length===1&&t[0]===rt.Static+rt.Segment?1:-1:0}function Ya(e,t){let n=0,r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}var cp={strict:!1,end:!0,sensitive:!1};function pp(e,t,n){let r=dp(ip(e.path),n),s=Te(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function fp(e,t){let n=[],r=new Map;t=er(cp,t);function s(E){return r.get(E)}function i(E,h,C){let g=!C,b=Fa(E);b.aliasOf=C&&C.record;let S=er(t,E),R=[b];if("alias"in E){let M=typeof E.alias=="string"?[E.alias]:E.alias;for(let V of M)R.push(Fa(Te({},b,{components:C?C.record.components:b.components,path:V,aliasOf:C?C.record:b})))}let T,q;for(let M of R){let{path:V}=M;if(h&&V[0]!=="/"){let z=h.record.path,ne=z[z.length-1]==="/"?"":"/";M.path=h.record.path+(V&&ne+V)}if(T=pp(M,h,S),C?C.alias.push(T):(q=q||T,q!==T&&q.alias.push(T),g&&E.name&&!za(T)&&a(E.name)),Ja(T)&&m(T),b.children){let z=b.children;for(let ne=0;ne{a(q)}:Oo}function a(E){if(rr(E)){let h=r.get(E);h&&(r.delete(E),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{let h=n.indexOf(E);h>-1&&(n.splice(h,1),E.record.name&&r.delete(E.record.name),E.children.forEach(a),E.alias.forEach(a))}}function u(){return n}function m(E){let h=vp(E,n);n.splice(h,0,E),E.record.name&&!za(E)&&r.set(E.record.name,E)}function k(E,h){let C,g={},b,S;if("name"in E&&E.name){if(C=r.get(E.name),!C)throw fo(Be.MATCHER_NOT_FOUND,{location:E});S=C.record.name,g=Te(La(h.params,C.keys.filter(q=>!q.optional).concat(C.parent?C.parent.keys.filter(q=>q.optional):[]).map(q=>q.name)),E.params&&La(E.params,C.keys.map(q=>q.name))),b=C.stringify(g)}else if(E.path!=null)b=E.path,C=n.find(q=>q.re.test(b)),C&&(g=C.parse(b),S=C.record.name);else{if(C=h.name?r.get(h.name):n.find(q=>q.re.test(h.path)),!C)throw fo(Be.MATCHER_NOT_FOUND,{location:E,currentLocation:h});S=C.record.name,g=Te({},h.params,E.params),b=C.stringify(g)}let R=[],T=C;for(;T;)R.unshift(T.record),T=T.parent;return{name:S,path:b,params:g,matched:R,meta:hp(R)}}e.forEach(E=>i(E));function y(){n.length=0,r.clear()}return{addRoute:i,resolve:k,removeRoute:a,clearRoutes:y,getRoutes:u,getRecordMatcher:s}}function La(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Fa(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mp(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 mp(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 za(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hp(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function vp(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ya(e,t[i])<0?r=i:n=i+1}let s=yp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function yp(e){let t=e;for(;t=t.parent;)if(Ja(t)&&Ya(e,t)===0)return t}function Ja({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ha(e){let t=dt(os),n=dt(ns),r=!1,s=null,i=tt(()=>{let y=Wt(e.to);return t.resolve(y)}),a=tt(()=>{let{matched:y}=i.value,{length:E}=y,h=y[E-1],C=n.matched;if(!h||!C.length)return-1;let g=C.findIndex(po.bind(null,h));if(g>-1)return g;let b=Ba(y[E-2]);return E>1&&Ba(h)===b&&C[C.length-1].path!==b?C.findIndex(po.bind(null,y[E-2])):g}),u=tt(()=>a.value>-1&&Ep(n.params,i.value.params)),m=tt(()=>a.value>-1&&a.value===n.matched.length-1&&nr(n.params,i.value.params));function k(y={}){if(kp(y)){let E=t[Wt(e.replace)?"replace":"push"](Wt(e.to)).catch(Oo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>E),E}return Promise.resolve()}return{route:i,href:tt(()=>i.value.href),isActive:u,isExactActive:m,navigate:k}}function gp(e){return e.length===1?e[0]:e}var bp=dn({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:Ha,setup(e,{slots:t}){let n=Fe(Ha(e)),{options:r}=dt(os),s=tt(()=>({[ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{let i=t.default&&gp(t.default(n));return e.custom?i:be("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),wp=bp;function kp(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 Ep(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(!wt(s)||s.length!==r.length||r.some((i,a)=>i.valueOf()!==s[a].valueOf()))return!1}return!0}function Ba(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var ja=(e,t,n)=>e??t??n,Cp=dn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=dt(ss),s=tt(()=>e.route||r.value),i=dt(ar,0),a=tt(()=>{let k=Wt(i),{matched:y}=s.value,E;for(;(E=y[k])&&!E.components;)k++;return k}),u=tt(()=>s.value.matched[a.value]);uo(ar,tt(()=>a.value+1)),uo(Va,u),uo(ss,s);let m=xe();return He(()=>[m.value,u.value,e.name],([k,y,E],[h,C,g])=>{y&&(y.instances[E]=k,C&&C!==y&&k&&k===h&&(y.leaveGuards.size||(y.leaveGuards=C.leaveGuards),y.updateGuards.size||(y.updateGuards=C.updateGuards))),k&&y&&(!C||!po(y,C)||!h)&&(y.enterCallbacks[E]||[]).forEach(b=>b(k))},{flush:"post"}),()=>{let k=s.value,y=e.name,E=u.value,h=E&&E.components[y];if(!h)return Ga(n.default,{Component:h,route:k});let C=E.props[y],g=C?C===!0?k.params:typeof C=="function"?C(k):C:null,S=be(h,Te({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(E.instances[y]=null)},ref:m}));return Ga(n.default,{Component:S,route:k})||S}}});function Ga(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var lr=Cp;function Qa(e){let t=fp(e.routes,e),n=e.parseQuery||Ia,r=e.stringifyQuery||ir,s=e.history,i=Io(),a=Io(),u=Io(),m=On(Xt),k=Xt;mo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let y=Zn.bind(null,F=>""+F),E=Zn.bind(null,Ca),h=Zn.bind(null,Ao);function C(F,Z){let Q,te;return rr(F)?(Q=t.getRecordMatcher(F),te=Z):te=F,t.addRoute(te,Q)}function g(F){let Z=t.getRecordMatcher(F);Z&&t.removeRoute(Z)}function b(){return t.getRoutes().map(F=>F.record)}function S(F){return!!t.getRecordMatcher(F)}function R(F,Z){if(Z=Te({},Z||m.value),typeof F=="string"){let v=xn(n,F,Z.path),D=t.resolve({path:v.path},Z),O=s.createHref(v.fullPath);return Te(v,D,{params:h(D.params),hash:Ao(v.hash),redirectedFrom:void 0,href:O})}let Q;if(F.path!=null)Q=Te({},F,{path:xn(n,F.path,Z.path).path});else{let v=Te({},F.params);for(let D in v)v[D]==null&&delete v[D];Q=Te({},F,{params:E(v)}),Z.params=E(Z.params)}let te=t.resolve(Q,Z),ye=F.hash||"";te.params=y(h(te.params));let Ee=_a(r,Te({},F,{hash:Ea(ye),path:te.path})),p=s.createHref(Ee);return Te({fullPath:Ee,hash:ye,query:r===ir?Pa(F.query):F.query||{}},te,{redirectedFrom:void 0,href:p})}function T(F){return typeof F=="string"?xn(n,F,m.value.path):Te({},F)}function q(F,Z){if(k!==F)return fo(Be.NAVIGATION_CANCELLED,{from:Z,to:F})}function M(F){return ne(F)}function V(F){return M(Te(T(F),{replace:!0}))}function z(F,Z){let Q=F.matched[F.matched.length-1];if(Q&&Q.redirect){let{redirect:te}=Q,ye=typeof te=="function"?te(F,Z):te;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=T(ye):{path:ye},ye.params={}),Te({query:F.query,hash:F.hash,params:ye.path!=null?{}:F.params},ye)}}function ne(F,Z){let Q=k=R(F),te=m.value,ye=F.state,Ee=F.force,p=F.replace===!0,v=z(Q,te);if(v)return ne(Te(T(v),{state:typeof v=="object"?Te({},ye,v.state):ye,force:Ee,replace:p}),Z||Q);let D=Q;D.redirectedFrom=Z;let O;return!Ee&&Sa(r,te,Q)&&(O=fo(Be.NAVIGATION_DUPLICATED,{to:D,from:te}),Me(te,te,!0,!1)),(O?Promise.resolve(O):P(D,te)).catch(I=>Ht(I)?Ht(I,Be.NAVIGATION_GUARD_REDIRECT)?I:qe(I):re(I,D,te)).then(I=>{if(I){if(Ht(I,Be.NAVIGATION_GUARD_REDIRECT))return ne(Te({replace:p},T(I.to),{state:typeof I.to=="object"?Te({},ye,I.to.state):ye,force:Ee}),Z||D)}else I=J(D,te,!0,p,ye);return G(D,te,I),I})}function ee(F,Z){let Q=q(F,Z);return Q?Promise.reject(Q):Promise.resolve()}function _(F){let Z=ze.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(F):F()}function P(F,Z){let Q,[te,ye,Ee]=qa(F,Z);Q=rs(te.reverse(),"beforeRouteLeave",F,Z);for(let v of te)v.leaveGuards.forEach(D=>{Q.push(Qt(D,F,Z))});let p=ee.bind(null,F,Z);return Q.push(p),ke(Q).then(()=>{Q=[];for(let v of i.list())Q.push(Qt(v,F,Z));return Q.push(p),ke(Q)}).then(()=>{Q=rs(ye,"beforeRouteUpdate",F,Z);for(let v of ye)v.updateGuards.forEach(D=>{Q.push(Qt(D,F,Z))});return Q.push(p),ke(Q)}).then(()=>{Q=[];for(let v of Ee)if(v.beforeEnter)if(wt(v.beforeEnter))for(let D of v.beforeEnter)Q.push(Qt(D,F,Z));else Q.push(Qt(v.beforeEnter,F,Z));return Q.push(p),ke(Q)}).then(()=>(F.matched.forEach(v=>v.enterCallbacks={}),Q=rs(Ee,"beforeRouteEnter",F,Z,_),Q.push(p),ke(Q))).then(()=>{Q=[];for(let v of a.list())Q.push(Qt(v,F,Z));return Q.push(p),ke(Q)}).catch(v=>Ht(v,Be.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function G(F,Z,Q){u.list().forEach(te=>_(()=>te(F,Z,Q)))}function J(F,Z,Q,te,ye){let Ee=q(F,Z);if(Ee)return Ee;let p=Z===Xt,v=mo?history.state:{};Q&&(te||p?s.replace(F.fullPath,Te({scroll:p&&v&&v.scroll},ye)):s.push(F.fullPath,ye)),m.value=F,Me(F,Z,Q,p),qe()}let X;function W(){X||(X=s.listen((F,Z,Q)=>{if(!Ue.listening)return;let te=R(F),ye=z(te,Ue.currentRoute.value);if(ye){ne(Te(ye,{replace:!0,force:!0}),te).catch(Oo);return}k=te;let Ee=m.value;mo&&Ta(sr(Ee.fullPath,Q.delta),hn()),P(te,Ee).catch(p=>Ht(p,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?p:Ht(p,Be.NAVIGATION_GUARD_REDIRECT)?(ne(Te(T(p.to),{force:!0}),te).then(v=>{Ht(v,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===es.pop&&s.go(-1,!1)}).catch(Oo),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),re(p,te,Ee))).then(p=>{p=p||J(te,Ee,!1),p&&(Q.delta&&!Ht(p,Be.NAVIGATION_CANCELLED)?s.go(-Q.delta,!1):Q.type===es.pop&&Ht(p,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),G(te,Ee,p)}).catch(Oo)}))}let se=Io(),ce=Io(),de;function re(F,Z,Q){qe(F);let te=ce.list();return te.length?te.forEach(ye=>ye(F,Z,Q)):console.error(F),Promise.reject(F)}function _e(){return de&&m.value!==Xt?Promise.resolve():new Promise((F,Z)=>{se.add([F,Z])})}function qe(F){return de||(de=!F,W(),se.list().forEach(([Z,Q])=>F?Q(F):Z()),se.reset()),F}function Me(F,Z,Q,te){let{scrollBehavior:ye}=e;if(!mo||!ye)return Promise.resolve();let Ee=!Q&&Aa(sr(F.fullPath,0))||(te||!Q)&&history.state&&history.state.scroll||null;return ot().then(()=>ye(F,Z,Ee)).then(p=>p&&Ra(p)).catch(p=>re(p,F,Z))}let Pe=F=>s.go(F),Se,ze=new Set,Ue={currentRoute:m,listening:!0,addRoute:C,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:b,resolve:R,options:e,push:M,replace:V,go:Pe,back:()=>Pe(-1),forward:()=>Pe(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:ce.add,isReady:_e,install(F){F.component("RouterLink",wp),F.component("RouterView",lr),F.config.globalProperties.$router=Ue,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Wt(m)}),mo&&!Se&&m.value===Xt&&(Se=!0,M(s.location).catch(te=>{}));let Z={};for(let te in Xt)Object.defineProperty(Z,te,{get:()=>m.value[te],enumerable:!0});F.provide(os,Ue),F.provide(ns,Ko(Z)),F.provide(ss,m);let Q=F.unmount;ze.add(F),F.unmount=function(){ze.delete(F),ze.size<1&&(k=Xt,X&&X(),X=null,m.value=Xt,Se=!1,de=!1),Q()}}};function ke(F){return F.reduce((Z,Q)=>Z.then(()=>_(Q)),Promise.resolve())}return Ue}function Xa(e){return dt(ns)}function Za(e,t){return t?.split(".").reduce((n,r)=>n?.[r],e)}function dr(e=null,t=new Map){let n=Fe({}),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,m=!1,k=!0)=>{let y=typeof a=="function"?()=>a(i):()=>Za(i,a),E=He(y,u,{deep:m,flush:"post"});return r.push(E),k&&ot(()=>{s||u(y(),y())}),E},i.watchGroup=(a,u,m=!0)=>i.watch(()=>a.map(k=>Za(i,k)),u,!0,m),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 m=()=>t.get(a)?.delete(u);return r.push(m),m},i.emit=(a,...u)=>{for(let m of[...t.get(a)||[]])m({},...u)},i.dispose=()=>{s=!0,r.splice(0).reverse().forEach(a=>a())},Go(i.dispose),i}function ut(){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)},Go(()=>{n=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:r,interval:s}}function Zt(){let e=new Set;return Go(()=>{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 ur(e,t,n){let r,s=!1,i="form-draft:"+n,a=()=>Object.fromEntries(t.map(h=>[h,e[h]])),u=()=>JSON.stringify(a()),m=h=>{for(let C of t)Object.prototype.hasOwnProperty.call(h,C)&&(e[C]=h[C]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},k=()=>{try{window.sessionStorage.removeItem(i)}catch{}},y=(h=!1)=>{if(r!==void 0){if(h&&document.querySelectorAll("input, select, textarea").forEach(C=>{C._field?.binding.state===e&&C._field.timer&&C._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{}}},E=()=>y(!0);return e.on("routeLeave",E),window.addEventListener("beforeunload",E),e.on("dispose",()=>window.removeEventListener("beforeunload",E)),{restore(){r=u();let h;try{h=JSON.parse(window.sessionStorage.getItem(i)||"null")}catch{}let C=h&&h.account===(e.user?.username||null)&&Date.now()-h.savedAt<30*6e4&&h.values;return C&&(m(h.values),e.draftRestored=!0),s||(s=!0,e.watch(()=>a(),()=>y(),!0)),e.unsavedChanges=u()!==r,!!C},checkpoint(){return JSON.parse(u())},accept(h){r=JSON.stringify(h),e.draftRestored=!1,y()},discard(){document.querySelectorAll("input, select, textarea").forEach(h=>{h._field?.binding.state!==e||!h._field.timer||(clearTimeout(h._field.timer),h._field.timer=null,h.value=h._field.binding.value??"")}),r!==void 0&&m(JSON.parse(r)),e.draftRestored=!1,y()},clear(){r=u(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,k()}}}var vn={VIEWER_ERRORS:{title:"Content could not be loaded",access_title:"GitHub access needs attention",reader_help:"Reading this repository? You do not need to sign in. Try again after the owner restores access, or let them know this anonymous link is unavailable.",owner_help:"Own this repository? If your GitHub account was suspended or recently recovered, sign in to Anonymous GitHub again and check the GitHub connection and repository permissions in your dashboard. Then retry this page. Keep the existing anonymous URL; do not delete the repository to restore access.",retry:"Try again",dashboard:"Open owner dashboard"},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:"We could not load this content. Try again. If it still fails, contact support with the anonymous URL and the time of the error.",unreachable:"The service could not complete this request. Wait a moment and try again.",request_error:"The connection was interrupted. Check your internet connection and try again.",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:"Anonymous GitHub cannot access the source repository on GitHub. It may be private, unavailable, or require the owner to reconnect GitHub.",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:"The repository owner needs to renew their GitHub connection before this content can be loaded.",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."}};function cr(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(vn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var is="XXXX",Sp=e=>{is=e||"XXXX"},xa=(e=is)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},el=(e,t=is)=>{let n=xa(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,m=a.parentElement;if(!u.includes(t)||!m||m.closest("script, style, mark.redaction, .mermaid"))continue;let k=m.closest('code[class*="language-"]');if(k&&!k.contains(e))continue;let y=r.createDocumentFragment(),E=0;for(let h of u.matchAll(n)){y.append(u.slice(E,h.index));let C=r.createElement("mark");C.className="redaction",C.title="Redacted by Anonymous GitHub",C.textContent=h[0],y.append(C),E=h.index+h[0].length}y.append(u.slice(E)),a.replaceWith(y)}},tl=(e,t=is)=>{if(!e||!t||!e.includes(t))return e;let n=new DOMParser().parseFromString(""+e+"","text/html");return el(n.body,t),n.body.innerHTML};async function ol(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 Np(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 nl=function(e,t,n,r){e.previewTabKeydown=Np,e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(y){let E=e.toasts.indexOf(y);E!==-1&&e.toasts.splice(E,1)},e.addToast=function(y){return e.toasts.push(y),r(function(){e.removeToast(y)},8e3),y};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(y){localStorage.setItem("darkMode",y),e.isDarkMode=y;let E="/css/prism-okaidia.css",h="/css/prism.css";if(y){$("body").addClass("dark-mode");let g=document.createElement("link");g.href=E,g.rel="stylesheet",document.head.append(g),$(`link[href='${h}']`).remove()}else{$("body").removeClass("dark-mode");let g=document.createElement("link");g.href=h,g.rel="stylesheet",document.head.append(g),$(`link[href='${E}']`).remove()}let C=document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");C&&(C.style.backgroundColor=y?"#34312C":"#1A1815",C.style.color="#FAF9F6"),e.emit("dark-mode",y)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let i;e.respondToEmailPrompt=async y=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let E=await t.post("/github/connections/email",{action:y,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});y==="save"&&(e.user.notificationEmail=E.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,i?.focus()}catch(E){e.emailPromptError=E.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function a(){t.get("/api/user").then(y=>{y&&(e.user=y.data),e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(i=document.activeElement,e.emailPromptOpen=!0,r(()=>{let E=document.getElementById("email-prompt");E?.showModal?E.showModal():E?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null})}a();function u(){t.get("/api/options").then(y=>{y&&(e.site_options=y.data),Sp(y?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}u();function m(){t.get("/api/message").then(y=>{y&&(e.generalMessage=y.data)},()=>{e.generalMessage=null})}m();function k(y,E){E&&(e.title=E.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)},sl=function(e,t){let n=Zt(),r=ut(),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)},rl=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,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let i="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let k=await t.get("/github/connections/email");e.accountEmail=k.data.notificationEmail||"",i=k.data.csrf,e.emailCSRFReady=!!i}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!i)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let k=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":i}});e.accountEmail=k.data.notificationEmail,e.user&&(e.user.notificationEmail=k.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),s.load().then(k=>{e.quota=k},console.error);let a=ur(e,["terms","options"],"profile");e.discardDraft=()=>a.discard();function u(){t.get("/api/user/default").then(k=>{let y=k.data||{};y.terms&&(e.terms=y.terms.join(`
+`)),e.options=Object.assign({},e.options,y.options),a.restore()})}u();let m=null;e.saveDefault=k=>{if(k&&k.preventDefault&&k.preventDefault(),e.saving)return;let y=a.checkpoint(),E={terms:e.terms.split(`
+`).map(h=>h.trim()).filter(h=>h.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",E).then(()=>{a.accept(y),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",m&&r.cancel(m),m=r(()=>{e.message=null},2500)},h=>{e.saving=!1;let C=h&&h.data&&h.data.error,g="Unable to save your defaults. Please try again.";Promise.all([n("ERRORS."+C),n("ERRORS.unknown_error")]).then(([b,S])=>{e.error=C&&b!==S?b:g},()=>{e.error=g})})},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."}))}},il=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)})}},al=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,m){let k={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[u.key];if(k===void 0)return;u.preventDefault();let y=e.features.length,E=k==="first"?0:k==="last"?y-1:(m+k+y)%y;e.feature=e.features[E].key,s(()=>{let h=r.document.getElementById("feature-tab-"+e.feature);h&&h.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 m={series:u,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!u||u.length<2)return m;let k=new Array(u.length-1);for(let b=1;b=2){let b=k[y-2];b&&(m.pctChange=(m.deltaToday-b)/b*100)}return m.pctAbs=Math.round(Math.abs(m.pctChange)),m.isUp=m.pctChange>=0,m}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(u=>{let m=u.data||[];e.history={repositories:a(m.map(k=>k.nbRepositories||0)),users:a(m.map(k=>k.nbUsers||0)),pageViews:a(m.map(k=>k.nbPageViews||0)),pullRequests:a(m.map(k=>k.nbPullRequests||0))}})},ll=function(e,t,n,r,s,i){let a=ut();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,ot(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Zt()(document,"click",_=>{e.quotaExpanded&&!_.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=_=>_.status==="error"||_._broken||m(_.status)==="progress"&&_._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=_=>{e.projectView=_,_==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=_=>"project-details-"+encodeURIComponent(_._type+":"+(_._id||_._source||"unknown")),e.showProjectDetails=async _=>{e.selectedProject=_,e.projectName=_.projectName||"",e.nameError="",e.nameMessage="",await ot();let P=document.getElementById(e.projectDetailsId(_));P?.focus(),P?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=_=>{e.selectedProject=null,ot(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(_._type+":"+_._id)}"]`)?.focus())},e.saveProjectName=async _=>{if(e.nameSaving||!_._id)return;let P=e.projectName.trim();if(P.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let G=await t.post("/api/user/project-name",{type:_._type,id:_._id,name:P});_.projectName=G.data.name,_._label=_.projectName||_._fallbackLabel,e.selectedProject===_&&(e.nameMessage=P?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await M(),e.selectedProject===_&&(e.selectedProject=e.items.find(J=>J._type===_._type&&J._id===_._id)||null))}catch{e.selectedProject===_&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async _=>{if(!_._viewUrl||e.copyingId)return;let P=new URL(_._viewUrl,s.location.origin).href;e.copyingId=_._type+":"+_._id;try{await ol(P),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:P})}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 m(_){return _==="ready"||_==="error"?_:_==="expired"||_==="expiring"?"expired":_==="removed"||_==="removing"?"removed":(u.indexOf(_)>-1,"progress")}let k=7200*1e3,y="dashboard.filterPrefs",E={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},h=loadFilterPrefs(y)||{};e.typeFilter=h.typeFilter||E.typeFilter,e.filters={status:Object.assign({},E.filters.status,h.filters&&h.filters.status||{})},e.orderBy=h.orderBy||E.orderBy;let C={_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=C,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let _=C[e.sortField()];return _?_.label:"Custom"},e.isSortedBy=_=>e.sortField()===_,e.setSort=(_,P)=>{typeof P!="boolean"&&(P=e.isSortedBy(_)?!e.sortDesc():!!(C[_]&&C[_].defaultDesc)),e.orderBy=(P?"-":"")+_},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(y,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(y,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),i.load().then(_=>{e.quota=_},console.error);function g(_,P,G,J,X,W){_.pageView||(_.pageView=0),_.lastView||(_.lastView=""),_.options=_.options||{},_.options.terms=(_.options.terms||[]).filter(ce=>ce),_._id=P||"",_._source=J,_._broken=!P,_._name=P||J||"(unnamed)",_._fallbackLabel=_._type==="gist"?"Gist "+(P||J||"without an ID"):J||G||_._name,_._label=_.projectName||_._fallbackLabel,_._editUrl=P?X:null,_._viewUrl=P?W:null,_._broken&&(_.status="error",_.statusMessage="incomplete_record"),_._statusKey=m(_.status);let se=_.anonymizeDate||_.lastView;return _._stale=_._statusKey==="progress"&&!!se&&Date.now()-new Date(se).getTime()>k,_.status==="expired"||_.status==="expiring"?_._expiry={kind:"expired",date:_.options.expirationDate}:_.status!=="ready"?_._expiry={kind:"none"}:_.options.expirationMode==="never"||!_.options.expirationDate?_._expiry={kind:"never"}:_._expiry={kind:"date",date:_.options.expirationDate},_}function b(_){return t.get(_).then(P=>P.data||[],P=>(console.error(P),[]))}function S(){return e.loading=!0,r.all([b("/api/user/anonymized_repositories"),b("/api/user/anonymized_pull_requests"),b("/api/user/anonymized_gists")]).then(_=>{let P=_[0],G=_[1],J=_[2],X=[];P.forEach(W=>{W._type="repo";let se=W.source||{};X.push(g(W,W.repoId,W.repoId,se.fullName,"/anonymize/"+W.repoId,"/r/"+W.repoId+"/"))}),G.forEach(W=>{W._type="pr";let se=W.source||{};X.push(g(W,W.pullRequestId,W.pullRequestId,se.repositoryFullName?se.repositoryFullName+"#"+se.pullRequestId:void 0,"/pull-request-anonymize/"+W.pullRequestId,"/pr/"+W.pullRequestId+"/"))}),J.forEach(W=>{W._type="gist";let se=W.source||{};X.push(g(W,W.gistId,W.gistId,se.gistId,"/gist-anonymize/"+W.gistId,"/gist/"+W.gistId+"/"))}),e.items=X,e.loading=!1})}let R=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function q(_){let P=_.source||{};return _._type==="repo"?g(_,_.repoId,_.repoId,P.fullName,"/anonymize/"+_.repoId,"/r/"+_.repoId+"/"):_._type==="pr"?g(_,_.pullRequestId,_.pullRequestId,P.repositoryFullName?P.repositoryFullName+"#"+P.pullRequestId:void 0,"/pull-request-anonymize/"+_.pullRequestId,"/pr/"+_.pullRequestId+"/"):g(_,_.gistId,_.gistId,P.gistId,"/gist-anonymize/"+_.gistId,"/gist/"+_.gistId+"/")}function M(_=!1){if(T)return S();let P=++R;return e.loading=!_,e.loadingMore=_,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(G=>e.filters.status[G]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:_?e.dashboardCursor:void 0}}).then(G=>{if(P===R){if(!Array.isArray(G.data?.items))return T=!0,S();e.items=(_?e.items:[]).concat(G.data.items.map(q)),e.dashboardCursor=G.data.cursor,e.dashboardTotals=G.data}},G=>{if(P===R){if(G.status===404)return T=!0,S();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{P===R&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>M(!0);let V;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(V&&a.timeout.cancel(V),V=a.timeout(()=>M(),150))},!1),e.watch("filters",()=>{T||M()},!0,!1),e.on("dispose",()=>{R++}),M(),e.openItem=(_,P)=>{if(!_._viewUrl)return;let G=P&&P.target;G&&G.closest&&G.closest("a, button, .dropdown, input")||(s.location.href=_._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(_=>e.filters.status[_]===!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(_=>e.filters.status[_]===!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(_=>{e.filters.status[_]=!0})};function z(_,P,G,J){t.get("/api/repo/"+_).then(async X=>{let W=J!==void 0&&J!==X.data.status;for(let se of e.items)if(se._type==="repo"&&se.repoId==_){W=W||se.status!==X.data.status;let ce=e.needsAttention(se);se.status=X.data.status,se.statusMessage=X.data.statusMessage,se._statusKey=m(se.status),se._statusKey!=="progress"&&(se._stale=!1);let de=e.needsAttention(se);e.dashboardTotals&&ce!==de&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(de?1:-1)));break}if(W&&!T){e.dashboardCursor=null;let se=e.selectedProject;await M(),se&&e.selectedProject===se&&(e.selectedProject=e.items.find(ce=>ce._type===se._type&&ce._id===se._id)||null)}if(X.data.status=="ready"||X.data.status=="error"||X.data.status=="removed"||X.data.status=="expired"){P(X.data);return}a.timeout(()=>z(_,P,G,X.data.status),2500)},G)}let ne=_=>_==="repo"?"repository":_==="gist"?"gist":"pull request",ee=_=>_==="repo"?"/api/repo":_==="gist"?"/api/gist":"/api/pr";e.removeItem=_=>{let P=ne(_._type);if(confirm(`Are you sure that you want to remove the ${P} ${_._id}?`)){let G=Fe({title:`Removing ${_._id}...`,date:new Date,body:`The ${P} ${_._id} is going to be removed.`});e.addToast(G);let J=`${ee(_._type)}/${_._id}`;t.delete(J).then(()=>{_._type==="repo"?z(_._id,()=>{G.title=`${_._id} is removed.`,G.body=`The ${P} ${_._id} is removed.`},void 0,_.status):(G.title=`${_._id} is removed.`,G.body=`The ${P} ${_._id} is removed.`,M())},X=>{G.title=`Error during the removal of ${_._id}.`,G.body=X.body,M()})}},e.refreshItem=_=>{let P=ne(_._type),G=Fe({title:`Refreshing ${_._id}...`,date:new Date,body:`The ${P} ${_._id} is going to be refreshed.`});e.addToast(G);let J=W=>{G.title=`Error during the refresh of ${_._id}.`,G.body=W.data?.error||W.body||"The refresh could not be completed. Please try again.",M()},X=`${ee(_._type)}/${_._id}/refresh`;t.post(X).then(()=>{_._type==="repo"?z(_._id,W=>{if(W.status!=="ready"){J({body:W.statusMessage||`The repository is ${W.status}.`});return}G.title=`${_._id} is refreshed.`,G.body=`The ${P} ${_._id} is refreshed.`},J,_.status):(G.title=`${_._id} is refreshed.`,G.body=`The ${P} ${_._id} is refreshed.`,M())},J)},e.extendItem=_=>{let P=ne(_._type),G=Fe({title:`Extending ${_._id}...`,date:new Date,body:`The expiration of ${P} ${_._id} is going to be extended by 6 months.`});e.addToast(G);let J=`${ee(_._type)}/${_._id}/extend`;t.post(J).then(()=>{_._type==="repo"?z(_._id,()=>{G.title=`${_._id} is extended.`,G.body=`The expiration of ${P} ${_._id} is extended by 6 months.`},void 0,_.status):(G.title=`${_._id} is extended.`,G.body=`The expiration of ${P} ${_._id} is extended by 6 months.`,M())},X=>{G.title=`Error during the extension of ${_._id}.`,G.body=X.data&&X.data.error||X.body,M()})},e.itemFilter=_=>{if(e.projectView==="attention"&&!e.needsAttention(_)||e.typeFilter!=="all"&&_._type!==e.typeFilter||e.filters.status[_._statusKey]===!1)return!1;let P=e.search.trim().toLowerCase();return!!(P.length==0||_._label&&String(_._label).toLowerCase().indexOf(P)>-1||_._source&&String(_._source).toLowerCase().indexOf(P)>-1||_._id&&String(_._id).toLowerCase().indexOf(P)>-1||_.conference&&String(_.conference).toLowerCase().indexOf(P)>-1)}};var dl=function(e,t,n){let r=ut();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 ol(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 m(y){e.rateLimitResetAt=y,i&&r.interval.cancel(i);function E(){var h=Math.max(0,Math.ceil((y-Date.now())/1e3));if(h<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,r.interval.cancel(i),i=null;else{var C=Math.floor(h/60),g=h%60;e.rateLimitCountdown=C>0?C+"m "+g+"s":g+"s"}}E(),i=r.interval(E,1e3)}e.on("dispose",function(){u=!0,i&&r.interval.cancel(i),a&&r.timeout.cancel(a)});function k(y){if(!y)return y;var E=y.match(/^rate_limited:(\d+)$/);return E?(m(parseInt(E[1],10)),null):(e.rateLimitResetAt=0,y)}e.getStatus=()=>{u||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(y=>{if(!u){e.repo=y.data,y.data.rateLimitResetAt?m(y.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 E=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(E=!1),E&&(a=r.timeout(e.getStatus,2e3))}},y=>{e.error=y.data.error})},e.getStatus()},as=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&&Zt()(u,"change",p=>{e.mobileWorkspace=p.matches}),e.selectMobilePane=p=>{e.mobilePane=p};let m=0,k=!1,y=new Set,E=(p,v=!1)=>!k&&p.generation===m&&p.url===e.sourceUrl.trim()&&p.connection===e.githubConnection&&(!v||p.branch===e.source.branch),h=()=>{let p={generation:m,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return y.add(p),e.sourceLoading=!0,p},C=p=>{y.delete(p),k||(e.sourceLoading=[...y].some(v=>E(v)))};e.on("dispose",()=>{k=!0,m++});let g=null,b=p=>p.gistId&&!p.repo?"gist:"+p.gistId.toLowerCase():(p.owner+"/"+p.repo).toLowerCase()+(p.pullRequestId?"/pull/"+p.pullRequestId:""),S=ur(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(s.path?.()||""));e.discardDraft=async()=>{S.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(m++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",re.cancel(),Se.cancel(),F.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let R=()=>{let p={};for(let v of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])p[v]=e[v];sessionStorage.setItem("github-access-draft",JSON.stringify({path:s.path(),savedAt:Date.now(),draft:p}))};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 p=s.path(),v=P(e.sourceUrl)||"",D=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=D+"?returnTo="+encodeURIComponent(p)+"&repository="+encodeURIComponent(v)+"&install=1"},e.chooseGitHubConnection=async p=>{e.githubConnection=p,e.readme="",e.sourceUrl&&await J()},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 p=new Date;return p.setMonth(p.getMonth()+6),p}e.options.expirationDate=T();function q(p){let v=p.getFullYear(),D=String(p.getMonth()+1).padStart(2,"0"),O=String(p.getDate()).padStart(2,"0");return`${v}-${D}-${O}`}e.minExpirationDate=q(new Date);let M=new Date;M.setFullYear(M.getFullYear()+1),e.maxExpirationDate=q(M),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1,e.previousConfigurations=[],e.previousConfigurationId="";let V,z=p=>String(p||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function ne(){if(e.isUpdate||r.repoId||r.pullRequestId||r.gistId)return;let p={generation:m,url:e.sourceUrl.trim(),connection:e.githubConnection};try{V||(V=t.get("/api/user/anonymized_repositories").then(O=>O.data));let v=await V;if(!E(p))return;let D=z(P(p.url));e.previousConfigurations=v.filter(O=>O.repoId&&O.options&&z(O.source?.fullName)===D).sort((O,I)=>(Date.parse(I.anonymizeDate)||0)-(Date.parse(O.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{V=void 0}}e.existingConfigurationUrl=()=>{let p=e.previousConfigurations.find(v=>v.repoId===e.previousConfigurationId);return p?"/anonymize/"+encodeURIComponent(p.repoId):null};function ee(p){t.get("/api/user/default").then(v=>{let D=v.data;D.terms&&(e.defaultTerms=D.terms.join(`
+`)),e.options=Object.assign({},e.options,D.options),e.options.expirationDate=D.options&&D.options.expirationDate?new Date(D.options.expirationDate):T(),!r.repoId&&!r.pullRequestId&&!r.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),p&&p()})}function _(p,v,D){e.anonymize&&e.anonymize[p]&&e.anonymize[p].setValidity(v,D)}function P(p){try{let v=parseGithubUrl(p);if(v&&v.owner&&v.repo)return v.owner+"/"+v.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!r.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||P(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let p=h();try{let v=await t.get("/github/connections");if(e.githubConnections=v.data,!v.data.appEnabled)return;let D=await t.post("/github/connections/migrate",{type:"repository",id:r.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":v.data.csrf}});if(!E(p))return;e.error=null,D.data.fullName&&(e._originalFullName=D.data.fullName,e.source.fullName=D.data.fullName,e.sourceUrl="https://github.com/"+D.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{E(p)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,C(p)}},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 W()}catch{}}};function G(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:P(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function J(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function X(){let p;try{p=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!p||p.path!==s.path()||Date.now()-p.savedAt>=30*6e4)return S.restore()?(e.sourceUrl&&await J(),!0):!1;S.restore();for(let v of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(p.draft,v)&&(e[v]=p.draft[v]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await J(),sessionStorage.removeItem("github-access-draft"),!0}ee(()=>{!r.repoId&&!r.pullRequestId&&!r.gistId&&a(X,0),r.repoId&&r.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=r.repoId,t.get("/api/repo/"+e.repoId).then(async p=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(p.data.status),e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.fullName,e._originalFullName=p.data.source.fullName,e.terms=p.data.options.terms.filter(v=>v).join(`
+`),e.source=p.data.source,e.role=p.data.role||"owner",e.coauthors=p.data.coauthors||[],e._originalBranch=p.data.source.branch,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,e.repositoryID=p.data.source.repositoryID,e._originalRepositoryID=p.data.source.repositoryID,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),g=b(parseGithubUrl(e.sourceUrl)),!await X()&&(await Promise.all([W(),se()]),_e())},()=>{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 p=>{if(e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.repositoryFullName+"/pull/"+p.data.source.pullRequestId,e.terms=p.data.options.terms.filter(v=>v).join(`
+`),e.source=p.data.source,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),g=b(parseGithubUrl(e.sourceUrl)),!await X())try{await qe()}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 p=>{e.sourceUrl="https://gist.github.com/"+p.data.source.gistId,e.terms=p.data.options.terms.filter(v=>v).join(`
+`),e.source=p.data.source,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),g=b(parseGithubUrl(e.sourceUrl)),!await X()&&await ze()},()=>{s.url("/404")}))}),t.get("/github/connections").then(p=>{e.githubConnections=p.data,!r.repoId&&!r.pullRequestId&&!r.gistId&&e.githubConnection===void 0&&p.data.appEnabled&&p.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&J())}).catch(()=>{}),e.urlSelected=async(p=!1)=>{let v=++m;e.previousConfigurations=[],e.previousConfigurationId="";let D;try{D=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,re.cancel(),Se.cancel(),F.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",_("sourceUrl","github",!1);return}let O=b(D),I=p||g===O;g=O,e.sourceUrlError="",_("sourceUrl","github",!0);let U=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,U&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!I&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],I||(e.source={type:"GitHubStream",branch:"",commit:""}),re.cancel(),Se.cancel(),F.cancel(),Me.clear(),Ue.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=I;try{D.gistId&&!D.repo?(e.detectedType="gist",e.source={gistId:D.gistId},await ze()):D.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:D.owner+"/"+D.repo,pullRequestId:D.pullRequestId},await qe()):(e.detectedType="repo",ne(),await Promise.all([W(),se()]),_e())}catch{}finally{v===m&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let p=e.branches.filter(D=>D.name==e.source.branch)[0];if(!p)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=p.commit),e.readme=p.readme,await se(),_e()}),e.getBranches=async p=>{let v=parseGithubUrl(e.sourceUrl),D=h();try{let O=await t.get(`/api/repo/${v.owner}/${v.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:p===!0||e.reconnectingSource?"1":"0",repositoryID:G()}});if(!E(D))return;e.branches=O.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let I=e.branches.filter(U=>U.name==e.source.branch);I.length>0&&(!(!e.reconnectingSource&&!p&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=I[0].commit),e.readme=I[0].readme,await se(p))}catch(O){if(!E(D))return;e.branches=[],e.sourceUnreachable=O&&(O.status===404||O.data&&O.data.error==="repo_not_found");let I=O&&O.data&&O.data.error||(O&&O.status===404?"repo_not_found":"unknown_error");i("ERRORS."+I).then(U=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:U}),e.error=U},console.error),typeof _=="function"&&_("sourceUrl","missing",!1)}finally{C(D)}};async function W(){let p=parseGithubUrl(e.sourceUrl),v=h();try{te();let D=await t.get(`/api/repo/${p.owner}/${p.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,repositoryID:G(),force:"1"}});if(!E(v))return;e.details=D.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(D){if(!E(v))return;throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),_("sourceUrl","missing",!1),D}finally{C(v)}}async function se(p){if(e.readme&&!p)return e.readme;let v=parseGithubUrl(e.sourceUrl),D=h();try{let O=await t.get(`/api/repo/${v.owner}/${v.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:p===!0?"1":"0",branch:e.source.branch,repositoryID:G()}});E(D,!0)&&(e.readme=O.data)}catch{E(D,!0)&&(e.readme="")}finally{C(D)}}function ce(){let p={terms:e.terms?e.terms.split(`
+`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(p.branchName=e.source.branch);try{let v=parseGithubUrl(e.sourceUrl);p.repoName=`${v.owner}/${v.repo}`}catch{}return p}function de(p,v,D){let O=null,I=0,U=()=>{if(e.detectedType!==p)return;O&&a.cancel(O);let L=++I;e.previewStatus="loading",O=a(()=>{O=null;let H=v();if(!H){e.previewStatus="idle";return}t.post("/api/anonymize-preview",H).then(Y=>{L===I&&(D(Y.data,H),e.previewStatus="ready")}).catch(()=>{L===I&&(e.previewStatus="error")})},200)};return U.cancel=()=>{I++,O&&a.cancel(O),O=null},e.on("dispose",U.cancel),U}e.retryPreview=()=>{e.detectedType==="repo"&&re(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()};let re=de("repo",()=>e.readme?{content:e.readme,options:ce()}:null,p=>{if(typeof p?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=p.content;let v="";try{let O=parseGithubUrl(e.sourceUrl),I=e.source.branch||e.details&&e.details.defaultBranch||"main";v=`https://github.com/${O.owner}/${O.repo}/raw/${I}/`}catch{}let D=renderMD(e.anonymize_readme,v);e.html_readme=D,a(Prism.highlightAll,150)});function _e(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),re())}async function qe(){let p=parseGithubUrl(e.sourceUrl),v=h();try{te();let D=await t.get(`/api/pr/${p.owner}/${p.repo}/${p.pullRequestId}`,{params:{connection:e.githubConnection}});if(!E(v))return;e.details=D.data,e.pullRequestId||(e.pullRequestId=p.repo+"-PR"+p.pullRequestId+"-"+generateRandomId(4))}catch(D){if(!E(v))return;throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),_("sourceUrl","missing",!1),D}finally{C(v)}}let Me=Fe(new Map);function Pe(){let p=new Set,v=e.details&&e.details.pullRequest;if(!v)return p;typeof v.title=="string"&&p.add(v.title),typeof v.body=="string"&&p.add(v.body),typeof v.diff=="string"&&p.add(v.diff);let D=v.comments||[];for(let O of D)typeof O.author=="string"&&p.add(O.author),typeof O.body=="string"&&p.add(O.body);return p}let Se=de("pr",()=>{let p=Pe(),v=Array.from(p);return v.length===0?null:{contents:v,options:ce()}},(p,v)=>{if(!Array.isArray(p?.contents)||p.contents.length!==v.contents.length||p.contents.some(I=>typeof I!="string"))throw Error("Invalid preview response");let D=v.contents,O=new Map;for(let I=0;IMe.set(U,I))});e.anonymizePrContent=function(p){return p&&(Me.has(p)?Me.get(p):"")};async function ze(){let p=parseGithubUrl(e.sourceUrl),v=h();try{te(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let D=await t.get(`/api/gist/source/${p.gistId}`);if(!E(v))return;e.details=D.data,e.gistId||(e.gistId="gist-"+p.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(D){if(!E(v))return;if(D.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,_("sourceUrl","missing",!1);return}if(D.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,_("sourceUrl","missing",!1);return}throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),_("sourceUrl","missing",!1),D}finally{C(v)}}let Ue=Fe(new Map);function ke(){let p=new Set,v=e.details&&e.details.gist;if(!v)return p;typeof v.description=="string"&&p.add(v.description),typeof v.ownerLogin=="string"&&p.add(v.ownerLogin);let D=v.files||[];for(let I of D)typeof I.filename=="string"&&p.add(I.filename),typeof I.content=="string"&&p.add(I.content);let O=v.comments||[];for(let I of O)typeof I.author=="string"&&p.add(I.author),typeof I.body=="string"&&p.add(I.body);return p}let F=de("gist",()=>{let p=ke(),v=Array.from(p);return v.length===0?null:{contents:v,options:ce()}},(p,v)=>{if(!Array.isArray(p?.contents)||p.contents.length!==v.contents.length||p.contents.some(I=>typeof I!="string"))throw Error("Invalid preview response");let D=v.contents,O=new Map;for(let I=0;IUe.set(U,I)),Z()});e.anonymizeGistContent=function(p){return p&&(Ue.has(p)?Ue.get(p):"")},e.previewGistFiles=[];function Z(){let p=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=p.map(v=>({filename:e.anonymizeGistContent(v.filename),content:e.anonymizeGistContent(v.content),language:v.language}))}e.watch("details.gist.files",Z,!0),e.watch("terms",Z);function Q(){let p=e.conference;if(e.conference_data=null,!p)return;let v=e.isUpdate&&p===e._originalConference;t.get("/api/conferences/"+p).then(D=>{e.conference===p&&(e.conference_data=D.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===p&&(e.conference_data=null)})}function te(){_("repoId","used",!0),_("repoId","format",!0),_("pullRequestId","used",!0),_("pullRequestId","format",!0),_("gistId","used",!0),_("gistId","format",!0),_("sourceUrl","used",!0),_("sourceUrl","missing",!0),_("sourceUrl","access",!0),_("sourceUrl","github",!0),_("commit","exists",!0),_("conference","activated",!0),_("terms","format",!0),e.termsRegexWarning=!1}function ye(){let p=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||p&&p.invalid?(p&&p.setDirty&&p.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function Ee(p){let v=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(p){case"repoId_already_used":_(v,"used",!1);break;case"invalid_repoId":_(v,"format",!1);break;case"options_not_provided":_(v,"format",!1);break;case"repo_already_anonymized":_("sourceUrl","used",!1);break;case"invalid_terms_format":_("terms","format",!1);break;case"repo_not_found":_("sourceUrl","missing",!1);break;case"repo_not_accessible":_("sourceUrl","access",!1);break;case"commit_not_found":_("commit","exists",!1);break;case"conf_not_activated":_("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let p=(e.coauthorSearch||"").trim();if(e.coauthorError="",p.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:p}}).then(v=>{let D=new Set((e.coauthors||[]).map(O=>(O.username||"").toLowerCase()));e.coauthorResults=(v.data||[]).filter(O=>!D.has((O.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(p,v)=>{v&&v.preventDefault(),!(!p||!p.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:p.username}).then(D=>{e.coauthors=D.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},D=>{let O=D&&D.data&&D.data.error||"unknown_error";e.coauthorError=O})},e.removeCoauthor=p=>{!p||!p.username||confirm("Remove co-author "+p.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(p.username)).then(v=>{e.coauthors=v.data||[]},v=>{let D=v&&v.data&&v.data.error||"unknown_error";e.coauthorError=D})},e.anonymizeRepo=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId||ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let v=p.currentTarget||p.target.closest?.("button")||p.target;v.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={repoId:e.repoId,terms:e.terms.trim().split(`
+`).filter(U=>U),connection:e.githubConnection,fullName:`${D.owner}/${D.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(O.options.pageSource=e.details.pageSource),te();let I=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{S.clear(),window.location.href="/status/"+e.repoId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{v.disabled=!1})},e.anonymizeGist=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let v=p.currentTarget||p.target.closest?.("button")||p.target;v.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={gistId:e.gistId,terms:e.terms.trim().split(`
+`).filter(U=>U),source:{gistId:D.gistId},options:e.options,conference:e.conference};te();let I=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{S.clear(),window.location.href="/gist/"+e.gistId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{v.disabled=!1})},e.anonymizePullRequest=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let v=p.currentTarget||p.target.closest?.("button")||p.target;v.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
+`).filter(U=>U),source:{repositoryFullName:`${D.owner}/${D.repo}`,pullRequestId:D.pullRequestId},options:e.options,conference:e.conference};te();let I=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{S.clear(),window.location.href="/pr/"+e.pullRequestId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{v.disabled=!1})},e.watch("conference",()=>{Q()}),e.watch("terms",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("options.image",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("options.link",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("details",()=>{e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()},!0)},pr=function(e,t,n,r,s,i){let a=ut();window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",P=>el(P.element)),window.Prism.redactionHook=!0);let u=Zt();e.on("dark-mode",(P,G)=>{e.aceOption&&(G?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let m=0,k=!1;e.on("dispose",()=>{k=!0,m++,y&&y.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(P){if((P.metaKey||P.ctrlKey)&&P.key==="k"){P.preventDefault();var G=document.querySelector(".tree-search-input");G&&(G.focus(),G.select())}});var y=null;e.onFileSearchChange=function(){y&&(y.resolve(),y=null);let P=e.fileSearchQuery;if(!P||P.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let G=i.defer();y=G,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(P)}`,{timeout:G.promise}).then(function(J){if(!(k||y!==G)){y=null,e.fileSearchLoading=!1;var X={};e.files.forEach(function(F){X[(F.path||"")+"/"+F.name]=!0});for(var W=[],se={},ce=0;ce0&&e.files.push.apply(e.files,W);for(var Se=[],ze=0;ze0&&e.files.push.apply(e.files,Se),e.fileSearchResults=J.data}},function(){!k&&y===G&&(y=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let E={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},h=["license","txt"],C=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],g=["wav","mp3","ogg","wma","flac","aac","m4a"],b=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(P,G){if(e.repoId!=r.repoId)return _();if((r.path||"")!=e.filePath){e.filePath=r.path||"",e.paths=e.filePath.split("/").filter(J=>J&&J.trim().length>0),ee();for(let J=0;J0?e.paths.slice(0,J).join("/"):"";e.files.some(se=>se.path===X)||e.getFiles(X)}}});function S(){if(e.paths[0]!="")return;let P=["readme.md","readme.txt","readme.org","readme.1st","readme"],G={};for(let X of e.files)X.name.toLowerCase().indexOf("readme")>-1&&(G[X.name.toLowerCase()]=X.name);let J=null;for(let X of P)if(G[X]){J=X;break}if(!J&&Object.keys(G).length>0&&(J=Object.keys(G)[0]),J){let X=n.url();X[X.length-1]!="/"&&(X+="/"),n.url(X+encodePathForUrl(G[J]))}}e.fileCounts=null,e.getFiles=function(P){let G=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(P)}&v=${e.options.lastUpdateDate}`).then(function(J){if(k||G!==e.repoId)return[];let X=P||"";return e.files=e.files.filter(W=>W.path!==X),e.files.push(...J.data),J.data},function(J){if(k||G!==e.repoId)return[];e.type="error",e.content=cr(J),e.files=[]})};function R(){let P=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(G){k||P!==e.repoId||(e.fileCounts=G.data)},function(){e.fileCounts={}})}function T(){return e.files.filter(P=>P.name==e.paths[e.paths.length-1]&&P.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var q=null;e.on("dispose",function(){q&&a.interval.cancel(q)});function M(P){if(k)return;let G=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(J=>{if(!(k||G!==e.repoId)){if(e.options=J.data,e.options.url){window.location=e.options.url;return}P&&P(J.data)}},J=>{if(!(k||G!==e.repoId)){var X=J.data||{};if(X.error==="rate_limited"&&X.resetAt){let se=function(){var ce=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(ce<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,q&&(a.interval.cancel(q),q=null),M(P);else{var de=Math.floor(ce/60),re=ce%60;e.rateLimitCountdown=de>0?de+"m "+re+"s":re+"s"}};var W=se;e.type="rate_limited",e.rateLimitResetAt=X.resetAt,q&&a.interval.cancel(q),se(),q=a.interval(se,1e3)}else X.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){M(P)},3e3)):(e.type="error",e.content=cr(J))}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function V(P){return E[P]?E[P]:P}function z(P){return P=="pdf"?"pdf":P=="html"||P=="htm"?"html-doc":P=="md"?"md":P=="org"?"org":P=="ipynb"?"IPython":h.indexOf(P)>-1?"text":C.indexOf(P)>-1?"image":b.indexOf(P)>-1?"media":g.indexOf(P)>-1?"audio":"code"}function ne(P,G){let J=m;if(!P){e.type="error",e.content="no_file_selected";return}let X=e.type;e.type="loading",e.content="loading";let W=G&&G.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(P)}?v=`+W,{transformResponse:se=>se}).then(se=>{if(!(k||J!==m)){if(e.type=X,e.content=se.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(se.data,n.url()+"/../"),e.type="html"),e.type=="org"){let de=contentAbs2Relative(se.data);var ce=new Org.Parser().parse(de).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(ce.toString()),e.type="html"}e.type=="code"&&se.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},se=>{k||J!==m||(e.type="error",e.content=cr(se))})}function ee(){m++,e.content="",e.file=T();let P="0";e.file&&e.file.sha&&(P=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${P}`;let G=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${G?encodePathForUrl(G):""}`,e.showSource=!1,e.allowScripts=!1;let J=e.filePath.toLowerCase(),X=J.lastIndexOf(".");if(X>-1&&(J=J.substring(X+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:V(J),onLoad:function(W){let se=ace.require("ace/range").Range,ce=null;function de(ke,F){ce!==null&&(W.session.removeMarker(ce),ce=null),ke!=null&&(ce=W.session.addMarker(new se(ke,0,F,1),"highlighted-line","fullLine"))}function re(ke){let F=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!F){de(null);return}let Z=parseInt(F[1])-1,Q=F[2]?parseInt(F[2])-1:Z;de(Z,Q),ke&&a.timeout(()=>{W.scrollToLine(Z,!0,!0,function(){})},100)}re(!0);let _e=null;W.on("guttermousedown",function(ke){let F=ke.getDocumentPosition().row,Z=ke.domEvent&&ke.domEvent.shiftKey,Q=F,te=F;Z&&_e!==null?(Q=Math.min(_e,F),te=Math.max(_e,F)):_e=F;let ye=Q===te?`#L${Q+1}`:`#L${Q+1}-L${te+1}`,Ee=window.location.pathname+window.location.search+ye;window.history.replaceState(null,"",Ee),de(Q,te),ke.stop()});let qe=u(window,"hashchange",()=>re(!1));W.setFontSize(e.aceOption.fontSize),W.setReadOnly(e.aceOption.readOnly),W.setKeyboardHandler(e.aceOption.keyBinding),W.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),W.setOption("displayIndentGuides",!0),W.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(W.renderer.$cursorLayer.element.style.display="none"),W.setHighlightGutterLine(e.aceOption.highlightGutterLine),W.setShowInvisibles(e.aceOption.showInvisibles),W.setDisplayIndentGuides(e.aceOption.showIndentGuides),W.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),W.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),W.session.setUseSoftTabs(e.aceOption.useSoftTab),W.session.setTabSize(e.aceOption.tabSize);let Me=window.matchMedia("(max-width: 991px)"),Pe=()=>W.session.setUseWrapMode(e.aceOption.useWrapMode&&Me.matches);Pe(),Me.addEventListener?.("change",Pe),W.setBehavioursEnabled(e.aceOption.enableBehaviours),W.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let Se=[],ze=()=>{Se.forEach(Z=>W.session.removeMarker(Z)),Se=[];let ke=xa();if(!ke)return;W.session.getDocument().getAllLines().forEach((Z,Q)=>{for(let te of Z.matchAll(ke))Se.push(W.session.addMarker(new se(Q,te.index,Q,te.index+te[0].length),"ace_redaction","text"))})};ze(),W.session.on("change",()=>a.timeout(ze,0));let Ue=e.on("site-options",ze);return()=>{qe(),Ue(),Me.removeEventListener?.("change",Pe)}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=z(J),e.type=="pdf"){e.content="pdf";return}ne(e.filePath,e.file)}e.isSourceAccessError=()=>["repo_not_found","token_expired","github_app_access_required","github_app_reconnect_required","repo_saml_enforcement","repo_access_limited"].includes(e.content),e.retryContent=()=>_();function _(){m++,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 P=e.repoId;M(function(G){R();var J=i.resolve();for(let X=0;X0?e.paths.slice(0,X).join("/"):"";J=J.then(function(){return e.getFiles(W)}).then(function(){if(e.type==="error")return i.reject("error")})}J.then(function(){k||P!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(S(),ee()))})})}_()},ul=function(e,t,n,r,s){async function i(m){t.get(`/api/pr/${e.pullRequestId}/options`).then(k=>{if(e.options=k.data,e.options.url){window.location=e.options.url;return}m&&m(k.data)},k=>{e.type="error",e.content=k.data.error})}async function a(m){t.get(`/api/pr/${e.pullRequestId}/content`).then(k=>{e.details=k.data,e.tabState={active:k.data.diff?"diff":"comments"},m&&m(k.data)},k=>{e.type="error",e.content=k.data.error})}function u(){e.pullRequestId=r.pullRequestId,e.type="loading",i(m=>{a()})}u()},cl=function(e,t,n,r,s){async function i(m){t.get(`/api/gist/${e.gistId}/options`).then(k=>{if(e.options=k.data,e.options.url){window.location=e.options.url;return}m&&m(k.data)},k=>{e.type="error",e.content=k.data.error})}async function a(m){t.get(`/api/gist/${e.gistId}/content`).then(k=>{e.details=k.data;let y=k.data&&k.data.files&&k.data.files.length;e.tabState={active:y?"files":"comments"},m&&m(k.data)},k=>{e.type="error",e.content=k.data.error})}function u(){e.gistId=r.gistId,e.type="loading",i(()=>{a()})}u()},pl=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=Fe({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))}},fr=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(y=>{e.options={...e.options,...y.data,billing:y.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(y=>{e.plans=y.data,e.plan=e.plans.filter(E=>E.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(y=>y.id==e.options.plan.planID)[0]});function m(){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(y){switch(y){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 y=JSON.parse(JSON.stringify(e.options)),E=Fe({title:`Creating ${y.name}...`,date:new Date,body:`The conference ${y.conferenceID} is in creation.`});e.editionMode&&(E.title=`Updating ${y.name}...`,E.body=`The conference '${y.conferenceID}' is updating.`),e.addToast(E),m(),t.post("/api/conferences/"+(e.editionMode?y.conferenceID:""),y).then(()=>{e.editionMode?(E.title=`${y.name} updated`,E.body=`The conference '${y.conferenceID}' is updated.`):(E.title=`${y.name} created`,E.body=`The conference '${y.conferenceID}' is created.`),n.url("/conference/"+y.conferenceID)},h=>{k(h.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(E)}).finally(()=>{e.saving=!1})}},fl=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()},ml=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()},hl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(n=>{e.accountRecovery=n.data.required}).catch(()=>{})};var vl=function(e,t,n){let r=ut(),s=Zt();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=g=>{if(g.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){g.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=g=>{g==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[g]="",e.query.page=1},e.chips=[];let a=()=>{let g=[];e.query.owner&&g.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&g.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=g};e.showStatusMessage=g=>{let b=g.statusMessage||"(no message)";window.prompt(`Status message for ${g.repoId} (${g.status}):`,b)},e.fetchGithubInfo=g=>{let b=window.open("","_blank");b&&b.document.write("Loading GitHub info for "+g.repoId+"...
"),t.get("/api/admin/repos/"+g.repoId+"/github").then(S=>{b&&(b.document.open(),b.document.write(''+JSON.stringify(S.data,null,2).replace(/[<>]/g,R=>R==="<"?"<":">")+"
"),b.document.close())},S=>{let R=S&&S.data?JSON.stringify(S.data,null,2):String(S);b&&(b.document.body.innerHTML=''+R+"
")})},e.statusCountFor=g=>{let b=(e.statusCounts||[]).find(S=>S._id===g);return b?b.count:0},e.statusStorageFor=g=>{let b=(e.statusCounts||[]).find(S=>S._id===g);return b?b.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.query.page=1},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.repos.filterPrefs",m={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},k=loadFilterPrefs(u)||{};e.query=Object.assign({},m,k,{page:1,search:""});let y=n.search();y.owner&&(e.query.owner=y.owner),y.conference&&(e.query.conference=y.conference),y.search&&(e.query.search=y.search);let E="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(E)||"[]"),e.savePreset=()=>{let g=window.prompt("Preset name:");if(!g)return;let b=Object.assign({},e.query);delete b.page,e.presets=(e.presets||[]).filter(S=>S.name!==g),e.presets.push({name:g,query:b}),localStorage.setItem(E,JSON.stringify(e.presets))},e.applyPreset=g=>{Object.assign(e.query,g.query,{page:1})},e.deletePreset=g=>{e.presets=(e.presets||[]).filter(b=>b.name!==g.name),localStorage.setItem(E,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(g=>{e.selected[g.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(g=>e.selected[g.repoId]),e.bulkRefresh=()=>{let g=e.selectedRepos();g.length&&confirm(`Force refresh ${g.length} repositories?`)&&g.forEach(b=>e.updateRepository(b))},e.bulkRemoveCache=()=>{let g=e.selectedRepos();g.length&&confirm(`Purge cache for ${g.length} repositories?`)&&g.forEach(b=>e.removeCache(b))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let g=new URLSearchParams(Object.entries(e.query).filter(([,b])=>b!==""&&b!==!1&&b!=null));g.set("format","csv"),g.set("limit","10000"),window.open("/api/admin/repos?"+g.toString(),"_blank")},e.removeCache=g=>{confirm("Remove cached files for "+g.repoId+"?")&&t.delete("/api/admin/repos/"+g.repoId).then(()=>h(),b=>console.error(b))},e.removeRepository=g=>{confirm("Remove repository "+g.repoId+"?")&&t.delete("/api/repo/"+g.repoId+"/").then(()=>h(),b=>console.error(b))},e.updateRepository=g=>{let b=Fe({title:`Refreshing ${g.repoId}...`,date:new Date,body:`The repository ${g.repoId} is going to be refreshed.`});e.toasts.push(b),t.post(`/api/repo/${g.repoId}/refresh`).then(S=>{S.data.status=="ready"?b.title=`${g.repoId} is refreshed.`:b.title=`Refreshing of ${g.repoId}.`},S=>{b.title=`Error during the refresh of ${g.repoId}.`,b.body=S.body})},e.fetchError=null;function h(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(g=>{e.total=g.data.total,e.totalPage=Math.ceil(g.data.total/e.query.limit),e.repositories=g.data.results,e.statusCounts=g.data.statusCounts||[],e.totalSize=g.data.totalSize||0,e.allSelected=!1},g=>{e.fetchError=g&&g.data&&g.data.error||"Failed to load repositories",console.error(g)})}h();let C=null;e.watch("query",()=>{r.timeout.cancel(C),C=r.timeout(h,500);let{page:g,search:b,...S}=e.query;saveFilterPrefs(u,S),a()},!0),a()},yl=function(e,t,n){let r=ut(),s=Zt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let i=h=>{if(h.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){h.preventDefault();let C=document.querySelector('.admin-filter-toolbar input[type="search"]');C&&C.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=h=>{h==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[h]="",e.query.page=1},e.chips=[];let a=()=>{let h=[];e.query.role&&h.push({key:"role",label:"Role",value:e.query.role}),e.chips=h};e.statusCountFor=h=>{let C=(e.statusCounts||[]).find(g=>g._id===h);return C?C.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=h=>{e.query.sort===h?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=h,e.query.direction="desc"),e.query.page=1},e.sortIcon=h=>e.query.sort===h?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.users.filterPrefs",m={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},k=loadFilterPrefs(u)||{};e.query=Object.assign({},m,k,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(h=>{e.selected[h.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(h=>e.selected[h.username]),e.banUser=h=>{confirm(`Ban user ${h.username}?`)&&t.post(`/api/admin/users/${h.username}/ban`).then(y,C=>console.error(C))},e.activateUser=h=>{t.post(`/api/admin/users/${h.username}/activate`).then(y,C=>console.error(C))},e.bulkBan=()=>{let h=e.selectedUsers();h.length&&confirm(`Ban ${h.length} users?`)&&h.forEach(C=>e.banUser(C))},e.exportCsv=()=>{let h=new URLSearchParams(Object.entries(e.query).filter(([,C])=>C!==""&&C!==!1&&C!=null));h.set("format","csv"),h.set("limit","10000"),window.open("/api/admin/users?"+h.toString(),"_blank")},e.fetchError=null;function y(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(h=>{e.total=h.data.total,e.totalPage=Math.ceil(h.data.total/e.query.limit),e.users=h.data.results,e.statusCounts=h.data.statusCounts||[],e.allSelected=!1},h=>{e.fetchError=h&&h.data&&h.data.error||"Failed to load users",console.error(h)})}y();let E=null;e.watch("query",()=>{r.timeout.cancel(E),E=r.timeout(y,500);let{page:h,search:C,...g}=e.query;saveFilterPrefs(u,g),a()},!0),a()},gl=function(e,t,n,r){let s=ut();e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let i="admin.user.filterPrefs",a={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},u=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},a.filters.status,u.filters&&u.filters.status||{})},e.query={sort:u.sort||a.sort,direction:u.direction||a.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=h=>{e.query.sort===h?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=h,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=h=>e.query.sort===h?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=h=>(e.repositories||[]).filter(C=>C.status===h).length,e.repoFiler=h=>e.filters.status[h.status]==!1?!1:!!(e.search.trim().length==0||h.source.fullName.indexOf(e.search)>-1||h.repoId.indexOf(e.search)>-1||h.statusMessage&&h.statusMessage.indexOf(e.search)>-1||h.conference&&h.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(h=>{e.selected[h.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(h=>e.selected[h.repoId]),e.bulkRefresh=()=>{let h=e.selectedRepos();h.length&&confirm(`Force refresh ${h.length} repositories?`)&&h.forEach(C=>e.updateRepository(C))},e.bulkRemoveCache=()=>{let h=e.selectedRepos();h.length&&confirm(`Purge cache for ${h.length} repositories?`)&&h.forEach(C=>e.removeCache(C))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let h=e.filteredRepositories||e.repositories,g=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),b=h.map(T=>[T.repoId,T.status,T.statusMessage||"",T.pageView||0,T.anonymizeDate||"",T.source&&T.source.fullName||"",T.conference||"",T.size&&T.size.storage||0].map(q=>{let M=String(q??"");return/[",\n\r]/.test(M)?'"'+M.replace(/"/g,'""')+'"':M}).join(",")),S=new Blob([g+`
+`+b.join(`
+`)],{type:"text/csv"}),R=document.createElement("a");R.href=URL.createObjectURL(S),R.download=r.username+"-repositories.csv",R.click()},e.showStatusMessage=h=>{let C=h.statusMessage||"(no message)";window.prompt(`Status message for ${h.repoId} (${h.status}):`,C)},e.fetchGithubInfo=h=>{let C=window.open("","_blank");C&&C.document.write("Loading GitHub info for "+h.repoId+"...
"),t.get("/api/admin/repos/"+h.repoId+"/github").then(g=>{C&&(C.document.open(),C.document.write(''+JSON.stringify(g.data,null,2).replace(/[<>]/g,b=>b==="<"?"<":">")+"
"),C.document.close())},g=>{let b=g&&g.data?JSON.stringify(g.data,null,2):String(g);C&&(C.document.body.innerHTML=''+b+"
")})};function m(h){t.get("/api/admin/users/"+h+"/repos",{}).then(C=>{e.repositories=C.data},C=>{console.error(C)})}function k(h){t.get("/api/admin/users/"+h,{}).then(C=>{e.userInfo=C.data},C=>{console.error(C)})}k(r.username),m(r.username),e.banUser=()=>{confirm(`Ban user ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/ban`).then(()=>k(r.username),h=>console.error(h))},e.activateUser=()=>{t.post(`/api/admin/users/${r.username}/activate`).then(()=>k(r.username),h=>console.error(h))},e.promoteUser=()=>{confirm(`Promote ${r.username} to admin?`)&&t.post(`/api/admin/users/${r.username}/promote`).then(()=>k(r.username),h=>console.error(h))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/demote`).then(()=>k(r.username),h=>console.error(h))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function y(){t.get("/api/admin/tokens").then(h=>{e.tokens=h.data||[]},h=>{h.status!==401&&h.status!==403&&console.error(h)})}y(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(h=>{e.tokenForm.plaintext=h.data.token,e.tokenForm.name="",y()},h=>console.error(h))},e.revokeToken=h=>{confirm(`Revoke token "${h.name}"?`)&&t.delete("/api/admin/tokens/"+h.id).then(()=>y(),C=>console.error(C))},e.removeCache=h=>{confirm("Remove cached files for "+h.repoId+"?")&&t.delete("/api/admin/repos/"+h.repoId).then(()=>m(r.username),C=>console.error(C))},e.removeRepository=h=>{confirm("Remove repository "+h.repoId+"?")&&t.delete("/api/repo/"+h.repoId+"/").then(()=>m(r.username),C=>console.error(C))},e.updateRepository=h=>{let C=Fe({title:`Refreshing ${h.repoId}...`,date:new Date,body:`The repository ${h.repoId} is going to be refreshed.`});e.toasts.push(C),t.post(`/api/repo/${h.repoId}/refresh`).then(g=>{g.data.status=="ready"?C.title=`${h.repoId} is refreshed.`:C.title=`Refreshing of ${h.repoId}.`},g=>{C.title=`Error during the refresh of ${h.repoId}.`,C.body=g.body})},e.getGitHubRepositories=h=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(C=>{e.userInfo.repositories=C.data})};let E=null;e.watch("query",()=>{s.timeout.cancel(E),E=s.timeout(()=>{m(r.username)},500)},!0)},bl=function(e,t,n){let r=ut(),s=Zt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let i=g=>{if(g.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){g.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=g=>{g==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[g]="",e.query.page=1},e.chips=[];let a=()=>{let g=[];(e.query.dateFrom||e.query.dateTo)&&g.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=g};e.statusCountFor=g=>{let b=(e.statusCounts||[]).find(S=>S._id===g);return b?b.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=g=>{e.query.sort===g?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=g,e.query.direction="desc"),e.query.page=1},e.sortIcon=g=>e.query.sort===g?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.conferences.filterPrefs",m={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},k=loadFilterPrefs(u)||{};e.query=Object.assign({},m,k,{page:1,search:""});let y=n.search();y.search&&(e.query.search=y.search);let E="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(E)||"[]"),e.savePreset=()=>{let g=window.prompt("Preset name:");if(!g)return;let b=Object.assign({},e.query);delete b.page,e.presets=(e.presets||[]).filter(S=>S.name!==g),e.presets.push({name:g,query:b}),localStorage.setItem(E,JSON.stringify(e.presets))},e.applyPreset=g=>{Object.assign(e.query,g.query,{page:1})},e.deletePreset=g=>{e.presets=(e.presets||[]).filter(b=>b.name!==g.name),localStorage.setItem(E,JSON.stringify(e.presets))},e.removeConference=g=>{confirm("Remove conference "+g.conferenceID+"?")&&t.delete("/api/admin/conferences/"+g.conferenceID).then(()=>h(),b=>console.error(b))},e.exportCsv=()=>{let g=new URLSearchParams(Object.entries(e.query).filter(([,b])=>b!==""&&b!==!1&&b!=null));g.set("format","csv"),g.set("limit","10000"),window.open("/api/admin/conferences?"+g.toString(),"_blank")},e.fetchError=null;function h(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(g=>{e.total=g.data.total,e.totalPage=Math.ceil(g.data.total/e.query.limit),e.conferences=g.data.results,e.statusCounts=g.data.statusCounts||[]},g=>{e.fetchError=g&&g.data&&g.data.error||"Failed to load conferences",console.error(g)})}h();let C=null;e.watch("query",()=>{r.timeout.cancel(C),C=r.timeout(h,500);let{page:g,search:b,...S}=e.query;saveFilterPrefs(u,S),a()},!0),a()},wl=function(e,t,n,r,s){let i=ut();e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(b=>e.stateFilter[b._state]),e.jobProgressPct=b=>b&&b.progress&&typeof b.progress=="object"&&typeof b.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(b.progress.percent))):typeof b.progress=="number"?Math.max(0,Math.min(100,Math.round(b.progress))):null,e.jobDuration=b=>{if(!b.processedOn)return"-";let R=(b.finishedOn||Date.now())-b.processedOn;return R<1e3?R+"ms":(R/1e3).toFixed(1)+"s"},e.metricsPoints=[],e.selectQueue=b=>{e.selectedQueue=b,a(),u()},e.setRange=b=>{e.range=b,u()};function a(){let b={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:b}).then(S=>{e.queueList=S.data.queues||[],e.jobs=S.data.jobs||[],e.selectedStats=e.queueList.find(R=>R.key===e.selectedQueue)||e.queueList[0]||null},S=>console.error(S))}function u(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(b=>{e.metricsPoints=b.data.points||[],s(h,0)},b=>console.error(b))}a(),u();let m=r(()=>{e.query.autoRefresh&&(a(),u())},15e3);e.on("dispose",()=>r.cancel(m)),e.refreshNow=function(){a(),u()};function k(b){let S=b&&b.data&&(b.data.message||b.data.error)||"Request failed";e.actionError=S,s(()=>{e.actionError=null},5e3),console.error(b)}e.actionError=null,e.removeJob=b=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${b.id}`).then(a,k)},e.retryJob=b=>{t.post(`/api/admin/queue/${e.selectedQueue}/${b.id}`).then(a,k)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(a,b=>console.error(b))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(a,b=>console.error(b))},e.togglePause=()=>{let b=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${b}`).then(a,S=>console.error(S))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(a,b=>console.error(b))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(a,b=>console.error(b))};let y=null;e.watch("query.search",()=>{i.timeout.cancel(y),y=i.timeout(a,350)}),e.expanded={},e.toggleJob=b=>{e.expanded[b.id]=!e.expanded[b.id]},e.humanTime=b=>{if(!b)return"";let S=new Date(b);return S.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+S.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=b=>{if(!b)return"";var S=Math.max(0,Math.ceil((b-Date.now())/1e3));if(S<=0)return"resuming soon";var R=Math.floor(S/60),T=S%60;return"in "+(R>0?R+"m "+T+"s":T+"s")};function E(b){if(b<=0)return{ticks:[0],niceMax:1};let S=Math.pow(10,Math.floor(Math.log10(b))),R=S;b/R<2?R=S/2:b/R>5&&(R=S*2);let T=Math.ceil(b/R)*R,q=[];for(let M=0;M<=T;M+=R)q.push(M);return{ticks:q,niceMax:T}}function h(){var b=document.getElementById("q-throughput-chart");if(!b)return;var S=b.getContext("2d"),R=window.devicePixelRatio||1,T=b.parentElement.getBoundingClientRect(),q=44,M=50,V=20,z=T.width-40,ne=180,ee=z-q-M,_=ne-V;b.width=z*R,b.height=ne*R,b.style.width=z+"px",b.style.height=ne+"px",S.setTransform(R,0,0,R,0,0);var P=document.body.classList.contains("dark-mode"),G="#8A857C",J=P?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",X=P?"#A7B2FF":"#3B4AD6",W=P?"rgba(167,178,255,0.12)":"rgba(59,74,214,0.08)",se=P?"#F08A82":"#B42318",ce=P?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",de=P?"#F5C842":"#B8860B",re=e.metricsPoints||[];if(re.length===0){S.fillStyle=G,S.font="12px monospace",S.textAlign="center",S.fillText("No metrics data yet",z/2,ne/2),C=null;return}var _e=re.map(function(L){return L.completed}),qe=re.map(function(L){return L.failed}),Me=re.map(function(L){return L.avgMs}),Pe=re.length,Se=ee/(Pe-1||1),ze=Math.max(1,Math.max.apply(null,_e),Math.max.apply(null,qe)),Ue=E(ze),ke=Math.max.apply(null,Me),F=ke>0?E(ke):{ticks:[0],niceMax:1},Z=function(L){return _-L/Ue.niceMax*(_-10)},Q=function(L){return _-L/F.niceMax*(_-10)},te=function(L){return q+L*Se};S.textAlign="right",S.textBaseline="middle",S.font="10px monospace",Ue.ticks.forEach(function(L){var H=Z(L);S.strokeStyle=J,S.lineWidth=1,S.beginPath(),S.moveTo(q,H),S.lineTo(z-M,H),S.stroke(),S.fillStyle=G,S.fillText(L>=1e3?(L/1e3).toFixed(1)+"k":String(L),q-6,H)}),ke>0&&(S.textAlign="left",F.ticks.forEach(function(L){var H=Q(L);S.fillStyle=de,S.fillText(L>=1e3?(L/1e3).toFixed(1)+"s":L+"ms",z-M+6,H)}));var ye=Date.now(),Ee=Math.min(6,Pe);S.textAlign="center",S.textBaseline="top";for(var p=0;p0&&(S.beginPath(),Me.forEach(function(L,H){var Y=te(H),B=Q(L);if(H===0)S.moveTo(Y,B);else{var le=(te(H-1)+Y)/2;S.bezierCurveTo(le,Q(Me[H-1]),le,B,Y,B)}}),S.strokeStyle=de,S.lineWidth=1,S.setLineDash([4,3]),S.stroke(),S.setLineDash([])),C={pts:re,maxLen:Pe,marginLeft:q,step:Se,totalW:z,toX:te}}var C=null;function g(){var b=document.getElementById("q-throughput-chart");if(!(!b||b._tipBound)){b._tipBound=!0;var S=document.getElementById("q-chart-tooltip"),R=document.getElementById("q-chart-crosshair");b.addEventListener("mousemove",function(T){if(!(!C||!S||!R)){var q=C,M=b.getBoundingClientRect(),V=T.clientX-M.left,z=Math.round((V-q.marginLeft)/q.step);if(z<0||z>=q.maxLen){S.style.display="none",R.style.display="none";return}var ne=q.pts[z],ee=Date.now(),_=Math.round((ee-ne.ts)/6e4),P;if(_<=0)P="now";else if(_<60)P=_+"m ago";else if(_<1440){var G=Math.floor(_/60),J=_%60;P=G+"h"+(J?" "+J+"m":"")+" ago"}else P=Math.round(_/1440)+"d ago";var X=''+P+'
● completed: '+ne.completed+'/min
● failed: '+ne.failed+"/min
";if(ne.avgMs>0){var W=ne.avgMs>=1e3?(ne.avgMs/1e3).toFixed(1)+"s":ne.avgMs+"ms";X+='● avg time: '+W+"
"}S.innerHTML=X;var se=q.toX(z),ce=S.offsetWidth,de=se+10;de+ce>q.totalW&&(de=se-ce-10),S.style.display="block",S.style.left=de+"px",S.style.top="8px",R.style.display="block",R.style.left=se+"px"}}),b.addEventListener("mouseleave",function(){S&&(S.style.display="none"),R&&(R.style.display="none")})}}e.watch("metricsPoints",function(){s(g,50)})},kl=function(e,t,n,r){let s=ut();e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.entries=[],e.visible=[],e.available=!0,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=R=>{if(!R)return"";let T=new Date(R).getTime();if(isNaN(T))return R;let q=Math.max(0,Date.now()-T),M=Math.floor(q/1e3);if(M<5)return"just now";if(M<60)return`${M}s ago`;let V=Math.floor(M/60);if(V<60)return`${V}m ago`;let z=Math.floor(V/60);if(z<24)return`${z}h ago`;let ne=Math.floor(z/24);return ne<7?`${ne}d ago`:new Date(R).toLocaleDateString()},e.absTime=R=>{if(!R)return"";let T=new Date(R);return isNaN(T.getTime())?R:T.toLocaleString()},e.absTimeShort=R=>{if(!R)return"";let T=new Date(R);return isNaN(T.getTime())?R:T.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let i=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function a(R,T){let q=R&&(R.httpStatus||R.status)||null;if(typeof q=="number"){if(q>=500)return"error";if(q===401||q===403||q===404)return"info";if(q>=400)return"warn"}return T==="error"?"error":T==="warn"?"warn":"info"}function u(R){let T=(R.raw||[]).find(z=>z&&typeof z=="object"&&!Array.isArray(z));if(T){T.message&&i.test(T.message)?(R.displayMessage=T.message,R.displayContext=R.message):T.code&&i.test(String(T.code))?(R.displayMessage=String(T.code),R.displayContext=R.message):T.name&&T.name!=="AnonymousError"&&T.name!=="Error"?(R.displayMessage=T.name,R.displayContext=T.message||R.message):R.displayMessage=R.message,R._status=T.httpStatus||T.status||null,R._url=T.url||null,R._method=T.method||null,R._repoId=T.repoId||T.detail||null,R._detail=T.detail&&T.detail!==R._repoId?T.detail:null;let z=typeof T.stack=="string"?T.stack:null;for(var q=[T.cause,T.err].filter(Boolean),M=0;!z&&M{_==null||_===""||q.push([ee,_])};M("name",T&&T.name),M("code",R.displayMessage||T&&T.message),R._bucket&&M("kind",R._bucket),M("httpStatus",T&&T.httpStatus),T&&T.status&&!T.httpStatus&&M("status",T.status),M("module",R.module);let V=T&&T.detail;if(typeof V=="string"){let ee=V.trim();if(ee[0]==="{"||ee[0]==="[")try{V=JSON.parse(V)}catch{}}if(M("detail",V),M("repoId",T&&T.repoId),M("filePath",T&&T.filePath),M("upstreamStatus",T&&T.upstreamStatus),M("upstreamBody",T&&T.upstreamBody),M("url",R._url),M("err",T&&T.err),M("cause",T&&!T.err&&T.cause),M("ts",R.ts),!q.length)return JSON.stringify(R,null,2);let z=q.reduce((ee,_)=>Math.max(ee,_[0].length),0),ne=["{"];return q.forEach(([ee,_],P)=>{let J=` ${`"${ee}":`.padEnd(z+3," ")} `,X=Pde===0?ce:se+ce).join(`
+`)}else typeof _=="number"||typeof _=="boolean"?W=String(_):W=JSON.stringify(_);ne.push(`${J}${W}${X}`)}),ne.push("}"),ne.join(`
+`)}function k(R){let T=[],q="",M=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,V=0,z;for(;z=M.exec(R);)q+=R.slice(V,z.index),V=M.lastIndex,T.push({key:z[1],op:z[2]||"=",val:z[3]});return q+=R.slice(V),{filters:T,free:q.trim().toLowerCase()}}function y(R,T){for(let q of T.filters){let M=(z,ne,ee)=>{let _=parseFloat(z),P=parseFloat(ne);return ee==="="?String(z)===String(ne):ee==="!="?String(z)!==String(ne):ee===">="?_>=P:ee==="<="?_<=P:ee===">"?_>P:ee==="<"?_T&&V._bucket!==T?!1:y(V,R)),M=e.query.group;if(M){let V=ee=>M==="module"?ee.module:ee.displayMessage||ee.message||"_",z=new Map;for(let ee of q){let _=V(ee);if(z.has(_)){let P=z.get(_);P.count++,P._related.push(ee),new Date(ee.ts)>new Date(P.ts)&&(P.ts=ee.ts,P._url=ee._url,P._status=ee._status),new Date(ee.ts)new Date(_.ts).getTime()>=ne).length;q=Array.from(z.values())}else q=q.map((V,z)=>(V._key="row:"+z+":"+V.ts,V._related=[V],V._firstSeen=V.ts,V._lastHourCount=0,V.count=1,V));e.query.sort==="count"?q.sort((V,z)=>z.count-V.count||new Date(z.ts)-new Date(V.ts)):q.sort((V,z)=>new Date(z.ts)-new Date(V.ts)),e.visible=q}function h(R){let T=R?e.entries.length:0,q=R?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:T,limit:q}}).then(M=>{let V=(M.data.entries||[]).map(u);e.entries=R?e.entries.concat(V):V,e.available=!!M.data.available,e.cap=M.data.max||e.cap,e.total=M.data.total||e.entries.length,E()},M=>console.error(M))}e.loadMore=()=>h(!0),e.canLoadMore=()=>e.entries.length{let T=R.data||{},q=T.prev24h?Math.round((T.last24h-T.prev24h)/T.prev24h*100):0;e.stats={last24h:T.last24h||0,prev24h:T.prev24h||0,delta:q,severity:T.severity||{error:0,warn:0,info:0},unique:T.unique||{error:0,warn:0,info:0},buckets:T.buckets||[],dropped:T.dropped||0}},R=>console.error(R))}function g(){h(),C()}e.barPx=(R,T)=>{let q=e.stats.buckets||[],M=0;for(let ee of q)M=Math.max(M,(ee.error||0)+(ee.warn||0)+(ee.info||0));if(!M)return 0;let V=(R.error||0)+(R.warn||0)+(R.info||0);if(!V)return 0;let z=Math.round(V/M*60),ne=R[T]||0;return Math.round(ne/V*z)},e.bucketTitle=R=>`${new Date(R.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${R.error||0} err \xB7 ${R.warn||0} warn \xB7 ${R.info||0} info`,e.toggle=R=>{e.expanded[R._key]=!e.expanded[R._key]},e.setBucket=R=>{e.query.bucket=R},e.refreshNow=g,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(g,R=>console.error(R))},e.exportCsv=()=>{let R=["ts","level","module","displayMessage","_status","_url","_repoId"],T=[R.join(",")];for(let z of e.visible)T.push(R.map(ne=>{let ee=z[ne]==null?"":String(z[ne]);return/[",\n]/.test(ee)?`"${ee.replace(/"/g,'""')}"`:ee}).join(","));let q=new Blob([T.join(`
+`)],{type:"text/csv;charset=utf-8"}),M=URL.createObjectURL(q),V=document.createElement("a");V.href=M,V.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(V),V.click(),document.body.removeChild(V),URL.revokeObjectURL(M)};function b(R){e.copyHint=`${R} copied`,s.timeout(()=>{e.copyHint=""},1500)}e.copyJson=R=>{navigator.clipboard.writeText(R._detailJson).then(()=>b("JSON"))},e.copyCurl=R=>{if(!R._url)return;let q=`curl -X ${R._method||"GET"} '${window.location.origin}${R._url}'`;navigator.clipboard.writeText(q).then(()=>b("curl"))},g();let S=r(()=>{e.query.autoRefresh&&g()},15e3);e.on("dispose",()=>r.cancel(S)),e.watch("query.search",E),e.watch("query.bucket",E),e.watch("query.sort",E),e.watch("query.group",E)},El=function(e,t,n,r){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null){n.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.performanceError=null,e.formatMs=function(g){return g==null?"":g<1e3?g+" ms":+(g/1e3).toFixed(1)+" s"},e.latencyBound=function(g,b){return g.count?g[b]==null?"> 60 s":"\u2264 "+e.formatMs(g[b]):"No samples"},e.firstByteBound=function(g){return e.latencyBound({count:g.firstByteCount,p95UpperMs:g.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(g){return Math.max(0,Math.round((Date.now()-g.sampledAt)/1e3))},e.peakRss=function(g){return(e.performance.runtimeSeries||[]).filter(function(b){return b.instance===g.instance}).reduce(function(b,S){return Math.max(b,S.rss)},g.memory.rss)},e.performanceWarning=function(g){return e.sampleAge(g)>45||g.droppedBatches||g.droppedMetrics||g.sockets?.closeWait>0||g.eventLoop.p95Ms>100||g.memoryLimitBytes&&g.memory.rss>g.memoryLimitBytes*.8};var s=!1;e.loadPerformance=function(){var g=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==g&&(e.performance=null),!s&&(s=!0,t.get("/api/admin/performance",{params:{minutes:g}}).then(function(b){g===e.performanceMinutes&&(e.performance=b.data,e.performanceError=b.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){g===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){s=!1,g!==e.performanceMinutes&&e.loadPerformance()}))};function i(g){if(g==null)return"\u2014";for(var b=["B","KB","MB","GB","TB"],S=0,R=g;R>=1024&&S0?1:0)+" "+b[S]}e.humanBytes=i;function a(g){if(!g)return"\u2014";var b=Math.floor(g/86400),S=Math.floor(g%86400/3600),R=Math.floor(g%3600/60);return b>0?b+"d "+(S<10?"0":"")+S+"h":S>0?S+"h "+(R<10?"0":"")+R+"m":R+"m"}e.humanDuration=a;function u(g){return g==null?"\u2014":g>=1e6?(g/1e6).toFixed(1)+"M":g>=1e3?(g/1e3).toFixed(1)+"K":String(g)}e.humanNum=u,e.queueTotal=function(g){return g?(g.waiting||0)+(g.active||0)+(g.delayed||0)+(g.failed||0):0},e.statusCount=function(g){if(!e.data||!e.data.repos)return 0;for(var b=e.data.repos.statusBreakdown||[],S=0;Sy[S])&&(y[S]=b[S]),(E[S]==null||b[S]wr(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ml(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>hl(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>al(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ll(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dl(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>pl(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>fr(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>fr(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>fl(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>sl(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>rl(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>il(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ul(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>cl(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>pr(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>pr(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>El(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>vl(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>yl(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>gl(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>bl(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>wl(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>kl(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Tp={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},Ap={key:0},Op={key:1,role:"alert"},Ip={key:2,role:"status"},Pp={key:0},Vp={key:1},qp=["disabled"],Mp=["disabled"],Up=["disabled"],$p={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},Lp={id:"review-policy-title"},Fp={key:0,role:"alert"},zp=["disabled"],Hp=["disabled"],Bp=["disabled"],jp={key:6,role:"status"};function _l(e,t){return l(),d("section",Tp,[t[12]||(t[12]=o("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=o("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=o("p",null,"This records your approval as the repository owner or an authorized coauthor.",-1)),e.user?.username?f("v-if",!0):(l(),d("p",Ap,[...t[6]||(t[6]=[w("Sign in first, then reopen the artifact link from your submission. ",-1),o("a",{href:"/signin"},"Sign in",-1)])])),e.error?(l(),d("p",Op,c(e.error),1)):f("v-if",!0),e.saved?(l(),d("p",Ip,[t[7]||(t[7]=w("Consent recorded. ",-1)),e.handoffEnabled?(l(),d("span",Pp,"Continue to review to finish linking.")):(l(),d("span",Vp,"Artifact linking is not complete. Return to your submission to check its status."))])):f("v-if",!0),e.saved&&e.handoffEnabled?(l(),d("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...n)=>e.continueReview&&e.continueReview(...n)),disabled:e.busy},"Continue to review",8,qp)):f("v-if",!0),e.user?.username&&!e.saved?(l(),d("form",{key:4,onSubmit:t[2]||(t[2]=ie((...n)=>e.loadPreview&&e.loadPreview(...n),["prevent"]))},[t[8]||(t[8]=o("label",{for:"review-repository"},"Anonymous repository ID",-1)),N(o("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=n=>e.repositoryId=n),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,Mp),[[zt,e.repositoryId]]),t[9]||(t[9]=o("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),o("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,Up)],32)):f("v-if",!0),e.preview&&!e.saved?(l(),d("section",$p,[o("h2",Lp,c(e.preview.repositoryName),1),o("p",null,"Access: "+c(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),o("p",null,"Retain until "+c(e.preview.policy.retainUntil)+". Policy version "+c(e.preview.policy.version)+".",1),e.expired?(l(),d("p",Fp,"This preview expired. Open a new artifact link from your submission.")):f("v-if",!0),o("div",null,[o("label",null,[N(o("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=n=>e.acceptAccess=n),disabled:e.busy||e.uncertain||e.expired},null,8,zp),[[Xs,e.acceptAccess]]),t[10]||(t[10]=w(" I approve the access policy above.",-1))])]),o("div",null,[o("label",null,[N(o("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=n=>e.acceptRetention=n),disabled:e.busy||e.uncertain||e.expired},null,8,Hp),[[Xs,e.acceptRetention]]),t[11]||(t[11]=w(" I approve retention until the date above.",-1))])]),o("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...n)=>e.confirmConsent&&e.confirmConsent(...n)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},c(e.uncertain?"Retry confirmation":"Confirm consent"),9,Bp)])):f("v-if",!0),e.busy?(l(),d("p",jp,"Waiting for the server\u2026")):f("v-if",!0)])}var Gp={class:"container paper-page connections-page"},Wp={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Kp={key:1,role:"status"},Yp=["disabled"],Jp={key:3},Qp={key:0,class:"connection-resources"},Xp=["disabled"],Zp=["disabled"],xp={key:0,role:"status"},ef={class:"connections-grid"},tf={key:0},of={class:"connection-title"},nf={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},sf={class:"connection-actions"},rf={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},af={key:1,class:"connection-installations"},lf={key:0},df=["href"],uf={class:"sr-only"},cf=["disabled"],pf={class:"connection-title"},ff={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},mf={key:1,class:"connection-revoke"},hf={key:0},vf=["disabled"],yf={class:"connection-resources"},gf={class:"connection-title"},bf={class:"connection-count"},wf={key:0,class:"connection-empty"},kf={class:"connection-resource-name"},Ef={key:0,class:"connection-resource-actions"},Cf=["disabled","onClick"],_f=["disabled","onClick"],Sf={key:1,class:"connection-help",role:"status"},Nf=["disabled","onClick"];function Sl(e,t){return l(),d("div",Gp,[t[25]||(t[25]=ue('',2)),e.connectionError?(l(),d("p",Wp,c(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",Kp,"Loading your connections\u2026")):f("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,Yp)):f("v-if",!0),e.connections?(l(),d("div",Jp,[e.connections.emailNotificationsEnabled?(l(),d("section",Qp,[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]=ie(n=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=o("label",{for:"notification-email"},"Email address",-1)),N(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,Xp),[[zt,e.notificationEmail]]),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,Zp),e.emailSaved?(l(),d("p",xp,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),o("div",ef,[e.connections.appEnabled?(l(),d("section",tf,[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",of,[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",nf,c(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),o("div",sf,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",rf,[...t[9]||(t[9]=[w("Manage repository access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("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",af,[(l(!0),d(K,null,oe(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",lf," \xB7 Suspended")):f("v-if",!0)]),o("a",{target:"_self",href:"/github/app/install?installationId="+n.id},[t[10]||(t[10]=w("Manage access ",-1)),o("span",uf,"for "+c(n.account),1),t[11]||(t[11]=w(" \u2192",-1))],8,df)]))),128))])):f("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),w(" Refresh access",-1)])],8,cf)])):f("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",pf,[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",ff,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(l(),d("div",mf,[e.connections.gistCount?(l(),d("p",hf,c(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("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,vf)):f("v-if",!0)])):f("v-if",!0)])]),o("section",yf,[o("div",gf,[t[21]||(t[21]=o("h2",null,"Repository connections",-1)),o("span",bf,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?f("v-if",!0):(l(),d("div",wf,[...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(K,null,oe(e.connections.resources,n=>(l(),d("div",{class:"connection-resource",key:n.type+n.id},[o("div",kf,[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",Ef,[o("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!0)},"Check read-only access",8,Cf),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,_f)):f("v-if",!0),n.eligible===!1?(l(),d("span",Sf,"Access unavailable. Allow this repository on GitHub, then check again.")):f("v-if",!0)])):f("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,Nf)):f("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"})]),w(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var Df={class:"container paper-page auth-page"},Rf={class:"auth-layout"},Tf={class:"auth-options"},Af={key:0},Of={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},If={key:1},Pf={key:1},Vf={key:2,class:"auth-legacy"},qf={key:3,role:"status"};function Nl(e,t){return l(),d("div",Df,[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"})]),w(" Anonymous GitHub")],-1)),o("div",Rf,[t[4]||(t[4]=ue('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",Tf,[e.accountRecovery?(l(),d("section",Af,[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",Of,"Verify with previous GitHub connection")):(l(),d("p",If,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Pf,[...t[2]||(t[2]=[ue('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)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Vf,[...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"},[w("Sign in with GitHub "),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",qf,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])])}var Mf={class:"paper-empty"};function Dl(e,t){return l(),d("div",Mf,[...t[0]||(t[0]=[ue('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)])])}var Uf={class:"container paper-page admin-page"},$f={class:"admin-summary"},Lf={class:"summary-total"},Ff=["aria-pressed"],zf={class:"count"},Hf=["aria-pressed"],Bf={class:"count"},jf=["aria-pressed"],Gf={class:"count"},Wf=["aria-pressed"],Kf={class:"count"},Yf=["aria-pressed"],Jf={class:"count"},Qf={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},Xf={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},Zf={class:"admin-filter-row"},xf={class:"search-wrap"},em={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},tm={key:0,class:"admin-search-hint"},om={class:"admin-filter-inline","aria-label":"Pagination"},nm=["disabled"],sm={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},rm=["disabled"],im={key:0,class:"admin-filter-row"},am={class:"admin-active-chips"},lm={class:"key"},dm=["onClick"],um={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},cm={class:"paper-table-head",role:"row"},pm={role:"columnheader"},fm={role:"columnheader"},mm={role:"columnheader"},hm={class:"paper-table-row",role:"row"},vm={class:"cell-anon",role:"cell"},ym={class:"anon-text"},gm=["textContent","href"],bm={class:"anon-sub"},wm={class:"cell-status",role:"cell"},km=["textContent"],Em={class:"cell-views num",role:"cell"},Cm=["textContent","href"],_m={class:"cell-expires",role:"cell"},Sm={class:"cell-actions",role:"cell"},Nm={class:"dropdown"},Dm={class:"dropdown-menu dropdown-menu-right"},Rm=["href"],Tm=["href"],Am=["href"],Om=["onClick"],Im={key:0,class:"paper-table-empty"},Pm={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Vm={style:{"font-size":"12px",color:"var(--ink-muted)"}},qm={key:0,class:"pagination-compact"},Mm=["disabled"],Um=["max"],$m=["disabled"],Lm={class:"admin-filter-inline"},Fm={class:"form-control form-control-sm"};function Rl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",Uf,[t[47]||(t[47]=ue('Admin \xA0/\xA0 Conferences
Conferences
',3)),o("div",$f,[o("span",Lf,c(e.total>=0?e.fmt.number(e.total):"\u2026"),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[13]||(t[13]=w("Ready ",-1)),o("span",zf,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Ff),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[14]||(t[14]=w("Preparing ",-1)),o("span",Bf,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,Hf),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[15]||(t[15]=w("Errored ",-1)),o("span",Gf,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,jf),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[16]||(t[16]=w("Expired ",-1)),o("span",Kf,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,Wf),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[17]||(t[17]=w("Removed ",-1)),o("span",Jf,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,Yf)]),e.fetchError?(l(),d("div",Qf,[t[18]||(t[18]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.fetchError),1)])):f("v-if",!0),N((l(),d("form",Xf,[o("div",Zf,[o("div",xf,[N(o("input",em,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",tm,"/"))]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=s=>e.exportCsv())},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),w(" Export",-1)])]),o("span",om,[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[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,nm),o("span",sm,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[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,rm)])]),e.chips?.length?(l(),d("div",im,[o("div",am,[(l(!0),d(K,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",lm,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,dm)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),o("div",um,[o("div",cm,[o("div",pm,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="name"}]),onClick:t[8]||(t[8]=s=>e.sortBy("name"))},[t[25]||(t[25]=w("Conference ",-1)),e.sortIcon("name")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[24]||(t[24]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",fm,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[9]||(t[9]=s=>e.sortBy("status"))},[t[27]||(t[27]=w("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[26]||(t[26]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",mm,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[10]||(t[10]=s=>e.sortBy("startDate"))},[t[29]||(t[29]=w("Window ",-1)),e.sortIcon("startDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[31]||(t[31]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(K,null,oe(e.filteredConferences,(s,i)=>(l(),d("div",hm,[o("div",vm,[t[33]||(t[33]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[o("use",{href:"#project-icon-conference"})],-1)),o("div",ym,[o("a",{class:"repo-name",textContent:c(s?.name),href:e.safeUrl("/conference/"+s?.conferenceID)},null,8,gm),o("div",bm,[o("span",null,c(s?.conferenceID),1),t[32]||(t[32]=w("\xA0\xB7\xA0",-1)),o("span",null,c(e.fmt?.number(s?.price||0))+" \u20AC",1)])])]),o("div",wm,[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,km)]),o("div",Em,[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 repositories in this conference",textContent:c(e.fmt?.number(s?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+s?.conferenceID)},null,8,Cm)]),o("div",_m,[t[35]||(t[35]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),w(" "+c(e.fmt?.date(s?.startDate))+" \u2013 "+c(e.fmt?.date(s?.endDate)),1)]),o("div",Sm,[o("div",Nm,[t[41]||(t[41]=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",Dm,[o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/edit")},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),w(" Edit",-1)])],8,Rm),o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/")},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),w(" View",-1)])],8,Tm),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+s?.conferenceID)},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),w(" View repositories",-1)])],8,Am),t[40]||(t[40]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeConference(s),["prevent"])},[...t[39]||(t[39]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Remove",-1)])],8,Om),[[j,s?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(l(),d("div",Im,[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No conferences match the current filters.",-1)])])):f("v-if",!0)]),o("div",Pm,[o("span",Vm,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",qm,[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[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),w(" Previous",-1)])],8,Mm),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,Um),[[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[44]||(t[44]=[w("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$m)])):f("v-if",!0),o("span",Lm,[t[46]||(t[46]=o("label",null,"Per page",-1)),N((l(),d("select",Fm,[...t[45]||(t[45]=[ue('',5)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var zm={class:"container paper-page admin-page errors-page"},Hm={class:"errors-header"},Bm={class:"errors-actions"},jm={class:"kpi-grid"},Gm={class:"kpi-card"},Wm={class:"kpi-value"},Km={key:0},Ym={key:1},Jm={class:"kpi-card kpi-error"},Qm={class:"kpi-value"},Xm={class:"kpi-sub"},Zm={class:"kpi-card kpi-warn"},xm={class:"kpi-value"},eh={class:"kpi-sub"},th={class:"kpi-card kpi-info"},oh={class:"kpi-value"},nh={class:"kpi-sub"},sh={class:"kpi-value"},rh={class:"kpi-sub"},ih={key:0,class:"dropped-warn"},ah={class:"volume-chart"},lh={class:"volume-bars"},dh=["title"],uh={class:"errors-toolbar","aria-label":"Error filters"},ch={class:"seg-tabs"},ph={class:"search-wrap"},fh={type:"search",class:"form-control",placeholder:"code:repo_not_found module:route status:>=400",autocomplete:"off"},mh={key:0,class:"filter-count"},hh={class:"select-wrap"},vh={class:"form-control form-control-sm"},yh={class:"select-wrap"},gh={class:"form-control form-control-sm"},bh={class:"autoref"},wh={type:"checkbox"},kh={key:0,class:"admin-empty"},Eh={key:1,class:"errors-pager"},Ch={key:2,class:"errors-list"},_h=["onClick"],Sh={class:"col-when"},Nh={class:"when-rel"},Dh={class:"when-abs"},Rh={class:"col-sev"},Th={class:"sev-label"},Ah={class:"col-mod"},Oh={class:"pill pill-module"},Ih={class:"col-msg"},Ph={class:"msg-code"},Vh={key:0,class:"msg-context"},qh={key:1,class:"msg-detail"},Mh={key:2,class:"msg-url"},Uh={class:"col-count"},$h={key:0,class:"count-pill"},Lh={key:1,class:"count-pill count-pill-muted"},Fh={class:"col-status"},zh={key:0,class:"errors-row-detail"},Hh={class:"detail-tabs"},Bh=["onClick"],jh=["onClick"],Gh=["onClick"],Wh={class:"detail-body"},Kh={class:"detail-main"},Yh={key:0},Jh={key:1,class:"stack-pre"},Qh={key:2,class:"related-list"},Xh={class:"when-abs"},Zh={class:"msg-url"},xh={class:"detail-actions"},ev=["onClick"],tv=["onClick"],ov={key:0,class:"copy-hint"},nv={class:"detail-aside"},sv={class:"aside-block"},rv=["title"],iv={class:"aside-block"},av=["title"],lv={class:"aside-block"},dv={class:"aside-value"},uv={key:0,class:"aside-sub"},cv={key:0,class:"aside-block"},pv=["href"],fv={key:1,class:"aside-block"},mv={class:"aside-value mono"};function Tl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",zm,[t[32]||(t[32]=o("div",{class:"paper-crumbs"},[w("Admin \xA0/\xA0 "),o("span",{class:"here"},"Errors")],-1)),o("header",Hm,[t[10]||(t[10]=o("h1",{class:"paper-page-title"},"Errors",-1)),o("div",Bm,[o("button",{class:"btn btn-sm",type:"button",onClick:t[0]||(t[0]=s=>e.exportCsv())},[...t[8]||(t[8]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),w(" Export CSV",-1)])]),o("button",{class:"btn btn-sm btn-danger-soft",type:"button",onClick:t[1]||(t[1]=s=>e.clearAll())},[...t[9]||(t[9]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Clear all",-1)])])])]),t[33]||(t[33]=ue('',1)),o("section",jm,[o("div",Gm,[t[11]||(t[11]=o("div",{class:"kpi-label"},"Last 24h",-1)),o("div",Wm,c(e.stats?.last24h),1),o("div",{class:A(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h?(l(),d("span",Km,c(e.stats?.delta>0?"+":"")+c(e.stats?.delta)+"% vs yesterday",1)):f("v-if",!0),e.stats?.prev24h?f("v-if",!0):(l(),d("span",Ym,"no prior baseline"))],2)]),o("div",Jm,[t[12]||(t[12]=o("div",{class:"kpi-label"},"Errors (5xx)",-1)),o("div",Qm,c(e.stats?.severity?.error),1),o("div",Xm,c(e.stats?.unique?.error)+" unique",1)]),o("div",Zm,[t[13]||(t[13]=o("div",{class:"kpi-label"},"Warnings (4xx)",-1)),o("div",xm,c(e.stats?.severity?.warn),1),o("div",eh,c(e.stats?.unique?.warn)+" unique",1)]),o("div",th,[t[14]||(t[14]=o("div",{class:"kpi-label"},"Info (auth, 404)",-1)),o("div",oh,c(e.stats?.severity?.info),1),o("div",nh,c(e.stats?.unique?.info)+" unique",1)]),o("div",{class:A(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[15]||(t[15]=o("div",{class:"kpi-label"},"Captured",-1)),o("div",sh,c(e.total),1),o("div",rh,[w(" cap "+c(e.cap)+" \xB7 "+c(e.available?"live":"redis off")+" ",1),e.stats?.dropped>0?(l(),d("span",ih," \xB7 "+c(e.stats?.dropped)+" dropped",1)):f("v-if",!0)])],2)]),o("section",ah,[t[16]||(t[16]=ue('Volume \xB7 24h \xB7 1h bucketserror warn info
',1)),o("div",lh,[(l(!0),d(K,null,oe(e.stats?.buckets,(s,i)=>(l(),d("div",{class:"volume-bar",key:i,title:e.bucketTitle(s)},[o("span",{class:"seg seg-error",style:Ie({height:e.barPx(s,"error")+"px"})},null,4),o("span",{class:"seg seg-warn",style:Ie({height:e.barPx(s,"warn")+"px"})},null,4),o("span",{class:"seg seg-info",style:Ie({height:e.barPx(s,"info")+"px"})},null,4)],8,dh))),128))])]),N((l(),d("form",uh,[o("div",ch,[o("button",{type:"button",class:A({active:e.query?.bucket===""}),onClick:t[2]||(t[2]=s=>e.setBucket(""))},"All",2),o("button",{type:"button",class:A({active:e.query?.bucket==="error"}),onClick:t[3]||(t[3]=s=>e.setBucket("error"))},"5xx",2),o("button",{type:"button",class:A({active:e.query?.bucket==="warn"}),onClick:t[4]||(t[4]=s=>e.setBucket("warn"))},"4xx",2),o("button",{type:"button",class:A({active:e.query?.bucket==="info"}),onClick:t[5]||(t[5]=s=>e.setBucket("info"))},"Info",2)]),o("div",ph,[t[17]||(t[17]=o("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-search"})],-1)),N(o("input",fh,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(l(),d("span",mh,c(e.parsedFilterCount)+" filter"+c(e.parsedFilterCount>1?"s":""),1)):f("v-if",!0)]),o("div",hh,[t[19]||(t[19]=o("label",null,"Sort",-1)),N((l(),d("select",vh,[...t[18]||(t[18]=[o("option",{value:"recent"},"Most recent",-1),o("option",{value:"count"},"Most frequent",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.sort=s},value:e.query?.sort,form:null,options:{}}]])]),o("div",yh,[t[21]||(t[21]=o("label",null,"Group",-1)),N((l(),d("select",gh,[...t[20]||(t[20]=[o("option",{value:""},"Off",-1),o("option",{value:"code"},"By code",-1),o("option",{value:"module"},"By module",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.group=s},value:e.query?.group,form:null,options:{}}]])]),o("label",bh,[N(o("input",wh,null,512),[[n,{state:e.viewState,set:s=>{e.query.autoRefresh=s},value:e.query?.autoRefresh,form:null,options:{}}]]),t[22]||(t[22]=w(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[6]||(t[6]=s=>e.refreshNow()),"aria-label":"Refresh"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])),[[r,e.viewState]]),e.visible?.length?f("v-if",!0):(l(),d("div",kh,"No errors captured.")),e.canLoadMore()&&e.visible?.length?(l(),d("div",Eh,[o("span",null,"Showing "+c(e.entries?.length)+" of "+c(e.total)+" captured",1),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=s=>e.loadMore())},"Load older")])):f("v-if",!0),e.visible?.length?(l(),d("div",Ch,[t[31]||(t[31]=ue('WhenSeverityModuleMessageCountStatus
',1)),(l(!0),d(K,null,oe(e.visible,(s,i)=>(l(),d("div",{class:A(["errors-row",{open:e.expanded[s?._key]}]),key:s?._key},[o("div",{class:"errors-row-main",onClick:a=>e.toggle(s)},[o("div",Sh,[o("div",Nh,c(e.relTime(s?.ts)),1),o("div",Dh,c(e.absTimeShort(s?.ts)),1)]),o("div",Rh,[o("span",{class:A(["sev-dot","sev-"+s?._bucket])},null,2),o("span",Th,c(e.fmt?.title(s?._bucket)),1)]),o("div",Ah,[o("span",Oh,c(s?.module),1)]),o("div",Ih,[o("strong",Ph,c(s?.displayMessage),1),s?.displayContext&&s?.displayContext!==s?.displayMessage?(l(),d("span",Vh,c(s?.displayContext),1)):f("v-if",!0),s?._detail?(l(),d("span",qh,c(s?._detail),1)):f("v-if",!0),s?._url?(l(),d("div",Mh,c(s?._url),1)):f("v-if",!0)]),o("div",Uh,[s?.count>1?(l(),d("span",$h,"\xD7"+c(s?.count),1)):f("v-if",!0),s?.count===1?(l(),d("span",Lh,"\xD71")):f("v-if",!0)]),o("div",Fh,[s?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+s?._bucket])},c(s?._status),3)):f("v-if",!0)])],8,_h),e.expanded[s?._key]?(l(),d("div",zh,[o("div",Hh,[o("button",{type:"button",class:A({active:e.detailTab[s?._key]==="raw"||!e.detailTab[s?._key]}),onClick:a=>e.detailTab[s._key]="raw"},"Raw",10,Bh),s?._stack?(l(),d("button",{key:0,type:"button",class:A({active:e.detailTab[s?._key]==="stack"}),onClick:a=>e.detailTab[s._key]="stack"},"Stack",10,jh)):f("v-if",!0),s?.count>1?(l(),d("button",{key:1,type:"button",class:A({active:e.detailTab[s?._key]==="related"}),onClick:a=>e.detailTab[s._key]="related"},"Related ("+c(s?.count)+")",11,Gh)):f("v-if",!0)]),o("div",Wh,[o("div",Kh,[(e.detailTab[s?._key]||"raw")==="raw"?(l(),d("pre",Yh,c(s?._detailJson),1)):f("v-if",!0),e.detailTab[s?._key]==="stack"?(l(),d("pre",Jh,c(s?._stack),1)):f("v-if",!0),e.detailTab[s?._key]==="related"?(l(),d("div",Qh,[(l(!0),d(K,null,oe(s?._related,(a,u)=>(l(),d("div",{class:"related-row",key:u},[o("span",Xh,c(e.absTimeShort(a?.ts)),1),o("span",Zh,c(a?._url),1),a?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+a?._bucket])},c(a?._status),3)):f("v-if",!0)]))),128))])):f("v-if",!0),o("div",xh,[o("button",{class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:a=>e.copyCurl(s)},[...t[24]||(t[24]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),w(" Copy curl",-1)])],8,ev),o("button",{class:"btn btn-sm",type:"button",onClick:a=>e.copyJson(s)},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-clipboard"})],-1),w(" Copy JSON",-1)])],8,tv),e.copyHint?(l(),d("span",ov,c(e.copyHint),1)):f("v-if",!0)])]),o("aside",nv,[o("div",sv,[t[26]||(t[26]=o("div",{class:"aside-label"},"First seen",-1)),o("div",{class:"aside-value",title:e.absTime(s?._firstSeen)},c(e.relTime(s?._firstSeen)),9,rv)]),o("div",iv,[t[27]||(t[27]=o("div",{class:"aside-label"},"Last seen",-1)),o("div",{class:"aside-value",title:e.absTime(s?.ts)},c(e.relTime(s?.ts)),9,av)]),o("div",lv,[t[28]||(t[28]=o("div",{class:"aside-label"},"Occurrences",-1)),o("div",dv,[w(c(s?.count),1),s?._lastHourCount?(l(),d("span",uv," \xB7 "+c(s?._lastHourCount)+" this hour",1)):f("v-if",!0)])]),s?._repoId?(l(),d("div",cv,[t[29]||(t[29]=o("div",{class:"aside-label"},"Repository",-1)),o("a",{class:"aside-value",href:e.safeUrl("/r/"+s?._repoId)},c(s?._repoId),9,pv)])):f("v-if",!0),s?._url?(l(),d("div",fv,[t[30]||(t[30]=o("div",{class:"aside-label"},"URL",-1)),o("div",mv,c(s?._url),1)])):f("v-if",!0)])])])):f("v-if",!0)],2))),128))])):f("v-if",!0)])}var hv={class:"container paper-page admin-page overview-page"},vv={key:0,class:"admin-empty"},yv={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},gv={key:2},bv={class:"ov-kpi-row"},wv={class:"ov-kpi-card"},kv={class:"ov-kpi-value"},Ev={class:"ov-kpi-sub"},Cv={class:"ov-kpi-card"},_v={class:"ov-kpi-sub"},Sv={class:"ov-kpi-card"},Nv={class:"ov-kpi-sub"},Dv={class:"ov-kpi-card"},Rv={class:"ov-kpi-sub"},Tv={class:"ov-kpi-card"},Av={class:"ov-kpi-value"},Ov={class:"ov-kpi-sub"},Iv={class:"ov-daily-row"},Pv={class:"ov-daily-card"},Vv={class:"ov-daily-value"},qv={class:"ov-daily-card"},Mv={class:"ov-daily-value"},Uv={class:"ov-daily-sub"},$v={class:"ov-daily-card"},Lv={class:"ov-daily-value"},Fv={class:"ov-chart-row"},zv={class:"ov-chart-card"},Hv={key:0,class:"ov-spark-bars"},Bv=["data-tip","aria-label"],jv={key:1,class:"ov-spark-x"},Gv={class:"ov-chart-card"},Wv={key:0,class:"ov-spark-bars"},Kv=["data-tip","aria-label"],Yv={key:1,class:"ov-spark-x"},Jv={class:"ov-chart-card"},Qv={class:"ov-chart-head"},Xv={class:"ov-chart-legend"},Zv={key:0,class:"ov-spark-bars"},xv=["data-tip","aria-label"],ey={key:1,class:"ov-spark-x"},ty={class:"ov-chart-card"},oy={key:0,class:"ov-spark-bars"},ny=["data-tip","aria-label"],sy={key:1,class:"ov-spark-x"},ry={class:"ov-triple-row"},iy={class:"ov-panel-card"},ay={class:"ov-panel-head"},ly={class:"ov-panel-meta"},dy={class:"ov-stacked-bar"},uy={class:"ov-bar-legend"},cy={href:"/admin/repositories",class:"ov-legend-item"},py={class:"ov-legend-n"},fy={href:"/admin/repositories",class:"ov-legend-item"},my={class:"ov-legend-n"},hy={href:"/admin/repositories",class:"ov-legend-item"},vy={class:"ov-legend-n"},yy={href:"/admin/repositories",class:"ov-legend-item"},gy={class:"ov-legend-n"},by={href:"/admin/repositories",class:"ov-legend-item"},wy={class:"ov-legend-n"},ky={class:"ov-panel-card"},Ey={class:"ov-panel-head"},Cy={class:"ov-panel-meta"},_y={class:"ov-error-bars"},Sy={class:"ov-ebar-row"},Ny={class:"ov-ebar-track"},Dy={class:"ov-ebar-n"},Ry={class:"ov-ebar-row"},Ty={class:"ov-ebar-track"},Ay={class:"ov-ebar-n"},Oy={class:"ov-ebar-row"},Iy={class:"ov-ebar-track"},Py={class:"ov-ebar-n"},Vy={key:0,class:"ov-panel-foot"},qy={href:"/admin/errors"},My={class:"ov-panel-card"},Uy={class:"ov-routes-table"},$y={class:"ov-route-row",href:"/admin/queues"},Ly={class:"ov-route-n"},Fy={class:"ov-route-n"},zy={class:"ov-route-row",href:"/admin/queues"},Hy={class:"ov-route-n"},By={class:"ov-route-n"},jy={class:"ov-route-row",href:"/admin/queues"},Gy={class:"ov-route-n"},Wy={class:"ov-route-n"},Ky={class:"ov-services-card"},Yy={class:"ov-services-head"},Jy={class:"ov-panel-meta"},Qy={class:"ov-services-grid"},Xy={class:"ov-svc"},Zy={class:"ov-svc-info"},xy={class:"ov-svc-meta"},eg={class:"ov-svc-detail"},tg={class:"ov-svc"},og={class:"ov-svc-info"},ng={key:0,class:"ov-svc-meta"},sg={key:1,class:"ov-svc-meta"},rg={class:"ov-svc"},ig={class:"ov-svc-info"},ag={key:0,class:"ov-svc-meta"},lg={key:1,class:"ov-svc-meta"},dg={class:"ov-svc"},ug={class:"ov-svc-info"},cg={key:0,class:"ov-svc-meta"},pg={key:1,class:"ov-svc-meta"},fg={class:"ov-svc"},mg={class:"ov-svc-info"},hg={class:"ov-svc-meta"},vg={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},yg={class:"ov-panel-head ov-performance-head"},gg={class:"ov-performance-window"},bg={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},wg={key:1,class:"ov-performance-empty",role:"status"},kg={key:2},Eg={class:"paper-tabs ov-performance-tabs",role:"tablist","aria-label":"Performance metrics"},Cg=["aria-selected","tabindex"],_g=["aria-selected","tabindex"],Sg=["aria-selected","tabindex"],Ng={id:"performance-routes",role:"tabpanel","aria-labelledby":"performance-routes-tab"},Dg={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},Rg={class:"ov-metrics-table"},Tg={scope:"row",class:"ov-metric-name"},Ag={class:"num"},Og={class:"num"},Ig={class:"num"},Pg={class:"num"},Vg={class:"num"},qg={key:1,class:"ov-performance-empty"},Mg={id:"performance-processes",role:"tabpanel","aria-labelledby":"performance-processes-tab"},Ug={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},$g={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},Lg={class:"ov-metrics-table"},Fg={scope:"row",class:"ov-metric-name"},zg={key:0,class:"ov-metric-warn"},Hg={class:"num"},Bg={class:"num"},jg={class:"num"},Gg={class:"num"},Wg={class:"num"},Kg={class:"num"},Yg={class:"num"},Jg={class:"num"},Qg={id:"performance-stages",role:"tabpanel","aria-labelledby":"performance-stages-tab"},Xg={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},Zg={class:"ov-metrics-table"},xg={scope:"row",class:"ov-metric-name"},eb={class:"num"},tb={class:"num"},ob={class:"num"},sb={key:1,class:"ov-performance-empty"};function Al(e,t){return l(),d("div",hv,[t[65]||(t[65]=ue('Admin \xA0/\xA0 Overview
',3)),e.loading?(l(),d("div",vv,"Loading overview\u2026")):f("v-if",!0),e.error?(l(),d("div",yv,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.error),1)])):f("v-if",!0),e.data?(l(),d("div",gv,[f(" \u2500\u2500 Top KPI row \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\u2500 "),o("section",bv,[o("div",wv,[t[10]||(t[10]=o("div",{class:"ov-kpi-label"},[w("Repositories "),o("span",{class:"ov-dot ov-dot-ok"})],-1)),o("div",kv,c(e.humanNum(e.data?.repos?.total)),1),o("div",Ev,"+"+c(e.data?.repos?.newRepos24h)+" \xB7 last 24h",1)]),o("div",Cv,[t[11]||(t[11]=o("div",{class:"ov-kpi-label"},"CPU",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>80}])},c(e.data?.system?.cpuPercent)+"%",3),o("div",_v,c(e.data?.system?.cpuCount)+" cores \xB7 load "+c(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)]),o("div",Sv,[t[12]||(t[12]=o("div",{class:"ov-kpi-label"},"Memory",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>85}])},c(e.data?.system?.memPercent)+"%",3),o("div",Nv,c(e.humanBytes(e.data?.system?.memUsed))+" / "+c(e.humanBytes(e.data?.system?.memTotal)),1)]),o("div",Dv,[t[13]||(t[13]=o("div",{class:"ov-kpi-label"},"Disk",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>85}])},c(e.data?.system?.diskPercent)+"%",3),o("div",Rv,c(e.humanBytes(e.data?.system?.diskUsed))+" / "+c(e.humanBytes(e.data?.system?.diskTotal))+" \xB7 "+c(e.data?.system?.diskMount),1)]),o("div",Tv,[t[14]||(t[14]=o("div",{class:"ov-kpi-label"},"Uptime",-1)),o("div",Av,c(e.humanDuration(e.data?.system?.uptime)),1),o("div",Ov,c(e.data?.system?.nodeVersion)+" \xB7 "+c(e.data?.system?.platform),1)])]),f(" \u2500\u2500 Daily activity highlights \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",Iv,[o("div",Pv,[t[15]||(t[15]=o("div",{class:"ov-daily-label"},"New repos today",-1)),o("div",Vv,"+"+c(e.fmt?.number(e.data?.daily?.today?.repositories)),1),t[16]||(t[16]=o("div",{class:"ov-daily-sub"},"since yesterday",-1))]),o("div",qv,[t[17]||(t[17]=o("div",{class:"ov-daily-label"},"New users today",-1)),o("div",Mv,"+"+c(e.fmt?.number(e.data?.daily?.today?.users)),1),o("div",Uv,c(e.fmt?.number(e.data?.users?.total))+" total users",1)]),o("div",$v,[t[18]||(t[18]=o("div",{class:"ov-daily-label"},"Page views today",-1)),o("div",Lv,"+"+c(e.fmt?.number(e.data?.daily?.today?.pageViews)),1),t[19]||(t[19]=o("div",{class:"ov-daily-sub"},"since yesterday",-1))])]),f(" \u2500\u2500 Daily charts \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",Fv,[o("div",zv,[t[20]||(t[20]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"Daily page views \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-accent"}),w("views/day")])],-1)),e.data?.history?.length?(l(),d("div",Hv,[(l(!0),d(K,null,oe(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyPageViews)+" views","aria-label":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyPageViews)+" views"},[o("span",{class:"ov-spark-fill",style:Ie({height:e.historyBarH(n,"dailyPageViews")+"px"})},null,4)],8,Bv))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",jv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),o("div",Gv,[t[21]||(t[21]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"New repos \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-ok-fill"}),w("repos/day")])],-1)),e.data?.history?.length?(l(),d("div",Wv,[(l(!0),d(K,null,oe(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyRepositories)+" repos","aria-label":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyRepositories)+" repos"},[o("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Ie({height:e.historyBarH(n,"dailyRepositories")+"px"})},null,4)],8,Kv))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",Yv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),o("div",Jv,[o("div",Qv,[t[23]||(t[23]=o("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),o("span",Xv,[t[22]||(t[22]=o("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),w("total users \xB7 "+c(e.fmt?.number(e.historyRange("nbUsers").min))+"\u2013"+c(e.fmt?.number(e.historyRange("nbUsers").max)),1)])]),e.data?.history?.length?(l(),d("div",Zv,[(l(!0),d(K,null,oe(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": "+e.fmt?.number(n?.nbUsers)+" users","aria-label":e.historyLabel(n)+": "+e.fmt?.number(n?.nbUsers)+" users"},[o("span",{class:"ov-spark-fill ov-spark-fill-user",style:Ie({height:e.historyRangeH(n,"nbUsers")+"px"})},null,4)],8,xv))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",ey,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),o("div",ty,[t[24]||(t[24]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"New users \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-new-user-fill"}),w("users/day")])],-1)),e.data?.history?.length?(l(),d("div",oy,[(l(!0),d(K,null,oe(e.data?.history,(n,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyUsers)+" users","aria-label":e.historyLabel(n)+": +"+e.fmt?.number(n?.dailyUsers)+" users"},[o("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Ie({height:e.historyBarH(n,"dailyUsers")+"px"})},null,4)],8,ny))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",sy,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])]),f(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",ry,[f(" Repo status breakdown "),o("div",iy,[o("div",ay,[t[25]||(t[25]=o("span",{class:"ov-panel-title"},"Repo status",-1)),o("span",ly,c(e.fmt?.number(e.data?.repos?.total))+" total",1)]),o("div",dy,[o("span",{class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Ie({width:e.barPct("ready")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Ie({width:e.barPct("preparing")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-error",title:"Error",style:Ie({width:e.barPct("error")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-expired",title:"Expired",style:Ie({width:e.barPct("expired")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-removed",title:"Removed",style:Ie({width:e.barPct("removed")+"%"})},null,4)]),o("div",uy,[o("a",cy,[t[26]||(t[26]=o("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[27]||(t[27]=w(" ready ",-1)),o("span",py,c(e.fmt?.number(e.statusCount("ready"))),1)]),o("a",fy,[t[28]||(t[28]=o("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[29]||(t[29]=w(" preparing ",-1)),o("span",my,c(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),o("a",hy,[t[30]||(t[30]=o("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[31]||(t[31]=w(" error ",-1)),o("span",vy,c(e.fmt?.number(e.statusCount("error"))),1)]),o("a",yy,[t[32]||(t[32]=o("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[33]||(t[33]=w(" expired ",-1)),o("span",gy,c(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),o("a",by,[t[34]||(t[34]=o("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[35]||(t[35]=w(" removed ",-1)),o("span",wy,c(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),f(" Error breakdown "),o("div",ky,[o("div",Ey,[t[36]||(t[36]=o("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),o("span",Cy,c(e.data?.errors?.last24h)+" total",1)]),o("div",_y,[o("div",Sy,[t[37]||(t[37]=o("span",{class:"ov-ebar-label"},"5xx",-1)),o("span",Ny,[o("span",{class:"ov-ebar-fill ov-ebar-error",style:Ie({width:e.errPct("error")+"%"})},null,4)]),o("span",Dy,c(e.data?.errors?.severity?.error),1)]),o("div",Ry,[t[38]||(t[38]=o("span",{class:"ov-ebar-label"},"4xx",-1)),o("span",Ty,[o("span",{class:"ov-ebar-fill ov-ebar-warn",style:Ie({width:e.errPct("warn")+"%"})},null,4)]),o("span",Ay,c(e.data?.errors?.severity?.warn),1)]),o("div",Oy,[t[39]||(t[39]=o("span",{class:"ov-ebar-label"},"Info",-1)),o("span",Iy,[o("span",{class:"ov-ebar-fill ov-ebar-info",style:Ie({width:e.errPct("info")+"%"})},null,4)]),o("span",Py,c(e.data?.errors?.severity?.info),1)])]),e.data?.repos?.recentErrors24h?(l(),d("div",Vy,[o("a",qy,c(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):f("v-if",!0)]),f(" Top routes / queues "),o("div",My,[t[44]||(t[44]=o("div",{class:"ov-panel-head"},[o("span",{class:"ov-panel-title"},"Queues"),o("span",{class:"ov-panel-meta"},"by state")],-1)),o("div",Uy,[t[43]||(t[43]=ue('QueueActiveWaitFailed
',1)),o("a",$y,[t[40]||(t[40]=o("span",{class:"ov-route-name"},"download",-1)),o("span",Ly,c(e.data?.queues?.download?.active),1),o("span",Fy,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",zy,[t[41]||(t[41]=o("span",{class:"ov-route-name"},"remove",-1)),o("span",Hy,c(e.data?.queues?.remove?.active),1),o("span",By,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",jy,[t[42]||(t[42]=o("span",{class:"ov-route-name"},"cache",-1)),o("span",Gy,c(e.data?.queues?.cache?.active),1),o("span",Wy,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)])])])]),f(" \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",Ky,[o("div",Yy,[t[45]||(t[45]=o("span",{class:"ov-panel-title"},"Services",-1)),o("span",Jy,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),o("div",Qy,[o("div",Xy,[t[47]||(t[47]=o("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),o("div",Zy,[t[46]||(t[46]=o("span",{class:"ov-svc-name"},"web",-1)),o("span",xy,c(e.data?.system?.nodeVersion),1)]),o("span",eg,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),o("div",tg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",og,[t[48]||(t[48]=o("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",ng,c(e.queueTotal(e.data?.queues?.download))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(l(),d("span",sg,"idle"))])]),o("div",rg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ig,[t[49]||(t[49]=o("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",ag,c(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(l(),d("span",lg,"idle"))])]),o("div",dg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ug,[t[50]||(t[50]=o("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",cg,c(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(l(),d("span",pg,"idle"))])]),o("div",fg,[o("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),o("div",mg,[t[51]||(t[51]=o("span",{class:"ov-svc-name"},"errors",-1)),o("span",hg,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):f("v-if",!0),o("section",vg,[o("div",yg,[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",gg,[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]=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),[[Xn,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",bg,[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")])):f("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",wg,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(l(),d("div",kg,[o("div",Eg,[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,Cg),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,_g),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,Sg)]),N(o("div",Ng,[e.performance.routes?.length?(l(),d("div",Dg,[o("table",Rg,[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(K,null,oe(e.performance.routes,n=>(l(),d("tr",{key:n.service+n.method+n.route},[o("th",Tg,[o("span",null,c(n.route),1),o("small",null,c(n.service)+" \xB7 "+c(n.method),1)]),o("td",Ag,c(e.fmt.number(n.count)),1),o("td",Og,c(e.formatMs(n.avgMs)),1),o("td",Ig,c(e.firstByteBound(n)),1),o("td",Pg,c(e.latencyBound(n,"p95UpperMs")),1),o("td",Vg,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",qg,"No recorded requests in this time range yet."))],512),[[j,e.performanceTab==="routes"]]),N(o("div",Mg,[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",$g,[o("table",Lg,[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(K,null,oe(e.performance.instances,n=>(l(),d("tr",{key:n.instance,class:A({"ov-metric-warning-row":e.performanceWarning(n)})},[o("th",Fg,[o("span",null,c(n.instance),1),e.performanceWarning(n)?(l(),d("small",zg,[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),w(" Needs attention",-1)])])):f("v-if",!0)]),o("td",Hg,[w(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",Bg,c(n.cpuPercent.toFixed(1))+"%",1),o("td",jg,c(n.eventLoop.p95Ms.toFixed(1))+" ms",1),o("td",Gg,c(n.activeRequests),1),o("td",Wg,c(n.sockets?.descriptors??"Unavailable")+" / "+c(n.sockets?.closeWait??"Unavailable"),1),o("td",Kg,c(n.workers?.running??0)+" / "+c(n.workers?.waiting??0),1),o("td",Yg,c(e.sampleAge(n))+" s",1),o("td",Jg,c(n.droppedBatches)+" / "+c(n.droppedMetrics),1)],2))),128))])])])):(l(),d("div",Ug,"No recent process samples. Monitoring coverage is incomplete."))],512),[[j,e.performanceTab==="processes"]]),N(o("div",Qg,[e.performance.stages?.some(n=>n.metric!=="first_byte")?(l(),d("div",Xg,[o("table",Zg,[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(K,null,oe(e.performance.stages.filter(n=>n.metric!=="first_byte"),n=>(l(),d("tr",{key:n.service+n.metric},[o("th",xg,[o("span",null,c(n.metric),1),o("small",null,c(n.service),1)]),o("td",eb,c(e.fmt.number(n.count)),1),o("td",tb,c(e.formatMs(n.avgMs)),1),o("td",ob,c(e.latencyBound(n,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",sb,"No recorded work stages or cache results in this time range yet."))],512),[[j,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))])):f("v-if",!0)])])}var rb={class:"container paper-page admin-page"},ib={class:"q-header"},ab={class:"q-header-actions"},lb={class:"q-range-btns"},db={class:"q-cards"},ub=["aria-pressed","onKeydown","onClick"],cb={class:"q-card-head"},pb=["textContent"],fb=["textContent"],mb={class:"q-card-sub"},hb={key:0,class:"q-card-bar"},vb={key:0,class:"q-detail"},yb={class:"q-throughput"},gb={class:"q-section-label"},bb={class:"q-section-right"},wb={class:"q-stats-panel"},kb={class:"q-section-label"},Eb={class:"q-stats-grid"},Cb={class:"q-stat"},_b=["textContent"],Sb={class:"q-stat"},Nb=["textContent"],Db={class:"q-stat"},Rb=["textContent"],Tb={class:"q-stat"},Ab=["textContent"],Ob={class:"q-stat"},Ib=["textContent"],Pb={class:"q-stat"},Vb=["textContent"],qb={class:"q-stats-actions"},Mb=["disabled"],Ub={class:"q-jobs"},$b={class:"q-jobs-header"},Lb={class:"q-section-label"},Fb={class:"q-state-filters"},zb={class:"q-state-toggle"},Hb={type:"checkbox"},Bb={class:"q-search-row"},jb={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},Gb={class:"q-auto-refresh"},Wb={type:"checkbox"},Kb={key:0,class:"q-table"},Yb=["onClick"],Jb={class:"q-cell-state"},Qb=["textContent"],Xb=["textContent"],Zb={class:"q-cell-id"},xb=["textContent","href"],e1={class:"q-cell-payload"},t1=["textContent"],o1={key:0,class:"q-payload-detail"},n1=["textContent"],s1=["textContent"],r1={class:"q-cell-progress"},i1={key:0,class:"q-progress-wrap"},a1=["textContent"],l1={class:"q-cell-actions"},d1=["onClick"],u1=["onClick"],c1={key:0,class:"q-detail-row"},p1={colspan:"7"},f1={class:"q-job-detail"},m1={class:"q-job-detail-grid"},h1={class:"q-job-detail-item"},v1={class:"q-job-detail-value"},y1=["textContent","href"],g1={class:"q-job-detail-item"},b1={class:"q-job-detail-value"},w1=["textContent"],k1={key:0,class:"q-job-detail-item"},E1=["textContent"],C1={key:1,class:"q-job-detail-item"},_1=["textContent"],S1={key:2,class:"q-job-detail-item"},N1={class:"q-job-detail-value"},D1={key:3,class:"q-job-detail-item"},R1=["textContent"],T1={key:4,class:"q-job-detail-item"},A1=["textContent"],O1={key:5,class:"q-job-detail-item"},I1=["textContent"],P1={key:6,class:"q-job-detail-item"},V1=["textContent"],q1={key:7,class:"q-job-detail-item"},M1=["textContent"],U1={key:0,class:"q-job-detail-error"},$1=["textContent"],L1={key:1},F1=["textContent"],z1={class:"q-job-detail-actions"},H1=["onClick"],B1=["onClick"],j1=["href"],G1={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},W1={key:0},K1={key:1};function Ol(e,t){let n=ve("field");return l(),d("div",rb,[t[48]||(t[48]=o("div",{class:"paper-crumbs"},[w("Admin \xA0/\xA0 "),o("span",{class:"here"},"Queues")],-1)),o("div",ib,[t[12]||(t[12]=o("h1",{class:"paper-page-title"},"Queues",-1)),o("div",ab,[o("div",lb,[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]=ue('',1)),f(" Queue overview cards "),o("div",db,[(l(!0),d(K,null,oe(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:[To(ie(i=>e.selectQueue(r.key),["prevent"]),["enter"]),To(ie(i=>e.selectQueue(r.key),["prevent"]),["space"])],onClick:i=>e.selectQueue(r.key)},[o("div",cb,[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,pb)]),o("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,fb),o("div",mb,[o("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",hb,[o("div",{class:"q-card-bar-fill",style:Ie({width:r?.counts?.active/((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0)||1)*100+"%"})},null,4)])):f("v-if",!0)])],42,ub))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",vb,[o("div",yb,[o("div",gb,[w(c(e.selectedQueue)+" \xB7 throughput ",1),o("span",bb,[t[13]||(t[13]=o("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=w(" completed ",-1)),t[15]||(t[15]=o("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=w(" failed ",-1)),t[17]||(t[17]=o("span",{class:"q-legend-exec"},"- -",-1)),w(" 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",wb,[o("div",kb,c(e.selectedQueue)+" \xB7 stats",1),o("div",Eb,[o("div",Cb,[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,_b)]),o("div",Sb,[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,Nb)]),o("div",Db,[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,Rb)]),o("div",Tb,[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,Ab)]),o("div",Ob,[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,Ib)]),o("div",Pb,[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,Vb)])]),o("div",qb,[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,Mb),o("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=r=>e.emptyQueue())},"Empty")])])])):f("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)),w(" "+c(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),o("div",Ub,[o("div",$b,[o("div",Lb,"All jobs \xB7 "+c(e.selectedQueue),1),o("div",Fb,[(l(!0),d(K,null,oe(e.allStates,(r,s)=>(l(),d("label",zb,[N(o("input",Hb,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",Bb,[N(o("input",jb,null,512),[[n,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),o("label",Gb,[N(o("input",Wb,null,512),[[n,{state:e.viewState,set:r=>{e.query.autoRefresh=r},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=w(" 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",Kb,[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(K,null,oe(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",Jb,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,Qb),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,Xb)):f("v-if",!0)]),o("td",Zb,[(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,xb)]),o("td",e1,[o("span",{textContent:c(r?.name||"anonymize")},null,8,t1),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",o1," \xB7 "+c(r?.data?.repoId),1)):f("v-if",!0)]),o("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,n1),o("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,s1),o("td",r1,[e.jobProgressPct(r)!==null?(l(),d("div",i1,[o("div",{class:"q-progress-bar",style:Ie({"--pct":e.jobProgressPct(r)+"%"})},null,4),o("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,a1)])):f("v-if",!0)]),o("td",l1,[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,d1)):f("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,u1)])],10,Yb),e.expanded[r?.id]?(l(),d("tr",c1,[o("td",p1,[o("div",f1,[o("div",m1,[o("div",h1,[t[31]||(t[31]=o("span",{class:"q-job-detail-label"},"Job id",-1)),o("span",v1,[o("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,y1)])]),o("div",g1,[t[32]||(t[32]=o("span",{class:"q-job-detail-label"},"State",-1)),o("span",b1,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,w1)])]),r?.data?.repoId?(l(),d("div",k1,[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,E1)])):f("v-if",!0),r?.timestamp?(l(),d("div",C1,[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,_1)])):f("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",S1,[t[35]||(t[35]=o("span",{class:"q-job-detail-label"},"Retry at",-1)),o("span",N1,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):f("v-if",!0),r?.processedOn?(l(),d("div",D1,[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,R1)])):f("v-if",!0),r?.finishedOn?(l(),d("div",T1,[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,A1)])):f("v-if",!0),r?.attemptsMade?(l(),d("div",O1,[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,I1)])):f("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",P1,[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,V1)])):f("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",q1,[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,M1)])):f("v-if",!0)]),r?.failedReason?(l(),d("div",U1,[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,$1)])):f("v-if",!0),r?.stacktrace?.length?(l(),d("div",L1,[t[42]||(t[42]=o("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(l(!0),d(K,null,oe(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[o("code",{textContent:c(i)},null,8,F1)]))),128))])):f("v-if",!0),o("div",z1,[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),w(" Retry",-1)])],8,H1)):f("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),w(" Remove",-1)])],8,B1),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),w(" View repo",-1)])],8,j1)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(l(),d("div",G1,[t[47]||(t[47]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(l(),d("span",W1,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",K1,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var Y1={class:"container paper-page admin-page"},J1={class:"admin-summary"},Q1={class:"summary-total"},X1={class:"summary-meta"},Z1=["aria-pressed"],x1={class:"count"},ew=["aria-pressed"],tw={class:"count"},ow=["aria-pressed"],nw={class:"count"},sw=["aria-pressed"],rw={class:"count"},iw=["aria-pressed"],aw={class:"count"},lw={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},dw={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},uw={class:"admin-filter-row"},cw={class:"search-wrap"},pw={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},fw={key:0,class:"admin-search-hint"},mw={class:"admin-filter-inline"},hw={type:"text",class:"form-control form-control-sm",placeholder:"username"},vw={class:"admin-filter-inline"},yw={type:"text",class:"form-control form-control-sm",placeholder:"ID"},gw={class:"admin-filter-inline","aria-label":"Pagination"},bw=["disabled"],ww={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},kw=["disabled"],Ew={key:0,class:"admin-filter-row"},Cw={class:"admin-active-chips"},_w={class:"key"},Sw=["onClick"],Nw={key:1,class:"bulk-bar"},Dw={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},Rw={class:"paper-table-head",role:"row"},Tw={role:"columnheader",style:{width:"28px"}},Aw=["checked"],Ow={role:"columnheader"},Iw={role:"columnheader"},Pw={role:"columnheader",class:"num"},Vw={role:"columnheader"},qw={role:"cell",style:{width:"28px"}},Mw={type:"checkbox","aria-label":"Select repository"},Uw={class:"cell-anon",role:"cell"},$w={class:"anon-text"},Lw=["textContent","href"],Fw={class:"anon-sub"},zw=["textContent","href"],Hw={key:0},Bw=["textContent","href"],jw={key:1},Gw=["textContent","href"],Ww={key:2},Kw={class:"cell-status",role:"cell"},Yw={class:"status-line"},Jw=["textContent"],Qw=["textContent","title"],Xw={class:"cell-views num",role:"cell"},Zw=["textContent"],xw={class:"cell-expires",role:"cell"},ek=["textContent"],tk={class:"cell-actions",role:"cell"},ok={class:"dropdown"},nk={class:"dropdown-menu dropdown-menu-right"},sk=["href"],rk=["href"],ik=["href"],ak=["onClick"],lk=["onClick"],dk=["onClick"],uk=["onClick"],ck=["onClick"],pk=["onClick"],fk={key:0,class:"paper-table-empty"},mk={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},hk={style:{"font-size":"12px",color:"var(--ink-muted)"}},vk={key:0,class:"pagination-compact"},yk=["disabled"],gk=["max"],bk=["disabled"],wk={class:"admin-filter-inline"},kk={class:"form-control form-control-sm"};function Il(e,t){let n=ve("field"),r=ve("form");return l(),d("div",Y1,[t[69]||(t[69]=ue('Admin \xA0/\xA0 Repositories
Repositories
',3)),o("div",J1,[o("span",Q1,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("span",X1,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]=w("Ready ",-1)),o("span",x1,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Z1),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]=w("Preparing ",-1)),o("span",tw,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,ew),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]=w("Errored ",-1)),o("span",nw,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,ow),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]=w("Expired ",-1)),o("span",rw,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,sw),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]=w("Removed ",-1)),o("span",aw,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,iw)]),e.fetchError?(l(),d("div",lw,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.fetchError),1)])):f("v-if",!0),N((l(),d("form",dw,[f(" Row 1: search + scoped inputs + headline actions "),o("div",uw,[o("div",cw,[N(o("input",pw,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",fw,"/"))]),o("span",mw,[t[24]||(t[24]=o("label",null,"Owner",-1)),N(o("input",hw,null,512),[[n,{state:e.viewState,set:s=>{e.query.owner=s},value:e.query?.owner,form:null,options:{}}]])]),o("span",vw,[t[25]||(t[25]=o("label",null,"Conference",-1)),N(o("input",yw,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),w(" Export",-1)])]),o("span",gw,[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,bw),o("span",ww,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,kw)])]),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",Ew,[o("div",Cw,[(l(!0),d(K,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",_w,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,Sw)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",Nw,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=w(" 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),w(" 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),w(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=s=>e.clearSelection())},"Clear")])):f("v-if",!0),o("div",Dw,[o("div",Rw,[o("div",Tw,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,Aw)]),o("div",Ow,[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]=w("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)):f("v-if",!0)],2)]),o("div",Iw,[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]=w("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)):f("v-if",!0)],2)]),o("div",Pw,[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]=w("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)):f("v-if",!0)],2)]),o("div",Vw,[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]=w("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)):f("v-if",!0)],2)]),t[42]||(t[42]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(K,null,oe(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",qw,[N(o("input",Mw,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",Uw,[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",$w,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,Lw),o("div",Fw,[o("a",{textContent:c(s?.source?.repositoryName),href:e.safeUrl("https://github.com/"+s?.source?.repositoryName+"/")},null,8,zw),s?.options?.update?(l(),d("span",Hw,[t[43]||(t[43]=w("\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,Bw)])):f("v-if",!0),s?.options?.update?f("v-if",!0):(l(),d("span",jw,[t[44]||(t[44]=w("\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,Gw)])),s?.conference?(l(),d("span",Ww,[t[45]||(t[45]=w("\xA0\xB7\xA0",-1)),t[46]||(t[46]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),w(" "+c(s?.conference),1)])):f("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",Kw,[o("span",Yw,[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,Jw)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,Qw)):f("v-if",!0)]),o("div",Xw,[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]=w()),o("span",{textContent:c(e.fmt?.number(s?.pageView||0))},null,8,Zw)]),o("div",xw,[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]=w()),o("span",{textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,ek)]),o("div",tk,[o("div",ok,[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",nk,[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),w(" Edit",-1)])],8,sk),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),w(" View repo",-1)])],8,rk),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),w(" View page",-1)])],8,ik)):f("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.fetchGithubInfo(s),["prevent"])},[...t[55]||(t[55]=[o("i",{class:"fab fa-github"},null,-1),w(" Live GitHub info",-1)])],8,ak),t[61]||(t[61]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[56]||(t[56]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Force update",-1)])],8,lk),[[j,s?.status=="ready"||s?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(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),w(" Enable",-1)])],8,dk),[[j,s?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.showStatusMessage(s),["prevent"])},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),w(" View status message",-1)])],8,uk),[[j,s?.statusMessage]]),t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removeCache(s),["prevent"])},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),w(" Remove cache",-1)])],8,ck),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeRepository(s),["prevent"])},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Remove",-1)])],8,pk),[[j,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",fk,[...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)])])):f("v-if",!0)]),o("div",mk,[o("span",hk,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",vk,[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),w(" Previous ",-1)])],8,yk),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,gk),[[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]=[w(" Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,bk)])):f("v-if",!0),o("span",wk,[t[68]||(t[68]=o("label",null,"Per page",-1)),N((l(),d("select",kk,[...t[67]||(t[67]=[ue('',5)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var Ek={class:"container paper-page admin-page"},Ck={class:"paper-crumbs"},_k={class:"here"},Sk={class:"paper-page-title"},Nk={key:0,class:"user-detail-card"},Dk={class:"user-header"},Rk=["src"],Tk={class:"status-dot-wrap"},Ak=["textContent"],Ok={key:0,class:"type-badge type-repo"},Ik={class:"user-actions",style:{"margin-top":"4px"}},Pk={class:"user-detail-grid"},Vk={class:"detail-value"},qk={class:"detail-value"},Mk={key:0,class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},Uk={key:1,class:"detail-value text-muted"},$k={class:"detail-value"},Lk=["href"],Fk={class:"detail-value"},zk={class:"detail-value"},Hk={key:0},Bk={key:1,class:"text-muted"},jk={class:"detail-value"},Gk={key:0,style:{"margin-top":"20px"}},Wk={class:"paper-table w-100",style:{"margin-top":"10px"}},Kk={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},Yk={class:"cell-anon",role:"cell"},Jk={class:"anon-text"},Qk=["textContent"],Xk={class:"cell-expires",role:"cell"},Zk={key:1,class:"admin-section-header"},xk={class:"section-count"},e0={key:2,class:"user-detail-card"},t0={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},o0={key:0,class:"alert alert-warning",role:"alert"},n0={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},s0={key:1,class:"paper-table w-100"},r0={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},i0=["textContent"],a0=["textContent"],l0={role:"cell"},d0={key:0},u0={key:1,class:"text-muted"},c0={role:"cell"},p0=["onClick"],f0={key:2,class:"paper-table-empty"},m0={class:"admin-section-header"},h0={class:"section-count"},v0={class:"admin-summary"},y0={class:"summary-total"},g0=["aria-pressed"],b0={class:"count"},w0=["aria-pressed"],k0={class:"count"},E0=["aria-pressed"],C0={class:"count"},_0=["aria-pressed"],S0={class:"count"},N0=["aria-pressed"],D0={class:"count"},R0={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},T0={class:"admin-filter-row"},A0={class:"search-wrap"},O0={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},I0={key:3,class:"bulk-bar"},P0={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},V0={class:"paper-table-head",role:"row"},q0={role:"columnheader",style:{width:"28px"}},M0=["checked"],U0={role:"columnheader"},$0={role:"columnheader"},L0={role:"columnheader",class:"num"},F0={role:"columnheader"},z0={role:"cell",style:{width:"28px"}},H0={type:"checkbox","aria-label":"Select repository"},B0={class:"cell-anon",role:"cell"},j0={class:"anon-text"},G0=["textContent","href"],W0={class:"anon-sub"},K0=["textContent","href"],Y0={key:0},J0=["textContent","href"],Q0={key:1},X0=["textContent","href"],Z0={key:2},x0={class:"cell-status",role:"cell"},eE={class:"status-line"},tE=["textContent"],oE=["textContent","title"],nE=["textContent"],sE=["textContent"],rE={class:"cell-actions",role:"cell"},iE={class:"dropdown"},aE={class:"dropdown-menu dropdown-menu-right"},lE=["href"],dE=["href"],uE=["href"],cE=["onClick"],pE=["onClick"],fE=["onClick"],mE=["onClick"],hE=["onClick"],vE=["onClick"],yE={key:0,class:"paper-table-empty"};function Pl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",Ek,[o("div",Ck,[t[22]||(t[22]=o("a",{href:"/admin/"},"Admin",-1)),t[23]||(t[23]=w(" \xA0/\xA0 ",-1)),t[24]||(t[24]=o("a",{href:"/admin/users"},"Users",-1)),t[25]||(t[25]=w(" \xA0/\xA0 ",-1)),o("span",_k,c(e.userInfo?.username||"Profile"),1)]),o("h1",Sk,c(e.userInfo?.username||"User"),1),t[87]||(t[87]=ue('',1)),e.userInfo?(l(),d("div",Nk,[o("div",Dk,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,Rk)):f("v-if",!0),o("div",null,[o("h2",null,[w(c(e.userInfo?.username)+" ",1),o("span",Tk,[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,Ak)]),e.userInfo?.isAdmin?(l(),d("span",Ok,"Admin")):f("v-if",!0)]),o("div",Ik,[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),w(" Ban",-1)])])):f("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),w(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("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),w(" 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),w(" Remove admin",-1)])])):f("v-if",!0)])])]),o("div",Pk,[t[32]||(t[32]=o("div",{class:"detail-label"},"ID",-1)),o("div",Vk,c(e.userInfo?._id),1),t[33]||(t[33]=o("div",{class:"detail-label"},"Email",-1)),o("div",qk,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",Mk,c(e.userInfo?.accessTokens?.github),1)):f("v-if",!0),e.userInfo?.accessTokens?.github?f("v-if",!0):(l(),d("div",Uk,"None stored")),t[35]||(t[35]=o("div",{class:"detail-label"},"GitHub",-1)),o("div",$k,[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)),w(" "+c(e.userInfo?.username),1)],8,Lk)]),t[36]||(t[36]=o("div",{class:"detail-label"},"Created",-1)),o("div",Fk,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[37]||(t[37]=o("div",{class:"detail-label"},"Last connection",-1)),o("div",zk,[e.userInfo?.accessTokenDates?.github?(l(),d("span",Hk,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(l(),d("span",Bk,"never"))]),t[38]||(t[38]=o("div",{class:"detail-label"},"GitHub repos",-1)),o("div",jk,[w(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),w(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",Gk,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),o("div",Wk,[(l(!0),d(K,null,oe(e.userInfo?.repositories,(s,i)=>(l(),d("div",Kk,[o("div",Yk,[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",Jk,[o("span",{class:"repo-name",textContent:c(s?.name)},null,8,Qk)])]),o("div",Xk,[t[40]||(t[40]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-database"})],-1)),w(" "+c(e.fmt?.humanFileSize(s?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",Zk,[t[42]||(t[42]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),w(" API tokens")],-1)),o("span",xk,c(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",e0,[t[48]||(t[48]=o("p",{class:"paper-page-lede"},[w("Personal API tokens for this admin account. Send as "),o("code",null,"Authorization: Bearer "),w(" 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]=ie(s=>e.submitForm(s,()=>{e.createToken()}),["prevent"]))},[N(o("input",t0,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"})]),w(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",o0,[t[44]||(t[44]=o("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),o("pre",n0,c(e.tokenForm?.plaintext),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(l(),d("div",s0,[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(K,null,oe(e.tokens,(s,i)=>(l(),d("div",r0,[o("div",{role:"cell",textContent:c(s?.name)},null,8,i0),o("div",{role:"cell",textContent:c(e.fmt?.humanTime(s?.createdAt))},null,8,a0),o("div",l0,[s?.lastUsedAt?(l(),d("span",d0,c(e.fmt?.humanTime(s?.lastUsedAt)),1)):f("v-if",!0),s?.lastUsedAt?f("v-if",!0):(l(),d("span",u0,"never"))]),o("div",c0,[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,p0)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(l(),d("div",f0,[...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)])]))])):f("v-if",!0),o("div",m0,[t[49]||(t[49]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})]),w(" Anonymized repositories")],-1)),o("span",h0,c(e.repositories?.length),1)]),o("div",v0,[o("span",y0,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]=w("Ready ",-1)),o("span",b0,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,g0),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]=w("Preparing ",-1)),o("span",k0,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,w0),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]=w("Errored ",-1)),o("span",C0,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,E0),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]=w("Expired ",-1)),o("span",S0,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,_0),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]=w("Removed ",-1)),o("span",D0,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,N0)]),N((l(),d("form",R0,[o("div",T0,[o("div",A0,[N(o("input",O0,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),w(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",I0,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[57]||(t[57]=w(" 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),w(" 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),w(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=s=>e.clearSelection())},"Clear")])):f("v-if",!0),o("div",P0,[o("div",V0,[o("div",q0,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,M0)]),o("div",U0,[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]=w("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)):f("v-if",!0)],2)]),o("div",$0,[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]=w("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)):f("v-if",!0)],2)]),o("div",L0,[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]=w("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)):f("v-if",!0)],2)]),o("div",F0,[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]=w("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)):f("v-if",!0)],2)]),t[68]||(t[68]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(K,null,oe(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",z0,[N(o("input",H0,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",B0,[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",j0,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,G0),o("div",W0,[o("a",{textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,K0),s?.options?.update?(l(),d("span",Y0,[t[69]||(t[69]=w("\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,J0)])):f("v-if",!0),s?.options?.update?f("v-if",!0):(l(),d("span",Q0,[t[70]||(t[70]=w("\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,X0)])),s?.conference?(l(),d("span",Z0,[t[71]||(t[71]=w("\xA0\xB7\xA0",-1)),t[72]||(t[72]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),w(" "+c(s?.conference),1)])):f("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",x0,[o("span",eE,[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,tE)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,oE)):f("v-if",!0)]),o("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(s?.pageView||0))},null,8,nE),o("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,sE),o("div",rE,[o("div",iE,[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",aE,[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),w(" Edit",-1)])],8,lE),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),w(" View repo",-1)])],8,dE),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),w(" View page",-1)])],8,uE)):f("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.fetchGithubInfo(s),["prevent"])},[...t[77]||(t[77]=[o("i",{class:"fab fa-github"},null,-1),w(" Live GitHub info",-1)])],8,cE),t[83]||(t[83]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[78]||(t[78]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Force update",-1)])],8,pE),[[j,s?.status=="ready"||s?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(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),w(" Enable",-1)])],8,fE),[[j,s?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.showStatusMessage(s),["prevent"])},[...t[80]||(t[80]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),w(" View status message",-1)])],8,mE),[[j,s?.statusMessage]]),t[84]||(t[84]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removeCache(s),["prevent"])},[...t[81]||(t[81]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),w(" Remove cache",-1)])],8,hE),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeRepository(s),["prevent"])},[...t[82]||(t[82]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Remove",-1)])],8,vE),[[j,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",yE,[...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)])])):f("v-if",!0)])])}var gE={class:"container paper-page admin-page"},bE={class:"admin-summary"},wE={class:"summary-total"},kE=["aria-pressed"],EE={class:"count"},CE=["aria-pressed"],_E={class:"count"},SE=["aria-pressed"],NE={class:"count"},DE={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},RE={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},TE={class:"admin-filter-row"},AE={class:"search-wrap"},OE={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},IE={key:0,class:"admin-search-hint"},PE={class:"admin-filter-inline"},VE={class:"form-control form-control-sm"},qE={class:"admin-filter-inline","aria-label":"Pagination"},ME=["disabled"],UE={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},$E=["disabled"],LE={key:0,class:"admin-filter-row"},FE={class:"admin-active-chips"},zE={class:"key"},HE=["onClick"],BE={key:1,class:"bulk-bar"},jE={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},GE={class:"paper-table-head admin-users-row",role:"row"},WE={role:"columnheader",style:{width:"28px"}},KE=["checked"],YE={role:"columnheader"},JE={role:"columnheader"},QE={role:"cell",style:{width:"28px"}},XE={type:"checkbox","aria-label":"Select user"},ZE={class:"cell-anon",role:"cell"},xE=["src"],eC={class:"anon-text"},tC=["textContent","href"],oC={class:"anon-sub"},nC={key:0},sC=["href"],rC={key:1},iC={class:"cell-views num",role:"cell"},aC=["textContent","href"],lC={class:"cell-status",role:"cell"},dC=["textContent"],uC={class:"cell-status",role:"cell"},cC={key:0,class:"type-badge type-repo"},pC={key:1,class:"empty-dash"},fC={class:"cell-actions",role:"cell"},mC={class:"dropdown"},hC={class:"dropdown-menu dropdown-menu-right"},vC=["href"],yC=["href"],gC=["onClick"],bC=["onClick"],wC={key:0,class:"paper-table-empty"},kC={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},EC={style:{"font-size":"12px",color:"var(--ink-muted)"}},CC={key:0,class:"pagination-compact"},_C=["disabled"],SC=["max"],NC=["disabled"],DC={class:"admin-filter-inline"},RC={class:"form-control form-control-sm"};function Vl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",gE,[t[46]||(t[46]=ue('Admin \xA0/\xA0 Users
Users
',3)),o("div",bE,[o("span",wE,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]=w("Active ",-1)),o("span",EE,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,kE),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]=w("Banned ",-1)),o("span",_E,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,CE),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]=w("Removed ",-1)),o("span",NE,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,SE)]),e.fetchError?(l(),d("div",DE,[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.fetchError),1)])):f("v-if",!0),N((l(),d("form",RE,[o("div",TE,[o("div",AE,[N(o("input",OE,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",IE,"/"))]),o("span",PE,[t[18]||(t[18]=o("label",null,"Role",-1)),N((l(),d("select",VE,[...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),w(" Export",-1)])]),o("span",qE,[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,ME),o("span",UE,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,$E)])]),e.chips?.length?(l(),d("div",LE,[o("div",FE,[(l(!0),d(K,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",zE,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,HE)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",BE,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=w(" 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),w(" Ban",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=s=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),o("div",jE,[o("div",GE,[o("div",WE,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,KE)]),o("div",YE,[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]=w("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)):f("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",JE,[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]=w("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)):f("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(K,null,oe(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",QE,[N(o("input",XE,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.username]=a},value:e.selected[s?.username],form:null,options:{}}]])]),o("div",ZE,[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,xE)):f("v-if",!0),o("div",eC,[o("a",{class:"repo-name",textContent:c(s?.username),href:e.safeUrl("/admin/users/"+s?.username)},null,8,tC),o("div",oC,[s?.emails?.[0]?.email?(l(),d("span",nC,c(s?.emails?.[0]?.email)+" \xB7 ",1)):f("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)),w(" "+c(s?.username),1)],8,sC),s?.dateOfEntry?(l(),d("span",rC,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(s?.dateOfEntry)),1)):f("v-if",!0)])])]),o("div",iC,[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,aC)]),o("div",lC,[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,dC)]),o("div",uC,[s?.isAdmin?(l(),d("span",cC,"Admin")):f("v-if",!0),s?.isAdmin?f("v-if",!0):(l(),d("span",pC,"\u2014"))]),o("div",fC,[o("div",mC,[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",hC,[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),w(" View details",-1)])],8,vC),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),w(" View repositories",-1)])],8,yC),t[39]||(t[39]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.banUser(s),["prevent"])},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),w(" Ban",-1)])],8,gC),[[j,s?.status=="active"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(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),w(" Activate",-1)])],8,bC),[[j,s?.status=="removed"||s?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",wC,[...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)])])):f("v-if",!0)]),o("div",kC,[o("span",EC,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",CC,[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),w(" Previous",-1)])],8,_C),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,SC),[[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]=[w("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,NC)])):f("v-if",!0),o("span",DC,[t[45]||(t[45]=o("label",null,"Per page",-1)),N((l(),d("select",RC,[...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 TC={class:"anonymize-landing"},AC={class:"anonymize-landing-inner"},OC={class:"form-group mt-4 mb-2"},IC={class:"source-url-label-row"},PC={key:0,class:"repo-access","aria-label":"GitHub access"},VC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},qC=["aria-pressed","disabled"],MC=["aria-pressed","disabled"],UC={key:1,class:"connection-badge"},$C={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},LC={key:0,class:"draft-status",role:"status"},FC={key:1,class:"text-danger",role:"alert"},zC={key:2,class:"repo-access-details","aria-label":"GitHub access"},HC={class:"repo-access-main"},BC={class:"repo-access-controls"},jC={key:1,class:"connection-link",href:"/connections"},GC={class:"repo-access-note"},WC={key:0},KC={class:"anonymize-workspace"},YC={class:"anonymize-topbar"},JC={class:"anonymize-topbar-inner"},QC={class:"paper-crumbs"},XC={class:"here"},ZC={class:"anonymize-topbar-head"},xC={class:"paper-page-title anonymize-topbar-title"},e2={key:0},t2={key:1},o2={key:0,class:"alert alert-info",role:"status"},n2={key:1,class:"alert alert-info",role:"status"},s2={key:1},r2={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},i2=["aria-selected","tabindex"],a2=["aria-selected","tabindex"],l2={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},d2={class:"anonymize-split"},u2=["role","aria-labelledby"],c2={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},p2={class:"paper-settings-section"},f2={class:"form-group"},m2={class:"source-url-label-row"},h2={key:0,class:"repo-access","aria-label":"GitHub access"},v2={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},y2=["aria-pressed","disabled"],g2=["aria-pressed","disabled"],b2={key:1,class:"connection-badge"},w2=["disabled"],k2={class:"invalid-feedback"},E2={class:"invalid-feedback"},C2={class:"invalid-feedback"},_2={class:"invalid-feedback"},S2={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},N2={key:0,class:"form-group"},D2=["value"],R2={key:1},T2={class:"repo-access-controls"},A2=["href"],O2={key:1,class:"repo-access-details","aria-label":"GitHub access"},I2={class:"repo-access-main"},P2={class:"repo-access-controls"},V2={key:1,class:"connection-link",href:"/connections"},q2={class:"repo-access-note"},M2={key:0},U2={key:2,class:"repo-access-details"},$2=["disabled"],L2={key:0,role:"status"},F2={key:3,class:"repo-access-details"},z2={key:0,role:"status"},H2={key:4,class:"form-grid-2"},B2={class:"form-group"},j2={class:"input-group"},G2={class:"form-control",id:"branch",name:"branch"},W2=["textContent","value"],K2={class:"input-group-append"},Y2={class:"form-group"},J2=["disabled"],Q2={class:"invalid-feedback"},X2={class:"invalid-feedback"},Z2={class:"form-check"},x2={class:"form-check-input",type:"checkbox",id:"update",name:"update"},e_={class:"paper-settings-section"},t_={class:"form-group"},o_=["disabled"],n_={class:"form-text text-muted"},s_={class:"invalid-feedback"},r_={class:"form-group"},i_=["disabled"],a_={class:"form-text text-muted"},l_={class:"invalid-feedback"},d_={class:"form-group"},u_=["disabled"],c_={class:"form-text text-muted"},p_={class:"invalid-feedback"},f_={class:"form-group"},m_={class:"form-text text-muted"},h_=["href"],v_={class:"invalid-feedback"},y_={class:"form-text text-muted"},g_={class:"paper-settings-section"},b_={class:"form-group"},w_={class:"form-text text-muted"},k_={class:"warning-feedback"},E_={class:"invalid-feedback"},C_={class:"paper-settings-section"},__={class:"form-check"},S_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},N_={class:"form-check"},D_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},R_={class:"form-check"},T_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},A_={class:"form-check"},O_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},I_={class:"form-check"},P_=["disabled"],V_={key:0,class:"form-text text-muted"},q_={key:1,class:"form-text text-muted"},M_={class:"form-check"},U_={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},$_={class:"form-check"},L_={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},F_={class:"form-check"},z_={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},H_={class:"form-check"},B_={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},j_={class:"form-check"},G_={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},W_={class:"form-check"},K_={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},Y_={class:"form-check"},J_={class:"form-check-input",type:"checkbox",id:"title",name:"title"},Q_={class:"form-check"},X_={class:"form-check-input",type:"checkbox",id:"body",name:"body"},Z_={class:"form-check"},x_={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},eS={class:"form-check"},tS={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},oS={class:"form-check"},nS={class:"form-check-input",type:"checkbox",id:"username",name:"username"},sS={class:"form-check"},rS={class:"form-check-input",type:"checkbox",id:"date",name:"date"},iS={class:"form-check"},aS={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},lS={class:"paper-settings-section"},dS={class:"form-grid-2"},uS={class:"form-group"},cS={class:"form-control",id:"expiration",name:"expiration"},pS={class:"form-group"},fS=["min","max"],mS={class:"invalid-feedback"},hS={class:"invalid-feedback"},vS={class:"paper-settings-section"},yS={class:"form-group"},gS={style:{position:"relative"}},bS={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},wS={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},kS=["onClick"],ES=["src"],CS=["textContent"],_S=["textContent"],SS={class:"coauthor-list"},NS={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},DS=["src"],RS=["textContent","href"],TS=["onClick"],AS={class:"form-text text-muted"},OS=["textContent"],IS={key:1,class:"draft-status",role:"status"},PS={key:2,class:"draft-status"},VS={key:3,class:"anonymize-review-note"},qS={class:"anonymize-submit-bar"},MS=["disabled"],US=["disabled"],$S=["disabled"],LS=["disabled"],FS=["disabled"],zS=["disabled"],HS=["role","aria-labelledby"],BS={class:"anonymize-preview-head"},jS={class:"anonymize-preview-sub"},GS={key:0,class:"anonymize-preview-status",role:"status"},WS={key:1,class:"anonymize-preview-status",role:"status"},KS={key:2,class:"anonymize-preview-status",role:"alert"},YS={key:3,class:"anonymize-preview-status"},JS=["innerHTML"],QS=["role","aria-labelledby"],XS={class:"anonymize-preview-head"},ZS={class:"anonymize-preview-sub"},xS={key:0,class:"anonymize-preview-status",role:"status"},eN={key:1,class:"anonymize-preview-status",role:"status"},tN={key:2,class:"anonymize-preview-status",role:"alert"},oN={key:3,class:"anonymize-preview-body"},nN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},sN={class:"pr-title mb-1"},rN={key:0},iN=["textContent"],aN={key:0},lN={key:1},dN={key:2},uN={class:"pr-comments mt-3"},cN={class:"pr-comment"},pN={class:"pr-comment-head"},fN=["textContent"],mN={key:0,class:"pr-comment-date"},hN={key:3},vN={class:"pr-comments"},yN={class:"pr-comment"},gN={class:"pr-comment-head"},bN={key:0,class:"pr-comment-author"},wN=["textContent"],kN=["textContent"],EN={key:0,class:"pr-comment-body"},CN=["role","aria-labelledby"],_N={class:"anonymize-preview-head"},SN={class:"anonymize-preview-sub"},NN={key:0,class:"anonymize-preview-status",role:"status"},DN={key:1,class:"anonymize-preview-status",role:"status"},RN={key:2,class:"anonymize-preview-status",role:"alert"},TN={key:3,class:"anonymize-preview-body"},AN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},ON={class:"pr-title mb-1"},IN={key:0},PN=["textContent"],VN={key:0},qN={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},MN={key:2,class:"paper-tabs",role:"tablist"},UN=["aria-selected","tabindex"],$N=["aria-selected","tabindex"],LN=["textContent"],FN={key:3,class:"anonymize-preview-status"},zN={class:"paper-tab-content"},HN={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},BN=["innerHTML"],jN={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},GN={class:"pr-comments"},WN={class:"pr-comment"},KN={class:"pr-comment-head"},YN={key:0,class:"pr-comment-author"},JN=["textContent"],QN=["textContent"],XN={key:0,class:"pr-comment-body"};function ql(e,t){let n=Ge("gist-file"),r=Ge("markdown"),s=ve("field"),i=ve("form");return l(),d("div",{class:A(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview"}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),N(o("div",TC,[o("div",AC,[t[40]||(t[40]=o("div",{class:"paper-crumbs"},[w("My work \xA0/\xA0 "),o("span",{class:"here"},"New anonymization")],-1)),t[41]||(t[41]=o("h1",{class:"paper-page-title"},[w("New "),o("em",null,"anonymization")],-1)),t[42]||(t[42]=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",OC,[o("div",IC,[t[36]||(t[36]=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",PC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",VC,[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[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(),o("span",{class:"sr-only"},"Read-only ",-1),w("GitHub App",-1)])],8,qC),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,MC)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",UC,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),N(o("input",$C,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",LC,[t[37]||(t[37]=w("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[2]||(t[2]=a=>e.discardDraft())},"Discard draft")])):f("v-if",!0),e.sourceUrlError?(l(),d("p",FC,c(e.sourceUrlError),1)):f("v-if",!0),t[43]||(t[43]=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?(l(),d("aside",zC,[o("div",HC,[o("div",BC,[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[38]||(t[38]=[w("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",jC,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),o("div",GC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",WC,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),t[39]||(t[39]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),w(" Selected content will be published, including content from private repositories.")],-1))])])):f("v-if",!0)])],512),[[j,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),N(o("div",KC,[o("header",YC,[o("div",JC,[o("div",QC,[t[44]||(t[44]=o("a",{href:"/dashboard"},"My work",-1)),t[45]||(t[45]=w(" \xA0/\xA0 ",-1)),o("span",XC,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),o("div",ZC,[o("h1",xC,[e.isUpdate?f("v-if",!0):(l(),d("span",e2,[...t[46]||(t[46]=[w("New ",-1),o("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",t2,[...t[47]||(t[47]=[w("Edit ",-1),o("em",null,"anonymization",-1)])])):f("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),[[j,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",o2,[t[48]||(t[48]=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")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",n2,[t[49]||(t[49]=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[50]||(t[50]=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",s2,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),o("nav",r2,[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,i2),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,a2)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",l2,c(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):f("v-if",!0),o("div",d2,[f(" 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",c2,[o("section",p2,[t[65]||(t[65]=o("div",{class:"paper-section-eyebrow"},"Source",-1)),o("div",f2,[o("div",m2,[t[52]||(t[52]=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",h2,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",v2,[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[51]||(t[51]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(),o("span",{class:"sr-only"},"Read-only ",-1),w("GitHub App",-1)])],8,y2),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,g2)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",b2,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("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,w2),[[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()}}]]),N(o("div",k2," Please provide a valid GitHub URL. ",512),[[j,e.anonymize?.sourceUrl?.errors?.github]]),N(o("div",E2," Not accessible. The organization may restrict access. ",512),[[j,e.anonymize?.sourceUrl?.errors?.access]]),N(o("div",C2," Does not exist or is not accessible. ",512),[[j,e.anonymize?.sourceUrl?.errors?.missing]]),N(o("div",_2," Already anonymized. ",512),[[j,e.anonymize?.sourceUrl?.errors?.used]])]),!e.isUpdate&&e.previousConfigurations.length?(l(),d("aside",S2,[t[54]||(t[54]=o("p",{role:"status"},"You have already anonymized this repository. Use the existing configuration to keep its anonymous link and avoid creating another repository.",-1)),e.previousConfigurations.length>1?(l(),d("div",N2,[t[53]||(t[53]=o("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),N(o("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[12]||(t[12]=a=>e.previousConfigurationId=a)},[(l(!0),d(K,null,oe(e.previousConfigurations,a=>(l(),d("option",{key:a.repoId,value:a.repoId},c(a.repoId),9,D2))),128))],512),[[Xn,e.previousConfigurationId]])])):(l(),d("p",R2,c(e.previousConfigurationId),1)),t[55]||(t[55]=o("p",null,"You can review and update its settings before saving.",-1)),o("div",T2,[o("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,A2),o("button",{type:"button",class:"btn btn-link",onClick:t[13]||(t[13]=a=>e.previousConfigurations=[])},"Create a separate anonymization")])])):f("v-if",!0),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",O2,[o("div",I2,[o("div",P2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[14]||(t[14]=a=>e.grantGitHubAccess())},[...t[56]||(t[56]=[w("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",V2,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),o("div",q2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",M2,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),t[57]||(t[57]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),w(" Selected content will be published, including content from private repositories.")],-1))])])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",U2,[t[58]||(t[58]=o("p",null,"If this repository became private or its App installation changed, repair its access here. This keeps the same anonymous URL and published commit.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[15]||(t[15]=a=>e.repairGitHubAccess())},"Repair GitHub access",8,$2),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[16]||(t[16]=a=>e.grantGitHubAccess())},"Manage access"),e.accessRepairMessage?(l(),d("p",L2,c(e.accessRepairMessage),1)):f("v-if",!0)])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",F2,[t[59]||(t[59]=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[17]||(t[17]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",z2,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):f("v-if",!0)])):f("v-if",!0),e.detectedType==="repo"?(l(),d("div",H2,[o("div",B2,[t[61]||(t[61]=o("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),o("div",j2,[N((l(),d("select",G2,[(l(!0),d(K,null,oe(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,W2))),256))])),[[s,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),o("div",K2,[o("button",{class:"btn btn-icon",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[18]||(t[18]=a=>e.getBranches(!0)),"aria-label":"Refresh"},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])])]),o("div",Y2,[t[62]||(t[62]=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,J2),[[s,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),N(o("div",Q2," The commit SHA is not valid. ",512),[[j,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),N(o("div",X2," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[j,e.anonymize?.commit?.errors?.exists]])])])):f("v-if",!0),N(o("div",Z2,[N(o("input",x2,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[63]||(t[63]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[64]||(t[64]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[j,e.detectedType]])]),N(o("section",e_,[t[76]||(t[76]=o("div",{class:"paper-section-eyebrow"},"Identity",-1)),N(o("div",t_,[t[68]||(t[68]=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,o_),[[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",n_,[t[66]||(t[66]=w("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[67]||(t[67]=w(".",-1))]),N(o("div",s_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.repoId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[j,e.anonymize?.repoId?.errors?.used]])],512),[[j,e.detectedType==="repo"]]),N(o("div",r_,[t[71]||(t[71]=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,i_),[[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",a_,[t[69]||(t[69]=w("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[70]||(t[70]=w(".",-1))]),N(o("div",l_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])],512),[[j,e.detectedType==="pr"]]),N(o("div",d_,[t[74]||(t[74]=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,u_),[[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",c_,[t[72]||(t[72]=w("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[73]||(t[73]=w(".",-1))]),N(o("div",p_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.gistId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[j,e.anonymize?.gistId?.errors?.used]])],512),[[j,e.detectedType==="gist"]]),o("div",f_,[t[75]||(t[75]=o("label",{class:"paper-field-label",for:"conference"},[w("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),[[s,{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",m_,[o("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,h_),w(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[j,e.conference_data]]),N(o("div",v_,"The conference is not activated.",512),[[j,e.anonymize?.conference?.errors?.activated]]),N(o("small",y_,"Link to a conference to apply its shared defaults.",512),[[j,!e.conference_data]])])],512),[[j,e.detectedType]]),N(o("section",g_,[t[84]||(t[84]=o("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),o("div",b_,[t[83]||(t[83]=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),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),o("small",w_,[t[77]||(t[77]=w("One term per line (regex allowed). Replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[78]||(t[78]=w(", or use ",-1)),t[79]||(t[79]=o("code",null,"term=>replacement",-1)),t[80]||(t[80]=w(" to pick your own (e.g. ",-1)),t[81]||(t[81]=o("code",null,"Anonymous=>ABC",-1)),t[82]||(t[82]=w(").",-1))]),N(o("div",k_,"Regex characters detected. Escape them if unintentional.",512),[[j,e.termsRegexWarning]]),N(o("div",E_,"Terms are in an invalid format.",512),[[j,e.anonymize?.terms?.errors?.format]])])],512),[[j,e.detectedType]]),N(o("section",C_,[t[105]||(t[105]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),N(o("div",null,[o("div",__,[N(o("input",S_,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[85]||(t[85]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),o("div",N_,[N(o("input",D_,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[86]||(t[86]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[87]||(t[87]=o("small",{class:"form-text text-muted"},"Images are served unchanged and may contain names or affiliations.",-1))]),o("div",R_,[N(o("input",T_,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[88]||(t[88]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[89]||(t[89]=o("small",{class:"form-text text-muted"},[w("PDF contents and metadata are served unchanged. "),o("a",{href:"/faq#formats"},"About supported formats")],-1))]),o("div",A_,[N(o("input",O_,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[90]||(t[90]=o("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),o("div",I_,[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,P_),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[91]||(t[91]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(l(),d("small",V_,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",q_,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[j,e.detectedType==="repo"]]),N(o("div",null,[o("div",M_,[N(o("input",U_,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[92]||(t[92]=o("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),o("div",$_,[N(o("input",L_,null,512),[[s,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[93]||(t[93]=o("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),o("div",F_,[N(o("input",z_,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[94]||(t[94]=o("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),o("div",H_,[N(o("input",B_,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[95]||(t[95]=o("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),o("div",j_,[N(o("input",G_,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[96]||(t[96]=o("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),o("div",W_,[N(o("input",K_,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[97]||(t[97]=o("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[j,e.detectedType==="gist"]]),N(o("div",null,[o("div",Y_,[N(o("input",J_,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[98]||(t[98]=o("label",{class:"form-check-label",for:"title"},"PR title",-1))]),o("div",Q_,[N(o("input",X_,null,512),[[s,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[99]||(t[99]=o("label",{class:"form-check-label",for:"body"},"PR body",-1))]),o("div",Z_,[N(o("input",x_,null,512),[[s,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[100]||(t[100]=o("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),o("div",eS,[N(o("input",tS,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[101]||(t[101]=o("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),o("div",oS,[N(o("input",nS,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[102]||(t[102]=o("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),o("div",sS,[N(o("input",rS,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[103]||(t[103]=o("label",{class:"form-check-label",for:"date"},"Dates",-1))]),o("div",iS,[N(o("input",aS,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[104]||(t[104]=o("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[j,e.detectedType==="pr"]])],512),[[j,e.detectedType]]),N(o("section",lS,[t[109]||(t[109]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",dS,[o("div",uS,[t[107]||(t[107]=o("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),N((l(),d("select",cS,[...t[106]||(t[106]=[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",pS,[t[108]||(t[108]=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,fS),[[s,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),N(o("div",mS,"Pick a date in the future.",512),[[j,e.anonymize?.expirationDate?.errors?.min]]),N(o("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[j,e.anonymize?.expirationDate?.errors?.max]]),N(o("div",hS,"Enter a valid expiration date.",512),[[j,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),[[j,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),[[j,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[j,e.detectedType]]),N(o("section",vS,[t[113]||(t[113]=o("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[114]||(t[114]=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",yS,[t[110]||(t[110]=o("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),o("div",gS,[N(o("input",bS,null,512),[[s,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),N(o("div",wS,[(l(!0),d(K,null,oe(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:ie(m=>e.addCoauthor(a,m),["prevent"])},[o("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,ES),o("span",{textContent:c(a?.username)},null,8,CS)],8,kS))),256))],512),[[j,e.coauthorResults?.length>0]])]),N(o("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,_S),[[j,e.coauthorError]])],512),[[j,e.role==="owner"||e.role==="admin"]]),o("div",SS,[(l(!0),d(K,null,oe(e.coauthors,(a,u)=>(l(),d("div",NS,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,DS)):f("v-if",!0),o("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,RS),t[112]||(t[112]=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:m=>e.removeCoauthor(a),"aria-label":"Remove co-author"},[...t[111]||(t[111]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,TS),[[j,e.role==="owner"||e.role==="admin"]])]))),256)),N(o("div",AS," No co-authors yet. ",512),[[j,!e.coauthors||e.coauthors?.length===0]])])],512),[[j,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,OS)):f("v-if",!0),e.draftRestored?(l(),d("div",IS,[t[115]||(t[115]=w("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[19]||(t[19]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",PS,[w(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[20]||(t[20]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):f("v-if",!0),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",VS,"Review enabled images and PDFs before sharing. Their contents are not anonymized.")):f("v-if",!0),o("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[21]||(t[21]=a=>e.selectMobilePane("preview"))},[...t[116]||(t[116]=[w("Review preview ",-1),o("span",{"aria-hidden":"true"},"\u2192",-1)])]),N(o("div",qS,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[22]||(t[22]=ie(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[117]||(t[117]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(" Anonymize Repository ",-1)])],8,MS)):f("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[23]||(t[23]=ie(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[118]||(t[118]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),w(" Update Repository ",-1)])],8,US)):f("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[24]||(t[24]=ie(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[119]||(t[119]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(" Anonymize Pull Request ",-1)])],8,$S)):f("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[25]||(t[25]=ie(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[120]||(t[120]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),w(" Update Pull Request ",-1)])],8,LS)):f("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[26]||(t[26]=ie(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[121]||(t[121]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(" Anonymize Gist ",-1)])],8,FS)):f("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[27]||(t[27]=ie(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[122]||(t[122]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),w(" Update Gist ",-1)])],8,zS)):f("v-if",!0)],512),[[j,e.detectedType]])])),[[i,e.viewState]])],8,u2),f(" 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",BS,[t[123]||(t[123]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",jS,c(e.previewStatus==="ready"?"README with redactions applied":"README preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",GS,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",WS,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",KS,[t[124]||(t[124]=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[28]||(t[28]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",YS,"No README is available to preview. Review the published files before sharing.")):f("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,JS)):f("v-if",!0)],8,HS)):f("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",XS,[t[125]||(t[125]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",ZS,c(e.previewStatus==="ready"?"Gist with redactions applied":"Gist preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",xS,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",eN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",tN,[t[126]||(t[126]=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[29]||(t[29]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",oN,[o("div",nN,[o("h2",sN,[e.options?.title?(l(),d("span",rN,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):f("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,iN)):f("v-if",!0)]),e.options?.origin?(l(),d("small",aN,"Gist ID: "+c(e.details?.source?.gistId),1)):f("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",lN,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):f("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",dN,[o("ul",uN,[(l(!0),d(K,null,oe(e.previewGistFiles,(a,u)=>(l(),d("li",cN,[o("div",pN,[o("strong",{textContent:c(a?.filename)},null,8,fN),a?.language?(l(),d("span",mN,c(a?.language),1)):f("v-if",!0)]),Ce(n,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):f("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",hN,[t[129]||(t[129]=o("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),o("ul",vN,[(l(!0),d(K,null,oe(e.details?.gist?.comments,(a,u)=>(l(),d("li",yN,[o("div",gN,[e.options?.username?(l(),d("span",bN,[t[127]||(t[127]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[128]||(t[128]=w(" @",-1)),o("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,wN)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,kN)):f("v-if",!0)]),e.options?.body?(l(),d("div",EN,[Ce(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])):f("v-if",!0)],8,QS)):f("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",_N,[t[130]||(t[130]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",SN,c(e.previewStatus==="ready"?"Pull request with redactions applied":"Pull request preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",NN,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",DN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",RN,[t[131]||(t[131]=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[30]||(t[30]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",TN,[o("div",AN,[o("h2",ON,[e.options?.title?(l(),d("span",IN,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):f("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,PN)):f("v-if",!0)]),e.options?.origin?(l(),d("small",VN,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",qN,[Ce(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",MN,[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[31]||(t[31]=a=>e.previewTabKeydown(a)),onClick:t[32]||(t[32]=a=>e.prTabState.active="diff")},[...t[132]||(t[132]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),w(" Diff ",-1)])],42,UN)):f("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[33]||(t[33]=a=>e.previewTabKeydown(a)),onClick:t[34]||(t[34]=a=>e.prTabState.active="comments")},[t[133]||(t[133]=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,LN)],42,$N)):f("v-if",!0)])):f("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",FN,"Diff and comments are hidden by your display settings.")):f("v-if",!0),o("div",zN,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",HN,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,BN)])):f("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",jN,[o("ul",GN,[(l(!0),d(K,null,oe(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",WN,[o("div",KN,[e.options?.username?(l(),d("span",YN,[t[134]||(t[134]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[135]||(t[135]=w(" @",-1)),o("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,JN)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,QN)):f("v-if",!0)]),e.options?.body?(l(),d("div",XN,[Ce(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])])):f("v-if",!0)],8,CN)):f("v-if",!0)])],512),[[j,e.workspaceOpen||e.isUpdate]])],2)}var ZN={class:"container-fluid h-100 anonymize-page"},xN={class:"row h-100 flex-column flex-md-row"},eD={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},tD={class:"form-group"},oD={class:"form-group"},nD={class:"form-check"},sD={class:"form-check-input",type:"checkbox",id:"update",name:"update"},rD={class:"form-group"},iD={class:"form-text text-muted"},aD=["href"],lD={class:"invalid-feedback"},dD={class:"form-text text-muted"},uD={class:"form-group"},cD={id:"idHelp",class:"form-text text-muted"},pD={class:"invalid-feedback"},fD={class:"form-group"},mD={class:"invalid-feedback"},hD={class:"form-group"},vD={class:"form-control",id:"expiration",name:"expiration"},yD={class:"form-group",id:"expiration-date-form"},gD={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},bD={class:"accordion mb-3",id:"options"},wD={class:"card"},kD={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},ED={class:"card-body"},CD={class:"form-group mb-0"},_D={class:"form-check"},SD={class:"form-check-input",type:"checkbox",id:"link",name:"link"},ND={class:"form-check"},DD={class:"form-check-input",type:"checkbox",id:"image",name:"image"},RD={class:"form-check"},TD={class:"form-check-input",type:"checkbox",id:"date",name:"date"},AD={class:"form-check"},OD={class:"form-check-input",type:"checkbox",id:"username",name:"username"},ID={class:"form-check"},PD={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},VD={class:"form-check"},qD={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},MD={class:"form-check"},UD={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},$D={class:"form-check"},LD={class:"form-check-input",type:"checkbox",id:"title",name:"title"},FD={class:"form-check"},zD={class:"form-check-input",type:"checkbox",id:"body",name:"body"},HD=["textContent"],BD={class:"anonymize-submit-bar"},jD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},GD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},WD={class:"pr-title mb-1"},KD={key:0},YD=["textContent"],JD={key:0},QD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},XD={class:"nav nav-tabs",id:"myTab",role:"tablist"},ZD={key:0,class:"nav-item",role:"presentation"},xD={key:1,class:"nav-item",role:"presentation"},eR=["textContent"],tR={class:"tab-content",id:"pills-tabContent"},oR={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},nR={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},sR={style:{"overflow-x":"auto"}},rR=["innerHTML"],iR={key:0,class:"pr-comments list-group"},aR={class:"pr-comment list-group-item"},lR={class:"d-flex w-100 justify-content-between flex-wrap"},dR={key:0,class:"mb-1"},uR=["textContent"],cR={class:"mb-1"};function Ml(e,t){let n=Ge("markdown"),r=ve("field"),s=ve("form");return l(),d("div",ZN,[o("div",xN,[o("div",eD,[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]=ue('Anonymize \xA0/\xA0 Pull request
Anonymize a pull request
Fill in the details \u2014 it only takes a minute.
Source
',4)),f(" pullRequestUrl "),o("div",tD,[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),[[j,e.anonymize?.pullRequestUrl?.errors?.access]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.missing]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.used]])]),N(o("div",null,[o("div",oD,[o("div",nD,[N(o("input",sD,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"})]),w(" Conference ID ")],-1)),f(" Conference "),o("div",rD,[t[5]||(t[5]=o("label",{for:"conference"},[w("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",iD,[o("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,aD),w(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[j,e.conference_data]]),N(o("div",lD," The conference is not activated. ",512),[[j,e.anonymize?.conference?.errors?.activated]]),N(o("small",dD," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[j,!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"})]),w(" Anonymization Options ")],-1)),f(" Pull Request ID "),o("div",uD,[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",cD,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),N(o("div",pD," Repository id can only contain letters and numbers ",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])]),f(" Terms "),o("div",fD,[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",mD," Terms are in an invalid format ",512),[[j,e.anonymize?.terms?.errors?.format]])]),o("div",hD,[t[10]||(t[10]=o("label",{for:"expiration"},"Expiration strategy",-1)),N((l(),d("select",vD,[...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",yD,[t[12]||(t[12]=o("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),N(o("input",gD,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),[[j,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),[[j,e.options?.expirationMode=="redirect"]])],512),[[j,e.options?.expirationMode!="never"]]),o("div",bD,[o("div",wD,[t[25]||(t[25]=ue('',1)),o("div",kD,[o("div",ED,[o("div",CD,[o("div",_D,[N(o("input",SD,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",ND,[N(o("input",DD,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",RD,[N(o("input",TD,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",AD,[N(o("input",OD,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",ID,[N(o("input",PD,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",VD,[N(o("input",qD,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",MD,[N(o("input",UD,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",$D,[N(o("input",LD,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",FD,[N(o("input",zD,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),[[j,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,HD)):f("v-if",!0),N(o("div",BD,[e.isUpdate?f("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ie(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),w(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ie(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),w(" Update ",-1)])])):f("v-if",!0)],512),[[j,e.pullRequestUrl]])],2)),[[s,e.viewState]])],2)]),e.details?(l(),d("div",jD,[o("div",GD,[o("h2",WD,[e.options?.title?(l(),d("span",KD,c(e.anonymize(e.details?.pullRequest?.title)),1)):f("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,YD)):f("v-if",!0)]),e.options?.origin?(l(),d("small",JD,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",QD,[Ce(n,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),o("ul",XD,[e.options?.diff?(l(),d("li",ZD,[...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)])])):f("v-if",!0),e.options?.comments?(l(),d("li",xD,[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,eR)],2)])):f("v-if",!0)]),o("div",tR,[o("div",oR,[e.options?.diff?(l(),d("div",nR,[o("pre",sR,[o("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,rR)])])):f("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",iR,[(l(!0),d(K,null,oe(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",aR,[o("div",lR,[e.options?.username?(l(),d("h5",dR," @"+c(e.anonymize(i?.author)),1)):f("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,uR)):f("v-if",!0)]),o("p",cR,[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"])):f("v-if",!0)])]))),256))])):f("v-if",!0)],2)])])):f("v-if",!0)])])}var pR={class:"container paper-page claim-page"},fR={class:"paper-settings-main claim-form"},mR={class:"form-group"},hR={class:"invalid-feedback"},vR={class:"form-group"};function Ul(e,t){let n=ve("field"),r=ve("form");return l(),d("div",pR,[t[6]||(t[6]=ue('Claim an anonymization
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),o("div",fR,[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]=ie(s=>e.submitForm(s,()=>{e.claim()}),["prevent"]))},[o("div",mR,[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),[[n,{state:e.viewState,set:s=>{e.repoUrl=s},value:e.repoUrl,form:"claimForm",options:{}}]]),N(o("div",hR," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[j,e.claimForm?.repoUrl?.errors?.not_found]])]),o("div",vR,[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),[[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"},[w("The ID is the last part of the anonymized URL: "),o("code",null,"anonymous.4open.science/r/"),w(".")],-1))]),t[4]||(t[4]=o("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var yR={class:"container page paper-page conference-page"},gR={class:"paper-crumbs"},bR={class:"here"},wR={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},kR=["textContent"],ER={key:0,class:"paper-page-lede"},CR=["textContent","href"],_R={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},SR=["textContent"],NR=["href"],DR={class:"paper-meta-rule"},RR=["textContent"],TR=["textContent"],AR={key:0},OR={class:"search-wrap"},IR={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},PR={class:"dashboard-filter-controls"},VR={class:"dropdown"},qR={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},MR={class:"filter-btn-value"},UR={class:"dropdown-menu","aria-labelledby":"dropdownSort"},$R={class:"form-check dropdown-item"},LR={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},FR={class:"form-check dropdown-item"},zR={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},HR={class:"form-check dropdown-item"},BR={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},jR={class:"form-check dropdown-item"},GR={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},WR={class:"dropdown"},KR={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},YR={key:0,class:"filter-btn-value"},JR={key:1,class:"filter-btn-value"},QR={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},XR={class:"form-check dropdown-item"},ZR=["id"],xR=["for"],eT={class:"dashboard-meta"},tT={class:"dashboard-count"},oT={key:0},nT={key:0},sT={key:1},rT={key:1},iT={key:0,class:"filter-chip"},aT=["onClick","aria-label"],lT={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},dT={class:"cell-anon",role:"cell"},uT={class:"anon-text"},cT=["textContent","href"],pT={class:"anon-sub"},fT={class:"anon-source"},mT=["textContent","href"],hT={key:0},vT=["textContent","href"],yT={key:1},gT=["href"],bT={class:"cell-status",role:"cell"},wT={class:"status-line"},kT=["textContent"],ET={key:0,class:"status-sub"},CT={class:"cell-views num",role:"cell"},_T=["textContent"],ST={class:"cell-expires",role:"cell"},NT={key:0,class:"expires-never"},DT=["textContent"],RT={key:2,class:"expires-past"},TT={key:0},AT={key:3,class:"empty-dash","aria-label":"Not applicable"},OT={class:"cell-actions",role:"cell"},IT={class:"dropdown"},PT=["aria-label"],VT={class:"dropdown-menu dropdown-menu-right"},qT=["href"],MT=["href"],UT={key:0,class:"paper-table-empty"},$T={key:0},LT={key:1},FT={key:2,class:"paper-table-empty-actions"};function $l(e,t){let n=ve("field"),r=ve("form");return l(),d("div",yR,[o("div",null,[o("div",gR,[t[2]||(t[2]=o("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=w(" \xA0/\xA0 ",-1)),t[4]||(t[4]=o("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=w(" \xA0/\xA0 ",-1)),o("span",bR,c(e.conference?.conferenceID),1)]),o("div",wR,[o("div",null,[o("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,kR),e.conference?.url?(l(),d("p",ER,[o("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,CR)])):f("v-if",!0)]),o("div",_R,[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,SR)],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),w(" Edit conference",-1)])],8,NR)])]),o("div",DR,[o("span",null,[t[7]||(t[7]=w("ID ",-1)),o("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,RR)]),o("span",null,[t[8]||(t[8]=w("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]=w("Repositories ",-1)),o("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),o("span",null,[t[10]||(t[10]=w("Plan ",-1)),o("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,TR)]),e.conference?.price?(l(),d("span",AR,[t[11]||(t[11]=w("Cost so far ",-1)),o("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):f("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]=ie(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[o("div",OR,[N(o("input",IR,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",PR,[o("div",VR,[o("button",qR,[t[12]||(t[12]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",MR,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),o("div",UR,[t[17]||(t[17]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",$R,[N(o("input",LR,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",FR,[N(o("input",zR,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",HR,[N(o("input",BR,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",jR,[N(o("input",GR,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",WR,[o("button",KR,[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",YR,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(l(),d("span",JR,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",QR,[t[19]||(t[19]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(K,null,oe(e.statusLabels,(s,i,a)=>(l(),d("div",XR,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,ZR),[[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,xR)]))),256))])])])],32)),[[r,e.viewState]]),o("div",eT,[o("span",tT,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",oT,[w(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",nT,"y")):f("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",sT,"ies")):f("v-if",!0)])):f("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",rT,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):f("v-if",!0)]),(l(!0),d(K,null,oe(e.filters?.status,(s,i,a)=>(l(),d(K,null,[s===!1?(l(),d("span",iT,[w(" 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,aT)])):f("v-if",!0)],64))),256))]),o("div",lT,[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(K,null,oe(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",dT,[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",uT,[o("a",{class:"repo-name",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId+"/")},null,8,cT),o("div",pT,[o("span",fT,[o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,mT),s?.options?.update&&s?.source?.branch?(l(),d("span",hT,[t[20]||(t[20]=w(" \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,vT)])):f("v-if",!0),s?.source?.commit?(l(),d("span",yT,[t[21]||(t[21]=w(" \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,gT)])):f("v-if",!0)])])])]),o("div",bT,[o("div",wT,[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,kT)]),s?.anonymizeDate?(l(),d("div",ET,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)):f("v-if",!0)]),o("div",CT,[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]=w()),o("span",{textContent:c(e.fmt?.number(s?.pageView))},null,8,_T)]),o("div",ST,[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",NT,"Never")):f("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,DT)):f("v-if",!0),s?.status=="expired"?(l(),d("span",RT,[t[25]||(t[25]=w("Expired",-1)),s?.options?.expirationDate?(l(),d("span",TT,c(e.fmt?.humanTime(s?.options?.expirationDate)),1)):f("v-if",!0)])):f("v-if",!0),s?.status!="ready"&&s?.status!="expired"?(l(),d("span",AT,"\u2014")):f("v-if",!0)]),o("div",OT,[o("div",IT,[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,PT),o("div",VT,[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),w(" View ",-1)])],8,qT),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),w(" Edit ",-1)])],8,MT)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",UT,[t[30]||(t[30]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?f("v-if",!0):(l(),d("span",$T,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",LT,"Nothing matches the current filters.")):f("v-if",!0),e.conference?.repositories?.length?(l(),d("div",FT,[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")])):f("v-if",!0)])):f("v-if",!0)])])])}var zT={class:"container page paper-page conferences-page"},HT={class:"row"},BT={class:"w-100"},jT={class:"search-wrap"},GT={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},WT={class:"dashboard-filter-controls"},KT={class:"dropdown"},YT={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},JT={class:"filter-btn-value"},QT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},XT={class:"form-check dropdown-item"},ZT={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},xT={class:"form-check dropdown-item"},eA={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},tA={class:"form-check dropdown-item"},oA={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},nA={class:"dropdown"},sA={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},rA={key:0,class:"filter-btn-value"},iA={key:1,class:"filter-btn-value"},aA={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},lA={class:"form-check dropdown-item"},dA=["id"],uA=["for"],cA={class:"dashboard-meta"},pA={class:"dashboard-count"},fA={key:0},mA={key:0},hA={key:1},vA={key:0,class:"filter-chip"},yA=["onClick","aria-label"],gA={key:0,class:"conference-feedback",role:"alert"},bA={key:1,class:"conference-feedback",role:"status"},wA={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},kA={class:"cell-anon",role:"cell"},EA={class:"anon-text"},CA=["textContent","href"],_A={class:"anon-sub"},SA={class:"anon-source"},NA=["textContent"],DA={key:0},RA=["textContent","href"],TA={class:"cell-status",role:"cell"},AA={class:"status-line"},OA=["textContent"],IA={class:"cell-views num",role:"cell"},PA=["textContent"],VA={class:"cell-expires",role:"cell"},qA={key:0},MA={key:1,class:"empty-dash","aria-label":"No review window"},UA={class:"cell-actions",role:"cell"},$A={class:"dropdown"},LA=["disabled","aria-label"],FA={class:"dropdown-menu dropdown-menu-right"},zA=["href"],HA=["href"],BA={key:0},jA=["onClick"],GA={key:0,class:"paper-table-empty"},WA={key:0},KA={key:1},YA={class:"paper-table-empty-actions"},JA={key:1,href:"/conference/new",class:"btn btn-ink"};function Ll(e,t){let n=ve("field"),r=ve("form");return l(),d("div",zT,[o("div",HT,[o("div",BT,[t[10]||(t[10]=ue('Your conferences
Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.
New conference ',2)),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ie(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[o("div",jT,[N(o("input",GT,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",WT,[o("div",KT,[o("button",YT,[t[3]||(t[3]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",JT,c({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),o("div",QT,[t[7]||(t[7]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",XT,[N(o("input",ZT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),o("div",xT,[N(o("input",eA,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[5]||(t[5]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",tA,[N(o("input",oA,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),o("div",nA,[o("button",sA,[t[8]||(t[8]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",rA,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(l(),d("span",iA,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",aA,[t[9]||(t[9]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(K,null,oe(e.statusLabels,(s,i,a)=>(l(),d("div",lA,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,dA),[[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,uA)]))),256))])])])],32)),[[r,e.viewState]]),o("div",cA,[o("span",pA,[e.filteredConferences?.length===e.conferences?.length?(l(),d("span",fA,[w(c(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(l(),d("span",mA,"s")):f("v-if",!0)])):f("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(l(),d("span",hA,c(e.fmt?.number(e.filteredConferences?.length))+" of "+c(e.fmt?.number(e.conferences?.length))+" shown",1)):f("v-if",!0)]),(l(!0),d(K,null,oe(e.filters?.status,(s,i,a)=>(l(),d(K,null,[s===!1?(l(),d("span",vA,[w(" 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,yA)])):f("v-if",!0)],64))),256))])]),e.error?(l(),d("div",gA,[o("span",null,c(e.error),1),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=s=>e.loadConferences())},"Retry")])):f("v-if",!0),e.loading?(l(),d("div",bA,"Loading conferences\u2026")):f("v-if",!0),o("div",wA,[t[24]||(t[24]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Conference"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Repos"),o("div",{role:"columnheader"},"Review window"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(K,null,oe(e.filteredConferences,(s,i)=>(l(),d("div",{class:A(["paper-table-row row-clickable",{"repo-inactive":s?.status=="expired"||s?.status=="removed"}]),role:"row",key:s?.conferenceID},[o("div",kA,[t[13]||(t[13]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[o("use",{href:"#project-icon-conference"})],-1)),o("div",EA,[o("a",{class:"repo-name",textContent:c(s?.name),href:e.safeUrl("/conference/"+s?.conferenceID)},null,8,CA),o("div",_A,[o("span",SA,[t[12]||(t[12]=w("ID ",-1)),o("span",{class:"commit-hash",textContent:c(s?.conferenceID)},null,8,NA),s?.url?(l(),d("span",DA,[t[11]||(t[11]=w(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(e.fmt?.limitTo(s?.url,60)),href:e.safeUrl(s?.url)},null,8,RA)])):f("v-if",!0)])])])]),o("div",TA,[o("div",AA,[o("span",{class:A(["status-dot","status-"+s?.status]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(s?.status))},null,8,OA)])]),o("div",IA,[t[14]||(t[14]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),t[15]||(t[15]=w()),o("span",{textContent:c(e.fmt?.number(s?.nbRepositories||0))},null,8,PA)]),o("div",VA,[t[16]||(t[16]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),s?.startDate?(l(),d("span",qA,c(e.fmt?.date(s?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(s?.endDate,"mediumDate")),1)):f("v-if",!0),s?.startDate?f("v-if",!0):(l(),d("span",MA,"\u2014"))]),o("div",UA,[o("div",$A,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:s?.removing,"aria-label":"Actions for "+s?.name},[...t[17]||(t[17]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,LA),o("div",FA,[o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/")},[...t[18]||(t[18]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),w(" View ",-1)])],8,zA),o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/edit")},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),w(" Edit ",-1)])],8,HA),s?.status!="removed"?(l(),d("div",BA,[t[21]||(t[21]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeConference(s)},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Remove ",-1)])],8,jA)])):f("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(l(),d("div",GA,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conferences?.length==0?(l(),d("span",WA,"You have not created a conference yet.")):f("v-if",!0),e.conferences?.length>0?(l(),d("span",KA,"Nothing matches the current filters.")):f("v-if",!0),o("div",YA,[e.conferences?.length>0?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=s=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):f("v-if",!0),e.conferences?.length==0?(l(),d("a",JA,[...t[22]||(t[22]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),w(" New conference",-1)])])):f("v-if",!0)])])):f("v-if",!0)])])])}var QA={class:"container page dashboard-page paper-page"},XA={class:"row"},ZA={class:"w-100"},xA={class:"dashboard-heading"},eO=["open"],tO=["aria-expanded"],oO=["stroke-dasharray"],nO={key:1,d:"M7 12c0-4 4-4 5 0s5 4 5 0-4-4-5 0-5 4-5 0",class:"quota-ring-unlimited"},sO={key:0,class:"quota-summary-value"},rO={key:0},iO={class:"quota-panel",id:"dashboard-usage"},aO={class:"quota-panel-heading"},lO={key:1,class:"quota-loading",role:"status"},dO={class:"search-wrap"},uO={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects, IDs, or conferences\u2026",autocomplete:"off"},cO=["aria-expanded"],pO={class:"btn-group",role:"group","aria-label":"Type"},fO=["aria-pressed"],mO=["aria-pressed"],hO=["aria-pressed"],vO=["aria-pressed"],yO={class:"dropdown"},gO={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},bO={class:"filter-btn-value"},wO={class:"sr-only"},kO={class:"dropdown-menu","aria-labelledby":"dropdownSort"},EO={class:"form-check dropdown-item"},CO=["onClick","checked","id"],_O=["for"],SO={class:"dropdown"},NO={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},DO={key:0,class:"filter-btn-value"},RO={key:1,class:"filter-btn-value"},TO={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},AO={class:"form-check dropdown-item"},OO=["id"],IO=["for"],PO={key:0,class:"dashboard-meta"},VO={class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},qO=["aria-pressed"],MO=["aria-pressed","aria-label"],UO={class:"dashboard-count"},$O={key:0},LO={key:0},FO={key:1},zO={class:"dashboard-active-filters"},HO=["onClick","aria-label","title"],BO=["aria-busy"],jO={class:"paper-table-head",role:"row"},GO=["aria-sort"],WO=["aria-sort"],KO=["aria-sort"],YO=["aria-sort"],JO={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},QO=["onClick"],XO={class:"cell-anon",role:"cell"},ZO=["aria-label","title"],xO={class:"project-type-svg","aria-hidden":"true"},eI=["href"],tI={class:"anon-text"},oI={class:"anon-title"},nI=["title","textContent","href"],sI=["textContent"],rI={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},iI={class:"anon-sub"},aI=["title"],lI=["title"],dI=["title"],uI=["textContent"],cI={class:"dashboard-row-meta",role:"presentation"},pI={class:"cell-status",role:"cell"},fI={class:"status-line"},mI=["textContent"],hI=["textContent","title"],vI=["title"],yI=["href"],gI=["onClick"],bI={key:4,class:"status-sub status-sub-date"},wI=["aria-label"],kI={class:"cell-expires",role:"cell"},EI={key:0,class:"expires-never"},CI=["textContent"],_I={key:2,class:"expires-past"},SI={key:3,class:"expires-past"},NI={key:4,class:"empty-dash","aria-label":"Not applicable"},DI={class:"cell-actions",role:"cell"},RI=["onClick","disabled","title","aria-label"],TI=["onClick","data-project-actions","aria-controls","aria-expanded"],AI={key:2,class:"dropdown"},OI=["data-project-actions","aria-label"],II={class:"dropdown-menu dropdown-menu-right"},PI=["onClick","aria-controls","aria-expanded"],VI=["href"],qI=["href"],MI=["onClick","disabled"],UI=["href"],$I=["onClick"],LI=["onClick"],FI=["onClick"],zI={key:5},HI=["onClick"],BI={key:1,class:"project-details-row",role:"row"},jI=["id","onKeydown"],GI={class:"project-details-heading"},WI=["onClick"],KI={class:"project-details-list"},YI={key:0},JI={key:1},QI={key:0},XI={key:2},ZI={key:0,class:"project-progress-help"},xI=["href"],e4=["onSubmit"],t4=["for"],o4=["id"],n4={class:"project-name-controls"},s4=["id","aria-describedby","disabled"],r4=["disabled"],i4={key:0,class:"project-name-error",role:"alert"},a4={key:1,role:"status"},l4={key:0,class:"paper-table-empty"},d4={key:0},u4={key:1},c4={class:"paper-table-empty-actions"},p4={key:1,href:"/anonymize",class:"btn btn-ink"},f4={key:0,class:"dashboard-pagination"},m4={key:0,role:"alert"},h4=["disabled"];function Fl(e,t){let n=Ge("quota-usage"),r=ve("field"),s=ve("form");return l(),d("div",QA,[o("div",XA,[o("div",ZA,[o("div",xA,[o("div",null,[t[27]||(t[27]=o("h1",{class:"paper-page-title"},"Projects",-1)),t[28]||(t[28]=o("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1)),o("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=i=>e.quotaExpanded=i.target.open),onKeydown:t[2]||(t[2]=To(ie(i=>e.closeQuota(),["prevent","stop"]),["esc"]))},[o("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded},[(l(),d("svg",{class:A(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[21]||(t[21]=o("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(l(),d("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,oO)):f("v-if",!0),e.quota?.repository.unlimited?(l(),d("path",nO)):f("v-if",!0)],2)),t[23]||(t[23]=o("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(l(),d("span",sO,[w(c(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?f("v-if",!0):(l(),d("span",rO," / "+c(e.fmt.number(e.quota.repository.total)),1)),t[22]||(t[22]=w(" repos",-1))])):f("v-if",!0),t[24]||(t[24]=o("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[o("use",{href:"#project-icon-chevron"})],-1))],8,tO),o("div",iO,[o("div",aO,[t[26]||(t[26]=o("h2",null,"Account usage",-1)),o("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=i=>e.closeQuota())},[...t[25]||(t[25]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(l(),Lt(n,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",lO,"Loading usage\u2026"))])],40,eO)]),t[29]||(t[29]=ue('',1))]),f(" 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]=ie(i=>e.submitForm(i,()=>{i.preventDefault()}),["prevent"]))},[o("div",dO,[N(o("input",uO,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]=[w("Filters",-1),o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1)])],8,cO),o("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[o("div",pO,[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,fO),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,mO),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,hO),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,vO)]),o("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[o("div",yO,[o("button",gO,[t[35]||(t[35]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",bO,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",wO,c(e.sortDesc()?"descending":"ascending"),1)]),o("div",kO,[t[36]||(t[36]=o("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(K,null,oe(e.sortFields,(i,a,u)=>(l(),d("div",EO,[o("input",{class:"form-check-input",type:"radio",name:"sort",onClick:m=>e.setSort(a,i.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+u},null,8,CO),o("label",{class:"form-check-label",for:"sort-"+u},c(i?.label),9,_O)]))),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",SO,[o("button",NO,[t[38]||(t[38]=o("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?f("v-if",!0):(l(),d("span",DO,"All")),e.hasHiddenStatus()?(l(),d("span",RO,c(e.hiddenStatusCount())+" hidden",1)):f("v-if",!0)]),o("div",TO,[t[39]||(t[39]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(K,null,oe(e.statusKeyLabels,(i,a,u)=>(l(),d("div",AO,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,OO),[[r,{state:e.viewState,set:m=>{e.filters.status[a]=m},value:e.filters?.status[a],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+a},c(i),9,IO)]))),256))])])],2)],2)],32)),[[s,e.viewState]]),f(" Result count + active filter chips "),e.loading?f("v-if",!0):(l(),d("div",PO,[o("div",VO,[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,qO),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]=w()),o("span",{class:A(["attention-count",{"has-attention":e.attentionCount()>0}])},c(e.attentionCount()),3)],8,MO)]),o("span",UO,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",$O,[w(c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",LO,"s")):f("v-if",!0)])):(l(),d("span",FO,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",zO,[(l(!0),d(K,null,oe(e.filters?.status,(i,a,u)=>(l(),d(K,null,[i===!1?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:m=>e.filters.status[a]=!0,"aria-label":"Show "+e.statusKeyLabels[a]+" again",title:"Show "+e.statusKeyLabels[a]+" again"},[w(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,HO)):f("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"},[w(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))])):f("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")):f("v-if",!0)])]))]),f(" Table "),o("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[o("div",jO,[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]=w(" 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)):f("v-if",!0)],2)],8,GO),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]=w(" 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)):f("v-if",!0)],2)],8,WO),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]=w(" 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)):f("v-if",!0)],2)],8,KO),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]=w(" 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)):f("v-if",!0)],2)],8,YO),t[54]||(t[54]=o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")],-1))]),f(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(K,null,oe([1,2,3,4],(i,a)=>(l(),d(K,null,[e.loading?(l(),d("div",JO,[...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)])])):f("v-if",!0)],64))),64)),(l(!0),d(K,null,oe(e.filteredItems,(i,a)=>(l(),d(K,{key:i?._type+":"+(i?._id||a)},[e.loading?f("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",XO,[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",xO,[o("use",{href:"#project-type-"+i._type},null,8,eI)]))],8,ZO),o("div",tI,[o("div",oI,[i?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:i._label,textContent:c(i?._label),href:e.safeUrl(i?._viewUrl)},null,8,nI)):f("v-if",!0),i?._viewUrl?f("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(i?._label)},null,8,sI)),i?.role==="coauthor"?(l(),d("span",rI,"Co-author")):f("v-if",!0)]),o("div",iI,[i?._id?(l(),d("code",{key:0,class:"anonymous-id",title:i._id},c(i._id),9,aI)):f("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,lI)):f("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]=w()),o("span",{textContent:c(i?.conference)},null,8,uI)],8,dI)):f("v-if",!0)])])]),o("div",cI,[o("div",pI,[o("div",fI,[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,mI)]),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,hI)):f("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,vI)):f("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,yI)):f("v-if",!0),i._stale||i._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:ie(u=>e.showProjectDetails(i),["stop"])},c(i._broken?"Review details":"Check progress"),9,gI)):f("v-if",!0),i?.status!="error"&&!i?._stale&&i?.anonymizeDate?(l(),d("div",bI," anonymized "+c(e.fmt?.humanTime(i?.anonymizeDate)),1)):f("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,wI),o("div",kI,[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",EI,"Never")):f("v-if",!0),i?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(i?._expiry?.date))},null,8,CI)):f("v-if",!0),i?._expiry?.kind==="expired"&&i?._expiry?.date?(l(),d("span",_I,"Expired "+c(e.fmt?.humanTime(i?._expiry?.date)),1)):f("v-if",!0),i?._expiry?.kind==="expired"&&!i?._expiry?.date?(l(),d("span",SI,"Expired")):f("v-if",!0),i?._expiry?.kind==="none"?(l(),d("span",NI,"\u2014")):f("v-if",!0)])]),o("div",DI,[i._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:ie(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,RI)):f("v-if",!0),i._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:ie(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,TI)):f("v-if",!0),i?._broken?f("v-if",!0):(l(),d("div",AI,[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,OI),o("div",II,[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,PI),o("a",{class:"dropdown-item",href:e.safeUrl(i?._viewUrl)}," View ",8,VI),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,qI)):f("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,MI)):f("v-if",!0),o("a",{class:"dropdown-item",href:e.safeUrl(i?._editUrl)}," Edit ",8,UI),i?.status=="ready"||i?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Force update ",8,$I)):f("v-if",!0),i?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Enable ",8,LI)):f("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,FI)):f("v-if",!0),(i?.status=="ready"||i?.status=="expired"||i?.status=="error")&&i?.role!=="coauthor"?(l(),d("div",zI,[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,HI)])):f("v-if",!0)])]))])],10,QO)),!e.loading&&e.selectedProject===i?(l(),d("div",BI,[o("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(i),tabindex:"-1",onKeydown:To(ie(u=>e.closeProjectDetails(i),["stop"]),["esc"])},[o("div",GI,[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,WI)]),o("dl",KI,[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",YI,[t[67]||(t[67]=o("dt",null,"Commit",-1)),o("dd",null,[o("code",null,c(i.source.commit),1)])])):f("v-if",!0),i.conference?(l(),d("div",JI,[t[68]||(t[68]=o("dt",null,"Conference",-1)),o("dd",null,c(i.conference),1)])):f("v-if",!0),o("div",null,[t[69]||(t[69]=o("dt",null,"Status",-1)),o("dd",null,[w(c(e.fmt.statusLabel(i.status)),1),i.statusMessage?(l(),d("span",QI," \xB7 "+c(e.fmt.statusMsg(i.statusMessage)),1)):f("v-if",!0)])]),i.anonymizeDate?(l(),d("div",XI,[t[70]||(t[70]=o("dt",null,"Last anonymized",-1)),o("dd",null,c(e.fmt.humanTime(i.anonymizeDate)),1)])):f("v-if",!0)]),i._stale?(l(),d("p",ZI,"This download has not progressed recently. Check the source access and selected branch before retrying.")):f("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,xI)):f("v-if",!0),i._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:ie(u=>e.saveProjectName(i),["prevent"])},[o("label",{for:"project-name-"+i._type+"-"+i._id},"Project name",8,t4),o("p",{id:"project-name-help-"+i._type+"-"+i._id},"Only you see this name. Leave it blank to use the default.",8,o4),o("div",n4,[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,s4),[[zt,e.projectName]]),o("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,r4)]),e.nameError?(l(),d("p",i4,c(e.nameError),1)):f("v-if",!0),e.nameMessage?(l(),d("p",a4,c(e.nameMessage),1)):f("v-if",!0)],40,e4)):f("v-if",!0)],40,jI)])):f("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",l4,[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()?f("v-if",!0):(l(),d("span",d4,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",u4,"Nothing matches the current filters.")):f("v-if",!0),o("div",c4,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=i=>e.clearFilters())},"Clear filters")):f("v-if",!0),e.hasProjects()?f("v-if",!0):(l(),d("a",p4,[...t[71]||(t[71]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),w(" New anonymization",-1)])]))])])):f("v-if",!0)],8,BO)]),e.dashboardCursor||e.dashboardError?(l(),d("div",f4,[e.dashboardError?(l(),d("p",m4,c(e.dashboardError),1)):f("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,h4)):f("v-if",!0)])):f("v-if",!0)])}var v4={class:"explorer-page"},y4=["aria-label"],g4={class:"ui-icon","aria-hidden":"true"},b4=["href"],w4=["textContent"],k4={class:"leftCol-head"},E4={class:"leftCol-search"},C4={class:"tree-search-box"},_4=["href"],S4={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},N4={class:"leftCol-project-header"},D4=["textContent","title"],R4={class:"project-file-count"},T4=["title"],A4={class:"leftCol-body"},O4={key:0,class:"paper-inline-warning",role:"alert"},I4={key:1,class:"paper-inline-warning",role:"alert"},P4={class:"leftCol-foot"},V4=["title"],q4=["title"],M4=["title"],U4={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."},$4={class:"explorer-main"},L4={class:"status-bar"},F4={class:"breadcrumb paths","aria-label":"Path"},z4=["textContent"],H4={class:"status-bar-actions"},B4=["href"],j4={class:"d-none d-md-inline"},G4={class:"ui-icon","aria-hidden":"true"},W4=["href"],K4={class:"d-none d-md-inline"},Y4=["href"],J4=["href"],Q4=["href"],X4=["href"],Z4={class:"explorer-content"};function zl(e,t){let n=Ge("tree"),r=Ge("partial-view"),s=ve("field");return l(),d("div",v4,[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",g4,[o("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,b4)])),o("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,w4)],8,y4),[[j,e.files?.length]]),N(o("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[o("div",k4,[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",E4,[o("div",C4,[(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,_4)],2)),N(o("input",S4,null,512),[[s,{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),[[j,!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),[[j,e.fileSearchQuery]])])]),o("div",N4,[o("span",{class:"project-name",textContent:c(e.repoId),title:e.repoId},null,8,D4),o("span",R4,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)),w(" Available until "+c(e.fmt?.date(e.options.expirationDate)),1)],8,T4)):f("v-if",!0)]),o("div",A4,[e.options?.truncatedFolders?.length>0?(l(),d("div",O4,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):f("v-if",!0),e.options?.hasSubmodules?(l(),d("div",I4,[t[10]||(t[10]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):f("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",P4,[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,V4),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,q4)):f("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,M4)):f("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",U4," Snapshot ready date not recorded ")):f("v-if",!0)])],2),[[j,e.files?.length]]),N(o("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[j,e.files?.length&&!e.sidebarCollapsed]]),o("div",$4,[N(o("div",L4,[o("ol",F4,[(l(!0),d(K,null,oe(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,z4))),256))]),o("div",H4,[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,B4)):f("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",j4,c(e.allowScripts?"JS on":"JS off"),1)],2)):f("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",G4,[o("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,W4)])),o("span",K4,c(e.showSource?"Rendered":"Source"),1)])):f("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,Y4),[[j,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,J4),[[j,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,Q4)):f("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,X4)):f("v-if",!0)])],512),[[j,e.type!="error"||e.files?.length]]),o("div",Z4,[Ce(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var x4={class:"paper-faq"};function Hl(e,t){return l(),d("div",x4,[...t[0]||(t[0]=[ue('Help
Answers to the questions that come up most.
If something's missing, write to us \u2014 report a bug on GitHub.
',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,[f(" General "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),w("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,[w(" 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"),w(", donating through "),o("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),w(', or by clicking the "Support me" button on the site. ')])])])])]),f(" Features "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})]),w("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"),w(" \u2014 displayed with syntax highlighting")]),o("li",null,[o("strong",null,"Markdown"),w(" \u2014 rendered as formatted HTML")]),o("li",null,[o("strong",null,"Images"),w(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),o("li",null,[o("strong",null,"PDFs"),w(" \u2014 rendered directly in the browser")]),o("li",null,[o("strong",null,"Jupyter Notebooks"),w(" \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"),w(" \u2014 the anonymized repository remains accessible indefinitely.")]),o("li",null,[o("strong",null,"Redirect to GitHub"),w(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),o("li",null,[o("strong",null,"Remove content"),w(" \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`)])])])])]),f(" Limitations "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})]),w("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). ")])])])])]),f(" Privacy & Security "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),w("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,[w("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"),w(" 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. ")])])])]),f(" Self-Hosting "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-storage"})]),w("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,[w(" 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"),w(". ")]),o("p",null," The basic steps are: "),o("ol",null,[o("li",null,"Clone the repository and install dependencies"),o("li",null,[w("Create a "),o("code",null,".env"),w(" file with your GitHub token, OAuth client ID, and client secret")]),o("li",null,[w("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"},[w(" Open an issue on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),w(" and we'll be happy to help. ")])])])])],-1)])])}var e3={class:"pr-page"},t3={class:"container paper-page pr-page-inner"},o3={class:"pr-header"},n3={class:"pr-title-row"},s3={class:"paper-page-title pr-title"},r3=["textContent"],i3={key:1,class:"text-muted"},a3=["href"],l3={class:"pr-header-meta"},d3={key:0,class:"pr-meta-item"},u3=["textContent"],c3={key:1,class:"pr-meta-item"},p3=["textContent"],f3={key:2,class:"pr-meta-item"},m3=["textContent"],h3={key:0,class:"paper-tabs",role:"tablist"},v3=["aria-selected","tabindex"],y3=["textContent"],g3=["aria-selected","tabindex"],b3=["textContent"],w3={class:"paper-tab-content"},k3={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},E3={class:"pr-comments"},C3={class:"pr-comment"},_3={class:"pr-comment-head"},S3=["textContent"],N3={key:0,class:"pr-comment-date"},D3={key:0,class:"paper-table-empty"},R3={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},T3={class:"pr-comments"},A3={class:"pr-comment"},O3={class:"pr-comment-head"},I3={key:0,class:"pr-comment-author"},P3=["textContent"],V3=["textContent"],q3={key:0,class:"pr-comment-body"},M3={key:0,class:"paper-table-empty"};function Bl(e,t){let n=Ge("gist-file"),r=Ge("markdown");return l(),d("div",e3,[o("div",t3,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),w(" \xA0/\xA0 "),o("span",{class:"here"},"Gist")],-1)),o("header",o3,[o("div",n3,[o("h1",s3,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,r3)):f("v-if",!0),e.details?.description?f("v-if",!0):(l(),d("span",i3,"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,a3)):f("v-if",!0)]),o("div",l3,[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",d3,[t[5]||(t[5]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=w(" @",-1)),o("span",{textContent:c(e.details?.ownerLogin)},null,8,u3)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",c3,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=w()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,p3)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",f3,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=w(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,m3)])):f("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",h3,[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,y3)],42,v3)):f("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,b3)],42,g3)):f("v-if",!0)])):f("v-if",!0),o("div",w3,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",k3,[o("ul",E3,[(l(!0),d(K,null,oe(e.details?.files,(s,i)=>(l(),d("li",C3,[o("div",_3,[o("strong",{textContent:c(s?.filename)},null,8,S3),s?.language?(l(),d("span",N3,c(s?.language),1)):f("v-if",!0)]),Ce(n,{file:s},null,8,["file"])]))),256)),e.details?.files?.length?f("v-if",!0):(l(),d("li",D3,[...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)])]))])])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",R3,[o("ul",T3,[(l(!0),d(K,null,oe(e.details?.comments,(s,i)=>(l(),d("li",A3,[o("div",O3,[s?.author?(l(),d("span",I3,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=w(" @",-1)),o("span",{textContent:c(s?.author)},null,8,P3)])):f("v-if",!0),s?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(s?.updatedDate))},null,8,V3)):f("v-if",!0)]),s?.body?(l(),d("div",q3,[Ce(r,{content:s?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",M3,[...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)])]))])])):f("v-if",!0)])])])}var U3={class:"collapse navbar-collapse",id:"navbarSupportedContent"},$3={class:"navbar-nav mr-auto smooth-scroll"},L3={key:0,class:"nav-item"},F3={key:1,class:"nav-item"},z3={key:2,class:"nav-item"},H3={key:3,class:"nav-item"},B3={class:"nav-item"},j3={key:4,class:"nav-item"},G3={class:"navbar-nav"},W3={key:0,class:"nav-item"},K3={key:1,class:"nav-item"},Y3={key:2,class:"nav-item"},J3={key:3,class:"nav-item"},Q3={key:4,class:"nav-item dropdown user-chip-wrap"},X3={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},Z3=["src"],x3={class:"user-chip-name"},eP={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},tP={class:"dropdown-header"},oP=["innerHTML"],nP=["disabled"],sP={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},rP={class:"email-prompt-actions"},iP=["disabled"],aP=["disabled"],lP=["disabled"];function jl(e,t){return l(),d(K,null,[o("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[18]||(t[18]=ue('Anonymous GitHubSupport',3)),o("div",U3,[o("ul",$3,[e.user?f("v-if",!0):(l(),d("li",L3,[o("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",F3,[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),w(" My work ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",z3,[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),w(" Anonymize ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",H3,[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),w(" Conferences ",-1)])],2)])):f("v-if",!0),o("li",B3,[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),w("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",j3,[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),w(" Admin ",-1)])],2)])):f("v-if",!0)]),o("ul",G3,[e.user||!e.isReviewerRoute?(l(),d("li",W3,[...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)])])):f("v-if",!0),f(` "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[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",z3,[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]=le(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",H3,[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]=le(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",B3,[...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",j3,[o("a",G3,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,W3)):p("v-if",!0),o("span",K3,c(e.user?.username),1)]),o("div",Y3,[o("h6",J3,"Signed in as @"+c(e.user?.username),1),t[16]||(t[16]=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,Q3)):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]=le(n=>e.respondToEmailPrompt("later"),["prevent"]))},[o("form",{onSubmit:t[5]||(t[5]=le(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,X3),[[zt,e.emailPromptAddress]]),e.emailPromptError?(l(),d("p",Z3,c(e.emailPromptError),1)):p("v-if",!0),o("div",x3,[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,eP),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[4]||(t[4]=n=>e.respondToEmailPrompt("never"))},"Never",8,tP),o("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},c(e.emailPromptBusy?"Saving\u2026":"Save"),9,oP)])],32)],32)):p("v-if",!0)],64)}var nP={class:"paper-landing"},sP={class:"paper-hero"},rP={class:"paper-hero-copy"},iP={class:"paper-cta-row"},aP={key:0,href:"/signin",target:"_self",class:"btn-hero"},lP={key:1,href:"/anonymize",class:"btn-hero"},dP={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},uP={class:"paper-stats-grid"},cP={class:"paper-stat-value"},pP={class:"paper-stat-label"},fP=["viewBox"],mP=["x","y","width","height"],hP={key:1,class:"paper-stat-delta"},vP={class:"paper-features paper-wrap","aria-label":"Product features"},yP={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},gP=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],bP={class:"paper-eyebrow"},wP={class:"paper-feature-title"},kP={class:"paper-feature-more"},EP={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},CP=["href","target"],_P={class:"paper-features-stage"},SP=["id","aria-labelledby"],NP={class:"paper-frame"},DP={class:"paper-frame-bar","aria-hidden":"true"},RP={class:"url"},TP=["src","alt"],AP={class:"paper-footer"},OP={class:"paper-footer-inner"},IP={class:"paper-footer-col"},PP={key:0,href:"/dashboard"},VP={key:1,href:"/conferences"},qP={class:"paper-footer-foot"};function Gl(e,t){return l(),d("div",nP,[p(" Hero: copy on the left, the product on the right "),o("section",sP,[o("div",rP,[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",iP,[e.user?p("v-if",!0):(l(),d("a",aP,[...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",lP," 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",dP,[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",uP,[(l(!0),d(Q,null,re(e.cards,(n,r)=>(l(),d("div",{class:"paper-stat-card",key:n?.key},[o("div",cP,c(e.fmt?.bigNum(n?.total)),1),o("div",pP,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(Q,null,re(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,mP))),128))],8,fP)):p("v-if",!0),e.history[n?.key].bars?.length>1?(l(),d("div",hP," +"+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",vP,[o("div",yP,[(l(!0),d(Q,null,re(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",bP,c(n?.num)+" \xB7 "+c(n?.eyebrow),1),o("span",wP,[b(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)])],40,gP),o("div",kP,[o("span",EP,[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,CP)])],2))),128))]),o("div",_P,[(l(!0),d(Q,null,re(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",NP,[o("div",DP,[t[8]||(t[8]=o("span",{class:"dots"},[o("i"),o("i"),o("i")],-1)),o("span",RP,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,TP)],2)])],8,SP)),[[K,e.feature===n?.key]])),128))])]),p(" FAQ teaser "),t[20]||(t[20]=ce('What access does GitHub sign-in require? The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.
Which file formats are supported? Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.
',1)),o("footer",AP,[o("div",OP,[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",IP,[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",PP,"My work")):p("v-if",!0),e.user?(l(),d("a",VP,"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",qP,[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 MP={class:"paper-empty"},$P={class:"paper-empty-inner"},LP={key:0,class:"paper-eyebrow"},UP={key:1,class:"paper-eyebrow"},FP={key:2,class:"paper-empty-title"},zP=["textContent"];function Wl(e,t){return l(),d("div",MP,[o("div",$P,[e.error?p("v-if",!0):(l(),d("div",LP,"Working")),e.error?(l(),d("div",UP,"Error")):p("v-if",!0),e.error?p("v-if",!0):(l(),d("h1",FP,[...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,zP)):p("v-if",!0)])])}var HP={class:"container paper-page paper-settings"},BP={class:"paper-crumbs"},jP={class:"here"},GP={class:"paper-page-title"},WP={class:"paper-settings-body"},KP={class:"paper-settings-toc"},YP={href:"#conf-billing"},JP={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},QP={id:"conf-basics",class:"paper-settings-section"},XP={class:"form-group"},ZP={class:"invalid-feedback"},xP={class:"invalid-feedback"},eV={class:"form-group"},tV={class:"invalid-feedback"},oV={class:"form-group"},nV={class:"invalid-feedback"},sV={class:"invalid-feedback"},rV={id:"conf-window",class:"paper-settings-section"},iV={class:"form-grid-2"},aV={class:"form-group"},lV={class:"invalid-feedback"},dV={class:"invalid-feedback"},uV={class:"form-group"},cV={class:"invalid-feedback"},pV={class:"invalid-feedback"},fV={id:"conf-rendering",class:"paper-settings-section"},mV={class:"form-check"},hV={class:"form-check-input",type:"checkbox",id:"link",name:"link"},vV={class:"form-check"},yV={class:"form-check-input",type:"checkbox",id:"image",name:"image"},gV={class:"form-check"},bV={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},wV={class:"form-check"},kV={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},EV={id:"conf-features",class:"paper-settings-section"},CV={class:"form-check"},_V={class:"form-check-input",type:"checkbox",id:"update",name:"update"},SV={class:"form-check"},NV={class:"form-check-input",type:"checkbox",id:"page",name:"page"},DV={id:"conf-plan",class:"paper-settings-section"},RV={class:"paper-plan-grid"},TV=["value"],AV=["textContent"],OV={class:"paper-plan-price"},IV=["innerHTML"],PV={key:0,id:"conf-billing",class:"paper-settings-section"},VV={class:"form-group"},qV={class:"form-group"},MV={class:"form-group"},$V={class:"form-group"},LV={class:"form-grid-3"},UV={class:"form-group"},FV={class:"form-group"},zV={class:"form-group"},HV={class:"form-group"},BV={class:"paper-settings-footer"},jV=["textContent"],GV=["textContent"],WV=["disabled"];function Kl(e,t){let n=ge("paper-scrollspy"),r=ge("field"),s=ge("form");return l(),d("div",HP,[o("div",BP,[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",jP,c(e.editionMode?"Edit":"New"),1)]),o("h1",GP,[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",WP,[D((l(),d("aside",KP,[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)),D(o("a",YP,"Billing",512),[[K,e.plan?.pricePerRepo>0]])])])),[[n]]),D((l(),d("form",JP,[o("section",QP,[t[12]||(t[12]=o("div",{class:"paper-section-eyebrow"},"Basics",-1)),o("div",XP,[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",ZP," The name of the conference is invalid. ",512),[[K,e.conference?.name?.errors?.invalid]]),D(o("div",xP," The name of the conference is required. ",512),[[K,e.conference?.name?.errors?.required]])]),o("div",eV,[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",tV," The url of the conference is invalid. ",512),[[K,e.conference?.url?.errors?.url]])]),o("div",oV,[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",nV," The conference ID is required. ",512),[[K,e.conference?.conferenceID?.errors?.required]]),D(o("div",sV," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[K,e.conference?.conferenceID?.errors?.pattern]])])]),o("section",rV,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Review window",-1)),o("div",iV,[o("div",aV,[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",lV," Start date is required. ",512),[[K,e.conference?.startDate?.errors?.required]]),D(o("div",dV," Start date must be before end date. ",512),[[K,e.conference?.startDate?.errors?.invalid]])]),o("div",uV,[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",cV," End date is required. ",512),[[K,e.conference?.endDate?.errors?.required]]),D(o("div",pV," End date is invalid. ",512),[[K,e.conference?.endDate?.errors?.invalid]])])])]),o("section",fV,[t[26]||(t[26]=o("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),o("div",mV,[D(o("input",hV,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",vV,[D(o("input",yV,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",gV,[D(o("input",bV,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",wV,[D(o("input",kV,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",EV,[t[31]||(t[31]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",CV,[D(o("input",_V,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",SV,[D(o("input",NV,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",DV,[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",RV,[(l(!0),d(Q,null,re(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,TV),[[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,AV),o("div",OV,[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,IV)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",PV,[t[42]||(t[42]=o("div",{class:"paper-section-eyebrow"},"Billing",-1)),o("div",VV,[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",qV,[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",MV,[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",$V,[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",LV,[o("div",UV,[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",FV,[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",zV,[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",HV,[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",BV,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,jV)):p("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,GV)):p("v-if",!0),o("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=le(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,WV)])])),[[s,e.viewState]])])])}var KV={key:0},YV=["innerHTML"],JV={key:3},QV=["src"],XV=["src"],ZV={key:7},xV={controls:"controls"},e5=["src"],t5={key:8},o5={key:9,class:"file-error container d-flex h-100"},n5={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},s5={class:"paper-error-msg"},r5={key:10,class:"file-error container d-flex h-100"},i5={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},a5={id:"viewer-error-title",class:"paper-empty-title"},l5={class:"paper-error-actions"},d5={key:0,href:"/",class:"btn btn-sm"},u5={key:1,href:"/faq",class:"btn btn-sm"},c5={key:2,class:"btn btn-outline-ink",href:"/dashboard"},p5={key:11,class:"file-error container d-flex h-100"},f5={key:12,class:"file-error container d-flex h-100"},m5={key:13,class:"file-error container d-flex h-100"},h5={key:14,class:"file-error container d-flex h-100"},v5={class:"paper-empty-title m-auto"},y5=["href"];function Yl(e,t){let n=Ge("html-doc"),r=Ge("pdfviewer"),s=Ge("notebook"),i=ge("code-editor");return l(),d(Q,null,[e.type=="text"?D((l(),d("div",KV,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,YV)):p("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),Ut(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",JV,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,QV)):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,XV)):p("v-if",!0),e.type=="pdf"?(l(),Ut(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):p("v-if",!0),e.type=="audio"?(l(),d("div",ZV,[o("audio",xV,[o("source",{src:e.safeUrl(e.url)},null,8,e5)])])):p("v-if",!0),e.type=="IPython"?(l(),d("div",t5,[Ce(s,{file:e.url,content:e.content},null,8,["file","content"])])):p("v-if",!0),e.type=="rate_limited"?(l(),d("div",o5,[o("div",n5,[t[3]||(t[3]=ce('Temporarily paused
GitHub API rate limit reached
',1)),o("p",s5,[t[1]||(t[1]=b("This repository will be available in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[2]||(t[2]=b(". The page will reload automatically.",-1))])])])):p("v-if",!0),e.type=="error"?(l(),d("div",r5,[o("section",i5,[o("h1",a5,c(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),o("p",null,c(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(l(),d(Q,{key:0},[o("p",null,c(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),o("p",null,c(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):p("v-if",!0),o("div",l5,[e.isSourceAccessError()?p("v-if",!0):(l(),d("a",d5,"Back to home")),e.isSourceAccessError()?p("v-if",!0):(l(),d("a",u5,"Read the FAQ")),o("button",{type:"button",class:"btn btn-primary",onClick:t[0]||(t[0]=a=>e.retryContent())},c(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(l(),d("a",c5,c(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):p("v-if",!0)])])])):p("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",p5,[...t[4]||(t[4]=[o("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):p("v-if",!0),e.type=="empty"?(l(),d("div",f5,[...t[5]||(t[5]=[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",m5,[...t[6]||(t[6]=[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",h5,[o("h1",v5,[t[7]||(t[7]=b("Unsupported ",-1)),t[8]||(t[8]=o("em",null,"binary file",-1)),t[9]||(t[9]=b(". You can ",-1)),o("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,y5),t[10]||(t[10]=b(".",-1))])])):p("v-if",!0)],64)}var g5={class:"container page dashboard-page paper-page"},b5={class:"row"},w5={class:"w-100"},k5={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},E5={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},C5={class:"flex-grow-1"},_5={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},S5={class:"d-flex flex-wrap",style:{gap:"6px"}},N5={class:"dropdown"},D5={class:"dropdown-menu","aria-labelledby":"dropdownSort"},R5={class:"form-check dropdown-item"},T5={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},A5={class:"form-check dropdown-item"},O5={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},I5={class:"form-check dropdown-item"},P5={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},V5={class:"form-check dropdown-item"},q5={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},M5={class:"form-check dropdown-item"},$5={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},L5={class:"dropdown"},U5={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},F5={class:"form-check dropdown-item"},z5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},H5={class:"form-check dropdown-item"},B5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},j5={class:"form-check dropdown-item"},G5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},W5={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},K5={class:"filter-chip"},Y5=["onClick"],J5={class:"repo-list w-100"},Q5={class:"repo-list-item-content"},X5={class:"repo-list-item-main"},Z5={class:"repo-list-item-header"},x5=["textContent","href"],eq=["textContent"],tq=["textContent"],oq={class:"repo-source"},nq=["href"],sq={class:"repo-date"},rq={class:"repo-meta"},iq={key:0,title:"Conference"},aq=["title"],lq=["title"],dq=["title"],uq={key:1},cq={class:"repo-list-item-actions"},pq={class:"dropdown"},fq={class:"dropdown-menu dropdown-menu-right"},mq=["href"],hq=["onClick"],vq=["onClick"],yq=["onClick"],gq=["href"],bq={key:0,class:"repo-list-empty"};function Jl(e,t){let n=ge("field"),r=ge("form");return l(),d("div",g5,[o("div",b5,[o("div",w5,[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 "),D((l(),d("form",k5,[o("div",E5,[o("div",C5,[D(o("input",_5,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",S5,[o("div",N5,[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",D5,[t[5]||(t[5]=o("h6",{class:"dropdown-header"},"Select order",-1)),o("div",R5,[D(o("input",T5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=o("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),o("div",A5,[D(o("input",O5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=o("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),o("div",I5,[D(o("input",P5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",V5,[D(o("input",q5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),o("div",M5,[D(o("input",$5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),o("div",L5,[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",U5,[t[10]||(t[10]=o("h6",{class:"dropdown-header"},"Select status",-1)),o("div",F5,[D(o("input",z5,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.ready=s},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=o("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),o("div",H5,[D(o("input",B5,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.expired=s},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=o("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),o("div",j5,[D(o("input",G5,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.removed=s},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 "),D(o("div",W5,[(l(!0),d(Q,null,re(e.filters?.status,(s,i,a)=>D((l(),d("span",K5,[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,Y5)],512)),[[K,!s]])),256))],512),[[K,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),p(" Pull request list "),o("ul",J5,[(l(!0),d(Q,null,re(e.filteredPullRequests,(s,i)=>(l(),d("li",{class:A(["repo-list-item",{"repo-inactive":s?.status=="expired"||s?.status=="removed"||s?.status=="error"}])},[o("div",Q5,[o("div",X5,[o("div",Z5,[o("a",{class:"repo-name",textContent:c(s?.pullRequestId),href:e.safeUrl("/pr/"+s?.pullRequestId)},null,8,x5),o("span",{class:A(["status-badge",{"status-removed":s?.status=="removed"||s?.status=="expired"||s?.status=="removing"||s?.status=="expiring","status-preparing":s?.status=="preparing"||s?.status=="download","status-ready":s?.status=="ready","status-error":s?.status=="error"}])},[o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,eq),s?.status=="error"?(l(),d("span",{key:0,textContent:c(": "+s?.statusMessage)},null,8,tq)):p("v-if",!0)],2)]),o("div",oq,[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/"+s?.source?.repositoryFullName+"/pull/"+s?.source?.pullRequestId)},c(s?.source?.repositoryFullName)+"#"+c(s?.source?.pullRequestId),9,nq)]),o("span",{class:A(["status-badge",{"status-ready":s?.merged,"status-removed":s?.state=="open","status-error":s?.state=="closed"&&!s?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(s?.merged?"merged":s?.state)),3),o("span",sq,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)])]),o("div",rq,[s?.conference?(l(),d("span",iq,[t[14]||(t[14]=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",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+s?.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(s?.options?.terms?.length)),1)],8,aq),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(s?.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(s?.pageView)),1)],8,lq),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(s?.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(s?.lastView)),1)],8,dq),s?.options?.expirationMode!="never"&&s?.status=="ready"?(l(),d("span",uq,[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(s?.options?.expirationDate)),1)])):p("v-if",!0)])]),o("div",cq,[o("div",pq,[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",fq,[o("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+s?.pullRequestId)},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,mq),D(o("a",{class:"dropdown-item",href:"#",onClick:le(a=>e.updatePullRequest(s),["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,hq),[[K,s?.status=="ready"||s?.status=="error"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:le(a=>e.updatePullRequest(s),["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,vq),[[K,s?.status=="removed"]]),D(o("a",{class:"dropdown-item",href:"#",onClick:le(a=>e.removePullRequest(s),["prevent"])},[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove ",-1)])],8,yq),[[K,s?.status=="ready"]]),o("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+s?.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,gq)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",bq,[...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 wq={class:"container paper-page paper-settings"},kq={class:"paper-settings-body"},Eq={class:"paper-settings-toc"},Cq={class:"paper-settings-main"},_q={id:"settings-quota",class:"paper-settings-section"},Sq={key:1,class:"quota-row","aria-hidden":"true"},Nq={class:"quota-item"},Dq={id:"settings-terms",class:"paper-settings-section"},Rq={class:"form-group"},Tq={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"})]),w("Report a bug ")])],-1)),e.isDarkMode?f("v-if",!0):(l(),d("li",K3,[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]=ie(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",Y3,[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]=ie(n=>{e.darkMode(!1)},["prevent"]))},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(l(),d("li",J3,[...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"}),w(" Sign in ")],-1)])])):f("v-if",!0),e.user?(l(),d("li",Q3,[o("a",X3,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,Z3)):f("v-if",!0),o("span",x3,c(e.user?.username),1)]),o("div",eP,[o("h6",tP,"Signed in as @"+c(e.user?.username),1),t[16]||(t[16]=ue('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))])])):f("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,oP)):f("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]=ie(n=>e.respondToEmailPrompt("later"),["prevent"]))},[o("form",{onSubmit:t[5]||(t[5]=ie(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)),N(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,nP),[[zt,e.emailPromptAddress]]),e.emailPromptError?(l(),d("p",sP,c(e.emailPromptError),1)):f("v-if",!0),o("div",rP,[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,iP),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[4]||(t[4]=n=>e.respondToEmailPrompt("never"))},"Never",8,aP),o("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},c(e.emailPromptBusy?"Saving\u2026":"Save"),9,lP)])],32)],32)):f("v-if",!0)],64)}var dP={class:"paper-landing"},uP={class:"paper-hero"},cP={class:"paper-hero-copy"},pP={class:"paper-cta-row"},fP={key:0,href:"/signin",target:"_self",class:"btn-hero"},mP={key:1,href:"/anonymize",class:"btn-hero"},hP={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},vP={class:"paper-stats-grid"},yP={class:"paper-stat-value"},gP={class:"paper-stat-label"},bP=["viewBox"],wP=["x","y","width","height"],kP={key:1,class:"paper-stat-delta"},EP={class:"paper-features paper-wrap","aria-label":"Product features"},CP={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},_P=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],SP={class:"paper-eyebrow"},NP={class:"paper-feature-title"},DP={class:"paper-feature-more"},RP={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},TP=["href","target"],AP={class:"paper-features-stage"},OP=["id","aria-labelledby"],IP={class:"paper-frame"},PP={class:"paper-frame-bar","aria-hidden":"true"},VP={class:"url"},qP=["src","alt"],MP={class:"paper-footer"},UP={class:"paper-footer-inner"},$P={class:"paper-footer-col"},LP={key:0,href:"/dashboard"},FP={key:1,href:"/conferences"},zP={class:"paper-footer-foot"};function Gl(e,t){return l(),d("div",dP,[f(" Hero: copy on the left, the product on the right "),o("section",uP,[o("div",cP,[t[2]||(t[2]=o("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=o("h1",{class:"hero-title"},[w(" 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",pP,[e.user?f("v-if",!0):(l(),d("a",fP,[...t[0]||(t[0]=[o("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),w("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",mP," Anonymize a repository \u2192 ")):f("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]=ue('anonymous.4open.science/anonymize

',1))]),f(" Proof "),t[16]||(t[16]=ue('Trusted by authors at
ICSE\xB7FSE\xB7OOPSLA
',1)),f(" Live stats "),o("section",hP,[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"}),w(" updated daily ")])],-1)),o("div",vP,[(l(!0),d(K,null,oe(e.cards,(n,r)=>(l(),d("div",{class:"paper-stat-card",key:n?.key},[o("div",yP,c(e.fmt?.bigNum(n?.total)),1),o("div",gP,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(K,null,oe(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,wP))),128))],8,bP)):f("v-if",!0),e.history[n?.key].bars?.length>1?(l(),d("div",kP," +"+c(e.fmt?.number(e.history[n?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))])]),f(" 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,[w("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"},"#"),w(),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"},"#"),w(),o("strong",null,"DeepLearnUtils")]),o("div",null,[w("Developed by "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),w(" at "),o("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),w(".")]),o("div",null,[w("See "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),w(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),o("div",null,[w("Contact: "),o("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),f(" 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,[w("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",EP,[o("div",CP,[(l(!0),d(K,null,oe(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",SP,c(n?.num)+" \xB7 "+c(n?.eyebrow),1),o("span",NP,[w(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)])],40,_P),o("div",DP,[o("span",RP,[w(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,TP)])],2))),128))]),o("div",AP,[(l(!0),d(K,null,oe(e.features,(n,r)=>N((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",IP,[o("div",PP,[t[8]||(t[8]=o("span",{class:"dots"},[o("i"),o("i"),o("i")],-1)),o("span",VP,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,qP)],2)])],8,OP)),[[j,e.feature===n?.key]])),128))])]),f(" FAQ teaser "),t[20]||(t[20]=ue('What access does GitHub sign-in require? The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.
Which file formats are supported? Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.
',1)),o("footer",MP,[o("div",UP,[t[12]||(t[12]=o("div",{class:"paper-footer-brand"},[o("div",{class:"paper-footer-mark"},[w("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",$P,[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",LP,"My work")):f("v-if",!0),e.user?(l(),d("a",FP,"Conferences")):f("v-if",!0),t[11]||(t[11]=o("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=ue('',2))]),t[15]||(t[15]=o("div",{class:"paper-footer-rule"},null,-1)),o("div",zP,[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 HP={class:"paper-empty"},BP={class:"paper-empty-inner"},jP={key:0,class:"paper-eyebrow"},GP={key:1,class:"paper-eyebrow"},WP={key:2,class:"paper-empty-title"},KP=["textContent"];function Wl(e,t){return l(),d("div",HP,[o("div",BP,[e.error?f("v-if",!0):(l(),d("div",jP,"Working")),e.error?(l(),d("div",GP,"Error")):f("v-if",!0),e.error?f("v-if",!0):(l(),d("h1",WP,[...t[0]||(t[0]=[w(" 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,KP)):f("v-if",!0)])])}var YP={class:"container paper-page paper-settings"},JP={class:"paper-crumbs"},QP={class:"here"},XP={class:"paper-page-title"},ZP={class:"paper-settings-body"},xP={class:"paper-settings-toc"},eV={href:"#conf-billing"},tV={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},oV={id:"conf-basics",class:"paper-settings-section"},nV={class:"form-group"},sV={class:"invalid-feedback"},rV={class:"invalid-feedback"},iV={class:"form-group"},aV={class:"invalid-feedback"},lV={class:"form-group"},dV={class:"invalid-feedback"},uV={class:"invalid-feedback"},cV={id:"conf-window",class:"paper-settings-section"},pV={class:"form-grid-2"},fV={class:"form-group"},mV={class:"invalid-feedback"},hV={class:"invalid-feedback"},vV={class:"form-group"},yV={class:"invalid-feedback"},gV={class:"invalid-feedback"},bV={id:"conf-rendering",class:"paper-settings-section"},wV={class:"form-check"},kV={class:"form-check-input",type:"checkbox",id:"link",name:"link"},EV={class:"form-check"},CV={class:"form-check-input",type:"checkbox",id:"image",name:"image"},_V={class:"form-check"},SV={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},NV={class:"form-check"},DV={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},RV={id:"conf-features",class:"paper-settings-section"},TV={class:"form-check"},AV={class:"form-check-input",type:"checkbox",id:"update",name:"update"},OV={class:"form-check"},IV={class:"form-check-input",type:"checkbox",id:"page",name:"page"},PV={id:"conf-plan",class:"paper-settings-section"},VV={class:"paper-plan-grid"},qV=["value"],MV=["textContent"],UV={class:"paper-plan-price"},$V=["innerHTML"],LV={key:0,id:"conf-billing",class:"paper-settings-section"},FV={class:"form-group"},zV={class:"form-group"},HV={class:"form-group"},BV={class:"form-group"},jV={class:"form-grid-3"},GV={class:"form-group"},WV={class:"form-group"},KV={class:"form-group"},YV={class:"form-group"},JV={class:"paper-settings-footer"},QV=["textContent"],XV=["textContent"],ZV=["disabled"];function Kl(e,t){let n=ve("paper-scrollspy"),r=ve("field"),s=ve("form");return l(),d("div",YP,[o("div",JP,[t[1]||(t[1]=o("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=w(" \xA0/\xA0 ",-1)),t[3]||(t[3]=o("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=w(" \xA0/\xA0 ",-1)),o("span",QP,c(e.editionMode?"Edit":"New"),1)]),o("h1",XP,[w(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",ZP,[N((l(),d("aside",xP,[t[7]||(t[7]=o("div",{class:"paper-settings-toc-head"},"On this page",-1)),o("nav",null,[t[6]||(t[6]=ue('BasicsReview windowRendering defaultsFeaturesPlan',5)),N(o("a",eV,"Billing",512),[[j,e.plan?.pricePerRepo>0]])])])),[[n]]),N((l(),d("form",tV,[o("section",oV,[t[12]||(t[12]=o("div",{class:"paper-section-eyebrow"},"Basics",-1)),o("div",nV,[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",sV," The name of the conference is invalid. ",512),[[j,e.conference?.name?.errors?.invalid]]),N(o("div",rV," The name of the conference is required. ",512),[[j,e.conference?.name?.errors?.required]])]),o("div",iV,[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",aV," The url of the conference is invalid. ",512),[[j,e.conference?.url?.errors?.url]])]),o("div",lV,[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"},[w("3\u201310 characters, letters, numbers, "),o("code",null,"-"),w(" and "),o("code",null,"_"),w(". Authors reference this when they anonymize.")],-1)),N(o("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[j,e.conference?.conferenceID?.errors?.used]]),N(o("div",dV," The conference ID is required. ",512),[[j,e.conference?.conferenceID?.errors?.required]]),N(o("div",uV," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[j,e.conference?.conferenceID?.errors?.pattern]])])]),o("section",cV,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Review window",-1)),o("div",pV,[o("div",fV,[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",mV," Start date is required. ",512),[[j,e.conference?.startDate?.errors?.required]]),N(o("div",hV," Start date must be before end date. ",512),[[j,e.conference?.startDate?.errors?.invalid]])]),o("div",vV,[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",yV," End date is required. ",512),[[j,e.conference?.endDate?.errors?.required]]),N(o("div",gV," End date is invalid. ",512),[[j,e.conference?.endDate?.errors?.invalid]])])])]),o("section",bV,[t[26]||(t[26]=o("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),o("div",wV,[N(o("input",kV,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",EV,[N(o("input",CV,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",_V,[N(o("input",SV,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",NV,[N(o("input",DV,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",RV,[t[31]||(t[31]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",TV,[N(o("input",AV,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",OV,[N(o("input",IV,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",PV,[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",VV,[(l(!0),d(K,null,oe(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,qV),[[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,MV),o("div",UV,[w(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,$V)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",LV,[t[42]||(t[42]=o("div",{class:"paper-section-eyebrow"},"Billing",-1)),o("div",FV,[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",zV,[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",HV,[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",BV,[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",jV,[o("div",GV,[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",WV,[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",KV,[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",YV,[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:{}}]])])])):f("v-if",!0),o("div",JV,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,QV)):f("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,XV)):f("v-if",!0),o("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ie(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,ZV)])])),[[s,e.viewState]])])])}var xV={key:0},e5=["innerHTML"],t5={key:3},o5=["src"],n5=["src"],s5={key:7},r5={controls:"controls"},i5=["src"],a5={key:8},l5={key:9,class:"file-error container d-flex h-100"},d5={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},u5={class:"paper-error-msg"},c5={key:10,class:"file-error container d-flex h-100"},p5={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},f5={id:"viewer-error-title",class:"paper-empty-title"},m5={class:"paper-error-actions"},h5={key:0,href:"/",class:"btn btn-sm"},v5={key:1,href:"/faq",class:"btn btn-sm"},y5={key:2,class:"btn btn-outline-ink",href:"/dashboard"},g5={key:11,class:"file-error container d-flex h-100"},b5={key:12,class:"file-error container d-flex h-100"},w5={key:13,class:"file-error container d-flex h-100"},k5={key:14,class:"file-error container d-flex h-100"},E5={class:"paper-empty-title m-auto"},C5=["href"];function Yl(e,t){let n=Ge("html-doc"),r=Ge("pdfviewer"),s=Ge("notebook"),i=ve("code-editor");return l(),d(K,null,[e.type=="text"?N((l(),d("div",xV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):f("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,e5)):f("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"])):f("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?N((l(),d("div",t5,null,512)),[[i,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,o5)):f("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,n5)):f("v-if",!0),e.type=="pdf"?(l(),Lt(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="audio"?(l(),d("div",s5,[o("audio",r5,[o("source",{src:e.safeUrl(e.url)},null,8,i5)])])):f("v-if",!0),e.type=="IPython"?(l(),d("div",a5,[Ce(s,{file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="rate_limited"?(l(),d("div",l5,[o("div",d5,[t[3]||(t[3]=ue('Temporarily paused
GitHub API rate limit reached
',1)),o("p",u5,[t[1]||(t[1]=w("This repository will be available in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[2]||(t[2]=w(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"?(l(),d("div",c5,[o("section",p5,[o("h1",f5,c(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),o("p",null,c(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(l(),d(K,{key:0},[o("p",null,c(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),o("p",null,c(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),o("div",m5,[e.isSourceAccessError()?f("v-if",!0):(l(),d("a",h5,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(l(),d("a",v5,"Read the FAQ")),o("button",{type:"button",class:"btn btn-primary",onClick:t[0]||(t[0]=a=>e.retryContent())},c(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(l(),d("a",y5,c(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",g5,[...t[4]||(t[4]=[o("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):f("v-if",!0),e.type=="empty"?(l(),d("div",b5,[...t[5]||(t[5]=[o("h1",{class:"paper-empty-title m-auto"},[w("Empty "),o("em",null,"repository"),w(".")],-1)])])):f("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",w5,[...t[6]||(t[6]=[o("h1",{class:"paper-empty-title m-auto"},[w("Empty "),o("em",null,"file"),w(".")],-1)])])):f("v-if",!0),e.type=="binary"?(l(),d("div",k5,[o("h1",E5,[t[7]||(t[7]=w("Unsupported ",-1)),t[8]||(t[8]=o("em",null,"binary file",-1)),t[9]||(t[9]=w(". You can ",-1)),o("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,C5),t[10]||(t[10]=w(".",-1))])])):f("v-if",!0)],64)}var _5={class:"container page dashboard-page paper-page"},S5={class:"row"},N5={class:"w-100"},D5={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},R5={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},T5={class:"flex-grow-1"},A5={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},O5={class:"d-flex flex-wrap",style:{gap:"6px"}},I5={class:"dropdown"},P5={class:"dropdown-menu","aria-labelledby":"dropdownSort"},V5={class:"form-check dropdown-item"},q5={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},M5={class:"form-check dropdown-item"},U5={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},$5={class:"form-check dropdown-item"},L5={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},F5={class:"form-check dropdown-item"},z5={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},H5={class:"form-check dropdown-item"},B5={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},j5={class:"dropdown"},G5={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},W5={class:"form-check dropdown-item"},K5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},Y5={class:"form-check dropdown-item"},J5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},Q5={class:"form-check dropdown-item"},X5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},Z5={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},x5={class:"filter-chip"},eq=["onClick"],tq={class:"repo-list w-100"},oq={class:"repo-list-item-content"},nq={class:"repo-list-item-main"},sq={class:"repo-list-item-header"},rq=["textContent","href"],iq=["textContent"],aq=["textContent"],lq={class:"repo-source"},dq=["href"],uq={class:"repo-date"},cq={class:"repo-meta"},pq={key:0,title:"Conference"},fq=["title"],mq=["title"],hq=["title"],vq={key:1},yq={class:"repo-list-item-actions"},gq={class:"dropdown"},bq={class:"dropdown-menu dropdown-menu-right"},wq=["href"],kq=["onClick"],Eq=["onClick"],Cq=["onClick"],_q=["href"],Sq={key:0,class:"repo-list-empty"};function Jl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",_5,[o("div",S5,[o("div",N5,[t[12]||(t[12]=ue('My work \xA0/\xA0 Pull requests
Anonymized pull requests
Track PR mirrors you\u2019ve created and their reviewer traffic.
',2)),f(" Search + filters row "),N((l(),d("form",D5,[o("div",R5,[o("div",T5,[N(o("input",A5,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",O5,[o("div",I5,[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",P5,[t[5]||(t[5]=o("h6",{class:"dropdown-header"},"Select order",-1)),o("div",V5,[N(o("input",q5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=o("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),o("div",M5,[N(o("input",U5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=o("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),o("div",$5,[N(o("input",L5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",F5,[N(o("input",z5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),o("div",H5,[N(o("input",B5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),o("div",j5,[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",G5,[t[10]||(t[10]=o("h6",{class:"dropdown-header"},"Select status",-1)),o("div",W5,[N(o("input",K5,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.ready=s},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=o("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),o("div",Y5,[N(o("input",J5,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.expired=s},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=o("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),o("div",Q5,[N(o("input",X5,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.removed=s},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]]),f(" Active filter chips "),N(o("div",Z5,[(l(!0),d(K,null,oe(e.filters?.status,(s,i,a)=>N((l(),d("span",x5,[w(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,eq)],512)),[[j,!s]])),256))],512),[[j,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),o("ul",tq,[(l(!0),d(K,null,oe(e.filteredPullRequests,(s,i)=>(l(),d("li",{class:A(["repo-list-item",{"repo-inactive":s?.status=="expired"||s?.status=="removed"||s?.status=="error"}])},[o("div",oq,[o("div",nq,[o("div",sq,[o("a",{class:"repo-name",textContent:c(s?.pullRequestId),href:e.safeUrl("/pr/"+s?.pullRequestId)},null,8,rq),o("span",{class:A(["status-badge",{"status-removed":s?.status=="removed"||s?.status=="expired"||s?.status=="removing"||s?.status=="expiring","status-preparing":s?.status=="preparing"||s?.status=="download","status-ready":s?.status=="ready","status-error":s?.status=="error"}])},[o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,iq),s?.status=="error"?(l(),d("span",{key:0,textContent:c(": "+s?.statusMessage)},null,8,aq)):f("v-if",!0)],2)]),o("div",lq,[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/"+s?.source?.repositoryFullName+"/pull/"+s?.source?.pullRequestId)},c(s?.source?.repositoryFullName)+"#"+c(s?.source?.pullRequestId),9,dq)]),o("span",{class:A(["status-badge",{"status-ready":s?.merged,"status-removed":s?.state=="open","status-error":s?.state=="closed"&&!s?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(s?.merged?"merged":s?.state)),3),o("span",uq,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)])]),o("div",cq,[s?.conference?(l(),d("span",pq,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),w(" "+c(s?.conference),1)])):f("v-if",!0),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+s?.options?.terms?.join(", ")},[t[15]||(t[15]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),w(" "+c(e.fmt?.number(s?.options?.terms?.length)),1)],8,fq),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(s?.pageView)},[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),w(" "+c(e.fmt?.number(s?.pageView)),1)],8,mq),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(s?.lastView)},[t[17]||(t[17]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-calendar"})],-1)),w(" "+c(e.fmt?.humanTime(s?.lastView)),1)],8,hq),s?.options?.expirationMode!="never"&&s?.status=="ready"?(l(),d("span",vq,[t[18]||(t[18]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),w(" Expire: "+c(e.fmt?.humanTime(s?.options?.expirationDate)),1)])):f("v-if",!0)])]),o("div",yq,[o("div",gq,[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",bq,[o("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+s?.pullRequestId)},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),w(" Edit ",-1)])],8,wq),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updatePullRequest(s),["prevent"])},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Force update ",-1)])],8,kq),[[j,s?.status=="ready"||s?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updatePullRequest(s),["prevent"])},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),w(" Enable ",-1)])],8,Eq),[[j,s?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removePullRequest(s),["prevent"])},[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Remove ",-1)])],8,Cq),[[j,s?.status=="ready"]]),o("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+s?.pullRequestId+"/")},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),w(" View PR ",-1)])],8,_q)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",Sq,[...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)])])):f("v-if",!0)])])])}var Nq={class:"container paper-page paper-settings"},Dq={class:"paper-settings-body"},Rq={class:"paper-settings-toc"},Tq={class:"paper-settings-main"},Aq={id:"settings-quota",class:"paper-settings-section"},Oq={key:1,class:"quota-row","aria-hidden":"true"},Iq={class:"quota-item"},Pq={id:"settings-terms",class:"paper-settings-section"},Vq={class:"form-group"},qq={class:"form-control",id:"terms",name:"terms",rows:"4",placeholder:`Jane Smith
MIT CSAIL
-jane.smith@example.org`},Aq={id:"termsHelp",class:"form-text text-muted"},Oq={class:"invalid-feedback"},Iq={id:"settings-display",class:"paper-settings-section"},Pq={class:"form-group paper-check-list"},Vq={class:"form-check"},qq={class:"form-check-input",type:"checkbox",id:"link",name:"link"},Mq={class:"form-check"},$q={class:"form-check-input",type:"checkbox",id:"image",name:"image"},Lq={class:"form-check"},Uq={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},Fq={class:"form-check"},zq={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},Hq={id:"settings-features",class:"paper-settings-section"},Bq={class:"form-group paper-check-list"},jq={class:"form-check"},Gq={class:"form-check-input",type:"checkbox",id:"page",name:"page"},Wq={class:"form-check"},Kq={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},Yq={class:"form-check"},Jq={class:"form-check-input",type:"checkbox",id:"update",name:"update"},Qq={class:"form-group"},Xq={class:"form-control",id:"mode",name:"mode"},Zq={class:"form-text text-muted"},xq={id:"settings-expiration",class:"paper-settings-section"},eM={class:"form-group"},tM={class:"form-control",id:"expiration",name:"expiration"},oM={key:0,class:"draft-status",role:"status"},nM={key:1,class:"draft-status"},sM={class:"paper-settings-footer"},rM={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},iM=["textContent"],aM={class:"paper-settings-actions"},lM=["disabled"],dM={key:0,class:"ui-icon mr-1","aria-hidden":"true"},uM={id:"settings-account",class:"paper-settings-section"},cM={class:"paper-account-card"},pM=["src"],fM={class:"paper-account-identity"},mM={class:"paper-account-name"},hM=["disabled"],vM={key:0,role:"status"},yM={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},gM=["disabled"],bM={key:3,role:"status"},wM={class:"paper-danger-zone"},kM={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},EM=["textContent"],CM=["disabled"];function Ql(e,t){let n=Ge("quota-usage"),r=ge("paper-scrollspy"),s=ge("field"),i=ge("form");return l(),d("div",wq,[t[58]||(t[58]=ce('Your settings
Defaults applied to every new anonymization, your quotas, and your account.
',3)),o("div",kq,[D((l(),d("aside",Eq,[...t[8]||(t[8]=[ce('On this page
',2)])])),[[r]]),o("div",Cq,[p(" Account usage shares the dashboard component. "),o("section",_q,[t[10]||(t[10]=o("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[11]||(t[11]=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(),Ut(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",Sq,[(l(),d(Q,null,re([1,2,3],(a,u)=>o("div",Nq,[...t[9]||(t[9]=[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]=le(a=>e.submitForm(a,()=>{e.saveDefault(a)}),["prevent"]))},[o("section",Dq,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[18]||(t[18]=o("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),o("div",Rq,[t[16]||(t[16]=o("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),D(o("textarea",Tq,null,512),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),o("small",Aq,[t[12]||(t[12]=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[13]||(t[13]=b(", or use ",-1)),t[14]||(t[14]=o("code",null,"term=>replacement",-1)),t[15]||(t[15]=b(" to pick your own. ",-1))]),D(o("div",Oq," Terms are in an invalid format ",512),[[K,e.defaultsForm?.terms?.errors?.format]])])]),o("section",Iq,[t[27]||(t[27]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),t[28]||(t[28]=o("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),o("div",Pq,[o("div",Vq,[D(o("input",qq,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[20]||(t[20]=o("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),o("div",Mq,[D(o("input",$q,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[22]||(t[22]=o("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),o("div",Lq,[D(o("input",Uq,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[24]||(t[24]=o("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),o("div",Fq,[D(o("input",zq,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[26]||(t[26]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),o("section",Hq,[t[37]||(t[37]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",Bq,[o("div",jq,[D(o("input",Gq,null,512),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"defaultsForm",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"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),o("div",Wq,[D(o("input",Kq,null,512),[[s,{state:e.viewState,set:a=>{e.options.loc=a},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=o("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[32]||(t[32]=o("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),o("div",Yq,[D(o("input",Jq,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[33]||(t[33]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[34]||(t[34]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),o("div",Qq,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),D((l(),d("select",Xq,[...t[35]||(t[35]=[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",Zq," 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",xq,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",eM,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),D((l(),d("select",tM,[...t[38]||(t[38]=[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[40]||(t[40]=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",oM,[t[42]||(t[42]=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",nM,[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",sM,[e.error?(l(),d("div",rM,[t[43]||(t[43]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[44]||(t[44]=b()),o("span",{textContent:c(e.error)},null,8,iM)])):p("v-if",!0),o("div",aM,[o("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("svg",dM,[...t[45]||(t[45]=[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,lM),t[46]||(t[46]=o("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[i,e.viewState]]),o("section",uM,[t[56]||(t[56]=o("div",{class:"paper-section-eyebrow"},"Account",-1)),o("div",cM,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,pM)):p("v-if",!0),o("div",fM,[o("div",mM,"@"+c(e.user?.username),1),t[47]||(t[47]=o("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[48]||(t[48]=o("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),o("form",{class:"paper-account-email",onSubmit:t[6]||(t[6]=le(a=>e.saveAccountEmail(),["prevent"]))},[t[49]||(t[49]=o("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[50]||(t[50]=o("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),D(o("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[3]||(t[3]=a=>e.accountEmail=a),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[4]||(t[4]=a=>e.emailSaved=!1)},null,40,hM),[[zt,e.accountEmail]]),e.emailLoading?(l(),d("p",vM,"Loading your email address\u2026")):p("v-if",!0),e.emailError?(l(),d("p",yM,c(e.emailError),1)):p("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(l(),d("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[5]||(t[5]=a=>e.loadAccountEmail())},"Try again")):p("v-if",!0),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},c(e.emailSaving?"Saving\u2026":"Save email address"),9,gM),e.emailSaved?(l(),d("p",bM,"Email address saved.")):p("v-if",!0)],32),t[57]||(t[57]=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",wM,[t[54]||(t[54]=o("div",{class:"paper-danger-head"},"Delete account",-1)),t[55]||(t[55]=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",kM,[t[51]||(t[51]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[52]||(t[52]=b()),o("span",{textContent:c(e.deleteError)},null,8,EM)])):p("v-if",!0),o("button",{type:"button",class:"btn btn-outline-danger",onClick:t[7]||(t[7]=a=>e.deleteAccount()),disabled:e.deletingAccount},[t[53]||(t[53]=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,CM)])])])])])}var _M={class:"pr-page"},SM={class:"container paper-page pr-page-inner"},NM={class:"pr-header"},DM={class:"pr-title-row"},RM={class:"paper-page-title pr-title"},TM=["textContent"],AM={key:1,class:"text-muted"},OM=["href"],IM={class:"pr-header-meta"},PM={key:0,class:"pr-meta-item"},VM=["textContent"],qM={key:1,class:"pr-meta-item"},MM=["textContent"],$M={key:2,class:"pr-meta-item"},LM=["textContent"],UM={key:0,class:"pr-body-card"},FM={key:1,class:"paper-tabs",role:"tablist"},zM=["aria-selected","tabindex"],HM=["aria-selected","tabindex"],BM=["textContent"],jM={class:"paper-tab-content"},GM={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},WM=["innerHTML"],KM={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},YM={class:"pr-comments"},JM={class:"pr-comment"},QM={class:"pr-comment-head"},XM={key:0,class:"pr-comment-author"},ZM=["textContent"],xM=["textContent"],e8={key:0,class:"pr-comment-body"},t8={key:0,class:"paper-table-empty"};function Xl(e,t){let n=Ge("markdown");return l(),d("div",_M,[o("div",SM,[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",NM,[o("div",DM,[o("h1",RM,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,TM)):p("v-if",!0),e.details?.title?p("v-if",!0):(l(),d("span",AM,"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,OM)):p("v-if",!0)]),o("div",IM,[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",PM,[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,VM)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",qM,[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,MM)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",$M,[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,LM)])):p("v-if",!0)])]),e.details?.body?(l(),d("section",UM,[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",FM,[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,zM)):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,BM)],42,HM)):p("v-if",!0)])):p("v-if",!0),o("div",jM,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",GM,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,WM)])):p("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",KM,[o("ul",YM,[(l(!0),d(Q,null,re(e.details?.comments,(r,s)=>(l(),d("li",JM,[o("div",QM,[r?.author?(l(),d("span",XM,[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,ZM)])):p("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,xM)):p("v-if",!0)]),r?.body?(l(),d("div",e8,[Ce(n,{content:r?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",t8,[...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 o8={class:"container paper-page status-page"},n8={class:"d-flex align-items-center justify-content-between flex-wrap",style:{gap:"12px"}},s8={class:"paper-page-title"},r8=["textContent"],i8={key:1},a8={class:"paper-settings-section"},l8=["textContent"],d8={key:0,class:"paper-section-copy"},u8={key:1,class:"paper-ratelimit-card",role:"status"},c8={class:"paper-error-msg"},p8=["aria-valuenow"],f8={class:"paper-progress-label"},m8=["textContent"],h8={key:0},v8=["textContent"],y8={class:"paper-progress-pct"},g8={key:3,class:"paper-error-card",role:"alert"},b8={key:0,class:"paper-error-msg"},w8={key:1,class:"paper-error-msg"},k8={class:"paper-error-actions"},E8=["href"],C8={key:4,class:"share-link"},_8={class:"share-link-row"},S8=["value"],N8={class:"ui-icon","aria-hidden":"true"},D8=["href"],R8=["textContent"],T8={class:"share-link-actions"},A8=["href"],O8=["href"];function Zl(e,t){return l(),d("div",o8,[t[16]||(t[16]=o("div",{class:"paper-crumbs"},[b("Anonymization \xA0/\xA0 "),o("span",{class:"here"},"Status")],-1)),o("div",n8,[o("div",null,[o("h1",s8,[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,r8)),e.rateLimitResetAt?(l(),d("span",i8,"Rate limited")):p("v-if",!0)],2)]),o("section",a8,[o("div",{class:"paper-section-eyebrow",textContent:c(e.repo?.status=="ready"?"Your anonymous link":"Progress")},null,8,l8),e.repo?.status!="ready"?(l(),d("p",d8,[...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",u8,[t[7]||(t[7]=ce('Temporarily paused
GitHub API rate limit reached
',1)),o("p",c8,[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:Ve("width: "+e.progress+"%;")},null,4),o("div",f8,[o("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,m8),e.repo?.statusMessage?(l(),d("span",h8,[t[8]||(t[8]=b("\xA0\xB7\xA0",-1)),o("span",{textContent:c(e.repo?.statusMessage)},null,8,v8)])):p("v-if",!0),o("span",y8,c(e.progress||0)+"%",1)])],10,p8)):p("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",g8,[t[11]||(t[11]=ce('Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(l(),d("p",b8,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):p("v-if",!0),e.repo?.statusMessage?p("v-if",!0):(l(),d("p",w8,"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",k8,[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,E8),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",C8,[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",_8,[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,S8),o("button",{type:"button",class:"btn btn-ink",onClick:t[1]||(t[1]=n=>e.copyShareUrl())},[(l(),d("svg",N8,[o("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,D8)])),o("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,R8)])]),o("div",T8,[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,A8),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,O8)):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.
',1))])}var as={"partials/reviewConsent.htm":_l,"partials/connections.htm":Sl,"partials/signin.htm":Nl,"partials/404.htm":Dl,"partials/admin/conferences.htm":Rl,"partials/admin/errors.htm":Tl,"partials/admin/overview.htm":Al,"partials/admin/queues.htm":Ol,"partials/admin/repositories.htm":Il,"partials/admin/user.htm":Pl,"partials/admin/users.htm":Vl,"partials/anonymize.htm":ql,"partials/anonymizePullRequest.htm":Ml,"partials/claim.htm":$l,"partials/conference.htm":Ll,"partials/conferences.htm":Ul,"partials/dashboard.htm":Fl,"partials/explorer.htm":zl,"partials/faq.htm":Hl,"partials/gist.htm":Bl,"partials/header.htm":jl,"partials/home.htm":Gl,"partials/loading.htm":Wl,"partials/newConference.htm":Kl,"partials/pageView.htm":Yl,"partials/pr-dashboard.htm":Jl,"partials/profile.htm":Ql,"partials/pullRequest.htm":Xl,"partials/status.htm":Zl};var I8={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function xl(e,t){return l(),d("svg",I8,[...t[0]||(t[0]=[ce('',1)])])}function ed(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let r={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(r){let s=tt(()=>t.fmt.orderBy(t.fmt.filter(r[1](),t[r[2]]),t.orderBy));Object.defineProperty(t,r[0],{configurable:!0,get:()=>s.value})}}function td(e=(...t)=>fetch(...t)){async function t(r,s,i,a={}){let u=new URL(s,window.location.href);for(let[h,k]of Object.entries(a.params||{}))if(k!=null)for(let m of Array.isArray(k)?k:[k])u.searchParams.append(h,typeof m=="object"?JSON.stringify(m):m);let f=new AbortController,w;a.timeout?.then?a.timeout.then(()=>f.abort()):a.timeout&&(w=setTimeout(()=>f.abort(),a.timeout));try{let h={Accept:"application/json, text/plain, */*",...a.headers},k=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);k&&u.origin===window.location.origin&&(h["X-XSRF-TOKEN"]=decodeURIComponent(k[1]));let m;i!==void 0&&(i instanceof FormData?m=i:(h["Content-Type"]||(h["Content-Type"]="application/json;charset=utf-8"),m=JSON.stringify(i)));let C=await e(u.href,{method:r,headers:h,body:m,credentials:"same-origin",signal:f.signal}),y=await C.text(),g=y;if(a.transformResponse)g=a.transformResponse(y);else if(y&&(/json/i.test(C.headers.get("content-type")||"")||/^[\[{]/.test(y.trim())))try{g=JSON.parse(y)}catch{}let S={data:g,status:C.status,headers:R=>C.headers.get(R)};if(!C.ok)throw S;return S}catch(h){throw h.name==="AbortError"?{status:-1,data:null}:h}finally{clearTimeout(w)}}let n={};for(let r of["get","delete","head"])n[r]=(s,i)=>t(r.toUpperCase(),s,void 0,i);for(let r of["post","put","patch"])n[r]=(s,i,a)=>t(r.toUpperCase(),s,i,a);return n}var od={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((r,s)=>{e=r,t=s}),resolve:e,reject:t}}};var nd=function(e){function t(n){return n=n||{used:0,total:0},n.unlimited=!n.total,n.percent=n.unlimited?0:Math.min(100,n.used*100/n.total),n.level=n.unlimited?"unlimited":n.percent>=95?"danger":n.percent>=80?"warn":"ok",n}return{decorate:t,load:function(){return e.get("/api/user/quota").then(n=>{let r=n.data||{};return r.storage=t(r.storage),r.file=t(r.file),r.repository=t(r.repository),r})}}};var fr={};Ed(fr,{bigNum:()=>V8,date:()=>G8,diff:()=>U8,filter:()=>B8,humanFileSize:()=>P8,humanTime:()=>q8,limitTo:()=>H8,number:()=>F8,orderBy:()=>j8,plural:()=>W8,statusLabel:()=>$8,statusMsg:()=>L8,title:()=>M8,uppercase:()=>z8});var P8=e=>window.humanFileSize(e),V8=(function(){return function(t){let n=Number(t)||0,r=Math.abs(n);return r<1e3?String(n):r<1e4?(n/1e3).toFixed(1).replace(/\.0$/,"")+"k":r<1e6?Math.round(n/1e3)+"k":r<1e7?(n/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(n/1e6)+"M"}})(),q8=(function(){return function(t){if(!t)return"never";t instanceof Date&&(t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(t=Math.round((Date.now()-new Date(t))/1e3));var n=t<0?"from now":"ago";if(Math.abs(t)>7200*24){let f=new Date;return f.setSeconds(f.getSeconds()-t),"on "+f.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}t=Math.abs(t);for(var r=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],s=["year","month","week","day","hour","minute","second"],i=0;i1&&(u+="s"),a>=1)return a+" "+u+" "+n}return"0 seconds "+n}})(),M8=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),n=t.map(function(r){return r.charAt(0).toUpperCase()+r.substring(1,r.length)});return n.join(" ")}})(),$8=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var n=String(t).replace(/[_-]+/g," ").toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}})(),L8=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var n=t.match(/^rate_limited:(\d+)$/);if(n){var r=Math.max(0,Math.ceil((parseInt(n[1],10)-Date.now())/1e3));if(r<=0)return"Rate limited \u2014 resuming soon";var s=Math.floor(r/60),i=r%60;return"Rate limited \u2014 retrying in "+(s>0?s+"m "+i+"s":i+"s")}if(e[t])return e[t];if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var a=t.replace(/_/g," ");return a.charAt(0).toUpperCase()+a.slice(1)}return t}})(),U8=(function(e){let t=r=>r.replace(/&/g,"&").replace(//g,">");function n(r,s){if(!s)return;let i=s.newPath&&s.newPath!=="/dev/null"?s.newPath:s.oldPath||"",a=s.oldPath==="/dev/null"?"added":s.newPath==="/dev/null"?"deleted":s.oldPath&&s.newPath&&s.oldPath!==s.newPath?"renamed":"modified";if(r.push(''),r.push('"),s.lines.length){r.push('
');for(let u of s.lines)r.push('| '+(u.oldNo||"")+' | '+(u.newNo||"")+' | '+(u.kind==="add"?"+":u.kind==="remove"?"-":u.kind==="hunk"?"@":"")+' | '+t(u.text)+" |
");r.push("
")}r.push("
")}return function(r){if(!r)return r;let s=[],i=null,a=0,u=0,f=()=>(i||(i={oldPath:"",newPath:"",lines:[]}),i),w=()=>{i&&(i.lines.length||i.oldPath||i.newPath)&&(n(s,i),i=null)},h=r.split(`
-`);for(let k=0;ke});function F8(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function z8(e){return String(e??"").toUpperCase()}function H8(e,t,n=0){return(e||[]).slice(n,n+t)}function B8(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function j8(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((w,h)=>w?.[h],r),f=i.split(".").reduce((w,h)=>w?.[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 W8(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var sd={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=xe(null);return Lt(()=>{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}He(()=>e.content,s,{immediate:!0}),He(()=>e.baseUrl,s,{immediate:!0}),He(()=>e.allowScripts,s,{immediate:!0})}),()=>we("html-doc",{ref:t})}};var rd={name:"pdfviewer",props:["src"],setup(e){let t=xe(null);return Lt(()=>{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=[],w=!1,h=null,k=1,m=1,C=0,y=0,g=612/792,S=0,R=null,T=new Map,P=0;function L(v){let E=T.get(v);E&&(E.cancelled=!0,E.task?.cancel?.(),T.delete(v));let O=v.querySelector("canvas");O&&(O.width=0,O.height=0),v.innerHTML="",delete v.dataset.state}let V=document.createElement("div");V.className="pdf-toolbar";let M=document.createElement("div");M.className="pdf-pages",M.tabIndex=0,M.setAttribute("aria-label","PDF pages"),a.appendChild(V),a.appendChild(M);function se(v,E,O){let H=document.createElement("button");return H.type="button",H.className="pdf-toolbar-btn",H.title=E,H.setAttribute("aria-label",E),H.innerHTML='',H.addEventListener("click",O),H}let te=se("fa-chevron-up","Previous page",function(){Se(m-1)}),N=se("fa-chevron-down","Next page",function(){Se(m+1)}),I=document.createElement("input");I.type="text",I.className="pdf-toolbar-page",I.setAttribute("aria-label","Page number"),I.title="Page number \u2014 type a page and press Enter",I.addEventListener("keydown",function(v){v.key==="Enter"&&(Se(parseInt(I.value,10)),I.blur())}),I.addEventListener("blur",function(){I.value=String(m)});let Y=document.createElement("span");Y.className="pdf-toolbar-count";let Z=se("fa-search-minus","Zoom out",function(){_(s[Math.max(0,fe()-1)])}),ee=se("fa-search-plus","Zoom in",function(){_(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(){_(1)}),V.appendChild(te),V.appendChild(N);let ie=document.createElement("span");ie.className="pdf-toolbar-group",ie.appendChild(I),ie.appendChild(Y),V.appendChild(ie);let pe=document.createElement("span");pe.className="pdf-toolbar-group pdf-toolbar-right",pe.appendChild(Z),pe.appendChild(J),pe.appendChild(ee),V.appendChild(pe);function fe(){let v=0;for(let E=0;E=v,J.textContent=Math.round(k*100)+"%",Z.disabled=fe()===0,ee.disabled=fe()===s.length-1}function Ae(v){let E=f[v-1];E&&(M.scrollTop+=E.getBoundingClientRect().top-M.getBoundingClientRect().top)}function Se(v){if(!u||isNaN(v))return;let E=Math.min(Math.max(1,v),u.numPages);f[E-1]&&(Ae(E),m=E,C=E,y=Date.now()+800,ae(),Ee())}function Le(){if(!f.length||Date.now(){}),R=null),h&&(clearTimeout(h),h=null),u&&(u.destroy(),u=null),f=[],m=1,M.innerHTML="",ae()}function qe(){M.innerHTML="";let v=document.createElement("div");v.className="pdf-viewer-error",v.textContent="This PDF could not be displayed.",M.appendChild(v)}function Ie(){let v=Math.max(120,M.clientWidth-24);return Math.round(Math.min(v,i)*k)}function Ue(v,E,O){let H=window.devicePixelRatio||1,F=v.getViewport({scale:1}),j=parseFloat(E.style.width);if(!j)return;let z=v.getViewport({scale:j/F.width*H}),G=document.createElement("canvas");return G.width=Math.floor(z.width),G.height=Math.floor(z.height),G.style.width=j+"px",G.style.height=Math.floor(z.height/H)+"px",E.innerHTML="",E.appendChild(G),E.style.height=G.style.height,O.task=v.render({canvasContext:G.getContext("2d"),viewport:z}),O.task.promise}function Ee(){if(!u)return;let v=S,E=M.getBoundingClientRect(),O=E.top-r,H=E.top+M.clientHeight+r,F=f.map((z,G)=>({slot:z,i:G,rect:z.getBoundingClientRect()})).filter(z=>z.rect.top<=H&&z.rect.bottom>=O).sort((z,G)=>Math.abs(z.rect.top-E.top)-Math.abs(G.rect.top-E.top)).slice(0,6),j=new Set(F.map(z=>z.slot));for(let z of T.keys())j.has(z)||L(z);for(let{slot:z,i:G}of F){if(z.dataset.state||P>=2)continue;let x={cancelled:!1,task:null};T.set(z,x),P++,z.dataset.state="rendering";let W;u.getPage(G+1).then(ue=>{if(W=ue,!(x.cancelled||v!==S))return Ue(W,z,x)}).then(()=>{x.cancelled||v!==S||(z.dataset.state="done",C&&Date.now(){!x.cancelled&&v===S&&(z.dataset.state="failed")}).finally(()=>{P--,W?.cleanup?.(),u&&Ee()})}}function U(){w||(w=!0,window.requestAnimationFrame(function(){w=!1,Le(),Ee()}))}function oe(){let v=!1;function E(){v||(v=!0,Ee())}window.requestAnimationFrame(E),window.setTimeout(E,50)}function X(){S++,f.forEach(L);let v=Ie();f.forEach(function(E){delete E.dataset.state,E.innerHTML="",E.style.width=v+"px",E.style.height=Math.round(v/g)+"px"}),Ee()}function _(v){if(!u||!f.length||v===k)return;let E=m;k=v,ae(),X(),Se(E)}function q(){u&&(h&&clearTimeout(h),h=setTimeout(function(){h=null,u&&f.length&&X()},250))}function B(v){if(De(),!v)return;let E=S;R=pdfjsLib.getDocument({url:v,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),R.promise.then(function(O){if(E!==S){O.destroy();return}return u=O,u.getPage(1).then(function(H){if(E!==S)return;let F=H.getViewport({scale:1});F.width&&F.height&&(g=F.width/F.height);let j=Ie();for(let z=1;z<=u.numPages;z++){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)}ae(),oe()})}).catch(function(){E===S&&qe()})}M.addEventListener("scroll",U,{passive:!0}),$(window).on("resize",q),ae(),He(()=>e.src,B,{immediate:!0}),co(function(){M.removeEventListener("scroll",U),$(window).off("resize",q),De()})}),()=>we("pdfviewer",{ref:t})}};var K8={key:0,class:"quota-row quota-usage"},Y8={class:"quota-header"},J8={class:"quota-label"},Q8={class:"project-type-svg","aria-hidden":"true"},X8=["href"],Z8={key:0,class:"quota-percent"},x8={key:1,class:"quota-unlimited-tag"},e6={class:"quota-value"},t6={key:0},o6=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],n6={key:1,class:"quota-remaining"},s6={key:2,class:"quota-remaining quota-limit"};function id(e,t){return e.quota?(l(),d("div",K8,[(l(),d(Q,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"}],n=>o("div",{class:A(["quota-item","quota-"+e.quota[n.key].level]),key:n.key},[o("div",Y8,[o("span",J8,[(l(),d("svg",Q8,[o("use",{href:"#"+n.icon},null,8,X8)])),b(c(n.label),1)]),e.quota[n.key].unlimited?p("v-if",!0):(l(),d("span",Z8,c(e.fmt.number(e.quota[n.key].percent,0))+"% used",1)),e.quota[n.key].unlimited?(l(),d("span",x8,"Unlimited")):p("v-if",!0)]),o("div",e6,[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",t6," / "+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:Ve({width:e.quota[n.key].percent+"%"})},null,4))],10,o6)),!e.quota[n.key].unlimited&&e.quota[n.key].used=e.quota[n.key].total?(l(),d("p",s6,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 r6={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:id},i6=new Set(me),ld={props:["content","terms","options"],setup(e){let t=xe(null),n=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return Lt(()=>{n(),He(()=>[e.content,e.terms,e.options],n,{deep:!0})}),()=>we("markdown",{ref:t})}},a6={props:["file","terms","options"],setup(e){let t=xe(null),n=()=>ot(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return Lt(n),He(()=>[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 we("gist-file",{ref:t},we(ld,{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 we("gist-file",{ref:t},we("pre",{class:"line-numbers"},we("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},l6={props:["file","content"],setup(e){let t=xe(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 Lt(()=>{s(),He(()=>[e.file,e.content],s)}),co(()=>{n++,r?.abort()}),()=>we("notebook",{ref:t})}},d6={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 we("loc",t.map(([r,s])=>we("div",{class:"lang",title:`${r}: ${s.code.toLocaleString()} lines`,style:{width:s.code*100/n+"%",background:langColors[r]}})))}}},dd={Markdown:ld,GistFile:a6,Notebook:l6,Loc:d6,HtmlDoc:sd,QuotaUsage:r6,Pdfviewer:ki(async()=>(await oo("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",rd))},ud={async mounted(e,{value:t}){e._editorValue=t;try{if(await wr(),e._editorDisposed)return;let n=e._editorValue,r=ace.edit(e);e._editor=r,r.setValue(String(n.content??""),-1),ad(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),ad(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function ad(e,t={}){let n=i6.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 cd={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});ot(()=>t.forEach(s=>{let i=document.getElementById(s.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function u6(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 pd={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Xa(),n=xe(null),r=ze(Object.create(null)),s=null,i=tt(()=>u6(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");He(()=>[t.params.repoId,t.params.path],()=>{let m="";a().split("/").filter(Boolean).forEach(C=>{m+="/"+C,r[m]=!0})},{immediate:!0});let u=tt(()=>{if(!e.searchQuery||!e.searchResults)return null;let m=new Set,C=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(S=>{g=g?g+"/"+S:S,C.add(g)})}),{files:m,folders:C}}),f=()=>[...n.value.querySelectorAll("li > a")],w=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 C=f(),y=n.value.querySelector(".tree-focused")||C[0],g=C.indexOf(y);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(m.key)||(m.preventDefault(),m.key==="ArrowDown"&&w(C[(g+1)%C.length]),m.key==="ArrowUp"&&w(C[(g-1+C.length)%C.length]),!y))return;let S=y.closest("li");m.key==="ArrowRight"&&S.classList.contains("folder")&&(S.classList.contains("open")?w(S.querySelector(":scope > ul > li > a")):y.click()),m.key==="ArrowLeft"&&(S.classList.contains("folder")&&S.classList.contains("open")?y.click():w(S.parentElement.closest("li.folder")?.querySelector(":scope > a"))),m.key==="Enter"&&y.click()}function k(m,C=""){let y=[...m].sort((g,S)=>+!!S.children-+!!g.children||g.name.localeCompare(S.name));return we("ul",y.flatMap(g=>{let S=g,R=S.name,T=(C+"/"+R).slice(1);if(u.value&&!u.value.files.has(T)&&!u.value.folders.has(T))return[];for(;S.children?.length===1;)S=S.children[0],R+="/"+S.name;let P=C+"/"+R,L=!!S.children,V=u.value?r[P]!==!1:!!r[P],M=L&&e.page?.options?.truncatedFolders?.includes(P.slice(1)),se=e.page?.fileCounts?.[P.slice(1)]||0,te=we("span",{class:L?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},L?we("svg",{viewBox:"0 0 14 12",focusable:"false"},we("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),N=we("span",{class:"tree-name"},R),I=Z=>{w(Z.currentTarget),L&&(Z.preventDefault(),r[P]=!V,r[P]&&!S.children.length&&e.page.getFiles(P.slice(1)),ot(()=>w(f().find(ee=>ee.dataset.path===s))))},Y=we("a",{"data-path":P,href:L?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(P)}`,class:{"tree-focused":s===P},onClick:I},[L?we("span",{class:"tree-toggle"}):C?we("span",{class:"tree-spacer"}):null,te,N,M?we("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},we("i",{class:"fas fa-exclamation-triangle"})):null,L&&se?we("span",{class:"tree-count"},se):null]);return we("li",{key:P,class:{file:!0,folder:L,open:V,active:a()===P,truncated:M},title:L?"":`Size: ${humanFileSize(S.size||0)}`},[Y,L&&V?k(S.children,P):null])}))}return()=>we("tree",{ref:n,tabindex:0,onKeydown:h},e.file?.length?u.value?.files.size===0?we("div",{class:"tree-search-empty"},"No files found"):k(i.value):"Empty repository")}};function md(){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 hd(e,t){if(!e[t]){let n=md();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 vd={beforeMount(e,{value:t}){e._formState=hd(t,e.name),e.addEventListener("submit",n=>n.preventDefault())}};function c6(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function fd(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"?c6(t):t??""),mr(e)}function mr(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 yd={beforeMount(e,{value:t}){var a;let n=t.form&&hd(t.state,t.form),r=n&&e.name?n[a=e.name]||(n[a]=md()):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 w of Object.keys(r.errors))r.setValidity(w,!0)}u.set(f),mr(e),u.change?.()}};e._field.commit=s;let i=u=>{let f=e._field.binding.options?.debounce||0,w=typeof f=="number"?f:f[u.type]??f.default??0;clearTimeout(e._field.timer),w?e._field.timer=setTimeout(s,w):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:fd,updated(e,{value:t}){e._field.binding=t,fd(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 gd(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&&mr(r)}),n&&!n.checkValidity()){let r=n.querySelector(":invalid");r?.scrollIntoView?.({block:"center"}),r?.focus(),n.reportValidity();return}return t()}var bd=Symbol("session"),p6=/^\/(w|api|github)(\/|$)/;function wd(e,t={}){let n=e?.split(".").reduce((r,s)=>r?.[s],vn);return n==null&&e?.startsWith("ERRORS.")&&(n=vn.ERRORS.unknown_error),String(n??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,s)=>t[s]??"")}var f6={...fr,translate:wd};function m6(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 h6(e="#app",t={}){let n=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),r=n&&window.location.pathname==="/review-link"?gr(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=td(t.fetch),u,f;function w(){let m=ut(),C={url(g){return g===void 0?f.currentRoute.value.fullPath:(f.push(g),C)},path(){return f.currentRoute.value.path},search(){return f.currentRoute.value.query}},y=new Proxy({},{get(g,S){let R=f.currentRoute.value.params[S];return Array.isArray(R)?R.join("/"):R}});return{takeReviewHandoff:s,http:a,...m,location:C,params:y,window,promises:od,html:{trustAsHtml:g=>g},translate:(g,S)=>Promise.resolve(wd(g,S)),quotaService:nd(a)}}function h(m){return{name:m.template,setup(){let C=lr(dt(bd),i);m.setup(C,w()),ed(m.template,C);let y=[];return()=>as[m.template](C,y)}}}f=Qa({history:t.history||Ka(),routes:Cl.map(m=>m.redirect?m:{path:m.path,component:h(m),meta:{title:m.title,preserveExplorer:m.preserveExplorer}})});let k=ma({setup(){u=lr(null,i),u.fmt=f6,u.window=window,u.Math=Math,u.sanitize=g=>DOMPurify.sanitize(g??""),u.highlightRedactions=g=>(u.site_options,tl(g)),u.submitForm=gd,u.safeUrl=m6;let m=w();nl(u,m.http,m.location,m.timeout),uo(bd,u),He(()=>u.title,g=>{document.title=g||"Anonymous GitHub"});let C=[],y=g=>{let S=g.target.closest?.("a[href]");if(g.defaultPrevented||g.button!==0||g.metaKey||g.ctrlKey||g.shiftKey||g.altKey||!S||S.hasAttribute("download")||S.target&&S.target!=="_self"||S.dataset.toggle||S.getAttribute("href").startsWith("#"))return;let T=new URL(S.href,window.location.href);n||/^\/review-link\/?$/i.test(T.pathname)||T.origin!==window.location.origin||p6.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)),()=>[xl(u,[]),n?null:we("header",{class:"app-header"},as["partials/header.htm"](u,C)),we("main",{class:"app-view align-items-stretch w-100"},we(ar,null,{default:({Component:g,route:S})=>g?we(g,{key:S.meta.preserveExplorer?S.matched[0]?.path:S.path}):null})),we("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},u.toasts.map((g,S)=>we("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:S},[we("div",{class:"toast-header"},[we("strong",{class:"mr-auto"},g.title),we("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>u.removeToast(g)},"\xD7")]),we("div",{class:"toast-body"},g.body)])))]}});for(let[m,C]of Object.entries(dd))k.component(m,C);return k.component("Tree",pd),k.component("PartialView",{props:["name","state"],setup(m){let C=[];return()=>as[m.name](m.state,C)}}),k.directive("field",yd),k.directive("form",vd),k.directive("code-editor",ud),k.directive("paper-scrollspy",cd),k.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 C=document.querySelector(".app-view");!m.meta.preserveExplorer&&C&&(C.scrollTop=0)}),k.mount(e),{app:k,router:f,state:u}}document.querySelector("#app")&&(window.anonymousApp=h6());})();
+jane.smith@example.org`},Mq={id:"termsHelp",class:"form-text text-muted"},Uq={class:"invalid-feedback"},$q={id:"settings-display",class:"paper-settings-section"},Lq={class:"form-group paper-check-list"},Fq={class:"form-check"},zq={class:"form-check-input",type:"checkbox",id:"link",name:"link"},Hq={class:"form-check"},Bq={class:"form-check-input",type:"checkbox",id:"image",name:"image"},jq={class:"form-check"},Gq={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},Wq={class:"form-check"},Kq={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},Yq={id:"settings-features",class:"paper-settings-section"},Jq={class:"form-group paper-check-list"},Qq={class:"form-check"},Xq={class:"form-check-input",type:"checkbox",id:"page",name:"page"},Zq={class:"form-check"},xq={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},eM={class:"form-check"},tM={class:"form-check-input",type:"checkbox",id:"update",name:"update"},oM={class:"form-group"},nM={class:"form-control",id:"mode",name:"mode"},sM={class:"form-text text-muted"},rM={id:"settings-expiration",class:"paper-settings-section"},iM={class:"form-group"},aM={class:"form-control",id:"expiration",name:"expiration"},lM={key:0,class:"draft-status",role:"status"},dM={key:1,class:"draft-status"},uM={class:"paper-settings-footer"},cM={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},pM=["textContent"],fM={class:"paper-settings-actions"},mM=["disabled"],hM={key:0,class:"ui-icon mr-1","aria-hidden":"true"},vM={id:"settings-account",class:"paper-settings-section"},yM={class:"paper-account-card"},gM=["src"],bM={class:"paper-account-identity"},wM={class:"paper-account-name"},kM=["disabled"],EM={key:0,role:"status"},CM={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},_M=["disabled"],SM={key:3,role:"status"},NM={class:"paper-danger-zone"},DM={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},RM=["textContent"],TM=["disabled"];function Ql(e,t){let n=Ge("quota-usage"),r=ve("paper-scrollspy"),s=ve("field"),i=ve("form");return l(),d("div",Nq,[t[58]||(t[58]=ue('Your settings
Defaults applied to every new anonymization, your quotas, and your account.
',3)),o("div",Dq,[N((l(),d("aside",Rq,[...t[8]||(t[8]=[ue('On this page
',2)])])),[[r]]),o("div",Tq,[f(" Account usage shares the dashboard component. "),o("section",Aq,[t[10]||(t[10]=o("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[11]||(t[11]=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"])):f("v-if",!0),e.quota?f("v-if",!0):(l(),d("div",Oq,[(l(),d(K,null,oe([1,2,3],(a,u)=>o("div",Iq,[...t[9]||(t[9]=[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]=ie(a=>e.submitForm(a,()=>{e.saveDefault(a)}),["prevent"]))},[o("section",Pq,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[18]||(t[18]=o("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),o("div",Vq,[t[16]||(t[16]=o("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),N(o("textarea",qq,null,512),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),o("small",Mq,[t[12]||(t[12]=w(" 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[13]||(t[13]=w(", or use ",-1)),t[14]||(t[14]=o("code",null,"term=>replacement",-1)),t[15]||(t[15]=w(" to pick your own. ",-1))]),N(o("div",Uq," Terms are in an invalid format ",512),[[j,e.defaultsForm?.terms?.errors?.format]])])]),o("section",$q,[t[27]||(t[27]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),t[28]||(t[28]=o("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),o("div",Lq,[o("div",Fq,[N(o("input",zq,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[20]||(t[20]=o("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),o("div",Hq,[N(o("input",Bq,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[22]||(t[22]=o("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),o("div",jq,[N(o("input",Gq,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[24]||(t[24]=o("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),o("div",Wq,[N(o("input",Kq,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[26]||(t[26]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),o("section",Yq,[t[37]||(t[37]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",Jq,[o("div",Qq,[N(o("input",Xq,null,512),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"defaultsForm",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"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),o("div",Zq,[N(o("input",xq,null,512),[[s,{state:e.viewState,set:a=>{e.options.loc=a},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=o("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[32]||(t[32]=o("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),o("div",eM,[N(o("input",tM,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[33]||(t[33]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[34]||(t[34]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),o("div",oM,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),N((l(),d("select",nM,[...t[35]||(t[35]=[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",sM," 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",rM,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",iM,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),N((l(),d("select",aM,[...t[38]||(t[38]=[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[40]||(t[40]=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",lM,[t[42]||(t[42]=w("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",dM,[w(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)])):f("v-if",!0),o("div",uM,[e.error?(l(),d("div",cM,[t[43]||(t[43]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[44]||(t[44]=w()),o("span",{textContent:c(e.error)},null,8,pM)])):f("v-if",!0),o("div",fM,[o("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("svg",hM,[...t[45]||(t[45]=[o("use",{href:"#ui-icon-check"},null,-1)])])):f("v-if",!0),w(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,mM),t[46]||(t[46]=o("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[i,e.viewState]]),o("section",vM,[t[56]||(t[56]=o("div",{class:"paper-section-eyebrow"},"Account",-1)),o("div",yM,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,gM)):f("v-if",!0),o("div",bM,[o("div",wM,"@"+c(e.user?.username),1),t[47]||(t[47]=o("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[48]||(t[48]=o("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),o("form",{class:"paper-account-email",onSubmit:t[6]||(t[6]=ie(a=>e.saveAccountEmail(),["prevent"]))},[t[49]||(t[49]=o("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[50]||(t[50]=o("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),N(o("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[3]||(t[3]=a=>e.accountEmail=a),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[4]||(t[4]=a=>e.emailSaved=!1)},null,40,kM),[[zt,e.accountEmail]]),e.emailLoading?(l(),d("p",EM,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(l(),d("p",CM,c(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(l(),d("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[5]||(t[5]=a=>e.loadAccountEmail())},"Try again")):f("v-if",!0),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},c(e.emailSaving?"Saving\u2026":"Save email address"),9,_M),e.emailSaved?(l(),d("p",SM,"Email address saved.")):f("v-if",!0)],32),t[57]||(t[57]=o("a",{class:"paper-settings-connection-link",href:"/connections"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",null,[w("GitHub connections"),o("small",null,"Manage repository access and legacy OAuth.")]),o("span",{"aria-hidden":"true"},"\u2192")],-1)),o("div",NM,[t[54]||(t[54]=o("div",{class:"paper-danger-head"},"Delete account",-1)),t[55]||(t[55]=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",DM,[t[51]||(t[51]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[52]||(t[52]=w()),o("span",{textContent:c(e.deleteError)},null,8,RM)])):f("v-if",!0),o("button",{type:"button",class:"btn btn-outline-danger",onClick:t[7]||(t[7]=a=>e.deleteAccount()),disabled:e.deletingAccount},[t[53]||(t[53]=o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)),w(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,TM)])])])])])}var AM={class:"pr-page"},OM={class:"container paper-page pr-page-inner"},IM={class:"pr-header"},PM={class:"pr-title-row"},VM={class:"paper-page-title pr-title"},qM=["textContent"],MM={key:1,class:"text-muted"},UM=["href"],$M={class:"pr-header-meta"},LM={key:0,class:"pr-meta-item"},FM=["textContent"],zM={key:1,class:"pr-meta-item"},HM=["textContent"],BM={key:2,class:"pr-meta-item"},jM=["textContent"],GM={key:0,class:"pr-body-card"},WM={key:1,class:"paper-tabs",role:"tablist"},KM=["aria-selected","tabindex"],YM=["aria-selected","tabindex"],JM=["textContent"],QM={class:"paper-tab-content"},XM={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},ZM=["innerHTML"],xM={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},e8={class:"pr-comments"},t8={class:"pr-comment"},o8={class:"pr-comment-head"},n8={key:0,class:"pr-comment-author"},s8=["textContent"],r8=["textContent"],i8={key:0,class:"pr-comment-body"},a8={key:0,class:"paper-table-empty"};function Xl(e,t){let n=Ge("markdown");return l(),d("div",AM,[o("div",OM,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),w(" \xA0/\xA0 "),o("span",{class:"here"},"Pull request")],-1)),o("header",IM,[o("div",PM,[o("h1",VM,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,qM)):f("v-if",!0),e.details?.title?f("v-if",!0):(l(),d("span",MM,"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,UM)):f("v-if",!0)]),o("div",$M,[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),w(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",LM,[t[5]||(t[5]=o("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=w()),o("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,FM)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",zM,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=w()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,HM)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",BM,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=w(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,jM)])):f("v-if",!0)])]),e.details?.body?(l(),d("section",GM,[t[11]||(t[11]=o("div",{class:"paper-section-eyebrow"},"Description",-1)),Ce(n,{content:e.details?.body},null,8,["content"])])):f("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",WM,[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),w(" Diff ",-1)])],42,KM)):f("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,JM)],42,YM)):f("v-if",!0)])):f("v-if",!0),o("div",QM,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",XM,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,ZM)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",xM,[o("ul",e8,[(l(!0),d(K,null,oe(e.details?.comments,(r,s)=>(l(),d("li",t8,[o("div",o8,[r?.author?(l(),d("span",n8,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=w(" @",-1)),o("span",{textContent:c(r?.author)},null,8,s8)])):f("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,r8)):f("v-if",!0)]),r?.body?(l(),d("div",i8,[Ce(n,{content:r?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",a8,[...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)])]))])])):f("v-if",!0)])])])}var l8={class:"container paper-page status-page"},d8={class:"d-flex align-items-center justify-content-between flex-wrap",style:{gap:"12px"}},u8={class:"paper-page-title"},c8=["textContent"],p8={key:1},f8={class:"paper-settings-section"},m8=["textContent"],h8={key:0,class:"paper-section-copy"},v8={key:1,class:"paper-ratelimit-card",role:"status"},y8={class:"paper-error-msg"},g8=["aria-valuenow"],b8={class:"paper-progress-label"},w8=["textContent"],k8={key:0},E8=["textContent"],C8={class:"paper-progress-pct"},_8={key:3,class:"paper-error-card",role:"alert"},S8={key:0,class:"paper-error-msg"},N8={key:1,class:"paper-error-msg"},D8={class:"paper-error-actions"},R8=["href"],T8={key:4,class:"share-link"},A8={class:"share-link-row"},O8=["value"],I8={class:"ui-icon","aria-hidden":"true"},P8=["href"],V8=["textContent"],q8={class:"share-link-actions"},M8=["href"],U8=["href"];function Zl(e,t){return l(),d("div",l8,[t[16]||(t[16]=o("div",{class:"paper-crumbs"},[w("Anonymization \xA0/\xA0 "),o("span",{class:"here"},"Status")],-1)),o("div",d8,[o("div",null,[o("h1",u8,[t[2]||(t[2]=w("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?f("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,c8)),e.rateLimitResetAt?(l(),d("span",p8,"Rate limited")):f("v-if",!0)],2)]),o("section",f8,[o("div",{class:"paper-section-eyebrow",textContent:c(e.repo?.status=="ready"?"Your anonymous link":"Progress")},null,8,m8),e.repo?.status!="ready"?(l(),d("p",h8,[...t[4]||(t[4]=[w(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),o("a",{href:"/faq"},"FAQ",-1),w(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(l(),d("div",v8,[t[7]||(t[7]=ue('Temporarily paused
GitHub API rate limit reached
',1)),o("p",y8,[t[5]||(t[5]=w("Anonymization will resume automatically in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[6]||(t[6]=w(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("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:Ie("width: "+e.progress+"%;")},null,4),o("div",b8,[o("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,w8),e.repo?.statusMessage?(l(),d("span",k8,[t[8]||(t[8]=w("\xA0\xB7\xA0",-1)),o("span",{textContent:c(e.repo?.statusMessage)},null,8,E8)])):f("v-if",!0),o("span",C8,c(e.progress||0)+"%",1)])],10,g8)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",_8,[t[11]||(t[11]=ue('Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(l(),d("p",S8,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(l(),d("p",N8,"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",D8,[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),w(" Edit anonymization",-1)])],8,R8),t[10]||(t[10]=ue(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status=="ready"?(l(),d("div",T8,[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",A8,[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,O8),o("button",{type:"button",class:"btn btn-ink",onClick:t[1]||(t[1]=n=>e.copyShareUrl())},[(l(),d("svg",I8,[o("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,P8)])),o("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,V8)])]),o("div",q8,[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),w(" Open repository ",-1)])],8,M8),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),w(" Open GitHub page ",-1)])],8,U8)):f("v-if",!0)])])):f("v-if",!0)]),t[17]||(t[17]=ue('Support Anonymous GitHub
A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee.
',1))])}var ls={"partials/reviewConsent.htm":_l,"partials/connections.htm":Sl,"partials/signin.htm":Nl,"partials/404.htm":Dl,"partials/admin/conferences.htm":Rl,"partials/admin/errors.htm":Tl,"partials/admin/overview.htm":Al,"partials/admin/queues.htm":Ol,"partials/admin/repositories.htm":Il,"partials/admin/user.htm":Pl,"partials/admin/users.htm":Vl,"partials/anonymize.htm":ql,"partials/anonymizePullRequest.htm":Ml,"partials/claim.htm":Ul,"partials/conference.htm":$l,"partials/conferences.htm":Ll,"partials/dashboard.htm":Fl,"partials/explorer.htm":zl,"partials/faq.htm":Hl,"partials/gist.htm":Bl,"partials/header.htm":jl,"partials/home.htm":Gl,"partials/loading.htm":Wl,"partials/newConference.htm":Kl,"partials/pageView.htm":Yl,"partials/pr-dashboard.htm":Jl,"partials/profile.htm":Ql,"partials/pullRequest.htm":Xl,"partials/status.htm":Zl};var $8={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function xl(e,t){return l(),d("svg",$8,[...t[0]||(t[0]=[ue('',1)])])}function ed(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let r={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(r){let s=tt(()=>t.fmt.orderBy(t.fmt.filter(r[1](),t[r[2]]),t.orderBy));Object.defineProperty(t,r[0],{configurable:!0,get:()=>s.value})}}function td(e=(...t)=>fetch(...t)){async function t(r,s,i,a={}){let u=new URL(s,window.location.href);for(let[y,E]of Object.entries(a.params||{}))if(E!=null)for(let h of Array.isArray(E)?E:[E])u.searchParams.append(y,typeof h=="object"?JSON.stringify(h):h);let m=new AbortController,k;a.timeout?.then?a.timeout.then(()=>m.abort()):a.timeout&&(k=setTimeout(()=>m.abort(),a.timeout));try{let y={Accept:"application/json, text/plain, */*",...a.headers},E=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);E&&u.origin===window.location.origin&&(y["X-XSRF-TOKEN"]=decodeURIComponent(E[1]));let h;i!==void 0&&(i instanceof FormData?h=i:(y["Content-Type"]||(y["Content-Type"]="application/json;charset=utf-8"),h=JSON.stringify(i)));let C=await e(u.href,{method:r,headers:y,body:h,credentials:"same-origin",signal:m.signal}),g=await C.text(),b=g;if(a.transformResponse)b=a.transformResponse(g);else if(g&&(/json/i.test(C.headers.get("content-type")||"")||/^[\[{]/.test(g.trim())))try{b=JSON.parse(g)}catch{}let S={data:b,status:C.status,headers:R=>C.headers.get(R)};if(!C.ok)throw S;return S}catch(y){throw y.name==="AbortError"?{status:-1,data:null}:y}finally{clearTimeout(k)}}let n={};for(let r of["get","delete","head"])n[r]=(s,i)=>t(r.toUpperCase(),s,void 0,i);for(let r of["post","put","patch"])n[r]=(s,i,a)=>t(r.toUpperCase(),s,i,a);return n}var od={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((r,s)=>{e=r,t=s}),resolve:e,reject:t}}};var nd=function(e){function t(n){return n=n||{used:0,total:0},n.unlimited=!n.total,n.percent=n.unlimited?0:Math.min(100,n.used*100/n.total),n.level=n.unlimited?"unlimited":n.percent>=95?"danger":n.percent>=80?"warn":"ok",n}return{decorate:t,load:function(){return e.get("/api/user/quota").then(n=>{let r=n.data||{};return r.storage=t(r.storage),r.file=t(r.file),r.repository=t(r.repository),r})}}};var mr={};Ed(mr,{bigNum:()=>F8,date:()=>X8,diff:()=>G8,filter:()=>J8,humanFileSize:()=>L8,humanTime:()=>z8,limitTo:()=>Y8,number:()=>W8,orderBy:()=>Q8,plural:()=>Z8,statusLabel:()=>B8,statusMsg:()=>j8,title:()=>H8,uppercase:()=>K8});var L8=e=>window.humanFileSize(e),F8=(function(){return function(t){let n=Number(t)||0,r=Math.abs(n);return r<1e3?String(n):r<1e4?(n/1e3).toFixed(1).replace(/\.0$/,"")+"k":r<1e6?Math.round(n/1e3)+"k":r<1e7?(n/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(n/1e6)+"M"}})(),z8=(function(){return function(t){if(!t)return"never";t instanceof Date&&(t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(t=Math.round((Date.now()-new Date(t))/1e3));var n=t<0?"from now":"ago";if(Math.abs(t)>7200*24){let m=new Date;return m.setSeconds(m.getSeconds()-t),"on "+m.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}t=Math.abs(t);for(var r=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],s=["year","month","week","day","hour","minute","second"],i=0;i1&&(u+="s"),a>=1)return a+" "+u+" "+n}return"0 seconds "+n}})(),H8=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),n=t.map(function(r){return r.charAt(0).toUpperCase()+r.substring(1,r.length)});return n.join(" ")}})(),B8=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var n=String(t).replace(/[_-]+/g," ").toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}})(),j8=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var n=t.match(/^rate_limited:(\d+)$/);if(n){var r=Math.max(0,Math.ceil((parseInt(n[1],10)-Date.now())/1e3));if(r<=0)return"Rate limited \u2014 resuming soon";var s=Math.floor(r/60),i=r%60;return"Rate limited \u2014 retrying in "+(s>0?s+"m "+i+"s":i+"s")}if(e[t])return e[t];if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var a=t.replace(/_/g," ");return a.charAt(0).toUpperCase()+a.slice(1)}return t}})(),G8=(function(e){let t=r=>r.replace(/&/g,"&").replace(//g,">");function n(r,s){if(!s)return;let i=s.newPath&&s.newPath!=="/dev/null"?s.newPath:s.oldPath||"",a=s.oldPath==="/dev/null"?"added":s.newPath==="/dev/null"?"deleted":s.oldPath&&s.newPath&&s.oldPath!==s.newPath?"renamed":"modified";if(r.push(''),r.push('"),s.lines.length){r.push('
');for(let u of s.lines)r.push('| '+(u.oldNo||"")+' | '+(u.newNo||"")+' | '+(u.kind==="add"?"+":u.kind==="remove"?"-":u.kind==="hunk"?"@":"")+' | '+t(u.text)+" |
");r.push("
")}r.push("
")}return function(r){if(!r)return r;let s=[],i=null,a=0,u=0,m=()=>(i||(i={oldPath:"",newPath:"",lines:[]}),i),k=()=>{i&&(i.lines.length||i.oldPath||i.newPath)&&(n(s,i),i=null)},y=r.split(`
+`);for(let E=0;Ee});function W8(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function K8(e){return String(e??"").toUpperCase()}function Y8(e,t,n=0){return(e||[]).slice(n,n+t)}function J8(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function Q8(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,y)=>k?.[y],r),m=i.split(".").reduce((k,y)=>k?.[y],s);if(typeof u=="string"&&(u=u.toLowerCase()),typeof m=="string"&&(m=m.toLowerCase()),u!==m)return(u==null?-1:m==null?1:ur[s])}function Z8(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var sd={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=xe(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 m="";e.baseUrl&&(m=''),a.srcdoc=m+i}He(()=>e.content,s,{immediate:!0}),He(()=>e.baseUrl,s,{immediate:!0}),He(()=>e.allowScripts,s,{immediate:!0})}),()=>be("html-doc",{ref:t})}};var rd={name:"pdfviewer",props:["src"],setup(e){let t=xe(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,m=[],k=!1,y=null,E=1,h=1,C=0,g=0,b=612/792,S=0,R=null,T=new Map,q=0;function M(p){let v=T.get(p);v&&(v.cancelled=!0,v.task?.cancel?.(),T.delete(p));let D=p.querySelector("canvas");D&&(D.width=0,D.height=0),p.innerHTML="",delete p.dataset.state}let V=document.createElement("div");V.className="pdf-toolbar";let z=document.createElement("div");z.className="pdf-pages",z.tabIndex=0,z.setAttribute("aria-label","PDF pages"),a.appendChild(V),a.appendChild(z);function ne(p,v,D){let O=document.createElement("button");return O.type="button",O.className="pdf-toolbar-btn",O.title=v,O.setAttribute("aria-label",v),O.innerHTML='',O.addEventListener("click",D),O}let ee=ne("fa-chevron-up","Previous page",function(){qe(h-1)}),_=ne("fa-chevron-down","Next page",function(){qe(h+1)}),P=document.createElement("input");P.type="text",P.className="pdf-toolbar-page",P.setAttribute("aria-label","Page number"),P.title="Page number \u2014 type a page and press Enter",P.addEventListener("keydown",function(p){p.key==="Enter"&&(qe(parseInt(P.value,10)),P.blur())}),P.addEventListener("blur",function(){P.value=String(h)});let G=document.createElement("span");G.className="pdf-toolbar-count";let J=ne("fa-search-minus","Zoom out",function(){te(s[Math.max(0,de()-1)])}),X=ne("fa-search-plus","Zoom in",function(){te(s[Math.min(s.length-1,de()+1)])}),W=document.createElement("button");W.type="button",W.className="pdf-toolbar-btn pdf-toolbar-zoom",W.title="Reset zoom to fit the width",W.setAttribute("aria-label","Reset zoom to fit the width"),W.addEventListener("click",function(){te(1)}),V.appendChild(ee),V.appendChild(_);let se=document.createElement("span");se.className="pdf-toolbar-group",se.appendChild(P),se.appendChild(G),V.appendChild(se);let ce=document.createElement("span");ce.className="pdf-toolbar-group pdf-toolbar-right",ce.appendChild(J),ce.appendChild(W),ce.appendChild(X),V.appendChild(ce);function de(){let p=0;for(let v=0;v=p,W.textContent=Math.round(E*100)+"%",J.disabled=de()===0,X.disabled=de()===s.length-1}function _e(p){let v=m[p-1];v&&(z.scrollTop+=v.getBoundingClientRect().top-z.getBoundingClientRect().top)}function qe(p){if(!u||isNaN(p))return;let v=Math.min(Math.max(1,p),u.numPages);m[v-1]&&(_e(v),h=v,C=v,g=Date.now()+800,re(),ke())}function Me(){if(!m.length||Date.now(){}),R=null),y&&(clearTimeout(y),y=null),u&&(u.destroy(),u=null),m=[],h=1,z.innerHTML="",re()}function Se(){z.innerHTML="";let p=document.createElement("div");p.className="pdf-viewer-error",p.textContent="This PDF could not be displayed.",z.appendChild(p)}function ze(){let p=Math.max(120,z.clientWidth-24);return Math.round(Math.min(p,i)*E)}function Ue(p,v,D){let O=window.devicePixelRatio||1,I=p.getViewport({scale:1}),U=parseFloat(v.style.width);if(!U)return;let L=p.getViewport({scale:U/I.width*O}),H=document.createElement("canvas");return H.width=Math.floor(L.width),H.height=Math.floor(L.height),H.style.width=U+"px",H.style.height=Math.floor(L.height/O)+"px",v.innerHTML="",v.appendChild(H),v.style.height=H.style.height,D.task=p.render({canvasContext:H.getContext("2d"),viewport:L}),D.task.promise}function ke(){if(!u)return;let p=S,v=z.getBoundingClientRect(),D=v.top-r,O=v.top+z.clientHeight+r,I=m.map((L,H)=>({slot:L,i:H,rect:L.getBoundingClientRect()})).filter(L=>L.rect.top<=O&&L.rect.bottom>=D).sort((L,H)=>Math.abs(L.rect.top-v.top)-Math.abs(H.rect.top-v.top)).slice(0,6),U=new Set(I.map(L=>L.slot));for(let L of T.keys())U.has(L)||M(L);for(let{slot:L,i:H}of I){if(L.dataset.state||q>=2)continue;let Y={cancelled:!1,task:null};T.set(L,Y),q++,L.dataset.state="rendering";let B;u.getPage(H+1).then(le=>{if(B=le,!(Y.cancelled||p!==S))return Ue(B,L,Y)}).then(()=>{Y.cancelled||p!==S||(L.dataset.state="done",C&&Date.now(){!Y.cancelled&&p===S&&(L.dataset.state="failed")}).finally(()=>{q--,B?.cleanup?.(),u&&ke()})}}function F(){k||(k=!0,window.requestAnimationFrame(function(){k=!1,Me(),ke()}))}function Z(){let p=!1;function v(){p||(p=!0,ke())}window.requestAnimationFrame(v),window.setTimeout(v,50)}function Q(){S++,m.forEach(M);let p=ze();m.forEach(function(v){delete v.dataset.state,v.innerHTML="",v.style.width=p+"px",v.style.height=Math.round(p/b)+"px"}),ke()}function te(p){if(!u||!m.length||p===E)return;let v=h;E=p,re(),Q(),qe(v)}function ye(){u&&(y&&clearTimeout(y),y=setTimeout(function(){y=null,u&&m.length&&Q()},250))}function Ee(p){if(Pe(),!p)return;let v=S;R=pdfjsLib.getDocument({url:p,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),R.promise.then(function(D){if(v!==S){D.destroy();return}return u=D,u.getPage(1).then(function(O){if(v!==S)return;let I=O.getViewport({scale:1});I.width&&I.height&&(b=I.width/I.height);let U=ze();for(let L=1;L<=u.numPages;L++){let H=document.createElement("div");H.className="pdf-viewer-page",H.style.width=U+"px",H.style.height=Math.round(U/b)+"px",z.appendChild(H),m.push(H)}re(),Z()})}).catch(function(){v===S&&Se()})}z.addEventListener("scroll",F,{passive:!0}),$(window).on("resize",ye),re(),He(()=>e.src,Ee,{immediate:!0}),co(function(){z.removeEventListener("scroll",F),$(window).off("resize",ye),Pe()})}),()=>be("pdfviewer",{ref:t})}};var x8={key:0,class:"quota-row quota-usage"},e6={class:"quota-header"},t6={class:"quota-label"},o6={class:"project-type-svg","aria-hidden":"true"},n6=["href"],s6={key:0,class:"quota-percent"},r6={key:1,class:"quota-unlimited-tag"},i6={class:"quota-value"},a6={key:0},l6=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],d6={key:1,class:"quota-remaining"},u6={key:2,class:"quota-remaining quota-limit"};function id(e,t){return e.quota?(l(),d("div",x8,[(l(),d(K,null,oe([{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",e6,[o("span",t6,[(l(),d("svg",o6,[o("use",{href:"#"+n.icon},null,8,n6)])),w(c(n.label),1)]),e.quota[n.key].unlimited?f("v-if",!0):(l(),d("span",s6,c(e.fmt.number(e.quota[n.key].percent,0))+"% used",1)),e.quota[n.key].unlimited?(l(),d("span",r6,"Unlimited")):f("v-if",!0)]),o("div",i6,[o("strong",null,c(e.formatAmount(e.quota[n.key].used,n.kind)),1),e.quota[n.key].unlimited?f("v-if",!0):(l(),d("span",a6," / "+c(e.formatAmount(e.quota[n.key].total,n.kind)),1))]),e.quota[n.key].unlimited?f("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?f("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Ie({width:e.quota[n.key].percent+"%"})},null,4))],10,l6)),!e.quota[n.key].unlimited&&e.quota[n.key].used=e.quota[n.key].total?(l(),d("p",u6,c(e.quota[n.key].used>e.quota[n.key].total?"Limit exceeded":"Limit reached"),1)):f("v-if",!0)],2)),64))])):f("v-if",!0)}var c6={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:id},p6=new Set(pe),ld={props:["content","terms","options"],setup(e){let t=xe(null),n=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return $t(()=>{n(),He(()=>[e.content,e.terms,e.options],n,{deep:!0})}),()=>be("markdown",{ref:t})}},f6={props:["file","terms","options"],setup(e){let t=xe(null),n=()=>ot(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return $t(n),He(()=>[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 be("gist-file",{ref:t},be(ld,{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 be("gist-file",{ref:t},be("pre",{class:"line-numbers"},be("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},m6={props:["file","content"],setup(e){let t=xe(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(),He(()=>[e.file,e.content],s)}),co(()=>{n++,r?.abort()}),()=>be("notebook",{ref:t})}},h6={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 be("loc",t.map(([r,s])=>be("div",{class:"lang",title:`${r}: ${s.code.toLocaleString()} lines`,style:{width:s.code*100/n+"%",background:langColors[r]}})))}}},dd={Markdown:ld,GistFile:f6,Notebook:m6,Loc:h6,HtmlDoc:sd,QuotaUsage:c6,Pdfviewer:Ei(async()=>(await oo("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",rd))},ud={async mounted(e,{value:t}){e._editorValue=t;try{if(await kr(),e._editorDisposed)return;let n=e._editorValue,r=ace.edit(e);e._editor=r,r.setValue(String(n.content??""),-1),ad(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),ad(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function ad(e,t={}){let n=p6.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 cd={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});ot(()=>t.forEach(s=>{let i=document.getElementById(s.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function v6(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 pd={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Xa(),n=xe(null),r=Fe(Object.create(null)),s=null,i=tt(()=>v6(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");He(()=>[t.params.repoId,t.params.path],()=>{let h="";a().split("/").filter(Boolean).forEach(C=>{h+="/"+C,r[h]=!0})},{immediate:!0});let u=tt(()=>{if(!e.searchQuery||!e.searchResults)return null;let h=new Set,C=new Set;return e.searchResults.forEach(g=>{h.add(g.path?`${g.path}/${g.name}`:g.name);let b="";(g.path||"").split("/").filter(Boolean).forEach(S=>{b=b?b+"/"+S:S,C.add(b)})}),{files:h,folders:C}}),m=()=>[...n.value.querySelectorAll("li > a")],k=h=>{n.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),h&&(s=h.dataset.path,h.classList.add("tree-focused"),h.scrollIntoView?.({block:"nearest"}),n.value.focus())};function y(h){let C=m(),g=n.value.querySelector(".tree-focused")||C[0],b=C.indexOf(g);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(h.key)||(h.preventDefault(),h.key==="ArrowDown"&&k(C[(b+1)%C.length]),h.key==="ArrowUp"&&k(C[(b-1+C.length)%C.length]),!g))return;let S=g.closest("li");h.key==="ArrowRight"&&S.classList.contains("folder")&&(S.classList.contains("open")?k(S.querySelector(":scope > ul > li > a")):g.click()),h.key==="ArrowLeft"&&(S.classList.contains("folder")&&S.classList.contains("open")?g.click():k(S.parentElement.closest("li.folder")?.querySelector(":scope > a"))),h.key==="Enter"&&g.click()}function E(h,C=""){let g=[...h].sort((b,S)=>+!!S.children-+!!b.children||b.name.localeCompare(S.name));return be("ul",g.flatMap(b=>{let S=b,R=S.name,T=(C+"/"+R).slice(1);if(u.value&&!u.value.files.has(T)&&!u.value.folders.has(T))return[];for(;S.children?.length===1;)S=S.children[0],R+="/"+S.name;let q=C+"/"+R,M=!!S.children,V=u.value?r[q]!==!1:!!r[q],z=M&&e.page?.options?.truncatedFolders?.includes(q.slice(1)),ne=e.page?.fileCounts?.[q.slice(1)]||0,ee=be("span",{class:M?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},M?be("svg",{viewBox:"0 0 14 12",focusable:"false"},be("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),_=be("span",{class:"tree-name"},R),P=J=>{k(J.currentTarget),M&&(J.preventDefault(),r[q]=!V,r[q]&&!S.children.length&&e.page.getFiles(q.slice(1)),ot(()=>k(m().find(X=>X.dataset.path===s))))},G=be("a",{"data-path":q,href:M?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(q)}`,class:{"tree-focused":s===q},onClick:P},[M?be("span",{class:"tree-toggle"}):C?be("span",{class:"tree-spacer"}):null,ee,_,z?be("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},be("i",{class:"fas fa-exclamation-triangle"})):null,M&&ne?be("span",{class:"tree-count"},ne):null]);return be("li",{key:q,class:{file:!0,folder:M,open:V,active:a()===q,truncated:z},title:M?"":`Size: ${humanFileSize(S.size||0)}`},[G,M&&V?E(S.children,q):null])}))}return()=>be("tree",{ref:n,tabindex:0,onKeydown:y},e.file?.length?u.value?.files.size===0?be("div",{class:"tree-search-empty"},"No files found"):E(i.value):"Empty repository")}};function md(){return Fe({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 hd(e,t){if(!e[t]){let n=md();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 vd={beforeMount(e,{value:t}){e._formState=hd(t,e.name),e.addEventListener("submit",n=>n.preventDefault())}};function y6(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function fd(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"?y6(t):t??""),hr(e)}function hr(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 yd={beforeMount(e,{value:t}){var a;let n=t.form&&hd(t.state,t.form),r=n&&e.name?n[a=e.name]||(n[a]=md()):null;e._field={binding:t,validation:r,timer:null};let s=()=>{clearTimeout(e._field.timer),e._field.timer=null;let u=e._field.binding,m=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(m=e.value===""?null:Number(e.value)),e.type==="date"&&(m=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(m),hr(e),u.change?.()}};e._field.commit=s;let i=u=>{let m=e._field.binding.options?.debounce||0,k=typeof m=="number"?m:m[u.type]??m.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:fd,updated(e,{value:t}){e._field.binding=t,fd(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 gd(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&&hr(r)}),n&&!n.checkValidity()){let r=n.querySelector(":invalid");r?.scrollIntoView?.({block:"center"}),r?.focus(),n.reportValidity();return}return t()}var bd=Symbol("session"),g6=/^\/(w|api|github)(\/|$)/;function wd(e,t={}){let n=e?.split(".").reduce((r,s)=>r?.[s],vn);return n==null&&e?.startsWith("ERRORS.")&&(n=vn.ERRORS.unknown_error),String(n??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,s)=>t[s]??"")}var b6={...mr,translate:wd};function w6(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 k6(e="#app",t={}){let n=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),r=n&&window.location.pathname==="/review-link"?br(window):null,s=()=>{let h=r;return r=null,h};!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=td(t.fetch),u,m;function k(){let h=ut(),C={url(b){return b===void 0?m.currentRoute.value.fullPath:(m.push(b),C)},path(){return m.currentRoute.value.path},search(){return m.currentRoute.value.query}},g=new Proxy({},{get(b,S){let R=m.currentRoute.value.params[S];return Array.isArray(R)?R.join("/"):R}});return{takeReviewHandoff:s,http:a,...h,location:C,params:g,window,promises:od,html:{trustAsHtml:b=>b},translate:(b,S)=>Promise.resolve(wd(b,S)),quotaService:nd(a)}}function y(h){return{name:h.template,setup(){let C=dr(dt(bd),i);h.setup(C,k()),ed(h.template,C);let g=[];return()=>ls[h.template](C,g)}}}m=Qa({history:t.history||Ka(),routes:Cl.map(h=>h.redirect?h:{path:h.path,component:y(h),meta:{title:h.title,preserveExplorer:h.preserveExplorer}})});let E=ma({setup(){u=dr(null,i),u.fmt=b6,u.window=window,u.Math=Math,u.sanitize=b=>DOMPurify.sanitize(b??""),u.highlightRedactions=b=>(u.site_options,tl(b)),u.submitForm=gd,u.safeUrl=w6;let h=k();nl(u,h.http,h.location,h.timeout),uo(bd,u),He(()=>u.title,b=>{document.title=b||"Anonymous GitHub"});let C=[],g=b=>{let S=b.target.closest?.("a[href]");if(b.defaultPrevented||b.button!==0||b.metaKey||b.ctrlKey||b.shiftKey||b.altKey||!S||S.hasAttribute("download")||S.target&&S.target!=="_self"||S.dataset.toggle||S.getAttribute("href").startsWith("#"))return;let T=new URL(S.href,window.location.href);n||/^\/review-link\/?$/i.test(T.pathname)||T.origin!==window.location.origin||g6.test(T.pathname)||(b.preventDefault(),m.push(T.pathname+T.search+T.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",g),co(()=>document.removeEventListener("click",g)),()=>[xl(u,[]),n?null:be("header",{class:"app-header"},ls["partials/header.htm"](u,C)),be("main",{class:"app-view align-items-stretch w-100"},be(lr,null,{default:({Component:b,route:S})=>b?be(b,{key:S.meta.preserveExplorer?S.matched[0]?.path:S.path}):null})),be("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},u.toasts.map((b,S)=>be("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:S},[be("div",{class:"toast-header"},[be("strong",{class:"mr-auto"},b.title),be("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>u.removeToast(b)},"\xD7")]),be("div",{class:"toast-body"},b.body)])))]}});for(let[h,C]of Object.entries(dd))E.component(h,C);return E.component("Tree",pd),E.component("PartialView",{props:["name","state"],setup(h){let C=[];return()=>ls[h.name](h.state,C)}}),E.directive("field",yd),E.directive("form",vd),E.directive("code-editor",ud),E.directive("paper-scrollspy",cd),E.use(m),m.beforeEach(async h=>{if(h.path==="/review-link"&&!n||n&&h.path!=="/review-link")return window.location.assign(h.fullPath),!1;u?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(h.path)&&await oo("markdown"),/^\/(r|repository)\//.test(h.path)&&await oo("org")}),m.afterEach(h=>{if(!u)return;u.title=h.meta.title,u.emit("routeChange",{title:h.meta.title}),u.emit("routeUpdate",{title:h.meta.title});let C=document.querySelector(".app-view");!h.meta.preserveExplorer&&C&&(C.scrollTop=0)}),E.mount(e),{app:E,router:m,state:u}}document.querySelector("#app")&&(window.anonymousApp=k6());})();
/*! Bundled license information:
@vue/shared/dist/shared.esm-bundler.js:
diff --git a/test/vue-ui.test.js b/test/vue-ui.test.js
index 0b03b77..4d77134 100644
--- a/test/vue-ui.test.js
+++ b/test/vue-ui.test.js
@@ -236,6 +236,95 @@ describe("Vue 3 UI", function () {
"/api/anonymize-preview": request => ({ content: request.payload.content.replaceAll("Private Author", "MASKED") }),
};
+ it("suggests opening existing configurations for the same repository URL without copying settings", async () => {
+ ui = await browser("/anonymize", {
+ ...repositorySource,
+ "/api/user/anonymized_repositories": [
+ { repoId: "older", source: { fullName: "Owner/Repo" }, options: { terms: ["Old Author"] }, anonymizeDate: "2025-01-01" },
+ { repoId: "newer", source: { fullName: "owner/repo" }, options: { terms: ["New Author"] }, anonymizeDate: "2026-01-01" },
+ { repoId: "unrelated", source: { fullName: "owner/other" }, options: {} },
+ ],
+ });
+ const state = ui.window.document.querySelector("#sourceUrl")._field.binding.state;
+ state.sourceUrl = "https://github.com/owner/repo.git/";
+ await state.urlSelected();
+ await delay(30);
+ const suggestion = ui.window.document.querySelector('[aria-label="Previous repository configuration"]');
+ expect(suggestion.textContent).to.include("avoid creating another repository");
+ expect([...suggestion.querySelectorAll("option")].map(option => option.value)).to.deep.equal(["newer", "older"]);
+ expect(suggestion.querySelector("a").getAttribute("href")).to.equal("/anonymize/newer");
+ await ui.input("#previousConfiguration", "older", "change");
+ expect(suggestion.querySelector("a").getAttribute("href")).to.equal("/anonymize/older");
+ expect(state.terms).to.equal("Default Author");
+ expect(state.isUpdate).to.equal(false);
+ suggestion.querySelector("button").click();
+ await delay(10);
+ expect(ui.window.document.querySelector('[aria-label="Previous repository configuration"]')).to.equal(null);
+ expect(ui.requests.filter(request => request.method === "POST" && request.url.pathname === "/api/repo/")).to.have.length(0);
+ expect(ui.errors).to.deep.equal([]);
+ });
+
+ it("opens the existing configuration from the suggestion without creating a repository", async () => {
+ const existing = { repoId: "existing-review", status: "ready", role: "owner",
+ source: { fullName: "owner/repo", branch: "main", commit: "abcdef123" },
+ options: { terms: ["Existing Author"], expirationMode: "never" } };
+ ui = await browser("/anonymize", {
+ ...repositorySource,
+ "/api/user/anonymized_repositories": [existing],
+ "/api/repo/existing-review": existing,
+ });
+ const sourceInput = await ui.input("#sourceUrl-landing", "https://github.com/owner/repo");
+ sourceInput.dispatchEvent(new ui.window.Event("blur"));
+ await delay(250);
+ const link = ui.window.document.querySelector('[aria-label="Previous repository configuration"] a');
+ expect(link).not.to.equal(null);
+ link.click();
+ await delay(250);
+ const state = ui.window.document.querySelector("#sourceUrl")._field.binding.state;
+ expect(ui.window.location.pathname).to.equal("/anonymize/existing-review");
+ expect(state.isUpdate).to.equal(true);
+ expect(state.repoId).to.equal("existing-review");
+ expect(state.terms).to.equal("Existing Author");
+ expect(state.source.commit).to.equal("abcdef123");
+ expect(ui.window.document.querySelector('[aria-label="Previous repository configuration"]')).to.equal(null);
+ expect(ui.requests.filter(request => request.method === "POST" && request.url.pathname.startsWith("/api/repo"))).to.have.length(0);
+ expect(ui.errors).to.deep.equal([]);
+ });
+
+ it("ignores delayed duplicate suggestions after switching to an invalid URL", async () => {
+ let finishLookup;
+ ui = await browser("/anonymize", {
+ ...repositorySource,
+ "/api/user/anonymized_repositories": () => new Promise(resolve => {
+ finishLookup = () => resolve([{ repoId: "existing", source: { fullName: "owner/repo" }, options: {} }]);
+ }),
+ });
+ const state = ui.window.document.querySelector("#sourceUrl")._field.binding.state;
+ state.sourceUrl = "https://github.com/owner/repo";
+ await state.urlSelected();
+ state.sourceUrl = "invalid";
+ await state.urlSelected();
+ finishLookup();
+ await delay(30);
+ expect(state.previousConfigurations).to.have.length(0);
+ expect(ui.errors).to.deep.equal([]);
+ });
+
+ it("allows creation when duplicate lookup fails", async () => {
+ ui = await browser("/anonymize", {
+ ...repositorySource,
+ "/api/user/anonymized_repositories": { __status: 503, body: { error: "unavailable" } },
+ });
+ const state = ui.window.document.querySelector("#sourceUrl")._field.binding.state;
+ state.sourceUrl = "https://github.com/owner/repo";
+ await state.urlSelected();
+ await delay(30);
+ expect(state.previousConfigurations).to.have.length(0);
+ expect(state.details.repo).to.equal("repo");
+ expect(state.sourceLoading).to.equal(false);
+ expect(ui.errors).to.deep.equal([]);
+ });
+
it("keeps the current repository when earlier metadata and README responses arrive late", async () => {
let finishMetadata, finishReadme;
ui = await browser("/anonymize", {